@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240125.0 → 0.0.0-nightly-20240126.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(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},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 i={};(()=>{"use strict";n.r(i),n.d(i,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),r=n(273),o=n(417),s=n(492),x=n(995);const a=["_disableUnsupportedCommands","editor","has","_enabledCommands","forceDisabled","clearForceDisabled","refresh","isEnabled","_enableCommands","affectsData","_isEnabledBasedOnSelection","commands","execute","TrackChangesCommand","value"];var c,l;c=a,l=202,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("0xb")]=e,this.value=!1,this.refresh(),this[u("0x3")]=!1}[u("0xe")](){this[u("0x0")]=!0}[u("0x5")](){this[u("0x7")]=!this[u("0x7")],this[u("0x7")]?this[u("0x8")]():this._enableCommands()}[u("0x8")](){for(const t of this[u("0x9")][u("0x4")][u("0x4")]())t[u("0x2")]&&!this._enabledCommands[u("0xa")](t)&&t[u("0xc")](u("0x6"))}[u("0x1")](){for(const t of this[u("0x9")].commands[u("0x4")]())t[u("0x2")]&&!this[u("0xb")][u("0xa")](t)&&t[u("0xd")](u("0x6"))}}const g=["acceptSuggestion","TrackChangesEditing","editor","isEnabled","plugins","refresh","model","canEditAt","_suggestions","get","getRanges","track-changes-accept-suggestion-not-found"];var f,h;f=g,h=262,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[m("0xa")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[m("0x7")](){this[m("0x5")]=!0}execute(t){const n=this[m("0xa")][m("0xb")](t);if(!n)throw new e.CKEditorError(m("0x1"),this);const i=n[m("0x0")]();this.editor[m("0x8")][m("0x9")](i)&&this[m("0x4")][m("0x6")].get(m("0x3"))[m("0x2")](n)}}const b=["plugins","get","track-changes-discard-suggestion-not-found","getRanges","TrackChangesEditing","discardSuggestion","refresh","_suggestions","editor","model","execute","isEnabled"];var E,_;E=b,_=406,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x8")](),this._isEnabledBasedOnSelection=!1}[T("0x8")](){this[T("0x1")]=!0}[T("0x0")](t){const n=this[T("0x9")][T("0x3")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const i=n[T("0x5")]();this.editor[T("0xb")].canEditAt(i)&&this[T("0xa")][T("0x2")][T("0x3")](T("0x6"))[T("0x7")](n)}}const C=["end","from","isIntersecting","content","createRange","isArray","createPositionAfter","change","createPositionBefore","schema","isInContent","isObject","isCollapsed","execute","getRanges","length","value","map","sort","createPositionAt","splice","isTouching","next","start","type","deletion","isMultiRange","add","color"];var A,k;A=C,k=403,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x15")](((t,e)=>"deletion"==t[I("0x1b")]&&I("0x1c")!=e.type?-1:"deletion"!=t[I("0x1b")]&&I("0x1c")==e[I("0x1b")]?1:0))}function S(t,e){let n,i=0;const r=[],o=e[I("0xc")];for(;i<t.length;){const s=t[i],x=t[i+1];n||(n=e[I("0xb")](s)),v(e,s,x)||(r.push(e[I("0x7")](n,o[I("0xe")](s)?e[I("0x9")](s):e[I("0x16")](s,"end"))),n=null),i++}return r}function v(t,e,n){if(!n)return!1;const i=t.createPositionAfter(e),r=t[I("0xb")](n);return i.isTouching(r)}function L(t,e,n){for(;n[I("0x12")];){const i=n[I("0x17")](0,100);t[I("0xa")]((()=>{for(const t of i)t[I("0xd")]&&e[I("0x10")](t.id)}))}}const N=["canEditAt","some","execute","_isEnabledBasedOnSelection","refresh","editor","_command","model","_suggestions","isEnabled"];var M,w;M=N,w=334,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("0x2")]=e,this[O("0x4")]=n,this[O("0x0")](),this[O("0x9")]=!1}refresh(){const t=Array.from(this[O("0x4")].values())[O("0x7")]((t=>t.isInContent));this.isEnabled=this[O("0x2")][O("0x5")]&&t}[O("0x8")](){const t=R(Array.from(this._suggestions.values()));for(const e of t){const t=e.getRanges();if(!this[O("0x1")][O("0x3")][O("0x6")](t))return}L(this[O("0x1")][O("0x3")],this[O("0x2")],t)}}const D=["_isEnabledBasedOnSelection","canEditAt","size","from","getRanges","_selectedSuggestions","_suggestions","model","editor","isEnabled","document","selection","execute","refresh","values","_command"];var B,P;B=D,P=353,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("0xe")]=e,this[U("0x5")]=n,this[U("0x4")]=new Set,this.refresh(),this[U("0xf")]=!1}[U("0xc")](){const t=this.editor[U("0x6")][U("0x9")][U("0xa")],e=Array.from(this[U("0x5")][U("0xd")]());this[U("0x4")]=function(t,e){const n=Array[I("0x4")](t[I("0x11")]()),i=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r.getRanges())(e[I("0x5")](n)||t[I("0xf")]&&!r[I("0x0")]&&r[I("0x19")]&&n[I("0x3")][I("0x18")](e[I("0x1a")]))&&i[I("0x1")](r);return i}(t,e),this[U("0x8")]=this[U("0xe")][U("0x8")]&&!!this[U("0x4")][U("0x1")]}[U("0xb")](){const t=R(Array[U("0x2")](this[U("0x4")]));for(const e of t){const t=e[U("0x3")]();if(!this[U("0x7")][U("0x6")][U("0x0")](t))return}L(this[U("0x7")][U("0x6")],this[U("0xe")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,i=H(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const it=et||nt||Function("return this")();const rt=it.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var i=!0}catch(t){}var r=xt.call(t);return i&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.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=it["__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,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(ht(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Nt=Lt(it,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const 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 i=t[e];this.set(i[0],i[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 Xt=function(t,e){var n=zt(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var i=n.__data__;if(!Nt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(i)}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,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var ie=Object.prototype.hasOwnProperty;const re=function(t,e,n){var i=t[e];ie.call(t,e)&&V(i,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=i?i(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};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?it.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Le=ve?Ae(ve):Ce;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),i=!n&&de(t),r=!n&&!i&&be(t),o=!n&&!i&&!r&&Le(t),s=n||i||r||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||s&&("length"==c||r&&("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 i in t)("constructor"!=i||!e&&He.call(t,i))&&n.push(i);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,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?it.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,i=Ze?Ze(n):new t.constructor(n);return t.copy(i),i};const Je=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=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,i=e.length,r=t.length;++n<i;)t[r+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 i=e(t);return ge(t)?i:sn(i,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Lt(it,"DataView");const fn=Lt(it,"Promise");const hn=Lt(it,"Set");const mn=Lt(it,"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),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||fn&&Rn(fn.resolve())!=bn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,i=n?Tt(n):"";if(i)switch(i){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=it.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=rt?rt.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 i=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new i(+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 i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const ti=function t(e,n,i,r,o,s){var x,a=1&n,c=2&n,l=4&n;if(i&&(x=o?i(e,r,o,s):i(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!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),$n(e)?e.forEach((function(r){x.add(t(r,n,i,r,e,s))})):Kn(e)&&e.forEach((function(r,o){x.set(o,t(r,n,i,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(r,o){h&&(r=e[o=r]),re(x,o,t(r,n,i,o,e,s))})),x};const ei=function(t){return ti(t,5)};const ni=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var ii=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ri=/^\w*$/;const oi=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ni(t))||(ri.test(t)||!ii.test(t)||null!=e&&t in Object(e))};function si(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(si.Cache||Zt),n}si.Cache=Zt;const xi=si;var ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ci=/\\(\\)?/g;const li=function(t){var e=xi(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(ai,(function(t,n,i,r){e.push(i?r.replace(ci,"$1"):n||t)})),e}));const ui=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r};var di=rt?rt.prototype:void 0,gi=di?di.toString:void 0;const fi=function t(e){if("string"==typeof e)return e;if(ge(e))return ui(e,t)+"";if(ni(e))return gi?gi.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hi=function(t){return null==t?"":fi(t)};const mi=function(t,e){return ge(t)?t:oi(t,e)?[t]:li(hi(t))};const pi=function(t){if("string"==typeof t||ni(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const bi=function(t,e,n,i){if(!ft(t))return t;for(var r=-1,o=(e=mi(e,t)).length,s=o-1,x=t;null!=x&&++r<o;){var a=pi(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=i?i(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const Ei=function(t,e,n){return null==t?t:bi(t,e,n)};const _i=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Ti=function(t){return this.__data__.has(t)};function yi(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yi.prototype.add=yi.prototype.push=_i,yi.prototype.has=Ti;const Ci=yi;const Ai=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const ki=function(t,e){return t.has(e)};const Ii=function(t,e,n,i,r,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 Ci:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(i)var m=s?i(h,f,u,e,t,o):i(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ai(e,(function(t,e){if(!ki(g,e)&&(f===t||r(f,t,n,i,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!r(f,h,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Ri=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n};const Si=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vi=rt?rt.prototype:void 0,Li=vi?vi.valueOf:void 0;const Ni=function(t,e,n,i,r,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 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=Ri;case"[object Set]":var a=1&i;if(x||(x=Si),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;i|=2,s.set(t,e);var l=Ii(x(t),x(e),i,r,o,s);return s.delete(t),l;case"[object Symbol]":if(Li)return Li.call(t)==Li.call(e)}return!1};var Mi=Object.prototype.hasOwnProperty;const wi=function(t,e,n,i,r,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:Mi.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(i)var p=s?i(m,h,l,e,t,o):i(h,m,l,t,e,o);if(!(void 0===p?h===m||r(h,m,n,i,o):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 o.delete(t),o.delete(e),g};var Oi="[object Arguments]",Fi="[object Array]",Di="[object Object]",Bi=Object.prototype.hasOwnProperty;const Pi=function(t,e,n,i,r,o){var s=ge(t),x=ge(e),a=s?Fi:Sn(t),c=x?Fi:Sn(e),l=(a=a==Oi?Di:a)==Di,u=(c=c==Oi?Di:c)==Di,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||Le(t)?Ii(t,e,n,i,r,o):Ni(t,e,a,n,i,r,o);if(!(1&n)){var g=l&&Bi.call(t,"__wrapped__"),f=u&&Bi.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),r(h,m,n,i,o)}}return!!d&&(o||(o=new Qt),wi(t,e,n,i,r,o))};const Ui=function t(e,n,i,r,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pi(e,n,i,r,t,o))};const ji=function(t,e){return Ui(t,e)};const Gi=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vi=function(t,e){for(var n=0,i=(e=mi(e,t)).length;null!=t&&n<i;)t=t[pi(e[n++])];return n&&n==i?t:void 0};const Hi=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o};const zi=function(t,e){return e.length<2?t:Vi(t,Hi(e,0,-1))};const Wi=function(t,e){return e=mi(e,t),null==(t=zi(t,e))||delete t[pi(Gi(e))]};const Ki=function(t,e){return null==t||Wi(t,e)},qi=["getContainedElement","map","_model","_onAccept","end","getRange","delete","getFirstMarker","get","split","type","onAttributesChange","clear","length","markers","getItems","isMultiRange","getMultiRangeId","creator","authoredAt","size","addMarkerName","filter","getMarkers","subType","data","decorate","getMarkerNames","set","_markerNames","nodeAfter","getRanges","toJSON","isIntersectingWithRange","discard","removeMarkers","previous","substr","removeMarker","accept","attributes","_onAttributesChange","hasComments","createdAt","commentThread","change","@external","isIntersecting","add","author","setAttribute","getFirstRange","onAccept","removeAttribute","head","from","_onDiscard","start","onDiscard"];var Xi,$i;Xi=qi,$i=357,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Zi=function(t,e){return qi[t-=0]};class Yi extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this.type=e[Zi("0x7")],this[Zi("0x15")]=e.subType||null,this.author=e[Zi("0x2e")],this[Zi("0xf")]=e[Zi("0xf")]||e[Zi("0x2e")],this.isExternal=Boolean(e.attributes&&e[Zi("0x25")][Zi("0x2b")]),this[Zi("0x16")]=null,this._model=t,this[Zi("0x0")]=e[Zi("0x31")],this[Zi("0x35")]=e[Zi("0x37")],this._onAttributesChange=e[Zi("0x8")],this[Zi("0x1a")]=new Set,this[Zi("0x28")]=null,this[Zi("0x19")](Zi("0x10"),null),this[Zi("0x19")]("attributes",e[Zi("0x25")]||{}),this[Zi("0x19")](Zi("0x21"),null),this[Zi("0x19")]("next",null),this[Zi("0x19")](Zi("0x29"),null),this[Zi("0x19")]("_saved",!1),this[Zi("0x17")]("accept"),this[Zi("0x17")](Zi("0x1f"))}get[Zi("0x33")](){let t=this;for(;t[Zi("0x21")];)t=t.previous;return t}get[Zi("0x27")](){return!!this.commentThread&&this[Zi("0x29")].length>0}get[Zi("0xd")](){return 0!=this[Zi("0x1a")][Zi("0x11")]&&6==Array[Zi("0x34")](this[Zi("0x1a")])[0][Zi("0x6")](":")[Zi("0xa")]}get isInContent(){return null!==this.getFirstMarker()}[Zi("0x12")](t){this[Zi("0x1a")][Zi("0x2d")](t)}[Zi("0x18")](){return Array[Zi("0x34")](this[Zi("0x1a")])}[Zi("0x14")](){return this.getMarkerNames().map((t=>this._model[Zi("0xb")][Zi("0x5")](t)))[Zi("0x13")]((t=>t))}[Zi("0x4")](){return this[Zi("0x14")]()[0]||null}[Zi("0x20")](){this._model.change((t=>{for(const e of this[Zi("0x14")]())t[Zi("0x23")](e)})),this[Zi("0x1a")][Zi("0x9")]()}[Zi("0x23")](t){this[Zi("0x3a")][Zi("0x2a")]((e=>{e[Zi("0x23")](t)})),this[Zi("0x1a")][Zi("0x3")](t)}addRange(t){const e="suggestion:"+this.type+":"+this[Zi("0x15")]+":"+this.id+":"+this[Zi("0xf")].id+":"+Yi[Zi("0xe")]();this[Zi("0x12")](e),this[Zi("0x3a")][Zi("0x2a")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zi("0x1e")](t){for(const e of this[Zi("0x1c")]())if(e[Zi("0x2c")](t))return!0;return!1}[Zi("0x1c")](){return this.getMarkers()[Zi("0x39")]((t=>t.getRange()))}[Zi("0xc")](){return this[Zi("0x1c")]().reduce(((t,e)=>[...t,...e.getItems()]),[])}[Zi("0x30")](){var t;return(null===(t=this[Zi("0x4")]())||void 0===t?void 0:t[Zi("0x2")]())||null}[Zi("0x38")](){const t=this[Zi("0x1c")]();if(1!=t[Zi("0xa")])return null;const e=t[0],n=e[Zi("0x36")][Zi("0x1b")],i=e[Zi("0x1")].nodeBefore;return n instanceof s.Element?n!=i?null:n:null}[Zi("0x24")](){this[Zi("0x0")](this[Zi("0x1c")](),this[Zi("0x16")],this[Zi("0x25")]),this[Zi("0x20")]()}[Zi("0x1f")](){this._onDiscard(this.getRanges(),this[Zi("0x16")],this[Zi("0x25")]),this.removeMarkers()}getAllAdjacentSuggestions(){const t=[];let e=this[Zi("0x33")];for(;e;)t.push(e),e=e.next;return t}[Zi("0x2f")](t,e){const n=ei(this[Zi("0x25")]);Ei(n,t,e),ji(n,this[Zi("0x25")])||(this[Zi("0x25")]=n,this[Zi("0x26")](n))}[Zi("0x32")](t){const e=ei(this[Zi("0x25")]);Ki(e,t),ji(e,this[Zi("0x25")])||(this[Zi("0x25")]=e,this[Zi("0x26")](this.attributes))}[Zi("0x1d")](){return{id:this.id,type:this[Zi("0x15")]?this[Zi("0x7")]+":"+this.subType:this.type,authorId:this[Zi("0xf")].id,createdAt:this[Zi("0x28")],hasComments:this.hasComments,data:this[Zi("0x16")],attributes:this[Zi("0x25")]}}static[Zi("0xe")](){return(0,e.uid)()[Zi("0x22")](1,5)}}function Ji(t,e,n){const i=t.t;switch(e){case"Track changes":return i("Track changes");case"Accept suggestion":return i("Accept suggestion");case"Discard suggestion":return i("Discard suggestion");case"Accept all suggestions":return i("Accept all suggestions");case"Accept all selected suggestions":return i("Accept all selected suggestions");case"Discard all suggestions":return i("Discard all suggestions");case"Discard all selected suggestions":return i("Discard all selected suggestions");case"*Reset font size*":return i("*Reset font size*");case"*Reset font family*":return i("*Reset font family*");case"*Reset font color*":return i("*Reset font color*");case"*Reset font background color*":return i("*Reset font background color*");case"*Remove image text alternative*":return i("*Remove image text alternative*");case"*Reset image width*":return i("*Reset image width*");case"*Remove link*":return i("*Remove link*");case"*Check item*":return i("*Check item*");case"*Uncheck item*":return i("*Uncheck item*");case"*Remove all formatting*":return i("*Remove all formatting*");case"*Replace table cells*":return i("*Replace table cells*");case"*Merge cells*":return i("*Merge cells*");case"*Split cell:* vertically":return i("*Split cell:* vertically");case"*Split cell:* horizontally":return i("*Split cell:* horizontally");case"*Indent:* %0":return i("*Indent:* %0",n);case"*Outdent:* %0":return i("*Outdent:* %0",n);case"*Change to:* %0":return i("*Change to:* %0",n);case"*Insert:* %0":return i("*Insert:* %0",n);case"*Format:* %0":return i("*Format:* %0",n);case"*Format:* change table properties":return i("*Format:* change table properties");case"*Format:* change table cell properties":return i("*Format:* change table cell properties");case"*Format:* insert into %0":return i("*Format:* insert into %0",n);case"*Format:* remove from %0":return i("*Format:* remove from %0",n);case"*Replace image URL*":return i("*Replace image URL*");case"*Format:* resize table":return i("*Format:* resize table");case"*Format:* set order to reversed":return i("*Format:* set order to reversed");case"*Format:* set order to regular":return i("*Format:* set order to regular");case"*Format:* set start index to %0":return i("*Format:* set start index to %0",n);case"*Change %0 content*":return i("*Change %0 content*",n);case"*Remove:* %0":return i("*Remove:* %0",n);case"*Merge:* %0":return i("*Merge:* %0",n);case"*Split:* %0":return i("*Split:* %0",n);case"*Remove format:* %0":return i("*Remove format:* %0",n);case"*Set font size:* %0":return i("*Set font size:* %0",n);case"*Set font family:* %0":return i("*Set font family:* %0",n);case"*Set format to:* %0":return i("*Set format to:* %0",n);case"*Set font color:* %0":return i("*Set font color:* %0",n);case"*Set font background color:* %0":return i("*Set font background color:* %0",n);case"*Set format:* %0":return i("*Set format:* %0",n);case"*Set image text alternative:* %0":return i("*Set image text alternative:* %0",n);case"*Set image width:* %0":return i("*Set image width:* %0",n);case"*Set link:* %0":return i("*Set link:* %0",n);case"*Set highlight:* %0":return i("*Set highlight:* %0",n);case"*Remove highlight*":return i("*Remove highlight*");case"FORMAT_HIGHLIGHT":return i({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return i({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return i({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return i({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return i({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return i({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return i({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return i({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return i({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return i({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return i({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return i({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return i({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return i({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return i({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return i({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return i({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return i({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return i({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return i({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return i({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return i({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return i({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return i({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return i({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return i({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return i({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return i({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return i({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return i({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return i({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return i({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return i({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return i({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return i({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return i({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return i({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return i({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return i({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return i({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return i({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return i({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return i({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return i({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return i({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return i({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return i({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return i({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return i({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return i({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return i({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return i({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return i({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return i({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return i({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return i({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return i({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return i({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return i({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return i({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return i({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 i({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return i({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 i({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return i({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return i({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return i({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return i({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return i({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return i({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qi=["ELEMENT_SPACE","isEmpty","remove","deletion","length","isInContent","removeFormat","registerElementLabel","matchingCallback","match","nextSibling","_handleInsertRemoveSuggestionDescription","_locale","registerAttributeLabel","Object","getFirstRange","getDescriptions","_itemLabels","replace","indexOf","text","*Remove format:* %0","isEqual","normal","end","*Merge:* %0","type","addContainer","isObject","start","removeObject","_handleRenameSuggestionDescription","get","nodeAfter","*Change to:* %0","has","set","getItemLabel","*Remove:* %0","_resolveDescriptionItems","format","$1 $2","quantity","*Insert:* %0","name","Container","elementEnd","add","subType","insertion","map","attribute","EmptyContainer","_handleAttributeSuggestionDescription","elementStart","*Set format:* %0","_attributeLabels","addObject","_schema","REPLACE_TEXT","$text","_handleCustomCallbackDescription","newValue","function","pop","element","_customCallbacks","item","*Split:* %0","push","_itemLabelsCallbacks","_addDescriptionItems","addEmptyContainer","key","previousSibling","$textProxy","data","registerDescriptionCallback","getWalker","checkChild"];var tr,er;tr=Qi,er=201,function(t){for(;--t;)tr.push(tr.shift())}(++er);const nr=function(t,e){return Qi[t-=0]};class ir{constructor(t,e){this[nr("0x19")]=[],this[nr("0x38")]=new Map,this[nr("0x1d")]=[],this._attributeLabels=new Map,this[nr("0x11")]=t,this[nr("0x33")]=e}[nr("0x37")](t){const e=[],n=new Set,i=new Set;for(let r=0;r<t[nr("0x2b")];r++){const o=t[r];if(!o[nr("0x2c")])continue;const s=this[nr("0x14")](o);if(s){if(null!=o[nr("0x7")]){if(n[nr("0x4a")](o[nr("0x7")]))continue;n[nr("0x6")](o.subType)}e[nr("0x1c")](s)}else if(nr("0xa")!=o[nr("0x41")])nr("0x8")!=o.type&&nr("0x2a")!=o.type||this[nr("0x32")](e,o,t[r+1]);else{const t=o[nr("0x23")].key;if(i[nr("0x4a")](t))continue;i.add(o[nr("0x23")][nr("0x20")]),t==Cc?this[nr("0x46")](e,o):this[nr("0xc")](e,o)}}return this[nr("0x4e")](e)}[nr("0x24")](t){this._customCallbacks.push(t)}[nr("0x2e")](t,n,i=e.priorities[nr("0x3e")]){nr("0x16")==typeof t?(0,e.insertToPriorityArray)(this[nr("0x1d")],{matchingCallback:t,label:n,priority:i}):this._itemLabels[nr("0x4b")](t,n)}[nr("0x34")](t,e){this._attributeLabels[nr("0x4b")](t,e)}[nr("0x4c")](t,e=1){let n;for(const e of this[nr("0x1d")])if(e[nr("0x2f")](t)){n=e.label;break}return n||(n=this[nr("0x38")][nr("0x47")](t[nr("0x3")])),n?n(e):1!==e?e+" "+t[nr("0x3")]+"s":""+t[nr("0x3")]}[nr("0x1e")](t,e){const n=e[nr("0x36")]()[nr("0x25")](),i=nr("0x8")==e[nr("0x41")]?nr("0x6"):"remove";for(const e of n){const r=e[nr("0x1a")],o=t[t[nr("0x2b")]-1];if(r.is(nr("0x22")))o&&o.type[nr("0x3a")](nr("0x4"))>-1&&t[nr("0x17")](),o&&"text"==o[nr("0x41")]?o[i]+=r[nr("0x23")]:t[nr("0x1c")]({type:nr("0x3b"),add:"add"==i?r.data:"",remove:nr("0x29")==i?r[nr("0x23")]:""});else if(this[nr("0x11")].isObject(r)){const s=r;if(o&&o.type.indexOf(nr("0x4"))>-1&&t[nr("0x17")](),nr("0x5")==e[nr("0x41")])continue;o&&o[nr("0x41")]==i+nr("0x35")&&o[nr("0x18")][nr("0x3")]==s.name?o[nr("0x1")]++:t[nr("0x1c")]({type:i+"Object",element:s,quantity:1}),n.skip((t=>!(nr("0x5")==t.type&&t[nr("0x1a")]==r)))}else if(this[nr("0x11")][nr("0x26")](r,nr("0x13"))||r.is(nr("0x18"),"softBreak")){const n=r;if(nr("0x6")==i&&nr("0xd")==e[nr("0x41")]||nr("0x29")==i&&nr("0x5")==e[nr("0x41")])continue;if(o&&-1==o[nr("0x41")][nr("0x3a")](nr("0x4"))){nr("0x3b")==o[nr("0x41")]&&(o[i]+="\n");continue}let s;if(s=nr("0x6")==i?n[nr("0x31")]&&!this[nr("0x11")][nr("0x43")](n.nextSibling)?n.nextSibling:null:n[nr("0x21")]&&!this._schema[nr("0x43")](n.previousSibling)?n.previousSibling:null,n.isEmpty||s&&s.isEmpty){const e=s&&s[nr("0x28")]?s:n;o&&o[nr("0x41")]==i+nr("0xb")&&o.element.name==e[nr("0x3")]?o[nr("0x1")]++:t[nr("0x1c")]({type:i+nr("0xb"),element:e,quantity:1})}else t[nr("0x1c")]({type:i+"Container",element:n})}}}[nr("0x4e")](t){const e=this._locale,n=[],i=[],r=[];for(const o of t)switch(o[nr("0x41")]){case"text":if(o[nr("0x6")]=o[nr("0x6")][nr("0x39")](/(\S)\u000A+(\S)/g,"$1 $2")[nr("0x39")](/\u000A/g,""),o[nr("0x29")]=o[nr("0x29")][nr("0x39")](/(\S)\u000A+(\S)/g,nr("0x0"))[nr("0x39")](/\u000A/g,""),""!=o[nr("0x6")]&&""!=o[nr("0x29")]){n[nr("0x1c")]({type:"replace",content:Ji(e,nr("0x12"),['"'+o[nr("0x29")]+'"','"'+o[nr("0x6")]+'"'])});continue}if(null!=o[nr("0x6")][nr("0x30")](/^ +$/)){n[nr("0x1c")]({type:nr("0x8"),content:Ji(e,nr("0x2"),Ji(e,nr("0x27"),o[nr("0x6")][nr("0x2b")]))});continue}if(null!=o[nr("0x29")][nr("0x30")](/^ +$/)){n[nr("0x1c")]({type:nr("0x2a"),content:Ji(e,nr("0x4d"),Ji(e,nr("0x27"),o[nr("0x29")].length))});continue}if(""!=o[nr("0x6")]){n[nr("0x1c")]({type:nr("0x8"),content:Ji(e,nr("0x2"),'"'+o[nr("0x6")]+'"')});continue}n.push({type:nr("0x2a"),content:Ji(e,"*Remove:* %0",'"'+o[nr("0x29")]+'"')});continue;case nr("0x1f"):case nr("0x10"):n[nr("0x1c")]({type:nr("0x8"),content:Ji(e,nr("0x2"),this[nr("0x4c")](o[nr("0x18")],o[nr("0x1")]))});continue;case"removeEmptyContainer":case nr("0x45"):n[nr("0x1c")]({type:nr("0x2a"),content:Ji(e,nr("0x4d"),this[nr("0x4c")](o.element,o.quantity))});continue;case nr("0x42"):n.push({type:nr("0x8"),content:Ji(e,nr("0x1b"),this[nr("0x4c")](o[nr("0x18")],o[nr("0x1")]))});continue;case"removeContainer":n.push({type:nr("0x2a"),content:Ji(e,nr("0x40"),this[nr("0x4c")](o.element,o[nr("0x1")]))});continue;case"addFormat":i.push(o[nr("0x20")]);continue;case nr("0x2d"):r[nr("0x1c")](o.key);continue;default:n.push(o)}if(i.length){const t=i.map((t=>this[nr("0xf")][nr("0x4a")](t)?this[nr("0xf")][nr("0x47")](t):t)).join(", ");n[nr("0x1c")]({type:nr("0x4f"),content:Ji(this[nr("0x33")],nr("0xe"),t)})}if(r[nr("0x2b")]){const t=r[nr("0x9")]((t=>this[nr("0xf")][nr("0x4a")](t)?this._attributeLabels[nr("0x47")](t):t)).join(", ");n.push({type:"format",content:Ji(this[nr("0x33")],nr("0x3c"),t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[nr("0x19")]){const n=e(t);if(n&&nr("0x41")in n)return n}}[nr("0xc")](t,e){const n=e[nr("0x23")],i=void 0===n[nr("0x15")]?"removeFormat":"addFormat";t[nr("0x1c")]({type:i,key:n[nr("0x20")]})}[nr("0x46")](t,e){t[nr("0x1c")]({type:nr("0x4f"),content:Ji(this[nr("0x33")],nr("0x49"),this[nr("0x4c")](e[nr("0x36")]()[nr("0x44")][nr("0x48")],1))})}[nr("0x32")](t,e,n){if(this._addDescriptionItems(t,e),n&&n[nr("0x36")]()&&!e[nr("0x36")]()[nr("0x3f")][nr("0x3d")](n[nr("0x36")]()[nr("0x44")])){const n=t[t[nr("0x2b")]-1],i=nr("0x8")==e[nr("0x41")]?nr("0x6"):nr("0x29");n&&nr("0x3b")==n.type&&(n[i]+="\n")}}}const rr=["enableCommand","showAIAssistant","get","commands","TrackChangesEditing","afterInit","editor"];var or,sr;or=rr,sr=444,function(t){for(;--t;)or.push(or.shift())}(++sr);const xr=function(t,e){return rr[t-=0]};class ar extends t.Plugin{[xr("0x2")](){const t=this[xr("0x3")],e=t.plugins[xr("0x6")](xr("0x1"));t[xr("0x0")][xr("0x6")](xr("0x5"))&&e[xr("0x4")]("showAIAssistant")}}const cr=["afterInit","FORMAT_ALIGN_TO_CENTER","get","type","_registerLegacyDescription","locale","formatBlock","*Format:* %0","value","plugins","format","has","center","right","_descriptionFactory","alignment","AlignmentEditing","FORMAT_ALIGNMENT","TrackChangesEditing","left","editor","commandName","justify","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGN_TO_RIGHT"];var lr,ur;lr=cr,ur=337,function(t){for(;--t;)lr.push(lr.shift())}(++ur);const dr=function(t,e){return cr[t-=0]};class gr extends t.Plugin{[dr("0xd")](){const t=this[dr("0x8")],e=t[dr("0x12")];if(!t[dr("0x16")][dr("0x18")](dr("0x4")))return;const n=t[dr("0x16")][dr("0xf")](dr("0x6"));n._enableDefaultAttributesIntegration(dr("0x3"),[],[dr("0x3")]),n._descriptionFactory.registerAttributeLabel(dr("0x3"),Ji(e,dr("0x5"))),this[dr("0x11")]()}[dr("0x11")](){const t=this[dr("0x8")],e=t[dr("0x12")];t[dr("0x16")][dr("0xf")](dr("0x6"))[dr("0x2")].registerDescriptionCallback((t=>{if(dr("0x13")!=t[dr("0x10")])return;const{data:n}=t;if(n&&dr("0x3")==n[dr("0x9")]){const t=n.commandParams[0][dr("0x15")];return{type:dr("0x17"),content:Ji(e,dr("0x14"),function(t){switch(t){case dr("0x7"):return Ji(e,dr("0xb"));case dr("0x1"):return Ji(e,dr("0xc"));case dr("0x0"):return Ji(e,dr("0xe"));case dr("0xa"):return Ji(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fr=["_registerLegacyDescription","StrikethroughEditing","SuperscriptEditing","_enableDefaultAttributesIntegration","format","*Format:* %0","italic","commandParams","FORMAT_STRIKETHROUGH","get","registerAttributeLabel","FORMAT_UNDERLINE","underline","ItalicEditing","FORMAT_CODE","FORMAT_BOLD","commandName","FORMAT_SUBSCRIPT","bold","plugins","UnderlineEditing","BoldEditing","subscript","type","FORMAT_ITALIC","_descriptionFactory","*Remove format:* %0","forceValue","slice","locale","afterInit","TrackChangesEditing"];var hr,mr;hr=fr,mr=170,function(t){for(;--t;)hr.push(hr.shift())}(++mr);const pr=function(t,e){return fr[t-=0]},br=[pr("0xb"),pr("0x3"),pr("0xa"),"CodeEditing",pr("0x17"),"SubscriptEditing",pr("0x18")];class Er extends t.Plugin{[pr("0x14")](){const t=this.editor,e=t[pr("0x9")].get(pr("0x15")),n=t[pr("0x13")];for(const i of br){if(!t[pr("0x9")].has(i))continue;const r=i[pr("0x12")](0,-7).toLowerCase(),o="FORMAT_"+r.toUpperCase();e[pr("0x19")](r,[r]),e[pr("0xf")][pr("0x0")](r,Ji(n,o))}this[pr("0x16")]()}[pr("0x16")](){const t=this.editor,e=t[pr("0x13")],n=t[pr("0x9")][pr("0x1f")](pr("0x15"));function i(t,i){n[pr("0xf")].registerDescriptionCallback((n=>{if("formatInline"!=n[pr("0xd")])return;const{data:r}=n;return r&&r[pr("0x6")]===t?r[pr("0x1d")][0][pr("0x11")]?{type:pr("0x1a"),content:Ji(e,pr("0x1b"),i)}:{type:pr("0x1a"),content:Ji(e,pr("0x10"),i)}:void 0}))}i(pr("0x8"),Ji(e,pr("0x5"))),i(pr("0x1c"),Ji(e,pr("0xe"))),i(pr("0x2"),Ji(e,pr("0x1"))),i("code",Ji(e,pr("0x4"))),i("strikethrough",Ji(e,pr("0x1e"))),i(pr("0xc"),Ji(e,pr("0x7"))),i("superscript",Ji(e,"FORMAT_SUPERSCRIPT"))}}const _r=["afterInit","schema","get","commandParams","ELEMENT_BLOCK_QUOTE","from","name","parent","commandName","locale","document","checkChild","*Set format:* %0","change","format","$root","plugins","filter","model","forceValue","has","blockQuote","markBlockFormat","editor","registerDescriptionCallback","TrackChangesEditing","value","getSelectedBlocks","selection"];var Tr,yr;Tr=_r,yr=201,function(t){for(;--t;)Tr.push(Tr.shift())}(++yr);const Cr=function(t,e){return _r[t-=0]};class Ar extends t.Plugin{[Cr("0x2")](){const t=this.editor,e=t[Cr("0xb")];if(!t[Cr("0x12")][Cr("0x16")]("BlockQuoteEditing"))return;const n=t[Cr("0x12")][Cr("0x4")](Cr("0x1b")),i=this[Cr("0x19")].commands[Cr("0x4")](Cr("0x17"));n.enableCommand(Cr("0x17"),((e,r={})=>{const o=this[Cr("0x19")].model[Cr("0xc")][Cr("0x1")],s=r&&void 0!==r[Cr("0x15")]?r[Cr("0x15")]:!i[Cr("0x1c")];let x=[];if(s){const e=Array[Cr("0x7")](o.getSelectedBlocks())[Cr("0x13")]((t=>kr(t)||function(t,e){const n=e[Cr("0xd")](t[Cr("0x9")],Cr("0x17")),i=e[Cr("0xd")]([Cr("0x11"),Cr("0x17")],t);return n&&i}(t,this[Cr("0x19")].model[Cr("0x3")])));x=S(e,t[Cr("0x14")])}else{const e=Array[Cr("0x7")](o[Cr("0x0")]())[Cr("0x13")]((t=>kr(t)));x=S(e,t[Cr("0x14")])}t[Cr("0x14")][Cr("0xf")]((()=>{for(const t of x)n[Cr("0x18")](t,{commandName:Cr("0x17"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[Cr("0x1a")]((t=>{const{data:n}=t;if(n&&Cr("0x17")==n[Cr("0xa")]){const t=Ji(e,Cr("0x6"));return n[Cr("0x5")][0][Cr("0x15")]?{type:Cr("0x10"),content:Ji(e,Cr("0xe"),t)}:{type:Cr("0x10"),content:Ji(e,"*Remove format:* %0",t)}}}))}}function kr(t){return"blockQuote"==t[Cr("0x9")][Cr("0x8")]}const Ir=["plugins","get","enableCommand","changeCaseTitle","afterInit","CaseChange","has","TrackChangesEditing"];var Rr,Sr;Rr=Ir,Sr=228,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const vr=function(t,e){return Ir[t-=0]};class Lr extends t.Plugin{[vr("0x0")](){const t=this.editor;t[vr("0x4")][vr("0x2")](vr("0x1"))&&(t[vr("0x4")][vr("0x5")](vr("0x3"))[vr("0x6")]("changeCaseUpper"),t.plugins[vr("0x5")]("TrackChangesEditing")[vr("0x6")]("changeCaseLower"),t[vr("0x4")][vr("0x5")](vr("0x3"))[vr("0x6")](vr("0x7")))}}const Nr=["afterInit","enableCommand","get","editor","ckbox","TrackChangesEditing","commands"];var Mr,wr;Mr=Nr,wr=332,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0x4")](){const t=this[Or("0x0")];t[Or("0x3")].get(Or("0x1"))&&t.plugins[Or("0x6")](Or("0x2"))[Or("0x5")](Or("0x1"))}}const Dr=["ELEMENT_CODE_BLOCK","enableCommand","document","get","commandName","config","from","languages","forceValue","*Set format:* %0","editor","outdentCodeBlock","commandParams","parent","locale","plugins","getSelectedBlocks","toLowerCase","*Remove format:* %0","language","change","selection","format","isLimit","codeBlock","afterInit","value","registerElementLabel","name","commands","checkChild","CodeBlock","_descriptionFactory","type","blockName","rootElement","find","model"];var Br,Pr;Br=Dr,Pr=398,function(t){for(;--t;)Br.push(Br.shift())}(++Pr);const Ur=function(t,e){return Dr[t-=0]};class jr extends t.Plugin{[Ur("0x7")](){const t=this[Ur("0x1e")];if(!t[Ur("0x23")].has(Ur("0xd")))return;const e=t[Ur("0x23")][Ur("0x17")]("TrackChangesEditing"),n=t[Ur("0x22")],i=t[Ur("0x19")].get(Ur("0x6"))[Ur("0x1b")],r=t[Ur("0xb")][Ur("0x17")](Ur("0x6"));e[Ur("0x15")]("indentCodeBlock"),e[Ur("0x15")](Ur("0x1f")),e.enableCommand("codeBlock",((n,o={})=>{const s=t[Ur("0x13")],x=t[Ur("0x13")][Ur("0x16")][Ur("0x3")],a=o&&void 0!==o[Ur("0x1c")]?o.forceValue:!r[Ur("0x8")];let c;o.language||(o[Ur("0x1")]=i[0].language),c=a?Array[Ur("0x1a")](x.getSelectedBlocks()).filter((t=>{return Gr(t)||(e=t,n=s.schema,!e.is(Ur("0x11"))&&!n[Ur("0x5")](e)&&n[Ur("0xc")](e[Ur("0x21")],Ur("0x6")));var e,n})):Array[Ur("0x1a")](x[Ur("0x24")]()).filter((t=>Gr(t)));const l=S(c,s);s[Ur("0x2")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ur("0x6"),commandParams:[{...o,forceValue:a}],formatGroupId:Ur("0x10")})}))})),e[Ur("0xe")][Ur("0x9")](Ur("0x6"),(t=>Ji(n,Ur("0x14"),t))),e._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[Ur("0xf")])return;const e=n.t,{data:r}=t;if(!r||Ur("0x6")!=r[Ur("0x18")])return;const o=r[Ur("0x20")][0][Ur("0x1")],s=e(i[Ur("0x12")]((t=>t.language===o)).label)[Ur("0x25")]();return r[Ur("0x20")][0][Ur("0x1c")]?{type:"format",content:Ji(n,Ur("0x1d"),Ji(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ur("0x4"),content:Ji(n,Ur("0x0"),Ji(n,"ELEMENT_CODE_BLOCK",1))}}))}}function Gr(t){return Ur("0x6")==t[Ur("0xa")]}const Vr=["editor","addCommentThread","has","enableCommand","TrackChangesEditing","plugins","get","afterInit"];var Hr,zr;Hr=Vr,zr=382,function(t){for(;--t;)Hr.push(Hr.shift())}(++zr);const Wr=function(t,e){return Vr[t-=0]};class Kr extends t.Plugin{[Wr("0x1")](){const t=this[Wr("0x2")];t[Wr("0x7")][Wr("0x4")]("CommentsEditing")&&t.plugins[Wr("0x0")](Wr("0x6"))[Wr("0x5")](Wr("0x3"))}}var qr=n(181);const Xr=["includes","type","hasAttribute","activeMarkers","toViewPosition","writer","createUIElement","getAttribute","element","markerName","isContent","mapper","model","name","markerRange","nextSibling","listIndent","start","push","addClass","schema","isAtEnd","previousPosition","span","plugins","toViewElement","insert","createRangeOn"];var $r,Zr;$r=Xr,Zr=340,function(t){for(;--t;)$r.push($r.shift())}(++Zr);const Yr=function(t,e){return Xr[t-=0]};function Jr(t,e,n){const i=[];for(const r of e.getItems())r[Yr("0x1a")](t)&&i[Yr("0xe")](n[Yr("0x17")](r));return i}function Qr(t,e,{showActiveMarker:n=!0}={}){const i=t[Yr("0x14")].get("TrackChangesEditing");return(r,o,s)=>{if(!s.consumable.test(o[Yr("0xa")],r[Yr("0x9")]))return;const x=o[Yr("0xa")].getWalker(),a=o[Yr("0xa")][Yr("0xd")],c=t[Yr("0x8")][Yr("0x10")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[Yr("0x6")](e);const n=s[Yr("0x7")][Yr("0x15")](e);if(n&&n.getCustomProperty("addHighlight"))return;"elementEnd"==t[Yr("0x19")]&&c.isBlock(e)&&!c.isLimit(e)&&(e.nextSibling||a[Yr("0x11")]?l&&l.parent==e||(l=e,f(t[Yr("0x12")]),g=!0):u=u||t.previousPosition)}function f(t){const r=s[Yr("0x1")][Yr("0x2")](Yr("0x13"),{class:"ck-suggestion-marker-"+e}),x=s.mapper[Yr("0x0")](t);n&&i[Yr("0x1b")][Yr("0x18")](o[Yr("0x5")])&&s.writer[Yr("0xf")]("ck-suggestion-marker--active",r),s[Yr("0x1")][Yr("0x16")](x,r),s[Yr("0x7")].bindElementToMarker(r,o[Yr("0x5")])}d||g||!u||f(u)}}const to=["createSelection","deleteForward","editing","forward","enqueueChange","high","showSuggestionHighlights","TrackChangesEditing","start","unlock","options","unit","editor","commands","$graveyard","unbindElementFromMarkerName","uiElement","removeMarker:suggestion:deletion","isCollapsed","writer","mapper","selection","enableCommand","model","get","merge","lock","plugins","remove","detach","requires","addMarker:suggestion:deletion","batch","markerNameToElements","markerName","bind","init","rootName","data","fromRange","createRange","buffer","end","downcastDispatcher"];var eo,no;eo=to,no=248,function(t){for(;--t;)eo.push(eo.shift())}(++no);const io=function(t,e){return to[t-=0]};class ro extends t.Plugin{static get[io("0x2")](){return[qr.Delete]}[io("0x8")](){const t=this[io("0x1c")],e=t[io("0x2b")][io("0x28")](io("0x17"));e[io("0x26")]("delete");const n=t[io("0x1d")].get(io("0x11"));e[io("0x26")](io("0x11"),((e,i={})=>{const r=t[io("0x27")][io("0x10")](t[io("0x27")].document[io("0x25")]);r[io("0x22")]&&t.model.modifySelection(r,{direction:io("0x13"),unit:i[io("0x1b")]});const o=r.getFirstRange(),x=s.LiveRange[io("0xb")](o);let a;e(i),a=io("0x1e")==x.root[io("0x9")]?t.model[io("0xc")](o[io("0x18")]):t[io("0x27")].createRange(x[io("0x18")],x[io("0xe")]),x[io("0x1")](),t.model[io("0x14")](n[io("0xd")][io("0x4")],(t=>{n[io("0xd")][io("0x2a")](),t.setSelection(t[io("0xc")](a[io("0xe")])),n[io("0xd")][io("0x19")]()}))})),t.editing.downcastDispatcher.on(io("0x3"),Qr(t,io("0x29")),{priority:io("0x15")}),t[io("0xa")][io("0xf")].on("addMarker:suggestion:deletion",((e,n,i)=>{i[io("0x1a")][io("0x16")]&&Qr(t,io("0x29"),{showActiveMarker:!1})[io("0x7")](this)(e,n,i)}),{priority:"high"}),t[io("0x12")][io("0xf")].on(io("0x21"),((t,e,n)=>{const i=n.mapper[io("0x5")](e[io("0x6")]);if(i)for(const t of i)t.is(io("0x20"))&&(n[io("0x24")][io("0x1f")](t,e[io("0x6")]),n[io("0x23")][io("0x0")](t))}),{priority:io("0x15")})}}const oo=["*Split:* list item","data","splitListItemAfter","getFirstRange","editor","bulletedList","ELEMENT_NUMBERED_LIST","listStart","_LIST","find","checkTodoList","todoList","previousSibling","model","mergeListItemForward","setAttribute","newValue","ELEMENT_BULLETED_LIST","head","schema","getChanges","ListEditing","has","selection","indentList","deletion","attributeKey","fromRange","_findSuggestions","locale","map","listReversed","listItemIdFixer","key","registerPostFixer","start","ELEMENT_LIST_ITEM","listType","todoListCheck","push","splitListItemBefore","createPositionAt","config","type","commandName","getAttribute","mergeListItemBackward","*Remove format:* %0","_suggestionFactory","nextSibling","suggestion","numberedList","document","attributes","afterInit","nodeAfter","registerCustomCallback","list.multiBlock","*Change to:* %0","todoListChecked","ELEMENT_TODO_LIST","plugins","getFirstMarker","createRange","accept","value","todo","commandParams","noTrackChangesFixer","refresh","_getAttributeKey","default","oldValue","get","getSuggestions","*Check item*","execute","TrackChangesEditing","*Format:* remove from %0","listStyle","registerElementLabel","numbered","documentList","batch","*Indent:* %0","isUndo","attribute","*Set format:* %0","containsItem","filter","*Format:* insert into %0","isLocal","detach","format","range","end","listItemId","outdentList","getRanges","formatBlock","FORMAT_INDENT","length","assureChains","listIndent","removeMarker","ELEMENT_","_registerLegacyDescription","registerAttributeLabel","meta","bulleted","commands","every","includes","forceValue","next","setSelection","_enableDefaultAttributesIntegration","isObject","groupId","registerDescriptionCallback","*Merge:* %0","isNextTo","_descriptionFactory"];var so,xo;so=oo,xo=494,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0x34")](){const t=this[ao("0x2")];if(!t.plugins[ao("0x14")](ao("0x13")))return;const e=t[ao("0x1b")],n=t.plugins.get("TrackChangesEditing"),i=t[ao("0x3b")][ao("0x14")]("TodoListEditing"),r=!!t.config[ao("0x47")]("list.multiBlock");function o(t){return{type:"format",content:""+Ji(e,ao("0x55"),t)}}function s(t){return{type:"format",content:""+Ji(e,ao("0x2d"),t)}}n[ao("0x72")]("numberedList",[],[ao("0x5e"),"listType",ao("0x65")]),n[ao("0x72")](ao("0x3")),n[ao("0x72")]("indentList"),n[ao("0x72")](ao("0x5f")),n._enableDefaultAttributesIntegration(ao("0x0")),n[ao("0x72")](ao("0x26")),r&&(n._enableDefaultAttributesIntegration(ao("0x2c")),n[ao("0x72")](ao("0xc"))),i&&(n._enableDefaultAttributesIntegration(ao("0x9")),n[ao("0x72")](ao("0x8"),[],["todoListChecked"]),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ao("0x39")==n.key)return{type:ao("0x5b"),content:n[ao("0xe")]?Ji(e,ao("0x49")):Ji(e,"*Uncheck item*")}})),this[ao("0x2")][ao("0xb")].document[ao("0x20")]((t=>{if(t[ao("0x51")].isUndo)return!1;let e=!1;const i=n[ao("0x48")]({skipNotAttached:!0})[ao("0x57")]((t=>ao("0x39")===n._getAttributeKey(t)));for(const r of i)"todo"!=r[ao("0x1")]()[ao("0x21")][ao("0x35")][ao("0x2b")](ao("0x23"))&&(n[ao("0x1a")](r.getFirstRange(),ao("0x54"))[ao("0x7")]((t=>ao("0x23")===n._getAttributeKey(t[ao("0x30")])))||(t.removeMarker(r.getFirstMarker()),e=!0));return e}))),n[ao("0x78")][ao("0x69")]("listIndent",Ji(e,ao("0x62")));const x={type:ao("0x5b"),content:""};n._descriptionFactory[ao("0x75")]((t=>{const{data:n}=t;if(!n||ao("0x23")!=n[ao("0x1f")])return;let i=t.head;for(;i;){if(i[ao("0x7a")]&&(ao("0x4d")==i[ao("0x7a")].key&&(i[ao("0x7a")].newValue&&ao("0x45")!=i[ao("0x7a")][ao("0xe")]||ao("0x45")!=i[ao("0x7a")].oldValue&&!n[ao("0xe")])||!r&&i[ao("0x7a")][ao("0x1f")]==Cc))return x;i=i.next}if(null==n[ao("0xe")])switch(n.oldValue){case ao("0x6b"):return s(Ji(e,ao("0xf")));case ao("0x4f"):return s(Ji(e,ao("0x4")));case ao("0x40"):return s(Ji(e,ao("0x3a")))}switch(n.newValue){case ao("0x6b"):return o(Ji(e,ao("0xf")));case"numbered":return o(Ji(e,"ELEMENT_NUMBERED_LIST"));case ao("0x40"):return o(Ji(e,"ELEMENT_TODO_LIST"))}})),n[ao("0x78")][ao("0x75")]((t=>{const{data:e}=t;if(e&&ao("0x65")==e[ao("0x1f")])return null==e[ao("0xe")]||null==e.oldValue&&0==e[ao("0xe")]?x:void 0})),n[ao("0x78")][ao("0x75")]((t=>{if(ao("0x54")!=t[ao("0x29")])return;const{data:n}=t;if(!n||ao("0x5e")!=n.key)return;const i=lo(t);return i?ao("0xe")==i?{type:ao("0x5b"),content:Ji(e,"*Merge:* list item")}:"oldValue"==i?{type:"format",content:Ji(e,ao("0x79"))}:x:x})),t[ao("0xb")][ao("0x32")].registerPostFixer((t=>this[ao("0x1e")](t))),t.model[ao("0x32")].registerPostFixer((t=>this[ao("0x42")](t))),t[ao("0xb")][ao("0x32")][ao("0x20")]((t=>this[ao("0x64")](t))),this._supportLegacySuggestions()}listItemIdFixer(t){if(t[ao("0x51")].isUndo||!t[ao("0x51")].isLocal)return!1;let e=!1;const n=this[ao("0x2")][ao("0x3b")].get(ao("0x4b")).getSuggestions({skipNotAttached:!0})[ao("0x57")]((t=>t[ao("0x7a")]&&ao("0x5e")==t[ao("0x7a")][ao("0x1f")]))[ao("0x57")]((t=>t[ao("0x7a")][ao("0xe")]&&t[ao("0x7a")][ao("0x46")]));for(const i of n)lo(i)||(t[ao("0x66")](i[ao("0x3c")]()),e=!0);return e}noTrackChangesFixer(t){if(t[ao("0x51")][ao("0x53")]||!t[ao("0x51")].isLocal)return!1;const e=this[ao("0x2")][ao("0x3b")][ao("0x47")]("TrackChangesEditing");if(e.trackChangesCommand.value)return!1;let n=!1;const i=["listType","listStyle",ao("0x5e"),"listIndent",ao("0x5"),ao("0x1d"),ao("0x24")],r=this[ao("0x2")][ao("0xb")].document.differ[ao("0x12")]().filter((t=>ao("0x54")==t[ao("0x29")]))[ao("0x57")]((t=>i.includes(t[ao("0x18")])));if(0==r[ao("0x63")])return n;for(const o of r){const r=e[ao("0x1a")](o[ao("0x5c")],ao("0x54")).filter((t=>!t[ao("0x6a")][ao("0x77")]))[ao("0x1c")]((t=>t[ao("0x30")])).filter((t=>{const n=e[ao("0x44")](t);return i[ao("0x6e")](n)}));if(r.length){for(const e of r)t.removeMarker(e[ao("0x3c")]());n=!0}}return n}[ao("0x64")](t){if(t[ao("0x51")][ao("0x53")]||!t.batch[ao("0x59")])return!1;const e=this[ao("0x2")].plugins.get("TrackChangesEditing");let n=!1;const i=[ao("0x23"),ao("0x4d"),ao("0x5e"),ao("0x65"),ao("0x5"),ao("0x1d"),ao("0x24")];for(const t of e[ao("0x48")]({skipNotAttached:!0})){const r=e[ao("0x1a")](t[ao("0x1")](),ao("0x54")).map((t=>t[ao("0x30")]))[ao("0x57")]((t=>t[ao("0x7a")]&&i[ao("0x6e")](t[ao("0x7a")][ao("0x1f")])));if(!r.length)continue;const s=r[0][ao("0x10")][ao("0x33")][ao("0x74")];if(!r[ao("0x6d")]((t=>t[ao("0x33")].groupId===s)))for(const t of r)o(t,s)&&(n=!0)}return n;function r(t,n){for(const i of e[ao("0x48")]({skipNotAttached:!0}).filter((e=>ao("0x54")==e[ao("0x29")]&&e[ao("0x33")][ao("0x74")]==t)))i[ao("0xd")](ao("0x74"),n)}function o(t,e){let n=t[ao("0x10")],i=!1;for(;n;)n.attributes[ao("0x74")]!=e&&(r(n[ao("0x33")][ao("0x74")],e),n[ao("0xd")](ao("0x74"),e),i=!0),n=n[ao("0x70")];return i}}_supportLegacySuggestions(){const t=this[ao("0x2")],e=t[ao("0x1b")],n=t[ao("0x3b")][ao("0x47")](ao("0x4b"));this._registerLegacyDescription(),n[ao("0x2e")][ao("0x36")](ao("0x61"),ao("0x50"),ao("0x3e"),(function(e,n){const i=[];for(let n of e)n[ao("0x21")].nodeAfter===n[ao("0x5d")].parent&&(n=t[ao("0xb")][ao("0x3d")](t[ao("0xb")][ao("0x27")](n[ao("0x21")][ao("0x35")],0))),i[ao("0x25")](n);t[ao("0xb")].change((e=>{const r=t[ao("0xb")][ao("0x32")][ao("0x15")],o=Array.from(r[ao("0x60")]()).map((t=>s.LiveRange[ao("0x19")](t)));e[ao("0x71")](i),t[ao("0x6c")].get(n[ao("0x2a")])[ao("0x43")](),n[ao("0x41")][ao("0x25")]({forceDefaultExecution:!0}),t[ao("0x4a")](n[ao("0x2a")],...n[ao("0x41")]),e[ao("0x71")](o);for(const t of o)t[ao("0x5a")]()}))})),n[ao("0x78")][ao("0x4e")]((function(e){const n=!t.model[ao("0x11")][ao("0x73")](e),i=e[ao("0xa")],r=e[ao("0x2f")],o=e.getAttribute("listItemId"),s=!i||i[ao("0x2b")](ao("0x5e"))!==o,x=!r||r[ao("0x2b")](ao("0x5e"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Ji(e,ao("0x22"),t)))}[ao("0x68")](){const t=this[ao("0x2")],e=t.locale;function n(e){const n=t[ao("0x6c")][ao("0x47")]("bulletedList")[ao("0x3f")],i=t[ao("0x6c")][ao("0x47")](ao("0x31"))[ao("0x3f")];return ao("0x31")===e?n:i}t[ao("0x3b")][ao("0x47")](ao("0x4b"))[ao("0x78")].registerDescriptionCallback((function(i){if(ao("0x61")!=i[ao("0x29")])return;const{data:r}=i;if(!r)return;let o,s,x,a;switch(r[ao("0x2a")]){case"bulletedList":x=r[ao("0x41")][0][ao("0x6f")],a=n(r[ao("0x2a")]),o=ao(x?"0x58":"0x4c"),!a&&t[ao("0x28")][ao("0x47")]("list.multiBlock")||(o=ao("0x38")),s={type:ao("0x5b"),content:Ji(e,o,Ji(e,"ELEMENT_BULLETED_LIST"))};break;case ao("0x31"):x=r[ao("0x41")][0][ao("0x6f")],a=n(r[ao("0x2a")]),o=ao(x?"0x58":"0x4c"),!a&&t[ao("0x28")][ao("0x47")](ao("0x37"))||(o=ao("0x38")),s={type:ao("0x5b"),content:Ji(e,o,Ji(e,"ELEMENT_NUMBERED_LIST"))};break;case ao("0x16"):o=ao("0x52"),s={type:ao("0x5b"),content:Ji(e,o,Ji(e,ao("0x22")))};break;case ao("0x5f"):o=function(t){const e=t[ao("0x1")]();let n=e[ao("0x21")][ao("0x35")];for(;n&&e[ao("0x56")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n[ao("0x2f")]}return!0}(i)?Ji(e,"*Format:* remove from %0",Ji(e,(c=i,ao("0x67")+c.getFirstRange()[ao("0x21")][ao("0x35")][ao("0x2b")](ao("0x23")).toUpperCase()+ao("0x6")))):Ji(e,"*Outdent:* %0",Ji(e,ao("0x22"))),s={type:"format",content:o};break;case ao("0x2c"):case ao("0xc"):!1===r.multipleBlocks&&(o=ao("0x76"),s={type:ao("0x17"),content:Ji(e,o,Ji(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function lo(t){let e=t[ao("0x1")]().start[ao("0x35")][ao("0xa")];for(;e;){const n=e[ao("0x2b")]("listItemId");if(!n)return!1;if(n==t[ao("0x7a")][ao("0xe")])return ao("0xe");if(n==t.data.oldValue)return ao("0x46");e=e[ao("0xa")]}return!1}const uo=["toUpperCase","formatBlock","newValue","bind","config","commandName","batch","oldValue","head","reversed","getFirstRange","replace","getAttribute","*Format:* set order to regular","filter","default","attribute","FORMAT_LIST_REVERSED","getFirstMarker","editor","upper-latin","_getAttributeKey","includes","type","has","model","plugins","handleDescriptions","registerAttributeLabel","*Set format:* %0","isUndo","listReversed","get","listStart","upper-roman","commandParams","disc","TrackChangesEditing","registerPostFixer","_getTranslationKeyForListStyle","suggestion","_LIST_","start","decimal-leading-zero","*Format:* set start index to %0","_registerLegacyDescription","listType","_enableDefaultAttributesIntegration","*Change to:* %0","registerDescriptionCallback","circle","format","FORMAT_LIST_START","nodeAfter","_descriptionFactory","listStyle","square","document","numbered","startIndex","decimal","lower-roman","afterInit","key","locale","data","_LIST_DEFAULT"];var go,fo;go=uo,fo=111,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x12")](){if(!this[ho("0x2a")].plugins[ho("0x2f")]("ListPropertiesEditing"))return;const t=this.editor[ho("0x1b")][ho("0x37")]("list.properties"),e=this.editor[ho("0x31")].get(ho("0x3c"));t.styles&&e._enableDefaultAttributesIntegration(ho("0xb"),[],["listStyle"]),t.reversed&&e[ho("0x3")](ho("0x36"),[],["listReversed"]),t[ho("0xf")]&&e._enableDefaultAttributesIntegration(ho("0x38"),[],["listStart"]);const n={type:ho("0x7"),content:""};e[ho("0xa")][ho("0x5")](this.handleDescriptions[ho("0x1a")](this));const i=this[ho("0x2a")][ho("0x14")];e[ho("0xa")][ho("0x33")]("listReversed",Ji(i,ho("0x28"))),e[ho("0xa")][ho("0x5")]((t=>{const{data:e}=t;if(e&&ho("0x36")==e[ho("0x13")])return null==e[ho("0x19")]||0==e[ho("0x19")]&&null==e[ho("0x1e")]?n:void 0})),e._descriptionFactory[ho("0x33")](ho("0x38"),Ji(i,ho("0x8"))),e[ho("0xa")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&ho("0x38")==e[ho("0x13")])return null==e[ho("0x19")]||1==e[ho("0x19")]&&null==e.oldValue?n:void 0})),this[ho("0x2a")][ho("0x30")][ho("0xd")][ho("0x3d")]((t=>{if(t[ho("0x1d")][ho("0x35")])return!1;let n=!1;const i=e.getSuggestions({skipNotAttached:!0})[ho("0x25")]((t=>{const n=e[ho("0x2c")](t);return ho("0x38")==n||ho("0x36")==n}));for(const r of i)ho("0xe")!=r[ho("0x21")]()[ho("0x41")][ho("0x9")][ho("0x23")](ho("0x2"))&&(e._findSuggestions(r[ho("0x21")](),ho("0x27")).find((t=>ho("0x2")==e._getAttributeKey(t[ho("0x3f")])))||(t.removeMarker(r[ho("0x29")]()),n=!0));return n})),this[ho("0x1")]()}[ho("0x32")](t){const e=this[ho("0x2a")][ho("0x14")],{data:n}=t,i={type:ho("0x7"),content:""};if(!n||ho("0xb")!=n[ho("0x13")])return;if(!n[ho("0x1e")])return ho("0x26")==n[ho("0x19")]?i:{type:ho("0x7"),content:""+Ji(e,"*Set format:* %0",Ji(e,this[ho("0x3e")](n[ho("0x19")])))};if(!n[ho("0x19")]){if(ho("0x26")==n[ho("0x1e")])return i;let r=t.head;for(;r;){if(r[ho("0x15")]&&ho("0x2")==r[ho("0x15")][ho("0x13")]&&r.data.newValue)return i;r=r.next}return{type:ho("0x7"),content:""+Ji(e,"*Remove format:* %0",Ji(e,this[ho("0x3e")](n.oldValue)))}}if(ho("0x26")!=n[ho("0x19")])return{type:ho("0x7"),content:""+Ji(e,ho("0x34"),Ji(e,this._getTranslationKeyForListStyle(n[ho("0x19")])))};let r=t[ho("0x1f")];for(;r;){if(r[ho("0x15")]&&"listType"==r.data[ho("0x13")]&&r[ho("0x15")][ho("0x19")]&&r.data[ho("0x1e")])return i;r=r.next}const o=t[ho("0x21")]()[ho("0x41")][ho("0x9")][ho("0x23")]("listType");return{type:ho("0x7"),content:Ji(e,ho("0x34"),Ji(e,"ELEMENT_"+o.toUpperCase()+ho("0x16")))}}_registerLegacyDescription(){const t=this[ho("0x2a")],e=t[ho("0x14")];t[ho("0x31")][ho("0x37")](ho("0x3c"))._descriptionFactory[ho("0x5")]((t=>{if(ho("0x18")!=t[ho("0x2e")])return;const{data:n}=t;if(!n)return;let i,r;switch(n[ho("0x1c")]){case ho("0xb"):i=ho("0x4"),r={type:ho("0x7"),content:Ji(e,i,Ji(e,this[ho("0x3e")](n[ho("0x3a")][0].type)))};break;case ho("0x36"):i=n[ho("0x3a")][0][ho("0x20")]?"*Format:* set order to reversed":ho("0x24"),r={type:ho("0x7"),content:Ji(e,i)};break;case ho("0x38"):i=ho("0x0"),r={type:ho("0x7"),content:Ji(e,i,n[ho("0x3a")][0].startIndex)}}return r}))}_getTranslationKeyForListStyle(t){return"ELEMENT_"+(e=t,po.includes(e)?"bulleted":bo[ho("0x2d")](e)?ho("0xe"):null)[ho("0x17")]()+ho("0x40")+t[ho("0x17")]()[ho("0x22")](/-/g,"_");var e}}const po=[ho("0x3b"),ho("0x6"),ho("0xc")],bo=[ho("0x10"),ho("0x42"),ho("0x11"),ho("0x39"),"lower-latin",ho("0x2b")];var Eo=n(331);const _o=["detach","high","TrackChangesEditing","requires","editor","getFirstPosition","showSuggestionHighlights","split","data","model","nextSibling","fire","removeMarker:suggestion:insertion","options","addMarker:suggestion:insertion","init","downcastDispatcher","setSelection","getFirstRange","end","get","fromRange","document","hasClass","editing","plugins","markerName","ck-suggestion-marker-split","selection","markerNameToElements","markInsertion","enableCommand","createRange","afterExecute","mapper","enterBlock","bind"];var To,yo;To=_o,yo=479,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("0x5")](){return[Eo.Enter]}[Co("0x11")](){const t=this[Co("0x6")],e=t[Co("0x1b")][Co("0x16")](Co("0x4")),n=t.commands[Co("0x16")]("enter");e[Co("0x21")]("enter",(()=>{t[Co("0xb")].change((i=>{const r=t[Co("0xb")][Co("0x18")][Co("0x1e")],o=r[Co("0x7")](),x=s.LiveRange[Co("0x17")](r[Co("0x14")]());if(n[Co("0x0")](i)){const n=t[Co("0xb")].createPositionAt(o.parent[Co("0xc")],0),r=i[Co("0x22")](o,n);e[Co("0x20")](r)}else i[Co("0x13")](i[Co("0x22")](x[Co("0x15")]));x[Co("0x2")](),n[Co("0xd")](Co("0x23"),{writer:i})}))})),t[Co("0x1a")].downcastDispatcher.on(Co("0x10"),Qr(t,Co("0x9")),{priority:Co("0x3")}),t[Co("0x1a")].downcastDispatcher.on(Co("0xe"),((t,e,n)=>{const i=n.mapper[Co("0x1f")](e.markerName);if(i)for(const t of i)t[Co("0x19")](Co("0x1d"))&&(n[Co("0x24")].unbindElementFromMarkerName(t,e[Co("0x1c")]),n.writer.remove(t))}),{priority:Co("0x3")}),t[Co("0xa")][Co("0x12")].on(Co("0x10"),((e,n,i)=>{i[Co("0xf")][Co("0x8")]&&Qr(t,Co("0x9"),{showActiveMarker:!1})[Co("0x1")](this)(e,n,i)}),{priority:"high"})}}const ko=["replace","plugins","find","_isInDeletionRange","FindAndReplaceEditing","findNext","get","end","has","findByTextCallback","afterInit","getMarkersGroup","getRange","createRange","replaceAll","getIntersection","enableCommand","model","FindAndReplaceUtils","handleFindCommand","string","createPositionAt","markers","bind","editor","item","suggestion:deletion"];var Io,Ro;Io=ko,Ro=262,function(t){for(;--t;)Io.push(Io.shift())}(++Ro);const So=function(t,e){return ko[t-=0]};class vo extends t.Plugin{[So("0x12")](){if(!this[So("0x5")].plugins[So("0x10")](So("0xc")))return;const t=this[So("0x5")][So("0x9")][So("0xe")]("TrackChangesEditing");t[So("0x18")](So("0xa"),this[So("0x0")][So("0x4")](this)),t[So("0x18")](So("0xd")),t.enableCommand("findPrevious"),t[So("0x18")](So("0x8")),t[So("0x18")](So("0x16"))}[So("0x0")](t,e,n={}){const i=this[So("0x5")][So("0x9")][So("0xe")](So("0x1a"));return t((t=>(So("0x1")==typeof e?i[So("0x11")](e,n):e)(t).filter((e=>!1===this[So("0xb")](e,t[So("0x6")])))),n)}_isInDeletionRange(t,e){const n=this[So("0x5")][So("0x19")][So("0x15")](this[So("0x5")][So("0x19")][So("0x2")](e,t.start),this[So("0x5")].model[So("0x2")](e,t[So("0xf")]));for(const t of this[So("0x5")][So("0x19")][So("0x3")][So("0x13")](So("0x7")))if(null!==n[So("0x17")](t[So("0x14")]()))return!0;return!1}}const Lo=["model","fontSize","_registerLegacyDescription","*Reset font size*","fontBackgroundColor.colors","editor","toLowerCase","FORMAT_FONT_BACKGROUND","*Set font color:* %0","value","fontColor.colors","_descriptionFactory","fontFamily","registerAttributeLabel","FontFamilyEditing","*Set font background color:* %0","format","*Set font size:* %0","plugins","*Reset font color*","get","fontBackgroundColor","trim","FontBackgroundColorEditing","*Reset font background color*","locale","FontSize","FORMAT_FONT_COLOR","find","normalizeSizeOptions","*Reset font family*","config","formatInline","TrackChangesEditing","commandName","FontColorEditing","fontColor","commandParams","type","label"];var No,Mo;No=Lo,Mo=491,function(t){for(;--t;)No.push(No.shift())}(++Mo);const wo=function(t,e){return Lo[t-=0]},Oo=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:wo("0x3"),commandName:wo("0x1")},{pluginName:wo("0x18"),commandName:wo("0x19")},{pluginName:wo("0xc"),commandName:"fontBackgroundColor"}];class Fo extends t.Plugin{afterInit(){const t=this[wo("0x22")].locale,e=this.editor[wo("0x7")][wo("0x9")](wo("0x16"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x22")][wo("0x7")].has(t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e[wo("0x0")][wo("0x2")]("fontSize",Ji(t,"FORMAT_FONT_SIZE")),e._descriptionFactory[wo("0x2")]("fontFamily",Ji(t,"FORMAT_FONT_FAMILY")),e[wo("0x0")][wo("0x2")](wo("0x19"),Ji(t,wo("0x10"))),e[wo("0x0")][wo("0x2")](wo("0xa"),Ji(t,wo("0x24"))),this[wo("0x1f")]()}_registerLegacyDescription(){const t=this.editor,e=t[wo("0xe")];t.plugins[wo("0x9")](wo("0x16"))[wo("0x0")].registerDescriptionCallback((t=>{const n=e.t;if(wo("0x15")!=t[wo("0x1b")])return;const{data:i}=t;if(null!=i){if(wo("0x1e")==i[wo("0x17")]){const t=i.commandParams[0][wo("0x26")];if(t){const i=n(this.editor[wo("0x7")][wo("0x9")](wo("0xf"))[wo("0x12")](this[wo("0x22")][wo("0x14")][wo("0x9")]("fontSize.options"))[wo("0x11")]((e=>e.model==t)).title).toLowerCase();return{type:wo("0x5"),content:Ji(e,wo("0x6"),i)}}return{type:wo("0x5"),content:Ji(e,wo("0x20"))}}if(wo("0x1")==i.commandName){const t=i[wo("0x1a")][0][wo("0x26")];return t?{type:wo("0x5"),content:Ji(e,"*Set font family:* %0",t)}:{type:wo("0x5"),content:Ji(e,wo("0x13"))}}if("fontColor"==i[wo("0x17")]){const t=i[wo("0x1a")][0][wo("0x26")];if(t){const i=(0,r.normalizeColorOptions)(this[wo("0x22")][wo("0x14")].get(wo("0x27")))[wo("0x11")]((e=>e.model==t));let o=t,s="";return i&&(o=i[wo("0x1c")],s=n(o)[wo("0x23")]()),{type:wo("0x5"),content:Ji(e,wo("0x25"),s)[wo("0xb")](),color:{value:t,title:s||o}}}return{type:wo("0x5"),content:Ji(e,wo("0x8"))}}if(wo("0xa")==i.commandName){const t=i[wo("0x1a")][0].value;if(t){const i=(0,r.normalizeColorOptions)(this.editor[wo("0x14")][wo("0x9")](wo("0x21"))).find((e=>e[wo("0x1d")]==t));let o=t,s="";return i&&(o=i[wo("0x1c")],s=n(o)[wo("0x23")]()),{type:wo("0x5"),content:Ji(e,wo("0x4"),s)[wo("0xb")](),color:{value:t,title:s||o}}}return{type:"format",content:Ji(e,wo("0xd"))}}}}))}}const Do=["plugins","join","TrackChangesEditing","*Set format to:* %0","fontColor","charAt","pasteFormat","_registerLegacyDescription","boolean","locale","enableCommand","model","registerDescriptionCallback","fontSize","get","commandName","split","FontSize","title","find","commandParams","copyFormat","toLowerCase","format","fontSize.options","entries","type","fontColor.colors","toUpperCase","normalizeSizeOptions","length","push","_enableDefaultAttributesIntegration","*Remove all formatting*","editor","formatInline"];var Bo,Po;Bo=Do,Po=240,function(t){for(;--t;)Bo.push(Bo.shift())}(++Po);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{afterInit(){const t=this[Uo("0xa")],e=t.plugins.get(Uo("0xe")),n=t.commands[Uo("0x1a")](Uo("0x21")),i=t.commands.get(Uo("0x12"));n&&i&&(e[Uo("0x8")](Uo("0x12")),e[Uo("0x16")](Uo("0x21")),this._registerLegacyDescription())}[Uo("0x13")](){const t=this[Uo("0xa")],e=t[Uo("0x15")];t[Uo("0xc")][Uo("0x1a")]("TrackChangesEditing")._descriptionFactory[Uo("0x18")]((n=>{if("formatBlock"!=n[Uo("0x2")]&&Uo("0xb")!=n[Uo("0x2")])return;const{data:i}=n;if(i&&Uo("0x12")===i[Uo("0x1b")]){const n=[],r=i[Uo("0x20")][0];for(const[e,i]of Object[Uo("0x1")](r))n[Uo("0x7")](Go(t,e,i));return n[Uo("0x6")]?{type:Uo("0x23"),content:Ji(e,Uo("0xf"),n.join(", "))}:{type:Uo("0x23"),content:Ji(e,Uo("0x9"))}}}))}}function Go(t,e,n){const i=t[Uo("0x15")].t,o=e[Uo("0x1c")](/(?=[A-Z])/)[Uo("0xd")](" "),s=i(o[Uo("0x11")](0)[Uo("0x4")]()+o.slice(1))[Uo("0x22")]();if(Uo("0x14")==typeof n)return s;if(Uo("0x10")===e||"fontBackgroundColor"===e){const e=(0,r.normalizeColorOptions)(t.config[Uo("0x1a")](Uo("0x3")))[Uo("0x1f")]((t=>t[Uo("0x17")]==n));return s+" ("+(e?i(e.label)[Uo("0x22")]():n)+")"}if(Uo("0x19")===e&&isNaN(parseFloat(n))){const e=t.plugins[Uo("0x1a")](Uo("0x1d"))[Uo("0x5")](t.config.get(Uo("0x0")))[Uo("0x1f")]((t=>t.model==n));return s+" ("+(e?i(e[Uo("0x1e")])[Uo("0x22")]():n)+")"}return s+" ("+n+")"}const Vo=["format","locale","formatBlock","heading","config","_descriptionFactory","TrackChangesEditing","*Change to:* %0","HeadingEditing","heading.options","afterInit","plugins","match","registerDescriptionCallback","_headingOptions","commandName","_registerLegacyDescription","ELEMENT_HEADING_CUSTOM","view","editor","model","registerElementLabel","_enableDefaultAttributesIntegration","get","title","_getHeadingLevel","ELEMENT_HEADING","commandParams","paragraph","find","value"];var Ho,zo;Ho=Vo,zo=483,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("0x1")];if(!t[Wo("0x18")].has(Wo("0x15")))return;this._headingOptions=t[Wo("0x11")][Wo("0x5")](Wo("0x16"));const e=t.locale,n=t[Wo("0x18")][Wo("0x5")](Wo("0x13"));n[Wo("0x4")](Wo("0x10"));for(const t of this[Wo("0x1b")])Wo("0xa")!=t[Wo("0x2")]&&n[Wo("0x12")][Wo("0x3")](t[Wo("0x2")],(n=>{const i=this[Wo("0x7")](t[Wo("0x2")]);return null!==i?(s=n,x=i,Ji(e,Wo("0x8"),[s,x])):(r=n,o=t.title,Ji(e,Wo("0x1e"),[r,o]));var r,o,s,x}));this[Wo("0x1d")]()}[Wo("0x1d")](){const t=this[Wo("0x1")],e=t[Wo("0xe")];t[Wo("0x18")][Wo("0x5")](Wo("0x13"))[Wo("0x12")][Wo("0x1a")]((t=>{if(Wo("0xf")!=t.type)return;const{data:n}=t;if(n&&Wo("0x10")==n[Wo("0x1c")]){const t=n[Wo("0x9")][0][Wo("0xc")],s=this[Wo("0x7")](t);if(null!==s)return{type:"format",content:Ji(e,Wo("0x14"),(1,o=s,Ji(e,Wo("0x8"),[1,o])))};const x=this._headingOptions.find((e=>e[Wo("0x2")]===t))[Wo("0x6")];return{type:Wo("0xd"),content:Ji(e,"*Change to:* %0",(i=1,r=x,Ji(e,Wo("0x1e"),[i,r])))}}var i,r,o}))}_getHeadingLevel(t){var e,n;const i=t[Wo("0x19")](/^heading(\d+)/);if(i)return i[1];const r=null===(e=this[Wo("0x1b")])||void 0===e?void 0:e[Wo("0xb")]((e=>e[Wo("0x2")]==t));if(r&&r[Wo("0x0")]){const t=r[Wo("0x0")],e=(null!==(n=t.name)&&void 0!==n?n:t)[Wo("0x19")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["editor","_registerLegacyDescription","registerDescriptionCallback","highlight.options","get","_descriptionFactory","highlight","title","find","color","value","format","HighlightEditing","*Remove highlight*","toLowerCase","FORMAT_HIGHLIGHT","formatInline","afterInit","plugins","_enableDefaultAttributesIntegration","config","commandParams","model","locale"];var Xo,$o;Xo=qo,$o=147,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0xe")](){const t=this[Zo("0x15")];if(!t[Zo("0xf")].has(Zo("0x9")))return;const e=t[Zo("0xf")][Zo("0x1")]("TrackChangesEditing"),n=t[Zo("0x14")];e[Zo("0x10")](Zo("0x3"),[Zo("0x3")]),e[Zo("0x2")].registerAttributeLabel(Zo("0x3"),Ji(n,Zo("0xc"))),this[Zo("0x16")]()}[Zo("0x16")](){const t=this[Zo("0x15")],e=t[Zo("0x14")];t[Zo("0xf")].get("TrackChangesEditing")[Zo("0x2")][Zo("0x17")]((n=>{if(Zo("0xd")!=n.type)return;const{data:i}=n;if(i&&"highlight"==i.commandName){const n=e.t,r=i[Zo("0x12")][0][Zo("0x7")];if(r){const i=t[Zo("0x11")][Zo("0x1")](Zo("0x0"))[Zo("0x5")]((t=>t[Zo("0x13")]==r)),o=n(i[Zo("0x4")])[Zo("0xb")]();return{type:Zo("0x8"),content:Ji(e,"*Set highlight:* %0",o),color:{value:i[Zo("0x6")],title:i[Zo("0x4")]}}}return{type:Zo("0x8"),content:Ji(e,Zo("0xa"),Ji(e,"FORMAT_HIGHLIGHT"))}}}))}}const Jo=["has","HorizontalLineEditing","insert","createEmptyElement","registerElementLabel","createContainerElement","dataDowncast","elementToStructure","ELEMENT_HORIZONTAL_LINE","plugins","showSuggestionHighlights","ck-horizontal-line","enableCommand","high","horizontalLine","locale","get","TrackChangesEditing","_descriptionFactory","editor"];var Qo,ts;Qo=Jo,ts=437,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("0x2")];if(!t[es("0xc")][es("0x3")](es("0x4")))return;t[es("0xc")][es("0x13")](es("0x0"))[es("0xf")]("horizontalLine");const e=t[es("0xc")].get("TrackChangesEditing"),n=t[es("0x12")];e[es("0x1")][es("0x7")](es("0x11"),(t=>Ji(n,es("0xb"),t))),t.conversion.for(es("0x9"))[es("0xa")]({model:es("0x11"),view:(t,{writer:e,options:n})=>{if(!n[es("0xd")])return null;const i=e[es("0x8")]("div"),r=e[es("0x6")]("hr");return e.addClass(es("0xe"),i),e[es("0x5")](e.createPositionAt(i,0),r),i},converterPriority:es("0x10")})}}const is=["plugins","has","rawHtml","htmlEmbed","_descriptionFactory","type","start","TrackChangesEditing","format","get","ELEMENT_HTML_EMBED","registerDescriptionCallback","*Change %0 content*","key","registerElementLabel","getFirstRange","nodeAfter","afterInit","HtmlEmbed","_enableDefaultAttributesIntegration","editor","element","locale"];var rs,os;rs=is,os=463,function(t){for(;--t;)rs.push(rs.shift())}(++os);const ss=function(t,e){return is[t-=0]};class xs extends t.Plugin{[ss("0xe")](){const t=this.editor;if(!t[ss("0x14")][ss("0x15")](ss("0xf")))return;const e=t.plugins[ss("0x6")](ss("0x4")),n=t[ss("0x13")];e[ss("0x1")][ss("0xb")](ss("0x16"),(t=>Ji(n,ss("0x7"),t))),e[ss("0x10")](ss("0x0"),[],["value"]),e[ss("0x1")][ss("0x8")]((t=>{if("attribute"!=t[ss("0x2")])return;const{data:e}=t;if(e&&"value"==e[ss("0xa")]&&t[ss("0xc")]()[ss("0x3")][ss("0xd")].is(ss("0x12"),ss("0x16"))){const t=Ji(n,"ELEMENT_HTML_EMBED");return{type:ss("0x5"),content:Ji(n,ss("0x9"),t)}}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ss("0x11")],e=t[ss("0x13")];t[ss("0x14")][ss("0x6")](ss("0x4"))[ss("0x1")][ss("0x8")]((t=>{if("formatBlock"!=t[ss("0x2")])return;const{data:n}=t;if(n&&ss("0x0")==n.commandName){const t=Ji(e,ss("0x7"));return{type:ss("0x5"),content:Ji(e,"*Change %0 content*",t)}}}))}}const as=["ELEMENT_INLINE_IMAGE","Block image to inline image","_descriptionFactory","enableCommand","change","ImageInlineEditing","_enableDefaultAttributesIntegration","resizedWidth","_registerLegacyDescription","ImageEditing","isEqual","schema","forceDefaultExecution","findIndex","type","chain","key","formatBlock","addObject","deletion","ImageUploadEditing","uploadImage","imageStylePreApply","*Set image width:* %0","ImageBlockEditing","imageCaption","_findSuggestions","detach","end","markInsertion","isBefore","resizeImage","newValue","forward","selection","fromPosition","createRangeOn","isIntersecting","toNext","TrackChangesEditing","length","ELEMENT_CAPTION","element","start","convertBlockImageToInline","discard","join","formatInline","FORMAT_IMAGE_SIZE","plugins","imageBlock","getSuggestionCallback","isOwn","imageTextAlternative","getFirstRange","editor","getContainedElement","*Reset image width*","registerAttributeLabel","accept","format","imageInline","insertion","registerElementLabel","getClosestSelectedImageElement","registerDescriptionCallback","imageTypeInline","ImageCaptionEditing","filter","convertInlineImageToBlock","get","afterInit","markDeletion","ImageResize","getCaptionFromImageModelElement","model","width","toPrevious","*Set image text alternative:* %0","isBlockImage","isCollapsed","_suggestionFactory","registerCustomCallback","caption","alt","createRange","subType","getNearestSelectionRange","locale","imageTypeBlock","backward","nodeAfter","has","find","document","commandParams"];var cs,ls;cs=as,ls=283,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x4c")](){const t=this.editor;if(!t[us("0x36")][us("0x1")](us("0xe")))return;const e=t.plugins[us("0x4b")]("TrackChangesEditing"),n=t.plugins[us("0x4b")]("ImageUtils"),i=t[us("0x5d")];e[us("0x8")]("insertImage"),e[us("0x7")][us("0x44")](us("0x37"),(t=>Ji(i,"ELEMENT_IMAGE",t))),e[us("0x7")][us("0x44")](us("0x42"),(t=>Ji(i,us("0x5"),t))),e[us("0x7")][us("0x44")](us("0x58"),(()=>Ji(i,us("0x2e")))),t[us("0x36")][us("0x1")](us("0x19"))&&e[us("0x8")](us("0x1a")),t[us("0x36")][us("0x1")](us("0x1d"))&&t[us("0x36")].has(us("0xa"))&&(e[us("0x8")](us("0x47"),((i,r)=>{const o=n[us("0x45")](t[us("0x50")][us("0x3")][us("0x27")]);t[us("0x50")][us("0x9")]((()=>{e.markBlockFormat(o,{commandName:us("0x47"),commandParams:[r]},[],"convertBlockImageToInline")}))})),e.enableCommand(us("0x5e"),((i,r)=>{t[us("0x50")].change((o=>{let x=n[us("0x45")](t[us("0x50")][us("0x3")][us("0x27")]),a=o[us("0x29")](x);const c=s.LivePosition[us("0x28")](a[us("0x30")],us("0x52")),l=s.LivePosition[us("0x28")](a.end,us("0x2b"));e[us("0x11")]((()=>i(r))),x=n.getClosestSelectedImageElement(t.model[us("0x3")].selection),a=o[us("0x29")](x);const u=o[us("0x5a")](c,l);c.detach(),l[us("0x20")](),e.markBlockFormat(x,{commandName:us("0x47"),commandParams:[r]},[],us("0x4a")),u[us("0x30")].isBefore(a.start)&&e[us("0x22")](o[us("0x5a")](u[us("0x30")],a[us("0x30")]),us("0x4a")),a.end[us("0x23")](u[us("0x21")])&&e[us("0x22")](o.createRange(a[us("0x21")],u.end),us("0x4a"))}))})),e[us("0x56")][us("0x57")](us("0x16"),"convertInlineImageToBlock",us("0x33"),(()=>!1)),e[us("0x56")].registerCustomCallback(us("0x16"),"convertInlineImageToBlock",us("0x40"),(()=>!1)),e[us("0x56")][us("0x57")]("formatBlock","convertInlineImageToBlock",us("0x32"),e._suggestionFactory[us("0x38")](us("0x16"),"",us("0x40"))),e[us("0x56")][us("0x57")](us("0x43"),us("0x4a"),"join",(()=>!1)),e[us("0x56")].registerCustomCallback("insertion",us("0x4a"),us("0x32"),(([n])=>{const i=e[us("0x56")][us("0x38")](us("0x43"),"","discard");let r=n.start,o=n[us("0x21")];const s=t[us("0x50")][us("0x10")].getNearestSelectionRange(r,us("0x5f")),x=t.model[us("0x10")][us("0x5c")](o,us("0x26"));s[us("0x55")]&&(r=s[us("0x30")]),x.isCollapsed&&(o=x.end),i([t[us("0x50")][us("0x5a")](r,o)])})),e[us("0x56")][us("0x57")](us("0x16"),us("0x4a"),"chain",x),e[us("0x56")][us("0x57")](us("0x43"),us("0x4a"),us("0x14"),x)),t[us("0x36")].has(us("0x48"))&&(e[us("0x8")]("toggleImageCaption",((i,r)=>{const o=t[us("0x36")].get("ImageCaptionUtils");let s=n[us("0x45")](t[us("0x50")][us("0x3")][us("0x27")]),x=o[us("0x4f")](s);t[us("0x50")][us("0x9")]((()=>{if(x)return void e[us("0x4d")](t[us("0x50")].createRangeOn(x));const a=n[us("0x54")](s);i(r),s=n[us("0x45")](t[us("0x50")][us("0x3")][us("0x27")]),x=o[us("0x4f")](s),e[us("0x22")](t[us("0x50")].createRangeOn(x),a?null:"imageCaption")}))})),e._suggestionFactory[us("0x57")](us("0x43"),us("0x1e"),us("0x14"),x));const r=[{type:us("0x16"),subType:us("0x1b")},{type:"insertion",subType:us("0x1e")},{type:us("0x16"),subType:"convertInlineImageToBlock"},{type:"insertion",subType:us("0x4a")}];function o(t,i){const o=r.findIndex((({type:e,subType:n})=>t[us("0x13")]==e&&t[us("0x5b")]==n)),s=r[us("0x12")]((({type:t,subType:e})=>i[us("0x13")]==t&&i[us("0x5b")]==e));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=i[us("0x3b")]();if((0==o||1==o)&&2==s&&x[us("0x2a")](a))return!0;if(2==o&&3==s){const t=e[us("0x1f")](x,"insertion")[us("0x49")]((({suggestion:t,meta:e})=>e[us("0x39")]&&us("0x4a")==t.subType));if(t.length>1&&a[us("0x21")][us("0xf")](x[us("0x30")]))return!0;if(1==t[us("0x2d")]&&(x[us("0x30")][us("0xf")](a[us("0x21")])||x.end[us("0xf")](a[us("0x30")])))return!0}if(3==o&&3==s&&x[us("0x30")][us("0x23")](a.start)){const t=x[us("0x21")][us("0x0")],e=a[us("0x30")].nodeBefore;return n[us("0x54")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x36")][us("0x1")](us("0x4e"))&&(e[us("0xb")](us("0x24"),[],[us("0xc")]),e[us("0x7")][us("0x3f")](us("0xc"),Ji(i,us("0x35")))),t[us("0x36")][us("0x1")]("ImageTextAlternativeEditing")&&e[us("0xb")](us("0x3a"),[],[us("0x59")]),e._descriptionFactory.registerDescriptionCallback((t=>{if(r[us("0x2")]((({type:e,subType:n})=>t[us("0x13")]==e&&t[us("0x5b")]==n)))return t.previous?{}:void 0})),e[us("0x7")][us("0x46")]((t=>{if(us("0x43")==t[us("0x13")]||us("0x18")==t.type){const e=t[us("0x3d")]();if(e&&e.is(us("0x2f"),us("0x58")))return{type:us("0x43")==t.type?us("0x17"):"removeObject",element:e,quantity:1}}})),e[us("0x7")].registerDescriptionCallback((t=>us("0x16")==t[us("0x13")]&&us("0x4a")==t[us("0x5b")]?{type:"format",content:"Inline image to block image"}:"formatBlock"==t[us("0x13")]&&us("0x31")==t.subType?{type:"format",content:us("0x6")}:void 0)),e[us("0x7")][us("0x46")]((t=>{if("attribute"!=t[us("0x13")])return;const{data:e}=t;if(!e||us("0x59")!=e[us("0x15")])return;const n=e[us("0x25")];return n?{type:"format",content:Ji(i,"*Set image text alternative:* %0",'"'+n+'"')}:{type:us("0x41"),content:Ji(i,"*Remove image text alternative*")}})),this[us("0xd")]()}_registerLegacyDescription(){const t=this[us("0x3c")],e=t.locale;t[us("0x36")][us("0x4b")](us("0x2c"))[us("0x7")][us("0x46")]((t=>{if(us("0x16")!=t[us("0x13")]&&us("0x34")!=t[us("0x13")])return;const{data:n}=t;if(n){if(us("0x3a")==n.commandName){const t=n.commandParams[0].newValue;return t?{type:us("0x41"),content:Ji(e,us("0x53"),'"'+t+'"')}:{type:us("0x41"),content:Ji(e,"*Remove image text alternative*")}}if(us("0x24")==n.commandName){const t=n[us("0x4")][0][us("0x51")];return t?{type:us("0x41"),content:Ji(e,us("0x1c"),t)}:{type:us("0x41"),content:Ji(e,us("0x3e"))}}}}))}}const gs=["get","src","_enableDefaultAttributesIntegration","_handleLegacySuggestions","ImageEditing","_suggestionFactory","registerDescriptionCallback","registerCustomCallback","locale","attribute","_registerLegacyDescription","discard","replaceImageSource","key","type","accept","editor","*Replace image URL*","TrackChangesEditing","format","*Format:* replace image URL","plugins","formatBlock","afterInit","oldValue","formatInline","newValue"];var fs,hs;fs=gs,hs=239,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x0")](){if(!this.editor[ms("0x19")].has(ms("0x8")))return;const t=this.editor[ms("0xc")],e=this[ms("0x14")][ms("0x19")][ms("0x4")]("TrackChangesEditing");e[ms("0x6")](ms("0x10"),[],["src"]),e._descriptionFactory[ms("0xa")]((e=>{if(ms("0xd")!=e[ms("0x12")])return;const{data:n}=e;return n&&ms("0x5")==n[ms("0x11")]?n[ms("0x3")]&&n[ms("0x1")]?{type:ms("0x17"),content:Ji(t,ms("0x15"))}:{type:ms("0x17"),content:""}:void 0})),this._handleLegacySuggestions()}[ms("0x7")](){const t=this.editor[ms("0x19")][ms("0x4")](ms("0x16"));t[ms("0x9")][ms("0xb")](ms("0x1a"),ms("0x10"),ms("0x13"),t[ms("0x9")].getSuggestionCallback(ms("0x1a"),null,ms("0xf"))),t[ms("0x9")][ms("0xb")](ms("0x1a"),"replaceImageSource",ms("0xf"),t[ms("0x9")].getSuggestionCallback(ms("0x1a"),null,"accept")),this[ms("0xe")]()}_registerLegacyDescription(){const t=this.editor,e=t[ms("0xc")];t.plugins.get(ms("0x16"))._descriptionFactory[ms("0xa")]((t=>{if(ms("0x1a")!=t.type&&ms("0x2")!=t[ms("0x12")])return;const{data:n}=t;return n&&ms("0x10")==n.commandName?{type:ms("0x17"),content:Ji(e,ms("0x18"))}:void 0}))}}const bs=["isInContent","value","shouldConvertImageType","markBlockFormat","isIntersecting","imageStylePostApply","selection","imageTypeInline","forEach","document","chain","_registerLegacyDescription","getFirstRange","*Format:* %0","commandName","start","differ","registerPostFixer","getSuggestions","accept","end","type","getSuggestion","ImageStyleEditing","imageTypeBlock","getContainedElement","isEqual","plugins","convertInlineImageToBlock","formatBlock","subType","normalizedStyles","change","_splitMarkerName","title","isBefore","editor","commandReversedParams","join","_descriptionFactory","hasSuggestion","model","isBlockImage","findIndex","getClosestSelectedImageElement","locale","nodeAfter","createRangeOn","name","discardSuggestion","suggestion","imageCaption","afterInit","format","isInlineImage","refresh","get","nodeBefore","commandParams","imageStylePreApply","FORMAT_SIDE_IMAGE","TrackChangesEditing","filter","registerCustomCallback","imageStyle","commands","discard","newRange","author","next","_suggestionFactory","formatInline","insertion","length"];var Es,_s;Es=bs,_s=243,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x1f")](){const t=this.editor;if(!t[Ts("0x6")].has(Ts("0x2")))return;const n=t[Ts("0x6")][Ts("0x23")](Ts("0x28")),i=t.plugins[Ts("0x23")]("ImageUtils"),r={};n.enableCommand(Ts("0x2b"),((r,o)=>{const s=t.plugins[Ts("0x23")]("Users").me,x=t[Ts("0x2c")].get(Ts("0x2b"));let a=i[Ts("0x17")](t[Ts("0x14")][Ts("0x3e")][Ts("0x3b")]),c=t[Ts("0x14")][Ts("0x1a")](a),l=x[Ts("0x36")];if(l==o[Ts("0x36")])return;const u={commandName:Ts("0x2b"),commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x14")][Ts("0xb")]((()=>{if(n[Ts("0x47")]()[Ts("0x29")]((t=>t.isInContent&&s==t[Ts("0x2f")]&&(Ts("0x8")==t[Ts("0x0")]||Ts("0x32")==t[Ts("0x0")])&&(Ts("0x26")==t[Ts("0x9")]||"imageStylePostApply"==t.subType)&&t[Ts("0x41")]()[Ts("0x5")](c)))[Ts("0x3d")]((t=>n[Ts("0x1c")](t.head))),a=i[Ts("0x17")](t[Ts("0x14")].document[Ts("0x3b")]),c=t[Ts("0x14")][Ts("0x1a")](a),x[Ts("0x22")](),t.commands[Ts("0x23")](Ts("0x3c")).refresh(),t.commands[Ts("0x23")](Ts("0x3"))[Ts("0x22")](),l=x[Ts("0x36")],l!=o[Ts("0x36")])return i[Ts("0x21")](a)&&x[Ts("0x37")](o[Ts("0x36")],a)?(r({...o,setImageSizes:!1}),a=i.getClosestSelectedImageElement(t[Ts("0x14")].document[Ts("0x3b")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x26"))):void(i[Ts("0x15")](a)?n[Ts("0x38")](a,u,[],Ts("0x3a")):n.markInlineFormat(c,u,"imageStylePostApply"))}))}));for(const e of t[Ts("0x6")][Ts("0x23")](Ts("0x2"))[Ts("0xa")])r[e[Ts("0x1b")]]=e[Ts("0xd")].toLowerCase();n._suggestionFactory[Ts("0x2a")](Ts("0x8"),Ts("0x26"),Ts("0x11"),(()=>!1)),n[Ts("0x31")][Ts("0x2a")]("formatBlock",Ts("0x3a"),Ts("0x11"),(()=>!1)),n[Ts("0x31")][Ts("0x2a")](Ts("0x32"),Ts("0x3a"),Ts("0x11"),(()=>!1)),n[Ts("0x31")][Ts("0x2a")](Ts("0x8"),Ts("0x26"),"accept",(([t])=>{i.setImageNaturalSizeAttributes(t[Ts("0x4")]())})),n._suggestionFactory.registerCustomCallback(Ts("0x8"),"imageStylePreApply",Ts("0x2d"),((t,e)=>{n[Ts("0x31")].getSuggestionCallback(Ts("0x8"),"",Ts("0x48"))(t,{commandName:e.commandName,commandParams:e[Ts("0x10")]})})),n[Ts("0x31")][Ts("0x2a")](Ts("0x8"),Ts("0x26"),Ts("0x3f"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:"formatBlock",subType:"imageStylePreApply"},{type:Ts("0x33"),subType:Ts("0x1e")},{type:"formatBlock",subType:Ts("0x7")},{type:"insertion",subType:Ts("0x7")}];function s(t,e){const r=o.findIndex((({type:e,subType:n})=>t.type==e&&t[Ts("0x9")]==n)),s=o[Ts("0x16")]((({type:t,subType:n})=>e[Ts("0x0")]==t&&e[Ts("0x9")]==n));if(r<0||s<0)return!1;const x=t[Ts("0x41")](),a=e[Ts("0x41")]();if((0==r||1==r)&&2==s&&x[Ts("0x39")](a))return!0;if(2==r&&3==s){const t=n._findSuggestions(x,"insertion")[Ts("0x29")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[Ts("0x9")]));if(t[Ts("0x34")]>1&&a[Ts("0x49")][Ts("0x5")](x[Ts("0x44")]))return!0;if(1==t[Ts("0x34")]&&(x[Ts("0x44")][Ts("0x5")](a[Ts("0x49")])||x[Ts("0x49")][Ts("0x5")](a.start)))return!0}if(3==r&&3==s&&x[Ts("0x44")][Ts("0xe")](a[Ts("0x44")])){const t=x.end[Ts("0x19")],e=a[Ts("0x44")][Ts("0x24")];return i[Ts("0x15")](t)&&t===e}return!1}t[Ts("0x14")].document[Ts("0x46")]((()=>{let e=!1;const r=Array.from(t[Ts("0x14")].document[Ts("0x45")].getChangedMarkers());for(const{name:t,data:o}of r){const{group:r,type:s,subType:x,id:a}=n[Ts("0xc")](t);if(Ts("0x1d")==r&&n[Ts("0x13")](a)){if("formatBlock"==s&&(Ts("0x26")==x||Ts("0x3a")==x)){const t=n[Ts("0x1")](a);if(o[Ts("0x2e")]){const r=t[Ts("0x41")]()[Ts("0x4")]();if(i[Ts("0x15")](r))continue;n[Ts("0x1c")](t),e=!0}}if(Ts("0x33")==s&&"imageCaption"==x&&!o.newRange){const t=n[Ts("0x1")](a);t[Ts("0x30")]&&t[Ts("0x30")][Ts("0x35")]&&(n.discardSuggestion(t[Ts("0x30")]),e=!0)}}}return e})),this[Ts("0x40")](r)}[Ts("0x40")](t){const e=this[Ts("0xf")],n=e[Ts("0x18")];e[Ts("0x6")][Ts("0x23")](Ts("0x28"))[Ts("0x12")].registerDescriptionCallback((e=>{if(Ts("0x8")!=e.type&&Ts("0x32")!=e[Ts("0x0")])return;const{data:i}=e;if(!i||Ts("0x2b")!=i[Ts("0x43")])return;const r=i[Ts("0x25")][0][Ts("0x36")];return o="side"===r?Ji(n,Ts("0x27")):t[r]||r,{type:Ts("0x20"),content:Ji(n,Ts("0x42"),o)};var o}))}}const Cs=["plugins","listenTo","_handleImportedData","TrackChangesEditing","_setSuggestionData","commands","Users","value","_trackChangesValueDuringImport","get","execute","forEach","trackChanges","importWord","high","_trackChangesExecuted","track_changes","editor","dataInsert","afterInit"];var As,ks;As=Cs,ks=126,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this[Is("0x2")]=!1,this[Is("0x9")]=!1}[Is("0xd")](){const t=this[Is("0xb")],e=t[Is("0x13")][Is("0x3")](Is("0x7")),n=t[Is("0x13")].get(Is("0x6"));e&&(e.on(Is("0x4"),((t,[,e])=>{this[Is("0x2")]=n[Is("0x1")],e.collaboration_features[Is("0xa")]=!this[Is("0x2")]}),{priority:Is("0x8")}),this[Is("0xf")](e,Is("0xc"),this[Is("0x10")].bind(this)),this[Is("0xf")](e,"dataInsert",(()=>{this[Is("0x9")]&&(n[Is("0x4")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t[Is("0xe")].get("TrackChangesEditing").enableCommand("importWord"))}[Is("0x10")](t,e){const{suggestions:n}=e,i=this[Is("0xb")][Is("0x13")][Is("0x3")](Is("0x6")),r=i[Is("0x1")];this[Is("0x2")]!==r&&(i[Is("0x4")](),this[Is("0x9")]=!0),n&&n[Is("0x5")]((({id:t,type:e,author:n,created_at:i})=>{const r={id:t,type:e,authorId:this[Is("0xb")].plugins[Is("0x3")](Is("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:i?new Date(i):new Date,source:"importWord"}}};this.editor[Is("0xe")][Is("0x3")](Is("0x11"))[Is("0x12")](r)}))}}const Ss=["registerAttributeLabel","formatBlock","_registerLegacyDescription","_enableDefaultAttributesIntegration","commandName","format","indentBlock","*Indent:* %0","_registerBlockAttribute","indent","_descriptionFactory","afterInit","locale","TrackChangesEditing","editor","IndentEditing","blockIndent","get","IndentBlock","FORMAT_INDENT","enableCommand","outdentBlock","has","plugins"];var vs,Ls;vs=Ss,Ls=280,function(t){for(;--t;)vs.push(vs.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{[Ns("0x13")](){const t=this.editor,e=t[Ns("0x7")][Ns("0x1")](Ns("0x15"));if(t.plugins[Ns("0x6")](Ns("0x17"))&&(e[Ns("0x4")](Ns("0x11")),e[Ns("0x4")]("outdent")),t[Ns("0x7")][Ns("0x6")](Ns("0x2")))for(const t of[Ns("0xe"),Ns("0x5")])e[Ns("0xb")](t);const n=t[Ns("0x14")];e[Ns("0x10")](Ns("0x0")),e[Ns("0x12")][Ns("0x8")](Ns("0x0"),Ji(n,Ns("0x3"))),this[Ns("0xa")]()}[Ns("0xa")](){const t=this[Ns("0x16")],e=t[Ns("0x14")],n=t.plugins[Ns("0x1")]("TrackChangesEditing");n._descriptionFactory.registerDescriptionCallback((t=>{if(Ns("0x9")!=t.type)return;const{data:i}=t;if(!i)return;if(Ns("0xe")!=i[Ns("0xc")]&&Ns("0x5")!=i[Ns("0xc")])return;const r=t.getItems()[0],o=n._descriptionFactory.getItemLabel(r);return Ns("0xe")==i[Ns("0xc")]?{type:"format",content:Ji(e,Ns("0xf"),o)}:"outdentBlock"==i[Ns("0xc")]?{type:Ns("0xd"),content:Ji(e,"*Outdent:* %0",o)}:void 0}))}}var ws,Os,Fs=["get","init","plugins","requires","input","TrackChangesEditing","editor","enableCommand"];ws=Fs,Os=148,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("0x7")](){return[qr.Input]}[Ds("0x5")](){this[Ds("0x2")][Ds("0x6")][Ds("0x4")](Ds("0x1"))[Ds("0x3")](Ds("0x0"))}}const Ps=["key","commandParams","registerAttributeLabel","commandName","_enableDefaultAttributesIntegration","get","link","*Set link:* %0","type","_descriptionFactory","editor","format","link (","registerDescriptionCallback","formatInline","commands","has","*Remove link*","_registerLegacyDescription","label","plugins","locale","TrackChangesEditing","unlink","linkHref","manualDecorators","attribute"];var Us,js;Us=Ps,js=231,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{afterInit(){const t=this[Gs("0x16")];if(!t[Gs("0x5")][Gs("0x1")]("LinkEditing"))return;const e=t.plugins.get(Gs("0x7")),n=t[Gs("0x0")][Gs("0x11")](Gs("0x12"));e[Gs("0x10")](Gs("0x12"),[Gs("0x9"),...n[Gs("0xa")].map((t=>t.id))]),e[Gs("0x10")](Gs("0x8"));for(const t of n[Gs("0xa")])e[Gs("0x15")][Gs("0xe")](t.id,Gs("0x18")+t[Gs("0x4")].toLowerCase()+")");e[Gs("0x15")][Gs("0x19")]((e=>{if(Gs("0xb")!=e[Gs("0x14")])return;const{data:n}=e;if(!n||Gs("0x9")!=n[Gs("0xc")])return;const i=n.newValue,r=t[Gs("0x6")];return{type:Gs("0x17"),content:null==i?Ji(r,Gs("0x2")):Ji(r,Gs("0x13"),'"'+i+'"')}})),this[Gs("0x3")]()}[Gs("0x3")](){const t=this[Gs("0x16")],e=t.locale;t[Gs("0x5")][Gs("0x11")](Gs("0x7"))[Gs("0x15")][Gs("0x19")]((t=>{if(Gs("0x1a")!=t[Gs("0x14")])return;const{data:n}=t;if(n){if(Gs("0x12")==n[Gs("0xf")]){const t=n[Gs("0xd")][0];return{type:Gs("0x17"),content:Ji(e,"*Set link:* %0",'"'+t+'"')}}return Gs("0x8")==n[Gs("0xf")]?{type:Gs("0x17"),content:Ji(e,Gs("0x2"))}:void 0}}))}}const Hs=["locale","formatInline","filter","element","registerDescriptionCallback","ELEMENT_TODO_LIST","getSelectedBlocks","*Uncheck item*","getAttribute","plugins","document","commandParams","LegacyListEditing","createRange","ELEMENT_NUMBERED_LIST","TrackChangesEditing","listItem","get","before","*Change to:* %0","*Check item*","numberedList","nextSibling","previousSibling","schema","checkChild","_descriptionFactory","model","type","length","commands","format","listIndent","markBlockFormat","afterInit","bulletedList","LegacyTodoListEditing","outdentList","isObject","enableCommand","replace","registerElementLabel","forceValue","createPositionAt","end","selection","todoListChecked","value","List","indentList","from","blockName","commandName","paragraph","bulleted","execute","slice","checkTodoList","change","name","editor","add","has","ELEMENT_LIST_ITEM","todoList"];var zs,Ws;zs=Hs,Ws=410,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0xe")](){const t=this[Ks("0x28")],e=t[Ks("0x2d")];if(!t[Ks("0x36")].has(Ks("0x39")))return;const n=t[Ks("0x36")].get(Ks("0x3c")),i=t[Ks("0x36")][Ks("0x2a")](Ks("0x10"));function r(e){return()=>{const i=t[Ks("0x7")][Ks("0x37")][Ks("0x19")],r=t[Ks("0xa")][Ks("0x3e")](e);if(r.value)return void t[Ks("0x23")](Ks("0x21"),{});const o=e[Ks("0x24")](0,-4),s=function(t,e,n){let i=Array.from(t)[Ks("0x2f")]((t=>{return e=t,(i=n)[Ks("0x5")](e.parent,Ks("0x3d"))&&!i[Ks("0x12")](e);var e,i}));i=i[Ks("0x2f")]((t=>!t.is("element","listItem")||t[Ks("0x35")]("listType")!=e));const r=new Set;for(const t of i)t.is(Ks("0x30"),Ks("0x3d"))?r.add(Xs(t)):r.add(t);return Array.from(r)}(i.getSelectedBlocks(),o,t[Ks("0x7")][Ks("0x4")]);t[Ks("0x7")][Ks("0x26")]((()=>{for(const t of s)n[Ks("0xd")](t,{commandName:e,commandParams:[{forceValue:!r[Ks("0x1b")]}],formatGroupId:Ks("0x1f")},$s(t))}))}}function o(e){return()=>{const i=function(t){let e=Array[Ks("0x1e")](t);const n=e.findIndex((t=>Ks("0x3d")!=t[Ks("0x27")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ks("0x7")][Ks("0x37")][Ks("0x19")][Ks("0x33")]()),r=t[Ks("0x7")][Ks("0x3a")](t[Ks("0x7")].createPositionAt(i[0],Ks("0x3f")),t[Ks("0x7")][Ks("0x17")](i[i[Ks("0x9")]-1],Ks("0x18")));t[Ks("0x7")][Ks("0x26")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:Ks("0xc")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x2")];for(;t&&t[Ks("0x35")](Ks("0xc"))>n.getAttribute(Ks("0xc"));)e[Ks("0x29")](t),t=t[Ks("0x2")]}return Array.from(e)}(i))}))}}n.enableCommand(Ks("0x1"),r(Ks("0x1"))),n.enableCommand("bulletedList",r(Ks("0xf"))),i&&n[Ks("0x13")](Ks("0x2c"),r(Ks("0x2c"))),n[Ks("0x13")](Ks("0x1d"),o(Ks("0x1d"))),n.enableCommand(Ks("0x11"),o(Ks("0x11"))),i&&n.enableCommand(Ks("0x25"),(()=>{const e=t[Ks("0xa")][Ks("0x3e")](Ks("0x25")),i=Array[Ks("0x1e")](e._selectedElements);i[Ks("0x2f")]((t=>t[Ks("0x35")](Ks("0x1a"))!=e[Ks("0x1b")])),t.model[Ks("0x26")]((()=>{for(const t of i)n[Ks("0xd")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ks("0x1b")]}]})}))})),n[Ks("0x6")][Ks("0x15")](Ks("0x3d"),(t=>Ji(e,Ks("0x2b"),t))),n[Ks("0x6")][Ks("0x31")]((t=>{if("formatBlock"!=t[Ks("0x8")]&&Ks("0x2e")!=t[Ks("0x8")])return;const{data:n}=t;if(n){if(Ks("0x1")==n[Ks("0x20")]||Ks("0xf")==n[Ks("0x20")]||Ks("0x2c")==n.commandName)switch(n.commandName[Ks("0x14")](Ks("0x1c"),"")){case Ks("0x22"):return i(Ji(e,"ELEMENT_BULLETED_LIST"));case"numbered":return i(Ji(e,Ks("0x3b")));case"todo":return i(Ji(e,Ks("0x32")))}if(Ks("0x1d")==n[Ks("0x20")])return{type:"format",content:Ji(e,"*Indent:* %0",Ji(e,Ks("0x2b")))};if(Ks("0x11")==n[Ks("0x20")])return{type:Ks("0xb"),content:Ji(e,"*Outdent:* %0",Ji(e,Ks("0x2b")))};if(Ks("0x25")==n[Ks("0x20")])return n[Ks("0x38")][0][Ks("0x16")]?{type:Ks("0xb"),content:Ji(e,Ks("0x0"))}:{type:Ks("0xb"),content:Ji(e,Ks("0x34"))}}function i(t){return{type:Ks("0xb"),content:Ji(e,Ks("0x40"),t)}}}))}}function Xs(t){const e=t.getAttribute(Ks("0xc"));if(0==e)return t;let n=t;for(;t[Ks("0x3")]&&t.previousSibling.is(Ks("0x30"),"listItem");){const i=t[Ks("0x3")][Ks("0x35")](Ks("0xc"));if(i==e)n=t[Ks("0x3")];else if(i<e)break;t=t[Ks("0x3")]}return n}function $s(t){const e=[];if(t.is(Ks("0x30"),Ks("0x3d"))&&t[Ks("0x35")](Ks("0xc"))>0){let n=t.nextSibling;for(;n&&Ks("0x3d")==n[Ks("0x27")]&&n[Ks("0x35")]("listIndent")==t.getAttribute(Ks("0xc"));)e.push(n),n=n[Ks("0x2")]}return e}const Zs=["LegacyListPropertiesEditing","flat","_LIST_","ELEMENT_","commandParams","styles","listStart","plugins","list.properties","handleListStyleCommand","startIndex","map","element","markMultiRangeBlockFormat","document","replace","model","LegacyListUtils","editor","length","getFirstPosition","afterInit","listItem","TrackChangesEditing","backward","get","from","selection","_getSuggestionBlocks","filter","*Format:* set order to reversed","parent","formatBlock","bind","push","before","getAttribute","type","has","_descriptionFactory","listReversed","change","getSelectedBlocks","handleListStartCommand","listStyle","*Change to:* %0","format","forward","handleListReversedCommand","createPositionAt","*Format:* set order to regular","createRange","_getSuggestionBlocksForListStyle","reversed","enableCommand","_getTranslationKeyForListStyle","*Format:* set start index to %0","numbered","unshift","toUpperCase","getSiblingNodes"];var Ys,Js;Ys=Zs,Js=215,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Qs("0x32")](){if(!this[Qs("0x2f")][Qs("0x24")][Qs("0x6")](Qs("0x1d")))return;const t=this.editor.config[Qs("0x36")](Qs("0x25")),e=this[Qs("0x2f")][Qs("0x24")][Qs("0x36")]("TrackChangesEditing");t[Qs("0x22")]&&e[Qs("0x16")](Qs("0xc"),this[Qs("0x26")][Qs("0x1")](this)),t.reversed&&e[Qs("0x16")](Qs("0x8"),this[Qs("0x10")][Qs("0x1")](this)),t[Qs("0x27")]&&e[Qs("0x16")](Qs("0x23"),this[Qs("0xb")][Qs("0x1")](this)),e[Qs("0x7")].registerDescriptionCallback(this.handleDescriptions[Qs("0x1")](this))}[Qs("0x26")](t,e={}){const n=this[Qs("0x2f")].plugins[Qs("0x36")](Qs("0x34")),i=this[Qs("0x14")]();this[Qs("0x2f")][Qs("0x2d")].change((()=>{n[Qs("0x2a")](i,{commandName:Qs("0xc"),commandParams:[{type:e.type}],formatGroupId:Qs("0xc")})}))}[Qs("0x10")](t,e={}){const n=this.editor.plugins[Qs("0x36")](Qs("0x34")),i=this._getSuggestionBlocks((t=>t.is("element",Qs("0x33"))&&"numbered"===t[Qs("0x4")]("listType")));if(i[Qs("0x30")]<1)return;const r=i[Qs("0x28")]((t=>this.editor[Qs("0x2d")].createRange(this[Qs("0x2f")][Qs("0x2d")][Qs("0x11")](t,Qs("0x3")),this[Qs("0x2f")][Qs("0x2d")][Qs("0x11")](t,0))));this.editor[Qs("0x2d")][Qs("0x9")]((()=>{n[Qs("0x2a")](r,{commandName:Qs("0x8"),commandParams:[{reversed:e[Qs("0x15")]}],formatGroupId:Qs("0x8")})}))}handleListStartCommand(t,e={}){const n=this[Qs("0x2f")][Qs("0x24")][Qs("0x36")](Qs("0x34")),i=this._getSuggestionBlocks((t=>t.is(Qs("0x29"),Qs("0x33"))&&Qs("0x19")===t.getAttribute("listType")));if(i[Qs("0x30")]<1)return;const r=i.map((t=>this.editor.model[Qs("0x13")](this[Qs("0x2f")][Qs("0x2d")][Qs("0x11")](t,Qs("0x3")),this.editor.model[Qs("0x11")](t,0))));this[Qs("0x2f")][Qs("0x2d")][Qs("0x9")]((()=>{n[Qs("0x2a")](r,{commandName:Qs("0x23"),commandParams:[{startIndex:e[Qs("0x27")]}],formatGroupId:Qs("0x23")})}))}handleDescriptions(t){if(Qs("0x0")!=t.type&&"formatInline"!=t[Qs("0x5")])return;const e=this.editor.locale,{data:n}=t;if(!n)return;let i,r;switch(n.commandName){case Qs("0xc"):i=Qs("0xd"),r={type:Qs("0xe"),content:Ji(e,i,Ji(e,this[Qs("0x17")](n[Qs("0x21")][0][Qs("0x5")])))};break;case Qs("0x8"):i=n[Qs("0x21")][0][Qs("0x15")]?Qs("0x3b"):Qs("0x12"),r={type:"format",content:Ji(e,i)};break;case"listStart":i=Qs("0x18"),r={type:Qs("0xe"),content:Ji(e,i,n[Qs("0x21")][0].startIndex)}}return r}[Qs("0x14")](){var t,e,n,i;const r=this[Qs("0x2f")][Qs("0x24")][Qs("0x36")](Qs("0x2e"));let o=Array[Qs("0x37")](this.editor[Qs("0x2d")][Qs("0x2b")].selection[Qs("0xa")]());return(null===(t=o[0])||void 0===t?void 0:t.is("element",Qs("0x33")))&&o[Qs("0x1a")](...r[Qs("0x1c")](this[Qs("0x2f")][Qs("0x2d")].document.selection[Qs("0x31")](),Qs("0x35"))),(null===(e=o[o.length-1])||void 0===e?void 0:e.is(Qs("0x29"),"listItem"))&&o[Qs("0x2")](...r[Qs("0x1c")](this[Qs("0x2f")].model[Qs("0x2b")][Qs("0x38")].getLastPosition(),Qs("0xf"))),o=[...new Set(o)],(null===(i=null===(n=this[Qs("0x2f")][Qs("0x2d")].document[Qs("0x38")][Qs("0x31")]())||void 0===n?void 0:n[Qs("0x3c")])||void 0===i?void 0:i.is(Qs("0x29"),"listItem"))&&(o=o[Qs("0x3a")]((t=>t.is(Qs("0x29"),"listItem")))),o}[Qs("0x39")](t){const e=this[Qs("0x2f")][Qs("0x24")][Qs("0x36")](Qs("0x2e"));let n=Array[Qs("0x37")](this[Qs("0x2f")][Qs("0x2d")].document.selection[Qs("0xa")]())[Qs("0x3a")](t)[Qs("0x28")]((t=>{const n=this[Qs("0x2f")][Qs("0x2d")][Qs("0x11")](t,0);return[...e[Qs("0x1c")](n,Qs("0x35")),...e[Qs("0x1c")](n,Qs("0xf"))]}))[Qs("0x1e")]();return n=[...new Set(n)],n}[Qs("0x17")](t){return Qs("0x20")+this[Qs("0x2f")][Qs("0x24")][Qs("0x36")]("LegacyListUtils").getListTypeFromListStyleType(t)[Qs("0x1b")]()+Qs("0x1f")+t[Qs("0x1b")]()[Qs("0x2c")](/-/g,"_")}}const ex=["get","high","media","div","registerElementLabel","locale","enableCommand","showSuggestionHighlights","has","options","data","ELEMENT_MEDIA","plugins","conversion","editor","_descriptionFactory","stop","MediaEmbedEditing","TrackChangesEditing","downcastDispatcher","dataDowncast","for","createEmptyElement"];var nx,ix;nx=ex,ix=289,function(t){for(;--t;)nx.push(nx.shift())}(++ix);const rx=function(t,e){return ex[t-=0]};class ox extends t.Plugin{afterInit(){const t=this[rx("0x1")];if(!t.plugins[rx("0x12")](rx("0x4")))return;const e=t[rx("0x16")][rx("0xa")](rx("0x5")),n=t[rx("0xf")];e[rx("0x10")]("mediaEmbed"),e[rx("0x2")][rx("0xe")](rx("0xc"),(t=>Ji(n,rx("0x15"),t))),t[rx("0x0")][rx("0x8")](rx("0x7")).elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n[rx("0x11")])return e[rx("0x9")](rx("0xd"))},converterPriority:rx("0xb")}),t[rx("0x14")][rx("0x6")].on("attribute:url:media",((t,e,n)=>{n[rx("0x13")][rx("0x11")]&&t[rx("0x3")]()}),{priority:"high"})}}const sx=["has","mention","MentionEditing","editor","get","TrackChangesEditing","afterInit"];var xx,ax;xx=sx,ax=284,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{[cx("0x2")](){const t=this[cx("0x6")];t.plugins[cx("0x3")](cx("0x5"))&&t.plugins[cx("0x0")](cx("0x1")).enableCommand(cx("0x4"))}}const ux=["has","PageBreakEditing","TrackChangesEditing","pageBreak","ELEMENT_PAGE_BREAK","plugins","get","afterInit","_descriptionFactory","locale","editor","registerElementLabel"];var dx,gx;dx=ux,gx=256,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0x3")](){const t=this[fx("0x6")];if(!t.plugins[fx("0x8")](fx("0x9")))return;t[fx("0x1")][fx("0x2")](fx("0xa")).enableCommand(fx("0xb"));const e=t[fx("0x1")].get("TrackChangesEditing"),n=t[fx("0x5")];e[fx("0x4")][fx("0x7")](fx("0xb"),(t=>Ji(n,fx("0x0"),t)))}}const mx=["*Insert:* %0","downcastDispatcher","highest","schema","options","_descriptionFactory","registerElementLabel","getItemLabel","getFirstRange","$text","ELEMENT_PARAGRAPH","paragraph","insert","end","consume","editor","editing","insertion","toViewPosition","addClass","format","formatBlock","createUIElement","writer","TrackChangesEditing","includes","locale","markerRange","isTouching","span","mapper","bindElementToMarker","ck-suggestion-marker-split","activeMarkers","model","commandName","has","nodeAfter","showSuggestionHighlights","get","data","start","_enableDefaultAttributesIntegration","checkChild","isBlock","ck-suggestion-marker--active","type","_registerLegacyDescription","plugins","*Change to:* %0"];var px,bx;px=mx,bx=374,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ex("0x18")][Ex("0xc")]("Paragraph"))return;const e=t[Ex("0x2")],n=t.plugins[Ex("0xf")](Ex("0x0"));n[Ex("0x1f")][Ex("0x20")]("paragraph",(t=>Ji(e,Ex("0x24"),t))),n[Ex("0x12")]("paragraph"),n.enableCommand("insertParagraph"),t[Ex("0x2a")].downcastDispatcher.on("addMarker:suggestion:insertion",Tx(t),{priority:Ex("0x1c")}),t[Ex("0x10")][Ex("0x1b")].on("addMarker:suggestion:insertion",((e,n,i)=>{i[Ex("0x1e")][Ex("0xe")]&&Tx(t,{showActiveMarker:!1})(e,n,i)}),{priority:Ex("0x1c")});const i=n[Ex("0x1f")];i.registerDescriptionCallback((n=>{if(Ex("0x2b")!==n[Ex("0x16")])return;const{start:r,end:o}=n[Ex("0x22")]();if(!r[Ex("0x4")](o)||!r[Ex("0xd")])return;const s=t[Ex("0xa")][Ex("0x1d")],x=r[Ex("0xd")];return s[Ex("0x14")](x)&&!s.isLimit(x)&&s[Ex("0x13")](x,Ex("0x23"))?{type:Ex("0x2b"),content:Ji(e,Ex("0x1a"),i[Ex("0x21")](x,1))}:void 0})),this[Ex("0x17")]()}_registerLegacyDescription(){const t=this[Ex("0x29")],e=t[Ex("0x2")];t[Ex("0x18")].get(Ex("0x0"))._descriptionFactory.registerDescriptionCallback((t=>{if(Ex("0x2f")!=t[Ex("0x16")])return;const{data:n}=t;return n&&Ex("0x25")==n[Ex("0xb")]?{type:Ex("0x2e"),content:Ji(e,Ex("0x19"),Ji(e,Ex("0x24")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t[Ex("0x18")].get("TrackChangesEditing"),s=i[Ex("0x3")][Ex("0x11")],x=i.markerRange[Ex("0x27")],a=t[Ex("0xa")][Ex("0x1d")];if(!s[Ex("0x4")](x)||!s[Ex("0xd")])return;const c=s[Ex("0xd")];if(a.isBlock(c)&&!a.isLimit(c)&&a[Ex("0x13")](c,Ex("0x23"))){if(!r.consumable[Ex("0x28")](i[Ex("0x3")],n.name))return;const t=r[Ex("0x31")][Ex("0x30")](Ex("0x5"),{class:Ex("0x8")}),s=r[Ex("0x6")][Ex("0x2c")](x);e&&o[Ex("0x9")][Ex("0x1")](i.markerName)&&r[Ex("0x31")][Ex("0x2d")](Ex("0x15"),t),r[Ex("0x31")][Ex("0x26")](s,t),r[Ex("0x6")][Ex("0x7")](t,i.markerName)}}}const yx=["*Remove all formatting*","RemoveFormatEditing","commandName","_registerLegacyDescription","_descriptionFactory","locale","formatBlock","formatInline","TrackChangesEditing","editor","type","get","afterInit","plugins","removeFormat"];var Cx,Ax;Cx=yx,Ax=474,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0x3")](){const t=this[kx("0x0")];t[kx("0x4")].has(kx("0x7"))&&(t[kx("0x4")][kx("0x2")](kx("0xe"))._enableDefaultAttributesIntegration(kx("0x5")),this[kx("0x9")]())}[kx("0x9")](){const t=this.editor;t[kx("0x4")][kx("0x2")](kx("0xe"))[kx("0xa")].registerDescriptionCallback((e=>{if(kx("0xc")!=e[kx("0x1")]&&kx("0xd")!=e.type)return;const{data:n}=e;return n&&kx("0x5")==n[kx("0x8")]?{type:"format",content:Ji(t[kx("0xb")],kx("0x6"))}:void 0}))}}const Rx=["afterInit","discardAllSuggestions","discardSuggestion","get","discardSelectedSuggestions","acceptSuggestion","plugins","editor","acceptSelectedSuggestions","enableCommand","RestrictedEditingModeEditing","TrackChangesEditing","acceptAllSuggestions","trackChanges","goToPreviousRestrictedEditingException"];var Sx,vx;Sx=Rx,vx=494,function(t){for(;--t;)Sx.push(Sx.shift())}(++vx);const Lx=function(t,e){return Rx[t-=0]};class Nx extends t.Plugin{[Lx("0x1")](){const t=this[Lx("0x8")];if(!t[Lx("0x7")].has(Lx("0xb")))return;const e=t[Lx("0x7")][Lx("0x4")](Lx("0xc"));e[Lx("0xa")](Lx("0x0")),e[Lx("0xa")]("goToNextRestrictedEditingException");const n=t[Lx("0x7")][Lx("0x4")](Lx("0xb"));n.enableCommand(Lx("0xe")),n.enableCommand(Lx("0x6")),n[Lx("0xa")](Lx("0x3")),n[Lx("0xa")](Lx("0xd")),n.enableCommand(Lx("0x2")),n[Lx("0xa")](Lx("0x9")),n[Lx("0xa")](Lx("0x5"))}}const Mx=["downcastDispatcher","plugins","requires","options","createUIElement","editor","span","shiftEnter","locale","softBreak","createPositionBefore","name","registerElementLabel","ck-suggestion-marker-","get","data","enableCommand","deletion","bindElementToMarker","merge","TrackChangesEditing","markerName","insert","writer","addMarker:suggestion","high","model","_descriptionFactory","init","mapper","toViewPosition","getItems","activeMarkers","editing","addClass","addMarker:suggestion:deletion","ck-suggestion-marker--active","showSuggestionHighlights","includes","element"];var wx,Ox;wx=Mx,Ox=181,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("0x15")](){return[Eo.ShiftEnter]}[Fx("0x7")](){const t=this[Fx("0x18")],e=t[Fx("0x14")][Fx("0x21")]("TrackChangesEditing");e[Fx("0x23")](Fx("0x1a")),t[Fx("0xc")][Fx("0x13")].on("addMarker:suggestion:insertion",Bx(t),{priority:Fx("0x4")}),t[Fx("0xc")][Fx("0x13")].on(Fx("0xe"),Bx(t),{priority:"high"}),t[Fx("0x22")][Fx("0x13")].on(Fx("0x3"),((e,n,i)=>{i[Fx("0x16")][Fx("0x10")]&&Bx(t,{showActiveMarker:!1})(e,n,i)})),e[Fx("0x6")][Fx("0x1f")](Fx("0x1c"),(e=>Ji(t[Fx("0x1b")],"ELEMENT_LINE_BREAK",e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t[Fx("0x14")][Fx("0x21")](Fx("0x27"));if(!r.consumable.test(i.markerRange,n[Fx("0x1e")]))return;const s=t[Fx("0x5")];for(const t of i.markerRange[Fx("0xa")]()){if(!t.is(Fx("0x12"),Fx("0x1c")))continue;const n=Fx("0x24")==i[Fx("0x0")].split(":")[1]?Fx("0x26"):"split",x=r[Fx("0x2")][Fx("0x17")](Fx("0x19"),{class:Fx("0x20")+n}),a=r[Fx("0x8")][Fx("0x9")](s[Fx("0x1d")](t));e&&o[Fx("0xb")][Fx("0x11")](i[Fx("0x0")])&&r[Fx("0x2")][Fx("0xd")](Fx("0xf"),x),r[Fx("0x2")][Fx("0x1")](a,x),r[Fx("0x8")][Fx("0x25")](x,i[Fx("0x0")])}}}const Px=["model","formatInline","forceValue","document","isCollapsed","getRanges","registerDescriptionCallback","selection","has","enableCommand","afterInit","commandName","restrictedEditingException","value","change","editor","type","TrackChangesEditing","format","FORMAT_RESTRICTED_DISABLED","_descriptionFactory","StandardEditingModeEditing","FORMAT_RESTRICTED_ENABLED","markInlineFormat","plugins","get"];var Ux,jx;Ux=Px,jx=153,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{[Gx("0xd")](){const t=this[Gx("0x12")],e=t[Gx("0x3")],n=t.locale;if(!t[Gx("0x1")][Gx("0xb")](Gx("0x18")))return;const i=t[Gx("0x1")][Gx("0x2")](Gx("0x14")),r=Gx("0xf"),o=t.commands.get(r);i[Gx("0xc")](r,((t,n={})=>{const s=e[Gx("0x6")][Gx("0xa")];if(s[Gx("0x7")])return void t(n);const x=void 0!==n[Gx("0x5")]?n[Gx("0x5")]:!o[Gx("0x10")];e[Gx("0x11")]((()=>{const t=Array.from(s[Gx("0x8")]());for(const n of t){const t=x?[n]:Jr(r,n,e);for(const e of t)i[Gx("0x0")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),i[Gx("0x17")][Gx("0x9")]((t=>{if("formatBlock"!=t[Gx("0x13")]&&Gx("0x4")!=t[Gx("0x13")])return;const{data:e}=t;return e&&e[Gx("0xe")]==r?e.commandParams[0][Gx("0x5")]?{type:Gx("0x15"),content:Ji(n,Gx("0x19"))}:{type:Gx("0x15"),content:Ji(n,Gx("0x16"))}:void 0}))}}const Hx=["_enableDefaultAttributesIntegration","has","styleName","config","*Set format:* %0","_registerInlineAttribute","forceValue","commandParams","DataSchema","afterInit","block","registerDescriptionCallback","registerAttributeLabel","inline","*Remove format:* %0","editor","normalizeConfig","element","StyleUtils","ghsAttributes","add","style","plugins","FORMAT_STYLE","_registerBlockAttribute","_descriptionFactory","getGhsAttributeNameForElement","Style","toLowerCase","get","TrackChangesEditing","format","_registerLegacyDescription","type"];var zx,Wx;zx=Hx,Wx=342,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x7")](){const t=this[Kx("0xd")];if(!t.plugins[Kx("0x21")](Kx("0x19"))||!t[Kx("0x14")].has(Kx("0x6")))return;const e=t[Kx("0x14")][Kx("0x1b")](Kx("0x1c")),n=t.locale,i=t[Kx("0x1")][Kx("0x1b")](Kx("0x13")),r=t[Kx("0x14")][Kx("0x1b")]("GeneralHtmlSupport"),o=t[Kx("0x14")][Kx("0x1b")](Kx("0x10"))[Kx("0xe")](t[Kx("0x14")][Kx("0x1b")](Kx("0x6")),i.definitions);e[Kx("0x20")](Kx("0x13"));const s=new Set;for(const t of o[Kx("0x8")]){const e=r[Kx("0x18")](t[Kx("0xf")]);s[Kx("0x12")](e)}const x=new Set;for(const t of o[Kx("0xb")]){const e=r[Kx("0x18")](t[Kx("0xf")]);x[Kx("0x12")](e);for(const e of t[Kx("0x11")])x[Kx("0x12")](e)}for(const t of s)e[Kx("0x16")](t),e[Kx("0x17")][Kx("0xa")](t,Ji(n,"FORMAT_STYLE"));for(const t of x)e[Kx("0x3")](t),e[Kx("0x17")][Kx("0xa")](t,Ji(n,Kx("0x15")));this[Kx("0x1e")]()}[Kx("0x1e")](){const t=this[Kx("0xd")],e=t.locale;t[Kx("0x14")][Kx("0x1b")](Kx("0x1c"))[Kx("0x17")][Kx("0x9")]((t=>{if("formatBlock"!=t[Kx("0x1f")]&&"formatInline"!=t.type)return;const{data:n}=t;return n&&"style"===n.commandName?n[Kx("0x5")][0][Kx("0x4")]?{type:Kx("0x1d"),content:Ji(e,Kx("0x2"),n[Kx("0x5")][0][Kx("0x0")][Kx("0x1a")]())}:{type:Kx("0x1d"),content:Ji(e,Kx("0xc"),n[Kx("0x5")][0][Kx("0x0")][Kx("0x1a")]())}:void 0}))}}const Xx=["createTableWalker","findAncestor","plugins","nodeBefore","map","change","enableCommand","element","insertTable","getColumnIndexes","ELEMENT_TABLE_WITH_TEXT","createRangeOn","isEqual","refresh","batch","min","has","ELEMENT_TABLE_ROW_WITH_TEXT","filter","low","substr","position","addMarker:suggestion","options","markMultiRangeInsertion","addClass","removeClass","ELEMENT_TABLE","markMultiRangeDeletion","highest","TableEditing","getContainedElement","suggestion","change:data","toViewElement","data","getChangedMarkers","_suggestionFactory","join","setSelection","selectTableColumn","last","removeTableRow","differ","TrackChangesEditing","writer","getChanges","addRange","*Insert:* %0","detach","deletion","document","ELEMENT_TABLE_COLUMN_WITH_TEXT","isArray","*Remove:* %0","registerDescriptionCallback","registerCustomCallback","some","table","$graveyard","from","discard","tableRow","tableCell","max","left","fromRange","insertTableColumnRight","createPositionAt","MAX_SAFE_INTEGER","tablePaste","TableUtils","subType","name","getItems","editor","rootName","insertTableRowBelow","_descriptionFactory","span","root","above","_tablePostFixingSubtypes","insert","createRangeIn","length","insertion","classes","add","start","registerElementLabel","startsWith","push","cell","tableColumn","forceValue","getCellLocation","hasAttribute","selection","getRanges","accept","selectTableRow","first","MIN_SAFE_INTEGER","_setupColumnsRowsFixing","ELEMENT_TABLE_COLUMN","getAttribute","maxColumn","item","getRowIndexes","ELEMENT_TABLE_ROW","type","toLowerCase","_getSuggestionCoords","downcastDispatcher","execute","getChildren","rowspan","colspan","getSelectionAffectedTableCells","$textProxy","end","get","every","_tableSuggestions","commands","mapper","locale","enqueueChange","model","removeTableColumn","nodeAfter"];var $x,Zx;$x=Xx,Zx=121,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x5d")]=[Yx("0x49"),Yx("0x69")],this[Yx("0x3")]=new Set}afterInit(){const t=this.editor,e=t[Yx("0x8")].document.selection;if(!t[Yx("0xd")][Yx("0x1b")](Yx("0x29")))return;const n=t[Yx("0x6")],i=t.plugins[Yx("0x1")](Yx("0x37")),r=t[Yx("0xd")].get("TableUtils");i[Yx("0x59")][Yx("0x65")](Yx("0x45"),(t=>Ji(n,Yx("0x26"),t))),this[Yx("0x73")](),i[Yx("0x11")](Yx("0x13")),i.enableCommand(Yx("0x70")),i[Yx("0x11")](Yx("0x33"));for(const n of["insertTableRowAbove",Yx("0x58")]){const o=t[Yx("0x4")][Yx("0x1")](n);i[Yx("0x11")](n,(n=>{t.model[Yx("0x10")]((t=>{n();const s=Yx("0x5c")===o.order,x=r[Yx("0x82")](e),a=r.getRowIndexes(x),c=s?a.first-1:a[Yx("0x34")]+1,l=x[0].findAncestor(Yx("0x45")),u=r[Yx("0xb")](l,{startRow:c,endRow:c}),d=Array[Yx("0x47")](u)[Yx("0xf")]((e=>t[Yx("0x16")](e[Yx("0x68")])));i.markMultiRangeInsertion(d,Yx("0x49"))}))}))}for(const n of["insertTableColumnLeft",Yx("0x4e")]){const o=t.commands[Yx("0x1")](n);i.enableCommand(n,(n=>{t[Yx("0x8")][Yx("0x10")]((t=>{n();const s=Yx("0x4c")===o.order,x=r[Yx("0x82")](e),a=r[Yx("0x14")](x),c=s?a.first-1:a[Yx("0x34")]+1,l=x[0][Yx("0xc")](Yx("0x45")),u=r[Yx("0xb")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0x47")](u).map((e=>t[Yx("0x16")](e[Yx("0x68")])));i[Yx("0x23")](d,"tableColumn")}))}))}for(const n of[Yx("0x35"),Yx("0x9")]){const o=n[Yx("0x1f")](11),s=o[Yx("0x7b")](),x=s[Yx("0x1f")](0,3)+Yx("0x5a"),a=Yx("0x45")+o,c="min"+o,l=Yx("0x4b")+o;i[Yx("0x11")](n,(()=>{t.model[Yx("0x10")]((t=>{const o=r[Yx("0x82")](e),u=o[0].findAncestor(Yx("0x45"));let d;if(Yx("0x35")==n){const t=r[Yx("0x78")](o);d={startRow:t[Yx("0x71")],endRow:t[Yx("0x34")],includeAllSlots:!0}}else{const t=r.getColumnIndexes(o);d={startColumn:t.first,endColumn:t[Yx("0x34")],includeAllSlots:!0}}const g=r.createTableWalker(u,d),f=Array[Yx("0x47")](g).map((({cell:t})=>t)),h=Qx(f[Yx("0x1d")]((t=>t[Yx("0x6c")](x)))),m=Qx(f[Yx("0x1d")]((t=>!t[Yx("0x6c")](x))))[Yx("0xf")]((e=>t[Yx("0x16")](e))),p=i[Yx("0x27")](m,a);if(p&&(Yx("0x49")==p[Yx("0x53")]||Yx("0x69")==p[Yx("0x53")])){const e=this[Yx("0x7c")](p);for(const n of h){const i=t[Yx("0x16")](n),o=r[Yx("0x6b")](n),a=n[Yx("0x75")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Yx("0x3a")](i)}}}))}))}function o(n){const i=Array[Yx("0x47")](e[Yx("0x6e")]())[Yx("0xf")]((t=>s.LiveRange[Yx("0x4d")](t)));t[Yx("0x8")].change((e=>{const r=e[Yx("0x19")];n=n[Yx("0x1d")]((t=>Yx("0x46")!=t[Yx("0x5b")][Yx("0x57")])),e.setSelection(n),t[Yx("0x4")][Yx("0x1")](Yx("0x35")).refresh(),t.execute(Yx("0x35"),{forceDefaultExecution:!0}),t[Yx("0x8")].enqueueChange((()=>{t.model[Yx("0x7")](r,(t=>{const e=i.filter((t=>"$graveyard"!=t.root[Yx("0x57")]));e.length>0&&t[Yx("0x32")](e);for(const t of i)t[Yx("0x3c")]()}))}))}))}function a(n){t.model[Yx("0x10")]((i=>{const r=Array[Yx("0x47")](e.getRanges()).map((t=>s.LiveRange[Yx("0x4d")](t))),o=[];for(const t of n)for(const e of t[Yx("0x55")]({shallow:!0}))o[Yx("0x67")](e);for(const e of o)Yx("0x46")!=e[Yx("0x5b")].rootName&&(i[Yx("0x32")](i[Yx("0x4f")](e,0)),t[Yx("0x4")][Yx("0x1")](Yx("0x9")).refresh(),t[Yx("0x7e")]("removeTableColumn",{forceDefaultExecution:!0}));const x=r[Yx("0x1d")]((t=>Yx("0x46")!=t[Yx("0x5b")][Yx("0x57")]));x[Yx("0x60")]>0&&i.setSelection(x);for(const t of r)t[Yx("0x3c")]()}))}function c(t,e){return e[Yx("0x2")]((e=>t[Yx("0x44")]((t=>t[Yx("0x0")][Yx("0x17")](e[Yx("0x64")])||e.end[Yx("0x17")](t.start)))))}function l(t,e){return t[Yx("0x44")]((t=>e[Yx("0x44")]((e=>t.end.isTouching(e[Yx("0x64")])))))}t[Yx("0x2e")][Yx("0x7d")].on(Yx("0x21"),((t,e,n)=>{if(!n[Yx("0x22")].showSuggestionHighlights)return;const i=e[Yx("0x77")];if(!i)return;const r=n[Yx("0x5")][Yx("0x2d")](i);function o(t){return Array[Yx("0x40")](t)?t:[t]}r&&"tableCell"===i[Yx("0x54")]&&(0,x.setHighlightHandling)(r,n[Yx("0x38")],((t,e,n)=>n[Yx("0x24")](o(e[Yx("0x62")]),t)),((t,e,n)=>n[Yx("0x25")](o(e[Yx("0x62")]),t)))}),{priority:Yx("0x28")}),i._descriptionFactory.registerDescriptionCallback((t=>{if(Yx("0x61")!=t.type&&"deletion"!=t[Yx("0x7a")])return;const e=t[Yx("0x2a")]();if(null!=e&&e.is(Yx("0x12"),Yx("0x45"))){if(Yx("0x61")==t[Yx("0x7a")]){const e=t[Yx("0x55")]()[Yx("0x1d")]((t=>t.is(Yx("0x83"))))[Yx("0xf")]((t=>t[Yx("0x2e")]));if(e.length)return{type:Yx("0x61"),content:Ji(n,"*Insert:* %0",Ji(n,Yx("0x15"),'"'+e.join(" ")+'"'))}}if(Yx("0x3d")==t[Yx("0x7a")]){const e=t[Yx("0x55")]()[Yx("0x1d")]((t=>t.is("$textProxy")))[Yx("0xf")]((t=>t[Yx("0x2e")]));if(e.length)return{type:Yx("0x3d"),content:Ji(n,"*Remove:* %0",Ji(n,Yx("0x15"),'"'+e[Yx("0x31")](" ")+'"'))}}}})),i[Yx("0x59")][Yx("0x42")]((t=>{if(Yx("0x49")==t[Yx("0x53")]){const e=t.getItems()[Yx("0x1d")]((t=>t.is("$textProxy"))).map((t=>t.data)),i=this[Yx("0x7c")](t),r=i.maxRow-i.minRow+1;if(Yx("0x61")==t[Yx("0x7a")])return e[Yx("0x60")]?{type:"insertion",content:Ji(n,Yx("0x3b"),Ji(n,Yx("0x1c"),[r,'"'+e[Yx("0x31")](" ")+'"']))}:{type:Yx("0x61"),content:Ji(n,Yx("0x3b"),Ji(n,"ELEMENT_TABLE_ROW",r))};if(Yx("0x3d")==t.type)return e[Yx("0x60")]?{type:Yx("0x3d"),content:Ji(n,Yx("0x41"),Ji(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+e[Yx("0x31")](" ")+'"']))}:{type:Yx("0x3d"),content:Ji(n,Yx("0x41"),Ji(n,Yx("0x79"),r))}}if(Yx("0x69")==t[Yx("0x53")]){const e=t[Yx("0x55")]()[Yx("0x1d")]((t=>t.is(Yx("0x83"))))[Yx("0xf")]((t=>t[Yx("0x2e")])),i=this[Yx("0x7c")](t),r=i[Yx("0x76")]-i.minColumn+1;if(Yx("0x61")==t[Yx("0x7a")])return e[Yx("0x60")]?{type:Yx("0x61"),content:Ji(n,Yx("0x3b"),Ji(n,Yx("0x3f"),[r,'"'+e[Yx("0x31")](" ")+'"']))}:{type:Yx("0x61"),content:Ji(n,Yx("0x3b"),Ji(n,Yx("0x74"),r))};if(Yx("0x3d")==t[Yx("0x7a")])return e[Yx("0x60")]?{type:"deletion",content:Ji(n,"*Remove:* %0",Ji(n,Yx("0x3f"),[r,'"'+e[Yx("0x31")](" ")+'"']))}:{type:Yx("0x3d"),content:Ji(n,Yx("0x41"),Ji(n,Yx("0x74"),r))}}})),i[Yx("0x30")][Yx("0x43")](Yx("0x61"),Yx("0x49"),Yx("0x48"),o),i._suggestionFactory[Yx("0x43")](Yx("0x3d"),Yx("0x49"),Yx("0x6f"),o),i[Yx("0x30")][Yx("0x43")](Yx("0x61"),"tableColumn",Yx("0x48"),a),i._suggestionFactory[Yx("0x43")](Yx("0x3d"),Yx("0x69"),"accept",a),i[Yx("0x30")].registerCustomCallback(Yx("0x61"),Yx("0x69"),"join",c),i[Yx("0x30")][Yx("0x43")]("deletion",Yx("0x69"),Yx("0x31"),c),i._suggestionFactory.registerCustomCallback(Yx("0x61"),Yx("0x49"),Yx("0x31"),l),i[Yx("0x30")].registerCustomCallback(Yx("0x3d"),"tableRow","join",l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Yx("0x56")],e=t.model[Yx("0x3e")][Yx("0x6d")];return(n,i)=>{t.model[Yx("0x10")]((r=>{const{commandName:o,commandParams:x}=i;let a=n[0][Yx("0x0")][Yx("0xe")];x&&x[0]&&!1===x[0][Yx("0x6a")]&&(a=n[0][Yx("0x64")][Yx("0xa")]);const c=r[Yx("0x5f")](a);if(Yx("0x46")==c[Yx("0x5b")].rootName)return;const l=Array[Yx("0x47")](e[Yx("0x6e")]())[Yx("0xf")]((t=>s.LiveRange[Yx("0x4d")](t)));r[Yx("0x32")](c),t[Yx("0x4")][Yx("0x1")](o)[Yx("0x18")](),x[Yx("0x67")]({forceDefaultExecution:!0}),t[Yx("0x7e")](o,...x);const u=l[Yx("0x1d")]((t=>Yx("0x46")!=t[Yx("0x5b")][Yx("0x57")]));u[Yx("0x60")]>0&&r[Yx("0x32")](u);for(const t of l)t[Yx("0x3c")]()}))}}_getCoordsForCells(t){const e=this[Yx("0x56")].plugins[Yx("0x1")](Yx("0x52"));let n=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER,r=Number[Yx("0x50")],o=Number[Yx("0x72")];for(const s of t){if(Yx("0x46")==s[Yx("0x5b")][Yx("0x57")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s[Yx("0x6c")](Yx("0x80"))?s[Yx("0x75")](Yx("0x80"))-1:0,c=s[Yx("0x6c")](Yx("0x81"))?s[Yx("0x75")]("colspan")-1:0;n=t<n?t:n,i=t+a>i?t+a:i,r=x<r?x:r,o=x+c>o?x+c:o}return{minRow:n,maxRow:i,minColumn:r,maxColumn:o}}_setupColumnsRowsFixing(){const t=this.editor,e=t[Yx("0xd")][Yx("0x1")]("TrackChangesEditing"),n=t[Yx("0xd")][Yx("0x1")](Yx("0x52"));t[Yx("0x8")][Yx("0x3e")].on(Yx("0x2c"),(()=>{const n=Array.from(t[Yx("0x8")][Yx("0x3e")][Yx("0x36")][Yx("0x2f")]());for(const{name:t,data:i}of n){const{group:n,id:r,subType:o}=e._splitMarkerName(t);if(Yx("0x2b")!=n)continue;if(null!=i.oldRange)continue;const s=e.getSuggestion(r);this[Yx("0x5d")].includes(o)&&this[Yx("0x3")][Yx("0x63")](s)}}),{priority:Yx("0x1e")});const i=(t,e)=>{let i=!1;const r=e.createRangeOn(t),o=t[Yx("0xc")]("table"),s=n[Yx("0x6b")](t);for(const e of this._tableSuggestions){const n=e[Yx("0x53")],x=n[Yx("0x66")](Yx("0x51")),a=n[Yx("0x1f")](x?10:5),c=a[Yx("0x7b")](),l=c[Yx("0x1f")](0,3)+Yx("0x5a"),u=Yx("0x1a")+a,d="max"+a;if(!e.isInContent)continue;if(o!=e.getFirstRange().start.findAncestor(Yx("0x45")))continue;if(e.isIntersectingWithRange(r))continue;const g=t.hasAttribute(l)?t[Yx("0x75")](l)-1:0,f=this._getSuggestionCoords(e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e.addRange(r),i=!0)}return i};t.model[Yx("0x3e")].registerPostFixer((e=>{let n=!1;for(const r of t[Yx("0x8")][Yx("0x3e")].differ[Yx("0x39")]())if(Yx("0x5e")==r.type)if("tableRow"==r[Yx("0x54")])for(const t of r[Yx("0x20")].nodeAfter[Yx("0x7f")]())n=n||i(t,e);else Yx("0x4a")==r.name&&(n=n||i(r[Yx("0x20")][Yx("0xa")],e));return n}))}[Yx("0x7c")](t){return this._getCoordsForCells(t.getRanges().map((t=>t.start.nodeAfter)))}}function Qx(t){return Array[Yx("0x47")](new Set(t).values())}const ta=["getRanges","fromRange","accept","containsRange","model","$graveyard","horizontally","return","commands","TrackChangesEditing","formatBlock","author","selection","isInContent","_tablePostFixingSubtypes","rootName","length","highest","splitTableCellVertically","value","find","push","editor","mergeTableCellDown","forceDefaultExecution","document","formatInline","findAncestor","getAncestors","change","from","mergeTableCellRight","_descriptionFactory","map","add","_isForcedDefaultExecutionBlock","plugins","filter","enableCommand","*Split cell:* vertically","type","afterInit","table","deletion","TableEditing","_acceptFormatSuggestionCallbackFactory","commandName","mergeTableCellUp","root","createTableWalker","getSelectionAffectedTableCells","splitTableCellHorizontally","_areMergableCells","format","get","requires","TableUtils","subType","*Split cell:* horizontally","getCellLocation","low","markMultiRangeBlockFormat","mergeTableCells","locale","registerDescriptionCallback","getSuggestions","has","refresh","stop","createRangeOn","cell","mergeTableCellLeft","setSelection","*Merge cells*","_areSelectedCellsMergable","registerCustomCallback","_suggestionFactory","size"];var ea,na;ea=ta,na=350,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ia=function(t,e){return ta[t-=0]};class ra extends t.Plugin{static get[ia("0x11")](){return[Jx]}[ia("0x3")](){const t=this.editor,e=t[ia("0x2c")][ia("0x41")][ia("0x34")],n=t[ia("0x19")];if(!t[ia("0x4c")][ia("0x1c")](ia("0x6")))return;const i=t[ia("0x4c")][ia("0x10")](ia("0x31")),r=t[ia("0x4c")].get(ia("0x12")),o=t[ia("0x4c")][ia("0x10")](Jx);o[ia("0x36")][ia("0x3d")](ia("0x18")),i.enableCommand(ia("0x18"),(()=>{const e=r[ia("0xc")](t[ia("0x2c")][ia("0x41")][ia("0x34")]);t[ia("0x2c")][ia("0x45")]((()=>{i[ia("0x17")](e,{commandName:ia("0x18"),commandParams:[]},[],ia("0x18"))}))})),t.commands[ia("0x10")](ia("0x18")).on("execute",((e,n)=>{t[ia("0x30")][ia("0x10")]("trackChanges")[ia("0x3b")]&&(n[ia("0x38")]>0&&n[n[ia("0x38")]-1]&&n[n[ia("0x38")]-1][ia("0x40")]||i[ia("0x4b")]||this._areSelectedCellsMergable()||e[ia("0x1e")]())}),{priority:ia("0x39")});for(const e of["mergeTableCellUp",ia("0x47"),ia("0x3f"),ia("0x21")]){const n=t[ia("0x30")][ia("0x10")](e);i[ia("0x0")](e,(()=>{const e=t[ia("0x2c")][ia("0x41")][ia("0x34")].getFirstPosition()[ia("0x44")]().find((t=>t.is("element","tableCell"))),r=n[ia("0x3b")];t.model[ia("0x45")]((()=>{i[ia("0x17")]([e,r],{commandName:ia("0x18"),commandParams:[]},[],ia("0x18"))}))}))}for(const e of[ia("0x3a"),"splitTableCellHorizontally"]){const n=t[ia("0x30")][ia("0x10")](e);i.enableCommand(e,(()=>{const o=r.getSelectionAffectedTableCells(t.model.document[ia("0x34")])[0],s=o[ia("0x43")](ia("0x4")),{column:x,row:a}=r[ia("0x15")](o);let c=[];if(ia("0x2e")==n.direction){const t=r[ia("0xb")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ia("0x46")](t)[ia("0x49")]((t=>t[ia("0x20")]))}else{const t=r.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[ia("0x46")](t).map((t=>t[ia("0x20")]))}t[ia("0x2c")][ia("0x45")]((t=>{i.markBlockFormat(t[ia("0x1f")](o),{commandName:e,commandParams:[]},c,e)}))}))}i[ia("0x48")][ia("0x1a")]((t=>{if(ia("0x32")!=t[ia("0x2")]&&"formatInline"!=t[ia("0x2")])return;const{data:e}=t;return e&&ia("0x18")==e.commandName?{type:ia("0xf"),content:Ji(n,ia("0x23"))}:void 0})),i[ia("0x48")][ia("0x1a")]((t=>{if(ia("0x32")!=t[ia("0x2")]&&ia("0x42")!=t.type)return;const{data:e}=t;return e?ia("0x3a")==e[ia("0x8")]?{type:ia("0xf"),content:Ji(n,ia("0x1"))}:ia("0xd")==e[ia("0x8")]?{type:ia("0xf"),content:Ji(n,ia("0x14"))}:void 0:void 0}));const x=o[ia("0x7")]();for(const t of[ia("0x9"),ia("0x47"),"mergeTableCellDown",ia("0x21")])i[ia("0x26")][ia("0x25")](ia("0x32"),t,ia("0x2a"),x);for(const t of[ia("0x3a"),ia("0xd")])i._suggestionFactory[ia("0x25")](ia("0x32"),t,ia("0x2a"),x);i[ia("0x26")].registerCustomCallback(ia("0x32"),ia("0x18"),ia("0x2a"),(n=>{t[ia("0x2c")][ia("0x45")]((i=>{const r=Array[ia("0x46")](e[ia("0x28")]())[ia("0x49")]((t=>s.LiveRange[ia("0x29")](t)));i.setSelection(n),t.commands[ia("0x10")](ia("0x18"))[ia("0x1d")](),t.execute(ia("0x18"),{forceDefaultExecution:!0});const o=r[ia("0x4d")]((t=>ia("0x2d")!=t[ia("0xa")][ia("0x37")]));o[ia("0x38")]>0&&i[ia("0x22")](o);for(const t of r)t.detach()}))}));for(const e of[ia("0x9"),ia("0x3f"),"mergeTableCellLeft",ia("0x47")]){const n=t[ia("0x30")][ia("0x10")](e);n.on("set:isEnabled",((e,i,r)=>{if(r){const i=t[ia("0x2c")][ia("0x41")][ia("0x34")].getFirstPosition().getAncestors()[ia("0x3c")]((t=>t.is("element","tableCell")));this[ia("0xe")](n[ia("0x3b")],i)||(e[ia("0x2f")]=!1,e[ia("0x1e")]())}}),{priority:ia("0x16")})}}[ia("0x24")](){const t=this[ia("0x3e")][ia("0x30")][ia("0x10")](ia("0x18")),e=this.editor.plugins[ia("0x10")]("TableUtils");if(!t.isEnabled)return!1;const n=e[ia("0xc")](this[ia("0x3e")][ia("0x2c")][ia("0x41")][ia("0x34")]);for(const t of n)for(const e of n)if(t!=e&&!this[ia("0xe")](t,e))return!1;return!0}[ia("0xe")](t,e){const n=this[ia("0x3e")][ia("0x4c")].get(ia("0x31")),i=this[ia("0x3e")].model.createRangeOn(t),r=this.editor[ia("0x2c")][ia("0x1f")](e),o=new Set,s=new Set;for(const t of n[ia("0x1b")]())if(("insertion"==t[ia("0x2")]||ia("0x5")==t[ia("0x2")]||ia("0x18")==t[ia("0x13")])&&t[ia("0x35")])for(const e of t[ia("0x28")]())e[ia("0x2b")](i,!0)&&o[ia("0x4a")](t[ia("0x2")]+":"+t[ia("0x33")].id),e.containsRange(r,!0)&&s[ia("0x4a")](t[ia("0x2")]+":"+t[ia("0x33")].id);if(o[ia("0x27")]!=s[ia("0x27")])return!1;for(const t of o)if(!s[ia("0x1c")](t))return!1;return!0}}const oa=["addClass","_suggestionFactory","createTableWalker","afterInit","getSuggestion","forceValue","ck-suggestion-marker--active","headingColumns","data","removeClass","stop","getCellLocation","registerCustomCallback","ck-suggestion-marker-","parent","TrackChangesEditing","editing","cell","toViewElement","addMarker:suggestion","mapper","includes","locale","_registerLegacyDescription","registerAttributeLabel","start","_splitMarkerName","headingRows","_handleLegacySuggestions","FORMAT_HEADER_ROW","setAttribute","data-suggestion","consume","markerRange","format","unbindElementFromMarkerName","_descriptionFactory","FORMAT_REGULAR_COLUMN","plugins","removeMarker:suggestion","end","setTableRowHeader","setTableColumnHeader","FORMAT_HEADER_COLUMN","markerNameToElements","highest","get","accept","has","*Format:* %0","downcastDispatcher","requires","commandName","writer","type","formatBlock","name","markerName","nodeBefore","editor","item","_enableDefaultAttributesIntegration"];var sa,xa;sa=oa,xa=140,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("0x23")](){return[Jx]}[aa("0x31")](){const t=this[aa("0x2b")];if(!t[aa("0x16")][aa("0x20")]("TableEditing"))return;const e=t[aa("0x6")],n=t[aa("0x16")].get(aa("0x3d"));n[aa("0x2d")](aa("0x19"),[],["headingRows"]),n._enableDefaultAttributesIntegration(aa("0x1a"),[],["headingColumns"]),n._descriptionFactory[aa("0x8")](aa("0xb"),Ji(e,aa("0xd"))),n[aa("0x14")][aa("0x8")](aa("0x35"),Ji(e,aa("0x1b"))),this[aa("0xc")]()}[aa("0xc")](){const t=this[aa("0x2b")].plugins[aa("0x1e")](aa("0x3d")),e=this[aa("0x2b")][aa("0x16")].get("TableUtils"),n=this[aa("0x2b")][aa("0x16")][aa("0x1e")](Jx)._acceptFormatSuggestionCallbackFactory();function i({showActiveMarker:n=!0,setDataAttribute:i=!0}={}){return(r,o,s)=>{const{type:x,id:a}=t[aa("0xa")](o[aa("0x29")]),c=t.getSuggestion(a),l=c.data;if(aa("0x27")!=c.type||!l||aa("0x1a")!=l[aa("0x24")])return;if(o[aa("0x2c")])return void r[aa("0x38")]();if(!s.consumable[aa("0x10")](o.markerRange,r[aa("0x28")]))return;const u=o[aa("0x11")][aa("0x9")].nodeAfter,d=o[aa("0x11")][aa("0x18")][aa("0x2a")],g=u[aa("0x3c")].parent,{column:f}=e[aa("0x39")](u),{column:h}=e[aa("0x39")](d);for(let r=f;r<=h;r++){const c=e[aa("0x30")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[aa("0x1")],c=s.mapper[aa("0x2")](r);s[aa("0x25")].addClass(aa("0x3b")+x,c),i&&s[aa("0x25")][aa("0xe")](aa("0xf"),a,c),s[aa("0x4")].bindElementToMarker(c,o.markerName),n&&(t.activeMarkers[aa("0x5")](o[aa("0x29")])?s.writer[aa("0x2e")](aa("0x34"),c):s[aa("0x25")][aa("0x37")]("ck-suggestion-marker--active",c))}}}}t[aa("0x2f")][aa("0x3a")](aa("0x27"),aa("0x19"),aa("0x1f"),n),t[aa("0x2f")][aa("0x3a")]("formatBlock","setTableColumnHeader",aa("0x1f"),n),this[aa("0x2b")].editing.downcastDispatcher.on("addMarker:suggestion",i(),{priority:"highest"}),this.editor.data[aa("0x22")].on(aa("0x3"),((t,e,n)=>{n.options.showSuggestionHighlights&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[aa("0x2b")][aa("0x0")][aa("0x22")].on(aa("0x17"),((e,n,i)=>{const{type:r,id:o}=t._splitMarkerName(n[aa("0x29")]),s=t[aa("0x32")](o),x=s[aa("0x36")];if(aa("0x27")!=s.type||!x||aa("0x1a")!=x[aa("0x24")])return;const a=i[aa("0x4")][aa("0x1c")](n[aa("0x29")]);if(a)for(const t of a)i[aa("0x25")][aa("0x37")](aa("0x3b")+r,t),i.writer.removeClass("ck-suggestion-marker--active",t),i[aa("0x25")].removeAttribute(aa("0xf"),t),i[aa("0x4")][aa("0x13")](t,n[aa("0x29")])}),{priority:aa("0x1d")}),this._registerLegacyDescription()}[aa("0x7")](){const t=this.editor,e=t[aa("0x6")];function n(t){return{type:aa("0x12"),content:Ji(e,aa("0x21"),t)}}t.plugins[aa("0x1e")]("TrackChangesEditing")[aa("0x14")].registerDescriptionCallback((t=>{if("formatBlock"!=t[aa("0x26")])return;const{data:i}=t;if(i){if(aa("0x19")==i[aa("0x24")]){const t=i.commandParams[0][aa("0x33")];return n(Ji(e,t?"FORMAT_HEADER_ROW":"FORMAT_REGULAR_ROW"))}if(aa("0x1a")==i[aa("0x24")]){const t=i.commandParams[0][aa("0x33")];return n(Ji(e,aa(t?"0x1b":"0x15")))}}}))}}const la=["getMarkers","from","getSelectionAffectedTableCells","registerPostFixer","setAttribute","rowInsertionIndexes","updateMarker","getContainedElement","table","documentSelection","wrap","trackChanges","$graveyard","column","tableCellBorderWidth","move","isInContent","_getCoordsForCells","tablePasteChainId","editingDowncast","remove","*Replace table cells*","getItems","markerToHighlight","deletionRanges","suggestionLoaded","TrackChangesEditing","startsWith","ck-suggestion-marker-insertion","filter","fromEntries","Users","fill","return","getRange","endRow","entries","getTableIfOnlyTableInContent","document","_splitMarkerName","elementToElement","for","_descriptionFactory","accept","get","tableCell","selection","isEqual","removeRows","length","high","element","removeMarkers","setAttributes","createElement","view","suggestion-td","removeMarker","first","includes","_tablePostFixingSubtypes","getChild","tableCellSuggestion","add","suggestion","conversion","map","createTableWalker","content","has","cell","markerName","root","redo","position","insertion","editing","plugins","_createdBatches","endColumn","tableCellBackgroundColor","paragraph","row","locale","removeColumns","tableCellBorderStyle","createRangeIn","columns","rootName","createRangeOn","markMultiRangeInsertion","low","unwrap","oldRange","getChildren","tablePasteColumn","tableCellHorizontalAlignment","getSuggestions","newRange","name","getChangedMarkers","createRange","suggestion:formatBlock:tablePasteCell","_replaceTableSlotCell","markMultiRangeBlockFormat","author","editor","createPositionBefore","getSuggestion","push","keys","join","getAllAdjacentSuggestions","findAncestor","previousSibling","nodeAfter","columnInsertionIndexes","insertRows","find","getRanges","set","tablePaste","tablePasteCell","change","last","every","value","rows","isEmpty","deletion","registerDescriptionCallback","markerAttributes","forceDefaultExecution","commands","start","attributes","tableCellVerticalAlignment","TableClipboard","dataDowncast","type","end","ck-suggestion-marker","TableUtils","subType","previous","containsRange","afterInit","getAttributes","model","tablePasteRow","clipboardOutput","markers","registerCustomCallback","insert","getShiftedBy","_suggestionFactory","formatBlock","_isForcedDefaultExecutionBlock","discard","differ","rowInsertionRanges","stop","getColumns","next","cells","tableCellBorderColor"];var ua,da;ua=la,da=438,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x4a"),ga("0x3b"),ga("0x91"),ga("0x9c"),ga("0x1e"),ga("0x8c"),"tableCellPadding"],ha=Object[ga("0x5a")](fa[ga("0x7e")]((t=>[t,null])));class ma extends t.Plugin{static get requires(){return[Jx]}[ga("0x28")](){const t=this[ga("0x0")];if(!t[ga("0x89")][ga("0x81")]("TableClipboard"))return;const n=t[ga("0x89")][ga("0x68")](ga("0x56")),i=t[ga("0x89")].get(ga("0x24")),r=t.plugins.get(Jx),o=t[ga("0x89")][ga("0x68")](ga("0x1f"));r[ga("0x78")][ga("0x3")](ga("0x2b"),ga("0x9b")),t[ga("0x2a")].schema.register(ga("0x7a"),{allowIn:ga("0x69"),allowContentOf:ga("0x69"),isLimit:!0}),t[ga("0x7d")][ga("0x64")]({model:ga("0x7a"),view:ga("0x74")});let s=null;t[ga("0x2a")].on("insertContent",((r,x)=>{const[a,c]=x,l=x[x[ga("0x6d")]-1];l&&l[ga("0x1a")]||n[ga("0x33")]||this[ga("0x0")].commands[ga("0x68")](ga("0x47"))[ga("0x14")]&&function(t,e,n,i,r){if(e&&!e.is(ga("0x45")))return!1;const o=r[ga("0x61")](t,n);if(!o||!ba(o,void 0,i))return!1;const s=i[ga("0x3e")](n[ga("0x62")][ga("0x6a")]);if(!s.length)return!1;const x=s[0][ga("0x7")]("table"),a=i.getRowIndexes(s),c=i.getColumnIndexes(s),l={startRow:a[ga("0x76")],endRow:a[ga("0x12")],startColumn:c.first,endColumn:c[ga("0x12")]};return 1==s[ga("0x6d")]&&(l[ga("0x5f")]+=i.getRows(o)-1,l[ga("0x8b")]+=i[ga("0x38")](o)-1),ba(x,l,i)}(a,c,t[ga("0x2a")],i,o)&&(r[ga("0x37")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ga("0x11")]((()=>{t[ga("0x2a")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const i=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;r[ga("0x6d")]&&n[ga("0x96")](r,ga("0x2b"),{tablePasteChainId:i}),o[ga("0x6d")]&&n.markMultiRangeInsertion(o,ga("0x9b"),{tablePasteChainId:i}),a[ga("0x6d")]&&n[ga("0x96")](a,ga("0xf"),{tablePasteChainId:i,skipNestingCheck:!0}),c[ga("0x6d")]&&n.markMultiRangeDeletion(c,ga("0xf"),{tablePasteChainId:i,skipNestingCheck:!0});const u=n[ga("0xa4")](l[ga("0x7e")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x10"),{tablePasteChainId:i});if(u){const e=u[ga("0x3c")](),n=[];for(const{element:i,attributes:r}of l){if(!r)continue;const o=t.model[ga("0x95")](i),s=e.find((t=>t[ga("0x5e")]().isEqual(o)));s&&n[ga("0x3")]([s[ga("0x9f")],r])}n[ga("0x6d")]&&u[ga("0x40")](ga("0x19"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ga("0x6e")]+10}),t[ga("0x89")].get("TableClipboard").on(ga("0xa3"),((t,e)=>{const[n,i,,r]=e;if(!s)return;t[ga("0x37")]();const o=n[ga("0x82")],x=i,a=pa(o),c=pa(x);t[ga("0x5d")]=o;let l=null,u=null;if(c||a)if(a&&!c){r.remove(o[ga("0x79")](0));for(const t of Array.from(x[ga("0x9a")]()))r[ga("0x2f")](t,o,ga("0x22"));const t=s.rowInsertionIndexes[ga("0x77")](n[ga("0x8e")]),e=s[ga("0xa")][ga("0x77")](n[ga("0x49")]);t||e||(l=r[ga("0x92")](o))}else c&&!a&&(u=r[ga("0x92")](o));else{const t=r[ga("0x72")](ga("0x7a")),e=r[ga("0x72")](ga("0x7a"));r[ga("0x46")](r[ga("0x92")](o),e),r[ga("0x2f")](t,o,0);for(const e of Array.from(x.getChildren()))r[ga("0x2f")](e,t,ga("0x22"));l=r[ga("0x95")](t),u=r.createRangeOn(e)}const d=Array[ga("0x3d")](x[ga("0x29")]())[ga("0x59")]((([t])=>fa[ga("0x77")](t)));s[ga("0x3a")][ga("0x3")]({element:o,attributes:d[ga("0x6d")]?Object[ga("0x5a")](d):null}),l&&s.insertionRanges[ga("0x3")](l),u&&s[ga("0x54")].push(u)}),{priority:ga("0x6e")}),i.on("insertColumns",((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x93")]||1;s[ga("0xa")]=new Array(a)[ga("0x5c")](x)[ga("0x7e")](((t,e)=>t+e));for(const{cell:e}of i[ga("0x7f")](r,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges.push(t[ga("0x2a")].createRangeOn(e))}),{priority:ga("0x97")}),i.on(ga("0xb"),((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x15")]||1;s[ga("0x41")]=new Array(a)[ga("0x5c")](x)[ga("0x7e")](((t,e)=>t+e));for(const{cell:e}of i[ga("0x7f")](r,{startRow:x,endRow:x+a-1}))s[ga("0x36")].push(t.model[ga("0x95")](e))}),{priority:ga("0x97")}),n[ga("0x66")][ga("0x18")]((e=>{if(e[ga("0x25")]&&e.subType[ga("0x57")](ga("0xf")))return e[ga("0x26")]?{}:{type:ga("0x87"),content:Ji(t[ga("0x8f")],ga("0x51"))}}));const x=()=>!1;for(const t of[ga("0xf"),ga("0x9b"),"tablePasteRow",ga("0x10")])n[ga("0x31")][ga("0x2e")]("insertion",t,"join",x),n[ga("0x31")][ga("0x2e")](ga("0x17"),t,ga("0x5"),x),n._suggestionFactory.registerCustomCallback(ga("0x32"),t,ga("0x5"),x);n[ga("0x31")][ga("0x2e")]("formatBlock",ga("0x10"),ga("0x34"),x),n[ga("0x31")][ga("0x2e")]("formatBlock",ga("0x10"),"accept",((e,n,i)=>{const r=e[ga("0x7e")]((t=>t[ga("0x43")]()))[ga("0x59")]((t=>t)),o=new Map(r.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&o[ga("0xe")](t,e);else if(i&&i[ga("0x19")])for(const[e,n]of Object[ga("0x60")](i[ga("0x19")])){const i=t[ga("0x2a")][ga("0x2d")][ga("0x68")](e),r=i?i[ga("0x5e")]()[ga("0x43")]():null;r&&o.set(r,n)}t[ga("0x2a")].change((t=>{for(const[e,n]of o)t[ga("0x71")]({...ha,...n},e)}))}));const a=(e,i)=>{n[ga("0x31")][ga("0x2e")](e,ga("0xf"),i,((r,o,s)=>{t[ga("0x2a")][ga("0x11")]((t=>{const x=[];for(const t of r){const e=t[ga("0x1c")][ga("0x9")];e.is(ga("0x6f"),ga("0x7a"))&&x.push(e)}n[ga("0x31")].getSuggestionCallback(e,null,i)(r,o,s);for(const e of x)ga("0x48")!=e[ga("0x84")][ga("0x94")]&&t[ga("0x98")](e)}))}))};a(ga("0x87"),ga("0x67")),a(ga("0x87"),ga("0x34")),a(ga("0x17"),"accept"),a(ga("0x17"),ga("0x34")),n[ga("0x31")][ga("0x2e")]("insertion","tablePasteRow",ga("0x34"),(t=>{const e=t[ga("0x7e")]((t=>t[ga("0x43")]())),n=e[0][ga("0x7")]("table"),{minRow:o,maxRow:s}=r[ga("0x4d")](e);i[ga("0x6c")](n,{at:o,rows:s-o+1})})),n[ga("0x31")][ga("0x2e")](ga("0x87"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t[ga("0x43")]())),n=e[0][ga("0x7")](ga("0x44")),{minColumn:o,maxColumn:s}=r[ga("0x4d")](e);i[ga("0x90")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x25")]||!e[ga("0x25")][ga("0x57")](ga("0xf")))return;const i=e[ga("0x1d")][ga("0x4e")],r=n[ga("0x9d")]()[ga("0x59")]((t=>t.isInContent&&t[ga("0x1d")]&&t[ga("0x1d")][ga("0x4e")]==i));r.length&&e.getAllAdjacentSuggestions().length!=r[ga("0x6d")]&&r.reduce(((t,e)=>(t[ga("0x39")]=e,e[ga("0x26")]=t,e)))};function l(t,e=!0){const{id:i}=n[ga("0x63")](t[ga("0x83")]),r=[ga("0x23"),ga("0x58")],o=n.activeMarkers[ga("0x77")](t[ga("0x83")]);return o&&r[ga("0x3")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":i},priority:o&&e?3010:3e3}}n.on(ga("0x55"),c,{priority:ga("0x6e")}),n.on("suggestionUnloaded",c,{priority:ga("0x6e")}),t.model[ga("0x62")][ga("0x3f")]((()=>{let e=!1;const i=Array.from(t.model[ga("0x62")][ga("0x35")][ga("0xa0")]());for(const{name:r,data:o}of i){const{group:i,type:s,id:x}=n[ga("0x63")](r);if(ga("0x7c")!=i||ga("0x17")!=s||o[ga("0x99")])continue;if(!n.hasSuggestion(x))continue;const a=n[ga("0x2")](x)[ga("0xd")](),c=t[ga("0x89")][ga("0x68")](ga("0x5b")).me;for(const t of n[ga("0x9d")]())if(t.isInContent&&t.author==c&&ga("0x32")==t[ga("0x21")]&&ga("0x10")==t[ga("0x25")]&&t.getRanges()[ga("0x13")]((t=>a.some((e=>e.containsRange(t,!0))))))for(const n of t[ga("0x6")]())n[ga("0x4c")]&&(n[ga("0x34")](),e=!0)}return e})),t[ga("0x2a")][ga("0x62")][ga("0x3f")]((e=>{const i=t[ga("0x1b")][ga("0x68")](ga("0x85"));if(!i||!i[ga("0x8a")][ga("0x81")](e.batch))return!1;let r=!1;const o=t[ga("0x89")].get(ga("0x5b")).me,s=t[ga("0x2a")][ga("0x62")][ga("0x35")].getChanges(),x=Array[ga("0x3d")](t[ga("0x2a")].document[ga("0x35")].getChangedMarkers()).filter((({name:t,data:e})=>{const{group:i,subType:r,authorId:s}=n[ga("0x63")](t);return ga("0x7c")==i&&"tablePaste"==r&&s==o.id&&!e[ga("0x99")]}));for(const t of s){if(ga("0x2f")!=t.type||ga("0x7a")!=t[ga("0x9f")]||1!=t[ga("0x6d")])continue;const n=e[ga("0xa1")](t.position,t[ga("0x86")][ga("0x30")](1));if(!x[ga("0xc")]((({data:t})=>t[ga("0x9e")][ga("0x6b")](n))))for(const{name:t,data:i}of x)if(n[ga("0x27")](i.newRange)){e[ga("0x42")](t,{range:n}),r=!0;break}}return r})),t[ga("0x2a")].document[ga("0x3f")]((e=>{let i=!1;const r=t.plugins[ga("0x68")](ga("0x5b")).me,o=n[ga("0x9d")]()[ga("0x59")]((t=>t[ga("0x4c")]&&t[ga("0xa5")]==r)),s=new Set,x=new Set;for(const t of o)if("tablePaste"==t[ga("0x25")])for(const e of t[ga("0x3c")]()){const n=e[ga("0x5e")]()[ga("0x43")]();if(n)if(n.is("element",ga("0x7a"))&&pa(n)){t[ga("0x75")](e[ga("0x9f")]),s[ga("0x7b")](n),i=!0;const r=n.nextSibling,o=n[ga("0x8")],a=r&&r.is(ga("0x6f"),ga("0x7a")),c=o&&o.is("element",ga("0x7a"));a&&!s.has(r)&&x[ga("0x7b")](r),c&&!s[ga("0x81")](o)&&x.add(o)}else n.is("element","paragraph")&&n[ga("0x16")]&&(t[ga("0x75")](e.name),i=!0)}else if("tablePasteCell"==t[ga("0x25")]){if(!t[ga("0x1d")]||!t.attributes[ga("0x4e")])continue;const e=t.attributes[ga("0x19")];if(e&&Object[ga("0x4")](e)[ga("0x6d")])continue;const n=t.attributes[ga("0x4e")];let r=!0,s=!0;for(const e of o)if(e.subType&&e[ga("0x25")].startsWith("tablePaste")){if(!e[ga("0x1d")][ga("0x4e")]){s=!1;break}if(e.id!=t.id&&e[ga("0x1d")][ga("0x4e")]==n){r=!1;break}}s&&r&&(t[ga("0x70")](),i=!0)}for(const t of s)e[ga("0x50")](t);for(const t of x)e[ga("0x98")](t);return i})),t[ga("0x7d")][ga("0x65")](ga("0x4f"))[ga("0x53")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ga("0x6e")}),t[ga("0x7d")][ga("0x65")](ga("0x20"))[ga("0x53")]({model:ga("0xa2"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:ga("0x6e")});const u=t[ga("0x88")][ga("0x73")];this.listenTo(u.document,ga("0x2c"),((t,e)=>{const n=[];for(const t of u[ga("0x92")](e[ga("0x80")])[ga("0x52")]())t.is(ga("0x6f"),ga("0x74"))&&n[ga("0x3")](t);u[ga("0x11")]((t=>{for(const e of n)t[ga("0x4b")](t.createRangeIn(e),t[ga("0x1")](e)),t.remove(e)}))}))}}function pa(t){if(t[ga("0x16")])return!0;const e=t[ga("0x79")](0);return e.is(ga("0x6f"),ga("0x8d"))&&e[ga("0x16")]}function ba(t,e={},n){for(const{isAnchor:i,cellHeight:r,cellWidth:o}of n[ga("0x7f")](t,{includeAllSlots:!0,...e}))if(!i||1!=r||1!=o)return!1;return!0}const Ea=["resizeTable","commandParams","getTableColumnsWidths","data","markBlockFormat","TableColumnResizeEditing","registerCustomCallback","formatInline","discard","columnWidths","document","handleSuggestionDescription","resizeTableWidth","handleResizeTableWidthCommand","locale","getColumnGroupElement","*Format:* resize table","_descriptionFactory","plugins","has","enableCommand","tableWidth","get","_suggestionFactory","accept","model","editor","change","formatGroupId","format","bind","getContainedElement","getSuggestionCallback","TrackChangesEditing","author","subType","table","getAttribute","formatBlock"];var _a,Ta;_a=Ea,Ta=272,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{afterInit(){if(!this[ya("0x1b")][ya("0x13")][ya("0x14")](ya("0x6")))return;const t=this[ya("0x1b")].plugins.get("TrackChangesEditing");t[ya("0x15")](ya("0xd"),this[ya("0xe")][ya("0x1f")](this)),t[ya("0x18")][ya("0x7")](ya("0x0"),ya("0x1"),ya("0x19"),t[ya("0x18")].getSuggestionCallback(ya("0x0"),null,ya("0x9"))),t[ya("0x18")].registerCustomCallback(ya("0x0"),ya("0x1"),ya("0x9"),t[ya("0x18")][ya("0x21")](ya("0x0"),null,"accept")),t[ya("0x12")].registerDescriptionCallback(this[ya("0xc")][ya("0x1f")](this))}[ya("0xe")](t,e){const n=this[ya("0x1b")].plugins.get(ya("0x22")),i=this[ya("0x1b")][ya("0x13")][ya("0x17")](ya("0x6")),r=e[ya("0x25")]||this.editor[ya("0x1a")][ya("0xb")].selection.getSelectedElement();this.editor[ya("0x1a")][ya("0x1c")]((()=>{const o=i[ya("0x10")](r);let s=o?i[ya("0x3")](o):null,x=r[ya("0x26")]("tableWidth")||null;const a=e[ya("0x16")]||x,c=e[ya("0xa")]||s,l=this[ya("0x1b")][ya("0x13")][ya("0x17")]("Users").me;for(const t of n.getSuggestions()){const e=t[ya("0x20")]();if(ya("0x1")===t[ya("0x24")]&&e===r){t[ya("0x23")]!==l&&t[ya("0x9")]();const e=t[ya("0x4")][ya("0x2")];x=e[0][ya("0x16")],s=e[0].columnWidths;break}}t({table:r,tableWidth:a,columnWidths:c}),n[ya("0x5")](r,{commandName:ya("0xd"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x1")},[],"resizeTable")}))}[ya("0xc")](t){if(ya("0x0")!=t.type&&ya("0x8")!=t.type)return;const{data:e}=t;if(e&&"resizeTable"===e[ya("0x1d")]){const t=ya("0x11");return{type:ya("0x1e"),content:Ji(this[ya("0x1b")][ya("0xf")],t)}}}}const Aa=["afterInit","has","enableCommand","Template","get","editor","plugins"];var ka,Ia;ka=Aa,Ia=185,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ra("0x4")](){const t=this[Ra("0x2")];t[Ra("0x3")][Ra("0x5")](Ra("0x0"))&&t[Ra("0x3")][Ra("0x1")]("TrackChangesEditing")[Ra("0x6")]("insertTemplate")}}const va=["plugins","enableCommand","locale","afterInit","ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents","TrackChangesEditing","registerElementLabel","get","commands"];var La,Na;La=va,Na=458,function(t){for(;--t;)La.push(La.shift())}(++Na);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x5")](){const t=this.editor;if(!t[Ma("0x1")][Ma("0x0")](Ma("0x7")))return;t[Ma("0x2")][Ma("0x0")](Ma("0x8"))[Ma("0x3")](Ma("0x7"));const e=t[Ma("0x2")].get(Ma("0x8")),n=t[Ma("0x4")];e._descriptionFactory[Ma("0x9")]("tableOfContents",(t=>Ji(n,Ma("0x6"),t)))}}const Oa=["differ","nodeBefore","createRange","plugins","title-content","get","afterInit","isEqual","TrackChangesEditing","document","newRange","model","getNearestSelectionRange","forward","registerPostFixer","registerElementLabel","isCollapsed","suggestion","end","locale","from","editor","updateMarker","isTouching","has","element","start","Title"];var Fa,Da;Fa=Oa,Da=236,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{[Ba("0x16")](){const t=this[Ba("0x9")];if(!t[Ba("0x13")][Ba("0xc")](Ba("0xf")))return;const e=t.plugins[Ba("0x15")](Ba("0x18"));e._descriptionFactory[Ba("0x3")](Ba("0x14"),(()=>Ji(t[Ba("0x7")],"ELEMENT_TITLE"))),t[Ba("0x1b")][Ba("0x19")][Ba("0x2")]((n=>{let i=!1;const r=Array[Ba("0x8")](t[Ba("0x1b")][Ba("0x19")][Ba("0x10")].getChangedMarkers());for(const{name:o,data:s}of r){const{group:r}=e._splitMarkerName(o);if(Ba("0x5")!==r||!s[Ba("0x1a")])continue;const x=s[Ba("0x1a")],a=x[Ba("0x6")][Ba("0x11")];if(!a||!a.is(Ba("0xd"),Ba("0x14")))continue;if(!x[Ba("0xe")][Ba("0xb")](x[Ba("0x6")]))continue;const c=t[Ba("0x1b")].schema[Ba("0x0")](x[Ba("0x6")],Ba("0x1"));if(c&&c[Ba("0x4")]){const t=n[Ba("0x12")](x[Ba("0xe")],c[Ba("0xe")]);t[Ba("0x17")](x)||(n[Ba("0xa")](o,{range:t}),i=!0)}i||(n.removeMarker(o),i=!0)}return i}))}}const Ua=["undo","plugins","enableCommand","redo","has","afterInit","UndoEditing","get","TrackChangesEditing","editor"];var ja,Ga;ja=Ua,Ga=358,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x7")](){const t=this[Va("0x1")],e=t[Va("0x3")][Va("0x9")](Va("0x0"));t[Va("0x3")][Va("0x6")](Va("0x8"))&&(e.enableCommand(Va("0x2")),e[Va("0x4")](Va("0x5")))}}const za=["editor","plugins","TableCaptionEditing","toggleTableCaption"];var Wa,Ka;Wa=za,Ka=167,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get requires(){return[Jx]}afterInit(){const t=this[qa("0x1")];t[qa("0x2")].has(qa("0x3"))&&t[qa("0x2")].get("TrackChangesEditing").enableCommand(qa("0x0"))}}const $a=["getSelectionAffectedTableCells","TrackChangesEditing","tableProperties","document","plugins","*Format:* change table cell properties","TablePropertiesEditing","subType","model","_suggestionFactory","tableCellHeight","editor","tableBackgroundColor","tableBorderColor","getFirstPosition","formatBlock","tableBorderWidth","enableCommand","TableCellPropertiesEditing","discard","afterInit","tableCellPadding","tableCellWidth","has","accept","_handlePropertyChange","handleDiscardAction","get","tableCellBorderColor","setAttribute","commandParams","batch","tableCellHorizontalAlignment","TableUtils","getSuggestionCallback","tableAlignment","findAncestor","locale","nodeAfter","change","table","tableCellVerticalAlignment","data","getContainedElement","handleSuggestionDescription","TrackChangesTableProperties","tableHeight","registerCustomCallback","tableWidth","_getSuggestion","tableBorderStyle","tableCellBorderStyle","format","enqueueChange","removeAttribute","tableCellBorderWidth","selection","tableCellProperties"];var Za,Ya;Za=$a,Ya=140,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return $a[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this[Ja("0x24")]=[Ja("0x2f"),Ja("0x1a"),Ja("0x32"),Ja("0xb"),Ja("0x18"),Ja("0x16"),Ja("0x2e")],this.tableCellProperties=[Ja("0x4"),Ja("0x1b"),Ja("0x1f"),Ja("0x37"),Ja("0x38"),Ja("0x2c"),"tableCellBackgroundColor",Ja("0x8"),Ja("0x11")]}static get pluginName(){return Ja("0x15")}[Ja("0x36")](){const t=this[Ja("0x2d")][Ja("0x26")][Ja("0x3")](Ja("0x23"));if(this.editor[Ja("0x26")][Ja("0x39")](Ja("0x28"))){for(const e of this[Ja("0x24")])t[Ja("0x33")](e,((t,n)=>{const i=this[Ja("0x2d")][Ja("0x2a")][Ja("0x25")][Ja("0x20")][Ja("0x30")]()[Ja("0xc")](Ja("0x10"));this[Ja("0x1")](e,[i],this.tableProperties,Ja("0x24"),t,n)}));t._suggestionFactory.registerCustomCallback("formatBlock",Ja("0x24"),Ja("0x0"),t[Ja("0x2b")][Ja("0xa")](Ja("0x31"),null,Ja("0x35"))),t[Ja("0x2b")][Ja("0x17")]("formatBlock",Ja("0x24"),"discard",((t,e)=>this.handleDiscardAction(this[Ja("0x24")],t,e))),t._suggestionFactory[Ja("0x17")](Ja("0x31"),Ja("0x24"),"join",(()=>!1))}if(this[Ja("0x2d")].plugins.has(Ja("0x34"))){for(const e of this[Ja("0x21")])t[Ja("0x33")](e,((t,n)=>{const i=this[Ja("0x2d")][Ja("0x26")][Ja("0x3")](Ja("0x9"))[Ja("0x22")](this[Ja("0x2d")][Ja("0x2a")][Ja("0x25")][Ja("0x20")]);this[Ja("0x1")](e,i,this[Ja("0x21")],Ja("0x21"),t,n)}));t[Ja("0x2b")][Ja("0x17")]("formatBlock",Ja("0x21"),Ja("0x0"),t[Ja("0x2b")].getSuggestionCallback(Ja("0x31"),null,Ja("0x35"))),t[Ja("0x2b")][Ja("0x17")](Ja("0x31"),Ja("0x21"),"discard",((t,e)=>this[Ja("0x2")](this[Ja("0x21")],t,e))),t._suggestionFactory[Ja("0x17")](Ja("0x31"),"tableCellProperties","join",(()=>!1))}t._descriptionFactory.registerDescriptionCallback((t=>this[Ja("0x14")](t)))}[Ja("0x1")](t,e,n,i,r,o){const s=this[Ja("0x2d")][Ja("0x26")].get(Ja("0x23"));this[Ja("0x2d")][Ja("0x2a")][Ja("0x1d")](o[Ja("0x7")],(()=>{for(const t of e)if(this[Ja("0x19")](t,i))r(o);else{const e={};for(const i of n){const n=t.getAttribute(i);void 0!==n&&(e[i]=n)}r(o),s.markBlockFormat(t,{commandParams:[e]},[],i)}}))}[Ja("0x2")](t,e,n){const i=e[0].start[Ja("0xe")],r=n[Ja("0x6")][0];this[Ja("0x2d")].model[Ja("0xf")]((e=>{for(const n of t)void 0!==r[n]?e[Ja("0x5")](n,r[n],i):e[Ja("0x1e")](n,i)}))}[Ja("0x14")](t){if(t[Ja("0x12")])switch(t[Ja("0x29")]){case Ja("0x24"):return{type:Ja("0x1c"),content:Ji(this[Ja("0x2d")][Ja("0xd")],"*Format:* change table properties")};case"tableCellProperties":return{type:Ja("0x1c"),content:Ji(this.editor[Ja("0xd")],Ja("0x27"))}}}_getSuggestion(t,e){const n=this[Ja("0x2d")][Ja("0x26")][Ja("0x3")](Ja("0x23"));for(const i of n.getSuggestions({skipNotAttached:!0})){const n=i[Ja("0x13")]();if(i[Ja("0x29")]===e&&n===t)return i}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,ic=ec.hasOwnProperty,rc=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=ic.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==rc};const sc=function(t){return oc(t)?void 0:t};var xc=rt?rt.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,i,r,o){var s=-1,x=e.length;for(i||(i=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&i(a)?n>1?t(a,n-1,i,r,o):sn(o,a):r||(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 i=arguments,r=-1,o=dc(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=i[r];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 i=mc(),r=16-(i-n);if(n=i,r>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 i=!1;e=ui(e,(function(e){return e=mi(e,t),i||(i=e.length>1),e})),oe(t,dn(t),n),i&&(n=ti(n,7,sc));for(var r=e.length;r--;)Wi(n,e[r]);return n})),Ec=["isLimit","batch","_descriptionFactory","_processAttributeChanges","default","containsPosition","suggestion:","isRemovable","name","$marker","formatBlock","_inlineAttributeKeys","getContainedElement","collaboration.channelId","containsRange","_recordAttributeSuggestions","markerToData","showSuggestionHighlights","markDeletion","never","suggestionLoaded","attribute:join","editingDowncast","createdAt","insertContent","addSuggestionData","_refreshAttributeSuggestionsChain","values","schema","isAtStart","change","getAncestors","discardSelectedSuggestions","model","differ","attributeKey","isMultiRange","containerElement","sort","config","set","discard","getWalker","move","suggestion:attribute:","writer","isIntersecting","getUser","_enabledCommands","consumable","commentThread","attributes","markInsertion","_joinWithAdjacentSuggestions","getChanges","lowest","isCollapsed","createRangeOn","trackChangesCommand","getSuggestions","getChangedMarkers","getMarkers","_registerInlineAttribute","markMultiRangeBlockFormat","originalSuggestionId","unbindElementFromMarkerName","fire","value","nodeAfter","update:suggestion","$elementName","parent","requires","getAllAdjacentSuggestions","_suggestionFactory","getAttribute","_blockAttributeKeys","return","markerNameToElements","warn","removeMarkers","_checkSuggestionCorrectness","root","fetchCommentThread","isBefore","oldValue","_addSuggestionMarker","key","getCommentThread","splice","_saved","containsItem","ck-suggestion-marker","_splitMarkerName","$textProxy","meta","multi","_joinSuggestions","author","from","suggestionUnloaded","markerToHighlight","catch","data-suggestion","acceptSelectedSuggestions","comments","addCommentThread","markers","addClass","FORMATTING","authoredAt","options","markerReady","_handleNewSuggestionMarker","_defaultCallbacks","formatBlock:discard","isEqual","plugins","setAttribute","change:_saved","ck-suggestion-marker-formatInline","push","upcast","start","_commentsRepository","addSuggestion","_getAttributeKey","highest","_initAriaMarkerChangeAnnouncements","trackChanges.mergeNestedSuggestions","pop","type","external:","trackChanges","fromCharCode","_isDataLoaded","createPositionBefore","remove","includes","getFirstMarker","locale","ariaLiveAnnouncer","accepted","insertion:join","trackChanges.trackFormatChanges","removeAttribute","formatInline:accept","suggestionChanged","removeClass","next","execute","backward","document","_adapter","commandName","formatInline","groupId","forceDefaultExecution","_rangeIsInLocalUserInsertion","_removeSuggestion","accept","_cutOutSuggestionMarker","rootName","TrackChangesEditing","elementEnd","oldRange","nodeBefore","after","conversion","elementToElement","toJSON","refresh","size","assign","multipleBlocks","for","buildSuggestion","$graveyard","every","isBlock","get","filter","discardAllSuggestions","addUser","formatGroupId","applyOperation","moveTargetPosition","formatInline:","documentSelection","isAtEnd","bindElementToMarker","pluginName","markerName","previous","track-changes-enable-command-twice","item","clear","join","attribute:accept","_mergeNestedSuggestions","_reduceExistingSuggestions","registerPostFixer","acceptSuggestion","normal","startsWith","formatBlock:accept","skipNestingCheck","removed","insertion:","isOwn","tablePasteChainId","formatBlock:join","PENDING_ACTION_SUGGESTION","CommentsRepository","isArray","createElement","getSuggestionCallback","_model","enqueueChange","discardSuggestion","consume","updateMarker","activeMarkers","_isBlockAttribute","position","isLocal","rejected","isAfter","map","resolve","_onDiscard","attributeOldValue","stop","rename","split","createRange","$text","editor","clone","open","createRangeIn","getShiftedBy","range","removeMarker:suggestion:attribute","isObject","markMultiRangeInsertion","_registerBlockAttribute","enableReadOnlyMode","_suggestions","_findSuggestions","updateSuggestion","substr","forEach","track-changes-user-not-found","suggestion","_editor","selection","Users","addMarkerName","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.","deletion:discard","setTo","getMultiRangeId","_isRegisteredAttribute","insert","dataDowncast","_setSuggestionRange","isIntersectingWithRange","suggestion-type","isInsideObject","isExternal","creator","ck-suggestion-marker--active","elementStart","some","deletion:join","attributeNewValue","rethrowUnexpectedError","mapper","formatInline:chain","getNearestSelectionRange","_element","_getSuggestionData","hasCommentThread","_addThreadToSuggestion","getItems","detach","has","addMarker:suggestion:attribute","deletion:","@external","PendingActions","addHighlight","containsRangeInObject","enableCommand","keys","getFirstRange","data","deletion","getCustomProperty","insertion","addMarker:suggestion:formatBlock","getRanges","splitPosition","ready","dataToMarker","_getExternalAuthor","ck-suggestion-marker-formatBlock","_updateSuggestionData","deletion:chain","_getAuthorFromId","add","_isForcedDefaultExecutionBlock","element","_recordAttributeChanges","end","_refreshSuggestionsChain","error-saving-suggestion-data-suggestion-discarded","toUpperCase","addRange","concat","_trackFormatChanges","formatInline:discard","setSelection","ck-suggestion-marker-","_suggestionState","isUndo","isSelectable","dataReady","insertion:discard","_breakSuggestionMarker","find","notReady","attribute","removeMarker","track-changes-adapter-missing-getsuggestion","isInContent","then","addMarker","adapter","getSuggestion","getDifference","commands","markMultiRangeDeletion","format","_getMarkerAnnouncementText","low","change:data","howMany","change:activeMarkers","delete","high","newRange","_customCallbacks","isNextTo","hasSuggestion","getIntersection","markAttributeChange","_reduceSuggestionAttributeRange","isDocumentOperation","attribute:discard","marker-count","getLastMatchingPosition","define","deleteContent","announce","_setSuggestionData","subType","markBlockFormat","markInlineFormat","hasComments","_afterChanges","listenTo","_createSuggestion","_registerDefaultCallbacks","always","length","createPositionAt"];var _c,Tc;_c=Ec,Tc=318,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x82");class Ac extends t.Plugin{static get[yc("0x84")](){return["CommentsRepository",o.Users,t.PendingActions,ar,gr,Er,Ar,Fr,Lr,jr,Kr,ro,Ao,vo,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Rs,Ms,Bs,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Nx,Dx,Vx,qx,Jx,ra,ca,Xa,ma,Ca,wa,Qa,Sa,Pa,Ha]}static get[yc("0xfb")](){return yc("0xdf")}constructor(t){function e(t){return t[yc("0x120")]((t=>String[yc("0xc2")](t)))[yc("0x101")]("")}super(t),this[yc("0x4b")]=!1,this[yc("0x64")](yc("0x11a"),[]),this.on(yc("0x1f"),((e,n,i,r)=>{this[yc("0x115")][yc("0x5a")]((()=>{for(const e of[...r,...i])this[yc("0x115")][yc("0xa7")].has(e)&&t.editing.reconvertMarker(e)}))})),this[yc("0x3e")]=new ir(this[yc("0x129")][yc("0x5d")].schema,this[yc("0x129")][yc("0xc8")]),this[yc("0xd5")]=null,this[yc("0x86")]=new kc(this.editor),this[yc("0x134")]=new Map,this._commentsRepository=t[yc("0xb1")].get(yc("0x111")),this[yc("0x6c")]=new Set,this[yc("0x115")]=this.editor[yc("0x5d")],this[yc("0x7")]=new WeakMap,this[yc("0x174")]=!1,this[yc("0x88")]=new Set([yc("0x82")]),this[yc("0x47")]=new Set,t[yc("0x63")].define(yc("0xcc"),yc("0x40")),this[yc("0x3")]=t[yc("0x63")][yc("0xf0")](yc("0xcc")),t[yc("0x63")][yc("0x2d")]("trackChanges.mergeNestedSuggestions",!0),this[yc("0x103")]=t[yc("0x63")][yc("0xf0")](yc("0xbd")),this[yc("0x76")]=new d(t,this[yc("0x6c")]),this[yc("0xbc")](),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,53,48])}init(){const t=this[yc("0x129")],n=(t,e)=>{if(yc("0xf")!=t)return yc("0x6")+t;const n=e[yc("0x126")]("|")[0];return this[yc("0x11b")](n)?yc("0x16f"):yc("0xb4")};t.conversion[yc("0xeb")]("editingDowncast")[yc("0xa1")]({model:"suggestion",view:t=>{const{id:e,type:i,subType:r}=this[yc("0x99")](t[yc("0xfc")]),o=[yc("0x98"),n(i,r)];let s=3e3;return this[yc("0x11a")].includes(t.markerName)&&(o.push("ck-suggestion-marker--active"),s=3010),"deletion"==i&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[yc("0xeb")](yc("0x145"))[yc("0x173")]((e=>{e.on("addMarker:suggestion",((e,n,i)=>{if(!i[yc("0xab")].showSuggestionHighlights)return;const r=n[yc("0xff")];if(!r)return;const o=i[yc("0x152")].toViewElement(r);t.model[yc("0x58")][yc("0x130")](r)&&o&&!o[yc("0x167")]("widget")&&o.is(yc("0x61"))&&(0,x.toWidget)(o,i[yc("0x69")])}),{priority:yc("0x21")})})),t[yc("0xe4")].for(yc("0x145")).markerToHighlight({model:yc("0x13a"),view:(t,e)=>{if(!e[yc("0xab")].showSuggestionHighlights)return null;const{type:i,subType:r}=this._splitMarkerName(t[yc("0xfc")]);return{classes:["ck-suggestion-marker",n(i,r)],priority:3e3}}});const i=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(i,r,o)=>{if(!r.item)return;const{id:s}=this._splitMarkerName(r.markerName);if(n){const t=this[yc("0x134")][yc("0xf0")](s),e=this[yc("0xba")](t);if(!this[yc("0x11b")](e))return}if(r[yc("0xff")].is(yc("0x13c")))return void o.consumable[yc("0x118")](r[yc("0xff")],i[yc("0x44")]);const x=o[yc("0x152")].toViewElement(r[yc("0xff")]);if(r.item.is(yc("0x175"))&&t.model[yc("0x58")][yc("0xef")](r[yc("0xff")])&&!x[yc("0x167")](yc("0x160"))){o[yc("0x69")][yc("0xa8")](["ck-suggestion-marker",yc("0x16f")],x),o.writer[yc("0xb2")](yc("0xa3"),s,x),o.mapper[yc("0xfa")](x,r[yc("0xfc")]),e&&(this[yc("0x11a")][yc("0xc6")](r[yc("0xfc")])?o[yc("0x69")][yc("0xa8")](yc("0x14c"),x):o[yc("0x69")][yc("0xd0")](yc("0x14c"),x));for(const e of t[yc("0x5d")][yc("0x12c")](r[yc("0xff")])[yc("0x159")]())o.consumable.consume(e,i[yc("0x44")]);o[yc("0x6d")].consume(r[yc("0xff")],i[yc("0x44")])}};t.conversion[yc("0xeb")]("dataDowncast")[yc("0x173")]((t=>{t.on(yc("0x169"),((t,e,n)=>{n[yc("0xab")].showSuggestionHighlights&&i({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t.conversion[yc("0xeb")](yc("0x145"))[yc("0x173")]((t=>{t.on(yc("0x15c"),((t,e,n)=>{n.options[yc("0x4d")]&&i({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0xbb")})})),t.conversion.for(yc("0x145"))[yc("0x4c")]({model:yc("0x13a"),view:(t,e)=>e.options[yc("0x4d")]?null:{group:yc("0x13a"),name:t[yc("0x137")](11)}}),t[yc("0xe4")][yc("0xeb")](yc("0xb6"))[yc("0xe5")]({view:{name:yc("0x13a"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x42")+t.getAttribute(yc("0x148"))+":"+t[yc("0x87")]("id");return t[yc("0x87")](yc("0x2b"))&&(n+=":"+t[yc("0x87")](yc("0x2b"))),e[yc("0x113")](yc("0x45"),{"data-name":n})}}),t.conversion[yc("0xeb")](yc("0xb6"))[yc("0x16d")]({view:yc("0x13a")}),t[yc("0xe4")].for("editingDowncast")[yc("0x173")]((t=>{t.on(yc("0x169"),i(),{priority:"high"})})),t.conversion[yc("0xeb")](yc("0x52"))[yc("0x173")]((t=>{t.on(yc("0x15c"),i({isAttributeSuggestion:!0}),{priority:yc("0x21")})})),t[yc("0xe4")][yc("0xeb")](yc("0x52"))[yc("0x173")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const i=n[yc("0x152")][yc("0x8a")](e[yc("0xfc")]);if(i)for(const t of i)t.getCustomProperty(yc("0x160"))||(n[yc("0x69")][yc("0xd0")](["ck-suggestion-marker",yc("0x16f"),yc("0x14c")],t),n[yc("0x69")][yc("0xcd")](yc("0xa3"),t),n.mapper[yc("0x7d")](t,e[yc("0xfc")]))}),{priority:yc("0x21")})})),t[yc("0xe4")].for(yc("0x52"))[yc("0x173")]((t=>{t.on(yc("0x12f"),((t,e,n)=>{const i=n[yc("0x152")][yc("0x8a")](e[yc("0xfc")]);if(!i)return;const{id:r}=this[yc("0x99")](e[yc("0xfc")]),o=this[yc("0x134")][yc("0xf0")](r),s=this._getAttributeKey(o);if(this._isBlockAttribute(s))for(const t of i)t[yc("0x167")](yc("0x160"))||(n[yc("0x69")].removeClass(["ck-suggestion-marker","ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[yc("0x69")][yc("0xcd")](yc("0xa3"),t),n[yc("0x152")][yc("0x7d")](t,e[yc("0xfc")]))}),{priority:yc("0x21")})})),t.model[yc("0xd4")][yc("0x105")]((e=>{let n=!1;const i=Array.from(t.model[yc("0xd4")][yc("0x5e")][yc("0x78")]()),r=new Set;for(const{name:x,data:a}of i){const{group:i,type:c,subType:l,id:u}=this[yc("0x99")](x);if("suggestion"!==i)continue;const d=this._suggestions[yc("0xf0")](u);if(null!=a.newRange){"formatInline"==c&&(n=n||Sc(a.newRange,x,e,t[yc("0x5d")].schema));const i=yc("0xf")==c&&this[yc("0x11b")](l[yc("0x126")]("|")[0]);if(a[yc("0x22")][yc("0x74")]||yc("0xed")==a.newRange[yc("0x8e")][yc("0xde")]||yc("0x46")==c&&!Lc(a.newRange)||i&&!Lc(a[yc("0x22")])||yc("0x166")==c&&(Rc(s=a[yc("0x22")])||(o=s)[yc("0xb7")][yc("0x83")]==o[yc("0x177")][yc("0xe2")]&&o.start.isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;r.add(d)}}}var o,s;return r[yc("0xe8")]>0&&(n=!!this._joinWithAdjacentSuggestions(r)||n),n})),t[yc("0x5d")][yc("0xd4")][yc("0x105")]((e=>{let n=!1;for(const i of t[yc("0x5d")][yc("0xd4")][yc("0x5e")][yc("0x72")]())if(yc("0x144")==i[yc("0xbf")])for(const i of this[yc("0x134")][yc("0x57")]()){if(i.isMultiRange||!i.isInContent)continue;const r=yc("0x46")==i[yc("0xbf")],o=this[yc("0xba")](i),s=o&&this._isBlockAttribute(o);if(!r&&!s)continue;const x=i.getFirstRange();if(x[yc("0xb7")][yc("0x83")]!=x[yc("0x177")][yc("0x83")]&&!x[yc("0x177")][yc("0xf9")]){const r=t.model[yc("0x3b")](x.start[yc("0x80")],yc("0x177")),o=t[yc("0x5d")].createRange(x.start,r);e[yc("0x119")](i[yc("0xc7")](),{range:o}),n=!0}}return n})),t[yc("0x5d")][yc("0xd4")].registerPostFixer((t=>this._processAttributeChanges(t))),t[yc("0x5d")][yc("0xd4")][yc("0x105")]((t=>!t[yc("0x3d")][yc("0x11d")]&&this._processAttributeSuggestions(t))),t[yc("0x5d")].on(yc("0x35"),(()=>{this[yc("0x4b")]=!1})),t.model[yc("0xd4")].on(yc("0x1d"),((n,i)=>{if(!i[yc("0x11d")]||i[yc("0x8")])return;if(!this[yc("0x4b")])return;const r=t.model[yc("0xd4")][yc("0x5e")][yc("0x72")]();if(0==r.length)return;const o=[],s=r.filter((t=>yc("0xf")==t[yc("0xbf")])),x=r[yc("0xf1")]((t=>yc("0x144")==t[yc("0xbf")]&&"$text"!=t[yc("0x44")])),a=r.filter((t=>yc("0xc5")==t.type&&yc("0x128")!=t.name));for(const e of s)this._isRegisteredAttribute(e.attributeKey)&&o[yc("0xb5")]({key:e[yc("0x5f")],newValue:e[yc("0x150")],oldValue:e[yc("0x123")],range:Nc(e[yc("0x12e")],t[yc("0x5d")])});for(const e of x){const n=a.find((t=>t[yc("0x155")]===e[yc("0x155")]));if(n){const i=Mc(e[yc("0x11c")][yc("0x80")],t[yc("0x5d")]);n[yc("0x44")]!==e.name&&o[yc("0xb5")]({key:yc("0x82"),newValue:e[yc("0x44")],oldValue:n[yc("0x44")],range:i});for(const[t,r]of n[yc("0x6f")]){if(!this._isRegisteredAttribute(t))continue;const n=e.attributes[yc("0xf0")](t);r!==n&&o.push({key:t,newValue:n,oldValue:r,range:i})}for(const[t,r]of e.attributes)this._isRegisteredAttribute(t)&&(n[yc("0x6f")][yc("0x15b")](t)||o[yc("0xb5")]({key:t,newValue:r,oldValue:null,range:i}))}}0!=o.length&&t[yc("0x5d")][yc("0x116")](i,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:i,newValue:r}of o)this[yc("0x27")](t,e,i,r,{groupId:n});this._reduceExistingSuggestions(t,o)}))}),{priority:yc("0x73")}),t[yc("0x5d")][yc("0xa7")].on(yc("0x81"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x99")](e.name),n=this[yc("0x134")][yc("0xf0")](t);n&&n.addMarkerName(e[yc("0x44")])}})),t[yc("0x5d")][yc("0xd4")].on(yc("0x1d"),(()=>{const e=Array.from(t.model[yc("0xd4")][yc("0x5e")][yc("0x78")]())[yc("0xf1")]((t=>yc("0x13a")===this[yc("0x99")](t[yc("0x44")]).group));if(0===e.length)return;e.sort(((t,e)=>{const n=t[yc("0x165")][yc("0xe1")],i=e[yc("0x165")][yc("0xe1")];return null===n&&null===i?0:null===n&&null!==i?-1:null!==n&&null===i?1:n[yc("0xb7")].isBefore(i[yc("0xb7")])?-1:1}));const n=new Set,i=new Set;for(const{name:t,data:r}of e){const{id:e}=this[yc("0x99")](t);if(null===r[yc("0xe1")]){const e=this[yc("0xad")](t);i[yc("0x173")](e)}else{const t=this[yc("0x134")][yc("0xf0")](e);null!==r[yc("0x22")]||t.isInContent?(n.add(t.head),i.add(t)):this[yc("0xdb")](t)}}i[yc("0xe8")]>0&&this[yc("0x178")](i);for(const t of n)this.fire(yc("0xcf"),t)})),t[yc("0x5d")].on(yc("0xf5"),((e,n)=>{const i=n[0];if(!this._suggestions[yc("0xe8")])return;if(!i[yc("0x29")])return;if(i[yc("0x3d")][yc("0x8")]||!i[yc("0x3d")][yc("0x11d")])return;let r,o;switch(i[yc("0xbf")]){case yc("0x144"):r=t.model[yc("0x3b")](i[yc("0x11c")]),o=r[yc("0x12d")](i.howMany);break;case yc("0x126"):r=t.model.createPositionAt(i[yc("0x16b")]),o=t.model.createPositionAt(i[yc("0xf6")]);break;case yc("0x67"):r=t[yc("0x5d")].createPositionAt(i.targetPosition),o=r[yc("0x12d")](i[yc("0x1e")]);break;default:return}const s=t[yc("0x5d")][yc("0x127")](r,o);t[yc("0x5d")][yc("0x5a")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x135")](s)){if(t[yc("0x60")])continue;if(yc("0xd7")==t[yc("0xbf")])continue;const n=this[yc("0xba")](t);if(n&&this[yc("0x11b")](n)&&yc("0x126")!=i.type)continue;const x=t[yc("0x165")]&&t[yc("0x165")].multipleBlocks;("formatBlock"!=t[yc("0xbf")]||yc("0x126")==i.type&&!x)&&(e[yc("0x161")]||yc("0x168")==t[yc("0xbf")]&&e[yc("0x10d")]||t[yc("0x164")]().containsRange(s)&&this[yc("0xc")](t,r,o))}}))}),{priority:"lowest"}),t[yc("0x5d")].on(yc("0x2e"),((e,n)=>{const i=n[0],r=n[1];if(r&&r[yc("0xd9")])return;if(this[yc("0x174")])return;if(!this[yc("0x76")][yc("0x7f")])return;if(i[yc("0x74")])return;const o=t[yc("0x5d")][yc("0x58")],{start:s,end:x}=i.getFirstRange(),a=s[yc("0x80")]&&o[yc("0x3c")](s[yc("0x80")])?null:o[yc("0x154")](s,"forward"),c=x.nodeBefore&&o[yc("0x3c")](x[yc("0xe2")])?null:o[yc("0x154")](x,yc("0xd3")),l=t[yc("0x5d")][yc("0x127")](a?a[yc("0xb7")]:s,c?c[yc("0x177")]:x);t[yc("0x5d")][yc("0x5a")]((e=>{this[yc("0x4e")](l);const n=t[yc("0x5d")][yc("0x58")][yc("0x154")](l[yc("0xb7")]);i.is(yc("0xf8"))?e[yc("0x5")](n):i[yc("0x141")](n)})),e.stop()}),{priority:e.priorities[yc("0x107")]+10}),t[yc("0x5d")].on(yc("0x54"),((e,n)=>{const i=n[n[yc("0x3a")]-1];i&&i.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[yc("0x7f")]&&(t.model[yc("0x5a")]((()=>{let i=t.model[yc("0x54")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!i)return;e[yc("0x89")]=i[yc("0x12a")]();const r=i[yc("0x177")].nodeBefore,o=t[yc("0x5d")][yc("0x58")];r&&o[yc("0xef")](r)&&!o[yc("0x130")](r)&&(i=t[yc("0x5d")][yc("0x127")](i.start,t[yc("0x5d")][yc("0x3b")](r,yc("0x177")))),this.markInsertion(i)})),e[yc("0x124")]())}),{priority:"high"}),this.editor[yc("0x18")][yc("0x173")]("trackChanges",this[yc("0x76")]),this[yc("0x162")](yc("0xc1"));const r=new p(t,this[yc("0x134")]);t[yc("0x18")][yc("0x173")]("acceptSuggestion",r),this[yc("0x162")](yc("0x106"));const o=new y(t,this._suggestions);t[yc("0x18")][yc("0x173")](yc("0x117"),o),this[yc("0x162")](yc("0x117")),t[yc("0x18")][yc("0x173")]("acceptAllSuggestions",new F(t,r,this[yc("0x134")])),this.enableCommand("acceptAllSuggestions"),t[yc("0x18")][yc("0x173")](yc("0xf2"),new F(t,o,this._suggestions)),this[yc("0x162")](yc("0xf2")),t[yc("0x18")][yc("0x173")](yc("0xa4"),new j(t,r,this._suggestions)),this[yc("0x162")](yc("0xa4")),t[yc("0x18")][yc("0x173")]("discardSelectedSuggestions",new j(t,o,this[yc("0x134")])),this[yc("0x162")](yc("0x5c"));const s=t.plugins.get(yc("0x111"));this.listenTo(s,"addComment",((t,{threadId:e})=>{const n=this[yc("0x134")][yc("0xf0")](e);n&&n[yc("0x6e")]&&1===n[yc("0x6e")][yc("0x3a")]&&this[yc("0x170")](e,{hasComments:!0})}),{priority:yc("0x1c")}),this.listenTo(s,"removeComment",((t,{threadId:e})=>{const n=this[yc("0x134")][yc("0xf0")](e);n&&n[yc("0x6e")]&&!n[yc("0x6e")][yc("0x3a")]&&this[yc("0x170")](e,{hasComments:!1})}),{priority:"low"})}set[yc("0x15")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[yc("0xd5")]=t}get[yc("0x15")](){return this._adapter}[yc("0x77")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x134")][yc("0x57")]())t&&!e[yc("0x12")]||n[yc("0xb5")](e);return e?n[yc("0x120")]((t=>t[yc("0xe6")]())):n}[yc("0x16")](t){const n=this[yc("0x134")][yc("0xf0")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[yc("0x25")](t){return this._suggestions[yc("0x15b")](t)}[yc("0x55")](t){const{authorId:e,id:n,attributes:i}=t,[r,o]=t[yc("0xbf")][yc("0x126")](":"),s=this[yc("0x134")][yc("0xf0")](n)||this[yc("0x37")](r,o,n,e,i);if(this._addThreadToSuggestion(s),this[yc("0x8d")](s,r,o||null,e),s[yc("0x53")]=t.createdAt,s[yc("0xc3")]=!0,i&&i[yc("0x15e")]){const t=i[yc("0x15e")],e=this[yc("0x16e")](t.authorName);s[yc("0xaa")]=t.createdAt,s.author=e,s[yc("0x14a")]=!0}else s[yc("0xaa")]=t[yc("0x53")];switch(t.data&&(s[yc("0x165")]=t.data),t[yc("0x6f")]&&(s.attributes=t.attributes),this[yc("0xd5")]&&this[yc("0xd5")][yc("0xb9")]||(s[yc("0x96")]=!0),this._suggestionState.get(s)){case yc("0xe"):this[yc("0x7")][yc("0x64")](s,yc("0xa"));break;case yc("0xac"):s[yc("0x12")]?(this[yc("0x71")](new Set([s])),this._refreshSuggestionsChain(new Set([s])),this._suggestionState[yc("0x64")](s,yc("0x16c")),this[yc("0x7e")]("suggestionLoaded",s)):this[yc("0x7")][yc("0x64")](s,yc("0x10b"))}return s}acceptSuggestion(t){this[yc("0xd9")]((()=>{this[yc("0x129")][yc("0x5d")][yc("0x5a")]((()=>{for(const e of t[yc("0x85")]())e[yc("0xdc")]()}))}))}[yc("0x117")](t){this[yc("0xd9")]((()=>{this[yc("0x129")][yc("0x5d")][yc("0x5a")]((()=>{for(const e of t[yc("0x85")]())e[yc("0x65")]()}))}))}enableCommand(t,n){const i=this[yc("0x129")][yc("0x18")][yc("0xf0")](t);if(!i)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[yc("0x6c")][yc("0x15b")](i))throw new e.CKEditorError(yc("0xfe"),this,{commandName:t});this[yc("0x6c")][yc("0x173")](i),n&&i.on("execute",((t,e)=>{this[yc("0x76")][yc("0x7f")]&&(this[yc("0x174")]||(e[yc("0x3a")]>0&&e[e.length-1]&&e[e[yc("0x3a")]-1].forceDefaultExecution?e[yc("0xbe")]():(t[yc("0x89")]=n(((...t)=>i[yc("0xd2")](...t,{forceDefaultExecution:!0})),...e),t[yc("0x124")]())))}),{priority:yc("0x21")})}[yc("0xd9")](t){let n,i;const r=this._isForcedDefaultExecutionBlock;this[yc("0x174")]=!0;try{n=t()}catch(t){i=t}return r||(this._isForcedDefaultExecutionBlock=!1),i&&e.CKEditorError[yc("0x151")](i,this),n}[yc("0x70")](t,n=null,i={}){if(t.isCollapsed)return null;const r=this[yc("0x129")][yc("0xb1")][yc("0xf0")](yc("0x13d")).me;for(const{suggestion:e,meta:r}of this[yc("0x135")](t,"insertion"))if(r[yc("0x10d")]){if(!r[yc("0x24")]){if(r[yc("0x161")]){if(!this[yc("0x103")]||!Fc(e,i))continue;return e}if(Fc(e,i))return e;this[yc("0xc")](e,t[yc("0xb7")],t[yc("0x177")]);break}if(n==e[yc("0x31")]&&Fc(e,i)){const n=e[yc("0x164")]();return n[yc("0xb7")][yc("0xb0")](t[yc("0x177")])?this[yc("0x146")](e,this[yc("0x115")][yc("0x127")](t[yc("0xb7")],n.end)):this[yc("0x146")](e,this[yc("0x115")].createRange(n[yc("0xb7")],t[yc("0x177")])),e}}const o=(0,e.uid)(),s=r.id,x=n?yc("0x10c")+n:"insertion",a=this[yc("0x30")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:i});return this[yc("0x92")](x,o,s,t),a}[yc("0x131")](t,n=yc("0x9c"),i={}){const r=this[yc("0x129")][yc("0xb1")][yc("0xf0")]("Users").me,o=this[yc("0x86")][yc("0x114")]("insertion",n,yc("0x101"));for(const e of this.getSuggestions())if(e[yc("0x9e")].id==r.id&&yc("0x168")==e[yc("0xbf")]&&e.subType==n&&Fc(e,i)&&(o(e[yc("0x16a")](),t)||o(t,e[yc("0x16a")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion")){if(!n.isOwn)continue;if(!this._mergeNestedSuggestions&&n[yc("0x161")])continue;if(!Fc(e,i))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n[yc("0x4a")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a="insertion:"+n,c=this[yc("0x30")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:i});for(const e of t)this._addSuggestionMarker(a,s,x,e,Yi[yc("0x142")]());return c}[yc("0x33")](t,n,i=null,r={}){if(i=i||vc(n),t[yc("0x74")])return null;if(yc("0x4f")===this[yc("0x3")]){const e=this[yc("0x86")][yc("0x114")]("formatInline",i,yc("0xdc"));return this[yc("0xd9")]((()=>e([t],n,r))),null}const o=this.editor[yc("0xb1")][yc("0xf0")](yc("0x13d")).me,s=[];if(yc("0x39")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[yc("0x135")](t,yc("0x168")))n[yc("0x10d")]&&!n[yc("0x149")]&&s[yc("0xb5")](...e[yc("0x16a")]());const x=function(t,e){const n=[];for(const i of e){const e=t[yc("0x26")](i);e&&n[yc("0xb5")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x3a")];){const i=n[e].getDifference(t);n[yc("0x95")](e,1,...i),e+=i[yc("0x3a")]}}return n}(t,s);x[yc("0x3a")]&&this._model[yc("0x5a")]((()=>{for(const t of x){const e=this._suggestionFactory.getSuggestionCallback("formatInline",i,yc("0xdc"));this[yc("0xd9")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[yc("0xb7")],a=t.end;for(const{suggestion:e,meta:n}of this[yc("0x135")](t,yc("0xd7"))){if(!n[yc("0x10d")])continue;if(e[yc("0x31")]!=i)continue;if(!Fc(e,r))continue;const o=e[yc("0x164")]();if(o[yc("0x4a")](t,!0))return null;x=x[yc("0x90")](o.start)?x:o[yc("0xb7")],a=a[yc("0x11f")](o[yc("0x177")])?a:o[yc("0x177")],s?o[yc("0xb7")][yc("0x90")](s.getFirstRange()[yc("0xb7")])?(s[yc("0x8c")](),s=e):e[yc("0x8c")]():s=e}const c=this[yc("0x115")][yc("0x127")](x,a);if(s)this[yc("0x146")](s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0x30")]({id:t,type:yc("0xf7")+i,data:n,createdAt:new Date,authorId:s,attributes:r}),this[yc("0x92")]("formatInline:"+i,t,s,c)}}return null}[yc("0x32")](t,n,i=[],r=null,o={}){n[yc("0xf4")]||(n.formatGroupId=n[yc("0xd6")]),n.multipleBlocks=t.is("range"),r=r||vc(n);const s=i[yc("0x120")]((t=>Mc(t,this._model))),x=t.is(yc("0x12e"))?t:Mc(t,this[yc("0x115")]);if(yc("0x4f")===this._trackFormatChanges){const t=this._suggestionFactory[yc("0x114")](yc("0x46"),r,yc("0xdc"));return this[yc("0xd9")]((()=>t([x],n,o))),null}s[yc("0xb5")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&yc("0x39")!==this[yc("0x3")]){const t=this._suggestionFactory.getSuggestionCallback(yc("0x46"),r,yc("0xdc"));return this[yc("0xd9")]((()=>t([x],n,o))),null}let c=null,l=x[yc("0xb7")],u=x[yc("0x177")];for(const{suggestion:t,meta:e}of this[yc("0x135")](x,yc("0x46"))){if(!e[yc("0x10d")])continue;if(e[yc("0x24")]||e.containsRangeInObject||e[yc("0x149")])continue;if(t[yc("0x165")][yc("0xf4")]!=n[yc("0xf4")])continue;if(!Fc(t,o))continue;const i=t[yc("0x164")]();if(t[yc("0x31")]==r){if(i.containsRange(x,!0))return null;l=l[yc("0x90")](i.start)?l:i[yc("0xb7")],u=u[yc("0x11f")](i[yc("0x177")])?u:i[yc("0x177")],c?i[yc("0xb7")][yc("0x90")](c[yc("0x164")]()[yc("0xb7")])?(c[yc("0x8c")](),c=t):t.removeMarkers():c=t}else{const e=x[yc("0x26")](i);this[yc("0xdd")](t,e)}}const d=this[yc("0x129")][yc("0xb1")].get(yc("0x13d")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0x146")](c,this[yc("0x115")][yc("0x127")](l,u)),c;{const t=this[yc("0x30")]({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:f,attributes:o});return this._addSuggestionMarker("formatBlock:"+r,g,f,this._model[yc("0x127")](l,u)),t}}[yc("0x7b")](t,n,i=[],r=null,o={}){n[yc("0xf4")]||(n[yc("0xf4")]=n[yc("0xd6")]);const s=t[0];n[yc("0xea")]=s.is("range"),r=r||vc(n);const x=i[yc("0x120")]((t=>Mc(t,this[yc("0x115")]))),a=s.is(yc("0x12e"))?t:t[yc("0x120")]((t=>Mc(t,this[yc("0x115")])));if(yc("0x4f")===this[yc("0x3")]){const t=this[yc("0x86")].getSuggestionCallback("formatBlock",r,yc("0xdc"));return this[yc("0xd9")]((()=>t(a,n,o))),null}x[yc("0xb5")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&yc("0x39")!==this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(yc("0x46"),r,"accept");return this[yc("0xd9")]((()=>t(a,n,o))),null}const l=this[yc("0x129")].plugins[yc("0xf0")](yc("0x13d")).me;for(const t of this[yc("0x77")]()){if(t[yc("0x9e")].id!=l.id)continue;if(yc("0x46")!=t.type||t[yc("0x165")][yc("0xf4")]!=n[yc("0xf4")])continue;if(!Fc(t,o))continue;const e=t[yc("0x31")]==r;for(let n=0;n<a[yc("0x3a")];n++){const i=a[n];for(const r of t[yc("0x79")]()){const o=r.getRange();if(i.isEqual(o)){e?(a.splice(n,1),n--):t[yc("0x10")](r[yc("0x44")]);break}}}}if(0==a.length)return null;const u=this._suggestionFactory.getSuggestionCallback("formatBlock",r,yc("0x101"));for(const t of this[yc("0x77")]())if(t[yc("0x9e")].id==l.id&&yc("0x46")==t[yc("0xbf")]&&t[yc("0x165")][yc("0xf4")]==n[yc("0xf4")]&&t[yc("0x31")]==r&&Fc(t,o)&&(u(t.getRanges(),a)||u(a,t[yc("0x16a")]()))){for(const e of a)t[yc("0x1")](e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+r,h=this[yc("0x30")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0x92")](f,d,g,t,Yi[yc("0x142")]());return h}markDeletion(t,n=null,i={}){if(t[yc("0x74")])return null;const r=this.editor[yc("0xb1")][yc("0xf0")](yc("0x13d")).me,o=new s.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[yc("0x135")](o,yc("0x168")))if(e[yc("0x10d")]&&!e[yc("0x24")])if(t[yc("0x60")]){const e=t.getRanges().filter((t=>yc("0xed")!=t.root[yc("0xde")]));if(e[yc("0xee")]((t=>o[yc("0x4a")](t,!0)))&&t.discard(),e[yc("0x14e")]((t=>t[yc("0x4a")](o,!0)))){const t=this[yc("0x86")][yc("0x114")](yc("0x166"),n,yc("0xdc"));return this[yc("0xd9")]((()=>t([o],null,i))),null}}else{const e=o[yc("0x26")](t.getFirstRange());null!==e&&t[yc("0x122")]([e],null,i)}if(o[yc("0x15a")](),o[yc("0x74")]||yc("0xed")==o.root.rootName)return null;let x=null,a=o[yc("0xb7")],c=o[yc("0x177")];const l=this[yc("0x135")](o,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[yc("0x115")].createRange(a,c);if(e[yc("0x10d")]&&(this._mergeNestedSuggestions||!e[yc("0x161")]&&!e[yc("0x149")]))if(t.isMultiRange){if(!Fc(t,i))continue;let e=!0;for(const i of t[yc("0x16a")]()){if(i[yc("0x4a")](n,!0))return t;n.containsRange(i)||(e=!1)}e&&t[yc("0x65")]()}else{const e=t[yc("0x164")]();if(e[yc("0x4a")](n,!0))return t;if(!Fc(t,i)){n[yc("0x4a")](e)?t[yc("0x8c")]():e[yc("0x41")](a)?a=e[yc("0x177")]:e.containsPosition(c)&&(c=e[yc("0xb7")]);continue}a=a[yc("0x90")](e[yc("0xb7")])?a:e[yc("0xb7")],c=c[yc("0x11f")](e[yc("0x177")])?c:e[yc("0x177")],i=Object[yc("0xe9")]({},t.attributes),x?e[yc("0xb7")].isBefore(x.getFirstRange()[yc("0xb7")])?(x.removeMarkers(),x=t):t[yc("0x8c")]():x=t}}if(x)return this[yc("0x146")](x,this[yc("0x115")][yc("0x127")](a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x115")].createRange(a,c),s=r.id,x=n?yc("0x15d")+n:yc("0x166"),l=this[yc("0x30")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:i});return this[yc("0x92")](x,t,s,o),l}}[yc("0x19")](t,n=yc("0x9c"),i={}){const r=this[yc("0x129")][yc("0xb1")].get(yc("0x13d")).me,o=t[yc("0x120")]((t=>new s.LiveRange(t[yc("0xb7")],t[yc("0x177")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(o,"insertion"))e[yc("0x10d")]&&!e[yc("0x24")]&&x[yc("0x173")](t);for(const e of x)if(e[yc("0x60")]){const r=e.getRanges();if((!e[yc("0x6f")]||!e[yc("0x6f")][yc("0x10a")])&&r.every((t=>o[yc("0x14e")]((e=>e[yc("0x4a")](t,!0)))))&&e[yc("0x65")](),o.every((t=>r[yc("0x14e")]((e=>e.containsRange(t,!0)))))){const e=this[yc("0x86")][yc("0x114")](yc("0x166"),n,yc("0xdc"));return this.forceDefaultExecution((()=>e(t,null,i))),null}}else{const t=e[yc("0x164")]();if(o.some((e=>e[yc("0x4a")](t,!0)))&&e[yc("0x65")](),o[yc("0xee")]((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[yc("0x114")](yc("0x166"),n,yc("0xdc"));return this[yc("0xd9")]((()=>t(o,null,i))),null}}const a=this[yc("0x86")][yc("0x114")](yc("0x166"),n,yc("0x101"));let c=null;for(const t of this[yc("0x77")]())if(t[yc("0x9e")].id==r.id&&t[yc("0x12")]&&"deletion"==t[yc("0xbf")]&&t.subType==n&&Fc(t,i)&&(a(t[yc("0x16a")](),o)||a(o,t[yc("0x16a")]())))if(c){if(t[yc("0x6e")]&&t[yc("0x6e")].length)continue;for(const e of t[yc("0x16a")]())c.isIntersectingWithRange(e)||c[yc("0x1")](e);t[yc("0x8c")]()}else{c=t;for(const e of o)t[yc("0x147")](e)||t[yc("0x1")](e)}if(c)return c;x[yc("0x100")]();for(const{suggestion:t,meta:e}of this[yc("0x135")](o,yc("0x166")))e[yc("0x10d")]&&(this._mergeNestedSuggestions||!e[yc("0x161")]&&!e.isInsideObject)&&Fc(t,i)&&x[yc("0x173")](t);for(const t of x){const e=t[yc("0x16a")]();if((!i||!i[yc("0x10a")])&&o[yc("0xee")]((t=>e[yc("0x14e")]((e=>e[yc("0x4a")](t,!0))))))return t;(!t[yc("0x6f")]||!t[yc("0x6f")][yc("0x10a")])&&e[yc("0xee")]((t=>o[yc("0x14e")]((e=>e[yc("0x4a")](t,!0)))))&&t[yc("0x65")]()}const l=(0,e.uid)(),u=r.id,d="deletion:"+n,g=this[yc("0x30")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:i});for(const t of o)t[yc("0x15a")](),t[yc("0x74")]||yc("0xed")==t[yc("0x8e")][yc("0xde")]||this[yc("0x92")](d,l,u,t,Yi[yc("0x142")]());return g}[yc("0x27")](t,n,i,r,o){if(t[yc("0x74")])return[];if(yc("0x4f")===this[yc("0x3")])return[];const s=this.editor.plugins[yc("0xf0")](yc("0x13d")).me.id,x=Array[yc("0x9f")](this[yc("0x134")][yc("0x57")]())[yc("0xf1")]((e=>yc("0xf")==e.type&&e[yc("0x165")][yc("0x93")]==n&&e[yc("0x147")](t)));if(yc("0x40")===this[yc("0x3")]){const e=this[yc("0x135")](t,"insertion")[yc("0xf1")]((({meta:t})=>t[yc("0x10d")]&&!t[yc("0x149")]&&!t[yc("0x24")]))[yc("0x120")]((({suggestion:t})=>t));x.unshift(...e)}const a=new Map([[t,i]]);for(const t of x){const e="attribute"==t.type?t[yc("0x165")][yc("0x91")]:void 0,o=t.getFirstRange(),s=Array.from(a.keys())[yc("0xd")]((t=>t[yc("0x6a")](o)));if(!s)continue;const x=s.getDifference(o);this._isBlockAttribute(n)&&yc("0x168")==t[yc("0xbf")]&&0!=x[yc("0x3a")]||(a[yc("0x20")](s),x.forEach((t=>{a[yc("0x64")](t,i)})),yc("0x168")!=t[yc("0xbf")]&&e!=r&&a[yc("0x64")](s.getIntersection(o),e))}const c=[];for(const[t,i]of a){const x=(0,e.uid)(),a={key:n,oldValue:i,newValue:r};n[yc("0x3a")]>37&&console[yc("0x8b")](yc("0x13f"),{key:n});const l=("attribute:"+n+"|"+vc({newValue:r})).substring(0,60),u=this[yc("0x30")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0xb5")](u),this._addSuggestionMarker(l,x,s,t)}return c}[yc("0x132")](t){this[yc("0x88")][yc("0x173")](t)}_registerInlineAttribute(t){this[yc("0x47")][yc("0x173")](t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[yc("0x162")](t,((t,...e)=>{this[yc("0x176")]((()=>{t(...e)}))}));for(const t of e)this[yc("0x7a")](t);for(const t of n)this[yc("0x132")](t)}[yc("0xba")](t){return yc("0xf")==t.type?t[yc("0x31")][yc("0x126")]("|")[0]:null}[yc("0x146")](t,e){const n=t[yc("0xc7")]();this._model.change((t=>{t[yc("0x119")](n,{range:e})}))}[yc("0x158")](t){const e=t.id,n=this[yc("0x129")][yc("0x63")][yc("0xf0")](yc("0x49"));this[yc("0xb8")][yc("0x157")](e)||this[yc("0xb8")][yc("0xa6")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const i=this[yc("0xb8")][yc("0x94")](e);i.unbind("isRemovable"),i[yc("0x43")]=!1,t[yc("0x6e")]=i}[yc("0x8d")](t,n,i,r){if(t[yc("0xbf")]!=n||t[yc("0x31")]!=i||t[yc("0x14b")].id!=r)throw this.editor[yc("0x133")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[yc("0xdd")](t,n){const i=t[yc("0x164")]();if(n.isEqual(i))t.removeMarkers();else if(i[yc("0x4a")](n)){const r=this[yc("0x115")][yc("0x3b")](n.start[yc("0xe2")],yc("0x177"));this[yc("0x146")](t,this[yc("0x115")][yc("0x127")](i[yc("0xb7")],r));const o=(0,e.uid)(),s=t[yc("0x14b")].id,x=t.type+":"+t[yc("0x31")];this[yc("0x30")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x165")],attributes:t[yc("0x6f")]});const a=this._model[yc("0x3b")](n[yc("0x177")][yc("0x83")],yc("0xe3")),c=this[yc("0x115")][yc("0x127")](a,i.end);this[yc("0x92")](x,o,s,c)}else if(i[yc("0x41")](n[yc("0xb7")])){const e=this[yc("0x115")][yc("0x3b")](n.start[yc("0xe2")],yc("0x177"));this._setSuggestionRange(t,this[yc("0x115")][yc("0x127")](i.start,e))}else{const e=this[yc("0x115")][yc("0x3b")](n[yc("0x177")][yc("0x83")],yc("0xe3"));this[yc("0x146")](t,this[yc("0x115")][yc("0x127")](e,i[yc("0x177")]))}}[yc("0xda")](t){for(const{suggestion:e,meta:n}of this[yc("0x135")](t,yc("0x168"))){if(!n[yc("0x10d")])continue;const i=e.getRanges();for(const e of i)if(!t[yc("0x17")](e)[yc("0x3a")])return!0}return!1}[yc("0x172")](t){const n=this[yc("0x129")][yc("0xb1")][yc("0xf0")](yc("0x13d"))[yc("0x6b")](t);if(!n)throw new e.CKEditorError(yc("0x139"),this);return n}_getExternalAuthor(t){const e=this[yc("0x129")][yc("0xb1")][yc("0xf0")]("Users"),n=(0,o.hashObject)(yc("0xc0")+t);return e[yc("0x6b")](n)||e[yc("0xf3")]({id:n,name:t})}[yc("0x37")](t,e,n,i,r){const o=this[yc("0x172")](i),s=this[yc("0x86")][yc("0xec")](t,e,n,o,r,(t=>{this[yc("0x170")](n,{attributes:t});const e=this[yc("0x16")](n);this[yc("0x71")](new Set([e])),this[yc("0x178")](new Set([e]))}));return this.listenTo(s,"accept",(()=>{this[yc("0x170")](n,{state:yc("0xca")})}),{priority:"high"}),this[yc("0x36")](s,yc("0x65"),(()=>{this[yc("0x170")](n,{state:yc("0x11e")})}),{priority:"high"}),this[yc("0x134")][yc("0x64")](n,s),this[yc("0x7")][yc("0x64")](s,yc("0xe")),s}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[yc("0x3a")]>=5?e[2]:null,id:e[yc("0x3a")]<5?e[2]:e[3],authorId:e[yc("0x3a")]<5?e[3]:e[4],markerCount:6==e[yc("0x3a")]?e[5]:null}}[yc("0xc")](t,n,i){const r=t.getFirstRange(),o=r[yc("0xb7")],s=r[yc("0x177")];this[yc("0x146")](t,this[yc("0x115")][yc("0x127")](o,n));const x=(0,e.uid)(),a=t[yc("0x14b")].id,c=t[yc("0xbf")]+(t[yc("0x31")]?":"+t[yc("0x31")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0x6f")],data:t[yc("0x165")]});const l=this[yc("0xba")](t);("formatBlock"==t.type||l&&this[yc("0x11b")](l))&&(i=this._model[yc("0xc4")](i[yc("0x83")])),this[yc("0x92")](c,x,a,this._model.createRange(i,s))}_findSuggestions(t,e=null){const n=[],i=this[yc("0x129")][yc("0xb1")].get("Users").me;Array[yc("0x112")](t)||(t=[t]);for(const r of this.getSuggestions()){if(!r[yc("0x12")])continue;if(e&&r[yc("0xbf")]!=e)continue;let o=!1;for(const e of r[yc("0x16a")]()){for(const s of t){const t=s[yc("0xb7")][yc("0xb0")](e[yc("0x177")])||s[yc("0x177")][yc("0xb0")](e[yc("0xb7")]);if(t||s[yc("0x26")](e)){const x=s[yc("0x4a")](e)&&Ic(this._model[yc("0x58")],e[yc("0xb7")],s),a=e.containsRange(s)&&Ic(this[yc("0x115")][yc("0x58")],s[yc("0xb7")],e);n[yc("0xb5")]({suggestion:r,meta:{isOwn:i==r.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0x92")](t,e,n,i,r){this[yc("0x115")][yc("0x5a")]((o=>{let s=yc("0x42")+t+":"+e+":"+n;r&&(s=s+":"+r),o[yc("0x14")](s,{range:i,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t.next;t[yc("0xfd")]=null,t[yc("0xd1")]=null,null!=e&&e.next==t&&(e[yc("0xd1")]=n),null!=n&&n[yc("0xfd")]==t&&(n[yc("0xfd")]=e),"ready"==this[yc("0x7")][yc("0xf0")](t)&&(this[yc("0x7")][yc("0x64")](t,yc("0x10b")),this[yc("0x7e")](yc("0xa0"),t,e,n))}[yc("0x30")](t){const n=t.id,i=this[yc("0x55")](t);if(this[yc("0xd5")]&&this[yc("0xd5")].addSuggestion){const r=this[yc("0x129")][yc("0xb1")][yc("0xf0")]("PendingActions"),o=i.hasComments,s=i.subType?i[yc("0xbf")]+":"+i[yc("0x31")]:i.type,x=this[yc("0x129")][yc("0xc8")],a=r.add(Ji(x,yc("0x110"))),c={id:n,type:s,hasComments:o,data:t[yc("0x165")]||null,originalSuggestionId:t[yc("0x7c")]||null,attributes:i.attributes};this[yc("0xd5")][yc("0xb9")](c)[yc("0x13")]((t=>{i[yc("0x96")]=!0,r.remove(a),t&&t[yc("0x53")]&&(this[yc("0x134")][yc("0xf0")](n)[yc("0x53")]=t[yc("0x53")])}))[yc("0xa2")]((t=>{throw(0,e.logWarning)(yc("0x179")),this[yc("0x129")].model[yc("0x116")]({isUndoable:!1},(()=>{i.discard()})),i.stopListening(),this[yc("0x134")][yc("0x20")](i.id),this[yc("0x7")][yc("0x20")](i),t}))}return i}_isBlockAttribute(t){return this[yc("0x88")][yc("0x15b")](t)}[yc("0x170")](t,e){const n=this[yc("0x129")][yc("0xb1")].get(yc("0x15f")),i=this[yc("0x16")](t);if(this._adapter&&this[yc("0xd5")][yc("0x136")])if(i[yc("0x96")]){const i=n[yc("0x173")](Ji(this[yc("0x129")].locale,yc("0x110")));this._adapter[yc("0x136")](t,e)[yc("0x13")]((()=>{n[yc("0xc5")](i)}))}else i.on(yc("0xb3"),(()=>{this[yc("0x170")](t,e)}))}_getSuggestionData(t){if(!this[yc("0xd5")]||!this[yc("0xd5")][yc("0x16")])throw new e.CKEditorError(yc("0x11"),this);return this[yc("0xd5")][yc("0x16")](t)}[yc("0xad")](t){const{id:e,type:n,subType:i,authorId:r}=this[yc("0x99")](t),o=this[yc("0x134")][yc("0xf0")](e)||this[yc("0x37")](n,i,e,r,{});switch(this[yc("0x8d")](o,n,i,r),this._suggestionState[yc("0xf0")](o)){case yc("0xe"):this[yc("0x156")](e).then((t=>{let n=Promise[yc("0x121")]();t.hasComments&&(n=this[yc("0xb8")][yc("0x8f")]({channelId:this[yc("0x129")][yc("0x63")][yc("0xf0")](yc("0x49")),threadId:e})),n[yc("0x13")]((()=>{this.addSuggestionData(t)[yc("0x96")]=!0}))})),this[yc("0x7")][yc("0x64")](o,yc("0xac"));break;case yc("0x10b"):this._updateSuggestionData(e,{state:yc("0x12b")});case yc("0xa"):this._suggestionState[yc("0x64")](o,yc("0x16c")),this[yc("0x7e")](yc("0x50"),o);break;case yc("0x16c"):this[yc("0x7e")]("suggestionChanged",o)}return o[yc("0x13e")](t),o}[yc("0x178")](t){const e=Array.from(t),n=e[yc("0xf1")]((t=>"attribute"==t[yc("0xbf")]));this[yc("0x56")](n);const i=e[yc("0xf1")]((t=>!t[yc("0x60")]&&"attribute"!=t[yc("0xbf")])),r=this[yc("0x77")]({skipNotAttached:!0}).filter((t=>!t.isMultiRange&&"attribute"!=t[yc("0xbf")])),o=r[yc("0xf1")]((e=>!t.has(e))),s=new Map(r[yc("0x120")]((t=>[t,this[yc("0x86")][yc("0x114")](t[yc("0xbf")],t[yc("0x31")],"chain")]))),x=new Map(r.map((t=>[t,t[yc("0x164")]()]))),a=new Set,c=new Set;for(let t=0;t<i.length;t++)u(i[t],i,t+1);for(let t=0;t<i[yc("0x3a")];t++)u(i[t],o,0);const l=new Set;for(let t=0;t<i[yc("0x3a")];t++){const e=i[t];!c[yc("0x15b")](e)&&e.previous&&(l[yc("0x173")](e[yc("0xfd")]),e[yc("0xfd")][yc("0xd1")]===e&&(e.previous.next=null),e.previous=null),!a[yc("0x15b")](e)&&e[yc("0xd1")]&&(l[yc("0x173")](e[yc("0xd1")]),e[yc("0xd1")][yc("0xfd")]===e&&(e[yc("0xd1")][yc("0xfd")]=null),e[yc("0xd1")]=null)}function u(t,e,n){for(let i=n;i<e[yc("0x3a")];i++){const n=d(t,e[i]);n&&(n[0].next=n[1],n[1].previous=n[0],a[yc("0x173")](n[0]),c[yc("0x173")](n[1]))}}function d(t,e){if(t.author.id!==e[yc("0x9e")].id)return null;const n=s[yc("0xf0")](t)(t,e,x[yc("0xf0")](t),x[yc("0xf0")](e));return n&&s[yc("0xf0")](e)(t,e,x[yc("0xf0")](t),x[yc("0xf0")](e))?n[1][yc("0x6e")]&&n[1].commentThread.length?null:n:null}l[yc("0xe8")]&&this[yc("0x178")](l)}[yc("0x56")](t){if(0==t[yc("0x3a")])return;const e=this.getSuggestions({skipNotAttached:!0})[yc("0xf1")]((t=>yc("0xf")==t.type&&t[yc("0xc3")])),n=[],i=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x6f")]);i[yc("0x15b")](e)||(i[yc("0x64")](e,n[yc("0x3a")]),n[yc("0xb5")]([]));const r=i[yc("0xf0")](e);n[r][yc("0xb5")](t)}!function(){n.sort(((t,e)=>{const n=t[0].createdAt,i=e[0][yc("0x53")];return n==i?t[0][yc("0x6f")][yc("0xd8")]<e[0][yc("0x6f")].groupId?-1:1:n<i?-1:1}));for(const t of n)t[yc("0x62")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t][yc("0x3a")])continue;const e=[];for(let i=t+1;i<n.length;i++)0!=n[i][yc("0x3a")]&&r(n[t],n[i])&&e[yc("0xb5")](i);for(const i of e)n[t]=n[t][yc("0x2")](n[i]),n[i]=[]}for(const t of n)for(let e=0;e<t[yc("0x3a")];e++)t[e][yc("0xd1")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0x3a")];e++)t[e][yc("0xfd")]=t[e-1]||null;function r(t,e){if(t[0].attributes.groupId!==e[0][yc("0x6f")].groupId&&t[0][yc("0x9e")]!==e[0][yc("0x9e")])return!1;if(n=t[0],i=e[0],(n.hasComments||i[yc("0x34")])&&(n.hasComments&&i.hasComments||!(n[yc("0x34")]&&i.createdAt<n[yc("0x6e")][yc("0xa5")][yc("0xf0")](0)[yc("0x53")]||i[yc("0x34")]&&n[yc("0x53")]<i.commentThread.comments[yc("0xf0")](0)[yc("0x53")])))return!1;var n,i;const r=bc(t[0][yc("0x6f")],yc("0xd8")),o=bc(e[0][yc("0x6f")],yc("0xd8"));return!!ji(r,o)&&(!!t[yc("0xee")]((t=>e[yc("0x14e")]((e=>t[yc("0x164")]()[yc("0xb0")](e.getFirstRange())))))&&e.every((e=>t.some((t=>e[yc("0x164")]()[yc("0xb0")](t.getFirstRange()))))))}}[yc("0x71")](t){const e=Array.from(t),n=this[yc("0x77")]({skipNotAttached:!0}),i=n[yc("0xf1")]((e=>!t[yc("0x15b")](e))),r=new Map(e[yc("0x120")]((t=>[t,this[yc("0x86")].getSuggestionCallback(t[yc("0xbf")],t[yc("0x31")],yc("0x101"))]))),o=new Map(n.map((t=>[t,t[yc("0x16a")]()])));for(let t=0;t<e[yc("0x3a")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x3a")];t++)if(s(this,e[t],i,0))return!0;return!1;function s(t,e,n,i){for(let s=i;s<n[yc("0x3a")];s++){const i=n[s];if(i[yc("0xbf")]!==e[yc("0xbf")]||i[yc("0x9e")].id!==e[yc("0x9e")].id||i[yc("0x31")]!==e[yc("0x31")])continue;if(!Oc(e,i,[yc("0xd8")]))continue;if("attribute"==e[yc("0xbf")]&&e[yc("0x165")][yc("0x91")]!=i[yc("0x165")][yc("0x91")])continue;if(yc("0xf")==e.type&&t[yc("0x11b")](e[yc("0x165")][yc("0x93")]))continue;if(yc("0x46")==e.type){const n=t.editor[yc("0x5d")],i=e[yc("0x48")]();if(i&&(n[yc("0x58")][yc("0x130")](i)||n[yc("0x58")][yc("0x3c")](i)))continue}const x=r[yc("0xf0")](e),a=o[yc("0xf0")](e),c=o[yc("0xf0")](i),l=e[yc("0x6e")]&&e.commentThread[yc("0x3a")],u=i[yc("0x6e")]&&i[yc("0x6e")][yc("0x3a")];if(!l&&x(c,a))return t._joinSuggestions(i,e),o[yc("0x20")](e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,i),o[yc("0x20")](i),!0}return!1}}[yc("0x9d")](t,e){if(t.isMultiRange)for(const n of e.getRanges())t[yc("0x1")](n);else{const n=e[yc("0x164")]()[yc("0x177")];this[yc("0x146")](t,this[yc("0x115")][yc("0x127")](t[yc("0x164")]()[yc("0xb7")],n))}e[yc("0x8c")]()}_getMarkerAnnouncementText(t,e){const n=t[yc("0x108")](yc("0x1a"))||t[yc("0x108")]("attribute")?yc("0xa9"):t[yc("0x0")]();return Ji(this[yc("0x129")][yc("0xc8")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[yc("0xbc")](){const t=this[yc("0x129")];(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const i=[];for(const t of e){const{group:e,type:n}=this[yc("0x99")](t.name);if(yc("0x13a")===e){i.push(this[yc("0x1b")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[yc("0x99")](t[yc("0x44")]);if(yc("0x13a")===e){i[yc("0xb5")](this[yc("0x1b")](n,"ENTER"));break}}i[yc("0x3a")]&&t.ui[yc("0xc9")][yc("0x2f")](yc("0xc1"),i[yc("0x101")](" "))}))}[yc("0x3f")](t){if(this[yc("0x4b")])return!1;const e=this[yc("0x129")],n=e[yc("0x5d")][yc("0xd4")].differ[yc("0x72")]();if(0==n[yc("0x3a")])return!1;const i=[],r=n[yc("0xf1")]((t=>yc("0xf")==t.type)),o=n[yc("0xf1")]((t=>yc("0x144")==t[yc("0xbf")]&&yc("0x128")!=t[yc("0x44")])),s=n[yc("0xf1")]((t=>yc("0xc5")==t[yc("0xbf")]&&yc("0x128")!=t[yc("0x44")]));for(const t of r)i[yc("0xb5")]({key:t[yc("0x5f")],newValue:t[yc("0x150")],oldValue:t[yc("0x123")],range:Nc(t[yc("0x12e")],e[yc("0x5d")])});for(const t of o){const n=s.find((e=>e.position.isEqual(t[yc("0x11c")])));n&&i.push({key:"$elementName",newValue:t[yc("0x44")],oldValue:n[yc("0x44")],range:e[yc("0x5d")][yc("0x75")](t.position.nodeAfter)})}return 0!=i[yc("0x3a")]&&this[yc("0x104")](t,i)}_processAttributeSuggestions(t){let e=!1;const n=this.editor[yc("0x5d")].document[yc("0x5e")][yc("0x78")]().filter((t=>t[yc("0x165")][yc("0x22")]&&t[yc("0x44")][yc("0x108")](yc("0x68"))));for(const i of n){const{subType:n,id:r}=this[yc("0x99")](i[yc("0x44")]),o=n.split("|")[0];for(const n of this[yc("0x77")]({skipNotAttached:!0}))n.id!=r&&yc("0xf")==n.type&&n[yc("0x165")]&&n.data[yc("0x93")]==o&&n.getFirstRange()[yc("0x6a")](i[yc("0x165")][yc("0x22")])&&(this[yc("0x28")](n,i[yc("0x165")][yc("0x22")],t),e=!0)}return e}[yc("0x176")](t){this[yc("0x129")],this[yc("0x4b")]=!0,t()}[yc("0x143")](t){const e=this[yc("0x11b")](t),n=this[yc("0x47")].has(t);return e||n}_reduceExistingSuggestions(t,e){if(0==e[yc("0x3a")])return!1;let n=!1;for(const i of e){const e=this[yc("0x135")](i.range,yc("0xf"))[yc("0xf1")]((t=>!t[yc("0x9b")][yc("0x24")]))[yc("0x120")]((t=>t[yc("0x13a")])),r=(0,o.hashObject)({newValue:i.newValue});e[yc("0xf1")]((t=>{const[e,n]=t[yc("0x31")][yc("0x126")]("|");return e==i.key&&n!=r}))[yc("0x138")]((e=>{this[yc("0x28")](e,i[yc("0x12e")],t),n=!0}))}return n}[yc("0x28")](t,e,n){const i=t[yc("0x164")]()[yc("0x17")](e);0!==i.length?1!==i[yc("0x3a")]?this[yc("0xc")](t,e[yc("0xb7")],e[yc("0x177")]):this[yc("0x146")](t,i[0]):n.removeMarker(t.getFirstMarker())}}class kc{constructor(t){this[yc("0x13b")]=t,this._model=t[yc("0x5d")],this[yc("0x23")]=new Map,this._defaultCallbacks=new Map,this[yc("0x38")]()}[yc("0xec")](t,e,n,i,r,o){return new Yi(this[yc("0x115")],{type:t,subType:e,id:n,author:i,creator:i,attributes:r,onAttributesChange:o,onAccept:(...n)=>this[yc("0x114")](t,e,"accept")(...n),onDiscard:(...n)=>this[yc("0x114")](t,e,yc("0x65"))(...n)})}registerCustomCallback(t,e,n,i){const r=t+":"+e+":"+n;this[yc("0x23")][yc("0x64")](r,i)}[yc("0x114")](t,e,n){const i=t+":"+e+":"+n;return this[yc("0x23")][yc("0xf0")](i)||this[yc("0xae")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start[yc("0x90")](e[yc("0xb7")])?1:-1)),this[yc("0x115")][yc("0x5a")]((e=>{for(const n of t){let t;t=n[yc("0x177")][yc("0xf9")]&&n[yc("0x177")][yc("0x83")]==n.start[yc("0x80")]?e.createSelection(n[yc("0xb7")][yc("0x80")],"on"):e.createSelection(n),this[yc("0x115")][yc("0x2e")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[yc("0x5a")]((n=>{const{commandName:i,commandParams:r=[]}=e,o=t[yc("0x120")]((t=>(Rc(t)&&(t=this[yc("0x115")][yc("0x127")](t.end)),t))).filter((t=>yc("0xed")!==t[yc("0x8e")][yc("0xde")]));if(o[yc("0x3a")]<1)return;const x=Array.from(this[yc("0x115")][yc("0xd4")].selection[yc("0x16a")]())[yc("0x120")]((t=>s.LiveRange.fromRange(t)));n[yc("0x5")](o);for(const t of this[yc("0x13b")][yc("0x18")][yc("0x18")]())t[yc("0xe7")]();r[yc("0xb5")]({forceDefaultExecution:!0}),this[yc("0x13b")].execute(i,...r);const a=x[yc("0xf1")]((t=>yc("0xed")!=t[yc("0x8e")][yc("0xde")]));a[yc("0x3a")]>0&&n[yc("0x5")](a);for(const t of x)t[yc("0x15a")]()}))},i=(t,e)=>1==t.length&&1==e[yc("0x3a")]&&t[0][yc("0x177")][yc("0xb0")](e[0][yc("0xb7")]),r=(t,e,n,i)=>wc(t,e,n,i,this._model)?[t,e]:wc(e,t,i,n,this[yc("0x115")])?[e,t]:null;this[yc("0xae")].set("insertion:accept",t),this[yc("0xae")][yc("0x64")](yc("0xb"),e),this[yc("0xae")].set(yc("0xcb"),i),this[yc("0xae")][yc("0x64")]("insertion:chain",r),this._defaultCallbacks.set("deletion:accept",e),this[yc("0xae")][yc("0x64")](yc("0x140"),t),this[yc("0xae")][yc("0x64")](yc("0x14f"),i),this._defaultCallbacks[yc("0x64")](yc("0x171"),r),this._defaultCallbacks[yc("0x64")](yc("0xce"),n),this[yc("0xae")][yc("0x64")](yc("0x4"),t),this[yc("0xae")][yc("0x64")]("formatInline:join",i),this._defaultCallbacks[yc("0x64")](yc("0x153"),t),this._defaultCallbacks[yc("0x64")](yc("0x109"),n),this[yc("0xae")][yc("0x64")](yc("0xaf"),t),this[yc("0xae")][yc("0x64")](yc("0x10f"),i),this._defaultCallbacks[yc("0x64")]("formatBlock:chain",t),this[yc("0xae")][yc("0x64")](yc("0x102"),t),this[yc("0xae")][yc("0x64")](yc("0x2a"),((t,e)=>{if(!e)return;const n=this._editor.plugins.get(Ac);this[yc("0x115")][yc("0x5a")]((i=>{if(yc("0x82")==e[yc("0x93")])for(const n of t){const t=n[yc("0xb7")].nodeAfter,r=e[yc("0x91")];i[yc("0x125")](t,r)}else if(n[yc("0x11b")](e.key))for(const n of t)void 0!==e.oldValue?i[yc("0xb2")](e.key,e[yc("0x91")],n[yc("0xb7")][yc("0x80")]):i[yc("0xcd")](e[yc("0x93")],n[yc("0xb7")][yc("0x80")]);else for(const n of t)e[yc("0x91")]?i.setAttribute(e[yc("0x93")],e.oldValue,n):i[yc("0xcd")](e[yc("0x93")],n)}))})),this[yc("0xae")][yc("0x64")](yc("0x51"),i)}}function Ic(t,e,n){for(const i of e.parent[yc("0x5b")]({includeSelf:!0,parentFirst:!0})){if(i[yc("0x8e")]==i)return!1;if(!n[yc("0x97")](i))return!1;if(t[yc("0x130")](i)||t[yc("0x3c")](i))return!0}return!1}function Rc(t){return t.end.parent==t[yc("0xb7")].nodeAfter&&t.end[yc("0x59")]}function Sc(t,e,n,i){const r=t=>!t[yc("0xff")].is(yc("0x9a"))&&!i[yc("0x130")](t[yc("0xff")]),o=t[yc("0xb7")][yc("0x2c")](r),s=t[yc("0x177")][yc("0x2c")](r,{direction:yc("0xd3")});return!(t[yc("0xb7")][yc("0xb0")](o)&&t[yc("0x177")][yc("0xb0")](s)||(o.isBefore(s)?n[yc("0x119")](e,{range:n[yc("0x127")](o,s)}):n.removeMarker(e),0))}function vc(t){return(0,o.hashObject)(t)}function Lc(t){const e=t[yc("0xb7")].nodeAfter;return e&&e.is(yc("0x175"))}function Nc(t,e){return null==t[yc("0x177")][yc("0xe2")]&&t[yc("0x177")][yc("0x83")]==t[yc("0xb7")][yc("0x80")]?Mc(t[yc("0xb7")][yc("0x80")],e):t}function Mc(t,e){const n=e.schema[yc("0x130")](t)||e[yc("0x58")][yc("0x9")](t);return e[yc("0x127")](e[yc("0x3b")](t,"before"),n?e.createPositionAfter(t):e.createPositionAt(t,"end"))}function wc(t,e,n,i,r){if(!Oc(t,e))return!1;if(n[yc("0x177")][yc("0xb0")](i[yc("0xb7")]))return!0;if(t[yc("0xbf")]!=e.type)return!1;if(!n.end.isTouching(i[yc("0xb7")]))return!1;const o=r[yc("0x127")](n[yc("0x177")],i[yc("0xb7")])[yc("0x66")]();for(const t of o)if([yc("0x14d"),yc("0xe0")].includes(t[yc("0xbf")])&&r.schema.isLimit(t[yc("0xff")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0xc3")]||!e[yc("0xc3")])&&ji(bc(t[yc("0x6f")],n),bc(e.attributes,n))}function Fc(t,e){const n=Dc(t.attributes),i=Dc(e);if(!t[yc("0xc3")])return!1;for(const t of Object[yc("0x163")](i))if(!ji(n[t],i[t]))return!1;return!0}function Dc(t){const e=Object[yc("0xe9")]({},t);return delete e[yc("0x10a")],delete e[yc("0x10e")],e}const Bc=["canAccept","commands","view","PENDING_ACTION_SUGGESTION","execute","bind","_discardCommand","isDirty","PendingActions","canEditAt","canDiscard","listenTo","locale","destroy","_pendingAction","get","_acceptCommand","acceptSuggestion","remove","_editor","getRanges","commentThreadController","plugins","isEnabled","unbind","model","discardSuggestion","_removePendingAction","change:isDirty"];var Pc,Uc;Pc=Bc,Uc=437,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,i){super(),this[jc("0x17")]=e,this[jc("0x0")]=n,this[jc("0x13")]=i,this[jc("0x11")]=t,this._acceptCommand=t[jc("0x1c")][jc("0xd")](jc("0xf")),this._discardCommand=t[jc("0x1c")][jc("0xd")](jc("0x18")),this[jc("0x0")][jc("0x3")]("isEnabled").to(this[jc("0xe")],this._discardCommand,((t,e)=>t||e)),this[jc("0x0")][jc("0x3")](jc("0x1b")).to(this[jc("0xe")],jc("0x15"),(t=>t&&this[jc("0x11")][jc("0x17")][jc("0x7")](e[jc("0x12")]()))),this[jc("0x0")].bind("canDiscard").to(this[jc("0x4")],"isEnabled",(t=>t&&this[jc("0x11")][jc("0x17")][jc("0x7")](e[jc("0x12")]()))),this[jc("0xc")]=null,n[jc("0x5")]&&this._setPendingAction(),this[jc("0x9")](n,"acceptSuggestion",(()=>this[jc("0xf")]())),this[jc("0x9")](n,jc("0x18"),(()=>this[jc("0x18")]())),this.listenTo(n,jc("0x1a"),(()=>{n[jc("0x5")]?this._setPendingAction():this._removePendingAction()}))}[jc("0xf")](){this[jc("0xe")].execute(this.model.id)}discardSuggestion(){this._discardCommand[jc("0x2")](this[jc("0x17")].id)}[jc("0xb")](){this[jc("0x0")][jc("0x16")](jc("0x15")),this.view[jc("0x16")](jc("0x1b")),this.view[jc("0x16")](jc("0x8")),this.stopListening(),this[jc("0x13")][jc("0xb")](),this[jc("0xc")]&&this[jc("0x19")]()}_setPendingAction(){const t=Ji(this[jc("0x11")][jc("0xa")],jc("0x1"));this[jc("0xc")]=this._editor[jc("0x14")][jc("0xd")](jc("0x6")).add(t)}[jc("0x19")](){null!==this[jc("0xc")]&&this[jc("0x11")][jc("0x14")][jc("0xd")](jc("0x6"))[jc("0x10")](this[jc("0xc")]),this._pendingAction=null}}const Vc=["commentInputView","isActive","isEnabled","_localUser","focus","delegate","removeComment","setData","isReadOnly","_config","updateComment","length","canAccept","cancel","showInput","_createCommentThreadInputView","assign","bind","hasDirtyComment","commentThread","CommentView","_model","set","locale","commentsListView","destroy","editorConfig","element","commentThreadInputView","canDiscard","disabledSubmit","addComment","authoredAt","value","isDirty","_createCommentViews","descriptionParts"];var Hc,zc;Hc=Vc,zc=422,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends r.View{constructor(t,e,n,i){super(t),this[Wc("0x9")]=null,this[Wc("0xd")]=null,this[Wc("0x7")]("isActive",!1),this[Wc("0x7")](Wc("0x11"),e[Wc("0x11")]),this[Wc("0x2")](Wc("0x11")).to(e),this.set(Wc("0x15"),[]),this[Wc("0x7")](Wc("0x13"),!1),this[Wc("0x7")](Wc("0x18"),!1),this.set(Wc("0x22"),!1),this.set(Wc("0xe"),!1),this[Wc("0x6")]=e,this[Wc("0x19")]=n,this[Wc("0x1f")]=i,i.disableComments?this[Wc("0x7")](Wc("0x21"),1):this[Wc("0x14")]()}[Wc("0x1a")](){this[Wc("0xc")][Wc("0x1a")]()}[Wc("0xa")](){this[Wc("0x9")]&&this[Wc("0x9")].destroy(),this[Wc("0xd")]&&this[Wc("0xd")][Wc("0xa")](),super[Wc("0xa")]()}[Wc("0x14")](){const{CommentsListView:t}=this[Wc("0x1f")];this[Wc("0x9")]=new t(this[Wc("0x8")],this._model[Wc("0x4")],Object[Wc("0x1")]({CommentView:this._config[Wc("0x5")]},this[Wc("0x1f")])),this[Wc("0x9")][Wc("0x1b")]("removeComment").to(this),this.commentsListView.delegate(Wc("0x20")).to(this),this[Wc("0x9")][Wc("0x2")](Wc("0x17")).to(this),this[Wc("0x7")](Wc("0x21"),this[Wc("0x9")].length+1),this[Wc("0x2")](Wc("0x21")).to(this[Wc("0x9")],Wc("0x21"),(t=>t+1)),this[Wc("0xd")]=this[Wc("0x0")](),this.on(Wc("0x1c"),(()=>this.focus())),this.bind(Wc("0x13")).to(this[Wc("0x9")],Wc("0x3"),this[Wc("0xd")][Wc("0x16")],"value",((t,e)=>t||!!e))}[Wc("0x0")](){const{CommentThreadInputView:t}=this[Wc("0x1f")],e=new t(this[Wc("0x8")],this[Wc("0x19")],this._config[Wc("0xb")]),n=e[Wc("0x16")];return e.bind(Wc("0x24")).to(this,Wc("0x17"),this[Wc("0x6")][Wc("0x4")],"isReadOnly",n,Wc("0x12"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this.fire(Wc("0x10"),e),n.editor[Wc("0x1d")]("")})),n.on(Wc("0x23"),(()=>this.focus())),n[Wc("0x2")](Wc("0xf")).to(this._model.commentThread,Wc("0x1e")),e}}const qc=["ck-comment__external","extendTemplate","getTemplate","isActive","name","importWord","<p>","delegate","ck-suggestion__info","source","time","disableComments",'<span class="ck-suggestion-color" style="background-color: ',"innerText","cancel","ck-suggestion","getUserViewNotificationText","setTemplate","split","acceptButton",'"></span>',"editorReady","authoredAt","discardSuggestion","author","_createButton","ck-suggestion--accept","acceptSuggestion","ck-suggestion--disabled-comments","description","type","Discard suggestion","render","isEnabled","commentsListView","EXTERNAL_IMPORT_WORD_SUGGESTION","</p>","canAccept","innerHTML","isExternal","ck-suggestion-wrapper","bind","_config","</span>","ck-annotation__info-name","@external","value","execute","EXTERNAL_IMPORT_WORD_AVATAR","commentThread","canDiscard","ck-suggestion-wrapper--active","editorDestroyed","_model","join","div","ck-suggestion__main","map","check","change:description","querySelector","color","creator","userView","locale","attributes","ck-annotation","getExternalSuggestionNote","ck-annotation__actions","createElement","bindTemplate","title","discardButton","EXTERNAL_AVATAR","ck-suggestion__actions","ck-suggestion--discard","span","ck-suggestion__info-name","_descriptionElement","descriptionParts",".ck-annotation__content-wrapper","commentThreadInputView","formatDateTime","set","push","ck-suggestion__user"];var Xc,$c;Xc=qc,$c=276,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,i,r){super(e,n,i,r),this[Zc("0x41")]("type",""),this[Zc("0x17")](Zc("0xc")).to(this,Zc("0x3d"),(t=>t&&t[0]?t[0][Zc("0xc")]:"")),this[Zc("0x17")](Zc("0xb")).to(this,Zc("0x3d"),this,Zc("0x47"),((t,e)=>{let n="";for(const e of t)n+=Zc("0x4a")+Jc(e.content,e[Zc("0x2b")])+Zc("0x12");return e?n:(0,o.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Zc("0x1")]=this[Zc("0x7")](Ji(e,"Accept suggestion"),t.icons[Zc("0x28")],Zc("0x8"),Zc("0x9"),"sw"),this.acceptButton[Zc("0x17")]("isEnabled").to(this,Zc("0x13")),this.discardButton=this._createButton(Ji(e,Zc("0xd")),t.icons[Zc("0x52")],Zc("0x39"),Zc("0x5"),"sw"),this[Zc("0x36")].bind(Zc("0xf")).to(this,Zc("0x20")),this[Zc("0x2d")]=new o.UserView(e,this._model[Zc("0x6")],this[Zc("0x54")]()),this.userView[Zc("0x45")]({attributes:{class:[Zc("0x43"),"ck-annotation__user"]}}),this[Zc("0x55")](this.getTemplate())}[Zc("0x46")](){const t=this[Zc("0x34")],e=[{tag:Zc("0x25"),attributes:{class:[Zc("0x4c"),"ck-annotation__info"]},children:[{tag:Zc("0x3a"),children:[{text:this[Zc("0x2d")][Zc("0x48")]}],attributes:{class:[Zc("0x3b"),Zc("0x1a")]}},{tag:Zc("0x4e"),attributes:{datetime:t.to(Zc("0x4")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[Zc("0x18")][Zc("0x40")](t)))}]}]},{tag:Zc("0x25"),attributes:{class:[Zc("0x38"),Zc("0x32")]},children:[this.acceptButton,this[Zc("0x36")]]},{tag:Zc("0x25"),attributes:{class:["ck-annotation__content-wrapper"]}}];this._model.isExternal&&e[Zc("0x42")]({tag:Zc("0x25"),attributes:{class:[Zc("0x44")]},children:[{text:this[Zc("0x31")]()}]});const n={tag:"div",attributes:{class:[Zc("0x16"),t.if(Zc("0x47"),Zc("0x21")),t.to(Zc("0xc"),(t=>"ck-suggestion-"+t)),this._config[Zc("0x4f")]&&Zc("0xa")],"data-suggestion-id":this._model.id,"data-thread-id":this._model[Zc("0x1f")].id,"data-author-id":this[Zc("0x23")][Zc("0x6")].id,tabindex:-1},children:[{tag:Zc("0x25"),attributes:{class:[Zc("0x53"),Zc("0x30")]},children:[this[Zc("0x2d")],{tag:Zc("0x25"),attributes:{class:[Zc("0x26"),"ck-annotation__main"]},children:e}]}]};return this[Zc("0x10")]&&this.commentThreadInputView&&(n.children[Zc("0x42")](this[Zc("0x10")],this.commentThreadInputView),this[Zc("0x10")].delegate(Zc("0x3")).to(this),this[Zc("0x10")][Zc("0x4b")]("editorDestroyed").to(this),this[Zc("0x3f")][Zc("0x4b")](Zc("0x3")).to(this),this[Zc("0x3f")][Zc("0x4b")](Zc("0x22")).to(this)),n}render(){super[Zc("0xe")](),this[Zc("0x3c")]=this.element[Zc("0x2a")](Zc("0x3e")),this[Zc("0x3c")].innerHTML=this[Zc("0xb")],this.on(Zc("0x29"),((t,e,n)=>{this[Zc("0x3c")].innerHTML=n}))}[Zc("0x7")](t,e,n,i,o){const s=new r.ButtonView(this[Zc("0x2e")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s.extendTemplate({attributes:{class:n}}),s.on(Zc("0x1d"),(()=>{this.fire(i,this._model.id)})),s}[Zc("0x31")](){return"importWord"===this[Zc("0x23")].attributes[Zc("0x1b")][Zc("0x4d")]?Ji(this[Zc("0x2e")],Zc("0x11")):Ji(this.locale,"EXTERNAL_SUGGESTION")}[Zc("0x54")](){return this[Zc("0x23")][Zc("0x15")]?Zc("0x49")===this[Zc("0x23")][Zc("0x2f")][Zc("0x1b")].source?Ji(this[Zc("0x2e")],Zc("0x1e"),this[Zc("0x23")][Zc("0x2c")][Zc("0x48")]):Ji(this[Zc("0x2e")],Zc("0x37"),this[Zc("0x23")][Zc("0x2c")][Zc("0x48")]):null}}function Jc(t,e){let n="";return n+=t[Zc("0x0")]("*")[Zc("0x27")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Qc(t)+Zc("0x19"):Qc(t)))[Zc("0x24")](""),e&&(n+=Zc("0x50")+e[Zc("0x1c")]+'" title="'+e[Zc("0x35")]+Zc("0x2")),n}function Qc(t){const e=document[Zc("0x33")](Zc("0x3a"));return e[Zc("0x51")]=t,e[Zc("0x14")]}const tl=["reduce","filter","EditorAnnotations","suggestionChanged","switchbutton","define","keys","trackChanges.disableComments","SuggestionThreadView","discardAllSuggestions","innerView","focus","createAnnotation","values","getDescriptions","value","acceptButton","locale","createCommentThreadController","addComment","Accept all selected suggestions","buttonView","stopListening","getSuggestion","change:previous","toMany","isDirty","requires","isInContent","unbind","separator","trackChanges.SuggestionThreadView","commands","_handleControllerBuffer","Accept all suggestions","addSourceCollector","set","has","_updateController","previous","TrackChangesEditing","editing","_annotationViews","model","getAllAdjacentSuggestions","push","from","_disableComments","getFirstRange","listenTo","execute","_handleSuggestionControllerDelayed","head","_bindAnnotationToEditors","componentFactory","Discard all selected suggestions","editor","registerAnnotation","_destroyController","some","isOn","isEnabled","_createUIButton","actionView","activeAnnotations","get","refreshSelectedViews","destroy","_viewToController","delete","plugins","comments.maxCommentsWhenCollapsed","_refreshActiveMarkers","acceptAllSuggestions","CommentsRepository","Discard all suggestions","isMultiRange","type","Annotations","_descriptionFactory","hasSuggestion","_unbindEditors","change:activeAnnotations","acceptSelectedSuggestions","_initializeController","length","remove","arrowView","CommentView","button","commandName","_suggestionToController","trackChanges","comments","add","suggestionUnloaded","view","getJoined","bind","config","suggestionLoaded","init","getRanges","mainView","commentThread","CommentsUI","getMarkers","map"];var el,nl;el=tl,nl=189,function(t){for(;--t;)el.push(el.shift())}(++nl);const il=function(t,e){return tl[t-=0]};class rl extends t.Plugin{static get[il("0x36")](){return[Ac,o.Users,"CommentsRepository",il("0x69"),il("0x1d")]}static get pluginName(){return"TrackChangesUI"}constructor(t){super(t),this[il("0xa")]=new Map,this[il("0x5f")]=new Map,this[il("0x45")]=new Map,this[il("0x3c")]=new Map;const e=this[il("0x53")][il("0x12")];e[il("0x20")](il("0x3a"),Yc),e[il("0x20")]("trackChanges.disableComments",!1),this._disableComments=e[il("0x5c")](il("0x22"))}[il("0x4e")](t,e){0===this[il("0x3c")].size&&setTimeout((()=>{for(const[t,e]of this[il("0x3c")]){const n=this._suggestionToController.has(t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this[il("0x3c")].clear(),this[il("0x53")][il("0x61")][il("0x5c")](il("0x1d"))[il("0x5d")](),this[il("0x63")]()}),10),this[il("0x3c")][il("0x3f")](t,e)}[il("0x14")](){const t=this.editor,e=t[il("0x61")][il("0x5c")](il("0x43")),n=t[il("0x61")][il("0x5c")](il("0x69")),i=t[il("0x61")].get("EditorAnnotations"),r=t[il("0x61")].get(il("0x65"));t.ui[il("0x51")][il("0xd")](il("0xb"),(t=>this[il("0x59")](t))),i[il("0x3e")]((()=>{const t=[];for(const[e,n]of Array.from(this[il("0xa")])){const i=e[il("0x47")](),r=[];for(const t of i){if(!t[il("0x37")])continue;if(t[il("0x67")]){r[il("0x48")](...t[il("0x15")]());continue}const e=t[il("0x4b")]();if(r.length>0){const t=r[0][il("0x10")](e);if(t){r[0]=t;continue}}r[il("0x48")](e)}t[il("0x48")]([n.view,r])}return t})),this[il("0x4c")](e,il("0x13"),((t,e)=>{this[il("0x4c")](e,il("0x33"),((t,n,i,r)=>{e.isInContent&&(null==i?(this[il("0x41")](r[il("0x4f")]),this._handleSuggestionControllerDelayed(e,!1)):(this[il("0x41")](i[il("0x4f")]),null==r&&this._handleSuggestionControllerDelayed(e,!0)))})),null!==e[il("0x42")]?this._updateController(e[il("0x4f")]):this[il("0x4e")](e,!1)})),this.listenTo(e,il("0xe"),((t,e,n)=>{this[il("0x31")](e,"change:previous"),this._handleControllerBuffer[il("0x60")](e),this[il("0xa")][il("0x40")](e)&&this[il("0x55")](e),n&&this[il("0x41")](n[il("0x4f")])})),this[il("0x4c")](e,il("0x1e"),((t,e)=>{this._updateController(e)})),this[il("0x4c")](n,il("0x1"),(()=>{this._refreshActiveMarkers()})),this[il("0x4c")](r,il("0x2e"),((t,{threadId:n,isFromAdapter:i})=>{if(i||!e[il("0x6b")](n))return;const r=e[il("0x32")](n);this[il("0xa")][il("0x5c")](r).view.focus()}),{priority:"lowest"})}[il("0x63")](){const t=this.editor[il("0x61")][il("0x5c")]("Annotations"),e=this[il("0x53")][il("0x61")][il("0x5c")](il("0x43")),n=Array[il("0x49")](t[il("0x5b")],(t=>t[il("0x25")]))[il("0x1c")]((t=>this[il("0x5f")].has(t))),i=[];for(const t of n){const e=this[il("0x5f")].get(t)[il("0x46")][il("0x47")]();i[il("0x48")](...e[il("0x1b")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e.activeMarkers=i}[il("0x59")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),i=this.editor[il("0x3b")][il("0x5c")](il("0xb")),o=Ji(t,"Track changes");n[il("0x30")].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.buttonView[il("0x11")](il("0x57")).to(i,il("0x2a")),n[il("0x30")].on("execute",(()=>{i[il("0x4d")](),this[il("0x53")].editing.view[il("0x26")]()}));const s=new e.Collection,x=[{type:il("0x1f"),model:{withText:!0,label:o,commandName:il("0xb")}},{type:"separator"},{type:"button",model:{withText:!0,label:Ji(t,il("0x3d")),commandName:il("0x64")}},{type:il("0x8"),model:{withText:!0,label:Ji(t,il("0x2f")),commandName:il("0x2")}},{type:il("0x8"),model:{withText:!0,label:Ji(t,il("0x66")),commandName:il("0x24")}},{type:il("0x8"),model:{withText:!0,label:Ji(t,il("0x52")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:il("0x39")};if(t[il("0x46")]){const n=new r.ViewModel(t[il("0x46")]),i=this[il("0x53")].commands[il("0x5c")](n[il("0x9")]);n[il("0x11")](il("0x57"),"isEnabled").to(i,"value",il("0x58")),e={type:t[il("0x68")],model:n}}s[il("0xd")](e)}(0,r.addListToDropdown)(n,s);const a=x.filter((t=>null!=t[il("0x46")]))[il("0x1a")]((t=>this[il("0x53")][il("0x3b")][il("0x5c")](t[il("0x46")].commandName))),c=n[il("0x30")];return c[il("0x5a")][il("0x38")]("isEnabled"),c.arrowView[il("0x38")]("isEnabled"),c[il("0x5a")][il("0x11")](il("0x58")).to(i,il("0x58")),c[il("0x6")][il("0x11")]("isEnabled")[il("0x34")](a,"isEnabled",((...t)=>t[il("0x56")]((t=>t)))),n.on(il("0x4d"),(t=>{this[il("0x53")][il("0x4d")](t.source.commandName),this[il("0x53")][il("0x44")][il("0xf")][il("0x26")]()})),n}[il("0x3")](t){const e=this[il("0x53")],n=e[il("0x12")],i=e[il("0x61")][il("0x5c")]("Annotations"),r=e.plugins.get(il("0x65")),s=e[il("0x61")][il("0x5c")](il("0x1d")),x=e[il("0x61")][il("0x5c")](o.Users).me,a=n[il("0x5c")](il("0xb"))[il("0x23")],{CommentsListView:c,CommentThreadInputView:l}=e[il("0x61")][il("0x5c")](il("0x18"));let u,d;this._annotationViews[il("0x40")](t.id)?(d=this[il("0x45")][il("0x5c")](t.id),u=d[il("0x16")]):(u=new a(e.locale,t,x,{disableComments:this[il("0x4a")],editorConfig:n[il("0x5c")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[il("0x5c")](il("0x62")),maxThreadTotalWeight:n[il("0x5c")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[il("0x5c")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,o.getDateTimeFormatter)(n[il("0x5c")](il("0x2c"))),CommentView:n[il("0x5c")](il("0xc"))[il("0x7")],CommentsListView:c,CommentThreadInputView:l}),u[il("0x2b")].on("execute",(()=>{e.editing.view[il("0x26")]()})),u.discardButton.on(il("0x4d"),(()=>{e[il("0x44")][il("0xf")][il("0x26")]()})),d=i.createAnnotationView(this.editor[il("0x2c")],u),d.bind("isDirty").to(u,il("0x35")),d.bind(il("0x4")).to(u),d[il("0x11")](il("0x68")).to(u,il("0x68"),(t=>"suggestion-"+t)),this[il("0x45")].set(t.id,d));const g=r[il("0x2d")](t[il("0x17")],u),f=new Gc(e,t,u,g),h=t[il("0x47")]()[il("0x1c")]((t=>t[il("0x37")]));u.descriptionParts=e[il("0x61")].get("TrackChangesEditing")[il("0x6a")].getDescriptions(h),this[il("0xa")][il("0x3f")](t,f),this._viewToController[il("0x3f")](u,f);const m=i[il("0x27")]({view:d,target:()=>{const n=[],i=t.getAllAdjacentSuggestions()[il("0x1c")]((t=>t[il("0x37")]));for(const t of i)n[il("0x48")](...t[il("0x19")]());return(0,o.getAllMarkersDomElementsSorted)(e[il("0x44")],n)},type:()=>"suggestion-"+f[il("0xf")].type});r[il("0x50")](u,m),i.add(m),s[il("0x54")](m)}[il("0x55")](t){const e=this[il("0x53")][il("0x61")][il("0x5c")](il("0x65")),n=this[il("0x53")].plugins[il("0x5c")]("Annotations"),i=this[il("0xa")][il("0x5c")](t),r=i[il("0xf")],o=n.getByInnerView(r);e[il("0x0")](r),o&&n[il("0x5")](o),this[il("0xa")][il("0x60")](t),this[il("0x5f")].delete(r),i[il("0x5e")]()}[il("0x41")](t){if(!t[il("0x37")]||!this._suggestionToController[il("0x40")](t))return;const e=this.editor[il("0x61")].get(il("0x43")),n=this[il("0xa")][il("0x5c")](t),i=t[il("0x47")]();n.view.descriptionParts=e[il("0x6a")][il("0x29")](i)}[il("0x5e")](){for(const t of this[il("0xa")][il("0x21")]())this[il("0x55")](t);for(const t of this[il("0x45")][il("0x28")]())t[il("0x16")][il("0x5e")]();super[il("0x5e")]()}}var ol,sl,xl=["editor","plugins","adapter","pluginName","getSuggestions","get","TrackChanges","addSuggestion","requires","getSuggestion","Comments"];ol=xl,sl=447,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("0x1")](){return[Ac,rl,al("0x3")]}static get[al("0x7")](){return al("0xa")}set adapter(t){this[al("0x4")][al("0x5")].get(Ac)[al("0x6")]=t}get[al("0x6")](){return this.editor[al("0x5")][al("0x9")](Ac)[al("0x6")]}[al("0x0")](t){return this[al("0x4")][al("0x5")][al("0x9")](Ac).addSuggestionData(t)}[al("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x4")][al("0x5")].get(Ac)[al("0x8")]({skipNotAttached:t,toJSON:e})}[al("0x2")](t){return this[al("0x4")].plugins[al("0x9")](Ac)[al("0x2")](t)}}const ll=["editorCreator","config","create","function","document","reduce","destroy","model","createDocumentFragment","trackChangesData.editorCreator","appendChild","requires","execute","addUser","trackChangesData","name","constructor","Pagination","createElement","addSuggestionData","data","set","map","_adapter","init","Users","track-changes-data-invalid-editor-creator","push","editor","CommentsRepository","div","acceptAllSuggestions","TrackChangesEditing","TrackChangesData","define","rootsAttributes","users","result","getSuggestions","pluginName","get","plugins"];var ul,dl;ul=ll,dl=178,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x7")];class hl extends t.Plugin{static get[gl("0x1")](){return[Ac]}static get[gl("0x1d")](){return gl("0x17")}[gl("0xe")](){const t=this.editor;if(t[gl("0x21")][gl("0x18")](gl("0x29"),(e=>{const n=t[gl("0x27")][gl("0x24")].getRootNames()[gl("0x25")](((t,e)=>(t[e]="",t)),{});return t[gl("0x6")][gl("0x22")](n,e)})),gl("0x23")!=typeof t[gl("0x21")][gl("0x1e")](gl("0x4"))[gl("0x20")])throw new e.CKEditorError(gl("0x10"))}getDataWithAcceptedSuggestions(t){return bl(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return bl(this[gl("0x12")],!1,t)}}class ml extends t.Plugin{static get[gl("0x1d")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[gl("0x1b")]="end"}[gl("0xe")](){this[gl("0x12")][gl("0x1f")][gl("0x1e")](gl("0x13"))[gl("0xd")]={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("0x12")][gl("0x1f")][gl("0x1e")]("TrackChangesEditing")[gl("0xd")]=null}}function pl(t){return void 0!==t.getRootsAttributes}async function bl(t,e,n){const i=(0,o.sanitizeEditorConfig)(t,fl);i[gl("0x1f")][gl("0x11")](Ac,ml),i[gl("0x19")]=pl(t)?t.getRootsAttributes():void 0;const r=document[gl("0x28")](),s=t[gl("0x21")][gl("0x1e")](gl("0x4"))[gl("0x20")],x=await s(i,(()=>function(t){const e=document[gl("0x8")](gl("0x14"));return t[gl("0x0")](e),e}(r)));!function(t,e){const n=t[gl("0x27")].document.getRootNames()[gl("0x25")](((e,n)=>(e[n]=t[gl("0xa")].get({rootName:n}),e)),{}),i=t[gl("0x1f")][gl("0x1e")](gl("0xf"))[gl("0x1a")][gl("0xc")]((t=>({id:t.id,name:t[gl("0x5")]}))),r=t[gl("0x1f")][gl("0x1e")](gl("0x16"))[gl("0x1c")]({skipNotAttached:!0,toJSON:!0}),o=e.plugins.get(gl("0xf")),s=e[gl("0x1f")][gl("0x1e")](gl("0x16"));for(const t of i)o.getUser(t.id)||o[gl("0x3")](t);o.me||o.useAnonymousUser();for(const t of r)s[gl("0x9")](t);e[gl("0xa")][gl("0xb")](n)}(t,x),x[gl("0x2")](e?gl("0x15"):"discardAllSuggestions");const a=pl(x)?x.getFullData(n):x.data[gl("0x1e")](n);return await x[gl("0x26")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=i})();
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(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},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 i={};(()=>{"use strict";n.r(i),n.d(i,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),r=n(273),o=n(417),s=n(492),x=n(995);const a=["_enabledCommands","forceDisabled","value","isEnabled","commands","has","editor","refresh","execute","clearForceDisabled","TrackChangesCommand","_enableCommands","_isEnabledBasedOnSelection","affectsData","_disableUnsupportedCommands"];var c,l;c=a,l=307,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("0x8")]=e,this[u("0xa")]=!1,this.refresh(),this[u("0x5")]=!1}[u("0x0")](){this[u("0xb")]=!0}[u("0x1")](){this.value=!this[u("0xa")],this[u("0xa")]?this._disableUnsupportedCommands():this._enableCommands()}[u("0x7")](){for(const t of this[u("0xe")].commands[u("0xc")]())t[u("0x6")]&&!this._enabledCommands.has(t)&&t[u("0x9")](u("0x3"))}[u("0x4")](){for(const t of this[u("0xe")][u("0xc")][u("0xc")]())t[u("0x6")]&&!this[u("0x8")][u("0xd")](t)&&t[u("0x2")](u("0x3"))}}const g=["model","editor","TrackChangesEditing","_isEnabledBasedOnSelection","isEnabled","get","_suggestions","canEditAt","refresh"];var f,h;f=g,h=154,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[m("0x7")](),this[m("0x2")]=!1}refresh(){this[m("0x3")]=!0}execute(t){const n=this[m("0x5")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const i=n.getRanges();this[m("0x0")][m("0x8")][m("0x6")](i)&&this[m("0x0")].plugins[m("0x4")](m("0x1")).acceptSuggestion(n)}}const b=["_isEnabledBasedOnSelection","track-changes-discard-suggestion-not-found","canEditAt","discardSuggestion","plugins","getRanges","TrackChangesEditing","get","_suggestions","refresh","editor"];var E,_;E=b,_=219,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("0x9")]=e,this[T("0xa")](),this[T("0x1")]=!1}refresh(){this.isEnabled=!0}execute(t){const n=this[T("0x9")][T("0x8")](t);if(!n)throw new e.CKEditorError(T("0x2"),this);const i=n[T("0x6")]();this[T("0x0")].model[T("0x3")](i)&&this[T("0x0")][T("0x5")].get(T("0x7"))[T("0x4")](n)}}const C=["change","deletion","join","type","isTouching","start","value","createPositionBefore","sort","getRanges","createPositionAt","end","createRange","next","isArray","isIntersecting","add","createPositionAfter","isMultiRange","color","map","isCollapsed","splice"];var A,k;A=C,k=105,function(t){for(;--t;)A.push(A.shift())}(++k);const S=function(t,e){return C[t-=0]};function I(t){return t[S("0x12")](((t,e)=>S("0xb")==t[S("0xd")]&&"deletion"!=e[S("0xd")]?-1:S("0xb")!=t[S("0xd")]&&"deletion"==e[S("0xd")]?1:0))}function R(t,e){let n,i=0;const r=[],o=e.schema;for(;i<t.length;){const s=t[i],x=t[i+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(r.push(e[S("0x16")](n,o.isObject(s)?e.createPositionAfter(s):e[S("0x14")](s,S("0x15")))),n=null),i++}return r}function v(t,e,n){if(!n)return!1;const i=t[S("0x4")](e),r=t[S("0x11")](n);return i[S("0xe")](r)}function N(t,e,n){for(;n.length;){const i=n[S("0x9")](0,100);t[S("0xa")]((()=>{for(const t of i)t.isInContent&&e.execute(t.id)}))}}const L=["_command","_isEnabledBasedOnSelection","isEnabled","editor","some","_suggestions","refresh","model","getRanges","isInContent"];var M,w;M=L,w=119,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x1")]=e,this[O("0x6")]=n,this[O("0x7")](),this[O("0x2")]=!1}[O("0x7")](){const t=Array.from(this[O("0x6")].values())[O("0x5")]((t=>t[O("0x0")]));this[O("0x3")]=this[O("0x1")].isEnabled&&t}execute(){const t=I(Array.from(this._suggestions.values()));for(const e of t){const t=e[O("0x9")]();if(!this[O("0x4")][O("0x8")].canEditAt(t))return}N(this[O("0x4")][O("0x8")],this[O("0x1")],t)}}const D=["model","_selectedSuggestions","document","refresh","from","editor","_command","execute","selection","getRanges","isEnabled","_suggestions"];var B,P;B=D,P=495,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this[U("0xa")]=new Set,this[U("0x0")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=this[U("0x2")].model[U("0xb")][U("0x5")],e=Array[U("0x1")](this[U("0x8")].values());this[U("0xa")]=function(t,e){const n=Array.from(t[S("0x13")]()),i=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[S("0x13")]())(e[S("0x2")](n)||t[S("0x8")]&&!r[S("0x5")]&&r[S("0x0")]&&n[S("0x15")][S("0xe")](e[S("0xf")]))&&i[S("0x3")](r);return i}(t,e),this[U("0x7")]=this[U("0x3")][U("0x7")]&&!!this._selectedSuggestions.size}[U("0x4")](){const t=I(Array[U("0x1")](this._selectedSuggestions));for(const e of t){const t=e[U("0x6")]();if(!this[U("0x2")][U("0x9")].canEditAt(t))return}N(this.editor[U("0x9")],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 X=function(t,e){var n=this.__data__,i=H(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const it=et||nt||Function("return this")();const rt=it.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var i=!0}catch(t){}var r=xt.call(t);return i&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.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=it["__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,St=At.hasOwnProperty,It=RegExp("^"+kt.call(St).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(ht(t)?It:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return Rt(n)?n:void 0};const Lt=Nt(it,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var i=n.__data__;if(!Lt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(i)}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,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var ie=Object.prototype.hasOwnProperty;const re=function(t,e,n){var i=t[e];ie.call(t,e)&&V(i,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=i?i(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};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?it.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,Se=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Se&&Se.exports===ke&&et.process;const Re=function(){try{var t=Se&&Se.require&&Se.require("util").types;return t||Ie&&Ie.binding&&Ie.binding("util")}catch(t){}}();var ve=Re&&Re.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),i=!n&&de(t),r=!n&&!i&&be(t),o=!n&&!i&&!r&&Ne(t),s=n||i||r||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||r&&("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 i in t)("constructor"!=i||!e&&He.call(t,i))&&n.push(i);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,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?it.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,i=Ze?Ze(n):new t.constructor(n);return t.copy(i),i};const Je=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=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,i=e.length,r=t.length;++n<i;)t[r+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 i=e(t);return ge(t)?i:sn(i,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(it,"DataView");const fn=Nt(it,"Promise");const hn=Nt(it,"Set");const mn=Nt(it,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(hn),Sn=Tt(mn),In=gt;(gn&&In(new gn(new ArrayBuffer(1)))!=Tn||Lt&&In(new Lt)!=pn||fn&&In(fn.resolve())!=bn||hn&&In(new hn)!=En||mn&&In(new mn)!=_n)&&(In=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,i=n?Tt(n):"";if(i)switch(i){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case Sn:return _n}return e});const Rn=In;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=it.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=rt?rt.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 i=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new i(+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 i;case"[object Number]":case"[object String]":return new i(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 Xn=Re&&Re.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const ti=function t(e,n,i,r,o,s){var x,a=1&n,c=2&n,l=4&n;if(i&&(x=o?i(e,r,o,s):i(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Rn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(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),$n(e)?e.forEach((function(r){x.add(t(r,n,i,r,e,s))})):Kn(e)&&e.forEach((function(r,o){x.set(o,t(r,n,i,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(r,o){h&&(r=e[o=r]),re(x,o,t(r,n,i,o,e,s))})),x};const ei=function(t){return ti(t,5)};const ni=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var ii=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ri=/^\w*$/;const oi=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ni(t))||(ri.test(t)||!ii.test(t)||null!=e&&t in Object(e))};function si(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(si.Cache||Zt),n}si.Cache=Zt;const xi=si;var ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ci=/\\(\\)?/g;const li=function(t){var e=xi(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(ai,(function(t,n,i,r){e.push(i?r.replace(ci,"$1"):n||t)})),e}));const ui=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r};var di=rt?rt.prototype:void 0,gi=di?di.toString:void 0;const fi=function t(e){if("string"==typeof e)return e;if(ge(e))return ui(e,t)+"";if(ni(e))return gi?gi.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hi=function(t){return null==t?"":fi(t)};const mi=function(t,e){return ge(t)?t:oi(t,e)?[t]:li(hi(t))};const pi=function(t){if("string"==typeof t||ni(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const bi=function(t,e,n,i){if(!ft(t))return t;for(var r=-1,o=(e=mi(e,t)).length,s=o-1,x=t;null!=x&&++r<o;){var a=pi(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=i?i(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const Ei=function(t,e,n){return null==t?t:bi(t,e,n)};const _i=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Ti=function(t){return this.__data__.has(t)};function yi(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yi.prototype.add=yi.prototype.push=_i,yi.prototype.has=Ti;const Ci=yi;const Ai=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const ki=function(t,e){return t.has(e)};const Si=function(t,e,n,i,r,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 Ci:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(i)var m=s?i(h,f,u,e,t,o):i(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ai(e,(function(t,e){if(!ki(g,e)&&(f===t||r(f,t,n,i,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!r(f,h,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Ii=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n};const Ri=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vi=rt?rt.prototype:void 0,Ni=vi?vi.valueOf:void 0;const Li=function(t,e,n,i,r,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=Ii;case"[object Set]":var a=1&i;if(x||(x=Ri),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;i|=2,s.set(t,e);var l=Si(x(t),x(e),i,r,o,s);return s.delete(t),l;case"[object Symbol]":if(Ni)return Ni.call(t)==Ni.call(e)}return!1};var Mi=Object.prototype.hasOwnProperty;const wi=function(t,e,n,i,r,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:Mi.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(i)var p=s?i(m,h,l,e,t,o):i(h,m,l,t,e,o);if(!(void 0===p?h===m||r(h,m,n,i,o):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 o.delete(t),o.delete(e),g};var Oi="[object Arguments]",Fi="[object Array]",Di="[object Object]",Bi=Object.prototype.hasOwnProperty;const Pi=function(t,e,n,i,r,o){var s=ge(t),x=ge(e),a=s?Fi:Rn(t),c=x?Fi:Rn(e),l=(a=a==Oi?Di:a)==Di,u=(c=c==Oi?Di:c)==Di,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||Ne(t)?Si(t,e,n,i,r,o):Li(t,e,a,n,i,r,o);if(!(1&n)){var g=l&&Bi.call(t,"__wrapped__"),f=u&&Bi.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),r(h,m,n,i,o)}}return!!d&&(o||(o=new Qt),wi(t,e,n,i,r,o))};const Ui=function t(e,n,i,r,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pi(e,n,i,r,t,o))};const ji=function(t,e){return Ui(t,e)};const Gi=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vi=function(t,e){for(var n=0,i=(e=mi(e,t)).length;null!=t&&n<i;)t=t[pi(e[n++])];return n&&n==i?t:void 0};const Hi=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o};const zi=function(t,e){return e.length<2?t:Vi(t,Hi(e,0,-1))};const Wi=function(t,e){return e=mi(e,t),null==(t=zi(t,e))||delete t[pi(Gi(e))]};const Ki=function(t,e){return null==t||Wi(t,e)},qi=["isExternal","from","hasComments","map","@external","isIntersectingWithRange","addMarkerName","setAttribute","onDiscard","nodeAfter","length","subType","addRange","head","next","_saved","delete","accept","author","isInContent","add","clear","nodeBefore","change","getAllAdjacentSuggestions","_onAttributesChange","getMultiRangeId","creator","type","removeAttribute","removeMarker","getMarkers","suggestion:","push","createdAt","isMultiRange","getFirstRange","onAccept","getFirstMarker","authoredAt","discard","toJSON","set","removeMarkers","_model","_isDataLoaded","getRanges","_onDiscard","getContainedElement","commentThread","attributes","start","addMarker","decorate","previous","getItems","_markerNames","getRange","onAttributesChange","getMarkerNames","data"];var Xi,$i;Xi=qi,$i=221,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Zi=function(t,e){return qi[t-=0]};class Yi extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zi("0x7")]=!1,this.id=e.id,this.type=e[Zi("0x33")],this.subType=e[Zi("0x22")]||null,this[Zi("0x29")]=e[Zi("0x29")],this[Zi("0x32")]=e[Zi("0x32")]||e[Zi("0x29")],this[Zi("0x17")]=Boolean(e.attributes&&e.attributes[Zi("0x1b")]),this.data=null,this._model=t,this._onAccept=e[Zi("0x3c")],this[Zi("0x9")]=e[Zi("0x1f")],this[Zi("0x30")]=e[Zi("0x14")],this[Zi("0x12")]=new Set,this.createdAt=null,this.set(Zi("0x1"),null),this[Zi("0x4")](Zi("0xc"),e.attributes||{}),this[Zi("0x4")]("previous",null),this.set("next",null),this[Zi("0x4")]("commentThread",null),this[Zi("0x4")](Zi("0x26"),!1),this[Zi("0xf")](Zi("0x28")),this.decorate(Zi("0x2"))}get[Zi("0x24")](){let t=this;for(;t[Zi("0x10")];)t=t[Zi("0x10")];return t}get[Zi("0x19")](){return!!this.commentThread&&this[Zi("0xb")][Zi("0x21")]>0}get[Zi("0x3a")](){return 0!=this[Zi("0x12")].size&&6==Array.from(this[Zi("0x12")])[0].split(":").length}get[Zi("0x2a")](){return null!==this.getFirstMarker()}[Zi("0x1d")](t){this[Zi("0x12")][Zi("0x2b")](t)}[Zi("0x15")](){return Array[Zi("0x18")](this[Zi("0x12")])}[Zi("0x36")](){return this[Zi("0x15")]()[Zi("0x1a")]((t=>this[Zi("0x6")].markers.get(t))).filter((t=>t))}[Zi("0x0")](){return this[Zi("0x36")]()[0]||null}removeMarkers(){this[Zi("0x6")][Zi("0x2e")]((t=>{for(const e of this[Zi("0x36")]())t[Zi("0x35")](e)})),this[Zi("0x12")][Zi("0x2c")]()}removeMarker(t){this[Zi("0x6")][Zi("0x2e")]((e=>{e[Zi("0x35")](t)})),this[Zi("0x12")][Zi("0x27")](t)}[Zi("0x23")](t){const e=Zi("0x37")+this[Zi("0x33")]+":"+this[Zi("0x22")]+":"+this.id+":"+this.creator.id+":"+Yi[Zi("0x31")]();this.addMarkerName(e),this[Zi("0x6")].change((n=>{n[Zi("0xe")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zi("0x1c")](t){for(const e of this[Zi("0x8")]())if(e.isIntersecting(t))return!0;return!1}[Zi("0x8")](){return this[Zi("0x36")]().map((t=>t[Zi("0x13")]()))}[Zi("0x11")](){return this[Zi("0x8")]().reduce(((t,e)=>[...t,...e[Zi("0x11")]()]),[])}[Zi("0x3b")](){var t;return(null===(t=this[Zi("0x0")]())||void 0===t?void 0:t.getRange())||null}[Zi("0xa")](){const t=this[Zi("0x8")]();if(1!=t[Zi("0x21")])return null;const e=t[0],n=e[Zi("0xd")][Zi("0x20")],i=e.end[Zi("0x2d")];return n instanceof s.Element?n!=i?null:n:null}accept(){this._onAccept(this[Zi("0x8")](),this[Zi("0x16")],this.attributes),this[Zi("0x5")]()}discard(){this[Zi("0x9")](this[Zi("0x8")](),this[Zi("0x16")],this[Zi("0xc")]),this[Zi("0x5")]()}[Zi("0x2f")](){const t=[];let e=this[Zi("0x24")];for(;e;)t[Zi("0x38")](e),e=e[Zi("0x25")];return t}[Zi("0x1e")](t,e){const n=ei(this[Zi("0xc")]);Ei(n,t,e),ji(n,this.attributes)||(this.attributes=n,this[Zi("0x30")](n))}[Zi("0x34")](t){const e=ei(this[Zi("0xc")]);Ki(e,t),ji(e,this.attributes)||(this[Zi("0xc")]=e,this[Zi("0x30")](this[Zi("0xc")]))}[Zi("0x3")](){return{id:this.id,type:this[Zi("0x22")]?this[Zi("0x33")]+":"+this.subType:this.type,authorId:this[Zi("0x32")].id,createdAt:this[Zi("0x39")],hasComments:this.hasComments,data:this.data,attributes:this[Zi("0xc")]}}static[Zi("0x31")](){return(0,e.uid)().substr(1,5)}}function Ji(t,e,n){const i=t.t;switch(e){case"Track changes":return i("Track changes");case"Accept suggestion":return i("Accept suggestion");case"Discard suggestion":return i("Discard suggestion");case"Accept all suggestions":return i("Accept all suggestions");case"Accept all selected suggestions":return i("Accept all selected suggestions");case"Discard all suggestions":return i("Discard all suggestions");case"Discard all selected suggestions":return i("Discard all selected suggestions");case"*Reset font size*":return i("*Reset font size*");case"*Reset font family*":return i("*Reset font family*");case"*Reset font color*":return i("*Reset font color*");case"*Reset font background color*":return i("*Reset font background color*");case"*Remove image text alternative*":return i("*Remove image text alternative*");case"*Reset image width*":return i("*Reset image width*");case"*Remove link*":return i("*Remove link*");case"*Check item*":return i("*Check item*");case"*Uncheck item*":return i("*Uncheck item*");case"*Remove all formatting*":return i("*Remove all formatting*");case"*Replace table cells*":return i("*Replace table cells*");case"*Merge cells*":return i("*Merge cells*");case"*Split cell:* vertically":return i("*Split cell:* vertically");case"*Split cell:* horizontally":return i("*Split cell:* horizontally");case"*Indent:* %0":return i("*Indent:* %0",n);case"*Outdent:* %0":return i("*Outdent:* %0",n);case"*Change to:* %0":return i("*Change to:* %0",n);case"*Insert:* %0":return i("*Insert:* %0",n);case"*Format:* %0":return i("*Format:* %0",n);case"*Format:* change table properties":return i("*Format:* change table properties");case"*Format:* change table cell properties":return i("*Format:* change table cell properties");case"*Format:* insert into %0":return i("*Format:* insert into %0",n);case"*Format:* remove from %0":return i("*Format:* remove from %0",n);case"*Replace image URL*":return i("*Replace image URL*");case"*Format:* resize table":return i("*Format:* resize table");case"*Format:* set order to reversed":return i("*Format:* set order to reversed");case"*Format:* set order to regular":return i("*Format:* set order to regular");case"*Format:* set start index to %0":return i("*Format:* set start index to %0",n);case"*Change %0 content*":return i("*Change %0 content*",n);case"*Remove:* %0":return i("*Remove:* %0",n);case"*Merge:* %0":return i("*Merge:* %0",n);case"*Split:* %0":return i("*Split:* %0",n);case"*Remove format:* %0":return i("*Remove format:* %0",n);case"*Set font size:* %0":return i("*Set font size:* %0",n);case"*Set font family:* %0":return i("*Set font family:* %0",n);case"*Set format to:* %0":return i("*Set format to:* %0",n);case"*Set font color:* %0":return i("*Set font color:* %0",n);case"*Set font background color:* %0":return i("*Set font background color:* %0",n);case"*Set format:* %0":return i("*Set format:* %0",n);case"*Set image text alternative:* %0":return i("*Set image text alternative:* %0",n);case"*Set image width:* %0":return i("*Set image width:* %0",n);case"*Set link:* %0":return i("*Set link:* %0",n);case"*Set highlight:* %0":return i("*Set highlight:* %0",n);case"*Remove highlight*":return i("*Remove highlight*");case"FORMAT_HIGHLIGHT":return i({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return i({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return i({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return i({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return i({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return i({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return i({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return i({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return i({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return i({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return i({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return i({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return i({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return i({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return i({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return i({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return i({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return i({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return i({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return i({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return i({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return i({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return i({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return i({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return i({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return i({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return i({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return i({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return i({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return i({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return i({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return i({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return i({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return i({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return i({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return i({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return i({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return i({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return i({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return i({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return i({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return i({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return i({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return i({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return i({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return i({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return i({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return i({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return i({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return i({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return i({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return i({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return i({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return i({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return i({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return i({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return i({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return i({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return i({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return i({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return i({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 i({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return i({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 i({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return i({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return i({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return i({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return i({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return i({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return i({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qi=["type","isEmpty","_attributeLabels","data","format","*Remove:* %0","$textProxy","element","function","nextSibling","push","subType","registerDescriptionCallback","_handleInsertRemoveSuggestionDescription","getFirstRange","match","set","join","add","_handleRenameSuggestionDescription","isEqual","_locale","replace","newValue","has","registerElementLabel","_customCallbacks","ELEMENT_SPACE","insertion","*Change to:* %0","Container","_schema","item","previousSibling","$text","text","length","_resolveDescriptionItems","end","*Set format:* %0","_handleAttributeSuggestionDescription","skip","nodeAfter","_itemLabels","getWalker","addEmptyContainer","name","removeContainer","pop","addFormat","start","isObject","attribute","$1 $2","REPLACE_TEXT","removeFormat","removeEmptyContainer","_addDescriptionItems","*Split:* %0","getItemLabel","addContainer","*Insert:* %0","*Remove format:* %0","_handleCustomCallbackDescription","key","quantity","Object","map","remove","_itemLabelsCallbacks","matchingCallback","elementEnd","indexOf","get","deletion","registerAttributeLabel","removeObject"];var tr,er;tr=Qi,er=239,function(t){for(;--t;)tr.push(tr.shift())}(++er);const nr=function(t,e){return Qi[t-=0]};class ir{constructor(t,e){this._customCallbacks=[],this[nr("0x23")]=new Map,this[nr("0x3d")]=[],this[nr("0x47")]=new Map,this[nr("0x17")]=t,this._locale=e}getDescriptions(t){const e=[],n=new Set,i=new Set;for(let r=0;r<t.length;r++){const o=t[r];if(!o.isInContent)continue;const s=this[nr("0x37")](o);if(s){if(null!=o[nr("0x3")]){if(n[nr("0x10")](o[nr("0x3")]))continue;n[nr("0xa")](o[nr("0x3")])}e[nr("0x2")](s)}else if(nr("0x2c")!=o[nr("0x45")])nr("0x14")!=o[nr("0x45")]&&nr("0x42")!=o[nr("0x45")]||this[nr("0x5")](e,o,t[r+1]);else{const t=o[nr("0x48")][nr("0x38")];if(i[nr("0x10")](t))continue;i[nr("0xa")](o[nr("0x48")].key),t==Cc?this._handleRenameSuggestionDescription(e,o):this[nr("0x20")](e,o)}}return this._resolveDescriptionItems(e)}[nr("0x4")](t){this[nr("0x12")][nr("0x2")](t)}[nr("0x11")](t,n,i=e.priorities.normal){nr("0x0")==typeof t?(0,e.insertToPriorityArray)(this[nr("0x3d")],{matchingCallback:t,label:n,priority:i}):this[nr("0x23")][nr("0x8")](t,n)}[nr("0x43")](t,e){this._attributeLabels.set(t,e)}[nr("0x33")](t,e=1){let n;for(const e of this[nr("0x3d")])if(e[nr("0x3e")](t)){n=e.label;break}return n||(n=this[nr("0x23")][nr("0x41")](t.name)),n?n(e):1!==e?e+" "+t[nr("0x26")]+"s":""+t[nr("0x26")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[nr("0x24")](),i=nr("0x14")==e[nr("0x45")]?nr("0xa"):nr("0x3c");for(const e of n){const r=e[nr("0x18")],o=t[t[nr("0x1c")]-1];if(r.is(nr("0x4b")))o&&o[nr("0x45")][nr("0x40")]("Container")>-1&&t[nr("0x28")](),o&&nr("0x1b")==o[nr("0x45")]?o[i]+=r[nr("0x48")]:t.push({type:nr("0x1b"),add:nr("0xa")==i?r[nr("0x48")]:"",remove:nr("0x3c")==i?r[nr("0x48")]:""});else if(this[nr("0x17")].isObject(r)){const s=r;if(o&&o[nr("0x45")][nr("0x40")](nr("0x16"))>-1&&t[nr("0x28")](),"elementEnd"==e[nr("0x45")])continue;o&&o.type==i+"Object"&&o[nr("0x4c")][nr("0x26")]==s[nr("0x26")]?o[nr("0x39")]++:t[nr("0x2")]({type:i+nr("0x3a"),element:s,quantity:1}),n[nr("0x21")]((t=>!(nr("0x3f")==t.type&&t[nr("0x18")]==r)))}else if(this._schema.checkChild(r,nr("0x1a"))||r.is(nr("0x4c"),"softBreak")){const n=r;if(nr("0xa")==i&&"elementStart"==e[nr("0x45")]||nr("0x3c")==i&&nr("0x3f")==e[nr("0x45")])continue;if(o&&-1==o[nr("0x45")].indexOf("Container")){nr("0x1b")==o[nr("0x45")]&&(o[i]+="\n");continue}let s;if(s="add"==i?n[nr("0x1")]&&!this[nr("0x17")].isObject(n.nextSibling)?n[nr("0x1")]:null:n[nr("0x19")]&&!this[nr("0x17")][nr("0x2b")](n[nr("0x19")])?n.previousSibling:null,n[nr("0x46")]||s&&s[nr("0x46")]){const e=s&&s[nr("0x46")]?s:n;o&&o[nr("0x45")]==i+"EmptyContainer"&&o[nr("0x4c")][nr("0x26")]==e[nr("0x26")]?o[nr("0x39")]++:t[nr("0x2")]({type:i+"EmptyContainer",element:e,quantity:1})}else t[nr("0x2")]({type:i+nr("0x16"),element:n})}}}[nr("0x1d")](t){const e=this[nr("0xd")],n=[],i=[],r=[];for(const o of t)switch(o[nr("0x45")]){case nr("0x1b"):if(o[nr("0xa")]=o[nr("0xa")][nr("0xe")](/(\S)\u000A+(\S)/g,nr("0x2d"))[nr("0xe")](/\u000A/g,""),o[nr("0x3c")]=o[nr("0x3c")].replace(/(\S)\u000A+(\S)/g,nr("0x2d"))[nr("0xe")](/\u000A/g,""),""!=o.add&&""!=o[nr("0x3c")]){n.push({type:nr("0xe"),content:Ji(e,nr("0x2e"),['"'+o[nr("0x3c")]+'"','"'+o.add+'"'])});continue}if(null!=o[nr("0xa")][nr("0x7")](/^ +$/)){n[nr("0x2")]({type:"insertion",content:Ji(e,nr("0x35"),Ji(e,nr("0x13"),o.add.length))});continue}if(null!=o[nr("0x3c")][nr("0x7")](/^ +$/)){n[nr("0x2")]({type:"deletion",content:Ji(e,nr("0x4a"),Ji(e,nr("0x13"),o.remove[nr("0x1c")]))});continue}if(""!=o[nr("0xa")]){n[nr("0x2")]({type:"insertion",content:Ji(e,nr("0x35"),'"'+o[nr("0xa")]+'"')});continue}n[nr("0x2")]({type:nr("0x42"),content:Ji(e,nr("0x4a"),'"'+o[nr("0x3c")]+'"')});continue;case nr("0x25"):case"addObject":n[nr("0x2")]({type:nr("0x14"),content:Ji(e,nr("0x35"),this[nr("0x33")](o[nr("0x4c")],o[nr("0x39")]))});continue;case nr("0x30"):case nr("0x44"):n[nr("0x2")]({type:"deletion",content:Ji(e,nr("0x4a"),this[nr("0x33")](o[nr("0x4c")],o.quantity))});continue;case nr("0x34"):n[nr("0x2")]({type:nr("0x14"),content:Ji(e,nr("0x32"),this[nr("0x33")](o[nr("0x4c")],o.quantity))});continue;case nr("0x27"):n[nr("0x2")]({type:nr("0x42"),content:Ji(e,"*Merge:* %0",this[nr("0x33")](o.element,o[nr("0x39")]))});continue;case nr("0x29"):i[nr("0x2")](o[nr("0x38")]);continue;case nr("0x2f"):r[nr("0x2")](o[nr("0x38")]);continue;default:n[nr("0x2")](o)}if(i[nr("0x1c")]){const t=i[nr("0x3b")]((t=>this[nr("0x47")][nr("0x10")](t)?this[nr("0x47")][nr("0x41")](t):t))[nr("0x9")](", ");n.push({type:"format",content:Ji(this[nr("0xd")],nr("0x1f"),t)})}if(r.length){const t=r.map((t=>this._attributeLabels[nr("0x10")](t)?this._attributeLabels[nr("0x41")](t):t))[nr("0x9")](", ");n[nr("0x2")]({type:nr("0x49"),content:Ji(this[nr("0xd")],nr("0x36"),t)})}return n}[nr("0x37")](t){for(const e of this[nr("0x12")]){const n=e(t);if(n&&nr("0x45")in n)return n}}[nr("0x20")](t,e){const n=e[nr("0x48")],i=void 0===n[nr("0xf")]?nr("0x2f"):nr("0x29");t[nr("0x2")]({type:i,key:n[nr("0x38")]})}[nr("0xb")](t,e){t[nr("0x2")]({type:nr("0x49"),content:Ji(this._locale,nr("0x15"),this.getItemLabel(e.getFirstRange()[nr("0x2a")][nr("0x22")],1))})}[nr("0x5")](t,e,n){if(this[nr("0x31")](t,e),n&&n[nr("0x6")]()&&!e.getFirstRange()[nr("0x1e")][nr("0xc")](n[nr("0x6")]().start)){const n=t[t[nr("0x1c")]-1],i=nr("0x14")==e[nr("0x45")]?nr("0xa"):nr("0x3c");n&&nr("0x1b")==n[nr("0x45")]&&(n[i]+="\n")}}}const rr=["enableCommand","get","showAIAssistant","TrackChangesEditing","plugins"];var or,sr;or=rr,sr=152,function(t){for(;--t;)or.push(or.shift())}(++sr);const xr=function(t,e){return rr[t-=0]};class ar extends t.Plugin{afterInit(){const t=this.editor,e=t[xr("0x2")][xr("0x4")](xr("0x1"));t.commands.get(xr("0x0"))&&e[xr("0x3")](xr("0x0"))}}const cr=["AlignmentEditing","center","alignment","_registerLegacyDescription","get","*Format:* %0","has","TrackChangesEditing","registerDescriptionCallback","formatBlock","right","_descriptionFactory","commandParams","FORMAT_ALIGN_TO_RIGHT","editor","FORMAT_ALIGN_TO_LEFT","_enableDefaultAttributesIntegration","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGNMENT","justify","plugins","FORMAT_JUSTIFY_TEXT","afterInit","registerAttributeLabel"];var lr,ur;lr=cr,ur=186,function(t){for(;--t;)lr.push(lr.shift())}(++ur);const dr=function(t,e){return cr[t-=0]};class gr extends t.Plugin{[dr("0x4")](){const t=this.editor,e=t.locale;if(!t[dr("0x2")][dr("0xc")](dr("0x6")))return;const n=t.plugins[dr("0xa")](dr("0xd"));n[dr("0x16")](dr("0x8"),[],[dr("0x8")]),n._descriptionFactory[dr("0x5")](dr("0x8"),Ji(e,dr("0x0"))),this._registerLegacyDescription()}[dr("0x9")](){const t=this[dr("0x14")],e=t.locale;t[dr("0x2")].get("TrackChangesEditing")[dr("0x11")][dr("0xe")]((t=>{if(dr("0xf")!=t.type)return;const{data:n}=t;if(n&&"alignment"==n.commandName){const t=n[dr("0x12")][0].value;return{type:"format",content:Ji(e,dr("0xb"),function(t){switch(t){case"left":return Ji(e,dr("0x15"));case dr("0x10"):return Ji(e,dr("0x13"));case dr("0x7"):return Ji(e,dr("0x17"));case dr("0x1"):return Ji(e,dr("0x3"))}}(t))}}}))}}const fr=["toLowerCase","toUpperCase","strikethrough","format","subscript","superscript","_descriptionFactory","FORMAT_STRIKETHROUGH","afterInit","CodeEditing","FORMAT_","registerDescriptionCallback","locale","FORMAT_SUBSCRIPT","has","commandName","commandParams","_enableDefaultAttributesIntegration","plugins","bold","formatInline","SuperscriptEditing","SubscriptEditing","underline","registerAttributeLabel","code","_registerLegacyDescription","TrackChangesEditing","FORMAT_BOLD","get","italic"];var hr,mr;hr=fr,mr=172,function(t){for(;--t;)hr.push(hr.shift())}(++mr);const pr=function(t,e){return fr[t-=0]},br=["BoldEditing","ItalicEditing","UnderlineEditing",pr("0x17"),"StrikethroughEditing",pr("0x5"),pr("0x4")];class Er extends t.Plugin{[pr("0x16")](){const t=this.editor,e=t[pr("0x1")][pr("0xc")](pr("0xa")),n=t[pr("0x1a")];for(const i of br){if(!t.plugins[pr("0x1c")](i))continue;const r=i.slice(0,-7)[pr("0xe")](),o=pr("0x18")+r[pr("0xf")]();e[pr("0x0")](r,[r]),e[pr("0x14")][pr("0x7")](r,Ji(n,o))}this[pr("0x9")]()}_registerLegacyDescription(){const t=this.editor,e=t[pr("0x1a")],n=t[pr("0x1")][pr("0xc")](pr("0xa"));function i(t,i){n[pr("0x14")][pr("0x19")]((n=>{if(pr("0x3")!=n.type)return;const{data:r}=n;return r&&r[pr("0x1d")]===t?r[pr("0x1e")][0].forceValue?{type:pr("0x11"),content:Ji(e,"*Format:* %0",i)}:{type:pr("0x11"),content:Ji(e,"*Remove format:* %0",i)}:void 0}))}i(pr("0x2"),Ji(e,pr("0xb"))),i(pr("0xd"),Ji(e,"FORMAT_ITALIC")),i(pr("0x6"),Ji(e,"FORMAT_UNDERLINE")),i(pr("0x8"),Ji(e,"FORMAT_CODE")),i(pr("0x10"),Ji(e,pr("0x15"))),i(pr("0x12"),Ji(e,pr("0x1b"))),i(pr("0x13"),Ji(e,"FORMAT_SUPERSCRIPT"))}}const _r=["plugins","commands","getSelectedBlocks","$root","checkChild","markBlockFormat","_descriptionFactory","change","format","document","editor","forceValue","get","afterInit","*Set format:* %0","parent","BlockQuoteEditing","locale","filter","selection","commandParams","model","ELEMENT_BLOCK_QUOTE","TrackChangesEditing","value","blockQuote","enableCommand","*Remove format:* %0","registerDescriptionCallback","name"];var Tr,yr;Tr=_r,yr=171,function(t){for(;--t;)Tr.push(Tr.shift())}(++yr);const Cr=function(t,e){return _r[t-=0]};class Ar extends t.Plugin{[Cr("0x16")](){const t=this.editor,e=t[Cr("0x1a")];if(!t[Cr("0x9")].has(Cr("0x19")))return;const n=t[Cr("0x9")][Cr("0x15")](Cr("0x2")),i=this[Cr("0x13")][Cr("0xa")].get(Cr("0x4"));n[Cr("0x5")]("blockQuote",((e,r={})=>{const o=this[Cr("0x13")].model[Cr("0x12")][Cr("0x1c")],s=r&&void 0!==r[Cr("0x14")]?r[Cr("0x14")]:!i[Cr("0x3")];let x=[];if(s){const e=Array.from(o[Cr("0xb")]())[Cr("0x1b")]((t=>kr(t)||function(t,e){const n=e[Cr("0xd")](t[Cr("0x18")],Cr("0x4")),i=e[Cr("0xd")]([Cr("0xc"),Cr("0x4")],t);return n&&i}(t,this[Cr("0x13")][Cr("0x0")].schema)));x=R(e,t[Cr("0x0")])}else{const e=Array.from(o.getSelectedBlocks())[Cr("0x1b")]((t=>kr(t)));x=R(e,t[Cr("0x0")])}t.model[Cr("0x10")]((()=>{for(const t of x)n[Cr("0xe")](t,{commandName:Cr("0x4"),commandParams:[{forceValue:s}]})}))})),n[Cr("0xf")][Cr("0x7")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n.commandName){const t=Ji(e,Cr("0x1"));return n[Cr("0x1d")][0][Cr("0x14")]?{type:"format",content:Ji(e,Cr("0x17"),t)}:{type:Cr("0x11"),content:Ji(e,Cr("0x6"),t)}}}))}}function kr(t){return Cr("0x4")==t[Cr("0x18")][Cr("0x8")]}const Sr=["afterInit","plugins","changeCaseTitle","changeCaseUpper","enableCommand","TrackChangesEditing","get","has","changeCaseLower"];var Ir,Rr;Ir=Sr,Rr=456,function(t){for(;--t;)Ir.push(Ir.shift())}(++Rr);const vr=function(t,e){return Sr[t-=0]};class Nr extends t.Plugin{[vr("0x3")](){const t=this.editor;t[vr("0x4")][vr("0x1")]("CaseChange")&&(t[vr("0x4")][vr("0x0")]("TrackChangesEditing")[vr("0x7")](vr("0x6")),t[vr("0x4")][vr("0x0")]("TrackChangesEditing")[vr("0x7")](vr("0x2")),t[vr("0x4")].get(vr("0x8"))[vr("0x7")](vr("0x5")))}}const Lr=["afterInit","ckbox","enableCommand","get","plugins","editor","TrackChangesEditing"];var Mr,wr;Mr=Lr,wr=424,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Lr[t-=0]};class Fr extends t.Plugin{[Or("0x3")](){const t=this[Or("0x1")];t.commands[Or("0x6")](Or("0x4"))&&t[Or("0x0")][Or("0x6")](Or("0x2"))[Or("0x5")]("ckbox")}}const Dr=["*Remove format:* %0","outdentCodeBlock","isLimit","ELEMENT_CODE_BLOCK","model","commandParams","registerDescriptionCallback","*Set format:* %0","languages","plugins","afterInit","config","blockName","enableCommand","has","rootElement","change","find","value","commandName","filter","parent","from","getSelectedBlocks","selection","schema","formatBlock","registerElementLabel","label","_descriptionFactory","type","codeBlock","forceValue","markBlockFormat","name","document","get","toLowerCase","language"];var Br,Pr;Br=Dr,Pr=114,function(t){for(;--t;)Br.push(Br.shift())}(++Pr);const Ur=function(t,e){return Dr[t-=0]};class jr extends t.Plugin{[Ur("0xd")](){const t=this.editor;if(!t[Ur("0xc")][Ur("0x11")]("CodeBlock"))return;const e=t[Ur("0xc")][Ur("0x0")]("TrackChangesEditing"),n=t.locale,i=t[Ur("0xe")].get(Ur("0x22"))[Ur("0xb")],r=t.commands[Ur("0x0")](Ur("0x22"));e[Ur("0x10")]("indentCodeBlock"),e.enableCommand(Ur("0x4")),e[Ur("0x10")](Ur("0x22"),((n,o={})=>{const s=t.model,x=t[Ur("0x7")][Ur("0x26")][Ur("0x1b")],a=o&&void 0!==o[Ur("0x23")]?o[Ur("0x23")]:!r[Ur("0x15")];let c;o.language||(o[Ur("0x2")]=i[0][Ur("0x2")]),c=a?Array[Ur("0x19")](x[Ur("0x1a")]())[Ur("0x17")]((t=>{return Gr(t)||(e=t,n=s[Ur("0x1c")],!e.is(Ur("0x12"))&&!n[Ur("0x5")](e)&&n.checkChild(e[Ur("0x18")],Ur("0x22")));var e,n})):Array[Ur("0x19")](x[Ur("0x1a")]())[Ur("0x17")]((t=>Gr(t)));const l=R(c,s);s[Ur("0x13")]((()=>{for(const t of l)e[Ur("0x24")](t,{commandName:Ur("0x22"),commandParams:[{...o,forceValue:a}],formatGroupId:Ur("0xf")})}))})),e[Ur("0x20")][Ur("0x1e")]("codeBlock",(t=>Ji(n,Ur("0x6"),t))),e[Ur("0x20")][Ur("0x9")]((t=>{if(Ur("0x1d")!=t[Ur("0x21")])return;const e=n.t,{data:r}=t;if(!r||"codeBlock"!=r[Ur("0x16")])return;const o=r[Ur("0x8")][0][Ur("0x2")],s=e(i[Ur("0x14")]((t=>t[Ur("0x2")]===o))[Ur("0x1f")])[Ur("0x1")]();return r.commandParams[0].forceValue?{type:"format",content:Ji(n,Ur("0xa"),Ji(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Ji(n,Ur("0x3"),Ji(n,Ur("0x6"),1))}}))}}function Gr(t){return Ur("0x22")==t[Ur("0x25")]}const Vr=["CommentsEditing","get","enableCommand","afterInit","plugins","TrackChangesEditing","editor","has"];var Hr,zr;Hr=Vr,zr=218,function(t){for(;--t;)Hr.push(Hr.shift())}(++zr);const Wr=function(t,e){return Vr[t-=0]};class Kr extends t.Plugin{[Wr("0x1")](){const t=this[Wr("0x4")];t.plugins[Wr("0x5")](Wr("0x6"))&&t[Wr("0x2")][Wr("0x7")](Wr("0x3"))[Wr("0x0")]("addCommentThread")}}var qr=n(181);const Xr=["type","consumable","isLimit","TrackChangesEditing","markerName","elementEnd","test","plugins","markerRange","getAttribute","activeMarkers","getCustomProperty","writer","previousPosition","nextSibling","schema","mapper","ck-suggestion-marker--active","listItem","item","start","isBlock","insert","element","name","ck-suggestion-marker-","span","isAtEnd","includes","listIndent","addClass","toViewElement","addHighlight","push","bindElementToMarker"];var $r,Zr;$r=Xr,Zr=489,function(t){for(;--t;)$r.push($r.shift())}(++Zr);const Yr=function(t,e){return Xr[t-=0]};function Jr(t,e,n){const i=[];for(const r of e.getItems())r.hasAttribute(t)&&i[Yr("0x22")](n.createRangeOn(r));return i}function Qr(t,e,{showActiveMarker:n=!0}={}){const i=t[Yr("0x8")].get(Yr("0x4"));return(r,o,s)=>{if(!s[Yr("0x2")][Yr("0x7")](o.markerRange,r[Yr("0x19")]))return;const x=o[Yr("0x9")].getWalker(),a=o[Yr("0x9")][Yr("0x15")],c=t.model[Yr("0x10")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Yr("0x14")];d=d||c.isContent(e);const n=s.mapper[Yr("0x20")](e);if(n&&n[Yr("0xc")](Yr("0x21")))return;Yr("0x6")==t[Yr("0x1")]&&c[Yr("0x16")](e)&&!c[Yr("0x3")](e)&&(e[Yr("0xf")]||a[Yr("0x1c")]?l&&l.parent==e||(l=e,f(t[Yr("0xe")]),g=!0):u=u||t[Yr("0xe")])}function f(t){const r=s[Yr("0xd")].createUIElement(Yr("0x1b"),{class:Yr("0x1a")+e}),x=s[Yr("0x11")].toViewPosition(t);n&&i[Yr("0xb")][Yr("0x1d")](o[Yr("0x5")])&&s[Yr("0xd")][Yr("0x1f")](Yr("0x12"),r),s[Yr("0xd")][Yr("0x17")](x,r),s[Yr("0x11")][Yr("0x0")](r,o[Yr("0x5")])}d||g||!u||f(u)}}const to=["start","showSuggestionHighlights","unbindElementFromMarkerName","editor","get","downcastDispatcher","mapper","uiElement","lock","addMarker:suggestion:deletion","plugins","removeMarker:suggestion:deletion","enableCommand","commands","getFirstRange","model","merge","forward","deleteForward","init","batch","detach","rootName","high","modifySelection","end","buffer","bind","options","createSelection","createRange","writer","document","$graveyard","editing","enqueueChange"];var eo,no;eo=to,no=195,function(t){for(;--t;)eo.push(eo.shift())}(++no);const io=function(t,e){return to[t-=0]};class ro extends t.Plugin{static get requires(){return[qr.Delete]}[io("0x4")](){const t=this[io("0x18")],e=t[io("0x1f")][io("0x19")]("TrackChangesEditing");e.enableCommand("delete");const n=t[io("0x22")][io("0x19")](io("0x3"));e[io("0x21")](io("0x3"),((e,i={})=>{const r=t[io("0x0")][io("0xe")](t[io("0x0")][io("0x11")].selection);r.isCollapsed&&t[io("0x0")][io("0x9")](r,{direction:io("0x2"),unit:i.unit});const o=r[io("0x23")](),x=s.LiveRange.fromRange(o);let a;e(i),a=io("0x12")==x.root[io("0x7")]?t[io("0x0")][io("0xf")](o[io("0x15")]):t[io("0x0")][io("0xf")](x[io("0x15")],x[io("0xa")]),x[io("0x6")](),t[io("0x0")][io("0x14")](n[io("0xb")][io("0x5")],(t=>{n[io("0xb")][io("0x1d")](),t.setSelection(t[io("0xf")](a.end)),n[io("0xb")].unlock()}))})),t[io("0x13")].downcastDispatcher.on("addMarker:suggestion:deletion",Qr(t,io("0x1")),{priority:io("0x8")}),t.data[io("0x1a")].on(io("0x1e"),((e,n,i)=>{i[io("0xd")][io("0x16")]&&Qr(t,io("0x1"),{showActiveMarker:!1})[io("0xc")](this)(e,n,i)}),{priority:io("0x8")}),t[io("0x13")][io("0x1a")].on(io("0x20"),((t,e,n)=>{const i=n[io("0x1b")].markerNameToElements(e.markerName);if(i)for(const t of i)t.is(io("0x1c"))&&(n[io("0x1b")][io("0x17")](t,e.markerName),n[io("0x10")].remove(t))}),{priority:io("0x8")})}}const oo=["*Uncheck item*","head","documentList","TodoListEditing","selection","meta","todoListCheck","registerDescriptionCallback","suggestion","_LIST","find","model","listStart","config","todo","outdentList","has","range","end","listItemIdFixer","_supportLegacySuggestions","*Set format:* %0","todoList","parent","previousSibling","createPositionAt","registerPostFixer","setSelection","registerCustomCallback","length","differ","_registerLegacyDescription","start","createRange","commands","nextSibling","change","newValue","fromRange","getChanges","list.multiBlock","get","isObject","ELEMENT_BULLETED_LIST","ListEditing","format","containsItem","getAttribute","isUndo","listStyle","bulleted","_enableDefaultAttributesIntegration","value","noTrackChangesFixer","formatBlock","toUpperCase","document","ELEMENT_LIST_ITEM","batch","_suggestionFactory","numberedList","getSuggestions","commandName","getRanges","forceValue","*Format:* remove from %0","getFirstMarker","listIndent","commandParams","groupId","*Outdent:* %0","map","splitListItemAfter","deletion","editor","ELEMENT_","nodeAfter","TrackChangesEditing","ELEMENT_TODO_LIST","getFirstRange","plugins","registerElementLabel","*Merge:* list item","registerAttributeLabel","multipleBlocks","numbered","schema","listReversed","FORMAT_INDENT","execute","includes","listType","oldValue","accept","_findSuggestions","filter","*Merge:* %0","bulletedList","push","_descriptionFactory","default","*Remove format:* %0","removeMarker","listItemId","indentList","isLocal","*Change to:* %0","mergeListItemBackward","ELEMENT_NUMBERED_LIST","assureChains","attributes","splitListItemBefore","attributeKey","todoListChecked","key","type","locale","trackChangesCommand","data","attribute","*Format:* insert into %0"];var so,xo;so=oo,xo=411,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{afterInit(){const t=this[ao("0x1a")];if(!t[ao("0x20")][ao("0x59")](ao("0x75")))return;const e=t[ao("0x44")],n=t[ao("0x20")][ao("0x72")](ao("0x1d")),i=t.plugins[ao("0x59")](ao("0x4c")),r=!!t[ao("0x56")][ao("0x72")](ao("0x71"));function o(t){return{type:ao("0x76"),content:""+Ji(e,ao("0x5e"),t)}}function s(t){return{type:ao("0x76"),content:""+Ji(e,ao("0x35"),t)}}n[ao("0x3")](ao("0xc"),[],[ao("0x37"),"listType","listIndent"]),n._enableDefaultAttributesIntegration(ao("0x31")),n[ao("0x3")](ao("0x38")),n[ao("0x3")](ao("0x58")),n[ao("0x3")](ao("0x18")),n._enableDefaultAttributesIntegration(ao("0x3f")),r&&(n[ao("0x3")](ao("0x3b")),n[ao("0x3")]("mergeListItemForward")),i&&(n._enableDefaultAttributesIntegration(ao("0x5f")),n[ao("0x3")]("checkTodoList",[],[ao("0x41")]),n[ao("0x33")][ao("0x50")]((t=>{const{data:n}=t;if(n&&ao("0x41")==n[ao("0x42")])return{type:ao("0x76"),content:n[ao("0x6e")]?Ji(e,"*Check item*"):Ji(e,ao("0x49"))}})),this[ao("0x1a")][ao("0x54")][ao("0x8")][ao("0x63")]((t=>{if(t[ao("0xa")][ao("0x0")])return!1;let e=!1;const i=n[ao("0xd")]({skipNotAttached:!0})[ao("0x2f")]((t=>ao("0x41")===n._getAttributeKey(t)));for(const r of i)ao("0x57")!=r[ao("0x1f")]()[ao("0x69")].nodeAfter[ao("0x78")](ao("0x2b"))&&(n[ao("0x2e")](r[ao("0x1f")](),ao("0x47"))[ao("0x53")]((t=>ao("0x2b")===n._getAttributeKey(t[ao("0x51")])))||(t[ao("0x36")](r.getFirstMarker()),e=!0));return e}))),n._descriptionFactory[ao("0x23")](ao("0x13"),Ji(e,ao("0x28")));const x={type:"format",content:""};n[ao("0x33")][ao("0x50")]((t=>{const{data:n}=t;if(!n||ao("0x2b")!=n[ao("0x42")])return;let i=t.head;for(;i;){if(i[ao("0x46")]&&("listStyle"==i[ao("0x46")].key&&(i[ao("0x46")][ao("0x6e")]&&ao("0x34")!=i[ao("0x46")].newValue||"default"!=i[ao("0x46")][ao("0x2c")]&&!n[ao("0x6e")])||!r&&i[ao("0x46")][ao("0x42")]==Cc))return x;i=i.next}if(null==n.newValue)switch(n.oldValue){case ao("0x2"):return s(Ji(e,ao("0x74")));case ao("0x25"):return s(Ji(e,ao("0x3c")));case ao("0x57"):return s(Ji(e,ao("0x1e")))}switch(n[ao("0x6e")]){case ao("0x2"):return o(Ji(e,ao("0x74")));case ao("0x25"):return o(Ji(e,ao("0x3c")));case ao("0x57"):return o(Ji(e,ao("0x1e")))}})),n._descriptionFactory[ao("0x50")]((t=>{const{data:e}=t;if(e&&ao("0x13")==e[ao("0x42")])return null==e[ao("0x6e")]||null==e.oldValue&&0==e[ao("0x6e")]?x:void 0})),n._descriptionFactory.registerDescriptionCallback((t=>{if(ao("0x47")!=t[ao("0x43")])return;const{data:n}=t;if(!n||ao("0x37")!=n[ao("0x42")])return;const i=lo(t);return i?ao("0x6e")==i?{type:ao("0x76"),content:Ji(e,ao("0x22"))}:ao("0x2c")==i?{type:ao("0x76"),content:Ji(e,"*Split:* list item")}:x:x})),t[ao("0x54")][ao("0x8")][ao("0x63")]((t=>this[ao("0x5c")](t))),t[ao("0x54")][ao("0x8")][ao("0x63")]((t=>this[ao("0x5")](t))),t[ao("0x54")].document[ao("0x63")]((t=>this[ao("0x3d")](t))),this[ao("0x5d")]()}[ao("0x5c")](t){if(t[ao("0xa")][ao("0x0")]||!t.batch[ao("0x39")])return!1;let e=!1;const n=this[ao("0x1a")].plugins[ao("0x72")]("TrackChangesEditing")[ao("0xd")]({skipNotAttached:!0})[ao("0x2f")]((t=>t[ao("0x46")]&&"listItemId"==t.data[ao("0x42")])).filter((t=>t.data[ao("0x6e")]&&t[ao("0x46")][ao("0x2c")]));for(const i of n)lo(i)||(t[ao("0x36")](i[ao("0x12")]()),e=!0);return e}[ao("0x5")](t){if(t[ao("0xa")][ao("0x0")]||!t.batch[ao("0x39")])return!1;const e=this[ao("0x1a")][ao("0x20")].get("TrackChangesEditing");if(e[ao("0x45")][ao("0x4")])return!1;let n=!1;const i=["listType",ao("0x1"),"listItemId",ao("0x13"),"listStart",ao("0x27"),ao("0x4f")],r=this[ao("0x1a")].model[ao("0x8")][ao("0x67")][ao("0x70")]().filter((t=>ao("0x47")==t.type)).filter((t=>i[ao("0x2a")](t[ao("0x40")])));if(0==r[ao("0x66")])return n;for(const o of r){const r=e._findSuggestions(o[ao("0x5a")],ao("0x47"))[ao("0x2f")]((t=>!t[ao("0x4e")].isNextTo))[ao("0x17")]((t=>t[ao("0x51")]))[ao("0x2f")]((t=>{const n=e._getAttributeKey(t);return i[ao("0x2a")](n)}));if(r.length){for(const e of r)t[ao("0x36")](e[ao("0x12")]());n=!0}}return n}[ao("0x3d")](t){if(t[ao("0xa")][ao("0x0")]||!t[ao("0xa")][ao("0x39")])return!1;const e=this[ao("0x1a")][ao("0x20")].get(ao("0x1d"));let n=!1;const i=[ao("0x2b"),"listStyle","listItemId",ao("0x13"),ao("0x55"),ao("0x27"),ao("0x4f")];for(const t of e.getSuggestions({skipNotAttached:!0})){const r=e._findSuggestions(t.getFirstRange(),ao("0x47"))[ao("0x17")]((t=>t[ao("0x51")]))[ao("0x2f")]((t=>t[ao("0x46")]&&i.includes(t[ao("0x46")][ao("0x42")])));if(!r[ao("0x66")])continue;const s=r[0][ao("0x4a")][ao("0x3e")][ao("0x15")];if(!r.every((t=>t[ao("0x3e")].groupId===s)))for(const t of r)o(t,s)&&(n=!0)}return n;function r(t,n){for(const i of e[ao("0xd")]({skipNotAttached:!0})[ao("0x2f")]((e=>"attribute"==e[ao("0x43")]&&e[ao("0x3e")][ao("0x15")]==t)))i.setAttribute(ao("0x15"),n)}function o(t,e){let n=t[ao("0x4a")],i=!1;for(;n;)n[ao("0x3e")].groupId!=e&&(r(n[ao("0x3e")][ao("0x15")],e),n.setAttribute(ao("0x15"),e),i=!0),n=n.next;return i}}[ao("0x5d")](){const t=this[ao("0x1a")],e=t[ao("0x44")],n=t[ao("0x20")][ao("0x72")](ao("0x1d"));this._registerLegacyDescription(),n[ao("0xb")][ao("0x65")](ao("0x6"),ao("0x4b"),ao("0x2d"),(function(e,n){const i=[];for(let n of e)n.start[ao("0x1c")]===n[ao("0x5b")][ao("0x60")]&&(n=t[ao("0x54")][ao("0x6a")](t[ao("0x54")][ao("0x62")](n[ao("0x69")][ao("0x1c")],0))),i[ao("0x32")](n);t[ao("0x54")][ao("0x6d")]((e=>{const r=t.model.document[ao("0x4d")],o=Array.from(r[ao("0xf")]())[ao("0x17")]((t=>s.LiveRange[ao("0x6f")](t)));e.setSelection(i),t[ao("0x6b")][ao("0x72")](n[ao("0xe")]).refresh(),n[ao("0x14")].push({forceDefaultExecution:!0}),t[ao("0x29")](n[ao("0xe")],...n[ao("0x14")]),e[ao("0x64")](o);for(const t of o)t.detach()}))})),n._descriptionFactory[ao("0x21")]((function(e){const n=!t[ao("0x54")][ao("0x26")][ao("0x73")](e),i=e[ao("0x61")],r=e[ao("0x6c")],o=e[ao("0x78")](ao("0x37")),s=!i||i[ao("0x78")](ao("0x37"))!==o,x=!r||r[ao("0x78")](ao("0x37"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Ji(e,"ELEMENT_LIST_ITEM",t)))}[ao("0x68")](){const t=this[ao("0x1a")],e=t.locale;function n(e){const n=t.commands[ao("0x72")](ao("0x31"))[ao("0x4")],i=t[ao("0x6b")].get(ao("0xc"))[ao("0x4")];return"numberedList"===e?n:i}t[ao("0x20")][ao("0x72")](ao("0x1d"))[ao("0x33")].registerDescriptionCallback((function(i){if("formatBlock"!=i[ao("0x43")])return;const{data:r}=i;if(!r)return;let o,s,x,a;switch(r[ao("0xe")]){case"bulletedList":x=r.commandParams[0][ao("0x10")],a=n(r.commandName),o=ao(x?"0x48":"0x11"),!a&&t[ao("0x56")][ao("0x72")](ao("0x71"))||(o=ao("0x3a")),s={type:ao("0x76"),content:Ji(e,o,Ji(e,ao("0x74")))};break;case ao("0xc"):x=r[ao("0x14")][0][ao("0x10")],a=n(r.commandName),o=x?"*Format:* insert into %0":ao("0x11"),!a&&t.config[ao("0x72")]("list.multiBlock")||(o=ao("0x3a")),s={type:ao("0x76"),content:Ji(e,o,Ji(e,ao("0x3c")))};break;case ao("0x38"):o="*Indent:* %0",s={type:"format",content:Ji(e,o,Ji(e,"ELEMENT_LIST_ITEM"))};break;case ao("0x58"):o=function(t){const e=t[ao("0x1f")]();let n=e.start[ao("0x1c")];for(;n&&e[ao("0x77")](n);){if(n[ao("0x78")](ao("0x13"))>0)return!1;n=n[ao("0x6c")]}return!0}(i)?Ji(e,ao("0x11"),Ji(e,(c=i,ao("0x1b")+c.getFirstRange()[ao("0x69")][ao("0x1c")][ao("0x78")](ao("0x2b"))[ao("0x7")]()+ao("0x52")))):Ji(e,ao("0x16"),Ji(e,ao("0x9"))),s={type:ao("0x76"),content:o};break;case ao("0x3b"):case"mergeListItemForward":!1===r[ao("0x24")]&&(o=ao("0x30"),s={type:ao("0x19"),content:Ji(e,o,Ji(e,ao("0x9")))})}var c;return s}))}}function lo(t){let e=t[ao("0x1f")]().start[ao("0x1c")][ao("0x61")];for(;e;){const n=e[ao("0x78")]("listItemId");if(!n)return!1;if(n==t[ao("0x46")].newValue)return ao("0x6e");if(n==t[ao("0x46")][ao("0x2c")])return ao("0x2c");e=e[ao("0x61")]}return!1}const uo=["registerDescriptionCallback","format","has","includes","ELEMENT_","default","commandParams","_LIST_DEFAULT","listStyle","FORMAT_LIST_REVERSED","find","data","plugins","listType","upper-roman","head","_registerLegacyDescription","getSuggestions","listReversed","bind","getAttribute","locale","*Remove format:* %0","newValue","getFirstRange","registerAttributeLabel","afterInit","formatBlock","nodeAfter","oldValue","square","commandName","type","get","editor","_enableDefaultAttributesIntegration","batch","toUpperCase","TrackChangesEditing","circle","registerPostFixer","key","model","attribute","FORMAT_LIST_START","_descriptionFactory","config","disc","_LIST_","replace","_getTranslationKeyForListStyle","*Change to:* %0","numbered","next","*Format:* set start index to %0","bulleted","start","_findSuggestions","listStart","*Set format:* %0"];var go,fo;go=uo,fo=405,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x29")](){if(!this[ho("0x31")].plugins[ho("0x11")]("ListPropertiesEditing"))return;const t=this.editor[ho("0x1")][ho("0x30")]("list.properties"),e=this.editor[ho("0x1b")][ho("0x30")](ho("0x35"));t.styles&&e[ho("0x32")](ho("0x17"),[],[ho("0x17")]),t.reversed&&e[ho("0x32")](ho("0x21"),[],[ho("0x21")]),t.startIndex&&e[ho("0x32")](ho("0xd"),[],["listStart"]);const n={type:ho("0x10"),content:""};e[ho("0x0")][ho("0xf")](this.handleDescriptions[ho("0x22")](this));const i=this[ho("0x31")].locale;e._descriptionFactory[ho("0x28")](ho("0x21"),Ji(i,ho("0x18"))),e[ho("0x0")][ho("0xf")]((t=>{const{data:e}=t;if(e&&ho("0x21")==e[ho("0x38")])return null==e[ho("0x26")]||0==e[ho("0x26")]&&null==e.oldValue?n:void 0})),e[ho("0x0")].registerAttributeLabel(ho("0xd"),Ji(i,ho("0x3b"))),e[ho("0x0")][ho("0xf")]((t=>{const{data:e}=t;if(e&&ho("0xd")==e[ho("0x38")])return null==e[ho("0x26")]||1==e.newValue&&null==e[ho("0x2c")]?n:void 0})),this.editor[ho("0x39")].document[ho("0x37")]((t=>{if(t[ho("0x33")].isUndo)return!1;let n=!1;const i=e[ho("0x20")]({skipNotAttached:!0}).filter((t=>{const n=e._getAttributeKey(t);return ho("0xd")==n||ho("0x21")==n}));for(const r of i)"numbered"!=r.getFirstRange()[ho("0xb")][ho("0x2b")][ho("0x23")](ho("0x1c"))&&(e[ho("0xc")](r[ho("0x27")](),ho("0x3a"))[ho("0x19")]((t=>ho("0x1c")==e._getAttributeKey(t.suggestion)))||(t.removeMarker(r.getFirstMarker()),n=!0));return n})),this[ho("0x1f")]()}handleDescriptions(t){const e=this[ho("0x31")][ho("0x24")],{data:n}=t,i={type:ho("0x10"),content:""};if(!n||"listStyle"!=n[ho("0x38")])return;if(!n[ho("0x2c")])return ho("0x14")==n.newValue?i:{type:ho("0x10"),content:""+Ji(e,ho("0xe"),Ji(e,this[ho("0x5")](n[ho("0x26")])))};if(!n.newValue){if("default"==n.oldValue)return i;let r=t.head;for(;r;){if(r[ho("0x1a")]&&ho("0x1c")==r[ho("0x1a")][ho("0x38")]&&r[ho("0x1a")][ho("0x26")])return i;r=r[ho("0x8")]}return{type:"format",content:""+Ji(e,ho("0x25"),Ji(e,this._getTranslationKeyForListStyle(n[ho("0x2c")])))}}if(ho("0x14")!=n[ho("0x26")])return{type:ho("0x10"),content:""+Ji(e,ho("0xe"),Ji(e,this._getTranslationKeyForListStyle(n[ho("0x26")])))};let r=t[ho("0x1e")];for(;r;){if(r[ho("0x1a")]&&"listType"==r.data[ho("0x38")]&&r[ho("0x1a")].newValue&&r.data.oldValue)return i;r=r[ho("0x8")]}const o=t[ho("0x27")]()[ho("0xb")].nodeAfter[ho("0x23")](ho("0x1c"));return{type:ho("0x10"),content:Ji(e,ho("0xe"),Ji(e,ho("0x13")+o[ho("0x34")]()+ho("0x16")))}}[ho("0x1f")](){const t=this.editor,e=t[ho("0x24")];t[ho("0x1b")].get(ho("0x35"))[ho("0x0")][ho("0xf")]((t=>{if(ho("0x2a")!=t.type)return;const{data:n}=t;if(!n)return;let i,r;switch(n[ho("0x2e")]){case ho("0x17"):i=ho("0x6"),r={type:ho("0x10"),content:Ji(e,i,Ji(e,this[ho("0x5")](n[ho("0x15")][0][ho("0x2f")])))};break;case ho("0x21"):i=n.commandParams[0].reversed?"*Format:* set order to reversed":"*Format:* set order to regular",r={type:ho("0x10"),content:Ji(e,i)};break;case"listStart":i=ho("0x9"),r={type:"format",content:Ji(e,i,n[ho("0x15")][0].startIndex)}}return r}))}_getTranslationKeyForListStyle(t){return"ELEMENT_"+(e=t,po[ho("0x12")](e)?ho("0xa"):bo[ho("0x12")](e)?ho("0x7"):null)[ho("0x34")]()+ho("0x3")+t[ho("0x34")]()[ho("0x4")](/-/g,"_");var e}}const po=[ho("0x2"),ho("0x36"),ho("0x2d")],bo=["decimal","decimal-leading-zero","lower-roman",ho("0x1d"),"lower-latin","upper-latin"];var Eo=n(331);const _o=["setSelection","getFirstPosition","ck-suggestion-marker-split","mapper","split","init","showSuggestionHighlights","getFirstRange","bind","selection","addMarker:suggestion:insertion","remove","change","hasClass","document","commands","afterExecute","parent","markerName","TrackChangesEditing","downcastDispatcher","writer","enterBlock","markerNameToElements","end","options","enter","editing","high","createRange","enableCommand","markInsertion","plugins","model","data","removeMarker:suggestion:insertion","fromRange","createPositionAt","detach"];var To,yo;To=_o,yo=292,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 requires(){return[Eo.Enter]}[Co("0x19")](){const t=this.editor,e=t[Co("0xd")].get(Co("0x0")),n=t[Co("0x23")].get("enter");e[Co("0xb")](Co("0x7"),(()=>{t[Co("0xe")][Co("0x20")]((i=>{const r=t[Co("0xe")][Co("0x22")][Co("0x1d")],o=r[Co("0x15")](),x=s.LiveRange[Co("0x11")](r[Co("0x1b")]());if(n[Co("0x3")](i)){const n=t[Co("0xe")][Co("0x12")](o[Co("0x25")].nextSibling,0),r=i.createRange(o,n);e[Co("0xc")](r)}else i[Co("0x14")](i[Co("0xa")](x[Co("0x5")]));x[Co("0x13")](),n.fire(Co("0x24"),{writer:i})}))})),t.editing.downcastDispatcher.on(Co("0x1e"),Qr(t,Co("0x18")),{priority:Co("0x9")}),t[Co("0x8")].downcastDispatcher.on(Co("0x10"),((t,e,n)=>{const i=n[Co("0x17")][Co("0x4")](e[Co("0x26")]);if(i)for(const t of i)t[Co("0x21")](Co("0x16"))&&(n[Co("0x17")].unbindElementFromMarkerName(t,e[Co("0x26")]),n[Co("0x2")][Co("0x1f")](t))}),{priority:Co("0x9")}),t[Co("0xf")][Co("0x1")].on(Co("0x1e"),((e,n,i)=>{i[Co("0x6")][Co("0x1a")]&&Qr(t,Co("0x18"),{showActiveMarker:!1})[Co("0x1c")](this)(e,n,i)}),{priority:"high"})}}const ko=["getIntersection","has","afterInit","createRange","item","findPrevious","model","find","markers","getMarkersGroup","editor","end","replaceAll","_isInDeletionRange","plugins","enableCommand","FindAndReplaceEditing","findNext","createPositionAt","getRange","get","findByTextCallback","handleFindCommand","filter","FindAndReplaceUtils"];var So,Io;So=ko,Io=183,function(t){for(;--t;)So.push(So.shift())}(++Io);const Ro=function(t,e){return ko[t-=0]};class vo extends t.Plugin{[Ro("0x13")](){if(!this[Ro("0x2")][Ro("0x6")][Ro("0x12")](Ro("0x8")))return;const t=this.editor[Ro("0x6")].get("TrackChangesEditing");t.enableCommand(Ro("0x18"),this[Ro("0xe")].bind(this)),t[Ro("0x7")](Ro("0x9")),t.enableCommand(Ro("0x16")),t[Ro("0x7")]("replace"),t[Ro("0x7")](Ro("0x4"))}[Ro("0xe")](t,e,n={}){const i=this[Ro("0x2")][Ro("0x6")][Ro("0xc")](Ro("0x10"));return t((t=>("string"==typeof e?i[Ro("0xd")](e,n):e)(t)[Ro("0xf")]((e=>!1===this[Ro("0x5")](e,t[Ro("0x15")])))),n)}_isInDeletionRange(t,e){const n=this[Ro("0x2")][Ro("0x17")][Ro("0x14")](this[Ro("0x2")].model[Ro("0xa")](e,t.start),this[Ro("0x2")][Ro("0x17")][Ro("0xa")](e,t[Ro("0x3")]));for(const t of this[Ro("0x2")][Ro("0x17")][Ro("0x0")][Ro("0x1")]("suggestion:deletion"))if(null!==n[Ro("0x11")](t[Ro("0xb")]()))return!0;return!1}}const No=["*Set font family:* %0","formatInline","*Reset font family*","normalizeSizeOptions","FORMAT_FONT_COLOR","type","commandName","label","registerAttributeLabel","value","fontColor.colors","_registerLegacyDescription","fontColor","*Set font color:* %0","FontSize","*Reset font background color*","*Set font size:* %0","editor","toLowerCase","*Reset font color*","fontBackgroundColor","fontSize","FORMAT_FONT_SIZE","model","fontSize.options","config","fontBackgroundColor.colors","*Reset font size*","_descriptionFactory","locale","trim","commandParams","registerDescriptionCallback","get","_enableDefaultAttributesIntegration","format","find","has","TrackChangesEditing","plugins","fontFamily","FontBackgroundColorEditing","FORMAT_FONT_FAMILY","FontColorEditing","FontSizeEditing"];var Lo,Mo;Lo=No,Mo=168,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:wo("0xb"),commandName:wo("0x21")},{pluginName:"FontFamilyEditing",commandName:wo("0x7")},{pluginName:wo("0xa"),commandName:wo("0x18")},{pluginName:wo("0x8"),commandName:wo("0x20")}];class Fo extends t.Plugin{afterInit(){const t=this[wo("0x1d")].locale,e=this.editor[wo("0x6")][wo("0x0")](wo("0x5"));for(const{pluginName:t,commandName:n}of Oo)this.editor[wo("0x6")][wo("0x4")](t)&&e[wo("0x1")](n,[n]);t.t,e[wo("0x28")][wo("0x14")](wo("0x21"),Ji(t,wo("0x22"))),e[wo("0x28")].registerAttributeLabel(wo("0x7"),Ji(t,wo("0x9"))),e[wo("0x28")][wo("0x14")](wo("0x18"),Ji(t,wo("0x10"))),e[wo("0x28")].registerAttributeLabel(wo("0x20"),Ji(t,"FORMAT_FONT_BACKGROUND")),this[wo("0x17")]()}_registerLegacyDescription(){const t=this[wo("0x1d")],e=t[wo("0x29")];t[wo("0x6")][wo("0x0")](wo("0x5"))[wo("0x28")][wo("0x2c")]((t=>{const n=e.t;if(wo("0xd")!=t[wo("0x11")])return;const{data:i}=t;if(null!=i){if(wo("0x21")==i[wo("0x12")]){const t=i[wo("0x2b")][0][wo("0x15")];if(t){const i=n(this[wo("0x1d")][wo("0x6")][wo("0x0")](wo("0x1a"))[wo("0xf")](this[wo("0x1d")][wo("0x25")][wo("0x0")](wo("0x24")))[wo("0x3")]((e=>e[wo("0x23")]==t)).title)[wo("0x1e")]();return{type:"format",content:Ji(e,wo("0x1c"),i)}}return{type:wo("0x2"),content:Ji(e,wo("0x27"))}}if(wo("0x7")==i.commandName){const t=i[wo("0x2b")][0].value;return t?{type:wo("0x2"),content:Ji(e,wo("0xc"),t)}:{type:wo("0x2"),content:Ji(e,wo("0xe"))}}if(wo("0x18")==i.commandName){const t=i.commandParams[0].value;if(t){const i=(0,r.normalizeColorOptions)(this[wo("0x1d")][wo("0x25")][wo("0x0")](wo("0x16")))[wo("0x3")]((e=>e.model==t));let o=t,s="";return i&&(o=i[wo("0x13")],s=n(o)[wo("0x1e")]()),{type:wo("0x2"),content:Ji(e,wo("0x19"),s)[wo("0x2a")](),color:{value:t,title:s||o}}}return{type:wo("0x2"),content:Ji(e,wo("0x1f"))}}if(wo("0x20")==i[wo("0x12")]){const t=i[wo("0x2b")][0][wo("0x15")];if(t){const i=(0,r.normalizeColorOptions)(this[wo("0x1d")].config.get(wo("0x26")))[wo("0x3")]((e=>e[wo("0x23")]==t));let o=t,s="";return i&&(o=i[wo("0x13")],s=n(o).toLowerCase()),{type:wo("0x2"),content:Ji(e,"*Set font background color:* %0",s)[wo("0x2a")](),color:{value:t,title:s||o}}}return{type:wo("0x2"),content:Ji(e,wo("0x1b"))}}}}))}}const Do=["fontSize.options","normalizeSizeOptions","*Remove all formatting*","formatInline","*Set format to:* %0","pasteFormat","_descriptionFactory","_enableDefaultAttributesIntegration","find","format","FontSize","commandParams","registerDescriptionCallback","boolean","get","fontColor.colors","config","editor","fontSize","join","toLowerCase","type","model","charAt","length","commands","split","locale","_registerLegacyDescription","title","entries","slice","copyFormat","fontBackgroundColor","commandName","plugins","TrackChangesEditing"];var Bo,Po;Bo=Do,Po=389,function(t){for(;--t;)Bo.push(Bo.shift())}(++Po);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{afterInit(){const t=this[Uo("0x23")],e=t[Uo("0x10")][Uo("0x20")](Uo("0x11")),n=t.commands.get(Uo("0xd")),i=t[Uo("0x6")][Uo("0x20")](Uo("0x17"));n&&i&&(e[Uo("0x19")](Uo("0x17")),e.enableCommand(Uo("0xd")),this[Uo("0x9")]())}[Uo("0x9")](){const t=this[Uo("0x23")],e=t[Uo("0x8")];t[Uo("0x10")][Uo("0x20")](Uo("0x11"))[Uo("0x18")][Uo("0x1e")]((n=>{if("formatBlock"!=n[Uo("0x2")]&&Uo("0x15")!=n[Uo("0x2")])return;const{data:i}=n;if(i&&Uo("0x17")===i[Uo("0xf")]){const n=[],r=i[Uo("0x1d")][0];for(const[e,i]of Object[Uo("0xb")](r))n.push(Go(t,e,i));return n[Uo("0x5")]?{type:"format",content:Ji(e,Uo("0x16"),n[Uo("0x0")](", "))}:{type:Uo("0x1b"),content:Ji(e,Uo("0x14"))}}}))}}function Go(t,e,n){const i=t[Uo("0x8")].t,o=e[Uo("0x7")](/(?=[A-Z])/)[Uo("0x0")](" "),s=i(o[Uo("0x4")](0).toUpperCase()+o[Uo("0xc")](1))[Uo("0x1")]();if(Uo("0x1f")==typeof n)return s;if("fontColor"===e||Uo("0xe")===e){const e=(0,r.normalizeColorOptions)(t[Uo("0x22")][Uo("0x20")](Uo("0x21")))[Uo("0x1a")]((t=>t[Uo("0x3")]==n));return s+" ("+(e?i(e.label)[Uo("0x1")]():n)+")"}if(Uo("0x24")===e&&isNaN(parseFloat(n))){const e=t[Uo("0x10")].get(Uo("0x1c"))[Uo("0x13")](t[Uo("0x22")].get(Uo("0x12")))[Uo("0x1a")]((t=>t[Uo("0x3")]==n));return s+" ("+(e?i(e[Uo("0xa")])[Uo("0x1")]():n)+")"}return s+" ("+n+")"}const Vo=["match","value","_registerLegacyDescription","find","paragraph","ELEMENT_HEADING","_enableDefaultAttributesIntegration","config","model","type","title","editor","commandName","heading.options","afterInit","locale","*Change to:* %0","heading","_getHeadingLevel","ELEMENT_HEADING_CUSTOM","registerElementLabel","_descriptionFactory","plugins","has","get","format","name","_headingOptions","TrackChangesEditing","view","formatBlock"];var Ho,zo;Ho=Vo,zo=381,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0x5")](){const t=this[Wo("0x2")];if(!t[Wo("0xd")][Wo("0xe")]("HeadingEditing"))return;this[Wo("0x12")]=t[Wo("0x1d")][Wo("0xf")](Wo("0x4"));const e=t[Wo("0x6")],n=t[Wo("0xd")].get(Wo("0x13"));n[Wo("0x1c")](Wo("0x8"));for(const t of this._headingOptions)Wo("0x1a")!=t[Wo("0x1e")]&&n._descriptionFactory[Wo("0xb")](t.model,(n=>{const i=this._getHeadingLevel(t.model);return null!==i?(s=n,x=i,Ji(e,Wo("0x1b"),[s,x])):(r=n,o=t[Wo("0x1")],Ji(e,Wo("0xa"),[r,o]));var r,o,s,x}));this._registerLegacyDescription()}[Wo("0x18")](){const t=this[Wo("0x2")],e=t.locale;t.plugins[Wo("0xf")]("TrackChangesEditing")[Wo("0xc")].registerDescriptionCallback((t=>{if(Wo("0x15")!=t[Wo("0x0")])return;const{data:n}=t;if(n&&"heading"==n[Wo("0x3")]){const t=n.commandParams[0][Wo("0x17")],s=this[Wo("0x9")](t);if(null!==s)return{type:Wo("0x10"),content:Ji(e,"*Change to:* %0",(1,o=s,Ji(e,Wo("0x1b"),[1,o])))};const x=this[Wo("0x12")].find((e=>e[Wo("0x1e")]===t))[Wo("0x1")];return{type:Wo("0x10"),content:Ji(e,Wo("0x7"),(i=1,r=x,Ji(e,Wo("0xa"),[i,r])))}}var i,r,o}))}[Wo("0x9")](t){var e,n;const i=t[Wo("0x16")](/^heading(\d+)/);if(i)return i[1];const r=null===(e=this._headingOptions)||void 0===e?void 0:e[Wo("0x19")]((e=>e.model==t));if(r&&r[Wo("0x14")]){const t=r.view,e=(null!==(n=t[Wo("0x11")])&&void 0!==n?n:t)[Wo("0x16")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["title","registerAttributeLabel","format","commandParams","color","find","_descriptionFactory","afterInit","HighlightEditing","get","*Set highlight:* %0","has","type","toLowerCase","plugins","locale","value","highlight.options","FORMAT_HIGHLIGHT","highlight","_registerLegacyDescription","formatInline","TrackChangesEditing"];var Xo,$o;Xo=qo,$o=141,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0x4")](){const t=this.editor;if(!t.plugins[Zo("0x8")](Zo("0x5")))return;const e=t[Zo("0xb")][Zo("0x6")](Zo("0x13")),n=t[Zo("0xc")];e._enableDefaultAttributesIntegration("highlight",[Zo("0x10")]),e[Zo("0x3")][Zo("0x15")](Zo("0x10"),Ji(n,Zo("0xf"))),this[Zo("0x11")]()}_registerLegacyDescription(){const t=this.editor,e=t[Zo("0xc")];t[Zo("0xb")][Zo("0x6")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((n=>{if(Zo("0x12")!=n[Zo("0x9")])return;const{data:i}=n;if(i&&"highlight"==i.commandName){const n=e.t,r=i[Zo("0x0")][0][Zo("0xd")];if(r){const i=t.config[Zo("0x6")](Zo("0xe"))[Zo("0x2")]((t=>t.model==r)),o=n(i[Zo("0x14")])[Zo("0xa")]();return{type:Zo("0x16"),content:Ji(e,Zo("0x7"),o),color:{value:i[Zo("0x1")],title:i.title}}}return{type:"format",content:Ji(e,"*Remove highlight*",Ji(e,Zo("0xf")))}}}))}}const Jo=["elementToStructure","get","horizontalLine","for","_descriptionFactory","createPositionAt","TrackChangesEditing","locale","enableCommand","editor","ck-horizontal-line","HorizontalLineEditing","plugins","showSuggestionHighlights","insert","createContainerElement","ELEMENT_HORIZONTAL_LINE","registerElementLabel"];var Qo,ts;Qo=Jo,ts=272,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("0x7")];if(!t[es("0xa")].has(es("0x9")))return;t[es("0xa")][es("0x11")](es("0x4"))[es("0x6")](es("0x0"));const e=t.plugins[es("0x11")](es("0x4")),n=t[es("0x5")];e[es("0x2")][es("0xf")](es("0x0"),(t=>Ji(n,es("0xe"),t))),t.conversion[es("0x1")]("dataDowncast")[es("0x10")]({model:es("0x0"),view:(t,{writer:e,options:n})=>{if(!n[es("0xb")])return null;const i=e[es("0xd")]("div"),r=e.createEmptyElement("hr");return e.addClass(es("0x8"),i),e[es("0xc")](e[es("0x3")](i,0),r),i},converterPriority:"high"})}}const is=["registerDescriptionCallback","_descriptionFactory","editor","TrackChangesEditing","get","HtmlEmbed","value","ELEMENT_HTML_EMBED","type","nodeAfter","plugins","commandName","htmlEmbed","rawHtml","element","key","*Change %0 content*","_enableDefaultAttributesIntegration","_registerLegacyDescription","format","locale"];var rs,os;rs=is,os=425,function(t){for(;--t;)rs.push(rs.shift())}(++os);const ss=function(t,e){return is[t-=0]};class xs extends t.Plugin{afterInit(){const t=this[ss("0x12")];if(!t[ss("0x5")].has(ss("0x0")))return;const e=t[ss("0x5")][ss("0x14")]("TrackChangesEditing"),n=t[ss("0xf")];e._descriptionFactory.registerElementLabel(ss("0x8"),(t=>Ji(n,ss("0x2"),t))),e[ss("0xc")](ss("0x7"),[],[ss("0x1")]),e[ss("0x11")][ss("0x10")]((t=>{if("attribute"!=t[ss("0x3")])return;const{data:e}=t;if(e&&ss("0x1")==e[ss("0xa")]&&t.getFirstRange().start[ss("0x4")].is(ss("0x9"),"rawHtml")){const t=Ji(n,ss("0x2"));return{type:ss("0xe"),content:Ji(n,ss("0xb"),t)}}})),this[ss("0xd")]()}[ss("0xd")](){const t=this[ss("0x12")],e=t[ss("0xf")];t.plugins.get(ss("0x13"))[ss("0x11")][ss("0x10")]((t=>{if("formatBlock"!=t[ss("0x3")])return;const{data:n}=t;if(n&&ss("0x7")==n[ss("0x6")]){const t=Ji(e,ss("0x2"));return{type:ss("0xe"),content:Ji(e,ss("0xb"),t)}}}))}}const as=["subType","ImageInlineEditing","TrackChangesEditing","imageBlock","imageInline","newValue","*Set image text alternative:* %0","selection","createRangeOn","backward","schema","ImageTextAlternativeEditing","markInsertion","find","width","ImageEditing","commandParams","ELEMENT_IMAGE","document","Inline image to block image","getCaptionFromImageModelElement","end","editor","_enableDefaultAttributesIntegration","change","resizedWidth","getFirstRange","findIndex","resizeImage","forward","ImageUploadEditing","imageTypeInline","ImageCaptionUtils","registerDescriptionCallback","imageTypeBlock","*Reset image width*","insertImage","getClosestSelectedImageElement","markBlockFormat","ImageBlockEditing","FORMAT_IMAGE_SIZE","attribute","toggleImageCaption","_descriptionFactory","accept","toNext","uploadImage","addObject","formatBlock","get","length","insertion","imageCaption","type","plugins","Block image to inline image","formatInline","start","afterInit","_findSuggestions","_registerLegacyDescription","format","discard","has","_suggestionFactory","chain","deletion","nodeAfter","ELEMENT_INLINE_IMAGE","createRange","isCollapsed","alt","registerElementLabel","detach","getNearestSelectionRange","isEqual","registerCustomCallback","join","model","convertInlineImageToBlock","enableCommand","isBlockImage","key","*Remove image text alternative*","previous","caption","getContainedElement","fromPosition","convertBlockImageToInline","getSuggestionCallback","isBefore","nodeBefore","isOwn"];var cs,ls;cs=as,ls=163,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x51")](){const t=this[us("0x2d")];if(!t[us("0x4d")][us("0x56")](us("0x26")))return;const e=t[us("0x4d")][us("0x48")](us("0x19")),n=t[us("0x4d")].get("ImageUtils"),i=t.locale;e[us("0xa")](us("0x3b")),e[us("0x42")][us("0x2")](us("0x1a"),(t=>Ji(i,us("0x28"),t))),e[us("0x42")][us("0x2")](us("0x1b"),(t=>Ji(i,us("0x5b"),t))),e[us("0x42")][us("0x2")]("caption",(()=>Ji(i,"ELEMENT_CAPTION"))),t[us("0x4d")].has(us("0x35"))&&e[us("0xa")](us("0x45")),t[us("0x4d")].has(us("0x3e"))&&t[us("0x4d")][us("0x56")](us("0x18"))&&(e.enableCommand(us("0x36"),((i,r)=>{const o=n[us("0x3c")](t.model[us("0x29")][us("0x1e")]);t[us("0x8")][us("0x2f")]((()=>{e[us("0x3d")](o,{commandName:us("0x36"),commandParams:[r]},[],us("0x12"))}))})),e[us("0xa")](us("0x39"),((i,r)=>{t.model[us("0x2f")]((o=>{let x=n[us("0x3c")](t[us("0x8")][us("0x29")][us("0x1e")]),a=o.createRangeOn(x);const c=s.LivePosition[us("0x11")](a[us("0x50")],"toPrevious"),l=s.LivePosition[us("0x11")](a[us("0x2c")],us("0x44"));e.forceDefaultExecution((()=>i(r))),x=n[us("0x3c")](t[us("0x8")][us("0x29")][us("0x1e")]),a=o[us("0x1f")](x);const u=o[us("0x5c")](c,l);c[us("0x3")](),l[us("0x3")](),e[us("0x3d")](x,{commandName:us("0x36"),commandParams:[r]},[],us("0x9")),u[us("0x50")].isBefore(a[us("0x50")])&&e[us("0x23")](o[us("0x5c")](u[us("0x50")],a[us("0x50")]),us("0x9")),a[us("0x2c")].isBefore(u.end)&&e.markInsertion(o[us("0x5c")](a[us("0x2c")],u[us("0x2c")]),"convertInlineImageToBlock")}))})),e[us("0x57")][us("0x6")](us("0x47"),us("0x9"),us("0x7"),(()=>!1)),e[us("0x57")][us("0x6")]("formatBlock",us("0x9"),us("0x43"),(()=>!1)),e._suggestionFactory[us("0x6")]("formatBlock",us("0x9"),us("0x55"),e[us("0x57")][us("0x13")](us("0x47"),"",us("0x43"))),e[us("0x57")][us("0x6")](us("0x4a"),us("0x9"),"join",(()=>!1)),e[us("0x57")][us("0x6")](us("0x4a"),us("0x9"),us("0x55"),(([n])=>{const i=e[us("0x57")].getSuggestionCallback(us("0x4a"),"","discard");let r=n[us("0x50")],o=n.end;const s=t[us("0x8")].schema[us("0x4")](r,us("0x20")),x=t[us("0x8")][us("0x21")].getNearestSelectionRange(o,us("0x34"));s[us("0x0")]&&(r=s.start),x[us("0x0")]&&(o=x[us("0x2c")]),i([t[us("0x8")][us("0x5c")](r,o)])})),e[us("0x57")][us("0x6")](us("0x47"),us("0x9"),us("0x58"),x),e[us("0x57")][us("0x6")](us("0x4a"),"convertInlineImageToBlock","chain",x)),t[us("0x4d")][us("0x56")]("ImageCaptionEditing")&&(e.enableCommand(us("0x41"),((i,r)=>{const o=t.plugins[us("0x48")](us("0x37"));let s=n[us("0x3c")](t[us("0x8")].document[us("0x1e")]),x=o[us("0x2b")](s);t[us("0x8")][us("0x2f")]((()=>{if(x)return void e.markDeletion(t[us("0x8")][us("0x1f")](x));const a=n[us("0xb")](s);i(r),s=n[us("0x3c")](t[us("0x8")][us("0x29")][us("0x1e")]),x=o[us("0x2b")](s),e[us("0x23")](t[us("0x8")][us("0x1f")](x),a?null:us("0x4b"))}))})),e._suggestionFactory[us("0x6")]("insertion",us("0x4b"),"chain",x));const r=[{type:us("0x47"),subType:"imageStylePreApply"},{type:us("0x4a"),subType:us("0x4b")},{type:"formatBlock",subType:us("0x9")},{type:us("0x4a"),subType:us("0x9")}];function o(t,i){const o=r[us("0x32")]((({type:e,subType:n})=>t[us("0x4c")]==e&&t.subType==n)),s=r[us("0x32")]((({type:t,subType:e})=>i[us("0x4c")]==t&&i.subType==e));if(o<0||s<0)return!1;const x=t[us("0x31")](),a=i.getFirstRange();if((0==o||1==o)&&2==s&&x.isIntersecting(a))return!0;if(2==o&&3==s){const t=e[us("0x52")](x,us("0x4a")).filter((({suggestion:t,meta:e})=>e[us("0x16")]&&"convertInlineImageToBlock"==t[us("0x17")]));if(t[us("0x49")]>1&&a[us("0x2c")].isEqual(x[us("0x50")]))return!0;if(1==t[us("0x49")]&&(x[us("0x50")][us("0x5")](a[us("0x2c")])||x[us("0x2c")][us("0x5")](a[us("0x50")])))return!0}if(3==o&&3==s&&x[us("0x50")][us("0x14")](a.start)){const t=x[us("0x2c")][us("0x5a")],e=a.start[us("0x15")];return n.isBlockImage(t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x4d")][us("0x56")]("ImageResize")&&(e._enableDefaultAttributesIntegration("resizeImage",[],[us("0x30")]),e[us("0x42")].registerAttributeLabel("resizedWidth",Ji(i,us("0x3f")))),t[us("0x4d")][us("0x56")](us("0x22"))&&e[us("0x2e")]("imageTextAlternative",[],[us("0x1")]),e[us("0x42")].registerDescriptionCallback((t=>{if(r[us("0x24")]((({type:e,subType:n})=>t[us("0x4c")]==e&&t[us("0x17")]==n)))return t[us("0xe")]?{}:void 0})),e[us("0x42")][us("0x38")]((t=>{if(us("0x4a")==t[us("0x4c")]||us("0x59")==t[us("0x4c")]){const e=t[us("0x10")]();if(e&&e.is("element",us("0xf")))return{type:us("0x4a")==t[us("0x4c")]?us("0x46"):"removeObject",element:e,quantity:1}}})),e[us("0x42")][us("0x38")]((t=>us("0x47")==t[us("0x4c")]&&us("0x9")==t[us("0x17")]?{type:us("0x54"),content:us("0x2a")}:us("0x47")==t[us("0x4c")]&&"convertBlockImageToInline"==t.subType?{type:us("0x54"),content:us("0x4e")}:void 0)),e[us("0x42")][us("0x38")]((t=>{if(us("0x40")!=t[us("0x4c")])return;const{data:e}=t;if(!e||"alt"!=e[us("0xc")])return;const n=e[us("0x1c")];return n?{type:us("0x54"),content:Ji(i,us("0x1d"),'"'+n+'"')}:{type:us("0x54"),content:Ji(i,us("0xd"))}})),this._registerLegacyDescription()}[us("0x53")](){const t=this[us("0x2d")],e=t.locale;t[us("0x4d")].get(us("0x19"))[us("0x42")][us("0x38")]((t=>{if(us("0x47")!=t[us("0x4c")]&&us("0x4f")!=t.type)return;const{data:n}=t;if(n){if("imageTextAlternative"==n.commandName){const t=n[us("0x27")][0].newValue;return t?{type:"format",content:Ji(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:us("0x54"),content:Ji(e,us("0xd"))}}if(us("0x33")==n.commandName){const t=n[us("0x27")][0][us("0x25")];return t?{type:"format",content:Ji(e,"*Set image width:* %0",t)}:{type:us("0x54"),content:Ji(e,us("0x3a"))}}}}))}}const gs=["has","afterInit","*Format:* replace image URL","registerCustomCallback","src","_registerLegacyDescription","_suggestionFactory","_handleLegacySuggestions","newValue","*Replace image URL*","formatBlock","get","_enableDefaultAttributesIntegration","format","accept","formatInline","discard","type","getSuggestionCallback","ImageEditing","registerDescriptionCallback","locale","_descriptionFactory","attribute","editor","plugins","TrackChangesEditing","replaceImageSource","oldValue"];var fs,hs;fs=gs,hs=467,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x1b")](){if(!this[ms("0x15")][ms("0x16")][ms("0x1a")](ms("0x10")))return;const t=this[ms("0x15")][ms("0x12")],e=this[ms("0x15")][ms("0x16")].get(ms("0x17"));e[ms("0x9")](ms("0x18"),[],[ms("0x1")]),e[ms("0x13")][ms("0x11")]((e=>{if(ms("0x14")!=e[ms("0xe")])return;const{data:n}=e;return n&&ms("0x1")==n.key?n[ms("0x5")]&&n[ms("0x19")]?{type:ms("0xa"),content:Ji(t,ms("0x6"))}:{type:ms("0xa"),content:""}:void 0})),this[ms("0x4")]()}[ms("0x4")](){const t=this[ms("0x15")].plugins[ms("0x8")](ms("0x17"));t[ms("0x3")][ms("0x0")]("formatBlock","replaceImageSource","accept",t[ms("0x3")][ms("0xf")](ms("0x7"),null,ms("0xd"))),t[ms("0x3")][ms("0x0")]("formatBlock","replaceImageSource",ms("0xd"),t[ms("0x3")][ms("0xf")](ms("0x7"),null,ms("0xb"))),this[ms("0x2")]()}[ms("0x2")](){const t=this.editor,e=t.locale;t[ms("0x16")].get("TrackChangesEditing")[ms("0x13")].registerDescriptionCallback((t=>{if(ms("0x7")!=t[ms("0xe")]&&ms("0xc")!=t[ms("0xe")])return;const{data:n}=t;return n&&ms("0x18")==n.commandName?{type:ms("0xa"),content:Ji(e,ms("0x1c"))}:void 0}))}}const bs=["registerCustomCallback","start","get","model","differ","ImageUtils","registerPostFixer","shouldConvertImageType","insertion","isIntersecting","_findSuggestions","refresh","nodeAfter","_descriptionFactory","*Format:* %0","imageStylePreApply","suggestion","accept","getClosestSelectedImageElement","markBlockFormat","convertInlineImageToBlock","findIndex","imageTypeInline","getFirstRange","document","getContainedElement","isBlockImage","_suggestionFactory","isInContent","editor","createRangeOn","commands","getSuggestions","imageStyle","join","setImageNaturalSizeAttributes","registerDescriptionCallback","subType","imageTypeBlock","enableCommand","discard","selection","normalizedStyles","hasSuggestion","getSuggestion","Users","change","newRange","plugins","imageCaption","ImageStyleEditing","commandParams","_registerLegacyDescription","isOwn","author","side","value","FORMAT_SIDE_IMAGE","end","markInlineFormat","filter","from","type","length","formatBlock","imageStylePostApply","next","commandName","title","isEqual","formatInline","_splitMarkerName","name","TrackChangesEditing"];var Es,_s;Es=bs,_s=370,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{afterInit(){const t=this[Ts("0x1d")];if(!t.plugins.has(Ts("0x32")))return;const n=t.plugins[Ts("0x2")](Ts("0x49")),i=t.plugins[Ts("0x2")](Ts("0x5")),r={};n[Ts("0x27")](Ts("0x21"),((r,o)=>{const s=t[Ts("0x30")][Ts("0x2")](Ts("0x2d")).me,x=t[Ts("0x1f")][Ts("0x2")]("imageStyle");let a=i[Ts("0x12")](t[Ts("0x3")][Ts("0x18")][Ts("0x29")]),c=t[Ts("0x3")][Ts("0x1e")](a),l=x[Ts("0x38")];if(l==o[Ts("0x38")])return;const u={commandName:Ts("0x21"),commandParams:[o],formatGroupId:(0,e.uid)()};t.model[Ts("0x2e")]((()=>{if(n[Ts("0x20")]()[Ts("0x3c")]((t=>t[Ts("0x1c")]&&s==t[Ts("0x36")]&&(Ts("0x40")==t.type||Ts("0x46")==t[Ts("0x3e")])&&(Ts("0xf")==t[Ts("0x25")]||"imageStylePostApply"==t.subType)&&t[Ts("0x17")]().isEqual(c))).forEach((t=>n.discardSuggestion(t.head))),a=i.getClosestSelectedImageElement(t[Ts("0x3")][Ts("0x18")][Ts("0x29")]),c=t.model[Ts("0x1e")](a),x[Ts("0xb")](),t[Ts("0x1f")][Ts("0x2")](Ts("0x16"))[Ts("0xb")](),t.commands[Ts("0x2")](Ts("0x26"))[Ts("0xb")](),l=x[Ts("0x38")],l!=o[Ts("0x38")])return i.isInlineImage(a)&&x[Ts("0x7")](o[Ts("0x38")],a)?(r({...o,setImageSizes:!1}),a=i[Ts("0x12")](t.model[Ts("0x18")][Ts("0x29")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(i[Ts("0x1a")](a)?n[Ts("0x13")](a,u,[],"imageStylePostApply"):n[Ts("0x3b")](c,u,"imageStylePostApply"))}))}));for(const e of t[Ts("0x30")][Ts("0x2")](Ts("0x32"))[Ts("0x2a")])r[e[Ts("0x48")]]=e[Ts("0x44")].toLowerCase();n[Ts("0x1b")][Ts("0x0")](Ts("0x40"),Ts("0xf"),"join",(()=>!1)),n._suggestionFactory[Ts("0x0")](Ts("0x40"),Ts("0x41"),Ts("0x22"),(()=>!1)),n[Ts("0x1b")][Ts("0x0")](Ts("0x46"),Ts("0x41"),Ts("0x22"),(()=>!1)),n._suggestionFactory[Ts("0x0")](Ts("0x40"),Ts("0xf"),Ts("0x11"),(([t])=>{i[Ts("0x23")](t[Ts("0x19")]())})),n._suggestionFactory[Ts("0x0")](Ts("0x40"),Ts("0xf"),Ts("0x28"),((t,e)=>{n[Ts("0x1b")].getSuggestionCallback(Ts("0x40"),"",Ts("0x11"))(t,{commandName:e[Ts("0x43")],commandParams:e.commandReversedParams})})),n._suggestionFactory[Ts("0x0")]("formatBlock",Ts("0xf"),"chain",(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x40"),subType:Ts("0xf")},{type:"insertion",subType:Ts("0x31")},{type:Ts("0x40"),subType:Ts("0x14")},{type:Ts("0x8"),subType:"convertInlineImageToBlock"}];function s(t,e){const r=o[Ts("0x15")]((({type:e,subType:n})=>t[Ts("0x3e")]==e&&t[Ts("0x25")]==n)),s=o[Ts("0x15")]((({type:t,subType:n})=>e[Ts("0x3e")]==t&&e[Ts("0x25")]==n));if(r<0||s<0)return!1;const x=t[Ts("0x17")](),a=e[Ts("0x17")]();if((0==r||1==r)&&2==s&&x[Ts("0x9")](a))return!0;if(2==r&&3==s){const t=n[Ts("0xa")](x,"insertion")[Ts("0x3c")]((({suggestion:t,meta:e})=>e[Ts("0x35")]&&Ts("0x14")==t.subType));if(t[Ts("0x3f")]>1&&a.end[Ts("0x45")](x[Ts("0x1")]))return!0;if(1==t.length&&(x.start[Ts("0x45")](a[Ts("0x3a")])||x.end.isEqual(a[Ts("0x1")])))return!0}if(3==r&&3==s&&x[Ts("0x1")].isBefore(a[Ts("0x1")])){const t=x[Ts("0x3a")][Ts("0xc")],e=a[Ts("0x1")].nodeBefore;return i.isBlockImage(t)&&t===e}return!1}t[Ts("0x3")][Ts("0x18")][Ts("0x6")]((()=>{let e=!1;const r=Array[Ts("0x3d")](t[Ts("0x3")].document[Ts("0x4")].getChangedMarkers());for(const{name:t,data:o}of r){const{group:r,type:s,subType:x,id:a}=n[Ts("0x47")](t);if(Ts("0x10")==r&&n[Ts("0x2b")](a)){if(Ts("0x40")==s&&(Ts("0xf")==x||"imageStylePostApply"==x)){const t=n[Ts("0x2c")](a);if(o[Ts("0x2f")]){const r=t.getFirstRange().getContainedElement();if(i.isBlockImage(r))continue;n.discardSuggestion(t),e=!0}}if(Ts("0x8")==s&&"imageCaption"==x&&!o[Ts("0x2f")]){const t=n.getSuggestion(a);t.next&&t[Ts("0x42")].isInContent&&(n.discardSuggestion(t[Ts("0x42")]),e=!0)}}}return e})),this._registerLegacyDescription(r)}[Ts("0x34")](t){const e=this[Ts("0x1d")],n=e.locale;e[Ts("0x30")][Ts("0x2")](Ts("0x49"))[Ts("0xd")][Ts("0x24")]((e=>{if("formatBlock"!=e.type&&"formatInline"!=e[Ts("0x3e")])return;const{data:i}=e;if(!i||Ts("0x21")!=i.commandName)return;const r=i[Ts("0x33")][0][Ts("0x38")];return o=Ts("0x37")===r?Ji(n,Ts("0x39")):t[r]||r,{type:"format",content:Ji(n,Ts("0xe"),o)};var o}))}}const Cs=["high","commands","trackChanges","get","_handleImportedData","collaboration_features","importWord","_trackChangesValueDuringImport","track_changes","dataInsert","editor","_trackChangesExecuted","value","TrackChangesEditing","execute","listenTo","bind","afterInit","Users","plugins"];var As,ks;As=Cs,ks=365,function(t){for(;--t;)As.push(As.shift())}(++ks);const Ss=function(t,e){return Cs[t-=0]};class Is extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[Ss("0x6")]=!1}[Ss("0xc")](){const t=this[Ss("0x5")],e=t[Ss("0x10")][Ss("0x12")](Ss("0x1")),n=t[Ss("0x10")][Ss("0x12")](Ss("0x11"));e&&(e.on(Ss("0x9"),((t,[,e])=>{this[Ss("0x2")]=n.value,e[Ss("0x0")][Ss("0x3")]=!this[Ss("0x2")]}),{priority:Ss("0xf")}),this[Ss("0xa")](e,Ss("0x4"),this[Ss("0x13")][Ss("0xb")](this)),this[Ss("0xa")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t.plugins[Ss("0x12")]("TrackChangesEditing").enableCommand(Ss("0x1")))}[Ss("0x13")](t,e){const{suggestions:n}=e,i=this.editor[Ss("0x10")][Ss("0x12")](Ss("0x11")),r=i[Ss("0x7")];this[Ss("0x2")]!==r&&(i.execute(),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:i})=>{const r={id:t,type:e,authorId:this[Ss("0x5")][Ss("0xe")][Ss("0x12")](Ss("0xd")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:i?new Date(i):new Date,source:"importWord"}}};this[Ss("0x5")].plugins.get(Ss("0x8"))._setSuggestionData(r)}))}}const Rs=["format","_registerLegacyDescription","afterInit","_registerBlockAttribute","type","indentBlock","editor","IndentBlock","get","outdentBlock","commandName","FORMAT_INDENT","outdent","registerAttributeLabel","plugins","has","getItemLabel","getItems","locale","enableCommand","IndentEditing","*Indent:* %0","indent","blockIndent","TrackChangesEditing","registerDescriptionCallback","_descriptionFactory","_enableDefaultAttributesIntegration"];var vs,Ns;vs=Rs,Ns=251,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Rs[t-=0]};class Ms extends t.Plugin{[Ls("0x3")](){const t=this.editor,e=t.plugins[Ls("0x9")](Ls("0x19"));if(t[Ls("0xf")][Ls("0x10")](Ls("0x15"))&&(e[Ls("0x14")](Ls("0x17")),e[Ls("0x14")](Ls("0xd"))),t[Ls("0xf")][Ls("0x10")](Ls("0x8")))for(const t of["indentBlock","outdentBlock"])e[Ls("0x0")](t);const n=t[Ls("0x13")];e[Ls("0x4")]("blockIndent"),e[Ls("0x1b")][Ls("0xe")](Ls("0x18"),Ji(n,Ls("0xc"))),this[Ls("0x2")]()}[Ls("0x2")](){const t=this[Ls("0x7")],e=t[Ls("0x13")],n=t[Ls("0xf")].get(Ls("0x19"));n._descriptionFactory[Ls("0x1a")]((t=>{if("formatBlock"!=t[Ls("0x5")])return;const{data:i}=t;if(!i)return;if(Ls("0x6")!=i[Ls("0xb")]&&Ls("0xa")!=i[Ls("0xb")])return;const r=t[Ls("0x12")]()[0],o=n._descriptionFactory[Ls("0x11")](r);return Ls("0x6")==i[Ls("0xb")]?{type:"format",content:Ji(e,Ls("0x16"),o)}:Ls("0xa")==i[Ls("0xb")]?{type:Ls("0x1"),content:Ji(e,"*Outdent:* %0",o)}:void 0}))}}var ws,Os,Fs=["TrackChangesEditing","init","editor","input","get","enableCommand","requires","plugins"];ws=Fs,Os=431,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("0x7")](){return[qr.Input]}[Ds("0x2")](){this[Ds("0x3")][Ds("0x0")][Ds("0x5")](Ds("0x1"))[Ds("0x6")](Ds("0x4"))}}const Ps=["_enableDefaultAttributesIntegration","linkHref","link (","has","commandName","manualDecorators","_descriptionFactory","toLowerCase","type","plugins","*Set link:* %0","key","editor","get","commandParams","locale","TrackChangesEditing","registerDescriptionCallback","*Remove link*","link","formatInline","unlink","format","label","map","LinkEditing"];var Us,js;Us=Ps,js=220,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{afterInit(){const t=this[Gs("0x0")];if(!t[Gs("0x17")][Gs("0x11")](Gs("0xd")))return;const e=t[Gs("0x17")].get("TrackChangesEditing"),n=t.commands[Gs("0x1")](Gs("0x7"));e[Gs("0xe")]("link",[Gs("0xf"),...n[Gs("0x13")][Gs("0xc")]((t=>t.id))]),e[Gs("0xe")](Gs("0x9"));for(const t of n[Gs("0x13")])e._descriptionFactory.registerAttributeLabel(t.id,Gs("0x10")+t[Gs("0xb")][Gs("0x15")]()+")");e._descriptionFactory[Gs("0x5")]((e=>{if("attribute"!=e[Gs("0x16")])return;const{data:n}=e;if(!n||Gs("0xf")!=n[Gs("0x19")])return;const i=n.newValue,r=t[Gs("0x3")];return{type:Gs("0xa"),content:null==i?Ji(r,Gs("0x6")):Ji(r,"*Set link:* %0",'"'+i+'"')}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Gs("0x0")],e=t[Gs("0x3")];t[Gs("0x17")][Gs("0x1")](Gs("0x4"))[Gs("0x14")][Gs("0x5")]((t=>{if(Gs("0x8")!=t[Gs("0x16")])return;const{data:n}=t;if(n){if(Gs("0x7")==n[Gs("0x12")]){const t=n[Gs("0x2")][0];return{type:"format",content:Ji(e,Gs("0x18"),'"'+t+'"')}}return"unlink"==n[Gs("0x12")]?{type:Gs("0xa"),content:Ji(e,Gs("0x6"))}:void 0}}))}}const Hs=["plugins","element","numbered","numberedList","outdentList","value","name","has","model","blockName","registerElementLabel","parent","getAttribute","end","type","ELEMENT_BULLETED_LIST","from","get","todo","*Outdent:* %0","TrackChangesEditing","selection","before","indentList","formatBlock","enableCommand","commandName","commands","ELEMENT_LIST_ITEM","listItem","*Change to:* %0","ELEMENT_NUMBERED_LIST","LegacyListEditing","nextSibling","listIndent","bulletedList","_descriptionFactory","schema","filter","length","previousSibling","commandParams","createRange","checkChild","forceValue","List","registerDescriptionCallback","_selectedElements","replace","execute","change","document","checkTodoList","LegacyTodoListEditing","format","findIndex","formatInline","ELEMENT_TODO_LIST","getSelectedBlocks","todoList","markBlockFormat","isObject","add","editor"];var zs,Ws;zs=Hs,Ws=396,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("0x33")],e=t.locale;if(!t[Ks("0x34")].has(Ks("0x14")))return;const n=t[Ks("0x34")].get(Ks("0x8")),i=t.plugins[Ks("0x3b")](Ks("0x29"));function r(e){return()=>{const i=t[Ks("0x3c")][Ks("0x27")][Ks("0x9")],r=t[Ks("0xf")].get(e);if(r[Ks("0x39")])return void t[Ks("0x25")]("paragraph",{});const o=e.slice(0,-4),s=function(t,e,n){let i=Array.from(t).filter((t=>{return e=t,(i=n)[Ks("0x1f")](e[Ks("0x3f")],Ks("0x11"))&&!i[Ks("0x31")](e);var e,i}));i=i[Ks("0x1a")]((t=>!t.is(Ks("0x35"),"listItem")||t.getAttribute("listType")!=e));const r=new Set;for(const t of i)t.is(Ks("0x35"),Ks("0x11"))?r[Ks("0x32")](Xs(t)):r[Ks("0x32")](t);return Array.from(r)}(i[Ks("0x2e")](),o,t.model[Ks("0x19")]);t[Ks("0x3c")][Ks("0x26")]((()=>{for(const t of s)n[Ks("0x30")](t,{commandName:e,commandParams:[{forceValue:!r[Ks("0x39")]}],formatGroupId:Ks("0x3d")},$s(t))}))}}function o(e){return()=>{const i=function(t){let e=Array.from(t);const n=e[Ks("0x2b")]((t=>"listItem"!=t[Ks("0x3a")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ks("0x3c")].document[Ks("0x9")].getSelectedBlocks()),r=t[Ks("0x3c")][Ks("0x1e")](t[Ks("0x3c")].createPositionAt(i[0],Ks("0xa")),t[Ks("0x3c")].createPositionAt(i[i[Ks("0x1b")]-1],Ks("0x1")));t.model.change((()=>{n[Ks("0x30")](r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ks("0x0")](Ks("0x16"))>n.getAttribute(Ks("0x16"));)e[Ks("0x32")](t),t=t.nextSibling}return Array[Ks("0x4")](e)}(i))}))}}n.enableCommand(Ks("0x37"),r(Ks("0x37"))),n[Ks("0xd")](Ks("0x17"),r("bulletedList")),i&&n[Ks("0xd")](Ks("0x2f"),r(Ks("0x2f"))),n[Ks("0xd")](Ks("0xb"),o(Ks("0xb"))),n.enableCommand(Ks("0x38"),o(Ks("0x38"))),i&&n[Ks("0xd")]("checkTodoList",(()=>{const e=t.commands[Ks("0x5")](Ks("0x28")),i=Array[Ks("0x4")](e[Ks("0x23")]);i[Ks("0x1a")]((t=>t[Ks("0x0")]("todoListChecked")!=e[Ks("0x39")])),t[Ks("0x3c")][Ks("0x26")]((()=>{for(const t of i)n[Ks("0x30")](t,{commandName:Ks("0x28"),commandParams:[{forceValue:!e[Ks("0x39")]}]})}))})),n[Ks("0x18")][Ks("0x3e")]("listItem",(t=>Ji(e,Ks("0x10"),t))),n[Ks("0x18")][Ks("0x22")]((t=>{if(Ks("0xc")!=t.type&&Ks("0x2c")!=t[Ks("0x2")])return;const{data:n}=t;if(n){if(Ks("0x37")==n[Ks("0xe")]||Ks("0x17")==n.commandName||Ks("0x2f")==n[Ks("0xe")])switch(n.commandName[Ks("0x24")](Ks("0x21"),"")){case"bulleted":return i(Ji(e,Ks("0x3")));case Ks("0x36"):return i(Ji(e,Ks("0x13")));case Ks("0x6"):return i(Ji(e,Ks("0x2d")))}if("indentList"==n[Ks("0xe")])return{type:Ks("0x2a"),content:Ji(e,"*Indent:* %0",Ji(e,Ks("0x10")))};if(Ks("0x38")==n[Ks("0xe")])return{type:Ks("0x2a"),content:Ji(e,Ks("0x7"),Ji(e,"ELEMENT_LIST_ITEM"))};if(Ks("0x28")==n[Ks("0xe")])return n[Ks("0x1d")][0][Ks("0x20")]?{type:Ks("0x2a"),content:Ji(e,"*Check item*")}:{type:Ks("0x2a"),content:Ji(e,"*Uncheck item*")}}function i(t){return{type:Ks("0x2a"),content:Ji(e,Ks("0x12"),t)}}}))}}function Xs(t){const e=t[Ks("0x0")]("listIndent");if(0==e)return t;let n=t;for(;t[Ks("0x1c")]&&t.previousSibling.is(Ks("0x35"),Ks("0x11"));){const i=t[Ks("0x1c")].getAttribute(Ks("0x16"));if(i==e)n=t[Ks("0x1c")];else if(i<e)break;t=t.previousSibling}return n}function $s(t){const e=[];if(t.is(Ks("0x35"),Ks("0x11"))&&t[Ks("0x0")](Ks("0x16"))>0){let n=t[Ks("0x15")];for(;n&&"listItem"==n[Ks("0x3a")]&&n[Ks("0x0")](Ks("0x16"))==t.getAttribute("listIndent");)e.push(n),n=n[Ks("0x15")]}return e}const Zs=["backward","LegacyListUtils","get","list.properties","registerDescriptionCallback","getSiblingNodes","listStyle","_getTranslationKeyForListStyle","commandParams","afterInit","handleListStartCommand","map","format","listItem","*Change to:* %0","listType","getAttribute","forward","handleListReversedCommand","TrackChangesEditing","config","listStart","reversed","startIndex","handleDescriptions","_getSuggestionBlocksForListStyle","handleListStyleCommand","formatBlock","toUpperCase","getLastPosition","_getSuggestionBlocks","model","_descriptionFactory","numbered","replace","*Format:* set start index to %0","element","from","locale","listReversed","type","change","getFirstPosition","plugins","enableCommand","ELEMENT_","length","getListTypeFromListStyleType","bind","flat","document","createRange","filter","before","*Format:* set order to reversed","editor","commandName","selection","createPositionAt","markMultiRangeBlockFormat"];var Ys,Js;Ys=Zs,Js=106,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Qs("0x17")](){if(!this[Qs("0x9")][Qs("0x39")].has("LegacyListPropertiesEditing"))return;const t=this[Qs("0x9")][Qs("0x22")][Qs("0x10")](Qs("0x11")),e=this[Qs("0x9")].plugins[Qs("0x10")](Qs("0x21"));t.styles&&e.enableCommand(Qs("0x14"),this[Qs("0x28")][Qs("0x2")](this)),t[Qs("0x24")]&&e[Qs("0x3a")](Qs("0x35"),this[Qs("0x20")][Qs("0x2")](this)),t[Qs("0x25")]&&e[Qs("0x3a")](Qs("0x23"),this.handleListStartCommand[Qs("0x2")](this)),e[Qs("0x2e")][Qs("0x12")](this[Qs("0x26")].bind(this))}handleListStyleCommand(t,e={}){const n=this.editor[Qs("0x39")][Qs("0x10")](Qs("0x21")),i=this[Qs("0x27")]();this[Qs("0x9")][Qs("0x2d")][Qs("0x37")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:"listStyle",commandParams:[{type:e[Qs("0x36")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[Qs("0x9")].plugins.get(Qs("0x21")),i=this[Qs("0x2c")]((t=>t.is(Qs("0x32"),"listItem")&&Qs("0x2f")===t[Qs("0x1e")](Qs("0x1d"))));if(i[Qs("0x0")]<1)return;const r=i.map((t=>this[Qs("0x9")][Qs("0x2d")][Qs("0x5")](this[Qs("0x9")][Qs("0x2d")][Qs("0xc")](t,Qs("0x7")),this[Qs("0x9")][Qs("0x2d")][Qs("0xc")](t,0))));this[Qs("0x9")][Qs("0x2d")].change((()=>{n[Qs("0xd")](r,{commandName:Qs("0x35"),commandParams:[{reversed:e[Qs("0x24")]}],formatGroupId:Qs("0x35")})}))}[Qs("0x18")](t,e={}){const n=this[Qs("0x9")].plugins[Qs("0x10")](Qs("0x21")),i=this[Qs("0x2c")]((t=>t.is(Qs("0x32"),Qs("0x1b"))&&Qs("0x2f")===t[Qs("0x1e")]("listType")));if(i.length<1)return;const r=i[Qs("0x19")]((t=>this.editor[Qs("0x2d")][Qs("0x5")](this[Qs("0x9")].model[Qs("0xc")](t,Qs("0x7")),this[Qs("0x9")][Qs("0x2d")].createPositionAt(t,0))));this[Qs("0x9")][Qs("0x2d")][Qs("0x37")]((()=>{n[Qs("0xd")](r,{commandName:Qs("0x23"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}handleDescriptions(t){if(Qs("0x29")!=t[Qs("0x36")]&&"formatInline"!=t[Qs("0x36")])return;const e=this[Qs("0x9")][Qs("0x34")],{data:n}=t;if(!n)return;let i,r;switch(n[Qs("0xa")]){case Qs("0x14"):i=Qs("0x1c"),r={type:Qs("0x1a"),content:Ji(e,i,Ji(e,this[Qs("0x15")](n[Qs("0x16")][0][Qs("0x36")])))};break;case"listReversed":i=n[Qs("0x16")][0][Qs("0x24")]?Qs("0x8"):"*Format:* set order to regular",r={type:Qs("0x1a"),content:Ji(e,i)};break;case"listStart":i=Qs("0x31"),r={type:Qs("0x1a"),content:Ji(e,i,n.commandParams[0][Qs("0x25")])}}return r}[Qs("0x27")](){var t,e,n,i;const r=this[Qs("0x9")][Qs("0x39")][Qs("0x10")](Qs("0xf"));let o=Array.from(this[Qs("0x9")][Qs("0x2d")][Qs("0x4")].selection.getSelectedBlocks());return(null===(t=o[0])||void 0===t?void 0:t.is("element",Qs("0x1b")))&&o.unshift(...r[Qs("0x13")](this[Qs("0x9")][Qs("0x2d")][Qs("0x4")][Qs("0xb")][Qs("0x38")](),Qs("0xe"))),(null===(e=o[o[Qs("0x0")]-1])||void 0===e?void 0:e.is(Qs("0x32"),Qs("0x1b")))&&o.push(...r[Qs("0x13")](this[Qs("0x9")][Qs("0x2d")][Qs("0x4")][Qs("0xb")][Qs("0x2b")](),Qs("0x1f"))),o=[...new Set(o)],(null===(i=null===(n=this.editor[Qs("0x2d")].document[Qs("0xb")].getFirstPosition())||void 0===n?void 0:n.parent)||void 0===i?void 0:i.is(Qs("0x32"),Qs("0x1b")))&&(o=o[Qs("0x6")]((t=>t.is(Qs("0x32"),"listItem")))),o}[Qs("0x2c")](t){const e=this[Qs("0x9")][Qs("0x39")][Qs("0x10")](Qs("0xf"));let n=Array[Qs("0x33")](this[Qs("0x9")][Qs("0x2d")][Qs("0x4")][Qs("0xb")].getSelectedBlocks()).filter(t)[Qs("0x19")]((t=>{const n=this[Qs("0x9")][Qs("0x2d")][Qs("0xc")](t,0);return[...e.getSiblingNodes(n,"backward"),...e.getSiblingNodes(n,"forward")]}))[Qs("0x3")]();return n=[...new Set(n)],n}[Qs("0x15")](t){return Qs("0x3b")+this[Qs("0x9")][Qs("0x39")][Qs("0x10")](Qs("0xf"))[Qs("0x1")](t)[Qs("0x2a")]()+"_LIST_"+t[Qs("0x2a")]()[Qs("0x30")](/-/g,"_")}}const ex=["plugins","editor","registerElementLabel","showSuggestionHighlights","options","_descriptionFactory","MediaEmbedEditing","enableCommand","data","dataDowncast","afterInit","conversion","ELEMENT_MEDIA","for","downcastDispatcher","high","media"];var nx,ix;nx=ex,ix=138,function(t){for(;--t;)nx.push(nx.shift())}(++ix);const rx=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[rx("0x8")](){const t=this[rx("0x10")];if(!t[rx("0xf")].has(rx("0x4")))return;const e=t[rx("0xf")].get("TrackChangesEditing"),n=t.locale;e[rx("0x5")]("mediaEmbed"),e[rx("0x3")][rx("0x0")]("media",(t=>Ji(n,rx("0xa"),t))),t[rx("0x9")][rx("0xb")](rx("0x7")).elementToElement({model:rx("0xe"),view:(t,{writer:e,options:n})=>{if(n[rx("0x1")])return e.createEmptyElement("div")},converterPriority:rx("0xd")}),t[rx("0x6")][rx("0xc")].on("attribute:url:media",((t,e,n)=>{n[rx("0x2")].showSuggestionHighlights&&t.stop()}),{priority:rx("0xd")})}}const sx=["plugins","editor","get","mention","afterInit","has","enableCommand","MentionEditing"];var xx,ax;xx=sx,ax=269,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{[cx("0x7")](){const t=this[cx("0x4")];t[cx("0x3")][cx("0x0")](cx("0x2"))&&t.plugins[cx("0x5")]("TrackChangesEditing")[cx("0x1")](cx("0x6"))}}const ux=["plugins","has","TrackChangesEditing","PageBreakEditing","pageBreak","editor","enableCommand","registerElementLabel"];var dx,gx;dx=ux,gx=468,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[fx("0x1")];if(!t[fx("0x4")][fx("0x5")](fx("0x7")))return;t[fx("0x4")].get("TrackChangesEditing")[fx("0x2")]("pageBreak");const e=t[fx("0x4")].get(fx("0x6")),n=t.locale;e._descriptionFactory[fx("0x3")](fx("0x0"),(t=>Ji(n,"ELEMENT_PAGE_BREAK",t)))}}const mx=["markerName","writer","consumable","insertion","data","includes","isLimit","showSuggestionHighlights","formatBlock","options","addClass","name","ELEMENT_PARAGRAPH","_descriptionFactory","$text","getItemLabel","toViewPosition","registerDescriptionCallback","type","format","markerRange","ck-suggestion-marker-split","mapper","plugins","*Change to:* %0","getFirstRange","start","enableCommand","isBlock","isTouching","activeMarkers","afterInit","highest","addMarker:suggestion:insertion","nodeAfter","TrackChangesEditing","editing","insert","schema","locale","downcastDispatcher","get","paragraph","model","commandName","checkChild","span"];var px,bx;px=mx,bx=190,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x1d")](){const t=this.editor;if(!t[Ex("0x15")].has("Paragraph"))return;const e=t.locale,n=t[Ex("0x15")][Ex("0x27")](Ex("0x21"));n[Ex("0xb")].registerElementLabel(Ex("0x28"),(t=>Ji(e,Ex("0xa"),t))),n._enableDefaultAttributesIntegration(Ex("0x28")),n[Ex("0x19")]("insertParagraph"),t[Ex("0x22")][Ex("0x26")].on(Ex("0x1f"),Tx(t),{priority:Ex("0x1e")}),t[Ex("0x2")][Ex("0x26")].on(Ex("0x1f"),((e,n,i)=>{i[Ex("0x7")][Ex("0x5")]&&Tx(t,{showActiveMarker:!1})(e,n,i)}),{priority:Ex("0x1e")});const i=n[Ex("0xb")];i.registerDescriptionCallback((n=>{if(Ex("0x1")!==n[Ex("0x10")])return;const{start:r,end:o}=n[Ex("0x17")]();if(!r.isTouching(o)||!r[Ex("0x20")])return;const s=t[Ex("0x29")].schema,x=r[Ex("0x20")];return s[Ex("0x1a")](x)&&!s[Ex("0x4")](x)&&s[Ex("0x2b")](x,"$text")?{type:Ex("0x1"),content:Ji(e,"*Insert:* %0",i[Ex("0xd")](x,1))}:void 0})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[Ex("0x25")];t.plugins[Ex("0x27")](Ex("0x21"))[Ex("0xb")][Ex("0xf")]((t=>{if(Ex("0x6")!=t[Ex("0x10")])return;const{data:n}=t;return n&&Ex("0x28")==n[Ex("0x2a")]?{type:Ex("0x11"),content:Ji(e,Ex("0x16"),Ji(e,Ex("0xa")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t[Ex("0x15")][Ex("0x27")](Ex("0x21")),s=i[Ex("0x12")][Ex("0x18")],x=i[Ex("0x12")].end,a=t[Ex("0x29")][Ex("0x24")];if(!s[Ex("0x1b")](x)||!s[Ex("0x20")])return;const c=s[Ex("0x20")];if(a[Ex("0x1a")](c)&&!a.isLimit(c)&&a[Ex("0x2b")](c,Ex("0xc"))){if(!r[Ex("0x0")].consume(i.markerRange,n[Ex("0x9")]))return;const t=r.writer.createUIElement(Ex("0x2c"),{class:Ex("0x13")}),s=r[Ex("0x14")][Ex("0xe")](x);e&&o[Ex("0x1c")][Ex("0x3")](i[Ex("0x2d")])&&r[Ex("0x2e")][Ex("0x8")]("ck-suggestion-marker--active",t),r[Ex("0x2e")][Ex("0x23")](s,t),r[Ex("0x14")].bindElementToMarker(t,i[Ex("0x2d")])}}}const yx=["type","_registerLegacyDescription","registerDescriptionCallback","_descriptionFactory","get","_enableDefaultAttributesIntegration","commandName","formatBlock","removeFormat","*Remove all formatting*","plugins","formatInline","TrackChangesEditing","locale","format"];var Cx,Ax;Cx=yx,Ax=123,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this.editor;t.plugins.has("RemoveFormatEditing")&&(t[kx("0x7")].get(kx("0x9"))[kx("0x2")](kx("0x5")),this[kx("0xd")]())}[kx("0xd")](){const t=this.editor;t[kx("0x7")][kx("0x1")](kx("0x9"))[kx("0x0")][kx("0xe")]((e=>{if(kx("0x4")!=e.type&&kx("0x8")!=e[kx("0xc")])return;const{data:n}=e;return n&&"removeFormat"==n[kx("0x3")]?{type:kx("0xb"),content:Ji(t[kx("0xa")],kx("0x6"))}:void 0}))}}const Ix=["discardSelectedSuggestions","trackChanges","plugins","has","enableCommand","acceptAllSuggestions","TrackChangesEditing","get","goToPreviousRestrictedEditingException","acceptSelectedSuggestions","goToNextRestrictedEditingException","RestrictedEditingModeEditing","acceptSuggestion"];var Rx,vx;Rx=Ix,vx=359,function(t){for(;--t;)Rx.push(Rx.shift())}(++vx);const Nx=function(t,e){return Ix[t-=0]};class Lx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Nx("0x7")][Nx("0x8")]("RestrictedEditingModeEditing"))return;const e=t[Nx("0x7")][Nx("0xc")](Nx("0xb"));e[Nx("0x9")](Nx("0x0")),e[Nx("0x9")](Nx("0x2"));const n=t.plugins[Nx("0xc")](Nx("0x3"));n.enableCommand(Nx("0x6")),n[Nx("0x9")](Nx("0x4")),n[Nx("0x9")]("discardSuggestion"),n[Nx("0x9")](Nx("0xa")),n[Nx("0x9")]("discardAllSuggestions"),n[Nx("0x9")](Nx("0x1")),n.enableCommand(Nx("0x5"))}}const Mx=["_descriptionFactory","toViewPosition","editing","ELEMENT_LINE_BREAK","bindElementToMarker","addMarker:suggestion:insertion","consumable","element","addMarker:suggestion","mapper","init","split","registerElementLabel","writer","locale","plugins","ck-suggestion-marker-","TrackChangesEditing","softBreak","data","name","requires","markerName","insert","model","get","deletion","addClass","activeMarkers","markerRange","shiftEnter","createUIElement","downcastDispatcher","includes","test","editor","getItems"];var wx,Ox;wx=Mx,Ox=254,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("0x1a")](){return[Eo.ShiftEnter]}[Fx("0xf")](){const t=this[Fx("0x3")],e=t[Fx("0x14")].get(Fx("0x16"));e.enableCommand(Fx("0x23")),t[Fx("0x7")][Fx("0x0")].on(Fx("0xa"),Bx(t),{priority:"high"}),t[Fx("0x7")][Fx("0x0")].on("addMarker:suggestion:deletion",Bx(t),{priority:"high"}),t[Fx("0x18")][Fx("0x0")].on(Fx("0xd"),((e,n,i)=>{i.options.showSuggestionHighlights&&Bx(t,{showActiveMarker:!1})(e,n,i)})),e[Fx("0x5")][Fx("0x11")]("softBreak",(e=>Ji(t[Fx("0x13")],Fx("0x8"),e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t[Fx("0x14")][Fx("0x1e")](Fx("0x16"));if(!r[Fx("0xb")][Fx("0x2")](i[Fx("0x22")],n[Fx("0x19")]))return;const s=t[Fx("0x1d")];for(const t of i[Fx("0x22")][Fx("0x4")]()){if(!t.is(Fx("0xc"),Fx("0x17")))continue;const n=Fx("0x1f")==i[Fx("0x1b")][Fx("0x10")](":")[1]?"merge":"split",x=r[Fx("0x12")][Fx("0x24")]("span",{class:Fx("0x15")+n}),a=r[Fx("0xe")][Fx("0x6")](s.createPositionBefore(t));e&&o[Fx("0x21")][Fx("0x1")](i[Fx("0x1b")])&&r[Fx("0x12")][Fx("0x20")]("ck-suggestion-marker--active",x),r[Fx("0x12")][Fx("0x1c")](a,x),r[Fx("0xe")][Fx("0x9")](x,i[Fx("0x1b")])}}}const Px=["TrackChangesEditing","commands","_descriptionFactory","formatBlock","plugins","markInlineFormat","change","get","getRanges","registerDescriptionCallback","afterInit","value","commandParams","from","formatInline","editor","format","FORMAT_RESTRICTED_DISABLED","type","isCollapsed","has","forceValue","locale","restrictedEditingException","FORMAT_RESTRICTED_ENABLED","model"];var Ux,jx;Ux=Px,jx=351,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{[Gx("0x17")](){const t=this[Gx("0x2")],e=t[Gx("0xc")],n=t[Gx("0x9")];if(!t[Gx("0x11")][Gx("0x7")]("StandardEditingModeEditing"))return;const i=t[Gx("0x11")][Gx("0x14")](Gx("0xd")),r=Gx("0xa"),o=t[Gx("0xe")][Gx("0x14")](r);i.enableCommand(r,((t,n={})=>{const s=e.document.selection;if(s[Gx("0x6")])return void t(n);const x=void 0!==n[Gx("0x8")]?n[Gx("0x8")]:!o[Gx("0x18")];e[Gx("0x13")]((()=>{const t=Array[Gx("0x0")](s[Gx("0x15")]());for(const n of t){const t=x?[n]:Jr(r,n,e);for(const e of t)i[Gx("0x12")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),i[Gx("0xf")][Gx("0x16")]((t=>{if(Gx("0x10")!=t[Gx("0x5")]&&Gx("0x1")!=t[Gx("0x5")])return;const{data:e}=t;return e&&e.commandName==r?e[Gx("0x19")][0].forceValue?{type:Gx("0x3"),content:Ji(n,Gx("0xb"))}:{type:"format",content:Ji(n,Gx("0x4"))}:void 0}))}}const Hx=["DataSchema","type","getGhsAttributeNameForElement","ghsAttributes","_descriptionFactory","element","editor","*Set format:* %0","afterInit","TrackChangesEditing","definitions","StyleUtils","_enableDefaultAttributesIntegration","*Remove format:* %0","_registerLegacyDescription","format","Style","FORMAT_STYLE","registerAttributeLabel","commandName","_registerBlockAttribute","styleName","_registerInlineAttribute","plugins","registerDescriptionCallback","get","style","toLowerCase","forceValue","has","config","locale","formatInline","add","commandParams"];var zx,Wx;zx=Hx,Wx=488,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0xa")](){const t=this[Kx("0x8")];if(!t[Kx("0x19")][Kx("0x1f")](Kx("0x12"))||!t[Kx("0x19")].has(Kx("0x2")))return;const e=t[Kx("0x19")][Kx("0x1b")](Kx("0xb")),n=t[Kx("0x21")],i=t[Kx("0x20")][Kx("0x1b")](Kx("0x1c")),r=t[Kx("0x19")][Kx("0x1b")]("GeneralHtmlSupport"),o=t[Kx("0x19")][Kx("0x1b")](Kx("0xd")).normalizeConfig(t.plugins[Kx("0x1b")](Kx("0x2")),i[Kx("0xc")]);e[Kx("0xe")](Kx("0x1c"));const s=new Set;for(const t of o.block){const e=r.getGhsAttributeNameForElement(t[Kx("0x7")]);s[Kx("0x0")](e)}const x=new Set;for(const t of o.inline){const e=r[Kx("0x4")](t[Kx("0x7")]);x[Kx("0x0")](e);for(const e of t[Kx("0x5")])x.add(e)}for(const t of s)e[Kx("0x16")](t),e[Kx("0x6")][Kx("0x14")](t,Ji(n,Kx("0x13")));for(const t of x)e[Kx("0x18")](t),e[Kx("0x6")][Kx("0x14")](t,Ji(n,Kx("0x13")));this[Kx("0x10")]()}[Kx("0x10")](){const t=this[Kx("0x8")],e=t[Kx("0x21")];t[Kx("0x19")][Kx("0x1b")](Kx("0xb"))[Kx("0x6")][Kx("0x1a")]((t=>{if("formatBlock"!=t[Kx("0x3")]&&Kx("0x22")!=t.type)return;const{data:n}=t;return n&&Kx("0x1c")===n[Kx("0x15")]?n[Kx("0x1")][0][Kx("0x1e")]?{type:"format",content:Ji(e,Kx("0x9"),n[Kx("0x1")][0][Kx("0x17")][Kx("0x1d")]())}:{type:Kx("0x11"),content:Ji(e,Kx("0xf"),n.commandParams[0][Kx("0x17")][Kx("0x1d")]())}:void 0}))}}const Xx=["above","findAncestor","min","registerElementLabel","registerDescriptionCallback","oldRange","get","getContainedElement","createRangeIn","removeClass","table","span","getColumnIndexes","insertion","createRangeOn","fromRange","removeTableRow","length","tablePaste","setSelection","cell","batch","enableCommand","tableRow","getAttribute","registerCustomCallback","ELEMENT_TABLE_COLUMN_WITH_TEXT","_tablePostFixingSubtypes","_setupColumnsRowsFixing","join","first","filter","document","change:data","order","classes","data","every","createTableWalker","end","isEqual","startsWith","TableUtils","from","registerPostFixer","getSelectionAffectedTableCells","start","addMarker:suggestion","accept","insertTableColumnRight","toLowerCase","getRowIndexes","downcastDispatcher","getChangedMarkers","createPositionAt","has","hasAttribute","TrackChangesEditing","push","*Insert:* %0","add","getItems","element","model","getSuggestion","locale","insertTableRowBelow","deletion","getFirstRange","commands","addClass","_getSuggestionCoords","last","isTouching","minRow","mapper","name","detach","execute","isArray","position","colspan","root","tableCell","markMultiRangeInsertion","_descriptionFactory","toViewElement","getRanges","_suggestionFactory","enqueueChange","_splitMarkerName","getCellLocation","$graveyard","editor","MIN_SAFE_INTEGER","differ","ELEMENT_TABLE","refresh","type","map","change","ELEMENT_TABLE_ROW_WITH_TEXT","selection","includes","maxRow","removeTableColumn","*Remove:* %0","isIntersectingWithRange","_getCoordsForCells","forceValue","getChildren","_tableSuggestions","rootName","nodeAfter","$textProxy","options","TableEditing","substr","plugins","MAX_SAFE_INTEGER","item","insert","rowspan","some","nodeBefore","minColumn","showSuggestionHighlights","writer","selectTableRow","tableColumn","subType","insertTableRowAbove","getChanges","afterInit","ELEMENT_TABLE_ROW","addRange"];var $x,Zx;$x=Xx,Zx=245,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x36")]=[Yx("0x32"),"tableColumn"],this._tableSuggestions=new Set}[Yx("0x18")](){const t=this[Yx("0x78")],e=t.model[Yx("0x3b")].selection;if(!t.plugins[Yx("0x52")](Yx("0x7")))return;const n=t[Yx("0x5c")],i=t[Yx("0x9")].get(Yx("0x54")),r=t[Yx("0x9")][Yx("0x21")](Yx("0x45"));i[Yx("0x70")][Yx("0x1e")](Yx("0x25"),(t=>Ji(n,Yx("0x7b"),t))),this[Yx("0x37")](),i.enableCommand("insertTable"),i[Yx("0x31")](Yx("0x13")),i[Yx("0x31")]("selectTableColumn");for(const n of[Yx("0x16"),Yx("0x5d")]){const o=t[Yx("0x60")][Yx("0x21")](n);i[Yx("0x31")](n,(n=>{t.model[Yx("0x7f")]((t=>{n();const s=Yx("0x1b")===o[Yx("0x3d")],x=r[Yx("0x48")](e),a=r[Yx("0x4e")](x),c=s?a[Yx("0x39")]-1:a[Yx("0x63")]+1,l=x[0].findAncestor(Yx("0x25")),u=r[Yx("0x41")](l,{startRow:c,endRow:c}),d=Array[Yx("0x46")](u)[Yx("0x7e")]((e=>t[Yx("0x29")](e[Yx("0x2f")])));i[Yx("0x6f")](d,Yx("0x32"))}))}))}for(const n of["insertTableColumnLeft",Yx("0x4c")]){const o=t[Yx("0x60")][Yx("0x21")](n);i[Yx("0x31")](n,(n=>{t.model[Yx("0x7f")]((t=>{n();const s="left"===o[Yx("0x3d")],x=r[Yx("0x48")](e),a=r[Yx("0x27")](x),c=s?a.first-1:a[Yx("0x63")]+1,l=x[0][Yx("0x1c")](Yx("0x25")),u=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0x46")](u)[Yx("0x7e")]((e=>t[Yx("0x29")](e[Yx("0x2f")])));i[Yx("0x6f")](d,"tableColumn")}))}))}for(const n of[Yx("0x2b"),Yx("0x84")]){const o=n[Yx("0x8")](11),s=o[Yx("0x4d")](),x=s[Yx("0x8")](0,3)+Yx("0x26"),a=Yx("0x25")+o,c=Yx("0x1d")+o,l="max"+o;i[Yx("0x31")](n,(()=>{t[Yx("0x5a")].change((t=>{const o=r.getSelectionAffectedTableCells(e),u=o[0][Yx("0x1c")](Yx("0x25"));let d;if(Yx("0x2b")==n){const t=r[Yx("0x4e")](o);d={startRow:t[Yx("0x39")],endRow:t[Yx("0x63")],includeAllSlots:!0}}else{const t=r.getColumnIndexes(o);d={startColumn:t[Yx("0x39")],endColumn:t[Yx("0x63")],includeAllSlots:!0}}const g=r[Yx("0x41")](u,d),f=Array[Yx("0x46")](g)[Yx("0x7e")]((({cell:t})=>t)),h=Qx(f[Yx("0x3a")]((t=>t[Yx("0x53")](x)))),m=Qx(f[Yx("0x3a")]((t=>!t[Yx("0x53")](x))))[Yx("0x7e")]((e=>t[Yx("0x29")](e))),p=i.markMultiRangeDeletion(m,a);if(p&&(Yx("0x32")==p.subType||Yx("0x14")==p[Yx("0x15")])){const e=this[Yx("0x62")](p);for(const n of h){const i=t[Yx("0x29")](n),o=r[Yx("0x76")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p.addRange(i)}}}))}))}function o(n){const i=Array[Yx("0x46")](e[Yx("0x72")]()).map((t=>s.LiveRange[Yx("0x2a")](t)));t.model[Yx("0x7f")]((e=>{const r=e[Yx("0x30")];n=n[Yx("0x3a")]((t=>Yx("0x77")!=t[Yx("0x6d")][Yx("0x3")])),e[Yx("0x2e")](n),t[Yx("0x60")][Yx("0x21")](Yx("0x2b"))[Yx("0x7c")](),t[Yx("0x69")]("removeTableRow",{forceDefaultExecution:!0}),t.model[Yx("0x74")]((()=>{t[Yx("0x5a")].enqueueChange(r,(t=>{const e=i[Yx("0x3a")]((t=>Yx("0x77")!=t.root.rootName));e[Yx("0x2c")]>0&&t[Yx("0x2e")](e);for(const t of i)t[Yx("0x68")]()}))}))}))}function a(n){t[Yx("0x5a")][Yx("0x7f")]((i=>{const r=Array[Yx("0x46")](e[Yx("0x72")]())[Yx("0x7e")]((t=>s.LiveRange[Yx("0x2a")](t))),o=[];for(const t of n)for(const e of t[Yx("0x58")]({shallow:!0}))o[Yx("0x55")](e);for(const e of o)Yx("0x77")!=e[Yx("0x6d")][Yx("0x3")]&&(i[Yx("0x2e")](i[Yx("0x51")](e,0)),t.commands.get("removeTableColumn")[Yx("0x7c")](),t[Yx("0x69")](Yx("0x84"),{forceDefaultExecution:!0}));const x=r[Yx("0x3a")]((t=>Yx("0x77")!=t.root[Yx("0x3")]));x[Yx("0x2c")]>0&&i[Yx("0x2e")](x);for(const t of r)t[Yx("0x68")]()}))}function c(t,e){return e[Yx("0x40")]((e=>t[Yx("0xe")]((t=>t[Yx("0x42")][Yx("0x43")](e[Yx("0x49")])||e.end.isEqual(t[Yx("0x49")])))))}function l(t,e){return t.some((t=>e[Yx("0xe")]((e=>t[Yx("0x42")][Yx("0x64")](e[Yx("0x49")])))))}t[Yx("0x3f")][Yx("0x4f")].on(Yx("0x4a"),((t,e,n)=>{if(!n[Yx("0x6")][Yx("0x11")])return;const i=e[Yx("0xb")];if(!i)return;const r=n[Yx("0x66")][Yx("0x71")](i);function o(t){return Array[Yx("0x6a")](t)?t:[t]}r&&Yx("0x6e")===i[Yx("0x67")]&&(0,x.setHighlightHandling)(r,n[Yx("0x12")],((t,e,n)=>n[Yx("0x61")](o(e[Yx("0x3e")]),t)),((t,e,n)=>n[Yx("0x24")](o(e[Yx("0x3e")]),t)))}),{priority:"highest"}),i[Yx("0x70")][Yx("0x1f")]((t=>{if("insertion"!=t[Yx("0x7d")]&&Yx("0x5e")!=t[Yx("0x7d")])return;const e=t[Yx("0x22")]();if(null!=e&&e.is(Yx("0x59"),Yx("0x25"))){if("insertion"==t[Yx("0x7d")]){const e=t[Yx("0x58")]().filter((t=>t.is(Yx("0x5"))))[Yx("0x7e")]((t=>t[Yx("0x3f")]));if(e.length)return{type:Yx("0x28"),content:Ji(n,Yx("0x56"),Ji(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Yx("0x38")](" ")+'"'))}}if("deletion"==t[Yx("0x7d")]){const e=t[Yx("0x58")]().filter((t=>t.is("$textProxy"))).map((t=>t[Yx("0x3f")]));if(e[Yx("0x2c")])return{type:Yx("0x5e"),content:Ji(n,Yx("0x85"),Ji(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Yx("0x38")](" ")+'"'))}}}})),i[Yx("0x70")][Yx("0x1f")]((t=>{if(Yx("0x32")==t.subType){const e=t[Yx("0x58")]()[Yx("0x3a")]((t=>t.is(Yx("0x5"))))[Yx("0x7e")]((t=>t.data)),i=this[Yx("0x62")](t),r=i[Yx("0x83")]-i[Yx("0x65")]+1;if(Yx("0x28")==t[Yx("0x7d")])return e[Yx("0x2c")]?{type:Yx("0x28"),content:Ji(n,Yx("0x56"),Ji(n,Yx("0x80"),[r,'"'+e[Yx("0x38")](" ")+'"']))}:{type:Yx("0x28"),content:Ji(n,Yx("0x56"),Ji(n,Yx("0x19"),r))};if(Yx("0x5e")==t[Yx("0x7d")])return e[Yx("0x2c")]?{type:"deletion",content:Ji(n,Yx("0x85"),Ji(n,Yx("0x80"),[r,'"'+e[Yx("0x38")](" ")+'"']))}:{type:Yx("0x5e"),content:Ji(n,"*Remove:* %0",Ji(n,"ELEMENT_TABLE_ROW",r))}}if("tableColumn"==t[Yx("0x15")]){const e=t[Yx("0x58")]()[Yx("0x3a")]((t=>t.is(Yx("0x5"))))[Yx("0x7e")]((t=>t[Yx("0x3f")])),i=this._getSuggestionCoords(t),r=i.maxColumn-i[Yx("0x10")]+1;if(Yx("0x28")==t[Yx("0x7d")])return e[Yx("0x2c")]?{type:Yx("0x28"),content:Ji(n,Yx("0x56"),Ji(n,Yx("0x35"),[r,'"'+e[Yx("0x38")](" ")+'"']))}:{type:Yx("0x28"),content:Ji(n,Yx("0x56"),Ji(n,"ELEMENT_TABLE_COLUMN",r))};if(Yx("0x5e")==t.type)return e[Yx("0x2c")]?{type:"deletion",content:Ji(n,"*Remove:* %0",Ji(n,Yx("0x35"),[r,'"'+e[Yx("0x38")](" ")+'"']))}:{type:"deletion",content:Ji(n,Yx("0x85"),Ji(n,"ELEMENT_TABLE_COLUMN",r))}}})),i._suggestionFactory[Yx("0x34")]("insertion",Yx("0x32"),"discard",o),i[Yx("0x73")].registerCustomCallback(Yx("0x5e"),Yx("0x32"),Yx("0x4b"),o),i[Yx("0x73")][Yx("0x34")](Yx("0x28"),Yx("0x14"),"discard",a),i[Yx("0x73")][Yx("0x34")](Yx("0x5e"),Yx("0x14"),Yx("0x4b"),a),i[Yx("0x73")][Yx("0x34")](Yx("0x28"),"tableColumn",Yx("0x38"),c),i[Yx("0x73")].registerCustomCallback(Yx("0x5e"),Yx("0x14"),Yx("0x38"),c),i[Yx("0x73")][Yx("0x34")]("insertion","tableRow",Yx("0x38"),l),i[Yx("0x73")].registerCustomCallback("deletion","tableRow","join",l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Yx("0x78")],e=t.model[Yx("0x3b")][Yx("0x81")];return(n,i)=>{t[Yx("0x5a")][Yx("0x7f")]((r=>{const{commandName:o,commandParams:x}=i;let a=n[0][Yx("0x42")][Yx("0xf")];x&&x[0]&&!1===x[0][Yx("0x0")]&&(a=n[0][Yx("0x49")][Yx("0x4")]);const c=r[Yx("0x23")](a);if(Yx("0x77")==c[Yx("0x6d")][Yx("0x3")])return;const l=Array.from(e[Yx("0x72")]())[Yx("0x7e")]((t=>s.LiveRange[Yx("0x2a")](t)));r[Yx("0x2e")](c),t.commands[Yx("0x21")](o)[Yx("0x7c")](),x[Yx("0x55")]({forceDefaultExecution:!0}),t[Yx("0x69")](o,...x);const u=l[Yx("0x3a")]((t=>Yx("0x77")!=t.root[Yx("0x3")]));u[Yx("0x2c")]>0&&r[Yx("0x2e")](u);for(const t of l)t[Yx("0x68")]()}))}}_getCoordsForCells(t){const e=this[Yx("0x78")].plugins[Yx("0x21")](Yx("0x45"));let n=Number[Yx("0xa")],i=Number.MIN_SAFE_INTEGER,r=Number[Yx("0xa")],o=Number[Yx("0x79")];for(const s of t){if(Yx("0x77")==s.root.rootName)continue;const{row:t,column:x}=e[Yx("0x76")](s),a=s[Yx("0x53")](Yx("0xd"))?s[Yx("0x33")](Yx("0xd"))-1:0,c=s[Yx("0x53")]("colspan")?s[Yx("0x33")](Yx("0x6c"))-1:0;n=t<n?t:n,i=t+a>i?t+a:i,r=x<r?x:r,o=x+c>o?x+c:o}return{minRow:n,maxRow:i,minColumn:r,maxColumn:o}}[Yx("0x37")](){const t=this[Yx("0x78")],e=t[Yx("0x9")][Yx("0x21")](Yx("0x54")),n=t[Yx("0x9")][Yx("0x21")](Yx("0x45"));t[Yx("0x5a")].document.on(Yx("0x3c"),(()=>{const n=Array[Yx("0x46")](t[Yx("0x5a")][Yx("0x3b")].differ[Yx("0x50")]());for(const{name:t,data:i}of n){const{group:n,id:r,subType:o}=e[Yx("0x75")](t);if("suggestion"!=n)continue;if(null!=i[Yx("0x20")])continue;const s=e[Yx("0x5b")](r);this[Yx("0x36")][Yx("0x82")](o)&&this[Yx("0x2")][Yx("0x57")](s)}}),{priority:"low"});const i=(t,e)=>{let i=!1;const r=e.createRangeOn(t),o=t[Yx("0x1c")](Yx("0x25")),s=n[Yx("0x76")](t);for(const e of this[Yx("0x2")]){const n=e.subType,x=n[Yx("0x44")](Yx("0x2d")),a=n.substr(x?10:5),c=a.toLowerCase(),l=c[Yx("0x8")](0,3)+Yx("0x26"),u="min"+a,d="max"+a;if(!e.isInContent)continue;if(o!=e[Yx("0x5f")]().start.findAncestor(Yx("0x25")))continue;if(e[Yx("0x86")](r))continue;const g=t[Yx("0x53")](l)?t[Yx("0x33")](l)-1:0,f=this[Yx("0x62")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e[Yx("0x1a")](r),i=!0)}return i};t[Yx("0x5a")].document[Yx("0x47")]((e=>{let n=!1;for(const r of t[Yx("0x5a")][Yx("0x3b")][Yx("0x7a")][Yx("0x17")]())if(Yx("0xc")==r[Yx("0x7d")])if(Yx("0x32")==r[Yx("0x67")])for(const t of r[Yx("0x6b")][Yx("0x4")][Yx("0x1")]())n=n||i(t,e);else Yx("0x6e")==r.name&&(n=n||i(r[Yx("0x6b")][Yx("0x4")],e));return n}))}[Yx("0x62")](t){return this[Yx("0x87")](t[Yx("0x72")]()[Yx("0x7e")]((t=>t[Yx("0x49")][Yx("0x4")])))}}function Qx(t){return Array[Yx("0x46")](new Set(t).values())}const ta=["format","getFirstPosition","rootName","mergeTableCellUp","afterInit","getRanges","return","isEnabled","value","size","createRangeOn","_isForcedDefaultExecutionBlock","plugins","_tablePostFixingSubtypes","low","_suggestionFactory","subType","change","findAncestor","type","detach","splitTableCellHorizontally","createTableWalker","commands","registerCustomCallback","markBlockFormat","model","author","accept","execute","stop","add","find","_areMergableCells","trackChanges","editor","mergeTableCellDown","isInContent","*Merge cells*","length","commandName","getSelectionAffectedTableCells","TableUtils","splitTableCellVertically","mergeTableCellLeft","map","table","_acceptFormatSuggestionCallbackFactory","from","registerDescriptionCallback","*Split cell:* horizontally","set:isEnabled","root","push","containsRange","setSelection","enableCommand","element","cell","document","get","formatBlock","$graveyard","fromRange","markMultiRangeBlockFormat","insertion","_areSelectedCellsMergable","requires","_descriptionFactory","selection","TrackChangesEditing","mergeTableCells","mergeTableCellRight","getAncestors"];var ea,na;ea=ta,na=125,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ia=function(t,e){return ta[t-=0]};class ra extends t.Plugin{static get[ia("0x10")](){return[Jx]}[ia("0x1b")](){const t=this[ia("0x3a")],e=t[ia("0x31")][ia("0x8")][ia("0x12")],n=t.locale;if(!t[ia("0x23")].has("TableEditing"))return;const i=t[ia("0x23")].get(ia("0x13")),r=t[ia("0x23")][ia("0x9")]("TableUtils"),o=t[ia("0x23")].get(Jx);o[ia("0x24")][ia("0x2")](ia("0x14")),i.enableCommand(ia("0x14"),(()=>{const e=r[ia("0x40")](t[ia("0x31")].document[ia("0x12")]);t[ia("0x31")][ia("0x28")]((()=>{i[ia("0xd")](e,{commandName:ia("0x14"),commandParams:[]},[],ia("0x14"))}))})),t[ia("0x2e")][ia("0x9")]("mergeTableCells").on(ia("0x34"),((e,n)=>{t.commands[ia("0x9")](ia("0x39")).value&&(n[ia("0x3e")]>0&&n[n[ia("0x3e")]-1]&&n[n[ia("0x3e")]-1].forceDefaultExecution||i[ia("0x22")]||this[ia("0xf")]()||e[ia("0x35")]())}),{priority:"highest"});for(const e of[ia("0x1a"),ia("0x15"),ia("0x3b"),ia("0x43")]){const n=t[ia("0x2e")][ia("0x9")](e);i[ia("0x5")](e,(()=>{const e=t[ia("0x31")].document.selection[ia("0x18")]()[ia("0x16")]()[ia("0x37")]((t=>t.is("element","tableCell"))),r=n[ia("0x1f")];t.model[ia("0x28")]((()=>{i[ia("0xd")]([e,r],{commandName:ia("0x14"),commandParams:[]},[],ia("0x14"))}))}))}for(const e of["splitTableCellVertically",ia("0x2c")]){const n=t[ia("0x2e")][ia("0x9")](e);i[ia("0x5")](e,(()=>{const o=r[ia("0x40")](t[ia("0x31")][ia("0x8")][ia("0x12")])[0],s=o[ia("0x29")](ia("0x45")),{column:x,row:a}=r.getCellLocation(o);let c=[];if("horizontally"==n.direction){const t=r[ia("0x2d")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ia("0x47")](t)[ia("0x44")]((t=>t[ia("0x7")]))}else{const t=r.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[ia("0x47")](t)[ia("0x44")]((t=>t[ia("0x7")]))}t[ia("0x31")][ia("0x28")]((t=>{i[ia("0x30")](t[ia("0x21")](o),{commandName:e,commandParams:[]},c,e)}))}))}i[ia("0x11")][ia("0x48")]((t=>{if(ia("0xa")!=t[ia("0x2a")]&&"formatInline"!=t[ia("0x2a")])return;const{data:e}=t;return e&&ia("0x14")==e[ia("0x3f")]?{type:ia("0x17"),content:Ji(n,ia("0x3d"))}:void 0})),i[ia("0x11")][ia("0x48")]((t=>{if("formatBlock"!=t[ia("0x2a")]&&"formatInline"!=t[ia("0x2a")])return;const{data:e}=t;return e?ia("0x42")==e[ia("0x3f")]?{type:ia("0x17"),content:Ji(n,"*Split cell:* vertically")}:ia("0x2c")==e[ia("0x3f")]?{type:ia("0x17"),content:Ji(n,ia("0x49"))}:void 0:void 0}));const x=o[ia("0x46")]();for(const t of["mergeTableCellUp",ia("0x15"),ia("0x3b"),ia("0x43")])i[ia("0x26")].registerCustomCallback("formatBlock",t,ia("0x33"),x);for(const t of[ia("0x42"),ia("0x2c")])i[ia("0x26")][ia("0x2f")](ia("0xa"),t,ia("0x33"),x);i[ia("0x26")][ia("0x2f")](ia("0xa"),"mergeTableCells",ia("0x33"),(n=>{t[ia("0x31")][ia("0x28")]((i=>{const r=Array[ia("0x47")](e[ia("0x1c")]())[ia("0x44")]((t=>s.LiveRange[ia("0xc")](t)));i[ia("0x4")](n),t[ia("0x2e")][ia("0x9")](ia("0x14")).refresh(),t.execute(ia("0x14"),{forceDefaultExecution:!0});const o=r.filter((t=>ia("0xb")!=t[ia("0x1")][ia("0x19")]));o[ia("0x3e")]>0&&i[ia("0x4")](o);for(const t of r)t[ia("0x2b")]()}))}));for(const e of[ia("0x1a"),ia("0x3b"),ia("0x43"),ia("0x15")]){const n=t.commands.get(e);n.on(ia("0x0"),((e,i,r)=>{if(r){const i=t.model[ia("0x8")][ia("0x12")][ia("0x18")]()[ia("0x16")]()[ia("0x37")]((t=>t.is(ia("0x6"),"tableCell")));this._areMergableCells(n[ia("0x1f")],i)||(e[ia("0x1d")]=!1,e[ia("0x35")]())}}),{priority:ia("0x25")})}}[ia("0xf")](){const t=this[ia("0x3a")][ia("0x2e")][ia("0x9")](ia("0x14")),e=this[ia("0x3a")][ia("0x23")][ia("0x9")](ia("0x41"));if(!t[ia("0x1e")])return!1;const n=e[ia("0x40")](this.editor[ia("0x31")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[ia("0x38")](t,e))return!1;return!0}[ia("0x38")](t,e){const n=this[ia("0x3a")][ia("0x23")][ia("0x9")](ia("0x13")),i=this[ia("0x3a")][ia("0x31")][ia("0x21")](t),r=this[ia("0x3a")][ia("0x31")][ia("0x21")](e),o=new Set,s=new Set;for(const t of n.getSuggestions())if((ia("0xe")==t.type||"deletion"==t[ia("0x2a")]||"mergeTableCells"==t[ia("0x27")])&&t[ia("0x3c")])for(const e of t[ia("0x1c")]())e.containsRange(i,!0)&&o[ia("0x36")](t[ia("0x2a")]+":"+t[ia("0x32")].id),e[ia("0x3")](r,!0)&&s.add(t[ia("0x2a")]+":"+t.author.id);if(o.size!=s[ia("0x20")])return!1;for(const t of o)if(!s.has(t))return!1;return!0}}const oa=["ck-suggestion-marker-","commandName","markerName","data","highest","commandParams","setTableColumnHeader","parent","removeClass","downcastDispatcher","_enableDefaultAttributesIntegration","start","locale","format","FORMAT_HEADER_ROW","markerRange","createTableWalker","removeAttribute","setTableRowHeader","formatBlock","nodeAfter","_suggestionFactory","mapper","stop","_handleLegacySuggestions","TrackChangesEditing","FORMAT_HEADER_COLUMN","registerDescriptionCallback","ck-suggestion-marker--active","addMarker:suggestion","consume","forceValue","registerCustomCallback","nodeBefore","registerAttributeLabel","editing","requires","includes","item","headingColumns","headingRows","toViewElement","markerNameToElements","TableUtils","getCellLocation","_registerLegacyDescription","get","FORMAT_REGULAR_COLUMN","writer","FORMAT_REGULAR_ROW","_splitMarkerName","addClass","setAttribute","plugins","getSuggestion","consumable","activeMarkers","cell","_descriptionFactory","accept","editor","type","unbindElementFromMarkerName","data-suggestion"];var sa,xa;sa=oa,xa=110,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("0x36")](){return[Jx]}afterInit(){const t=this[aa("0xe")];if(!t[aa("0x7")].has("TableEditing"))return;const e=t[aa("0x1e")],n=t[aa("0x7")][aa("0x0")](aa("0x2b"));n[aa("0x1c")](aa("0x24"),[],["headingRows"]),n._enableDefaultAttributesIntegration("setTableColumnHeader",[],[aa("0x39")]),n[aa("0xc")][aa("0x34")](aa("0x3a"),Ji(e,aa("0x20"))),n._descriptionFactory[aa("0x34")](aa("0x39"),Ji(e,aa("0x2c"))),this[aa("0x2a")]()}_handleLegacySuggestions(){const t=this[aa("0xe")][aa("0x7")].get("TrackChangesEditing"),e=this[aa("0xe")][aa("0x7")][aa("0x0")](aa("0x3d")),n=this.editor[aa("0x7")][aa("0x0")](Jx)._acceptFormatSuggestionCallbackFactory();function i({showActiveMarker:n=!0,setDataAttribute:i=!0}={}){return(r,o,s)=>{const{type:x,id:a}=t[aa("0x4")](o[aa("0x14")]),c=t[aa("0x8")](a),l=c[aa("0x15")];if(aa("0x25")!=c[aa("0xf")]||!l||aa("0x18")!=l[aa("0x13")])return;if(o[aa("0x38")])return void r[aa("0x29")]();if(!s[aa("0x9")][aa("0x30")](o[aa("0x21")],r.name))return;const u=o[aa("0x21")][aa("0x1d")][aa("0x26")],d=o[aa("0x21")].end[aa("0x33")],g=u[aa("0x19")].parent,{column:f}=e[aa("0x3e")](u),{column:h}=e[aa("0x3e")](d);for(let r=f;r<=h;r++){const c=e[aa("0x22")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[aa("0xb")],c=s[aa("0x28")][aa("0x3b")](r);s[aa("0x2")][aa("0x5")](aa("0x12")+x,c),i&&s[aa("0x2")][aa("0x6")](aa("0x11"),a,c),s[aa("0x28")].bindElementToMarker(c,o[aa("0x14")]),n&&(t[aa("0xa")][aa("0x37")](o[aa("0x14")])?s[aa("0x2")][aa("0x5")](aa("0x2e"),c):s[aa("0x2")].removeClass(aa("0x2e"),c))}}}}t._suggestionFactory.registerCustomCallback(aa("0x25"),aa("0x24"),aa("0xd"),n),t[aa("0x27")][aa("0x32")](aa("0x25"),aa("0x18"),aa("0xd"),n),this.editor.editing[aa("0x1b")].on(aa("0x2f"),i(),{priority:"highest"}),this[aa("0xe")][aa("0x15")][aa("0x1b")].on(aa("0x2f"),((t,e,n)=>{n.options.showSuggestionHighlights&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[aa("0xe")][aa("0x35")][aa("0x1b")].on("removeMarker:suggestion",((e,n,i)=>{const{type:r,id:o}=t[aa("0x4")](n[aa("0x14")]),s=t[aa("0x8")](o),x=s[aa("0x15")];if(aa("0x25")!=s.type||!x||"setTableColumnHeader"!=x[aa("0x13")])return;const a=i.mapper[aa("0x3c")](n[aa("0x14")]);if(a)for(const t of a)i.writer[aa("0x1a")](aa("0x12")+r,t),i[aa("0x2")][aa("0x1a")]("ck-suggestion-marker--active",t),i.writer[aa("0x23")](aa("0x11"),t),i[aa("0x28")][aa("0x10")](t,n[aa("0x14")])}),{priority:aa("0x16")}),this[aa("0x3f")]()}[aa("0x3f")](){const t=this[aa("0xe")],e=t[aa("0x1e")];function n(t){return{type:aa("0x1f"),content:Ji(e,"*Format:* %0",t)}}t[aa("0x7")].get(aa("0x2b"))[aa("0xc")][aa("0x2d")]((t=>{if(aa("0x25")!=t[aa("0xf")])return;const{data:i}=t;if(i){if(aa("0x24")==i.commandName){const t=i[aa("0x17")][0][aa("0x31")];return n(Ji(e,aa(t?"0x20":"0x3")))}if(aa("0x18")==i[aa("0x13")]){const t=i[aa("0x17")][0][aa("0x31")];return n(Ji(e,aa(t?"0x2c":"0x1")))}}}))}}const la=["isEmpty","markerAttributes","locale","column","stop","updateMarker","tablePasteRow","getRows","commands","containsRange","columnInsertionIndexes","document","tablePasteColumn","plugins","getSuggestionCallback","suggestionUnloaded","wrap","createRangeOn","startsWith","isInContent","return","has","tablePasteChainId","table","content","removeMarkers","markMultiRangeBlockFormat","markers","_tablePostFixingSubtypes","map","getColumnIndexes","registerCustomCallback","activeMarkers","createTableWalker","getSelectionAffectedTableCells","createRange","tableCellVerticalAlignment","nextSibling","createRangeIn","tableCellPadding","_descriptionFactory","getChangedMarkers","tablePasteCell","removeMarker","end","model","row","previousSibling","listenTo","trackChanges","unwrap","nodeAfter","options","subType","getTableIfOnlyTableInContent","reduce","getMarkers","from","previous","author","attributes","hasSuggestion","setAttributes","getChildren","getRange","push","isEqual","find","forceDefaultExecution","cells","_createdBatches","deletionRanges","getItems","tableCell","conversion","insertion","formatBlock","suggestion-td","removeColumns","oldRange","tableCellHorizontalAlignment","suggestionLoaded","remove","insert","change","for","tableCellBorderStyle","markerToHighlight","registerPostFixer","*Replace table cells*","endColumn","_suggestionFactory","position","editor","get","ck-suggestion-marker--active","markMultiRangeInsertion","markMultiRangeDeletion","name","differ","dataDowncast","fromEntries","filter","deletion","rowInsertionRanges","move","editing","suggestion","columnInsertionRanges","TableClipboard","includes","fill","insertContent","value","showSuggestionHighlights","requires","getRanges","insertColumns","removeRows","getContainedElement","tableCellBorderWidth","_getCoordsForCells","newRange","documentSelection","endRow","low","add","getChild","getRowIndexes","createElement","paragraph","length","discard","getAttributes","first","join","tablePaste","suggestion:formatBlock:tablePasteCell","accept","ck-suggestion-marker-insertion","getChanges","createPositionBefore","redo","ck-suggestion-marker","some","tableCellBorderColor","element","tableCellSuggestion","Users","_splitMarkerName","next","last","register","set","findAncestor","high","insertRows","getSuggestions","cell","columns","markerName"];var ua,da;ua=la,da=234,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x2f"),ga("0x48"),ga("0xd"),ga("0x7"),ga("0x7c"),"tableCellBackgroundColor",ga("0x7f")],ha=Object[ga("0x1c")](fa.map((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x2a")](){return[Jx]}afterInit(){const t=this[ga("0x14")];if(!t[ga("0x65")].has(ga("0x24")))return;const n=t[ga("0x65")][ga("0x15")]("TrackChangesEditing"),i=t.plugins[ga("0x15")]("TableUtils"),r=t[ga("0x65")][ga("0x15")](Jx),o=t[ga("0x65")][ga("0x15")]("TableClipboard");r[ga("0x74")][ga("0x99")](ga("0x5e"),"tablePasteColumn"),t[ga("0x85")].schema[ga("0x4f")](ga("0x4a"),{allowIn:"tableCell",allowContentOf:ga("0x0"),isLimit:!0}),t.conversion.elementToElement({model:ga("0x4a"),view:"suggestion-td"});let s=null;t[ga("0x85")].on(ga("0x27"),((r,x)=>{const[a,c]=x,l=x[x[ga("0x3a")]-1];l&&l[ga("0x9c")]||n._isForcedDefaultExecutionBlock||this[ga("0x14")].commands.get(ga("0x89"))[ga("0x28")]&&function(t,e,n,i,r){if(e&&!e.is(ga("0x32")))return!1;const o=r[ga("0x8e")](t,n);if(!o||!ba(o,void 0,i))return!1;const s=i[ga("0x7a")](n.document.selection);if(!s[ga("0x3a")])return!1;const x=s[0][ga("0x51")](ga("0x6f")),a=i[ga("0x37")](s),c=i[ga("0x76")](s),l={startRow:a[ga("0x3d")],endRow:a[ga("0x4e")],startColumn:c[ga("0x3d")],endColumn:c[ga("0x4e")]};return 1==s[ga("0x3a")]&&(l[ga("0x33")]+=i[ga("0x5f")](o)-1,l[ga("0x11")]+=i.getColumns(o)-1),ba(x,l,i)}(a,c,t[ga("0x85")],i,o)&&(r[ga("0x5c")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ga("0xb")]((()=>{t[ga("0x85")][ga("0x27")](x[0],x[1],x[2],{forceDefaultExecution:!0});const i=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;r.length&&n[ga("0x17")](r,"tablePasteRow",{tablePasteChainId:i}),o[ga("0x3a")]&&n[ga("0x17")](o,ga("0x64"),{tablePasteChainId:i}),a[ga("0x3a")]&&n.markMultiRangeInsertion(a,ga("0x3f"),{tablePasteChainId:i,skipNestingCheck:!0}),c[ga("0x3a")]&&n[ga("0x18")](c,ga("0x3f"),{tablePasteChainId:i,skipNestingCheck:!0});const u=n[ga("0x72")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x82"),{tablePasteChainId:i});if(u){const e=u[ga("0x90")](),n=[];for(const{element:i,attributes:r}of l){if(!r)continue;const o=t[ga("0x85")][ga("0x69")](i),s=e[ga("0x9b")]((t=>t[ga("0x98")]()[ga("0x9a")](o)));s&&n.push([s[ga("0x19")],r])}n[ga("0x3a")]&&u.setAttribute(ga("0x59"),Object[ga("0x1c")](n))}s=null})))}),{priority:e.priorities[ga("0x52")]+10}),t[ga("0x65")][ga("0x15")](ga("0x24")).on("_replaceTableSlotCell",((t,e)=>{const[n,i,,r]=e;if(!s)return;t[ga("0x5c")]();const o=n[ga("0x55")],x=i,a=pa(o),c=pa(x);t[ga("0x6c")]=o;let l=null,u=null;if(c||a)if(a&&!c){r[ga("0x9")](o[ga("0x36")](0));for(const t of Array[ga("0x91")](x.getChildren()))r.insert(t,o,ga("0x84"));const t=s.rowInsertionIndexes[ga("0x25")](n[ga("0x86")]),e=s.columnInsertionIndexes.includes(n[ga("0x5b")]);t||e||(l=r[ga("0x7e")](o))}else c&&!a&&(u=r.createRangeIn(o));else{const t=r.createElement(ga("0x4a")),e=r[ga("0x38")]("tableCellSuggestion");r[ga("0x68")](r[ga("0x7e")](o),e),r[ga("0xa")](t,o,0);for(const e of Array[ga("0x91")](x[ga("0x97")]()))r.insert(e,t,ga("0x84"));l=r.createRangeOn(t),u=r[ga("0x69")](e)}const d=Array[ga("0x91")](x[ga("0x3c")]()).filter((([t])=>fa[ga("0x25")](t)));s.cells[ga("0x99")]({element:o,attributes:d.length?Object[ga("0x1c")](d):null}),l&&s.insertionRanges[ga("0x99")](l),u&&s[ga("0x9f")][ga("0x99")](u)}),{priority:ga("0x52")}),i.on(ga("0x2c"),((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x56")]||1;s[ga("0x62")]=new Array(a)[ga("0x26")](x)[ga("0x75")](((t,e)=>t+e));for(const{cell:e}of i[ga("0x79")](r,{startColumn:x,endColumn:x+a-1}))s[ga("0x23")][ga("0x99")](t[ga("0x85")][ga("0x69")](e))}),{priority:"low"}),i.on(ga("0x53"),((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o.rows||1;s.rowInsertionIndexes=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of i[ga("0x79")](r,{startRow:x,endRow:x+a-1}))s[ga("0x1f")].push(t.model[ga("0x69")](e))}),{priority:ga("0x34")}),n[ga("0x80")].registerDescriptionCallback((e=>{if(e[ga("0x8d")]&&e[ga("0x8d")][ga("0x6a")](ga("0x3f")))return e.previous?{}:{type:ga("0x2"),content:Ji(t[ga("0x5a")],ga("0x10"))}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn",ga("0x5e"),ga("0x82")])n[ga("0x12")][ga("0x77")](ga("0x2"),t,ga("0x3e"),x),n[ga("0x12")].registerCustomCallback(ga("0x1e"),t,ga("0x3e"),x),n[ga("0x12")].registerCustomCallback(ga("0x3"),t,ga("0x3e"),x);n._suggestionFactory[ga("0x77")]("formatBlock",ga("0x82"),ga("0x3b"),x),n[ga("0x12")][ga("0x77")](ga("0x3"),ga("0x82"),ga("0x41"),((e,n,i)=>{const r=e[ga("0x75")]((t=>t.getContainedElement()))[ga("0x1d")]((t=>t)),o=new Map(r[ga("0x75")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0x9d")])e&&o.set(t,e);else if(i&&i[ga("0x59")])for(const[e,n]of Object.entries(i[ga("0x59")])){const i=t[ga("0x85")][ga("0x73")][ga("0x15")](e),r=i?i[ga("0x98")]()[ga("0x2e")]():null;r&&o[ga("0x50")](r,n)}t.model[ga("0xb")]((t=>{for(const[e,n]of o)t[ga("0x96")]({...ha,...n},e)}))}));const a=(e,i)=>{n[ga("0x12")][ga("0x77")](e,"tablePaste",i,((r,o,s)=>{t[ga("0x85")][ga("0xb")]((t=>{const x=[];for(const t of r){const e=t.start[ga("0x8b")];e.is(ga("0x49"),ga("0x4a"))&&x[ga("0x99")](e)}n[ga("0x12")][ga("0x66")](e,null,i)(r,o,s);for(const e of x)"$graveyard"!=e.root.rootName&&t.unwrap(e)}))}))};a(ga("0x2"),ga("0x41")),a(ga("0x2"),ga("0x3b")),a(ga("0x1e"),"accept"),a(ga("0x1e"),ga("0x3b")),n._suggestionFactory[ga("0x77")](ga("0x2"),ga("0x5e"),ga("0x3b"),(t=>{const e=t.map((t=>t[ga("0x2e")]())),n=e[0][ga("0x51")](ga("0x6f")),{minRow:o,maxRow:s}=r[ga("0x30")](e);i[ga("0x2d")](n,{at:o,rows:s-o+1})})),n[ga("0x12")][ga("0x77")]("insertion",ga("0x64"),ga("0x3b"),(t=>{const e=t[ga("0x75")]((t=>t.getContainedElement())),n=e[0][ga("0x51")](ga("0x6f")),{minColumn:o,maxColumn:s}=r._getCoordsForCells(e);i[ga("0x5")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x8d")]||!e[ga("0x8d")][ga("0x6a")](ga("0x3f")))return;const i=e[ga("0x94")][ga("0x6e")],r=n[ga("0x54")]()[ga("0x1d")]((t=>t[ga("0x6b")]&&t[ga("0x94")]&&t[ga("0x94")][ga("0x6e")]==i));r[ga("0x3a")]&&e.getAllAdjacentSuggestions()[ga("0x3a")]!=r[ga("0x3a")]&&r[ga("0x8f")](((t,e)=>(t[ga("0x4d")]=e,e[ga("0x92")]=t,e)))};function l(t,e=!0){const{id:i}=n[ga("0x4c")](t[ga("0x57")]),r=[ga("0x46"),ga("0x42")],o=n[ga("0x78")][ga("0x25")](t[ga("0x57")]);return o&&r[ga("0x99")](ga("0x16")),{classes:r,attributes:{"data-suggestion":i},priority:o&&e?3010:3e3}}n.on(ga("0x8"),c,{priority:ga("0x52")}),n.on(ga("0x67"),c,{priority:ga("0x52")}),t[ga("0x85")][ga("0x63")][ga("0xf")]((()=>{let e=!1;const i=Array[ga("0x91")](t[ga("0x85")][ga("0x63")][ga("0x1a")].getChangedMarkers());for(const{name:r,data:o}of i){const{group:i,type:s,id:x}=n[ga("0x4c")](r);if(ga("0x22")!=i||ga("0x1e")!=s||o[ga("0x6")])continue;if(!n[ga("0x95")](x))continue;const a=n.getSuggestion(x)[ga("0x2b")](),c=t.plugins[ga("0x15")](ga("0x4b")).me;for(const t of n[ga("0x54")]())if(t[ga("0x6b")]&&t[ga("0x93")]==c&&"formatBlock"==t.type&&"tablePasteCell"==t.subType&&t[ga("0x2b")]().every((t=>a[ga("0x47")]((e=>e[ga("0x61")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[ga("0x6b")]&&(n[ga("0x3b")](),e=!0)}return e})),t[ga("0x85")][ga("0x63")][ga("0xf")]((e=>{const i=t[ga("0x60")][ga("0x15")](ga("0x45"));if(!i||!i[ga("0x9e")][ga("0x6d")](e.batch))return!1;let r=!1;const o=t[ga("0x65")][ga("0x15")]("Users").me,s=t[ga("0x85")][ga("0x63")][ga("0x1a")][ga("0x43")](),x=Array.from(t[ga("0x85")][ga("0x63")][ga("0x1a")][ga("0x81")]()).filter((({name:t,data:e})=>{const{group:i,subType:r,authorId:s}=n._splitMarkerName(t);return ga("0x22")==i&&ga("0x3f")==r&&s==o.id&&!e.oldRange}));for(const t of s){if(ga("0xa")!=t.type||ga("0x4a")!=t[ga("0x19")]||1!=t[ga("0x3a")])continue;const n=e[ga("0x7b")](t.position,t[ga("0x13")].getShiftedBy(1));if(!x[ga("0x9b")]((({data:t})=>t[ga("0x31")][ga("0x9a")](n))))for(const{name:t,data:i}of x)if(n.containsRange(i[ga("0x31")])){e[ga("0x5d")](t,{range:n}),r=!0;break}}return r})),t[ga("0x85")][ga("0x63")][ga("0xf")]((e=>{let i=!1;const r=t.plugins.get(ga("0x4b")).me,o=n[ga("0x54")]()[ga("0x1d")]((t=>t[ga("0x6b")]&&t[ga("0x93")]==r)),s=new Set,x=new Set;for(const t of o)if(ga("0x3f")==t.subType)for(const e of t[ga("0x90")]()){const n=e[ga("0x98")]()[ga("0x2e")]();if(n)if(n.is(ga("0x49"),ga("0x4a"))&&pa(n)){t[ga("0x83")](e[ga("0x19")]),s.add(n),i=!0;const r=n[ga("0x7d")],o=n[ga("0x87")],a=r&&r.is("element","tableCellSuggestion"),c=o&&o.is(ga("0x49"),ga("0x4a"));a&&!s[ga("0x6d")](r)&&x[ga("0x35")](r),c&&!s[ga("0x6d")](o)&&x[ga("0x35")](o)}else n.is(ga("0x49"),"paragraph")&&n[ga("0x58")]&&(t[ga("0x83")](e[ga("0x19")]),i=!0)}else if("tablePasteCell"==t[ga("0x8d")]){if(!t.attributes||!t[ga("0x94")][ga("0x6e")])continue;const e=t[ga("0x94")][ga("0x59")];if(e&&Object.keys(e)[ga("0x3a")])continue;const n=t.attributes.tablePasteChainId;let r=!0,s=!0;for(const e of o)if(e[ga("0x8d")]&&e.subType[ga("0x6a")](ga("0x3f"))){if(!e.attributes[ga("0x6e")]){s=!1;break}if(e.id!=t.id&&e[ga("0x94")][ga("0x6e")]==n){r=!1;break}}s&&r&&(t[ga("0x71")](),i=!0)}for(const t of s)e[ga("0x9")](t);for(const t of x)e[ga("0x8a")](t);return i})),t[ga("0x1")][ga("0xc")]("editingDowncast")[ga("0xe")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ga("0x52")}),t[ga("0x1")][ga("0xc")](ga("0x1b"))[ga("0xe")]({model:ga("0x40"),view:(t,e)=>e[ga("0x8c")][ga("0x29")]?l(t,!1):null,converterPriority:ga("0x52")});const u=t[ga("0x21")].view;this[ga("0x88")](u.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ga("0x7e")](e[ga("0x70")])[ga("0xa0")]())t.is(ga("0x49"),ga("0x4"))&&n[ga("0x99")](t);u[ga("0xb")]((t=>{for(const e of n)t[ga("0x20")](t[ga("0x7e")](e),t[ga("0x44")](e)),t[ga("0x9")](e)}))}))}}function pa(t){if(t[ga("0x58")])return!0;const e=t[ga("0x36")](0);return e.is("element",ga("0x39"))&&e[ga("0x58")]}function ba(t,e={},n){for(const{isAnchor:i,cellHeight:r,cellWidth:o}of n[ga("0x79")](t,{includeAllSlots:!0,...e}))if(!i||1!=r||1!=o)return!1;return!0}const Ea=["getAttribute","accept","handleResizeTableWidthCommand","formatInline","_descriptionFactory","change","selection","TrackChangesEditing","registerCustomCallback","type","has","tableWidth","columnWidths","bind","editor","get","*Format:* resize table","locale","enableCommand","author","document","getSuggestions","resizeTableWidth","formatBlock","TableColumnResizeEditing","discard","_suggestionFactory","Users","plugins","resizeTable","handleSuggestionDescription","model","registerDescriptionCallback","subType","markBlockFormat","table","getSuggestionCallback"];var _a,Ta;_a=Ea,Ta=238,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{afterInit(){if(!this.editor.plugins[ya("0x1f")](ya("0x8")))return;const t=this.editor[ya("0xc")][ya("0x24")]("TrackChangesEditing");t[ya("0x2")](ya("0x6"),this[ya("0x17")][ya("0x22")](this)),t[ya("0xa")][ya("0x1d")](ya("0x7"),ya("0xd"),ya("0x16"),t[ya("0xa")][ya("0x14")](ya("0x7"),null,ya("0x9"))),t[ya("0xa")][ya("0x1d")](ya("0x7"),ya("0xd"),ya("0x9"),t[ya("0xa")][ya("0x14")](ya("0x7"),null,"accept")),t[ya("0x19")][ya("0x10")](this.handleSuggestionDescription[ya("0x22")](this))}[ya("0x17")](t,e){const n=this[ya("0x23")].plugins[ya("0x24")](ya("0x1c")),i=this[ya("0x23")].plugins.get(ya("0x8")),r=e[ya("0x13")]||this[ya("0x23")][ya("0xf")][ya("0x4")][ya("0x1b")].getSelectedElement();this.editor[ya("0xf")][ya("0x1a")]((()=>{const o=i.getColumnGroupElement(r);let s=o?i.getTableColumnsWidths(o):null,x=r[ya("0x15")](ya("0x20"))||null;const a=e[ya("0x20")]||x,c=e[ya("0x21")]||s,l=this[ya("0x23")].plugins[ya("0x24")](ya("0xb")).me;for(const t of n[ya("0x5")]()){const e=t.getContainedElement();if(ya("0xd")===t[ya("0x11")]&&e===r){t[ya("0x3")]!==l&&t[ya("0x9")]();const e=t.data.commandParams;x=e[0][ya("0x20")],s=e[0][ya("0x21")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[ya("0x12")](r,{commandName:ya("0x6"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0xd")},[],"resizeTable")}))}[ya("0xe")](t){if("formatBlock"!=t.type&&ya("0x18")!=t[ya("0x1e")])return;const{data:e}=t;if(e&&ya("0xd")===e.formatGroupId){const t=ya("0x0");return{type:"format",content:Ji(this[ya("0x23")][ya("0x1")],t)}}}}const Aa=["afterInit","enableCommand","insertTemplate","TrackChangesEditing","plugins","get"];var ka,Sa;ka=Aa,Sa=387,function(t){for(;--t;)ka.push(ka.shift())}(++Sa);const Ia=function(t,e){return Aa[t-=0]};class Ra extends t.Plugin{[Ia("0x3")](){const t=this.editor;t[Ia("0x1")].has("Template")&&t[Ia("0x1")][Ia("0x2")](Ia("0x0"))[Ia("0x4")](Ia("0x5"))}}const va=["locale","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","afterInit","registerElementLabel","TrackChangesEditing","insertTableOfContents","editor","plugins","_descriptionFactory","commands","get"];var Na,La;Na=va,La=201,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x6")](){const t=this[Ma("0xa")];if(!t[Ma("0x1")][Ma("0x2")]("insertTableOfContents"))return;t.plugins.get(Ma("0x8")).enableCommand(Ma("0x9"));const e=t[Ma("0xb")].get("TrackChangesEditing"),n=t[Ma("0x3")];e[Ma("0x0")][Ma("0x7")](Ma("0x5"),(t=>Ji(n,Ma("0x4"),t)))}}const Oa=["isCollapsed","getChangedMarkers","afterInit","end","editor","registerPostFixer","has","nodeBefore","createRange","document","isTouching","element","plugins","locale","isEqual","from","ELEMENT_TITLE","model","removeMarker","title-content","suggestion","get","TrackChangesEditing","newRange","schema","getNearestSelectionRange","updateMarker","registerElementLabel","start"];var Fa,Da;Fa=Oa,Da=198,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{[Ba("0x7")](){const t=this[Ba("0x9")];if(!t[Ba("0x11")][Ba("0xb")]("Title"))return;const e=t[Ba("0x11")][Ba("0x1a")](Ba("0x1b"));e._descriptionFactory[Ba("0x3")](Ba("0x18"),(()=>Ji(t[Ba("0x12")],Ba("0x15")))),t[Ba("0x16")][Ba("0xe")][Ba("0xa")]((n=>{let i=!1;const r=Array[Ba("0x14")](t[Ba("0x16")][Ba("0xe")].differ[Ba("0x6")]());for(const{name:o,data:s}of r){const{group:r}=e._splitMarkerName(o);if(Ba("0x19")!==r||!s[Ba("0x1c")])continue;const x=s[Ba("0x1c")],a=x[Ba("0x8")][Ba("0xc")];if(!a||!a.is(Ba("0x10"),Ba("0x18")))continue;if(!x.start[Ba("0xf")](x.end))continue;const c=t.model[Ba("0x0")][Ba("0x1")](x.end,"forward");if(c&&c[Ba("0x5")]){const t=n[Ba("0xd")](x[Ba("0x4")],c.start);t[Ba("0x13")](x)||(n[Ba("0x2")](o,{range:t}),i=!0)}i||(n[Ba("0x17")](o),i=!0)}return i}))}}const Ua=["UndoEditing","has","plugins","TrackChangesEditing","undo","enableCommand","redo"];var ja,Ga;ja=Ua,Ga=356,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{afterInit(){const t=this.editor,e=t[Va("0x3")].get(Va("0x4"));t[Va("0x3")][Va("0x2")](Va("0x1"))&&(e[Va("0x6")](Va("0x5")),e[Va("0x6")](Va("0x0")))}}const za=["afterInit","requires","editor","has","TrackChangesEditing","TableCaptionEditing","enableCommand","plugins","toggleTableCaption"];var Wa,Ka;Wa=za,Ka=408,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get[qa("0x7")](){return[Jx]}[qa("0x6")](){const t=this[qa("0x8")];t.plugins[qa("0x0")](qa("0x2"))&&t[qa("0x4")].get(qa("0x1"))[qa("0x3")](qa("0x5"))}}const $a=["table","TableUtils","tableCellPadding","_descriptionFactory","tableBorderColor","_suggestionFactory","format","registerDescriptionCallback","findAncestor","discard","commandParams","tableCellBorderWidth","selection","tableHeight","*Format:* change table cell properties","tableBorderWidth","getSuggestionCallback","tableProperties","join","afterInit","_getSuggestion","change","*Format:* change table properties","registerCustomCallback","getSuggestions","plugins","tableCellVerticalAlignment","removeAttribute","tableBorderStyle","document","getSelectionAffectedTableCells","tableBackgroundColor","nodeAfter","TablePropertiesEditing","TableCellPropertiesEditing","TrackChangesTableProperties","editor","formatBlock","tableCellBorderColor","subType","setAttribute","tableWidth","batch","_handlePropertyChange","handleDiscardAction","getContainedElement","has","accept","tableCellProperties","get","markBlockFormat","tableAlignment","getAttribute","TrackChangesEditing","handleSuggestionDescription","model","start","enableCommand","enqueueChange","pluginName","tableCellWidth"];var Za,Ya;Za=$a,Ya=171,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return $a[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this[Ja("0x1d")]=[Ja("0x10"),Ja("0x28"),Ja("0x1b"),Ja("0x2"),Ja("0x35"),Ja("0x19"),Ja("0x2b")],this[Ja("0x3c")]=[Ja("0x32"),"tableCellBorderStyle",Ja("0x17"),Ja("0xe"),Ja("0xb"),"tableCellHeight","tableCellBackgroundColor","tableCellHorizontalAlignment",Ja("0x26")]}static get[Ja("0xa")](){return Ja("0x2f")}[Ja("0x1f")](){const t=this[Ja("0x30")].plugins[Ja("0x0")]("TrackChangesEditing");if(this[Ja("0x30")].plugins[Ja("0x3a")](Ja("0x2d"))){for(const e of this[Ja("0x1d")])t[Ja("0x8")](e,((t,n)=>{const i=this[Ja("0x30")].model[Ja("0x29")].selection.getFirstPosition()[Ja("0x14")](Ja("0xc"));this._handlePropertyChange(e,[i],this.tableProperties,Ja("0x1d"),t,n)}));t[Ja("0x11")][Ja("0x23")]("formatBlock","tableProperties","accept",t._suggestionFactory.getSuggestionCallback(Ja("0x31"),null,Ja("0x15"))),t._suggestionFactory[Ja("0x23")](Ja("0x31"),Ja("0x1d"),Ja("0x15"),((t,e)=>this[Ja("0x38")](this[Ja("0x1d")],t,e))),t[Ja("0x11")][Ja("0x23")](Ja("0x31"),Ja("0x1d"),Ja("0x1e"),(()=>!1))}if(this[Ja("0x30")][Ja("0x25")][Ja("0x3a")](Ja("0x2e"))){for(const e of this.tableCellProperties)t[Ja("0x8")](e,((t,n)=>{const i=this[Ja("0x30")][Ja("0x25")][Ja("0x0")](Ja("0xd"))[Ja("0x2a")](this[Ja("0x30")][Ja("0x6")][Ja("0x29")][Ja("0x18")]);this[Ja("0x37")](e,i,this[Ja("0x3c")],Ja("0x3c"),t,n)}));t._suggestionFactory[Ja("0x23")](Ja("0x31"),"tableCellProperties",Ja("0x3b"),t[Ja("0x11")][Ja("0x1c")](Ja("0x31"),null,Ja("0x15"))),t[Ja("0x11")][Ja("0x23")](Ja("0x31"),Ja("0x3c"),Ja("0x15"),((t,e)=>this[Ja("0x38")](this[Ja("0x3c")],t,e))),t[Ja("0x11")][Ja("0x23")](Ja("0x31"),Ja("0x3c"),"join",(()=>!1))}t[Ja("0xf")][Ja("0x13")]((t=>this[Ja("0x5")](t)))}[Ja("0x37")](t,e,n,i,r,o){const s=this[Ja("0x30")][Ja("0x25")].get(Ja("0x4"));this[Ja("0x30")][Ja("0x6")][Ja("0x9")](o[Ja("0x36")],(()=>{for(const t of e)if(this[Ja("0x20")](t,i))r(o);else{const e={};for(const i of n){const n=t[Ja("0x3")](i);void 0!==n&&(e[i]=n)}r(o),s[Ja("0x1")](t,{commandParams:[e]},[],i)}}))}handleDiscardAction(t,e,n){const i=e[0][Ja("0x7")][Ja("0x2c")],r=n[Ja("0x16")][0];this.editor[Ja("0x6")][Ja("0x21")]((e=>{for(const n of t)void 0!==r[n]?e[Ja("0x34")](n,r[n],i):e[Ja("0x27")](n,i)}))}handleSuggestionDescription(t){if(t.data)switch(t[Ja("0x33")]){case Ja("0x1d"):return{type:"format",content:Ji(this[Ja("0x30")].locale,Ja("0x22"))};case Ja("0x3c"):return{type:Ja("0x12"),content:Ji(this.editor.locale,Ja("0x1a"))}}}[Ja("0x20")](t,e){const n=this[Ja("0x30")][Ja("0x25")].get(Ja("0x4"));for(const i of n[Ja("0x24")]({skipNotAttached:!0})){const n=i[Ja("0x39")]();if(i[Ja("0x33")]===e&&n===t)return i}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,ic=ec.hasOwnProperty,rc=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=ic.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==rc};const sc=function(t){return oc(t)?void 0:t};var xc=rt?rt.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,i,r,o){var s=-1,x=e.length;for(i||(i=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&i(a)?n>1?t(a,n-1,i,r,o):sn(o,a):r||(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 i=arguments,r=-1,o=dc(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=i[r];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 i=mc(),r=16-(i-n);if(n=i,r>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 i=!1;e=ui(e,(function(e){return e=mi(e,t),i||(i=e.length>1),e})),oe(t,dn(t),n),i&&(n=ti(n,7,sc));for(var r=e.length;r--;)Wi(n,e[r]);return n})),Ec=["conversion","execute","isSelectable","createdAt","refresh","editor","low","warn","high","_enabledCommands","formatBlock","_removeSuggestion","addSuggestionData","document","set","setSelection","removeAttribute","consume","isCollapsed","getRange","$textProxy","split","getUser","_setSuggestionRange","_suggestions","rootName","model","move","isMultiRange","insert","_initAriaMarkerChangeAnnouncements","_refreshAttributeSuggestionsChain","originalSuggestionId","group","formatInline:discard","_isRegisteredAttribute","_processAttributeSuggestions","end","tablePasteChainId","error-saving-suggestion-data-suggestion-discarded","enableReadOnlyMode","editingDowncast","removeClass","stopListening","clear","for","default","collaboration.channelId","insertion","ariaLiveAnnouncer","discardSuggestion","_model","getFirstMarker","applyOperation","_defaultCallbacks","_suggestionFactory","containsItem","commandName","hasComments","getAttribute","unbindElementFromMarkerName","assign","getNearestSelectionRange","name","track-changes-command-not-found","insertion:discard","targetPosition","locale","item","isIntersecting","creator","fire","fetchCommentThread","authorName","fromCharCode","commands","value","_saved","_reduceSuggestionAttributeRange","resolve","data-suggestion","pluginName","before","attribute:discard","change","deletion","_updateSuggestionData","formatBlock:discard","highest","_recordAttributeChanges","registerPostFixer","activeMarkers","after","isLimit","$marker","suggestion:","formatInline","getMarkers","_getExternalAuthor","removeComment","update:suggestion","editing","ck-suggestion-marker--active","setAttribute","rename","external:","accept","newRange","bindElementToMarker","head","createRangeOn","getWalker","_reduceExistingSuggestions","PENDING_ACTION_SUGGESTION","_mergeNestedSuggestions","_addThreadToSuggestion","isBlock","containsRange","_suggestionState","formatBlock:","isTouching","has","requires","_afterChanges","_getAttributeKey","markerReady","attribute:","formatInline:accept","notReady","registerCustomCallback","unshift","ck-suggestion-marker-formatInline","isRemovable","attributeOldValue","TrackChangesEditing","differ","ck-suggestion-marker-","fromRange","suggestion","isAtEnd","isIntersectingWithRange","createRangeIn","insertContent","open","adapter","ready","concat","clone","some","start","updateMarker","howMany","mapper","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.","add","next","schema","_joinWithAdjacentSuggestions","discard","_isDataLoaded","author","change:data","acceptSelectedSuggestions","markers","suggestionUnloaded","delete","track-changes-user-not-found","dataDowncast","showSuggestionHighlights","formatInline:chain","isNextTo","insertion:","nodeAfter","isEqual","deletion:","_addSuggestionMarker","consumable","removeMarker","_splitMarkerName","upcast","_registerDefaultCallbacks","addClass","createPositionBefore","groupId","$elementName","lowest","addMarker:suggestion:formatBlock","forEach","addMarker:suggestion","createElement","elementToElement","keys","data","_rangeIsInLocalUserInsertion","plugins","Users","elementEnd","markMultiRangeDeletion","updateSuggestion","markerToHighlight","always","suggestion:attribute:","batch","oldRange","addUser","addMarker:suggestion:attribute","_onDiscard","addRange","formatInline:","push","_commentsRepository","buildSuggestion","attribute","ck-suggestion-marker-formatBlock","$graveyard","splice","filter","containsPosition","commentThread","from","removeMarker:suggestion:formatBlock","trackChangesCommand","stop","isOwn","removed","getSuggestionCallback","@external","attributeNewValue","attributes","join","formatGroupId","acceptAllSuggestions","_processAttributeChanges","removeMarkers","deleteContent","selection","key","track-changes-suggestion-not-found","enableCommand","previous","getAncestors","formatBlock:join","getFirstRange","find","config","reconvertMarker","_refreshSuggestionsChain","_breakSuggestionMarker","position","_getMarkerAnnouncementText","isInsideObject","forceDefaultExecution","deletion:join","markerName","ck-suggestion-marker","_customCallbacks","createRange","get","createPositionAt","_isBlockAttribute","getIntersection","_inlineAttributeKeys","size","root","markAttributeChange","isInContent","deletion:accept","startsWith","range","deletion:chain","track-changes-suggestion-data-mismatch","_joinSuggestions","getContainedElement","formatInline:join","createSelection","_registerBlockAttribute","_trackFormatChanges","multipleBlocks","_recordAttributeSuggestions","_element","isBefore","authoredAt","remove","CommentsRepository","length","getCustomProperty","every","markerNameToElements","attributeKey","_blockAttributeKeys","getShiftedBy","catch","addSuggestion","getSuggestions","nodeBefore","getRanges","includes","_setSuggestionData","suggestionLoaded","isAfter","marker-count","track-changes-adapter-missing-getsuggestion","markDeletion","rejected","_getSuggestionData","acceptSuggestion","isObject","getSuggestion","getMultiRangeId","_registerInlineAttribute","_isForcedDefaultExecutionBlock","getAllAdjacentSuggestions","suggestionChanged","map","writer","track-changes-adapter-already-set","getLastMatchingPosition","parent","_handleNewSuggestionMarker","PendingActions","_findSuggestions","$text","_createSuggestion","formatBlock:chain","element","containerElement","toViewElement","enqueueChange","_checkSuggestionCorrectness","options","widget","rethrowUnexpectedError","insertion:accept","sort","listenTo","discardAllSuggestions","return","format","documentSelection","getDifference","markerToData","addMarkerName","oldValue","markInsertion","never","suggestion-type","insertion:chain","isDocumentOperation","backward","trackChanges.mergeNestedSuggestions","getChanges","isLocal","subType","_getAuthorFromId","type","toJSON","_cutOutSuggestionMarker","getCommentThread","trackChanges","ENTER","then","isArray","values","define","trackChanges.trackFormatChanges","getItems","containsRangeInObject","detach","hasSuggestion","_adapter","isAtStart","formatBlock:accept","skipNestingCheck","isUndo","_editor","_enableDefaultAttributesIntegration","forward","announce"];var _c,Tc;_c=Ec,Tc=162,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x16");class Ac extends t.Plugin{static get[yc("0x152")](){return["CommentsRepository",o.Users,t.PendingActions,ar,gr,Er,Ar,Fr,Nr,jr,Kr,ro,Ao,vo,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Is,Ms,Bs,qs,tx,Vs,co,mo,ox,lx,hx,_x,Sx,Lx,Dx,Vx,qx,Jx,ra,ca,Xa,ma,Ca,wa,Qa,Ra,Pa,Ha]}static get[yc("0x129")](){return yc("0x15e")}constructor(t){function e(t){return t.map((t=>String[yc("0x122")](t))).join("")}super(t),this[yc("0x74")]=!1,this[yc("0xe6")](yc("0x133"),[]),this.on("change:activeMarkers",((e,n,i,r)=>{this[yc("0x10b")][yc("0x12c")]((()=>{for(const e of[...r,...i])this[yc("0x10b")].markers[yc("0x151")](e)&&t[yc("0x13d")][yc("0x53")](e)}))})),this._descriptionFactory=new ir(this[yc("0xdd")].model[yc("0x174")],this[yc("0xdd")][yc("0x11b")]),this[yc("0xcf")]=null,this._suggestionFactory=new kc(this.editor),this[yc("0xf0")]=new Map,this[yc("0x30")]=t.plugins[yc("0x5f")](yc("0x79")),this[yc("0xe1")]=new Set,this._model=this[yc("0xdd")][yc("0xf2")],this._suggestionState=new WeakMap,this[yc("0x94")]=!1,this[yc("0x7f")]=new Set([yc("0x16")]),this[yc("0x63")]=new Set,t[yc("0x52")][yc("0xc9")]("trackChanges.trackFormatChanges",yc("0x106")),this._trackFormatChanges=t[yc("0x52")][yc("0x5f")](yc("0xca")),t[yc("0x52")].define("trackChanges.mergeNestedSuggestions",!0),this[yc("0x14a")]=t[yc("0x52")][yc("0x5f")](yc("0xbb")),this.trackChangesCommand=new d(t,this[yc("0xe1")]),this[yc("0xf6")](),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,53,50])}init(){const t=this[yc("0xdd")],n=(t,e)=>{if(yc("0x32")!=t)return yc("0x160")+t;const n=e.split("|")[0];return this[yc("0x61")](n)?"ck-suggestion-marker-formatBlock":yc("0x15b")};t[yc("0xd8")][yc("0x105")](yc("0x101"))[yc("0x25")]({model:yc("0x162"),view:t=>{const{id:e,type:i,subType:r}=this[yc("0x10")](t[yc("0x5b")]),o=[yc("0x5c"),n(i,r)];let s=3e3;return this[yc("0x133")][yc("0x86")](t[yc("0x5b")])&&(o[yc("0x2f")](yc("0x13e")),s=3010),yc("0x12d")==i&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0xd8")][yc("0x105")](yc("0x5")).add((e=>{e.on(yc("0x1a"),((e,n,i)=>{if(!i[yc("0xa7")][yc("0x6")])return;const r=n[yc("0x11c")];if(!r)return;const o=i[yc("0x170")][yc("0xa4")](r);t[yc("0xf2")][yc("0x174")][yc("0x90")](r)&&o&&!o[yc("0x7b")](yc("0xa8"))&&o.is(yc("0xa3"))&&(0,x.toWidget)(o,i.writer)}),{priority:yc("0xe0")})})),t.conversion.for("dataDowncast")[yc("0x25")]({model:yc("0x162"),view:(t,e)=>{if(!e[yc("0xa7")].showSuggestionHighlights)return null;const{type:i,subType:r}=this[yc("0x10")](t.markerName);return{classes:[yc("0x5c"),n(i,r)],priority:3e3}}});const i=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(i,r,o)=>{if(!r[yc("0x11c")])return;const{id:s}=this[yc("0x10")](r.markerName);if(n){const t=this[yc("0xf0")][yc("0x5f")](s),e=this._getAttributeKey(t);if(!this[yc("0x61")](e))return}if(r[yc("0x11c")].is(yc("0x49")))return void o[yc("0xe")][yc("0xe9")](r[yc("0x11c")],i[yc("0x117")]);const x=o.mapper[yc("0xa4")](r[yc("0x11c")]);if(r[yc("0x11c")].is(yc("0xa2"))&&t[yc("0xf2")][yc("0x174")][yc("0x14c")](r[yc("0x11c")])&&!x.getCustomProperty("addHighlight")){o[yc("0x98")][yc("0x13")](["ck-suggestion-marker",yc("0x33")],x),o[yc("0x98")][yc("0x13f")](yc("0x128"),s,x),o[yc("0x170")][yc("0x144")](x,r[yc("0x5b")]),e&&(this.activeMarkers[yc("0x86")](r[yc("0x5b")])?o.writer[yc("0x13")](yc("0x13e"),x):o[yc("0x98")][yc("0x102")](yc("0x13e"),x));for(const e of t[yc("0xf2")][yc("0x165")](r[yc("0x11c")])[yc("0xcb")]())o.consumable.consume(e,i[yc("0x117")]);o[yc("0xe")][yc("0xe9")](r[yc("0x11c")],i[yc("0x117")])}};t[yc("0xd8")][yc("0x105")](yc("0x5"))[yc("0x172")]((t=>{t.on(yc("0x18"),((t,e,n)=>{n[yc("0xa7")][yc("0x6")]&&i({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x130")})})),t.conversion.for(yc("0x5")).add((t=>{t.on(yc("0x2b"),((t,e,n)=>{n[yc("0xa7")][yc("0x6")]&&i({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[yc("0xd8")].for(yc("0x5"))[yc("0xb2")]({model:yc("0x162"),view:(t,e)=>e.options.showSuggestionHighlights?null:{group:"suggestion",name:t.substr(11)}}),t[yc("0xd8")][yc("0x105")]("upcast")[yc("0x1c")]({view:{name:yc("0x162"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x137")+t.getAttribute(yc("0xb7"))+":"+t.getAttribute("id");return t[yc("0x113")](yc("0x8a"))&&(n+=":"+t[yc("0x113")](yc("0x8a"))),e[yc("0x1b")](yc("0x136"),{"data-name":n})}}),t[yc("0xd8")][yc("0x105")](yc("0x11")).dataToMarker({view:yc("0x162")}),t[yc("0xd8")][yc("0x105")]("editingDowncast").add((t=>{t.on(yc("0x18"),i(),{priority:yc("0xe0")})})),t.conversion[yc("0x105")](yc("0x101"))[yc("0x172")]((t=>{t.on("addMarker:suggestion:attribute",i({isAttributeSuggestion:!0}),{priority:"high"})})),t.conversion[yc("0x105")]("editingDowncast").add((t=>{t.on(yc("0x3a"),((t,e,n)=>{const i=n[yc("0x170")][yc("0x7d")](e.markerName);if(i)for(const t of i)t[yc("0x7b")]("addHighlight")||(n[yc("0x98")].removeClass([yc("0x5c"),yc("0x33"),yc("0x13e")],t),n[yc("0x98")][yc("0xe8")](yc("0x128"),t),n[yc("0x170")][yc("0x114")](t,e.markerName))}),{priority:yc("0xe0")})})),t[yc("0xd8")][yc("0x105")](yc("0x101"))[yc("0x172")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const i=n[yc("0x170")].markerNameToElements(e[yc("0x5b")]);if(!i)return;const{id:r}=this[yc("0x10")](e[yc("0x5b")]),o=this[yc("0xf0")][yc("0x5f")](r),s=this[yc("0x154")](o);if(this[yc("0x61")](s))for(const t of i)t[yc("0x7b")]("addHighlight")||(n[yc("0x98")][yc("0x102")]([yc("0x5c"),"ck-suggestion-marker-formatBlock",yc("0x13e")],t),n[yc("0x98")][yc("0xe8")](yc("0x128"),t),n[yc("0x170")].unbindElementFromMarkerName(t,e[yc("0x5b")]))}),{priority:yc("0xe0")})})),t[yc("0xf2")][yc("0xe5")].registerPostFixer((e=>{let n=!1;const i=Array[yc("0x39")](t[yc("0xf2")][yc("0xe5")][yc("0x15f")].getChangedMarkers()),r=new Set;for(const{name:x,data:a}of i){const{group:i,type:c,subType:l,id:u}=this[yc("0x10")](x);if(yc("0x162")!==i)continue;const d=this[yc("0xf0")][yc("0x5f")](u);if(null!=a[yc("0x143")]){yc("0x138")==c&&(n=n||Rc(a.newRange,x,e,t.model[yc("0x174")]));const i=yc("0x32")==c&&this._isBlockAttribute(l[yc("0xed")]("|")[0]);if(a[yc("0x143")][yc("0xea")]||yc("0x34")==a[yc("0x143")][yc("0x65")][yc("0xf1")]||"formatBlock"==c&&!Nc(a.newRange)||i&&!Nc(a[yc("0x143")])||yc("0x12d")==c&&(Ic(s=a.newRange)||(o=s).start.parent==o.end[yc("0x84")]&&o[yc("0x16d")].isAtEnd))e[yc("0xf")](x),n=!0;else{if(!d||!d[yc("0x67")])continue;r[yc("0x172")](d)}}}var o,s;return r[yc("0x64")]>0&&(n=!!this[yc("0x175")](r)||n),n})),t[yc("0xf2")][yc("0xe5")].registerPostFixer((e=>{let n=!1;for(const i of t.model[yc("0xe5")][yc("0x15f")].getChanges())if(yc("0xf5")==i.type)for(const i of this[yc("0xf0")][yc("0xc8")]()){if(i[yc("0xf4")]||!i.isInContent)continue;const r=yc("0xe2")==i.type,o=this[yc("0x154")](i),s=o&&this[yc("0x61")](o);if(!r&&!s)continue;const x=i[yc("0x50")]();if(x.start.parent!=x[yc("0xfd")].parent&&!x[yc("0xfd")].isAtEnd){const r=t[yc("0xf2")].createPositionAt(x[yc("0x16d")][yc("0xa")],yc("0xfd")),o=t[yc("0xf2")][yc("0x5e")](x[yc("0x16d")],r);e[yc("0x16e")](i[yc("0x10c")](),{range:o}),n=!0}}return n})),t[yc("0xf2")].document[yc("0x132")]((t=>this[yc("0x46")](t))),t[yc("0xf2")][yc("0xe5")][yc("0x132")]((t=>!t[yc("0x28")][yc("0xbd")]&&this[yc("0xfc")](t))),t[yc("0xf2")].on(yc("0x153"),(()=>{this._recordAttributeSuggestions=!1})),t.model[yc("0xe5")].on(yc("0x179"),((n,i)=>{if(!i[yc("0xbd")]||i.isUndo)return;if(!this[yc("0x74")])return;const r=t[yc("0xf2")][yc("0xe5")].differ.getChanges();if(0==r.length)return;const o=[],s=r[yc("0x36")]((t=>yc("0x32")==t[yc("0xc0")])),x=r[yc("0x36")]((t=>yc("0xf5")==t.type&&yc("0x9f")!=t[yc("0x117")])),a=r[yc("0x36")]((t=>"remove"==t[yc("0xc0")]&&yc("0x9f")!=t[yc("0x117")]));for(const e of s)this[yc("0xfb")](e[yc("0x7e")])&&o[yc("0x2f")]({key:e[yc("0x7e")],newValue:e.attributeNewValue,oldValue:e[yc("0x15d")],range:Lc(e[yc("0x6a")],t[yc("0xf2")])});for(const e of x){const n=a[yc("0x51")]((t=>t[yc("0x75")]===e._element));if(n){const i=Mc(e[yc("0x56")][yc("0xa")],t[yc("0xf2")]);n[yc("0x117")]!==e.name&&o[yc("0x2f")]({key:yc("0x16"),newValue:e[yc("0x117")],oldValue:n.name,range:i});for(const[t,r]of n[yc("0x42")]){if(!this[yc("0xfb")](t))continue;const n=e[yc("0x42")].get(t);r!==n&&o[yc("0x2f")]({key:t,newValue:n,oldValue:r,range:i})}for(const[t,r]of e[yc("0x42")])this[yc("0xfb")](t)&&(n[yc("0x42")][yc("0x151")](t)||o.push({key:t,newValue:r,oldValue:null,range:i}))}}0!=o[yc("0x7a")]&&t[yc("0xf2")][yc("0xa5")](i,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:i,newValue:r}of o)this[yc("0x66")](t,e,i,r,{groupId:n});this[yc("0x148")](t,o)}))}),{priority:yc("0x17")}),t[yc("0xf2")][yc("0x1")].on(yc("0x13c"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[yc("0x117")]),n=this[yc("0xf0")][yc("0x5f")](t);n&&n[yc("0xb3")](e[yc("0x117")])}})),t[yc("0xf2")][yc("0xe5")].on(yc("0x179"),(()=>{const e=Array[yc("0x39")](t[yc("0xf2")][yc("0xe5")][yc("0x15f")].getChangedMarkers())[yc("0x36")]((t=>yc("0x162")===this[yc("0x10")](t[yc("0x117")])[yc("0xf9")]));if(0===e.length)return;e[yc("0xab")](((t,e)=>{const n=t[yc("0x1e")].oldRange,i=e[yc("0x1e")][yc("0x29")];return null===n&&null===i?0:null===n&&null!==i?-1:null!==n&&null===i?1:n.start.isBefore(i[yc("0x16d")])?-1:1}));const n=new Set,i=new Set;for(const{name:t,data:r}of e){const{id:e}=this[yc("0x10")](t);if(null===r[yc("0x29")]){const e=this[yc("0x9c")](t);i[yc("0x172")](e)}else{const t=this[yc("0xf0")].get(e);null!==r[yc("0x143")]||t.isInContent?(n[yc("0x172")](t[yc("0x145")]),i[yc("0x172")](t)):this[yc("0xe3")](t)}}i[yc("0x64")]>0&&this._refreshSuggestionsChain(i);for(const t of n)this[yc("0x11f")](yc("0x96"),t)})),t.model.on(yc("0x10d"),((e,n)=>{const i=n[0];if(!this._suggestions[yc("0x64")])return;if(!i[yc("0xb9")])return;if(i[yc("0x28")][yc("0xd3")]||!i[yc("0x28")].isLocal)return;let r,o;switch(i[yc("0xc0")]){case yc("0xf5"):r=t[yc("0xf2")][yc("0x60")](i.position),o=r[yc("0x80")](i.howMany);break;case yc("0xed"):r=t[yc("0xf2")][yc("0x60")](i.splitPosition),o=t[yc("0xf2")].createPositionAt(i.moveTargetPosition);break;case yc("0xf3"):r=t[yc("0xf2")][yc("0x60")](i[yc("0x11a")]),o=r[yc("0x80")](i[yc("0x16f")]);break;default:return}const s=t.model[yc("0x5e")](r,o);t[yc("0xf2")][yc("0x12c")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x9e")](s)){if(t[yc("0xf4")])continue;if(yc("0x138")==t[yc("0xc0")])continue;const n=this._getAttributeKey(t);if(n&&this[yc("0x61")](n)&&yc("0xed")!=i.type)continue;const x=t.data&&t.data[yc("0x73")];(yc("0xe2")!=t[yc("0xc0")]||"split"==i.type&&!x)&&(e[yc("0xcc")]||yc("0x108")==t[yc("0xc0")]&&e[yc("0x3d")]||t[yc("0x50")]()[yc("0x14d")](s)&&this[yc("0x55")](t,r,o))}}))}),{priority:"lowest"}),t.model.on(yc("0x48"),((e,n)=>{const i=n[0],r=n[1];if(r&&r.forceDefaultExecution)return;if(this[yc("0x94")])return;if(!this[yc("0x3b")].value)return;if(i[yc("0xea")])return;const o=t[yc("0xf2")][yc("0x174")],{start:s,end:x}=i[yc("0x50")](),a=s.nodeAfter&&o[yc("0x135")](s[yc("0xa")])?null:o.getNearestSelectionRange(s,yc("0xd6")),c=x[yc("0x84")]&&o[yc("0x135")](x[yc("0x84")])?null:o[yc("0x116")](x,yc("0xba")),l=t[yc("0xf2")][yc("0x5e")](a?a[yc("0x16d")]:s,c?c[yc("0xfd")]:x);t[yc("0xf2")].change((e=>{this[yc("0x8c")](l);const n=t[yc("0xf2")].schema[yc("0x116")](l[yc("0x16d")]);i.is(yc("0xb0"))?e.setSelection(n):i.setTo(n)})),e[yc("0x3c")]()}),{priority:e.priorities.normal+10}),t[yc("0xf2")].on(yc("0x166"),((e,n)=>{const i=n[n[yc("0x7a")]-1];i&&i[yc("0x59")]||this[yc("0x94")]||this[yc("0x3b")].value&&(t[yc("0xf2")][yc("0x12c")]((()=>{let i=t.model[yc("0x166")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!i)return;e[yc("0xae")]=i[yc("0x16b")]();const r=i[yc("0xfd")][yc("0x84")],o=t[yc("0xf2")][yc("0x174")];r&&o[yc("0x14c")](r)&&!o.isObject(r)&&(i=t[yc("0xf2")][yc("0x5e")](i.start,t.model[yc("0x60")](r,"end"))),this[yc("0xb5")](i)})),e[yc("0x3c")]())}),{priority:yc("0xe0")}),this.editor[yc("0x123")].add(yc("0xc4"),this[yc("0x3b")]),this.enableCommand(yc("0xc4"));const r=new p(t,this[yc("0xf0")]);t[yc("0x123")][yc("0x172")](yc("0x8f"),r),this.enableCommand(yc("0x8f"));const o=new y(t,this._suggestions);t[yc("0x123")][yc("0x172")](yc("0x10a"),o),this[yc("0x4c")](yc("0x10a")),t[yc("0x123")].add(yc("0x45"),new F(t,r,this[yc("0xf0")])),this[yc("0x4c")](yc("0x45")),t.commands[yc("0x172")](yc("0xad"),new F(t,o,this[yc("0xf0")])),this.enableCommand(yc("0xad")),t[yc("0x123")][yc("0x172")]("acceptSelectedSuggestions",new j(t,r,this._suggestions)),this.enableCommand(yc("0x0")),t[yc("0x123")][yc("0x172")]("discardSelectedSuggestions",new j(t,o,this._suggestions)),this.enableCommand("discardSelectedSuggestions");const s=t[yc("0x20")].get(yc("0x79"));this.listenTo(s,"addComment",((t,{threadId:e})=>{const n=this[yc("0xf0")][yc("0x5f")](e);n&&n[yc("0x38")]&&1===n[yc("0x38")][yc("0x7a")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:yc("0xde")}),this[yc("0xac")](s,yc("0x13b"),((t,{threadId:e})=>{const n=this[yc("0xf0")].get(e);n&&n[yc("0x38")]&&!n[yc("0x38")][yc("0x7a")]&&this[yc("0x12e")](e,{hasComments:!1})}),{priority:yc("0xde")})}set[yc("0x168")](t){if(this[yc("0xcf")])throw new e.CKEditorError(yc("0x99"),this);this[yc("0xcf")]=t}get[yc("0x168")](){return this[yc("0xcf")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0xf0")][yc("0xc8")]())t&&!e[yc("0x67")]||n[yc("0x2f")](e);return e?n[yc("0x97")]((t=>t[yc("0xc1")]())):n}getSuggestion(t){const n=this[yc("0xf0")].get(t);if(!n)throw new e.CKEditorError(yc("0x4b"),this);return n}[yc("0xce")](t){return this._suggestions.has(t)}[yc("0xe4")](t){const{authorId:e,id:n,attributes:i}=t,[r,o]=t[yc("0xc0")][yc("0xed")](":"),s=this[yc("0xf0")].get(n)||this[yc("0xa0")](r,o,n,e,i);if(this[yc("0x14b")](s),this[yc("0xa6")](s,r,o||null,e),s[yc("0xdb")]=t.createdAt,s._isDataLoaded=!0,i&&i[yc("0x40")]){const t=i[yc("0x40")],e=this[yc("0x13a")](t[yc("0x121")]);s[yc("0x77")]=t[yc("0xdb")],s[yc("0x178")]=e,s.isExternal=!0}else s[yc("0x77")]=t[yc("0xdb")];switch(t.data&&(s.data=t[yc("0x1e")]),t[yc("0x42")]&&(s.attributes=t[yc("0x42")]),this[yc("0xcf")]&&this[yc("0xcf")][yc("0x82")]||(s[yc("0x125")]=!0),this._suggestionState[yc("0x5f")](s)){case yc("0x158"):this[yc("0x14e")][yc("0xe6")](s,"dataReady");break;case"markerReady":s.isInContent?(this[yc("0x175")](new Set([s])),this[yc("0x54")](new Set([s])),this[yc("0x14e")][yc("0xe6")](s,yc("0x169")),this[yc("0x11f")](yc("0x88"),s)):this._suggestionState[yc("0xe6")](s,yc("0x3e"))}return s}[yc("0x8f")](t){this[yc("0x59")]((()=>{this[yc("0xdd")][yc("0xf2")].change((()=>{for(const e of t[yc("0x95")]())e[yc("0x142")]()}))}))}[yc("0x10a")](t){this.forceDefaultExecution((()=>{this[yc("0xdd")][yc("0xf2")][yc("0x12c")]((()=>{for(const e of t[yc("0x95")]())e[yc("0x176")]()}))}))}[yc("0x4c")](t,n){const i=this[yc("0xdd")].commands[yc("0x5f")](t);if(!i)throw new e.CKEditorError(yc("0x118"),this,{commandName:t});if(this._enabledCommands.has(i))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[yc("0xe1")][yc("0x172")](i),n&&i.on(yc("0xd9"),((t,e)=>{this.trackChangesCommand[yc("0x124")]&&(this[yc("0x94")]||(e[yc("0x7a")]>0&&e[e[yc("0x7a")]-1]&&e[e[yc("0x7a")]-1].forceDefaultExecution?e.pop():(t[yc("0xae")]=n(((...t)=>i[yc("0xd9")](...t,{forceDefaultExecution:!0})),...e),t[yc("0x3c")]())))}),{priority:yc("0xe0")})}[yc("0x59")](t){let n,i;const r=this._isForcedDefaultExecutionBlock;this[yc("0x94")]=!0;try{n=t()}catch(t){i=t}return r||(this[yc("0x94")]=!1),i&&e.CKEditorError[yc("0xa9")](i,this),n}markInsertion(t,n=null,i={}){if(t[yc("0xea")])return null;const r=this[yc("0xdd")].plugins[yc("0x5f")]("Users").me;for(const{suggestion:e,meta:r}of this[yc("0x9e")](t,"insertion"))if(r[yc("0x3d")]){if(!r[yc("0x8")]){if(r[yc("0xcc")]){if(!this[yc("0x14a")]||!Fc(e,i))continue;return e}if(Fc(e,i))return e;this[yc("0x55")](e,t[yc("0x16d")],t[yc("0xfd")]);break}if(n==e[yc("0xbe")]&&Fc(e,i)){const n=e[yc("0x50")]();return n[yc("0x16d")].isEqual(t[yc("0xfd")])?this[yc("0xef")](e,this[yc("0x10b")][yc("0x5e")](t[yc("0x16d")],n[yc("0xfd")])):this[yc("0xef")](e,this[yc("0x10b")].createRange(n[yc("0x16d")],t.end)),e}}const o=(0,e.uid)(),s=r.id,x=n?"insertion:"+n:"insertion",a=this[yc("0x87")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:i});return this[yc("0xd")](x,o,s,t),a}markMultiRangeInsertion(t,n="multi",i={}){const r=this[yc("0xdd")].plugins.get(yc("0x21")).me,o=this[yc("0x10f")][yc("0x3f")](yc("0x108"),n,yc("0x43"));for(const e of this[yc("0x83")]())if(e[yc("0x178")].id==r.id&&yc("0x108")==e.type&&e[yc("0xbe")]==n&&Fc(e,i)&&(o(e[yc("0x85")](),t)||o(t,e[yc("0x85")]()))){for(const n of t)e[yc("0x2d")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x108"))){if(!n[yc("0x3d")])continue;if(!this._mergeNestedSuggestions&&n[yc("0xcc")])continue;if(!Fc(e,i))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n[yc("0x14d")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=yc("0x9")+n,c=this[yc("0x87")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:i});for(const e of t)this._addSuggestionMarker(a,s,x,e,Yi[yc("0x92")]());return c}markInlineFormat(t,n,i=null,r={}){if(i=i||vc(n),t[yc("0xea")])return null;if(yc("0xb6")===this[yc("0x72")]){const e=this[yc("0x10f")][yc("0x3f")](yc("0x138"),i,yc("0x142"));return this[yc("0x59")]((()=>e([t],n,r))),null}const o=this.editor[yc("0x20")][yc("0x5f")](yc("0x21")).me,s=[];if("always"!==this[yc("0x72")])for(const{suggestion:e,meta:n}of this[yc("0x9e")](t,"insertion"))n[yc("0x3d")]&&!n[yc("0x58")]&&s[yc("0x2f")](...e[yc("0x85")]());const x=function(t,e){const n=[];for(const i of e){const e=t[yc("0x62")](i);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x7a")];){const i=n[e][yc("0xb1")](t);n.splice(e,1,...i),e+=i[yc("0x7a")]}}return n}(t,s);x[yc("0x7a")]&&this._model.change((()=>{for(const t of x){const e=this[yc("0x10f")][yc("0x3f")](yc("0x138"),i,yc("0x142"));this[yc("0x59")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[yc("0x16d")],a=t[yc("0xfd")];for(const{suggestion:e,meta:n}of this[yc("0x9e")](t,yc("0x138"))){if(!n[yc("0x3d")])continue;if(e.subType!=i)continue;if(!Fc(e,r))continue;const o=e[yc("0x50")]();if(o[yc("0x14d")](t,!0))return null;x=x.isBefore(o[yc("0x16d")])?x:o.start,a=a.isAfter(o.end)?a:o[yc("0xfd")],s?o.start[yc("0x76")](s[yc("0x50")]().start)?(s.removeMarkers(),s=e):e[yc("0x47")]():s=e}const c=this[yc("0x10b")][yc("0x5e")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0x87")]({id:t,type:yc("0x2e")+i,data:n,createdAt:new Date,authorId:s,attributes:r}),this._addSuggestionMarker(yc("0x2e")+i,t,s,c)}}return null}markBlockFormat(t,n,i=[],r=null,o={}){n.formatGroupId||(n.formatGroupId=n[yc("0x111")]),n[yc("0x73")]=t.is(yc("0x6a")),r=r||vc(n);const s=i.map((t=>Mc(t,this[yc("0x10b")]))),x=t.is(yc("0x6a"))?t:Mc(t,this[yc("0x10b")]);if(yc("0xb6")===this._trackFormatChanges){const t=this[yc("0x10f")][yc("0x3f")](yc("0xe2"),r,yc("0x142"));return this[yc("0x59")]((()=>t([x],n,o))),null}s.push(x);let a=!0;for(const t of s)if(!this[yc("0x1f")](t)){a=!1;break}if(a&&yc("0x26")!==this[yc("0x72")]){const t=this[yc("0x10f")][yc("0x3f")]("formatBlock",r,"accept");return this[yc("0x59")]((()=>t([x],n,o))),null}let c=null,l=x[yc("0x16d")],u=x[yc("0xfd")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,yc("0xe2"))){if(!e[yc("0x3d")])continue;if(e[yc("0x8")]||e.containsRangeInObject||e.isInsideObject)continue;if(t.data[yc("0x44")]!=n[yc("0x44")])continue;if(!Fc(t,o))continue;const i=t[yc("0x50")]();if(t.subType==r){if(i[yc("0x14d")](x,!0))return null;l=l[yc("0x76")](i.start)?l:i[yc("0x16d")],u=u[yc("0x89")](i[yc("0xfd")])?u:i.end,c?i[yc("0x16d")][yc("0x76")](c[yc("0x50")]()[yc("0x16d")])?(c[yc("0x47")](),c=t):t[yc("0x47")]():c=t}else{const e=x[yc("0x62")](i);this[yc("0xc2")](t,e)}}const d=this.editor[yc("0x20")][yc("0x5f")](yc("0x21")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0xef")](c,this[yc("0x10b")].createRange(l,u)),c;{const t=this[yc("0x87")]({id:g,type:yc("0x14f")+r,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0xd")](yc("0x14f")+r,g,f,this[yc("0x10b")][yc("0x5e")](l,u)),t}}markMultiRangeBlockFormat(t,n,i=[],r=null,o={}){n.formatGroupId||(n[yc("0x44")]=n[yc("0x111")]);const s=t[0];n[yc("0x73")]=s.is(yc("0x6a")),r=r||vc(n);const x=i[yc("0x97")]((t=>Mc(t,this[yc("0x10b")]))),a=s.is(yc("0x6a"))?t:t.map((t=>Mc(t,this[yc("0x10b")])));if("never"===this[yc("0x72")]){const t=this._suggestionFactory[yc("0x3f")]("formatBlock",r,"accept");return this[yc("0x59")]((()=>t(a,n,o))),null}x[yc("0x2f")](...a);let c=!0;for(const t of x)if(!this[yc("0x1f")](t)){c=!1;break}if(c&&yc("0x26")!==this[yc("0x72")]){const t=this._suggestionFactory[yc("0x3f")](yc("0xe2"),r,yc("0x142"));return this[yc("0x59")]((()=>t(a,n,o))),null}const l=this[yc("0xdd")][yc("0x20")][yc("0x5f")](yc("0x21")).me;for(const t of this[yc("0x83")]()){if(t.author.id!=l.id)continue;if(yc("0xe2")!=t[yc("0xc0")]||t.data[yc("0x44")]!=n[yc("0x44")])continue;if(!Fc(t,o))continue;const e=t[yc("0xbe")]==r;for(let n=0;n<a[yc("0x7a")];n++){const i=a[n];for(const r of t[yc("0x139")]()){const o=r[yc("0xeb")]();if(i[yc("0xb")](o)){e?(a[yc("0x35")](n,1),n--):t.removeMarker(r[yc("0x117")]);break}}}}if(0==a[yc("0x7a")])return null;const u=this._suggestionFactory.getSuggestionCallback(yc("0xe2"),r,yc("0x43"));for(const t of this[yc("0x83")]())if(t.author.id==l.id&&"formatBlock"==t.type&&t[yc("0x1e")][yc("0x44")]==n[yc("0x44")]&&t[yc("0xbe")]==r&&Fc(t,o)&&(u(t.getRanges(),a)||u(a,t[yc("0x85")]()))){for(const e of a)t[yc("0x2d")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x14f")+r,h=this[yc("0x87")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this._addSuggestionMarker(f,d,g,t,Yi[yc("0x92")]());return h}markDeletion(t,n=null,i={}){if(t.isCollapsed)return null;const r=this[yc("0xdd")].plugins[yc("0x5f")](yc("0x21")).me,o=new s.LiveRange(t[yc("0x16d")],t[yc("0xfd")]);for(const{suggestion:t,meta:e}of this[yc("0x9e")](o,yc("0x108")))if(e[yc("0x3d")]&&!e[yc("0x8")])if(t[yc("0xf4")]){const e=t.getRanges()[yc("0x36")]((t=>yc("0x34")!=t[yc("0x65")][yc("0xf1")]));if(e[yc("0x7c")]((t=>o.containsRange(t,!0)))&&t[yc("0x176")](),e.some((t=>t[yc("0x14d")](o,!0)))){const t=this[yc("0x10f")][yc("0x3f")]("deletion",n,yc("0x142"));return this[yc("0x59")]((()=>t([o],null,i))),null}}else{const e=o[yc("0x62")](t[yc("0x50")]());null!==e&&t[yc("0x2c")]([e],null,i)}if(o[yc("0xcd")](),o[yc("0xea")]||"$graveyard"==o[yc("0x65")][yc("0xf1")])return null;let x=null,a=o.start,c=o[yc("0xfd")];const l=this[yc("0x9e")](o,yc("0x12d"));for(const{suggestion:t,meta:e}of l){const n=this[yc("0x10b")][yc("0x5e")](a,c);if(e.isOwn&&(this[yc("0x14a")]||!e[yc("0xcc")]&&!e[yc("0x58")]))if(t.isMultiRange){if(!Fc(t,i))continue;let e=!0;for(const i of t[yc("0x85")]()){if(i[yc("0x14d")](n,!0))return t;n[yc("0x14d")](i)||(e=!1)}e&&t[yc("0x176")]()}else{const e=t[yc("0x50")]();if(e[yc("0x14d")](n,!0))return t;if(!Fc(t,i)){n[yc("0x14d")](e)?t.removeMarkers():e.containsPosition(a)?a=e[yc("0xfd")]:e[yc("0x37")](c)&&(c=e[yc("0x16d")]);continue}a=a[yc("0x76")](e[yc("0x16d")])?a:e.start,c=c[yc("0x89")](e.end)?c:e[yc("0xfd")],i=Object[yc("0x115")]({},t[yc("0x42")]),x?e.start.isBefore(x[yc("0x50")]()[yc("0x16d")])?(x[yc("0x47")](),x=t):t.removeMarkers():x=t}}if(x)return this[yc("0xef")](x,this[yc("0x10b")][yc("0x5e")](a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x10b")][yc("0x5e")](a,c),s=r.id,x=n?yc("0xc")+n:"deletion",l=this[yc("0x87")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:i});return this[yc("0xd")](x,t,s,o),l}}[yc("0x23")](t,n="multi",i={}){const r=this[yc("0xdd")].plugins[yc("0x5f")]("Users").me,o=t[yc("0x97")]((t=>new s.LiveRange(t.start,t[yc("0xfd")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x108")))e[yc("0x3d")]&&!e[yc("0x8")]&&x[yc("0x172")](t);for(const e of x)if(e.isMultiRange){const r=e[yc("0x85")]();if((!e.attributes||!e[yc("0x42")].skipNestingCheck)&&r.every((t=>o[yc("0x16c")]((e=>e[yc("0x14d")](t,!0)))))&&e[yc("0x176")](),o[yc("0x7c")]((t=>r[yc("0x16c")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[yc("0x3f")]("deletion",n,yc("0x142"));return this[yc("0x59")]((()=>e(t,null,i))),null}}else{const t=e.getFirstRange();if(o.some((e=>e[yc("0x14d")](t,!0)))&&e[yc("0x176")](),o.every((e=>t[yc("0x14d")](e,!0)))){const t=this[yc("0x10f")][yc("0x3f")](yc("0x12d"),n,yc("0x142"));return this.forceDefaultExecution((()=>t(o,null,i))),null}}const a=this[yc("0x10f")][yc("0x3f")](yc("0x12d"),n,yc("0x43"));let c=null;for(const t of this.getSuggestions())if(t.author.id==r.id&&t.isInContent&&yc("0x12d")==t[yc("0xc0")]&&t[yc("0xbe")]==n&&Fc(t,i)&&(a(t[yc("0x85")](),o)||a(o,t[yc("0x85")]())))if(c){if(t[yc("0x38")]&&t[yc("0x38")][yc("0x7a")])continue;for(const e of t[yc("0x85")]())c[yc("0x164")](e)||c[yc("0x2d")](e);t[yc("0x47")]()}else{c=t;for(const e of o)t[yc("0x164")](e)||t[yc("0x2d")](e)}if(c)return c;x[yc("0x104")]();for(const{suggestion:t,meta:e}of this[yc("0x9e")](o,yc("0x12d")))e[yc("0x3d")]&&(this._mergeNestedSuggestions||!e[yc("0xcc")]&&!e[yc("0x58")])&&Fc(t,i)&&x.add(t);for(const t of x){const e=t[yc("0x85")]();if((!i||!i[yc("0xd2")])&&o.every((t=>e[yc("0x16c")]((e=>e[yc("0x14d")](t,!0))))))return t;(!t[yc("0x42")]||!t[yc("0x42")][yc("0xd2")])&&e[yc("0x7c")]((t=>o.some((e=>e[yc("0x14d")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=r.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:i});for(const t of o)t[yc("0xcd")](),t[yc("0xea")]||"$graveyard"==t[yc("0x65")][yc("0xf1")]||this[yc("0xd")](d,l,u,t,Yi[yc("0x92")]());return g}[yc("0x66")](t,n,i,r,o){if(t[yc("0xea")])return[];if(yc("0xb6")===this[yc("0x72")])return[];const s=this[yc("0xdd")][yc("0x20")][yc("0x5f")]("Users").me.id,x=Array[yc("0x39")](this._suggestions.values())[yc("0x36")]((e=>yc("0x32")==e.type&&e[yc("0x1e")][yc("0x4a")]==n&&e[yc("0x164")](t)));if(yc("0x106")===this[yc("0x72")]){const e=this[yc("0x9e")](t,yc("0x108"))[yc("0x36")]((({meta:t})=>t.isOwn&&!t[yc("0x58")]&&!t[yc("0x8")])).map((({suggestion:t})=>t));x[yc("0x15a")](...e)}const a=new Map([[t,i]]);for(const t of x){const e=yc("0x32")==t[yc("0xc0")]?t.data.oldValue:void 0,o=t.getFirstRange(),s=Array[yc("0x39")](a.keys())[yc("0x51")]((t=>t[yc("0x11d")](o)));if(!s)continue;const x=s[yc("0xb1")](o);this[yc("0x61")](n)&&yc("0x108")==t[yc("0xc0")]&&0!=x[yc("0x7a")]||(a[yc("0x3")](s),x[yc("0x19")]((t=>{a[yc("0xe6")](t,i)})),yc("0x108")!=t[yc("0xc0")]&&e!=r&&a.set(s.getIntersection(o),e))}const c=[];for(const[t,i]of a){const x=(0,e.uid)(),a={key:n,oldValue:i,newValue:r};n[yc("0x7a")]>37&&console[yc("0xdf")](yc("0x171"),{key:n});const l=(yc("0x156")+(n+"|")+vc({newValue:r})).substring(0,60),u=this[yc("0x87")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0x2f")](u),this[yc("0xd")](l,x,s,t)}return c}[yc("0x71")](t){this[yc("0x7f")][yc("0x172")](t)}[yc("0x93")](t){this[yc("0x63")].add(t)}[yc("0xd5")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[yc("0x131")]((()=>{t(...e)}))}));for(const t of e)this[yc("0x93")](t);for(const t of n)this._registerBlockAttribute(t)}_getAttributeKey(t){return"attribute"==t.type?t[yc("0xbe")][yc("0xed")]("|")[0]:null}[yc("0xef")](t,e){const n=t.getFirstMarker();this[yc("0x10b")][yc("0x12c")]((t=>{t[yc("0x16e")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[yc("0xdd")][yc("0x52")][yc("0x5f")](yc("0x107"));this[yc("0x30")].hasCommentThread(e)||this[yc("0x30")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const i=this[yc("0x30")][yc("0xc3")](e);i.unbind(yc("0x15c")),i[yc("0x15c")]=!1,t.commentThread=i}[yc("0xa6")](t,n,i,r){if(t[yc("0xc0")]!=n||t[yc("0xbe")]!=i||t.creator.id!=r)throw this[yc("0xdd")][yc("0x100")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(yc("0x6c"),this)}_cutOutSuggestionMarker(t,n){const i=t[yc("0x50")]();if(n[yc("0xb")](i))t[yc("0x47")]();else if(i[yc("0x14d")](n)){const r=this[yc("0x10b")].createPositionAt(n[yc("0x16d")].nodeBefore,yc("0xfd"));this[yc("0xef")](t,this[yc("0x10b")][yc("0x5e")](i[yc("0x16d")],r));const o=(0,e.uid)(),s=t[yc("0x11e")].id,x=t[yc("0xc0")]+":"+t[yc("0xbe")];this._setSuggestionData({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x1e")],attributes:t[yc("0x42")]});const a=this[yc("0x10b")][yc("0x60")](n[yc("0xfd")][yc("0x9b")],yc("0x134")),c=this[yc("0x10b")][yc("0x5e")](a,i[yc("0xfd")]);this[yc("0xd")](x,o,s,c)}else if(i[yc("0x37")](n[yc("0x16d")])){const e=this[yc("0x10b")][yc("0x60")](n[yc("0x16d")][yc("0x84")],yc("0xfd"));this[yc("0xef")](t,this._model.createRange(i[yc("0x16d")],e))}else{const e=this._model.createPositionAt(n[yc("0xfd")].parent,yc("0x134"));this[yc("0xef")](t,this._model.createRange(e,i[yc("0xfd")]))}}[yc("0x1f")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x108"))){if(!n.isOwn)continue;const i=e[yc("0x85")]();for(const e of i)if(!t[yc("0xb1")](e)[yc("0x7a")])return!0}return!1}[yc("0xbf")](t){const n=this[yc("0xdd")][yc("0x20")][yc("0x5f")]("Users")[yc("0xee")](t);if(!n)throw new e.CKEditorError(yc("0x4"),this);return n}[yc("0x13a")](t){const e=this[yc("0xdd")][yc("0x20")][yc("0x5f")](yc("0x21")),n=(0,o.hashObject)(yc("0x141")+t);return e.getUser(n)||e[yc("0x2a")]({id:n,name:t})}[yc("0xa0")](t,e,n,i,r){const o=this[yc("0xbf")](i),s=this[yc("0x10f")].buildSuggestion(t,e,n,o,r,(t=>{this._updateSuggestionData(n,{attributes:t});const e=this[yc("0x91")](n);this[yc("0x175")](new Set([e])),this[yc("0x54")](new Set([e]))}));return this.listenTo(s,yc("0x142"),(()=>{this._updateSuggestionData(n,{state:"accepted"})}),{priority:yc("0xe0")}),this.listenTo(s,yc("0x176"),(()=>{this[yc("0x12e")](n,{state:yc("0x8d")})}),{priority:yc("0xe0")}),this._suggestions[yc("0xe6")](n,s),this._suggestionState.set(s,yc("0x158")),s}[yc("0x10")](t){const e=t[yc("0xed")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[yc("0x7a")]<5?e[2]:e[3],authorId:e[yc("0x7a")]<5?e[3]:e[4],markerCount:6==e[yc("0x7a")]?e[5]:null}}[yc("0x55")](t,n,i){const r=t[yc("0x50")](),o=r.start,s=r[yc("0xfd")];this._setSuggestionRange(t,this[yc("0x10b")][yc("0x5e")](o,n));const x=(0,e.uid)(),a=t[yc("0x11e")].id,c=t[yc("0xc0")]+(t.subType?":"+t.subType:"");this[yc("0x87")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[yc("0x1e")]});const l=this[yc("0x154")](t);("formatBlock"==t[yc("0xc0")]||l&&this[yc("0x61")](l))&&(i=this[yc("0x10b")][yc("0x14")](i.parent)),this[yc("0xd")](c,x,a,this[yc("0x10b")][yc("0x5e")](i,s))}[yc("0x9e")](t,e=null){const n=[],i=this[yc("0xdd")].plugins[yc("0x5f")](yc("0x21")).me;Array[yc("0xc7")](t)||(t=[t]);for(const r of this[yc("0x83")]()){if(!r.isInContent)continue;if(e&&r[yc("0xc0")]!=e)continue;let o=!1;for(const e of r[yc("0x85")]()){for(const s of t){const t=s[yc("0x16d")].isEqual(e[yc("0xfd")])||s.end[yc("0xb")](e[yc("0x16d")]);if(t||s[yc("0x62")](e)){const x=s[yc("0x14d")](e)&&Sc(this[yc("0x10b")][yc("0x174")],e.start,s),a=e[yc("0x14d")](s)&&Sc(this._model.schema,s[yc("0x16d")],e);n.push({suggestion:r,meta:{isOwn:i==r[yc("0x178")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0xd")](t,e,n,i,r){this[yc("0x10b")][yc("0x12c")]((o=>{let s="suggestion:"+t+":"+e+":"+n;r&&(s=s+":"+r),o.addMarker(s,{range:i,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[yc("0x173")];t[yc("0x4d")]=null,t.next=null,null!=e&&e[yc("0x173")]==t&&(e[yc("0x173")]=n),null!=n&&n[yc("0x4d")]==t&&(n.previous=e),"ready"==this[yc("0x14e")][yc("0x5f")](t)&&(this[yc("0x14e")].set(t,yc("0x3e")),this[yc("0x11f")](yc("0x2"),t,e,n))}_setSuggestionData(t){const n=t.id,i=this[yc("0xe4")](t);if(this[yc("0xcf")]&&this._adapter.addSuggestion){const r=this.editor[yc("0x20")][yc("0x5f")]("PendingActions"),o=i[yc("0x112")],s=i[yc("0xbe")]?i[yc("0xc0")]+":"+i[yc("0xbe")]:i[yc("0xc0")],x=this[yc("0xdd")][yc("0x11b")],a=r[yc("0x172")](Ji(x,yc("0x149"))),c={id:n,type:s,hasComments:o,data:t[yc("0x1e")]||null,originalSuggestionId:t[yc("0xf8")]||null,attributes:i[yc("0x42")]};this[yc("0xcf")][yc("0x82")](c)[yc("0xc6")]((t=>{i._saved=!0,r.remove(a),t&&t[yc("0xdb")]&&(this[yc("0xf0")].get(n)[yc("0xdb")]=t[yc("0xdb")])}))[yc("0x81")]((t=>{throw(0,e.logWarning)(yc("0xff")),this.editor[yc("0xf2")].enqueueChange({isUndoable:!1},(()=>{i.discard()})),i[yc("0x103")](),this[yc("0xf0")][yc("0x3")](i.id),this[yc("0x14e")].delete(i),t}))}return i}[yc("0x61")](t){return this._blockAttributeKeys[yc("0x151")](t)}[yc("0x12e")](t,e){const n=this[yc("0xdd")][yc("0x20")][yc("0x5f")](yc("0x9d")),i=this[yc("0x91")](t);if(this._adapter&&this[yc("0xcf")][yc("0x24")])if(i[yc("0x125")]){const i=n[yc("0x172")](Ji(this[yc("0xdd")][yc("0x11b")],yc("0x149")));this[yc("0xcf")][yc("0x24")](t,e)[yc("0xc6")]((()=>{n[yc("0x78")](i)}))}else i.on("change:_saved",(()=>{this[yc("0x12e")](t,e)}))}[yc("0x8e")](t){if(!this[yc("0xcf")]||!this[yc("0xcf")][yc("0x91")])throw new e.CKEditorError(yc("0x8b"),this);return this[yc("0xcf")][yc("0x91")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:i,authorId:r}=this._splitMarkerName(t),o=this._suggestions[yc("0x5f")](e)||this[yc("0xa0")](n,i,e,r,{});switch(this[yc("0xa6")](o,n,i,r),this[yc("0x14e")][yc("0x5f")](o)){case yc("0x158"):this._getSuggestionData(e).then((t=>{let n=Promise[yc("0x127")]();t[yc("0x112")]&&(n=this[yc("0x30")][yc("0x120")]({channelId:this[yc("0xdd")][yc("0x52")][yc("0x5f")](yc("0x107")),threadId:e})),n[yc("0xc6")]((()=>{this[yc("0xe4")](t)[yc("0x125")]=!0}))})),this._suggestionState[yc("0xe6")](o,yc("0x155"));break;case yc("0x3e"):this._updateSuggestionData(e,{state:yc("0x167")});case"dataReady":this[yc("0x14e")][yc("0xe6")](o,yc("0x169")),this[yc("0x11f")]("suggestionLoaded",o);break;case yc("0x169"):this[yc("0x11f")](yc("0x96"),o)}return o[yc("0xb3")](t),o}_refreshSuggestionsChain(t){const e=Array[yc("0x39")](t),n=e[yc("0x36")]((t=>"attribute"==t.type));this[yc("0xf7")](n);const i=e[yc("0x36")]((t=>!t[yc("0xf4")]&&yc("0x32")!=t[yc("0xc0")])),r=this[yc("0x83")]({skipNotAttached:!0})[yc("0x36")]((t=>!t[yc("0xf4")]&&"attribute"!=t[yc("0xc0")])),o=r[yc("0x36")]((e=>!t.has(e))),s=new Map(r.map((t=>[t,this[yc("0x10f")].getSuggestionCallback(t[yc("0xc0")],t[yc("0xbe")],"chain")]))),x=new Map(r[yc("0x97")]((t=>[t,t[yc("0x50")]()]))),a=new Set,c=new Set;for(let t=0;t<i[yc("0x7a")];t++)u(i[t],i,t+1);for(let t=0;t<i[yc("0x7a")];t++)u(i[t],o,0);const l=new Set;for(let t=0;t<i[yc("0x7a")];t++){const e=i[t];!c[yc("0x151")](e)&&e[yc("0x4d")]&&(l[yc("0x172")](e.previous),e[yc("0x4d")][yc("0x173")]===e&&(e[yc("0x4d")][yc("0x173")]=null),e.previous=null),!a.has(e)&&e[yc("0x173")]&&(l[yc("0x172")](e[yc("0x173")]),e[yc("0x173")][yc("0x4d")]===e&&(e[yc("0x173")][yc("0x4d")]=null),e[yc("0x173")]=null)}function u(t,e,n){for(let i=n;i<e[yc("0x7a")];i++){const n=d(t,e[i]);n&&(n[0].next=n[1],n[1][yc("0x4d")]=n[0],a[yc("0x172")](n[0]),c[yc("0x172")](n[1]))}}function d(t,e){if(t[yc("0x178")].id!==e[yc("0x178")].id)return null;const n=s.get(t)(t,e,x[yc("0x5f")](t),x[yc("0x5f")](e));return n&&s[yc("0x5f")](e)(t,e,x[yc("0x5f")](t),x.get(e))?n[1].commentThread&&n[1].commentThread[yc("0x7a")]?null:n:null}l.size&&this[yc("0x54")](l)}_refreshAttributeSuggestionsChain(t){if(0==t[yc("0x7a")])return;const e=this[yc("0x83")]({skipNotAttached:!0}).filter((t=>yc("0x32")==t.type&&t._isDataLoaded)),n=[],i=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x42")]);i.has(e)||(i[yc("0xe6")](e,n.length),n[yc("0x2f")]([]));const r=i[yc("0x5f")](e);n[r][yc("0x2f")](t)}!function(){n[yc("0xab")](((t,e)=>{const n=t[0].createdAt,i=e[0][yc("0xdb")];return n==i?t[0][yc("0x42")].groupId<e[0].attributes.groupId?-1:1:n<i?-1:1}));for(const t of n)t[yc("0xab")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t].length)continue;const e=[];for(let i=t+1;i<n[yc("0x7a")];i++)0!=n[i][yc("0x7a")]&&r(n[t],n[i])&&e.push(i);for(const i of e)n[t]=n[t][yc("0x16a")](n[i]),n[i]=[]}for(const t of n)for(let e=0;e<t[yc("0x7a")];e++)t[e][yc("0x173")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0x7a")];e++)t[e][yc("0x4d")]=t[e-1]||null;function r(t,e){if(t[0][yc("0x42")][yc("0x15")]!==e[0][yc("0x42")][yc("0x15")]&&t[0][yc("0x178")]!==e[0][yc("0x178")])return!1;if(n=t[0],i=e[0],(n[yc("0x112")]||i[yc("0x112")])&&(n[yc("0x112")]&&i[yc("0x112")]||!(n[yc("0x112")]&&i[yc("0xdb")]<n[yc("0x38")].comments[yc("0x5f")](0)[yc("0xdb")]||i[yc("0x112")]&&n[yc("0xdb")]<i[yc("0x38")].comments[yc("0x5f")](0).createdAt)))return!1;var n,i;const r=bc(t[0].attributes,yc("0x15")),o=bc(e[0][yc("0x42")],yc("0x15"));return!!ji(r,o)&&(!!t.every((t=>e.some((e=>t[yc("0x50")]()[yc("0xb")](e[yc("0x50")]())))))&&e[yc("0x7c")]((e=>t[yc("0x16c")]((t=>e[yc("0x50")]()[yc("0xb")](t[yc("0x50")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array[yc("0x39")](t),n=this.getSuggestions({skipNotAttached:!0}),i=n[yc("0x36")]((e=>!t[yc("0x151")](e))),r=new Map(e[yc("0x97")]((t=>[t,this[yc("0x10f")][yc("0x3f")](t[yc("0xc0")],t[yc("0xbe")],yc("0x43"))]))),o=new Map(n[yc("0x97")]((t=>[t,t.getRanges()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x7a")];t++)if(s(this,e[t],i,0))return!0;return!1;function s(t,e,n,i){for(let s=i;s<n[yc("0x7a")];s++){const i=n[s];if(i[yc("0xc0")]!==e[yc("0xc0")]||i[yc("0x178")].id!==e.author.id||i[yc("0xbe")]!==e.subType)continue;if(!Oc(e,i,[yc("0x15")]))continue;if("attribute"==e[yc("0xc0")]&&e[yc("0x1e")][yc("0xb4")]!=i[yc("0x1e")][yc("0xb4")])continue;if(yc("0x32")==e.type&&t[yc("0x61")](e[yc("0x1e")].key))continue;if(yc("0xe2")==e[yc("0xc0")]){const n=t[yc("0xdd")][yc("0xf2")],i=e[yc("0x6e")]();if(i&&(n[yc("0x174")].isObject(i)||n[yc("0x174")].isLimit(i)))continue}const x=r[yc("0x5f")](e),a=o.get(e),c=o[yc("0x5f")](i),l=e[yc("0x38")]&&e[yc("0x38")][yc("0x7a")],u=i[yc("0x38")]&&i[yc("0x38")][yc("0x7a")];if(!l&&x(c,a))return t[yc("0x6d")](i,e),o.delete(e),!0;if(!u&&x(a,c))return t[yc("0x6d")](e,i),o[yc("0x3")](i),!0}return!1}}[yc("0x6d")](t,e){if(t.isMultiRange)for(const n of e[yc("0x85")]())t[yc("0x2d")](n);else{const n=e[yc("0x50")]()[yc("0xfd")];this[yc("0xef")](t,this[yc("0x10b")][yc("0x5e")](t[yc("0x50")]()[yc("0x16d")],n))}e.removeMarkers()}[yc("0x57")](t,e){const n=t[yc("0x69")](yc("0xaf"))||t[yc("0x69")](yc("0x32"))?"FORMATTING":t.toUpperCase();return Ji(this.editor.locale,e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[yc("0xf6")](){const t=this.editor;(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const i=[];for(const t of e){const{group:e,type:n}=this[yc("0x10")](t[yc("0x117")]);if(yc("0x162")===e){i.push(this[yc("0x57")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t[yc("0x117")]);if(yc("0x162")===e){i.push(this[yc("0x57")](n,yc("0xc5")));break}}i[yc("0x7a")]&&t.ui[yc("0x109")][yc("0xd7")](yc("0xc4"),i[yc("0x43")](" "))}))}[yc("0x46")](t){if(this[yc("0x74")])return!1;const e=this.editor,n=e[yc("0xf2")][yc("0xe5")][yc("0x15f")][yc("0xbc")]();if(0==n[yc("0x7a")])return!1;const i=[],r=n.filter((t=>yc("0x32")==t[yc("0xc0")])),o=n[yc("0x36")]((t=>yc("0xf5")==t[yc("0xc0")]&&yc("0x9f")!=t[yc("0x117")])),s=n[yc("0x36")]((t=>yc("0x78")==t[yc("0xc0")]&&yc("0x9f")!=t[yc("0x117")]));for(const t of r)i.push({key:t[yc("0x7e")],newValue:t[yc("0x41")],oldValue:t.attributeOldValue,range:Lc(t.range,e.model)});for(const t of o){const n=s[yc("0x51")]((e=>e[yc("0x56")][yc("0xb")](t[yc("0x56")])));n&&i[yc("0x2f")]({key:yc("0x16"),newValue:t[yc("0x117")],oldValue:n.name,range:e[yc("0xf2")][yc("0x146")](t[yc("0x56")][yc("0xa")])})}return 0!=i[yc("0x7a")]&&this[yc("0x148")](t,i)}_processAttributeSuggestions(t){let e=!1;const n=this.editor.model.document.differ.getChangedMarkers()[yc("0x36")]((t=>t[yc("0x1e")][yc("0x143")]&&t[yc("0x117")][yc("0x69")](yc("0x27"))));for(const i of n){const{subType:n,id:r}=this[yc("0x10")](i.name),o=n.split("|")[0];for(const n of this[yc("0x83")]({skipNotAttached:!0}))n.id!=r&&"attribute"==n[yc("0xc0")]&&n[yc("0x1e")]&&n[yc("0x1e")][yc("0x4a")]==o&&n.getFirstRange()[yc("0x11d")](i[yc("0x1e")][yc("0x143")])&&(this._reduceSuggestionAttributeRange(n,i.data[yc("0x143")],t),e=!0)}return e}[yc("0x131")](t){this[yc("0xdd")],this._recordAttributeSuggestions=!0,t()}_isRegisteredAttribute(t){const e=this[yc("0x61")](t),n=this._inlineAttributeKeys[yc("0x151")](t);return e||n}[yc("0x148")](t,e){if(0==e[yc("0x7a")])return!1;let n=!1;for(const i of e){const e=this[yc("0x9e")](i[yc("0x6a")],yc("0x32"))[yc("0x36")]((t=>!t.meta.isNextTo))[yc("0x97")]((t=>t[yc("0x162")])),r=(0,o.hashObject)({newValue:i.newValue});e[yc("0x36")]((t=>{const[e,n]=t[yc("0xbe")].split("|");return e==i[yc("0x4a")]&&n!=r}))[yc("0x19")]((e=>{this[yc("0x126")](e,i.range,t),n=!0}))}return n}[yc("0x126")](t,e,n){const i=t.getFirstRange()[yc("0xb1")](e);0!==i[yc("0x7a")]?1!==i[yc("0x7a")]?this._breakSuggestionMarker(t,e[yc("0x16d")],e[yc("0xfd")]):this._setSuggestionRange(t,i[0]):n[yc("0xf")](t[yc("0x10c")]())}}class kc{constructor(t){this[yc("0xd4")]=t,this[yc("0x10b")]=t[yc("0xf2")],this[yc("0x5d")]=new Map,this[yc("0x10e")]=new Map,this._registerDefaultCallbacks()}[yc("0x31")](t,e,n,i,r,o){return new Yi(this[yc("0x10b")],{type:t,subType:e,id:n,author:i,creator:i,attributes:r,onAttributesChange:o,onAccept:(...n)=>this.getSuggestionCallback(t,e,yc("0x142"))(...n),onDiscard:(...n)=>this[yc("0x3f")](t,e,"discard")(...n)})}[yc("0x159")](t,e,n,i){const r=t+":"+e+":"+n;this._customCallbacks[yc("0xe6")](r,i)}[yc("0x3f")](t,e,n){const i=t+":"+e+":"+n;return this._customCallbacks.get(i)||this[yc("0x10e")].get(t+":"+n)}[yc("0x12")](){const t=()=>!1,e=t=>{t[yc("0xab")](((t,e)=>t.start[yc("0x76")](e[yc("0x16d")])?1:-1)),this[yc("0x10b")].change((e=>{for(const n of t){let t;t=n[yc("0xfd")][yc("0x163")]&&n[yc("0xfd")][yc("0x9b")]==n[yc("0x16d")][yc("0xa")]?e[yc("0x70")](n[yc("0x16d")][yc("0xa")],"on"):e[yc("0x70")](n),this[yc("0x10b")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x10b")][yc("0x12c")]((n=>{const{commandName:i,commandParams:r=[]}=e,o=t[yc("0x97")]((t=>(Ic(t)&&(t=this[yc("0x10b")][yc("0x5e")](t[yc("0xfd")])),t)))[yc("0x36")]((t=>yc("0x34")!==t.root[yc("0xf1")]));if(o.length<1)return;const x=Array[yc("0x39")](this[yc("0x10b")][yc("0xe5")][yc("0x49")][yc("0x85")]())[yc("0x97")]((t=>s.LiveRange[yc("0x161")](t)));n.setSelection(o);for(const t of this._editor[yc("0x123")][yc("0x123")]())t[yc("0xdc")]();r[yc("0x2f")]({forceDefaultExecution:!0}),this[yc("0xd4")][yc("0xd9")](i,...r);const a=x[yc("0x36")]((t=>yc("0x34")!=t.root.rootName));a[yc("0x7a")]>0&&n[yc("0xe7")](a);for(const t of x)t.detach()}))},i=(t,e)=>1==t[yc("0x7a")]&&1==e.length&&t[0][yc("0xfd")][yc("0xb")](e[0][yc("0x16d")]),r=(t,e,n,i)=>wc(t,e,n,i,this._model)?[t,e]:wc(e,t,i,n,this[yc("0x10b")])?[e,t]:null;this[yc("0x10e")][yc("0xe6")](yc("0xaa"),t),this[yc("0x10e")][yc("0xe6")](yc("0x119"),e),this[yc("0x10e")][yc("0xe6")]("insertion:join",i),this._defaultCallbacks.set(yc("0xb8"),r),this[yc("0x10e")][yc("0xe6")](yc("0x68"),e),this._defaultCallbacks[yc("0xe6")]("deletion:discard",t),this._defaultCallbacks[yc("0xe6")](yc("0x5a"),i),this[yc("0x10e")][yc("0xe6")](yc("0x6b"),r),this._defaultCallbacks[yc("0xe6")](yc("0x157"),n),this[yc("0x10e")][yc("0xe6")](yc("0xfa"),t),this._defaultCallbacks[yc("0xe6")](yc("0x6f"),i),this[yc("0x10e")][yc("0xe6")](yc("0x7"),t),this._defaultCallbacks[yc("0xe6")](yc("0xd1"),n),this._defaultCallbacks[yc("0xe6")](yc("0x12f"),t),this[yc("0x10e")][yc("0xe6")](yc("0x4f"),i),this[yc("0x10e")][yc("0xe6")](yc("0xa1"),t),this[yc("0x10e")].set("attribute:accept",t),this[yc("0x10e")].set(yc("0x12b"),((t,e)=>{if(!e)return;const n=this[yc("0xd4")][yc("0x20")][yc("0x5f")](Ac);this[yc("0x10b")][yc("0x12c")]((i=>{if("$elementName"==e[yc("0x4a")])for(const n of t){const t=n[yc("0x16d")].nodeAfter,r=e[yc("0xb4")];i[yc("0x140")](t,r)}else if(n[yc("0x61")](e.key))for(const n of t)void 0!==e[yc("0xb4")]?i[yc("0x13f")](e[yc("0x4a")],e.oldValue,n[yc("0x16d")][yc("0xa")]):i[yc("0xe8")](e[yc("0x4a")],n.start[yc("0xa")]);else for(const n of t)e[yc("0xb4")]?i[yc("0x13f")](e[yc("0x4a")],e[yc("0xb4")],n):i[yc("0xe8")](e[yc("0x4a")],n)}))})),this[yc("0x10e")].set("attribute:join",i)}}function Sc(t,e,n){for(const i of e[yc("0x9b")][yc("0x4e")]({includeSelf:!0,parentFirst:!0})){if(i[yc("0x65")]==i)return!1;if(!n[yc("0x110")](i))return!1;if(t.isObject(i)||t[yc("0x135")](i))return!0}return!1}function Ic(t){return t.end[yc("0x9b")]==t.start[yc("0xa")]&&t[yc("0xfd")][yc("0xd0")]}function Rc(t,e,n,i){const r=t=>!t[yc("0x11c")].is(yc("0xec"))&&!i[yc("0x90")](t.item),o=t[yc("0x16d")][yc("0x9a")](r),s=t[yc("0xfd")][yc("0x9a")](r,{direction:"backward"});return!(t[yc("0x16d")].isEqual(o)&&t[yc("0xfd")].isEqual(s)||(o[yc("0x76")](s)?n[yc("0x16e")](e,{range:n.createRange(o,s)}):n[yc("0xf")](e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t[yc("0x16d")][yc("0xa")];return e&&e.is(yc("0xa2"))}function Lc(t,e){return null==t.end[yc("0x84")]&&t[yc("0xfd")][yc("0x9b")]==t[yc("0x16d")][yc("0xa")]?Mc(t.start[yc("0xa")],e):t}function Mc(t,e){const n=e.schema[yc("0x90")](t)||e.schema[yc("0xda")](t);return e[yc("0x5e")](e[yc("0x60")](t,yc("0x12a")),n?e.createPositionAfter(t):e[yc("0x60")](t,"end"))}function wc(t,e,n,i,r){if(!Oc(t,e))return!1;if(n.end[yc("0xb")](i[yc("0x16d")]))return!0;if(t[yc("0xc0")]!=e.type)return!1;if(!n[yc("0xfd")][yc("0x150")](i.start))return!1;const o=r[yc("0x5e")](n[yc("0xfd")],i[yc("0x16d")])[yc("0x147")]();for(const t of o)if(["elementStart",yc("0x22")].includes(t[yc("0xc0")])&&r[yc("0x174")].isLimit(t[yc("0x11c")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t._isDataLoaded||!e[yc("0x177")])&&ji(bc(t.attributes,n),bc(e[yc("0x42")],n))}function Fc(t,e){const n=Dc(t.attributes),i=Dc(e);if(!t[yc("0x177")])return!1;for(const t of Object[yc("0x1d")](i))if(!ji(n[t],i[t]))return!1;return!0}function Dc(t){const e=Object[yc("0x115")]({},t);return delete e[yc("0xd2")],delete e[yc("0xfe")],e}const Bc=["destroy","isEnabled","_removePendingAction","add","commands","model","commentThreadController","isDirty","unbind","_setPendingAction","get","acceptSuggestion","view","_editor","discardSuggestion","canDiscard","_acceptCommand","_pendingAction","PENDING_ACTION_SUGGESTION","listenTo","locale","bind","PendingActions","plugins","change:isDirty","canEditAt","execute","_discardCommand","canAccept","getRanges"];var Pc,Uc;Pc=Bc,Uc=142,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,i){super(),this[jc("0xd")]=e,this[jc("0x14")]=n,this[jc("0xe")]=i,this[jc("0x15")]=t,this._acceptCommand=t[jc("0xc")].get("acceptSuggestion"),this._discardCommand=t[jc("0xc")][jc("0x12")](jc("0x16")),this.view[jc("0x1d")]("isEnabled").to(this._acceptCommand,this[jc("0x5")],((t,e)=>t||e)),this[jc("0x14")][jc("0x1d")]("canAccept").to(this[jc("0x18")],jc("0x9"),(t=>t&&this[jc("0x15")][jc("0xd")][jc("0x3")](e[jc("0x7")]()))),this[jc("0x14")].bind("canDiscard").to(this[jc("0x5")],jc("0x9"),(t=>t&&this._editor[jc("0xd")].canEditAt(e[jc("0x7")]()))),this[jc("0x19")]=null,n[jc("0xf")]&&this[jc("0x11")](),this[jc("0x1b")](n,jc("0x13"),(()=>this[jc("0x13")]())),this[jc("0x1b")](n,jc("0x16"),(()=>this[jc("0x16")]())),this[jc("0x1b")](n,jc("0x2"),(()=>{n[jc("0xf")]?this[jc("0x11")]():this[jc("0xa")]()}))}acceptSuggestion(){this._acceptCommand[jc("0x4")](this[jc("0xd")].id)}[jc("0x16")](){this[jc("0x5")].execute(this[jc("0xd")].id)}[jc("0x8")](){this[jc("0x14")][jc("0x10")](jc("0x9")),this[jc("0x14")].unbind(jc("0x6")),this.view[jc("0x10")](jc("0x17")),this.stopListening(),this[jc("0xe")].destroy(),this[jc("0x19")]&&this[jc("0xa")]()}[jc("0x11")](){const t=Ji(this[jc("0x15")][jc("0x1c")],jc("0x1a"));this[jc("0x19")]=this._editor[jc("0x1")].get("PendingActions")[jc("0xb")](t)}[jc("0xa")](){null!==this[jc("0x19")]&&this[jc("0x15")][jc("0x1")][jc("0x12")](jc("0x0")).remove(this._pendingAction),this[jc("0x19")]=null}}const Vc=["fire","commentsListView","editor","_model","locale","updateComment","authoredAt","destroy","removeComment","_createCommentViews","commentThread","editorConfig","isReadOnly","_config","_createCommentThreadInputView","focus","submit","element","canDiscard","delegate","canAccept","cancel","length","isActive","addComment","commentThreadInputView","bind","descriptionParts","_localUser","set","hasDirtyComment","setData","isDirty","isEnabled","showInput","value","assign","commentInputView"];var Hc,zc;Hc=Vc,zc=215,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends r.View{constructor(t,e,n,i){super(t),this[Wc("0xe")]=null,this.commentThreadInputView=null,this[Wc("0x4")]("isActive",!1),this[Wc("0x4")]("authoredAt",e.authoredAt),this[Wc("0x1")](Wc("0x13")).to(e),this.set(Wc("0x2"),[]),this[Wc("0x4")](Wc("0x7"),!1),this[Wc("0x4")](Wc("0x8"),!1),this[Wc("0x4")](Wc("0x21"),!1),this[Wc("0x4")](Wc("0x1f"),!1),this[Wc("0x10")]=e,this[Wc("0x3")]=n,this[Wc("0x1a")]=i,i.disableComments?this[Wc("0x4")](Wc("0x23"),1):this[Wc("0x16")]()}[Wc("0x1c")](){this[Wc("0x1e")][Wc("0x1c")]()}[Wc("0x14")](){this.commentsListView&&this.commentsListView[Wc("0x14")](),this[Wc("0x0")]&&this[Wc("0x0")].destroy(),super[Wc("0x14")]()}[Wc("0x16")](){const{CommentsListView:t}=this[Wc("0x1a")];this.commentsListView=new t(this[Wc("0x11")],this._model[Wc("0x17")],Object[Wc("0xb")]({CommentView:this[Wc("0x1a")].CommentView},this._config)),this[Wc("0xe")][Wc("0x20")](Wc("0x15")).to(this),this[Wc("0xe")][Wc("0x20")](Wc("0x12")).to(this),this[Wc("0xe")][Wc("0x1")](Wc("0x24")).to(this),this.set(Wc("0x23"),this[Wc("0xe")].length+1),this[Wc("0x1")](Wc("0x23")).to(this[Wc("0xe")],Wc("0x23"),(t=>t+1)),this[Wc("0x0")]=this[Wc("0x1b")](),this.on(Wc("0x15"),(()=>this[Wc("0x1c")]())),this[Wc("0x1")](Wc("0x7")).to(this[Wc("0xe")],Wc("0x5"),this[Wc("0x0")][Wc("0xc")],Wc("0xa"),((t,e)=>t||!!e))}[Wc("0x1b")](){const{CommentThreadInputView:t}=this[Wc("0x1a")],e=new t(this[Wc("0x11")],this[Wc("0x3")],this[Wc("0x1a")][Wc("0x18")]),n=e[Wc("0xc")];return e[Wc("0x1")](Wc("0x9")).to(this,Wc("0x24"),this[Wc("0x10")][Wc("0x17")],Wc("0x19"),n,Wc("0xa"),((t,e,n)=>!!n||t&&!e)),n.on(Wc("0x1d"),((t,e)=>{this[Wc("0xd")](Wc("0x25"),e),n[Wc("0xf")][Wc("0x6")]("")})),n.on(Wc("0x22"),(()=>this[Wc("0x1c")]())),n.bind("disabledSubmit").to(this[Wc("0x10")][Wc("0x17")],Wc("0x19")),e}}const qc=["querySelector","children","ck-annotation__user","@external","editorReady","delegate","editorDestroyed","render","ck-annotation__info","_createButton","_config","ck-suggestion--discard","bind","ck-annotation__info-name","isExternal","extendTemplate",'<span class="ck-suggestion-type">',"type","div","innerHTML","ck-comment__external","canAccept","getTemplate","ck-suggestion-",'"></span>',"ck-annotation","EXTERNAL_IMPORT_WORD_SUGGESTION","isEnabled","author","creator","source","Discard suggestion","attributes","userView","name","ck-suggestion--accept","getExternalSuggestionNote","cancel","discardSuggestion","commentThread","split","set","ck-suggestion-wrapper--active","ck-suggestion__actions","locale","_model","discardButton","commentThreadInputView","</p>","ck-annotation__actions","value","ck-suggestion__user","time","disableComments","ck-suggestion-wrapper","change:description","map","descriptionParts","</span>","setTemplate","color","EXTERNAL_AVATAR","span","push","acceptButton","isActive","getUserViewNotificationText","commentsListView","check","ck-suggestion--disabled-comments","ck-suggestion__main","canDiscard","title","EXTERNAL_SUGGESTION","importWord","ck-annotation__content-wrapper","createElement",'" title="',"Accept suggestion","ck-suggestion__info-name","_descriptionElement","description"];var Xc,$c;Xc=qc,$c=246,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,i,r){super(e,n,i,r),this[Zc("0x29")]("type",""),this[Zc("0xc")](Zc("0x11")).to(this,Zc("0x39"),(t=>t&&t[0]?t[0][Zc("0x11")]:"")),this[Zc("0xc")](Zc("0x51")).to(this,"descriptionParts",this,Zc("0x41"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Jc(e.content,e[Zc("0x3c")])+Zc("0x30");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x50")]=null,this.acceptButton=this[Zc("0x9")](Ji(e,Zc("0x4e")),t.icons[Zc("0x44")],Zc("0x23"),"acceptSuggestion","sw"),this.acceptButton[Zc("0xc")](Zc("0x1b")).to(this,Zc("0x15")),this[Zc("0x2e")]=this[Zc("0x9")](Ji(e,Zc("0x1f")),t.icons[Zc("0x25")],Zc("0xb"),Zc("0x26"),"sw"),this.discardButton[Zc("0xc")]("isEnabled").to(this,Zc("0x47")),this[Zc("0x21")]=new o.UserView(e,this[Zc("0x2d")][Zc("0x1c")],this.getUserViewNotificationText()),this.userView[Zc("0xf")]({attributes:{class:[Zc("0x33"),Zc("0x2")]}}),this[Zc("0x3b")](this.getTemplate())}[Zc("0x16")](){const t=this.bindTemplate,e=[{tag:Zc("0x12"),attributes:{class:["ck-suggestion__info",Zc("0x8")]},children:[{tag:"span",children:[{text:this[Zc("0x21")][Zc("0x22")]}],attributes:{class:[Zc("0x4f"),Zc("0xd")]}},{tag:Zc("0x34"),attributes:{datetime:t.to("authoredAt"),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this._config.formatDateTime(t)))}]}]},{tag:Zc("0x12"),attributes:{class:[Zc("0x2b"),Zc("0x31")]},children:[this[Zc("0x40")],this[Zc("0x2e")]]},{tag:"div",attributes:{class:[Zc("0x4b")]}}];this[Zc("0x2d")][Zc("0xe")]&&e[Zc("0x3f")]({tag:Zc("0x12"),attributes:{class:[Zc("0x14")]},children:[{text:this[Zc("0x24")]()}]});const n={tag:"div",attributes:{class:[Zc("0x36"),t.if(Zc("0x41"),Zc("0x2a")),t.to(Zc("0x11"),(t=>Zc("0x17")+t)),this[Zc("0xa")][Zc("0x35")]&&Zc("0x45")],"data-suggestion-id":this[Zc("0x2d")].id,"data-thread-id":this[Zc("0x2d")][Zc("0x27")].id,"data-author-id":this._model[Zc("0x1c")].id,tabindex:-1},children:[{tag:Zc("0x12"),attributes:{class:["ck-suggestion",Zc("0x19")]},children:[this.userView,{tag:Zc("0x12"),attributes:{class:[Zc("0x46"),"ck-annotation__main"]},children:e}]}]};return this[Zc("0x43")]&&this.commentThreadInputView&&(n[Zc("0x1")][Zc("0x3f")](this.commentsListView,this[Zc("0x2f")]),this[Zc("0x43")][Zc("0x5")](Zc("0x4")).to(this),this[Zc("0x43")][Zc("0x5")](Zc("0x6")).to(this),this[Zc("0x2f")].delegate(Zc("0x4")).to(this),this[Zc("0x2f")][Zc("0x5")](Zc("0x6")).to(this)),n}[Zc("0x7")](){super[Zc("0x7")](),this._descriptionElement=this.element[Zc("0x0")](".ck-annotation__content-wrapper"),this[Zc("0x50")][Zc("0x13")]=this.description,this.on(Zc("0x37"),((t,e,n)=>{this[Zc("0x50")][Zc("0x13")]=n}))}[Zc("0x9")](t,e,n,i,o){const s=new r.ButtonView(this.locale);return s[Zc("0x29")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s.extendTemplate({attributes:{class:n}}),s.on("execute",(()=>{this.fire(i,this._model.id)})),s}getExternalSuggestionNote(){return Zc("0x4a")===this[Zc("0x2d")].attributes[Zc("0x3")][Zc("0x1e")]?Ji(this[Zc("0x2c")],Zc("0x1a")):Ji(this[Zc("0x2c")],Zc("0x49"))}[Zc("0x42")](){return this[Zc("0x2d")][Zc("0xe")]?Zc("0x4a")===this[Zc("0x2d")][Zc("0x20")][Zc("0x3")][Zc("0x1e")]?Ji(this[Zc("0x2c")],"EXTERNAL_IMPORT_WORD_AVATAR",this[Zc("0x2d")][Zc("0x1d")][Zc("0x22")]):Ji(this[Zc("0x2c")],Zc("0x3d"),this[Zc("0x2d")][Zc("0x1d")][Zc("0x22")]):null}}function Jc(t,e){let n="";return n+=t[Zc("0x28")]("*")[Zc("0x38")](((t,e)=>e%2!=0?Zc("0x10")+Qc(t)+Zc("0x3a"):Qc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Zc("0x32")]+Zc("0x4d")+e[Zc("0x48")]+Zc("0x18")),n}function Qc(t){const e=document[Zc("0x4c")](Zc("0x3e"));return e.innerText=t,e[Zc("0x13")]}const tl=["change:previous","isDirty","values","define","push","get","plugins","trackChanges","Annotations","size","Discard all selected suggestions","clear","commands","commentThread","_suggestionToController","_refreshActiveMarkers","Discard all suggestions","createAnnotationView","Accept all selected suggestions","config","button","mainView","TrackChangesUI","activeAnnotations","init","bind","actionView","switchbutton","suggestion-","listenTo","buttonView","_updateController","getMarkers","getByInnerView","map","comments","Accept all suggestions","toMany","SuggestionThreadView","trackChanges.disableComments","_annotationViews","length","acceptSelectedSuggestions","editing","view","isMultiRange","isOn","isInContent","model","trackChanges.SuggestionThreadView","discardButton","createAnnotation","_viewToController","value","_bindAnnotationToEditors","requires","CommentsUI","previous","discardSelectedSuggestions","_initializeController","_unbindEditors","stopListening","change:activeAnnotations","acceptAllSuggestions","Track changes","focus","_handleControllerBuffer","_createUIButton","_disableComments","isEnabled","getDescriptions","separator","suggestionUnloaded","pluginName","editor","_destroyController","unbind","EditorAnnotations","TrackChangesEditing","filter","head","type","CommentsRepository","suggestionChanged","commandName","has","descriptionParts","destroy","lowest","execute","acceptButton","innerView","add","locale","getAllAdjacentSuggestions","delete","addSourceCollector","getJoined","activeMarkers","some","set","_handleSuggestionControllerDelayed","CommentView"];var el,nl;el=tl,nl=186,function(t){for(;--t;)el.push(el.shift())}(++nl);const il=function(t,e){return tl[t-=0]};class rl extends t.Plugin{static get[il("0x4b")](){return[Ac,o.Users,il("0x66"),"Annotations",il("0x61")]}static get[il("0x5d")](){return il("0x2a")}constructor(t){super(t),this[il("0x22")]=new Map,this[il("0x48")]=new Map,this[il("0x3c")]=new Map,this[il("0x56")]=new Map;const e=this[il("0x5e")][il("0x27")];e.define(il("0x45"),Yc),e[il("0x17")](il("0x3b"),!1),this[il("0x58")]=e.get(il("0x3b"))}[il("0x12")](t,e){0===this[il("0x56")][il("0x1d")]&&setTimeout((()=>{for(const[t,e]of this[il("0x56")]){const n=this[il("0x22")].has(t);n||e?n&&e&&this[il("0x5f")](t):this[il("0x4f")](t)}this[il("0x56")][il("0x1f")](),this[il("0x5e")][il("0x1a")].get(il("0x61")).refreshSelectedViews(),this[il("0x23")]()}),10),this._handleControllerBuffer.set(t,e)}[il("0x2c")](){const t=this[il("0x5e")],e=t.plugins[il("0x19")](il("0x62")),n=t.plugins[il("0x19")](il("0x1c")),i=t.plugins[il("0x19")](il("0x61")),r=t[il("0x1a")][il("0x19")](il("0x66"));t.ui.componentFactory[il("0x9")](il("0x1b"),(t=>this._createUIButton(t))),i[il("0xd")]((()=>{const t=[];for(const[e,n]of Array.from(this[il("0x22")])){const i=e.getAllAdjacentSuggestions(),r=[];for(const t of i){if(!t.isInContent)continue;if(t[il("0x41")]){r[il("0x18")](...t.getRanges());continue}const e=t.getFirstRange();if(r[il("0x3d")]>0){const t=r[0][il("0xe")](e);if(t){r[0]=t;continue}}r.push(e)}t[il("0x18")]([n[il("0x40")],r])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this.listenTo(e,il("0x14"),((t,n,i,r)=>{e[il("0x43")]&&(null==i?(this._updateController(r[il("0x64")]),this[il("0x12")](e,!1)):(this[il("0x33")](i[il("0x64")]),null==r&&this[il("0x12")](e,!0)))})),null!==e[il("0x4d")]?this[il("0x33")](e[il("0x64")]):this[il("0x12")](e,!1)})),this[il("0x31")](e,il("0x5c"),((t,e,n)=>{this[il("0x51")](e,il("0x14")),this._handleControllerBuffer[il("0xc")](e),this._suggestionToController.has(e)&&this[il("0x5f")](e),n&&this._updateController(n[il("0x64")])})),this[il("0x31")](e,il("0x0"),((t,e)=>{this._updateController(e)})),this[il("0x31")](n,il("0x52"),(()=>{this._refreshActiveMarkers()})),this.listenTo(r,"addComment",((t,{threadId:n,isFromAdapter:i})=>{if(i||!e.hasSuggestion(n))return;const r=e.getSuggestion(n);this[il("0x22")][il("0x19")](r).view[il("0x55")]()}),{priority:il("0x5")})}[il("0x23")](){const t=this[il("0x5e")][il("0x1a")][il("0x19")]("Annotations"),e=this[il("0x5e")][il("0x1a")].get(il("0x62")),n=Array.from(t[il("0x2b")],(t=>t[il("0x8")]))[il("0x63")]((t=>this._viewToController.has(t))),i=[];for(const t of n){const e=this[il("0x48")][il("0x19")](t)[il("0x44")][il("0xb")]();i[il("0x18")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[il("0xf")]=i}[il("0x57")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),i=this.editor[il("0x20")].get(il("0x1b")),o=Ji(t,il("0x54"));n[il("0x32")][il("0x11")]({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[il("0x32")][il("0x2d")](il("0x42")).to(i,il("0x49")),n[il("0x32")].on(il("0x6"),(()=>{i[il("0x6")](),this[il("0x5e")].editing[il("0x40")].focus()}));const s=new e.Collection,x=[{type:il("0x2f"),model:{withText:!0,label:o,commandName:il("0x1b")}},{type:il("0x5b")},{type:"button",model:{withText:!0,label:Ji(t,il("0x38")),commandName:il("0x53")}},{type:il("0x28"),model:{withText:!0,label:Ji(t,il("0x26")),commandName:il("0x3e")}},{type:il("0x28"),model:{withText:!0,label:Ji(t,il("0x24")),commandName:"discardAllSuggestions"}},{type:"button",model:{withText:!0,label:Ji(t,il("0x1e")),commandName:il("0x4e")}}];for(const t of x){let e={type:il("0x5b")};if(t[il("0x44")]){const n=new r.ViewModel(t[il("0x44")]),i=this[il("0x5e")][il("0x20")][il("0x19")](n[il("0x1")]);n.bind("isOn",il("0x59")).to(i,il("0x49"),il("0x59")),e={type:t[il("0x65")],model:n}}s.add(e)}(0,r.addListToDropdown)(n,s);const a=x[il("0x63")]((t=>null!=t[il("0x44")]))[il("0x36")]((t=>this.editor.commands[il("0x19")](t[il("0x44")][il("0x1")]))),c=n[il("0x32")];return c[il("0x2e")][il("0x60")](il("0x59")),c.arrowView.unbind(il("0x59")),c[il("0x2e")].bind("isEnabled").to(i,"isEnabled"),c.arrowView[il("0x2d")](il("0x59"))[il("0x39")](a,il("0x59"),((...t)=>t[il("0x10")]((t=>t)))),n.on("execute",(t=>{this[il("0x5e")].execute(t.source[il("0x1")]),this.editor[il("0x3f")][il("0x40")][il("0x55")]()})),n}[il("0x4f")](t){const e=this[il("0x5e")],n=e.config,i=e[il("0x1a")][il("0x19")](il("0x1c")),r=e.plugins[il("0x19")](il("0x66")),s=e.plugins[il("0x19")](il("0x61")),x=e[il("0x1a")].get(o.Users).me,a=n[il("0x19")]("trackChanges")[il("0x3a")],{CommentsListView:c,CommentThreadInputView:l}=e[il("0x1a")][il("0x19")](il("0x4c"));let u,d;this[il("0x3c")][il("0x2")](t.id)?(d=this[il("0x3c")].get(t.id),u=d[il("0x29")]):(u=new a(e[il("0xa")],t,x,{disableComments:this[il("0x58")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n.get("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[il("0x19")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[il("0x19")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,o.getDateTimeFormatter)(n[il("0x19")](il("0xa"))),CommentView:n[il("0x19")](il("0x37"))[il("0x13")],CommentsListView:c,CommentThreadInputView:l}),u[il("0x7")].on("execute",(()=>{e[il("0x3f")][il("0x40")][il("0x55")]()})),u[il("0x46")].on(il("0x6"),(()=>{e[il("0x3f")].view[il("0x55")]()})),d=i[il("0x25")](this.editor[il("0xa")],u),d.bind(il("0x15")).to(u,il("0x15")),d[il("0x2d")](il("0x3d")).to(u),d.bind(il("0x65")).to(u,il("0x65"),(t=>il("0x30")+t)),this[il("0x3c")].set(t.id,d));const g=r.createCommentThreadController(t[il("0x21")],u),f=new Gc(e,t,u,g),h=t.getAllAdjacentSuggestions()[il("0x63")]((t=>t.isInContent));u[il("0x3")]=e[il("0x1a")][il("0x19")]("TrackChangesEditing")._descriptionFactory[il("0x5a")](h),this[il("0x22")].set(t,f),this[il("0x48")][il("0x11")](u,f);const m=i[il("0x47")]({view:d,target:()=>{const n=[],i=t[il("0xb")]()[il("0x63")]((t=>t.isInContent));for(const t of i)n.push(...t[il("0x34")]());return(0,o.getAllMarkersDomElementsSorted)(e[il("0x3f")],n)},type:()=>il("0x30")+f[il("0x40")].type});r[il("0x4a")](u,m),i[il("0x9")](m),s.registerAnnotation(m)}[il("0x5f")](t){const e=this[il("0x5e")].plugins[il("0x19")](il("0x66")),n=this.editor[il("0x1a")][il("0x19")](il("0x1c")),i=this._suggestionToController[il("0x19")](t),r=i[il("0x40")],o=n[il("0x35")](r);e[il("0x50")](r),o&&n.remove(o),this[il("0x22")][il("0xc")](t),this[il("0x48")].delete(r),i[il("0x4")]()}_updateController(t){if(!t[il("0x43")]||!this[il("0x22")].has(t))return;const e=this.editor[il("0x1a")][il("0x19")](il("0x62")),n=this[il("0x22")][il("0x19")](t),i=t[il("0xb")]();n[il("0x40")].descriptionParts=e._descriptionFactory[il("0x5a")](i)}[il("0x4")](){for(const t of this[il("0x22")].keys())this[il("0x5f")](t);for(const t of this[il("0x3c")][il("0x16")]())t[il("0x29")][il("0x4")]();super[il("0x4")]()}}var ol,sl,xl=["pluginName","editor","getSuggestion","get","requires","addSuggestionData","plugins","TrackChanges","addSuggestion","adapter"];ol=xl,sl=108,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("0x6")](){return[Ac,rl,"Comments"]}static get[al("0x2")](){return al("0x9")}set[al("0x1")](t){this[al("0x3")][al("0x8")][al("0x5")](Ac)[al("0x1")]=t}get adapter(){return this[al("0x3")][al("0x8")].get(Ac)[al("0x1")]}[al("0x0")](t){return this[al("0x3")][al("0x8")].get(Ac)[al("0x7")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x3")][al("0x8")][al("0x5")](Ac).getSuggestions({skipNotAttached:t,toJSON:e})}[al("0x4")](t){return this.editor.plugins[al("0x5")](Ac).getSuggestion(t)}}const ll=["editorCreator","div","constructor","createElement","result","getDataWithDiscardedSuggestions","pluginName","track-changes-data-invalid-editor-creator","trackChangesData.editorCreator","users","plugins","TrackChangesData","appendChild","createDocumentFragment","getDataWithAcceptedSuggestions","addUser","getRootNames","Pagination","trackChangesData","get","config","reduce","_adapter","TrackChangesEditing","rootsAttributes","getUser","define","name","init","addSuggestionData","data","map","create","push","CommentsRepository","model","document","getRootsAttributes","editor","TrackChangesDataGetter","useAnonymousUser","requires","destroy","end","Users"];var ul,dl;ul=ll,dl=470,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x2a")];class hl extends t.Plugin{static get[gl("0x15")](){return[Ac]}static get pluginName(){return gl("0x24")}[gl("0x8")](){const t=this.editor;if(t.config[gl("0x6")](gl("0x21"),(e=>{const n=t[gl("0xf")][gl("0x10")][gl("0x29")]()[gl("0x1")](((t,e)=>(t[e]="",t)),{});return t[gl("0x1b")][gl("0xc")](n,e)})),"function"!=typeof t.config[gl("0x2c")](gl("0x2b"))[gl("0x19")])throw new e.CKEditorError(gl("0x20"))}[gl("0x27")](t){return bl(this[gl("0x12")],!0,t)}[gl("0x1e")](t){return bl(this[gl("0x12")],!1,t)}}class ml extends t.Plugin{static get[gl("0x1f")](){return gl("0x13")}constructor(t){super(t),this[gl("0x1d")]=gl("0x17")}[gl("0x8")](){this.editor.plugins[gl("0x2c")](gl("0xe"))[gl("0x2")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[gl("0x12")][gl("0x23")][gl("0x2c")](gl("0x3"))[gl("0x2")]=null}}function pl(t){return void 0!==t[gl("0x11")]}async function bl(t,e,n){const i=(0,o.sanitizeEditorConfig)(t,fl);i[gl("0x23")][gl("0xd")](Ac,ml),i[gl("0x4")]=pl(t)?t.getRootsAttributes():void 0;const r=document[gl("0x26")](),s=t[gl("0x0")][gl("0x2c")](gl("0x2b")).editorCreator,x=await s(i,(()=>function(t){const e=document[gl("0x1c")](gl("0x1a"));return t[gl("0x25")](e),e}(r)));!function(t,e){const n=t[gl("0xf")][gl("0x10")][gl("0x29")]().reduce(((e,n)=>(e[n]=t[gl("0xa")][gl("0x2c")]({rootName:n}),e)),{}),i=t[gl("0x23")][gl("0x2c")](gl("0x18"))[gl("0x22")][gl("0xb")]((t=>({id:t.id,name:t[gl("0x7")]}))),r=t[gl("0x23")][gl("0x2c")](gl("0x3")).getSuggestions({skipNotAttached:!0,toJSON:!0}),o=e.plugins.get(gl("0x18")),s=e[gl("0x23")][gl("0x2c")]("TrackChangesEditing");for(const t of i)o[gl("0x5")](t.id)||o[gl("0x28")](t);o.me||o[gl("0x14")]();for(const t of r)s[gl("0x9")](t);e[gl("0xa")].set(n)}(t,x),x.execute(e?"acceptAllSuggestions":"discardAllSuggestions");const a=pl(x)?x.getFullData(n):x[gl("0xa")][gl("0x2c")](n);return await x[gl("0x16")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=i})();