@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231006.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 (65) 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/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. 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 s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_enabledCommands","TrackChangesCommand","isEnabled","_isEnabledBasedOnSelection","value","_disableUnsupportedCommands","affectsData","forceDisabled","_enableCommands","commands","clearForceDisabled","editor","execute"];var c,l;c=a,l=222,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xc")]=e,this[d("0x3")]=!1,this.refresh(),this[d("0x2")]=!1}refresh(){this[d("0x1")]=!0}[d("0xb")](){this.value=!this[d("0x3")],this[d("0x3")]?this[d("0x4")]():this[d("0x7")]()}[d("0x4")](){for(const t of this[d("0xa")][d("0x8")][d("0x8")]())t[d("0x5")]&&!this[d("0xc")].has(t)&&t[d("0x6")](d("0x0"))}[d("0x7")](){for(const t of this.editor[d("0x8")][d("0x8")]())t.affectsData&&!this[d("0xc")].has(t)&&t[d("0x9")](d("0x0"))}}const g=["refresh","get","_suggestions","TrackChangesEditing","plugins","isEnabled","editor","canEditAt","_isEnabledBasedOnSelection"];var m,f;m=g,f=411,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x5")]=e,this[h("0x3")](),this[h("0x2")]=!1}[h("0x3")](){this[h("0x8")]=!0}execute(t){const n=this[h("0x5")][h("0x4")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n.getRanges();this[h("0x0")].model[h("0x1")](o)&&this.editor[h("0x7")][h("0x4")](h("0x6")).acceptSuggestion(n)}}const b=["isEnabled","model","TrackChangesEditing","editor","discardSuggestion","get","execute","canEditAt","getRanges","_isEnabledBasedOnSelection","_suggestions","refresh"];var E,_;E=b,_=423,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x7")]=e,this[T("0x8")](),this[T("0x6")]=!1}[T("0x8")](){this[T("0x9")]=!0}[T("0x3")](t){const n=this[T("0x7")][T("0x2")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x5")]();this.editor[T("0xa")][T("0x4")](o)&&this[T("0x0")].plugins[T("0x2")](T("0xb"))[T("0x1")](n)}}const y=["isIntersecting","from","end","push","isInContent"," [color ","color","createPositionAfter","length","createPositionAt","isObject","replace","isMultiRange","getRanges","map","type","deletion","isArray","next","add","createPositionBefore","splice","isTouching","execute"];var k,A;k=y,A=287,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>v("0x11")==t[v("0x10")]&&"deletion"!=e.type?-1:v("0x11")!=t[v("0x10")]&&v("0x11")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t[v("0x9")];){const i=t[o],x=t[o+1];n||(n=e[v("0x15")](i)),I(e,i,x)||(s[v("0x4")](e.createRange(n,r[v("0xb")](i)?e[v("0x8")](i):e[v("0xa")](i,v("0x3")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x8")](e),s=t[v("0x15")](n);return o[v("0x17")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x16")](0,100);t.change((()=>{for(const t of o)t[v("0x5")]&&e[v("0x0")](t.id)}))}}const N=["some","isInContent","canEditAt","editor","_command","values","execute","refresh","from","_isEnabledBasedOnSelection","model","_suggestions"];var w,M;w=N,M=452,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x3")]=n,this[O("0xb")](),this[O("0x1")]=!1}refresh(){const t=Array[O("0x0")](this[O("0x3")][O("0x9")]())[O("0x4")]((t=>t[O("0x5")]));this.isEnabled=this[O("0x8")].isEnabled&&t}[O("0xa")](){const t=R(Array[O("0x0")](this[O("0x3")][O("0x9")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x2")][O("0x6")](t))return}L(this[O("0x7")][O("0x2")],this[O("0x8")],t)}}const P=["refresh","selection","isEnabled","editor","execute","_command","values","_suggestions","from","document","canEditAt","_selectedSuggestions","model"];var D,B;D=P,B=218,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x8")]=e,this[j("0xa")]=n,this[j("0x1")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}[j("0x3")](){const t=this[j("0x6")][j("0x2")][j("0xc")][j("0x4")],e=Array[j("0xb")](this._suggestions[j("0x9")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x2")](t[v("0xe")]()),o=new Set;for(const s of e)if(s[v("0x5")])for(const e of n)for(const n of s.getRanges())(e[v("0x1")](n)||t.isCollapsed&&!s[v("0xd")]&&s[v("0x13")]&&n[v("0x3")][v("0x17")](e.start))&&o[v("0x14")](s);return o}(t,e),this[j("0x5")]=this[j("0x8")].isEnabled&&!!this[j("0x1")].size}[j("0x7")](){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e.getRanges();if(!this[j("0x6")][j("0x2")][j("0x0")](t))return}L(this[j("0x6")][j("0x2")],this[j("0x8")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getRanges","size","_markerNames","_saved","author","addMarkerName","discard","onAccept","filter","head","reduce","substr","hasComments","removeAttribute","getMarkerNames","add","addRange","clear","_onAttributesChange","data","change","decorate","type","commentThread","onAttributesChange","creator","attributes","set","next","getMarkers","getFirstMarker","getAllAdjacentSuggestions","getItems","createdAt","nodeBefore","map","removeMarkers","onDiscard","@external","isMultiRange","setAttribute","_model","_onDiscard","addMarker","length","_onAccept","_isDataLoaded","start","from","getContainedElement","nodeAfter","authoredAt","getFirstRange","isIntersecting","getRange","previous","isInContent","subType","accept","removeMarker"];var $o,Jo;$o=Xo,Jo=127,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x27")]=!1,this.id=e.id,this.type=e[Qo("0xf")],this[Qo("0x32")]=e[Qo("0x32")]||null,this[Qo("0x39")]=e[Qo("0x39")],this.creator=e[Qo("0x12")]||e[Qo("0x39")],this.isExternal=Boolean(e[Qo("0x13")]&&e[Qo("0x13")][Qo("0x1f")]),this[Qo("0xc")]=null,this[Qo("0x22")]=t,this[Qo("0x26")]=e[Qo("0x0")],this[Qo("0x23")]=e[Qo("0x1e")],this[Qo("0xb")]=e[Qo("0x11")],this[Qo("0x37")]=new Set,this[Qo("0x1a")]=null,this.set(Qo("0x2c"),null),this[Qo("0x14")](Qo("0x13"),e[Qo("0x13")]||{}),this[Qo("0x14")](Qo("0x30"),null),this[Qo("0x14")](Qo("0x15"),null),this[Qo("0x14")](Qo("0x10"),null),this[Qo("0x14")](Qo("0x38"),!1),this[Qo("0xe")](Qo("0x33")),this[Qo("0xe")](Qo("0x3b"))}get head(){let t=this;for(;t[Qo("0x30")];)t=t[Qo("0x30")];return t}get[Qo("0x5")](){return!!this[Qo("0x10")]&&this[Qo("0x10")].length>0}get[Qo("0x20")](){return 0!=this._markerNames[Qo("0x36")]&&6==Array[Qo("0x29")](this[Qo("0x37")])[0].split(":")[Qo("0x25")]}get[Qo("0x31")](){return null!==this.getFirstMarker()}[Qo("0x3a")](t){this[Qo("0x37")][Qo("0x8")](t)}[Qo("0x7")](){return Array.from(this[Qo("0x37")])}getMarkers(){return this.getMarkerNames()[Qo("0x1c")]((t=>this[Qo("0x22")].markers.get(t)))[Qo("0x1")]((t=>t))}[Qo("0x17")](){return this.getMarkers()[0]||null}removeMarkers(){this._model[Qo("0xd")]((t=>{for(const e of this[Qo("0x16")]())t[Qo("0x34")](e)})),this[Qo("0x37")][Qo("0xa")]()}[Qo("0x34")](t){this[Qo("0x22")][Qo("0xd")]((e=>{e[Qo("0x34")](t)})),this[Qo("0x37")].delete(t)}[Qo("0x9")](t){const e="suggestion:"+this[Qo("0xf")]+":"+this[Qo("0x32")]+":"+this.id+":"+this.creator.id+":"+Zo.getMultiRangeId();this[Qo("0x3a")](e),this[Qo("0x22")][Qo("0xd")]((n=>{n[Qo("0x24")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x35")]())if(e[Qo("0x2e")](t))return!0;return!1}[Qo("0x35")](){return this[Qo("0x16")]().map((t=>t[Qo("0x2f")]()))}[Qo("0x19")](){return this.getRanges()[Qo("0x3")](((t,e)=>[...t,...e[Qo("0x19")]()]),[])}[Qo("0x2d")](){var t;return(null===(t=this[Qo("0x17")]())||void 0===t?void 0:t[Qo("0x2f")]())||null}[Qo("0x2a")](){const t=this[Qo("0x35")]();if(1!=t[Qo("0x25")])return null;const e=t[0],n=e[Qo("0x28")][Qo("0x2b")],o=e.end[Qo("0x1b")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x33")](){this[Qo("0x26")](this.getRanges(),this[Qo("0xc")],this[Qo("0x13")]),this[Qo("0x1d")]()}[Qo("0x3b")](){this._onDiscard(this[Qo("0x35")](),this.data,this[Qo("0x13")]),this.removeMarkers()}[Qo("0x18")](){const t=[];let e=this[Qo("0x2")];for(;e;)t.push(e),e=e[Qo("0x15")];return t}[Qo("0x21")](t,e){const n=eo(this[Qo("0x13")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x13")]=n,this[Qo("0xb")](n))}[Qo("0x6")](t){const e=eo(this[Qo("0x13")]);qo(e,t),Go(e,this[Qo("0x13")])||(this[Qo("0x13")]=e,this._onAttributesChange(this[Qo("0x13")]))}toJSON(){return{id:this.id,type:this[Qo("0x32")]?this[Qo("0xf")]+":"+this.subType:this[Qo("0xf")],authorId:this[Qo("0x12")].id,createdAt:this[Qo("0x1a")],hasComments:this[Qo("0x5")],data:this[Qo("0xc")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Qo("0x4")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["isObject","matchingCallback","$text","item","_resolveDescriptionItems","removeObject","nextSibling","add","getWalker","length","registerDescriptionCallback","_itemLabelsCallbacks","text","quantity","*Remove:* %0","deletion","addObject","ELEMENT_SPACE","replace","Object","isEqual","elementStart","EmptyContainer","*Split:* %0","skip","_addDescriptionItems","label","elementEnd","previousSibling","addContainer","pop","_customCallbacks","_schema","end","type","element","_locale","set","Container","getItemLabel","get","_itemLabels","insertion","*Merge:* %0","indexOf","removeContainer","match","getFirstRange","function","name","push","isEmpty","*Insert:* %0","data","remove"];var es,ns;es=ts,ns=379,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x25")]=[],this[os("0x2f")]=new Map,this[os("0x11")]=[],this[os("0x26")]=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x25")]){const n=t(o);if(n){"type"in n&&e[os("0x1")](n),s=!0;break}}if(!s){this[os("0x1f")](e,o);const s=t[n+1];if(s&&!o[os("0x35")]()[os("0x27")][os("0x1a")](s.getFirstRange().start)){const t=e[e[os("0xf")]-1],n=os("0x30")==o[os("0x28")]?os("0xd"):os("0x5");t&&os("0x12")==t[os("0x28")]&&(t[n]+="\n")}}}return this[os("0xa")](e)}[os("0x10")](t){this[os("0x25")][os("0x1")](t)}registerElementLabel(t,n,o=e.priorities.normal){os("0x36")==typeof t?(0,e.insertToPriorityArray)(this[os("0x11")],{matchingCallback:t,label:n,priority:o}):this[os("0x2f")][os("0x2b")](t,n)}[os("0x2d")](t,e=1){let n;for(const e of this[os("0x11")])if(e[os("0x7")](t)){n=e[os("0x20")];break}return n||(n=this[os("0x2f")][os("0x2e")](t[os("0x0")])),n?n(e):1!==e?e+" "+t[os("0x0")]+"s":""+t[os("0x0")]}_addDescriptionItems(t,e){const n=e[os("0x35")]()[os("0xe")](),o=os("0x30")==e.type?os("0xd"):os("0x5");for(const e of n){const s=e[os("0x9")],r=t[t[os("0xf")]-1];if(s.is("$textProxy"))r&&r[os("0x28")][os("0x32")](os("0x2c"))>-1&&t.pop(),r&&os("0x12")==r.type?r[o]+=s[os("0x4")]:t[os("0x1")]({type:os("0x12"),add:os("0xd")==o?s.data:"",remove:os("0x5")==o?s[os("0x4")]:""});else if(this._schema[os("0x6")](s)){const i=s;if(r&&r[os("0x28")].indexOf(os("0x2c"))>-1&&t[os("0x24")](),os("0x21")==e[os("0x28")])continue;r&&r.type==o+os("0x19")&&r[os("0x29")][os("0x0")]==i[os("0x0")]?r[os("0x13")]++:t.push({type:o+"Object",element:i,quantity:1}),n[os("0x1e")]((t=>!(os("0x21")==t[os("0x28")]&&t[os("0x9")]==s)))}else if(this._schema.checkChild(s,os("0x8"))||s.is("element","softBreak")){const n=s;if(os("0xd")==o&&os("0x1b")==e[os("0x28")]||os("0x5")==o&&os("0x21")==e[os("0x28")])continue;if(r&&-1==r[os("0x28")][os("0x32")](os("0x2c"))){"text"==r[os("0x28")]&&(r[o]+="\n");continue}let i;if(i=os("0xd")==o?n[os("0xc")]&&!this[os("0x26")][os("0x6")](n[os("0xc")])?n[os("0xc")]:null:n[os("0x22")]&&!this[os("0x26")][os("0x6")](n[os("0x22")])?n[os("0x22")]:null,n[os("0x2")]||i&&i[os("0x2")]){const e=i&&i[os("0x2")]?i:n;r&&r.type==o+"EmptyContainer"&&r[os("0x29")][os("0x0")]==e[os("0x0")]?r.quantity++:t[os("0x1")]({type:o+os("0x1c"),element:e,quantity:1})}else t[os("0x1")]({type:o+os("0x2c"),element:n})}}}[os("0xa")](t){const e=this[os("0x2a")],n=[];for(const o of t){switch(o[os("0x28")]){case"text":if(o[os("0xd")]=o[os("0xd")][os("0x18")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x18")](/\u000A/g,""),o[os("0x5")]=o[os("0x5")][os("0x18")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x18")](/\u000A/g,""),""!=o.add&&""!=o[os("0x5")]){n[os("0x1")]({type:os("0x18"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x5")]+'"','"'+o[os("0xd")]+'"'])});continue}if(null!=o[os("0xd")][os("0x34")](/^ +$/)){n[os("0x1")]({type:"insertion",content:Yo(e,os("0x3"),Yo(e,"ELEMENT_SPACE",o[os("0xd")][os("0xf")]))});continue}if(null!=o.remove[os("0x34")](/^ +$/)){n.push({type:"deletion",content:Yo(e,os("0x14"),Yo(e,os("0x17"),o[os("0x5")].length))});continue}if(""!=o[os("0xd")]){n[os("0x1")]({type:"insertion",content:Yo(e,os("0x3"),'"'+o.add+'"')});continue}n.push({type:os("0x15"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x5")]+'"')});continue;case"addEmptyContainer":case os("0x16"):n.push({type:os("0x30"),content:Yo(e,os("0x3"),this[os("0x2d")](o.element,o.quantity))});continue;case"removeEmptyContainer":case os("0xb"):n[os("0x1")]({type:os("0x15"),content:Yo(e,"*Remove:* %0",this[os("0x2d")](o[os("0x29")],o[os("0x13")]))});continue;case os("0x23"):n[os("0x1")]({type:os("0x30"),content:Yo(e,os("0x1d"),this.getItemLabel(o[os("0x29")],o.quantity))});continue;case os("0x33"):n[os("0x1")]({type:"deletion",content:Yo(e,os("0x31"),this[os("0x2d")](o[os("0x29")],o[os("0x13")]))});continue}n[os("0x1")](o)}return n}}const rs=["showAIAssistant","enableCommand","get","editor","plugins","commands","TrackChangesEditing"];var is,xs;is=rs,xs=110,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[as("0x5")],e=t[as("0x6")][as("0x4")](as("0x1"));t[as("0x0")][as("0x4")](as("0x2"))&&e[as("0x3")](as("0x2"))}}const ls=["plugins","FORMAT_ALIGN_TO_CENTER","markBlockFormat","filter","AlignmentEditing","format","commandName","selection","getSelectedBlocks","getAttribute","contentLanguageDirection","enableCommand","commandParams","left","TrackChangesEditing","justify","FORMAT_JUSTIFY_TEXT","center","value","editor","alignment","FORMAT_ALIGN_TO_LEFT","from","_descriptionFactory","ltr","right","get","document","model","registerDescriptionCallback","checkAttribute"];var ds,us;ds=ls,us=196,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{afterInit(){const t=this.editor,e=t.locale;if(!t[gs("0x15")].has(gs("0x19")))return;const n=t.plugins[gs("0x10")](gs("0x4"));n[gs("0x1")](gs("0xa"),((e,o={})=>{let s=o[gs("0x8")];o.value||(s=gs("0xe")===t.locale[gs("0x0")]?gs("0x3"):gs("0xf"));const r=Array[gs("0xc")](this.editor.model[gs("0x11")][gs("0x1c")][gs("0x1d")]())[gs("0x18")]((t=>function(t,e,n){const o=t[gs("0x1e")](gs("0xa"))||null;return e[gs("0x14")](t,gs("0xa"))&&n!=o}(t,this[gs("0x9")][gs("0x12")].schema,s)));t[gs("0x12")].change((()=>{for(const t of r)n[gs("0x17")](t,{commandName:gs("0xa"),commandParams:[{value:s}]})}))})),n[gs("0xd")][gs("0x13")]((t=>{const{data:n}=t;if(n&&gs("0xa")==n[gs("0x1b")]){const t=n[gs("0x2")][0].value;return{type:gs("0x1a"),content:Yo(e,"*Format:* %0",function(t){switch(t){case gs("0x3"):return Yo(e,gs("0xb"));case gs("0xf"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case gs("0x7"):return Yo(e,gs("0x16"));case gs("0x5"):return Yo(e,gs("0x6"))}}(t))}}}))}}const fs=["isBlock","parent","insert","isAtEnd","ck-suggestion-marker-","toViewElement","markerName","item","plugins","createRangeOn","previousPosition","listItem","createUIElement","schema","listIndent","addHighlight","activeMarkers","element","markerRange","ck-suggestion-marker--active","hasAttribute","push","bindElementToMarker","get","writer","mapper","toViewPosition","isContent","name","model","start","addClass","nextSibling","TrackChangesEditing","getCustomProperty"];var hs,ps;hs=fs,ps=122,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e.getItems())s[bs("0x3")](t)&&o[bs("0x4")](n[bs("0x1b")](s));return o}function _s(t){const e=[];if(t.is(bs("0x0"),bs("0x1d"))){let n=t[bs("0xf")];for(;n&&n.is(bs("0x0"),bs("0x1d"))&&n.getAttribute(bs("0x20"))>0;)e.push(n),n=n[bs("0xf")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x1a")][bs("0x6")](bs("0x10"));return(s,r,i)=>{if(!i.consumable.test(r[bs("0x1")],s[bs("0xb")]))return;const x=r[bs("0x1")].getWalker(),a=r[bs("0x1")][bs("0xd")],c=t[bs("0xc")][bs("0x1f")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x19")];u=u||c[bs("0xa")](e);const n=i.mapper[bs("0x17")](e);if(n&&n[bs("0x11")](bs("0x21")))return;"elementEnd"==t.type&&c[bs("0x12")](e)&&!c.isLimit(e)&&(e[bs("0xf")]||a[bs("0x15")]?l&&l[bs("0x13")]==e||(l=e,m(t[bs("0x1c")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i[bs("0x7")][bs("0x1e")]("span",{class:bs("0x16")+e}),x=i[bs("0x8")][bs("0x9")](t);n&&o[bs("0x22")].includes(r[bs("0x18")])&&i.writer[bs("0xe")](bs("0x2"),s),i[bs("0x7")][bs("0x14")](x,s),i.mapper[bs("0x5")](s,r.markerName)}u||g||!d||m(d)}}const Cs=["*Format:* %0","isCollapsed","FORMAT_BOLD","markInlineFormat","FORMAT_ITALIC","italic","SubscriptEditing","change","UnderlineEditing","editor","BoldEditing","selection","locale","value","slice","CodeEditing","_descriptionFactory","ItalicEditing","document","from","subscript","enableCommand","plugins","registerDescriptionCallback","getRanges","forceValue","code","commandParams","FORMAT_CODE","commandName","TrackChangesEditing","bold","toLowerCase","SuperscriptEditing","get","*Remove format:* %0","FORMAT_UNDERLINE","format","FORMAT_STRIKETHROUGH"];var ys,ks;ys=Cs,ks=371,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x1d"),As("0x24"),As("0x1b"),As("0x22"),"StrikethroughEditing",As("0x19"),As("0xd")];class Rs extends t.Plugin{afterInit(){const t=this[As("0x1c")],e=t.model,n=t[As("0x2")][As("0xe")](As("0xa")),o=t[As("0x1f")];for(const o of vs){if(!t.plugins.has(o))continue;const s=o[As("0x21")](0,-7)[As("0xc")](),r=t.commands.get(s);n[As("0x1")](s,((t,o={})=>{const i=e[As("0x25")][As("0x1e")];if(i[As("0x14")])return void t(o);const x=void 0!==o[As("0x5")]?o[As("0x5")]:!r[As("0x20")];e[As("0x1a")]((()=>{const t=Array[As("0x26")](i[As("0x4")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x16")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x23")][As("0x3")]((n=>{const{data:s}=n;if(s&&s[As("0x9")]===t)return s[As("0x7")][0][As("0x5")]?{type:As("0x11"),content:Yo(o,As("0x13"),e)}:{type:As("0x11"),content:Yo(o,As("0xf"),e)}}))}s(As("0xb"),Yo(o,As("0x15"))),s(As("0x18"),Yo(o,As("0x17"))),s("underline",Yo(o,As("0x10"))),s(As("0x6"),Yo(o,As("0x8"))),s("strikethrough",Yo(o,As("0x12"))),s(As("0x0"),Yo(o,"FORMAT_SUBSCRIPT")),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const Ss=["forceValue","schema","blockQuote","_descriptionFactory","parent","selection","checkChild","TrackChangesEditing","editor","from","enableCommand","afterInit","ELEMENT_BLOCK_QUOTE","format","*Format:* %0","commandParams","commands","value","locale","change","plugins","getSelectedBlocks","registerDescriptionCallback","model","get","BlockQuoteEditing","name","filter","*Remove format:* %0","$root","markBlockFormat"];var Is,Ls;Is=Ss,Ls=147,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x13")](){const t=this[Ns("0x10")],e=t[Ns("0x1a")];if(!t.plugins.has(Ns("0x2")))return;const n=t[Ns("0x1c")][Ns("0x1")](Ns("0xf")),o=this[Ns("0x10")][Ns("0x18")].get(Ns("0xa"));n[Ns("0x12")](Ns("0xa"),((e,s={})=>{const r=this[Ns("0x10")].model.document[Ns("0xd")],i=s&&void 0!==s[Ns("0x8")]?s.forceValue:!o[Ns("0x19")];let x=[];if(i){const e=Array[Ns("0x11")](r[Ns("0x1d")]())[Ns("0x4")]((t=>Ms(t)||function(t,e){const n=e[Ns("0xe")](t[Ns("0xc")],Ns("0xa")),o=e[Ns("0xe")]([Ns("0x6"),Ns("0xa")],t);return n&&o}(t,this.editor[Ns("0x0")][Ns("0x9")])));x=S(e,t[Ns("0x0")])}else{const e=Array.from(r[Ns("0x1d")]())[Ns("0x4")]((t=>Ms(t)));x=S(e,t[Ns("0x0")])}t.model[Ns("0x1b")]((()=>{for(const t of x)n[Ns("0x7")](t,{commandName:Ns("0xa"),commandParams:[{forceValue:i}]})}))})),n[Ns("0xb")][Ns("0x1e")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n.commandName){const t=Yo(e,Ns("0x14"));return n[Ns("0x17")][0][Ns("0x8")]?{type:"format",content:Yo(e,Ns("0x16"),t)}:{type:Ns("0x15"),content:Yo(e,Ns("0x5"),t)}}}))}}function Ms(t){return Ns("0xa")==t[Ns("0xc")][Ns("0x3")]}const Os=["ckbox","afterInit","editor","commands","get","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=312,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1")](){const t=this[Ds("0x2")];t[Ds("0x3")].get(Ds("0x0"))&&t.plugins[Ds("0x4")](Ds("0x5")).enableCommand(Ds("0x0"))}}const js=["CodeBlock","find","commandParams","editor","model","registerDescriptionCallback","selection","document","has","markBlockFormat","plugins","value","schema","ELEMENT_CODE_BLOCK","name","languages","*Remove format:* %0","afterInit","commandName","registerElementLabel","enableCommand","from","getSelectedBlocks","_descriptionFactory","*Format:* %0","change","forceValue","commands","language","indentCodeBlock","get","codeBlock","filter"];var Us,Gs;Us=js,Gs=410,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x3")](){const t=this[Hs("0x16")];if(!t[Hs("0x1d")][Hs("0x1b")](Hs("0x13")))return;const e=t[Hs("0x1d")].get("TrackChangesEditing"),n=t.locale,o=t.config.get(Hs("0x11"))[Hs("0x1")],s=t[Hs("0xd")][Hs("0x10")](Hs("0x11"));e.enableCommand(Hs("0xf")),e.enableCommand("outdentCodeBlock"),e[Hs("0x6")]("codeBlock",((n,r={})=>{const i=t[Hs("0x17")],x=t[Hs("0x17")][Hs("0x1a")][Hs("0x19")],a=r&&void 0!==r.forceValue?r[Hs("0xc")]:!s[Hs("0x1e")];let c;r[Hs("0xe")]||(r.language=o[0][Hs("0xe")]),c=a?Array.from(x.getSelectedBlocks()).filter((t=>{return Ws(t)||(e=t,n=i[Hs("0x1f")],!e.is("rootElement")&&!n.isLimit(e)&&n.checkChild(e.parent,Hs("0x11")));var e,n})):Array[Hs("0x7")](x[Hs("0x8")]())[Hs("0x12")]((t=>Ws(t)));const l=S(c,i);i[Hs("0xb")]((()=>{for(const t of l)e[Hs("0x1c")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Hs("0x5")]("codeBlock",(t=>Yo(n,Hs("0x20"),t))),e[Hs("0x9")][Hs("0x18")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Hs("0x11")==r[Hs("0x4")]){const t=r[Hs("0x15")][0][Hs("0xe")],s=e(o[Hs("0x14")]((e=>e[Hs("0xe")]===t)).label);return r[Hs("0x15")][0].forceValue?{type:"format",content:Yo(n,Hs("0xa"),Yo(n,Hs("0x20"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x2"),Yo(n,Hs("0x20"),1))}}}))}}function Ws(t){return"codeBlock"==t[Hs("0x0")]}const Vs=["enableCommand","get","plugins","editor","has","CommentsEditing"];var Ks,qs;Ks=Vs,qs=405,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{afterInit(){const t=this[Xs("0x0")];t[Xs("0x5")][Xs("0x1")](Xs("0x2"))&&t[Xs("0x5")][Xs("0x4")]("TrackChangesEditing")[Xs("0x3")]("addCommentThread")}}var Js=n(181);const Qs=["model","get","setSelection","buffer","mapper","$graveyard","isCollapsed","downcastDispatcher","commands","markerName","selection","showSuggestionHighlights","init","enableCommand","lock","createRange","enqueueChange","deleteForward","remove","addMarker:suggestion:deletion","markerNameToElements","end","requires","start","getFirstRange","unbindElementFromMarkerName","unit","bind","removeMarker:suggestion:deletion","merge","high","rootName","document"];var Zs,Ys;Zs=Qs,Ys=346,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{static get[tr("0x6")](){return[Js.Delete]}[tr("0x1d")](){const t=this.editor,e=t.plugins[tr("0x12")]("TrackChangesEditing");e[tr("0x1e")]("delete");const n=t[tr("0x19")].get(tr("0x1"));e[tr("0x1e")](tr("0x1"),((e,o={})=>{const s=t.model.createSelection(t[tr("0x11")][tr("0x10")][tr("0x1b")]);s[tr("0x17")]&&t[tr("0x11")].modifySelection(s,{direction:"forward",unit:o[tr("0xa")]});const r=s[tr("0x8")](),x=i.LiveRange.fromRange(r);let a;e(o),a=tr("0x16")==x.root[tr("0xf")]?t.model[tr("0x20")](r.start):t[tr("0x11")][tr("0x20")](x[tr("0x7")],x[tr("0x5")]),x.detach(),t[tr("0x11")][tr("0x0")](n[tr("0x14")].batch,(t=>{n[tr("0x14")][tr("0x1f")](),t[tr("0x13")](t[tr("0x20")](a[tr("0x5")])),n[tr("0x14")].unlock()}))})),t.editing[tr("0x18")].on("addMarker:suggestion:deletion",Ts(t,"merge"),{priority:tr("0xe")}),t.data[tr("0x18")].on(tr("0x3"),((e,n,o)=>{o.options[tr("0x1c")]&&Ts(t,tr("0xd"),{showActiveMarker:!1})[tr("0xb")](this)(e,n,o)}),{priority:"high"}),t.editing[tr("0x18")].on(tr("0xc"),((t,e,n)=>{const o=n[tr("0x15")][tr("0x4")](e[tr("0x1a")]);if(o)for(const t of o)t.is("uiElement")&&(n[tr("0x15")][tr("0x9")](t,e[tr("0x1a")]),n.writer[tr("0x2")](t))}),{priority:tr("0xe")})}}const nr=["add","getFirstRange","*Merge:* %0","*Format:* remove from %0","containsItem","nextSibling","ELEMENT_","splitListItemBefore","nodeAfter","bulletedList","execute","plugins","start","toUpperCase","getSelectedBlocks","commandParams","setSelection","push","model","isFirstBlockOfListItem","change","has","*Outdent:* %0","*Format:* insert into %0","getRanges","document","from","enableCommand","commands","markMultiRangeBlockFormat","isObject","markBlockFormat","schema","getAttribute","locale","registerCustomCallback","ELEMENT_NUMBERED_LIST","forceValue","before","_LIST","hasAttribute","get","fromRange","documentList","ELEMENT_BULLETED_LIST","splitListItemAfter","value","slice","config","*Change to:* %0","parent","map","format","listItemId","next","createPositionAt","ELEMENT_LIST_ITEM","_descriptionFactory","createRange","DocumentListEditing","list.multiBlock","listType","indentList","editor","outdentList","expandListBlocksToCompleteList","refresh","numberedList","selection","commandName","multipleBlocks","detach","previousSibling","listIndent","registerElementLabel","deletion","registerDescriptionCallback"];var or,sr;or=nr,sr=228,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{afterInit(){const t=this[rr("0x42")];if(!t[rr("0xe")][rr("0x18")](rr("0x3e")))return;const e=t[rr("0x25")],n=t[rr("0xe")][rr("0x2c")]("TrackChangesEditing"),o=t.plugins[rr("0x2c")]("DocumentListUtils");function s(e){return()=>{const s=t[rr("0x1f")][rr("0x2c")](e);if(s.value&&!t.config[rr("0x2c")](rr("0x3f")))return void t[rr("0xd")]("paragraph",{});let r=Array[rr("0x1d")](t[rr("0x15")][rr("0x1c")][rr("0x47")][rr("0x11")]());if(a(e)){r=o[rr("0x44")](r);const t=[];for(const e of r)o[rr("0x16")](e)&&t[rr("0x14")](e);r=t}t[rr("0x15")][rr("0x17")]((()=>{n[rr("0x20")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x31")]}],formatGroupId:rr("0x40")},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x1d")](t);const n=e.findIndex((t=>!t[rr("0x2b")](rr("0x38"))));return n>-1&&(e=e[rr("0x32")](0,n)),e}(t[rr("0x15")].document[rr("0x47")].getSelectedBlocks()),s=o[o.length-1],r=t.model[rr("0x23")][rr("0x21")](s)?"after":"end",i=t[rr("0x15")][rr("0x3d")](t.model[rr("0x3a")](o[0],"before"),t.model[rr("0x3a")](s,r));t[rr("0x15")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:rr("0x40")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x8")];for(;t&&t[rr("0x24")](rr("0x4c"))>n[rr("0x24")](rr("0x4c"));)e[rr("0x3")](t),t=t[rr("0x8")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x15")][rr("0x1c")][rr("0x47")][rr("0x11")]()[rr("0x39")]().value,s=t[rr("0x15")][rr("0x3a")](o,rr("0x29")),r=t[rr("0x15")][rr("0x3a")](o,0),i=t[rr("0x15")][rr("0x3d")](s,r);t[rr("0x15")][rr("0x17")]((()=>{n[rr("0x22")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x40")})}))}}function a(e){const n=t[rr("0x1f")][rr("0x2c")](rr("0xc"))[rr("0x31")],o=t[rr("0x1f")].get(rr("0x46")).value;return rr("0x46")===e?n:o}n[rr("0x1e")]("numberedList",s(rr("0x46"))),n[rr("0x1e")](rr("0xc"),s("bulletedList")),n[rr("0x1e")](rr("0x41"),r(rr("0x41"))),n[rr("0x1e")](rr("0x43"),r("outdentList")),n[rr("0x1e")](rr("0x30"),x(rr("0x30"))),n[rr("0x1e")](rr("0xa"),x(rr("0xa"))),n._descriptionFactory[rr("0x0")]((function(e){const n=!t[rr("0x15")][rr("0x23")][rr("0x21")](e),o=e[rr("0x4b")],s=e[rr("0x8")],r=e[rr("0x24")](rr("0x38")),i=!o||o.getAttribute(rr("0x38"))!==r,x=!s||s[rr("0x24")](rr("0x38"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x3b"),t))),n[rr("0x3c")][rr("0x2")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o.commandName){case rr("0xc"):i=o.commandParams[0].forceValue,x=a(o[rr("0x48")]),s=rr(i?"0x1a":"0x6"),!x&&t[rr("0x33")].get(rr("0x3f"))||(s=rr("0x34")),r={type:rr("0x37"),content:Yo(e,s,Yo(e,rr("0x2f")))};break;case rr("0x46"):i=o[rr("0x12")][0][rr("0x28")],x=a(o[rr("0x48")]),s=i?rr("0x1a"):"*Format:* remove from %0",!x&&t[rr("0x33")][rr("0x2c")](rr("0x3f"))||(s="*Change to:* %0"),r={type:rr("0x37"),content:Yo(e,s,Yo(e,rr("0x27")))};break;case rr("0x41"):s="*Indent:* %0",r={type:rr("0x37"),content:Yo(e,s,Yo(e,rr("0x3b")))};break;case rr("0x43"):s=function(t){const e=t[rr("0x4")]();let n=e[rr("0xf")].nodeAfter;for(;n&&e[rr("0x7")](n);){if(n[rr("0x24")](rr("0x4c"))>0)return!1;n=n[rr("0x8")]}return!0}(n)?Yo(e,rr("0x6"),Yo(e,function(t){const e=t[rr("0x4")]()[rr("0xf")].nodeAfter;return rr("0x9")+e[rr("0x24")](rr("0x40"))[rr("0x10")]()+rr("0x2a")}(n))):Yo(e,rr("0x19"),Yo(e,rr("0x3b"))),r={type:"format",content:s};break;case"mergeListItemBackward":case"mergeListItemForward":!1===o[rr("0x49")]&&(s=rr("0x5"),r={type:rr("0x1"),content:Yo(e,s,Yo(e,rr("0x3b")))})}return r})),n._suggestionFactory[rr("0x26")]("formatBlock",rr("0x2e"),"accept",(function(e,n){const o=[];for(let n of e)n[rr("0xf")].nodeAfter===n.end[rr("0x35")]&&(n=t.model[rr("0x3d")](t[rr("0x15")][rr("0x3a")](n[rr("0xf")][rr("0xb")],0))),o[rr("0x14")](n);t[rr("0x15")][rr("0x17")]((e=>{const s=t.model[rr("0x1c")][rr("0x47")],r=Array[rr("0x1d")](s[rr("0x1b")]())[rr("0x36")]((t=>i.LiveRange[rr("0x2d")](t)));e.setSelection(o),t.commands[rr("0x2c")](n.commandName)[rr("0x45")](),n[rr("0x12")][rr("0x14")]({forceDefaultExecution:!0}),t[rr("0xd")](n.commandName,...n[rr("0x12")]),e[rr("0x13")](r);for(const t of r)t[rr("0x4a")]()}))}))}}var xr=n(331);const ar=["enterBlock","writer","selection","model","hasClass","getFirstRange","bind","ck-suggestion-marker-split","split","plugins","get","createRange","setSelection","remove","markerNameToElements","fromRange","showSuggestionHighlights","markInsertion","nextSibling","getFirstPosition","createPositionAt","mapper","addMarker:suggestion:insertion","unbindElementFromMarkerName","data","requires","parent","editing","document","high","markerName","downcastDispatcher","change","fire","detach","end","enter"];var cr,lr;cr=ar,lr=316,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{static get[dr("0x5")](){return[xr.Enter]}init(){const t=this.editor,e=t[dr("0x1a")].get("TrackChangesEditing"),n=t.commands[dr("0x1b")](dr("0x10"));e.enableCommand(dr("0x10"),(()=>{t[dr("0x14")][dr("0xc")]((o=>{const s=t[dr("0x14")][dr("0x8")][dr("0x13")],r=s[dr("0x24")](),x=i.LiveRange[dr("0x20")](s[dr("0x16")]());if(n[dr("0x11")](o)){const n=t.model[dr("0x0")](r[dr("0x6")][dr("0x23")],0),s=o[dr("0x1c")](r,n);e[dr("0x22")](s)}else o[dr("0x1d")](o[dr("0x1c")](x[dr("0xf")]));x[dr("0xe")](),n[dr("0xd")]("afterExecute",{writer:o})}))})),t.editing[dr("0xb")].on(dr("0x2"),Ts(t,dr("0x19")),{priority:dr("0x9")}),t[dr("0x7")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n.mapper[dr("0x1f")](e[dr("0xa")]);if(o)for(const t of o)t[dr("0x15")](dr("0x18"))&&(n[dr("0x1")][dr("0x3")](t,e[dr("0xa")]),n[dr("0x12")][dr("0x1e")](t))}),{priority:dr("0x9")}),t[dr("0x4")].downcastDispatcher.on(dr("0x2"),((e,n,o)=>{o.options[dr("0x21")]&&Ts(t,dr("0x19"),{showActiveMarker:!1})[dr("0x17")](this)(e,n,o)}),{priority:"high"})}}const gr=["getRange","enableCommand","_isInDeletionRange","start","has","replace","afterInit","findByTextCallback","suggestion:deletion","findPrevious","model","createPositionAt","handleFindCommand","getMarkersGroup","plugins","editor","TrackChangesEditing","find","createRange","bind","filter","end","get","item","findNext","FindAndReplaceUtils"];var mr,fr;mr=gr,fr=329,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xf")](){if(!this[hr("0x18")][hr("0x17")][hr("0xd")]("FindAndReplaceEditing"))return;const t=this[hr("0x18")][hr("0x17")][hr("0x5")](hr("0x19"));t[hr("0xa")](hr("0x0"),this[hr("0x15")][hr("0x2")](this)),t[hr("0xa")](hr("0x7")),t[hr("0xa")](hr("0x12")),t.enableCommand(hr("0xe")),t.enableCommand("replaceAll")}[hr("0x15")](t,e,n={}){const o=this[hr("0x18")][hr("0x17")][hr("0x5")](hr("0x8"));void 0!==n&&t((t=>("string"==typeof e?o[hr("0x10")](e,n):e)(t)[hr("0x3")]((e=>!1===this[hr("0xb")](e,t[hr("0x6")])))),n)}_isInDeletionRange(t,e){const n=this.editor[hr("0x13")][hr("0x1")](this[hr("0x18")][hr("0x13")][hr("0x14")](e,t[hr("0xc")]),this.editor[hr("0x13")].createPositionAt(e,t[hr("0x4")]));for(const t of this[hr("0x18")].model.markers[hr("0x16")](hr("0x11")))if(null!==n.getIntersection(t[hr("0x9")]()))return!0;return!1}}const br=["*Reset font color*","selection","*Set font family:* %0","has","getRanges","value","change","*Set font background color:* %0","fontColor","get","_descriptionFactory","fontSize","commandName","config","*Set font color:* %0","trim","fontBackgroundColor","document","*Reset font family*","locale","title","commandParams","toLowerCase","*Reset font background color*","normalizeSizeOptions","model","fontFamily","from","format","*Reset font size*","enableCommand","*Set font size:* %0","isCollapsed","fontSize.options","TrackChangesEditing","plugins","fontColor.colors","_enableCommand","markInlineFormat","editor","FontSizeEditing","FontColorEditing","FontSize"];var Er,_r;Er=br,_r=105,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x15"),commandName:Tr("0x23")},{pluginName:"FontFamilyEditing",commandName:Tr("0x7")},{pluginName:Tr("0x16"),commandName:Tr("0x20")},{pluginName:"FontBackgroundColorEditing",commandName:Tr("0x28")}];class yr extends t.Plugin{afterInit(){const t=this[Tr("0x14")][Tr("0x0")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x14")][Tr("0x10")][Tr("0x1b")](t)&&this._enableCommand(e);this[Tr("0x14")].plugins[Tr("0x21")](Tr("0xf"))[Tr("0x22")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x23")==o[Tr("0x24")]){const e=o[Tr("0x2")][0][Tr("0x1d")];if(e){const o=n(this[Tr("0x14")].plugins.get(Tr("0x17"))[Tr("0x5")](this[Tr("0x14")][Tr("0x25")][Tr("0x21")](Tr("0xe"))).find((t=>t[Tr("0x6")]==e))[Tr("0x1")])[Tr("0x3")]();return{type:Tr("0x9"),content:Yo(t,Tr("0xc"),o)}}return{type:"format",content:Yo(t,Tr("0xa"))}}if("fontFamily"==o[Tr("0x24")]){const e=o[Tr("0x2")][0][Tr("0x1d")];return e?{type:Tr("0x9"),content:Yo(t,Tr("0x1a"),e)}:{type:"format",content:Yo(t,Tr("0x2a"))}}if(Tr("0x20")==o[Tr("0x24")]){const e=o[Tr("0x2")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x14")].config.get(Tr("0x11"))).find((t=>t[Tr("0x6")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[Tr("0x3")]()),{type:Tr("0x9"),content:Yo(t,Tr("0x26"),i)[Tr("0x27")](),color:{value:e,title:i||r}}}return{type:Tr("0x9"),content:Yo(t,Tr("0x18"))}}if(Tr("0x28")==o[Tr("0x24")]){const e=o[Tr("0x2")][0][Tr("0x1d")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x14")].config[Tr("0x21")]("fontBackgroundColor.colors")).find((t=>t.model==e));let r=e,i="";return o&&(r=o.label,i=n(r)[Tr("0x3")]()),{type:Tr("0x9"),content:Yo(t,Tr("0x1f"),i)[Tr("0x27")](),color:{value:e,title:i||r}}}return{type:Tr("0x9"),content:Yo(t,Tr("0x4"))}}}}))}[Tr("0x12")](t){const e=this.editor;e[Tr("0x10")][Tr("0x21")](Tr("0xf"))[Tr("0xb")](t,((n,o={})=>{const s=e[Tr("0x6")][Tr("0x29")][Tr("0x19")],r=o[Tr("0x1d")];s[Tr("0xd")]?n(o):e[Tr("0x6")][Tr("0x1e")]((()=>{const n=Array[Tr("0x8")](s[Tr("0x1c")]());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0x6")]);for(const o of n)e[Tr("0x10")][Tr("0x21")](Tr("0xf"))[Tr("0x13")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["commandName","charAt","forward","toUpperCase","modifySelection","enableCommand","label","slice","*Set format to:* %0","pasteFormat","from","title","fontSize.options","getAttributeProperties","TrackChangesEditing","normalizeSizeOptions","format","selection","fontBackgroundColor","getFirstPosition","join","backward","length","fontSize","change","get","model","keys","copyFormat","getSelectedBlocks","registerDescriptionCallback","commands","getLastPosition","afterInit","plugins","markInlineFormat","commandParams","editor","toLowerCase","isBlock","word","entries","isFormatting","fontColor","getItems","getAttributes","createSelection","schema","boolean","getRanges","document","find","FontSize","isCollapsed","config"];var Ar,vr;Ar=kr,vr=222,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Sr extends t.Plugin{[Rr("0x1f")](){const t=this[Rr("0x23")],n=t.model,o=n[Rr("0x30")][Rr("0xf")],s=t[Rr("0x20")][Rr("0x17")](Rr("0xc")),r=t.locale,i=t[Rr("0x1d")][Rr("0x17")](Rr("0x1a")),x=t[Rr("0x1d")][Rr("0x17")](Rr("0x7"));i&&x&&(s[Rr("0x3")](Rr("0x7"),((t,r={})=>{const i=r;n[Rr("0x16")]((()=>{const t=Array[Rr("0x8")](o[Rr("0x2f")]()),r=o[Rr("0x33")]?[Ir(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Rr("0x2b")]()){const t=e[Rr("0xb")](n);t&&t[Rr("0x28")]&&(yield n)}}(t,n));for(const e of t[Rr("0x2f")]())for(const t of e[Rr("0x2a")]())!n[Rr("0x25")](t)&&o(t)&&(yield t);for(const e of t[Rr("0x1b")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Rr("0x2d")]))||0!==Object[Rr("0x19")](i)[Rr("0x14")])for(const t of r)s[Rr("0x21")](t,{commandName:Rr("0x7"),commandParams:[i]})}))})),s._descriptionFactory[Rr("0x1c")]((e=>{const{data:n}=e;if(n&&Rr("0x7")===n[Rr("0x35")]){const e=[],o=n[Rr("0x22")][0];for(const[n,s]of Object[Rr("0x27")](o))e.push(Lr(t,n,s));return e[Rr("0x14")]?{type:Rr("0xe"),content:Yo(r,Rr("0x6"),e.join(", "))}:{type:Rr("0xe"),content:Yo(r,"*Remove all formatting*")}}})),t[Rr("0x20")][Rr("0x17")]("TrackChangesEditing")[Rr("0x3")]("copyFormat"))}}function Ir(t,e){const n=t[Rr("0x2c")](e);t.modifySelection(n,{unit:Rr("0x26"),direction:Rr("0x13")});const o=n[Rr("0x11")]();t[Rr("0x2")](n,{unit:Rr("0x26"),direction:Rr("0x0")});const s=n[Rr("0x1e")]();return t.createRange(o,s)}function Lr(t,e,n){const o=t.locale.t,r=e.split(/(?=[A-Z])/)[Rr("0x12")](" "),i=o(r[Rr("0x36")](0)[Rr("0x1")]()+r[Rr("0x5")](1))[Rr("0x24")]();if(Rr("0x2e")==typeof n)return i;if(Rr("0x29")===e||Rr("0x10")===e){const e=(0,s.normalizeColorOptions)(t[Rr("0x34")][Rr("0x17")]("fontColor.colors"))[Rr("0x31")]((t=>t[Rr("0x18")]==n));return i+" ("+(e?o(e[Rr("0x4")])[Rr("0x24")]():n)+")"}if(Rr("0x15")===e&&isNaN(parseFloat(n))){const e=t.plugins[Rr("0x17")](Rr("0x32"))[Rr("0xd")](t.config[Rr("0x17")](Rr("0xa"))).find((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x9")])[Rr("0x24")]():n)+")"}return i+" ("+n+")"}const Nr=["selection","from","plugins","has","parent","document","get","model","heading","*Change to:* %0","_descriptionFactory","checkChild","getSelectedBlocks","paragraph","registerDescriptionCallback","markBlockFormat","change","value","TrackChangesEditing","name","commandParams","HeadingEditing","blockName","locale","ELEMENT_HEADING_CUSTOM","format","find","afterInit","heading.options","formatBlock","registerElementLabel","editor","config"];var wr,Mr;wr=Nr,Mr=465,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0x18")](){const t=this.editor,e=t[Or("0x14")],n=t[Or("0x1d")][Or("0x3")](Or("0x19"));if(!t.plugins[Or("0x0")](Or("0x12")))return;const o=t[Or("0x20")][Or("0x3")](Or("0xf"));o.enableCommand(Or("0x5"),((e,n)=>{const s=n[Or("0xe")],r=Array[Or("0x1f")](this[Or("0x1c")].model[Or("0x2")][Or("0x1e")][Or("0x9")]()).filter((t=>{return e=t,n=s,(o=this[Or("0x1c")][Or("0x4")].schema)[Or("0x8")](e[Or("0x1")],n)&&!o.isObject(e)&&e[Or("0x10")]!=n;var e,n,o}));t.model[Or("0xd")]((()=>{for(const t of r)o[Or("0xc")](t,{commandName:Or("0x5"),commandParams:[n],formatGroupId:Or("0x13")},_s(t))}))}));for(const t of n)Or("0xa")!=t.model&&o[Or("0x7")][Or("0x1b")](t.model,(e=>{const n=Pr(t[Or("0x4")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,Or("0x15"),[t,n])}o._descriptionFactory[Or("0xb")]((t=>{const{type:o,data:i}=t;if(Or("0x1a")==o&&i&&"heading"==i.commandName){const t=i[Or("0x11")][0][Or("0xe")],o=Pr(t);if(null!==o)return{type:"format",content:Yo(e,Or("0x6"),s(1,o))};const x=n[Or("0x17")]((e=>e[Or("0x4")]===t)).title;return{type:Or("0x16"),content:Yo(e,Or("0x6"),r(1,x))}}}))}}function Pr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Dr=["locale","registerDescriptionCallback","FORMAT_HIGHLIGHT","find","commandParams","commandName","format","enableCommand","afterInit","getLastMatchingPosition","editor","item","backward","toLowerCase","highlight.options","formatInline","push","config","getRanges","plugins","TrackChangesEditing","markInlineFormat","model","selection","_descriptionFactory","title","HighlightEditing","hasAttribute","highlight","has","getAttribute","get","change"];var Br,jr;Br=Dr,jr=146,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x1b")](){const t=this[Ur("0x1d")];if(!t.plugins[Ur("0xf")](Ur("0xc")))return;const e=t[Ur("0x5")][Ur("0x11")](Ur("0x6"));e[Ur("0x1a")](Ur("0xe"),((n,o={})=>{const s=t.model.document[Ur("0x9")],r=s[Ur("0x10")]("highlight");let i=o.value,x=[];if(s.isCollapsed){const e=s.getFirstPosition();if(!s[Ur("0xd")]("highlight"))return void n(o);{const n=t=>t[Ur("0x1e")][Ur("0x10")](Ur("0xe"))===r,o=e[Ur("0x1c")](n,{direction:Ur("0x1f")}),s=e[Ur("0x1c")](n);x=[t[Ur("0x8")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s[Ur("0x4")]())i?x[Ur("0x2")](e):x.push(...Es(Ur("0xe"),e,t[Ur("0x8")]));t[Ur("0x8")][Ur("0x12")]((()=>{for(const t of x)e[Ur("0x7")](t,{commandName:Ur("0xe"),commandParams:[{value:i}]})}))}));const n=t[Ur("0x13")];e[Ur("0xa")][Ur("0x14")]((e=>{const{type:o,data:s}=e;if(Ur("0x1")==o&&s&&"highlight"==s[Ur("0x18")]){const e=n.t,o=s[Ur("0x17")][0].value;if(o){const s=t[Ur("0x3")][Ur("0x11")](Ur("0x0"))[Ur("0x16")]((t=>t.model==o)),r=e(s[Ur("0xb")])[Ur("0x20")]();return{type:Ur("0x19"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Ur("0xb")]}}}return{type:Ur("0x19"),content:Yo(n,"*Remove highlight*",Yo(n,Ur("0x15")))}}}))}}const Hr=["dataDowncast","plugins","registerElementLabel","horizontalLine","for","ck-horizontal-line","locale","conversion","createPositionAt","showSuggestionHighlights","editor","get","insert","ELEMENT_HORIZONTAL_LINE","HorizontalLineEditing","div","addClass","TrackChangesEditing","_descriptionFactory","elementToStructure"];var zr,Wr;zr=Hr,Wr=213,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x11")];if(!t[Vr("0x8")].has(Vr("0x1")))return;t[Vr("0x8")].get("TrackChangesEditing").enableCommand(Vr("0xa"));const e=t[Vr("0x8")][Vr("0x12")](Vr("0x4")),n=t[Vr("0xd")];e[Vr("0x5")][Vr("0x9")](Vr("0xa"),(t=>Yo(n,Vr("0x0"),t))),t[Vr("0xe")][Vr("0xb")](Vr("0x7"))[Vr("0x6")]({model:Vr("0xa"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x10")])return null;const o=e.createContainerElement(Vr("0x2")),s=e.createEmptyElement("hr");return e[Vr("0x3")](Vr("0xc"),o),e[Vr("0x13")](e[Vr("0xf")](o,0),s),o},converterPriority:"high"})}}const qr=["TrackChangesEditing","_descriptionFactory","editor","registerElementLabel","element","selection","model","registerDescriptionCallback","value","format","editing","ELEMENT_HTML_EMBED","change","commandName","getAttribute","*Change %0 content*","markBlockFormat","has","getSelectedElement","document","get","afterInit","plugins","htmlEmbed","rawHtml","rawHtmlApi","cancel","enableCommand"];var Xr,$r;Xr=qr,$r=456,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0xd")](){const t=this[Jr("0x16")];if(!t[Jr("0xe")][Jr("0x9")]("HtmlEmbed"))return;const e=t.plugins[Jr("0xc")](Jr("0x14")),n=t.locale,o=t[Jr("0x2")].view[Jr("0xb")][Jr("0x19")];e[Jr("0x15")][Jr("0x17")](Jr("0x10"),(t=>Yo(n,Jr("0x3"),t))),t[Jr("0xe")].get("TrackChangesEditing")[Jr("0x13")](Jr("0xf"),((n,s)=>{const r=t[Jr("0x1a")],i=r.document[Jr("0x19")];r[Jr("0x4")]((()=>{const t=function(t){const e=t[Jr("0xa")]();return e&&e.is(Jr("0x18"),Jr("0x10"))?t[Jr("0xa")]():null}(i);if(!t)return void n(null);const r=t[Jr("0x6")](Jr("0x0"))||"";void 0!==s&&s!==r&&(e[Jr("0x8")](t,{commandName:Jr("0xf"),commandParams:[s]}),o.getSelectedElement().getCustomProperty(Jr("0x11"))[Jr("0x12")]())}))})),e[Jr("0x15")][Jr("0x1b")]((t=>{const{data:e}=t;if(e&&Jr("0xf")==e[Jr("0x5")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Jr("0x1"),content:Yo(n,Jr("0x7"),t)}}}))}}const Zr=["toggleImageCaption","markInsertion","markInlineFormat","_suggestionFactory","schema","chain","isBlockImage","accept","forceDefaultExecution","commandReversedParams","isCollapsed","end","imageCaption","getSuggestionCallback","findIndex","subType","addObject","getContainedElement","ELEMENT_IMAGE","newRange","imageStylePreApply","markBlockFormat","isOwn","commandName","document","get","getChangedMarkers","ImageUtils","registerCustomCallback","hasSuggestion","Inline image to block image","refresh","registerElementLabel","has","from","name","discard","getFirstRange","removeObject","Block image to inline image","toLowerCase","getAttribute","detach","*Format:* %0","width","selection","model","fromPosition","imageTypeBlock","head","change","_descriptionFactory","type","toPrevious","value","differ","*Remove image text alternative*","getCaptionFromImageModelElement","ImageTextAlternativeEditing","nodeBefore","formatBlock","join","format","side","imageTypeInline","formatInline","commands","ELEMENT_CAPTION","deletion","ImageResize","createRange","alt","plugins","convertInlineImageToBlock","commandParams","*Set image text alternative:* %0","ImageCaptionUtils","getClosestSelectedImageElement","convertBlockImageToInline","getSuggestion","insertImage","title","getSuggestions","discardSuggestion","shouldConvertImageType","next","ImageInlineEditing","newValue","element","getNearestSelectionRange","isIntersecting","enableCommand","nodeAfter","ImageCaptionEditing","isBefore","imageStylePostApply","setImageNaturalSizeAttributes","suggestion","*Set image width:* %0","isInContent","imageStyle","toNext","locale","FORMAT_SIDE_IMAGE","ImageStyleEditing","uploadImage","createRangeOn","registerPostFixer","start","author","TrackChangesEditing","resizeImage","filter","registerDescriptionCallback","normalizedStyles","*Reset image width*","afterInit","backward","insertion","isEqual","resizedWidth","imageTextAlternative"];var Yr,ti;Yr=Zr,ti=109,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x7")](){const t=this.editor;if(!t[ei("0x55")].has("ImageEditing"))return;const n=t[ei("0x55")][ei("0x26")](ei("0x1")),o=t[ei("0x55")][ei("0x26")](ei("0x28")),s={},r=t[ei("0x73")];if(n[ei("0x68")](ei("0x5d")),n[ei("0x40")].registerElementLabel("imageBlock",(t=>Yo(r,ei("0x1f"),t))),n[ei("0x40")].registerElementLabel("imageInline",(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[ei("0x40")][ei("0x2d")]("caption",(()=>Yo(r,ei("0x50")))),t.plugins[ei("0x2e")]("ImageUploadEditing")&&n[ei("0x68")](ei("0x76")),t[ei("0x55")][ei("0x2e")]("ImageBlockEditing")&&t[ei("0x55")].has(ei("0x63"))&&(n[ei("0x68")](ei("0x4d"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[ei("0x3b")].document[ei("0x3a")]);t.model.change((()=>{n[ei("0x22")](r,{commandName:ei("0x4d"),commandParams:[s]},[],ei("0x5b"))}))})),n[ei("0x68")](ei("0x3d"),((e,s)=>{t[ei("0x3b")][ei("0x3f")]((r=>{let x=o[ei("0x5a")](t.model[ei("0x25")].selection),a=r[ei("0x77")](x);const c=i.LivePosition[ei("0x3c")](a[ei("0x79")],ei("0x42")),l=i.LivePosition[ei("0x3c")](a[ei("0x18")],ei("0x72"));n[ei("0x15")]((()=>e(s))),x=o[ei("0x5a")](t[ei("0x3b")].document.selection),a=r.createRangeOn(x);const d=r.createRange(c,l);c[ei("0x37")](),l[ei("0x37")](),n.markBlockFormat(x,{commandName:ei("0x4d"),commandParams:[s]},[],"convertInlineImageToBlock"),d[ei("0x79")].isBefore(a.start)&&n[ei("0xe")](r[ei("0x53")](d[ei("0x79")],a[ei("0x79")]),ei("0x56")),a[ei("0x18")][ei("0x6b")](d.end)&&n.markInsertion(r[ei("0x53")](a[ei("0x18")],d.end),ei("0x56"))}))})),n[ei("0x10")][ei("0x29")](ei("0x49"),ei("0x56"),ei("0x4a"),(()=>!1)),n[ei("0x10")][ei("0x29")](ei("0x49"),"convertInlineImageToBlock","accept",(()=>!1)),n._suggestionFactory[ei("0x29")](ei("0x49"),"convertInlineImageToBlock",ei("0x31"),n[ei("0x10")].getSuggestionCallback("formatBlock","",ei("0x14"))),n._suggestionFactory[ei("0x29")](ei("0x9"),ei("0x56"),ei("0x4a"),(()=>!1)),n[ei("0x10")].registerCustomCallback(ei("0x9"),ei("0x56"),ei("0x31"),(([e])=>{const o=n[ei("0x10")][ei("0x1a")]("insertion","",ei("0x31"));let s=e[ei("0x79")],r=e[ei("0x18")];const i=t[ei("0x3b")][ei("0x11")][ei("0x66")](s,ei("0x8")),x=t[ei("0x3b")][ei("0x11")][ei("0x66")](r,"forward");i.isCollapsed&&(s=i[ei("0x79")]),x[ei("0x17")]&&(r=x[ei("0x18")]),o([t.model[ei("0x53")](s,r)])})),n[ei("0x10")][ei("0x29")](ei("0x49"),ei("0x56"),ei("0x12"),c),n[ei("0x10")][ei("0x29")](ei("0x9"),ei("0x56"),ei("0x12"),c)),t[ei("0x55")].has(ei("0x6a"))&&(n[ei("0x68")](ei("0xd"),((e,s)=>{const r=t[ei("0x55")].get(ei("0x59"));let i=o.getClosestSelectedImageElement(t[ei("0x3b")][ei("0x25")].selection),x=r[ei("0x46")](i);t[ei("0x3b")][ei("0x3f")]((()=>{if(x)return void n.markDeletion(t[ei("0x3b")][ei("0x77")](x));const a=o.isBlockImage(i);e(s),i=o[ei("0x5a")](t[ei("0x3b")].document[ei("0x3a")]),x=r.getCaptionFromImageModelElement(i),n[ei("0xe")](t[ei("0x3b")].createRangeOn(x),a?null:ei("0x19"))}))})),n[ei("0x10")][ei("0x29")](ei("0x9"),ei("0x19"),ei("0x12"),c)),t[ei("0x55")][ei("0x2e")](ei("0x75"))){n.enableCommand("imageStyle",((s,r)=>{const i=t.plugins[ei("0x26")]("Users").me,x=t[ei("0x4f")][ei("0x26")](ei("0x71"));let a=o[ei("0x5a")](t[ei("0x3b")].document[ei("0x3a")]),c=t[ei("0x3b")][ei("0x77")](a),l=x[ei("0x43")];if(l==r.value)return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[ei("0x3b")][ei("0x3f")]((()=>{if(n[ei("0x5f")]()[ei("0x3")]((t=>t[ei("0x70")]&&i==t[ei("0x0")]&&(ei("0x49")==t[ei("0x41")]||ei("0x4e")==t.type)&&(ei("0x21")==t[ei("0x1c")]||"imageStylePostApply"==t.subType)&&t[ei("0x32")]()[ei("0xa")](c))).forEach((t=>n[ei("0x60")](t[ei("0x3e")]))),a=o[ei("0x5a")](t[ei("0x3b")].document[ei("0x3a")]),c=t.model[ei("0x77")](a),x[ei("0x2c")](),t[ei("0x4f")].get(ei("0x4d"))[ei("0x2c")](),t.commands[ei("0x26")](ei("0x3d")).refresh(),l=x.value,l!=r[ei("0x43")])return o.isInlineImage(a)&&x[ei("0x61")](r[ei("0x43")],a)?(s({...r,setImageSizes:!1}),a=o[ei("0x5a")](t.model.document[ei("0x3a")]),void n[ei("0x22")](a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x21"))):void(o[ei("0x13")](a)?n.markBlockFormat(a,d,[],ei("0x6c")):n[ei("0xf")](c,d,ei("0x6c")))}))}));for(const e of t[ei("0x55")].get(ei("0x75"))[ei("0x5")])s[e[ei("0x30")]]=e[ei("0x5e")][ei("0x35")]();n[ei("0x10")][ei("0x29")](ei("0x49"),"imageStylePreApply","join",(()=>!1)),n._suggestionFactory.registerCustomCallback(ei("0x49"),ei("0x6c"),"join",(()=>!1)),n[ei("0x10")].registerCustomCallback(ei("0x4e"),ei("0x6c"),ei("0x4a"),(()=>!1)),n[ei("0x10")][ei("0x29")](ei("0x49"),ei("0x21"),"accept",(([t])=>{o[ei("0x6d")](t[ei("0x1e")]())})),n._suggestionFactory.registerCustomCallback(ei("0x49"),ei("0x21"),ei("0x31"),((t,e)=>{n[ei("0x10")][ei("0x1a")](ei("0x49"),"",ei("0x14"))(t,{commandName:e.commandName,commandParams:e[ei("0x16")]})})),n[ei("0x10")].registerCustomCallback(ei("0x49"),"imageStylePreApply",ei("0x12"),c)}const x=[{type:ei("0x49"),subType:ei("0x21")},{type:"insertion",subType:ei("0x19")},{type:"formatBlock",subType:ei("0x56")},{type:"insertion",subType:ei("0x56")}];function a(t,e){const s=x[ei("0x1b")]((({type:e,subType:n})=>t.type==e&&t[ei("0x1c")]==n)),r=x[ei("0x1b")]((({type:t,subType:n})=>e[ei("0x41")]==t&&e[ei("0x1c")]==n));if(s<0||r<0)return!1;const i=t[ei("0x32")](),a=e[ei("0x32")]();if((0==s||1==s)&&2==r&&i[ei("0x67")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,ei("0x9"))[ei("0x3")]((({suggestion:t,meta:e})=>e[ei("0x23")]&&ei("0x56")==t.subType));if(t.length>1&&a[ei("0x18")][ei("0xa")](i[ei("0x79")]))return!0;if(1==t.length&&(i[ei("0x79")][ei("0xa")](a[ei("0x18")])||i.end.isEqual(a[ei("0x79")])))return!0}if(3==s&&3==r&&i.start[ei("0x6b")](a.start)){const t=i[ei("0x18")][ei("0x69")],e=a[ei("0x79")][ei("0x48")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[ei("0x25")][ei("0x78")]((()=>{let e=!1;const s=Array[ei("0x2f")](t.model[ei("0x25")][ei("0x44")][ei("0x27")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(ei("0x6e")==s&&n[ei("0x2a")](a)){if(ei("0x49")==i&&(ei("0x21")==x||"imageStylePostApply"==x)){const t=n[ei("0x5c")](a);if(r.newRange){const s=t[ei("0x32")]()[ei("0x1e")]();if(o[ei("0x13")](s))continue;n.discardSuggestion(t),e=!0}}if("insertion"==i&&ei("0x19")==x&&!r[ei("0x20")]){const t=n[ei("0x5c")](a);t.next&&t[ei("0x62")].isInContent&&(n[ei("0x60")](t[ei("0x62")]),e=!0)}}}return e})),t.plugins[ei("0x2e")](ei("0x52"))&&n[ei("0x68")](ei("0x2"),((e,s)=>{const r=o[ei("0x5a")](t.model.document.selection);r[ei("0x36")](ei("0xb"))!=s[ei("0x39")]&&t[ei("0x3b")][ei("0x3f")]((()=>{n[ei("0x22")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins[ei("0x2e")](ei("0x47"))&&n.enableCommand(ei("0xc"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[ei("0x3b")][ei("0x25")][ei("0x3a")]);(r.hasAttribute(ei("0x54"))?r[ei("0x36")]("alt"):"")!=s[ei("0x64")]&&t[ei("0x3b")][ei("0x3f")]((()=>{n.markBlockFormat(r,{commandName:ei("0xc"),commandParams:[s]})}))})),n._descriptionFactory[ei("0x4")]((t=>{if(x.find((({type:e,subType:n})=>t[ei("0x41")]==e&&t[ei("0x1c")]==n)))return t.previous?{}:void 0})),n[ei("0x40")][ei("0x4")]((t=>{if("insertion"==t[ei("0x41")]||ei("0x51")==t[ei("0x41")]){const e=t[ei("0x1e")]();if(e&&e.is(ei("0x65"),"caption"))return{type:ei("0x9")==t[ei("0x41")]?ei("0x1d"):ei("0x33"),element:e,quantity:1}}})),n[ei("0x40")][ei("0x4")]((t=>ei("0x49")==t[ei("0x41")]&&ei("0x56")==t[ei("0x1c")]?{type:"format",content:ei("0x2b")}:ei("0x49")==t[ei("0x41")]&&"convertBlockImageToInline"==t.subType?{type:"format",content:ei("0x34")}:void 0)),n._descriptionFactory[ei("0x4")]((t=>{const{data:e}=t;if(e){if(ei("0x71")==e[ei("0x24")]){const t=e[ei("0x57")][0][ei("0x43")];return n=ei("0x4c")===t?Yo(r,ei("0x74")):s[t]||t,{type:ei("0x4b"),content:Yo(r,ei("0x38"),n)}}if(ei("0xc")==e[ei("0x24")]){const t=e[ei("0x57")][0][ei("0x64")];return t?{type:"format",content:Yo(r,ei("0x58"),'"'+t+'"')}:{type:ei("0x4b"),content:Yo(r,ei("0x45"))}}if(ei("0x2")==e.commandName){const t=e[ei("0x57")][0].width;return t?{type:"format",content:Yo(r,ei("0x6f"),t)}:{type:"format",content:Yo(r,ei("0x6"))}}}var n}))}}const oi=["Users","getSelectedElement","plugins","_suggestionFactory","get","*Format:* replace image URL","enableCommand","getSuggestionCallback","registerDescriptionCallback","editor","accept","commandParams","commandName","document","src","afterInit","author","ImageEditing","locale","getAttribute","getContainedElement","handleReplaceImageCommand","handleSuggestionDescription","markBlockFormat","subType","TrackChangesEditing","change","replaceImageSource","data","format","model","registerCustomCallback","formatBlock","discard","getSuggestions","source"];var si,ri;si=oi,ri=304,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{[ii("0x23")](){if(!this.editor[ii("0x16")].has(ii("0x1")))return;const t=this.editor.plugins.get(ii("0x9"));t[ii("0x1a")](ii("0xb"),((t,e)=>this[ii("0x5")](t,e))),t[ii("0x17")].registerCustomCallback(ii("0x10"),ii("0xb"),"accept",t._suggestionFactory[ii("0x1b")](ii("0x10"),null,"discard")),t[ii("0x17")][ii("0xf")](ii("0x10"),ii("0xb"),ii("0x11"),t[ii("0x17")].getSuggestionCallback("formatBlock",null,ii("0x1e"))),t._descriptionFactory[ii("0x1c")]((t=>this[ii("0x6")](t)))}[ii("0x5")](t,e){const n=this[ii("0x1d")][ii("0x16")][ii("0x18")]("TrackChangesEditing"),o=this[ii("0x1d")][ii("0xe")][ii("0x21")].selection[ii("0x15")]();this[ii("0x1d")][ii("0xe")][ii("0xa")]((()=>{let s=o[ii("0x3")](ii("0x22"));const r=this[ii("0x1d")][ii("0x16")][ii("0x18")](ii("0x14")).me;for(const t of n[ii("0x12")]({skipNotAttached:!0})){const e=t[ii("0x4")]();if("replaceImageSource"===t[ii("0x8")]&&e===o){t[ii("0x0")]!==r&&t[ii("0x11")](),s=t[ii("0xc")][ii("0x1f")][0][ii("0x13")];break}}t(e),n[ii("0x7")](o,{commandName:ii("0xb"),commandParams:[{source:s}]},[],ii("0xb"))}))}[ii("0x6")](t){const{data:e}=t;if(e&&ii("0xb")===e[ii("0x20")]){const t=ii("0x19");return{type:ii("0xd"),content:Yo(this.editor[ii("0x2")],t)}}}}const ai=["collaboration_features","lowest","listenTo","commands","_trackChangesExecuted","execute","afterInit","_handleImportedData","bind","editor","_trackChangesValueDuringImport","forEach","value","Users","enableCommand","get","importWord","trackChanges","plugins"];var ci,li;ci=ai,li=161,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{constructor(t){super(t),this[di("0x1")]=!1,this[di("0xe")]=!1}[di("0x10")](){const t=this[di("0x0")],e=t[di("0xd")].get(di("0x7")),n=t[di("0xd")][di("0x6")](di("0x8"));e&&(e.on("execute",((t,[,e])=>{this[di("0x1")]=n[di("0x3")],e[di("0xa")].track_changes=!this[di("0x1")]}),{priority:"high"}),this[di("0xc")](e,"dataInsert",this[di("0x11")][di("0x12")](this)),this[di("0xc")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n.execute(),this[di("0xe")]=!1)}),{priority:di("0xb")}),t[di("0x9")][di("0x6")]("TrackChangesEditing")[di("0x5")]("importWord"))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[di("0x0")][di("0xd")][di("0x6")](di("0x8")),s=o[di("0x3")];this._trackChangesValueDuringImport!==s&&(o[di("0xf")](),this[di("0xe")]=!0),n&&n[di("0x2")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[di("0x9")].get(di("0x4")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:di("0x7")}}};this[di("0x0")][di("0x9")].get("TrackChangesEditing")._setSuggestionData(s)}))}}const gi=["locale","outdentBlock","plugins","indentBlock","filter","IndentEditing","blockIndent","indent","*Outdent:* %0","*Indent:* %0","registerDescriptionCallback","document","_descriptionFactory","editor","getItemLabel","enableCommand","checkAttribute","model","schema","has","afterInit","outdent","IndentBlock","format","change","TrackChangesEditing","commandName"];var mi,fi;mi=gi,fi=335,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x9")](){const t=this.editor,e=t[hi("0x12")].get(hi("0xe"));t.plugins[hi("0x8")](hi("0x15"))&&(e.enableCommand(hi("0x17")),e.enableCommand(hi("0xa")));const n=t[hi("0x10")];if(t[hi("0x12")][hi("0x8")](hi("0xb"))){for(const n of[hi("0x13"),"outdentBlock"])e[hi("0x4")](n,(()=>{const o=Array.from(this[hi("0x2")].model[hi("0x0")].selection.getSelectedBlocks())[hi("0x14")]((t=>this[hi("0x2")].model[hi("0x7")][hi("0x5")](t,hi("0x16"))));t[hi("0x6")][hi("0xd")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[hi("0x1")][hi("0x1a")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x13")!=o[hi("0xf")]&&hi("0x11")!=o[hi("0xf")])return;const s=t.getItems()[0],r=e._descriptionFactory[hi("0x3")](s);return hi("0x13")==o[hi("0xf")]?{type:"format",content:Yo(n,hi("0x19"),r)}:hi("0x11")==o[hi("0xf")]?{type:hi("0xc"),content:Yo(n,hi("0x18"),r)}:void 0}))}}}var bi,Ei,_i=["TrackChangesEditing","get","requires"];bi=_i,Ei=485,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x0")](){return[Js.Input]}init(){this.editor.plugins[Ti("0x2")](Ti("0x1")).enableCommand("input")}}const yi=["document","change","getAttribute","unlink","getFirstPosition","LinkEditing","*Set link:* %0","format","markInlineFormat","locale","linkHref","_descriptionFactory","plugins","editor","commandName","link","isCollapsed","TrackChangesEditing","model","*Remove link*","registerDescriptionCallback","has","enableCommand"];var ki,Ai;ki=yi,Ai=268,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x15")];if(!t.plugins[vi("0x6")](vi("0xd")))return;const e=t[vi("0x14")].get(vi("0x2"));e[vi("0x7")](vi("0x0"),((n,o)=>{const s=t[vi("0x3")][vi("0x8")].selection;let r=[];if(s.isCollapsed){if(!s.hasAttribute(vi("0x12")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0xc")](),vi("0x12"),s.getAttribute(vi("0x12")),t[vi("0x3")]);r=[e]}}else r=Array.from(s.getRanges());t[vi("0x3")][vi("0x9")]((()=>{for(const t of r)e[vi("0x10")](t,{commandName:vi("0x0"),commandParams:[o]})}))})),e.enableCommand(vi("0xb"),(()=>{const n=this[vi("0x15")][vi("0x3")],o=n.document.selection;n[vi("0x9")]((()=>{let n=[];n=o[vi("0x1")]?[(0,Js.findAttributeRange)(o.getFirstPosition(),vi("0x12"),o[vi("0xa")](vi("0x12")),t[vi("0x3")])]:Es(vi("0x12"),o.getFirstRange(),t[vi("0x3")]);for(const t of n)e[vi("0x10")](t,{commandName:"unlink",commandParams:[]})}))})),e[vi("0x13")][vi("0x5")]((e=>{const{data:n}=e,o=t[vi("0x11")];if(n){if(vi("0x0")==n[vi("0x16")]){const t=n.commandParams[0];return{type:vi("0xf"),content:Yo(o,vi("0xe"),'"'+t+'"')}}return vi("0xb")==n[vi("0x16")]?{type:vi("0xf"),content:Yo(o,vi("0x4"))}:void 0}}))}}const Si=["bulletedList","*Outdent:* %0","indentList","element","commandName","createPositionAt","checkChild","selection","checkTodoList","numberedList","*Check item*","model","todo","previousSibling","value","markBlockFormat","before","add","List","get","has","document","listItem","*Change to:* %0","outdentList","getAttribute","ELEMENT_LIST_ITEM","name","_descriptionFactory","commands","bulleted","nextSibling","parent","todoListChecked","registerDescriptionCallback","forceValue","slice","ELEMENT_NUMBERED_LIST","replace","ELEMENT_TODO_LIST","todoList","listType","from","listIndent","registerElementLabel","numbered","_selectedElements","editor","afterInit","findIndex","commandParams","TrackChangesEditing","format","*Uncheck item*","enableCommand","plugins","push","createRange","schema","ELEMENT_BULLETED_LIST","ListEditing","change","filter","length","getSelectedBlocks"];var Ii,Li;Ii=Si,Li=463,function(t){for(;--t;)Ii.push(Ii.shift())}(++Li);const Ni=function(t,e){return Si[t-=0]};class wi extends t.Plugin{[Ni("0x28")](){const t=this[Ni("0x27")],e=t.locale;if(!t.plugins[Ni("0xc")](Ni("0x34")))return;const n=t[Ni("0x2f")][Ni("0xb")](Ni("0x2b")),o=t[Ni("0x2f")][Ni("0xc")]("TodoListEditing");function s(e){return()=>{const o=t[Ni("0x3")][Ni("0xd")][Ni("0x40")],s=t.commands[Ni("0xb")](e);if(s[Ni("0x6")])return void t.execute("paragraph",{});const r=e[Ni("0x1c")](0,-4),i=function(t,e,n){let o=Array[Ni("0x22")](t)[Ni("0x36")]((t=>{return e=t,(o=n)[Ni("0x3f")](e[Ni("0x18")],Ni("0xe"))&&!o.isObject(e);var e,o}));o=o[Ni("0x36")]((t=>!t.is(Ni("0x3c"),Ni("0xe"))||t[Ni("0x11")](Ni("0x21"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x3c"),Ni("0xe"))?s[Ni("0x9")](Mi(t)):s[Ni("0x9")](t);return Array[Ni("0x22")](s)}(o[Ni("0x38")](),r,t.model[Ni("0x32")]);t[Ni("0x3")][Ni("0x35")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x6")]}],formatGroupId:"blockName"},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x22")](t);const n=e[Ni("0x29")]((t=>Ni("0xe")!=t.name));return n>-1&&(e=e[Ni("0x1c")](0,n)),e}(t[Ni("0x3")][Ni("0xd")][Ni("0x40")][Ni("0x38")]()),s=t.model[Ni("0x31")](t[Ni("0x3")].createPositionAt(o[0],Ni("0x8")),t[Ni("0x3")][Ni("0x3e")](o[o[Ni("0x37")]-1],"end"));t[Ni("0x3")].change((()=>{n[Ni("0x7")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x17")];for(;t&&t[Ni("0x11")](Ni("0x23"))>n[Ni("0x11")](Ni("0x23"));)e[Ni("0x9")](t),t=t[Ni("0x17")]}return Array[Ni("0x22")](e)}(o))}))}}n.enableCommand(Ni("0x1"),s(Ni("0x1"))),n.enableCommand("bulletedList",s(Ni("0x39"))),o&&n[Ni("0x2e")](Ni("0x20"),s(Ni("0x20"))),n[Ni("0x2e")](Ni("0x3b"),r(Ni("0x3b"))),n[Ni("0x2e")](Ni("0x10"),r(Ni("0x10"))),o&&n[Ni("0x2e")](Ni("0x0"),(()=>{const e=t[Ni("0x15")][Ni("0xb")]("checkTodoList"),o=Array.from(e[Ni("0x26")]);o[Ni("0x36")]((t=>t[Ni("0x11")](Ni("0x19"))!=e[Ni("0x6")])),t[Ni("0x3")][Ni("0x35")]((()=>{for(const t of o)n[Ni("0x7")](t,{commandName:Ni("0x0"),commandParams:[{forceValue:!e[Ni("0x6")]}]})}))})),n._descriptionFactory[Ni("0x24")](Ni("0xe"),(t=>Yo(e,Ni("0x12"),t))),n[Ni("0x14")][Ni("0x1a")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[Ni("0x3d")]||Ni("0x39")==n[Ni("0x3d")]||Ni("0x20")==n[Ni("0x3d")])switch(n.commandName[Ni("0x1e")](Ni("0xa"),"")){case Ni("0x16"):return o(Yo(e,Ni("0x33")));case Ni("0x25"):return o(Yo(e,Ni("0x1d")));case Ni("0x4"):return o(Yo(e,Ni("0x1f")))}if(Ni("0x3b")==n[Ni("0x3d")])return{type:Ni("0x2c"),content:Yo(e,"*Indent:* %0",Yo(e,Ni("0x12")))};if("outdentList"==n[Ni("0x3d")])return{type:"format",content:Yo(e,Ni("0x3a"),Yo(e,Ni("0x12")))};if(Ni("0x0")==n[Ni("0x3d")])return n[Ni("0x2a")][0][Ni("0x1b")]?{type:Ni("0x2c"),content:Yo(e,Ni("0x2"))}:{type:"format",content:Yo(e,Ni("0x2d"))}}function o(t){return{type:Ni("0x2c"),content:Yo(e,Ni("0xf"),t)}}}))}}function Mi(t){const e=t[Ni("0x11")](Ni("0x23"));if(0==e)return t;let n=t;for(;t[Ni("0x5")]&&t[Ni("0x5")].is(Ni("0x3c"),Ni("0xe"));){const o=t[Ni("0x5")].getAttribute(Ni("0x23"));if(o==e)n=t[Ni("0x5")];else if(o<e)break;t=t.previousSibling}return n}function Oi(t){const e=[];if(t.is(Ni("0x3c"),"listItem")&&t.getAttribute(Ni("0x23"))>0){let n=t[Ni("0x17")];for(;n&&Ni("0xe")==n[Ni("0x13")]&&n[Ni("0x11")](Ni("0x23"))==t[Ni("0x11")]("listIndent");)e[Ni("0x30")](n),n=n.nextSibling}return e}const Fi=["config","length","ELEMENT_","markMultiRangeBlockFormat","createRange","has","_getSuggestionBlocksForListStyle","push","getAttribute","backward","*Format:* set order to reversed","listItem","*Change to:* %0","list.properties","handleDescriptions","bind","document","filter","startIndex","unshift","parent","*Format:* set order to regular","_LIST_","createPositionAt","_descriptionFactory","change","ListPropertiesEditing","TrackChangesEditing","commandParams","ListUtils","commandName","_getTranslationKeyForListStyle","get","getSiblingNodes","format","getSelectedBlocks","*Format:* set start index to %0","handleListStyleCommand","reversed","element","before","enableCommand","styles","plugins","listStart","numbered","getFirstPosition","_getSuggestionBlocks","listReversed","toUpperCase","listType","selection","listStyle","registerDescriptionCallback","model","editor","map","forward","getListTypeFromListStyleType","handleListStartCommand","type","handleListReversedCommand"];var Pi,Di;Pi=Fi,Di=395,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){if(!this[Bi("0x20")].plugins[Bi("0x2c")](Bi("0x3")))return;const t=this[Bi("0x20")][Bi("0x27")][Bi("0x9")](Bi("0x34")),e=this[Bi("0x20")][Bi("0x14")][Bi("0x9")](Bi("0x4"));t[Bi("0x13")]&&e.enableCommand(Bi("0x1d"),this[Bi("0xe")][Bi("0x36")](this)),t.reversed&&e[Bi("0x12")](Bi("0x19"),this[Bi("0x26")][Bi("0x36")](this)),t[Bi("0x39")]&&e[Bi("0x12")](Bi("0x15"),this.handleListStartCommand[Bi("0x36")](this)),e[Bi("0x1")][Bi("0x1e")](this[Bi("0x35")][Bi("0x36")](this))}handleListStyleCommand(t,e={}){const n=this[Bi("0x20")].plugins[Bi("0x9")](Bi("0x4")),o=this._getSuggestionBlocksForListStyle();this[Bi("0x20")][Bi("0x1f")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:Bi("0x1d"),commandParams:[{type:e.type}],formatGroupId:Bi("0x1d")})}))}handleListReversedCommand(t,e={}){const n=this[Bi("0x20")][Bi("0x14")][Bi("0x9")]("TrackChangesEditing"),o=this[Bi("0x18")]((t=>t.is(Bi("0x10"),Bi("0x32"))&&Bi("0x16")===t.getAttribute(Bi("0x1b"))));if(o[Bi("0x28")]<1)return;const s=o.map((t=>this[Bi("0x20")].model[Bi("0x2b")](this[Bi("0x20")].model[Bi("0x0")](t,Bi("0x11")),this[Bi("0x20")][Bi("0x1f")].createPositionAt(t,0))));this[Bi("0x20")][Bi("0x1f")].change((()=>{n[Bi("0x2a")](s,{commandName:Bi("0x19"),commandParams:[{reversed:e[Bi("0xf")]}],formatGroupId:Bi("0x19")})}))}[Bi("0x24")](t,e={}){const n=this[Bi("0x20")][Bi("0x14")][Bi("0x9")](Bi("0x4")),o=this[Bi("0x18")]((t=>t.is(Bi("0x10"),"listItem")&&Bi("0x16")===t[Bi("0x2f")](Bi("0x1b"))));if(o[Bi("0x28")]<1)return;const s=o[Bi("0x21")]((t=>this[Bi("0x20")][Bi("0x1f")][Bi("0x2b")](this.editor[Bi("0x1f")][Bi("0x0")](t,"before"),this.editor[Bi("0x1f")][Bi("0x0")](t,0))));this[Bi("0x20")].model[Bi("0x2")]((()=>{n[Bi("0x2a")](s,{commandName:Bi("0x15"),commandParams:[{startIndex:e[Bi("0x39")]}],formatGroupId:Bi("0x15")})}))}handleDescriptions(t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x7")]){case Bi("0x1d"):o=Bi("0x33"),s={type:Bi("0xb"),content:Yo(e,o,Yo(e,this[Bi("0x8")](n[Bi("0x5")][0][Bi("0x25")])))};break;case"listReversed":o=n[Bi("0x5")][0].reversed?Bi("0x31"):Bi("0x3c"),s={type:Bi("0xb"),content:Yo(e,o)};break;case Bi("0x15"):o=Bi("0xd"),s={type:Bi("0xb"),content:Yo(e,o,n[Bi("0x5")][0][Bi("0x39")])}}return s}[Bi("0x2d")](){var t,e,n,o;const s=this[Bi("0x20")].plugins[Bi("0x9")](Bi("0x6"));let r=Array.from(this.editor.model[Bi("0x37")][Bi("0x1c")][Bi("0xc")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Bi("0x10"),Bi("0x32")))&&r[Bi("0x3a")](...s[Bi("0xa")](this[Bi("0x20")].model.document[Bi("0x1c")][Bi("0x17")](),"backward")),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(Bi("0x10"),Bi("0x32")))&&r[Bi("0x2e")](...s.getSiblingNodes(this[Bi("0x20")].model[Bi("0x37")][Bi("0x1c")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x20")][Bi("0x1f")].document[Bi("0x1c")].getFirstPosition())||void 0===n?void 0:n[Bi("0x3b")])||void 0===o?void 0:o.is(Bi("0x10"),"listItem"))&&(r=r.filter((t=>t.is(Bi("0x10"),"listItem")))),r}_getSuggestionBlocks(t){const e=this[Bi("0x20")][Bi("0x14")].get(Bi("0x6"));let n=Array.from(this[Bi("0x20")][Bi("0x1f")][Bi("0x37")].selection[Bi("0xc")]())[Bi("0x38")](t)[Bi("0x21")]((t=>{const n=this[Bi("0x20")][Bi("0x1f")][Bi("0x0")](t,0);return[...e[Bi("0xa")](n,Bi("0x30")),...e.getSiblingNodes(n,Bi("0x22"))]})).flat();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Bi("0x29")+this[Bi("0x20")].plugins.get("ListUtils")[Bi("0x23")](t)[Bi("0x1a")]()+Bi("0x3d")+t.toUpperCase().replace(/-/g,"_")}}const Ui=["data","attribute:url:media","dataDowncast","plugins","has","ELEMENT_MEDIA","stop","editor","get","MediaEmbedEditing","options","high","createEmptyElement","afterInit","enableCommand","locale","media","elementToElement","downcastDispatcher","mediaEmbed","showSuggestionHighlights"];var Gi,Hi;Gi=Ui,Hi=390,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x1")](){const t=this[zi("0x10")];if(!t[zi("0xc")][zi("0xd")](zi("0x12")))return;const e=t[zi("0xc")][zi("0x11")]("TrackChangesEditing"),n=t[zi("0x3")];e[zi("0x2")](zi("0x7")),e._descriptionFactory.registerElementLabel(zi("0x4"),(t=>Yo(n,zi("0xe"),t))),t.conversion.for(zi("0xb"))[zi("0x5")]({model:zi("0x4"),view:(t,{writer:e,options:n})=>{if(n[zi("0x8")])return e[zi("0x0")]("div")},converterPriority:zi("0x14")}),t[zi("0x9")][zi("0x6")].on(zi("0xa"),((t,e,n)=>{n[zi("0x13")][zi("0x8")]&&t[zi("0xf")]()}),{priority:zi("0x14")})}}const Vi=["MentionEditing","get","editor","mention","plugins","TrackChangesEditing","afterInit","enableCommand"];var Ki,qi;Ki=Vi,qi=216,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x6")](){const t=this[Xi("0x2")];t[Xi("0x4")].has(Xi("0x0"))&&t[Xi("0x4")][Xi("0x1")](Xi("0x5"))[Xi("0x7")](Xi("0x3"))}}const Ji=["_descriptionFactory","registerElementLabel","locale","enableCommand","PageBreakEditing","ELEMENT_PAGE_BREAK","afterInit","TrackChangesEditing","get","pageBreak","plugins","editor"];var Qi,Zi;Qi=Ji,Zi=479,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x7")](){const t=this[Yi("0x0")];if(!t.plugins.has(Yi("0x5")))return;t[Yi("0xb")][Yi("0x9")](Yi("0x8"))[Yi("0x4")](Yi("0xa"));const e=t[Yi("0xb")][Yi("0x9")](Yi("0x8")),n=t[Yi("0x3")];e[Yi("0x1")][Yi("0x2")](Yi("0xa"),(t=>Yo(n,Yi("0x6"),t)))}}const ex=["filter","isLimit","*Change to:* %0","insertion","ck-suggestion-marker--active","selection","isObject","registerDescriptionCallback","end","getSelectedBlocks","parent","*Insert:* %0","isBlock","span","document","name","highest","commandName","getItemLabel","insertParagraph","activeMarkers","Paragraph","start","isTouching","get","editing","addMarker:suggestion:insertion","registerElementLabel","data","markBlockFormat","from","consume","showSuggestionHighlights","ELEMENT_PARAGRAPH","nodeAfter","writer","paragraph","downcastDispatcher","locale","markerName","type","afterInit","has","toViewPosition","createUIElement","editor","model","markerRange","bindElementToMarker","change","$text","getFirstRange","mapper","TrackChangesEditing","includes","plugins","schema","_descriptionFactory"];var nx,ox;nx=ex,ox=458,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x2f")](){const t=this.editor;if(!t.plugins[sx("0x30")](sx("0x1b")))return;const e=t[sx("0x2c")],n=t[sx("0x3")][sx("0x1e")](sx("0x1"));n._descriptionFactory[sx("0x21")]("paragraph",(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n.enableCommand(sx("0x2a"),((e,o={})=>{const s=t.model[sx("0x14")],r=o.selection||s[sx("0xb")],i=Array[sx("0x24")](r[sx("0xf")]())[sx("0x6")]((t=>{return e=t,(n=this[sx("0x33")][sx("0x34")][sx("0x4")]).checkChild(e[sx("0x10")],sx("0x2a"))&&!n[sx("0xc")](e)&&"paragraph"!=e[sx("0x15")];var e,n}));t[sx("0x34")][sx("0x37")]((()=>{for(const t of i)n[sx("0x23")](t,{commandName:sx("0x2a"),commandParams:[],formatGroupId:"blockName"},_s(t))}))})),n[sx("0x5")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&sx("0x2a")==n[sx("0x17")])return{type:"format",content:Yo(e,sx("0x8"),Yo(e,sx("0x27")))}})),n.enableCommand(sx("0x19")),t[sx("0x1f")].downcastDispatcher.on("addMarker:suggestion:insertion",ix(t),{priority:"highest"}),t[sx("0x22")][sx("0x2b")].on(sx("0x20"),((e,n,o)=>{o.options[sx("0x26")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x16")});const o=n[sx("0x5")];o[sx("0xd")]((n=>{if(sx("0x9")!==n[sx("0x2e")])return;const{start:s,end:r}=n[sx("0x39")]();if(!s[sx("0x1d")](r)||!s[sx("0x28")])return;const i=t[sx("0x34")].schema,x=s[sx("0x28")];return i.isBlock(x)&&!i[sx("0x7")](x)&&i.checkChild(x,sx("0x38"))?{type:sx("0x9"),content:Yo(e,sx("0x11"),o[sx("0x18")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x3")].get("TrackChangesEditing"),i=o[sx("0x35")][sx("0x1c")],x=o[sx("0x35")][sx("0xe")],a=t[sx("0x34")][sx("0x4")];if(!i[sx("0x1d")](x)||!i[sx("0x28")])return;const c=i[sx("0x28")];if(a[sx("0x12")](c)&&!a[sx("0x7")](c)&&a.checkChild(c,sx("0x38"))){if(!s.consumable[sx("0x25")](o.markerRange,n[sx("0x15")]))return;const t=s[sx("0x29")][sx("0x32")](sx("0x13"),{class:"ck-suggestion-marker-split"}),i=s[sx("0x0")][sx("0x31")](x);e&&r[sx("0x1a")][sx("0x2")](o[sx("0x2d")])&&s.writer.addClass(sx("0xa"),t),s[sx("0x29")].insert(i,t),s[sx("0x0")][sx("0x36")](t,o[sx("0x2d")])}}}const xx=["getAttributes","*Remove all formatting*","model","enableCommand","format","schema","change","getItems","has","TrackChangesEditing","isFormatting","from","getAttributeProperties","editor","isCollapsed","document","afterInit","plugins","commandName","removeFormat"];var ax,cx;ax=xx,cx=235,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x1")](){const t=this[lx("0x12")];if(!t[lx("0x2")][lx("0xd")]("RemoveFormatEditing"))return;const e=t.plugins.get(lx("0xe"));e[lx("0x8")](lx("0x4"),(n=>{const o=t[lx("0x7")][lx("0x0")].selection;o[lx("0x13")]?n():t[lx("0x7")][lx("0xb")]((()=>{const n=Array[lx("0x10")](o.getRanges());for(const o of n)for(const n of o[lx("0xc")]())ux(n,t.model[lx("0xa")])&&e.markInlineFormat(t.model.createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&lx("0x4")==n[lx("0x3")])return{type:lx("0x9"),content:Yo(t.locale,lx("0x6"))}}))}}function ux(t,e){for(const[n]of t[lx("0x5")]()){const t=e[lx("0x11")](n);if(t&&t[lx("0xf")])return!0}return!1}const gx=["acceptAllSuggestions","enableCommand","plugins","trackChanges","editor","afterInit","discardSuggestion","TrackChangesEditing","has","RestrictedEditingModeEditing","acceptSelectedSuggestions","goToNextRestrictedEditingException","get","discardAllSuggestions"];var mx,fx;mx=gx,fx=299,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x0")](){const t=this[hx("0xd")];if(!t[hx("0xb")][hx("0x3")](hx("0x4")))return;const e=t[hx("0xb")][hx("0x7")](hx("0x2"));e[hx("0xa")]("goToPreviousRestrictedEditingException"),e[hx("0xa")](hx("0x6"));const n=t[hx("0xb")].get(hx("0x4"));n[hx("0xa")](hx("0xc")),n[hx("0xa")]("acceptSuggestion"),n[hx("0xa")](hx("0x1")),n[hx("0xa")](hx("0x9")),n.enableCommand(hx("0x8")),n[hx("0xa")](hx("0x5")),n[hx("0xa")]("discardSelectedSuggestions")}}const bx=["merge","TrackChangesEditing","plugins","markerRange","writer","ck-suggestion-marker-","enableCommand","high","markerName","editor","editing","element","name","includes","get","softBreak","toViewPosition","data","bindElementToMarker","addMarker:suggestion:insertion","mapper","model","addMarker:suggestion:deletion","_descriptionFactory","downcastDispatcher","ck-suggestion-marker--active","activeMarkers","deletion","createPositionBefore","addMarker:suggestion","requires","insert","createUIElement","addClass","split","locale"];var Ex,_x;Ex=bx,_x=380,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0xa")](){return[xr.ShiftEnter]}init(){const t=this[Tx("0x19")],e=t[Tx("0x12")].get("TrackChangesEditing");e[Tx("0x16")]("shiftEnter"),t[Tx("0x1a")][Tx("0x4")].on(Tx("0x23"),yx(t),{priority:Tx("0x17")}),t[Tx("0x1a")].downcastDispatcher.on(Tx("0x2"),yx(t),{priority:Tx("0x17")}),t[Tx("0x21")][Tx("0x4")].on(Tx("0x9"),((e,n,o)=>{o.options.showSuggestionHighlights&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x3")].registerElementLabel(Tx("0x1f"),(e=>Yo(t[Tx("0xf")],"ELEMENT_LINE_BREAK",e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0x12")][Tx("0x1e")](Tx("0x11"));if(!s.consumable.test(o.markerRange,n[Tx("0x1c")]))return;const i=t[Tx("0x1")];for(const t of o[Tx("0x13")].getItems()){if(!t.is(Tx("0x1b"),Tx("0x1f")))continue;const n=Tx("0x7")==o[Tx("0x18")][Tx("0xe")](":")[1]?Tx("0x10"):Tx("0xe"),x=s.writer[Tx("0xc")]("span",{class:Tx("0x15")+n}),a=s[Tx("0x0")][Tx("0x20")](i[Tx("0x8")](t));e&&r[Tx("0x6")][Tx("0x1d")](o[Tx("0x18")])&&s[Tx("0x14")][Tx("0xd")](Tx("0x5"),x),s[Tx("0x14")][Tx("0xb")](a,x),s.mapper[Tx("0x22")](x,o[Tx("0x18")])}}}const kx=["getRanges","locale","enableCommand","StandardEditingModeEditing","document","markInlineFormat","FORMAT_RESTRICTED_DISABLED","isCollapsed","model","registerDescriptionCallback","commands","change","get","commandName","from","selection","_descriptionFactory","commandParams","TrackChangesEditing","forceValue","value","format","editor","FORMAT_RESTRICTED_ENABLED"];var Ax,vx;Ax=kx,vx=257,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0x5")],e=t[Rx("0xf")],n=t[Rx("0x8")];if(!t.plugins.has(Rx("0xa")))return;const o=t.plugins.get(Rx("0x1")),s="restrictedEditingException",r=t[Rx("0x11")][Rx("0x13")](s);o[Rx("0x9")](s,((t,n={})=>{const i=e[Rx("0xb")][Rx("0x16")];if(i[Rx("0xe")])return void t(n);const x=void 0!==n[Rx("0x2")]?n[Rx("0x2")]:!r[Rx("0x3")];e[Rx("0x12")]((()=>{const t=Array[Rx("0x15")](i[Rx("0x7")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x17")][Rx("0x10")]((t=>{const{data:e}=t;if(e&&e[Rx("0x14")]==s)return e[Rx("0x0")][0].forceValue?{type:"format",content:Yo(n,Rx("0x6"))}:{type:Rx("0x4"),content:Yo(n,Rx("0xd"))}}))}}const Ix=["getDefinitionsForView","model","plugins","Style","_getRangesWithClasses","getAttribute","style.definitions","locale","registerDescriptionCallback","normalizeConfig","forceValue","commandName","*Remove format:* %0","config","getItems","StyleUtils","get","selection","createRangeOn","enabledStyles","classes","DataSchema","modelElements","document","toLowerCase","_getStyleDefinition","isBlock","isCollapsed","*Format:* %0","includes","markBlockFormat","getRanges","element","find","_descriptionFactory","style","format","value","push","has","from","commands","enableCommand","getAncestors","change","name"];var Lx,Nx;Lx=Ix,Nx=107,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{afterInit(){const t=this.editor;if(!t[wx("0x21")][wx("0x18")](wx("0x22")))return;const e=t[wx("0x1a")].get(wx("0x14")),n=t.plugins[wx("0x1")]("TrackChangesEditing"),o=t[wx("0x26")],s=t[wx("0x21")][wx("0x1")](wx("0x6")),r=t[wx("0x21")][wx("0x1")](wx("0x0"))[wx("0x28")](s,t[wx("0x2c")].get(wx("0x25")));n[wx("0x1b")](wx("0x14"),((o,{styleName:i})=>{const x=t.model[wx("0x8")][wx("0x2")],a=this[wx("0xa")](i,r);if(!a)return;if(!e[wx("0x4")][wx("0xe")](i))return;if(x[wx("0xc")]&&!a[wx("0xb")])return void o({styleName:i});const c=!e[wx("0x16")].includes(a[wx("0x1e")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x1c")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[wx("0x1e")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[wx("0x7")]);t.model.change((()=>{for(const t of e)n[wx("0xf")](t,{commandName:wx("0x14"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[wx("0x19")](x[wx("0x10")]());if(!c){const n=Array[wx("0x19")](s[wx("0x1f")](a[wx("0x11")],!1))[0][wx("0x20")],o=[];for(const s of e){const e=this[wx("0x23")](t[wx("0x20")],s,a[wx("0x5")],n);o.push(...e)}e=o}t.model[wx("0x1d")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x14"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[wx("0x13")][wx("0x27")]((t=>{const{data:e}=t;if(e&&"style"===e[wx("0x2a")])return e.commandParams[0][wx("0x29")]?{type:wx("0x15"),content:Yo(o,wx("0xd"),e.commandParams[0].styleName[wx("0x9")]())}:{type:"format",content:Yo(o,wx("0x2b"),e.commandParams[0].styleName.toLowerCase())}}))}[wx("0xa")](t,e){let n=e.block[wx("0x12")]((e=>e[wx("0x1e")]===t));return n||(n=e.inline[wx("0x12")]((e=>e[wx("0x1e")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[wx("0x2d")]()){const e=r[wx("0x24")](o);e&&n.every((t=>e.classes[wx("0xe")](t)))&&s[wx("0x17")](t[wx("0x3")](r))}return s}}const Ox=["toViewElement","ELEMENT_TABLE_COLUMN_WITH_TEXT","nodeBefore","markMultiRangeDeletion","registerElementLabel","low","findAncestor","span","colspan","tablePaste","data","_setupColumnsRowsFixing","deletion","join","from","getChanges","downcastDispatcher","_descriptionFactory","options","some","above","registerPostFixer","addRange","get","isArray","TrackChangesEditing","add","insertTableRowAbove","document","last","locale","$textProxy","removeTableColumn","push","insert","markMultiRangeInsertion","classes","refresh","enqueueChange","addClass","change","change:data","MIN_SAFE_INTEGER","max","insertTableRowBelow","subType","ELEMENT_TABLE_ROW_WITH_TEXT","every","createTableWalker","getItems","getRanges","oldRange","maxRow","start","end","_getSuggestionCoords","min","selectTableRow","ELEMENT_TABLE_COLUMN","addMarker:suggestion","tableRow","selectTableColumn","model","root","insertTableColumnRight","TableUtils","getContainedElement","ELEMENT_TABLE_WITH_TEXT","isEqual","tableCell","left","*Remove:* %0","commands","getAttribute","editor","type","TableEditing","length","removeTableRow","toLowerCase","table","first","_tableSuggestions","cell","registerDescriptionCallback","nodeAfter","isTouching","hasAttribute","removeClass","fromRange","getCellLocation","insertTable","highest","ELEMENT_TABLE","detach","map","substr","_tablePostFixingSubtypes","setSelection","*Insert:* %0","accept","isInContent","createPositionAt","ELEMENT_TABLE_ROW","enableCommand","discard","$graveyard","differ","position","getRowIndexes","writer","includes","insertion","filter","insertTableColumnLeft","MAX_SAFE_INTEGER","_suggestionFactory","afterInit","createRangeOn","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","maxColumn","tableColumn","plugins","_splitMarkerName","item","createRangeIn","selection","execute","values","rootName","getFirstRange","rowspan","registerCustomCallback","order","name"];var Fx,Px;Fx=Ox,Px=344,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x19")]=["tableRow",Dx("0x32")],this[Dx("0xa")]=new Set}[Dx("0x2d")](){const t=this[Dx("0x2")],e=t.model[Dx("0x5c")].selection;if(!t[Dx("0x33")].has(Dx("0x4")))return;const n=t[Dx("0x5e")],o=t[Dx("0x33")][Dx("0x57")](Dx("0x59")),s=t.plugins.get(Dx("0x81"));o[Dx("0x51")][Dx("0x44")]("table",(t=>Yo(n,Dx("0x15"),t))),this._setupColumnsRowsFixing(),o[Dx("0x20")](Dx("0x13")),o[Dx("0x20")](Dx("0x79")),o[Dx("0x20")](Dx("0x7d"));for(const n of[Dx("0x5b"),Dx("0x6c")]){const r=t[Dx("0x0")][Dx("0x57")](n);o[Dx("0x20")](n,(n=>{t.model[Dx("0x68")]((t=>{n();const i=Dx("0x54")===r[Dx("0x3e")],x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x25")](x),c=i?a.first-1:a[Dx("0x5d")]+1,l=x[0][Dx("0x46")](Dx("0x8")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Dx("0x4e")](d)[Dx("0x17")]((e=>t[Dx("0x2e")](e[Dx("0xb")])));o[Dx("0x63")](u,"tableRow")}))}))}for(const n of[Dx("0x2a"),Dx("0x80")]){const r=t.commands[Dx("0x57")](n);o[Dx("0x20")](n,(n=>{t.model[Dx("0x68")]((t=>{n();const i=Dx("0x86")===r.order,x=s[Dx("0x2f")](e),a=s.getColumnIndexes(x),c=i?a.first-1:a[Dx("0x5d")]+1,l=x[0].findAncestor(Dx("0x8")),d=s[Dx("0x70")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x4e")](d)[Dx("0x17")]((e=>t[Dx("0x2e")](e[Dx("0xb")])));o[Dx("0x63")](u,Dx("0x32"))}))}))}for(const n of[Dx("0x6"),Dx("0x60")]){const r=n[Dx("0x18")](11),i=r[Dx("0x7")](),x=i[Dx("0x18")](0,3)+"span",a=Dx("0x8")+r,c=Dx("0x78")+r,l="max"+r;o.enableCommand(n,(()=>{t.model[Dx("0x68")]((t=>{const r=s[Dx("0x2f")](e),d=r[0][Dx("0x46")]("table");let u;if(Dx("0x6")==n){const t=s[Dx("0x25")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Dx("0x9")],endColumn:t[Dx("0x5d")],includeAllSlots:!0}}const g=s[Dx("0x70")](d,u),m=Array[Dx("0x4e")](g)[Dx("0x17")]((({cell:t})=>t)),f=jx(m[Dx("0x29")]((t=>t.hasAttribute(x)))),h=jx(m.filter((t=>!t[Dx("0xf")](x))))[Dx("0x17")]((e=>t[Dx("0x2e")](e))),p=o[Dx("0x43")](h,a);if(p&&(Dx("0x7c")==p[Dx("0x6d")]||Dx("0x32")==p[Dx("0x6d")])){const e=this[Dx("0x77")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Dx("0x12")](n),a=n[Dx("0x1")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Dx("0x56")](o)}}}))}))}function r(n){const o=Array.from(e.getRanges())[Dx("0x17")]((t=>i.LiveRange.fromRange(t)));t[Dx("0x7e")][Dx("0x68")]((e=>{const s=e.batch;n=n[Dx("0x29")]((t=>"$graveyard"!=t[Dx("0x7f")][Dx("0x3a")])),e[Dx("0x1a")](n),t[Dx("0x0")].get(Dx("0x6"))[Dx("0x65")](),t[Dx("0x38")]("removeTableRow",{forceDefaultExecution:!0}),t.model[Dx("0x66")]((()=>{t.model[Dx("0x66")](s,(t=>{const e=o[Dx("0x29")]((t=>Dx("0x22")!=t[Dx("0x7f")].rootName));e.length>0&&t[Dx("0x1a")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Dx("0x7e")].change((o=>{const s=Array[Dx("0x4e")](e[Dx("0x72")]())[Dx("0x17")]((t=>i.LiveRange[Dx("0x11")](t))),r=[];for(const t of n)for(const e of t[Dx("0x71")]({shallow:!0}))r[Dx("0x61")](e);for(const e of r)Dx("0x22")!=e[Dx("0x7f")][Dx("0x3a")]&&(o[Dx("0x1a")](o[Dx("0x1e")](e,0)),t[Dx("0x0")][Dx("0x57")](Dx("0x60")).refresh(),t[Dx("0x38")](Dx("0x60"),{forceDefaultExecution:!0}));const x=s[Dx("0x29")]((t=>Dx("0x22")!=t[Dx("0x7f")][Dx("0x3a")]));x[Dx("0x5")]>0&&o[Dx("0x1a")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Dx("0x6f")]((e=>t[Dx("0x53")]((t=>t.end[Dx("0x84")](e[Dx("0x75")])||e[Dx("0x76")][Dx("0x84")](t[Dx("0x75")])))))}function l(t,e){return t[Dx("0x53")]((t=>e[Dx("0x53")]((e=>t[Dx("0x76")][Dx("0xe")](e[Dx("0x75")])))))}t[Dx("0x4a")][Dx("0x50")].on(Dx("0x7b"),((t,e,n)=>{if(!n[Dx("0x52")].showSuggestionHighlights)return;const o=e[Dx("0x35")];if(!o)return;const s=n.mapper[Dx("0x40")](o);function r(t){return Array[Dx("0x58")](t)?t:[t]}s&&Dx("0x85")===o.name&&(0,x.setHighlightHandling)(s,n[Dx("0x26")],((t,e,n)=>n[Dx("0x67")](r(e.classes),t)),((t,e,n)=>n[Dx("0x10")](r(e[Dx("0x64")]),t)))}),{priority:Dx("0x14")}),o[Dx("0x51")].registerDescriptionCallback((t=>{if(Dx("0x28")!=t[Dx("0x3")]&&Dx("0x4c")!=t.type)return;const e=t[Dx("0x82")]();if(null!=e&&e.is("element",Dx("0x8"))){if("insertion"==t[Dx("0x3")]){const e=t[Dx("0x71")]().filter((t=>t.is(Dx("0x5f"))))[Dx("0x17")]((t=>t.data));if(e.length)return{type:"insertion",content:Yo(n,Dx("0x1b"),Yo(n,Dx("0x83"),'"'+e[Dx("0x4d")](" ")+'"'))}}if(Dx("0x4c")==t[Dx("0x3")]){const e=t[Dx("0x71")]()[Dx("0x29")]((t=>t.is(Dx("0x5f"))))[Dx("0x17")]((t=>t[Dx("0x4a")]));if(e[Dx("0x5")])return{type:Dx("0x4c"),content:Yo(n,Dx("0x87"),Yo(n,Dx("0x83"),'"'+e.join(" ")+'"'))}}}})),o[Dx("0x51")][Dx("0xc")]((t=>{if("tableRow"==t[Dx("0x6d")]){const e=t.getItems()[Dx("0x29")]((t=>t.is("$textProxy")))[Dx("0x17")]((t=>t[Dx("0x4a")])),o=this[Dx("0x77")](t),s=o[Dx("0x74")]-o.minRow+1;if("insertion"==t[Dx("0x3")])return e.length?{type:Dx("0x28"),content:Yo(n,Dx("0x1b"),Yo(n,Dx("0x6e"),[s,'"'+e[Dx("0x4d")](" ")+'"']))}:{type:Dx("0x28"),content:Yo(n,Dx("0x1b"),Yo(n,Dx("0x1f"),s))};if(Dx("0x4c")==t.type)return e[Dx("0x5")]?{type:Dx("0x4c"),content:Yo(n,Dx("0x87"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Dx("0x4d")](" ")+'"']))}:{type:Dx("0x4c"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Dx("0x32")==t[Dx("0x6d")]){const e=t[Dx("0x71")]()[Dx("0x29")]((t=>t.is(Dx("0x5f"))))[Dx("0x17")]((t=>t[Dx("0x4a")])),o=this[Dx("0x77")](t),s=o[Dx("0x31")]-o.minColumn+1;if(Dx("0x28")==t[Dx("0x3")])return e[Dx("0x5")]?{type:Dx("0x28"),content:Yo(n,Dx("0x1b"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Dx("0x4d")](" ")+'"']))}:{type:Dx("0x28"),content:Yo(n,Dx("0x1b"),Yo(n,Dx("0x7a"),s))};if(Dx("0x4c")==t[Dx("0x3")])return e[Dx("0x5")]?{type:Dx("0x4c"),content:Yo(n,Dx("0x87"),Yo(n,Dx("0x41"),[s,'"'+e[Dx("0x4d")](" ")+'"']))}:{type:Dx("0x4c"),content:Yo(n,Dx("0x87"),Yo(n,Dx("0x7a"),s))}}})),o._suggestionFactory[Dx("0x3d")](Dx("0x28"),Dx("0x7c"),Dx("0x21"),r),o[Dx("0x2c")][Dx("0x3d")](Dx("0x4c"),Dx("0x7c"),"accept",r),o[Dx("0x2c")][Dx("0x3d")](Dx("0x28"),Dx("0x32"),Dx("0x21"),a),o[Dx("0x2c")][Dx("0x3d")]("deletion",Dx("0x32"),Dx("0x1c"),a),o._suggestionFactory[Dx("0x3d")](Dx("0x28"),Dx("0x32"),"join",c),o._suggestionFactory[Dx("0x3d")](Dx("0x4c"),Dx("0x32"),Dx("0x4d"),c),o[Dx("0x2c")][Dx("0x3d")]("insertion",Dx("0x7c"),Dx("0x4d"),l),o[Dx("0x2c")][Dx("0x3d")](Dx("0x4c"),Dx("0x7c"),"join",l)}[Dx("0x30")](){const t=this.editor,e=t.model[Dx("0x5c")][Dx("0x37")];return(n,o)=>{t[Dx("0x7e")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x76")][Dx("0x42")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Dx("0x75")][Dx("0xd")]);const c=s[Dx("0x36")](a);if(Dx("0x22")==c[Dx("0x7f")].rootName)return;const l=Array[Dx("0x4e")](e[Dx("0x72")]()).map((t=>i.LiveRange[Dx("0x11")](t)));s.setSelection(c),t.commands.get(r)[Dx("0x65")](),x[Dx("0x61")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Dx("0x29")]((t=>Dx("0x22")!=t[Dx("0x7f")][Dx("0x3a")]));d[Dx("0x5")]>0&&s[Dx("0x1a")](d);for(const t of l)t[Dx("0x16")]()}))}}_getCoordsForCells(t){const e=this[Dx("0x2")][Dx("0x33")][Dx("0x57")](Dx("0x81"));let n=Number[Dx("0x2b")],o=Number.MIN_SAFE_INTEGER,s=Number[Dx("0x2b")],r=Number[Dx("0x6a")];for(const i of t){if(Dx("0x22")==i[Dx("0x7f")][Dx("0x3a")])continue;const{row:t,column:x}=e[Dx("0x12")](i),a=i[Dx("0xf")]("rowspan")?i[Dx("0x1")](Dx("0x3c"))-1:0,c=i[Dx("0xf")](Dx("0x48"))?i.getAttribute("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Dx("0x4b")](){const t=this[Dx("0x2")],e=t[Dx("0x33")][Dx("0x57")](Dx("0x59")),n=t.plugins[Dx("0x57")](Dx("0x81"));t[Dx("0x7e")][Dx("0x5c")].on(Dx("0x69"),(()=>{const n=Array[Dx("0x4e")](t[Dx("0x7e")][Dx("0x5c")][Dx("0x23")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Dx("0x34")](t);if("suggestion"!=n)continue;if(null!=o[Dx("0x73")])continue;const i=e.getSuggestion(s);this[Dx("0x19")][Dx("0x27")](r)&&this[Dx("0xa")][Dx("0x5a")](i)}}),{priority:Dx("0x45")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x2e")](t),r=t[Dx("0x46")](Dx("0x8")),i=n.getCellLocation(t);for(const e of this[Dx("0xa")]){const n=e[Dx("0x6d")],x=n.startsWith(Dx("0x49")),a=n[Dx("0x18")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Dx("0x47"),d="min"+a,u=Dx("0x6b")+a;if(!e[Dx("0x1d")])continue;if(r!=e[Dx("0x3b")]()[Dx("0x75")].findAncestor("table"))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Dx("0xf")](l)?t[Dx("0x1")](l)-1:0,m=this[Dx("0x77")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x56")](s),o=!0)}return o};t[Dx("0x7e")].document[Dx("0x55")]((e=>{let n=!1;for(const s of t[Dx("0x7e")][Dx("0x5c")].differ[Dx("0x4f")]())if(Dx("0x62")==s.type)if(Dx("0x7c")==s.name)for(const t of s.position.nodeAfter.getChildren())n=n||o(t,e);else Dx("0x85")==s[Dx("0x3f")]&&(n=n||o(s[Dx("0x24")][Dx("0xd")],e));return n}))}[Dx("0x77")](t){return this._getCoordsForCells(t.getRanges().map((t=>t[Dx("0x75")][Dx("0xd")])))}}function jx(t){return Array[Dx("0x4e")](new Set(t)[Dx("0x39")]())}const Ux=["*Merge cells*","size","commandName","mergeTableCellDown","_areSelectedCellsMergable","registerCustomCallback","_areMergableCells","formatBlock","type","execute","splitTableCellHorizontally","splitTableCellVertically","push","format","model","getFirstPosition","enableCommand","containsRange","createRangeOn","cell","TableEditing","isEnabled","createTableWalker","document","deletion","findAncestor","add","forceDefaultExecution","markMultiRangeBlockFormat","registerDescriptionCallback","_suggestionFactory","change","filter","detach","commands","plugins","stop","has","low","getAncestors","getCellLocation","tableCell","_descriptionFactory","editor","accept","mergeTableCells","value","length","getRanges","trackChanges","TableUtils","mergeTableCellUp","getSelectionAffectedTableCells","setSelection","insertion","isInContent","horizontally","element","fromRange","refresh","selection","mergeTableCellLeft","_tablePostFixingSubtypes","direction","map","author","mergeTableCellRight","getSuggestions","TrackChangesEditing","*Split cell:* horizontally","get","from","$graveyard","set:isEnabled","_acceptFormatSuggestionCallbackFactory"];var Gx,Hx;Gx=Ux,Hx=136,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get requires(){return[Bx]}afterInit(){const t=this[zx("0x39")],e=t[zx("0x1c")].document[zx("0x4a")],n=t.locale;if(!t[zx("0x31")][zx("0x33")](zx("0x22")))return;const o=t[zx("0x31")][zx("0x9")](zx("0x7")),s=t.plugins.get(zx("0x40")),r=t.plugins.get(Bx);r[zx("0x1")][zx("0x1a")](zx("0x3b")),o[zx("0x1e")]("mergeTableCells",(()=>{const e=s.getSelectionAffectedTableCells(t[zx("0x1c")][zx("0x25")][zx("0x4a")]);t[zx("0x1c")][zx("0x2d")]((()=>{o[zx("0x2a")](e,{commandName:zx("0x3b"),commandParams:[]},[],zx("0x3b"))}))})),t[zx("0x30")][zx("0x9")](zx("0x3b")).on(zx("0x17"),((e,n)=>{t[zx("0x30")][zx("0x9")](zx("0x3f"))[zx("0x3c")]&&(n[zx("0x3d")]>0&&n[n[zx("0x3d")]-1]&&n[n[zx("0x3d")]-1][zx("0x29")]||o._isForcedDefaultExecutionBlock||this[zx("0x12")]()||e[zx("0x32")]())}),{priority:"highest"});for(const e of[zx("0x41"),"mergeTableCellRight",zx("0x11"),zx("0x0")]){const n=t[zx("0x30")][zx("0x9")](e);o.enableCommand(e,(()=>{const e=t.model[zx("0x25")][zx("0x4a")][zx("0x1d")]()[zx("0x35")]().find((t=>t.is(zx("0x47"),zx("0x37")))),s=n[zx("0x3c")];t.model[zx("0x2d")]((()=>{o[zx("0x2a")]([e,s],{commandName:zx("0x3b"),commandParams:[]},[],zx("0x3b"))}))}))}for(const e of["splitTableCellVertically",zx("0x18")]){const n=t.commands[zx("0x9")](e);o[zx("0x1e")](e,(()=>{const r=s[zx("0x42")](t[zx("0x1c")][zx("0x25")][zx("0x4a")])[0],i=r[zx("0x27")]("table"),{column:x,row:a}=s[zx("0x36")](r);let c=[];if(zx("0x46")==n[zx("0x2")]){const t=s[zx("0x24")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0xa")](t)[zx("0x3")]((t=>t[zx("0x21")]))}else{const t=s[zx("0x24")](i,{column:x,includeAllSlots:!0});c=Array[zx("0xa")](t)[zx("0x3")]((t=>t[zx("0x21")]))}t[zx("0x1c")][zx("0x2d")]((t=>{o.markBlockFormat(t[zx("0x20")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x38")][zx("0x2b")]((t=>{const{data:e}=t;if(e)return zx("0x3b")==e[zx("0x10")]?{type:"format",content:Yo(n,zx("0xe"))}:void 0})),o[zx("0x38")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return zx("0x19")==e.commandName?{type:zx("0x1b"),content:Yo(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e[zx("0x10")]?{type:zx("0x1b"),content:Yo(n,zx("0x8"))}:void 0}));const x=r[zx("0xd")]();for(const t of[zx("0x41"),zx("0x5"),"mergeTableCellDown",zx("0x0")])o[zx("0x2c")][zx("0x13")](zx("0x15"),t,"accept",x);for(const t of[zx("0x19"),zx("0x18")])o[zx("0x2c")][zx("0x13")](zx("0x15"),t,zx("0x3a"),x);o[zx("0x2c")][zx("0x13")](zx("0x15"),"mergeTableCells","accept",(n=>{t[zx("0x1c")][zx("0x2d")]((o=>{const s=Array[zx("0xa")](e[zx("0x3e")]())[zx("0x3")]((t=>i.LiveRange[zx("0x48")](t)));o[zx("0x43")](n),t.commands.get(zx("0x3b"))[zx("0x49")](),t[zx("0x17")]("mergeTableCells",{forceDefaultExecution:!0});const r=s[zx("0x2e")]((t=>zx("0xb")!=t.root.rootName));r[zx("0x3d")]>0&&o.setSelection(r);for(const t of s)t[zx("0x2f")]()}))}));for(const e of["mergeTableCellUp",zx("0x11"),zx("0x0"),zx("0x5")]){const n=t[zx("0x30")][zx("0x9")](e);n.on(zx("0xc"),((e,o,s)=>{if(s){const o=t[zx("0x1c")][zx("0x25")][zx("0x4a")].getFirstPosition()[zx("0x35")]().find((t=>t.is(zx("0x47"),zx("0x37"))));this[zx("0x14")](n.value,o)||(e.return=!1,e.stop())}}),{priority:zx("0x34")})}}[zx("0x12")](){const t=this.editor[zx("0x30")][zx("0x9")](zx("0x3b")),e=this[zx("0x39")][zx("0x31")][zx("0x9")]("TableUtils");if(!t[zx("0x23")])return!1;const n=e[zx("0x42")](this[zx("0x39")][zx("0x1c")][zx("0x25")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x14")](t,e))return!1;return!0}[zx("0x14")](t,e){const n=this[zx("0x39")][zx("0x31")][zx("0x9")](zx("0x7")),o=this[zx("0x39")][zx("0x1c")].createRangeOn(t),s=this[zx("0x39")][zx("0x1c")][zx("0x20")](e),r=new Set,i=new Set;for(const t of n[zx("0x6")]())if((zx("0x44")==t.type||zx("0x26")==t[zx("0x16")]||zx("0x3b")==t.subType)&&t[zx("0x45")])for(const e of t.getRanges())e[zx("0x1f")](o,!0)&&r[zx("0x28")](t.type+":"+t.author.id),e[zx("0x1f")](s,!0)&&i[zx("0x28")](t.type+":"+t[zx("0x4")].id);if(r[zx("0xf")]!=i[zx("0xf")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Vx=["highest","last","consume","cell","_descriptionFactory","registerCustomCallback","commands","showSuggestionHighlights","removeAttribute","registerDescriptionCallback","getRowIndexes","index","getAttribute","removeMarker:suggestion","setAttribute","formatBlock","_splitMarkerName","item","addClass","setTableRowHeader","first","FORMAT_HEADER_ROW","enableCommand","headingColumns","requires","selection","childCount","getChild","commandName","afterInit","document","isBefore","nodeBefore","toViewElement","get","setTableColumnHeader","editing","downcastDispatcher","createPositionAfter","unbindElementFromMarkerName","FORMAT_REGULAR_ROW","markBlockFormat","parent","ck-suggestion-marker--active","getSelectionAffectedTableCells","markerName","model","_acceptFormatSuggestionCallbackFactory","mapper","consumable","TableUtils","_suggestionFactory","markerRange","data","createRange","accept","removeClass","commandParams","value","headingRows","locale","getColumnIndexes","createPositionBefore","findAncestor","writer","activeMarkers","getSuggestion","start","getCellLocation","markerNameToElements","table","forceValue","data-suggestion","plugins","editor","stop","*Format:* %0","ck-suggestion-marker-","nodeAfter","from"];var Kx,qx;Kx=Vx,qx=109,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get[Xx("0x4b")](){return[Bx]}[Xx("0x0")](){const t=this[Xx("0x2d")];if(!t.plugins.has("TableEditing"))return;const e=t[Xx("0x1f")],n=t.plugins[Xx("0x5")]("TrackChangesEditing"),o=t.plugins[Xx("0x5")](Xx("0x15")),s=t[Xx("0x2c")][Xx("0x5")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x43")](r[Xx("0x10")]),c=n[Xx("0x25")](a);if(!c.data||Xx("0x6")!=c[Xx("0x18")][Xx("0x4f")])return;if(r[Xx("0x44")])return void s[Xx("0x2e")]();if(!i[Xx("0x14")][Xx("0x35")](r[Xx("0x17")],s.name))return;const l=r[Xx("0x17")][Xx("0x26")][Xx("0x31")],d=r[Xx("0x17")].end[Xx("0x3")],u=l[Xx("0xd")].parent,{column:g}=o[Xx("0x27")](l),{column:m}=o[Xx("0x27")](d);for(let s=g;s<=m;s++){const c=o.createTableWalker(u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0x36")],c=i[Xx("0x13")][Xx("0x4")](s);i.writer[Xx("0x45")](Xx("0x30")+x,c),e&&i[Xx("0x23")][Xx("0x41")](Xx("0x2b"),a,c),i[Xx("0x13")].bindElementToMarker(c,r.markerName),t&&(n[Xx("0x24")].includes(r[Xx("0x10")])?i[Xx("0x23")].addClass(Xx("0xe"),c):i[Xx("0x23")][Xx("0x1b")]("ck-suggestion-marker--active",c))}}}}n[Xx("0x49")](Xx("0x46"),((e,s)=>{const r=o[Xx("0xf")](t[Xx("0x11")][Xx("0x1")][Xx("0x4c")]),i=o[Xx("0x3d")](r),x=r[0][Xx("0x22")](Xx("0x29")),a=x[Xx("0x3f")](Xx("0x1e"))||0,c=s&&null!==s[Xx("0x2a")]?s[Xx("0x2a")]:!t.commands[Xx("0x5")](Xx("0x46"))[Xx("0x1d")],l=c?i[Xx("0x34")]:i[Xx("0x47")],d=x.getChild(l);let u;if(c){const e=x[Xx("0x4e")](a);if(d.index<e[Xx("0x3e")])return;u=t.model[Xx("0x19")](t[Xx("0x11")][Xx("0x21")](e[Xx("0x4e")](0)),t[Xx("0x11")][Xx("0x9")](d[Xx("0x4e")](d[Xx("0x4d")]-1)))}else{const e=x[Xx("0x4e")](a-1);if(!e)return;u=t[Xx("0x11")][Xx("0x19")](t[Xx("0x11")].createPositionBefore(d[Xx("0x4e")](0)),t[Xx("0x11")].createPositionAfter(e[Xx("0x4e")](e.childCount-1)))}t[Xx("0x11")].change((()=>{n[Xx("0xc")](u,{commandName:Xx("0x46"),commandParams:[{forceValue:c}]},[],Xx("0x46"))}))})),n.enableCommand(Xx("0x6"),((e,o)=>{const s=t[Xx("0x2c")][Xx("0x5")](Xx("0x15")),r=s[Xx("0xf")](t[Xx("0x11")].document[Xx("0x4c")]),i=s[Xx("0x20")](r),x=r[0][Xx("0x22")](Xx("0x29")),a=x[Xx("0x3f")](Xx("0x4a"))||0,c=o&&null!==o[Xx("0x2a")]?o[Xx("0x2a")]:!t[Xx("0x39")][Xx("0x5")](Xx("0x6")).value;let l;const d=x.getChild(0),u=c?i[Xx("0x34")]:i[Xx("0x47")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x32")](g)[0][Xx("0x36")];if(c){const e=d.getChild(a);if(m[Xx("0x2")](e))return;l=t[Xx("0x11")][Xx("0x19")](t[Xx("0x11")][Xx("0x21")](e),t[Xx("0x11")][Xx("0x9")](m))}else{const e=d[Xx("0x4e")](a-1);if(!e)return;l=t.model.createRange(t[Xx("0x11")][Xx("0x21")](m),t[Xx("0x11")][Xx("0x9")](e))}t[Xx("0x11")].change((()=>{n[Xx("0xc")](l,{commandName:Xx("0x6"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[Xx("0x7")][Xx("0x8")].on("addMarker:suggestion",r(),{priority:Xx("0x33")}),t.data[Xx("0x8")].on("addMarker:suggestion",((t,e,n)=>{n.options[Xx("0x3a")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x33")}),t.editing.downcastDispatcher.on(Xx("0x40"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x43")](e[Xx("0x10")]),i=n[Xx("0x25")](r);if(!i[Xx("0x18")]||"setTableColumnHeader"!=i[Xx("0x18")].commandName)return;const x=o[Xx("0x13")][Xx("0x28")](e.markerName);if(x)for(const t of x)o[Xx("0x23")].removeClass("ck-suggestion-marker-"+s,t),o[Xx("0x23")].removeClass(Xx("0xe"),t),o[Xx("0x23")][Xx("0x3b")](Xx("0x2b"),t),o[Xx("0x13")][Xx("0xa")](t,e[Xx("0x10")])}),{priority:"highest"}),n[Xx("0x37")][Xx("0x3c")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[Xx("0x4f")]){const t=n.commandParams[0].forceValue;return o(Yo(e,Xx(t?"0x48":"0xb")))}if(Xx("0x6")==n.commandName){const t=n[Xx("0x1c")][0][Xx("0x2a")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:"format",content:Yo(e,Xx("0x2f"),t)}}}));const i=s[Xx("0x12")]();n[Xx("0x16")].registerCustomCallback(Xx("0x42"),Xx("0x46"),Xx("0x1a"),i),n[Xx("0x16")][Xx("0x38")]("formatBlock","setTableColumnHeader",Xx("0x1a"),i)}}const Jx=["getRows","oldRange","elementToElement","document","suggestion","insertRows","formatBlock","tableCellHorizontalAlignment","getChangedMarkers","tableCellVerticalAlignment","filter","author","value","position","fromEntries","markerToHighlight","name","startsWith","forceDefaultExecution","add","cell","find","suggestionLoaded","tablePasteColumn","markerAttributes","_createdBatches","previous","activeMarkers","tablePasteRow","getMarkers","tableCellSuggestion","rows","type","end","createElement","TableClipboard","ck-suggestion-marker-insertion","unwrap","deletionRanges","move","map","tablePasteChainId","getTableIfOnlyTableInContent","nextSibling","registerPostFixer","plugins","stop","getSelectionAffectedTableCells","remove","isEmpty","push","accept","get","every","_getCoordsForCells","_tablePostFixingSubtypes","options","endRow","isEqual","insertion","discard","removeMarker","getColumns","register","requires","has","createPositionBefore","includes","_descriptionFactory","change","redo","$graveyard","editor","createRange","clipboardOutput","columnInsertionIndexes","updateMarker","content","rootName","locale","findAncestor","model","some","low","tableCell","deletion","commands","newRange","ck-suggestion-marker","next","documentSelection","suggestionUnloaded","high","first","_isForcedDefaultExecutionBlock","for","isInContent","getAllAdjacentSuggestions","ck-suggestion-marker--active","tablePaste","tableCellBorderStyle","_suggestionFactory","*Replace table cells*","column","getShiftedBy","view","root","tablePasteCell","createRangeOn","Users","setAttributes","getContainedElement","start","editingDowncast","conversion","registerDescriptionCallback","batch","nodeAfter","markMultiRangeInsertion","element","from","length","registerCustomCallback","fill","cells","createRangeIn","_replaceTableSlotCell","columns","entries","subType","columnInsertionRanges","rowInsertionRanges","insertContent","TrackChangesEditing","insert","row","dataDowncast","paragraph","tableCellPadding","table","selection","markerName","suggestion-td","getSuggestions","differ","suggestion:formatBlock:tablePasteCell","join","reduce","getSuggestion","TableUtils","attributes","last","keys","removeColumns","getChanges","rowInsertionIndexes","getRanges","hasSuggestion","getChildren","getRange","endColumn","wrap","set","createTableWalker"];var Qx,Zx;Qx=Jx,Zx=229,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=["tableCellBorderWidth","tableCellBorderColor",Yx("0x23"),Yx("0x6a"),Yx("0x6c"),"tableCellBackgroundColor",Yx("0x49")],ea=Object[Yx("0x71")](ta[Yx("0x8b")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0xa3")](){return[Bx]}afterInit(){const t=this[Yx("0x7")];if(!t[Yx("0x90")][Yx("0x0")](Yx("0x86")))return;const n=t[Yx("0x90")].get(Yx("0x44")),o=t.plugins.get(Yx("0x54")),s=t[Yx("0x90")][Yx("0x97")](Bx),r=t[Yx("0x90")].get(Yx("0x86"));s[Yx("0x9a")][Yx("0x95")](Yx("0x7f"),Yx("0x7a")),t[Yx("0x10")].schema[Yx("0xa2")](Yx("0x81"),{allowIn:Yx("0x13"),allowContentOf:Yx("0x13"),isLimit:!0}),t[Yx("0x31")][Yx("0x65")]({model:Yx("0x81"),view:Yx("0x4d")});let i=null;t.model.on(Yx("0x43"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Yx("0x75")]||n[Yx("0x1d")]||this[Yx("0x7")][Yx("0x15")][Yx("0x97")]("trackChanges")[Yx("0x6f")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x19")))return!1;const r=s[Yx("0x8d")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x92")](n[Yx("0x66")][Yx("0x4b")]);if(!i[Yx("0x38")])return!1;const x=i[0].findAncestor("table"),a=o.getRowIndexes(i),c=o.getColumnIndexes(i),l={startRow:a[Yx("0x1c")],endRow:a[Yx("0x56")],startColumn:c[Yx("0x1c")],endColumn:c[Yx("0x56")]};return 1==i[Yx("0x38")]&&(l[Yx("0x9c")]+=o[Yx("0x63")](r)-1,l[Yx("0x5f")]+=o[Yx("0xa1")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x10")],o,r)&&(s[Yx("0x91")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x10")].change((()=>{t[Yx("0x10")][Yx("0x43")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Yx("0x38")]&&n[Yx("0x35")](s,Yx("0x7f"),{tablePasteChainId:o}),r[Yx("0x38")]&&n[Yx("0x35")](r,Yx("0x7a"),{tablePasteChainId:o}),a.length&&n[Yx("0x35")](a,Yx("0x22"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x2a"),{tablePasteChainId:o});if(d){const e=d[Yx("0x80")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Yx("0x10")].createRangeOn(o),i=e[Yx("0x78")]((t=>t[Yx("0x5e")]()[Yx("0x9d")](r)));i&&n[Yx("0x95")]([i.name,s])}n[Yx("0x38")]&&d.setAttribute("markerAttributes",Object[Yx("0x71")](n))}i=null})))}),{priority:e.priorities[Yx("0x1b")]+10}),t[Yx("0x90")][Yx("0x97")](Yx("0x86")).on(Yx("0x3d"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Yx("0x91")]();const r=n[Yx("0x77")],x=o,a=oa(r),c=oa(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0x93")](r.getChild(0));for(const t of Array[Yx("0x37")](x[Yx("0x5d")]()))s.insert(t,r,Yx("0x84"));const t=i[Yx("0x5a")][Yx("0x2")](n[Yx("0x46")]),e=i[Yx("0xa")][Yx("0x2")](n[Yx("0x26")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Yx("0x3c")](r));else{const t=s[Yx("0x85")](Yx("0x81")),e=s.createElement(Yx("0x81"));s[Yx("0x60")](s.createRangeIn(r),e),s[Yx("0x45")](t,r,0);for(const e of Array[Yx("0x37")](x[Yx("0x5d")]()))s[Yx("0x45")](e,t,Yx("0x84"));l=s[Yx("0x2b")](t),d=s[Yx("0x2b")](e)}const u=Array[Yx("0x37")](x.getAttributes())[Yx("0x6d")]((([t])=>ta[Yx("0x2")](t)));i[Yx("0x3b")].push({element:r,attributes:u[Yx("0x38")]?Object.fromEntries(u):null}),l&&i.insertionRanges[Yx("0x95")](l),d&&i[Yx("0x89")][Yx("0x95")](d)}),{priority:Yx("0x1b")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x3e")]||1;i[Yx("0xa")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x62")](s,{startColumn:x,endColumn:x+a-1}))i[Yx("0x41")].push(t[Yx("0x10")][Yx("0x2b")](e))}),{priority:Yx("0x12")}),o.on(Yx("0x68"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x82")]||1;i[Yx("0x5a")]=new Array(a)[Yx("0x3a")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x62")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x42")].push(t.model[Yx("0x2b")](e))}),{priority:"low"}),n[Yx("0x3")][Yx("0x32")]((e=>{if(e[Yx("0x40")]&&e[Yx("0x40")][Yx("0x74")](Yx("0x22")))return e[Yx("0x7d")]?{}:{type:Yx("0x9e"),content:Yo(t[Yx("0xe")],Yx("0x25"))}}));const x=()=>!1;for(const t of[Yx("0x22"),Yx("0x7a"),"tablePasteRow","tablePasteCell"])n[Yx("0x24")][Yx("0x39")]("insertion",t,"join",x),n[Yx("0x24")][Yx("0x39")](Yx("0x14"),t,Yx("0x51"),x),n[Yx("0x24")][Yx("0x39")](Yx("0x69"),t,"join",x);n._suggestionFactory[Yx("0x39")]("formatBlock",Yx("0x2a"),"discard",x),n[Yx("0x24")][Yx("0x39")](Yx("0x69"),Yx("0x2a"),Yx("0x96"),((e,n,o)=>{const s=e.map((t=>t[Yx("0x2e")]()))[Yx("0x6d")]((t=>t)),r=new Map(s[Yx("0x8b")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x3b")])e&&r[Yx("0x61")](t,e);else if(o&&o[Yx("0x7b")])for(const[e,n]of Object[Yx("0x3f")](o.markerAttributes)){const o=t.model.markers.get(e),s=o?o[Yx("0x5e")]()[Yx("0x2e")]():null;s&&r[Yx("0x61")](s,n)}t.model.change((t=>{for(const[e,n]of r)t[Yx("0x2d")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x24")][Yx("0x39")](e,Yx("0x22"),o,((s,r,i)=>{t[Yx("0x10")].change((t=>{const x=[];for(const t of s){const e=t[Yx("0x2f")][Yx("0x34")];e.is(Yx("0x36"),Yx("0x81"))&&x[Yx("0x95")](e)}n[Yx("0x24")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Yx("0x6")!=e[Yx("0x29")][Yx("0xd")]&&t.unwrap(e)}))}))};a(Yx("0x9e"),"accept"),a(Yx("0x9e"),Yx("0x9f")),a(Yx("0x14"),"accept"),a(Yx("0x14"),Yx("0x9f")),n[Yx("0x24")][Yx("0x39")](Yx("0x9e"),Yx("0x7f"),Yx("0x9f"),(t=>{const e=t[Yx("0x8b")]((t=>t[Yx("0x2e")]())),n=e[0][Yx("0xf")](Yx("0x4a")),{minRow:r,maxRow:i}=s[Yx("0x99")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Yx("0x24")].registerCustomCallback(Yx("0x9e"),Yx("0x7a"),Yx("0x9f"),(t=>{const e=t[Yx("0x8b")]((t=>t[Yx("0x2e")]())),n=e[0][Yx("0xf")](Yx("0x4a")),{minColumn:r,maxColumn:i}=s[Yx("0x99")](e);o[Yx("0x58")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0x40")]||!e.subType[Yx("0x74")](Yx("0x22")))return;const o=e[Yx("0x55")][Yx("0x8c")],s=n.getSuggestions().filter((t=>t[Yx("0x1f")]&&t.attributes&&t[Yx("0x55")].tablePasteChainId==o));s[Yx("0x38")]&&e[Yx("0x20")]().length!=s[Yx("0x38")]&&s[Yx("0x52")](((t,e)=>(t[Yx("0x18")]=e,e[Yx("0x7d")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Yx("0x4c")]),s=[Yx("0x17"),Yx("0x87")],r=n[Yx("0x7e")].includes(t[Yx("0x4c")]);return r&&s[Yx("0x95")](Yx("0x21")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0x79"),c,{priority:Yx("0x1b")}),n.on(Yx("0x1a"),c,{priority:Yx("0x1b")}),t[Yx("0x10")][Yx("0x66")][Yx("0x8f")]((()=>{let e=!1;const o=Array[Yx("0x37")](t[Yx("0x10")].document[Yx("0x4f")][Yx("0x6b")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if("suggestion"!=o||"deletion"!=i||r[Yx("0x64")])continue;if(!n[Yx("0x5c")](x))continue;const a=n[Yx("0x53")](x)[Yx("0x5b")](),c=t[Yx("0x90")][Yx("0x97")](Yx("0x2c")).me;for(const t of n[Yx("0x4e")]())if(t[Yx("0x1f")]&&t.author==c&&Yx("0x69")==t.type&&Yx("0x2a")==t[Yx("0x40")]&&t[Yx("0x5b")]()[Yx("0x98")]((t=>a[Yx("0x11")]((e=>e.containsRange(t,!0))))))for(const n of t[Yx("0x20")]())n[Yx("0x1f")]&&(n[Yx("0x9f")](),e=!0)}return e})),t[Yx("0x10")][Yx("0x66")][Yx("0x8f")]((e=>{const o=t[Yx("0x15")].get(Yx("0x5"));if(!o||!o[Yx("0x7c")][Yx("0x0")](e[Yx("0x33")]))return!1;let s=!1;const r=t.plugins[Yx("0x97")](Yx("0x2c")).me,i=t.model[Yx("0x66")][Yx("0x4f")][Yx("0x59")](),x=Array[Yx("0x37")](t[Yx("0x10")][Yx("0x66")][Yx("0x4f")][Yx("0x6b")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Yx("0x67")==o&&Yx("0x22")==s&&i==r.id&&!e[Yx("0x64")]}));for(const t of i){if("insert"!=t[Yx("0x83")]||Yx("0x81")!=t[Yx("0x73")]||1!=t[Yx("0x38")])continue;const n=e[Yx("0x8")](t[Yx("0x70")],t[Yx("0x70")][Yx("0x27")](1));if(!x[Yx("0x78")]((({data:t})=>t[Yx("0x16")][Yx("0x9d")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Yx("0x16")])){e[Yx("0xb")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x10")][Yx("0x66")].registerPostFixer((e=>{let o=!1;const s=t.plugins[Yx("0x97")](Yx("0x2c")).me,r=n[Yx("0x4e")]()[Yx("0x6d")]((t=>t.isInContent&&t[Yx("0x6e")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x22")==t[Yx("0x40")])for(const e of t[Yx("0x80")]()){const n=e.getRange()[Yx("0x2e")]();if(n)if(n.is(Yx("0x36"),Yx("0x81"))&&oa(n)){t[Yx("0xa0")](e[Yx("0x73")]),i.add(n),o=!0;const s=n[Yx("0x8e")],r=n.previousSibling,a=s&&s.is("element",Yx("0x81")),c=r&&r.is(Yx("0x36"),Yx("0x81"));a&&!i[Yx("0x0")](s)&&x[Yx("0x76")](s),c&&!i.has(r)&&x[Yx("0x76")](r)}else n.is("element",Yx("0x48"))&&n[Yx("0x94")]&&(t[Yx("0xa0")](e[Yx("0x73")]),o=!0)}else if("tablePasteCell"==t.subType){if(!t[Yx("0x55")]||!t[Yx("0x55")][Yx("0x8c")])continue;const e=t[Yx("0x55")][Yx("0x7b")];if(e&&Object[Yx("0x57")](e)[Yx("0x38")])continue;const n=t.attributes.tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Yx("0x40")]&&e[Yx("0x40")][Yx("0x74")](Yx("0x22"))){if(!e[Yx("0x55")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Yx("0x55")][Yx("0x8c")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Yx("0x88")](t);return o})),t.conversion[Yx("0x1e")](Yx("0x30")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Yx("0x1b")}),t[Yx("0x31")][Yx("0x1e")](Yx("0x47"))[Yx("0x72")]({model:Yx("0x50"),view:(t,e)=>e[Yx("0x9b")].showSuggestionHighlights?l(t,!1):null,converterPriority:Yx("0x1b")});const d=t.editing[Yx("0x28")];this.listenTo(d[Yx("0x66")],Yx("0x9"),((t,e)=>{const n=[];for(const t of d[Yx("0x3c")](e[Yx("0xc")]).getItems())t.is("element",Yx("0x4d"))&&n[Yx("0x95")](t);d[Yx("0x4")]((t=>{for(const e of n)t[Yx("0x8a")](t.createRangeIn(e),t[Yx("0x1")](e)),t[Yx("0x93")](e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is(Yx("0x36"),Yx("0x48"))&&e[Yx("0x94")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x62")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["selection","handleSuggestionDescription","handleResizeTableWidthCommand","get","commandParams","TableColumnResizeEditing","data","getSuggestions","columnWidths","resizeColumnWidths","formatBlock","bind","_suggestionFactory","discard","enableCommand","locale","TrackChangesEditing","change","getSelectedElement","tableWidth","editor","has","author","resizeTable","getContainedElement","plugins","getAttribute","formatGroupId","getColumnGroupElement","model","resizeTableWidth","afterInit","registerDescriptionCallback","document","subType"];var ia,xa;ia=ra,xa=116,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x14")](){if(!this.editor.plugins[aa("0xa")](aa("0x1d")))return;const t=this[aa("0x9")].plugins.get(aa("0x5"));t[aa("0x3")]("resizeTableWidth",this[aa("0x1a")].bind(this)),t.enableCommand(aa("0x21"),this.handleResizeTableWidthCommand[aa("0x0")](this)),t[aa("0x1")].registerCustomCallback(aa("0x22"),aa("0xc"),"accept",t[aa("0x1")].getSuggestionCallback(aa("0x22"),null,aa("0x2"))),t._suggestionFactory.registerCustomCallback(aa("0x22"),"resizeTable","discard",t[aa("0x1")].getSuggestionCallback("formatBlock",null,"accept")),t._descriptionFactory[aa("0x15")](this[aa("0x19")][aa("0x0")](this))}[aa("0x1a")](t,e){const n=this[aa("0x9")][aa("0xe")][aa("0x1b")](aa("0x5")),o=this.editor[aa("0xe")][aa("0x1b")](aa("0x1d")),s=e.table||this[aa("0x9")][aa("0x12")][aa("0x16")][aa("0x18")][aa("0x7")]();this.editor[aa("0x12")][aa("0x6")]((()=>{const r=o[aa("0x11")](s);let i=r?o.getTableColumnsWidths(r):null,x=s[aa("0xf")](aa("0x8"))||null;const a=e.tableWidth||x,c=e[aa("0x20")]||i,l=this.editor[aa("0xe")][aa("0x1b")]("Users").me;for(const t of n[aa("0x1f")]()){const e=t[aa("0xd")]();if("resizeTable"===t[aa("0x17")]&&e===s){t[aa("0xb")]!==l&&t[aa("0x2")]();const e=t[aa("0x1e")][aa("0x1c")];x=e[0][aa("0x8")],i=e[0][aa("0x20")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:aa("0x13"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:aa("0xc")},[],aa("0xc"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&aa("0xc")===e[aa("0x10")]){const t="*Format:* resize table";return{type:"format",content:Yo(this[aa("0x9")][aa("0x4")],t)}}}}const la=["plugins","get","has","enableCommand","editor","Template"];var da,ua;da=la,ua=290,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this[ga("0x2")];t.plugins[ga("0x0")](ga("0x3"))&&t[ga("0x4")][ga("0x5")]("TrackChangesEditing")[ga("0x1")]("insertTemplate")}}const fa=["get","enableCommand","tableOfContents","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","locale","insertTableOfContents","afterInit","plugins","TrackChangesEditing","commands"];var ha,pa;ha=fa,pa=261,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xa")](){const t=this.editor;if(!t[ba("0x2")][ba("0x3")](ba("0x9")))return;t[ba("0x0")].get(ba("0x1"))[ba("0x4")](ba("0x9"));const e=t[ba("0x0")][ba("0x3")](ba("0x1")),n=t[ba("0x8")];e[ba("0x7")].registerElementLabel(ba("0x5"),(t=>Yo(n,ba("0x6"),t)))}}const _a=["plugins","has","createRange","document","ELEMENT_TITLE","schema","start","Title","TrackChangesEditing","model","isCollapsed","nodeBefore","removeMarker","_splitMarkerName","_descriptionFactory","end","element","title-content","suggestion","registerPostFixer","locale","isEqual","updateMarker","newRange"];var Ta,Ca;Ta=_a,Ca=476,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this.editor;if(!t[ya("0x4")][ya("0x5")](ya("0xb")))return;const e=t[ya("0x4")].get(ya("0xc"));e[ya("0x12")].registerElementLabel(ya("0x15"),(()=>Yo(t[ya("0x0")],ya("0x8")))),t[ya("0xd")][ya("0x7")][ya("0x17")]((n=>{let o=!1;const s=Array.from(t.model.document.differ.getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x11")](r);if(ya("0x16")!==s||!i.newRange)continue;const x=i[ya("0x3")],a=x.end[ya("0xf")];if(!a||!a.is(ya("0x14"),ya("0x15")))continue;if(!x[ya("0xa")].isTouching(x[ya("0x13")]))continue;const c=t.model[ya("0x9")].getNearestSelectionRange(x[ya("0x13")],"forward");if(c&&c[ya("0xe")]){const t=n[ya("0x6")](x[ya("0xa")],c[ya("0xa")]);t[ya("0x1")](x)||(n[ya("0x2")](r,{range:t}),o=!0)}o||(n[ya("0x10")](r),o=!0)}return o}))}}const Aa=["afterInit","redo","UndoEditing","has","get","editor","TrackChangesEditing","undo","enableCommand","plugins"];var va,Ra;va=Aa,Ra=130,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{[Sa("0x0")](){const t=this[Sa("0x5")],e=t[Sa("0x9")][Sa("0x4")](Sa("0x6"));t.plugins[Sa("0x3")](Sa("0x2"))&&(e.enableCommand(Sa("0x7")),e[Sa("0x8")](Sa("0x1")))}}const La=["TrackChangesEditing","get","TableCaptionEditing","plugins","editor","has","requires","afterInit"];var Na,wa;Na=La,wa=101,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[Ma("0x1")](){return[Bx]}[Ma("0x2")](){const t=this[Ma("0x7")];t[Ma("0x6")][Ma("0x0")](Ma("0x5"))&&t[Ma("0x6")][Ma("0x4")](Ma("0x3")).enableCommand("toggleTableCaption")}}const Fa=["styles","listStart","DocumentListUtils","reversed","replace","toUpperCase","startIndex","_descriptionFactory","config","listReversed","handleListReversedCommand","markMultiRangeBlockFormat","handleListStyleCommand","expandListBlocksToCompleteList","handleListStartCommand","numbered","change","*Change to:* %0","list.properties","getListTypeFromListStyleType","format","handleDescriptions","TrackChangesEditing","listStyle","get","enableCommand","isListItemBlock","model","locale","type","plugins","*Format:* set order to regular","ELEMENT_","document","commandParams","isFirstBlockOfListItem","from","filter","_getTranslationKeyForListStyle","getSelectedBlocks","_getSuggestionBlocks","DocumentListPropertiesUtils","afterInit","_getSuggestionBlocksForListStyle","selection","registerDescriptionCallback","push","*Format:* set order to reversed","*Format:* set start index to %0","editor","bind","commandName"];var Pa,Da;Pa=Fa,Da=330,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x18")](){if(!this[Ba("0x1f")][Ba("0xc")].has("DocumentListPropertiesEditing"))return;const t=this.editor[Ba("0x2a")].get(Ba("0x0")),e=this[Ba("0x1f")].plugins[Ba("0x6")](Ba("0x4"));t[Ba("0x22")]&&e[Ba("0x7")]("listStyle",this[Ba("0x2e")][Ba("0x20")](this)),t[Ba("0x25")]&&e[Ba("0x7")](Ba("0x2b"),this.handleListReversedCommand[Ba("0x20")](this)),t[Ba("0x28")]&&e[Ba("0x7")](Ba("0x23"),this.handleListStartCommand[Ba("0x20")](this)),e[Ba("0x29")][Ba("0x1b")](this[Ba("0x3")][Ba("0x20")](this))}[Ba("0x2e")](t,e={}){const n=this.editor[Ba("0xc")][Ba("0x6")]("TrackChangesEditing"),o=this[Ba("0x19")]();this[Ba("0x1f")][Ba("0x9")][Ba("0x32")]((()=>{n[Ba("0x2d")](o,{commandName:Ba("0x5"),commandParams:[{type:e.type}],formatGroupId:Ba("0x5")})}))}[Ba("0x2c")](t,e={}){const n=this.editor[Ba("0xc")][Ba("0x6")]("TrackChangesEditing"),o=this.editor[Ba("0xc")].get(Ba("0x24")),s=this[Ba("0x16")]((t=>o[Ba("0x8")](t)&&Ba("0x31")===t.getAttribute("listType")));null!==s&&this.editor.model[Ba("0x32")]((()=>{n[Ba("0x2d")](s,{commandName:"listReversed",commandParams:[{reversed:e[Ba("0x25")]}],formatGroupId:Ba("0x2b")})}))}[Ba("0x30")](t,e={}){const n=this[Ba("0x1f")][Ba("0xc")].get(Ba("0x4")),o=this[Ba("0x1f")][Ba("0xc")][Ba("0x6")]("DocumentListUtils"),s=this[Ba("0x16")]((t=>o[Ba("0x8")](t)&&"numbered"===t.getAttribute("listType")));null!==s&&this[Ba("0x1f")][Ba("0x9")][Ba("0x32")]((()=>{n[Ba("0x2d")](s,{commandName:Ba("0x23"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Ba("0x23")})}))}[Ba("0x3")](t){const e=this[Ba("0x1f")][Ba("0xa")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x21")]){case Ba("0x5"):o=Ba("0x33"),s={type:Ba("0x2"),content:Yo(e,o,Yo(e,this[Ba("0x14")](n.commandParams[0][Ba("0xb")])))};break;case Ba("0x2b"):o=n[Ba("0x10")][0][Ba("0x25")]?Ba("0x1d"):Ba("0xd"),s={type:Ba("0x2"),content:Yo(e,o)};break;case Ba("0x23"):o=Ba("0x1e"),s={type:Ba("0x2"),content:Yo(e,o,n.commandParams[0][Ba("0x28")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[Ba("0x1f")][Ba("0xc")][Ba("0x6")](Ba("0x24"));let e=Array[Ba("0x12")](this.editor.model[Ba("0xf")][Ba("0x1a")][Ba("0x15")]());return e[Ba("0x1c")](...t[Ba("0x2f")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ba("0x1f")][Ba("0xc")].get(Ba("0x24"));let n=Array[Ba("0x12")](this[Ba("0x1f")][Ba("0x9")][Ba("0xf")].selection[Ba("0x15")]())[Ba("0x13")](t);if(!n.length)return null;n=e[Ba("0x2f")](n);const o=[];for(const t of n)e[Ba("0x11")](t)&&o[Ba("0x1c")](t);return o}[Ba("0x14")](t){return Ba("0xe")+this[Ba("0x1f")][Ba("0xc")].get(Ba("0x17"))[Ba("0x1")](t)[Ba("0x27")]()+"_LIST_"+t[Ba("0x27")]()[Ba("0x26")](/-/g,"_")}}const Ua=["start","tableBackgroundColor","tableCellBorderStyle","registerCustomCallback","accept","change","_getSuggestion","getFirstPosition","data","document","handleSuggestionDescription","format","_suggestionFactory","formatBlock","commandParams","tableCellBorderColor","tableHeight","model","_handlePropertyChange","enqueueChange","tableCellBackgroundColor","pluginName","getSuggestions","tableBorderColor","tableCellBorderWidth","markBlockFormat","tableCellPadding","getContainedElement","*Format:* change table properties","TablePropertiesEditing","selection","join","tableAlignment","batch","enableCommand","plugins","nodeAfter","has","afterInit","tableCellProperties","locale","editor","getSuggestionCallback","tableProperties","*Format:* change table cell properties","table","registerDescriptionCallback","tableBorderWidth","tableCellWidth","tableWidth","tableCellVerticalAlignment","discard","findAncestor","removeAttribute","tableCellHeight","get","subType","TrackChangesEditing","handleDiscardAction"];var Ga,Ha;Ga=Ua,Ha=186,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x22")]=[za("0xe"),"tableBorderStyle",za("0x26"),za("0x17"),za("0x28"),za("0x7"),za("0x33")],this[za("0x1e")]=[za("0x6"),za("0x34"),za("0xf"),za("0x11"),za("0x27"),za("0x2d"),za("0xb"),"tableCellHorizontalAlignment",za("0x29")]}static get[za("0xc")](){return"TrackChangesTableProperties"}[za("0x1d")](){const t=this.editor[za("0x1a")].get(za("0x30"));if(this[za("0x20")][za("0x1a")].has(za("0x14"))){for(const e of this[za("0x22")])t[za("0x19")](e,((t,n)=>{const o=this[za("0x20")].model[za("0x0")][za("0x15")][za("0x39")]()[za("0x2b")](za("0x24"));this._handlePropertyChange(e,[o],this[za("0x22")],za("0x22"),t,n)}));t[za("0x3")][za("0x35")](za("0x4"),za("0x22"),"accept",t._suggestionFactory[za("0x21")](za("0x4"),null,"discard")),t._suggestionFactory[za("0x35")]("formatBlock",za("0x22"),za("0x2a"),((t,e)=>this[za("0x31")](this[za("0x22")],t,e))),t[za("0x3")][za("0x35")](za("0x4"),za("0x22"),za("0x16"),(()=>!1))}if(this.editor[za("0x1a")][za("0x1c")]("TableCellPropertiesEditing")){for(const e of this[za("0x1e")])t[za("0x19")](e,((t,n)=>{const o=this[za("0x20")][za("0x1a")][za("0x2e")]("TableUtils").getSelectionAffectedTableCells(this[za("0x20")][za("0x8")][za("0x0")].selection);this[za("0x9")](e,o,this[za("0x1e")],za("0x1e"),t,n)}));t._suggestionFactory[za("0x35")](za("0x4"),za("0x1e"),za("0x36"),t[za("0x3")].getSuggestionCallback(za("0x4"),null,"discard")),t[za("0x3")][za("0x35")]("formatBlock",za("0x1e"),za("0x2a"),((t,e)=>this[za("0x31")](this[za("0x1e")],t,e))),t[za("0x3")][za("0x35")]("formatBlock","tableCellProperties","join",(()=>!1))}t._descriptionFactory[za("0x25")]((t=>this.handleSuggestionDescription(t)))}[za("0x9")](t,e,n,o,s,r){const i=this[za("0x20")][za("0x1a")][za("0x2e")](za("0x30"));this[za("0x20")][za("0x8")][za("0xa")](r[za("0x18")],(()=>{for(const t of e)if(this[za("0x38")](t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i[za("0x10")](t,{commandParams:[e]},[],o)}}))}[za("0x31")](t,e,n){const o=e[0][za("0x32")][za("0x1b")],s=n[za("0x5")][0];this[za("0x20")][za("0x8")][za("0x37")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[za("0x2c")](n,o)}))}[za("0x1")](t){if(t[za("0x3a")])switch(t[za("0x2f")]){case"tableProperties":return{type:"format",content:Yo(this.editor[za("0x1f")],za("0x13"))};case za("0x1e"):return{type:za("0x2"),content:Yo(this.editor.locale,za("0x23"))}}}[za("0x38")](t,e){const n=this[za("0x20")].plugins.get("TrackChangesEditing");for(const o of n[za("0xd")]({skipNotAttached:!0})){const n=o[za("0x12")]();if(o.subType===e&&n===t)return o}return null}}const Va=["init","_updateSuggestionData","getSuggestions","return","isInsideObject","getAttribute","getNearestSelectionRange","track-changes-adapter-already-set","position","_setSuggestionData","registerPostFixer","containsRangeInObject","getDifference","setSelection","isCollapsed","name","options","addClass","isLimit","root","detach","ck-suggestion-marker-formatBlock","addMarker:suggestion","hasComments","stop","formatInline:discard","data","_addThreadToSuggestion","forceDefaultExecution","editingDowncast","pluginName","deletion:discard","nodeBefore","default","suggestion","fromCharCode","define","@external","error-saving-suggestion-data-suggestion-discarded","isEqual","_enabledCommands","low","_saved","trackChanges","elementToElement","acceptSelectedSuggestions","high","PENDING_ACTION_SUGGESTION","isAtEnd","dataDowncast","formatInline:","delete","isAfter","parent","getCommentThread","isRemovable","previous","refresh","setAttribute","_findSuggestions","has","_commentsRepository","toViewElement","newRange","discardSuggestion","insertion:accept","stopListening","every","moveTargetPosition","deletion:accept","_rangeIsInLocalUserInsertion","model","markerNameToElements","enableCommand","Users","update:suggestion","elementStart","clone","_joinSuggestions","PendingActions","assign","rootName","for","hasSuggestion","getCustomProperty","external:","_trackFormatChanges","addMarkerName","splitPosition","ready","isOwn","originalSuggestionId","multi","keys","multipleBlocks","getAllAdjacentSuggestions","createPositionAt","data-suggestion","markDeletion","start","formatInline:chain","_suggestionFactory","_mergeNestedSuggestions","widget","authorName","getMultiRangeId","_suggestionState","always","fromRange","getSuggestionCallback","acceptAllSuggestions","activeMarkers","removeMarkers","getSuggestion","batch","getFirstMarker","_getAuthorFromId","forward","getWalker","value","addRange","writer","attributes","commandName","range","markers","addMarker:suggestion:formatBlock","tablePasteChainId","markInlineFormat","oldRange","containsItem","getChangedMarkers","getShiftedBy","item","consume","_createSuggestion","documentSelection","ck-suggestion-marker","unbind","containerElement","isTouching","addComment","_refreshSuggestionsChain","map","createRange","skipNestingCheck","subType","_checkSuggestionCorrectness","_getSuggestionData","buildSuggestion","addSuggestionData","addHighlight","end","schema","split","enableReadOnlyMode","isNextTo","$graveyard","markInsertion","_cutOutSuggestionMarker","discardSelectedSuggestions","formatInline","addSuggestion","removeAttribute","isAtStart","head","author","isArray","dataToMarker","collaboration.channelId","discard","includes","deletion:chain","isBlock","$marker","join","showSuggestionHighlights","$textProxy","trackChangesCommand","document","_onDiscard","_customCallbacks","formatBlock:accept","removeComment","filter","commentThread","containsRange","differ","suggestion:","addCommentThread","setTo","updateMarker","formatGroupId","track-changes-suggestion-data-mismatch","change:data","isBefore","ck-suggestion-marker--active","push","markMultiRangeBlockFormat","insert","isInContent","bindElementToMarker","_setSuggestionRange","getFirstRange","splice","size","dataReady","change:activeMarkers","addUser","_adapter","_breakSuggestionMarker","elementEnd","change","isObject","move","getRange","consumable","_editor","formatBlock","before","conversion","listenTo","suggestion-type","element","_splitMarkerName","locale","formatInline:join","_addSuggestionMarker","insertion:join","normal","insertion:","removeClass","getLastMatchingPosition","createSelection","applyOperation","_model","substr","createPositionAfter","type","formatBlock:discard","deletion:","fetchCommentThread","rethrowUnexpectedError","fire","toJSON","length","suggestionLoaded","get","reconvertMarker","_isDataLoaded","TrackChangesEditing","isSelectable","set","CommentsRepository","getRanges","addMarker","editor","_descriptionFactory","ck-suggestion-marker-","_handleNewSuggestionMarker","registerCustomCallback","formatBlock:join","upcast","markerName","_isForcedDefaultExecutionBlock","marker-count","mapper","next","formatBlock:","isDocumentOperation","plugins","getIntersection","createPositionBefore","deleteContent","trackChanges.trackFormatChanges","notReady","isIntersectingWithRange","adapter","authoredAt","_defaultCallbacks","backward","isLocal","track-changes-suggestion-not-found","deletion","markerToData","then","markMultiRangeDeletion","creator","isMultiRange","acceptSuggestion","never","createElement","enqueueChange","add","markerReady","removeMarker:suggestion:formatBlock","unbindElementFromMarkerName","sort","from","commands","_getExternalAuthor","getMarkers","values","discardAllSuggestions","accept","execute","howMany","insertion:discard","createdAt","insertion","nodeAfter","_suggestions","track-changes-command-not-found","getUser","markerToHighlight","suggestionChanged","some","_removeSuggestion","config","insertContent","_joinWithAdjacentSuggestions","change:_saved","removeMarker"];var Ka,qa;Ka=Va,qa=470,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get requires(){return[Xa("0x6a"),r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,ja,ur,pr,yr,Sr,Fr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,wi,ji,Wi,$i,tx,rx,dx,px,Cx,Sx,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Ia]}static get[Xa("0xce")](){return Xa("0x67")}constructor(t){function e(t){return t[Xa("0x13f")]((t=>String[Xa("0xd3")](t))).join("")}super(t),this[Xa("0x69")](Xa("0x11f"),[]),this.on(Xa("0x3c"),((e,n,o,s)=>{this[Xa("0x58")][Xa("0x41")]((()=>{for(const e of[...s,...o])this[Xa("0x58")][Xa("0x12d")][Xa("0xec")](e)&&t.editing[Xa("0x65")](e)}))})),this[Xa("0x6e")]=new ss(this[Xa("0x6d")][Xa("0xf7")][Xa("0x6")],this[Xa("0x6d")].locale),this[Xa("0x3e")]=null,this[Xa("0x115")]=new Ja(this[Xa("0x6d")]),this[Xa("0xa4")]=new Map,this[Xa("0xed")]=t[Xa("0x7b")][Xa("0x64")](Xa("0x6a")),this[Xa("0xd8")]=new Set,this[Xa("0x58")]=this.editor[Xa("0xf7")],this[Xa("0x11a")]=new WeakMap,this[Xa("0x75")]=!1,t[Xa("0xab")][Xa("0xd4")](Xa("0x7f"),Xa("0xd1")),this[Xa("0x106")]=t[Xa("0xab")][Xa("0x64")]("trackChanges.trackFormatChanges"),t[Xa("0xab")][Xa("0xd4")]("trackChanges.mergeNestedSuggestions",!0),this[Xa("0x116")]=t[Xa("0xab")][Xa("0x64")]("trackChanges.mergeNestedSuggestions"),this[Xa("0x1f")]=new u(t,this._enabledCommands),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,48,49,48])}[Xa("0xb0")](){const t=this[Xa("0x6d")];t.conversion[Xa("0x102")](Xa("0xcd"))[Xa("0xa7")]({model:Xa("0xd2"),view:t=>{const{id:e,type:n}=this[Xa("0x4d")](t[Xa("0x74")]),o=[Xa("0x139"),Xa("0x6f")+n];let s=3e3;return this[Xa("0x11f")][Xa("0x18")](t[Xa("0x74")])&&(o[Xa("0x32")]("ck-suggestion-marker--active"),s=3010),Xa("0x88")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x49")][Xa("0x102")](Xa("0xe1"))[Xa("0x92")]((e=>{e.on(Xa("0xc6"),((e,n,o)=>{if(!o[Xa("0xc0")][Xa("0x1d")])return;const s=n[Xa("0x135")];if(!s)return;const r=o.mapper[Xa("0xee")](s);t.model[Xa("0x6")][Xa("0x42")](s)&&r&&!r[Xa("0x104")](Xa("0x117"))&&r.is(Xa("0x13b"))&&(0,x.toWidget)(r,o[Xa("0x129")])}),{priority:Xa("0xde")})})),t.conversion[Xa("0x102")](Xa("0xe1"))[Xa("0xa7")]({model:"suggestion",view:(t,e)=>{if(!e[Xa("0xc0")][Xa("0x1d")])return null;const{type:n}=this[Xa("0x4d")](t[Xa("0x74")]);return{classes:[Xa("0x139"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Xa("0x135")].is("selection"))return void s[Xa("0x45")][Xa("0x136")](o[Xa("0x135")],n[Xa("0xbf")]);const r=s[Xa("0x77")][Xa("0xee")](o.item);if(!o[Xa("0x135")].is(Xa("0x4c"))||!t[Xa("0xf7")][Xa("0x6")][Xa("0x1a")](o[Xa("0x135")])||r.getCustomProperty(Xa("0x4")))return;const{id:i}=this[Xa("0x4d")](o[Xa("0x74")]);s[Xa("0x129")][Xa("0xc1")]([Xa("0x139"),Xa("0xc5")],r),s[Xa("0x129")][Xa("0xea")](Xa("0x111"),i,r),s[Xa("0x77")][Xa("0x36")](r,o.markerName),e&&(this.activeMarkers[Xa("0x18")](o[Xa("0x74")])?s[Xa("0x129")].addClass(Xa("0x31"),r):s.writer[Xa("0x54")](Xa("0x31"),r));for(const e of t.model.createRangeIn(o.item).getItems())s[Xa("0x45")][Xa("0x136")](e,n[Xa("0xbf")]);s.consumable[Xa("0x136")](o[Xa("0x135")],n[Xa("0xbf")])};t[Xa("0x49")][Xa("0x102")](Xa("0xe1")).add((t=>{t.on(Xa("0x12e"),((t,e,o)=>{o[Xa("0xc0")][Xa("0x1d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[Xa("0x49")][Xa("0x102")]("dataDowncast")[Xa("0x89")]({model:Xa("0xd2"),view:(t,e)=>e[Xa("0xc0")][Xa("0x1d")]?null:{group:Xa("0xd2"),name:t[Xa("0x59")](11)}}),t.conversion[Xa("0x102")](Xa("0x73"))[Xa("0xdc")]({view:{name:Xa("0xd2"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x29")+t[Xa("0xb5")](Xa("0x4b"))+":"+t.getAttribute("id");return t[Xa("0xb5")](Xa("0x76"))&&(n+=":"+t[Xa("0xb5")](Xa("0x76"))),e[Xa("0x90")](Xa("0x1b"),{"data-name":n})}}),t[Xa("0x49")][Xa("0x102")](Xa("0x73"))[Xa("0x15")]({view:Xa("0xd2")}),t[Xa("0x49")][Xa("0x102")](Xa("0xcd"))[Xa("0x92")]((t=>{t.on(Xa("0x12e"),n(),{priority:Xa("0xde")})})),t[Xa("0x49")].for("editingDowncast")[Xa("0x92")]((t=>{t.on(Xa("0x94"),((t,e,n)=>{const o=n[Xa("0x77")][Xa("0xf8")](e[Xa("0x74")]);if(o)for(const t of o)t[Xa("0x104")](Xa("0x4"))||(n[Xa("0x129")][Xa("0x54")]([Xa("0x139"),Xa("0xc5"),Xa("0x31")],t),n[Xa("0x129")][Xa("0x10")](Xa("0x111"),t),n[Xa("0x77")][Xa("0x95")](t,e[Xa("0x74")]))}),{priority:Xa("0xde")})})),t[Xa("0xf7")][Xa("0x20")][Xa("0xba")]((e=>{let n=!1;const o=Array[Xa("0x97")](t[Xa("0xf7")][Xa("0x20")][Xa("0x28")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x4d")](x);if(Xa("0xd2")!==o)continue;const d=this[Xa("0xa4")][Xa("0x64")](l);if(null!=a.newRange)if("formatInline"==c&&(n=n||Ya(a[Xa("0xef")],x,e,t.model[Xa("0x6")])),a.newRange[Xa("0xbe")]||"$graveyard"==a[Xa("0xef")].root[Xa("0x101")]||Xa("0x47")==c&&!ec(a.newRange)||Xa("0x88")==c&&(Za(i=a[Xa("0xef")])||(r=i).start[Xa("0xe5")]==r.end[Xa("0xd0")]&&r[Xa("0x113")][Xa("0xe0")]))e[Xa("0xaf")](x),n=!0;else{if(!d||!d.isInContent)continue;s[Xa("0x92")](d)}}var r,i;return s[Xa("0x3a")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[Xa("0xf7")][Xa("0x20")][Xa("0xba")]((e=>{let n=!1;for(const o of t[Xa("0xf7")][Xa("0x20")][Xa("0x28")].getChanges()){if("insert"!=o.type)continue;const s=o[Xa("0xb8")][Xa("0x134")](o.length);if(s[Xa("0xe0")])for(const r of this[Xa("0xa4")][Xa("0x9b")]()){if(r[Xa("0x8d")]||!r[Xa("0x35")])continue;if("formatBlock"!=r[Xa("0x5b")])continue;const i=r[Xa("0x38")]();if(i[Xa("0x113")].parent!=i[Xa("0x5")][Xa("0xe5")]&&i[Xa("0x5")].isEqual(o.position)){const o=t.model[Xa("0x140")](i[Xa("0x113")],s);e[Xa("0x2c")](r[Xa("0x123")](),{range:o}),n=!0}}}return n})),t.model[Xa("0x12d")].on(Xa("0xfb"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x4d")](e[Xa("0xbf")]),n=this[Xa("0xa4")][Xa("0x64")](t);n&&n[Xa("0x107")](e[Xa("0xbf")])}})),t[Xa("0xf7")][Xa("0x20")].on(Xa("0x2f"),(()=>{const e=Array[Xa("0x97")](t.model.document[Xa("0x28")][Xa("0x133")]()).filter((t=>Xa("0xd2")===this[Xa("0x4d")](t[Xa("0xbf")]).group));if(0===e[Xa("0x62")])return;e[Xa("0x96")](((t,e)=>{const n=t[Xa("0xca")][Xa("0x131")],o=e[Xa("0xca")][Xa("0x131")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[Xa("0x30")](o[Xa("0x113")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x4d")](t);if(null===s[Xa("0x131")]){const e=this[Xa("0x70")](t);o[Xa("0x92")](e)}else{const t=this[Xa("0xa4")].get(e);null!==s.newRange||t[Xa("0x35")]?(n[Xa("0x92")](t[Xa("0x12")]),o[Xa("0x92")](t)):this[Xa("0xaa")](t)}}o[Xa("0x3a")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this.fire("suggestionChanged",t)})),t[Xa("0xf7")].on(Xa("0x57"),((e,n)=>{const o=n[0];if(!this[Xa("0xa4")].size)return;if(!o[Xa("0x7a")])return;if(o[Xa("0x122")].isUndo||!o.batch[Xa("0x86")])return;let s,r;switch(o[Xa("0x5b")]){case Xa("0x34"):s=t[Xa("0xf7")][Xa("0x110")](o[Xa("0xb8")]),r=s[Xa("0x134")](o[Xa("0x9f")]);break;case Xa("0x7"):s=t[Xa("0xf7")][Xa("0x110")](o[Xa("0x108")]),r=t.model[Xa("0x110")](o[Xa("0xf4")]);break;case Xa("0x43"):s=t[Xa("0xf7")][Xa("0x110")](o.targetPosition),r=s.getShiftedBy(o[Xa("0x9f")]);break;default:return}const i=t.model[Xa("0x140")](s,r);t[Xa("0xf7")][Xa("0x41")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0xeb")](i)){if(t[Xa("0x8d")])continue;if(Xa("0xe")==t[Xa("0x5b")])continue;const n=t[Xa("0xca")]&&t[Xa("0xca")].multipleBlocks;("formatBlock"!=t[Xa("0x5b")]||Xa("0x7")==o[Xa("0x5b")]&&!n)&&(e[Xa("0xbb")]||Xa("0xa2")==t[Xa("0x5b")]&&e.isOwn||t.getFirstRange()[Xa("0x27")](i)&&this[Xa("0x3f")](t,s,r))}}))}),{priority:"lowest"}),t[Xa("0xf7")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0xcc")])return;if(this[Xa("0x75")])return;if(!this[Xa("0x1f")].value)return;if(o[Xa("0xbe")])return;const r=t[Xa("0xf7")][Xa("0x6")],{start:i,end:x}=o[Xa("0x38")](),a=i[Xa("0xa3")]&&r[Xa("0xc2")](i[Xa("0xa3")])?null:r[Xa("0xb6")](i,Xa("0x125")),c=x[Xa("0xd0")]&&r[Xa("0xc2")](x[Xa("0xd0")])?null:r[Xa("0xb6")](x,Xa("0x85")),l=t[Xa("0xf7")][Xa("0x140")](a?a[Xa("0x113")]:i,c?c[Xa("0x5")]:x);t[Xa("0xf7")][Xa("0x41")]((e=>{this[Xa("0x112")](l);const n=t[Xa("0xf7")][Xa("0x6")].getNearestSelectionRange(l[Xa("0x113")]);o.is(Xa("0x138"))?e.setSelection(n):o[Xa("0x2b")](n)})),e[Xa("0xc8")]()}),{priority:e.priorities[Xa("0x52")]+10}),t[Xa("0xf7")].on(Xa("0xac"),((e,n)=>{const o=n[n[Xa("0x62")]-1];o&&o.forceDefaultExecution||this[Xa("0x75")]||this[Xa("0x1f")][Xa("0x127")]&&(t[Xa("0xf7")][Xa("0x41")]((()=>{let o=t[Xa("0xf7")][Xa("0xac")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0xb3")]=o[Xa("0xfd")]();const s=o.end[Xa("0xd0")],r=t[Xa("0xf7")].schema;s&&r[Xa("0x1a")](s)&&!r[Xa("0x42")](s)&&(o=t[Xa("0xf7")].createRange(o[Xa("0x113")],t[Xa("0xf7")].createPositionAt(s,Xa("0x5")))),this[Xa("0xb")](o)})),e[Xa("0xc8")]())}),{priority:Xa("0xde")}),this[Xa("0x6d")][Xa("0x98")][Xa("0x92")](Xa("0xdb"),this.trackChangesCommand),this[Xa("0xf9")](Xa("0xdb"));const o=new p(t,this[Xa("0xa4")]);t[Xa("0x98")].add(Xa("0x8e"),o),this[Xa("0xf9")]("acceptSuggestion");const s=new C(t,this[Xa("0xa4")]);t[Xa("0x98")][Xa("0x92")](Xa("0xf0"),s),this[Xa("0xf9")](Xa("0xf0")),t[Xa("0x98")][Xa("0x92")]("acceptAllSuggestions",new F(t,o,this._suggestions)),this[Xa("0xf9")](Xa("0x11e")),t[Xa("0x98")][Xa("0x92")](Xa("0x9c"),new F(t,s,this[Xa("0xa4")])),this[Xa("0xf9")](Xa("0x9c")),t[Xa("0x98")].add(Xa("0xdd"),new U(t,o,this[Xa("0xa4")])),this[Xa("0xf9")](Xa("0xdd")),t.commands[Xa("0x92")](Xa("0xd"),new U(t,s,this._suggestions)),this[Xa("0xf9")]("discardSelectedSuggestions");const r=t[Xa("0x7b")][Xa("0x64")]("CommentsRepository");this[Xa("0x4a")](r,Xa("0x13d"),((t,{threadId:e})=>{const n=this[Xa("0xa4")][Xa("0x64")](e);n&&n[Xa("0x26")]&&1===n[Xa("0x26")][Xa("0x62")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this.listenTo(r,Xa("0x24"),((t,{threadId:e})=>{const n=this._suggestions[Xa("0x64")](e);n&&n[Xa("0x26")]&&!n[Xa("0x26")].length&&this[Xa("0xb1")](e,{hasComments:!1})}),{priority:Xa("0xd9")})}set[Xa("0x82")](t){if(this._adapter)throw new e.CKEditorError(Xa("0xb7"),this);this[Xa("0x3e")]=t}get adapter(){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0xa4")].values())t&&!e[Xa("0x35")]||n[Xa("0x32")](e);return e?n[Xa("0x13f")]((t=>t[Xa("0x61")]())):n}getSuggestion(t){const n=this[Xa("0xa4")].get(t);if(!n)throw new e.CKEditorError(Xa("0x87"),this);return n}[Xa("0x103")](t){return this[Xa("0xa4")][Xa("0xec")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xa("0x5b")][Xa("0x7")](":"),i=this[Xa("0xa4")][Xa("0x64")](n)||this[Xa("0x137")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[Xa("0x0")](i,s,r||null,e),i[Xa("0xa1")]=t[Xa("0xa1")],i[Xa("0x66")]=!0,o&&o[Xa("0xd5")]){const t=o[Xa("0xd5")],e=this[Xa("0x99")](t[Xa("0x118")]);i.authoredAt=t[Xa("0xa1")],i[Xa("0x13")]=e,i.isExternal=!0}else i[Xa("0x83")]=t.createdAt;switch(t[Xa("0xca")]&&(i.data=t.data),t[Xa("0x12a")]&&(i.attributes=t[Xa("0x12a")]),this[Xa("0x3e")]&&this[Xa("0x3e")][Xa("0xf")]||(i._saved=!0),this[Xa("0x11a")][Xa("0x64")](i)){case Xa("0x80"):this[Xa("0x11a")].set(i,Xa("0x3b"));break;case Xa("0x93"):i.isInContent?(this[Xa("0x13e")](new Set([i])),this[Xa("0xad")](new Set([i])),this[Xa("0x11a")][Xa("0x69")](i,Xa("0x109")),this[Xa("0x60")](Xa("0x63"),i)):this[Xa("0x11a")][Xa("0x69")](i,"removed")}return i}acceptSuggestion(t){this.forceDefaultExecution((()=>{this.editor[Xa("0xf7")][Xa("0x41")]((()=>{for(const e of t[Xa("0x10f")]())e.accept()}))}))}discardSuggestion(t){this[Xa("0xcc")]((()=>{this[Xa("0x6d")][Xa("0xf7")][Xa("0x41")]((()=>{for(const e of t[Xa("0x10f")]())e[Xa("0x17")]()}))}))}enableCommand(t,n){const o=this[Xa("0x6d")][Xa("0x98")].get(t);if(!o)throw new e.CKEditorError(Xa("0xa5"),this,{commandName:t});this._enabledCommands[Xa("0x92")](o),n&&o.on(Xa("0x9e"),((t,e)=>{this[Xa("0x1f")][Xa("0x127")]&&(this[Xa("0x75")]||e.length>0&&e[e[Xa("0x62")]-1]&&e[e[Xa("0x62")]-1][Xa("0xcc")]||(n(((...t)=>o[Xa("0x9e")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0xc8")]()))}),{priority:Xa("0xde")})}forceDefaultExecution(t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Xa("0x75")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0x75")]=!1),o&&e.CKEditorError[Xa("0x5f")](o,this),n}[Xa("0xb")](t,n=null,o={}){if(t[Xa("0xbe")])return null;const s=this.editor[Xa("0x7b")].get(Xa("0xfa")).me;for(const{suggestion:e,meta:s}of this[Xa("0xeb")](t,Xa("0xa2")))if(s[Xa("0x10a")]){if(!s[Xa("0x9")]){if(s.containsRangeInObject){if(!this[Xa("0x116")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this._breakSuggestionMarker(e,t[Xa("0x113")],t[Xa("0x5")]);break}if(n==e.subType&&rc(e,o)){const n=e.getFirstRange();return n[Xa("0x113")][Xa("0xd7")](t[Xa("0x5")])?this._setSuggestionRange(e,this[Xa("0x58")][Xa("0x140")](t[Xa("0x113")],n.end)):this._setSuggestionRange(e,this[Xa("0x58")].createRange(n.start,t[Xa("0x5")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0x53")+n:Xa("0xa2"),a=this[Xa("0xb9")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x50")](x,r,i,t),a}markMultiRangeInsertion(t,n=Xa("0x10c"),o={}){const s=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me,r=this[Xa("0x115")][Xa("0x11d")](Xa("0xa2"),n,Xa("0x1c"));for(const e of this[Xa("0xb2")]())if(e.author.id==s.id&&"insertion"==e.type&&e[Xa("0x142")]==n&&rc(e,o)&&(r(e.getRanges(),t)||r(t,e[Xa("0x6b")]()))){for(const n of t)e[Xa("0x128")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0xeb")](t,"insertion")){if(!n[Xa("0x10a")])continue;if(!this._mergeNestedSuggestions&&n[Xa("0xbb")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x27")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[Xa("0xb9")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0x50")](a,i,x,e,Zo[Xa("0x119")]());return c}[Xa("0x130")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xbe")])return null;if(Xa("0x8f")===this[Xa("0x106")]){const e=this[Xa("0x115")][Xa("0x11d")](Xa("0xe"),o,"accept");return this[Xa("0xcc")]((()=>e([t],n,s))),null}const r=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me,i=[];if("always"!==this[Xa("0x106")])for(const{suggestion:e,meta:n}of this[Xa("0xeb")](t,Xa("0xa2")))n[Xa("0x10a")]&&!n[Xa("0xb4")]&&i[Xa("0x32")](...e[Xa("0x6b")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0x32")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x62")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[Xa("0x62")]}}return n}(t,i);x[Xa("0x62")]&&this[Xa("0x58")][Xa("0x41")]((()=>{for(const t of x){const e=this[Xa("0x115")][Xa("0x11d")](Xa("0xe"),o,Xa("0x9d"));this[Xa("0xcc")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[Xa("0x5")];for(const{suggestion:e,meta:n}of this[Xa("0xeb")](t,"formatInline")){if(!n[Xa("0x10a")])continue;if(e[Xa("0x142")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x38")]();if(r[Xa("0x27")](t,!0))return null;x=x.isBefore(r.start)?x:r[Xa("0x113")],a=a[Xa("0xe4")](r[Xa("0x5")])?a:r[Xa("0x5")],i?r[Xa("0x113")][Xa("0x30")](i.getFirstRange()[Xa("0x113")])?(i.removeMarkers(),i=e):e[Xa("0x120")]():i=e}const c=this._model[Xa("0x140")](x,a);if(i)this[Xa("0x37")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0xb9")]({id:t,type:Xa("0xe2")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0x50")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n.formatGroupId||(n[Xa("0x2d")]=n.commandName),n[Xa("0x10e")]=t.is(Xa("0x12c")),s=s||tc(n);const i=o.map((t=>nc(t,this[Xa("0x58")]))),x=t.is(Xa("0x12c"))?t:nc(t,this[Xa("0x58")]);if("never"===this[Xa("0x106")]){const t=this[Xa("0x115")][Xa("0x11d")](Xa("0x47"),s,Xa("0x9d"));return this[Xa("0xcc")]((()=>t([x],n,r))),null}i[Xa("0x32")](x);let a=!0;for(const t of i)if(!this[Xa("0xf6")](t)){a=!1;break}if(a&&Xa("0x11b")!==this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(Xa("0x47"),s,Xa("0x9d"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[Xa("0x113")],d=x[Xa("0x5")];for(const{suggestion:t,meta:e}of this[Xa("0xeb")](x,Xa("0x47"))){if(!e[Xa("0x10a")])continue;if(e.isNextTo||e[Xa("0xbb")]||e[Xa("0xb4")])continue;if(t[Xa("0xca")][Xa("0x2d")]!=n[Xa("0x2d")])continue;if(!rc(t,r))continue;const o=t[Xa("0x38")]();if(t[Xa("0x142")]==s){if(o[Xa("0x27")](x,!0))return null;l=l[Xa("0x30")](o.start)?l:o.start,d=d.isAfter(o[Xa("0x5")])?d:o[Xa("0x5")],c?o[Xa("0x113")][Xa("0x30")](c[Xa("0x38")]()[Xa("0x113")])?(c[Xa("0x120")](),c=t):t.removeMarkers():c=t}else{const e=x[Xa("0x7c")](o);this._cutOutSuggestionMarker(t,e)}}const u=this.editor.plugins[Xa("0x64")](Xa("0xfa")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x37")](c,this._model.createRange(l,d)),c;{const t=this[Xa("0xb9")]({id:g,type:Xa("0x79")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Xa("0x50")](Xa("0x79")+s,g,m,this[Xa("0x58")][Xa("0x140")](l,d)),t}}[Xa("0x33")](t,n,o=[],s=null,r={}){n[Xa("0x2d")]||(n[Xa("0x2d")]=n[Xa("0x12b")]);const i=t[0];n.multipleBlocks=i.is("range"),s=s||tc(n);const x=o[Xa("0x13f")]((t=>nc(t,this._model))),a=i.is(Xa("0x12c"))?t:t[Xa("0x13f")]((t=>nc(t,this[Xa("0x58")])));if(Xa("0x8f")===this._trackFormatChanges){const t=this[Xa("0x115")].getSuggestionCallback(Xa("0x47"),s,Xa("0x9d"));return this[Xa("0xcc")]((()=>t(a,n,r))),null}x[Xa("0x32")](...a);let c=!0;for(const t of x)if(!this[Xa("0xf6")](t)){c=!1;break}if(c&&Xa("0x11b")!==this._trackFormatChanges){const t=this[Xa("0x115")].getSuggestionCallback("formatBlock",s,Xa("0x9d"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me;for(const t of this[Xa("0xb2")]()){if(t[Xa("0x13")].id!=l.id)continue;if("formatBlock"!=t[Xa("0x5b")]||t[Xa("0xca")][Xa("0x2d")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const e=t[Xa("0x142")]==s;for(let n=0;n<a[Xa("0x62")];n++){const o=a[n];for(const s of t[Xa("0x9a")]()){const r=s[Xa("0x44")]();if(o[Xa("0xd7")](r)){e?(a[Xa("0x39")](n,1),n--):t[Xa("0xaf")](s[Xa("0xbf")]);break}}}}if(0==a[Xa("0x62")])return null;const d=this._suggestionFactory[Xa("0x11d")](Xa("0x47"),s,"join");for(const t of this.getSuggestions())if(t[Xa("0x13")].id==l.id&&Xa("0x47")==t[Xa("0x5b")]&&t[Xa("0xca")].formatGroupId==n[Xa("0x2d")]&&t.subType==s&&rc(t,r)&&(d(t[Xa("0x6b")](),a)||d(a,t.getRanges()))){for(const e of a)t[Xa("0x128")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x79")+s,f=this[Xa("0xb9")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo[Xa("0x119")]());return f}[Xa("0x112")](t,n=null,o={}){if(t[Xa("0xbe")])return null;const s=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me,r=new i.LiveRange(t[Xa("0x113")],t[Xa("0x5")]);for(const{suggestion:t,meta:e}of this[Xa("0xeb")](r,"insertion"))if(e[Xa("0x10a")]&&!e[Xa("0x9")])if(t.isMultiRange){const e=t[Xa("0x6b")]().filter((t=>Xa("0xa")!=t[Xa("0xc3")][Xa("0x101")]));if(e[Xa("0xf3")]((t=>r.containsRange(t,!0)))&&t[Xa("0x17")](),e[Xa("0xa9")]((t=>t[Xa("0x27")](r,!0)))){const t=this._suggestionFactory.getSuggestionCallback(Xa("0x88"),n,Xa("0x9d"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[Xa("0x7c")](t[Xa("0x38")]());null!==e&&t[Xa("0x21")]([e],null,o)}if(r[Xa("0xc4")](),r.isCollapsed||Xa("0xa")==r[Xa("0xc3")][Xa("0x101")])return null;let x=null,a=r[Xa("0x113")],c=r.end;const l=this[Xa("0xeb")](r,Xa("0x88"));for(const{suggestion:t,meta:e}of l){const n=this._model.createRange(a,c);if(e[Xa("0x10a")]&&(this[Xa("0x116")]||!e[Xa("0xbb")]&&!e[Xa("0xb4")]))if(t.isMultiRange){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0x6b")]()){if(o[Xa("0x27")](n,!0))return t;n[Xa("0x27")](o)||(e=!1)}e&&t[Xa("0x17")]()}else{const e=t[Xa("0x38")]();if(e[Xa("0x27")](n,!0))return t;if(!rc(t,o)){n.containsRange(e)?t[Xa("0x120")]():e.containsPosition(a)?a=e.end:e.containsPosition(c)&&(c=e[Xa("0x113")]);continue}a=a.isBefore(e[Xa("0x113")])?a:e[Xa("0x113")],c=c[Xa("0xe4")](e.end)?c:e[Xa("0x5")],o=Object.assign({},t[Xa("0x12a")]),x?e[Xa("0x113")][Xa("0x30")](x[Xa("0x38")]()[Xa("0x113")])?(x[Xa("0x120")](),x=t):t[Xa("0x120")]():x=t}}if(x)return this[Xa("0x37")](x,this[Xa("0x58")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this._model.createRange(a,c),i=s.id,x=n?"deletion:"+n:"deletion",l=this[Xa("0xb9")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x50")](x,t,i,r),l}}[Xa("0x8b")](t,n=Xa("0x10c"),o={}){const s=this[Xa("0x6d")][Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me,r=t[Xa("0x13f")]((t=>new i.LiveRange(t[Xa("0x113")],t[Xa("0x5")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0xeb")](r,"insertion"))e[Xa("0x10a")]&&!e.isNextTo&&x[Xa("0x92")](t);for(const e of x)if(e.isMultiRange){const s=e[Xa("0x6b")]();if((!e[Xa("0x12a")]||!e.attributes[Xa("0x141")])&&s[Xa("0xf3")]((t=>r[Xa("0xa9")]((e=>e[Xa("0x27")](t,!0)))))&&e.discard(),r[Xa("0xf3")]((t=>s[Xa("0xa9")]((e=>e[Xa("0x27")](t,!0)))))){const e=this[Xa("0x115")][Xa("0x11d")](Xa("0x88"),n,"accept");return this[Xa("0xcc")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x38")]();if(r.some((e=>e[Xa("0x27")](t,!0)))&&e[Xa("0x17")](),r[Xa("0xf3")]((e=>t[Xa("0x27")](e,!0)))){const t=this[Xa("0x115")][Xa("0x11d")]("deletion",n,Xa("0x9d"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[Xa("0x115")][Xa("0x11d")](Xa("0x88"),n,"join");let c=null;for(const t of this.getSuggestions())if(t.author.id==s.id&&t[Xa("0x35")]&&"deletion"==t[Xa("0x5b")]&&t[Xa("0x142")]==n&&rc(t,o)&&(a(t.getRanges(),r)||a(r,t.getRanges())))if(c){if(t[Xa("0x26")]&&t[Xa("0x26")][Xa("0x62")])continue;for(const e of t.getRanges())c[Xa("0x81")](e)||c[Xa("0x128")](e);t[Xa("0x120")]()}else{c=t;for(const e of r)t[Xa("0x81")](e)||t[Xa("0x128")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0x88")))e[Xa("0x10a")]&&(this[Xa("0x116")]||!e[Xa("0xbb")]&&!e[Xa("0xb4")])&&rc(t,o)&&x.add(t);for(const t of x){const e=t[Xa("0x6b")]();if((!o||!o[Xa("0x141")])&&r[Xa("0xf3")]((t=>e.some((e=>e[Xa("0x27")](t,!0))))))return t;(!t[Xa("0x12a")]||!t[Xa("0x12a")][Xa("0x141")])&&e[Xa("0xf3")]((t=>r.some((e=>e[Xa("0x27")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=Xa("0x5d")+n,g=this[Xa("0xb9")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t[Xa("0xbe")]||Xa("0xa")==t[Xa("0xc3")][Xa("0x101")]||this[Xa("0x50")](u,l,d,t,Zo.getMultiRangeId());return g}[Xa("0x37")](t,e){const n=t[Xa("0x123")]();this._model[Xa("0x41")]((t=>{t[Xa("0x2c")](n,{range:e})}))}[Xa("0xcb")](t){const e=t.id,n=this[Xa("0x6d")][Xa("0xab")][Xa("0x64")](Xa("0x16"));this._commentsRepository.hasCommentThread(e)||this._commentsRepository[Xa("0x2a")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0xed")][Xa("0xe6")](e);o[Xa("0x13a")](Xa("0xe7")),o[Xa("0xe7")]=!1,t.commentThread=o}_checkSuggestionCorrectness(t,n,o,s){if(t.type!=n||t[Xa("0x142")]!=o||t.creator.id!=s)throw this[Xa("0x6d")][Xa("0x8")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(Xa("0x2e"),this)}[Xa("0xc")](t,n){const o=t.getFirstRange();if(n[Xa("0xd7")](o))t[Xa("0x120")]();else if(o[Xa("0x27")](n)){const s=this[Xa("0x58")][Xa("0x110")](n[Xa("0x113")].nodeBefore,"end");this[Xa("0x37")](t,this[Xa("0x58")][Xa("0x140")](o[Xa("0x113")],s));const r=(0,e.uid)(),i=t[Xa("0x8c")].id,x=t.type+":"+t.subType;this[Xa("0xb9")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Xa("0xca")],attributes:t[Xa("0x12a")]});const a=this[Xa("0x58")].createPositionAt(n.end[Xa("0xe5")],"after"),c=this[Xa("0x58")][Xa("0x140")](a,o[Xa("0x5")]);this[Xa("0x50")](x,r,i,c)}else if(o.containsPosition(n[Xa("0x113")])){const e=this[Xa("0x58")][Xa("0x110")](n[Xa("0x113")][Xa("0xd0")],"end");this[Xa("0x37")](t,this[Xa("0x58")][Xa("0x140")](o[Xa("0x113")],e))}else{const e=this[Xa("0x58")][Xa("0x110")](n[Xa("0x5")][Xa("0xe5")],"after");this[Xa("0x37")](t,this[Xa("0x58")][Xa("0x140")](e,o[Xa("0x5")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Xa("0xeb")](t,Xa("0xa2"))){if(!n[Xa("0x10a")])continue;const o=e[Xa("0x6b")]();for(const e of o)if(!t[Xa("0xbc")](e)[Xa("0x62")])return!0}return!1}[Xa("0x124")](t){const n=this[Xa("0x6d")].plugins[Xa("0x64")](Xa("0xfa"))[Xa("0xa6")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this.editor[Xa("0x7b")][Xa("0x64")]("Users"),n=(0,r.hashObject)(Xa("0x105")+t);return e.getUser(n)||e[Xa("0x3d")]({id:n,name:t})}[Xa("0x137")](t,e,n,o,s){const r=this[Xa("0x124")](o),i=this[Xa("0x115")][Xa("0x2")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[Xa("0x4a")](i,"accept",(()=>{this[Xa("0xb1")](n,{state:"accepted"})}),{priority:Xa("0xde")}),this[Xa("0x4a")](i,"discard",(()=>{this[Xa("0xb1")](n,{state:"rejected"})}),{priority:Xa("0xde")}),this[Xa("0xa4")][Xa("0x69")](n,i),this[Xa("0x11a")][Xa("0x69")](i,Xa("0x80")),i}[Xa("0x4d")](t){const e=t[Xa("0x7")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[Xa("0x62")]?e[5]:null}}[Xa("0x3f")](t,n,o){const s=t.getFirstRange(),r=s[Xa("0x113")],i=s.end;this[Xa("0x37")](t,this[Xa("0x58")][Xa("0x140")](r,n));const x=(0,e.uid)(),a=t[Xa("0x8c")].id,c=t[Xa("0x5b")]+(t[Xa("0x142")]?":"+t.subType:"");this[Xa("0xb9")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x12a")],data:t[Xa("0xca")]}),Xa("0x47")==t.type&&(o=this[Xa("0x58")][Xa("0x7d")](o[Xa("0xe5")])),this[Xa("0x50")](c,x,a,this._model[Xa("0x140")](o,i))}[Xa("0xeb")](t,e=null){const n=[],o=this.editor[Xa("0x7b")][Xa("0x64")](Xa("0xfa")).me;Array[Xa("0x14")](t)||(t=[t]);for(const s of this[Xa("0xb2")]()){if(!s[Xa("0x35")])continue;if(e&&s[Xa("0x5b")]!=e)continue;let r=!1;for(const e of s[Xa("0x6b")]()){for(const i of t){const t=i[Xa("0x113")][Xa("0xd7")](e.end)||i.end[Xa("0xd7")](e.start);if(t||i.getIntersection(e)){const x=i.containsRange(e)&&Qa(this[Xa("0x58")].schema,e[Xa("0x113")],i),a=e[Xa("0x27")](i)&&Qa(this[Xa("0x58")][Xa("0x6")],i[Xa("0x113")],e);n.push({suggestion:s,meta:{isOwn:o==s[Xa("0x13")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Xa("0x50")](t,e,n,o,s){this[Xa("0x58")][Xa("0x41")]((r=>{let i=Xa("0x29")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x6c")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0xaa")](t){const e=t.previous,n=t.next;t[Xa("0xe8")]=null,null!=e&&(e[Xa("0x78")]=null),t[Xa("0x78")]=null,null!=n&&(n[Xa("0xe8")]=null),Xa("0x109")==this[Xa("0x11a")][Xa("0x64")](t)&&(this[Xa("0x11a")][Xa("0x69")](t,"removed"),this[Xa("0x60")]("suggestionUnloaded",t,e,n))}[Xa("0xb9")](t){const n=t.id,o=this[Xa("0x3")](t);if(this[Xa("0x3e")]&&this[Xa("0x3e")][Xa("0xf")]){const s=this.editor[Xa("0x7b")].get(Xa("0xff")),r=o[Xa("0xc7")],i=o[Xa("0x142")]?o.type+":"+o.subType:o[Xa("0x5b")],x=this[Xa("0x6d")][Xa("0x4e")],a=s[Xa("0x92")](Yo(x,Xa("0xdf"))),c={id:n,type:i,hasComments:r,data:t[Xa("0xca")]||null,originalSuggestionId:t[Xa("0x10b")]||null,attributes:o[Xa("0x12a")]};this._adapter.addSuggestion(c)[Xa("0x8a")]((t=>{o[Xa("0xda")]=!0,s.remove(a),t&&t.createdAt&&(this._suggestions[Xa("0x64")](n)[Xa("0xa1")]=t[Xa("0xa1")])})).catch((t=>{throw(0,e.logWarning)(Xa("0xd6")),this[Xa("0x6d")][Xa("0xf7")][Xa("0x91")]({isUndoable:!1},(()=>{o[Xa("0x17")]()})),o[Xa("0xf2")](),this[Xa("0xa4")][Xa("0xe3")](o.id),this[Xa("0x11a")][Xa("0xe3")](o),t}))}return o}[Xa("0xb1")](t,e){const n=this[Xa("0x6d")][Xa("0x7b")].get("PendingActions"),o=this[Xa("0x121")](t);if(this[Xa("0x3e")]&&this[Xa("0x3e")].updateSuggestion)if(o[Xa("0xda")]){const o=n[Xa("0x92")](Yo(this[Xa("0x6d")][Xa("0x4e")],Xa("0xdf")));this._adapter.updateSuggestion(t,e)[Xa("0x8a")]((()=>{n.remove(o)}))}else o.on(Xa("0xae"),(()=>{this[Xa("0xb1")](t,e)}))}[Xa("0x1")](t){if(!this[Xa("0x3e")]||!this[Xa("0x3e")][Xa("0x121")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[Xa("0x3e")][Xa("0x121")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[Xa("0xa4")][Xa("0x64")](e)||this[Xa("0x137")](n,o,e,s,{});switch(this[Xa("0x0")](r,n,o,s),this[Xa("0x11a")][Xa("0x64")](r)){case Xa("0x80"):this._getSuggestionData(e)[Xa("0x8a")]((t=>{let n=Promise.resolve();t[Xa("0xc7")]&&(n=this._commentsRepository[Xa("0x5e")]({channelId:this[Xa("0x6d")][Xa("0xab")][Xa("0x64")](Xa("0x16")),threadId:e})),n[Xa("0x8a")]((()=>{this.addSuggestionData(t)[Xa("0xda")]=!0}))})),this[Xa("0x11a")].set(r,Xa("0x93"));break;case"removed":this[Xa("0xb1")](e,{state:"open"});case Xa("0x3b"):this[Xa("0x11a")][Xa("0x69")](r,Xa("0x109")),this[Xa("0x60")](Xa("0x63"),r);break;case Xa("0x109"):this[Xa("0x60")](Xa("0xa8"),r)}return r[Xa("0x107")](t),r}[Xa("0x13e")](t){const e=Array[Xa("0x97")](t).filter((t=>!t[Xa("0x8d")])),n=this[Xa("0xb2")]({skipNotAttached:!0})[Xa("0x25")]((t=>!t[Xa("0x8d")])),o=n[Xa("0x25")]((e=>!t[Xa("0xec")](e))),s=new Map(n[Xa("0x13f")]((t=>[t,this._suggestionFactory[Xa("0x11d")](t[Xa("0x5b")],t.subType,"chain")]))),r=new Map(n[Xa("0x13f")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0x62")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0x62")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Xa("0xec")](n)&&n.previous&&(n[Xa("0xe8")][Xa("0x78")]===n&&(n[Xa("0xe8")][Xa("0x78")]=null),n[Xa("0xe8")]=null),!i[Xa("0xec")](n)&&n[Xa("0x78")]&&(n[Xa("0x78")][Xa("0xe8")]===n&&(n[Xa("0x78")][Xa("0xe8")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1].previous=n[0],i[Xa("0x92")](n[0]),x[Xa("0x92")](n[1]))}}function c(t,e){if(t[Xa("0x13")].id!==e[Xa("0x13")].id)return null;const n=s.get(t)(t,e,r.get(t),r.get(e));return n&&s.get(e)(t,e,r[Xa("0x64")](t),r[Xa("0x64")](e))?n[1][Xa("0x26")]&&n[1][Xa("0x26")][Xa("0x62")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[Xa("0x97")](t),n=this[Xa("0xb2")]({skipNotAttached:!0}),o=n[Xa("0x25")]((e=>!t[Xa("0xec")](e))),s=new Map(e.map((t=>[t,this._suggestionFactory.getSuggestionCallback(t.type,t[Xa("0x142")],"join")]))),r=new Map(n[Xa("0x13f")]((t=>[t,t[Xa("0x6b")]()])));for(let t=0;t<e[Xa("0x62")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Xa("0x5b")]!==e[Xa("0x5b")]||o[Xa("0x13")].id!==e.author.id||o[Xa("0x142")]!==e.subType)continue;if(!sc(e,o))continue;const x=s.get(e),a=r[Xa("0x64")](e),c=r.get(o),l=e[Xa("0x26")]&&e[Xa("0x26")][Xa("0x62")],d=o[Xa("0x26")]&&o[Xa("0x26")][Xa("0x62")];if(!l&&x(c,a))return t[Xa("0xfe")](o,e),r[Xa("0xe3")](e),!0;if(!d&&x(a,c))return t[Xa("0xfe")](e,o),r.delete(o),!0}return!1}}[Xa("0xfe")](t,e){if(t[Xa("0x8d")])for(const n of e.getRanges())t[Xa("0x128")](n);else{const n=e[Xa("0x38")]().end;this._setSuggestionRange(t,this[Xa("0x58")][Xa("0x140")](t[Xa("0x38")]()[Xa("0x113")],n))}e[Xa("0x120")]()}}class Ja{constructor(t){this[Xa("0x46")]=t,this._model=t[Xa("0xf7")],this[Xa("0x22")]=new Map,this[Xa("0x84")]=new Map,this._registerDefaultCallbacks()}[Xa("0x2")](t,e,n,o,s,r){return new Zo(this[Xa("0x58")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0x11d")](t,e,Xa("0x9d"))(...n),onDiscard:(...n)=>this[Xa("0x11d")](t,e,Xa("0x17"))(...n)})}[Xa("0x71")](t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x22")].set(s,o)}[Xa("0x11d")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[Xa("0x64")](o)||this[Xa("0x84")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[Xa("0x96")](((t,e)=>t.start[Xa("0x30")](e[Xa("0x113")])?1:-1)),this[Xa("0x58")].change((e=>{for(const n of t){let t;t=n.end[Xa("0xe0")]&&n.end[Xa("0xe5")]==n[Xa("0x113")].nodeAfter?e[Xa("0x56")](n.start.nodeAfter,"on"):e[Xa("0x56")](n),this[Xa("0x58")][Xa("0x7e")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[Xa("0x41")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0x13f")]((t=>(Za(t)&&(t=this[Xa("0x58")][Xa("0x140")](t.end)),t)))[Xa("0x25")]((t=>Xa("0xa")!==t.root[Xa("0x101")]));if(r[Xa("0x62")]<1)return;const x=Array.from(this[Xa("0x58")].document.selection[Xa("0x6b")]()).map((t=>i.LiveRange[Xa("0x11c")](t)));n.setSelection(r);for(const t of this._editor[Xa("0x98")][Xa("0x98")]())t[Xa("0xe9")]();s[Xa("0x32")]({forceDefaultExecution:!0}),this[Xa("0x46")][Xa("0x9e")](o,...s);const a=x[Xa("0x25")]((t=>Xa("0xa")!=t[Xa("0xc3")][Xa("0x101")]));a[Xa("0x62")]>0&&n[Xa("0xbd")](a);for(const t of x)t[Xa("0xc4")]()}))},o=(t,e)=>1==t[Xa("0x62")]&&1==e[Xa("0x62")]&&t[0][Xa("0x5")][Xa("0xd7")](e[0][Xa("0x113")]),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x58")])?[t,e]:oc(e,t,o,n,this[Xa("0x58")])?[e,t]:null;this[Xa("0x84")][Xa("0x69")](Xa("0xf1"),t),this[Xa("0x84")][Xa("0x69")](Xa("0xa0"),e),this[Xa("0x84")][Xa("0x69")](Xa("0x51"),o),this._defaultCallbacks.set("insertion:chain",s),this[Xa("0x84")][Xa("0x69")](Xa("0xf5"),e),this[Xa("0x84")][Xa("0x69")](Xa("0xcf"),t),this[Xa("0x84")][Xa("0x69")]("deletion:join",o),this[Xa("0x84")].set(Xa("0x19"),s),this[Xa("0x84")].set("formatInline:accept",n),this[Xa("0x84")][Xa("0x69")](Xa("0xc9"),t),this[Xa("0x84")][Xa("0x69")](Xa("0x4f"),o),this[Xa("0x84")][Xa("0x69")](Xa("0x114"),t),this[Xa("0x84")][Xa("0x69")](Xa("0x23"),n),this[Xa("0x84")][Xa("0x69")](Xa("0x5c"),t),this[Xa("0x84")][Xa("0x69")](Xa("0x72"),o),this[Xa("0x84")][Xa("0x69")]("formatBlock:chain",t)}}function Qa(t,e,n){for(const o of e[Xa("0xe5")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[Xa("0xc3")]==o)return!1;if(!n[Xa("0x132")](o))return!1;if(t.isObject(o)||t.isLimit(o))return!0}return!1}function Za(t){return t[Xa("0x5")].parent==t[Xa("0x113")].nodeAfter&&t[Xa("0x5")][Xa("0x11")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x135")].is(Xa("0x1e"))&&!o[Xa("0x42")](t[Xa("0x135")]),r=t[Xa("0x113")][Xa("0x55")](s),i=t[Xa("0x5")][Xa("0x55")](s,{direction:Xa("0x85")});return!(t[Xa("0x113")][Xa("0xd7")](r)&&t[Xa("0x5")][Xa("0xd7")](i)||(r[Xa("0x30")](i)?n[Xa("0x2c")](e,{range:n[Xa("0x140")](r,i)}):n[Xa("0xaf")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0x113")][Xa("0xa3")];return e&&e.is("element")}function nc(t,e){const n=e[Xa("0x6")][Xa("0x42")](t)||e[Xa("0x6")][Xa("0x68")](t);return e[Xa("0x140")](e[Xa("0x110")](t,Xa("0x48")),n?e[Xa("0x5a")](t):e[Xa("0x110")](t,"end"))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end.isEqual(o.start))return!0;if(t[Xa("0x5b")]!=e[Xa("0x5b")])return!1;if(!n[Xa("0x5")][Xa("0x13c")](o.start))return!1;const r=s.createRange(n[Xa("0x5")],o[Xa("0x113")])[Xa("0x126")]();for(const t of r)if([Xa("0xfc"),Xa("0x40")][Xa("0x18")](t[Xa("0x5b")])&&s.schema[Xa("0xc2")](t.item))return!1;return!0}function sc(t,e){return!(!t[Xa("0x66")]||!e._isDataLoaded)&&Go(t.attributes,e[Xa("0x12a")])}function rc(t,e){const n=ic(t[Xa("0x12a")]),o=ic(e);if(!t[Xa("0x66")])return!1;for(const t of Object[Xa("0x10d")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0x100")]({},t);return delete e[Xa("0x141")],delete e[Xa("0x12f")],e}const xc=["acceptSuggestion","model","destroy","_pendingAction","commands","add","listenTo","_acceptCommand","_discardCommand","isDirty","_removePendingAction","get","_setPendingAction","commentThreadController","stopListening","PendingActions","_editor","canEditAt","view","plugins","execute","getRanges","isEnabled","bind","PENDING_ACTION_SUGGESTION","locale","unbind","discardSuggestion","canAccept"];var ac,cc;ac=xc,cc=368,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[lc("0x1b")]=n,this[lc("0x16")]=o,this[lc("0x19")]=t,this[lc("0x10")]=t[lc("0xd")][lc("0x14")](lc("0x9")),this._discardCommand=t.commands[lc("0x14")]("discardSuggestion"),this[lc("0x1b")][lc("0x3")]("isEnabled").to(this._acceptCommand,this[lc("0x11")],((t,e)=>t||e)),this[lc("0x1b")].bind(lc("0x8")).to(this[lc("0x10")],lc("0x2"),(t=>t&&this[lc("0x19")][lc("0xa")][lc("0x1a")](e[lc("0x1")]()))),this[lc("0x1b")][lc("0x3")]("canDiscard").to(this[lc("0x11")],lc("0x2"),(t=>t&&this[lc("0x19")].model.canEditAt(e[lc("0x1")]()))),this[lc("0xc")]=null,n[lc("0x12")]&&this[lc("0x15")](),this.listenTo(n,lc("0x9"),(()=>this[lc("0x9")]())),this[lc("0xf")](n,"discardSuggestion",(()=>this[lc("0x7")]())),this[lc("0xf")](n,"change:isDirty",(()=>{n[lc("0x12")]?this._setPendingAction():this[lc("0x13")]()}))}acceptSuggestion(){this._acceptCommand.execute(this[lc("0xa")].id)}[lc("0x7")](){this._discardCommand[lc("0x0")](this[lc("0xa")].id)}[lc("0xb")](){this[lc("0x1b")][lc("0x6")](lc("0x2")),this[lc("0x1b")][lc("0x6")](lc("0x8")),this.view.unbind("canDiscard"),this[lc("0x17")](),this.commentThreadController[lc("0xb")](),this[lc("0xc")]&&this[lc("0x13")]()}_setPendingAction(){const t=Yo(this[lc("0x19")][lc("0x5")],lc("0x4"));this[lc("0xc")]=this[lc("0x19")].plugins.get(lc("0x18"))[lc("0xe")](t)}[lc("0x13")](){null!==this._pendingAction&&this[lc("0x19")][lc("0x1c")][lc("0x14")](lc("0x18")).remove(this._pendingAction),this[lc("0xc")]=null}}const uc=["showInput","editor","commentInputView","canDiscard","locale","updateComment","cancel","_createCommentViews","commentThreadInputView","canAccept","commentThread","commentsListView","set","_createCommentThreadInputView","hasDirtyComment","disabledSubmit","element","value","delegate","isReadOnly","focus","descriptionParts","length","authoredAt","_config","CommentView","setData","_model","bind","fire","destroy","removeComment","isActive","isDirty"];var gc,mc;gc=uc,mc=267,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x10")]=null,this.commentThreadInputView=null,this[fc("0x11")](fc("0x3"),!1),this[fc("0x11")](fc("0x1c"),e[fc("0x1c")]),this.bind(fc("0x1c")).to(e),this.set(fc("0x1a"),[]),this[fc("0x11")]("isDirty",!1),this[fc("0x11")]("isEnabled",!1),this[fc("0x11")](fc("0xe"),!1),this.set(fc("0x8"),!1),this[fc("0x20")]=e,this._localUser=n,this[fc("0x1d")]=o,o.disableComments?this.set(fc("0x1b"),1):this[fc("0xc")]()}[fc("0x19")](){this[fc("0x15")][fc("0x19")]()}[fc("0x1")](){this[fc("0x10")]&&this[fc("0x10")][fc("0x1")](),this[fc("0xd")]&&this[fc("0xd")][fc("0x1")](),super[fc("0x1")]()}[fc("0xc")](){const{CommentsListView:t}=this[fc("0x1d")];this.commentsListView=new t(this[fc("0x9")],this[fc("0x20")].commentThread,Object.assign({CommentView:this[fc("0x1d")][fc("0x1e")]},this[fc("0x1d")])),this[fc("0x10")][fc("0x17")](fc("0x2")).to(this),this[fc("0x10")].delegate(fc("0xa")).to(this),this[fc("0x10")][fc("0x21")](fc("0x3")).to(this),this[fc("0x11")](fc("0x1b"),this[fc("0x10")].length+1),this[fc("0x21")]("length").to(this.commentsListView,fc("0x1b"),(t=>t+1)),this[fc("0xd")]=this[fc("0x12")](),this.on(fc("0x2"),(()=>this[fc("0x19")]())),this[fc("0x21")](fc("0x4")).to(this.commentsListView,fc("0x13"),this.commentThreadInputView.commentInputView,fc("0x16"),((t,e)=>t||!!e))}[fc("0x12")](){const{CommentThreadInputView:t}=this._config,e=new t(this[fc("0x9")],this._localUser,this[fc("0x1d")].editorConfig),n=e[fc("0x7")];return e.bind(fc("0x5")).to(this,fc("0x3"),this[fc("0x20")].commentThread,"isReadOnly",n,fc("0x16"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[fc("0x0")]("addComment",e),n[fc("0x6")][fc("0x1f")]("")})),n.on(fc("0xb"),(()=>this[fc("0x19")]())),n[fc("0x21")](fc("0x14")).to(this[fc("0x20")][fc("0xf")],fc("0x18")),e}}const pc=["_model",'<span class="ck-suggestion-type">',"getExternalSuggestionNote","delegate","bind","commentThread","ck-suggestion--disabled-comments","join","ck-suggestion","span","render","getUserViewNotificationText","commentThreadInputView","locale","type","ck-suggestion--discard","ck-comment__external","authoredAt","innerHTML","color","Discard suggestion","source","attributes","element","description",'" title="',"execute","map","author","@external","ck-suggestion__info-name","Accept suggestion","discardButton","ck-suggestion__actions","ck-annotation","</p>","setTemplate","name","_createButton","disableComments","canAccept","importWord","ck-annotation__info","descriptionParts","getTemplate","check","ck-suggestion-wrapper","EXTERNAL_SUGGESTION","creator","createElement","EXTERNAL_IMPORT_WORD_AVATAR","formatDateTime","split","userView",'"></span>',"ck-annotation__main","querySelector","value","isActive","editorDestroyed","</span>","time","ck-suggestion--accept","extendTemplate","ck-suggestion-wrapper--active","commentsListView","<p>","isExternal","push","ck-annotation__info-time","acceptButton","_config","div","ck-suggestion__user","cancel","innerText","canDiscard","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-annotation__content-wrapper","set","isEnabled","children","content",'<span class="ck-suggestion-color" style="background-color: ',"acceptSuggestion","EXTERNAL_AVATAR","_descriptionElement"];var bc,Ec;bc=pc,Ec=173,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x50")]("type",""),this[_c("0x5")](_c("0xf")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][_c("0xf")]:"")),this.bind(_c("0x19")).to(this,_c("0x2c"),this,_c("0x3b"),((t,e)=>{let n="";for(const e of t)n+=_c("0x43")+Cc(e[_c("0x53")],e[_c("0x14")])+_c("0x24");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x0")]=null,this[_c("0x47")]=this[_c("0x27")](Yo(e,_c("0x20")),t.icons[_c("0x2e")],_c("0x3f"),_c("0x55"),"sw"),this.acceptButton[_c("0x5")]("isEnabled").to(this,_c("0x29")),this.discardButton=this[_c("0x27")](Yo(e,_c("0x15")),t.icons[_c("0x4b")],_c("0x10"),"discardSuggestion","sw"),this.discardButton.bind(_c("0x51")).to(this,_c("0x4d")),this.userView=new r.UserView(e,this[_c("0x1")][_c("0x1d")],this[_c("0xc")]()),this.userView[_c("0x40")]({attributes:{class:[_c("0x4a"),"ck-annotation__user"]}}),this[_c("0x25")](this[_c("0x2d")]())}[_c("0x2d")](){const t=this.bindTemplate,e=[{tag:_c("0x49"),attributes:{class:["ck-suggestion__info",_c("0x2b")]},children:[{tag:_c("0xa"),children:[{text:this.userView[_c("0x26")]}],attributes:{class:[_c("0x1f"),"ck-annotation__info-name"]}},{tag:_c("0x3e"),attributes:{datetime:t.to(_c("0x12")),class:["ck-comment__info-time",_c("0x46")]},children:[{text:t.to("authoredAt",(t=>this[_c("0x48")][_c("0x34")](t)))}]}]},{tag:_c("0x49"),attributes:{class:[_c("0x22"),"ck-annotation__actions"]},children:[this[_c("0x47")],this[_c("0x21")]]},{tag:_c("0x49"),attributes:{class:[_c("0x4f")]}}];this[_c("0x1")][_c("0x44")]&&e[_c("0x45")]({tag:_c("0x49"),attributes:{class:[_c("0x11")]},children:[{text:this[_c("0x3")]()}]});const n={tag:_c("0x49"),attributes:{class:[_c("0x2f"),t.if("isActive",_c("0x41")),t.to("type",(t=>"ck-suggestion-"+t)),this[_c("0x48")][_c("0x28")]&&_c("0x7")],"data-suggestion-id":this[_c("0x1")].id,"data-thread-id":this._model[_c("0x6")].id,"data-author-id":this._model[_c("0x1d")].id,tabindex:-1},children:[{tag:_c("0x49"),attributes:{class:[_c("0x9"),_c("0x23")]},children:[this[_c("0x36")],{tag:"div",attributes:{class:["ck-suggestion__main",_c("0x38")]},children:e}]}]};return this[_c("0x42")]&&this[_c("0xd")]&&(n[_c("0x52")].push(this.commentsListView,this[_c("0xd")]),this[_c("0x42")][_c("0x4")]("editorReady").to(this),this[_c("0x42")].delegate("editorDestroyed").to(this),this[_c("0xd")][_c("0x4")]("editorReady").to(this),this.commentThreadInputView[_c("0x4")](_c("0x3c")).to(this)),n}[_c("0xb")](){super[_c("0xb")](),this[_c("0x0")]=this[_c("0x18")][_c("0x39")](".ck-annotation__content-wrapper"),this[_c("0x0")][_c("0x13")]=this[_c("0x19")],this.on("change:description",((t,e,n)=>{this._descriptionElement[_c("0x13")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[_c("0x50")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x40")]({attributes:{class:n}}),i.on(_c("0x1b"),(()=>{this.fire(o,this[_c("0x1")].id)})),i}[_c("0x3")](){return _c("0x2a")===this[_c("0x1")][_c("0x17")][_c("0x1e")].source?Yo(this[_c("0xe")],_c("0x4e")):Yo(this[_c("0xe")],_c("0x30"))}getUserViewNotificationText(){return this[_c("0x1")].isExternal?"importWord"===this[_c("0x1")][_c("0x17")][_c("0x1e")][_c("0x16")]?Yo(this[_c("0xe")],_c("0x33"),this[_c("0x1")][_c("0x31")].name):Yo(this.locale,_c("0x56"),this[_c("0x1")][_c("0x31")].name):null}}function Cc(t,e){let n="";return n+=t[_c("0x35")]("*")[_c("0x1c")](((t,e)=>e%2!=0?_c("0x2")+yc(t)+_c("0x3d"):yc(t)))[_c("0x8")](""),e&&(n+=_c("0x54")+e[_c("0x3a")]+_c("0x1a")+e.title+_c("0x37")),n}function yc(t){const e=document[_c("0x32")](_c("0xa"));return e[_c("0x4c")]=t,e[_c("0x13")]}const kc=["getFirstRange","head","discardAllSuggestions","comments.maxThreadTotalWeight","arrowView","getByInnerView","unbind","discardSelectedSuggestions","mainView","type","requires","getJoined","delete","getMarkers","change:previous","commandName","get","plugins","getRanges","define","_disableComments","Annotations","comments.editorConfig","actionView","filter","model","getDescriptions","isDirty","config","toMany","discardButton","getAllAdjacentSuggestions","separator","suggestion-","Discard all suggestions","Accept all selected suggestions","editor","_refreshActiveMarkers","activeMarkers","getMarkerNames","isInContent","componentFactory","_updateController","createAnnotationView","comments","registerAnnotation","TrackChangesUI","pluginName","trackChanges.disableComments","keys","set","acceptSelectedSuggestions","isEnabled","value","suggestionLoaded","_viewToController","length","map","destroy","execute","commands","locale","suggestionChanged","_suggestionToController","descriptionParts","suggestionUnloaded","add","change:activeAnnotations","init","buttonView","button","getSuggestion","comments.maxCommentsWhenCollapsed","trackChanges","CommentsUI","_descriptionFactory","isOn","push","isMultiRange","editing","EditorAnnotations","has","bind","_handleControllerBuffer","activeAnnotations","values","_annotationViews","Discard all selected suggestions","_initializeController","createAnnotation","trackChanges.SuggestionThreadView","from","CommentsRepository","_destroyController","_createUIButton","acceptAllSuggestions","switchbutton","hasSuggestion","view","focus","_handleSuggestionControllerDelayed","_bindAnnotationToEditors","refreshSelectedViews","listenTo","acceptButton","TrackChangesEditing"];var Ac,vc;Ac=kc,vc=431,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x3")](){return[$a,r.Users,Rc("0x55"),Rc("0xe"),"EditorAnnotations"]}static get[Rc("0x28")](){return Rc("0x27")}constructor(t){super(t),this[Rc("0x38")]=new Map,this[Rc("0x30")]=new Map,this[Rc("0x4f")]=new Map,this[Rc("0x4c")]=new Map;const e=this.editor[Rc("0x15")];e[Rc("0xc")](Rc("0x53"),Tc),e.define(Rc("0x29"),!1),this[Rc("0xd")]=e.get(Rc("0x29"))}[Rc("0x5d")](t,e){0===this[Rc("0x4c")].size&&setTimeout((()=>{for(const[t,e]of this[Rc("0x4c")]){const n=this[Rc("0x38")][Rc("0x4a")](t);n||e?n&&e&&this[Rc("0x56")](t):this[Rc("0x51")](t)}this[Rc("0x1d")][Rc("0xa")][Rc("0x9")](Rc("0x49"))[Rc("0x5f")](),this[Rc("0x1e")](),this._handleControllerBuffer.clear()}),10),this[Rc("0x4c")][Rc("0x2b")](t,e)}[Rc("0x3d")](){const t=this[Rc("0x1d")],e=t[Rc("0xa")][Rc("0x9")](Rc("0x62")),n=t[Rc("0xa")][Rc("0x9")](Rc("0xe")),o=t[Rc("0xa")].get(Rc("0x49")),s=t[Rc("0xa")][Rc("0x9")](Rc("0x55"));t.ui[Rc("0x22")][Rc("0x3b")](Rc("0x42"),(t=>this[Rc("0x57")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Rc("0x38")])){const o=e[Rc("0x18")](),s=[];for(const t of o){if(!t[Rc("0x21")])continue;if(t[Rc("0x47")]){s[Rc("0x46")](...t[Rc("0xb")]());continue}const e=t[Rc("0x63")]();if(s[Rc("0x31")]>0){const t=s[0][Rc("0x4")](e);if(t){s[0]=t;continue}}s[Rc("0x46")](e)}t.push([n[Rc("0x5b")],s])}return t})),this.listenTo(e,Rc("0x2f"),((t,e)=>{this[Rc("0x60")](e,Rc("0x7"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Rc("0x23")](s[Rc("0x64")]),this[Rc("0x5d")](e,!1)):(this[Rc("0x23")](o[Rc("0x64")]),this[Rc("0x5d")](e,!0)))})),null===e.previous?this[Rc("0x5d")](e,!1):this[Rc("0x23")](e[Rc("0x64")])})),this[Rc("0x60")](e,Rc("0x3a"),((t,e,n)=>{this.stopListening(e,"change:previous"),this[Rc("0x4c")][Rc("0x5")](e);const o=n?n.head:e,s=this[Rc("0x38")][Rc("0x9")](o);null!==n&&this._updateController(o),null===n&&s&&this[Rc("0x56")](e)})),this[Rc("0x60")](e,Rc("0x37"),((t,e)=>{this[Rc("0x23")](e)})),this[Rc("0x60")](n,Rc("0x3c"),(()=>{this[Rc("0x1e")]()})),this[Rc("0x60")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x5a")](n))return;const s=e[Rc("0x40")](n);this[Rc("0x38")].get(s).view.focus()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[Rc("0x1d")][Rc("0xa")][Rc("0x9")](Rc("0xe")),e=this.editor.plugins.get(Rc("0x62")),n=Array[Rc("0x54")](t[Rc("0x4d")],(t=>t.innerView)).filter((t=>this[Rc("0x30")][Rc("0x4a")](t))),o=[];for(const t of n){const e=this._viewToController.get(t).model.getAllAdjacentSuggestions();o[Rc("0x46")](...e.reduce(((t,e)=>[...t,...e[Rc("0x20")]()]),[]))}e[Rc("0x1f")]=o}[Rc("0x57")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x1d")].commands[Rc("0x9")](Rc("0x42")),r=Yo(t,"Track changes");n.buttonView[Rc("0x2b")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView.bind(Rc("0x45")).to(o,"value"),n.buttonView.on(Rc("0x34"),(()=>{o[Rc("0x34")](),this[Rc("0x1d")].editing.view[Rc("0x5c")]()}));const i=new e.Collection,x=[{type:Rc("0x59"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Rc("0x19")},{type:Rc("0x3f"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Rc("0x58")}},{type:Rc("0x3f"),model:{withText:!0,label:Yo(t,Rc("0x1c")),commandName:Rc("0x2c")}},{type:Rc("0x3f"),model:{withText:!0,label:Yo(t,Rc("0x1b")),commandName:Rc("0x65")}},{type:Rc("0x3f"),model:{withText:!0,label:Yo(t,Rc("0x50")),commandName:Rc("0x0")}}];for(const t of x){let e={type:Rc("0x19")};if(t[Rc("0x12")]){const n=new s.Model(t[Rc("0x12")]),o=this[Rc("0x1d")][Rc("0x35")].get(n[Rc("0x8")]);n[Rc("0x4b")]("isOn",Rc("0x2d")).to(o,Rc("0x2e"),"isEnabled"),e={type:t[Rc("0x2")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x11")]((t=>null!=t[Rc("0x12")]))[Rc("0x32")]((t=>this[Rc("0x1d")].commands[Rc("0x9")](t[Rc("0x12")][Rc("0x8")]))),c=n[Rc("0x3e")];return c[Rc("0x10")][Rc("0x69")](Rc("0x2d")),c.arrowView[Rc("0x69")](Rc("0x2d")),c[Rc("0x10")][Rc("0x4b")](Rc("0x2d")).to(o,Rc("0x2d")),c[Rc("0x67")][Rc("0x4b")](Rc("0x2d"))[Rc("0x16")](a,"isEnabled",((...t)=>t.some((t=>t)))),n.on(Rc("0x34"),(t=>{this[Rc("0x1d")][Rc("0x34")](t.source[Rc("0x8")]),this[Rc("0x1d")].editing[Rc("0x5b")].focus()})),n}_initializeController(t){const e=this.editor,n=e[Rc("0x15")],o=e[Rc("0xa")][Rc("0x9")](Rc("0xe")),s=e[Rc("0xa")][Rc("0x9")](Rc("0x55")),i=e[Rc("0xa")][Rc("0x9")]("EditorAnnotations"),x=e[Rc("0xa")][Rc("0x9")](r.Users).me,a=n.get(Rc("0x42")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0xa")][Rc("0x9")](Rc("0x43"));let d,u;this[Rc("0x4f")][Rc("0x4a")](t.id)?(u=this[Rc("0x4f")][Rc("0x9")](t.id),d=u[Rc("0x1")]):(d=new a(e[Rc("0x36")],t,x,{disableComments:this._disableComments,editorConfig:n.get(Rc("0xf")),maxCommentsWhenCollapsed:n.get(Rc("0x41")),maxThreadTotalWeight:n.get(Rc("0x66")),maxCommentCharsWhenCollapsed:n[Rc("0x9")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x9")](Rc("0x36"))),CommentView:n[Rc("0x9")](Rc("0x25")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x61")].on(Rc("0x34"),(()=>{e[Rc("0x48")][Rc("0x5b")].focus()})),d[Rc("0x17")].on(Rc("0x34"),(()=>{e.editing[Rc("0x5b")].focus()})),u=o[Rc("0x24")](this[Rc("0x1d")].locale,d),u.bind(Rc("0x14")).to(d,"isDirty"),u[Rc("0x4b")](Rc("0x31")).to(d),u[Rc("0x4b")](Rc("0x2")).to(d,Rc("0x2"),(t=>"suggestion-"+t)),this[Rc("0x4f")][Rc("0x2b")](t.id,u));const g=s.createCommentThreadController(t.commentThread,d),m=new dc(e,t,d,g),f=t[Rc("0x18")]()[Rc("0x11")]((t=>t.isInContent));d.descriptionParts=e[Rc("0xa")][Rc("0x9")](Rc("0x62"))._descriptionFactory[Rc("0x13")](f),this[Rc("0x38")][Rc("0x2b")](t,m),this[Rc("0x30")][Rc("0x2b")](d,m);const h=o[Rc("0x52")]({view:u,target:()=>{const n=[],o=t[Rc("0x18")]().filter((t=>t[Rc("0x21")]));for(const t of o)n[Rc("0x46")](...t[Rc("0x6")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x48")],n)},type:()=>Rc("0x1a")+m.view[Rc("0x2")]});s[Rc("0x5e")](d,h),o[Rc("0x3b")](h),i[Rc("0x26")](h)}[Rc("0x56")](t){const e=this.editor[Rc("0xa")][Rc("0x9")](Rc("0x55")),n=this.editor[Rc("0xa")][Rc("0x9")](Rc("0xe")),o=this[Rc("0x38")][Rc("0x9")](t),s=o[Rc("0x5b")],r=n[Rc("0x68")](s);e._unbindEditors(s),r&&n.remove(r),this[Rc("0x38")].delete(t),this._viewToController.delete(s),o[Rc("0x33")]()}[Rc("0x23")](t){if(!t[Rc("0x21")]||!this[Rc("0x38")].has(t))return;const e=this[Rc("0x1d")][Rc("0xa")][Rc("0x9")]("TrackChangesEditing"),n=this[Rc("0x38")][Rc("0x9")](t),o=t.getAllAdjacentSuggestions();n[Rc("0x5b")][Rc("0x39")]=e[Rc("0x44")].getDescriptions(o)}[Rc("0x33")](){for(const t of this[Rc("0x38")][Rc("0x2a")]())this._destroyController(t);for(const t of this[Rc("0x4f")][Rc("0x4e")]())t[Rc("0x1")][Rc("0x33")]();super[Rc("0x33")]()}}var Ic,Lc,Nc=["plugins","editor","adapter","TrackChanges","get","requires","pluginName","getSuggestion","Comments","getSuggestions"];Ic=Nc,Lc=162,function(t){for(;--t;)Ic.push(Ic.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get[wc("0x3")](){return[$a,Sc,wc("0x6")]}static get[wc("0x4")](){return wc("0x1")}set[wc("0x0")](t){this[wc("0x9")].plugins[wc("0x2")]($a)[wc("0x0")]=t}get[wc("0x0")](){return this[wc("0x9")][wc("0x8")][wc("0x2")]($a)[wc("0x0")]}addSuggestion(t){return this[wc("0x9")][wc("0x8")].get($a).addSuggestionData(t)}[wc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x9")][wc("0x8")][wc("0x2")]($a)[wc("0x7")]({skipNotAttached:t,toJSON:e})}[wc("0x5")](t){return this[wc("0x9")].plugins[wc("0x2")]($a)[wc("0x5")](t)}}const Oc=["editor","discardAllSuggestions","rootsAttributes","getRootNames","useAnonymousUser","data","createDocumentFragment","getSuggestions","destroy","config","editorCreator","get","getRootsAttributes","getFullData","model","users","TrackChangesEditing","plugins","define","init","requires","map","getUser","function","trackChangesData","addUser","pluginName","create","result","document","TrackChangesData","CommentsRepository","getDataWithDiscardedSuggestions","getDataWithAcceptedSuggestions","end","name","execute","div","appendChild","constructor","_adapter","reduce","TrackChangesDataGetter","addSuggestionData"];var Fc,Pc;Fc=Oc,Pc=237,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=["Pagination"];class jc extends t.Plugin{static get[Dc("0x3")](){return[$a]}static get[Dc("0x9")](){return Dc("0xd")}[Dc("0x2")](){const t=this.editor;if(t[Dc("0x24")][Dc("0x1")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x29")][Dc("0xc")].getRootNames()[Dc("0x18")](((t,e)=>(t[e]="",t)),{});return t[Dc("0x16")][Dc("0xa")](n,e)})),Dc("0x6")!=typeof t[Dc("0x24")][Dc("0x26")]("trackChangesData")[Dc("0x25")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Dc("0x10")](t){return Hc(this.editor,!0,t)}[Dc("0xf")](t){return Hc(this[Dc("0x1b")],!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x19")}constructor(t){super(t),this[Dc("0xb")]=Dc("0x11")}[Dc("0x2")](){this[Dc("0x1b")][Dc("0x0")].get(Dc("0xe"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Dc("0x1b")].plugins.get(Dc("0x2b"))[Dc("0x17")]=null}}function Gc(t){return void 0!==t[Dc("0x27")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x0")].push($a,Uc),o[Dc("0x1d")]=Gc(t)?t[Dc("0x27")]():void 0;const s=document[Dc("0x21")](),i=t[Dc("0x24")][Dc("0x26")](Dc("0x7"))[Dc("0x25")],x=await i(o,(()=>function(t){const e=document.createElement(Dc("0x14"));return t[Dc("0x15")](e),e}(s)));!function(t,e){const n=t[Dc("0x29")].document[Dc("0x1e")]().reduce(((e,n)=>(e[n]=t.data[Dc("0x26")]({rootName:n}),e)),{}),o=t.plugins[Dc("0x26")]("Users")[Dc("0x2a")][Dc("0x4")]((t=>({id:t.id,name:t[Dc("0x12")]}))),s=t.plugins.get(Dc("0x2b"))[Dc("0x22")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get("Users"),i=e.plugins.get(Dc("0x2b"));for(const t of o)r[Dc("0x5")](t.id)||r[Dc("0x8")](t);r.me||r[Dc("0x1f")]();for(const t of s)i[Dc("0x1a")](t);e[Dc("0x20")].set(n)}(t,x),x[Dc("0x13")](e?"acceptAllSuggestions":Dc("0x1c"));const a=Gc(x)?x[Dc("0x28")](n):x.data[Dc("0x26")](n);return await x[Dc("0x23")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var 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:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),i=n(417),r=n(492),x=n(995);const a=["_isEnabledBasedOnSelection","_enabledCommands","isEnabled","forceDisabled","has","_disableUnsupportedCommands","clearForceDisabled","commands","execute","TrackChangesCommand","editor","refresh","value","affectsData","_enableCommands"];var c,l;c=a,l=174,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x7")]=e,this.value=!1,this[d("0x2")](),this[d("0x6")]=!1}[d("0x2")](){this[d("0x8")]=!0}[d("0xe")](){this[d("0x3")]=!this[d("0x3")],this[d("0x3")]?this[d("0xb")]():this._enableCommands()}[d("0xb")](){for(const t of this[d("0x1")][d("0xd")].commands())t[d("0x4")]&&!this[d("0x7")][d("0xa")](t)&&t[d("0x9")](d("0x0"))}[d("0x5")](){for(const t of this[d("0x1")].commands[d("0xd")]())t[d("0x4")]&&!this._enabledCommands.has(t)&&t[d("0xc")]("TrackChangesCommand")}}const g=["acceptSuggestion","canEditAt","get","_isEnabledBasedOnSelection","_suggestions","editor","isEnabled","refresh","execute"];var m,f;m=g,f=237,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x4")](),this[h("0x0")]=!1}[h("0x4")](){this[h("0x3")]=!0}[h("0x5")](t){const n=this[h("0x1")][h("0x8")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n.getRanges();this[h("0x2")].model[h("0x7")](o)&&this[h("0x2")].plugins[h("0x8")]("TrackChangesEditing")[h("0x6")](n)}}const b=["plugins","execute","model","discardSuggestion","_isEnabledBasedOnSelection","getRanges","canEditAt","editor","TrackChangesEditing","get","track-changes-discard-suggestion-not-found","refresh"];var E,_;E=b,_=234,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x5")](),this[T("0xa")]=!1}[T("0x5")](){this.isEnabled=!0}[T("0x7")](t){const n=this._suggestions[T("0x3")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const o=n[T("0xb")]();this[T("0x1")][T("0x8")][T("0x0")](o)&&this[T("0x1")][T("0x6")].get(T("0x2"))[T("0x9")](n)}}const y=["createRange","content","from","createPositionAt","next","isMultiRange","execute","getRanges","push","isCollapsed","color","type","join","length","deletion","isArray","isIntersecting","isObject","add","isInContent","change","map","start","end","createPositionAfter","createPositionBefore"];var k,A;k=y,A=450,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>v("0x6")==t[v("0x3")]&&v("0x6")!=e[v("0x3")]?-1:"deletion"!=t.type&&"deletion"==e[v("0x3")]?1:0))}function I(t,e){let n,o=0;const s=[],i=e.schema;for(;o<t[v("0x5")];){const r=t[o],x=t[o+1];n||(n=e.createPositionBefore(r)),S(e,r,x)||(s[v("0x0")](e[v("0x12")](n,i[v("0x9")](r)?e[v("0x10")](r):e[v("0x15")](r,v("0xf")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x11")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x5")];){const o=n.splice(0,100);t[v("0xc")]((()=>{for(const t of o)t[v("0xb")]&&e[v("0x18")](t.id)}))}}const N=["_command","isEnabled","values","_suggestions","execute","refresh","some","isInContent","from","model","editor","canEditAt"];var w,M;w=N,M=495,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x9")]=e,this[O("0x0")]=n,this.refresh(),this._isEnabledBasedOnSelection=!1}[O("0x2")](){const t=Array[O("0x5")](this[O("0x0")][O("0xb")]())[O("0x3")]((t=>t[O("0x4")]));this[O("0xa")]=this[O("0x9")][O("0xa")]&&t}[O("0x1")](){const t=R(Array[O("0x5")](this[O("0x0")].values()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x6")][O("0x8")](t))return}L(this[O("0x7")][O("0x6")],this[O("0x9")],t)}}const P=["_selectedSuggestions","size","_suggestions","from","model","editor","refresh","values","isEnabled","execute","_command"];var D,B;D=P,B=488,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x6")]=e,this._suggestions=n,this[j("0x7")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}[j("0x2")](){const t=this[j("0x1")][j("0x0")].document.selection,e=Array[j("0xa")](this[j("0x9")][j("0x3")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x14")](t.getRanges()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x19")]())(e[v("0x8")](n)||t[v("0x1")]&&!s[v("0x17")]&&s[v("0x16")]&&n[v("0xf")].isTouching(e[v("0xe")]))&&o[v("0xa")](s);return o}(t,e),this.isEnabled=this[j("0x6")][j("0x4")]&&!!this[j("0x7")][j("0x8")]}[j("0x5")](){const t=R(Array[j("0xa")](this._selectedSuggestions));for(const e of t){const t=e.getRanges();if(!this[j("0x1")][j("0x0")].canEditAt(t))return}L(this.editor.model,this[j("0x6")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var it=Object.prototype,rt=it.hasOwnProperty,xt=it.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=rt.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var s=!n;n||(n={});for(var i=-1,r=e.length;++i<r;){var x=e[i],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const re=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),i=!n&&!o&&!s&&Le(t),r=n||o||s||i,x=r?re(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||r&&("length"==c||s&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&ie(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&ie(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,i=[];++n<o;){var r=t[n];e(r,n,t)&&(i[s++]=r)}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),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return ie(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,i,r){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,s,i,r):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=In(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!i){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return i?e:{};x=Un(e,u,a)}}r||(r=new Yt);var m=r.get(e);if(m)return m;r.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,r))})):Kn(e)&&e.forEach((function(s,i){x.set(i,t(s,n,o,i,e,r))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,i){f&&(s=e[i=s]),se(x,i,t(s,n,o,i,e,r))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const io=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function ro(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],i=n.cache;if(i.has(s))return i.get(s);var r=t.apply(this,o);return n.cache=i.set(s,r)||i,r};return n.cache=new(ro.Cache||Jt),n}ro.Cache=Jt;const xo=ro;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:io(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,i=(e=po(e,t)).length,r=i-1,x=t;null!=x&&++s<i;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=r){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,i){var r=1&n,x=t.length,a=e.length;if(x!=a&&!(r&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(i.set(t,e),i.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=r?o(f,m,d,e,t,i):o(m,f,d,t,e,i);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,i)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,i)){u=!1;break}}return i.delete(t),i.delete(e),u};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,i,r){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=r.get(t);if(c)return c==e;o|=2,r.set(t,e);var l=Ro(x(t),x(e),o,s,i,r);return r.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,i){var r=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!r)return!1;for(var c=a;c--;){var l=x[c];if(!(r?l in e:Mo.call(e,l)))return!1}var d=i.get(t),u=i.get(e);if(d&&u)return d==e&&u==t;var g=!0;i.set(t,e),i.set(e,t);for(var m=r;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=r?o(h,f,l,e,t,i):o(f,h,l,t,e,i);if(!(void 0===p?f===h||s(f,h,n,o,i):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,i){var r=ge(t),x=ge(e),a=r?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;r=!0,l=!1}if(u&&!l)return i||(i=new Yt),r||Le(t)?Ro(t,e,n,o,s,i):wo(t,e,a,n,o,s,i);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return i||(i=new Yt),s(f,h,n,o,i)}}return!!u&&(i||(i=new Yt),Oo(t,e,n,o,s,i))};const Uo=function t(e,n,o,s,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,i))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(s);++o<s;)i[o]=t[o+e];return i};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["decorate","isIntersectingWithRange","@external","getItems","length","isIntersecting","subType","getMultiRangeId","data","getAllAdjacentSuggestions","next","nodeBefore","delete","attributes","toJSON","getMarkers","onDiscard","addMarker","markers","clear","_markerNames","_onAttributesChange","removeAttribute","push","commentThread","accept","_model","_saved","getMarkerNames","map","addRange","onAttributesChange","creator","getRange","addMarkerName","filter","reduce","head","hasComments","split","set","_isDataLoaded","end","getRanges","suggestion:","getContainedElement","getFirstMarker","get","isExternal","removeMarker","start","substr","onAccept","discard","removeMarkers","type","size","from","getFirstRange","author","nodeAfter","previous","change","_onAccept","createdAt","isInContent"];var $o,Jo;$o=Xo,Jo=342,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x1d")]=!1,this.id=e.id,this.type=e[Qo("0x2b")],this[Qo("0x3c")]=e[Qo("0x3c")]||null,this[Qo("0x2f")]=e[Qo("0x2f")],this[Qo("0x14")]=e[Qo("0x14")]||e[Qo("0x2f")],this[Qo("0x24")]=Boolean(e[Qo("0x1")]&&e[Qo("0x1")][Qo("0x38")]),this.data=null,this[Qo("0xe")]=t,this._onAccept=e[Qo("0x28")],this._onDiscard=e[Qo("0x4")],this[Qo("0x9")]=e[Qo("0x13")],this[Qo("0x8")]=new Set,this[Qo("0x34")]=null,this[Qo("0x1c")]("authoredAt",null),this[Qo("0x1c")]("attributes",e[Qo("0x1")]||{}),this[Qo("0x1c")](Qo("0x31"),null),this[Qo("0x1c")](Qo("0x40"),null),this.set("commentThread",null),this[Qo("0x1c")](Qo("0xf"),!1),this.decorate("accept"),this[Qo("0x36")](Qo("0x29"))}get[Qo("0x19")](){let t=this;for(;t[Qo("0x31")];)t=t[Qo("0x31")];return t}get hasComments(){return!!this[Qo("0xc")]&&this[Qo("0xc")][Qo("0x3a")]>0}get isMultiRange(){return 0!=this._markerNames[Qo("0x2c")]&&6==Array[Qo("0x2d")](this[Qo("0x8")])[0][Qo("0x1b")](":")[Qo("0x3a")]}get[Qo("0x35")](){return null!==this[Qo("0x22")]()}[Qo("0x16")](t){this[Qo("0x8")].add(t)}getMarkerNames(){return Array[Qo("0x2d")](this._markerNames)}[Qo("0x3")](){return this[Qo("0x10")]()[Qo("0x11")]((t=>this[Qo("0xe")][Qo("0x6")][Qo("0x23")](t)))[Qo("0x17")]((t=>t))}[Qo("0x22")](){return this[Qo("0x3")]()[0]||null}[Qo("0x2a")](){this._model[Qo("0x32")]((t=>{for(const e of this[Qo("0x3")]())t.removeMarker(e)})),this._markerNames[Qo("0x7")]()}[Qo("0x25")](t){this[Qo("0xe")].change((e=>{e.removeMarker(t)})),this[Qo("0x8")][Qo("0x0")](t)}[Qo("0x12")](t){const e=Qo("0x20")+this[Qo("0x2b")]+":"+this.subType+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x3d")]();this[Qo("0x16")](e),this[Qo("0xe")].change((n=>{n[Qo("0x5")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x37")](t){for(const e of this[Qo("0x1f")]())if(e[Qo("0x3b")](t))return!0;return!1}[Qo("0x1f")](){return this[Qo("0x3")]()[Qo("0x11")]((t=>t[Qo("0x15")]()))}[Qo("0x39")](){return this[Qo("0x1f")]()[Qo("0x18")](((t,e)=>[...t,...e[Qo("0x39")]()]),[])}[Qo("0x2e")](){var t;return(null===(t=this[Qo("0x22")]())||void 0===t?void 0:t[Qo("0x15")]())||null}[Qo("0x21")](){const t=this[Qo("0x1f")]();if(1!=t[Qo("0x3a")])return null;const e=t[0],n=e[Qo("0x26")][Qo("0x30")],o=e[Qo("0x1e")][Qo("0x41")];return n instanceof r.Element?n!=o?null:n:null}[Qo("0xd")](){this[Qo("0x33")](this[Qo("0x1f")](),this[Qo("0x3e")],this[Qo("0x1")]),this[Qo("0x2a")]()}[Qo("0x29")](){this._onDiscard(this.getRanges(),this.data,this.attributes),this[Qo("0x2a")]()}[Qo("0x3f")](){const t=[];let e=this[Qo("0x19")];for(;e;)t[Qo("0xb")](e),e=e[Qo("0x40")];return t}setAttribute(t,e){const n=eo(this[Qo("0x1")]);_o(n,t,e),Go(n,this[Qo("0x1")])||(this[Qo("0x1")]=n,this[Qo("0x9")](n))}[Qo("0xa")](t){const e=eo(this[Qo("0x1")]);qo(e,t),Go(e,this[Qo("0x1")])||(this.attributes=e,this[Qo("0x9")](this[Qo("0x1")]))}[Qo("0x2")](){return{id:this.id,type:this.subType?this.type+":"+this.subType:this[Qo("0x2b")],authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Qo("0x1a")],data:this[Qo("0x3e")],attributes:this.attributes}}static[Qo("0x3d")](){return(0,e.uid)()[Qo("0x27")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["*Insert:* %0","type","removeContainer","text","replace","item","function","addObject","elementStart","checkChild","removeEmptyContainer","elementEnd","isObject","add","_schema","Container","addEmptyContainer","start","insertion","pop","length","name","_resolveDescriptionItems","*Split:* %0","registerElementLabel","getItemLabel","*Remove:* %0","softBreak","end","ELEMENT_SPACE","getWalker","$text","_customCallbacks","EmptyContainer","label","normal","isEqual","removeObject","getFirstRange","data","remove","get","$textProxy","_addDescriptionItems","_locale","nextSibling","registerDescriptionCallback","addContainer","isEmpty","match","element","_itemLabels","previousSibling","push","isInContent","indexOf","$1 $2","_itemLabelsCallbacks","getDescriptions","skip","quantity","deletion","set"];var es,ns;es=ts,ns=390,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x27")]=new Map,this[os("0x2d")]=[],this._schema=t,this[os("0x20")]=e}[os("0x2e")](t){const e=[];for(let n=0;n<t[os("0x8")];n++){const o=t[n];if(!o[os("0x2a")])continue;let s=!1;for(const t of this[os("0x14")]){const n=t(o);if(n){os("0x34")in n&&e[os("0x29")](n),s=!0;break}}if(!s){this[os("0x1f")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x10")][os("0x18")](s.getFirstRange()[os("0x5")])){const t=e[e[os("0x8")]-1],n="insertion"==o[os("0x34")]?os("0x1"):os("0x1c");t&&os("0x36")==t[os("0x34")]&&(t[n]+="\n")}}}return this[os("0xa")](e)}[os("0x22")](t){this[os("0x14")][os("0x29")](t)}[os("0xc")](t,n,o=e.priorities[os("0x17")]){os("0x39")==typeof t?(0,e.insertToPriorityArray)(this[os("0x2d")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x32")](t,n)}[os("0xd")](t,e=1){let n;for(const e of this[os("0x2d")])if(e.matchingCallback(t)){n=e[os("0x16")];break}return n||(n=this._itemLabels[os("0x1d")](t.name)),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x9")]}[os("0x1f")](t,e){const n=e[os("0x1a")]()[os("0x12")](),o=os("0x6")==e[os("0x34")]?os("0x1"):os("0x1c");for(const e of n){const s=e[os("0x38")],i=t[t.length-1];if(s.is(os("0x1e")))i&&i[os("0x34")][os("0x2b")]("Container")>-1&&t.pop(),i&&os("0x36")==i[os("0x34")]?i[o]+=s.data:t[os("0x29")]({type:"text",add:os("0x1")==o?s.data:"",remove:"remove"==o?s[os("0x1b")]:""});else if(this[os("0x2")].isObject(s)){const r=s;if(i&&i.type[os("0x2b")](os("0x3"))>-1&&t[os("0x7")](),os("0x3e")==e.type)continue;i&&i.type==o+"Object"&&i[os("0x26")][os("0x9")]==r[os("0x9")]?i[os("0x30")]++:t[os("0x29")]({type:o+"Object",element:r,quantity:1}),n[os("0x2f")]((t=>!("elementEnd"==t[os("0x34")]&&t[os("0x38")]==s)))}else if(this[os("0x2")][os("0x3c")](s,os("0x13"))||s.is("element",os("0xf"))){const n=s;if(os("0x1")==o&&os("0x3b")==e[os("0x34")]||os("0x1c")==o&&"elementEnd"==e[os("0x34")])continue;if(i&&-1==i[os("0x34")][os("0x2b")](os("0x3"))){os("0x36")==i[os("0x34")]&&(i[o]+="\n");continue}let r;if(r=os("0x1")==o?n[os("0x21")]&&!this[os("0x2")][os("0x0")](n[os("0x21")])?n.nextSibling:null:n.previousSibling&&!this[os("0x2")].isObject(n[os("0x28")])?n.previousSibling:null,n[os("0x24")]||r&&r[os("0x24")]){const e=r&&r[os("0x24")]?r:n;i&&i.type==o+os("0x15")&&i[os("0x26")].name==e[os("0x9")]?i.quantity++:t[os("0x29")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x29")]({type:o+os("0x3"),element:n})}}}[os("0xa")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x34")]){case os("0x36"):if(o.add=o.add.replace(/(\S)\u000A+(\S)/g,os("0x2c"))[os("0x37")](/\u000A/g,""),o[os("0x1c")]=o[os("0x1c")][os("0x37")](/(\S)\u000A+(\S)/g,os("0x2c"))[os("0x37")](/\u000A/g,""),""!=o.add&&""!=o[os("0x1c")]){n[os("0x29")]({type:os("0x37"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x1c")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x1")].match(/^ +$/)){n[os("0x29")]({type:"insertion",content:Yo(e,os("0x33"),Yo(e,os("0x11"),o[os("0x1")][os("0x8")]))});continue}if(null!=o[os("0x1c")][os("0x25")](/^ +$/)){n[os("0x29")]({type:"deletion",content:Yo(e,os("0xe"),Yo(e,os("0x11"),o[os("0x1c")][os("0x8")]))});continue}if(""!=o[os("0x1")]){n.push({type:os("0x6"),content:Yo(e,os("0x33"),'"'+o.add+'"')});continue}n.push({type:os("0x31"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x1c")]+'"')});continue;case os("0x4"):case os("0x3a"):n[os("0x29")]({type:os("0x6"),content:Yo(e,os("0x33"),this.getItemLabel(o[os("0x26")],o[os("0x30")]))});continue;case os("0x3d"):case os("0x19"):n[os("0x29")]({type:os("0x31"),content:Yo(e,os("0xe"),this[os("0xd")](o[os("0x26")],o[os("0x30")]))});continue;case os("0x23"):n.push({type:os("0x6"),content:Yo(e,os("0xb"),this.getItemLabel(o[os("0x26")],o[os("0x30")]))});continue;case os("0x35"):n[os("0x29")]({type:"deletion",content:Yo(e,"*Merge:* %0",this.getItemLabel(o[os("0x26")],o[os("0x30")]))});continue}n[os("0x29")](o)}return n}}const is=["editor","enableCommand","plugins","get","afterInit","showAIAssistant"];var rs,xs;rs=is,xs=282,function(t){for(;--t;)rs.push(rs.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x4")](){const t=this[as("0x0")],e=t[as("0x2")][as("0x3")]("TrackChangesEditing");t.commands[as("0x3")]("showAIAssistant")&&e[as("0x1")](as("0x5"))}}const ls=["alignment","*Format:* %0","_descriptionFactory","value","getAttribute","change","get","AlignmentEditing","selection","model","from","locale","commandParams","FORMAT_ALIGN_TO_RIGHT","left","center","FORMAT_ALIGN_TO_LEFT","markBlockFormat","TrackChangesEditing","document","registerDescriptionCallback","FORMAT_ALIGN_TO_CENTER","filter","schema","afterInit","editor","right","commandName"];var ds,us;ds=ls,us=476,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x18")](){const t=this.editor,e=t[gs("0xb")];if(!t.plugins.has(gs("0x7")))return;const n=t.plugins[gs("0x6")](gs("0x12"));n.enableCommand("alignment",((e,o={})=>{let s=o[gs("0x3")];o.value||(s="ltr"===t.locale.contentLanguageDirection?gs("0xe"):"right");const i=Array[gs("0xa")](this[gs("0x19")].model[gs("0x13")][gs("0x8")].getSelectedBlocks())[gs("0x16")]((t=>function(t,e,n){const o=t[gs("0x4")](gs("0x0"))||null;return e.checkAttribute(t,"alignment")&&n!=o}(t,this.editor[gs("0x9")][gs("0x17")],s)));t[gs("0x9")][gs("0x5")]((()=>{for(const t of i)n[gs("0x11")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[gs("0x2")][gs("0x14")]((t=>{const{data:n}=t;if(n&&"alignment"==n[gs("0x1b")]){const t=n[gs("0xc")][0][gs("0x3")];return{type:"format",content:Yo(e,gs("0x1"),function(t){switch(t){case"left":return Yo(e,gs("0x10"));case gs("0x1a"):return Yo(e,gs("0xd"));case gs("0xf"):return Yo(e,gs("0x15"));case"justify":return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fs=["TrackChangesEditing","elementEnd","start","includes","writer","consumable","parent","activeMarkers","item","ck-suggestion-marker--active","createUIElement","markerRange","nextSibling","previousPosition","addClass","isLimit","toViewPosition","getAttribute","hasAttribute","isAtEnd","ck-suggestion-marker-","type","markerName","element","mapper","plugins","addHighlight","insert","listItem","isContent","getCustomProperty","getItems","name","get","bindElementToMarker"];var hs,ps;hs=fs,ps=412,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0x4")]())s[bs("0x1a")](t)&&o.push(n.createRangeOn(s));return o}function _s(t){const e=[];if(t.is(bs("0x1f"),bs("0x1"))){let n=t[bs("0x14")];for(;n&&n.is(bs("0x1f"),bs("0x1"))&&n[bs("0x19")]("listIndent")>0;)e.push(n),n=n[bs("0x14")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x21")][bs("0x6")](bs("0x8"));return(s,i,r)=>{if(!r[bs("0xd")].test(i[bs("0x13")],s[bs("0x5")]))return;const x=i.markerRange.getWalker(),a=i[bs("0x13")][bs("0xa")],c=t.model.schema;let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x10")];u=u||c[bs("0x2")](e);const n=r[bs("0x20")].toViewElement(e);if(n&&n[bs("0x3")](bs("0x22")))return;bs("0x9")==t[bs("0x1d")]&&c.isBlock(e)&&!c[bs("0x17")](e)&&(e[bs("0x14")]||a[bs("0x1b")]?l&&l[bs("0xe")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[bs("0x15")])}function m(t){const s=r[bs("0xc")][bs("0x12")]("span",{class:bs("0x1c")+e}),x=r.mapper[bs("0x18")](t);n&&o[bs("0xf")][bs("0xb")](i[bs("0x1e")])&&r[bs("0xc")][bs("0x16")](bs("0x11"),s),r[bs("0xc")][bs("0x0")](x,s),r[bs("0x20")][bs("0x7")](s,i[bs("0x1e")])}u||g||!d||m(d)}}const Cs=["afterInit","commandParams","commandName","forceValue","CodeEditing","SuperscriptEditing","SubscriptEditing","getRanges","get","plugins","bold","format","FORMAT_SUBSCRIPT","UnderlineEditing","toLowerCase","code","subscript","_descriptionFactory","FORMAT_STRIKETHROUGH","from","strikethrough","superscript","italic","editor","ItalicEditing","isCollapsed","BoldEditing","enableCommand","FORMAT_SUPERSCRIPT","commands","FORMAT_ITALIC","StrikethroughEditing","FORMAT_BOLD","document"];var ys,ks;ys=Cs,ks=107,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x15"),As("0x13"),As("0x8"),As("0x21"),As("0x1a"),As("0x1"),As("0x0")];class Rs extends t.Plugin{[As("0x1d")](){const t=this[As("0x12")],e=t.model,n=t[As("0x4")][As("0x3")]("TrackChangesEditing"),o=t.locale;for(const o of vs){if(!t[As("0x4")].has(o))continue;const s=o.slice(0,-7)[As("0x9")](),i=t[As("0x18")][As("0x3")](s);n[As("0x16")](s,((t,o={})=>{const r=e[As("0x1c")].selection;if(r[As("0x14")])return void t(o);const x=void 0!==o.forceValue?o.forceValue:!i.value;e.change((()=>{const t=Array[As("0xe")](r[As("0x2")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0xc")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[As("0x1f")]===t)return s[As("0x1e")][0][As("0x20")]?{type:As("0x6"),content:Yo(o,"*Format:* %0",e)}:{type:As("0x6"),content:Yo(o,"*Remove format:* %0",e)}}))}s(As("0x5"),Yo(o,As("0x1b"))),s(As("0x11"),Yo(o,As("0x19"))),s("underline",Yo(o,"FORMAT_UNDERLINE")),s(As("0xa"),Yo(o,"FORMAT_CODE")),s(As("0xf"),Yo(o,As("0xd"))),s(As("0xb"),Yo(o,As("0x7"))),s(As("0x10"),Yo(o,As("0x17")))}}const Is=["registerDescriptionCallback","parent","BlockQuoteEditing","get","model","checkChild","commandName","locale","getSelectedBlocks","plugins","format","commands","commandParams","$root","editor","afterInit","from","selection","TrackChangesEditing","change","name","markBlockFormat","blockQuote","filter","*Format:* %0"];var Ss,Ls;Ss=Is,Ls=455,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ns("0xa")](){const t=this[Ns("0x9")],e=t[Ns("0x2")];if(!t[Ns("0x4")].has(Ns("0x16")))return;const n=t[Ns("0x4")][Ns("0x17")](Ns("0xd")),o=this[Ns("0x9")][Ns("0x6")][Ns("0x17")](Ns("0x11"));n.enableCommand(Ns("0x11"),((e,s={})=>{const i=this[Ns("0x9")][Ns("0x18")].document[Ns("0xc")],r=s&&void 0!==s.forceValue?s.forceValue:!o.value;let x=[];if(r){const e=Array[Ns("0xb")](i[Ns("0x3")]()).filter((t=>Ms(t)||function(t,e){const n=e[Ns("0x0")](t[Ns("0x15")],Ns("0x11")),o=e.checkChild([Ns("0x8"),Ns("0x11")],t);return n&&o}(t,this.editor[Ns("0x18")].schema)));x=I(e,t[Ns("0x18")])}else{const e=Array[Ns("0xb")](i[Ns("0x3")]())[Ns("0x12")]((t=>Ms(t)));x=I(e,t[Ns("0x18")])}t[Ns("0x18")][Ns("0xe")]((()=>{for(const t of x)n[Ns("0x10")](t,{commandName:Ns("0x11"),commandParams:[{forceValue:r}]})}))})),n._descriptionFactory[Ns("0x14")]((t=>{const{data:n}=t;if(n&&Ns("0x11")==n[Ns("0x1")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[Ns("0x7")][0].forceValue?{type:Ns("0x5"),content:Yo(e,Ns("0x13"),t)}:{type:Ns("0x5"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ms(t){return Ns("0x11")==t[Ns("0x15")][Ns("0xf")]}const Os=["editor","enableCommand","afterInit","ckbox","commands","plugins","get","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=410,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x0")](){const t=this[Ds("0x6")];t[Ds("0x2")][Ds("0x4")](Ds("0x1"))&&t[Ds("0x3")].get(Ds("0x5"))[Ds("0x7")](Ds("0x1"))}}const js=["markBlockFormat","model","codeBlock","languages","name","config","getSelectedBlocks","enableCommand","parent","forceValue","blockName","ELEMENT_CODE_BLOCK","plugins","CodeBlock","change","registerElementLabel","commandParams","language","outdentCodeBlock","value","registerDescriptionCallback","format","filter","get","afterInit","has","isLimit","TrackChangesEditing","document","checkChild","from","find","*Format:* %0","*Remove format:* %0"];var Us,Gs;Us=js,Gs=379,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x13")](){const t=this.editor;if(!t.plugins[Hs("0x14")](Hs("0x8")))return;const e=t[Hs("0x7")][Hs("0x12")](Hs("0x16")),n=t.locale,o=t[Hs("0x0")].get(Hs("0x1f"))[Hs("0x20")],s=t.commands.get("codeBlock");e.enableCommand("indentCodeBlock"),e[Hs("0x2")](Hs("0xd")),e.enableCommand(Hs("0x1f"),((n,i={})=>{const r=t[Hs("0x1e")],x=t[Hs("0x1e")][Hs("0x17")].selection,a=i&&void 0!==i[Hs("0x4")]?i[Hs("0x4")]:!s[Hs("0xe")];let c;i[Hs("0xc")]||(i.language=o[0][Hs("0xc")]),c=a?Array[Hs("0x19")](x[Hs("0x1")]())[Hs("0x11")]((t=>{return Ws(t)||(e=t,n=r.schema,!e.is("rootElement")&&!n[Hs("0x15")](e)&&n[Hs("0x18")](e[Hs("0x3")],Hs("0x1f")));var e,n})):Array.from(x[Hs("0x1")]())[Hs("0x11")]((t=>Ws(t)));const l=I(c,r);r[Hs("0x9")]((()=>{for(const t of l)e[Hs("0x1d")](t,{commandName:Hs("0x1f"),commandParams:[{...i,forceValue:a}],formatGroupId:Hs("0x5")})}))})),e._descriptionFactory[Hs("0xa")]("codeBlock",(t=>Yo(n,Hs("0x6"),t))),e._descriptionFactory[Hs("0xf")]((t=>{const e=n.t,{type:s,data:i}=t;if("formatBlock"==s&&i&&Hs("0x1f")==i.commandName){const t=i[Hs("0xb")][0][Hs("0xc")],s=e(o[Hs("0x1a")]((e=>e.language===t)).label);return i[Hs("0xb")][0].forceValue?{type:Hs("0x10"),content:Yo(n,Hs("0x1b"),Yo(n,Hs("0x6"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x1c"),Yo(n,Hs("0x6"),1))}}}))}}function Ws(t){return Hs("0x1f")==t[Hs("0x21")]}const Vs=["has","TrackChangesEditing","get","editor","plugins","enableCommand","afterInit","addCommentThread","CommentsEditing"];var Ks,qs;Ks=Vs,qs=243,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{[Xs("0x6")](){const t=this[Xs("0x3")];t[Xs("0x4")][Xs("0x0")](Xs("0x8"))&&t[Xs("0x4")][Xs("0x2")](Xs("0x1"))[Xs("0x5")](Xs("0x7"))}}var Js=n(181);const Qs=["buffer","plugins","markerName","TrackChangesEditing","createRange","writer","unbindElementFromMarkerName","high","enableCommand","uiElement","modifySelection","forward","init","detach","root","rootName","markerNameToElements","editor","get","delete","removeMarker:suggestion:deletion","requires","data","remove","showSuggestionHighlights","selection","bind","setSelection","fromRange","deleteForward","isCollapsed","$graveyard","mapper","addMarker:suggestion:deletion","editing","downcastDispatcher","model","merge","unit"];var Zs,Ys;Zs=Qs,Ys=336,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const ti=function(t,e){return Qs[t-=0]};class ei extends t.Plugin{static get[ti("0x24")](){return[Js.Delete]}[ti("0x1b")](){const t=this[ti("0x20")],e=t[ti("0x10")].get(ti("0x12"));e.enableCommand(ti("0x22"));const n=t.commands[ti("0x21")](ti("0x5"));e[ti("0x17")]("deleteForward",((e,o={})=>{const s=t[ti("0xc")].createSelection(t.model.document[ti("0x1")]);s[ti("0x6")]&&t[ti("0xc")][ti("0x19")](s,{direction:ti("0x1a"),unit:o[ti("0xe")]});const i=s.getFirstRange(),x=r.LiveRange[ti("0x4")](i);let a;e(o),a=ti("0x7")==x[ti("0x1d")][ti("0x1e")]?t[ti("0xc")][ti("0x13")](i.start):t[ti("0xc")][ti("0x13")](x.start,x.end),x[ti("0x1c")](),t[ti("0xc")].enqueueChange(n[ti("0xf")].batch,(t=>{n[ti("0xf")].lock(),t[ti("0x3")](t.createRange(a.end)),n[ti("0xf")].unlock()}))})),t.editing[ti("0xb")].on(ti("0x9"),Ts(t,"merge"),{priority:ti("0x16")}),t[ti("0x25")].downcastDispatcher.on(ti("0x9"),((e,n,o)=>{o.options[ti("0x0")]&&Ts(t,ti("0xd"),{showActiveMarker:!1})[ti("0x2")](this)(e,n,o)}),{priority:ti("0x16")}),t[ti("0xa")].downcastDispatcher.on(ti("0x23"),((t,e,n)=>{const o=n[ti("0x8")][ti("0x1f")](e.markerName);if(o)for(const t of o)t.is(ti("0x18"))&&(n.mapper[ti("0x15")](t,e[ti("0x11")]),n[ti("0x14")][ti("0x26")](t))}),{priority:"high"})}}const ni=["fromRange","ELEMENT_NUMBERED_LIST","map","ELEMENT_","start","accept","bulletedList","ELEMENT_BULLETED_LIST","DocumentListEditing","*Format:* insert into %0","list.multiBlock","mergeListItemBackward","numberedList","from","refresh","isFirstBlockOfListItem","commandName","ELEMENT_LIST_ITEM","getAttribute","slice","isObject","next","registerElementLabel","config","mergeListItemForward","before","markBlockFormat","detach","toUpperCase","TrackChangesEditing","execute","documentList","splitListItemBefore","add","outdentList","nodeAfter","plugins","forceValue","indentList","createPositionAt","parent","*Format:* remove from %0","getSelectedBlocks","nextSibling","change","length","enableCommand","format","_LIST","createRange","multipleBlocks","formatBlock","splitListItemAfter","_descriptionFactory","editor","document","commands","after","containsItem","*Change to:* %0","schema","*Outdent:* %0","getRanges","get","selection","setSelection","listType","value","registerDescriptionCallback","listItemId","registerCustomCallback","model","end","push","listIndent","commandParams"];var oi,si;oi=ni,si=390,function(t){for(;--t;)oi.push(oi.shift())}(++si);const ii=function(t,e){return ni[t-=0]};class ri extends t.Plugin{afterInit(){const t=this[ii("0x2c")];if(!t[ii("0x1a")].has(ii("0x4a")))return;const e=t.locale,n=t.plugins[ii("0x35")](ii("0x13")),o=t[ii("0x1a")][ii("0x35")]("DocumentListUtils");function s(e){return()=>{const s=t[ii("0x2e")][ii("0x35")](e);if(s[ii("0x39")]&&!t.config[ii("0x35")](ii("0x0")))return void t[ii("0x14")]("paragraph",{});let i=Array.from(t[ii("0x3d")][ii("0x2d")][ii("0x36")][ii("0x20")]());if(a(e)){i=o.expandListBlocksToCompleteList(i);const t=[];for(const e of i)o[ii("0x5")](e)&&t[ii("0x3f")](e);i=t}t[ii("0x3d")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:ii("0x38")},[],ii("0x15"))}))}}function i(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t.hasAttribute(ii("0x3b"))));return n>-1&&(e=e[ii("0x9")](0,n)),e}(t[ii("0x3d")][ii("0x2d")][ii("0x36")][ii("0x20")]()),s=o[o[ii("0x23")]-1],i=t.model[ii("0x32")][ii("0xa")](s)?ii("0x2f"):"end",r=t[ii("0x3d")][ii("0x27")](t[ii("0x3d")][ii("0x1d")](o[0],ii("0xf")),t.model[ii("0x1d")](s,i));t[ii("0x3d")][ii("0x22")]((()=>{n[ii("0x10")](r,{commandName:e,commandParams:[],formatGroupId:ii("0x38")},function(t){const e=new Set;for(const n of t){let t=n[ii("0x21")];for(;t&&t[ii("0x8")]("listIndent")>n[ii("0x8")](ii("0x40"));)e[ii("0x17")](t),t=t[ii("0x21")]}return Array[ii("0x3")](e)}(o))}))}}function x(e){return()=>{const o=t[ii("0x3d")][ii("0x2d")][ii("0x36")][ii("0x20")]()[ii("0xb")]().value,s=t[ii("0x3d")][ii("0x1d")](o,ii("0xf")),i=t[ii("0x3d")][ii("0x1d")](o,0),r=t[ii("0x3d")][ii("0x27")](s,i);t.model[ii("0x22")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:ii("0x38")})}))}}function a(e){const n=t[ii("0x2e")][ii("0x35")](ii("0x48"))[ii("0x39")],o=t[ii("0x2e")][ii("0x35")](ii("0x2"))[ii("0x39")];return ii("0x2")===e?n:o}n[ii("0x24")](ii("0x2"),s(ii("0x2"))),n[ii("0x24")]("bulletedList",s(ii("0x48"))),n.enableCommand(ii("0x1c"),i("indentList")),n[ii("0x24")]("outdentList",i(ii("0x18"))),n[ii("0x24")](ii("0x2a"),x(ii("0x2a"))),n.enableCommand(ii("0x16"),x("splitListItemBefore")),n._descriptionFactory[ii("0xc")]((function(e){const n=!t[ii("0x3d")][ii("0x32")].isObject(e),o=e.previousSibling,s=e.nextSibling,i=e[ii("0x8")](ii("0x3b")),r=!o||o[ii("0x8")](ii("0x3b"))!==i,x=!s||s[ii("0x8")]("listItemId")!==i;return n&&Boolean(i)&&r&&x}),(t=>Yo(e,ii("0x7"),t))),n[ii("0x2b")][ii("0x3a")]((function(n){const{data:o}=n;if(!o)return;let s,i,r,x;switch(o.commandName){case ii("0x48"):r=o[ii("0x41")][0][ii("0x1b")],x=a(o[ii("0x6")]),s=r?ii("0x4b"):"*Format:* remove from %0",!x&&t[ii("0xd")][ii("0x35")](ii("0x0"))||(s="*Change to:* %0"),i={type:ii("0x25"),content:Yo(e,s,Yo(e,ii("0x49")))};break;case ii("0x2"):r=o[ii("0x41")][0].forceValue,x=a(o[ii("0x6")]),s=ii(r?"0x4b":"0x1f"),!x&&t[ii("0xd")].get("list.multiBlock")||(s=ii("0x31")),i={type:ii("0x25"),content:Yo(e,s,Yo(e,ii("0x43")))};break;case ii("0x1c"):s="*Indent:* %0",i={type:"format",content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))};break;case ii("0x18"):s=function(t){const e=t.getFirstRange();let n=e[ii("0x46")].nodeAfter;for(;n&&e[ii("0x30")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n[ii("0x21")]}return!0}(n)?Yo(e,ii("0x1f"),Yo(e,function(t){const e=t.getFirstRange()[ii("0x46")].nodeAfter;return ii("0x45")+e.getAttribute(ii("0x38"))[ii("0x12")]()+ii("0x26")}(n))):Yo(e,ii("0x33"),Yo(e,ii("0x7"))),i={type:ii("0x25"),content:s};break;case ii("0x1"):case ii("0xe"):!1===o[ii("0x28")]&&(s="*Merge:* %0",i={type:"deletion",content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))})}return i})),n._suggestionFactory[ii("0x3c")](ii("0x29"),ii("0x15"),ii("0x47"),(function(e,n){const o=[];for(let n of e)n[ii("0x46")].nodeAfter===n[ii("0x3e")][ii("0x1e")]&&(n=t[ii("0x3d")].createRange(t[ii("0x3d")].createPositionAt(n[ii("0x46")][ii("0x19")],0))),o.push(n);t[ii("0x3d")][ii("0x22")]((e=>{const s=t[ii("0x3d")][ii("0x2d")][ii("0x36")],i=Array[ii("0x3")](s[ii("0x34")]())[ii("0x44")]((t=>r.LiveRange[ii("0x42")](t)));e[ii("0x37")](o),t.commands[ii("0x35")](n.commandName)[ii("0x4")](),n.commandParams[ii("0x3f")]({forceDefaultExecution:!0}),t.execute(n.commandName,...n.commandParams),e[ii("0x37")](i);for(const t of i)t[ii("0x11")]()}))}))}}var xi=n(331);const ai=["high","split","options","TrackChangesEditing","unbindElementFromMarkerName","fire","data","nextSibling","removeMarker:suggestion:insertion","createRange","enter","addMarker:suggestion:insertion","showSuggestionHighlights","enterBlock","markerName","editing","end","parent","remove","editor","document","init","downcastDispatcher","plugins","afterExecute","hasClass","markInsertion","commands","createPositionAt","mapper","selection","model","enableCommand","get"];var ci,li;ci=ai,li=456,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{static get requires(){return[xi.Enter]}[di("0x7")](){const t=this[di("0x5")],e=t[di("0x9")][di("0x13")](di("0x17")),n=t[di("0xd")][di("0x13")](di("0x1e"));e[di("0x12")](di("0x1e"),(()=>{t.model.change((o=>{const s=t[di("0x11")][di("0x6")][di("0x10")],i=s.getFirstPosition(),x=r.LiveRange.fromRange(s.getFirstRange());if(n[di("0x21")](o)){const n=t.model[di("0xe")](i[di("0x3")][di("0x1b")],0),s=o[di("0x1d")](i,n);e[di("0xc")](s)}else o.setSelection(o[di("0x1d")](x[di("0x2")]));x.detach(),n[di("0x19")](di("0xa"),{writer:o})}))})),t[di("0x1")][di("0x8")].on(di("0x1f"),Ts(t,di("0x15")),{priority:di("0x14")}),t.editing.downcastDispatcher.on(di("0x1c"),((t,e,n)=>{const o=n[di("0xf")].markerNameToElements(e[di("0x0")]);if(o)for(const t of o)t[di("0xb")]("ck-suggestion-marker-split")&&(n[di("0xf")][di("0x18")](t,e[di("0x0")]),n.writer[di("0x4")](t))}),{priority:"high"}),t[di("0x1a")][di("0x8")].on(di("0x1f"),((e,n,o)=>{o[di("0x16")][di("0x20")]&&Ts(t,"split",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:di("0x14")})}}const gi=["start","findPrevious","item","afterInit","handleFindCommand","editor","enableCommand","getRange","plugins","getIntersection","FindAndReplaceEditing","FindAndReplaceUtils","replace","end","findByTextCallback","bind","markers","createPositionAt","string","findNext","getMarkersGroup","filter","_isInDeletionRange","has","model","TrackChangesEditing"];var mi,fi;mi=gi,fi=228,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x9")](){if(!this[hi("0xb")][hi("0xe")][hi("0x3")](hi("0x10")))return;const t=this[hi("0xb")][hi("0xe")].get(hi("0x5"));t.enableCommand("find",this[hi("0xa")][hi("0x15")](this)),t.enableCommand(hi("0x19")),t[hi("0xc")](hi("0x7")),t[hi("0xc")](hi("0x12")),t[hi("0xc")]("replaceAll")}[hi("0xa")](t,e,n={}){const o=this[hi("0xb")][hi("0xe")].get(hi("0x11"));void 0!==n&&t((t=>(hi("0x18")==typeof e?o[hi("0x14")](e,n):e)(t)[hi("0x1")]((e=>!1===this._isInDeletionRange(e,t[hi("0x8")])))),n)}[hi("0x2")](t,e){const n=this[hi("0xb")][hi("0x4")].createRange(this[hi("0xb")][hi("0x4")][hi("0x17")](e,t[hi("0x6")]),this[hi("0xb")].model[hi("0x17")](e,t[hi("0x13")]));for(const t of this[hi("0xb")][hi("0x4")][hi("0x16")][hi("0x0")]("suggestion:deletion"))if(null!==n[hi("0xf")](t[hi("0xd")]()))return!0;return!1}}const bi=["FontBackgroundColorEditing","fontColor.colors","has","format","fontFamily","plugins","title","find","FontColorEditing","fontBackgroundColor","FontSizeEditing","model","toLowerCase","*Reset font family*","_enableCommand","fontBackgroundColor.colors","fontSize","value","config","markInlineFormat","label","*Set font background color:* %0","trim","commandName","from","FontFamilyEditing","isCollapsed","get","registerDescriptionCallback","document","enableCommand","TrackChangesEditing","fontSize.options","getRanges","editor","commandParams","FontSize","fontColor"];var Ei,_i;Ei=bi,_i=443,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]},Ci=[{pluginName:Ti("0x17"),commandName:Ti("0x1d")},{pluginName:Ti("0x0"),commandName:Ti("0x11")},{pluginName:Ti("0x15"),commandName:Ti("0xc")},{pluginName:Ti("0xd"),commandName:Ti("0x16")}];class yi extends t.Plugin{afterInit(){const t=this[Ti("0x9")].locale;for(const{pluginName:t,commandName:e}of Ci)this[Ti("0x9")].plugins[Ti("0xf")](t)&&this[Ti("0x1b")](e);this.editor[Ti("0x12")][Ti("0x2")]("TrackChangesEditing")._descriptionFactory[Ti("0x3")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o.commandName){const e=o[Ti("0xa")][0][Ti("0x1e")];if(e){const o=n(this[Ti("0x9")][Ti("0x12")][Ti("0x2")](Ti("0xb")).normalizeSizeOptions(this[Ti("0x9")].config[Ti("0x2")](Ti("0x7")))[Ti("0x14")]((t=>t[Ti("0x18")]==e))[Ti("0x13")])[Ti("0x19")]();return{type:Ti("0x10"),content:Yo(t,"*Set font size:* %0",o)}}return{type:Ti("0x10"),content:Yo(t,"*Reset font size*")}}if(Ti("0x11")==o[Ti("0x24")]){const e=o[Ti("0xa")][0][Ti("0x1e")];return e?{type:Ti("0x10"),content:Yo(t,"*Set font family:* %0",e)}:{type:Ti("0x10"),content:Yo(t,Ti("0x1a"))}}if("fontColor"==o[Ti("0x24")]){const e=o[Ti("0xa")][0][Ti("0x1e")];if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x9")][Ti("0x1f")][Ti("0x2")](Ti("0xe")))[Ti("0x14")]((t=>t[Ti("0x18")]==e));let i=e,r="";return o&&(i=o[Ti("0x21")],r=n(i)[Ti("0x19")]()),{type:Ti("0x10"),content:Yo(t,"*Set font color:* %0",r).trim(),color:{value:e,title:r||i}}}return{type:"format",content:Yo(t,"*Reset font color*")}}if("fontBackgroundColor"==o[Ti("0x24")]){const e=o[Ti("0xa")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x9")][Ti("0x1f")].get(Ti("0x1c"))).find((t=>t[Ti("0x18")]==e));let i=e,r="";return o&&(i=o[Ti("0x21")],r=n(i).toLowerCase()),{type:Ti("0x10"),content:Yo(t,Ti("0x22"),r)[Ti("0x23")](),color:{value:e,title:r||i}}}return{type:Ti("0x10"),content:Yo(t,"*Reset font background color*")}}}}))}[Ti("0x1b")](t){const e=this[Ti("0x9")];e.plugins[Ti("0x2")](Ti("0x6"))[Ti("0x5")](t,((n,o={})=>{const s=e.model[Ti("0x4")].selection,i=o[Ti("0x1e")];s[Ti("0x1")]?n(o):e.model.change((()=>{const n=Array[Ti("0x25")](s[Ti("0x8")]());for(const o of n){const n=i?[o]:Es(t,o,e[Ti("0x18")]);for(const o of n)e[Ti("0x12")][Ti("0x2")]("TrackChangesEditing")[Ti("0x20")](o,{commandName:t,commandParams:[{value:i}]})}}))}))}}const ki=["markInlineFormat","getAttributeProperties","registerDescriptionCallback","keys","length","modifySelection","format","word","fontSize","model","copyFormat","getRanges","isFormatting","*Remove all formatting*","find","commandParams","fontBackgroundColor","FontSize","toUpperCase","pasteFormat","getAttributes","backward","afterInit","TrackChangesEditing","commandName","join","push","fontColor","selection","split","enableCommand","getSelectedBlocks","config","locale","_descriptionFactory","toLowerCase","get","charAt","*Set format to:* %0","slice","commands","entries","document","plugins","schema","forward","label","fontSize.options","normalizeSizeOptions","change","editor"];var Ai,vi;Ai=ki,vi=243,function(t){for(;--t;)Ai.push(Ai.shift())}(++vi);const Ri=function(t,e){return ki[t-=0]};class Ii extends t.Plugin{[Ri("0x22")](){const t=this[Ri("0xb")],n=t.model,o=n[Ri("0x3")][Ri("0x28")],s=t[Ri("0x4")][Ri("0x30")](Ri("0x23")),i=t[Ri("0x2d")],r=t[Ri("0x1")][Ri("0x30")](Ri("0x16")),x=t.commands.get("pasteFormat");r&&x&&(s[Ri("0x2a")](Ri("0x1f"),((t,i={})=>{const r=i;n[Ri("0xa")]((()=>{const t=Array.from(o.getRanges()),i=o.isCollapsed?[Si(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Ri("0x20")]()){const t=e[Ri("0xd")](n);t&&t[Ri("0x18")]&&(yield n)}}(t,n));for(const e of t[Ri("0x17")]())for(const t of e.getItems())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Ri("0x2b")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Ri("0x5")]))||0!==Object[Ri("0xf")](r).length)for(const t of i)s[Ri("0xc")](t,{commandName:Ri("0x1f"),commandParams:[r]})}))})),s[Ri("0x2e")][Ri("0xe")]((e=>{const{data:n}=e;if(n&&Ri("0x1f")===n[Ri("0x24")]){const e=[],o=n[Ri("0x1b")][0];for(const[n,s]of Object[Ri("0x2")](o))e[Ri("0x26")](Li(t,n,s));return e[Ri("0x10")]?{type:Ri("0x12"),content:Yo(i,Ri("0x32"),e[Ri("0x25")](", "))}:{type:Ri("0x12"),content:Yo(i,Ri("0x19"))}}})),t[Ri("0x4")][Ri("0x30")](Ri("0x23"))[Ri("0x2a")](Ri("0x16")))}}function Si(t,e){const n=t.createSelection(e);t[Ri("0x11")](n,{unit:Ri("0x13"),direction:Ri("0x21")});const o=n.getFirstPosition();t.modifySelection(n,{unit:Ri("0x13"),direction:Ri("0x6")});const s=n.getLastPosition();return t.createRange(o,s)}function Li(t,e,n){const o=t.locale.t,i=e[Ri("0x29")](/(?=[A-Z])/)[Ri("0x25")](" "),r=o(i[Ri("0x31")](0)[Ri("0x1e")]()+i[Ri("0x0")](1))[Ri("0x2f")]();if("boolean"==typeof n)return r;if(Ri("0x27")===e||Ri("0x1c")===e){const e=(0,s.normalizeColorOptions)(t[Ri("0x2c")][Ri("0x30")]("fontColor.colors"))[Ri("0x1a")]((t=>t[Ri("0x15")]==n));return r+" ("+(e?o(e[Ri("0x7")])[Ri("0x2f")]():n)+")"}if(Ri("0x14")===e&&isNaN(parseFloat(n))){const e=t.plugins[Ri("0x30")](Ri("0x1d"))[Ri("0x9")](t[Ri("0x2c")][Ri("0x30")](Ri("0x8")))[Ri("0x1a")]((t=>t[Ri("0x15")]==n));return r+" ("+(e?o(e.title).toLowerCase():n)+")"}return r+" ("+n+")"}const Ni=["isObject","model","find","value","get","editor","getSelectedBlocks","ELEMENT_HEADING_CUSTOM","formatBlock","from","plugins","heading","HeadingEditing","_descriptionFactory","*Change to:* %0","format","name","paragraph","TrackChangesEditing","parent","change","match","registerElementLabel","schema","enableCommand","selection","checkChild","heading.options","has","locale","commandName","config","registerDescriptionCallback"];var wi,Mi;wi=Ni,Mi=127,function(t){for(;--t;)wi.push(wi.shift())}(++Mi);const Oi=function(t,e){return Ni[t-=0]};class Fi extends t.Plugin{afterInit(){const t=this[Oi("0xa")],e=t[Oi("0x1")],n=t[Oi("0x3")][Oi("0x9")](Oi("0x20"));if(!t[Oi("0xf")][Oi("0x0")](Oi("0x11")))return;const o=t[Oi("0xf")][Oi("0x9")](Oi("0x17"));o[Oi("0x1d")](Oi("0x10"),((e,n)=>{const s=n[Oi("0x8")],i=Array[Oi("0xe")](this[Oi("0xa")][Oi("0x6")].document[Oi("0x1e")][Oi("0xb")]()).filter((t=>{return e=t,n=s,(o=this[Oi("0xa")][Oi("0x6")][Oi("0x1c")])[Oi("0x1f")](e[Oi("0x18")],n)&&!o[Oi("0x5")](e)&&e[Oi("0x15")]!=n;var e,n,o}));t[Oi("0x6")][Oi("0x19")]((()=>{for(const t of i)o.markBlockFormat(t,{commandName:Oi("0x10"),commandParams:[n],formatGroupId:"blockName"},_s(t))}))}));for(const t of n)Oi("0x16")!=t[Oi("0x6")]&&o[Oi("0x12")][Oi("0x1b")](t[Oi("0x6")],(e=>{const n=Pi(t[Oi("0x6")]);return null!==n?s(e,n):i(e,t.title)}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function i(t,n){return Yo(e,Oi("0xc"),[t,n])}o[Oi("0x12")][Oi("0x4")]((t=>{const{type:o,data:r}=t;if(Oi("0xd")==o&&r&&Oi("0x10")==r[Oi("0x2")]){const t=r.commandParams[0].value,o=Pi(t);if(null!==o)return{type:Oi("0x14"),content:Yo(e,Oi("0x13"),s(1,o))};const x=n[Oi("0x7")]((e=>e[Oi("0x6")]===t)).title;return{type:"format",content:Yo(e,Oi("0x13"),i(1,x))}}}))}}function Pi(t){const e=t[Oi("0x1a")](/^heading(\d+)$/);return e?e[1]:null}const Di=["toLowerCase","afterInit","value","*Set highlight:* %0","plugins","highlight","createRange","_descriptionFactory","model","getLastMatchingPosition","backward","getRanges","color","get","commandName","hasAttribute","title","isCollapsed","enableCommand","push","FORMAT_HIGHLIGHT","format","TrackChangesEditing","getAttribute","highlight.options","getFirstPosition","selection","config","locale","find","*Remove highlight*","change"];var Bi,ji;Bi=Di,ji=191,function(t){for(;--t;)Bi.push(Bi.shift())}(++ji);const Ui=function(t,e){return Di[t-=0]};class Gi extends t.Plugin{[Ui("0x2")](){const t=this.editor;if(!t.plugins.has("HighlightEditing"))return;const e=t[Ui("0x5")][Ui("0xe")](Ui("0x17"));e[Ui("0x13")]("highlight",((n,o={})=>{const s=t[Ui("0x9")].document[Ui("0x1b")],i=s[Ui("0x18")](Ui("0x6"));let r=o[Ui("0x3")],x=[];if(s[Ui("0x12")]){const e=s[Ui("0x1a")]();if(!s[Ui("0x10")](Ui("0x6")))return void n(o);{const n=t=>t.item[Ui("0x18")]("highlight")===i,o=e[Ui("0xa")](n,{direction:Ui("0xb")}),s=e[Ui("0xa")](n);x=[t[Ui("0x9")][Ui("0x7")](o,s)],r==i&&(r=null)}}else for(const e of s[Ui("0xc")]())r?x.push(e):x[Ui("0x14")](...Es(Ui("0x6"),e,t[Ui("0x9")]));t[Ui("0x9")][Ui("0x0")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Ui("0x6"),commandParams:[{value:r}]})}))}));const n=t[Ui("0x1d")];e[Ui("0x8")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Ui("0x6")==s[Ui("0xf")]){const e=n.t,o=s.commandParams[0][Ui("0x3")];if(o){const s=t[Ui("0x1c")].get(Ui("0x19"))[Ui("0x1e")]((t=>t[Ui("0x9")]==o)),i=e(s.title)[Ui("0x1")]();return{type:Ui("0x16"),content:Yo(n,Ui("0x4"),i),color:{value:s[Ui("0xd")],title:s[Ui("0x11")]}}}return{type:"format",content:Yo(n,Ui("0x1f"),Yo(n,Ui("0x15")))}}}))}}const Hi=["addClass","conversion","showSuggestionHighlights","_descriptionFactory","get","high","horizontalLine","afterInit","for","TrackChangesEditing","div","plugins","dataDowncast","createEmptyElement"];var zi,Wi;zi=Hi,Wi=415,function(t){for(;--t;)zi.push(zi.shift())}(++Wi);const Vi=function(t,e){return Hi[t-=0]};class Ki extends t.Plugin{[Vi("0xc")](){const t=this.editor;if(!t[Vi("0x2")].has("HorizontalLineEditing"))return;t[Vi("0x2")][Vi("0x9")](Vi("0x0")).enableCommand(Vi("0xb"));const e=t[Vi("0x2")][Vi("0x9")](Vi("0x0")),n=t.locale;e[Vi("0x8")].registerElementLabel(Vi("0xb"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Vi("0x6")][Vi("0xd")](Vi("0x3")).elementToStructure({model:Vi("0xb"),view:(t,{writer:e,options:n})=>{if(!n[Vi("0x7")])return null;const o=e.createContainerElement(Vi("0x1")),s=e[Vi("0x4")]("hr");return e[Vi("0x5")]("ck-horizontal-line",o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:Vi("0xa")})}}const qi=["afterInit","value","has","editor","getSelectedElement","plugins","selection","get","rawHtml","rawHtmlApi","cancel","getAttribute","locale","change","commandName","element","_descriptionFactory","view","document","format","ELEMENT_HTML_EMBED","*Change %0 content*","registerElementLabel","HtmlEmbed","htmlEmbed","TrackChangesEditing","markBlockFormat"];var Xi,$i;Xi=qi,$i=373,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Ji=function(t,e){return qi[t-=0]};class Qi extends t.Plugin{[Ji("0x5")](){const t=this[Ji("0x8")];if(!t[Ji("0xa")][Ji("0x7")](Ji("0x1")))return;const e=t.plugins[Ji("0xc")](Ji("0x3")),n=t[Ji("0x11")],o=t.editing[Ji("0x16")][Ji("0x17")][Ji("0xb")];e[Ji("0x15")][Ji("0x0")]("rawHtml",(t=>Yo(n,Ji("0x19"),t))),t[Ji("0xa")][Ji("0xc")]("TrackChangesEditing").enableCommand(Ji("0x2"),((n,s)=>{const i=t.model,r=i[Ji("0x17")].selection;i[Ji("0x12")]((()=>{const t=function(t){const e=t[Ji("0x9")]();return e&&e.is(Ji("0x14"),Ji("0xd"))?t[Ji("0x9")]():null}(r);if(!t)return void n(null);const i=t[Ji("0x10")](Ji("0x6"))||"";void 0!==s&&s!==i&&(e[Ji("0x4")](t,{commandName:Ji("0x2"),commandParams:[s]}),o.getSelectedElement().getCustomProperty(Ji("0xe"))[Ji("0xf")]())}))})),e[Ji("0x15")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Ji("0x2")==e[Ji("0x13")]){const t=Yo(n,Ji("0x19"));return{type:Ji("0x18"),content:Yo(n,Ji("0x1a"),t)}}}))}}const Zi=["registerElementLabel","getAttribute","createRangeOn","get","suggestion","value","convertBlockImageToInline","ELEMENT_IMAGE","refresh","isInlineImage","Inline image to block image","plugins","getCaptionFromImageModelElement","ImageStyleEditing","ImageResize","chain","imageInline","_suggestionFactory","resizedWidth","imageBlock","isBlockImage","ImageUtils","uploadImage","registerDescriptionCallback","commands","_findSuggestions","type","accept","Users","next","resizeImage","locale","schema","head","backward","newRange","filter","nodeBefore","findIndex","getNearestSelectionRange","hasSuggestion","getSuggestionCallback","end","model","getChangedMarkers","change","ImageBlockEditing","ImageInlineEditing","imageStyle","getContainedElement","isInContent","commandReversedParams","imageTypeBlock","differ","normalizedStyles","document","enableCommand","join","isBefore","format","commandParams","imageTypeInline","getFirstRange","convertInlineImageToBlock","_splitMarkerName","imageCaption","element","*Set image width:* %0","nodeAfter","FORMAT_SIDE_IMAGE","discardSuggestion","alt","registerCustomCallback","commandName","name","setImageNaturalSizeAttributes","ELEMENT_INLINE_IMAGE","deletion","getSuggestions","afterInit","markBlockFormat","discard","ImageCaptionEditing","formatBlock","imageStylePreApply","isOwn","has","detach","ImageUploadEditing","addObject","toggleImageCaption","formatInline","ImageCaptionUtils","forceDefaultExecution","width","markInsertion","fromPosition","_descriptionFactory","getClosestSelectedImageElement","markInlineFormat","imageStylePostApply","insertion","selection","side","createRange","start","isCollapsed","getSuggestion","isIntersecting","toNext","toPrevious","subType","imageTextAlternative","hasAttribute","ELEMENT_CAPTION","find","*Format:* %0","author","markDeletion","caption","length","newValue","Block image to inline image","TrackChangesEditing","ImageEditing","isEqual","removeObject"];var Yi,tr;Yi=Zi,tr=467,function(t){for(;--t;)Yi.push(Yi.shift())}(++tr);const er=function(t,e){return Zi[t-=0]};class nr extends t.Plugin{[er("0x78")](){const t=this.editor;if(!t.plugins[er("0x0")](er("0x26")))return;const n=t[er("0x34")][er("0x2c")](er("0x25")),o=t[er("0x34")][er("0x2c")](er("0x3e")),s={},i=t[er("0x48")];if(n[er("0x61")]("insertImage"),n[er("0xb")][er("0x29")](er("0x3c"),(t=>Yo(i,er("0x30"),t))),n._descriptionFactory[er("0x29")](er("0x39"),(t=>Yo(i,er("0x75"),t))),n[er("0xb")].registerElementLabel("caption",(()=>Yo(i,er("0x1c")))),t.plugins[er("0x0")](er("0x2"))&&n[er("0x61")](er("0x3f")),t[er("0x34")].has(er("0x57"))&&t[er("0x34")][er("0x0")](er("0x58"))&&(n.enableCommand("imageTypeInline",((e,s)=>{const i=o[er("0xc")](t.model.document[er("0x10")]);t[er("0x54")][er("0x56")]((()=>{n.markBlockFormat(i,{commandName:er("0x66"),commandParams:[s]},[],er("0x2f"))}))})),n[er("0x61")](er("0x5d"),((e,s)=>{t[er("0x54")].change((i=>{let x=o[er("0xc")](t.model[er("0x60")].selection),a=i[er("0x2b")](x);const c=r.LivePosition[er("0xa")](a[er("0x13")],er("0x18")),l=r.LivePosition.fromPosition(a[er("0x53")],er("0x17"));n[er("0x7")]((()=>e(s))),x=o[er("0xc")](t[er("0x54")].document[er("0x10")]),a=i[er("0x2b")](x);const d=i[er("0x12")](c,l);c[er("0x1")](),l[er("0x1")](),n.markBlockFormat(x,{commandName:er("0x66"),commandParams:[s]},[],er("0x68")),d.start.isBefore(a[er("0x13")])&&n[er("0x9")](i.createRange(d[er("0x13")],a[er("0x13")]),er("0x68")),a[er("0x53")][er("0x63")](d[er("0x53")])&&n.markInsertion(i[er("0x12")](a.end,d.end),"convertInlineImageToBlock")}))})),n[er("0x3a")][er("0x71")](er("0x7c"),er("0x68"),er("0x62"),(()=>!1)),n[er("0x3a")][er("0x71")](er("0x7c"),er("0x68"),er("0x44"),(()=>!1)),n[er("0x3a")][er("0x71")](er("0x7c"),er("0x68"),er("0x7a"),n[er("0x3a")][er("0x52")](er("0x7c"),"",er("0x44"))),n[er("0x3a")].registerCustomCallback("insertion","convertInlineImageToBlock","join",(()=>!1)),n._suggestionFactory[er("0x71")](er("0xf"),"convertInlineImageToBlock",er("0x7a"),(([e])=>{const o=n[er("0x3a")][er("0x52")]("insertion","",er("0x7a"));let s=e.start,i=e.end;const r=t[er("0x54")][er("0x49")][er("0x50")](s,er("0x4b")),x=t[er("0x54")][er("0x49")][er("0x50")](i,"forward");r[er("0x14")]&&(s=r[er("0x13")]),x[er("0x14")]&&(i=x[er("0x53")]),o([t[er("0x54")].createRange(s,i)])})),n[er("0x3a")][er("0x71")]("formatBlock","convertInlineImageToBlock",er("0x38"),c),n[er("0x3a")][er("0x71")](er("0xf"),er("0x68"),er("0x38"),c)),t.plugins[er("0x0")](er("0x7b"))&&(n[er("0x61")](er("0x4"),((e,s)=>{const i=t.plugins.get(er("0x6"));let r=o[er("0xc")](t.model.document.selection),x=i.getCaptionFromImageModelElement(r);t.model[er("0x56")]((()=>{if(x)return void n[er("0x20")](t.model.createRangeOn(x));const a=o.isBlockImage(r);e(s),r=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]),x=i[er("0x35")](r),n[er("0x9")](t[er("0x54")][er("0x2b")](x),a?null:er("0x6a"))}))})),n[er("0x3a")][er("0x71")](er("0xf"),"imageCaption","chain",c)),t[er("0x34")].has("ImageStyleEditing")){n.enableCommand("imageStyle",((s,i)=>{const r=t[er("0x34")].get(er("0x45")).me,x=t.commands[er("0x2c")](er("0x59"));let a=o[er("0xc")](t[er("0x54")].document.selection),c=t[er("0x54")][er("0x2b")](a),l=x[er("0x2e")];if(l==i.value)return;const d={commandName:er("0x59"),commandParams:[i],formatGroupId:(0,e.uid)()};t[er("0x54")].change((()=>{if(n[er("0x77")]().filter((t=>t[er("0x5b")]&&r==t[er("0x1f")]&&("formatBlock"==t[er("0x43")]||er("0x5")==t[er("0x43")])&&("imageStylePreApply"==t.subType||"imageStylePostApply"==t[er("0x19")])&&t.getFirstRange()[er("0x27")](c))).forEach((t=>n[er("0x6f")](t[er("0x4a")]))),a=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]),c=t[er("0x54")].createRangeOn(a),x[er("0x31")](),t[er("0x41")].get("imageTypeInline")[er("0x31")](),t[er("0x41")][er("0x2c")]("imageTypeBlock")[er("0x31")](),l=x.value,l!=i[er("0x2e")])return o[er("0x32")](a)&&x.shouldConvertImageType(i[er("0x2e")],a)?(s({...i,setImageSizes:!1}),a=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]),void n[er("0x79")](a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],er("0x7d"))):void(o[er("0x3d")](a)?n[er("0x79")](a,d,[],er("0xe")):n[er("0xd")](c,d,"imageStylePostApply"))}))}));for(const e of t[er("0x34")].get(er("0x36"))[er("0x5f")])s[e[er("0x73")]]=e.title.toLowerCase();n[er("0x3a")][er("0x71")]("formatBlock",er("0x7d"),"join",(()=>!1)),n._suggestionFactory[er("0x71")](er("0x7c"),er("0xe"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback(er("0x5"),er("0xe"),er("0x62"),(()=>!1)),n[er("0x3a")][er("0x71")]("formatBlock",er("0x7d"),er("0x44"),(([t])=>{o[er("0x74")](t[er("0x5a")]())})),n[er("0x3a")][er("0x71")]("formatBlock",er("0x7d"),er("0x7a"),((t,e)=>{n[er("0x3a")][er("0x52")](er("0x7c"),"",er("0x44"))(t,{commandName:e[er("0x72")],commandParams:e[er("0x5c")]})})),n._suggestionFactory.registerCustomCallback(er("0x7c"),er("0x7d"),er("0x38"),c)}const x=[{type:"formatBlock",subType:er("0x7d")},{type:er("0xf"),subType:er("0x6a")},{type:er("0x7c"),subType:er("0x68")},{type:"insertion",subType:er("0x68")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[er("0x43")]==e&&t[er("0x19")]==n)),i=x[er("0x4f")]((({type:t,subType:n})=>e[er("0x43")]==t&&e[er("0x19")]==n));if(s<0||i<0)return!1;const r=t[er("0x67")](),a=e[er("0x67")]();if((0==s||1==s)&&2==i&&r[er("0x16")](a))return!0;if(2==s&&3==i){const t=n[er("0x42")](r,er("0xf"))[er("0x4d")]((({suggestion:t,meta:e})=>e[er("0x7e")]&&er("0x68")==t.subType));if(t[er("0x22")]>1&&a[er("0x53")][er("0x27")](r[er("0x13")]))return!0;if(1==t[er("0x22")]&&(r[er("0x13")][er("0x27")](a[er("0x53")])||r[er("0x53")].isEqual(a[er("0x13")])))return!0}if(3==s&&3==i&&r[er("0x13")].isBefore(a[er("0x13")])){const t=r[er("0x53")][er("0x6d")],e=a[er("0x13")][er("0x4e")];return o[er("0x3d")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[er("0x54")][er("0x60")].registerPostFixer((()=>{let e=!1;const s=Array.from(t.model.document[er("0x5e")][er("0x55")]());for(const{name:t,data:i}of s){const{group:s,type:r,subType:x,id:a}=n[er("0x69")](t);if(er("0x2d")==s&&n[er("0x51")](a)){if(er("0x7c")==r&&(er("0x7d")==x||"imageStylePostApply"==x)){const t=n[er("0x15")](a);if(i.newRange){const s=t[er("0x67")]().getContainedElement();if(o[er("0x3d")](s))continue;n[er("0x6f")](t),e=!0}}if(er("0xf")==r&&er("0x6a")==x&&!i[er("0x4c")]){const t=n[er("0x15")](a);t[er("0x46")]&&t[er("0x46")][er("0x5b")]&&(n.discardSuggestion(t[er("0x46")]),e=!0)}}}return e})),t[er("0x34")][er("0x0")](er("0x37"))&&n.enableCommand(er("0x47"),((e,s)=>{const i=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]);i[er("0x2a")](er("0x3b"))!=s[er("0x8")]&&t.model[er("0x56")]((()=>{n[er("0x79")](i,{commandName:"resizeImage",commandParams:[s]})}))})),t[er("0x34")].has("ImageTextAlternativeEditing")&&n.enableCommand(er("0x1a"),((e,s)=>{const i=o[er("0xc")](t[er("0x54")][er("0x60")][er("0x10")]);(i[er("0x1b")](er("0x70"))?i[er("0x2a")](er("0x70")):"")!=s[er("0x23")]&&t[er("0x54")][er("0x56")]((()=>{n[er("0x79")](i,{commandName:er("0x1a"),commandParams:[s]})}))})),n[er("0xb")][er("0x40")]((t=>{if(x[er("0x1d")]((({type:e,subType:n})=>t[er("0x43")]==e&&t.subType==n)))return t.previous?{}:void 0})),n[er("0xb")].registerDescriptionCallback((t=>{if(er("0xf")==t.type||er("0x76")==t[er("0x43")]){const e=t[er("0x5a")]();if(e&&e.is(er("0x6b"),er("0x21")))return{type:er("0xf")==t.type?er("0x3"):er("0x28"),element:e,quantity:1}}})),n._descriptionFactory[er("0x40")]((t=>er("0x7c")==t[er("0x43")]&&er("0x68")==t[er("0x19")]?{type:"format",content:er("0x33")}:er("0x7c")==t[er("0x43")]&&er("0x2f")==t[er("0x19")]?{type:"format",content:er("0x24")}:void 0)),n[er("0xb")][er("0x40")]((t=>{const{data:e}=t;if(e){if(er("0x59")==e[er("0x72")]){const t=e[er("0x65")][0][er("0x2e")];return n=er("0x11")===t?Yo(i,er("0x6e")):s[t]||t,{type:"format",content:Yo(i,er("0x1e"),n)}}if(er("0x1a")==e[er("0x72")]){const t=e[er("0x65")][0].newValue;return t?{type:er("0x64"),content:Yo(i,"*Set image text alternative:* %0",'"'+t+'"')}:{type:"format",content:Yo(i,"*Remove image text alternative*")}}if("resizeImage"==e[er("0x72")]){const t=e[er("0x65")][0].width;return t?{type:er("0x64"),content:Yo(i,er("0x6c"),t)}:{type:er("0x64"),content:Yo(i,"*Reset image width*")}}}var n}))}}const or=["accept","getSelectedElement","*Format:* replace image URL","Users","TrackChangesEditing","commandParams","getSuggestionCallback","plugins","getContainedElement","source","discard","afterInit","registerDescriptionCallback","handleReplaceImageCommand","data","handleSuggestionDescription","_suggestionFactory","enableCommand","get","_descriptionFactory","formatBlock","getAttribute","replaceImageSource","selection","editor","subType","author","model","src","registerCustomCallback","change","getSuggestions"];var sr,ir;sr=or,ir=113,function(t){for(;--t;)sr.push(sr.shift())}(++ir);const rr=function(t,e){return or[t-=0]};class xr extends t.Plugin{[rr("0x1a")](){if(!this[rr("0x7")][rr("0x16")].has("ImageEditing"))return;const t=this[rr("0x7")].plugins[rr("0x1")](rr("0x13"));t[rr("0x0")](rr("0x5"),((t,e)=>this[rr("0x1c")](t,e))),t._suggestionFactory[rr("0xc")](rr("0x3"),"replaceImageSource",rr("0xf"),t[rr("0x1f")][rr("0x15")](rr("0x3"),null,rr("0x19"))),t[rr("0x1f")][rr("0xc")](rr("0x3"),rr("0x5"),rr("0x19"),t[rr("0x1f")][rr("0x15")](rr("0x3"),null,rr("0xf"))),t[rr("0x2")][rr("0x1b")]((t=>this[rr("0x1e")](t)))}handleReplaceImageCommand(t,e){const n=this.editor[rr("0x16")].get(rr("0x13")),o=this[rr("0x7")][rr("0xa")].document[rr("0x6")][rr("0x10")]();this[rr("0x7")][rr("0xa")][rr("0xd")]((()=>{let s=o[rr("0x4")](rr("0xb"));const i=this[rr("0x7")][rr("0x16")][rr("0x1")](rr("0x12")).me;for(const t of n[rr("0xe")]({skipNotAttached:!0})){const e=t[rr("0x17")]();if(rr("0x5")===t[rr("0x8")]&&e===o){t[rr("0x9")]!==i&&t[rr("0x19")](),s=t[rr("0x1d")][rr("0x14")][0][rr("0x18")];break}}t(e),n.markBlockFormat(o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],rr("0x5"))}))}[rr("0x1e")](t){const{data:e}=t;if(e&&"replaceImageSource"===e.commandName){const t=rr("0x11");return{type:"format",content:Yo(this.editor.locale,t)}}}}const ar=["track_changes","Users","collaboration_features","value","_handleImportedData","dataInsert","high","importWord","listenTo","plugins","execute","get","lowest","TrackChangesEditing","afterInit","commands","trackChanges","_trackChangesExecuted","editor","_trackChangesValueDuringImport"];var cr,lr;cr=ar,lr=222,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{constructor(t){super(t),this[dr("0x11")]=!1,this[dr("0xf")]=!1}[dr("0xc")](){const t=this[dr("0x10")],e=t[dr("0xd")][dr("0x9")](dr("0x5")),n=t[dr("0xd")][dr("0x9")](dr("0xe"));e&&(e.on("execute",((t,[,e])=>{this[dr("0x11")]=n[dr("0x1")],e[dr("0x0")][dr("0x12")]=!this[dr("0x11")]}),{priority:dr("0x4")}),this[dr("0x6")](e,dr("0x3"),this[dr("0x2")].bind(this)),this[dr("0x6")](e,dr("0x3"),(()=>{this[dr("0xf")]&&(n.execute(),this[dr("0xf")]=!1)}),{priority:dr("0xa")}),t[dr("0x7")].get(dr("0xb")).enableCommand(dr("0x5")))}[dr("0x2")](t,e){const{suggestions:n}=e,o=this[dr("0x10")][dr("0xd")][dr("0x9")](dr("0xe")),s=o.value;this[dr("0x11")]!==s&&(o[dr("0x8")](),this[dr("0xf")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[dr("0x10")].plugins[dr("0x9")](dr("0x13")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:dr("0x5")}}};this[dr("0x10")][dr("0x7")][dr("0x9")](dr("0xb"))._setSuggestionData(s)}))}}const gr=["_descriptionFactory","IndentEditing","registerDescriptionCallback","enableCommand","document","selection","commandName","indentBlock","schema","*Indent:* %0","has","format","outdentBlock","checkAttribute","editor","from","afterInit","getItemLabel","getItems","*Outdent:* %0","plugins","change","TrackChangesEditing","model","getSelectedBlocks","locale"];var mr,fr;mr=gr,fr=487,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0x17")](){const t=this[hr("0x15")],e=t[hr("0x1")].get(hr("0x3"));t[hr("0x1")].has(hr("0x8"))&&(e[hr("0xa")]("indent"),e.enableCommand("outdent"));const n=t[hr("0x6")];if(t[hr("0x1")][hr("0x11")]("IndentBlock")){for(const n of[hr("0xe"),hr("0x13")])e[hr("0xa")](n,(()=>{const o=Array[hr("0x16")](this[hr("0x15")].model[hr("0xb")][hr("0xc")][hr("0x5")]()).filter((t=>this[hr("0x15")][hr("0x4")][hr("0xf")][hr("0x14")](t,"blockIndent")));t[hr("0x4")][hr("0x2")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:hr("0xe")})}))}));e._descriptionFactory[hr("0x9")]((t=>{const{data:o}=t;if(!o)return;if(hr("0xe")!=o[hr("0xd")]&&"outdentBlock"!=o.commandName)return;const s=t[hr("0x19")]()[0],i=e[hr("0x7")][hr("0x18")](s);return"indentBlock"==o.commandName?{type:"format",content:Yo(n,hr("0x10"),i)}:hr("0x13")==o[hr("0xd")]?{type:hr("0x12"),content:Yo(n,hr("0x0"),i)}:void 0}))}}}var br,Er,_r=["get","init","editor","enableCommand"];br=_r,Er=148,function(t){for(;--t;)br.push(br.shift())}(++Er);var Tr=function(t,e){return _r[t-=0]};class Cr extends t.Plugin{static get requires(){return[Js.Input]}[Tr("0x1")](){this[Tr("0x2")].plugins[Tr("0x0")]("TrackChangesEditing")[Tr("0x3")]("input")}}const yr=["unlink","editor","registerDescriptionCallback","document","*Set link:* %0","*Remove link*","_descriptionFactory","get","getRanges","getFirstPosition","linkHref","selection","locale","format","change","link","getFirstRange","model","LinkEditing","has","markInlineFormat","isCollapsed","plugins","enableCommand","TrackChangesEditing","getAttribute","commandName","afterInit","commandParams"];var kr,Ar;kr=yr,Ar=172,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0x0")](){const t=this.editor;if(!t[vr("0x18")][vr("0x15")](vr("0x14")))return;const e=t[vr("0x18")][vr("0x9")](vr("0x1a"));e[vr("0x19")](vr("0x11"),((n,o)=>{const s=t[vr("0x13")].document[vr("0xd")];let i=[];if(s[vr("0x17")]){if(!s.hasAttribute(vr("0xc")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vr("0xb")](),vr("0xc"),s[vr("0x1b")]("linkHref"),t.model);i=[e]}}else i=Array.from(s[vr("0xa")]());t.model[vr("0x10")]((()=>{for(const t of i)e[vr("0x16")](t,{commandName:vr("0x11"),commandParams:[o]})}))})),e[vr("0x19")](vr("0x2"),(()=>{const n=this[vr("0x3")][vr("0x13")],o=n[vr("0x5")].selection;n[vr("0x10")]((()=>{let n=[];n=o[vr("0x17")]?[(0,Js.findAttributeRange)(o[vr("0xb")](),vr("0xc"),o.getAttribute(vr("0xc")),t[vr("0x13")])]:Es(vr("0xc"),o[vr("0x12")](),t[vr("0x13")]);for(const t of n)e[vr("0x16")](t,{commandName:vr("0x2"),commandParams:[]})}))})),e[vr("0x8")][vr("0x4")]((e=>{const{data:n}=e,o=t[vr("0xe")];if(n){if(vr("0x11")==n[vr("0x1c")]){const t=n[vr("0x1")][0];return{type:"format",content:Yo(o,vr("0x6"),'"'+t+'"')}}return vr("0x2")==n[vr("0x1c")]?{type:vr("0xf"),content:Yo(o,vr("0x7"))}:void 0}}))}}const Ir=["nextSibling","listType","previousSibling","*Change to:* %0","indentList","*Indent:* %0","bulleted","length","listIndent","slice","selection","outdentList","value","afterInit","document","numberedList","model","plugins","listItem","commands","replace","execute","ListEditing","findIndex","from","bulletedList","registerDescriptionCallback","List","markBlockFormat","schema","todo","change","before","ELEMENT_LIST_ITEM","ELEMENT_NUMBERED_LIST","filter","commandParams","add","checkChild","blockName","ELEMENT_BULLETED_LIST","*Uncheck item*","end","ELEMENT_TODO_LIST","has","commandName","createPositionAt","forceValue","enableCommand","*Check item*","registerElementLabel","todoList","format","element","get","parent","getAttribute","_selectedElements","getSelectedBlocks","name","checkTodoList","createRange"];var Sr,Lr;Sr=Ir,Lr=310,function(t){for(;--t;)Sr.push(Sr.shift())}(++Lr);const Nr=function(t,e){return Ir[t-=0]};class wr extends t.Plugin{[Nr("0xd")](){const t=this.editor,e=t.locale;if(!t[Nr("0x11")][Nr("0x2c")](Nr("0x16")))return;const n=t[Nr("0x11")][Nr("0x36")]("TrackChangesEditing"),o=t[Nr("0x11")].has("TodoListEditing");function s(e){return()=>{const o=t[Nr("0x10")][Nr("0xe")][Nr("0xa")],s=t[Nr("0x13")][Nr("0x36")](e);if(s[Nr("0xc")])return void t[Nr("0x15")]("paragraph",{});const i=e[Nr("0x9")](0,-4),r=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Nr("0x26")](e[Nr("0x37")],Nr("0x12"))&&!o.isObject(e);var e,o}));o=o[Nr("0x23")]((t=>!t.is("element",Nr("0x12"))||t[Nr("0x38")](Nr("0x1"))!=e));const s=new Set;for(const t of o)t.is(Nr("0x35"),Nr("0x12"))?s[Nr("0x25")](Mr(t)):s[Nr("0x25")](t);return Array[Nr("0x18")](s)}(o[Nr("0x3a")](),i,t.model[Nr("0x1d")]);t.model[Nr("0x1f")]((()=>{for(const t of r)n[Nr("0x1c")](t,{commandName:e,commandParams:[{forceValue:!s[Nr("0xc")]}],formatGroupId:Nr("0x27")},Or(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Nr("0x18")](t);const n=e[Nr("0x17")]((t=>"listItem"!=t[Nr("0x3b")]));return n>-1&&(e=e[Nr("0x9")](0,n)),e}(t[Nr("0x10")][Nr("0xe")][Nr("0xa")].getSelectedBlocks()),s=t[Nr("0x10")][Nr("0x3d")](t[Nr("0x10")][Nr("0x2e")](o[0],Nr("0x20")),t[Nr("0x10")].createPositionAt(o[o[Nr("0x7")]-1],Nr("0x2a")));t.model[Nr("0x1f")]((()=>{n[Nr("0x1c")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Nr("0x0")];for(;t&&t[Nr("0x38")](Nr("0x8"))>n.getAttribute(Nr("0x8"));)e[Nr("0x25")](t),t=t[Nr("0x0")]}return Array[Nr("0x18")](e)}(o))}))}}n[Nr("0x30")](Nr("0xf"),s(Nr("0xf"))),n[Nr("0x30")](Nr("0x19"),s(Nr("0x19"))),o&&n[Nr("0x30")](Nr("0x33"),s("todoList")),n[Nr("0x30")]("indentList",i("indentList")),n.enableCommand("outdentList",i("outdentList")),o&&n.enableCommand(Nr("0x3c"),(()=>{const e=t[Nr("0x13")][Nr("0x36")](Nr("0x3c")),o=Array.from(e[Nr("0x39")]);o[Nr("0x23")]((t=>t[Nr("0x38")]("todoListChecked")!=e[Nr("0xc")])),t[Nr("0x10")][Nr("0x1f")]((()=>{for(const t of o)n[Nr("0x1c")](t,{commandName:Nr("0x3c"),commandParams:[{forceValue:!e[Nr("0xc")]}]})}))})),n._descriptionFactory[Nr("0x32")](Nr("0x12"),(t=>Yo(e,Nr("0x21"),t))),n._descriptionFactory[Nr("0x1a")]((t=>{const{data:n}=t;if(n){if(Nr("0xf")==n[Nr("0x2d")]||Nr("0x19")==n[Nr("0x2d")]||Nr("0x33")==n.commandName)switch(n[Nr("0x2d")][Nr("0x14")](Nr("0x1b"),"")){case Nr("0x6"):return o(Yo(e,Nr("0x28")));case"numbered":return o(Yo(e,Nr("0x22")));case Nr("0x1e"):return o(Yo(e,Nr("0x2b")))}if(Nr("0x4")==n[Nr("0x2d")])return{type:Nr("0x34"),content:Yo(e,Nr("0x5"),Yo(e,Nr("0x21")))};if(Nr("0xb")==n.commandName)return{type:Nr("0x34"),content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(Nr("0x3c")==n[Nr("0x2d")])return n[Nr("0x24")][0][Nr("0x2f")]?{type:Nr("0x34"),content:Yo(e,Nr("0x31"))}:{type:Nr("0x34"),content:Yo(e,Nr("0x29"))}}function o(t){return{type:Nr("0x34"),content:Yo(e,Nr("0x3"),t)}}}))}}function Mr(t){const e=t.getAttribute("listIndent");if(0==e)return t;let n=t;for(;t[Nr("0x2")]&&t[Nr("0x2")].is(Nr("0x35"),"listItem");){const o=t.previousSibling[Nr("0x38")](Nr("0x8"));if(o==e)n=t[Nr("0x2")];else if(o<e)break;t=t[Nr("0x2")]}return n}function Or(t){const e=[];if(t.is(Nr("0x35"),Nr("0x12"))&&t[Nr("0x38")](Nr("0x8"))>0){let n=t.nextSibling;for(;n&&Nr("0x12")==n[Nr("0x3b")]&&n[Nr("0x38")](Nr("0x8"))==t[Nr("0x38")]("listIndent");)e.push(n),n=n[Nr("0x0")]}return e}const Fr=["startIndex","document","*Change to:* %0","getSiblingNodes","commandParams","listReversed","_LIST_","map","getAttribute","element","editor","has","numbered","*Format:* set order to reversed","selection","listStyle","handleListStartCommand","forward","createPositionAt","listItem","backward","get","styles","toUpperCase","reversed","getFirstPosition","handleListReversedCommand","getLastPosition","*Format:* set start index to %0","from","flat","TrackChangesEditing","listStart","replace","ListUtils","change","filter","format","model","afterInit","config","getListTypeFromListStyleType","handleListStyleCommand","enableCommand","registerDescriptionCallback","getSelectedBlocks","plugins","*Format:* set order to regular","bind","_getTranslationKeyForListStyle","_getSuggestionBlocks","handleDescriptions","commandName","ELEMENT_","createRange","before","listType","markMultiRangeBlockFormat","list.properties","ListPropertiesEditing","type","length","_getSuggestionBlocksForListStyle"];var Pr,Dr;Pr=Fr,Dr=199,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const Br=function(t,e){return Fr[t-=0]};class jr extends t.Plugin{[Br("0x1d")](){if(!this[Br("0x0")][Br("0x24")][Br("0x1")](Br("0x31")))return;const t=this[Br("0x0")][Br("0x1e")].get(Br("0x30")),e=this[Br("0x0")][Br("0x24")][Br("0xb")]("TrackChangesEditing");t[Br("0xc")]&&e[Br("0x21")](Br("0x5"),this[Br("0x20")].bind(this)),t[Br("0xe")]&&e[Br("0x21")]("listReversed",this.handleListReversedCommand.bind(this)),t.startIndex&&e.enableCommand("listStart",this.handleListStartCommand[Br("0x26")](this)),e._descriptionFactory[Br("0x22")](this.handleDescriptions[Br("0x26")](this))}[Br("0x20")](t,e={}){const n=this.editor[Br("0x24")][Br("0xb")]("TrackChangesEditing"),o=this[Br("0x34")]();this[Br("0x0")].model[Br("0x19")]((()=>{n[Br("0x2f")](o,{commandName:Br("0x5"),commandParams:[{type:e[Br("0x32")]}],formatGroupId:"listStyle"})}))}[Br("0x10")](t,e={}){const n=this[Br("0x0")].plugins[Br("0xb")](Br("0x15")),o=this[Br("0x28")]((t=>t.is(Br("0x3e"),Br("0x9"))&&Br("0x2")===t[Br("0x3d")](Br("0x2e"))));if(o[Br("0x33")]<1)return;const s=o[Br("0x3c")]((t=>this[Br("0x0")][Br("0x1c")][Br("0x2c")](this.editor[Br("0x1c")][Br("0x8")](t,Br("0x2d")),this[Br("0x0")][Br("0x1c")][Br("0x8")](t,0))));this.editor.model[Br("0x19")]((()=>{n[Br("0x2f")](s,{commandName:Br("0x3a"),commandParams:[{reversed:e[Br("0xe")]}],formatGroupId:Br("0x3a")})}))}[Br("0x6")](t,e={}){const n=this.editor[Br("0x24")][Br("0xb")](Br("0x15")),o=this[Br("0x28")]((t=>t.is(Br("0x3e"),"listItem")&&Br("0x2")===t[Br("0x3d")](Br("0x2e"))));if(o.length<1)return;const s=o[Br("0x3c")]((t=>this[Br("0x0")][Br("0x1c")].createRange(this.editor[Br("0x1c")][Br("0x8")](t,Br("0x2d")),this[Br("0x0")][Br("0x1c")].createPositionAt(t,0))));this.editor[Br("0x1c")][Br("0x19")]((()=>{n[Br("0x2f")](s,{commandName:Br("0x16"),commandParams:[{startIndex:e[Br("0x35")]}],formatGroupId:Br("0x16")})}))}[Br("0x29")](t){const e=this[Br("0x0")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Br("0x2a")]){case"listStyle":o=Br("0x37"),s={type:Br("0x1b"),content:Yo(e,o,Yo(e,this[Br("0x27")](n[Br("0x39")][0][Br("0x32")])))};break;case Br("0x3a"):o=n[Br("0x39")][0][Br("0xe")]?Br("0x3"):Br("0x25"),s={type:"format",content:Yo(e,o)};break;case Br("0x16"):o=Br("0x12"),s={type:Br("0x1b"),content:Yo(e,o,n[Br("0x39")][0][Br("0x35")])}}return s}[Br("0x34")](){var t,e,n,o;const s=this.editor[Br("0x24")][Br("0xb")]("ListUtils");let i=Array[Br("0x13")](this[Br("0x0")][Br("0x1c")][Br("0x36")].selection.getSelectedBlocks());return(null===(t=i[0])||void 0===t?void 0:t.is("element",Br("0x9")))&&i.unshift(...s[Br("0x38")](this[Br("0x0")][Br("0x1c")][Br("0x36")][Br("0x4")][Br("0xf")](),Br("0xa"))),(null===(e=i[i[Br("0x33")]-1])||void 0===e?void 0:e.is(Br("0x3e"),Br("0x9")))&&i.push(...s[Br("0x38")](this.editor.model.document[Br("0x4")][Br("0x11")](),Br("0x7"))),i=[...new Set(i)],(null===(o=null===(n=this[Br("0x0")][Br("0x1c")][Br("0x36")][Br("0x4")].getFirstPosition())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Br("0x3e"),Br("0x9")))&&(i=i[Br("0x1a")]((t=>t.is(Br("0x3e"),Br("0x9"))))),i}[Br("0x28")](t){const e=this[Br("0x0")].plugins[Br("0xb")]("ListUtils");let n=Array[Br("0x13")](this[Br("0x0")][Br("0x1c")][Br("0x36")].selection[Br("0x23")]())[Br("0x1a")](t)[Br("0x3c")]((t=>{const n=this[Br("0x0")].model[Br("0x8")](t,0);return[...e[Br("0x38")](n,Br("0xa")),...e.getSiblingNodes(n,"forward")]}))[Br("0x14")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Br("0x2b")+this[Br("0x0")][Br("0x24")][Br("0xb")](Br("0x18"))[Br("0x1f")](t)[Br("0xd")]()+Br("0x3b")+t[Br("0xd")]()[Br("0x17")](/-/g,"_")}}const Ur=["dataDowncast","createEmptyElement","get","media","for","showSuggestionHighlights","plugins","registerElementLabel","has","div","mediaEmbed","elementToElement","_descriptionFactory","editor","ELEMENT_MEDIA","options","conversion","stop","MediaEmbedEditing","data","attribute:url:media","high","TrackChangesEditing"];var Gr,Hr;Gr=Ur,Hr=464,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const zr=function(t,e){return Ur[t-=0]};class Wr extends t.Plugin{afterInit(){const t=this[zr("0x9")];if(!t[zr("0x2")][zr("0x4")](zr("0xe")))return;const e=t[zr("0x2")][zr("0x15")](zr("0x12")),n=t.locale;e.enableCommand(zr("0x6")),e[zr("0x8")][zr("0x3")]("media",(t=>Yo(n,zr("0xa"),t))),t[zr("0xc")][zr("0x0")](zr("0x13"))[zr("0x7")]({model:zr("0x16"),view:(t,{writer:e,options:n})=>{if(n[zr("0x1")])return e[zr("0x14")](zr("0x5"))},converterPriority:zr("0x11")}),t[zr("0xf")].downcastDispatcher.on(zr("0x10"),((t,e,n)=>{n[zr("0xb")][zr("0x1")]&&t[zr("0xd")]()}),{priority:zr("0x11")})}}const Vr=["plugins","editor","TrackChangesEditing","mention","MentionEditing","enableCommand","has"];var Kr,qr;Kr=Vr,qr=443,function(t){for(;--t;)Kr.push(Kr.shift())}(++qr);const Xr=function(t,e){return Vr[t-=0]};class $r extends t.Plugin{afterInit(){const t=this[Xr("0x6")];t[Xr("0x5")][Xr("0x4")](Xr("0x2"))&&t[Xr("0x5")].get(Xr("0x0"))[Xr("0x3")](Xr("0x1"))}}const Jr=["registerElementLabel","plugins","locale","pageBreak","TrackChangesEditing","PageBreakEditing","get","_descriptionFactory","ELEMENT_PAGE_BREAK"];var Qr,Zr;Qr=Jr,Zr=367,function(t){for(;--t;)Qr.push(Qr.shift())}(++Zr);const Yr=function(t,e){return Jr[t-=0]};class tx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Yr("0x3")].has(Yr("0x7")))return;t[Yr("0x3")][Yr("0x8")](Yr("0x6")).enableCommand(Yr("0x5"));const e=t[Yr("0x3")][Yr("0x8")]("TrackChangesEditing"),n=t[Yr("0x4")];e[Yr("0x0")][Yr("0x2")](Yr("0x5"),(t=>Yo(n,Yr("0x1"),t)))}}const ex=["isTouching","_descriptionFactory","insertion","selection","showSuggestionHighlights","data","type","bindElementToMarker","createUIElement","downcastDispatcher","from","getFirstRange","isObject","toViewPosition","get","highest","getSelectedBlocks","end","name","enableCommand","consume","markBlockFormat","addMarker:suggestion:insertion","blockName","afterInit","schema","TrackChangesEditing","mapper","editor","locale","registerDescriptionCallback","start","addClass","*Change to:* %0","isBlock","insertParagraph","$text","checkChild","commandName","ELEMENT_PARAGRAPH","has","filter","document","parent","includes","writer","consumable","activeMarkers","nodeAfter","paragraph","span","editing","*Insert:* %0","options","markerName","markerRange","plugins","change","registerElementLabel","model","Paragraph","ck-suggestion-marker-split"];var nx,ox;nx=ex,ox=105,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class ix extends t.Plugin{[sx("0x2b")](){const t=this[sx("0x2f")];if(!t[sx("0xd")][sx("0x3b")](sx("0x11")))return;const e=t[sx("0x30")],n=t[sx("0xd")][sx("0x21")](sx("0x2d"));n._descriptionFactory[sx("0xf")](sx("0x6"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[sx("0x26")](sx("0x6"),((e,o={})=>{const s=t.model[sx("0x3d")],i=o[sx("0x16")]||s[sx("0x16")],r=Array[sx("0x1d")](i[sx("0x23")]())[sx("0x3c")]((t=>{return e=t,(n=this.editor[sx("0x10")][sx("0x2c")])[sx("0x38")](e[sx("0x0")],sx("0x6"))&&!n[sx("0x1f")](e)&&sx("0x6")!=e[sx("0x25")];var e,n}));t[sx("0x10")][sx("0xe")]((()=>{for(const t of r)n[sx("0x28")](t,{commandName:sx("0x6"),commandParams:[],formatGroupId:sx("0x2a")},_s(t))}))})),n[sx("0x14")][sx("0x31")]((t=>{const{data:n}=t;if(n&&sx("0x6")==n[sx("0x39")])return{type:"format",content:Yo(e,sx("0x34"),Yo(e,sx("0x3a")))}})),n[sx("0x26")](sx("0x36")),t[sx("0x8")][sx("0x1c")].on(sx("0x29"),rx(t),{priority:sx("0x22")}),t[sx("0x18")][sx("0x1c")].on(sx("0x29"),((e,n,o)=>{o[sx("0xa")][sx("0x17")]&&rx(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x22")});const o=n[sx("0x14")];o[sx("0x31")]((n=>{if(sx("0x15")!==n[sx("0x19")])return;const{start:s,end:i}=n[sx("0x1e")]();if(!s.isTouching(i)||!s[sx("0x5")])return;const r=t[sx("0x10")][sx("0x2c")],x=s.nodeAfter;return r.isBlock(x)&&!r.isLimit(x)&&r[sx("0x38")](x,sx("0x37"))?{type:sx("0x15"),content:Yo(e,sx("0x9"),o.getItemLabel(x,1))}:void 0}))}}function rx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t.plugins[sx("0x21")](sx("0x2d")),r=o[sx("0xc")][sx("0x32")],x=o[sx("0xc")][sx("0x24")],a=t[sx("0x10")][sx("0x2c")];if(!r[sx("0x13")](x)||!r.nodeAfter)return;const c=r[sx("0x5")];if(a[sx("0x35")](c)&&!a.isLimit(c)&&a[sx("0x38")](c,sx("0x37"))){if(!s[sx("0x3")][sx("0x27")](o[sx("0xc")],n[sx("0x25")]))return;const t=s[sx("0x2")][sx("0x1b")](sx("0x7"),{class:sx("0x12")}),r=s[sx("0x2e")][sx("0x20")](x);e&&i[sx("0x4")][sx("0x1")](o[sx("0xb")])&&s[sx("0x2")][sx("0x33")]("ck-suggestion-marker--active",t),s[sx("0x2")].insert(r,t),s.mapper[sx("0x1a")](t,o[sx("0xb")])}}}const xx=["getItems","model","change","createRangeOn","document","get","isCollapsed","getRanges","commandName","selection","getAttributes","removeFormat","_descriptionFactory","registerDescriptionCallback","schema","RemoveFormatEditing","editor","enableCommand","TrackChangesEditing","getAttributeProperties","from","*Remove all formatting*","afterInit","plugins","isFormatting"];var ax,cx;ax=xx,cx=272,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x0")](){const t=this[lx("0x13")];if(!t[lx("0x1")].has(lx("0x12")))return;const e=t[lx("0x1")][lx("0x8")](lx("0x15"));e[lx("0x14")](lx("0xe"),(n=>{const o=t.model[lx("0x7")][lx("0xc")];o[lx("0x9")]?n():t[lx("0x4")][lx("0x5")]((()=>{const n=Array[lx("0x17")](o[lx("0xa")]());for(const o of n)for(const n of o[lx("0x3")]())ux(n,t[lx("0x4")][lx("0x11")])&&e.markInlineFormat(t[lx("0x4")][lx("0x6")](n),{commandName:lx("0xe"),commandParams:[]})}))})),e[lx("0xf")][lx("0x10")]((e=>{const{data:n}=e;if(n&&lx("0xe")==n[lx("0xb")])return{type:"format",content:Yo(t.locale,lx("0x18"))}}))}}function ux(t,e){for(const[n]of t[lx("0xd")]()){const t=e[lx("0x16")](n);if(t&&t[lx("0x2")])return!0}return!1}const gx=["TrackChangesEditing","discardSelectedSuggestions","enableCommand","discardSuggestion","RestrictedEditingModeEditing","plugins","has","discardAllSuggestions","acceptSuggestion","acceptAllSuggestions","editor","afterInit","get"];var mx,fx;mx=gx,fx=365,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0xa")](){const t=this[hx("0x9")];if(!t.plugins[hx("0x5")](hx("0x3")))return;const e=t[hx("0x4")][hx("0xb")](hx("0xc"));e.enableCommand("goToPreviousRestrictedEditingException"),e[hx("0x1")]("goToNextRestrictedEditingException");const n=t[hx("0x4")][hx("0xb")]("RestrictedEditingModeEditing");n.enableCommand("trackChanges"),n.enableCommand(hx("0x7")),n.enableCommand(hx("0x2")),n[hx("0x1")](hx("0x8")),n[hx("0x1")](hx("0x6")),n[hx("0x1")]("acceptSelectedSuggestions"),n[hx("0x1")](hx("0x0"))}}const bx=["shiftEnter","mapper","locale","init","editing","split","plugins","markerRange","ck-suggestion-marker-","registerElementLabel","addClass","enableCommand","writer","ELEMENT_LINE_BREAK","addMarker:suggestion:deletion","addMarker:suggestion:insertion","model","downcastDispatcher","data","high","editor","name","TrackChangesEditing","ck-suggestion-marker--active","test","markerName","includes","createPositionBefore","merge","showSuggestionHighlights","softBreak","get","getItems"];var Ex,_x;Ex=bx,_x=435,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get requires(){return[xi.ShiftEnter]}[Tx("0x1e")](){const t=this[Tx("0xe")],e=t.plugins[Tx("0x19")](Tx("0x10"));e[Tx("0x5")](Tx("0x1b")),t.editing[Tx("0xb")].on(Tx("0x9"),yx(t),{priority:Tx("0xd")}),t[Tx("0x1f")].downcastDispatcher.on(Tx("0x8"),yx(t),{priority:Tx("0xd")}),t[Tx("0xc")][Tx("0xb")].on("addMarker:suggestion",((e,n,o)=>{o.options[Tx("0x17")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Tx("0x3")](Tx("0x18"),(e=>Yo(t[Tx("0x1d")],Tx("0x7"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t[Tx("0x0")][Tx("0x19")](Tx("0x10"));if(!s.consumable[Tx("0x12")](o[Tx("0x1")],n[Tx("0xf")]))return;const r=t[Tx("0xa")];for(const t of o.markerRange[Tx("0x1a")]()){if(!t.is("element","softBreak"))continue;const n="deletion"==o.markerName[Tx("0x20")](":")[1]?Tx("0x16"):Tx("0x20"),x=s[Tx("0x6")].createUIElement("span",{class:Tx("0x2")+n}),a=s[Tx("0x1c")].toViewPosition(r[Tx("0x15")](t));e&&i.activeMarkers[Tx("0x14")](o[Tx("0x13")])&&s[Tx("0x6")][Tx("0x4")](Tx("0x11"),x),s[Tx("0x6")].insert(a,x),s[Tx("0x1c")].bindElementToMarker(x,o[Tx("0x13")])}}}const kx=["has","_descriptionFactory","StandardEditingModeEditing","editor","locale","commands","format","commandParams","getRanges","enableCommand","from","TrackChangesEditing","FORMAT_RESTRICTED_ENABLED","FORMAT_RESTRICTED_DISABLED","model","registerDescriptionCallback","forceValue","markInlineFormat","plugins","get"];var Ax,vx;Ax=kx,vx=424,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{afterInit(){const t=this[Rx("0x13")],e=t[Rx("0xa")],n=t[Rx("0x0")];if(!t[Rx("0xe")][Rx("0x10")](Rx("0x12")))return;const o=t[Rx("0xe")][Rx("0xf")](Rx("0x7")),s="restrictedEditingException",i=t[Rx("0x1")].get(s);o[Rx("0x5")](s,((t,n={})=>{const r=e.document.selection;if(r.isCollapsed)return void t(n);const x=void 0!==n[Rx("0xc")]?n.forceValue:!i.value;e.change((()=>{const t=Array[Rx("0x6")](r[Rx("0x4")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0xd")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x11")][Rx("0xb")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Rx("0x3")][0][Rx("0xc")]?{type:Rx("0x2"),content:Yo(n,Rx("0x8"))}:{type:Rx("0x2"),content:Yo(n,Rx("0x9"))}}))}}const Sx=["style","getRanges","commands","element","add","*Format:* %0","locale","document","_getStyleDefinition","get","model","modelElements","name","selection","getAttribute","classes","toLowerCase","_descriptionFactory","forceValue","includes","from","isCollapsed","styleName","style.definitions","find","Style","createRangeOn","plugins","value","format","style:","_getRangesWithClasses","getSelectedBlocks","markBlockFormat","isBlock","push","getAncestors","commandName","registerDescriptionCallback","commandParams","inline"];var Lx,Nx;Lx=Sx,Nx=493,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Sx[t-=0]};class Mx extends t.Plugin{afterInit(){const t=this.editor;if(!t[wx("0x1a")].has(wx("0x18")))return;const e=t[wx("0x1")][wx("0x8")](wx("0x28")),n=t.plugins[wx("0x8")]("TrackChangesEditing"),o=t[wx("0x5")],s=t[wx("0x1a")][wx("0x8")]("DataSchema"),i=t[wx("0x1a")][wx("0x8")]("StyleUtils").normalizeConfig(s,t.config[wx("0x8")](wx("0x16")));n.enableCommand("style",((o,{styleName:r})=>{const x=t[wx("0x9")][wx("0x6")][wx("0xc")],a=this[wx("0x7")](r,i);if(!a)return;if(!e.enabledStyles[wx("0x12")](r))return;if(x[wx("0x14")]&&!a[wx("0x21")])return void o({styleName:r});const c=!e[wx("0x1b")].includes(a[wx("0xb")]);if(a[wx("0x21")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x23")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[wx("0x12")](o[wx("0xb")])){n[wx("0x3")](o);break}}return n}(x[wx("0x1f")](),a[wx("0xa")]);t[wx("0x9")].change((()=>{for(const t of e)n[wx("0x20")](t,{commandName:wx("0x28"),commandParams:[{styleName:r,forceValue:c}],formatGroupId:wx("0x1d")+r})}))}else{let e=Array[wx("0x13")](x[wx("0x0")]());if(!c){const n=Array[wx("0x13")](s.getDefinitionsForView(a[wx("0x2")],!1))[0].model,o=[];for(const s of e){const e=this._getRangesWithClasses(t.model,s,a[wx("0xe")],n);o.push(...e)}e=o}t.model.change((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x28"),commandParams:[{styleName:r,forceValue:c}]})}))}})),n[wx("0x10")][wx("0x25")]((t=>{const{data:e}=t;if(e&&"style"===e[wx("0x24")])return e[wx("0x26")][0][wx("0x11")]?{type:"format",content:Yo(o,wx("0x4"),e[wx("0x26")][0][wx("0x15")][wx("0xf")]())}:{type:wx("0x1c"),content:Yo(o,"*Remove format:* %0",e[wx("0x26")][0][wx("0x15")][wx("0xf")]())}}))}[wx("0x7")](t,e){let n=e.block.find((e=>e[wx("0xb")]===t));return n||(n=e[wx("0x27")][wx("0x17")]((e=>e[wx("0xb")]===t))),n}[wx("0x1e")](t,e,n,o){const s=[];for(const i of e.getItems()){const e=i[wx("0xd")](o);e&&n.every((t=>e[wx("0xe")][wx("0x12")](t)))&&s[wx("0x22")](t[wx("0x19")](i))}return s}}const Ox=["getItems","change:data","start","selectTableColumn","TableEditing","substr","*Remove:* %0","removeTableColumn","_suggestionFactory","enableCommand","TableUtils","type","getChildren","tablePaste","tableRow","deletion","has","rowspan","editor","_descriptionFactory","table","isIntersectingWithRange","removeClass","showSuggestionHighlights","addClass","oldRange","left","getColumnIndexes","_tableSuggestions","*Insert:* %0","createRangeOn","colspan","element","order","from","plugins","highest","afterInit","nodeBefore","span","getFirstRange","isArray","subType","position","minRow","createTableWalker","createRangeIn","end","selection","isTouching","options","getAttribute","includes","name","nodeAfter","_getCoordsForCells","addRange","_getSuggestionCoords","_acceptFormatSuggestionCallbackFactory","push","data","getRanges","fromRange","setSelection","MAX_SAFE_INTEGER","$textProxy","isInContent","startsWith","getCellLocation","toLowerCase","ELEMENT_TABLE_ROW_WITH_TEXT","insertTableColumnLeft","_tablePostFixingSubtypes","tableColumn","insertTableRowBelow","TrackChangesEditing","commands","low","registerElementLabel","map","addMarker:suggestion","enqueueChange","getChangedMarkers","getContainedElement","tableCell","registerCustomCallback","execute","some","ELEMENT_TABLE_WITH_TEXT","min","removeTableRow","markMultiRangeInsertion","getRowIndexes","ELEMENT_TABLE_COLUMN","$graveyard","rootName","maxRow","values","discard","last","getChanges","detach","root","ELEMENT_TABLE_COLUMN_WITH_TEXT","downcastDispatcher","isEqual","differ","ELEMENT_TABLE_ROW","join","filter","insertTableRowAbove","toViewElement","classes","markMultiRangeDeletion","insertTable","get","length","change","getSelectionAffectedTableCells","_setupColumnsRowsFixing","locale","document","ELEMENT_TABLE","first","hasAttribute","findAncestor","MIN_SAFE_INTEGER","model","insertion","registerDescriptionCallback"];var Fx,Px;Fx=Ox,Px=290,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x2a")]=[Dx("0x72"),Dx("0x2b")],this[Dx("0x80")]=new Set}[Dx("0x7")](){const t=this[Dx("0x76")],e=t[Dx("0x61")][Dx("0x5b")][Dx("0x12")];if(!t.plugins[Dx("0x74")](Dx("0x68")))return;const n=t[Dx("0x5a")],o=t[Dx("0x5")][Dx("0x55")](Dx("0x2d")),s=t[Dx("0x5")][Dx("0x55")](Dx("0x6e"));o[Dx("0x77")][Dx("0x30")](Dx("0x78"),(t=>Yo(n,Dx("0x5c"),t))),this[Dx("0x59")](),o[Dx("0x6d")](Dx("0x54")),o[Dx("0x6d")]("selectTableRow"),o.enableCommand(Dx("0x67"));for(const n of[Dx("0x50"),Dx("0x2c")]){const i=t[Dx("0x2e")][Dx("0x55")](n);o[Dx("0x6d")](n,(n=>{t[Dx("0x61")][Dx("0x57")]((t=>{n();const r="above"===i[Dx("0x3")],x=s[Dx("0x58")](e),a=s.getRowIndexes(x),c=r?a[Dx("0x5d")]-1:a[Dx("0x45")]+1,l=x[0].findAncestor(Dx("0x78")),d=s[Dx("0xf")](l,{startRow:c,endRow:c}),u=Array[Dx("0x4")](d)[Dx("0x31")]((e=>t[Dx("0x0")](e.cell)));o.markMultiRangeInsertion(u,Dx("0x72"))}))}))}for(const n of[Dx("0x29"),"insertTableColumnRight"]){const i=t[Dx("0x2e")].get(n);o[Dx("0x6d")](n,(n=>{t[Dx("0x61")].change((t=>{n();const r=Dx("0x7e")===i[Dx("0x3")],x=s[Dx("0x58")](e),a=s[Dx("0x7f")](x),c=r?a[Dx("0x5d")]-1:a[Dx("0x45")]+1,l=x[0][Dx("0x5f")]("table"),d=s[Dx("0xf")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x4")](d)[Dx("0x31")]((e=>t[Dx("0x0")](e.cell)));o[Dx("0x3d")](u,Dx("0x2b"))}))}))}for(const n of[Dx("0x3c"),Dx("0x6b")]){const i=n[Dx("0x69")](11),r=i[Dx("0x27")](),x=r[Dx("0x69")](0,3)+"span",a=Dx("0x78")+i,c="min"+i,l="max"+i;o.enableCommand(n,(()=>{t[Dx("0x61")][Dx("0x57")]((t=>{const i=s[Dx("0x58")](e),d=i[0].findAncestor("table");let u;if(Dx("0x3c")==n){const t=s[Dx("0x3e")](i);u={startRow:t[Dx("0x5d")],endRow:t[Dx("0x45")],includeAllSlots:!0}}else{const t=s[Dx("0x7f")](i);u={startColumn:t[Dx("0x5d")],endColumn:t[Dx("0x45")],includeAllSlots:!0}}const g=s[Dx("0xf")](d,u),m=Array[Dx("0x4")](g)[Dx("0x31")]((({cell:t})=>t)),f=jx(m[Dx("0x4f")]((t=>t[Dx("0x5e")](x)))),h=jx(m[Dx("0x4f")]((t=>!t[Dx("0x5e")](x))))[Dx("0x31")]((e=>t[Dx("0x0")](e))),p=o[Dx("0x53")](h,a);if(p&&("tableRow"==p[Dx("0xc")]||"tableColumn"==p.subType)){const e=this[Dx("0x1b")](p);for(const n of f){const o=t[Dx("0x0")](n),i=s.getCellLocation(n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=i[r]&&i[r]+a<=u&&p[Dx("0x1a")](o)}}}))}))}function i(n){const o=Array[Dx("0x4")](e[Dx("0x1f")]()).map((t=>r.LiveRange[Dx("0x20")](t)));t[Dx("0x61")][Dx("0x57")]((e=>{const s=e.batch;n=n[Dx("0x4f")]((t=>"$graveyard"!=t[Dx("0x48")][Dx("0x41")])),e[Dx("0x21")](n),t.commands[Dx("0x55")](Dx("0x3c")).refresh(),t[Dx("0x38")](Dx("0x3c"),{forceDefaultExecution:!0}),t.model[Dx("0x33")]((()=>{t[Dx("0x61")].enqueueChange(s,(t=>{const e=o[Dx("0x4f")]((t=>"$graveyard"!=t[Dx("0x48")][Dx("0x41")]));e[Dx("0x56")]>0&&t[Dx("0x21")](e);for(const t of o)t.detach()}))}))}))}function a(n){t.model[Dx("0x57")]((o=>{const s=Array[Dx("0x4")](e.getRanges())[Dx("0x31")]((t=>r.LiveRange[Dx("0x20")](t))),i=[];for(const t of n)for(const e of t[Dx("0x64")]({shallow:!0}))i[Dx("0x1d")](e);for(const e of i)Dx("0x40")!=e[Dx("0x48")][Dx("0x41")]&&(o[Dx("0x21")](o.createPositionAt(e,0)),t[Dx("0x2e")][Dx("0x55")](Dx("0x6b")).refresh(),t[Dx("0x38")](Dx("0x6b"),{forceDefaultExecution:!0}));const x=s[Dx("0x4f")]((t=>Dx("0x40")!=t[Dx("0x48")].rootName));x[Dx("0x56")]>0&&o[Dx("0x21")](x);for(const t of s)t[Dx("0x47")]()}))}function c(t,e){return e.every((e=>t[Dx("0x39")]((t=>t.end[Dx("0x4b")](e[Dx("0x66")])||e[Dx("0x11")][Dx("0x4b")](t[Dx("0x66")])))))}function l(t,e){return t[Dx("0x39")]((t=>e[Dx("0x39")]((e=>t[Dx("0x11")][Dx("0x13")](e.start)))))}t[Dx("0x1e")][Dx("0x4a")].on(Dx("0x32"),((t,e,n)=>{if(!n[Dx("0x14")][Dx("0x7b")])return;const o=e.item;if(!o)return;const s=n.mapper[Dx("0x51")](o);function i(t){return Array[Dx("0xb")](t)?t:[t]}s&&Dx("0x36")===o.name&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n[Dx("0x7c")](i(e[Dx("0x52")]),t)),((t,e,n)=>n[Dx("0x7a")](i(e[Dx("0x52")]),t)))}),{priority:Dx("0x6")}),o[Dx("0x77")][Dx("0x63")]((t=>{if(Dx("0x62")!=t[Dx("0x6f")]&&Dx("0x73")!=t[Dx("0x6f")])return;const e=t[Dx("0x35")]();if(null!=e&&e.is(Dx("0x2"),Dx("0x78"))){if(Dx("0x62")==t.type){const e=t[Dx("0x64")]().filter((t=>t.is("$textProxy")))[Dx("0x31")]((t=>t[Dx("0x1e")]));if(e[Dx("0x56")])return{type:"insertion",content:Yo(n,Dx("0x81"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Dx("0x73")==t[Dx("0x6f")]){const e=t.getItems()[Dx("0x4f")]((t=>t.is(Dx("0x23"))))[Dx("0x31")]((t=>t.data));if(e[Dx("0x56")])return{type:Dx("0x73"),content:Yo(n,Dx("0x6a"),Yo(n,Dx("0x3a"),'"'+e[Dx("0x4e")](" ")+'"'))}}}})),o[Dx("0x77")][Dx("0x63")]((t=>{if(Dx("0x72")==t[Dx("0xc")]){const e=t[Dx("0x64")]().filter((t=>t.is(Dx("0x23"))))[Dx("0x31")]((t=>t.data)),o=this[Dx("0x1b")](t),s=o[Dx("0x42")]-o[Dx("0xe")]+1;if(Dx("0x62")==t[Dx("0x6f")])return e[Dx("0x56")]?{type:Dx("0x62"),content:Yo(n,Dx("0x81"),Yo(n,Dx("0x28"),[s,'"'+e[Dx("0x4e")](" ")+'"']))}:{type:Dx("0x62"),content:Yo(n,Dx("0x81"),Yo(n,Dx("0x4d"),s))};if(Dx("0x73")==t[Dx("0x6f")])return e[Dx("0x56")]?{type:"deletion",content:Yo(n,Dx("0x6a"),Yo(n,Dx("0x28"),[s,'"'+e[Dx("0x4e")](" ")+'"']))}:{type:Dx("0x73"),content:Yo(n,Dx("0x6a"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if("tableColumn"==t[Dx("0xc")]){const e=t[Dx("0x64")]()[Dx("0x4f")]((t=>t.is("$textProxy")))[Dx("0x31")]((t=>t[Dx("0x1e")])),o=this[Dx("0x1b")](t),s=o.maxColumn-o.minColumn+1;if(Dx("0x62")==t[Dx("0x6f")])return e.length?{type:Dx("0x62"),content:Yo(n,Dx("0x81"),Yo(n,Dx("0x49"),[s,'"'+e[Dx("0x4e")](" ")+'"']))}:{type:"insertion",content:Yo(n,Dx("0x81"),Yo(n,Dx("0x3f"),s))};if("deletion"==t[Dx("0x6f")])return e.length?{type:Dx("0x73"),content:Yo(n,"*Remove:* %0",Yo(n,Dx("0x49"),[s,'"'+e.join(" ")+'"']))}:{type:Dx("0x73"),content:Yo(n,"*Remove:* %0",Yo(n,Dx("0x3f"),s))}}})),o[Dx("0x6c")][Dx("0x37")](Dx("0x62"),Dx("0x72"),Dx("0x44"),i),o[Dx("0x6c")][Dx("0x37")](Dx("0x73"),Dx("0x72"),"accept",i),o._suggestionFactory.registerCustomCallback(Dx("0x62"),"tableColumn","discard",a),o[Dx("0x6c")][Dx("0x37")](Dx("0x73"),Dx("0x2b"),"accept",a),o._suggestionFactory[Dx("0x37")](Dx("0x62"),Dx("0x2b"),Dx("0x4e"),c),o[Dx("0x6c")][Dx("0x37")](Dx("0x73"),Dx("0x2b"),Dx("0x4e"),c),o[Dx("0x6c")][Dx("0x37")](Dx("0x62"),Dx("0x72"),Dx("0x4e"),l),o[Dx("0x6c")].registerCustomCallback(Dx("0x73"),Dx("0x72"),"join",l)}[Dx("0x1c")](){const t=this[Dx("0x76")],e=t[Dx("0x61")][Dx("0x5b")][Dx("0x12")];return(n,o)=>{t.model[Dx("0x57")]((s=>{const{commandName:i,commandParams:x}=o;let a=n[0][Dx("0x11")][Dx("0x8")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start[Dx("0x18")]);const c=s[Dx("0x10")](a);if(Dx("0x40")==c.root[Dx("0x41")])return;const l=Array[Dx("0x4")](e.getRanges())[Dx("0x31")]((t=>r.LiveRange.fromRange(t)));s[Dx("0x21")](c),t[Dx("0x2e")].get(i).refresh(),x[Dx("0x1d")]({forceDefaultExecution:!0}),t[Dx("0x38")](i,...x);const d=l[Dx("0x4f")]((t=>Dx("0x40")!=t.root.rootName));d[Dx("0x56")]>0&&s.setSelection(d);for(const t of l)t[Dx("0x47")]()}))}}_getCoordsForCells(t){const e=this[Dx("0x76")][Dx("0x5")][Dx("0x55")]("TableUtils");let n=Number.MAX_SAFE_INTEGER,o=Number[Dx("0x60")],s=Number[Dx("0x22")],i=Number.MIN_SAFE_INTEGER;for(const r of t){if(Dx("0x40")==r[Dx("0x48")][Dx("0x41")])continue;const{row:t,column:x}=e[Dx("0x26")](r),a=r.hasAttribute(Dx("0x75"))?r[Dx("0x15")](Dx("0x75"))-1:0,c=r[Dx("0x5e")]("colspan")?r[Dx("0x15")](Dx("0x1"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:s,maxColumn:i}}[Dx("0x59")](){const t=this.editor,e=t[Dx("0x5")][Dx("0x55")]("TrackChangesEditing"),n=t.plugins[Dx("0x55")]("TableUtils");t[Dx("0x61")][Dx("0x5b")].on(Dx("0x65"),(()=>{const n=Array[Dx("0x4")](t[Dx("0x61")].document[Dx("0x4c")][Dx("0x34")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:i}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Dx("0x7d")])continue;const r=e.getSuggestion(s);this[Dx("0x2a")][Dx("0x16")](i)&&this[Dx("0x80")].add(r)}}),{priority:Dx("0x2f")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x0")](t),i=t[Dx("0x5f")]("table"),r=n[Dx("0x26")](t);for(const e of this[Dx("0x80")]){const n=e[Dx("0xc")],x=n[Dx("0x25")](Dx("0x71")),a=n[Dx("0x69")](x?10:5),c=a[Dx("0x27")](),l=c[Dx("0x69")](0,3)+Dx("0x9"),d=Dx("0x3b")+a,u="max"+a;if(!e[Dx("0x24")])continue;if(i!=e[Dx("0xa")]()[Dx("0x66")][Dx("0x5f")](Dx("0x78")))continue;if(e[Dx("0x79")](s))continue;const g=t[Dx("0x5e")](l)?t[Dx("0x15")](l)-1:0,m=this[Dx("0x1b")](e),f=m[d],h=m[u];f<=r[c]&&r[c]+g<=h&&(e[Dx("0x1a")](s),o=!0)}return o};t[Dx("0x61")][Dx("0x5b")].registerPostFixer((e=>{let n=!1;for(const s of t[Dx("0x61")][Dx("0x5b")][Dx("0x4c")][Dx("0x46")]())if("insert"==s.type)if("tableRow"==s[Dx("0x17")])for(const t of s.position[Dx("0x18")][Dx("0x70")]())n=n||o(t,e);else Dx("0x36")==s.name&&(n=n||o(s[Dx("0xd")][Dx("0x18")],e));return n}))}[Dx("0x1b")](t){return this[Dx("0x19")](t[Dx("0x1f")]().map((t=>t[Dx("0x66")][Dx("0x18")])))}}function jx(t){return Array[Dx("0x4")](new Set(t)[Dx("0x43")]())}const Ux=["getAncestors","createTableWalker","commandName","accept","enableCommand","find","splitTableCellHorizontally","*Split cell:* horizontally","mergeTableCells","markBlockFormat","table","filter","size","isEnabled","_tablePostFixingSubtypes","stop","highest","get","execute","findAncestor","trackChanges","rootName","setSelection","commands","author","low","mergeTableCellUp","format","length","element","_isForcedDefaultExecutionBlock","formatBlock","set:isEnabled","editor","getRanges","selection","document","change","TableEditing","map","$graveyard","type","_areSelectedCellsMergable","getSelectionAffectedTableCells","*Split cell:* vertically","locale","add","registerDescriptionCallback","insertion","mergeTableCellLeft","cell","_descriptionFactory","tableCell","horizontally","plugins","_areMergableCells","from","afterInit","createRangeOn","mergeTableCellRight","isInContent","requires","model","getSuggestions","getFirstPosition","direction","markMultiRangeBlockFormat","forceDefaultExecution","TrackChangesEditing","_suggestionFactory","splitTableCellVertically","value","registerCustomCallback","return","*Merge cells*","containsRange","TableUtils","deletion","mergeTableCellDown","has"];var Gx,Hx;Gx=Ux,Hx=307,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x4a")](){return[Bx]}[zx("0x46")](){const t=this[zx("0x2e")],e=t.model[zx("0x31")][zx("0x30")],n=t[zx("0x3a")];if(!t[zx("0x43")][zx("0xc")](zx("0x33")))return;const o=t[zx("0x43")][zx("0x1e")](zx("0x1")),s=t[zx("0x43")][zx("0x1e")](zx("0x9")),i=t.plugins.get(Bx);i[zx("0x1b")].push("mergeTableCells"),o[zx("0x11")]("mergeTableCells",(()=>{const e=s[zx("0x38")](t.model.document.selection);t[zx("0x4b")][zx("0x32")]((()=>{o[zx("0x4f")](e,{commandName:"mergeTableCells",commandParams:[]},[],zx("0x15"))}))})),t.commands[zx("0x1e")](zx("0x15")).on(zx("0x1f"),((e,n)=>{t.commands[zx("0x1e")](zx("0x21"))[zx("0x4")]&&(n[zx("0x29")]>0&&n[n[zx("0x29")]-1]&&n[n[zx("0x29")]-1][zx("0x0")]||o[zx("0x2b")]||this[zx("0x37")]()||e[zx("0x1c")]())}),{priority:zx("0x1d")});for(const e of["mergeTableCellUp","mergeTableCellRight",zx("0xb"),zx("0x3e")]){const n=t.commands[zx("0x1e")](e);o[zx("0x11")](e,(()=>{const e=t[zx("0x4b")].document[zx("0x30")][zx("0x4d")]()[zx("0xd")]()[zx("0x12")]((t=>t.is("element",zx("0x41")))),s=n.value;t.model[zx("0x32")]((()=>{o[zx("0x4f")]([e,s],{commandName:"mergeTableCells",commandParams:[]},[],zx("0x15"))}))}))}for(const e of["splitTableCellVertically",zx("0x13")]){const n=t[zx("0x24")][zx("0x1e")](e);o[zx("0x11")](e,(()=>{const i=s.getSelectionAffectedTableCells(t[zx("0x4b")].document.selection)[0],r=i[zx("0x20")](zx("0x17")),{column:x,row:a}=s.getCellLocation(i);let c=[];if(zx("0x42")==n[zx("0x4e")]){const t=s.createTableWalker(r,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0x45")](t).map((t=>t[zx("0x3f")]))}else{const t=s[zx("0xe")](r,{column:x,includeAllSlots:!0});c=Array[zx("0x45")](t)[zx("0x34")]((t=>t[zx("0x3f")]))}t.model[zx("0x32")]((t=>{o[zx("0x16")](t[zx("0x47")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x40")][zx("0x3c")]((t=>{const{data:e}=t;if(e)return zx("0x15")==e.commandName?{type:zx("0x28"),content:Yo(n,zx("0x7"))}:void 0})),o[zx("0x40")][zx("0x3c")]((t=>{const{data:e}=t;if(e)return zx("0x3")==e.commandName?{type:zx("0x28"),content:Yo(n,zx("0x39"))}:"splitTableCellHorizontally"==e[zx("0xf")]?{type:zx("0x28"),content:Yo(n,zx("0x14"))}:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of[zx("0x27"),zx("0x48"),zx("0xb"),"mergeTableCellLeft"])o[zx("0x2")][zx("0x5")](zx("0x2c"),t,"accept",x);for(const t of[zx("0x3"),"splitTableCellHorizontally"])o[zx("0x2")][zx("0x5")]("formatBlock",t,"accept",x);o[zx("0x2")].registerCustomCallback(zx("0x2c"),zx("0x15"),zx("0x10"),(n=>{t[zx("0x4b")][zx("0x32")]((o=>{const s=Array[zx("0x45")](e[zx("0x2f")]())[zx("0x34")]((t=>r.LiveRange.fromRange(t)));o[zx("0x23")](n),t[zx("0x24")].get("mergeTableCells").refresh(),t[zx("0x1f")]("mergeTableCells",{forceDefaultExecution:!0});const i=s[zx("0x18")]((t=>zx("0x35")!=t.root[zx("0x22")]));i[zx("0x29")]>0&&o[zx("0x23")](i);for(const t of s)t.detach()}))}));for(const e of[zx("0x27"),"mergeTableCellDown",zx("0x3e"),zx("0x48")]){const n=t.commands[zx("0x1e")](e);n.on(zx("0x2d"),((e,o,s)=>{if(s){const o=t[zx("0x4b")].document[zx("0x30")][zx("0x4d")]()[zx("0xd")]()[zx("0x12")]((t=>t.is(zx("0x2a"),zx("0x41"))));this[zx("0x44")](n.value,o)||(e[zx("0x6")]=!1,e[zx("0x1c")]())}}),{priority:zx("0x26")})}}[zx("0x37")](){const t=this[zx("0x2e")].commands[zx("0x1e")](zx("0x15")),e=this[zx("0x2e")].plugins[zx("0x1e")](zx("0x9"));if(!t[zx("0x1a")])return!1;const n=e[zx("0x38")](this.editor[zx("0x4b")][zx("0x31")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x44")](t,e))return!1;return!0}[zx("0x44")](t,e){const n=this[zx("0x2e")].plugins[zx("0x1e")]("TrackChangesEditing"),o=this[zx("0x2e")][zx("0x4b")].createRangeOn(t),s=this.editor[zx("0x4b")][zx("0x47")](e),i=new Set,r=new Set;for(const t of n[zx("0x4c")]())if((zx("0x3d")==t[zx("0x36")]||zx("0xa")==t.type||zx("0x15")==t.subType)&&t[zx("0x49")])for(const e of t.getRanges())e[zx("0x8")](o,!0)&&i.add(t[zx("0x36")]+":"+t[zx("0x25")].id),e[zx("0x8")](s,!0)&&r[zx("0x3b")](t[zx("0x36")]+":"+t[zx("0x25")].id);if(i.size!=r[zx("0x19")])return!1;for(const t of i)if(!r[zx("0xc")](t))return!1;return!0}}const Vx=["accept","cell","getSuggestion","ck-suggestion-marker--active","get","registerCustomCallback","FORMAT_REGULAR_COLUMN","createPositionAfter","activeMarkers","consume","unbindElementFromMarkerName","setTableRowHeader","commandParams","removeMarker:suggestion","table","first","isBefore","bindElementToMarker","headingColumns","setAttribute","toViewElement","end","_acceptFormatSuggestionCallbackFactory","markerNameToElements","selection","stop","data","ck-suggestion-marker-","createPositionBefore","showSuggestionHighlights","_descriptionFactory","enableCommand","addMarker:suggestion","getChild","last","downcastDispatcher","consumable","includes","commandName","FORMAT_HEADER_COLUMN","requires","getSelectionAffectedTableCells","parent","editing","FORMAT_HEADER_ROW","removeClass","options","TableEditing","nodeAfter","markerName","writer","formatBlock","item","change","TrackChangesEditing","_splitMarkerName","value","highest","format","getRowIndexes","_suggestionFactory","childCount","markerRange","markBlockFormat","setTableColumnHeader","start","removeAttribute","index","createRange","model","forceValue","getAttribute","commands","afterInit","headingRows","findAncestor","getCellLocation","document","data-suggestion","mapper","locale","plugins","TableUtils"];var Kx,qx;Kx=Vx,qx=436,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get[Xx("0x13")](){return[Bx]}[Xx("0x34")](){const t=this.editor;if(!t[Xx("0x3c")].has(Xx("0x1a")))return;const e=t[Xx("0x3b")],n=t.plugins[Xx("0x42")](Xx("0x21")),o=t.plugins[Xx("0x42")]("TableUtils"),s=t[Xx("0x3c")][Xx("0x42")](Bx);function i({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,i,r)=>{const{type:x,id:a}=n[Xx("0x22")](i[Xx("0x1c")]),c=n[Xx("0x40")](a);if(!c[Xx("0x5")]||Xx("0x2b")!=c[Xx("0x5")][Xx("0x11")])return;if(i[Xx("0x1f")])return void s[Xx("0x4")]();if(!r[Xx("0xf")][Xx("0x47")](i[Xx("0x29")],s.name))return;const l=i.markerRange[Xx("0x2c")][Xx("0x1b")],d=i[Xx("0x29")][Xx("0x0")].nodeBefore,u=l[Xx("0x15")][Xx("0x15")],{column:g}=o[Xx("0x37")](l),{column:m}=o[Xx("0x37")](d);for(let s=g;s<=m;s++){const c=o.createTableWalker(u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0x3f")],c=r[Xx("0x3a")][Xx("0x52")](s);r[Xx("0x1d")].addClass(Xx("0x6")+x,c),e&&r[Xx("0x1d")][Xx("0x51")]("data-suggestion",a,c),r[Xx("0x3a")][Xx("0x4f")](c,i[Xx("0x1c")]),t&&(n[Xx("0x46")][Xx("0x10")](i.markerName)?r[Xx("0x1d")].addClass(Xx("0x41"),c):r.writer[Xx("0x18")]("ck-suggestion-marker--active",c))}}}}n[Xx("0xa")](Xx("0x49"),((e,s)=>{const i=o[Xx("0x14")](t[Xx("0x30")][Xx("0x38")].selection),r=o[Xx("0x26")](i),x=i[0].findAncestor("table"),a=x[Xx("0x32")](Xx("0x35"))||0,c=s&&null!==s[Xx("0x31")]?s[Xx("0x31")]:!t.commands[Xx("0x42")](Xx("0x49"))[Xx("0x23")],l=c?r[Xx("0xd")]:r[Xx("0x4d")],d=x[Xx("0xc")](l);let u;if(c){const e=x[Xx("0xc")](a);if(d[Xx("0x2e")]<e[Xx("0x2e")])return;u=t[Xx("0x30")][Xx("0x2f")](t[Xx("0x30")].createPositionBefore(e[Xx("0xc")](0)),t[Xx("0x30")][Xx("0x45")](d.getChild(d.childCount-1)))}else{const e=x[Xx("0xc")](a-1);if(!e)return;u=t[Xx("0x30")][Xx("0x2f")](t[Xx("0x30")][Xx("0x7")](d.getChild(0)),t[Xx("0x30")][Xx("0x45")](e[Xx("0xc")](e[Xx("0x28")]-1)))}t[Xx("0x30")][Xx("0x20")]((()=>{n[Xx("0x2a")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],Xx("0x49"))}))})),n[Xx("0xa")](Xx("0x2b"),((e,o)=>{const s=t[Xx("0x3c")].get(Xx("0x3d")),i=s[Xx("0x14")](t[Xx("0x30")][Xx("0x38")][Xx("0x3")]),r=s.getColumnIndexes(i),x=i[0][Xx("0x36")](Xx("0x4c")),a=x.getAttribute(Xx("0x50"))||0,c=o&&null!==o[Xx("0x31")]?o[Xx("0x31")]:!t[Xx("0x33")][Xx("0x42")](Xx("0x2b")).value;let l;const d=x.getChild(0),u=c?r.last:r[Xx("0x4d")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][Xx("0x3f")];if(c){const e=d[Xx("0xc")](a);if(m[Xx("0x4e")](e))return;l=t[Xx("0x30")][Xx("0x2f")](t[Xx("0x30")][Xx("0x7")](e),t.model[Xx("0x45")](m))}else{const e=d[Xx("0xc")](a-1);if(!e)return;l=t[Xx("0x30")][Xx("0x2f")](t[Xx("0x30")][Xx("0x7")](m),t[Xx("0x30")][Xx("0x45")](e))}t[Xx("0x30")].change((()=>{n[Xx("0x2a")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],Xx("0x2b"))}))})),t[Xx("0x16")][Xx("0xe")].on(Xx("0xb"),i(),{priority:Xx("0x24")}),t.data[Xx("0xe")].on(Xx("0xb"),((t,e,n)=>{n[Xx("0x19")][Xx("0x8")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x24")}),t[Xx("0x16")][Xx("0xe")].on(Xx("0x4b"),((t,e,o)=>{const{type:s,id:i}=n[Xx("0x22")](e.markerName),r=n[Xx("0x40")](i);if(!r[Xx("0x5")]||Xx("0x2b")!=r[Xx("0x5")].commandName)return;const x=o[Xx("0x3a")][Xx("0x2")](e.markerName);if(x)for(const t of x)o[Xx("0x1d")][Xx("0x18")](Xx("0x6")+s,t),o[Xx("0x1d")].removeClass(Xx("0x41"),t),o[Xx("0x1d")][Xx("0x2d")](Xx("0x39"),t),o[Xx("0x3a")][Xx("0x48")](t,e.markerName)}),{priority:Xx("0x24")}),n[Xx("0x9")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(Xx("0x49")==n[Xx("0x11")]){const t=n.commandParams[0][Xx("0x31")];return o(Yo(e,t?Xx("0x17"):"FORMAT_REGULAR_ROW"))}if(Xx("0x2b")==n[Xx("0x11")]){const t=n[Xx("0x4a")][0].forceValue;return o(Yo(e,Xx(t?"0x12":"0x44")))}}function o(t){return{type:Xx("0x25"),content:Yo(e,"*Format:* %0",t)}}}));const r=s[Xx("0x1")]();n[Xx("0x27")][Xx("0x43")](Xx("0x1e"),Xx("0x49"),"accept",r),n._suggestionFactory.registerCustomCallback(Xx("0x1e"),Xx("0x2b"),Xx("0x3e"),r)}}const Jx=["suggestion:formatBlock:tablePasteCell","getColumns","next","getRange","TrackChangesEditing","nodeAfter","elementToElement","markers","root","low","for","_tablePostFixingSubtypes","some","remove","commands","registerCustomCallback","editingDowncast","fromEntries","tableCell","end","columnInsertionIndexes","paragraph","row","formatBlock","hasSuggestion","insert","getMarkers","removeMarker","trackChanges","first","last","high","getAllAdjacentSuggestions","ck-suggestion-marker--active","suggestion-td","getRanges","table","move","suggestionLoaded","createRangeIn","insertion","every","createRangeOn","author","return","forceDefaultExecution","tableCellBorderWidth","filter","includes","TableClipboard","newRange","tableCellPadding","requires","removeColumns","containsRange","endRow","position","stop","getSuggestion","value","getColumnIndexes","entries","registerDescriptionCallback","TableUtils","plugins","createPositionBefore","setAttributes","subType","$graveyard","batch","getItems","getSelectionAffectedTableCells","_suggestionFactory","findAncestor","cell","endColumn","conversion","removeMarkers","unwrap","start","rowInsertionIndexes","suggestion","startsWith","has","createTableWalker","content","isInContent","tableCellSuggestion","nextSibling","tablePasteChainId","ck-suggestion-marker-insertion","editor","rowInsertionRanges","getRowIndexes","columnInsertionRanges","map","afterInit","tableCellHorizontalAlignment","from","Users","markerName","insertionRanges","previous","element","markerToHighlight","document","tablePasteRow","differ","getChanges","getAttributes","_createdBatches","oldRange","createElement","getSuggestionCallback","add","getTableIfOnlyTableInContent","dataDowncast","tablePaste","isEmpty","tablePasteColumn","accept","_getCoordsForCells","getChangedMarkers","attributes","markerAttributes","name","tablePasteCell","editing","previousSibling","getChild","view","schema","markMultiRangeBlockFormat","getContainedElement","get","redo","locale","model","_splitMarkerName","markMultiRangeInsertion","_descriptionFactory","getShiftedBy","change","cells","push","isEqual","createRange","registerPostFixer","reduce","join","getChildren","set","getSuggestions","markMultiRangeDeletion","rootName","discard","_isForcedDefaultExecutionBlock","columns","deletion","*Replace table cells*","length"];var Qx,Zx;Qx=Jx,Zx=178,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x1d"),"tableCellBorderColor","tableCellBorderStyle",Yx("0x50"),"tableCellVerticalAlignment","tableCellBackgroundColor",Yx("0x22")],ea=Object[Yx("0x0")](ta[Yx("0x4e")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x23")](){return[Bx]}[Yx("0x4f")](){const t=this[Yx("0x4a")];if(!t[Yx("0x2f")].has("TableClipboard"))return;const n=t.plugins[Yx("0x75")](Yx("0x94")),o=t.plugins[Yx("0x75")](Yx("0x2e")),s=t[Yx("0x2f")][Yx("0x75")](Bx),i=t[Yx("0x2f")][Yx("0x75")](Yx("0x20"));s[Yx("0x9b")][Yx("0x7f")](Yx("0x59"),Yx("0x66")),t[Yx("0x78")][Yx("0x72")].register("tableCellSuggestion",{allowIn:Yx("0x1"),allowContentOf:"tableCell",isLimit:!0}),t.conversion[Yx("0x96")]({model:Yx("0x46"),view:Yx("0x11")});let r=null;t[Yx("0x78")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x[Yx("0x8f")]-1];l&&l[Yx("0x1c")]||n[Yx("0x8b")]||this.editor.commands[Yx("0x75")](Yx("0xb"))[Yx("0x2a")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const i=s[Yx("0x62")](t,n);if(!i||!sa(i,void 0,o))return!1;const r=o[Yx("0x36")](n[Yx("0x58")].selection);if(!r[Yx("0x8f")])return!1;const x=r[0][Yx("0x38")](Yx("0x13")),a=o[Yx("0x4c")](r),c=o[Yx("0x2b")](r),l={startRow:a[Yx("0xc")],endRow:a[Yx("0xd")],startColumn:c.first,endColumn:c[Yx("0xd")]};return 1==r[Yx("0x8f")]&&(l[Yx("0x26")]+=o.getRows(i)-1,l[Yx("0x3a")]+=o[Yx("0x91")](i)-1),sa(x,l,o)}(a,c,t[Yx("0x78")],o,i)&&(s[Yx("0x28")](),r={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model.change((()=>{t[Yx("0x78")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=r;s[Yx("0x8f")]&&n[Yx("0x7a")](s,Yx("0x59"),{tablePasteChainId:o}),i[Yx("0x8f")]&&n[Yx("0x7a")](i,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n.markMultiRangeInsertion(a,Yx("0x64"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x8f")]&&n[Yx("0x88")](c,Yx("0x64"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x73")](l[Yx("0x4e")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(d){const e=d[Yx("0x9")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const i=t[Yx("0x78")][Yx("0x19")](o),r=e.find((t=>t[Yx("0x93")]().isEqual(i)));r&&n[Yx("0x7f")]([r[Yx("0x6c")],s])}n[Yx("0x8f")]&&d.setAttribute("markerAttributes",Object[Yx("0x0")](n))}r=null})))}),{priority:e.priorities.high+10}),t[Yx("0x2f")].get(Yx("0x20")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!r)return;t[Yx("0x28")]();const i=n[Yx("0x39")],x=o,a=oa(i),c=oa(x);t[Yx("0x1b")]=i;let l=null,d=null;if(c||a)if(a&&!c){s.remove(i[Yx("0x70")](0));for(const t of Array.from(x[Yx("0x85")]()))s[Yx("0x8")](t,i,Yx("0x2"));const t=r[Yx("0x3f")][Yx("0x1f")](n[Yx("0x5")]),e=r[Yx("0x3")].includes(n.column);t||e||(l=s[Yx("0x16")](i))}else c&&!a&&(d=s[Yx("0x16")](i));else{const t=s[Yx("0x5f")]("tableCellSuggestion"),e=s[Yx("0x5f")]("tableCellSuggestion");s.wrap(s[Yx("0x16")](i),e),s[Yx("0x8")](t,i,0);for(const e of Array[Yx("0x51")](x[Yx("0x85")]()))s[Yx("0x8")](e,t,Yx("0x2"));l=s.createRangeOn(t),d=s[Yx("0x19")](e)}const u=Array[Yx("0x51")](x[Yx("0x5c")]())[Yx("0x1e")]((([t])=>ta[Yx("0x1f")](t)));r[Yx("0x7e")][Yx("0x7f")]({element:i,attributes:u.length?Object[Yx("0x0")](u):null}),l&&r[Yx("0x54")].push(l),d&&r.deletionRanges.push(d)}),{priority:"high"}),o.on("insertColumns",((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i[Yx("0x8c")]||1;r[Yx("0x3")]=new Array(a).fill(x)[Yx("0x4e")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))r[Yx("0x4d")][Yx("0x7f")](t[Yx("0x78")][Yx("0x19")](e))}),{priority:"low"}),o.on("insertRows",((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i.rows||1;r[Yx("0x3f")]=new Array(a).fill(x)[Yx("0x4e")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x43")](s,{startRow:x,endRow:x+a-1}))r[Yx("0x4b")][Yx("0x7f")](t[Yx("0x78")][Yx("0x19")](e))}),{priority:Yx("0x99")}),n[Yx("0x7b")][Yx("0x2d")]((e=>{if(e[Yx("0x32")]&&e[Yx("0x32")].startsWith(Yx("0x64")))return e.previous?{}:{type:Yx("0x17"),content:Yo(t[Yx("0x77")],Yx("0x8e"))}}));const x=()=>!1;for(const t of[Yx("0x64"),Yx("0x66"),Yx("0x59"),"tablePasteCell"])n._suggestionFactory[Yx("0x9f")]("insertion",t,"join",x),n[Yx("0x37")].registerCustomCallback(Yx("0x8d"),t,"join",x),n[Yx("0x37")][Yx("0x9f")]("formatBlock",t,Yx("0x84"),x);n[Yx("0x37")][Yx("0x9f")](Yx("0x6"),Yx("0x6d"),Yx("0x8a"),x),n._suggestionFactory[Yx("0x9f")]("formatBlock",Yx("0x6d"),Yx("0x67"),((e,n,o)=>{const s=e[Yx("0x4e")]((t=>t[Yx("0x74")]()))[Yx("0x1e")]((t=>t)),i=new Map(s[Yx("0x4e")]((t=>[t,null])));if(r)for(const{element:t,attributes:e}of r.cells)e&&i[Yx("0x86")](t,e);else if(o&&o[Yx("0x6b")])for(const[e,n]of Object[Yx("0x2c")](o[Yx("0x6b")])){const o=t[Yx("0x78")][Yx("0x97")][Yx("0x75")](e),s=o?o.getRange()[Yx("0x74")]():null;s&&i.set(s,n)}t.model[Yx("0x7d")]((t=>{for(const[e,n]of i)t[Yx("0x31")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x37")][Yx("0x9f")](e,"tablePaste",o,((s,i,r)=>{t[Yx("0x78")][Yx("0x7d")]((t=>{const x=[];for(const t of s){const e=t[Yx("0x3e")][Yx("0x95")];e.is(Yx("0x56"),"tableCellSuggestion")&&x[Yx("0x7f")](e)}n[Yx("0x37")][Yx("0x60")](e,null,o)(s,i,r);for(const e of x)Yx("0x33")!=e[Yx("0x98")][Yx("0x89")]&&t[Yx("0x3d")](e)}))}))};a(Yx("0x17"),Yx("0x67")),a(Yx("0x17"),Yx("0x8a")),a("deletion",Yx("0x67")),a(Yx("0x8d"),"discard"),n[Yx("0x37")][Yx("0x9f")]("insertion",Yx("0x59"),"discard",(t=>{const e=t.map((t=>t[Yx("0x74")]())),n=e[0].findAncestor("table"),{minRow:i,maxRow:r}=s[Yx("0x68")](e);o.removeRows(n,{at:i,rows:r-i+1})})),n._suggestionFactory[Yx("0x9f")]("insertion","tablePasteColumn",Yx("0x8a"),(t=>{const e=t[Yx("0x4e")]((t=>t[Yx("0x74")]())),n=e[0][Yx("0x38")]("table"),{minColumn:i,maxColumn:r}=s[Yx("0x68")](e);o[Yx("0x24")](n,{at:i,columns:r-i+1})}));const c=(t,e)=>{if(!e.subType||!e[Yx("0x32")][Yx("0x41")]("tablePaste"))return;const o=e[Yx("0x6a")][Yx("0x48")],s=n.getSuggestions()[Yx("0x1e")]((t=>t[Yx("0x45")]&&t[Yx("0x6a")]&&t[Yx("0x6a")][Yx("0x48")]==o));s[Yx("0x8f")]&&e[Yx("0xf")]()[Yx("0x8f")]!=s[Yx("0x8f")]&&s[Yx("0x83")](((t,e)=>(t[Yx("0x92")]=e,e[Yx("0x55")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x79")](t[Yx("0x53")]),s=["ck-suggestion-marker",Yx("0x49")],i=n.activeMarkers[Yx("0x1f")](t[Yx("0x53")]);return i&&s[Yx("0x7f")](Yx("0x10")),{classes:s,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(Yx("0x15"),c,{priority:Yx("0xe")}),n.on("suggestionUnloaded",c,{priority:"high"}),t[Yx("0x78")][Yx("0x58")][Yx("0x82")]((()=>{let e=!1;const o=Array[Yx("0x51")](t.model[Yx("0x58")][Yx("0x5a")][Yx("0x69")]());for(const{name:s,data:i}of o){const{group:o,type:r,id:x}=n[Yx("0x79")](s);if(Yx("0x40")!=o||Yx("0x8d")!=r||i[Yx("0x5e")])continue;if(!n[Yx("0x7")](x))continue;const a=n[Yx("0x29")](x).getRanges(),c=t.plugins[Yx("0x75")](Yx("0x52")).me;for(const t of n[Yx("0x87")]())if(t.isInContent&&t[Yx("0x1a")]==c&&Yx("0x6")==t.type&&Yx("0x6d")==t.subType&&t[Yx("0x12")]()[Yx("0x18")]((t=>a[Yx("0x9c")]((e=>e[Yx("0x25")](t,!0))))))for(const n of t[Yx("0xf")]())n[Yx("0x45")]&&(n[Yx("0x8a")](),e=!0)}return e})),t.model[Yx("0x58")][Yx("0x82")]((e=>{const o=t[Yx("0x9e")][Yx("0x75")](Yx("0x76"));if(!o||!o[Yx("0x5d")][Yx("0x42")](e[Yx("0x34")]))return!1;let s=!1;const i=t[Yx("0x2f")][Yx("0x75")](Yx("0x52")).me,r=t[Yx("0x78")].document[Yx("0x5a")][Yx("0x5b")](),x=Array[Yx("0x51")](t.model[Yx("0x58")].differ[Yx("0x69")]())[Yx("0x1e")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:r}=n._splitMarkerName(t);return Yx("0x40")==o&&"tablePaste"==s&&r==i.id&&!e[Yx("0x5e")]}));for(const t of r){if(Yx("0x8")!=t.type||Yx("0x46")!=t[Yx("0x6c")]||1!=t[Yx("0x8f")])continue;const n=e[Yx("0x81")](t.position,t[Yx("0x27")][Yx("0x7c")](1));if(!x.find((({data:t})=>t.newRange[Yx("0x80")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x25")](o[Yx("0x21")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Yx("0x78")][Yx("0x58")][Yx("0x82")]((e=>{let o=!1;const s=t[Yx("0x2f")][Yx("0x75")](Yx("0x52")).me,i=n[Yx("0x87")]()[Yx("0x1e")]((t=>t.isInContent&&t[Yx("0x1a")]==s)),r=new Set,x=new Set;for(const t of i)if(Yx("0x64")==t.subType)for(const e of t[Yx("0x9")]()){const n=e[Yx("0x93")]().getContainedElement();if(n)if(n.is(Yx("0x56"),Yx("0x46"))&&oa(n)){t[Yx("0xa")](e[Yx("0x6c")]),r.add(n),o=!0;const s=n[Yx("0x47")],i=n[Yx("0x6f")],a=s&&s.is(Yx("0x56"),Yx("0x46")),c=i&&i.is(Yx("0x56"),Yx("0x46"));a&&!r[Yx("0x42")](s)&&x.add(s),c&&!r[Yx("0x42")](i)&&x[Yx("0x61")](i)}else n.is("element",Yx("0x4"))&&n[Yx("0x65")]&&(t[Yx("0xa")](e[Yx("0x6c")]),o=!0)}else if(Yx("0x6d")==t[Yx("0x32")]){if(!t[Yx("0x6a")]||!t[Yx("0x6a")][Yx("0x48")])continue;const e=t[Yx("0x6a")][Yx("0x6b")];if(e&&Object.keys(e)[Yx("0x8f")])continue;const n=t.attributes[Yx("0x48")];let s=!0,r=!0;for(const e of i)if(e[Yx("0x32")]&&e[Yx("0x32")][Yx("0x41")](Yx("0x64"))){if(!e[Yx("0x6a")][Yx("0x48")]){r=!1;break}if(e.id!=t.id&&e[Yx("0x6a")][Yx("0x48")]==n){s=!1;break}}r&&s&&(t[Yx("0x3c")](),o=!0)}for(const t of r)e[Yx("0x9d")](t);for(const t of x)e[Yx("0x3d")](t);return o})),t[Yx("0x3b")][Yx("0x9a")](Yx("0xa0"))[Yx("0x57")]({model:Yx("0x90"),view:(t,e)=>l(t),converterPriority:Yx("0xe")}),t[Yx("0x3b")][Yx("0x9a")](Yx("0x63"))[Yx("0x57")]({model:Yx("0x90"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:Yx("0xe")});const d=t[Yx("0x6e")][Yx("0x71")];this.listenTo(d[Yx("0x58")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Yx("0x44")])[Yx("0x35")]())t.is(Yx("0x56"),"suggestion-td")&&n[Yx("0x7f")](t);d[Yx("0x7d")]((t=>{for(const e of n)t[Yx("0x14")](t[Yx("0x16")](e),t[Yx("0x30")](e)),t[Yx("0x9d")](e)}))}))}}function oa(t){if(t[Yx("0x65")])return!0;const e=t[Yx("0x70")](0);return e.is(Yx("0x56"),Yx("0x4"))&&e.isEmpty}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:i}of n[Yx("0x43")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=i)return!1;return!0}const ia=["discard","handleSuggestionDescription","Users","editor","tableWidth","has","get","getContainedElement","document","*Format:* resize table","enableCommand","subType","formatGroupId","format","registerCustomCallback","handleResizeTableWidthCommand","change","accept","getSelectedElement","_suggestionFactory","getSuggestionCallback","bind","getColumnGroupElement","columnWidths","formatBlock","registerDescriptionCallback","TrackChangesEditing","getAttribute","getTableColumnsWidths","model","plugins","resizeTable","selection","_descriptionFactory","commandParams","resizeTableWidth","table","data","resizeColumnWidths"];var ra,xa;ra=ia,xa=137,function(t){for(;--t;)ra.push(ra.shift())}(++xa);const aa=function(t,e){return ia[t-=0]};class ca extends t.Plugin{afterInit(){if(!this.editor[aa("0xa")][aa("0x18")]("TableColumnResizeEditing"))return;const t=this[aa("0x16")][aa("0xa")][aa("0x19")](aa("0x6"));t[aa("0x1d")](aa("0xf"),this[aa("0x22")][aa("0x1")](this)),t[aa("0x1d")](aa("0x12"),this[aa("0x22")][aa("0x1")](this)),t[aa("0x26")][aa("0x21")](aa("0x4"),aa("0xb"),aa("0x24"),t[aa("0x26")][aa("0x0")]("formatBlock",null,aa("0x13"))),t[aa("0x26")][aa("0x21")](aa("0x4"),aa("0xb"),aa("0x13"),t[aa("0x26")].getSuggestionCallback(aa("0x4"),null,aa("0x24"))),t[aa("0xd")][aa("0x5")](this[aa("0x14")][aa("0x1")](this))}[aa("0x22")](t,e){const n=this[aa("0x16")].plugins[aa("0x19")](aa("0x6")),o=this[aa("0x16")].plugins[aa("0x19")]("TableColumnResizeEditing"),s=e[aa("0x10")]||this[aa("0x16")][aa("0x9")][aa("0x1b")][aa("0xc")][aa("0x25")]();this[aa("0x16")][aa("0x9")][aa("0x23")]((()=>{const i=o[aa("0x2")](s);let r=i?o[aa("0x8")](i):null,x=s[aa("0x7")](aa("0x17"))||null;const a=e.tableWidth||x,c=e[aa("0x3")]||r,l=this.editor[aa("0xa")][aa("0x19")](aa("0x15")).me;for(const t of n.getSuggestions()){const e=t[aa("0x1a")]();if(aa("0xb")===t[aa("0x1e")]&&e===s){t.author!==l&&t[aa("0x13")]();const e=t[aa("0x11")][aa("0xe")];x=e[0].tableWidth,r=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:aa("0xf"),commandParams:[{tableWidth:x,columnWidths:r}],formatGroupId:aa("0xb")},[],"resizeTable")}))}[aa("0x14")](t){const{data:e}=t;if(e&&aa("0xb")===e[aa("0x1f")]){const t=aa("0x1c");return{type:aa("0x20"),content:Yo(this[aa("0x16")].locale,t)}}}}const la=["afterInit","insertTemplate","TrackChangesEditing","plugins","editor","enableCommand"];var da,ua;da=la,ua=185,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this[ga("0x5")];t[ga("0x4")].has("Template")&&t[ga("0x4")].get(ga("0x3"))[ga("0x0")](ga("0x2"))}}const fa=["editor","locale","tableOfContents","get","TrackChangesEditing","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","_descriptionFactory","plugins","enableCommand"];var ha,pa;ha=fa,pa=374,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x6")];if(!t.commands.get("insertTableOfContents"))return;t[ba("0x4")][ba("0x9")]("TrackChangesEditing")[ba("0x5")]("insertTableOfContents");const e=t[ba("0x4")][ba("0x9")](ba("0x0")),n=t[ba("0x7")];e[ba("0x3")][ba("0x1")](ba("0x8"),(t=>Yo(n,ba("0x2"),t)))}}const _a=["createRange","TrackChangesEditing","isTouching","registerPostFixer","start","model","get","afterInit","forward","_splitMarkerName","end","isEqual","nodeBefore","suggestion","element","title-content","getNearestSelectionRange","newRange","document","Title","editor","has","getChangedMarkers","locale","schema","plugins","_descriptionFactory","from","updateMarker"];var Ta,Ca;Ta=_a,Ca=222,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x11")](){const t=this[ya("0x1")];if(!t[ya("0x6")][ya("0x2")](ya("0x0")))return;const e=t[ya("0x6")][ya("0x10")](ya("0xb"));e[ya("0x7")].registerElementLabel("title-content",(()=>Yo(t[ya("0x4")],"ELEMENT_TITLE"))),t[ya("0xf")][ya("0x1c")][ya("0xd")]((n=>{let o=!1;const s=Array[ya("0x8")](t[ya("0xf")].document.differ[ya("0x3")]());for(const{name:i,data:r}of s){const{group:s}=e[ya("0x13")](i);if(ya("0x17")!==s||!r[ya("0x1b")])continue;const x=r[ya("0x1b")],a=x[ya("0x14")][ya("0x16")];if(!a||!a.is(ya("0x18"),ya("0x19")))continue;if(!x[ya("0xe")][ya("0xc")](x.end))continue;const c=t[ya("0xf")][ya("0x5")][ya("0x1a")](x[ya("0x14")],ya("0x12"));if(c&&c.isCollapsed){const t=n[ya("0xa")](x[ya("0xe")],c[ya("0xe")]);t[ya("0x15")](x)||(n[ya("0x9")](i,{range:t}),o=!0)}o||(n.removeMarker(i),o=!0)}return o}))}}const Aa=["undo","plugins","has","enableCommand","get"];var va,Ra;va=Aa,Ra=263,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{afterInit(){const t=this.editor,e=t[Ia("0x3")][Ia("0x1")]("TrackChangesEditing");t[Ia("0x3")][Ia("0x4")]("UndoEditing")&&(e.enableCommand(Ia("0x2")),e[Ia("0x0")]("redo"))}}const La=["TrackChangesEditing","TableCaptionEditing","get","toggleTableCaption","plugins","has","afterInit"];var Na,wa;Na=La,wa=299,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get requires(){return[Bx]}[Ma("0x1")](){const t=this.editor;t[Ma("0x6")][Ma("0x0")](Ma("0x3"))&&t[Ma("0x6")][Ma("0x4")](Ma("0x2")).enableCommand(Ma("0x5"))}}const Fa=["handleListReversedCommand","plugins","list.properties","DocumentListPropertiesUtils","toUpperCase","handleDescriptions","from","getSelectedBlocks","listStyle","numbered","*Format:* set order to reversed","config","enableCommand","format","model","change","commandParams","_LIST_","styles","_getTranslationKeyForListStyle","listStart","filter","DocumentListUtils","_descriptionFactory","getAttribute","startIndex","ELEMENT_","markMultiRangeBlockFormat","editor","_getSuggestionBlocks","type","get","bind","handleListStyleCommand","*Change to:* %0","replace","document","listType","DocumentListPropertiesEditing","has","TrackChangesEditing","_getSuggestionBlocksForListStyle","reversed","listReversed","length","handleListStartCommand","getListTypeFromListStyleType","expandListBlocksToCompleteList","push"];var Pa,Da;Pa=Fa,Da=277,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{afterInit(){if(!this[Ba("0x2d")][Ba("0x12")][Ba("0x7")](Ba("0x6")))return;const t=this.editor[Ba("0x1c")][Ba("0x30")](Ba("0x13")),e=this[Ba("0x2d")].plugins.get("TrackChangesEditing");t[Ba("0x23")]&&e[Ba("0x1d")]("listStyle",this[Ba("0x1")].bind(this)),t[Ba("0xa")]&&e[Ba("0x1d")](Ba("0xb"),this[Ba("0x11")].bind(this)),t[Ba("0x2a")]&&e[Ba("0x1d")](Ba("0x25"),this[Ba("0xd")][Ba("0x0")](this)),e[Ba("0x28")].registerDescriptionCallback(this.handleDescriptions[Ba("0x0")](this))}[Ba("0x1")](t,e={}){const n=this[Ba("0x2d")].plugins[Ba("0x30")](Ba("0x8")),o=this[Ba("0x9")]();this[Ba("0x2d")].model[Ba("0x20")]((()=>{n[Ba("0x2c")](o,{commandName:Ba("0x19"),commandParams:[{type:e[Ba("0x2f")]}],formatGroupId:Ba("0x19")})}))}[Ba("0x11")](t,e={}){const n=this.editor[Ba("0x12")].get(Ba("0x8")),o=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x27")),s=this[Ba("0x2e")]((t=>o.isListItemBlock(t)&&"numbered"===t[Ba("0x29")]("listType")));null!==s&&this.editor[Ba("0x1f")][Ba("0x20")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ba("0xb"),commandParams:[{reversed:e[Ba("0xa")]}],formatGroupId:Ba("0xb")})}))}[Ba("0xd")](t,e={}){const n=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x8")),o=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x27")),s=this[Ba("0x2e")]((t=>o.isListItemBlock(t)&&Ba("0x1a")===t[Ba("0x29")](Ba("0x5"))));null!==s&&this.editor.model.change((()=>{n[Ba("0x2c")](s,{commandName:Ba("0x25"),commandParams:[{startIndex:e[Ba("0x2a")]}],formatGroupId:Ba("0x25")})}))}[Ba("0x16")](t){const e=this[Ba("0x2d")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o=Ba("0x2"),s={type:Ba("0x1e"),content:Yo(e,o,Yo(e,this[Ba("0x24")](n[Ba("0x21")][0][Ba("0x2f")])))};break;case Ba("0xb"):o=n.commandParams[0][Ba("0xa")]?Ba("0x1b"):"*Format:* set order to regular",s={type:Ba("0x1e"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:Ba("0x1e"),content:Yo(e,o,n[Ba("0x21")][0][Ba("0x2a")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x27"));let e=Array[Ba("0x17")](this[Ba("0x2d")].model.document.selection[Ba("0x18")]());return e[Ba("0x10")](...t[Ba("0xf")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ba("0x2d")][Ba("0x12")][Ba("0x30")](Ba("0x27"));let n=Array[Ba("0x17")](this[Ba("0x2d")][Ba("0x1f")][Ba("0x4")].selection[Ba("0x18")]())[Ba("0x26")](t);if(!n[Ba("0xc")])return null;n=e[Ba("0xf")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[Ba("0x10")](t);return o}[Ba("0x24")](t){return Ba("0x2b")+this[Ba("0x2d")].plugins.get(Ba("0x14"))[Ba("0xe")](t)[Ba("0x15")]()+Ba("0x22")+t[Ba("0x15")]()[Ba("0x3")](/-/g,"_")}}const Ua=["handleSuggestionDescription","tableBackgroundColor","handleDiscardAction","tableHeight","_descriptionFactory","table","formatBlock","format","_handlePropertyChange","subType","get","setAttribute","afterInit","tableCellBorderWidth","TablePropertiesEditing","commandParams","locale","TableUtils","registerDescriptionCallback","registerCustomCallback","tableCellBorderColor","TrackChangesEditing","tableProperties","_getSuggestion","change","join","*Format:* change table properties","tableCellHorizontalAlignment","enableCommand","selection","_suggestionFactory","model","document","TableCellPropertiesEditing","plugins","tableAlignment","enqueueChange","discard","tableCellProperties","*Format:* change table cell properties","getSuggestions","editor","getAttribute","tableCellPadding","pluginName","TrackChangesTableProperties","tableCellHeight","getSuggestionCallback","tableWidth","data","tableCellWidth","accept","start","tableCellBorderStyle","has","markBlockFormat","getSelectionAffectedTableCells","batch"];var Ga,Ha;Ga=Ua,Ha=491,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x35")]=["tableBorderColor","tableBorderStyle","tableBorderWidth",za("0x8"),za("0x15"),za("0x22"),za("0x20")],this[za("0xb")]=[za("0x33"),za("0x1a"),za("0x2c"),za("0x10"),za("0x17"),za("0x13"),"tableCellBackgroundColor",za("0x0"),"tableCellVerticalAlignment"]}static get[za("0x11")](){return za("0x12")}[za("0x2b")](){const t=this[za("0xe")][za("0x7")][za("0x29")](za("0x34"));if(this[za("0xe")].plugins.has(za("0x2d"))){for(const e of this[za("0x35")])t[za("0x1")](e,((t,n)=>{const o=this[za("0xe")][za("0x4")][za("0x5")].selection.getFirstPosition().findAncestor(za("0x24"));this[za("0x27")](e,[o],this[za("0x35")],za("0x35"),t,n)}));t._suggestionFactory[za("0x32")](za("0x25"),"tableProperties",za("0x18"),t[za("0x3")][za("0x14")]("formatBlock",null,"discard")),t[za("0x3")][za("0x32")](za("0x25"),za("0x35"),za("0xa"),((t,e)=>this[za("0x21")](this.tableProperties,t,e))),t[za("0x3")][za("0x32")](za("0x25"),za("0x35"),za("0x38"),(()=>!1))}if(this[za("0xe")].plugins[za("0x1b")](za("0x6"))){for(const e of this.tableCellProperties)t[za("0x1")](e,((t,n)=>{const o=this[za("0xe")][za("0x7")].get(za("0x30"))[za("0x1d")](this[za("0xe")][za("0x4")][za("0x5")][za("0x2")]);this._handlePropertyChange(e,o,this.tableCellProperties,"tableCellProperties",t,n)}));t[za("0x3")][za("0x32")]("formatBlock",za("0xb"),za("0x18"),t[za("0x3")].getSuggestionCallback(za("0x25"),null,za("0xa"))),t[za("0x3")][za("0x32")](za("0x25"),za("0xb"),za("0xa"),((t,e)=>this[za("0x21")](this[za("0xb")],t,e))),t[za("0x3")][za("0x32")](za("0x25"),za("0xb"),za("0x38"),(()=>!1))}t[za("0x23")][za("0x31")]((t=>this[za("0x1f")](t)))}[za("0x27")](t,e,n,o,s,i){const r=this[za("0xe")][za("0x7")][za("0x29")](za("0x34"));this[za("0xe")][za("0x4")][za("0x9")](i[za("0x1e")],(()=>{for(const t of e)if(this[za("0x36")](t,o))s(i);else{const e={};for(const o of n){const n=t[za("0xf")](o);void 0!==n&&(e[o]=n)}s(i),r[za("0x1c")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][za("0x19")].nodeAfter,s=n[za("0x2e")][0];this.editor.model[za("0x37")]((e=>{for(const n of t)void 0!==s[n]?e[za("0x2a")](n,s[n],o):e.removeAttribute(n,o)}))}[za("0x1f")](t){if(t[za("0x16")])switch(t[za("0x28")]){case za("0x35"):return{type:za("0x26"),content:Yo(this[za("0xe")][za("0x2f")],za("0x39"))};case za("0xb"):return{type:za("0x26"),content:Yo(this[za("0xe")][za("0x2f")],za("0xc"))}}}[za("0x36")](t,e){const n=this.editor[za("0x7")].get("TrackChangesEditing");for(const o of n[za("0xd")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[za("0x28")]===e&&n===t)return o}return null}}const Va=["consumable","accept","_removeSuggestion","_trackFormatChanges","deletion","set","oldRange","markerNameToElements","_breakSuggestionMarker","_setSuggestionRange","type","position","formatBlock:join","$graveyard","keys","pluginName","_addThreadToSuggestion","formatBlock","authorName","addSuggestion","includes","formatInline:join","change:data","containsRangeInObject","get","_checkSuggestionCorrectness","nodeAfter","isInsideObject","createdAt","isIntersectingWithRange","markMultiRangeBlockFormat","createPositionAfter","batch","start","multipleBlocks","rootName","showSuggestionHighlights","isSelectable","marker-count","push","attributes","multi","getRange","discard","track-changes-command-not-found","size","TrackChangesEditing","every","commandName","add","markMultiRangeInsertion","track-changes-suggestion-not-found","trackChanges","getSuggestionCallback","addSuggestionData","markInlineFormat","registerPostFixer","data","markInsertion","isObject","commentThread","subType","suggestion","insertion:","listenTo","discardSelectedSuggestions","_setSuggestionData","getAttribute","getCustomProperty","activeMarkers","applyOperation","suggestionLoaded","documentSelection","requires","trackChanges.mergeNestedSuggestions","markerToData","_splitMarkerName","_isForcedDefaultExecutionBlock","track-changes-suggestion-data-mismatch","getNearestSelectionRange","isCollapsed","widget","locale","_addSuggestionMarker","_joinSuggestions","editingDowncast","_registerDefaultCallbacks","addMarker:suggestion:formatBlock","range","value","author","_commentsRepository","isBlock","ck-suggestion-marker-","_getAuthorFromId","removeMarkers","skipNestingCheck","next","_descriptionFactory","@external","acceptSelectedSuggestions","insertion","enableReadOnlyMode","forward","deletion:chain","normal","isRemovable","stopListening","removeMarker","getChanges","PENDING_ACTION_SUGGESTION","length","newRange","formatInline:accept","createRange","mapper","ck-suggestion-marker","_customCallbacks","toJSON","Users","isInContent","differ","formatInline:chain","filter","addClass","suggestionUnloaded","getDifference","_suggestionState","containsItem","moveTargetPosition","toViewElement","fromCharCode","define","element","isAtStart","createElement","_updateSuggestionData","_suggestionFactory","change:_saved","suggestion:","delete","dataReady","getWalker","return","createPositionAt","getAllAdjacentSuggestions","commands","isLimit","resolve","fetchCommentThread","options","isDocumentOperation","getSuggestion","getUser","removeMarker:suggestion:formatBlock","map","ck-suggestion-marker-formatBlock","ready","previous","adapter","deleteContent","isAfter","consume","isArray","_editor","getFirstMarker","from","updateSuggestion","never","removeClass","some","values","createSelection","enableCommand","setTo","deletion:join","before","track-changes-adapter-already-set","execute","refresh","sort","stop","buildSuggestion","howMany","assign","bindElementToMarker","isEqual","nodeBefore","_handleNewSuggestionMarker","elementEnd","elementStart","remove","then","upcast","_isDataLoaded","getRanges","formatBlock:accept","_adapter","PendingActions","insertion:accept","createRangeIn","root","addRange","_joinWithAdjacentSuggestions","for","insert","containsRange","high","markerToHighlight","enqueueChange","isUndo","getMarkers","external:","getShiftedBy","hasCommentThread","fire","_refreshSuggestionsChain","getItems","isLocal","selection","_saved","name","default","authoredAt","getLastMatchingPosition","change","forceDefaultExecution","insertion:join","getFirstRange","dataDowncast","config","getIntersection","reconvertMarker","discardSuggestion","isNextTo","detach","markers","_enabledCommands","addMarkerName","conversion","addHighlight","lowest","join","markDeletion","document","getMultiRangeId","_suggestions","move","getSuggestions","_mergeNestedSuggestions","formatBlock:","_model","track-changes-user-not-found","getChangedMarkers","removed","_onDiscard","isOwn","addMarker","backward","clone","low","targetPosition","acceptSuggestion","dataToMarker","_findSuggestions","parent","isBefore","catch","always","editor","markerName","_createSuggestion","has","formatInline","containsPosition","split","collaboration.channelId","acceptAllSuggestions","ck-suggestion-marker--active","rethrowUnexpectedError","insertContent","head","formatGroupId","_defaultCallbacks","trackChanges.trackFormatChanges","deletion:","_rangeIsInLocalUserInsertion","_getSuggestionData","updateMarker","isAtEnd","model","data-suggestion","elementToElement","creator","after","writer","isMultiRange","update:suggestion","notReady","setSelection","item","plugins","schema","CommentsRepository","suggestion-type","end","registerCustomCallback","formatInline:","_cutOutSuggestionMarker","trackChangesCommand","group"];var Ka,qa;Ka=Va,qa=207,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get[Xa("0xb1")](){return[Xa("0x60"),i.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,ei,ri,ja,ui,pi,yi,Ii,Fi,Gi,Ki,Qi,nr,xr,ur,pr,Cr,Rr,wr,jr,Wr,$r,tx,ix,dx,px,Cx,Ix,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Sa]}static get[Xa("0x77")](){return Xa("0x96")}constructor(t){function e(t){return t[Xa("0x103")]((t=>String[Xa("0xeb")](t)))[Xa("0x23")]("")}super(t),this[Xa("0x6d")](Xa("0xad"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this._model[Xa("0x12")]((()=>{for(const e of[...s,...o])this._model[Xa("0x1d")][Xa("0x41")](e)&&t.editing[Xa("0x19")](e)}))})),this[Xa("0xca")]=new ss(this[Xa("0x3e")][Xa("0x53")][Xa("0x5f")],this[Xa("0x3e")][Xa("0xba")]),this[Xa("0x12d")]=null,this[Xa("0xf1")]=new Ja(this[Xa("0x3e")]),this[Xa("0x27")]=new Map,this[Xa("0xc3")]=t[Xa("0x5e")][Xa("0x80")]("CommentsRepository"),this[Xa("0x1e")]=new Set,this[Xa("0x2c")]=this.editor.model,this[Xa("0xe7")]=new WeakMap,this[Xa("0xb5")]=!1,t.config[Xa("0xec")]("trackChanges.trackFormatChanges",Xa("0xf")),this[Xa("0x6b")]=t[Xa("0x17")][Xa("0x80")](Xa("0x4d")),t.config[Xa("0xec")](Xa("0xb2"),!0),this[Xa("0x2a")]=t.config[Xa("0x80")](Xa("0xb2")),this[Xa("0x66")]=new u(t,this._enabledCommands),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,48,49,50])}init(){const t=this[Xa("0x3e")];t.conversion[Xa("0x134")](Xa("0xbd"))[Xa("0x1")]({model:Xa("0xa6"),view:t=>{const{id:e,type:n}=this[Xa("0xb4")](t[Xa("0x3f")]),o=[Xa("0xdc"),Xa("0xc5")+n];let s=3e3;return this[Xa("0xad")].includes(t.markerName)&&(o[Xa("0x8f")]("ck-suggestion-marker--active"),s=3010),Xa("0x6c")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x20")][Xa("0x134")](Xa("0x16"))[Xa("0x99")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options[Xa("0x8c")])return;const s=n[Xa("0x5d")];if(!s)return;const i=o[Xa("0xdb")].toViewElement(s);t[Xa("0x53")].schema[Xa("0xa3")](s)&&i&&!i.getCustomProperty(Xa("0xb9"))&&i.is("containerElement")&&(0,x.toWidget)(i,o[Xa("0x58")])}),{priority:Xa("0x0")})})),t.conversion[Xa("0x134")](Xa("0x16"))[Xa("0x1")]({model:Xa("0xa6"),view:(t,e)=>{if(!e[Xa("0xfe")].showSuggestionHighlights)return null;const{type:n}=this[Xa("0xb4")](t[Xa("0x3f")]);return{classes:[Xa("0xdc"),Xa("0xc5")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Xa("0x5d")].is(Xa("0xc")))return void s[Xa("0x68")].consume(o.item,n.name);const i=s[Xa("0xdb")][Xa("0xea")](o[Xa("0x5d")]);if(!o[Xa("0x5d")].is(Xa("0xed"))||!t[Xa("0x53")][Xa("0x5f")].isBlock(o[Xa("0x5d")])||i[Xa("0xac")](Xa("0x21")))return;const{id:r}=this[Xa("0xb4")](o[Xa("0x3f")]);s[Xa("0x58")][Xa("0xe4")]([Xa("0xdc"),Xa("0x104")],i),s[Xa("0x58")].setAttribute(Xa("0x54"),r,i),s[Xa("0xdb")][Xa("0x121")](i,o.markerName),e&&(this.activeMarkers[Xa("0x7c")](o[Xa("0x3f")])?s[Xa("0x58")][Xa("0xe4")](Xa("0x47"),i):s[Xa("0x58")][Xa("0x111")](Xa("0x47"),i));for(const e of t[Xa("0x53")][Xa("0x130")](o[Xa("0x5d")])[Xa("0xa")]())s[Xa("0x68")][Xa("0x10a")](e,n[Xa("0xe")]);s[Xa("0x68")][Xa("0x10a")](o.item,n[Xa("0xe")])};t[Xa("0x20")][Xa("0x134")]("dataDowncast")[Xa("0x99")]((t=>{t.on(Xa("0xbf"),((t,e,o)=>{o.options[Xa("0x8c")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[Xa("0x134")](Xa("0x16"))[Xa("0xb3")]({model:Xa("0xa6"),view:(t,e)=>e[Xa("0xfe")][Xa("0x8c")]?null:{group:Xa("0xa6"),name:t.substr(11)}}),t.conversion.for(Xa("0x129"))[Xa("0x55")]({view:{name:Xa("0xa6"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0xf3")+t.getAttribute(Xa("0x61"))+":"+t[Xa("0xab")]("id");return t[Xa("0xab")](Xa("0x8e"))&&(n+=":"+t.getAttribute(Xa("0x8e"))),e[Xa("0xef")]("$marker",{"data-name":n})}}),t[Xa("0x20")].for("upcast")[Xa("0x38")]({view:Xa("0xa6")}),t[Xa("0x20")][Xa("0x134")](Xa("0xbd")).add((t=>{t.on(Xa("0xbf"),n(),{priority:Xa("0x0")})})),t[Xa("0x20")][Xa("0x134")](Xa("0xbd"))[Xa("0x99")]((t=>{t.on(Xa("0x102"),((t,e,n)=>{const o=n[Xa("0xdb")][Xa("0x6f")](e[Xa("0x3f")]);if(o)for(const t of o)t[Xa("0xac")](Xa("0x21"))||(n[Xa("0x58")][Xa("0x111")]([Xa("0xdc"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[Xa("0x58")].removeAttribute(Xa("0x54"),t),n[Xa("0xdb")].unbindElementFromMarkerName(t,e[Xa("0x3f")]))}),{priority:"high"})})),t.model.document[Xa("0xa0")]((e=>{let n=!1;const o=Array.from(t[Xa("0x53")][Xa("0x25")][Xa("0xe1")][Xa("0x2e")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0xb4")](x);if(Xa("0xa6")!==o)continue;const d=this[Xa("0x27")][Xa("0x80")](l);if(null!=a[Xa("0xd8")])if("formatInline"==c&&(n=n||Ya(a[Xa("0xd8")],x,e,t[Xa("0x53")].schema)),a[Xa("0xd8")][Xa("0xb8")]||"$graveyard"==a.newRange[Xa("0x131")][Xa("0x8b")]||Xa("0x79")==c&&!ec(a[Xa("0xd8")])||Xa("0x6c")==c&&(Za(r=a[Xa("0xd8")])||(i=r)[Xa("0x89")].parent==i[Xa("0x62")][Xa("0x123")]&&i.start.isAtEnd))e[Xa("0xd4")](x),n=!0;else{if(!d||!d[Xa("0xe0")])continue;s[Xa("0x99")](d)}}var i,r;return s[Xa("0x95")]>0&&(n=!!this[Xa("0x133")](s)||n),n})),t[Xa("0x53")][Xa("0x25")].registerPostFixer((e=>{let n=!1;for(const o of t[Xa("0x53")][Xa("0x25")][Xa("0xe1")][Xa("0xd5")]()){if(Xa("0x135")!=o[Xa("0x72")])continue;const s=o[Xa("0x73")].getShiftedBy(o.length);if(s[Xa("0x52")])for(const i of this[Xa("0x27")][Xa("0x113")]()){if(i[Xa("0x59")]||!i[Xa("0xe0")])continue;if(Xa("0x79")!=i.type)continue;const r=i[Xa("0x15")]();if(r[Xa("0x89")][Xa("0x3a")]!=r.end.parent&&r[Xa("0x62")].isEqual(o[Xa("0x73")])){const o=t.model[Xa("0xda")](r[Xa("0x89")],s);e.updateMarker(i[Xa("0x10d")](),{range:o}),n=!0}}}return n})),t[Xa("0x53")][Xa("0x1d")].on(Xa("0x5a"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Xa("0xe")]),n=this[Xa("0x27")][Xa("0x80")](t);n&&n[Xa("0x1f")](e[Xa("0xe")])}})),t[Xa("0x53")][Xa("0x25")].on(Xa("0x7e"),(()=>{const e=Array.from(t[Xa("0x53")].document[Xa("0xe1")][Xa("0x2e")]()).filter((t=>"suggestion"===this[Xa("0xb4")](t[Xa("0xe")])[Xa("0x67")]));if(0===e[Xa("0xd7")])return;e[Xa("0x11c")](((t,e)=>{const n=t[Xa("0xa1")][Xa("0x6e")],o=e[Xa("0xa1")][Xa("0x6e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0xb4")](t);if(null===s.oldRange){const e=this[Xa("0x124")](t);o.add(e)}else{const t=this[Xa("0x27")][Xa("0x80")](e);null!==s.newRange||t[Xa("0xe0")]?(n[Xa("0x99")](t[Xa("0x4a")]),o.add(t)):this[Xa("0x6a")](t)}}o[Xa("0x95")]>0&&this[Xa("0x9")](o);for(const t of n)this[Xa("0x8")]("suggestionChanged",t)})),t[Xa("0x53")].on(Xa("0xae"),((e,n)=>{const o=n[0];if(!this[Xa("0x27")][Xa("0x95")])return;if(!o[Xa("0xff")])return;if(o[Xa("0x88")][Xa("0x3")]||!o[Xa("0x88")][Xa("0xb")])return;let s,i;switch(o[Xa("0x72")]){case"insert":s=t[Xa("0x53")][Xa("0xf8")](o[Xa("0x73")]),i=s[Xa("0x6")](o[Xa("0x11f")]);break;case Xa("0x44"):s=t.model[Xa("0xf8")](o.splitPosition),i=t[Xa("0x53")][Xa("0xf8")](o[Xa("0xe9")]);break;case Xa("0x28"):s=t[Xa("0x53")][Xa("0xf8")](o[Xa("0x36")]),i=s[Xa("0x6")](o.howMany);break;default:return}const r=t.model.createRange(s,i);t[Xa("0x53")][Xa("0x12")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(r)){if(t[Xa("0x59")])continue;if(Xa("0x42")==t[Xa("0x72")])continue;const n=t[Xa("0xa1")]&&t.data[Xa("0x8a")];(Xa("0x79")!=t[Xa("0x72")]||"split"==o[Xa("0x72")]&&!n)&&(e[Xa("0x7f")]||Xa("0xcd")==t[Xa("0x72")]&&e[Xa("0x31")]||t[Xa("0x15")]()[Xa("0x136")](r)&&this[Xa("0x70")](t,s,i))}}))}),{priority:Xa("0x22")}),t.model.on(Xa("0x108"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0x13")])return;if(this[Xa("0xb5")])return;if(!this.trackChangesCommand[Xa("0xc1")])return;if(o[Xa("0xb8")])return;const i=t.model[Xa("0x5f")],{start:r,end:x}=o[Xa("0x15")](),a=r.nodeAfter&&i.isLimit(r[Xa("0x82")])?null:i[Xa("0xb7")](r,Xa("0xcf")),c=x[Xa("0x123")]&&i[Xa("0xfb")](x[Xa("0x123")])?null:i[Xa("0xb7")](x,Xa("0x33")),l=t.model[Xa("0xda")](a?a[Xa("0x89")]:r,c?c[Xa("0x62")]:x);t[Xa("0x53")][Xa("0x12")]((e=>{this[Xa("0x24")](l);const n=t[Xa("0x53")][Xa("0x5f")][Xa("0xb7")](l[Xa("0x89")]);o.is(Xa("0xb0"))?e[Xa("0x5c")](n):o[Xa("0x116")](n)})),e[Xa("0x11d")]()}),{priority:e.priorities[Xa("0xd1")]+10}),t[Xa("0x53")].on(Xa("0x49"),((e,n)=>{const o=n[n[Xa("0xd7")]-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this[Xa("0x66")][Xa("0xc1")]&&(t[Xa("0x53")].change((()=>{let o=t[Xa("0x53")][Xa("0x49")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0xf7")]=o[Xa("0x34")]();const s=o.end.nodeBefore,i=t[Xa("0x53")][Xa("0x5f")];s&&i[Xa("0xc4")](s)&&!i[Xa("0xa3")](s)&&(o=t[Xa("0x53")].createRange(o[Xa("0x89")],t[Xa("0x53")][Xa("0xf8")](s,Xa("0x62")))),this[Xa("0xa2")](o)})),e[Xa("0x11d")]())}),{priority:Xa("0x0")}),this[Xa("0x3e")][Xa("0xfa")].add(Xa("0x9c"),this[Xa("0x66")]),this[Xa("0x115")](Xa("0x9c"));const o=new p(t,this[Xa("0x27")]);t[Xa("0xfa")].add(Xa("0x37"),o),this[Xa("0x115")]("acceptSuggestion");const s=new C(t,this[Xa("0x27")]);t[Xa("0xfa")].add(Xa("0x1a"),s),this.enableCommand("discardSuggestion"),t[Xa("0xfa")][Xa("0x99")]("acceptAllSuggestions",new F(t,o,this[Xa("0x27")])),this.enableCommand(Xa("0x46")),t[Xa("0xfa")][Xa("0x99")]("discardAllSuggestions",new F(t,s,this[Xa("0x27")])),this[Xa("0x115")]("discardAllSuggestions"),t[Xa("0xfa")][Xa("0x99")](Xa("0xcc"),new U(t,o,this._suggestions)),this[Xa("0x115")](Xa("0xcc")),t[Xa("0xfa")][Xa("0x99")](Xa("0xa9"),new U(t,s,this[Xa("0x27")])),this[Xa("0x115")](Xa("0xa9"));const i=t[Xa("0x5e")][Xa("0x80")](Xa("0x60"));this[Xa("0xa8")](i,"addComment",((t,{threadId:e})=>{const n=this[Xa("0x27")][Xa("0x80")](e);n&&n[Xa("0xa4")]&&1===n[Xa("0xa4")][Xa("0xd7")]&&this[Xa("0xf0")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(i,"removeComment",((t,{threadId:e})=>{const n=this[Xa("0x27")][Xa("0x80")](e);n&&n[Xa("0xa4")]&&!n[Xa("0xa4")][Xa("0xd7")]&&this[Xa("0xf0")](e,{hasComments:!1})}),{priority:Xa("0x35")})}set[Xa("0x107")](t){if(this._adapter)throw new e.CKEditorError(Xa("0x119"),this);this[Xa("0x12d")]=t}get[Xa("0x107")](){return this[Xa("0x12d")]}[Xa("0x29")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x27")].values())t&&!e.isInContent||n[Xa("0x8f")](e);return e?n[Xa("0x103")]((t=>t[Xa("0xde")]())):n}[Xa("0x100")](t){const n=this._suggestions[Xa("0x80")](t);if(!n)throw new e.CKEditorError(Xa("0x9b"),this);return n}hasSuggestion(t){return this[Xa("0x27")][Xa("0x41")](t)}[Xa("0x9e")](t){const{authorId:e,id:n,attributes:o}=t,[s,i]=t[Xa("0x72")].split(":"),r=this[Xa("0x27")].get(n)||this[Xa("0x40")](s,i,n,e,o);if(this[Xa("0x78")](r),this._checkSuggestionCorrectness(r,s,i||null,e),r[Xa("0x84")]=t.createdAt,r._isDataLoaded=!0,o&&o["@external"]){const t=o[Xa("0xcb")],e=this._getExternalAuthor(t[Xa("0x7a")]);r[Xa("0x10")]=t[Xa("0x84")],r.author=e,r.isExternal=!0}else r[Xa("0x10")]=t[Xa("0x84")];switch(t[Xa("0xa1")]&&(r.data=t[Xa("0xa1")]),t[Xa("0x90")]&&(r[Xa("0x90")]=t.attributes),this[Xa("0x12d")]&&this[Xa("0x12d")][Xa("0x7b")]||(r[Xa("0xd")]=!0),this[Xa("0xe7")][Xa("0x80")](r)){case Xa("0x5b"):this[Xa("0xe7")][Xa("0x6d")](r,Xa("0xf5"));break;case"markerReady":r[Xa("0xe0")]?(this[Xa("0x9")](new Set([r])),this[Xa("0x133")](new Set([r])),this._suggestionState.set(r,Xa("0x105")),this[Xa("0x8")](Xa("0xaf"),r)):this[Xa("0xe7")][Xa("0x6d")](r,Xa("0x2f"))}return r}[Xa("0x37")](t){this[Xa("0x13")]((()=>{this[Xa("0x3e")].model[Xa("0x12")]((()=>{for(const e of t[Xa("0xf9")]())e[Xa("0x69")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this.editor[Xa("0x53")][Xa("0x12")]((()=>{for(const e of t[Xa("0xf9")]())e[Xa("0x93")]()}))}))}[Xa("0x115")](t,n){const o=this.editor[Xa("0xfa")][Xa("0x80")](t);if(!o)throw new e.CKEditorError(Xa("0x94"),this,{commandName:t});this._enabledCommands[Xa("0x99")](o),n&&o.on("execute",((t,e)=>{this[Xa("0x66")][Xa("0xc1")]&&(this._isForcedDefaultExecutionBlock||e[Xa("0xd7")]>0&&e[e[Xa("0xd7")]-1]&&e[e[Xa("0xd7")]-1][Xa("0x13")]||(n(((...t)=>o[Xa("0x11a")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0x11d")]()))}),{priority:Xa("0x0")})}[Xa("0x13")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Xa("0xb5")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0xb5")]=!1),o&&e.CKEditorError[Xa("0x48")](o,this),n}[Xa("0xa2")](t,n=null,o={}){if(t[Xa("0xb8")])return null;const s=this.editor[Xa("0x5e")][Xa("0x80")]("Users").me;for(const{suggestion:e,meta:s}of this[Xa("0x39")](t,Xa("0xcd")))if(s[Xa("0x31")]){if(!s[Xa("0x1b")]){if(s[Xa("0x7f")]){if(!this[Xa("0x2a")]||!ic(e,o))continue;return e}if(ic(e,o))return e;this[Xa("0x70")](e,t[Xa("0x89")],t.end);break}if(n==e[Xa("0xa5")]&&ic(e,o)){const n=e.getFirstRange();return n.start.isEqual(t[Xa("0x62")])?this[Xa("0x71")](e,this[Xa("0x2c")][Xa("0xda")](t[Xa("0x89")],n[Xa("0x62")])):this[Xa("0x71")](e,this[Xa("0x2c")].createRange(n[Xa("0x89")],t[Xa("0x62")])),e}}const i=(0,e.uid)(),r=s.id,x=n?Xa("0xa7")+n:Xa("0xcd"),a=this[Xa("0xaa")]({id:i,type:x,createdAt:new Date,authorId:r,attributes:o});return this[Xa("0xbb")](x,i,r,t),a}[Xa("0x9a")](t,n=Xa("0x91"),o={}){const s=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")](Xa("0xdf")).me,i=this[Xa("0xf1")][Xa("0x9d")]("insertion",n,"join");for(const e of this[Xa("0x29")]())if(e.author.id==s.id&&Xa("0xcd")==e[Xa("0x72")]&&e[Xa("0xa5")]==n&&ic(e,o)&&(i(e.getRanges(),t)||i(t,e[Xa("0x12b")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x39")](t,Xa("0xcd"))){if(!n[Xa("0x31")])continue;if(!this._mergeNestedSuggestions&&n[Xa("0x7f")])continue;if(!ic(e,o))continue;let s=!0;for(const n of e[Xa("0x12b")]())for(const e of t)if(!n[Xa("0x136")](e)){s=!1;break}if(s)return e}const r=(0,e.uid)(),x=s.id,a=Xa("0xa7")+n,c=this[Xa("0xaa")]({id:r,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xbb")](a,r,x,e,Zo[Xa("0x26")]());return c}[Xa("0x9f")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xb8")])return null;if(Xa("0x110")===this._trackFormatChanges){const e=this[Xa("0xf1")][Xa("0x9d")](Xa("0x42"),o,Xa("0x69"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const i=this[Xa("0x3e")].plugins.get(Xa("0xdf")).me,r=[];if(Xa("0x3d")!==this[Xa("0x6b")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xcd")))n.isOwn&&!n.isInsideObject&&r[Xa("0x8f")](...e[Xa("0x12b")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0x18")](o);e&&n.push(e)}return n}(t,r),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0xd7")];){const o=n[e][Xa("0xe6")](t);n.splice(e,1,...o),e+=o[Xa("0xd7")]}}return n}(t,r);x[Xa("0xd7")]&&this[Xa("0x2c")].change((()=>{for(const t of x){const e=this[Xa("0xf1")][Xa("0x9d")](Xa("0x42"),o,Xa("0x69"));this[Xa("0x13")]((()=>e([t],n,s)))}}));for(const t of a){let r=null,x=t[Xa("0x89")],a=t[Xa("0x62")];for(const{suggestion:e,meta:n}of this[Xa("0x39")](t,Xa("0x42"))){if(!n[Xa("0x31")])continue;if(e[Xa("0xa5")]!=o)continue;if(!ic(e,s))continue;const i=e[Xa("0x15")]();if(i[Xa("0x136")](t,!0))return null;x=x[Xa("0x3b")](i[Xa("0x89")])?x:i[Xa("0x89")],a=a.isAfter(i[Xa("0x62")])?a:i[Xa("0x62")],r?i[Xa("0x89")][Xa("0x3b")](r[Xa("0x15")]()[Xa("0x89")])?(r[Xa("0xc7")](),r=e):e[Xa("0xc7")]():r=e}const c=this[Xa("0x2c")][Xa("0xda")](x,a);if(r)this._setSuggestionRange(r,c);else{const t=(0,e.uid)(),r=i.id;this[Xa("0xaa")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:r,attributes:s}),this[Xa("0xbb")](Xa("0x64")+o,t,r,c)}}return null}markBlockFormat(t,n,o=[],s=null,i={}){n[Xa("0x4b")]||(n[Xa("0x4b")]=n[Xa("0x98")]),n[Xa("0x8a")]=t.is(Xa("0xc0")),s=s||tc(n);const r=o.map((t=>nc(t,this[Xa("0x2c")]))),x=t.is(Xa("0xc0"))?t:nc(t,this[Xa("0x2c")]);if("never"===this[Xa("0x6b")]){const t=this[Xa("0xf1")][Xa("0x9d")](Xa("0x79"),s,Xa("0x69"));return this[Xa("0x13")]((()=>t([x],n,i))),null}r[Xa("0x8f")](x);let a=!0;for(const t of r)if(!this[Xa("0x4f")](t)){a=!1;break}if(a&&"always"!==this[Xa("0x6b")]){const t=this._suggestionFactory[Xa("0x9d")](Xa("0x79"),s,Xa("0x69"));return this[Xa("0x13")]((()=>t([x],n,i))),null}let c=null,l=x[Xa("0x89")],d=x.end;for(const{suggestion:t,meta:e}of this[Xa("0x39")](x,"formatBlock")){if(!e[Xa("0x31")])continue;if(e[Xa("0x1b")]||e[Xa("0x7f")]||e[Xa("0x83")])continue;if(t[Xa("0xa1")][Xa("0x4b")]!=n[Xa("0x4b")])continue;if(!ic(t,i))continue;const o=t[Xa("0x15")]();if(t[Xa("0xa5")]==s){if(o[Xa("0x136")](x,!0))return null;l=l[Xa("0x3b")](o.start)?l:o.start,d=d[Xa("0x109")](o.end)?d:o.end,c?o[Xa("0x89")][Xa("0x3b")](c[Xa("0x15")]().start)?(c[Xa("0xc7")](),c=t):t.removeMarkers():c=t}else{const e=x[Xa("0x18")](o);this[Xa("0x65")](t,e)}}const u=this.editor[Xa("0x5e")][Xa("0x80")](Xa("0xdf")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this._model[Xa("0xda")](l,d)),c;{const t=this[Xa("0xaa")]({id:g,type:Xa("0x2b")+s,data:n,createdAt:new Date,authorId:m,attributes:i});return this[Xa("0xbb")](Xa("0x2b")+s,g,m,this._model[Xa("0xda")](l,d)),t}}[Xa("0x86")](t,n,o=[],s=null,i={}){n[Xa("0x4b")]||(n.formatGroupId=n[Xa("0x98")]);const r=t[0];n.multipleBlocks=r.is(Xa("0xc0")),s=s||tc(n);const x=o[Xa("0x103")]((t=>nc(t,this[Xa("0x2c")]))),a=r.is(Xa("0xc0"))?t:t[Xa("0x103")]((t=>nc(t,this._model)));if(Xa("0x110")===this[Xa("0x6b")]){const t=this[Xa("0xf1")][Xa("0x9d")](Xa("0x79"),s,"accept");return this[Xa("0x13")]((()=>t(a,n,i))),null}x[Xa("0x8f")](...a);let c=!0;for(const t of x)if(!this[Xa("0x4f")](t)){c=!1;break}if(c&&Xa("0x3d")!==this[Xa("0x6b")]){const t=this[Xa("0xf1")][Xa("0x9d")](Xa("0x79"),s,Xa("0x69"));return this[Xa("0x13")]((()=>t(a,n,i))),null}const l=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")]("Users").me;for(const t of this[Xa("0x29")]()){if(t.author.id!=l.id)continue;if(Xa("0x79")!=t.type||t[Xa("0xa1")].formatGroupId!=n.formatGroupId)continue;if(!ic(t,i))continue;const e=t[Xa("0xa5")]==s;for(let n=0;n<a[Xa("0xd7")];n++){const o=a[n];for(const s of t[Xa("0x4")]()){const i=s[Xa("0x92")]();if(o[Xa("0x122")](i)){e?(a.splice(n,1),n--):t[Xa("0xd4")](s.name);break}}}}if(0==a[Xa("0xd7")])return null;const d=this[Xa("0xf1")][Xa("0x9d")](Xa("0x79"),s,Xa("0x23"));for(const t of this[Xa("0x29")]())if(t[Xa("0xc2")].id==l.id&&Xa("0x79")==t[Xa("0x72")]&&t[Xa("0xa1")][Xa("0x4b")]==n.formatGroupId&&t.subType==s&&ic(t,i)&&(d(t[Xa("0x12b")](),a)||d(a,t[Xa("0x12b")]()))){for(const e of a)t[Xa("0x132")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x2b")+s,f=this[Xa("0xaa")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[Xa("0xbb")](m,u,g,t,Zo.getMultiRangeId());return f}[Xa("0x24")](t,n=null,o={}){if(t[Xa("0xb8")])return null;const s=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")](Xa("0xdf")).me,i=new r.LiveRange(t[Xa("0x89")],t[Xa("0x62")]);for(const{suggestion:t,meta:e}of this[Xa("0x39")](i,Xa("0xcd")))if(e[Xa("0x31")]&&!e.isNextTo)if(t.isMultiRange){const e=t.getRanges()[Xa("0xe3")]((t=>Xa("0x75")!=t[Xa("0x131")].rootName));if(e[Xa("0x97")]((t=>i[Xa("0x136")](t,!0)))&&t[Xa("0x93")](),e[Xa("0x112")]((t=>t[Xa("0x136")](i,!0)))){const t=this[Xa("0xf1")][Xa("0x9d")]("deletion",n,Xa("0x69"));return this[Xa("0x13")]((()=>t([i],null,o))),null}}else{const e=i[Xa("0x18")](t[Xa("0x15")]());null!==e&&t[Xa("0x30")]([e],null,o)}if(i.detach(),i.isCollapsed||Xa("0x75")==i[Xa("0x131")][Xa("0x8b")])return null;let x=null,a=i[Xa("0x89")],c=i[Xa("0x62")];const l=this[Xa("0x39")](i,Xa("0x6c"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x2c")][Xa("0xda")](a,c);if(e.isOwn&&(this[Xa("0x2a")]||!e[Xa("0x7f")]&&!e[Xa("0x83")]))if(t[Xa("0x59")]){if(!ic(t,o))continue;let e=!0;for(const o of t[Xa("0x12b")]()){if(o.containsRange(n,!0))return t;n[Xa("0x136")](o)||(e=!1)}e&&t[Xa("0x93")]()}else{const e=t[Xa("0x15")]();if(e[Xa("0x136")](n,!0))return t;if(!ic(t,o)){n[Xa("0x136")](e)?t[Xa("0xc7")]():e[Xa("0x43")](a)?a=e[Xa("0x62")]:e[Xa("0x43")](c)&&(c=e[Xa("0x89")]);continue}a=a[Xa("0x3b")](e[Xa("0x89")])?a:e.start,c=c.isAfter(e[Xa("0x62")])?c:e[Xa("0x62")],o=Object[Xa("0x120")]({},t[Xa("0x90")]),x?e[Xa("0x89")].isBefore(x[Xa("0x15")]().start)?(x[Xa("0xc7")](),x=t):t[Xa("0xc7")]():x=t}}if(x)return this[Xa("0x71")](x,this[Xa("0x2c")].createRange(a,c)),x;{const t=(0,e.uid)(),i=this[Xa("0x2c")][Xa("0xda")](a,c),r=s.id,x=n?Xa("0x4e")+n:Xa("0x6c"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:r,attributes:o});return this[Xa("0xbb")](x,t,r,i),l}}markMultiRangeDeletion(t,n=Xa("0x91"),o={}){const s=this[Xa("0x3e")][Xa("0x5e")].get(Xa("0xdf")).me,i=t.map((t=>new r.LiveRange(t[Xa("0x89")],t[Xa("0x62")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(i,Xa("0xcd")))e.isOwn&&!e[Xa("0x1b")]&&x[Xa("0x99")](t);for(const e of x)if(e[Xa("0x59")]){const s=e[Xa("0x12b")]();if((!e[Xa("0x90")]||!e.attributes[Xa("0xc8")])&&s[Xa("0x97")]((t=>i[Xa("0x112")]((e=>e[Xa("0x136")](t,!0)))))&&e[Xa("0x93")](),i.every((t=>s[Xa("0x112")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[Xa("0x9d")](Xa("0x6c"),n,Xa("0x69"));return this[Xa("0x13")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(i[Xa("0x112")]((e=>e[Xa("0x136")](t,!0)))&&e[Xa("0x93")](),i[Xa("0x97")]((e=>t.containsRange(e,!0)))){const t=this[Xa("0xf1")][Xa("0x9d")](Xa("0x6c"),n,Xa("0x69"));return this[Xa("0x13")]((()=>t(i,null,o))),null}}const a=this[Xa("0xf1")][Xa("0x9d")](Xa("0x6c"),n,Xa("0x23"));let c=null;for(const t of this.getSuggestions())if(t[Xa("0xc2")].id==s.id&&t[Xa("0xe0")]&&Xa("0x6c")==t[Xa("0x72")]&&t.subType==n&&ic(t,o)&&(a(t.getRanges(),i)||a(i,t[Xa("0x12b")]())))if(c){if(t[Xa("0xa4")]&&t[Xa("0xa4")][Xa("0xd7")])continue;for(const e of t[Xa("0x12b")]())c.isIntersectingWithRange(e)||c[Xa("0x132")](e);t.removeMarkers()}else{c=t;for(const e of i)t[Xa("0x85")](e)||t[Xa("0x132")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[Xa("0x39")](i,Xa("0x6c")))e[Xa("0x31")]&&(this[Xa("0x2a")]||!e[Xa("0x7f")]&&!e[Xa("0x83")])&&ic(t,o)&&x.add(t);for(const t of x){const e=t.getRanges();if((!o||!o[Xa("0xc8")])&&i[Xa("0x97")]((t=>e[Xa("0x112")]((e=>e.containsRange(t,!0))))))return t;(!t[Xa("0x90")]||!t[Xa("0x90")][Xa("0xc8")])&&e.every((t=>i[Xa("0x112")]((e=>e[Xa("0x136")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=Xa("0x4e")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of i)t[Xa("0x1c")](),t[Xa("0xb8")]||Xa("0x75")==t[Xa("0x131")].rootName||this[Xa("0xbb")](u,l,d,t,Zo[Xa("0x26")]());return g}[Xa("0x71")](t,e){const n=t[Xa("0x10d")]();this[Xa("0x2c")][Xa("0x12")]((t=>{t.updateMarker(n,{range:e})}))}[Xa("0x78")](t){const e=t.id,n=this[Xa("0x3e")].config.get("collaboration.channelId");this[Xa("0xc3")][Xa("0x7")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0xc3")].getCommentThread(e);o.unbind(Xa("0xd2")),o[Xa("0xd2")]=!1,t[Xa("0xa4")]=o}[Xa("0x81")](t,n,o,s){if(t[Xa("0x72")]!=n||t[Xa("0xa5")]!=o||t[Xa("0x56")].id!=s)throw this.editor[Xa("0xce")](Xa("0xb6")),new e.CKEditorError(Xa("0xb6"),this)}[Xa("0x65")](t,n){const o=t[Xa("0x15")]();if(n[Xa("0x122")](o))t[Xa("0xc7")]();else if(o[Xa("0x136")](n)){const s=this[Xa("0x2c")][Xa("0xf8")](n[Xa("0x89")].nodeBefore,Xa("0x62"));this[Xa("0x71")](t,this[Xa("0x2c")][Xa("0xda")](o[Xa("0x89")],s));const i=(0,e.uid)(),r=t[Xa("0x56")].id,x=t[Xa("0x72")]+":"+t[Xa("0xa5")];this[Xa("0xaa")]({id:i,type:x,createdAt:new Date,authorId:r,data:t[Xa("0xa1")],attributes:t[Xa("0x90")]});const a=this[Xa("0x2c")][Xa("0xf8")](n.end[Xa("0x3a")],Xa("0x57")),c=this[Xa("0x2c")][Xa("0xda")](a,o.end);this[Xa("0xbb")](x,i,r,c)}else if(o[Xa("0x43")](n[Xa("0x89")])){const e=this[Xa("0x2c")][Xa("0xf8")](n[Xa("0x89")].nodeBefore,Xa("0x62"));this[Xa("0x71")](t,this[Xa("0x2c")][Xa("0xda")](o[Xa("0x89")],e))}else{const e=this[Xa("0x2c")].createPositionAt(n.end[Xa("0x3a")],"after");this._setSuggestionRange(t,this[Xa("0x2c")][Xa("0xda")](e,o[Xa("0x62")]))}}[Xa("0x4f")](t){for(const{suggestion:e,meta:n}of this[Xa("0x39")](t,Xa("0xcd"))){if(!n[Xa("0x31")])continue;const o=e[Xa("0x12b")]();for(const e of o)if(!t[Xa("0xe6")](e)[Xa("0xd7")])return!0}return!1}[Xa("0xc6")](t){const n=this[Xa("0x3e")].plugins[Xa("0x80")](Xa("0xdf"))[Xa("0x101")](t);if(!n)throw new e.CKEditorError(Xa("0x2d"),this);return n}_getExternalAuthor(t){const e=this.editor.plugins[Xa("0x80")](Xa("0xdf")),n=(0,i.hashObject)(Xa("0x5")+t);return e[Xa("0x101")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,s){const i=this[Xa("0xc6")](o),r=this[Xa("0xf1")][Xa("0x11e")](t,e,n,i,s,(t=>this[Xa("0xf0")](n,{attributes:t})));return this[Xa("0xa8")](r,"accept",(()=>{this[Xa("0xf0")](n,{state:"accepted"})}),{priority:Xa("0x0")}),this[Xa("0xa8")](r,Xa("0x93"),(()=>{this[Xa("0xf0")](n,{state:"rejected"})}),{priority:"high"}),this._suggestions[Xa("0x6d")](n,r),this._suggestionState[Xa("0x6d")](r,Xa("0x5b")),r}[Xa("0xb4")](t){const e=t[Xa("0x44")](":");return{group:e[0],type:e[1],subType:e[Xa("0xd7")]>=5?e[2]:null,id:e[Xa("0xd7")]<5?e[2]:e[3],authorId:e[Xa("0xd7")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[Xa("0x70")](t,n,o){const s=t[Xa("0x15")](),i=s[Xa("0x89")],r=s[Xa("0x62")];this._setSuggestionRange(t,this[Xa("0x2c")][Xa("0xda")](i,n));const x=(0,e.uid)(),a=t[Xa("0x56")].id,c=t[Xa("0x72")]+(t.subType?":"+t[Xa("0xa5")]:"");this[Xa("0xaa")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x90")],data:t[Xa("0xa1")]}),Xa("0x79")==t[Xa("0x72")]&&(o=this[Xa("0x2c")].createPositionBefore(o.parent)),this[Xa("0xbb")](c,x,a,this[Xa("0x2c")][Xa("0xda")](o,r))}[Xa("0x39")](t,e=null){const n=[],o=this.editor[Xa("0x5e")][Xa("0x80")]("Users").me;Array[Xa("0x10b")](t)||(t=[t]);for(const s of this[Xa("0x29")]()){if(!s[Xa("0xe0")])continue;if(e&&s[Xa("0x72")]!=e)continue;let i=!1;for(const e of s[Xa("0x12b")]()){for(const r of t){const t=r[Xa("0x89")].isEqual(e[Xa("0x62")])||r.end[Xa("0x122")](e[Xa("0x89")]);if(t||r[Xa("0x18")](e)){const x=r[Xa("0x136")](e)&&Qa(this[Xa("0x2c")][Xa("0x5f")],e[Xa("0x89")],r),a=e.containsRange(r)&&Qa(this._model.schema,r[Xa("0x89")],e);n[Xa("0x8f")]({suggestion:s,meta:{isOwn:o==s.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[Xa("0xbb")](t,e,n,o,s){this[Xa("0x2c")][Xa("0x12")]((i=>{let r=Xa("0xf3")+t+":"+e+":"+n;s&&(r=r+":"+s),i[Xa("0x32")](r,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x6a")](t){const e=t[Xa("0x106")],n=t.next;t[Xa("0x106")]=null,null!=e&&(e[Xa("0xc9")]=null),t[Xa("0xc9")]=null,null!=n&&(n[Xa("0x106")]=null),Xa("0x105")==this._suggestionState[Xa("0x80")](t)&&(this._suggestionState.set(t,Xa("0x2f")),this[Xa("0x8")](Xa("0xe5"),t,e,n))}[Xa("0xaa")](t){const n=t.id,o=this[Xa("0x9e")](t);if(this[Xa("0x12d")]&&this[Xa("0x12d")].addSuggestion){const s=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")](Xa("0x12e")),i=o.hasComments,r=o[Xa("0xa5")]?o[Xa("0x72")]+":"+o.subType:o[Xa("0x72")],x=this[Xa("0x3e")].locale,a=s[Xa("0x99")](Yo(x,Xa("0xd6"))),c={id:n,type:r,hasComments:i,data:t[Xa("0xa1")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Xa("0x90")]};this._adapter[Xa("0x7b")](c).then((t=>{o._saved=!0,s[Xa("0x127")](a),t&&t[Xa("0x84")]&&(this[Xa("0x27")][Xa("0x80")](n)[Xa("0x84")]=t[Xa("0x84")])}))[Xa("0x3c")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Xa("0x3e")][Xa("0x53")][Xa("0x2")]({isUndoable:!1},(()=>{o[Xa("0x93")]()})),o[Xa("0xd3")](),this._suggestions[Xa("0xf4")](o.id),this[Xa("0xe7")][Xa("0xf4")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[Xa("0x3e")][Xa("0x5e")][Xa("0x80")](Xa("0x12e")),o=this[Xa("0x100")](t);if(this._adapter&&this[Xa("0x12d")][Xa("0x10f")])if(o._saved){const o=n[Xa("0x99")](Yo(this[Xa("0x3e")][Xa("0xba")],"PENDING_ACTION_SUGGESTION"));this._adapter[Xa("0x10f")](t,e)[Xa("0x128")]((()=>{n[Xa("0x127")](o)}))}else o.on(Xa("0xf2"),(()=>{this._updateSuggestionData(t,e)}))}[Xa("0x50")](t){if(!this._adapter||!this[Xa("0x12d")][Xa("0x100")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this._adapter[Xa("0x100")](t)}[Xa("0x124")](t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0xb4")](t),i=this[Xa("0x27")].get(e)||this._createSuggestion(n,o,e,s,{});switch(this[Xa("0x81")](i,n,o,s),this._suggestionState[Xa("0x80")](i)){case Xa("0x5b"):this._getSuggestionData(e).then((t=>{let n=Promise[Xa("0xfc")]();t.hasComments&&(n=this._commentsRepository[Xa("0xfd")]({channelId:this[Xa("0x3e")][Xa("0x17")][Xa("0x80")](Xa("0x45")),threadId:e})),n[Xa("0x128")]((()=>{this[Xa("0x9e")](t)[Xa("0xd")]=!0}))})),this._suggestionState.set(i,"markerReady");break;case Xa("0x2f"):this._updateSuggestionData(e,{state:"open"});case"dataReady":this[Xa("0xe7")][Xa("0x6d")](i,Xa("0x105")),this[Xa("0x8")](Xa("0xaf"),i);break;case Xa("0x105"):this.fire("suggestionChanged",i)}return i[Xa("0x1f")](t),i}[Xa("0x9")](t){const e=Array[Xa("0x10e")](t)[Xa("0xe3")]((t=>!t.isMultiRange)),n=this[Xa("0x29")]({skipNotAttached:!0})[Xa("0xe3")]((t=>!t.isMultiRange)),o=n[Xa("0xe3")]((e=>!t[Xa("0x41")](e))),s=new Map(n.map((t=>[t,this[Xa("0xf1")][Xa("0x9d")](t[Xa("0x72")],t.subType,"chain")]))),i=new Map(n[Xa("0x103")]((t=>[t,t[Xa("0x15")]()]))),r=new Set,x=new Set;for(let t=0;t<e[Xa("0xd7")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0xd7")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x.has(n)&&n[Xa("0x106")]&&(n[Xa("0x106")].next===n&&(n[Xa("0x106")].next=null),n[Xa("0x106")]=null),!r[Xa("0x41")](n)&&n.next&&(n[Xa("0xc9")][Xa("0x106")]===n&&(n[Xa("0xc9")].previous=null),n[Xa("0xc9")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0xd7")];o++){const n=c(t,e[o]);n&&(n[0][Xa("0xc9")]=n[1],n[1].previous=n[0],r[Xa("0x99")](n[0]),x[Xa("0x99")](n[1]))}}function c(t,e){if(t[Xa("0xc2")].id!==e[Xa("0xc2")].id)return null;const n=s.get(t)(t,e,i[Xa("0x80")](t),i[Xa("0x80")](e));return n&&s[Xa("0x80")](e)(t,e,i[Xa("0x80")](t),i[Xa("0x80")](e))?n[1][Xa("0xa4")]&&n[1].commentThread[Xa("0xd7")]?null:n:null}}[Xa("0x133")](t){const e=Array[Xa("0x10e")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((e=>!t[Xa("0x41")](e))),s=new Map(e[Xa("0x103")]((t=>[t,this._suggestionFactory[Xa("0x9d")](t[Xa("0x72")],t[Xa("0xa5")],Xa("0x23"))]))),i=new Map(n[Xa("0x103")]((t=>[t,t[Xa("0x12b")]()])));for(let t=0;t<e.length;t++)if(r(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(r(this,e[t],o,0))return!0;return!1;function r(t,e,n,o){for(let r=o;r<n[Xa("0xd7")];r++){const o=n[r];if(o.type!==e.type||o[Xa("0xc2")].id!==e.author.id||o[Xa("0xa5")]!==e[Xa("0xa5")])continue;if(!sc(e,o))continue;const x=s.get(e),a=i.get(e),c=i[Xa("0x80")](o),l=e[Xa("0xa4")]&&e[Xa("0xa4")][Xa("0xd7")],d=o[Xa("0xa4")]&&o[Xa("0xa4")].length;if(!l&&x(c,a))return t._joinSuggestions(o,e),i[Xa("0xf4")](e),!0;if(!d&&x(a,c))return t[Xa("0xbc")](e,o),i[Xa("0xf4")](o),!0}return!1}}_joinSuggestions(t,e){if(t[Xa("0x59")])for(const n of e[Xa("0x12b")]())t[Xa("0x132")](n);else{const n=e.getFirstRange().end;this._setSuggestionRange(t,this._model.createRange(t[Xa("0x15")]()[Xa("0x89")],n))}e[Xa("0xc7")]()}}class Ja{constructor(t){this[Xa("0x10c")]=t,this[Xa("0x2c")]=t[Xa("0x53")],this[Xa("0xdd")]=new Map,this._defaultCallbacks=new Map,this[Xa("0xbe")]()}buildSuggestion(t,e,n,o,s,i){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:i,onAccept:(...n)=>this[Xa("0x9d")](t,e,Xa("0x69"))(...n),onDiscard:(...n)=>this[Xa("0x9d")](t,e,Xa("0x93"))(...n)})}[Xa("0x63")](t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0xdd")][Xa("0x6d")](s,o)}[Xa("0x9d")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0xdd")].get(o)||this[Xa("0x4c")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[Xa("0x11c")](((t,e)=>t[Xa("0x89")].isBefore(e[Xa("0x89")])?1:-1)),this[Xa("0x2c")].change((e=>{for(const n of t){let t;t=n[Xa("0x62")].isAtEnd&&n.end.parent==n.start.nodeAfter?e[Xa("0x114")](n.start.nodeAfter,"on"):e.createSelection(n),this[Xa("0x2c")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x2c")][Xa("0x12")]((n=>{const{commandName:o,commandParams:s=[]}=e,i=t[Xa("0x103")]((t=>(Za(t)&&(t=this[Xa("0x2c")][Xa("0xda")](t[Xa("0x62")])),t)))[Xa("0xe3")]((t=>"$graveyard"!==t[Xa("0x131")][Xa("0x8b")]));if(i.length<1)return;const x=Array[Xa("0x10e")](this[Xa("0x2c")].document[Xa("0xc")].getRanges())[Xa("0x103")]((t=>r.LiveRange.fromRange(t)));n[Xa("0x5c")](i);for(const t of this[Xa("0x10c")].commands[Xa("0xfa")]())t[Xa("0x11b")]();s[Xa("0x8f")]({forceDefaultExecution:!0}),this[Xa("0x10c")][Xa("0x11a")](o,...s);const a=x[Xa("0xe3")]((t=>Xa("0x75")!=t.root[Xa("0x8b")]));a[Xa("0xd7")]>0&&n.setSelection(a);for(const t of x)t[Xa("0x1c")]()}))},o=(t,e)=>1==t[Xa("0xd7")]&&1==e.length&&t[0].end.isEqual(e[0][Xa("0x89")]),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x2c")])?[t,e]:oc(e,t,o,n,this[Xa("0x2c")])?[e,t]:null;this._defaultCallbacks[Xa("0x6d")](Xa("0x12f"),t),this._defaultCallbacks[Xa("0x6d")]("insertion:discard",e),this[Xa("0x4c")][Xa("0x6d")](Xa("0x14"),o),this[Xa("0x4c")][Xa("0x6d")]("insertion:chain",s),this._defaultCallbacks[Xa("0x6d")]("deletion:accept",e),this[Xa("0x4c")][Xa("0x6d")]("deletion:discard",t),this[Xa("0x4c")][Xa("0x6d")](Xa("0x117"),o),this[Xa("0x4c")][Xa("0x6d")](Xa("0xd0"),s),this._defaultCallbacks.set(Xa("0xd9"),n),this[Xa("0x4c")][Xa("0x6d")]("formatInline:discard",t),this[Xa("0x4c")][Xa("0x6d")](Xa("0x7d"),o),this[Xa("0x4c")].set(Xa("0xe2"),t),this[Xa("0x4c")][Xa("0x6d")](Xa("0x12c"),n),this[Xa("0x4c")].set("formatBlock:discard",t),this._defaultCallbacks[Xa("0x6d")](Xa("0x74"),o),this[Xa("0x4c")][Xa("0x6d")]("formatBlock:chain",t)}}function Qa(t,e,n){for(const o of e[Xa("0x3a")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x131")]==o)return!1;if(!n[Xa("0xe8")](o))return!1;if(t[Xa("0xa3")](o)||t[Xa("0xfb")](o))return!0}return!1}function Za(t){return t[Xa("0x62")][Xa("0x3a")]==t[Xa("0x89")][Xa("0x82")]&&t[Xa("0x62")][Xa("0xee")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x5d")].is("$textProxy")&&!o.isObject(t[Xa("0x5d")]),i=t[Xa("0x89")][Xa("0x11")](s),r=t[Xa("0x62")][Xa("0x11")](s,{direction:Xa("0x33")});return!(t[Xa("0x89")].isEqual(i)&&t[Xa("0x62")][Xa("0x122")](r)||(i.isBefore(r)?n[Xa("0x51")](e,{range:n[Xa("0xda")](i,r)}):n.removeMarker(e),0))}function tc(t){return(0,i.hashObject)(t)}function ec(t){const e=t.start[Xa("0x82")];return e&&e.is(Xa("0xed"))}function nc(t,e){const n=e[Xa("0x5f")][Xa("0xa3")](t)||e.schema[Xa("0x8d")](t);return e[Xa("0xda")](e[Xa("0xf8")](t,Xa("0x118")),n?e[Xa("0x87")](t):e[Xa("0xf8")](t,Xa("0x62")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end[Xa("0x122")](o.start))return!0;if(t.type!=e.type)return!1;if(!n.end.isTouching(o[Xa("0x89")]))return!1;const i=s[Xa("0xda")](n[Xa("0x62")],o[Xa("0x89")])[Xa("0xf6")]();for(const t of i)if([Xa("0x126"),Xa("0x125")].includes(t.type)&&s[Xa("0x5f")][Xa("0xfb")](t[Xa("0x5d")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0x12a")]||!e._isDataLoaded)&&Go(t[Xa("0x90")],e[Xa("0x90")])}function ic(t,e){const n=rc(t.attributes),o=rc(e);if(!t[Xa("0x12a")])return!1;for(const t of Object[Xa("0x76")](o))if(!Go(n[t],o[t]))return!1;return!0}function rc(t){const e=Object[Xa("0x120")]({},t);return delete e[Xa("0xc8")],delete e.tablePasteChainId,e}const xc=["plugins","get","bind","execute","commentThreadController","canEditAt","_acceptCommand","acceptSuggestion","_discardCommand","canAccept","locale","unbind","commands","change:isDirty","isDirty","discardSuggestion","destroy","isEnabled","_setPendingAction","stopListening","listenTo","_removePendingAction","_pendingAction","getRanges","view","_editor","model"];var ac,cc;ac=xc,cc=260,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[lc("0x7")]=n,this[lc("0xe")]=o,this[lc("0x8")]=t,this[lc("0x10")]=t[lc("0x16")][lc("0xb")](lc("0x11")),this._discardCommand=t.commands[lc("0xb")]("discardSuggestion"),this[lc("0x7")][lc("0xc")](lc("0x0")).to(this[lc("0x10")],this._discardCommand,((t,e)=>t||e)),this[lc("0x7")][lc("0xc")](lc("0x13")).to(this[lc("0x10")],"isEnabled",(t=>t&&this[lc("0x8")][lc("0x9")][lc("0xf")](e[lc("0x6")]()))),this[lc("0x7")].bind("canDiscard").to(this[lc("0x12")],lc("0x0"),(t=>t&&this[lc("0x8")][lc("0x9")][lc("0xf")](e[lc("0x6")]()))),this._pendingAction=null,n[lc("0x18")]&&this._setPendingAction(),this[lc("0x3")](n,lc("0x11"),(()=>this[lc("0x11")]())),this[lc("0x3")](n,lc("0x19"),(()=>this[lc("0x19")]())),this[lc("0x3")](n,lc("0x17"),(()=>{n[lc("0x18")]?this[lc("0x1")]():this._removePendingAction()}))}[lc("0x11")](){this[lc("0x10")].execute(this[lc("0x9")].id)}discardSuggestion(){this[lc("0x12")][lc("0xd")](this.model.id)}[lc("0x1a")](){this[lc("0x7")][lc("0x15")]("isEnabled"),this[lc("0x7")][lc("0x15")](lc("0x13")),this[lc("0x7")][lc("0x15")]("canDiscard"),this[lc("0x2")](),this[lc("0xe")].destroy(),this._pendingAction&&this[lc("0x4")]()}_setPendingAction(){const t=Yo(this[lc("0x8")][lc("0x14")],"PENDING_ACTION_SUGGESTION");this._pendingAction=this[lc("0x8")][lc("0xa")].get("PendingActions").add(t)}[lc("0x4")](){null!==this[lc("0x5")]&&this._editor.plugins[lc("0xb")]("PendingActions").remove(this[lc("0x5")]),this._pendingAction=null}}const uc=["editorConfig","removeComment","disableComments","destroy","descriptionParts","submit","canDiscard","delegate","authoredAt","focus","_createCommentThreadInputView","canAccept","commentsListView","value","disabledSubmit","updateComment","_config","set","element","commentThread","commentInputView","CommentView","isActive","length","_localUser","commentThreadInputView","_createCommentViews","locale","showInput","setData","fire","isReadOnly","_model","isDirty","bind"];var gc,mc;gc=uc,mc=392,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x5")]=null,this.commentThreadInputView=null,this.set(fc("0xf"),!1),this[fc("0xa")](fc("0x1"),e[fc("0x1")]),this[fc("0x1b")](fc("0x1")).to(e),this[fc("0xa")](fc("0x20"),[]),this.set(fc("0x1a"),!1),this.set("isEnabled",!1),this[fc("0xa")](fc("0x4"),!1),this[fc("0xa")](fc("0x22"),!1),this[fc("0x19")]=e,this[fc("0x11")]=n,this[fc("0x9")]=o,o[fc("0x1e")]?this.set("length",1):this[fc("0x13")]()}[fc("0x2")](){this[fc("0xb")].focus()}destroy(){this[fc("0x5")]&&this.commentsListView[fc("0x1f")](),this.commentThreadInputView&&this[fc("0x12")].destroy(),super[fc("0x1f")]()}_createCommentViews(){const{CommentsListView:t}=this[fc("0x9")];this[fc("0x5")]=new t(this.locale,this[fc("0x19")][fc("0xc")],Object.assign({CommentView:this[fc("0x9")][fc("0xe")]},this[fc("0x9")])),this[fc("0x5")].delegate(fc("0x1d")).to(this),this[fc("0x5")][fc("0x0")](fc("0x8")).to(this),this[fc("0x5")][fc("0x1b")]("isActive").to(this),this.set(fc("0x10"),this[fc("0x5")][fc("0x10")]+1),this[fc("0x1b")](fc("0x10")).to(this[fc("0x5")],"length",(t=>t+1)),this[fc("0x12")]=this[fc("0x3")](),this.on(fc("0x1d"),(()=>this[fc("0x2")]())),this[fc("0x1b")]("isDirty").to(this.commentsListView,"hasDirtyComment",this.commentThreadInputView[fc("0xd")],fc("0x6"),((t,e)=>t||!!e))}[fc("0x3")](){const{CommentThreadInputView:t}=this[fc("0x9")],e=new t(this[fc("0x14")],this._localUser,this._config[fc("0x1c")]),n=e[fc("0xd")];return e[fc("0x1b")](fc("0x15")).to(this,"isActive",this[fc("0x19")][fc("0xc")],fc("0x18"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(fc("0x21"),((t,e)=>{this[fc("0x17")]("addComment",e),n.editor[fc("0x16")]("")})),n.on("cancel",(()=>this[fc("0x2")]())),n[fc("0x1b")](fc("0x7")).to(this[fc("0x19")].commentThread,fc("0x18")),e}}const pc=["isEnabled","ck-annotation__user",'<span class="ck-suggestion-color" style="background-color: ',"editorReady","fire","ck-suggestion__main","map","commentThread","ck-comment__external","EXTERNAL_AVATAR","title","importWord","getUserViewNotificationText","ck-annotation__info","description","extendTemplate","ck-suggestion__user","time","delegate","bind",'" title="',"descriptionParts","execute","@external","EXTERNAL_SUGGESTION","userView","getExternalSuggestionNote","_descriptionElement","_config","attributes","set","discardSuggestion","ck-comment__info-time","_model","formatDateTime","source","ck-suggestion-wrapper--active","element","acceptButton","div","getTemplate","canDiscard","check",'<span class="ck-suggestion-type">',"isExternal","ck-annotation__main","creator","bindTemplate","querySelector","type","_createButton","children","authoredAt","ck-suggestion__info-name","acceptSuggestion","createElement","cancel","locale","commentsListView","push","content","</p>","ck-suggestion__actions","render","ck-suggestion--disabled-comments","Discard suggestion","name","<p>","ck-suggestion","ck-suggestion__info","innerHTML","editorDestroyed","ck-annotation__info-time","innerText","span","commentThreadInputView","disableComments","ck-annotation__actions","ck-annotation","ck-suggestion-wrapper","Accept suggestion","EXTERNAL_IMPORT_WORD_SUGGESTION","value","author","discardButton","isActive","setTemplate"];var bc,Ec;bc=pc,Ec=496,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x38")](_c("0x4b"),""),this[_c("0x2d")](_c("0x4b")).to(this,_c("0x2f"),(t=>t&&t[0]?t[0][_c("0x4b")]:"")),this[_c("0x2d")](_c("0x28")).to(this,_c("0x2f"),this,_c("0x18"),((t,e)=>{let n="";for(const e of t)n+=_c("0x6")+Cc(e[_c("0x56")],e.color)+_c("0x0");return e?n:(0,i.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[_c("0x4c")](Yo(e,_c("0x13")),t.icons[_c("0x44")],"ck-suggestion--accept",_c("0x50"),"sw"),this.acceptButton[_c("0x2d")](_c("0x1a")).to(this,"canAccept"),this[_c("0x17")]=this._createButton(Yo(e,_c("0x4")),t.icons[_c("0x52")],"ck-suggestion--discard",_c("0x39"),"sw"),this[_c("0x17")][_c("0x2d")](_c("0x1a")).to(this,_c("0x43")),this.userView=new i.UserView(e,this[_c("0x3b")][_c("0x16")],this.getUserViewNotificationText()),this[_c("0x33")][_c("0x29")]({attributes:{class:[_c("0x2a"),_c("0x1b")]}}),this[_c("0x19")](this.getTemplate())}[_c("0x42")](){const t=this[_c("0x49")],e=[{tag:_c("0x41"),attributes:{class:[_c("0x8"),_c("0x27")]},children:[{tag:_c("0xd"),children:[{text:this[_c("0x33")][_c("0x5")]}],attributes:{class:[_c("0x4f"),"ck-annotation__info-name"]}},{tag:_c("0x2b"),attributes:{datetime:t.to(_c("0x4e")),class:[_c("0x3a"),_c("0xb")]},children:[{text:t.to(_c("0x4e"),(t=>this[_c("0x36")][_c("0x3c")](t)))}]}]},{tag:"div",attributes:{class:[_c("0x1"),_c("0x10")]},children:[this[_c("0x40")],this.discardButton]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this[_c("0x3b")][_c("0x46")]&&e[_c("0x55")]({tag:_c("0x41"),attributes:{class:[_c("0x22")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:_c("0x41"),attributes:{class:[_c("0x12"),t.if(_c("0x18"),_c("0x3e")),t.to(_c("0x4b"),(t=>"ck-suggestion-"+t)),this[_c("0x36")][_c("0xf")]&&_c("0x3")],"data-suggestion-id":this[_c("0x3b")].id,"data-thread-id":this[_c("0x3b")][_c("0x21")].id,"data-author-id":this._model[_c("0x16")].id,tabindex:-1},children:[{tag:_c("0x41"),attributes:{class:[_c("0x7"),_c("0x11")]},children:[this[_c("0x33")],{tag:_c("0x41"),attributes:{class:[_c("0x1f"),_c("0x47")]},children:e}]}]};return this[_c("0x54")]&&this[_c("0xe")]&&(n[_c("0x4d")][_c("0x55")](this[_c("0x54")],this[_c("0xe")]),this[_c("0x54")][_c("0x2c")](_c("0x1d")).to(this),this[_c("0x54")][_c("0x2c")](_c("0xa")).to(this),this[_c("0xe")][_c("0x2c")](_c("0x1d")).to(this),this[_c("0xe")][_c("0x2c")](_c("0xa")).to(this)),n}[_c("0x2")](){super.render(),this._descriptionElement=this[_c("0x3f")][_c("0x4a")](".ck-annotation__content-wrapper"),this._descriptionElement.innerHTML=this[_c("0x28")],this.on("change:description",((t,e,n)=>{this[_c("0x35")][_c("0x9")]=n}))}[_c("0x4c")](t,e,n,o,i){const r=new s.ButtonView(this[_c("0x53")]);return r[_c("0x38")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),r[_c("0x29")]({attributes:{class:n}}),r.on(_c("0x30"),(()=>{this[_c("0x1e")](o,this[_c("0x3b")].id)})),r}[_c("0x34")](){return _c("0x25")===this[_c("0x3b")][_c("0x37")][_c("0x31")].source?Yo(this[_c("0x53")],_c("0x14")):Yo(this[_c("0x53")],_c("0x32"))}[_c("0x26")](){return this[_c("0x3b")][_c("0x46")]?_c("0x25")===this[_c("0x3b")].attributes[_c("0x31")][_c("0x3d")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_AVATAR",this[_c("0x3b")][_c("0x48")].name):Yo(this[_c("0x53")],_c("0x23"),this[_c("0x3b")].creator.name):null}}function Cc(t,e){let n="";return n+=t.split("*")[_c("0x20")](((t,e)=>e%2!=0?_c("0x45")+yc(t)+"</span>":yc(t))).join(""),e&&(n+=_c("0x1c")+e[_c("0x15")]+_c("0x2e")+e[_c("0x24")]+'"></span>'),n}function yc(t){const e=document[_c("0x51")]("span");return e[_c("0xc")]=t,e[_c("0x9")]}const kc=["getJoined","trackChanges","suggestionLoaded","head","commands","getMarkers","_handleSuggestionControllerDelayed","_handleControllerBuffer","view","hasSuggestion","change:previous","getSuggestion","getFirstRange","_annotationViews","separator","EditorAnnotations","createCommentThreadController","remove","_suggestionToController","addSourceCollector","TrackChangesUI","Annotations","getDescriptions","has","some","editing","getRanges","_descriptionFactory","type","CommentsRepository","isEnabled","set","bind","plugins","stopListening","discardAllSuggestions","comments.maxCommentsWhenCollapsed","change:activeAnnotations","get","isDirty","trackChanges.disableComments","_createUIButton","_initializeController","_disableComments","define","CommentView","createAnnotationView","mainView","CommentsUI","createAnnotation","locale","acceptSelectedSuggestions","pluginName","lowest","filter","discardButton","button","unbind","acceptButton","suggestionChanged","value","push","_viewToController","getAllAdjacentSuggestions","isInContent","destroy","innerView","_destroyController","componentFactory","editor","activeAnnotations","comments.editorConfig","listenTo","buttonView","values","commandName","_updateController","Accept all suggestions","size","requires","TrackChangesEditing","arrowView","execute","length","comments.maxCommentCharsWhenCollapsed","isOn","clear","reduce","Discard all selected suggestions","registerAnnotation","descriptionParts","_refreshActiveMarkers","_bindAnnotationToEditors","model","discardSelectedSuggestions","getMarkerNames","Discard all suggestions","isMultiRange","suggestion-","map","actionView","focus","commentThread","config","_unbindEditors","delete","add","toMany","getByInnerView"];var Ac,vc;Ac=kc,vc=103,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Ic extends t.Plugin{static get[Rc("0x55")](){return[$a,i.Users,Rc("0x23"),Rc("0x1b"),Rc("0x15")]}static get[Rc("0x3a")](){return Rc("0x1a")}constructor(t){super(t),this[Rc("0x18")]=new Map,this[Rc("0x44")]=new Map,this[Rc("0x13")]=new Map,this[Rc("0xd")]=new Map;const e=this[Rc("0x4b")][Rc("0x0")];e[Rc("0x32")]("trackChanges.SuggestionThreadView",Tc),e[Rc("0x32")](Rc("0x2e"),!1),this._disableComments=e.get(Rc("0x2e"))}[Rc("0xc")](t,e){0===this[Rc("0xd")][Rc("0x54")]&&setTimeout((()=>{for(const[t,e]of this[Rc("0xd")]){const n=this._suggestionToController[Rc("0x1d")](t);n||e?n&&e&&this._destroyController(t):this[Rc("0x30")](t)}this[Rc("0x4b")][Rc("0x27")][Rc("0x2c")](Rc("0x15")).refreshSelectedViews(),this._refreshActiveMarkers(),this[Rc("0xd")][Rc("0x5c")]()}),10),this._handleControllerBuffer.set(t,e)}init(){const t=this[Rc("0x4b")],e=t[Rc("0x27")][Rc("0x2c")](Rc("0x56")),n=t[Rc("0x27")][Rc("0x2c")]("Annotations"),o=t[Rc("0x27")].get(Rc("0x15")),s=t[Rc("0x27")][Rc("0x2c")](Rc("0x23"));t.ui[Rc("0x4a")].add(Rc("0x7"),(t=>this[Rc("0x2f")](t))),o[Rc("0x19")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Rc("0x67")]){s[Rc("0x43")](...t[Rc("0x20")]());continue}const e=t[Rc("0x12")]();if(s[Rc("0x59")]>0){const t=s[0][Rc("0x6")](e);if(t){s[0]=t;continue}}s.push(e)}t[Rc("0x43")]([n[Rc("0xe")],s])}return t})),this[Rc("0x4e")](e,Rc("0x8"),((t,e)=>{this[Rc("0x4e")](e,Rc("0x10"),((t,n,o,s)=>{e[Rc("0x46")]&&(null==o?(this._updateController(s.head),this._handleSuggestionControllerDelayed(e,!1)):(this._updateController(o[Rc("0x9")]),this[Rc("0xc")](e,!0)))})),null===e.previous?this[Rc("0xc")](e,!1):this[Rc("0x52")](e[Rc("0x9")])})),this[Rc("0x4e")](e,"suggestionUnloaded",((t,e,n)=>{this[Rc("0x28")](e,"change:previous"),this._handleControllerBuffer.delete(e);const o=n?n[Rc("0x9")]:e,s=this[Rc("0x18")][Rc("0x2c")](o);null!==n&&this[Rc("0x52")](o),null===n&&s&&this._destroyController(e)})),this[Rc("0x4e")](e,Rc("0x41"),((t,e)=>{this[Rc("0x52")](e)})),this[Rc("0x4e")](n,Rc("0x2b"),(()=>{this[Rc("0x61")]()})),this[Rc("0x4e")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0xf")](n))return;const s=e[Rc("0x11")](n);this[Rc("0x18")].get(s)[Rc("0xe")].focus()}),{priority:Rc("0x3b")})}_refreshActiveMarkers(){const t=this.editor[Rc("0x27")][Rc("0x2c")](Rc("0x1b")),e=this.editor[Rc("0x27")][Rc("0x2c")]("TrackChangesEditing"),n=Array.from(t[Rc("0x4c")],(t=>t[Rc("0x48")]))[Rc("0x3c")]((t=>this._viewToController[Rc("0x1d")](t))),o=[];for(const t of n){const e=this[Rc("0x44")][Rc("0x2c")](t)[Rc("0x63")][Rc("0x45")]();o[Rc("0x43")](...e[Rc("0x5d")](((t,e)=>[...t,...e[Rc("0x65")]()]),[]))}e.activeMarkers=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Rc("0xa")][Rc("0x2c")](Rc("0x7")),i=Yo(t,"Track changes");n.buttonView[Rc("0x25")]({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[Rc("0x4f")].bind(Rc("0x5b")).to(o,"value"),n.buttonView.on(Rc("0x58"),(()=>{o[Rc("0x58")](),this[Rc("0x4b")].editing[Rc("0xe")][Rc("0x6b")]()}));const r=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:Rc("0x7")}},{type:Rc("0x14")},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x53")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Rc("0x39")}},{type:Rc("0x3e"),model:{withText:!0,label:Yo(t,Rc("0x66")),commandName:Rc("0x29")}},{type:Rc("0x3e"),model:{withText:!0,label:Yo(t,Rc("0x5e")),commandName:Rc("0x64")}}];for(const t of x){let e={type:"separator"};if(t.model){const n=new s.Model(t[Rc("0x63")]),o=this[Rc("0x4b")][Rc("0xa")][Rc("0x2c")](n[Rc("0x51")]);n[Rc("0x26")](Rc("0x5b"),Rc("0x24")).to(o,Rc("0x42"),Rc("0x24")),e={type:t[Rc("0x22")],model:n}}r[Rc("0x3")](e)}(0,s.addListToDropdown)(n,r);const a=x[Rc("0x3c")]((t=>null!=t.model))[Rc("0x69")]((t=>this[Rc("0x4b")].commands[Rc("0x2c")](t[Rc("0x63")].commandName))),c=n[Rc("0x4f")];return c[Rc("0x6a")][Rc("0x3f")](Rc("0x24")),c[Rc("0x57")][Rc("0x3f")](Rc("0x24")),c[Rc("0x6a")].bind(Rc("0x24")).to(o,Rc("0x24")),c[Rc("0x57")][Rc("0x26")](Rc("0x24"))[Rc("0x4")](a,Rc("0x24"),((...t)=>t[Rc("0x1e")]((t=>t)))),n.on("execute",(t=>{this[Rc("0x4b")][Rc("0x58")](t.source[Rc("0x51")]),this[Rc("0x4b")][Rc("0x1f")][Rc("0xe")][Rc("0x6b")]()})),n}[Rc("0x30")](t){const e=this[Rc("0x4b")],n=e[Rc("0x0")],o=e.plugins[Rc("0x2c")]("Annotations"),s=e[Rc("0x27")][Rc("0x2c")](Rc("0x23")),r=e[Rc("0x27")].get(Rc("0x15")),x=e.plugins.get(i.Users).me,a=n[Rc("0x2c")](Rc("0x7")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x27")][Rc("0x2c")](Rc("0x36"));let d,u;this[Rc("0x13")][Rc("0x1d")](t.id)?(u=this[Rc("0x13")].get(t.id),d=u.mainView):(d=new a(e[Rc("0x38")],t,x,{disableComments:this[Rc("0x31")],editorConfig:n[Rc("0x2c")](Rc("0x4d")),maxCommentsWhenCollapsed:n.get(Rc("0x2a")),maxThreadTotalWeight:n[Rc("0x2c")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Rc("0x2c")](Rc("0x5a")),formatDateTime:(0,i.getDateTimeFormatter)(n[Rc("0x2c")](Rc("0x38"))),CommentView:n[Rc("0x2c")]("comments")[Rc("0x33")],CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x40")].on(Rc("0x58"),(()=>{e[Rc("0x1f")][Rc("0xe")].focus()})),d[Rc("0x3d")].on("execute",(()=>{e[Rc("0x1f")].view.focus()})),u=o[Rc("0x34")](this.editor[Rc("0x38")],d),u[Rc("0x26")](Rc("0x2d")).to(d,Rc("0x2d")),u[Rc("0x26")](Rc("0x59")).to(d),u[Rc("0x26")]("type").to(d,"type",(t=>Rc("0x68")+t)),this[Rc("0x13")][Rc("0x25")](t.id,u));const g=s[Rc("0x16")](t[Rc("0x6c")],d),m=new dc(e,t,d,g),f=t.getAllAdjacentSuggestions()[Rc("0x3c")]((t=>t[Rc("0x46")]));d[Rc("0x60")]=e.plugins[Rc("0x2c")](Rc("0x56"))[Rc("0x21")][Rc("0x1c")](f),this[Rc("0x18")][Rc("0x25")](t,m),this[Rc("0x44")][Rc("0x25")](d,m);const h=o[Rc("0x37")]({view:u,target:()=>{const n=[],o=t[Rc("0x45")]()[Rc("0x3c")]((t=>t.isInContent));for(const t of o)n[Rc("0x43")](...t[Rc("0xb")]());return(0,i.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Rc("0x68")+m[Rc("0xe")][Rc("0x22")]});s[Rc("0x62")](d,h),o.add(h),r[Rc("0x5f")](h)}[Rc("0x49")](t){const e=this[Rc("0x4b")][Rc("0x27")].get(Rc("0x23")),n=this[Rc("0x4b")][Rc("0x27")][Rc("0x2c")](Rc("0x1b")),o=this[Rc("0x18")][Rc("0x2c")](t),s=o[Rc("0xe")],i=n[Rc("0x5")](s);e[Rc("0x1")](s),i&&n[Rc("0x17")](i),this._suggestionToController[Rc("0x2")](t),this[Rc("0x44")][Rc("0x2")](s),o[Rc("0x47")]()}[Rc("0x52")](t){if(!t.isInContent||!this[Rc("0x18")][Rc("0x1d")](t))return;const e=this[Rc("0x4b")][Rc("0x27")][Rc("0x2c")](Rc("0x56")),n=this[Rc("0x18")][Rc("0x2c")](t),o=t.getAllAdjacentSuggestions();n[Rc("0xe")][Rc("0x60")]=e[Rc("0x21")][Rc("0x1c")](o)}destroy(){for(const t of this[Rc("0x18")].keys())this[Rc("0x49")](t);for(const t of this._annotationViews[Rc("0x50")]())t[Rc("0x35")][Rc("0x47")]();super[Rc("0x47")]()}}var Sc,Lc,Nc=["getSuggestions","editor","requires","adapter","plugins","addSuggestionData","get","TrackChanges","Comments","getSuggestion"];Sc=Nc,Lc=219,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get[wc("0x3")](){return[$a,Ic,wc("0x9")]}static get pluginName(){return wc("0x8")}set[wc("0x4")](t){this.editor[wc("0x5")].get($a)[wc("0x4")]=t}get[wc("0x4")](){return this[wc("0x2")][wc("0x5")].get($a).adapter}addSuggestion(t){return this[wc("0x2")].plugins[wc("0x7")]($a)[wc("0x6")](t)}[wc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[wc("0x5")][wc("0x7")]($a).getSuggestions({skipNotAttached:t,toJSON:e})}[wc("0x0")](t){return this.editor[wc("0x5")][wc("0x7")]($a)[wc("0x0")](t)}}const Oc=["init","createElement","function","TrackChangesDataGetter","model","CommentsRepository","editor","users","plugins","execute","acceptAllSuggestions","requires","TrackChangesEditing","getFullData","get","data","name","constructor","end","push","config","reduce","define","createDocumentFragment","useAnonymousUser","editorCreator","track-changes-data-invalid-editor-creator","getSuggestions","destroy","document","_adapter","TrackChangesData","trackChangesData","pluginName","getDataWithDiscardedSuggestions","Users","getUser","div","map","getRootNames","Pagination","getDataWithAcceptedSuggestions","set","addUser","getRootsAttributes","result"];var Fc,Pc;Fc=Oc,Pc=257,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0xd")];class jc extends t.Plugin{static get[Dc("0x1e")](){return[$a]}static get[Dc("0x6")](){return Dc("0x4")}[Dc("0x13")](){const t=this[Dc("0x19")];if(t[Dc("0x27")][Dc("0x29")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x17")][Dc("0x2")].getRootNames()[Dc("0x28")](((t,e)=>(t[e]="",t)),{});return t[Dc("0x24")].create(n,e)})),Dc("0x15")!=typeof t[Dc("0x27")][Dc("0x21")](Dc("0x5"))[Dc("0x2c")])throw new e.CKEditorError(Dc("0x2d"))}[Dc("0xe")](t){return Hc(this.editor,!0,t)}[Dc("0x7")](t){return Hc(this[Dc("0x19")],!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x16")}constructor(t){super(t),this[Dc("0x12")]=Dc("0x25")}[Dc("0x13")](){this[Dc("0x19")][Dc("0x1b")][Dc("0x21")](Dc("0x18"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Dc("0x19")][Dc("0x1b")][Dc("0x21")]("TrackChangesEditing")[Dc("0x3")]=null}}function Gc(t){return void 0!==t[Dc("0x11")]}async function Hc(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,Bc);o[Dc("0x1b")][Dc("0x26")]($a,Uc),o.rootsAttributes=Gc(t)?t[Dc("0x11")]():void 0;const s=document[Dc("0x2a")](),r=t[Dc("0x27")][Dc("0x21")](Dc("0x5"))[Dc("0x2c")],x=await r(o,(()=>function(t){const e=document[Dc("0x14")](Dc("0xa"));return t.appendChild(e),e}(s)));!function(t,e){const n=t.model[Dc("0x2")][Dc("0xc")]()[Dc("0x28")](((e,n)=>(e[n]=t.data[Dc("0x21")]({rootName:n}),e)),{}),o=t[Dc("0x1b")][Dc("0x21")](Dc("0x8"))[Dc("0x1a")][Dc("0xb")]((t=>({id:t.id,name:t[Dc("0x23")]}))),s=t.plugins[Dc("0x21")](Dc("0x1f"))[Dc("0x0")]({skipNotAttached:!0,toJSON:!0}),i=e.plugins[Dc("0x21")](Dc("0x8")),r=e[Dc("0x1b")][Dc("0x21")](Dc("0x1f"));for(const t of o)i[Dc("0x9")](t.id)||i[Dc("0x10")](t);i.me||i[Dc("0x2b")]();for(const t of s)r.addSuggestionData(t);e.data[Dc("0xf")](n)}(t,x),x[Dc("0x1c")](e?Dc("0x1d"):"discardAllSuggestions");const a=Gc(x)?x[Dc("0x20")](n):x[Dc("0x22")][Dc("0x21")](n);return await x[Dc("0x1")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();