@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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.
Files changed (67) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/imagestyle.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/legacylist.js +1 -1
  32. package/src/integrations/legacylistproperties.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2024, 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(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),o=n(273),i=n(417),s=n(492),x=n(995);const a=["_disableUnsupportedCommands","TrackChangesCommand","editor","_enabledCommands","commands","_isEnabledBasedOnSelection","value","affectsData","isEnabled"];var c,l;c=a,l=178,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("0x5")]=e,this[u("0x8")]=!1,this.refresh(),this[u("0x7")]=!1}refresh(){this[u("0x1")]=!0}execute(){this.value=!this.value,this[u("0x8")]?this[u("0x2")]():this._enableCommands()}[u("0x2")](){for(const t of this[u("0x4")][u("0x6")][u("0x6")]())t[u("0x0")]&&!this._enabledCommands.has(t)&&t.forceDisabled("TrackChangesCommand")}_enableCommands(){for(const t of this[u("0x4")][u("0x6")][u("0x6")]())t[u("0x0")]&&!this[u("0x5")].has(t)&&t.clearForceDisabled(u("0x3"))}}const g=["track-changes-accept-suggestion-not-found","plugins","_suggestions","get","refresh","acceptSuggestion","execute","editor"];var f,h;f=g,h=210,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[m("0x2")](){this.isEnabled=!0}[m("0x4")](t){const n=this[m("0x0")][m("0x1")](t);if(!n)throw new e.CKEditorError(m("0x6"),this);const r=n.getRanges();this[m("0x5")].model.canEditAt(r)&&this[m("0x5")][m("0x7")].get("TrackChangesEditing")[m("0x3")](n)}}const b=["getRanges","plugins","_isEnabledBasedOnSelection","refresh","get","canEditAt","TrackChangesEditing","execute","discardSuggestion","editor","_suggestions","track-changes-discard-suggestion-not-found","model"];var E,_;E=b,_=489,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("0x2")]=e,this[T("0x8")](),this[T("0x7")]=!1}refresh(){this.isEnabled=!0}[T("0xc")](t){const n=this._suggestions[T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x3"),this);const r=n[T("0x5")]();this[T("0x1")][T("0x4")][T("0xa")](r)&&this[T("0x1")][T("0x6")][T("0x9")](T("0xb"))[T("0x0")](n)}}const C=[" [color ","next","join","from","isIntersecting","isArray","type","createPositionBefore","content","isMultiRange","add","length","sort","replace","deletion","isTouching","execute","value","createRange","isInContent","push","getRanges","createPositionAfter","color","start","createPositionAt","end","isObject"];var A,k;A=C,k=329,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t[I("0x13")](((t,e)=>"deletion"==t[I("0xd")]&&"deletion"!=e[I("0xd")]?-1:I("0x15")!=t[I("0xd")]&&I("0x15")==e[I("0xd")]?1:0))}function R(t,e){let n,r=0;const o=[],i=e.schema;for(;r<t[I("0x12")];){const s=t[r],x=t[r+1];n||(n=e[I("0xe")](s)),L(e,s,x)||(o[I("0x1b")](e[I("0x19")](n,i[I("0x6")](s)?e.createPositionAfter(s):e[I("0x4")](s,I("0x5")))),n=null),r++}return o}function L(t,e,n){if(!n)return!1;const r=t[I("0x1")](e),o=t[I("0xe")](n);return r[I("0x16")](o)}function v(t,e,n){for(;n.length;){const r=n.splice(0,100);t.change((()=>{for(const t of r)t[I("0x1a")]&&e[I("0x17")](t.id)}))}}const N=["_command","refresh","_suggestions","_isEnabledBasedOnSelection","execute","from","isEnabled","isInContent","getRanges","editor","model","values"];var M,w;M=N,w=444,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x0")]=e,this[O("0x2")]=n,this[O("0x1")](),this[O("0x3")]=!1}[O("0x1")](){const t=Array[O("0x5")](this[O("0x2")][O("0xb")]()).some((t=>t[O("0x7")]));this[O("0x6")]=this._command.isEnabled&&t}[O("0x4")](){const t=S(Array[O("0x5")](this[O("0x2")].values()));for(const e of t){const t=e[O("0x8")]();if(!this[O("0x9")][O("0xa")].canEditAt(t))return}v(this[O("0x9")].model,this[O("0x0")],t)}}const D=["size","_command","_suggestions","execute","_selectedSuggestions","from","document","values","_isEnabledBasedOnSelection","getRanges","editor","refresh","isEnabled","model"];var B,P;B=D,P=216,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("0x9")]=e,this._suggestions=n,this[U("0xc")]=new Set,this.refresh(),this[U("0x2")]=!1}[U("0x5")](){const t=this[U("0x4")][U("0x7")][U("0x0")].selection,e=Array.from(this[U("0xa")][U("0x1")]());this[U("0xc")]=function(t,e){const n=Array[I("0xa")](t.getRanges()),r=new Set;for(const o of e)if(o[I("0x1a")])for(const e of n)for(const n of o[I("0x0")]())(e[I("0xb")](n)||t.isCollapsed&&!o[I("0x10")]&&o[I("0x8")]&&n[I("0x5")][I("0x16")](e[I("0x3")]))&&r[I("0x11")](o);return r}(t,e),this[U("0x6")]=this._command[U("0x6")]&&!!this[U("0xc")][U("0x8")]}[U("0xb")](){const t=S(Array[U("0xd")](this[U("0xc")]));for(const e of t){const t=e[U("0x3")]();if(!this.editor[U("0x7")].canEditAt(t))return}v(this.editor.model,this[U("0x9")],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__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[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 rt=et||nt||Function("return this")();const ot=rt.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=ot?ot.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var o=xt.call(t);return r&&(e?t[at]=n:delete t[at]),o};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=ot?ot.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 ht=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 mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.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))&&(ht(t)?St:yt).test(Tt(t))};const Lt=function(t,e){return null==t?void 0:t[e]};const vt=function(t,e){var n=Lt(t,e);return Rt(n)?n:void 0};const Nt=vt(rt,"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 r=t[e];this.set(r[0],r[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(Nt||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),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[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 r=n.__data__;if(!Nt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}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,r=null==t?0:t.length;++n<r&&!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 re=Object.prototype.hasOwnProperty;const oe=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),o?ne(n,x,a):oe(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};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 he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?rt.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 Le=Re&&Re.isTypedArray;const ve=Le?Ae(Le):Ce;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),o=!n&&!r&&be(t),i=!n&&!r&&!o&&ve(t),s=n||r||o||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("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)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&ie(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 r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(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?rt.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return ie(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=vt(rt,"DataView");const fn=vt(rt,"Promise");const hn=vt(rt,"Set");const mn=vt(rt,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Nt),An=Tt(fn),kn=Tt(hn),In=Tt(mn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Sn(new Nt)!=pn||fn&&Sn(fn.resolve())!=bn||hn&&Sn(new hn)!=En||mn&&Sn(new mn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){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 Ln=Object.prototype.hasOwnProperty;const vn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ln.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=ot?ot.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 r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+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 r;case"[object Number]":case"[object String]":return new r(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 tr=function t(e,n,r,o,i,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=i?r(e,o,i,s):r(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&&!i){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return i?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(o){x.add(t(o,n,r,o,e,s))})):Kn(e)&&e.forEach((function(o,i){x.set(i,t(o,n,r,i,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(o,i){h&&(o=e[i=o]),oe(x,i,t(o,n,r,i,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,or=/^\w*$/;const ir=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(or.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(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(ar,(function(t,n,r,o){e.push(r?o.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o};var dr=ot?ot.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:ir(t,e)?[t]:lr(hr(t))};const pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=function(t,e,n,r){if(!ft(t))return t;for(var o=-1,i=(e=mr(e,t)).length,s=i-1,x=t;null!=x&&++o<i;){var a=pr(e[o]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[o+1])?[]:{})}oe(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:br(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,o,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,i):r(f,h,u,t,e,i);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||o(f,t,n,r,i)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!o(f,h,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lr=ot?ot.prototype:void 0,vr=Lr?Lr.valueOf:void 0;const Nr=function(t,e,n,r,o,i,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||!i(new Nn(t),new Nn(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=Sr;case"[object Set]":var a=1&r;if(x||(x=Rr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,o,i,s);return s.delete(t),l;case"[object Symbol]":if(vr)return vr.call(t)==vr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,o,i){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:Mr.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,i):r(h,m,l,t,e,i);if(!(void 0===p?h===m||o(h,m,n,r,i):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 i.delete(t),i.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,o,i){var s=ge(t),x=ge(e),a=s?Fr:Rn(t),c=x?Fr:Rn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||ve(t)?Ir(t,e,n,r,o,i):Nr(t,e,a,n,r,o,i);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return i||(i=new Qt),o(h,m,n,r,i)}}return!!d&&(i||(i=new Qt),wr(t,e,n,r,o,i))};const Ur=function t(e,n,r,o,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,o,t,i))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=mr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["addMarkerName","_markerNames","setAttribute","length","end","hasComments","getRanges","delete","isMultiRange","set","_isDataLoaded","removeMarkers","_model","decorate","accept","next","removeAttribute","addMarker","toJSON","@external","commentThread","getFirstMarker","change","split","getFirstRange","attributes","getMultiRangeId","getContainedElement","markers","onAccept","data","size","get","getMarkers","_saved","_onDiscard","_onAttributesChange","author","isIntersecting","clear","add","isIntersectingWithRange","subType","isInContent","from","_onAccept","getAllAdjacentSuggestions","nodeAfter","push","head","getItems","getMarkerNames","reduce","discard","createdAt","removeMarker","type","map","creator","getRange"];var $r,Xr;$r=qr,Xr=399,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x1f")]=!1,this.id=e.id,this.type=e[Zr("0x11")],this[Zr("0x3")]=e[Zr("0x3")]||null,this[Zr("0x3a")]=e.author,this[Zr("0x13")]=e[Zr("0x13")]||e.author,this.isExternal=Boolean(e[Zr("0x2e")]&&e[Zr("0x2e")][Zr("0x28")]),this.data=null,this[Zr("0x21")]=t,this._onAccept=e[Zr("0x32")],this[Zr("0x38")]=e.onDiscard,this._onAttributesChange=e.onAttributesChange,this[Zr("0x16")]=new Set,this[Zr("0xf")]=null,this[Zr("0x1e")]("authoredAt",null),this[Zr("0x1e")](Zr("0x2e"),e.attributes||{}),this[Zr("0x1e")]("previous",null),this[Zr("0x1e")](Zr("0x24"),null),this[Zr("0x1e")]("commentThread",null),this[Zr("0x1e")](Zr("0x37"),!1),this[Zr("0x22")]("accept"),this.decorate(Zr("0xe"))}get[Zr("0xa")](){let t=this;for(;t.previous;)t=t.previous;return t}get[Zr("0x1a")](){return!!this.commentThread&&this[Zr("0x29")][Zr("0x18")]>0}get[Zr("0x1d")](){return 0!=this[Zr("0x16")][Zr("0x34")]&&6==Array[Zr("0x5")](this[Zr("0x16")])[0][Zr("0x2c")](":")[Zr("0x18")]}get[Zr("0x4")](){return null!==this[Zr("0x2a")]()}[Zr("0x15")](t){this[Zr("0x16")][Zr("0x1")](t)}[Zr("0xc")](){return Array.from(this[Zr("0x16")])}[Zr("0x36")](){return this[Zr("0xc")]().map((t=>this[Zr("0x21")][Zr("0x31")][Zr("0x35")](t))).filter((t=>t))}[Zr("0x2a")](){return this[Zr("0x36")]()[0]||null}[Zr("0x20")](){this._model.change((t=>{for(const e of this[Zr("0x36")]())t.removeMarker(e)})),this[Zr("0x16")][Zr("0x0")]()}[Zr("0x10")](t){this[Zr("0x21")].change((e=>{e[Zr("0x10")](t)})),this._markerNames[Zr("0x1c")](t)}addRange(t){const e="suggestion:"+this.type+":"+this[Zr("0x3")]+":"+this.id+":"+this[Zr("0x13")].id+":"+Yr[Zr("0x2f")]();this[Zr("0x15")](e),this[Zr("0x21")][Zr("0x2b")]((n=>{n[Zr("0x26")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x2")](t){for(const e of this[Zr("0x1b")]())if(e[Zr("0x3b")](t))return!0;return!1}getRanges(){return this.getMarkers()[Zr("0x12")]((t=>t[Zr("0x14")]()))}[Zr("0xb")](){return this[Zr("0x1b")]()[Zr("0xd")](((t,e)=>[...t,...e[Zr("0xb")]()]),[])}[Zr("0x2d")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t.getRange())||null}[Zr("0x30")](){const t=this[Zr("0x1b")]();if(1!=t.length)return null;const e=t[0],n=e.start[Zr("0x8")],r=e[Zr("0x19")].nodeBefore;return n instanceof s.Element?n!=r?null:n:null}[Zr("0x23")](){this[Zr("0x6")](this.getRanges(),this.data,this[Zr("0x2e")]),this[Zr("0x20")]()}[Zr("0xe")](){this[Zr("0x38")](this[Zr("0x1b")](),this.data,this.attributes),this[Zr("0x20")]()}[Zr("0x7")](){const t=[];let e=this[Zr("0xa")];for(;e;)t[Zr("0x9")](e),e=e[Zr("0x24")];return t}[Zr("0x17")](t,e){const n=er(this[Zr("0x2e")]);Er(n,t,e),jr(n,this[Zr("0x2e")])||(this[Zr("0x2e")]=n,this[Zr("0x39")](n))}[Zr("0x25")](t){const e=er(this.attributes);Kr(e,t),jr(e,this[Zr("0x2e")])||(this[Zr("0x2e")]=e,this[Zr("0x39")](this[Zr("0x2e")]))}[Zr("0x27")](){return{id:this.id,type:this[Zr("0x3")]?this[Zr("0x11")]+":"+this[Zr("0x3")]:this[Zr("0x11")],authorId:this[Zr("0x13")].id,createdAt:this.createdAt,hasComments:this[Zr("0x1a")],data:this[Zr("0x33")],attributes:this.attributes}}static[Zr("0x2f")](){return(0,e.uid)().substr(1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({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 r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({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 r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["subType","nextSibling","replace","map","*Insert:* %0","_resolveDescriptionItems","type","data","addEmptyContainer","pop","end","isObject","name","_addDescriptionItems","Container","length","Object","getDescriptions","isEmpty","quantity","_schema","item","*Split:* %0","_handleRenameSuggestionDescription","_itemLabels","push","$textProxy","*Merge:* %0","addFormat","attribute","getWalker","_attributeLabels","_handleInsertRemoveSuggestionDescription","elementEnd","getItemLabel","label","REPLACE_TEXT","_customCallbacks","_handleAttributeSuggestionDescription","has","removeContainer","previousSibling","normal","registerAttributeLabel","get","newValue","matchingCallback","checkChild","addContainer","EmptyContainer","set","deletion","element","ELEMENT_SPACE","isInContent","addObject","*Remove:* %0","insertion","add","format","text","start","indexOf","_handleCustomCallbackDescription","getFirstRange","match","_locale","function","$1 $2","join","softBreak","key","remove","_itemLabelsCallbacks","registerElementLabel","removeFormat"];var to,eo;to=Qr,eo=402,function(t){for(;--t;)to.push(to.shift())}(++eo);const no=function(t,e){return Qr[t-=0]};class ro{constructor(t,e){this[no("0xf")]=[],this[no("0x2")]=new Map,this._itemLabelsCallbacks=[],this[no("0x9")]=new Map,this[no("0x4a")]=t,this[no("0x2c")]=e}[no("0x47")](t){const e=[],n=new Set,r=new Set;for(let o=0;o<t.length;o++){const i=t[o];if(!i[no("0x20")])continue;const s=this[no("0x29")](i);if(s){if(null!=i[no("0x36")]){if(n[no("0x11")](i.subType))continue;n.add(i[no("0x36")])}e[no("0x3")](s)}else if(no("0x7")!=i[no("0x3c")])no("0x23")!=i.type&&no("0x1d")!=i[no("0x3c")]||this[no("0xa")](e,i,t[o+1]);else{const t=i.data[no("0x31")];if(r[no("0x11")](t))continue;r[no("0x24")](i[no("0x3d")][no("0x31")]),t==Cc?this[no("0x1")](e,i):this[no("0x10")](e,i)}}return this[no("0x3b")](e)}registerDescriptionCallback(t){this._customCallbacks[no("0x3")](t)}[no("0x34")](t,n,r=e.priorities[no("0x14")]){no("0x2d")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:r}):this[no("0x2")].set(t,n)}[no("0x15")](t,e){this._attributeLabels[no("0x1c")](t,e)}[no("0xc")](t,e=1){let n;for(const e of this[no("0x33")])if(e[no("0x18")](t)){n=e[no("0xd")];break}return n||(n=this._itemLabels.get(t[no("0x42")])),n?n(e):1!==e?e+" "+t[no("0x42")]+"s":""+t[no("0x42")]}_addDescriptionItems(t,e){const n=e[no("0x2a")]()[no("0x8")](),r="insertion"==e.type?no("0x24"):"remove";for(const e of n){const o=e[no("0x4b")],i=t[t[no("0x45")]-1];if(o.is(no("0x4")))i&&i.type[no("0x28")](no("0x44"))>-1&&t.pop(),i&&no("0x26")==i[no("0x3c")]?i[r]+=o.data:t[no("0x3")]({type:no("0x26"),add:no("0x24")==r?o.data:"",remove:no("0x32")==r?o.data:""});else if(this._schema.isObject(o)){const s=o;if(i&&i[no("0x3c")][no("0x28")](no("0x44"))>-1&&t[no("0x3f")](),"elementEnd"==e[no("0x3c")])continue;i&&i[no("0x3c")]==r+no("0x46")&&i[no("0x1e")].name==s[no("0x42")]?i[no("0x49")]++:t[no("0x3")]({type:r+"Object",element:s,quantity:1}),n.skip((t=>!("elementEnd"==t[no("0x3c")]&&t[no("0x4b")]==o)))}else if(this._schema[no("0x19")](o,"$text")||o.is("element",no("0x30"))){const n=o;if(no("0x24")==r&&"elementStart"==e[no("0x3c")]||no("0x32")==r&&no("0xb")==e[no("0x3c")])continue;if(i&&-1==i[no("0x3c")][no("0x28")]("Container")){no("0x26")==i[no("0x3c")]&&(i[r]+="\n");continue}let s;if(s="add"==r?n[no("0x37")]&&!this[no("0x4a")].isObject(n[no("0x37")])?n[no("0x37")]:null:n[no("0x13")]&&!this[no("0x4a")][no("0x41")](n[no("0x13")])?n[no("0x13")]:null,n.isEmpty||s&&s[no("0x48")]){const e=s&&s[no("0x48")]?s:n;i&&i[no("0x3c")]==r+no("0x1b")&&i[no("0x1e")][no("0x42")]==e[no("0x42")]?i[no("0x49")]++:t[no("0x3")]({type:r+no("0x1b"),element:e,quantity:1})}else t[no("0x3")]({type:r+no("0x44"),element:n})}}}[no("0x3b")](t){const e=this._locale,n=[],r=[],o=[];for(const i of t)switch(i[no("0x3c")]){case"text":if(i[no("0x24")]=i.add.replace(/(\S)\u000A+(\S)/g,no("0x2e")).replace(/\u000A/g,""),i[no("0x32")]=i[no("0x32")][no("0x38")](/(\S)\u000A+(\S)/g,no("0x2e"))[no("0x38")](/\u000A/g,""),""!=i[no("0x24")]&&""!=i[no("0x32")]){n.push({type:no("0x38"),content:Jr(e,no("0xe"),['"'+i[no("0x32")]+'"','"'+i[no("0x24")]+'"'])});continue}if(null!=i[no("0x24")][no("0x2b")](/^ +$/)){n[no("0x3")]({type:no("0x23"),content:Jr(e,no("0x3a"),Jr(e,"ELEMENT_SPACE",i[no("0x24")][no("0x45")]))});continue}if(null!=i[no("0x32")].match(/^ +$/)){n[no("0x3")]({type:no("0x1d"),content:Jr(e,no("0x22"),Jr(e,no("0x1f"),i[no("0x32")][no("0x45")]))});continue}if(""!=i[no("0x24")]){n[no("0x3")]({type:no("0x23"),content:Jr(e,no("0x3a"),'"'+i[no("0x24")]+'"')});continue}n[no("0x3")]({type:"deletion",content:Jr(e,no("0x22"),'"'+i.remove+'"')});continue;case no("0x3e"):case no("0x21"):n[no("0x3")]({type:no("0x23"),content:Jr(e,no("0x3a"),this.getItemLabel(i[no("0x1e")],i[no("0x49")]))});continue;case"removeEmptyContainer":case"removeObject":n[no("0x3")]({type:no("0x1d"),content:Jr(e,no("0x22"),this[no("0xc")](i[no("0x1e")],i.quantity))});continue;case no("0x1a"):n.push({type:no("0x23"),content:Jr(e,no("0x0"),this[no("0xc")](i.element,i[no("0x49")]))});continue;case no("0x12"):n[no("0x3")]({type:no("0x1d"),content:Jr(e,no("0x5"),this.getItemLabel(i[no("0x1e")],i[no("0x49")]))});continue;case no("0x6"):r.push(i[no("0x31")]);continue;case"removeFormat":o.push(i[no("0x31")]);continue;default:n[no("0x3")](i)}if(r[no("0x45")]){const t=r[no("0x39")]((t=>this._attributeLabels[no("0x11")](t)?this._attributeLabels[no("0x16")](t):t)).join(", ");n[no("0x3")]({type:"format",content:Jr(this[no("0x2c")],"*Set format:* %0",t)})}if(o.length){const t=o.map((t=>this._attributeLabels[no("0x11")](t)?this[no("0x9")][no("0x16")](t):t))[no("0x2f")](", ");n[no("0x3")]({type:no("0x25"),content:Jr(this[no("0x2c")],"*Remove format:* %0",t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[no("0xf")]){const n=e(t);if(n&&no("0x3c")in n)return n}}[no("0x10")](t,e){const n=e.data,r=void 0===n[no("0x17")]?no("0x35"):no("0x6");t[no("0x3")]({type:r,key:n[no("0x31")]})}[no("0x1")](t,e){t[no("0x3")]({type:no("0x25"),content:Jr(this[no("0x2c")],"*Change to:* %0",this[no("0xc")](e[no("0x2a")]()[no("0x27")].nodeAfter,1))})}[no("0xa")](t,e,n){if(this[no("0x43")](t,e),n&&n[no("0x2a")]()&&!e[no("0x2a")]()[no("0x40")].isEqual(n[no("0x2a")]()[no("0x27")])){const n=t[t[no("0x45")]-1],r=no("0x23")==e[no("0x3c")]?no("0x24"):no("0x32");n&&no("0x26")==n[no("0x3c")]&&(n[r]+="\n")}}}const oo=["enableCommand","showAIAssistant","afterInit","commands","get","TrackChangesEditing","plugins"];var io,so;io=oo,so=332,function(t){for(;--t;)io.push(io.shift())}(++so);const xo=function(t,e){return oo[t-=0]};class ao extends t.Plugin{[xo("0x6")](){const t=this.editor,e=t[xo("0x3")][xo("0x1")](xo("0x2"));t[xo("0x0")][xo("0x1")](xo("0x5"))&&e[xo("0x4")](xo("0x5"))}}const co=["editor","justify","get","_descriptionFactory","commandName","alignment","_registerLegacyDescription","FORMAT_ALIGNMENT","locale","TrackChangesEditing","FORMAT_ALIGN_TO_LEFT","registerDescriptionCallback","format","plugins","center","FORMAT_ALIGN_TO_RIGHT","formatBlock","commandParams","registerAttributeLabel","_enableDefaultAttributesIntegration","type","FORMAT_JUSTIFY_TEXT"];var lo,uo;lo=co,uo=361,function(t){for(;--t;)lo.push(lo.shift())}(++uo);const go=function(t,e){return co[t-=0]};class fo extends t.Plugin{afterInit(){const t=this[go("0xd")],e=t.locale;if(!t[go("0x4")].has("AlignmentEditing"))return;const n=t[go("0x4")][go("0xf")]("TrackChangesEditing");n[go("0xa")](go("0x12"),[],[go("0x12")]),n[go("0x10")][go("0x9")]("alignment",Jr(e,go("0x14"))),this[go("0x13")]()}[go("0x13")](){const t=this[go("0xd")],e=t[go("0x15")];t[go("0x4")][go("0xf")](go("0x0"))._descriptionFactory[go("0x2")]((t=>{if(go("0x7")!=t[go("0xb")])return;const{data:n}=t;if(n&&"alignment"==n[go("0x11")]){const t=n[go("0x8")][0].value;return{type:go("0x3"),content:Jr(e,"*Format:* %0",function(t){switch(t){case"left":return Jr(e,go("0x1"));case"right":return Jr(e,go("0x6"));case go("0x5"):return Jr(e,"FORMAT_ALIGN_TO_CENTER");case go("0xe"):return Jr(e,go("0xc"))}}(t))}}}))}}const ho=["_descriptionFactory","locale","BoldEditing","*Remove format:* %0","SubscriptEditing","FORMAT_SUBSCRIPT","TrackChangesEditing","bold","get","format","afterInit","_registerLegacyDescription","strikethrough","formatInline","UnderlineEditing","FORMAT_","has","FORMAT_STRIKETHROUGH","FORMAT_CODE","registerAttributeLabel","italic","plugins","ItalicEditing","FORMAT_ITALIC","registerDescriptionCallback","commandParams","*Format:* %0","FORMAT_SUPERSCRIPT","type","subscript","FORMAT_BOLD","editor","_enableDefaultAttributesIntegration","CodeEditing","code","StrikethroughEditing","underline"];var mo,po;mo=ho,po=145,function(t){for(;--t;)mo.push(mo.shift())}(++po);const bo=function(t,e){return ho[t-=0]},Eo=[bo("0x5"),bo("0x19"),bo("0x11"),bo("0x24"),bo("0x1"),bo("0x7"),"SuperscriptEditing"];class _o extends t.Plugin{[bo("0xd")](){const t=this[bo("0x22")],e=t[bo("0x18")][bo("0xb")](bo("0x9")),n=t[bo("0x4")];for(const r of Eo){if(!t.plugins[bo("0x13")](r))continue;const o=r.slice(0,-7).toLowerCase(),i=bo("0x12")+o.toUpperCase();e[bo("0x23")](o,[o]),e[bo("0x3")][bo("0x16")](o,Jr(n,i))}this[bo("0xe")]()}_registerLegacyDescription(){const t=this[bo("0x22")],e=t[bo("0x4")],n=t[bo("0x18")][bo("0xb")](bo("0x9"));function r(t,r){n[bo("0x3")][bo("0x1b")]((n=>{if(bo("0x10")!=n[bo("0x1f")])return;const{data:o}=n;return o&&o.commandName===t?o[bo("0x1c")][0].forceValue?{type:bo("0xc"),content:Jr(e,bo("0x1d"),r)}:{type:"format",content:Jr(e,bo("0x6"),r)}:void 0}))}r(bo("0xa"),Jr(e,bo("0x21"))),r(bo("0x17"),Jr(e,bo("0x1a"))),r(bo("0x2"),Jr(e,"FORMAT_UNDERLINE")),r(bo("0x0"),Jr(e,bo("0x15"))),r(bo("0xf"),Jr(e,bo("0x14"))),r(bo("0x20"),Jr(e,bo("0x8"))),r("superscript",Jr(e,bo("0x1e")))}}const To=["selection","commandName","locale","get","TrackChangesEditing","forceValue","has","format","from","editor","model","filter","document","change","name","registerDescriptionCallback","checkChild","BlockQuoteEditing","enableCommand","afterInit","plugins","commands","blockQuote","commandParams","parent","schema","markBlockFormat","*Set format:* %0","value"];var yo,Co;yo=To,Co=353,function(t){for(;--t;)yo.push(yo.shift())}(++Co);const Ao=function(t,e){return To[t-=0]};class ko extends t.Plugin{[Ao("0xe")](){const t=this[Ao("0x4")],e=t[Ao("0x1a")];if(!t[Ao("0xf")][Ao("0x1")](Ao("0xc")))return;const n=t[Ao("0xf")].get(Ao("0x1c")),r=this[Ao("0x4")][Ao("0x10")][Ao("0x1b")](Ao("0x11"));n[Ao("0xd")](Ao("0x11"),((e,o={})=>{const i=this.editor.model[Ao("0x7")][Ao("0x18")],s=o&&void 0!==o.forceValue?o[Ao("0x0")]:!r[Ao("0x17")];let x=[];if(s){const e=Array[Ao("0x3")](i.getSelectedBlocks())[Ao("0x6")]((t=>Io(t)||function(t,e){const n=e[Ao("0xb")](t.parent,Ao("0x11")),r=e[Ao("0xb")](["$root","blockQuote"],t);return n&&r}(t,this.editor[Ao("0x5")][Ao("0x14")])));x=R(e,t.model)}else{const e=Array[Ao("0x3")](i.getSelectedBlocks())[Ao("0x6")]((t=>Io(t)));x=R(e,t[Ao("0x5")])}t[Ao("0x5")][Ao("0x8")]((()=>{for(const t of x)n[Ao("0x15")](t,{commandName:Ao("0x11"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[Ao("0xa")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ao("0x19")]){const t=Jr(e,"ELEMENT_BLOCK_QUOTE");return n[Ao("0x12")][0].forceValue?{type:Ao("0x2"),content:Jr(e,Ao("0x16"),t)}:{type:Ao("0x2"),content:Jr(e,"*Remove format:* %0",t)}}}))}}function Io(t){return Ao("0x11")==t[Ao("0x13")][Ao("0x9")]}const So=["TrackChangesEditing","changeCaseUpper","enableCommand","changeCaseLower","has","plugins","CaseChange","get","changeCaseTitle","afterInit"];var Ro,Lo;Ro=So,Lo=340,function(t){for(;--t;)Ro.push(Ro.shift())}(++Lo);const vo=function(t,e){return So[t-=0]};class No extends t.Plugin{[vo("0x9")](){const t=this.editor;t[vo("0x5")][vo("0x4")](vo("0x6"))&&(t[vo("0x5")][vo("0x7")](vo("0x0"))[vo("0x2")](vo("0x1")),t.plugins[vo("0x7")]("TrackChangesEditing")[vo("0x2")](vo("0x3")),t[vo("0x5")][vo("0x7")](vo("0x0")).enableCommand(vo("0x8")))}}const Mo=["ckbox","editor","TrackChangesEditing","plugins","get","commands","afterInit"];var wo,Oo;wo=Mo,Oo=340,function(t){for(;--t;)wo.push(wo.shift())}(++Oo);const Fo=function(t,e){return Mo[t-=0]};class Do extends t.Plugin{[Fo("0x2")](){const t=this[Fo("0x4")];t[Fo("0x1")].get(Fo("0x3"))&&t[Fo("0x6")][Fo("0x0")](Fo("0x5")).enableCommand(Fo("0x3"))}}const Bo=["enableCommand","model","parent","indentCodeBlock","checkChild","toLowerCase","afterInit","getSelectedBlocks","name","value","filter","isLimit","ELEMENT_CODE_BLOCK","editor","codeBlock","commandParams","markBlockFormat","CodeBlock","has","from","TrackChangesEditing","*Set format:* %0","label","commandName","commands","format","get","change","plugins","blockName","_descriptionFactory","languages","schema","language","*Remove format:* %0","forceValue","find","registerElementLabel"];var Po,Uo;Po=Bo,Uo=184,function(t){for(;--t;)Po.push(Po.shift())}(++Uo);const jo=function(t,e){return Bo[t-=0]};class Go extends t.Plugin{[jo("0xc")](){const t=this[jo("0x13")];if(!t[jo("0x22")][jo("0x18")](jo("0x17")))return;const e=t[jo("0x22")][jo("0x20")](jo("0x1a")),n=t.locale,r=t.config[jo("0x20")](jo("0x14"))[jo("0x25")],o=t[jo("0x1e")].get(jo("0x14"));e[jo("0x6")](jo("0x9")),e.enableCommand("outdentCodeBlock"),e[jo("0x6")]("codeBlock",((n,i={})=>{const s=t[jo("0x7")],x=t[jo("0x7")].document.selection,a=i&&void 0!==i[jo("0x3")]?i[jo("0x3")]:!o[jo("0xf")];let c;i[jo("0x1")]||(i.language=r[0][jo("0x1")]),c=a?Array[jo("0x19")](x[jo("0xd")]()).filter((t=>{return Vo(t)||(e=t,n=s[jo("0x0")],!e.is("rootElement")&&!n[jo("0x11")](e)&&n[jo("0xa")](e[jo("0x8")],"codeBlock"));var e,n})):Array[jo("0x19")](x[jo("0xd")]())[jo("0x10")]((t=>Vo(t)));const l=R(c,s);s[jo("0x21")]((()=>{for(const t of l)e[jo("0x16")](t,{commandName:"codeBlock",commandParams:[{...i,forceValue:a}],formatGroupId:jo("0x23")})}))})),e._descriptionFactory[jo("0x5")](jo("0x14"),(t=>Jr(n,"ELEMENT_CODE_BLOCK",t))),e[jo("0x24")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type)return;const e=n.t,{data:o}=t;if(!o||jo("0x14")!=o[jo("0x1d")])return;const i=o.commandParams[0][jo("0x1")],s=e(r[jo("0x4")]((t=>t[jo("0x1")]===i))[jo("0x1c")])[jo("0xb")]();return o[jo("0x15")][0].forceValue?{type:jo("0x1f"),content:Jr(n,jo("0x1b"),Jr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:jo("0x1f"),content:Jr(n,jo("0x2"),Jr(n,jo("0x12"),1))}}))}}function Vo(t){return jo("0x14")==t[jo("0xe")]}const Ho=["CommentsEditing","plugins","editor","afterInit","enableCommand","addCommentThread","get","TrackChangesEditing"];var zo,Wo;zo=Ho,Wo=294,function(t){for(;--t;)zo.push(zo.shift())}(++Wo);const Ko=function(t,e){return Ho[t-=0]};class qo extends t.Plugin{[Ko("0x5")](){const t=this[Ko("0x4")];t[Ko("0x3")].has(Ko("0x2"))&&t.plugins[Ko("0x0")](Ko("0x1"))[Ko("0x6")](Ko("0x7"))}}var $o=n(181);const Xo=["bindElementToMarker","isBlock","ck-suggestion-marker-","element","ck-suggestion-marker--active","toViewPosition","push","getCustomProperty","toViewElement","markerName","includes","nextSibling","addClass","getAttribute","test","writer","listIndent","previousPosition","type","span","markerRange","listItem","TrackChangesEditing","hasAttribute","parent","isLimit","createRangeOn","name","createUIElement","mapper","activeMarkers","elementEnd"];var Zo,Yo;Zo=Xo,Yo=154,function(t){for(;--t;)Zo.push(Zo.shift())}(++Yo);const Jo=function(t,e){return Xo[t-=0]};function Qo(t,e,n){const r=[];for(const o of e.getItems())o[Jo("0x1d")](t)&&r[Jo("0xc")](n[Jo("0x0")](o));return r}function ti(t,e,{showActiveMarker:n=!0}={}){const r=t.plugins.get(Jo("0x1c"));return(o,i,s)=>{if(!s.consumable[Jo("0x14")](i.markerRange,o[Jo("0x1")]))return;const x=i[Jo("0x1a")].getWalker(),a=i[Jo("0x1a")].start,c=t.model.schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=s.mapper[Jo("0xe")](e);if(n&&n[Jo("0xd")]("addHighlight"))return;Jo("0x5")==t[Jo("0x18")]&&c[Jo("0x7")](e)&&!c[Jo("0x1f")](e)&&(e[Jo("0x11")]||a.isAtEnd?l&&l[Jo("0x1e")]==e||(l=e,f(t[Jo("0x17")]),g=!0):u=u||t[Jo("0x17")])}function f(t){const o=s[Jo("0x15")][Jo("0x2")](Jo("0x19"),{class:Jo("0x8")+e}),x=s[Jo("0x3")][Jo("0xb")](t);n&&r[Jo("0x4")][Jo("0x10")](i[Jo("0xf")])&&s[Jo("0x15")][Jo("0x12")](Jo("0xa"),o),s[Jo("0x15")].insert(x,o),s[Jo("0x3")][Jo("0x6")](o,i.markerName)}d||g||!u||f(u)}}const ei=["high","createRange","remove","options","mapper","model","unbindElementFromMarkerName","isCollapsed","merge","downcastDispatcher","document","forward","createSelection","get","selection","requires","enableCommand","editor","start","detach","batch","modifySelection","TrackChangesEditing","plugins","addMarker:suggestion:deletion","deleteForward","markerNameToElements","editing","markerName","setSelection","commands","enqueueChange","lock","root","buffer","end"];var ni,ri;ni=ei,ri=435,function(t){for(;--t;)ni.push(ni.shift())}(++ri);const oi=function(t,e){return ei[t-=0]};class ii extends t.Plugin{static get[oi("0xc")](){return[$o.Delete]}init(){const t=this[oi("0xe")],e=t[oi("0x14")].get(oi("0x13"));e.enableCommand("delete");const n=t[oi("0x1b")][oi("0xa")](oi("0x16"));e[oi("0xd")](oi("0x16"),((e,r={})=>{const o=t[oi("0x2")][oi("0x9")](t.model[oi("0x7")][oi("0xb")]);o[oi("0x4")]&&t.model[oi("0x12")](o,{direction:oi("0x8"),unit:r.unit});const i=o.getFirstRange(),x=s.LiveRange.fromRange(i);let a;e(r),a="$graveyard"==x[oi("0x1e")].rootName?t[oi("0x2")][oi("0x22")](i.start):t[oi("0x2")][oi("0x22")](x[oi("0xf")],x[oi("0x20")]),x[oi("0x10")](),t[oi("0x2")][oi("0x1c")](n[oi("0x1f")][oi("0x11")],(t=>{n[oi("0x1f")][oi("0x1d")](),t[oi("0x1a")](t[oi("0x22")](a.end)),n[oi("0x1f")].unlock()}))})),t[oi("0x18")][oi("0x6")].on("addMarker:suggestion:deletion",ti(t,oi("0x5")),{priority:oi("0x21")}),t.data.downcastDispatcher.on(oi("0x15"),((e,n,r)=>{r[oi("0x0")].showSuggestionHighlights&&ti(t,oi("0x5"),{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:"high"}),t[oi("0x18")].downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const r=n[oi("0x1")][oi("0x17")](e[oi("0x19")]);if(r)for(const t of r)t.is("uiElement")&&(n[oi("0x1")][oi("0x3")](t,e[oi("0x19")]),n.writer[oi("0x23")](t))}),{priority:oi("0x21")})}}const si=["end","execute","afterInit","listStart","_enableDefaultAttributesIntegration","multipleBlocks","key","listStyle","*Format:* remove from %0","formatBlock","getRanges","every","documentList","getSuggestions","document","trackChangesCommand","config","_LIST","isLocal","_suggestionFactory","format","forceValue","registerAttributeLabel","outdentList","todo","listItemIdFixer","commands","listReversed","length","noTrackChangesFixer","type","removeMarker","suggestion","push","data","*Merge:* %0","list.multiBlock","toUpperCase","splitListItemAfter","accept","mergeListItemBackward","*Check item*","_findSuggestions","attributes","getAttribute","setSelection","parent","_getAttributeKey","registerDescriptionCallback","change","ListEditing","todoListChecked","detach","assureChains","createRange","numbered","bulleted","range","checkTodoList","setAttribute","map","start","*Change to:* %0","ELEMENT_BULLETED_LIST","previousSibling","FORMAT_INDENT","listType","includes","batch","editor","from","isUndo","splitListItemBefore","commandParams","_registerLegacyDescription","groupId","_descriptionFactory","value","listItemId","ELEMENT_","getChanges","ELEMENT_NUMBERED_LIST","*Outdent:* %0","get","head","todoListCheck","getFirstMarker","isNextTo","registerPostFixer","*Split:* list item","*Format:* insert into %0","mergeListItemForward","_supportLegacySuggestions","default","todoList","differ","locale","filter","attribute","next","plugins","ELEMENT_TODO_LIST","listIndent","model","oldValue","TrackChangesEditing","*Set format:* %0","bulletedList","indentList","selection","*Indent:* %0","schema","containsItem","getFirstRange","numberedList","nextSibling","attributeKey","newValue","find","commandName","ELEMENT_LIST_ITEM","TodoListEditing","nodeAfter"];var xi,ai;xi=si,ai=488,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x6")](){const t=this.editor;if(!t[ci("0x68")].has(ci("0x36")))return;const e=t[ci("0x64")],n=t[ci("0x68")][ci("0x57")]("TrackChangesEditing"),r=t[ci("0x68")].has(ci("0x2")),o=!!t[ci("0x14")][ci("0x57")](ci("0x28"));function i(t){return{type:ci("0x18"),content:""+Jr(e,ci("0x6e"),t)}}function s(t){return{type:ci("0x18"),content:""+Jr(e,"*Remove format:* %0",t)}}n[ci("0x8")](ci("0x76"),[],[ci("0x52"),ci("0x46"),ci("0x6a")]),n[ci("0x8")](ci("0x6f")),n[ci("0x8")]("indentList"),n[ci("0x8")]("outdentList"),n[ci("0x8")](ci("0x2a")),n[ci("0x8")](ci("0x4c")),o&&(n[ci("0x8")](ci("0x2c")),n._enableDefaultAttributesIntegration(ci("0x5f"))),r&&(n[ci("0x8")](ci("0x62")),n._enableDefaultAttributesIntegration(ci("0x3e"),[],[ci("0x37")]),n[ci("0x50")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ci("0x37")==n[ci("0xa")])return{type:ci("0x18"),content:n[ci("0x79")]?Jr(e,ci("0x2d")):Jr(e,"*Uncheck item*")}})),this[ci("0x49")][ci("0x6b")][ci("0x12")][ci("0x5c")]((t=>{if(t[ci("0x48")][ci("0x4b")])return!1;let e=!1;const r=n.getSuggestions({skipNotAttached:!0})[ci("0x65")]((t=>ci("0x37")===n[ci("0x33")](t)));for(const o of r)ci("0x1c")!=o[ci("0x75")]().start.nodeAfter[ci("0x30")](ci("0x46"))&&(n[ci("0x2e")](o[ci("0x75")](),ci("0x66"))[ci("0x7a")]((t=>"listType"===n[ci("0x33")](t[ci("0x24")])))||(t[ci("0x23")](o[ci("0x5a")]()),e=!0));return e}))),n[ci("0x50")][ci("0x1a")](ci("0x6a"),Jr(e,ci("0x45")));const x={type:"format",content:""};n[ci("0x50")].registerDescriptionCallback((t=>{const{data:n}=t;if(!n||ci("0x46")!=n[ci("0xa")])return;let r=t.head;for(;r;){if(r[ci("0x26")]&&(ci("0xb")==r.data[ci("0xa")]&&(r[ci("0x26")].newValue&&ci("0x61")!=r[ci("0x26")][ci("0x79")]||ci("0x61")!=r[ci("0x26")][ci("0x6c")]&&!n[ci("0x79")])||!o&&r[ci("0x26")][ci("0xa")]==Cc))return x;r=r.next}if(null==n[ci("0x79")])switch(n[ci("0x6c")]){case ci("0x3c"):return s(Jr(e,"ELEMENT_BULLETED_LIST"));case ci("0x3b"):return s(Jr(e,ci("0x55")));case"todo":return s(Jr(e,"ELEMENT_TODO_LIST"))}switch(n.newValue){case ci("0x3c"):return i(Jr(e,ci("0x43")));case"numbered":return i(Jr(e,ci("0x55")));case ci("0x1c"):return i(Jr(e,ci("0x69")))}})),n[ci("0x50")][ci("0x34")]((t=>{const{data:e}=t;if(!e||"listIndent"!=e[ci("0xa")])return;let n=t.head;for(;n;){if(n[ci("0x26")]&&"listIndent"!=n[ci("0x26")][ci("0xa")])return x;n=n[ci("0x67")]}return void 0===e.newValue||void 0===e[ci("0x6c")]&&0==e.newValue?x:void 0})),n[ci("0x50")].registerDescriptionCallback((t=>{if(ci("0x66")!=t[ci("0x22")])return;const{data:n}=t;if(!n||ci("0x52")!=n[ci("0xa")])return;const r=ui(t);return r?r==n.newValue?{type:ci("0x18"),content:Jr(e,"*Merge:* list item")}:r==n[ci("0x6c")]?{type:ci("0x18"),content:Jr(e,ci("0x5d"))}:x:x})),t[ci("0x6b")][ci("0x12")].registerPostFixer((t=>this[ci("0x1d")](t))),t[ci("0x6b")].document[ci("0x5c")]((t=>this[ci("0x21")](t))),t.model[ci("0x12")][ci("0x5c")]((t=>this[ci("0x39")](t))),this[ci("0x60")]()}listItemIdFixer(t){if(t[ci("0x48")][ci("0x4b")]||!t[ci("0x48")][ci("0x16")])return!1;const e=this[ci("0x49")].plugins[ci("0x57")](ci("0x6d"));if(e._recordAttributeSuggestions)return!1;let n=!1;const r=e.getSuggestions({skipNotAttached:!0}).filter((t=>t[ci("0x26")]&&ci("0x52")==t.data[ci("0xa")])).filter((t=>t.data.newValue&&t[ci("0x26")][ci("0x6c")]));for(const e of r){const r=ui(e);r&&r==e.data.newValue||r==e.data.oldValue||(t[ci("0x23")](e[ci("0x5a")]()),n=!0)}return n}noTrackChangesFixer(t){if(t[ci("0x48")][ci("0x4b")]||!t[ci("0x48")].isLocal)return!1;const e=this[ci("0x49")][ci("0x68")].get(ci("0x6d"));if(e[ci("0x13")][ci("0x51")])return!1;let n=!1;const r=["listType","listStyle",ci("0x52"),ci("0x6a"),ci("0x7"),ci("0x1f"),ci("0x59")],o=this[ci("0x49")][ci("0x6b")][ci("0x12")][ci("0x63")][ci("0x54")]().filter((t=>"attribute"==t[ci("0x22")]))[ci("0x65")]((t=>r[ci("0x47")](t[ci("0x78")])));if(0==o[ci("0x20")])return n;for(const i of o){const o=e[ci("0x2e")](i[ci("0x3d")],"attribute")[ci("0x65")]((t=>!t.meta[ci("0x5b")]))[ci("0x40")]((t=>t.suggestion)).filter((t=>{const n=e[ci("0x33")](t);return r[ci("0x47")](n)}));if(o[ci("0x20")]){for(const e of o)t[ci("0x23")](e[ci("0x5a")]());n=!0}}return n}assureChains(t){if(t[ci("0x48")][ci("0x4b")]||!t.batch[ci("0x16")])return!1;const e=this[ci("0x49")][ci("0x68")][ci("0x57")](ci("0x6d"));let n=!1;const r=[ci("0x46"),ci("0xb"),ci("0x52"),"listIndent",ci("0x7"),ci("0x1f"),ci("0x59")];for(const t of e[ci("0x11")]({skipNotAttached:!0})){const o=e[ci("0x2e")](t[ci("0x75")](),"attribute")[ci("0x40")]((t=>t.suggestion))[ci("0x65")]((t=>t.data&&r[ci("0x47")](t[ci("0x26")].key)));if(!o[ci("0x20")])continue;const s=o[0][ci("0x58")][ci("0x2f")][ci("0x4f")];if(!o[ci("0xf")]((t=>t.attributes[ci("0x4f")]===s)))for(const t of o)i(t,s)&&(n=!0)}return n;function o(t,n){for(const r of e[ci("0x11")]({skipNotAttached:!0})[ci("0x65")]((e=>"attribute"==e.type&&e[ci("0x2f")][ci("0x4f")]==t)))r[ci("0x3f")](ci("0x4f"),n)}function i(t,e){let n=t[ci("0x58")],r=!1;for(;n;)n[ci("0x2f")][ci("0x4f")]!=e&&(o(n.attributes[ci("0x4f")],e),n[ci("0x3f")](ci("0x4f"),e),r=!0),n=n[ci("0x67")];return r}}[ci("0x60")](){const t=this[ci("0x49")],e=t[ci("0x64")],n=t[ci("0x68")].get(ci("0x6d"));this[ci("0x4e")](),n[ci("0x17")].registerCustomCallback(ci("0xd"),ci("0x10"),ci("0x2b"),(function(e,n){const r=[];for(let n of e)n[ci("0x41")][ci("0x3")]===n[ci("0x4")][ci("0x32")]&&(n=t[ci("0x6b")][ci("0x3a")](t[ci("0x6b")].createPositionAt(n.start.nodeAfter,0))),r[ci("0x25")](n);t[ci("0x6b")][ci("0x35")]((e=>{const o=t[ci("0x6b")][ci("0x12")][ci("0x71")],i=Array[ci("0x4a")](o[ci("0xe")]())[ci("0x40")]((t=>s.LiveRange.fromRange(t)));e.setSelection(r),t[ci("0x1e")][ci("0x57")](n.commandName).refresh(),n[ci("0x4d")][ci("0x25")]({forceDefaultExecution:!0}),t[ci("0x5")](n[ci("0x0")],...n[ci("0x4d")]),e[ci("0x31")](i);for(const t of i)t[ci("0x38")]()}))})),n[ci("0x50")].registerElementLabel((function(e){const n=!t[ci("0x6b")][ci("0x73")].isObject(e),r=e[ci("0x44")],o=e.nextSibling,i=e[ci("0x30")](ci("0x52")),s=!r||r[ci("0x30")](ci("0x52"))!==i,x=!o||o[ci("0x30")]("listItemId")!==i;return n&&Boolean(i)&&s&&x}),(t=>Jr(e,ci("0x1"),t)))}[ci("0x4e")](){const t=this[ci("0x49")],e=t.locale;function n(e){const n=t[ci("0x1e")][ci("0x57")]("bulletedList").value,r=t[ci("0x1e")][ci("0x57")](ci("0x76")).value;return ci("0x76")===e?n:r}t.plugins[ci("0x57")]("TrackChangesEditing")[ci("0x50")][ci("0x34")]((function(r){if("formatBlock"!=r.type)return;const{data:o}=r;if(!o)return;let i,s,x,a;switch(o[ci("0x0")]){case ci("0x6f"):x=o.commandParams[0][ci("0x19")],a=n(o.commandName),i=x?ci("0x5e"):"*Format:* remove from %0",!a&&t.config[ci("0x57")](ci("0x28"))||(i="*Change to:* %0"),s={type:ci("0x18"),content:Jr(e,i,Jr(e,ci("0x43")))};break;case"numberedList":x=o[ci("0x4d")][0][ci("0x19")],a=n(o.commandName),i=ci(x?"0x5e":"0xc"),!a&&t[ci("0x14")].get(ci("0x28"))||(i=ci("0x42")),s={type:ci("0x18"),content:Jr(e,i,Jr(e,"ELEMENT_NUMBERED_LIST"))};break;case ci("0x70"):i=ci("0x72"),s={type:"format",content:Jr(e,i,Jr(e,ci("0x1")))};break;case ci("0x1b"):i=function(t){const e=t[ci("0x75")]();let n=e[ci("0x41")][ci("0x3")];for(;n&&e[ci("0x74")](n);){if(n[ci("0x30")](ci("0x6a"))>0)return!1;n=n[ci("0x77")]}return!0}(r)?Jr(e,ci("0xc"),Jr(e,(c=r,ci("0x53")+c[ci("0x75")]()[ci("0x41")][ci("0x3")][ci("0x30")](ci("0x46"))[ci("0x29")]()+ci("0x15")))):Jr(e,ci("0x56"),Jr(e,ci("0x1"))),s={type:"format",content:i};break;case ci("0x2c"):case"mergeListItemForward":!1===o[ci("0x9")]&&(i=ci("0x27"),s={type:"deletion",content:Jr(e,i,Jr(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function ui(t){const e=t[ci("0x75")]()[ci("0x41")][ci("0x3")],n=null==e?void 0:e[ci("0x44")];return n?n[ci("0x30")]("listItemId"):null}const di=["commandParams","disc","commandName","styles","key","decimal","config","replace","FORMAT_LIST_START","editor","suggestion","type","get","has","getAttribute","listStart","list.properties","lower-latin","isUndo","includes","listType","bulleted","TrackChangesEditing","numbered","_getTranslationKeyForListStyle","locale","afterInit","head","_LIST_DEFAULT","batch","removeMarker","toUpperCase","ELEMENT_","registerAttributeLabel","_descriptionFactory","handleDescriptions","ListPropertiesEditing","decimal-leading-zero","format","registerDescriptionCallback","formatBlock","_getAttributeKey","newValue","*Change to:* %0","_LIST_","find","listStyle","attribute","getSuggestions","nodeAfter","*Set format:* %0","startIndex","lower-roman","start","*Format:* set order to regular","_registerLegacyDescription","plugins","upper-roman","model","_enableDefaultAttributesIntegration","FORMAT_LIST_REVERSED","data","listReversed","document","square","getFirstRange","next","reversed","*Format:* set order to reversed","circle","oldValue","default","getFirstMarker"];var gi,fi;gi=di,fi=485,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const hi=function(t,e){return di[t-=0]};class mi extends t.Plugin{[hi("0x34")](){if(!this[hi("0x23")].plugins[hi("0x27")](hi("0x3e")))return;const t=this.editor[hi("0x20")][hi("0x26")](hi("0x2a")),e=this[hi("0x23")][hi("0x9")][hi("0x26")](hi("0x30"));t[hi("0x1d")]&&e[hi("0xc")](hi("0x48"),[],[hi("0x48")]),t[hi("0x14")]&&e[hi("0xc")]("listReversed",[],[hi("0xf")]),t[hi("0x4")]&&e[hi("0xc")](hi("0x29"),[],[hi("0x29")]);const n={type:"format",content:""};e[hi("0x3c")][hi("0x41")](this[hi("0x3d")].bind(this));const r=this.editor.locale;e[hi("0x3c")][hi("0x3b")](hi("0xf"),Jr(r,hi("0xd"))),e[hi("0x3c")][hi("0x41")]((t=>{const{data:e}=t;if(e&&hi("0xf")==e[hi("0x1e")])return null==e[hi("0x44")]||0==e[hi("0x44")]&&null==e.oldValue?n:void 0})),e[hi("0x3c")][hi("0x3b")](hi("0x29"),Jr(r,hi("0x22"))),e._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&hi("0x29")==e[hi("0x1e")])return null==e[hi("0x44")]||1==e[hi("0x44")]&&null==e[hi("0x17")]?n:void 0})),this.editor[hi("0xb")][hi("0x10")].registerPostFixer((t=>{if(t[hi("0x37")][hi("0x2c")])return!1;let n=!1;const r=e[hi("0x1")]({skipNotAttached:!0}).filter((t=>{const n=e[hi("0x43")](t);return"listStart"==n||"listReversed"==n}));for(const o of r)"numbered"!=o[hi("0x12")]()[hi("0x6")][hi("0x2")][hi("0x28")](hi("0x2e"))&&(e._findSuggestions(o[hi("0x12")](),hi("0x0"))[hi("0x47")]((t=>hi("0x2e")==e[hi("0x43")](t[hi("0x24")])))||(t[hi("0x38")](o[hi("0x19")]()),n=!0));return n})),this._registerLegacyDescription()}[hi("0x3d")](t){const e=this[hi("0x23")][hi("0x33")],{data:n}=t,r={type:hi("0x40"),content:""};if(!n||hi("0x48")!=n.key)return;if(!n[hi("0x17")])return hi("0x18")==n[hi("0x44")]?r:{type:hi("0x40"),content:""+Jr(e,hi("0x3"),Jr(e,this[hi("0x32")](n[hi("0x44")])))};if(!n[hi("0x44")]){if("default"==n[hi("0x17")])return r;let o=t[hi("0x35")];for(;o;){if(o[hi("0xe")]&&hi("0x2e")==o[hi("0xe")][hi("0x1e")]&&o[hi("0xe")][hi("0x44")])return r;o=o[hi("0x13")]}return{type:"format",content:""+Jr(e,"*Remove format:* %0",Jr(e,this._getTranslationKeyForListStyle(n[hi("0x17")])))}}if(hi("0x18")!=n.newValue)return{type:hi("0x40"),content:""+Jr(e,hi("0x3"),Jr(e,this._getTranslationKeyForListStyle(n[hi("0x44")])))};let o=t[hi("0x35")];for(;o;){if(o[hi("0xe")]&&hi("0x2e")==o[hi("0xe")][hi("0x1e")]&&o[hi("0xe")][hi("0x44")]&&o.data.oldValue)return r;o=o.next}const i=t[hi("0x12")]()[hi("0x6")].nodeAfter[hi("0x28")](hi("0x2e"));return{type:"format",content:Jr(e,hi("0x3"),Jr(e,hi("0x3a")+i[hi("0x39")]()+hi("0x36")))}}[hi("0x8")](){const t=this[hi("0x23")],e=t.locale;t[hi("0x9")][hi("0x26")]("TrackChangesEditing")[hi("0x3c")][hi("0x41")]((t=>{if(hi("0x42")!=t[hi("0x25")])return;const{data:n}=t;if(!n)return;let r,o;switch(n[hi("0x1c")]){case"listStyle":r=hi("0x45"),o={type:"format",content:Jr(e,r,Jr(e,this[hi("0x32")](n[hi("0x1a")][0][hi("0x25")])))};break;case hi("0xf"):r=n.commandParams[0][hi("0x14")]?hi("0x15"):hi("0x7"),o={type:"format",content:Jr(e,r)};break;case hi("0x29"):r="*Format:* set start index to %0",o={type:hi("0x40"),content:Jr(e,r,n[hi("0x1a")][0].startIndex)}}return o}))}[hi("0x32")](t){return hi("0x3a")+(e=t,pi[hi("0x2d")](e)?hi("0x2f"):bi[hi("0x2d")](e)?hi("0x31"):null).toUpperCase()+hi("0x46")+t[hi("0x39")]()[hi("0x21")](/-/g,"_");var e}}const pi=[hi("0x1b"),hi("0x16"),hi("0x11")],bi=[hi("0x1f"),hi("0x3f"),hi("0x5"),hi("0xa"),hi("0x2b"),"upper-latin"];var Ei=n(331);const _i=["showSuggestionHighlights","getFirstRange","unbindElementFromMarkerName","ck-suggestion-marker-split","change","editor","remove","editing","writer","getFirstPosition","split","nextSibling","requires","TrackChangesEditing","fromRange","markerName","parent","end","get","bind","model","setSelection","options","enableCommand","markInsertion","detach","selection","downcastDispatcher","createRange","high","createPositionAt","markerNameToElements","init","commands","mapper","enterBlock","enter","removeMarker:suggestion:insertion"];var Ti,yi;Ti=_i,yi=317,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{static get[Ci("0x25")](){return[Ei.Enter]}[Ci("0x13")](){const t=this[Ci("0x1e")],e=t.plugins[Ci("0x5")](Ci("0x0")),n=t[Ci("0x14")][Ci("0x5")](Ci("0x17"));e[Ci("0xa")](Ci("0x17"),(()=>{t[Ci("0x7")][Ci("0x1d")]((r=>{const o=t[Ci("0x7")].document[Ci("0xd")],i=o[Ci("0x22")](),x=s.LiveRange[Ci("0x1")](o[Ci("0x1a")]());if(n[Ci("0x16")](r)){const n=t[Ci("0x7")][Ci("0x11")](i[Ci("0x3")][Ci("0x24")],0),o=r[Ci("0xf")](i,n);e[Ci("0xb")](o)}else r[Ci("0x8")](r[Ci("0xf")](x[Ci("0x4")]));x[Ci("0xc")](),n.fire("afterExecute",{writer:r})}))})),t[Ci("0x20")][Ci("0xe")].on("addMarker:suggestion:insertion",ti(t,Ci("0x23")),{priority:Ci("0x10")}),t[Ci("0x20")][Ci("0xe")].on(Ci("0x18"),((t,e,n)=>{const r=n[Ci("0x15")][Ci("0x12")](e.markerName);if(r)for(const t of r)t.hasClass(Ci("0x1c"))&&(n.mapper[Ci("0x1b")](t,e[Ci("0x2")]),n[Ci("0x21")][Ci("0x1f")](t))}),{priority:Ci("0x10")}),t.data[Ci("0xe")].on("addMarker:suggestion:insertion",((e,n,r)=>{r[Ci("0x9")][Ci("0x19")]&&ti(t,Ci("0x23"),{showActiveMarker:!1})[Ci("0x6")](this)(e,n,r)}),{priority:Ci("0x10")})}}const ki=["find","findByTextCallback","plugins","replaceAll","filter","has","createPositionAt","suggestion:deletion","TrackChangesEditing","start","FindAndReplaceEditing","getRange","string","enableCommand","FindAndReplaceUtils","_isInDeletionRange","handleFindCommand","end","createRange","model","getIntersection","get","findPrevious","markers","editor"];var Ii,Si;Ii=ki,Si=116,function(t){for(;--t;)Ii.push(Ii.shift())}(++Si);const Ri=function(t,e){return ki[t-=0]};class Li extends t.Plugin{afterInit(){if(!this[Ri("0x8")][Ri("0xb")][Ri("0xe")](Ri("0x13")))return;const t=this[Ri("0x8")][Ri("0xb")][Ri("0x5")](Ri("0x11"));t[Ri("0x16")](Ri("0x9"),this[Ri("0x0")].bind(this)),t[Ri("0x16")]("findNext"),t.enableCommand(Ri("0x6")),t[Ri("0x16")]("replace"),t.enableCommand(Ri("0xc"))}[Ri("0x0")](t,e,n={}){const r=this[Ri("0x8")][Ri("0xb")].get(Ri("0x17"));return t((t=>(Ri("0x15")==typeof e?r[Ri("0xa")](e,n):e)(t)[Ri("0xd")]((e=>!1===this[Ri("0x18")](e,t.item)))),n)}[Ri("0x18")](t,e){const n=this.editor[Ri("0x3")][Ri("0x2")](this[Ri("0x8")][Ri("0x3")][Ri("0xf")](e,t[Ri("0x12")]),this[Ri("0x8")][Ri("0x3")].createPositionAt(e,t[Ri("0x1")]));for(const t of this[Ri("0x8")].model[Ri("0x7")].getMarkersGroup(Ri("0x10")))if(null!==n[Ri("0x4")](t[Ri("0x14")]()))return!0;return!1}}const vi=["FontBackgroundColorEditing","get","toLowerCase","config","fontSize","format","formatInline","model","*Reset font family*","FORMAT_FONT_COLOR","title","FontSizeEditing","fontFamily","editor","fontBackgroundColor.colors","FontFamilyEditing","*Reset font size*","label","find","*Reset font background color*","afterInit","*Set font color:* %0","FORMAT_FONT_BACKGROUND","FontColorEditing","commandParams","fontColor.colors","value","*Set font size:* %0","TrackChangesEditing","fontBackgroundColor","plugins","*Set font family:* %0","has","trim","registerAttributeLabel","locale","type","FORMAT_FONT_FAMILY","fontSize.options","fontColor","commandName","_registerLegacyDescription","_descriptionFactory","FontSize"];var Ni,Mi;Ni=vi,Mi=173,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return vi[t-=0]},Oi=[{pluginName:wi("0xe"),commandName:wi("0x7")},{pluginName:wi("0x12"),commandName:wi("0xf")},{pluginName:wi("0x1a"),commandName:"fontColor"},{pluginName:wi("0x3"),commandName:"fontBackgroundColor"}];class Fi extends t.Plugin{[wi("0x17")](){const t=this[wi("0x10")].locale,e=this[wi("0x10")][wi("0x21")][wi("0x4")](wi("0x1f"));for(const{pluginName:t,commandName:n}of Oi)this[wi("0x10")].plugins[wi("0x23")](t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e[wi("0x1")][wi("0x25")]("fontSize",Jr(t,"FORMAT_FONT_SIZE")),e[wi("0x1")].registerAttributeLabel(wi("0xf"),Jr(t,wi("0x28"))),e[wi("0x1")].registerAttributeLabel(wi("0x2a"),Jr(t,wi("0xc"))),e._descriptionFactory[wi("0x25")](wi("0x20"),Jr(t,wi("0x19"))),this[wi("0x0")]()}[wi("0x0")](){const t=this[wi("0x10")],e=t[wi("0x26")];t[wi("0x21")][wi("0x4")]("TrackChangesEditing")[wi("0x1")].registerDescriptionCallback((t=>{const n=e.t;if(wi("0x9")!=t[wi("0x27")])return;const{data:r}=t;if(null!=r){if("fontSize"==r[wi("0x2b")]){const t=r[wi("0x1b")][0][wi("0x1d")];if(t){const r=n(this[wi("0x10")].plugins[wi("0x4")](wi("0x2")).normalizeSizeOptions(this[wi("0x10")][wi("0x6")][wi("0x4")](wi("0x29")))[wi("0x15")]((e=>e.model==t))[wi("0xd")])[wi("0x5")]();return{type:"format",content:Jr(e,wi("0x1e"),r)}}return{type:"format",content:Jr(e,wi("0x13"))}}if("fontFamily"==r[wi("0x2b")]){const t=r[wi("0x1b")][0][wi("0x1d")];return t?{type:wi("0x8"),content:Jr(e,wi("0x22"),t)}:{type:wi("0x8"),content:Jr(e,wi("0xb"))}}if(wi("0x2a")==r[wi("0x2b")]){const t=r[wi("0x1b")][0][wi("0x1d")];if(t){const r=(0,o.normalizeColorOptions)(this.editor[wi("0x6")][wi("0x4")](wi("0x1c"))).find((e=>e[wi("0xa")]==t));let i=t,s="";return r&&(i=r[wi("0x14")],s=n(i)[wi("0x5")]()),{type:"format",content:Jr(e,wi("0x18"),s).trim(),color:{value:t,title:s||i}}}return{type:wi("0x8"),content:Jr(e,"*Reset font color*")}}if("fontBackgroundColor"==r[wi("0x2b")]){const t=r[wi("0x1b")][0][wi("0x1d")];if(t){const r=(0,o.normalizeColorOptions)(this[wi("0x10")][wi("0x6")][wi("0x4")](wi("0x11")))[wi("0x15")]((e=>e[wi("0xa")]==t));let i=t,s="";return r&&(i=r[wi("0x14")],s=n(i).toLowerCase()),{type:"format",content:Jr(e,"*Set font background color:* %0",s)[wi("0x24")](),color:{value:t,title:s||i}}}return{type:wi("0x8"),content:Jr(e,wi("0x16"))}}}}))}}const Di=["join","slice","copyFormat","fontBackgroundColor","fontColor.colors","FontSize","split","plugins","pasteFormat","formatInline","TrackChangesEditing","find","toLowerCase","config","fontColor","commands","model","locale","length","format","*Remove all formatting*","push","label","editor","get","title","toUpperCase","registerDescriptionCallback","fontSize","enableCommand","_descriptionFactory","type","afterInit","boolean","fontSize.options"];var Bi,Pi;Bi=Di,Pi=137,function(t){for(;--t;)Bi.push(Bi.shift())}(++Pi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0x0")](){const t=this[Ui("0x1a")],e=t.plugins.get(Ui("0xd")),n=t[Ui("0x12")][Ui("0x1b")](Ui("0x5")),r=t.commands.get("pasteFormat");n&&r&&(e._enableDefaultAttributesIntegration(Ui("0xb")),e[Ui("0x20")]("copyFormat"),this._registerLegacyDescription())}_registerLegacyDescription(){const t=this[Ui("0x1a")],e=t[Ui("0x14")];t[Ui("0xa")][Ui("0x1b")](Ui("0xd"))[Ui("0x21")][Ui("0x1e")]((n=>{if("formatBlock"!=n.type&&Ui("0xc")!=n[Ui("0x22")])return;const{data:r}=n;if(r&&Ui("0xb")===r.commandName){const n=[],o=r.commandParams[0];for(const[e,r]of Object.entries(o))n[Ui("0x18")](Gi(t,e,r));return n[Ui("0x15")]?{type:Ui("0x16"),content:Jr(e,"*Set format to:* %0",n[Ui("0x3")](", "))}:{type:Ui("0x16"),content:Jr(e,Ui("0x17"))}}}))}}function Gi(t,e,n){const r=t[Ui("0x14")].t,i=e[Ui("0x9")](/(?=[A-Z])/).join(" "),s=r(i.charAt(0)[Ui("0x1d")]()+i[Ui("0x4")](1)).toLowerCase();if(Ui("0x1")==typeof n)return s;if(Ui("0x11")===e||Ui("0x6")===e){const e=(0,o.normalizeColorOptions)(t[Ui("0x10")].get(Ui("0x7")))[Ui("0xe")]((t=>t.model==n));return s+" ("+(e?r(e[Ui("0x19")]).toLowerCase():n)+")"}if(Ui("0x1f")===e&&isNaN(parseFloat(n))){const e=t[Ui("0xa")][Ui("0x1b")](Ui("0x8")).normalizeSizeOptions(t[Ui("0x10")].get(Ui("0x2")))[Ui("0xe")]((t=>t[Ui("0x13")]==n));return s+" ("+(e?r(e[Ui("0x1c")])[Ui("0xf")]():n)+")"}return s+" ("+n+")"}const Vi=["afterInit","title","plugins","_getHeadingLevel","format","heading","name","config","_enableDefaultAttributesIntegration","ELEMENT_HEADING_CUSTOM","paragraph","ELEMENT_HEADING","commandParams","match","find","_registerLegacyDescription","_headingOptions","commandName","editor","model","TrackChangesEditing","formatBlock","view","locale","HeadingEditing","*Change to:* %0","get","registerElementLabel"];var Hi,zi;Hi=Vi,zi=137,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x3")](){const t=this[Wi("0x15")];if(!t[Wi("0x5")].has(Wi("0x1b")))return;this[Wi("0x13")]=t[Wi("0xa")][Wi("0x1")]("heading.options");const e=t[Wi("0x1a")],n=t[Wi("0x5")][Wi("0x1")]("TrackChangesEditing");n[Wi("0xb")](Wi("0x8"));for(const t of this[Wi("0x13")])Wi("0xd")!=t.model&&n._descriptionFactory[Wi("0x2")](t[Wi("0x16")],(n=>{const r=this[Wi("0x6")](t[Wi("0x16")]);return null!==r?(s=n,x=r,Jr(e,Wi("0xe"),[s,x])):(o=n,i=t[Wi("0x4")],Jr(e,Wi("0xc"),[o,i]));var o,i,s,x}));this[Wi("0x12")]()}[Wi("0x12")](){const t=this[Wi("0x15")],e=t[Wi("0x1a")];t[Wi("0x5")].get(Wi("0x17"))._descriptionFactory.registerDescriptionCallback((t=>{if(Wi("0x18")!=t.type)return;const{data:n}=t;if(n&&"heading"==n[Wi("0x14")]){const t=n[Wi("0xf")][0].value,s=this._getHeadingLevel(t);if(null!==s)return{type:Wi("0x7"),content:Jr(e,Wi("0x0"),(1,i=s,Jr(e,"ELEMENT_HEADING",[1,i])))};const x=this[Wi("0x13")][Wi("0x11")]((e=>e[Wi("0x16")]===t))[Wi("0x4")];return{type:"format",content:Jr(e,Wi("0x0"),(r=1,o=x,Jr(e,Wi("0xc"),[r,o])))}}var r,o,i}))}_getHeadingLevel(t){var e,n;const r=t[Wi("0x10")](/^heading(\d+)/);if(r)return r[1];const o=null===(e=this[Wi("0x13")])||void 0===e?void 0:e[Wi("0x11")]((e=>e[Wi("0x16")]==t));if(o&&o[Wi("0x19")]){const t=o[Wi("0x19")],e=(null!==(n=t[Wi("0x9")])&&void 0!==n?n:t)[Wi("0x10")](/^h(\d+)/);if(e)return e[1]}return null}}const qi=["registerAttributeLabel","formatInline","plugins","_enableDefaultAttributesIntegration","registerDescriptionCallback","_descriptionFactory","FORMAT_HIGHLIGHT","commandParams","*Set highlight:* %0","locale","model","type","commandName","highlight.options","editor","*Remove highlight*","has","TrackChangesEditing","get","highlight","afterInit","find","HighlightEditing","config","title","value","toLowerCase"];var $i,Xi;$i=qi,Xi=409,function(t){for(;--t;)$i.push($i.shift())}(++Xi);const Zi=function(t,e){return qi[t-=0]};class Yi extends t.Plugin{[Zi("0x10")](){const t=this[Zi("0xa")];if(!t[Zi("0x19")][Zi("0xc")](Zi("0x12")))return;const e=t[Zi("0x19")][Zi("0xe")](Zi("0xd")),n=t[Zi("0x5")];e[Zi("0x1a")](Zi("0xf"),[Zi("0xf")]),e[Zi("0x1")][Zi("0x17")]("highlight",Jr(n,Zi("0x2"))),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[Zi("0x5")];t[Zi("0x19")].get(Zi("0xd"))._descriptionFactory[Zi("0x0")]((n=>{if(Zi("0x18")!=n[Zi("0x7")])return;const{data:r}=n;if(r&&"highlight"==r[Zi("0x8")]){const n=e.t,o=r[Zi("0x3")][0][Zi("0x15")];if(o){const r=t[Zi("0x13")][Zi("0xe")](Zi("0x9"))[Zi("0x11")]((t=>t[Zi("0x6")]==o)),i=n(r[Zi("0x14")])[Zi("0x16")]();return{type:"format",content:Jr(e,Zi("0x4"),i),color:{value:r.color,title:r.title}}}return{type:"format",content:Jr(e,Zi("0xb"),Jr(e,"FORMAT_HIGHLIGHT"))}}}))}}const Ji=["locale","editor","afterInit","addClass","horizontalLine","registerElementLabel","showSuggestionHighlights","for","plugins","_descriptionFactory","createContainerElement","createEmptyElement","ck-horizontal-line","TrackChangesEditing","get","createPositionAt","HorizontalLineEditing","div","enableCommand","dataDowncast","insert","has"];var Qi,ts;Qi=Ji,ts=187,function(t){for(;--t;)Qi.push(Qi.shift())}(++ts);const es=function(t,e){return Ji[t-=0]};class ns extends t.Plugin{[es("0xd")](){const t=this[es("0xc")];if(!t[es("0x13")][es("0xa")](es("0x5")))return;t.plugins[es("0x3")](es("0x2"))[es("0x7")]("horizontalLine");const e=t[es("0x13")][es("0x3")]("TrackChangesEditing"),n=t[es("0xb")];e[es("0x14")][es("0x10")](es("0xf"),(t=>Jr(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[es("0x12")](es("0x8")).elementToStructure({model:es("0xf"),view:(t,{writer:e,options:n})=>{if(!n[es("0x11")])return null;const r=e[es("0x15")](es("0x6")),o=e[es("0x0")]("hr");return e[es("0xe")](es("0x1"),r),e[es("0x9")](e[es("0x4")](r,0),o),r},converterPriority:"high"})}}const rs=["getFirstRange","_descriptionFactory","registerElementLabel","formatBlock","nodeAfter","start","rawHtml","htmlEmbed","get","_registerLegacyDescription","ELEMENT_HTML_EMBED","TrackChangesEditing","attribute","commandName","editor","has","HtmlEmbed","format","element","key","plugins","locale","_enableDefaultAttributesIntegration","type","registerDescriptionCallback","*Change %0 content*","value"];var os,is;os=rs,is=129,function(t){for(;--t;)os.push(os.shift())}(++is);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{afterInit(){const t=this.editor;if(!t[ss("0x1a")][ss("0x15")](ss("0x16")))return;const e=t[ss("0x1a")][ss("0xe")](ss("0x11")),n=t[ss("0x0")];e[ss("0x7")][ss("0x8")](ss("0xc"),(t=>Jr(n,ss("0x10"),t))),e[ss("0x1")](ss("0xd"),[],[ss("0x5")]),e[ss("0x7")][ss("0x3")]((t=>{if(ss("0x12")!=t.type)return;const{data:e}=t;if(e&&ss("0x5")==e[ss("0x19")]&&t[ss("0x6")]()[ss("0xb")][ss("0xa")].is(ss("0x18"),"rawHtml")){const t=Jr(n,ss("0x10"));return{type:"format",content:Jr(n,ss("0x4"),t)}}})),this._registerLegacyDescription()}[ss("0xf")](){const t=this[ss("0x14")],e=t[ss("0x0")];t[ss("0x1a")][ss("0xe")]("TrackChangesEditing")[ss("0x7")][ss("0x3")]((t=>{if(ss("0x9")!=t[ss("0x2")])return;const{data:n}=t;if(n&&ss("0xd")==n[ss("0x13")]){const t=Jr(e,ss("0x10"));return{type:ss("0x17"),content:Jr(e,"*Change %0 content*",t)}}}))}}const as=["document","_registerLegacyDescription","getFirstRange","resizeImage","selection","_descriptionFactory","isBlockImage","getContainedElement","formatBlock","*Remove image text alternative*","imageTextAlternative","detach","format","toPrevious","forceDefaultExecution","enableCommand","isCollapsed","_enableDefaultAttributesIntegration","plugins","caption","*Set image text alternative:* %0","convertBlockImageToInline","ImageCaptionUtils","accept","getSuggestionCallback","has","ELEMENT_CAPTION","registerDescriptionCallback","locale","imageCaption","fromPosition","markInsertion","*Set image width:* %0","ImageUploadEditing","model","TrackChangesEditing","ELEMENT_IMAGE","start","createRangeOn","join","Inline image to block image","isEqual","formatInline","FORMAT_IMAGE_SIZE","registerCustomCallback","previous","ImageEditing","convertInlineImageToBlock","ImageCaptionEditing","imageStylePreApply","resizedWidth","isBefore","filter","_suggestionFactory","newValue","length","key","type","schema","insertion","nodeAfter","discard","addObject","element","createRange","ImageUtils","alt","subType","ImageInlineEditing","registerAttributeLabel","_findSuggestions","get","getCaptionFromImageModelElement","afterInit","markBlockFormat","chain","deletion","ImageTextAlternativeEditing","uploadImage","backward","toNext","registerElementLabel","commandParams","nodeBefore","width","change","imageTypeInline","end","editor","findIndex","getClosestSelectedImageElement","ImageBlockEditing"];var cs,ls;cs=as,ls=126,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x27")](){const t=this[us("0x36")];if(!t[us("0x4c")][us("0x53")](us("0xc")))return;const e=t.plugins[us("0x25")]("TrackChangesEditing"),n=t.plugins.get(us("0x1f")),r=t[us("0x56")];e.enableCommand("insertImage"),e[us("0x3f")][us("0x2f")]("imageBlock",(t=>Jr(r,us("0x2"),t))),e[us("0x3f")].registerElementLabel("imageInline",(t=>Jr(r,"ELEMENT_INLINE_IMAGE",t))),e[us("0x3f")][us("0x2f")](us("0x4d"),(()=>Jr(r,us("0x54")))),t[us("0x4c")][us("0x53")](us("0x5b"))&&e[us("0x49")](us("0x2c")),t[us("0x4c")].has(us("0x39"))&&t[us("0x4c")][us("0x53")](us("0x22"))&&(e[us("0x49")]("imageTypeInline",((r,o)=>{const i=n[us("0x38")](t.model.document[us("0x3e")]);t[us("0x0")][us("0x33")]((()=>{e[us("0x28")](i,{commandName:us("0x34"),commandParams:[o]},[],us("0x4f"))}))})),e[us("0x49")]("imageTypeBlock",((r,o)=>{t[us("0x0")].change((i=>{let x=n.getClosestSelectedImageElement(t[us("0x0")][us("0x3a")][us("0x3e")]),a=i[us("0x4")](x);const c=s.LivePosition[us("0x58")](a[us("0x3")],us("0x47")),l=s.LivePosition[us("0x58")](a.end,us("0x2e"));e[us("0x48")]((()=>r(o))),x=n[us("0x38")](t.model[us("0x3a")][us("0x3e")]),a=i[us("0x4")](x);const u=i[us("0x1e")](c,l);c.detach(),l[us("0x45")](),e.markBlockFormat(x,{commandName:"imageTypeInline",commandParams:[o]},[],us("0xd")),u[us("0x3")][us("0x11")](a.start)&&e[us("0x59")](i[us("0x1e")](u.start,a[us("0x3")]),us("0xd")),a[us("0x35")][us("0x11")](u[us("0x35")])&&e[us("0x59")](i[us("0x1e")](a[us("0x35")],u[us("0x35")]),us("0xd"))}))})),e._suggestionFactory[us("0xa")]("formatBlock",us("0xd"),us("0x5"),(()=>!1)),e[us("0x13")][us("0xa")]("formatBlock",us("0xd"),us("0x51"),(()=>!1)),e[us("0x13")][us("0xa")]("formatBlock",us("0xd"),us("0x1b"),e._suggestionFactory[us("0x52")](us("0x42"),"",us("0x51"))),e[us("0x13")][us("0xa")](us("0x19"),us("0xd"),us("0x5"),(()=>!1)),e[us("0x13")][us("0xa")](us("0x19"),us("0xd"),us("0x1b"),(([n])=>{const r=e._suggestionFactory.getSuggestionCallback("insertion","",us("0x1b"));let o=n[us("0x3")],i=n[us("0x35")];const s=t[us("0x0")][us("0x18")].getNearestSelectionRange(o,us("0x2d")),x=t[us("0x0")].schema.getNearestSelectionRange(i,"forward");s[us("0x4a")]&&(o=s[us("0x3")]),x[us("0x4a")]&&(i=x.end),r([t[us("0x0")][us("0x1e")](o,i)])})),e._suggestionFactory[us("0xa")](us("0x42"),"convertInlineImageToBlock","chain",x),e[us("0x13")][us("0xa")](us("0x19"),us("0xd"),us("0x29"),x)),t[us("0x4c")][us("0x53")](us("0xe"))&&(e[us("0x49")]("toggleImageCaption",((r,o)=>{const i=t.plugins[us("0x25")](us("0x50"));let s=n[us("0x38")](t.model[us("0x3a")].selection),x=i.getCaptionFromImageModelElement(s);t.model[us("0x33")]((()=>{if(x)return void e.markDeletion(t[us("0x0")].createRangeOn(x));const a=n.isBlockImage(s);r(o),s=n[us("0x38")](t[us("0x0")][us("0x3a")][us("0x3e")]),x=i[us("0x26")](s),e[us("0x59")](t[us("0x0")][us("0x4")](x),a?null:"imageCaption")}))})),e[us("0x13")][us("0xa")](us("0x19"),us("0x57"),us("0x29"),x));const o=[{type:us("0x42"),subType:us("0xf")},{type:"insertion",subType:us("0x57")},{type:us("0x42"),subType:us("0xd")},{type:us("0x19"),subType:us("0xd")}];function i(t,r){const i=o.findIndex((({type:e,subType:n})=>t[us("0x17")]==e&&t[us("0x21")]==n)),s=o[us("0x37")]((({type:t,subType:e})=>r.type==t&&r[us("0x21")]==e));if(i<0||s<0)return!1;const x=t[us("0x3c")](),a=r.getFirstRange();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=e[us("0x24")](x,us("0x19"))[us("0x12")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[us("0x21")]));if(t.length>1&&a[us("0x35")][us("0x7")](x.start))return!0;if(1==t[us("0x15")]&&(x[us("0x3")][us("0x7")](a[us("0x35")])||x[us("0x35")][us("0x7")](a[us("0x3")])))return!0}if(3==i&&3==s&&x.start[us("0x11")](a[us("0x3")])){const t=x[us("0x35")][us("0x1a")],e=a.start[us("0x31")];return n[us("0x40")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[us("0x4c")][us("0x53")]("ImageResize")&&(e[us("0x4b")]("resizeImage",[],["resizedWidth"]),e[us("0x3f")][us("0x23")](us("0x10"),Jr(r,us("0x9")))),t[us("0x4c")].has(us("0x2b"))&&e[us("0x4b")](us("0x44"),[],["alt"]),e[us("0x3f")].registerDescriptionCallback((t=>{if(o.find((({type:e,subType:n})=>t.type==e&&t[us("0x21")]==n)))return t[us("0xb")]?{}:void 0})),e[us("0x3f")][us("0x55")]((t=>{if("insertion"==t[us("0x17")]||us("0x2a")==t[us("0x17")]){const e=t[us("0x41")]();if(e&&e.is(us("0x1d"),us("0x4d")))return{type:us("0x19")==t[us("0x17")]?us("0x1c"):"removeObject",element:e,quantity:1}}})),e[us("0x3f")].registerDescriptionCallback((t=>us("0x42")==t[us("0x17")]&&us("0xd")==t.subType?{type:us("0x46"),content:us("0x6")}:us("0x42")==t[us("0x17")]&&us("0x4f")==t[us("0x21")]?{type:"format",content:"Block image to inline image"}:void 0)),e._descriptionFactory[us("0x55")]((t=>{if("attribute"!=t[us("0x17")])return;const{data:e}=t;if(!e||us("0x20")!=e[us("0x16")])return;const n=e[us("0x14")];return n?{type:us("0x46"),content:Jr(r,us("0x4e"),'"'+n+'"')}:{type:us("0x46"),content:Jr(r,us("0x43"))}})),this[us("0x3b")]()}[us("0x3b")](){const t=this[us("0x36")],e=t[us("0x56")];t[us("0x4c")][us("0x25")](us("0x1"))[us("0x3f")].registerDescriptionCallback((t=>{if("formatBlock"!=t[us("0x17")]&&us("0x8")!=t[us("0x17")])return;const{data:n}=t;if(n){if(us("0x44")==n.commandName){const t=n[us("0x30")][0][us("0x14")];return t?{type:us("0x46"),content:Jr(e,us("0x4e"),'"'+t+'"')}:{type:us("0x46"),content:Jr(e,"*Remove image text alternative*")}}if(us("0x3d")==n.commandName){const t=n[us("0x30")][0][us("0x32")];return t?{type:us("0x46"),content:Jr(e,us("0x5a"),t)}:{type:us("0x46"),content:Jr(e,"*Reset image width*")}}}}))}}const gs=["formatInline","get","newValue","_enableDefaultAttributesIntegration","commandName","getSuggestionCallback","afterInit","accept","_handleLegacySuggestions","replaceImageSource","TrackChangesEditing","editor","plugins","*Format:* replace image URL","has","attribute","registerDescriptionCallback","registerCustomCallback","formatBlock","format","src","*Replace image URL*","_registerLegacyDescription","_descriptionFactory","ImageEditing","discard","type","locale","key","oldValue","_suggestionFactory"];var fs,hs;fs=gs,hs=500,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x2")](){if(!this[ms("0x7")][ms("0x8")][ms("0xa")](ms("0x14")))return;const t=this[ms("0x7")][ms("0x17")],e=this.editor[ms("0x8")].get(ms("0x6"));e[ms("0x1e")](ms("0x5"),[],["src"]),e[ms("0x13")].registerDescriptionCallback((e=>{if(ms("0xb")!=e[ms("0x16")])return;const{data:n}=e;return n&&ms("0x10")==n[ms("0x18")]?n[ms("0x1d")]&&n[ms("0x19")]?{type:ms("0xf"),content:Jr(t,ms("0x11"))}:{type:ms("0xf"),content:""}:void 0})),this[ms("0x4")]()}[ms("0x4")](){const t=this[ms("0x7")].plugins[ms("0x1c")](ms("0x6"));t[ms("0x1a")].registerCustomCallback("formatBlock",ms("0x5"),"accept",t[ms("0x1a")][ms("0x1")](ms("0xe"),null,ms("0x15"))),t[ms("0x1a")][ms("0xd")](ms("0xe"),ms("0x5"),ms("0x15"),t[ms("0x1a")][ms("0x1")]("formatBlock",null,ms("0x3"))),this[ms("0x12")]()}[ms("0x12")](){const t=this[ms("0x7")],e=t.locale;t[ms("0x8")][ms("0x1c")](ms("0x6"))._descriptionFactory[ms("0xc")]((t=>{if(ms("0xe")!=t.type&&ms("0x1b")!=t[ms("0x16")])return;const{data:n}=t;return n&&ms("0x5")==n[ms("0x0")]?{type:"format",content:Jr(e,ms("0x9"))}:void 0}))}}const bs=["isBefore","shouldConvertImageType","filter","accept","ImageStyleEditing","type","length","registerPostFixer","commandName","plugins","refresh","chain","normalizedStyles","commands","title","registerCustomCallback","document","editor","start","TrackChangesEditing","getFirstRange","FORMAT_SIDE_IMAGE","nodeBefore","newRange","findIndex","afterInit","discardSuggestion","from","isOwn","registerDescriptionCallback","differ","subType","*Format:* %0","format","getSuggestions","commandParams","isInContent","toLowerCase","isBlockImage","end","enableCommand","suggestion","insertion","formatInline","join","markBlockFormat","imageStylePostApply","formatBlock","author","convertInlineImageToBlock","markInlineFormat","forEach","getClosestSelectedImageElement","isIntersecting","createRangeOn","_registerLegacyDescription","setImageNaturalSizeAttributes","selection","_suggestionFactory","imageStylePreApply","imageStyle","get","imageTypeBlock","next","imageCaption","has","model","isInlineImage","isEqual","getContainedElement","value","_splitMarkerName","getSuggestion","getSuggestionCallback"];var Es,_s;Es=bs,_s=410,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x3b")](){const t=this.editor;if(!t.plugins[Ts("0x19")](Ts("0x26")))return;const n=t[Ts("0x2b")][Ts("0x15")]("TrackChangesEditing"),r=t[Ts("0x2b")][Ts("0x15")]("ImageUtils"),o={};n[Ts("0x0")]("imageStyle",((o,i)=>{const s=t.plugins[Ts("0x15")]("Users").me,x=t[Ts("0x2f")][Ts("0x15")](Ts("0x14"));let a=r.getClosestSelectedImageElement(t[Ts("0x1a")][Ts("0x32")].selection),c=t[Ts("0x1a")][Ts("0xe")](a),l=x[Ts("0x1e")];if(l==i[Ts("0x1e")])return;const u={commandName:Ts("0x14"),commandParams:[i],formatGroupId:(0,e.uid)()};t[Ts("0x1a")].change((()=>{if(n[Ts("0x44")]()[Ts("0x24")]((t=>t[Ts("0x46")]&&s==t[Ts("0x8")]&&(Ts("0x7")==t.type||Ts("0x3")==t.type)&&(Ts("0x13")==t[Ts("0x41")]||"imageStylePostApply"==t[Ts("0x41")])&&t[Ts("0x36")]().isEqual(c)))[Ts("0xb")]((t=>n[Ts("0x3c")](t.head))),a=r[Ts("0xc")](t[Ts("0x1a")][Ts("0x32")][Ts("0x11")]),c=t[Ts("0x1a")][Ts("0xe")](a),x[Ts("0x2c")](),t.commands[Ts("0x15")]("imageTypeInline")[Ts("0x2c")](),t.commands[Ts("0x15")](Ts("0x16"))[Ts("0x2c")](),l=x[Ts("0x1e")],l!=i[Ts("0x1e")])return r[Ts("0x1b")](a)&&x[Ts("0x23")](i[Ts("0x1e")],a)?(o({...i,setImageSizes:!1}),a=r[Ts("0xc")](t[Ts("0x1a")][Ts("0x32")][Ts("0x11")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x13"))):void(r[Ts("0x48")](a)?n[Ts("0x5")](a,u,[],"imageStylePostApply"):n[Ts("0xa")](c,u,Ts("0x6")))}))}));for(const e of t[Ts("0x2b")][Ts("0x15")](Ts("0x26"))[Ts("0x2e")])o[e.name]=e[Ts("0x30")][Ts("0x47")]();n[Ts("0x12")][Ts("0x31")](Ts("0x7"),"imageStylePreApply",Ts("0x4"),(()=>!1)),n[Ts("0x12")][Ts("0x31")](Ts("0x7"),"imageStylePostApply","join",(()=>!1)),n[Ts("0x12")][Ts("0x31")](Ts("0x3"),Ts("0x6"),Ts("0x4"),(()=>!1)),n[Ts("0x12")].registerCustomCallback(Ts("0x7"),Ts("0x13"),Ts("0x25"),(([t])=>{r[Ts("0x10")](t[Ts("0x1d")]())})),n[Ts("0x12")][Ts("0x31")](Ts("0x7"),"imageStylePreApply","discard",((t,e)=>{n[Ts("0x12")][Ts("0x21")](Ts("0x7"),"",Ts("0x25"))(t,{commandName:e[Ts("0x2a")],commandParams:e.commandReversedParams})})),n[Ts("0x12")].registerCustomCallback(Ts("0x7"),Ts("0x13"),Ts("0x2d"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:Ts("0x7"),subType:"imageStylePreApply"},{type:Ts("0x2"),subType:Ts("0x18")},{type:Ts("0x7"),subType:Ts("0x9")},{type:"insertion",subType:Ts("0x9")}];function s(t,e){const o=i[Ts("0x3a")]((({type:e,subType:n})=>t[Ts("0x27")]==e&&t.subType==n)),s=i[Ts("0x3a")]((({type:t,subType:n})=>e[Ts("0x27")]==t&&e[Ts("0x41")]==n));if(o<0||s<0)return!1;const x=t[Ts("0x36")](),a=e[Ts("0x36")]();if((0==o||1==o)&&2==s&&x[Ts("0xd")](a))return!0;if(2==o&&3==s){const t=n._findSuggestions(x,Ts("0x2"))[Ts("0x24")]((({suggestion:t,meta:e})=>e[Ts("0x3e")]&&Ts("0x9")==t[Ts("0x41")]));if(t[Ts("0x28")]>1&&a[Ts("0x49")][Ts("0x1c")](x[Ts("0x34")]))return!0;if(1==t[Ts("0x28")]&&(x[Ts("0x34")].isEqual(a.end)||x.end.isEqual(a[Ts("0x34")])))return!0}if(3==o&&3==s&&x[Ts("0x34")][Ts("0x22")](a[Ts("0x34")])){const t=x[Ts("0x49")].nodeAfter,e=a[Ts("0x34")][Ts("0x38")];return r[Ts("0x48")](t)&&t===e}return!1}t.model[Ts("0x32")][Ts("0x29")]((()=>{let e=!1;const o=Array[Ts("0x3d")](t[Ts("0x1a")][Ts("0x32")][Ts("0x40")].getChangedMarkers());for(const{name:t,data:i}of o){const{group:o,type:s,subType:x,id:a}=n[Ts("0x1f")](t);if(Ts("0x1")==o&&n.hasSuggestion(a)){if(Ts("0x7")==s&&(Ts("0x13")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(i[Ts("0x39")]){const o=t.getFirstRange().getContainedElement();if(r.isBlockImage(o))continue;n[Ts("0x3c")](t),e=!0}}if(Ts("0x2")==s&&Ts("0x18")==x&&!i[Ts("0x39")]){const t=n[Ts("0x20")](a);t.next&&t[Ts("0x17")][Ts("0x46")]&&(n[Ts("0x3c")](t[Ts("0x17")]),e=!0)}}}return e})),this._registerLegacyDescription(o)}[Ts("0xf")](t){const e=this[Ts("0x33")],n=e.locale;e[Ts("0x2b")][Ts("0x15")](Ts("0x35"))._descriptionFactory[Ts("0x3f")]((e=>{if(Ts("0x7")!=e[Ts("0x27")]&&Ts("0x3")!=e[Ts("0x27")])return;const{data:r}=e;if(!r||Ts("0x14")!=r[Ts("0x2a")])return;const o=r[Ts("0x45")][0][Ts("0x1e")];return i="side"===o?Jr(n,Ts("0x37")):t[o]||o,{type:Ts("0x43"),content:Jr(n,Ts("0x42"),i)};var i}))}}const Cs=["high","collaboration_features","_handleImportedData","trackChanges","commands","lowest","track_changes","TrackChangesEditing","importWord","get","plugins","execute","_trackChangesValueDuringImport","enableCommand","dataInsert","_setSuggestionData","value","bind","_trackChangesExecuted","editor","listenTo","Users"];var As,ks;As=Cs,ks=481,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Ss extends t.Plugin{constructor(t){super(t),this[Is("0xf")]=!1,this[Is("0x15")]=!1}afterInit(){const t=this[Is("0x0")],e=t[Is("0x7")][Is("0xc")]("importWord"),n=t[Is("0x7")][Is("0xc")](Is("0x6"));e&&(e.on(Is("0xe"),((t,[,e])=>{this[Is("0xf")]=n[Is("0x13")],e[Is("0x4")][Is("0x9")]=!this[Is("0xf")]}),{priority:Is("0x3")}),this[Is("0x1")](e,Is("0x11"),this[Is("0x5")][Is("0x14")](this)),this.listenTo(e,Is("0x11"),(()=>{this._trackChangesExecuted&&(n[Is("0xe")](),this[Is("0x15")]=!1)}),{priority:Is("0x8")}),t[Is("0xd")].get(Is("0xa"))[Is("0x10")](Is("0xb")))}_handleImportedData(t,e){const{suggestions:n}=e,r=this.editor[Is("0x7")][Is("0xc")](Is("0x6")),o=r[Is("0x13")];this[Is("0xf")]!==o&&(r[Is("0xe")](),this[Is("0x15")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const o={id:t,type:e,authorId:this[Is("0x0")][Is("0xd")][Is("0xc")](Is("0x2")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:Is("0xb")}}};this[Is("0x0")][Is("0xd")][Is("0xc")](Is("0xa"))[Is("0x12")](o)}))}}const Rs=["indent","_descriptionFactory","IndentEditing","formatBlock","has","*Indent:* %0","enableCommand","registerAttributeLabel","_registerLegacyDescription","IndentBlock","plugins","format","TrackChangesEditing","indentBlock","commandName","_enableDefaultAttributesIntegration","outdentBlock","type","getItemLabel","blockIndent","outdent","*Outdent:* %0","registerDescriptionCallback","get","editor","FORMAT_INDENT","locale"];var Ls,vs;Ls=Rs,vs=149,function(t){for(;--t;)Ls.push(Ls.shift())}(++vs);const Ns=function(t,e){return Rs[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this[Ns("0xa")],e=t[Ns("0x17")][Ns("0x9")](Ns("0x19"));if(t[Ns("0x17")][Ns("0x11")](Ns("0xf"))&&(e[Ns("0x13")](Ns("0xd")),e[Ns("0x13")](Ns("0x6"))),t[Ns("0x17")].has(Ns("0x16")))for(const t of[Ns("0x1a"),Ns("0x2")])e[Ns("0x1")](t);const n=t[Ns("0xc")];e._registerBlockAttribute("blockIndent"),e[Ns("0xe")][Ns("0x14")](Ns("0x5"),Jr(n,Ns("0xb"))),this._registerLegacyDescription()}[Ns("0x15")](){const t=this.editor,e=t.locale,n=t[Ns("0x17")][Ns("0x9")]("TrackChangesEditing");n[Ns("0xe")][Ns("0x8")]((t=>{if(Ns("0x10")!=t[Ns("0x3")])return;const{data:r}=t;if(!r)return;if(Ns("0x1a")!=r.commandName&&Ns("0x2")!=r.commandName)return;const o=t.getItems()[0],i=n[Ns("0xe")][Ns("0x4")](o);return Ns("0x1a")==r[Ns("0x0")]?{type:Ns("0x18"),content:Jr(e,Ns("0x12"),i)}:"outdentBlock"==r[Ns("0x0")]?{type:Ns("0x18"),content:Jr(e,Ns("0x7"),i)}:void 0}))}}var ws,Os,Fs=["init","input","editor","enableCommand","TrackChangesEditing","plugins","requires"];ws=Fs,Os=478,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{static get[Ds("0x4")](){return[$o.Input]}[Ds("0x5")](){this[Ds("0x0")][Ds("0x3")].get(Ds("0x2"))[Ds("0x1")](Ds("0x6"))}}const Ps=["link","TrackChangesEditing","registerDescriptionCallback","_descriptionFactory","toLowerCase","type","get","commandName","format","commands","*Remove link*","key","label","has","plugins","manualDecorators","LinkEditing","locale","afterInit","_registerLegacyDescription","_enableDefaultAttributesIntegration","editor","newValue","registerAttributeLabel","attribute","map","formatInline","link (","unlink"];var Us,js;Us=Ps,js=108,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{[Gs("0x1a")](){const t=this[Gs("0x0")];if(!t[Gs("0x16")][Gs("0x15")](Gs("0x18")))return;const e=t.plugins[Gs("0xe")](Gs("0x9")),n=t[Gs("0x11")][Gs("0xe")]("link");e[Gs("0x1c")]("link",["linkHref",...n[Gs("0x17")][Gs("0x4")]((t=>t.id))]),e[Gs("0x1c")](Gs("0x7"));for(const t of n[Gs("0x17")])e[Gs("0xb")][Gs("0x2")](t.id,Gs("0x6")+t[Gs("0x14")][Gs("0xc")]()+")");e._descriptionFactory.registerDescriptionCallback((e=>{if(Gs("0x3")!=e[Gs("0xd")])return;const{data:n}=e;if(!n||"linkHref"!=n[Gs("0x13")])return;const r=n[Gs("0x1")],o=t[Gs("0x19")];return{type:Gs("0x10"),content:null==r?Jr(o,"*Remove link*"):Jr(o,"*Set link:* %0",'"'+r+'"')}})),this[Gs("0x1b")]()}[Gs("0x1b")](){const t=this[Gs("0x0")],e=t[Gs("0x19")];t[Gs("0x16")][Gs("0xe")](Gs("0x9"))[Gs("0xb")][Gs("0xa")]((t=>{if(Gs("0x5")!=t[Gs("0xd")])return;const{data:n}=t;if(n){if(Gs("0x8")==n[Gs("0xf")]){const t=n.commandParams[0];return{type:Gs("0x10"),content:Jr(e,"*Set link:* %0",'"'+t+'"')}}return"unlink"==n[Gs("0xf")]?{type:"format",content:Jr(e,Gs("0x12"))}:void 0}}))}}const Hs=["commandName","document","enableCommand","listItem","plugins","indentList","length","change","value","commandParams","filter","*Change to:* %0","*Indent:* %0","commands","schema","ELEMENT_TODO_LIST","*Uncheck item*","add","nextSibling","element","slice","execute","checkChild","bulleted","getAttribute","_descriptionFactory","numberedList","markBlockFormat","TrackChangesEditing","parent","get","todoList","findIndex","type","outdentList","*Check item*","todoListChecked","replace","has","name","from","createRange","format","todo","checkTodoList","selection","paragraph","*Outdent:* %0","bulletedList","end","_selectedElements","blockName","ELEMENT_BULLETED_LIST","isObject","LegacyListEditing","afterInit","List","getSelectedBlocks","createPositionAt","formatBlock","ELEMENT_LIST_ITEM","model","listIndent","registerDescriptionCallback","formatInline","previousSibling","push"];var zs,Ws;zs=Hs,Ws=283,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x28")](){const t=this.editor,e=t.locale;if(!t[Ks("0x38")][Ks("0x17")](Ks("0x27")))return;const n=t[Ks("0x38")][Ks("0xf")](Ks("0xd")),r=t[Ks("0x38")][Ks("0x17")]("LegacyTodoListEditing");function o(e){return()=>{const r=t[Ks("0x2e")].document[Ks("0x1e")],o=t[Ks("0x41")][Ks("0xf")](e);if(o[Ks("0x3c")])return void t[Ks("0x6")](Ks("0x1f"),{});const i=e[Ks("0x5")](0,-4),s=function(t,e,n){let r=Array[Ks("0x19")](t)[Ks("0x3e")]((t=>{return e=t,(r=n)[Ks("0x7")](e[Ks("0xe")],Ks("0x37"))&&!r[Ks("0x26")](e);var e,r}));r=r.filter((t=>!t.is("element","listItem")||t[Ks("0x9")]("listType")!=e));const o=new Set;for(const t of r)t.is(Ks("0x4"),Ks("0x37"))?o[Ks("0x2")]($s(t)):o[Ks("0x2")](t);return Array[Ks("0x19")](o)}(r[Ks("0x2a")](),i,t[Ks("0x2e")][Ks("0x42")]);t[Ks("0x2e")].change((()=>{for(const t of s)n[Ks("0xc")](t,{commandName:e,commandParams:[{forceValue:!o.value}],formatGroupId:Ks("0x24")},Xs(t))}))}}function i(e){return()=>{const r=function(t){let e=Array[Ks("0x19")](t);const n=e[Ks("0x11")]((t=>Ks("0x37")!=t[Ks("0x18")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ks("0x2e")][Ks("0x35")].selection[Ks("0x2a")]()),o=t.model[Ks("0x1a")](t.model.createPositionAt(r[0],"before"),t.model[Ks("0x2b")](r[r[Ks("0x3a")]-1],Ks("0x22")));t.model[Ks("0x3b")]((()=>{n[Ks("0xc")](o,{commandName:e,commandParams:[],formatGroupId:Ks("0x2f")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ks("0x9")](Ks("0x2f"))>n.getAttribute(Ks("0x2f"));)e[Ks("0x2")](t),t=t[Ks("0x3")]}return Array.from(e)}(r))}))}}n[Ks("0x36")](Ks("0xb"),o(Ks("0xb"))),n[Ks("0x36")]("bulletedList",o(Ks("0x21"))),r&&n[Ks("0x36")](Ks("0x10"),o("todoList")),n[Ks("0x36")]("indentList",i(Ks("0x39"))),n[Ks("0x36")](Ks("0x13"),i("outdentList")),r&&n.enableCommand(Ks("0x1d"),(()=>{const e=t[Ks("0x41")][Ks("0xf")](Ks("0x1d")),r=Array[Ks("0x19")](e[Ks("0x23")]);r[Ks("0x3e")]((t=>t[Ks("0x9")](Ks("0x15"))!=e[Ks("0x3c")])),t[Ks("0x2e")][Ks("0x3b")]((()=>{for(const t of r)n[Ks("0xc")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ks("0x3c")]}]})}))})),n[Ks("0xa")].registerElementLabel("listItem",(t=>Jr(e,Ks("0x2d"),t))),n[Ks("0xa")][Ks("0x30")]((t=>{if(Ks("0x2c")!=t[Ks("0x12")]&&Ks("0x31")!=t[Ks("0x12")])return;const{data:n}=t;if(n){if(Ks("0xb")==n.commandName||"bulletedList"==n[Ks("0x34")]||Ks("0x10")==n[Ks("0x34")])switch(n.commandName[Ks("0x16")](Ks("0x29"),"")){case Ks("0x8"):return r(Jr(e,Ks("0x25")));case"numbered":return r(Jr(e,"ELEMENT_NUMBERED_LIST"));case Ks("0x1c"):return r(Jr(e,Ks("0x0")))}if(Ks("0x39")==n.commandName)return{type:Ks("0x1b"),content:Jr(e,Ks("0x40"),Jr(e,Ks("0x2d")))};if(Ks("0x13")==n[Ks("0x34")])return{type:Ks("0x1b"),content:Jr(e,Ks("0x20"),Jr(e,"ELEMENT_LIST_ITEM"))};if(Ks("0x1d")==n.commandName)return n[Ks("0x3d")][0].forceValue?{type:Ks("0x1b"),content:Jr(e,Ks("0x14"))}:{type:Ks("0x1b"),content:Jr(e,Ks("0x1"))}}function r(t){return{type:Ks("0x1b"),content:Jr(e,Ks("0x3f"),t)}}}))}}function $s(t){const e=t[Ks("0x9")](Ks("0x2f"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ks("0x32")].is(Ks("0x4"),Ks("0x37"));){const r=t[Ks("0x32")][Ks("0x9")](Ks("0x2f"));if(r==e)n=t.previousSibling;else if(r<e)break;t=t[Ks("0x32")]}return n}function Xs(t){const e=[];if(t.is(Ks("0x4"),Ks("0x37"))&&t[Ks("0x9")]("listIndent")>0){let n=t[Ks("0x3")];for(;n&&"listItem"==n[Ks("0x18")]&&n[Ks("0x9")]("listIndent")==t[Ks("0x9")](Ks("0x2f"));)e[Ks("0x33")](n),n=n[Ks("0x3")]}return e}const Zs=["afterInit","TrackChangesEditing","getListTypeFromListStyleType","_LIST_","element","listReversed","LegacyListPropertiesEditing","formatInline","startIndex","type","toUpperCase","map","reversed","enableCommand","unshift","*Format:* set order to reversed","createPositionAt","listStart","commandName","listType","bind","filter","length","formatBlock","before","listItem","format","document","markMultiRangeBlockFormat","editor","numbered","*Format:* set start index to %0","createRange","from","getSiblingNodes","flat","selection","handleListStartCommand","push","registerDescriptionCallback","listStyle","list.properties","model","_getSuggestionBlocksForListStyle","commandParams","getLastPosition","getSelectedBlocks","getFirstPosition","LegacyListUtils","_descriptionFactory","config","_getTranslationKeyForListStyle","*Change to:* %0","forward","backward","change","getAttribute","plugins","get","_getSuggestionBlocks","ELEMENT_","handleListStyleCommand","styles","locale","handleListReversedCommand","handleDescriptions","*Format:* set order to regular"];var Ys,Js;Ys=Zs,Js=441,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Qs("0x1c")](){if(!this.editor[Qs("0x12")].has(Qs("0x22")))return;const t=this.editor[Qs("0xb")].get(Qs("0x2")),e=this[Qs("0x39")][Qs("0x12")].get("TrackChangesEditing");t[Qs("0x17")]&&e.enableCommand(Qs("0x1"),this[Qs("0x16")][Qs("0x30")](this)),t[Qs("0x28")]&&e[Qs("0x29")](Qs("0x21"),this[Qs("0x19")][Qs("0x30")](this)),t[Qs("0x24")]&&e[Qs("0x29")](Qs("0x2d"),this.handleListStartCommand[Qs("0x30")](this)),e[Qs("0xa")][Qs("0x0")](this[Qs("0x1a")][Qs("0x30")](this))}[Qs("0x16")](t,e={}){const n=this[Qs("0x39")][Qs("0x12")].get(Qs("0x1d")),r=this[Qs("0x4")]();this[Qs("0x39")][Qs("0x3")][Qs("0x10")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Qs("0x1"),commandParams:[{type:e[Qs("0x25")]}],formatGroupId:"listStyle"})}))}[Qs("0x19")](t,e={}){const n=this[Qs("0x39")][Qs("0x12")][Qs("0x13")](Qs("0x1d")),r=this[Qs("0x14")]((t=>t.is(Qs("0x20"),Qs("0x35"))&&Qs("0x3a")===t.getAttribute(Qs("0x2f"))));if(r.length<1)return;const o=r[Qs("0x27")]((t=>this.editor[Qs("0x3")][Qs("0x3c")](this[Qs("0x39")][Qs("0x3")][Qs("0x2c")](t,Qs("0x34")),this[Qs("0x39")][Qs("0x3")][Qs("0x2c")](t,0))));this[Qs("0x39")][Qs("0x3")][Qs("0x10")]((()=>{n[Qs("0x38")](o,{commandName:Qs("0x21"),commandParams:[{reversed:e[Qs("0x28")]}],formatGroupId:"listReversed"})}))}[Qs("0x41")](t,e={}){const n=this[Qs("0x39")].plugins[Qs("0x13")](Qs("0x1d")),r=this[Qs("0x14")]((t=>t.is(Qs("0x20"),Qs("0x35"))&&Qs("0x3a")===t[Qs("0x11")](Qs("0x2f"))));if(r[Qs("0x32")]<1)return;const o=r[Qs("0x27")]((t=>this[Qs("0x39")][Qs("0x3")][Qs("0x3c")](this[Qs("0x39")][Qs("0x3")][Qs("0x2c")](t,Qs("0x34")),this.editor[Qs("0x3")][Qs("0x2c")](t,0))));this[Qs("0x39")].model[Qs("0x10")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Qs("0x2d"),commandParams:[{startIndex:e[Qs("0x24")]}],formatGroupId:Qs("0x2d")})}))}handleDescriptions(t){if(Qs("0x33")!=t[Qs("0x25")]&&Qs("0x23")!=t.type)return;const e=this.editor[Qs("0x18")],{data:n}=t;if(!n)return;let r,o;switch(n[Qs("0x2e")]){case Qs("0x1"):r=Qs("0xd"),o={type:"format",content:Jr(e,r,Jr(e,this[Qs("0xc")](n[Qs("0x5")][0][Qs("0x25")])))};break;case"listReversed":r=n[Qs("0x5")][0][Qs("0x28")]?Qs("0x2b"):Qs("0x1b"),o={type:Qs("0x36"),content:Jr(e,r)};break;case Qs("0x2d"):r=Qs("0x3b"),o={type:Qs("0x36"),content:Jr(e,r,n.commandParams[0][Qs("0x24")])}}return o}_getSuggestionBlocksForListStyle(){var t,e,n,r;const o=this[Qs("0x39")][Qs("0x12")][Qs("0x13")](Qs("0x9"));let i=Array[Qs("0x3d")](this[Qs("0x39")].model[Qs("0x37")][Qs("0x40")][Qs("0x7")]());return(null===(t=i[0])||void 0===t?void 0:t.is("element",Qs("0x35")))&&i[Qs("0x2a")](...o[Qs("0x3e")](this[Qs("0x39")].model[Qs("0x37")].selection[Qs("0x8")](),Qs("0xf"))),(null===(e=i[i[Qs("0x32")]-1])||void 0===e?void 0:e.is(Qs("0x20"),"listItem"))&&i[Qs("0x42")](...o[Qs("0x3e")](this[Qs("0x39")].model[Qs("0x37")].selection[Qs("0x6")](),"forward")),i=[...new Set(i)],(null===(r=null===(n=this[Qs("0x39")].model[Qs("0x37")][Qs("0x40")][Qs("0x8")]())||void 0===n?void 0:n.parent)||void 0===r?void 0:r.is(Qs("0x20"),Qs("0x35")))&&(i=i[Qs("0x31")]((t=>t.is("element","listItem")))),i}[Qs("0x14")](t){const e=this[Qs("0x39")][Qs("0x12")][Qs("0x13")](Qs("0x9"));let n=Array.from(this[Qs("0x39")][Qs("0x3")][Qs("0x37")].selection[Qs("0x7")]())[Qs("0x31")](t).map((t=>{const n=this[Qs("0x39")][Qs("0x3")].createPositionAt(t,0);return[...e[Qs("0x3e")](n,Qs("0xf")),...e[Qs("0x3e")](n,Qs("0xe"))]}))[Qs("0x3f")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Qs("0x15")+this.editor[Qs("0x12")][Qs("0x13")]("LegacyListUtils")[Qs("0x1e")](t)[Qs("0x26")]()+Qs("0x1f")+t[Qs("0x26")]().replace(/-/g,"_")}}const ex=["_descriptionFactory","dataDowncast","registerElementLabel","createEmptyElement","TrackChangesEditing","media","plugins","elementToElement","data","stop","enableCommand","afterInit","showSuggestionHighlights","has","downcastDispatcher","options","MediaEmbedEditing","attribute:url:media","conversion","ELEMENT_MEDIA","editor"];var nx,rx;nx=ex,rx=394,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ox=function(t,e){return ex[t-=0]};class ix extends t.Plugin{[ox("0x10")](){const t=this[ox("0x4")];if(!t.plugins[ox("0x12")](ox("0x0")))return;const e=t[ox("0xb")].get(ox("0x9")),n=t.locale;e[ox("0xf")]("mediaEmbed"),e[ox("0x5")][ox("0x7")](ox("0xa"),(t=>Jr(n,ox("0x3"),t))),t[ox("0x2")].for(ox("0x6"))[ox("0xc")]({model:ox("0xa"),view:(t,{writer:e,options:n})=>{if(n[ox("0x11")])return e[ox("0x8")]("div")},converterPriority:"high"}),t[ox("0xd")][ox("0x13")].on(ox("0x1"),((t,e,n)=>{n[ox("0x14")][ox("0x11")]&&t[ox("0xe")]()}),{priority:"high"})}}const sx=["MentionEditing","has","enableCommand","afterInit","TrackChangesEditing","plugins","get","editor"];var xx,ax;xx=sx,ax=126,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{[cx("0x5")](){const t=this[cx("0x1")];t[cx("0x7")][cx("0x3")](cx("0x2"))&&t.plugins[cx("0x0")](cx("0x6"))[cx("0x4")]("mention")}}const ux=["registerElementLabel","get","pageBreak","locale","ELEMENT_PAGE_BREAK","has","TrackChangesEditing","plugins","enableCommand","PageBreakEditing"];var dx,gx;dx=ux,gx=310,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[fx("0x5")](fx("0x9")))return;t.plugins[fx("0x1")]("TrackChangesEditing")[fx("0x8")]("pageBreak");const e=t[fx("0x7")][fx("0x1")](fx("0x6")),n=t[fx("0x3")];e._descriptionFactory[fx("0x0")](fx("0x2"),(t=>Jr(n,fx("0x4"),t)))}}const mx=["highest","editing","name","addMarker:suggestion:insertion","insertParagraph","isTouching","$text","markerRange","writer","locale","markerName","afterInit","span","TrackChangesEditing","insert","nodeAfter","plugins","_registerLegacyDescription","createUIElement","isLimit","ELEMENT_PARAGRAPH","mapper","registerElementLabel","data","toViewPosition","consumable","addClass","bindElementToMarker","getFirstRange","end","*Change to:* %0","model","insertion","ck-suggestion-marker--active","_descriptionFactory","formatBlock","getItemLabel","format","Paragraph","includes","checkChild","schema","*Insert:* %0","editor","showSuggestionHighlights","downcastDispatcher","type","get","consume"];var px,bx;px=mx,bx=113,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x2d")](){const t=this.editor;if(!t[Ex("0x1")].has(Ex("0x17")))return;const e=t[Ex("0x2b")],n=t.plugins[Ex("0x20")](Ex("0x2f"));n[Ex("0x13")][Ex("0x7")]("paragraph",(t=>Jr(e,Ex("0x5"),t))),n._enableDefaultAttributesIntegration("paragraph"),n.enableCommand(Ex("0x26")),t[Ex("0x23")].downcastDispatcher.on(Ex("0x25"),Tx(t),{priority:Ex("0x22")}),t[Ex("0x8")][Ex("0x1e")].on(Ex("0x25"),((e,n,r)=>{r.options[Ex("0x1d")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x22")});const r=n[Ex("0x13")];r.registerDescriptionCallback((n=>{if(Ex("0x11")!==n[Ex("0x1f")])return;const{start:o,end:i}=n[Ex("0xd")]();if(!o.isTouching(i)||!o[Ex("0x0")])return;const s=t[Ex("0x10")][Ex("0x1a")],x=o.nodeAfter;return s.isBlock(x)&&!s[Ex("0x4")](x)&&s[Ex("0x19")](x,Ex("0x28"))?{type:"insertion",content:Jr(e,Ex("0x1b"),r[Ex("0x15")](x,1))}:void 0})),this[Ex("0x2")]()}[Ex("0x2")](){const t=this[Ex("0x1c")],e=t[Ex("0x2b")];t[Ex("0x1")][Ex("0x20")](Ex("0x2f"))._descriptionFactory.registerDescriptionCallback((t=>{if(Ex("0x14")!=t.type)return;const{data:n}=t;return n&&"paragraph"==n.commandName?{type:Ex("0x16"),content:Jr(e,Ex("0xf"),Jr(e,Ex("0x5")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t.plugins[Ex("0x20")](Ex("0x2f")),s=r[Ex("0x29")].start,x=r.markerRange[Ex("0xe")],a=t[Ex("0x10")][Ex("0x1a")];if(!s[Ex("0x27")](x)||!s[Ex("0x0")])return;const c=s[Ex("0x0")];if(a.isBlock(c)&&!a[Ex("0x4")](c)&&a[Ex("0x19")](c,"$text")){if(!o[Ex("0xa")][Ex("0x21")](r[Ex("0x29")],n[Ex("0x24")]))return;const t=o.writer[Ex("0x3")](Ex("0x2e"),{class:"ck-suggestion-marker-split"}),s=o[Ex("0x6")][Ex("0x9")](x);e&&i.activeMarkers[Ex("0x18")](r[Ex("0x2c")])&&o[Ex("0x2a")][Ex("0xb")](Ex("0x12"),t),o[Ex("0x2a")][Ex("0x30")](s,t),o[Ex("0x6")][Ex("0xc")](t,r[Ex("0x2c")])}}}const yx=["_descriptionFactory","_enableDefaultAttributesIntegration","commandName","_registerLegacyDescription","type","formatBlock","afterInit","removeFormat","TrackChangesEditing","format","get","has","plugins","*Remove all formatting*","RemoveFormatEditing","editor"];var Cx,Ax;Cx=yx,Ax=488,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0xe")](){const t=this[kx("0x7")];t[kx("0x4")][kx("0x3")](kx("0x6"))&&(t.plugins[kx("0x2")]("TrackChangesEditing")[kx("0x9")]("removeFormat"),this._registerLegacyDescription())}[kx("0xb")](){const t=this.editor;t[kx("0x4")].get(kx("0x0"))[kx("0x8")].registerDescriptionCallback((e=>{if(kx("0xd")!=e.type&&"formatInline"!=e[kx("0xc")])return;const{data:n}=e;return n&&kx("0xf")==n[kx("0xa")]?{type:kx("0x1"),content:Jr(t.locale,kx("0x5"))}:void 0}))}}const Sx=["RestrictedEditingModeEditing","enableCommand","trackChanges","get","has","afterInit","goToNextRestrictedEditingException","plugins","acceptSelectedSuggestions","acceptSuggestion","TrackChangesEditing","goToPreviousRestrictedEditingException","discardSuggestion","editor"];var Rx,Lx;Rx=Sx,Lx=485,function(t){for(;--t;)Rx.push(Rx.shift())}(++Lx);const vx=function(t,e){return Sx[t-=0]};class Nx extends t.Plugin{[vx("0xa")](){const t=this[vx("0x4")];if(!t.plugins[vx("0x9")](vx("0x5")))return;const e=t.plugins[vx("0x8")](vx("0x1"));e.enableCommand(vx("0x2")),e[vx("0x6")](vx("0xb"));const n=t[vx("0xc")].get(vx("0x5"));n[vx("0x6")](vx("0x7")),n.enableCommand(vx("0x0")),n[vx("0x6")](vx("0x3")),n[vx("0x6")]("acceptAllSuggestions"),n[vx("0x6")]("discardAllSuggestions"),n[vx("0x6")](vx("0xd")),n[vx("0x6")]("discardSelectedSuggestions")}}const Mx=["plugins","addMarker:suggestion","get","options","toViewPosition","registerElementLabel","bindElementToMarker","deletion","editing","downcastDispatcher","model","TrackChangesEditing","init","markerName","insert","addMarker:suggestion:deletion","consumable","enableCommand","data","high","test","requires","split","addMarker:suggestion:insertion","addClass","editor","includes","activeMarkers","shiftEnter","writer","ck-suggestion-marker--active","showSuggestionHighlights","span","softBreak","getItems","element","locale","mapper","markerRange"];var wx,Ox;wx=Mx,Ox=363,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get[Fx("0x9")](){return[Ei.ShiftEnter]}[Fx("0x0")](){const t=this[Fx("0xd")],e=t[Fx("0x1b")][Fx("0x1d")](Fx("0x26"));e[Fx("0x5")](Fx("0x10")),t[Fx("0x23")][Fx("0x24")].on(Fx("0xb"),Bx(t),{priority:"high"}),t[Fx("0x23")][Fx("0x24")].on(Fx("0x3"),Bx(t),{priority:Fx("0x7")}),t[Fx("0x6")][Fx("0x24")].on(Fx("0x1c"),((e,n,r)=>{r[Fx("0x1e")][Fx("0x13")]&&Bx(t,{showActiveMarker:!1})(e,n,r)})),e._descriptionFactory[Fx("0x20")](Fx("0x15"),(e=>Jr(t[Fx("0x18")],"ELEMENT_LINE_BREAK",e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[Fx("0x1b")][Fx("0x1d")](Fx("0x26"));if(!o[Fx("0x4")][Fx("0x8")](r[Fx("0x1a")],n.name))return;const s=t[Fx("0x25")];for(const t of r[Fx("0x1a")][Fx("0x16")]()){if(!t.is(Fx("0x17"),Fx("0x15")))continue;const n=Fx("0x22")==r.markerName[Fx("0xa")](":")[1]?"merge":Fx("0xa"),x=o[Fx("0x11")].createUIElement(Fx("0x14"),{class:"ck-suggestion-marker-"+n}),a=o[Fx("0x19")][Fx("0x1f")](s.createPositionBefore(t));e&&i[Fx("0xf")][Fx("0xe")](r[Fx("0x1")])&&o.writer[Fx("0xc")](Fx("0x12"),x),o[Fx("0x11")][Fx("0x2")](a,x),o[Fx("0x19")][Fx("0x21")](x,r[Fx("0x1")])}}}const Px=["value","_descriptionFactory","TrackChangesEditing","commandParams","formatInline","enableCommand","selection","FORMAT_RESTRICTED_DISABLED","locale","commandName","model","forceValue","markInlineFormat","getRanges","type","registerDescriptionCallback","plugins","has","format","afterInit","document","from","get","restrictedEditingException","StandardEditingModeEditing"];var Ux,jx;Ux=Px,jx=236,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{[Gx("0x8")](){const t=this.editor,e=t[Gx("0x18")],n=t[Gx("0x16")];if(!t.plugins[Gx("0x6")](Gx("0xd")))return;const r=t[Gx("0x5")][Gx("0xb")](Gx("0x10")),o=Gx("0xc"),i=t.commands.get(o);r[Gx("0x13")](o,((t,n={})=>{const s=e[Gx("0x9")][Gx("0x14")];if(s.isCollapsed)return void t(n);const x=void 0!==n[Gx("0x0")]?n.forceValue:!i[Gx("0xe")];e.change((()=>{const t=Array[Gx("0xa")](s[Gx("0x2")]());for(const n of t){const t=x?[n]:Qo(o,n,e);for(const e of t)r[Gx("0x1")](e,{commandName:o,commandParams:[{forceValue:x}]})}}))})),r[Gx("0xf")][Gx("0x4")]((t=>{if("formatBlock"!=t[Gx("0x3")]&&Gx("0x12")!=t[Gx("0x3")])return;const{data:e}=t;return e&&e[Gx("0x17")]==o?e[Gx("0x11")][0][Gx("0x0")]?{type:Gx("0x7"),content:Jr(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Gx("0x7"),content:Jr(n,Gx("0x15"))}:void 0}))}}const Hx=["_registerLegacyDescription","type","editor","get","block","StyleUtils","locale","forceValue","toLowerCase","commandParams","has","add","ghsAttributes","FORMAT_STYLE","DataSchema","registerAttributeLabel","TrackChangesEditing","inline","Style","config","style","commandName","element","registerDescriptionCallback","GeneralHtmlSupport","afterInit","getGhsAttributeNameForElement","styleName","plugins","_registerInlineAttribute","_registerBlockAttribute","format","*Remove format:* %0","formatInline","definitions","_descriptionFactory"];var zx,Wx;zx=Hx,Wx=256,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x15")](){const t=this.editor;if(!t[Kx("0x18")][Kx("0x6")](Kx("0xe"))||!t[Kx("0x18")][Kx("0x6")](Kx("0xa")))return;const e=t.plugins[Kx("0x23")](Kx("0xc")),n=t[Kx("0x2")],r=t[Kx("0xf")][Kx("0x23")](Kx("0x10")),o=t.plugins[Kx("0x23")](Kx("0x14")),i=t[Kx("0x18")][Kx("0x23")](Kx("0x1")).normalizeConfig(t[Kx("0x18")][Kx("0x23")](Kx("0xa")),r[Kx("0x1e")]);e._enableDefaultAttributesIntegration(Kx("0x10"));const s=new Set;for(const t of i[Kx("0x0")]){const e=o[Kx("0x16")](t[Kx("0x12")]);s[Kx("0x7")](e)}const x=new Set;for(const t of i[Kx("0xd")]){const e=o[Kx("0x16")](t.element);x[Kx("0x7")](e);for(const e of t[Kx("0x8")])x[Kx("0x7")](e)}for(const t of s)e[Kx("0x1a")](t),e._descriptionFactory[Kx("0xb")](t,Jr(n,Kx("0x9")));for(const t of x)e[Kx("0x19")](t),e._descriptionFactory.registerAttributeLabel(t,Jr(n,"FORMAT_STYLE"));this[Kx("0x20")]()}[Kx("0x20")](){const t=this[Kx("0x22")],e=t.locale;t[Kx("0x18")].get(Kx("0xc"))[Kx("0x1f")][Kx("0x13")]((t=>{if("formatBlock"!=t.type&&Kx("0x1d")!=t[Kx("0x21")])return;const{data:n}=t;return n&&"style"===n[Kx("0x11")]?n[Kx("0x5")][0][Kx("0x3")]?{type:Kx("0x1b"),content:Jr(e,"*Set format:* %0",n[Kx("0x5")][0].styleName[Kx("0x4")]())}:{type:Kx("0x1b"),content:Jr(e,Kx("0x1c"),n[Kx("0x5")][0][Kx("0x17")][Kx("0x4")]())}:void 0}))}}const $x=["differ","highest","maxRow","fromRange","cell","addMarker:suggestion","getChildren","subType","addClass","has","getChangedMarkers","createRangeOn","_tablePostFixingSubtypes","_tableSuggestions","registerPostFixer","getFirstRange","getSelectionAffectedTableCells","discard","insertTableColumnLeft","hasAttribute","enableCommand","*Remove:* %0","change","startsWith","tableColumn","_descriptionFactory","ELEMENT_TABLE_COLUMN","type","length","ELEMENT_TABLE","minRow","getRanges","getCellLocation","createPositionAt","insert","maxColumn","values","refresh","filter","_getSuggestionCoords","deletion","ELEMENT_TABLE_ROW_WITH_TEXT","forceValue","isEqual","ELEMENT_TABLE_WITH_TEXT","low","getAttribute","plugins","includes","above","ELEMENT_TABLE_ROW","toLowerCase","substr","markMultiRangeInsertion","createRangeIn","classes","get","_setupColumnsRowsFixing","left","detach","_getCoordsForCells","table","root","last","span","locale","name","removeTableColumn","options","toViewElement","isInContent","colspan","insertion","afterInit","insertTable","selection","rowspan","some","getItems","createTableWalker","tableCell","findAncestor","nodeAfter","order","removeClass","map","change:data","TableUtils","first","position","MIN_SAFE_INTEGER","insertTableColumnRight","min","enqueueChange","batch","*Insert:* %0","data","$textProxy","tablePaste","minColumn","editor","max","model","insertTableRowAbove","getChanges","rootName","registerDescriptionCallback","registerCustomCallback","tableRow","document","mapper","showSuggestionHighlights","oldRange","registerElementLabel","getColumnIndexes","getContainedElement","isArray","commands","writer","setSelection","from","execute","getRowIndexes","suggestion","join","addRange","ELEMENT_TABLE_COLUMN_WITH_TEXT","end","start","removeTableRow","push","_suggestionFactory","$graveyard","item","markMultiRangeDeletion","MAX_SAFE_INTEGER"];var Xx,Zx;Xx=$x,Zx=414,function(t){for(;--t;)Xx.push(Xx.shift())}(++Zx);const Yx=function(t,e){return $x[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x6")]=[Yx("0x66"),"tableColumn"],this[Yx("0x7")]=new Set}[Yx("0x43")](){const t=this[Yx("0x5e")],e=t[Yx("0x60")][Yx("0x67")][Yx("0x45")];if(!t.plugins[Yx("0x3")]("TableEditing"))return;const n=t[Yx("0x3b")],r=t.plugins[Yx("0x32")]("TrackChangesEditing"),o=t.plugins[Yx("0x32")](Yx("0x51"));r._descriptionFactory[Yx("0x6b")](Yx("0x37"),(t=>Jr(n,Yx("0x17"),t))),this[Yx("0x33")](),r[Yx("0xe")](Yx("0x44")),r[Yx("0xe")]("selectTableRow"),r.enableCommand("selectTableColumn");for(const n of[Yx("0x61"),"insertTableRowBelow"]){const i=t[Yx("0x6f")].get(n);r[Yx("0xe")](n,(n=>{t.model[Yx("0x10")]((t=>{n();const s=Yx("0x2b")===i.order,x=o[Yx("0xa")](e),a=o[Yx("0x74")](x),c=s?a[Yx("0x52")]-1:a.last+1,l=x[0][Yx("0x4b")]("table"),u=o[Yx("0x49")](l,{startRow:c,endRow:c}),d=Array[Yx("0x72")](u)[Yx("0x4f")]((e=>t[Yx("0x5")](e[Yx("0x86")])));r[Yx("0x2f")](d,"tableRow")}))}))}for(const n of[Yx("0xc"),Yx("0x55")]){const i=t[Yx("0x6f")][Yx("0x32")](n);r.enableCommand(n,(n=>{t[Yx("0x60")].change((t=>{n();const s=Yx("0x34")===i[Yx("0x4d")],x=o[Yx("0xa")](e),a=o[Yx("0x6c")](x),c=s?a[Yx("0x52")]-1:a.last+1,l=x[0][Yx("0x4b")](Yx("0x37")),u=o[Yx("0x49")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Yx("0x4f")]((e=>t[Yx("0x5")](e[Yx("0x86")])));r[Yx("0x2f")](d,"tableColumn")}))}))}for(const n of[Yx("0x7b"),Yx("0x3d")]){const i=n[Yx("0x2e")](11),s=i[Yx("0x2d")](),x=s[Yx("0x2e")](0,3)+Yx("0x3a"),a=Yx("0x37")+i,c=Yx("0x56")+i,l=Yx("0x5f")+i;r[Yx("0xe")](n,(()=>{t[Yx("0x60")][Yx("0x10")]((t=>{const i=o[Yx("0xa")](e),u=i[0].findAncestor(Yx("0x37"));let d;if(Yx("0x7b")==n){const t=o.getRowIndexes(i);d={startRow:t[Yx("0x52")],endRow:t[Yx("0x39")],includeAllSlots:!0}}else{const t=o.getColumnIndexes(i);d={startColumn:t[Yx("0x52")],endColumn:t[Yx("0x39")],includeAllSlots:!0}}const g=o[Yx("0x49")](u,d),f=Array[Yx("0x72")](g)[Yx("0x4f")]((({cell:t})=>t)),h=Qx(f[Yx("0x20")]((t=>t[Yx("0xd")](x)))),m=Qx(f.filter((t=>!t[Yx("0xd")](x))))[Yx("0x4f")]((e=>t[Yx("0x5")](e))),p=r[Yx("0x80")](m,a);if(p&&(Yx("0x66")==p.subType||Yx("0x12")==p[Yx("0x1")])){const e=this[Yx("0x21")](p);for(const n of h){const r=t[Yx("0x5")](n),i=o[Yx("0x1a")](n),a=n[Yx("0x28")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Yx("0x77")](r)}}}))}))}function i(n){const r=Array[Yx("0x72")](e.getRanges())[Yx("0x4f")]((t=>s.LiveRange.fromRange(t)));t[Yx("0x60")][Yx("0x10")]((e=>{const o=e[Yx("0x58")];n=n[Yx("0x20")]((t=>Yx("0x7e")!=t[Yx("0x38")][Yx("0x63")])),e.setSelection(n),t[Yx("0x6f")].get(Yx("0x7b"))[Yx("0x1f")](),t.execute(Yx("0x7b"),{forceDefaultExecution:!0}),t[Yx("0x60")][Yx("0x57")]((()=>{t[Yx("0x60")][Yx("0x57")](o,(t=>{const e=r[Yx("0x20")]((t=>Yx("0x7e")!=t[Yx("0x38")][Yx("0x63")]));e[Yx("0x16")]>0&&t.setSelection(e);for(const t of r)t[Yx("0x35")]()}))}))}))}function a(n){t[Yx("0x60")][Yx("0x10")]((r=>{const o=Array.from(e[Yx("0x19")]())[Yx("0x4f")]((t=>s.LiveRange.fromRange(t))),i=[];for(const t of n)for(const e of t[Yx("0x48")]({shallow:!0}))i[Yx("0x7c")](e);for(const e of i)Yx("0x7e")!=e[Yx("0x38")].rootName&&(r[Yx("0x71")](r[Yx("0x1b")](e,0)),t[Yx("0x6f")][Yx("0x32")](Yx("0x3d"))[Yx("0x1f")](),t[Yx("0x73")](Yx("0x3d"),{forceDefaultExecution:!0}));const x=o[Yx("0x20")]((t=>Yx("0x7e")!=t[Yx("0x38")][Yx("0x63")]));x[Yx("0x16")]>0&&r.setSelection(x);for(const t of o)t[Yx("0x35")]()}))}function c(t,e){return e.every((e=>t[Yx("0x47")]((t=>t[Yx("0x79")].isEqual(e[Yx("0x7a")])||e[Yx("0x79")][Yx("0x25")](t[Yx("0x7a")])))))}function l(t,e){return t[Yx("0x47")]((t=>e[Yx("0x47")]((e=>t[Yx("0x79")].isTouching(e[Yx("0x7a")])))))}t[Yx("0x5a")].downcastDispatcher.on(Yx("0x87"),((t,e,n)=>{if(!n[Yx("0x3e")][Yx("0x69")])return;const r=e[Yx("0x7f")];if(!r)return;const o=n[Yx("0x68")][Yx("0x3f")](r);function i(t){return Array[Yx("0x6e")](t)?t:[t]}o&&Yx("0x4a")===r[Yx("0x3c")]&&(0,x.setHighlightHandling)(o,n[Yx("0x70")],((t,e,n)=>n[Yx("0x2")](i(e[Yx("0x31")]),t)),((t,e,n)=>n[Yx("0x4e")](i(e[Yx("0x31")]),t)))}),{priority:Yx("0x83")}),r[Yx("0x13")][Yx("0x64")]((t=>{if(Yx("0x42")!=t[Yx("0x15")]&&Yx("0x22")!=t[Yx("0x15")])return;const e=t[Yx("0x6d")]();if(null!=e&&e.is("element",Yx("0x37"))){if(Yx("0x42")==t.type){const e=t[Yx("0x48")]()[Yx("0x20")]((t=>t.is(Yx("0x5b"))))[Yx("0x4f")]((t=>t[Yx("0x5a")]));if(e.length)return{type:Yx("0x42"),content:Jr(n,Yx("0x59"),Jr(n,Yx("0x26"),'"'+e[Yx("0x76")](" ")+'"'))}}if("deletion"==t[Yx("0x15")]){const e=t.getItems().filter((t=>t.is("$textProxy"))).map((t=>t[Yx("0x5a")]));if(e.length)return{type:"deletion",content:Jr(n,Yx("0xf"),Jr(n,Yx("0x26"),'"'+e[Yx("0x76")](" ")+'"'))}}}})),r[Yx("0x13")][Yx("0x64")]((t=>{if("tableRow"==t[Yx("0x1")]){const e=t[Yx("0x48")]()[Yx("0x20")]((t=>t.is("$textProxy")))[Yx("0x4f")]((t=>t.data)),r=this[Yx("0x21")](t),o=r[Yx("0x84")]-r[Yx("0x18")]+1;if(Yx("0x42")==t[Yx("0x15")])return e[Yx("0x16")]?{type:Yx("0x42"),content:Jr(n,"*Insert:* %0",Jr(n,Yx("0x23"),[o,'"'+e[Yx("0x76")](" ")+'"']))}:{type:Yx("0x42"),content:Jr(n,Yx("0x59"),Jr(n,Yx("0x2c"),o))};if(Yx("0x22")==t[Yx("0x15")])return e[Yx("0x16")]?{type:"deletion",content:Jr(n,Yx("0xf"),Jr(n,Yx("0x23"),[o,'"'+e[Yx("0x76")](" ")+'"']))}:{type:"deletion",content:Jr(n,Yx("0xf"),Jr(n,Yx("0x2c"),o))}}if(Yx("0x12")==t[Yx("0x1")]){const e=t[Yx("0x48")]()[Yx("0x20")]((t=>t.is("$textProxy"))).map((t=>t[Yx("0x5a")])),r=this[Yx("0x21")](t),o=r[Yx("0x1d")]-r[Yx("0x5d")]+1;if(Yx("0x42")==t[Yx("0x15")])return e.length?{type:"insertion",content:Jr(n,Yx("0x59"),Jr(n,Yx("0x78"),[o,'"'+e[Yx("0x76")](" ")+'"']))}:{type:Yx("0x42"),content:Jr(n,Yx("0x59"),Jr(n,Yx("0x14"),o))};if("deletion"==t[Yx("0x15")])return e[Yx("0x16")]?{type:"deletion",content:Jr(n,Yx("0xf"),Jr(n,Yx("0x78"),[o,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Jr(n,Yx("0xf"),Jr(n,"ELEMENT_TABLE_COLUMN",o))}}})),r[Yx("0x7d")][Yx("0x65")]("insertion","tableRow",Yx("0xb"),i),r[Yx("0x7d")].registerCustomCallback(Yx("0x22"),Yx("0x66"),"accept",i),r[Yx("0x7d")][Yx("0x65")](Yx("0x42"),Yx("0x12"),"discard",a),r[Yx("0x7d")][Yx("0x65")](Yx("0x22"),Yx("0x12"),"accept",a),r[Yx("0x7d")][Yx("0x65")]("insertion",Yx("0x12"),Yx("0x76"),c),r[Yx("0x7d")][Yx("0x65")]("deletion",Yx("0x12"),Yx("0x76"),c),r[Yx("0x7d")][Yx("0x65")](Yx("0x42"),Yx("0x66"),Yx("0x76"),l),r[Yx("0x7d")][Yx("0x65")](Yx("0x22"),"tableRow",Yx("0x76"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Yx("0x5e")],e=t[Yx("0x60")][Yx("0x67")][Yx("0x45")];return(n,r)=>{t[Yx("0x60")].change((o=>{const{commandName:i,commandParams:x}=r;let a=n[0][Yx("0x79")].nodeBefore;x&&x[0]&&!1===x[0][Yx("0x24")]&&(a=n[0].start[Yx("0x4c")]);const c=o[Yx("0x30")](a);if(Yx("0x7e")==c.root[Yx("0x63")])return;const l=Array[Yx("0x72")](e[Yx("0x19")]()).map((t=>s.LiveRange[Yx("0x85")](t)));o.setSelection(c),t.commands[Yx("0x32")](i)[Yx("0x1f")](),x[Yx("0x7c")]({forceDefaultExecution:!0}),t[Yx("0x73")](i,...x);const u=l[Yx("0x20")]((t=>"$graveyard"!=t[Yx("0x38")][Yx("0x63")]));u[Yx("0x16")]>0&&o[Yx("0x71")](u);for(const t of l)t[Yx("0x35")]()}))}}_getCoordsForCells(t){const e=this[Yx("0x5e")][Yx("0x29")][Yx("0x32")](Yx("0x51"));let n=Number[Yx("0x81")],r=Number.MIN_SAFE_INTEGER,o=Number[Yx("0x81")],i=Number[Yx("0x54")];for(const s of t){if("$graveyard"==s[Yx("0x38")][Yx("0x63")])continue;const{row:t,column:x}=e[Yx("0x1a")](s),a=s.hasAttribute(Yx("0x46"))?s.getAttribute(Yx("0x46"))-1:0,c=s[Yx("0xd")](Yx("0x41"))?s[Yx("0x28")](Yx("0x41"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,o=x<o?x:o,i=x+c>i?x+c:i}return{minRow:n,maxRow:r,minColumn:o,maxColumn:i}}[Yx("0x33")](){const t=this[Yx("0x5e")],e=t.plugins.get("TrackChangesEditing"),n=t[Yx("0x29")][Yx("0x32")](Yx("0x51"));t[Yx("0x60")][Yx("0x67")].on(Yx("0x50"),(()=>{const n=Array.from(t.model[Yx("0x67")][Yx("0x82")][Yx("0x4")]());for(const{name:t,data:r}of n){const{group:n,id:o,subType:i}=e._splitMarkerName(t);if(Yx("0x75")!=n)continue;if(null!=r[Yx("0x6a")])continue;const s=e.getSuggestion(o);this._tablePostFixingSubtypes[Yx("0x2a")](i)&&this[Yx("0x7")].add(s)}}),{priority:Yx("0x27")});const r=(t,e)=>{let r=!1;const o=e.createRangeOn(t),i=t.findAncestor(Yx("0x37")),s=n[Yx("0x1a")](t);for(const e of this[Yx("0x7")]){const n=e[Yx("0x1")],x=n[Yx("0x11")](Yx("0x5c")),a=n[Yx("0x2e")](x?10:5),c=a[Yx("0x2d")](),l=c[Yx("0x2e")](0,3)+Yx("0x3a"),u=Yx("0x56")+a,d=Yx("0x5f")+a;if(!e[Yx("0x40")])continue;if(i!=e[Yx("0x9")]().start[Yx("0x4b")]("table"))continue;if(e.isIntersectingWithRange(o))continue;const g=t.hasAttribute(l)?t[Yx("0x28")](l)-1:0,f=this[Yx("0x21")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e[Yx("0x77")](o),r=!0)}return r};t.model[Yx("0x67")][Yx("0x8")]((e=>{let n=!1;for(const o of t[Yx("0x60")][Yx("0x67")][Yx("0x82")][Yx("0x62")]())if(Yx("0x1c")==o[Yx("0x15")])if(Yx("0x66")==o[Yx("0x3c")])for(const t of o[Yx("0x53")].nodeAfter[Yx("0x0")]())n=n||r(t,e);else Yx("0x4a")==o[Yx("0x3c")]&&(n=n||r(o.position[Yx("0x4c")],e));return n}))}[Yx("0x21")](t){return this[Yx("0x36")](t[Yx("0x19")]()[Yx("0x4f")]((t=>t[Yx("0x7a")][Yx("0x4c")])))}}function Qx(t){return Array[Yx("0x72")](new Set(t)[Yx("0x1e")]())}const ta=["markBlockFormat","TrackChangesEditing","_areSelectedCellsMergable","direction","getSelectionAffectedTableCells","selection","value","refresh","TableUtils","getRanges","getCellLocation","setSelection","type","element","rootName","commands","highest","model","tableCell","mergeTableCellLeft","editor","low","table","containsRange","_acceptFormatSuggestionCallbackFactory","cell","deletion","document","_tablePostFixingSubtypes","subType","_areMergableCells","mergeTableCellDown","find","add","has","mergeTableCellUp","format","plugins","isEnabled","getAncestors","markMultiRangeBlockFormat","get","createRangeOn","length","stop","return","map","requires","_descriptionFactory","change","commandName","_suggestionFactory","size","author","push","getSuggestions","$graveyard","formatBlock","from","enableCommand","isInContent","registerDescriptionCallback","formatInline","getFirstPosition","splitTableCellHorizontally","set:isEnabled","execute","mergeTableCells","registerCustomCallback","accept","*Split cell:* horizontally","splitTableCellVertically","locale","*Split cell:* vertically","_isForcedDefaultExecutionBlock","mergeTableCellRight"];var ea,na;ea=ta,na=210,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class oa extends t.Plugin{static get[ra("0x41")](){return[Jx]}afterInit(){const t=this.editor,e=t.model.document[ra("0x17")],n=t[ra("0xe")];if(!t.plugins[ra("0x34")]("TableEditing"))return;const r=t.plugins.get(ra("0x13")),o=t[ra("0x37")][ra("0x3b")](ra("0x1a")),i=t[ra("0x37")][ra("0x3b")](Jx);i[ra("0x2e")][ra("0x48")](ra("0x9")),r[ra("0x1")](ra("0x9"),(()=>{const e=o[ra("0x16")](t[ra("0x23")].document[ra("0x17")]);t[ra("0x23")][ra("0x43")]((()=>{r[ra("0x3a")](e,{commandName:ra("0x9"),commandParams:[]},[],ra("0x9"))}))})),t[ra("0x21")][ra("0x3b")](ra("0x9")).on(ra("0x8"),((e,n)=>{t.commands[ra("0x3b")]("trackChanges")[ra("0x18")]&&(n[ra("0x3d")]>0&&n[n[ra("0x3d")]-1]&&n[n.length-1].forceDefaultExecution||r[ra("0x10")]||this[ra("0x14")]()||e[ra("0x3e")]())}),{priority:ra("0x22")});for(const e of[ra("0x35"),ra("0x11"),ra("0x31"),"mergeTableCellLeft"]){const n=t[ra("0x21")].get(e);r.enableCommand(e,(()=>{const e=t[ra("0x23")][ra("0x2d")][ra("0x17")][ra("0x5")]()[ra("0x39")]()[ra("0x32")]((t=>t.is(ra("0x1f"),ra("0x24")))),o=n[ra("0x18")];t.model[ra("0x43")]((()=>{r[ra("0x3a")]([e,o],{commandName:"mergeTableCells",commandParams:[]},[],ra("0x9"))}))}))}for(const e of[ra("0xd"),ra("0x6")]){const n=t[ra("0x21")][ra("0x3b")](e);r[ra("0x1")](e,(()=>{const i=o[ra("0x16")](t[ra("0x23")].document.selection)[0],s=i.findAncestor(ra("0x28")),{column:x,row:a}=o[ra("0x1c")](i);let c=[];if("horizontally"==n[ra("0x15")]){const t=o.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x0")](t)[ra("0x40")]((t=>t[ra("0x2b")]))}else{const t=o.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array.from(t)[ra("0x40")]((t=>t[ra("0x2b")]))}t[ra("0x23")].change((t=>{r[ra("0x12")](t[ra("0x3c")](i),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0x42")][ra("0x3")]((t=>{if(ra("0x4b")!=t[ra("0x1e")]&&ra("0x4")!=t[ra("0x1e")])return;const{data:e}=t;return e&&ra("0x9")==e[ra("0x44")]?{type:ra("0x36"),content:Jr(n,"*Merge cells*")}:void 0})),r._descriptionFactory.registerDescriptionCallback((t=>{if(ra("0x4b")!=t.type&&"formatInline"!=t[ra("0x1e")])return;const{data:e}=t;return e?ra("0xd")==e[ra("0x44")]?{type:ra("0x36"),content:Jr(n,ra("0xf"))}:ra("0x6")==e.commandName?{type:ra("0x36"),content:Jr(n,ra("0xc"))}:void 0:void 0}));const x=i[ra("0x2a")]();for(const t of[ra("0x35"),ra("0x11"),ra("0x31"),"mergeTableCellLeft"])r[ra("0x45")][ra("0xa")](ra("0x4b"),t,ra("0xb"),x);for(const t of[ra("0xd"),ra("0x6")])r[ra("0x45")].registerCustomCallback("formatBlock",t,ra("0xb"),x);r[ra("0x45")][ra("0xa")]("formatBlock","mergeTableCells","accept",(n=>{t[ra("0x23")][ra("0x43")]((r=>{const o=Array[ra("0x0")](e[ra("0x1b")]())[ra("0x40")]((t=>s.LiveRange.fromRange(t)));r[ra("0x1d")](n),t.commands[ra("0x3b")](ra("0x9"))[ra("0x19")](),t[ra("0x8")](ra("0x9"),{forceDefaultExecution:!0});const i=o.filter((t=>ra("0x4a")!=t.root[ra("0x20")]));i[ra("0x3d")]>0&&r[ra("0x1d")](i);for(const t of o)t.detach()}))}));for(const e of["mergeTableCellUp",ra("0x31"),ra("0x25"),ra("0x11")]){const n=t[ra("0x21")].get(e);n.on(ra("0x7"),((e,r,o)=>{if(o){const r=t[ra("0x23")][ra("0x2d")][ra("0x17")][ra("0x5")]()[ra("0x39")]()[ra("0x32")]((t=>t.is(ra("0x1f"),ra("0x24"))));this[ra("0x30")](n[ra("0x18")],r)||(e[ra("0x3f")]=!1,e[ra("0x3e")]())}}),{priority:ra("0x27")})}}[ra("0x14")](){const t=this[ra("0x26")][ra("0x21")].get(ra("0x9")),e=this[ra("0x26")][ra("0x37")][ra("0x3b")](ra("0x1a"));if(!t[ra("0x38")])return!1;const n=e.getSelectionAffectedTableCells(this[ra("0x26")].model.document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x30")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[ra("0x26")][ra("0x37")][ra("0x3b")](ra("0x13")),r=this[ra("0x26")][ra("0x23")][ra("0x3c")](t),o=this.editor[ra("0x23")][ra("0x3c")](e),i=new Set,s=new Set;for(const t of n[ra("0x49")]())if(("insertion"==t[ra("0x1e")]||ra("0x2c")==t[ra("0x1e")]||ra("0x9")==t[ra("0x2f")])&&t[ra("0x2")])for(const e of t[ra("0x1b")]())e.containsRange(r,!0)&&i[ra("0x33")](t.type+":"+t.author.id),e[ra("0x29")](o,!0)&&s.add(t.type+":"+t[ra("0x47")].id);if(i[ra("0x46")]!=s[ra("0x46")])return!1;for(const t of i)if(!s[ra("0x34")](t))return!1;return!0}}const ia=["_suggestionFactory","requires","ck-suggestion-marker--active","nodeAfter","consumable","mapper","editor","markerName","options","type","ck-suggestion-marker-","activeMarkers","showSuggestionHighlights","registerAttributeLabel","FORMAT_REGULAR_ROW","createTableWalker","accept","registerCustomCallback","getSuggestion","FORMAT_HEADER_COLUMN","highest","_handleLegacySuggestions","forceValue","*Format:* %0","addClass","downcastDispatcher","writer","setTableRowHeader","cell","has","_acceptFormatSuggestionCallbackFactory","commandName","setAttribute","get","addMarker:suggestion","TrackChangesEditing","headingRows","headingColumns","bindElementToMarker","formatBlock","end","removeAttribute","locale","setTableColumnHeader","getCellLocation","data","name","format","markerNameToElements","start","_registerLegacyDescription","parent","plugins","removeClass","markerRange","_splitMarkerName","removeMarker:suggestion","TableEditing","TableUtils","editing","FORMAT_HEADER_ROW","item","FORMAT_REGULAR_COLUMN","commandParams","_descriptionFactory","data-suggestion"];var sa,xa;sa=ia,xa=352,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return ia[t-=0]};class ca extends t.Plugin{static get[aa("0x2d")](){return[Jx]}afterInit(){const t=this[aa("0x32")];if(!t[aa("0x1e")][aa("0x7")](aa("0x23")))return;const e=t[aa("0x14")],n=t[aa("0x1e")].get(aa("0xd"));n._enableDefaultAttributesIntegration(aa("0x5"),[],["headingRows"]),n._enableDefaultAttributesIntegration(aa("0x15"),[],["headingColumns"]),n[aa("0x2a")][aa("0x39")](aa("0xe"),Jr(e,aa("0x26"))),n[aa("0x2a")].registerAttributeLabel(aa("0xf"),Jr(e,aa("0x3f"))),this[aa("0x41")]()}_handleLegacySuggestions(){const t=this.editor[aa("0x1e")][aa("0xb")](aa("0xd")),e=this[aa("0x32")].plugins[aa("0xb")](aa("0x24")),n=this[aa("0x32")].plugins[aa("0xb")](Jx)[aa("0x8")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(o,i,s)=>{const{type:x,id:a}=t[aa("0x21")](i[aa("0x33")]),c=t[aa("0x3e")](a),l=c[aa("0x17")];if("formatBlock"!=c.type||!l||aa("0x15")!=l[aa("0x9")])return;if(i[aa("0x27")])return void o.stop();if(!s[aa("0x30")].consume(i[aa("0x20")],o[aa("0x18")]))return;const u=i.markerRange[aa("0x1b")][aa("0x2f")],d=i[aa("0x20")][aa("0x12")].nodeBefore,g=u[aa("0x1d")][aa("0x1d")],{column:f}=e[aa("0x16")](u),{column:h}=e[aa("0x16")](d);for(let o=f;o<=h;o++){const c=e[aa("0x3b")](g,{column:o,includeAllSlots:!1});for(const e of c){const o=e[aa("0x6")],c=s[aa("0x31")].toViewElement(o);s.writer[aa("0x2")](aa("0x36")+x,c),r&&s[aa("0x4")][aa("0xa")]("data-suggestion",a,c),s[aa("0x31")][aa("0x10")](c,i[aa("0x33")]),n&&(t[aa("0x37")].includes(i[aa("0x33")])?s[aa("0x4")].addClass(aa("0x2e"),c):s[aa("0x4")][aa("0x1f")](aa("0x2e"),c))}}}}t[aa("0x2c")].registerCustomCallback(aa("0x11"),aa("0x5"),aa("0x3c"),n),t._suggestionFactory[aa("0x3d")](aa("0x11"),"setTableColumnHeader",aa("0x3c"),n),this[aa("0x32")][aa("0x25")].downcastDispatcher.on(aa("0xc"),r(),{priority:aa("0x40")}),this.editor[aa("0x17")].downcastDispatcher.on(aa("0xc"),((t,e,n)=>{n[aa("0x34")][aa("0x38")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x40")}),this[aa("0x32")].editing[aa("0x3")].on(aa("0x22"),((e,n,r)=>{const{type:o,id:i}=t[aa("0x21")](n[aa("0x33")]),s=t[aa("0x3e")](i),x=s[aa("0x17")];if(aa("0x11")!=s[aa("0x35")]||!x||"setTableColumnHeader"!=x[aa("0x9")])return;const a=r[aa("0x31")][aa("0x1a")](n.markerName);if(a)for(const t of a)r[aa("0x4")][aa("0x1f")](aa("0x36")+o,t),r[aa("0x4")][aa("0x1f")]("ck-suggestion-marker--active",t),r[aa("0x4")][aa("0x13")](aa("0x2b"),t),r[aa("0x31")].unbindElementFromMarkerName(t,n[aa("0x33")])}),{priority:aa("0x40")}),this[aa("0x1c")]()}[aa("0x1c")](){const t=this.editor,e=t[aa("0x14")];function n(t){return{type:aa("0x19"),content:Jr(e,aa("0x1"),t)}}t.plugins.get("TrackChangesEditing")[aa("0x2a")].registerDescriptionCallback((t=>{if(aa("0x11")!=t.type)return;const{data:r}=t;if(r){if(aa("0x5")==r[aa("0x9")]){const t=r[aa("0x29")][0][aa("0x0")];return n(Jr(e,aa(t?"0x26":"0x3a")))}if(aa("0x15")==r[aa("0x9")]){const t=r.commandParams[0][aa("0x0")];return n(Jr(e,aa(t?"0x3f":"0x28")))}}}))}}const la=["from","setAttribute","suggestion","keys","commands","getSuggestion","reduce","length","getChild","dataDowncast","_splitMarkerName","element","tablePasteChainId","options","type","push","deletionRanges","tableCellBorderWidth","containsRange","newRange","includes","markerToHighlight","editingDowncast","columnInsertionIndexes","formatBlock","setAttributes","_createdBatches","listenTo","_suggestionFactory","start","rows","getSuggestionCallback","hasSuggestion","afterInit","removeColumns","tableCellHorizontalAlignment","columns","getMarkers","high","schema","isEqual","table","showSuggestionHighlights","cell","markerAttributes","getContainedElement","tablePasteColumn","isInContent","Users","insertContent","createTableWalker","trackChanges","createRangeOn","cells","getChildren","deletion","getTableIfOnlyTableInContent","getRowIndexes","getAllAdjacentSuggestions","isEmpty","updateMarker","markers","find","get","suggestionLoaded","getChangedMarkers","createPositionBefore","for","next","_getCoordsForCells","paragraph","filter","getAttributes","tableCellVerticalAlignment","endRow","insertionRanges","register","_replaceTableSlotCell","has","unwrap","forceDefaultExecution","markerName","rowInsertionRanges","remove","columnInsertionRanges","fromEntries","getSuggestions","add","startsWith","clipboardOutput","tableCellBorderColor","change","tablePasteRow","stop","differ","subType","getItems","createRangeIn","author","join","markMultiRangeDeletion","root","last","$graveyard","accept","insert","redo","endColumn","view","locale","_descriptionFactory","getColumns","position","editor","conversion","insertion","column","getColumnIndexes","getRanges","getSelectionAffectedTableCells","createElement","map","tablePasteCell","TableClipboard","plugins","tableCellSuggestion","value","markMultiRangeInsertion","first","some","tableCellBorderStyle","ck-suggestion-marker","attributes","suggestion-td","registerPostFixer","removeMarker","findAncestor","low","previous","fill","_tablePostFixingSubtypes","rowInsertionIndexes","registerCustomCallback","entries","selection","return","ck-suggestion-marker-insertion","suggestionUnloaded","model","batch","discard","oldRange","elementToElement","previousSibling","tablePaste","tableCell","set","createRange","getRange","tableCellBackgroundColor","every","document","nextSibling","getChanges","requires"];var ua,da;ua=la,da=276,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x47"),ga("0x90"),ga("0x13"),ga("0x59"),ga("0x7f"),ga("0x30"),"tableCellPadding"],ha=Object.fromEntries(fa[ga("0xa")]((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x35")](){return[Jx]}[ga("0x57")](){const t=this[ga("0x2")];if(!t[ga("0xd")][ga("0x84")]("TableClipboard"))return;const n=t[ga("0xd")][ga("0x75")]("TrackChangesEditing"),r=t[ga("0xd")][ga("0x75")]("TableUtils"),o=t[ga("0xd")][ga("0x75")](Jx),i=t[ga("0xd")].get(ga("0xc"));o[ga("0x1d")][ga("0x45")](ga("0x92"),"tablePasteColumn"),t[ga("0x25")][ga("0x5d")][ga("0x82")]("tableCellSuggestion",{allowIn:ga("0x2c"),allowContentOf:ga("0x2c"),isLimit:!0}),t[ga("0x3")][ga("0x29")]({model:ga("0xe"),view:ga("0x16")});let s=null;t[ga("0x25")].on(ga("0x67"),((o,x)=>{const[a,c]=x,l=x[x[ga("0x3d")]-1];l&&l[ga("0x86")]||n._isForcedDefaultExecutionBlock||this[ga("0x2")].commands[ga("0x75")](ga("0x69"))[ga("0xf")]&&function(t,e,n,r,o){if(e&&!e.is("documentSelection"))return!1;const i=o[ga("0x6e")](t,n);if(!i||!ba(i,void 0,r))return!1;const s=r[ga("0x8")](n.document[ga("0x21")]);if(!s[ga("0x3d")])return!1;const x=s[0][ga("0x19")]("table"),a=r[ga("0x6f")](s),c=r[ga("0x6")](s),l={startRow:a[ga("0x11")],endRow:a[ga("0x9c")],startColumn:c[ga("0x11")],endColumn:c[ga("0x9c")]};return 1==s[ga("0x3d")]&&(l[ga("0x80")]+=r.getRows(i)-1,l[ga("0xa1")]+=r[ga("0x0")](i)-1),ba(x,l,r)}(a,c,t[ga("0x25")],r,i)&&(o[ga("0x93")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x25")][ga("0x91")]((()=>{t[ga("0x25")][ga("0x67")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:o,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;o[ga("0x3d")]&&n[ga("0x10")](o,ga("0x92"),{tablePasteChainId:r}),i[ga("0x3d")]&&n[ga("0x10")](i,ga("0x64"),{tablePasteChainId:r}),a[ga("0x3d")]&&n[ga("0x10")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x3d")]&&n[ga("0x9a")](c,ga("0x2b"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[ga("0xa")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0xb"),{tablePasteChainId:r});if(u){const e=u.getMarkers(),n=[];for(const{element:r,attributes:o}of l){if(!o)continue;const i=t.model[ga("0x6a")](r),s=e[ga("0x74")]((t=>t[ga("0x2f")]().isEqual(i)));s&&n[ga("0x45")]([s.name,o])}n[ga("0x3d")]&&u[ga("0x37")]("markerAttributes",Object[ga("0x8b")](n))}s=null})))}),{priority:e.priorities[ga("0x5c")]+10}),t[ga("0xd")][ga("0x75")](ga("0xc")).on(ga("0x83"),((t,e)=>{const[n,r,,o]=e;if(!s)return;t[ga("0x93")]();const i=n[ga("0x61")],x=r,a=pa(i),c=pa(x);t[ga("0x22")]=i;let l=null,u=null;if(c||a)if(a&&!c){o[ga("0x89")](i[ga("0x3e")](0));for(const t of Array[ga("0x36")](x[ga("0x6c")]()))o[ga("0x9f")](t,i,"end");const t=s[ga("0x1e")][ga("0x4a")](n.row),e=s[ga("0x4d")].includes(n[ga("0x5")]);t||e||(l=o[ga("0x97")](i))}else c&&!a&&(u=o.createRangeIn(i));else{const t=o[ga("0x9")](ga("0xe")),e=o.createElement(ga("0xe"));o.wrap(o[ga("0x97")](i),e),o[ga("0x9f")](t,i,0);for(const e of Array.from(x.getChildren()))o[ga("0x9f")](e,t,"end");l=o[ga("0x6a")](t),u=o[ga("0x6a")](e)}const d=Array.from(x[ga("0x7e")]())[ga("0x7d")]((([t])=>fa[ga("0x4a")](t)));s[ga("0x6b")][ga("0x45")]({element:i,attributes:d[ga("0x3d")]?Object.fromEntries(d):null}),l&&s[ga("0x81")][ga("0x45")](l),u&&s[ga("0x46")][ga("0x45")](u)}),{priority:ga("0x5c")}),r.on("insertColumns",((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i[ga("0x5a")]||1;s.columnInsertionIndexes=new Array(a)[ga("0x1c")](x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x68")](o,{startColumn:x,endColumn:x+a-1}))s[ga("0x8a")].push(t[ga("0x25")][ga("0x6a")](e))}),{priority:"low"}),r.on("insertRows",((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i[ga("0x54")]||1;s[ga("0x1e")]=new Array(a)[ga("0x1c")](x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x68")](o,{startRow:x,endRow:x+a-1}))s[ga("0x88")][ga("0x45")](t[ga("0x25")].createRangeOn(e))}),{priority:ga("0x1a")}),n[ga("0xa4")].registerDescriptionCallback((e=>{if(e[ga("0x95")]&&e.subType[ga("0x8e")](ga("0x2b")))return e[ga("0x1b")]?{}:{type:ga("0x4"),content:Jr(t[ga("0xa3")],"*Replace table cells*")}}));const x=()=>!1;for(const t of[ga("0x2b"),ga("0x64"),ga("0x92"),ga("0xb")])n[ga("0x52")][ga("0x1f")](ga("0x4"),t,ga("0x99"),x),n[ga("0x52")][ga("0x1f")]("deletion",t,ga("0x99"),x),n[ga("0x52")].registerCustomCallback(ga("0x4e"),t,ga("0x99"),x);n[ga("0x52")][ga("0x1f")]("formatBlock",ga("0xb"),ga("0x27"),x),n._suggestionFactory[ga("0x1f")](ga("0x4e"),ga("0xb"),ga("0x9e"),((e,n,r)=>{const o=e[ga("0xa")]((t=>t[ga("0x63")]()))[ga("0x7d")]((t=>t)),i=new Map(o[ga("0xa")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&i.set(t,e);else if(r&&r[ga("0x62")])for(const[e,n]of Object[ga("0x20")](r[ga("0x62")])){const r=t[ga("0x25")][ga("0x73")][ga("0x75")](e),o=r?r[ga("0x2f")]()[ga("0x63")]():null;o&&i[ga("0x2d")](o,n)}t[ga("0x25")][ga("0x91")]((t=>{for(const[e,n]of i)t[ga("0x4f")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x52")][ga("0x1f")](e,ga("0x2b"),r,((o,i,s)=>{t[ga("0x25")][ga("0x91")]((t=>{const x=[];for(const t of o){const e=t[ga("0x53")].nodeAfter;e.is("element","tableCellSuggestion")&&x[ga("0x45")](e)}n[ga("0x52")][ga("0x55")](e,null,r)(o,i,s);for(const e of x)ga("0x9d")!=e[ga("0x9b")].rootName&&t[ga("0x85")](e)}))}))};a("insertion","accept"),a("insertion",ga("0x27")),a(ga("0x6d"),ga("0x9e")),a(ga("0x6d"),"discard"),n[ga("0x52")][ga("0x1f")](ga("0x4"),"tablePasteRow",ga("0x27"),(t=>{const e=t.map((t=>t[ga("0x63")]())),n=e[0].findAncestor("table"),{minRow:i,maxRow:s}=o._getCoordsForCells(e);r.removeRows(n,{at:i,rows:s-i+1})})),n[ga("0x52")].registerCustomCallback(ga("0x4"),ga("0x64"),ga("0x27"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0].findAncestor(ga("0x5f")),{minColumn:i,maxColumn:s}=o[ga("0x7b")](e);r[ga("0x58")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ga("0x95")]||!e.subType.startsWith(ga("0x2b")))return;const r=e[ga("0x15")][ga("0x42")],o=n.getSuggestions()[ga("0x7d")]((t=>t[ga("0x65")]&&t[ga("0x15")]&&t[ga("0x15")][ga("0x42")]==r));o[ga("0x3d")]&&e[ga("0x70")]().length!=o[ga("0x3d")]&&o[ga("0x3c")](((t,e)=>(t[ga("0x7a")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:r}=n[ga("0x40")](t.markerName),o=[ga("0x14"),ga("0x23")],i=n.activeMarkers.includes(t[ga("0x87")]);return i&&o[ga("0x45")]("ck-suggestion-marker--active"),{classes:o,attributes:{"data-suggestion":r},priority:i&&e?3010:3e3}}n.on(ga("0x76"),c,{priority:ga("0x5c")}),n.on(ga("0x24"),c,{priority:ga("0x5c")}),t[ga("0x25")][ga("0x32")][ga("0x17")]((()=>{let e=!1;const r=Array[ga("0x36")](t[ga("0x25")][ga("0x32")][ga("0x94")][ga("0x77")]());for(const{name:o,data:i}of r){const{group:r,type:s,id:x}=n[ga("0x40")](o);if(ga("0x38")!=r||ga("0x6d")!=s||i.oldRange)continue;if(!n[ga("0x56")](x))continue;const a=n[ga("0x3b")](x)[ga("0x7")](),c=t[ga("0xd")][ga("0x75")](ga("0x66")).me;for(const t of n[ga("0x8c")]())if(t[ga("0x65")]&&t[ga("0x98")]==c&&ga("0x4e")==t[ga("0x44")]&&ga("0xb")==t[ga("0x95")]&&t[ga("0x7")]()[ga("0x31")]((t=>a[ga("0x12")]((e=>e[ga("0x48")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[ga("0x65")]&&(n[ga("0x27")](),e=!0)}return e})),t[ga("0x25")].document.registerPostFixer((e=>{const r=t[ga("0x3a")][ga("0x75")](ga("0xa0"));if(!r||!r[ga("0x50")][ga("0x84")](e[ga("0x26")]))return!1;let o=!1;const i=t[ga("0xd")][ga("0x75")]("Users").me,s=t[ga("0x25")][ga("0x32")].differ[ga("0x34")](),x=Array[ga("0x36")](t[ga("0x25")][ga("0x32")].differ[ga("0x77")]())[ga("0x7d")]((({name:t,data:e})=>{const{group:r,subType:o,authorId:s}=n[ga("0x40")](t);return ga("0x38")==r&&"tablePaste"==o&&s==i.id&&!e[ga("0x28")]}));for(const t of s){if(ga("0x9f")!=t[ga("0x44")]||ga("0xe")!=t.name||1!=t[ga("0x3d")])continue;const n=e[ga("0x2e")](t[ga("0x1")],t[ga("0x1")].getShiftedBy(1));if(!x[ga("0x74")]((({data:t})=>t[ga("0x49")][ga("0x5e")](n))))for(const{name:t,data:r}of x)if(n[ga("0x48")](r[ga("0x49")])){e[ga("0x72")](t,{range:n}),o=!0;break}}return o})),t[ga("0x25")][ga("0x32")][ga("0x17")]((e=>{let r=!1;const o=t[ga("0xd")].get(ga("0x66")).me,i=n[ga("0x8c")]().filter((t=>t.isInContent&&t[ga("0x98")]==o)),s=new Set,x=new Set;for(const t of i)if("tablePaste"==t[ga("0x95")])for(const e of t[ga("0x5b")]()){const n=e[ga("0x2f")]().getContainedElement();if(n)if(n.is(ga("0x41"),"tableCellSuggestion")&&pa(n)){t.removeMarker(e.name),s.add(n),r=!0;const o=n[ga("0x33")],i=n[ga("0x2a")],a=o&&o.is(ga("0x41"),"tableCellSuggestion"),c=i&&i.is("element","tableCellSuggestion");a&&!s[ga("0x84")](o)&&x[ga("0x8d")](o),c&&!s[ga("0x84")](i)&&x.add(i)}else n.is(ga("0x41"),"paragraph")&&n[ga("0x71")]&&(t[ga("0x18")](e.name),r=!0)}else if(ga("0xb")==t[ga("0x95")]){if(!t[ga("0x15")]||!t[ga("0x15")][ga("0x42")])continue;const e=t[ga("0x15")][ga("0x62")];if(e&&Object[ga("0x39")](e)[ga("0x3d")])continue;const n=t[ga("0x15")][ga("0x42")];let o=!0,s=!0;for(const e of i)if(e[ga("0x95")]&&e[ga("0x95")][ga("0x8e")](ga("0x2b"))){if(!e[ga("0x15")][ga("0x42")]){s=!1;break}if(e.id!=t.id&&e[ga("0x15")].tablePasteChainId==n){o=!1;break}}s&&o&&(t.removeMarkers(),r=!0)}for(const t of s)e[ga("0x89")](t);for(const t of x)e[ga("0x85")](t);return r})),t[ga("0x3")][ga("0x79")](ga("0x4c"))[ga("0x4b")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t[ga("0x3")][ga("0x79")](ga("0x3f")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ga("0x43")][ga("0x60")]?l(t,!1):null,converterPriority:ga("0x5c")});const u=t.editing[ga("0xa2")];this[ga("0x51")](u.document,ga("0x8f"),((t,e)=>{const n=[];for(const t of u[ga("0x97")](e.content)[ga("0x96")]())t.is("element","suggestion-td")&&n.push(t);u[ga("0x91")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t[ga("0x78")](e)),t[ga("0x89")](e)}))}))}}function pa(t){if(t.isEmpty)return!0;const e=t[ga("0x3e")](0);return e.is(ga("0x41"),ga("0x7c"))&&e[ga("0x71")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:o,cellWidth:i}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=o||1!=i)return!1;return!0}const Ea=["formatBlock","subType","locale","handleResizeTableWidthCommand","accept","columnWidths","format","registerDescriptionCallback","selection","author","getContainedElement","change","formatGroupId","type","getSelectedElement","editor","model","_suggestionFactory","_descriptionFactory","handleSuggestionDescription","bind","commandParams","tableWidth","get","resizeTableWidth","plugins","discard","registerCustomCallback","resizeTable","afterInit","data","getTableColumnsWidths","TrackChangesEditing","document","TableColumnResizeEditing","table","*Format:* resize table","getColumnGroupElement","formatInline","markBlockFormat","getSuggestionCallback"];var _a,Ta;_a=Ea,Ta=494,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x1b")](){if(!this[ya("0xd")].plugins.has(ya("0x20")))return;const t=this[ya("0xd")][ya("0x17")][ya("0x15")](ya("0x1e"));t.enableCommand("resizeTableWidth",this[ya("0x1")][ya("0x12")](this)),t[ya("0xf")][ya("0x19")](ya("0x27"),ya("0x1a"),ya("0x2"),t._suggestionFactory[ya("0x26")](ya("0x27"),null,ya("0x18"))),t[ya("0xf")][ya("0x19")]("formatBlock","resizeTable",ya("0x18"),t[ya("0xf")][ya("0x26")](ya("0x27"),null,ya("0x2"))),t[ya("0x10")][ya("0x5")](this[ya("0x11")][ya("0x12")](this))}[ya("0x1")](t,e){const n=this[ya("0xd")].plugins[ya("0x15")](ya("0x1e")),r=this[ya("0xd")][ya("0x17")][ya("0x15")](ya("0x20")),o=e[ya("0x21")]||this[ya("0xd")][ya("0xe")][ya("0x1f")][ya("0x6")][ya("0xc")]();this[ya("0xd")].model[ya("0x9")]((()=>{const i=r[ya("0x23")](o);let s=i?r[ya("0x1d")](i):null,x=o.getAttribute(ya("0x14"))||null;const a=e.tableWidth||x,c=e[ya("0x3")]||s,l=this[ya("0xd")][ya("0x17")].get("Users").me;for(const t of n.getSuggestions()){const e=t[ya("0x8")]();if(ya("0x1a")===t[ya("0x28")]&&e===o){t[ya("0x7")]!==l&&t[ya("0x18")]();const e=t[ya("0x1c")][ya("0x13")];x=e[0][ya("0x14")],s=e[0].columnWidths;break}}t({table:o,tableWidth:a,columnWidths:c}),n[ya("0x25")](o,{commandName:ya("0x16"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x1a")},[],"resizeTable")}))}[ya("0x11")](t){if("formatBlock"!=t.type&&ya("0x24")!=t[ya("0xb")])return;const{data:e}=t;if(e&&ya("0x1a")===e[ya("0xa")]){const t=ya("0x22");return{type:ya("0x4"),content:Jr(this[ya("0xd")][ya("0x0")],t)}}}}const Aa=["plugins","enableCommand","insertTemplate","has","editor","TrackChangesEditing"];var ka,Ia;ka=Aa,Ia=292,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Sa=function(t,e){return Aa[t-=0]};class Ra extends t.Plugin{afterInit(){const t=this[Sa("0x0")];t.plugins[Sa("0x5")]("Template")&&t[Sa("0x2")].get(Sa("0x1"))[Sa("0x3")](Sa("0x4"))}}const La=["plugins","TrackChangesEditing","afterInit","insertTableOfContents","enableCommand","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","registerElementLabel","get","commands","locale","tableOfContents"];var va,Na;va=La,Na=111,function(t){for(;--t;)va.push(va.shift())}(++Na);const Ma=function(t,e){return La[t-=0]};class wa extends t.Plugin{[Ma("0xb")](){const t=this.editor;if(!t[Ma("0x6")][Ma("0x5")](Ma("0x0")))return;t.plugins[Ma("0x5")](Ma("0xa"))[Ma("0x1")]("insertTableOfContents");const e=t[Ma("0x9")][Ma("0x5")](Ma("0xa")),n=t[Ma("0x7")];e[Ma("0x3")][Ma("0x4")](Ma("0x8"),(t=>Jr(n,Ma("0x2"),t)))}}const Oa=["start","registerElementLabel","registerPostFixer","ELEMENT_TITLE","isCollapsed","isEqual","document","suggestion","createRange","_descriptionFactory","model","afterInit","has","newRange","from","schema","forward","end","TrackChangesEditing","updateMarker","get","plugins","element","getNearestSelectionRange","getChangedMarkers","editor","Title"];var Fa,Da;Fa=Oa,Da=243,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{[Ba("0xb")](){const t=this[Ba("0x19")];if(!t.plugins[Ba("0xc")](Ba("0x1a")))return;const e=t[Ba("0x15")][Ba("0x14")](Ba("0x12"));e[Ba("0x9")][Ba("0x1")]("title-content",(()=>Jr(t.locale,Ba("0x3")))),t[Ba("0xa")][Ba("0x6")][Ba("0x2")]((n=>{let r=!1;const o=Array[Ba("0xe")](t[Ba("0xa")].document.differ[Ba("0x18")]());for(const{name:i,data:s}of o){const{group:o}=e._splitMarkerName(i);if(Ba("0x7")!==o||!s.newRange)continue;const x=s[Ba("0xd")],a=x[Ba("0x11")].nodeBefore;if(!a||!a.is(Ba("0x16"),"title-content"))continue;if(!x[Ba("0x0")].isTouching(x[Ba("0x11")]))continue;const c=t[Ba("0xa")][Ba("0xf")][Ba("0x17")](x[Ba("0x11")],Ba("0x10"));if(c&&c[Ba("0x4")]){const t=n[Ba("0x8")](x[Ba("0x0")],c[Ba("0x0")]);t[Ba("0x5")](x)||(n[Ba("0x13")](i,{range:t}),r=!0)}r||(n.removeMarker(i),r=!0)}return r}))}}const Ua=["has","UndoEditing","plugins","undo","afterInit","redo","enableCommand","get","editor","TrackChangesEditing"];var ja,Ga;ja=Ua,Ga=289,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x5")](){const t=this[Va("0x9")],e=t[Va("0x3")][Va("0x8")](Va("0x0"));t[Va("0x3")][Va("0x1")](Va("0x2"))&&(e[Va("0x7")](Va("0x4")),e.enableCommand(Va("0x6")))}}const za=["requires","TrackChangesEditing","has","afterInit","TableCaptionEditing"];var Wa,Ka;Wa=za,Ka=452,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class $a extends t.Plugin{static get[qa("0x3")](){return[Jx]}[qa("0x1")](){const t=this.editor;t.plugins[qa("0x0")](qa("0x2"))&&t.plugins.get(qa("0x4")).enableCommand("toggleTableCaption")}}const Xa=["markBlockFormat","enqueueChange","plugins","tableProperties","*Format:* change table cell properties","tableCellBorderWidth","findAncestor","tableCellPadding","registerDescriptionCallback","getFirstPosition","data","_handlePropertyChange","model","handleDiscardAction","_getSuggestion","tableBackgroundColor","locale","_descriptionFactory","tableCellVerticalAlignment","start","tableBorderWidth","TrackChangesEditing","setAttribute","removeAttribute","_suggestionFactory","has","get","accept","getSuggestionCallback","afterInit","registerCustomCallback","document","TrackChangesTableProperties","selection","tableAlignment","getContainedElement","formatBlock","TableUtils","discard","tableCellHorizontalAlignment","tableCellBackgroundColor","tableHeight","tableCellBorderColor","enableCommand","handleSuggestionDescription","subType","TableCellPropertiesEditing","nodeAfter","TablePropertiesEditing","tableBorderColor","editor","pluginName","commandParams","tableCellProperties","getAttribute"];var Za,Ya;Za=Xa,Ya=356,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return Xa[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this.tableProperties=[Ja("0x17"),"tableBorderStyle",Ja("0x31"),Ja("0x8"),"tableWidth",Ja("0xf"),Ja("0x2c")],this[Ja("0x1b")]=[Ja("0x10"),"tableCellBorderStyle",Ja("0x22"),Ja("0x24"),"tableCellWidth","tableCellHeight",Ja("0xe"),Ja("0xd"),Ja("0x2f")]}static get[Ja("0x19")](){return Ja("0x6")}[Ja("0x3")](){const t=this[Ja("0x18")][Ja("0x1f")][Ja("0x0")](Ja("0x32"));if(this[Ja("0x18")][Ja("0x1f")][Ja("0x36")](Ja("0x16"))){for(const e of this[Ja("0x20")])t[Ja("0x11")](e,((t,n)=>{const r=this[Ja("0x18")][Ja("0x29")].document.selection[Ja("0x26")]()[Ja("0x23")]("table");this[Ja("0x28")](e,[r],this[Ja("0x20")],Ja("0x20"),t,n)}));t[Ja("0x35")].registerCustomCallback("formatBlock","tableProperties",Ja("0x1"),t[Ja("0x35")][Ja("0x2")]("formatBlock",null,Ja("0xc"))),t[Ja("0x35")][Ja("0x4")](Ja("0xa"),"tableProperties",Ja("0xc"),((t,e)=>this[Ja("0x2a")](this.tableProperties,t,e))),t[Ja("0x35")][Ja("0x4")](Ja("0xa"),Ja("0x20"),"join",(()=>!1))}if(this.editor[Ja("0x1f")][Ja("0x36")](Ja("0x14"))){for(const e of this[Ja("0x1b")])t[Ja("0x11")](e,((t,n)=>{const r=this[Ja("0x18")][Ja("0x1f")].get(Ja("0xb")).getSelectionAffectedTableCells(this[Ja("0x18")][Ja("0x29")][Ja("0x5")][Ja("0x7")]);this[Ja("0x28")](e,r,this[Ja("0x1b")],Ja("0x1b"),t,n)}));t[Ja("0x35")][Ja("0x4")](Ja("0xa"),Ja("0x1b"),Ja("0x1"),t._suggestionFactory[Ja("0x2")](Ja("0xa"),null,Ja("0xc"))),t._suggestionFactory[Ja("0x4")](Ja("0xa"),Ja("0x1b"),Ja("0xc"),((t,e)=>this[Ja("0x2a")](this[Ja("0x1b")],t,e))),t[Ja("0x35")][Ja("0x4")]("formatBlock","tableCellProperties","join",(()=>!1))}t[Ja("0x2e")][Ja("0x25")]((t=>this[Ja("0x12")](t)))}[Ja("0x28")](t,e,n,r,o,i){const s=this.editor[Ja("0x1f")][Ja("0x0")](Ja("0x32"));this[Ja("0x18")][Ja("0x29")][Ja("0x1e")](i.batch,(()=>{for(const t of e)if(this[Ja("0x2b")](t,r))o(i);else{const e={};for(const r of n){const n=t[Ja("0x1c")](r);void 0!==n&&(e[r]=n)}o(i),s[Ja("0x1d")](t,{commandParams:[e]},[],r)}}))}[Ja("0x2a")](t,e,n){const r=e[0][Ja("0x30")][Ja("0x15")],o=n[Ja("0x1a")][0];this[Ja("0x18")][Ja("0x29")].change((e=>{for(const n of t)void 0!==o[n]?e[Ja("0x33")](n,o[n],r):e[Ja("0x34")](n,r)}))}[Ja("0x12")](t){if(t[Ja("0x27")])switch(t[Ja("0x13")]){case Ja("0x20"):return{type:"format",content:Jr(this[Ja("0x18")][Ja("0x2d")],"*Format:* change table properties")};case Ja("0x1b"):return{type:"format",content:Jr(this[Ja("0x18")][Ja("0x2d")],Ja("0x21"))}}}[Ja("0x2b")](t,e){const n=this[Ja("0x18")][Ja("0x1f")][Ja("0x0")](Ja("0x32"));for(const r of n.getSuggestions({skipNotAttached:!0})){const n=r[Ja("0x9")]();if(r.subType===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,oc=nc.call(Object);const ic=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==oc};const sc=function(t){return ic(t)?void 0:t};var xc=ot?ot.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,o,i){var s=-1,x=e.length;for(r||(r=ac),i||(i=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,o,i):sn(i,a):o||(i[i.length]=a)}return i};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=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 dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=dc(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var x=Array(e+1);++o<e;)x[o]=r[o];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),ie(t,dn(t),n),r&&(n=tr(n,7,sc));for(var o=e.length;o--;)Wr(n,e[o]);return n})),Ec=["attribute:join","forEach","getChangedMarkers","accept","update:suggestion","isBefore","isLocal","_getExternalAuthor","getLastMatchingPosition","deletion:chain","addMarker:suggestion:formatBlock","_descriptionFactory","reconvertMarker","getContainedElement","addSuggestionData","insertion:","marker-count","has","always","_afterChanges","removeMarker:suggestion:attribute","stop","set","_handleNewSuggestionMarker","markMultiRangeDeletion","execute","low","isInContent","registerPostFixer","_recordAttributeSuggestions","multipleBlocks","attributeKey","size","trackChanges.trackFormatChanges","containsRange","enableCommand","parent","markerToData","_setSuggestionData","attributeNewValue","commentThread","multi","_getMarkerAnnouncementText","insertion:chain","acceptAllSuggestions","skipNestingCheck","track-changes-adapter-already-set","getSuggestionCallback","editing","isSelectable","clear","push","deleteContent","$elementName","CommentsRepository","markInlineFormat","change:data","length","acceptSelectedSuggestions","markMultiRangeInsertion","createRangeIn","deletion:accept","ck-suggestion-marker-formatBlock","track-changes-adapter-missing-getsuggestion","getChanges","listenTo","selection","showSuggestionHighlights","_saved","isRemovable","markerNameToElements","deletion:","toJSON","getFirstRange","getCustomProperty","editingDowncast","fire","open","addClass","_recordAttributeChanges","split","_suggestions","value","find","discard","_enabledCommands","ck-suggestion-marker-formatInline","applyOperation","addHighlight","isNextTo","writer","_addThreadToSuggestion","trackChanges.mergeNestedSuggestions","isUndo","before","schema","attributes","define","range","enqueueChange","getMultiRangeId","change","clone","sort","mapper","addCommentThread","map","attributeOldValue","values","author","high","differ","insertContent","isInsideObject","delete","_isDataLoaded","authoredAt","$text","formatBlock:accept","formatInline:discard","markerName","_rangeIsInLocalUserInsertion","oldValue","_cutOutSuggestionMarker","formatBlock:","_inlineAttributeKeys","_registerInlineAttribute","suggestion","hasSuggestion","deletion:discard","_processAttributeChanges","suggestionUnloaded","createElement","conversion","hasComments","_refreshAttributeSuggestionsChain","insert","getSuggestions","_splitMarkerName","trackChangesCommand","commands","Users","pluginName","formatInline:","discardSuggestion","bindElementToMarker","addComment","ck-suggestion-marker--active","addUser","_isBlockAttribute","default","_suggestionState","every","_suggestionFactory","item","remove","editor","updateSuggestion","getItems","keys","getCommentThread","lowest","ck-suggestion-marker-","position","isLimit","_reduceSuggestionAttributeRange","commandName","_commentsRepository","suggestion-type","newRange","announce","formatInline:chain","previous","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.","some","external:","removeClass","data-suggestion","isOwn","_createSuggestion","resolve","formatBlock:join","removeComment","_editor","highest","_getAuthorFromId","detach","deletion:join","_model","markers","markerReady","createRange","howMany","containsItem","_registerDefaultCallbacks","refresh","removeMarkers","isAtStart","containsPosition","getAllAdjacentSuggestions","targetPosition","addRange","element","type","addMarker:suggestion:attribute","formatGroupId","activeMarkers","hasCommentThread","track-changes-user-not-found","getNearestSelectionRange","markInsertion","@external","forward","unbind","start","unshift","unbindElementFromMarkerName","nodeAfter","formatInline:join","elementEnd","fromCharCode","next","batch","isBlock","insertion:join","return","_getSuggestionData","track-changes-suggestion-data-mismatch","root","_initAriaMarkerChangeAnnouncements","documentSelection","notReady","widget","_addSuggestionMarker","substring","config","plugins","setSelection","groupId","never","newValue","_customCallbacks","upcast","_SUGGESTION_ANNOUNCEMENT","consume","acceptSuggestion","name","assign","locale","rethrowUnexpectedError","registerCustomCallback","change:activeMarkers","nodeBefore","filter","createdAt","createPositionBefore","_isRegisteredAttribute","adapter","isCollapsed","getSuggestion","_joinWithAdjacentSuggestions","normal","markBlockFormat","isAtEnd","getWalker","removeAttribute","suggestionLoaded","markAttributeChange","chain","isAfter","$textProxy","$marker","createSelection","for","formatBlock:discard","from","_findSuggestions","consumable","ready","init","includes","warn","attribute:accept","addSuggestion","isObject","_reduceExistingSuggestions","rootName","isExternal","_processAttributeSuggestions","formatInline","_removeSuggestion","_defaultCallbacks","accepted","options","$graveyard","model","trackChanges","suggestion:","isEqual","dataReady","getAttribute","removeMarker","isIntersecting","creator","_adapter","subType","isMultiRange","moveTargetPosition","_element","getDifference","fetchCommentThread","_getAttributeKey","_setSuggestionRange","toViewElement","getRanges","_joinSuggestions","insertion","markMultiRangeBlockFormat","add","formatBlock:chain","createPositionAt","getShiftedBy","end","suggestionChanged","_trackFormatChanges","after","_onDiscard","PendingActions","ck-suggestion-marker","setTo","getIntersection","_breakSuggestionMarker","splitPosition","updateMarker","group","document","formatBlock","attribute","dataToMarker","ENTER","discardSelectedSuggestions","dataDowncast","removeMarker:suggestion:formatBlock","elementToElement","addMarker:suggestion","_enableDefaultAttributesIntegration","get","insertion:discard","addMarker","comments","_blockAttributeKeys","head","getFirstMarker","containsRangeInObject","_isForcedDefaultExecutionBlock","_updateSuggestionData","join","_mergeNestedSuggestions","isIntersectingWithRange","TrackChangesEditing","PENDING_ACTION_SUGGESTION","markerToHighlight","tablePasteChainId","key","deletion","track-changes-suggestion-not-found","getRange","discardAllSuggestions","pop","rename","LEAVE","startsWith","_refreshSuggestionsChain","rejected","containerElement","then","attribute:","isArray","buildSuggestion","removed","forceDefaultExecution","data","requires","setAttribute","_registerBlockAttribute","oldRange"];var _c,Tc;_c=Ec,Tc=117,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x142");class Ac extends t.Plugin{static get[yc("0x109")](){return[yc("0x143"),i.Users,t.PendingActions,ao,fo,_o,ko,Do,No,Go,qo,ii,Ai,Li,Fi,ji,Ki,Yi,ns,xs,ds,ys,ps,Ss,Ms,Bs,qs,tx,Vs,li,mi,ix,lx,hx,_x,Ix,Nx,Dx,Vx,qx,Jx,oa,ca,$a,ma,Ca,wa,Qa,Ra,Pa,Ha]}static get[yc("0x19")](){return yc("0xf2")}constructor(t){function e(t){return t[yc("0x177")]((t=>String[yc("0x67")](t)))[yc("0xef")]("")}super(t),this._recordAttributeSuggestions=!1,this[yc("0x123")]("activeMarkers",[]),this.on(yc("0x86"),((e,n,r,o)=>{this[yc("0x47")][yc("0x172")]((()=>{for(const e of[...o,...r])this._model[yc("0x48")][yc("0x11e")](e)&&t[yc("0x13d")][yc("0x119")](e)}))})),this[yc("0x118")]=new ro(this[yc("0x27")][yc("0xb2")].schema,this[yc("0x27")][yc("0x83")]),this[yc("0xbb")]=null,this[yc("0x24")]=new kc(this[yc("0x27")]),this[yc("0x15e")]=new Map,this._commentsRepository=t[yc("0x77")][yc("0xe5")](yc("0x143")),this[yc("0x162")]=new Set,this[yc("0x47")]=this.editor.model,this[yc("0x22")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[yc("0xe9")]=new Set([yc("0x142")]),this[yc("0x8")]=new Set,t[yc("0x76")].define(yc("0x12e"),yc("0x21")),this[yc("0xcf")]=t[yc("0x76")][yc("0xe5")](yc("0x12e")),t[yc("0x76")][yc("0x16e")]("trackChanges.mergeNestedSuggestions",!0),this[yc("0xf0")]=t[yc("0x76")][yc("0xe5")](yc("0x169")),this.trackChangesCommand=new d(t,this[yc("0x162")]),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,50,51,52])}[yc("0xa2")](){const t=this[yc("0x27")],n=(t,e)=>{if("attribute"!=t)return yc("0x2d")+t;const n=e[yc("0x15d")]("|")[0];return this._isBlockAttribute(n)?yc("0x14b"):yc("0x163")};t[yc("0x10")][yc("0x9c")](yc("0x158"))[yc("0xf4")]({model:yc("0xa"),view:t=>{const{id:e,type:r,subType:o}=this[yc("0x15")](t[yc("0x3")]),i=["ck-suggestion-marker",n(r,o)];let s=3e3;return this[yc("0x59")].includes(t.markerName)&&(i.push(yc("0x1e")),s=3010),yc("0xf7")==r&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x10")].for("dataDowncast")[yc("0xc9")]((e=>{e.on(yc("0xe3"),((e,n,r)=>{if(!r[yc("0xb0")][yc("0x150")])return;const o=n[yc("0x25")];if(!o)return;const i=r[yc("0x175")].toViewElement(o);t[yc("0xb2")][yc("0x16c")].isObject(o)&&i&&!i[yc("0x157")](yc("0x73"))&&i.is(yc("0x101"))&&(0,x.toWidget)(i,r[yc("0x167")])}),{priority:yc("0x17b")})})),t.conversion[yc("0x9c")](yc("0xe0"))[yc("0xf4")]({model:yc("0xa"),view:(t,e)=>{if(!e[yc("0xb0")][yc("0x150")])return null;const{type:r,subType:o}=this[yc("0x15")](t.markerName);return{classes:["ck-suggestion-marker",n(r,o)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,o,i)=>{if(!o[yc("0x25")])return;const{id:s}=this[yc("0x15")](o[yc("0x3")]);if(n){const t=this._suggestions.get(s),e=this._getAttributeKey(t);if(!this[yc("0x20")](e))return}if(o[yc("0x25")].is("selection"))return void i[yc("0xa0")][yc("0x7f")](o[yc("0x25")],r[yc("0x81")]);const x=i[yc("0x175")][yc("0xc4")](o.item);if(o[yc("0x25")].is("element")&&t[yc("0xb2")][yc("0x16c")][yc("0x6a")](o[yc("0x25")])&&!x[yc("0x157")](yc("0x165"))){i[yc("0x167")][yc("0x15b")]([yc("0xd3"),yc("0x14b")],x),i[yc("0x167")].setAttribute(yc("0x3c"),s,x),i[yc("0x175")][yc("0x1c")](x,o[yc("0x3")]),e&&(this[yc("0x59")].includes(o.markerName)?i[yc("0x167")][yc("0x15b")](yc("0x1e"),x):i[yc("0x167")][yc("0x3b")]("ck-suggestion-marker--active",x));for(const e of t[yc("0xb2")][yc("0x149")](o[yc("0x25")])[yc("0x29")]())i.consumable[yc("0x7f")](e,r[yc("0x81")]);i[yc("0xa0")][yc("0x7f")](o[yc("0x25")],r[yc("0x81")])}};t[yc("0x10")][yc("0x9c")](yc("0xe0"))[yc("0xc9")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[yc("0xb0")].showSuggestionHighlights&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x43")})})),t.conversion[yc("0x9c")](yc("0xe0"))[yc("0xc9")]((t=>{t.on(yc("0x57"),((t,e,n)=>{n.options[yc("0x150")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[yc("0x10")].for(yc("0xe0"))[yc("0x132")]({model:"suggestion",view:(t,e)=>e[yc("0xb0")][yc("0x150")]?null:{group:yc("0xa"),name:t.substr(11)}}),t[yc("0x10")][yc("0x9c")](yc("0x7d"))[yc("0xe2")]({view:{name:yc("0xa"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0xb4")+t.getAttribute(yc("0x33"))+":"+t[yc("0xb7")]("id");return t[yc("0xb7")](yc("0x11d"))&&(n+=":"+t[yc("0xb7")](yc("0x11d"))),e[yc("0xf")](yc("0x9a"),{"data-name":n})}}),t[yc("0x10")][yc("0x9c")]("upcast")[yc("0xdd")]({view:"suggestion"}),t[yc("0x10")][yc("0x9c")]("editingDowncast")[yc("0xc9")]((t=>{t.on(yc("0x117"),r(),{priority:yc("0x17b")})})),t[yc("0x10")][yc("0x9c")](yc("0x158"))[yc("0xc9")]((t=>{t.on("addMarker:suggestion:attribute",r({isAttributeSuggestion:!0}),{priority:"high"})})),t[yc("0x10")][yc("0x9c")]("editingDowncast")[yc("0xc9")]((t=>{t.on(yc("0xe1"),((t,e,n)=>{const r=n[yc("0x175")][yc("0x153")](e[yc("0x3")]);if(r)for(const t of r)t[yc("0x157")](yc("0x165"))||(n[yc("0x167")].removeClass([yc("0xd3"),"ck-suggestion-marker-formatBlock",yc("0x1e")],t),n[yc("0x167")].removeAttribute(yc("0x3c"),t),n[yc("0x175")][yc("0x63")](t,e[yc("0x3")]))}),{priority:"high"})})),t[yc("0x10")][yc("0x9c")](yc("0x158"))[yc("0xc9")]((t=>{t.on(yc("0x121"),((t,e,n)=>{const r=n[yc("0x175")][yc("0x153")](e[yc("0x3")]);if(!r)return;const{id:o}=this[yc("0x15")](e[yc("0x3")]),i=this[yc("0x15e")][yc("0xe5")](o),s=this[yc("0xc2")](i);if(this._isBlockAttribute(s))for(const t of r)t.getCustomProperty("addHighlight")||(n[yc("0x167")].removeClass([yc("0xd3"),yc("0x14b"),yc("0x1e")],t),n[yc("0x167")][yc("0x94")](yc("0x3c"),t),n.mapper[yc("0x63")](t,e[yc("0x3")]))}),{priority:yc("0x17b")})})),t[yc("0xb2")][yc("0xda")].registerPostFixer((e=>{let n=!1;const r=Array[yc("0x9e")](t[yc("0xb2")][yc("0xda")][yc("0x17c")][yc("0x10f")]()),o=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this._splitMarkerName(x);if(yc("0xa")!==r)continue;const d=this._suggestions.get(u);if(null!=a[yc("0x34")]){yc("0xac")==c&&(n=n||Rc(a[yc("0x34")],x,e,t[yc("0xb2")][yc("0x16c")]));const r="attribute"==c&&this[yc("0x20")](l[yc("0x15d")]("|")[0]);if(a[yc("0x34")][yc("0x8d")]||yc("0xb1")==a[yc("0x34")][yc("0x6f")][yc("0xa9")]||yc("0xdb")==c&&!vc(a[yc("0x34")])||r&&!vc(a[yc("0x34")])||yc("0xf7")==c&&(Sc(s=a[yc("0x34")])||(i=s)[yc("0x61")].parent==i[yc("0xcd")][yc("0x87")]&&i[yc("0x61")][yc("0x92")]))e[yc("0xb8")](x),n=!0;else{if(!d||!d[yc("0x128")])continue;o[yc("0xc9")](d)}}}var i,s;return o[yc("0x12d")]>0&&(n=!!this[yc("0x8f")](o)||n),n})),t[yc("0xb2")][yc("0xda")][yc("0x129")]((e=>{let n=!1;for(const r of t.model[yc("0xda")].differ[yc("0x14d")]())if(yc("0x13")==r.type)for(const r of this[yc("0x15e")][yc("0x179")]()){if(r[yc("0xbd")]||!r[yc("0x128")])continue;const o=yc("0xdb")==r[yc("0x56")],i=this[yc("0xc2")](r),s=i&&this._isBlockAttribute(i);if(!o&&!s)continue;const x=r.getFirstRange();if(x[yc("0x61")].parent!=x[yc("0xcd")].parent&&!x[yc("0xcd")].isAtEnd){const o=t[yc("0xb2")][yc("0xcb")](x[yc("0x61")][yc("0x64")],yc("0xcd")),i=t[yc("0xb2")].createRange(x[yc("0x61")],o);e[yc("0xd8")](r.getFirstMarker(),{range:i}),n=!0}}return n})),t[yc("0xb2")][yc("0xda")][yc("0x129")]((t=>this[yc("0xd")](t))),t.model[yc("0xda")][yc("0x129")]((t=>!t[yc("0x69")][yc("0x113")]&&this[yc("0xab")](t))),t[yc("0xb2")].on(yc("0x120"),(()=>{this[yc("0x12a")]=!1})),t[yc("0xb2")][yc("0xda")].on(yc("0x145"),((n,r)=>{if(!r[yc("0x113")]||r[yc("0x16a")])return;if(!this[yc("0x12a")])return;const o=t.model[yc("0xda")].differ[yc("0x14d")]();if(0==o.length)return;const i=[],s=o[yc("0x88")]((t=>"attribute"==t[yc("0x56")])),x=o[yc("0x88")]((t=>yc("0x13")==t[yc("0x56")]&&"$text"!=t[yc("0x81")])),a=o[yc("0x88")]((t=>yc("0x26")==t[yc("0x56")]&&yc("0x0")!=t[yc("0x81")]));for(const e of s)this[yc("0x8b")](e[yc("0x12c")])&&i[yc("0x140")]({key:e[yc("0x12c")],newValue:e[yc("0x134")],oldValue:e[yc("0x178")],range:Nc(e[yc("0x16f")],t.model)});for(const e of x){const n=a[yc("0x160")]((t=>t[yc("0xbf")]===e[yc("0xbf")]));if(n){const r=Mc(e[yc("0x2e")][yc("0x64")],t.model);n[yc("0x81")]!==e.name&&i.push({key:yc("0x142"),newValue:e[yc("0x81")],oldValue:n.name,range:r});for(const[t,o]of n[yc("0x16d")]){if(!this[yc("0x8b")](t))continue;const n=e[yc("0x16d")][yc("0xe5")](t);o!==n&&i[yc("0x140")]({key:t,newValue:n,oldValue:o,range:r})}for(const[t,o]of e[yc("0x16d")])this[yc("0x8b")](t)&&(n[yc("0x16d")].has(t)||i.push({key:t,newValue:o,oldValue:void 0,range:r}))}}0!=i.length&&t[yc("0xb2")][yc("0x170")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:o}of i)this[yc("0x96")](t,e,r,o,{groupId:n});this[yc("0xa8")](t,i)}))}),{priority:"lowest"}),t[yc("0xb2")][yc("0x48")].on(yc("0x111"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x15")](e[yc("0x81")]),n=this[yc("0x15e")][yc("0xe5")](t);n&&n.addMarkerName(e[yc("0x81")])}})),t[yc("0xb2")][yc("0xda")].on(yc("0x145"),(()=>{const e=Array[yc("0x9e")](t[yc("0xb2")][yc("0xda")][yc("0x17c")][yc("0x10f")]())[yc("0x88")]((t=>yc("0xa")===this[yc("0x15")](t[yc("0x81")])[yc("0xd9")]));if(0===e.length)return;e[yc("0x174")](((t,e)=>{const n=t[yc("0x108")][yc("0x10c")],r=e.data.oldRange;return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n.start[yc("0x112")](r.start)?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:o}of e){const{id:e}=this[yc("0x15")](t);if(null===o[yc("0x10c")]){const e=this._handleNewSuggestionMarker(t);r[yc("0xc9")](e)}else{const t=this._suggestions[yc("0xe5")](e);null!==o[yc("0x34")]||t[yc("0x128")]?(n[yc("0xc9")](t[yc("0xea")]),r[yc("0xc9")](t)):this._removeSuggestion(t)}}r[yc("0x12d")]>0&&this[yc("0xff")](r);for(const t of n)this[yc("0x159")](yc("0xce"),t)})),t[yc("0xb2")].on(yc("0x164"),((e,n)=>{const r=n[0];if(!this[yc("0x15e")][yc("0x12d")])return;if(!r.isDocumentOperation)return;if(r[yc("0x69")].isUndo||!r[yc("0x69")][yc("0x113")])return;let o,i;switch(r[yc("0x56")]){case yc("0x13"):o=t[yc("0xb2")][yc("0xcb")](r.position),i=o.getShiftedBy(r[yc("0x4b")]);break;case yc("0x15d"):o=t[yc("0xb2")][yc("0xcb")](r[yc("0xd7")]),i=t.model[yc("0xcb")](r[yc("0xbe")]);break;case"move":o=t[yc("0xb2")][yc("0xcb")](r[yc("0x53")]),i=o[yc("0xcc")](r.howMany);break;default:return}const s=t[yc("0xb2")].createRange(o,i);t.model[yc("0x172")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x9f")](s)){if(t[yc("0xbd")])continue;if(yc("0xac")==t.type)continue;const n=this[yc("0xc2")](t);if(n&&this[yc("0x20")](n)&&yc("0x15d")!=r.type)continue;const x=t[yc("0x108")]&&t.data.multipleBlocks;(yc("0xdb")!=t[yc("0x56")]||yc("0x15d")==r[yc("0x56")]&&!x)&&(e[yc("0xec")]||yc("0xc7")==t[yc("0x56")]&&e[yc("0x3d")]||t[yc("0x156")]()[yc("0x12f")](s)&&this[yc("0xd6")](t,o,i))}}))}),{priority:yc("0x2c")}),t.model.on(yc("0x141"),((e,n)=>{const r=n[0],o=n[1];if(o&&o.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[yc("0x16")][yc("0x15f")])return;if(r[yc("0x8d")])return;const i=t[yc("0xb2")][yc("0x16c")],{start:s,end:x}=r.getFirstRange(),a=s.nodeAfter&&i[yc("0x2f")](s.nodeAfter)?null:i[yc("0x5c")](s,yc("0x5f")),c=x[yc("0x87")]&&i.isLimit(x[yc("0x87")])?null:i[yc("0x5c")](x,"backward"),l=t[yc("0xb2")][yc("0x4a")](a?a[yc("0x61")]:s,c?c[yc("0xcd")]:x);t[yc("0xb2")][yc("0x172")]((e=>{this.markDeletion(l);const n=t[yc("0xb2")].schema[yc("0x5c")](l[yc("0x61")]);r.is(yc("0x71"))?e[yc("0x78")](n):r[yc("0xd4")](n)})),e[yc("0x122")]()}),{priority:e.priorities[yc("0x90")]+10}),t[yc("0xb2")].on(yc("0x17d"),((e,n)=>{const r=n[n.length-1];r&&r[yc("0x107")]||this[yc("0xed")]||this[yc("0x16")][yc("0x15f")]&&(t[yc("0xb2")][yc("0x172")]((()=>{let r=t[yc("0xb2")][yc("0x17d")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x6c")]=r[yc("0x173")]();const o=r.end.nodeBefore,i=t[yc("0xb2")][yc("0x16c")];o&&i.isBlock(o)&&!i[yc("0xa7")](o)&&(r=t[yc("0xb2")][yc("0x4a")](r[yc("0x61")],t[yc("0xb2")][yc("0xcb")](o,yc("0xcd")))),this[yc("0x5d")](r)})),e[yc("0x122")]())}),{priority:yc("0x17b")}),this[yc("0x27")][yc("0x17")][yc("0xc9")]("trackChanges",this.trackChangesCommand),this[yc("0x130")](yc("0xb3"));const o=new p(t,this[yc("0x15e")]);t.commands[yc("0xc9")](yc("0x80"),o),this[yc("0x130")](yc("0x80"));const i=new y(t,this[yc("0x15e")]);t.commands[yc("0xc9")](yc("0x1b"),i),this[yc("0x130")](yc("0x1b")),t[yc("0x17")][yc("0xc9")](yc("0x139"),new F(t,o,this[yc("0x15e")])),this[yc("0x130")](yc("0x139")),t[yc("0x17")][yc("0xc9")](yc("0xfa"),new F(t,i,this[yc("0x15e")])),this.enableCommand(yc("0xfa")),t[yc("0x17")][yc("0xc9")](yc("0x147"),new j(t,o,this[yc("0x15e")])),this[yc("0x130")](yc("0x147")),t[yc("0x17")][yc("0xc9")]("discardSelectedSuggestions",new j(t,i,this[yc("0x15e")])),this.enableCommand(yc("0xdf"));const s=t[yc("0x77")][yc("0xe5")](yc("0x143"));this.listenTo(s,yc("0x1d"),((t,{threadId:e})=>{const n=this[yc("0x15e")][yc("0xe5")](e);n&&n[yc("0x135")]&&1===n.commentThread[yc("0x146")]&&this[yc("0xee")](e,{hasComments:!0})}),{priority:yc("0x127")}),this[yc("0x14e")](s,yc("0x41"),((t,{threadId:e})=>{const n=this[yc("0x15e")].get(e);n&&n[yc("0x135")]&&!n[yc("0x135")].length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[yc("0xbb")])throw new e.CKEditorError(yc("0x13b"),this);this[yc("0xbb")]=t}get[yc("0x8c")](){return this[yc("0xbb")]}[yc("0x14")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x15e")][yc("0x179")]())t&&!e[yc("0x128")]||n[yc("0x140")](e);return e?n[yc("0x177")]((t=>t[yc("0x155")]())):n}[yc("0x8e")](t){const n=this[yc("0x15e")][yc("0xe5")](t);if(!n)throw new e.CKEditorError(yc("0xf8"),this);return n}[yc("0xb")](t){return this[yc("0x15e")][yc("0x11e")](t)}[yc("0x11b")](t){const{authorId:e,id:n,attributes:r}=t,[o,i]=t[yc("0x56")][yc("0x15d")](":"),s=this[yc("0x15e")].get(n)||this[yc("0x3e")](o,i,n,e,r);if(this._addThreadToSuggestion(s),this._checkSuggestionCorrectness(s,o,i||null,e),s[yc("0x89")]=t[yc("0x89")],s._isDataLoaded=!0,r&&r[yc("0x5e")]){const t=r[yc("0x5e")],e=this[yc("0x114")](t.authorName);s.authoredAt=t[yc("0x89")],s[yc("0x17a")]=e,s[yc("0xaa")]=!0}else s[yc("0x181")]=t[yc("0x89")];switch(t[yc("0x108")]&&(s[yc("0x108")]=t.data),t[yc("0x16d")]&&(s[yc("0x16d")]=t[yc("0x16d")]),this[yc("0xbb")]&&this._adapter.addSuggestion||(s[yc("0x151")]=!0),this._suggestionState[yc("0xe5")](s)){case yc("0x72"):this[yc("0x22")][yc("0x123")](s,"dataReady");break;case"markerReady":s[yc("0x128")]?(this[yc("0x8f")](new Set([s])),this._refreshSuggestionsChain(new Set([s])),this[yc("0x22")].set(s,yc("0xa1")),this[yc("0x159")]("suggestionLoaded",s)):this[yc("0x22")][yc("0x123")](s,yc("0x106"))}return s}[yc("0x80")](t){this[yc("0x107")]((()=>{this[yc("0x27")][yc("0xb2")].change((()=>{for(const e of t[yc("0x52")]())e[yc("0x110")]()}))}))}[yc("0x1b")](t){this[yc("0x107")]((()=>{this.editor.model[yc("0x172")]((()=>{for(const e of t[yc("0x52")]())e[yc("0x161")]()}))}))}[yc("0x130")](t,n){const r=this.editor.commands[yc("0xe5")](t);if(!r)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[yc("0x162")][yc("0x11e")](r))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[yc("0x162")][yc("0xc9")](r),n&&r.on(yc("0x126"),((t,e)=>{this.trackChangesCommand[yc("0x15f")]&&(this._isForcedDefaultExecutionBlock||(e.length>0&&e[e.length-1]&&e[e.length-1][yc("0x107")]?e[yc("0xfb")]():(t[yc("0x6c")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t[yc("0x122")]())))}),{priority:yc("0x17b")})}[yc("0x107")](t){let n,r;const o=this[yc("0xed")];this[yc("0xed")]=!0;try{n=t()}catch(t){r=t}return o||(this[yc("0xed")]=!1),r&&e.CKEditorError[yc("0x84")](r,this),n}[yc("0x5d")](t,n=null,r={}){if(t[yc("0x8d")])return null;const o=this[yc("0x27")][yc("0x77")].get(yc("0x18")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,"insertion"))if(o[yc("0x3d")]){if(!o[yc("0x166")]){if(o[yc("0xec")]){if(!this[yc("0xf0")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this[yc("0xd6")](e,t[yc("0x61")],t[yc("0xcd")]);break}if(n==e[yc("0xbc")]&&Fc(e,r)){const n=e[yc("0x156")]();return n[yc("0x61")][yc("0xb5")](t[yc("0xcd")])?this[yc("0xc3")](e,this._model[yc("0x4a")](t[yc("0x61")],n[yc("0xcd")])):this._setSuggestionRange(e,this[yc("0x47")].createRange(n[yc("0x61")],t[yc("0xcd")])),e}}const i=(0,e.uid)(),s=o.id,x=n?"insertion:"+n:yc("0xc7"),a=this[yc("0x133")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x74")](x,i,s,t),a}[yc("0x148")](t,n=yc("0x136"),r={}){const o=this[yc("0x27")].plugins[yc("0xe5")](yc("0x18")).me,i=this[yc("0x24")][yc("0x13c")]("insertion",n,yc("0xef"));for(const e of this[yc("0x14")]())if(e.author.id==o.id&&yc("0xc7")==e[yc("0x56")]&&e[yc("0xbc")]==n&&Fc(e,r)&&(i(e.getRanges(),t)||i(t,e[yc("0xc5")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0xc7"))){if(!n.isOwn)continue;if(!this[yc("0xf0")]&&n[yc("0xec")])continue;if(!Fc(e,r))continue;let o=!0;for(const n of e[yc("0xc5")]())for(const e of t)if(!n.containsRange(e)){o=!1;break}if(o)return e}const s=(0,e.uid)(),x=o.id,a=yc("0x11c")+n,c=this[yc("0x133")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0x74")](a,s,x,e,Yr[yc("0x171")]());return c}[yc("0x144")](t,n,r=null,o={}){if(r=r||Lc(n),t[yc("0x8d")])return null;if(yc("0x7a")===this._trackFormatChanges){const e=this[yc("0x24")][yc("0x13c")](yc("0xac"),r,yc("0x110"));return this.forceDefaultExecution((()=>e([t],n,o))),null}const i=this[yc("0x27")][yc("0x77")][yc("0xe5")](yc("0x18")).me,s=[];if("always"!==this[yc("0xcf")])for(const{suggestion:e,meta:n}of this[yc("0x9f")](t,yc("0xc7")))n[yc("0x3d")]&&!n[yc("0x17e")]&&s[yc("0x140")](...e.getRanges());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0xd5")](r);e&&n[yc("0x140")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x146")];){const r=n[e][yc("0xc0")](t);n.splice(e,1,...r),e+=r[yc("0x146")]}}return n}(t,s);x[yc("0x146")]&&this[yc("0x47")][yc("0x172")]((()=>{for(const t of x){const e=this._suggestionFactory[yc("0x13c")](yc("0xac"),r,"accept");this[yc("0x107")]((()=>e([t],n,o)))}}));for(const t of a){let s=null,x=t[yc("0x61")],a=t[yc("0xcd")];for(const{suggestion:e,meta:n}of this[yc("0x9f")](t,"formatInline")){if(!n[yc("0x3d")])continue;if(e[yc("0xbc")]!=r)continue;if(!Fc(e,o))continue;const i=e.getFirstRange();if(i[yc("0x12f")](t,!0))return null;x=x[yc("0x112")](i[yc("0x61")])?x:i.start,a=a[yc("0x98")](i.end)?a:i[yc("0xcd")],s?i[yc("0x61")].isBefore(s[yc("0x156")]()[yc("0x61")])?(s[yc("0x4f")](),s=e):e[yc("0x4f")]():s=e}const c=this[yc("0x47")].createRange(x,a);if(s)this[yc("0xc3")](s,c);else{const t=(0,e.uid)(),s=i.id;this[yc("0x133")]({id:t,type:yc("0x1a")+r,data:n,createdAt:new Date,authorId:s,attributes:o}),this[yc("0x74")](yc("0x1a")+r,t,s,c)}}return null}[yc("0x91")](t,n,r=[],o=null,i={}){n.formatGroupId||(n[yc("0x58")]=n[yc("0x31")]),n[yc("0x12b")]=t.is(yc("0x16f")),o=o||Lc(n);const s=r[yc("0x177")]((t=>Mc(t,this[yc("0x47")]))),x=t.is("range")?t:Mc(t,this._model);if(yc("0x7a")===this[yc("0xcf")]){const t=this[yc("0x24")][yc("0x13c")](yc("0xdb"),o,yc("0x110"));return this[yc("0x107")]((()=>t([x],n,i))),null}s[yc("0x140")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&yc("0x11f")!==this[yc("0xcf")]){const t=this[yc("0x24")].getSuggestionCallback(yc("0xdb"),o,yc("0x110"));return this.forceDefaultExecution((()=>t([x],n,i))),null}let c=null,l=x[yc("0x61")],u=x[yc("0xcd")];for(const{suggestion:t,meta:e}of this[yc("0x9f")](x,yc("0xdb"))){if(!e[yc("0x3d")])continue;if(e.isNextTo||e[yc("0xec")]||e[yc("0x17e")])continue;if(t[yc("0x108")].formatGroupId!=n.formatGroupId)continue;if(!Fc(t,i))continue;const r=t[yc("0x156")]();if(t[yc("0xbc")]==o){if(r[yc("0x12f")](x,!0))return null;l=l[yc("0x112")](r[yc("0x61")])?l:r[yc("0x61")],u=u[yc("0x98")](r[yc("0xcd")])?u:r[yc("0xcd")],c?r[yc("0x61")].isBefore(c[yc("0x156")]()[yc("0x61")])?(c[yc("0x4f")](),c=t):t[yc("0x4f")]():c=t}else{const e=x[yc("0xd5")](r);this[yc("0x6")](t,e)}}const d=this[yc("0x27")][yc("0x77")][yc("0xe5")](yc("0x18")).me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this[yc("0x47")][yc("0x4a")](l,u)),c;{const t=this[yc("0x133")]({id:g,type:yc("0x7")+o,data:n,createdAt:new Date,authorId:f,attributes:i});return this[yc("0x74")](yc("0x7")+o,g,f,this[yc("0x47")][yc("0x4a")](l,u)),t}}[yc("0xc8")](t,n,r=[],o=null,i={}){n.formatGroupId||(n.formatGroupId=n.commandName);const s=t[0];n[yc("0x12b")]=s.is("range"),o=o||Lc(n);const x=r[yc("0x177")]((t=>Mc(t,this[yc("0x47")]))),a=s.is(yc("0x16f"))?t:t[yc("0x177")]((t=>Mc(t,this[yc("0x47")])));if(yc("0x7a")===this._trackFormatChanges){const t=this._suggestionFactory[yc("0x13c")](yc("0xdb"),o,yc("0x110"));return this[yc("0x107")]((()=>t(a,n,i))),null}x[yc("0x140")](...a);let c=!0;for(const t of x)if(!this[yc("0x4")](t)){c=!1;break}if(c&&"always"!==this[yc("0xcf")]){const t=this[yc("0x24")][yc("0x13c")]("formatBlock",o,yc("0x110"));return this.forceDefaultExecution((()=>t(a,n,i))),null}const l=this.editor[yc("0x77")].get(yc("0x18")).me;for(const t of this.getSuggestions()){if(t[yc("0x17a")].id!=l.id)continue;if("formatBlock"!=t[yc("0x56")]||t.data[yc("0x58")]!=n.formatGroupId)continue;if(!Fc(t,i))continue;const e=t[yc("0xbc")]==o;for(let n=0;n<a[yc("0x146")];n++){const r=a[n];for(const o of t.getMarkers()){const i=o[yc("0xf9")]();if(r[yc("0xb5")](i)){e?(a.splice(n,1),n--):t.removeMarker(o[yc("0x81")]);break}}}}if(0==a[yc("0x146")])return null;const u=this[yc("0x24")].getSuggestionCallback(yc("0xdb"),o,"join");for(const t of this[yc("0x14")]())if(t[yc("0x17a")].id==l.id&&yc("0xdb")==t[yc("0x56")]&&t[yc("0x108")][yc("0x58")]==n[yc("0x58")]&&t.subType==o&&Fc(t,i)&&(u(t[yc("0xc5")](),a)||u(a,t[yc("0xc5")]()))){for(const e of a)t[yc("0x54")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x7")+o,h=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[yc("0x74")](f,d,g,t,Yr.getMultiRangeId());return h}markDeletion(t,n=null,r={}){if(t[yc("0x8d")])return null;const o=this[yc("0x27")][yc("0x77")].get(yc("0x18")).me,i=new s.LiveRange(t[yc("0x61")],t[yc("0xcd")]);for(const{suggestion:t,meta:e}of this[yc("0x9f")](i,"insertion"))if(e.isOwn&&!e.isNextTo)if(t[yc("0xbd")]){const e=t.getRanges()[yc("0x88")]((t=>yc("0xb1")!=t[yc("0x6f")][yc("0xa9")]));if(e[yc("0x23")]((t=>i.containsRange(t,!0)))&&t[yc("0x161")](),e.some((t=>t[yc("0x12f")](i,!0)))){const t=this[yc("0x24")][yc("0x13c")](yc("0xf7"),n,yc("0x110"));return this[yc("0x107")]((()=>t([i],null,r))),null}}else{const e=i.getIntersection(t.getFirstRange());null!==e&&t[yc("0xd1")]([e],null,r)}if(i[yc("0x45")](),i[yc("0x8d")]||yc("0xb1")==i.root[yc("0xa9")])return null;let x=null,a=i[yc("0x61")],c=i.end;const l=this[yc("0x9f")](i,yc("0xf7"));for(const{suggestion:t,meta:e}of l){const n=this[yc("0x47")][yc("0x4a")](a,c);if(e.isOwn&&(this[yc("0xf0")]||!e.containsRangeInObject&&!e[yc("0x17e")]))if(t.isMultiRange){if(!Fc(t,r))continue;let e=!0;for(const r of t.getRanges()){if(r[yc("0x12f")](n,!0))return t;n.containsRange(r)||(e=!1)}e&&t[yc("0x161")]()}else{const e=t.getFirstRange();if(e.containsRange(n,!0))return t;if(!Fc(t,r)){n[yc("0x12f")](e)?t[yc("0x4f")]():e.containsPosition(a)?a=e.end:e[yc("0x51")](c)&&(c=e[yc("0x61")]);continue}a=a[yc("0x112")](e.start)?a:e[yc("0x61")],c=c[yc("0x98")](e.end)?c:e[yc("0xcd")],r=Object[yc("0x82")]({},t[yc("0x16d")]),x?e.start[yc("0x112")](x[yc("0x156")]().start)?(x[yc("0x4f")](),x=t):t.removeMarkers():x=t}}if(x)return this[yc("0xc3")](x,this[yc("0x47")][yc("0x4a")](a,c)),x;{const t=(0,e.uid)(),i=this[yc("0x47")].createRange(a,c),s=o.id,x=n?yc("0x154")+n:yc("0xf7"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x74")](x,t,s,i),l}}[yc("0x125")](t,n=yc("0x136"),r={}){const o=this[yc("0x27")].plugins.get("Users").me,i=t[yc("0x177")]((t=>new s.LiveRange(t[yc("0x61")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0x9f")](i,yc("0xc7")))e.isOwn&&!e[yc("0x166")]&&x[yc("0xc9")](t);for(const e of x)if(e.isMultiRange){const o=e[yc("0xc5")]();if((!e[yc("0x16d")]||!e[yc("0x16d")].skipNestingCheck)&&o[yc("0x23")]((t=>i.some((e=>e[yc("0x12f")](t,!0)))))&&e[yc("0x161")](),i[yc("0x23")]((t=>o[yc("0x39")]((e=>e[yc("0x12f")](t,!0)))))){const e=this[yc("0x24")].getSuggestionCallback(yc("0xf7"),n,yc("0x110"));return this.forceDefaultExecution((()=>e(t,null,r))),null}}else{const t=e[yc("0x156")]();if(i[yc("0x39")]((e=>e.containsRange(t,!0)))&&e.discard(),i[yc("0x23")]((e=>t[yc("0x12f")](e,!0)))){const t=this[yc("0x24")][yc("0x13c")](yc("0xf7"),n,yc("0x110"));return this.forceDefaultExecution((()=>t(i,null,r))),null}}const a=this._suggestionFactory[yc("0x13c")](yc("0xf7"),n,yc("0xef"));let c=null;for(const t of this[yc("0x14")]())if(t[yc("0x17a")].id==o.id&&t.isInContent&&yc("0xf7")==t[yc("0x56")]&&t[yc("0xbc")]==n&&Fc(t,r)&&(a(t[yc("0xc5")](),i)||a(i,t.getRanges())))if(c){if(t[yc("0x135")]&&t.commentThread[yc("0x146")])continue;for(const e of t[yc("0xc5")]())c[yc("0xf1")](e)||c[yc("0x54")](e);t[yc("0x4f")]()}else{c=t;for(const e of i)t[yc("0xf1")](e)||t[yc("0x54")](e)}if(c)return c;x[yc("0x13f")]();for(const{suggestion:t,meta:e}of this[yc("0x9f")](i,yc("0xf7")))e[yc("0x3d")]&&(this[yc("0xf0")]||!e.containsRangeInObject&&!e.isInsideObject)&&Fc(t,r)&&x[yc("0xc9")](t);for(const t of x){const e=t[yc("0xc5")]();if((!r||!r[yc("0x13a")])&&i.every((t=>e.some((e=>e[yc("0x12f")](t,!0))))))return t;(!t[yc("0x16d")]||!t.attributes[yc("0x13a")])&&e[yc("0x23")]((t=>i[yc("0x39")]((e=>e.containsRange(t,!0)))))&&t[yc("0x161")]()}const l=(0,e.uid)(),u=o.id,d=yc("0x154")+n,g=this[yc("0x133")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of i)t[yc("0x45")](),t[yc("0x8d")]||yc("0xb1")==t[yc("0x6f")][yc("0xa9")]||this[yc("0x74")](d,l,u,t,Yr[yc("0x171")]());return g}[yc("0x96")](t,n,r,o,i){if(t[yc("0x8d")])return[];if(yc("0x7a")===this[yc("0xcf")])return[];const s=this[yc("0x27")][yc("0x77")][yc("0xe5")](yc("0x18")).me.id,x=Array[yc("0x9e")](this[yc("0x15e")].values()).filter((e=>"attribute"==e[yc("0x56")]&&e[yc("0x108")][yc("0xf6")]==n&&e[yc("0xf1")](t)));if(yc("0x21")===this[yc("0xcf")]){const e=this._findSuggestions(t,"insertion")[yc("0x88")]((({meta:t})=>t[yc("0x3d")]&&!t[yc("0x17e")]&&!t[yc("0x166")]))[yc("0x177")]((({suggestion:t})=>t));x[yc("0x62")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=yc("0xdc")==t[yc("0x56")]?t[yc("0x108")][yc("0x5")]:void 0,i=t[yc("0x156")](),s=Array[yc("0x9e")](a.keys())[yc("0x160")]((t=>t[yc("0xb9")](i)));if(!s)continue;const x=s[yc("0xc0")](i);this._isBlockAttribute(n)&&yc("0xc7")==t[yc("0x56")]&&0!=x[yc("0x146")]||(a.delete(s),x[yc("0x10e")]((t=>{a[yc("0x123")](t,r)})),yc("0xc7")!=t[yc("0x56")]&&e!=o&&a[yc("0x123")](s[yc("0xd5")](i),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:o};n[yc("0x146")]>37&&console[yc("0xa4")](yc("0x38"),{key:n});const l=(yc("0x103")+(n+"|")+Lc({newValue:o}))[yc("0x75")](0,60),u=this[yc("0x133")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[yc("0x140")](u),this[yc("0x74")](l,x,s,t)}return c}_registerBlockAttribute(t){this._blockAttributeKeys[yc("0xc9")](t)}[yc("0x9")](t){this[yc("0x8")].add(t)}[yc("0xe4")](t,e=[],n=[]){this[yc("0x130")](t,((t,...e)=>{this[yc("0x15c")]((()=>{t(...e)}))}));for(const t of e)this[yc("0x9")](t);for(const t of n)this[yc("0x10b")](t)}[yc("0xc2")](t){return"attribute"==t[yc("0x56")]?t[yc("0xbc")][yc("0x15d")]("|")[0]:null}[yc("0xc3")](t,e){const n=t[yc("0xeb")]();this[yc("0x47")].change((t=>{t.updateMarker(n,{range:e})}))}[yc("0x168")](t){const e=t.id,n=this[yc("0x27")].config.get("collaboration.channelId");this[yc("0x32")][yc("0x5a")](e)||this._commentsRepository[yc("0x176")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0x32")][yc("0x2b")](e);r[yc("0x60")](yc("0x152")),r.isRemovable=!1,t[yc("0x135")]=r}_checkSuggestionCorrectness(t,n,r,o){if(t.type!=n||t[yc("0xbc")]!=r||t[yc("0xba")].id!=o)throw this[yc("0x27")].enableReadOnlyMode(yc("0x6e")),new e.CKEditorError(yc("0x6e"),this)}[yc("0x6")](t,n){const r=t[yc("0x156")]();if(n[yc("0xb5")](r))t[yc("0x4f")]();else if(r[yc("0x12f")](n)){const o=this._model.createPositionAt(n[yc("0x61")][yc("0x87")],yc("0xcd"));this[yc("0xc3")](t,this[yc("0x47")][yc("0x4a")](r[yc("0x61")],o));const i=(0,e.uid)(),s=t.creator.id,x=t[yc("0x56")]+":"+t[yc("0xbc")];this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,data:t[yc("0x108")],attributes:t[yc("0x16d")]});const a=this[yc("0x47")][yc("0xcb")](n.end[yc("0x131")],yc("0xd0")),c=this[yc("0x47")][yc("0x4a")](a,r[yc("0xcd")]);this[yc("0x74")](x,i,s,c)}else if(r.containsPosition(n[yc("0x61")])){const e=this[yc("0x47")].createPositionAt(n[yc("0x61")][yc("0x87")],"end");this._setSuggestionRange(t,this[yc("0x47")][yc("0x4a")](r[yc("0x61")],e))}else{const e=this._model[yc("0xcb")](n[yc("0xcd")][yc("0x131")],yc("0xd0"));this[yc("0xc3")](t,this[yc("0x47")][yc("0x4a")](e,r[yc("0xcd")]))}}[yc("0x4")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0xc7"))){if(!n[yc("0x3d")])continue;const r=e[yc("0xc5")]();for(const e of r)if(!t.getDifference(e)[yc("0x146")])return!0}return!1}[yc("0x44")](t){const n=this.editor.plugins[yc("0xe5")](yc("0x18")).getUser(t);if(!n)throw new e.CKEditorError(yc("0x5b"),this);return n}[yc("0x114")](t){const e=this[yc("0x27")][yc("0x77")][yc("0xe5")](yc("0x18")),n=(0,i.hashObject)(yc("0x3a")+t);return e.getUser(n)||e[yc("0x1f")]({id:n,name:t})}[yc("0x3e")](t,e,n,r,o){const i=this[yc("0x44")](r),s=this._suggestionFactory[yc("0x105")](t,e,n,i,o,(t=>{this[yc("0xee")](n,{attributes:t});const e=this[yc("0x8e")](n);this[yc("0x8f")](new Set([e])),this[yc("0xff")](new Set([e]))}));return this[yc("0x14e")](s,yc("0x110"),(()=>{this[yc("0xee")](n,{state:yc("0xaf")})}),{priority:yc("0x17b")}),this[yc("0x14e")](s,yc("0x161"),(()=>{this[yc("0xee")](n,{state:yc("0x100")})}),{priority:yc("0x17b")}),this[yc("0x15e")][yc("0x123")](n,s),this[yc("0x22")][yc("0x123")](s,yc("0x72")),s}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[yc("0x146")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}_breakSuggestionMarker(t,n,r){const o=t[yc("0x156")](),i=o.start,s=o[yc("0xcd")];this[yc("0xc3")](t,this[yc("0x47")][yc("0x4a")](i,n));const x=(0,e.uid)(),a=t[yc("0xba")].id,c=t.type+(t[yc("0xbc")]?":"+t[yc("0xbc")]:"");this[yc("0x133")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[yc("0x108")]});const l=this[yc("0xc2")](t);(yc("0xdb")==t[yc("0x56")]||l&&this[yc("0x20")](l))&&(r=this[yc("0x47")][yc("0x8a")](r[yc("0x131")])),this[yc("0x74")](c,x,a,this[yc("0x47")].createRange(r,s))}[yc("0x9f")](t,e=null){const n=[],r=this[yc("0x27")][yc("0x77")][yc("0xe5")](yc("0x18")).me;Array[yc("0x104")](t)||(t=[t]);for(const o of this.getSuggestions()){if(!o[yc("0x128")])continue;if(e&&o.type!=e)continue;let i=!1;for(const e of o.getRanges()){for(const s of t){const t=s[yc("0x61")][yc("0xb5")](e[yc("0xcd")])||s[yc("0xcd")][yc("0xb5")](e[yc("0x61")]);if(t||s.getIntersection(e)){const x=s.containsRange(e)&&Ic(this[yc("0x47")][yc("0x16c")],e[yc("0x61")],s),a=e[yc("0x12f")](s)&&Ic(this._model[yc("0x16c")],s[yc("0x61")],e);n[yc("0x140")]({suggestion:o,meta:{isOwn:r==o[yc("0x17a")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[yc("0x74")](t,e,n,r,o){this[yc("0x47")][yc("0x172")]((i=>{let s=yc("0xb4")+t+":"+e+":"+n;o&&(s=s+":"+o),i[yc("0xe7")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0xad")](t){const e=t[yc("0x37")],n=t[yc("0x68")];t[yc("0x37")]=null,t[yc("0x68")]=null,null!=e&&(e.next=n),null!=n&&(n[yc("0x37")]=e),yc("0xa1")==this[yc("0x22")][yc("0xe5")](t)&&(this._suggestionState[yc("0x123")](t,"removed"),this[yc("0x159")](yc("0xe"),t,e,n))}[yc("0x133")](t){const n=t.id,r=this[yc("0x11b")](t);if(this[yc("0xbb")]&&this[yc("0xbb")].addSuggestion){const o=this[yc("0x27")][yc("0x77")].get(yc("0xd2")),i=r[yc("0x11")],s=r.subType?r[yc("0x56")]+":"+r[yc("0xbc")]:r.type,x=this[yc("0x27")][yc("0x83")],a=o[yc("0xc9")](Jr(x,yc("0xf3"))),c={id:n,type:s,hasComments:i,data:t.data||null,originalSuggestionId:t.originalSuggestionId||null,attributes:r[yc("0x16d")]};this._adapter[yc("0xa6")](c)[yc("0x102")]((t=>{r[yc("0x151")]=!0,o[yc("0x26")](a),t&&t.createdAt&&(this._suggestions[yc("0xe5")](n).createdAt=t[yc("0x89")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[yc("0x27")].model[yc("0x170")]({isUndoable:!1},(()=>{r[yc("0x161")]()})),r.stopListening(),this[yc("0x15e")][yc("0x17f")](r.id),this[yc("0x22")].delete(r),t}))}return r}[yc("0x20")](t){return this[yc("0xe9")][yc("0x11e")](t)}[yc("0xee")](t,e){const n=this[yc("0x27")][yc("0x77")][yc("0xe5")](yc("0xd2")),r=this[yc("0x8e")](t);if(this[yc("0xbb")]&&this[yc("0xbb")].updateSuggestion)if(r[yc("0x151")]){const r=n.add(Jr(this.editor[yc("0x83")],yc("0xf3")));this._adapter[yc("0x28")](t,e)[yc("0x102")]((()=>{n[yc("0x26")](r)}))}else r.on("change:_saved",(()=>{this[yc("0xee")](t,e)}))}[yc("0x6d")](t){if(!this[yc("0xbb")]||!this[yc("0xbb")][yc("0x8e")])throw new e.CKEditorError(yc("0x14c"),this);return this[yc("0xbb")].getSuggestion(t)}[yc("0x124")](t){const{id:e,type:n,subType:r,authorId:o}=this[yc("0x15")](t),i=this[yc("0x15e")].get(e)||this._createSuggestion(n,r,e,o,{});switch(this._checkSuggestionCorrectness(i,n,r,o),this._suggestionState[yc("0xe5")](i)){case yc("0x72"):this._getSuggestionData(e).then((t=>{let n=Promise[yc("0x3f")]();t[yc("0x11")]&&(n=this[yc("0x32")][yc("0xc1")]({channelId:this[yc("0x27")][yc("0x76")][yc("0xe5")]("collaboration.channelId"),threadId:e})),n.then((()=>{this.addSuggestionData(t)._saved=!0}))})),this[yc("0x22")][yc("0x123")](i,yc("0x49"));break;case yc("0x106"):this[yc("0xee")](e,{state:yc("0x15a")});case yc("0xb6"):this._suggestionState[yc("0x123")](i,yc("0xa1")),this[yc("0x159")](yc("0x95"),i);break;case yc("0xa1"):this[yc("0x159")](yc("0xce"),i)}return i.addMarkerName(t),i}[yc("0xff")](t){const e=Array[yc("0x9e")](t),n=e[yc("0x88")]((t=>yc("0xdc")==t[yc("0x56")]));this._refreshAttributeSuggestionsChain(n);const r=e[yc("0x88")]((t=>!t.isMultiRange&&"attribute"!=t[yc("0x56")])),o=this.getSuggestions({skipNotAttached:!0})[yc("0x88")]((t=>!t[yc("0xbd")]&&yc("0xdc")!=t[yc("0x56")])),i=o[yc("0x88")]((e=>!t[yc("0x11e")](e))),s=new Map(o[yc("0x177")]((t=>[t,this[yc("0x24")][yc("0x13c")](t[yc("0x56")],t[yc("0xbc")],yc("0x97"))]))),x=new Map(o[yc("0x177")]((t=>[t,t[yc("0x156")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0x146")];t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0x146")];t++)u(r[t],i,0);const l=new Set;for(let t=0;t<r.length;t++){const e=r[t];!c[yc("0x11e")](e)&&e[yc("0x37")]&&(l.add(e[yc("0x37")]),e[yc("0x37")][yc("0x68")]===e&&(e[yc("0x37")][yc("0x68")]=null),e[yc("0x37")]=null),!a.has(e)&&e.next&&(l.add(e[yc("0x68")]),e[yc("0x68")][yc("0x37")]===e&&(e[yc("0x68")][yc("0x37")]=null),e[yc("0x68")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0x146")];r++){const n=d(t,e[r]);n&&(n[0][yc("0x68")]=n[1],n[1].previous=n[0],a[yc("0xc9")](n[0]),c[yc("0xc9")](n[1]))}}function d(t,e){if(t[yc("0x17a")].id!==e[yc("0x17a")].id)return null;const n=s[yc("0xe5")](t)(t,e,x[yc("0xe5")](t),x[yc("0xe5")](e));return n&&s[yc("0xe5")](e)(t,e,x[yc("0xe5")](t),x.get(e))?n[1][yc("0x135")]&&n[1][yc("0x135")][yc("0x146")]?null:n:null}l.size&&this[yc("0xff")](l)}[yc("0x12")](t){if(0==t[yc("0x146")])return;const e=this[yc("0x14")]({skipNotAttached:!0}).filter((t=>yc("0xdc")==t.type&&t[yc("0x180")])),n=[],r=new Map;for(const t of e){const e=(0,i.hashObject)(t[yc("0x16d")]);r[yc("0x11e")](e)||(r[yc("0x123")](e,n.length),n[yc("0x140")]([]));const o=r[yc("0xe5")](e);n[o][yc("0x140")](t)}!function(){n.sort(((t,e)=>{const n=t[0][yc("0x89")],r=e[0][yc("0x89")];return n==r?t[0].attributes[yc("0x79")]<e[0][yc("0x16d")][yc("0x79")]?-1:1:n<r?-1:1}));for(const t of n)t[yc("0x174")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0x146")];t++){if(0==n[t][yc("0x146")])continue;const e=[];for(let r=t+1;r<n.length;r++)0!=n[r][yc("0x146")]&&o(n[t],n[r])&&e[yc("0x140")](r);for(const r of e)n[t]=n[t].concat(n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0x146")];e++)t[e][yc("0x68")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e].previous=t[e-1]||null;function o(t,e){if(t[0][yc("0x16d")][yc("0x79")]!==e[0][yc("0x16d")].groupId&&t[0].author!==e[0][yc("0x17a")])return!1;if(n=t[0],r=e[0],(n[yc("0x11")]||r[yc("0x11")])&&(n[yc("0x11")]&&r.hasComments||!(n[yc("0x11")]&&r[yc("0x89")]<n[yc("0x135")][yc("0xe8")][yc("0xe5")](0)[yc("0x89")]||r[yc("0x11")]&&n[yc("0x89")]<r.commentThread[yc("0xe8")][yc("0xe5")](0)[yc("0x89")])))return!1;var n,r;const o=bc(t[0][yc("0x16d")],"groupId"),i=bc(e[0][yc("0x16d")],"groupId");return!!jr(o,i)&&(!!t[yc("0x23")]((t=>e[yc("0x39")]((e=>t[yc("0x156")]()[yc("0xb5")](e[yc("0x156")]())))))&&e[yc("0x23")]((e=>t[yc("0x39")]((t=>e.getFirstRange()[yc("0xb5")](t[yc("0x156")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array[yc("0x9e")](t),n=this.getSuggestions({skipNotAttached:!0}),r=n[yc("0x88")]((e=>!t[yc("0x11e")](e))),o=new Map(e[yc("0x177")]((t=>[t,this[yc("0x24")][yc("0x13c")](t[yc("0x56")],t.subType,yc("0xef"))]))),i=new Map(n.map((t=>[t,t.getRanges()])));for(let t=0;t<e[yc("0x146")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x146")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0x146")];s++){const r=n[s];if(r[yc("0x56")]!==e.type||r[yc("0x17a")].id!==e.author.id||r[yc("0xbc")]!==e[yc("0xbc")])continue;if(!Oc(e,r,[yc("0x79")]))continue;if(yc("0xdc")==e[yc("0x56")]&&e[yc("0x108")][yc("0x5")]!=r[yc("0x108")][yc("0x5")])continue;if(yc("0xdc")==e[yc("0x56")]&&t._isBlockAttribute(e[yc("0x108")][yc("0xf6")]))continue;if(yc("0xdb")==e[yc("0x56")]){const n=t[yc("0x27")].model,r=e[yc("0x11a")]();if(r&&(n[yc("0x16c")][yc("0xa7")](r)||n.schema[yc("0x2f")](r)))continue}const x=o[yc("0xe5")](e),a=i.get(e),c=i[yc("0xe5")](r),l=e[yc("0x135")]&&e[yc("0x135")][yc("0x146")],u=r[yc("0x135")]&&r[yc("0x135")][yc("0x146")];if(!l&&x(c,a))return t[yc("0xc6")](r,e),i[yc("0x17f")](e),!0;if(!u&&x(a,c))return t[yc("0xc6")](e,r),i[yc("0x17f")](r),!0}return!1}}[yc("0xc6")](t,e){if(t[yc("0xbd")])for(const n of e[yc("0xc5")]())t.addRange(n);else{const n=e.getFirstRange().end;this[yc("0xc3")](t,this[yc("0x47")][yc("0x4a")](t[yc("0x156")]()[yc("0x61")],n))}e.removeMarkers()}[yc("0x137")](t,e){const n=t[yc("0xfe")]("format")||t[yc("0xfe")](yc("0xdc"))?"FORMATTING":t.toUpperCase();return Jr(this[yc("0x27")][yc("0x83")],e+"_"+n+yc("0x7e"))}[yc("0x70")](){const t=this[yc("0x27")];(0,i.surroundingMarkersDetector)(this[yc("0x47")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0x15")](t[yc("0x81")]);if(yc("0xa")===e){r[yc("0x140")](this._getMarkerAnnouncementText(n,yc("0xfd")));break}}for(const t of n){const{group:e,type:n}=this[yc("0x15")](t[yc("0x81")]);if(yc("0xa")===e){r[yc("0x140")](this[yc("0x137")](n,yc("0xde")));break}}r.length&&t.ui.ariaLiveAnnouncer[yc("0x35")](yc("0xb3"),r[yc("0xef")](" "))}))}_processAttributeChanges(t){if(this[yc("0x12a")])return!1;const e=this[yc("0x27")],n=e[yc("0xb2")][yc("0xda")][yc("0x17c")][yc("0x14d")]();if(0==n.length)return!1;const r=[],o=n.filter((t=>yc("0xdc")==t[yc("0x56")])),i=n[yc("0x88")]((t=>yc("0x13")==t[yc("0x56")]&&yc("0x0")!=t.name)),s=n[yc("0x88")]((t=>yc("0x26")==t.type&&yc("0x0")!=t[yc("0x81")]));for(const t of o)r.push({key:t[yc("0x12c")],newValue:t.attributeNewValue,oldValue:t[yc("0x178")],range:Nc(t[yc("0x16f")],e[yc("0xb2")])});for(const t of i){const n=s[yc("0x160")]((e=>e[yc("0x2e")][yc("0xb5")](t[yc("0x2e")])));n&&r.push({key:yc("0x142"),newValue:t[yc("0x81")],oldValue:n[yc("0x81")],range:e[yc("0xb2")].createRangeOn(t[yc("0x2e")][yc("0x64")])})}return 0!=r[yc("0x146")]&&this[yc("0xa8")](t,r)}[yc("0xab")](t){let e=!1;const n=this[yc("0x27")][yc("0xb2")].document[yc("0x17c")][yc("0x10f")]()[yc("0x88")]((t=>t[yc("0x108")][yc("0x34")]&&t[yc("0x81")][yc("0xfe")]("suggestion:attribute:")));for(const r of n){const{subType:n,id:o}=this[yc("0x15")](r[yc("0x81")]),i=n[yc("0x15d")]("|")[0];for(const n of this[yc("0x14")]({skipNotAttached:!0}))n.id!=o&&yc("0xdc")==n.type&&n[yc("0x108")]&&n[yc("0x108")].key==i&&n[yc("0x156")]()[yc("0xb9")](r[yc("0x108")][yc("0x34")])&&(this._reduceSuggestionAttributeRange(n,r[yc("0x108")][yc("0x34")],t),e=!0)}return e}_recordAttributeChanges(t){this[yc("0x27")],this[yc("0x12a")]=!0,t()}[yc("0x8b")](t){const e=this[yc("0x20")](t),n=this[yc("0x8")][yc("0x11e")](t);return e||n}_reduceExistingSuggestions(t,e){if(0==e[yc("0x146")])return!1;let n=!1;for(const r of e){const e=this[yc("0x9f")](r[yc("0x16f")],"attribute")[yc("0x88")]((t=>!t.meta[yc("0x166")]))[yc("0x177")]((t=>t[yc("0xa")])),o=(0,i.hashObject)({newValue:r[yc("0x7b")]});e.filter((t=>{const[e,n]=t[yc("0xbc")][yc("0x15d")]("|");return e==r[yc("0xf6")]&&n!=o}))[yc("0x10e")]((e=>{this[yc("0x30")](e,r[yc("0x16f")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[yc("0x156")]().getDifference(e);0!==r.length?1!==r[yc("0x146")]?this._breakSuggestionMarker(t,e[yc("0x61")],e[yc("0xcd")]):this[yc("0xc3")](t,r[0]):n[yc("0xb8")](t[yc("0xeb")]())}}class kc{constructor(t){this[yc("0x42")]=t,this[yc("0x47")]=t.model,this._customCallbacks=new Map,this[yc("0xae")]=new Map,this[yc("0x4d")]()}[yc("0x105")](t,e,n,r,o,i){return new Yr(this[yc("0x47")],{type:t,subType:e,id:n,author:r,creator:r,attributes:o,onAttributesChange:i,onAccept:(...n)=>this[yc("0x13c")](t,e,yc("0x110"))(...n),onDiscard:(...n)=>this[yc("0x13c")](t,e,yc("0x161"))(...n)})}[yc("0x85")](t,e,n,r){const o=t+":"+e+":"+n;this._customCallbacks[yc("0x123")](o,r)}[yc("0x13c")](t,e,n){const r=t+":"+e+":"+n;return this[yc("0x7c")][yc("0xe5")](r)||this[yc("0xae")][yc("0xe5")](t+":"+n)}[yc("0x4d")](){const t=()=>!1,e=t=>{t[yc("0x174")](((t,e)=>t[yc("0x61")][yc("0x112")](e[yc("0x61")])?1:-1)),this[yc("0x47")].change((e=>{for(const n of t){let t;t=n[yc("0xcd")][yc("0x92")]&&n[yc("0xcd")].parent==n.start.nodeAfter?e.createSelection(n[yc("0x61")][yc("0x64")],"on"):e[yc("0x9b")](n),this[yc("0x47")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x47")][yc("0x172")]((n=>{const{commandName:r,commandParams:o=[]}=e,i=t[yc("0x177")]((t=>(Sc(t)&&(t=this._model[yc("0x4a")](t.end)),t)))[yc("0x88")]((t=>yc("0xb1")!==t[yc("0x6f")][yc("0xa9")]));if(i[yc("0x146")]<1)return;const x=Array[yc("0x9e")](this._model[yc("0xda")][yc("0x14f")][yc("0xc5")]())[yc("0x177")]((t=>s.LiveRange.fromRange(t)));n[yc("0x78")](i);for(const t of this[yc("0x42")][yc("0x17")].commands())t[yc("0x4e")]();o[yc("0x140")]({forceDefaultExecution:!0}),this._editor[yc("0x126")](r,...o);const a=x.filter((t=>yc("0xb1")!=t.root[yc("0xa9")]));a.length>0&&n[yc("0x78")](a);for(const t of x)t.detach()}))},r=(t,e)=>1==t[yc("0x146")]&&1==e[yc("0x146")]&&t[0][yc("0xcd")][yc("0xb5")](e[0][yc("0x61")]),o=(t,e,n,r)=>wc(t,e,n,r,this._model)?[t,e]:wc(e,t,r,n,this[yc("0x47")])?[e,t]:null;this[yc("0xae")].set("insertion:accept",t),this[yc("0xae")][yc("0x123")](yc("0xe6"),e),this[yc("0xae")][yc("0x123")](yc("0x6b"),r),this[yc("0xae")][yc("0x123")](yc("0x138"),o),this._defaultCallbacks[yc("0x123")](yc("0x14a"),e),this._defaultCallbacks[yc("0x123")](yc("0xc"),t),this[yc("0xae")][yc("0x123")](yc("0x46"),r),this._defaultCallbacks[yc("0x123")](yc("0x116"),o),this[yc("0xae")][yc("0x123")]("formatInline:accept",n),this[yc("0xae")][yc("0x123")](yc("0x2"),t),this[yc("0xae")][yc("0x123")](yc("0x65"),r),this[yc("0xae")][yc("0x123")](yc("0x36"),t),this[yc("0xae")][yc("0x123")](yc("0x1"),n),this._defaultCallbacks[yc("0x123")](yc("0x9d"),t),this[yc("0xae")].set(yc("0x40"),r),this[yc("0xae")][yc("0x123")](yc("0xca"),t),this._defaultCallbacks[yc("0x123")](yc("0xa5"),t),this._defaultCallbacks[yc("0x123")]("attribute:discard",((t,e)=>{if(!e)return;const n=this._editor[yc("0x77")][yc("0xe5")](Ac);this._model[yc("0x172")]((r=>{if(yc("0x142")==e.key)for(const n of t){const t=n.start.nodeAfter,o=e[yc("0x5")];r[yc("0xfc")](t,o)}else if(n[yc("0x20")](e[yc("0xf6")]))for(const n of t)void 0!==e[yc("0x5")]?r.setAttribute(e[yc("0xf6")],e.oldValue,n[yc("0x61")].nodeAfter):r.removeAttribute(e[yc("0xf6")],n[yc("0x61")][yc("0x64")]);else for(const n of t)e.oldValue?r[yc("0x10a")](e[yc("0xf6")],e.oldValue,n):r.removeAttribute(e[yc("0xf6")],n)}))})),this[yc("0xae")][yc("0x123")](yc("0x10d"),r)}}function Ic(t,e,n){for(const r of e[yc("0x131")].getAncestors({includeSelf:!0,parentFirst:!0})){if(r[yc("0x6f")]==r)return!1;if(!n[yc("0x4c")](r))return!1;if(t[yc("0xa7")](r)||t.isLimit(r))return!0}return!1}function Sc(t){return t[yc("0xcd")].parent==t[yc("0x61")][yc("0x64")]&&t[yc("0xcd")][yc("0x50")]}function Rc(t,e,n,r){const o=t=>!t.item.is(yc("0x99"))&&!r[yc("0xa7")](t[yc("0x25")]),i=t[yc("0x61")][yc("0x115")](o),s=t[yc("0xcd")].getLastMatchingPosition(o,{direction:"backward"});return!(t[yc("0x61")].isEqual(i)&&t.end.isEqual(s)||(i.isBefore(s)?n[yc("0xd8")](e,{range:n[yc("0x4a")](i,s)}):n[yc("0xb8")](e),0))}function Lc(t){return(0,i.hashObject)(t)}function vc(t){const e=t[yc("0x61")][yc("0x64")];return e&&e.is(yc("0x55"))}function Nc(t,e){return null==t[yc("0xcd")].nodeBefore&&t[yc("0xcd")][yc("0x131")]==t.start[yc("0x64")]?Mc(t[yc("0x61")][yc("0x64")],e):t}function Mc(t,e){const n=e[yc("0x16c")].isObject(t)||e[yc("0x16c")][yc("0x13e")](t);return e[yc("0x4a")](e[yc("0xcb")](t,yc("0x16b")),n?e.createPositionAfter(t):e.createPositionAt(t,yc("0xcd")))}function wc(t,e,n,r,o){if(!Oc(t,e))return!1;if(n[yc("0xcd")][yc("0xb5")](r[yc("0x61")]))return!0;if(t[yc("0x56")]!=e.type)return!1;if(!n[yc("0xcd")].isTouching(r[yc("0x61")]))return!1;const i=o[yc("0x4a")](n[yc("0xcd")],r[yc("0x61")])[yc("0x93")]();for(const t of i)if(["elementStart",yc("0x66")][yc("0xa3")](t[yc("0x56")])&&o[yc("0x16c")][yc("0x2f")](t[yc("0x25")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x180")]||!e[yc("0x180")])&&jr(bc(t[yc("0x16d")],n),bc(e[yc("0x16d")],n))}function Fc(t,e){const n=Dc(t.attributes),r=Dc(e);if(!t[yc("0x180")])return!1;for(const t of Object[yc("0x2a")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0x82")]({},t);return delete e[yc("0x13a")],delete e[yc("0xf5")],e}const Bc=["bind","get","_discardCommand","model","discardSuggestion","acceptSuggestion","_removePendingAction","canDiscard","canEditAt","view","_acceptCommand","unbind","_editor","commands","commentThreadController","_pendingAction","isEnabled","destroy","_setPendingAction","PendingActions","change:isDirty","isDirty","execute","canAccept","plugins","getRanges","listenTo","remove","PENDING_ACTION_SUGGESTION","locale"];var Pc,Uc;Pc=Bc,Uc=457,function(t){for(;--t;)Pc.push(Pc.shift())}(++Uc);const jc=function(t,e){return Bc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0x1a")]=e,this.view=n,this[jc("0x7")]=r,this[jc("0x5")]=t,this._acceptCommand=t[jc("0x6")].get(jc("0x1c")),this._discardCommand=t[jc("0x6")][jc("0x18")](jc("0x1b")),this[jc("0x2")][jc("0x17")]("isEnabled").to(this[jc("0x3")],this[jc("0x19")],((t,e)=>t||e)),this[jc("0x2")][jc("0x17")]("canAccept").to(this._acceptCommand,jc("0x9"),(t=>t&&this[jc("0x5")].model[jc("0x1")](e[jc("0x12")]()))),this[jc("0x2")][jc("0x17")]("canDiscard").to(this[jc("0x19")],jc("0x9"),(t=>t&&this._editor[jc("0x1a")][jc("0x1")](e.getRanges()))),this[jc("0x8")]=null,n[jc("0xe")]&&this[jc("0xb")](),this[jc("0x13")](n,"acceptSuggestion",(()=>this[jc("0x1c")]())),this[jc("0x13")](n,jc("0x1b"),(()=>this.discardSuggestion())),this.listenTo(n,jc("0xd"),(()=>{n[jc("0xe")]?this._setPendingAction():this[jc("0x1d")]()}))}acceptSuggestion(){this[jc("0x3")][jc("0xf")](this.model.id)}[jc("0x1b")](){this[jc("0x19")].execute(this[jc("0x1a")].id)}[jc("0xa")](){this[jc("0x2")][jc("0x4")](jc("0x9")),this[jc("0x2")].unbind(jc("0x10")),this[jc("0x2")][jc("0x4")](jc("0x0")),this.stopListening(),this.commentThreadController[jc("0xa")](),this[jc("0x8")]&&this[jc("0x1d")]()}_setPendingAction(){const t=Jr(this[jc("0x5")][jc("0x16")],jc("0x15"));this._pendingAction=this[jc("0x5")][jc("0x11")][jc("0x18")](jc("0xc")).add(t)}[jc("0x1d")](){null!==this[jc("0x8")]&&this._editor[jc("0x11")][jc("0x18")](jc("0xc"))[jc("0x14")](this[jc("0x8")]),this._pendingAction=null}}const Vc=["_config","submit","fire","isEnabled","delegate","updateComment","isReadOnly","assign","canAccept","_localUser","hasDirtyComment","isDirty","commentInputView","_model","descriptionParts","commentThreadInputView","removeComment","_createCommentViews","focus","bind","cancel","addComment","showInput","locale","isActive","commentsListView","disabledSubmit","_createCommentThreadInputView","element","disableComments","length","set","commentThread","value","editor","destroy","authoredAt"];var Hc,zc;Hc=Vc,zc=123,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends o.View{constructor(t,e,n,r){super(t),this[Wc("0xd")]=null,this[Wc("0x3")]=null,this[Wc("0x13")](Wc("0xc"),!1),this[Wc("0x13")]("authoredAt",e[Wc("0x18")]),this.bind(Wc("0x18")).to(e),this[Wc("0x13")](Wc("0x2"),[]),this.set(Wc("0x24"),!1),this[Wc("0x13")](Wc("0x1c"),!1),this[Wc("0x13")](Wc("0x21"),!1),this.set("canDiscard",!1),this[Wc("0x1")]=e,this._localUser=n,this[Wc("0x19")]=r,r[Wc("0x11")]?this[Wc("0x13")](Wc("0x12"),1):this[Wc("0x5")]()}[Wc("0x6")](){this[Wc("0x10")][Wc("0x6")]()}[Wc("0x17")](){this.commentsListView&&this[Wc("0xd")][Wc("0x17")](),this[Wc("0x3")]&&this[Wc("0x3")].destroy(),super[Wc("0x17")]()}_createCommentViews(){const{CommentsListView:t}=this._config;this.commentsListView=new t(this.locale,this[Wc("0x1")][Wc("0x14")],Object[Wc("0x20")]({CommentView:this[Wc("0x19")].CommentView},this[Wc("0x19")])),this[Wc("0xd")][Wc("0x1d")](Wc("0x4")).to(this),this[Wc("0xd")][Wc("0x1d")](Wc("0x1e")).to(this),this[Wc("0xd")][Wc("0x7")]("isActive").to(this),this[Wc("0x13")]("length",this[Wc("0xd")].length+1),this.bind(Wc("0x12")).to(this[Wc("0xd")],Wc("0x12"),(t=>t+1)),this[Wc("0x3")]=this._createCommentThreadInputView(),this.on("removeComment",(()=>this.focus())),this[Wc("0x7")]("isDirty").to(this[Wc("0xd")],Wc("0x23"),this[Wc("0x3")][Wc("0x0")],Wc("0x15"),((t,e)=>t||!!e))}[Wc("0xf")](){const{CommentThreadInputView:t}=this[Wc("0x19")],e=new t(this[Wc("0xb")],this[Wc("0x22")],this[Wc("0x19")].editorConfig),n=e[Wc("0x0")];return e.bind(Wc("0xa")).to(this,Wc("0xc"),this[Wc("0x1")][Wc("0x14")],Wc("0x1f"),n,Wc("0x15"),((t,e,n)=>!!n||t&&!e)),n.on(Wc("0x1a"),((t,e)=>{this[Wc("0x1b")](Wc("0x9"),e),n[Wc("0x16")].setData("")})),n.on(Wc("0x8"),(()=>this.focus())),n[Wc("0x7")](Wc("0xe")).to(this[Wc("0x1")][Wc("0x14")],Wc("0x1f")),e}}const qc=["isEnabled","bind","ck-suggestion__actions","_descriptionElement","</span>",'"></span>',"ck-suggestion__user","createElement","title","ck-suggestion--disabled-comments","children","ck-suggestion-wrapper--active","ck-annotation","split","value","ck-suggestion--accept","render","formatDateTime","push","descriptionParts","extendTemplate","check",".ck-annotation__content-wrapper","EXTERNAL_IMPORT_WORD_AVATAR","innerText","ck-annotation__info-name",'<span class="ck-suggestion-color" style="background-color: ',"bindTemplate","<p>","authoredAt","_createButton","querySelector","cancel","acceptButton","EXTERNAL_IMPORT_WORD_SUGGESTION","change:description","isActive","ck-suggestion--discard","discardButton","map","ck-annotation__info","delegate",'" title="',"_config","locale","ck-annotation__content-wrapper","_model","importWord","source","time","ck-suggestion__main","canAccept","userView","attributes","ck-comment__external","ck-suggestion","span","</p>","ck-annotation__main","getTemplate","isExternal","author","EXTERNAL_AVATAR","commentThreadInputView","join","ck-suggestion-","getExternalSuggestionNote","getUserViewNotificationText","ck-suggestion-wrapper","disableComments","div","editorReady","innerHTML","fire","type","ck-annotation__actions","ck-suggestion__info-name","setTemplate","name","content","commentsListView","creator","description","@external","commentThread","set","ck-suggestion__info","Discard suggestion"];var $c,Xc;$c=qc,Xc=293,function(t){for(;--t;)$c.push($c.shift())}(++Xc);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,o){super(e,n,r,o),this.set(Zc("0x2d"),""),this[Zc("0x3c")]("type").to(this,Zc("0x4e"),(t=>t&&t[0]?t[0][Zc("0x2d")]:"")),this[Zc("0x3c")](Zc("0x35")).to(this,Zc("0x4e"),this,Zc("0x7"),((t,e)=>{let n="";for(const e of t)n+=Zc("0x57")+Jc(e[Zc("0x32")],e.color)+Zc("0x1c");return e?n:(0,i.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Zc("0x4")]=this._createButton(Jr(e,"Accept suggestion"),t.icons[Zc("0x50")],Zc("0x4a"),"acceptSuggestion","sw"),this[Zc("0x4")][Zc("0x3c")](Zc("0x3b")).to(this,Zc("0x16")),this[Zc("0x9")]=this[Zc("0x1")](Jr(e,Zc("0x3a")),t.icons[Zc("0x3")],Zc("0x8"),"discardSuggestion","sw"),this.discardButton.bind(Zc("0x3b")).to(this,"canDiscard"),this[Zc("0x17")]=new i.UserView(e,this[Zc("0x11")][Zc("0x20")],this[Zc("0x26")]()),this[Zc("0x17")][Zc("0x4f")]({attributes:{class:[Zc("0x41"),"ck-annotation__user"]}}),this[Zc("0x30")](this.getTemplate())}[Zc("0x1e")](){const t=this[Zc("0x56")],e=[{tag:Zc("0x29"),attributes:{class:[Zc("0x39"),Zc("0xb")]},children:[{tag:Zc("0x1b"),children:[{text:this[Zc("0x17")][Zc("0x31")]}],attributes:{class:[Zc("0x2f"),Zc("0x54")]}},{tag:Zc("0x14"),attributes:{datetime:t.to(Zc("0x0")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to(Zc("0x0"),(t=>this[Zc("0xe")][Zc("0x4c")](t)))}]}]},{tag:"div",attributes:{class:[Zc("0x3d"),Zc("0x2e")]},children:[this[Zc("0x4")],this[Zc("0x9")]]},{tag:Zc("0x29"),attributes:{class:[Zc("0x10")]}}];this[Zc("0x11")][Zc("0x1f")]&&e[Zc("0x4d")]({tag:"div",attributes:{class:[Zc("0x19")]},children:[{text:this[Zc("0x25")]()}]});const n={tag:"div",attributes:{class:[Zc("0x27"),t.if(Zc("0x7"),Zc("0x46")),t.to(Zc("0x2d"),(t=>Zc("0x24")+t)),this[Zc("0xe")][Zc("0x28")]&&Zc("0x44")],"data-suggestion-id":this[Zc("0x11")].id,"data-thread-id":this[Zc("0x11")][Zc("0x37")].id,"data-author-id":this[Zc("0x11")][Zc("0x20")].id,tabindex:-1},children:[{tag:Zc("0x29"),attributes:{class:[Zc("0x1a"),Zc("0x47")]},children:[this[Zc("0x17")],{tag:Zc("0x29"),attributes:{class:[Zc("0x15"),Zc("0x1d")]},children:e}]}]};return this[Zc("0x33")]&&this[Zc("0x22")]&&(n[Zc("0x45")][Zc("0x4d")](this[Zc("0x33")],this[Zc("0x22")]),this.commentsListView.delegate(Zc("0x2a")).to(this),this[Zc("0x33")].delegate("editorDestroyed").to(this),this[Zc("0x22")][Zc("0xc")](Zc("0x2a")).to(this),this.commentThreadInputView[Zc("0xc")]("editorDestroyed").to(this)),n}[Zc("0x4b")](){super[Zc("0x4b")](),this[Zc("0x3e")]=this.element[Zc("0x2")](Zc("0x51")),this[Zc("0x3e")][Zc("0x2b")]=this[Zc("0x35")],this.on(Zc("0x6"),((t,e,n)=>{this[Zc("0x3e")][Zc("0x2b")]=n}))}_createButton(t,e,n,r,i){const s=new o.ButtonView(this.locale);return s[Zc("0x38")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Zc("0x4f")]({attributes:{class:n}}),s.on("execute",(()=>{this[Zc("0x2c")](r,this[Zc("0x11")].id)})),s}getExternalSuggestionNote(){return Zc("0x12")===this[Zc("0x11")][Zc("0x18")][Zc("0x36")][Zc("0x13")]?Jr(this[Zc("0xf")],Zc("0x5")):Jr(this.locale,"EXTERNAL_SUGGESTION")}[Zc("0x26")](){return this[Zc("0x11")][Zc("0x1f")]?Zc("0x12")===this[Zc("0x11")].attributes[Zc("0x36")][Zc("0x13")]?Jr(this[Zc("0xf")],Zc("0x52"),this[Zc("0x11")][Zc("0x34")].name):Jr(this.locale,Zc("0x21"),this._model.creator[Zc("0x31")]):null}}function Jc(t,e){let n="";return n+=t[Zc("0x48")]("*")[Zc("0xa")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Qc(t)+Zc("0x3f"):Qc(t)))[Zc("0x23")](""),e&&(n+=Zc("0x55")+e[Zc("0x49")]+Zc("0xd")+e[Zc("0x43")]+Zc("0x40")),n}function Qc(t){const e=document[Zc("0x42")](Zc("0x1b"));return e[Zc("0x53")]=t,e[Zc("0x2b")]}const tl=["_destroyController","commentThread","execute","_descriptionFactory","mainView","bind","addSourceCollector","keys","values","model","EditorAnnotations","reduce","comments","get","lowest","type","set","arrowView","size","createAnnotationView","_initializeController","Annotations","change:previous","editing","_suggestionToController","destroy","CommentView","registerAnnotation","config","discardAllSuggestions","Discard all selected suggestions","init","editor","acceptSelectedSuggestions","actionView","trackChanges","Accept all suggestions","_viewToController","getMarkerNames","isDirty","pluginName","commands","_handleSuggestionControllerDelayed","getAllAdjacentSuggestions","filter","toMany","innerView","TrackChangesEditing","getJoined","_createUIButton","head","some","separator","change:activeAnnotations","suggestionLoaded","activeAnnotations","map","has","trackChanges.disableComments","suggestionUnloaded","getSuggestion","unbind","define","activeMarkers","value","focus","isInContent","suggestion-","discardSelectedSuggestions","_updateController","push","_handleControllerBuffer","view","from","locale","requires","add","addComment","getRanges","getMarkers","length","Discard all suggestions","getFirstRange","source","listenTo","suggestionChanged","plugins","acceptButton","descriptionParts","buttonView","comments.maxCommentCharsWhenCollapsed","isMultiRange","getByInnerView","getDescriptions","delete","CommentsUI","createCommentThreadController","_disableComments","CommentsRepository","_annotationViews","isEnabled","TrackChangesUI","switchbutton","Accept all selected suggestions","isOn","remove","button","_refreshActiveMarkers","commandName"];var el,nl;el=tl,nl=112,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class ol extends t.Plugin{static get[rl("0x48")](){return[Ac,i.Users,rl("0x5f"),"Annotations","EditorAnnotations"]}static get[rl("0x25")](){return rl("0x62")}constructor(t){super(t),this[rl("0x15")]=new Map,this[rl("0x22")]=new Map,this[rl("0x60")]=new Map,this._handleControllerBuffer=new Map;const e=this[rl("0x1d")][rl("0x19")];e[rl("0x3b")]("trackChanges.SuggestionThreadView",Yc),e[rl("0x3b")](rl("0x37"),!1),this[rl("0x5e")]=e.get(rl("0x37"))}_handleSuggestionControllerDelayed(t,e){0===this[rl("0x44")][rl("0xf")]&&setTimeout((()=>{for(const[t,e]of this[rl("0x44")]){const n=this._suggestionToController[rl("0x36")](t);n||e?n&&e&&this[rl("0x6a")](t):this[rl("0x11")](t)}this[rl("0x44")].clear(),this.editor.plugins[rl("0xa")](rl("0x7")).refreshSelectedViews(),this[rl("0x68")]()}),10),this[rl("0x44")][rl("0xd")](t,e)}[rl("0x1c")](){const t=this[rl("0x1d")],e=t[rl("0x53")][rl("0xa")](rl("0x2c")),n=t[rl("0x53")][rl("0xa")]("Annotations"),r=t.plugins.get(rl("0x7")),o=t[rl("0x53")].get("CommentsRepository");t.ui.componentFactory[rl("0x49")](rl("0x20"),(t=>this._createUIButton(t))),r[rl("0x3")]((()=>{const t=[];for(const[e,n]of Array[rl("0x46")](this._suggestionToController)){const r=e.getAllAdjacentSuggestions(),o=[];for(const t of r){if(!t[rl("0x3f")])continue;if(t[rl("0x58")]){o[rl("0x43")](...t[rl("0x4b")]());continue}const e=t[rl("0x4f")]();if(o[rl("0x4d")]>0){const t=o[0][rl("0x2d")](e);if(t){o[0]=t;continue}}o[rl("0x43")](e)}t[rl("0x43")]([n[rl("0x45")],o])}return t})),this.listenTo(e,rl("0x33"),((t,e)=>{this.listenTo(e,rl("0x13"),((t,n,r,o)=>{e.isInContent&&(null==r?(this._updateController(o[rl("0x2f")]),this._handleSuggestionControllerDelayed(e,!1)):(this._updateController(r[rl("0x2f")]),null==o&&this[rl("0x27")](e,!0)))})),null!==e.previous?this._updateController(e[rl("0x2f")]):this[rl("0x27")](e,!1)})),this[rl("0x51")](e,rl("0x38"),((t,e,n)=>{this.stopListening(e,"change:previous"),this[rl("0x44")][rl("0x5b")](e),this[rl("0x15")][rl("0x36")](e)&&this._destroyController(e),n&&this._updateController(n[rl("0x2f")])})),this[rl("0x51")](e,rl("0x52"),((t,e)=>{this[rl("0x42")](e)})),this.listenTo(n,rl("0x32"),(()=>{this[rl("0x68")]()})),this.listenTo(o,rl("0x4a"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e.hasSuggestion(n))return;const o=e[rl("0x39")](n);this._suggestionToController[rl("0xa")](o)[rl("0x45")].focus()}),{priority:rl("0xb")})}[rl("0x68")](){const t=this.editor[rl("0x53")][rl("0xa")](rl("0x12")),e=this.editor[rl("0x53")][rl("0xa")](rl("0x2c")),n=Array[rl("0x46")](t[rl("0x34")],(t=>t[rl("0x2b")]))[rl("0x29")]((t=>this._viewToController[rl("0x36")](t))),r=[];for(const t of n){const e=this._viewToController[rl("0xa")](t)[rl("0x6")][rl("0x28")]();r[rl("0x43")](...e[rl("0x8")](((t,e)=>[...t,...e[rl("0x23")]()]),[]))}e[rl("0x3c")]=r}[rl("0x2e")](t){const n=(0,o.createDropdown)(t,o.SplitButtonView),r=this[rl("0x1d")][rl("0x26")][rl("0xa")](rl("0x20")),i=Jr(t,"Track changes");n.buttonView[rl("0xd")]({tooltip:i,label:i,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-2024, 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[rl("0x56")][rl("0x2")](rl("0x65")).to(r,"value"),n[rl("0x56")].on(rl("0x6c"),(()=>{r.execute(),this[rl("0x1d")].editing[rl("0x45")][rl("0x3e")]()}));const s=new e.Collection,x=[{type:rl("0x63"),model:{withText:!0,label:i,commandName:rl("0x20")}},{type:rl("0x31")},{type:rl("0x67"),model:{withText:!0,label:Jr(t,rl("0x21")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Jr(t,rl("0x64")),commandName:rl("0x1e")}},{type:rl("0x67"),model:{withText:!0,label:Jr(t,rl("0x4e")),commandName:rl("0x1a")}},{type:rl("0x67"),model:{withText:!0,label:Jr(t,rl("0x1b")),commandName:rl("0x41")}}];for(const t of x){let e={type:rl("0x31")};if(t.model){const n=new o.ViewModel(t.model),r=this.editor[rl("0x26")][rl("0xa")](n[rl("0x69")]);n.bind("isOn",rl("0x61")).to(r,rl("0x3d"),rl("0x61")),e={type:t[rl("0xc")],model:n}}s[rl("0x49")](e)}(0,o.addListToDropdown)(n,s);const a=x[rl("0x29")]((t=>null!=t[rl("0x6")]))[rl("0x35")]((t=>this[rl("0x1d")][rl("0x26")][rl("0xa")](t[rl("0x6")][rl("0x69")]))),c=n[rl("0x56")];return c[rl("0x1f")][rl("0x3a")]("isEnabled"),c[rl("0xe")][rl("0x3a")](rl("0x61")),c.actionView[rl("0x2")]("isEnabled").to(r,rl("0x61")),c.arrowView[rl("0x2")](rl("0x61"))[rl("0x2a")](a,rl("0x61"),((...t)=>t[rl("0x30")]((t=>t)))),n.on(rl("0x6c"),(t=>{this[rl("0x1d")][rl("0x6c")](t[rl("0x50")][rl("0x69")]),this[rl("0x1d")][rl("0x14")][rl("0x45")].focus()})),n}[rl("0x11")](t){const e=this[rl("0x1d")],n=e.config,r=e[rl("0x53")].get(rl("0x12")),o=e[rl("0x53")][rl("0xa")]("CommentsRepository"),s=e[rl("0x53")][rl("0xa")](rl("0x7")),x=e[rl("0x53")][rl("0xa")](i.Users).me,a=n.get(rl("0x20")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x53")].get(rl("0x5c"));let u,d;this._annotationViews[rl("0x36")](t.id)?(d=this[rl("0x60")][rl("0xa")](t.id),u=d[rl("0x1")]):(u=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n[rl("0xa")]("comments.editorConfig"),maxCommentsWhenCollapsed:n.get("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[rl("0xa")](rl("0x57")),formatDateTime:(0,i.getDateTimeFormatter)(n[rl("0xa")](rl("0x47"))),CommentView:n[rl("0xa")](rl("0x9"))[rl("0x17")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x54")].on(rl("0x6c"),(()=>{e[rl("0x14")].view[rl("0x3e")]()})),u.discardButton.on("execute",(()=>{e.editing[rl("0x45")][rl("0x3e")]()})),d=r[rl("0x10")](this[rl("0x1d")][rl("0x47")],u),d[rl("0x2")](rl("0x24")).to(u,rl("0x24")),d[rl("0x2")](rl("0x4d")).to(u),d[rl("0x2")](rl("0xc")).to(u,rl("0xc"),(t=>rl("0x40")+t)),this[rl("0x60")][rl("0xd")](t.id,d));const g=o[rl("0x5d")](t[rl("0x6b")],u),f=new Gc(e,t,u,g),h=t[rl("0x28")]()[rl("0x29")]((t=>t[rl("0x3f")]));u[rl("0x55")]=e.plugins.get("TrackChangesEditing")[rl("0x0")].getDescriptions(h),this[rl("0x15")].set(t,f),this[rl("0x22")][rl("0xd")](u,f);const m=r.createAnnotation({view:d,target:()=>{const n=[],r=t[rl("0x28")]()[rl("0x29")]((t=>t[rl("0x3f")]));for(const t of r)n[rl("0x43")](...t[rl("0x4c")]());return(0,i.getAllMarkersDomElementsSorted)(e[rl("0x14")],n)},type:()=>rl("0x40")+f[rl("0x45")][rl("0xc")]});o._bindAnnotationToEditors(u,m),r.add(m),s[rl("0x18")](m)}_destroyController(t){const e=this[rl("0x1d")][rl("0x53")].get("CommentsRepository"),n=this[rl("0x1d")][rl("0x53")][rl("0xa")](rl("0x12")),r=this[rl("0x15")][rl("0xa")](t),o=r.view,i=n[rl("0x59")](o);e._unbindEditors(o),i&&n[rl("0x66")](i),this[rl("0x15")].delete(t),this[rl("0x22")][rl("0x5b")](o),r.destroy()}_updateController(t){if(!t[rl("0x3f")]||!this[rl("0x15")][rl("0x36")](t))return;const e=this[rl("0x1d")][rl("0x53")].get("TrackChangesEditing"),n=this[rl("0x15")][rl("0xa")](t),r=t.getAllAdjacentSuggestions();n[rl("0x45")][rl("0x55")]=e._descriptionFactory[rl("0x5a")](r)}[rl("0x16")](){for(const t of this[rl("0x15")][rl("0x4")]())this._destroyController(t);for(const t of this[rl("0x60")][rl("0x5")]())t[rl("0x1")][rl("0x16")]();super.destroy()}}var il,sl,xl=["plugins","adapter","get","editor","getSuggestions","addSuggestion","getSuggestion"];il=xl,sl=372,function(t){for(;--t;)il.push(il.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get requires(){return[Ac,ol,"Comments"]}static get pluginName(){return"TrackChanges"}set[al("0x0")](t){this[al("0x2")].plugins[al("0x1")](Ac)[al("0x0")]=t}get[al("0x0")](){return this[al("0x2")][al("0x6")][al("0x1")](Ac)[al("0x0")]}[al("0x4")](t){return this.editor[al("0x6")][al("0x1")](Ac).addSuggestionData(t)}[al("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x2")][al("0x6")][al("0x1")](Ac)[al("0x3")]({skipNotAttached:t,toJSON:e})}[al("0x5")](t){return this[al("0x2")].plugins[al("0x1")](Ac)[al("0x5")](t)}}const ll=["TrackChangesData","pluginName","editor","map","TrackChangesDataGetter","end","createDocumentFragment","Pagination","plugins","rootsAttributes","result","Users","getDataWithDiscardedSuggestions","discardAllSuggestions","reduce","createElement","users","getFullData","init","getSuggestions","destroy","get","trackChangesData","name","getUser","execute","editorCreator","appendChild","data","getDataWithAcceptedSuggestions","document","model","TrackChangesEditing","addSuggestionData","addUser","getRootsAttributes","div","getRootNames","requires","set","config","trackChangesData.editorCreator","acceptAllSuggestions","_adapter","constructor"];var ul,dl;ul=ll,dl=237,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x28")];class hl extends t.Plugin{static get[gl("0x1a")](){return[Ac]}static get[gl("0x22")](){return gl("0x21")}[gl("0x6")](){const t=this[gl("0x23")];if(t[gl("0x1c")].define(gl("0x1d"),(e=>{const n=t[gl("0x13")][gl("0x12")].getRootNames()[gl("0x2")](((t,e)=>(t[e]="",t)),{});return t[gl("0x20")].create(n,e)})),"function"!=typeof t[gl("0x1c")][gl("0x9")](gl("0xa"))[gl("0xe")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[gl("0x11")](t){return bl(this[gl("0x23")],!0,t)}[gl("0x0")](t){return bl(this[gl("0x23")],!1,t)}}class ml extends t.Plugin{static get[gl("0x22")](){return gl("0x25")}constructor(t){super(t),this[gl("0x2b")]=gl("0x26")}init(){this[gl("0x23")][gl("0x29")][gl("0x9")]("CommentsRepository")._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[gl("0x23")][gl("0x29")][gl("0x9")](gl("0x14"))[gl("0x1f")]=null}}function pl(t){return void 0!==t.getRootsAttributes}async function bl(t,e,n){const r=(0,i.sanitizeEditorConfig)(t,fl);r[gl("0x29")].push(Ac,ml),r[gl("0x2a")]=pl(t)?t[gl("0x17")]():void 0;const o=document[gl("0x27")](),s=t.config[gl("0x9")](gl("0xa"))[gl("0xe")],x=await s(r,(()=>function(t){const e=document[gl("0x3")](gl("0x18"));return t[gl("0xf")](e),e}(o)));!function(t,e){const n=t[gl("0x13")][gl("0x12")][gl("0x19")]()[gl("0x2")](((e,n)=>(e[n]=t[gl("0x10")][gl("0x9")]({rootName:n}),e)),{}),r=t[gl("0x29")].get(gl("0x2c"))[gl("0x4")][gl("0x24")]((t=>({id:t.id,name:t[gl("0xb")]}))),o=t[gl("0x29")][gl("0x9")]("TrackChangesEditing")[gl("0x7")]({skipNotAttached:!0,toJSON:!0}),i=e[gl("0x29")].get("Users"),s=e[gl("0x29")][gl("0x9")](gl("0x14"));for(const t of r)i[gl("0xc")](t.id)||i[gl("0x16")](t);i.me||i.useAnonymousUser();for(const t of o)s[gl("0x15")](t);e.data[gl("0x1b")](n)}(t,x),x[gl("0xd")](gl(e?"0x1e":"0x1"));const a=pl(x)?x[gl("0x5")](n):x[gl("0x10")].get(n);return await x[gl("0x8")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
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(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),i=n(273),o=n(417),s=n(492),x=n(995);const a=["clearForceDisabled","commands","execute","refresh","has","editor","affectsData","TrackChangesCommand","_enableCommands","_enabledCommands","_isEnabledBasedOnSelection","forceDisabled","value"];var c,l;c=a,l=441,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._enabledCommands=e,this[u("0x0")]=!1,this[u("0x4")](),this[u("0xb")]=!1}refresh(){this.isEnabled=!0}[u("0x3")](){this.value=!this.value,this[u("0x0")]?this._disableUnsupportedCommands():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0x6")][u("0x2")].commands())t[u("0x7")]&&!this[u("0xa")][u("0x5")](t)&&t[u("0xc")](u("0x8"))}[u("0x9")](){for(const t of this[u("0x6")][u("0x2")].commands())t[u("0x7")]&&!this[u("0xa")][u("0x5")](t)&&t[u("0x1")](u("0x8"))}}const g=["refresh","TrackChangesEditing","_isEnabledBasedOnSelection","plugins","isEnabled","execute","model","track-changes-accept-suggestion-not-found","editor","getRanges","get","_suggestions"];var f,h;f=g,h=364,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[m("0x7")]=e,this[m("0x8")](),this[m("0xa")]=!1}[m("0x8")](){this[m("0x0")]=!0}[m("0x1")](t){const n=this[m("0x7")].get(t);if(!n)throw new e.CKEditorError(m("0x3"),this);const r=n[m("0x5")]();this[m("0x4")][m("0x2")].canEditAt(r)&&this.editor[m("0xb")][m("0x6")](m("0x9")).acceptSuggestion(n)}}const p=["_suggestions","discardSuggestion","_isEnabledBasedOnSelection","editor","model","canEditAt","getRanges","refresh","execute","get","TrackChangesEditing","plugins"];var E,_;E=p,_=161,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x7")]=e,this[T("0x2")](),this[T("0x9")]=!1}refresh(){this.isEnabled=!0}[T("0x3")](t){const n=this[T("0x7")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const r=n[T("0x1")]();this.editor[T("0xb")][T("0x0")](r)&&this[T("0xa")][T("0x6")][T("0x4")](T("0x5"))[T("0x8")](n)}}const C=["value","color","length","execute","from","getRanges","splice","isIntersecting","push"," [color ","next","isInContent","createPositionAt","type","isMultiRange","sort","content","join","createPositionAfter","change","end","map","createRange","isArray","createPositionBefore"];var A,k;A=C,k=247,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t[I("0x12")](((t,e)=>"deletion"==t.type&&"deletion"!=e[I("0x10")]?-1:"deletion"!=t[I("0x10")]&&"deletion"==e.type?1:0))}function R(t,e){let n,r=0;const i=[],o=e.schema;for(;r<t[I("0x5")];){const s=t[r],x=t[r+1];n||(n=e[I("0x2")](s)),N(e,s,x)||(i[I("0xb")](e[I("0x0")](n,o.isObject(s)?e.createPositionAfter(s):e[I("0xf")](s,"end"))),n=null),r++}return i}function N(t,e,n){if(!n)return!1;const r=t[I("0x15")](e),i=t[I("0x2")](n);return r.isTouching(i)}function v(t,e,n){for(;n[I("0x5")];){const r=n[I("0x9")](0,100);t[I("0x16")]((()=>{for(const t of r)t[I("0xe")]&&e[I("0x6")](t.id)}))}}const L=["model","editor","from","some","_isEnabledBasedOnSelection","canEditAt","_suggestions","isInContent","values","refresh","_command","isEnabled"];var M,w;M=L,w=107,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._command=e,this[O("0x7")]=n,this.refresh(),this[O("0x5")]=!1}[O("0xa")](){const t=Array[O("0x3")](this[O("0x7")][O("0x9")]())[O("0x4")]((t=>t[O("0x8")]));this.isEnabled=this[O("0xb")][O("0x0")]&&t}execute(){const t=S(Array.from(this[O("0x7")][O("0x9")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x2")][O("0x1")][O("0x6")](t))return}v(this[O("0x2")][O("0x1")],this[O("0xb")],t)}}const D=["model","values","_selectedSuggestions","_isEnabledBasedOnSelection","from","getRanges","canEditAt","refresh","execute","editor","isEnabled","_command","_suggestions"];var B,P;B=D,P=333,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("0x3")]=e,this[U("0x4")]=n,this[U("0x7")]=new Set,this.refresh(),this[U("0x8")]=!1}[U("0xc")](){const t=this[U("0x1")][U("0x5")].document.selection,e=Array.from(this[U("0x4")][U("0x6")]());this[U("0x7")]=function(t,e){const n=Array[I("0x7")](t[I("0x8")]()),r=new Set;for(const i of e)if(i.isInContent)for(const e of n)for(const n of i[I("0x8")]())(e[I("0xa")](n)||t.isCollapsed&&!i[I("0x11")]&&i[I("0xd")]&&n[I("0x17")].isTouching(e.start))&&r.add(i);return r}(t,e),this[U("0x2")]=this[U("0x3")][U("0x2")]&&!!this[U("0x7")].size}[U("0x0")](){const t=S(Array[U("0x9")](this[U("0x7")]));for(const e of t){const t=e[U("0xa")]();if(!this.editor[U("0x5")][U("0xb")](t))return}v(this[U("0x1")].model,this[U("0x3")],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__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[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 rt=et||nt||Function("return this")();const it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.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 r=!0}catch(t){}var i=xt.call(t);return r&&(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 ht=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 mt=rt["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var 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))&&(ht(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(rt,"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 r=t[e];this.set(r[0],r[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),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[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 r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}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,r=null==t?0:t.length;++n<r&&!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 re=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(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,r=Array(t);++n<t;)r[n]=e(n);return r};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 he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,be=me&&me.exports===he?rt.Buffer:void 0;const pe=(be?be.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),r=!n&&de(t),i=!n&&!r&&pe(t),o=!n&&!r&&!i&&ve(t),s=n||r||i||o,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)||o&&("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)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&oe(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 r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(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?rt.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)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,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=vt(rt,"DataView");const fn=vt(rt,"Promise");const hn=vt(rt,"Set");const mn=vt(rt,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(hn),In=Tt(mn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=bn||fn&&Sn(fn.resolve())!=pn||hn&&Sn(new hn)!=En||mn&&Sn(new mn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return bn;case An:return pn;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=rt.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 r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+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 r;case"[object Number]":case"[object String]":return new r(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 tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,s):r(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(pe(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?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,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(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(ar,(function(t,n,r,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(t))};const br=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const pr=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=br(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:pr(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Nr=it?it.prototype:void 0,vr=Nr?Nr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,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||!o(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=Sr;case"[object Set]":var a=1&r;if(x||(x=Rr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,i,o,s);return s.delete(t),l;case"[object Symbol]":if(vr)return vr.call(t)==vr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,i,o){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:Mr.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var b=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===b?h===m||i(h,m,n,r,o):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:Rn(t),c=x?Fr:Rn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||ve(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Qt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,i,t,o))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=mr(e,t)).length;null!=t&&n<r;)t=t[br(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-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 o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[br(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["decorate","_onAccept","toJSON","isIntersectingWithRange","removeAttribute","addRange","hasComments","markers","createdAt","head","_model","next","_onAttributesChange","addMarkerName","isExternal","getFirstMarker","_onDiscard","end","getContainedElement","add","subType","attributes","accept","discard","_saved","clear","_markerNames","onAccept","getAllAdjacentSuggestions","reduce","getItems","setAttribute","@external","commentThread","change","length","set","addMarker","isInContent","substr","type","split","getRange","previous","nodeBefore","getMarkers","get","nodeAfter","map","getFirstRange","creator","data","delete","removeMarker","getMultiRangeId","author","push","suggestion:","from","getRanges","removeMarkers"];var $r,Xr;$r=qr,Xr=500,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this.type=e[Zr("0x1c")],this[Zr("0x8")]=e[Zr("0x8")]||null,this[Zr("0x2b")]=e[Zr("0x2b")],this[Zr("0x26")]=e[Zr("0x26")]||e.author,this[Zr("0x2")]=Boolean(e[Zr("0x9")]&&e[Zr("0x9")][Zr("0x14")]),this[Zr("0x27")]=null,this._model=t,this[Zr("0x32")]=e[Zr("0xf")],this[Zr("0x4")]=e.onDiscard,this[Zr("0x0")]=e.onAttributesChange,this[Zr("0xe")]=new Set,this[Zr("0x39")]=null,this.set("authoredAt",null),this[Zr("0x18")](Zr("0x9"),e[Zr("0x9")]||{}),this[Zr("0x18")](Zr("0x1f"),null),this[Zr("0x18")](Zr("0x3c"),null),this[Zr("0x18")](Zr("0x15"),null),this.set(Zr("0xc"),!1),this[Zr("0x31")](Zr("0xa")),this[Zr("0x31")]("discard")}get[Zr("0x3a")](){let t=this;for(;t[Zr("0x1f")];)t=t.previous;return t}get hasComments(){return!!this[Zr("0x15")]&&this[Zr("0x15")][Zr("0x17")]>0}get isMultiRange(){return 0!=this._markerNames.size&&6==Array[Zr("0x2e")](this[Zr("0xe")])[0][Zr("0x1d")](":")[Zr("0x17")]}get[Zr("0x1a")](){return null!==this.getFirstMarker()}addMarkerName(t){this[Zr("0xe")][Zr("0x7")](t)}getMarkerNames(){return Array[Zr("0x2e")](this[Zr("0xe")])}[Zr("0x21")](){return this.getMarkerNames()[Zr("0x24")]((t=>this[Zr("0x3b")][Zr("0x38")][Zr("0x22")](t))).filter((t=>t))}[Zr("0x3")](){return this[Zr("0x21")]()[0]||null}[Zr("0x30")](){this[Zr("0x3b")][Zr("0x16")]((t=>{for(const e of this[Zr("0x21")]())t[Zr("0x29")](e)})),this[Zr("0xe")][Zr("0xd")]()}[Zr("0x29")](t){this[Zr("0x3b")].change((e=>{e[Zr("0x29")](t)})),this._markerNames[Zr("0x28")](t)}[Zr("0x36")](t){const e=Zr("0x2d")+this[Zr("0x1c")]+":"+this[Zr("0x8")]+":"+this.id+":"+this[Zr("0x26")].id+":"+Yr[Zr("0x2a")]();this[Zr("0x1")](e),this[Zr("0x3b")][Zr("0x16")]((n=>{n[Zr("0x19")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x34")](t){for(const e of this[Zr("0x2f")]())if(e.isIntersecting(t))return!0;return!1}[Zr("0x2f")](){return this.getMarkers().map((t=>t.getRange()))}[Zr("0x12")](){return this[Zr("0x2f")]()[Zr("0x11")](((t,e)=>[...t,...e.getItems()]),[])}[Zr("0x25")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Zr("0x1e")]())||null}[Zr("0x6")](){const t=this[Zr("0x2f")]();if(1!=t[Zr("0x17")])return null;const e=t[0],n=e.start[Zr("0x23")],r=e[Zr("0x5")][Zr("0x20")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0xa")](){this._onAccept(this.getRanges(),this[Zr("0x27")],this[Zr("0x9")]),this[Zr("0x30")]()}[Zr("0xb")](){this._onDiscard(this[Zr("0x2f")](),this[Zr("0x27")],this[Zr("0x9")]),this[Zr("0x30")]()}[Zr("0x10")](){const t=[];let e=this[Zr("0x3a")];for(;e;)t[Zr("0x2c")](e),e=e.next;return t}[Zr("0x13")](t,e){const n=er(this[Zr("0x9")]);Er(n,t,e),jr(n,this[Zr("0x9")])||(this[Zr("0x9")]=n,this[Zr("0x0")](n))}[Zr("0x35")](t){const e=er(this.attributes);Kr(e,t),jr(e,this.attributes)||(this[Zr("0x9")]=e,this[Zr("0x0")](this[Zr("0x9")]))}[Zr("0x33")](){return{id:this.id,type:this[Zr("0x8")]?this.type+":"+this[Zr("0x8")]:this[Zr("0x1c")],authorId:this.creator.id,createdAt:this[Zr("0x39")],hasComments:this[Zr("0x37")],data:this[Zr("0x27")],attributes:this[Zr("0x9")]}}static getMultiRangeId(){return(0,e.uid)()[Zr("0x1b")](1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({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 r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({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 r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["replace","ELEMENT_SPACE","_itemLabelsCallbacks","newValue","add","key","getDescriptions","has","isInContent","_resolveDescriptionItems","matchingCallback","elementEnd","subType","Object","EmptyContainer","item","_schema","softBreak","nodeAfter","label","_itemLabels","skip","type","checkChild","removeEmptyContainer","format","set","*Remove format:* %0","previousSibling","nextSibling","getFirstRange","removeObject","registerDescriptionCallback","addFormat","*Remove:* %0","Container","indexOf","_customCallbacks","deletion","name","length","element","$1 $2","_handleInsertRemoveSuggestionDescription","normal","start","insertion","get","_addDescriptionItems","quantity","registerElementLabel","_attributeLabels","$text","match","_locale","removeFormat","isEqual","addEmptyContainer","_handleRenameSuggestionDescription","map","addObject","$textProxy","addContainer","getItemLabel","isObject","*Insert:* %0","removeContainer","data","push","pop","text","isEmpty","_handleAttributeSuggestionDescription","getWalker","end","attribute","_handleCustomCallbackDescription","remove","join"];var ti,ei;ti=Qr,ei=225,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Qr[t-=0]};class ri{constructor(t,e){this._customCallbacks=[],this[ni("0x20")]=new Map,this[ni("0xe")]=[],this[ni("0x3f")]=new Map,this[ni("0x1c")]=t,this[ni("0x42")]=e}[ni("0x12")](t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x34")];i++){const o=t[i];if(!o[ni("0x14")])continue;const s=this._handleCustomCallbackDescription(o);if(s){if(null!=o[ni("0x18")]){if(n[ni("0x13")](o.subType))continue;n[ni("0x10")](o.subType)}e.push(s)}else if(ni("0x8")!=o[ni("0x22")])ni("0x3a")!=o.type&&ni("0x32")!=o[ni("0x22")]||this[ni("0x37")](e,o,t[i+1]);else{const t=o[ni("0x0")][ni("0x11")];if(r.has(t))continue;r.add(o[ni("0x0")][ni("0x11")]),t==Cc?this[ni("0x46")](e,o):this[ni("0x5")](e,o)}}return this[ni("0x15")](e)}[ni("0x2c")](t){this._customCallbacks[ni("0x1")](t)}[ni("0x3e")](t,n,r=e.priorities[ni("0x38")]){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:r}):this[ni("0x20")][ni("0x26")](t,n)}registerAttributeLabel(t,e){this[ni("0x3f")][ni("0x26")](t,e)}getItemLabel(t,e=1){let n;for(const e of this[ni("0xe")])if(e[ni("0x16")](t)){n=e[ni("0x1f")];break}return n||(n=this._itemLabels[ni("0x3b")](t[ni("0x33")])),n?n(e):1!==e?e+" "+t[ni("0x33")]+"s":""+t[ni("0x33")]}[ni("0x3c")](t,e){const n=e[ni("0x2a")]()[ni("0x6")](),r=ni("0x3a")==e.type?ni("0x10"):"remove";for(const e of n){const i=e[ni("0x1b")],o=t[t[ni("0x34")]-1];if(i.is(ni("0x49")))o&&o[ni("0x22")].indexOf(ni("0x2f"))>-1&&t[ni("0x2")](),o&&ni("0x3")==o[ni("0x22")]?o[r]+=i[ni("0x0")]:t[ni("0x1")]({type:ni("0x3"),add:ni("0x10")==r?i[ni("0x0")]:"",remove:ni("0xa")==r?i.data:""});else if(this[ni("0x1c")][ni("0x4c")](i)){const s=i;if(o&&o[ni("0x22")].indexOf(ni("0x2f"))>-1&&t[ni("0x2")](),ni("0x17")==e.type)continue;o&&o[ni("0x22")]==r+ni("0x19")&&o.element[ni("0x33")]==s[ni("0x33")]?o[ni("0x3d")]++:t[ni("0x1")]({type:r+ni("0x19"),element:s,quantity:1}),n[ni("0x21")]((t=>!(ni("0x17")==t.type&&t[ni("0x1b")]==i)))}else if(this[ni("0x1c")][ni("0x23")](i,ni("0x40"))||i.is(ni("0x35"),ni("0x1d"))){const n=i;if(ni("0x10")==r&&"elementStart"==e[ni("0x22")]||ni("0xa")==r&&"elementEnd"==e[ni("0x22")])continue;if(o&&-1==o[ni("0x22")][ni("0x30")]("Container")){ni("0x3")==o[ni("0x22")]&&(o[r]+="\n");continue}let s;if(s="add"==r?n[ni("0x29")]&&!this[ni("0x1c")][ni("0x4c")](n[ni("0x29")])?n.nextSibling:null:n[ni("0x28")]&&!this._schema.isObject(n[ni("0x28")])?n[ni("0x28")]:null,n[ni("0x4")]||s&&s[ni("0x4")]){const e=s&&s[ni("0x4")]?s:n;o&&o[ni("0x22")]==r+"EmptyContainer"&&o[ni("0x35")].name==e[ni("0x33")]?o.quantity++:t.push({type:r+ni("0x1a"),element:e,quantity:1})}else t[ni("0x1")]({type:r+ni("0x2f"),element:n})}}}[ni("0x15")](t){const e=this._locale,n=[],r=[],i=[];for(const o of t)switch(o[ni("0x22")]){case ni("0x3"):if(o[ni("0x10")]=o.add[ni("0xc")](/(\S)\u000A+(\S)/g,"$1 $2").replace(/\u000A/g,""),o[ni("0xa")]=o[ni("0xa")][ni("0xc")](/(\S)\u000A+(\S)/g,ni("0x36"))[ni("0xc")](/\u000A/g,""),""!=o[ni("0x10")]&&""!=o[ni("0xa")]){n[ni("0x1")]({type:ni("0xc"),content:Jr(e,"REPLACE_TEXT",['"'+o[ni("0xa")]+'"','"'+o[ni("0x10")]+'"'])});continue}if(null!=o[ni("0x10")].match(/^ +$/)){n[ni("0x1")]({type:"insertion",content:Jr(e,ni("0x4d"),Jr(e,ni("0xd"),o[ni("0x10")][ni("0x34")]))});continue}if(null!=o[ni("0xa")][ni("0x41")](/^ +$/)){n[ni("0x1")]({type:ni("0x32"),content:Jr(e,ni("0x2e"),Jr(e,"ELEMENT_SPACE",o.remove.length))});continue}if(""!=o[ni("0x10")]){n.push({type:ni("0x3a"),content:Jr(e,"*Insert:* %0",'"'+o.add+'"')});continue}n[ni("0x1")]({type:"deletion",content:Jr(e,ni("0x2e"),'"'+o[ni("0xa")]+'"')});continue;case ni("0x45"):case ni("0x48"):n[ni("0x1")]({type:ni("0x3a"),content:Jr(e,"*Insert:* %0",this[ni("0x4b")](o.element,o[ni("0x3d")]))});continue;case ni("0x24"):case ni("0x2b"):n[ni("0x1")]({type:ni("0x32"),content:Jr(e,ni("0x2e"),this[ni("0x4b")](o[ni("0x35")],o[ni("0x3d")]))});continue;case ni("0x4a"):n.push({type:ni("0x3a"),content:Jr(e,"*Split:* %0",this[ni("0x4b")](o[ni("0x35")],o[ni("0x3d")]))});continue;case ni("0x4e"):n[ni("0x1")]({type:"deletion",content:Jr(e,"*Merge:* %0",this.getItemLabel(o[ni("0x35")],o[ni("0x3d")]))});continue;case ni("0x2d"):r.push(o.key);continue;case ni("0x43"):i[ni("0x1")](o[ni("0x11")]);continue;default:n[ni("0x1")](o)}if(r[ni("0x34")]){const t=r[ni("0x47")]((t=>this[ni("0x3f")].has(t)?this[ni("0x3f")][ni("0x3b")](t):t))[ni("0xb")](", ");n.push({type:ni("0x25"),content:Jr(this[ni("0x42")],"*Set format:* %0",t)})}if(i[ni("0x34")]){const t=i.map((t=>this[ni("0x3f")][ni("0x13")](t)?this[ni("0x3f")][ni("0x3b")](t):t))[ni("0xb")](", ");n[ni("0x1")]({type:ni("0x25"),content:Jr(this[ni("0x42")],ni("0x27"),t)})}return n}[ni("0x9")](t){for(const e of this[ni("0x31")]){const n=e(t);if(n&&ni("0x22")in n)return n}}[ni("0x5")](t,e){const n=e.data,r=void 0===n[ni("0xf")]?ni("0x43"):ni("0x2d");t[ni("0x1")]({type:r,key:n[ni("0x11")]})}[ni("0x46")](t,e){t[ni("0x1")]({type:ni("0x25"),content:Jr(this[ni("0x42")],"*Change to:* %0",this[ni("0x4b")](e[ni("0x2a")]()[ni("0x39")][ni("0x1e")],1))})}[ni("0x37")](t,e,n){if(this[ni("0x3c")](t,e),n&&n[ni("0x2a")]()&&!e.getFirstRange()[ni("0x7")][ni("0x44")](n[ni("0x2a")]()[ni("0x39")])){const n=t[t[ni("0x34")]-1],r="insertion"==e[ni("0x22")]?ni("0x10"):ni("0xa");n&&ni("0x3")==n.type&&(n[r]+="\n")}}}const ii=["commands","plugins","enableCommand","showAIAssistant","afterInit","TrackChangesEditing","editor"];var oi,si;oi=ii,si=219,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x2")](){const t=this[xi("0x4")],e=t[xi("0x6")].get(xi("0x3"));t[xi("0x5")].get(xi("0x1"))&&e[xi("0x0")](xi("0x1"))}}const ci=["FORMAT_ALIGN_TO_CENTER","registerAttributeLabel","FORMAT_ALIGN_TO_LEFT","value","editor","has","_enableDefaultAttributesIntegration","FORMAT_ALIGNMENT","commandName","center","FORMAT_JUSTIFY_TEXT","plugins","commandParams","type","registerDescriptionCallback","_registerLegacyDescription","TrackChangesEditing","left","FORMAT_ALIGN_TO_RIGHT","locale","alignment","_descriptionFactory","get","*Format:* %0"];var li,ui;li=ci,ui=284,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{afterInit(){const t=this[di("0x8")],e=t[di("0x17")];if(!t[di("0xf")][di("0x9")]("AlignmentEditing"))return;const n=t[di("0xf")][di("0x2")](di("0x14"));n[di("0xa")]("alignment",[],[di("0x0")]),n[di("0x1")][di("0x5")](di("0x0"),Jr(e,di("0xb"))),this[di("0x13")]()}[di("0x13")](){const t=this[di("0x8")],e=t[di("0x17")];t.plugins.get(di("0x14"))[di("0x1")][di("0x12")]((t=>{if("formatBlock"!=t[di("0x11")])return;const{data:n}=t;if(n&&di("0x0")==n[di("0xc")]){const t=n[di("0x10")][0][di("0x7")];return{type:"format",content:Jr(e,di("0x3"),function(t){switch(t){case di("0x15"):return Jr(e,di("0x6"));case"right":return Jr(e,di("0x16"));case di("0xd"):return Jr(e,di("0x4"));case"justify":return Jr(e,di("0xe"))}}(t))}}}))}}const fi=["commandParams","_enableDefaultAttributesIntegration","type","bold","_registerLegacyDescription","FORMAT_SUBSCRIPT","format","FORMAT_BOLD","has","_descriptionFactory","forceValue","BoldEditing","FORMAT_STRIKETHROUGH","editor","SubscriptEditing","*Format:* %0","FORMAT_CODE","formatInline","toUpperCase","get","slice","CodeEditing","registerDescriptionCallback","plugins","underline","toLowerCase","FORMAT_ITALIC","ItalicEditing","commandName","StrikethroughEditing"];var hi,mi;hi=fi,mi=135,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const bi=function(t,e){return fi[t-=0]},pi=[bi("0x1a"),bi("0xc"),"UnderlineEditing",bi("0x6"),bi("0xe"),bi("0x1d"),"SuperscriptEditing"];class Ei extends t.Plugin{afterInit(){const t=this[bi("0x1c")],e=t[bi("0x8")].get("TrackChangesEditing"),n=t.locale;for(const r of pi){if(!t[bi("0x8")][bi("0x17")](r))continue;const i=r[bi("0x5")](0,-7)[bi("0xa")](),o="FORMAT_"+i[bi("0x3")]();e[bi("0x10")](i,[i]),e._descriptionFactory.registerAttributeLabel(i,Jr(n,o))}this[bi("0x13")]()}[bi("0x13")](){const t=this[bi("0x1c")],e=t.locale,n=t[bi("0x8")][bi("0x4")]("TrackChangesEditing");function r(t,r){n[bi("0x18")][bi("0x7")]((n=>{if(bi("0x2")!=n[bi("0x11")])return;const{data:i}=n;return i&&i[bi("0xd")]===t?i[bi("0xf")][0][bi("0x19")]?{type:bi("0x15"),content:Jr(e,bi("0x0"),r)}:{type:bi("0x15"),content:Jr(e,"*Remove format:* %0",r)}:void 0}))}r(bi("0x12"),Jr(e,bi("0x16"))),r("italic",Jr(e,bi("0xb"))),r(bi("0x9"),Jr(e,"FORMAT_UNDERLINE")),r("code",Jr(e,bi("0x1"))),r("strikethrough",Jr(e,bi("0x1b"))),r("subscript",Jr(e,bi("0x14"))),r("superscript",Jr(e,"FORMAT_SUPERSCRIPT"))}}const _i=["TrackChangesEditing","format","*Remove format:* %0","model","blockQuote","value","_descriptionFactory","filter","name","selection","parent","ELEMENT_BLOCK_QUOTE","commands","forceValue","plugins","change","afterInit","editor","schema","document","commandName","checkChild","*Set format:* %0","$root","from","get","getSelectedBlocks","commandParams"];var Ti,yi;Ti=_i,yi=111,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x11")](){const t=this[Ci("0x12")],e=t.locale;if(!t[Ci("0xf")].has("BlockQuoteEditing"))return;const n=t[Ci("0xf")].get(Ci("0x1")),r=this.editor[Ci("0xd")][Ci("0x1a")](Ci("0x5"));n.enableCommand(Ci("0x5"),((e,i={})=>{const o=this[Ci("0x12")].model[Ci("0x14")][Ci("0xa")],s=i&&void 0!==i[Ci("0xe")]?i[Ci("0xe")]:!r[Ci("0x6")];let x=[];if(s){const e=Array.from(o[Ci("0x1b")]()).filter((t=>ki(t)||function(t,e){const n=e.checkChild(t[Ci("0xb")],Ci("0x5")),r=e[Ci("0x16")]([Ci("0x18"),Ci("0x5")],t);return n&&r}(t,this.editor[Ci("0x4")][Ci("0x13")])));x=R(e,t[Ci("0x4")])}else{const e=Array[Ci("0x19")](o[Ci("0x1b")]())[Ci("0x8")]((t=>ki(t)));x=R(e,t[Ci("0x4")])}t.model[Ci("0x10")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ci("0x7")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ci("0x15")]){const t=Jr(e,Ci("0xc"));return n[Ci("0x0")][0].forceValue?{type:Ci("0x2"),content:Jr(e,Ci("0x17"),t)}:{type:"format",content:Jr(e,Ci("0x3"),t)}}}))}}function ki(t){return Ci("0x5")==t[Ci("0xb")][Ci("0x9")]}const Ii=["changeCaseUpper","changeCaseLower","get","has","enableCommand","plugins","afterInit","CaseChange","editor","TrackChangesEditing","changeCaseTitle"];var Si,Ri;Si=Ii,Ri=403,function(t){for(;--t;)Si.push(Si.shift())}(++Ri);const Ni=function(t,e){return Ii[t-=0]};class vi extends t.Plugin{[Ni("0xa")](){const t=this[Ni("0x1")];t[Ni("0x9")][Ni("0x7")](Ni("0x0"))&&(t[Ni("0x9")][Ni("0x6")]("TrackChangesEditing").enableCommand(Ni("0x4")),t[Ni("0x9")][Ni("0x6")](Ni("0x2"))[Ni("0x8")](Ni("0x5")),t.plugins[Ni("0x6")](Ni("0x2")).enableCommand(Ni("0x3")))}}const Li=["editor","enableCommand","plugins","ckbox","afterInit"];var Mi,wi;Mi=Li,wi=134,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x0")](){const t=this[Oi("0x1")];t.commands.get(Oi("0x4"))&&t[Oi("0x3")].get("TrackChangesEditing")[Oi("0x2")](Oi("0x4"))}}const Di=["value","from","model","codeBlock","ELEMENT_CODE_BLOCK","enableCommand","registerDescriptionCallback","blockName","toLowerCase","commandName","plugins","*Remove format:* %0","document","selection","filter","formatBlock","forceValue","markBlockFormat","getSelectedBlocks","has","parent","languages","registerElementLabel","schema","commands","commandParams","language","change","isLimit","_descriptionFactory","TrackChangesEditing","afterInit","*Set format:* %0","editor","rootElement","format","indentCodeBlock","CodeBlock","get","name"];var Bi,Pi;Bi=Di,Pi=404,function(t){for(;--t;)Bi.push(Bi.shift())}(++Pi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0x1b")](){const t=this[Ui("0x1d")];if(!t[Ui("0x6")][Ui("0xf")](Ui("0x21")))return;const e=t[Ui("0x6")][Ui("0x22")](Ui("0x1a")),n=t.locale,r=t.config.get(Ui("0x27"))[Ui("0x11")],i=t[Ui("0x14")][Ui("0x22")]("codeBlock");e[Ui("0x1")](Ui("0x20")),e[Ui("0x1")]("outdentCodeBlock"),e[Ui("0x1")](Ui("0x27"),((n,o={})=>{const s=t[Ui("0x26")],x=t[Ui("0x26")][Ui("0x8")][Ui("0x9")],a=o&&void 0!==o[Ui("0xc")]?o[Ui("0xc")]:!i[Ui("0x24")];let c;o[Ui("0x16")]||(o[Ui("0x16")]=r[0].language),c=a?Array.from(x[Ui("0xe")]()).filter((t=>{return Gi(t)||(e=t,n=s[Ui("0x13")],!e.is(Ui("0x1e"))&&!n[Ui("0x18")](e)&&n.checkChild(e[Ui("0x10")],Ui("0x27")));var e,n})):Array[Ui("0x25")](x[Ui("0xe")]())[Ui("0xa")]((t=>Gi(t)));const l=R(c,s);s[Ui("0x17")]((()=>{for(const t of l)e[Ui("0xd")](t,{commandName:"codeBlock",commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x3")})}))})),e._descriptionFactory[Ui("0x12")](Ui("0x27"),(t=>Jr(n,Ui("0x0"),t))),e[Ui("0x19")][Ui("0x2")]((t=>{if(Ui("0xb")!=t.type)return;const e=n.t,{data:i}=t;if(!i||Ui("0x27")!=i[Ui("0x5")])return;const o=i.commandParams[0][Ui("0x16")],s=e(r.find((t=>t[Ui("0x16")]===o)).label)[Ui("0x4")]();return i[Ui("0x15")][0][Ui("0xc")]?{type:Ui("0x1f"),content:Jr(n,Ui("0x1c"),Jr(n,Ui("0x0"),1)+" ("+s+")")}:{type:Ui("0x1f"),content:Jr(n,Ui("0x7"),Jr(n,"ELEMENT_CODE_BLOCK",1))}}))}}function Gi(t){return Ui("0x27")==t[Ui("0x23")]}const Vi=["CommentsEditing","get","enableCommand","afterInit","editor","plugins"];var Hi,zi;Hi=Vi,zi=221,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x4")](){const t=this[Wi("0x5")];t[Wi("0x0")].has(Wi("0x1"))&&t[Wi("0x0")][Wi("0x2")]("TrackChangesEditing")[Wi("0x3")]("addCommentThread")}}var qi=n(181);const $i=["isLimit","bindElementToMarker","markerName","insert","start","addClass","getItems","item","getWalker","get","isAtEnd","schema","hasAttribute","mapper","markerRange","getAttribute","listIndent","getCustomProperty","addHighlight","nextSibling","type","test","span","ck-suggestion-marker--active","toViewPosition","listItem","model","toViewElement","previousPosition","ck-suggestion-marker-","writer","elementEnd","push","plugins","isBlock","parent"];var Xi,Zi;Xi=$i,Zi=352,function(t){for(;--t;)Xi.push(Xi.shift())}(++Zi);const Yi=function(t,e){return $i[t-=0]};function Ji(t,e,n){const r=[];for(const i of e[Yi("0xe")]())i[Yi("0x14")](t)&&r.push(n.createRangeOn(i));return r}function Qi(t,e,{showActiveMarker:n=!0}={}){const r=t[Yi("0x5")][Yi("0x11")]("TrackChangesEditing");return(i,o,s)=>{if(!s.consumable[Yi("0x1d")](o[Yi("0x16")],i.name))return;const x=o[Yi("0x16")][Yi("0x10")](),a=o[Yi("0x16")][Yi("0xc")],c=t[Yi("0x22")][Yi("0x13")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Yi("0xf")];d=d||c.isContent(e);const n=s[Yi("0x15")][Yi("0x23")](e);if(n&&n[Yi("0x19")](Yi("0x1a")))return;Yi("0x3")==t[Yi("0x1c")]&&c[Yi("0x6")](e)&&!c[Yi("0x8")](e)&&(e[Yi("0x1b")]||a[Yi("0x12")]?l&&l[Yi("0x7")]==e||(l=e,f(t[Yi("0x0")]),g=!0):u=u||t[Yi("0x0")])}function f(t){const i=s[Yi("0x2")].createUIElement(Yi("0x1e"),{class:Yi("0x1")+e}),x=s[Yi("0x15")][Yi("0x20")](t);n&&r.activeMarkers.includes(o[Yi("0xa")])&&s[Yi("0x2")][Yi("0xd")](Yi("0x1f"),i),s[Yi("0x2")][Yi("0xb")](x,i),s[Yi("0x15")][Yi("0x9")](i,o[Yi("0xa")])}d||g||!u||f(u)}}const to=["get","enableCommand","selection","deleteForward","isCollapsed","rootName","high","unbindElementFromMarkerName","editing","unit","createRange","mapper","$graveyard","markerName","commands","markerNameToElements","start","forward","TrackChangesEditing","downcastDispatcher","uiElement","writer","model","remove","requires","data","setSelection","createSelection","enqueueChange","root","lock","editor","end","plugins","buffer","init","merge","bind","modifySelection","removeMarker:suggestion:deletion"];var eo,no;eo=to,no=210,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0xe")](){return[qi.Delete]}[ro("0x19")](){const t=this[ro("0x15")],e=t[ro("0x17")][ro("0x1e")](ro("0x8"));e.enableCommand("delete");const n=t[ro("0x4")][ro("0x1e")]("deleteForward");e[ro("0x1f")](ro("0x21"),((e,r={})=>{const i=t[ro("0xc")][ro("0x11")](t.model.document[ro("0x20")]);i[ro("0x22")]&&t[ro("0xc")][ro("0x1c")](i,{direction:ro("0x7"),unit:r[ro("0x27")]});const o=i.getFirstRange(),x=s.LiveRange.fromRange(o);let a;e(r),a=ro("0x2")==x[ro("0x13")][ro("0x23")]?t.model[ro("0x0")](o[ro("0x6")]):t[ro("0xc")][ro("0x0")](x[ro("0x6")],x[ro("0x16")]),x.detach(),t[ro("0xc")][ro("0x12")](n[ro("0x18")].batch,(t=>{n[ro("0x18")][ro("0x14")](),t[ro("0x10")](t[ro("0x0")](a[ro("0x16")])),n[ro("0x18")].unlock()}))})),t[ro("0x26")].downcastDispatcher.on("addMarker:suggestion:deletion",Qi(t,ro("0x1a")),{priority:ro("0x24")}),t[ro("0xf")].downcastDispatcher.on("addMarker:suggestion:deletion",((e,n,r)=>{r.options.showSuggestionHighlights&&Qi(t,ro("0x1a"),{showActiveMarker:!1})[ro("0x1b")](this)(e,n,r)}),{priority:"high"}),t[ro("0x26")][ro("0x9")].on(ro("0x1d"),((t,e,n)=>{const r=n.mapper[ro("0x5")](e[ro("0x3")]);if(r)for(const t of r)t.is(ro("0xa"))&&(n[ro("0x1")][ro("0x25")](t,e[ro("0x3")]),n[ro("0xb")][ro("0xd")](t))}),{priority:ro("0x24")})}}const oo=["listStart","splitListItemAfter","accept","listReversed","todoList","listStyle","*Set format:* %0","attribute","*Uncheck item*","editor","listItemId","find","*Merge:* list item","splitListItemBefore","afterInit","outdentList","ELEMENT_BULLETED_LIST","suggestion","todoListChecked","todo","previousSibling","containsItem","FORMAT_INDENT","removeMarker","*Remove format:* %0","*Format:* insert into %0","format","nodeAfter","listType","plugins","refresh","_enableDefaultAttributesIntegration","next","schema","ListEditing","*Split:* list item","isUndo","_suggestionFactory","createPositionAt","commands","type","listIndent","document","filter","isNextTo","registerPostFixer","push","head","_registerLegacyDescription","TrackChangesEditing","getFirstMarker","selection","attributeKey","*Merge:* %0","getSuggestions","from","data","TodoListEditing","execute","checkTodoList","range","bulletedList","nextSibling","*Indent:* %0","getRanges","*Format:* remove from %0","key","deletion","bulleted","isLocal","setAttribute","_supportLegacySuggestions","numbered","start","getAttribute","assureChains","config","indentList","commandName","_descriptionFactory","newValue","oldValue","groupId","getFirstRange","detach","parent","toUpperCase","meta","registerDescriptionCallback","commandParams","includes","noTrackChangesFixer","mergeListItemForward","length","getChanges","value","*Change to:* %0","ELEMENT_NUMBERED_LIST","model","numberedList","ELEMENT_","_getAttributeKey","*Check item*","list.multiBlock","attributes","ELEMENT_TODO_LIST","ELEMENT_LIST_ITEM","documentList","_findSuggestions","get","forceValue","has","mergeListItemBackward","map","fromRange","createRange","batch","*Outdent:* %0","end","locale","setSelection","listItemIdFixer","todoListCheck"];var so,xo;so=oo,xo=148,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0x70")](){const t=this[ao("0x6b")];if(!t[ao("0x4")][ao("0x56")](ao("0x9")))return;const e=t[ao("0x5e")],n=t[ao("0x4")][ao("0x54")](ao("0x18")),r=t.plugins[ao("0x56")](ao("0x20")),i=!!t[ao("0x33")][ao("0x54")](ao("0x4e"));function o(t){return{type:ao("0x1"),content:""+Jr(e,ao("0x68"),t)}}function s(t){return{type:ao("0x1"),content:""+Jr(e,ao("0x7a"),t)}}n._enableDefaultAttributesIntegration(ao("0x4a"),[],[ao("0x6c"),ao("0x3"),ao("0x10")]),n[ao("0x6")](ao("0x24")),n[ao("0x6")]("indentList"),n[ao("0x6")](ao("0x71")),n[ao("0x6")](ao("0x63")),n._enableDefaultAttributesIntegration(ao("0x6f")),i&&(n[ao("0x6")](ao("0x57")),n[ao("0x6")](ao("0x43"))),r&&(n[ao("0x6")](ao("0x66")),n[ao("0x6")](ao("0x22"),[],[ao("0x74")]),n[ao("0x36")][ao("0x3f")]((t=>{const{data:n}=t;if(n&&ao("0x74")==n.key)return{type:ao("0x1"),content:n[ao("0x37")]?Jr(e,ao("0x4d")):Jr(e,ao("0x6a"))}})),this[ao("0x6b")][ao("0x49")][ao("0x11")][ao("0x14")]((t=>{if(t[ao("0x5b")][ao("0xb")])return!1;let e=!1;const r=n.getSuggestions({skipNotAttached:!0}).filter((t=>ao("0x74")===n._getAttributeKey(t)));for(const i of r)ao("0x75")!=i[ao("0x3a")]()[ao("0x30")][ao("0x2")][ao("0x31")]("listType")&&(n[ao("0x53")](i.getFirstRange(),"attribute")[ao("0x6d")]((t=>ao("0x3")===n[ao("0x4c")](t[ao("0x73")])))||(t.removeMarker(i[ao("0x19")]()),e=!0));return e}))),n[ao("0x36")].registerAttributeLabel(ao("0x10"),Jr(e,ao("0x78")));const x={type:ao("0x1"),content:""};n[ao("0x36")][ao("0x3f")]((t=>{const{data:n}=t;if(!n||"listType"!=n[ao("0x29")])return;let r=t[ao("0x16")];for(;r;){if(r[ao("0x1f")]&&(ao("0x67")==r.data[ao("0x29")]&&(r[ao("0x1f")].newValue&&"default"!=r.data[ao("0x37")]||"default"!=r[ao("0x1f")][ao("0x38")]&&!n[ao("0x37")])||!i&&r[ao("0x1f")][ao("0x29")]==Cc))return x;r=r[ao("0x7")]}if(null==n[ao("0x37")])switch(n[ao("0x38")]){case ao("0x2b"):return s(Jr(e,ao("0x72")));case"numbered":return s(Jr(e,ao("0x48")));case"todo":return s(Jr(e,ao("0x50")))}switch(n[ao("0x37")]){case ao("0x2b"):return o(Jr(e,ao("0x72")));case ao("0x2f"):return o(Jr(e,ao("0x48")));case"todo":return o(Jr(e,ao("0x50")))}})),n._descriptionFactory[ao("0x3f")]((t=>{const{data:e}=t;if(e&&"listIndent"==e[ao("0x29")])return null==e.newValue||null==e[ao("0x38")]&&0==e.newValue?x:void 0})),n[ao("0x36")][ao("0x3f")]((t=>{if(ao("0x69")!=t[ao("0xf")])return;const{data:n}=t;if(!n||ao("0x6c")!=n[ao("0x29")])return;const r=lo(t);return r?"newValue"==r?{type:ao("0x1"),content:Jr(e,ao("0x6e"))}:ao("0x38")==r?{type:"format",content:Jr(e,ao("0xa"))}:x:x})),t[ao("0x49")][ao("0x11")][ao("0x14")]((t=>this[ao("0x60")](t))),t[ao("0x49")].document[ao("0x14")]((t=>this[ao("0x42")](t))),t[ao("0x49")][ao("0x11")].registerPostFixer((t=>this[ao("0x32")](t))),this[ao("0x2e")]()}[ao("0x60")](t){if(t[ao("0x5b")][ao("0xb")]||!t[ao("0x5b")][ao("0x2c")])return!1;let e=!1;const n=this[ao("0x6b")][ao("0x4")][ao("0x54")](ao("0x18"))[ao("0x1d")]({skipNotAttached:!0})[ao("0x12")]((t=>t[ao("0x1f")]&&ao("0x6c")==t[ao("0x1f")][ao("0x29")]))[ao("0x12")]((t=>t[ao("0x1f")][ao("0x37")]&&t.data[ao("0x38")]));for(const r of n)lo(r)||(t[ao("0x79")](r[ao("0x19")]()),e=!0);return e}noTrackChangesFixer(t){if(t[ao("0x5b")][ao("0xb")]||!t[ao("0x5b")][ao("0x2c")])return!1;const e=this[ao("0x6b")][ao("0x4")].get(ao("0x18"));if(e.trackChangesCommand[ao("0x46")])return!1;let n=!1;const r=[ao("0x3"),ao("0x67"),ao("0x6c"),ao("0x10"),"listStart",ao("0x65"),ao("0x61")],i=this[ao("0x6b")][ao("0x49")].document.differ[ao("0x45")]().filter((t=>ao("0x69")==t.type)).filter((t=>r[ao("0x41")](t[ao("0x1b")])));if(0==i[ao("0x44")])return n;for(const o of i){const i=e[ao("0x53")](o[ao("0x23")],ao("0x69"))[ao("0x12")]((t=>!t[ao("0x3e")][ao("0x13")])).map((t=>t[ao("0x73")]))[ao("0x12")]((t=>{const n=e._getAttributeKey(t);return r[ao("0x41")](n)}));if(i[ao("0x44")]){for(const e of i)t.removeMarker(e.getFirstMarker());n=!0}}return n}assureChains(t){if(t.batch.isUndo||!t.batch[ao("0x2c")])return!1;const e=this[ao("0x6b")][ao("0x4")][ao("0x54")]("TrackChangesEditing");let n=!1;const r=[ao("0x3"),"listStyle","listItemId",ao("0x10"),ao("0x62"),ao("0x65"),"todoListCheck"];for(const t of e.getSuggestions({skipNotAttached:!0})){const i=e[ao("0x53")](t[ao("0x3a")](),ao("0x69"))[ao("0x58")]((t=>t[ao("0x73")]))[ao("0x12")]((t=>t[ao("0x1f")]&&r.includes(t[ao("0x1f")][ao("0x29")])));if(!i.length)continue;const s=i[0][ao("0x16")][ao("0x4f")].groupId;if(!i.every((t=>t[ao("0x4f")].groupId===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e.getSuggestions({skipNotAttached:!0}).filter((e=>"attribute"==e[ao("0xf")]&&e[ao("0x4f")][ao("0x39")]==t)))r[ao("0x2d")](ao("0x39"),n)}function o(t,e){let n=t[ao("0x16")],r=!1;for(;n;)n[ao("0x4f")].groupId!=e&&(i(n[ao("0x4f")].groupId,e),n.setAttribute(ao("0x39"),e),r=!0),n=n[ao("0x7")];return r}}[ao("0x2e")](){const t=this[ao("0x6b")],e=t[ao("0x5e")],n=t[ao("0x4")][ao("0x54")](ao("0x18"));this[ao("0x17")](),n[ao("0xc")].registerCustomCallback("formatBlock",ao("0x52"),ao("0x64"),(function(e,n){const r=[];for(let n of e)n[ao("0x30")][ao("0x2")]===n[ao("0x5d")][ao("0x3c")]&&(n=t[ao("0x49")][ao("0x5a")](t.model[ao("0xd")](n[ao("0x30")][ao("0x2")],0))),r.push(n);t[ao("0x49")].change((e=>{const i=t[ao("0x49")][ao("0x11")][ao("0x1a")],o=Array[ao("0x1e")](i[ao("0x27")]())[ao("0x58")]((t=>s.LiveRange[ao("0x59")](t)));e[ao("0x5f")](r),t.commands.get(n[ao("0x35")])[ao("0x5")](),n[ao("0x40")][ao("0x15")]({forceDefaultExecution:!0}),t[ao("0x21")](n[ao("0x35")],...n[ao("0x40")]),e.setSelection(o);for(const t of o)t[ao("0x3b")]()}))})),n._descriptionFactory.registerElementLabel((function(e){const n=!t[ao("0x49")][ao("0x8")].isObject(e),r=e[ao("0x76")],i=e.nextSibling,o=e[ao("0x31")](ao("0x6c")),s=!r||r[ao("0x31")](ao("0x6c"))!==o,x=!i||i[ao("0x31")](ao("0x6c"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t)))}[ao("0x17")](){const t=this[ao("0x6b")],e=t[ao("0x5e")];function n(e){const n=t[ao("0xe")].get("bulletedList")[ao("0x46")],r=t[ao("0xe")][ao("0x54")](ao("0x4a"))[ao("0x46")];return ao("0x4a")===e?n:r}t[ao("0x4")][ao("0x54")](ao("0x18"))._descriptionFactory[ao("0x3f")]((function(r){if("formatBlock"!=r[ao("0xf")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i[ao("0x35")]){case"bulletedList":x=i[ao("0x40")][0][ao("0x55")],a=n(i.commandName),o=x?"*Format:* insert into %0":"*Format:* remove from %0",!a&&t[ao("0x33")][ao("0x54")]("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x1"),content:Jr(e,o,Jr(e,"ELEMENT_BULLETED_LIST"))};break;case ao("0x4a"):x=i[ao("0x40")][0][ao("0x55")],a=n(i[ao("0x35")]),o=ao(x?"0x0":"0x28"),!a&&t.config[ao("0x54")](ao("0x4e"))||(o=ao("0x47")),s={type:ao("0x1"),content:Jr(e,o,Jr(e,ao("0x48")))};break;case ao("0x34"):o=ao("0x26"),s={type:ao("0x1"),content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))};break;case ao("0x71"):o=function(t){const e=t[ao("0x3a")]();let n=e[ao("0x30")].nodeAfter;for(;n&&e[ao("0x77")](n);){if(n[ao("0x31")](ao("0x10"))>0)return!1;n=n[ao("0x25")]}return!0}(r)?Jr(e,ao("0x28"),Jr(e,(c=r,ao("0x4b")+c[ao("0x3a")]().start[ao("0x2")].getAttribute(ao("0x3"))[ao("0x3d")]()+"_LIST"))):Jr(e,ao("0x5c"),Jr(e,ao("0x51"))),s={type:ao("0x1"),content:o};break;case ao("0x57"):case ao("0x43"):!1===i.multipleBlocks&&(o=ao("0x1c"),s={type:ao("0x2a"),content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function lo(t){let e=t[ao("0x3a")]()[ao("0x30")][ao("0x2")][ao("0x76")];for(;e;){const n=e.getAttribute(ao("0x6c"));if(!n)return!1;if(n==t.data[ao("0x37")])return ao("0x37");if(n==t.data[ao("0x38")])return"oldValue";e=e[ao("0x76")]}return!1}const uo=["commandParams","attribute","TrackChangesEditing","listType","numbered","start","editor","bulleted","disc","next","nodeAfter","newValue","listStart","getAttribute","isUndo","formatBlock","locale","_registerLegacyDescription","registerPostFixer","model","listReversed","default","bind","config","decimal","getSuggestions","has","key","afterInit","oldValue","registerDescriptionCallback","*Format:* set order to regular","lower-latin","*Remove format:* %0","commandName","*Set format:* %0","startIndex","suggestion","plugins","upper-roman","upper-latin","handleDescriptions","square","head","lower-roman","type","styles","document","_descriptionFactory","_getTranslationKeyForListStyle","_LIST_DEFAULT","FORMAT_LIST_REVERSED","getFirstRange","toUpperCase","registerAttributeLabel","batch","data","find","includes","replace","ELEMENT_","decimal-leading-zero","*Change to:* %0","_getAttributeKey","format","listStyle","*Format:* set start index to %0","get","_enableDefaultAttributesIntegration"];var go,fo;go=uo,fo=119,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x2f")](){if(!this[ho("0x19")][ho("0x39")][ho("0x2d")]("ListPropertiesEditing"))return;const t=this.editor[ho("0x2a")][ho("0x11")]("list.properties"),e=this[ho("0x19")][ho("0x39")][ho("0x11")](ho("0x15"));t[ho("0x41")]&&e[ho("0x12")]("listStyle",[],[ho("0xf")]),t.reversed&&e[ho("0x12")](ho("0x27"),[],[ho("0x27")]),t[ho("0x37")]&&e[ho("0x12")]("listStart",[],[ho("0x1f")]);const n={type:"format",content:""};e[ho("0x43")][ho("0x31")](this[ho("0x3c")][ho("0x29")](this));const r=this[ho("0x19")].locale;e[ho("0x43")][ho("0x4")]("listReversed",Jr(r,ho("0x1"))),e[ho("0x43")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"listReversed"==e[ho("0x2e")])return null==e[ho("0x1e")]||0==e[ho("0x1e")]&&null==e.oldValue?n:void 0})),e[ho("0x43")].registerAttributeLabel(ho("0x1f"),Jr(r,"FORMAT_LIST_START")),e[ho("0x43")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&ho("0x1f")==e[ho("0x2e")])return null==e[ho("0x1e")]||1==e.newValue&&null==e.oldValue?n:void 0})),this[ho("0x19")][ho("0x26")][ho("0x42")][ho("0x25")]((t=>{if(t[ho("0x5")][ho("0x21")])return!1;let n=!1;const r=e[ho("0x2c")]({skipNotAttached:!0}).filter((t=>{const n=e._getAttributeKey(t);return ho("0x1f")==n||ho("0x27")==n}));for(const i of r)ho("0x17")!=i[ho("0x2")]()[ho("0x18")].nodeAfter.getAttribute(ho("0x16"))&&(e._findSuggestions(i[ho("0x2")](),ho("0x14"))[ho("0x7")]((t=>"listType"==e[ho("0xd")](t[ho("0x38")])))||(t.removeMarker(i.getFirstMarker()),n=!0));return n})),this[ho("0x24")]()}[ho("0x3c")](t){const e=this[ho("0x19")][ho("0x23")],{data:n}=t,r={type:ho("0xe"),content:""};if(!n||"listStyle"!=n.key)return;if(!n[ho("0x30")])return ho("0x28")==n[ho("0x1e")]?r:{type:"format",content:""+Jr(e,ho("0x36"),Jr(e,this[ho("0x44")](n[ho("0x1e")])))};if(!n[ho("0x1e")]){if(ho("0x28")==n[ho("0x30")])return r;let i=t.head;for(;i;){if(i[ho("0x6")]&&ho("0x16")==i[ho("0x6")].key&&i[ho("0x6")][ho("0x1e")])return r;i=i[ho("0x1c")]}return{type:ho("0xe"),content:""+Jr(e,ho("0x34"),Jr(e,this[ho("0x44")](n[ho("0x30")])))}}if(ho("0x28")!=n.newValue)return{type:ho("0xe"),content:""+Jr(e,ho("0x36"),Jr(e,this[ho("0x44")](n.newValue)))};let i=t[ho("0x3e")];for(;i;){if(i.data&&ho("0x16")==i[ho("0x6")][ho("0x2e")]&&i.data[ho("0x1e")]&&i[ho("0x6")][ho("0x30")])return r;i=i[ho("0x1c")]}const o=t[ho("0x2")]()[ho("0x18")][ho("0x1d")][ho("0x20")](ho("0x16"));return{type:ho("0xe"),content:Jr(e,ho("0x36"),Jr(e,"ELEMENT_"+o.toUpperCase()+ho("0x0")))}}_registerLegacyDescription(){const t=this[ho("0x19")],e=t[ho("0x23")];t[ho("0x39")][ho("0x11")](ho("0x15"))._descriptionFactory[ho("0x31")]((t=>{if(ho("0x22")!=t[ho("0x40")])return;const{data:n}=t;if(!n)return;let r,i;switch(n[ho("0x35")]){case ho("0xf"):r=ho("0xc"),i={type:"format",content:Jr(e,r,Jr(e,this[ho("0x44")](n[ho("0x13")][0][ho("0x40")])))};break;case ho("0x27"):r=n[ho("0x13")][0].reversed?"*Format:* set order to reversed":ho("0x32"),i={type:ho("0xe"),content:Jr(e,r)};break;case ho("0x1f"):r=ho("0x10"),i={type:ho("0xe"),content:Jr(e,r,n[ho("0x13")][0][ho("0x37")])}}return i}))}_getTranslationKeyForListStyle(t){return ho("0xa")+(e=t,bo[ho("0x8")](e)?ho("0x1a"):po[ho("0x8")](e)?ho("0x17"):null)[ho("0x3")]()+"_LIST_"+t.toUpperCase()[ho("0x9")](/-/g,"_");var e}}const bo=[ho("0x1b"),"circle",ho("0x3d")],po=[ho("0x2b"),ho("0xb"),ho("0x3f"),ho("0x3a"),ho("0x33"),ho("0x3b")];var Eo=n(331);const _o=["markerName","downcastDispatcher","end","createRange","enableCommand","get","document","options","fromRange","showSuggestionHighlights","data","createPositionAt","writer","high","init","model","TrackChangesEditing","ck-suggestion-marker-split","addMarker:suggestion:insertion","detach","editing","removeMarker:suggestion:insertion","mapper","editor","plugins","requires","split","commands","unbindElementFromMarkerName"];var To,yo;To=_o,yo=195,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get[Co("0x4")](){return[Eo.Enter]}[Co("0x16")](){const t=this[Co("0x2")],e=t[Co("0x3")][Co("0xd")](Co("0x18")),n=t[Co("0x6")][Co("0xd")]("enter");e[Co("0xc")]("enter",(()=>{t[Co("0x17")].change((r=>{const i=t[Co("0x17")][Co("0xe")].selection,o=i.getFirstPosition(),x=s.LiveRange[Co("0x10")](i.getFirstRange());if(n.enterBlock(r)){const n=t[Co("0x17")][Co("0x13")](o.parent.nextSibling,0),i=r[Co("0xb")](o,n);e.markInsertion(i)}else r.setSelection(r.createRange(x[Co("0xa")]));x[Co("0x1b")](),n.fire("afterExecute",{writer:r})}))})),t[Co("0x1c")][Co("0x9")].on(Co("0x1a"),Qi(t,Co("0x5")),{priority:Co("0x15")}),t.editing[Co("0x9")].on(Co("0x0"),((t,e,n)=>{const r=n[Co("0x1")].markerNameToElements(e.markerName);if(r)for(const t of r)t.hasClass(Co("0x19"))&&(n[Co("0x1")][Co("0x7")](t,e[Co("0x8")]),n[Co("0x14")].remove(t))}),{priority:Co("0x15")}),t[Co("0x12")][Co("0x9")].on(Co("0x1a"),((e,n,r)=>{r[Co("0xf")][Co("0x11")]&&Qi(t,"split",{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:"high"})}}const ko=["getMarkersGroup","replaceAll","bind","suggestion:deletion","handleFindCommand","replace","start","plugins","getRange","_isInDeletionRange","editor","TrackChangesEditing","model","findNext","filter","findByTextCallback","find","afterInit","markers","enableCommand","getIntersection","end","item","createPositionAt","createRange","FindAndReplaceUtils","get","FindAndReplaceEditing"];var Io,So;Io=ko,So=336,function(t){for(;--t;)Io.push(Io.shift())}(++So);const Ro=function(t,e){return ko[t-=0]};class No extends t.Plugin{[Ro("0x11")](){if(!this[Ro("0xa")][Ro("0x7")].has(Ro("0x1b")))return;const t=this[Ro("0xa")][Ro("0x7")].get(Ro("0xb"));t[Ro("0x13")](Ro("0x10"),this[Ro("0x4")][Ro("0x2")](this)),t.enableCommand(Ro("0xd")),t[Ro("0x13")]("findPrevious"),t[Ro("0x13")](Ro("0x5")),t[Ro("0x13")](Ro("0x1"))}handleFindCommand(t,e,n={}){const r=this[Ro("0xa")][Ro("0x7")][Ro("0x1a")](Ro("0x19"));return t((t=>("string"==typeof e?r[Ro("0xf")](e,n):e)(t)[Ro("0xe")]((e=>!1===this._isInDeletionRange(e,t[Ro("0x16")])))),n)}[Ro("0x9")](t,e){const n=this[Ro("0xa")][Ro("0xc")][Ro("0x18")](this.editor.model[Ro("0x17")](e,t[Ro("0x6")]),this.editor[Ro("0xc")][Ro("0x17")](e,t[Ro("0x15")]));for(const t of this.editor[Ro("0xc")][Ro("0x12")][Ro("0x0")](Ro("0x3")))if(null!==n[Ro("0x14")](t[Ro("0x8")]()))return!0;return!1}}const vo=["get","config","FontColorEditing","commandName","*Reset font size*","locale","*Set font size:* %0","fontSize.options","*Reset font family*","fontBackgroundColor.colors","afterInit","model","fontSize","editor","fontColor","FontSizeEditing","title","*Reset font background color*","*Set font color:* %0","fontColor.colors","trim","*Set font family:* %0","_registerLegacyDescription","FontSize","fontFamily","type","registerAttributeLabel","FontBackgroundColorEditing","value","find","commandParams","fontBackgroundColor","_descriptionFactory","_enableDefaultAttributesIntegration","FontFamilyEditing","label","plugins","formatInline","TrackChangesEditing","format","toLowerCase","FORMAT_FONT_COLOR"];var Lo,Mo;Lo=vo,Mo=446,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return vo[t-=0]},Oo=[{pluginName:wo("0x1f"),commandName:"fontSize"},{pluginName:wo("0x8"),commandName:wo("0x28")},{pluginName:wo("0x12"),commandName:wo("0x1e")},{pluginName:wo("0x1"),commandName:wo("0x5")}];class Fo extends t.Plugin{[wo("0x1a")](){const t=this[wo("0x1d")][wo("0x15")],e=this.editor.plugins[wo("0x10")]("TrackChangesEditing");for(const{pluginName:t,commandName:n}of Oo)this.editor[wo("0xa")].has(t)&&e[wo("0x7")](n,[n]);t.t,e[wo("0x6")].registerAttributeLabel(wo("0x1c"),Jr(t,"FORMAT_FONT_SIZE")),e[wo("0x6")][wo("0x0")]("fontFamily",Jr(t,"FORMAT_FONT_FAMILY")),e[wo("0x6")][wo("0x0")](wo("0x1e"),Jr(t,wo("0xf"))),e[wo("0x6")][wo("0x0")](wo("0x5"),Jr(t,"FORMAT_FONT_BACKGROUND")),this[wo("0x26")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t[wo("0xa")].get(wo("0xc"))._descriptionFactory.registerDescriptionCallback((t=>{const n=e.t;if(wo("0xb")!=t[wo("0x29")])return;const{data:r}=t;if(null!=r){if("fontSize"==r[wo("0x13")]){const t=r[wo("0x4")][0][wo("0x2")];if(t){const r=n(this[wo("0x1d")][wo("0xa")][wo("0x10")](wo("0x27")).normalizeSizeOptions(this[wo("0x1d")].config[wo("0x10")](wo("0x17"))).find((e=>e[wo("0x1b")]==t))[wo("0x20")])[wo("0xe")]();return{type:wo("0xd"),content:Jr(e,wo("0x16"),r)}}return{type:wo("0xd"),content:Jr(e,wo("0x14"))}}if(wo("0x28")==r[wo("0x13")]){const t=r[wo("0x4")][0].value;return t?{type:wo("0xd"),content:Jr(e,wo("0x25"),t)}:{type:wo("0xd"),content:Jr(e,wo("0x18"))}}if(wo("0x1e")==r[wo("0x13")]){const t=r[wo("0x4")][0][wo("0x2")];if(t){const r=(0,i.normalizeColorOptions)(this[wo("0x1d")][wo("0x11")].get(wo("0x23")))[wo("0x3")]((e=>e[wo("0x1b")]==t));let o=t,s="";return r&&(o=r[wo("0x9")],s=n(o)[wo("0xe")]()),{type:wo("0xd"),content:Jr(e,wo("0x22"),s)[wo("0x24")](),color:{value:t,title:s||o}}}return{type:"format",content:Jr(e,"*Reset font color*")}}if(wo("0x5")==r.commandName){const t=r[wo("0x4")][0][wo("0x2")];if(t){const r=(0,i.normalizeColorOptions)(this[wo("0x1d")][wo("0x11")].get(wo("0x19")))[wo("0x3")]((e=>e.model==t));let o=t,s="";return r&&(o=r[wo("0x9")],s=n(o)[wo("0xe")]()),{type:wo("0xd"),content:Jr(e,"*Set font background color:* %0",s)[wo("0x24")](),color:{value:t,title:s||o}}}return{type:wo("0xd"),content:Jr(e,wo("0x21"))}}}}))}}const Do=["*Remove all formatting*","_registerLegacyDescription","config","enableCommand","fontBackgroundColor","FontSize","_enableDefaultAttributesIntegration","commandParams","pasteFormat","get","fontColor","charAt","type","toLowerCase","registerDescriptionCallback","boolean","_descriptionFactory","locale","normalizeSizeOptions","format","join","title","formatBlock","plugins","toUpperCase","*Set format to:* %0","model","commands","split","push","copyFormat","TrackChangesEditing","afterInit","find","editor"];var Bo,Po;Bo=Do,Po=212,function(t){for(;--t;)Bo.push(Bo.shift())}(++Po);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{[Uo("0x1e")](){const t=this[Uo("0x20")],e=t.plugins.get(Uo("0x1d")),n=t[Uo("0x19")][Uo("0x7")](Uo("0x1c")),r=t.commands[Uo("0x7")](Uo("0x6"));n&&r&&(e[Uo("0x4")](Uo("0x6")),e[Uo("0x1")]("copyFormat"),this[Uo("0x22")]())}[Uo("0x22")](){const t=this[Uo("0x20")],e=t[Uo("0xf")];t[Uo("0x15")][Uo("0x7")](Uo("0x1d"))[Uo("0xe")][Uo("0xc")]((n=>{if(Uo("0x14")!=n[Uo("0xa")]&&"formatInline"!=n[Uo("0xa")])return;const{data:r}=n;if(r&&Uo("0x6")===r.commandName){const n=[],i=r[Uo("0x5")][0];for(const[e,r]of Object.entries(i))n[Uo("0x1b")](Go(t,e,r));return n.length?{type:"format",content:Jr(e,Uo("0x17"),n[Uo("0x12")](", "))}:{type:Uo("0x11"),content:Jr(e,Uo("0x21"))}}}))}}function Go(t,e,n){const r=t[Uo("0xf")].t,o=e[Uo("0x1a")](/(?=[A-Z])/)[Uo("0x12")](" "),s=r(o[Uo("0x9")](0)[Uo("0x16")]()+o.slice(1))[Uo("0xb")]();if(Uo("0xd")==typeof n)return s;if(Uo("0x8")===e||Uo("0x2")===e){const e=(0,i.normalizeColorOptions)(t[Uo("0x0")][Uo("0x7")]("fontColor.colors"))[Uo("0x1f")]((t=>t[Uo("0x18")]==n));return s+" ("+(e?r(e.label)[Uo("0xb")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Uo("0x15")][Uo("0x7")](Uo("0x3"))[Uo("0x10")](t[Uo("0x0")].get("fontSize.options"))[Uo("0x1f")]((t=>t.model==n));return s+" ("+(e?r(e[Uo("0x13")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Vo=["formatBlock","value","commandParams","_getHeadingLevel","heading","paragraph","locale","heading.options","ELEMENT_HEADING","plugins","_headingOptions","*Change to:* %0","_descriptionFactory","_registerLegacyDescription","title","afterInit","name","match","format","view","registerElementLabel","model","config","find","registerDescriptionCallback","get","ELEMENT_HEADING_CUSTOM","editor","TrackChangesEditing","has"];var Ho,zo;Ho=Vo,zo=352,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0x17")](){const t=this[Wo("0x5")];if(!t[Wo("0x11")][Wo("0x7")]("HeadingEditing"))return;this[Wo("0x12")]=t[Wo("0x0")][Wo("0x3")](Wo("0xf"));const e=t.locale,n=t[Wo("0x11")][Wo("0x3")](Wo("0x6"));n._enableDefaultAttributesIntegration(Wo("0xc"));for(const t of this[Wo("0x12")])Wo("0xd")!=t[Wo("0x1d")]&&n[Wo("0x14")][Wo("0x1c")](t[Wo("0x1d")],(n=>{const r=this[Wo("0xb")](t[Wo("0x1d")]);return null!==r?(s=n,x=r,Jr(e,Wo("0x10"),[s,x])):(i=n,o=t.title,Jr(e,Wo("0x4"),[i,o]));var i,o,s,x}));this[Wo("0x15")]()}[Wo("0x15")](){const t=this.editor,e=t[Wo("0xe")];t.plugins[Wo("0x3")](Wo("0x6"))[Wo("0x14")][Wo("0x2")]((t=>{if(Wo("0x8")!=t.type)return;const{data:n}=t;if(n&&Wo("0xc")==n.commandName){const t=n[Wo("0xa")][0][Wo("0x9")],s=this[Wo("0xb")](t);if(null!==s)return{type:Wo("0x1a"),content:Jr(e,Wo("0x13"),(1,o=s,Jr(e,Wo("0x10"),[1,o])))};const x=this[Wo("0x12")][Wo("0x1")]((e=>e[Wo("0x1d")]===t))[Wo("0x16")];return{type:"format",content:Jr(e,"*Change to:* %0",(r=1,i=x,Jr(e,"ELEMENT_HEADING_CUSTOM",[r,i])))}}var r,i,o}))}_getHeadingLevel(t){var e,n;const r=t[Wo("0x19")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e[Wo("0x1")]((e=>e[Wo("0x1d")]==t));if(i&&i.view){const t=i[Wo("0x1b")],e=(null!==(n=t[Wo("0x18")])&&void 0!==n?n:t)[Wo("0x19")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["get","commandName","registerAttributeLabel","*Set highlight:* %0","plugins","model","find","formatInline","value","afterInit","_registerLegacyDescription","TrackChangesEditing","color","registerDescriptionCallback","FORMAT_HIGHLIGHT","highlight.options","title","toLowerCase","format","HighlightEditing","_descriptionFactory","*Remove highlight*","highlight","type","editor","has","commandParams","locale"];var $o,Xo;$o=qo,Xo=272,function(t){for(;--t;)$o.push($o.shift())}(++Xo);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0x11")](){const t=this[Zo("0x4")];if(!t[Zo("0xc")][Zo("0x5")](Zo("0x1b")))return;const e=t[Zo("0xc")][Zo("0x8")](Zo("0x13")),n=t[Zo("0x7")];e._enableDefaultAttributesIntegration(Zo("0x2"),[Zo("0x2")]),e[Zo("0x0")][Zo("0xa")](Zo("0x2"),Jr(n,Zo("0x16"))),this[Zo("0x12")]()}[Zo("0x12")](){const t=this[Zo("0x4")],e=t[Zo("0x7")];t[Zo("0xc")].get(Zo("0x13"))[Zo("0x0")][Zo("0x15")]((n=>{if(Zo("0xf")!=n[Zo("0x3")])return;const{data:r}=n;if(r&&Zo("0x2")==r[Zo("0x9")]){const n=e.t,i=r[Zo("0x6")][0][Zo("0x10")];if(i){const r=t.config[Zo("0x8")](Zo("0x17"))[Zo("0xe")]((t=>t[Zo("0xd")]==i)),o=n(r[Zo("0x18")])[Zo("0x19")]();return{type:Zo("0x1a"),content:Jr(e,Zo("0xb"),o),color:{value:r[Zo("0x14")],title:r[Zo("0x18")]}}}return{type:Zo("0x1a"),content:Jr(e,Zo("0x1"),Jr(e,"FORMAT_HIGHLIGHT"))}}}))}}const Jo=["ck-horizontal-line","get","enableCommand","conversion","insert","addClass","div","createPositionAt","TrackChangesEditing","_descriptionFactory","HorizontalLineEditing","plugins","showSuggestionHighlights","elementToStructure","registerElementLabel","locale","editor","has","horizontalLine"];var Qo,ts;Qo=Jo,ts=110,function(t){for(;--t;)Qo.push(Qo.shift())}(++ts);const es=function(t,e){return Jo[t-=0]};class ns extends t.Plugin{afterInit(){const t=this[es("0x1")];if(!t.plugins[es("0x2")](es("0xe")))return;t[es("0xf")][es("0x5")](es("0xc"))[es("0x6")]("horizontalLine");const e=t[es("0xf")][es("0x5")](es("0xc")),n=t[es("0x0")];e[es("0xd")][es("0x12")](es("0x3"),(t=>Jr(n,"ELEMENT_HORIZONTAL_LINE",t))),t[es("0x7")].for("dataDowncast")[es("0x11")]({model:es("0x3"),view:(t,{writer:e,options:n})=>{if(!n[es("0x10")])return null;const r=e.createContainerElement(es("0xa")),i=e.createEmptyElement("hr");return e[es("0x9")](es("0x4"),r),e[es("0x8")](e[es("0xb")](r,0),i),r},converterPriority:"high"})}}const rs=["_enableDefaultAttributesIntegration","attribute","commandName","editor","value","locale","_descriptionFactory","getFirstRange","plugins","start","formatBlock","registerDescriptionCallback","format","nodeAfter","*Change %0 content*","has","get","key","type","rawHtml","ELEMENT_HTML_EMBED","HtmlEmbed","element","htmlEmbed","TrackChangesEditing","_registerLegacyDescription"];var is,os;is=rs,os=363,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{afterInit(){const t=this[ss("0x4")];if(!t[ss("0x9")][ss("0x10")](ss("0x16")))return;const e=t[ss("0x9")].get(ss("0x19")),n=t.locale;e[ss("0x7")].registerElementLabel(ss("0x14"),(t=>Jr(n,ss("0x15"),t))),e[ss("0x1")](ss("0x18"),[],[ss("0x5")]),e[ss("0x7")][ss("0xc")]((t=>{if(ss("0x2")!=t[ss("0x13")])return;const{data:e}=t;if(e&&"value"==e[ss("0x12")]&&t[ss("0x8")]()[ss("0xa")][ss("0xe")].is(ss("0x17"),ss("0x14"))){const t=Jr(n,ss("0x15"));return{type:ss("0xd"),content:Jr(n,ss("0xf"),t)}}})),this._registerLegacyDescription()}[ss("0x0")](){const t=this[ss("0x4")],e=t[ss("0x6")];t[ss("0x9")][ss("0x11")](ss("0x19"))._descriptionFactory[ss("0xc")]((t=>{if(ss("0xb")!=t.type)return;const{data:n}=t;if(n&&ss("0x18")==n[ss("0x3")]){const t=Jr(e,ss("0x15"));return{type:ss("0xd"),content:Jr(e,ss("0xf"),t)}}}))}}const as=["ImageResize","ELEMENT_CAPTION","filter","change","ELEMENT_INLINE_IMAGE","isBefore","forward","createRangeOn","chain","format","imageTypeBlock","type","ImageUploadEditing","insertImage","backward","plugins","start","key","document","getClosestSelectedImageElement","resizedWidth","get","subType","findIndex","formatBlock","nodeBefore","TrackChangesEditing","FORMAT_IMAGE_SIZE","isCollapsed","model","_suggestionFactory","imageCaption","*Reset image width*","ImageTextAlternativeEditing","markBlockFormat","resizeImage","_enableDefaultAttributesIntegration","discard","newValue","schema","createRange","fromPosition","has","imageTypeInline","editor","removeObject","getCaptionFromImageModelElement","isIntersecting","uploadImage","formatInline","width","isOwn","accept","imageBlock","Inline image to block image","detach","addObject","insertion","deletion","imageTextAlternative","locale","selection","*Remove image text alternative*","commandParams","toNext","join","ImageCaptionUtils","Block image to inline image","_descriptionFactory","getSuggestionCallback","registerCustomCallback","registerDescriptionCallback","ELEMENT_IMAGE","previous","attribute","afterInit","isEqual","markInsertion","registerElementLabel","caption","convertInlineImageToBlock","commandName","_registerLegacyDescription","toPrevious","ImageUtils","toggleImageCaption","markDeletion","end","isBlockImage","*Set image text alternative:* %0","getContainedElement","alt","enableCommand","ImageEditing","_findSuggestions","convertBlockImageToInline","length"];var cs,ls;cs=as,ls=250,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x13")](){const t=this[us("0x55")];if(!t[us("0x38")][us("0x53")](us("0x25")))return;const e=t.plugins[us("0x3e")]("TrackChangesEditing"),n=t[us("0x38")].get(us("0x1c")),r=t.locale;e.enableCommand(us("0x36")),e._descriptionFactory[us("0x16")](us("0x5e"),(t=>Jr(r,us("0x10"),t))),e[us("0xc")][us("0x16")]("imageInline",(t=>Jr(r,us("0x2d"),t))),e._descriptionFactory[us("0x16")](us("0x17"),(()=>Jr(r,us("0x2a")))),t.plugins[us("0x53")](us("0x35"))&&e[us("0x24")](us("0x59")),t[us("0x38")][us("0x53")]("ImageBlockEditing")&&t.plugins[us("0x53")]("ImageInlineEditing")&&(e.enableCommand("imageTypeInline",((r,i)=>{const o=n[us("0x3c")](t[us("0x46")][us("0x3b")][us("0x5")]);t.model[us("0x2c")]((()=>{e[us("0x4b")](o,{commandName:"imageTypeInline",commandParams:[i]},[],us("0x27"))}))})),e[us("0x24")](us("0x33"),((r,i)=>{t[us("0x46")][us("0x2c")]((o=>{let x=n[us("0x3c")](t[us("0x46")][us("0x3b")][us("0x5")]),a=o[us("0x30")](x);const c=s.LivePosition[us("0x52")](a[us("0x39")],us("0x1b")),l=s.LivePosition[us("0x52")](a[us("0x1f")],us("0x8"));e.forceDefaultExecution((()=>r(i))),x=n[us("0x3c")](t[us("0x46")].document[us("0x5")]),a=o[us("0x30")](x);const u=o[us("0x51")](c,l);c[us("0x60")](),l[us("0x60")](),e[us("0x4b")](x,{commandName:us("0x54"),commandParams:[i]},[],us("0x18")),u[us("0x39")][us("0x2e")](a[us("0x39")])&&e[us("0x15")](o[us("0x51")](u.start,a[us("0x39")]),"convertInlineImageToBlock"),a[us("0x1f")].isBefore(u.end)&&e.markInsertion(o[us("0x51")](a.end,u[us("0x1f")]),us("0x18"))}))})),e._suggestionFactory[us("0xe")](us("0x41"),us("0x18"),"join",(()=>!1)),e._suggestionFactory[us("0xe")](us("0x41"),"convertInlineImageToBlock","accept",(()=>!1)),e._suggestionFactory[us("0xe")]("formatBlock",us("0x18"),us("0x4e"),e[us("0x47")][us("0xd")](us("0x41"),"",us("0x5d"))),e._suggestionFactory[us("0xe")](us("0x1"),"convertInlineImageToBlock",us("0x9"),(()=>!1)),e[us("0x47")][us("0xe")]("insertion",us("0x18"),"discard",(([n])=>{const r=e[us("0x47")].getSuggestionCallback(us("0x1"),"",us("0x4e"));let i=n[us("0x39")],o=n[us("0x1f")];const s=t[us("0x46")][us("0x50")].getNearestSelectionRange(i,us("0x37")),x=t[us("0x46")][us("0x50")].getNearestSelectionRange(o,us("0x2f"));s[us("0x45")]&&(i=s.start),x[us("0x45")]&&(o=x[us("0x1f")]),r([t.model[us("0x51")](i,o)])})),e._suggestionFactory[us("0xe")]("formatBlock","convertInlineImageToBlock","chain",x),e._suggestionFactory[us("0xe")](us("0x1"),"convertInlineImageToBlock",us("0x31"),x)),t[us("0x38")][us("0x53")]("ImageCaptionEditing")&&(e[us("0x24")](us("0x1d"),((r,i)=>{const o=t[us("0x38")][us("0x3e")](us("0xa"));let s=n[us("0x3c")](t[us("0x46")][us("0x3b")][us("0x5")]),x=o[us("0x57")](s);t[us("0x46")][us("0x2c")]((()=>{if(x)return void e[us("0x1e")](t[us("0x46")].createRangeOn(x));const a=n.isBlockImage(s);r(i),s=n[us("0x3c")](t[us("0x46")][us("0x3b")][us("0x5")]),x=o.getCaptionFromImageModelElement(s),e[us("0x15")](t[us("0x46")][us("0x30")](x),a?null:us("0x48"))}))})),e[us("0x47")][us("0xe")](us("0x1"),us("0x48"),us("0x31"),x));const i=[{type:us("0x41"),subType:"imageStylePreApply"},{type:us("0x1"),subType:"imageCaption"},{type:"formatBlock",subType:us("0x18")},{type:us("0x1"),subType:us("0x18")}];function o(t,r){const o=i[us("0x40")]((({type:e,subType:n})=>t[us("0x34")]==e&&t[us("0x3f")]==n)),s=i[us("0x40")]((({type:t,subType:e})=>r.type==t&&r.subType==e));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=r.getFirstRange();if((0==o||1==o)&&2==s&&x[us("0x58")](a))return!0;if(2==o&&3==s){const t=e[us("0x26")](x,us("0x1"))[us("0x2b")]((({suggestion:t,meta:e})=>e[us("0x5c")]&&us("0x18")==t[us("0x3f")]));if(t[us("0x28")]>1&&a[us("0x1f")][us("0x14")](x[us("0x39")]))return!0;if(1==t[us("0x28")]&&(x[us("0x39")][us("0x14")](a.end)||x.end.isEqual(a[us("0x39")])))return!0}if(3==o&&3==s&&x[us("0x39")][us("0x2e")](a[us("0x39")])){const t=x[us("0x1f")].nodeAfter,e=a.start[us("0x42")];return n[us("0x20")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x38")][us("0x53")](us("0x29"))&&(e[us("0x4d")](us("0x4c"),[],[us("0x3d")]),e._descriptionFactory.registerAttributeLabel(us("0x3d"),Jr(r,us("0x44")))),t.plugins[us("0x53")](us("0x4a"))&&e[us("0x4d")](us("0x3"),[],["alt"]),e[us("0xc")].registerDescriptionCallback((t=>{if(i.find((({type:e,subType:n})=>t[us("0x34")]==e&&t.subType==n)))return t[us("0x11")]?{}:void 0})),e[us("0xc")][us("0xf")]((t=>{if(us("0x1")==t[us("0x34")]||us("0x2")==t[us("0x34")]){const e=t[us("0x22")]();if(e&&e.is("element",us("0x17")))return{type:us("0x1")==t.type?us("0x0"):us("0x56"),element:e,quantity:1}}})),e[us("0xc")].registerDescriptionCallback((t=>us("0x41")==t[us("0x34")]&&"convertInlineImageToBlock"==t[us("0x3f")]?{type:"format",content:us("0x5f")}:us("0x41")==t.type&&"convertBlockImageToInline"==t[us("0x3f")]?{type:"format",content:us("0xb")}:void 0)),e[us("0xc")][us("0xf")]((t=>{if(us("0x12")!=t[us("0x34")])return;const{data:e}=t;if(!e||us("0x23")!=e[us("0x3a")])return;const n=e.newValue;return n?{type:us("0x32"),content:Jr(r,us("0x21"),'"'+n+'"')}:{type:us("0x32"),content:Jr(r,us("0x6"))}})),this[us("0x1a")]()}[us("0x1a")](){const t=this[us("0x55")],e=t[us("0x4")];t.plugins[us("0x3e")](us("0x43"))._descriptionFactory[us("0xf")]((t=>{if(us("0x41")!=t[us("0x34")]&&us("0x5a")!=t[us("0x34")])return;const{data:n}=t;if(n){if(us("0x3")==n[us("0x19")]){const t=n[us("0x7")][0][us("0x4f")];return t?{type:us("0x32"),content:Jr(e,us("0x21"),'"'+t+'"')}:{type:us("0x32"),content:Jr(e,us("0x6"))}}if("resizeImage"==n[us("0x19")]){const t=n[us("0x7")][0][us("0x5b")];return t?{type:us("0x32"),content:Jr(e,"*Set image width:* %0",t)}:{type:us("0x32"),content:Jr(e,us("0x49"))}}}}))}}const gs=["_descriptionFactory","discard","key","_registerLegacyDescription","format","type","_suggestionFactory","oldValue","plugins","src","newValue","formatInline","attribute","replaceImageSource","formatBlock","accept","registerCustomCallback","editor","afterInit","TrackChangesEditing","getSuggestionCallback","registerDescriptionCallback","get","locale","commandName","has","_enableDefaultAttributesIntegration","_handleLegacySuggestions","*Replace image URL*","ImageEditing"];var fs,hs;fs=gs,hs=216,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class bs extends t.Plugin{[ms("0xc")](){if(!this[ms("0xb")][ms("0x2")][ms("0x13")](ms("0x17")))return;const t=this[ms("0xb")][ms("0x11")],e=this[ms("0xb")].plugins[ms("0x10")]("TrackChangesEditing");e[ms("0x14")]("replaceImageSource",[],[ms("0x3")]),e[ms("0x18")][ms("0xf")]((e=>{if(ms("0x6")!=e[ms("0x1d")])return;const{data:n}=e;return n&&ms("0x3")==n[ms("0x1a")]?n[ms("0x4")]&&n[ms("0x1")]?{type:"format",content:Jr(t,ms("0x16"))}:{type:ms("0x1c"),content:""}:void 0})),this[ms("0x15")]()}_handleLegacySuggestions(){const t=this[ms("0xb")][ms("0x2")][ms("0x10")](ms("0xd"));t[ms("0x0")][ms("0xa")](ms("0x8"),ms("0x7"),ms("0x9"),t._suggestionFactory[ms("0xe")](ms("0x8"),null,ms("0x19"))),t._suggestionFactory[ms("0xa")]("formatBlock",ms("0x7"),ms("0x19"),t[ms("0x0")][ms("0xe")](ms("0x8"),null,ms("0x9"))),this[ms("0x1b")]()}[ms("0x1b")](){const t=this[ms("0xb")],e=t[ms("0x11")];t.plugins[ms("0x10")]("TrackChangesEditing")._descriptionFactory[ms("0xf")]((t=>{if(ms("0x8")!=t[ms("0x1d")]&&ms("0x5")!=t[ms("0x1d")])return;const{data:n}=t;return n&&ms("0x7")==n[ms("0x12")]?{type:ms("0x1c"),content:Jr(e,"*Format:* replace image URL")}:void 0}))}}const ps=["setImageNaturalSizeAttributes","start","imageTypeBlock","selection","isBlockImage","registerDescriptionCallback","ImageStyleEditing","name","discardSuggestion","imageStylePreApply","isIntersecting","commands","_registerLegacyDescription","editor","from","document","getFirstRange","accept","registerCustomCallback","Users","_findSuggestions","findIndex","model","value","getClosestSelectedImageElement","insertion","getContainedElement","next","chain","subType","nodeAfter","FORMAT_SIDE_IMAGE","shouldConvertImageType","title","type","forEach","nodeBefore","side","imageStylePostApply","filter","TrackChangesEditing","formatInline","toLowerCase","join","formatBlock","commandReversedParams","end","commandParams","markBlockFormat","isInContent","convertInlineImageToBlock","imageStyle","has","isOwn","commandName","newRange","registerPostFixer","get","imageTypeInline","hasSuggestion","_suggestionFactory","_descriptionFactory","plugins","author","_splitMarkerName","length","suggestion","getSuggestionCallback","imageCaption","change","locale","markInlineFormat","isEqual","getSuggestion","ImageUtils","differ","refresh","afterInit","createRangeOn","isInlineImage"];var Es,_s;Es=ps,_s=105,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return ps[t-=0]};class ys extends t.Plugin{[Ts("0x34")](){const t=this[Ts("0x44")];if(!t[Ts("0x25")][Ts("0x1b")]("ImageStyleEditing"))return;const n=t.plugins[Ts("0x20")](Ts("0xf")),r=t[Ts("0x25")][Ts("0x20")](Ts("0x31")),i={};n.enableCommand(Ts("0x1a"),((i,o)=>{const s=t.plugins[Ts("0x20")](Ts("0x4a")).me,x=t.commands[Ts("0x20")](Ts("0x1a"));let a=r[Ts("0x4f")](t.model[Ts("0x46")][Ts("0x3a")]),c=t.model[Ts("0x35")](a),l=x[Ts("0x4e")];if(l==o[Ts("0x4e")])return;const u={commandName:Ts("0x1a"),commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x4d")][Ts("0x2c")]((()=>{if(n.getSuggestions()[Ts("0xe")]((t=>t[Ts("0x18")]&&s==t[Ts("0x26")]&&(Ts("0x13")==t.type||Ts("0x10")==t[Ts("0x9")])&&(Ts("0x40")==t[Ts("0x4")]||"imageStylePostApply"==t.subType)&&t.getFirstRange().isEqual(c)))[Ts("0xa")]((t=>n[Ts("0x3f")](t.head))),a=r[Ts("0x4f")](t.model[Ts("0x46")][Ts("0x3a")]),c=t[Ts("0x4d")].createRangeOn(a),x[Ts("0x33")](),t[Ts("0x42")][Ts("0x20")](Ts("0x21"))[Ts("0x33")](),t[Ts("0x42")][Ts("0x20")](Ts("0x39"))[Ts("0x33")](),l=x[Ts("0x4e")],l!=o[Ts("0x4e")])return r[Ts("0x36")](a)&&x[Ts("0x7")](o[Ts("0x4e")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x4f")](t.model[Ts("0x46")][Ts("0x3a")]),void n[Ts("0x17")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x40"))):void(r[Ts("0x3b")](a)?n.markBlockFormat(a,u,[],"imageStylePostApply"):n[Ts("0x2e")](c,u,Ts("0xd")))}))}));for(const e of t[Ts("0x25")][Ts("0x20")](Ts("0x3d")).normalizedStyles)i[e[Ts("0x3e")]]=e[Ts("0x8")][Ts("0x11")]();n._suggestionFactory[Ts("0x49")]("formatBlock","imageStylePreApply",Ts("0x12"),(()=>!1)),n[Ts("0x23")].registerCustomCallback(Ts("0x13"),"imageStylePostApply","join",(()=>!1)),n[Ts("0x23")][Ts("0x49")](Ts("0x10"),"imageStylePostApply",Ts("0x12"),(()=>!1)),n[Ts("0x23")][Ts("0x49")]("formatBlock",Ts("0x40"),"accept",(([t])=>{r[Ts("0x37")](t[Ts("0x1")]())})),n[Ts("0x23")][Ts("0x49")](Ts("0x13"),"imageStylePreApply","discard",((t,e)=>{n[Ts("0x23")][Ts("0x2a")](Ts("0x13"),"",Ts("0x48"))(t,{commandName:e.commandName,commandParams:e[Ts("0x14")]})})),n[Ts("0x23")].registerCustomCallback(Ts("0x13"),Ts("0x40"),Ts("0x3"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x13"),subType:Ts("0x40")},{type:Ts("0x0"),subType:"imageCaption"},{type:Ts("0x13"),subType:"convertInlineImageToBlock"},{type:Ts("0x0"),subType:Ts("0x19")}];function s(t,e){const i=o[Ts("0x4c")]((({type:e,subType:n})=>t[Ts("0x9")]==e&&t[Ts("0x4")]==n)),s=o.findIndex((({type:t,subType:n})=>e[Ts("0x9")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t[Ts("0x47")](),a=e[Ts("0x47")]();if((0==i||1==i)&&2==s&&x[Ts("0x41")](a))return!0;if(2==i&&3==s){const t=n[Ts("0x4b")](x,Ts("0x0"))[Ts("0xe")]((({suggestion:t,meta:e})=>e[Ts("0x1c")]&&"convertInlineImageToBlock"==t[Ts("0x4")]));if(t.length>1&&a[Ts("0x15")][Ts("0x2f")](x[Ts("0x38")]))return!0;if(1==t[Ts("0x28")]&&(x[Ts("0x38")][Ts("0x2f")](a[Ts("0x15")])||x[Ts("0x15")].isEqual(a[Ts("0x38")])))return!0}if(3==i&&3==s&&x[Ts("0x38")].isBefore(a[Ts("0x38")])){const t=x.end[Ts("0x5")],e=a.start[Ts("0xb")];return r[Ts("0x3b")](t)&&t===e}return!1}t[Ts("0x4d")][Ts("0x46")][Ts("0x1f")]((()=>{let e=!1;const i=Array[Ts("0x45")](t[Ts("0x4d")].document[Ts("0x32")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0x27")](t);if(Ts("0x29")==i&&n[Ts("0x22")](a)){if(Ts("0x13")==s&&("imageStylePreApply"==x||Ts("0xd")==x)){const t=n[Ts("0x30")](a);if(o.newRange){const i=t[Ts("0x47")]()[Ts("0x1")]();if(r[Ts("0x3b")](i))continue;n[Ts("0x3f")](t),e=!0}}if(Ts("0x0")==s&&Ts("0x2b")==x&&!o[Ts("0x1e")]){const t=n.getSuggestion(a);t[Ts("0x2")]&&t[Ts("0x2")].isInContent&&(n[Ts("0x3f")](t.next),e=!0)}}}return e})),this[Ts("0x43")](i)}[Ts("0x43")](t){const e=this.editor,n=e[Ts("0x2d")];e[Ts("0x25")][Ts("0x20")](Ts("0xf"))[Ts("0x24")][Ts("0x3c")]((e=>{if("formatBlock"!=e[Ts("0x9")]&&Ts("0x10")!=e[Ts("0x9")])return;const{data:r}=e;if(!r||Ts("0x1a")!=r[Ts("0x1d")])return;const i=r[Ts("0x16")][0][Ts("0x4e")];return o=Ts("0xc")===i?Jr(n,Ts("0x6")):t[i]||i,{type:"format",content:Jr(n,"*Format:* %0",o)};var o}))}}const Cs=["forEach","value","_handleImportedData","afterInit","high","TrackChangesEditing","plugins","collaboration_features","trackChanges","track_changes","bind","commands","dataInsert","editor","get","lowest","execute","_trackChangesValueDuringImport","listenTo","_trackChangesExecuted","enableCommand","_setSuggestionData","importWord","Users"];var As,ks;As=Cs,ks=428,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Ss extends t.Plugin{constructor(t){super(t),this[Is("0x15")]=!1,this[Is("0x17")]=!1}[Is("0x7")](){const t=this[Is("0x11")],e=t[Is("0xf")][Is("0x12")](Is("0x2")),n=t[Is("0xf")][Is("0x12")]("trackChanges");e&&(e.on(Is("0x14"),((t,[,e])=>{this[Is("0x15")]=n.value,e[Is("0xb")][Is("0xd")]=!this[Is("0x15")]}),{priority:Is("0x8")}),this[Is("0x16")](e,Is("0x10"),this[Is("0x6")][Is("0xe")](this)),this[Is("0x16")](e,"dataInsert",(()=>{this[Is("0x17")]&&(n[Is("0x14")](),this[Is("0x17")]=!1)}),{priority:Is("0x13")}),t[Is("0xa")][Is("0x12")](Is("0x9"))[Is("0x0")](Is("0x2")))}_handleImportedData(t,e){const{suggestions:n}=e,r=this[Is("0x11")][Is("0xf")][Is("0x12")](Is("0xc")),i=r[Is("0x5")];this[Is("0x15")]!==i&&(r[Is("0x14")](),this[Is("0x17")]=!0),n&&n[Is("0x4")]((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0x11")][Is("0xa")][Is("0x12")](Is("0x3")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:"importWord"}}};this[Is("0x11")][Is("0xa")][Is("0x12")](Is("0x9"))[Is("0x1")](i)}))}}const Rs=["plugins","_enableDefaultAttributesIntegration","blockIndent","*Outdent:* %0","enableCommand","locale","registerDescriptionCallback","indentBlock","get","formatBlock","format","commandName","getItemLabel","TrackChangesEditing","_registerLegacyDescription","outdent","registerAttributeLabel","editor","outdentBlock","_registerBlockAttribute","_descriptionFactory","has","afterInit"];var Ns,vs;Ns=Rs,vs=221,function(t){for(;--t;)Ns.push(Ns.shift())}(++vs);const Ls=function(t,e){return Rs[t-=0]};class Ms extends t.Plugin{[Ls("0x8")](){const t=this[Ls("0x3")],e=t[Ls("0x9")][Ls("0x11")](Ls("0x16"));if(t[Ls("0x9")][Ls("0x7")]("IndentEditing")&&(e[Ls("0xd")]("indent"),e[Ls("0xd")](Ls("0x1"))),t[Ls("0x9")].has("IndentBlock"))for(const t of[Ls("0x10"),Ls("0x4")])e[Ls("0xa")](t);const n=t[Ls("0xe")];e[Ls("0x5")](Ls("0xb")),e[Ls("0x6")][Ls("0x2")](Ls("0xb"),Jr(n,"FORMAT_INDENT")),this[Ls("0x0")]()}_registerLegacyDescription(){const t=this[Ls("0x3")],e=t[Ls("0xe")],n=t[Ls("0x9")][Ls("0x11")](Ls("0x16"));n[Ls("0x6")][Ls("0xf")]((t=>{if(Ls("0x12")!=t.type)return;const{data:r}=t;if(!r)return;if(Ls("0x10")!=r[Ls("0x14")]&&Ls("0x4")!=r.commandName)return;const i=t.getItems()[0],o=n._descriptionFactory[Ls("0x15")](i);return Ls("0x10")==r[Ls("0x14")]?{type:Ls("0x13"),content:Jr(e,"*Indent:* %0",o)}:Ls("0x4")==r[Ls("0x14")]?{type:Ls("0x13"),content:Jr(e,Ls("0xc"),o)}:void 0}))}}var ws,Os,Fs=["input","TrackChangesEditing","editor","plugins","enableCommand","get","init"];ws=Fs,Os=376,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{static get requires(){return[qi.Input]}[Ds("0x1")](){this[Ds("0x4")][Ds("0x5")][Ds("0x0")](Ds("0x3"))[Ds("0x6")](Ds("0x2"))}}const Ps=["_descriptionFactory","link","TrackChangesEditing","key","editor","plugins","registerAttributeLabel","afterInit","*Remove link*","commandParams","locale","*Set link:* %0","map","unlink","_registerLegacyDescription","manualDecorators","_enableDefaultAttributesIntegration","label","formatInline","link (","registerDescriptionCallback","type","newValue","linkHref","commands","has","format","attribute","get"];var Us,js;Us=Ps,js=183,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{[Gs("0x1b")](){const t=this[Gs("0x18")];if(!t[Gs("0x19")][Gs("0x10")]("LinkEditing"))return;const e=t[Gs("0x19")][Gs("0x13")](Gs("0x16")),n=t[Gs("0xf")][Gs("0x13")](Gs("0x15"));e[Gs("0x7")](Gs("0x15"),[Gs("0xe"),...n[Gs("0x6")][Gs("0x3")]((t=>t.id))]),e._enableDefaultAttributesIntegration(Gs("0x4"));for(const t of n[Gs("0x6")])e._descriptionFactory[Gs("0x1a")](t.id,Gs("0xa")+t[Gs("0x8")].toLowerCase()+")");e[Gs("0x14")][Gs("0xb")]((e=>{if(Gs("0x12")!=e[Gs("0xc")])return;const{data:n}=e;if(!n||Gs("0xe")!=n[Gs("0x17")])return;const r=n[Gs("0xd")],i=t.locale;return{type:"format",content:null==r?Jr(i,"*Remove link*"):Jr(i,Gs("0x2"),'"'+r+'"')}})),this[Gs("0x5")]()}[Gs("0x5")](){const t=this[Gs("0x18")],e=t[Gs("0x1")];t[Gs("0x19")][Gs("0x13")]("TrackChangesEditing")[Gs("0x14")][Gs("0xb")]((t=>{if(Gs("0x9")!=t[Gs("0xc")])return;const{data:n}=t;if(n){if(Gs("0x15")==n.commandName){const t=n[Gs("0x0")][0];return{type:Gs("0x11"),content:Jr(e,"*Set link:* %0",'"'+t+'"')}}return"unlink"==n.commandName?{type:Gs("0x11"),content:Jr(e,Gs("0x1c"))}:void 0}}))}}const Hs=["change","element","ELEMENT_LIST_ITEM","registerDescriptionCallback","listIndent","end","numberedList","ELEMENT_NUMBERED_LIST","editor","numbered","markBlockFormat","commandName","todoList","nextSibling","previousSibling","document","value","paragraph","parent","TrackChangesEditing","format","blockName","LegacyTodoListEditing","listType","createPositionAt","isObject","model","*Indent:* %0","*Outdent:* %0","selection","listItem","todo","commands","_selectedElements","createRange","plugins","_descriptionFactory","execute","todoListChecked","getSelectedBlocks","*Check item*","formatBlock","List","*Change to:* %0","findIndex","enableCommand","LegacyListEditing","checkTodoList","*Uncheck item*","before","add","from","get","bulletedList","getAttribute","forceValue","outdentList","locale","schema","slice","has","type","name","indentList","replace"];var zs,Ws;zs=Hs,Ws=170,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{afterInit(){const t=this[Ks("0x21")],e=t[Ks("0x11")];if(!t.plugins[Ks("0x14")](Ks("0x6")))return;const n=t[Ks("0x3c")][Ks("0xc")](Ks("0x2c")),r=t[Ks("0x3c")][Ks("0x14")](Ks("0x2f"));function i(e){return()=>{const r=t[Ks("0x33")][Ks("0x28")][Ks("0x36")],i=t[Ks("0x39")][Ks("0xc")](e);if(i[Ks("0x29")])return void t[Ks("0x3e")](Ks("0x2a"),{});const o=e[Ks("0x13")](0,-4),s=function(t,e,n){let r=Array[Ks("0xb")](t).filter((t=>{return e=t,(r=n).checkChild(e[Ks("0x2b")],Ks("0x37"))&&!r[Ks("0x32")](e);var e,r}));r=r.filter((t=>!t.is("element","listItem")||t.getAttribute(Ks("0x30"))!=e));const i=new Set;for(const t of r)t.is(Ks("0x1a"),Ks("0x37"))?i[Ks("0xa")]($s(t)):i[Ks("0xa")](t);return Array[Ks("0xb")](i)}(r[Ks("0x40")](),o,t[Ks("0x33")][Ks("0x12")]);t[Ks("0x33")][Ks("0x19")]((()=>{for(const t of s)n[Ks("0x23")](t,{commandName:e,commandParams:[{forceValue:!i[Ks("0x29")]}],formatGroupId:Ks("0x2e")},Xs(t))}))}}function o(e){return()=>{const r=function(t){let e=Array.from(t);const n=e[Ks("0x4")]((t=>Ks("0x37")!=t[Ks("0x16")]));return n>-1&&(e=e[Ks("0x13")](0,n)),e}(t[Ks("0x33")].document[Ks("0x36")][Ks("0x40")]()),i=t[Ks("0x33")][Ks("0x3b")](t[Ks("0x33")][Ks("0x31")](r[0],Ks("0x9")),t[Ks("0x33")][Ks("0x31")](r[r.length-1],Ks("0x1e")));t[Ks("0x33")][Ks("0x19")]((()=>{n[Ks("0x23")](i,{commandName:e,commandParams:[],formatGroupId:Ks("0x1d")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x26")];for(;t&&t[Ks("0xe")](Ks("0x1d"))>n[Ks("0xe")](Ks("0x1d"));)e[Ks("0xa")](t),t=t[Ks("0x26")]}return Array[Ks("0xb")](e)}(r))}))}}n.enableCommand("numberedList",i(Ks("0x1f"))),n.enableCommand(Ks("0xd"),i(Ks("0xd"))),r&&n.enableCommand(Ks("0x25"),i(Ks("0x25"))),n[Ks("0x5")](Ks("0x17"),o(Ks("0x17"))),n[Ks("0x5")](Ks("0x10"),o(Ks("0x10"))),r&&n.enableCommand(Ks("0x7"),(()=>{const e=t[Ks("0x39")][Ks("0xc")](Ks("0x7")),r=Array[Ks("0xb")](e[Ks("0x3a")]);r.filter((t=>t[Ks("0xe")](Ks("0x3f"))!=e[Ks("0x29")])),t.model[Ks("0x19")]((()=>{for(const t of r)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ks("0x29")]}]})}))})),n[Ks("0x3d")].registerElementLabel(Ks("0x37"),(t=>Jr(e,Ks("0x1b"),t))),n[Ks("0x3d")][Ks("0x1c")]((t=>{if(Ks("0x1")!=t.type&&"formatInline"!=t[Ks("0x15")])return;const{data:n}=t;if(n){if(Ks("0x1f")==n[Ks("0x24")]||Ks("0xd")==n[Ks("0x24")]||Ks("0x25")==n[Ks("0x24")])switch(n[Ks("0x24")][Ks("0x18")](Ks("0x2"),"")){case"bulleted":return r(Jr(e,"ELEMENT_BULLETED_LIST"));case Ks("0x22"):return r(Jr(e,Ks("0x20")));case Ks("0x38"):return r(Jr(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[Ks("0x24")])return{type:"format",content:Jr(e,Ks("0x34"),Jr(e,Ks("0x1b")))};if(Ks("0x10")==n[Ks("0x24")])return{type:Ks("0x2d"),content:Jr(e,Ks("0x35"),Jr(e,"ELEMENT_LIST_ITEM"))};if(Ks("0x7")==n.commandName)return n.commandParams[0][Ks("0xf")]?{type:Ks("0x2d"),content:Jr(e,Ks("0x0"))}:{type:Ks("0x2d"),content:Jr(e,Ks("0x8"))}}function r(t){return{type:Ks("0x2d"),content:Jr(e,Ks("0x3"),t)}}}))}}function $s(t){const e=t[Ks("0xe")]("listIndent");if(0==e)return t;let n=t;for(;t[Ks("0x27")]&&t[Ks("0x27")].is(Ks("0x1a"),Ks("0x37"));){const r=t[Ks("0x27")].getAttribute(Ks("0x1d"));if(r==e)n=t[Ks("0x27")];else if(r<e)break;t=t[Ks("0x27")]}return n}function Xs(t){const e=[];if(t.is("element",Ks("0x37"))&&t.getAttribute("listIndent")>0){let n=t.nextSibling;for(;n&&Ks("0x37")==n[Ks("0x16")]&&n[Ks("0xe")](Ks("0x1d"))==t[Ks("0xe")](Ks("0x1d"));)e.push(n),n=n[Ks("0x26")]}return e}const Zs=["from","LegacyListPropertiesEditing","length","_getSuggestionBlocks","get","plugins","*Format:* set order to regular","change","map","reversed","backward","config","formatBlock","bind","getSiblingNodes","listStyle","LegacyListUtils","_getTranslationKeyForListStyle","listStart","commandParams","TrackChangesEditing","listReversed","handleListReversedCommand","editor","replace","format","handleDescriptions","getAttribute","numbered","createPositionAt","element","_LIST_","markMultiRangeBlockFormat","selection","type","model","list.properties","before","createRange","listType","toUpperCase","getSelectedBlocks","styles","listItem","forward","parent","ELEMENT_","enableCommand","locale","document","handleListStyleCommand","_getSuggestionBlocksForListStyle","startIndex","filter","flat","handleListStartCommand","unshift","getFirstPosition","_descriptionFactory"];var Ys,Js;Ys=Zs,Js=222,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{afterInit(){if(!this[Qs("0x25")].plugins.has(Qs("0xf")))return;const t=this[Qs("0x25")][Qs("0x19")][Qs("0x12")](Qs("0x32")),e=this[Qs("0x25")][Qs("0x13")][Qs("0x12")](Qs("0x22"));t[Qs("0x38")]&&e[Qs("0x2")](Qs("0x1d"),this[Qs("0x5")].bind(this)),t[Qs("0x17")]&&e[Qs("0x2")](Qs("0x23"),this[Qs("0x24")][Qs("0x1b")](this)),t[Qs("0x7")]&&e[Qs("0x2")](Qs("0x20"),this[Qs("0xa")][Qs("0x1b")](this)),e[Qs("0xd")].registerDescriptionCallback(this[Qs("0x28")][Qs("0x1b")](this))}[Qs("0x5")](t,e={}){const n=this[Qs("0x25")].plugins[Qs("0x12")](Qs("0x22")),r=this[Qs("0x6")]();this[Qs("0x25")][Qs("0x31")][Qs("0x15")]((()=>{n[Qs("0x2e")](r,{commandName:Qs("0x1d"),commandParams:[{type:e[Qs("0x30")]}],formatGroupId:Qs("0x1d")})}))}[Qs("0x24")](t,e={}){const n=this[Qs("0x25")][Qs("0x13")][Qs("0x12")]("TrackChangesEditing"),r=this[Qs("0x11")]((t=>t.is(Qs("0x2c"),Qs("0x39"))&&Qs("0x2a")===t[Qs("0x29")](Qs("0x35"))));if(r[Qs("0x10")]<1)return;const i=r.map((t=>this[Qs("0x25")].model[Qs("0x34")](this[Qs("0x25")][Qs("0x31")][Qs("0x2b")](t,"before"),this[Qs("0x25")][Qs("0x31")][Qs("0x2b")](t,0))));this[Qs("0x25")][Qs("0x31")][Qs("0x15")]((()=>{n[Qs("0x2e")](i,{commandName:"listReversed",commandParams:[{reversed:e[Qs("0x17")]}],formatGroupId:Qs("0x23")})}))}[Qs("0xa")](t,e={}){const n=this.editor[Qs("0x13")].get(Qs("0x22")),r=this._getSuggestionBlocks((t=>t.is("element",Qs("0x39"))&&Qs("0x2a")===t[Qs("0x29")](Qs("0x35"))));if(r[Qs("0x10")]<1)return;const i=r[Qs("0x16")]((t=>this[Qs("0x25")][Qs("0x31")][Qs("0x34")](this[Qs("0x25")][Qs("0x31")][Qs("0x2b")](t,Qs("0x33")),this.editor.model[Qs("0x2b")](t,0))));this.editor[Qs("0x31")][Qs("0x15")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:Qs("0x20"),commandParams:[{startIndex:e[Qs("0x7")]}],formatGroupId:Qs("0x20")})}))}[Qs("0x28")](t){if(Qs("0x1a")!=t[Qs("0x30")]&&"formatInline"!=t[Qs("0x30")])return;const e=this[Qs("0x25")][Qs("0x3")],{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case Qs("0x1d"):r="*Change to:* %0",i={type:Qs("0x27"),content:Jr(e,r,Jr(e,this[Qs("0x1f")](n[Qs("0x21")][0][Qs("0x30")])))};break;case Qs("0x23"):r=n[Qs("0x21")][0][Qs("0x17")]?"*Format:* set order to reversed":Qs("0x14"),i={type:Qs("0x27"),content:Jr(e,r)};break;case Qs("0x20"):r="*Format:* set start index to %0",i={type:Qs("0x27"),content:Jr(e,r,n[Qs("0x21")][0][Qs("0x7")])}}return i}_getSuggestionBlocksForListStyle(){var t,e,n,r;const i=this[Qs("0x25")][Qs("0x13")][Qs("0x12")](Qs("0x1e"));let o=Array[Qs("0xe")](this[Qs("0x25")].model[Qs("0x4")][Qs("0x2f")][Qs("0x37")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Qs("0x2c"),Qs("0x39")))&&o[Qs("0xb")](...i.getSiblingNodes(this[Qs("0x25")][Qs("0x31")].document[Qs("0x2f")][Qs("0xc")](),Qs("0x18"))),(null===(e=o[o.length-1])||void 0===e?void 0:e.is(Qs("0x2c"),Qs("0x39")))&&o.push(...i[Qs("0x1c")](this[Qs("0x25")][Qs("0x31")][Qs("0x4")][Qs("0x2f")].getLastPosition(),"forward")),o=[...new Set(o)],(null===(r=null===(n=this.editor[Qs("0x31")][Qs("0x4")].selection[Qs("0xc")]())||void 0===n?void 0:n[Qs("0x0")])||void 0===r?void 0:r.is(Qs("0x2c"),Qs("0x39")))&&(o=o[Qs("0x8")]((t=>t.is("element",Qs("0x39"))))),o}_getSuggestionBlocks(t){const e=this[Qs("0x25")][Qs("0x13")][Qs("0x12")]("LegacyListUtils");let n=Array.from(this[Qs("0x25")].model[Qs("0x4")][Qs("0x2f")][Qs("0x37")]())[Qs("0x8")](t)[Qs("0x16")]((t=>{const n=this[Qs("0x25")][Qs("0x31")][Qs("0x2b")](t,0);return[...e.getSiblingNodes(n,Qs("0x18")),...e.getSiblingNodes(n,Qs("0x3a"))]}))[Qs("0x9")]();return n=[...new Set(n)],n}[Qs("0x1f")](t){return Qs("0x1")+this[Qs("0x25")][Qs("0x13")].get(Qs("0x1e")).getListTypeFromListStyleType(t)[Qs("0x36")]()+Qs("0x2d")+t[Qs("0x36")]()[Qs("0x26")](/-/g,"_")}}const ex=["stop","media","dataDowncast","editor","data","has","attribute:url:media","for","_descriptionFactory","plugins","elementToElement","TrackChangesEditing","showSuggestionHighlights","afterInit","enableCommand","MediaEmbedEditing","createEmptyElement","div","registerElementLabel","mediaEmbed","downcastDispatcher","get"];var nx,rx;nx=ex,rx=115,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x8")](){const t=this[ix("0x14")];if(!t[ix("0x4")][ix("0x0")](ix("0xa")))return;const e=t.plugins[ix("0x10")](ix("0x6")),n=t.locale;e[ix("0x9")](ix("0xe")),e[ix("0x3")][ix("0xd")]("media",(t=>Jr(n,"ELEMENT_MEDIA",t))),t.conversion[ix("0x2")](ix("0x13"))[ix("0x5")]({model:ix("0x12"),view:(t,{writer:e,options:n})=>{if(n[ix("0x7")])return e[ix("0xb")](ix("0xc"))},converterPriority:"high"}),t[ix("0x15")][ix("0xf")].on(ix("0x1"),((t,e,n)=>{n.options[ix("0x7")]&&t[ix("0x11")]()}),{priority:"high"})}}const sx=["MentionEditing","TrackChangesEditing","get","plugins","afterInit","has","editor","enableCommand"];var xx,ax;xx=sx,ax=332,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{[cx("0x0")](){const t=this[cx("0x2")];t[cx("0x7")][cx("0x1")](cx("0x4"))&&t[cx("0x7")][cx("0x6")](cx("0x5"))[cx("0x3")]("mention")}}const ux=["PageBreakEditing","_descriptionFactory","afterInit","TrackChangesEditing","ELEMENT_PAGE_BREAK","get","locale","registerElementLabel","enableCommand","plugins","has","pageBreak"];var dx,gx;dx=ux,gx=325,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0x1")](){const t=this.editor;if(!t[fx("0x8")][fx("0x9")](fx("0xb")))return;t[fx("0x8")][fx("0x4")](fx("0x2"))[fx("0x7")](fx("0xa"));const e=t[fx("0x8")][fx("0x4")]("TrackChangesEditing"),n=t[fx("0x5")];e[fx("0x0")][fx("0x6")](fx("0xa"),(t=>Jr(n,fx("0x3"),t)))}}const mx=["TrackChangesEditing","consumable","ck-suggestion-marker--active","format","ELEMENT_PARAGRAPH","isBlock","getFirstRange","formatBlock","has","insert","isTouching","start","options","checkChild","span","markerName","addClass","isLimit","nodeAfter","_registerLegacyDescription","getItemLabel","editing","highest","writer","registerDescriptionCallback","afterInit","consume","markerRange","includes","showSuggestionHighlights","insertParagraph","_descriptionFactory","plugins","Paragraph","bindElementToMarker","insertion","*Insert:* %0","downcastDispatcher","editor","registerElementLabel","enableCommand","model","get","addMarker:suggestion:insertion","paragraph","end","ck-suggestion-marker-split","*Change to:* %0","type","locale","$text","commandName","schema","_enableDefaultAttributesIntegration"];var bx,px;bx=mx,px=457,function(t){for(;--t;)bx.push(bx.shift())}(++px);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x0")](){const t=this[Ex("0xd")];if(!t[Ex("0x7")][Ex("0x25")](Ex("0x8")))return;const e=t[Ex("0x18")],n=t[Ex("0x7")][Ex("0x11")]("TrackChangesEditing");n[Ex("0x6")][Ex("0xe")](Ex("0x13"),(t=>Jr(e,"ELEMENT_PARAGRAPH",t))),n[Ex("0x1c")](Ex("0x13")),n[Ex("0xf")](Ex("0x5")),t[Ex("0x32")].downcastDispatcher.on(Ex("0x12"),Tx(t),{priority:Ex("0x33")}),t.data[Ex("0xc")].on("addMarker:suggestion:insertion",((e,n,r)=>{r[Ex("0x29")][Ex("0x4")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x33")});const r=n[Ex("0x6")];r[Ex("0x35")]((n=>{if(Ex("0xa")!==n[Ex("0x17")])return;const{start:i,end:o}=n[Ex("0x23")]();if(!i[Ex("0x27")](o)||!i.nodeAfter)return;const s=t[Ex("0x10")][Ex("0x1b")],x=i[Ex("0x2f")];return s[Ex("0x22")](x)&&!s[Ex("0x2e")](x)&&s[Ex("0x2a")](x,"$text")?{type:Ex("0xa"),content:Jr(e,Ex("0xb"),r[Ex("0x31")](x,1))}:void 0})),this[Ex("0x30")]()}_registerLegacyDescription(){const t=this[Ex("0xd")],e=t.locale;t[Ex("0x7")][Ex("0x11")](Ex("0x1d"))[Ex("0x6")][Ex("0x35")]((t=>{if(Ex("0x24")!=t[Ex("0x17")])return;const{data:n}=t;return n&&Ex("0x13")==n[Ex("0x1a")]?{type:Ex("0x20"),content:Jr(e,Ex("0x16"),Jr(e,Ex("0x21")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t.plugins.get("TrackChangesEditing"),s=r[Ex("0x2")][Ex("0x28")],x=r.markerRange[Ex("0x14")],a=t[Ex("0x10")][Ex("0x1b")];if(!s[Ex("0x27")](x)||!s[Ex("0x2f")])return;const c=s[Ex("0x2f")];if(a[Ex("0x22")](c)&&!a.isLimit(c)&&a[Ex("0x2a")](c,Ex("0x19"))){if(!i[Ex("0x1e")][Ex("0x1")](r[Ex("0x2")],n.name))return;const t=i[Ex("0x34")].createUIElement(Ex("0x2b"),{class:Ex("0x15")}),s=i.mapper.toViewPosition(x);e&&o.activeMarkers[Ex("0x3")](r[Ex("0x2c")])&&i[Ex("0x34")][Ex("0x2d")](Ex("0x1f"),t),i[Ex("0x34")][Ex("0x26")](s,t),i.mapper[Ex("0x9")](t,r[Ex("0x2c")])}}}const yx=["format","_registerLegacyDescription","_enableDefaultAttributesIntegration","editor","formatInline","commandName","plugins","type","afterInit","formatBlock","removeFormat","has","TrackChangesEditing","RemoveFormatEditing","*Remove all formatting*","registerDescriptionCallback","get","locale"];var Cx,Ax;Cx=yx,Ax=380,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0x6")](){const t=this[kx("0x1")];t[kx("0x4")][kx("0x9")](kx("0xb"))&&(t[kx("0x4")].get(kx("0xa"))[kx("0x0")](kx("0x8")),this._registerLegacyDescription())}[kx("0x11")](){const t=this[kx("0x1")];t[kx("0x4")][kx("0xe")](kx("0xa"))._descriptionFactory[kx("0xd")]((e=>{if(kx("0x7")!=e[kx("0x5")]&&kx("0x2")!=e.type)return;const{data:n}=e;return n&&kx("0x8")==n[kx("0x3")]?{type:kx("0x10"),content:Jr(t[kx("0xf")],kx("0xc"))}:void 0}))}}const Sx=["discardAllSuggestions","acceptSuggestion","goToNextRestrictedEditingException","plugins","RestrictedEditingModeEditing","trackChanges","editor","afterInit","has","get","acceptAllSuggestions","enableCommand","acceptSelectedSuggestions"];var Rx,Nx;Rx=Sx,Nx=330,function(t){for(;--t;)Rx.push(Rx.shift())}(++Nx);const vx=function(t,e){return Sx[t-=0]};class Lx extends t.Plugin{[vx("0x2")](){const t=this[vx("0x1")];if(!t.plugins[vx("0x3")](vx("0xc")))return;const e=t[vx("0xb")][vx("0x4")]("TrackChangesEditing");e[vx("0x6")]("goToPreviousRestrictedEditingException"),e[vx("0x6")](vx("0xa"));const n=t[vx("0xb")][vx("0x4")]("RestrictedEditingModeEditing");n.enableCommand(vx("0x0")),n[vx("0x6")](vx("0x9")),n[vx("0x6")]("discardSuggestion"),n.enableCommand(vx("0x5")),n.enableCommand(vx("0x8")),n[vx("0x6")](vx("0x7")),n[vx("0x6")]("discardSelectedSuggestions")}}const Mx=["span","bindElementToMarker","locale","addMarker:suggestion:insertion","deletion","softBreak","editing","test","addClass","name","createUIElement","shiftEnter","ck-suggestion-marker-","addMarker:suggestion:deletion","split","plugins","element","mapper","TrackChangesEditing","includes","downcastDispatcher","activeMarkers","high","getItems","consumable","init","markerName","showSuggestionHighlights","get","merge","requires","writer","_descriptionFactory","insert","enableCommand","createPositionBefore"];var wx,Ox;wx=Mx,Ox=233,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get[Fx("0xd")](){return[Eo.ShiftEnter]}[Fx("0x8")](){const t=this.editor,e=t[Fx("0x22")][Fx("0xb")](Fx("0x1"));e[Fx("0x11")](Fx("0x1e")),t[Fx("0x19")].downcastDispatcher.on(Fx("0x16"),Bx(t),{priority:Fx("0x5")}),t[Fx("0x19")][Fx("0x3")].on(Fx("0x20"),Bx(t),{priority:Fx("0x5")}),t.data[Fx("0x3")].on("addMarker:suggestion",((e,n,r)=>{r.options[Fx("0xa")]&&Bx(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0xf")].registerElementLabel("softBreak",(e=>Jr(t[Fx("0x15")],"ELEMENT_LINE_BREAK",e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t.plugins[Fx("0xb")](Fx("0x1"));if(!i[Fx("0x7")][Fx("0x1a")](r.markerRange,n[Fx("0x1c")]))return;const s=t.model;for(const t of r.markerRange[Fx("0x6")]()){if(!t.is(Fx("0x23"),Fx("0x18")))continue;const n=Fx("0x17")==r[Fx("0x9")][Fx("0x21")](":")[1]?Fx("0xc"):Fx("0x21"),x=i[Fx("0xe")][Fx("0x1d")](Fx("0x13"),{class:Fx("0x1f")+n}),a=i[Fx("0x0")].toViewPosition(s[Fx("0x12")](t));e&&o[Fx("0x4")][Fx("0x2")](r[Fx("0x9")])&&i[Fx("0xe")][Fx("0x1b")]("ck-suggestion-marker--active",x),i[Fx("0xe")][Fx("0x10")](a,x),i.mapper[Fx("0x14")](x,r[Fx("0x9")])}}}const Px=["restrictedEditingException","getRanges","format","locale","plugins","type","FORMAT_RESTRICTED_DISABLED","markInlineFormat","FORMAT_RESTRICTED_ENABLED","afterInit","StandardEditingModeEditing","enableCommand","forceValue","change","get","_descriptionFactory","document","commandParams","registerDescriptionCallback"];var Ux,jx;Ux=Px,jx=150,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{[Gx("0xb")](){const t=this.editor,e=t.model,n=t[Gx("0x5")];if(!t[Gx("0x6")].has(Gx("0xc")))return;const r=t[Gx("0x6")].get("TrackChangesEditing"),i=Gx("0x2"),o=t.commands[Gx("0x10")](i);r[Gx("0xd")](i,((t,n={})=>{const s=e[Gx("0x12")].selection;if(s.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Gx("0xe")]:!o.value;e[Gx("0xf")]((()=>{const t=Array.from(s[Gx("0x3")]());for(const n of t){const t=x?[n]:Ji(i,n,e);for(const e of t)r[Gx("0x9")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x11")][Gx("0x1")]((t=>{if("formatBlock"!=t[Gx("0x7")]&&"formatInline"!=t[Gx("0x7")])return;const{data:e}=t;return e&&e.commandName==i?e[Gx("0x0")][0].forceValue?{type:Gx("0x4"),content:Jr(n,Gx("0xa"))}:{type:Gx("0x4"),content:Jr(n,Gx("0x8"))}:void 0}))}}const Hx=["afterInit","_registerLegacyDescription","forceValue","has","GeneralHtmlSupport","getGhsAttributeNameForElement","block","get","locale","plugins","definitions","inline","commandName","_descriptionFactory","toLowerCase","DataSchema","*Set format:* %0","registerAttributeLabel","normalizeConfig","*Remove format:* %0","add","element","TrackChangesEditing","FORMAT_STYLE","StyleUtils","registerDescriptionCallback","type","Style","style","format","_registerInlineAttribute"];var zx,Wx;zx=Hx,Wx=299,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0xb")](){const t=this.editor;if(!t.plugins[Kx("0xe")](Kx("0x7"))||!t[Kx("0x14")][Kx("0xe")](Kx("0x1a")))return;const e=t[Kx("0x14")][Kx("0x12")](Kx("0x2")),n=t[Kx("0x13")],r=t.config.get(Kx("0x8")),i=t.plugins[Kx("0x12")](Kx("0xf")),o=t[Kx("0x14")].get(Kx("0x4"))[Kx("0x1d")](t[Kx("0x14")][Kx("0x12")]("DataSchema"),r[Kx("0x15")]);e._enableDefaultAttributesIntegration(Kx("0x8"));const s=new Set;for(const t of o[Kx("0x11")]){const e=i[Kx("0x10")](t.element);s.add(e)}const x=new Set;for(const t of o[Kx("0x16")]){const e=i[Kx("0x10")](t[Kx("0x1")]);x.add(e);for(const e of t.ghsAttributes)x[Kx("0x0")](e)}for(const t of s)e._registerBlockAttribute(t),e[Kx("0x18")][Kx("0x1c")](t,Jr(n,Kx("0x3")));for(const t of x)e[Kx("0xa")](t),e[Kx("0x18")][Kx("0x1c")](t,Jr(n,Kx("0x3")));this[Kx("0xc")]()}[Kx("0xc")](){const t=this.editor,e=t.locale;t[Kx("0x14")][Kx("0x12")](Kx("0x2"))[Kx("0x18")][Kx("0x5")]((t=>{if("formatBlock"!=t[Kx("0x6")]&&"formatInline"!=t[Kx("0x6")])return;const{data:n}=t;return n&&Kx("0x8")===n[Kx("0x17")]?n.commandParams[0][Kx("0xd")]?{type:Kx("0x9"),content:Jr(e,Kx("0x1b"),n.commandParams[0].styleName.toLowerCase())}:{type:"format",content:Jr(e,Kx("0x1e"),n.commandParams[0].styleName[Kx("0x19")]())}:void 0}))}}const $x=["element","table","classes","*Insert:* %0","ELEMENT_TABLE_WITH_TEXT","change:data","_acceptFormatSuggestionCallbackFactory","insertTableRowAbove","root","addRange","getChangedMarkers","findAncestor","deletion","getFirstRange","_tablePostFixingSubtypes","afterInit","subType","tableColumn","addClass","execute","substr","push","filter","_descriptionFactory","position","startsWith","isIntersectingWithRange","end","insertTableColumnRight","getItems","colspan","add","isArray","tablePaste","rowspan","map","removeClass","insertion","item","TableEditing","_setupColumnsRowsFixing","low","highest","cell","markMultiRangeDeletion","toLowerCase","selection","hasAttribute","differ","selectTableRow","TableUtils","writer","createTableWalker","MIN_SAFE_INTEGER","refresh","_tableSuggestions","get","markMultiRangeInsertion","addMarker:suggestion","getSuggestion","_getCoordsForCells","getAttribute","options","max","discard","join","registerDescriptionCallback","tableRow","isInContent","$graveyard","from","document","fromRange","forceValue","insert","minColumn","maxRow","ELEMENT_TABLE_COLUMN_WITH_TEXT","some","ELEMENT_TABLE_COLUMN","change","downcastDispatcher","getRanges","nodeAfter","enableCommand","accept","editor","start","createRangeIn","isEqual","data","mapper","last","insertTableRowBelow","removeTableColumn","type","createRangeOn","getRowIndexes","getCellLocation","_getSuggestionCoords","maxColumn","oldRange","has","registerCustomCallback","minRow","length","tableCell","*Remove:* %0","span","rootName","first","locale","getContainedElement","createPositionAt","removeTableRow","$textProxy","model","ELEMENT_TABLE_ROW","detach","MAX_SAFE_INTEGER","enqueueChange","above","min","insertTableColumnLeft","ELEMENT_TABLE_ROW_WITH_TEXT","getChildren","insertTable","values","batch","suggestion","getSelectionAffectedTableCells","plugins","getColumnIndexes","nodeBefore","commands","_suggestionFactory","showSuggestionHighlights","setSelection","TrackChangesEditing","name"];var Xx,Zx;Xx=$x,Zx=478,function(t){for(;--t;)Xx.push(Xx.shift())}(++Zx);const Yx=function(t,e){return $x[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x60")]=[Yx("0x9"),Yx("0x63")],this[Yx("0x89")]=new Set}[Yx("0x61")](){const t=this[Yx("0x1c")],e=t[Yx("0x3a")][Yx("0xd")].selection;if(!t[Yx("0x49")][Yx("0x2c")](Yx("0x79")))return;const n=t[Yx("0x35")],r=t[Yx("0x49")][Yx("0x8a")](Yx("0x50")),i=t.plugins.get("TableUtils");r[Yx("0x69")].registerElementLabel(Yx("0x53"),(t=>Jr(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),r[Yx("0x1a")](Yx("0x44")),r[Yx("0x1a")](Yx("0x83")),r[Yx("0x1a")]("selectTableColumn");for(const n of[Yx("0x59"),Yx("0x23")]){const o=t[Yx("0x4c")][Yx("0x8a")](n);r[Yx("0x1a")](n,(n=>{t[Yx("0x3a")][Yx("0x16")]((t=>{n();const s=Yx("0x3f")===o.order,x=i[Yx("0x48")](e),a=i[Yx("0x27")](x),c=s?a.first-1:a[Yx("0x22")]+1,l=x[0][Yx("0x5d")](Yx("0x53")),u=i.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Yx("0xc")](u)[Yx("0x75")]((e=>t[Yx("0x26")](e[Yx("0x7d")])));r[Yx("0x8b")](d,Yx("0x9"))}))}))}for(const n of[Yx("0x41"),Yx("0x6e")]){const o=t.commands[Yx("0x8a")](n);r.enableCommand(n,(n=>{t.model.change((t=>{n();const s="left"===o.order,x=i.getSelectionAffectedTableCells(e),a=i[Yx("0x4a")](x),c=s?a[Yx("0x34")]-1:a[Yx("0x22")]+1,l=x[0][Yx("0x5d")](Yx("0x53")),u=i[Yx("0x86")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0xc")](u)[Yx("0x75")]((e=>t[Yx("0x26")](e[Yx("0x7d")])));r.markMultiRangeInsertion(d,"tableColumn")}))}))}for(const n of[Yx("0x38"),Yx("0x24")]){const o=n[Yx("0x66")](11),s=o[Yx("0x7f")](),x=s[Yx("0x66")](0,3)+Yx("0x32"),a="table"+o,c=Yx("0x40")+o,l="max"+o;r[Yx("0x1a")](n,(()=>{t[Yx("0x3a")].change((t=>{const o=i[Yx("0x48")](e),u=o[0].findAncestor(Yx("0x53"));let d;if(Yx("0x38")==n){const t=i[Yx("0x27")](o);d={startRow:t[Yx("0x34")],endRow:t[Yx("0x22")],includeAllSlots:!0}}else{const t=i[Yx("0x4a")](o);d={startColumn:t[Yx("0x34")],endColumn:t.last,includeAllSlots:!0}}const g=i.createTableWalker(u,d),f=Array[Yx("0xc")](g).map((({cell:t})=>t)),h=Qx(f[Yx("0x68")]((t=>t.hasAttribute(x)))),m=Qx(f[Yx("0x68")]((t=>!t[Yx("0x81")](x)))).map((e=>t[Yx("0x26")](e))),b=r[Yx("0x7e")](m,a);if(b&&("tableRow"==b[Yx("0x62")]||"tableColumn"==b.subType)){const e=this[Yx("0x29")](b);for(const n of h){const r=t[Yx("0x26")](n),o=i[Yx("0x28")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&b[Yx("0x5b")](r)}}}))}))}function o(n){const r=Array[Yx("0xc")](e.getRanges())[Yx("0x75")]((t=>s.LiveRange[Yx("0xe")](t)));t[Yx("0x3a")][Yx("0x16")]((e=>{const i=e[Yx("0x46")];n=n[Yx("0x68")]((t=>Yx("0xb")!=t.root[Yx("0x33")])),e.setSelection(n),t[Yx("0x4c")][Yx("0x8a")](Yx("0x38"))[Yx("0x88")](),t[Yx("0x65")](Yx("0x38"),{forceDefaultExecution:!0}),t[Yx("0x3a")][Yx("0x3e")]((()=>{t[Yx("0x3a")][Yx("0x3e")](i,(t=>{const e=r[Yx("0x68")]((t=>"$graveyard"!=t[Yx("0x5a")][Yx("0x33")]));e[Yx("0x2f")]>0&&t[Yx("0x4f")](e);for(const t of r)t[Yx("0x3c")]()}))}))}))}function a(n){t[Yx("0x3a")].change((r=>{const i=Array[Yx("0xc")](e[Yx("0x18")]())[Yx("0x75")]((t=>s.LiveRange[Yx("0xe")](t))),o=[];for(const t of n)for(const e of t.getItems({shallow:!0}))o[Yx("0x67")](e);for(const e of o)Yx("0xb")!=e.root[Yx("0x33")]&&(r.setSelection(r[Yx("0x37")](e,0)),t[Yx("0x4c")][Yx("0x8a")]("removeTableColumn")[Yx("0x88")](),t[Yx("0x65")](Yx("0x24"),{forceDefaultExecution:!0}));const x=i[Yx("0x68")]((t=>Yx("0xb")!=t.root[Yx("0x33")]));x[Yx("0x2f")]>0&&r[Yx("0x4f")](x);for(const t of i)t.detach()}))}function c(t,e){return e.every((e=>t.some((t=>t.end[Yx("0x1f")](e[Yx("0x1d")])||e[Yx("0x6d")][Yx("0x1f")](t[Yx("0x1d")])))))}function l(t,e){return t[Yx("0x14")]((t=>e[Yx("0x14")]((e=>t.end.isTouching(e[Yx("0x1d")])))))}t[Yx("0x20")][Yx("0x17")].on(Yx("0x0"),((t,e,n)=>{if(!n[Yx("0x4")][Yx("0x4e")])return;const r=e[Yx("0x78")];if(!r)return;const i=n[Yx("0x21")].toViewElement(r);function o(t){return Array[Yx("0x72")](t)?t:[t]}i&&Yx("0x30")===r[Yx("0x51")]&&(0,x.setHighlightHandling)(i,n[Yx("0x85")],((t,e,n)=>n[Yx("0x64")](o(e[Yx("0x54")]),t)),((t,e,n)=>n[Yx("0x76")](o(e.classes),t)))}),{priority:Yx("0x7c")}),r[Yx("0x69")].registerDescriptionCallback((t=>{if(Yx("0x77")!=t[Yx("0x25")]&&Yx("0x5e")!=t[Yx("0x25")])return;const e=t[Yx("0x36")]();if(null!=e&&e.is(Yx("0x52"),"table")){if(Yx("0x77")==t[Yx("0x25")]){const e=t[Yx("0x6f")]()[Yx("0x68")]((t=>t.is(Yx("0x39"))))[Yx("0x75")]((t=>t[Yx("0x20")]));if(e[Yx("0x2f")])return{type:Yx("0x77"),content:Jr(n,Yx("0x55"),Jr(n,Yx("0x56"),'"'+e[Yx("0x7")](" ")+'"'))}}if("deletion"==t[Yx("0x25")]){const e=t[Yx("0x6f")]()[Yx("0x68")]((t=>t.is(Yx("0x39"))))[Yx("0x75")]((t=>t[Yx("0x20")]));if(e.length)return{type:Yx("0x5e"),content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x56"),'"'+e[Yx("0x7")](" ")+'"'))}}}})),r[Yx("0x69")][Yx("0x8")]((t=>{if(Yx("0x9")==t[Yx("0x62")]){const e=t[Yx("0x6f")]().filter((t=>t.is(Yx("0x39"))))[Yx("0x75")]((t=>t.data)),r=this[Yx("0x29")](t),i=r[Yx("0x12")]-r[Yx("0x2e")]+1;if("insertion"==t[Yx("0x25")])return e[Yx("0x2f")]?{type:"insertion",content:Jr(n,"*Insert:* %0",Jr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[i,'"'+e[Yx("0x7")](" ")+'"']))}:{type:"insertion",content:Jr(n,"*Insert:* %0",Jr(n,Yx("0x3b"),i))};if("deletion"==t[Yx("0x25")])return e[Yx("0x2f")]?{type:"deletion",content:Jr(n,Yx("0x31"),Jr(n,Yx("0x42"),[i,'"'+e[Yx("0x7")](" ")+'"']))}:{type:"deletion",content:Jr(n,Yx("0x31"),Jr(n,Yx("0x3b"),i))}}if(Yx("0x63")==t[Yx("0x62")]){const e=t[Yx("0x6f")]()[Yx("0x68")]((t=>t.is("$textProxy"))).map((t=>t[Yx("0x20")])),r=this._getSuggestionCoords(t),i=r[Yx("0x2a")]-r[Yx("0x11")]+1;if("insertion"==t[Yx("0x25")])return e.length?{type:Yx("0x77"),content:Jr(n,"*Insert:* %0",Jr(n,Yx("0x13"),[i,'"'+e[Yx("0x7")](" ")+'"']))}:{type:Yx("0x77"),content:Jr(n,"*Insert:* %0",Jr(n,Yx("0x15"),i))};if(Yx("0x5e")==t[Yx("0x25")])return e[Yx("0x2f")]?{type:Yx("0x5e"),content:Jr(n,Yx("0x31"),Jr(n,Yx("0x13"),[i,'"'+e[Yx("0x7")](" ")+'"']))}:{type:"deletion",content:Jr(n,"*Remove:* %0",Jr(n,"ELEMENT_TABLE_COLUMN",i))}}})),r[Yx("0x4d")].registerCustomCallback(Yx("0x77"),Yx("0x9"),Yx("0x6"),o),r[Yx("0x4d")][Yx("0x2d")](Yx("0x5e"),Yx("0x9"),"accept",o),r[Yx("0x4d")][Yx("0x2d")]("insertion","tableColumn",Yx("0x6"),a),r[Yx("0x4d")][Yx("0x2d")]("deletion",Yx("0x63"),Yx("0x1b"),a),r[Yx("0x4d")][Yx("0x2d")](Yx("0x77"),Yx("0x63"),"join",c),r[Yx("0x4d")][Yx("0x2d")](Yx("0x5e"),Yx("0x63"),Yx("0x7"),c),r[Yx("0x4d")][Yx("0x2d")](Yx("0x77"),"tableRow",Yx("0x7"),l),r[Yx("0x4d")].registerCustomCallback(Yx("0x5e"),Yx("0x9"),"join",l)}[Yx("0x58")](){const t=this.editor,e=t[Yx("0x3a")][Yx("0xd")][Yx("0x80")];return(n,r)=>{t[Yx("0x3a")][Yx("0x16")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Yx("0x6d")][Yx("0x4b")];x&&x[0]&&!1===x[0][Yx("0xf")]&&(a=n[0][Yx("0x1d")].nodeAfter);const c=i[Yx("0x1e")](a);if("$graveyard"==c[Yx("0x5a")].rootName)return;const l=Array[Yx("0xc")](e[Yx("0x18")]())[Yx("0x75")]((t=>s.LiveRange[Yx("0xe")](t)));i[Yx("0x4f")](c),t[Yx("0x4c")][Yx("0x8a")](o)[Yx("0x88")](),x[Yx("0x67")]({forceDefaultExecution:!0}),t[Yx("0x65")](o,...x);const u=l[Yx("0x68")]((t=>Yx("0xb")!=t[Yx("0x5a")].rootName));u[Yx("0x2f")]>0&&i[Yx("0x4f")](u);for(const t of l)t.detach()}))}}[Yx("0x2")](t){const e=this.editor[Yx("0x49")][Yx("0x8a")](Yx("0x84"));let n=Number[Yx("0x3d")],r=Number[Yx("0x87")],i=Number[Yx("0x3d")],o=Number.MIN_SAFE_INTEGER;for(const s of t){if(Yx("0xb")==s[Yx("0x5a")][Yx("0x33")])continue;const{row:t,column:x}=e[Yx("0x28")](s),a=s[Yx("0x81")](Yx("0x74"))?s.getAttribute("rowspan")-1:0,c=s[Yx("0x81")](Yx("0x70"))?s[Yx("0x3")]("colspan")-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Yx("0x7a")](){const t=this[Yx("0x1c")],e=t[Yx("0x49")][Yx("0x8a")](Yx("0x50")),n=t[Yx("0x49")][Yx("0x8a")](Yx("0x84"));t.model[Yx("0xd")].on(Yx("0x57"),(()=>{const n=Array.from(t[Yx("0x3a")][Yx("0xd")][Yx("0x82")][Yx("0x5c")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e._splitMarkerName(t);if(Yx("0x47")!=n)continue;if(null!=r[Yx("0x2b")])continue;const s=e[Yx("0x1")](i);this[Yx("0x60")].includes(o)&&this[Yx("0x89")][Yx("0x71")](s)}}),{priority:Yx("0x7b")});const r=(t,e)=>{let r=!1;const i=e[Yx("0x26")](t),o=t[Yx("0x5d")]("table"),s=n[Yx("0x28")](t);for(const e of this[Yx("0x89")]){const n=e[Yx("0x62")],x=n[Yx("0x6b")](Yx("0x73")),a=n.substr(x?10:5),c=a[Yx("0x7f")](),l=c[Yx("0x66")](0,3)+"span",u="min"+a,d=Yx("0x5")+a;if(!e[Yx("0xa")])continue;if(o!=e[Yx("0x5f")]()[Yx("0x1d")][Yx("0x5d")](Yx("0x53")))continue;if(e[Yx("0x6c")](i))continue;const g=t.hasAttribute(l)?t[Yx("0x3")](l)-1:0,f=this[Yx("0x29")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e.addRange(i),r=!0)}return r};t[Yx("0x3a")].document.registerPostFixer((e=>{let n=!1;for(const i of t[Yx("0x3a")][Yx("0xd")][Yx("0x82")].getChanges())if(Yx("0x10")==i.type)if(Yx("0x9")==i[Yx("0x51")])for(const t of i.position[Yx("0x19")][Yx("0x43")]())n=n||r(t,e);else Yx("0x30")==i[Yx("0x51")]&&(n=n||r(i[Yx("0x6a")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Yx("0x2")](t[Yx("0x18")]()[Yx("0x75")]((t=>t[Yx("0x1d")][Yx("0x19")])))}}function Qx(t){return Array[Yx("0xc")](new Set(t)[Yx("0x45")]())}const ta=["type","stop","registerDescriptionCallback","getCellLocation","cell","element","map","afterInit","detach","commands","value","_suggestionFactory","markBlockFormat","size","isInContent","mergeTableCellUp","editor","author","enableCommand","formatInline","refresh","createTableWalker","TableEditing","TableUtils","forceDefaultExecution","execute","_areMergableCells","set:isEnabled","commandName","requires","table","plugins","mergeTableCells","filter","splitTableCellHorizontally","low","getAncestors","mergeTableCellDown","root","change","markMultiRangeBlockFormat","direction","subType","getSuggestions","$graveyard","highest","deletion","getFirstPosition","selection","from","TrackChangesEditing","_areSelectedCellsMergable","get","length","mergeTableCellRight","_descriptionFactory","model","has","*Split cell:* horizontally","trackChanges","containsRange","*Merge cells*","_tablePostFixingSubtypes","find","tableCell","accept","mergeTableCellLeft","document","findAncestor","isEnabled","format","formatBlock","registerCustomCallback","getSelectionAffectedTableCells","horizontally","splitTableCellVertically","*Split cell:* vertically","createRangeOn","rootName","add","getRanges"];var ea,na;ea=ta,na=234,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get[ra("0x26")](){return[Jx]}[ra("0x10")](){const t=this[ra("0x19")],e=t[ra("0x41")][ra("0x4c")][ra("0x39")],n=t.locale;if(!t[ra("0x28")].has(ra("0x1f")))return;const r=t.plugins.get(ra("0x3b")),i=t[ra("0x28")][ra("0x3d")](ra("0x20")),o=t[ra("0x28")][ra("0x3d")](Jx);o[ra("0x47")].push("mergeTableCells"),r[ra("0x1b")](ra("0x29"),(()=>{const e=i[ra("0x1")](t[ra("0x41")].document.selection);t[ra("0x41")].change((()=>{r[ra("0x31")](e,{commandName:ra("0x29"),commandParams:[]},[],ra("0x29"))}))})),t.commands[ra("0x3d")](ra("0x29")).on(ra("0x22"),((e,n)=>{t[ra("0x12")][ra("0x3d")](ra("0x44"))[ra("0x13")]&&(n[ra("0x3e")]>0&&n[n[ra("0x3e")]-1]&&n[n[ra("0x3e")]-1][ra("0x21")]||r._isForcedDefaultExecutionBlock||this[ra("0x3c")]()||e[ra("0xa")]())}),{priority:ra("0x36")});for(const e of[ra("0x18"),"mergeTableCellRight",ra("0x2e"),ra("0x4b")]){const n=t[ra("0x12")][ra("0x3d")](e);r[ra("0x1b")](e,(()=>{const e=t.model[ra("0x4c")][ra("0x39")][ra("0x38")]()[ra("0x2d")]()[ra("0x48")]((t=>t.is(ra("0xe"),ra("0x49")))),i=n[ra("0x13")];t[ra("0x41")][ra("0x30")]((()=>{r[ra("0x31")]([e,i],{commandName:ra("0x29"),commandParams:[]},[],ra("0x29"))}))}))}for(const e of[ra("0x3"),"splitTableCellHorizontally"]){const n=t[ra("0x12")][ra("0x3d")](e);r[ra("0x1b")](e,(()=>{const o=i[ra("0x1")](t.model[ra("0x4c")][ra("0x39")])[0],s=o[ra("0x4d")](ra("0x27")),{column:x,row:a}=i[ra("0xc")](o);let c=[];if(ra("0x2")==n[ra("0x32")]){const t=i[ra("0x1e")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x3a")](t).map((t=>t[ra("0xd")]))}else{const t=i[ra("0x1e")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x3a")](t)[ra("0xf")]((t=>t[ra("0xd")]))}t[ra("0x41")][ra("0x30")]((t=>{r[ra("0x15")](t[ra("0x5")](o),{commandName:e,commandParams:[]},c,e)}))}))}r._descriptionFactory[ra("0xb")]((t=>{if(ra("0x50")!=t[ra("0x9")]&&ra("0x1c")!=t[ra("0x9")])return;const{data:e}=t;return e&&ra("0x29")==e.commandName?{type:ra("0x4f"),content:Jr(n,ra("0x46"))}:void 0})),r[ra("0x40")][ra("0xb")]((t=>{if(ra("0x50")!=t[ra("0x9")]&&ra("0x1c")!=t[ra("0x9")])return;const{data:e}=t;return e?ra("0x3")==e.commandName?{type:"format",content:Jr(n,ra("0x4"))}:"splitTableCellHorizontally"==e[ra("0x25")]?{type:ra("0x4f"),content:Jr(n,ra("0x43"))}:void 0:void 0}));const x=o._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp",ra("0x3f"),ra("0x2e"),ra("0x4b")])r._suggestionFactory.registerCustomCallback(ra("0x50"),t,ra("0x4a"),x);for(const t of["splitTableCellVertically",ra("0x2b")])r[ra("0x14")][ra("0x0")]("formatBlock",t,"accept",x);r._suggestionFactory[ra("0x0")]("formatBlock",ra("0x29"),"accept",(n=>{t[ra("0x41")][ra("0x30")]((r=>{const i=Array.from(e[ra("0x8")]())[ra("0xf")]((t=>s.LiveRange.fromRange(t)));r.setSelection(n),t[ra("0x12")][ra("0x3d")]("mergeTableCells")[ra("0x1d")](),t[ra("0x22")](ra("0x29"),{forceDefaultExecution:!0});const o=i[ra("0x2a")]((t=>ra("0x35")!=t[ra("0x2f")][ra("0x6")]));o[ra("0x3e")]>0&&r.setSelection(o);for(const t of i)t[ra("0x11")]()}))}));for(const e of["mergeTableCellUp",ra("0x2e"),ra("0x4b"),ra("0x3f")]){const n=t.commands.get(e);n.on(ra("0x24"),((e,r,i)=>{if(i){const r=t[ra("0x41")].document[ra("0x39")][ra("0x38")]()[ra("0x2d")]()[ra("0x48")]((t=>t.is("element",ra("0x49"))));this._areMergableCells(n[ra("0x13")],r)||(e.return=!1,e[ra("0xa")]())}}),{priority:ra("0x2c")})}}[ra("0x3c")](){const t=this.editor[ra("0x12")][ra("0x3d")](ra("0x29")),e=this[ra("0x19")][ra("0x28")][ra("0x3d")](ra("0x20"));if(!t[ra("0x4e")])return!1;const n=e[ra("0x1")](this[ra("0x19")][ra("0x41")][ra("0x4c")][ra("0x39")]);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x23")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this.editor.plugins[ra("0x3d")]("TrackChangesEditing"),r=this[ra("0x19")][ra("0x41")][ra("0x5")](t),i=this[ra("0x19")].model[ra("0x5")](e),o=new Set,s=new Set;for(const t of n[ra("0x34")]())if(("insertion"==t[ra("0x9")]||ra("0x37")==t[ra("0x9")]||ra("0x29")==t[ra("0x33")])&&t[ra("0x17")])for(const e of t[ra("0x8")]())e[ra("0x45")](r,!0)&&o[ra("0x7")](t.type+":"+t[ra("0x1a")].id),e[ra("0x45")](i,!0)&&s[ra("0x7")](t[ra("0x9")]+":"+t[ra("0x1a")].id);if(o[ra("0x16")]!=s[ra("0x16")])return!1;for(const t of o)if(!s[ra("0x42")](t))return!1;return!0}}const oa=["setTableRowHeader","TableEditing","*Format:* %0","plugins","addMarker:suggestion","getSuggestion","_suggestionFactory","setTableColumnHeader","removeClass","FORMAT_HEADER_ROW","_descriptionFactory","commandName","setAttribute","_acceptFormatSuggestionCallbackFactory","formatBlock","editor","_enableDefaultAttributesIntegration","cell","mapper","ck-suggestion-marker-","data","downcastDispatcher","_splitMarkerName","options","type","_registerLegacyDescription","getCellLocation","data-suggestion","writer","FORMAT_REGULAR_COLUMN","removeMarker:suggestion","unbindElementFromMarkerName","forceValue","editing","TableUtils","_handleLegacySuggestions","headingRows","accept","afterInit","locale","consume","TrackChangesEditing","stop","parent","createTableWalker","addClass","end","activeMarkers","registerDescriptionCallback","markerNameToElements","commandParams","nodeAfter","FORMAT_HEADER_COLUMN","highest","markerName","requires","ck-suggestion-marker--active","format","start","get","headingColumns","registerAttributeLabel","consumable","showSuggestionHighlights","item","markerRange"];var sa,xa;sa=oa,xa=381,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x4")](){return[Jx]}[aa("0x35")](){const t=this[aa("0x1e")];if(!t.plugins.has(aa("0x10")))return;const e=t[aa("0x36")],n=t.plugins.get(aa("0x38"));n[aa("0x1f")](aa("0xf"),[],[aa("0x33")]),n[aa("0x1f")](aa("0x16"),[],[aa("0x9")]),n[aa("0x19")][aa("0xa")]("headingRows",Jr(e,aa("0x18"))),n[aa("0x19")][aa("0xa")]("headingColumns",Jr(e,aa("0x1"))),this[aa("0x32")]()}_handleLegacySuggestions(){const t=this.editor[aa("0x12")][aa("0x8")](aa("0x38")),e=this[aa("0x1e")][aa("0x12")][aa("0x8")](aa("0x31")),n=this[aa("0x1e")].plugins[aa("0x8")](Jx)[aa("0x1c")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0x25")](o[aa("0x3")]),c=t[aa("0x14")](a),l=c[aa("0x23")];if("formatBlock"!=c[aa("0x27")]||!l||aa("0x16")!=l[aa("0x1a")])return;if(o[aa("0xd")])return void i[aa("0x39")]();if(!s[aa("0xb")][aa("0x37")](o[aa("0xe")],i.name))return;const u=o[aa("0xe")][aa("0x7")][aa("0x0")],d=o.markerRange[aa("0x3d")].nodeBefore,g=u.parent[aa("0x3a")],{column:f}=e[aa("0x29")](u),{column:h}=e[aa("0x29")](d);for(let i=f;i<=h;i++){const c=e[aa("0x3b")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[aa("0x20")],c=s[aa("0x21")].toViewElement(i);s[aa("0x2b")][aa("0x3c")]("ck-suggestion-marker-"+x,c),r&&s[aa("0x2b")][aa("0x1b")](aa("0x2a"),a,c),s.mapper.bindElementToMarker(c,o[aa("0x3")]),n&&(t[aa("0x3e")].includes(o[aa("0x3")])?s.writer[aa("0x3c")](aa("0x5"),c):s.writer[aa("0x17")](aa("0x5"),c))}}}}t._suggestionFactory.registerCustomCallback(aa("0x1d"),aa("0xf"),"accept",n),t[aa("0x15")].registerCustomCallback(aa("0x1d"),"setTableColumnHeader",aa("0x34"),n),this[aa("0x1e")][aa("0x30")].downcastDispatcher.on(aa("0x13"),r(),{priority:aa("0x2")}),this.editor[aa("0x23")][aa("0x24")].on(aa("0x13"),((t,e,n)=>{n[aa("0x26")][aa("0xc")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x2")}),this[aa("0x1e")].editing.downcastDispatcher.on(aa("0x2d"),((e,n,r)=>{const{type:i,id:o}=t[aa("0x25")](n[aa("0x3")]),s=t[aa("0x14")](o),x=s[aa("0x23")];if(aa("0x1d")!=s[aa("0x27")]||!x||"setTableColumnHeader"!=x.commandName)return;const a=r[aa("0x21")][aa("0x40")](n[aa("0x3")]);if(a)for(const t of a)r[aa("0x2b")][aa("0x17")](aa("0x22")+i,t),r.writer[aa("0x17")]("ck-suggestion-marker--active",t),r.writer.removeAttribute(aa("0x2a"),t),r[aa("0x21")][aa("0x2e")](t,n[aa("0x3")])}),{priority:aa("0x2")}),this[aa("0x28")]()}_registerLegacyDescription(){const t=this[aa("0x1e")],e=t[aa("0x36")];function n(t){return{type:aa("0x6"),content:Jr(e,aa("0x11"),t)}}t.plugins.get("TrackChangesEditing")[aa("0x19")][aa("0x3f")]((t=>{if("formatBlock"!=t[aa("0x27")])return;const{data:r}=t;if(r){if(aa("0xf")==r[aa("0x1a")]){const t=r[aa("0x41")][0][aa("0x2f")];return n(Jr(e,t?aa("0x18"):"FORMAT_REGULAR_ROW"))}if(aa("0x16")==r.commandName){const t=r[aa("0x41")][0][aa("0x2f")];return n(Jr(e,aa(t?"0x1":"0x2c")))}}}))}}const la=["register","editing","move","getColumnIndexes","dataDowncast","updateMarker","subType","createElement","content","add","position","plugins","value","getShiftedBy","oldRange","markerToHighlight","suggestion","getRange","nodeAfter","TableClipboard","set","getChild","discard","last","tablePaste","nextSibling","TableUtils","formatBlock","reduce","every","getAttributes","suggestionLoaded","_getCoordsForCells","has","document","from","_isForcedDefaultExecutionBlock","forceDefaultExecution","registerDescriptionCallback","columns","getSuggestionCallback","getColumns","suggestionUnloaded","_replaceTableSlotCell","deletionRanges","getSuggestions","editingDowncast","suggestion-td","tableCellHorizontalAlignment","table","tableCellBackgroundColor","isEqual","getContainedElement","endColumn","createRangeIn","tablePasteRow","registerPostFixer","insertRows","some","conversion","setAttribute","return","createRange","batch","listenTo","tablePasteChainId","model","markMultiRangeInsertion","map","getRows","newRange","wrap","attributes","root","accept","view","removeMarker","registerCustomCallback","redo","element","insert","createPositionBefore","getSelectionAffectedTableCells","*Replace table cells*","tableCellVerticalAlignment","_splitMarkerName","tableCellSuggestion","_suggestionFactory","startsWith","filter","next","createRangeOn","$graveyard","fill","insertColumns","markMultiRangeBlockFormat","schema","setAttributes","markerName","fromEntries","selection","getSuggestion","removeColumns","previous","activeMarkers","endRow","find","tableCellBorderWidth","join","push","author","getChildren","markers","deletion","tableCell","afterInit","_tablePostFixingSubtypes","editor","removeRows","change","tablePasteColumn","options","ck-suggestion-marker-insertion","getChangedMarkers","insertion","rootName","markerAttributes","column","_createdBatches","isEmpty","isInContent","Users","findAncestor","remove","columnInsertionIndexes","insertContent","getChanges","stop","trackChanges","high","suggestion:formatBlock:tablePasteCell","unwrap","first","columnInsertionRanges","length","low","getMarkers","getAllAdjacentSuggestions","tableCellBorderStyle","getRanges","markMultiRangeDeletion","get","elementToElement","differ","showSuggestionHighlights","paragraph","tablePasteCell","tableCellPadding","includes","rowInsertionIndexes","locale","for","hasSuggestion","commands","rowInsertionRanges","end","createTableWalker","ck-suggestion-marker--active","type"];var ua,da;ua=la,da=380,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x41"),"tableCellBorderColor",ga("0x6a"),ga("0x6"),ga("0x2a"),ga("0x8"),ga("0x73")],ha=Object.fromEntries(fa[ga("0x1a")]((t=>[t,null])));class ma extends t.Plugin{static get requires(){return[Jx]}[ga("0x49")](){const t=this[ga("0x4b")];if(!t[ga("0x8a")][ga("0xa0")]("TableClipboard"))return;const n=t[ga("0x8a")].get("TrackChangesEditing"),r=t.plugins[ga("0x6d")](ga("0x99")),i=t[ga("0x8a")][ga("0x6d")](Jx),o=t[ga("0x8a")][ga("0x6d")](ga("0x92"));i[ga("0x4a")][ga("0x43")](ga("0xd"),ga("0x4e")),t.model[ga("0x36")][ga("0x7f")](ga("0x2c"),{allowIn:ga("0x48"),allowContentOf:ga("0x48"),isLimit:!0}),t[ga("0x11")][ga("0x6e")]({model:ga("0x2c"),view:ga("0x5")});let s=null;t[ga("0x18")].on("insertContent",((i,x)=>{const[a,c]=x,l=x[x[ga("0x66")]-1];l&&l[ga("0xa4")]||n[ga("0xa3")]||this.editor[ga("0x79")][ga("0x6d")](ga("0x60"))[ga("0x8b")]&&function(t,e,n,r,i){if(e&&!e.is("documentSelection"))return!1;const o=i.getTableIfOnlyTableInContent(t,n);if(!o||!pa(o,void 0,r))return!1;const s=r[ga("0x28")](n[ga("0xa1")][ga("0x3a")]);if(!s[ga("0x66")])return!1;const x=s[0][ga("0x5a")](ga("0x7")),a=r.getRowIndexes(s),c=r[ga("0x82")](s),l={startRow:a.first,endRow:a[ga("0x96")],startColumn:c[ga("0x64")],endColumn:c.last};return 1==s[ga("0x66")]&&(l[ga("0x3f")]+=r[ga("0x1b")](o)-1,l[ga("0xb")]+=r[ga("0xa8")](o)-1),pa(x,l,r)}(a,c,t[ga("0x18")],r,o)&&(i.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x18")][ga("0x4d")]((()=>{t.model[ga("0x5d")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x66")]&&n[ga("0x19")](i,ga("0xd"),{tablePasteChainId:r}),o[ga("0x66")]&&n[ga("0x19")](o,"tablePasteColumn",{tablePasteChainId:r}),a[ga("0x66")]&&n[ga("0x19")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x66")]&&n[ga("0x6c")](c,ga("0x97"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x35")](l[ga("0x1a")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x72"),{tablePasteChainId:r});if(u){const e=u[ga("0x68")](),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x18")].createRangeOn(r),s=e.find((t=>t.getRange().isEqual(o)));s&&n.push([s.name,i])}n[ga("0x66")]&&u[ga("0x12")]("markerAttributes",Object[ga("0x39")](n))}s=null})))}),{priority:e.priorities[ga("0x61")]+10}),t[ga("0x8a")][ga("0x6d")](ga("0x92")).on(ga("0x1"),((t,e)=>{const[n,r,,i]=e;if(!s)return;t[ga("0x5f")]();const o=n.cell,x=r,a=ba(o),c=ba(x);t[ga("0x13")]=o;let l=null,u=null;if(c||a)if(a&&!c){i[ga("0x5b")](o.getChild(0));for(const t of Array[ga("0xa2")](x[ga("0x45")]()))i[ga("0x26")](t,o,ga("0x7b"));const t=s[ga("0x75")][ga("0x74")](n.row),e=s.columnInsertionIndexes.includes(n[ga("0x55")]);t||e||(l=i.createRangeIn(o))}else c&&!a&&(u=i.createRangeIn(o));else{const t=i.createElement("tableCellSuggestion"),e=i[ga("0x86")]("tableCellSuggestion");i[ga("0x1d")](i[ga("0xc")](o),e),i[ga("0x26")](t,o,0);for(const e of Array[ga("0xa2")](x.getChildren()))i[ga("0x26")](e,t,ga("0x7b"));l=i[ga("0x31")](t),u=i.createRangeOn(e)}const d=Array[ga("0xa2")](x[ga("0x9d")]())[ga("0x2f")]((([t])=>fa.includes(t)));s.cells[ga("0x43")]({element:o,attributes:d[ga("0x66")]?Object[ga("0x39")](d):null}),l&&s.insertionRanges[ga("0x43")](l),u&&s[ga("0x2")].push(u)}),{priority:"high"}),r.on(ga("0x34"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0xa6")]||1;s[ga("0x5c")]=new Array(a).fill(x)[ga("0x1a")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x7c")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x65")][ga("0x43")](t.model[ga("0x31")](e))}),{priority:ga("0x67")}),r.on(ga("0xf"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.rows||1;s[ga("0x75")]=new Array(a)[ga("0x33")](x)[ga("0x1a")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x7c")](i,{startRow:x,endRow:x+a-1}))s[ga("0x7a")][ga("0x43")](t[ga("0x18")][ga("0x31")](e))}),{priority:ga("0x67")}),n._descriptionFactory[ga("0xa5")]((e=>{if(e[ga("0x85")]&&e[ga("0x85")][ga("0x2e")](ga("0x97")))return e[ga("0x3d")]?{}:{type:ga("0x52"),content:Jr(t[ga("0x76")],ga("0x29"))}}));const x=()=>!1;for(const t of["tablePaste",ga("0x4e"),ga("0xd"),"tablePasteCell"])n[ga("0x2d")][ga("0x23")](ga("0x52"),t,"join",x),n[ga("0x2d")].registerCustomCallback("deletion",t,"join",x),n._suggestionFactory[ga("0x23")](ga("0x9a"),t,ga("0x42"),x);n[ga("0x2d")][ga("0x23")]("formatBlock","tablePasteCell","discard",x),n[ga("0x2d")][ga("0x23")](ga("0x9a"),ga("0x72"),ga("0x20"),((e,n,r)=>{const i=e.map((t=>t.getContainedElement())).filter((t=>t)),o=new Map(i.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&o[ga("0x93")](t,e);else if(r&&r[ga("0x54")])for(const[e,n]of Object.entries(r.markerAttributes)){const r=t.model[ga("0x46")][ga("0x6d")](e),i=r?r[ga("0x90")]().getContainedElement():null;i&&o.set(i,n)}t.model[ga("0x4d")]((t=>{for(const[e,n]of o)t[ga("0x37")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x2d")][ga("0x23")](e,"tablePaste",r,((i,o,s)=>{t[ga("0x18")].change((t=>{const x=[];for(const t of i){const e=t.start[ga("0x91")];e.is(ga("0x25"),"tableCellSuggestion")&&x.push(e)}n._suggestionFactory[ga("0xa7")](e,null,r)(i,o,s);for(const e of x)ga("0x32")!=e[ga("0x1f")][ga("0x53")]&&t[ga("0x63")](e)}))}))};a(ga("0x52"),ga("0x20")),a(ga("0x52"),"discard"),a(ga("0x47"),"accept"),a(ga("0x47"),ga("0x95")),n[ga("0x2d")][ga("0x23")](ga("0x52"),"tablePasteRow",ga("0x95"),(t=>{const e=t[ga("0x1a")]((t=>t[ga("0xa")]())),n=e[0][ga("0x5a")]("table"),{minRow:o,maxRow:s}=i[ga("0x9f")](e);r[ga("0x4c")](n,{at:o,rows:s-o+1})})),n[ga("0x2d")][ga("0x23")]("insertion",ga("0x4e"),ga("0x95"),(t=>{const e=t[ga("0x1a")]((t=>t[ga("0xa")]())),n=e[0].findAncestor("table"),{minColumn:o,maxColumn:s}=i._getCoordsForCells(e);r[ga("0x3c")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x85")]||!e.subType[ga("0x2e")](ga("0x97")))return;const r=e.attributes[ga("0x17")],i=n[ga("0x3")]()[ga("0x2f")]((t=>t[ga("0x58")]&&t[ga("0x1e")]&&t[ga("0x1e")].tablePasteChainId==r));i.length&&e.getAllAdjacentSuggestions()[ga("0x66")]!=i[ga("0x66")]&&i[ga("0x9b")](((t,e)=>(t[ga("0x30")]=e,e[ga("0x3d")]=t,e)))};function l(t,e=!0){const{id:r}=n[ga("0x2b")](t.markerName),i=["ck-suggestion-marker",ga("0x50")],o=n[ga("0x3e")][ga("0x74")](t[ga("0x38")]);return o&&i[ga("0x43")](ga("0x7d")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on(ga("0x9e"),c,{priority:ga("0x61")}),n.on(ga("0x0"),c,{priority:ga("0x61")}),t.model[ga("0xa1")][ga("0xe")]((()=>{let e=!1;const r=Array[ga("0xa2")](t.model[ga("0xa1")][ga("0x6f")][ga("0x51")]());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x2b")](i);if(ga("0x8f")!=r||ga("0x47")!=s||o[ga("0x8d")])continue;if(!n[ga("0x78")](x))continue;const a=n[ga("0x3b")](x).getRanges(),c=t[ga("0x8a")][ga("0x6d")](ga("0x59")).me;for(const t of n.getSuggestions())if(t.isInContent&&t[ga("0x44")]==c&&ga("0x9a")==t[ga("0x7e")]&&ga("0x72")==t[ga("0x85")]&&t[ga("0x6b")]()[ga("0x9c")]((t=>a[ga("0x10")]((e=>e.containsRange(t,!0))))))for(const n of t[ga("0x69")]())n[ga("0x58")]&&(n[ga("0x95")](),e=!0)}return e})),t[ga("0x18")][ga("0xa1")].registerPostFixer((e=>{const r=t[ga("0x79")][ga("0x6d")](ga("0x24"));if(!r||!r[ga("0x56")][ga("0xa0")](e[ga("0x15")]))return!1;let i=!1;const o=t[ga("0x8a")][ga("0x6d")](ga("0x59")).me,s=t[ga("0x18")][ga("0xa1")][ga("0x6f")][ga("0x5e")](),x=Array[ga("0xa2")](t[ga("0x18")][ga("0xa1")].differ[ga("0x51")]())[ga("0x2f")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x2b")](t);return"suggestion"==r&&ga("0x97")==i&&s==o.id&&!e[ga("0x8d")]}));for(const t of s){if(ga("0x26")!=t.type||ga("0x2c")!=t.name||1!=t[ga("0x66")])continue;const n=e[ga("0x14")](t[ga("0x89")],t[ga("0x89")][ga("0x8c")](1));if(!x[ga("0x40")]((({data:t})=>t[ga("0x1c")][ga("0x9")](n))))for(const{name:t,data:r}of x)if(n.containsRange(r[ga("0x1c")])){e[ga("0x84")](t,{range:n}),i=!0;break}}return i})),t[ga("0x18")][ga("0xa1")].registerPostFixer((e=>{let r=!1;const i=t[ga("0x8a")].get(ga("0x59")).me,o=n[ga("0x3")]().filter((t=>t[ga("0x58")]&&t[ga("0x44")]==i)),s=new Set,x=new Set;for(const t of o)if(ga("0x97")==t[ga("0x85")])for(const e of t[ga("0x68")]()){const n=e[ga("0x90")]()[ga("0xa")]();if(n)if(n.is(ga("0x25"),ga("0x2c"))&&ba(n)){t[ga("0x22")](e.name),s.add(n),r=!0;const i=n[ga("0x98")],o=n.previousSibling,a=i&&i.is(ga("0x25"),ga("0x2c")),c=o&&o.is(ga("0x25"),ga("0x2c"));a&&!s.has(i)&&x[ga("0x88")](i),c&&!s[ga("0xa0")](o)&&x[ga("0x88")](o)}else n.is(ga("0x25"),ga("0x71"))&&n.isEmpty&&(t[ga("0x22")](e.name),r=!0)}else if("tablePasteCell"==t[ga("0x85")]){if(!t[ga("0x1e")]||!t[ga("0x1e")][ga("0x17")])continue;const e=t.attributes.markerAttributes;if(e&&Object.keys(e)[ga("0x66")])continue;const n=t[ga("0x1e")].tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e.subType&&e[ga("0x85")][ga("0x2e")](ga("0x97"))){if(!e[ga("0x1e")][ga("0x17")]){s=!1;break}if(e.id!=t.id&&e[ga("0x1e")][ga("0x17")]==n){i=!1;break}}s&&i&&(t.removeMarkers(),r=!0)}for(const t of s)e[ga("0x5b")](t);for(const t of x)e.unwrap(t);return r})),t[ga("0x11")][ga("0x77")](ga("0x4"))[ga("0x8e")]({model:ga("0x62"),view:(t,e)=>l(t),converterPriority:ga("0x61")}),t.conversion[ga("0x77")](ga("0x83"))[ga("0x8e")]({model:ga("0x62"),view:(t,e)=>e[ga("0x4f")][ga("0x70")]?l(t,!1):null,converterPriority:ga("0x61")});const u=t[ga("0x80")][ga("0x21")];this[ga("0x16")](u[ga("0xa1")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ga("0xc")](e[ga("0x87")]).getItems())t.is(ga("0x25"),ga("0x5"))&&n[ga("0x43")](t);u[ga("0x4d")]((t=>{for(const e of n)t[ga("0x81")](t.createRangeIn(e),t[ga("0x27")](e)),t[ga("0x5b")](e)}))}))}}function ba(t){if(t.isEmpty)return!0;const e=t[ga("0x94")](0);return e.is("element",ga("0x71"))&&e[ga("0x57")]}function pa(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n[ga("0x7c")](t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["type","data","Users","markBlockFormat","accept","registerDescriptionCallback","discard","afterInit","formatBlock","getContainedElement","getSelectedElement","TableColumnResizeEditing","getTableColumnsWidths","formatInline","*Format:* resize table","getAttribute","change","columnWidths","enableCommand","editor","resizeTableWidth","_descriptionFactory","plugins","bind","handleSuggestionDescription","subType","has","TrackChangesEditing","getColumnGroupElement","tableWidth","document","handleResizeTableWidthCommand","getSuggestions","commandParams","resizeTable","_suggestionFactory","model","get","formatGroupId","table"];var _a,Ta;_a=Ea,Ta=384,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x17")](){if(!this.editor.plugins[ya("0x2")](ya("0x1b")))return;const t=this[ya("0x23")][ya("0x26")].get(ya("0x3"));t[ya("0x22")](ya("0x24"),this[ya("0x7")][ya("0x27")](this)),t[ya("0xb")].registerCustomCallback(ya("0x18"),ya("0xa"),ya("0x14"),t[ya("0xb")].getSuggestionCallback(ya("0x18"),null,ya("0x16"))),t[ya("0xb")].registerCustomCallback(ya("0x18"),"resizeTable",ya("0x16"),t[ya("0xb")].getSuggestionCallback(ya("0x18"),null,ya("0x14"))),t[ya("0x25")][ya("0x15")](this[ya("0x0")][ya("0x27")](this))}[ya("0x7")](t,e){const n=this[ya("0x23")][ya("0x26")][ya("0xd")](ya("0x3")),r=this[ya("0x23")][ya("0x26")][ya("0xd")](ya("0x1b")),i=e[ya("0xf")]||this[ya("0x23")][ya("0xc")][ya("0x6")].selection[ya("0x1a")]();this.editor[ya("0xc")][ya("0x20")]((()=>{const o=r[ya("0x4")](i);let s=o?r[ya("0x1c")](o):null,x=i[ya("0x1f")]("tableWidth")||null;const a=e[ya("0x5")]||x,c=e[ya("0x21")]||s,l=this[ya("0x23")][ya("0x26")].get(ya("0x12")).me;for(const t of n[ya("0x8")]()){const e=t[ya("0x19")]();if(ya("0xa")===t[ya("0x1")]&&e===i){t.author!==l&&t[ya("0x16")]();const e=t[ya("0x11")][ya("0x9")];x=e[0][ya("0x5")],s=e[0][ya("0x21")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0x13")](i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0xa")},[],ya("0xa"))}))}[ya("0x0")](t){if(ya("0x18")!=t[ya("0x10")]&&ya("0x1d")!=t[ya("0x10")])return;const{data:e}=t;if(e&&ya("0xa")===e[ya("0xe")]){const t=ya("0x1e");return{type:"format",content:Jr(this.editor.locale,t)}}}}const Aa=["insertTemplate","get","plugins","enableCommand","Template","has","afterInit","editor"];var ka,Ia;ka=Aa,Ia=342,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Sa=function(t,e){return Aa[t-=0]};class Ra extends t.Plugin{[Sa("0x0")](){const t=this[Sa("0x1")];t[Sa("0x4")][Sa("0x7")](Sa("0x6"))&&t[Sa("0x4")][Sa("0x3")]("TrackChangesEditing")[Sa("0x5")](Sa("0x2"))}}const Na=["_descriptionFactory","enableCommand","commands","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents","get","editor","locale","afterInit","tableOfContents"];var va,La;va=Na,La=455,function(t){for(;--t;)va.push(va.shift())}(++La);const Ma=function(t,e){return Na[t-=0]};class wa extends t.Plugin{[Ma("0x5")](){const t=this[Ma("0x3")];if(!t[Ma("0x9")][Ma("0x2")](Ma("0x1")))return;t.plugins[Ma("0x2")](Ma("0xa"))[Ma("0x8")]("insertTableOfContents");const e=t.plugins[Ma("0x2")](Ma("0xa")),n=t[Ma("0x4")];e[Ma("0x7")].registerElementLabel(Ma("0x6"),(t=>Jr(n,Ma("0x0"),t)))}}const Oa=["afterInit","element","getNearestSelectionRange","suggestion","schema","plugins","isEqual","document","forward","has","TrackChangesEditing","end","removeMarker","ELEMENT_TITLE","newRange","editor","start","registerPostFixer","differ","updateMarker","_descriptionFactory","model","getChangedMarkers","locale","isTouching","nodeBefore","get"];var Fa,Da;Fa=Oa,Da=499,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{[Ba("0xe")](){const t=this[Ba("0x2")];if(!t[Ba("0x13")][Ba("0x17")]("Title"))return;const e=t.plugins[Ba("0xd")](Ba("0x18"));e[Ba("0x7")].registerElementLabel("title-content",(()=>Jr(t[Ba("0xa")],Ba("0x0")))),t[Ba("0x8")][Ba("0x15")][Ba("0x4")]((n=>{let r=!1;const i=Array.from(t[Ba("0x8")][Ba("0x15")][Ba("0x5")][Ba("0x9")]());for(const{name:o,data:s}of i){const{group:i}=e._splitMarkerName(o);if(Ba("0x11")!==i||!s[Ba("0x1")])continue;const x=s[Ba("0x1")],a=x.end[Ba("0xc")];if(!a||!a.is(Ba("0xf"),"title-content"))continue;if(!x[Ba("0x3")][Ba("0xb")](x[Ba("0x19")]))continue;const c=t[Ba("0x8")][Ba("0x12")][Ba("0x10")](x[Ba("0x19")],Ba("0x16"));if(c&&c.isCollapsed){const t=n.createRange(x[Ba("0x3")],c[Ba("0x3")]);t[Ba("0x14")](x)||(n[Ba("0x6")](o,{range:t}),r=!0)}r||(n[Ba("0x1a")](o),r=!0)}return r}))}}const Ua=["plugins","has","afterInit","undo","redo","TrackChangesEditing","enableCommand","get","editor"];var ja,Ga;ja=Ua,Ga=388,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x1")](){const t=this[Va("0x7")],e=t[Va("0x8")][Va("0x6")](Va("0x4"));t[Va("0x8")][Va("0x0")]("UndoEditing")&&(e[Va("0x5")](Va("0x2")),e.enableCommand(Va("0x3")))}}const za=["TableCaptionEditing","has","requires","toggleTableCaption","editor","get","plugins"];var Wa,Ka;Wa=za,Ka=477,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class $a extends t.Plugin{static get[qa("0x1")](){return[Jx]}afterInit(){const t=this[qa("0x3")];t[qa("0x5")][qa("0x0")](qa("0x6"))&&t.plugins[qa("0x4")]("TrackChangesEditing").enableCommand(qa("0x2"))}}const Xa=["tableBorderStyle","join","tableCellWidth","TablePropertiesEditing","_suggestionFactory","afterInit","tableHeight","editor","getSuggestions","pluginName","getSelectionAffectedTableCells","get","markBlockFormat","plugins","removeAttribute","table","enableCommand","tableCellBorderWidth","TrackChangesTableProperties","tableWidth","getFirstPosition","locale","selection","tableBorderColor","getAttribute","setAttribute","handleDiscardAction","tableCellProperties","tableAlignment","format","formatBlock","start","*Format:* change table properties","discard","tableBackgroundColor","subType","getContainedElement","tableCellHeight","TableUtils","model","document","registerCustomCallback","handleSuggestionDescription","tableCellBorderColor","tableProperties","TrackChangesEditing","tableCellHorizontalAlignment","_getSuggestion","change","data","_handlePropertyChange","has","tableCellBorderStyle","registerDescriptionCallback"];var Za,Ya;Za=Xa,Ya=340,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return Xa[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this.tableProperties=[Ja("0x7"),Ja("0x26"),"tableBorderWidth",Ja("0xc"),Ja("0x3"),Ja("0x2c"),Ja("0x12")],this[Ja("0xb")]=[Ja("0x1b"),Ja("0x24"),Ja("0x1"),"tableCellPadding",Ja("0x28"),Ja("0x15"),"tableCellBackgroundColor",Ja("0x1e"),"tableCellVerticalAlignment"]}static get[Ja("0x2f")](){return Ja("0x2")}[Ja("0x2b")](){const t=this[Ja("0x2d")][Ja("0x33")][Ja("0x31")](Ja("0x1d"));if(this[Ja("0x2d")].plugins.has(Ja("0x29"))){for(const e of this[Ja("0x1c")])t[Ja("0x0")](e,((t,n)=>{const r=this[Ja("0x2d")][Ja("0x17")].document[Ja("0x6")][Ja("0x4")]().findAncestor(Ja("0x35"));this._handlePropertyChange(e,[r],this[Ja("0x1c")],Ja("0x1c"),t,n)}));t._suggestionFactory[Ja("0x19")](Ja("0xe"),Ja("0x1c"),"accept",t[Ja("0x2a")].getSuggestionCallback(Ja("0xe"),null,Ja("0x11"))),t._suggestionFactory[Ja("0x19")](Ja("0xe"),"tableProperties",Ja("0x11"),((t,e)=>this[Ja("0xa")](this[Ja("0x1c")],t,e))),t[Ja("0x2a")].registerCustomCallback(Ja("0xe"),Ja("0x1c"),Ja("0x27"),(()=>!1))}if(this[Ja("0x2d")][Ja("0x33")][Ja("0x23")]("TableCellPropertiesEditing")){for(const e of this[Ja("0xb")])t[Ja("0x0")](e,((t,n)=>{const r=this[Ja("0x2d")][Ja("0x33")].get(Ja("0x16"))[Ja("0x30")](this[Ja("0x2d")][Ja("0x17")][Ja("0x18")][Ja("0x6")]);this[Ja("0x22")](e,r,this.tableCellProperties,Ja("0xb"),t,n)}));t[Ja("0x2a")][Ja("0x19")](Ja("0xe"),Ja("0xb"),"accept",t[Ja("0x2a")].getSuggestionCallback(Ja("0xe"),null,Ja("0x11"))),t[Ja("0x2a")][Ja("0x19")]("formatBlock",Ja("0xb"),Ja("0x11"),((t,e)=>this[Ja("0xa")](this[Ja("0xb")],t,e))),t[Ja("0x2a")][Ja("0x19")](Ja("0xe"),"tableCellProperties",Ja("0x27"),(()=>!1))}t._descriptionFactory[Ja("0x25")]((t=>this[Ja("0x1a")](t)))}[Ja("0x22")](t,e,n,r,i,o){const s=this[Ja("0x2d")][Ja("0x33")].get(Ja("0x1d"));this.editor[Ja("0x17")].enqueueChange(o.batch,(()=>{for(const t of e)if(this[Ja("0x1f")](t,r))i(o);else{const e={};for(const r of n){const n=t[Ja("0x8")](r);void 0!==n&&(e[r]=n)}i(o),s[Ja("0x32")](t,{commandParams:[e]},[],r)}}))}[Ja("0xa")](t,e,n){const r=e[0][Ja("0xf")].nodeAfter,i=n.commandParams[0];this[Ja("0x2d")].model[Ja("0x20")]((e=>{for(const n of t)void 0!==i[n]?e[Ja("0x9")](n,i[n],r):e[Ja("0x34")](n,r)}))}handleSuggestionDescription(t){if(t[Ja("0x21")])switch(t[Ja("0x13")]){case Ja("0x1c"):return{type:Ja("0xd"),content:Jr(this[Ja("0x2d")].locale,Ja("0x10"))};case Ja("0xb"):return{type:Ja("0xd"),content:Jr(this[Ja("0x2d")][Ja("0x5")],"*Format:* change table cell properties")}}}[Ja("0x1f")](t,e){const n=this.editor[Ja("0x33")][Ja("0x31")](Ja("0x1d"));for(const r of n[Ja("0x2e")]({skipNotAttached:!0})){const n=r[Ja("0x14")]();if(r[Ja("0x13")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=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 dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const bc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const pc=function(t){return bc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["refresh","createPositionAfter","formatBlock","discardAllSuggestions","markDeletion","_joinWithAdjacentSuggestions","deleteContent","get","howMany","_isDataLoaded","_descriptionFactory","getCustomProperty","isUndo","default","setAttribute","ready","getAttribute","isRemovable","remove","markerToHighlight","createRangeIn","move","after","_getMarkerAnnouncementText","removeMarker:suggestion:formatBlock","getLastMatchingPosition","open","addUser","markMultiRangeInsertion","deletion:accept","_trackFormatChanges","@external","_processAttributeSuggestions","track-changes-adapter-missing-getsuggestion","applyOperation","isLimit","addMarkerName","selection","deletion:discard","tablePasteChainId","trackChangesCommand","authoredAt","batch","PENDING_ACTION_SUGGESTION","documentSelection","assign","size","_setSuggestionRange","authorName","insertion:join","never","getShiftedBy","_commentsRepository","updateMarker","nodeBefore","LEAVE","splice","getUser","push","markerNameToElements","_mergeNestedSuggestions","CommentsRepository","removeMarkers","createRangeOn","dataReady","multipleBlocks","meta","isEqual","markInlineFormat","acceptAllSuggestions","isObject","notReady","isAtEnd","updateSuggestion","position","getSuggestions","document","marker-count","element","_adapter","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.","_editor","_setSuggestionData","isIntersectingWithRange","getChanges","PendingActions","_createSuggestion","_findSuggestions","isInContent","set","containsItem","_getAttributeKey","_customCallbacks","data-suggestion","type","getContainedElement","_getSuggestionData","toViewElement","ENTER","parent","_defaultCallbacks","rethrowUnexpectedError","commentThread","containsPosition","from","add","registerPostFixer","reconvertMarker","createElement","oldValue","_rangeIsInLocalUserInsertion","addSuggestionData","_SUGGESTION_ANNOUNCEMENT","getFirstRange","isOwn","setSelection","adapter","commands","isCollapsed","addMarker:suggestion:formatBlock","unshift","collaboration.channelId","getRanges","_refreshAttributeSuggestionsChain","announce","resolve","containsRangeInObject","range","values","backward","isArray","markBlockFormat","value","_model","addCommentThread","createdAt","data","track-changes-command-not-found","newRange","_suggestions","formatInline:join","length","buildSuggestion","_handleNewSuggestionMarker","_addSuggestionMarker","root","change","_addThreadToSuggestion","attribute:","comments","_splitMarkerName","suggestionChanged","pop","formatBlock:","showSuggestionHighlights","forceDefaultExecution","addHighlight","low","formatBlock:join","end","elementStart","formatInline","elementEnd","_registerDefaultCallbacks","track-changes-suggestion-data-mismatch","plugins","map","markMultiRangeBlockFormat","fetchCommentThread","suggestion:","formatInline:accept","highest","splitPosition","containsRange","detach","containerElement","unbind","startsWith","removeMarker","_suggestionFactory","track-changes-enable-command-twice","delete","forEach","addClass","createRange","_processAttributeChanges","attributeOldValue","_suggestionState","getIntersection","_refreshSuggestionsChain","_enabledCommands","rootName","insertion","subType","_joinSuggestions","$elementName","ck-suggestion-marker--active","group","ck-suggestion-marker-formatBlock","markerName","stopListening","deletion","hasComments","creator","editor","_reduceSuggestionAttributeRange","fire","attribute:accept","Users","join","always","formatInline:","_blockAttributeKeys","schema","widget","getCommentThread","split","define","addRange","getSuggestion","isInsideObject","_removeSuggestion","key","_isRegisteredAttribute","mapper","_breakSuggestionMarker","author","acceptSuggestion","attribute","formatInline:chain","getSuggestionCallback","return","some","isLocal","_cutOutSuggestionMarker","hasSuggestion","attributes","activeMarkers","getItems","upcast","attributeKey","$marker","markInsertion","_isForcedDefaultExecutionBlock","originalSuggestionId","moveTargetPosition","catch","isAfter","for","start","formatBlock:accept","getNearestSelectionRange","isBefore","addMarker:suggestion:attribute","discardSuggestion","_registerBlockAttribute","removed","consume","markerReady","deletion:join","sort","ck-suggestion-marker-","model","then","warn","markAttributeChange","addMarker","dataToMarker","getDifference","_saved","enableReadOnlyMode","$textProxy","attributeNewValue","toUpperCase","getFirstMarker","normal","createPositionAt","trackChanges.trackFormatChanges","locale","track-changes-suggestion-not-found","addSuggestion","accept","$graveyard","ck-suggestion-marker","getWalker","_getExternalAuthor","isMultiRange","acceptSelectedSuggestions","change:activeMarkers","removeClass","suggestion:attribute:","stop","createSelection","enableCommand","previous","formatGroupId","deletion:chain","rejected","editingDowncast","ariaLiveAnnouncer","hasCommentThread","nodeAfter","differ","update:suggestion","every","_reduceExistingSuggestions","lowest","forward","addComment","attribute:discard","insertContent","discardSelectedSuggestions","getMultiRangeId","next","chain","removeAttribute","toJSON","config","insert","options","commandName","_recordAttributeSuggestions","enqueueChange","_getAuthorFromId","listenTo","_checkSuggestionCorrectness","external:","_initAriaMarkerChangeAnnouncements","markMultiRangeDeletion","oldRange","getChangedMarkers","_recordAttributeChanges","pluginName","item","suggestionLoaded","skipNestingCheck","dataDowncast","high","markers","isNextTo","writer","registerCustomCallback","createPositionBefore","head","suggestion","ck-suggestion-marker-formatInline","conversion","insertion:discard","getAllAdjacentSuggestions","name","_updateSuggestionData","suggestionUnloaded","find","setTo","getMarkers","discard","filter","keys","execute","consumable","has","$text","groupId","includes","isTouching","_isBlockAttribute","_inlineAttributeKeys","error-saving-suggestion-data-suggestion-discarded"];var _c,Tc;_c=Ec,Tc=274,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x121");class Ac extends t.Plugin{static get requires(){return[yc("0x9b"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,vi,ji,Ki,io,Ao,No,Fo,jo,Ko,Yo,ns,xs,ds,ys,bs,Ss,Ms,Bs,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Jx,ia,ca,$a,ma,Ca,wa,Qa,Ra,Pa,Ha]}static get[yc("0x3a")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[yc("0x104")]((t=>String.fromCharCode(t)))[yc("0x12f")]("")}super(t),this._recordAttributeSuggestions=!1,this.set(yc("0x14b"),[]),this.on(yc("0xe"),((e,n,r,i)=>{this._model[yc("0xf0")]((()=>{for(const e of[...i,...r])this._model[yc("0x40")][yc("0x56")](e)&&t.editing[yc("0xc9")](e)}))})),this[yc("0x68")]=new ri(this[yc("0x12a")][yc("0x164")][yc("0x133")],this[yc("0x12a")][yc("0x4")]),this[yc("0xad")]=null,this[yc("0x111")]=new kc(this[yc("0x12a")]),this[yc("0xe9")]=new Map,this._commentsRepository=t.plugins[yc("0x65")](yc("0x9b")),this._enabledCommands=new Set,this._model=this[yc("0x12a")][yc("0x164")],this[yc("0x119")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[yc("0x132")]=new Set([yc("0x121")]),this._inlineAttributeKeys=new Set,t.config[yc("0x137")]("trackChanges.trackFormatChanges",yc("0x6b")),this[yc("0x7c")]=t[yc("0x2b")][yc("0x65")](yc("0x3")),t.config[yc("0x137")]("trackChanges.mergeNestedSuggestions",!0),this[yc("0x9a")]=t[yc("0x2b")].get("trackChanges.mergeNestedSuggestions"),this[yc("0x86")]=new d(t,this[yc("0x11c")]),this[yc("0x35")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,50,51,56])}init(){const t=this[yc("0x12a")],n=(t,e)=>{if("attribute"!=t)return yc("0x163")+t;const n=e[yc("0x136")]("|")[0];return this[yc("0x5b")](n)?yc("0x124"):yc("0x47")};t.conversion.for(yc("0x18"))[yc("0x71")]({model:yc("0x46"),view:t=>{const{id:e,type:r,subType:i}=this[yc("0xf4")](t.markerName),o=["ck-suggestion-marker",n(r,i)];let s=3e3;return this[yc("0x14b")][yc("0x59")](t[yc("0x125")])&&(o[yc("0x98")]("ck-suggestion-marker--active"),s=3010),"deletion"==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x48")].for(yc("0x3e"))[yc("0xc7")]((e=>{e.on("addMarker:suggestion",((e,n,r)=>{if(!r[yc("0x2d")][yc("0xf8")])return;const i=n[yc("0x3b")];if(!i)return;const o=r[yc("0x13e")][yc("0xbf")](i);t[yc("0x164")][yc("0x133")].isObject(i)&&o&&!o[yc("0x69")](yc("0x134"))&&o.is(yc("0x10d"))&&(0,x.toWidget)(o,r[yc("0x42")])}),{priority:"high"})})),t[yc("0x48")].for(yc("0x3e"))[yc("0x71")]({model:yc("0x46"),view:(t,e)=>{if(!e.options.showSuggestionHighlights)return null;const{type:r,subType:i}=this[yc("0xf4")](t.markerName);return{classes:[yc("0x9"),n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0x3b")])return;const{id:s}=this[yc("0xf4")](i[yc("0x125")]);if(n){const t=this[yc("0xe9")][yc("0x65")](s),e=this[yc("0xb9")](t);if(!this[yc("0x5b")](e))return}if(i[yc("0x3b")].is(yc("0x83")))return void o[yc("0x55")][yc("0x15f")](i[yc("0x3b")],r[yc("0x4b")]);const x=o[yc("0x13e")][yc("0xbf")](i.item);if(i[yc("0x3b")].is(yc("0xac"))&&t[yc("0x164")][yc("0x133")].isBlock(i.item)&&!x[yc("0x69")](yc("0xfa"))){o.writer[yc("0x115")]([yc("0x9"),"ck-suggestion-marker-formatBlock"],x),o[yc("0x42")][yc("0x6c")](yc("0xbb"),s,x),o[yc("0x13e")].bindElementToMarker(x,i[yc("0x125")]),e&&(this[yc("0x14b")][yc("0x59")](i[yc("0x125")])?o.writer[yc("0x115")]("ck-suggestion-marker--active",x):o.writer[yc("0xf")](yc("0x122"),x));for(const e of t[yc("0x164")][yc("0x72")](i.item)[yc("0x14c")]())o.consumable[yc("0x15f")](e,r[yc("0x4b")]);o.consumable.consume(i[yc("0x3b")],r[yc("0x4b")])}};t[yc("0x48")].for(yc("0x3e"))[yc("0xc7")]((t=>{t.on(yc("0xd5"),((t,e,n)=>{n[yc("0x2d")][yc("0xf8")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x109")})})),t[yc("0x48")].for(yc("0x3e"))[yc("0xc7")]((t=>{t.on(yc("0x15b"),((t,e,n)=>{n[yc("0x2d")].showSuggestionHighlights&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0x109")})})),t[yc("0x48")].for("dataDowncast").markerToData({model:yc("0x46"),view:(t,e)=>e[yc("0x2d")][yc("0xf8")]?null:{group:"suggestion",name:t.substr(11)}}),t[yc("0x48")][yc("0x156")](yc("0x14d")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x107")+t[yc("0x6e")]("suggestion-type")+":"+t[yc("0x6e")]("id");return t[yc("0x6e")]("marker-count")&&(n+=":"+t.getAttribute(yc("0xab"))),e[yc("0xca")](yc("0x14f"),{"data-name":n})}}),t[yc("0x48")][yc("0x156")](yc("0x14d"))[yc("0x169")]({view:yc("0x46")}),t[yc("0x48")][yc("0x156")]("editingDowncast")[yc("0xc7")]((t=>{t.on(yc("0xd5"),r(),{priority:"high"})})),t[yc("0x48")].for(yc("0x18"))[yc("0xc7")]((t=>{t.on(yc("0x15b"),r({isAttributeSuggestion:!0}),{priority:yc("0x3f")})})),t[yc("0x48")][yc("0x156")](yc("0x18"))[yc("0xc7")]((t=>{t.on(yc("0x76"),((t,e,n)=>{const r=n.mapper[yc("0x99")](e.markerName);if(r)for(const t of r)t[yc("0x69")](yc("0xfa"))||(n[yc("0x42")][yc("0xf")]([yc("0x9"),"ck-suggestion-marker-formatBlock",yc("0x122")],t),n[yc("0x42")][yc("0x29")]("data-suggestion",t),n.mapper.unbindElementFromMarkerName(t,e[yc("0x125")]))}),{priority:yc("0x3f")})})),t[yc("0x48")][yc("0x156")]("editingDowncast").add((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const r=n[yc("0x13e")][yc("0x99")](e.markerName);if(!r)return;const{id:i}=this[yc("0xf4")](e[yc("0x125")]),o=this[yc("0xe9")][yc("0x65")](i),s=this[yc("0xb9")](o);if(this._isBlockAttribute(s))for(const t of r)t.getCustomProperty(yc("0xfa"))||(n[yc("0x42")].removeClass([yc("0x9"),"ck-suggestion-marker-formatBlock",yc("0x122")],t),n[yc("0x42")][yc("0x29")](yc("0xbb"),t),n.mapper.unbindElementFromMarkerName(t,e[yc("0x125")]))}),{priority:yc("0x3f")})})),t[yc("0x164")][yc("0xaa")][yc("0xc8")]((e=>{let n=!1;const r=Array[yc("0xc6")](t[yc("0x164")][yc("0xaa")][yc("0x1c")][yc("0x38")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0xf4")](x);if(yc("0x46")!==r)continue;const d=this[yc("0xe9")][yc("0x65")](u);if(null!=a[yc("0xe8")]){yc("0xff")==c&&(n=n||Rc(a[yc("0xe8")],x,e,t.model[yc("0x133")]));const r=yc("0x142")==c&&this[yc("0x5b")](l[yc("0x136")]("|")[0]);if(a[yc("0xe8")].isCollapsed||yc("0x8")==a[yc("0xe8")][yc("0xef")][yc("0x11d")]||yc("0x60")==c&&!vc(a[yc("0xe8")])||r&&!vc(a[yc("0xe8")])||yc("0x127")==c&&(Sc(s=a[yc("0xe8")])||(o=s)[yc("0x157")][yc("0xc1")]==o[yc("0xfd")][yc("0x94")]&&o.start[yc("0xa6")]))e[yc("0x110")](x),n=!0;else{if(!d||!d[yc("0xb6")])continue;i[yc("0xc7")](d)}}}var o,s;return i[yc("0x8c")]>0&&(n=!!this[yc("0x63")](i)||n),n})),t[yc("0x164")][yc("0xaa")][yc("0xc8")]((e=>{let n=!1;for(const r of t[yc("0x164")][yc("0xaa")][yc("0x1c")][yc("0xb2")]())if("insert"==r[yc("0xbc")])for(const r of this._suggestions.values()){if(r[yc("0xc")]||!r.isInContent)continue;const i="formatBlock"==r[yc("0xbc")],o=this[yc("0xb9")](r),s=o&&this[yc("0x5b")](o);if(!i&&!s)continue;const x=r[yc("0xcf")]();if(x[yc("0x157")][yc("0xc1")]!=x[yc("0xfd")][yc("0xc1")]&&!x.end.isAtEnd){const i=t[yc("0x164")].createPositionAt(x.start[yc("0x1b")],yc("0xfd")),o=t[yc("0x164")][yc("0x116")](x.start,i);e.updateMarker(r[yc("0x0")](),{range:o}),n=!0}}return n})),t[yc("0x164")][yc("0xaa")].registerPostFixer((t=>this[yc("0x117")](t))),t.model[yc("0xaa")].registerPostFixer((t=>!t[yc("0x88")][yc("0x147")]&&this._processAttributeSuggestions(t))),t[yc("0x164")].on("_afterChanges",(()=>{this[yc("0x2f")]=!1})),t[yc("0x164")].document.on("change:data",((n,r)=>{if(!r.isLocal||r.isUndo)return;if(!this._recordAttributeSuggestions)return;const i=t[yc("0x164")].document.differ[yc("0xb2")]();if(0==i.length)return;const o=[],s=i.filter((t=>yc("0x142")==t[yc("0xbc")])),x=i.filter((t=>yc("0x2c")==t[yc("0xbc")]&&"$text"!=t[yc("0x4b")])),a=i.filter((t=>yc("0x70")==t.type&&"$text"!=t[yc("0x4b")]));for(const e of s)this[yc("0x13d")](e[yc("0x14e")])&&o[yc("0x98")]({key:e[yc("0x14e")],newValue:e[yc("0x16e")],oldValue:e[yc("0x118")],range:Lc(e[yc("0xdd")],t[yc("0x164")])});for(const e of x){const n=a.find((t=>t._element===e._element));if(n){const r=Mc(e[yc("0xa8")][yc("0x1b")],t[yc("0x164")]);n.name!==e[yc("0x4b")]&&o[yc("0x98")]({key:yc("0x121"),newValue:e[yc("0x4b")],oldValue:n[yc("0x4b")],range:r});for(const[t,i]of n[yc("0x14a")]){if(!this[yc("0x13d")](t))continue;const n=e[yc("0x14a")][yc("0x65")](t);i!==n&&o[yc("0x98")]({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0x14a")])this._isRegisteredAttribute(t)&&(n[yc("0x14a")][yc("0x56")](t)||o.push({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0xeb")]&&t[yc("0x164")][yc("0x30")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this.markAttributeChange(t,e,r,i,{groupId:n});this._reduceExistingSuggestions(t,o)}))}),{priority:yc("0x20")}),t[yc("0x164")].markers.on(yc("0x1d"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0xf4")](e.name),n=this[yc("0xe9")].get(t);n&&n[yc("0x82")](e[yc("0x4b")])}})),t.model[yc("0xaa")].on("change:data",(()=>{const e=Array.from(t[yc("0x164")][yc("0xaa")][yc("0x1c")][yc("0x38")]())[yc("0x52")]((t=>yc("0x46")===this._splitMarkerName(t[yc("0x4b")])[yc("0x123")]));if(0===e[yc("0xeb")])return;e.sort(((t,e)=>{const n=t[yc("0xe6")][yc("0x37")],r=e[yc("0xe6")][yc("0x37")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[yc("0x157")][yc("0x15a")](r[yc("0x157")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0xf4")](t);if(null===i[yc("0x37")]){const e=this[yc("0xed")](t);r[yc("0xc7")](e)}else{const t=this._suggestions[yc("0x65")](e);null!==i[yc("0xe8")]||t[yc("0xb6")]?(n[yc("0xc7")](t[yc("0x45")]),r[yc("0xc7")](t)):this[yc("0x13b")](t)}}r[yc("0x8c")]>0&&this[yc("0x11b")](r);for(const t of n)this[yc("0x12c")](yc("0xf5"),t)})),t.model.on(yc("0x80"),((e,n)=>{const r=n[0];if(!this._suggestions[yc("0x8c")])return;if(!r.isDocumentOperation)return;if(r[yc("0x88")][yc("0x6a")]||!r[yc("0x88")][yc("0x147")])return;let i,o;switch(r[yc("0xbc")]){case yc("0x2c"):i=t[yc("0x164")][yc("0x2")](r[yc("0xa8")]),o=i[yc("0x91")](r[yc("0x66")]);break;case"split":i=t[yc("0x164")][yc("0x2")](r[yc("0x10a")]),o=t[yc("0x164")][yc("0x2")](r[yc("0x153")]);break;case yc("0x73"):i=t.model[yc("0x2")](r.targetPosition),o=i[yc("0x91")](r[yc("0x66")]);break;default:return}const s=t[yc("0x164")][yc("0x116")](i,o);t[yc("0x164")][yc("0xf0")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0xb5")](s)){if(t[yc("0xc")])continue;if(yc("0xff")==t[yc("0xbc")])continue;const n=this._getAttributeKey(t);if(n&&this[yc("0x5b")](n)&&"split"!=r.type)continue;const x=t[yc("0xe6")]&&t[yc("0xe6")][yc("0x9f")];(yc("0x60")!=t[yc("0xbc")]||yc("0x136")==r[yc("0xbc")]&&!x)&&(e[yc("0xdc")]||yc("0x11e")==t[yc("0xbc")]&&e[yc("0xd0")]||t[yc("0xcf")]()[yc("0x10b")](s)&&this[yc("0x13f")](t,i,o))}}))}),{priority:yc("0x20")}),t[yc("0x164")].on(yc("0x64"),((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0xf9")])return;if(this[yc("0x151")])return;if(!this[yc("0x86")][yc("0xe2")])return;if(r.isCollapsed)return;const o=t[yc("0x164")][yc("0x133")],{start:s,end:x}=r[yc("0xcf")](),a=s.nodeAfter&&o.isLimit(s.nodeAfter)?null:o[yc("0x159")](s,yc("0x21")),c=x[yc("0x94")]&&o[yc("0x81")](x.nodeBefore)?null:o[yc("0x159")](x,"backward"),l=t.model[yc("0x116")](a?a[yc("0x157")]:s,c?c.end:x);t[yc("0x164")][yc("0xf0")]((e=>{this[yc("0x62")](l);const n=t.model.schema[yc("0x159")](l.start);r.is(yc("0x8a"))?e[yc("0xd1")](n):r[yc("0x4f")](n)})),e[yc("0x11")]()}),{priority:e.priorities[yc("0x1")]+10}),t[yc("0x164")].on(yc("0x24"),((e,n)=>{const r=n[n[yc("0xeb")]-1];r&&r[yc("0xf9")]||this[yc("0x151")]||this.trackChangesCommand[yc("0xe2")]&&(t[yc("0x164")][yc("0xf0")]((()=>{let r=t.model[yc("0x24")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x145")]=r.clone();const i=r[yc("0xfd")].nodeBefore,o=t[yc("0x164")].schema;i&&o.isBlock(i)&&!o[yc("0xa4")](i)&&(r=t[yc("0x164")][yc("0x116")](r[yc("0x157")],t[yc("0x164")][yc("0x2")](i,yc("0xfd")))),this[yc("0x150")](r)})),e.stop())}),{priority:"high"}),this[yc("0x12a")].commands[yc("0xc7")]("trackChanges",this[yc("0x86")]),this[yc("0x13")]("trackChanges");const i=new b(t,this[yc("0xe9")]);t.commands[yc("0xc7")]("acceptSuggestion",i),this[yc("0x13")]("acceptSuggestion");const o=new y(t,this[yc("0xe9")]);t[yc("0xd3")][yc("0xc7")](yc("0x15c"),o),this[yc("0x13")](yc("0x15c")),t[yc("0xd3")].add(yc("0xa3"),new F(t,i,this[yc("0xe9")])),this.enableCommand(yc("0xa3")),t[yc("0xd3")][yc("0xc7")](yc("0x61"),new F(t,o,this[yc("0xe9")])),this.enableCommand(yc("0x61")),t.commands[yc("0xc7")](yc("0xd"),new j(t,i,this[yc("0xe9")])),this.enableCommand(yc("0xd")),t[yc("0xd3")][yc("0xc7")](yc("0x25"),new j(t,o,this[yc("0xe9")])),this[yc("0x13")](yc("0x25"));const s=t[yc("0x103")][yc("0x65")](yc("0x9b"));this[yc("0x32")](s,yc("0x22"),((t,{threadId:e})=>{const n=this[yc("0xe9")].get(e);n&&n[yc("0xc4")]&&1===n[yc("0xc4")][yc("0xeb")]&&this[yc("0x4c")](e,{hasComments:!0})}),{priority:yc("0xfb")}),this.listenTo(s,"removeComment",((t,{threadId:e})=>{const n=this[yc("0xe9")][yc("0x65")](e);n&&n[yc("0xc4")]&&!n[yc("0xc4")].length&&this[yc("0x4c")](e,{hasComments:!1})}),{priority:"low"})}set[yc("0xd2")](t){if(this[yc("0xad")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[yc("0xad")]=t}get[yc("0xd2")](){return this._adapter}[yc("0xa9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0xe9")][yc("0xde")]())t&&!e[yc("0xb6")]||n[yc("0x98")](e);return e?n[yc("0x104")]((t=>t[yc("0x2a")]())):n}getSuggestion(t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(yc("0x5"),this);return n}[yc("0x149")](t){return this[yc("0xe9")].has(t)}[yc("0xcd")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t.type[yc("0x136")](":"),s=this[yc("0xe9")].get(n)||this[yc("0xb4")](i,o,n,e,r);if(this[yc("0xf1")](s),this[yc("0x33")](s,i,o||null,e),s[yc("0xe5")]=t[yc("0xe5")],s[yc("0x67")]=!0,r&&r[yc("0x7d")]){const t=r[yc("0x7d")],e=this[yc("0xb")](t[yc("0x8e")]);s[yc("0x87")]=t.createdAt,s[yc("0x140")]=e,s.isExternal=!0}else s[yc("0x87")]=t[yc("0xe5")];switch(t[yc("0xe6")]&&(s.data=t[yc("0xe6")]),t[yc("0x14a")]&&(s.attributes=t[yc("0x14a")]),this[yc("0xad")]&&this[yc("0xad")][yc("0x6")]||(s[yc("0x16b")]=!0),this[yc("0x119")][yc("0x65")](s)){case"notReady":this[yc("0x119")][yc("0xb7")](s,yc("0x9e"));break;case yc("0x160"):s[yc("0xb6")]?(this._joinWithAdjacentSuggestions(new Set([s])),this._refreshSuggestionsChain(new Set([s])),this[yc("0x119")][yc("0xb7")](s,"ready"),this[yc("0x12c")](yc("0x3c"),s)):this[yc("0x119")].set(s,yc("0x15e"))}return s}[yc("0x141")](t){this[yc("0xf9")]((()=>{this[yc("0x12a")][yc("0x164")][yc("0xf0")]((()=>{for(const e of t[yc("0x4a")]())e[yc("0x7")]()}))}))}[yc("0x15c")](t){this[yc("0xf9")]((()=>{this[yc("0x12a")][yc("0x164")].change((()=>{for(const e of t[yc("0x4a")]())e[yc("0x51")]()}))}))}[yc("0x13")](t,n){const r=this.editor[yc("0xd3")].get(t);if(!r)throw new e.CKEditorError(yc("0xe7"),this,{commandName:t});if(this[yc("0x11c")].has(r))throw new e.CKEditorError(yc("0x112"),this,{commandName:t});this[yc("0x11c")][yc("0xc7")](r),n&&r.on("execute",((t,e)=>{this[yc("0x86")][yc("0xe2")]&&(this[yc("0x151")]||(e[yc("0xeb")]>0&&e[e[yc("0xeb")]-1]&&e[e[yc("0xeb")]-1][yc("0xf9")]?e[yc("0xf6")]():(t[yc("0x145")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:"high"})}[yc("0xf9")](t){let n,r;const i=this[yc("0x151")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x151")]=!1),r&&e.CKEditorError[yc("0xc3")](r,this),n}[yc("0x150")](t,n=null,r={}){if(t[yc("0xd4")])return null;const i=this.editor[yc("0x103")][yc("0x65")]("Users").me;for(const{suggestion:e,meta:i}of this[yc("0xb5")](t,yc("0x11e")))if(i[yc("0xd0")]){if(!i.isNextTo){if(i[yc("0xdc")]){if(!this[yc("0x9a")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this[yc("0x13f")](e,t[yc("0x157")],t[yc("0xfd")]);break}if(n==e[yc("0x11f")]&&Fc(e,r)){const n=e[yc("0xcf")]();return n.start[yc("0xa1")](t.end)?this[yc("0x8d")](e,this[yc("0xe3")][yc("0x116")](t[yc("0x157")],n.end)):this[yc("0x8d")](e,this[yc("0xe3")][yc("0x116")](n.start,t[yc("0xfd")])),e}}const o=(0,e.uid)(),s=i.id,x=n?"insertion:"+n:yc("0x11e"),a=this[yc("0xb0")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xee")](x,o,s,t),a}[yc("0x7a")](t,n="multi",r={}){const i=this.editor[yc("0x103")].get(yc("0x12e")).me,o=this[yc("0x111")][yc("0x144")]("insertion",n,"join");for(const e of this[yc("0xa9")]())if(e.author.id==i.id&&yc("0x11e")==e.type&&e[yc("0x11f")]==n&&Fc(e,r)&&(o(e[yc("0xd8")](),t)||o(t,e[yc("0xd8")]()))){for(const n of t)e[yc("0x138")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0xb5")](t,"insertion")){if(!n[yc("0xd0")])continue;if(!this[yc("0x9a")]&&n[yc("0xdc")])continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0xd8")]())for(const e of t)if(!n[yc("0x10b")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this[yc("0xb0")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this._addSuggestionMarker(a,s,x,e,Yr[yc("0x26")]());return c}[yc("0xa2")](t,n,r=null,i={}){if(r=r||Nc(n),t[yc("0xd4")])return null;if(yc("0x90")===this[yc("0x7c")]){const e=this[yc("0x111")][yc("0x144")]("formatInline",r,yc("0x7"));return this[yc("0xf9")]((()=>e([t],n,i))),null}const o=this[yc("0x12a")][yc("0x103")][yc("0x65")]("Users").me,s=[];if(yc("0x130")!==this[yc("0x7c")])for(const{suggestion:e,meta:n}of this[yc("0xb5")](t,"insertion"))n[yc("0xd0")]&&!n.isInsideObject&&s[yc("0x98")](...e[yc("0xd8")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0x11a")](r);e&&n[yc("0x98")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const r=n[e][yc("0x16a")](t);n.splice(e,1,...r),e+=r.length}}return n}(t,s);x[yc("0xeb")]&&this[yc("0xe3")][yc("0xf0")]((()=>{for(const t of x){const e=this[yc("0x111")][yc("0x144")]("formatInline",r,yc("0x7"));this[yc("0xf9")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0x157")],a=t[yc("0xfd")];for(const{suggestion:e,meta:n}of this[yc("0xb5")](t,yc("0xff"))){if(!n.isOwn)continue;if(e[yc("0x11f")]!=r)continue;if(!Fc(e,i))continue;const o=e.getFirstRange();if(o.containsRange(t,!0))return null;x=x[yc("0x15a")](o[yc("0x157")])?x:o[yc("0x157")],a=a[yc("0x155")](o.end)?a:o[yc("0xfd")],s?o.start[yc("0x15a")](s[yc("0xcf")]()[yc("0x157")])?(s[yc("0x9c")](),s=e):e[yc("0x9c")]():s=e}const c=this[yc("0xe3")][yc("0x116")](x,a);if(s)this[yc("0x8d")](s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0xb0")]({id:t,type:"formatInline:"+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this._addSuggestionMarker(yc("0x131")+r,t,s,c)}}return null}[yc("0xe1")](t,n,r=[],i=null,o={}){n[yc("0x15")]||(n[yc("0x15")]=n[yc("0x2e")]),n[yc("0x9f")]=t.is("range"),i=i||Nc(n);const s=r.map((t=>Mc(t,this[yc("0xe3")]))),x=t.is(yc("0xdd"))?t:Mc(t,this._model);if(yc("0x90")===this._trackFormatChanges){const t=this[yc("0x111")][yc("0x144")](yc("0x60"),i,yc("0x7"));return this.forceDefaultExecution((()=>t([x],n,o))),null}s.push(x);let a=!0;for(const t of s)if(!this[yc("0xcc")](t)){a=!1;break}if(a&&yc("0x130")!==this._trackFormatChanges){const t=this[yc("0x111")].getSuggestionCallback(yc("0x60"),i,yc("0x7"));return this[yc("0xf9")]((()=>t([x],n,o))),null}let c=null,l=x[yc("0x157")],u=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e[yc("0xd0")])continue;if(e[yc("0x41")]||e[yc("0xdc")]||e[yc("0x13a")])continue;if(t.data[yc("0x15")]!=n[yc("0x15")])continue;if(!Fc(t,o))continue;const r=t[yc("0xcf")]();if(t[yc("0x11f")]==i){if(r[yc("0x10b")](x,!0))return null;l=l.isBefore(r[yc("0x157")])?l:r[yc("0x157")],u=u.isAfter(r[yc("0xfd")])?u:r[yc("0xfd")],c?r[yc("0x157")].isBefore(c[yc("0xcf")]().start)?(c[yc("0x9c")](),c=t):t.removeMarkers():c=t}else{const e=x[yc("0x11a")](r);this[yc("0x148")](t,e)}}const d=this[yc("0x12a")].plugins.get("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0x8d")](c,this[yc("0xe3")][yc("0x116")](l,u)),c;{const t=this[yc("0xb0")]({id:g,type:yc("0xf7")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0xee")]("formatBlock:"+i,g,f,this[yc("0xe3")].createRange(l,u)),t}}[yc("0x105")](t,n,r=[],i=null,o={}){n[yc("0x15")]||(n[yc("0x15")]=n[yc("0x2e")]);const s=t[0];n.multipleBlocks=s.is("range"),i=i||Nc(n);const x=r[yc("0x104")]((t=>Mc(t,this._model))),a=s.is("range")?t:t[yc("0x104")]((t=>Mc(t,this._model)));if(yc("0x90")===this[yc("0x7c")]){const t=this[yc("0x111")][yc("0x144")]("formatBlock",i,yc("0x7"));return this[yc("0xf9")]((()=>t(a,n,o))),null}x[yc("0x98")](...a);let c=!0;for(const t of x)if(!this[yc("0xcc")](t)){c=!1;break}if(c&&yc("0x130")!==this[yc("0x7c")]){const t=this[yc("0x111")].getSuggestionCallback(yc("0x60"),i,"accept");return this[yc("0xf9")]((()=>t(a,n,o))),null}const l=this[yc("0x12a")][yc("0x103")][yc("0x65")](yc("0x12e")).me;for(const t of this[yc("0xa9")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[yc("0xbc")]||t[yc("0xe6")].formatGroupId!=n.formatGroupId)continue;if(!Fc(t,o))continue;const e=t.subType==i;for(let n=0;n<a[yc("0xeb")];n++){const r=a[n];for(const i of t[yc("0x50")]()){const o=i.getRange();if(r[yc("0xa1")](o)){e?(a[yc("0x96")](n,1),n--):t[yc("0x110")](i[yc("0x4b")]);break}}}}if(0==a.length)return null;const u=this[yc("0x111")][yc("0x144")](yc("0x60"),i,yc("0x12f"));for(const t of this.getSuggestions())if(t[yc("0x140")].id==l.id&&yc("0x60")==t[yc("0xbc")]&&t.data[yc("0x15")]==n[yc("0x15")]&&t[yc("0x11f")]==i&&Fc(t,o)&&(u(t[yc("0xd8")](),a)||u(a,t[yc("0xd8")]()))){for(const e of a)t[yc("0x138")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0xf7")+i,h=this[yc("0xb0")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0xee")](f,d,g,t,Yr.getMultiRangeId());return h}[yc("0x62")](t,n=null,r={}){if(t[yc("0xd4")])return null;const i=this.editor[yc("0x103")][yc("0x65")]("Users").me,o=new s.LiveRange(t[yc("0x157")],t[yc("0xfd")]);for(const{suggestion:t,meta:e}of this[yc("0xb5")](o,"insertion"))if(e[yc("0xd0")]&&!e[yc("0x41")])if(t[yc("0xc")]){const e=t[yc("0xd8")]()[yc("0x52")]((t=>yc("0x8")!=t.root[yc("0x11d")]));if(e[yc("0x1e")]((t=>o[yc("0x10b")](t,!0)))&&t[yc("0x51")](),e[yc("0x146")]((t=>t[yc("0x10b")](o,!0)))){const t=this[yc("0x111")][yc("0x144")]("deletion",n,yc("0x7"));return this[yc("0xf9")]((()=>t([o],null,r))),null}}else{const e=o[yc("0x11a")](t[yc("0xcf")]());null!==e&&t._onDiscard([e],null,r)}if(o[yc("0x10c")](),o[yc("0xd4")]||yc("0x8")==o[yc("0xef")][yc("0x11d")])return null;let x=null,a=o[yc("0x157")],c=o[yc("0xfd")];const l=this[yc("0xb5")](o,yc("0x127"));for(const{suggestion:t,meta:e}of l){const n=this._model[yc("0x116")](a,c);if(e[yc("0xd0")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[yc("0x13a")]))if(t[yc("0xc")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0xd8")]()){if(r[yc("0x10b")](n,!0))return t;n[yc("0x10b")](r)||(e=!1)}e&&t[yc("0x51")]()}else{const e=t[yc("0xcf")]();if(e[yc("0x10b")](n,!0))return t;if(!Fc(t,r)){n[yc("0x10b")](e)?t[yc("0x9c")]():e[yc("0xc5")](a)?a=e[yc("0xfd")]:e[yc("0xc5")](c)&&(c=e[yc("0x157")]);continue}a=a[yc("0x15a")](e.start)?a:e[yc("0x157")],c=c[yc("0x155")](e.end)?c:e[yc("0xfd")],r=Object.assign({},t[yc("0x14a")]),x?e.start[yc("0x15a")](x[yc("0xcf")]()[yc("0x157")])?(x[yc("0x9c")](),x=t):t[yc("0x9c")]():x=t}}if(x)return this[yc("0x8d")](x,this[yc("0xe3")].createRange(a,c)),x;{const t=(0,e.uid)(),o=this._model[yc("0x116")](a,c),s=i.id,x=n?"deletion:"+n:yc("0x127"),l=this[yc("0xb0")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xee")](x,t,s,o),l}}[yc("0x36")](t,n="multi",r={}){const i=this[yc("0x12a")][yc("0x103")][yc("0x65")](yc("0x12e")).me,o=t[yc("0x104")]((t=>new s.LiveRange(t[yc("0x157")],t[yc("0xfd")]))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0xb5")](o,"insertion"))e.isOwn&&!e[yc("0x41")]&&x.add(t);for(const e of x)if(e[yc("0xc")]){const i=e[yc("0xd8")]();if((!e[yc("0x14a")]||!e.attributes[yc("0x3d")])&&i[yc("0x1e")]((t=>o[yc("0x146")]((e=>e[yc("0x10b")](t,!0)))))&&e[yc("0x51")](),o.every((t=>i[yc("0x146")]((e=>e[yc("0x10b")](t,!0)))))){const e=this[yc("0x111")][yc("0x144")](yc("0x127"),n,yc("0x7"));return this[yc("0xf9")]((()=>e(t,null,r))),null}}else{const t=e[yc("0xcf")]();if(o.some((e=>e[yc("0x10b")](t,!0)))&&e[yc("0x51")](),o[yc("0x1e")]((e=>t.containsRange(e,!0)))){const t=this[yc("0x111")].getSuggestionCallback(yc("0x127"),n,yc("0x7"));return this[yc("0xf9")]((()=>t(o,null,r))),null}}const a=this[yc("0x111")][yc("0x144")]("deletion",n,"join");let c=null;for(const t of this[yc("0xa9")]())if(t.author.id==i.id&&t.isInContent&&yc("0x127")==t[yc("0xbc")]&&t[yc("0x11f")]==n&&Fc(t,r)&&(a(t[yc("0xd8")](),o)||a(o,t[yc("0xd8")]())))if(c){if(t[yc("0xc4")]&&t[yc("0xc4")][yc("0xeb")])continue;for(const e of t[yc("0xd8")]())c[yc("0xb1")](e)||c[yc("0x138")](e);t[yc("0x9c")]()}else{c=t;for(const e of o)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[yc("0xb5")](o,yc("0x127")))e[yc("0xd0")]&&(this[yc("0x9a")]||!e[yc("0xdc")]&&!e[yc("0x13a")])&&Fc(t,r)&&x.add(t);for(const t of x){const e=t[yc("0xd8")]();if((!r||!r[yc("0x3d")])&&o[yc("0x1e")]((t=>e[yc("0x146")]((e=>e[yc("0x10b")](t,!0))))))return t;(!t[yc("0x14a")]||!t.attributes[yc("0x3d")])&&e[yc("0x1e")]((t=>o[yc("0x146")]((e=>e[yc("0x10b")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this[yc("0xb0")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0x10c")](),t.isCollapsed||"$graveyard"==t.root[yc("0x11d")]||this[yc("0xee")](d,l,u,t,Yr[yc("0x26")]());return g}[yc("0x167")](t,n,r,i,o){if(t[yc("0xd4")])return[];if(yc("0x90")===this[yc("0x7c")])return[];const s=this[yc("0x12a")][yc("0x103")][yc("0x65")](yc("0x12e")).me.id,x=Array[yc("0xc6")](this[yc("0xe9")][yc("0xde")]())[yc("0x52")]((e=>yc("0x142")==e.type&&e.data[yc("0x13c")]==n&&e[yc("0xb1")](t)));if(yc("0x6b")===this[yc("0x7c")]){const e=this[yc("0xb5")](t,"insertion")[yc("0x52")]((({meta:t})=>t[yc("0xd0")]&&!t[yc("0x13a")]&&!t.isNextTo))[yc("0x104")]((({suggestion:t})=>t));x[yc("0xd6")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=yc("0x142")==t[yc("0xbc")]?t[yc("0xe6")][yc("0xcb")]:void 0,o=t.getFirstRange(),s=Array.from(a[yc("0x53")]())[yc("0x4e")]((t=>t.isIntersecting(o)));if(!s)continue;const x=s[yc("0x16a")](o);this._isBlockAttribute(n)&&"insertion"==t.type&&0!=x[yc("0xeb")]||(a.delete(s),x.forEach((t=>{a[yc("0xb7")](t,r)})),yc("0x11e")!=t[yc("0xbc")]&&e!=i&&a[yc("0xb7")](s[yc("0x11a")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n[yc("0xeb")]>37&&console[yc("0x166")](yc("0xae"),{key:n});const l=(yc("0xf2")+(n+"|")+Nc({newValue:i})).substring(0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0x98")](u),this[yc("0xee")](l,x,s,t)}return c}[yc("0x15d")](t){this[yc("0x132")].add(t)}_registerInlineAttribute(t){this._inlineAttributeKeys[yc("0xc7")](t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[yc("0x13")](t,((t,...e)=>{this[yc("0x39")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[yc("0x15d")](t)}[yc("0xb9")](t){return yc("0x142")==t.type?t[yc("0x11f")][yc("0x136")]("|")[0]:null}[yc("0x8d")](t,e){const n=t[yc("0x0")]();this[yc("0xe3")].change((t=>{t.updateMarker(n,{range:e})}))}[yc("0xf1")](t){const e=t.id,n=this.editor[yc("0x2b")].get("collaboration.channelId");this[yc("0x92")][yc("0x1a")](e)||this[yc("0x92")][yc("0xe4")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0x92")][yc("0x135")](e);r[yc("0x10e")]("isRemovable"),r[yc("0x6f")]=!1,t[yc("0xc4")]=r}_checkSuggestionCorrectness(t,n,r,i){if(t[yc("0xbc")]!=n||t[yc("0x11f")]!=r||t[yc("0x129")].id!=i)throw this.editor[yc("0x16c")](yc("0x102")),new e.CKEditorError(yc("0x102"),this)}[yc("0x148")](t,n){const r=t[yc("0xcf")]();if(n[yc("0xa1")](r))t[yc("0x9c")]();else if(r[yc("0x10b")](n)){const i=this[yc("0xe3")][yc("0x2")](n.start.nodeBefore,yc("0xfd"));this._setSuggestionRange(t,this[yc("0xe3")][yc("0x116")](r.start,i));const o=(0,e.uid)(),s=t.creator.id,x=t.type+":"+t[yc("0x11f")];this._setSuggestionData({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0xe6")],attributes:t[yc("0x14a")]});const a=this._model[yc("0x2")](n[yc("0xfd")][yc("0xc1")],yc("0x74")),c=this[yc("0xe3")][yc("0x116")](a,r.end);this[yc("0xee")](x,o,s,c)}else if(r[yc("0xc5")](n[yc("0x157")])){const e=this[yc("0xe3")][yc("0x2")](n.start[yc("0x94")],yc("0xfd"));this._setSuggestionRange(t,this[yc("0xe3")][yc("0x116")](r[yc("0x157")],e))}else{const e=this._model[yc("0x2")](n.end.parent,yc("0x74"));this[yc("0x8d")](t,this[yc("0xe3")][yc("0x116")](e,r[yc("0xfd")]))}}[yc("0xcc")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x11e"))){if(!n[yc("0xd0")])continue;const r=e.getRanges();for(const e of r)if(!t[yc("0x16a")](e).length)return!0}return!1}[yc("0x31")](t){const n=this[yc("0x12a")][yc("0x103")][yc("0x65")](yc("0x12e")).getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this.editor[yc("0x103")].get(yc("0x12e")),n=(0,o.hashObject)(yc("0x34")+t);return e[yc("0x97")](n)||e[yc("0x79")]({id:n,name:t})}[yc("0xb4")](t,e,n,r,i){const o=this[yc("0x31")](r),s=this[yc("0x111")][yc("0xec")](t,e,n,o,i,(t=>{this[yc("0x4c")](n,{attributes:t});const e=this[yc("0x139")](n);this[yc("0x63")](new Set([e])),this[yc("0x11b")](new Set([e]))}));return this[yc("0x32")](s,yc("0x7"),(()=>{this[yc("0x4c")](n,{state:"accepted"})}),{priority:yc("0x3f")}),this.listenTo(s,yc("0x51"),(()=>{this[yc("0x4c")](n,{state:yc("0x17")})}),{priority:yc("0x3f")}),this[yc("0xe9")][yc("0xb7")](n,s),this[yc("0x119")][yc("0xb7")](s,yc("0xa5")),s}[yc("0xf4")](t){const e=t[yc("0x136")](":");return{group:e[0],type:e[1],subType:e[yc("0xeb")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[yc("0xeb")]<5?e[3]:e[4],markerCount:6==e[yc("0xeb")]?e[5]:null}}[yc("0x13f")](t,n,r){const i=t.getFirstRange(),o=i[yc("0x157")],s=i[yc("0xfd")];this[yc("0x8d")](t,this[yc("0xe3")][yc("0x116")](o,n));const x=(0,e.uid)(),a=t[yc("0x129")].id,c=t[yc("0xbc")]+(t.subType?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0x14a")],data:t[yc("0xe6")]});const l=this[yc("0xb9")](t);(yc("0x60")==t[yc("0xbc")]||l&&this._isBlockAttribute(l))&&(r=this[yc("0xe3")][yc("0x44")](r.parent)),this._addSuggestionMarker(c,x,a,this[yc("0xe3")][yc("0x116")](r,s))}[yc("0xb5")](t,e=null){const n=[],r=this[yc("0x12a")][yc("0x103")][yc("0x65")]("Users").me;Array[yc("0xe0")](t)||(t=[t]);for(const i of this[yc("0xa9")]()){if(!i.isInContent)continue;if(e&&i[yc("0xbc")]!=e)continue;let o=!1;for(const e of i[yc("0xd8")]()){for(const s of t){const t=s[yc("0x157")][yc("0xa1")](e[yc("0xfd")])||s[yc("0xfd")][yc("0xa1")](e[yc("0x157")]);if(t||s[yc("0x11a")](e)){const x=s.containsRange(e)&&Ic(this._model[yc("0x133")],e[yc("0x157")],s),a=e[yc("0x10b")](s)&&Ic(this[yc("0xe3")][yc("0x133")],s.start,e);n[yc("0x98")]({suggestion:i,meta:{isOwn:r==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0xee")](t,e,n,r,i){this[yc("0xe3")][yc("0xf0")]((o=>{let s=yc("0x107")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x168")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x13b")](t){const e=t[yc("0x14")],n=t[yc("0x27")];t[yc("0x14")]=null,t[yc("0x27")]=null,null!=e&&e[yc("0x27")]==t&&(e[yc("0x27")]=n),null!=n&&n[yc("0x14")]==t&&(n[yc("0x14")]=e),yc("0x6d")==this[yc("0x119")].get(t)&&(this._suggestionState[yc("0xb7")](t,"removed"),this.fire(yc("0x4d"),t,e,n))}[yc("0xb0")](t){const n=t.id,r=this[yc("0xcd")](t);if(this._adapter&&this._adapter.addSuggestion){const i=this.editor.plugins[yc("0x65")](yc("0xb3")),o=r[yc("0x128")],s=r.subType?r.type+":"+r[yc("0x11f")]:r[yc("0xbc")],x=this[yc("0x12a")][yc("0x4")],a=i[yc("0xc7")](Jr(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:o,data:t.data||null,originalSuggestionId:t[yc("0x152")]||null,attributes:r[yc("0x14a")]};this[yc("0xad")][yc("0x6")](c)[yc("0x165")]((t=>{r[yc("0x16b")]=!0,i[yc("0x70")](a),t&&t[yc("0xe5")]&&(this[yc("0xe9")][yc("0x65")](n)[yc("0xe5")]=t.createdAt)}))[yc("0x154")]((t=>{throw(0,e.logWarning)(yc("0x5d")),this[yc("0x12a")][yc("0x164")][yc("0x30")]({isUndoable:!1},(()=>{r[yc("0x51")]()})),r[yc("0x126")](),this[yc("0xe9")][yc("0x113")](r.id),this[yc("0x119")][yc("0x113")](r),t}))}return r}_isBlockAttribute(t){return this._blockAttributeKeys[yc("0x56")](t)}[yc("0x4c")](t,e){const n=this[yc("0x12a")].plugins.get(yc("0xb3")),r=this[yc("0x139")](t);if(this._adapter&&this[yc("0xad")][yc("0xa7")])if(r[yc("0x16b")]){const r=n[yc("0xc7")](Jr(this.editor.locale,yc("0x89")));this[yc("0xad")][yc("0xa7")](t,e)[yc("0x165")]((()=>{n[yc("0x70")](r)}))}else r.on("change:_saved",(()=>{this[yc("0x4c")](t,e)}))}[yc("0xbe")](t){if(!this._adapter||!this[yc("0xad")][yc("0x139")])throw new e.CKEditorError(yc("0x7f"),this);return this[yc("0xad")][yc("0x139")](t)}[yc("0xed")](t){const{id:e,type:n,subType:r,authorId:i}=this._splitMarkerName(t),o=this[yc("0xe9")][yc("0x65")](e)||this[yc("0xb4")](n,r,e,i,{});switch(this[yc("0x33")](o,n,r,i),this[yc("0x119")].get(o)){case"notReady":this[yc("0xbe")](e)[yc("0x165")]((t=>{let n=Promise[yc("0xdb")]();t.hasComments&&(n=this[yc("0x92")][yc("0x106")]({channelId:this[yc("0x12a")][yc("0x2b")][yc("0x65")](yc("0xd7")),threadId:e})),n[yc("0x165")]((()=>{this[yc("0xcd")](t)[yc("0x16b")]=!0}))})),this._suggestionState[yc("0xb7")](o,"markerReady");break;case yc("0x15e"):this._updateSuggestionData(e,{state:yc("0x78")});case yc("0x9e"):this[yc("0x119")][yc("0xb7")](o,yc("0x6d")),this.fire(yc("0x3c"),o);break;case yc("0x6d"):this[yc("0x12c")](yc("0xf5"),o)}return o[yc("0x82")](t),o}[yc("0x11b")](t){const e=Array[yc("0xc6")](t),n=e[yc("0x52")]((t=>"attribute"==t[yc("0xbc")]));this[yc("0xd9")](n);const r=e.filter((t=>!t[yc("0xc")]&&yc("0x142")!=t[yc("0xbc")])),i=this[yc("0xa9")]({skipNotAttached:!0})[yc("0x52")]((t=>!t.isMultiRange&&"attribute"!=t[yc("0xbc")])),o=i[yc("0x52")]((e=>!t[yc("0x56")](e))),s=new Map(i.map((t=>[t,this[yc("0x111")][yc("0x144")](t[yc("0xbc")],t.subType,yc("0x28"))]))),x=new Map(i[yc("0x104")]((t=>[t,t[yc("0xcf")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0xeb")];t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0xeb")];t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r.length;t++){const e=r[t];!c[yc("0x56")](e)&&e[yc("0x14")]&&(l[yc("0xc7")](e[yc("0x14")]),e[yc("0x14")].next===e&&(e[yc("0x14")][yc("0x27")]=null),e[yc("0x14")]=null),!a[yc("0x56")](e)&&e[yc("0x27")]&&(l.add(e[yc("0x27")]),e[yc("0x27")][yc("0x14")]===e&&(e[yc("0x27")][yc("0x14")]=null),e[yc("0x27")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0xeb")];r++){const n=d(t,e[r]);n&&(n[0][yc("0x27")]=n[1],n[1][yc("0x14")]=n[0],a[yc("0xc7")](n[0]),c.add(n[1]))}}function d(t,e){if(t[yc("0x140")].id!==e[yc("0x140")].id)return null;const n=s[yc("0x65")](t)(t,e,x.get(t),x[yc("0x65")](e));return n&&s[yc("0x65")](e)(t,e,x[yc("0x65")](t),x.get(e))?n[1][yc("0xc4")]&&n[1][yc("0xc4")][yc("0xeb")]?null:n:null}l.size&&this[yc("0x11b")](l)}[yc("0xd9")](t){if(0==t[yc("0xeb")])return;const e=this[yc("0xa9")]({skipNotAttached:!0})[yc("0x52")]((t=>"attribute"==t.type&&t[yc("0x67")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x14a")]);r[yc("0x56")](e)||(r.set(e,n[yc("0xeb")]),n.push([]));const i=r[yc("0x65")](e);n[i][yc("0x98")](t)}!function(){n[yc("0x162")](((t,e)=>{const n=t[0][yc("0xe5")],r=e[0].createdAt;return n==r?t[0][yc("0x14a")].groupId<e[0].attributes[yc("0x58")]?-1:1:n<r?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0xeb")];t++){if(0==n[t][yc("0xeb")])continue;const e=[];for(let r=t+1;r<n[yc("0xeb")];r++)0!=n[r][yc("0xeb")]&&i(n[t],n[r])&&e[yc("0x98")](r);for(const r of e)n[t]=n[t].concat(n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0xeb")];e++)t[e][yc("0x27")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0xeb")];e++)t[e].previous=t[e-1]||null;function i(t,e){if(t[0][yc("0x14a")][yc("0x58")]!==e[0][yc("0x14a")][yc("0x58")]&&t[0][yc("0x140")]!==e[0][yc("0x140")])return!1;if(n=t[0],r=e[0],(n[yc("0x128")]||r.hasComments)&&(n[yc("0x128")]&&r.hasComments||!(n[yc("0x128")]&&r[yc("0xe5")]<n[yc("0xc4")][yc("0xf3")][yc("0x65")](0)[yc("0xe5")]||r[yc("0x128")]&&n.createdAt<r[yc("0xc4")][yc("0xf3")][yc("0x65")](0)[yc("0xe5")])))return!1;var n,r;const i=pc(t[0][yc("0x14a")],yc("0x58")),o=pc(e[0].attributes,yc("0x58"));return!!jr(i,o)&&(!!t.every((t=>e[yc("0x146")]((e=>t[yc("0xcf")]()[yc("0xa1")](e.getFirstRange())))))&&e[yc("0x1e")]((e=>t[yc("0x146")]((t=>e[yc("0xcf")]()[yc("0xa1")](t[yc("0xcf")]()))))))}}[yc("0x63")](t){const e=Array[yc("0xc6")](t),n=this[yc("0xa9")]({skipNotAttached:!0}),r=n[yc("0x52")]((e=>!t[yc("0x56")](e))),i=new Map(e[yc("0x104")]((t=>[t,this[yc("0x111")][yc("0x144")](t[yc("0xbc")],t.subType,yc("0x12f"))]))),o=new Map(n[yc("0x104")]((t=>[t,t[yc("0xd8")]()])));for(let t=0;t<e[yc("0xeb")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0xeb")];s++){const r=n[s];if(r[yc("0xbc")]!==e[yc("0xbc")]||r[yc("0x140")].id!==e[yc("0x140")].id||r.subType!==e[yc("0x11f")])continue;if(!Oc(e,r,[yc("0x58")]))continue;if(yc("0x142")==e[yc("0xbc")]&&e[yc("0xe6")][yc("0xcb")]!=r[yc("0xe6")][yc("0xcb")])continue;if(yc("0x142")==e[yc("0xbc")]&&t[yc("0x5b")](e[yc("0xe6")][yc("0x13c")]))continue;if("formatBlock"==e[yc("0xbc")]){const n=t[yc("0x12a")][yc("0x164")],r=e[yc("0xbd")]();if(r&&(n[yc("0x133")][yc("0xa4")](r)||n[yc("0x133")][yc("0x81")](r)))continue}const x=i.get(e),a=o[yc("0x65")](e),c=o[yc("0x65")](r),l=e.commentThread&&e[yc("0xc4")].length,u=r[yc("0xc4")]&&r[yc("0xc4")][yc("0xeb")];if(!l&&x(c,a))return t[yc("0x120")](r,e),o.delete(e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,r),o.delete(r),!0}return!1}}[yc("0x120")](t,e){if(t[yc("0xc")])for(const n of e[yc("0xd8")]())t[yc("0x138")](n);else{const n=e[yc("0xcf")]()[yc("0xfd")];this[yc("0x8d")](t,this[yc("0xe3")][yc("0x116")](t[yc("0xcf")]()[yc("0x157")],n))}e[yc("0x9c")]()}_getMarkerAnnouncementText(t,e){const n=t.startsWith("format")||t[yc("0x10f")]("attribute")?"FORMATTING":t[yc("0x16f")]();return Jr(this[yc("0x12a")][yc("0x4")],e+"_"+n+yc("0xce"))}[yc("0x35")](){const t=this[yc("0x12a")];(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0xf4")](t[yc("0x4b")]);if(yc("0x46")===e){r[yc("0x98")](this[yc("0x75")](n,yc("0x95")));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t[yc("0x4b")]);if(yc("0x46")===e){r[yc("0x98")](this[yc("0x75")](n,yc("0xc0")));break}}r[yc("0xeb")]&&t.ui[yc("0x19")][yc("0xda")]("trackChanges",r[yc("0x12f")](" "))}))}[yc("0x117")](t){if(this[yc("0x2f")])return!1;const e=this[yc("0x12a")],n=e[yc("0x164")].document[yc("0x1c")].getChanges();if(0==n.length)return!1;const r=[],i=n[yc("0x52")]((t=>yc("0x142")==t[yc("0xbc")])),o=n[yc("0x52")]((t=>"insert"==t[yc("0xbc")]&&yc("0x57")!=t[yc("0x4b")])),s=n.filter((t=>"remove"==t[yc("0xbc")]&&yc("0x57")!=t.name));for(const t of i)r[yc("0x98")]({key:t[yc("0x14e")],newValue:t[yc("0x16e")],oldValue:t[yc("0x118")],range:Lc(t[yc("0xdd")],e[yc("0x164")])});for(const t of o){const n=s[yc("0x4e")]((e=>e[yc("0xa8")].isEqual(t[yc("0xa8")])));n&&r[yc("0x98")]({key:"$elementName",newValue:t[yc("0x4b")],oldValue:n[yc("0x4b")],range:e.model[yc("0x9d")](t[yc("0xa8")][yc("0x1b")])})}return 0!=r[yc("0xeb")]&&this[yc("0x1f")](t,r)}[yc("0x7e")](t){let e=!1;const n=this[yc("0x12a")][yc("0x164")][yc("0xaa")].differ[yc("0x38")]()[yc("0x52")]((t=>t[yc("0xe6")].newRange&&t[yc("0x4b")][yc("0x10f")](yc("0x10"))));for(const r of n){const{subType:n,id:i}=this[yc("0xf4")](r.name),o=n[yc("0x136")]("|")[0];for(const n of this[yc("0xa9")]({skipNotAttached:!0}))n.id!=i&&yc("0x142")==n[yc("0xbc")]&&n.data&&n[yc("0xe6")][yc("0x13c")]==o&&n[yc("0xcf")]().isIntersecting(r.data[yc("0xe8")])&&(this._reduceSuggestionAttributeRange(n,r[yc("0xe6")].newRange,t),e=!0)}return e}[yc("0x39")](t){this[yc("0x12a")],this[yc("0x2f")]=!0,t()}[yc("0x13d")](t){const e=this[yc("0x5b")](t),n=this[yc("0x5c")].has(t);return e||n}_reduceExistingSuggestions(t,e){if(0==e[yc("0xeb")])return!1;let n=!1;for(const r of e){const e=this[yc("0xb5")](r.range,yc("0x142"))[yc("0x52")]((t=>!t[yc("0xa0")][yc("0x41")]))[yc("0x104")]((t=>t.suggestion)),i=(0,o.hashObject)({newValue:r.newValue});e[yc("0x52")]((t=>{const[e,n]=t[yc("0x11f")][yc("0x136")]("|");return e==r.key&&n!=i}))[yc("0x114")]((e=>{this[yc("0x12b")](e,r[yc("0xdd")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[yc("0xcf")]()[yc("0x16a")](e);0!==r.length?1!==r.length?this._breakSuggestionMarker(t,e[yc("0x157")],e.end):this._setSuggestionRange(t,r[0]):n[yc("0x110")](t[yc("0x0")]())}}class kc{constructor(t){this[yc("0xaf")]=t,this._model=t[yc("0x164")],this[yc("0xba")]=new Map,this[yc("0xc2")]=new Map,this[yc("0x101")]()}buildSuggestion(t,e,n,r,i,o){return new Yr(this[yc("0xe3")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this[yc("0x144")](t,e,yc("0x7"))(...n),onDiscard:(...n)=>this[yc("0x144")](t,e,yc("0x51"))(...n)})}[yc("0x43")](t,e,n,r){const i=t+":"+e+":"+n;this[yc("0xba")][yc("0xb7")](i,r)}[yc("0x144")](t,e,n){const r=t+":"+e+":"+n;return this[yc("0xba")].get(r)||this._defaultCallbacks.get(t+":"+n)}[yc("0x101")](){const t=()=>!1,e=t=>{t[yc("0x162")](((t,e)=>t[yc("0x157")][yc("0x15a")](e[yc("0x157")])?1:-1)),this[yc("0xe3")].change((e=>{for(const n of t){let t;t=n[yc("0xfd")][yc("0xa6")]&&n[yc("0xfd")][yc("0xc1")]==n[yc("0x157")][yc("0x1b")]?e[yc("0x12")](n[yc("0x157")][yc("0x1b")],"on"):e[yc("0x12")](n),this[yc("0xe3")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[yc("0xf0")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t.map((t=>(Sc(t)&&(t=this[yc("0xe3")][yc("0x116")](t.end)),t)))[yc("0x52")]((t=>yc("0x8")!==t[yc("0xef")][yc("0x11d")]));if(o[yc("0xeb")]<1)return;const x=Array[yc("0xc6")](this[yc("0xe3")][yc("0xaa")][yc("0x83")].getRanges())[yc("0x104")]((t=>s.LiveRange.fromRange(t)));n[yc("0xd1")](o);for(const t of this[yc("0xaf")].commands[yc("0xd3")]())t[yc("0x5e")]();i[yc("0x98")]({forceDefaultExecution:!0}),this._editor[yc("0x54")](r,...i);const a=x.filter((t=>yc("0x8")!=t[yc("0xef")].rootName));a[yc("0xeb")]>0&&n[yc("0xd1")](a);for(const t of x)t[yc("0x10c")]()}))},r=(t,e)=>1==t[yc("0xeb")]&&1==e[yc("0xeb")]&&t[0][yc("0xfd")][yc("0xa1")](e[0].start),i=(t,e,n,r)=>wc(t,e,n,r,this._model)?[t,e]:wc(e,t,r,n,this[yc("0xe3")])?[e,t]:null;this[yc("0xc2")][yc("0xb7")]("insertion:accept",t),this[yc("0xc2")][yc("0xb7")](yc("0x49"),e),this[yc("0xc2")][yc("0xb7")](yc("0x8f"),r),this._defaultCallbacks[yc("0xb7")]("insertion:chain",i),this[yc("0xc2")][yc("0xb7")](yc("0x7b"),e),this[yc("0xc2")].set(yc("0x84"),t),this._defaultCallbacks[yc("0xb7")](yc("0x161"),r),this[yc("0xc2")][yc("0xb7")](yc("0x16"),i),this._defaultCallbacks[yc("0xb7")](yc("0x108"),n),this._defaultCallbacks[yc("0xb7")]("formatInline:discard",t),this._defaultCallbacks.set(yc("0xea"),r),this[yc("0xc2")][yc("0xb7")](yc("0x143"),t),this[yc("0xc2")].set(yc("0x158"),n),this[yc("0xc2")][yc("0xb7")]("formatBlock:discard",t),this[yc("0xc2")].set(yc("0xfc"),r),this._defaultCallbacks[yc("0xb7")]("formatBlock:chain",t),this[yc("0xc2")].set(yc("0x12d"),t),this[yc("0xc2")][yc("0xb7")](yc("0x23"),((t,e)=>{if(!e)return;const n=this[yc("0xaf")][yc("0x103")].get(Ac);this._model[yc("0xf0")]((r=>{if("$elementName"==e[yc("0x13c")])for(const n of t){const t=n.start[yc("0x1b")],i=e[yc("0xcb")];r.rename(t,i)}else if(n[yc("0x5b")](e.key))for(const n of t)void 0!==e.oldValue?r[yc("0x6c")](e.key,e[yc("0xcb")],n.start.nodeAfter):r[yc("0x29")](e[yc("0x13c")],n[yc("0x157")].nodeAfter);else for(const n of t)e[yc("0xcb")]?r[yc("0x6c")](e[yc("0x13c")],e[yc("0xcb")],n):r[yc("0x29")](e[yc("0x13c")],n)}))})),this[yc("0xc2")][yc("0xb7")]("attribute:join",r)}}function Ic(t,e,n){for(const r of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(r[yc("0xef")]==r)return!1;if(!n[yc("0xb8")](r))return!1;if(t.isObject(r)||t[yc("0x81")](r))return!0}return!1}function Sc(t){return t[yc("0xfd")][yc("0xc1")]==t.start[yc("0x1b")]&&t.end.isAtStart}function Rc(t,e,n,r){const i=t=>!t[yc("0x3b")].is(yc("0x16d"))&&!r.isObject(t[yc("0x3b")]),o=t[yc("0x157")][yc("0x77")](i),s=t[yc("0xfd")][yc("0x77")](i,{direction:yc("0xdf")});return!(t[yc("0x157")][yc("0xa1")](o)&&t[yc("0xfd")].isEqual(s)||(o[yc("0x15a")](s)?n[yc("0x93")](e,{range:n[yc("0x116")](o,s)}):n[yc("0x110")](e),0))}function Nc(t){return(0,o.hashObject)(t)}function vc(t){const e=t.start[yc("0x1b")];return e&&e.is(yc("0xac"))}function Lc(t,e){return null==t.end.nodeBefore&&t[yc("0xfd")][yc("0xc1")]==t[yc("0x157")][yc("0x1b")]?Mc(t[yc("0x157")].nodeAfter,e):t}function Mc(t,e){const n=e[yc("0x133")].isObject(t)||e[yc("0x133")].isSelectable(t);return e[yc("0x116")](e.createPositionAt(t,"before"),n?e[yc("0x5f")](t):e.createPositionAt(t,yc("0xfd")))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n.end.isEqual(r[yc("0x157")]))return!0;if(t[yc("0xbc")]!=e.type)return!1;if(!n[yc("0xfd")][yc("0x5a")](r[yc("0x157")]))return!1;const o=i[yc("0x116")](n[yc("0xfd")],r[yc("0x157")])[yc("0xa")]();for(const t of o)if([yc("0xfe"),yc("0x100")][yc("0x59")](t[yc("0xbc")])&&i.schema[yc("0x81")](t[yc("0x3b")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x67")]||!e[yc("0x67")])&&jr(pc(t[yc("0x14a")],n),pc(e.attributes,n))}function Fc(t,e){const n=Dc(t.attributes),r=Dc(e);if(!t[yc("0x67")])return!1;for(const t of Object[yc("0x53")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0x8b")]({},t);return delete e[yc("0x3d")],delete e[yc("0x85")],e}const Bc=["view","acceptSuggestion","execute","listenTo","getRanges","locale","_discardCommand","isEnabled","commands","_setPendingAction","canAccept","unbind","canEditAt","_removePendingAction","_acceptCommand","_pendingAction","model","plugins","discardSuggestion","destroy","PendingActions","bind","_editor","commentThreadController","canDiscard","change:isDirty","get","add","isDirty"];var Pc,Uc;Pc=Bc,Uc=232,function(t){for(;--t;)Pc.push(Pc.shift())}(++Uc);const jc=function(t,e){return Bc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this.model=e,this[jc("0x0")]=n,this[jc("0x17")]=r,this[jc("0x16")]=t,this[jc("0xe")]=t[jc("0x8")][jc("0x1a")](jc("0x1")),this._discardCommand=t[jc("0x8")][jc("0x1a")](jc("0x12")),this[jc("0x0")].bind(jc("0x7")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[jc("0x0")][jc("0x15")](jc("0xa")).to(this[jc("0xe")],"isEnabled",(t=>t&&this[jc("0x16")].model[jc("0xc")](e.getRanges()))),this[jc("0x0")][jc("0x15")](jc("0x18")).to(this[jc("0x6")],jc("0x7"),(t=>t&&this[jc("0x16")][jc("0x10")][jc("0xc")](e[jc("0x4")]()))),this[jc("0xf")]=null,n[jc("0x1c")]&&this[jc("0x9")](),this.listenTo(n,"acceptSuggestion",(()=>this.acceptSuggestion())),this[jc("0x3")](n,jc("0x12"),(()=>this.discardSuggestion())),this[jc("0x3")](n,jc("0x19"),(()=>{n[jc("0x1c")]?this[jc("0x9")]():this[jc("0xd")]()}))}acceptSuggestion(){this._acceptCommand[jc("0x2")](this[jc("0x10")].id)}discardSuggestion(){this._discardCommand[jc("0x2")](this[jc("0x10")].id)}[jc("0x13")](){this[jc("0x0")][jc("0xb")](jc("0x7")),this[jc("0x0")].unbind("canAccept"),this[jc("0x0")][jc("0xb")](jc("0x18")),this.stopListening(),this.commentThreadController.destroy(),this[jc("0xf")]&&this[jc("0xd")]()}[jc("0x9")](){const t=Jr(this[jc("0x16")][jc("0x5")],"PENDING_ACTION_SUGGESTION");this._pendingAction=this._editor[jc("0x11")][jc("0x1a")](jc("0x14"))[jc("0x1b")](t)}[jc("0xd")](){null!==this[jc("0xf")]&&this[jc("0x16")][jc("0x11")].get("PendingActions").remove(this[jc("0xf")]),this[jc("0xf")]=null}}const Vc=["CommentView","showInput","delegate","canDiscard","editor","isReadOnly","updateComment","length","hasDirtyComment","_model","submit","commentThreadInputView","commentsListView","_createCommentThreadInputView","_createCommentViews","isActive","descriptionParts","element","destroy","set","assign","_config","commentThread","_localUser","removeComment","commentInputView","isDirty","locale","addComment","disableComments","authoredAt","focus","canAccept","bind","setData","value"];var Hc,zc;Hc=Vc,zc=463,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this[Wc("0x11")]=null,this[Wc("0x10")]=null,this.set(Wc("0x14"),!1),this[Wc("0x18")](Wc("0x23"),e.authoredAt),this[Wc("0x2")](Wc("0x23")).to(e),this[Wc("0x18")](Wc("0x15"),[]),this.set(Wc("0x1f"),!1),this[Wc("0x18")]("isEnabled",!1),this[Wc("0x18")](Wc("0x1"),!1),this.set(Wc("0x8"),!1),this._model=e,this[Wc("0x1c")]=n,this[Wc("0x1a")]=r,r[Wc("0x22")]?this.set(Wc("0xc"),1):this[Wc("0x13")]()}[Wc("0x0")](){this[Wc("0x16")][Wc("0x0")]()}destroy(){this[Wc("0x11")]&&this[Wc("0x11")][Wc("0x17")](),this[Wc("0x10")]&&this[Wc("0x10")][Wc("0x17")](),super[Wc("0x17")]()}[Wc("0x13")](){const{CommentsListView:t}=this._config;this[Wc("0x11")]=new t(this[Wc("0x20")],this[Wc("0xe")][Wc("0x1b")],Object[Wc("0x19")]({CommentView:this[Wc("0x1a")][Wc("0x5")]},this._config)),this.commentsListView[Wc("0x7")](Wc("0x1d")).to(this),this.commentsListView[Wc("0x7")](Wc("0xb")).to(this),this[Wc("0x11")].bind(Wc("0x14")).to(this),this.set(Wc("0xc"),this[Wc("0x11")][Wc("0xc")]+1),this[Wc("0x2")](Wc("0xc")).to(this[Wc("0x11")],"length",(t=>t+1)),this[Wc("0x10")]=this._createCommentThreadInputView(),this.on(Wc("0x1d"),(()=>this.focus())),this[Wc("0x2")](Wc("0x1f")).to(this[Wc("0x11")],Wc("0xd"),this[Wc("0x10")][Wc("0x1e")],Wc("0x4"),((t,e)=>t||!!e))}[Wc("0x12")](){const{CommentThreadInputView:t}=this[Wc("0x1a")],e=new t(this[Wc("0x20")],this[Wc("0x1c")],this._config.editorConfig),n=e.commentInputView;return e[Wc("0x2")](Wc("0x6")).to(this,Wc("0x14"),this[Wc("0xe")][Wc("0x1b")],"isReadOnly",n,"value",((t,e,n)=>!!n||t&&!e)),n.on(Wc("0xf"),((t,e)=>{this.fire(Wc("0x21"),e),n[Wc("0x9")][Wc("0x3")]("")})),n.on("cancel",(()=>this[Wc("0x0")]())),n[Wc("0x2")]("disabledSubmit").to(this[Wc("0xe")][Wc("0x1b")],Wc("0xa")),e}}const qc=["source","isActive","color","ck-annotation","extendTemplate","locale","push","@external","<p>","type","getExternalSuggestionNote","description","delegate","commentsListView","editorDestroyed","discardSuggestion","join","getTemplate","isEnabled","_model","setTemplate","span","bindTemplate","innerHTML","formatDateTime","querySelector",".ck-annotation__content-wrapper","importWord","Accept suggestion","content","ck-annotation__info-time","commentThread","EXTERNAL_AVATAR",'" title="',"Discard suggestion","cancel","editorReady","execute","_createButton","creator","element","ck-annotation__content-wrapper","title","descriptionParts","render","disableComments","acceptButton","attributes","ck-annotation__info-name","value","author","ck-suggestion__user","ck-annotation__info","discardButton","ck-suggestion-","createElement","userView",'"></span>',"getUserViewNotificationText","authoredAt","ck-suggestion__actions","name","canAccept","ck-suggestion-wrapper","isExternal","_config","ck-suggestion-wrapper--active","_descriptionElement","commentThreadInputView","split","children","div","ck-suggestion","ck-annotation__main","</span>","set","bind","ck-suggestion__main","ck-comment__external","ck-suggestion__info","fire"];var $c,Xc;$c=qc,Xc=145,function(t){for(;--t;)$c.push($c.shift())}(++Xc);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0xb")](Zc("0x1a"),""),this.bind(Zc("0x1a")).to(this,Zc("0x3c"),(t=>t&&t[0]?t[0][Zc("0x1a")]:"")),this[Zc("0xc")](Zc("0x1c")).to(this,Zc("0x3c"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=Zc("0x19")+Jc(e[Zc("0x2e")],e[Zc("0x13")])+"</p>";return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x3")]=null,this[Zc("0x3f")]=this[Zc("0x37")](Jr(e,Zc("0x2d")),t.icons.check,"ck-suggestion--accept","acceptSuggestion","sw"),this.acceptButton[Zc("0xc")]("isEnabled").to(this,Zc("0x4f")),this[Zc("0x46")]=this[Zc("0x37")](Jr(e,Zc("0x33")),t.icons[Zc("0x34")],"ck-suggestion--discard",Zc("0x20"),"sw"),this.discardButton[Zc("0xc")](Zc("0x23")).to(this,"canDiscard"),this[Zc("0x49")]=new o.UserView(e,this._model[Zc("0x43")],this[Zc("0x4b")]()),this[Zc("0x49")][Zc("0x15")]({attributes:{class:[Zc("0x44"),"ck-annotation__user"]}}),this[Zc("0x25")](this[Zc("0x22")]())}[Zc("0x22")](){const t=this[Zc("0x27")],e=[{tag:Zc("0x7"),attributes:{class:[Zc("0xf"),Zc("0x45")]},children:[{tag:Zc("0x26"),children:[{text:this[Zc("0x49")].name}],attributes:{class:["ck-suggestion__info-name",Zc("0x41")]}},{tag:"time",attributes:{datetime:t.to(Zc("0x4c")),class:["ck-comment__info-time",Zc("0x2f")]},children:[{text:t.to(Zc("0x4c"),(t=>this._config[Zc("0x29")](t)))}]}]},{tag:Zc("0x7"),attributes:{class:[Zc("0x4d"),"ck-annotation__actions"]},children:[this[Zc("0x3f")],this[Zc("0x46")]]},{tag:Zc("0x7"),attributes:{class:[Zc("0x3a")]}}];this[Zc("0x24")].isExternal&&e[Zc("0x17")]({tag:Zc("0x7"),attributes:{class:[Zc("0xe")]},children:[{text:this[Zc("0x1b")]()}]});const n={tag:Zc("0x7"),attributes:{class:[Zc("0x50"),t.if(Zc("0x12"),Zc("0x2")),t.to(Zc("0x1a"),(t=>Zc("0x47")+t)),this[Zc("0x1")][Zc("0x3e")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[Zc("0x24")].id,"data-thread-id":this[Zc("0x24")][Zc("0x30")].id,"data-author-id":this[Zc("0x24")][Zc("0x43")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[Zc("0x8"),Zc("0x14")]},children:[this[Zc("0x49")],{tag:Zc("0x7"),attributes:{class:[Zc("0xd"),Zc("0x9")]},children:e}]}]};return this[Zc("0x1e")]&&this[Zc("0x4")]&&(n[Zc("0x6")][Zc("0x17")](this[Zc("0x1e")],this[Zc("0x4")]),this.commentsListView[Zc("0x1d")](Zc("0x35")).to(this),this[Zc("0x1e")][Zc("0x1d")]("editorDestroyed").to(this),this[Zc("0x4")][Zc("0x1d")](Zc("0x35")).to(this),this[Zc("0x4")][Zc("0x1d")](Zc("0x1f")).to(this)),n}[Zc("0x3d")](){super[Zc("0x3d")](),this[Zc("0x3")]=this[Zc("0x39")][Zc("0x2a")](Zc("0x2b")),this._descriptionElement[Zc("0x28")]=this[Zc("0x1c")],this.on("change:description",((t,e,n)=>{this._descriptionElement[Zc("0x28")]=n}))}_createButton(t,e,n,r,o){const s=new i.ButtonView(this.locale);return s[Zc("0xb")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0x15")]({attributes:{class:n}}),s.on(Zc("0x36"),(()=>{this[Zc("0x10")](r,this[Zc("0x24")].id)})),s}[Zc("0x1b")](){return Zc("0x2c")===this._model.attributes[Zc("0x18")][Zc("0x11")]?Jr(this[Zc("0x16")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Jr(this[Zc("0x16")],"EXTERNAL_SUGGESTION")}[Zc("0x4b")](){return this[Zc("0x24")][Zc("0x0")]?Zc("0x2c")===this[Zc("0x24")][Zc("0x40")]["@external"].source?Jr(this[Zc("0x16")],"EXTERNAL_IMPORT_WORD_AVATAR",this._model[Zc("0x38")].name):Jr(this[Zc("0x16")],Zc("0x31"),this._model[Zc("0x38")][Zc("0x4e")]):null}}function Jc(t,e){let n="";return n+=t[Zc("0x5")]("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Qc(t)+Zc("0xa"):Qc(t)))[Zc("0x21")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Zc("0x42")]+Zc("0x32")+e[Zc("0x3b")]+Zc("0x4a")),n}function Qc(t){const e=document[Zc("0x48")](Zc("0x26"));return e.innerText=t,e[Zc("0x28")]}const tl=["acceptAllSuggestions","plugins","config","descriptionParts","getAllAdjacentSuggestions","comments","switchbutton","_initializeController","TrackChangesEditing","trackChanges","model","SuggestionThreadView","refreshSelectedViews","actionView","activeMarkers","acceptButton","init","map","CommentView","Discard all suggestions","change:previous","editor","_suggestionToController","_refreshActiveMarkers","getMarkerNames","stopListening","comments.maxCommentsWhenCollapsed","get","acceptSelectedSuggestions","getJoined","values","getDescriptions","isEnabled","listenTo","size","suggestionChanged","isInContent","toMany","getByInnerView","comments.maxThreadTotalWeight","mainView","editing","_descriptionFactory","destroy","isDirty","_destroyController","comments.maxCommentCharsWhenCollapsed","define","previous","getMarkers","createAnnotationView","type","_updateController","_handleControllerBuffer","head","push","_handleSuggestionControllerDelayed","_annotationViews","set","add","source","filter","comments.editorConfig","length","commandName","getRanges","CommentsRepository","_unbindEditors","view","trackChanges.disableComments","EditorAnnotations","_viewToController","clear","reduce","getSuggestion","createAnnotation","createCommentThreadController","TrackChangesUI","requires","focus","bind","commands","commentThread","hasSuggestion","isMultiRange","Accept all selected suggestions","_disableComments","from","discardAllSuggestions","delete","locale","button","separator","Discard all selected suggestions","Annotations","unbind","has","isOn","execute","_createUIButton","innerView","addComment","getFirstRange","buttonView","some","arrowView"];var el,nl;el=tl,nl=130,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x36")](){return[Ac,o.Users,"CommentsRepository",rl("0x46"),rl("0x2e")]}static get pluginName(){return rl("0x35")}constructor(t){super(t),this[rl("0x68")]=new Map,this[rl("0x2f")]=new Map,this[rl("0x21")]=new Map,this._handleControllerBuffer=new Map;const e=this[rl("0x67")][rl("0x54")];e[rl("0x17")]("trackChanges.SuggestionThreadView",Yc),e.define(rl("0x2d"),!1),this[rl("0x3e")]=e.get(rl("0x2d"))}[rl("0x20")](t,e){0===this._handleControllerBuffer[rl("0xa")]&&setTimeout((()=>{for(const[t,e]of this[rl("0x1d")]){const n=this[rl("0x68")][rl("0x48")](t);n||e?n&&e&&this[rl("0x15")](t):this[rl("0x59")](t)}this[rl("0x1d")][rl("0x30")](),this[rl("0x67")][rl("0x53")][rl("0x3")](rl("0x2e"))[rl("0x5e")](),this._refreshActiveMarkers()}),10),this._handleControllerBuffer[rl("0x22")](t,e)}[rl("0x62")](){const t=this.editor,e=t[rl("0x53")].get("TrackChangesEditing"),n=t[rl("0x53")][rl("0x3")](rl("0x46")),r=t[rl("0x53")][rl("0x3")]("EditorAnnotations"),i=t[rl("0x53")][rl("0x3")](rl("0x2a"));t.ui.componentFactory[rl("0x23")](rl("0x5b"),(t=>this[rl("0x4b")](t))),r.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[rl("0x3f")](this._suggestionToController)){const r=e[rl("0x56")](),i=[];for(const t of r){if(!t.isInContent)continue;if(t[rl("0x3c")]){i[rl("0x1f")](...t[rl("0x29")]());continue}const e=t[rl("0x4e")]();if(i[rl("0x27")]>0){const t=i[0][rl("0x5")](e);if(t){i[0]=t;continue}}i[rl("0x1f")](e)}t.push([n[rl("0x2c")],i])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this[rl("0x9")](e,"change:previous",((t,n,r,i)=>{e[rl("0xc")]&&(null==r?(this[rl("0x1c")](i[rl("0x1e")]),this._handleSuggestionControllerDelayed(e,!1)):(this[rl("0x1c")](r[rl("0x1e")]),null==i&&this[rl("0x20")](e,!0)))})),null!==e[rl("0x18")]?this[rl("0x1c")](e[rl("0x1e")]):this[rl("0x20")](e,!1)})),this[rl("0x9")](e,"suggestionUnloaded",((t,e,n)=>{this[rl("0x1")](e,rl("0x66")),this[rl("0x1d")][rl("0x41")](e),this[rl("0x68")][rl("0x48")](e)&&this._destroyController(e),n&&this[rl("0x1c")](n[rl("0x1e")])})),this.listenTo(e,rl("0xb"),((t,e)=>{this[rl("0x1c")](e)})),this[rl("0x9")](n,"change:activeAnnotations",(()=>{this[rl("0x69")]()})),this[rl("0x9")](i,rl("0x4d"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[rl("0x3b")](n))return;const i=e[rl("0x32")](n);this[rl("0x68")].get(i).view[rl("0x37")]()}),{priority:"lowest"})}[rl("0x69")](){const t=this[rl("0x67")][rl("0x53")][rl("0x3")](rl("0x46")),e=this[rl("0x67")].plugins.get("TrackChangesEditing"),n=Array[rl("0x3f")](t.activeAnnotations,(t=>t[rl("0x4c")]))[rl("0x25")]((t=>this[rl("0x2f")][rl("0x48")](t))),r=[];for(const t of n){const e=this[rl("0x2f")].get(t).model[rl("0x56")]();r[rl("0x1f")](...e[rl("0x31")](((t,e)=>[...t,...e[rl("0x0")]()]),[]))}e[rl("0x60")]=r}[rl("0x4b")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this.editor.commands.get("trackChanges"),o=Jr(t,"Track changes");n[rl("0x4f")].set({tooltip:o,label:o,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-2024, 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[rl("0x4f")][rl("0x38")](rl("0x49")).to(r,"value"),n[rl("0x4f")].on("execute",(()=>{r[rl("0x4a")](),this[rl("0x67")][rl("0x11")][rl("0x2c")][rl("0x37")]()}));const s=new e.Collection,x=[{type:rl("0x58"),model:{withText:!0,label:o,commandName:rl("0x5b")}},{type:rl("0x44")},{type:rl("0x43"),model:{withText:!0,label:Jr(t,"Accept all suggestions"),commandName:rl("0x52")}},{type:rl("0x43"),model:{withText:!0,label:Jr(t,rl("0x3d")),commandName:rl("0x4")}},{type:"button",model:{withText:!0,label:Jr(t,rl("0x65")),commandName:rl("0x40")}},{type:rl("0x43"),model:{withText:!0,label:Jr(t,rl("0x45")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[rl("0x5c")]){const n=new i.ViewModel(t[rl("0x5c")]),r=this[rl("0x67")][rl("0x39")][rl("0x3")](n[rl("0x28")]);n[rl("0x38")](rl("0x49"),rl("0x8")).to(r,"value","isEnabled"),e={type:t[rl("0x1b")],model:n}}s[rl("0x23")](e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0x25")]((t=>null!=t[rl("0x5c")]))[rl("0x63")]((t=>this[rl("0x67")].commands[rl("0x3")](t.model.commandName))),c=n[rl("0x4f")];return c.actionView.unbind(rl("0x8")),c[rl("0x51")][rl("0x47")](rl("0x8")),c[rl("0x5f")][rl("0x38")]("isEnabled").to(r,rl("0x8")),c.arrowView[rl("0x38")](rl("0x8"))[rl("0xd")](a,rl("0x8"),((...t)=>t[rl("0x50")]((t=>t)))),n.on(rl("0x4a"),(t=>{this[rl("0x67")][rl("0x4a")](t[rl("0x24")][rl("0x28")]),this[rl("0x67")][rl("0x11")][rl("0x2c")][rl("0x37")]()})),n}[rl("0x59")](t){const e=this[rl("0x67")],n=e[rl("0x54")],r=e[rl("0x53")][rl("0x3")](rl("0x46")),i=e[rl("0x53")][rl("0x3")]("CommentsRepository"),s=e[rl("0x53")][rl("0x3")](rl("0x2e")),x=e.plugins[rl("0x3")](o.Users).me,a=n[rl("0x3")](rl("0x5b"))[rl("0x5d")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x53")].get("CommentsUI");let u,d;this[rl("0x21")][rl("0x48")](t.id)?(d=this[rl("0x21")][rl("0x3")](t.id),u=d[rl("0x10")]):(u=new a(e[rl("0x42")],t,x,{disableComments:this._disableComments,editorConfig:n[rl("0x3")](rl("0x26")),maxCommentsWhenCollapsed:n.get(rl("0x2")),maxThreadTotalWeight:n[rl("0x3")](rl("0xf")),maxCommentCharsWhenCollapsed:n[rl("0x3")](rl("0x16")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0x3")]("locale")),CommentView:n[rl("0x3")](rl("0x57"))[rl("0x64")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x61")].on(rl("0x4a"),(()=>{e[rl("0x11")].view.focus()})),u.discardButton.on("execute",(()=>{e[rl("0x11")][rl("0x2c")][rl("0x37")]()})),d=r[rl("0x1a")](this[rl("0x67")][rl("0x42")],u),d[rl("0x38")]("isDirty").to(u,rl("0x14")),d[rl("0x38")](rl("0x27")).to(u),d[rl("0x38")]("type").to(u,rl("0x1b"),(t=>"suggestion-"+t)),this._annotationViews[rl("0x22")](t.id,d));const g=i[rl("0x34")](t[rl("0x3a")],u),f=new Gc(e,t,u,g),h=t[rl("0x56")]()[rl("0x25")]((t=>t.isInContent));u[rl("0x55")]=e[rl("0x53")][rl("0x3")](rl("0x5a"))._descriptionFactory.getDescriptions(h),this[rl("0x68")][rl("0x22")](t,f),this._viewToController[rl("0x22")](u,f);const m=r[rl("0x33")]({view:d,target:()=>{const n=[],r=t[rl("0x56")]()[rl("0x25")]((t=>t.isInContent));for(const t of r)n[rl("0x1f")](...t[rl("0x19")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x11")],n)},type:()=>"suggestion-"+f.view.type});i._bindAnnotationToEditors(u,m),r[rl("0x23")](m),s.registerAnnotation(m)}[rl("0x15")](t){const e=this[rl("0x67")][rl("0x53")][rl("0x3")](rl("0x2a")),n=this[rl("0x67")][rl("0x53")][rl("0x3")]("Annotations"),r=this[rl("0x68")][rl("0x3")](t),i=r[rl("0x2c")],o=n[rl("0xe")](i);e[rl("0x2b")](i),o&&n.remove(o),this._suggestionToController.delete(t),this[rl("0x2f")][rl("0x41")](i),r[rl("0x13")]()}[rl("0x1c")](t){if(!t[rl("0xc")]||!this[rl("0x68")][rl("0x48")](t))return;const e=this[rl("0x67")].plugins[rl("0x3")](rl("0x5a")),n=this[rl("0x68")][rl("0x3")](t),r=t[rl("0x56")]();n[rl("0x2c")].descriptionParts=e[rl("0x12")][rl("0x7")](r)}[rl("0x13")](){for(const t of this._suggestionToController.keys())this[rl("0x15")](t);for(const t of this[rl("0x21")][rl("0x6")]())t[rl("0x10")].destroy();super.destroy()}}var ol,sl,xl=["getSuggestion","pluginName","TrackChanges","getSuggestions","requires","adapter","plugins","editor","get","addSuggestionData"];ol=xl,sl=429,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x5")](){return[Ac,il,"Comments"]}static get[al("0x2")](){return al("0x3")}set[al("0x6")](t){this[al("0x8")][al("0x7")][al("0x9")](Ac)[al("0x6")]=t}get[al("0x6")](){return this[al("0x8")][al("0x7")][al("0x9")](Ac)[al("0x6")]}addSuggestion(t){return this[al("0x8")][al("0x7")].get(Ac)[al("0x0")](t)}[al("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x8")][al("0x7")][al("0x9")](Ac)[al("0x4")]({skipNotAttached:t,toJSON:e})}[al("0x1")](t){return this.editor[al("0x7")].get(Ac)[al("0x1")](t)}}const ll=["discardAllSuggestions","pluginName","init","model","constructor","TrackChangesEditing","getFullData","define","TrackChangesData","plugins","config","rootsAttributes","editor","destroy","appendChild","function","document","get","getRootNames","trackChangesData","getUser","_adapter","getDataWithAcceptedSuggestions","Users","useAnonymousUser","trackChangesData.editorCreator","getSuggestions","set","data","editorCreator","createDocumentFragment","reduce","result","TrackChangesDataGetter","acceptAllSuggestions","addUser","end","div"];var ul,dl;ul=ll,dl=483,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=["Pagination"];class hl extends t.Plugin{static get requires(){return[Ac]}static get[gl("0xc")](){return gl("0x13")}[gl("0xd")](){const t=this[gl("0x17")];if(t[gl("0x15")][gl("0x12")](gl("0x24"),(e=>{const n=t[gl("0xe")][gl("0x1b")].getRootNames()[gl("0x4")](((t,e)=>(t[e]="",t)),{});return t[gl("0xf")].create(n,e)})),gl("0x1a")!=typeof t[gl("0x15")][gl("0x1c")](gl("0x1e")).editorCreator)throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[gl("0x21")](t){return pl(this[gl("0x17")],!0,t)}getDataWithDiscardedSuggestions(t){return pl(this.editor,!1,t)}}class ml extends t.Plugin{static get[gl("0xc")](){return gl("0x6")}constructor(t){super(t),this[gl("0x5")]=gl("0x9")}[gl("0xd")](){this[gl("0x17")][gl("0x14")][gl("0x1c")]("CommentsRepository")[gl("0x20")]={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[gl("0x17")][gl("0x14")][gl("0x1c")](gl("0x10"))[gl("0x20")]=null}}function bl(t){return void 0!==t.getRootsAttributes}async function pl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x14")].push(Ac,ml),r[gl("0x16")]=bl(t)?t.getRootsAttributes():void 0;const i=document[gl("0x3")](),s=t.config[gl("0x1c")]("trackChangesData")[gl("0x2")],x=await s(r,(()=>function(t){const e=document.createElement(gl("0xa"));return t[gl("0x19")](e),e}(i)));!function(t,e){const n=t[gl("0xe")].document[gl("0x1d")]().reduce(((e,n)=>(e[n]=t[gl("0x1")][gl("0x1c")]({rootName:n}),e)),{}),r=t[gl("0x14")][gl("0x1c")](gl("0x22")).users.map((t=>({id:t.id,name:t.name}))),i=t[gl("0x14")][gl("0x1c")](gl("0x10"))[gl("0x25")]({skipNotAttached:!0,toJSON:!0}),o=e[gl("0x14")].get(gl("0x22")),s=e.plugins[gl("0x1c")](gl("0x10"));for(const t of r)o[gl("0x1f")](t.id)||o[gl("0x8")](t);o.me||o[gl("0x23")]();for(const t of i)s.addSuggestionData(t);e[gl("0x1")][gl("0x0")](n)}(t,x),x.execute(gl(e?"0x7":"0xb"));const a=bl(x)?x[gl("0x11")](n):x[gl("0x1")].get(n);return await x[gl("0x18")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();