@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231204.0 → 0.0.0-nightly-20231206.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 (66) 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/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/imagestyle.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.js +1 -1
  32. package/src/integrations/link.js +1 -1
  33. package/src/integrations/list.js +1 -1
  34. package/src/integrations/listproperties.js +1 -1
  35. package/src/integrations/mediaembed.js +1 -1
  36. package/src/integrations/mention.js +1 -1
  37. package/src/integrations/pagebreak.js +1 -1
  38. package/src/integrations/paragraph.js +1 -1
  39. package/src/integrations/removeformat.js +1 -1
  40. package/src/integrations/restrictededitingmode.js +1 -1
  41. package/src/integrations/shiftentercommand.js +1 -1
  42. package/src/integrations/standardeditingmode.js +1 -1
  43. package/src/integrations/style.js +1 -1
  44. package/src/integrations/table.js +1 -1
  45. package/src/integrations/tablecaption.js +1 -1
  46. package/src/integrations/tableclipboard.js +1 -1
  47. package/src/integrations/tablecolumnresize.js +1 -1
  48. package/src/integrations/tableheadings.js +1 -1
  49. package/src/integrations/tablemergesplit.js +1 -1
  50. package/src/integrations/tableofcontents.js +1 -1
  51. package/src/integrations/tableproperties.js +1 -1
  52. package/src/integrations/template.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Bc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["affectsData","_disableUnsupportedCommands","forceDisabled","isEnabled","commands","_enableCommands","_enabledCommands","value","clearForceDisabled","execute","refresh","TrackChangesCommand","_isEnabledBasedOnSelection","editor"];var c,l;c=a,l=193,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xa")]=!1,this[u("0xd")](),this[u("0x1")]=!1}[u("0xd")](){this[u("0x6")]=!0}[u("0xc")](){this.value=!this.value,this.value?this._disableUnsupportedCommands():this[u("0x8")]()}[u("0x4")](){for(const t of this.editor[u("0x7")][u("0x7")]())t[u("0x3")]&&!this[u("0x9")].has(t)&&t[u("0x5")](u("0x0"))}_enableCommands(){for(const t of this[u("0x2")][u("0x7")][u("0x7")]())t.affectsData&&!this[u("0x9")].has(t)&&t[u("0xb")](u("0x0"))}}const g=["model","TrackChangesEditing","isEnabled","get","refresh","getRanges","_suggestions","_isEnabledBasedOnSelection","acceptSuggestion","canEditAt","execute","plugins","track-changes-accept-suggestion-not-found","editor"];var f,m;f=g,m=397,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this[h("0xd")](),this[h("0x2")]=!1}[h("0xd")](){this[h("0xb")]=!0}[h("0x5")](t){const n=this[h("0x1")][h("0xc")](t);if(!n)throw new e.CKEditorError(h("0x7"),this);const o=n[h("0x0")]();this[h("0x8")][h("0x9")][h("0x4")](o)&&this[h("0x8")][h("0x6")][h("0xc")](h("0xa"))[h("0x3")](n)}}const p=["TrackChangesEditing","isEnabled","editor","_suggestions","track-changes-discard-suggestion-not-found","execute","getRanges","model","_isEnabledBasedOnSelection","get","plugins"];var E,_;E=p,_=455,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0xa")]=e,this.refresh(),this[T("0x4")]=!1}refresh(){this[T("0x8")]=!0}[T("0x1")](t){const n=this._suggestions[T("0x5")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const o=n[T("0x2")]();this.editor[T("0x3")].canEditAt(o)&&this[T("0x9")][T("0x6")][T("0x5")](T("0x7")).discardSuggestion(n)}}const C=["isTouching","splice","isInContent","createRange","type"," [color ","start","color","join","getRanges","push","isArray","value","replace","length","createPositionBefore","from","schema","change","add","isMultiRange","createPositionAfter","sort","execute","isCollapsed","deletion"];var A,k;A=C,k=474,function(t){for(;--t;)A.push(A.shift())}(++k);const S=function(t,e){return C[t-=0]};function R(t){return t[S("0x10")](((t,e)=>S("0x13")==t[S("0x18")]&&"deletion"!=e[S("0x18")]?-1:"deletion"!=t.type&&"deletion"==e[S("0x18")]?1:0))}function I(t,e){let n,o=0;const r=[],i=e[S("0xb")];for(;o<t[S("0x8")];){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(r[S("0x4")](e[S("0x17")](n,i.isObject(s)?e[S("0xf")](s):e.createPositionAt(s,"end"))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[S("0xf")](e),r=t[S("0x9")](n);return o[S("0x14")](r)}function N(t,e,n){for(;n[S("0x8")];){const o=n[S("0x15")](0,100);t[S("0xc")]((()=>{for(const t of o)t[S("0x16")]&&e[S("0x11")](t.id)}))}}const L=["_suggestions","from","model","editor","getRanges","canEditAt","values","_isEnabledBasedOnSelection","isEnabled","execute","_command"];var M,w;M=L,w=326,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("0x3")]=e,this[O("0x4")]=n,this.refresh(),this[O("0x0")]=!1}refresh(){const t=Array[O("0x5")](this[O("0x4")][O("0xa")]()).some((t=>t.isInContent));this[O("0x1")]=this._command[O("0x1")]&&t}[O("0x2")](){const t=R(Array.from(this[O("0x4")][O("0xa")]()));for(const e of t){const t=e[O("0x8")]();if(!this[O("0x7")].model[O("0x9")](t))return}N(this.editor[O("0x6")],this[O("0x3")],t)}}const D=["size","_selectedSuggestions","_command","document","getRanges","canEditAt","_suggestions","from","execute","selection","isEnabled","values","model","editor","refresh","_isEnabledBasedOnSelection"];var P,B;P=D,B=134,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this[U("0x0")]=n,this._selectedSuggestions=new Set,this[U("0x8")](),this[U("0x9")]=!1}refresh(){const t=this[U("0x7")][U("0x6")][U("0xd")][U("0x3")],e=Array[U("0x1")](this[U("0x0")][U("0x5")]());this[U("0xb")]=function(t,e){const n=Array[S("0xa")](t.getRanges()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[S("0x3")]())(e.isIntersecting(n)||t[S("0x12")]&&!r[S("0xe")]&&r.next&&n.end.isTouching(e[S("0x0")]))&&o[S("0xd")](r);return o}(t,e),this[U("0x4")]=this[U("0xc")][U("0x4")]&&!!this[U("0xb")][U("0xa")]}[U("0x2")](){const t=R(Array[U("0x1")](this[U("0xb")]));for(const e of t){const t=e[U("0xe")]();if(!this[U("0x7")][U("0x6")][U("0xf")](t))return}N(this.editor[U("0x6")],this[U("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=V(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=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=V(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const rt=ot.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.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 o=!0}catch(t){}var r=xt.call(t);return o&&(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 mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,St=At.hasOwnProperty,Rt=RegExp("^"+kt.call(St).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return It(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Bt,jt.prototype.set=Ut;const Gt=jt;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Vt=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 Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const re=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=o?o(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,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===me?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Se=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Se&&Se.exports===ke&&et.process;const Ie=function(){try{var t=Se&&Se.require&&Se.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Ie&&Ie.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&pe(t),i=!n&&!o&&!r&&Ne(t),s=n||o||r||i,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)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&Ve.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var s=t[n];e(s,n,t)&&(i[r++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return ie(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)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,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),Sn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=bn||fn&&Rn(fn.resolve())!=pn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return bn;case An:return pn;case kn:return En;case Sn:return _n}return e});const In=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=rt?rt.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=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 Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,i,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,r,i,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=In(e),g=d==Yn||"[object GeneratorFunction]"==d;if(pe(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,s))})):Kn(e)&&e.forEach((function(r,i){x.set(i,t(r,n,o,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,i){m&&(r=e[i=r]),re(x,i,t(r,n,o,i,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const io=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=t.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const bo=function(t,e){return ge(t)?t:io(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var r=-1,i=(e=bo(e,t)).length,s=i-1,x=t;null!=x&&++r<i;){var a=po(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const So=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,r,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!So(g,e)&&(f===t||r(f,t,n,o,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=rt?rt.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,r,i,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Ro(x(t),x(e),o,r,i,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,i){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var b=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===b?m===h||r(m,h,n,o,i):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:In(t),c=x?Do:In(e),l=(a=a==Fo?Po:a)==Po,u=(c=c==Fo?Po:c)==Po,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||Ne(t)?Ro(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),f=u&&Bo.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Qt),r(m,h,n,o,i)}}return!!d&&(i||(i=new Qt),Oo(t,e,n,o,r,i))};const jo=function t(e,n,o,r,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,r,t,i))};const Go=function(t,e){return jo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-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 i=Array(r);++o<r;)i[o]=t[o+e];return i};const Wo=function(t,e){return e.length<2?t:Vo(t,zo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Wo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["isInContent","change","substr","removeAttribute","decorate","nodeAfter","removeMarker","data","setAttribute","set","_onAttributesChange","_model","getRange","discard","getAllAdjacentSuggestions","reduce","markers","creator","_markerNames","_onAccept","from","addMarker","isIntersecting","getFirstRange","filter","end","nodeBefore","_isDataLoaded","getMarkers","author","type","previous","next","attributes","get","isMultiRange","map","onDiscard","getFirstMarker","head","start","commentThread","length","getItems","getContainedElement","getRanges","isIntersectingWithRange","removeMarkers","getMarkerNames","delete","accept","_onDiscard","onAttributesChange","hasComments","subType","toJSON","addMarkerName","@external","isExternal","size","authoredAt","onAccept","createdAt"];var $o,Zo;$o=Xo,Zo=250,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x1d")]=!1,this.id=e.id,this[Yo("0x20")]=e.type,this[Yo("0x38")]=e[Yo("0x38")]||null,this[Yo("0x1f")]=e[Yo("0x1f")],this.creator=e.creator||e[Yo("0x1f")],this[Yo("0x3c")]=Boolean(e.attributes&&e[Yo("0x23")][Yo("0x3b")]),this[Yo("0x9")]=null,this[Yo("0xd")]=t,this[Yo("0x15")]=e[Yo("0x0")],this[Yo("0x35")]=e[Yo("0x27")],this._onAttributesChange=e[Yo("0x36")],this[Yo("0x14")]=new Set,this.createdAt=null,this.set(Yo("0x3e"),null),this.set(Yo("0x23"),e[Yo("0x23")]||{}),this.set(Yo("0x21"),null),this[Yo("0xb")]("next",null),this[Yo("0xb")](Yo("0x2b"),null),this[Yo("0xb")]("_saved",!1),this[Yo("0x6")](Yo("0x34")),this.decorate(Yo("0xf"))}get[Yo("0x29")](){let t=this;for(;t[Yo("0x21")];)t=t[Yo("0x21")];return t}get[Yo("0x37")](){return!!this[Yo("0x2b")]&&this[Yo("0x2b")].length>0}get[Yo("0x25")](){return 0!=this._markerNames[Yo("0x3d")]&&6==Array[Yo("0x16")](this[Yo("0x14")])[0].split(":")[Yo("0x2c")]}get[Yo("0x2")](){return null!==this[Yo("0x28")]()}[Yo("0x3a")](t){this[Yo("0x14")].add(t)}getMarkerNames(){return Array[Yo("0x16")](this[Yo("0x14")])}[Yo("0x1e")](){return this[Yo("0x32")]()[Yo("0x26")]((t=>this[Yo("0xd")][Yo("0x12")][Yo("0x24")](t)))[Yo("0x1a")]((t=>t))}getFirstMarker(){return this[Yo("0x1e")]()[0]||null}[Yo("0x31")](){this[Yo("0xd")][Yo("0x3")]((t=>{for(const e of this[Yo("0x1e")]())t[Yo("0x8")](e)})),this[Yo("0x14")].clear()}[Yo("0x8")](t){this[Yo("0xd")][Yo("0x3")]((e=>{e[Yo("0x8")](t)})),this[Yo("0x14")][Yo("0x33")](t)}addRange(t){const e="suggestion:"+this.type+":"+this[Yo("0x38")]+":"+this.id+":"+this[Yo("0x13")].id+":"+Jo.getMultiRangeId();this[Yo("0x3a")](e),this[Yo("0xd")].change((n=>{n[Yo("0x17")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x30")](t){for(const e of this[Yo("0x2f")]())if(e[Yo("0x18")](t))return!0;return!1}[Yo("0x2f")](){return this.getMarkers()[Yo("0x26")]((t=>t.getRange()))}[Yo("0x2d")](){return this[Yo("0x2f")]()[Yo("0x11")](((t,e)=>[...t,...e[Yo("0x2d")]()]),[])}[Yo("0x19")](){var t;return(null===(t=this[Yo("0x28")]())||void 0===t?void 0:t[Yo("0xe")]())||null}[Yo("0x2e")](){const t=this[Yo("0x2f")]();if(1!=t.length)return null;const e=t[0],n=e[Yo("0x2a")][Yo("0x7")],o=e[Yo("0x1b")][Yo("0x1c")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x34")](){this[Yo("0x15")](this.getRanges(),this[Yo("0x9")],this[Yo("0x23")]),this.removeMarkers()}[Yo("0xf")](){this[Yo("0x35")](this[Yo("0x2f")](),this[Yo("0x9")],this[Yo("0x23")]),this.removeMarkers()}[Yo("0x10")](){const t=[];let e=this[Yo("0x29")];for(;e;)t.push(e),e=e[Yo("0x22")];return t}[Yo("0xa")](t,e){const n=eo(this[Yo("0x23")]);_o(n,t,e),Go(n,this[Yo("0x23")])||(this.attributes=n,this[Yo("0xc")](n))}[Yo("0x5")](t){const e=eo(this[Yo("0x23")]);qo(e,t),Go(e,this[Yo("0x23")])||(this[Yo("0x23")]=e,this._onAttributesChange(this[Yo("0x23")]))}[Yo("0x39")](){return{id:this.id,type:this.subType?this[Yo("0x20")]+":"+this[Yo("0x38")]:this.type,authorId:this.creator.id,createdAt:this[Yo("0x1")],hasComments:this[Yo("0x37")],data:this[Yo("0x9")],attributes:this[Yo("0x23")]}}static getMultiRangeId(){return(0,e.uid)()[Yo("0x4")](1,5)}}function Qo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Replace image URL*":return o("*Replace image URL*");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set format:* %0":return o("*Set format:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const tr=["addEmptyContainer","*Remove:* %0","removeFormat","attribute","type","previousSibling","removeObject","_handleRenameSuggestionDescription","getItemLabel","getWalker","get","elementEnd","registerElementLabel","indexOf","label","length","ELEMENT_SPACE","isInContent","Container","key","EmptyContainer","isObject","join","isEmpty","push","normal","_resolveDescriptionItems","registerAttributeLabel","$textProxy","replace","newValue","_addDescriptionItems","Object","add","start","_locale","$text","_handleCustomCallbackDescription","subType","end","pop","removeContainer","_itemLabelsCallbacks","matchingCallback","getFirstRange","_customCallbacks","skip","_handleInsertRemoveSuggestionDescription","REPLACE_TEXT","elementStart","_schema","match","format","data","nextSibling","*Set format:* %0","*Remove format:* %0","softBreak","_itemLabels","removeEmptyContainer","isEqual","registerDescriptionCallback","*Change to:* %0","deletion","checkChild","remove","element","text","addFormat","$1 $2","*Insert:* %0","item","quantity","has","nodeAfter","insertion","*Merge:* %0","getDescriptions","_handleAttributeSuggestionDescription","_attributeLabels","name","map"];var er,nr;er=tr,nr=482,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this._customCallbacks=[],this[or("0x44")]=new Map,this[or("0x34")]=[],this[or("0x7")]=new Map,this._schema=t,this[or("0x2d")]=e}[or("0x5")](t){const e=[],n=new Set,o=new Set;for(let r=0;r<t.length;r++){const i=t[r];if(!i[or("0x1b")])continue;const s=this._handleCustomCallbackDescription(i);if(s){if(null!=i[or("0x30")]){if(n[or("0x1")](i[or("0x30")]))continue;n[or("0x2b")](i[or("0x30")])}e[or("0x22")](s)}else if(or("0xd")!=i.type)or("0x3")!=i.type&&or("0x49")!=i[or("0xe")]||this[or("0x39")](e,i,t[r+1]);else{const t=i[or("0x3f")].key;if(o[or("0x1")](t))continue;o[or("0x2b")](i[or("0x3f")][or("0x1d")]),t==mc?this._handleRenameSuggestionDescription(e,i):this[or("0x6")](e,i)}}return this[or("0x24")](e)}[or("0x47")](t){this._customCallbacks[or("0x22")](t)}[or("0x16")](t,n,o=e.priorities[or("0x23")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[or("0x34")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[or("0x25")](t,e){this._attributeLabels.set(t,e)}[or("0x12")](t,e=1){let n;for(const e of this[or("0x34")])if(e[or("0x35")](t)){n=e[or("0x18")];break}return n||(n=this[or("0x44")][or("0x14")](t[or("0x8")])),n?n(e):1!==e?e+" "+t[or("0x8")]+"s":""+t[or("0x8")]}[or("0x29")](t,e){const n=e[or("0x36")]()[or("0x13")](),o="insertion"==e[or("0xe")]?or("0x2b"):"remove";for(const e of n){const r=e[or("0x51")],i=t[t[or("0x19")]-1];if(r.is(or("0x26")))i&&i[or("0xe")].indexOf(or("0x1c"))>-1&&t[or("0x32")](),i&&or("0x4d")==i[or("0xe")]?i[o]+=r.data:t[or("0x22")]({type:or("0x4d"),add:"add"==o?r[or("0x3f")]:"",remove:or("0x4b")==o?r.data:""});else if(this._schema[or("0x1f")](r)){const s=r;if(i&&i.type.indexOf(or("0x1c"))>-1&&t[or("0x32")](),or("0x15")==e[or("0xe")])continue;i&&i[or("0xe")]==o+or("0x2a")&&i.element[or("0x8")]==s[or("0x8")]?i[or("0x0")]++:t.push({type:o+"Object",element:s,quantity:1}),n[or("0x38")]((t=>!(or("0x15")==t.type&&t[or("0x51")]==r)))}else if(this[or("0x3c")][or("0x4a")](r,or("0x2e"))||r.is(or("0x4c"),or("0x43"))){const n=r;if(or("0x2b")==o&&or("0x3b")==e[or("0xe")]||or("0x4b")==o&&or("0x15")==e.type)continue;if(i&&-1==i.type[or("0x17")]("Container")){or("0x4d")==i[or("0xe")]&&(i[o]+="\n");continue}let s;if(s=or("0x2b")==o?n[or("0x40")]&&!this[or("0x3c")][or("0x1f")](n[or("0x40")])?n[or("0x40")]:null:n[or("0xf")]&&!this[or("0x3c")].isObject(n[or("0xf")])?n[or("0xf")]:null,n.isEmpty||s&&s[or("0x21")]){const e=s&&s[or("0x21")]?s:n;i&&i[or("0xe")]==o+or("0x1e")&&i[or("0x4c")][or("0x8")]==e[or("0x8")]?i[or("0x0")]++:t.push({type:o+or("0x1e"),element:e,quantity:1})}else t.push({type:o+or("0x1c"),element:n})}}}[or("0x24")](t){const e=this[or("0x2d")],n=[],o=[],r=[];for(const i of t)switch(i[or("0xe")]){case or("0x4d"):if(i[or("0x2b")]=i[or("0x2b")][or("0x27")](/(\S)\u000A+(\S)/g,"$1 $2")[or("0x27")](/\u000A/g,""),i[or("0x4b")]=i[or("0x4b")][or("0x27")](/(\S)\u000A+(\S)/g,or("0x4f"))[or("0x27")](/\u000A/g,""),""!=i.add&&""!=i[or("0x4b")]){n[or("0x22")]({type:or("0x27"),content:Qo(e,or("0x3a"),['"'+i[or("0x4b")]+'"','"'+i[or("0x2b")]+'"'])});continue}if(null!=i[or("0x2b")][or("0x3d")](/^ +$/)){n.push({type:or("0x3"),content:Qo(e,or("0x50"),Qo(e,or("0x1a"),i[or("0x2b")].length))});continue}if(null!=i[or("0x4b")][or("0x3d")](/^ +$/)){n.push({type:or("0x49"),content:Qo(e,or("0xb"),Qo(e,or("0x1a"),i[or("0x4b")][or("0x19")]))});continue}if(""!=i.add){n[or("0x22")]({type:or("0x3"),content:Qo(e,or("0x50"),'"'+i.add+'"')});continue}n[or("0x22")]({type:"deletion",content:Qo(e,or("0xb"),'"'+i[or("0x4b")]+'"')});continue;case or("0xa"):case"addObject":n.push({type:or("0x3"),content:Qo(e,or("0x50"),this[or("0x12")](i[or("0x4c")],i[or("0x0")]))});continue;case or("0x45"):case or("0x10"):n.push({type:or("0x49"),content:Qo(e,or("0xb"),this.getItemLabel(i.element,i.quantity))});continue;case"addContainer":n[or("0x22")]({type:"insertion",content:Qo(e,"*Split:* %0",this[or("0x12")](i.element,i[or("0x0")]))});continue;case or("0x33"):n.push({type:or("0x49"),content:Qo(e,or("0x4"),this[or("0x12")](i.element,i[or("0x0")]))});continue;case or("0x4e"):o.push(i[or("0x1d")]);continue;case or("0xc"):r.push(i[or("0x1d")]);continue;default:n[or("0x22")](i)}if(o.length){const t=o[or("0x9")]((t=>this[or("0x7")].has(t)?this[or("0x7")][or("0x14")](t):t))[or("0x20")](", ");n[or("0x22")]({type:or("0x3e"),content:Qo(this[or("0x2d")],or("0x41"),t)})}if(r[or("0x19")]){const t=r[or("0x9")]((t=>this._attributeLabels[or("0x1")](t)?this._attributeLabels[or("0x14")](t):t))[or("0x20")](", ");n[or("0x22")]({type:"format",content:Qo(this._locale,or("0x42"),t)})}return n}[or("0x2f")](t){for(const e of this[or("0x37")]){const n=e(t);if(n&&or("0xe")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[or("0x3f")],o=void 0===n[or("0x28")]?or("0xc"):or("0x4e");t[or("0x22")]({type:o,key:n[or("0x1d")]})}[or("0x11")](t,e){t.push({type:or("0x3e"),content:Qo(this._locale,or("0x48"),this[or("0x12")](e[or("0x36")]()[or("0x2c")][or("0x2")],1))})}[or("0x39")](t,e,n){if(this._addDescriptionItems(t,e),n&&n.getFirstRange()&&!e[or("0x36")]()[or("0x31")][or("0x46")](n.getFirstRange()[or("0x2c")])){const n=t[t[or("0x19")]-1],o=or("0x3")==e.type?or("0x2b"):or("0x4b");n&&or("0x4d")==n[or("0xe")]&&(n[o]+="\n")}}}const ir=["afterInit","commands","get","enableCommand","TrackChangesEditing","showAIAssistant","plugins"];var sr,xr;sr=ir,xr=404,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x2")](){const t=this.editor,e=t[ar("0x1")][ar("0x4")](ar("0x6"));t[ar("0x3")][ar("0x4")](ar("0x0"))&&e[ar("0x5")](ar("0x0"))}}const lr=["left","get","TrackChangesEditing","locale","type","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGNMENT","AlignmentEditing","right","registerAttributeLabel","FORMAT_ALIGN_TO_LEFT","registerDescriptionCallback","*Format:* %0","FORMAT_JUSTIFY_TEXT","commandName","formatBlock","_descriptionFactory","value","editor","alignment","FORMAT_ALIGN_TO_RIGHT","commandParams","format","plugins","_enableDefaultAttributesIntegration"];var ur,dr;ur=lr,dr=467,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{afterInit(){const t=this[gr("0x1")],e=t[gr("0xb")];if(!t[gr("0x6")].has(gr("0xf")))return;const n=t[gr("0x6")][gr("0x9")](gr("0xa"));n[gr("0x7")]("alignment",[],["alignment"]),n[gr("0x18")][gr("0x11")](gr("0x2"),Qo(e,gr("0xe"))),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[gr("0x1")],e=t[gr("0xb")];t[gr("0x6")][gr("0x9")](gr("0xa"))[gr("0x18")][gr("0x13")]((t=>{if(gr("0x17")!=t[gr("0xc")])return;const{data:n}=t;if(n&&gr("0x2")==n[gr("0x16")]){const t=n[gr("0x4")][0][gr("0x0")];return{type:gr("0x5"),content:Qo(e,gr("0x14"),function(t){switch(t){case gr("0x8"):return Qo(e,gr("0x12"));case gr("0x10"):return Qo(e,gr("0x3"));case"center":return Qo(e,gr("0xd"));case"justify":return Qo(e,gr("0x15"))}}(t))}}}))}}const mr=["_registerLegacyDescription","locale","FORMAT_SUBSCRIPT","afterInit","bold","subscript","plugins","CodeEditing","FORMAT_BOLD","FORMAT_UNDERLINE","slice","italic","_enableDefaultAttributesIntegration","registerDescriptionCallback","BoldEditing","strikethrough","commandName","TrackChangesEditing","editor","SubscriptEditing","*Format:* %0","FORMAT_SUPERSCRIPT","FORMAT_CODE","FORMAT_","underline","ItalicEditing","StrikethroughEditing","toUpperCase"];var hr,br;hr=mr,br=228,function(t){for(;--t;)hr.push(hr.shift())}(++br);const pr=function(t,e){return mr[t-=0]},Er=[pr("0xa"),pr("0x15"),"UnderlineEditing",pr("0x3"),pr("0x16"),pr("0xf"),"SuperscriptEditing"];class _r extends t.Plugin{[pr("0x1b")](){const t=this.editor,e=t.plugins.get(pr("0xd")),n=t[pr("0x19")];for(const o of Er){if(!t[pr("0x2")].has(o))continue;const r=o[pr("0x6")](0,-7).toLowerCase(),i=pr("0x13")+r[pr("0x17")]();e[pr("0x8")](r,[r]),e._descriptionFactory.registerAttributeLabel(r,Qo(n,i))}this._registerLegacyDescription()}[pr("0x18")](){const t=this[pr("0xe")],e=t[pr("0x19")],n=t.plugins.get(pr("0xd"));function o(t,o){n._descriptionFactory[pr("0x9")]((n=>{if("formatInline"!=n.type)return;const{data:r}=n;return r&&r[pr("0xc")]===t?r.commandParams[0].forceValue?{type:"format",content:Qo(e,pr("0x10"),o)}:{type:"format",content:Qo(e,"*Remove format:* %0",o)}:void 0}))}o(pr("0x0"),Qo(e,pr("0x4"))),o(pr("0x7"),Qo(e,"FORMAT_ITALIC")),o(pr("0x14"),Qo(e,pr("0x5"))),o("code",Qo(e,pr("0x12"))),o(pr("0xb"),Qo(e,"FORMAT_STRIKETHROUGH")),o(pr("0x1"),Qo(e,pr("0x1a"))),o("superscript",Qo(e,pr("0x11")))}}const Tr=["commandName","parent","model","editor","getSelectedBlocks","has","_descriptionFactory","format","markBlockFormat","checkChild","enableCommand","$root","*Remove format:* %0","selection","name","registerDescriptionCallback","BlockQuoteEditing","schema","from","plugins","change","blockQuote","get","forceValue","value","TrackChangesEditing","ELEMENT_BLOCK_QUOTE","*Set format:* %0","afterInit","commandParams","document","commands"];var yr,Cr;yr=Tr,Cr=359,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0x15")](){const t=this.editor,e=t.locale;if(!t[Ar("0xc")][Ar("0x1e")](Ar("0x9")))return;const n=t.plugins.get(Ar("0x12")),o=this.editor[Ar("0x18")][Ar("0xf")]("blockQuote");n[Ar("0x3")](Ar("0xe"),((e,r={})=>{const i=this[Ar("0x1c")][Ar("0x1b")][Ar("0x17")][Ar("0x6")],s=r&&void 0!==r[Ar("0x10")]?r[Ar("0x10")]:!o[Ar("0x11")];let x=[];if(s){const e=Array[Ar("0xb")](i[Ar("0x1d")]()).filter((t=>Sr(t)||function(t,e){const n=e[Ar("0x2")](t.parent,"blockQuote"),o=e[Ar("0x2")]([Ar("0x4"),Ar("0xe")],t);return n&&o}(t,this[Ar("0x1c")][Ar("0x1b")][Ar("0xa")])));x=I(e,t[Ar("0x1b")])}else{const e=Array[Ar("0xb")](i[Ar("0x1d")]()).filter((t=>Sr(t)));x=I(e,t[Ar("0x1b")])}t.model[Ar("0xd")]((()=>{for(const t of x)n[Ar("0x1")](t,{commandName:Ar("0xe"),commandParams:[{forceValue:s}]})}))})),n[Ar("0x1f")][Ar("0x8")]((t=>{const{data:n}=t;if(n&&Ar("0xe")==n[Ar("0x19")]){const t=Qo(e,Ar("0x13"));return n[Ar("0x16")][0][Ar("0x10")]?{type:Ar("0x0"),content:Qo(e,Ar("0x14"),t)}:{type:Ar("0x0"),content:Qo(e,Ar("0x5"),t)}}}))}}function Sr(t){return Ar("0xe")==t[Ar("0x1a")][Ar("0x7")]}const Rr=["afterInit","get","TrackChangesEditing","commands","enableCommand","editor","ckbox"];var Ir,vr;Ir=Rr,vr=261,function(t){for(;--t;)Ir.push(Ir.shift())}(++vr);const Nr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{[Nr("0x5")](){const t=this[Nr("0x3")];t[Nr("0x1")].get("ckbox")&&t.plugins[Nr("0x6")](Nr("0x0"))[Nr("0x2")](Nr("0x4"))}}const Mr=["codeBlock","editor","getSelectedBlocks","config","commands","rootElement","get","model","languages","document","selection","indentCodeBlock","filter","CodeBlock","ELEMENT_CODE_BLOCK","afterInit","blockName","type","markBlockFormat","language","enableCommand","find","forceValue","TrackChangesEditing","isLimit","_descriptionFactory","label","checkChild","change","parent","name","plugins","format","commandParams","*Remove format:* %0","toLowerCase","*Set format:* %0","commandName"];var wr,Or;wr=Mr,Or=188,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x11")](){const t=this[Fr("0x3")];if(!t[Fr("0x21")].has(Fr("0xf")))return;const e=t[Fr("0x21")][Fr("0x8")](Fr("0x19")),n=t.locale,o=t[Fr("0x5")][Fr("0x8")](Fr("0x2"))[Fr("0xa")],r=t[Fr("0x6")][Fr("0x8")](Fr("0x2"));e[Fr("0x16")](Fr("0xd")),e[Fr("0x16")]("outdentCodeBlock"),e.enableCommand("codeBlock",((n,i={})=>{const s=t[Fr("0x9")],x=t.model[Fr("0xb")][Fr("0xc")],a=i&&void 0!==i[Fr("0x18")]?i.forceValue:!r.value;let c;i.language||(i[Fr("0x15")]=o[0].language),c=a?Array.from(x[Fr("0x4")]())[Fr("0xe")]((t=>{return Pr(t)||(e=t,n=s.schema,!e.is(Fr("0x7"))&&!n[Fr("0x1a")](e)&&n[Fr("0x1d")](e[Fr("0x1f")],Fr("0x2")));var e,n})):Array.from(x[Fr("0x4")]()).filter((t=>Pr(t)));const l=I(c,s);s[Fr("0x1e")]((()=>{for(const t of l)e[Fr("0x14")](t,{commandName:Fr("0x2"),commandParams:[{...i,forceValue:a}],formatGroupId:Fr("0x12")})}))})),e._descriptionFactory.registerElementLabel(Fr("0x2"),(t=>Qo(n,Fr("0x10"),t))),e[Fr("0x1b")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Fr("0x13")])return;const e=n.t,{data:r}=t;if(!r||Fr("0x2")!=r[Fr("0x1")])return;const i=r[Fr("0x23")][0][Fr("0x15")],s=e(o[Fr("0x17")]((t=>t[Fr("0x15")]===i))[Fr("0x1c")])[Fr("0x25")]();return r[Fr("0x23")][0][Fr("0x18")]?{type:Fr("0x22"),content:Qo(n,Fr("0x0"),Qo(n,Fr("0x10"),1)+" ("+s+")")}:{type:Fr("0x22"),content:Qo(n,Fr("0x24"),Qo(n,Fr("0x10"),1))}}))}}function Pr(t){return Fr("0x2")==t[Fr("0x20")]}const Br=["has","editor","TrackChangesEditing","get","CommentsEditing","enableCommand"];var Ur,jr;Ur=Br,jr=176,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Br[t-=0]};class Hr extends t.Plugin{afterInit(){const t=this[Gr("0x5")];t.plugins[Gr("0x4")](Gr("0x2"))&&t.plugins[Gr("0x1")](Gr("0x0"))[Gr("0x3")]("addCommentThread")}}var Vr=n(181);const zr=["getCustomProperty","createUIElement","activeMarkers","hasAttribute","element","name","getWalker","consumable","parent","previousPosition","markerRange","push","listItem","mapper","toViewPosition","getAttribute","type","getItems","plugins","isAtEnd","schema","ck-suggestion-marker--active","isBlock","get","writer","isLimit","markerName","span","bindElementToMarker","nextSibling","addClass","isContent"];var Wr,Kr;Wr=zr,Kr=276,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function Xr(t,e,n){const o=[];for(const r of e[qr("0x1d")]())r[qr("0xf")](t)&&o[qr("0x17")](n.createRangeOn(r));return o}function $r(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x1e")][qr("0x3")]("TrackChangesEditing");return(r,i,s)=>{if(!s[qr("0x13")].test(i[qr("0x16")],r[qr("0x11")]))return;const x=i.markerRange[qr("0x12")](),a=i[qr("0x16")].start,c=t.model[qr("0x0")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[qr("0xb")](e);const n=s.mapper.toViewElement(e);if(n&&n[qr("0xc")]("addHighlight"))return;"elementEnd"==t[qr("0x1c")]&&c[qr("0x2")](e)&&!c[qr("0x5")](e)&&(e.nextSibling||a[qr("0x1f")]?l&&l[qr("0x14")]==e||(l=e,f(t[qr("0x15")]),g=!0):u=u||t[qr("0x15")])}function f(t){const r=s[qr("0x4")][qr("0xd")](qr("0x7"),{class:"ck-suggestion-marker-"+e}),x=s.mapper[qr("0x1a")](t);n&&o[qr("0xe")].includes(i[qr("0x6")])&&s[qr("0x4")][qr("0xa")](qr("0x1"),r),s[qr("0x4")].insert(x,r),s[qr("0x19")][qr("0x8")](r,i[qr("0x6")])}d||g||!u||f(u)}}const Zr=["isCollapsed","model","unit","delete","buffer","unlock","document","deleteForward","enqueueChange","unbindElementFromMarkerName","createRange","markerName","merge","removeMarker:suggestion:deletion","$graveyard","rootName","detach","requires","editor","selection","uiElement","mapper","options","getFirstRange","end","setSelection","get","start","forward","enableCommand","fromRange","lock","editing","commands","downcastDispatcher","showSuggestionHighlights","plugins","markerNameToElements","data","high","remove","root","addMarker:suggestion:deletion"];var Yr,Jr;Yr=Zr,Jr=470,function(t){for(;--t;)Yr.push(Yr.shift())}(++Jr);const Qr=function(t,e){return Zr[t-=0]};class ti extends t.Plugin{static get[Qr("0x14")](){return[Vr.Delete]}init(){const t=this[Qr("0x15")],e=t[Qr("0x27")][Qr("0x1d")]("TrackChangesEditing");e[Qr("0x20")](Qr("0x6"));const n=t[Qr("0x24")][Qr("0x1d")](Qr("0xa"));e[Qr("0x20")](Qr("0xa"),((e,o={})=>{const r=t[Qr("0x4")].createSelection(t.model[Qr("0x9")][Qr("0x16")]);r[Qr("0x3")]&&t.model.modifySelection(r,{direction:Qr("0x1f"),unit:o[Qr("0x5")]});const i=r[Qr("0x1a")](),x=s.LiveRange[Qr("0x21")](i);let a;e(o),a=Qr("0x11")==x[Qr("0x1")][Qr("0x12")]?t[Qr("0x4")].createRange(i[Qr("0x1e")]):t[Qr("0x4")][Qr("0xd")](x[Qr("0x1e")],x.end),x[Qr("0x13")](),t[Qr("0x4")][Qr("0xb")](n[Qr("0x7")].batch,(t=>{n[Qr("0x7")][Qr("0x22")](),t[Qr("0x1c")](t.createRange(a[Qr("0x1b")])),n[Qr("0x7")][Qr("0x8")]()}))})),t.editing.downcastDispatcher.on(Qr("0x2"),$r(t,Qr("0xf")),{priority:Qr("0x2a")}),t[Qr("0x29")].downcastDispatcher.on(Qr("0x2"),((e,n,o)=>{o[Qr("0x19")][Qr("0x26")]&&$r(t,Qr("0xf"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"}),t[Qr("0x23")][Qr("0x25")].on(Qr("0x10"),((t,e,n)=>{const o=n[Qr("0x18")][Qr("0x28")](e[Qr("0xe")]);if(o)for(const t of o)t.is(Qr("0x17"))&&(n[Qr("0x18")][Qr("0xc")](t,e[Qr("0xe")]),n.writer[Qr("0x0")](t))}),{priority:Qr("0x2a")})}}const ei=["map","fromRange","plugins","value","TrackChangesEditing","execute","hasAttribute","getRanges","documentList","mergeListItemBackward","ELEMENT_LIST_ITEM","listIndent","slice","toUpperCase","setSelection","DocumentListUtils","registerElementLabel","ELEMENT_","format","enableCommand","model","createPositionAt","commandName","nodeAfter","detach","isObject","formatInline","push","isFirstBlockOfListItem","type","add","listType","numberedList","getAttribute","listItemId","*Merge:* %0","start","containsItem","*Change to:* %0","_suggestionFactory","splitListItemBefore","paragraph","getFirstRange","bulletedList","*Outdent:* %0","*Indent:* %0","before","formatBlock","createRange","*Format:* insert into %0","expandListBlocksToCompleteList","accept","commands","previousSibling","get","afterInit","indentList","commandParams","next","*Format:* remove from %0","list.multiBlock","after","document","schema","markBlockFormat","from","getSelectedBlocks","length","change","nextSibling","outdentList","refresh","selection","_LIST","registerCustomCallback","DocumentListEditing","splitListItemAfter","end","_descriptionFactory"];var ni,oi;ni=ei,oi=486,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{[ri("0x2b")](){const t=this.editor;if(!t.plugins.has(ri("0x3f")))return;const e=t.locale,n=t[ri("0x45")].get(ri("0x47")),o=t[ri("0x45")][ri("0x2a")](ri("0x3"));function r(e){return()=>{const r=t[ri("0x28")][ri("0x2a")](e);if(r[ri("0x46")]&&!t.config.get(ri("0x30")))return void t[ri("0x48")](ri("0x1d"),{});let i=Array[ri("0x35")](t[ri("0x8")].document[ri("0x3c")].getSelectedBlocks());if(a(e)){i=o[ri("0x26")](i);const t=[];for(const e of i)o[ri("0x10")](e)&&t.push(e);i=t}t[ri("0x8")][ri("0x38")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:e,commandParams:[{forceValue:!r[ri("0x46")]}],formatGroupId:"listType"},[],ri("0x4b"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ri("0x35")](t);const n=e.findIndex((t=>!t[ri("0x49")](ri("0x16"))));return n>-1&&(e=e[ri("0x0")](0,n)),e}(t[ri("0x8")][ri("0x32")][ri("0x3c")].getSelectedBlocks()),r=o[o[ri("0x37")]-1],i=t.model[ri("0x33")][ri("0xd")](r)?ri("0x31"):ri("0x41"),s=t[ri("0x8")][ri("0x24")](t[ri("0x8")][ri("0x9")](o[0],ri("0x22")),t[ri("0x8")].createPositionAt(r,i));t[ri("0x8")][ri("0x38")]((()=>{n[ri("0x34")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x13")},function(t){const e=new Set;for(const n of t){let t=n[ri("0x39")];for(;t&&t[ri("0x15")]("listIndent")>n[ri("0x15")](ri("0x4e"));)e[ri("0x12")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ri("0x8")][ri("0x32")].selection[ri("0x36")]()[ri("0x2e")]()[ri("0x46")],r=t.model[ri("0x9")](o,ri("0x22")),i=t[ri("0x8")][ri("0x9")](o,0),s=t.model[ri("0x24")](r,i);t[ri("0x8")][ri("0x38")]((()=>{n[ri("0x34")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x13")})}))}}function a(e){const n=t[ri("0x28")].get(ri("0x1f")).value,o=t[ri("0x28")][ri("0x2a")](ri("0x14")).value;return ri("0x14")===e?n:o}n[ri("0x7")]("numberedList",r("numberedList")),n[ri("0x7")](ri("0x1f"),r(ri("0x1f"))),n[ri("0x7")](ri("0x2c"),i("indentList")),n[ri("0x7")](ri("0x3a"),i(ri("0x3a"))),n[ri("0x7")]("splitListItemAfter",x(ri("0x40"))),n[ri("0x7")](ri("0x1c"),x(ri("0x1c"))),n[ri("0x42")][ri("0x4")]((function(e){const n=!t[ri("0x8")].schema[ri("0xd")](e),o=e[ri("0x29")],r=e.nextSibling,i=e[ri("0x15")]("listItemId"),s=!o||o[ri("0x15")]("listItemId")!==i,x=!r||r.getAttribute(ri("0x16"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,ri("0x4d"),t))),n._descriptionFactory.registerDescriptionCallback((function(n){if(ri("0x23")!=n[ri("0x11")]&&ri("0xe")!=n[ri("0x11")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o.commandName){case ri("0x1f"):s=o.commandParams[0].forceValue,x=a(o[ri("0xa")]),r=s?ri("0x25"):"*Format:* remove from %0",!x&&t.config[ri("0x2a")](ri("0x30"))||(r=ri("0x1a")),i={type:"format",content:Qo(e,r,Qo(e,"ELEMENT_BULLETED_LIST"))};break;case ri("0x14"):s=o[ri("0x2d")][0].forceValue,x=a(o[ri("0xa")]),r=ri(s?"0x25":"0x2f"),!x&&t.config[ri("0x2a")](ri("0x30"))||(r=ri("0x1a")),i={type:ri("0x6"),content:Qo(e,r,Qo(e,"ELEMENT_NUMBERED_LIST"))};break;case ri("0x2c"):r=ri("0x21"),i={type:ri("0x6"),content:Qo(e,r,Qo(e,ri("0x4d")))};break;case"outdentList":r=function(t){const e=t[ri("0x1e")]();let n=e[ri("0x18")][ri("0xb")];for(;n&&e[ri("0x19")](n);){if(n[ri("0x15")](ri("0x4e"))>0)return!1;n=n[ri("0x39")]}return!0}(n)?Qo(e,ri("0x2f"),Qo(e,function(t){const e=t[ri("0x1e")]().start.nodeAfter;return ri("0x5")+e[ri("0x15")](ri("0x13"))[ri("0x1")]()+ri("0x3d")}(n))):Qo(e,ri("0x20"),Qo(e,ri("0x4d"))),i={type:ri("0x6"),content:r};break;case ri("0x4c"):case"mergeListItemForward":!1===o.multipleBlocks&&(r=ri("0x17"),i={type:"deletion",content:Qo(e,r,Qo(e,ri("0x4d")))})}return i})),n[ri("0x1b")][ri("0x3e")](ri("0x23"),ri("0x4b"),ri("0x27"),(function(e,n){const o=[];for(let n of e)n[ri("0x18")].nodeAfter===n[ri("0x41")].parent&&(n=t.model[ri("0x24")](t[ri("0x8")][ri("0x9")](n[ri("0x18")][ri("0xb")],0))),o[ri("0xf")](n);t[ri("0x8")][ri("0x38")]((e=>{const r=t.model[ri("0x32")][ri("0x3c")],i=Array[ri("0x35")](r[ri("0x4a")]())[ri("0x43")]((t=>s.LiveRange[ri("0x44")](t)));e[ri("0x2")](o),t[ri("0x28")].get(n[ri("0xa")])[ri("0x3b")](),n[ri("0x2d")][ri("0xf")]({forceDefaultExecution:!0}),t[ri("0x48")](n.commandName,...n[ri("0x2d")]),e[ri("0x2")](i);for(const t of i)t[ri("0xc")]()}))}))}}const si=["listReversed","commandName","handleDescriptions","TrackChangesEditing","has","startIndex","toUpperCase","commandParams","afterInit","from","isListItemBlock","isFirstBlockOfListItem","ELEMENT_","replace","listStart","format","styles","listType","getAttribute","*Format:* set order to reversed","handleListStyleCommand","_getSuggestionBlocksForListStyle","selection","_LIST_","list.properties","handleListStartCommand","DocumentListUtils","editor","formatBlock","markMultiRangeBlockFormat","length","model","registerDescriptionCallback","expandListBlocksToCompleteList","*Format:* set order to regular","document","type","DocumentListPropertiesUtils","_getTranslationKeyForListStyle","push","handleListReversedCommand","bind","*Change to:* %0","getSelectedBlocks","change","_getSuggestionBlocks","formatInline","DocumentListPropertiesEditing","numbered","enableCommand","config","get","locale","plugins"];var xi,ai;xi=si,ai=355,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x1f")](){if(!this[ci("0x32")][ci("0x16")][ci("0x1b")](ci("0x10")))return;const t=this[ci("0x32")][ci("0x13")][ci("0x14")](ci("0x2f")),e=this.editor[ci("0x16")].get(ci("0x1a"));t[ci("0x27")]&&e[ci("0x12")]("listStyle",this[ci("0x2b")].bind(this)),t.reversed&&e[ci("0x12")](ci("0x17"),this.handleListReversedCommand[ci("0xa")](this)),t[ci("0x1c")]&&e[ci("0x12")](ci("0x25"),this[ci("0x30")].bind(this)),e._descriptionFactory[ci("0x1")](this[ci("0x19")].bind(this))}[ci("0x2b")](t,e={}){const n=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x1a")),o=this[ci("0x2c")]();this[ci("0x32")][ci("0x0")][ci("0xd")]((()=>{n[ci("0x34")](o,{commandName:"listStyle",commandParams:[{type:e[ci("0x5")]}],formatGroupId:"listStyle"})}))}[ci("0x9")](t,e={}){const n=this[ci("0x32")].plugins.get(ci("0x1a")),o=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x31")),r=this[ci("0xe")]((t=>o[ci("0x21")](t)&&ci("0x11")===t[ci("0x29")]("listType")));null!==r&&this[ci("0x32")][ci("0x0")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:ci("0x17"),commandParams:[{reversed:e.reversed}],formatGroupId:ci("0x17")})}))}handleListStartCommand(t,e={}){const n=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x1a")),o=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x31")),r=this._getSuggestionBlocks((t=>o[ci("0x21")](t)&&ci("0x11")===t.getAttribute(ci("0x28"))));null!==r&&this.editor.model[ci("0xd")]((()=>{n[ci("0x34")](r,{commandName:ci("0x25"),commandParams:[{startIndex:e[ci("0x1c")]}],formatGroupId:ci("0x25")})}))}[ci("0x19")](t){if(ci("0x33")!=t[ci("0x5")]&&ci("0xf")!=t[ci("0x5")])return;const e=this[ci("0x32")][ci("0x15")],{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x18")]){case"listStyle":o=ci("0xb"),r={type:ci("0x26"),content:Qo(e,o,Qo(e,this[ci("0x7")](n[ci("0x1e")][0][ci("0x5")])))};break;case ci("0x17"):o=n[ci("0x1e")][0].reversed?ci("0x2a"):ci("0x3"),r={type:ci("0x26"),content:Qo(e,o)};break;case"listStart":o="*Format:* set start index to %0",r={type:ci("0x26"),content:Qo(e,o,n[ci("0x1e")][0].startIndex)}}return r}[ci("0x2c")](){const t=this[ci("0x32")][ci("0x16")][ci("0x14")](ci("0x31"));let e=Array[ci("0x20")](this[ci("0x32")].model[ci("0x4")][ci("0x2d")][ci("0xc")]());return e[ci("0x8")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[ci("0xe")](t){const e=this[ci("0x32")].plugins[ci("0x14")](ci("0x31"));let n=Array[ci("0x20")](this.editor[ci("0x0")][ci("0x4")][ci("0x2d")][ci("0xc")]()).filter(t);if(!n[ci("0x35")])return null;n=e[ci("0x2")](n);const o=[];for(const t of n)e[ci("0x22")](t)&&o[ci("0x8")](t);return o}_getTranslationKeyForListStyle(t){return ci("0x23")+this[ci("0x32")][ci("0x16")].get(ci("0x6")).getListTypeFromListStyleType(t)[ci("0x1d")]()+ci("0x2e")+t[ci("0x1d")]()[ci("0x24")](/-/g,"_")}}var ui=n(331);const di=["model","afterExecute","downcastDispatcher","fromRange","enableCommand","options","addMarker:suggestion:insertion","markerName","enterBlock","remove","markInsertion","document","createRange","createPositionAt","data","getFirstPosition","writer","end","init","commands","TrackChangesEditing","selection","get","enter","editing","detach","getFirstRange","change","requires","bind","fire","mapper","markerNameToElements","high","split","hasClass","ck-suggestion-marker-split"];var gi,fi;gi=di,fi=442,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[mi("0x1e")](){return[ui.Enter]}[mi("0x14")](){const t=this.editor,e=t.plugins[mi("0x18")](mi("0x16")),n=t[mi("0x15")][mi("0x18")](mi("0x19"));e[mi("0x6")]("enter",(()=>{t[mi("0x2")][mi("0x1d")]((o=>{const r=t[mi("0x2")][mi("0xd")][mi("0x17")],i=r[mi("0x11")](),x=s.LiveRange[mi("0x5")](r[mi("0x1c")]());if(n[mi("0xa")](o)){const n=t[mi("0x2")][mi("0xf")](i.parent.nextSibling,0),r=o[mi("0xe")](i,n);e[mi("0xc")](r)}else o.setSelection(o[mi("0xe")](x[mi("0x13")]));x[mi("0x1b")](),n[mi("0x20")](mi("0x3"),{writer:o})}))})),t[mi("0x1a")].downcastDispatcher.on(mi("0x8"),$r(t,"split"),{priority:mi("0x23")}),t.editing[mi("0x4")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[mi("0x21")][mi("0x22")](e[mi("0x9")]);if(o)for(const t of o)t[mi("0x0")](mi("0x1"))&&(n[mi("0x21")].unbindElementFromMarkerName(t,e[mi("0x9")]),n[mi("0x12")][mi("0xb")](t))}),{priority:mi("0x23")}),t[mi("0x10")][mi("0x4")].on(mi("0x8"),((e,n,o)=>{o[mi("0x7")].showSuggestionHighlights&&$r(t,mi("0x24"),{showActiveMarker:!1})[mi("0x1f")](this)(e,n,o)}),{priority:mi("0x23")})}}const bi=["plugins","end","getIntersection","_isInDeletionRange","get","item","afterInit","findPrevious","has","editor","createPositionAt","getRange","FindAndReplaceEditing","getMarkersGroup","model","findNext","enableCommand","start","replaceAll","TrackChangesEditing","markers","handleFindCommand","find","createRange","suggestion:deletion","string","filter","bind"];var pi,Ei;pi=bi,Ei=483,function(t){for(;--t;)pi.push(pi.shift())}(++Ei);const _i=function(t,e){return bi[t-=0]};class Ti extends t.Plugin{[_i("0x1b")](){if(!this[_i("0x2")][_i("0x15")][_i("0x1")](_i("0x5")))return;const t=this[_i("0x2")][_i("0x15")][_i("0x19")](_i("0xc"));t[_i("0x9")](_i("0xf"),this[_i("0xe")][_i("0x14")](this)),t[_i("0x9")](_i("0x8")),t[_i("0x9")](_i("0x0")),t.enableCommand("replace"),t.enableCommand(_i("0xb"))}[_i("0xe")](t,e,n={}){const o=this[_i("0x2")][_i("0x15")][_i("0x19")]("FindAndReplaceUtils");return t((t=>(_i("0x12")==typeof e?o.findByTextCallback(e,n):e)(t)[_i("0x13")]((e=>!1===this[_i("0x18")](e,t[_i("0x1a")])))),n)}_isInDeletionRange(t,e){const n=this[_i("0x2")][_i("0x7")][_i("0x10")](this[_i("0x2")][_i("0x7")][_i("0x3")](e,t[_i("0xa")]),this[_i("0x2")][_i("0x7")][_i("0x3")](e,t[_i("0x16")]));for(const t of this[_i("0x2")][_i("0x7")][_i("0xd")][_i("0x6")](_i("0x11")))if(null!==n[_i("0x17")](t[_i("0x4")]()))return!0;return!1}}const yi=["TrackChangesEditing","has","toLowerCase","formatInline","_registerLegacyDescription","*Set font family:* %0","label","*Set font size:* %0","value","*Set font color:* %0","*Reset font background color*","registerDescriptionCallback","get","fontFamily","afterInit","FontSizeEditing","editor","config","model","trim","*Set font background color:* %0","FORMAT_FONT_BACKGROUND","_descriptionFactory","type","find","fontSize","FontSize","fontBackgroundColor","registerAttributeLabel","format","fontBackgroundColor.colors","commandParams","fontColor","locale","*Reset font size*","commandName","FORMAT_FONT_SIZE","plugins","title","FontBackgroundColorEditing"];var Ci,Ai;Ci=yi,Ai=461,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Si=[{pluginName:ki("0x22"),commandName:ki("0x4")},{pluginName:"FontFamilyEditing",commandName:ki("0x20")},{pluginName:"FontColorEditing",commandName:"fontColor"},{pluginName:ki("0x12"),commandName:ki("0x6")}];class Ri extends t.Plugin{[ki("0x21")](){const t=this.editor[ki("0xc")],e=this[ki("0x23")][ki("0x10")][ki("0x1f")](ki("0x13"));for(const{pluginName:t,commandName:n}of Si)this[ki("0x23")][ki("0x10")][ki("0x14")](t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e[ki("0x1")][ki("0x7")]("fontSize",Qo(t,ki("0xf"))),e._descriptionFactory[ki("0x7")]("fontFamily",Qo(t,"FORMAT_FONT_FAMILY")),e[ki("0x1")].registerAttributeLabel(ki("0xb"),Qo(t,"FORMAT_FONT_COLOR")),e[ki("0x1")][ki("0x7")](ki("0x6"),Qo(t,ki("0x0"))),this._registerLegacyDescription()}[ki("0x17")](){const t=this.editor,e=t[ki("0xc")];t[ki("0x10")].get("TrackChangesEditing")[ki("0x1")][ki("0x1e")]((t=>{const n=e.t;if(ki("0x16")!=t[ki("0x2")])return;const{data:o}=t;if(null!=o){if(ki("0x4")==o[ki("0xe")]){const t=o[ki("0xa")][0][ki("0x1b")];if(t){const o=n(this[ki("0x23")][ki("0x10")].get(ki("0x5")).normalizeSizeOptions(this[ki("0x23")].config[ki("0x1f")]("fontSize.options"))[ki("0x3")]((e=>e[ki("0x25")]==t))[ki("0x11")])[ki("0x15")]();return{type:ki("0x8"),content:Qo(e,ki("0x1a"),o)}}return{type:"format",content:Qo(e,ki("0xd"))}}if(ki("0x20")==o.commandName){const t=o.commandParams[0][ki("0x1b")];return t?{type:ki("0x8"),content:Qo(e,ki("0x18"),t)}:{type:"format",content:Qo(e,"*Reset font family*")}}if(ki("0xb")==o[ki("0xe")]){const t=o.commandParams[0].value;if(t){const o=(0,r.normalizeColorOptions)(this.editor[ki("0x24")][ki("0x1f")]("fontColor.colors"))[ki("0x3")]((e=>e[ki("0x25")]==t));let i=t,s="";return o&&(i=o[ki("0x19")],s=n(i)[ki("0x15")]()),{type:ki("0x8"),content:Qo(e,ki("0x1c"),s)[ki("0x26")](),color:{value:t,title:s||i}}}return{type:"format",content:Qo(e,"*Reset font color*")}}if(ki("0x6")==o[ki("0xe")]){const t=o[ki("0xa")][0].value;if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x23")][ki("0x24")].get(ki("0x9")))[ki("0x3")]((e=>e.model==t));let i=t,s="";return o&&(i=o[ki("0x19")],s=n(i)[ki("0x15")]()),{type:ki("0x8"),content:Qo(e,ki("0x27"),s).trim(),color:{value:t,title:s||i}}}return{type:ki("0x8"),content:Qo(e,ki("0x1d"))}}}}))}}const Ii=["boolean","_descriptionFactory","*Remove all formatting*","fontSize","formatBlock","enableCommand","title","config","normalizeSizeOptions","_registerLegacyDescription","FontSize","join","afterInit","model","fontColor.colors","plugins","formatInline","editor","get","split","locale","_enableDefaultAttributesIntegration","toLowerCase","fontSize.options","pasteFormat","push","find","TrackChangesEditing","commandParams","commands","format","length","slice","type","toUpperCase","copyFormat"];var vi,Ni;vi=Ii,Ni=217,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Ii[t-=0]};class Mi extends t.Plugin{[Li("0xb")](){const t=this[Li("0x10")],e=t.plugins[Li("0x11")](Li("0x1a")),n=t[Li("0x1c")][Li("0x11")](Li("0x22")),o=t[Li("0x1c")].get(Li("0x17"));n&&o&&(e[Li("0x14")](Li("0x17")),e[Li("0x4")]("copyFormat"),this[Li("0x8")]())}[Li("0x8")](){const t=this[Li("0x10")],e=t[Li("0x13")];t[Li("0xe")][Li("0x11")](Li("0x1a"))[Li("0x0")].registerDescriptionCallback((n=>{if(Li("0x3")!=n[Li("0x20")]&&Li("0xf")!=n[Li("0x20")])return;const{data:o}=n;if(o&&Li("0x17")===o.commandName){const n=[],r=o[Li("0x1b")][0];for(const[e,o]of Object.entries(r))n[Li("0x18")](wi(t,e,o));return n[Li("0x1e")]?{type:Li("0x1d"),content:Qo(e,"*Set format to:* %0",n[Li("0xa")](", "))}:{type:Li("0x1d"),content:Qo(e,Li("0x1"))}}}))}}function wi(t,e,n){const o=t[Li("0x13")].t,i=e[Li("0x12")](/(?=[A-Z])/)[Li("0xa")](" "),s=o(i.charAt(0)[Li("0x21")]()+i[Li("0x1f")](1))[Li("0x15")]();if(Li("0x23")==typeof n)return s;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,r.normalizeColorOptions)(t[Li("0x6")][Li("0x11")](Li("0xd"))).find((t=>t.model==n));return s+" ("+(e?o(e.label)[Li("0x15")]():n)+")"}if(Li("0x2")===e&&isNaN(parseFloat(n))){const e=t[Li("0xe")][Li("0x11")](Li("0x9"))[Li("0x7")](t.config.get(Li("0x16")))[Li("0x19")]((t=>t[Li("0xc")]==n));return s+" ("+(e?o(e[Li("0x5")])[Li("0x15")]():n)+")"}return s+" ("+n+")"}const Oi=["TrackChangesEditing","*Change to:* %0","afterInit","commandName","model","has","type","ELEMENT_HEADING_CUSTOM","editor","registerElementLabel","format","plugins","_enableDefaultAttributesIntegration","get","heading","match","view","find","_registerLegacyDescription","_headingOptions","locale","HeadingEditing","_descriptionFactory","ELEMENT_HEADING","heading.options","value"];var Fi,Di;Fi=Oi,Di=479,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Pi=function(t,e){return Oi[t-=0]};class Bi extends t.Plugin{[Pi("0x11")](){const t=this.editor;if(!t[Pi("0x0")][Pi("0x14")](Pi("0xa")))return;this[Pi("0x8")]=t.config[Pi("0x2")](Pi("0xd"));const e=t[Pi("0x9")],n=t[Pi("0x0")].get(Pi("0xf"));n[Pi("0x1")](Pi("0x3"));for(const t of this[Pi("0x8")])"paragraph"!=t.model&&n[Pi("0xb")][Pi("0x18")](t[Pi("0x13")],(n=>{const o=this._getHeadingLevel(t[Pi("0x13")]);return null!==o?(s=n,x=o,Qo(e,Pi("0xc"),[s,x])):(r=n,i=t.title,Qo(e,Pi("0x16"),[r,i]));var r,i,s,x}));this._registerLegacyDescription()}[Pi("0x7")](){const t=this[Pi("0x17")],e=t[Pi("0x9")];t[Pi("0x0")][Pi("0x2")]("TrackChangesEditing")[Pi("0xb")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Pi("0x15")])return;const{data:n}=t;if(n&&"heading"==n[Pi("0x12")]){const t=n.commandParams[0][Pi("0xe")],s=this._getHeadingLevel(t);if(null!==s)return{type:Pi("0x19"),content:Qo(e,Pi("0x10"),(1,i=s,Qo(e,Pi("0xc"),[1,i])))};const x=this._headingOptions[Pi("0x6")]((e=>e[Pi("0x13")]===t)).title;return{type:Pi("0x19"),content:Qo(e,"*Change to:* %0",(o=1,r=x,Qo(e,"ELEMENT_HEADING_CUSTOM",[o,r])))}}var o,r,i}))}_getHeadingLevel(t){var e,n;const o=t[Pi("0x4")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Pi("0x8")])||void 0===e?void 0:e[Pi("0x6")]((e=>e[Pi("0x13")]==t));if(r&&r[Pi("0x5")]){const t=r[Pi("0x5")],e=(null!==(n=t.name)&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["get","HighlightEditing","color","type","*Remove highlight*","commandName","TrackChangesEditing","find","afterInit","model","value","highlight","*Set highlight:* %0","format","FORMAT_HIGHLIGHT","registerAttributeLabel","plugins","has","highlight.options","_registerLegacyDescription","editor","_descriptionFactory","title","formatInline","commandParams"];var ji,Gi;ji=Ui,Gi=451,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Hi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[Hi("0x7")](){const t=this[Hi("0x13")];if(!t[Hi("0xf")][Hi("0x10")](Hi("0x0")))return;const e=t.plugins[Hi("0x18")](Hi("0x5")),n=t.locale;e._enableDefaultAttributesIntegration(Hi("0xa"),["highlight"]),e._descriptionFactory[Hi("0xe")](Hi("0xa"),Qo(n,Hi("0xd"))),this[Hi("0x12")]()}[Hi("0x12")](){const t=this[Hi("0x13")],e=t.locale;t[Hi("0xf")][Hi("0x18")](Hi("0x5"))[Hi("0x14")].registerDescriptionCallback((n=>{if(Hi("0x16")!=n[Hi("0x2")])return;const{data:o}=n;if(o&&Hi("0xa")==o[Hi("0x4")]){const n=e.t,r=o[Hi("0x17")][0][Hi("0x9")];if(r){const o=t.config.get(Hi("0x11"))[Hi("0x6")]((t=>t[Hi("0x8")]==r)),i=n(o[Hi("0x15")]).toLowerCase();return{type:Hi("0xc"),content:Qo(e,Hi("0xb"),i),color:{value:o[Hi("0x1")],title:o[Hi("0x15")]}}}return{type:Hi("0xc"),content:Qo(e,Hi("0x3"),Qo(e,"FORMAT_HIGHLIGHT"))}}}))}}const zi=["div","showSuggestionHighlights","elementToStructure","enableCommand","_descriptionFactory","registerElementLabel","get","HorizontalLineEditing","horizontalLine","has","plugins","createPositionAt","createContainerElement","dataDowncast","ck-horizontal-line","addClass","for","TrackChangesEditing"];var Wi,Ki;Wi=zi,Ki=396,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[qi("0x9")](qi("0x7")))return;t[qi("0xa")].get(qi("0x11"))[qi("0x3")](qi("0x8"));const e=t.plugins[qi("0x6")](qi("0x11")),n=t.locale;e[qi("0x4")][qi("0x5")](qi("0x8"),(t=>Qo(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[qi("0x10")](qi("0xd"))[qi("0x2")]({model:qi("0x8"),view:(t,{writer:e,options:n})=>{if(!n[qi("0x1")])return null;const o=e[qi("0xc")](qi("0x0")),r=e.createEmptyElement("hr");return e[qi("0xf")](qi("0xe"),o),e.insert(e[qi("0xb")](o,0),r),o},converterPriority:"high"})}}const $i=["_enableDefaultAttributesIntegration","TrackChangesEditing","registerDescriptionCallback","attribute","*Change %0 content*","format","value","_descriptionFactory","ELEMENT_HTML_EMBED","element","plugins","getFirstRange","rawHtml","editor","htmlEmbed","locale","key","registerElementLabel","get","commandName","nodeAfter","HtmlEmbed","formatBlock","_registerLegacyDescription","has","start","type"];var Zi,Yi;Zi=$i,Yi=432,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{afterInit(){const t=this[Ji("0xd")];if(!t[Ji("0xa")][Ji("0x18")](Ji("0x15")))return;const e=t.plugins[Ji("0x12")](Ji("0x1")),n=t.locale;e._descriptionFactory[Ji("0x11")](Ji("0xc"),(t=>Qo(n,"ELEMENT_HTML_EMBED",t))),e[Ji("0x0")](Ji("0xe"),[],[Ji("0x6")]),e[Ji("0x7")][Ji("0x2")]((t=>{if(Ji("0x3")!=t[Ji("0x1a")])return;const{data:e}=t;if(e&&Ji("0x6")==e[Ji("0x10")]&&t[Ji("0xb")]()[Ji("0x19")][Ji("0x14")].is(Ji("0x9"),Ji("0xc"))){const t=Qo(n,Ji("0x8"));return{type:Ji("0x5"),content:Qo(n,Ji("0x4"),t)}}})),this._registerLegacyDescription()}[Ji("0x17")](){const t=this[Ji("0xd")],e=t[Ji("0xf")];t.plugins[Ji("0x12")]("TrackChangesEditing")._descriptionFactory[Ji("0x2")]((t=>{if(Ji("0x16")!=t[Ji("0x1a")])return;const{data:n}=t;if(n&&Ji("0xe")==n[Ji("0x13")]){const t=Qo(e,Ji("0x8"));return{type:Ji("0x5"),content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["createRange","registerDescriptionCallback","isBlockImage","previous","isIntersecting","*Remove image text alternative*","deletion","alt","*Set image width:* %0","model","_registerLegacyDescription","ImageEditing","type","toPrevious","getCaptionFromImageModelElement","isOwn","key","isEqual","subType","get","convertBlockImageToInline","findIndex","uploadImage","Block image to inline image","newValue","markDeletion","ImageUploadEditing","ELEMENT_INLINE_IMAGE","find","_findSuggestions","FORMAT_IMAGE_SIZE","join","chain","removeObject","Inline image to block image","getClosestSelectedImageElement","format","isBefore","document","formatInline","registerAttributeLabel","markInsertion","nodeAfter","getContainedElement","imageTypeInline","getFirstRange","ELEMENT_CAPTION","commandParams","selection","forward","schema","toggleImageCaption","isCollapsed","resizedWidth","ELEMENT_IMAGE","addObject","_descriptionFactory","imageTypeBlock","width","registerCustomCallback","imageCaption","imageTextAlternative","registerElementLabel","ImageResize","createRangeOn","enableCommand","_suggestionFactory","insertImage","caption","fromPosition","ImageCaptionUtils","end","plugins","insertion","change","_enableDefaultAttributesIntegration","convertInlineImageToBlock","detach","getNearestSelectionRange","markBlockFormat","ImageUtils","length","ImageInlineEditing","commandName","imageStylePreApply","locale","formatBlock","has","getSuggestionCallback","discard","accept","TrackChangesEditing","start","ImageTextAlternativeEditing"];var es,ns;es=ts,ns=332,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{afterInit(){const t=this.editor;if(!t[os("0x16")].has(os("0x37")))return;const e=t.plugins[os("0x3f")](os("0x29")),n=t[os("0x16")][os("0x3f")](os("0x1e")),o=t[os("0x23")];e.enableCommand(os("0x11")),e[os("0x6")][os("0xc")]("imageBlock",(t=>Qo(o,os("0x4"),t))),e._descriptionFactory.registerElementLabel("imageInline",(t=>Qo(o,os("0x47"),t))),e._descriptionFactory[os("0xc")](os("0x12"),(()=>Qo(o,os("0x5a")))),t[os("0x16")][os("0x25")](os("0x46"))&&e[os("0xf")](os("0x42")),t[os("0x16")][os("0x25")]("ImageBlockEditing")&&t.plugins.has(os("0x20"))&&(e[os("0xf")](os("0x58"),((o,r)=>{const i=n[os("0x4f")](t[os("0x35")][os("0x52")].selection);t.model[os("0x18")]((()=>{e[os("0x1d")](i,{commandName:os("0x58"),commandParams:[r]},[],os("0x40"))}))})),e[os("0xf")](os("0x7"),((o,r)=>{t[os("0x35")][os("0x18")]((i=>{let x=n.getClosestSelectedImageElement(t[os("0x35")].document[os("0x5c")]),a=i[os("0xe")](x);const c=s.LivePosition[os("0x13")](a[os("0x2a")],os("0x39")),l=s.LivePosition[os("0x13")](a[os("0x15")],"toNext");e.forceDefaultExecution((()=>o(r))),x=n.getClosestSelectedImageElement(t[os("0x35")][os("0x52")][os("0x5c")]),a=i.createRangeOn(x);const u=i[os("0x2c")](c,l);c[os("0x1b")](),l[os("0x1b")](),e[os("0x1d")](x,{commandName:os("0x58"),commandParams:[r]},[],os("0x1a")),u.start.isBefore(a.start)&&e[os("0x55")](i[os("0x2c")](u[os("0x2a")],a.start),os("0x1a")),a[os("0x15")].isBefore(u[os("0x15")])&&e[os("0x55")](i[os("0x2c")](a[os("0x15")],u[os("0x15")]),os("0x1a"))}))})),e[os("0x10")].registerCustomCallback(os("0x24"),os("0x1a"),"join",(()=>!1)),e[os("0x10")][os("0x9")](os("0x24"),os("0x1a"),os("0x28"),(()=>!1)),e[os("0x10")][os("0x9")]("formatBlock",os("0x1a"),os("0x27"),e._suggestionFactory[os("0x26")](os("0x24"),"",os("0x28"))),e[os("0x10")][os("0x9")](os("0x17"),os("0x1a"),os("0x4b"),(()=>!1)),e[os("0x10")][os("0x9")](os("0x17"),os("0x1a"),os("0x27"),(([n])=>{const o=e._suggestionFactory.getSuggestionCallback(os("0x17"),"",os("0x27"));let r=n[os("0x2a")],i=n[os("0x15")];const s=t[os("0x35")][os("0x0")][os("0x1c")](r,"backward"),x=t[os("0x35")].schema.getNearestSelectionRange(i,os("0x5d"));s[os("0x2")]&&(r=s.start),x[os("0x2")]&&(i=x[os("0x15")]),o([t.model[os("0x2c")](r,i)])})),e[os("0x10")][os("0x9")](os("0x24"),os("0x1a"),os("0x4c"),x),e._suggestionFactory[os("0x9")]("insertion",os("0x1a"),os("0x4c"),x)),t.plugins[os("0x25")]("ImageCaptionEditing")&&(e[os("0xf")](os("0x1"),((o,r)=>{const i=t.plugins[os("0x3f")](os("0x14"));let s=n.getClosestSelectedImageElement(t[os("0x35")].document.selection),x=i.getCaptionFromImageModelElement(s);t[os("0x35")][os("0x18")]((()=>{if(x)return void e[os("0x45")](t[os("0x35")][os("0xe")](x));const a=n[os("0x2e")](s);o(r),s=n.getClosestSelectedImageElement(t[os("0x35")][os("0x52")].selection),x=i[os("0x3a")](s),e[os("0x55")](t.model.createRangeOn(x),a?null:os("0xa"))}))})),e[os("0x10")][os("0x9")](os("0x17"),"imageCaption",os("0x4c"),x));const r=[{type:os("0x24"),subType:os("0x22")},{type:os("0x17"),subType:os("0xa")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:os("0x17"),subType:os("0x1a")}];function i(t,o){const i=r[os("0x41")]((({type:e,subType:n})=>t[os("0x38")]==e&&t[os("0x3e")]==n)),s=r[os("0x41")]((({type:t,subType:e})=>o[os("0x38")]==t&&o.subType==e));if(i<0||s<0)return!1;const x=t[os("0x59")](),a=o[os("0x59")]();if((0==i||1==i)&&2==s&&x[os("0x30")](a))return!0;if(2==i&&3==s){const t=e[os("0x49")](x,os("0x17")).filter((({suggestion:t,meta:e})=>e[os("0x3b")]&&os("0x1a")==t.subType));if(t[os("0x1f")]>1&&a[os("0x15")][os("0x3d")](x.start))return!0;if(1==t[os("0x1f")]&&(x[os("0x2a")][os("0x3d")](a[os("0x15")])||x.end[os("0x3d")](a[os("0x2a")])))return!0}if(3==i&&3==s&&x[os("0x2a")][os("0x51")](a.start)){const t=x[os("0x15")][os("0x56")],e=a[os("0x2a")].nodeBefore;return n[os("0x2e")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0x16")][os("0x25")](os("0xd"))&&(e._enableDefaultAttributesIntegration("resizeImage",[],[os("0x3")]),e._descriptionFactory[os("0x54")](os("0x3"),Qo(o,os("0x4a")))),t[os("0x16")][os("0x25")](os("0x2b"))&&e[os("0x19")]("imageTextAlternative",[],["alt"]),e[os("0x6")][os("0x2d")]((t=>{if(r[os("0x48")]((({type:e,subType:n})=>t[os("0x38")]==e&&t[os("0x3e")]==n)))return t[os("0x2f")]?{}:void 0})),e._descriptionFactory.registerDescriptionCallback((t=>{if(os("0x17")==t[os("0x38")]||os("0x32")==t[os("0x38")]){const e=t[os("0x57")]();if(e&&e.is("element","caption"))return{type:os("0x17")==t.type?os("0x5"):os("0x4d"),element:e,quantity:1}}})),e[os("0x6")][os("0x2d")]((t=>os("0x24")==t[os("0x38")]&&os("0x1a")==t.subType?{type:os("0x50"),content:os("0x4e")}:os("0x24")==t[os("0x38")]&&os("0x40")==t[os("0x3e")]?{type:"format",content:os("0x43")}:void 0)),e[os("0x6")][os("0x2d")]((t=>{if("attribute"!=t[os("0x38")])return;const{data:e}=t;if(!e||os("0x33")!=e[os("0x3c")])return;const n=e[os("0x44")];return n?{type:os("0x50"),content:Qo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:os("0x50"),content:Qo(o,"*Remove image text alternative*")}})),this[os("0x36")]()}[os("0x36")](){const t=this.editor,e=t[os("0x23")];t[os("0x16")].get(os("0x29"))._descriptionFactory[os("0x2d")]((t=>{if(os("0x24")!=t[os("0x38")]&&os("0x53")!=t[os("0x38")])return;const{data:n}=t;if(n){if(os("0xb")==n[os("0x21")]){const t=n.commandParams[0].newValue;return t?{type:os("0x50"),content:Qo(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:os("0x50"),content:Qo(e,os("0x31"))}}if("resizeImage"==n[os("0x21")]){const t=n[os("0x5b")][0][os("0x8")];return t?{type:os("0x50"),content:Qo(e,os("0x34"),t)}:{type:os("0x50"),content:Qo(e,"*Reset image width*")}}}}))}}const is=["formatBlock","format","*Format:* replace image URL","key","registerDescriptionCallback","_enableDefaultAttributesIntegration","src","_descriptionFactory","plugins","newValue","commandName","discard","*Replace image URL*","replaceImageSource","_suggestionFactory","editor","get","has","type","oldValue","formatInline","accept","_registerLegacyDescription","attribute","TrackChangesEditing","locale","registerCustomCallback","_handleLegacySuggestions","getSuggestionCallback"];var ss,xs;ss=is,xs=121,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{afterInit(){if(!this[as("0xa")][as("0x3")][as("0xc")]("ImageEditing"))return;const t=this[as("0xa")][as("0x14")],e=this[as("0xa")][as("0x3")][as("0xb")](as("0x13"));e[as("0x0")]("replaceImageSource",[],[as("0x1")]),e._descriptionFactory[as("0x1c")]((e=>{if(as("0x12")!=e[as("0xd")])return;const{data:n}=e;return n&&as("0x1")==n[as("0x1b")]?n[as("0x4")]&&n[as("0xe")]?{type:as("0x19"),content:Qo(t,as("0x7"))}:{type:as("0x19"),content:""}:void 0})),this[as("0x16")]()}[as("0x16")](){const t=this[as("0xa")][as("0x3")].get(as("0x13"));t[as("0x9")][as("0x15")](as("0x18"),as("0x8"),as("0x10"),t[as("0x9")].getSuggestionCallback(as("0x18"),null,"discard")),t._suggestionFactory[as("0x15")](as("0x18"),as("0x8"),as("0x6"),t[as("0x9")][as("0x17")]("formatBlock",null,"accept")),this._registerLegacyDescription()}[as("0x11")](){const t=this.editor,e=t[as("0x14")];t[as("0x3")].get("TrackChangesEditing")[as("0x2")][as("0x1c")]((t=>{if("formatBlock"!=t[as("0xd")]&&as("0xf")!=t[as("0xd")])return;const{data:n}=t;return n&&as("0x8")==n[as("0x5")]?{type:as("0x19"),content:Qo(e,as("0x1a"))}:void 0}))}}const ls=["subType","ImageStyleEditing","suggestion","isBefore","plugins","_descriptionFactory","getSuggestion","hasSuggestion","locale","type","name","get","TrackChangesEditing","document","isInlineImage","formatBlock","*Format:* %0","isIntersecting","getClosestSelectedImageElement","title","has","commandParams","chain","normalizedStyles","forEach","Users","editor","registerPostFixer","getSuggestionCallback","commandReversedParams","_findSuggestions","getContainedElement","isBlockImage","registerCustomCallback","isEqual","imageTypeInline","findIndex","change","from","_suggestionFactory","format","filter","imageStyle","isOwn","registerDescriptionCallback","_registerLegacyDescription","markInlineFormat","commandName","getFirstRange","getChangedMarkers","imageStylePostApply","imageCaption","FORMAT_SIDE_IMAGE","next","differ","isInContent","value","model","end","commands","getSuggestions","convertInlineImageToBlock","toLowerCase","start","_splitMarkerName","discard","createRangeOn","nodeAfter","length","formatInline","refresh","shouldConvertImageType","imageTypeBlock","accept","join","afterInit","discardSuggestion","setImageNaturalSizeAttributes","side","newRange","insertion","author","ImageUtils","imageStylePreApply","selection"];var us,ds;us=ls,ds=143,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x11")](){const t=this[gs("0x35")];if(!t[gs("0x1f")][gs("0x2f")](gs("0x1c")))return;const n=t[gs("0x1f")].get(gs("0x27")),o=t[gs("0x1f")][gs("0x26")](gs("0x18")),r={};n.enableCommand(gs("0x45"),((r,i)=>{const s=t.plugins[gs("0x26")](gs("0x34")).me,x=t[gs("0x1")][gs("0x26")](gs("0x45"));let a=o.getClosestSelectedImageElement(t[gs("0x54")][gs("0x28")][gs("0x1a")]),c=t[gs("0x54")][gs("0x8")](a),l=x[gs("0x53")];if(l==i.value)return;const u={commandName:"imageStyle",commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x54")][gs("0x40")]((()=>{if(n[gs("0x2")]().filter((t=>t[gs("0x52")]&&s==t[gs("0x17")]&&(gs("0x2a")==t[gs("0x24")]||gs("0xb")==t[gs("0x24")])&&(gs("0x19")==t[gs("0x1b")]||gs("0x4d")==t[gs("0x1b")])&&t[gs("0x4b")]().isEqual(c)))[gs("0x33")]((t=>n[gs("0x12")](t.head))),a=o[gs("0x2d")](t[gs("0x54")][gs("0x28")][gs("0x1a")]),c=t[gs("0x54")][gs("0x8")](a),x[gs("0xc")](),t[gs("0x1")].get(gs("0x3e")).refresh(),t.commands[gs("0x26")](gs("0xe"))[gs("0xc")](),l=x[gs("0x53")],l!=i[gs("0x53")])return o[gs("0x29")](a)&&x[gs("0xd")](i[gs("0x53")],a)?(r({...i,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t.model.document.selection),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x19"))):void(o[gs("0x3b")](a)?n.markBlockFormat(a,u,[],gs("0x4d")):n[gs("0x49")](c,u,gs("0x4d")))}))}));for(const e of t[gs("0x1f")][gs("0x26")](gs("0x1c"))[gs("0x32")])r[e[gs("0x25")]]=e[gs("0x2e")][gs("0x4")]();n[gs("0x42")].registerCustomCallback(gs("0x2a"),gs("0x19"),"join",(()=>!1)),n[gs("0x42")][gs("0x3c")](gs("0x2a"),gs("0x4d"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback(gs("0xb"),"imageStylePostApply",gs("0x10"),(()=>!1)),n[gs("0x42")][gs("0x3c")](gs("0x2a"),gs("0x19"),gs("0xf"),(([t])=>{o[gs("0x13")](t[gs("0x3a")]())})),n[gs("0x42")][gs("0x3c")](gs("0x2a"),gs("0x19"),gs("0x7"),((t,e)=>{n[gs("0x42")][gs("0x37")](gs("0x2a"),"","accept")(t,{commandName:e[gs("0x4a")],commandParams:e[gs("0x38")]})})),n[gs("0x42")][gs("0x3c")]("formatBlock",gs("0x19"),gs("0x31"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x2a"),subType:gs("0x19")},{type:gs("0x16"),subType:gs("0x4e")},{type:gs("0x2a"),subType:gs("0x3")},{type:gs("0x16"),subType:"convertInlineImageToBlock"}];function s(t,e){const r=i[gs("0x3f")]((({type:e,subType:n})=>t[gs("0x24")]==e&&t.subType==n)),s=i[gs("0x3f")]((({type:t,subType:n})=>e[gs("0x24")]==t&&e[gs("0x1b")]==n));if(r<0||s<0)return!1;const x=t[gs("0x4b")](),a=e[gs("0x4b")]();if((0==r||1==r)&&2==s&&x[gs("0x2c")](a))return!0;if(2==r&&3==s){const t=n[gs("0x39")](x,"insertion")[gs("0x44")]((({suggestion:t,meta:e})=>e[gs("0x46")]&&gs("0x3")==t[gs("0x1b")]));if(t[gs("0xa")]>1&&a[gs("0x0")].isEqual(x[gs("0x5")]))return!0;if(1==t[gs("0xa")]&&(x[gs("0x5")][gs("0x3d")](a[gs("0x0")])||x.end.isEqual(a.start)))return!0}if(3==r&&3==s&&x[gs("0x5")][gs("0x1e")](a[gs("0x5")])){const t=x[gs("0x0")][gs("0x9")],e=a[gs("0x5")].nodeBefore;return o[gs("0x3b")](t)&&t===e}return!1}t[gs("0x54")][gs("0x28")][gs("0x36")]((()=>{let e=!1;const r=Array[gs("0x41")](t.model[gs("0x28")][gs("0x51")][gs("0x4c")]());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x6")](t);if(gs("0x1d")==r&&n[gs("0x22")](a)){if(gs("0x2a")==s&&(gs("0x19")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(i.newRange){const r=t[gs("0x4b")]()[gs("0x3a")]();if(o[gs("0x3b")](r))continue;n[gs("0x12")](t),e=!0}}if(gs("0x16")==s&&gs("0x4e")==x&&!i[gs("0x15")]){const t=n[gs("0x21")](a);t[gs("0x50")]&&t[gs("0x50")].isInContent&&(n.discardSuggestion(t.next),e=!0)}}}return e})),this[gs("0x48")](r)}[gs("0x48")](t){const e=this.editor,n=e[gs("0x23")];e[gs("0x1f")][gs("0x26")](gs("0x27"))[gs("0x20")][gs("0x47")]((e=>{if(gs("0x2a")!=e.type&&gs("0xb")!=e[gs("0x24")])return;const{data:o}=e;if(!o||gs("0x45")!=o.commandName)return;const r=o[gs("0x30")][0][gs("0x53")];return i=gs("0x14")===r?Qo(n,gs("0x4f")):t[r]||r,{type:gs("0x43"),content:Qo(n,gs("0x2b"),i)};var i}))}}const ms=["dataInsert","_trackChangesValueDuringImport","forEach","_trackChangesExecuted","value","importWord","get","execute","_handleImportedData","lowest","collaboration_features","commands","editor","TrackChangesEditing","plugins","listenTo","trackChanges","track_changes"];var hs,bs;hs=ms,bs=319,function(t){for(;--t;)hs.push(hs.shift())}(++bs);const ps=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[ps("0x6")]=!1,this[ps("0x8")]=!1}afterInit(){const t=this[ps("0x11")],e=t.commands[ps("0xb")](ps("0xa")),n=t[ps("0x10")].get(ps("0x3"));e&&(e.on(ps("0xc"),((t,[,e])=>{this[ps("0x6")]=n[ps("0x9")],e[ps("0xf")][ps("0x4")]=!this[ps("0x6")]}),{priority:"high"}),this[ps("0x2")](e,ps("0x5"),this[ps("0xd")].bind(this)),this[ps("0x2")](e,ps("0x5"),(()=>{this[ps("0x8")]&&(n[ps("0xc")](),this[ps("0x8")]=!1)}),{priority:ps("0xe")}),t[ps("0x1")][ps("0xb")](ps("0x0")).enableCommand(ps("0xa")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor.commands[ps("0xb")](ps("0x3")),r=o[ps("0x9")];this[ps("0x6")]!==r&&(o.execute(),this._trackChangesExecuted=!0),n&&n[ps("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[ps("0x11")][ps("0x1")][ps("0xb")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ps("0xa")}}};this[ps("0x11")][ps("0x1")][ps("0xb")](ps("0x0"))._setSuggestionData(r)}))}}const _s=["outdentBlock","type","afterInit","registerAttributeLabel","indentBlock","editor","IndentEditing","plugins","blockIndent","registerDescriptionCallback","get","commandName","getItemLabel","outdent","FORMAT_INDENT","_descriptionFactory","format","_registerLegacyDescription","TrackChangesEditing","*Outdent:* %0","_enableDefaultAttributesIntegration","enableCommand","locale","has","IndentBlock","getItems"];var Ts,ys;Ts=_s,ys=452,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x12")](){const t=this[Cs("0x15")],e=t[Cs("0x17")][Cs("0x0")](Cs("0x8"));if(t[Cs("0x17")][Cs("0xd")](Cs("0x16"))&&(e.enableCommand("indent"),e[Cs("0xb")](Cs("0x3"))),t[Cs("0x17")][Cs("0xd")](Cs("0xe")))for(const t of[Cs("0x14"),Cs("0x10")])e[Cs("0xa")](t);const n=t[Cs("0xc")];e._registerBlockAttribute("blockIndent"),e[Cs("0x5")][Cs("0x13")](Cs("0x18"),Qo(n,Cs("0x4"))),this[Cs("0x7")]()}[Cs("0x7")](){const t=this[Cs("0x15")],e=t[Cs("0xc")],n=t[Cs("0x17")][Cs("0x0")]("TrackChangesEditing");n[Cs("0x5")][Cs("0x19")]((t=>{if("formatBlock"!=t[Cs("0x11")])return;const{data:o}=t;if(!o)return;if("indentBlock"!=o[Cs("0x1")]&&Cs("0x10")!=o[Cs("0x1")])return;const r=t[Cs("0xf")]()[0],i=n[Cs("0x5")][Cs("0x2")](r);return Cs("0x14")==o.commandName?{type:Cs("0x6"),content:Qo(e,"*Indent:* %0",i)}:Cs("0x10")==o[Cs("0x1")]?{type:Cs("0x6"),content:Qo(e,Cs("0x9"),i)}:void 0}))}}var ks,Ss,Rs=["init","plugins","get","input","TrackChangesEditing","editor"];ks=Rs,Ss=445,function(t){for(;--t;)ks.push(ks.shift())}(++Ss);var Is=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get requires(){return[Vr.Input]}[Is("0x5")](){this[Is("0x4")][Is("0x0")][Is("0x1")](Is("0x3")).enableCommand(Is("0x2"))}}const Ns=["*Remove link*","registerDescriptionCallback","key","TrackChangesEditing","commandParams","attribute","link (","formatInline","toLowerCase","*Set link:* %0","commands","link","has","commandName","_descriptionFactory","get","type","editor","map","plugins","unlink","linkHref","format"];var Ls,Ms;Ls=Ns,Ms=435,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{afterInit(){const t=this[ws("0x13")];if(!t[ws("0x15")][ws("0xe")]("LinkEditing"))return;const e=t[ws("0x15")][ws("0x11")](ws("0x5")),n=t[ws("0xc")].get(ws("0xd"));e._enableDefaultAttributesIntegration(ws("0xd"),[ws("0x0"),...n.manualDecorators[ws("0x14")]((t=>t.id))]),e._enableDefaultAttributesIntegration(ws("0x16"));for(const t of n.manualDecorators)e._descriptionFactory.registerAttributeLabel(t.id,ws("0x8")+t.label[ws("0xa")]()+")");e[ws("0x10")][ws("0x3")]((e=>{if(ws("0x7")!=e.type)return;const{data:n}=e;if(!n||ws("0x0")!=n[ws("0x4")])return;const o=n.newValue,r=t.locale;return{type:ws("0x1"),content:null==o?Qo(r,ws("0x2")):Qo(r,ws("0xb"),'"'+o+'"')}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ws("0x13")],e=t.locale;t[ws("0x15")].get(ws("0x5"))._descriptionFactory[ws("0x3")]((t=>{if(ws("0x9")!=t[ws("0x12")])return;const{data:n}=t;if(n){if(ws("0xd")==n[ws("0xf")]){const t=n[ws("0x6")][0];return{type:ws("0x1"),content:Qo(e,ws("0xb"),'"'+t+'"')}}return ws("0x16")==n.commandName?{type:"format",content:Qo(e,"*Remove link*")}:void 0}}))}}const Fs=["end","_descriptionFactory","outdentList","formatInline","markBlockFormat","value","enableCommand","ELEMENT_NUMBERED_LIST","TrackChangesEditing","listItem","commandName","numberedList","selection","listIndent","ELEMENT_LIST_ITEM","nextSibling","listType","element","name","push","indentList","get","length","paragraph","change","filter","commands","format","*Check item*","replace","add","List","checkTodoList","bulletedList","slice","registerDescriptionCallback","bulleted","getSelectedBlocks","before","schema","TodoListEditing","blockName","createPositionAt","todoList","model","has","commandParams","findIndex","*Change to:* %0","ListEditing","type","execute","getAttribute","isObject","*Indent:* %0","document","*Uncheck item*","from","checkChild","formatBlock","plugins","previousSibling","registerElementLabel"];var Ds,Ps;Ds=Fs,Ps=381,function(t){for(;--t;)Ds.push(Ds.shift())}(++Ps);const Bs=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this.editor,e=t.locale;if(!t.plugins[Bs("0x2a")](Bs("0x2e")))return;const n=t[Bs("0x39")].get(Bs("0x5")),o=t[Bs("0x39")][Bs("0x2a")](Bs("0x25"));function r(e){return()=>{const o=t[Bs("0x29")][Bs("0x34")][Bs("0x9")],r=t[Bs("0x17")][Bs("0x12")](e);if(r[Bs("0x2")])return void t[Bs("0x30")](Bs("0x14"),{});const i=e[Bs("0x1f")](0,-4),s=function(t,e,n){let o=Array[Bs("0x36")](t)[Bs("0x16")]((t=>{return e=t,(o=n)[Bs("0x37")](e.parent,Bs("0x6"))&&!o[Bs("0x32")](e);var e,o}));o=o.filter((t=>!t.is(Bs("0xe"),Bs("0x6"))||t[Bs("0x31")](Bs("0xd"))!=e));const r=new Set;for(const t of o)t.is(Bs("0xe"),Bs("0x6"))?r[Bs("0x1b")](js(t)):r.add(t);return Array.from(r)}(o[Bs("0x22")](),i,t[Bs("0x29")][Bs("0x24")]);t[Bs("0x29")][Bs("0x15")]((()=>{for(const t of s)n[Bs("0x1")](t,{commandName:e,commandParams:[{forceValue:!r[Bs("0x2")]}],formatGroupId:Bs("0x26")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Bs("0x36")](t);const n=e[Bs("0x2c")]((t=>Bs("0x6")!=t[Bs("0xf")]));return n>-1&&(e=e[Bs("0x1f")](0,n)),e}(t[Bs("0x29")].document[Bs("0x9")][Bs("0x22")]()),r=t[Bs("0x29")].createRange(t[Bs("0x29")][Bs("0x27")](o[0],Bs("0x23")),t.model.createPositionAt(o[o[Bs("0x13")]-1],Bs("0x3c")));t[Bs("0x29")][Bs("0x15")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:Bs("0xa")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(Bs("0xa"))>n.getAttribute(Bs("0xa"));)e.add(t),t=t[Bs("0xc")]}return Array[Bs("0x36")](e)}(o))}))}}n.enableCommand(Bs("0x8"),r(Bs("0x8"))),n.enableCommand(Bs("0x1e"),r(Bs("0x1e"))),o&&n[Bs("0x3")]("todoList",r(Bs("0x28"))),n[Bs("0x3")]("indentList",i(Bs("0x11"))),n[Bs("0x3")](Bs("0x3e"),i(Bs("0x3e"))),o&&n.enableCommand(Bs("0x1d"),(()=>{const e=t[Bs("0x17")][Bs("0x12")]("checkTodoList"),o=Array[Bs("0x36")](e._selectedElements);o.filter((t=>t.getAttribute("todoListChecked")!=e.value)),t[Bs("0x29")][Bs("0x15")]((()=>{for(const t of o)n[Bs("0x1")](t,{commandName:Bs("0x1d"),commandParams:[{forceValue:!e[Bs("0x2")]}]})}))})),n[Bs("0x3d")][Bs("0x3b")](Bs("0x6"),(t=>Qo(e,Bs("0xb"),t))),n._descriptionFactory[Bs("0x20")]((t=>{if(Bs("0x38")!=t[Bs("0x2f")]&&Bs("0x0")!=t[Bs("0x2f")])return;const{data:n}=t;if(n){if("numberedList"==n[Bs("0x7")]||Bs("0x1e")==n[Bs("0x7")]||Bs("0x28")==n.commandName)switch(n[Bs("0x7")][Bs("0x1a")](Bs("0x1c"),"")){case Bs("0x21"):return o(Qo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Qo(e,Bs("0x4")));case"todo":return o(Qo(e,"ELEMENT_TODO_LIST"))}if(Bs("0x11")==n[Bs("0x7")])return{type:Bs("0x18"),content:Qo(e,Bs("0x33"),Qo(e,Bs("0xb")))};if("outdentList"==n[Bs("0x7")])return{type:Bs("0x18"),content:Qo(e,"*Outdent:* %0",Qo(e,Bs("0xb")))};if(Bs("0x1d")==n[Bs("0x7")])return n[Bs("0x2b")][0].forceValue?{type:"format",content:Qo(e,Bs("0x19"))}:{type:Bs("0x18"),content:Qo(e,Bs("0x35"))}}function o(t){return{type:Bs("0x18"),content:Qo(e,Bs("0x2d"),t)}}}))}}function js(t){const e=t.getAttribute(Bs("0xa"));if(0==e)return t;let n=t;for(;t[Bs("0x3a")]&&t[Bs("0x3a")].is(Bs("0xe"),Bs("0x6"));){const o=t[Bs("0x3a")].getAttribute(Bs("0xa"));if(o==e)n=t[Bs("0x3a")];else if(o<e)break;t=t[Bs("0x3a")]}return n}function Gs(t){const e=[];if(t.is(Bs("0xe"),Bs("0x6"))&&t[Bs("0x31")](Bs("0xa"))>0){let n=t.nextSibling;for(;n&&Bs("0x6")==n[Bs("0xf")]&&n[Bs("0x31")](Bs("0xa"))==t[Bs("0x31")](Bs("0xa"));)e[Bs("0x10")](n),n=n.nextSibling}return e}const Hs=["plugins","selection","filter","locale","createPositionAt","unshift","listReversed","_LIST_","ListPropertiesEditing","enableCommand","listType","flat","type","getSiblingNodes","handleListStyleCommand","*Format:* set order to regular","list.properties","commandName","listItem","document","map","_descriptionFactory","change","format","_getSuggestionBlocksForListStyle","createRange","TrackChangesEditing","styles","commandParams","handleDescriptions","has","bind","getListTypeFromListStyleType","formatBlock","registerDescriptionCallback","before","forward","*Change to:* %0","listStyle","getSelectedBlocks","markMultiRangeBlockFormat","get","ELEMENT_","ListUtils","listStart","element","length","_getSuggestionBlocks","from","editor","backward","startIndex","handleListReversedCommand","getFirstPosition","toUpperCase","model","*Format:* set order to reversed","reversed"];var Vs,zs;Vs=Hs,zs=371,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ws=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{afterInit(){if(!this.editor[Ws("0x23")][Ws("0x7")](Ws("0x2b")))return;const t=this[Ws("0x1a")].config[Ws("0x12")](Ws("0x33")),e=this[Ws("0x1a")][Ws("0x23")].get(Ws("0x3"));t[Ws("0x4")]&&e[Ws("0x2c")](Ws("0xf"),this.handleListStyleCommand[Ws("0x8")](this)),t[Ws("0x22")]&&e[Ws("0x2c")]("listReversed",this[Ws("0x1d")][Ws("0x8")](this)),t.startIndex&&e[Ws("0x2c")](Ws("0x15"),this.handleListStartCommand[Ws("0x8")](this)),e[Ws("0x38")][Ws("0xb")](this.handleDescriptions[Ws("0x8")](this))}[Ws("0x31")](t,e={}){const n=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")]("TrackChangesEditing"),o=this[Ws("0x1")]();this[Ws("0x1a")].model[Ws("0x39")]((()=>{n[Ws("0x11")](o,{commandName:Ws("0xf"),commandParams:[{type:e[Ws("0x2f")]}],formatGroupId:"listStyle"})}))}[Ws("0x1d")](t,e={}){const n=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")](Ws("0x3")),o=this[Ws("0x18")]((t=>t.is(Ws("0x16"),Ws("0x35"))&&"numbered"===t.getAttribute(Ws("0x2d"))));if(o[Ws("0x17")]<1)return;const r=o.map((t=>this[Ws("0x1a")][Ws("0x20")][Ws("0x2")](this[Ws("0x1a")][Ws("0x20")][Ws("0x27")](t,Ws("0xc")),this[Ws("0x1a")][Ws("0x20")][Ws("0x27")](t,0))));this[Ws("0x1a")][Ws("0x20")][Ws("0x39")]((()=>{n[Ws("0x11")](r,{commandName:Ws("0x29"),commandParams:[{reversed:e[Ws("0x22")]}],formatGroupId:Ws("0x29")})}))}handleListStartCommand(t,e={}){const n=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")](Ws("0x3")),o=this[Ws("0x18")]((t=>t.is(Ws("0x16"),Ws("0x35"))&&"numbered"===t.getAttribute("listType")));if(o[Ws("0x17")]<1)return;const r=o[Ws("0x37")]((t=>this[Ws("0x1a")][Ws("0x20")][Ws("0x2")](this[Ws("0x1a")].model[Ws("0x27")](t,"before"),this.editor.model[Ws("0x27")](t,0))));this.editor.model.change((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ws("0x15"),commandParams:[{startIndex:e[Ws("0x1c")]}],formatGroupId:Ws("0x15")})}))}[Ws("0x6")](t){if(Ws("0xa")!=t.type&&"formatInline"!=t[Ws("0x2f")])return;const e=this[Ws("0x1a")][Ws("0x26")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x34")]){case"listStyle":o=Ws("0xe"),r={type:Ws("0x0"),content:Qo(e,o,Qo(e,this._getTranslationKeyForListStyle(n[Ws("0x5")][0][Ws("0x2f")])))};break;case Ws("0x29"):o=n[Ws("0x5")][0].reversed?Ws("0x21"):Ws("0x32"),r={type:Ws("0x0"),content:Qo(e,o)};break;case Ws("0x15"):o="*Format:* set start index to %0",r={type:"format",content:Qo(e,o,n.commandParams[0].startIndex)}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")]("ListUtils");let i=Array[Ws("0x19")](this[Ws("0x1a")][Ws("0x20")].document[Ws("0x24")][Ws("0x10")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x16"),Ws("0x35")))&&i[Ws("0x28")](...r.getSiblingNodes(this[Ws("0x1a")][Ws("0x20")][Ws("0x36")][Ws("0x24")][Ws("0x1e")](),"backward")),(null===(e=i[i[Ws("0x17")]-1])||void 0===e?void 0:e.is(Ws("0x16"),Ws("0x35")))&&i.push(...r[Ws("0x30")](this[Ws("0x1a")][Ws("0x20")][Ws("0x36")][Ws("0x24")].getLastPosition(),Ws("0xd"))),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0x1a")][Ws("0x20")][Ws("0x36")][Ws("0x24")][Ws("0x1e")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Ws("0x16"),Ws("0x35")))&&(i=i[Ws("0x25")]((t=>t.is(Ws("0x16"),Ws("0x35"))))),i}[Ws("0x18")](t){const e=this[Ws("0x1a")][Ws("0x23")][Ws("0x12")](Ws("0x14"));let n=Array[Ws("0x19")](this[Ws("0x1a")][Ws("0x20")][Ws("0x36")][Ws("0x24")][Ws("0x10")]())[Ws("0x25")](t)[Ws("0x37")]((t=>{const n=this[Ws("0x1a")][Ws("0x20")][Ws("0x27")](t,0);return[...e[Ws("0x30")](n,Ws("0x1b")),...e[Ws("0x30")](n,Ws("0xd"))]}))[Ws("0x2e")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Ws("0x13")+this[Ws("0x1a")][Ws("0x23")][Ws("0x12")](Ws("0x14"))[Ws("0x9")](t)[Ws("0x1f")]()+Ws("0x2a")+t[Ws("0x1f")]().replace(/-/g,"_")}}const qs=["afterInit","locale","media","div","createEmptyElement","elementToElement","stop","options","mediaEmbed","dataDowncast","TrackChangesEditing","has","plugins","showSuggestionHighlights","get","ELEMENT_MEDIA","high","_descriptionFactory","MediaEmbedEditing","attribute:url:media","data"];var Xs,$s;Xs=qs,$s=325,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0xb")](){const t=this.editor;if(!t[Zs("0x2")][Zs("0x1")](Zs("0x8")))return;const e=t[Zs("0x2")][Zs("0x4")](Zs("0x0")),n=t[Zs("0xc")];e.enableCommand(Zs("0x13")),e[Zs("0x7")].registerElementLabel(Zs("0xd"),(t=>Qo(n,Zs("0x5"),t))),t.conversion.for(Zs("0x14"))[Zs("0x10")]({model:Zs("0xd"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x3")])return e[Zs("0xf")](Zs("0xe"))},converterPriority:Zs("0x6")}),t[Zs("0xa")].downcastDispatcher.on(Zs("0x9"),((t,e,n)=>{n[Zs("0x12")][Zs("0x3")]&&t[Zs("0x11")]()}),{priority:Zs("0x6")})}}const Js=["get","TrackChangesEditing","plugins","afterInit","enableCommand","MentionEditing","mention"];var Qs,tx;Qs=Js,tx=407,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x2")](){const t=this.editor;t[ex("0x1")].has(ex("0x4"))&&t[ex("0x1")][ex("0x6")](ex("0x0"))[ex("0x3")](ex("0x5"))}}const ox=["enableCommand","get","plugins","TrackChangesEditing","editor","locale","pageBreak","PageBreakEditing","afterInit","ELEMENT_PAGE_BREAK","_descriptionFactory","has"];var rx,ix;rx=ox,ix=124,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x4")](){const t=this[sx("0x0")];if(!t[sx("0xa")][sx("0x7")](sx("0x3")))return;t.plugins[sx("0x9")](sx("0xb"))[sx("0x8")](sx("0x2"));const e=t[sx("0xa")].get(sx("0xb")),n=t[sx("0x1")];e[sx("0x6")].registerElementLabel(sx("0x2"),(t=>Qo(n,sx("0x5"),t)))}}const ax=["*Insert:* %0","paragraph","consumable","getFirstRange","ck-suggestion-marker--active","checkChild","plugins","start","isLimit","editor","insert","model","ck-suggestion-marker-split","schema","name","markerName","addClass","type","locale","afterInit","showSuggestionHighlights","nodeAfter","data","writer","isBlock","*Change to:* %0","mapper","insertion","format","markerRange","isTouching","editing","consume","get","addMarker:suggestion:insertion","_registerLegacyDescription","commandName","downcastDispatcher","includes","_enableDefaultAttributesIntegration","has","registerDescriptionCallback","insertParagraph","_descriptionFactory","getItemLabel","TrackChangesEditing","$text"];var cx,lx;cx=ax,lx=213,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x29")](){const t=this[ux("0x1f")];if(!t.plugins[ux("0xf")]("Paragraph"))return;const e=t.locale,n=t[ux("0x1c")][ux("0x8")](ux("0x14"));n[ux("0x12")].registerElementLabel("paragraph",(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n[ux("0xe")](ux("0x17")),n.enableCommand(ux("0x11")),t[ux("0x6")][ux("0xc")].on(ux("0x9"),gx(t),{priority:"highest"}),t[ux("0x2c")][ux("0xc")].on(ux("0x9"),((e,n,o)=>{o.options[ux("0x2a")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x12")];o[ux("0x10")]((n=>{if("insertion"!==n[ux("0x27")])return;const{start:r,end:i}=n[ux("0x19")]();if(!r[ux("0x5")](i)||!r[ux("0x2b")])return;const s=t[ux("0x21")][ux("0x23")],x=r[ux("0x2b")];return s[ux("0x2e")](x)&&!s[ux("0x1e")](x)&&s[ux("0x1b")](x,ux("0x15"))?{type:ux("0x2"),content:Qo(e,ux("0x16"),o[ux("0x13")](x,1))}:void 0})),this[ux("0xa")]()}[ux("0xa")](){const t=this[ux("0x1f")],e=t[ux("0x28")];t[ux("0x1c")][ux("0x8")]("TrackChangesEditing")._descriptionFactory[ux("0x10")]((t=>{if("formatBlock"!=t[ux("0x27")])return;const{data:n}=t;return n&&ux("0x17")==n[ux("0xb")]?{type:ux("0x3"),content:Qo(e,ux("0x0"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[ux("0x1c")][ux("0x8")](ux("0x14")),s=o[ux("0x4")][ux("0x1d")],x=o[ux("0x4")].end,a=t.model[ux("0x23")];if(!s[ux("0x5")](x)||!s.nodeAfter)return;const c=s[ux("0x2b")];if(a[ux("0x2e")](c)&&!a[ux("0x1e")](c)&&a[ux("0x1b")](c,ux("0x15"))){if(!r[ux("0x18")][ux("0x7")](o[ux("0x4")],n[ux("0x24")]))return;const t=r[ux("0x2d")].createUIElement("span",{class:ux("0x22")}),s=r.mapper.toViewPosition(x);e&&i.activeMarkers[ux("0xd")](o[ux("0x25")])&&r[ux("0x2d")][ux("0x26")](ux("0x1a"),t),r[ux("0x2d")][ux("0x20")](s,t),r[ux("0x1")].bindElementToMarker(t,o[ux("0x25")])}}}const fx=["_descriptionFactory","TrackChangesEditing","plugins","locale","formatBlock","registerDescriptionCallback","removeFormat","_registerLegacyDescription","afterInit","has","commandName","editor","type","get"];var mx,hx;mx=fx,hx=246,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const bx=function(t,e){return fx[t-=0]};class px extends t.Plugin{[bx("0x0")](){const t=this.editor;t[bx("0x8")][bx("0x1")]("RemoveFormatEditing")&&(t[bx("0x8")][bx("0x5")](bx("0x7"))._enableDefaultAttributesIntegration(bx("0xc")),this[bx("0xd")]())}[bx("0xd")](){const t=this[bx("0x3")];t.plugins.get(bx("0x7"))[bx("0x6")][bx("0xb")]((e=>{if(bx("0xa")!=e.type&&"formatInline"!=e[bx("0x4")])return;const{data:n}=e;return n&&"removeFormat"==n[bx("0x2")]?{type:"format",content:Qo(t[bx("0x9")],"*Remove all formatting*")}:void 0}))}}const Ex=["enableCommand","get","plugins","acceptSuggestion","acceptAllSuggestions","acceptSelectedSuggestions","goToPreviousRestrictedEditingException","TrackChangesEditing","discardAllSuggestions","discardSuggestion","has","RestrictedEditingModeEditing","editor","afterInit"];var _x,Tx;_x=Ex,Tx=254,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0xb")](){const t=this[yx("0xa")];if(!t[yx("0x0")][yx("0x8")](yx("0x9")))return;const e=t.plugins[yx("0xd")](yx("0x5"));e[yx("0xc")](yx("0x4")),e.enableCommand("goToNextRestrictedEditingException");const n=t.plugins[yx("0xd")](yx("0x9"));n[yx("0xc")]("trackChanges"),n[yx("0xc")](yx("0x1")),n[yx("0xc")](yx("0x7")),n[yx("0xc")](yx("0x2")),n.enableCommand(yx("0x6")),n[yx("0xc")](yx("0x3")),n[yx("0xc")]("discardSelectedSuggestions")}}const Ax=["editing","split","name","test","high","insert","getItems","shiftEnter","downcastDispatcher","writer","mapper","ELEMENT_LINE_BREAK","requires","TrackChangesEditing","deletion","init","_descriptionFactory","ck-suggestion-marker--active","createPositionBefore","activeMarkers","softBreak","showSuggestionHighlights","includes","addClass","addMarker:suggestion:insertion","editor","options","addMarker:suggestion:deletion","ck-suggestion-marker-","markerName","toViewPosition","bindElementToMarker","model"];var kx,Sx;kx=Ax,Sx=483,function(t){for(;--t;)kx.push(kx.shift())}(++Sx);const Rx=function(t,e){return Ax[t-=0]};class Ix extends t.Plugin{static get[Rx("0x18")](){return[ui.ShiftEnter]}[Rx("0x1b")](){const t=this[Rx("0x4")],e=t.plugins.get(Rx("0x19"));e.enableCommand(Rx("0x13")),t[Rx("0xc")][Rx("0x14")].on(Rx("0x3"),vx(t),{priority:Rx("0x10")}),t[Rx("0xc")][Rx("0x14")].on(Rx("0x6"),vx(t),{priority:"high"}),t.data[Rx("0x14")].on("addMarker:suggestion",((e,n,o)=>{o[Rx("0x5")][Rx("0x0")]&&vx(t,{showActiveMarker:!1})(e,n,o)})),e[Rx("0x1c")].registerElementLabel(Rx("0x20"),(e=>Qo(t.locale,Rx("0x17"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins.get(Rx("0x19"));if(!r.consumable[Rx("0xf")](o.markerRange,n[Rx("0xe")]))return;const s=t[Rx("0xb")];for(const t of o.markerRange[Rx("0x12")]()){if(!t.is("element","softBreak"))continue;const n=Rx("0x1a")==o[Rx("0x8")][Rx("0xd")](":")[1]?"merge":Rx("0xd"),x=r[Rx("0x15")].createUIElement("span",{class:Rx("0x7")+n}),a=r[Rx("0x16")][Rx("0x9")](s[Rx("0x1e")](t));e&&i[Rx("0x1f")][Rx("0x1")](o.markerName)&&r.writer[Rx("0x2")](Rx("0x1d"),x),r[Rx("0x15")][Rx("0x11")](a,x),r.mapper[Rx("0xa")](x,o[Rx("0x8")])}}}const Nx=["getRanges","document","isCollapsed","StandardEditingModeEditing","model","FORMAT_RESTRICTED_ENABLED","forceValue","registerDescriptionCallback","afterInit","commandParams","formatBlock","type","plugins","markInlineFormat","commands","commandName","editor","selection","enableCommand","change","restrictedEditingException","has","get","formatInline","locale"];var Lx,Mx;Lx=Nx,Mx=213,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x14")](){const t=this[wx("0x3")],e=t[wx("0x10")],n=t[wx("0xb")];if(!t[wx("0x18")][wx("0x8")](wx("0xf")))return;const o=t[wx("0x18")][wx("0x9")]("TrackChangesEditing"),r=wx("0x7"),i=t[wx("0x1")][wx("0x9")](r);o[wx("0x5")](r,((t,n={})=>{const s=e[wx("0xd")][wx("0x4")];if(s[wx("0xe")])return void t(n);const x=void 0!==n[wx("0x12")]?n.forceValue:!i.value;e[wx("0x6")]((()=>{const t=Array.from(s[wx("0xc")]());for(const n of t){const t=x?[n]:Xr(r,n,e);for(const e of t)o[wx("0x0")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[wx("0x13")]((t=>{if(wx("0x16")!=t[wx("0x17")]&&wx("0xa")!=t[wx("0x17")])return;const{data:e}=t;return e&&e[wx("0x2")]==r?e[wx("0x15")][0][wx("0x12")]?{type:"format",content:Qo(n,wx("0x11"))}:{type:"format",content:Qo(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["definitions","StyleUtils","ghsAttributes","formatInline","add","normalizeConfig","_registerBlockAttribute","_descriptionFactory","config","has","Style","getGhsAttributeNameForElement","_registerInlineAttribute","inline","_enableDefaultAttributesIntegration","format","*Set format:* %0","afterInit","editor","type","registerAttributeLabel","block","_registerLegacyDescription","styleName","element","DataSchema","style","FORMAT_STYLE","TrackChangesEditing","locale","forceValue","commandParams","registerDescriptionCallback","plugins","get","toLowerCase"];var Dx,Px;Dx=Fx,Px=101,function(t){for(;--t;)Dx.push(Dx.shift())}(++Px);const Bx=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Bx("0x18")](){const t=this.editor;if(!t[Bx("0x4")][Bx("0x10")](Bx("0x11"))||!t[Bx("0x4")][Bx("0x10")](Bx("0x20")))return;const e=t[Bx("0x4")][Bx("0x5")](Bx("0x23")),n=t[Bx("0x0")],o=t[Bx("0xf")].get(Bx("0x21")),r=t[Bx("0x4")][Bx("0x5")]("GeneralHtmlSupport"),i=t[Bx("0x4")][Bx("0x5")](Bx("0x8"))[Bx("0xc")](t[Bx("0x4")][Bx("0x5")]("DataSchema"),o[Bx("0x7")]);e[Bx("0x15")]("style");const s=new Set;for(const t of i[Bx("0x1c")]){const e=r[Bx("0x12")](t[Bx("0x1f")]);s[Bx("0xb")](e)}const x=new Set;for(const t of i[Bx("0x14")]){const e=r.getGhsAttributeNameForElement(t[Bx("0x1f")]);x[Bx("0xb")](e);for(const e of t[Bx("0x9")])x[Bx("0xb")](e)}for(const t of s)e[Bx("0xd")](t),e[Bx("0xe")].registerAttributeLabel(t,Qo(n,Bx("0x22")));for(const t of x)e[Bx("0x13")](t),e[Bx("0xe")][Bx("0x1b")](t,Qo(n,Bx("0x22")));this[Bx("0x1d")]()}[Bx("0x1d")](){const t=this[Bx("0x19")],e=t.locale;t[Bx("0x4")][Bx("0x5")](Bx("0x23"))[Bx("0xe")][Bx("0x3")]((t=>{if("formatBlock"!=t[Bx("0x1a")]&&Bx("0xa")!=t[Bx("0x1a")])return;const{data:n}=t;return n&&"style"===n.commandName?n[Bx("0x2")][0][Bx("0x1")]?{type:Bx("0x16"),content:Qo(e,Bx("0x17"),n[Bx("0x2")][0][Bx("0x1e")][Bx("0x6")]())}:{type:Bx("0x16"),content:Qo(e,"*Remove format:* %0",n[Bx("0x2")][0][Bx("0x1e")][Bx("0x6")]())}:void 0}))}}const jx=["filter","insert","plugins","suggestion","element","tableRow","removeTableColumn","TrackChangesEditing","tableCell","highest","removeTableRow","data","_descriptionFactory","createTableWalker","end","map","deletion","insertTableRowBelow","registerDescriptionCallback","_getCoordsForCells","type","insertTableRowAbove","createRangeOn","markMultiRangeDeletion","batch","insertion","min","commands","push","substr","length","$textProxy","editor","subType","createPositionAt","fromRange","low","registerCustomCallback","insertTableColumnLeft","rootName","insertTableColumnRight","cell","model","ELEMENT_TABLE_ROW","downcastDispatcher","createRangeIn","afterInit","getSelectionAffectedTableCells","execute","discard","accept","registerElementLabel","tableColumn","tablePaste","addRange","ELEMENT_TABLE_ROW_WITH_TEXT","minColumn","getFirstRange","nodeAfter","oldRange","name","from","root","maxRow","getChanges","colspan","TableUtils","last","getSuggestion","findAncestor","options","nodeBefore","position","isInContent","table","maxColumn","some","first","detach","hasAttribute","max","refresh","getContainedElement","ELEMENT_TABLE_COLUMN","_tableSuggestions","_getSuggestionCoords","start","order","getCellLocation","_splitMarkerName","getColumnIndexes","getRanges","above","$graveyard","ELEMENT_TABLE_COLUMN_WITH_TEXT","isEqual","startsWith","isIntersectingWithRange","TableEditing","enqueueChange","*Insert:* %0","values","has","MIN_SAFE_INTEGER","getItems","*Remove:* %0","getAttribute","addMarker:suggestion","setSelection","span","_suggestionFactory","_acceptFormatSuggestionCallbackFactory","addClass","differ","locale","writer","ELEMENT_TABLE","change","toLowerCase","get","insertTable","enableCommand","rowspan","toViewElement","markMultiRangeInsertion","_setupColumnsRowsFixing","left","change:data","MAX_SAFE_INTEGER","classes","selection","document","join","isTouching"];var Gx,Hx;Gx=jx,Hx=259,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Vx("0xe"),Vx("0x3d")],this[Vx("0x5d")]=new Set}[Vx("0x37")](){const t=this.editor,e=t[Vx("0x33")][Vx("0x6")][Vx("0x5")];if(!t[Vx("0xb")][Vx("0x6f")](Vx("0x6b")))return;const n=t[Vx("0x7b")],o=t[Vx("0xb")][Vx("0x80")](Vx("0x10")),r=t[Vx("0xb")].get(Vx("0x4b"));o[Vx("0x15")][Vx("0x3c")](Vx("0x53"),(t=>Qo(n,Vx("0x7d"),t))),this[Vx("0x0")](),o[Vx("0x82")](Vx("0x81")),o[Vx("0x82")]("selectTableRow"),o[Vx("0x82")]("selectTableColumn");for(const n of[Vx("0x1e"),Vx("0x1a")]){const i=t[Vx("0x24")][Vx("0x80")](n);o[Vx("0x82")](n,(n=>{t[Vx("0x33")][Vx("0x7e")]((t=>{n();const s=Vx("0x65")===i[Vx("0x60")],x=r[Vx("0x38")](e),a=r.getRowIndexes(x),c=s?a[Vx("0x56")]-1:a.last+1,l=x[0][Vx("0x4e")](Vx("0x53")),u=r.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Vx("0x46")](u)[Vx("0x18")]((e=>t[Vx("0x1f")](e[Vx("0x32")])));o[Vx("0x85")](d,Vx("0xe"))}))}))}for(const n of[Vx("0x2f"),Vx("0x31")]){const i=t[Vx("0x24")][Vx("0x80")](n);o.enableCommand(n,(n=>{t[Vx("0x33")][Vx("0x7e")]((t=>{n();const s=Vx("0x1")===i[Vx("0x60")],x=r.getSelectionAffectedTableCells(e),a=r.getColumnIndexes(x),c=s?a.first-1:a[Vx("0x4c")]+1,l=x[0][Vx("0x4e")](Vx("0x53")),u=r[Vx("0x16")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Vx("0x18")]((e=>t[Vx("0x1f")](e.cell)));o[Vx("0x85")](d,Vx("0x3d"))}))}))}for(const n of["removeTableRow",Vx("0xf")]){const i=n.substr(11),s=i[Vx("0x7f")](),x=s[Vx("0x26")](0,3)+"span",a=Vx("0x53")+i,c=Vx("0x23")+i,l="max"+i;o.enableCommand(n,(()=>{t[Vx("0x33")][Vx("0x7e")]((t=>{const i=r[Vx("0x38")](e),u=i[0].findAncestor(Vx("0x53"));let d;if(Vx("0x13")==n){const t=r.getRowIndexes(i);d={startRow:t[Vx("0x56")],endRow:t[Vx("0x4c")],includeAllSlots:!0}}else{const t=r[Vx("0x63")](i);d={startColumn:t[Vx("0x56")],endColumn:t[Vx("0x4c")],includeAllSlots:!0}}const g=r[Vx("0x16")](u,d),f=Array.from(g)[Vx("0x18")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Vx("0x58")](x)))),h=Wx(f[Vx("0x9")]((t=>!t.hasAttribute(x))))[Vx("0x18")]((e=>t[Vx("0x1f")](e))),b=o[Vx("0x20")](h,a);if(b&&("tableRow"==b[Vx("0x2a")]||"tableColumn"==b.subType)){const e=this[Vx("0x5e")](b);for(const n of m){const o=t[Vx("0x1f")](n),i=r[Vx("0x61")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&b[Vx("0x3f")](o)}}}))}))}function i(n){const o=Array[Vx("0x46")](e.getRanges()).map((t=>s.LiveRange[Vx("0x2c")](t)));t[Vx("0x33")][Vx("0x7e")]((e=>{const r=e[Vx("0x21")];n=n.filter((t=>Vx("0x66")!=t[Vx("0x47")][Vx("0x30")])),e.setSelection(n),t[Vx("0x24")][Vx("0x80")]("removeTableRow")[Vx("0x5a")](),t[Vx("0x39")](Vx("0x13"),{forceDefaultExecution:!0}),t[Vx("0x33")][Vx("0x6c")]((()=>{t[Vx("0x33")][Vx("0x6c")](r,(t=>{const e=o.filter((t=>Vx("0x66")!=t[Vx("0x47")][Vx("0x30")]));e[Vx("0x27")]>0&&t[Vx("0x75")](e);for(const t of o)t[Vx("0x57")]()}))}))}))}function a(n){t[Vx("0x33")][Vx("0x7e")]((o=>{const r=Array[Vx("0x46")](e[Vx("0x64")]())[Vx("0x18")]((t=>s.LiveRange[Vx("0x2c")](t))),i=[];for(const t of n)for(const e of t[Vx("0x71")]({shallow:!0}))i[Vx("0x25")](e);for(const e of i)Vx("0x66")!=e.root[Vx("0x30")]&&(o[Vx("0x75")](o[Vx("0x2b")](e,0)),t[Vx("0x24")].get("removeTableColumn").refresh(),t[Vx("0x39")](Vx("0xf"),{forceDefaultExecution:!0}));const x=r[Vx("0x9")]((t=>Vx("0x66")!=t.root.rootName));x[Vx("0x27")]>0&&o[Vx("0x75")](x);for(const t of r)t[Vx("0x57")]()}))}function c(t,e){return e.every((e=>t[Vx("0x55")]((t=>t.end[Vx("0x68")](e[Vx("0x5f")])||e[Vx("0x17")][Vx("0x68")](t[Vx("0x5f")])))))}function l(t,e){return t[Vx("0x55")]((t=>e[Vx("0x55")]((e=>t[Vx("0x17")][Vx("0x8")](e[Vx("0x5f")])))))}t[Vx("0x14")][Vx("0x35")].on(Vx("0x74"),((t,e,n)=>{if(!n[Vx("0x4f")].showSuggestionHighlights)return;const o=e.item;if(!o)return;const r=n.mapper[Vx("0x84")](o);function i(t){return Array.isArray(t)?t:[t]}r&&"tableCell"===o[Vx("0x45")]&&(0,x.setHighlightHandling)(r,n[Vx("0x7c")],((t,e,n)=>n[Vx("0x79")](i(e[Vx("0x4")]),t)),((t,e,n)=>n.removeClass(i(e[Vx("0x4")]),t)))}),{priority:Vx("0x12")}),o._descriptionFactory.registerDescriptionCallback((t=>{if("insertion"!=t[Vx("0x1d")]&&Vx("0x19")!=t[Vx("0x1d")])return;const e=t[Vx("0x5b")]();if(null!=e&&e.is(Vx("0xd"),"table")){if(Vx("0x22")==t.type){const e=t.getItems()[Vx("0x9")]((t=>t.is(Vx("0x28")))).map((t=>t[Vx("0x14")]));if(e.length)return{type:Vx("0x22"),content:Qo(n,Vx("0x6d"),Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Vx("0x7")](" ")+'"'))}}if(Vx("0x19")==t.type){const e=t.getItems()[Vx("0x9")]((t=>t.is(Vx("0x28")))).map((t=>t[Vx("0x14")]));if(e.length)return{type:Vx("0x19"),content:Qo(n,Vx("0x72"),Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Vx("0x7")](" ")+'"'))}}}})),o[Vx("0x15")][Vx("0x1b")]((t=>{if("tableRow"==t[Vx("0x2a")]){const e=t[Vx("0x71")]()[Vx("0x9")]((t=>t.is(Vx("0x28"))))[Vx("0x18")]((t=>t.data)),o=this._getSuggestionCoords(t),r=o[Vx("0x48")]-o.minRow+1;if(Vx("0x22")==t[Vx("0x1d")])return e[Vx("0x27")]?{type:Vx("0x22"),content:Qo(n,"*Insert:* %0",Qo(n,Vx("0x40"),[r,'"'+e[Vx("0x7")](" ")+'"']))}:{type:"insertion",content:Qo(n,Vx("0x6d"),Qo(n,Vx("0x34"),r))};if("deletion"==t[Vx("0x1d")])return e[Vx("0x27")]?{type:Vx("0x19"),content:Qo(n,"*Remove:* %0",Qo(n,Vx("0x40"),[r,'"'+e[Vx("0x7")](" ")+'"']))}:{type:Vx("0x19"),content:Qo(n,Vx("0x72"),Qo(n,Vx("0x34"),r))}}if("tableColumn"==t.subType){const e=t[Vx("0x71")]()[Vx("0x9")]((t=>t.is("$textProxy")))[Vx("0x18")]((t=>t.data)),o=this[Vx("0x5e")](t),r=o[Vx("0x54")]-o[Vx("0x41")]+1;if(Vx("0x22")==t.type)return e.length?{type:Vx("0x22"),content:Qo(n,Vx("0x6d"),Qo(n,Vx("0x67"),[r,'"'+e[Vx("0x7")](" ")+'"']))}:{type:Vx("0x22"),content:Qo(n,Vx("0x6d"),Qo(n,Vx("0x5c"),r))};if(Vx("0x19")==t.type)return e[Vx("0x27")]?{type:Vx("0x19"),content:Qo(n,Vx("0x72"),Qo(n,Vx("0x67"),[r,'"'+e[Vx("0x7")](" ")+'"']))}:{type:Vx("0x19"),content:Qo(n,Vx("0x72"),Qo(n,Vx("0x5c"),r))}}})),o._suggestionFactory.registerCustomCallback(Vx("0x22"),"tableRow",Vx("0x3a"),i),o[Vx("0x77")][Vx("0x2e")](Vx("0x19"),Vx("0xe"),Vx("0x3b"),i),o[Vx("0x77")][Vx("0x2e")]("insertion",Vx("0x3d"),Vx("0x3a"),a),o._suggestionFactory.registerCustomCallback(Vx("0x19"),Vx("0x3d"),"accept",a),o._suggestionFactory[Vx("0x2e")](Vx("0x22"),"tableColumn",Vx("0x7"),c),o[Vx("0x77")][Vx("0x2e")](Vx("0x19"),Vx("0x3d"),Vx("0x7"),c),o[Vx("0x77")].registerCustomCallback(Vx("0x22"),Vx("0xe"),Vx("0x7"),l),o[Vx("0x77")][Vx("0x2e")]("deletion",Vx("0xe"),"join",l)}[Vx("0x78")](){const t=this[Vx("0x29")],e=t[Vx("0x33")].document.selection;return(n,o)=>{t[Vx("0x33")].change((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Vx("0x17")][Vx("0x50")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Vx("0x5f")][Vx("0x43")]);const c=r[Vx("0x36")](a);if(Vx("0x66")==c[Vx("0x47")][Vx("0x30")])return;const l=Array[Vx("0x46")](e[Vx("0x64")]()).map((t=>s.LiveRange.fromRange(t)));r[Vx("0x75")](c),t[Vx("0x24")][Vx("0x80")](i).refresh(),x[Vx("0x25")]({forceDefaultExecution:!0}),t.execute(i,...x);const u=l[Vx("0x9")]((t=>Vx("0x66")!=t.root.rootName));u[Vx("0x27")]>0&&r[Vx("0x75")](u);for(const t of l)t[Vx("0x57")]()}))}}[Vx("0x1c")](t){const e=this.editor.plugins[Vx("0x80")](Vx("0x4b"));let n=Number[Vx("0x3")],o=Number[Vx("0x70")],r=Number[Vx("0x3")],i=Number[Vx("0x70")];for(const s of t){if(Vx("0x66")==s[Vx("0x47")][Vx("0x30")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s.hasAttribute(Vx("0x83"))?s[Vx("0x73")](Vx("0x83"))-1:0,c=s[Vx("0x58")](Vx("0x4a"))?s[Vx("0x73")](Vx("0x4a"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:r,maxColumn:i}}[Vx("0x0")](){const t=this[Vx("0x29")],e=t[Vx("0xb")][Vx("0x80")](Vx("0x10")),n=t[Vx("0xb")][Vx("0x80")](Vx("0x4b"));t[Vx("0x33")][Vx("0x6")].on(Vx("0x2"),(()=>{const n=Array[Vx("0x46")](t[Vx("0x33")][Vx("0x6")][Vx("0x7a")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[Vx("0x62")](t);if(Vx("0xc")!=n)continue;if(null!=o[Vx("0x44")])continue;const s=e[Vx("0x4d")](r);this._tablePostFixingSubtypes.includes(i)&&this._tableSuggestions.add(s)}}),{priority:Vx("0x2d")});const o=(t,e)=>{let o=!1;const r=e[Vx("0x1f")](t),i=t[Vx("0x4e")](Vx("0x53")),s=n[Vx("0x61")](t);for(const e of this._tableSuggestions){const n=e[Vx("0x2a")],x=n[Vx("0x69")](Vx("0x3e")),a=n[Vx("0x26")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Vx("0x76"),u=Vx("0x23")+a,d=Vx("0x59")+a;if(!e[Vx("0x52")])continue;if(i!=e[Vx("0x42")]()[Vx("0x5f")][Vx("0x4e")](Vx("0x53")))continue;if(e[Vx("0x6a")](r))continue;const g=t.hasAttribute(l)?t[Vx("0x73")](l)-1:0,f=this[Vx("0x5e")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Vx("0x3f")](r),o=!0)}return o};t.model[Vx("0x6")].registerPostFixer((e=>{let n=!1;for(const r of t[Vx("0x33")][Vx("0x6")][Vx("0x7a")][Vx("0x49")]())if(Vx("0xa")==r[Vx("0x1d")])if("tableRow"==r[Vx("0x45")])for(const t of r[Vx("0x51")].nodeAfter.getChildren())n=n||o(t,e);else Vx("0x11")==r[Vx("0x45")]&&(n=n||o(r[Vx("0x51")].nodeAfter,e));return n}))}[Vx("0x5e")](t){return this._getCoordsForCells(t[Vx("0x64")]()[Vx("0x18")]((t=>t[Vx("0x5f")][Vx("0x43")])))}}function Wx(t){return Array[Vx("0x46")](new Set(t)[Vx("0x6e")]())}const Kx=["find","push","getFirstPosition","filter","selection","mergeTableCellRight","document","return","length","refresh","mergeTableCells","element","mergeTableCellUp","_suggestionFactory","splitTableCellVertically","set:isEnabled","author","type","registerDescriptionCallback","trackChanges","markBlockFormat","model","registerCustomCallback","TableUtils","from","getRanges","execute","commandName","root","locale","map","getCellLocation","add","deletion","mergeTableCellDown","markMultiRangeBlockFormat","direction","forceDefaultExecution","horizontally","_areMergableCells","containsRange","setSelection","getSuggestions","findAncestor","fromRange","getSelectionAffectedTableCells","value","enableCommand","requires","tableCell","*Split cell:* vertically","editor","_tablePostFixingSubtypes","TableEditing","accept","change","_acceptFormatSuggestionCallbackFactory","getAncestors","rootName","detach","isInContent","stop","plugins","format","cell","mergeTableCellLeft","size","table","createRangeOn","_descriptionFactory","TrackChangesEditing","_isForcedDefaultExecutionBlock","splitTableCellHorizontally","commands","get","formatBlock","has"];var qx,Xx;qx=Kx,Xx=133,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x45")](){return[zx]}afterInit(){const t=this.editor,e=t[$x("0x2a")].document.selection,n=t[$x("0x32")];if(!t[$x("0x6")].has($x("0x4a")))return;const o=t[$x("0x6")].get("TrackChangesEditing"),r=t[$x("0x6")][$x("0x12")]("TableUtils"),i=t[$x("0x6")][$x("0x12")](zx);i[$x("0x49")][$x("0x16")]($x("0x1f")),o[$x("0x44")]($x("0x1f"),(()=>{const e=r[$x("0x42")](t[$x("0x2a")][$x("0x1b")].selection);t.model[$x("0x4c")]((()=>{o[$x("0x38")](e,{commandName:"mergeTableCells",commandParams:[]},[],$x("0x1f"))}))})),t.commands.get($x("0x1f")).on($x("0x2f"),((e,n)=>{t[$x("0x11")][$x("0x12")]($x("0x28")).value&&(n[$x("0x1d")]>0&&n[n.length-1]&&n[n[$x("0x1d")]-1][$x("0x3a")]||o[$x("0xf")]||this._areSelectedCellsMergable()||e[$x("0x5")]())}),{priority:"highest"});for(const e of["mergeTableCellUp","mergeTableCellRight",$x("0x37"),$x("0x9")]){const n=t[$x("0x11")][$x("0x12")](e);o[$x("0x44")](e,(()=>{const e=t[$x("0x2a")][$x("0x1b")].selection[$x("0x17")]().getAncestors()[$x("0x15")]((t=>t.is($x("0x20"),"tableCell"))),r=n[$x("0x43")];t[$x("0x2a")][$x("0x4c")]((()=>{o[$x("0x38")]([e,r],{commandName:$x("0x1f"),commandParams:[]},[],$x("0x1f"))}))}))}for(const e of[$x("0x23"),$x("0x10")]){const n=t[$x("0x11")][$x("0x12")](e);o[$x("0x44")](e,(()=>{const i=r[$x("0x42")](t[$x("0x2a")][$x("0x1b")][$x("0x19")])[0],s=i[$x("0x40")]($x("0xb")),{column:x,row:a}=r[$x("0x34")](i);let c=[];if($x("0x3b")==n[$x("0x39")]){const t=r.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x2d")](t)[$x("0x33")]((t=>t[$x("0x8")]))}else{const t=r.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[$x("0x2d")](t)[$x("0x33")]((t=>t[$x("0x8")]))}t[$x("0x2a")][$x("0x4c")]((t=>{o[$x("0x29")](t[$x("0xc")](i),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[$x("0x27")]((t=>{if($x("0x13")!=t[$x("0x26")]&&"formatInline"!=t[$x("0x26")])return;const{data:e}=t;return e&&$x("0x1f")==e[$x("0x30")]?{type:$x("0x7"),content:Qo(n,"*Merge cells*")}:void 0})),o[$x("0xd")][$x("0x27")]((t=>{if($x("0x13")!=t[$x("0x26")]&&"formatInline"!=t[$x("0x26")])return;const{data:e}=t;return e?$x("0x23")==e.commandName?{type:$x("0x7"),content:Qo(n,$x("0x47"))}:"splitTableCellHorizontally"==e[$x("0x30")]?{type:$x("0x7"),content:Qo(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=i[$x("0x0")]();for(const t of[$x("0x21"),$x("0x1a"),"mergeTableCellDown",$x("0x9")])o[$x("0x22")][$x("0x2b")]($x("0x13"),t,$x("0x4b"),x);for(const t of[$x("0x23"),$x("0x10")])o[$x("0x22")][$x("0x2b")]($x("0x13"),t,$x("0x4b"),x);o[$x("0x22")].registerCustomCallback($x("0x13"),$x("0x1f"),"accept",(n=>{t[$x("0x2a")][$x("0x4c")]((o=>{const r=Array[$x("0x2d")](e[$x("0x2e")]())[$x("0x33")]((t=>s.LiveRange[$x("0x41")](t)));o[$x("0x3e")](n),t.commands[$x("0x12")]("mergeTableCells")[$x("0x1e")](),t[$x("0x2f")]($x("0x1f"),{forceDefaultExecution:!0});const i=r[$x("0x18")]((t=>"$graveyard"!=t[$x("0x31")][$x("0x2")]));i[$x("0x1d")]>0&&o.setSelection(i);for(const t of r)t[$x("0x3")]()}))}));for(const e of[$x("0x21"),$x("0x37"),"mergeTableCellLeft",$x("0x1a")]){const n=t[$x("0x11")][$x("0x12")](e);n.on($x("0x24"),((e,o,r)=>{if(r){const o=t.model.document[$x("0x19")][$x("0x17")]()[$x("0x1")]()[$x("0x15")]((t=>t.is("element",$x("0x46"))));this[$x("0x3c")](n[$x("0x43")],o)||(e[$x("0x1c")]=!1,e[$x("0x5")]())}}),{priority:"low"})}}_areSelectedCellsMergable(){const t=this[$x("0x48")].commands[$x("0x12")]($x("0x1f")),e=this[$x("0x48")][$x("0x6")][$x("0x12")]($x("0x2c"));if(!t.isEnabled)return!1;const n=e[$x("0x42")](this[$x("0x48")][$x("0x2a")][$x("0x1b")][$x("0x19")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x3c")](t,e))return!1;return!0}[$x("0x3c")](t,e){const n=this[$x("0x48")][$x("0x6")][$x("0x12")]($x("0xe")),o=this[$x("0x48")][$x("0x2a")][$x("0xc")](t),r=this[$x("0x48")].model[$x("0xc")](e),i=new Set,s=new Set;for(const t of n[$x("0x3f")]())if(("insertion"==t.type||$x("0x36")==t[$x("0x26")]||$x("0x1f")==t.subType)&&t[$x("0x4")])for(const e of t.getRanges())e[$x("0x3d")](o,!0)&&i[$x("0x35")](t[$x("0x26")]+":"+t[$x("0x25")].id),e[$x("0x3d")](r,!0)&&s.add(t[$x("0x26")]+":"+t.author.id);if(i[$x("0xa")]!=s.size)return!1;for(const t of i)if(!s[$x("0x14")](t))return!1;return!0}}const Yx=["getCellLocation","consumable","setAttribute","data","addMarker:suggestion","consume","registerDescriptionCallback","ck-suggestion-marker--active","get","markerName","parent","start","registerAttributeLabel","data-suggestion","registerCustomCallback","FORMAT_HEADER_ROW","commandName","FORMAT_HEADER_COLUMN","has","createTableWalker","removeAttribute","setTableColumnHeader","formatBlock","options","type","headingRows","cell","format","accept","end","requires","TrackChangesEditing","writer","removeClass","showSuggestionHighlights","_handleLegacySuggestions","_descriptionFactory","forceValue","plugins","TableEditing","locale","_splitMarkerName","*Format:* %0","commandParams","_registerLegacyDescription","mapper","markerRange","_enableDefaultAttributesIntegration","_acceptFormatSuggestionCallbackFactory","editing","unbindElementFromMarkerName","FORMAT_REGULAR_COLUMN","nodeAfter","editor","highest","ck-suggestion-marker-","headingColumns","setTableRowHeader","addClass","getSuggestion","downcastDispatcher","_suggestionFactory","item","markerNameToElements"];var Jx,Qx;Jx=Yx,Qx=459,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x13")](){return[zx]}afterInit(){const t=this.editor;if(!t.plugins[ta("0x7")](ta("0x1c")))return;const e=t.locale,n=t.plugins[ta("0x3d")](ta("0x14"));n._enableDefaultAttributesIntegration(ta("0x2e"),[],[ta("0xe")]),n[ta("0x24")](ta("0xa"),[],[ta("0x2d")]),n[ta("0x19")].registerAttributeLabel(ta("0xe"),Qo(e,ta("0x4"))),n[ta("0x19")][ta("0x1")](ta("0x2d"),Qo(e,"FORMAT_HEADER_COLUMN")),this[ta("0x18")]()}[ta("0x18")](){const t=this.editor.plugins[ta("0x3d")](ta("0x14")),e=this[ta("0x2a")][ta("0x1b")].get("TableUtils"),n=this[ta("0x2a")][ta("0x1b")][ta("0x3d")](zx)[ta("0x25")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ta("0x1e")](i.markerName),c=t[ta("0x30")](a),l=c[ta("0x38")];if(ta("0xb")!=c[ta("0xd")]||!l||"setTableColumnHeader"!=l[ta("0x5")])return;if(i[ta("0x33")])return void r.stop();if(!s[ta("0x36")][ta("0x3a")](i.markerRange,r.name))return;const u=i[ta("0x23")][ta("0x0")][ta("0x29")],d=i[ta("0x23")][ta("0x12")].nodeBefore,g=u[ta("0x3f")][ta("0x3f")],{column:f}=e[ta("0x35")](u),{column:m}=e[ta("0x35")](d);for(let r=f;r<=m;r++){const c=e[ta("0x8")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0xf")],c=s[ta("0x22")].toViewElement(r);s[ta("0x15")][ta("0x2f")](ta("0x2c")+x,c),o&&s[ta("0x15")][ta("0x37")](ta("0x2"),a,c),s.mapper.bindElementToMarker(c,i[ta("0x3e")]),n&&(t.activeMarkers.includes(i[ta("0x3e")])?s.writer[ta("0x2f")](ta("0x3c"),c):s[ta("0x15")][ta("0x16")]("ck-suggestion-marker--active",c))}}}}t[ta("0x32")][ta("0x3")](ta("0xb"),"setTableRowHeader",ta("0x11"),n),t[ta("0x32")][ta("0x3")](ta("0xb"),"setTableColumnHeader","accept",n),this[ta("0x2a")][ta("0x26")][ta("0x31")].on(ta("0x39"),o(),{priority:ta("0x2b")}),this[ta("0x2a")][ta("0x38")].downcastDispatcher.on(ta("0x39"),((t,e,n)=>{n[ta("0xc")][ta("0x17")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x2b")}),this[ta("0x2a")][ta("0x26")][ta("0x31")].on("removeMarker:suggestion",((e,n,o)=>{const{type:r,id:i}=t[ta("0x1e")](n[ta("0x3e")]),s=t.getSuggestion(i),x=s.data;if(ta("0xb")!=s.type||!x||"setTableColumnHeader"!=x[ta("0x5")])return;const a=o[ta("0x22")][ta("0x34")](n[ta("0x3e")]);if(a)for(const t of a)o[ta("0x15")].removeClass(ta("0x2c")+r,t),o[ta("0x15")][ta("0x16")](ta("0x3c"),t),o[ta("0x15")][ta("0x9")](ta("0x2"),t),o[ta("0x22")][ta("0x27")](t,n[ta("0x3e")])}),{priority:ta("0x2b")}),this[ta("0x21")]()}[ta("0x21")](){const t=this[ta("0x2a")],e=t[ta("0x1d")];function n(t){return{type:ta("0x10"),content:Qo(e,ta("0x1f"),t)}}t[ta("0x1b")][ta("0x3d")](ta("0x14"))[ta("0x19")][ta("0x3b")]((t=>{if(ta("0xb")!=t[ta("0xd")])return;const{data:o}=t;if(o){if("setTableRowHeader"==o[ta("0x5")]){const t=o[ta("0x20")][0].forceValue;return n(Qo(e,t?ta("0x4"):"FORMAT_REGULAR_ROW"))}if(ta("0xa")==o.commandName){const t=o[ta("0x20")][0][ta("0x1a")];return n(Qo(e,ta(t?"0x6":"0x28")))}}}))}}const na=["join","getSuggestion","containsRange","afterInit","unwrap","name","commands","*Replace table cells*","activeMarkers","_getCoordsForCells","low","tableCellHorizontalAlignment","getChild","getItems","trackChanges","getAllAdjacentSuggestions","createRangeIn","showSuggestionHighlights","createPositionBefore","from","markMultiRangeDeletion","editor","cell","_suggestionFactory","getRowIndexes","getChildren","getShiftedBy","TableUtils","suggestion-td","createRangeOn","subType","markers","root","getSuggestions","keys","cells","markerAttributes","getRanges","view","getRows","nextSibling","length","nodeAfter","createElement","tableCellBorderColor","insert","tablePasteRow","tableCellSuggestion","tablePasteColumn","editingDowncast","wrap","insertContent","getMarkers","deletion","markMultiRangeInsertion","stop","reduce","rowInsertionRanges","tablePasteChainId","removeMarker","find","table","author","formatBlock","_isForcedDefaultExecutionBlock","last","push","suggestionUnloaded","for","removeColumns","options","TrackChangesEditing","suggestion:formatBlock:tablePasteCell","tableCellPadding","setAttribute","getContainedElement","position","startsWith","insertion","content","ck-suggestion-marker","tablePasteCell","newRange","getTableIfOnlyTableInContent","listenTo","has","attributes","createTableWalker","rowInsertionIndexes","removeRows","isInContent","getChanges","isEqual","move","registerPostFixer","createRange","tableCellBorderStyle","elementToElement","fill","_descriptionFactory","getSuggestionCallback","tableCellBackgroundColor","dataDowncast","next","registerCustomCallback","registerDescriptionCallback","suggestion","getChangedMarkers","markMultiRangeBlockFormat","return","insertionRanges","row","forceDefaultExecution","tablePaste","some","get","differ","register","findAncestor","redo","updateMarker","getColumnIndexes","change","tableCellBorderWidth","includes","paragraph","map","markerName","set","conversion","oldRange","isEmpty","plugins","type","rootName","endRow","accept","previous","model","end","high","getRange","value","add","insertColumns","discard","documentSelection","previousSibling","remove","column","suggestionLoaded","filter","hasSuggestion","TableClipboard","clipboardOutput","locale","markerToHighlight","Users","columnInsertionIndexes","document","element","start","getColumns","_splitMarkerName","setAttributes","_replaceTableSlotCell"];var oa,ra;oa=na,ra=298,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=[ia("0x9d"),ia("0x4e"),ia("0x82"),ia("0x2d"),"tableCellVerticalAlignment",ia("0x87"),ia("0x6b")],xa=Object.fromEntries(sa.map((t=>[t,null])));class aa extends t.Plugin{static get requires(){return[zx]}[ia("0x25")](){const t=this[ia("0x37")];if(!t[ia("0x0")][ia("0x77")]("TableClipboard"))return;const n=t[ia("0x0")][ia("0x95")](ia("0x69")),o=t[ia("0x0")][ia("0x95")](ia("0x3d")),r=t[ia("0x0")][ia("0x95")](zx),i=t[ia("0x0")][ia("0x95")](ia("0x15"));r._tablePostFixingSubtypes[ia("0x64")]("tablePasteRow","tablePasteColumn"),t[ia("0x6")].schema[ia("0x97")]("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t[ia("0xa3")][ia("0x83")]({model:ia("0x51"),view:"suggestion-td"});let s=null;t[ia("0x6")].on(ia("0x55"),((r,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ia("0x92")]||n[ia("0x62")]||this.editor[ia("0x28")][ia("0x95")](ia("0x30"))[ia("0xa")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0xe")))return!1;const i=r[ia("0x75")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[ia("0x1b")].selection);if(!s[ia("0x4b")])return!1;const x=s[0].findAncestor("table"),a=o[ia("0x3a")](s),c=o[ia("0x9b")](s),l={startRow:a.first,endRow:a[ia("0x63")],startColumn:c.first,endColumn:c.last};return 1==s[ia("0x4b")]&&(l[ia("0x3")]+=o[ia("0x49")](i)-1,l.endColumn+=o[ia("0x1e")](i)-1),la(x,l,o)}(a,c,t[ia("0x6")],o,i)&&(r[ia("0x59")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x6")][ia("0x9c")]((()=>{t.model[ia("0x55")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;r.length&&n[ia("0x58")](r,ia("0x50"),{tablePasteChainId:o}),i.length&&n[ia("0x58")](i,ia("0x52"),{tablePasteChainId:o}),a[ia("0x4b")]&&n[ia("0x58")](a,ia("0x93"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0x4b")]&&n[ia("0x36")](c,ia("0x93"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x8e")](l[ia("0xa0")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ia("0x73"),{tablePasteChainId:o});if(u){const e=u[ia("0x56")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[ia("0x6")][ia("0x3f")](o),s=e[ia("0x5e")]((t=>t[ia("0x9")]()[ia("0x7e")](i)));s&&n.push([s.name,r])}n[ia("0x4b")]&&u[ia("0x6c")](ia("0x46"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ia("0x8")]+10}),t[ia("0x0")][ia("0x95")]("TableClipboard").on(ia("0x21"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t[ia("0x59")]();const i=n[ia("0x38")],x=o,a=ca(i),c=ca(x);t[ia("0x8f")]=i;let l=null,u=null;if(c||a)if(a&&!c){r.remove(i[ia("0x2e")](0));for(const t of Array.from(x[ia("0x3b")]()))r.insert(t,i,"end");const t=s[ia("0x7a")].includes(n[ia("0x91")]),e=s[ia("0x1a")].includes(n[ia("0x11")]);t||e||(l=r[ia("0x32")](i))}else c&&!a&&(u=r[ia("0x32")](i));else{const t=r[ia("0x4d")](ia("0x51")),e=r[ia("0x4d")]("tableCellSuggestion");r[ia("0x54")](r.createRangeIn(i),e),r.insert(t,i,0);for(const e of Array[ia("0x35")](x[ia("0x3b")]()))r[ia("0x4f")](e,t,ia("0x7"));l=r[ia("0x3f")](t),u=r[ia("0x3f")](e)}const d=Array[ia("0x35")](x.getAttributes())[ia("0x13")]((([t])=>sa[ia("0x9e")](t)));s[ia("0x45")][ia("0x64")]({element:i,attributes:d.length?Object.fromEntries(d):null}),l&&s[ia("0x90")][ia("0x64")](l),u&&s.deletionRanges[ia("0x64")](u)}),{priority:ia("0x8")}),o.on(ia("0xc"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.columns||1;s[ia("0x1a")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges.push(t.model[ia("0x3f")](e))}),{priority:ia("0x2c")}),o.on("insertRows",((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.rows||1;s[ia("0x7a")]=new Array(a)[ia("0x84")](x)[ia("0xa0")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x79")](r,{startRow:x,endRow:x+a-1}))s[ia("0x5b")][ia("0x64")](t.model.createRangeOn(e))}),{priority:ia("0x2c")}),n[ia("0x85")][ia("0x8b")]((e=>{if(e[ia("0x40")]&&e[ia("0x40")][ia("0x6f")]("tablePaste"))return e.previous?{}:{type:ia("0x70"),content:Qo(t[ia("0x17")],ia("0x29"))}}));const x=()=>!1;for(const t of[ia("0x93"),ia("0x52"),ia("0x50"),ia("0x73")])n._suggestionFactory[ia("0x8a")](ia("0x70"),t,ia("0x22"),x),n._suggestionFactory.registerCustomCallback(ia("0x57"),t,ia("0x22"),x),n[ia("0x39")][ia("0x8a")](ia("0x61"),t,ia("0x22"),x);n[ia("0x39")][ia("0x8a")](ia("0x61"),"tablePasteCell",ia("0xd"),x),n._suggestionFactory[ia("0x8a")]("formatBlock","tablePasteCell",ia("0x4"),((e,n,o)=>{const r=e[ia("0xa0")]((t=>t[ia("0x6d")]()))[ia("0x13")]((t=>t)),i=new Map(r.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x45")])e&&i.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o[ia("0x46")])){const o=t[ia("0x6")][ia("0x41")][ia("0x95")](e),r=o?o[ia("0x9")]().getContainedElement():null;r&&i[ia("0xa2")](r,n)}t[ia("0x6")][ia("0x9c")]((t=>{for(const[e,n]of i)t[ia("0x20")]({...xa,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[ia("0x8a")](e,ia("0x93"),o,((r,i,s)=>{t.model[ia("0x9c")]((t=>{const x=[];for(const t of r){const e=t[ia("0x1d")][ia("0x4c")];e.is(ia("0x1c"),ia("0x51"))&&x.push(e)}n[ia("0x39")][ia("0x86")](e,null,o)(r,i,s);for(const e of x)"$graveyard"!=e[ia("0x42")][ia("0x2")]&&t[ia("0x26")](e)}))}))};a(ia("0x70"),ia("0x4")),a(ia("0x70"),ia("0xd")),a(ia("0x57"),ia("0x4")),a("deletion",ia("0xd")),n[ia("0x39")][ia("0x8a")](ia("0x70"),ia("0x50"),ia("0xd"),(t=>{const e=t[ia("0xa0")]((t=>t[ia("0x6d")]())),n=e[0][ia("0x98")](ia("0x5f")),{minRow:i,maxRow:s}=r._getCoordsForCells(e);o[ia("0x7b")](n,{at:i,rows:s-i+1})})),n[ia("0x39")][ia("0x8a")](ia("0x70"),ia("0x52"),ia("0xd"),(t=>{const e=t[ia("0xa0")]((t=>t[ia("0x6d")]())),n=e[0][ia("0x98")](ia("0x5f")),{minColumn:i,maxColumn:s}=r[ia("0x2b")](e);o[ia("0x67")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x40")]||!e[ia("0x40")].startsWith("tablePaste"))return;const o=e.attributes[ia("0x5c")],r=n[ia("0x43")]()[ia("0x13")]((t=>t[ia("0x7c")]&&t[ia("0x78")]&&t.attributes[ia("0x5c")]==o));r.length&&e[ia("0x31")]()[ia("0x4b")]!=r.length&&r[ia("0x5a")](((t,e)=>(t[ia("0x89")]=e,e[ia("0x5")]=t,e)))};function l(t,e=!0){const{id:o}=n[ia("0x1f")](t[ia("0xa1")]),r=[ia("0x72"),"ck-suggestion-marker-insertion"],i=n[ia("0x2a")].includes(t[ia("0xa1")]);return i&&r[ia("0x64")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(ia("0x12"),c,{priority:"high"}),n.on(ia("0x65"),c,{priority:"high"}),t[ia("0x6")][ia("0x1b")][ia("0x80")]((()=>{let e=!1;const o=Array[ia("0x35")](t[ia("0x6")][ia("0x1b")][ia("0x96")].getChangedMarkers());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n[ia("0x1f")](r);if(ia("0x8c")!=o||ia("0x57")!=s||i.oldRange)continue;if(!n[ia("0x14")](x))continue;const a=n[ia("0x23")](x)[ia("0x47")](),c=t[ia("0x0")][ia("0x95")](ia("0x19")).me;for(const t of n.getSuggestions())if(t[ia("0x7c")]&&t[ia("0x60")]==c&&ia("0x61")==t[ia("0x1")]&&ia("0x73")==t[ia("0x40")]&&t.getRanges().every((t=>a[ia("0x94")]((e=>e[ia("0x24")](t,!0))))))for(const n of t[ia("0x31")]())n[ia("0x7c")]&&(n[ia("0xd")](),e=!0)}return e})),t[ia("0x6")][ia("0x1b")][ia("0x80")]((e=>{const o=t.commands[ia("0x95")](ia("0x99"));if(!o||!o._createdBatches[ia("0x77")](e.batch))return!1;let r=!1;const i=t.plugins[ia("0x95")]("Users").me,s=t[ia("0x6")][ia("0x1b")][ia("0x96")][ia("0x7d")](),x=Array[ia("0x35")](t[ia("0x6")].document[ia("0x96")][ia("0x8d")]())[ia("0x13")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x1f")](t);return ia("0x8c")==o&&ia("0x93")==r&&s==i.id&&!e[ia("0xa4")]}));for(const t of s){if(ia("0x4f")!=t[ia("0x1")]||ia("0x51")!=t[ia("0x27")]||1!=t[ia("0x4b")])continue;const n=e[ia("0x81")](t[ia("0x6e")],t[ia("0x6e")][ia("0x3c")](1));if(!x.find((({data:t})=>t[ia("0x74")][ia("0x7e")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[ia("0x74")])){e[ia("0x9a")](t,{range:n}),r=!0;break}}return r})),t[ia("0x6")][ia("0x1b")][ia("0x80")]((e=>{let o=!1;const r=t[ia("0x0")].get(ia("0x19")).me,i=n[ia("0x43")]()[ia("0x13")]((t=>t[ia("0x7c")]&&t.author==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x93")==t[ia("0x40")])for(const e of t[ia("0x56")]()){const n=e[ia("0x9")]()[ia("0x6d")]();if(n)if(n.is(ia("0x1c"),ia("0x51"))&&ca(n)){t[ia("0x5d")](e[ia("0x27")]),s[ia("0xb")](n),o=!0;const r=n[ia("0x4a")],i=n[ia("0xf")],a=r&&r.is(ia("0x1c"),ia("0x51")),c=i&&i.is(ia("0x1c"),ia("0x51"));a&&!s[ia("0x77")](r)&&x[ia("0xb")](r),c&&!s[ia("0x77")](i)&&x.add(i)}else n.is("element",ia("0x9f"))&&n[ia("0xa5")]&&(t.removeMarker(e.name),o=!0)}else if("tablePasteCell"==t[ia("0x40")]){if(!t[ia("0x78")]||!t[ia("0x78")][ia("0x5c")])continue;const e=t[ia("0x78")][ia("0x46")];if(e&&Object[ia("0x44")](e)[ia("0x4b")])continue;const n=t[ia("0x78")][ia("0x5c")];let r=!0,s=!0;for(const e of i)if(e.subType&&e.subType.startsWith("tablePaste")){if(!e[ia("0x78")][ia("0x5c")]){s=!1;break}if(e.id!=t.id&&e[ia("0x78")].tablePasteChainId==n){r=!1;break}}s&&r&&(t.removeMarkers(),o=!0)}for(const t of s)e.remove(t);for(const t of x)e[ia("0x26")](t);return o})),t[ia("0xa3")][ia("0x66")](ia("0x53"))[ia("0x18")]({model:ia("0x6a"),view:(t,e)=>l(t),converterPriority:ia("0x8")}),t.conversion[ia("0x66")](ia("0x88"))[ia("0x18")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ia("0x68")][ia("0x33")]?l(t,!1):null,converterPriority:ia("0x8")});const u=t.editing[ia("0x48")];this[ia("0x76")](u[ia("0x1b")],ia("0x16"),((t,e)=>{const n=[];for(const t of u[ia("0x32")](e[ia("0x71")])[ia("0x2f")]())t.is("element",ia("0x3e"))&&n.push(t);u[ia("0x9c")]((t=>{for(const e of n)t[ia("0x7f")](t.createRangeIn(e),t[ia("0x34")](e)),t[ia("0x10")](e)}))}))}}function ca(t){if(t[ia("0xa5")])return!0;const e=t[ia("0x2e")](0);return e.is("element",ia("0x9f"))&&e.isEmpty}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x79")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["type","handleResizeTableWidthCommand","formatInline","tableWidth","columnWidths","plugins","formatBlock","TrackChangesEditing","getContainedElement","getSelectedElement","document","editor","get","table","accept","formatGroupId","locale","bind","registerCustomCallback","resizeTable","enableCommand","getSuggestions","handleSuggestionDescription","getSuggestionCallback","afterInit","Users","subType","TableColumnResizeEditing","model","discard","_descriptionFactory","author","has","commandParams","data","selection","getAttribute","_suggestionFactory","markBlockFormat"];var da,ga;da=ua,ga=457,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x23")](){if(!this[fa("0x16")].plugins[fa("0x4")]("TableColumnResizeEditing"))return;const t=this[fa("0x16")][fa("0x10")][fa("0x17")](fa("0x12"));t[fa("0x1f")]("resizeTableWidth",this[fa("0xc")][fa("0x1c")](this)),t[fa("0x9")][fa("0x1d")]("formatBlock",fa("0x1e"),fa("0x19"),t._suggestionFactory.getSuggestionCallback(fa("0x11"),null,fa("0x1"))),t[fa("0x9")][fa("0x1d")](fa("0x11"),"resizeTable",fa("0x1"),t[fa("0x9")][fa("0x22")](fa("0x11"),null,fa("0x19"))),t[fa("0x2")].registerDescriptionCallback(this.handleSuggestionDescription[fa("0x1c")](this))}[fa("0xc")](t,e){const n=this.editor[fa("0x10")].get(fa("0x12")),o=this[fa("0x16")][fa("0x10")][fa("0x17")](fa("0x26")),r=e[fa("0x18")]||this[fa("0x16")][fa("0x0")][fa("0x15")][fa("0x7")][fa("0x14")]();this[fa("0x16")].model.change((()=>{const i=o.getColumnGroupElement(r);let s=i?o.getTableColumnsWidths(i):null,x=r[fa("0x8")](fa("0xe"))||null;const a=e.tableWidth||x,c=e[fa("0xf")]||s,l=this[fa("0x16")][fa("0x10")][fa("0x17")](fa("0x24")).me;for(const t of n[fa("0x20")]()){const e=t[fa("0x13")]();if(fa("0x1e")===t[fa("0x25")]&&e===r){t[fa("0x3")]!==l&&t.discard();const e=t[fa("0x6")][fa("0x5")];x=e[0][fa("0xe")],s=e[0][fa("0xf")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0xa")](r,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1e")},[],fa("0x1e"))}))}[fa("0x21")](t){if(fa("0x11")!=t[fa("0xb")]&&fa("0xd")!=t[fa("0xb")])return;const{data:e}=t;if(e&&fa("0x1e")===e[fa("0x1a")]){const t="*Format:* resize table";return{type:"format",content:Qo(this[fa("0x16")][fa("0x1b")],t)}}}}const ha=["TrackChangesEditing","plugins","afterInit","insertTemplate","Template","enableCommand","get"];var ba,pa;ba=ha,pa=201,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x4")](){const t=this.editor;t.plugins.has(Ea("0x6"))&&t[Ea("0x3")][Ea("0x1")](Ea("0x2"))[Ea("0x0")](Ea("0x5"))}}const Ta=["insertTableOfContents","enableCommand","get","TrackChangesEditing","afterInit","ELEMENT_TABLE_OF_CONTENTS","locale","editor","_descriptionFactory"];var ya,Ca;ya=Ta,Ca=445,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x0")](){const t=this[Aa("0x3")];if(!t.commands.get(Aa("0x5")))return;t.plugins[Aa("0x7")]("TrackChangesEditing")[Aa("0x6")](Aa("0x5"));const e=t.plugins[Aa("0x7")](Aa("0x8")),n=t[Aa("0x2")];e[Aa("0x4")].registerElementLabel("tableOfContents",(t=>Qo(n,Aa("0x1"),t)))}}const Sa=["newRange","locale","has","Title","from","start","editor","createRange","isEqual","schema","registerPostFixer","document","suggestion","model","updateMarker","title-content","end","differ","getNearestSelectionRange","removeMarker","registerElementLabel","afterInit","_splitMarkerName","isTouching","plugins","ELEMENT_TITLE"];var Ra,Ia;Ra=Sa,Ia=146,function(t){for(;--t;)Ra.push(Ra.shift())}(++Ia);const va=function(t,e){return Sa[t-=0]};class Na extends t.Plugin{[va("0x5")](){const t=this[va("0x10")];if(!t[va("0x8")][va("0xc")](va("0xd")))return;const e=t[va("0x8")].get("TrackChangesEditing");e._descriptionFactory[va("0x4")](va("0x19"),(()=>Qo(t[va("0xb")],va("0x9")))),t[va("0x17")][va("0x15")][va("0x14")]((n=>{let o=!1;const r=Array[va("0xe")](t[va("0x17")][va("0x15")][va("0x1")].getChangedMarkers());for(const{name:i,data:s}of r){const{group:r}=e[va("0x6")](i);if(va("0x16")!==r||!s[va("0xa")])continue;const x=s[va("0xa")],a=x[va("0x0")].nodeBefore;if(!a||!a.is("element","title-content"))continue;if(!x[va("0xf")][va("0x7")](x[va("0x0")]))continue;const c=t[va("0x17")][va("0x13")][va("0x2")](x.end,"forward");if(c&&c.isCollapsed){const t=n[va("0x11")](x[va("0xf")],c[va("0xf")]);t[va("0x12")](x)||(n[va("0x18")](i,{range:t}),o=!0)}o||(n[va("0x3")](i),o=!0)}return o}))}}const La=["undo","afterInit","plugins","editor","UndoEditing","redo","TrackChangesEditing","enableCommand"];var Ma,wa;Ma=La,wa=495,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x2")](){const t=this[Oa("0x4")],e=t[Oa("0x3")].get(Oa("0x7"));t[Oa("0x3")].has(Oa("0x5"))&&(e[Oa("0x0")](Oa("0x1")),e[Oa("0x0")](Oa("0x6")))}}const Da=["afterInit","toggleTableCaption","editor","enableCommand","has","plugins","requires","get","TableCaptionEditing"];var Pa,Ba;Pa=Da,Ba=226,function(t){for(;--t;)Pa.push(Pa.shift())}(++Ba);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x5")](){return[zx]}[Ua("0x8")](){const t=this[Ua("0x1")];t[Ua("0x4")][Ua("0x3")](Ua("0x7"))&&t.plugins[Ua("0x6")]("TrackChangesEditing")[Ua("0x2")](Ua("0x0"))}}const Ga=["afterInit","getAttribute","document","join","nodeAfter","handleSuggestionDescription","tableCellProperties","handleDiscardAction","_handlePropertyChange","data","getSuggestionCallback","getSelectionAffectedTableCells","getContainedElement","_descriptionFactory","TrackChangesEditing","has","_suggestionFactory","registerDescriptionCallback","TableCellPropertiesEditing","registerCustomCallback","*Format:* change table properties","table","tableCellHeight","_getSuggestion","tableBorderStyle","accept","findAncestor","tableAlignment","TableUtils","locale","editor","subType","plugins","TrackChangesTableProperties","commandParams","start","tableProperties","tableCellBorderStyle","tableBorderColor","selection","tableCellPadding","tableCellBorderWidth","getFirstPosition","tableCellBackgroundColor","format","discard","pluginName","tableBorderWidth","removeAttribute","batch","model","get","enableCommand","formatBlock"];var Ha,Va;Ha=Ga,Va=329,function(t){for(;--t;)Ha.push(Ha.shift())}(++Va);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x1f")]=[za("0x21"),za("0x13"),za("0x2a"),za("0x16"),"tableWidth","tableHeight","tableBackgroundColor"],this.tableCellProperties=["tableCellBorderColor",za("0x20"),za("0x24"),za("0x23"),"tableCellWidth",za("0x11"),za("0x26"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[za("0x29")](){return za("0x1c")}[za("0x31")](){const t=this[za("0x19")][za("0x1b")][za("0x2e")](za("0x9"));if(this.editor.plugins[za("0xa")]("TablePropertiesEditing")){for(const e of this[za("0x1f")])t.enableCommand(e,((t,n)=>{const o=this[za("0x19")].model[za("0x33")][za("0x22")][za("0x25")]()[za("0x15")](za("0x10"));this[za("0x3")](e,[o],this[za("0x1f")],za("0x1f"),t,n)}));t[za("0xb")][za("0xe")](za("0x30"),za("0x1f"),"accept",t[za("0xb")][za("0x5")](za("0x30"),null,za("0x28"))),t[za("0xb")][za("0xe")]("formatBlock",za("0x1f"),za("0x28"),((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t[za("0xb")][za("0xe")](za("0x30"),za("0x1f"),za("0x34"),(()=>!1))}if(this.editor[za("0x1b")].has(za("0xd"))){for(const e of this[za("0x1")])t[za("0x2f")](e,((t,n)=>{const o=this[za("0x19")][za("0x1b")][za("0x2e")](za("0x17"))[za("0x6")](this[za("0x19")][za("0x2d")][za("0x33")].selection);this[za("0x3")](e,o,this.tableCellProperties,za("0x1"),t,n)}));t._suggestionFactory[za("0xe")]("formatBlock",za("0x1"),za("0x14"),t[za("0xb")].getSuggestionCallback("formatBlock",null,"discard")),t._suggestionFactory[za("0xe")]("formatBlock",za("0x1"),za("0x28"),((t,e)=>this[za("0x2")](this.tableCellProperties,t,e))),t[za("0xb")].registerCustomCallback(za("0x30"),"tableCellProperties",za("0x34"),(()=>!1))}t[za("0x8")][za("0xc")]((t=>this[za("0x0")](t)))}[za("0x3")](t,e,n,o,r,i){const s=this.editor[za("0x1b")][za("0x2e")](za("0x9"));this[za("0x19")][za("0x2d")].enqueueChange(i[za("0x2c")],(()=>{for(const t of e)if(this[za("0x12")](t,o))r(i);else{const e={};for(const o of n){const n=t[za("0x32")](o);void 0!==n&&(e[o]=n)}r(i),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[za("0x2")](t,e,n){const o=e[0][za("0x1e")][za("0x35")],r=n[za("0x1d")][0];this.editor[za("0x2d")].change((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],o):e[za("0x2b")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x4")])switch(t[za("0x1a")]){case za("0x1f"):return{type:za("0x27"),content:Qo(this[za("0x19")].locale,za("0xf"))};case za("0x1"):return{type:za("0x27"),content:Qo(this[za("0x19")][za("0x18")],"*Format:* change table cell properties")}}}[za("0x12")](t,e){const n=this[za("0x19")][za("0x1b")][za("0x2e")](za("0x9"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[za("0x7")]();if(o[za("0x1a")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,r,i):sn(i,a):r||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var rc=Math.max;const ic=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=rc(o.length-e,0),s=Array(i);++r<i;)s[r]=o[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=o[r];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=bo(e,t),o||(o=e.length>1),e})),ie(t,dn(t),n),o&&(n=to(n,7,Ja));for(var r=e.length;r--;)Ko(n,e[r]);return n})),uc=["_SUGGESTION_ANNOUNCEMENT","isLimit","markerName","backward","skipNestingCheck","isAtStart","isBefore","ck-suggestion-marker-formatBlock","addCommentThread","rootName","getIntersection","error-saving-suggestion-data-suggestion-discarded","consumable","isExternal","add","buildSuggestion","ck-suggestion-marker-","head","trackChanges.trackFormatChanges","getLastMatchingPosition","markerNameToElements","setTo","_model","isBlock","isTouching","_getMarkerAnnouncementText","applyOperation","never","_mergeNestedSuggestions","isArray","isLocal","highest","_initAriaMarkerChangeAnnouncements","formatInline:discard","deletion:","enqueueChange","getOperations","nodeAfter","createPositionAfter","adapter","_breakSuggestionMarker","isObject","@external","getContainedElement","differ","model","formatBlock","FORMATTING","deletion:accept","PENDING_ACTION_SUGGESTION","set","announce","discardAllSuggestions","root","_checkSuggestionCorrectness","markInlineFormat","isUndo","getWalker","notReady","subType","_enabledCommands","deletion:chain","isAtEnd","commentThread","insertion:discard","track-changes-user-not-found","define","addMarkerName","formatInline:accept","resolve","markMultiRangeBlockFormat","_suggestions","removed","rejected","version","newRange","_rangeIsInLocalUserInsertion","config","isInContent","_isDataLoaded","getChangedMarkers","markBlockFormat","containsPosition","groupId","catch","deletion","editing","formatBlock:discard","find","get","setSelection","track-changes-adapter-missing-getsuggestion","start","_findSuggestions","_joinWithAdjacentSuggestions","markMultiRangeDeletion","fromRange","addMarker:suggestion:formatBlock","_blockAttributeKeys","attribute:accept","type","getFirstRange","hasCommentThread","removeMarker","_removeSuggestion","removeMarkers","rethrowUnexpectedError","isAfter","multipleBlocks","conversion","discardSelectedSuggestions","comments","map","authoredAt","getSuggestion","TrackChangesEditing","remove","addAttribute","isOwn","markerToHighlight","formatInline:","addRange","oldValue","elementToElement","_adapter","trackChanges.mergeNestedSuggestions","_reduceExistingSuggestions","attributeOldValue","createPositionBefore","then","element","elementEnd","getAttribute","_customCallbacks","setAttribute","attributes","getSuggestionCallback","authorName","markDeletion","isCollapsed","ck-suggestion-marker","values","rename","_defaultCallbacks","ENTER","hasComments","end","collaboration.channelId","for","toViewElement","deletion:discard","every","getDifference","activeMarkers","isIntersectingWithRange","$elementName","fire","insertion:chain","normal","_registerBlockAttribute","track-changes-adapter-already-set","widget","_trackFormatChanges","dataReady","execute","_editor","newName","key","_commentsRepository","addHighlight","concat","mapper","getCustomProperty","options","removeMarker:suggestion:formatBlock","containsRangeInObject","registerCustomCallback","changeAttribute","formatInline","moveTargetPosition","isNextTo","getAllAdjacentSuggestions","move","suggestion:","formatInline:join","_setSuggestionData","registerPostFixer","insert","editor","_setSuggestionRange","_recordAttributeSuggestionsFromVersion","accepted","addSuggestion","open","fromCharCode","insertion:accept","after","change:_saved","substring","formatBlock:join","$text","addMarker","range","$marker","position","addUser","fetchCommentThread","markAttributeChange","_inlineAttributeKeys","data","tablePasteChainId","return","value","containsRange","locale","author","getNearestSelectionRange","document","trackChanges","item","addComment","listenTo","formatBlock:","_reduceSuggestionAttributeRange","_processAttributeSuggestions","isIntersecting","editingDowncast","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.","getFirstMarker","addSuggestionData","createRange","removeAttribute","isEqual","attribute","_suggestionState","refresh","getShiftedBy","getSuggestions","pop","selection","delete","splitPosition","_splitMarkerName","change:activeMarkers","attributeNewValue","getRanges","unbind","isSelectable","getAncestors","isMultiRange","_joinSuggestions","_suggestionFactory","toJSON","attribute:","markerToData","createdAt","accept","isRemovable","createPositionAt","formatBlock:accept","chain","format","_getSuggestionData","acceptAllSuggestions","suggestionLoaded","next","detach","getCommentThread","upcast","forceDefaultExecution","change","_updateSuggestionData","$textProxy","filter","getMarkers","createSelection","default","multi","acceptSuggestion","data-suggestion","reconvertMarker","originalSuggestionId","_addSuggestionMarker","sort","parent","targetPosition","_onDiscard","toUpperCase","marker-count","substr","clone","dataToMarker","_cutOutSuggestionMarker","writer","_getAuthorFromId","updateSuggestion","dataDowncast","join","update:suggestion","discard","consume","removeComment","creator","commandName","splice","_isForcedDefaultExecutionBlock","suggestionUnloaded","_createSuggestion","trackChangesCommand","some","deleteContent","_handleNewSuggestionMarker","newValue","_isBlockAttribute","split","formatBlock:chain","batch","PendingActions","_refreshAttributeSuggestionsChain","length","push","_refreshSuggestionsChain","bindElementToMarker","discardSuggestion","pluginName","name","ready","createElement","assign","forEach","insertion:join","size","insertContent","commands","high","oldRange","previous","addMarker:suggestion","suggestion","track-changes-suggestion-data-mismatch","from","formatGroupId","suggestionChanged","ck-suggestion-marker--active","hasSuggestion","has","Users","getRange","updateMarker","always","$graveyard","addClass","containsItem","_saved","_addThreadToSuggestion","keys","schema","formatInline:chain","acceptSelectedSuggestions","includes","containerElement","_registerInlineAttribute","showSuggestionHighlights","ariaLiveAnnouncer","_processAttributeChanges","_registerDefaultCallbacks","suggestion:attribute:","markInsertion","getMultiRangeId","markers","getChanges","nodeBefore","suggestion-type","enableCommand","clear","isInsideObject","low","external:","unshift","insertion:","plugins","stop","_recordAttributeChanges","markerReady","CommentsRepository","insertion","oldName"];var dc,gc;dc=uc,gc=161,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x17d");class hc extends t.Plugin{static get requires(){return["CommentsRepository",i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Hr,ti,ii,li,hi,Ti,Ri,Mi,Bi,Vi,Xi,Qi,rs,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,px,Cx,Ix,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0xa3")](){return fc("0x155")}constructor(t){function e(t){return t.map((t=>String[fc("0x21")](t)))[fc("0x88")]("")}super(t),this[fc("0x1d")]=null,this.set(fc("0x17b"),[]),this.on(fc("0x52"),((e,n,o,r)=>{this[fc("0xf8")][fc("0x6d")]((()=>{for(const e of[...r,...o])this[fc("0xf8")][fc("0xd0")][fc("0xb8")](e)&&t[fc("0x138")][fc("0x77")](e)}))})),this._descriptionFactory=new rr(this[fc("0x1b")][fc("0x10f")][fc("0xc3")],this.editor.locale),this._adapter=null,this[fc("0x5a")]=new bc(this[fc("0x1b")]),this[fc("0x129")]=new Map,this._commentsRepository=t[fc("0xdb")][fc("0x13b")](fc("0xdf")),this[fc("0x11e")]=new Set,this[fc("0xf8")]=this[fc("0x1b")][fc("0x10f")],this[fc("0x49")]=new WeakMap,this[fc("0x90")]=!1,this[fc("0x144")]=new Set(["$elementName"]),this[fc("0x2f")]=new Set,t[fc("0x12f")][fc("0x124")](fc("0xf4"),fc("0x73")),this._trackFormatChanges=t.config.get(fc("0xf4")),t[fc("0x12f")][fc("0x124")](fc("0x15f"),!0),this[fc("0xfe")]=t[fc("0x12f")].get(fc("0x15f")),this[fc("0x93")]=new d(t,this._enabledCommands),this[fc("0x102")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,52,48,56])}init(){const t=this[fc("0x1b")],n=(t,e)=>{if(fc("0x48")!=t)return fc("0xf2")+t;const n=e[fc("0x99")]("|")[0];return this[fc("0x98")](n)?fc("0xe9"):"ck-suggestion-marker-formatInline"};t.conversion.for(fc("0x41"))[fc("0x159")]({model:fc("0xb1"),view:t=>{const{id:e,type:o,subType:r}=this[fc("0x51")](t[fc("0xe4")]),i=[fc("0x16e"),n(o,r)];let s=3e3;return this.activeMarkers[fc("0xc6")](t[fc("0xe4")])&&(i[fc("0x9f")](fc("0xb6")),s=3010),"deletion"==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x14f")][fc("0x176")](fc("0x87"))[fc("0xf0")]((e=>{e.on(fc("0xb0"),((e,n,o)=>{if(!o[fc("0xc")].showSuggestionHighlights)return;const r=n[fc("0x3a")];if(!r)return;const i=o.mapper[fc("0x177")](r);t[fc("0x10f")][fc("0xc3")][fc("0x10b")](r)&&i&&!i[fc("0xb")](fc("0x0"))&&i.is(fc("0xc7"))&&(0,x.toWidget)(i,o[fc("0x84")])}),{priority:"high"})})),t[fc("0x14f")][fc("0x176")](fc("0x87"))[fc("0x159")]({model:fc("0xb1"),view:(t,e)=>{if(!e[fc("0xc")][fc("0xc9")])return null;const{type:o,subType:r}=this._splitMarkerName(t[fc("0xe4")]);return{classes:[fc("0x16e"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r.item)return;const{id:s}=this[fc("0x51")](r[fc("0xe4")]);if(n){const t=Ic(this._suggestions[fc("0x13b")](s));if(!this[fc("0x98")](t))return}if(r.item.is("selection"))return void i.consumable.consume(r.item,o[fc("0xa4")]);const x=i[fc("0xa")].toViewElement(r[fc("0x3a")]);if(r.item.is(fc("0x164"))&&t[fc("0x10f")][fc("0xc3")][fc("0xf9")](r[fc("0x3a")])&&!x.getCustomProperty(fc("0x8"))){i[fc("0x84")][fc("0xbe")]([fc("0x16e"),fc("0xe9")],x),i[fc("0x84")][fc("0x168")]("data-suggestion",s,x),i.mapper[fc("0xa1")](x,r[fc("0xe4")]),e&&(this[fc("0x17b")][fc("0xc6")](r[fc("0xe4")])?i[fc("0x84")].addClass("ck-suggestion-marker--active",x):i[fc("0x84")].removeClass(fc("0xb6"),x));for(const e of t[fc("0x10f")].createRangeIn(r[fc("0x3a")]).getItems())i.consumable[fc("0x8b")](e,o[fc("0xa4")]);i[fc("0xee")][fc("0x8b")](r[fc("0x3a")],o[fc("0xa4")])}};t.conversion[fc("0x176")](fc("0x87"))[fc("0xf0")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n.options.showSuggestionHighlights&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x101")})})),t.conversion[fc("0x176")]("dataDowncast")[fc("0xf0")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[fc("0xc")][fc("0xc9")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[fc("0x14f")][fc("0x176")](fc("0x87"))[fc("0x5d")]({model:fc("0xb1"),view:(t,e)=>e[fc("0xc")][fc("0xc9")]?null:{group:fc("0xb1"),name:t[fc("0x80")](11)}}),t[fc("0x14f")].for(fc("0x6b"))[fc("0x15d")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x16")+t[fc("0x166")](fc("0xd3"))+":"+t[fc("0x166")]("id");return t.getAttribute("marker-count")&&(n+=":"+t[fc("0x166")](fc("0x7f"))),e[fc("0xa6")](fc("0x2a"),{"data-name":n})}}),t[fc("0x14f")][fc("0x176")](fc("0x6b"))[fc("0x82")]({view:fc("0xb1")}),t.conversion.for(fc("0x41"))[fc("0xf0")]((t=>{t.on(fc("0x143"),o(),{priority:fc("0xad")})})),t[fc("0x14f")].for("editingDowncast")[fc("0xf0")]((t=>{t.on("addMarker:suggestion:attribute",o({isAttributeSuggestion:!0}),{priority:fc("0xad")})})),t[fc("0x14f")][fc("0x176")]("editingDowncast")[fc("0xf0")]((t=>{t.on(fc("0xd"),((t,e,n)=>{const o=n[fc("0xa")][fc("0xf6")](e[fc("0xe4")]);if(o)for(const t of o)t[fc("0xb")](fc("0x8"))||(n.writer.removeClass([fc("0x16e"),fc("0xe9"),fc("0xb6")],t),n[fc("0x84")][fc("0x46")]("data-suggestion",t),n.mapper.unbindElementFromMarkerName(t,e.markerName))}),{priority:fc("0xad")})})),t[fc("0x14f")].for(fc("0x41"))[fc("0xf0")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const o=n.mapper[fc("0xf6")](e[fc("0xe4")]);if(!o)return;const{id:r}=this[fc("0x51")](e[fc("0xe4")]),i=Ic(this._suggestions[fc("0x13b")](r));if(this[fc("0x98")](i))for(const t of o)t.getCustomProperty("addHighlight")||(n[fc("0x84")].removeClass(["ck-suggestion-marker",fc("0xe9"),fc("0xb6")],t),n[fc("0x84")][fc("0x46")](fc("0x76"),t),n[fc("0xa")].unbindElementFromMarkerName(t,e.markerName))}),{priority:"high"})})),t[fc("0x10f")][fc("0x38")].registerPostFixer((e=>{let n=!1;const o=Array.from(t[fc("0x10f")].document[fc("0x10e")][fc("0x132")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this._splitMarkerName(x);if("suggestion"!==o)continue;const d=this[fc("0x129")].get(u);if(null!=a[fc("0x12d")]){fc("0x11")==c&&(n=n||_c(a[fc("0x12d")],x,e,t[fc("0x10f")].schema));const o=fc("0x48")==c&&this[fc("0x98")](l[fc("0x99")]("|")[0]);if(a[fc("0x12d")].isCollapsed||fc("0xbd")==a[fc("0x12d")].root[fc("0xeb")]||fc("0x110")==c&&!yc(a[fc("0x12d")])||o&&!yc(a[fc("0x12d")])||"deletion"==c&&(Ec(s=a[fc("0x12d")])||(i=s)[fc("0x13e")].parent==i.end.nodeBefore&&i[fc("0x13e")].isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d[fc("0x130")])continue;r[fc("0xf0")](d)}}}var i,s;return r.size>0&&(n=!!this[fc("0x140")](r)||n),n})),t[fc("0x10f")][fc("0x38")][fc("0x19")]((e=>{let n=!1;for(const o of t.model[fc("0x38")][fc("0x10e")][fc("0xd1")]())if("insert"==o[fc("0x146")])for(const o of this[fc("0x129")][fc("0x16f")]()){if(o.isMultiRange||!o[fc("0x130")])continue;const r=fc("0x110")==o[fc("0x146")],i=Ic(o),s=i&&this[fc("0x98")](i);if(!r&&!s)continue;const x=o[fc("0x147")]();if(x[fc("0x13e")][fc("0x7b")]!=x.end.parent&&!x[fc("0x174")][fc("0x120")]){const r=t[fc("0x10f")][fc("0x61")](x[fc("0x13e")][fc("0x107")],fc("0x174")),i=t[fc("0x10f")].createRange(x[fc("0x13e")],r);e[fc("0xbb")](o[fc("0x43")](),{range:i}),n=!0}}return n})),t.model[fc("0x38")][fc("0x19")]((t=>this[fc("0xcb")](t))),t[fc("0x10f")][fc("0x38")][fc("0x19")]((t=>!t[fc("0x9b")][fc("0x100")]&&this[fc("0x3f")](t))),t.model[fc("0xd0")].on(fc("0x89"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e.name),n=this[fc("0x129")].get(t);n&&n[fc("0x125")](e[fc("0xa4")])}})),t[fc("0x10f")][fc("0x38")].on("change:data",(()=>{const e=Array[fc("0xb3")](t.model.document.differ.getChangedMarkers()).filter((t=>fc("0xb1")===this[fc("0x51")](t[fc("0xa4")]).group));if(0===e.length)return;e[fc("0x7a")](((t,e)=>{const n=t.data[fc("0xae")],o=e[fc("0x30")][fc("0xae")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x13e")][fc("0xe8")](o[fc("0x13e")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0x51")](t);if(null===r[fc("0xae")]){const e=this[fc("0x96")](t);o[fc("0xf0")](e)}else{const t=this[fc("0x129")][fc("0x13b")](e);null!==r[fc("0x12d")]||t.isInContent?(n[fc("0xf0")](t[fc("0xf3")]),o[fc("0xf0")](t)):this[fc("0x14a")](t)}}o.size>0&&this[fc("0xa0")](o);for(const t of n)this[fc("0x17e")](fc("0xb5"),t)})),t[fc("0x10f")].on(fc("0xfc"),((e,n)=>{const o=n[0];if(!this[fc("0x129")][fc("0xaa")])return;if(!o.isDocumentOperation)return;if(o.batch[fc("0x11a")]||!o[fc("0x9b")][fc("0x100")])return;let r,i;switch(o[fc("0x146")]){case fc("0x1a"):r=t[fc("0x10f")][fc("0x61")](o[fc("0x2b")]),i=r.getShiftedBy(o.howMany);break;case fc("0x99"):r=t[fc("0x10f")].createPositionAt(o[fc("0x50")]),i=t[fc("0x10f")][fc("0x61")](o[fc("0x12")]);break;case fc("0x15"):r=t.model[fc("0x61")](o[fc("0x7c")]),i=r[fc("0x4b")](o.howMany);break;default:return}const s=t[fc("0x10f")][fc("0x45")](r,i);t[fc("0x10f")].change((()=>{for(const{suggestion:t,meta:e}of this[fc("0x13f")](s)){if(t[fc("0x58")])continue;if(fc("0x11")==t[fc("0x146")])continue;const n=Ic(t);if(n&&this[fc("0x98")](n)&&fc("0x99")!=o[fc("0x146")])continue;const x=t[fc("0x30")]&&t[fc("0x30")][fc("0x14e")];(fc("0x110")!=t[fc("0x146")]||fc("0x99")==o[fc("0x146")]&&!x)&&(e[fc("0xe")]||fc("0xe0")==t[fc("0x146")]&&e.isOwn||t[fc("0x147")]()[fc("0x34")](s)&&this[fc("0x10a")](t,r,i))}}))}),{priority:"lowest"}),t[fc("0x10f")].on(fc("0x95"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[fc("0x6c")])return;if(this[fc("0x90")])return;if(!this[fc("0x93")][fc("0x33")])return;if(o[fc("0x16d")])return;const i=t.model[fc("0xc3")],{start:s,end:x}=o[fc("0x147")](),a=s[fc("0x107")]&&i[fc("0xe3")](s[fc("0x107")])?null:i[fc("0x37")](s,"forward"),c=x[fc("0xd2")]&&i[fc("0xe3")](x[fc("0xd2")])?null:i[fc("0x37")](x,fc("0xe5")),l=t[fc("0x10f")][fc("0x45")](a?a[fc("0x13e")]:s,c?c[fc("0x174")]:x);t[fc("0x10f")].change((e=>{this[fc("0x16c")](l);const n=t.model.schema[fc("0x37")](l[fc("0x13e")]);o.is("documentSelection")?e[fc("0x13c")](n):o[fc("0xf7")](n)})),e[fc("0xdc")]()}),{priority:e.priorities[fc("0x180")]+10}),t[fc("0x10f")].on(fc("0xab"),((e,n)=>{const o=n[n.length-1];o&&o[fc("0x6c")]||this[fc("0x90")]||this[fc("0x93")].value&&(t.model.change((()=>{let o=t[fc("0x10f")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0x32")]=o[fc("0x81")]();const r=o[fc("0x174")][fc("0xd2")],i=t.model[fc("0xc3")];r&&i[fc("0xf9")](r)&&!i[fc("0x10b")](r)&&(o=t[fc("0x10f")][fc("0x45")](o[fc("0x13e")],t[fc("0x10f")][fc("0x61")](r,fc("0x174")))),this[fc("0xce")](o)})),e.stop())}),{priority:fc("0xad")}),this[fc("0x1b")].commands.add(fc("0x39"),this.trackChangesCommand),this[fc("0xd4")](fc("0x39"));const r=new b(t,this[fc("0x129")]);t[fc("0xac")].add("acceptSuggestion",r),this[fc("0xd4")](fc("0x75"));const i=new y(t,this[fc("0x129")]);t[fc("0xac")][fc("0xf0")](fc("0xa2"),i),this[fc("0xd4")]("discardSuggestion"),t[fc("0xac")][fc("0xf0")](fc("0x66"),new F(t,r,this[fc("0x129")])),this[fc("0xd4")](fc("0x66")),t.commands[fc("0xf0")](fc("0x116"),new F(t,i,this[fc("0x129")])),this[fc("0xd4")](fc("0x116")),t.commands[fc("0xf0")](fc("0xc5"),new j(t,r,this[fc("0x129")])),this[fc("0xd4")]("acceptSelectedSuggestions"),t.commands[fc("0xf0")](fc("0x150"),new j(t,i,this[fc("0x129")])),this[fc("0xd4")](fc("0x150"));const s=t[fc("0xdb")][fc("0x13b")]("CommentsRepository");this[fc("0x3c")](s,fc("0x3b"),((t,{threadId:e})=>{const n=this[fc("0x129")].get(e);n&&n.commentThread&&1===n[fc("0x121")][fc("0x9e")]&&this[fc("0x6e")](e,{hasComments:!0})}),{priority:fc("0xd7")}),this[fc("0x3c")](s,fc("0x8c"),((t,{threadId:e})=>{const n=this[fc("0x129")].get(e);n&&n[fc("0x121")]&&!n.commentThread.length&&this[fc("0x6e")](e,{hasComments:!1})}),{priority:fc("0xd7")})}set[fc("0x109")](t){if(this[fc("0x15e")])throw new e.CKEditorError(fc("0x182"),this);this[fc("0x15e")]=t}get[fc("0x109")](){return this[fc("0x15e")]}[fc("0x4c")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e[fc("0x130")]||n[fc("0x9f")](e);return e?n[fc("0x152")]((t=>t[fc("0x5b")]())):n}getSuggestion(t){const n=this._suggestions[fc("0x13b")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[fc("0xb7")](t){return this[fc("0x129")][fc("0xb8")](t)}[fc("0x44")](t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[fc("0x146")][fc("0x99")](":"),s=this[fc("0x129")][fc("0x13b")](n)||this[fc("0x92")](r,i,n,e,o);if(this[fc("0xc1")](s),this._checkSuggestionCorrectness(s,r,i||null,e),s[fc("0x5e")]=t.createdAt,s[fc("0x131")]=!0,o&&o[fc("0x10c")]){const t=o["@external"],e=this._getExternalAuthor(t[fc("0x16b")]);s[fc("0x153")]=t[fc("0x5e")],s[fc("0x36")]=e,s[fc("0xef")]=!0}else s[fc("0x153")]=t[fc("0x5e")];switch(t.data&&(s[fc("0x30")]=t.data),t[fc("0x169")]&&(s[fc("0x169")]=t[fc("0x169")]),this._adapter&&this[fc("0x15e")][fc("0x1f")]||(s[fc("0xc0")]=!0),this[fc("0x49")][fc("0x13b")](s)){case"notReady":this[fc("0x49")][fc("0x114")](s,fc("0x2"));break;case fc("0xde"):s[fc("0x130")]?(this[fc("0xa0")](new Set([s])),this[fc("0x140")](new Set([s])),this[fc("0x49")][fc("0x114")](s,fc("0xa5")),this[fc("0x17e")](fc("0x67"),s)):this._suggestionState[fc("0x114")](s,fc("0x12a"))}return s}[fc("0x75")](t){this.forceDefaultExecution((()=>{this[fc("0x1b")][fc("0x10f")][fc("0x6d")]((()=>{for(const e of t[fc("0x14")]())e[fc("0x5f")]()}))}))}[fc("0xa2")](t){this.forceDefaultExecution((()=>{this[fc("0x1b")][fc("0x10f")][fc("0x6d")]((()=>{for(const e of t[fc("0x14")]())e[fc("0x8a")]()}))}))}[fc("0xd4")](t,n){const o=this[fc("0x1b")][fc("0xac")][fc("0x13b")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[fc("0x11e")][fc("0xb8")](o))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[fc("0x11e")][fc("0xf0")](o),n&&o.on(fc("0x3"),((t,e)=>{this[fc("0x93")][fc("0x33")]&&(this[fc("0x90")]||(e.length>0&&e[e[fc("0x9e")]-1]&&e[e[fc("0x9e")]-1][fc("0x6c")]?e[fc("0x4d")]():(t[fc("0x32")]=n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[fc("0xdc")]())))}),{priority:fc("0xad")})}[fc("0x6c")](t){let n,o;const r=this[fc("0x90")];this[fc("0x90")]=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0x90")]=!1),o&&e.CKEditorError[fc("0x14c")](o,this),n}markInsertion(t,n=null,o={}){if(t[fc("0x16d")])return null;const r=this[fc("0x1b")][fc("0xdb")][fc("0x13b")](fc("0xb9")).me;for(const{suggestion:e,meta:r}of this[fc("0x13f")](t,fc("0xe0")))if(r[fc("0x158")]){if(!r.isNextTo){if(r[fc("0xe")]){if(!this._mergeNestedSuggestions||!Sc(e,o))continue;return e}if(Sc(e,o))return e;this[fc("0x10a")](e,t[fc("0x13e")],t[fc("0x174")]);break}if(n==e[fc("0x11d")]&&Sc(e,o)){const n=e[fc("0x147")]();return n[fc("0x13e")][fc("0x47")](t[fc("0x174")])?this[fc("0x1c")](e,this[fc("0xf8")][fc("0x45")](t.start,n[fc("0x174")])):this[fc("0x1c")](e,this[fc("0xf8")][fc("0x45")](n[fc("0x13e")],t[fc("0x174")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0xda")+n:fc("0xe0"),a=this[fc("0x18")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x79")](x,i,s,t),a}markMultiRangeInsertion(t,n=fc("0x74"),o={}){const r=this[fc("0x1b")][fc("0xdb")][fc("0x13b")](fc("0xb9")).me,i=this._suggestionFactory[fc("0x16a")](fc("0xe0"),n,fc("0x88"));for(const e of this[fc("0x4c")]())if(e[fc("0x36")].id==r.id&&fc("0xe0")==e[fc("0x146")]&&e[fc("0x11d")]==n&&Sc(e,o)&&(i(e.getRanges(),t)||i(t,e[fc("0x54")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[fc("0x13f")](t,"insertion")){if(!n[fc("0x158")])continue;if(!this[fc("0xfe")]&&n[fc("0xe")])continue;if(!Sc(e,o))continue;let r=!0;for(const n of e[fc("0x54")]())for(const e of t)if(!n[fc("0x34")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a="insertion:"+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x79")](a,s,x,e,Jo[fc("0xcf")]());return c}[fc("0x119")](t,n,o=null,r={}){if(o=o||Tc(n),t.isCollapsed)return null;if("never"===this[fc("0x1")]){const e=this._suggestionFactory[fc("0x16a")](fc("0x11"),o,fc("0x5f"));return this[fc("0x6c")]((()=>e([t],n,r))),null}const i=this[fc("0x1b")][fc("0xdb")][fc("0x13b")](fc("0xb9")).me,s=[];if(fc("0xbc")!==this[fc("0x1")])for(const{suggestion:e,meta:n}of this[fc("0x13f")](t,"insertion"))n[fc("0x158")]&&!n[fc("0xd6")]&&s[fc("0x9f")](...e[fc("0x54")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0xec")](o);e&&n[fc("0x9f")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x9e")];){const o=n[e][fc("0x17a")](t);n[fc("0x8f")](e,1,...o),e+=o[fc("0x9e")]}}return n}(t,s);x.length&&this[fc("0xf8")][fc("0x6d")]((()=>{for(const t of x){const e=this._suggestionFactory[fc("0x16a")](fc("0x11"),o,fc("0x5f"));this[fc("0x6c")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[fc("0x13e")],a=t[fc("0x174")];for(const{suggestion:e,meta:n}of this[fc("0x13f")](t,fc("0x11"))){if(!n[fc("0x158")])continue;if(e[fc("0x11d")]!=o)continue;if(!Sc(e,r))continue;const i=e.getFirstRange();if(i[fc("0x34")](t,!0))return null;x=x[fc("0xe8")](i[fc("0x13e")])?x:i[fc("0x13e")],a=a.isAfter(i[fc("0x174")])?a:i[fc("0x174")],s?i[fc("0x13e")][fc("0xe8")](s[fc("0x147")]()[fc("0x13e")])?(s[fc("0x14b")](),s=e):e[fc("0x14b")]():s=e}const c=this._model.createRange(x,a);if(s)this[fc("0x1c")](s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0x18")]({id:t,type:fc("0x15a")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this._addSuggestionMarker(fc("0x15a")+o,t,s,c)}}return null}[fc("0x133")](t,n,o=[],r=null,i={}){n.formatGroupId||(n[fc("0xb4")]=n[fc("0x8e")]),n.multipleBlocks=t.is(fc("0x29")),r=r||Tc(n);const s=o[fc("0x152")]((t=>Cc(t,this[fc("0xf8")]))),x=t.is(fc("0x29"))?t:Cc(t,this[fc("0xf8")]);if(fc("0xfd")===this[fc("0x1")]){const t=this[fc("0x5a")][fc("0x16a")](fc("0x110"),r,fc("0x5f"));return this[fc("0x6c")]((()=>t([x],n,i))),null}s[fc("0x9f")](x);let a=!0;for(const t of s)if(!this[fc("0x12e")](t)){a=!1;break}if(a&&fc("0xbc")!==this[fc("0x1")]){const t=this._suggestionFactory[fc("0x16a")](fc("0x110"),r,fc("0x5f"));return this[fc("0x6c")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0x13e")],u=x[fc("0x174")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,fc("0x110"))){if(!e.isOwn)continue;if(e[fc("0x13")]||e.containsRangeInObject||e[fc("0xd6")])continue;if(t[fc("0x30")][fc("0xb4")]!=n.formatGroupId)continue;if(!Sc(t,i))continue;const o=t[fc("0x147")]();if(t[fc("0x11d")]==r){if(o[fc("0x34")](x,!0))return null;l=l.isBefore(o[fc("0x13e")])?l:o.start,u=u[fc("0x14d")](o[fc("0x174")])?u:o[fc("0x174")],c?o[fc("0x13e")][fc("0xe8")](c[fc("0x147")]()[fc("0x13e")])?(c[fc("0x14b")](),c=t):t[fc("0x14b")]():c=t}else{const e=x[fc("0xec")](o);this._cutOutSuggestionMarker(t,e)}}const d=this[fc("0x1b")][fc("0xdb")][fc("0x13b")](fc("0xb9")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x1c")](c,this[fc("0xf8")][fc("0x45")](l,u)),c;{const t=this[fc("0x18")]({id:g,type:fc("0x3d")+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this._addSuggestionMarker(fc("0x3d")+r,g,f,this[fc("0xf8")][fc("0x45")](l,u)),t}}[fc("0x128")](t,n,o=[],r=null,i={}){n.formatGroupId||(n[fc("0xb4")]=n.commandName);const s=t[0];n[fc("0x14e")]=s.is(fc("0x29")),r=r||Tc(n);const x=o[fc("0x152")]((t=>Cc(t,this[fc("0xf8")]))),a=s.is("range")?t:t.map((t=>Cc(t,this[fc("0xf8")])));if(fc("0xfd")===this[fc("0x1")]){const t=this[fc("0x5a")][fc("0x16a")](fc("0x110"),r,"accept");return this[fc("0x6c")]((()=>t(a,n,i))),null}x[fc("0x9f")](...a);let c=!0;for(const t of x)if(!this[fc("0x12e")](t)){c=!1;break}if(c&&fc("0xbc")!==this[fc("0x1")]){const t=this._suggestionFactory[fc("0x16a")](fc("0x110"),r,fc("0x5f"));return this[fc("0x6c")]((()=>t(a,n,i))),null}const l=this[fc("0x1b")][fc("0xdb")][fc("0x13b")](fc("0xb9")).me;for(const t of this[fc("0x4c")]()){if(t[fc("0x36")].id!=l.id)continue;if(fc("0x110")!=t.type||t[fc("0x30")][fc("0xb4")]!=n.formatGroupId)continue;if(!Sc(t,i))continue;const e=t[fc("0x11d")]==r;for(let n=0;n<a[fc("0x9e")];n++){const o=a[n];for(const r of t[fc("0x71")]()){const i=r[fc("0xba")]();if(o[fc("0x47")](i)){e?(a[fc("0x8f")](n,1),n--):t.removeMarker(r[fc("0xa4")]);break}}}}if(0==a[fc("0x9e")])return null;const u=this[fc("0x5a")].getSuggestionCallback("formatBlock",r,"join");for(const t of this[fc("0x4c")]())if(t[fc("0x36")].id==l.id&&fc("0x110")==t[fc("0x146")]&&t[fc("0x30")][fc("0xb4")]==n.formatGroupId&&t.subType==r&&Sc(t,i)&&(u(t[fc("0x54")](),a)||u(a,t[fc("0x54")]()))){for(const e of a)t[fc("0x15b")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x3d")+r,m=this[fc("0x18")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this._addSuggestionMarker(f,d,g,t,Jo[fc("0xcf")]());return m}[fc("0x16c")](t,n=null,o={}){if(t[fc("0x16d")])return null;const r=this.editor[fc("0xdb")].get("Users").me,i=new s.LiveRange(t[fc("0x13e")],t[fc("0x174")]);for(const{suggestion:t,meta:e}of this._findSuggestions(i,fc("0xe0")))if(e[fc("0x158")]&&!e[fc("0x13")])if(t[fc("0x58")]){const e=t[fc("0x54")]()[fc("0x70")]((t=>fc("0xbd")!=t[fc("0x117")].rootName));if(e[fc("0x179")]((t=>i.containsRange(t,!0)))&&t[fc("0x8a")](),e[fc("0x94")]((t=>t.containsRange(i,!0)))){const t=this._suggestionFactory[fc("0x16a")](fc("0x137"),n,"accept");return this[fc("0x6c")]((()=>t([i],null,o))),null}}else{const e=i.getIntersection(t.getFirstRange());null!==e&&t[fc("0x7d")]([e],null,o)}if(i[fc("0x69")](),i[fc("0x16d")]||fc("0xbd")==i.root[fc("0xeb")])return null;let x=null,a=i[fc("0x13e")],c=i.end;const l=this._findSuggestions(i,fc("0x137"));for(const{suggestion:t,meta:e}of l){const n=this[fc("0xf8")][fc("0x45")](a,c);if(e[fc("0x158")]&&(this[fc("0xfe")]||!e[fc("0xe")]&&!e[fc("0xd6")]))if(t[fc("0x58")]){if(!Sc(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o[fc("0x34")](n,!0))return t;n[fc("0x34")](o)||(e=!1)}e&&t[fc("0x8a")]()}else{const e=t[fc("0x147")]();if(e[fc("0x34")](n,!0))return t;if(!Sc(t,o)){n[fc("0x34")](e)?t[fc("0x14b")]():e.containsPosition(a)?a=e.end:e[fc("0x134")](c)&&(c=e.start);continue}a=a[fc("0xe8")](e[fc("0x13e")])?a:e[fc("0x13e")],c=c[fc("0x14d")](e.end)?c:e[fc("0x174")],o=Object[fc("0xa7")]({},t[fc("0x169")]),x?e.start[fc("0xe8")](x[fc("0x147")]()[fc("0x13e")])?(x[fc("0x14b")](),x=t):t[fc("0x14b")]():x=t}}if(x)return this[fc("0x1c")](x,this[fc("0xf8")].createRange(a,c)),x;{const t=(0,e.uid)(),i=this._model[fc("0x45")](a,c),s=r.id,x=n?fc("0x104")+n:fc("0x137"),l=this[fc("0x18")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,t,s,i),l}}[fc("0x141")](t,n=fc("0x74"),o={}){const r=this[fc("0x1b")][fc("0xdb")][fc("0x13b")]("Users").me,i=t[fc("0x152")]((t=>new s.LiveRange(t[fc("0x13e")],t[fc("0x174")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x13f")](i,fc("0xe0")))e.isOwn&&!e[fc("0x13")]&&x.add(t);for(const e of x)if(e[fc("0x58")]){const r=e[fc("0x54")]();if((!e.attributes||!e[fc("0x169")].skipNestingCheck)&&r[fc("0x179")]((t=>i.some((e=>e[fc("0x34")](t,!0)))))&&e[fc("0x8a")](),i[fc("0x179")]((t=>r[fc("0x94")]((e=>e[fc("0x34")](t,!0)))))){const e=this[fc("0x5a")][fc("0x16a")](fc("0x137"),n,fc("0x5f"));return this[fc("0x6c")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x147")]();if(i.some((e=>e[fc("0x34")](t,!0)))&&e[fc("0x8a")](),i[fc("0x179")]((e=>t[fc("0x34")](e,!0)))){const t=this._suggestionFactory[fc("0x16a")](fc("0x137"),n,fc("0x5f"));return this.forceDefaultExecution((()=>t(i,null,o))),null}}const a=this[fc("0x5a")][fc("0x16a")](fc("0x137"),n,fc("0x88"));let c=null;for(const t of this[fc("0x4c")]())if(t[fc("0x36")].id==r.id&&t.isInContent&&"deletion"==t[fc("0x146")]&&t[fc("0x11d")]==n&&Sc(t,o)&&(a(t.getRanges(),i)||a(i,t[fc("0x54")]())))if(c){if(t[fc("0x121")]&&t[fc("0x121")][fc("0x9e")])continue;for(const e of t.getRanges())c[fc("0x17c")](e)||c[fc("0x15b")](e);t[fc("0x14b")]()}else{c=t;for(const e of i)t[fc("0x17c")](e)||t.addRange(e)}if(c)return c;x[fc("0xd5")]();for(const{suggestion:t,meta:e}of this._findSuggestions(i,fc("0x137")))e[fc("0x158")]&&(this[fc("0xfe")]||!e[fc("0xe")]&&!e[fc("0xd6")])&&Sc(t,o)&&x[fc("0xf0")](t);for(const t of x){const e=t.getRanges();if((!o||!o.skipNestingCheck)&&i[fc("0x179")]((t=>e[fc("0x94")]((e=>e.containsRange(t,!0))))))return t;(!t.attributes||!t[fc("0x169")][fc("0xe6")])&&e.every((t=>i[fc("0x94")]((e=>e[fc("0x34")](t,!0)))))&&t[fc("0x8a")]()}const l=(0,e.uid)(),u=r.id,d=fc("0x104")+n,g=this[fc("0x18")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t.detach(),t.isCollapsed||fc("0xbd")==t[fc("0x117")][fc("0xeb")]||this._addSuggestionMarker(d,l,u,t,Jo[fc("0xcf")]());return g}[fc("0x2e")](t,n,o,r,i){if(t[fc("0x16d")])return[];if("never"===this[fc("0x1")])return[];const s=this[fc("0x1b")].plugins[fc("0x13b")](fc("0xb9")).me.id,x=Array[fc("0xb3")](this[fc("0x129")][fc("0x16f")]())[fc("0x70")]((e=>fc("0x48")==e.type&&e[fc("0x30")].key==n&&e[fc("0x17c")](t)));if(fc("0x73")===this._trackFormatChanges){const e=this[fc("0x13f")](t,fc("0xe0"))[fc("0x70")]((({meta:t})=>t[fc("0x158")]&&!t[fc("0xd6")]&&!t.isNextTo))[fc("0x152")]((({suggestion:t})=>t));x[fc("0xd9")](...e)}const a=new Map([[t,o]]);for(const t of x){const e="attribute"==t[fc("0x146")]?t.data[fc("0x15c")]:void 0,i=t[fc("0x147")](),s=Array[fc("0xb3")](a.keys())[fc("0x13a")]((t=>t[fc("0x40")](i)));if(!s)continue;const x=s[fc("0x17a")](i);this[fc("0x98")](n)&&fc("0xe0")==t[fc("0x146")]&&0!=x[fc("0x9e")]||(a.delete(s),x[fc("0xa8")]((t=>{a[fc("0x114")](t,o)})),fc("0xe0")!=t[fc("0x146")]&&e!=r&&a[fc("0x114")](s[fc("0xec")](i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n[fc("0x9e")]>37&&console.warn(fc("0x42"),{key:n});const l=(fc("0x5c")+(n+"|")+Tc({newValue:r}))[fc("0x25")](0,60),u=this[fc("0x18")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0x9f")](u),this._addSuggestionMarker(l,x,s,t)}return c}[fc("0x181")](t){this[fc("0x144")].add(t)}[fc("0xc8")](t){this._inlineAttributeKeys.add(t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[fc("0xd4")](t,((t,...e)=>{this[fc("0xdd")]((()=>{t(...e)}))}));for(const t of e)this[fc("0xc8")](t);for(const t of n)this._registerBlockAttribute(t)}_setSuggestionRange(t,e){const n=t[fc("0x43")]();this[fc("0xf8")][fc("0x6d")]((t=>{t[fc("0xbb")](n,{range:e})}))}[fc("0xc1")](t){const e=t.id,n=this[fc("0x1b")][fc("0x12f")].get("collaboration.channelId");this[fc("0x7")][fc("0x148")](e)||this[fc("0x7")][fc("0xea")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x7")][fc("0x6a")](e);o[fc("0x55")]("isRemovable"),o[fc("0x60")]=!1,t[fc("0x121")]=o}[fc("0x118")](t,n,o,r){if(t.type!=n||t[fc("0x11d")]!=o||t.creator.id!=r)throw this.editor.enableReadOnlyMode(fc("0xb2")),new e.CKEditorError(fc("0xb2"),this)}[fc("0x83")](t,n){const o=t[fc("0x147")]();if(n[fc("0x47")](o))t[fc("0x14b")]();else if(o[fc("0x34")](n)){const r=this[fc("0xf8")][fc("0x61")](n[fc("0x13e")][fc("0xd2")],fc("0x174"));this[fc("0x1c")](t,this[fc("0xf8")][fc("0x45")](o.start,r));const i=(0,e.uid)(),s=t[fc("0x8d")].id,x=t.type+":"+t.subType;this[fc("0x18")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x30")],attributes:t.attributes});const a=this[fc("0xf8")][fc("0x61")](n.end[fc("0x7b")],"after"),c=this._model.createRange(a,o[fc("0x174")]);this[fc("0x79")](x,i,s,c)}else if(o[fc("0x134")](n[fc("0x13e")])){const e=this._model[fc("0x61")](n[fc("0x13e")][fc("0xd2")],fc("0x174"));this[fc("0x1c")](t,this[fc("0xf8")][fc("0x45")](o[fc("0x13e")],e))}else{const e=this[fc("0xf8")][fc("0x61")](n.end[fc("0x7b")],fc("0x23"));this[fc("0x1c")](t,this._model[fc("0x45")](e,o[fc("0x174")]))}}[fc("0x12e")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0xe0"))){if(!n[fc("0x158")])continue;const o=e.getRanges();for(const e of o)if(!t[fc("0x17a")](e)[fc("0x9e")])return!0}return!1}[fc("0x85")](t){const n=this[fc("0x1b")].plugins[fc("0x13b")](fc("0xb9")).getUser(t);if(!n)throw new e.CKEditorError(fc("0x123"),this);return n}_getExternalAuthor(t){const e=this[fc("0x1b")][fc("0xdb")][fc("0x13b")](fc("0xb9")),n=(0,i.hashObject)(fc("0xd8")+t);return e.getUser(n)||e[fc("0x2c")]({id:n,name:t})}[fc("0x92")](t,e,n,o,r){const i=this[fc("0x85")](o),s=this[fc("0x5a")][fc("0xf1")](t,e,n,i,r,(t=>this[fc("0x6e")](n,{attributes:t})));return this[fc("0x3c")](s,fc("0x5f"),(()=>{this._updateSuggestionData(n,{state:fc("0x1e")})}),{priority:"high"}),this[fc("0x3c")](s,fc("0x8a"),(()=>{this[fc("0x6e")](n,{state:fc("0x12b")})}),{priority:fc("0xad")}),this[fc("0x129")].set(n,s),this[fc("0x49")][fc("0x114")](s,fc("0x11c")),s}[fc("0x51")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[fc("0x9e")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0x9e")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}_breakSuggestionMarker(t,n,o){const r=t.getFirstRange(),i=r.start,s=r.end;this[fc("0x1c")](t,this[fc("0xf8")].createRange(i,n));const x=(0,e.uid)(),a=t[fc("0x8d")].id,c=t[fc("0x146")]+(t[fc("0x11d")]?":"+t[fc("0x11d")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data});const l=Ic(t);(fc("0x110")==t[fc("0x146")]||l&&this[fc("0x98")](l))&&(o=this[fc("0xf8")][fc("0x162")](o[fc("0x7b")])),this[fc("0x79")](c,x,a,this[fc("0xf8")][fc("0x45")](o,s))}[fc("0x13f")](t,e=null){const n=[],o=this[fc("0x1b")][fc("0xdb")].get(fc("0xb9")).me;Array[fc("0xff")](t)||(t=[t]);for(const r of this[fc("0x4c")]()){if(!r[fc("0x130")])continue;if(e&&r[fc("0x146")]!=e)continue;let i=!1;for(const e of r[fc("0x54")]()){for(const s of t){const t=s.start[fc("0x47")](e[fc("0x174")])||s[fc("0x174")][fc("0x47")](e.start);if(t||s.getIntersection(e)){const x=s.containsRange(e)&&pc(this._model[fc("0xc3")],e[fc("0x13e")],s),a=e.containsRange(s)&&pc(this[fc("0xf8")].schema,s[fc("0x13e")],e);n.push({suggestion:r,meta:{isOwn:o==r.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x79")](t,e,n,o,r){this[fc("0xf8")][fc("0x6d")]((i=>{let s=fc("0x16")+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0x28")](s,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[fc("0xaf")],n=t[fc("0x68")];t.previous=null,t[fc("0x68")]=null,null!=e&&(e[fc("0x68")]=n),null!=n&&(n.previous=e),fc("0xa5")==this._suggestionState[fc("0x13b")](t)&&(this[fc("0x49")].set(t,fc("0x12a")),this[fc("0x17e")](fc("0x91"),t,e,n))}[fc("0x18")](t){const n=t.id,o=this[fc("0x44")](t);if(this[fc("0x15e")]&&this[fc("0x15e")][fc("0x1f")]){const r=this[fc("0x1b")][fc("0xdb")][fc("0x13b")]("PendingActions"),i=o.hasComments,s=o[fc("0x11d")]?o.type+":"+o[fc("0x11d")]:o.type,x=this[fc("0x1b")].locale,a=r[fc("0xf0")](Qo(x,fc("0x113"))),c={id:n,type:s,hasComments:i,data:t[fc("0x30")]||null,originalSuggestionId:t[fc("0x78")]||null,attributes:o.attributes};this._adapter[fc("0x1f")](c)[fc("0x163")]((t=>{o[fc("0xc0")]=!0,r.remove(a),t&&t[fc("0x5e")]&&(this[fc("0x129")][fc("0x13b")](n)[fc("0x5e")]=t[fc("0x5e")])}))[fc("0x136")]((t=>{throw(0,e.logWarning)(fc("0xed")),this[fc("0x1b")][fc("0x10f")][fc("0x105")]({isUndoable:!1},(()=>{o[fc("0x8a")]()})),o.stopListening(),this._suggestions[fc("0x4f")](o.id),this[fc("0x49")][fc("0x4f")](o),t}))}return o}[fc("0x98")](t){return this[fc("0x144")].has(t)}[fc("0x6e")](t,e){const n=this[fc("0x1b")][fc("0xdb")][fc("0x13b")](fc("0x9c")),o=this[fc("0x154")](t);if(this[fc("0x15e")]&&this[fc("0x15e")][fc("0x86")])if(o[fc("0xc0")]){const o=n.add(Qo(this[fc("0x1b")][fc("0x35")],fc("0x113")));this[fc("0x15e")][fc("0x86")](t,e).then((()=>{n[fc("0x156")](o)}))}else o.on(fc("0x24"),(()=>{this[fc("0x6e")](t,e)}))}[fc("0x65")](t){if(!this[fc("0x15e")]||!this[fc("0x15e")][fc("0x154")])throw new e.CKEditorError(fc("0x13d"),this);return this[fc("0x15e")][fc("0x154")](t)}[fc("0x96")](t){const{id:e,type:n,subType:o,authorId:r}=this[fc("0x51")](t),i=this[fc("0x129")][fc("0x13b")](e)||this[fc("0x92")](n,o,e,r,{});switch(this[fc("0x118")](i,n,o,r),this[fc("0x49")][fc("0x13b")](i)){case fc("0x11c"):this._getSuggestionData(e)[fc("0x163")]((t=>{let n=Promise[fc("0x127")]();t[fc("0x173")]&&(n=this[fc("0x7")][fc("0x2d")]({channelId:this.editor[fc("0x12f")][fc("0x13b")](fc("0x175")),threadId:e})),n[fc("0x163")]((()=>{this.addSuggestionData(t)[fc("0xc0")]=!0}))})),this[fc("0x49")][fc("0x114")](i,fc("0xde"));break;case fc("0x12a"):this[fc("0x6e")](e,{state:fc("0x20")});case"dataReady":this._suggestionState[fc("0x114")](i,fc("0xa5")),this.fire(fc("0x67"),i);break;case fc("0xa5"):this[fc("0x17e")](fc("0xb5"),i)}return i[fc("0x125")](t),i}[fc("0xa0")](t){const e=Array[fc("0xb3")](t),n=e[fc("0x70")]((t=>fc("0x48")==t[fc("0x146")]));this[fc("0x9d")](n);const o=e[fc("0x70")]((t=>!t[fc("0x58")]&&fc("0x48")!=t[fc("0x146")])),r=this.getSuggestions({skipNotAttached:!0})[fc("0x70")]((t=>!t[fc("0x58")]&&"attribute"!=t.type)),i=r[fc("0x70")]((e=>!t[fc("0xb8")](e))),s=new Map(r[fc("0x152")]((t=>[t,this[fc("0x5a")][fc("0x16a")](t[fc("0x146")],t[fc("0x11d")],fc("0x63"))]))),x=new Map(r[fc("0x152")]((t=>[t,t[fc("0x147")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x9e")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x9e")];t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o[fc("0x9e")];t++){const e=o[t];!c[fc("0xb8")](e)&&e[fc("0xaf")]&&(l[fc("0xf0")](e[fc("0xaf")]),e[fc("0xaf")][fc("0x68")]===e&&(e[fc("0xaf")][fc("0x68")]=null),e[fc("0xaf")]=null),!a[fc("0xb8")](e)&&e[fc("0x68")]&&(l[fc("0xf0")](e[fc("0x68")]),e.next[fc("0xaf")]===e&&(e[fc("0x68")][fc("0xaf")]=null),e[fc("0x68")]=null)}function u(t,e,n){for(let o=n;o<e[fc("0x9e")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x68")]=n[1],n[1][fc("0xaf")]=n[0],a[fc("0xf0")](n[0]),c[fc("0xf0")](n[1]))}}function d(t,e){if(t[fc("0x36")].id!==e[fc("0x36")].id)return null;const n=s.get(t)(t,e,x[fc("0x13b")](t),x[fc("0x13b")](e));return n&&s[fc("0x13b")](e)(t,e,x[fc("0x13b")](t),x[fc("0x13b")](e))?n[1].commentThread&&n[1][fc("0x121")][fc("0x9e")]?null:n:null}l[fc("0xaa")]&&this._refreshSuggestionsChain(l)}[fc("0x9d")](t){if(0==t[fc("0x9e")])return;const e=this[fc("0x4c")]({skipNotAttached:!0})[fc("0x70")]((t=>fc("0x48")==t[fc("0x146")]&&t[fc("0x131")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x169")]);o.has(e)||(o[fc("0x114")](e,n[fc("0x9e")]),n[fc("0x9f")]([]));const r=o[fc("0x13b")](e);n[r][fc("0x9f")](t)}!function(){n.sort(((t,e)=>{const n=t[0][fc("0x5e")],o=e[0][fc("0x5e")];return n==o?t[0][fc("0x169")][fc("0x135")]<e[0][fc("0x169")].groupId?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x7a")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t][fc("0x9e")])continue;const e=[];for(let o=t+1;o<n[fc("0x9e")];o++)0!=n[o][fc("0x9e")]&&r(n[t],n[o])&&e[fc("0x9f")](o);for(const o of e)n[t]=n[t][fc("0x9")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x9e")];e++)t[e].next=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x9e")];e++)t[e][fc("0xaf")]=t[e-1]||null;function r(t,e){if(t[0][fc("0x36")]!==e[0][fc("0x36")])return!1;if(n=t[0],o=e[0],(n[fc("0x173")]||o.hasComments)&&(n[fc("0x173")]&&o[fc("0x173")]||!(n[fc("0x173")]&&o[fc("0x5e")]<n[fc("0x121")][fc("0x151")][fc("0x13b")](0).createdAt||o[fc("0x173")]&&n[fc("0x5e")]<o[fc("0x121")].comments[fc("0x13b")](0)[fc("0x5e")])))return!1;var n,o;const r=lc(t[0][fc("0x169")],fc("0x135")),i=lc(e[0][fc("0x169")],"groupId");return!!Go(r,i)&&(!!t.every((t=>e[fc("0x94")]((e=>t.getFirstRange()[fc("0x47")](e[fc("0x147")]())))))&&e[fc("0x179")]((e=>t[fc("0x94")]((t=>e[fc("0x147")]().isEqual(t.getFirstRange()))))))}}[fc("0x140")](t){const e=Array.from(t),n=this[fc("0x4c")]({skipNotAttached:!0}),o=n[fc("0x70")]((e=>!t[fc("0xb8")](e))),r=new Map(e[fc("0x152")]((t=>[t,this[fc("0x5a")][fc("0x16a")](t[fc("0x146")],t.subType,fc("0x88"))]))),i=new Map(n[fc("0x152")]((t=>[t,t[fc("0x54")]()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x9e")];s++){const o=n[s];if(o[fc("0x146")]!==e[fc("0x146")]||o[fc("0x36")].id!==e[fc("0x36")].id||o[fc("0x11d")]!==e[fc("0x11d")])continue;if(!kc(e,o))continue;if("attribute"==e[fc("0x146")]&&e[fc("0x30")].oldValue!=o[fc("0x30")][fc("0x15c")])continue;if(fc("0x48")==e.type&&t[fc("0x98")](e[fc("0x30")].key))continue;if("formatBlock"==e[fc("0x146")]){const n=t[fc("0x1b")][fc("0x10f")],o=e[fc("0x10d")]();if(o&&(n[fc("0xc3")].isObject(o)||n[fc("0xc3")][fc("0xe3")](o)))continue}const x=r.get(e),a=i[fc("0x13b")](e),c=i[fc("0x13b")](o),l=e[fc("0x121")]&&e[fc("0x121")][fc("0x9e")],u=o[fc("0x121")]&&o[fc("0x121")][fc("0x9e")];if(!l&&x(c,a))return t[fc("0x59")](o,e),i[fc("0x4f")](e),!0;if(!u&&x(a,c))return t[fc("0x59")](e,o),i[fc("0x4f")](o),!0}return!1}}[fc("0x59")](t,e){if(t[fc("0x58")])for(const n of e.getRanges())t[fc("0x15b")](n);else{const n=e[fc("0x147")]()[fc("0x174")];this[fc("0x1c")](t,this[fc("0xf8")][fc("0x45")](t[fc("0x147")]().start,n))}e[fc("0x14b")]()}[fc("0xfb")](t,e){const n=t.startsWith(fc("0x64"))||t.startsWith("attribute")?fc("0x111"):t[fc("0x7e")]();return Qo(this[fc("0x1b")][fc("0x35")],e+"_"+n+fc("0xe2"))}[fc("0x102")](){const t=this[fc("0x1b")];(0,i.surroundingMarkersDetector)(this[fc("0xf8")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this._splitMarkerName(t[fc("0xa4")]);if(fc("0xb1")===e){o.push(this[fc("0xfb")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[fc("0x51")](t[fc("0xa4")]);if(fc("0xb1")===e){o[fc("0x9f")](this._getMarkerAnnouncementText(n,fc("0x172")));break}}o.length&&t.ui[fc("0xca")][fc("0x115")](fc("0x39"),o[fc("0x88")](" "))}))}[fc("0xcb")](t){if(null!==this[fc("0x1d")])return!1;const e=this[fc("0x1b")],n=e[fc("0x10f")][fc("0x38")].differ[fc("0xd1")]();if(0==n[fc("0x9e")])return!1;const o=[],r=n[fc("0x70")]((t=>fc("0x48")==t[fc("0x146")])),i=n[fc("0x70")]((t=>"insert"==t[fc("0x146")]&&fc("0x27")!=t.name)),s=n[fc("0x70")]((t=>fc("0x156")==t.type&&fc("0x27")!=t[fc("0xa4")]));for(const t of r)o[fc("0x9f")]({key:t.attributeKey,newValue:t[fc("0x53")],oldValue:t[fc("0x161")],range:(x=t.range,null==x[fc("0x174")].nodeBefore&&x[fc("0x174")][fc("0x7b")]==x[fc("0x13e")][fc("0x107")]?Cc(x[fc("0x13e")][fc("0x107")],e[fc("0x10f")]):x)});var x;for(const t of i){const n=s[fc("0x13a")]((e=>e[fc("0x2b")][fc("0x47")](t[fc("0x2b")])));n&&o[fc("0x9f")]({key:fc("0x17d"),newValue:t[fc("0xa4")],oldValue:n[fc("0xa4")],range:e[fc("0x10f")].createRangeOn(t[fc("0x2b")][fc("0x107")])})}return 0!=o[fc("0x9e")]&&this._reduceExistingSuggestions(t,o)}[fc("0x3f")](t){let e=!1;const n=this[fc("0x1b")][fc("0x10f")][fc("0x38")].differ[fc("0x132")]()[fc("0x70")]((t=>t[fc("0x30")][fc("0x12d")]&&t[fc("0xa4")].startsWith(fc("0xcd"))));for(const o of n){const{subType:n,id:r}=this[fc("0x51")](o[fc("0xa4")]),i=n.split("|")[0];for(const n of this[fc("0x4c")]({skipNotAttached:!0}))n.id!=r&&"attribute"==n[fc("0x146")]&&n[fc("0x30")]&&n[fc("0x30")][fc("0x6")]==i&&n[fc("0x147")]()[fc("0x40")](o[fc("0x30")].newRange)&&(this[fc("0x3e")](n,o.data[fc("0x12d")],t),e=!0)}return e}[fc("0xdd")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[fc("0x1b")];this[fc("0x1d")]=n[fc("0x10f")][fc("0x38")][fc("0x12c")],t();const o=new Map;for(const t of n[fc("0x10f")].document.history[fc("0x106")](this[fc("0x1d")]))if([fc("0x170"),fc("0x157"),"removeAttribute",fc("0x10")][fc("0xc6")](t[fc("0x146")])){const e=t[fc("0x9b")],n=o[fc("0x13b")](e)||[];n[fc("0x9f")](t),o.set(e,n)}this._recordAttributeSuggestionsFromVersion=null;for(const[t,r]of o){const o=(0,e.uid)();n[fc("0x10f")][fc("0x105")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if(fc("0x170")==t[fc("0x146")]){const e=t;r=Cc(e[fc("0x2b")][fc("0x107")],n[fc("0x10f")]),i=fc("0x17d"),s=e[fc("0x5")],x=e[fc("0xe1")]}else{const e=t,o=this[fc("0x98")](e[fc("0x6")]),a=this[fc("0x2f")][fc("0xb8")](e[fc("0x6")]);if(!o&&!a)continue;r=o?Cc(e[fc("0x29")][fc("0x13e")].nodeAfter,n.model):e[fc("0x29")],i=e.key,s=fc("0x46")==t[fc("0x146")]?void 0:e[fc("0x97")],x=e[fc("0x15c")]}this[fc("0x2e")](r,i,x,s,{groupId:o}),e.push({range:r,key:i,newValue:s,oldValue:x})}this[fc("0x160")](t,e)}))}}[fc("0x160")](t,e){if(0==e[fc("0x9e")])return!1;let n=!1;for(const o of e){const e=this[fc("0x13f")](o.range,fc("0x48"))[fc("0x70")]((t=>!t.meta[fc("0x13")]))[fc("0x152")]((t=>t[fc("0xb1")])),r=(0,i.hashObject)({newValue:o[fc("0x97")]});e[fc("0x70")]((t=>{const[e,n]=t[fc("0x11d")].split("|");return e==o[fc("0x6")]&&n!=r}))[fc("0xa8")]((e=>{this._reduceSuggestionAttributeRange(e,o[fc("0x29")],t),n=!0}))}return n}[fc("0x3e")](t,e,n){const o=t.getFirstRange()[fc("0x17a")](e);0!==o[fc("0x9e")]?1!==o[fc("0x9e")]?this[fc("0x10a")](t,e.start,e[fc("0x174")]):this[fc("0x1c")](t,o[0]):n[fc("0x149")](t.getFirstMarker())}}class bc{constructor(t){this._editor=t,this._model=t.model,this[fc("0x167")]=new Map,this[fc("0x171")]=new Map,this[fc("0xcc")]()}[fc("0xf1")](t,e,n,o,r,i){return new Jo(this[fc("0xf8")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0x16a")](t,e,fc("0x5f"))(...n),onDiscard:(...n)=>this[fc("0x16a")](t,e,fc("0x8a"))(...n)})}[fc("0xf")](t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks.set(r,o)}[fc("0x16a")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x167")].get(o)||this._defaultCallbacks[fc("0x13b")](t+":"+n)}[fc("0xcc")](){const t=()=>!1,e=t=>{t[fc("0x7a")](((t,e)=>t[fc("0x13e")][fc("0xe8")](e[fc("0x13e")])?1:-1)),this[fc("0xf8")][fc("0x6d")]((e=>{for(const n of t){let t;t=n[fc("0x174")][fc("0x120")]&&n[fc("0x174")][fc("0x7b")]==n[fc("0x13e")][fc("0x107")]?e.createSelection(n[fc("0x13e")][fc("0x107")],"on"):e[fc("0x72")](n),this[fc("0xf8")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0x6d")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t.map((t=>(Ec(t)&&(t=this[fc("0xf8")][fc("0x45")](t[fc("0x174")])),t)))[fc("0x70")]((t=>"$graveyard"!==t[fc("0x117")][fc("0xeb")]));if(i[fc("0x9e")]<1)return;const x=Array[fc("0xb3")](this._model[fc("0x38")][fc("0x4e")][fc("0x54")]())[fc("0x152")]((t=>s.LiveRange[fc("0x142")](t)));n.setSelection(i);for(const t of this[fc("0x4")][fc("0xac")][fc("0xac")]())t[fc("0x4a")]();r[fc("0x9f")]({forceDefaultExecution:!0}),this[fc("0x4")][fc("0x3")](o,...r);const a=x[fc("0x70")]((t=>fc("0xbd")!=t[fc("0x117")][fc("0xeb")]));a[fc("0x9e")]>0&&n[fc("0x13c")](a);for(const t of x)t[fc("0x69")]()}))},o=(t,e)=>1==t[fc("0x9e")]&&1==e[fc("0x9e")]&&t[0][fc("0x174")][fc("0x47")](e[0][fc("0x13e")]),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0xf8")])?[t,e]:Ac(e,t,o,n,this[fc("0xf8")])?[e,t]:null;this[fc("0x171")][fc("0x114")](fc("0x22"),t),this[fc("0x171")].set(fc("0x122"),e),this._defaultCallbacks[fc("0x114")](fc("0xa9"),o),this[fc("0x171")][fc("0x114")](fc("0x17f"),r),this[fc("0x171")].set(fc("0x112"),e),this[fc("0x171")][fc("0x114")](fc("0x178"),t),this._defaultCallbacks[fc("0x114")]("deletion:join",o),this[fc("0x171")][fc("0x114")](fc("0x11f"),r),this._defaultCallbacks.set(fc("0x126"),n),this._defaultCallbacks[fc("0x114")](fc("0x103"),t),this[fc("0x171")].set(fc("0x17"),o),this[fc("0x171")][fc("0x114")](fc("0xc4"),t),this[fc("0x171")][fc("0x114")](fc("0x62"),n),this._defaultCallbacks[fc("0x114")](fc("0x139"),t),this[fc("0x171")][fc("0x114")](fc("0x26"),o),this[fc("0x171")][fc("0x114")](fc("0x9a"),t),this[fc("0x171")][fc("0x114")](fc("0x145"),t),this[fc("0x171")].set("attribute:discard",((t,e)=>{if(!e)return;const n=this[fc("0x4")][fc("0xdb")].get(hc);this[fc("0xf8")][fc("0x6d")]((o=>{if("$elementName"==e[fc("0x6")])for(const n of t){const t=n[fc("0x13e")][fc("0x107")],r=e.oldValue;o[fc("0x170")](t,r)}else if(n[fc("0x98")](e.key))for(const n of t)void 0!==e[fc("0x15c")]?o.setAttribute(e[fc("0x6")],e[fc("0x15c")],n.start[fc("0x107")]):o[fc("0x46")](e[fc("0x6")],n[fc("0x13e")].nodeAfter);else for(const n of t)e[fc("0x15c")]?o[fc("0x168")](e[fc("0x6")],e.oldValue,n):o[fc("0x46")](e[fc("0x6")],n)}))})),this._defaultCallbacks[fc("0x114")]("attribute:join",o)}}function pc(t,e,n){for(const o of e[fc("0x7b")][fc("0x57")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0x117")]==o)return!1;if(!n[fc("0xbf")](o))return!1;if(t[fc("0x10b")](o)||t[fc("0xe3")](o))return!0}return!1}function Ec(t){return t[fc("0x174")][fc("0x7b")]==t.start.nodeAfter&&t[fc("0x174")][fc("0xe7")]}function _c(t,e,n,o){const r=t=>!t.item.is(fc("0x6f"))&&!o.isObject(t[fc("0x3a")]),i=t.start[fc("0xf5")](r),s=t[fc("0x174")][fc("0xf5")](r,{direction:fc("0xe5")});return!(t[fc("0x13e")].isEqual(i)&&t[fc("0x174")][fc("0x47")](s)||(i.isBefore(s)?n[fc("0xbb")](e,{range:n.createRange(i,s)}):n[fc("0x149")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0x13e")][fc("0x107")];return e&&e.is(fc("0x164"))}function Cc(t,e){const n=e[fc("0xc3")][fc("0x10b")](t)||e.schema[fc("0x56")](t);return e[fc("0x45")](e[fc("0x61")](t,"before"),n?e[fc("0x108")](t):e[fc("0x61")](t,fc("0x174")))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0x174")][fc("0x47")](o[fc("0x13e")]))return!0;if(t.type!=e[fc("0x146")])return!1;if(!n[fc("0x174")][fc("0xfa")](o[fc("0x13e")]))return!1;const i=r[fc("0x45")](n[fc("0x174")],o[fc("0x13e")])[fc("0x11b")]();for(const t of i)if(["elementStart",fc("0x165")][fc("0xc6")](t[fc("0x146")])&&r[fc("0xc3")][fc("0xe3")](t[fc("0x3a")]))return!1;return!0}function kc(t,e){return!(!t._isDataLoaded||!e[fc("0x131")])&&Go(t[fc("0x169")],e[fc("0x169")])}function Sc(t,e){const n=Rc(t.attributes),o=Rc(e);if(!t._isDataLoaded)return!1;for(const t of Object[fc("0xc2")](o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object[fc("0xa7")]({},t);return delete e[fc("0xe6")],delete e[fc("0x31")],e}function Ic(t){return"attribute"==t.type?t[fc("0x11d")][fc("0x99")]("|")[0]:null}const vc=["commentThreadController","bind","canEditAt","_discardCommand","model","commands","get","view","stopListening","_removePendingAction","_setPendingAction","unbind","PENDING_ACTION_SUGGESTION","acceptSuggestion","add","execute","canAccept","locale","canDiscard","change:isDirty","destroy","PendingActions","isDirty","_editor","listenTo","_acceptCommand","plugins","discardSuggestion","_pendingAction","isEnabled"];var Nc,Lc;Nc=vc,Lc=270,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0x4")]=e,this[Mc("0x7")]=n,this[Mc("0x0")]=o,this[Mc("0x17")]=t,this[Mc("0x19")]=t.commands[Mc("0x6")]("acceptSuggestion"),this[Mc("0x3")]=t[Mc("0x5")][Mc("0x6")](Mc("0x1b")),this.view.bind(Mc("0x1d")).to(this[Mc("0x19")],this[Mc("0x3")],((t,e)=>t||e)),this[Mc("0x7")][Mc("0x1")](Mc("0x10")).to(this._acceptCommand,"isEnabled",(t=>t&&this[Mc("0x17")][Mc("0x4")][Mc("0x2")](e.getRanges()))),this[Mc("0x7")][Mc("0x1")](Mc("0x12")).to(this._discardCommand,Mc("0x1d"),(t=>t&&this[Mc("0x17")].model[Mc("0x2")](e.getRanges()))),this._pendingAction=null,n[Mc("0x16")]&&this[Mc("0xa")](),this[Mc("0x18")](n,Mc("0xd"),(()=>this[Mc("0xd")]())),this[Mc("0x18")](n,Mc("0x1b"),(()=>this.discardSuggestion())),this[Mc("0x18")](n,Mc("0x13"),(()=>{n.isDirty?this[Mc("0xa")]():this[Mc("0x9")]()}))}[Mc("0xd")](){this[Mc("0x19")][Mc("0xf")](this[Mc("0x4")].id)}[Mc("0x1b")](){this[Mc("0x3")][Mc("0xf")](this[Mc("0x4")].id)}[Mc("0x14")](){this[Mc("0x7")][Mc("0xb")](Mc("0x1d")),this[Mc("0x7")][Mc("0xb")](Mc("0x10")),this.view[Mc("0xb")](Mc("0x12")),this[Mc("0x8")](),this[Mc("0x0")][Mc("0x14")](),this[Mc("0x1c")]&&this[Mc("0x9")]()}_setPendingAction(){const t=Qo(this._editor[Mc("0x11")],Mc("0xc"));this[Mc("0x1c")]=this[Mc("0x17")][Mc("0x1a")][Mc("0x6")](Mc("0x15"))[Mc("0xe")](t)}_removePendingAction(){null!==this._pendingAction&&this[Mc("0x17")][Mc("0x1a")][Mc("0x6")](Mc("0x15")).remove(this._pendingAction),this[Mc("0x1c")]=null}}const Oc=["length","commentThread","removeComment","disabledSubmit","commentInputView","isActive","_model","bind","CommentView","focus","authoredAt","descriptionParts","editorConfig","isDirty","editor","locale","updateComment","setData","value","addComment","delegate","showInput","destroy","cancel","isEnabled","_config","_localUser","submit","_createCommentThreadInputView","canAccept","set","commentsListView","isReadOnly","disableComments","canDiscard","hasDirtyComment","_createCommentViews","commentThreadInputView"];var Fc,Dc;Fc=Oc,Dc=114,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Pc=function(t,e){return Oc[t-=0]};class Bc extends r.View{constructor(t,e,n,o){super(t),this[Pc("0x1f")]=null,this.commentThreadInputView=null,this[Pc("0x1e")](Pc("0x5"),!1),this.set("authoredAt",e[Pc("0xa")]),this[Pc("0x7")](Pc("0xa")).to(e),this[Pc("0x1e")](Pc("0xb"),[]),this[Pc("0x1e")](Pc("0xd"),!1),this[Pc("0x1e")](Pc("0x18"),!1),this[Pc("0x1e")](Pc("0x1d"),!1),this.set(Pc("0x22"),!1),this._model=e,this[Pc("0x1a")]=n,this._config=o,o[Pc("0x21")]?this[Pc("0x1e")](Pc("0x0"),1):this[Pc("0x24")]()}[Pc("0x9")](){this.element[Pc("0x9")]()}destroy(){this[Pc("0x1f")]&&this[Pc("0x1f")][Pc("0x16")](),this[Pc("0x25")]&&this[Pc("0x25")][Pc("0x16")](),super[Pc("0x16")]()}[Pc("0x24")](){const{CommentsListView:t}=this[Pc("0x19")];this[Pc("0x1f")]=new t(this[Pc("0xf")],this[Pc("0x6")].commentThread,Object.assign({CommentView:this._config[Pc("0x8")]},this[Pc("0x19")])),this[Pc("0x1f")][Pc("0x14")](Pc("0x2")).to(this),this[Pc("0x1f")].delegate(Pc("0x10")).to(this),this[Pc("0x1f")].bind(Pc("0x5")).to(this),this[Pc("0x1e")](Pc("0x0"),this[Pc("0x1f")][Pc("0x0")]+1),this[Pc("0x7")](Pc("0x0")).to(this[Pc("0x1f")],Pc("0x0"),(t=>t+1)),this[Pc("0x25")]=this[Pc("0x1c")](),this.on("removeComment",(()=>this[Pc("0x9")]())),this.bind(Pc("0xd")).to(this[Pc("0x1f")],Pc("0x23"),this[Pc("0x25")][Pc("0x4")],Pc("0x12"),((t,e)=>t||!!e))}[Pc("0x1c")](){const{CommentThreadInputView:t}=this[Pc("0x19")],e=new t(this[Pc("0xf")],this._localUser,this[Pc("0x19")][Pc("0xc")]),n=e[Pc("0x4")];return e[Pc("0x7")](Pc("0x15")).to(this,Pc("0x5"),this[Pc("0x6")][Pc("0x1")],Pc("0x20"),n,Pc("0x12"),((t,e,n)=>!!n||t&&!e)),n.on(Pc("0x1b"),((t,e)=>{this.fire(Pc("0x13"),e),n[Pc("0xe")][Pc("0x11")]("")})),n.on(Pc("0x17"),(()=>this[Pc("0x9")]())),n.bind(Pc("0x3")).to(this[Pc("0x6")][Pc("0x1")],Pc("0x20")),e}}const Uc=["ck-suggestion__info-name","ck-annotation__user","extendTemplate","acceptButton","div","join","bind","userView","editorDestroyed","locale","@external","ck-suggestion--disabled-comments","render","ck-comment__info-time",'" title="',"_config","type","querySelector","commentThreadInputView","isEnabled","author","authoredAt","ck-comment__external","createElement","creator","EXTERNAL_AVATAR","description","delegate","discardButton","cancel","canAccept","disableComments","value","commentsListView","span","innerHTML","ck-suggestion-wrapper","ck-annotation","ck-annotation__content-wrapper","getUserViewNotificationText","title","set","split",".ck-annotation__content-wrapper","execute","descriptionParts","EXTERNAL_IMPORT_WORD_SUGGESTION","getTemplate","ck-annotation__info-name","ck-suggestion-","setTemplate","ck-suggestion--accept","ck-suggestion--discard","check",'"></span>',"ck-suggestion__actions","change:description","discardSuggestion",'<span class="ck-suggestion-type">',"ck-suggestion__user","source","ck-suggestion","_descriptionElement","children","push",'<span class="ck-suggestion-color" style="background-color: ',"importWord","editorReady","commentThread","map","ck-annotation__info-time","_model","attributes","getExternalSuggestionNote","ck-suggestion__main","</span>","fire","time","isExternal","canDiscard","<p>","isActive","_createButton","name","innerText"];var jc,Gc;jc=Uc,Gc=227,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Hc=function(t,e){return Uc[t-=0]};class Vc extends Bc{constructor(e,n,o,r){super(e,n,o,r),this[Hc("0x45")](Hc("0x2c"),""),this[Hc("0x22")](Hc("0x2c")).to(this,Hc("0x49"),(t=>t&&t[0]?t[0][Hc("0x2c")]:"")),this.bind("description").to(this,"descriptionParts",this,Hc("0x18"),((t,e)=>{let n="";for(const e of t)n+=Hc("0x17")+zc(e.content,e.color)+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Hc("0x5")]=null,this.acceptButton=this._createButton(Qo(e,"Accept suggestion"),t.icons[Hc("0x51")],Hc("0x4f"),"acceptSuggestion","sw"),this[Hc("0x1f")][Hc("0x22")](Hc("0x2f")).to(this,Hc("0x3a")),this[Hc("0x38")]=this[Hc("0x19")](Qo(e,"Discard suggestion"),t.icons[Hc("0x39")],Hc("0x50"),Hc("0x0"),"sw"),this[Hc("0x38")][Hc("0x22")](Hc("0x2f")).to(this,Hc("0x16")),this[Hc("0x23")]=new i.UserView(e,this._model[Hc("0x30")],this[Hc("0x43")]()),this[Hc("0x23")][Hc("0x1e")]({attributes:{class:[Hc("0x2"),Hc("0x1d")]}}),this[Hc("0x4e")](this.getTemplate())}[Hc("0x4b")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:Hc("0x3e"),children:[{text:this[Hc("0x23")].name}],attributes:{class:[Hc("0x1c"),Hc("0x4c")]}},{tag:Hc("0x14"),attributes:{datetime:t.to(Hc("0x31")),class:[Hc("0x29"),Hc("0xd")]},children:[{text:t.to(Hc("0x31"),(t=>this[Hc("0x2b")].formatDateTime(t)))}]}]},{tag:Hc("0x20"),attributes:{class:[Hc("0x53"),"ck-annotation__actions"]},children:[this[Hc("0x1f")],this[Hc("0x38")]]},{tag:Hc("0x20"),attributes:{class:[Hc("0x42")]}}];this[Hc("0xe")][Hc("0x15")]&&e.push({tag:"div",attributes:{class:[Hc("0x32")]},children:[{text:this[Hc("0x10")]()}]});const n={tag:Hc("0x20"),attributes:{class:[Hc("0x40"),t.if(Hc("0x18"),"ck-suggestion-wrapper--active"),t.to(Hc("0x2c"),(t=>Hc("0x4d")+t)),this._config[Hc("0x3b")]&&Hc("0x27")],"data-suggestion-id":this._model.id,"data-thread-id":this[Hc("0xe")][Hc("0xb")].id,"data-author-id":this[Hc("0xe")][Hc("0x30")].id,tabindex:-1},children:[{tag:Hc("0x20"),attributes:{class:[Hc("0x4"),Hc("0x41")]},children:[this[Hc("0x23")],{tag:Hc("0x20"),attributes:{class:[Hc("0x11"),"ck-annotation__main"]},children:e}]}]};return this[Hc("0x3d")]&&this[Hc("0x2e")]&&(n[Hc("0x6")][Hc("0x7")](this[Hc("0x3d")],this[Hc("0x2e")]),this.commentsListView.delegate("editorReady").to(this),this[Hc("0x3d")].delegate(Hc("0x24")).to(this),this[Hc("0x2e")].delegate(Hc("0xa")).to(this),this[Hc("0x2e")][Hc("0x37")](Hc("0x24")).to(this)),n}[Hc("0x28")](){super[Hc("0x28")](),this[Hc("0x5")]=this.element[Hc("0x2d")](Hc("0x47")),this[Hc("0x5")][Hc("0x3f")]=this[Hc("0x36")],this.on(Hc("0x54"),((t,e,n)=>{this._descriptionElement[Hc("0x3f")]=n}))}[Hc("0x19")](t,e,n,o,i){const s=new r.ButtonView(this[Hc("0x25")]);return s[Hc("0x45")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s.extendTemplate({attributes:{class:n}}),s.on(Hc("0x48"),(()=>{this[Hc("0x13")](o,this[Hc("0xe")].id)})),s}[Hc("0x10")](){return Hc("0x9")===this[Hc("0xe")][Hc("0xf")]["@external"][Hc("0x3")]?Qo(this[Hc("0x25")],Hc("0x4a")):Qo(this[Hc("0x25")],"EXTERNAL_SUGGESTION")}getUserViewNotificationText(){return this[Hc("0xe")][Hc("0x15")]?Hc("0x9")===this[Hc("0xe")].attributes[Hc("0x26")][Hc("0x3")]?Qo(this[Hc("0x25")],"EXTERNAL_IMPORT_WORD_AVATAR",this[Hc("0xe")][Hc("0x34")].name):Qo(this[Hc("0x25")],Hc("0x35"),this[Hc("0xe")][Hc("0x34")][Hc("0x1a")]):null}}function zc(t,e){let n="";return n+=t[Hc("0x46")]("*")[Hc("0xc")](((t,e)=>e%2!=0?Hc("0x1")+Wc(t)+Hc("0x12"):Wc(t)))[Hc("0x21")](""),e&&(n+=Hc("0x8")+e[Hc("0x3c")]+Hc("0x2a")+e[Hc("0x44")]+Hc("0x52")),n}function Wc(t){const e=document[Hc("0x33")](Hc("0x3e"));return e[Hc("0x1b")]=t,e.innerHTML}const Kc=["map","_annotationViews","comments","getJoined","EditorAnnotations","getDescriptions","discardSelectedSuggestions","from","_refreshActiveMarkers","refreshSelectedViews","suggestion-","comments.maxThreadTotalWeight","_suggestionToController","execute","requires","delete","_viewToController","config","previous","TrackChangesUI","some","activeMarkers","focus","Accept all suggestions","Annotations","suggestionUnloaded","_unbindEditors","isInContent","suggestionLoaded","createCommentThreadController","_updateController","isOn","addSourceCollector","SuggestionThreadView","keys","createAnnotationView","isEnabled","Discard all suggestions","type","registerAnnotation","editing","mainView","commands","set","destroy","pluginName","head","lowest","trackChanges.SuggestionThreadView","filter","view","editor","plugins","suggestionChanged","CommentsUI","_bindAnnotationToEditors","acceptAllSuggestions","has","descriptionParts","separator","_handleSuggestionControllerDelayed","_disableComments","Track changes","comments.maxCommentCharsWhenCollapsed","define","source","unbind","CommentView","init","bind","isDirty","getRanges","hasSuggestion","reduce","value","commentThread","model","acceptSelectedSuggestions","Discard all selected suggestions","buttonView","_initializeController","_handleControllerBuffer","size","_createUIButton","get","_descriptionFactory","listenTo","getAllAdjacentSuggestions","_destroyController","add","arrowView","clear","stopListening","discardAllSuggestions","button","getMarkers","TrackChangesEditing","locale","getByInnerView","trackChanges","discardButton","getFirstRange","length","actionView","trackChanges.disableComments","componentFactory","toMany","innerView","push","comments.maxCommentsWhenCollapsed","change:previous","values","isMultiRange","commandName","CommentsRepository"];var qc,Xc;qc=Kc,Xc=190,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get[$c("0x36")](){return[hc,i.Users,$c("0x27"),$c("0x40"),"EditorAnnotations"]}static get[$c("0x55")](){return $c("0x3b")}constructor(t){super(t),this[$c("0x34")]=new Map,this[$c("0x38")]=new Map,this[$c("0x29")]=new Map,this._handleControllerBuffer=new Map;const e=this[$c("0x5b")].config;e[$c("0x68")]($c("0x58"),Vc),e[$c("0x68")]("trackChanges.disableComments",!1),this[$c("0x65")]=e[$c("0x9")]($c("0x1d"))}[$c("0x64")](t,e){0===this[$c("0x6")][$c("0x7")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[$c("0x34")][$c("0x61")](t);n||e?n&&e&&this[$c("0xd")](t):this._initializeController(t)}this.editor.plugins[$c("0x9")]($c("0x2c"))[$c("0x31")](),this._refreshActiveMarkers(),this._handleControllerBuffer[$c("0x10")]()}),10),this[$c("0x6")].set(t,e)}[$c("0x6c")](){const t=this[$c("0x5b")],e=t.plugins[$c("0x9")]("TrackChangesEditing"),n=t[$c("0x5c")][$c("0x9")]($c("0x40")),o=t[$c("0x5c")][$c("0x9")]($c("0x2c")),r=t[$c("0x5c")][$c("0x9")]($c("0x27"));t.ui[$c("0x1e")][$c("0xe")]($c("0x18"),(t=>this[$c("0x8")](t))),o[$c("0x48")]((()=>{const t=[];for(const[e,n]of Array[$c("0x2f")](this[$c("0x34")])){const o=e[$c("0xc")](),r=[];for(const t of o){if(!t[$c("0x43")])continue;if(t[$c("0x25")]){r[$c("0x21")](...t[$c("0x6f")]());continue}const e=t[$c("0x1a")]();if(r[$c("0x1b")]>0){const t=r[0][$c("0x2b")](e);if(t){r[0]=t;continue}}r[$c("0x21")](e)}t.push([n[$c("0x5a")],r])}return t})),this.listenTo(e,$c("0x44"),((t,e)=>{this[$c("0xb")](e,"change:previous",((t,n,o,r)=>{e[$c("0x43")]&&(null==o?(this[$c("0x46")](r.head),this._handleSuggestionControllerDelayed(e,!1)):(this[$c("0x46")](o[$c("0x56")]),null==r&&this[$c("0x64")](e,!0)))})),null!==e[$c("0x3a")]?this[$c("0x46")](e[$c("0x56")]):this[$c("0x64")](e,!1)})),this.listenTo(e,$c("0x41"),((t,e,n)=>{this[$c("0x11")](e,$c("0x23")),this[$c("0x6")][$c("0x37")](e),this[$c("0x34")][$c("0x61")](e)&&this[$c("0xd")](e),n&&this._updateController(n[$c("0x56")])})),this[$c("0xb")](e,$c("0x5d"),((t,e)=>{this[$c("0x46")](e)})),this[$c("0xb")](n,"change:activeAnnotations",(()=>{this[$c("0x30")]()})),this.listenTo(r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[$c("0x70")](n))return;const r=e.getSuggestion(n);this[$c("0x34")][$c("0x9")](r)[$c("0x5a")][$c("0x3e")]()}),{priority:$c("0x57")})}_refreshActiveMarkers(){const t=this.editor.plugins[$c("0x9")]($c("0x40")),e=this[$c("0x5b")][$c("0x5c")][$c("0x9")]($c("0x15")),n=Array[$c("0x2f")](t.activeAnnotations,(t=>t[$c("0x20")])).filter((t=>this[$c("0x38")][$c("0x61")](t))),o=[];for(const t of n){const e=this[$c("0x38")][$c("0x9")](t)[$c("0x1")][$c("0xc")]();o[$c("0x21")](...e[$c("0x71")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[$c("0x3d")]=o}_createUIButton(t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[$c("0x5b")].commands[$c("0x9")]($c("0x18")),i=Qo(t,$c("0x66"));n[$c("0x4")][$c("0x53")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[$c("0x4")][$c("0x6d")]($c("0x47")).to(o,$c("0x72")),n[$c("0x4")].on($c("0x35"),(()=>{o[$c("0x35")](),this[$c("0x5b")].editing[$c("0x5a")].focus()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:$c("0x18")}},{type:$c("0x63")},{type:$c("0x13"),model:{withText:!0,label:Qo(t,$c("0x3f")),commandName:$c("0x60")}},{type:$c("0x13"),model:{withText:!0,label:Qo(t,"Accept all selected suggestions"),commandName:$c("0x2")}},{type:$c("0x13"),model:{withText:!0,label:Qo(t,$c("0x4d")),commandName:$c("0x12")}},{type:"button",model:{withText:!0,label:Qo(t,$c("0x3")),commandName:$c("0x2e")}}];for(const t of x){let e={type:"separator"};if(t[$c("0x1")]){const n=new r.Model(t.model),o=this[$c("0x5b")].commands.get(n[$c("0x26")]);n[$c("0x6d")]($c("0x47"),$c("0x4c")).to(o,$c("0x72"),$c("0x4c")),e={type:t.type,model:n}}s.add(e)}(0,r.addListToDropdown)(n,s);const a=x[$c("0x59")]((t=>null!=t[$c("0x1")]))[$c("0x28")]((t=>this[$c("0x5b")][$c("0x52")].get(t[$c("0x1")][$c("0x26")]))),c=n[$c("0x4")];return c[$c("0x1c")][$c("0x6a")]($c("0x4c")),c[$c("0xf")][$c("0x6a")]("isEnabled"),c[$c("0x1c")][$c("0x6d")]($c("0x4c")).to(o,$c("0x4c")),c.arrowView[$c("0x6d")]("isEnabled")[$c("0x1f")](a,$c("0x4c"),((...t)=>t[$c("0x3c")]((t=>t)))),n.on($c("0x35"),(t=>{this[$c("0x5b")][$c("0x35")](t[$c("0x69")][$c("0x26")]),this[$c("0x5b")][$c("0x50")][$c("0x5a")].focus()})),n}[$c("0x5")](t){const e=this[$c("0x5b")],n=e[$c("0x39")],o=e[$c("0x5c")][$c("0x9")]($c("0x40")),r=e[$c("0x5c")][$c("0x9")]($c("0x27")),s=e[$c("0x5c")][$c("0x9")]($c("0x2c")),x=e[$c("0x5c")][$c("0x9")](i.Users).me,a=n.get("trackChanges")[$c("0x49")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[$c("0x9")]($c("0x5e"));let u,d;this[$c("0x29")][$c("0x61")](t.id)?(d=this[$c("0x29")][$c("0x9")](t.id),u=d[$c("0x51")]):(u=new a(e[$c("0x16")],t,x,{disableComments:this[$c("0x65")],editorConfig:n[$c("0x9")]("comments.editorConfig"),maxCommentsWhenCollapsed:n.get($c("0x22")),maxThreadTotalWeight:n.get($c("0x33")),maxCommentCharsWhenCollapsed:n.get($c("0x67")),formatDateTime:(0,i.getDateTimeFormatter)(n.get($c("0x16"))),CommentView:n[$c("0x9")]($c("0x2a"))[$c("0x6b")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on($c("0x35"),(()=>{e[$c("0x50")][$c("0x5a")][$c("0x3e")]()})),u[$c("0x19")].on($c("0x35"),(()=>{e[$c("0x50")].view[$c("0x3e")]()})),d=o[$c("0x4b")](this[$c("0x5b")][$c("0x16")],u),d.bind($c("0x6e")).to(u,$c("0x6e")),d[$c("0x6d")]($c("0x1b")).to(u),d[$c("0x6d")]($c("0x4e")).to(u,"type",(t=>"suggestion-"+t)),this[$c("0x29")][$c("0x53")](t.id,d));const g=r[$c("0x45")](t[$c("0x0")],u),f=new wc(e,t,u,g),m=t[$c("0xc")]()[$c("0x59")]((t=>t[$c("0x43")]));u.descriptionParts=e[$c("0x5c")][$c("0x9")]("TrackChangesEditing")[$c("0xa")][$c("0x2d")](m),this[$c("0x34")].set(t,f),this[$c("0x38")][$c("0x53")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[$c("0xc")]()[$c("0x59")]((t=>t.isInContent));for(const t of o)n.push(...t[$c("0x14")]());return(0,i.getAllMarkersDomElementsSorted)(e[$c("0x50")],n)},type:()=>$c("0x32")+f.view.type});r[$c("0x5f")](u,h),o.add(h),s[$c("0x4f")](h)}[$c("0xd")](t){const e=this[$c("0x5b")][$c("0x5c")][$c("0x9")]($c("0x27")),n=this.editor[$c("0x5c")][$c("0x9")]($c("0x40")),o=this._suggestionToController.get(t),r=o[$c("0x5a")],i=n[$c("0x17")](r);e[$c("0x42")](r),i&&n.remove(i),this[$c("0x34")][$c("0x37")](t),this._viewToController.delete(r),o[$c("0x54")]()}_updateController(t){if(!t[$c("0x43")]||!this[$c("0x34")][$c("0x61")](t))return;const e=this[$c("0x5b")].plugins[$c("0x9")]("TrackChangesEditing"),n=this[$c("0x34")][$c("0x9")](t),o=t[$c("0xc")]();n.view[$c("0x62")]=e[$c("0xa")][$c("0x2d")](o)}[$c("0x54")](){for(const t of this[$c("0x34")][$c("0x4a")]())this[$c("0xd")](t);for(const t of this._annotationViews[$c("0x24")]())t[$c("0x51")][$c("0x54")]();super[$c("0x54")]()}}var Yc,Jc,Qc=["addSuggestionData","getSuggestions","pluginName","editor","getSuggestion","requires","plugins","adapter","addSuggestion","get"];Yc=Qc,Jc=178,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x7")](){return[hc,Zc,"Comments"]}static get[tl("0x4")](){return"TrackChanges"}set[tl("0x9")](t){this.editor.plugins[tl("0x1")](hc)[tl("0x9")]=t}get[tl("0x9")](){return this[tl("0x5")][tl("0x8")].get(hc)[tl("0x9")]}[tl("0x0")](t){return this[tl("0x5")][tl("0x8")].get(hc)[tl("0x2")](t)}[tl("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x5")][tl("0x8")][tl("0x1")](hc).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x5")][tl("0x8")][tl("0x1")](hc)[tl("0x6")](t)}}const nl=["getRootsAttributes","createDocumentFragment","editor","plugins","discardAllSuggestions","useAnonymousUser","CommentsRepository","execute","track-changes-data-invalid-editor-creator","create","rootsAttributes","name","get","getRootNames","trackChangesData","init","createElement","push","TrackChangesEditing","getFullData","reduce","result","getDataWithDiscardedSuggestions","_adapter","trackChangesData.editorCreator","data","requires","Pagination","Users","define","end","config","model","editorCreator","div","acceptAllSuggestions","users","addSuggestionData","document","appendChild","TrackChangesData","function"];var ol,rl;ol=nl,rl=115,function(t){for(;--t;)ol.push(ol.shift())}(++rl);const il=function(t,e){return nl[t-=0]},sl=[il("0x26")];class xl extends t.Plugin{static get[il("0x25")](){return[hc]}static get pluginName(){return il("0x9")}[il("0x1a")](){const t=this[il("0xd")];if(t[il("0x0")][il("0x28")](il("0x23"),(e=>{const n=t[il("0x1")][il("0x7")][il("0x18")]()[il("0x1f")](((t,e)=>(t[e]="",t)),{});return t.constructor[il("0x14")](n,e)})),il("0xa")!=typeof t[il("0x0")][il("0x17")](il("0x19"))[il("0x2")])throw new e.CKEditorError(il("0x13"))}getDataWithAcceptedSuggestions(t){return ll(this[il("0xd")],!0,t)}[il("0x21")](t){return ll(this[il("0xd")],!1,t)}}class al extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}constructor(t){super(t),this[il("0x20")]=il("0x29")}[il("0x1a")](){this[il("0xd")][il("0xe")][il("0x17")](il("0x11"))[il("0x22")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[il("0xd")][il("0xe")].get(il("0x1d"))[il("0x22")]=null}}function cl(t){return void 0!==t[il("0xb")]}async function ll(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,sl);o.plugins[il("0x1c")](hc,al),o[il("0x15")]=cl(t)?t[il("0xb")]():void 0;const r=document[il("0xc")](),s=t[il("0x0")][il("0x17")]("trackChangesData")[il("0x2")],x=await s(o,(()=>function(t){const e=document[il("0x1b")](il("0x3"));return t[il("0x8")](e),e}(r)));!function(t,e){const n=t[il("0x1")].document[il("0x18")]()[il("0x1f")](((e,n)=>(e[n]=t.data.get({rootName:n}),e)),{}),o=t[il("0xe")][il("0x17")](il("0x27"))[il("0x5")].map((t=>({id:t.id,name:t[il("0x16")]}))),r=t[il("0xe")][il("0x17")](il("0x1d")).getSuggestions({skipNotAttached:!0,toJSON:!0}),i=e[il("0xe")][il("0x17")](il("0x27")),s=e[il("0xe")][il("0x17")](il("0x1d"));for(const t of o)i.getUser(t.id)||i.addUser(t);i.me||i[il("0x10")]();for(const t of r)s[il("0x6")](t);e.data.set(n)}(t,x),x[il("0x12")](il(e?"0x4":"0xf"));const a=cl(x)?x[il("0x1e")](n):x[il("0x24")][il("0x17")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(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:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),o=n(417),s=n(492),x=n(995);const a=["_enableCommands","has","clearForceDisabled","forceDisabled","affectsData","commands","_disableUnsupportedCommands","refresh","editor","TrackChangesCommand","value","_enabledCommands"];var c,l;c=a,l=341,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("0x6")]=e,this.value=!1,this[u("0x2")](),this._isEnabledBasedOnSelection=!1}[u("0x2")](){this.isEnabled=!0}execute(){this.value=!this[u("0x5")],this.value?this[u("0x1")]():this[u("0x7")]()}_disableUnsupportedCommands(){for(const t of this[u("0x3")][u("0x0")][u("0x0")]())t[u("0xb")]&&!this[u("0x6")][u("0x8")](t)&&t[u("0xa")](u("0x4"))}[u("0x7")](){for(const t of this.editor.commands[u("0x0")]())t[u("0xb")]&&!this[u("0x6")].has(t)&&t[u("0x9")](u("0x4"))}}const g=["getRanges","model","_isEnabledBasedOnSelection","refresh","canEditAt","track-changes-accept-suggestion-not-found","_suggestions","execute","get","isEnabled","plugins","editor"];var f,m;f=g,m=248,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xa")]=e,this[h("0x7")](),this[h("0x6")]=!1}[h("0x7")](){this[h("0x1")]=!0}[h("0xb")](t){const n=this[h("0xa")][h("0x0")](t);if(!n)throw new e.CKEditorError(h("0x9"),this);const i=n[h("0x4")]();this.editor[h("0x5")][h("0x8")](i)&&this[h("0x3")][h("0x2")][h("0x0")]("TrackChangesEditing").acceptSuggestion(n)}}const b=["get","_isEnabledBasedOnSelection","getRanges","TrackChangesEditing","editor","refresh","execute","model","discardSuggestion","canEditAt","_suggestions"];var E,_;E=b,_=439,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("0x0")]=e,this[T("0x6")](),this[T("0x2")]=!1}[T("0x6")](){this.isEnabled=!0}[T("0x7")](t){const n=this._suggestions[T("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const i=n[T("0x3")]();this[T("0x5")][T("0x8")][T("0xa")](i)&&this[T("0x5")].plugins[T("0x1")](T("0x4"))[T("0x9")](n)}}const C=["execute","type","isIntersecting","replace","isArray","getRanges","end","change","deletion","length","createPositionAt","isTouching","isCollapsed","from","createPositionAfter","value","push","next","content"," [color ","isMultiRange","isInContent","createPositionBefore","start","isObject","schema","color","splice","createRange"];var A,k;A=C,k=425,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>I("0x12")==t[I("0xb")]&&I("0x12")!=e[I("0xb")]?-1:I("0x12")!=t.type&&I("0x12")==e[I("0xb")]?1:0))}function v(t,e){let n,i=0;const r=[],o=e[I("0x6")];for(;i<t.length;){const s=t[i],x=t[i+1];n||(n=e[I("0x3")](s)),S(e,s,x)||(r[I("0x1a")](e[I("0x9")](n,o[I("0x5")](s)?e.createPositionAfter(s):e[I("0x14")](s,I("0x10")))),n=null),i++}return r}function S(t,e,n){if(!n)return!1;const i=t[I("0x18")](e),r=t[I("0x3")](n);return i.isTouching(r)}function N(t,e,n){for(;n[I("0x13")];){const i=n[I("0x8")](0,100);t[I("0x11")]((()=>{for(const t of i)t[I("0x2")]&&e[I("0xa")](t.id)}))}}const L=["execute","refresh","from","values","_suggestions","some","_isEnabledBasedOnSelection","_command","canEditAt","model","getRanges"];var M,w;M=L,w=376,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("0x5")]=e,this[O("0x2")]=n,this[O("0xa")](),this[O("0x4")]=!1}[O("0xa")](){const t=Array[O("0x0")](this._suggestions[O("0x1")]())[O("0x3")]((t=>t.isInContent));this.isEnabled=this[O("0x5")].isEnabled&&t}[O("0x9")](){const t=R(Array[O("0x0")](this[O("0x2")][O("0x1")]()));for(const e of t){const t=e[O("0x8")]();if(!this.editor[O("0x7")][O("0x6")](t))return}N(this.editor[O("0x7")],this[O("0x5")],t)}}const D=["isEnabled","from","_isEnabledBasedOnSelection","editor","model","execute","size","values","refresh","document","_command","canEditAt","selection","_selectedSuggestions","getRanges"];var B,P;B=D,P=271,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x9")]=e,this._suggestions=n,this[U("0xc")]=new Set,this[U("0x7")](),this[U("0x1")]=!1}[U("0x7")](){const t=this[U("0x2")][U("0x3")][U("0x8")][U("0xb")],e=Array[U("0x0")](this._suggestions[U("0x6")]());this._selectedSuggestions=function(t,e){const n=Array[I("0x17")](t[I("0xf")]()),i=new Set;for(const r of e)if(r[I("0x2")])for(const e of n)for(const n of r[I("0xf")]())(e[I("0xc")](n)||t[I("0x16")]&&!r[I("0x1")]&&r[I("0x1b")]&&n[I("0x10")][I("0x15")](e[I("0x4")]))&&i.add(r);return i}(t,e),this[U("0xe")]=this[U("0x9")][U("0xe")]&&!!this[U("0xc")][U("0x5")]}[U("0x4")](){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e[U("0xd")]();if(!this[U("0x2")][U("0x3")][U("0xa")](t))return}N(this[U("0x2")][U("0x3")],this[U("0x9")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const 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 Q=function(){this.__data__=new Z,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const J=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 mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=it["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const vt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=St(t,e);return vt(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 Qt=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 Yt(t){var e=this.__data__=new Z(t);this.size=e.size}Yt.prototype.clear=Q,Yt.prototype.delete=Y,Yt.prototype.get=J,Yt.prototype.has=tt,Yt.prototype.set=Qt;const Jt=Yt;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 me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?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 ve=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=ve&&ve.isTypedArray;const Ne=Se?Ae(Se):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)&&!mt(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 Qe=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 Ye=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const Je=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),Je(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 mn=Nt(it,"Set");const hn=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(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,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 vn=Rn;var Sn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const 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]"==vn(t)};var Wn=ve&&ve.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==vn(t)};var Xn=ve&&ve.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Qn="[object Function]",Yn="[object Object]",Jn={};Jn[Zn]=Jn["[object Array]"]=Jn["[object ArrayBuffer]"]=Jn["[object DataView]"]=Jn["[object Boolean]"]=Jn["[object Date]"]=Jn["[object Float32Array]"]=Jn["[object Float64Array]"]=Jn["[object Int8Array]"]=Jn["[object Int16Array]"]=Jn["[object Int32Array]"]=Jn["[object Map]"]=Jn["[object Number]"]=Jn[Yn]=Jn["[object RegExp]"]=Jn["[object Set]"]=Jn["[object String]"]=Jn["[object Symbol]"]=Jn["[object Uint8Array]"]=Jn["[object Uint8ClampedArray]"]=Jn["[object Uint16Array]"]=Jn["[object Uint32Array]"]=!0,Jn["[object Error]"]=Jn[Qn]=Jn["[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 Ye(e,x)}else{var d=vn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Yn||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(!Jn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Jt);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 m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,o){m&&(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 mi=function(t){return null==t?"":fi(t)};const hi=function(t,e){return ge(t)?t:oi(t,e)?[t]:li(mi(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=hi(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],m=e[u];if(i)var h=s?i(m,f,u,e,t,o):i(f,m,u,t,e,o);if(void 0!==h){if(h)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!==m&&!r(f,m,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 vi=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Si=rt?rt.prototype:void 0,Ni=Si?Si.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=Ri;case"[object Set]":var a=1&i;if(x||(x=vi),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(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 m=t[l=x[c]],h=e[l];if(i)var p=s?i(h,m,l,e,t,o):i(m,h,l,t,e,o);if(!(void 0===p?m===h||r(m,h,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:vn(t),c=x?Fi:vn(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 Jt),s||Ne(t)?Ii(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 m=g?t.value():t,h=f?e.value():e;return o||(o=new Jt),r(m,h,n,i,o)}}return!!d&&(o||(o=new Jt),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=hi(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=hi(e,t),null==(t=zi(t,e))||delete t[pi(Gi(e))]};const Ki=function(t,e){return null==t||Wi(t,e)},qi=["removeMarkers","attributes","subType","_model","previous","clear","nodeAfter","decorate","author","isExternal","_saved","discard","_onAccept","removeMarker","hasComments","getAllAdjacentSuggestions","getFirstRange","accept","substr","data","getMultiRangeId","removeAttribute","_onDiscard","change","addMarkerName","setAttribute","getMarkers","markers","next","end","onAccept","_markerNames","getItems","toJSON","split","from","head","type","creator","reduce","delete","isIntersecting","get","_onAttributesChange","push","add","getFirstMarker","_isDataLoaded","nodeBefore","commentThread","map","authoredAt","set","suggestion:","size","addMarker","onDiscard","isMultiRange","createdAt","@external","getRanges","onAttributesChange","isInContent","start","getContainedElement","getMarkerNames","length"];var Xi,$i;Xi=qi,$i=271,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Zi=function(t,e){return qi[t-=0]};class Qi extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zi("0x2c")]=!1,this.id=e.id,this.type=e.type,this[Zi("0x42")]=e.subType||null,this[Zi("0x5")]=e[Zi("0x5")],this[Zi("0x23")]=e[Zi("0x23")]||e[Zi("0x5")],this[Zi("0x6")]=Boolean(e[Zi("0x41")]&&e[Zi("0x41")][Zi("0x38")]),this[Zi("0x10")]=null,this[Zi("0x0")]=t,this[Zi("0x9")]=e[Zi("0x1b")],this[Zi("0x13")]=e[Zi("0x35")],this[Zi("0x28")]=e[Zi("0x3a")],this[Zi("0x1c")]=new Set,this.createdAt=null,this[Zi("0x31")](Zi("0x30"),null),this.set(Zi("0x41"),e[Zi("0x41")]||{}),this.set(Zi("0x1"),null),this.set(Zi("0x19"),null),this.set("commentThread",null),this[Zi("0x31")](Zi("0x7"),!1),this[Zi("0x4")](Zi("0xe")),this[Zi("0x4")](Zi("0x8"))}get[Zi("0x21")](){let t=this;for(;t[Zi("0x1")];)t=t[Zi("0x1")];return t}get[Zi("0xb")](){return!!this[Zi("0x2e")]&&this[Zi("0x2e")][Zi("0x3f")]>0}get[Zi("0x36")](){return 0!=this._markerNames[Zi("0x33")]&&6==Array[Zi("0x20")](this[Zi("0x1c")])[0][Zi("0x1f")](":").length}get[Zi("0x3b")](){return null!==this[Zi("0x2b")]()}[Zi("0x15")](t){this._markerNames[Zi("0x2a")](t)}[Zi("0x3e")](){return Array[Zi("0x20")](this._markerNames)}[Zi("0x17")](){return this[Zi("0x3e")]()[Zi("0x2f")]((t=>this[Zi("0x0")][Zi("0x18")][Zi("0x27")](t))).filter((t=>t))}[Zi("0x2b")](){return this[Zi("0x17")]()[0]||null}[Zi("0x40")](){this[Zi("0x0")][Zi("0x14")]((t=>{for(const e of this.getMarkers())t[Zi("0xa")](e)})),this[Zi("0x1c")][Zi("0x2")]()}[Zi("0xa")](t){this._model[Zi("0x14")]((e=>{e[Zi("0xa")](t)})),this._markerNames[Zi("0x25")](t)}addRange(t){const e=Zi("0x32")+this[Zi("0x22")]+":"+this.subType+":"+this.id+":"+this[Zi("0x23")].id+":"+Qi[Zi("0x11")]();this[Zi("0x15")](e),this[Zi("0x0")][Zi("0x14")]((n=>{n[Zi("0x34")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Zi("0x39")]())if(e[Zi("0x26")](t))return!0;return!1}[Zi("0x39")](){return this[Zi("0x17")]()[Zi("0x2f")]((t=>t.getRange()))}[Zi("0x1d")](){return this[Zi("0x39")]()[Zi("0x24")](((t,e)=>[...t,...e[Zi("0x1d")]()]),[])}[Zi("0xd")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t.getRange())||null}[Zi("0x3d")](){const t=this.getRanges();if(1!=t[Zi("0x3f")])return null;const e=t[0],n=e[Zi("0x3c")][Zi("0x3")],i=e[Zi("0x1a")][Zi("0x2d")];return n instanceof s.Element?n!=i?null:n:null}[Zi("0xe")](){this[Zi("0x9")](this[Zi("0x39")](),this.data,this[Zi("0x41")]),this[Zi("0x40")]()}discard(){this[Zi("0x13")](this.getRanges(),this.data,this[Zi("0x41")]),this[Zi("0x40")]()}[Zi("0xc")](){const t=[];let e=this.head;for(;e;)t[Zi("0x29")](e),e=e[Zi("0x19")];return t}[Zi("0x16")](t,e){const n=ei(this.attributes);Ei(n,t,e),ji(n,this[Zi("0x41")])||(this[Zi("0x41")]=n,this[Zi("0x28")](n))}[Zi("0x12")](t){const e=ei(this[Zi("0x41")]);Ki(e,t),ji(e,this[Zi("0x41")])||(this[Zi("0x41")]=e,this._onAttributesChange(this[Zi("0x41")]))}[Zi("0x1e")](){return{id:this.id,type:this[Zi("0x42")]?this[Zi("0x22")]+":"+this[Zi("0x42")]:this[Zi("0x22")],authorId:this[Zi("0x23")].id,createdAt:this[Zi("0x37")],hasComments:this[Zi("0xb")],data:this[Zi("0x10")],attributes:this[Zi("0x41")]}}static[Zi("0x11")](){return(0,e.uid)()[Zi("0xf")](1,5)}}function Yi(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 Ji=["replace","addObject","newValue","type","addContainer","insertion","isEqual","matchingCallback","isObject","add","_itemLabels","match","elementStart","nodeAfter","*Remove:* %0","label","text","key","elementEnd","join","format","_attributeLabels","removeFormat","subType","$textProxy","_handleAttributeSuggestionDescription","isEmpty","REPLACE_TEXT","getFirstRange","map","Object","removeObject","getItemLabel","_locale","nextSibling","pop","indexOf","*Merge:* %0","removeContainer","function","_resolveDescriptionItems","*Insert:* %0","_handleInsertRemoveSuggestionDescription","*Change to:* %0","item","name","element","_itemLabelsCallbacks","_schema","EmptyContainer","$1 $2","data","registerElementLabel","Container","deletion","softBreak","attribute","remove","_handleCustomCallbackDescription","isInContent","push","length","get","quantity","_handleRenameSuggestionDescription","start","registerAttributeLabel","normal","_addDescriptionItems","set","_customCallbacks","addEmptyContainer","has","addFormat","ELEMENT_SPACE"];var tr,er;tr=Ji,er=244,function(t){for(;--t;)tr.push(tr.shift())}(++er);const nr=function(t,e){return Ji[t-=0]};class ir{constructor(t,e){this[nr("0x33")]=[],this[nr("0x42")]=new Map,this[nr("0x1c")]=[],this._attributeLabels=new Map,this._schema=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[nr("0x28")])continue;const s=this[nr("0x27")](o);if(s){if(null!=o[nr("0x4")]){if(n[nr("0x35")](o.subType))continue;n.add(o[nr("0x4")])}e[nr("0x29")](s)}else if(nr("0x25")!=o.type)nr("0x3d")!=o.type&&"deletion"!=o[nr("0x3b")]||this[nr("0x17")](e,o,t[r+1]);else{const t=o[nr("0x20")][nr("0x49")];if(i[nr("0x35")](t))continue;i[nr("0x41")](o[nr("0x20")].key),t==mc?this[nr("0x2d")](e,o):this[nr("0x6")](e,o)}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this._customCallbacks[nr("0x29")](t)}[nr("0x21")](t,n,i=e.priorities[nr("0x30")]){nr("0x14")==typeof t?(0,e.insertToPriorityArray)(this[nr("0x1c")],{matchingCallback:t,label:n,priority:i}):this._itemLabels.set(t,n)}[nr("0x2f")](t,e){this[nr("0x2")][nr("0x32")](t,e)}[nr("0xd")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[nr("0x3f")](t)){n=e[nr("0x47")];break}return n||(n=this[nr("0x42")][nr("0x2b")](t[nr("0x1a")])),n?n(e):1!==e?e+" "+t[nr("0x1a")]+"s":""+t[nr("0x1a")]}[nr("0x31")](t,e){const n=e.getFirstRange().getWalker(),i=nr("0x3d")==e[nr("0x3b")]?nr("0x41"):nr("0x26");for(const e of n){const r=e[nr("0x19")],o=t[t[nr("0x2a")]-1];if(r.is(nr("0x5")))o&&o[nr("0x3b")][nr("0x11")]("Container")>-1&&t[nr("0x10")](),o&&nr("0x48")==o[nr("0x3b")]?o[i]+=r[nr("0x20")]:t[nr("0x29")]({type:nr("0x48"),add:nr("0x41")==i?r[nr("0x20")]:"",remove:nr("0x26")==i?r.data:""});else if(this._schema[nr("0x40")](r)){const s=r;if(o&&o.type.indexOf(nr("0x22"))>-1&&t[nr("0x10")](),nr("0x4a")==e[nr("0x3b")])continue;o&&o.type==i+"Object"&&o[nr("0x1b")][nr("0x1a")]==s[nr("0x1a")]?o[nr("0x2c")]++:t[nr("0x29")]({type:i+nr("0xb"),element:s,quantity:1}),n.skip((t=>!(nr("0x4a")==t[nr("0x3b")]&&t[nr("0x19")]==r)))}else if(this[nr("0x1d")].checkChild(r,"$text")||r.is(nr("0x1b"),nr("0x24"))){const n=r;if(nr("0x41")==i&&nr("0x44")==e[nr("0x3b")]||"remove"==i&&nr("0x4a")==e[nr("0x3b")])continue;if(o&&-1==o[nr("0x3b")][nr("0x11")](nr("0x22"))){nr("0x48")==o[nr("0x3b")]&&(o[i]+="\n");continue}let s;if(s=nr("0x41")==i?n.nextSibling&&!this[nr("0x1d")][nr("0x40")](n[nr("0xf")])?n[nr("0xf")]:null:n.previousSibling&&!this[nr("0x1d")][nr("0x40")](n.previousSibling)?n.previousSibling:null,n[nr("0x7")]||s&&s[nr("0x7")]){const e=s&&s[nr("0x7")]?s:n;o&&o.type==i+nr("0x1e")&&o[nr("0x1b")][nr("0x1a")]==e.name?o[nr("0x2c")]++:t[nr("0x29")]({type:i+"EmptyContainer",element:e,quantity:1})}else t[nr("0x29")]({type:i+"Container",element:n})}}}[nr("0x15")](t){const e=this._locale,n=[],i=[],r=[];for(const o of t)switch(o[nr("0x3b")]){case nr("0x48"):if(o[nr("0x41")]=o.add[nr("0x38")](/(\S)\u000A+(\S)/g,nr("0x1f"))[nr("0x38")](/\u000A/g,""),o[nr("0x26")]=o[nr("0x26")][nr("0x38")](/(\S)\u000A+(\S)/g,nr("0x1f"))[nr("0x38")](/\u000A/g,""),""!=o[nr("0x41")]&&""!=o[nr("0x26")]){n.push({type:nr("0x38"),content:Yi(e,nr("0x8"),['"'+o[nr("0x26")]+'"','"'+o.add+'"'])});continue}if(null!=o[nr("0x41")][nr("0x43")](/^ +$/)){n[nr("0x29")]({type:"insertion",content:Yi(e,nr("0x16"),Yi(e,nr("0x37"),o[nr("0x41")][nr("0x2a")]))});continue}if(null!=o.remove.match(/^ +$/)){n[nr("0x29")]({type:nr("0x23"),content:Yi(e,nr("0x46"),Yi(e,nr("0x37"),o.remove[nr("0x2a")]))});continue}if(""!=o[nr("0x41")]){n.push({type:nr("0x3d"),content:Yi(e,nr("0x16"),'"'+o[nr("0x41")]+'"')});continue}n[nr("0x29")]({type:nr("0x23"),content:Yi(e,nr("0x46"),'"'+o[nr("0x26")]+'"')});continue;case nr("0x34"):case nr("0x39"):n.push({type:nr("0x3d"),content:Yi(e,nr("0x16"),this[nr("0xd")](o[nr("0x1b")],o[nr("0x2c")]))});continue;case"removeEmptyContainer":case nr("0xc"):n.push({type:nr("0x23"),content:Yi(e,nr("0x46"),this[nr("0xd")](o[nr("0x1b")],o.quantity))});continue;case nr("0x3c"):n.push({type:nr("0x3d"),content:Yi(e,"*Split:* %0",this.getItemLabel(o[nr("0x1b")],o[nr("0x2c")]))});continue;case nr("0x13"):n[nr("0x29")]({type:nr("0x23"),content:Yi(e,nr("0x12"),this[nr("0xd")](o[nr("0x1b")],o[nr("0x2c")]))});continue;case"addFormat":i[nr("0x29")](o[nr("0x49")]);continue;case nr("0x3"):r[nr("0x29")](o.key);continue;default:n[nr("0x29")](o)}if(i[nr("0x2a")]){const t=i[nr("0xa")]((t=>this[nr("0x2")].has(t)?this[nr("0x2")].get(t):t))[nr("0x0")](", ");n[nr("0x29")]({type:nr("0x1"),content:Yi(this[nr("0xe")],"*Set format:* %0",t)})}if(r[nr("0x2a")]){const t=r[nr("0xa")]((t=>this[nr("0x2")][nr("0x35")](t)?this[nr("0x2")].get(t):t))[nr("0x0")](", ");n[nr("0x29")]({type:nr("0x1"),content:Yi(this[nr("0xe")],"*Remove format:* %0",t)})}return n}[nr("0x27")](t){for(const e of this[nr("0x33")]){const n=e(t);if(n&&"type"in n)return n}}[nr("0x6")](t,e){const n=e[nr("0x20")],i=void 0===n[nr("0x3a")]?"removeFormat":nr("0x36");t[nr("0x29")]({type:i,key:n[nr("0x49")]})}_handleRenameSuggestionDescription(t,e){t[nr("0x29")]({type:nr("0x1"),content:Yi(this[nr("0xe")],nr("0x18"),this[nr("0xd")](e[nr("0x9")]()[nr("0x2e")][nr("0x45")],1))})}[nr("0x17")](t,e,n){if(this[nr("0x31")](t,e),n&&n[nr("0x9")]()&&!e.getFirstRange().end[nr("0x3e")](n[nr("0x9")]()[nr("0x2e")])){const n=t[t[nr("0x2a")]-1],i=nr("0x3d")==e[nr("0x3b")]?nr("0x41"):nr("0x26");n&&nr("0x48")==n[nr("0x3b")]&&(n[i]+="\n")}}}const rr=["enableCommand","TrackChangesEditing","commands","get","showAIAssistant"];var or,sr;or=rr,sr=180,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.plugins.get(xr("0x1"));t[xr("0x2")][xr("0x3")](xr("0x4"))&&e[xr("0x0")](xr("0x4"))}}const cr=["_descriptionFactory","registerAttributeLabel","FORMAT_ALIGN_TO_RIGHT","center","FORMAT_ALIGN_TO_LEFT","AlignmentEditing","locale","commandParams","value","_enableDefaultAttributesIntegration","FORMAT_JUSTIFY_TEXT","commandName","alignment","_registerLegacyDescription","editor","right","FORMAT_ALIGN_TO_CENTER","registerDescriptionCallback","get","TrackChangesEditing","format","afterInit","has","left","type","plugins","*Format:* %0","formatBlock","justify","FORMAT_ALIGNMENT"];var lr,ur;lr=cr,ur=147,function(t){for(;--t;)lr.push(lr.shift())}(++ur);const dr=function(t,e){return cr[t-=0]};class gr extends t.Plugin{[dr("0x18")](){const t=this[dr("0x11")],e=t[dr("0x9")];if(!t[dr("0x1c")][dr("0x19")](dr("0x8")))return;const n=t.plugins.get(dr("0x16"));n[dr("0xc")]("alignment",[],[dr("0xf")]),n._descriptionFactory[dr("0x4")](dr("0xf"),Yi(e,dr("0x2"))),this[dr("0x10")]()}[dr("0x10")](){const t=this.editor,e=t.locale;t.plugins[dr("0x15")]("TrackChangesEditing")[dr("0x3")][dr("0x14")]((t=>{if(dr("0x0")!=t[dr("0x1b")])return;const{data:n}=t;if(n&&dr("0xf")==n[dr("0xe")]){const t=n[dr("0xa")][0][dr("0xb")];return{type:dr("0x17"),content:Yi(e,dr("0x1d"),function(t){switch(t){case dr("0x1a"):return Yi(e,dr("0x7"));case dr("0x12"):return Yi(e,dr("0x5"));case dr("0x6"):return Yi(e,dr("0x13"));case dr("0x1"):return Yi(e,dr("0xd"))}}(t))}}}))}}const fr=["FORMAT_STRIKETHROUGH","format","toUpperCase","_enableDefaultAttributesIntegration","registerAttributeLabel","_descriptionFactory","SuperscriptEditing","FORMAT_SUBSCRIPT","FORMAT_SUPERSCRIPT","subscript","formatInline","strikethrough","commandParams","plugins","BoldEditing","TrackChangesEditing","code","FORMAT_UNDERLINE","CodeEditing","FORMAT_","slice","ItalicEditing","FORMAT_BOLD","superscript","FORMAT_ITALIC","*Format:* %0","locale","_registerLegacyDescription","get","editor","italic","type","forceValue","UnderlineEditing","toLowerCase","registerDescriptionCallback","FORMAT_CODE","has","*Remove format:* %0","afterInit"];var mr,hr;mr=fr,hr=227,function(t){for(;--t;)mr.push(mr.shift())}(++hr);const pr=function(t,e){return fr[t-=0]},br=[pr("0x1b"),pr("0x22"),pr("0x6"),pr("0x1f"),"StrikethroughEditing","SubscriptEditing",pr("0x13")];class Er extends t.Plugin{[pr("0xc")](){const t=this[pr("0x2")],e=t[pr("0x1a")].get(pr("0x1c")),n=t[pr("0x27")];for(const i of br){if(!t.plugins[pr("0xa")](i))continue;const r=i[pr("0x21")](0,-7)[pr("0x7")](),o=pr("0x20")+r[pr("0xf")]();e[pr("0x10")](r,[r]),e[pr("0x12")][pr("0x11")](r,Yi(n,o))}this[pr("0x0")]()}[pr("0x0")](){const t=this[pr("0x2")],e=t[pr("0x27")],n=t.plugins[pr("0x1")]("TrackChangesEditing");function i(t,i){n[pr("0x12")][pr("0x8")]((n=>{if(pr("0x17")!=n[pr("0x4")])return;const{data:r}=n;return r&&r.commandName===t?r[pr("0x19")][0][pr("0x5")]?{type:pr("0xe"),content:Yi(e,pr("0x26"),i)}:{type:"format",content:Yi(e,pr("0xb"),i)}:void 0}))}i("bold",Yi(e,pr("0x23"))),i(pr("0x3"),Yi(e,pr("0x25"))),i("underline",Yi(e,pr("0x1e"))),i(pr("0x1d"),Yi(e,pr("0x9"))),i(pr("0x18"),Yi(e,pr("0xd"))),i(pr("0x16"),Yi(e,pr("0x14"))),i(pr("0x24"),Yi(e,pr("0x15")))}}const _r=["commands","filter","get","model","*Set format:* %0","change","name","parent","commandName","ELEMENT_BLOCK_QUOTE","forceValue","locale","getSelectedBlocks","editor","plugins","registerDescriptionCallback","from","*Remove format:* %0","blockQuote","has","commandParams","format","document","checkChild"];var Tr,yr;Tr=_r,yr=236,function(t){for(;--t;)Tr.push(Tr.shift())}(++yr);const Cr=function(t,e){return _r[t-=0]};class Ar extends t.Plugin{afterInit(){const t=this.editor,e=t[Cr("0xf")];if(!t[Cr("0x12")][Cr("0x17")]("BlockQuoteEditing"))return;const n=t.plugins[Cr("0x6")]("TrackChangesEditing"),i=this.editor[Cr("0x4")][Cr("0x6")]("blockQuote");n.enableCommand(Cr("0x16"),((e,r={})=>{const o=this[Cr("0x11")][Cr("0x7")][Cr("0x2")].selection,s=r&&void 0!==r[Cr("0xe")]?r[Cr("0xe")]:!i.value;let x=[];if(s){const e=Array.from(o.getSelectedBlocks()).filter((t=>kr(t)||function(t,e){const n=e[Cr("0x3")](t[Cr("0xb")],Cr("0x16")),i=e.checkChild(["$root","blockQuote"],t);return n&&i}(t,this[Cr("0x11")][Cr("0x7")].schema)));x=v(e,t[Cr("0x7")])}else{const e=Array[Cr("0x14")](o[Cr("0x10")]())[Cr("0x5")]((t=>kr(t)));x=v(e,t[Cr("0x7")])}t[Cr("0x7")][Cr("0x9")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Cr("0x16"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[Cr("0x13")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Cr("0xc")]){const t=Yi(e,Cr("0xd"));return n[Cr("0x0")][0][Cr("0xe")]?{type:Cr("0x1"),content:Yi(e,Cr("0x8"),t)}:{type:Cr("0x1"),content:Yi(e,Cr("0x15"),t)}}}))}}function kr(t){return Cr("0x16")==t[Cr("0xb")][Cr("0xa")]}const Ir=["ckbox","get","editor","afterInit","commands"];var Rr,vr;Rr=Ir,vr=358,function(t){for(;--t;)Rr.push(Rr.shift())}(++vr);const Sr=function(t,e){return Ir[t-=0]};class Nr extends t.Plugin{[Sr("0x0")](){const t=this[Sr("0x4")];t[Sr("0x1")][Sr("0x3")]("ckbox")&&t.plugins[Sr("0x3")]("TrackChangesEditing").enableCommand(Sr("0x2"))}}const Lr=["commands","filter","value","registerDescriptionCallback","config","formatBlock","forceValue","change","_descriptionFactory","selection","type","enableCommand","format","outdentCodeBlock","language","languages","commandParams","rootElement","indentCodeBlock","schema","blockName","has","getSelectedBlocks","codeBlock","name","plugins","label","get","ELEMENT_CODE_BLOCK","checkChild","*Remove format:* %0","TrackChangesEditing","markBlockFormat","registerElementLabel","isLimit","toLowerCase","from"];var Mr,wr;Mr=Lr,wr=174,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Lr[t-=0]};class Fr extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Or("0x20")]("CodeBlock"))return;const e=t[Or("0x24")][Or("0x1")](Or("0x5")),n=t.locale,i=t[Or("0xf")][Or("0x1")](Or("0x22"))[Or("0x1a")],r=t[Or("0xb")][Or("0x1")](Or("0x22"));e.enableCommand(Or("0x1d")),e[Or("0x16")](Or("0x18")),e[Or("0x16")](Or("0x22"),((n,o={})=>{const s=t.model,x=t.model.document[Or("0x14")],a=o&&void 0!==o[Or("0x11")]?o[Or("0x11")]:!r[Or("0xd")];let c;o[Or("0x19")]||(o[Or("0x19")]=i[0][Or("0x19")]),c=a?Array[Or("0xa")](x[Or("0x21")]())[Or("0xc")]((t=>{return Dr(t)||(e=t,n=s[Or("0x1e")],!e.is(Or("0x1c"))&&!n[Or("0x8")](e)&&n[Or("0x3")](e.parent,Or("0x22")));var e,n})):Array[Or("0xa")](x[Or("0x21")]()).filter((t=>Dr(t)));const l=v(c,s);s[Or("0x12")]((()=>{for(const t of l)e[Or("0x6")](t,{commandName:Or("0x22"),commandParams:[{...o,forceValue:a}],formatGroupId:Or("0x1f")})}))})),e[Or("0x13")][Or("0x7")](Or("0x22"),(t=>Yi(n,Or("0x2"),t))),e[Or("0x13")][Or("0xe")]((t=>{if(Or("0x10")!=t[Or("0x15")])return;const e=n.t,{data:r}=t;if(!r||Or("0x22")!=r.commandName)return;const o=r[Or("0x1b")][0][Or("0x19")],s=e(i.find((t=>t[Or("0x19")]===o))[Or("0x0")])[Or("0x9")]();return r[Or("0x1b")][0][Or("0x11")]?{type:Or("0x17"),content:Yi(n,"*Set format:* %0",Yi(n,Or("0x2"),1)+" ("+s+")")}:{type:"format",content:Yi(n,Or("0x4"),Yi(n,"ELEMENT_CODE_BLOCK",1))}}))}}function Dr(t){return Or("0x22")==t[Or("0x23")]}const Br=["addCommentThread","enableCommand","editor","plugins","get","afterInit"];var Pr,Ur;Pr=Br,Ur=380,function(t){for(;--t;)Pr.push(Pr.shift())}(++Ur);const jr=function(t,e){return Br[t-=0]};class Gr extends t.Plugin{[jr("0x3")](){const t=this[jr("0x0")];t[jr("0x1")].has("CommentsEditing")&&t.plugins[jr("0x2")]("TrackChangesEditing")[jr("0x5")](jr("0x4"))}}var Vr=n(181);const Hr=["markerName","getItems","isAtEnd","ck-suggestion-marker-","nextSibling","toViewElement","isLimit","writer","previousPosition","hasAttribute","includes","addHighlight","isContent","addClass","name","item","getCustomProperty","mapper","markerRange","push","elementEnd","listItem","getAttribute","get","span","TrackChangesEditing","createUIElement","plugins","start","model","test","schema","consumable","toViewPosition","element","ck-suggestion-marker--active","createRangeOn","getWalker"];var zr,Wr;zr=Hr,Wr=115,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Kr=function(t,e){return Hr[t-=0]};function qr(t,e,n){const i=[];for(const r of e[Kr("0x0")]())r[Kr("0x8")](t)&&i[Kr("0x12")](n[Kr("0x23")](r));return i}function Xr(t,e,{showActiveMarker:n=!0}={}){const i=t[Kr("0x1a")][Kr("0x16")](Kr("0x18"));return(r,o,s)=>{if(!s[Kr("0x1f")][Kr("0x1d")](o[Kr("0x11")],r[Kr("0xd")]))return;const x=o.markerRange[Kr("0x24")](),a=o.markerRange[Kr("0x1b")],c=t[Kr("0x1c")][Kr("0x1e")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Kr("0xe")];d=d||c[Kr("0xb")](e);const n=s.mapper[Kr("0x4")](e);if(n&&n[Kr("0xf")](Kr("0xa")))return;Kr("0x13")==t.type&&c.isBlock(e)&&!c[Kr("0x5")](e)&&(e[Kr("0x3")]||a[Kr("0x1")]?l&&l.parent==e||(l=e,f(t[Kr("0x7")]),g=!0):u=u||t.previousPosition)}function f(t){const r=s.writer[Kr("0x19")](Kr("0x17"),{class:Kr("0x2")+e}),x=s[Kr("0x10")][Kr("0x20")](t);n&&i.activeMarkers[Kr("0x9")](o[Kr("0x25")])&&s[Kr("0x6")][Kr("0xc")](Kr("0x22"),r),s[Kr("0x6")].insert(x,r),s[Kr("0x10")].bindElementToMarker(r,o[Kr("0x25")])}d||g||!u||f(u)}}const $r=["setSelection","options","writer","editor","get","isCollapsed","createRange","delete","detach","high","model","markerName","start","enqueueChange","document","unlock","deleteForward","end","buffer","merge","root","enableCommand","modifySelection","unit","markerNameToElements","TrackChangesEditing","remove","forward","downcastDispatcher","showSuggestionHighlights","selection","commands","requires","editing","mapper","data","batch","bind"];var Zr,Qr;Zr=$r,Qr=287,function(t){for(;--t;)Zr.push(Zr.shift())}(++Qr);const Yr=function(t,e){return $r[t-=0]};class Jr extends t.Plugin{static get[Yr("0xb")](){return[Vr.Delete]}init(){const t=this[Yr("0x14")],e=t.plugins[Yr("0x15")](Yr("0x4"));e[Yr("0x0")](Yr("0x18"));const n=t[Yr("0xa")].get(Yr("0x21"));e[Yr("0x0")](Yr("0x21"),((e,i={})=>{const r=t[Yr("0x1b")].createSelection(t.model[Yr("0x1f")][Yr("0x9")]);r[Yr("0x16")]&&t[Yr("0x1b")][Yr("0x1")](r,{direction:Yr("0x6"),unit:i[Yr("0x2")]});const o=r.getFirstRange(),x=s.LiveRange.fromRange(o);let a;e(i),a="$graveyard"==x[Yr("0x25")].rootName?t[Yr("0x1b")][Yr("0x17")](o[Yr("0x1d")]):t[Yr("0x1b")][Yr("0x17")](x[Yr("0x1d")],x[Yr("0x22")]),x[Yr("0x19")](),t[Yr("0x1b")][Yr("0x1e")](n[Yr("0x23")][Yr("0xf")],(t=>{n[Yr("0x23")].lock(),t[Yr("0x11")](t[Yr("0x17")](a[Yr("0x22")])),n[Yr("0x23")][Yr("0x20")]()}))})),t[Yr("0xc")][Yr("0x7")].on("addMarker:suggestion:deletion",Xr(t,Yr("0x24")),{priority:Yr("0x1a")}),t[Yr("0xe")][Yr("0x7")].on("addMarker:suggestion:deletion",((e,n,i)=>{i[Yr("0x12")][Yr("0x8")]&&Xr(t,Yr("0x24"),{showActiveMarker:!1})[Yr("0x10")](this)(e,n,i)}),{priority:Yr("0x1a")}),t.editing[Yr("0x7")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const i=n[Yr("0xd")][Yr("0x3")](e[Yr("0x1c")]);if(i)for(const t of i)t.is("uiElement")&&(n[Yr("0xd")].unbindElementFromMarkerName(t,e[Yr("0x1c")]),n[Yr("0x13")][Yr("0x5")](t))}),{priority:Yr("0x1a")})}}const to=["listType","setSelection","createPositionAt","previousSibling","multipleBlocks","splitListItemAfter","markBlockFormat","getAttribute","*Format:* insert into %0","getFirstRange","hasAttribute","selection","config","parent","model","ELEMENT_NUMBERED_LIST","accept","push","list.multiBlock","has","value","fromRange","isFirstBlockOfListItem","mergeListItemBackward","findIndex","execute","isObject","locale","ELEMENT_LIST_ITEM","registerDescriptionCallback","document","getSelectedBlocks","splitListItemBefore","next","nodeAfter","commandName","_LIST","*Format:* remove from %0","*Outdent:* %0","numberedList","createRange","formatBlock","detach","get","nextSibling","paragraph","commandParams","registerCustomCallback","*Change to:* %0","bulletedList","start","afterInit","deletion","indentList","type","outdentList","length","schema","_descriptionFactory","plugins","end","enableCommand","slice","documentList","from","listIndent","add","map","ELEMENT_BULLETED_LIST","format","markMultiRangeBlockFormat","ELEMENT_","before","getRanges","listItemId","toUpperCase","commands","editor","change"];var eo,no;eo=to,no=348,function(t){for(;--t;)eo.push(eo.shift())}(++no);const io=function(t,e){return to[t-=0]};class ro extends t.Plugin{[io("0x13")](){const t=this[io("0x2d")];if(!t.plugins[io("0x42")]("DocumentListEditing"))return;const e=t[io("0x4a")],n=t.plugins[io("0xb")]("TrackChangesEditing"),i=t[io("0x1b")][io("0xb")]("DocumentListUtils");function r(e){return()=>{const r=t.commands[io("0xb")](e);if(r[io("0x43")]&&!t[io("0x3b")][io("0xb")](io("0x41")))return void t.execute(io("0xd"),{});let o=Array[io("0x20")](t[io("0x3d")][io("0x4d")].selection[io("0x4e")]());if(a(e)){o=i.expandListBlocksToCompleteList(o);const t=[];for(const e of o)i[io("0x45")](e)&&t[io("0x40")](e);o=t}t[io("0x3d")][io("0x2e")]((()=>{n[io("0x26")](o,{commandName:e,commandParams:[{forceValue:!r[io("0x43")]}],formatGroupId:io("0x2f")},[],io("0x1f"))}))}}function o(e){return()=>{const i=function(t){let e=Array[io("0x20")](t);const n=e[io("0x47")]((t=>!t[io("0x39")](io("0x2a"))));return n>-1&&(e=e[io("0x1e")](0,n)),e}(t[io("0x3d")][io("0x4d")].selection[io("0x4e")]()),r=i[i[io("0x18")]-1],o=t[io("0x3d")][io("0x19")][io("0x49")](r)?"after":"end",s=t[io("0x3d")].createRange(t.model.createPositionAt(i[0],io("0x28")),t[io("0x3d")][io("0x31")](r,o));t[io("0x3d")][io("0x2e")]((()=>{n[io("0x35")](s,{commandName:e,commandParams:[],formatGroupId:io("0x2f")},function(t){const e=new Set;for(const n of t){let t=n[io("0xc")];for(;t&&t.getAttribute("listIndent")>n[io("0x36")](io("0x21"));)e[io("0x22")](t),t=t[io("0xc")]}return Array[io("0x20")](e)}(i))}))}}function x(e){return()=>{const i=t[io("0x3d")][io("0x4d")][io("0x3a")][io("0x4e")]()[io("0x1")]()[io("0x43")],r=t[io("0x3d")][io("0x31")](i,"before"),o=t[io("0x3d")][io("0x31")](i,0),s=t.model.createRange(r,o);t[io("0x3d")].change((()=>{n[io("0x35")](s,{commandName:e,commandParams:[],formatGroupId:io("0x2f")})}))}}function a(e){const n=t[io("0x2c")][io("0xb")](io("0x11")).value,i=t[io("0x2c")][io("0xb")](io("0x7"))[io("0x43")];return io("0x7")===e?n:i}n[io("0x1d")](io("0x7"),r("numberedList")),n[io("0x1d")](io("0x11"),r(io("0x11"))),n[io("0x1d")](io("0x15"),o(io("0x15"))),n[io("0x1d")](io("0x17"),o("outdentList")),n[io("0x1d")](io("0x34"),x(io("0x34"))),n[io("0x1d")]("splitListItemBefore",x(io("0x0"))),n[io("0x1a")].registerElementLabel((function(e){const n=!t.model[io("0x19")][io("0x49")](e),i=e[io("0x32")],r=e[io("0xc")],o=e.getAttribute(io("0x2a")),s=!i||i[io("0x36")](io("0x2a"))!==o,x=!r||r.getAttribute(io("0x2a"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Yi(e,io("0x4b"),t))),n[io("0x1a")][io("0x4c")]((function(n){if(io("0x9")!=n[io("0x16")]&&"formatInline"!=n[io("0x16")])return;const{data:i}=n;if(!i)return;let r,o,s,x;switch(i[io("0x3")]){case io("0x11"):s=i[io("0xe")][0].forceValue,x=a(i.commandName),r=s?"*Format:* insert into %0":io("0x5"),!x&&t[io("0x3b")][io("0xb")](io("0x41"))||(r=io("0x10")),o={type:io("0x25"),content:Yi(e,r,Yi(e,io("0x24")))};break;case"numberedList":s=i.commandParams[0].forceValue,x=a(i[io("0x3")]),r=io(s?"0x37":"0x5"),!x&&t[io("0x3b")].get(io("0x41"))||(r=io("0x10")),o={type:"format",content:Yi(e,r,Yi(e,io("0x3e")))};break;case"indentList":r="*Indent:* %0",o={type:io("0x25"),content:Yi(e,r,Yi(e,"ELEMENT_LIST_ITEM"))};break;case io("0x17"):r=function(t){const e=t[io("0x38")]();let n=e[io("0x12")].nodeAfter;for(;n&&e.containsItem(n);){if(n.getAttribute(io("0x21"))>0)return!1;n=n[io("0xc")]}return!0}(n)?Yi(e,io("0x5"),Yi(e,function(t){const e=t[io("0x38")]()[io("0x12")].nodeAfter;return io("0x27")+e[io("0x36")](io("0x2f"))[io("0x2b")]()+io("0x4")}(n))):Yi(e,io("0x6"),Yi(e,io("0x4b"))),o={type:"format",content:r};break;case io("0x46"):case"mergeListItemForward":!1===i[io("0x33")]&&(r="*Merge:* %0",o={type:io("0x14"),content:Yi(e,r,Yi(e,io("0x4b")))})}return o})),n._suggestionFactory[io("0xf")]("formatBlock",io("0x1f"),io("0x3f"),(function(e,n){const i=[];for(let n of e)n[io("0x12")].nodeAfter===n[io("0x1c")][io("0x3c")]&&(n=t[io("0x3d")][io("0x8")](t[io("0x3d")][io("0x31")](n[io("0x12")][io("0x2")],0))),i[io("0x40")](n);t.model[io("0x2e")]((e=>{const r=t[io("0x3d")][io("0x4d")].selection,o=Array[io("0x20")](r[io("0x29")]())[io("0x23")]((t=>s.LiveRange[io("0x44")](t)));e[io("0x30")](i),t[io("0x2c")].get(n[io("0x3")]).refresh(),n[io("0xe")][io("0x40")]({forceDefaultExecution:!0}),t[io("0x48")](n[io("0x3")],...n[io("0xe")]),e[io("0x30")](o);for(const t of o)t[io("0xa")]()}))}))}}const oo=["toUpperCase","*Format:* set start index to %0","DocumentListUtils","isListItemBlock","filter","document","startIndex","locale","formatBlock","_getSuggestionBlocksForListStyle","listType","*Change to:* %0","push","handleListReversedCommand","listReversed","reversed","change","listStart","handleDescriptions","DocumentListPropertiesUtils","list.properties","model","numbered","commandName","editor","markMultiRangeBlockFormat","from","config","ELEMENT_","plugins","commandParams","enableCommand","getListTypeFromListStyleType","TrackChangesEditing","handleListStyleCommand","selection","*Format:* set order to regular","handleListStartCommand","type","getSelectedBlocks","replace","expandListBlocksToCompleteList","_getSuggestionBlocks","bind","format","registerDescriptionCallback","formatInline","get","length","_LIST_","listStyle","getAttribute","*Format:* set order to reversed"];var so,xo;so=oo,xo=171,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{afterInit(){if(!this[ao("0xc")].plugins.has("DocumentListPropertiesEditing"))return;const t=this[ao("0xc")][ao("0xf")][ao("0x23")](ao("0x8")),e=this.editor[ao("0x11")][ao("0x23")](ao("0x15"));t.styles&&e[ao("0x13")](ao("0x26"),this[ao("0x16")][ao("0x1f")](this)),t[ao("0x3")]&&e.enableCommand(ao("0x2"),this[ao("0x1")].bind(this)),t[ao("0x2f")]&&e[ao("0x13")](ao("0x5"),this.handleListStartCommand[ao("0x1f")](this)),e._descriptionFactory[ao("0x21")](this[ao("0x6")][ao("0x1f")](this))}[ao("0x16")](t,e={}){const n=this.editor.plugins[ao("0x23")](ao("0x15")),i=this[ao("0x32")]();this[ao("0xc")][ao("0x9")][ao("0x4")]((()=>{n[ao("0xd")](i,{commandName:ao("0x26"),commandParams:[{type:e.type}],formatGroupId:ao("0x26")})}))}[ao("0x1")](t,e={}){const n=this.editor[ao("0x11")][ao("0x23")](ao("0x15")),i=this.editor[ao("0x11")][ao("0x23")](ao("0x2b")),r=this[ao("0x1e")]((t=>i[ao("0x2c")](t)&&ao("0xa")===t[ao("0x27")](ao("0x33"))));null!==r&&this[ao("0xc")][ao("0x9")][ao("0x4")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:ao("0x2"),commandParams:[{reversed:e[ao("0x3")]}],formatGroupId:ao("0x2")})}))}[ao("0x19")](t,e={}){const n=this[ao("0xc")][ao("0x11")][ao("0x23")](ao("0x15")),i=this[ao("0xc")][ao("0x11")][ao("0x23")](ao("0x2b")),r=this[ao("0x1e")]((t=>i[ao("0x2c")](t)&&ao("0xa")===t[ao("0x27")](ao("0x33"))));null!==r&&this[ao("0xc")][ao("0x9")].change((()=>{n[ao("0xd")](r,{commandName:ao("0x5"),commandParams:[{startIndex:e[ao("0x2f")]}],formatGroupId:ao("0x5")})}))}[ao("0x6")](t){if(ao("0x31")!=t[ao("0x1a")]&&ao("0x22")!=t[ao("0x1a")])return;const e=this[ao("0xc")][ao("0x30")],{data:n}=t;if(!n)return;let i,r;switch(n[ao("0xb")]){case ao("0x26"):i=ao("0x34"),r={type:ao("0x20"),content:Yi(e,i,Yi(e,this._getTranslationKeyForListStyle(n.commandParams[0][ao("0x1a")])))};break;case ao("0x2"):i=n[ao("0x12")][0][ao("0x3")]?ao("0x28"):ao("0x18"),r={type:ao("0x20"),content:Yi(e,i)};break;case"listStart":i=ao("0x2a"),r={type:"format",content:Yi(e,i,n[ao("0x12")][0][ao("0x2f")])}}return r}[ao("0x32")](){const t=this[ao("0xc")][ao("0x11")][ao("0x23")]("DocumentListUtils");let e=Array[ao("0xe")](this[ao("0xc")][ao("0x9")].document[ao("0x17")][ao("0x1b")]());return e[ao("0x0")](...t[ao("0x1d")](e)),e=[...new Set(e)],e}[ao("0x1e")](t){const e=this[ao("0xc")].plugins[ao("0x23")](ao("0x2b"));let n=Array[ao("0xe")](this[ao("0xc")][ao("0x9")][ao("0x2e")].selection.getSelectedBlocks())[ao("0x2d")](t);if(!n[ao("0x24")])return null;n=e[ao("0x1d")](n);const i=[];for(const t of n)e.isFirstBlockOfListItem(t)&&i[ao("0x0")](t);return i}_getTranslationKeyForListStyle(t){return ao("0x10")+this[ao("0xc")][ao("0x11")][ao("0x23")](ao("0x7"))[ao("0x14")](t).toUpperCase()+ao("0x25")+t[ao("0x29")]()[ao("0x1c")](/-/g,"_")}}var lo=n(331);const uo=["enter","showSuggestionHighlights","split","writer","parent","options","editing","unbindElementFromMarkerName","document","createRange","addMarker:suggestion:insertion","bind","getFirstRange","markerName","high","mapper","TrackChangesEditing","markerNameToElements","data","detach","get","requires","downcastDispatcher","nextSibling","setSelection","getFirstPosition","end","editor","commands","model","init","fromRange","createPositionAt","hasClass","enableCommand"];var go,fo;go=uo,fo=352,function(t){for(;--t;)go.push(go.shift())}(++fo);const mo=function(t,e){return uo[t-=0]};class ho extends t.Plugin{static get[mo("0x13")](){return[lo.Enter]}[mo("0x1c")](){const t=this[mo("0x19")],e=t.plugins[mo("0x12")](mo("0xe")),n=t[mo("0x1a")][mo("0x12")](mo("0x21"));e[mo("0x20")](mo("0x21"),(()=>{t[mo("0x1b")].change((i=>{const r=t[mo("0x1b")][mo("0x6")].selection,o=r[mo("0x17")](),x=s.LiveRange[mo("0x1d")](r[mo("0xa")]());if(n.enterBlock(i)){const n=t[mo("0x1b")][mo("0x1e")](o[mo("0x2")][mo("0x15")],0),r=i[mo("0x7")](o,n);e.markInsertion(r)}else i[mo("0x16")](i[mo("0x7")](x[mo("0x18")]));x[mo("0x11")](),n.fire("afterExecute",{writer:i})}))})),t[mo("0x4")][mo("0x14")].on("addMarker:suggestion:insertion",Xr(t,mo("0x0")),{priority:"high"}),t.editing[mo("0x14")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const i=n.mapper[mo("0xf")](e[mo("0xb")]);if(i)for(const t of i)t[mo("0x1f")]("ck-suggestion-marker-split")&&(n[mo("0xd")][mo("0x5")](t,e[mo("0xb")]),n[mo("0x1")].remove(t))}),{priority:"high"}),t[mo("0x10")][mo("0x14")].on(mo("0x8"),((e,n,i)=>{i[mo("0x3")][mo("0x22")]&&Xr(t,mo("0x0"),{showActiveMarker:!1})[mo("0x9")](this)(e,n,i)}),{priority:mo("0xc")})}}const po=["string","TrackChangesEditing","start","handleFindCommand","replaceAll","model","findPrevious","suggestion:deletion","plugins","createRange","editor","FindAndReplaceUtils","afterInit","get","_isInDeletionRange","enableCommand","bind","createPositionAt","FindAndReplaceEditing","item","getIntersection","has","markers","filter","find"];var bo,Eo;bo=po,Eo=395,function(t){for(;--t;)bo.push(bo.shift())}(++Eo);const _o=function(t,e){return po[t-=0]};class To extends t.Plugin{[_o("0x11")](){if(!this.editor[_o("0xd")][_o("0x1")](_o("0x17")))return;const t=this[_o("0xf")][_o("0xd")].get(_o("0x6"));t.enableCommand(_o("0x4"),this[_o("0x8")][_o("0x15")](this)),t.enableCommand("findNext"),t[_o("0x14")](_o("0xb")),t[_o("0x14")]("replace"),t.enableCommand(_o("0x9"))}[_o("0x8")](t,e,n={}){const i=this[_o("0xf")][_o("0xd")][_o("0x12")](_o("0x10"));return t((t=>(_o("0x5")==typeof e?i.findByTextCallback(e,n):e)(t)[_o("0x3")]((e=>!1===this[_o("0x13")](e,t[_o("0x18")])))),n)}_isInDeletionRange(t,e){const n=this[_o("0xf")][_o("0xa")][_o("0xe")](this[_o("0xf")][_o("0xa")].createPositionAt(e,t[_o("0x7")]),this[_o("0xf")][_o("0xa")][_o("0x16")](e,t.end));for(const t of this[_o("0xf")].model[_o("0x2")].getMarkersGroup(_o("0xc")))if(null!==n[_o("0x0")](t.getRange()))return!0;return!1}}const yo=["fontSize.options","commandParams","fontBackgroundColor","*Set font background color:* %0","formatInline","fontFamily","afterInit","format","*Reset font family*","FontBackgroundColorEditing","fontColor","*Reset font size*","TrackChangesEditing","*Set font color:* %0","registerDescriptionCallback","locale","fontBackgroundColor.colors","toLowerCase","_registerLegacyDescription","registerAttributeLabel","*Reset font color*","value","FontFamilyEditing","*Set font size:* %0","get","plugins","FontSize","FORMAT_FONT_BACKGROUND","has","_enableDefaultAttributesIntegration","normalizeSizeOptions","fontSize","editor","FORMAT_FONT_FAMILY","FORMAT_FONT_SIZE","title","label","commandName","_descriptionFactory","trim","config","find","type"];var Co,Ao;Co=yo,Ao=271,function(t){for(;--t;)Co.push(Co.shift())}(++Ao);const ko=function(t,e){return yo[t-=0]},Io=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:ko("0x9"),commandName:ko("0x23")},{pluginName:"FontColorEditing",commandName:ko("0x28")},{pluginName:ko("0x27"),commandName:ko("0x20")}];class Ro extends t.Plugin{[ko("0x24")](){const t=this[ko("0x13")][ko("0x2")],e=this[ko("0x13")][ko("0xc")][ko("0xb")](ko("0x2a"));for(const{pluginName:t,commandName:n}of Io)this[ko("0x13")].plugins[ko("0xf")](t)&&e[ko("0x10")](n,[n]);t.t,e[ko("0x19")][ko("0x6")]("fontSize",Yi(t,ko("0x15"))),e[ko("0x19")][ko("0x6")](ko("0x23"),Yi(t,ko("0x14"))),e[ko("0x19")][ko("0x6")](ko("0x28"),Yi(t,"FORMAT_FONT_COLOR")),e._descriptionFactory.registerAttributeLabel("fontBackgroundColor",Yi(t,ko("0xe"))),this[ko("0x5")]()}_registerLegacyDescription(){const t=this[ko("0x13")],e=t[ko("0x2")];t[ko("0xc")].get(ko("0x2a"))[ko("0x19")][ko("0x1")]((t=>{const n=e.t;if(ko("0x22")!=t[ko("0x1d")])return;const{data:i}=t;if(null!=i){if(ko("0x12")==i[ko("0x18")]){const t=i.commandParams[0][ko("0x8")];if(t){const i=n(this[ko("0x13")][ko("0xc")].get(ko("0xd"))[ko("0x11")](this[ko("0x13")][ko("0x1b")][ko("0xb")](ko("0x1e")))[ko("0x1c")]((e=>e.model==t))[ko("0x16")])[ko("0x4")]();return{type:ko("0x25"),content:Yi(e,ko("0xa"),i)}}return{type:"format",content:Yi(e,ko("0x29"))}}if(ko("0x23")==i[ko("0x18")]){const t=i.commandParams[0].value;return t?{type:ko("0x25"),content:Yi(e,"*Set font family:* %0",t)}:{type:ko("0x25"),content:Yi(e,ko("0x26"))}}if(ko("0x28")==i[ko("0x18")]){const t=i[ko("0x1f")][0][ko("0x8")];if(t){const i=(0,r.normalizeColorOptions)(this[ko("0x13")][ko("0x1b")][ko("0xb")]("fontColor.colors")).find((e=>e.model==t));let o=t,s="";return i&&(o=i[ko("0x17")],s=n(o)[ko("0x4")]()),{type:ko("0x25"),content:Yi(e,ko("0x0"),s)[ko("0x1a")](),color:{value:t,title:s||o}}}return{type:ko("0x25"),content:Yi(e,ko("0x7"))}}if(ko("0x20")==i[ko("0x18")]){const t=i[ko("0x1f")][0][ko("0x8")];if(t){const i=(0,r.normalizeColorOptions)(this[ko("0x13")][ko("0x1b")][ko("0xb")](ko("0x3")))[ko("0x1c")]((e=>e.model==t));let o=t,s="";return i&&(o=i[ko("0x17")],s=n(o)[ko("0x4")]()),{type:ko("0x25"),content:Yi(e,ko("0x21"),s).trim(),color:{value:t,title:s||o}}}return{type:"format",content:Yi(e,"*Reset font background color*")}}}}))}}const vo=["fontColor.colors","format","enableCommand","pasteFormat","locale","commands","afterInit","get","join","config","type","push","boolean","plugins","toLowerCase","fontSize.options","registerDescriptionCallback","slice","editor","split","formatBlock","_enableDefaultAttributesIntegration","FontSize","_descriptionFactory","fontColor","TrackChangesEditing","find","*Set format to:* %0","charAt","copyFormat","_registerLegacyDescription","commandName","length","formatInline","fontBackgroundColor","toUpperCase"];var So,No;So=vo,No=497,function(t){for(;--t;)So.push(So.shift())}(++No);const Lo=function(t,e){return vo[t-=0]};class Mo extends t.Plugin{[Lo("0xd")](){const t=this[Lo("0x19")],e=t.plugins.get(Lo("0x20")),n=t[Lo("0xc")].get(Lo("0x0")),i=t[Lo("0xc")][Lo("0xe")](Lo("0xa"));n&&i&&(e[Lo("0x1c")](Lo("0xa")),e[Lo("0x9")](Lo("0x0")),this[Lo("0x1")]())}_registerLegacyDescription(){const t=this[Lo("0x19")],e=t.locale;t[Lo("0x14")][Lo("0xe")](Lo("0x20"))[Lo("0x1e")][Lo("0x17")]((n=>{if(Lo("0x1b")!=n[Lo("0x11")]&&Lo("0x4")!=n[Lo("0x11")])return;const{data:i}=n;if(i&&Lo("0xa")===i[Lo("0x2")]){const n=[],r=i.commandParams[0];for(const[e,i]of Object.entries(r))n[Lo("0x12")](wo(t,e,i));return n[Lo("0x3")]?{type:Lo("0x8"),content:Yi(e,Lo("0x22"),n[Lo("0xf")](", "))}:{type:Lo("0x8"),content:Yi(e,"*Remove all formatting*")}}}))}}function wo(t,e,n){const i=t[Lo("0xb")].t,o=e[Lo("0x1a")](/(?=[A-Z])/)[Lo("0xf")](" "),s=i(o[Lo("0x23")](0)[Lo("0x6")]()+o[Lo("0x18")](1))[Lo("0x15")]();if(Lo("0x13")==typeof n)return s;if(Lo("0x1f")===e||Lo("0x5")===e){const e=(0,r.normalizeColorOptions)(t[Lo("0x10")][Lo("0xe")](Lo("0x7")))[Lo("0x21")]((t=>t.model==n));return s+" ("+(e?i(e.label)[Lo("0x15")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Lo("0x14")].get(Lo("0x1d")).normalizeSizeOptions(t.config.get(Lo("0x16")))[Lo("0x21")]((t=>t.model==n));return s+" ("+(e?i(e.title)[Lo("0x15")]():n)+")"}return s+" ("+n+")"}const Oo=["get","plugins","ELEMENT_HEADING_CUSTOM","name","commandParams","find","format","match","HeadingEditing","view","registerDescriptionCallback","afterInit","heading.options","ELEMENT_HEADING","locale","heading","_enableDefaultAttributesIntegration","_headingOptions","_registerLegacyDescription","model","*Change to:* %0","TrackChangesEditing","type","editor","title","_getHeadingLevel","registerElementLabel","formatBlock","has"];var Fo,Do;Fo=Oo,Do=306,function(t){for(;--t;)Fo.push(Fo.shift())}(++Do);const Bo=function(t,e){return Oo[t-=0]};class Po extends t.Plugin{[Bo("0x18")](){const t=this[Bo("0x7")];if(!t[Bo("0xe")][Bo("0xc")](Bo("0x15")))return;this[Bo("0x1")]=t.config[Bo("0xd")](Bo("0x19"));const e=t.locale,n=t[Bo("0xe")].get(Bo("0x5"));n[Bo("0x0")](Bo("0x1c"));for(const t of this[Bo("0x1")])"paragraph"!=t[Bo("0x3")]&&n._descriptionFactory[Bo("0xa")](t[Bo("0x3")],(n=>{const i=this._getHeadingLevel(t[Bo("0x3")]);return null!==i?(s=n,x=i,Yi(e,Bo("0x1a"),[s,x])):(r=n,o=t.title,Yi(e,Bo("0xf"),[r,o]));var r,o,s,x}));this[Bo("0x2")]()}[Bo("0x2")](){const t=this[Bo("0x7")],e=t[Bo("0x1b")];t[Bo("0xe")][Bo("0xd")](Bo("0x5"))._descriptionFactory[Bo("0x17")]((t=>{if(Bo("0xb")!=t[Bo("0x6")])return;const{data:n}=t;if(n&&Bo("0x1c")==n.commandName){const t=n[Bo("0x11")][0].value,s=this._getHeadingLevel(t);if(null!==s)return{type:"format",content:Yi(e,"*Change to:* %0",(1,o=s,Yi(e,Bo("0x1a"),[1,o])))};const x=this[Bo("0x1")][Bo("0x12")]((e=>e[Bo("0x3")]===t))[Bo("0x8")];return{type:Bo("0x13"),content:Yi(e,Bo("0x4"),(i=1,r=x,Yi(e,Bo("0xf"),[i,r])))}}var i,r,o}))}[Bo("0x9")](t){var e,n;const i=t[Bo("0x14")](/^heading(\d+)/);if(i)return i[1];const r=null===(e=this[Bo("0x1")])||void 0===e?void 0:e[Bo("0x12")]((e=>e.model==t));if(r&&r[Bo("0x16")]){const t=r[Bo("0x16")],e=(null!==(n=t[Bo("0x10")])&&void 0!==n?n:t)[Bo("0x14")](/^h(\d+)/);if(e)return e[1]}return null}}const Uo=["registerDescriptionCallback","title","_descriptionFactory","highlight","_enableDefaultAttributesIntegration","*Set highlight:* %0","model","plugins","formatInline","editor","commandName","FORMAT_HIGHLIGHT","config","locale","*Remove highlight*","HighlightEditing","_registerLegacyDescription","registerAttributeLabel","afterInit","get","type","TrackChangesEditing","color","toLowerCase","value","format","highlight.options"];var jo,Go;jo=Uo,Go=333,function(t){for(;--t;)jo.push(jo.shift())}(++Go);const Vo=function(t,e){return Uo[t-=0]};class Ho extends t.Plugin{[Vo("0x9")](){const t=this[Vo("0x0")];if(!t.plugins.has(Vo("0x6")))return;const e=t[Vo("0x19")].get(Vo("0xc")),n=t[Vo("0x4")];e[Vo("0x16")](Vo("0x15"),[Vo("0x15")]),e._descriptionFactory[Vo("0x8")](Vo("0x15"),Yi(n,Vo("0x2"))),this._registerLegacyDescription()}[Vo("0x7")](){const t=this[Vo("0x0")],e=t[Vo("0x4")];t[Vo("0x19")][Vo("0xa")]("TrackChangesEditing")[Vo("0x14")][Vo("0x12")]((n=>{if(Vo("0x1a")!=n[Vo("0xb")])return;const{data:i}=n;if(i&&"highlight"==i[Vo("0x1")]){const n=e.t,r=i.commandParams[0][Vo("0xf")];if(r){const i=t[Vo("0x3")][Vo("0xa")](Vo("0x11")).find((t=>t[Vo("0x18")]==r)),o=n(i.title)[Vo("0xe")]();return{type:"format",content:Yi(e,Vo("0x17"),o),color:{value:i[Vo("0xd")],title:i[Vo("0x13")]}}}return{type:Vo("0x10"),content:Yi(e,Vo("0x5"),Yi(e,Vo("0x2")))}}}))}}const zo=["createPositionAt","registerElementLabel","dataDowncast","locale","afterInit","for","TrackChangesEditing","conversion","showSuggestionHighlights","has","plugins","enableCommand","HorizontalLineEditing","addClass","createEmptyElement","_descriptionFactory","editor","get","ELEMENT_HORIZONTAL_LINE","ck-horizontal-line","horizontalLine","elementToStructure"];var Wo,Ko;Wo=zo,Ko=353,function(t){for(;--t;)Wo.push(Wo.shift())}(++Ko);const qo=function(t,e){return zo[t-=0]};class Xo extends t.Plugin{[qo("0x3")](){const t=this[qo("0xf")];if(!t[qo("0x9")][qo("0x8")](qo("0xb")))return;t[qo("0x9")][qo("0x10")](qo("0x5"))[qo("0xa")](qo("0x13"));const e=t[qo("0x9")][qo("0x10")](qo("0x5")),n=t[qo("0x2")];e[qo("0xe")][qo("0x0")](qo("0x13"),(t=>Yi(n,qo("0x11"),t))),t[qo("0x6")][qo("0x4")](qo("0x1"))[qo("0x14")]({model:qo("0x13"),view:(t,{writer:e,options:n})=>{if(!n[qo("0x7")])return null;const i=e.createContainerElement("div"),r=e[qo("0xd")]("hr");return e[qo("0xc")](qo("0x12"),i),e.insert(e[qo("0x15")](i,0),r),i},converterPriority:"high"})}}const $o=["attribute","commandName","plugins","ELEMENT_HTML_EMBED","*Change %0 content*","_descriptionFactory","htmlEmbed","TrackChangesEditing","getFirstRange","registerDescriptionCallback","locale","HtmlEmbed","start","element","nodeAfter","get","format","value","rawHtml","editor","type","_enableDefaultAttributesIntegration","_registerLegacyDescription","key","afterInit"];var Zo,Qo;Zo=$o,Qo=251,function(t){for(;--t;)Zo.push(Zo.shift())}(++Qo);const Yo=function(t,e){return $o[t-=0]};class Jo extends t.Plugin{[Yo("0x17")](){const t=this.editor;if(!t.plugins.has(Yo("0xa")))return;const e=t[Yo("0x1")].get(Yo("0x6")),n=t[Yo("0x9")];e[Yo("0x4")].registerElementLabel(Yo("0x11"),(t=>Yi(n,Yo("0x2"),t))),e[Yo("0x14")]("htmlEmbed",[],[Yo("0x10")]),e[Yo("0x4")][Yo("0x8")]((t=>{if(Yo("0x18")!=t[Yo("0x13")])return;const{data:e}=t;if(e&&Yo("0x10")==e[Yo("0x16")]&&t[Yo("0x7")]()[Yo("0xb")][Yo("0xd")].is(Yo("0xc"),"rawHtml")){const t=Yi(n,Yo("0x2"));return{type:Yo("0xf"),content:Yi(n,"*Change %0 content*",t)}}})),this._registerLegacyDescription()}[Yo("0x15")](){const t=this[Yo("0x12")],e=t[Yo("0x9")];t[Yo("0x1")][Yo("0xe")](Yo("0x6"))[Yo("0x4")][Yo("0x8")]((t=>{if("formatBlock"!=t[Yo("0x13")])return;const{data:n}=t;if(n&&Yo("0x5")==n[Yo("0x0")]){const t=Yi(e,"ELEMENT_HTML_EMBED");return{type:"format",content:Yi(e,Yo("0x3"),t)}}}))}}const ts=["join","getSuggestionCallback","schema","toNext","addObject","get","start","length","imageStylePreApply","imageTypeInline","ImageEditing","ImageResize","resizedWidth","getCaptionFromImageModelElement","*Remove image text alternative*","createRange","getClosestSelectedImageElement","selection","registerDescriptionCallback","editor","ImageInlineEditing","TrackChangesEditing","has","FORMAT_IMAGE_SIZE","enableCommand","format","_registerLegacyDescription","isBlockImage","subType","imageBlock","insertImage","Block image to inline image","ELEMENT_CAPTION","backward","imageInline","previous","element","_descriptionFactory","markInsertion","formatInline","attribute","*Set image text alternative:* %0","resizeImage","ImageUploadEditing","detach","ImageCaptionUtils","imageCaption","imageTextAlternative","plugins","find","*Reset image width*","convertBlockImageToInline","registerCustomCallback","ELEMENT_INLINE_IMAGE","_enableDefaultAttributesIntegration","nodeAfter","formatBlock","registerElementLabel","convertInlineImageToBlock","ELEMENT_IMAGE","end","isIntersecting","width","markBlockFormat","fromPosition","type","_suggestionFactory","deletion","isEqual","uploadImage","toPrevious","createRangeOn","commandName","caption","locale","ImageCaptionEditing","imageTypeBlock","*Set image width:* %0","key","discard","forward","isBefore","ImageUtils","isCollapsed","change","model","accept","removeObject","afterInit","document","getFirstRange","insertion","toggleImageCaption","chain","newValue","forceDefaultExecution","Inline image to block image","findIndex"];var es,ns;es=ts,ns=250,function(t){for(;--t;)es.push(es.shift())}(++ns);const is=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[is("0x22")](){const t=this[is("0x3f")];if(!t[is("0x5c")][is("0x42")](is("0x36")))return;const e=t[is("0x5c")][is("0x31")](is("0x41")),n=t[is("0x5c")][is("0x31")](is("0x1c")),i=t[is("0x14")];e[is("0x44")](is("0x4a")),e._descriptionFactory.registerElementLabel(is("0x49"),(t=>Yi(i,is("0x5"),t))),e._descriptionFactory.registerElementLabel(is("0x4e"),(t=>Yi(i,is("0x61"),t))),e[is("0x51")][is("0x3")](is("0x13"),(()=>Yi(i,is("0x4c")))),t.plugins[is("0x42")](is("0x57"))&&e.enableCommand(is("0xf")),t[is("0x5c")][is("0x42")]("ImageBlockEditing")&&t.plugins.has(is("0x40"))&&(e[is("0x44")](is("0x35"),((i,r)=>{const o=n[is("0x3c")](t[is("0x1f")][is("0x23")].selection);t[is("0x1f")][is("0x1e")]((()=>{e[is("0x9")](o,{commandName:is("0x35"),commandParams:[r]},[],is("0x5f"))}))})),e[is("0x44")](is("0x16"),((i,r)=>{t.model[is("0x1e")]((o=>{let x=n.getClosestSelectedImageElement(t[is("0x1f")][is("0x23")][is("0x3d")]),a=o[is("0x11")](x);const c=s.LivePosition[is("0xa")](a.start,is("0x10")),l=s.LivePosition.fromPosition(a[is("0x6")],is("0x2f"));e[is("0x29")]((()=>i(r))),x=n[is("0x3c")](t[is("0x1f")].document[is("0x3d")]),a=o[is("0x11")](x);const u=o[is("0x3b")](c,l);c[is("0x58")](),l[is("0x58")](),e[is("0x9")](x,{commandName:is("0x35"),commandParams:[r]},[],is("0x4")),u[is("0x32")][is("0x1b")](a[is("0x32")])&&e[is("0x52")](o[is("0x3b")](u[is("0x32")],a[is("0x32")]),"convertInlineImageToBlock"),a.end[is("0x1b")](u[is("0x6")])&&e[is("0x52")](o[is("0x3b")](a[is("0x6")],u[is("0x6")]),"convertInlineImageToBlock")}))})),e[is("0xc")].registerCustomCallback(is("0x2"),"convertInlineImageToBlock",is("0x2c"),(()=>!1)),e[is("0xc")][is("0x60")](is("0x2"),is("0x4"),"accept",(()=>!1)),e[is("0xc")][is("0x60")]("formatBlock",is("0x4"),is("0x19"),e[is("0xc")].getSuggestionCallback(is("0x2"),"",is("0x20"))),e._suggestionFactory[is("0x60")](is("0x25"),is("0x4"),is("0x2c"),(()=>!1)),e[is("0xc")][is("0x60")](is("0x25"),is("0x4"),is("0x19"),(([n])=>{const i=e._suggestionFactory[is("0x2d")](is("0x25"),"",is("0x19"));let r=n.start,o=n.end;const s=t[is("0x1f")][is("0x2e")].getNearestSelectionRange(r,is("0x4d")),x=t[is("0x1f")][is("0x2e")].getNearestSelectionRange(o,is("0x1a"));s[is("0x1d")]&&(r=s[is("0x32")]),x[is("0x1d")]&&(o=x.end),i([t[is("0x1f")][is("0x3b")](r,o)])})),e[is("0xc")].registerCustomCallback("formatBlock",is("0x4"),is("0x27"),x),e._suggestionFactory[is("0x60")](is("0x25"),is("0x4"),"chain",x)),t[is("0x5c")][is("0x42")](is("0x15"))&&(e.enableCommand(is("0x26"),((i,r)=>{const o=t[is("0x5c")].get(is("0x59"));let s=n[is("0x3c")](t.model[is("0x23")][is("0x3d")]),x=o[is("0x39")](s);t[is("0x1f")].change((()=>{if(x)return void e.markDeletion(t[is("0x1f")][is("0x11")](x));const a=n.isBlockImage(s);i(r),s=n[is("0x3c")](t[is("0x1f")].document[is("0x3d")]),x=o[is("0x39")](s),e.markInsertion(t[is("0x1f")].createRangeOn(x),a?null:is("0x5a"))}))})),e[is("0xc")].registerCustomCallback(is("0x25"),is("0x5a"),is("0x27"),x));const r=[{type:is("0x2"),subType:is("0x34")},{type:is("0x25"),subType:is("0x5a")},{type:is("0x2"),subType:is("0x4")},{type:is("0x25"),subType:is("0x4")}];function o(t,i){const o=r.findIndex((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=r[is("0x2b")]((({type:t,subType:e})=>i.type==t&&i.subType==e));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=i[is("0x24")]();if((0==o||1==o)&&2==s&&x[is("0x7")](a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,is("0x25")).filter((({suggestion:t,meta:e})=>e.isOwn&&is("0x4")==t.subType));if(t[is("0x33")]>1&&a.end.isEqual(x.start))return!0;if(1==t.length&&(x[is("0x32")][is("0xe")](a[is("0x6")])||x[is("0x6")][is("0xe")](a[is("0x32")])))return!0}if(3==o&&3==s&&x.start.isBefore(a[is("0x32")])){const t=x[is("0x6")][is("0x1")],e=a[is("0x32")].nodeBefore;return n[is("0x47")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[is("0x5c")][is("0x42")](is("0x37"))&&(e[is("0x0")](is("0x56"),[],[is("0x38")]),e[is("0x51")].registerAttributeLabel(is("0x38"),Yi(i,is("0x43")))),t.plugins.has("ImageTextAlternativeEditing")&&e._enableDefaultAttributesIntegration("imageTextAlternative",[],["alt"]),e._descriptionFactory[is("0x3e")]((t=>{if(r[is("0x5d")]((({type:e,subType:n})=>t[is("0xb")]==e&&t.subType==n)))return t[is("0x4f")]?{}:void 0})),e[is("0x51")].registerDescriptionCallback((t=>{if(is("0x25")==t.type||is("0xd")==t[is("0xb")]){const e=t.getContainedElement();if(e&&e.is(is("0x50"),is("0x13")))return{type:is("0x25")==t.type?is("0x30"):is("0x21"),element:e,quantity:1}}})),e._descriptionFactory[is("0x3e")]((t=>is("0x2")==t[is("0xb")]&&is("0x4")==t[is("0x48")]?{type:is("0x45"),content:is("0x2a")}:"formatBlock"==t[is("0xb")]&&is("0x5f")==t[is("0x48")]?{type:is("0x45"),content:is("0x4b")}:void 0)),e._descriptionFactory[is("0x3e")]((t=>{if(is("0x54")!=t.type)return;const{data:e}=t;if(!e||"alt"!=e[is("0x18")])return;const n=e[is("0x28")];return n?{type:is("0x45"),content:Yi(i,is("0x55"),'"'+n+'"')}:{type:is("0x45"),content:Yi(i,is("0x3a"))}})),this._registerLegacyDescription()}[is("0x46")](){const t=this.editor,e=t.locale;t[is("0x5c")][is("0x31")](is("0x41"))._descriptionFactory[is("0x3e")]((t=>{if(is("0x2")!=t[is("0xb")]&&is("0x53")!=t[is("0xb")])return;const{data:n}=t;if(n){if(is("0x5b")==n[is("0x12")]){const t=n.commandParams[0][is("0x28")];return t?{type:is("0x45"),content:Yi(e,is("0x55"),'"'+t+'"')}:{type:is("0x45"),content:Yi(e,is("0x3a"))}}if(is("0x56")==n[is("0x12")]){const t=n.commandParams[0][is("0x8")];return t?{type:is("0x45"),content:Yi(e,is("0x17"),t)}:{type:is("0x45"),content:Yi(e,is("0x5e"))}}}}))}}const os=["_descriptionFactory","plugins","_suggestionFactory","locale","newValue","oldValue","_handleLegacySuggestions","editor","_registerLegacyDescription","accept","discard","formatBlock","*Replace image URL*","key","registerDescriptionCallback","formatInline","src","has","afterInit","type","TrackChangesEditing","replaceImageSource","format","attribute","get","ImageEditing","registerCustomCallback"];var ss,xs;ss=os,xs=243,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return os[t-=0]};class cs extends t.Plugin{[as("0x12")](){if(!this.editor[as("0x1")][as("0x11")](as("0x19")))return;const t=this[as("0x7")][as("0x3")],e=this.editor[as("0x1")][as("0x18")](as("0x14"));e._enableDefaultAttributesIntegration(as("0x15"),[],[as("0x10")]),e[as("0x0")][as("0xe")]((e=>{if(as("0x17")!=e[as("0x13")])return;const{data:n}=e;return n&&as("0x10")==n[as("0xd")]?n[as("0x4")]&&n[as("0x5")]?{type:as("0x16"),content:Yi(t,as("0xc"))}:{type:"format",content:""}:void 0})),this[as("0x6")]()}[as("0x6")](){const t=this[as("0x7")][as("0x1")].get("TrackChangesEditing");t[as("0x2")][as("0x1a")](as("0xb"),"replaceImageSource",as("0x9"),t[as("0x2")].getSuggestionCallback(as("0xb"),null,as("0xa"))),t[as("0x2")][as("0x1a")]("formatBlock",as("0x15"),as("0xa"),t[as("0x2")].getSuggestionCallback(as("0xb"),null,"accept")),this._registerLegacyDescription()}[as("0x8")](){const t=this[as("0x7")],e=t.locale;t.plugins[as("0x18")]("TrackChangesEditing")[as("0x0")][as("0xe")]((t=>{if("formatBlock"!=t[as("0x13")]&&as("0xf")!=t[as("0x13")])return;const{data:n}=t;return n&&as("0x15")==n.commandName?{type:as("0x16"),content:Yi(e,"*Format:* replace image URL")}:void 0}))}}const ls=["next","refresh","getFirstRange","commandParams","has","markBlockFormat","_descriptionFactory","document","FORMAT_SIDE_IMAGE","from","normalizedStyles","filter","commands","hasSuggestion","getClosestSelectedImageElement","getChangedMarkers","formatInline","start","end","isBefore","chain","side","getContainedElement","name","nodeAfter","imageStylePreApply","differ","type","ImageUtils","locale","_registerLegacyDescription","commandReversedParams","get","enableCommand","subType","head","isInlineImage","ImageStyleEditing","isBlockImage","markInlineFormat","findIndex","imageStyle","value","length","newRange","isOwn","convertInlineImageToBlock","_splitMarkerName","commandName","Users","afterInit","*Format:* %0","insertion","formatBlock","change","accept","registerCustomCallback","imageStylePostApply","_suggestionFactory","author","discardSuggestion","join","isEqual","registerDescriptionCallback","selection","toLowerCase","model","getSuggestionCallback","imageCaption","format","_findSuggestions","isInContent","plugins","editor","discard"];var us,ds;us=ls,ds=472,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x1c")](){const t=this[gs("0x33")];if(!t[gs("0x32")][gs("0x39")]("ImageStyleEditing"))return;const n=t.plugins[gs("0xa")]("TrackChangesEditing"),i=t.plugins[gs("0xa")](gs("0x6")),r={};n[gs("0xb")]("imageStyle",((r,o)=>{const s=t.plugins[gs("0xa")](gs("0x1b")).me,x=t[gs("0x41")][gs("0xa")]("imageStyle");let a=i[gs("0x43")](t[gs("0x2c")][gs("0x3c")][gs("0x2a")]),c=t[gs("0x2c")].createRangeOn(a),l=x[gs("0x14")];if(l==o[gs("0x14")])return;const u={commandName:"imageStyle",commandParams:[o],formatGroupId:(0,e.uid)()};t.model[gs("0x20")]((()=>{if(n.getSuggestions()[gs("0x40")]((t=>t[gs("0x31")]&&s==t[gs("0x25")]&&("formatBlock"==t[gs("0x5")]||"formatInline"==t[gs("0x5")])&&("imageStylePreApply"==t[gs("0xc")]||gs("0x23")==t.subType)&&t[gs("0x37")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[gs("0xd")]))),a=i[gs("0x43")](t[gs("0x2c")][gs("0x3c")][gs("0x2a")]),c=t[gs("0x2c")].createRangeOn(a),x[gs("0x36")](),t[gs("0x41")].get("imageTypeInline")[gs("0x36")](),t[gs("0x41")].get("imageTypeBlock")[gs("0x36")](),l=x.value,l!=o[gs("0x14")])return i[gs("0xe")](a)&&x.shouldConvertImageType(o[gs("0x14")],a)?(r({...o,setImageSizes:!1}),a=i.getClosestSelectedImageElement(t[gs("0x2c")][gs("0x3c")][gs("0x2a")]),void n[gs("0x3a")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x3"))):void(i[gs("0x10")](a)?n[gs("0x3a")](a,u,[],gs("0x23")):n[gs("0x11")](c,u,gs("0x23")))}))}));for(const e of t[gs("0x32")].get(gs("0xf"))[gs("0x3f")])r[e[gs("0x1")]]=e.title[gs("0x2b")]();n[gs("0x24")][gs("0x22")](gs("0x1f"),"imageStylePreApply",gs("0x27"),(()=>!1)),n._suggestionFactory.registerCustomCallback("formatBlock",gs("0x23"),gs("0x27"),(()=>!1)),n[gs("0x24")][gs("0x22")](gs("0x45"),gs("0x23"),gs("0x27"),(()=>!1)),n._suggestionFactory.registerCustomCallback("formatBlock",gs("0x3"),gs("0x21"),(([t])=>{i.setImageNaturalSizeAttributes(t[gs("0x0")]())})),n[gs("0x24")].registerCustomCallback("formatBlock","imageStylePreApply",gs("0x34"),((t,e)=>{n._suggestionFactory[gs("0x2d")](gs("0x1f"),"",gs("0x21"))(t,{commandName:e[gs("0x1a")],commandParams:e[gs("0x9")]})})),n[gs("0x24")][gs("0x22")]("formatBlock","imageStylePreApply",gs("0x49"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:gs("0x1f"),subType:gs("0x3")},{type:gs("0x1e"),subType:"imageCaption"},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:gs("0x1e"),subType:"convertInlineImageToBlock"}];function s(t,e){const r=o[gs("0x12")]((({type:e,subType:n})=>t.type==e&&t[gs("0xc")]==n)),s=o[gs("0x12")]((({type:t,subType:n})=>e.type==t&&e[gs("0xc")]==n));if(r<0||s<0)return!1;const x=t[gs("0x37")](),a=e[gs("0x37")]();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=n[gs("0x30")](x,gs("0x1e"))[gs("0x40")]((({suggestion:t,meta:e})=>e[gs("0x17")]&&gs("0x18")==t.subType));if(t[gs("0x15")]>1&&a[gs("0x47")].isEqual(x[gs("0x46")]))return!0;if(1==t[gs("0x15")]&&(x[gs("0x46")].isEqual(a[gs("0x47")])||x[gs("0x47")][gs("0x28")](a[gs("0x46")])))return!0}if(3==r&&3==s&&x[gs("0x46")][gs("0x48")](a.start)){const t=x.end[gs("0x2")],e=a.start.nodeBefore;return i[gs("0x10")](t)&&t===e}return!1}t[gs("0x2c")][gs("0x3c")].registerPostFixer((()=>{let e=!1;const r=Array[gs("0x3e")](t.model[gs("0x3c")][gs("0x4")][gs("0x44")]());for(const{name:t,data:o}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x19")](t);if("suggestion"==r&&n[gs("0x42")](a)){if(gs("0x1f")==s&&(gs("0x3")==x||gs("0x23")==x)){const t=n.getSuggestion(a);if(o[gs("0x16")]){const r=t.getFirstRange().getContainedElement();if(i.isBlockImage(r))continue;n[gs("0x26")](t),e=!0}}if(gs("0x1e")==s&&gs("0x2e")==x&&!o[gs("0x16")]){const t=n.getSuggestion(a);t[gs("0x35")]&&t.next.isInContent&&(n[gs("0x26")](t.next),e=!0)}}}return e})),this[gs("0x8")](r)}[gs("0x8")](t){const e=this[gs("0x33")],n=e[gs("0x7")];e[gs("0x32")][gs("0xa")]("TrackChangesEditing")[gs("0x3b")][gs("0x29")]((e=>{if(gs("0x1f")!=e[gs("0x5")]&&gs("0x45")!=e.type)return;const{data:i}=e;if(!i||gs("0x13")!=i[gs("0x1a")])return;const r=i[gs("0x38")][0][gs("0x14")];return o=gs("0x4a")===r?Yi(n,gs("0x3d")):t[r]||r,{type:gs("0x2f"),content:Yi(n,gs("0x1d"),o)};var o}))}}const ms=["collaboration_features","_handleImportedData","importWord","execute","forEach","afterInit","value","lowest","enableCommand","Users","editor","commands","dataInsert","get","_trackChangesExecuted","bind","plugins","listenTo","TrackChangesEditing","track_changes","high","_trackChangesValueDuringImport","trackChanges","_setSuggestionData"];var hs,ps;hs=ms,ps=354,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x3")]=!1,this[bs("0x14")]=!1}[bs("0xb")](){const t=this.editor,e=t[bs("0x11")][bs("0x13")]("importWord"),n=t[bs("0x11")].get(bs("0x4"));e&&(e.on(bs("0x9"),((t,[,e])=>{this._trackChangesValueDuringImport=n[bs("0xc")],e[bs("0x6")][bs("0x1")]=!this[bs("0x3")]}),{priority:bs("0x2")}),this[bs("0x17")](e,bs("0x12"),this[bs("0x7")][bs("0x15")](this)),this.listenTo(e,bs("0x12"),(()=>{this[bs("0x14")]&&(n[bs("0x9")](),this._trackChangesExecuted=!1)}),{priority:bs("0xd")}),t[bs("0x16")][bs("0x13")](bs("0x0"))[bs("0xe")](bs("0x8")))}[bs("0x7")](t,e){const{suggestions:n}=e,i=this.editor[bs("0x11")].get(bs("0x4")),r=i[bs("0xc")];this[bs("0x3")]!==r&&(i.execute(),this[bs("0x14")]=!0),n&&n[bs("0xa")]((({id:t,type:e,author:n,created_at:i})=>{const r={id:t,type:e,authorId:this[bs("0x10")].plugins[bs("0x13")](bs("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:i?new Date(i):new Date,source:bs("0x8")}}};this[bs("0x10")][bs("0x16")][bs("0x13")](bs("0x0"))[bs("0x5")](r)}))}}const _s=["_descriptionFactory","outdentBlock","TrackChangesEditing","getItems","registerDescriptionCallback","_registerBlockAttribute","plugins","commandName","IndentEditing","*Indent:* %0","type","locale","editor","has","formatBlock","blockIndent","enableCommand","registerAttributeLabel","indentBlock","format","IndentBlock","*Outdent:* %0","get"];var Ts,ys;Ts=_s,ys=179,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this[Cs("0x11")],e=t[Cs("0xb")][Cs("0x4")]("TrackChangesEditing");if(t.plugins[Cs("0x12")](Cs("0xd"))&&(e[Cs("0x15")]("indent"),e.enableCommand("outdent")),t[Cs("0xb")][Cs("0x12")](Cs("0x2")))for(const t of["indentBlock",Cs("0x6")])e._enableDefaultAttributesIntegration(t);const n=t.locale;e[Cs("0xa")]("blockIndent"),e[Cs("0x5")][Cs("0x16")](Cs("0x14"),Yi(n,"FORMAT_INDENT")),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Cs("0x11")],e=t[Cs("0x10")],n=t[Cs("0xb")][Cs("0x4")](Cs("0x7"));n._descriptionFactory[Cs("0x9")]((t=>{if(Cs("0x13")!=t[Cs("0xf")])return;const{data:i}=t;if(!i)return;if(Cs("0x0")!=i[Cs("0xc")]&&Cs("0x6")!=i.commandName)return;const r=t[Cs("0x8")]()[0],o=n[Cs("0x5")].getItemLabel(r);return"indentBlock"==i[Cs("0xc")]?{type:Cs("0x1"),content:Yi(e,Cs("0xe"),o)}:"outdentBlock"==i[Cs("0xc")]?{type:Cs("0x1"),content:Yi(e,Cs("0x3"),o)}:void 0}))}}var ks,Is,Rs=["TrackChangesEditing","init","get","input","plugins","editor"];ks=Rs,Is=482,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var vs=function(t,e){return Rs[t-=0]};class Ss extends t.Plugin{static get requires(){return[Vr.Input]}[vs("0x5")](){this[vs("0x3")][vs("0x2")][vs("0x0")](vs("0x4")).enableCommand(vs("0x1"))}}const Ns=["linkHref","*Set link:* %0","link","registerDescriptionCallback","_descriptionFactory","unlink","plugins","key","label","_enableDefaultAttributesIntegration","locale","*Remove link*","manualDecorators","toLowerCase","commands","type","TrackChangesEditing","has","get","editor","map","link (","attribute","registerAttributeLabel","format","_registerLegacyDescription","afterInit"];var Ls,Ms;Ls=Ns,Ms=289,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x7")](){const t=this[ws("0x0")];if(!t[ws("0xe")][ws("0x19")]("LinkEditing"))return;const e=t[ws("0xe")][ws("0x1a")](ws("0x18")),n=t[ws("0x16")].get(ws("0xa"));e[ws("0x11")](ws("0xa"),["linkHref",...n[ws("0x14")][ws("0x1")]((t=>t.id))]),e[ws("0x11")]("unlink");for(const t of n[ws("0x14")])e[ws("0xc")][ws("0x4")](t.id,ws("0x2")+t[ws("0x10")][ws("0x15")]()+")");e[ws("0xc")][ws("0xb")]((e=>{if(ws("0x3")!=e[ws("0x17")])return;const{data:n}=e;if(!n||ws("0x8")!=n[ws("0xf")])return;const i=n.newValue,r=t[ws("0x12")];return{type:ws("0x5"),content:null==i?Yi(r,ws("0x13")):Yi(r,ws("0x9"),'"'+i+'"')}})),this[ws("0x6")]()}[ws("0x6")](){const t=this[ws("0x0")],e=t[ws("0x12")];t[ws("0xe")][ws("0x1a")](ws("0x18"))._descriptionFactory[ws("0xb")]((t=>{if("formatInline"!=t[ws("0x17")])return;const{data:n}=t;if(n){if(ws("0xa")==n.commandName){const t=n.commandParams[0];return{type:ws("0x5"),content:Yi(e,ws("0x9"),'"'+t+'"')}}return ws("0xd")==n.commandName?{type:ws("0x5"),content:Yi(e,"*Remove link*")}:void 0}}))}}const Fs=["listType","registerElementLabel","selection","*Indent:* %0","nextSibling","todoList","formatInline","ELEMENT_TODO_LIST","_descriptionFactory","ListEditing","before","paragraph","value","List","todo","commands","commandParams","plugins","numbered","registerDescriptionCallback","afterInit","TrackChangesEditing","from","createPositionAt","get","name","blockName","markBlockFormat","type","filter","length","enableCommand","numberedList","checkChild","getAttribute","indentList","has","*Check item*","bulletedList","ELEMENT_BULLETED_LIST","ELEMENT_LIST_ITEM","format","commandName","*Outdent:* %0","locale","previousSibling","forceValue","add","element","listIndent","outdentList","*Change to:* %0","ELEMENT_NUMBERED_LIST","slice","model","change","checkTodoList","listItem","_selectedElements","document","createRange"];var Ds,Bs;Ds=Fs,Bs=217,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x2f")](){const t=this.editor,e=t[Ps("0xa")];if(!t[Ps("0x2c")][Ps("0x2")](Ps("0x24")))return;const n=t[Ps("0x2c")][Ps("0x33")](Ps("0x30")),i=t[Ps("0x2c")][Ps("0x2")]("TodoListEditing");function r(e){return()=>{const i=t[Ps("0x14")][Ps("0x19")][Ps("0x1d")],r=t.commands[Ps("0x33")](e);if(r.value)return void t.execute(Ps("0x26"),{});const o=e[Ps("0x13")](0,-4),s=function(t,e,n){let i=Array[Ps("0x31")](t)[Ps("0x38")]((t=>{return e=t,(i=n)[Ps("0x3c")](e.parent,"listItem")&&!i.isObject(e);var e,i}));i=i[Ps("0x38")]((t=>!t.is("element",Ps("0x17"))||t.getAttribute(Ps("0x1b"))!=e));const r=new Set;for(const t of i)t.is(Ps("0xe"),Ps("0x17"))?r[Ps("0xd")](js(t)):r.add(t);return Array[Ps("0x31")](r)}(i.getSelectedBlocks(),o,t[Ps("0x14")].schema);t.model[Ps("0x15")]((()=>{for(const t of s)n[Ps("0x36")](t,{commandName:e,commandParams:[{forceValue:!r[Ps("0x27")]}],formatGroupId:Ps("0x35")},Gs(t))}))}}function o(e){return()=>{const i=function(t){let e=Array.from(t);const n=e.findIndex((t=>"listItem"!=t[Ps("0x34")]));return n>-1&&(e=e[Ps("0x13")](0,n)),e}(t[Ps("0x14")].document[Ps("0x1d")].getSelectedBlocks()),r=t[Ps("0x14")][Ps("0x1a")](t[Ps("0x14")].createPositionAt(i[0],Ps("0x25")),t[Ps("0x14")][Ps("0x32")](i[i[Ps("0x39")]-1],"end"));t.model[Ps("0x15")]((()=>{n[Ps("0x36")](r,{commandName:e,commandParams:[],formatGroupId:Ps("0xf")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x1f")];for(;t&&t.getAttribute(Ps("0xf"))>n.getAttribute(Ps("0xf"));)e[Ps("0xd")](t),t=t[Ps("0x1f")]}return Array[Ps("0x31")](e)}(i))}))}}n[Ps("0x3a")](Ps("0x3b"),r(Ps("0x3b"))),n.enableCommand(Ps("0x4"),r("bulletedList")),i&&n[Ps("0x3a")](Ps("0x20"),r("todoList")),n[Ps("0x3a")]("indentList",o("indentList")),n[Ps("0x3a")](Ps("0x10"),o(Ps("0x10"))),i&&n.enableCommand(Ps("0x16"),(()=>{const e=t[Ps("0x2a")].get(Ps("0x16")),i=Array[Ps("0x31")](e[Ps("0x18")]);i.filter((t=>t[Ps("0x0")]("todoListChecked")!=e.value)),t[Ps("0x14")][Ps("0x15")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Ps("0x16"),commandParams:[{forceValue:!e.value}]})}))})),n._descriptionFactory[Ps("0x1c")](Ps("0x17"),(t=>Yi(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x23")][Ps("0x2e")]((t=>{if("formatBlock"!=t.type&&Ps("0x21")!=t[Ps("0x37")])return;const{data:n}=t;if(n){if(Ps("0x3b")==n[Ps("0x8")]||"bulletedList"==n[Ps("0x8")]||Ps("0x20")==n[Ps("0x8")])switch(n[Ps("0x8")].replace(Ps("0x28"),"")){case"bulleted":return i(Yi(e,Ps("0x5")));case Ps("0x2d"):return i(Yi(e,Ps("0x12")));case Ps("0x29"):return i(Yi(e,Ps("0x22")))}if(Ps("0x1")==n[Ps("0x8")])return{type:Ps("0x7"),content:Yi(e,Ps("0x1e"),Yi(e,Ps("0x6")))};if(Ps("0x10")==n[Ps("0x8")])return{type:"format",content:Yi(e,Ps("0x9"),Yi(e,Ps("0x6")))};if(Ps("0x16")==n[Ps("0x8")])return n[Ps("0x2b")][0][Ps("0xc")]?{type:Ps("0x7"),content:Yi(e,Ps("0x3"))}:{type:Ps("0x7"),content:Yi(e,"*Uncheck item*")}}function i(t){return{type:"format",content:Yi(e,Ps("0x11"),t)}}}))}}function js(t){const e=t[Ps("0x0")](Ps("0xf"));if(0==e)return t;let n=t;for(;t[Ps("0xb")]&&t[Ps("0xb")].is("element","listItem");){const i=t[Ps("0xb")][Ps("0x0")](Ps("0xf"));if(i==e)n=t.previousSibling;else if(i<e)break;t=t[Ps("0xb")]}return n}function Gs(t){const e=[];if(t.is("element",Ps("0x17"))&&t[Ps("0x0")](Ps("0xf"))>0){let n=t[Ps("0x1f")];for(;n&&"listItem"==n[Ps("0x34")]&&n.getAttribute(Ps("0xf"))==t[Ps("0x0")](Ps("0xf"));)e.push(n),n=n[Ps("0x1f")]}return e}const Vs=["commandParams","toUpperCase","getFirstPosition","list.properties","flat","type","listType","filter","getSiblingNodes","from","startIndex","map","has","markMultiRangeBlockFormat","formatInline","*Format:* set order to reversed","createRange","document","ListUtils","config","parent","formatBlock","editor","*Format:* set order to regular","_LIST_","ListPropertiesEditing","locale","numbered","reversed","listItem","_descriptionFactory","getListTypeFromListStyleType","length","listStyle","plugins","handleDescriptions","forward","registerDescriptionCallback","selection","_getSuggestionBlocks","getAttribute","change","_getTranslationKeyForListStyle","styles","*Format:* set start index to %0","getLastPosition","listReversed","backward","handleListStartCommand","element","before","TrackChangesEditing","get","handleListReversedCommand","getSelectedBlocks","model","enableCommand","_getSuggestionBlocksForListStyle","handleListStyleCommand","bind","createPositionAt","format"];var Hs,zs;Hs=Vs,zs=290,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{afterInit(){if(!this.editor[Ws("0x36")][Ws("0x20")](Ws("0x2d")))return;const t=this[Ws("0x2a")][Ws("0x27")].get(Ws("0x17")),e=this[Ws("0x2a")][Ws("0x36")].get("TrackChangesEditing");t[Ws("0x1")]&&e[Ws("0xe")](Ws("0x35"),this[Ws("0x10")].bind(this)),t[Ws("0x30")]&&e[Ws("0xe")](Ws("0x4"),this.handleListReversedCommand[Ws("0x11")](this)),t[Ws("0x1e")]&&e[Ws("0xe")]("listStart",this[Ws("0x6")][Ws("0x11")](this)),e[Ws("0x32")][Ws("0x39")](this[Ws("0x37")].bind(this))}handleListStyleCommand(t,e={}){const n=this[Ws("0x2a")][Ws("0x36")][Ws("0xa")](Ws("0x9")),i=this[Ws("0xf")]();this[Ws("0x2a")][Ws("0xd")][Ws("0x3d")]((()=>{n[Ws("0x21")](i,{commandName:"listStyle",commandParams:[{type:e[Ws("0x19")]}],formatGroupId:Ws("0x35")})}))}[Ws("0xb")](t,e={}){const n=this[Ws("0x2a")][Ws("0x36")].get(Ws("0x9")),i=this[Ws("0x3b")]((t=>t.is(Ws("0x7"),Ws("0x31"))&&Ws("0x2f")===t[Ws("0x3c")]("listType")));if(i.length<1)return;const r=i[Ws("0x1f")]((t=>this.editor[Ws("0xd")].createRange(this[Ws("0x2a")][Ws("0xd")][Ws("0x12")](t,Ws("0x8")),this[Ws("0x2a")].model[Ws("0x12")](t,0))));this[Ws("0x2a")][Ws("0xd")].change((()=>{n[Ws("0x21")](r,{commandName:Ws("0x4"),commandParams:[{reversed:e[Ws("0x30")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this[Ws("0x2a")].plugins[Ws("0xa")](Ws("0x9")),i=this._getSuggestionBlocks((t=>t.is(Ws("0x7"),"listItem")&&Ws("0x2f")===t.getAttribute(Ws("0x1a"))));if(i[Ws("0x34")]<1)return;const r=i[Ws("0x1f")]((t=>this[Ws("0x2a")][Ws("0xd")][Ws("0x24")](this.editor[Ws("0xd")][Ws("0x12")](t,Ws("0x8")),this[Ws("0x2a")].model[Ws("0x12")](t,0))));this[Ws("0x2a")][Ws("0xd")][Ws("0x3d")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:"listStart",commandParams:[{startIndex:e[Ws("0x1e")]}],formatGroupId:"listStart"})}))}[Ws("0x37")](t){if(Ws("0x29")!=t.type&&Ws("0x22")!=t.type)return;const e=this[Ws("0x2a")][Ws("0x2e")],{data:n}=t;if(!n)return;let i,r;switch(n.commandName){case Ws("0x35"):i="*Change to:* %0",r={type:Ws("0x13"),content:Yi(e,i,Yi(e,this[Ws("0x0")](n[Ws("0x14")][0][Ws("0x19")])))};break;case Ws("0x4"):i=n[Ws("0x14")][0][Ws("0x30")]?Ws("0x23"):Ws("0x2b"),r={type:Ws("0x13"),content:Yi(e,i)};break;case"listStart":i=Ws("0x2"),r={type:"format",content:Yi(e,i,n[Ws("0x14")][0][Ws("0x1e")])}}return r}[Ws("0xf")](){var t,e,n,i;const r=this[Ws("0x2a")][Ws("0x36")][Ws("0xa")](Ws("0x26"));let o=Array[Ws("0x1d")](this[Ws("0x2a")][Ws("0xd")][Ws("0x25")][Ws("0x3a")][Ws("0xc")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Ws("0x7"),"listItem"))&&o.unshift(...r[Ws("0x1c")](this[Ws("0x2a")].model[Ws("0x25")][Ws("0x3a")].getFirstPosition(),Ws("0x5"))),(null===(e=o[o.length-1])||void 0===e?void 0:e.is(Ws("0x7"),Ws("0x31")))&&o.push(...r[Ws("0x1c")](this[Ws("0x2a")][Ws("0xd")].document.selection[Ws("0x3")](),Ws("0x38"))),o=[...new Set(o)],(null===(i=null===(n=this[Ws("0x2a")][Ws("0xd")][Ws("0x25")][Ws("0x3a")][Ws("0x16")]())||void 0===n?void 0:n[Ws("0x28")])||void 0===i?void 0:i.is(Ws("0x7"),Ws("0x31")))&&(o=o[Ws("0x1b")]((t=>t.is(Ws("0x7"),"listItem")))),o}[Ws("0x3b")](t){const e=this[Ws("0x2a")][Ws("0x36")][Ws("0xa")]("ListUtils");let n=Array[Ws("0x1d")](this[Ws("0x2a")][Ws("0xd")][Ws("0x25")][Ws("0x3a")][Ws("0xc")]())[Ws("0x1b")](t)[Ws("0x1f")]((t=>{const n=this[Ws("0x2a")][Ws("0xd")][Ws("0x12")](t,0);return[...e[Ws("0x1c")](n,Ws("0x5")),...e[Ws("0x1c")](n,Ws("0x38"))]}))[Ws("0x18")]();return n=[...new Set(n)],n}[Ws("0x0")](t){return"ELEMENT_"+this[Ws("0x2a")].plugins[Ws("0xa")](Ws("0x26"))[Ws("0x33")](t).toUpperCase()+Ws("0x2c")+t[Ws("0x15")]().replace(/-/g,"_")}}const qs=["stop","TrackChangesEditing","editor","showSuggestionHighlights","high","registerElementLabel","enableCommand","locale","get","afterInit","elementToElement","options","data","mediaEmbed","plugins","attribute:url:media","media","dataDowncast","_descriptionFactory"];var Xs,$s;Xs=qs,$s=184,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Qs extends t.Plugin{[Zs("0xf")](){const t=this[Zs("0x8")];if(!t[Zs("0x1")].has("MediaEmbedEditing"))return;const e=t[Zs("0x1")][Zs("0xe")](Zs("0x7")),n=t[Zs("0xd")];e[Zs("0xc")](Zs("0x0")),e[Zs("0x5")][Zs("0xb")](Zs("0x3"),(t=>Yi(n,"ELEMENT_MEDIA",t))),t.conversion.for(Zs("0x4"))[Zs("0x10")]({model:Zs("0x3"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e.createEmptyElement("div")},converterPriority:Zs("0xa")}),t[Zs("0x12")].downcastDispatcher.on(Zs("0x2"),((t,e,n)=>{n[Zs("0x11")][Zs("0x9")]&&t[Zs("0x6")]()}),{priority:Zs("0xa")})}}const Ys=["MentionEditing","has","plugins","TrackChangesEditing","get","enableCommand","editor"];var Js,tx;Js=Ys,tx=330,function(t){for(;--t;)Js.push(Js.shift())}(++tx);const ex=function(t,e){return Ys[t-=0]};class nx extends t.Plugin{afterInit(){const t=this[ex("0x5")];t[ex("0x1")][ex("0x0")](ex("0x6"))&&t[ex("0x1")][ex("0x3")](ex("0x2"))[ex("0x4")]("mention")}}const ix=["_descriptionFactory","plugins","registerElementLabel","get","ELEMENT_PAGE_BREAK","afterInit","PageBreakEditing","locale","has","pageBreak","editor","TrackChangesEditing"];var rx,ox;rx=ix,ox=198,function(t){for(;--t;)rx.push(rx.shift())}(++ox);const sx=function(t,e){return ix[t-=0]};class xx extends t.Plugin{[sx("0xb")](){const t=this[sx("0x4")];if(!t[sx("0x7")][sx("0x2")](sx("0x0")))return;t.plugins[sx("0x9")](sx("0x5")).enableCommand(sx("0x3"));const e=t[sx("0x7")][sx("0x9")](sx("0x5")),n=t[sx("0x1")];e[sx("0x6")][sx("0x8")](sx("0x3"),(t=>Yi(n,sx("0xa"),t)))}}const ax=["format","model","getFirstRange","afterInit","ELEMENT_PARAGRAPH","schema","downcastDispatcher","start","markerName","TrackChangesEditing","writer","showSuggestionHighlights","activeMarkers","registerDescriptionCallback","locale","span","type","mapper","data","end","markerRange","isTouching","name","isBlock","get","isLimit","bindElementToMarker","highest","checkChild","paragraph","addMarker:suggestion:insertion","ck-suggestion-marker--active","commandName","consumable","registerElementLabel","insertion","has","nodeAfter","editor","formatBlock","_descriptionFactory","Paragraph","insert","getItemLabel","*Change to:* %0","*Insert:* %0","plugins","options","toViewPosition","enableCommand"];var cx,lx;cx=ax,lx=252,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x1")](){const t=this[ux("0x24")];if(!t.plugins[ux("0x22")](ux("0x27")))return;const e=t[ux("0xc")],n=t.plugins.get(ux("0x7"));n[ux("0x26")][ux("0x20")]("paragraph",(t=>Yi(e,ux("0x2"),t))),n._enableDefaultAttributesIntegration("paragraph"),n[ux("0x2f")]("insertParagraph"),t.editing[ux("0x4")].on(ux("0x1c"),gx(t),{priority:"highest"}),t[ux("0x10")][ux("0x4")].on("addMarker:suggestion:insertion",((e,n,i)=>{i[ux("0x2d")][ux("0x9")]&&gx(t,{showActiveMarker:!1})(e,n,i)}),{priority:ux("0x19")});const i=n[ux("0x26")];i[ux("0xb")]((n=>{if(ux("0x21")!==n[ux("0xe")])return;const{start:r,end:o}=n[ux("0x0")]();if(!r[ux("0x13")](o)||!r[ux("0x23")])return;const s=t.model.schema,x=r[ux("0x23")];return s[ux("0x15")](x)&&!s.isLimit(x)&&s[ux("0x1a")](x,"$text")?{type:ux("0x21"),content:Yi(e,ux("0x2b"),i[ux("0x29")](x,1))}:void 0})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ux("0x24")],e=t.locale;t[ux("0x2c")][ux("0x16")](ux("0x7"))[ux("0x26")].registerDescriptionCallback((t=>{if(ux("0x25")!=t[ux("0xe")])return;const{data:n}=t;return n&&ux("0x1b")==n[ux("0x1e")]?{type:ux("0x30"),content:Yi(e,ux("0x2a"),Yi(e,ux("0x2")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t[ux("0x2c")][ux("0x16")]("TrackChangesEditing"),s=i.markerRange[ux("0x5")],x=i[ux("0x12")][ux("0x11")],a=t[ux("0x31")][ux("0x3")];if(!s[ux("0x13")](x)||!s[ux("0x23")])return;const c=s[ux("0x23")];if(a[ux("0x15")](c)&&!a[ux("0x17")](c)&&a[ux("0x1a")](c,"$text")){if(!r[ux("0x1f")].consume(i[ux("0x12")],n[ux("0x14")]))return;const t=r[ux("0x8")].createUIElement(ux("0xd"),{class:"ck-suggestion-marker-split"}),s=r[ux("0xf")][ux("0x2e")](x);e&&o[ux("0xa")].includes(i[ux("0x6")])&&r[ux("0x8")].addClass(ux("0x1d"),t),r[ux("0x8")][ux("0x28")](s,t),r[ux("0xf")][ux("0x18")](t,i[ux("0x6")])}}}const fx=["has","afterInit","removeFormat","locale","get","_descriptionFactory","format","editor","formatBlock","_enableDefaultAttributesIntegration","RemoveFormatEditing","*Remove all formatting*","commandName","formatInline","TrackChangesEditing","registerDescriptionCallback","type","plugins","_registerLegacyDescription"];var mx,hx;mx=fx,hx=243,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x5")](){const t=this[px("0xb")];t.plugins[px("0x4")](px("0xe"))&&(t[px("0x2")][px("0x8")](px("0x12"))[px("0xd")](px("0x6")),this[px("0x3")]())}_registerLegacyDescription(){const t=this[px("0xb")];t[px("0x2")].get("TrackChangesEditing")[px("0x9")][px("0x0")]((e=>{if(px("0xc")!=e[px("0x1")]&&px("0x11")!=e[px("0x1")])return;const{data:n}=e;return n&&px("0x6")==n[px("0x10")]?{type:px("0xa"),content:Yi(t[px("0x7")],px("0xf"))}:void 0}))}}const Ex=["plugins","goToNextRestrictedEditingException","editor","get","RestrictedEditingModeEditing","acceptSuggestion","enableCommand","acceptAllSuggestions","has","afterInit","discardSuggestion","TrackChangesEditing","discardSelectedSuggestions","discardAllSuggestions"];var _x,Tx;_x=Ex,Tx=183,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x8")](){const t=this[yx("0x1")];if(!t[yx("0xd")][yx("0x7")](yx("0x3")))return;const e=t[yx("0xd")].get(yx("0xa"));e[yx("0x5")]("goToPreviousRestrictedEditingException"),e[yx("0x5")](yx("0x0"));const n=t.plugins[yx("0x2")]("RestrictedEditingModeEditing");n[yx("0x5")]("trackChanges"),n[yx("0x5")](yx("0x4")),n[yx("0x5")](yx("0x9")),n[yx("0x5")](yx("0x6")),n[yx("0x5")](yx("0xc")),n[yx("0x5")]("acceptSelectedSuggestions"),n[yx("0x5")](yx("0xb"))}}const Ax=["addMarker:suggestion:deletion","bindElementToMarker","downcastDispatcher","_descriptionFactory","addClass","registerElementLabel","split","ck-suggestion-marker-","writer","element","consumable","name","markerName","insert","enableCommand","editing","data","locale","addMarker:suggestion:insertion","ck-suggestion-marker--active","high","showSuggestionHighlights","includes","plugins","toViewPosition","createPositionBefore","TrackChangesEditing","getItems","deletion","mapper","createUIElement","editor","shiftEnter","markerRange","requires","merge","span","get"];var kx,Ix;kx=Ax,Ix=119,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class vx extends t.Plugin{static get[Rx("0x1d")](){return[lo.ShiftEnter]}init(){const t=this[Rx("0x1a")],e=t.plugins[Rx("0x20")](Rx("0x15"));e[Rx("0x9")](Rx("0x1b")),t[Rx("0xa")][Rx("0x23")].on(Rx("0xd"),Sx(t),{priority:Rx("0xf")}),t[Rx("0xa")][Rx("0x23")].on(Rx("0x21"),Sx(t),{priority:Rx("0xf")}),t[Rx("0xb")][Rx("0x23")].on("addMarker:suggestion",((e,n,i)=>{i.options[Rx("0x10")]&&Sx(t,{showActiveMarker:!1})(e,n,i)})),e[Rx("0x24")][Rx("0x0")]("softBreak",(e=>Yi(t[Rx("0xc")],"ELEMENT_LINE_BREAK",e)))}}function Sx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t[Rx("0x12")][Rx("0x20")](Rx("0x15"));if(!r[Rx("0x5")].test(i[Rx("0x1c")],n[Rx("0x6")]))return;const s=t.model;for(const t of i[Rx("0x1c")][Rx("0x16")]()){if(!t.is(Rx("0x4"),"softBreak"))continue;const n=Rx("0x17")==i.markerName[Rx("0x1")](":")[1]?Rx("0x1e"):"split",x=r.writer[Rx("0x19")](Rx("0x1f"),{class:Rx("0x2")+n}),a=r[Rx("0x18")][Rx("0x13")](s[Rx("0x14")](t));e&&o.activeMarkers[Rx("0x11")](i[Rx("0x7")])&&r[Rx("0x3")][Rx("0x25")](Rx("0xe"),x),r[Rx("0x3")][Rx("0x8")](a,x),r[Rx("0x18")][Rx("0x22")](x,i[Rx("0x7")])}}}const Nx=["FORMAT_RESTRICTED_ENABLED","restrictedEditingException","document","formatBlock","registerDescriptionCallback","StandardEditingModeEditing","locale","model","format","forceValue","get","type","_descriptionFactory","editor","TrackChangesEditing","selection","afterInit","from","FORMAT_RESTRICTED_DISABLED","plugins","markInlineFormat","isCollapsed"];var Lx,Mx;Lx=Nx,Mx=285,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x11")](){const t=this[wx("0xe")],e=t[wx("0x8")],n=t[wx("0x7")];if(!t.plugins.has(wx("0x6")))return;const i=t[wx("0x14")][wx("0xb")](wx("0xf")),r=wx("0x2"),o=t.commands[wx("0xb")](r);i.enableCommand(r,((t,n={})=>{const s=e[wx("0x3")][wx("0x10")];if(s[wx("0x0")])return void t(n);const x=void 0!==n[wx("0xa")]?n[wx("0xa")]:!o.value;e.change((()=>{const t=Array[wx("0x12")](s.getRanges());for(const n of t){const t=x?[n]:qr(r,n,e);for(const e of t)i[wx("0x15")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),i[wx("0xd")][wx("0x5")]((t=>{if(wx("0x4")!=t.type&&"formatInline"!=t[wx("0xc")])return;const{data:e}=t;return e&&e.commandName==r?e.commandParams[0].forceValue?{type:"format",content:Yi(n,wx("0x1"))}:{type:wx("0x9"),content:Yi(n,wx("0x13"))}:void 0}))}}const Fx=["_registerBlockAttribute","type","_descriptionFactory","formatInline","normalizeConfig","getGhsAttributeNameForElement","TrackChangesEditing","_enableDefaultAttributesIntegration","_registerLegacyDescription","DataSchema","FORMAT_STYLE","forceValue","block","add","formatBlock","styleName","registerDescriptionCallback","GeneralHtmlSupport","toLowerCase","ghsAttributes","registerAttributeLabel","plugins","locale","*Set format:* %0","style","get","has","element","format","definitions","commandName","StyleUtils","commandParams","inline"];var Dx,Bx;Dx=Fx,Bx=406,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[Px("0x17")][Px("0x1c")]("Style")||!t[Px("0x17")][Px("0x1c")](Px("0xb")))return;const e=t[Px("0x17")][Px("0x1b")](Px("0x8")),n=t[Px("0x18")],i=t.config[Px("0x1b")](Px("0x1a")),r=t[Px("0x17")].get(Px("0x13")),o=t[Px("0x17")][Px("0x1b")](Px("0x21"))[Px("0x6")](t[Px("0x17")][Px("0x1b")]("DataSchema"),i[Px("0x1f")]);e[Px("0x9")](Px("0x1a"));const s=new Set;for(const t of o[Px("0xe")]){const e=r[Px("0x7")](t[Px("0x1d")]);s[Px("0xf")](e)}const x=new Set;for(const t of o[Px("0x1")]){const e=r[Px("0x7")](t.element);x[Px("0xf")](e);for(const e of t[Px("0x15")])x[Px("0xf")](e)}for(const t of s)e[Px("0x2")](t),e[Px("0x4")][Px("0x16")](t,Yi(n,Px("0xc")));for(const t of x)e._registerInlineAttribute(t),e[Px("0x4")].registerAttributeLabel(t,Yi(n,Px("0xc")));this[Px("0xa")]()}[Px("0xa")](){const t=this.editor,e=t[Px("0x18")];t[Px("0x17")][Px("0x1b")]("TrackChangesEditing")._descriptionFactory[Px("0x12")]((t=>{if(Px("0x10")!=t[Px("0x3")]&&Px("0x5")!=t.type)return;const{data:n}=t;return n&&Px("0x1a")===n[Px("0x20")]?n[Px("0x0")][0][Px("0xd")]?{type:Px("0x1e"),content:Yi(e,Px("0x19"),n[Px("0x0")][0][Px("0x11")][Px("0x14")]())}:{type:Px("0x1e"),content:Yi(e,"*Remove format:* %0",n.commandParams[0].styleName[Px("0x14")]())}:void 0}))}}const jx=["_suggestionFactory","join","showSuggestionHighlights","rootName","$graveyard","maxRow","createPositionAt","accept","createTableWalker","ELEMENT_TABLE_ROW","$textProxy","push","item","_acceptFormatSuggestionCallbackFactory","MAX_SAFE_INTEGER","isIntersectingWithRange","differ","model","locale","TableEditing","getColumnIndexes","batch","tableRow","_descriptionFactory","substr","removeClass","max","forceValue","span","plugins","registerDescriptionCallback","_tablePostFixingSubtypes","createRangeOn","suggestion","above","registerPostFixer","minColumn","_getSuggestionCoords","getChangedMarkers","type","ELEMENT_TABLE_ROW_WITH_TEXT","end","ELEMENT_TABLE_COLUMN_WITH_TEXT","rowspan","MIN_SAFE_INTEGER","tableColumn","downcastDispatcher","change:data","execute","_getCoordsForCells","getItems","insertTableColumnRight","classes","getSuggestion","TableUtils","ELEMENT_TABLE_WITH_TEXT","change","registerCustomCallback","document","toViewElement","length","selectTableColumn","getSelectionAffectedTableCells","insert","start","*Remove:* %0","oldRange","last","data","filter","order","from","enableCommand","removeTableColumn","name","mapper","isTouching","min","writer","getChanges","has","_tableSuggestions","setSelection","tableCell","TrackChangesEditing","some","isArray","detach","getAttribute","includes","editor","root","commands","selectTableRow","*Insert:* %0","findAncestor","afterInit","table","map","values","removeTableRow","isEqual","discard","first","options","_setupColumnsRowsFixing","colspan","createRangeIn","subType","getRanges","nodeAfter","selection","addRange","position","deletion","get","addMarker:suggestion","cell","insertion","ELEMENT_TABLE_COLUMN","nodeBefore","getCellLocation","isInContent","markMultiRangeInsertion","insertTableRowAbove","refresh","add","toLowerCase","enqueueChange","getChildren","getFirstRange","hasAttribute","registerElementLabel","fromRange","maxColumn","minRow"];var Gx,Vx;Gx=jx,Vx=428,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0xb")]=[Hx("0x2"),Hx("0x19")],this._tableSuggestions=new Set}[Hx("0x4c")](){const t=this[Hx("0x46")],e=t[Hx("0x85")][Hx("0x26")][Hx("0x5b")];if(!t[Hx("0x9")][Hx("0x3c")](Hx("0x87")))return;const n=t[Hx("0x86")],i=t[Hx("0x9")][Hx("0x5f")](Hx("0x40")),r=t.plugins.get("TableUtils");i[Hx("0x3")][Hx("0x70")](Hx("0x4d"),(t=>Yi(n,"ELEMENT_TABLE",t))),this[Hx("0x55")](),i.enableCommand("insertTable"),i[Hx("0x34")](Hx("0x49")),i[Hx("0x34")](Hx("0x29"));for(const n of[Hx("0x68"),"insertTableRowBelow"]){const o=t[Hx("0x48")][Hx("0x5f")](n);i[Hx("0x34")](n,(n=>{t.model[Hx("0x24")]((t=>{n();const s=Hx("0xe")===o.order,x=r[Hx("0x2a")](e),a=r.getRowIndexes(x),c=s?a.first-1:a[Hx("0x2f")]+1,l=x[0][Hx("0x4b")](Hx("0x4d")),u=r[Hx("0x7c")](l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t[Hx("0xc")](e[Hx("0x61")])));i[Hx("0x67")](d,Hx("0x2"))}))}))}for(const n of["insertTableColumnLeft",Hx("0x1f")]){const o=t[Hx("0x48")][Hx("0x5f")](n);i.enableCommand(n,(n=>{t[Hx("0x85")][Hx("0x24")]((t=>{n();const s="left"===o[Hx("0x32")],x=r.getSelectionAffectedTableCells(e),a=r[Hx("0x0")](x),c=s?a.first-1:a[Hx("0x2f")]+1,l=x[0][Hx("0x4b")](Hx("0x4d")),u=r[Hx("0x7c")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x33")](u)[Hx("0x4e")]((e=>t.createRangeOn(e[Hx("0x61")])));i[Hx("0x67")](d,Hx("0x19"))}))}))}for(const n of[Hx("0x50"),"removeTableColumn"]){const o=n.substr(11),s=o[Hx("0x6b")](),x=s[Hx("0x4")](0,3)+Hx("0x8"),a=Hx("0x4d")+o,c=Hx("0x39")+o,l=Hx("0x6")+o;i[Hx("0x34")](n,(()=>{t[Hx("0x85")][Hx("0x24")]((t=>{const o=r[Hx("0x2a")](e),u=o[0][Hx("0x4b")](Hx("0x4d"));let d;if(Hx("0x50")==n){const t=r.getRowIndexes(o);d={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=r.getColumnIndexes(o);d={startColumn:t[Hx("0x53")],endColumn:t[Hx("0x2f")],includeAllSlots:!0}}const g=r[Hx("0x7c")](u,d),f=Array.from(g)[Hx("0x4e")]((({cell:t})=>t)),m=Wx(f[Hx("0x31")]((t=>t[Hx("0x6f")](x)))),h=Wx(f[Hx("0x31")]((t=>!t[Hx("0x6f")](x))))[Hx("0x4e")]((e=>t[Hx("0xc")](e))),p=i.markMultiRangeDeletion(h,a);if(p&&(Hx("0x2")==p[Hx("0x58")]||"tableColumn"==p[Hx("0x58")])){const e=this[Hx("0x11")](p);for(const n of m){const i=t[Hx("0xc")](n),o=r[Hx("0x65")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Hx("0x5c")](i)}}}))}))}function o(n){const i=Array[Hx("0x33")](e[Hx("0x59")]())[Hx("0x4e")]((t=>s.LiveRange[Hx("0x71")](t)));t[Hx("0x85")].change((e=>{const r=e[Hx("0x1")];n=n[Hx("0x31")]((t=>Hx("0x78")!=t[Hx("0x47")][Hx("0x77")])),e[Hx("0x3e")](n),t[Hx("0x48")][Hx("0x5f")]("removeTableRow")[Hx("0x69")](),t[Hx("0x1c")](Hx("0x50"),{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t[Hx("0x85")][Hx("0x6c")](r,(t=>{const e=i.filter((t=>Hx("0x78")!=t.root[Hx("0x77")]));e.length>0&&t.setSelection(e);for(const t of i)t[Hx("0x43")]()}))}))}))}function a(n){t.model[Hx("0x24")]((i=>{const r=Array[Hx("0x33")](e[Hx("0x59")]())[Hx("0x4e")]((t=>s.LiveRange.fromRange(t))),o=[];for(const t of n)for(const e of t[Hx("0x1e")]({shallow:!0}))o[Hx("0x7f")](e);for(const e of o)Hx("0x78")!=e[Hx("0x47")][Hx("0x77")]&&(i[Hx("0x3e")](i[Hx("0x7a")](e,0)),t[Hx("0x48")][Hx("0x5f")](Hx("0x35"))[Hx("0x69")](),t[Hx("0x1c")](Hx("0x35"),{forceDefaultExecution:!0}));const x=r[Hx("0x31")]((t=>Hx("0x78")!=t[Hx("0x47")].rootName));x.length>0&&i[Hx("0x3e")](x);for(const t of r)t[Hx("0x43")]()}))}function c(t,e){return e.every((e=>t[Hx("0x41")]((t=>t.end[Hx("0x51")](e.start)||e[Hx("0x15")][Hx("0x51")](t[Hx("0x2c")])))))}function l(t,e){return t[Hx("0x41")]((t=>e[Hx("0x41")]((e=>t[Hx("0x15")][Hx("0x38")](e.start)))))}t[Hx("0x30")][Hx("0x1a")].on(Hx("0x60"),((t,e,n)=>{if(!n[Hx("0x54")][Hx("0x76")])return;const i=e[Hx("0x80")];if(!i)return;const r=n[Hx("0x37")][Hx("0x27")](i);function o(t){return Array[Hx("0x42")](t)?t:[t]}r&&Hx("0x3f")===i[Hx("0x36")]&&(0,x.setHighlightHandling)(r,n[Hx("0x3a")],((t,e,n)=>n.addClass(o(e[Hx("0x20")]),t)),((t,e,n)=>n[Hx("0x5")](o(e[Hx("0x20")]),t)))}),{priority:"highest"}),i[Hx("0x3")][Hx("0xa")]((t=>{if(Hx("0x62")!=t[Hx("0x13")]&&Hx("0x5e")!=t[Hx("0x13")])return;const e=t.getContainedElement();if(null!=e&&e.is("element",Hx("0x4d"))){if(Hx("0x62")==t[Hx("0x13")]){const e=t.getItems()[Hx("0x31")]((t=>t.is(Hx("0x7e"))))[Hx("0x4e")]((t=>t[Hx("0x30")]));if(e.length)return{type:Hx("0x62"),content:Yi(n,Hx("0x4a"),Yi(n,Hx("0x23"),'"'+e.join(" ")+'"'))}}if(Hx("0x5e")==t[Hx("0x13")]){const e=t[Hx("0x1e")]().filter((t=>t.is(Hx("0x7e")))).map((t=>t[Hx("0x30")]));if(e.length)return{type:"deletion",content:Yi(n,Hx("0x2d"),Yi(n,Hx("0x23"),'"'+e[Hx("0x75")](" ")+'"'))}}}})),i[Hx("0x3")][Hx("0xa")]((t=>{if("tableRow"==t.subType){const e=t[Hx("0x1e")]()[Hx("0x31")]((t=>t.is("$textProxy")))[Hx("0x4e")]((t=>t[Hx("0x30")])),i=this[Hx("0x11")](t),r=i[Hx("0x79")]-i[Hx("0x73")]+1;if(Hx("0x62")==t[Hx("0x13")])return e[Hx("0x28")]?{type:"insertion",content:Yi(n,"*Insert:* %0",Yi(n,Hx("0x14"),[r,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yi(n,Hx("0x4a"),Yi(n,Hx("0x7d"),r))};if("deletion"==t[Hx("0x13")])return e[Hx("0x28")]?{type:"deletion",content:Yi(n,Hx("0x2d"),Yi(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+e[Hx("0x75")](" ")+'"']))}:{type:"deletion",content:Yi(n,Hx("0x2d"),Yi(n,Hx("0x7d"),r))}}if("tableColumn"==t[Hx("0x58")]){const e=t.getItems()[Hx("0x31")]((t=>t.is(Hx("0x7e"))))[Hx("0x4e")]((t=>t.data)),i=this[Hx("0x11")](t),r=i[Hx("0x72")]-i[Hx("0x10")]+1;if(Hx("0x62")==t[Hx("0x13")])return e[Hx("0x28")]?{type:Hx("0x62"),content:Yi(n,Hx("0x4a"),Yi(n,Hx("0x16"),[r,'"'+e[Hx("0x75")](" ")+'"']))}:{type:Hx("0x62"),content:Yi(n,Hx("0x4a"),Yi(n,Hx("0x63"),r))};if(Hx("0x5e")==t[Hx("0x13")])return e[Hx("0x28")]?{type:Hx("0x5e"),content:Yi(n,"*Remove:* %0",Yi(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[Hx("0x75")](" ")+'"']))}:{type:Hx("0x5e"),content:Yi(n,Hx("0x2d"),Yi(n,"ELEMENT_TABLE_COLUMN",r))}}})),i[Hx("0x74")][Hx("0x25")](Hx("0x62"),Hx("0x2"),Hx("0x52"),o),i[Hx("0x74")][Hx("0x25")](Hx("0x5e"),"tableRow","accept",o),i[Hx("0x74")][Hx("0x25")](Hx("0x62"),Hx("0x19"),Hx("0x52"),a),i[Hx("0x74")][Hx("0x25")]("deletion",Hx("0x19"),Hx("0x7b"),a),i[Hx("0x74")][Hx("0x25")](Hx("0x62"),Hx("0x19"),Hx("0x75"),c),i[Hx("0x74")][Hx("0x25")](Hx("0x5e"),"tableColumn",Hx("0x75"),c),i._suggestionFactory[Hx("0x25")](Hx("0x62"),"tableRow",Hx("0x75"),l),i[Hx("0x74")][Hx("0x25")](Hx("0x5e"),"tableRow",Hx("0x75"),l)}[Hx("0x81")](){const t=this[Hx("0x46")],e=t[Hx("0x85")][Hx("0x26")][Hx("0x5b")];return(n,i)=>{t[Hx("0x85")][Hx("0x24")]((r=>{const{commandName:o,commandParams:x}=i;let a=n[0][Hx("0x15")][Hx("0x64")];x&&x[0]&&!1===x[0][Hx("0x7")]&&(a=n[0][Hx("0x2c")][Hx("0x5a")]);const c=r[Hx("0x57")](a);if(Hx("0x78")==c[Hx("0x47")][Hx("0x77")])return;const l=Array[Hx("0x33")](e.getRanges())[Hx("0x4e")]((t=>s.LiveRange.fromRange(t)));r[Hx("0x3e")](c),t[Hx("0x48")][Hx("0x5f")](o)[Hx("0x69")](),x[Hx("0x7f")]({forceDefaultExecution:!0}),t[Hx("0x1c")](o,...x);const u=l[Hx("0x31")]((t=>"$graveyard"!=t[Hx("0x47")][Hx("0x77")]));u[Hx("0x28")]>0&&r[Hx("0x3e")](u);for(const t of l)t[Hx("0x43")]()}))}}[Hx("0x1d")](t){const e=this.editor[Hx("0x9")][Hx("0x5f")](Hx("0x22"));let n=Number[Hx("0x82")],i=Number[Hx("0x18")],r=Number[Hx("0x82")],o=Number.MIN_SAFE_INTEGER;for(const s of t){if(Hx("0x78")==s[Hx("0x47")][Hx("0x77")])continue;const{row:t,column:x}=e[Hx("0x65")](s),a=s[Hx("0x6f")](Hx("0x17"))?s[Hx("0x44")]("rowspan")-1:0,c=s[Hx("0x6f")](Hx("0x56"))?s.getAttribute("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}}[Hx("0x55")](){const t=this[Hx("0x46")],e=t[Hx("0x9")][Hx("0x5f")](Hx("0x40")),n=t[Hx("0x9")][Hx("0x5f")](Hx("0x22"));t[Hx("0x85")][Hx("0x26")].on(Hx("0x1b"),(()=>{const n=Array.from(t[Hx("0x85")][Hx("0x26")][Hx("0x84")][Hx("0x12")]());for(const{name:t,data:i}of n){const{group:n,id:r,subType:o}=e._splitMarkerName(t);if(Hx("0xd")!=n)continue;if(null!=i[Hx("0x2e")])continue;const s=e[Hx("0x21")](r);this._tablePostFixingSubtypes[Hx("0x45")](o)&&this[Hx("0x3d")][Hx("0x6a")](s)}}),{priority:"low"});const i=(t,e)=>{let i=!1;const r=e[Hx("0xc")](t),o=t[Hx("0x4b")](Hx("0x4d")),s=n.getCellLocation(t);for(const e of this[Hx("0x3d")]){const n=e.subType,x=n.startsWith("tablePaste"),a=n.substr(x?10:5),c=a[Hx("0x6b")](),l=c.substr(0,3)+Hx("0x8"),u=Hx("0x39")+a,d=Hx("0x6")+a;if(!e[Hx("0x66")])continue;if(o!=e[Hx("0x6e")]().start.findAncestor("table"))continue;if(e[Hx("0x83")](r))continue;const g=t[Hx("0x6f")](l)?t[Hx("0x44")](l)-1:0,f=this[Hx("0x11")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x5c")](r),i=!0)}return i};t.model[Hx("0x26")][Hx("0xf")]((e=>{let n=!1;for(const r of t[Hx("0x85")][Hx("0x26")][Hx("0x84")][Hx("0x3b")]())if(Hx("0x2b")==r[Hx("0x13")])if(Hx("0x2")==r[Hx("0x36")])for(const t of r.position[Hx("0x5a")][Hx("0x6d")]())n=n||i(t,e);else Hx("0x3f")==r[Hx("0x36")]&&(n=n||i(r[Hx("0x5d")][Hx("0x5a")],e));return n}))}_getSuggestionCoords(t){return this._getCoordsForCells(t[Hx("0x59")]().map((t=>t[Hx("0x2c")][Hx("0x5a")])))}}function Wx(t){return Array[Hx("0x33")](new Set(t)[Hx("0x4f")]())}const Kx=["commands","direction","cell","forceDefaultExecution","mergeTableCellUp","_suggestionFactory","execute","rootName","horizontally","getSelectionAffectedTableCells","_isForcedDefaultExecutionBlock","low","containsRange","$graveyard","_areSelectedCellsMergable","registerDescriptionCallback","format","fromRange","return","find","mergeTableCellDown","from","stop","getAncestors","set:isEnabled","_descriptionFactory","getRanges","enableCommand","setSelection","element","filter","_areMergableCells","type","markBlockFormat","createRangeOn","registerCustomCallback","plugins","*Split cell:* horizontally","markMultiRangeBlockFormat","length","size","table","TrackChangesEditing","root","mergeTableCellRight","document","*Merge cells*","get","*Split cell:* vertically","model","splitTableCellHorizontally","splitTableCellVertically","change","value","isEnabled","map","has","accept","highest","formatInline","tableCell","author","trackChanges","commandName","selection","TableUtils","TableEditing","subType","detach","formatBlock","getCellLocation","isInContent","deletion","_tablePostFixingSubtypes","refresh","mergeTableCellLeft","editor","add","createTableWalker","mergeTableCells"];var qx,Xx;qx=Kx,Xx=233,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get requires(){return[zx]}afterInit(){const t=this[$x("0x3")],e=t[$x("0x38")].document.selection,n=t.locale;if(!t[$x("0x2b")].has($x("0x49")))return;const i=t[$x("0x2b")][$x("0x36")]($x("0x31")),r=t[$x("0x2b")].get($x("0x48")),o=t[$x("0x2b")][$x("0x36")](zx);o[$x("0x0")].push($x("0x6")),i.enableCommand($x("0x6"),(()=>{const e=r[$x("0x10")](t[$x("0x38")][$x("0x34")][$x("0x47")]);t[$x("0x38")][$x("0x3b")]((()=>{i[$x("0x2d")](e,{commandName:$x("0x6"),commandParams:[]},[],"mergeTableCells")}))})),t[$x("0x7")][$x("0x36")]($x("0x6")).on($x("0xd"),((e,n)=>{t[$x("0x7")][$x("0x36")]($x("0x45"))[$x("0x3c")]&&(n.length>0&&n[n[$x("0x2e")]-1]&&n[n[$x("0x2e")]-1][$x("0xa")]||i[$x("0x11")]||this[$x("0x15")]()||e[$x("0x1d")]())}),{priority:$x("0x41")});for(const e of[$x("0xb"),$x("0x33"),$x("0x1b"),"mergeTableCellLeft"]){const n=t[$x("0x7")][$x("0x36")](e);i.enableCommand(e,(()=>{const e=t[$x("0x38")][$x("0x34")].selection.getFirstPosition()[$x("0x1e")]()[$x("0x1a")]((t=>t.is($x("0x24"),$x("0x43")))),r=n.value;t[$x("0x38")][$x("0x3b")]((()=>{i[$x("0x2d")]([e,r],{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[$x("0x3a"),$x("0x39")]){const n=t.commands.get(e);i[$x("0x22")](e,(()=>{const o=r[$x("0x10")](t.model.document[$x("0x47")])[0],s=o.findAncestor($x("0x30")),{column:x,row:a}=r[$x("0x4d")](o);let c=[];if($x("0xf")==n[$x("0x8")]){const t=r.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x1c")](t)[$x("0x3e")]((t=>t[$x("0x9")]))}else{const t=r[$x("0x5")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x1c")](t)[$x("0x3e")]((t=>t[$x("0x9")]))}t[$x("0x38")].change((t=>{i[$x("0x28")](t[$x("0x29")](o),{commandName:e,commandParams:[]},c,e)}))}))}i[$x("0x20")][$x("0x16")]((t=>{if($x("0x4c")!=t[$x("0x27")]&&$x("0x42")!=t.type)return;const{data:e}=t;return e&&$x("0x6")==e.commandName?{type:"format",content:Yi(n,$x("0x35"))}:void 0})),i[$x("0x20")].registerDescriptionCallback((t=>{if($x("0x4c")!=t[$x("0x27")]&&$x("0x42")!=t.type)return;const{data:e}=t;return e?$x("0x3a")==e[$x("0x46")]?{type:$x("0x17"),content:Yi(n,$x("0x37"))}:$x("0x39")==e[$x("0x46")]?{type:"format",content:Yi(n,$x("0x2c"))}:void 0:void 0}));const x=o._acceptFormatSuggestionCallbackFactory();for(const t of[$x("0xb"),$x("0x33"),$x("0x1b"),"mergeTableCellLeft"])i[$x("0xc")][$x("0x2a")]($x("0x4c"),t,$x("0x40"),x);for(const t of["splitTableCellVertically","splitTableCellHorizontally"])i[$x("0xc")].registerCustomCallback("formatBlock",t,$x("0x40"),x);i._suggestionFactory.registerCustomCallback($x("0x4c"),$x("0x6"),$x("0x40"),(n=>{t[$x("0x38")][$x("0x3b")]((i=>{const r=Array.from(e.getRanges()).map((t=>s.LiveRange[$x("0x18")](t)));i[$x("0x23")](n),t.commands[$x("0x36")]("mergeTableCells")[$x("0x1")](),t.execute($x("0x6"),{forceDefaultExecution:!0});const o=r[$x("0x25")]((t=>$x("0x14")!=t[$x("0x32")][$x("0xe")]));o[$x("0x2e")]>0&&i[$x("0x23")](o);for(const t of r)t[$x("0x4b")]()}))}));for(const e of[$x("0xb"),"mergeTableCellDown",$x("0x2"),"mergeTableCellRight"]){const n=t.commands[$x("0x36")](e);n.on($x("0x1f"),((e,i,r)=>{if(r){const i=t[$x("0x38")][$x("0x34")].selection.getFirstPosition()[$x("0x1e")]()[$x("0x1a")]((t=>t.is($x("0x24"),$x("0x43"))));this[$x("0x26")](n.value,i)||(e[$x("0x19")]=!1,e.stop())}}),{priority:$x("0x12")})}}[$x("0x15")](){const t=this[$x("0x3")][$x("0x7")][$x("0x36")]($x("0x6")),e=this[$x("0x3")][$x("0x2b")][$x("0x36")]($x("0x48"));if(!t[$x("0x3d")])return!1;const n=e.getSelectionAffectedTableCells(this[$x("0x3")][$x("0x38")][$x("0x34")][$x("0x47")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x26")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[$x("0x3")][$x("0x2b")][$x("0x36")]("TrackChangesEditing"),i=this.editor.model[$x("0x29")](t),r=this[$x("0x3")].model[$x("0x29")](e),o=new Set,s=new Set;for(const t of n.getSuggestions())if(("insertion"==t[$x("0x27")]||$x("0x4f")==t[$x("0x27")]||$x("0x6")==t[$x("0x4a")])&&t[$x("0x4e")])for(const e of t[$x("0x21")]())e[$x("0x13")](i,!0)&&o[$x("0x4")](t[$x("0x27")]+":"+t[$x("0x44")].id),e[$x("0x13")](r,!0)&&s[$x("0x4")](t[$x("0x27")]+":"+t[$x("0x44")].id);if(o[$x("0x2f")]!=s.size)return!1;for(const t of o)if(!s[$x("0x3f")](t))return!1;return!0}}const Qx=["_enableDefaultAttributesIntegration","commandParams","FORMAT_REGULAR_COLUMN","forceValue","mapper","toViewElement","downcastDispatcher","_suggestionFactory","getSuggestion","removeAttribute","type","TrackChangesEditing","markerNameToElements","removeClass","getCellLocation","registerDescriptionCallback","includes","formatBlock","afterInit","markerName","FORMAT_HEADER_ROW","start","setTableRowHeader","headingRows","_registerLegacyDescription","FORMAT_REGULAR_ROW","commandName","*Format:* %0","highest","removeMarker:suggestion","writer","cell","stop","bindElementToMarker","get","plugins","setAttribute","activeMarkers","headingColumns","parent","consume","createTableWalker","markerRange","accept","FORMAT_HEADER_COLUMN","data-suggestion","registerAttributeLabel","ck-suggestion-marker-","_acceptFormatSuggestionCallbackFactory","editor","unbindElementFromMarkerName","addMarker:suggestion","data","locale","item","nodeAfter","ck-suggestion-marker--active","end","_descriptionFactory","editing","has","setTableColumnHeader","showSuggestionHighlights","addClass"];var Yx,Jx;Yx=Qx,Jx=243,function(t){for(;--t;)Yx.push(Yx.shift())}(++Jx);const ta=function(t,e){return Qx[t-=0]};class ea extends t.Plugin{static get requires(){return[zx]}[ta("0x1f")](){const t=this[ta("0x3e")];if(!t.plugins[ta("0x9")]("TableEditing"))return;const e=t.locale,n=t[ta("0x30")][ta("0x2f")](ta("0x18"));n._enableDefaultAttributesIntegration(ta("0x23"),[],["headingRows"]),n[ta("0xd")](ta("0xa"),[],[ta("0x33")]),n[ta("0x7")].registerAttributeLabel(ta("0x24"),Yi(e,ta("0x21"))),n._descriptionFactory[ta("0x3b")](ta("0x33"),Yi(e,ta("0x39"))),this._handleLegacySuggestions()}_handleLegacySuggestions(){const t=this[ta("0x3e")][ta("0x30")][ta("0x2f")](ta("0x18")),e=this[ta("0x3e")].plugins[ta("0x2f")]("TableUtils"),n=this[ta("0x3e")].plugins.get(zx)[ta("0x3d")]();function i({showActiveMarker:n=!0,setDataAttribute:i=!0}={}){return(r,o,s)=>{const{type:x,id:a}=t._splitMarkerName(o[ta("0x20")]),c=t[ta("0x15")](a),l=c[ta("0x1")];if(ta("0x1e")!=c[ta("0x17")]||!l||ta("0xa")!=l[ta("0x27")])return;if(o[ta("0x3")])return void r[ta("0x2d")]();if(!s.consumable[ta("0x35")](o[ta("0x37")],r.name))return;const u=o[ta("0x37")][ta("0x22")][ta("0x4")],d=o[ta("0x37")][ta("0x6")].nodeBefore,g=u[ta("0x34")][ta("0x34")],{column:f}=e[ta("0x1b")](u),{column:m}=e[ta("0x1b")](d);for(let r=f;r<=m;r++){const c=e[ta("0x36")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x2c")],c=s.mapper[ta("0x12")](r);s.writer[ta("0xc")](ta("0x3c")+x,c),i&&s.writer[ta("0x31")](ta("0x3a"),a,c),s[ta("0x11")][ta("0x2e")](c,o[ta("0x20")]),n&&(t[ta("0x32")][ta("0x1d")](o.markerName)?s[ta("0x2b")][ta("0xc")](ta("0x5"),c):s[ta("0x2b")][ta("0x1a")](ta("0x5"),c))}}}}t[ta("0x14")].registerCustomCallback(ta("0x1e"),ta("0x23"),ta("0x38"),n),t[ta("0x14")].registerCustomCallback(ta("0x1e"),"setTableColumnHeader",ta("0x38"),n),this[ta("0x3e")][ta("0x8")][ta("0x13")].on(ta("0x0"),i(),{priority:ta("0x29")}),this.editor.data[ta("0x13")].on("addMarker:suggestion",((t,e,n)=>{n.options[ta("0xb")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x29")}),this[ta("0x3e")].editing[ta("0x13")].on(ta("0x2a"),((e,n,i)=>{const{type:r,id:o}=t._splitMarkerName(n[ta("0x20")]),s=t[ta("0x15")](o),x=s[ta("0x1")];if("formatBlock"!=s[ta("0x17")]||!x||"setTableColumnHeader"!=x[ta("0x27")])return;const a=i[ta("0x11")][ta("0x19")](n.markerName);if(a)for(const t of a)i.writer[ta("0x1a")](ta("0x3c")+r,t),i[ta("0x2b")][ta("0x1a")]("ck-suggestion-marker--active",t),i[ta("0x2b")][ta("0x16")](ta("0x3a"),t),i[ta("0x11")][ta("0x3f")](t,n[ta("0x20")])}),{priority:"highest"}),this._registerLegacyDescription()}[ta("0x25")](){const t=this[ta("0x3e")],e=t[ta("0x2")];function n(t){return{type:"format",content:Yi(e,ta("0x28"),t)}}t[ta("0x30")][ta("0x2f")](ta("0x18"))._descriptionFactory[ta("0x1c")]((t=>{if(ta("0x1e")!=t.type)return;const{data:i}=t;if(i){if(ta("0x23")==i[ta("0x27")]){const t=i.commandParams[0][ta("0x10")];return n(Yi(e,ta(t?"0x21":"0x26")))}if("setTableColumnHeader"==i[ta("0x27")]){const t=i[ta("0xe")][0][ta("0x10")];return n(Yi(e,t?"FORMAT_HEADER_COLUMN":ta("0xf")))}}}))}}const na=["_descriptionFactory","content","attributes","has","getChanges","getShiftedBy","element","insertRows","set","documentSelection","getSelectionAffectedTableCells","markMultiRangeInsertion","map","batch","suggestionUnloaded","showSuggestionHighlights","markerAttributes","containsRange","newRange","length","tablePasteRow","_createdBatches","paragraph","getAllAdjacentSuggestions","accept","insertContent","endColumn","*Replace table cells*","getAttributes","columns","findAncestor","tableCellVerticalAlignment","conversion","rowInsertionRanges","position","column","ck-suggestion-marker","previous","start","cell","registerDescriptionCallback","isEqual","cells","editor","getColumns","ck-suggestion-marker-insertion","setAttribute","suggestion-td","end","forceDefaultExecution","getContainedElement","markMultiRangeDeletion","activeMarkers","getChildren","_getCoordsForCells","isInContent","_suggestionFactory","TrackChangesEditing","name","editingDowncast","tablePasteCell","value","getChangedMarkers","clipboardOutput","endRow","selection","getSuggestions","tableCellHorizontalAlignment","redo","getRanges","_tablePostFixingSubtypes","suggestion:formatBlock:tablePasteCell","createElement","document","join","getSuggestionCallback","getRows","editing","options","low","root","rows","high","reduce","elementToElement","removeMarker","insertion","listenTo","for","markerName","find","registerCustomCallback","fill","getChild","insert","subType","rowInsertionIndexes","unwrap","wrap","filter","from","oldRange","tableCellPadding","tablePasteChainId","differ","startsWith","return","_replaceTableSlotCell","rootName","registerPostFixer","afterInit","getRange","previousSibling","_splitMarkerName","fromEntries","createTableWalker","remove","register","tableCell","ck-suggestion-marker--active","TableClipboard","markMultiRangeBlockFormat","nextSibling","table","author","removeMarkers","_isForcedDefaultExecutionBlock","deletionRanges","change","markers","tableCellBackgroundColor","getMarkers","formatBlock","getItems","isEmpty","includes","last","tableCellBorderWidth","tablePaste","next","Users","push","createRangeIn","type","createPositionBefore","removeRows","first","updateMarker","tableCellSuggestion","tablePasteColumn","markerToHighlight","model","plugins","get","add","createRangeOn","getTableIfOnlyTableInContent","deletion","schema","discard"];var ia,ra;ia=na,ra=214,function(t){for(;--t;)ia.push(ia.shift())}(++ra);const oa=function(t,e){return na[t-=0]},sa=[oa("0x53"),"tableCellBorderColor","tableCellBorderStyle",oa("0xd"),oa("0x89"),oa("0x4c"),oa("0x30")],xa=Object[oa("0x3c")](sa[oa("0x76")]((t=>[t,null])));class aa extends t.Plugin{static get requires(){return[zx]}[oa("0x38")](){const t=this[oa("0x95")];if(!t[oa("0x62")][oa("0x6d")](oa("0x42")))return;const n=t[oa("0x62")][oa("0x63")](oa("0x3")),i=t.plugins[oa("0x63")]("TableUtils"),r=t.plugins[oa("0x63")](zx),o=t[oa("0x62")][oa("0x63")](oa("0x42"));r[oa("0x10")].push(oa("0x7e"),oa("0x5f")),t.model[oa("0x68")][oa("0x3f")]("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:oa("0x40"),isLimit:!0}),t[oa("0x8a")][oa("0x1e")]({model:"tableCellSuggestion",view:oa("0x99")});let s=null;t[oa("0x61")].on(oa("0x83"),((r,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[oa("0x9b")]||n[oa("0x48")]||this.editor.commands[oa("0x63")]("trackChanges")[oa("0x7")]&&function(t,e,n,i,r){if(e&&!e.is(oa("0x73")))return!1;const o=r[oa("0x66")](t,n);if(!o||!la(o,void 0,i))return!1;const s=i[oa("0x74")](n[oa("0x13")][oa("0xb")]);if(!s[oa("0x7d")])return!1;const x=s[0][oa("0x88")](oa("0x45")),a=i.getRowIndexes(s),c=i.getColumnIndexes(s),l={startRow:a[oa("0x5c")],endRow:a[oa("0x52")],startColumn:c[oa("0x5c")],endColumn:c[oa("0x52")]};return 1==s[oa("0x7d")]&&(l[oa("0xa")]+=i[oa("0x16")](o)-1,l[oa("0x84")]+=i[oa("0x96")](o)-1),la(x,l,i)}(a,c,t.model,i,o)&&(r.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[oa("0x61")][oa("0x4a")]((()=>{t[oa("0x61")].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.length&&n[oa("0x75")](r,"tablePasteRow",{tablePasteChainId:i}),o[oa("0x7d")]&&n[oa("0x75")](o,oa("0x5f"),{tablePasteChainId:i}),a.length&&n.markMultiRangeInsertion(a,"tablePaste",{tablePasteChainId:i,skipNestingCheck:!0}),c.length&&n[oa("0x9d")](c,oa("0x54"),{tablePasteChainId:i,skipNestingCheck:!0});const u=n[oa("0x43")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],oa("0x6"),{tablePasteChainId:i});if(u){const e=u[oa("0x4d")](),n=[];for(const{element:i,attributes:r}of l){if(!r)continue;const o=t[oa("0x61")].createRangeOn(i),s=e[oa("0x24")]((t=>t[oa("0x39")]()[oa("0x93")](o)));s&&n[oa("0x57")]([s[oa("0x4")],r])}n.length&&u[oa("0x98")](oa("0x7a"),Object[oa("0x3c")](n))}s=null})))}),{priority:e.priorities.high+10}),t[oa("0x62")].get("TableClipboard").on(oa("0x35"),((t,e)=>{const[n,i,,r]=e;if(!s)return;t.stop();const o=n[oa("0x91")],x=i,a=ca(o),c=ca(x);t[oa("0x34")]=o;let l=null,u=null;if(c||a)if(a&&!c){r[oa("0x3e")](o[oa("0x27")](0));for(const t of Array.from(x[oa("0x9f")]()))r[oa("0x28")](t,o,oa("0x9a"));const t=s[oa("0x2a")][oa("0x51")](n.row),e=s.columnInsertionIndexes[oa("0x51")](n[oa("0x8d")]);t||e||(l=r[oa("0x58")](o))}else c&&!a&&(u=r[oa("0x58")](o));else{const t=r[oa("0x12")](oa("0x5e")),e=r.createElement(oa("0x5e"));r[oa("0x2c")](r[oa("0x58")](o),e),r[oa("0x28")](t,o,0);for(const e of Array[oa("0x2e")](x.getChildren()))r[oa("0x28")](e,t,"end");l=r[oa("0x65")](t),u=r.createRangeOn(e)}const d=Array[oa("0x2e")](x[oa("0x86")]()).filter((([t])=>sa[oa("0x51")](t)));s[oa("0x94")][oa("0x57")]({element:o,attributes:d[oa("0x7d")]?Object[oa("0x3c")](d):null}),l&&s.insertionRanges[oa("0x57")](l),u&&s[oa("0x49")][oa("0x57")](u)}),{priority:oa("0x1c")}),i.on("insertColumns",((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o[oa("0x87")]||1;s.columnInsertionIndexes=new Array(a)[oa("0x26")](x).map(((t,e)=>t+e));for(const{cell:e}of i[oa("0x3d")](r,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges[oa("0x57")](t.model[oa("0x65")](e))}),{priority:oa("0x19")}),i.on(oa("0x71"),((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o[oa("0x1b")]||1;s[oa("0x2a")]=new Array(a)[oa("0x26")](x)[oa("0x76")](((t,e)=>t+e));for(const{cell:e}of i.createTableWalker(r,{startRow:x,endRow:x+a-1}))s[oa("0x8b")][oa("0x57")](t[oa("0x61")][oa("0x65")](e))}),{priority:oa("0x19")}),n[oa("0x6a")][oa("0x92")]((e=>{if(e[oa("0x29")]&&e[oa("0x29")][oa("0x33")](oa("0x54")))return e[oa("0x8f")]?{}:{type:oa("0x20"),content:Yi(t.locale,oa("0x85"))}}));const x=()=>!1;for(const t of[oa("0x54"),oa("0x5f"),oa("0x7e"),oa("0x6")])n._suggestionFactory[oa("0x25")](oa("0x20"),t,oa("0x14"),x),n._suggestionFactory.registerCustomCallback("deletion",t,oa("0x14"),x),n[oa("0x2")].registerCustomCallback(oa("0x4e"),t,oa("0x14"),x);n[oa("0x2")][oa("0x25")](oa("0x4e"),"tablePasteCell",oa("0x69"),x),n[oa("0x2")][oa("0x25")](oa("0x4e"),"tablePasteCell",oa("0x82"),((e,n,i)=>{const r=e[oa("0x76")]((t=>t.getContainedElement()))[oa("0x2d")]((t=>t)),o=new Map(r[oa("0x76")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[oa("0x94")])e&&o[oa("0x72")](t,e);else if(i&&i.markerAttributes)for(const[e,n]of Object.entries(i.markerAttributes)){const i=t.model[oa("0x4b")][oa("0x63")](e),r=i?i[oa("0x39")]()[oa("0x9c")]():null;r&&o[oa("0x72")](r,n)}t[oa("0x61")][oa("0x4a")]((t=>{for(const[e,n]of o)t.setAttributes({...xa,...n},e)}))}));const a=(e,i)=>{n._suggestionFactory.registerCustomCallback(e,oa("0x54"),i,((r,o,s)=>{t[oa("0x61")][oa("0x4a")]((t=>{const x=[];for(const t of r){const e=t[oa("0x90")].nodeAfter;e.is(oa("0x70"),oa("0x5e"))&&x[oa("0x57")](e)}n[oa("0x2")][oa("0x15")](e,null,i)(r,o,s);for(const e of x)"$graveyard"!=e[oa("0x1a")][oa("0x36")]&&t[oa("0x2b")](e)}))}))};a(oa("0x20"),oa("0x82")),a("insertion","discard"),a("deletion",oa("0x82")),a(oa("0x67"),oa("0x69")),n._suggestionFactory[oa("0x25")](oa("0x20"),oa("0x7e"),"discard",(t=>{const e=t.map((t=>t[oa("0x9c")]())),n=e[0][oa("0x88")](oa("0x45")),{minRow:o,maxRow:s}=r[oa("0x0")](e);i[oa("0x5b")](n,{at:o,rows:s-o+1})})),n._suggestionFactory.registerCustomCallback(oa("0x20"),"tablePasteColumn","discard",(t=>{const e=t[oa("0x76")]((t=>t[oa("0x9c")]())),n=e[0][oa("0x88")](oa("0x45")),{minColumn:o,maxColumn:s}=r[oa("0x0")](e);i.removeColumns(n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[oa("0x29")]||!e[oa("0x29")][oa("0x33")](oa("0x54")))return;const i=e.attributes[oa("0x31")],r=n[oa("0xc")]()[oa("0x2d")]((t=>t[oa("0x1")]&&t[oa("0x6c")]&&t.attributes.tablePasteChainId==i));r[oa("0x7d")]&&e[oa("0x81")]()[oa("0x7d")]!=r[oa("0x7d")]&&r[oa("0x1d")](((t,e)=>(t[oa("0x55")]=e,e[oa("0x8f")]=t,e)))};function l(t,e=!0){const{id:i}=n[oa("0x3b")](t[oa("0x23")]),r=[oa("0x8e"),oa("0x97")],o=n[oa("0x9e")][oa("0x51")](t[oa("0x23")]);return o&&r[oa("0x57")](oa("0x41")),{classes:r,attributes:{"data-suggestion":i},priority:o&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(oa("0x78"),c,{priority:"high"}),t.model.document.registerPostFixer((()=>{let e=!1;const i=Array[oa("0x2e")](t[oa("0x61")][oa("0x13")][oa("0x32")][oa("0x8")]());for(const{name:r,data:o}of i){const{group:i,type:s,id:x}=n[oa("0x3b")](r);if("suggestion"!=i||"deletion"!=s||o[oa("0x2f")])continue;if(!n.hasSuggestion(x))continue;const a=n.getSuggestion(x)[oa("0xf")](),c=t[oa("0x62")][oa("0x63")](oa("0x56")).me;for(const t of n[oa("0xc")]())if(t[oa("0x1")]&&t[oa("0x46")]==c&&"formatBlock"==t[oa("0x59")]&&oa("0x6")==t[oa("0x29")]&&t[oa("0xf")]().every((t=>a.some((e=>e[oa("0x7b")](t,!0))))))for(const n of t[oa("0x81")]())n[oa("0x1")]&&(n[oa("0x69")](),e=!0)}return e})),t[oa("0x61")][oa("0x13")].registerPostFixer((e=>{const i=t.commands.get(oa("0xe"));if(!i||!i[oa("0x7f")][oa("0x6d")](e[oa("0x77")]))return!1;let r=!1;const o=t[oa("0x62")][oa("0x63")]("Users").me,s=t[oa("0x61")][oa("0x13")].differ[oa("0x6e")](),x=Array[oa("0x2e")](t.model.document[oa("0x32")][oa("0x8")]()).filter((({name:t,data:e})=>{const{group:i,subType:r,authorId:s}=n[oa("0x3b")](t);return"suggestion"==i&&"tablePaste"==r&&s==o.id&&!e[oa("0x2f")]}));for(const t of s){if(oa("0x28")!=t[oa("0x59")]||oa("0x5e")!=t.name||1!=t[oa("0x7d")])continue;const n=e.createRange(t[oa("0x8c")],t.position[oa("0x6f")](1));if(!x.find((({data:t})=>t[oa("0x7c")][oa("0x93")](n))))for(const{name:t,data:i}of x)if(n[oa("0x7b")](i[oa("0x7c")])){e[oa("0x5d")](t,{range:n}),r=!0;break}}return r})),t.model[oa("0x13")][oa("0x37")]((e=>{let i=!1;const r=t.plugins.get("Users").me,o=n[oa("0xc")]()[oa("0x2d")]((t=>t.isInContent&&t[oa("0x46")]==r)),s=new Set,x=new Set;for(const t of o)if(oa("0x54")==t[oa("0x29")])for(const e of t[oa("0x4d")]()){const n=e[oa("0x39")]().getContainedElement();if(n)if(n.is(oa("0x70"),oa("0x5e"))&&ca(n)){t[oa("0x1f")](e[oa("0x4")]),s.add(n),i=!0;const r=n[oa("0x44")],o=n[oa("0x3a")],a=r&&r.is(oa("0x70"),oa("0x5e")),c=o&&o.is(oa("0x70"),oa("0x5e"));a&&!s.has(r)&&x[oa("0x64")](r),c&&!s[oa("0x6d")](o)&&x[oa("0x64")](o)}else n.is(oa("0x70"),oa("0x80"))&&n.isEmpty&&(t[oa("0x1f")](e[oa("0x4")]),i=!0)}else if(oa("0x6")==t[oa("0x29")]){if(!t[oa("0x6c")]||!t.attributes[oa("0x31")])continue;const e=t[oa("0x6c")][oa("0x7a")];if(e&&Object.keys(e)[oa("0x7d")])continue;const n=t[oa("0x6c")].tablePasteChainId;let r=!0,s=!0;for(const e of o)if(e[oa("0x29")]&&e.subType[oa("0x33")](oa("0x54"))){if(!e.attributes.tablePasteChainId){s=!1;break}if(e.id!=t.id&&e[oa("0x6c")][oa("0x31")]==n){r=!1;break}}s&&r&&(t[oa("0x47")](),i=!0)}for(const t of s)e[oa("0x3e")](t);for(const t of x)e[oa("0x2b")](t);return i})),t.conversion[oa("0x22")](oa("0x5")).markerToHighlight({model:oa("0x11"),view:(t,e)=>l(t),converterPriority:oa("0x1c")}),t.conversion[oa("0x22")]("dataDowncast")[oa("0x60")]({model:oa("0x11"),view:(t,e)=>e[oa("0x18")][oa("0x79")]?l(t,!1):null,converterPriority:"high"});const u=t[oa("0x17")].view;this[oa("0x21")](u[oa("0x13")],oa("0x9"),((t,e)=>{const n=[];for(const t of u[oa("0x58")](e[oa("0x6b")])[oa("0x4f")]())t.is(oa("0x70"),oa("0x99"))&&n[oa("0x57")](t);u[oa("0x4a")]((t=>{for(const e of n)t.move(t[oa("0x58")](e),t[oa("0x5a")](e)),t[oa("0x3e")](e)}))}))}}function ca(t){if(t[oa("0x50")])return!0;const e=t[oa("0x27")](0);return e.is(oa("0x70"),oa("0x80"))&&e.isEmpty}function la(t,e={},n){for(const{isAnchor:i,cellHeight:r,cellWidth:o}of n[oa("0x3d")](t,{includeAllSlots:!0,...e}))if(!i||1!=r||1!=o)return!1;return!0}const ua=["_suggestionFactory","_descriptionFactory","TrackChangesEditing","editor","handleSuggestionDescription","getContainedElement","author","getSuggestions","TableColumnResizeEditing","getColumnGroupElement","registerDescriptionCallback","formatGroupId","commandParams","getSelectedElement","plugins","model","resizeTable","bind","subType","has","*Format:* resize table","discard","formatInline","registerCustomCallback","getSuggestionCallback","markBlockFormat","type","resizeTableWidth","afterInit","tableWidth","accept","handleResizeTableWidthCommand","columnWidths","formatBlock","locale","format","getAttribute","get"];var da,ga;da=ua,ga=174,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x6")](){if(!this[fa("0x13")][fa("0x1e")][fa("0x23")]("TableColumnResizeEditing"))return;const t=this[fa("0x13")][fa("0x1e")][fa("0xf")](fa("0x12"));t.enableCommand(fa("0x5"),this[fa("0x9")].bind(this)),t[fa("0x10")][fa("0x1")](fa("0xb"),"resizeTable",fa("0x8"),t[fa("0x10")][fa("0x2")]("formatBlock",null,"discard")),t[fa("0x10")].registerCustomCallback(fa("0xb"),"resizeTable",fa("0x25"),t[fa("0x10")][fa("0x2")](fa("0xb"),null,"accept")),t[fa("0x11")][fa("0x1a")](this[fa("0x14")][fa("0x21")](this))}[fa("0x9")](t,e){const n=this[fa("0x13")][fa("0x1e")][fa("0xf")](fa("0x12")),i=this[fa("0x13")][fa("0x1e")][fa("0xf")](fa("0x18")),r=e.table||this[fa("0x13")][fa("0x1f")].document.selection[fa("0x1d")]();this[fa("0x13")][fa("0x1f")].change((()=>{const o=i[fa("0x19")](r);let s=o?i.getTableColumnsWidths(o):null,x=r[fa("0xe")](fa("0x7"))||null;const a=e[fa("0x7")]||x,c=e[fa("0xa")]||s,l=this.editor[fa("0x1e")][fa("0xf")]("Users").me;for(const t of n[fa("0x17")]()){const e=t[fa("0x15")]();if(fa("0x20")===t[fa("0x22")]&&e===r){t[fa("0x16")]!==l&&t[fa("0x25")]();const e=t.data[fa("0x1c")];x=e[0].tableWidth,s=e[0][fa("0xa")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0x3")](r,{commandName:fa("0x5"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x20")},[],"resizeTable")}))}[fa("0x14")](t){if(fa("0xb")!=t[fa("0x4")]&&fa("0x0")!=t.type)return;const{data:e}=t;if(e&&fa("0x20")===e[fa("0x1b")]){const t=fa("0x24");return{type:fa("0xd"),content:Yi(this.editor[fa("0xc")],t)}}}}const ha=["plugins","insertTemplate","editor","Template","enableCommand","afterInit","TrackChangesEditing"];var pa,ba;pa=ha,ba=318,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x2")](){const t=this[Ea("0x6")];t[Ea("0x4")].has(Ea("0x0"))&&t[Ea("0x4")].get(Ea("0x3"))[Ea("0x1")](Ea("0x5"))}}const Ta=["registerElementLabel","plugins","commands","TrackChangesEditing","enableCommand","_descriptionFactory","get","ELEMENT_TABLE_OF_CONTENTS","locale","editor","afterInit"];var ya,Ca;ya=Ta,Ca=162,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x2")](){const t=this[Aa("0x1")];if(!t[Aa("0x5")][Aa("0x9")]("insertTableOfContents"))return;t.plugins[Aa("0x9")](Aa("0x6"))[Aa("0x7")]("insertTableOfContents");const e=t[Aa("0x4")][Aa("0x9")](Aa("0x6")),n=t[Aa("0x0")];e[Aa("0x8")][Aa("0x3")]("tableOfContents",(t=>Yi(n,Aa("0xa"),t)))}}const Ia=["isTouching","model","has","ELEMENT_TITLE","removeMarker","registerElementLabel","element","createRange","isEqual","locale","get","getNearestSelectionRange","schema","suggestion","end","Title","updateMarker","isCollapsed","editor","title-content","start","plugins","TrackChangesEditing","registerPostFixer","document","getChangedMarkers","from","_descriptionFactory","newRange","afterInit","differ"];var Ra,va;Ra=Ia,va=261,function(t){for(;--t;)Ra.push(Ra.shift())}(++va);const Sa=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[Sa("0x10")](){const t=this[Sa("0x5")];if(!t.plugins[Sa("0x14")](Sa("0x2")))return;const e=t[Sa("0x8")][Sa("0x1c")](Sa("0x9"));e[Sa("0xe")][Sa("0x17")]("title-content",(()=>Yi(t[Sa("0x1b")],Sa("0x15")))),t[Sa("0x13")].document[Sa("0xa")]((n=>{let i=!1;const r=Array[Sa("0xd")](t[Sa("0x13")][Sa("0xb")][Sa("0x11")][Sa("0xc")]());for(const{name:o,data:s}of r){const{group:r}=e._splitMarkerName(o);if(Sa("0x0")!==r||!s[Sa("0xf")])continue;const x=s[Sa("0xf")],a=x[Sa("0x1")].nodeBefore;if(!a||!a.is(Sa("0x18"),Sa("0x6")))continue;if(!x[Sa("0x7")][Sa("0x12")](x.end))continue;const c=t[Sa("0x13")][Sa("0x1e")][Sa("0x1d")](x[Sa("0x1")],"forward");if(c&&c[Sa("0x4")]){const t=n[Sa("0x19")](x.start,c[Sa("0x7")]);t[Sa("0x1a")](x)||(n[Sa("0x3")](o,{range:t}),i=!0)}i||(n[Sa("0x16")](o),i=!0)}return i}))}}const La=["UndoEditing","TrackChangesEditing","plugins","redo","afterInit","undo","get","enableCommand","has"];var Ma,wa;Ma=La,wa=380,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x2")](){const t=this.editor,e=t[Oa("0x0")][Oa("0x4")](Oa("0x8"));t[Oa("0x0")][Oa("0x6")](Oa("0x7"))&&(e[Oa("0x5")](Oa("0x3")),e[Oa("0x5")](Oa("0x1")))}}const Da=["plugins","TrackChangesEditing","toggleTableCaption","get","requires","enableCommand"];var Ba,Pa;Ba=Da,Pa=308,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x2")](){return[zx]}afterInit(){const t=this.editor;t[Ua("0x4")].has("TableCaptionEditing")&&t.plugins[Ua("0x1")](Ua("0x5"))[Ua("0x3")](Ua("0x0"))}}const Ga=["tableBorderColor","tableCellHeight","discard","_descriptionFactory","tableHeight","*Format:* change table properties","tableProperties","get","getSuggestionCallback","tableCellVerticalAlignment","TableCellPropertiesEditing","pluginName","removeAttribute","subType","accept","tableCellBorderWidth","TableUtils","tableCellBackgroundColor","tableCellPadding","tableCellProperties","selection","formatBlock","afterInit","model","enableCommand","enqueueChange","format","_handlePropertyChange","plugins","handleDiscardAction","handleSuggestionDescription","tableAlignment","commandParams","has","tableBorderWidth","_getSuggestion","table","nodeAfter","markBlockFormat","document","locale","TrackChangesTableProperties","registerCustomCallback","getContainedElement","TrackChangesEditing","registerDescriptionCallback","editor","start","tableCellBorderStyle","tableCellHorizontalAlignment","getSuggestions","_suggestionFactory","tableWidth","batch","join"];var Va,Ha;Va=Ga,Ha=324,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0xc")]=[za("0x6"),"tableBorderStyle",za("0x28"),za("0x25"),za("0x3"),za("0xa"),"tableBackgroundColor"],this[za("0x19")]=["tableCellBorderColor",za("0x36"),za("0x15"),za("0x18"),"tableCellWidth",za("0x7"),za("0x17"),za("0x0"),za("0xf")]}static get[za("0x11")](){return za("0x2f")}[za("0x1c")](){const t=this[za("0x34")][za("0x22")][za("0xd")](za("0x32"));if(this[za("0x34")][za("0x22")][za("0x27")]("TablePropertiesEditing")){for(const e of this[za("0xc")])t[za("0x1e")](e,((t,n)=>{const i=this[za("0x34")][za("0x1d")].document.selection.getFirstPosition().findAncestor(za("0x2a"));this[za("0x21")](e,[i],this[za("0xc")],za("0xc"),t,n)}));t[za("0x2")][za("0x30")]("formatBlock",za("0xc"),za("0x14"),t[za("0x2")][za("0xe")]("formatBlock",null,za("0x8"))),t[za("0x2")].registerCustomCallback("formatBlock","tableProperties","discard",((t,e)=>this[za("0x23")](this.tableProperties,t,e))),t[za("0x2")][za("0x30")]("formatBlock",za("0xc"),"join",(()=>!1))}if(this.editor[za("0x22")][za("0x27")](za("0x10"))){for(const e of this[za("0x19")])t.enableCommand(e,((t,n)=>{const i=this[za("0x34")][za("0x22")][za("0xd")](za("0x16")).getSelectionAffectedTableCells(this.editor[za("0x1d")][za("0x2d")][za("0x1a")]);this[za("0x21")](e,i,this[za("0x19")],za("0x19"),t,n)}));t[za("0x2")][za("0x30")]("formatBlock",za("0x19"),za("0x14"),t[za("0x2")][za("0xe")](za("0x1b"),null,za("0x8"))),t[za("0x2")][za("0x30")](za("0x1b"),za("0x19"),za("0x8"),((t,e)=>this[za("0x23")](this.tableCellProperties,t,e))),t[za("0x2")][za("0x30")](za("0x1b"),"tableCellProperties",za("0x5"),(()=>!1))}t[za("0x9")][za("0x33")]((t=>this.handleSuggestionDescription(t)))}[za("0x21")](t,e,n,i,r,o){const s=this.editor.plugins.get(za("0x32"));this.editor[za("0x1d")][za("0x1f")](o[za("0x4")],(()=>{for(const t of e)if(this[za("0x29")](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[za("0x2c")](t,{commandParams:[e]},[],i)}}))}[za("0x23")](t,e,n){const i=e[0][za("0x35")][za("0x2b")],r=n[za("0x26")][0];this.editor[za("0x1d")].change((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],i):e[za("0x12")](n,i)}))}[za("0x24")](t){if(t.data)switch(t.subType){case za("0xc"):return{type:za("0x20"),content:Yi(this[za("0x34")][za("0x2e")],za("0xb"))};case"tableCellProperties":return{type:za("0x20"),content:Yi(this[za("0x34")][za("0x2e")],"*Format:* change table cell properties")}}}[za("0x29")](t,e){const n=this.editor.plugins.get("TrackChangesEditing");for(const i of n[za("0x1")]({skipNotAttached:!0})){const n=i[za("0x31")]();if(i[za("0x13")]===e&&n===t)return i}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Qa=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ya=function(t){return Qa(t)?void 0:t};var Ja=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Ja&&t&&t[Ja])};const ec=function t(e,n,i,r,o){var s=-1,x=e.length;for(i||(i=tc),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 nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const ic=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 rc=Math.max;const oc=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=rc(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),ic(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var i=ac(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(oc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var i=!1;e=ui(e,(function(e){return e=hi(e,t),i||(i=e.length>1),e})),oe(t,dn(t),n),i&&(n=ti(n,7,Ya));for(var r=e.length;r--;)Wi(n,e[r]);return n})),uc=["model","getItems","forward","isObject","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.","createPositionBefore","removeComment","ck-suggestion-marker-","skipNestingCheck","createdAt","_inlineAttributeKeys","isAfter","collaboration.channelId","$graveyard","_blockAttributeKeys","isArray","_registerInlineAttribute","hasComments","batch","$text","showSuggestionHighlights","selection","end","split","_breakSuggestionMarker","requires","howMany","_suggestions","track-changes-enable-command-twice","delete","removeMarkers","_recordAttributeChanges","substr","buildSuggestion","writer","nodeBefore","isSelectable","head","_removeSuggestion","marker-count","track-changes-adapter-missing-getsuggestion","concat","keys","$textProxy","getWalker","getContainedElement","_setSuggestionData","getCustomProperty","markerReady","never","track-changes-suggestion-data-mismatch","_enableDefaultAttributesIntegration","attribute:discard","_findSuggestions","registerPostFixer","consume","track-changes-adapter-already-set","newRange","item","_splitMarkerName","createRange","creator","options","map","_getExternalAuthor","ck-suggestion-marker-formatBlock","_onDiscard","getSuggestion","_commentsRepository","discardSelectedSuggestions","createSelection","formatBlock","authoredAt","insertion:","formatBlock:","some","always","stopListening","_recordAttributeSuggestionsFromVersion","notReady","_defaultCallbacks","addSuggestion","getAncestors","default","isInContent","range","createPositionAt","getFirstMarker","trackChanges","insertion:accept","newValue","isOwn","isAtStart","getMultiRangeId","suggestion:","_createSuggestion","splice","dataToMarker","rethrowUnexpectedError","getChangedMarkers","acceptAllSuggestions","change:activeMarkers","isIntersectingWithRange","insertContent","sort","formatInline:accept","then","attribute:accept","deleteContent","_SUGGESTION_ANNOUNCEMENT","detach","track-changes-command-not-found","formatBlock:join","addCommentThread","error-saving-suggestion-data-suggestion-discarded","enqueueChange","formatBlock:chain","_cutOutSuggestionMarker","push","lowest","accept","_descriptionFactory","locale","find","removeMarker","change","_addSuggestionMarker","isCollapsed","before","nodeAfter","ck-suggestion-marker-formatInline","values","format","data","isLimit","bindElementToMarker","getSuggestionCallback","_isForcedDefaultExecutionBlock","get","_reduceSuggestionAttributeRange","suggestion-type","addSuggestionData","startsWith","getAllAdjacentSuggestions","chain","multi","markDeletion","markerNameToElements","getFirstRange","pluginName","isTouching","length","splitPosition","trackChanges.mergeNestedSuggestions","markMultiRangeDeletion","dataReady","discard","getIntersection","fire","removeClass","acceptSelectedSuggestions","getUser","addMarker:suggestion","unbind","substring","move","activeMarkers","updateMarker","key","author","previous","insertion","insertion:discard","isRemovable","_refreshSuggestionsChain","from","createElement","includes","formatBlock:accept","document","markMultiRangeInsertion","conversion","getSuggestions","size","getAttribute","_customCallbacks","config","containsRangeInObject","backward","formatInline:join","rootName","enableReadOnlyMode","discardAllSuggestions","getNearestSelectionRange","deletion:chain","isBlock","trackChangesCommand","parent","addAttribute","markBlockFormat","isAtEnd","getDifference","_trackFormatChanges","assign","_registerBlockAttribute","_checkSuggestionCorrectness","trackChanges.trackFormatChanges","fetchCommentThread","attributeKey","_editor","PendingActions","_getAuthorFromId","createPositionAfter","_suggestionState","isBefore","containsRange","getLastMatchingPosition","commands","_isBlockAttribute","change:data","addClass","_refreshAttributeSuggestionsChain","_mergeNestedSuggestions","isIntersecting","getRange","setAttribute","getCommentThread","deletion","subType","hasCommentThread","oldRange","markInlineFormat","markMultiRangeBlockFormat","comments","isEqual","insert","isLocal","originalSuggestionId","consumable","unbindElementFromMarkerName","_adapter","discardSuggestion","removeMarker:suggestion:attribute","groupId","multipleBlocks","_rangeIsInLocalUserInsertion","schema","FORMATTING","remove","toViewElement","value","_handleNewSuggestionMarker","ready","type","low","markInsertion","suggestion","markAttributeChange","isNextTo","toJSON","isExternal","ENTER","getRanges","getShiftedBy","return","root","getOperations","Users","set","after","next","suggestionUnloaded","tablePasteChainId","_reduceExistingSuggestions","addHighlight","add","CommentsRepository","ck-suggestion-marker","markers","formatBlock:discard","_updateSuggestionData","setSelection","stop","editingDowncast","_model","attributeOldValue","_getSuggestionData","newName","authorName","_getMarkerAnnouncementText","updateSuggestion","join","_addThreadToSuggestion","targetPosition","isDocumentOperation","data-suggestion","removeAttribute","markerToHighlight","_processAttributeSuggestions","containerElement","upcast","formatInline","_joinSuggestions","position","elementEnd","enableCommand","ck-suggestion-marker--active","track-changes-suggestion-not-found","editing","addRange","attributes","addMarker:suggestion:formatBlock","isInsideObject","deletion:accept","_joinWithAdjacentSuggestions","unshift","differ","init","pop","forceDefaultExecution","$marker","markerName","start","rejected","_suggestionFactory","formatGroupId","for","_saved","define","suggestionLoaded","attributeNewValue","has","createRangeOn","filter","editor","$elementName","adapter","TrackChangesEditing","high","oldValue","element","_registerDefaultCallbacks","every","_setSuggestionRange","containsPosition","getMarkers","clear","_enabledCommands","acceptSuggestion","_initAriaMarkerChangeAnnouncements","name","deletion:join","deletion:","addUser","commentThread","dataDowncast","addMarkerName","highest","plugins","formatInline:","mapper","execute","attribute","getChanges","listenTo","ariaLiveAnnouncer","isMultiRange","_isDataLoaded","track-changes-user-not-found","commandName","forEach","_processAttributeChanges","rename","documentSelection","PENDING_ACTION_SUGGESTION","widget"];var dc,gc;dc=uc,gc=308,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x1b");class hc extends t.Plugin{static get[fc("0x5d")](){return[fc("0x158"),o.Users,t.PendingActions,ar,gr,Er,Ar,Nr,Fr,Gr,Jr,ro,co,ho,To,Ro,Mo,Po,Ho,Xo,Jo,rs,fs,cs,Es,As,Ss,Os,Us,Ks,Qs,nx,xx,dx,bx,Cx,vx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0xd9")](){return fc("0x1d")}constructor(t){function e(t){return t.map((t=>String.fromCharCode(t)))[fc("0x167")]("")}super(t),this[fc("0x92")]=null,this[fc("0x150")](fc("0xea"),[]),this.on(fc("0xa9"),((e,n,i,r)=>{this[fc("0x160")].change((()=>{for(const e of[...r,...i])this[fc("0x160")].markers[fc("0x17")](e)&&t[fc("0x0")].reconvertMarker(e)}))})),this[fc("0xbd")]=new ir(this[fc("0x1a")][fc("0x44")][fc("0x13a")],this[fc("0x1a")][fc("0xbe")]),this._adapter=null,this[fc("0x10")]=new pc(this[fc("0x1a")]),this[fc("0x5f")]=new Map,this[fc("0x88")]=t[fc("0x32")][fc("0xce")](fc("0x158")),this[fc("0x27")]=new Set,this._model=this.editor[fc("0x44")],this[fc("0x119")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[fc("0x52")]=new Set([fc("0x1b")]),this[fc("0x4e")]=new Set,t[fc("0xfe")][fc("0x14")](fc("0x112"),"default"),this[fc("0x10e")]=t[fc("0xfe")].get(fc("0x112")),t[fc("0xfe")][fc("0x14")](fc("0xdd"),!0),this._mergeNestedSuggestions=t[fc("0xfe")][fc("0xce")](fc("0xdd")),this[fc("0x108")]=new d(t,this[fc("0x27")]),this[fc("0x29")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,52,49,50])}[fc("0x9")](){const t=this.editor,n=(t,e)=>{if("attribute"!=t)return fc("0x4b")+t;const n=e[fc("0x5b")]("|")[0];return this[fc("0x11e")](n)?"ck-suggestion-marker-formatBlock":fc("0xc6")};t[fc("0xf9")][fc("0x12")](fc("0x15f"))[fc("0x16d")]({model:fc("0x144"),view:t=>{const{id:e,type:i,subType:r}=this[fc("0x7f")](t[fc("0xd")]),o=["ck-suggestion-marker",n(i,r)];let s=3e3;return this[fc("0xea")][fc("0xf5")](t[fc("0xd")])&&(o[fc("0xba")](fc("0x176")),s=3010),fc("0x127")==i&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0xf9")][fc("0x12")](fc("0x2f"))[fc("0x157")]((e=>{e.on(fc("0xe6"),((e,n,i)=>{if(!i[fc("0x82")][fc("0x58")])return;const r=n[fc("0x7e")];if(!r)return;const o=i[fc("0x34")].toViewElement(r);t[fc("0x44")][fc("0x13a")][fc("0x47")](r)&&o&&!o[fc("0x73")](fc("0x43"))&&o.is(fc("0x16f"))&&(0,x.toWidget)(o,i[fc("0x66")])}),{priority:fc("0x1e")})})),t[fc("0xf9")][fc("0x12")]("dataDowncast").markerToHighlight({model:fc("0x144"),view:(t,e)=>{if(!e[fc("0x82")][fc("0x58")])return null;const{type:i,subType:r}=this[fc("0x7f")](t[fc("0xd")]);return{classes:[fc("0x159"),n(i,r)],priority:3e3}}});const i=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(i,r,o)=>{if(!r[fc("0x7e")])return;const{id:s}=this._splitMarkerName(r[fc("0xd")]);if(n){const t=vc(this[fc("0x5f")][fc("0xce")](s));if(!this[fc("0x11e")](t))return}if(r[fc("0x7e")].is(fc("0x59")))return void o[fc("0x132")][fc("0x7b")](r[fc("0x7e")],i[fc("0x2a")]);const x=o[fc("0x34")][fc("0x13d")](r[fc("0x7e")]);if(r[fc("0x7e")].is(fc("0x20"))&&t[fc("0x44")][fc("0x13a")][fc("0x107")](r[fc("0x7e")])&&!x.getCustomProperty(fc("0x156"))){o.writer.addClass([fc("0x159"),"ck-suggestion-marker-formatBlock"],x),o[fc("0x66")].setAttribute(fc("0x16b"),s,x),o[fc("0x34")][fc("0xcb")](x,r[fc("0xd")]),e&&(this[fc("0xea")][fc("0xf5")](r[fc("0xd")])?o[fc("0x66")][fc("0x120")](fc("0x176"),x):o[fc("0x66")].removeClass(fc("0x176"),x));for(const e of t.model.createRangeIn(r[fc("0x7e")])[fc("0x45")]())o[fc("0x132")].consume(e,i.name);o.consumable[fc("0x7b")](r.item,i.name)}};t.conversion[fc("0x12")](fc("0x2f"))[fc("0x157")]((t=>{t.on(fc("0x3"),((t,e,n)=>{n[fc("0x82")][fc("0x58")]&&i({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x31")})})),t[fc("0xf9")][fc("0x12")]("dataDowncast")[fc("0x157")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[fc("0x82")][fc("0x58")]&&i({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x31")})})),t.conversion[fc("0x12")]("dataDowncast").markerToData({model:"suggestion",view:(t,e)=>e[fc("0x82")][fc("0x58")]?null:{group:fc("0x144"),name:t[fc("0x64")](11)}}),t[fc("0xf9")][fc("0x12")]("upcast").elementToElement({view:{name:fc("0x144"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0xa2")+t.getAttribute(fc("0xd0"))+":"+t[fc("0xfc")]("id");return t.getAttribute(fc("0x6b"))&&(n+=":"+t[fc("0xfc")]("marker-count")),e[fc("0xf4")](fc("0xc"),{"data-name":n})}}),t[fc("0xf9")].for(fc("0x170"))[fc("0xa5")]({view:fc("0x144")}),t.conversion[fc("0x12")](fc("0x15f")).add((t=>{t.on(fc("0x3"),i(),{priority:fc("0x1e")})})),t[fc("0xf9")][fc("0x12")](fc("0x15f")).add((t=>{t.on("addMarker:suggestion:attribute",i({isAttributeSuggestion:!0}),{priority:fc("0x1e")})})),t.conversion.for("editingDowncast")[fc("0x157")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const i=n[fc("0x34")].markerNameToElements(e[fc("0xd")]);if(i)for(const t of i)t[fc("0x73")](fc("0x156"))||(n[fc("0x66")].removeClass([fc("0x159"),fc("0x85"),fc("0x176")],t),n.writer[fc("0x16c")](fc("0x16b"),t),n[fc("0x34")][fc("0x133")](t,e[fc("0xd")]))}),{priority:fc("0x1e")})})),t[fc("0xf9")][fc("0x12")](fc("0x15f"))[fc("0x157")]((t=>{t.on(fc("0x136"),((t,e,n)=>{const i=n[fc("0x34")][fc("0xd7")](e[fc("0xd")]);if(!i)return;const{id:r}=this[fc("0x7f")](e.markerName),o=vc(this._suggestions.get(r));if(this._isBlockAttribute(o))for(const t of i)t[fc("0x73")](fc("0x156"))||(n[fc("0x66")][fc("0xe3")](["ck-suggestion-marker",fc("0x85"),"ck-suggestion-marker--active"],t),n.writer.removeAttribute(fc("0x16b"),t),n[fc("0x34")][fc("0x133")](t,e[fc("0xd")]))}),{priority:fc("0x1e")})})),t[fc("0x44")].document[fc("0x7a")]((e=>{let n=!1;const i=Array[fc("0xf3")](t[fc("0x44")][fc("0xf7")].differ.getChangedMarkers()),r=new Set;for(const{name:x,data:a}of i){const{group:i,type:c,subType:l,id:u}=this._splitMarkerName(x);if(fc("0x144")!==i)continue;const d=this[fc("0x5f")][fc("0xce")](u);if(null!=a[fc("0x7d")]){fc("0x171")==c&&(n=n||_c(a[fc("0x7d")],x,e,t.model.schema));const i=fc("0x36")==c&&this[fc("0x11e")](l[fc("0x5b")]("|")[0]);if(a[fc("0x7d")][fc("0xc3")]||fc("0x51")==a.newRange[fc("0x14d")].rootName||fc("0x8b")==c&&!yc(a[fc("0x7d")])||i&&!yc(a.newRange)||"deletion"==c&&(Ec(s=a[fc("0x7d")])||(o=s)[fc("0xe")][fc("0x109")]==o[fc("0x5a")].nodeBefore&&o[fc("0xe")][fc("0x10c")]))e[fc("0xc0")](x),n=!0;else{if(!d||!d[fc("0x98")])continue;r[fc("0x157")](d)}}}var o,s;return r[fc("0xfb")]>0&&(n=!!this[fc("0x6")](r)||n),n})),t[fc("0x44")][fc("0xf7")][fc("0x7a")]((e=>{let n=!1;for(const i of t.model[fc("0xf7")][fc("0x8")][fc("0x37")]())if(fc("0x12f")==i[fc("0x141")])for(const i of this._suggestions[fc("0xc7")]()){if(i[fc("0x3a")]||!i.isInContent)continue;const r=fc("0x8b")==i[fc("0x141")],o=vc(i),s=o&&this[fc("0x11e")](o);if(!r&&!s)continue;const x=i.getFirstRange();if(x[fc("0xe")].parent!=x[fc("0x5a")].parent&&!x.end.isAtEnd){const r=t[fc("0x44")][fc("0x9a")](x.start[fc("0xc5")],fc("0x5a")),o=t[fc("0x44")][fc("0x80")](x[fc("0xe")],r);e.updateMarker(i.getFirstMarker(),{range:o}),n=!0}}return n})),t.model.document[fc("0x7a")]((t=>this[fc("0x3f")](t))),t.model[fc("0xf7")].registerPostFixer((t=>!t[fc("0x56")][fc("0x130")]&&this[fc("0x16e")](t))),t[fc("0x44")][fc("0x15a")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x7f")](e[fc("0x2a")]),n=this[fc("0x5f")][fc("0xce")](t);n&&n.addMarkerName(e.name)}})),t.model[fc("0xf7")].on(fc("0x11f"),(()=>{const e=Array.from(t[fc("0x44")].document[fc("0x8")][fc("0xa7")]())[fc("0x19")]((t=>fc("0x144")===this[fc("0x7f")](t[fc("0x2a")]).group));if(0===e[fc("0xdb")])return;e.sort(((t,e)=>{const n=t[fc("0xc9")].oldRange,i=e[fc("0xc9")][fc("0x12a")];return null===n&&null===i?0:null===n&&null!==i?-1:null!==n&&null===i?1:n[fc("0xe")][fc("0x11a")](i[fc("0xe")])?-1:1}));const n=new Set,i=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0x7f")](t);if(null===r.oldRange){const e=this[fc("0x13f")](t);i[fc("0x157")](e)}else{const t=this[fc("0x5f")][fc("0xce")](e);null!==r[fc("0x7d")]||t[fc("0x98")]?(n[fc("0x157")](t[fc("0x69")]),i.add(t)):this[fc("0x6a")](t)}}i.size>0&&this[fc("0xf2")](i);for(const t of n)this[fc("0xe2")]("suggestionChanged",t)})),t[fc("0x44")].on("applyOperation",((e,n)=>{const i=n[0];if(!this[fc("0x5f")].size)return;if(!i[fc("0x16a")])return;if(i[fc("0x56")].isUndo||!i[fc("0x56")][fc("0x130")])return;let r,o;switch(i[fc("0x141")]){case fc("0x12f"):r=t[fc("0x44")][fc("0x9a")](i[fc("0x173")]),o=r[fc("0x14b")](i[fc("0x5e")]);break;case fc("0x5b"):r=t[fc("0x44")][fc("0x9a")](i[fc("0xdc")]),o=t[fc("0x44")][fc("0x9a")](i.moveTargetPosition);break;case fc("0xe9"):r=t.model[fc("0x9a")](i[fc("0x169")]),o=r.getShiftedBy(i[fc("0x5e")]);break;default:return}const s=t[fc("0x44")][fc("0x80")](r,o);t[fc("0x44")][fc("0xc1")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x79")](s)){if(t[fc("0x3a")])continue;if(fc("0x171")==t[fc("0x141")])continue;const n=vc(t);if(n&&this[fc("0x11e")](n)&&fc("0x5b")!=i[fc("0x141")])continue;const x=t[fc("0xc9")]&&t[fc("0xc9")][fc("0x138")];("formatBlock"!=t[fc("0x141")]||fc("0x5b")==i[fc("0x141")]&&!x)&&(e[fc("0xff")]||fc("0xef")==t.type&&e[fc("0x9f")]||t[fc("0xd8")]().containsRange(s)&&this[fc("0x5c")](t,r,o))}}))}),{priority:fc("0xbb")}),t[fc("0x44")].on(fc("0xb0"),((e,n)=>{const i=n[0],r=n[1];if(r&&r[fc("0xb")])return;if(this[fc("0xcd")])return;if(!this[fc("0x108")].value)return;if(i[fc("0xc3")])return;const o=t[fc("0x44")][fc("0x13a")],{start:s,end:x}=i[fc("0xd8")](),a=s.nodeAfter&&o[fc("0xca")](s[fc("0xc5")])?null:o[fc("0x105")](s,fc("0x46")),c=x.nodeBefore&&o[fc("0xca")](x.nodeBefore)?null:o[fc("0x105")](x,fc("0x100")),l=t.model[fc("0x80")](a?a.start:s,c?c[fc("0x5a")]:x);t.model[fc("0xc1")]((e=>{this[fc("0xd6")](l);const n=t[fc("0x44")][fc("0x13a")][fc("0x105")](l[fc("0xe")]);i.is(fc("0x41"))?e.setSelection(n):i.setTo(n)})),e[fc("0x15e")]()}),{priority:e.priorities.normal+10}),t[fc("0x44")].on(fc("0xab"),((e,n)=>{const i=n[n[fc("0xdb")]-1];i&&i[fc("0xb")]||this._isForcedDefaultExecutionBlock||this[fc("0x108")][fc("0x13e")]&&(t[fc("0x44")][fc("0xc1")]((()=>{let i=t[fc("0x44")][fc("0xab")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!i)return;e[fc("0x14c")]=i.clone();const r=i[fc("0x5a")][fc("0x67")],o=t[fc("0x44")][fc("0x13a")];r&&o[fc("0x107")](r)&&!o[fc("0x47")](r)&&(i=t[fc("0x44")].createRange(i[fc("0xe")],t[fc("0x44")][fc("0x9a")](r,"end"))),this[fc("0x143")](i)})),e[fc("0x15e")]())}),{priority:fc("0x1e")}),this[fc("0x1a")][fc("0x11d")].add("trackChanges",this[fc("0x108")]),this[fc("0x175")](fc("0x9c"));const r=new p(t,this._suggestions);t[fc("0x11d")][fc("0x157")](fc("0x28"),r),this.enableCommand("acceptSuggestion");const o=new y(t,this[fc("0x5f")]);t.commands[fc("0x157")](fc("0x135"),o),this[fc("0x175")](fc("0x135")),t.commands.add(fc("0xa8"),new F(t,r,this[fc("0x5f")])),this[fc("0x175")](fc("0xa8")),t[fc("0x11d")][fc("0x157")](fc("0x104"),new F(t,o,this[fc("0x5f")])),this[fc("0x175")]("discardAllSuggestions"),t[fc("0x11d")][fc("0x157")](fc("0xe4"),new j(t,r,this[fc("0x5f")])),this.enableCommand("acceptSelectedSuggestions"),t[fc("0x11d")][fc("0x157")]("discardSelectedSuggestions",new j(t,o,this[fc("0x5f")])),this[fc("0x175")](fc("0x89"));const s=t[fc("0x32")].get(fc("0x158"));this[fc("0x38")](s,"addComment",((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[fc("0x2e")]&&1===n[fc("0x2e")][fc("0xdb")]&&this[fc("0x15c")](e,{hasComments:!0})}),{priority:fc("0x142")}),this[fc("0x38")](s,fc("0x4a"),((t,{threadId:e})=>{const n=this[fc("0x5f")][fc("0xce")](e);n&&n[fc("0x2e")]&&!n[fc("0x2e")].length&&this[fc("0x15c")](e,{hasComments:!1})}),{priority:fc("0x142")})}set[fc("0x1c")](t){if(this[fc("0x134")])throw new e.CKEditorError(fc("0x7c"),this);this._adapter=t}get[fc("0x1c")](){return this[fc("0x134")]}[fc("0xfa")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x5f")].values())t&&!e.isInContent||n[fc("0xba")](e);return e?n.map((t=>t[fc("0x147")]())):n}getSuggestion(t){const n=this[fc("0x5f")][fc("0xce")](t);if(!n)throw new e.CKEditorError(fc("0x177"),this);return n}hasSuggestion(t){return this._suggestions[fc("0x17")](t)}[fc("0xd1")](t){const{authorId:e,id:n,attributes:i}=t,[r,o]=t[fc("0x141")].split(":"),s=this[fc("0x5f")][fc("0xce")](n)||this[fc("0xa3")](r,o,n,e,i);if(this[fc("0x168")](s),this[fc("0x111")](s,r,o||null,e),s[fc("0x4d")]=t[fc("0x4d")],s[fc("0x3b")]=!0,i&&i["@external"]){const t=i["@external"],e=this[fc("0x84")](t[fc("0x164")]);s[fc("0x8c")]=t.createdAt,s.author=e,s[fc("0x148")]=!0}else s.authoredAt=t[fc("0x4d")];switch(t[fc("0xc9")]&&(s[fc("0xc9")]=t.data),t.attributes&&(s[fc("0x2")]=t.attributes),this[fc("0x134")]&&this[fc("0x134")][fc("0x95")]||(s[fc("0x13")]=!0),this[fc("0x119")][fc("0xce")](s)){case fc("0x93"):this[fc("0x119")].set(s,fc("0xdf"));break;case"markerReady":s[fc("0x98")]?(this[fc("0xf2")](new Set([s])),this._joinWithAdjacentSuggestions(new Set([s])),this[fc("0x119")][fc("0x150")](s,fc("0x140")),this[fc("0xe2")](fc("0x15"),s)):this[fc("0x119")].set(s,"removed")}return s}[fc("0x28")](t){this[fc("0xb")]((()=>{this[fc("0x1a")].model[fc("0xc1")]((()=>{for(const e of t[fc("0xd3")]())e.accept()}))}))}[fc("0x135")](t){this[fc("0xb")]((()=>{this[fc("0x1a")][fc("0x44")][fc("0xc1")]((()=>{for(const e of t[fc("0xd3")]())e.discard()}))}))}enableCommand(t,n){const i=this[fc("0x1a")][fc("0x11d")][fc("0xce")](t);if(!i)throw new e.CKEditorError(fc("0xb3"),this,{commandName:t});if(this[fc("0x27")][fc("0x17")](i))throw new e.CKEditorError(fc("0x60"),this,{commandName:t});this[fc("0x27")][fc("0x157")](i),n&&i.on("execute",((t,e)=>{this.trackChangesCommand[fc("0x13e")]&&(this._isForcedDefaultExecutionBlock||(e[fc("0xdb")]>0&&e[e.length-1]&&e[e.length-1][fc("0xb")]?e[fc("0xa")]():(t[fc("0x14c")]=n(((...t)=>i[fc("0x35")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x15e")]())))}),{priority:fc("0x1e")})}[fc("0xb")](t){let n,i;const r=this[fc("0xcd")];this[fc("0xcd")]=!0;try{n=t()}catch(t){i=t}return r||(this[fc("0xcd")]=!1),i&&e.CKEditorError[fc("0xa6")](i,this),n}[fc("0x143")](t,n=null,i={}){if(t[fc("0xc3")])return null;const r=this[fc("0x1a")][fc("0x32")].get(fc("0x14f")).me;for(const{suggestion:e,meta:r}of this[fc("0x79")](t,fc("0xef")))if(r[fc("0x9f")]){if(!r[fc("0x146")]){if(r[fc("0xff")]){if(!this[fc("0x122")]||!Ic(e,i))continue;return e}if(Ic(e,i))return e;this._breakSuggestionMarker(e,t[fc("0xe")],t[fc("0x5a")]);break}if(n==e.subType&&Ic(e,i)){const n=e[fc("0xd8")]();return n[fc("0xe")][fc("0x12e")](t.end)?this[fc("0x23")](e,this[fc("0x160")].createRange(t[fc("0xe")],n.end)):this[fc("0x23")](e,this[fc("0x160")][fc("0x80")](n[fc("0xe")],t[fc("0x5a")])),e}}const o=(0,e.uid)(),s=r.id,x=n?"insertion:"+n:"insertion",a=this[fc("0x72")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:i});return this[fc("0xc2")](x,o,s,t),a}[fc("0xf8")](t,n="multi",i={}){const r=this[fc("0x1a")][fc("0x32")][fc("0xce")](fc("0x14f")).me,o=this[fc("0x10")].getSuggestionCallback(fc("0xef"),n,fc("0x167"));for(const e of this.getSuggestions())if(e[fc("0xed")].id==r.id&&fc("0xef")==e[fc("0x141")]&&e.subType==n&&Ic(e,i)&&(o(e[fc("0x14a")](),t)||o(t,e[fc("0x14a")]()))){for(const n of t)e[fc("0x1")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x79")](t,fc("0xef"))){if(!n[fc("0x9f")])continue;if(!this[fc("0x122")]&&n[fc("0xff")])continue;if(!Ic(e,i))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n[fc("0x11b")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0x8d")+n,c=this[fc("0x72")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:i});for(const e of t)this[fc("0xc2")](a,s,x,e,Qi.getMultiRangeId());return c}[fc("0x12b")](t,n,i=null,r={}){if(i=i||Tc(n),t.isCollapsed)return null;if(fc("0x75")===this[fc("0x10e")]){const e=this[fc("0x10")][fc("0xcc")]("formatInline",i,fc("0xbc"));return this[fc("0xb")]((()=>e([t],n,r))),null}const o=this[fc("0x1a")].plugins[fc("0xce")](fc("0x14f")).me,s=[];if("always"!==this[fc("0x10e")])for(const{suggestion:e,meta:n}of this[fc("0x79")](t,"insertion"))n[fc("0x9f")]&&!n[fc("0x4")]&&s[fc("0xba")](...e[fc("0x14a")]());const x=function(t,e){const n=[];for(const i of e){const e=t.getIntersection(i);e&&n[fc("0xba")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0xdb")];){const i=n[e].getDifference(t);n[fc("0xa4")](e,1,...i),e+=i.length}}return n}(t,s);x.length&&this[fc("0x160")][fc("0xc1")]((()=>{for(const t of x){const e=this[fc("0x10")].getSuggestionCallback(fc("0x171"),i,"accept");this[fc("0xb")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[fc("0xe")],a=t[fc("0x5a")];for(const{suggestion:e,meta:n}of this[fc("0x79")](t,"formatInline")){if(!n[fc("0x9f")])continue;if(e[fc("0x128")]!=i)continue;if(!Ic(e,r))continue;const o=e[fc("0xd8")]();if(o[fc("0x11b")](t,!0))return null;x=x.isBefore(o[fc("0xe")])?x:o[fc("0xe")],a=a[fc("0x4f")](o.end)?a:o[fc("0x5a")],s?o[fc("0xe")][fc("0x11a")](s[fc("0xd8")]()[fc("0xe")])?(s[fc("0x62")](),s=e):e[fc("0x62")]():s=e}const c=this[fc("0x160")][fc("0x80")](x,a);if(s)this[fc("0x23")](s,c);else{const t=(0,e.uid)(),s=o.id;this[fc("0x72")]({id:t,type:fc("0x33")+i,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0xc2")](fc("0x33")+i,t,s,c)}}return null}[fc("0x10b")](t,n,i=[],r=null,o={}){n[fc("0x11")]||(n.formatGroupId=n[fc("0x3d")]),n[fc("0x138")]=t.is(fc("0x99")),r=r||Tc(n);const s=i.map((t=>Cc(t,this[fc("0x160")]))),x=t.is("range")?t:Cc(t,this[fc("0x160")]);if(fc("0x75")===this[fc("0x10e")]){const t=this[fc("0x10")][fc("0xcc")](fc("0x8b"),r,fc("0xbc"));return this[fc("0xb")]((()=>t([x],n,o))),null}s[fc("0xba")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this[fc("0x10e")]){const t=this[fc("0x10")][fc("0xcc")](fc("0x8b"),r,fc("0xbc"));return this[fc("0xb")]((()=>t([x],n,o))),null}let c=null,l=x[fc("0xe")],u=x[fc("0x5a")];for(const{suggestion:t,meta:e}of this[fc("0x79")](x,fc("0x8b"))){if(!e.isOwn)continue;if(e[fc("0x146")]||e[fc("0xff")]||e[fc("0x4")])continue;if(t[fc("0xc9")][fc("0x11")]!=n[fc("0x11")])continue;if(!Ic(t,o))continue;const i=t[fc("0xd8")]();if(t.subType==r){if(i.containsRange(x,!0))return null;l=l[fc("0x11a")](i[fc("0xe")])?l:i[fc("0xe")],u=u.isAfter(i[fc("0x5a")])?u:i.end,c?i[fc("0xe")][fc("0x11a")](c[fc("0xd8")]()[fc("0xe")])?(c[fc("0x62")](),c=t):t[fc("0x62")]():c=t}else{const e=x[fc("0xe1")](i);this[fc("0xb9")](t,e)}}const d=this.editor[fc("0x32")][fc("0xce")]("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this[fc("0x160")][fc("0x80")](l,u)),c;{const t=this[fc("0x72")]({id:g,type:fc("0x8e")+r,data:n,createdAt:new Date,authorId:f,attributes:o});return this[fc("0xc2")](fc("0x8e")+r,g,f,this[fc("0x160")].createRange(l,u)),t}}[fc("0x12c")](t,n,i=[],r=null,o={}){n[fc("0x11")]||(n[fc("0x11")]=n[fc("0x3d")]);const s=t[0];n[fc("0x138")]=s.is(fc("0x99")),r=r||Tc(n);const x=i[fc("0x83")]((t=>Cc(t,this[fc("0x160")]))),a=s.is(fc("0x99"))?t:t.map((t=>Cc(t,this[fc("0x160")])));if(fc("0x75")===this[fc("0x10e")]){const t=this[fc("0x10")][fc("0xcc")]("formatBlock",r,fc("0xbc"));return this[fc("0xb")]((()=>t(a,n,o))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&fc("0x90")!==this[fc("0x10e")]){const t=this[fc("0x10")][fc("0xcc")](fc("0x8b"),r,"accept");return this[fc("0xb")]((()=>t(a,n,o))),null}const l=this[fc("0x1a")].plugins[fc("0xce")](fc("0x14f")).me;for(const t of this[fc("0xfa")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[fc("0x141")]||t[fc("0xc9")][fc("0x11")]!=n[fc("0x11")])continue;if(!Ic(t,o))continue;const e=t[fc("0x128")]==r;for(let n=0;n<a[fc("0xdb")];n++){const i=a[n];for(const r of t[fc("0x25")]()){const o=r[fc("0x124")]();if(i[fc("0x12e")](o)){e?(a[fc("0xa4")](n,1),n--):t[fc("0xc0")](r[fc("0x2a")]);break}}}}if(0==a[fc("0xdb")])return null;const u=this[fc("0x10")][fc("0xcc")](fc("0x8b"),r,fc("0x167"));for(const t of this.getSuggestions())if(t.author.id==l.id&&"formatBlock"==t[fc("0x141")]&&t[fc("0xc9")][fc("0x11")]==n[fc("0x11")]&&t.subType==r&&Ic(t,o)&&(u(t[fc("0x14a")](),a)||u(a,t[fc("0x14a")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x8e")+r,m=this[fc("0x72")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[fc("0xc2")](f,d,g,t,Qi.getMultiRangeId());return m}[fc("0xd6")](t,n=null,i={}){if(t.isCollapsed)return null;const r=this[fc("0x1a")][fc("0x32")][fc("0xce")](fc("0x14f")).me,o=new s.LiveRange(t.start,t[fc("0x5a")]);for(const{suggestion:t,meta:e}of this[fc("0x79")](o,fc("0xef")))if(e[fc("0x9f")]&&!e[fc("0x146")])if(t.isMultiRange){const e=t.getRanges()[fc("0x19")]((t=>fc("0x51")!=t[fc("0x14d")][fc("0x102")]));if(e[fc("0x22")]((t=>o[fc("0x11b")](t,!0)))&&t.discard(),e[fc("0x8f")]((t=>t[fc("0x11b")](o,!0)))){const t=this[fc("0x10")][fc("0xcc")](fc("0x127"),n,fc("0xbc"));return this.forceDefaultExecution((()=>t([o],null,i))),null}}else{const e=o.getIntersection(t[fc("0xd8")]());null!==e&&t[fc("0x86")]([e],null,i)}if(o[fc("0xb2")](),o.isCollapsed||fc("0x51")==o[fc("0x14d")][fc("0x102")])return null;let x=null,a=o[fc("0xe")],c=o[fc("0x5a")];const l=this._findSuggestions(o,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0x80")](a,c);if(e.isOwn&&(this[fc("0x122")]||!e.containsRangeInObject&&!e[fc("0x4")]))if(t[fc("0x3a")]){if(!Ic(t,i))continue;let e=!0;for(const i of t.getRanges()){if(i.containsRange(n,!0))return t;n[fc("0x11b")](i)||(e=!1)}e&&t[fc("0xe0")]()}else{const e=t[fc("0xd8")]();if(e[fc("0x11b")](n,!0))return t;if(!Ic(t,i)){n.containsRange(e)?t.removeMarkers():e[fc("0x24")](a)?a=e[fc("0x5a")]:e.containsPosition(c)&&(c=e[fc("0xe")]);continue}a=a[fc("0x11a")](e.start)?a:e.start,c=c[fc("0x4f")](e[fc("0x5a")])?c:e[fc("0x5a")],i=Object.assign({},t[fc("0x2")]),x?e[fc("0xe")][fc("0x11a")](x[fc("0xd8")]()[fc("0xe")])?(x[fc("0x62")](),x=t):t[fc("0x62")]():x=t}}if(x)return this[fc("0x23")](x,this[fc("0x160")][fc("0x80")](a,c)),x;{const t=(0,e.uid)(),o=this[fc("0x160")][fc("0x80")](a,c),s=r.id,x=n?fc("0x2c")+n:fc("0x127"),l=this[fc("0x72")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:i});return this[fc("0xc2")](x,t,s,o),l}}[fc("0xde")](t,n=fc("0xd5"),i={}){const r=this[fc("0x1a")].plugins.get(fc("0x14f")).me,o=t[fc("0x83")]((t=>new s.LiveRange(t.start,t[fc("0x5a")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x79")](o,fc("0xef")))e[fc("0x9f")]&&!e[fc("0x146")]&&x[fc("0x157")](t);for(const e of x)if(e[fc("0x3a")]){const r=e[fc("0x14a")]();if((!e[fc("0x2")]||!e[fc("0x2")][fc("0x4c")])&&r.every((t=>o.some((e=>e.containsRange(t,!0)))))&&e[fc("0xe0")](),o[fc("0x22")]((t=>r[fc("0x8f")]((e=>e[fc("0x11b")](t,!0)))))){const e=this[fc("0x10")].getSuggestionCallback(fc("0x127"),n,fc("0xbc"));return this.forceDefaultExecution((()=>e(t,null,i))),null}}else{const t=e[fc("0xd8")]();if(o[fc("0x8f")]((e=>e[fc("0x11b")](t,!0)))&&e[fc("0xe0")](),o[fc("0x22")]((e=>t[fc("0x11b")](e,!0)))){const t=this[fc("0x10")][fc("0xcc")](fc("0x127"),n,"accept");return this.forceDefaultExecution((()=>t(o,null,i))),null}}const a=this._suggestionFactory[fc("0xcc")]("deletion",n,fc("0x167"));let c=null;for(const t of this.getSuggestions())if(t[fc("0xed")].id==r.id&&t[fc("0x98")]&&fc("0x127")==t[fc("0x141")]&&t.subType==n&&Ic(t,i)&&(a(t[fc("0x14a")](),o)||a(o,t[fc("0x14a")]())))if(c){if(t[fc("0x2e")]&&t[fc("0x2e")].length)continue;for(const e of t[fc("0x14a")]())c[fc("0xaa")](e)||c.addRange(e);t[fc("0x62")]()}else{c=t;for(const e of o)t[fc("0xaa")](e)||t[fc("0x1")](e)}if(c)return c;x[fc("0x26")]();for(const{suggestion:t,meta:e}of this[fc("0x79")](o,fc("0x127")))e[fc("0x9f")]&&(this[fc("0x122")]||!e[fc("0xff")]&&!e[fc("0x4")])&&Ic(t,i)&&x[fc("0x157")](t);for(const t of x){const e=t.getRanges();if((!i||!i[fc("0x4c")])&&o.every((t=>e[fc("0x8f")]((e=>e[fc("0x11b")](t,!0))))))return t;(!t[fc("0x2")]||!t[fc("0x2")][fc("0x4c")])&&e.every((t=>o[fc("0x8f")]((e=>e[fc("0x11b")](t,!0)))))&&t[fc("0xe0")]()}const l=(0,e.uid)(),u=r.id,d=fc("0x2c")+n,g=this[fc("0x72")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:i});for(const t of o)t[fc("0xb2")](),t[fc("0xc3")]||"$graveyard"==t.root[fc("0x102")]||this._addSuggestionMarker(d,l,u,t,Qi[fc("0xa1")]());return g}[fc("0x145")](t,n,i,r,o){if(t.isCollapsed)return[];if(fc("0x75")===this[fc("0x10e")])return[];const s=this.editor[fc("0x32")][fc("0xce")](fc("0x14f")).me.id,x=Array[fc("0xf3")](this[fc("0x5f")].values())[fc("0x19")]((e=>"attribute"==e[fc("0x141")]&&e.data.key==n&&e[fc("0xaa")](t)));if(fc("0x97")===this[fc("0x10e")]){const e=this[fc("0x79")](t,"insertion")[fc("0x19")]((({meta:t})=>t.isOwn&&!t[fc("0x4")]&&!t[fc("0x146")]))[fc("0x83")]((({suggestion:t})=>t));x[fc("0x7")](...e)}const a=new Map([[t,i]]);for(const t of x){const e="attribute"==t[fc("0x141")]?t[fc("0xc9")][fc("0x1f")]:void 0,o=t.getFirstRange(),s=Array[fc("0xf3")](a[fc("0x6e")]())[fc("0xbf")]((t=>t.isIntersecting(o)));if(!s)continue;const x=s[fc("0x10d")](o);this[fc("0x11e")](n)&&fc("0xef")==t[fc("0x141")]&&0!=x[fc("0xdb")]||(a[fc("0x61")](s),x.forEach((t=>{a[fc("0x150")](t,i)})),fc("0xef")!=t[fc("0x141")]&&e!=r&&a[fc("0x150")](s[fc("0xe1")](o),e))}const c=[];for(const[t,i]of a){const x=(0,e.uid)(),a={key:n,oldValue:i,newValue:r};n[fc("0xdb")]>37&&console.warn(fc("0x48"),{key:n});const l=("attribute:"+n+"|"+Tc({newValue:r}))[fc("0xe8")](0,60),u=this[fc("0x72")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[fc("0xba")](u),this[fc("0xc2")](l,x,s,t)}return c}[fc("0x110")](t){this[fc("0x52")].add(t)}_registerInlineAttribute(t){this._inlineAttributeKeys.add(t)}[fc("0x77")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[fc("0x63")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x54")](t);for(const t of n)this[fc("0x110")](t)}[fc("0x23")](t,e){const n=t[fc("0x9b")]();this[fc("0x160")][fc("0xc1")]((t=>{t[fc("0xeb")](n,{range:e})}))}[fc("0x168")](t){const e=t.id,n=this[fc("0x1a")][fc("0xfe")].get(fc("0x50"));this[fc("0x88")][fc("0x129")](e)||this[fc("0x88")][fc("0xb5")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const i=this[fc("0x88")][fc("0x126")](e);i[fc("0xe7")]("isRemovable"),i[fc("0xf1")]=!1,t.commentThread=i}[fc("0x111")](t,n,i,r){if(t.type!=n||t[fc("0x128")]!=i||t[fc("0x81")].id!=r)throw this[fc("0x1a")][fc("0x103")](fc("0x76")),new e.CKEditorError(fc("0x76"),this)}[fc("0xb9")](t,n){const i=t[fc("0xd8")]();if(n[fc("0x12e")](i))t[fc("0x62")]();else if(i[fc("0x11b")](n)){const r=this._model[fc("0x9a")](n[fc("0xe")][fc("0x67")],fc("0x5a"));this[fc("0x23")](t,this._model[fc("0x80")](i[fc("0xe")],r));const o=(0,e.uid)(),s=t[fc("0x81")].id,x=t[fc("0x141")]+":"+t.subType;this[fc("0x72")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[fc("0xc9")],attributes:t[fc("0x2")]});const a=this[fc("0x160")][fc("0x9a")](n[fc("0x5a")][fc("0x109")],fc("0x151")),c=this[fc("0x160")][fc("0x80")](a,i[fc("0x5a")]);this[fc("0xc2")](x,o,s,c)}else if(i[fc("0x24")](n[fc("0xe")])){const e=this._model[fc("0x9a")](n[fc("0xe")][fc("0x67")],fc("0x5a"));this[fc("0x23")](t,this[fc("0x160")].createRange(i.start,e))}else{const e=this[fc("0x160")][fc("0x9a")](n[fc("0x5a")].parent,fc("0x151"));this[fc("0x23")](t,this[fc("0x160")][fc("0x80")](e,i[fc("0x5a")]))}}[fc("0x139")](t){for(const{suggestion:e,meta:n}of this[fc("0x79")](t,fc("0xef"))){if(!n[fc("0x9f")])continue;const i=e.getRanges();for(const e of i)if(!t[fc("0x10d")](e).length)return!0}return!1}[fc("0x117")](t){const n=this.editor[fc("0x32")][fc("0xce")]("Users")[fc("0xe5")](t);if(!n)throw new e.CKEditorError(fc("0x3c"),this);return n}[fc("0x84")](t){const e=this[fc("0x1a")][fc("0x32")][fc("0xce")]("Users"),n=(0,o.hashObject)("external:"+t);return e[fc("0xe5")](n)||e[fc("0x2d")]({id:n,name:t})}[fc("0xa3")](t,e,n,i,r){const o=this[fc("0x117")](i),s=this._suggestionFactory[fc("0x65")](t,e,n,o,r,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(s,fc("0xbc"),(()=>{this[fc("0x15c")](n,{state:"accepted"})}),{priority:"high"}),this[fc("0x38")](s,"discard",(()=>{this[fc("0x15c")](n,{state:fc("0xf")})}),{priority:fc("0x1e")}),this._suggestions[fc("0x150")](n,s),this[fc("0x119")][fc("0x150")](s,fc("0x93")),s}_splitMarkerName(t){const e=t[fc("0x5b")](":");return{group:e[0],type:e[1],subType:e[fc("0xdb")]>=5?e[2]:null,id:e[fc("0xdb")]<5?e[2]:e[3],authorId:e[fc("0xdb")]<5?e[3]:e[4],markerCount:6==e[fc("0xdb")]?e[5]:null}}[fc("0x5c")](t,n,i){const r=t.getFirstRange(),o=r[fc("0xe")],s=r.end;this[fc("0x23")](t,this[fc("0x160")].createRange(o,n));const x=(0,e.uid)(),a=t[fc("0x81")].id,c=t[fc("0x141")]+(t[fc("0x128")]?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data});const l=vc(t);(fc("0x8b")==t[fc("0x141")]||l&&this._isBlockAttribute(l))&&(i=this[fc("0x160")][fc("0x49")](i[fc("0x109")])),this[fc("0xc2")](c,x,a,this[fc("0x160")].createRange(i,s))}_findSuggestions(t,e=null){const n=[],i=this[fc("0x1a")][fc("0x32")][fc("0xce")](fc("0x14f")).me;Array[fc("0x53")](t)||(t=[t]);for(const r of this[fc("0xfa")]()){if(!r[fc("0x98")])continue;if(e&&r[fc("0x141")]!=e)continue;let o=!1;for(const e of r[fc("0x14a")]()){for(const s of t){const t=s[fc("0xe")].isEqual(e.end)||s.end.isEqual(e.start);if(t||s[fc("0xe1")](e)){const x=s[fc("0x11b")](e)&&bc(this[fc("0x160")][fc("0x13a")],e[fc("0xe")],s),a=e[fc("0x11b")](s)&&bc(this[fc("0x160")].schema,s.start,e);n[fc("0xba")]({suggestion:r,meta:{isOwn:i==r.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[fc("0xc2")](t,e,n,i,r){this[fc("0x160")].change((o=>{let s="suggestion:"+t+":"+e+":"+n;r&&(s=s+":"+r),o.addMarker(s,{range:i,usingOperation:!0,affectsData:!0})}))}[fc("0x6a")](t){const e=t[fc("0xee")],n=t[fc("0x152")];t[fc("0xee")]=null,t[fc("0x152")]=null,null!=e&&(e[fc("0x152")]=n),null!=n&&(n.previous=e),fc("0x140")==this[fc("0x119")][fc("0xce")](t)&&(this[fc("0x119")][fc("0x150")](t,"removed"),this[fc("0xe2")](fc("0x153"),t,e,n))}[fc("0x72")](t){const n=t.id,i=this[fc("0xd1")](t);if(this[fc("0x134")]&&this[fc("0x134")][fc("0x95")]){const r=this[fc("0x1a")].plugins.get("PendingActions"),o=i[fc("0x55")],s=i[fc("0x128")]?i[fc("0x141")]+":"+i.subType:i.type,x=this[fc("0x1a")][fc("0xbe")],a=r[fc("0x157")](Yi(x,fc("0x42"))),c={id:n,type:s,hasComments:o,data:t[fc("0xc9")]||null,originalSuggestionId:t[fc("0x131")]||null,attributes:i[fc("0x2")]};this._adapter.addSuggestion(c)[fc("0xae")]((t=>{i[fc("0x13")]=!0,r[fc("0x13c")](a),t&&t[fc("0x4d")]&&(this[fc("0x5f")][fc("0xce")](n)[fc("0x4d")]=t[fc("0x4d")])})).catch((t=>{throw(0,e.logWarning)(fc("0xb6")),this[fc("0x1a")][fc("0x44")][fc("0xb7")]({isUndoable:!1},(()=>{i[fc("0xe0")]()})),i[fc("0x91")](),this[fc("0x5f")][fc("0x61")](i.id),this[fc("0x119")][fc("0x61")](i),t}))}return i}_isBlockAttribute(t){return this[fc("0x52")].has(t)}[fc("0x15c")](t,e){const n=this[fc("0x1a")][fc("0x32")][fc("0xce")](fc("0x116")),i=this[fc("0x87")](t);if(this._adapter&&this[fc("0x134")][fc("0x166")])if(i[fc("0x13")]){const i=n[fc("0x157")](Yi(this[fc("0x1a")][fc("0xbe")],"PENDING_ACTION_SUGGESTION"));this[fc("0x134")][fc("0x166")](t,e).then((()=>{n.remove(i)}))}else i.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}[fc("0x162")](t){if(!this._adapter||!this[fc("0x134")][fc("0x87")])throw new e.CKEditorError(fc("0x6c"),this);return this._adapter[fc("0x87")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:i,authorId:r}=this._splitMarkerName(t),o=this[fc("0x5f")].get(e)||this[fc("0xa3")](n,i,e,r,{});switch(this._checkSuggestionCorrectness(o,n,i,r),this[fc("0x119")][fc("0xce")](o)){case fc("0x93"):this._getSuggestionData(e)[fc("0xae")]((t=>{let n=Promise.resolve();t[fc("0x55")]&&(n=this._commentsRepository[fc("0x113")]({channelId:this[fc("0x1a")][fc("0xfe")][fc("0xce")](fc("0x50")),threadId:e})),n[fc("0xae")]((()=>{this[fc("0xd1")](t)._saved=!0}))})),this[fc("0x119")][fc("0x150")](o,fc("0x74"));break;case"removed":this[fc("0x15c")](e,{state:"open"});case fc("0xdf"):this[fc("0x119")][fc("0x150")](o,"ready"),this[fc("0xe2")]("suggestionLoaded",o);break;case fc("0x140"):this[fc("0xe2")]("suggestionChanged",o)}return o[fc("0x30")](t),o}_refreshSuggestionsChain(t){const e=Array[fc("0xf3")](t),n=e[fc("0x19")]((t=>fc("0x36")==t[fc("0x141")]));this._refreshAttributeSuggestionsChain(n);const i=e[fc("0x19")]((t=>!t.isMultiRange&&"attribute"!=t.type)),r=this[fc("0xfa")]({skipNotAttached:!0})[fc("0x19")]((t=>!t.isMultiRange&&fc("0x36")!=t[fc("0x141")])),o=r[fc("0x19")]((e=>!t[fc("0x17")](e))),s=new Map(r[fc("0x83")]((t=>[t,this[fc("0x10")].getSuggestionCallback(t[fc("0x141")],t[fc("0x128")],fc("0xd4"))]))),x=new Map(r[fc("0x83")]((t=>[t,t[fc("0xd8")]()]))),a=new Set,c=new Set;for(let t=0;t<i[fc("0xdb")];t++)u(i[t],i,t+1);for(let t=0;t<i[fc("0xdb")];t++)u(i[t],o,0);const l=new Set;for(let t=0;t<i[fc("0xdb")];t++){const e=i[t];!c[fc("0x17")](e)&&e[fc("0xee")]&&(l[fc("0x157")](e[fc("0xee")]),e[fc("0xee")][fc("0x152")]===e&&(e[fc("0xee")].next=null),e[fc("0xee")]=null),!a[fc("0x17")](e)&&e[fc("0x152")]&&(l[fc("0x157")](e[fc("0x152")]),e[fc("0x152")].previous===e&&(e[fc("0x152")].previous=null),e[fc("0x152")]=null)}function u(t,e,n){for(let i=n;i<e[fc("0xdb")];i++){const n=d(t,e[i]);n&&(n[0][fc("0x152")]=n[1],n[1][fc("0xee")]=n[0],a[fc("0x157")](n[0]),c[fc("0x157")](n[1]))}}function d(t,e){if(t[fc("0xed")].id!==e[fc("0xed")].id)return null;const n=s.get(t)(t,e,x[fc("0xce")](t),x[fc("0xce")](e));return n&&s[fc("0xce")](e)(t,e,x.get(t),x[fc("0xce")](e))?n[1][fc("0x2e")]&&n[1][fc("0x2e")][fc("0xdb")]?null:n:null}l.size&&this._refreshSuggestionsChain(l)}[fc("0x121")](t){if(0==t[fc("0xdb")])return;const e=this[fc("0xfa")]({skipNotAttached:!0}).filter((t=>fc("0x36")==t[fc("0x141")]&&t[fc("0x3b")])),n=[],i=new Map;for(const t of e){const e=(0,o.hashObject)(t.attributes);i[fc("0x17")](e)||(i.set(e,n[fc("0xdb")]),n[fc("0xba")]([]));const r=i.get(e);n[r][fc("0xba")](t)}!function(){n.sort(((t,e)=>{const n=t[0][fc("0x4d")],i=e[0][fc("0x4d")];return n==i?t[0][fc("0x2")][fc("0x137")]<e[0].attributes[fc("0x137")]?-1:1:n<i?-1:1}));for(const t of n)t[fc("0xac")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0xdb")];t++){if(0==n[t][fc("0xdb")])continue;const e=[];for(let i=t+1;i<n[fc("0xdb")];i++)0!=n[i][fc("0xdb")]&&r(n[t],n[i])&&e[fc("0xba")](i);for(const i of e)n[t]=n[t][fc("0x6d")](n[i]),n[i]=[]}for(const t of n)for(let e=0;e<t[fc("0xdb")];e++)t[e][fc("0x152")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e].previous=t[e-1]||null;function r(t,e){if(t[0][fc("0xed")]!==e[0].author)return!1;if(n=t[0],i=e[0],(n[fc("0x55")]||i[fc("0x55")])&&(n[fc("0x55")]&&i[fc("0x55")]||!(n[fc("0x55")]&&i[fc("0x4d")]<n.commentThread[fc("0x12d")][fc("0xce")](0)[fc("0x4d")]||i[fc("0x55")]&&n.createdAt<i[fc("0x2e")].comments[fc("0xce")](0)[fc("0x4d")])))return!1;var n,i;const r=lc(t[0].attributes,"groupId"),o=lc(e[0][fc("0x2")],"groupId");return!!ji(r,o)&&(!!t.every((t=>e[fc("0x8f")]((e=>t[fc("0xd8")]()[fc("0x12e")](e[fc("0xd8")]())))))&&e[fc("0x22")]((e=>t[fc("0x8f")]((t=>e[fc("0xd8")]()[fc("0x12e")](t[fc("0xd8")]()))))))}}[fc("0x6")](t){const e=Array[fc("0xf3")](t),n=this.getSuggestions({skipNotAttached:!0}),i=n[fc("0x19")]((e=>!t[fc("0x17")](e))),r=new Map(e.map((t=>[t,this[fc("0x10")][fc("0xcc")](t[fc("0x141")],t.subType,"join")]))),o=new Map(n.map((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[fc("0xdb")];t++)if(s(this,e[t],i,0))return!0;return!1;function s(t,e,n,i){for(let s=i;s<n[fc("0xdb")];s++){const i=n[s];if(i[fc("0x141")]!==e[fc("0x141")]||i[fc("0xed")].id!==e[fc("0xed")].id||i.subType!==e[fc("0x128")])continue;if(!kc(e,i))continue;if(fc("0x36")==e[fc("0x141")]&&e[fc("0xc9")].oldValue!=i[fc("0xc9")][fc("0x1f")])continue;if(fc("0x36")==e[fc("0x141")]&&t[fc("0x11e")](e.data.key))continue;if(fc("0x8b")==e.type){const n=t[fc("0x1a")][fc("0x44")],i=e[fc("0x71")]();if(i&&(n.schema[fc("0x47")](i)||n[fc("0x13a")][fc("0xca")](i)))continue}const x=r[fc("0xce")](e),a=o[fc("0xce")](e),c=o.get(i),l=e[fc("0x2e")]&&e[fc("0x2e")][fc("0xdb")],u=i[fc("0x2e")]&&i[fc("0x2e")][fc("0xdb")];if(!l&&x(c,a))return t._joinSuggestions(i,e),o.delete(e),!0;if(!u&&x(a,c))return t[fc("0x172")](e,i),o.delete(i),!0}return!1}}[fc("0x172")](t,e){if(t[fc("0x3a")])for(const n of e[fc("0x14a")]())t[fc("0x1")](n);else{const n=e.getFirstRange()[fc("0x5a")];this[fc("0x23")](t,this._model[fc("0x80")](t[fc("0xd8")]()[fc("0xe")],n))}e.removeMarkers()}[fc("0x165")](t,e){const n=t[fc("0xd2")](fc("0xc8"))||t.startsWith(fc("0x36"))?fc("0x13b"):t.toUpperCase();return Yi(this[fc("0x1a")][fc("0xbe")],e+"_"+n+fc("0xb1"))}_initAriaMarkerChangeAnnouncements(){const t=this[fc("0x1a")];(0,o.surroundingMarkersDetector)(this[fc("0x160")],(({left:e,entered:n})=>{const i=[];for(const t of e){const{group:e,type:n}=this[fc("0x7f")](t[fc("0x2a")]);if(fc("0x144")===e){i[fc("0xba")](this[fc("0x165")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t.name);if("suggestion"===e){i.push(this[fc("0x165")](n,fc("0x149")));break}}i.length&&t.ui[fc("0x39")].announce(fc("0x9c"),i[fc("0x167")](" "))}))}[fc("0x3f")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return!1;const e=this[fc("0x1a")],n=e[fc("0x44")][fc("0xf7")][fc("0x8")][fc("0x37")]();if(0==n[fc("0xdb")])return!1;const i=[],r=n[fc("0x19")]((t=>fc("0x36")==t[fc("0x141")])),o=n[fc("0x19")]((t=>fc("0x12f")==t.type&&fc("0x57")!=t[fc("0x2a")])),s=n[fc("0x19")]((t=>"remove"==t[fc("0x141")]&&fc("0x57")!=t[fc("0x2a")]));for(const t of r)i[fc("0xba")]({key:t[fc("0x114")],newValue:t[fc("0x16")],oldValue:t[fc("0x161")],range:(x=t[fc("0x99")],null==x.end[fc("0x67")]&&x[fc("0x5a")][fc("0x109")]==x[fc("0xe")][fc("0xc5")]?Cc(x[fc("0xe")][fc("0xc5")],e.model):x)});var x;for(const t of o){const n=s[fc("0xbf")]((e=>e.position[fc("0x12e")](t[fc("0x173")])));n&&i[fc("0xba")]({key:"$elementName",newValue:t[fc("0x2a")],oldValue:n.name,range:e[fc("0x44")][fc("0x18")](t[fc("0x173")].nodeAfter)})}return 0!=i.length&&this[fc("0x155")](t,i)}[fc("0x16e")](t){let e=!1;const n=this[fc("0x1a")][fc("0x44")].document[fc("0x8")].getChangedMarkers().filter((t=>t[fc("0xc9")].newRange&&t.name[fc("0xd2")]("suggestion:attribute:")));for(const i of n){const{subType:n,id:r}=this[fc("0x7f")](i[fc("0x2a")]),o=n.split("|")[0];for(const n of this[fc("0xfa")]({skipNotAttached:!0}))n.id!=r&&fc("0x36")==n[fc("0x141")]&&n[fc("0xc9")]&&n[fc("0xc9")][fc("0xec")]==o&&n.getFirstRange()[fc("0x123")](i[fc("0xc9")].newRange)&&(this[fc("0xcf")](n,i[fc("0xc9")].newRange,t),e=!0)}return e}_recordAttributeChanges(t){if(null!==this[fc("0x92")])return void t();const n=this.editor;this._recordAttributeSuggestionsFromVersion=n.model[fc("0xf7")].version,t();const i=new Map;for(const t of n.model[fc("0xf7")].history[fc("0x14e")](this._recordAttributeSuggestionsFromVersion))if([fc("0x40"),fc("0x10a"),fc("0x16c"),"changeAttribute"].includes(t[fc("0x141")])){const e=t.batch,n=i[fc("0xce")](e)||[];n.push(t),i[fc("0x150")](e,n)}this._recordAttributeSuggestionsFromVersion=null;for(const[t,r]of i){const i=(0,e.uid)();n[fc("0x44")][fc("0xb7")](t,(t=>{const e=[];for(const t of r){let r,o,s,x;if("rename"==t[fc("0x141")]){const e=t;r=Cc(e[fc("0x173")][fc("0xc5")],n.model),o=fc("0x1b"),s=e[fc("0x163")],x=e.oldName}else{const e=t,i=this[fc("0x11e")](e[fc("0xec")]),a=this[fc("0x4e")].has(e.key);if(!i&&!a)continue;r=i?Cc(e[fc("0x99")][fc("0xe")].nodeAfter,n[fc("0x44")]):e[fc("0x99")],o=e.key,s=fc("0x16c")==t[fc("0x141")]?void 0:e[fc("0x9e")],x=e[fc("0x1f")]}this[fc("0x145")](r,o,x,s,{groupId:i}),e[fc("0xba")]({range:r,key:o,newValue:s,oldValue:x})}this._reduceExistingSuggestions(t,e)}))}}[fc("0x155")](t,e){if(0==e.length)return!1;let n=!1;for(const i of e){const e=this._findSuggestions(i[fc("0x99")],fc("0x36"))[fc("0x19")]((t=>!t.meta.isNextTo)).map((t=>t.suggestion)),r=(0,o.hashObject)({newValue:i[fc("0x9e")]});e[fc("0x19")]((t=>{const[e,n]=t[fc("0x128")][fc("0x5b")]("|");return e==i[fc("0xec")]&&n!=r}))[fc("0x3e")]((e=>{this[fc("0xcf")](e,i[fc("0x99")],t),n=!0}))}return n}[fc("0xcf")](t,e,n){const i=t.getFirstRange()[fc("0x10d")](e);0!==i[fc("0xdb")]?1!==i[fc("0xdb")]?this._breakSuggestionMarker(t,e.start,e[fc("0x5a")]):this[fc("0x23")](t,i[0]):n[fc("0xc0")](t[fc("0x9b")]())}}class pc{constructor(t){this._editor=t,this[fc("0x160")]=t[fc("0x44")],this[fc("0xfd")]=new Map,this[fc("0x94")]=new Map,this[fc("0x21")]()}[fc("0x65")](t,e,n,i,r,o){return new Qi(this[fc("0x160")],{type:t,subType:e,id:n,author:i,creator:i,attributes:r,onAttributesChange:o,onAccept:(...n)=>this[fc("0xcc")](t,e,fc("0xbc"))(...n),onDiscard:(...n)=>this[fc("0xcc")](t,e,"discard")(...n)})}registerCustomCallback(t,e,n,i){const r=t+":"+e+":"+n;this._customCallbacks[fc("0x150")](r,i)}[fc("0xcc")](t,e,n){const i=t+":"+e+":"+n;return this[fc("0xfd")][fc("0xce")](i)||this[fc("0x94")][fc("0xce")](t+":"+n)}[fc("0x21")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[fc("0xe")][fc("0x11a")](e[fc("0xe")])?1:-1)),this[fc("0x160")][fc("0xc1")]((e=>{for(const n of t){let t;t=n.end.isAtEnd&&n[fc("0x5a")].parent==n[fc("0xe")].nodeAfter?e[fc("0x8a")](n.start[fc("0xc5")],"on"):e[fc("0x8a")](n),this._model[fc("0xb0")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0xc1")]((n=>{const{commandName:i,commandParams:r=[]}=e,o=t[fc("0x83")]((t=>(Ec(t)&&(t=this[fc("0x160")][fc("0x80")](t.end)),t))).filter((t=>fc("0x51")!==t[fc("0x14d")].rootName));if(o[fc("0xdb")]<1)return;const x=Array.from(this[fc("0x160")].document[fc("0x59")][fc("0x14a")]()).map((t=>s.LiveRange.fromRange(t)));n.setSelection(o);for(const t of this._editor[fc("0x11d")].commands())t.refresh();r[fc("0xba")]({forceDefaultExecution:!0}),this[fc("0x115")][fc("0x35")](i,...r);const a=x[fc("0x19")]((t=>fc("0x51")!=t[fc("0x14d")][fc("0x102")]));a[fc("0xdb")]>0&&n[fc("0x15d")](a);for(const t of x)t[fc("0xb2")]()}))},i=(t,e)=>1==t[fc("0xdb")]&&1==e.length&&t[0][fc("0x5a")][fc("0x12e")](e[0][fc("0xe")]),r=(t,e,n,i)=>Ac(t,e,n,i,this[fc("0x160")])?[t,e]:Ac(e,t,i,n,this[fc("0x160")])?[e,t]:null;this[fc("0x94")][fc("0x150")](fc("0x9d"),t),this[fc("0x94")][fc("0x150")](fc("0xf0"),e),this[fc("0x94")].set("insertion:join",i),this._defaultCallbacks.set("insertion:chain",r),this[fc("0x94")][fc("0x150")](fc("0x5"),e),this[fc("0x94")][fc("0x150")]("deletion:discard",t),this[fc("0x94")][fc("0x150")](fc("0x2b"),i),this[fc("0x94")][fc("0x150")](fc("0x106"),r),this[fc("0x94")][fc("0x150")](fc("0xad"),n),this[fc("0x94")][fc("0x150")]("formatInline:discard",t),this[fc("0x94")][fc("0x150")](fc("0x101"),i),this._defaultCallbacks.set("formatInline:chain",t),this[fc("0x94")][fc("0x150")](fc("0xf6"),n),this[fc("0x94")][fc("0x150")](fc("0x15b"),t),this[fc("0x94")][fc("0x150")](fc("0xb4"),i),this[fc("0x94")][fc("0x150")](fc("0xb8"),t),this[fc("0x94")].set(fc("0xaf"),t),this[fc("0x94")].set(fc("0x78"),((t,e)=>{if(!e)return;const n=this._editor[fc("0x32")][fc("0xce")](hc);this[fc("0x160")][fc("0xc1")]((i=>{if(fc("0x1b")==e.key)for(const n of t){const t=n[fc("0xe")].nodeAfter,r=e[fc("0x1f")];i[fc("0x40")](t,r)}else if(n[fc("0x11e")](e[fc("0xec")]))for(const n of t)void 0!==e.oldValue?i[fc("0x125")](e[fc("0xec")],e[fc("0x1f")],n[fc("0xe")][fc("0xc5")]):i.removeAttribute(e[fc("0xec")],n[fc("0xe")][fc("0xc5")]);else for(const n of t)e[fc("0x1f")]?i.setAttribute(e.key,e[fc("0x1f")],n):i[fc("0x16c")](e[fc("0xec")],n)}))})),this[fc("0x94")][fc("0x150")]("attribute:join",i)}}function bc(t,e,n){for(const i of e[fc("0x109")][fc("0x96")]({includeSelf:!0,parentFirst:!0})){if(i[fc("0x14d")]==i)return!1;if(!n.containsItem(i))return!1;if(t[fc("0x47")](i)||t.isLimit(i))return!0}return!1}function Ec(t){return t[fc("0x5a")][fc("0x109")]==t[fc("0xe")][fc("0xc5")]&&t[fc("0x5a")][fc("0xa0")]}function _c(t,e,n,i){const r=t=>!t[fc("0x7e")].is(fc("0x6f"))&&!i[fc("0x47")](t[fc("0x7e")]),o=t[fc("0xe")][fc("0x11c")](r),s=t[fc("0x5a")].getLastMatchingPosition(r,{direction:fc("0x100")});return!(t[fc("0xe")].isEqual(o)&&t[fc("0x5a")].isEqual(s)||(o[fc("0x11a")](s)?n[fc("0xeb")](e,{range:n[fc("0x80")](o,s)}):n[fc("0xc0")](e),0))}function Tc(t){return(0,o.hashObject)(t)}function yc(t){const e=t[fc("0xe")][fc("0xc5")];return e&&e.is("element")}function Cc(t,e){const n=e[fc("0x13a")][fc("0x47")](t)||e[fc("0x13a")][fc("0x68")](t);return e.createRange(e[fc("0x9a")](t,fc("0xc4")),n?e[fc("0x118")](t):e[fc("0x9a")](t,fc("0x5a")))}function Ac(t,e,n,i,r){if(!kc(t,e))return!1;if(n[fc("0x5a")][fc("0x12e")](i.start))return!0;if(t.type!=e[fc("0x141")])return!1;if(!n[fc("0x5a")][fc("0xda")](i[fc("0xe")]))return!1;const o=r[fc("0x80")](n[fc("0x5a")],i[fc("0xe")])[fc("0x70")]();for(const t of o)if(["elementStart",fc("0x174")][fc("0xf5")](t[fc("0x141")])&&r.schema[fc("0xca")](t[fc("0x7e")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x3b")]||!e._isDataLoaded)&&ji(t.attributes,e[fc("0x2")])}function Ic(t,e){const n=Rc(t[fc("0x2")]),i=Rc(e);if(!t[fc("0x3b")])return!1;for(const t of Object[fc("0x6e")](i))if(!ji(n[t],i[t]))return!1;return!0}function Rc(t){const e=Object[fc("0x10f")]({},t);return delete e[fc("0x4c")],delete e[fc("0x154")],e}function vc(t){return fc("0x36")==t.type?t[fc("0x128")][fc("0x5b")]("|")[0]:null}const Sc=["model","remove","commentThreadController","canDiscard","view","get","locale","unbind","stopListening","_removePendingAction","_editor","canAccept","isDirty","getRanges","commands","destroy","canEditAt","add","isEnabled","change:isDirty","_acceptCommand","_discardCommand","_setPendingAction","execute","discardSuggestion","PENDING_ACTION_SUGGESTION","bind","acceptSuggestion","PendingActions","plugins","_pendingAction"];var Nc,Lc;Nc=Sc,Lc=470,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return Sc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,i){super(),this[Mc("0x1a")]=e,this[Mc("0x1e")]=n,this[Mc("0x1c")]=i,this[Mc("0x5")]=t,this[Mc("0xf")]=t[Mc("0x9")].get(Mc("0x16")),this[Mc("0x10")]=t[Mc("0x9")][Mc("0x0")](Mc("0x13")),this[Mc("0x1e")][Mc("0x15")]("isEnabled").to(this[Mc("0xf")],this[Mc("0x10")],((t,e)=>t||e)),this.view[Mc("0x15")](Mc("0x6")).to(this[Mc("0xf")],Mc("0xd"),(t=>t&&this[Mc("0x5")][Mc("0x1a")][Mc("0xb")](e[Mc("0x8")]()))),this.view.bind(Mc("0x1d")).to(this[Mc("0x10")],Mc("0xd"),(t=>t&&this._editor[Mc("0x1a")][Mc("0xb")](e[Mc("0x8")]()))),this[Mc("0x19")]=null,n[Mc("0x7")]&&this._setPendingAction(),this.listenTo(n,"acceptSuggestion",(()=>this[Mc("0x16")]())),this.listenTo(n,Mc("0x13"),(()=>this[Mc("0x13")]())),this.listenTo(n,Mc("0xe"),(()=>{n[Mc("0x7")]?this[Mc("0x11")]():this[Mc("0x4")]()}))}[Mc("0x16")](){this[Mc("0xf")][Mc("0x12")](this[Mc("0x1a")].id)}[Mc("0x13")](){this[Mc("0x10")][Mc("0x12")](this.model.id)}[Mc("0xa")](){this[Mc("0x1e")].unbind(Mc("0xd")),this.view[Mc("0x2")](Mc("0x6")),this[Mc("0x1e")][Mc("0x2")]("canDiscard"),this[Mc("0x3")](),this[Mc("0x1c")][Mc("0xa")](),this[Mc("0x19")]&&this._removePendingAction()}_setPendingAction(){const t=Yi(this[Mc("0x5")][Mc("0x1")],Mc("0x14"));this[Mc("0x19")]=this[Mc("0x5")].plugins[Mc("0x0")](Mc("0x17"))[Mc("0xc")](t)}[Mc("0x4")](){null!==this._pendingAction&&this[Mc("0x5")][Mc("0x18")].get(Mc("0x17"))[Mc("0x1b")](this._pendingAction),this._pendingAction=null}}const Oc=["submit","commentsListView","hasDirtyComment","value","_createCommentThreadInputView","isDirty","destroy","CommentView","focus","disabledSubmit","assign","updateComment","removeComment","delegate","set","commentThread","disableComments","isReadOnly","canDiscard","_localUser","addComment","_config","locale","_createCommentViews","fire","cancel","commentInputView","bind","authoredAt","commentThreadInputView","_model","isActive","length"];var Fc,Dc;Fc=Oc,Dc=311,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends r.View{constructor(t,e,n,i){super(t),this[Bc("0x14")]=null,this[Bc("0xf")]=null,this.set(Bc("0x11"),!1),this.set(Bc("0xe"),e.authoredAt),this[Bc("0xd")](Bc("0xe")).to(e),this.set("descriptionParts",[]),this[Bc("0x0")](Bc("0x18"),!1),this[Bc("0x0")]("isEnabled",!1),this.set("canAccept",!1),this.set(Bc("0x4"),!1),this._model=e,this._localUser=n,this[Bc("0x7")]=i,i[Bc("0x2")]?this[Bc("0x0")](Bc("0x12"),1):this[Bc("0x9")]()}[Bc("0x1b")](){this.element[Bc("0x1b")]()}[Bc("0x19")](){this[Bc("0x14")]&&this[Bc("0x14")].destroy(),this[Bc("0xf")]&&this[Bc("0xf")][Bc("0x19")](),super.destroy()}[Bc("0x9")](){const{CommentsListView:t}=this._config;this[Bc("0x14")]=new t(this[Bc("0x8")],this._model[Bc("0x1")],Object[Bc("0x1d")]({CommentView:this[Bc("0x7")][Bc("0x1a")]},this[Bc("0x7")])),this[Bc("0x14")][Bc("0x20")](Bc("0x1f")).to(this),this[Bc("0x14")][Bc("0x20")](Bc("0x1e")).to(this),this[Bc("0x14")][Bc("0xd")]("isActive").to(this),this[Bc("0x0")](Bc("0x12"),this[Bc("0x14")][Bc("0x12")]+1),this[Bc("0xd")](Bc("0x12")).to(this[Bc("0x14")],Bc("0x12"),(t=>t+1)),this[Bc("0xf")]=this._createCommentThreadInputView(),this.on("removeComment",(()=>this[Bc("0x1b")]())),this[Bc("0xd")](Bc("0x18")).to(this[Bc("0x14")],Bc("0x15"),this[Bc("0xf")][Bc("0xc")],Bc("0x16"),((t,e)=>t||!!e))}[Bc("0x17")](){const{CommentThreadInputView:t}=this[Bc("0x7")],e=new t(this.locale,this[Bc("0x5")],this[Bc("0x7")].editorConfig),n=e[Bc("0xc")];return e[Bc("0xd")]("showInput").to(this,"isActive",this[Bc("0x10")][Bc("0x1")],"isReadOnly",n,Bc("0x16"),((t,e,n)=>!!n||t&&!e)),n.on(Bc("0x13"),((t,e)=>{this[Bc("0xa")](Bc("0x6"),e),n.editor.setData("")})),n.on(Bc("0xb"),(()=>this.focus())),n[Bc("0xd")](Bc("0x1c")).to(this[Bc("0x10")][Bc("0x1")],Bc("0x3")),e}}const Uc=["cancel","authoredAt","createElement","acceptButton","ck-annotation__info","children","ck-suggestion-wrapper","fire","EXTERNAL_AVATAR","EXTERNAL_IMPORT_WORD_SUGGESTION","set","attributes","ck-suggestion-wrapper--active",'<span class="ck-suggestion-color" style="background-color: ',"</p>","change:description","_createButton","render","commentThread","EXTERNAL_SUGGESTION","ck-suggestion__info-name","div","innerText","bind","ck-annotation__info-name","description","editorDestroyed","discardSuggestion","canAccept","ck-suggestion","element","canDiscard","disableComments","author","acceptSuggestion","ck-annotation","discardButton","setTemplate","creator","color","value","ck-suggestion__user",'<span class="ck-suggestion-type">',"execute",".ck-annotation__content-wrapper","ck-annotation__content-wrapper","ck-annotation__main","push","ck-comment__external","ck-suggestion__actions","ck-suggestion-","span","_descriptionElement","getExternalSuggestionNote","type","source","name","map","_config","</span>",'"></span>',"editorReady","_model","ck-suggestion--discard","Discard suggestion","ck-annotation__actions","commentThreadInputView","isExternal","join","isActive","getUserViewNotificationText","innerHTML","title","ck-suggestion--accept","commentsListView","extendTemplate","descriptionParts","<p>","locale","isEnabled","delegate","importWord","EXTERNAL_IMPORT_WORD_AVATAR","userView","@external"];var jc,Gc;jc=Uc,Gc=188,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,i,r){super(e,n,i,r),this[Vc("0x4d")](Vc("0x24"),""),this[Vc("0x5")](Vc("0x24")).to(this,Vc("0x3a"),(t=>t&&t[0]?t[0][Vc("0x24")]:"")),this[Vc("0x5")](Vc("0x7")).to(this,Vc("0x3a"),this,Vc("0x33"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x3b")+zc(e.content,e[Vc("0x15")])+Vc("0x51");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Vc("0x22")]=null,this[Vc("0x46")]=this[Vc("0x53")](Yi(e,"Accept suggestion"),t.icons.check,Vc("0x37"),Vc("0x10"),"sw"),this[Vc("0x46")][Vc("0x5")]("isEnabled").to(this,Vc("0xa")),this.discardButton=this._createButton(Yi(e,Vc("0x2e")),t.icons[Vc("0x43")],Vc("0x2d"),Vc("0x9"),"sw"),this[Vc("0x12")][Vc("0x5")](Vc("0x3d")).to(this,Vc("0xd")),this.userView=new o.UserView(e,this._model.author,this[Vc("0x34")]()),this[Vc("0x41")].extendTemplate({attributes:{class:[Vc("0x17"),"ck-annotation__user"]}}),this[Vc("0x13")](this.getTemplate())}getTemplate(){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:["ck-suggestion__info",Vc("0x47")]},children:[{tag:Vc("0x21"),children:[{text:this[Vc("0x41")][Vc("0x26")]}],attributes:{class:[Vc("0x2"),Vc("0x6")]}},{tag:"time",attributes:{datetime:t.to(Vc("0x44")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to(Vc("0x44"),(t=>this._config.formatDateTime(t)))}]}]},{tag:"div",attributes:{class:[Vc("0x1f"),Vc("0x2f")]},children:[this[Vc("0x46")],this.discardButton]},{tag:"div",attributes:{class:[Vc("0x1b")]}}];this[Vc("0x2c")].isExternal&&e[Vc("0x1d")]({tag:Vc("0x3"),attributes:{class:[Vc("0x1e")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:[Vc("0x49"),t.if(Vc("0x33"),Vc("0x4f")),t.to("type",(t=>Vc("0x20")+t)),this[Vc("0x28")][Vc("0xe")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this._model.id,"data-thread-id":this[Vc("0x2c")][Vc("0x0")].id,"data-author-id":this[Vc("0x2c")][Vc("0xf")].id,tabindex:-1},children:[{tag:Vc("0x3"),attributes:{class:[Vc("0xb"),Vc("0x11")]},children:[this[Vc("0x41")],{tag:Vc("0x3"),attributes:{class:["ck-suggestion__main",Vc("0x1c")]},children:e}]}]};return this[Vc("0x38")]&&this.commentThreadInputView&&(n[Vc("0x48")].push(this[Vc("0x38")],this[Vc("0x30")]),this[Vc("0x38")][Vc("0x3e")](Vc("0x2b")).to(this),this[Vc("0x38")][Vc("0x3e")](Vc("0x8")).to(this),this.commentThreadInputView.delegate(Vc("0x2b")).to(this),this[Vc("0x30")][Vc("0x3e")](Vc("0x8")).to(this)),n}[Vc("0x54")](){super[Vc("0x54")](),this[Vc("0x22")]=this[Vc("0xc")].querySelector(Vc("0x1a")),this[Vc("0x22")][Vc("0x35")]=this[Vc("0x7")],this.on(Vc("0x52"),((t,e,n)=>{this[Vc("0x22")][Vc("0x35")]=n}))}[Vc("0x53")](t,e,n,i,o){const s=new r.ButtonView(this.locale);return s[Vc("0x4d")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Vc("0x39")]({attributes:{class:n}}),s.on(Vc("0x19"),(()=>{this[Vc("0x4a")](i,this[Vc("0x2c")].id)})),s}[Vc("0x23")](){return Vc("0x3f")===this[Vc("0x2c")][Vc("0x4e")]["@external"][Vc("0x25")]?Yi(this[Vc("0x3c")],Vc("0x4c")):Yi(this.locale,Vc("0x1"))}[Vc("0x34")](){return this[Vc("0x2c")][Vc("0x31")]?Vc("0x3f")===this[Vc("0x2c")][Vc("0x4e")][Vc("0x42")].source?Yi(this[Vc("0x3c")],Vc("0x40"),this[Vc("0x2c")][Vc("0x14")][Vc("0x26")]):Yi(this[Vc("0x3c")],Vc("0x4b"),this[Vc("0x2c")][Vc("0x14")][Vc("0x26")]):null}}function zc(t,e){let n="";return n+=t.split("*")[Vc("0x27")](((t,e)=>e%2!=0?Vc("0x18")+Wc(t)+Vc("0x29"):Wc(t)))[Vc("0x32")](""),e&&(n+=Vc("0x50")+e[Vc("0x16")]+'" title="'+e[Vc("0x36")]+Vc("0x2a")),n}function Wc(t){const e=document[Vc("0x45")](Vc("0x21"));return e[Vc("0x4")]=t,e[Vc("0x35")]}const Kc=["value","TrackChangesUI","length","model","buttonView","editing","discardButton","descriptionParts","createAnnotation","some","has","unbind","bind","EditorAnnotations","activeAnnotations","getMarkerNames","type","comments.maxCommentCharsWhenCollapsed","comments.editorConfig","_disableComments","activeMarkers","CommentsRepository","isEnabled","suggestion-","listenTo","hasSuggestion","SuggestionThreadView","_initializeController","separator","Annotations","Accept all selected suggestions","_destroyController","getDescriptions","comments.maxCommentsWhenCollapsed","createCommentThreadController","Discard all suggestions","suggestionLoaded","_updateController","execute","trackChanges.disableComments","getFirstRange","actionView","from","get","getRanges","_createUIButton","plugins","filter","getJoined","TrackChangesEditing","_handleSuggestionControllerDelayed","comments","getAllAdjacentSuggestions","_suggestionToController","createAnnotationView","Discard all selected suggestions","getByInnerView","locale","define","addComment","stopListening","editor","delete","componentFactory","suggestionUnloaded","trackChanges","values","_handleControllerBuffer","isMultiRange","innerView","commentThread","reduce","commandName","toMany","source","getMarkers","CommentView","addSourceCollector","keys","discardAllSuggestions","_annotationViews","size","arrowView","add","head","previous","_viewToController","isInContent","button","set","switchbutton","getSuggestion","_bindAnnotationToEditors","view","change:previous","mainView","registerAnnotation","config","acceptButton","destroy","acceptSelectedSuggestions","requires","focus","push","commands","_descriptionFactory","_refreshActiveMarkers","change:activeAnnotations","Track changes","isDirty","trackChanges.SuggestionThreadView","isOn"];var qc,Xc;qc=Kc,Xc=413,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get[$c("0x18")](){return[hc,o.Users,$c("0x38"),$c("0x40"),"EditorAnnotations"]}static get pluginName(){return $c("0x24")}constructor(t){super(t),this._suggestionToController=new Map,this[$c("0x9")]=new Map,this[$c("0x3")]=new Map,this[$c("0x66")]=new Map;const e=this.editor.config;e[$c("0x5d")]($c("0x21"),Hc),e.define($c("0x4a"),!1),this[$c("0x36")]=e[$c("0x4e")]($c("0x4a"))}[$c("0x55")](t,e){0===this[$c("0x66")][$c("0x4")]&&setTimeout((()=>{for(const[t,e]of this[$c("0x66")]){const n=this[$c("0x58")][$c("0x2d")](t);n||e?n&&e&&this[$c("0x42")](t):this[$c("0x3e")](t)}this[$c("0x60")][$c("0x51")][$c("0x4e")]($c("0x30")).refreshSelectedViews(),this[$c("0x1d")](),this._handleControllerBuffer.clear()}),10),this[$c("0x66")][$c("0xc")](t,e)}init(){const t=this[$c("0x60")],e=t.plugins[$c("0x4e")]("TrackChangesEditing"),n=t[$c("0x51")][$c("0x4e")]($c("0x40")),i=t[$c("0x51")][$c("0x4e")]($c("0x30")),r=t[$c("0x51")][$c("0x4e")]("CommentsRepository");t.ui[$c("0x62")][$c("0x6")]($c("0x64"),(t=>this[$c("0x50")](t))),i[$c("0x0")]((()=>{const t=[];for(const[e,n]of Array[$c("0x4d")](this[$c("0x58")])){const i=e[$c("0x57")](),r=[];for(const t of i){if(!t.isInContent)continue;if(t[$c("0x67")]){r[$c("0x1a")](...t[$c("0x4f")]());continue}const e=t[$c("0x4b")]();if(r[$c("0x25")]>0){const t=r[0][$c("0x53")](e);if(t){r[0]=t;continue}}r[$c("0x1a")](e)}t.push([n[$c("0x10")],r])}return t})),this[$c("0x3b")](e,$c("0x47"),((t,e)=>{this[$c("0x3b")](e,$c("0x11"),((t,n,i,r)=>{e[$c("0xa")]&&(null==i?(this._updateController(r[$c("0x7")]),this._handleSuggestionControllerDelayed(e,!1)):(this[$c("0x48")](i[$c("0x7")]),null==r&&this[$c("0x55")](e,!0)))})),null!==e[$c("0x8")]?this[$c("0x48")](e[$c("0x7")]):this[$c("0x55")](e,!1)})),this[$c("0x3b")](e,$c("0x63"),((t,e,n)=>{this[$c("0x5f")](e,$c("0x11")),this[$c("0x66")][$c("0x61")](e),this._suggestionToController[$c("0x2d")](e)&&this[$c("0x42")](e),n&&this[$c("0x48")](n[$c("0x7")])})),this[$c("0x3b")](e,"suggestionChanged",((t,e)=>{this[$c("0x48")](e)})),this[$c("0x3b")](n,$c("0x1e"),(()=>{this[$c("0x1d")]()})),this.listenTo(r,$c("0x5e"),((t,{threadId:n,isFromAdapter:i})=>{if(i||!e[$c("0x3c")](n))return;const r=e[$c("0xe")](n);this[$c("0x58")][$c("0x4e")](r)[$c("0x10")][$c("0x19")]()}),{priority:"lowest"})}[$c("0x1d")](){const t=this[$c("0x60")][$c("0x51")][$c("0x4e")]($c("0x40")),e=this[$c("0x60")].plugins[$c("0x4e")]($c("0x54")),n=Array[$c("0x4d")](t[$c("0x31")],(t=>t[$c("0x68")]))[$c("0x52")]((t=>this._viewToController.has(t))),i=[];for(const t of n){const e=this[$c("0x9")][$c("0x4e")](t)[$c("0x26")].getAllAdjacentSuggestions();i[$c("0x1a")](...e[$c("0x6a")](((t,e)=>[...t,...e[$c("0x32")]()]),[]))}e[$c("0x37")]=i}[$c("0x50")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),i=this[$c("0x60")][$c("0x1b")].get("trackChanges"),o=Yi(t,$c("0x1f"));n[$c("0x27")][$c("0xc")]({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-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView.bind("isOn").to(i,$c("0x23")),n[$c("0x27")].on("execute",(()=>{i[$c("0x49")](),this.editor.editing[$c("0x10")].focus()}));const s=new e.Collection,x=[{type:$c("0xd"),model:{withText:!0,label:o,commandName:$c("0x64")}},{type:$c("0x3f")},{type:$c("0xb"),model:{withText:!0,label:Yi(t,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:$c("0xb"),model:{withText:!0,label:Yi(t,$c("0x41")),commandName:$c("0x17")}},{type:$c("0xb"),model:{withText:!0,label:Yi(t,$c("0x46")),commandName:$c("0x2")}},{type:$c("0xb"),model:{withText:!0,label:Yi(t,$c("0x5a")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:$c("0x3f")};if(t[$c("0x26")]){const n=new r.Model(t[$c("0x26")]),i=this.editor[$c("0x1b")][$c("0x4e")](n[$c("0x6b")]);n[$c("0x2f")]($c("0x22"),"isEnabled").to(i,$c("0x23"),$c("0x39")),e={type:t.type,model:n}}s[$c("0x6")](e)}(0,r.addListToDropdown)(n,s);const a=x[$c("0x52")]((t=>null!=t[$c("0x26")])).map((t=>this[$c("0x60")][$c("0x1b")][$c("0x4e")](t[$c("0x26")][$c("0x6b")]))),c=n[$c("0x27")];return c.actionView[$c("0x2e")]($c("0x39")),c.arrowView[$c("0x2e")]("isEnabled"),c[$c("0x4c")][$c("0x2f")]($c("0x39")).to(i,$c("0x39")),c[$c("0x5")].bind($c("0x39"))[$c("0x6c")](a,"isEnabled",((...t)=>t[$c("0x2c")]((t=>t)))),n.on($c("0x49"),(t=>{this[$c("0x60")][$c("0x49")](t[$c("0x6d")].commandName),this.editor[$c("0x28")][$c("0x10")][$c("0x19")]()})),n}[$c("0x3e")](t){const e=this[$c("0x60")],n=e[$c("0x14")],i=e[$c("0x51")][$c("0x4e")]("Annotations"),r=e.plugins[$c("0x4e")]($c("0x38")),s=e[$c("0x51")][$c("0x4e")]($c("0x30")),x=e.plugins.get(o.Users).me,a=n.get($c("0x64"))[$c("0x3d")],{CommentsListView:c,CommentThreadInputView:l}=e[$c("0x51")].get("CommentsUI");let u,d;this[$c("0x3")].has(t.id)?(d=this[$c("0x3")][$c("0x4e")](t.id),u=d[$c("0x12")]):(u=new a(e[$c("0x5c")],t,x,{disableComments:this._disableComments,editorConfig:n[$c("0x4e")]($c("0x35")),maxCommentsWhenCollapsed:n.get($c("0x44")),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n.get($c("0x34")),formatDateTime:(0,o.getDateTimeFormatter)(n[$c("0x4e")]($c("0x5c"))),CommentView:n[$c("0x4e")]($c("0x56"))[$c("0x6f")],CommentsListView:c,CommentThreadInputView:l}),u[$c("0x15")].on("execute",(()=>{e[$c("0x28")][$c("0x10")][$c("0x19")]()})),u[$c("0x29")].on("execute",(()=>{e[$c("0x28")][$c("0x10")][$c("0x19")]()})),d=i[$c("0x59")](this[$c("0x60")][$c("0x5c")],u),d[$c("0x2f")]($c("0x20")).to(u,$c("0x20")),d[$c("0x2f")]($c("0x25")).to(u),d[$c("0x2f")]("type").to(u,"type",(t=>$c("0x3a")+t)),this[$c("0x3")].set(t.id,d));const g=r[$c("0x45")](t[$c("0x69")],u),f=new wc(e,t,u,g),m=t[$c("0x57")]()[$c("0x52")]((t=>t[$c("0xa")]));u[$c("0x2a")]=e.plugins[$c("0x4e")]($c("0x54"))[$c("0x1c")].getDescriptions(m),this._suggestionToController[$c("0xc")](t,f),this._viewToController[$c("0xc")](u,f);const h=i[$c("0x2b")]({view:d,target:()=>{const n=[],i=t[$c("0x57")]()[$c("0x52")]((t=>t[$c("0xa")]));for(const t of i)n[$c("0x1a")](...t[$c("0x6e")]());return(0,o.getAllMarkersDomElementsSorted)(e[$c("0x28")],n)},type:()=>"suggestion-"+f.view[$c("0x33")]});r[$c("0xf")](u,h),i.add(h),s[$c("0x13")](h)}[$c("0x42")](t){const e=this[$c("0x60")][$c("0x51")].get($c("0x38")),n=this[$c("0x60")][$c("0x51")][$c("0x4e")]("Annotations"),i=this._suggestionToController[$c("0x4e")](t),r=i.view,o=n[$c("0x5b")](r);e._unbindEditors(r),o&&n.remove(o),this[$c("0x58")][$c("0x61")](t),this[$c("0x9")][$c("0x61")](r),i[$c("0x16")]()}_updateController(t){if(!t[$c("0xa")]||!this[$c("0x58")][$c("0x2d")](t))return;const e=this[$c("0x60")][$c("0x51")][$c("0x4e")]($c("0x54")),n=this[$c("0x58")].get(t),i=t[$c("0x57")]();n.view[$c("0x2a")]=e._descriptionFactory[$c("0x43")](i)}[$c("0x16")](){for(const t of this[$c("0x58")][$c("0x1")]())this[$c("0x42")](t);for(const t of this._annotationViews[$c("0x65")]())t.mainView[$c("0x16")]();super[$c("0x16")]()}}var Qc,Yc,Jc=["requires","TrackChanges","get","getSuggestion","plugins","addSuggestion","adapter","editor","pluginName"];Qc=Jc,Yc=242,function(t){for(;--t;)Qc.push(Qc.shift())}(++Yc);var tl=function(t,e){return Jc[t-=0]};class el extends t.Plugin{static get[tl("0x1")](){return[hc,Zc,"Comments"]}static get[tl("0x0")](){return tl("0x2")}set[tl("0x7")](t){this[tl("0x8")][tl("0x5")].get(hc)[tl("0x7")]=t}get[tl("0x7")](){return this[tl("0x8")][tl("0x5")][tl("0x3")](hc)[tl("0x7")]}[tl("0x6")](t){return this.editor.plugins[tl("0x3")](hc).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x8")][tl("0x5")][tl("0x3")](hc).getSuggestions({skipNotAttached:t,toJSON:e})}[tl("0x4")](t){return this[tl("0x8")][tl("0x5")][tl("0x3")](hc)[tl("0x4")](t)}}const nl=["end","map","getRootsAttributes","getDataWithAcceptedSuggestions","get","plugins","editor","getRootNames","document","createElement","_adapter","TrackChangesEditing","pluginName","requires","init","set","div","discardAllSuggestions","reduce","createDocumentFragment","getUser","define","CommentsRepository","editorCreator","addSuggestionData","getFullData","Pagination","getDataWithDiscardedSuggestions","trackChangesData","execute","track-changes-data-invalid-editor-creator","rootsAttributes","model","constructor","addUser","data","config"];var il,rl;il=nl,rl=376,function(t){for(;--t;)il.push(il.shift())}(++rl);const ol=function(t,e){return nl[t-=0]},sl=[ol("0x14")];class xl extends t.Plugin{static get[ol("0x7")](){return[hc]}static get[ol("0x6")](){return"TrackChangesData"}[ol("0x8")](){const t=this[ol("0x0")];if(t[ol("0x1e")][ol("0xf")]("trackChangesData.editorCreator",(e=>{const n=t.model[ol("0x2")][ol("0x1")]()[ol("0xc")](((t,e)=>(t[e]="",t)),{});return t[ol("0x1b")].create(n,e)})),"function"!=typeof t[ol("0x1e")][ol("0x23")]("trackChangesData").editorCreator)throw new e.CKEditorError(ol("0x18"))}[ol("0x22")](t){return ll(this.editor,!0,t)}[ol("0x15")](t){return ll(this.editor,!1,t)}}class al extends t.Plugin{static get[ol("0x6")](){return"TrackChangesDataGetter"}constructor(t){super(t),this.result=ol("0x1f")}init(){this[ol("0x0")][ol("0x24")][ol("0x23")](ol("0x10"))[ol("0x4")]={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[ol("0x0")][ol("0x24")][ol("0x23")](ol("0x5"))[ol("0x4")]=null}}function cl(t){return void 0!==t[ol("0x21")]}async function ll(t,e,n){const i=(0,o.sanitizeEditorConfig)(t,sl);i[ol("0x24")].push(hc,al),i[ol("0x19")]=cl(t)?t[ol("0x21")]():void 0;const r=document[ol("0xd")](),s=t[ol("0x1e")].get(ol("0x16"))[ol("0x11")],x=await s(i,(()=>function(t){const e=document[ol("0x3")](ol("0xa"));return t.appendChild(e),e}(r)));!function(t,e){const n=t[ol("0x1a")].document[ol("0x1")]()[ol("0xc")](((e,n)=>(e[n]=t[ol("0x1d")][ol("0x23")]({rootName:n}),e)),{}),i=t[ol("0x24")][ol("0x23")]("Users").users[ol("0x20")]((t=>({id:t.id,name:t.name}))),r=t[ol("0x24")][ol("0x23")]("TrackChangesEditing").getSuggestions({skipNotAttached:!0,toJSON:!0}),o=e[ol("0x24")][ol("0x23")]("Users"),s=e.plugins[ol("0x23")]("TrackChangesEditing");for(const t of i)o[ol("0xe")](t.id)||o[ol("0x1c")](t);o.me||o.useAnonymousUser();for(const t of r)s[ol("0x12")](t);e.data[ol("0x9")](n)}(t,x),x[ol("0x17")](e?"acceptAllSuggestions":ol("0xb"));const a=cl(x)?x[ol("0x13")](n):x[ol("0x1d")][ol("0x23")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=i})();