@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230818.0 → 0.0.0-nightly-20230819.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 (64) 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/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. 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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Va});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_disableUnsupportedCommands","_enableCommands","value","_isEnabledBasedOnSelection","_enabledCommands","execute","refresh","forceDisabled","affectsData","commands","has","clearForceDisabled","TrackChangesCommand","isEnabled"];var c,l;c=a,l=293,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("0x5")]=e,this[d("0x3")]=!1,this[d("0x7")](),this[d("0x4")]=!1}[d("0x7")](){this[d("0x0")]=!0}[d("0x6")](){this.value=!this[d("0x3")],this[d("0x3")]?this[d("0x1")]():this._enableCommands()}[d("0x1")](){for(const t of this.editor.commands[d("0xa")]())t[d("0x9")]&&!this[d("0x5")][d("0xb")](t)&&t[d("0x8")](d("0xd"))}[d("0x2")](){for(const t of this.editor.commands[d("0xa")]())t.affectsData&&!this[d("0x5")][d("0xb")](t)&&t[d("0xc")]("TrackChangesCommand")}}const g=["plugins","refresh","_suggestions","_isEnabledBasedOnSelection","model","TrackChangesEditing","acceptSuggestion","get","isEnabled","canEditAt","editor","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=338,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("0x0")]=e,this[h("0xb")](),this[h("0x1")]=!1}[h("0xb")](){this[h("0x6")]=!0}execute(t){const n=this[h("0x0")][h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n.getRanges();this.editor[h("0x2")][h("0x7")](o)&&this[h("0x8")][h("0xa")][h("0x5")](h("0x3"))[h("0x4")](n)}}const b=["isEnabled","_suggestions","editor","getRanges","TrackChangesEditing","model","_isEnabledBasedOnSelection","refresh","execute","plugins","canEditAt","get"];var E,_;E=b,_=421,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("0x0")]=e,this[T("0x6")](),this[T("0x5")]=!1}[T("0x6")](){this[T("0xb")]=!0}[T("0x7")](t){const n=this[T("0x0")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x2")]();this[T("0x1")][T("0x4")][T("0x9")](o)&&this.editor[T("0x8")][T("0xa")](T("0x3")).discardSuggestion(n)}}const y=["isIntersecting","replace","isObject","createPositionAfter","getMarkers","color","getRange","getRanges","next","map","sort","createRange","deletion","createPositionAt","splice","add","type","isInContent","createPositionBefore","from","length","end","execute","isTouching","content","join"];var k,A;k=y,A=433,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x13")](((t,e)=>v("0x15")==t[v("0x19")]&&"deletion"!=e[v("0x19")]?-1:v("0x15")!=t.type&&v("0x15")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t[v("0x3")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s.push(e[v("0x14")](n,r[v("0xb")](i)?e[v("0xc")](i):e[v("0x16")](i,v("0x4")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xc")](e),s=t[v("0x1")](n);return o[v("0x6")](s)}function L(t,e,n){for(;n[v("0x3")];){const o=n[v("0x17")](0,100);t.change((()=>{for(const t of o)t[v("0x0")]&&e[v("0x5")](t.id)}))}}const N=["some","canEditAt","isEnabled","editor","getRanges","_suggestions","values","refresh","_command"];var M,w;M=N,w=362,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x6")]=e,this._suggestions=n,this[O("0x5")](),this._isEnabledBasedOnSelection=!1}[O("0x5")](){const t=Array.from(this[O("0x3")][O("0x4")]())[O("0x7")]((t=>t.isInContent));this[O("0x0")]=this[O("0x6")][O("0x0")]&&t}execute(){const t=R(Array.from(this._suggestions[O("0x4")]()));for(const e of t){const t=e[O("0x2")]();if(!this[O("0x1")].model[O("0x8")](t))return}L(this[O("0x1")].model,this[O("0x6")],t)}}const P=["_command","from","_suggestions","isEnabled","model","canEditAt","editor","getRanges","document","_selectedSuggestions","_isEnabledBasedOnSelection","refresh"];var D,B;D=P,B=180,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("0x0")]=e,this[j("0x2")]=n,this[j("0x9")]=new Set,this.refresh(),this[j("0xa")]=!1}[j("0xb")](){const t=this[j("0x6")][j("0x4")][j("0x8")].selection,e=Array[j("0x1")](this[j("0x2")].values());this[j("0x9")]=function(t,e){const n=Array[v("0x2")](t[v("0x10")]()),o=new Set;for(const s of e)if(s[v("0x0")])for(const e of n)for(const n of s[v("0xd")]()){const r=n[v("0xf")]();(e[v("0x9")](r)||t.isCollapsed&&!s.isMultiRange&&s[v("0x11")]&&r[v("0x4")][v("0x6")](e.start))&&o[v("0x18")](s)}return o}(t,e),this.isEnabled=this[j("0x0")][j("0x3")]&&!!this[j("0x9")].size}execute(){const t=R(Array[j("0x1")](this._selectedSuggestions));for(const e of t){const t=e[j("0x7")]();if(!this.editor[j("0x4")][j("0x5")](t))return}L(this[j("0x6")].model,this[j("0x0")],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 V=Array.prototype.splice;const W=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.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=W,$.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 Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?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]=Mt&&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=wt,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 Vt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const 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 Me=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 we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const 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)?Me(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 Ve=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 We=function(t){return je(t)?Me(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,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,We,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 Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var 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?Mn(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 Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return 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 Vn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?ke(Wn):Vn;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?We: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 Mo=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 wo=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:wo.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):Mo(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 Vo=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 Wo=function(t,e){return e.length<2?t:zo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["head","map","attributes","creator","add","data","removeAttribute","getRanges","getMultiRangeId","nodeAfter","type","hasComments","_markerNames","_onDiscard","set","onAttributesChange","removeMarkers","getMarkers","commentThread","length","decorate","getAllAdjacentSuggestions","_model","author","end","change","nodeBefore","createdAt","_onAttributesChange","previous","isIntersectingWithRange","getFirstRange","split","start","discard","getMarkerNames","accept","getRange","setAttribute","authoredAt","getContainedElement","getItems","removeMarker","next","isInContent","isMultiRange","subType","push","_onAccept","isIntersecting","getFirstMarker","from","size","addMarkerName"];var $o,Jo;$o=Xo,Jo=326,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.id=e.id,this[Qo("0x8")]=e[Qo("0x8")],this.subType=e[Qo("0x2c")]||null,this[Qo("0x15")]=e[Qo("0x15")],this[Qo("0x1")]=e[Qo("0x1")]||e[Qo("0x15")],this.isExternal=Boolean(e[Qo("0x0")]&&e[Qo("0x0")]["@external"]),this[Qo("0x3")]=null,this[Qo("0x14")]=t,this[Qo("0x2e")]=e.onAccept,this[Qo("0xb")]=e.onDiscard,this[Qo("0x1a")]=e[Qo("0xd")],this[Qo("0xa")]=new Set,this[Qo("0x19")]=null,this[Qo("0xc")](Qo("0x25"),null),this[Qo("0xc")](Qo("0x0"),e[Qo("0x0")]||{}),this[Qo("0xc")](Qo("0x1b"),null),this.set(Qo("0x29"),null),this[Qo("0xc")]("commentThread",null),this[Qo("0xc")]("_saved",!1),this[Qo("0x12")](Qo("0x22")),this[Qo("0x12")](Qo("0x20"))}get head(){let t=this;for(;t.previous;)t=t[Qo("0x1b")];return t}get hasComments(){return!!this[Qo("0x10")]&&this[Qo("0x10")][Qo("0x11")]>0}get[Qo("0x2b")](){return 0!=this[Qo("0xa")][Qo("0x32")]&&6==Array[Qo("0x31")](this[Qo("0xa")])[0][Qo("0x1e")](":")[Qo("0x11")]}get[Qo("0x2a")](){return null!==this[Qo("0x30")]()}[Qo("0x33")](t){this._markerNames[Qo("0x2")](t)}[Qo("0x21")](){return Array.from(this[Qo("0xa")])}[Qo("0xf")](){return this[Qo("0x21")]()[Qo("0x35")]((t=>this[Qo("0x14")].markers.get(t))).filter((t=>t))}[Qo("0x30")](){return this[Qo("0xf")]()[0]||null}[Qo("0xe")](){this[Qo("0x14")][Qo("0x17")]((t=>{for(const e of this[Qo("0xf")]())t[Qo("0x28")](e)})),this[Qo("0xa")].clear()}removeMarker(t){this[Qo("0x14")].change((e=>{e[Qo("0x28")](t)})),this[Qo("0xa")].delete(t)}addRange(t){const e="suggestion:"+this.type+":"+this.subType+":"+this.id+":"+this[Qo("0x1")].id+":"+Zo[Qo("0x6")]();this[Qo("0x33")](e),this._model[Qo("0x17")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x1c")](t){for(const e of this.getRanges())if(e[Qo("0x2f")](t))return!0;return!1}[Qo("0x5")](){return this.getMarkers()[Qo("0x35")]((t=>t[Qo("0x23")]()))}[Qo("0x27")](){return this[Qo("0x5")]().reduce(((t,e)=>[...t,...e[Qo("0x27")]()]),[])}[Qo("0x1d")](){var t;return(null===(t=this[Qo("0x30")]())||void 0===t?void 0:t[Qo("0x23")]())||null}[Qo("0x26")](){const t=this[Qo("0x5")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x1f")][Qo("0x7")],o=e[Qo("0x16")][Qo("0x18")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x22")](){this._onAccept(this.getRanges(),this[Qo("0x3")],this[Qo("0x0")]),this[Qo("0xe")]()}[Qo("0x20")](){this[Qo("0xb")](this[Qo("0x5")](),this[Qo("0x3")],this.attributes),this[Qo("0xe")]()}[Qo("0x13")](){const t=[];let e=this[Qo("0x34")];for(;e;)t[Qo("0x2d")](e),e=e.next;return t}[Qo("0x24")](t,e){const n=eo(this[Qo("0x0")]);_o(n,t,e),Go(n,this[Qo("0x0")])||(this[Qo("0x0")]=n,this[Qo("0x1a")](n))}[Qo("0x4")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x0")])||(this[Qo("0x0")]=e,this[Qo("0x1a")](this[Qo("0x0")]))}toJSON(){return{id:this.id,type:this[Qo("0x2c")]?this[Qo("0x8")]+":"+this.subType:this[Qo("0x8")],authorId:this[Qo("0x1")].id,createdAt:this[Qo("0x19")],hasComments:this[Qo("0x9")],data:this[Qo("0x3")],attributes:this[Qo("0x0")]}}static[Qo("0x6")](){return(0,e.uid)().substr(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=["push","previousSibling","remove","nextSibling","quantity","indexOf","pop","removeObject","name","get","_resolveDescriptionItems","item","ELEMENT_SPACE","elementStart","isEmpty","element","_customCallbacks","isObject","type","text","getFirstRange","_schema","normal","data","addObject","insertion","_addDescriptionItems","getDescriptions","$textProxy","add","start","Object","removeEmptyContainer","replace","getItemLabel","elementEnd","deletion","$text","addEmptyContainer","matchingCallback","length","*Split:* %0","isEqual","removeContainer","end","EmptyContainer","*Insert:* %0","$1 $2","*Remove:* %0","label","registerDescriptionCallback","match","_itemLabels","Container","skip","function","softBreak","REPLACE_TEXT"];var es,ns;es=ts,ns=482,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("0x38")]=[],this[os("0x22")]=new Map,this._itemLabelsCallbacks=[],this._schema=t,this._locale=e}[os("0x9")](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("0x38")]){const n=t(o);if(n){"type"in n&&e[os("0x28")](n),s=!0;break}}if(!s){this[os("0x8")](e,o);const s=t[n+1];if(s&&!o[os("0x2")]()[os("0x1a")][os("0x18")](s[os("0x2")]()[os("0xc")])){const t=e[e[os("0x16")]-1],n="insertion"==o[os("0x0")]?os("0xb"):os("0x2a");t&&"text"==t[os("0x0")]&&(t[n]+="\n")}}}return this[os("0x32")](e)}[os("0x20")](t){this._customCallbacks.push(t)}registerElementLabel(t,n,o=e.priorities[os("0x4")]){os("0x25")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[os("0x10")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x15")](t)){n=e[os("0x1f")];break}return n||(n=this[os("0x22")][os("0x31")](t[os("0x30")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x30")]}[os("0x8")](t,e){const n=e.getFirstRange().getWalker(),o=os("0x7")==e[os("0x0")]?os("0xb"):os("0x2a");for(const e of n){const s=e[os("0x33")],r=t[t[os("0x16")]-1];if(s.is(os("0xa")))r&&r.type[os("0x2d")]("Container")>-1&&t[os("0x2e")](),r&&os("0x1")==r.type?r[o]+=s[os("0x5")]:t[os("0x28")]({type:"text",add:os("0xb")==o?s[os("0x5")]:"",remove:"remove"==o?s[os("0x5")]:""});else if(this._schema[os("0x39")](s)){const i=s;if(r&&r[os("0x0")][os("0x2d")](os("0x23"))>-1&&t.pop(),"elementEnd"==e.type)continue;r&&r[os("0x0")]==o+os("0xd")&&r.element[os("0x30")]==i[os("0x30")]?r[os("0x2c")]++:t[os("0x28")]({type:o+"Object",element:i,quantity:1}),n[os("0x24")]((t=>!(os("0x11")==t[os("0x0")]&&t.item==s)))}else if(this[os("0x3")].checkChild(s,os("0x13"))||s.is(os("0x37"),os("0x26"))){const n=s;if(os("0xb")==o&&os("0x35")==e[os("0x0")]||"remove"==o&&"elementEnd"==e[os("0x0")])continue;if(r&&-1==r[os("0x0")][os("0x2d")](os("0x23"))){"text"==r[os("0x0")]&&(r[o]+="\n");continue}let i;if(i=os("0xb")==o?n[os("0x2b")]&&!this[os("0x3")][os("0x39")](n[os("0x2b")])?n[os("0x2b")]:null:n[os("0x29")]&&!this[os("0x3")][os("0x39")](n[os("0x29")])?n[os("0x29")]:null,n[os("0x36")]||i&&i[os("0x36")]){const e=i&&i[os("0x36")]?i:n;r&&r[os("0x0")]==o+os("0x1b")&&r.element.name==e[os("0x30")]?r[os("0x2c")]++:t[os("0x28")]({type:o+os("0x1b"),element:e,quantity:1})}else t.push({type:o+os("0x23"),element:n})}}}[os("0x32")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x0")]){case"text":if(o.add=o.add[os("0xf")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0xf")](/\u000A/g,""),o.remove=o[os("0x2a")][os("0xf")](/(\S)\u000A+(\S)/g,os("0x1d"))[os("0xf")](/\u000A/g,""),""!=o[os("0xb")]&&""!=o[os("0x2a")]){n[os("0x28")]({type:os("0xf"),content:Yo(e,os("0x27"),['"'+o.remove+'"','"'+o.add+'"'])});continue}if(null!=o[os("0xb")][os("0x21")](/^ +$/)){n[os("0x28")]({type:"insertion",content:Yo(e,os("0x1c"),Yo(e,os("0x34"),o[os("0xb")][os("0x16")]))});continue}if(null!=o[os("0x2a")][os("0x21")](/^ +$/)){n.push({type:os("0x12"),content:Yo(e,os("0x1e"),Yo(e,os("0x34"),o.remove.length))});continue}if(""!=o[os("0xb")]){n[os("0x28")]({type:os("0x7"),content:Yo(e,os("0x1c"),'"'+o[os("0xb")]+'"')});continue}n.push({type:os("0x12"),content:Yo(e,os("0x1e"),'"'+o[os("0x2a")]+'"')});continue;case os("0x14"):case os("0x6"):n.push({type:os("0x7"),content:Yo(e,os("0x1c"),this[os("0x10")](o[os("0x37")],o[os("0x2c")]))});continue;case os("0xe"):case os("0x2f"):n[os("0x28")]({type:os("0x12"),content:Yo(e,os("0x1e"),this[os("0x10")](o[os("0x37")],o[os("0x2c")]))});continue;case"addContainer":n.push({type:os("0x7"),content:Yo(e,os("0x17"),this[os("0x10")](o[os("0x37")],o[os("0x2c")]))});continue;case os("0x19"):n[os("0x28")]({type:os("0x12"),content:Yo(e,"*Merge:* %0",this.getItemLabel(o[os("0x37")],o[os("0x2c")]))});continue}n[os("0x28")](o)}return n}}const rs=["contentLanguageDirection","filter","TrackChangesEditing","FORMAT_ALIGN_TO_RIGHT","getSelectedBlocks","justify","editor","model","registerDescriptionCallback","AlignmentEditing","get","markBlockFormat","FORMAT_ALIGN_TO_CENTER","enableCommand","selection","schema","FORMAT_JUSTIFY_TEXT","center","*Format:* %0","FORMAT_ALIGN_TO_LEFT","alignment","plugins","left","ltr","from","right","has","value","locale","checkAttribute","commandName","commandParams","afterInit"];var is,xs;is=rs,xs=441,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x14")](){const t=this[as("0x1b")],e=t[as("0x10")];if(!t[as("0x9")][as("0xe")](as("0x1e")))return;const n=t[as("0x9")][as("0x1f")](as("0x17"));n[as("0x1")](as("0x8"),((e,o={})=>{let s=o[as("0xf")];o[as("0xf")]||(s=as("0xb")===t[as("0x10")][as("0x15")]?as("0xa"):as("0xd"));const r=Array[as("0xc")](this[as("0x1b")].model.document[as("0x2")][as("0x19")]())[as("0x16")]((t=>function(t,e,n){const o=t.getAttribute(as("0x8"))||null;return e[as("0x11")](t,"alignment")&&n!=o}(t,this[as("0x1b")].model[as("0x3")],s)));t[as("0x1c")].change((()=>{for(const t of r)n[as("0x20")](t,{commandName:as("0x8"),commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0x1d")]((t=>{const{data:n}=t;if(n&&as("0x8")==n[as("0x12")]){const t=n[as("0x13")][0].value;return{type:"format",content:Yo(e,as("0x6"),function(t){switch(t){case as("0xa"):return Yo(e,as("0x7"));case as("0xd"):return Yo(e,as("0x18"));case as("0x5"):return Yo(e,as("0x0"));case as("0x1a"):return Yo(e,as("0x4"))}}(t))}}}))}}const ls=["getAttribute","mapper","getWalker","test","listIndent","toViewPosition","activeMarkers","model","isLimit","includes","start","nextSibling","listItem","get","writer","ck-suggestion-marker--active","isContent","hasAttribute","markerRange","element","TrackChangesEditing","getItems","push","previousPosition","item","bindElementToMarker","addHighlight","markerName","addClass","elementEnd","ck-suggestion-marker-","createUIElement","schema","isAtEnd","parent","insert","plugins","toViewElement","createRangeOn","getCustomProperty","isBlock"];var ds,us;ds=ls,us=256,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0xb")]())s[gs("0x7")](t)&&o[gs("0xc")](n[gs("0x1c")](s));return o}function fs(t){const e=[];if(t.is(gs("0x9"),gs("0x2"))){let n=t[gs("0x1")];for(;n&&n.is(gs("0x9"),gs("0x2"))&&n[gs("0x1f")](gs("0x23"))>0;)e[gs("0xc")](n),n=n.nextSibling}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x1a")][gs("0x3")](gs("0xa"));return(s,r,i)=>{if(!i.consumable[gs("0x22")](r[gs("0x8")],s.name))return;const x=r[gs("0x8")][gs("0x21")](),a=r.markerRange[gs("0x0")],c=t[gs("0x26")][gs("0x16")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0xe")];u=u||c[gs("0x6")](e);const n=i[gs("0x20")][gs("0x1b")](e);if(n&&n[gs("0x1d")](gs("0x10")))return;gs("0x13")==t.type&&c[gs("0x1e")](e)&&!c[gs("0x27")](e)&&(e[gs("0x1")]||a[gs("0x17")]?l&&l[gs("0x18")]==e||(l=e,m(t[gs("0xd")]),g=!0):d=d||t[gs("0xd")])}function m(t){const s=i.writer[gs("0x15")]("span",{class:gs("0x14")+e}),x=i[gs("0x20")][gs("0x24")](t);n&&o[gs("0x25")][gs("0x28")](r[gs("0x11")])&&i[gs("0x4")][gs("0x12")](gs("0x5"),s),i[gs("0x4")][gs("0x19")](x,s),i.mapper[gs("0xf")](s,r[gs("0x11")])}u||g||!d||m(d)}}const ps=["FORMAT_UNDERLINE","SuperscriptEditing","FORMAT_CODE","plugins","commandParams","*Format:* %0","slice","afterInit","superscript","StrikethroughEditing","forceValue","CodeEditing","underline","isCollapsed","markInlineFormat","strikethrough","italic","subscript","has","*Remove format:* %0","getRanges","FORMAT_ITALIC","toLowerCase","model","format","commands","FORMAT_SUBSCRIPT","get","SubscriptEditing","locale","_descriptionFactory","TrackChangesEditing"];var bs,Es;bs=ps,Es=358,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing","ItalicEditing","UnderlineEditing",_s("0x5"),_s("0x3"),_s("0x16"),_s("0x1b")];class Cs extends t.Plugin{[_s("0x1")](){const t=this.editor,e=t[_s("0x11")],n=t[_s("0x1d")][_s("0x15")](_s("0x19")),o=t[_s("0x17")];for(const o of Ts){if(!t[_s("0x1d")][_s("0xc")](o))continue;const s=o[_s("0x0")](0,-7)[_s("0x10")](),r=t[_s("0x13")][_s("0x15")](s);n.enableCommand(s,((t,o={})=>{const i=e.document.selection;if(i[_s("0x7")])return void t(o);const x=void 0!==o[_s("0x4")]?o[_s("0x4")]:!r.value;e.change((()=>{const t=Array.from(i[_s("0xe")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x8")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x18")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x1e")][0][_s("0x4")]?{type:_s("0x12"),content:Yo(o,_s("0x1f"),e)}:{type:"format",content:Yo(o,_s("0xd"),e)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(_s("0xa"),Yo(o,_s("0xf"))),s(_s("0x6"),Yo(o,_s("0x1a"))),s("code",Yo(o,_s("0x1c"))),s(_s("0x9"),Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0xb"),Yo(o,_s("0x14"))),s(_s("0x2"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["from","getSelectedBlocks","checkChild","schema","document","change","editor","commands","registerDescriptionCallback","forceValue","blockQuote","format","afterInit","$root","*Remove format:* %0","enableCommand","model","ELEMENT_BLOCK_QUOTE","has","BlockQuoteEditing","_descriptionFactory","get","filter","parent","name","*Format:* %0","plugins"];var ks,As;ks=ys,As=292,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x11")](){const t=this.editor,e=t.locale;if(!t[vs("0x4")][vs("0x17")](vs("0x18")))return;const n=t.plugins[vs("0x1a")]("TrackChangesEditing"),o=this.editor[vs("0xc")][vs("0x1a")](vs("0xf"));n[vs("0x14")]("blockQuote",((e,s={})=>{const r=this[vs("0xb")].model[vs("0x9")].selection,i=s&&void 0!==s[vs("0xe")]?s[vs("0xe")]:!o.value;let x=[];if(i){const e=Array[vs("0x5")](r.getSelectedBlocks())[vs("0x0")]((t=>Ss(t)||function(t,e){const n=e[vs("0x7")](t.parent,vs("0xf")),o=e[vs("0x7")]([vs("0x12"),vs("0xf")],t);return n&&o}(t,this[vs("0xb")].model[vs("0x8")])));x=S(e,t.model)}else{const e=Array[vs("0x5")](r[vs("0x6")]()).filter((t=>Ss(t)));x=S(e,t.model)}t[vs("0x15")][vs("0xa")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vs("0x19")][vs("0xd")]((t=>{const{data:n}=t;if(n&&vs("0xf")==n.commandName){const t=Yo(e,vs("0x16"));return n.commandParams[0][vs("0xe")]?{type:"format",content:Yo(e,vs("0x3"),t)}:{type:vs("0x10"),content:Yo(e,vs("0x13"),t)}}}))}}function Ss(t){return vs("0xf")==t[vs("0x1")][vs("0x2")]}const Is=["get","afterInit","plugins","TrackChangesEditing","editor","ckbox"];var Ls,Ns;Ls=Is,Ns=328,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x3")](){const t=this[Ms("0x0")];t.commands[Ms("0x2")](Ms("0x1"))&&t[Ms("0x4")].get(Ms("0x5")).enableCommand(Ms("0x1"))}}const Os=["commandParams","value","TrackChangesEditing","registerElementLabel","commandName","*Remove format:* %0","getSelectedBlocks","name","forceValue","blockName","change","ELEMENT_CODE_BLOCK","parent","format","locale","afterInit","enableCommand","registerDescriptionCallback","plugins","outdentCodeBlock","model","filter","markBlockFormat","language","_descriptionFactory","config","languages","editor","codeBlock","*Format:* %0","checkChild","selection","isLimit","find","get","indentCodeBlock","CodeBlock","label"];var Fs,Ps;Fs=Os,Ps=446,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x19")](){const t=this[Ds("0x25")];if(!t.plugins.has(Ds("0x8")))return;const e=t[Ds("0x1c")][Ds("0x6")](Ds("0xc")),n=t[Ds("0x18")],o=t[Ds("0x23")][Ds("0x6")](Ds("0x0"))[Ds("0x24")],s=t.commands[Ds("0x6")]("codeBlock");e[Ds("0x1a")](Ds("0x7")),e[Ds("0x1a")](Ds("0x1d")),e.enableCommand(Ds("0x0"),((n,r={})=>{const i=t[Ds("0x1e")],x=t.model.document[Ds("0x3")],a=r&&void 0!==r[Ds("0x12")]?r.forceValue:!s[Ds("0xb")];let c;r[Ds("0x21")]||(r.language=o[0][Ds("0x21")]),c=a?Array.from(x[Ds("0x10")]())[Ds("0x1f")]((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Ds("0x4")](e)&&n[Ds("0x2")](e[Ds("0x16")],Ds("0x0")));var e,n})):Array.from(x[Ds("0x10")]())[Ds("0x1f")]((t=>js(t)));const l=S(c,i);i[Ds("0x14")]((()=>{for(const t of l)e[Ds("0x20")](t,{commandName:Ds("0x0"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x13")})}))})),e[Ds("0x22")][Ds("0xd")](Ds("0x0"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Ds("0x22")][Ds("0x1b")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r[Ds("0xe")]){const t=r[Ds("0xa")][0][Ds("0x21")],s=e(o[Ds("0x5")]((e=>e[Ds("0x21")]===t))[Ds("0x9")]);return r[Ds("0xa")][0][Ds("0x12")]?{type:Ds("0x17"),content:Yo(n,Ds("0x1"),Yo(n,Ds("0x15"),1)+" ("+s+")")}:{type:Ds("0x17"),content:Yo(n,Ds("0xf"),Yo(n,Ds("0x15"),1))}}}))}}function js(t){return Ds("0x0")==t[Ds("0x11")]}const Us=["CommentsEditing","addCommentThread","get","editor","has","TrackChangesEditing","plugins"];var Gs,Hs;Gs=Us,Hs=230,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{afterInit(){const t=this[zs("0x4")];t[zs("0x0")][zs("0x5")](zs("0x1"))&&t[zs("0x0")][zs("0x3")](zs("0x6")).enableCommand(zs("0x2"))}}var Ws=n(181);const Ks=["forward","plugins","selection","enableCommand","mapper","getFirstRange","data","remove","document","options","unit","start","lock","high","end","buffer","model","createSelection","requires","enqueueChange","$graveyard","showSuggestionHighlights","rootName","commands","markerNameToElements","downcastDispatcher","TrackChangesEditing","unlock","get","deleteForward","createRange","batch","addMarker:suggestion:deletion","modifySelection"];var qs,Xs;qs=Ks,Xs=196,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x1a")](){return[Ws.Delete]}init(){const t=this.editor,e=t[$s("0x9")].get($s("0x0"));e.enableCommand("delete");const n=t[$s("0x1f")][$s("0x2")]("deleteForward");e[$s("0xb")]($s("0x3"),((e,o={})=>{const s=t.model[$s("0x19")](t[$s("0x18")][$s("0x10")][$s("0xa")]);s.isCollapsed&&t.model[$s("0x7")](s,{direction:$s("0x8"),unit:o[$s("0x12")]});const r=s[$s("0xd")](),x=i.LiveRange.fromRange(r);let a;e(o),a=$s("0x1c")==x.root[$s("0x1e")]?t[$s("0x18")][$s("0x4")](r[$s("0x13")]):t[$s("0x18")][$s("0x4")](x.start,x[$s("0x16")]),x.detach(),t[$s("0x18")][$s("0x1b")](n[$s("0x17")][$s("0x5")],(t=>{n[$s("0x17")][$s("0x14")](),t.setSelection(t[$s("0x4")](a[$s("0x16")])),n.buffer[$s("0x1")]()}))})),t.editing[$s("0x21")].on("addMarker:suggestion:deletion",hs(t,"merge"),{priority:$s("0x15")}),t[$s("0xe")][$s("0x21")].on($s("0x6"),((e,n,o)=>{o[$s("0x11")][$s("0x1d")]&&hs(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"}),t.editing[$s("0x21")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0xc")][$s("0x20")](e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0xc")].unbindElementFromMarkerName(t,e.markerName),n.writer[$s("0xf")](t))}),{priority:$s("0x15")})}}const Qs=["has","_suggestionFactory","numberedList","parent","listType","forceValue","toUpperCase","DocumentListEditing","value","before","commandName","*Merge:* %0","editor","refresh","ELEMENT_NUMBERED_LIST","plugins","TrackChangesEditing","*Change to:* %0","ELEMENT_","hasAttribute","detach","nextSibling","model","indentList","createPositionAt","start","commands","markBlockFormat","registerDescriptionCallback","splitListItemAfter","splitListItemBefore","afterInit","fromRange","documentList","change","getFirstRange","listIndent","createRange","previousSibling","findIndex","ELEMENT_BULLETED_LIST","outdentList","nodeAfter","*Outdent:* %0","*Format:* remove from %0","mergeListItemForward","from","getAttribute","get","getSelectedBlocks","registerElementLabel","bulletedList","isObject","multipleBlocks","enableCommand","push","listItemId","commandParams","_descriptionFactory","setSelection","accept","_LIST","next","selection","*Format:* insert into %0","after","schema","isFirstBlockOfListItem","mergeListItemBackward","end","format","document","markMultiRangeBlockFormat","expandListBlocksToCompleteList","length","registerCustomCallback","ELEMENT_LIST_ITEM","execute"];var Zs,Ys;Zs=Qs,Ys=496,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x3")](){const t=this[tr("0x3e")];if(!t[tr("0x41")][tr("0x32")](tr("0x39")))return;const e=t.locale,n=t[tr("0x41")].get(tr("0x42")),o=t.plugins[tr("0x14")]("DocumentListUtils");function s(e){return()=>{const s=t.commands[tr("0x14")](e);let r=Array[tr("0x12")](t.model[tr("0x2b")][tr("0x23")][tr("0x15")]());if(a(e)){r=o[tr("0x2d")](r);const t=[];for(const e of r)o[tr("0x27")](e)&&t[tr("0x1b")](e);r=t}t.model[tr("0x6")]((()=>{n[tr("0x2c")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x3a")]}],formatGroupId:tr("0x36")},[],tr("0x5"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x12")](t);const n=e[tr("0xb")]((t=>!t[tr("0x45")](tr("0x1c"))));return n>-1&&(e=e.slice(0,n)),e}(t.model[tr("0x2b")][tr("0x23")][tr("0x15")]()),s=o[o[tr("0x2e")]-1],r=t.model[tr("0x26")][tr("0x18")](s)?tr("0x25"):tr("0x29"),i=t[tr("0x48")][tr("0x9")](t[tr("0x48")][tr("0x4a")](o[0],tr("0x3b")),t[tr("0x48")][tr("0x4a")](s,r));t[tr("0x48")][tr("0x6")]((()=>{n[tr("0x4d")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x36")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x47")];for(;t&&t[tr("0x13")](tr("0x8"))>n.getAttribute(tr("0x8"));)e.add(t),t=t[tr("0x47")]}return Array[tr("0x12")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x48")][tr("0x2b")].selection.getSelectedBlocks()[tr("0x22")]()[tr("0x3a")],s=t.model[tr("0x4a")](o,tr("0x3b")),r=t[tr("0x48")][tr("0x4a")](o,0),i=t[tr("0x48")].createRange(s,r);t[tr("0x48")][tr("0x6")]((()=>{n[tr("0x4d")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x4c")].get(tr("0x17"))[tr("0x3a")],o=t[tr("0x4c")].get(tr("0x34"))[tr("0x3a")];return tr("0x34")===e?n:o}n[tr("0x1a")](tr("0x34"),s("numberedList")),n[tr("0x1a")](tr("0x17"),s("bulletedList")),n[tr("0x1a")](tr("0x49"),r(tr("0x49"))),n[tr("0x1a")](tr("0xd"),r(tr("0xd"))),n.enableCommand(tr("0x1"),x(tr("0x1"))),n[tr("0x1a")](tr("0x2"),x(tr("0x2"))),n[tr("0x1e")][tr("0x16")]((function(e){const n=!t.model[tr("0x26")][tr("0x18")](e),o=e[tr("0xa")],s=e[tr("0x47")],r=e[tr("0x13")](tr("0x1c")),i=!o||o.getAttribute(tr("0x1c"))!==r,x=!s||s.getAttribute(tr("0x1c"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x30"),t))),n._descriptionFactory[tr("0x0")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x3c")]){case tr("0x17"):r=n[tr("0x1d")][0][tr("0x37")],i=a(n.commandName),o=tr(r?"0x24":"0x10"),i&&(o=tr("0x43")),s={type:tr("0x2a"),content:Yo(e,o,Yo(e,tr("0xc")))};break;case tr("0x34"):r=n[tr("0x1d")][0][tr("0x37")],i=a(n[tr("0x3c")]),o=tr(r?"0x24":"0x10"),i&&(o=tr("0x43")),s={type:tr("0x2a"),content:Yo(e,o,Yo(e,tr("0x40")))};break;case tr("0x49"):o="*Indent:* %0",s={type:"format",content:Yo(e,o,Yo(e,tr("0x30")))};break;case tr("0xd"):o=function(t){const e=t[tr("0x7")]();let n=e[tr("0x4b")][tr("0xe")];for(;n&&e.containsItem(n);){if(n[tr("0x13")](tr("0x8"))>0)return!1;n=n[tr("0x47")]}return!0}(t)?Yo(e,tr("0x10"),Yo(e,function(t){const e=t[tr("0x7")]().start[tr("0xe")];return tr("0x44")+e[tr("0x13")](tr("0x36"))[tr("0x38")]()+tr("0x21")}(t))):Yo(e,tr("0xf"),Yo(e,tr("0x30"))),s={type:tr("0x2a"),content:o};break;case tr("0x28"):case tr("0x11"):!1===n[tr("0x19")]&&(o=tr("0x3d"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x30")))})}return s})),n[tr("0x33")][tr("0x2f")]("formatBlock",tr("0x5"),tr("0x20"),(function(e,n){const o=[];for(let n of e)n[tr("0x4b")].nodeAfter===n[tr("0x29")][tr("0x35")]&&(n=t[tr("0x48")][tr("0x9")](t[tr("0x48")].createPositionAt(n[tr("0x4b")].nodeAfter,0))),o.push(n);t[tr("0x48")][tr("0x6")]((e=>{const s=t[tr("0x48")][tr("0x2b")].selection,r=Array[tr("0x12")](s.getRanges()).map((t=>i.LiveRange[tr("0x4")](t)));e[tr("0x1f")](o),t[tr("0x4c")][tr("0x14")](n[tr("0x3c")])[tr("0x3f")](),n[tr("0x1d")].push({forceDefaultExecution:!0}),t[tr("0x31")](n.commandName,...n.commandParams),e[tr("0x1f")](r);for(const t of r)t[tr("0x46")]()}))}))}}var nr=n(331);const or=["downcastDispatcher","requires","init","addMarker:suggestion:insertion","get","createRange","editing","options","parent","model","markerName","unbindElementFromMarkerName","commands","high","mapper","markInsertion","selection","TrackChangesEditing","document","plugins","ck-suggestion-marker-split","markerNameToElements","afterExecute","removeMarker:suggestion:insertion","createPositionAt","enter","end","getFirstPosition","writer","fromRange","editor","hasClass","data","setSelection","enterBlock","split"];var sr,rr;sr=or,rr=330,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x1f")](){return[nr.Enter]}[ir("0x20")](){const t=this[ir("0x18")],e=t[ir("0xd")][ir("0x22")](ir("0xb")),n=t[ir("0x6")][ir("0x22")](ir("0x13"));e.enableCommand(ir("0x13"),(()=>{t.model.change((o=>{const s=t[ir("0x3")][ir("0xc")][ir("0xa")],r=s[ir("0x15")](),x=i.LiveRange[ir("0x17")](s.getFirstRange());if(n[ir("0x1c")](o)){const n=t.model[ir("0x12")](r[ir("0x2")].nextSibling,0),s=o[ir("0x23")](r,n);e[ir("0x9")](s)}else o[ir("0x1b")](o[ir("0x23")](x[ir("0x14")]));x.detach(),n.fire(ir("0x10"),{writer:o})}))})),t.editing.downcastDispatcher.on(ir("0x21"),hs(t,"split"),{priority:ir("0x7")}),t[ir("0x0")][ir("0x1e")].on(ir("0x11"),((t,e,n)=>{const o=n.mapper[ir("0xf")](e[ir("0x4")]);if(o)for(const t of o)t[ir("0x19")](ir("0xe"))&&(n[ir("0x8")][ir("0x5")](t,e[ir("0x4")]),n[ir("0x16")].remove(t))}),{priority:ir("0x7")}),t[ir("0x1a")][ir("0x1e")].on(ir("0x21"),((e,n,o)=>{o[ir("0x1")].showSuggestionHighlights&&hs(t,ir("0x1d"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0x7")})}}const ar=["plugins","get","filter","markers","suggestion:deletion","model","string","createRange","getRange","FindAndReplaceUtils","handleFindCommand","FindAndReplaceEditing","findByTextCallback","findNext","createPositionAt","_isInDeletionRange","getIntersection","enableCommand","find","getMarkersGroup","item","editor","TrackChangesEditing","replace"];var cr,lr;cr=ar,lr=283,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this.editor.plugins.has(dr("0x10")))return;const t=this[dr("0x2")][dr("0x5")][dr("0x6")](dr("0x3"));t[dr("0x16")](dr("0x17"),this[dr("0xf")].bind(this)),t[dr("0x16")](dr("0x12")),t[dr("0x16")]("findPrevious"),t[dr("0x16")](dr("0x4")),t[dr("0x16")]("replaceAll")}handleFindCommand(t,e,n={}){const o=this[dr("0x2")][dr("0x5")].get(dr("0xe"));void 0!==n&&t((t=>(dr("0xb")==typeof e?o[dr("0x11")](e,n):e)(t)[dr("0x7")]((e=>!1===this[dr("0x14")](e,t[dr("0x1")])))),n)}[dr("0x14")](t,e){const n=this[dr("0x2")][dr("0xa")][dr("0xc")](this[dr("0x2")][dr("0xa")].createPositionAt(e,t.start),this[dr("0x2")][dr("0xa")][dr("0x13")](e,t.end));for(const t of this[dr("0x2")][dr("0xa")][dr("0x8")][dr("0x0")](dr("0x9")))if(null!==n[dr("0x15")](t[dr("0xd")]()))return!0;return!1}}const gr=["_descriptionFactory","fontFamily","_enableCommand","FontFamilyEditing","value","isCollapsed","fontBackgroundColor","markInlineFormat","label","afterInit","plugins","*Reset font background color*","change","title","getRanges","fontColor.colors","config","trim","selection","FontSizeEditing","editor","fontSize.options","normalizeSizeOptions","*Set font background color:* %0","*Set font family:* %0","FontColorEditing","TrackChangesEditing","from","locale","format","registerDescriptionCallback","document","model","*Reset font size*","*Set font color:* %0","*Set font size:* %0","commandName","toLowerCase","commandParams","FontBackgroundColorEditing","fontSize","find","get","enableCommand","has"];var mr,fr;mr=gr,fr=217,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1b"),commandName:hr("0x3")},{pluginName:hr("0xb"),commandName:hr("0x9")},{pluginName:hr("0x21"),commandName:"fontColor"},{pluginName:hr("0x2"),commandName:hr("0xe")}];class br extends t.Plugin{[hr("0x11")](){const t=this.editor[hr("0x24")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x1c")][hr("0x12")][hr("0x7")](t)&&this[hr("0xa")](e);this[hr("0x1c")][hr("0x12")][hr("0x5")]("TrackChangesEditing")[hr("0x8")][hr("0x26")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x3")==o.commandName){const e=o[hr("0x1")][0].value;if(e){const o=n(this[hr("0x1c")].plugins[hr("0x5")]("FontSize")[hr("0x1e")](this[hr("0x1c")][hr("0x18")][hr("0x5")](hr("0x1d")))[hr("0x4")]((t=>t[hr("0x28")]==e))[hr("0x15")])[hr("0x0")]();return{type:hr("0x25"),content:Yo(t,hr("0x2b"),o)}}return{type:hr("0x25"),content:Yo(t,hr("0x29"))}}if(hr("0x9")==o[hr("0x2c")]){const e=o[hr("0x1")][0][hr("0xc")];return e?{type:hr("0x25"),content:Yo(t,hr("0x20"),e)}:{type:hr("0x25"),content:Yo(t,"*Reset font family*")}}if("fontColor"==o.commandName){const e=o[hr("0x1")][0][hr("0xc")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x1c")][hr("0x18")].get(hr("0x17")))[hr("0x4")]((t=>t[hr("0x28")]==e));let r=e,i="";return o&&(r=o[hr("0x10")],i=n(r)[hr("0x0")]()),{type:hr("0x25"),content:Yo(t,hr("0x2a"),i)[hr("0x19")](),color:{value:e,title:i||r}}}return{type:hr("0x25"),content:Yo(t,"*Reset font color*")}}if(hr("0xe")==o[hr("0x2c")]){const e=o[hr("0x1")][0][hr("0xc")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x1c")][hr("0x18")][hr("0x5")]("fontBackgroundColor.colors"))[hr("0x4")]((t=>t[hr("0x28")]==e));let r=e,i="";return o&&(r=o[hr("0x10")],i=n(r).toLowerCase()),{type:hr("0x25"),content:Yo(t,hr("0x1f"),i)[hr("0x19")](),color:{value:e,title:i||r}}}return{type:hr("0x25"),content:Yo(t,hr("0x13"))}}}}))}[hr("0xa")](t){const e=this[hr("0x1c")];e[hr("0x12")][hr("0x5")](hr("0x22"))[hr("0x6")](t,((n,o={})=>{const s=e[hr("0x28")][hr("0x27")][hr("0x1a")],r=o[hr("0xc")];s[hr("0xd")]?n(o):e[hr("0x28")][hr("0x14")]((()=>{const n=Array[hr("0x23")](s[hr("0x16")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x28")]);for(const o of n)e[hr("0x12")].get("TrackChangesEditing")[hr("0xf")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["fontSize.options","join","TrackChangesEditing","document","title","createRange","backward","*Set format to:* %0","label","plugins","isCollapsed","createSelection","FontSize","getLastPosition","format","registerDescriptionCallback","normalizeSizeOptions","entries","getAttributes","push","slice","commandParams","enableCommand","toUpperCase","change","fontBackgroundColor","pasteFormat","getAttributeProperties","markInlineFormat","boolean","charAt","modifySelection","fontColor","get","toLowerCase","*Remove all formatting*","editor","getSelectedBlocks","getRanges","locale","schema","split","commands","afterInit","copyFormat","getFirstPosition","selection","config","length","isBlock","fontColor.colors","find","word","getItems","from","model","commandName","fontSize"];var _r,Tr;_r=Er,Tr=158,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x1")](){const t=this[Cr("0x34")],n=t.model,o=n[Cr("0x13")][Cr("0x4")],s=t[Cr("0x19")].get(Cr("0x12")),r=t.locale,i=t[Cr("0x0")].get(Cr("0x2")),x=t[Cr("0x0")][Cr("0x31")]("pasteFormat");i&&x&&(s[Cr("0x26")]("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x28")]((()=>{const t=Array[Cr("0xc")](o[Cr("0x36")]()),r=o[Cr("0x1a")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x22")]()){const t=e[Cr("0x2b")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0x36")]())for(const t of e[Cr("0xb")]())!n[Cr("0x7")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x35")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x38")]))||0!==Object.keys(i)[Cr("0x6")])for(const t of r)s[Cr("0x2c")](t,{commandName:Cr("0x2a"),commandParams:[i]})}))})),s._descriptionFactory[Cr("0x1f")]((e=>{const{data:n}=e;if(n&&Cr("0x2a")===n[Cr("0xe")]){const e=[],o=n[Cr("0x25")][0];for(const[n,s]of Object[Cr("0x21")](o))e[Cr("0x23")](Ar(t,n,s));return e[Cr("0x6")]?{type:"format",content:Yo(r,Cr("0x17"),e[Cr("0x11")](", "))}:{type:Cr("0x1e"),content:Yo(r,Cr("0x33"))}}})),t[Cr("0x19")][Cr("0x31")](Cr("0x12"))[Cr("0x26")](Cr("0x2")))}}function kr(t,e){const n=t[Cr("0x1b")](e);t[Cr("0x2f")](n,{unit:Cr("0xa"),direction:Cr("0x16")});const o=n[Cr("0x3")]();t[Cr("0x2f")](n,{unit:"word",direction:"forward"});const s=n[Cr("0x1d")]();return t[Cr("0x15")](o,s)}function Ar(t,e,n){const o=t[Cr("0x37")].t,r=e[Cr("0x39")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0x2e")](0)[Cr("0x27")]()+r[Cr("0x24")](1))[Cr("0x32")]();if(Cr("0x2d")==typeof n)return i;if(Cr("0x30")===e||Cr("0x29")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x31")](Cr("0x8")))[Cr("0x9")]((t=>t[Cr("0xd")]==n));return i+" ("+(e?o(e[Cr("0x18")])[Cr("0x32")]():n)+")"}if(Cr("0xf")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x19")][Cr("0x31")](Cr("0x1c"))[Cr("0x20")](t[Cr("0x5")][Cr("0x31")](Cr("0x10")))[Cr("0x9")]((t=>t[Cr("0xd")]==n));return i+" ("+(e?o(e[Cr("0x14")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["has","document","from","value","match","plugins","getSelectedBlocks","enableCommand","title","formatBlock","*Change to:* %0","editor","config","model","format","blockName","registerDescriptionCallback","name","change","commandName","selection","paragraph","HeadingEditing","commandParams","TrackChangesEditing","markBlockFormat","filter","registerElementLabel","heading.options","locale","ELEMENT_HEADING_CUSTOM","find","heading"];var Rr,Sr;Rr=vr,Sr=109,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Ir("0x1")],e=t[Ir("0x13")],n=t[Ir("0x2")].get(Ir("0x12"));if(!t[Ir("0x1c")][Ir("0x17")](Ir("0xc")))return;const o=t[Ir("0x1c")].get(Ir("0xe"));o[Ir("0x1e")](Ir("0x16"),((e,n)=>{const s=n[Ir("0x1a")],r=Array[Ir("0x19")](this[Ir("0x1")][Ir("0x3")][Ir("0x18")][Ir("0xa")][Ir("0x1d")]())[Ir("0x10")]((t=>{return e=t,n=s,(o=this[Ir("0x1")][Ir("0x3")].schema).checkChild(e.parent,n)&&!o.isObject(e)&&e[Ir("0x7")]!=n;var e,n,o}));t[Ir("0x3")][Ir("0x8")]((()=>{for(const t of r)o[Ir("0xf")](t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x5")},fs(t))}))}));for(const t of n)Ir("0xb")!=t[Ir("0x3")]&&o._descriptionFactory[Ir("0x11")](t[Ir("0x3")],(e=>{const n=Nr(t[Ir("0x3")]);return null!==n?s(e,n):r(e,t[Ir("0x1f")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,Ir("0x14"),[t,n])}o._descriptionFactory[Ir("0x6")]((t=>{const{type:o,data:i}=t;if(Ir("0x20")==o&&i&&Ir("0x16")==i[Ir("0x9")]){const t=i[Ir("0xd")][0].value,o=Nr(t);if(null!==o)return{type:Ir("0x4"),content:Yo(e,Ir("0x0"),s(1,o))};const x=n[Ir("0x15")]((e=>e.model===t))[Ir("0x1f")];return{type:Ir("0x4"),content:Yo(e,Ir("0x0"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x1b")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["_descriptionFactory","model","commandParams","change","locale","highlight.options","editor","get","TrackChangesEditing","title","getLastMatchingPosition","FORMAT_HIGHLIGHT","markInlineFormat","selection","document","commandName","toLowerCase","hasAttribute","plugins","backward","formatInline","*Set highlight:* %0","highlight","push","getFirstPosition","item","format","*Remove highlight*","afterInit","has","getRanges","value"];var wr,Or;wr=Mr,Or=252,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x0")](){const t=this[Fr("0xa")];if(!t[Fr("0x16")][Fr("0x1")]("HighlightEditing"))return;const e=t[Fr("0x16")][Fr("0xb")](Fr("0xc"));e.enableCommand(Fr("0x1a"),((n,o={})=>{const s=t[Fr("0x5")][Fr("0x12")][Fr("0x11")],r=s.getAttribute(Fr("0x1a"));let i=o.value,x=[];if(s.isCollapsed){const e=s[Fr("0x1c")]();if(!s[Fr("0x15")](Fr("0x1a")))return void n(o);{const n=t=>t[Fr("0x1d")].getAttribute("highlight")===r,o=e[Fr("0xe")](n,{direction:Fr("0x17")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x5")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x2")]())i?x[Fr("0x1b")](e):x[Fr("0x1b")](...ms(Fr("0x1a"),e,t[Fr("0x5")]));t.model[Fr("0x7")]((()=>{for(const t of x)e[Fr("0x10")](t,{commandName:Fr("0x1a"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x8")];e[Fr("0x4")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Fr("0x18")==o&&s&&Fr("0x1a")==s[Fr("0x13")]){const e=n.t,o=s[Fr("0x6")][0][Fr("0x3")];if(o){const s=t.config[Fr("0xb")](Fr("0x9")).find((t=>t[Fr("0x5")]==o)),r=e(s.title)[Fr("0x14")]();return{type:Fr("0x1e"),content:Yo(n,Fr("0x19"),r),color:{value:s.color,title:s[Fr("0xd")]}}}return{type:"format",content:Yo(n,Fr("0x1f"),Yo(n,Fr("0xf")))}}}))}}const Dr=["conversion","plugins","enableCommand","editor","afterInit","for","dataDowncast","has","horizontalLine","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","HorizontalLineEditing","elementToStructure","high","_descriptionFactory","showSuggestionHighlights","createContainerElement","insert","registerElementLabel","div","TrackChangesEditing"];var Br,jr;Br=Dr,jr=304,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xf")](){const t=this[Ur("0xe")];if(!t[Ur("0xc")][Ur("0x12")](Ur("0x1")))return;t.plugins.get(Ur("0xa"))[Ur("0xd")](Ur("0x13"));const e=t[Ur("0xc")].get("TrackChangesEditing"),n=t.locale;e[Ur("0x4")][Ur("0x8")](Ur("0x13"),(t=>Yo(n,Ur("0x0"),t))),t[Ur("0xb")][Ur("0x10")](Ur("0x11"))[Ur("0x2")]({model:Ur("0x13"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x5")])return null;const o=e[Ur("0x6")](Ur("0x9")),s=e.createEmptyElement("hr");return e.addClass(Ur("0x14"),o),e[Ur("0x7")](e.createPositionAt(o,0),s),o},converterPriority:Ur("0x3")})}}const Hr=["format","_descriptionFactory","htmlEmbed","markBlockFormat","afterInit","registerElementLabel","TrackChangesEditing","change","value","HtmlEmbed","enableCommand","rawHtmlApi","*Change %0 content*","editing","selection","rawHtml","element","get","cancel","plugins","ELEMENT_HTML_EMBED","document","getAttribute","getSelectedElement","view","getCustomProperty"];var zr,Vr;zr=Hr,Vr=183,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Wr("0x3")](){const t=this.editor;if(!t[Wr("0x12")].has(Wr("0x8")))return;const e=t[Wr("0x12")][Wr("0x10")](Wr("0x5")),n=t.locale,o=t[Wr("0xc")][Wr("0x17")].document[Wr("0xd")];e[Wr("0x0")][Wr("0x4")](Wr("0xe"),(t=>Yo(n,Wr("0x13"),t))),t.plugins[Wr("0x10")](Wr("0x5"))[Wr("0x9")]("htmlEmbed",((n,s)=>{const r=t.model,i=r[Wr("0x14")][Wr("0xd")];r[Wr("0x6")]((()=>{const t=function(t){const e=t[Wr("0x16")]();return e&&e.is(Wr("0xf"),Wr("0xe"))?t[Wr("0x16")]():null}(i);if(!t)return void n(null);const r=t[Wr("0x15")](Wr("0x7"))||"";void 0!==s&&s!==r&&(e[Wr("0x2")](t,{commandName:Wr("0x1"),commandParams:[s]}),o[Wr("0x16")]()[Wr("0x18")](Wr("0xa"))[Wr("0x11")]())}))})),e[Wr("0x0")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e.commandName){const t=Yo(n,Wr("0x13"));return{type:Wr("0x19"),content:Yo(n,Wr("0xb"),t)}}}))}}const qr=["locale","commandReversedParams","ImageStyleEditing","isEqual","join","imageStylePreApply","resizeImage","alt","registerPostFixer","*Format:* %0","suggestion","width","imageInline","toLowerCase","author","isInContent","discard","newRange","accept","removeObject","filter","head","getSuggestions","ImageResize","Inline image to block image","isInlineImage","name","createRange","convertBlockImageToInline","ImageUtils","ImageCaptionEditing","refresh","_findSuggestions","isOwn","type","previous","subType","markInsertion","convertInlineImageToBlock","getContainedElement","from","_splitMarkerName","imageTypeInline","getSuggestion","*Remove image text alternative*","end","*Reset image width*","registerDescriptionCallback","value","plugins","_descriptionFactory","ELEMENT_CAPTION","commandName","editor","isCollapsed","imageTypeBlock","document","schema","imageStylePostApply","ImageEditing","ImageInlineEditing","get","Users","ImageBlockEditing","length","selection","ELEMENT_IMAGE","isIntersecting","_suggestionFactory","discardSuggestion","insertImage","deletion","getNearestSelectionRange","markBlockFormat","normalizedStyles","find","side","model","toNext","isBlockImage","nodeAfter","title","registerCustomCallback","has","getChangedMarkers","insertion","imageStyle","getSuggestionCallback","enableCommand","imageCaption","differ","getCaptionFromImageModelElement","forEach","change","format","getFirstRange","chain","forceDefaultExecution","imageBlock","next","getClosestSelectedImageElement","findIndex","markInlineFormat","createRangeOn","ImageCaptionUtils","shouldConvertImageType","imageTextAlternative","formatBlock","Block image to inline image","caption","hasAttribute","start","commandParams","*Set image text alternative:* %0","formatInline","markDeletion","registerElementLabel","TrackChangesEditing","getAttribute","toPrevious","ImageTextAlternativeEditing","fromPosition"];var Xr,$r;Xr=qr,$r=407,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0xc")];if(!t[Jr("0x8")].has(Jr("0x12")))return;const n=t[Jr("0x8")].get(Jr("0x4c")),o=t.plugins[Jr("0x14")](Jr("0x6e")),s={},r=t[Jr("0x51")];if(n[Jr("0x2f")](Jr("0x1d")),n[Jr("0x9")][Jr("0x4b")](Jr("0x39"),(t=>Yo(r,Jr("0x19"),t))),n[Jr("0x9")].registerElementLabel(Jr("0x5d"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n._descriptionFactory[Jr("0x4b")](Jr("0x44"),(()=>Yo(r,Jr("0xa")))),t[Jr("0x8")][Jr("0x2a")]("ImageUploadEditing")&&n[Jr("0x2f")]("uploadImage"),t.plugins[Jr("0x2a")](Jr("0x16"))&&t.plugins.has(Jr("0x13"))&&(n[Jr("0x2f")](Jr("0x1"),((e,s)=>{const r=o[Jr("0x3b")](t.model[Jr("0xf")].selection);t[Jr("0x24")][Jr("0x34")]((()=>{n[Jr("0x20")](r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0x6d"))}))})),n[Jr("0x2f")](Jr("0xe"),((e,s)=>{t[Jr("0x24")][Jr("0x34")]((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x24")][Jr("0xf")].selection),a=r[Jr("0x3e")](x);const c=i.LivePosition[Jr("0x50")](a.start,Jr("0x4e")),l=i.LivePosition.fromPosition(a[Jr("0x4")],Jr("0x25"));n[Jr("0x38")]((()=>e(s))),x=o[Jr("0x3b")](t[Jr("0x24")].document[Jr("0x18")]),a=r[Jr("0x3e")](x);const d=r[Jr("0x6c")](c,l);c.detach(),l.detach(),n[Jr("0x20")](x,{commandName:"imageTypeInline",commandParams:[]},[],Jr("0x77")),d.start.isBefore(a[Jr("0x46")])&&n[Jr("0x76")](r[Jr("0x6c")](d[Jr("0x46")],a[Jr("0x46")]),Jr("0x77")),a.end.isBefore(d.end)&&n.markInsertion(r.createRange(a.end,d[Jr("0x4")]),"convertInlineImageToBlock")}))})),n[Jr("0x1b")][Jr("0x29")](Jr("0x42"),Jr("0x77"),Jr("0x55"),(()=>{})),n._suggestionFactory[Jr("0x29")](Jr("0x42"),"convertInlineImageToBlock","accept",(()=>{})),n._suggestionFactory[Jr("0x29")](Jr("0x42"),Jr("0x77"),"discard",n[Jr("0x1b")][Jr("0x2e")]("formatBlock","",Jr("0x63"))),n[Jr("0x1b")][Jr("0x29")]("insertion",Jr("0x77"),Jr("0x55"),(()=>{})),n[Jr("0x1b")].registerCustomCallback("insertion","convertInlineImageToBlock",Jr("0x61"),(([e])=>{const o=n._suggestionFactory[Jr("0x2e")](Jr("0x2c"),"",Jr("0x61"));let s=e[Jr("0x46")],r=e[Jr("0x4")];const i=t[Jr("0x24")][Jr("0x10")].getNearestSelectionRange(s,"backward"),x=t.model.schema[Jr("0x1f")](r,"forward");i[Jr("0xd")]&&(s=i[Jr("0x46")]),x[Jr("0xd")]&&(r=x[Jr("0x4")]),o([t[Jr("0x24")][Jr("0x6c")](s,r)])})),n[Jr("0x1b")][Jr("0x29")](Jr("0x42"),"convertInlineImageToBlock",Jr("0x37"),c),n[Jr("0x1b")][Jr("0x29")]("insertion",Jr("0x77"),"chain",c)),t[Jr("0x8")][Jr("0x2a")](Jr("0x6f"))&&(n[Jr("0x2f")]("toggleImageCaption",((e,s)=>{const r=t[Jr("0x8")][Jr("0x14")](Jr("0x3f"));let i=o[Jr("0x3b")](t[Jr("0x24")][Jr("0xf")].selection),x=r.getCaptionFromImageModelElement(i);t.model[Jr("0x34")]((()=>{if(x)return void n[Jr("0x4a")](t.model[Jr("0x3e")](x));const a=o[Jr("0x26")](i);e(s),i=o[Jr("0x3b")](t[Jr("0x24")].document[Jr("0x18")]),x=r[Jr("0x32")](i),n[Jr("0x76")](t[Jr("0x24")][Jr("0x3e")](x),a?null:"imageCaption")}))})),n[Jr("0x1b")].registerCustomCallback(Jr("0x2c"),Jr("0x30"),Jr("0x37"),c)),t[Jr("0x8")].has("ImageStyleEditing")){n[Jr("0x2f")]("imageStyle",((s,r)=>{const i=t.plugins[Jr("0x14")](Jr("0x15")).me,x=t.commands[Jr("0x14")](Jr("0x2d"));let a=o[Jr("0x3b")](t.model[Jr("0xf")][Jr("0x18")]),c=t[Jr("0x24")].createRangeOn(a),l=x.value;if(l==r[Jr("0x7")])return;const d={commandName:Jr("0x2d"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x24")][Jr("0x34")]((()=>{if(n[Jr("0x67")]()[Jr("0x65")]((t=>t[Jr("0x60")]&&i==t[Jr("0x5f")]&&("formatBlock"==t.type||Jr("0x49")==t[Jr("0x73")])&&(Jr("0x56")==t[Jr("0x75")]||Jr("0x11")==t[Jr("0x75")])&&t[Jr("0x36")]()[Jr("0x54")](c)))[Jr("0x33")]((t=>n[Jr("0x1c")](t[Jr("0x66")]))),a=o[Jr("0x3b")](t[Jr("0x24")][Jr("0xf")][Jr("0x18")]),c=t[Jr("0x24")][Jr("0x3e")](a),x[Jr("0x70")](),t.commands[Jr("0x14")](Jr("0x1"))[Jr("0x70")](),t.commands[Jr("0x14")](Jr("0xe"))[Jr("0x70")](),l=x.value,l!=r[Jr("0x7")])return o[Jr("0x6a")](a)&&x[Jr("0x40")](r.value,a)?(s(r),a=o[Jr("0x3b")](t.model[Jr("0xf")][Jr("0x18")]),void n[Jr("0x20")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x56"))):void(o[Jr("0x26")](a)?n.markBlockFormat(a,d,[],Jr("0x11")):n[Jr("0x3d")](c,d,Jr("0x11")))}))}));for(const e of t[Jr("0x8")][Jr("0x14")](Jr("0x53"))[Jr("0x21")])s[e[Jr("0x6b")]]=e[Jr("0x28")][Jr("0x5e")]();n[Jr("0x1b")][Jr("0x29")](Jr("0x42"),Jr("0x56"),Jr("0x55"),(()=>{})),n[Jr("0x1b")].registerCustomCallback(Jr("0x42"),Jr("0x11"),Jr("0x55"),(()=>{})),n[Jr("0x1b")][Jr("0x29")]("formatInline",Jr("0x11"),Jr("0x55"),(()=>{})),n[Jr("0x1b")][Jr("0x29")](Jr("0x42"),Jr("0x56"),Jr("0x63"),(()=>{})),n[Jr("0x1b")].registerCustomCallback(Jr("0x42"),Jr("0x56"),Jr("0x61"),((t,e)=>{n[Jr("0x1b")][Jr("0x2e")]("formatBlock","","accept")(t,{commandName:e.commandName,commandParams:e[Jr("0x52")]})})),n._suggestionFactory[Jr("0x29")](Jr("0x42"),Jr("0x56"),"chain",c)}const x=[{type:Jr("0x42"),subType:Jr("0x56")},{type:Jr("0x2c"),subType:Jr("0x30")},{type:Jr("0x42"),subType:Jr("0x77")},{type:Jr("0x2c"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x3c")]((({type:e,subType:n})=>t[Jr("0x73")]==e&&t[Jr("0x75")]==n)),r=x.findIndex((({type:t,subType:n})=>e.type==t&&e[Jr("0x75")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x36")]();if((0==s||1==s)&&2==r&&i[Jr("0x1a")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x71")](i,Jr("0x2c")).filter((({suggestion:t,meta:e})=>e[Jr("0x72")]&&Jr("0x77")==t[Jr("0x75")]));if(t[Jr("0x17")]>1&&a[Jr("0x4")][Jr("0x54")](i[Jr("0x46")]))return!0;if(1==t[Jr("0x17")]&&(i[Jr("0x46")].isEqual(a.end)||i[Jr("0x4")][Jr("0x54")](a[Jr("0x46")])))return!0}if(3==s&&3==r&&i[Jr("0x46")].isBefore(a.start)){const t=i[Jr("0x4")][Jr("0x27")],e=a.start.nodeBefore;return o[Jr("0x26")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x24")].document[Jr("0x59")]((()=>{let e=!1;const s=Array[Jr("0x79")](t[Jr("0x24")][Jr("0xf")][Jr("0x31")][Jr("0x2b")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x0")](t);if(Jr("0x5b")==s&&n.hasSuggestion(a)){if(Jr("0x42")==i&&(Jr("0x56")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0x62")]){const s=t[Jr("0x36")]()[Jr("0x78")]();if(o[Jr("0x26")](s))continue;n[Jr("0x1c")](t),e=!0}}if(Jr("0x2c")==i&&Jr("0x30")==x&&!r[Jr("0x62")]){const t=n[Jr("0x2")](a);t[Jr("0x3a")]&&t[Jr("0x3a")][Jr("0x60")]&&(n[Jr("0x1c")](t[Jr("0x3a")]),e=!0)}}}return e})),t[Jr("0x8")].has(Jr("0x68"))&&n[Jr("0x2f")](Jr("0x57"),((e,s)=>{const r=o[Jr("0x3b")](t[Jr("0x24")][Jr("0xf")][Jr("0x18")]);r.getAttribute("width")!=s[Jr("0x5c")]&&t[Jr("0x24")][Jr("0x34")]((()=>{n[Jr("0x20")](r,{commandName:Jr("0x57"),commandParams:[s]})}))})),t[Jr("0x8")][Jr("0x2a")](Jr("0x4f"))&&n.enableCommand(Jr("0x41"),((e,s)=>{const r=o.getClosestSelectedImageElement(t.model[Jr("0xf")][Jr("0x18")]);(r[Jr("0x45")](Jr("0x58"))?r[Jr("0x4d")]("alt"):"")!=s.newValue&&t[Jr("0x24")].change((()=>{n[Jr("0x20")](r,{commandName:Jr("0x41"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x6")]((t=>{if(x[Jr("0x22")]((({type:e,subType:n})=>t[Jr("0x73")]==e&&t.subType==n)))return t[Jr("0x74")]?{}:void 0})),n._descriptionFactory[Jr("0x6")]((t=>{if(Jr("0x2c")==t.type||Jr("0x1e")==t[Jr("0x73")]){const e=t[Jr("0x78")]();if(e&&e.is("element","caption"))return{type:"insertion"==t[Jr("0x73")]?"addObject":Jr("0x64"),element:e,quantity:1}}})),n[Jr("0x9")].registerDescriptionCallback((t=>Jr("0x42")==t[Jr("0x73")]&&Jr("0x77")==t[Jr("0x75")]?{type:"format",content:Jr("0x69")}:"formatBlock"==t[Jr("0x73")]&&Jr("0x6d")==t[Jr("0x75")]?{type:Jr("0x35"),content:Jr("0x43")}:void 0)),n._descriptionFactory[Jr("0x6")]((t=>{const{data:e}=t;if(e){if(Jr("0x2d")==e.commandName){const t=e[Jr("0x47")][0][Jr("0x7")];return n=Jr("0x23")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x35"),content:Yo(r,Jr("0x5a"),n)}}if("imageTextAlternative"==e[Jr("0xb")]){const t=e[Jr("0x47")][0].newValue;return t?{type:Jr("0x35"),content:Yo(r,Jr("0x48"),'"'+t+'"')}:{type:Jr("0x35"),content:Yo(r,Jr("0x3"))}}if(Jr("0x57")==e[Jr("0xb")]){const t=e[Jr("0x47")][0][Jr("0x5c")];return t?{type:Jr("0x35"),content:Yo(r,"*Set image width:* %0",t)}:{type:"format",content:Yo(r,Jr("0x5"))}}}var n}))}}const Zr=["document","editor","registerCustomCallback","formatBlock","TrackChangesEditing","src","getSuggestions","_suggestionFactory","*Format:* replace image URL","getAttribute","plugins","ImageEditing","getSuggestionCallback","handleSuggestionDescription","replaceImageSource","discard","get","author","markBlockFormat","afterInit","source","commandParams","selection","Users","model","enableCommand","handleReplaceImageCommand","subType","accept"];var Yr,ti;Yr=Zr,ti=174,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x13")](){if(!this[ei("0x1")][ei("0xa")].has(ei("0xb")))return;const t=this[ei("0x1")][ei("0xa")][ei("0x10")](ei("0x4"));t[ei("0x19")](ei("0xe"),((t,e)=>this[ei("0x1a")](t,e))),t[ei("0x7")][ei("0x2")]("formatBlock",ei("0xe"),ei("0x1c"),t._suggestionFactory[ei("0xc")](ei("0x3"),null,ei("0xf"))),t[ei("0x7")][ei("0x2")](ei("0x3"),"replaceImageSource","discard",t._suggestionFactory[ei("0xc")](ei("0x3"),null,ei("0x1c"))),t._descriptionFactory.registerDescriptionCallback((t=>this[ei("0xd")](t)))}[ei("0x1a")](t,e){const n=this[ei("0x1")][ei("0xa")][ei("0x10")](ei("0x4")),o=this[ei("0x1")].model[ei("0x0")][ei("0x16")].getSelectedElement();this[ei("0x1")][ei("0x18")].change((()=>{let s=o[ei("0x9")](ei("0x5"));const r=this.editor[ei("0xa")].get(ei("0x17")).me;for(const t of n[ei("0x6")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0xe")===t[ei("0x1b")]&&e===o){t[ei("0x11")]!==r&&t.discard(),s=t.data[ei("0x15")][0][ei("0x14")];break}}t(e),n[ei("0x12")](o,{commandName:ei("0xe"),commandParams:[{source:s}]},[],ei("0xe"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"replaceImageSource"===e.commandName){const t=ei("0x8");return{type:"format",content:Yo(this[ei("0x1")].locale,t)}}}}const oi=["get","TrackChangesEditing","trackChanges","lowest","forEach","commands","editor","enableCommand","collaboration_features","execute","_handleImportedData","plugins","bind","afterInit","importWord","_trackChangesValueDuringImport","dataInsert","track_changes","_trackChangesExecuted","value","listenTo","Users"];var si,ri;si=oi,ri=139,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x8")]=!1,this._trackChangesExecuted=!1}[ii("0x6")](){const t=this.editor,e=t.commands[ii("0xf")](ii("0x7")),n=t[ii("0x14")].get("trackChanges");e&&(e.on(ii("0x2"),((t,[,e])=>{this[ii("0x8")]=n[ii("0xc")],e[ii("0x1")][ii("0xa")]=!this[ii("0x8")]}),{priority:"high"}),this.listenTo(e,ii("0x9"),this[ii("0x3")][ii("0x5")](this)),this[ii("0xd")](e,ii("0x9"),(()=>{this._trackChangesExecuted&&(n[ii("0x2")](),this[ii("0xb")]=!1)}),{priority:ii("0x12")}),t.plugins[ii("0xf")](ii("0x10"))[ii("0x0")](ii("0x7")))}[ii("0x3")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x14")].get(ii("0x11")),s=o[ii("0xc")];this._trackChangesValueDuringImport!==s&&(o[ii("0x2")](),this._trackChangesExecuted=!0),n&&n[ii("0x13")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0x4")].get(ii("0xe")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x15")][ii("0x4")][ii("0xf")](ii("0x10"))._setSuggestionData(s)}))}}const ai=["plugins","filter","blockIndent","schema","*Outdent:* %0","getSelectedBlocks","checkAttribute","document","enableCommand","TrackChangesEditing","getItems","editor","_descriptionFactory","registerDescriptionCallback","get","markBlockFormat","outdent","from","commandName","IndentEditing","getItemLabel","change","format","afterInit","indentBlock","outdentBlock","*Indent:* %0","model","IndentBlock"];var ci,li;ci=ai,li=235,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x14")](){const t=this[di("0x8")],e=t[di("0x1a")][di("0xb")](di("0x6"));t[di("0x1a")].has(di("0x10"))&&(e[di("0x5")]("indent"),e[di("0x5")](di("0xd")));const n=t.locale;if(t.plugins.has(di("0x19"))){for(const n of[di("0x15"),di("0x16")])e[di("0x5")](n,(()=>{const o=Array[di("0xe")](this[di("0x8")][di("0x18")][di("0x4")].selection[di("0x2")]())[di("0x1b")]((t=>this[di("0x8")][di("0x18")][di("0x0")][di("0x3")](t,di("0x1c"))));t[di("0x18")][di("0x12")]((()=>{for(const t of o)e[di("0xc")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x15")})}))}));e._descriptionFactory[di("0xa")]((t=>{const{data:o}=t;if(!o)return;if(di("0x15")!=o.commandName&&di("0x16")!=o[di("0xf")])return;const s=t[di("0x7")]()[0],r=e[di("0x9")][di("0x11")](s);return di("0x15")==o[di("0xf")]?{type:"format",content:Yo(n,di("0x17"),r)}:di("0x16")==o[di("0xf")]?{type:di("0x13"),content:Yo(n,di("0x1"),r)}:void 0}))}}}var gi,mi,fi=["TrackChangesEditing","input","requires","plugins","get","enableCommand","editor"];gi=fi,mi=270,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x5")](){return[Ws.Input]}init(){this[hi("0x2")][hi("0x6")][hi("0x0")](hi("0x3"))[hi("0x1")](hi("0x4"))}}const bi=["_descriptionFactory","format","get","LinkEditing","commandParams","editor","linkHref","link","locale","*Set link:* %0","isCollapsed","hasAttribute","enableCommand","model","getRanges","afterInit","getFirstPosition","change","getFirstRange","unlink","commandName","TrackChangesEditing","markInlineFormat","plugins","selection","document"];var Ei,_i;Ei=bi,_i=413,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x12")](){const t=this[Ti("0x8")];if(!t[Ti("0x0")].has(Ti("0x6")))return;const e=t[Ti("0x0")][Ti("0x5")](Ti("0x18"));e.enableCommand(Ti("0xa"),((n,o)=>{const s=t[Ti("0x10")][Ti("0x2")][Ti("0x1")];let r=[];if(s[Ti("0xd")]){if(!s[Ti("0xe")](Ti("0x9")))return void n(o);{const e=(0,Ws.findAttributeRange)(s[Ti("0x13")](),Ti("0x9"),s.getAttribute(Ti("0x9")),t[Ti("0x10")]);r=[e]}}else r=Array.from(s[Ti("0x11")]());t[Ti("0x10")][Ti("0x14")]((()=>{for(const t of r)e[Ti("0x19")](t,{commandName:Ti("0xa"),commandParams:[o]})}))})),e[Ti("0xf")](Ti("0x16"),(()=>{const n=this.editor[Ti("0x10")],o=n[Ti("0x2")].selection;n[Ti("0x14")]((()=>{let n=[];n=o.isCollapsed?[(0,Ws.findAttributeRange)(o.getFirstPosition(),Ti("0x9"),o.getAttribute(Ti("0x9")),t.model)]:ms("linkHref",o[Ti("0x15")](),t[Ti("0x10")]);for(const t of n)e[Ti("0x19")](t,{commandName:Ti("0x16"),commandParams:[]})}))})),e[Ti("0x3")].registerDescriptionCallback((e=>{const{data:n}=e,o=t[Ti("0xb")];if(n){if("link"==n[Ti("0x17")]){const t=n[Ti("0x7")][0];return{type:Ti("0x4"),content:Yo(o,Ti("0xc"),'"'+t+'"')}}return Ti("0x16")==n[Ti("0x17")]?{type:"format",content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["commands","getAttribute","todoList","markBlockFormat","replace","indentList","name","enableCommand","*Indent:* %0","afterInit","isObject","paragraph","forceValue","element","listIndent","ELEMENT_BULLETED_LIST","bulletedList","get","parent","commandName","execute","value","todo","from","numbered","createRange","todoListChecked","_descriptionFactory","push","plugins","filter","end","listItem","has","ELEMENT_TODO_LIST","findIndex","getSelectedBlocks","List","commandParams","ELEMENT_LIST_ITEM","schema","createPositionAt","blockName","nextSibling","outdentList","*Check item*","format","*Outdent:* %0","bulleted","model","previousSibling","*Uncheck item*","ListEditing","checkTodoList","TodoListEditing","editor","_selectedElements","locale","TrackChangesEditing","registerDescriptionCallback","change","selection","slice","checkChild","numberedList","add"];var ki,Ai;ki=yi,Ai=435,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x24")](){const t=this[vi("0x10")],e=t[vi("0x12")];if(!t.plugins.has(vi("0xd")))return;const n=t[vi("0x38")][vi("0x2c")](vi("0x13")),o=t[vi("0x38")][vi("0x3c")](vi("0xf"));function s(e){return()=>{const o=t[vi("0xa")].document[vi("0x16")],s=t[vi("0x1b")][vi("0x2c")](e);if(s[vi("0x30")])return void t[vi("0x2f")](vi("0x26"),{});const r=e[vi("0x17")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[vi("0x18")](e[vi("0x2d")],vi("0x3b"))&&!o[vi("0x25")](e);var e,o}));o=o[vi("0x39")]((t=>!t.is(vi("0x28"),vi("0x3b"))||t[vi("0x1c")]("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0x28"),"listItem")?s[vi("0x1a")](Si(t)):s[vi("0x1a")](t);return Array[vi("0x32")](s)}(o[vi("0x3f")](),r,t[vi("0xa")][vi("0x1")]);t[vi("0xa")][vi("0x15")]((()=>{for(const t of i)n[vi("0x1e")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x30")]}],formatGroupId:vi("0x3")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x32")](t);const n=e[vi("0x3e")]((t=>"listItem"!=t[vi("0x21")]));return n>-1&&(e=e[vi("0x17")](0,n)),e}(t[vi("0xa")].document[vi("0x16")][vi("0x3f")]()),s=t.model[vi("0x34")](t[vi("0xa")].createPositionAt(o[0],"before"),t.model[vi("0x2")](o[o.length-1],vi("0x3a")));t[vi("0xa")][vi("0x15")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x29")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x4")];for(;t&&t[vi("0x1c")]("listIndent")>n[vi("0x1c")](vi("0x29"));)e.add(t),t=t[vi("0x4")]}return Array[vi("0x32")](e)}(o))}))}}n[vi("0x22")](vi("0x19"),s(vi("0x19"))),n[vi("0x22")]("bulletedList",s(vi("0x2b"))),o&&n[vi("0x22")](vi("0x1d"),s(vi("0x1d"))),n[vi("0x22")]("indentList",r(vi("0x20"))),n[vi("0x22")]("outdentList",r(vi("0x5"))),o&&n.enableCommand(vi("0xe"),(()=>{const e=t[vi("0x1b")].get(vi("0xe")),o=Array[vi("0x32")](e[vi("0x11")]);o[vi("0x39")]((t=>t.getAttribute(vi("0x35"))!=e[vi("0x30")])),t[vi("0xa")][vi("0x15")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x30")]}]})}))})),n[vi("0x36")].registerElementLabel("listItem",(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[vi("0x14")]((t=>{const{data:n}=t;if(n){if(vi("0x19")==n[vi("0x2e")]||vi("0x2b")==n[vi("0x2e")]||vi("0x1d")==n.commandName)switch(n.commandName[vi("0x1f")](vi("0x40"),"")){case vi("0x9"):return o(Yo(e,vi("0x2a")));case vi("0x33"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x31"):return o(Yo(e,vi("0x3d")))}if(vi("0x20")==n[vi("0x2e")])return{type:vi("0x7"),content:Yo(e,vi("0x23"),Yo(e,vi("0x0")))};if(vi("0x5")==n.commandName)return{type:vi("0x7"),content:Yo(e,vi("0x8"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0xe")==n[vi("0x2e")])return n[vi("0x41")][0][vi("0x27")]?{type:vi("0x7"),content:Yo(e,vi("0x6"))}:{type:"format",content:Yo(e,vi("0xc"))}}function o(t){return{type:vi("0x7"),content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t[vi("0x1c")](vi("0x29"));if(0==e)return t;let n=t;for(;t[vi("0xb")]&&t[vi("0xb")].is(vi("0x28"),vi("0x3b"));){const o=t[vi("0xb")][vi("0x1c")]("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0xb")]}return n}function Ii(t){const e=[];if(t.is("element",vi("0x3b"))&&t.getAttribute(vi("0x29"))>0){let n=t[vi("0x4")];for(;n&&vi("0x3b")==n[vi("0x21")]&&n[vi("0x1c")](vi("0x29"))==t.getAttribute(vi("0x29"));)e[vi("0x37")](n),n=n[vi("0x4")]}return e}const Li=["list.properties","*Format:* set start index to %0","type","model","get","ListUtils","handleDescriptions","reversed","bind","selection","flat","ListPropertiesEditing","listItem","*Format:* set order to reversed","plugins","backward","getSiblingNodes","config","forward","listReversed","handleListReversedCommand","_descriptionFactory","handleListStyleCommand","replace","listType","editor","ELEMENT_","getSelectedBlocks","parent","handleListStartCommand","afterInit","getLastPosition","listStart","change","filter","before","TrackChangesEditing","document","listStyle","styles","from","numbered","*Change to:* %0","map","markMultiRangeBlockFormat","toUpperCase","enableCommand","*Format:* set order to regular","startIndex","length","_getSuggestionBlocks","format","push","getFirstPosition","createPositionAt","element","unshift"];var Ni,Mi;Ni=Li,Mi=496,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x2f")](){if(!this[wi("0x2a")][wi("0x1f")].has(wi("0x1c")))return;const t=this[wi("0x2a")][wi("0x22")][wi("0x15")](wi("0x11")),e=this.editor[wi("0x1f")][wi("0x15")]("TrackChangesEditing");t[wi("0x38")]&&e[wi("0x6")](wi("0x37"),this[wi("0x27")].bind(this)),t[wi("0x18")]&&e[wi("0x6")](wi("0x24"),this[wi("0x25")].bind(this)),t.startIndex&&e[wi("0x6")](wi("0x31"),this[wi("0x2e")].bind(this)),e[wi("0x26")].registerDescriptionCallback(this[wi("0x17")][wi("0x19")](this))}[wi("0x27")](t,e={}){const n=this[wi("0x2a")][wi("0x1f")][wi("0x15")](wi("0x35")),o=this._getSuggestionBlocksForListStyle();this[wi("0x2a")][wi("0x14")][wi("0x32")]((()=>{n[wi("0x4")](o,{commandName:wi("0x37"),commandParams:[{type:e[wi("0x13")]}],formatGroupId:"listStyle"})}))}[wi("0x25")](t,e={}){const n=this[wi("0x2a")][wi("0x1f")][wi("0x15")](wi("0x35")),o=this._getSuggestionBlocks((t=>t.is(wi("0xf"),wi("0x1d"))&&wi("0x1")===t.getAttribute(wi("0x29"))));if(o.length<1)return;const s=o[wi("0x3")]((t=>this[wi("0x2a")][wi("0x14")].createRange(this[wi("0x2a")][wi("0x14")][wi("0xe")](t,wi("0x34")),this.editor[wi("0x14")][wi("0xe")](t,0))));this[wi("0x2a")].model[wi("0x32")]((()=>{n[wi("0x4")](s,{commandName:wi("0x24"),commandParams:[{reversed:e[wi("0x18")]}],formatGroupId:wi("0x24")})}))}[wi("0x2e")](t,e={}){const n=this[wi("0x2a")].plugins[wi("0x15")](wi("0x35")),o=this._getSuggestionBlocks((t=>t.is("element",wi("0x1d"))&&"numbered"===t.getAttribute("listType")));if(o[wi("0x9")]<1)return;const s=o[wi("0x3")]((t=>this.editor[wi("0x14")].createRange(this[wi("0x2a")][wi("0x14")][wi("0xe")](t,"before"),this.editor[wi("0x14")].createPositionAt(t,0))));this.editor[wi("0x14")][wi("0x32")]((()=>{n[wi("0x4")](s,{commandName:wi("0x31"),commandParams:[{startIndex:e[wi("0x8")]}],formatGroupId:wi("0x31")})}))}[wi("0x17")](t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o=wi("0x2"),s={type:wi("0xb"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case wi("0x24"):o=n.commandParams[0][wi("0x18")]?wi("0x1e"):wi("0x7"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=wi("0x12"),s={type:"format",content:Yo(e,o,n.commandParams[0].startIndex)}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this.editor[wi("0x1f")][wi("0x15")](wi("0x16"));let r=Array[wi("0x0")](this[wi("0x2a")][wi("0x14")][wi("0x36")][wi("0x1a")][wi("0x2c")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0xf"),wi("0x1d")))&&r[wi("0x10")](...s[wi("0x21")](this[wi("0x2a")].model[wi("0x36")][wi("0x1a")][wi("0xd")](),wi("0x20"))),(null===(e=r[r[wi("0x9")]-1])||void 0===e?void 0:e.is(wi("0xf"),"listItem"))&&r[wi("0xc")](...s.getSiblingNodes(this[wi("0x2a")].model[wi("0x36")].selection[wi("0x30")](),wi("0x23"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x2a")][wi("0x14")][wi("0x36")].selection[wi("0xd")]())||void 0===n?void 0:n[wi("0x2d")])||void 0===o?void 0:o.is(wi("0xf"),"listItem"))&&(r=r[wi("0x33")]((t=>t.is(wi("0xf"),wi("0x1d"))))),r}[wi("0xa")](t){const e=this[wi("0x2a")][wi("0x1f")][wi("0x15")]("ListUtils");let n=Array[wi("0x0")](this[wi("0x2a")][wi("0x14")][wi("0x36")][wi("0x1a")].getSelectedBlocks())[wi("0x33")](t)[wi("0x3")]((t=>{const n=this[wi("0x2a")].model[wi("0xe")](t,0);return[...e.getSiblingNodes(n,"backward"),...e.getSiblingNodes(n,wi("0x23"))]}))[wi("0x1b")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x2b")+this[wi("0x2a")][wi("0x1f")][wi("0x15")]("ListUtils").getListTypeFromListStyleType(t)[wi("0x5")]()+"_LIST_"+t.toUpperCase()[wi("0x28")](/-/g,"_")}}const Fi=["has","stop","options","plugins","for","media","_descriptionFactory","dataDowncast","mediaEmbed","TrackChangesEditing","high","elementToElement","showSuggestionHighlights","get","MediaEmbedEditing","div","registerElementLabel","createEmptyElement","attribute:url:media","locale"];var Pi,Di;Pi=Fi,Di=415,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Bi("0x5")](Bi("0x13")))return;const e=t[Bi("0x8")][Bi("0x12")](Bi("0xe")),n=t[Bi("0x4")];e.enableCommand(Bi("0xd")),e[Bi("0xb")][Bi("0x1")](Bi("0xa"),(t=>Yo(n,"ELEMENT_MEDIA",t))),t.conversion[Bi("0x9")](Bi("0xc"))[Bi("0x10")]({model:"media",view:(t,{writer:e,options:n})=>{if(n[Bi("0x11")])return e[Bi("0x2")](Bi("0x0"))},converterPriority:"high"}),t.data.downcastDispatcher.on(Bi("0x3"),((t,e,n)=>{n[Bi("0x7")].showSuggestionHighlights&&t[Bi("0x6")]()}),{priority:Bi("0xf")})}}const Ui=["mention","afterInit","has","get","enableCommand","TrackChangesEditing","plugins","editor","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=467,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[zi("0x2")](){const t=this[zi("0x8")];t.plugins[zi("0x3")](zi("0x0"))&&t[zi("0x7")][zi("0x4")](zi("0x6"))[zi("0x5")](zi("0x1"))}}const Wi=["pageBreak","has","plugins","get","ELEMENT_PAGE_BREAK","afterInit","TrackChangesEditing","PageBreakEditing","_descriptionFactory","editor"];var Ki,qi;Ki=Wi,qi=403,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Wi[t-=0]};class $i extends t.Plugin{[Xi("0x2")](){const t=this[Xi("0x6")];if(!t[Xi("0x9")][Xi("0x8")](Xi("0x4")))return;t.plugins[Xi("0x0")](Xi("0x3")).enableCommand("pageBreak");const e=t[Xi("0x9")].get("TrackChangesEditing"),n=t.locale;e[Xi("0x5")].registerElementLabel(Xi("0x7"),(t=>Yo(n,Xi("0x1"),t)))}}const Ji=["showSuggestionHighlights","commandName","getItemLabel","selection","locale","paragraph","addClass","plugins","data","_descriptionFactory","checkChild","ck-suggestion-marker-split","toViewPosition","editing","change","parent","schema","mapper","editor","consumable","isLimit","insertParagraph","markBlockFormat","markerRange","getFirstRange","addMarker:suggestion:insertion","nodeAfter","Paragraph","filter","markerName","registerDescriptionCallback","blockName","name","insertion","isObject","*Change to:* %0","start","ELEMENT_PARAGRAPH","highest","model","downcastDispatcher","includes","registerElementLabel","$text","*Insert:* %0","TrackChangesEditing","writer","bindElementToMarker","options","from","getSelectedBlocks","isTouching","isBlock","enableCommand","afterInit","get","consume","format","ck-suggestion-marker--active","insert"];var Qi,Zi;Qi=Ji,Zi=438,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x24")](){const t=this.editor;if(!t[Yi("0x31")].has(Yi("0x9")))return;const e=t[Yi("0x2e")],n=t[Yi("0x31")][Yi("0x25")](Yi("0x1b"));n[Yi("0x33")][Yi("0x18")](Yi("0x2f"),(t=>Yo(e,Yi("0x13"),t))),n[Yi("0x23")](Yi("0x2f"),((e,o={})=>{const s=t[Yi("0x15")].document,r=o[Yi("0x2d")]||s[Yi("0x2d")],i=Array[Yi("0x1f")](r[Yi("0x20")]())[Yi("0xa")]((t=>{return e=t,(n=this[Yi("0x0")][Yi("0x15")][Yi("0x3a")]).checkChild(e[Yi("0x39")],Yi("0x2f"))&&!n[Yi("0x10")](e)&&Yi("0x2f")!=e[Yi("0xe")];var e,n}));t[Yi("0x15")][Yi("0x38")]((()=>{for(const t of i)n[Yi("0x4")](t,{commandName:Yi("0x2f"),commandParams:[],formatGroupId:Yi("0xd")},fs(t))}))})),n._descriptionFactory[Yi("0xc")]((t=>{const{data:n}=t;if(n&&Yi("0x2f")==n[Yi("0x2b")])return{type:Yi("0x27"),content:Yo(e,Yi("0x11"),Yo(e,Yi("0x13")))}})),n[Yi("0x23")](Yi("0x3")),t[Yi("0x37")][Yi("0x16")].on(Yi("0x7"),ex(t),{priority:Yi("0x14")}),t[Yi("0x32")][Yi("0x16")].on(Yi("0x7"),((e,n,o)=>{o[Yi("0x1e")][Yi("0x2a")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x14")});const o=n[Yi("0x33")];o[Yi("0xc")]((n=>{if(Yi("0xf")!==n.type)return;const{start:s,end:r}=n[Yi("0x6")]();if(!s[Yi("0x21")](r)||!s[Yi("0x8")])return;const i=t[Yi("0x15")][Yi("0x3a")],x=s.nodeAfter;return i[Yi("0x22")](x)&&!i.isLimit(x)&&i[Yi("0x34")](x,"$text")?{type:"insertion",content:Yo(e,Yi("0x1a"),o[Yi("0x2c")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x31")][Yi("0x25")](Yi("0x1b")),i=o[Yi("0x5")][Yi("0x12")],x=o[Yi("0x5")].end,a=t[Yi("0x15")].schema;if(!i[Yi("0x21")](x)||!i.nodeAfter)return;const c=i.nodeAfter;if(a[Yi("0x22")](c)&&!a[Yi("0x2")](c)&&a[Yi("0x34")](c,Yi("0x19"))){if(!s[Yi("0x1")][Yi("0x26")](o[Yi("0x5")],n[Yi("0xe")]))return;const t=s.writer.createUIElement("span",{class:Yi("0x35")}),i=s[Yi("0x3b")][Yi("0x36")](x);e&&r.activeMarkers[Yi("0x17")](o[Yi("0xb")])&&s[Yi("0x1c")][Yi("0x30")](Yi("0x28"),t),s[Yi("0x1c")][Yi("0x29")](i,t),s[Yi("0x3b")][Yi("0x1d")](t,o[Yi("0xb")])}}}const nx=["document","model","editor","isCollapsed","getRanges","from","getAttributeProperties","isFormatting","change","markInlineFormat","registerDescriptionCallback","removeFormat","locale","has","format","plugins","getItems","enableCommand","getAttributes","commandName","RemoveFormatEditing"];var ox,sx;ox=nx,sx=332,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this[rx("0x6")];if(!t[rx("0x13")][rx("0x11")](rx("0x3")))return;const e=t[rx("0x13")].get("TrackChangesEditing");e[rx("0x0")]("removeFormat",(n=>{const o=t[rx("0x5")][rx("0x4")].selection;o[rx("0x7")]?n():t[rx("0x5")][rx("0xc")]((()=>{const n=Array[rx("0x9")](o[rx("0x8")]());for(const o of n)for(const n of o[rx("0x14")]())xx(n,t.model.schema)&&e[rx("0xd")](t[rx("0x5")].createRangeOn(n),{commandName:rx("0xf"),commandParams:[]})}))})),e._descriptionFactory[rx("0xe")]((e=>{const{data:n}=e;if(n&&rx("0xf")==n[rx("0x2")])return{type:rx("0x12"),content:Yo(t[rx("0x10")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0x1")]()){const t=e[rx("0xa")](n);if(t&&t[rx("0xb")])return!0}return!1}const ax=["goToNextRestrictedEditingException","RestrictedEditingModeEditing","discardAllSuggestions","editor","get","discardSuggestion","afterInit","acceptSuggestion","acceptAllSuggestions","acceptSelectedSuggestions","plugins","enableCommand","has","discardSelectedSuggestions"];var cx,lx;cx=ax,lx=494,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x2")](){const t=this[dx("0xd")];if(!t[dx("0x6")][dx("0x8")](dx("0xb")))return;const e=t.plugins[dx("0x0")]("TrackChangesEditing");e[dx("0x7")]("goToPreviousRestrictedEditingException"),e.enableCommand(dx("0xa"));const n=t.plugins[dx("0x0")]("RestrictedEditingModeEditing");n[dx("0x7")]("trackChanges"),n[dx("0x7")](dx("0x3")),n[dx("0x7")](dx("0x1")),n[dx("0x7")](dx("0x4")),n[dx("0x7")](dx("0xc")),n.enableCommand(dx("0x5")),n[dx("0x7")](dx("0x9"))}}const gx=["TrackChangesEditing","merge","addClass","span","ELEMENT_LINE_BREAK","markerName","createPositionBefore","addMarker:suggestion:insertion","toViewPosition","addMarker:suggestion:deletion","downcastDispatcher","createUIElement","mapper","name","get","getItems","ck-suggestion-marker--active","insert","options","showSuggestionHighlights","addMarker:suggestion","editing","element","data","writer","locale","deletion","high","softBreak","markerRange","requires","enableCommand","consumable","init","includes","activeMarkers","shiftEnter"];var mx,fx;mx=gx,fx=359,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x4")](){return[nr.ShiftEnter]}[hx("0x7")](){const t=this.editor,e=t.plugins[hx("0x19")](hx("0xb"));e[hx("0x5")](hx("0xa")),t[hx("0x20")][hx("0x15")].on(hx("0x12"),bx(t),{priority:hx("0x1")}),t[hx("0x20")][hx("0x15")].on(hx("0x14"),bx(t),{priority:hx("0x1")}),t[hx("0x22")][hx("0x15")].on(hx("0x1f"),((e,n,o)=>{o[hx("0x1d")][hx("0x1e")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory.registerElementLabel(hx("0x2"),(e=>Yo(t[hx("0x24")],hx("0xf"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x19")]("TrackChangesEditing");if(!s[hx("0x6")].test(o[hx("0x3")],n[hx("0x18")]))return;const i=t.model;for(const t of o[hx("0x3")][hx("0x1a")]()){if(!t.is(hx("0x21"),hx("0x2")))continue;const n=hx("0x0")==o[hx("0x10")].split(":")[1]?hx("0xc"):"split",x=s[hx("0x23")][hx("0x16")](hx("0xe"),{class:"ck-suggestion-marker-"+n}),a=s[hx("0x17")][hx("0x13")](i[hx("0x11")](t));e&&r[hx("0x9")][hx("0x8")](o.markerName)&&s[hx("0x23")][hx("0xd")](hx("0x1b"),x),s[hx("0x23")][hx("0x1c")](a,x),s.mapper.bindElementToMarker(x,o[hx("0x10")])}}}const Ex=["forceValue","value","TrackChangesEditing","model","get","enableCommand","change","plugins","restrictedEditingException","getRanges","from","FORMAT_RESTRICTED_ENABLED","commands","editor","format","FORMAT_RESTRICTED_DISABLED","commandName","markInlineFormat","locale","StandardEditingModeEditing","afterInit","selection","isCollapsed"];var _x,Tx;_x=Ex,Tx=459,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x15")](){const t=this[Cx("0xe")],e=t[Cx("0x4")],n=t[Cx("0x13")];if(!t[Cx("0x8")].has(Cx("0x14")))return;const o=t[Cx("0x8")][Cx("0x5")](Cx("0x3")),s=Cx("0x9"),r=t[Cx("0xd")][Cx("0x5")](s);o[Cx("0x6")](s,((t,n={})=>{const i=e.document[Cx("0x16")];if(i[Cx("0x0")])return void t(n);const x=void 0!==n[Cx("0x1")]?n.forceValue:!r[Cx("0x2")];e[Cx("0x7")]((()=>{const t=Array[Cx("0xb")](i[Cx("0xa")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x12")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0x11")]==s)return e.commandParams[0][Cx("0x1")]?{type:Cx("0xf"),content:Yo(n,Cx("0xc"))}:{type:Cx("0xf"),content:Yo(n,Cx("0x10"))}}))}}const kx=["value","from","plugins","enableCommand","block","style","getDefinitionsForView","markBlockFormat","style:","commandName","document","getSelectedBlocks","model","getRanges","*Remove format:* %0","change","registerDescriptionCallback","inline","styleName","get","enabledStyles","commandParams","editor","_getRangesWithClasses","afterInit","modelElements","commands","isCollapsed","_getStyleDefinition","getAncestors","add","includes","getItems","TrackChangesEditing","_descriptionFactory","name","push","StyleUtils","find","isBlock","*Format:* %0","selection","normalizeConfig","classes"];var Ax,vx;Ax=kx,vx=483,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x19")](){const t=this[Rx("0x17")];if(!t.plugins.has("Style"))return;const e=t[Rx("0x1b")][Rx("0x14")](Rx("0x6")),n=t.plugins[Rx("0x14")](Rx("0x22")),o=t.locale,s=t[Rx("0x3")][Rx("0x14")]("DataSchema"),r=t[Rx("0x3")][Rx("0x14")](Rx("0x26"))[Rx("0x2b")](s,t.config[Rx("0x14")]("style.definitions"));n[Rx("0x4")](Rx("0x6"),((o,{styleName:i})=>{const x=t[Rx("0xd")][Rx("0xb")][Rx("0x2a")],a=this[Rx("0x1d")](i,r);if(!a)return;if(!e[Rx("0x15")][Rx("0x20")](i))return;if(x[Rx("0x1c")]&&!a[Rx("0x28")])return void o({styleName:i});const c=!e[Rx("0x1")].includes(a[Rx("0x24")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x1e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Rx("0x24")])){n[Rx("0x1f")](o);break}}return n}(x[Rx("0xc")](),a[Rx("0x1a")]);t[Rx("0xd")][Rx("0x10")]((()=>{for(const t of e)n[Rx("0x8")](t,{commandName:Rx("0x6"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x9")+i})}))}else{let e=Array[Rx("0x2")](x[Rx("0xe")]());if(!c){const n=Array.from(s[Rx("0x7")](a.element,!1))[0][Rx("0xd")],o=[];for(const s of e){const e=this[Rx("0x18")](t.model,s,a[Rx("0x0")],n);o[Rx("0x25")](...e)}e=o}t[Rx("0xd")].change((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x6"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x23")][Rx("0x11")]((t=>{const{data:e}=t;if(e&&Rx("0x6")===e[Rx("0xa")])return e[Rx("0x16")][0].forceValue?{type:"format",content:Yo(o,Rx("0x29"),e[Rx("0x16")][0][Rx("0x13")].toLowerCase())}:{type:"format",content:Yo(o,Rx("0xf"),e[Rx("0x16")][0][Rx("0x13")].toLowerCase())}}))}[Rx("0x1d")](t,e){let n=e[Rx("0x5")][Rx("0x27")]((e=>e[Rx("0x24")]===t));return n||(n=e[Rx("0x12")].find((e=>e[Rx("0x24")]===t))),n}[Rx("0x18")](t,e,n,o){const s=[];for(const r of e[Rx("0x21")]()){const e=r.getAttribute(o);e&&n.every((t=>e[Rx("0x0")][Rx("0x20")](t)))&&s.push(t.createRangeOn(r))}return s}}const Ix=["subType","cell","markMultiRangeInsertion","tableCell","left","maxColumn","execute","tableRow","maxRow","_setupColumnsRowsFixing","item","insertion","change:data","isEqual","ELEMENT_TABLE_COLUMN_WITH_TEXT","commands","enqueueChange","markMultiRangeDeletion","getRowIndexes","from","isInContent","highest","start","createRangeIn","createTableWalker","toLowerCase","plugins","setSelection","last","insert","locale","position","removeClass","_getSuggestionCoords","discard","colspan","root","mapper","deletion","oldRange","registerElementLabel","ELEMENT_TABLE_WITH_TEXT","every","getChangedMarkers","options","getSelectionAffectedTableCells","filter","findAncestor","addMarker:suggestion","document","min","has","_tableSuggestions","first","TableUtils","change","removeTableRow","insertTableColumnLeft","showSuggestionHighlights","getSuggestion","createPositionAt","_suggestionFactory","_tablePostFixingSubtypes","getRanges","getFirstRange","hasAttribute","$textProxy","getChildren","differ","_descriptionFactory","table","insertTable","includes","downcastDispatcher","rootName","max","ELEMENT_TABLE","selectTableRow","toViewElement","enableCommand","insertTableRowAbove","get","nodeAfter","batch","type","rowspan","fromRange","accept","tableColumn","map","data","startsWith","isArray","MAX_SAFE_INTEGER","span","getCellLocation","getChanges","getItems","selection","registerDescriptionCallback","editor","low","ELEMENT_TABLE_COLUMN","above","model","ELEMENT_TABLE_ROW","*Remove:* %0","insertTableColumnRight","some","removeTableColumn","element","name","add","isTouching","substr","afterInit","tablePaste","_getCoordsForCells","_acceptFormatSuggestionCallbackFactory","length","$graveyard","writer","end","getAttribute","TableEditing","values","join","MIN_SAFE_INTEGER","*Insert:* %0","TrackChangesEditing","selectTableColumn","registerCustomCallback","ELEMENT_TABLE_ROW_WITH_TEXT","addRange","refresh","insertTableRowBelow","createRangeOn"];var Lx,Nx;Lx=Ix,Nx=488,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x7a")]=["tableRow",Mx("0xb")],this[Mx("0x70")]=new Set}[Mx("0x26")](){const t=this[Mx("0x17")],e=t[Mx("0x1b")][Mx("0x6d")][Mx("0x15")];if(!t.plugins[Mx("0x6f")](Mx("0x2f")))return;const n=t[Mx("0x5a")],o=t[Mx("0x56")][Mx("0x4")](Mx("0x34")),s=t.plugins[Mx("0x4")](Mx("0x72"));o[Mx("0x81")][Mx("0x64")]("table",(t=>Yo(n,Mx("0x88"),t))),this[Mx("0x45")](),o[Mx("0x2")](Mx("0x83")),o[Mx("0x2")](Mx("0x0")),o[Mx("0x2")](Mx("0x35"));for(const n of[Mx("0x3"),Mx("0x3a")]){const r=t.commands[Mx("0x4")](n);o.enableCommand(n,(n=>{t.model[Mx("0x73")]((t=>{n();const i=Mx("0x1a")===r.order,x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x4e")](x),c=i?a[Mx("0x71")]-1:a[Mx("0x58")]+1,l=x[0][Mx("0x6b")](Mx("0x82")),d=s[Mx("0x54")](l,{startRow:c,endRow:c}),u=Array[Mx("0x4f")](d)[Mx("0xc")]((e=>t[Mx("0x3b")](e[Mx("0x3d")])));o[Mx("0x3e")](u,"tableRow")}))}))}for(const n of[Mx("0x75"),Mx("0x1e")]){const r=t[Mx("0x4b")][Mx("0x4")](n);o.enableCommand(n,(n=>{t[Mx("0x1b")][Mx("0x73")]((t=>{n();const i=Mx("0x40")===r.order,x=s[Mx("0x69")](e),a=s.getColumnIndexes(x),c=i?a[Mx("0x71")]-1:a[Mx("0x58")]+1,l=x[0][Mx("0x6b")]("table"),d=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x4f")](d).map((e=>t.createRangeOn(e[Mx("0x3d")])));o[Mx("0x3e")](u,Mx("0xb"))}))}))}for(const n of[Mx("0x74"),Mx("0x20")]){const r=n[Mx("0x25")](11),i=r[Mx("0x55")](),x=i[Mx("0x25")](0,3)+"span",a="table"+r,c=Mx("0x6e")+r,l=Mx("0x87")+r;o[Mx("0x2")](n,(()=>{t.model[Mx("0x73")]((t=>{const r=s[Mx("0x69")](e),d=r[0].findAncestor("table");let u;if(Mx("0x74")==n){const t=s[Mx("0x4e")](r);u={startRow:t[Mx("0x71")],endRow:t[Mx("0x58")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t.first,endColumn:t[Mx("0x58")],includeAllSlots:!0}}const g=s[Mx("0x54")](d,u),m=Array.from(g).map((({cell:t})=>t)),f=Ox(m[Mx("0x6a")]((t=>t[Mx("0x7d")](x)))),h=Ox(m[Mx("0x6a")]((t=>!t[Mx("0x7d")](x)))).map((e=>t[Mx("0x3b")](e))),p=o[Mx("0x4d")](h,a);if(p&&(Mx("0x43")==p[Mx("0x3c")]||Mx("0xb")==p[Mx("0x3c")])){const e=this[Mx("0x5d")](p);for(const n of f){const o=t[Mx("0x3b")](n),r=s[Mx("0x12")](n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x38")](o)}}}))}))}function r(n){const o=Array[Mx("0x4f")](e.getRanges())[Mx("0xc")]((t=>i.LiveRange[Mx("0x9")](t)));t.model.change((e=>{const s=e[Mx("0x6")];n=n[Mx("0x6a")]((t=>Mx("0x2b")!=t[Mx("0x60")][Mx("0x86")])),e.setSelection(n),t[Mx("0x4b")][Mx("0x4")](Mx("0x74"))[Mx("0x39")](),t[Mx("0x42")]("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x1b")].enqueueChange((()=>{t.model[Mx("0x4c")](s,(t=>{const e=o[Mx("0x6a")]((t=>Mx("0x2b")!=t[Mx("0x60")][Mx("0x86")]));e[Mx("0x2a")]>0&&t.setSelection(e);for(const t of o)t.detach()}))}))}))}function a(n){t[Mx("0x1b")].change((o=>{const s=Array.from(e[Mx("0x7b")]())[Mx("0xc")]((t=>i.LiveRange[Mx("0x9")](t))),r=[];for(const t of n)for(const e of t[Mx("0x14")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x2b")!=e[Mx("0x60")][Mx("0x86")]&&(o[Mx("0x57")](o[Mx("0x78")](e,0)),t[Mx("0x4b")][Mx("0x4")]("removeTableColumn").refresh(),t[Mx("0x42")](Mx("0x20"),{forceDefaultExecution:!0}));const x=s[Mx("0x6a")]((t=>Mx("0x2b")!=t[Mx("0x60")][Mx("0x86")]));x.length>0&&o[Mx("0x57")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Mx("0x66")]((e=>t[Mx("0x1f")]((t=>t[Mx("0x2d")][Mx("0x49")](e.start)||e[Mx("0x2d")][Mx("0x49")](t[Mx("0x52")])))))}function l(t,e){return t[Mx("0x1f")]((t=>e[Mx("0x1f")]((e=>t[Mx("0x2d")][Mx("0x24")](e[Mx("0x52")])))))}t[Mx("0xd")][Mx("0x85")].on(Mx("0x6c"),((t,e,n)=>{if(!n[Mx("0x68")][Mx("0x76")])return;const o=e[Mx("0x46")];if(!o)return;const s=n[Mx("0x61")][Mx("0x1")](o);function r(t){return Array[Mx("0xf")](t)?t:[t]}s&&Mx("0x3f")===o[Mx("0x22")]&&(0,x.setHighlightHandling)(s,n[Mx("0x2c")],((t,e,n)=>n.addClass(r(e.classes),t)),((t,e,n)=>n[Mx("0x5c")](r(e.classes),t)))}),{priority:Mx("0x51")}),o._descriptionFactory.registerDescriptionCallback((t=>{if("insertion"!=t.type&&Mx("0x62")!=t[Mx("0x7")])return;const e=t.getContainedElement();if(null!=e&&e.is(Mx("0x21"),Mx("0x82"))){if("insertion"==t[Mx("0x7")]){const e=t[Mx("0x14")]()[Mx("0x6a")]((t=>t.is("$textProxy")))[Mx("0xc")]((t=>t[Mx("0xd")]));if(e.length)return{type:Mx("0x47"),content:Yo(n,Mx("0x33"),Yo(n,Mx("0x65"),'"'+e[Mx("0x31")](" ")+'"'))}}if(Mx("0x62")==t.type){const e=t[Mx("0x14")]()[Mx("0x6a")]((t=>t.is(Mx("0x7e"))))[Mx("0xc")]((t=>t[Mx("0xd")]));if(e.length)return{type:Mx("0x62"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x65"),'"'+e[Mx("0x31")](" ")+'"'))}}}})),o[Mx("0x81")][Mx("0x16")]((t=>{if(Mx("0x43")==t[Mx("0x3c")]){const e=t.getItems().filter((t=>t.is(Mx("0x7e"))))[Mx("0xc")]((t=>t.data)),o=this._getSuggestionCoords(t),s=o[Mx("0x44")]-o.minRow+1;if(Mx("0x47")==t[Mx("0x7")])return e[Mx("0x2a")]?{type:"insertion",content:Yo(n,Mx("0x33"),Yo(n,Mx("0x37"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x47"),content:Yo(n,Mx("0x33"),Yo(n,Mx("0x1c"),s))};if("deletion"==t[Mx("0x7")])return e[Mx("0x2a")]?{type:Mx("0x62"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x37"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x62"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x1c"),s))}}if(Mx("0xb")==t[Mx("0x3c")]){const e=t[Mx("0x14")]()[Mx("0x6a")]((t=>t.is(Mx("0x7e")))).map((t=>t[Mx("0xd")])),o=this[Mx("0x5d")](t),s=o[Mx("0x41")]-o.minColumn+1;if(Mx("0x47")==t[Mx("0x7")])return e[Mx("0x2a")]?{type:"insertion",content:Yo(n,Mx("0x33"),Yo(n,Mx("0x4a"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x47"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x19"),s))};if(Mx("0x62")==t[Mx("0x7")])return e[Mx("0x2a")]?{type:Mx("0x62"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x4a"),[s,'"'+e[Mx("0x31")](" ")+'"']))}:{type:Mx("0x62"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x19"),s))}}})),o[Mx("0x79")][Mx("0x36")](Mx("0x47"),"tableRow",Mx("0x5e"),r),o._suggestionFactory[Mx("0x36")](Mx("0x62"),Mx("0x43"),Mx("0xa"),r),o[Mx("0x79")][Mx("0x36")](Mx("0x47"),Mx("0xb"),Mx("0x5e"),a),o._suggestionFactory[Mx("0x36")](Mx("0x62"),Mx("0xb"),Mx("0xa"),a),o._suggestionFactory.registerCustomCallback(Mx("0x47"),Mx("0xb"),Mx("0x31"),c),o[Mx("0x79")].registerCustomCallback(Mx("0x62"),Mx("0xb"),Mx("0x31"),c),o[Mx("0x79")][Mx("0x36")](Mx("0x47"),Mx("0x43"),Mx("0x31"),l),o._suggestionFactory[Mx("0x36")](Mx("0x62"),"tableRow",Mx("0x31"),l)}[Mx("0x29")](){const t=this.editor,e=t[Mx("0x1b")][Mx("0x6d")][Mx("0x15")];return(n,o)=>{t[Mx("0x1b")][Mx("0x73")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x2d")].nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x52")].nodeAfter);const c=s[Mx("0x53")](a);if(Mx("0x2b")==c.root[Mx("0x86")])return;const l=Array[Mx("0x4f")](e[Mx("0x7b")]())[Mx("0xc")]((t=>i.LiveRange[Mx("0x9")](t)));s[Mx("0x57")](c),t[Mx("0x4b")].get(r)[Mx("0x39")](),x.push({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x6a")]((t=>"$graveyard"!=t[Mx("0x60")].rootName));d.length>0&&s[Mx("0x57")](d);for(const t of l)t.detach()}))}}[Mx("0x28")](t){const e=this.editor[Mx("0x56")].get(Mx("0x72"));let n=Number[Mx("0x10")],o=Number[Mx("0x32")],s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x32")];for(const i of t){if(Mx("0x2b")==i[Mx("0x60")][Mx("0x86")])continue;const{row:t,column:x}=e[Mx("0x12")](i),a=i[Mx("0x7d")](Mx("0x8"))?i[Mx("0x2e")]("rowspan")-1:0,c=i[Mx("0x7d")]("colspan")?i.getAttribute(Mx("0x5f"))-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}}[Mx("0x45")](){const t=this[Mx("0x17")],e=t[Mx("0x56")][Mx("0x4")](Mx("0x34")),n=t[Mx("0x56")][Mx("0x4")](Mx("0x72"));t[Mx("0x1b")][Mx("0x6d")].on(Mx("0x48"),(()=>{const n=Array.from(t[Mx("0x1b")][Mx("0x6d")][Mx("0x80")][Mx("0x67")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Mx("0x63")])continue;const i=e[Mx("0x77")](s);this[Mx("0x7a")][Mx("0x84")](r)&&this[Mx("0x70")][Mx("0x23")](i)}}),{priority:Mx("0x18")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x3b")](t),r=t[Mx("0x6b")](Mx("0x82")),i=n[Mx("0x12")](t);for(const e of this._tableSuggestions){const n=e[Mx("0x3c")],x=n[Mx("0xe")](Mx("0x27")),a=n[Mx("0x25")](x?10:5),c=a[Mx("0x55")](),l=c[Mx("0x25")](0,3)+Mx("0x11"),d=Mx("0x6e")+a,u=Mx("0x87")+a;if(!e[Mx("0x50")])continue;if(r!=e[Mx("0x7c")]()[Mx("0x52")][Mx("0x6b")](Mx("0x82")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Mx("0x2e")](l)-1:0,m=this[Mx("0x5d")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x38")](s),o=!0)}return o};t[Mx("0x1b")][Mx("0x6d")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x1b")][Mx("0x6d")][Mx("0x80")][Mx("0x13")]())if(Mx("0x59")==s[Mx("0x7")])if(Mx("0x43")==s.name)for(const t of s[Mx("0x5b")][Mx("0x5")][Mx("0x7f")]())n=n||o(t,e);else Mx("0x3f")==s[Mx("0x22")]&&(n=n||o(s.position.nodeAfter,e));return n}))}[Mx("0x5d")](t){return this._getCoordsForCells(t[Mx("0x7b")]()[Mx("0xc")]((t=>t[Mx("0x52")][Mx("0x5")])))}}function Ox(t){return Array[Mx("0x4f")](new Set(t)[Mx("0x30")]())}const Fx=["author","_tablePostFixingSubtypes","_areMergableCells","horizontally","commandName","change","map","_areSelectedCellsMergable","setSelection","_acceptFormatSuggestionCallbackFactory","_isForcedDefaultExecutionBlock","insertion","push","locale","registerDescriptionCallback","formatBlock","selection","deletion","tableCell","type","createRangeOn","subType","root","registerCustomCallback","trackChanges","format","markBlockFormat","filter","document","mergeTableCells","mergeTableCellRight","getSelectionAffectedTableCells","getFirstPosition","execute","isEnabled","_descriptionFactory","_suggestionFactory","cell","mergeTableCellLeft","element","mergeTableCellDown","splitTableCellHorizontally","highest","createTableWalker","getRanges","commands","TableUtils","direction","requires","add","value","find","size","*Split cell:* vertically","findAncestor","TrackChangesEditing","rootName","has","afterInit","enableCommand","forceDefaultExecution","accept","plugins","mergeTableCellUp","table","splitTableCellVertically","from","containsRange","editor","getAncestors","low","get","stop","getSuggestions","model","length","isInContent","$graveyard"];var Px,Dx;Px=Fx,Dx=268,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0xe")](){return[wx]}[Bx("0x18")](){const t=this[Bx("0x22")],e=t[Bx("0x28")].document[Bx("0x3c")],n=t[Bx("0x39")];if(!t[Bx("0x1c")][Bx("0x17")]("TableEditing"))return;const o=t[Bx("0x1c")].get(Bx("0x15")),s=t[Bx("0x1c")][Bx("0x25")](Bx("0xc")),r=t[Bx("0x1c")].get(wx);r[Bx("0x2d")][Bx("0x38")](Bx("0x49")),o[Bx("0x19")](Bx("0x49"),(()=>{const e=s[Bx("0x4b")](t.model[Bx("0x48")][Bx("0x3c")]);t[Bx("0x28")][Bx("0x31")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x49"))}))})),t[Bx("0xb")].get("mergeTableCells").on(Bx("0x4d"),((e,n)=>{t[Bx("0xb")][Bx("0x25")](Bx("0x44")).value&&(n[Bx("0x29")]>0&&n[n[Bx("0x29")]-1]&&n[n[Bx("0x29")]-1][Bx("0x1a")]||o[Bx("0x36")]||this[Bx("0x33")]()||e[Bx("0x26")]())}),{priority:Bx("0x8")});for(const e of[Bx("0x1d"),Bx("0x4a"),Bx("0x6"),Bx("0x4")]){const n=t[Bx("0xb")].get(e);o[Bx("0x19")](e,(()=>{const e=t[Bx("0x28")].document[Bx("0x3c")][Bx("0x4c")]().getAncestors()[Bx("0x11")]((t=>t.is(Bx("0x5"),Bx("0x3e")))),s=n[Bx("0x10")];t[Bx("0x28")][Bx("0x31")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x49"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x1f"),Bx("0x7")]){const n=t[Bx("0xb")][Bx("0x25")](e);o[Bx("0x19")](e,(()=>{const r=s[Bx("0x4b")](t[Bx("0x28")][Bx("0x48")][Bx("0x3c")])[0],i=r[Bx("0x14")](Bx("0x1e")),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x2f")==n[Bx("0xd")]){const t=s[Bx("0x9")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x20")](t)[Bx("0x32")]((t=>t.cell))}else{const t=s[Bx("0x9")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x20")](t)[Bx("0x32")]((t=>t[Bx("0x3")]))}t[Bx("0x28")].change((t=>{o[Bx("0x46")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x3a")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x30")]?{type:"format",content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x1")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x1f")==e[Bx("0x30")]?{type:Bx("0x45"),content:Yo(n,Bx("0x13"))}:Bx("0x7")==e[Bx("0x30")]?{type:Bx("0x45"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x35")]();for(const t of[Bx("0x1d"),Bx("0x4a"),Bx("0x6"),Bx("0x4")])o._suggestionFactory[Bx("0x43")](Bx("0x3b"),t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x7")])o[Bx("0x2")].registerCustomCallback(Bx("0x3b"),t,Bx("0x1b"),x);o[Bx("0x2")][Bx("0x43")](Bx("0x3b"),"mergeTableCells",Bx("0x1b"),(n=>{t[Bx("0x28")].change((o=>{const s=Array[Bx("0x20")](e.getRanges())[Bx("0x32")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x34")](n),t[Bx("0xb")][Bx("0x25")](Bx("0x49")).refresh(),t[Bx("0x4d")](Bx("0x49"),{forceDefaultExecution:!0});const r=s[Bx("0x47")]((t=>Bx("0x2b")!=t[Bx("0x42")][Bx("0x16")]));r[Bx("0x29")]>0&&o[Bx("0x34")](r);for(const t of s)t.detach()}))}));for(const e of["mergeTableCellUp",Bx("0x6"),Bx("0x4"),Bx("0x4a")]){const n=t[Bx("0xb")].get(e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model[Bx("0x48")][Bx("0x3c")][Bx("0x4c")]()[Bx("0x23")]()[Bx("0x11")]((t=>t.is(Bx("0x5"),"tableCell")));this[Bx("0x2e")](n.value,o)||(e.return=!1,e[Bx("0x26")]())}}),{priority:Bx("0x24")})}}[Bx("0x33")](){const t=this[Bx("0x22")][Bx("0xb")][Bx("0x25")](Bx("0x49")),e=this.editor.plugins[Bx("0x25")]("TableUtils");if(!t[Bx("0x0")])return!1;const n=e[Bx("0x4b")](this[Bx("0x22")][Bx("0x28")][Bx("0x48")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x2e")](t,e){const n=this[Bx("0x22")][Bx("0x1c")][Bx("0x25")](Bx("0x15")),o=this[Bx("0x22")][Bx("0x28")][Bx("0x40")](t),s=this[Bx("0x22")][Bx("0x28")].createRangeOn(e),r=new Set,i=new Set;for(const t of n[Bx("0x27")]())if((Bx("0x37")==t.type||Bx("0x3d")==t[Bx("0x3f")]||"mergeTableCells"==t[Bx("0x41")])&&t[Bx("0x2a")])for(const e of t[Bx("0xa")]())e[Bx("0x21")](o,!0)&&r[Bx("0xf")](t.type+":"+t[Bx("0x2c")].id),e[Bx("0x21")](s,!0)&&i[Bx("0xf")](t[Bx("0x3f")]+":"+t.author.id);if(r[Bx("0x12")]!=i[Bx("0x12")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["setTableRowHeader","writer","FORMAT_HEADER_ROW","registerCustomCallback","_suggestionFactory","end","format","commandName","createTableWalker","forceValue","headingRows","unbindElementFromMarkerName","removeMarker:suggestion","showSuggestionHighlights","getRowIndexes","getCellLocation","findAncestor","addClass","first","bindElementToMarker","getAttribute","getColumnIndexes","toViewElement","data","document","markerName","get","setTableColumnHeader","includes","FORMAT_REGULAR_ROW","removeClass","_descriptionFactory","editing","nodeAfter","accept","childCount","FORMAT_REGULAR_COLUMN","data-suggestion","commandParams","setAttribute","stop","getChild","markBlockFormat","getSuggestion","markerRange","highest","createPositionBefore","addMarker:suggestion","index","change","table","model","locale","_acceptFormatSuggestionCallbackFactory","activeMarkers","*Format:* %0","selection","createRange","has","commands","formatBlock","cell","getSelectionAffectedTableCells","value","ck-suggestion-marker-","nodeBefore","mapper","parent","afterInit","requires","FORMAT_HEADER_COLUMN","plugins","name","markerNameToElements","_splitMarkerName","TrackChangesEditing","item","TableUtils","editor","downcastDispatcher","headingColumns","ck-suggestion-marker--active","createPositionAfter","consume"];var Gx,Hx;Gx=Ux,Hx=389,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Vx extends t.Plugin{static get[zx("0x10")](){return[wx]}[zx("0xf")](){const t=this[zx("0x19")];if(!t[zx("0x12")][zx("0x5")]("TableEditing"))return;const e=t[zx("0x53")],n=t[zx("0x12")].get(zx("0x16")),o=t.plugins.get(zx("0x18")),s=t.plugins[zx("0x39")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x15")](r.markerName),c=n[zx("0x4a")](a);if(!c[zx("0x36")]||zx("0x3a")!=c.data[zx("0x26")])return;if(r[zx("0x17")])return void s[zx("0x47")]();if(!i.consumable[zx("0x1e")](r[zx("0x4b")],s[zx("0x13")]))return;const l=r[zx("0x4b")].start[zx("0x40")],d=r[zx("0x4b")][zx("0x24")][zx("0xc")],u=l[zx("0xe")].parent,{column:g}=o[zx("0x2e")](l),{column:m}=o[zx("0x2e")](d);for(let s=g;s<=m;s++){const c=o[zx("0x27")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[zx("0xd")][zx("0x35")](s);i.writer[zx("0x30")](zx("0xb")+x,c),e&&i[zx("0x20")][zx("0x46")](zx("0x44"),a,c),i[zx("0xd")][zx("0x32")](c,r[zx("0x38")]),t&&(n[zx("0x1")][zx("0x3b")](r[zx("0x38")])?i[zx("0x20")][zx("0x30")](zx("0x1c"),c):i[zx("0x20")][zx("0x3d")](zx("0x1c"),c))}}}}n.enableCommand(zx("0x1f"),((e,s)=>{const r=o[zx("0x9")](t[zx("0x52")][zx("0x37")][zx("0x3")]),i=o[zx("0x2d")](r),x=r[0][zx("0x2f")]("table"),a=x[zx("0x33")](zx("0x29"))||0,c=s&&null!==s[zx("0x28")]?s[zx("0x28")]:!t[zx("0x6")].get(zx("0x1f"))[zx("0xa")],l=c?i.last:i[zx("0x31")],d=x[zx("0x48")](l);let u;if(c){const e=x[zx("0x48")](a);if(d.index<e[zx("0x4f")])return;u=t[zx("0x52")][zx("0x4")](t[zx("0x52")][zx("0x4d")](e[zx("0x48")](0)),t.model[zx("0x1d")](d[zx("0x48")](d[zx("0x42")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[zx("0x52")].createRange(t[zx("0x52")].createPositionBefore(d[zx("0x48")](0)),t.model[zx("0x1d")](e[zx("0x48")](e[zx("0x42")]-1)))}t[zx("0x52")][zx("0x50")]((()=>{n.markBlockFormat(u,{commandName:zx("0x1f"),commandParams:[{forceValue:c}]},[],zx("0x1f"))}))})),n.enableCommand(zx("0x3a"),((e,o)=>{const s=t[zx("0x12")][zx("0x39")](zx("0x18")),r=s[zx("0x9")](t[zx("0x52")][zx("0x37")][zx("0x3")]),i=s[zx("0x34")](r),x=r[0][zx("0x2f")](zx("0x51")),a=x[zx("0x33")](zx("0x1b"))||0,c=o&&null!==o[zx("0x28")]?o[zx("0x28")]:!t[zx("0x6")].get(zx("0x3a"))[zx("0xa")];let l;const d=x[zx("0x48")](0),u=c?i.last:i[zx("0x31")],g=s[zx("0x27")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x8")];if(c){const e=d.getChild(a);if(m.isBefore(e))return;l=t[zx("0x52")].createRange(t[zx("0x52")][zx("0x4d")](e),t[zx("0x52")][zx("0x1d")](m))}else{const e=d[zx("0x48")](a-1);if(!e)return;l=t[zx("0x52")][zx("0x4")](t[zx("0x52")][zx("0x4d")](m),t[zx("0x52")][zx("0x1d")](e))}t.model[zx("0x50")]((()=>{n[zx("0x49")](l,{commandName:zx("0x3a"),commandParams:[{forceValue:c}]},[],zx("0x3a"))}))})),t[zx("0x3f")][zx("0x1a")].on(zx("0x4e"),r(),{priority:zx("0x4c")}),t[zx("0x36")][zx("0x1a")].on("addMarker:suggestion",((t,e,n)=>{n.options[zx("0x2c")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x4c")}),t[zx("0x3f")][zx("0x1a")].on(zx("0x2b"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e.markerName),i=n[zx("0x4a")](r);if(!i[zx("0x36")]||zx("0x3a")!=i[zx("0x36")][zx("0x26")])return;const x=o.mapper[zx("0x14")](e.markerName);if(x)for(const t of x)o[zx("0x20")][zx("0x3d")](zx("0xb")+s,t),o[zx("0x20")].removeClass(zx("0x1c"),t),o[zx("0x20")].removeAttribute(zx("0x44"),t),o[zx("0xd")][zx("0x2a")](t,e[zx("0x38")])}),{priority:"highest"}),n[zx("0x3e")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x1f")==n[zx("0x26")]){const t=n[zx("0x45")][0][zx("0x28")];return o(Yo(e,zx(t?"0x21":"0x3c")))}if(zx("0x3a")==n[zx("0x26")]){const t=n[zx("0x45")][0][zx("0x28")];return o(Yo(e,zx(t?"0x11":"0x43")))}}function o(t){return{type:zx("0x25"),content:Yo(e,zx("0x2"),t)}}}));const i=s[zx("0x0")]();n[zx("0x23")][zx("0x22")](zx("0x7"),zx("0x1f"),zx("0x41"),i),n[zx("0x23")].registerCustomCallback("formatBlock","setTableColumnHeader",zx("0x41"),i)}}const Wx=["setAttributes","keys","_suggestionFactory","push","position","set","getAttributes","getChanges","createRange","containsRange","clipboardOutput","batch","formatBlock","getSelectionAffectedTableCells","getSuggestionCallback","rootName","insertion","editing","tablePasteColumn","find","startsWith","subType","$graveyard","*Replace table cells*","tableCellBorderWidth","getSuggestion","register","tableCell","reduce","suggestion-td","element","markMultiRangeInsertion","has","tablePaste","column","getSuggestions","endRow","editingDowncast","getChildren","listenTo","insertColumns","getMarkers","options","oldRange","markers","findAncestor","move","rowInsertionIndexes","createTableWalker","getRows","tablePasteChainId","_splitMarkerName","registerPostFixer","getRowIndexes","getItems","get","columnInsertionRanges","getTableIfOnlyTableInContent","TrackChangesEditing","_tablePostFixingSubtypes","tableCellBackgroundColor","suggestionLoaded","change","getChild","tableCellBorderStyle","low","columnInsertionIndexes","next","editor","isEmpty","document","showSuggestionHighlights","createRangeIn","from","filter","Users","endColumn","tablePasteCell","table","_createdBatches","createRangeOn","setAttribute","ck-suggestion-marker-insertion","removeRows","getContainedElement","getAllAdjacentSuggestions","wrap","suggestion","getRange","return","attributes","last","markerToHighlight","nextSibling","TableUtils","first","plugins","deletion","view","isInContent","suggestionUnloaded","markMultiRangeDeletion","suggestion:formatBlock:tablePasteCell","createElement","markerAttributes","start","every","hasSuggestion","removeMarker","model","previousSibling","getChangedMarkers","stop","_getCoordsForCells","discard","getShiftedBy","add","deletionRanges","author","tableCellSuggestion","columns","differ","selection","markMultiRangeBlockFormat","length","end","fill","remove","schema","activeMarkers","for","previous","cells","_descriptionFactory","trackChanges","high","name","includes","insertContent","_replaceTableSlotCell","newRange","tableCellHorizontalAlignment","fromEntries","commands","ck-suggestion-marker--active","getColumnIndexes","documentSelection","dataDowncast","ck-suggestion-marker","conversion","createPositionBefore","join","insert","map","tablePasteRow","registerCustomCallback","_isForcedDefaultExecutionBlock","unwrap","content","TableClipboard","removeColumns","accept","getRanges"];var Kx,qx;Kx=Wx,qx=336,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Wx[t-=0]},$x=[Xx("0xe"),"tableCellBorderColor",Xx("0x36"),Xx("0x83"),"tableCellVerticalAlignment",Xx("0x32"),"tableCellPadding"],Jx=Object[Xx("0x84")]($x[Xx("0x8f")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}afterInit(){const t=this.editor;if(!t[Xx("0x56")].has(Xx("0x95")))return;const n=t.plugins[Xx("0x2d")](Xx("0x30")),o=t.plugins.get(Xx("0x54")),s=t[Xx("0x56")][Xx("0x2d")](wx),r=t[Xx("0x56")][Xx("0x2d")](Xx("0x95"));s[Xx("0x31")][Xx("0x9c")](Xx("0x90"),"tablePasteColumn"),t.model[Xx("0x76")][Xx("0x10")](Xx("0x6d"),{allowIn:Xx("0x11"),allowContentOf:Xx("0x11"),isLimit:!0}),t[Xx("0x8b")].elementToElement({model:"tableCellSuggestion",view:Xx("0x13")});let i=null;t.model.on(Xx("0x80"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x72")]-1];l&&l.forceDefaultExecution||n[Xx("0x92")]||this[Xx("0x3a")][Xx("0x85")][Xx("0x2d")](Xx("0x7c")).value&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x88")))return!1;const r=s[Xx("0x2f")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x3")](n[Xx("0x3c")][Xx("0x70")]);if(!i[Xx("0x72")])return!1;const x=i[0][Xx("0x23")](Xx("0x44")),a=o[Xx("0x2b")](i),c=o[Xx("0x87")](i),l={startRow:a.first,endRow:a[Xx("0x51")],startColumn:c[Xx("0x55")],endColumn:c[Xx("0x51")]};return 1==i[Xx("0x72")]&&(l[Xx("0x1a")]+=o[Xx("0x27")](r)-1,l[Xx("0x42")]+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x63")],o,r)&&(s[Xx("0x66")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[Xx("0x34")]((()=>{t.model[Xx("0x80")](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[Xx("0x72")]&&n.markMultiRangeInsertion(s,Xx("0x90"),{tablePasteChainId:o}),r[Xx("0x72")]&&n[Xx("0x15")](r,Xx("0x8"),{tablePasteChainId:o}),a.length&&n[Xx("0x15")](a,Xx("0x17"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x72")]&&n[Xx("0x5b")](c,Xx("0x17"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x71")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x43"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e.find((t=>t[Xx("0x4e")]().isEqual(r)));i&&n.push([i[Xx("0x7e")],s])}n[Xx("0x72")]&&d[Xx("0x47")](Xx("0x5e"),Object[Xx("0x84")](n))}i=null})))}),{priority:e.priorities[Xx("0x7d")]+10}),t[Xx("0x56")][Xx("0x2d")](Xx("0x95")).on(Xx("0x81"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x66")]();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t[Xx("0x4f")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x35")](0));for(const t of Array[Xx("0x3f")](x[Xx("0x1c")]()))s[Xx("0x8e")](t,r,Xx("0x73"));const t=i[Xx("0x25")][Xx("0x7f")](n.row),e=i[Xx("0x38")][Xx("0x7f")](n[Xx("0x18")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Xx("0x3e")](r));else{const t=s[Xx("0x5d")](Xx("0x6d")),e=s[Xx("0x5d")](Xx("0x6d"));s[Xx("0x4c")](s[Xx("0x3e")](r),e),s[Xx("0x8e")](t,r,0);for(const e of Array[Xx("0x3f")](x[Xx("0x1c")]()))s.insert(e,t,Xx("0x73"));l=s[Xx("0x46")](t),d=s[Xx("0x46")](e)}const u=Array[Xx("0x3f")](x[Xx("0x9f")]())[Xx("0x40")]((([t])=>$x.includes(t)));i[Xx("0x7a")].push({element:r,attributes:u[Xx("0x72")]?Object[Xx("0x84")](u):null}),l&&i.insertionRanges[Xx("0x9c")](l),d&&i[Xx("0x6b")][Xx("0x9c")](d)}),{priority:Xx("0x7d")}),o.on(Xx("0x1e"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x6e")]||1;i[Xx("0x38")]=new Array(a)[Xx("0x74")](x)[Xx("0x8f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x26")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x2e")][Xx("0x9c")](t[Xx("0x63")][Xx("0x46")](e))}),{priority:Xx("0x37")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x25")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x26")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges.push(t[Xx("0x63")][Xx("0x46")](e))}),{priority:"low"}),n[Xx("0x7b")].registerDescriptionCallback((e=>{if(e.subType&&e[Xx("0xb")][Xx("0xa")](Xx("0x17")))return e[Xx("0x79")]?{}:{type:Xx("0x6"),content:Yo(t.locale,Xx("0xd"))}}));const x=()=>{};for(const t of[Xx("0x17"),Xx("0x8"),Xx("0x90"),Xx("0x43")])n[Xx("0x9b")][Xx("0x91")](Xx("0x6"),t,"join",x),n[Xx("0x9b")][Xx("0x91")]("deletion",t,Xx("0x8d"),x);n._suggestionFactory[Xx("0x91")](Xx("0x2"),Xx("0x43"),Xx("0x68"),x),n[Xx("0x9b")][Xx("0x91")](Xx("0x2"),Xx("0x43"),Xx("0x97"),((e,n,o)=>{const s=e[Xx("0x8f")]((t=>t[Xx("0x4a")]()))[Xx("0x40")]((t=>t)),r=new Map(s[Xx("0x8f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x7a")])e&&r[Xx("0x9e")](t,e);else if(o&&o[Xx("0x5e")])for(const[e,n]of Object.entries(o[Xx("0x5e")])){const o=t.model[Xx("0x22")].get(e),s=o?o[Xx("0x4e")]()[Xx("0x4a")]():null;s&&r[Xx("0x9e")](s,n)}t[Xx("0x63")][Xx("0x34")]((t=>{for(const[e,n]of r)t[Xx("0x99")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x9b")][Xx("0x91")](e,Xx("0x17"),o,((s,r,i)=>{t[Xx("0x63")][Xx("0x34")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x5f")].nodeAfter;e.is(Xx("0x14"),Xx("0x6d"))&&x[Xx("0x9c")](e)}n._suggestionFactory[Xx("0x4")](e,null,o)(s,r,i);for(const e of x)Xx("0xc")!=e.root[Xx("0x5")]&&t[Xx("0x93")](e)}))}))};a(Xx("0x6"),Xx("0x97")),a(Xx("0x6"),"discard"),a("deletion",Xx("0x97")),a("deletion",Xx("0x68")),n[Xx("0x9b")][Xx("0x91")](Xx("0x6"),Xx("0x90"),Xx("0x68"),(t=>{const e=t[Xx("0x8f")]((t=>t[Xx("0x4a")]())),n=e[0][Xx("0x23")](Xx("0x44")),{minRow:r,maxRow:i}=s[Xx("0x67")](e);o[Xx("0x49")](n,{at:r,rows:i-r+1})})),n[Xx("0x9b")].registerCustomCallback(Xx("0x6"),"tablePasteColumn",Xx("0x68"),(t=>{const e=t.map((t=>t[Xx("0x4a")]())),n=e[0][Xx("0x23")](Xx("0x44")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x96")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0xb")]||!e[Xx("0xb")][Xx("0xa")](Xx("0x17")))return;const o=e.attributes[Xx("0x28")],s=n[Xx("0x19")]()[Xx("0x40")]((t=>t[Xx("0x59")]&&t[Xx("0x50")]&&t.attributes[Xx("0x28")]==o));s[Xx("0x72")]&&e[Xx("0x4b")]().length!=s.length&&s[Xx("0x12")](((t,e)=>(t[Xx("0x39")]=e,e[Xx("0x79")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t.markerName),s=[Xx("0x8a"),Xx("0x48")],r=n[Xx("0x77")][Xx("0x7f")](t.markerName);return r&&s.push(Xx("0x86")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x33"),c,{priority:"high"}),n.on(Xx("0x5a"),c,{priority:"high"}),t[Xx("0x63")][Xx("0x3c")][Xx("0x2a")]((()=>{let e=!1;const o=Array[Xx("0x3f")](t.model[Xx("0x3c")][Xx("0x6f")][Xx("0x65")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x29")](s);if(Xx("0x4d")!=o||Xx("0x57")!=i||r[Xx("0x21")])continue;if(!n[Xx("0x61")](x))continue;const a=n[Xx("0xf")](x)[Xx("0x98")](),c=t[Xx("0x56")].get(Xx("0x41")).me;for(const t of n[Xx("0x19")]())if(t[Xx("0x59")]&&t[Xx("0x6c")]==c&&"formatBlock"==t.type&&"tablePasteCell"==t[Xx("0xb")]&&t[Xx("0x98")]()[Xx("0x60")]((t=>a.some((e=>e[Xx("0xa2")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0x59")]&&(n[Xx("0x68")](),e=!0)}return e})),t[Xx("0x63")][Xx("0x3c")][Xx("0x2a")]((e=>{const o=t[Xx("0x85")][Xx("0x2d")]("redo");if(!o||!o[Xx("0x45")][Xx("0x16")](e[Xx("0x1")]))return!1;let s=!1;const r=t.plugins[Xx("0x2d")]("Users").me,i=t.model[Xx("0x3c")][Xx("0x6f")][Xx("0xa0")](),x=Array[Xx("0x3f")](t.model.document.differ[Xx("0x65")]())[Xx("0x40")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Xx("0x4d")==o&&Xx("0x17")==s&&i==r.id&&!e[Xx("0x21")]}));for(const t of i){if(Xx("0x8e")!=t.type||Xx("0x6d")!=t[Xx("0x7e")]||1!=t[Xx("0x72")])continue;const n=e[Xx("0xa1")](t[Xx("0x9d")],t.position[Xx("0x69")](1));if(!x[Xx("0x9")]((({data:t})=>t.newRange.isEqual(n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x82")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x63")][Xx("0x3c")].registerPostFixer((e=>{let o=!1;const s=t[Xx("0x56")][Xx("0x2d")](Xx("0x41")).me,r=n[Xx("0x19")]()[Xx("0x40")]((t=>t[Xx("0x59")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0xb")])for(const e of t[Xx("0x1f")]()){const n=e.getRange().getContainedElement();if(n)if(n.is(Xx("0x14"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x62")](e[Xx("0x7e")]),i[Xx("0x6a")](n),o=!0;const s=n[Xx("0x53")],r=n[Xx("0x64")],a=s&&s.is("element",Xx("0x6d")),c=r&&r.is(Xx("0x14"),Xx("0x6d"));a&&!i[Xx("0x16")](s)&&x.add(s),c&&!i[Xx("0x16")](r)&&x[Xx("0x6a")](r)}else n.is(Xx("0x14"),"paragraph")&&n.isEmpty&&(t[Xx("0x62")](e[Xx("0x7e")]),o=!0)}else if("tablePasteCell"==t[Xx("0xb")]){if(!t[Xx("0x50")]||!t[Xx("0x50")][Xx("0x28")])continue;const e=t[Xx("0x50")].markerAttributes;if(e&&Object[Xx("0x9a")](e)[Xx("0x72")])continue;const n=t[Xx("0x50")][Xx("0x28")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0xb")][Xx("0xa")](Xx("0x17"))){if(!e[Xx("0x50")][Xx("0x28")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x50")][Xx("0x28")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x75")](t);for(const t of x)e[Xx("0x93")](t);return o})),t[Xx("0x8b")][Xx("0x78")](Xx("0x1b"))[Xx("0x52")]({model:Xx("0x5c"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0x8b")][Xx("0x78")](Xx("0x89"))[Xx("0x52")]({model:Xx("0x5c"),view:(t,e)=>e[Xx("0x20")][Xx("0x3d")]?l(t,!1):null,converterPriority:"high"});const d=t[Xx("0x7")][Xx("0x58")];this[Xx("0x1d")](d.document,Xx("0x0"),((t,e)=>{const n=[];for(const t of d[Xx("0x3e")](e[Xx("0x94")])[Xx("0x2c")]())t.is(Xx("0x14"),"suggestion-td")&&n.push(t);d[Xx("0x34")]((t=>{for(const e of n)t[Xx("0x24")](t[Xx("0x3e")](e),t[Xx("0x8c")](e)),t[Xx("0x75")](e)}))}))}}function Zx(t){if(t[Xx("0x3b")])return!0;const e=t[Xx("0x35")](0);return e.is("element","paragraph")&&e[Xx("0x3b")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x26")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["table","commandParams","tableWidth","resizeColumnWidths","afterInit","getContainedElement","columnWidths","_suggestionFactory","getTableColumnsWidths","document","handleResizeTableWidthCommand","TableColumnResizeEditing","discard","change","subType","getSuggestions","getSuggestionCallback","model","markBlockFormat","getSelectedElement","bind","getColumnGroupElement","_descriptionFactory","resizeTableWidth","*Format:* resize table","editor","handleSuggestionDescription","registerCustomCallback","enableCommand","formatGroupId","formatBlock","getAttribute","resizeTable","TrackChangesEditing","has","get","Users","data","plugins","format"];var ea,na;ea=ta,na=315,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x9")](){if(!this[oa("0x1e")].plugins[oa("0x27")](oa("0x10")))return;const t=this[oa("0x1e")][oa("0x3")][oa("0x0")](oa("0x26"));t[oa("0x21")](oa("0x1c"),this.handleResizeTableWidthCommand[oa("0x19")](this)),t[oa("0x21")](oa("0x8"),this[oa("0xf")].bind(this)),t[oa("0xc")][oa("0x20")](oa("0x23"),"resizeTable","accept",t[oa("0xc")][oa("0x15")]("formatBlock",null,oa("0x11"))),t[oa("0xc")][oa("0x20")](oa("0x23"),oa("0x25"),oa("0x11"),t[oa("0xc")][oa("0x15")]("formatBlock",null,"accept")),t[oa("0x1b")].registerDescriptionCallback(this[oa("0x1f")][oa("0x19")](this))}[oa("0xf")](t,e){const n=this[oa("0x1e")].plugins[oa("0x0")](oa("0x26")),o=this[oa("0x1e")][oa("0x3")].get(oa("0x10")),s=e[oa("0x5")]||this[oa("0x1e")][oa("0x16")][oa("0xe")].selection[oa("0x18")]();this[oa("0x1e")][oa("0x16")][oa("0x12")]((()=>{const r=o[oa("0x1a")](s);let i=r?o[oa("0xd")](r):null,x=s[oa("0x24")](oa("0x7"))||null;const a=e[oa("0x7")]||x,c=e[oa("0xb")]||i,l=this[oa("0x1e")][oa("0x3")].get(oa("0x1")).me;for(const t of n[oa("0x14")]()){const e=t[oa("0xa")]();if(oa("0x25")===t[oa("0x13")]&&e===s){t.author!==l&&t.discard();const e=t[oa("0x2")][oa("0x6")];x=e[0][oa("0x7")],i=e[0][oa("0xb")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x17")](s,{commandName:oa("0x1c"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x25")},[],oa("0x25"))}))}[oa("0x1f")](t){const{data:e}=t;if(e&&oa("0x25")===e[oa("0x22")]){const t=oa("0x1d");return{type:oa("0x4"),content:Yo(this[oa("0x1e")].locale,t)}}}}const ra=["enableCommand","insertTemplate","plugins","has","Template","get","afterInit"];var ia,xa;ia=ra,xa=203,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x6")](){const t=this.editor;t[aa("0x2")][aa("0x3")](aa("0x4"))&&t[aa("0x2")][aa("0x5")]("TrackChangesEditing")[aa("0x0")](aa("0x1"))}}const la=["insertTableOfContents","enableCommand","locale","tableOfContents","get","ELEMENT_TABLE_OF_CONTENTS","plugins","afterInit","TrackChangesEditing","editor"];var da,ua;da=la,ua=133,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this[ga("0x6")];if(!t.commands[ga("0x1")](ga("0x7")))return;t[ga("0x3")][ga("0x1")](ga("0x5"))[ga("0x8")](ga("0x7"));const e=t[ga("0x3")][ga("0x1")](ga("0x5")),n=t[ga("0x9")];e._descriptionFactory.registerElementLabel(ga("0x0"),(t=>Yo(n,ga("0x2"),t)))}}const fa=["locale","differ","isTouching","_descriptionFactory","plugins","isCollapsed","model","_splitMarkerName","title-content","document","suggestion","removeMarker","registerElementLabel","newRange","start","get","isEqual","ELEMENT_TITLE","getChangedMarkers","schema","forward","end","nodeBefore","updateMarker","Title","afterInit","getNearestSelectionRange","editor"];var ha,pa;ha=fa,pa=101,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x8")](){const t=this[ba("0xa")];if(!t[ba("0xf")].has(ba("0x7")))return;const e=t[ba("0xf")][ba("0x1a")]("TrackChangesEditing");e[ba("0xe")][ba("0x17")](ba("0x13"),(()=>Yo(t[ba("0xb")],ba("0x0")))),t[ba("0x11")].document.registerPostFixer((n=>{let o=!1;const s=Array.from(t[ba("0x11")][ba("0x14")][ba("0xc")][ba("0x1")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x12")](r);if(ba("0x15")!==s||!i[ba("0x18")])continue;const x=i[ba("0x18")],a=x[ba("0x4")][ba("0x5")];if(!a||!a.is("element",ba("0x13")))continue;if(!x[ba("0x19")][ba("0xd")](x.end))continue;const c=t[ba("0x11")][ba("0x2")][ba("0x9")](x[ba("0x4")],ba("0x3"));if(c&&c[ba("0x10")]){const t=n.createRange(x[ba("0x19")],c[ba("0x19")]);t[ba("0x1b")](x)||(n[ba("0x6")](r,{range:t}),o=!0)}o||(n[ba("0x16")](r),o=!0)}return o}))}}const _a=["has","TrackChangesEditing","editor","redo","plugins","enableCommand","UndoEditing"];var Ta,Ca;Ta=_a,Ca=244,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[ya("0x3")],e=t[ya("0x5")].get(ya("0x2"));t[ya("0x5")][ya("0x1")](ya("0x0"))&&(e.enableCommand("undo"),e[ya("0x6")](ya("0x4")))}}const Aa=["TableCaptionEditing","toggleTableCaption","get","editor","enableCommand","TrackChangesEditing","afterInit","plugins","has","requires"];var va,Ra;va=Aa,Ra=395,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x4")](){return[wx]}[Sa("0x1")](){const t=this[Sa("0x8")];t.plugins[Sa("0x3")](Sa("0x5"))&&t[Sa("0x2")][Sa("0x7")](Sa("0x0"))[Sa("0x9")](Sa("0x6"))}}const La=["DocumentListPropertiesEditing","*Change to:* %0","commandParams","DocumentListUtils","markMultiRangeBlockFormat","_LIST_","listReversed","getAttribute","has","*Format:* set order to regular","document","change","enableCommand","length","*Format:* set order to reversed","isFirstBlockOfListItem","replace","*Format:* set start index to %0","expandListBlocksToCompleteList","_getTranslationKeyForListStyle","plugins","selection","isListItemBlock","getListTypeFromListStyleType","from","config","startIndex","DocumentListPropertiesUtils","locale","handleListReversedCommand","filter","handleListStartCommand","listStyle","getSelectedBlocks","numbered","model","listType","commandName","_getSuggestionBlocksForListStyle","handleDescriptions","toUpperCase","type","styles","handleListStyleCommand","_getSuggestionBlocks","get","list.properties","listStart","format","bind","TrackChangesEditing","reversed","registerDescriptionCallback","push","afterInit","_descriptionFactory","editor"];var Na,Ma;Na=La,Ma=142,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x1a")](){if(!this[wa("0x1c")].plugins[wa("0x25")](wa("0x1d")))return;const t=this.editor[wa("0x36")].get(wa("0x12")),e=this[wa("0x1c")][wa("0x31")][wa("0x11")]("TrackChangesEditing");t[wa("0xe")]&&e[wa("0x29")](wa("0x4"),this[wa("0xf")][wa("0x15")](this)),t[wa("0x17")]&&e[wa("0x29")]("listReversed",this[wa("0x1")].bind(this)),t.startIndex&&e[wa("0x29")](wa("0x13"),this.handleListStartCommand.bind(this)),e[wa("0x1b")][wa("0x18")](this[wa("0xb")].bind(this))}handleListStyleCommand(t,e={}){const n=this.editor[wa("0x31")][wa("0x11")](wa("0x16")),o=this._getSuggestionBlocksForListStyle();this[wa("0x1c")][wa("0x7")][wa("0x28")]((()=>{n[wa("0x21")](o,{commandName:"listStyle",commandParams:[{type:e[wa("0xd")]}],formatGroupId:"listStyle"})}))}[wa("0x1")](t,e={}){const n=this[wa("0x1c")][wa("0x31")][wa("0x11")](wa("0x16")),o=this.editor.plugins[wa("0x11")](wa("0x20")),s=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&"numbered"===t[wa("0x24")](wa("0x8"))));null!==s&&this[wa("0x1c")].model[wa("0x28")]((()=>{n[wa("0x21")](s,{commandName:wa("0x23"),commandParams:[{reversed:e[wa("0x17")]}],formatGroupId:wa("0x23")})}))}[wa("0x3")](t,e={}){const n=this[wa("0x1c")].plugins[wa("0x11")]("TrackChangesEditing"),o=this.editor[wa("0x31")].get(wa("0x20")),s=this._getSuggestionBlocks((t=>o[wa("0x33")](t)&&wa("0x6")===t[wa("0x24")](wa("0x8"))));null!==s&&this.editor[wa("0x7")][wa("0x28")]((()=>{n[wa("0x21")](s,{commandName:wa("0x13"),commandParams:[{startIndex:e[wa("0x37")]}],formatGroupId:wa("0x13")})}))}[wa("0xb")](t){const e=this[wa("0x1c")][wa("0x0")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x9")]){case wa("0x4"):o=wa("0x1e"),s={type:wa("0x14"),content:Yo(e,o,Yo(e,this[wa("0x30")](n[wa("0x1f")][0][wa("0xd")])))};break;case"listReversed":o=n.commandParams[0][wa("0x17")]?wa("0x2b"):wa("0x26"),s={type:wa("0x14"),content:Yo(e,o)};break;case wa("0x13"):o=wa("0x2e"),s={type:"format",content:Yo(e,o,n.commandParams[0][wa("0x37")])}}return s}[wa("0xa")](){const t=this.editor[wa("0x31")].get(wa("0x20"));let e=Array[wa("0x35")](this[wa("0x1c")][wa("0x7")][wa("0x27")][wa("0x32")][wa("0x5")]());return e[wa("0x19")](...t[wa("0x2f")](e)),e=[...new Set(e)],e}[wa("0x10")](t){const e=this[wa("0x1c")].plugins[wa("0x11")](wa("0x20"));let n=Array[wa("0x35")](this[wa("0x1c")][wa("0x7")].document[wa("0x32")][wa("0x5")]())[wa("0x2")](t);if(!n[wa("0x2a")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x2c")](t)&&o.push(t);return o}[wa("0x30")](t){return"ELEMENT_"+this[wa("0x1c")][wa("0x31")].get(wa("0x38"))[wa("0x34")](t).toUpperCase()+wa("0x22")+t[wa("0xc")]()[wa("0x2d")](/-/g,"_")}}const Fa=["_descriptionFactory","tableCellBorderStyle","getContainedElement","getFirstPosition","tableCellBorderColor","tableProperties","tableCellWidth","subType","findAncestor","tableCellProperties","format","getSuggestionCallback","registerDescriptionCallback","getSelectionAffectedTableCells","handleDiscardAction","has","tableHeight","_handlePropertyChange","model","commandParams","table","tableBackgroundColor","pluginName","tableBorderStyle","registerCustomCallback","formatBlock","*Format:* change table properties","_suggestionFactory","join","TrackChangesTableProperties","start","tableAlignment","editor","afterInit","markBlockFormat","plugins","selection","tableCellPadding","TablePropertiesEditing","TableCellPropertiesEditing","TableUtils","enableCommand","removeAttribute","accept","getSuggestions","tableBorderWidth","tableCellBorderWidth","tableCellBackgroundColor","TrackChangesEditing","_getSuggestion","tableCellVerticalAlignment","document","discard","get","getAttribute","batch","enqueueChange","change"];var Pa,Da;Pa=Fa,Da=182,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x37")]=["tableBorderColor",Ba("0xf"),Ba("0x25"),Ba("0x17"),"tableWidth",Ba("0x8"),Ba("0xd")],this.tableCellProperties=[Ba("0x36"),Ba("0x33"),Ba("0x26"),Ba("0x1d"),Ba("0x38"),"tableCellHeight",Ba("0x27"),"tableCellHorizontalAlignment",Ba("0x2a")]}static get[Ba("0xe")](){return Ba("0x15")}[Ba("0x19")](){const t=this[Ba("0x18")][Ba("0x1b")][Ba("0x2d")](Ba("0x28"));if(this[Ba("0x18")][Ba("0x1b")][Ba("0x7")](Ba("0x1e"))){for(const e of this[Ba("0x37")])t[Ba("0x21")](e,((t,n)=>{const o=this.editor.model[Ba("0x2b")][Ba("0x1c")][Ba("0x35")]()[Ba("0x0")](Ba("0xc"));this._handlePropertyChange(e,[o],this[Ba("0x37")],Ba("0x37"),t,n)}));t[Ba("0x13")][Ba("0x10")]("formatBlock",Ba("0x37"),Ba("0x23"),t[Ba("0x13")][Ba("0x3")]("formatBlock",null,Ba("0x2c"))),t[Ba("0x13")][Ba("0x10")](Ba("0x11"),Ba("0x37"),"discard",((t,e)=>this[Ba("0x6")](this[Ba("0x37")],t,e))),t._suggestionFactory[Ba("0x10")]("formatBlock","tableProperties",Ba("0x14"),(()=>!1))}if(this[Ba("0x18")][Ba("0x1b")][Ba("0x7")](Ba("0x1f"))){for(const e of this.tableCellProperties)t[Ba("0x21")](e,((t,n)=>{const o=this[Ba("0x18")][Ba("0x1b")][Ba("0x2d")](Ba("0x20"))[Ba("0x5")](this[Ba("0x18")][Ba("0xa")][Ba("0x2b")][Ba("0x1c")]);this[Ba("0x9")](e,o,this[Ba("0x1")],Ba("0x1"),t,n)}));t[Ba("0x13")][Ba("0x10")](Ba("0x11"),"tableCellProperties",Ba("0x23"),t[Ba("0x13")][Ba("0x3")](Ba("0x11"),null,Ba("0x2c"))),t[Ba("0x13")][Ba("0x10")]("formatBlock",Ba("0x1"),Ba("0x2c"),((t,e)=>this.handleDiscardAction(this[Ba("0x1")],t,e))),t[Ba("0x13")][Ba("0x10")](Ba("0x11"),Ba("0x1"),Ba("0x14"),(()=>!1))}t[Ba("0x32")][Ba("0x4")]((t=>this.handleSuggestionDescription(t)))}[Ba("0x9")](t,e,n,o,s,r){const i=this[Ba("0x18")].plugins[Ba("0x2d")]("TrackChangesEditing");this[Ba("0x18")].model[Ba("0x30")](r[Ba("0x2f")],(()=>{for(const t of e)if(this[Ba("0x29")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x2e")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x1a")](t,{commandParams:[e]},[],o)}}))}[Ba("0x6")](t,e,n){const o=e[0][Ba("0x16")].nodeAfter,s=n[Ba("0xb")][0];this.editor.model[Ba("0x31")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x22")](n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[Ba("0x39")]){case Ba("0x37"):return{type:Ba("0x2"),content:Yo(this[Ba("0x18")].locale,Ba("0x12"))};case Ba("0x1"):return{type:Ba("0x2"),content:Yo(this[Ba("0x18")].locale,"*Format:* change table cell properties")}}}[Ba("0x29")](t,e){const n=this.editor[Ba("0x1b")][Ba("0x2d")](Ba("0x28"));for(const o of n[Ba("0x24")]({skipNotAttached:!0})){const n=o[Ba("0x34")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["sort","_setSuggestionData","containsPosition","removeMarker:suggestion:formatBlock","parent","insert","_checkSuggestionCorrectness","_mergeNestedSuggestions","getChangedMarkers","ck-suggestion-marker-","_defaultCallbacks","getRanges","newRange","enableCommand","always","createRange","suggestion:","markerToData","conversion","suggestionLoaded","track-changes-suggestion-data-mismatch","_commentsRepository","attributes","discard","markerNameToElements","addMarker:suggestion:formatBlock","formatBlock:discard","_findSuggestions","model","showSuggestionHighlights","oldRange","insertContent","author","_handleNewSuggestionMarker","howMany","options","TrackChangesEditing","dataReady","targetPosition","isIntersectingWithRange","isAtEnd","hasCommentThread","addMarkerName","acceptSuggestion","markerToHighlight","markerReady","resolve","documentSelection","dataDowncast","_getSuggestionData","createPositionAfter","formatBlock","_updateSuggestionData","consumable","isEqual","getFirstRange","_cutOutSuggestionMarker","acceptSelectedSuggestions","createRangeIn","end","isAtStart","item","document","isNextTo","_getExternalAuthor","clear","isAfter","isLimit","plugins","isSelectable","execute","registerCustomCallback","discardSuggestion","isLocal","_adapter","nodeAfter","backward","error-saving-suggestion-data-suggestion-discarded","_enabledCommands","applyOperation","_rangeIsInLocalUserInsertion","formatBlock:join","addSuggestion","_getAuthorFromId","getSuggestionCallback","$graveyard","PendingActions","rejected","editing","adapter","discardSelectedSuggestions","isCollapsed","catch","elementToElement","ready","formatBlock:accept","mapper","previous","deletion:join","formatInline:join","head","locale","subType","formatInline:","before","setTo","marker-count","getCustomProperty","markMultiRangeBlockFormat","registerPostFixer","ck-suggestion-marker","ck-suggestion-marker-formatBlock","consume","length","createdAt","createElement","getItems","_addThreadToSuggestion","fire","formatInline","size","start","moveTargetPosition","deletion:accept","markMultiRangeInsertion","addClass","getNearestSelectionRange","add","unbind","_removeSuggestion","push","suggestionUnloaded","deletion","then","filter","open","config","forceDefaultExecution","isMultiRange","addRange","selection","_isForcedDefaultExecutionBlock","trackChanges.mergeNestedSuggestions","some","change","low","hasComments","addHighlight","detach","refresh","element","suggestion","type","markInsertion","batch","ck-suggestion-marker--active","dataToMarker","trackChangesCommand","addMarker:suggestion","formatBlock:","clone","pluginName","markers","external:","elementEnd","isRemovable","getAttribute","track-changes-adapter-missing-getsuggestion","_splitMarkerName","_setSuggestionRange","suggestion-type","get","CommentsRepository","getCommentThread","@external","setAttribute","getIntersection","$marker","_model","getUser","hasSuggestion","getSuggestions","removeMarker","never","enqueueChange","$textProxy","addComment","move","authoredAt","formatInline:accept","activeMarkers","set","markMultiRangeDeletion","toViewElement","_customCallbacks","containsRangeInObject","track-changes-user-not-found","delete","isInsideObject","root","setSelection","skipNestingCheck","getDifference","addMarker","addSuggestionData","unbindElementFromMarkerName","_joinWithAdjacentSuggestions","PENDING_ACTION_SUGGESTION","value","getChanges","_suggestionFactory","getFirstMarker","formatGroupId","join","default","listenTo","values","deletion:","_descriptionFactory","markerName","_breakSuggestionMarker","acceptAllSuggestions","bindElementToMarker","getAllAdjacentSuggestions","stopListening","track-changes-suggestion-not-found","writer","isInContent","track-changes-adapter-already-set","forward","after","getMarkers","_suggestionState","schema","nodeBefore","accepted","getAncestors","split","rootName","remove","discardAllSuggestions","high","change:activeMarkers","removed","has","every","markInlineFormat","_refreshSuggestionsChain","from","containsRange","_registerDefaultCallbacks","group","removeMarkers","isOwn","name","define","splice","for","change:_saved","getLastMatchingPosition","substr","highest","isObject","_addSuggestionMarker","markDeletion","upcast","update:suggestion","_suggestions","getMultiRangeId","editor","_saved","collaboration.channelId","deleteContent","_editor","trackChanges.trackFormatChanges","data","editingDowncast","commentThread","includes","map","isUndo","init","formatInline:chain","stop","data-suggestion","isExternal","insertion:","buildSuggestion","accept","position","next","multipleBlocks","createPositionAt","addCommentThread","getShiftedBy","_trackFormatChanges","Users","_createSuggestion","isBefore","range","updateMarker","getSuggestion","elementStart","removeClass","return","createSelection","notReady","suggestionChanged","commands","addUser","commandName","trackChanges","insertion","fromCharCode","containsItem","normal","creator","_joinSuggestions","enableReadOnlyMode"];var Ga,Ha;Ga=Ua,Ha=317,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Va extends t.Plugin{static get requires(){return[za("0xae"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Vs,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Vi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Vx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xa3")](){return za("0x26")}constructor(t){function e(t){return t[za("0x119")]((t=>String[za("0x13b")](t))).join("")}super(t),this[za("0xc1")](za("0xc0"),[]),this.on(za("0xf4"),((e,n,o,s)=>{this._model[za("0x92")]((()=>{for(const e of[...s,...o])this[za("0xb4")][za("0xa4")].has(e)&&t[za("0x5a")].reconvertMarker(e)}))})),this[za("0xdc")]=new ss(this[za("0x10f")].model[za("0xeb")],this[za("0x10f")].locale),this[za("0x4c")]=null,this._suggestionFactory=new Wa(this[za("0x10f")]),this[za("0x10d")]=new Map,this._commentsRepository=t.plugins[za("0xad")]("CommentsRepository"),this[za("0x50")]=new Set,this[za("0xb4")]=this.editor[za("0x1e")],this[za("0xea")]=new WeakMap,this[za("0x8f")]=!1,t[za("0x8a")][za("0x101")](za("0x114"),za("0xd8")),this[za("0x129")]=t[za("0x8a")][za("0xad")](za("0x114")),t[za("0x8a")][za("0x101")](za("0x90"),!0),this._mergeNestedSuggestions=t[za("0x8a")].get("trackChanges.mergeNestedSuggestions"),this[za("0x9f")]=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,49,54,51,54])}[za("0x11b")](){const t=this.editor;t[za("0x14")].for("editingDowncast")[za("0x2e")]({model:"suggestion",view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0xdd")]),o=[za("0x70"),za("0xb")+n];let s=3e3;return this[za("0xc0")][za("0x118")](t[za("0xdd")])&&(o.push(za("0x9d")),s=3010),za("0x86")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion.for(za("0x32"))[za("0x81")]((e=>{e.on(za("0xa0"),((e,n,o)=>{if(!o[za("0x25")][za("0x1f")])return;const s=n[za("0x3f")];if(!s)return;const r=o[za("0x62")].toViewElement(s);t[za("0x1e")][za("0xeb")][za("0x108")](s)&&r&&!r[za("0x6d")]("widget")&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0xe4")])}),{priority:za("0xf3")})})),t[za("0x14")].for(za("0x32")).markerToHighlight({model:za("0x99"),view:(t,e)=>{if(!e.options[za("0x1f")])return null;const{type:n}=this[za("0xaa")](t[za("0xdd")]);return{classes:["ck-suggestion-marker","ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x3f")])return;if(o[za("0x3f")].is("selection"))return void s[za("0x37")][za("0x72")](o.item,n.name);const r=s.mapper[za("0xc3")](o[za("0x3f")]);if(!o.item.is(za("0x98"))||!t[za("0x1e")][za("0xeb")].isBlock(o.item)||r[za("0x6d")](za("0x95")))return;const{id:i}=this[za("0xaa")](o.markerName);s.writer[za("0x7f")]([za("0x70"),"ck-suggestion-marker-formatBlock"],r),s[za("0xe4")][za("0xb1")]("data-suggestion",i,r),s[za("0x62")][za("0xe0")](r,o[za("0xdd")]),e&&(this.activeMarkers[za("0x118")](o.markerName)?s[za("0xe4")][za("0x7f")](za("0x9d"),r):s[za("0xe4")][za("0x131")](za("0x9d"),r));for(const e of t[za("0x1e")][za("0x3c")](o.item)[za("0x76")]())s[za("0x37")][za("0x72")](e,n[za("0x100")]);s.consumable[za("0x72")](o.item,n.name)};t[za("0x14")][za("0x103")](za("0x32")).add((t=>{t.on(za("0x1b"),((t,e,o)=>{o.options[za("0x1f")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x107")})})),t[za("0x14")][za("0x103")](za("0x32"))[za("0x13")]({model:"suggestion",view:(t,e)=>e[za("0x25")].showSuggestionHighlights?null:{group:za("0x99"),name:t[za("0x106")](11)}}),t[za("0x14")][za("0x103")](za("0x10b"))[za("0x5f")]({view:{name:za("0x99"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0xa8")](za("0xac"))+":"+t[za("0xa8")]("id");return t[za("0xa8")](za("0x6c"))&&(n+=":"+t[za("0xa8")](za("0x6c"))),e[za("0x75")](za("0xb3"),{"data-name":n})}}),t[za("0x14")].for(za("0x10b"))[za("0x9e")]({view:za("0x99")}),t[za("0x14")][za("0x103")]("editingDowncast")[za("0x81")]((t=>{t.on(za("0x1b"),n(),{priority:za("0xf3")})})),t[za("0x14")].for(za("0x116"))[za("0x81")]((t=>{t.on(za("0x5"),((t,e,n)=>{const o=n[za("0x62")][za("0x1a")](e[za("0xdd")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[za("0xe4")][za("0x131")](["ck-suggestion-marker",za("0x71"),za("0x9d")],t),n[za("0xe4")].removeAttribute(za("0x11e"),t),n[za("0x62")][za("0xcf")](t,e.markerName))}),{priority:za("0xf3")})})),t[za("0x1e")][za("0x40")][za("0x6f")]((e=>{let n=!1;const o=Array[za("0xfa")](t[za("0x1e")][za("0x40")].differ[za("0xa")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xaa")](x);if(za("0x99")!==o)continue;const d=this[za("0x10d")][za("0xad")](l);if(null!=a[za("0xe")])if(za("0x79")==c&&(n=n||Xa(a[za("0xe")],x,e,t[za("0x1e")][za("0xeb")])),a[za("0xe")][za("0x5d")]||za("0x57")==a.newRange[za("0xc9")][za("0xf0")]||za("0x35")==c&&!Ja(a[za("0xe")])||za("0x86")==c&&(qa(i=a.newRange)||(r=i)[za("0x7b")][za("0x6")]==r.end.nodeBefore&&r.start[za("0x2a")]))e[za("0xb8")](x),n=!0;else{if(!d||!d.isInContent)continue;s[za("0x81")](d)}}var r,i;return s[za("0x7a")]>0&&(n=!!this[za("0xd0")](s)||n),n})),t[za("0x1e")].document[za("0x6f")]((e=>{let n=!1;for(const o of t[za("0x1e")][za("0x40")].differ[za("0xd3")]()){if(za("0x7")!=o[za("0x9a")])continue;const s=o[za("0x123")][za("0x128")](o[za("0x73")]);if(s[za("0x2a")])for(const r of this[za("0x10d")][za("0xda")]()){if(r[za("0x8c")]||!r[za("0xe5")])continue;if("formatBlock"!=r[za("0x9a")])continue;const i=r.getFirstRange();if(i[za("0x7b")][za("0x6")]!=i[za("0x3d")][za("0x6")]&&i[za("0x3d")].isEqual(o.position)){const o=t[za("0x1e")].createRange(i[za("0x7b")],s);e[za("0x12e")](r[za("0xd5")](),{range:o}),n=!0}}}return n})),t[za("0x1e")][za("0xa4")].on(za("0x10c"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0xaa")](e[za("0x100")]),n=this._suggestions.get(t);n&&n[za("0x2c")](e.name)}})),t[za("0x1e")][za("0x40")].on("change:data",(()=>{const e=Array[za("0xfa")](t[za("0x1e")][za("0x40")].differ.getChangedMarkers()).filter((t=>za("0x99")===this[za("0xaa")](t[za("0x100")])[za("0xfd")]));if(0===e[za("0x73")])return;e[za("0x2")](((t,e)=>{const n=t[za("0x115")].oldRange,o=e.data[za("0x20")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[za("0x12c")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s[za("0x20")]){const e=this[za("0x23")](t);o[za("0x81")](e)}else{const t=this[za("0x10d")][za("0xad")](e);null!==s[za("0xe")]||t[za("0xe5")]?(n[za("0x81")](t[za("0x66")]),o.add(t)):this._removeSuggestion(t)}}o.size>0&&this[za("0xf9")](o);for(const t of n)this[za("0x78")]("suggestionChanged",t)})),t[za("0x1e")].on(za("0x51"),((e,n)=>{const o=n[0];if(!this[za("0x10d")][za("0x7a")])return;if(!o.isDocumentOperation)return;if(o[za("0x9c")][za("0x11a")]||!o[za("0x9c")][za("0x4b")])return;let s,r;switch(o.type){case za("0x7"):s=t[za("0x1e")][za("0x126")](o[za("0x123")]),r=s[za("0x128")](o[za("0x24")]);break;case"split":s=t[za("0x1e")][za("0x126")](o.splitPosition),r=t[za("0x1e")][za("0x126")](o[za("0x7c")]);break;case za("0xbd"):s=t[za("0x1e")].createPositionAt(o[za("0x28")]),r=s[za("0x128")](o[za("0x24")]);break;default:return}const i=t.model[za("0x11")](s,r);t[za("0x1e")][za("0x92")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x1d")](i)){if(t[za("0x8c")])continue;if("formatInline"==t[za("0x9a")])continue;const n=t[za("0x115")]&&t[za("0x115")][za("0x125")];(za("0x35")!=t.type||za("0xef")==o[za("0x9a")]&&!n)&&(e[za("0xc5")]||"insertion"==t.type&&e[za("0xff")]||t.getFirstRange()[za("0xfb")](i)&&this[za("0xde")](t,s,r))}}))}),{priority:"lowest"}),t[za("0x1e")].on(za("0x112"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x8b")])return;if(this[za("0x8f")])return;if(!this[za("0x9f")][za("0xd2")])return;if(o[za("0x5d")])return;const r=t.model[za("0xeb")],{start:i,end:x}=o[za("0x39")](),a=i[za("0x4d")]&&r[za("0x45")](i.nodeAfter)?null:r.getNearestSelectionRange(i,za("0xe7")),c=x[za("0xec")]&&r[za("0x45")](x[za("0xec")])?null:r[za("0x80")](x,za("0x4e")),l=t[za("0x1e")][za("0x11")](a?a[za("0x7b")]:i,c?c.end:x);t[za("0x1e")][za("0x92")]((e=>{this[za("0x10a")](l);const n=t[za("0x1e")].schema[za("0x80")](l[za("0x7b")]);o.is(za("0x31"))?e.setSelection(n):o[za("0x6b")](n)})),e.stop()}),{priority:e.priorities[za("0x13d")]+10}),t[za("0x1e")].on("insertContent",((e,n)=>{const o=n[n[za("0x73")]-1];o&&o[za("0x8b")]||this[za("0x8f")]||this[za("0x9f")][za("0xd2")]&&(t[za("0x1e")][za("0x92")]((()=>{let o=t[za("0x1e")][za("0x21")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x132")]=o[za("0xa2")]();const s=o.end[za("0xec")],r=t[za("0x1e")][za("0xeb")];s&&r.isBlock(s)&&!r[za("0x108")](s)&&(o=t[za("0x1e")][za("0x11")](o[za("0x7b")],t[za("0x1e")][za("0x126")](s,za("0x3d")))),this[za("0x9b")](o)})),e[za("0x11d")]())}),{priority:"high"}),this[za("0x10f")][za("0x136")][za("0x81")](za("0x139"),this[za("0x9f")]),this[za("0xf")](za("0x139"));const o=new p(t,this[za("0x10d")]);t.commands.add(za("0x2d"),o),this.enableCommand(za("0x2d"));const s=new C(t,this._suggestions);t[za("0x136")].add(za("0x4a"),s),this.enableCommand(za("0x4a")),t[za("0x136")].add("acceptAllSuggestions",new F(t,o,this[za("0x10d")])),this.enableCommand(za("0xdf")),t.commands[za("0x81")](za("0xf2"),new F(t,s,this[za("0x10d")])),this[za("0xf")]("discardAllSuggestions"),t.commands[za("0x81")](za("0x3b"),new U(t,o,this[za("0x10d")])),this[za("0xf")](za("0x3b")),t[za("0x136")][za("0x81")](za("0x5c"),new U(t,s,this[za("0x10d")])),this[za("0xf")](za("0x5c"));const r=t.plugins[za("0xad")]("CommentsRepository");this[za("0xd9")](r,za("0xbc"),((t,{threadId:e})=>{const n=this[za("0x10d")].get(e);n&&n[za("0x117")]&&1===n[za("0x117")][za("0x73")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:za("0x93")}),this[za("0xd9")](r,"removeComment",((t,{threadId:e})=>{const n=this[za("0x10d")][za("0xad")](e);n&&n.commentThread&&!n[za("0x117")][za("0x73")]&&this[za("0x36")](e,{hasComments:!1})}),{priority:"low"})}set[za("0x5b")](t){if(this[za("0x4c")])throw new e.CKEditorError(za("0xe6"),this);this[za("0x4c")]=t}get[za("0x5b")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0xda")]())t&&!e[za("0xe5")]||n[za("0x84")](e);return e?n[za("0x119")]((t=>t.toJSON())):n}[za("0x12f")](t){const n=this[za("0x10d")][za("0xad")](t);if(!n)throw new e.CKEditorError(za("0xe3"),this);return n}[za("0xb6")](t){return this[za("0x10d")][za("0xf6")](t)}[za("0xce")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x9a")][za("0xef")](":"),i=this[za("0x10d")][za("0xad")](n)||this[za("0x12b")](s,r,n,e,o);if(this[za("0x77")](i),this[za("0x8")](i,s,r||null,e),i[za("0x74")]=t.createdAt,o&&o[za("0xb0")]){const t=o["@external"],e=this._getExternalAuthor(t.authorName);i[za("0xbe")]=t[za("0x74")],i[za("0x22")]=e,i[za("0x11f")]=!0}else i[za("0xbe")]=t.createdAt;switch(t[za("0x115")]&&(i[za("0x115")]=t.data),t[za("0x18")]&&(i[za("0x18")]=t[za("0x18")]),this[za("0x4c")]&&this._adapter[za("0x54")]||(i[za("0x110")]=!0),this[za("0xea")].get(i)){case za("0x134"):this[za("0xea")][za("0xc1")](i,"dataReady");break;case za("0x2f"):i[za("0xe5")]?(this[za("0xea")][za("0xc1")](i,za("0x60")),this[za("0x78")]("suggestionLoaded",i)):this[za("0xea")][za("0xc1")](i,"removed")}return i}[za("0x2d")](t){this[za("0x8b")]((()=>{this.editor.model[za("0x92")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x122")]()}))}))}[za("0x4a")](t){this.forceDefaultExecution((()=>{this[za("0x10f")][za("0x1e")][za("0x92")]((()=>{for(const e of t[za("0xe1")]())e[za("0x19")]()}))}))}[za("0xf")](t,n){const o=this[za("0x10f")][za("0x136")][za("0xad")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x50")][za("0x81")](o),n&&o.on(za("0x48"),((t,e)=>{this.trackChangesCommand.value&&(this[za("0x8f")]||e.length>0&&e[e[za("0x73")]-1]&&e[e[za("0x73")]-1][za("0x8b")]||(n(((...t)=>o[za("0x48")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0xf3")})}forceDefaultExecution(t){let n,o;const s=this[za("0x8f")];this[za("0x8f")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x5d")])return null;const s=this[za("0x10f")].plugins.get("Users").me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,za("0x13a")))if(o[za("0xff")]){if(!o.isNextTo){if(!this._mergeNestedSuggestions&&o.containsRangeInObject)continue;return e}if(n==e[za("0x68")]){const n=e[za("0x39")]();return n[za("0x7b")].isEqual(t[za("0x3d")])?this[za("0xab")](e,this[za("0xb4")][za("0x11")](t.start,n[za("0x3d")])):this._setSuggestionRange(e,this._model[za("0x11")](n.start,t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x120")+n:za("0x13a"),a=this[za("0x3")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x109")](x,r,i,t),a}[za("0x7e")](t,n="multi",o={}){const s=this.editor[za("0x46")][za("0xad")](za("0x12a")).me,r=this._suggestionFactory.getSuggestionCallback("insertion",n,za("0xd7"));for(const e of this[za("0xb7")]())if(e[za("0x22")].id==s.id&&za("0x13a")==e.type&&e[za("0x68")]==n&&(r(e[za("0xd")](),t)||r(t,e[za("0xd")]()))){for(const n of t)e[za("0x8d")](n);return e}if(this[za("0x9")])for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,za("0x13a"))){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0xfb")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[za("0x3")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x109")](a,i,x,e,Zo[za("0x10e")]());return c}[za("0xf8")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x5d")])return null;if(za("0xb9")===this[za("0x129")]){const e=this[za("0xd4")].getSuggestionCallback(za("0x79"),o,za("0x122"));return this[za("0x8b")]((()=>e([t],n,s))),null}const r=this[za("0x10f")][za("0x46")][za("0xad")]("Users").me,i=[];if(za("0x10")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0x1d")](t,za("0x13a")))n[za("0xff")]&&!n[za("0xc8")]&&i.push(...e[za("0xd")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xb2")](o);e&&n[za("0x84")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x73")];){const o=n[e][za("0xcc")](t);n[za("0x102")](e,1,...o),e+=o.length}}return n}(t,i);x.length&&this._model.change((()=>{for(const t of x){const e=this[za("0xd4")][za("0x56")](za("0x79"),o,za("0x122"));this[za("0x8b")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this[za("0x1d")](t,za("0x79"))){if(!n[za("0xff")])continue;if(e[za("0x68")]!=o)continue;const s=e.getFirstRange();if(s[za("0xfb")](t,!0))return null;x=x[za("0x12c")](s[za("0x7b")])?x:s[za("0x7b")],a=a.isAfter(s[za("0x3d")])?a:s[za("0x3d")],i?s[za("0x7b")][za("0x12c")](i[za("0x39")]()[za("0x7b")])?(i[za("0xfe")](),i=e):e[za("0xfe")]():i=e}const c=this._model[za("0x11")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0x69")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0xd6")]||(n.formatGroupId=n[za("0x138")]),n.multipleBlocks=t.is(za("0x12d")),s=s||$a(n);const i=o[za("0x119")]((t=>Qa(t,this[za("0xb4")]))),x=t.is(za("0x12d"))?t:Qa(t,this[za("0xb4")]);if(za("0xb9")===this[za("0x129")]){const t=this[za("0xd4")][za("0x56")]("formatBlock",s,za("0x122"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i[za("0x84")](x);let a=!0;for(const t of i)if(!this[za("0x52")](t)){a=!1;break}if(a&&za("0x10")!==this._trackFormatChanges){const t=this._suggestionFactory[za("0x56")](za("0x35"),s,za("0x122"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0x7b")],d=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e[za("0xff")]||e.isNextTo||e.containsRangeInObject||e.isInsideObject)continue;if(t[za("0x115")][za("0xd6")]!=n[za("0xd6")])continue;const o=t[za("0x39")]();if(t[za("0x68")]==s){if(o.containsRange(x,!0))return null;l=l[za("0x12c")](o[za("0x7b")])?l:o.start,d=d.isAfter(o[za("0x3d")])?d:o[za("0x3d")],c?o[za("0x7b")][za("0x12c")](c[za("0x39")]()[za("0x7b")])?(c[za("0xfe")](),c=t):t.removeMarkers():c=t}else{const e=x[za("0xb2")](o);this[za("0x3a")](t,e)}}const u=this[za("0x10f")][za("0x46")][za("0xad")](za("0x12a")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0xab")](c,this[za("0xb4")][za("0x11")](l,d)),c;{const t=this[za("0x3")]({id:g,type:za("0xa1")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x109")]("formatBlock:"+s,g,m,this[za("0xb4")][za("0x11")](l,d)),t}}[za("0x6e")](t,n,o=[],s=null,r={}){n[za("0xd6")]||(n[za("0xd6")]=n.commandName);const i=t[0];n.multipleBlocks=i.is(za("0x12d")),s=s||$a(n);const x=o[za("0x119")]((t=>Qa(t,this._model))),a=i.is(za("0x12d"))?t:t[za("0x119")]((t=>Qa(t,this[za("0xb4")])));if("never"===this[za("0x129")]){const t=this[za("0xd4")][za("0x56")](za("0x35"),s,za("0x122"));return this[za("0x8b")]((()=>t(a,n,r))),null}x[za("0x84")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&za("0x10")!==this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(za("0x35"),s,za("0x122"));return this[za("0x8b")]((()=>t(a,n,r))),null}const l=this[za("0x10f")][za("0x46")][za("0xad")]("Users").me;for(const t of this[za("0xb7")]()){if(t[za("0x22")].id!=l.id)continue;if("formatBlock"!=t.type||t[za("0x115")].formatGroupId!=n[za("0xd6")])continue;const e=t[za("0x68")]==s;for(let n=0;n<a[za("0x73")];n++){const o=a[n];for(const s of t[za("0xe9")]()){const r=s.getRange();if(o[za("0x38")](r)){e?(a.splice(n,1),n--):t[za("0xb8")](s[za("0x100")]);break}}}}if(0==a[za("0x73")])return null;const d=this[za("0xd4")][za("0x56")](za("0x35"),s,za("0xd7"));for(const t of this[za("0xb7")]())if(t[za("0x22")].id==l.id&&za("0x35")==t.type&&t[za("0x115")].formatGroupId==n[za("0xd6")]&&t[za("0x68")]==s&&(d(t[za("0xd")](),a)||d(a,t[za("0xd")]()))){for(const e of a)t[za("0x8d")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xa1")+s,f=this[za("0x3")]({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[za("0x10e")]());return f}[za("0x10a")](t,n=null,o={}){if(t[za("0x5d")])return null;const s=this[za("0x10f")][za("0x46")].get(za("0x12a")).me,r=new i.LiveRange(t[za("0x7b")],t[za("0x3d")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x13a")))if(e[za("0xff")]&&!e.isNextTo)if(t[za("0x8c")]){const e=t[za("0xd")]()[za("0x88")]((t=>"$graveyard"!=t.root[za("0xf0")]));if(e[za("0xf7")]((t=>r[za("0xfb")](t,!0)))&&t[za("0x19")](),e[za("0x91")]((t=>t.containsRange(r,!0)))){const t=this[za("0xd4")][za("0x56")](za("0x86"),n,"accept");return this[za("0x8b")]((()=>t([r],null,o))),null}}else{const e=r[za("0xb2")](t[za("0x39")]());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x96")](),r.isCollapsed||"$graveyard"==r.root.rootName)return null;let x=null,a=r[za("0x7b")],c=r[za("0x3d")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,"deletion"))if(e[za("0xff")])if(t.isMultiRange&&this._mergeNestedSuggestions){let e=!0;for(const n of t.getRanges()){if(n.containsRange(r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[za("0x19")]()}else{const n=t[za("0x39")]();if(n[za("0xfb")](r,!0)){if(!this._mergeNestedSuggestions&&e[za("0xc5")])continue;return t}a=a[za("0x12c")](n[za("0x7b")])?a:n[za("0x7b")],c=c[za("0x44")](n[za("0x3d")])?c:n[za("0x3d")],x?n[za("0x7b")][za("0x12c")](x.getFirstRange()[za("0x7b")])?(x[za("0xfe")](),x=t):t.removeMarkers():x=t}if(x)return this[za("0xab")](x,this._model[za("0x11")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xb4")][za("0x11")](a,c),i=s.id,x=n?za("0xdb")+n:"deletion",l=this[za("0x3")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x109")](x,t,i,r),l}}[za("0xc2")](t,n="multi",o={}){const s=this[za("0x10f")][za("0x46")][za("0xad")](za("0x12a")).me,r=t[za("0x119")]((t=>new i.LiveRange(t.start,t[za("0x3d")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x1d")](t,za("0x13a")))n[za("0xff")]&&!n[za("0x41")]&&x[za("0x81")](e);for(const e of x)if(e.isMultiRange){const s=e[za("0xd")]();if((!e.attributes||!e[za("0x18")][za("0xcb")])&&s[za("0xf7")]((t=>r[za("0x91")]((e=>e[za("0xfb")](t,!0)))))&&e[za("0x19")](),r[za("0xf7")]((t=>s[za("0x91")]((e=>e[za("0xfb")](t,!0)))))){const e=this[za("0xd4")][za("0x56")](za("0x86"),n,za("0x122"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0x91")]((e=>e[za("0xfb")](t,!0)))&&e[za("0x19")](),r[za("0xf7")]((e=>t[za("0xfb")](e,!0)))){const t=this[za("0xd4")].getSuggestionCallback("deletion",n,"accept");return this[za("0x8b")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory.getSuggestionCallback("deletion",n,za("0xd7"));let c=null;for(const t of this.getSuggestions())if(t[za("0x22")].id==s.id&&t[za("0xe5")]&&za("0x86")==t[za("0x9a")]&&t[za("0x68")]==n&&(a(t[za("0xd")](),r)||a(r,t[za("0xd")]())))if(c){if(t[za("0x117")]&&t[za("0x117")][za("0x73")])continue;for(const e of t.getRanges())c[za("0x29")](e)||c[za("0x8d")](e);t[za("0xfe")]()}else{c=t;for(const e of r)t[za("0x29")](e)||t[za("0x8d")](e)}if(c)return c;x[za("0x43")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x1d")](t,"deletion"))n[za("0xff")]&&x[za("0x81")](e);for(const t of x){const e=t[za("0xd")]();if((!o||!o[za("0xcb")])&&r[za("0xf7")]((t=>e[za("0x91")]((e=>e[za("0xfb")](t,!0))))))return t;(!t[za("0x18")]||!t[za("0x18")].skipNestingCheck)&&e.every((t=>r[za("0x91")]((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=za("0xdb")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x96")](),t[za("0x5d")]||za("0x57")==t[za("0xc9")][za("0xf0")]||this[za("0x109")](u,l,d,t,Zo.getMultiRangeId());return g}[za("0xab")](t,e){const n=t[za("0xd5")]();this._model[za("0x92")]((t=>{t[za("0x12e")](n,{range:e})}))}[za("0x77")](t){const e=t.id,n=this[za("0x10f")][za("0x8a")][za("0xad")](za("0x111"));this._commentsRepository[za("0x2b")](e)||this._commentsRepository[za("0x127")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0xaf")](e);o[za("0x82")]("isRemovable"),o[za("0xa7")]=!1,t[za("0x117")]=o}[za("0x8")](t,n,o,s){if(t[za("0x9a")]!=n||t[za("0x68")]!=o||t[za("0x13e")].id!=s)throw this[za("0x10f")][za("0x1")](za("0x16")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0x3a")](t,n){const o=t.getFirstRange();if(n[za("0x38")](o))t[za("0xfe")]();else if(o[za("0xfb")](n)){const s=this[za("0xb4")][za("0x126")](n[za("0x7b")][za("0xec")],"end");this._setSuggestionRange(t,this[za("0xb4")][za("0x11")](o[za("0x7b")],s));const r=(0,e.uid)(),i=t[za("0x13e")].id,x=t[za("0x9a")]+":"+t[za("0x68")];this[za("0x3")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x115")],attributes:t[za("0x18")]});const a=this._model[za("0x126")](n[za("0x3d")][za("0x6")],za("0xe8")),c=this[za("0xb4")][za("0x11")](a,o[za("0x3d")]);this[za("0x109")](x,r,i,c)}else if(o[za("0x4")](n[za("0x7b")])){const e=this[za("0xb4")].createPositionAt(n.start[za("0xec")],za("0x3d"));this[za("0xab")](t,this[za("0xb4")][za("0x11")](o.start,e))}else{const e=this[za("0xb4")][za("0x126")](n[za("0x3d")].parent,za("0xe8"));this[za("0xab")](t,this[za("0xb4")][za("0x11")](e,o[za("0x3d")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x13a"))){if(!n.isOwn)continue;const o=e[za("0xd")]();for(const e of o)if(!t.getDifference(e)[za("0x73")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0x10f")].plugins.get(za("0x12a"))[za("0xb5")](t);if(!n)throw new e.CKEditorError(za("0xc6"),this);return n}[za("0x42")](t){const e=this.editor.plugins[za("0xad")]("Users"),n=(0,r.hashObject)(za("0xa5")+t);return e[za("0xb5")](n)||e[za("0x137")]({id:n,name:t})}[za("0x12b")](t,e,n,o,s){const r=this[za("0x55")](o),i=this[za("0xd4")][za("0x121")](t,e,n,r,s,(t=>this[za("0x36")](n,{attributes:t})));return this.listenTo(i,za("0x122"),(()=>{this[za("0x36")](n,{state:za("0xed")})}),{priority:za("0xf3")}),this[za("0xd9")](i,za("0x19"),(()=>{this[za("0x36")](n,{state:za("0x59")})}),{priority:za("0xf3")}),this[za("0x10d")][za("0xc1")](n,i),this[za("0xea")][za("0xc1")](i,za("0x134")),i}[za("0xaa")](t){const e=t[za("0xef")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0x73")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[za("0xde")](t,n,o){const s=t[za("0x39")](),r=s[za("0x7b")],i=s[za("0x3d")];this[za("0xab")](t,this[za("0xb4")][za("0x11")](r,n));const x=(0,e.uid)(),a=t[za("0x13e")].id,c=t.type+(t[za("0x68")]?":"+t[za("0x68")]:"");this[za("0x3")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x18")],data:t.data}),za("0x35")==t[za("0x9a")]&&(o=this[za("0xb4")].createPositionBefore(o.parent)),this[za("0x109")](c,x,a,this[za("0xb4")].createRange(o,i))}[za("0x1d")](t,e=null){const n=[],o=this._model[za("0xeb")],s=this[za("0x10f")][za("0x46")][za("0xad")](za("0x12a")).me;for(const r of this[za("0xb7")]())if(r[za("0xe5")]&&(!e||r[za("0x9a")]==e))for(const e of r.getRanges()){const i=t.start[za("0x38")](e[za("0x3d")])||t[za("0x3d")][za("0x38")](e[za("0x7b")]);if(i||t[za("0xb2")](e)){const x=t[za("0xfb")](e)&&Ka(o,e[za("0x7b")],t),a=e[za("0xfb")](t)&&Ka(o,t.start,e);n.push({suggestion:r,meta:{isOwn:s==r[za("0x22")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x109")](t,e,n,o,s){this[za("0xb4")][za("0x92")]((r=>{let i=za("0x12")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xcd")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x83")](t){const e=t[za("0x63")],n=t[za("0x124")];t[za("0x63")]=null,null!=e&&(e[za("0x124")]=null),t[za("0x124")]=null,null!=n&&(n[za("0x63")]=null),za("0x60")==this._suggestionState[za("0xad")](t)&&(this[za("0xea")][za("0xc1")](t,za("0xf5")),this[za("0x78")](za("0x85"),t,e,n))}[za("0x3")](t){const n=t.id,o=this[za("0xce")](t);if(this[za("0x4c")]&&this[za("0x4c")][za("0x54")]){const s=this.editor.plugins[za("0xad")](za("0x58")),r=o[za("0x94")],i=o[za("0x68")]?o[za("0x9a")]+":"+o[za("0x68")]:o[za("0x9a")],x=this.editor[za("0x67")],a=s.add(Yo(x,za("0xd1"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[za("0x18")]};this[za("0x4c")][za("0x54")](c).then((t=>{o[za("0x110")]=!0,s[za("0xf1")](a),t&&t[za("0x74")]&&(this[za("0x10d")][za("0xad")](n)[za("0x74")]=t[za("0x74")])}))[za("0x5e")]((t=>{throw(0,e.logWarning)(za("0x4f")),this[za("0x10f")][za("0x1e")][za("0xba")]({isUndoable:!1},(()=>{o[za("0x19")]()})),o[za("0xe2")](),this._suggestions[za("0xc7")](o.id),this[za("0xea")][za("0xc7")](o),t}))}return o}[za("0x36")](t,e){const n=this[za("0x10f")][za("0x46")][za("0xad")]("PendingActions"),o=this[za("0x12f")](t);if(this[za("0x4c")]&&this[za("0x4c")].updateSuggestion)if(o[za("0x110")]){const o=n[za("0x81")](Yo(this[za("0x10f")].locale,za("0xd1")));this[za("0x4c")].updateSuggestion(t,e).then((()=>{n[za("0xf1")](o)}))}else o.on(za("0x104"),(()=>{this[za("0x36")](t,e)}))}_getSuggestionData(t){if(!this[za("0x4c")]||!this[za("0x4c")].getSuggestion)throw new e.CKEditorError(za("0xa9"),this);return this._adapter[za("0x12f")](t)}[za("0x23")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xaa")](t),r=this[za("0x10d")][za("0xad")](e)||this[za("0x12b")](n,o,e,s,{});switch(this[za("0x8")](r,n,o,s),this._suggestionState[za("0xad")](r)){case za("0x134"):this[za("0x33")](e).then((t=>{let n=Promise[za("0x30")]();t.hasComments&&(n=this[za("0x17")].fetchCommentThread({channelId:this[za("0x10f")].config.get("collaboration.channelId"),threadId:e})),n[za("0x87")]((()=>{this[za("0xce")](t)[za("0x110")]=!0}))})),this[za("0xea")][za("0xc1")](r,za("0x2f"));break;case za("0xf5"):this._updateSuggestionData(e,{state:za("0x89")});case za("0x27"):this[za("0xea")][za("0xc1")](r,za("0x60")),this[za("0x78")](za("0x15"),r);break;case za("0x60"):this[za("0x78")](za("0x135"),r)}return r[za("0x2c")](t),r}[za("0xf9")](t){const e=Array[za("0xfa")](t)[za("0x88")]((t=>!t[za("0x8c")])),n=this[za("0xb7")]({skipNotAttached:!0})[za("0x88")]((t=>!t.isMultiRange)),o=n.filter((e=>!t.has(e))),s=new Map(n[za("0x119")]((t=>[t,this._suggestionFactory[za("0x56")](t[za("0x9a")],t[za("0x68")],"chain")]))),r=new Map(n[za("0x119")]((t=>[t,t[za("0x39")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x73")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x73")];t++){const n=e[t];!x.has(n)&&n[za("0x63")]&&(n[za("0x63")].next===n&&(n[za("0x63")][za("0x124")]=null),n[za("0x63")]=null),!i[za("0xf6")](n)&&n.next&&(n[za("0x124")][za("0x63")]===n&&(n[za("0x124")][za("0x63")]=null),n[za("0x124")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x124")]=n[1],n[1][za("0x63")]=n[0],i.add(n[0]),x[za("0x81")](n[1]))}}function c(t,e){if(t.author.id!==e[za("0x22")].id)return null;const n=s[za("0xad")](t)(t,e,r[za("0xad")](t),r[za("0xad")](e));return n&&s[za("0xad")](e)(t,e,r[za("0xad")](t),r.get(e))?n[1][za("0x117")]&&n[1].commentThread.length?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[za("0xfa")](t),n=this[za("0xb7")]({skipNotAttached:!0}),o=n[za("0x88")]((e=>!t.has(e))),s=new Map(e[za("0x119")]((t=>[t,this[za("0xd4")][za("0x56")](t.type,t[za("0x68")],za("0xd7"))]))),r=new Map(n.map((t=>[t,t.getRanges()])));for(let t=0;t<e[za("0x73")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x73")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x73")];i++){const o=n[i];if(o[za("0x9a")]!==e[za("0x9a")]||o[za("0x22")].id!==e[za("0x22")].id||o[za("0x68")]!==e.subType)continue;const x=s.get(e),a=r.get(e),c=r.get(o),l=e[za("0x117")]&&e[za("0x117")][za("0x73")],d=o[za("0x117")]&&o[za("0x117")][za("0x73")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[za("0xc7")](e),!0;if(!d&&x(a,c))return t[za("0x0")](e,o),r[za("0xc7")](o),!0}return!1}}[za("0x0")](t,e){if(t[za("0x8c")])for(const n of e[za("0xd")]())t[za("0x8d")](n);else{const n=e[za("0x39")]().end;this[za("0xab")](t,this[za("0xb4")][za("0x11")](t[za("0x39")]()[za("0x7b")],n))}e[za("0xfe")]()}}class Wa{constructor(t){this[za("0x113")]=t,this._model=t[za("0x1e")],this[za("0xc4")]=new Map,this[za("0xc")]=new Map,this[za("0xfc")]()}[za("0x121")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x56")](t,e,"accept")(...n),onDiscard:(...n)=>this[za("0x56")](t,e,za("0x19"))(...n)})}[za("0x49")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xc4")][za("0xc1")](s,o)}[za("0x56")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xc4")][za("0xad")](o)||this[za("0xc")][za("0xad")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0x2")](((t,e)=>t[za("0x7b")].isBefore(e.start)?1:-1)),this._model[za("0x92")]((e=>{for(const n of t){let t;t=n[za("0x3d")][za("0x2a")]&&n[za("0x3d")][za("0x6")]==n.start[za("0x4d")]?e.createSelection(n[za("0x7b")][za("0x4d")],"on"):e[za("0x133")](n),this[za("0xb4")][za("0x112")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xb4")][za("0x92")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x119")]((t=>(qa(t)&&(t=this[za("0xb4")][za("0x11")](t.end)),t)))[za("0x88")]((t=>za("0x57")!==t[za("0xc9")][za("0xf0")]));if(r[za("0x73")]<1)return;const x=Array[za("0xfa")](this[za("0xb4")][za("0x40")][za("0x8e")].getRanges()).map((t=>i.LiveRange.fromRange(t)));n.setSelection(r);for(const t of this[za("0x113")][za("0x136")].commands())t[za("0x97")]();s.push({forceDefaultExecution:!0}),this[za("0x113")][za("0x48")](o,...s);const a=x.filter((t=>za("0x57")!=t[za("0xc9")][za("0xf0")]));a.length>0&&n[za("0xca")](a);for(const t of x)t[za("0x96")]()}))},o=(t,e)=>1==t[za("0x73")]&&1==e[za("0x73")]&&t[0][za("0x3d")].isEqual(e[0][za("0x7b")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xb4")])?[t,e]:Za(e,t,o,n,this[za("0xb4")])?[e,t]:null;this[za("0xc")][za("0xc1")]("insertion:accept",t),this[za("0xc")][za("0xc1")]("insertion:discard",e),this[za("0xc")].set("insertion:join",o),this[za("0xc")][za("0xc1")]("insertion:chain",s),this[za("0xc")][za("0xc1")](za("0x7d"),e),this[za("0xc")][za("0xc1")]("deletion:discard",t),this[za("0xc")][za("0xc1")](za("0x64"),o),this._defaultCallbacks[za("0xc1")]("deletion:chain",s),this[za("0xc")][za("0xc1")](za("0xbf"),n),this[za("0xc")][za("0xc1")]("formatInline:discard",t),this[za("0xc")][za("0xc1")](za("0x65"),o),this._defaultCallbacks.set(za("0x11c"),t),this[za("0xc")][za("0xc1")](za("0x61"),n),this[za("0xc")][za("0xc1")](za("0x1c"),t),this[za("0xc")][za("0xc1")](za("0x53"),o),this[za("0xc")][za("0xc1")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e.parent[za("0xee")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xc9")]==o)return!1;if(!n[za("0x13c")](o))return!1;if(t[za("0x108")](o)||t[za("0x45")](o))return!0}return!1}function qa(t){return t.end[za("0x6")]==t[za("0x7b")].nodeAfter&&t[za("0x3d")][za("0x3e")]}function Xa(t,e,n,o){const s=t=>!t[za("0x3f")].is(za("0xbb"))&&!o.isObject(t[za("0x3f")]),r=t[za("0x7b")][za("0x105")](s),i=t[za("0x3d")][za("0x105")](s,{direction:za("0x4e")});return!(t[za("0x7b")][za("0x38")](r)&&t.end[za("0x38")](i)||(r.isBefore(i)?n.updateMarker(e,{range:n.createRange(r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x7b")][za("0x4d")];return e&&e.is(za("0x98"))}function Qa(t,e){const n=e[za("0xeb")][za("0x108")](t)||e[za("0xeb")][za("0x47")](t);return e[za("0x11")](e[za("0x126")](t,za("0x6a")),n?e[za("0x34")](t):e[za("0x126")](t,"end"))}function Za(t,e,n,o,s){if(n[za("0x3d")][za("0x38")](o.start))return!0;if(t[za("0x9a")]!=e[za("0x9a")])return!1;if(!n[za("0x3d")].isTouching(o.start))return!1;const r=s.createRange(n[za("0x3d")],o[za("0x7b")]).getWalker();for(const t of r)if([za("0x130"),za("0xa6")][za("0x118")](t.type)&&s[za("0xeb")][za("0x45")](t[za("0x3f")]))return!1;return!0}const Ya=["add","commentThreadController","locale","isDirty","destroy","_removePendingAction","isEnabled","canDiscard","commands","canAccept","_discardCommand","_setPendingAction","listenTo","bind","plugins","_acceptCommand","PENDING_ACTION_SUGGESTION","unbind","model","execute","_editor","discardSuggestion","view","getRanges","PendingActions","acceptSuggestion","canEditAt","change:isDirty","get","_pendingAction"];var tc,ec;tc=Ya,ec=275,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this.view=n,this[nc("0x1a")]=o,this[nc("0xf")]=t,this[nc("0xa")]=t[nc("0x3")][nc("0x17")](nc("0x14")),this[nc("0x5")]=t[nc("0x3")][nc("0x17")](nc("0x10")),this[nc("0x11")].bind("isEnabled").to(this._acceptCommand,this[nc("0x5")],((t,e)=>t||e)),this[nc("0x11")][nc("0x8")](nc("0x4")).to(this[nc("0xa")],nc("0x1"),(t=>t&&this[nc("0xf")][nc("0xd")][nc("0x15")](e[nc("0x12")]()))),this[nc("0x11")][nc("0x8")]("canDiscard").to(this[nc("0x5")],"isEnabled",(t=>t&&this[nc("0xf")][nc("0xd")][nc("0x15")](e[nc("0x12")]()))),this[nc("0x18")]=null,n[nc("0x1c")]&&this[nc("0x6")](),this[nc("0x7")](n,nc("0x14"),(()=>this[nc("0x14")]())),this.listenTo(n,nc("0x10"),(()=>this[nc("0x10")]())),this[nc("0x7")](n,nc("0x16"),(()=>{n.isDirty?this[nc("0x6")]():this[nc("0x0")]()}))}[nc("0x14")](){this[nc("0xa")][nc("0xe")](this.model.id)}discardSuggestion(){this[nc("0x5")].execute(this[nc("0xd")].id)}[nc("0x1d")](){this[nc("0x11")][nc("0xc")](nc("0x1")),this[nc("0x11")][nc("0xc")](nc("0x4")),this.view[nc("0xc")](nc("0x2")),this.stopListening(),this[nc("0x1a")][nc("0x1d")](),this._pendingAction&&this[nc("0x0")]()}[nc("0x6")](){const t=Yo(this[nc("0xf")][nc("0x1b")],nc("0xb"));this[nc("0x18")]=this[nc("0xf")][nc("0x9")][nc("0x17")](nc("0x13"))[nc("0x19")](t)}[nc("0x0")](){null!==this._pendingAction&&this[nc("0xf")][nc("0x9")][nc("0x17")](nc("0x13")).remove(this[nc("0x18")]),this._pendingAction=null}}const sc=["commentsListView","CommentView","isDirty","delegate","_createCommentThreadInputView","isReadOnly","commentThreadInputView","length","authoredAt","assign","destroy","bind","cancel","fire","set","commentInputView","descriptionParts","focus","value","canDiscard","isActive","_createCommentViews","submit","locale","_localUser","canAccept","_config","commentThread","editor","editorConfig","_model","updateComment","hasDirtyComment","removeComment","addComment"];var rc,ic;rc=sc,ic=197,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0xd")]=null,this.commentThreadInputView=null,this[xc("0x1b")]("isActive",!1),this[xc("0x1b")](xc("0x15"),e[xc("0x15")]),this[xc("0x18")](xc("0x15")).to(e),this.set(xc("0x1d"),[]),this[xc("0x1b")](xc("0xf"),!1),this[xc("0x1b")]("isEnabled",!1),this[xc("0x1b")](xc("0x3"),!1),this[xc("0x1b")](xc("0x20"),!1),this[xc("0x8")]=e,this[xc("0x2")]=n,this[xc("0x4")]=o,o.disableComments?this[xc("0x1b")](xc("0x14"),1):this._createCommentViews()}[xc("0x1e")](){this.element[xc("0x1e")]()}[xc("0x17")](){this[xc("0xd")]&&this.commentsListView[xc("0x17")](),this[xc("0x13")]&&this[xc("0x13")][xc("0x17")](),super.destroy()}[xc("0x22")](){const{CommentsListView:t}=this[xc("0x4")];this[xc("0xd")]=new t(this[xc("0x1")],this[xc("0x8")][xc("0x5")],Object[xc("0x16")]({CommentView:this[xc("0x4")][xc("0xe")]},this._config)),this.commentsListView.delegate(xc("0xb")).to(this),this[xc("0xd")][xc("0x10")](xc("0x9")).to(this),this[xc("0xd")][xc("0x18")]("isActive").to(this),this.set(xc("0x14"),this[xc("0xd")].length+1),this[xc("0x18")](xc("0x14")).to(this[xc("0xd")],xc("0x14"),(t=>t+1)),this[xc("0x13")]=this[xc("0x11")](),this.on("removeComment",(()=>this[xc("0x1e")]())),this[xc("0x18")](xc("0xf")).to(this[xc("0xd")],xc("0xa"),this[xc("0x13")][xc("0x1c")],xc("0x1f"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this._config,e=new t(this[xc("0x1")],this[xc("0x2")],this[xc("0x4")][xc("0x7")]),n=e[xc("0x1c")];return e[xc("0x18")]("showInput").to(this,xc("0x21"),this[xc("0x8")].commentThread,xc("0x12"),n,xc("0x1f"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x0"),((t,e)=>{this[xc("0x1a")](xc("0xc"),e),n[xc("0x6")].setData("")})),n.on(xc("0x19"),(()=>this[xc("0x1e")]())),n[xc("0x18")]("disabledSubmit").to(this[xc("0x8")][xc("0x5")],"isReadOnly"),e}}const cc=[".ck-annotation__content-wrapper","execute","getExternalSuggestionNote","ck-comment__external","ck-annotation","_model","isEnabled","ck-suggestion--discard","join","</span>","createElement","editorDestroyed","ck-annotation__info",'"></span>',"creator","description","delegate","time",'<span class="ck-suggestion-color" style="background-color: ',"bindTemplate","getUserViewNotificationText","extendTemplate","ck-annotation__info-time","editorReady","acceptSuggestion","isExternal","formatDateTime","discardSuggestion","commentThread","source","div","acceptButton","ck-suggestion--accept","locale","change:description",'" title="',"cancel","</p>","_config","userView","canDiscard","ck-annotation__info-name","commentThreadInputView","split","_createButton","EXTERNAL_IMPORT_WORD_AVATAR","attributes","EXTERNAL_AVATAR","set","ck-suggestion--disabled-comments","render","ck-suggestion__actions","querySelector","authoredAt","span","push","disableComments","discardButton","innerHTML","check","children","Accept suggestion",'<span class="ck-suggestion-type">',"_descriptionElement","color","descriptionParts","name","ck-suggestion__user","ck-suggestion-wrapper--active","ck-annotation__user","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-annotation__content-wrapper","getTemplate","ck-suggestion__info","isActive","@external","author","importWord","bind","commentsListView","ck-suggestion__main","title","Discard suggestion","ck-suggestion-","type"];var lc,dc;lc=cc,dc=273,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x1e")]("type",""),this[uc("0x3c")]("type").to(this,uc("0x2f"),(t=>t&&t[0]?t[0][uc("0x42")]:"")),this[uc("0x3c")](uc("0x52")).to(this,uc("0x2f"),this,uc("0x38"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e.content,e[uc("0x2e")])+uc("0x13");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[uc("0x1a")](Yo(e,uc("0x2b")),t.icons[uc("0x29")],uc("0xe"),uc("0x6"),"sw"),this[uc("0xd")][uc("0x3c")](uc("0x49")).to(this,"canAccept"),this.discardButton=this[uc("0x1a")](Yo(e,uc("0x40")),t.icons[uc("0x12")],uc("0x4a"),uc("0x9"),"sw"),this.discardButton[uc("0x3c")]("isEnabled").to(this,uc("0x16")),this[uc("0x15")]=new r.UserView(e,this[uc("0x48")][uc("0x3a")],this[uc("0x2")]()),this[uc("0x15")][uc("0x3")]({attributes:{class:[uc("0x31"),uc("0x33")]}}),this.setTemplate(this[uc("0x36")]())}[uc("0x36")](){const t=this[uc("0x1")],e=[{tag:"div",attributes:{class:[uc("0x37"),uc("0x4f")]},children:[{tag:uc("0x24"),children:[{text:this[uc("0x15")].name}],attributes:{class:["ck-suggestion__info-name",uc("0x17")]}},{tag:uc("0x54"),attributes:{datetime:t.to(uc("0x23")),class:["ck-comment__info-time",uc("0x4")]},children:[{text:t.to("authoredAt",(t=>this[uc("0x14")][uc("0x8")](t)))}]}]},{tag:"div",attributes:{class:[uc("0x21"),"ck-annotation__actions"]},children:[this[uc("0xd")],this[uc("0x27")]]},{tag:uc("0xc"),attributes:{class:[uc("0x35")]}}];this[uc("0x48")][uc("0x7")]&&e[uc("0x25")]({tag:uc("0xc"),attributes:{class:[uc("0x46")]},children:[{text:this[uc("0x45")]()}]});const n={tag:uc("0xc"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive",uc("0x32")),t.to(uc("0x42"),(t=>uc("0x41")+t)),this[uc("0x14")][uc("0x26")]&&uc("0x1f")],"data-suggestion-id":this[uc("0x48")].id,"data-thread-id":this[uc("0x48")][uc("0xa")].id,"data-author-id":this[uc("0x48")][uc("0x3a")].id,tabindex:-1},children:[{tag:uc("0xc"),attributes:{class:["ck-suggestion",uc("0x47")]},children:[this[uc("0x15")],{tag:uc("0xc"),attributes:{class:[uc("0x3e"),"ck-annotation__main"]},children:e}]}]};return this.commentsListView&&this.commentThreadInputView&&(n[uc("0x2a")].push(this.commentsListView,this[uc("0x18")]),this[uc("0x3d")][uc("0x53")](uc("0x5")).to(this),this[uc("0x3d")][uc("0x53")](uc("0x4e")).to(this),this[uc("0x18")][uc("0x53")]("editorReady").to(this),this[uc("0x18")][uc("0x53")](uc("0x4e")).to(this)),n}[uc("0x20")](){super[uc("0x20")](),this[uc("0x2d")]=this.element[uc("0x22")](uc("0x43")),this[uc("0x2d")].innerHTML=this.description,this.on(uc("0x10"),((t,e,n)=>{this[uc("0x2d")].innerHTML=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[uc("0xf")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on(uc("0x44"),(()=>{this.fire(o,this[uc("0x48")].id)})),i}[uc("0x45")](){return uc("0x3b")===this[uc("0x48")][uc("0x1c")][uc("0x39")][uc("0xb")]?Yo(this[uc("0xf")],uc("0x34")):Yo(this.locale,"EXTERNAL_SUGGESTION")}getUserViewNotificationText(){return this._model[uc("0x7")]?uc("0x3b")===this[uc("0x48")][uc("0x1c")][uc("0x39")].source?Yo(this[uc("0xf")],uc("0x1b"),this[uc("0x48")][uc("0x51")][uc("0x30")]):Yo(this[uc("0xf")],uc("0x1d"),this[uc("0x48")][uc("0x51")][uc("0x30")]):null}}function mc(t,e){let n="";return n+=t[uc("0x19")]("*").map(((t,e)=>e%2!=0?uc("0x2c")+fc(t)+uc("0x4c"):fc(t)))[uc("0x4b")](""),e&&(n+=uc("0x0")+e.value+uc("0x11")+e[uc("0x3f")]+uc("0x50")),n}function fc(t){const e=document[uc("0x4d")](uc("0x24"));return e.innerText=t,e[uc("0x28")]}const hc=["lowest","keys","focus","listenTo","comments.maxCommentsWhenCollapsed","_viewToController","_updateController","_disableComments","locale","Accept all selected suggestions","filter","acceptButton","getMarkers","comments.maxThreadTotalWeight","previous","getAllAdjacentSuggestions","suggestionUnloaded","execute","destroy","arrowView","acceptSelectedSuggestions","size","Discard all suggestions","activeAnnotations","getRanges","_annotationViews","delete","_createUIButton","change:previous","_destroyController","trackChanges.disableComments","isMultiRange","view","Discard all selected suggestions","_handleSuggestionControllerDelayed","_handleControllerBuffer","init","innerView","discardAllSuggestions","suggestion-","button","activeMarkers","separator","add","refreshSelectedViews","createAnnotation","CommentView","has","stopListening","type","set","requires","_refreshActiveMarkers","value","TrackChangesEditing","comments.editorConfig","createCommentThreadController","trackChanges","commandName","mainView","addComment","_bindAnnotationToEditors","unbind","editing","comments","_suggestionToController","Track changes","CommentsRepository","config","descriptionParts","getJoined","buttonView","componentFactory","commands","getByInnerView","commentThread","editor","getFirstRange","TrackChangesUI","EditorAnnotations","getSuggestion","from","plugins","isOn","map","Annotations","discardSelectedSuggestions","pluginName","isInContent","comments.maxCommentCharsWhenCollapsed","source","switchbutton","change:activeAnnotations","getMarkerNames","model","toMany","_descriptionFactory","bind","addSourceCollector","length","push","define","_initializeController","suggestionChanged","isEnabled","head","isDirty","get"];var pc,bc;pc=hc,bc=440,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x2b")](){return[Va,r.Users,Ec("0x3b"),Ec("0x4d"),Ec("0x47")]}static get[Ec("0x4f")](){return Ec("0x46")}constructor(t){super(t),this[Ec("0x39")]=new Map,this[Ec("0x69")]=new Map,this[Ec("0x11")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x44")][Ec("0x3c")];e[Ec("0x5d")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x5d")](Ec("0x16"),!1),this[Ec("0x6b")]=e[Ec("0x63")](Ec("0x16"))}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[Ec("0xd")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x1b")]){const n=this._suggestionToController[Ec("0x27")](t);n||e?n&&e&&this[Ec("0x15")](t):this[Ec("0x5e")](t)}this[Ec("0x44")].plugins.get("EditorAnnotations")[Ec("0x24")](),this[Ec("0x2c")](),this._handleControllerBuffer.clear()}),10),this[Ec("0x1b")].set(t,e)}[Ec("0x1c")](){const t=this[Ec("0x44")],e=t[Ec("0x4a")][Ec("0x63")]("TrackChangesEditing"),n=t[Ec("0x4a")].get(Ec("0x4d")),o=t.plugins[Ec("0x63")]("EditorAnnotations"),s=t[Ec("0x4a")][Ec("0x63")]("CommentsRepository");t.ui[Ec("0x40")][Ec("0x23")](Ec("0x31"),(t=>this[Ec("0x13")](t))),o[Ec("0x5a")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x49")](this._suggestionToController)){const o=e[Ec("0x7")](),s=[];for(const t of o){if(!t[Ec("0x50")])continue;if(t[Ec("0x17")]){s.push(...t[Ec("0x10")]());continue}const e=t[Ec("0x45")]();if(s.length>0){const t=s[0][Ec("0x3e")](e);if(t){s[0]=t;continue}}s[Ec("0x5c")](e)}t[Ec("0x5c")]([n.view,s])}return t})),this[Ec("0x67")](e,"suggestionLoaded",((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,s)=>{e[Ec("0x50")]&&(null==o?(this[Ec("0x6a")](s[Ec("0x61")]),this._handleSuggestionControllerDelayed(e,!1)):(this[Ec("0x6a")](o.head),this[Ec("0x1a")](e,!0)))})),null===e[Ec("0x6")]?this[Ec("0x1a")](e,!1):this[Ec("0x6a")](e.head)})),this.listenTo(e,Ec("0x8"),((t,e,n)=>{this[Ec("0x28")](e,Ec("0x14")),this[Ec("0x1b")][Ec("0x12")](e);const o=n?n[Ec("0x61")]:e,s=this[Ec("0x39")][Ec("0x63")](o);null!==n&&this[Ec("0x6a")](o),null===n&&s&&this[Ec("0x15")](e)})),this.listenTo(e,Ec("0x5f"),((t,e)=>{this[Ec("0x6a")](e)})),this[Ec("0x67")](n,Ec("0x54"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x67")](s,Ec("0x34"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x48")](n);this[Ec("0x39")][Ec("0x63")](s)[Ec("0x18")][Ec("0x66")]()}),{priority:Ec("0x64")})}[Ec("0x2c")](){const t=this[Ec("0x44")][Ec("0x4a")][Ec("0x63")](Ec("0x4d")),e=this[Ec("0x44")].plugins[Ec("0x63")](Ec("0x2e")),n=Array.from(t[Ec("0xf")],(t=>t[Ec("0x1d")]))[Ec("0x2")]((t=>this._viewToController[Ec("0x27")](t))),o=[];for(const t of n){const e=this._viewToController[Ec("0x63")](t)[Ec("0x56")].getAllAdjacentSuggestions();o.push(...e.reduce(((t,e)=>[...t,...e[Ec("0x55")]()]),[]))}e[Ec("0x21")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x44")][Ec("0x41")][Ec("0x63")](Ec("0x31")),r=Yo(t,Ec("0x3a"));n[Ec("0x3f")][Ec("0x2a")]({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-2022, 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[Ec("0x3f")][Ec("0x59")](Ec("0x4b")).to(o,Ec("0x2d")),n[Ec("0x3f")].on(Ec("0x9"),(()=>{o[Ec("0x9")](),this[Ec("0x44")].editing[Ec("0x18")][Ec("0x66")]()}));const i=new e.Collection,x=[{type:Ec("0x53"),model:{withText:!0,label:r,commandName:Ec("0x31")}},{type:Ec("0x22")},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:Ec("0x20"),model:{withText:!0,label:Yo(t,Ec("0x1")),commandName:Ec("0xc")}},{type:Ec("0x20"),model:{withText:!0,label:Yo(t,Ec("0xe")),commandName:Ec("0x1e")}},{type:Ec("0x20"),model:{withText:!0,label:Yo(t,Ec("0x19")),commandName:Ec("0x4e")}}];for(const t of x){let e={type:Ec("0x22")};if(t[Ec("0x56")]){const n=new s.Model(t[Ec("0x56")]),o=this[Ec("0x44")].commands.get(n[Ec("0x32")]);n[Ec("0x59")]("isOn",Ec("0x60")).to(o,Ec("0x2d"),Ec("0x60")),e={type:t[Ec("0x29")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x2")]((t=>null!=t[Ec("0x56")]))[Ec("0x4c")]((t=>this.editor[Ec("0x41")][Ec("0x63")](t[Ec("0x56")][Ec("0x32")]))),c=n.buttonView;return c.actionView[Ec("0x36")](Ec("0x60")),c[Ec("0xb")][Ec("0x36")](Ec("0x60")),c.actionView.bind("isEnabled").to(o,Ec("0x60")),c[Ec("0xb")][Ec("0x59")](Ec("0x60"))[Ec("0x57")](a,Ec("0x60"),((...t)=>t.some((t=>t)))),n.on(Ec("0x9"),(t=>{this[Ec("0x44")][Ec("0x9")](t[Ec("0x52")][Ec("0x32")]),this[Ec("0x44")].editing[Ec("0x18")][Ec("0x66")]()})),n}[Ec("0x5e")](t){const e=this[Ec("0x44")],n=e.config,o=e[Ec("0x4a")][Ec("0x63")]("Annotations"),s=e[Ec("0x4a")].get(Ec("0x3b")),i=e[Ec("0x4a")][Ec("0x63")](Ec("0x47")),x=e[Ec("0x4a")][Ec("0x63")](r.Users).me,a=n[Ec("0x63")](Ec("0x31")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins.get("CommentsUI");let d,u;this[Ec("0x11")][Ec("0x27")](t.id)?(u=this._annotationViews.get(t.id),d=u[Ec("0x33")]):(d=new a(e[Ec("0x0")],t,x,{disableComments:this._disableComments,editorConfig:n.get(Ec("0x2f")),maxCommentsWhenCollapsed:n[Ec("0x63")](Ec("0x68")),maxThreadTotalWeight:n.get(Ec("0x5")),maxCommentCharsWhenCollapsed:n[Ec("0x63")](Ec("0x51")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x63")](Ec("0x0"))),CommentView:n[Ec("0x63")](Ec("0x38"))[Ec("0x26")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x3")].on(Ec("0x9"),(()=>{e[Ec("0x37")][Ec("0x18")][Ec("0x66")]()})),d.discardButton.on("execute",(()=>{e.editing.view.focus()})),u=o.createAnnotationView(this[Ec("0x44")][Ec("0x0")],d),u[Ec("0x59")](Ec("0x62")).to(d,Ec("0x62")),u[Ec("0x59")](Ec("0x5b")).to(d),u[Ec("0x59")]("type").to(d,Ec("0x29"),(t=>Ec("0x1f")+t)),this[Ec("0x11")][Ec("0x2a")](t.id,u));const g=s[Ec("0x30")](t[Ec("0x43")],d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions().filter((t=>t[Ec("0x50")]));d[Ec("0x3d")]=e[Ec("0x4a")].get(Ec("0x2e"))[Ec("0x58")].getDescriptions(f),this[Ec("0x39")][Ec("0x2a")](t,m),this[Ec("0x69")][Ec("0x2a")](d,m);const h=o[Ec("0x25")]({view:u,target:()=>{const n=[],o=t[Ec("0x7")]()[Ec("0x2")]((t=>t[Ec("0x50")]));for(const t of o)n[Ec("0x5c")](...t[Ec("0x4")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x37")],n)},type:()=>Ec("0x1f")+m[Ec("0x18")][Ec("0x29")]});s[Ec("0x35")](d,h),o.add(h),i.registerAnnotation(h)}[Ec("0x15")](t){const e=this[Ec("0x44")].plugins[Ec("0x63")]("Annotations"),n=this[Ec("0x39")][Ec("0x63")](t),o=n[Ec("0x18")],s=e[Ec("0x42")](o);s&&e.remove(s),this[Ec("0x39")][Ec("0x12")](t),this[Ec("0x69")][Ec("0x12")](o),n.destroy()}[Ec("0x6a")](t){if(!t[Ec("0x50")]||!this[Ec("0x39")][Ec("0x27")](t))return;const e=this[Ec("0x44")][Ec("0x4a")].get(Ec("0x2e")),n=this._suggestionToController.get(t),o=t[Ec("0x7")]();n[Ec("0x18")][Ec("0x3d")]=e[Ec("0x58")].getDescriptions(o)}[Ec("0xa")](){for(const t of this[Ec("0x39")][Ec("0x65")]())this[Ec("0x15")](t);for(const t of this[Ec("0x11")].values())t[Ec("0x33")][Ec("0xa")]();super[Ec("0xa")]()}}var Tc,Cc,yc=["get","getSuggestion","addSuggestionData","Comments","editor","getSuggestions","adapter","plugins","pluginName","TrackChanges"];Tc=yc,Cc=196,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Va,_c,kc("0x7")]}static get[kc("0x2")](){return kc("0x3")}set[kc("0x0")](t){this[kc("0x8")][kc("0x1")][kc("0x4")](Va).adapter=t}get[kc("0x0")](){return this[kc("0x8")][kc("0x1")][kc("0x4")](Va).adapter}addSuggestion(t){return this.editor[kc("0x1")][kc("0x4")](Va)[kc("0x6")](t)}[kc("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x8")][kc("0x1")][kc("0x4")](Va)[kc("0x9")]({skipNotAttached:t,toJSON:e})}[kc("0x5")](t){return this[kc("0x8")][kc("0x1")][kc("0x4")](Va)[kc("0x5")](t)}}const vc=["createElement","data","pluginName","plugins","end","discardAllSuggestions","addSuggestionData","addUser","document","trackChangesData","set","TrackChangesData","config","name","requires","getRootNames","_adapter","trackChangesData.editorCreator","reduce","useAnonymousUser","getSuggestions","getDataWithDiscardedSuggestions","editorCreator","push","getDataWithAcceptedSuggestions","acceptAllSuggestions","result","createDocumentFragment","get","TrackChangesEditing","getRootsAttributes","editor","init","map","define","execute","TrackChangesDataGetter","track-changes-data-invalid-editor-creator","Users","getUser"];var Rc,Sc;Rc=vc,Sc=227,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get[Ic("0x1b")](){return[Va]}static get[Ic("0xf")](){return Ic("0x18")}[Ic("0x5")](){const t=this[Ic("0x4")];if(t[Ic("0x19")][Ic("0x7")](Ic("0x1e"),(e=>{const n=t.model[Ic("0x15")][Ic("0x1c")]().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor.create(n,e)})),"function"!=typeof t[Ic("0x19")].get(Ic("0x16"))[Ic("0x23")])throw new e.CKEditorError(Ic("0xa"))}[Ic("0x25")](t){return Oc(this[Ic("0x4")],!0,t)}[Ic("0x22")](t){return Oc(this[Ic("0x4")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0xf")](){return Ic("0x9")}constructor(t){super(t),this[Ic("0x27")]=Ic("0x11")}[Ic("0x5")](){this.editor[Ic("0x10")][Ic("0x1")]("CommentsRepository")[Ic("0x1d")]={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.editor.plugins[Ic("0x1")](Ic("0x2"))[Ic("0x1d")]=null}}function wc(t){return void 0!==t[Ic("0x3")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x10")][Ic("0x24")](Va,Mc),o.rootsAttributes=wc(t)?t.getRootsAttributes():void 0;const s=document[Ic("0x0")](),i=t.config[Ic("0x1")]("trackChangesData")[Ic("0x23")],x=await i(o,(()=>function(t){const e=document[Ic("0xd")]("div");return t.appendChild(e),e}(s)));!function(t,e){const n=t.model.document[Ic("0x1c")]()[Ic("0x1f")](((e,n)=>(e[n]=t[Ic("0xe")][Ic("0x1")]({rootName:n}),e)),{}),o=t[Ic("0x10")].get("Users").users[Ic("0x6")]((t=>({id:t.id,name:t[Ic("0x1a")]}))),s=t[Ic("0x10")][Ic("0x1")](Ic("0x2"))[Ic("0x21")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x10")].get(Ic("0xb")),i=e[Ic("0x10")][Ic("0x1")](Ic("0x2"));for(const t of o)r[Ic("0xc")](t.id)||r[Ic("0x14")](t);r.me||r[Ic("0x20")]();for(const t of s)i[Ic("0x13")](t);e.data[Ic("0x17")](n)}(t,x),x[Ic("0x8")](Ic(e?"0x26":"0x12"));const a=wc(x)?x.getFullData(n):x.data.get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var 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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>za});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["execute","isEnabled","_enabledCommands","value","clearForceDisabled","editor","_isEnabledBasedOnSelection","_disableUnsupportedCommands","has","TrackChangesCommand","commands","_enableCommands","affectsData"];var c,l;c=a,l=194,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._enabledCommands=e,this[d("0x4")]=!1,this.refresh(),this[d("0x7")]=!1}refresh(){this[d("0x2")]=!0}[d("0x1")](){this[d("0x4")]=!this[d("0x4")],this[d("0x4")]?this[d("0x8")]():this[d("0xc")]()}[d("0x8")](){for(const t of this[d("0x6")][d("0xb")][d("0xb")]())t[d("0x0")]&&!this._enabledCommands[d("0x9")](t)&&t.forceDisabled(d("0xa"))}[d("0xc")](){for(const t of this[d("0x6")].commands[d("0xb")]())t[d("0x0")]&&!this[d("0x3")][d("0x9")](t)&&t[d("0x5")](d("0xa"))}}const g=["model","_isEnabledBasedOnSelection","_suggestions","getRanges","plugins","track-changes-accept-suggestion-not-found","execute","isEnabled","editor","get","refresh","canEditAt"];var m,f;m=g,f=104,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("0x6")]=e,this[h("0x2")](),this[h("0x5")]=!1}[h("0x2")](){this[h("0xb")]=!0}[h("0xa")](t){const n=this[h("0x6")][h("0x1")](t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n[h("0x7")]();this.editor[h("0x4")][h("0x3")](o)&&this[h("0x0")][h("0x8")][h("0x1")]("TrackChangesEditing").acceptSuggestion(n)}}const b=["isEnabled","get","_suggestions","TrackChangesEditing","getRanges","canEditAt","editor","model","track-changes-discard-suggestion-not-found","discardSuggestion","execute","refresh"];var E,_;E=b,_=337,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("0x1")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0xa")](){this[T("0xb")]=!0}[T("0x9")](t){const n=this._suggestions[T("0x0")](t);if(!n)throw new e.CKEditorError(T("0x7"),this);const o=n[T("0x3")]();this[T("0x5")][T("0x6")][T("0x4")](o)&&this.editor.plugins.get(T("0x2"))[T("0x8")](n)}}const y=[" [color ","getMarkers","start","type","replace","content","change","execute","isTouching","createRange","getRange","isMultiRange","from","deletion","add","isInContent","map","createPositionBefore","schema","isCollapsed","sort","isIntersecting","isObject","join","color"];var k,A;k=y,A=165,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x5")](((t,e)=>v("0x17")==t[v("0xd")]&&v("0x17")!=e[v("0xd")]?-1:v("0x17")!=t[v("0xd")]&&v("0x17")==e[v("0xd")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x3")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x2")](i)),I(e,i,x)||(s.push(e[v("0x13")](n,r[v("0x7")](i)?e.createPositionAfter(i):e.createPositionAt(i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t.createPositionBefore(n);return o[v("0x12")](s)}function L(t,e,n){for(;n.length;){const o=n.splice(0,100);t[v("0x10")]((()=>{for(const t of o)t[v("0x0")]&&e[v("0x11")](t.id)}))}}const N=["from","_suggestions","model","editor","getRanges","refresh","values","_isEnabledBasedOnSelection","isInContent","canEditAt","isEnabled","execute","_command"];var w,M;w=N,M=140,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("0x2")]=e,this[O("0x4")]=n,this[O("0x8")](),this[O("0xa")]=!1}[O("0x8")](){const t=Array[O("0x3")](this._suggestions[O("0x9")]()).some((t=>t[O("0xb")]));this[O("0x0")]=this[O("0x2")][O("0x0")]&&t}[O("0x1")](){const t=R(Array[O("0x3")](this._suggestions[O("0x9")]()));for(const e of t){const t=e[O("0x7")]();if(!this[O("0x6")][O("0x5")][O("0xc")](t))return}L(this[O("0x6")][O("0x5")],this[O("0x2")],t)}}const P=["values","_selectedSuggestions","selection","size","editor","_suggestions","model","refresh","from","isEnabled","_isEnabledBasedOnSelection","document","canEditAt","getRanges","_command"];var D,B;D=P,B=210,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("0xe")]=e,this[j("0x5")]=n,this[j("0x1")]=new Set,this[j("0x7")](),this[j("0xa")]=!1}refresh(){const t=this.editor[j("0x6")][j("0xb")][j("0x2")],e=Array[j("0x8")](this._suggestions[j("0x0")]());this[j("0x1")]=function(t,e){const n=Array[v("0x16")](t.getRanges()),o=new Set;for(const s of e)if(s[v("0x0")])for(const e of n)for(const n of s[v("0xb")]()){const r=n[v("0x14")]();(e[v("0x6")](r)||t[v("0x4")]&&!s[v("0x15")]&&s.next&&r.end[v("0x12")](e[v("0xc")]))&&o[v("0x18")](s)}return o}(t,e),this[j("0x9")]=this._command[j("0x9")]&&!!this._selectedSuggestions[j("0x3")]}execute(){const t=R(Array.from(this[j("0x1")]));for(const e of t){const t=e[j("0xd")]();if(!this[j("0x4")][j("0x6")][j("0xc")](t))return}L(this.editor.model,this[j("0xe")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(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 Q=$;const J=function(){this.__data__=new Q,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||Q),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;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 We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):ze(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,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(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 Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=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[Jn]=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==Jn||"[object GeneratorFunction]"==u;if(be(e))return Je(e,a);if(u==Zn||u==Qn||g&&!r){if(x=c||g?{}:Wn(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||Qt),n}io.Cache=Qt;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 Qt;++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 Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,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:Wo(t,zo(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=["getItems","author","getAllAdjacentSuggestions","next","getFirstMarker","isIntersecting","addRange","onAttributesChange","getMarkers","decorate","isInContent","_saved","push","nodeAfter","setAttribute","type","isExternal","_onAttributesChange","reduce","markers","_onDiscard","subType","isMultiRange","filter","length","head","onAccept","addMarker","commentThread","getRanges","previous","getMultiRangeId","get","data","getMarkerNames","discard","_onAccept","_markerNames","attributes","change","set","accept","hasComments","creator","addMarkerName","removeMarkers","from","removeMarker","_model","add","getRange","createdAt","suggestion:","getContainedElement","map","clear","delete","@external"];var $o,Qo;$o=Xo,Qo=358,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this.type=e.type,this[Jo("0xb")]=e.subType||null,this[Jo("0x31")]=e.author,this[Jo("0x21")]=e[Jo("0x21")]||e[Jo("0x31")],this[Jo("0x6")]=Boolean(e[Jo("0x1c")]&&e[Jo("0x1c")][Jo("0x2f")]),this[Jo("0x17")]=null,this[Jo("0x26")]=t,this[Jo("0x1a")]=e[Jo("0x10")],this[Jo("0xa")]=e.onDiscard,this[Jo("0x7")]=e[Jo("0x37")],this[Jo("0x1b")]=new Set,this[Jo("0x29")]=null,this[Jo("0x1e")]("authoredAt",null),this[Jo("0x1e")](Jo("0x1c"),e[Jo("0x1c")]||{}),this[Jo("0x1e")](Jo("0x14"),null),this[Jo("0x1e")](Jo("0x33"),null),this[Jo("0x1e")](Jo("0x12"),null),this[Jo("0x1e")](Jo("0x1"),!1),this[Jo("0x39")](Jo("0x1f")),this[Jo("0x39")](Jo("0x19"))}get[Jo("0xf")](){let t=this;for(;t.previous;)t=t[Jo("0x14")];return t}get hasComments(){return!!this.commentThread&&this[Jo("0x12")][Jo("0xe")]>0}get[Jo("0xc")](){return 0!=this[Jo("0x1b")].size&&6==Array[Jo("0x24")](this[Jo("0x1b")])[0].split(":")[Jo("0xe")]}get[Jo("0x0")](){return null!==this[Jo("0x34")]()}[Jo("0x22")](t){this[Jo("0x1b")][Jo("0x27")](t)}[Jo("0x18")](){return Array[Jo("0x24")](this._markerNames)}[Jo("0x38")](){return this[Jo("0x18")]().map((t=>this[Jo("0x26")][Jo("0x9")][Jo("0x16")](t)))[Jo("0xd")]((t=>t))}[Jo("0x34")](){return this.getMarkers()[0]||null}[Jo("0x23")](){this._model[Jo("0x1d")]((t=>{for(const e of this[Jo("0x38")]())t[Jo("0x25")](e)})),this[Jo("0x1b")][Jo("0x2d")]()}[Jo("0x25")](t){this[Jo("0x26")][Jo("0x1d")]((e=>{e[Jo("0x25")](t)})),this[Jo("0x1b")][Jo("0x2e")](t)}[Jo("0x36")](t){const e=Jo("0x2a")+this.type+":"+this[Jo("0xb")]+":"+this.id+":"+this[Jo("0x21")].id+":"+Zo[Jo("0x15")]();this[Jo("0x22")](e),this[Jo("0x26")][Jo("0x1d")]((n=>{n[Jo("0x11")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Jo("0x13")]())if(e[Jo("0x35")](t))return!0;return!1}getRanges(){return this[Jo("0x38")]()[Jo("0x2c")]((t=>t.getRange()))}[Jo("0x30")](){return this[Jo("0x13")]()[Jo("0x8")](((t,e)=>[...t,...e[Jo("0x30")]()]),[])}getFirstRange(){var t;return(null===(t=this[Jo("0x34")]())||void 0===t?void 0:t[Jo("0x28")]())||null}[Jo("0x2b")](){const t=this.getRanges();if(1!=t[Jo("0xe")])return null;const e=t[0],n=e.start[Jo("0x3")],o=e.end.nodeBefore;return n instanceof i.Element?n!=o?null:n:null}accept(){this[Jo("0x1a")](this[Jo("0x13")](),this[Jo("0x17")],this.attributes),this.removeMarkers()}[Jo("0x19")](){this._onDiscard(this.getRanges(),this[Jo("0x17")],this[Jo("0x1c")]),this.removeMarkers()}[Jo("0x32")](){const t=[];let e=this.head;for(;e;)t[Jo("0x2")](e),e=e.next;return t}[Jo("0x4")](t,e){const n=eo(this[Jo("0x1c")]);_o(n,t,e),Go(n,this[Jo("0x1c")])||(this[Jo("0x1c")]=n,this[Jo("0x7")](n))}removeAttribute(t){const e=eo(this.attributes);qo(e,t),Go(e,this.attributes)||(this[Jo("0x1c")]=e,this[Jo("0x7")](this[Jo("0x1c")]))}toJSON(){return{id:this.id,type:this[Jo("0xb")]?this.type+":"+this[Jo("0xb")]:this[Jo("0x5")],authorId:this[Jo("0x21")].id,createdAt:this[Jo("0x29")],hasComments:this[Jo("0x20")],data:this[Jo("0x17")],attributes:this[Jo("0x1c")]}}static[Jo("0x15")](){return(0,e.uid)().substr(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=["ELEMENT_SPACE","Container","insertion","function","element","isEmpty","*Insert:* %0","EmptyContainer","item","normal","REPLACE_TEXT","remove","$1 $2","_resolveDescriptionItems","pop","text","quantity","previousSibling","end","_schema","match","getFirstRange","getDescriptions","_itemLabels","Object","_addDescriptionItems","label","checkChild","deletion","_itemLabelsCallbacks","removeEmptyContainer","addEmptyContainer","get","$text","softBreak","_locale","set","matchingCallback","_customCallbacks","add","registerElementLabel","*Merge:* %0","type","removeContainer","elementEnd","getWalker","addObject","push","length","*Remove:* %0","replace","nextSibling","isObject","data","name","getItemLabel","indexOf","addContainer","isEqual"];var es,ns;es=ts,ns=120,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("0x24")]=[],this[os("0x15")]=new Map,this[os("0x1b")]=[],this[os("0x11")]=t,this._locale=e}[os("0x14")](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("0x24")]){const n=t(o);if(n){os("0x28")in n&&e[os("0x2d")](n),s=!0;break}}if(!s){this[os("0x17")](e,o);const s=t[n+1];if(s&&!o[os("0x13")]()[os("0x10")][os("0x38")](s[os("0x13")]().start)){const t=e[e[os("0x2e")]-1],n=os("0x0")==o[os("0x28")]?os("0x25"):"remove";t&&os("0xd")==t.type&&(t[n]+="\n")}}}return this[os("0xb")](e)}registerDescriptionCallback(t){this[os("0x24")][os("0x2d")](t)}[os("0x26")](t,n,o=e.priorities[os("0x7")]){os("0x1")==typeof t?(0,e.insertToPriorityArray)(this[os("0x1b")],{matchingCallback:t,label:n,priority:o}):this[os("0x15")][os("0x22")](t,n)}[os("0x35")](t,e=1){let n;for(const e of this[os("0x1b")])if(e[os("0x23")](t)){n=e[os("0x18")];break}return n||(n=this[os("0x15")][os("0x1e")](t.name)),n?n(e):1!==e?e+" "+t[os("0x34")]+"s":""+t[os("0x34")]}_addDescriptionItems(t,e){const n=e[os("0x13")]()[os("0x2b")](),o="insertion"==e[os("0x28")]?os("0x25"):os("0x9");for(const e of n){const s=e.item,r=t[t[os("0x2e")]-1];if(s.is("$textProxy"))r&&r[os("0x28")][os("0x36")](os("0x3a"))>-1&&t[os("0xc")](),r&&os("0xd")==r[os("0x28")]?r[o]+=s[os("0x33")]:t.push({type:"text",add:"add"==o?s[os("0x33")]:"",remove:"remove"==o?s.data:""});else if(this[os("0x11")][os("0x32")](s)){const i=s;if(r&&r[os("0x28")][os("0x36")]("Container")>-1&&t.pop(),os("0x2a")==e[os("0x28")])continue;r&&r.type==o+os("0x16")&&r[os("0x2")][os("0x34")]==i[os("0x34")]?r[os("0xe")]++:t.push({type:o+os("0x16"),element:i,quantity:1}),n.skip((t=>!(os("0x2a")==t.type&&t[os("0x6")]==s)))}else if(this[os("0x11")][os("0x19")](s,os("0x1f"))||s.is(os("0x2"),os("0x20"))){const n=s;if(os("0x25")==o&&"elementStart"==e[os("0x28")]||os("0x9")==o&&os("0x2a")==e[os("0x28")])continue;if(r&&-1==r[os("0x28")][os("0x36")](os("0x3a"))){os("0xd")==r[os("0x28")]&&(r[o]+="\n");continue}let i;if(i=os("0x25")==o?n[os("0x31")]&&!this._schema[os("0x32")](n[os("0x31")])?n[os("0x31")]:null:n[os("0xf")]&&!this[os("0x11")][os("0x32")](n.previousSibling)?n[os("0xf")]:null,n[os("0x3")]||i&&i[os("0x3")]){const e=i&&i[os("0x3")]?i:n;r&&r[os("0x28")]==o+os("0x5")&&r[os("0x2")][os("0x34")]==e.name?r.quantity++:t[os("0x2d")]({type:o+os("0x5"),element:e,quantity:1})}else t.push({type:o+os("0x3a"),element:n})}}}[os("0xb")](t){const e=this[os("0x21")],n=[];for(const o of t){switch(o[os("0x28")]){case os("0xd"):if(o[os("0x25")]=o[os("0x25")].replace(/(\S)\u000A+(\S)/g,"$1 $2").replace(/\u000A/g,""),o.remove=o[os("0x9")].replace(/(\S)\u000A+(\S)/g,os("0xa"))[os("0x30")](/\u000A/g,""),""!=o.add&&""!=o[os("0x9")]){n[os("0x2d")]({type:os("0x30"),content:Yo(e,os("0x8"),['"'+o[os("0x9")]+'"','"'+o[os("0x25")]+'"'])});continue}if(null!=o[os("0x25")][os("0x12")](/^ +$/)){n[os("0x2d")]({type:"insertion",content:Yo(e,os("0x4"),Yo(e,os("0x39"),o[os("0x25")][os("0x2e")]))});continue}if(null!=o[os("0x9")][os("0x12")](/^ +$/)){n[os("0x2d")]({type:"deletion",content:Yo(e,os("0x2f"),Yo(e,"ELEMENT_SPACE",o.remove[os("0x2e")]))});continue}if(""!=o[os("0x25")]){n.push({type:os("0x0"),content:Yo(e,os("0x4"),'"'+o[os("0x25")]+'"')});continue}n[os("0x2d")]({type:os("0x1a"),content:Yo(e,os("0x2f"),'"'+o[os("0x9")]+'"')});continue;case os("0x1d"):case os("0x2c"):n.push({type:"insertion",content:Yo(e,os("0x4"),this[os("0x35")](o.element,o.quantity))});continue;case os("0x1c"):case"removeObject":n.push({type:os("0x1a"),content:Yo(e,os("0x2f"),this[os("0x35")](o[os("0x2")],o[os("0xe")]))});continue;case os("0x37"):n[os("0x2d")]({type:os("0x0"),content:Yo(e,"*Split:* %0",this[os("0x35")](o[os("0x2")],o.quantity))});continue;case os("0x29"):n[os("0x2d")]({type:os("0x1a"),content:Yo(e,os("0x27"),this.getItemLabel(o[os("0x2")],o.quantity))});continue}n[os("0x2d")](o)}return n}}const rs=["registerDescriptionCallback","_descriptionFactory","editor","selection","value","plugins","commandParams","document","get","markBlockFormat","filter","locale","from","ltr","AlignmentEditing","*Format:* %0","FORMAT_ALIGN_TO_RIGHT","alignment","getAttribute","has","FORMAT_ALIGN_TO_LEFT","checkAttribute","FORMAT_ALIGN_TO_CENTER","left","schema","contentLanguageDirection","FORMAT_JUSTIFY_TEXT","format","change","model","afterInit"];var is,xs;is=rs,xs=394,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x8")](){const t=this[as("0xb")],e=t[as("0x14")];if(!t[as("0xe")][as("0x1c")](as("0x17")))return;const n=t.plugins[as("0x11")]("TrackChangesEditing");n.enableCommand(as("0x1a"),((e,o={})=>{let s=o[as("0xd")];o[as("0xd")]||(s=as("0x16")===t[as("0x14")][as("0x3")]?as("0x1"):"right");const r=Array[as("0x15")](this.editor[as("0x7")][as("0x10")][as("0xc")].getSelectedBlocks())[as("0x13")]((t=>function(t,e,n){const o=t[as("0x1b")]("alignment")||null;return e[as("0x1e")](t,as("0x1a"))&&n!=o}(t,this[as("0xb")][as("0x7")][as("0x2")],s)));t.model[as("0x6")]((()=>{for(const t of r)n[as("0x12")](t,{commandName:as("0x1a"),commandParams:[{value:s}]})}))})),n[as("0xa")][as("0x9")]((t=>{const{data:n}=t;if(n&&as("0x1a")==n.commandName){const t=n[as("0xf")][0][as("0xd")];return{type:as("0x5"),content:Yo(e,as("0x18"),function(t){switch(t){case as("0x1"):return Yo(e,as("0x1d"));case"right":return Yo(e,as("0x19"));case"center":return Yo(e,as("0x0"));case"justify":return Yo(e,as("0x4"))}}(t))}}}))}}const ls=["toViewElement","ck-suggestion-marker-","getAttribute","markerRange","addClass","markerName","schema","test","nextSibling","writer","name","isLimit","bindElementToMarker","span","mapper","previousPosition","start","item","elementEnd","toViewPosition","listIndent","consumable","element","insert","addHighlight","createRangeOn","getItems","type","push","hasAttribute","createUIElement"];var ds,us;ds=ls,us=182,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x1e")]())s[gs("0x2")](t)&&o.push(n[gs("0x1d")](s));return o}function fs(t){const e=[];if(t.is(gs("0x1a"),"listItem")){let n=t[gs("0xc")];for(;n&&n.is(gs("0x1a"),"listItem")&&n[gs("0x6")](gs("0x18"))>0;)e[gs("0x1")](n),n=n[gs("0xc")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x19")][gs("0xb")](r[gs("0x7")],s[gs("0xe")]))return;const x=r[gs("0x7")].getWalker(),a=r[gs("0x7")][gs("0x14")],c=t.model[gs("0xa")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x15")];u=u||c.isContent(e);const n=i.mapper[gs("0x4")](e);if(n&&n.getCustomProperty(gs("0x1c")))return;gs("0x16")==t[gs("0x0")]&&c.isBlock(e)&&!c[gs("0xf")](e)&&(e[gs("0xc")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[gs("0x13")]),g=!0):d=d||t[gs("0x13")])}function m(t){const s=i[gs("0xd")][gs("0x3")](gs("0x11"),{class:gs("0x5")+e}),x=i[gs("0x12")][gs("0x17")](t);n&&o.activeMarkers.includes(r[gs("0x9")])&&i[gs("0xd")][gs("0x8")]("ck-suggestion-marker--active",s),i[gs("0xd")][gs("0x1b")](x,s),i.mapper[gs("0x10")](s,r[gs("0x9")])}u||g||!d||m(d)}}const ps=["FORMAT_SUBSCRIPT","FORMAT_STRIKETHROUGH","getRanges","CodeEditing","FORMAT_SUPERSCRIPT","FORMAT_BOLD","model","*Remove format:* %0","forceValue","commandName","_descriptionFactory","change","BoldEditing","*Format:* %0","FORMAT_ITALIC","get","ItalicEditing","underline","format","FORMAT_CODE","from","subscript","UnderlineEditing","value","locale","toLowerCase","bold","editor","TrackChangesEditing","plugins","has","commands","superscript","isCollapsed","code","commandParams","strikethrough","StrikethroughEditing","document"];var bs,Es;bs=ps,Es=341,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x16"),_s("0x1a"),_s("0x20"),_s("0xd"),_s("0x8"),"SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x25")],e=t[_s("0x10")],n=t[_s("0x0")].get(_s("0x26")),o=t[_s("0x22")];for(const o of Ts){if(!t.plugins[_s("0x1")](o))continue;const s=o.slice(0,-7)[_s("0x23")](),r=t[_s("0x2")][_s("0x19")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x9")].selection;if(i[_s("0x4")])return void t(o);const x=void 0!==o[_s("0x12")]?o.forceValue:!r[_s("0x21")];e[_s("0x15")]((()=>{const t=Array[_s("0x1e")](i[_s("0xc")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x14")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x13")]===t)return s[_s("0x6")][0][_s("0x12")]?{type:_s("0x1c"),content:Yo(o,_s("0x17"),e)}:{type:"format",content:Yo(o,_s("0x11"),e)}}))}s(_s("0x24"),Yo(o,_s("0xf"))),s("italic",Yo(o,_s("0x18"))),s(_s("0x1b"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x5"),Yo(o,_s("0x1d"))),s(_s("0x7"),Yo(o,_s("0xb"))),s(_s("0x1f"),Yo(o,_s("0xa"))),s(_s("0x3"),Yo(o,_s("0xe")))}}const ys=["getSelectedBlocks","_descriptionFactory","value","editor","model","*Remove format:* %0","blockQuote","format","get","markBlockFormat","afterInit","from","has","filter","commands","forceValue","TrackChangesEditing","schema","BlockQuoteEditing","checkChild","parent","*Format:* %0","document","commandName","plugins","ELEMENT_BLOCK_QUOTE","$root","registerDescriptionCallback","locale","selection","enableCommand"];var ks,As;ks=ys,As=227,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x0")](){const t=this[vs("0x18")],e=t[vs("0x12")];if(!t[vs("0xe")][vs("0x2")](vs("0x8")))return;const n=t.plugins[vs("0x1d")](vs("0x6")),o=this.editor[vs("0x4")][vs("0x1d")]("blockQuote");n[vs("0x14")](vs("0x1b"),((e,s={})=>{const r=this[vs("0x18")][vs("0x19")][vs("0xc")][vs("0x13")],i=s&&void 0!==s[vs("0x5")]?s[vs("0x5")]:!o[vs("0x17")];let x=[];if(i){const e=Array[vs("0x1")](r[vs("0x15")]())[vs("0x3")]((t=>Ss(t)||function(t,e){const n=e[vs("0x9")](t.parent,vs("0x1b")),o=e.checkChild([vs("0x10"),"blockQuote"],t);return n&&o}(t,this[vs("0x18")][vs("0x19")][vs("0x7")])));x=S(e,t[vs("0x19")])}else{const e=Array[vs("0x1")](r.getSelectedBlocks())[vs("0x3")]((t=>Ss(t)));x=S(e,t.model)}t[vs("0x19")].change((()=>{for(const t of x)n[vs("0x1e")](t,{commandName:vs("0x1b"),commandParams:[{forceValue:i}]})}))})),n[vs("0x16")][vs("0x11")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[vs("0xd")]){const t=Yo(e,vs("0xf"));return n.commandParams[0][vs("0x5")]?{type:vs("0x1c"),content:Yo(e,vs("0xb"),t)}:{type:vs("0x1c"),content:Yo(e,vs("0x1a"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0xa")].name}const Is=["get","TrackChangesEditing","enableCommand","ckbox","plugins","commands"];var Ls,Ns;Ls=Is,Ns=232,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this.editor;t[ws("0x1")][ws("0x2")](ws("0x5"))&&t[ws("0x0")].get(ws("0x3"))[ws("0x4")](ws("0x5"))}}const Os=["filter","config","value","rootElement","languages","format","find","document","commands","TrackChangesEditing","name","enableCommand","afterInit","forceValue","registerDescriptionCallback","schema","outdentCodeBlock","CodeBlock","ELEMENT_CODE_BLOCK","*Format:* %0","change","commandName","get","editor","blockName","plugins","parent","model","getSelectedBlocks","label","_descriptionFactory","locale","commandParams","language","codeBlock","from"];var Fs,Ps;Fs=Os,Ps=222,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x6")](){const t=this[Ds("0x11")];if(!t[Ds("0x13")].has(Ds("0xb")))return;const e=t[Ds("0x13")][Ds("0x10")](Ds("0x3")),n=t[Ds("0x19")],o=t[Ds("0x1f")][Ds("0x10")](Ds("0x1c"))[Ds("0x22")],s=t[Ds("0x2")][Ds("0x10")](Ds("0x1c"));e[Ds("0x5")]("indentCodeBlock"),e[Ds("0x5")](Ds("0xa")),e[Ds("0x5")]("codeBlock",((n,r={})=>{const i=t.model,x=t[Ds("0x15")][Ds("0x1")].selection,a=r&&void 0!==r[Ds("0x7")]?r.forceValue:!s[Ds("0x20")];let c;r[Ds("0x1b")]||(r[Ds("0x1b")]=o[0].language),c=a?Array[Ds("0x1d")](x[Ds("0x16")]())[Ds("0x1e")]((t=>{return js(t)||(e=t,n=i[Ds("0x9")],!e.is(Ds("0x21"))&&!n.isLimit(e)&&n.checkChild(e[Ds("0x14")],Ds("0x1c")));var e,n})):Array[Ds("0x1d")](x[Ds("0x16")]()).filter((t=>js(t)));const l=S(c,i);i[Ds("0xe")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x1c"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x12")})}))})),e[Ds("0x18")].registerElementLabel(Ds("0x1c"),(t=>Yo(n,Ds("0xc"),t))),e[Ds("0x18")][Ds("0x8")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r[Ds("0xf")]){const t=r[Ds("0x1a")][0][Ds("0x1b")],s=e(o[Ds("0x0")]((e=>e[Ds("0x1b")]===t))[Ds("0x17")]);return r[Ds("0x1a")][0][Ds("0x7")]?{type:Ds("0x23"),content:Yo(n,Ds("0xd"),Yo(n,Ds("0xc"),1)+" ("+s+")")}:{type:Ds("0x23"),content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0xc"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x4")]}const Us=["get","editor","TrackChangesEditing","addCommentThread","afterInit","has","enableCommand","plugins"];var Gs,Hs;Gs=Us,Hs=330,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{[Ws("0x2")](){const t=this[Ws("0x7")];t[Ws("0x5")][Ws("0x3")]("CommentsEditing")&&t[Ws("0x5")][Ws("0x6")](Ws("0x0"))[Ws("0x4")](Ws("0x1"))}}var Vs=n(181);const Ks=["end","$graveyard","init","unbindElementFromMarkerName","fromRange","start","bind","batch","remove","TrackChangesEditing","requires","isCollapsed","modifySelection","uiElement","getFirstRange","createRange","rootName","model","createSelection","buffer","deleteForward","options","downcastDispatcher","markerNameToElements","forward","mapper","writer","addMarker:suggestion:deletion","root","merge","get","lock","removeMarker:suggestion:deletion","editor","high","enableCommand","markerName","editing","data","plugins"];var qs,Xs;qs=Ks,Xs=351,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Qs extends t.Plugin{static get[$s("0x13")](){return[Vs.Delete]}[$s("0xb")](){const t=this[$s("0x2")],e=t[$s("0x8")].get($s("0x12"));e[$s("0x4")]("delete");const n=t.commands[$s("0x27")]($s("0x1d"));e[$s("0x4")]("deleteForward",((e,o={})=>{const s=t[$s("0x1a")][$s("0x1b")](t[$s("0x1a")].document.selection);s[$s("0x14")]&&t[$s("0x1a")][$s("0x15")](s,{direction:$s("0x21"),unit:o.unit});const r=s[$s("0x17")](),x=i.LiveRange[$s("0xd")](r);let a;e(o),a=$s("0xa")==x[$s("0x25")][$s("0x19")]?t[$s("0x1a")][$s("0x18")](r[$s("0xe")]):t[$s("0x1a")][$s("0x18")](x[$s("0xe")],x[$s("0x9")]),x.detach(),t[$s("0x1a")].enqueueChange(n[$s("0x1c")][$s("0x10")],(t=>{n[$s("0x1c")][$s("0x0")](),t.setSelection(t[$s("0x18")](a[$s("0x9")])),n[$s("0x1c")].unlock()}))})),t[$s("0x6")][$s("0x1f")].on("addMarker:suggestion:deletion",hs(t,$s("0x26")),{priority:$s("0x3")}),t[$s("0x7")][$s("0x1f")].on($s("0x24"),((e,n,o)=>{o[$s("0x1e")].showSuggestionHighlights&&hs(t,$s("0x26"),{showActiveMarker:!1})[$s("0xf")](this)(e,n,o)}),{priority:$s("0x3")}),t[$s("0x6")][$s("0x1f")].on($s("0x1"),((t,e,n)=>{const o=n[$s("0x22")][$s("0x20")](e[$s("0x5")]);if(o)for(const t of o)t.is($s("0x16"))&&(n[$s("0x22")][$s("0xc")](t,e.markerName),n[$s("0x23")][$s("0x11")](t))}),{priority:"high"})}}const Js=["indentList","*Change to:* %0","ELEMENT_LIST_ITEM","editor","DocumentListEditing","nextSibling","getFirstRange","commandName","push","model","selection","get","listType","hasAttribute","has","document","execute","*Outdent:* %0","documentList","mergeListItemForward","slice","locale","registerDescriptionCallback","length","markBlockFormat","getSelectedBlocks","value","detach","add","enableCommand","numberedList","DocumentListUtils","map","_descriptionFactory","*Format:* remove from %0","registerElementLabel","start","format","after","toUpperCase","outdentList","createPositionAt","getAttribute","commandParams","splitListItemAfter","markMultiRangeBlockFormat","commands","bulletedList","from","before","listIndent","*Merge:* %0","accept","next","setSelection","end","_suggestionFactory","registerCustomCallback","mergeListItemBackward","ELEMENT_NUMBERED_LIST","multipleBlocks","refresh","change","splitListItemBefore","plugins","isObject","ELEMENT_BULLETED_LIST","isFirstBlockOfListItem","previousSibling","containsItem","nodeAfter","listItemId","createRange","afterInit"];var Zs,Ys;Zs=Js,Ys=379,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Js[t-=0]};class er extends t.Plugin{[tr("0x40")](){const t=this[tr("0x44")];if(!t.plugins[tr("0x5")](tr("0x45")))return;const e=t[tr("0xc")],n=t[tr("0x37")][tr("0x2")]("TrackChangesEditing"),o=t[tr("0x37")].get(tr("0x16"));function s(e){return()=>{const s=t[tr("0x25")][tr("0x2")](e);let r=Array.from(t[tr("0x0")][tr("0x6")][tr("0x1")][tr("0x10")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0x3a")](e)&&t[tr("0x49")](e);r=t}t.model[tr("0x35")]((()=>{n[tr("0x24")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x11")]}],formatGroupId:"listType"},[],tr("0x9"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t[tr("0x4")](tr("0x3e"))));return n>-1&&(e=e[tr("0xb")](0,n)),e}(t[tr("0x0")][tr("0x6")][tr("0x1")][tr("0x10")]()),s=o[o[tr("0xe")]-1],r=t[tr("0x0")].schema[tr("0x38")](s)?tr("0x1d"):tr("0x2e"),i=t[tr("0x0")][tr("0x3f")](t[tr("0x0")][tr("0x20")](o[0],tr("0x28")),t[tr("0x0")].createPositionAt(s,r));t[tr("0x0")][tr("0x35")]((()=>{n[tr("0xf")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x3")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x21")](tr("0x29"))>n.getAttribute("listIndent");)e[tr("0x13")](t),t=t.nextSibling}return Array[tr("0x27")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x0")][tr("0x6")][tr("0x1")].getSelectedBlocks()[tr("0x2c")]()[tr("0x11")],s=t[tr("0x0")].createPositionAt(o,tr("0x28")),r=t[tr("0x0")][tr("0x20")](o,0),i=t[tr("0x0")].createRange(s,r);t.model[tr("0x35")]((()=>{n[tr("0xf")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x25")][tr("0x2")]("bulletedList")[tr("0x11")],o=t[tr("0x25")][tr("0x2")]("numberedList").value;return tr("0x15")===e?n:o}n[tr("0x14")](tr("0x15"),s("numberedList")),n[tr("0x14")]("bulletedList",s(tr("0x26"))),n.enableCommand("indentList",r("indentList")),n.enableCommand(tr("0x1f"),r("outdentList")),n[tr("0x14")](tr("0x23"),x("splitListItemAfter")),n[tr("0x14")](tr("0x36"),x(tr("0x36"))),n[tr("0x18")][tr("0x1a")]((function(e){const n=!t[tr("0x0")].schema[tr("0x38")](e),o=e[tr("0x3b")],s=e.nextSibling,r=e[tr("0x21")](tr("0x3e")),i=!o||o.getAttribute(tr("0x3e"))!==r,x=!s||s[tr("0x21")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x43"),t))),n._descriptionFactory[tr("0xd")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x48")]){case"bulletedList":r=n[tr("0x22")][0].forceValue,i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x19"),i&&(o=tr("0x42")),s={type:tr("0x1c"),content:Yo(e,o,Yo(e,tr("0x39")))};break;case tr("0x15"):r=n[tr("0x22")][0].forceValue,i=a(n[tr("0x48")]),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=tr("0x42")),s={type:tr("0x1c"),content:Yo(e,o,Yo(e,tr("0x32")))};break;case tr("0x41"):o="*Indent:* %0",s={type:"format",content:Yo(e,o,Yo(e,tr("0x43")))};break;case"outdentList":o=function(t){const e=t[tr("0x47")]();let n=e[tr("0x1b")][tr("0x3d")];for(;n&&e[tr("0x3c")](n);){if(n.getAttribute(tr("0x29"))>0)return!1;n=n[tr("0x46")]}return!0}(t)?Yo(e,tr("0x19"),Yo(e,"ELEMENT_"+t[tr("0x47")]()[tr("0x1b")][tr("0x3d")][tr("0x21")](tr("0x3"))[tr("0x1e")]()+"_LIST")):Yo(e,tr("0x8"),Yo(e,tr("0x43"))),s={type:tr("0x1c"),content:o};break;case tr("0x31"):case tr("0xa"):!1===n[tr("0x33")]&&(o=tr("0x2a"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x43")))})}return s})),n[tr("0x2f")][tr("0x30")]("formatBlock","documentList",tr("0x2b"),(function(e,n){const o=[];for(let n of e)n[tr("0x1b")][tr("0x3d")]===n[tr("0x2e")].parent&&(n=t[tr("0x0")][tr("0x3f")](t[tr("0x0")][tr("0x20")](n[tr("0x1b")][tr("0x3d")],0))),o[tr("0x49")](n);t.model[tr("0x35")]((e=>{const s=t[tr("0x0")][tr("0x6")][tr("0x1")],r=Array.from(s.getRanges())[tr("0x17")]((t=>i.LiveRange.fromRange(t)));e[tr("0x2d")](o),t[tr("0x25")][tr("0x2")](n.commandName)[tr("0x34")](),n[tr("0x22")][tr("0x49")]({forceDefaultExecution:!0}),t[tr("0x7")](n.commandName,...n[tr("0x22")]),e[tr("0x2d")](r);for(const t of r)t[tr("0x12")]()}))}))}}var nr=n(331);const or=["model","plugins","getFirstPosition","addMarker:suggestion:insertion","enter","high","TrackChangesEditing","enterBlock","selection","split","parent","editing","mapper","fromRange","detach","unbindElementFromMarkerName","commands","getFirstRange","hasClass","requires","markerName","bind","ck-suggestion-marker-split","change","fire","removeMarker:suggestion:insertion","writer","data","createRange","enableCommand","afterExecute"];var sr,rr;sr=or,rr=204,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x1")](){return[nr.Enter]}init(){const t=this.editor,e=t[ir("0xe")].get(ir("0x13")),n=t[ir("0x1d")].get(ir("0x11"));e[ir("0xb")]("enter",(()=>{t[ir("0xd")][ir("0x5")]((o=>{const s=t[ir("0xd")].document[ir("0x15")],r=s[ir("0xf")](),x=i.LiveRange[ir("0x1a")](s[ir("0x1e")]());if(n[ir("0x14")](o)){const n=t[ir("0xd")].createPositionAt(r[ir("0x17")].nextSibling,0),s=o.createRange(r,n);e.markInsertion(s)}else o.setSelection(o[ir("0xa")](x.end));x[ir("0x1b")](),n[ir("0x6")](ir("0xc"),{writer:o})}))})),t.editing.downcastDispatcher.on(ir("0x10"),hs(t,ir("0x16")),{priority:ir("0x12")}),t[ir("0x18")].downcastDispatcher.on(ir("0x7"),((t,e,n)=>{const o=n[ir("0x19")].markerNameToElements(e.markerName);if(o)for(const t of o)t[ir("0x0")](ir("0x4"))&&(n.mapper[ir("0x1c")](t,e[ir("0x2")]),n[ir("0x8")].remove(t))}),{priority:"high"}),t[ir("0x9")].downcastDispatcher.on(ir("0x10"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,ir("0x16"),{showActiveMarker:!1})[ir("0x3")](this)(e,n,o)}),{priority:ir("0x12")})}}const ar=["plugins","markers","has","enableCommand","get","getMarkersGroup","end","filter","_isInDeletionRange","TrackChangesEditing","afterInit","findByTextCallback","getIntersection","handleFindCommand","findNext","FindAndReplaceUtils","createPositionAt","editor","start","FindAndReplaceEditing","bind","suggestion:deletion","replaceAll","item","model"];var cr,lr;cr=ar,lr=267,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x12")](){if(!this.editor[dr("0x8")][dr("0xa")](dr("0x2")))return;const t=this.editor[dr("0x8")][dr("0xc")](dr("0x11"));t[dr("0xb")]("find",this[dr("0x15")][dr("0x3")](this)),t[dr("0xb")](dr("0x16")),t[dr("0xb")]("findPrevious"),t.enableCommand("replace"),t[dr("0xb")](dr("0x5"))}handleFindCommand(t,e,n={}){const o=this[dr("0x0")][dr("0x8")][dr("0xc")](dr("0x17"));void 0!==n&&t((t=>("string"==typeof e?o[dr("0x13")](e,n):e)(t)[dr("0xf")]((e=>!1===this._isInDeletionRange(e,t[dr("0x6")])))),n)}[dr("0x10")](t,e){const n=this[dr("0x0")][dr("0x7")].createRange(this[dr("0x0")][dr("0x7")][dr("0x18")](e,t[dr("0x1")]),this.editor.model[dr("0x18")](e,t[dr("0xe")]));for(const t of this[dr("0x0")][dr("0x7")][dr("0x9")][dr("0xd")](dr("0x4")))if(null!==n[dr("0x14")](t.getRange()))return!0;return!1}}const gr=["plugins","getRanges","commandParams","format","fontBackgroundColor","_enableCommand","fontColor","document","afterInit","registerDescriptionCallback","*Reset font family*","*Reset font color*","*Set font family:* %0","FontSizeEditing","change","fontBackgroundColor.colors","*Reset font background color*","has","from","value","trim","_descriptionFactory","normalizeSizeOptions","toLowerCase","fontSize","FontSize","selection","title","fontFamily","TrackChangesEditing","markInlineFormat","commandName","config","find","editor","model","label","fontColor.colors","*Reset font size*","get","isCollapsed"];var mr,fr;mr=gr,fr=330,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0xb"),commandName:hr("0x16")},{pluginName:"FontFamilyEditing",commandName:hr("0x1a")},{pluginName:"FontColorEditing",commandName:hr("0x4")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x6")](){const t=this[hr("0x20")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x20")][hr("0x27")][hr("0xf")](t)&&this[hr("0x3")](e);this.editor[hr("0x27")].get("TrackChangesEditing")[hr("0x13")][hr("0x7")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x16")==o.commandName){const e=o[hr("0x0")][0][hr("0x11")];if(e){const o=n(this[hr("0x20")][hr("0x27")][hr("0x25")](hr("0x17"))[hr("0x14")](this.editor[hr("0x1e")][hr("0x25")]("fontSize.options"))[hr("0x1f")]((t=>t.model==e))[hr("0x19")])[hr("0x15")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x1"),content:Yo(t,hr("0x24"))}}if("fontFamily"==o.commandName){const e=o.commandParams[0][hr("0x11")];return e?{type:hr("0x1"),content:Yo(t,hr("0xa"),e)}:{type:hr("0x1"),content:Yo(t,hr("0x8"))}}if("fontColor"==o[hr("0x1d")]){const e=o.commandParams[0][hr("0x11")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x20")][hr("0x1e")][hr("0x25")](hr("0x23")))[hr("0x1f")]((t=>t[hr("0x21")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x15")]()),{type:"format",content:Yo(t,"*Set font color:* %0",i)[hr("0x12")](),color:{value:e,title:i||r}}}return{type:hr("0x1"),content:Yo(t,hr("0x9"))}}if(hr("0x2")==o[hr("0x1d")]){const e=o[hr("0x0")][0][hr("0x11")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x20")].config[hr("0x25")](hr("0xd")))[hr("0x1f")]((t=>t[hr("0x21")]==e));let r=e,i="";return o&&(r=o[hr("0x22")],i=n(r).toLowerCase()),{type:hr("0x1"),content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x1"),content:Yo(t,hr("0xe"))}}}}))}[hr("0x3")](t){const e=this.editor;e.plugins[hr("0x25")](hr("0x1b")).enableCommand(t,((n,o={})=>{const s=e[hr("0x21")][hr("0x5")][hr("0x18")],r=o[hr("0x11")];s[hr("0x26")]?n(o):e[hr("0x21")][hr("0xc")]((()=>{const n=Array[hr("0x10")](s[hr("0x28")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x21")]);for(const o of n)e[hr("0x27")].get(hr("0x1b"))[hr("0x1c")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["commandParams","isBlock","editor","getFirstPosition","get","find","document","title","split","getLastPosition","schema","getItems","commandName","_descriptionFactory","fontColor","getAttributeProperties","length","model","plugins","FontSize","getRanges","backward","slice","createSelection","getAttributes","change","format","copyFormat","isCollapsed","*Set format to:* %0","pasteFormat","toUpperCase","config","push","commands","charAt","createRange","toLowerCase","TrackChangesEditing","word","fontSize","*Remove all formatting*","markInlineFormat","fontBackgroundColor","registerDescriptionCallback","join","isFormatting","locale","enableCommand","from","modifySelection","selection"];var _r,Tr;_r=Er,Tr=187,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{afterInit(){const t=this[Cr("0x17")],n=t[Cr("0x26")],o=n[Cr("0x1b")][Cr("0x14")],s=t[Cr("0x27")].get(Cr("0x7")),r=t[Cr("0x10")],i=t.commands[Cr("0x19")]("copyFormat"),x=t[Cr("0x3")].get("pasteFormat");i&&x&&(s[Cr("0x11")](Cr("0x33"),((t,r={})=>{const i=r;n[Cr("0x2e")]((()=>{const t=Array[Cr("0x12")](o[Cr("0x29")]()),r=o[Cr("0x31")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x2d")]()){const t=e[Cr("0x24")](n);t&&t[Cr("0xf")]&&(yield n)}}(t,n));for(const e of t[Cr("0x29")]())for(const t of e[Cr("0x20")]())!n[Cr("0x16")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1f")]))||0!==Object.keys(i)[Cr("0x25")])for(const t of r)s[Cr("0xb")](t,{commandName:Cr("0x33"),commandParams:[i]})}))})),s[Cr("0x22")][Cr("0xd")]((e=>{const{data:n}=e;if(n&&Cr("0x33")===n[Cr("0x21")]){const e=[],o=n[Cr("0x15")][0];for(const[n,s]of Object.entries(o))e[Cr("0x2")](Ar(t,n,s));return e[Cr("0x25")]?{type:Cr("0x2f"),content:Yo(r,Cr("0x32"),e.join(", "))}:{type:"format",content:Yo(r,Cr("0xa"))}}})),t[Cr("0x27")].get("TrackChangesEditing")[Cr("0x11")](Cr("0x30")))}}function kr(t,e){const n=t[Cr("0x2c")](e);t[Cr("0x13")](n,{unit:"word",direction:Cr("0x2a")});const o=n[Cr("0x18")]();t[Cr("0x13")](n,{unit:Cr("0x8"),direction:"forward"});const s=n[Cr("0x1e")]();return t[Cr("0x5")](o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[Cr("0x1d")](/(?=[A-Z])/)[Cr("0xe")](" "),i=o(r[Cr("0x4")](0)[Cr("0x0")]()+r[Cr("0x2b")](1))[Cr("0x6")]();if("boolean"==typeof n)return i;if(Cr("0x23")===e||Cr("0xc")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x1")][Cr("0x19")]("fontColor.colors")).find((t=>t.model==n));return i+" ("+(e?o(e.label)[Cr("0x6")]():n)+")"}if(Cr("0x9")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x27")][Cr("0x19")](Cr("0x28")).normalizeSizeOptions(t.config.get("fontSize.options"))[Cr("0x1a")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x1c")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["parent","registerDescriptionCallback","_descriptionFactory","match","editor","filter","paragraph","document","registerElementLabel","blockName","checkChild","HeadingEditing","model","selection","plugins","schema","enableCommand","format","heading.options","value","commandParams","*Change to:* %0","title","find","config","commandName","heading","afterInit","change","getSelectedBlocks","get","TrackChangesEditing"];var Rr,Sr;Rr=vr,Sr=266,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x11")](){const t=this[Ir("0x1a")],e=t.locale,n=t[Ir("0xe")][Ir("0x14")](Ir("0x8"));if(!t[Ir("0x4")].has(Ir("0x1")))return;const o=t.plugins[Ir("0x14")](Ir("0x15"));o[Ir("0x6")](Ir("0x10"),((e,n)=>{const s=n[Ir("0x9")],r=Array.from(this.editor[Ir("0x2")][Ir("0x1d")][Ir("0x3")][Ir("0x13")]())[Ir("0x1b")]((t=>{return e=t,n=s,(o=this[Ir("0x1a")][Ir("0x2")][Ir("0x5")])[Ir("0x0")](e[Ir("0x16")],n)&&!o.isObject(e)&&e.name!=n;var e,n,o}));t[Ir("0x2")][Ir("0x12")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x10"),commandParams:[n],formatGroupId:Ir("0x1f")},fs(t))}))}));for(const t of n)Ir("0x1c")!=t[Ir("0x2")]&&o[Ir("0x18")][Ir("0x1e")](t[Ir("0x2")],(e=>{const n=Nr(t[Ir("0x2")]);return null!==n?s(e,n):r(e,t[Ir("0xc")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x18")][Ir("0x17")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&"heading"==i[Ir("0xf")]){const t=i[Ir("0xa")][0][Ir("0x9")],o=Nr(t);if(null!==o)return{type:Ir("0x7"),content:Yo(e,Ir("0xb"),s(1,o))};const x=n[Ir("0xd")]((e=>e.model===t))[Ir("0xc")];return{type:Ir("0x7"),content:Yo(e,Ir("0xb"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x19")](/^heading(\d+)$/);return e?e[1]:null}const wr=["model","format","getFirstPosition","plugins","get","hasAttribute","getLastMatchingPosition","highlight","enableCommand","has","find","afterInit","push","title","getRanges","formatInline","getAttribute","markInlineFormat","color","value","createRange","HighlightEditing","change","_descriptionFactory","editor","backward","selection","*Remove highlight*","*Set highlight:* %0"];var Mr,Or;Mr=wr,Or=177,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x8")](){const t=this[Fr("0x15")];if(!t.plugins[Fr("0x6")](Fr("0x12")))return;const e=t[Fr("0x0")][Fr("0x1")]("TrackChangesEditing");e[Fr("0x5")](Fr("0x4"),((n,o={})=>{const s=t[Fr("0x1a")].document[Fr("0x17")],r=s.getAttribute(Fr("0x4"));let i=o[Fr("0x10")],x=[];if(s.isCollapsed){const e=s[Fr("0x1c")]();if(!s[Fr("0x2")](Fr("0x4")))return void n(o);{const n=t=>t.item[Fr("0xd")](Fr("0x4"))===r,o=e[Fr("0x3")](n,{direction:Fr("0x16")}),s=e[Fr("0x3")](n);x=[t[Fr("0x1a")][Fr("0x11")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xb")]())i?x[Fr("0x9")](e):x[Fr("0x9")](...ms(Fr("0x4"),e,t.model));t[Fr("0x1a")][Fr("0x13")]((()=>{for(const t of x)e[Fr("0xe")](t,{commandName:Fr("0x4"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0x14")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Fr("0xc")==o&&s&&Fr("0x4")==s.commandName){const e=n.t,o=s.commandParams[0].value;if(o){const s=t.config.get("highlight.options")[Fr("0x7")]((t=>t[Fr("0x1a")]==o)),r=e(s[Fr("0xa")]).toLowerCase();return{type:Fr("0x1b"),content:Yo(n,Fr("0x19"),r),color:{value:s[Fr("0xf")],title:s[Fr("0xa")]}}}return{type:Fr("0x1b"),content:Yo(n,Fr("0x18"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["horizontalLine","ck-horizontal-line","createContainerElement","TrackChangesEditing","elementToStructure","ELEMENT_HORIZONTAL_LINE","div","addClass","afterInit","has","showSuggestionHighlights","registerElementLabel","plugins","enableCommand","createEmptyElement","HorizontalLineEditing","createPositionAt","get","insert","editor","locale","high"];var Br,jr;Br=Dr,jr=459,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xb")](){const t=this[Ur("0x0")];if(!t[Ur("0xf")][Ur("0xc")](Ur("0x12")))return;t[Ur("0xf")][Ur("0x14")](Ur("0x6"))[Ur("0x10")](Ur("0x3"));const e=t[Ur("0xf")].get(Ur("0x6")),n=t[Ur("0x1")];e._descriptionFactory[Ur("0xe")](Ur("0x3"),(t=>Yo(n,Ur("0x8"),t))),t.conversion.for("dataDowncast")[Ur("0x7")]({model:Ur("0x3"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0xd")])return null;const o=e[Ur("0x5")](Ur("0x9")),s=e[Ur("0x11")]("hr");return e[Ur("0xa")](Ur("0x4"),o),e[Ur("0x15")](e[Ur("0x13")](o,0),s),o},converterPriority:Ur("0x2")})}}const Hr=["get","enableCommand","*Change %0 content*","view","model","commandName","markBlockFormat","htmlEmbed","document","registerDescriptionCallback","cancel","getCustomProperty","editing","element","registerElementLabel","value","selection","editor","has","ELEMENT_HTML_EMBED","_descriptionFactory","TrackChangesEditing","getAttribute","change","rawHtmlApi","rawHtml","plugins","getSelectedElement"];var Wr,zr;Wr=Hr,zr=375,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x6")];if(!t.plugins[Vr("0x7")]("HtmlEmbed"))return;const e=t[Vr("0xf")].get(Vr("0xa")),n=t.locale,o=t[Vr("0x1")][Vr("0x14")][Vr("0x19")][Vr("0x5")];e[Vr("0x9")][Vr("0x3")](Vr("0xe"),(t=>Yo(n,Vr("0x8"),t))),t[Vr("0xf")][Vr("0x11")](Vr("0xa"))[Vr("0x12")](Vr("0x18"),((n,s)=>{const r=t[Vr("0x15")],i=r[Vr("0x19")][Vr("0x5")];r[Vr("0xc")]((()=>{const t=function(t){const e=t[Vr("0x10")]();return e&&e.is(Vr("0x2"),Vr("0xe"))?t[Vr("0x10")]():null}(i);if(!t)return void n(null);const r=t[Vr("0xb")](Vr("0x4"))||"";void 0!==s&&s!==r&&(e[Vr("0x17")](t,{commandName:Vr("0x18"),commandParams:[s]}),o.getSelectedElement()[Vr("0x0")](Vr("0xd"))[Vr("0x1b")]())}))})),e[Vr("0x9")][Vr("0x1a")]((t=>{const{data:e}=t;if(e&&Vr("0x18")==e[Vr("0x16")]){const t=Yo(n,Vr("0x8"));return{type:"format",content:Yo(n,Vr("0x13"),t)}}}))}}const qr=["Users","createRangeOn","type","refresh","format","title","markDeletion","imageStylePreApply","isOwn","forEach","resizeImage","imageTextAlternative","ImageResize","_splitMarkerName","nodeBefore","element","isBlockImage","side","nodeAfter","isInlineImage","ImageTextAlternativeEditing","detach","toggleImageCaption","commandName","hasSuggestion","_suggestionFactory","getSuggestion","model","ImageCaptionUtils","suggestion","*Set image width:* %0","TrackChangesEditing","markBlockFormat","previous","getCaptionFromImageModelElement","addObject","forward","ELEMENT_CAPTION","chain","backward","ImageEditing","*Reset image width*","removeObject","discardSuggestion","getChangedMarkers","insertImage","start","registerDescriptionCallback","isEqual","accept","discard","find","length","registerElementLabel","change","getClosestSelectedImageElement","convertInlineImageToBlock","imageCaption","createRange","alt","enableCommand","getNearestSelectionRange","afterInit","ELEMENT_IMAGE","imageStylePostApply","document","author","subType","uploadImage","imageTypeBlock","locale","name","Inline image to block image","isInContent","getSuggestionCallback","get","editor","getAttribute","head","end","differ","commandParams","FORMAT_SIDE_IMAGE","formatInline","ELEMENT_INLINE_IMAGE","Block image to inline image","imageStyle","selection","value","getFirstRange","plugins","convertBlockImageToInline","filter","_descriptionFactory","newValue","markInsertion","getSuggestions","isBefore","insertion","imageTypeInline","newRange","next","toPrevious","commands","normalizedStyles","join","imageBlock","_findSuggestions","ImageBlockEditing","markInlineFormat","registerCustomCallback","has","ImageUtils","from","width","fromPosition","findIndex","schema","ImageStyleEditing","imageInline","formatBlock","hasAttribute"];var Xr,$r;Xr=qr,$r=242,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Qr=function(t,e){return qr[t-=0]};class Jr extends t.Plugin{[Qr("0x40")](){const t=this[Qr("0x4e")];if(!t.plugins[Qr("0x71")](Qr("0x2a")))return;const n=t[Qr("0x5c")][Qr("0x4d")](Qr("0x21")),o=t[Qr("0x5c")][Qr("0x4d")](Qr("0x72")),s={},r=t[Qr("0x48")];if(n[Qr("0x3e")](Qr("0x2f")),n[Qr("0x5f")][Qr("0x37")](Qr("0x6c"),(t=>Yo(r,Qr("0x41"),t))),n[Qr("0x5f")][Qr("0x37")](Qr("0x79"),(t=>Yo(r,Qr("0x56"),t))),n[Qr("0x5f")].registerElementLabel("caption",(()=>Yo(r,Qr("0x27")))),t[Qr("0x5c")].has("ImageUploadEditing")&&n.enableCommand(Qr("0x46")),t.plugins[Qr("0x71")](Qr("0x6e"))&&t[Qr("0x5c")].has("ImageInlineEditing")&&(n[Qr("0x3e")](Qr("0x65"),((e,s)=>{const r=o[Qr("0x39")](t[Qr("0x1d")].document[Qr("0x59")]);t[Qr("0x1d")][Qr("0x38")]((()=>{n[Qr("0x22")](r,{commandName:Qr("0x65"),commandParams:[s]},[],Qr("0x5d"))}))})),n[Qr("0x3e")](Qr("0x47"),((e,s)=>{t[Qr("0x1d")].change((r=>{let x=o[Qr("0x39")](t[Qr("0x1d")].document[Qr("0x59")]),a=r[Qr("0x3")](x);const c=i.LivePosition[Qr("0x75")](a[Qr("0x30")],Qr("0x68")),l=i.LivePosition[Qr("0x75")](a[Qr("0x51")],"toNext");n.forceDefaultExecution((()=>e(s))),x=o[Qr("0x39")](t.model[Qr("0x43")][Qr("0x59")]),a=r[Qr("0x3")](x);const d=r[Qr("0x3c")](c,l);c.detach(),l[Qr("0x17")](),n[Qr("0x22")](x,{commandName:Qr("0x65"),commandParams:[]},[],Qr("0x3a")),d[Qr("0x30")][Qr("0x63")](a.start)&&n[Qr("0x61")](r.createRange(d[Qr("0x30")],a[Qr("0x30")]),Qr("0x3a")),a[Qr("0x51")][Qr("0x63")](d[Qr("0x51")])&&n[Qr("0x61")](r.createRange(a[Qr("0x51")],d.end),Qr("0x3a"))}))})),n[Qr("0x1b")][Qr("0x70")](Qr("0x0"),Qr("0x3a"),"join",(()=>{})),n[Qr("0x1b")][Qr("0x70")](Qr("0x0"),Qr("0x3a"),Qr("0x33"),(()=>{})),n._suggestionFactory.registerCustomCallback("formatBlock","convertInlineImageToBlock",Qr("0x34"),n._suggestionFactory[Qr("0x4c")]("formatBlock","",Qr("0x33"))),n._suggestionFactory[Qr("0x70")](Qr("0x64"),Qr("0x3a"),Qr("0x6b"),(()=>{})),n._suggestionFactory.registerCustomCallback("insertion",Qr("0x3a"),Qr("0x34"),(([e])=>{const o=n._suggestionFactory[Qr("0x4c")](Qr("0x64"),"","discard");let s=e.start,r=e[Qr("0x51")];const i=t[Qr("0x1d")][Qr("0x77")][Qr("0x3f")](s,Qr("0x29")),x=t.model[Qr("0x77")][Qr("0x3f")](r,Qr("0x26"));i.isCollapsed&&(s=i[Qr("0x30")]),x.isCollapsed&&(r=x[Qr("0x51")]),o([t.model[Qr("0x3c")](s,r)])})),n[Qr("0x1b")][Qr("0x70")](Qr("0x0"),"convertInlineImageToBlock",Qr("0x28"),c),n[Qr("0x1b")][Qr("0x70")]("insertion",Qr("0x3a"),"chain",c)),t[Qr("0x5c")].has("ImageCaptionEditing")&&(n[Qr("0x3e")](Qr("0x18"),((e,s)=>{const r=t[Qr("0x5c")][Qr("0x4d")](Qr("0x1e"));let i=o[Qr("0x39")](t[Qr("0x1d")][Qr("0x43")][Qr("0x59")]),x=r[Qr("0x24")](i);t[Qr("0x1d")][Qr("0x38")]((()=>{if(x)return void n[Qr("0x8")](t[Qr("0x1d")][Qr("0x3")](x));const a=o[Qr("0x12")](i);e(s),i=o[Qr("0x39")](t[Qr("0x1d")].document.selection),x=r[Qr("0x24")](i),n[Qr("0x61")](t[Qr("0x1d")][Qr("0x3")](x),a?null:Qr("0x3b"))}))})),n[Qr("0x1b")].registerCustomCallback(Qr("0x64"),Qr("0x3b"),"chain",c)),t[Qr("0x5c")][Qr("0x71")](Qr("0x78"))){n[Qr("0x3e")]("imageStyle",((s,r)=>{const i=t[Qr("0x5c")][Qr("0x4d")](Qr("0x2")).me,x=t[Qr("0x69")][Qr("0x4d")](Qr("0x58"));let a=o[Qr("0x39")](t.model[Qr("0x43")][Qr("0x59")]),c=t[Qr("0x1d")][Qr("0x3")](a),l=x[Qr("0x5a")];if(l==r[Qr("0x5a")])return;const d={commandName:Qr("0x58"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Qr("0x38")]((()=>{if(n[Qr("0x62")]()[Qr("0x5e")]((t=>t[Qr("0x4b")]&&i==t[Qr("0x44")]&&(Qr("0x0")==t.type||"formatInline"==t.type)&&(Qr("0x9")==t[Qr("0x45")]||Qr("0x42")==t[Qr("0x45")])&&t[Qr("0x5b")]()[Qr("0x32")](c)))[Qr("0xb")]((t=>n.discardSuggestion(t[Qr("0x50")]))),a=o[Qr("0x39")](t.model[Qr("0x43")].selection),c=t[Qr("0x1d")][Qr("0x3")](a),x[Qr("0x5")](),t.commands[Qr("0x4d")](Qr("0x65"))[Qr("0x5")](),t[Qr("0x69")][Qr("0x4d")](Qr("0x47"))[Qr("0x5")](),l=x.value,l!=r[Qr("0x5a")])return o[Qr("0x15")](a)&&x.shouldConvertImageType(r[Qr("0x5a")],a)?(s(r),a=o[Qr("0x39")](t[Qr("0x1d")][Qr("0x43")][Qr("0x59")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Qr("0x9"))):void(o[Qr("0x12")](a)?n[Qr("0x22")](a,d,[],Qr("0x42")):n[Qr("0x6f")](c,d,Qr("0x42")))}))}));for(const e of t[Qr("0x5c")].get(Qr("0x78"))[Qr("0x6a")])s[e[Qr("0x49")]]=e[Qr("0x7")].toLowerCase();n._suggestionFactory[Qr("0x70")](Qr("0x0"),Qr("0x9"),Qr("0x6b"),(()=>{})),n[Qr("0x1b")][Qr("0x70")](Qr("0x0"),Qr("0x42"),Qr("0x6b"),(()=>{})),n[Qr("0x1b")][Qr("0x70")](Qr("0x55"),"imageStylePostApply",Qr("0x6b"),(()=>{})),n._suggestionFactory[Qr("0x70")](Qr("0x0"),Qr("0x9"),"accept",(()=>{})),n._suggestionFactory.registerCustomCallback(Qr("0x0"),Qr("0x9"),"discard",((t,e)=>{n._suggestionFactory[Qr("0x4c")](Qr("0x0"),"",Qr("0x33"))(t,{commandName:e[Qr("0x19")],commandParams:e.commandReversedParams})})),n._suggestionFactory[Qr("0x70")](Qr("0x0"),"imageStylePreApply",Qr("0x28"),c)}const x=[{type:Qr("0x0"),subType:Qr("0x9")},{type:Qr("0x64"),subType:Qr("0x3b")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:Qr("0x64"),subType:Qr("0x3a")}];function a(t,e){const s=x[Qr("0x76")]((({type:e,subType:n})=>t[Qr("0x4")]==e&&t[Qr("0x45")]==n)),r=x[Qr("0x76")]((({type:t,subType:n})=>e[Qr("0x4")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[Qr("0x5b")](),a=e[Qr("0x5b")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Qr("0x6d")](i,Qr("0x64")).filter((({suggestion:t,meta:e})=>e[Qr("0xa")]&&"convertInlineImageToBlock"==t[Qr("0x45")]));if(t[Qr("0x36")]>1&&a.end[Qr("0x32")](i.start))return!0;if(1==t[Qr("0x36")]&&(i[Qr("0x30")].isEqual(a.end)||i.end.isEqual(a[Qr("0x30")])))return!0}if(3==s&&3==r&&i[Qr("0x30")][Qr("0x63")](a[Qr("0x30")])){const t=i.end[Qr("0x14")],e=a[Qr("0x30")][Qr("0x10")];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[Qr("0x1d")][Qr("0x43")].registerPostFixer((()=>{let e=!1;const s=Array[Qr("0x73")](t[Qr("0x1d")][Qr("0x43")][Qr("0x52")][Qr("0x2e")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Qr("0xf")](t);if(Qr("0x1f")==s&&n[Qr("0x1a")](a)){if(Qr("0x0")==i&&(Qr("0x9")==x||"imageStylePostApply"==x)){const t=n[Qr("0x1c")](a);if(r[Qr("0x66")]){const s=t[Qr("0x5b")]().getContainedElement();if(o[Qr("0x12")](s))continue;n[Qr("0x2d")](t),e=!0}}if(Qr("0x64")==i&&"imageCaption"==x&&!r.newRange){const t=n.getSuggestion(a);t[Qr("0x67")]&&t[Qr("0x67")][Qr("0x4b")]&&(n.discardSuggestion(t[Qr("0x67")]),e=!0)}}}return e})),t[Qr("0x5c")][Qr("0x71")](Qr("0xe"))&&n[Qr("0x3e")](Qr("0xc"),((e,s)=>{const r=o[Qr("0x39")](t.model[Qr("0x43")][Qr("0x59")]);r[Qr("0x4f")](Qr("0x74"))!=s[Qr("0x74")]&&t[Qr("0x1d")].change((()=>{n[Qr("0x22")](r,{commandName:Qr("0xc"),commandParams:[s]})}))})),t[Qr("0x5c")][Qr("0x71")](Qr("0x16"))&&n.enableCommand(Qr("0xd"),((e,s)=>{const r=o[Qr("0x39")](t[Qr("0x1d")][Qr("0x43")][Qr("0x59")]);(r[Qr("0x1")]("alt")?r[Qr("0x4f")](Qr("0x3d")):"")!=s[Qr("0x60")]&&t.model[Qr("0x38")]((()=>{n[Qr("0x22")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[Qr("0x5f")][Qr("0x31")]((t=>{if(x[Qr("0x35")]((({type:e,subType:n})=>t.type==e&&t[Qr("0x45")]==n)))return t[Qr("0x23")]?{}:void 0})),n[Qr("0x5f")][Qr("0x31")]((t=>{if("insertion"==t[Qr("0x4")]||"deletion"==t[Qr("0x4")]){const e=t.getContainedElement();if(e&&e.is(Qr("0x11"),"caption"))return{type:Qr("0x64")==t[Qr("0x4")]?Qr("0x25"):Qr("0x2c"),element:e,quantity:1}}})),n[Qr("0x5f")][Qr("0x31")]((t=>Qr("0x0")==t[Qr("0x4")]&&Qr("0x3a")==t.subType?{type:"format",content:Qr("0x4a")}:Qr("0x0")==t[Qr("0x4")]&&Qr("0x5d")==t[Qr("0x45")]?{type:"format",content:Qr("0x57")}:void 0)),n[Qr("0x5f")][Qr("0x31")]((t=>{const{data:e}=t;if(e){if(Qr("0x58")==e[Qr("0x19")]){const t=e[Qr("0x53")][0][Qr("0x5a")];return n=Qr("0x13")===t?Yo(r,Qr("0x54")):s[t]||t,{type:Qr("0x6"),content:Yo(r,"*Format:* %0",n)}}if(Qr("0xd")==e.commandName){const t=e[Qr("0x53")][0].newValue;return t?{type:Qr("0x6"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Qr("0x6"),content:Yo(r,"*Remove image text alternative*")}}if("resizeImage"==e[Qr("0x19")]){const t=e[Qr("0x53")][0][Qr("0x74")];return t?{type:Qr("0x6"),content:Yo(r,Qr("0x20"),t)}:{type:"format",content:Yo(r,Qr("0x2b"))}}}var n}))}}const Zr=["model","*Format:* replace image URL","plugins","has","registerCustomCallback","change","getSuggestionCallback","data","Users","locale","registerDescriptionCallback","markBlockFormat","replaceImageSource","get","enableCommand","discard","getSuggestions","_suggestionFactory","editor","handleReplaceImageCommand","handleSuggestionDescription","src","commandName","getSelectedElement","formatBlock","ImageEditing","accept","TrackChangesEditing","subType"];var Yr,ti;Yr=Zr,ti=336,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x1")][ei("0xe")][ei("0xf")](ei("0x8")))return;const t=this[ei("0x1")][ei("0xe")][ei("0x19")](ei("0xa"));t[ei("0x1a")](ei("0x18"),((t,e)=>this[ei("0x2")](t,e))),t._suggestionFactory.registerCustomCallback(ei("0x7"),ei("0x18"),ei("0x9"),t[ei("0x0")][ei("0x12")](ei("0x7"),null,ei("0x1b"))),t[ei("0x0")][ei("0x10")](ei("0x7"),"replaceImageSource",ei("0x1b"),t[ei("0x0")][ei("0x12")](ei("0x7"),null,ei("0x9"))),t._descriptionFactory[ei("0x16")]((t=>this[ei("0x3")](t)))}[ei("0x2")](t,e){const n=this[ei("0x1")][ei("0xe")][ei("0x19")](ei("0xa")),o=this.editor[ei("0xc")].document.selection[ei("0x6")]();this.editor[ei("0xc")][ei("0x11")]((()=>{let s=o.getAttribute(ei("0x4"));const r=this[ei("0x1")][ei("0xe")][ei("0x19")](ei("0x14")).me;for(const t of n[ei("0x1c")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x18")===t[ei("0xb")]&&e===o){t.author!==r&&t[ei("0x1b")](),s=t[ei("0x13")].commandParams[0].source;break}}t(e),n[ei("0x17")](o,{commandName:ei("0x18"),commandParams:[{source:s}]},[],ei("0x18"))}))}[ei("0x3")](t){const{data:e}=t;if(e&&ei("0x18")===e[ei("0x5")]){const t=ei("0xd");return{type:"format",content:Yo(this[ei("0x1")][ei("0x15")],t)}}}}const oi=["bind","lowest","dataInsert","afterInit","_handleImportedData","value","listenTo","enableCommand","_trackChangesExecuted","_trackChangesValueDuringImport","forEach","collaboration_features","commands","get","Users","TrackChangesEditing","editor","importWord","high","execute","plugins","trackChanges"];var si,ri;si=oi,ri=476,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x11")]=!1,this[ii("0x10")]=!1}[ii("0xb")](){const t=this.editor,e=t[ii("0x14")][ii("0x15")](ii("0x3")),n=t[ii("0x14")][ii("0x15")](ii("0x7"));e&&(e.on(ii("0x5"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0xd")],e[ii("0x13")].track_changes=!this._trackChangesValueDuringImport}),{priority:ii("0x4")}),this.listenTo(e,ii("0xa"),this[ii("0xc")][ii("0x8")](this)),this[ii("0xe")](e,"dataInsert",(()=>{this[ii("0x10")]&&(n.execute(),this[ii("0x10")]=!1)}),{priority:ii("0x9")}),t[ii("0x6")].get(ii("0x1"))[ii("0xf")](ii("0x3")))}[ii("0xc")](t,e){const{suggestions:n}=e,o=this[ii("0x2")][ii("0x14")][ii("0x15")](ii("0x7")),s=o[ii("0xd")];this[ii("0x11")]!==s&&(o[ii("0x5")](),this[ii("0x10")]=!0),n&&n[ii("0x12")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x2")][ii("0x6")].get(ii("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x3")}}};this[ii("0x2")].plugins[ii("0x15")](ii("0x1"))._setSuggestionData(s)}))}}const ai=["IndentBlock","plugins","TrackChangesEditing","editor","IndentEditing","get","getSelectedBlocks","enableCommand","from","format","locale","schema","blockIndent","getItemLabel","commandName","selection","outdentBlock","indentBlock","has","outdent","model","_descriptionFactory","getItems","*Outdent:* %0","markBlockFormat","*Indent:* %0","indent"];var ci,li;ci=ai,li=266,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{afterInit(){const t=this[di("0x7")],e=t[di("0x5")][di("0x9")](di("0x6"));t.plugins[di("0x16")](di("0x8"))&&(e.enableCommand(di("0x3")),e[di("0xb")](di("0x17")));const n=t[di("0xe")];if(t.plugins[di("0x16")](di("0x4"))){for(const n of["indentBlock","outdentBlock"])e[di("0xb")](n,(()=>{const o=Array[di("0xc")](this[di("0x7")][di("0x18")].document[di("0x13")][di("0xa")]()).filter((t=>this[di("0x7")][di("0x18")][di("0xf")].checkAttribute(t,di("0x10"))));t[di("0x18")].change((()=>{for(const t of o)e[di("0x1")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[di("0x19")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(di("0x15")!=o[di("0x12")]&&di("0x14")!=o[di("0x12")])return;const s=t[di("0x1a")]()[0],r=e._descriptionFactory[di("0x11")](s);return di("0x15")==o[di("0x12")]?{type:"format",content:Yo(n,di("0x2"),r)}:di("0x14")==o.commandName?{type:di("0xd"),content:Yo(n,di("0x0"),r)}:void 0}))}}}var gi,mi,fi=["enableCommand","init","editor","input","TrackChangesEditing","get","plugins"];gi=fi,mi=332,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}[hi("0x5")](){this[hi("0x6")][hi("0x3")][hi("0x2")](hi("0x1"))[hi("0x4")](hi("0x0"))}}const bi=["enableCommand","getRanges","link","markInlineFormat","commandName","has","*Set link:* %0","format","plugins","LinkEditing","getFirstPosition","*Remove link*","unlink","document","hasAttribute","change","linkHref","isCollapsed","TrackChangesEditing","get","getAttribute","editor","model"];var Ei,_i;Ei=bi,_i=440,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this[Ti("0x12")];if(!t[Ti("0x5")][Ti("0x2")](Ti("0x6")))return;const e=t.plugins[Ti("0x10")](Ti("0xf"));e[Ti("0x14")](Ti("0x16"),((n,o)=>{const s=t.model[Ti("0xa")].selection;let r=[];if(s[Ti("0xe")]){if(!s[Ti("0xb")](Ti("0xd")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0xd"),s[Ti("0x11")](Ti("0xd")),t[Ti("0x13")]);r=[e]}}else r=Array.from(s[Ti("0x15")]());t[Ti("0x13")][Ti("0xc")]((()=>{for(const t of r)e[Ti("0x0")](t,{commandName:Ti("0x16"),commandParams:[o]})}))})),e.enableCommand(Ti("0x9"),(()=>{const n=this[Ti("0x12")][Ti("0x13")],o=n[Ti("0xa")].selection;n[Ti("0xc")]((()=>{let n=[];n=o[Ti("0xe")]?[(0,Vs.findAttributeRange)(o[Ti("0x7")](),Ti("0xd"),o[Ti("0x11")](Ti("0xd")),t[Ti("0x13")])]:ms("linkHref",o.getFirstRange(),t[Ti("0x13")]);for(const t of n)e.markInlineFormat(t,{commandName:"unlink",commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x16")==n.commandName){const t=n.commandParams[0];return{type:Ti("0x4"),content:Yo(o,Ti("0x3"),'"'+t+'"')}}return Ti("0x9")==n[Ti("0x1")]?{type:Ti("0x4"),content:Yo(o,Ti("0x8"))}:void 0}}))}}const yi=["ListEditing","ELEMENT_BULLETED_LIST","checkChild","getAttribute","numberedList","enableCommand","todo","commandName","listIndent","change","listItem","add","name","todoList","push","previousSibling","createRange","ELEMENT_LIST_ITEM","checkTodoList","value","commandParams","document","isObject","slice","TodoListEditing","nextSibling","has","selection","indentList","get","TrackChangesEditing","createPositionAt","plugins","bulletedList","execute","afterInit","format","registerDescriptionCallback","*Uncheck item*","ELEMENT_NUMBERED_LIST","todoListChecked","model","from","bulleted","parent","_selectedElements","before","element","*Indent:* %0","*Change to:* %0","numbered","filter","commands","getSelectedBlocks","List","findIndex","registerElementLabel","_descriptionFactory","ELEMENT_TODO_LIST","markBlockFormat","forceValue","locale","outdentList"];var ki,Ai;ki=yi,Ai=149,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xc")](){const t=this.editor,e=t[vi("0x26")];if(!t[vi("0x9")][vi("0x3")](vi("0x28")))return;const n=t.plugins[vi("0x6")](vi("0x7")),o=t.plugins.has(vi("0x1"));function s(e){return()=>{const o=t.model[vi("0x3d")][vi("0x4")],s=t.commands.get(e);if(s[vi("0x3b")])return void t[vi("0xb")]("paragraph",{});const r=e[vi("0x0")](0,-4),i=function(t,e,n){let o=Array[vi("0x13")](t).filter((t=>{return e=t,(o=n)[vi("0x2a")](e[vi("0x15")],vi("0x32"))&&!o[vi("0x3e")](e);var e,o}));o=o[vi("0x1c")]((t=>!t.is(vi("0x18"),vi("0x32"))||t[vi("0x2b")]("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0x18"),vi("0x32"))?s[vi("0x33")](Si(t)):s.add(t);return Array[vi("0x13")](s)}(o[vi("0x1e")](),r,t[vi("0x12")].schema);t[vi("0x12")][vi("0x31")]((()=>{for(const t of i)n[vi("0x24")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x3b")]}],formatGroupId:"blockName"},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x13")](t);const n=e[vi("0x20")]((t=>vi("0x32")!=t[vi("0x34")]));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0x12")][vi("0x3d")][vi("0x4")][vi("0x1e")]()),s=t[vi("0x12")][vi("0x38")](t[vi("0x12")][vi("0x8")](o[0],vi("0x17")),t[vi("0x12")].createPositionAt(o[o.length-1],"end"));t[vi("0x12")][vi("0x31")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x30")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2")];for(;t&&t.getAttribute(vi("0x30"))>n[vi("0x2b")]("listIndent");)e.add(t),t=t.nextSibling}return Array[vi("0x13")](e)}(o))}))}}n.enableCommand(vi("0x2c"),s(vi("0x2c"))),n[vi("0x2d")](vi("0xa"),s(vi("0xa"))),o&&n[vi("0x2d")](vi("0x35"),s(vi("0x35"))),n.enableCommand(vi("0x5"),r("indentList")),n[vi("0x2d")](vi("0x27"),r(vi("0x27"))),o&&n.enableCommand("checkTodoList",(()=>{const e=t[vi("0x1d")][vi("0x6")]("checkTodoList"),o=Array[vi("0x13")](e[vi("0x16")]);o.filter((t=>t[vi("0x2b")](vi("0x11"))!=e[vi("0x3b")])),t[vi("0x12")][vi("0x31")]((()=>{for(const t of o)n[vi("0x24")](t,{commandName:vi("0x3a"),commandParams:[{forceValue:!e[vi("0x3b")]}]})}))})),n[vi("0x22")][vi("0x21")](vi("0x32"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x22")][vi("0xe")]((t=>{const{data:n}=t;if(n){if(vi("0x2c")==n[vi("0x2f")]||"bulletedList"==n[vi("0x2f")]||"todoList"==n.commandName)switch(n[vi("0x2f")].replace(vi("0x1f"),"")){case vi("0x14"):return o(Yo(e,vi("0x29")));case vi("0x1b"):return o(Yo(e,vi("0x10")));case vi("0x2e"):return o(Yo(e,vi("0x23")))}if(vi("0x5")==n[vi("0x2f")])return{type:vi("0xd"),content:Yo(e,vi("0x19"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x27")==n.commandName)return{type:vi("0xd"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x39")))};if("checkTodoList"==n[vi("0x2f")])return n[vi("0x3c")][0][vi("0x25")]?{type:vi("0xd"),content:Yo(e,"*Check item*")}:{type:vi("0xd"),content:Yo(e,vi("0xf"))}}function o(t){return{type:vi("0xd"),content:Yo(e,vi("0x1a"),t)}}}))}}function Si(t){const e=t[vi("0x2b")](vi("0x30"));if(0==e)return t;let n=t;for(;t[vi("0x37")]&&t.previousSibling.is(vi("0x18"),vi("0x32"));){const o=t[vi("0x37")][vi("0x2b")](vi("0x30"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x37")]}return n}function Ii(t){const e=[];if(t.is(vi("0x18"),"listItem")&&t[vi("0x2b")]("listIndent")>0){let n=t[vi("0x2")];for(;n&&vi("0x32")==n[vi("0x34")]&&n[vi("0x2b")]("listIndent")==t[vi("0x2b")](vi("0x30"));)e[vi("0x36")](n),n=n.nextSibling}return e}const Li=["createPositionAt","backward","editor","styles","listItem","*Change to:* %0","*Format:* set order to regular","locale","getSelectedBlocks","listReversed","enableCommand","parent","handleListStartCommand","flat","getSiblingNodes","document","replace","*Format:* set start index to %0","listType","_getTranslationKeyForListStyle","commandParams","TrackChangesEditing","list.properties","_getSuggestionBlocks","length","getFirstPosition","handleListReversedCommand","_LIST_","getAttribute","element","format","afterInit","toUpperCase","listStyle","get","plugins","markMultiRangeBlockFormat","filter","change","registerDescriptionCallback","unshift","numbered","_descriptionFactory","handleListStyleCommand","selection","map","model","config","handleDescriptions","ELEMENT_","ListPropertiesEditing","startIndex","listStart","ListUtils","*Format:* set order to reversed","forward","reversed","_getSuggestionBlocksForListStyle","createRange","commandName","push","bind","before"];var Ni,wi;Ni=Li,wi=329,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x11")](){if(!this.editor[Mi("0x15")].has(Mi("0x24")))return;const t=this[Mi("0x33")][Mi("0x21")][Mi("0x14")](Mi("0x8")),e=this.editor[Mi("0x15")].get("TrackChangesEditing");t[Mi("0x34")]&&e[Mi("0x3b")](Mi("0x13"),this[Mi("0x1d")][Mi("0x2f")](this)),t[Mi("0x2a")]&&e.enableCommand(Mi("0x3a"),this[Mi("0xc")][Mi("0x2f")](this)),t[Mi("0x25")]&&e.enableCommand(Mi("0x26"),this[Mi("0x3d")][Mi("0x2f")](this)),e[Mi("0x1c")][Mi("0x19")](this[Mi("0x22")][Mi("0x2f")](this))}[Mi("0x1d")](t,e={}){const n=this[Mi("0x33")].plugins[Mi("0x14")](Mi("0x7")),o=this[Mi("0x2b")]();this.editor[Mi("0x20")][Mi("0x18")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Mi("0x13"),commandParams:[{type:e.type}],formatGroupId:Mi("0x13")})}))}[Mi("0xc")](t,e={}){const n=this[Mi("0x33")].plugins[Mi("0x14")](Mi("0x7")),o=this._getSuggestionBlocks((t=>t.is(Mi("0xf"),"listItem")&&Mi("0x1b")===t[Mi("0xe")](Mi("0x4"))));if(o.length<1)return;const s=o[Mi("0x1f")]((t=>this[Mi("0x33")].model[Mi("0x2c")](this.editor.model[Mi("0x31")](t,"before"),this[Mi("0x33")][Mi("0x20")][Mi("0x31")](t,0))));this.editor[Mi("0x20")][Mi("0x18")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mi("0x3a"),commandParams:[{reversed:e[Mi("0x2a")]}],formatGroupId:Mi("0x3a")})}))}[Mi("0x3d")](t,e={}){const n=this[Mi("0x33")][Mi("0x15")][Mi("0x14")](Mi("0x7")),o=this[Mi("0x9")]((t=>t.is(Mi("0xf"),Mi("0x35"))&&Mi("0x1b")===t[Mi("0xe")](Mi("0x4"))));if(o[Mi("0xa")]<1)return;const s=o.map((t=>this[Mi("0x33")].model.createRange(this.editor.model.createPositionAt(t,Mi("0x30")),this[Mi("0x33")][Mi("0x20")][Mi("0x31")](t,0))));this[Mi("0x33")].model[Mi("0x18")]((()=>{n[Mi("0x16")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:Mi("0x26")})}))}handleDescriptions(t){const e=this[Mi("0x33")][Mi("0x38")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x2d")]){case Mi("0x13"):o=Mi("0x36"),s={type:Mi("0x10"),content:Yo(e,o,Yo(e,this[Mi("0x5")](n[Mi("0x6")][0].type)))};break;case Mi("0x3a"):o=n[Mi("0x6")][0][Mi("0x2a")]?Mi("0x28"):Mi("0x37"),s={type:Mi("0x10"),content:Yo(e,o)};break;case Mi("0x26"):o=Mi("0x3"),s={type:Mi("0x10"),content:Yo(e,o,n.commandParams[0][Mi("0x25")])}}return s}[Mi("0x2b")](){var t,e,n,o;const s=this[Mi("0x33")][Mi("0x15")][Mi("0x14")](Mi("0x27"));let r=Array.from(this.editor[Mi("0x20")][Mi("0x1")][Mi("0x1e")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0xf"),Mi("0x35")))&&r[Mi("0x1a")](...s[Mi("0x0")](this[Mi("0x33")][Mi("0x20")].document[Mi("0x1e")][Mi("0xb")](),Mi("0x32"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is("element",Mi("0x35")))&&r[Mi("0x2e")](...s.getSiblingNodes(this[Mi("0x33")][Mi("0x20")][Mi("0x1")][Mi("0x1e")].getLastPosition(),Mi("0x29"))),r=[...new Set(r)],(null===(o=null===(n=this.editor[Mi("0x20")][Mi("0x1")].selection[Mi("0xb")]())||void 0===n?void 0:n[Mi("0x3c")])||void 0===o?void 0:o.is(Mi("0xf"),Mi("0x35")))&&(r=r[Mi("0x17")]((t=>t.is(Mi("0xf"),Mi("0x35"))))),r}[Mi("0x9")](t){const e=this[Mi("0x33")][Mi("0x15")][Mi("0x14")]("ListUtils");let n=Array.from(this[Mi("0x33")].model.document[Mi("0x1e")][Mi("0x39")]())[Mi("0x17")](t).map((t=>{const n=this.editor.model[Mi("0x31")](t,0);return[...e.getSiblingNodes(n,Mi("0x32")),...e[Mi("0x0")](n,Mi("0x29"))]}))[Mi("0x3e")]();return n=[...new Set(n)],n}[Mi("0x5")](t){return Mi("0x23")+this[Mi("0x33")].plugins.get(Mi("0x27")).getListTypeFromListStyleType(t)[Mi("0x12")]()+Mi("0xd")+t.toUpperCase()[Mi("0x2")](/-/g,"_")}}const Fi=["_descriptionFactory","locale","afterInit","downcastDispatcher","MediaEmbedEditing","div","conversion","get","for","high","plugins","attribute:url:media","data","has","options","media","ELEMENT_MEDIA","showSuggestionHighlights","enableCommand","createEmptyElement","stop","elementToElement","TrackChangesEditing","editor","mediaEmbed","dataDowncast"];var Pi,Di;Pi=Fi,Di=330,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this[Bi("0x5")];if(!t[Bi("0x12")][Bi("0x15")](Bi("0xc")))return;const e=t[Bi("0x12")][Bi("0xf")](Bi("0x4")),n=t[Bi("0x9")];e[Bi("0x0")](Bi("0x6")),e[Bi("0x8")].registerElementLabel(Bi("0x17"),(t=>Yo(n,Bi("0x18"),t))),t[Bi("0xe")][Bi("0x10")](Bi("0x7"))[Bi("0x3")]({model:Bi("0x17"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x19")])return e[Bi("0x1")](Bi("0xd"))},converterPriority:Bi("0x11")}),t[Bi("0x14")][Bi("0xb")].on(Bi("0x13"),((t,e,n)=>{n[Bi("0x16")].showSuggestionHighlights&&t[Bi("0x2")]()}),{priority:Bi("0x11")})}}const Ui=["enableCommand","has","TrackChangesEditing","plugins","afterInit","editor","mention","MentionEditing","get"];var Gi,Hi;Gi=Ui,Hi=159,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x7")](){const t=this[Wi("0x8")];t.plugins[Wi("0x4")](Wi("0x1"))&&t[Wi("0x6")][Wi("0x2")](Wi("0x5"))[Wi("0x3")](Wi("0x0"))}}const Vi=["get","pageBreak","plugins","afterInit","PageBreakEditing","registerElementLabel","has","TrackChangesEditing","locale"];var Ki,qi;Ki=Vi,qi=353,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x1")](){const t=this.editor;if(!t[Xi("0x0")][Xi("0x4")](Xi("0x2")))return;t[Xi("0x0")][Xi("0x7")](Xi("0x5")).enableCommand(Xi("0x8"));const e=t[Xi("0x0")][Xi("0x7")](Xi("0x5")),n=t[Xi("0x6")];e._descriptionFactory[Xi("0x3")](Xi("0x8"),(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Qi=["isTouching","markerName","mapper","locale","downcastDispatcher","insertParagraph","*Change to:* %0","schema","editor","isObject","filter","TrackChangesEditing","$text","paragraph","nodeAfter","insertion","model","insert","consume","has","editing","span","Paragraph","ck-suggestion-marker-split","checkChild","blockName","bindElementToMarker","highest","parent","toViewPosition","ck-suggestion-marker--active","afterInit","end","get","ELEMENT_PARAGRAPH","isBlock","addMarker:suggestion:insertion","writer","consumable","plugins","getItemLabel","_descriptionFactory","name","includes","getFirstRange","activeMarkers","selection","registerDescriptionCallback","change","markerRange","format","isLimit","showSuggestionHighlights","markBlockFormat","start"];var Ji,Zi;Ji=Qi,Zi=167,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{[Yi("0x1d")](){const t=this[Yi("0x6")];if(!t[Yi("0x25")][Yi("0x11")](Yi("0x14")))return;const e=t[Yi("0x1")],n=t.plugins.get("TrackChangesEditing");n[Yi("0x27")].registerElementLabel(Yi("0xb"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n.enableCommand("paragraph",((e,o={})=>{const s=t[Yi("0xe")].document,r=o[Yi("0x2c")]||s[Yi("0x2c")],i=Array.from(r.getSelectedBlocks())[Yi("0x8")]((t=>{return e=t,(n=this[Yi("0x6")][Yi("0xe")][Yi("0x5")]).checkChild(e[Yi("0x1a")],Yi("0xb"))&&!n[Yi("0x7")](e)&&"paragraph"!=e[Yi("0x28")];var e,n}));t[Yi("0xe")][Yi("0x2e")]((()=>{for(const t of i)n[Yi("0x33")](t,{commandName:Yi("0xb"),commandParams:[],formatGroupId:Yi("0x17")},fs(t))}))})),n[Yi("0x27")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0xb")==n.commandName)return{type:Yi("0x30"),content:Yo(e,Yi("0x4"),Yo(e,Yi("0x20")))}})),n.enableCommand(Yi("0x3")),t[Yi("0x12")][Yi("0x2")].on(Yi("0x22"),ex(t),{priority:"highest"}),t.data[Yi("0x2")].on(Yi("0x22"),((e,n,o)=>{o.options[Yi("0x32")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x19")});const o=n[Yi("0x27")];o[Yi("0x2d")]((n=>{if(Yi("0xd")!==n.type)return;const{start:s,end:r}=n[Yi("0x2a")]();if(!s[Yi("0x35")](r)||!s[Yi("0xc")])return;const i=t[Yi("0xe")].schema,x=s[Yi("0xc")];return i.isBlock(x)&&!i[Yi("0x31")](x)&&i[Yi("0x16")](x,Yi("0xa"))?{type:"insertion",content:Yo(e,"*Insert:* %0",o[Yi("0x26")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x25")][Yi("0x1f")](Yi("0x9")),i=o.markerRange[Yi("0x34")],x=o.markerRange[Yi("0x1e")],a=t[Yi("0xe")].schema;if(!i[Yi("0x35")](x)||!i[Yi("0xc")])return;const c=i[Yi("0xc")];if(a[Yi("0x21")](c)&&!a[Yi("0x31")](c)&&a[Yi("0x16")](c,Yi("0xa"))){if(!s[Yi("0x24")][Yi("0x10")](o[Yi("0x2f")],n[Yi("0x28")]))return;const t=s[Yi("0x23")].createUIElement(Yi("0x13"),{class:Yi("0x15")}),i=s.mapper[Yi("0x1b")](x);e&&r[Yi("0x2b")][Yi("0x29")](o[Yi("0x36")])&&s[Yi("0x23")].addClass(Yi("0x1c"),t),s[Yi("0x23")][Yi("0xf")](i,t),s[Yi("0x0")][Yi("0x18")](t,o[Yi("0x36")])}}}const nx=["locale","schema","getAttributeProperties","commandName","isFormatting","removeFormat","selection","from","_descriptionFactory","model","getRanges","createRangeOn","has","get","afterInit","enableCommand","TrackChangesEditing","registerDescriptionCallback","plugins"];var ox,sx;ox=nx,sx=149,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x11")](){const t=this.editor;if(!t.plugins[rx("0xf")]("RemoveFormatEditing"))return;const e=t[rx("0x2")][rx("0x10")](rx("0x0"));e[rx("0x12")](rx("0x8"),(n=>{const o=t[rx("0xc")].document[rx("0x9")];o.isCollapsed?n():t[rx("0xc")].change((()=>{const n=Array[rx("0xa")](o[rx("0xd")]());for(const o of n)for(const n of o.getItems())xx(n,t.model[rx("0x4")])&&e.markInlineFormat(t[rx("0xc")][rx("0xe")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[rx("0xb")][rx("0x1")]((e=>{const{data:n}=e;if(n&&rx("0x8")==n[rx("0x6")])return{type:"format",content:Yo(t[rx("0x3")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x5")](n);if(t&&t[rx("0x7")])return!0}return!1}const ax=["discardSelectedSuggestions","has","editor","goToPreviousRestrictedEditingException","trackChanges","afterInit","goToNextRestrictedEditingException","TrackChangesEditing","RestrictedEditingModeEditing","enableCommand","discardAllSuggestions","plugins","get"];var cx,lx;cx=ax,lx=246,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x6")](){const t=this[dx("0x3")];if(!t[dx("0xc")][dx("0x2")](dx("0x9")))return;const e=t[dx("0xc")][dx("0x0")](dx("0x8"));e.enableCommand(dx("0x4")),e[dx("0xa")](dx("0x7"));const n=t[dx("0xc")][dx("0x0")]("RestrictedEditingModeEditing");n.enableCommand(dx("0x5")),n[dx("0xa")]("acceptSuggestion"),n[dx("0xa")]("discardSuggestion"),n.enableCommand("acceptAllSuggestions"),n[dx("0xa")](dx("0xb")),n[dx("0xa")]("acceptSelectedSuggestions"),n[dx("0xa")](dx("0x1"))}}const gx=["addMarker:suggestion:insertion","data","span","ELEMENT_LINE_BREAK","merge","writer","enableCommand","get","bindElementToMarker","addMarker:suggestion","model","downcastDispatcher","requires","editing","includes","plugins","init","TrackChangesEditing","markerName","showSuggestionHighlights","getItems","shiftEnter","registerElementLabel","high","addMarker:suggestion:deletion","consumable","split","mapper","options","deletion","insert","editor","markerRange","createPositionBefore","softBreak","test","ck-suggestion-marker-","createUIElement"];var mx,fx;mx=gx,fx=175,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x1b")](){return[nr.ShiftEnter]}[hx("0x1f")](){const t=this[hx("0x8")],e=t.plugins[hx("0x16")](hx("0x20"));e[hx("0x15")](hx("0x24")),t[hx("0x1c")][hx("0x1a")].on(hx("0xf"),bx(t),{priority:hx("0x0")}),t[hx("0x1c")].downcastDispatcher.on(hx("0x1"),bx(t),{priority:"high"}),t[hx("0x10")][hx("0x1a")].on(hx("0x18"),((e,n,o)=>{o[hx("0x5")][hx("0x22")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0x25")](hx("0xb"),(e=>Yo(t.locale,hx("0x12"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x1e")][hx("0x16")](hx("0x20"));if(!s[hx("0x2")][hx("0xc")](o[hx("0x9")],n.name))return;const i=t[hx("0x19")];for(const t of o[hx("0x9")][hx("0x23")]()){if(!t.is("element",hx("0xb")))continue;const n=hx("0x6")==o[hx("0x21")][hx("0x3")](":")[1]?hx("0x13"):hx("0x3"),x=s.writer[hx("0xe")](hx("0x11"),{class:hx("0xd")+n}),a=s[hx("0x4")].toViewPosition(i[hx("0xa")](t));e&&r.activeMarkers[hx("0x1d")](o[hx("0x21")])&&s[hx("0x14")].addClass("ck-suggestion-marker--active",x),s[hx("0x14")][hx("0x7")](a,x),s.mapper[hx("0x17")](x,o.markerName)}}}const Ex=["registerDescriptionCallback","value","forceValue","commands","format","locale","TrackChangesEditing","commandName","commandParams","_descriptionFactory","markInlineFormat","enableCommand","getRanges","change","get","document","plugins","from","FORMAT_RESTRICTED_DISABLED","has","StandardEditingModeEditing","model"];var _x,Tx;_x=Ex,Tx=347,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this.editor,e=t[Cx("0x4")],n=t[Cx("0xa")];if(!t[Cx("0x15")][Cx("0x2")](Cx("0x3")))return;const o=t[Cx("0x15")].get(Cx("0xb")),s="restrictedEditingException",r=t[Cx("0x8")][Cx("0x13")](s);o[Cx("0x10")](s,((t,n={})=>{const i=e[Cx("0x14")].selection;if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x7")]?n[Cx("0x7")]:!r[Cx("0x6")];e[Cx("0x12")]((()=>{const t=Array[Cx("0x0")](i[Cx("0x11")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0xf")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xe")][Cx("0x5")]((t=>{const{data:e}=t;if(e&&e[Cx("0xc")]==s)return e[Cx("0xd")][0][Cx("0x7")]?{type:Cx("0x9"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0x9"),content:Yo(n,Cx("0x1"))}}))}}const kx=["getItems","document","change","forceValue","getAncestors","format","getRanges","Style","_descriptionFactory","includes","push","block","modelElements","*Remove format:* %0","model","plugins","name","isCollapsed","config","_getStyleDefinition","enableCommand","inline","find","style","toLowerCase","locale","getDefinitionsForView","style:","isBlock","enabledStyles","classes","registerDescriptionCallback","afterInit","markInlineFormat","styleName","commandParams","from","has","every","_getRangesWithClasses","element","commands","selection","StyleUtils","get","value","add","TrackChangesEditing","normalizeConfig","getSelectedBlocks","DataSchema"];var Ax,vx;Ax=kx,vx=459,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x20")](){const t=this.editor;if(!t[Rx("0xf")][Rx("0x25")](Rx("0x7")))return;const e=t[Rx("0x29")][Rx("0x2c")](Rx("0x17")),n=t[Rx("0xf")][Rx("0x2c")](Rx("0x2f")),o=t[Rx("0x19")],s=t[Rx("0xf")].get(Rx("0x32")),r=t[Rx("0xf")].get(Rx("0x2b"))[Rx("0x30")](s,t[Rx("0x12")].get("style.definitions"));n[Rx("0x14")]("style",((o,{styleName:i})=>{const x=t[Rx("0xe")][Rx("0x1")][Rx("0x2a")],a=this[Rx("0x13")](i,r);if(!a)return;if(!e[Rx("0x1d")][Rx("0x9")](i))return;if(x[Rx("0x11")]&&!a[Rx("0x1c")])return void o({styleName:i});const c=!e[Rx("0x2d")][Rx("0x9")](a[Rx("0x10")]);if(a[Rx("0x1c")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x4")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Rx("0x10")])){n[Rx("0x2e")](o);break}}return n}(x[Rx("0x31")](),a[Rx("0xc")]);t[Rx("0xe")][Rx("0x2")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:Rx("0x17"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x1b")+i})}))}else{let e=Array[Rx("0x24")](x[Rx("0x6")]());if(!c){const n=Array[Rx("0x24")](s[Rx("0x1a")](a[Rx("0x28")],!1))[0][Rx("0xe")],o=[];for(const s of e){const e=this[Rx("0x27")](t[Rx("0xe")],s,a[Rx("0x1e")],n);o.push(...e)}e=o}t[Rx("0xe")][Rx("0x2")]((()=>{for(const t of e)n[Rx("0x21")](t,{commandName:Rx("0x17"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x8")][Rx("0x1f")]((t=>{const{data:e}=t;if(e&&Rx("0x17")===e.commandName)return e[Rx("0x23")][0][Rx("0x3")]?{type:Rx("0x5"),content:Yo(o,"*Format:* %0",e[Rx("0x23")][0][Rx("0x22")][Rx("0x18")]())}:{type:Rx("0x5"),content:Yo(o,Rx("0xd"),e.commandParams[0].styleName[Rx("0x18")]())}}))}[Rx("0x13")](t,e){let n=e[Rx("0xb")].find((e=>e[Rx("0x10")]===t));return n||(n=e[Rx("0x15")][Rx("0x16")]((e=>e[Rx("0x10")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x0")]()){const e=r.getAttribute(o);e&&n[Rx("0x26")]((t=>e[Rx("0x1e")][Rx("0x9")](t)))&&s[Rx("0xa")](t.createRangeOn(r))}return s}}const Ix=["order","getAttribute","tablePaste","ELEMENT_TABLE_COLUMN","showSuggestionHighlights","getItems","substr","getCellLocation","enqueueChange","filter","position","isTouching","end","execute","_getSuggestionCoords","deletion","getColumnIndexes","removeClass","data","getRowIndexes","classes","fromRange","getSelectionAffectedTableCells","_splitMarkerName","add","insertTableColumnLeft","type","maxColumn","insertTableRowAbove","low","editor","createTableWalker","insertion","getChangedMarkers","TableEditing","includes","values","insertTableColumnRight","findAncestor","name","addRange","ELEMENT_TABLE","accept","last","element","get","cell","selectTableRow","colspan","options","batch","rowspan","$textProxy","setSelection","_setupColumnsRowsFixing","isEqual","map","afterInit","tableRow","getSuggestion","getRanges","_descriptionFactory","toViewElement","rootName","_suggestionFactory","ELEMENT_TABLE_ROW","getContainedElement","registerDescriptionCallback","maxRow","minRow","removeTableColumn","join","has","markMultiRangeInsertion","discard","span","registerElementLabel","tableColumn","downcastDispatcher","$graveyard","createRangeOn","tableCell","document","selectTableColumn","addClass","nodeAfter","left","*Remove:* %0","writer","subType","minColumn","plugins","registerCustomCallback","addMarker:suggestion","detach","length","root","from","removeTableRow","ELEMENT_TABLE_COLUMN_WITH_TEXT","_getCoordsForCells","TrackChangesEditing","getChildren","ELEMENT_TABLE_ROW_WITH_TEXT","_tableSuggestions","_acceptFormatSuggestionCallbackFactory","*Insert:* %0","getFirstRange","forceValue","refresh","_tablePostFixingSubtypes","first","model","markMultiRangeDeletion","selection","locale","min","insertTableRowBelow","commands","enableCommand","ELEMENT_TABLE_WITH_TEXT","above","differ","isIntersectingWithRange","createRangeIn","hasAttribute","start","MIN_SAFE_INTEGER","table","TableUtils","MAX_SAFE_INTEGER","item","change","insertTable","highest","registerPostFixer","push","oldRange","max","toLowerCase"];var Lx,Nx;Lx=Ix,Nx=422,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x6c")]=[wx("0x38"),"tableColumn"],this[wx("0x66")]=new Set}[wx("0x37")](){const t=this[wx("0x1c")],e=t.model[wx("0x50")][wx("0x70")];if(!t[wx("0x59")][wx("0x46")](wx("0x20")))return;const n=t[wx("0x71")],o=t.plugins[wx("0x2b")]("TrackChangesEditing"),s=t.plugins[wx("0x2b")](wx("0x7f"));o[wx("0x3b")][wx("0x4a")](wx("0x7e"),(t=>Yo(n,wx("0x27"),t))),this[wx("0x34")](),o[wx("0x75")](wx("0x83")),o.enableCommand(wx("0x2d")),o[wx("0x75")](wx("0x51"));for(const n of[wx("0x1a"),wx("0x73")]){const r=t.commands[wx("0x2b")](n);o[wx("0x75")](n,(n=>{t.model[wx("0x82")]((t=>{n();const i=wx("0x77")===r[wx("0x8a")],x=s[wx("0x14")](e),a=s[wx("0x11")](x),c=i?a[wx("0x6d")]-1:a[wx("0x29")]+1,l=x[0][wx("0x24")](wx("0x7e")),d=s[wx("0x1d")](l,{startRow:c,endRow:c}),u=Array.from(d)[wx("0x36")]((e=>t.createRangeOn(e[wx("0x2c")])));o[wx("0x47")](u,wx("0x38"))}))}))}for(const n of[wx("0x17"),wx("0x23")]){const r=t[wx("0x74")][wx("0x2b")](n);o[wx("0x75")](n,(n=>{t[wx("0x6e")][wx("0x82")]((t=>{n();const i=wx("0x54")===r[wx("0x8a")],x=s[wx("0x14")](e),a=s.getColumnIndexes(x),c=i?a.first-1:a[wx("0x29")]+1,l=x[0][wx("0x24")](wx("0x7e")),d=s[wx("0x1d")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array.from(d).map((e=>t[wx("0x4e")](e[wx("0x2c")])));o[wx("0x47")](u,"tableColumn")}))}))}for(const n of["removeTableRow","removeTableColumn"]){const r=n.substr(11),i=r[wx("0x89")](),x=i[wx("0x4")](0,3)+wx("0x49"),a="table"+r,c="min"+r,l="max"+r;o[wx("0x75")](n,(()=>{t[wx("0x6e")][wx("0x82")]((t=>{const r=s[wx("0x14")](e),d=r[0][wx("0x24")](wx("0x7e"));let u;if(wx("0x60")==n){const t=s[wx("0x11")](r);u={startRow:t[wx("0x6d")],endRow:t[wx("0x29")],includeAllSlots:!0}}else{const t=s[wx("0xe")](r);u={startColumn:t.first,endColumn:t[wx("0x29")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[wx("0x5f")](g)[wx("0x36")]((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m[wx("0x7")]((t=>!t[wx("0x7b")](x))))[wx("0x36")]((e=>t.createRangeOn(e))),p=o[wx("0x6f")](h,a);if(p&&(wx("0x38")==p[wx("0x57")]||"tableColumn"==p[wx("0x57")])){const e=this[wx("0xc")](p);for(const n of f){const o=t[wx("0x4e")](n),r=s[wx("0x5")](n),a=n[wx("0x8b")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[wx("0x26")](o)}}}))}))}function r(n){const o=Array[wx("0x5f")](e[wx("0x3a")]())[wx("0x36")]((t=>i.LiveRange.fromRange(t)));t[wx("0x6e")][wx("0x82")]((e=>{const s=e[wx("0x30")];n=n.filter((t=>wx("0x4d")!=t.root.rootName)),e.setSelection(n),t[wx("0x74")][wx("0x2b")](wx("0x60"))[wx("0x6b")](),t[wx("0xb")](wx("0x60"),{forceDefaultExecution:!0}),t[wx("0x6e")][wx("0x6")]((()=>{t.model[wx("0x6")](s,(t=>{const e=o.filter((t=>wx("0x4d")!=t[wx("0x5e")][wx("0x3d")]));e.length>0&&t[wx("0x33")](e);for(const t of o)t[wx("0x5c")]()}))}))}))}function a(n){t[wx("0x6e")][wx("0x82")]((o=>{const s=Array[wx("0x5f")](e.getRanges())[wx("0x36")]((t=>i.LiveRange[wx("0x13")](t))),r=[];for(const t of n)for(const e of t[wx("0x3")]({shallow:!0}))r.push(e);for(const e of r)wx("0x4d")!=e.root[wx("0x3d")]&&(o[wx("0x33")](o.createPositionAt(e,0)),t[wx("0x74")][wx("0x2b")](wx("0x44"))[wx("0x6b")](),t.execute(wx("0x44"),{forceDefaultExecution:!0}));const x=s[wx("0x7")]((t=>wx("0x4d")!=t[wx("0x5e")].rootName));x.length>0&&o[wx("0x33")](x);for(const t of s)t[wx("0x5c")]()}))}function c(t,e){return e.every((e=>t.some((t=>t[wx("0xa")][wx("0x35")](e[wx("0x7c")])||e[wx("0xa")][wx("0x35")](t.start)))))}function l(t,e){return t.some((t=>e.some((e=>t[wx("0xa")][wx("0x9")](e[wx("0x7c")])))))}t[wx("0x10")][wx("0x4c")].on(wx("0x5b"),((t,e,n)=>{if(!n[wx("0x2f")][wx("0x2")])return;const o=e[wx("0x81")];if(!o)return;const s=n.mapper[wx("0x3c")](o);function r(t){return Array.isArray(t)?t:[t]}s&&"tableCell"===o[wx("0x25")]&&(0,x.setHighlightHandling)(s,n[wx("0x56")],((t,e,n)=>n[wx("0x52")](r(e.classes),t)),((t,e,n)=>n[wx("0xf")](r(e[wx("0x12")]),t)))}),{priority:wx("0x84")}),o[wx("0x3b")][wx("0x41")]((t=>{if(wx("0x1e")!=t[wx("0x18")]&&"deletion"!=t[wx("0x18")])return;const e=t[wx("0x40")]();if(null!=e&&e.is(wx("0x2a"),wx("0x7e"))){if(wx("0x1e")==t.type){const e=t.getItems()[wx("0x7")]((t=>t.is("$textProxy"))).map((t=>t[wx("0x10")]));if(e[wx("0x5d")])return{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,wx("0x76"),'"'+e[wx("0x45")](" ")+'"'))}}if(wx("0xd")==t.type){const e=t.getItems()[wx("0x7")]((t=>t.is(wx("0x32"))))[wx("0x36")]((t=>t[wx("0x10")]));if(e[wx("0x5d")])return{type:"deletion",content:Yo(n,wx("0x55"),Yo(n,wx("0x76"),'"'+e.join(" ")+'"'))}}}})),o[wx("0x3b")][wx("0x41")]((t=>{if(wx("0x38")==t[wx("0x57")]){const e=t[wx("0x3")]().filter((t=>t.is(wx("0x32")))).map((t=>t.data)),o=this[wx("0xc")](t),s=o[wx("0x42")]-o[wx("0x43")]+1;if(wx("0x1e")==t[wx("0x18")])return e[wx("0x5d")]?{type:wx("0x1e"),content:Yo(n,wx("0x68"),Yo(n,wx("0x65"),[s,'"'+e[wx("0x45")](" ")+'"']))}:{type:wx("0x1e"),content:Yo(n,wx("0x68"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(wx("0xd")==t[wx("0x18")])return e[wx("0x5d")]?{type:wx("0xd"),content:Yo(n,wx("0x55"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[wx("0x45")](" ")+'"']))}:{type:wx("0xd"),content:Yo(n,wx("0x55"),Yo(n,wx("0x3f"),s))}}if(wx("0x4b")==t[wx("0x57")]){const e=t[wx("0x3")]()[wx("0x7")]((t=>t.is(wx("0x32"))))[wx("0x36")]((t=>t.data)),o=this[wx("0xc")](t),s=o[wx("0x19")]-o[wx("0x58")]+1;if(wx("0x1e")==t[wx("0x18")])return e[wx("0x5d")]?{type:wx("0x1e"),content:Yo(n,wx("0x68"),Yo(n,wx("0x61"),[s,'"'+e.join(" ")+'"']))}:{type:wx("0x1e"),content:Yo(n,wx("0x68"),Yo(n,wx("0x1"),s))};if(wx("0xd")==t.type)return e[wx("0x5d")]?{type:"deletion",content:Yo(n,wx("0x55"),Yo(n,wx("0x61"),[s,'"'+e[wx("0x45")](" ")+'"']))}:{type:wx("0xd"),content:Yo(n,wx("0x55"),Yo(n,wx("0x1"),s))}}})),o._suggestionFactory.registerCustomCallback(wx("0x1e"),wx("0x38"),wx("0x48"),r),o[wx("0x3e")][wx("0x5a")](wx("0xd"),"tableRow",wx("0x28"),r),o[wx("0x3e")][wx("0x5a")](wx("0x1e"),"tableColumn","discard",a),o[wx("0x3e")][wx("0x5a")]("deletion","tableColumn",wx("0x28"),a),o[wx("0x3e")][wx("0x5a")]("insertion","tableColumn",wx("0x45"),c),o[wx("0x3e")][wx("0x5a")]("deletion",wx("0x4b"),wx("0x45"),c),o[wx("0x3e")][wx("0x5a")](wx("0x1e"),wx("0x38"),wx("0x45"),l),o[wx("0x3e")].registerCustomCallback(wx("0xd"),wx("0x38"),"join",l)}[wx("0x67")](){const t=this[wx("0x1c")],e=t.model.document.selection;return(n,o)=>{t.model[wx("0x82")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][wx("0x6a")]&&(a=n[0].start[wx("0x53")]);const c=s[wx("0x7a")](a);if("$graveyard"==c[wx("0x5e")][wx("0x3d")])return;const l=Array[wx("0x5f")](e[wx("0x3a")]())[wx("0x36")]((t=>i.LiveRange.fromRange(t)));s[wx("0x33")](c),t[wx("0x74")][wx("0x2b")](r)[wx("0x6b")](),x[wx("0x86")]({forceDefaultExecution:!0}),t[wx("0xb")](r,...x);const d=l[wx("0x7")]((t=>wx("0x4d")!=t.root[wx("0x3d")]));d[wx("0x5d")]>0&&s[wx("0x33")](d);for(const t of l)t[wx("0x5c")]()}))}}[wx("0x62")](t){const e=this[wx("0x1c")][wx("0x59")][wx("0x2b")](wx("0x7f"));let n=Number[wx("0x80")],o=Number.MIN_SAFE_INTEGER,s=Number[wx("0x80")],r=Number[wx("0x7d")];for(const i of t){if(wx("0x4d")==i[wx("0x5e")][wx("0x3d")])continue;const{row:t,column:x}=e[wx("0x5")](i),a=i[wx("0x7b")]("rowspan")?i[wx("0x8b")](wx("0x31"))-1:0,c=i[wx("0x7b")](wx("0x2e"))?i[wx("0x8b")]("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}}_setupColumnsRowsFixing(){const t=this[wx("0x1c")],e=t.plugins[wx("0x2b")](wx("0x63")),n=t.plugins[wx("0x2b")](wx("0x7f"));t[wx("0x6e")][wx("0x50")].on("change:data",(()=>{const n=Array[wx("0x5f")](t[wx("0x6e")].document[wx("0x78")][wx("0x1f")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wx("0x15")](t);if("suggestion"!=n)continue;if(null!=o[wx("0x87")])continue;const i=e[wx("0x39")](s);this._tablePostFixingSubtypes[wx("0x21")](r)&&this[wx("0x66")][wx("0x16")](i)}}),{priority:wx("0x1b")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[wx("0x24")](wx("0x7e")),i=n.getCellLocation(t);for(const e of this[wx("0x66")]){const n=e[wx("0x57")],x=n.startsWith(wx("0x0")),a=n[wx("0x4")](x?10:5),c=a[wx("0x89")](),l=c[wx("0x4")](0,3)+wx("0x49"),d=wx("0x72")+a,u=wx("0x88")+a;if(!e.isInContent)continue;if(r!=e[wx("0x69")]()[wx("0x7c")][wx("0x24")]("table"))continue;if(e[wx("0x79")](s))continue;const g=t[wx("0x7b")](l)?t[wx("0x8b")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[wx("0x6e")][wx("0x50")][wx("0x85")]((e=>{let n=!1;for(const s of t[wx("0x6e")].document.differ.getChanges())if("insert"==s[wx("0x18")])if(wx("0x38")==s[wx("0x25")])for(const t of s[wx("0x8")][wx("0x53")][wx("0x64")]())n=n||o(t,e);else wx("0x4f")==s[wx("0x25")]&&(n=n||o(s[wx("0x8")][wx("0x53")],e));return n}))}[wx("0xc")](t){return this[wx("0x62")](t[wx("0x3a")]()[wx("0x36")]((t=>t[wx("0x7c")].nodeAfter)))}}function Ox(t){return Array[wx("0x5f")](new Set(t)[wx("0x22")]())}const Fx=["getCellLocation","stop","*Merge cells*","element","_areSelectedCellsMergable","type","push","trackChanges","tableCell","change","direction","plugins","set:isEnabled","*Split cell:* horizontally","horizontally","TableUtils","rootName","subType","length","mergeTableCellLeft","requires","_descriptionFactory","TableEditing","markMultiRangeBlockFormat","deletion","add","forceDefaultExecution","fromRange","getSelectionAffectedTableCells","afterInit","registerCustomCallback","mergeTableCellUp","getSuggestions","findAncestor","$graveyard","_tablePostFixingSubtypes","getAncestors","mergeTableCells","splitTableCellHorizontally","document","markBlockFormat","detach","map","return","isEnabled","mergeTableCellDown","_acceptFormatSuggestionCallbackFactory","getRanges","getFirstPosition","root","*Split cell:* vertically","selection","commandName","model","from","enableCommand","filter","mergeTableCellRight","setSelection","commands","locale","value","createTableWalker","TrackChangesEditing","author","registerDescriptionCallback","_suggestionFactory","get","formatBlock","accept","highest","createRangeOn","format","size","cell","_areMergableCells","has","find","splitTableCellVertically","editor","execute"];var Px,Dx;Px=Fx,Dx=276,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x44")](){return[Mx]}[Bx("0x4d")](){const t=this[Bx("0x2e")],e=t[Bx("0x14")][Bx("0x6")][Bx("0x12")],n=t[Bx("0x1b")];if(!t.plugins[Bx("0x2b")](Bx("0x46")))return;const o=t[Bx("0x3b")][Bx("0x22")]("TrackChangesEditing"),s=t[Bx("0x3b")][Bx("0x22")](Bx("0x3f")),r=t[Bx("0x3b")][Bx("0x22")](Mx);r[Bx("0x2")][Bx("0x36")](Bx("0x4")),o.enableCommand(Bx("0x4"),(()=>{const e=s[Bx("0x4c")](t.model[Bx("0x6")].selection);t[Bx("0x14")].change((()=>{o[Bx("0x47")](e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x4"))}))})),t.commands[Bx("0x22")](Bx("0x4")).on(Bx("0x2f"),((e,n)=>{t[Bx("0x1a")][Bx("0x22")](Bx("0x37"))[Bx("0x1c")]&&(n[Bx("0x42")]>0&&n[n.length-1]&&n[n[Bx("0x42")]-1][Bx("0x4a")]||o._isForcedDefaultExecutionBlock||this._areSelectedCellsMergable()||e[Bx("0x31")]())}),{priority:Bx("0x25")});for(const e of[Bx("0x4f"),"mergeTableCellRight",Bx("0xc"),Bx("0x43")]){const n=t.commands.get(e);o[Bx("0x16")](e,(()=>{const e=t[Bx("0x14")][Bx("0x6")][Bx("0x12")][Bx("0xf")]()[Bx("0x3")]()[Bx("0x2c")]((t=>t.is(Bx("0x33"),Bx("0x38")))),s=n[Bx("0x1c")];t[Bx("0x14")][Bx("0x39")]((()=>{o[Bx("0x47")]([e,s],{commandName:Bx("0x4"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t.commands[Bx("0x22")](e);o[Bx("0x16")](e,(()=>{const r=s[Bx("0x4c")](t[Bx("0x14")].document[Bx("0x12")])[0],i=r[Bx("0x0")]("table"),{column:x,row:a}=s[Bx("0x30")](r);let c=[];if(Bx("0x3e")==n[Bx("0x3a")]){const t=s[Bx("0x1d")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x15")](t)[Bx("0x9")]((t=>t[Bx("0x29")]))}else{const t=s[Bx("0x1d")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x15")](t)[Bx("0x9")]((t=>t[Bx("0x29")]))}t[Bx("0x14")][Bx("0x39")]((t=>{o[Bx("0x7")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x45")][Bx("0x20")]((t=>{const{data:e}=t;if(e)return Bx("0x4")==e.commandName?{type:Bx("0x27"),content:Yo(n,Bx("0x32"))}:void 0})),o._descriptionFactory[Bx("0x20")]((t=>{const{data:e}=t;if(e)return Bx("0x2d")==e.commandName?{type:Bx("0x27"),content:Yo(n,Bx("0x11"))}:Bx("0x5")==e[Bx("0x13")]?{type:"format",content:Yo(n,Bx("0x3d"))}:void 0}));const x=r[Bx("0xd")]();for(const t of[Bx("0x4f"),"mergeTableCellRight",Bx("0xc"),Bx("0x43")])o[Bx("0x21")][Bx("0x4e")](Bx("0x23"),t,Bx("0x24"),x);for(const t of[Bx("0x2d"),Bx("0x5")])o[Bx("0x21")][Bx("0x4e")](Bx("0x23"),t,Bx("0x24"),x);o._suggestionFactory[Bx("0x4e")](Bx("0x23"),"mergeTableCells",Bx("0x24"),(n=>{t.model[Bx("0x39")]((o=>{const s=Array[Bx("0x15")](e[Bx("0xe")]())[Bx("0x9")]((t=>i.LiveRange[Bx("0x4b")](t)));o[Bx("0x19")](n),t[Bx("0x1a")][Bx("0x22")](Bx("0x4")).refresh(),t[Bx("0x2f")](Bx("0x4"),{forceDefaultExecution:!0});const r=s[Bx("0x17")]((t=>Bx("0x1")!=t[Bx("0x10")][Bx("0x40")]));r[Bx("0x42")]>0&&o[Bx("0x19")](r);for(const t of s)t[Bx("0x8")]()}))}));for(const e of[Bx("0x4f"),"mergeTableCellDown","mergeTableCellLeft",Bx("0x18")]){const n=t[Bx("0x1a")][Bx("0x22")](e);n.on(Bx("0x3c"),((e,o,s)=>{if(s){const o=t.model[Bx("0x6")][Bx("0x12")][Bx("0xf")]()[Bx("0x3")]()[Bx("0x2c")]((t=>t.is("element","tableCell")));this[Bx("0x2a")](n[Bx("0x1c")],o)||(e[Bx("0xa")]=!1,e[Bx("0x31")]())}}),{priority:"low"})}}[Bx("0x34")](){const t=this[Bx("0x2e")][Bx("0x1a")][Bx("0x22")](Bx("0x4")),e=this.editor[Bx("0x3b")][Bx("0x22")](Bx("0x3f"));if(!t[Bx("0xb")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x2e")][Bx("0x14")][Bx("0x6")][Bx("0x12")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x2a")](t,e))return!1;return!0}[Bx("0x2a")](t,e){const n=this[Bx("0x2e")][Bx("0x3b")].get(Bx("0x1e")),o=this[Bx("0x2e")][Bx("0x14")][Bx("0x26")](t),s=this.editor.model[Bx("0x26")](e),r=new Set,i=new Set;for(const t of n[Bx("0x50")]())if(("insertion"==t[Bx("0x35")]||Bx("0x48")==t.type||Bx("0x4")==t[Bx("0x41")])&&t.isInContent)for(const e of t[Bx("0xe")]())e.containsRange(o,!0)&&r[Bx("0x49")](t[Bx("0x35")]+":"+t[Bx("0x1f")].id),e.containsRange(s,!0)&&i[Bx("0x49")](t.type+":"+t.author.id);if(r[Bx("0x28")]!=i.size)return!1;for(const t of r)if(!i[Bx("0x2b")](t))return!1;return!0}}const Ux=["setAttribute","childCount","unbindElementFromMarkerName","table","commands","highest","removeClass","createTableWalker","has","value","getCellLocation","data","editing","forceValue","registerCustomCallback","format","createRange","accept","TrackChangesEditing","getSelectionAffectedTableCells","downcastDispatcher","model","registerDescriptionCallback","cell","mapper","_splitMarkerName","isBefore","getChild","addMarker:suggestion","headingColumns","removeMarker:suggestion","toViewElement","ck-suggestion-marker--active","nodeAfter","stop","afterInit","index","formatBlock","removeAttribute","consume","TableEditing","bindElementToMarker","setTableRowHeader","includes","writer","commandName","requires","start","parent","getRowIndexes","createPositionBefore","enableCommand","createPositionAfter","document","ck-suggestion-marker-","consumable","addClass","get","last","from","nodeBefore","FORMAT_HEADER_ROW","*Format:* %0","markerNameToElements","data-suggestion","markerName","showSuggestionHighlights","markBlockFormat","selection","FORMAT_REGULAR_COLUMN","change","getSuggestion","markerRange","first","_suggestionFactory","end","commandParams","getColumnIndexes","setTableColumnHeader","_descriptionFactory","plugins","getAttribute","findAncestor","editor","headingRows"];var Gx,Hx;Gx=Ux,Hx=306,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x50")](){return[Mx]}[Wx("0x45")](){const t=this[Wx("0x20")];if(!t[Wx("0x1d")][Wx("0x2a")](Wx("0x4a")))return;const e=t.locale,n=t[Wx("0x1d")][Wx("0x6")](Wx("0x34")),o=t.plugins[Wx("0x6")]("TableUtils"),s=t[Wx("0x1d")][Wx("0x6")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Wx("0x3b")](r[Wx("0xe")]),c=n[Wx("0x14")](a);if(!c[Wx("0x2d")]||Wx("0x1b")!=c[Wx("0x2d")].commandName)return;if(r.item)return void s[Wx("0x44")]();if(!i[Wx("0x4")][Wx("0x49")](r[Wx("0x15")],s.name))return;const l=r[Wx("0x15")][Wx("0x51")][Wx("0x43")],d=r.markerRange[Wx("0x18")][Wx("0x9")],u=l[Wx("0x52")].parent,{column:g}=o[Wx("0x2c")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[Wx("0x29")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wx("0x39")],c=i[Wx("0x3a")][Wx("0x41")](s);i[Wx("0x4e")][Wx("0x5")](Wx("0x3")+x,c),e&&i[Wx("0x4e")][Wx("0x22")](Wx("0xd"),a,c),i.mapper[Wx("0x4b")](c,r[Wx("0xe")]),t&&(n.activeMarkers[Wx("0x4d")](r[Wx("0xe")])?i[Wx("0x4e")][Wx("0x5")](Wx("0x42"),c):i[Wx("0x4e")][Wx("0x28")](Wx("0x42"),c))}}}}n.enableCommand(Wx("0x4c"),((e,s)=>{const r=o[Wx("0x35")](t.model[Wx("0x2")][Wx("0x11")]),i=o[Wx("0x53")](r),x=r[0][Wx("0x1f")](Wx("0x25")),a=x[Wx("0x1e")](Wx("0x21"))||0,c=s&&null!==s[Wx("0x2f")]?s[Wx("0x2f")]:!t[Wx("0x26")][Wx("0x6")]("setTableRowHeader")[Wx("0x2b")],l=c?i[Wx("0x7")]:i[Wx("0x16")],d=x[Wx("0x3d")](l);let u;if(c){const e=x[Wx("0x3d")](a);if(d.index<e[Wx("0x46")])return;u=t[Wx("0x37")][Wx("0x32")](t[Wx("0x37")][Wx("0x54")](e[Wx("0x3d")](0)),t[Wx("0x37")][Wx("0x1")](d.getChild(d[Wx("0x23")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t.model.createRange(t[Wx("0x37")][Wx("0x54")](d[Wx("0x3d")](0)),t[Wx("0x37")][Wx("0x1")](e[Wx("0x3d")](e[Wx("0x23")]-1)))}t[Wx("0x37")][Wx("0x13")]((()=>{n[Wx("0x10")](u,{commandName:Wx("0x4c"),commandParams:[{forceValue:c}]},[],Wx("0x4c"))}))})),n[Wx("0x0")](Wx("0x1b"),((e,o)=>{const s=t[Wx("0x1d")][Wx("0x6")]("TableUtils"),r=s[Wx("0x35")](t[Wx("0x37")].document.selection),i=s[Wx("0x1a")](r),x=r[0][Wx("0x1f")]("table"),a=x.getAttribute(Wx("0x3f"))||0,c=o&&null!==o[Wx("0x2f")]?o[Wx("0x2f")]:!t[Wx("0x26")].get(Wx("0x1b"))[Wx("0x2b")];let l;const d=x[Wx("0x3d")](0),u=c?i[Wx("0x7")]:i[Wx("0x16")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Wx("0x8")](g)[0][Wx("0x39")];if(c){const e=d[Wx("0x3d")](a);if(m[Wx("0x3c")](e))return;l=t[Wx("0x37")].createRange(t.model.createPositionBefore(e),t.model.createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t[Wx("0x37")][Wx("0x32")](t[Wx("0x37")][Wx("0x54")](m),t[Wx("0x37")].createPositionAfter(e))}t[Wx("0x37")][Wx("0x13")]((()=>{n[Wx("0x10")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],Wx("0x1b"))}))})),t[Wx("0x2e")][Wx("0x36")].on(Wx("0x3e"),r(),{priority:"highest"}),t.data[Wx("0x36")].on(Wx("0x3e"),((t,e,n)=>{n.options[Wx("0xf")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[Wx("0x2e")][Wx("0x36")].on(Wx("0x40"),((t,e,o)=>{const{type:s,id:r}=n[Wx("0x3b")](e[Wx("0xe")]),i=n[Wx("0x14")](r);if(!i[Wx("0x2d")]||Wx("0x1b")!=i[Wx("0x2d")][Wx("0x4f")])return;const x=o[Wx("0x3a")][Wx("0xc")](e[Wx("0xe")]);if(x)for(const t of x)o[Wx("0x4e")][Wx("0x28")](Wx("0x3")+s,t),o[Wx("0x4e")][Wx("0x28")](Wx("0x42"),t),o[Wx("0x4e")][Wx("0x48")](Wx("0xd"),t),o[Wx("0x3a")][Wx("0x24")](t,e.markerName)}),{priority:Wx("0x27")}),n[Wx("0x1c")][Wx("0x38")]((t=>{const{data:n}=t;if(n){if(Wx("0x4c")==n[Wx("0x4f")]){const t=n[Wx("0x19")][0].forceValue;return o(Yo(e,t?Wx("0xa"):"FORMAT_REGULAR_ROW"))}if(Wx("0x1b")==n.commandName){const t=n[Wx("0x19")][0][Wx("0x2f")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":Wx("0x12")))}}function o(t){return{type:Wx("0x31"),content:Yo(e,Wx("0xb"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[Wx("0x17")][Wx("0x30")]("formatBlock",Wx("0x4c"),Wx("0x33"),i),n[Wx("0x17")][Wx("0x30")](Wx("0x47"),Wx("0x1b"),Wx("0x33"),i)}}const Vx=["model","start","registerPostFixer","registerDescriptionCallback","root","getAttributes","getSelectionAffectedTableCells","activeMarkers","cell","table","move","removeMarker","tablePaste","getContainedElement","*Replace table cells*","rootName","element","fromEntries","stop","_createdBatches","columnInsertionRanges","unwrap","clipboardOutput","last","isInContent","type","remove","differ","add","for","every","getChildren","TableClipboard","editingDowncast","subType","removeRows","paragraph","attributes","getRowIndexes","from","has","author","markerName","previous","deletion","length","position","editing","map","entries","fill","findAncestor","find","selection","tableCellSuggestion","_tablePostFixingSubtypes","getMarkers","_getCoordsForCells","tablePasteRow","_splitMarkerName","markerAttributes","tableCell","return","some","view","tableCellBorderWidth","ck-suggestion-marker--active","_descriptionFactory","createElement","insertColumns","accept","suggestionUnloaded","includes","editor","tablePasteChainId","insertionRanges","value","getAllAdjacentSuggestions","first","low","oldRange","end","getRanges","row","getSuggestionCallback","change","endRow","suggestion:formatBlock:tablePasteCell","startsWith","tableCellBorderStyle","reduce","keys","batch","rows","insert","dataDowncast","set","join","markMultiRangeBlockFormat","markMultiRangeInsertion","getColumns","getChangedMarkers","ck-suggestion-marker-insertion","deletionRanges","createRangeOn","_suggestionFactory","containsRange","nodeAfter","suggestionLoaded","Users","high","trackChanges","cells","getItems","discard","createTableWalker","wrap","insertContent","plugins","name","newRange","columns","schema","TableUtils","createRangeIn","forceDefaultExecution","getRange","ck-suggestion-marker","_isForcedDefaultExecutionBlock","tablePasteCell","formatBlock","documentSelection","rowInsertionIndexes","removeMarkers","getTableIfOnlyTableInContent","setAttributes","conversion","isEqual","registerCustomCallback","suggestion","locale","markerToHighlight","_replaceTableSlotCell","tableCellBorderColor","tablePasteColumn","tableCellHorizontalAlignment","insertion","markers","rowInsertionRanges","listenTo","suggestion-td","getSuggestions","get","isEmpty","commands","columnInsertionIndexes","getShiftedBy","hasSuggestion","markMultiRangeDeletion","createPositionBefore","push","document","filter"];var Kx,qx;Kx=Vx,qx=350,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x29"),Xx("0x77"),Xx("0x41"),Xx("0x79"),"tableCellVerticalAlignment","tableCellBackgroundColor","tableCellPadding"],Qx=Object[Xx("0x9c")]($x[Xx("0x18")]((t=>[t,null])));class Jx extends t.Plugin{static get requires(){return[Mx]}afterInit(){const t=this[Xx("0x31")];if(!t[Xx("0x5e")].has(Xx("0x8")))return;const n=t[Xx("0x5e")].get("TrackChangesEditing"),o=t[Xx("0x5e")].get(Xx("0x63")),s=t[Xx("0x5e")].get(Mx),r=t[Xx("0x5e")][Xx("0x80")](Xx("0x8"));s[Xx("0x1f")][Xx("0x88")](Xx("0x22"),Xx("0x78")),t.model[Xx("0x62")].register(Xx("0x1e"),{allowIn:Xx("0x25"),allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x70")].elementToElement({model:Xx("0x1e"),view:"suggestion-td"});let i=null;t[Xx("0x8b")].on(Xx("0x5d"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x15")]-1];l&&l[Xx("0x65")]||n[Xx("0x68")]||this[Xx("0x31")][Xx("0x82")][Xx("0x80")](Xx("0x57"))[Xx("0x34")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x6b")))return!1;const r=s[Xx("0x6e")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x91")](n[Xx("0x89")][Xx("0x1d")]);if(!i[Xx("0x15")])return!1;const x=i[0][Xx("0x1b")]("table"),a=o[Xx("0xe")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x36")],endRow:a[Xx("0xa2")],startColumn:c.first,endColumn:c.last};return 1==i[Xx("0x15")]&&(l[Xx("0x3e")]+=o.getRows(r)-1,l.endColumn+=o[Xx("0x4c")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x9d")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x8b")].change((()=>{t.model[Xx("0x5d")](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[Xx("0x15")]&&n[Xx("0x4b")](s,"tablePasteRow",{tablePasteChainId:o}),r.length&&n[Xx("0x4b")](r,Xx("0x78"),{tablePasteChainId:o}),a[Xx("0x15")]&&n[Xx("0x4b")](a,Xx("0x97"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x15")]&&n[Xx("0x86")](c,Xx("0x97"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x4a")](l[Xx("0x18")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x69"),{tablePasteChainId:o});if(d){const e=d[Xx("0x20")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x8b")][Xx("0x50")](o),i=e[Xx("0x1c")]((t=>t[Xx("0x66")]()[Xx("0x71")](r)));i&&n[Xx("0x88")]([i.name,s])}n[Xx("0x15")]&&d.setAttribute("markerAttributes",Object[Xx("0x9c")](n))}i=null})))}),{priority:e.priorities[Xx("0x56")]+10}),t[Xx("0x5e")][Xx("0x80")]("TableClipboard").on(Xx("0x76"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x9d")]();const r=n[Xx("0x93")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x26")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Xx("0x2")](r.getChild(0));for(const t of Array[Xx("0xf")](x[Xx("0x7")]()))s[Xx("0x46")](t,r,Xx("0x39"));const t=i[Xx("0x6c")][Xx("0x30")](n[Xx("0x3b")]),e=i.columnInsertionIndexes[Xx("0x30")](n.column);t||e||(l=s[Xx("0x64")](r))}else c&&!a&&(d=s[Xx("0x64")](r));else{const t=s[Xx("0x2c")](Xx("0x1e")),e=s[Xx("0x2c")](Xx("0x1e"));s[Xx("0x5c")](s.createRangeIn(r),e),s[Xx("0x46")](t,r,0);for(const e of Array[Xx("0xf")](x[Xx("0x7")]()))s[Xx("0x46")](e,t,Xx("0x39"));l=s[Xx("0x50")](t),d=s.createRangeOn(e)}const u=Array[Xx("0xf")](x[Xx("0x90")]())[Xx("0x8a")]((([t])=>$x.includes(t)));i[Xx("0x58")][Xx("0x88")]({element:r,attributes:u[Xx("0x15")]?Object.fromEntries(u):null}),l&&i[Xx("0x33")][Xx("0x88")](l),d&&i[Xx("0x4f")][Xx("0x88")](d)}),{priority:Xx("0x56")}),o.on(Xx("0x2d"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x61")]||1;i[Xx("0x83")]=new Array(a)[Xx("0x1a")](x)[Xx("0x18")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x9f")][Xx("0x88")](t[Xx("0x8b")][Xx("0x50")](e))}),{priority:Xx("0x37")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x45")]||1;i.rowInsertionIndexes=new Array(a)[Xx("0x1a")](x)[Xx("0x18")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x7c")][Xx("0x88")](t[Xx("0x8b")][Xx("0x50")](e))}),{priority:"low"}),n[Xx("0x2b")][Xx("0x8e")]((e=>{if(e[Xx("0xa")]&&e[Xx("0xa")][Xx("0x40")](Xx("0x97")))return e[Xx("0x13")]?{}:{type:Xx("0x7a"),content:Yo(t[Xx("0x74")],Xx("0x99"))}}));const x=()=>{};for(const t of["tablePaste",Xx("0x78"),Xx("0x22"),Xx("0x69")])n[Xx("0x51")].registerCustomCallback(Xx("0x7a"),t,Xx("0x49"),x),n[Xx("0x51")][Xx("0x72")](Xx("0x14"),t,Xx("0x49"),x);n[Xx("0x51")][Xx("0x72")](Xx("0x6a"),Xx("0x69"),Xx("0x5a"),x),n[Xx("0x51")][Xx("0x72")]("formatBlock","tablePasteCell",Xx("0x2e"),((e,n,o)=>{const s=e[Xx("0x18")]((t=>t[Xx("0x98")]()))[Xx("0x8a")]((t=>t)),r=new Map(s[Xx("0x18")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x58")])e&&r[Xx("0x48")](t,e);else if(o&&o[Xx("0x24")])for(const[e,n]of Object[Xx("0x19")](o.markerAttributes)){const o=t[Xx("0x8b")][Xx("0x7b")][Xx("0x80")](e),s=o?o.getRange()[Xx("0x98")]():null;s&&r.set(s,n)}t.model[Xx("0x3d")]((t=>{for(const[e,n]of r)t[Xx("0x6f")]({...Qx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x51")][Xx("0x72")](e,Xx("0x97"),o,((s,r,i)=>{t[Xx("0x8b")][Xx("0x3d")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x8c")][Xx("0x53")];e.is("element",Xx("0x1e"))&&x[Xx("0x88")](e)}n._suggestionFactory[Xx("0x3c")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Xx("0x8f")][Xx("0x9a")]&&t.unwrap(e)}))}))};a(Xx("0x7a"),Xx("0x2e")),a(Xx("0x7a"),"discard"),a("deletion",Xx("0x2e")),a(Xx("0x14"),"discard"),n[Xx("0x51")].registerCustomCallback(Xx("0x7a"),Xx("0x22"),Xx("0x5a"),(t=>{const e=t[Xx("0x18")]((t=>t[Xx("0x98")]())),n=e[0][Xx("0x1b")](Xx("0x94")),{minRow:r,maxRow:i}=s[Xx("0x21")](e);o[Xx("0xb")](n,{at:r,rows:i-r+1})})),n._suggestionFactory.registerCustomCallback("insertion",Xx("0x78"),Xx("0x5a"),(t=>{const e=t[Xx("0x18")]((t=>t.getContainedElement())),n=e[0][Xx("0x1b")](Xx("0x94")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0xa")]||!e[Xx("0xa")].startsWith(Xx("0x97")))return;const o=e[Xx("0xd")][Xx("0x32")],s=n[Xx("0x7f")]()[Xx("0x8a")]((t=>t[Xx("0x0")]&&t[Xx("0xd")]&&t[Xx("0xd")][Xx("0x32")]==o));s[Xx("0x15")]&&e.getAllAdjacentSuggestions()[Xx("0x15")]!=s[Xx("0x15")]&&s[Xx("0x42")](((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x23")](t[Xx("0x12")]),s=[Xx("0x67"),Xx("0x4e")],r=n[Xx("0x92")][Xx("0x30")](t[Xx("0x12")]);return r&&s[Xx("0x88")](Xx("0x2a")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x54"),c,{priority:"high"}),n.on(Xx("0x2f"),c,{priority:"high"}),t.model[Xx("0x89")].registerPostFixer((()=>{let e=!1;const o=Array.from(t.model[Xx("0x89")][Xx("0x3")][Xx("0x4d")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if(Xx("0x73")!=o||Xx("0x14")!=i||r[Xx("0x38")])continue;if(!n[Xx("0x85")](x))continue;const a=n.getSuggestion(x)[Xx("0x3a")](),c=t.plugins[Xx("0x80")](Xx("0x55")).me;for(const t of n[Xx("0x7f")]())if(t.isInContent&&t.author==c&&Xx("0x6a")==t[Xx("0x1")]&&Xx("0x69")==t.subType&&t[Xx("0x3a")]()[Xx("0x6")]((t=>a[Xx("0x27")]((e=>e[Xx("0x52")](t,!0))))))for(const n of t[Xx("0x35")]())n.isInContent&&(n[Xx("0x5a")](),e=!0)}return e})),t[Xx("0x8b")][Xx("0x89")][Xx("0x8d")]((e=>{const o=t.commands.get("redo");if(!o||!o[Xx("0x9e")].has(e[Xx("0x44")]))return!1;let s=!1;const r=t[Xx("0x5e")][Xx("0x80")](Xx("0x55")).me,i=t[Xx("0x8b")][Xx("0x89")][Xx("0x3")].getChanges(),x=Array[Xx("0xf")](t.model.document[Xx("0x3")][Xx("0x4d")]())[Xx("0x8a")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x23")](t);return Xx("0x73")==o&&"tablePaste"==s&&i==r.id&&!e[Xx("0x38")]}));for(const t of i){if(Xx("0x46")!=t[Xx("0x1")]||Xx("0x1e")!=t[Xx("0x5f")]||1!=t[Xx("0x15")])continue;const n=e.createRange(t[Xx("0x16")],t[Xx("0x16")][Xx("0x84")](1));if(!x[Xx("0x1c")]((({data:t})=>t[Xx("0x60")][Xx("0x71")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x8b")][Xx("0x89")][Xx("0x8d")]((e=>{let o=!1;const s=t[Xx("0x5e")].get("Users").me,r=n.getSuggestions()[Xx("0x8a")]((t=>t.isInContent&&t[Xx("0x11")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x97")==t[Xx("0xa")])for(const e of t[Xx("0x20")]()){const n=e[Xx("0x66")]()[Xx("0x98")]();if(n)if(n.is("element",Xx("0x1e"))&&Zx(n)){t[Xx("0x96")](e.name),i[Xx("0x4")](n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is(Xx("0x9b"),Xx("0x1e")),c=r&&r.is(Xx("0x9b"),Xx("0x1e"));a&&!i[Xx("0x10")](s)&&x[Xx("0x4")](s),c&&!i.has(r)&&x[Xx("0x4")](r)}else n.is("element","paragraph")&&n[Xx("0x81")]&&(t.removeMarker(e[Xx("0x5f")]),o=!0)}else if(Xx("0x69")==t[Xx("0xa")]){if(!t.attributes||!t[Xx("0xd")].tablePasteChainId)continue;const e=t[Xx("0xd")][Xx("0x24")];if(e&&Object[Xx("0x43")](e)[Xx("0x15")])continue;const n=t[Xx("0xd")][Xx("0x32")];let s=!0,i=!0;for(const e of r)if(e[Xx("0xa")]&&e[Xx("0xa")][Xx("0x40")](Xx("0x97"))){if(!e[Xx("0xd")][Xx("0x32")]){i=!1;break}if(e.id!=t.id&&e[Xx("0xd")][Xx("0x32")]==n){s=!1;break}}i&&s&&(t[Xx("0x6d")](),o=!0)}for(const t of i)e[Xx("0x2")](t);for(const t of x)e[Xx("0xa0")](t);return o})),t.conversion[Xx("0x5")](Xx("0x9"))[Xx("0x75")]({model:Xx("0x3f"),view:(t,e)=>l(t),converterPriority:Xx("0x56")}),t.conversion[Xx("0x5")](Xx("0x47"))[Xx("0x75")]({model:Xx("0x3f"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:Xx("0x56")});const d=t[Xx("0x17")][Xx("0x28")];this[Xx("0x7d")](d[Xx("0x89")],Xx("0xa1"),((t,e)=>{const n=[];for(const t of d[Xx("0x64")](e.content)[Xx("0x59")]())t.is(Xx("0x9b"),Xx("0x7e"))&&n[Xx("0x88")](t);d[Xx("0x3d")]((t=>{for(const e of n)t[Xx("0x95")](t[Xx("0x64")](e),t[Xx("0x87")](e)),t[Xx("0x2")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is("element",Xx("0xc"))&&e[Xx("0x81")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x5b")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["discard","formatBlock","*Format:* resize table","resizeColumnWidths","_descriptionFactory","registerDescriptionCallback","getTableColumnsWidths","subType","getSuggestionCallback","markBlockFormat","selection","commandParams","TrackChangesEditing","has","columnWidths","plugins","resizeTableWidth","TableColumnResizeEditing","editor","formatGroupId","getAttribute","tableWidth","resizeTable","getSuggestions","locale","table","data","handleSuggestionDescription","author","bind","registerCustomCallback","Users","get","enableCommand","getColumnGroupElement","handleResizeTableWidthCommand","change","accept"];var ea,na;ea=ta,na=353,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this.editor[oa("0x4")][oa("0x2")]("TableColumnResizeEditing"))return;const t=this[oa("0x7")].plugins[oa("0x15")](oa("0x1"));t[oa("0x16")]("resizeTableWidth",this[oa("0x18")].bind(this)),t[oa("0x16")](oa("0x1e"),this[oa("0x18")].bind(this)),t._suggestionFactory[oa("0x13")]("formatBlock",oa("0xb"),oa("0x1a"),t._suggestionFactory[oa("0x23")](oa("0x1c"),null,oa("0x1b"))),t._suggestionFactory.registerCustomCallback(oa("0x1c"),"resizeTable",oa("0x1b"),t._suggestionFactory[oa("0x23")]("formatBlock",null,oa("0x1a"))),t[oa("0x1f")][oa("0x20")](this[oa("0x10")][oa("0x12")](this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x7")].plugins.get(oa("0x1")),o=this[oa("0x7")][oa("0x4")][oa("0x15")](oa("0x6")),s=e[oa("0xe")]||this.editor.model.document[oa("0x25")].getSelectedElement();this[oa("0x7")].model[oa("0x19")]((()=>{const r=o[oa("0x17")](s);let i=r?o[oa("0x21")](r):null,x=s[oa("0x9")](oa("0xa"))||null;const a=e.tableWidth||x,c=e[oa("0x3")]||i,l=this.editor[oa("0x4")].get(oa("0x14")).me;for(const t of n[oa("0xc")]()){const e=t.getContainedElement();if(oa("0xb")===t[oa("0x22")]&&e===s){t[oa("0x11")]!==l&&t[oa("0x1b")]();const e=t[oa("0xf")][oa("0x0")];x=e[0].tableWidth,i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x24")](s,{commandName:oa("0x5"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0xb"))}))}[oa("0x10")](t){const{data:e}=t;if(e&&oa("0xb")===e[oa("0x8")]){const t=oa("0x1d");return{type:"format",content:Yo(this[oa("0x7")][oa("0xd")],t)}}}}const ra=["get","enableCommand","afterInit","TrackChangesEditing","Template","has","plugins"];var ia,xa;ia=ra,xa=364,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x2")](){const t=this.editor;t[aa("0x6")][aa("0x5")](aa("0x4"))&&t[aa("0x6")][aa("0x0")](aa("0x3"))[aa("0x1")]("insertTemplate")}}const la=["plugins","ELEMENT_TABLE_OF_CONTENTS","afterInit","_descriptionFactory","tableOfContents","commands","get","insertTableOfContents","enableCommand","TrackChangesEditing"];var da,ua;da=la,ua=276,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x6")](){const t=this.editor;if(!t[ga("0x9")][ga("0x0")](ga("0x1")))return;t[ga("0x4")][ga("0x0")](ga("0x3"))[ga("0x2")](ga("0x1"));const e=t[ga("0x4")][ga("0x0")]("TrackChangesEditing"),n=t.locale;e[ga("0x7")].registerElementLabel(ga("0x8"),(t=>Yo(n,ga("0x5"),t)))}}const fa=["Title","editor","end","document","afterInit","createRange","newRange","isEqual","locale","start","updateMarker","ELEMENT_TITLE","title-content","schema","getNearestSelectionRange","forward","isTouching","differ","get","plugins","getChangedMarkers","element","removeMarker","_splitMarkerName","model","_descriptionFactory","nodeBefore"];var ha,pa;ha=fa,pa=247,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x0")](){const t=this[ba("0x18")];if(!t[ba("0xf")].has(ba("0x17")))return;const e=t.plugins[ba("0xe")]("TrackChangesEditing");e[ba("0x15")].registerElementLabel(ba("0x8"),(()=>Yo(t[ba("0x4")],ba("0x7")))),t[ba("0x14")][ba("0x1a")].registerPostFixer((n=>{let o=!1;const s=Array.from(t.model.document[ba("0xd")][ba("0x10")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x13")](r);if("suggestion"!==s||!i[ba("0x2")])continue;const x=i[ba("0x2")],a=x[ba("0x19")][ba("0x16")];if(!a||!a.is(ba("0x11"),ba("0x8")))continue;if(!x[ba("0x5")][ba("0xc")](x[ba("0x19")]))continue;const c=t.model[ba("0x9")][ba("0xa")](x[ba("0x19")],ba("0xb"));if(c&&c.isCollapsed){const t=n[ba("0x1")](x.start,c[ba("0x5")]);t[ba("0x3")](x)||(n[ba("0x6")](r,{range:t}),o=!0)}o||(n[ba("0x12")](r),o=!0)}return o}))}}const _a=["undo","plugins","enableCommand","UndoEditing","has","redo","editor","TrackChangesEditing"];var Ta,Ca;Ta=_a,Ca=468,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[ya("0x2")],e=t.plugins.get(ya("0x3"));t[ya("0x5")][ya("0x0")](ya("0x7"))&&(e.enableCommand(ya("0x4")),e[ya("0x6")](ya("0x1")))}}const Aa=["editor","afterInit","plugins","TableCaptionEditing","enableCommand","toggleTableCaption","has","requires","get","TrackChangesEditing"];var va,Ra;va=Aa,Ra=474,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x3")](){return[Mx]}[Sa("0x7")](){const t=this[Sa("0x6")];t[Sa("0x8")][Sa("0x2")](Sa("0x9"))&&t[Sa("0x8")][Sa("0x4")](Sa("0x5"))[Sa("0x0")](Sa("0x1"))}}const La=["from","handleListStyleCommand","commandName","list.properties","_getSuggestionBlocks","getAttribute","enableCommand","afterInit","_descriptionFactory","listType","reversed","numbered","_getSuggestionBlocksForListStyle","editor","config","DocumentListUtils","DocumentListPropertiesEditing","commandParams","_LIST_","format","_getTranslationKeyForListStyle","TrackChangesEditing","plugins","listStart","expandListBlocksToCompleteList","getSelectedBlocks","*Format:* set order to regular","handleListReversedCommand","type","filter","isFirstBlockOfListItem","startIndex","listReversed","bind","listStyle","model","toUpperCase","isListItemBlock","push","DocumentListPropertiesUtils","change","styles","selection","handleListStartCommand","get","markMultiRangeBlockFormat","length","document"];var Na,wa;Na=La,wa=282,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0xd")](){if(!this[Ma("0x13")][Ma("0x1c")].has(Ma("0x16")))return;const t=this[Ma("0x13")][Ma("0x14")][Ma("0x2")](Ma("0x9")),e=this[Ma("0x13")].plugins.get(Ma("0x1b"));t[Ma("0x2f")]&&e.enableCommand(Ma("0x28"),this[Ma("0x7")][Ma("0x27")](this)),t[Ma("0x10")]&&e[Ma("0xc")](Ma("0x26"),this.handleListReversedCommand[Ma("0x27")](this)),t[Ma("0x25")]&&e[Ma("0xc")](Ma("0x1d"),this[Ma("0x1")][Ma("0x27")](this)),e[Ma("0xe")].registerDescriptionCallback(this.handleDescriptions[Ma("0x27")](this))}[Ma("0x7")](t,e={}){const n=this[Ma("0x13")].plugins[Ma("0x2")]("TrackChangesEditing"),o=this[Ma("0x12")]();this[Ma("0x13")].model[Ma("0x2e")]((()=>{n[Ma("0x3")](o,{commandName:Ma("0x28"),commandParams:[{type:e[Ma("0x22")]}],formatGroupId:Ma("0x28")})}))}[Ma("0x21")](t,e={}){const n=this.editor[Ma("0x1c")][Ma("0x2")](Ma("0x1b")),o=this[Ma("0x13")][Ma("0x1c")][Ma("0x2")](Ma("0x15")),s=this[Ma("0xa")]((t=>o[Ma("0x2b")](t)&&Ma("0x11")===t[Ma("0xb")](Ma("0xf"))));null!==s&&this[Ma("0x13")][Ma("0x29")][Ma("0x2e")]((()=>{n[Ma("0x3")](s,{commandName:Ma("0x26"),commandParams:[{reversed:e[Ma("0x10")]}],formatGroupId:Ma("0x26")})}))}handleListStartCommand(t,e={}){const n=this[Ma("0x13")][Ma("0x1c")].get("TrackChangesEditing"),o=this[Ma("0x13")][Ma("0x1c")][Ma("0x2")](Ma("0x15")),s=this[Ma("0xa")]((t=>o[Ma("0x2b")](t)&&Ma("0x11")===t[Ma("0xb")](Ma("0xf"))));null!==s&&this[Ma("0x13")][Ma("0x29")][Ma("0x2e")]((()=>{n[Ma("0x3")](s,{commandName:Ma("0x1d"),commandParams:[{startIndex:e[Ma("0x25")]}],formatGroupId:Ma("0x1d")})}))}handleDescriptions(t){const e=this[Ma("0x13")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Ma("0x8")]){case Ma("0x28"):o="*Change to:* %0",s={type:Ma("0x19"),content:Yo(e,o,Yo(e,this[Ma("0x1a")](n[Ma("0x17")][0].type)))};break;case Ma("0x26"):o=n[Ma("0x17")][0][Ma("0x10")]?"*Format:* set order to reversed":Ma("0x20"),s={type:Ma("0x19"),content:Yo(e,o)};break;case Ma("0x1d"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[Ma("0x17")][0].startIndex)}}return s}[Ma("0x12")](){const t=this[Ma("0x13")][Ma("0x1c")][Ma("0x2")](Ma("0x15"));let e=Array[Ma("0x6")](this[Ma("0x13")][Ma("0x29")].document[Ma("0x0")].getSelectedBlocks());return e[Ma("0x2c")](...t[Ma("0x1e")](e)),e=[...new Set(e)],e}[Ma("0xa")](t){const e=this.editor[Ma("0x1c")][Ma("0x2")](Ma("0x15"));let n=Array[Ma("0x6")](this[Ma("0x13")][Ma("0x29")][Ma("0x5")][Ma("0x0")][Ma("0x1f")]())[Ma("0x23")](t);if(!n[Ma("0x4")])return null;n=e[Ma("0x1e")](n);const o=[];for(const t of n)e[Ma("0x24")](t)&&o.push(t);return o}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this.editor[Ma("0x1c")][Ma("0x2")](Ma("0x2d")).getListTypeFromListStyleType(t)[Ma("0x2a")]()+Ma("0x18")+t[Ma("0x2a")]().replace(/-/g,"_")}}const Fa=["_handlePropertyChange","handleSuggestionDescription","data","format","TablePropertiesEditing","tableCellProperties","commandParams","change","TableCellPropertiesEditing","tableCellWidth","accept","tableCellBorderColor","has","getSuggestionCallback","join","tableBorderColor","enableCommand","setAttribute","registerDescriptionCallback","afterInit","discard","tableProperties","tableWidth","formatBlock","_getSuggestion","enqueueChange","get","subType","*Format:* change table cell properties","model","pluginName","tableBorderStyle","plugins","tableBackgroundColor","locale","tableCellBorderStyle","tableCellBorderWidth","TrackChangesTableProperties","document","editor","*Format:* change table properties","batch","tableCellVerticalAlignment","table","tableHeight","TrackChangesEditing","tableCellHorizontalAlignment","registerCustomCallback","handleDiscardAction","_suggestionFactory","tableCellPadding"];var Pa,Da;Pa=Fa,Da=259,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x11")]=[Ba("0xb"),Ba("0x1b"),"tableBorderWidth","tableAlignment",Ba("0x12"),Ba("0x28"),Ba("0x1d")],this[Ba("0x1")]=[Ba("0x7"),Ba("0x1f"),Ba("0x20"),Ba("0x2e"),Ba("0x5"),"tableCellHeight","tableCellBackgroundColor",Ba("0x2a"),Ba("0x26")]}static get[Ba("0x1a")](){return Ba("0x21")}[Ba("0xf")](){const t=this[Ba("0x23")].plugins[Ba("0x16")]("TrackChangesEditing");if(this[Ba("0x23")][Ba("0x1c")][Ba("0x8")](Ba("0x0"))){for(const e of this[Ba("0x11")])t[Ba("0xc")](e,((t,n)=>{const o=this[Ba("0x23")][Ba("0x19")][Ba("0x22")].selection.getFirstPosition().findAncestor(Ba("0x27"));this[Ba("0x2f")](e,[o],this[Ba("0x11")],Ba("0x11"),t,n)}));t[Ba("0x2d")][Ba("0x2b")](Ba("0x13"),Ba("0x11"),Ba("0x6"),t[Ba("0x2d")][Ba("0x9")](Ba("0x13"),null,Ba("0x10"))),t[Ba("0x2d")][Ba("0x2b")](Ba("0x13"),Ba("0x11"),Ba("0x10"),((t,e)=>this[Ba("0x2c")](this.tableProperties,t,e))),t._suggestionFactory[Ba("0x2b")]("formatBlock",Ba("0x11"),Ba("0xa"),(()=>!1))}if(this[Ba("0x23")].plugins[Ba("0x8")](Ba("0x4"))){for(const e of this.tableCellProperties)t[Ba("0xc")](e,((t,n)=>{const o=this[Ba("0x23")][Ba("0x1c")][Ba("0x16")]("TableUtils").getSelectionAffectedTableCells(this.editor[Ba("0x19")].document.selection);this[Ba("0x2f")](e,o,this.tableCellProperties,Ba("0x1"),t,n)}));t[Ba("0x2d")][Ba("0x2b")](Ba("0x13"),"tableCellProperties",Ba("0x6"),t[Ba("0x2d")].getSuggestionCallback(Ba("0x13"),null,Ba("0x10"))),t[Ba("0x2d")].registerCustomCallback(Ba("0x13"),Ba("0x1"),"discard",((t,e)=>this[Ba("0x2c")](this[Ba("0x1")],t,e))),t[Ba("0x2d")][Ba("0x2b")](Ba("0x13"),Ba("0x1"),"join",(()=>!1))}t._descriptionFactory[Ba("0xe")]((t=>this[Ba("0x30")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this.editor[Ba("0x1c")][Ba("0x16")](Ba("0x29"));this[Ba("0x23")][Ba("0x19")][Ba("0x15")](r[Ba("0x25")],(()=>{for(const t of e)if(this[Ba("0x14")](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.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Ba("0x2c")](t,e,n){const o=e[0].start.nodeAfter,s=n[Ba("0x2")][0];this[Ba("0x23")][Ba("0x19")][Ba("0x3")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0xd")](n,s[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x31")])switch(t[Ba("0x17")]){case Ba("0x11"):return{type:Ba("0x32"),content:Yo(this.editor[Ba("0x1e")],Ba("0x24"))};case Ba("0x1"):return{type:Ba("0x32"),content:Yo(this[Ba("0x23")][Ba("0x1e")],Ba("0x18"))}}}[Ba("0x14")](t,e){const n=this.editor[Ba("0x1c")][Ba("0x16")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x17")]===e&&n===t)return o}return null}}const Ua=["registerPostFixer","getSuggestion","size","ck-suggestion-marker","formatInline","_refreshSuggestionsChain","toViewElement","getAttribute","insertion:join","from","getSuggestionCallback","substr","_suggestionState","getShiftedBy","low","join","getCustomProperty","containsPosition","data","values","registerCustomCallback","isInsideObject","$graveyard","high","change:_saved","_handleNewSuggestionMarker","getNearestSelectionRange","removed","root","_setSuggestionRange","author","head","previous","addRange","getUser","elementStart","isCollapsed","init","enqueueChange","markDeletion","containsRange","TrackChangesEditing","isOwn","group","has","discardSelectedSuggestions","filter","suggestion","locale","containerElement","fromCharCode","isUndo","for","showSuggestionHighlights","getRanges","markerName","after","change:activeMarkers","insertion","includes","markBlockFormat","element","pluginName","return","every","name","dataReady","split","trackChanges.trackFormatChanges","isInContent","external:","markMultiRangeInsertion","editingDowncast","CommentsRepository","acceptSuggestion","commandName","activeMarkers","listenTo","authoredAt","discardSuggestion","remove","formatBlock:discard","oldRange","getAllAdjacentSuggestions","getIntersection","removeMarker:suggestion:formatBlock","type","fire","sort","setTo","insertion:chain","isBlock","skipNestingCheck","error-saving-suggestion-data-suggestion-discarded","_breakSuggestionMarker","marker-count","deletion:join","getChanges","delete","forceDefaultExecution","document","markers","isIntersectingWithRange","conversion","hasCommentThread","_setSuggestionData","getFirstRange","isLocal","addSuggestion","addMarkerName","upcast","track-changes-command-not-found","_registerDefaultCallbacks","_getExternalAuthor","isObject","addMarker:suggestion:formatBlock","nodeAfter","updateMarker","value","markMultiRangeDeletion","end","getSuggestions","applyOperation","toJSON","_commentsRepository","length","default","isLimit","get","_removeSuggestion","elementToElement","markMultiRangeBlockFormat","_splitMarkerName","acceptAllSuggestions","_model","forward","track-changes-adapter-already-set","addMarker:suggestion","deletion:discard","getAncestors","discard","markerReady","updateSuggestion","PENDING_ACTION_SUGGESTION","ready","createElement","isEqual","track-changes-user-not-found","differ","removeMarkers","insertion:","PendingActions","createPositionBefore","commentThread","Users","some","collaboration.channelId","then","formatInline:","formatBlock:","lowest","_defaultCallbacks","suggestion:","unbind","_addSuggestionMarker","getMultiRangeId","multi","unbindElementFromMarkerName","$marker","enableReadOnlyMode","insert","subType","containsItem","_descriptionFactory","insertion:discard","_createSuggestion","set","formatBlock","_rangeIsInLocalUserInsertion","track-changes-suggestion-data-mismatch","adapter","setAttribute","consumable","_checkSuggestionCorrectness","stopListening","bindElementToMarker","dataToMarker","catch","removeMarker","refresh","consume","attributes","containsRangeInObject","dataDowncast","createPositionAfter","hasComments","isAtStart","add","createRange","rejected","suggestionChanged","isSelectable","formatBlock:join","createSelection","trackChangesCommand","map","hasSuggestion","_findSuggestions","selection","notReady","isMultiRange","_suggestions","_enabledCommands","removeComment","getChangedMarkers","change:data","isBefore","options","model","formatInline:join","ck-suggestion-marker-formatBlock","change","newRange","always","editor","addClass","authorName","splice","schema","formatInline:discard","_adapter","define","fromRange","plugins","never","targetPosition","mapper","item","getLastMatchingPosition","next","insertion:accept","getItems","track-changes-suggestion-not-found","trackChanges","_getSuggestionData","createPositionAt","discardAllSuggestions","getRange","reconvertMarker","suggestionLoaded","deleteContent","howMany","ck-suggestion-marker-","multipleBlocks","_joinSuggestions","formatGroupId","getFirstMarker","addSuggestionData","range","_trackFormatChanges","@external","rethrowUnexpectedError","backward","isExternal","open","nodeBefore","clone","detach","push","formatBlock:chain","deletion","isNextTo","_editor","acceptSelectedSuggestions","rootName","batch","editing","setSelection","moveTargetPosition","stop","_addThreadToSuggestion","isTouching","createdAt","deletion:","_updateSuggestionData","markInlineFormat","_suggestionFactory","formatInline:accept","buildSuggestion","removeClass","commands","suggestionUnloaded","position","isAtEnd","accept","_joinWithAdjacentSuggestions","_getAuthorFromId","creator","trackChanges.mergeNestedSuggestions","accepted","_customCallbacks","_onDiscard","before","writer","formatInline:chain","$textProxy","getWalker","elementEnd","start","isDocumentOperation","isAfter","removeAttribute","update:suggestion","markInsertion","addHighlight","move","_mergeNestedSuggestions","highest","normal","config","_isForcedDefaultExecutionBlock","parent","execute","getDifference","_saved","ck-suggestion-marker--active","enableCommand","markerToHighlight"];var Ga,Ha;Ga=Ua,Ha=380,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{static get requires(){return[Wa("0x15"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,zs,Qs,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Jr,ni,xi,ui,pi,Ci,Ri,Oi,ji,zi,$i,tx,ix,ux,px,yx,Sx,Mx,jx,zx,Ia,Jx,sa,ma,ja,ca,Ea,ka]}static get[Wa("0xa")](){return Wa("0x13d")}constructor(t){function e(t){return t.map((t=>String[Wa("0x146")](t)))[Wa("0x123")]("")}super(t),this[Wa("0x7c")](Wa("0x18"),[]),this.on(Wa("0x5"),((e,n,o,s)=>{this[Wa("0x52")][Wa("0xa9")]((()=>{for(const e of[...s,...o])this._model[Wa("0x31")][Wa("0x140")](e)&&t[Wa("0xe0")][Wa("0xc4")](e)}))})),this[Wa("0x79")]=new ss(this[Wa("0xac")].model[Wa("0xb0")],this[Wa("0xac")][Wa("0x144")]),this._adapter=null,this._suggestionFactory=new Va(this.editor),this[Wa("0x9f")]=new Map,this[Wa("0x48")]=t[Wa("0xb5")][Wa("0x4c")](Wa("0x15")),this._enabledCommands=new Set,this[Wa("0x52")]=this[Wa("0xac")][Wa("0xa6")],this[Wa("0x120")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Wa("0x10b")][Wa("0xb3")](Wa("0x10"),Wa("0x4a")),this[Wa("0xcf")]=t[Wa("0x10b")][Wa("0x4c")]("trackChanges.trackFormatChanges"),t[Wa("0x10b")][Wa("0xb3")]("trackChanges.mergeNestedSuggestions",!0),this._mergeNestedSuggestions=t[Wa("0x10b")].get(Wa("0xf6")),this[Wa("0x98")]=new u(t,this[Wa("0xa0")]),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,49,54,51,56])}[Wa("0x139")](){const t=this[Wa("0xac")];t[Wa("0x33")][Wa("0x0")](Wa("0x14"))[Wa("0x113")]({model:Wa("0x143"),view:t=>{const{id:e,type:n}=this[Wa("0x50")](t[Wa("0x3")]),o=["ck-suggestion-marker","ck-suggestion-marker-"+n];let s=3e3;return this[Wa("0x18")][Wa("0x7")](t[Wa("0x3")])&&(o[Wa("0xd8")](Wa("0x111")),s=3010),Wa("0xda")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Wa("0x33")][Wa("0x0")](Wa("0x8d")).add((e=>{e.on(Wa("0x55"),((e,n,o)=>{if(!o[Wa("0xa5")].showSuggestionHighlights)return;const s=n.item;if(!s)return;const r=o[Wa("0xb8")][Wa("0x11a")](s);t[Wa("0xa6")][Wa("0xb0")][Wa("0x3e")](s)&&r&&!r.getCustomProperty("widget")&&r.is(Wa("0x145"))&&(0,x.toWidget)(r,o[Wa("0xfb")])}),{priority:Wa("0x12b")})})),t[Wa("0x33")][Wa("0x0")](Wa("0x8d"))[Wa("0x113")]({model:Wa("0x143"),view:(t,e)=>{if(!e[Wa("0xa5")].showSuggestionHighlights)return null;const{type:n}=this[Wa("0x50")](t[Wa("0x3")]);return{classes:[Wa("0x117"),Wa("0xc8")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Wa("0xb9")])return;if(o[Wa("0xb9")].is("selection"))return void s.consumable[Wa("0x8a")](o[Wa("0xb9")],n[Wa("0xd")]);const r=s[Wa("0xb8")][Wa("0x11a")](o[Wa("0xb9")]);if(!o[Wa("0xb9")].is(Wa("0x9"))||!t[Wa("0xa6")].schema[Wa("0x27")](o[Wa("0xb9")])||r[Wa("0x124")](Wa("0x106")))return;const{id:i}=this._splitMarkerName(o[Wa("0x3")]);s.writer[Wa("0xad")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],r),s.writer[Wa("0x81")]("data-suggestion",i,r),s[Wa("0xb8")][Wa("0x85")](r,o[Wa("0x3")]),e&&(this.activeMarkers[Wa("0x7")](o[Wa("0x3")])?s.writer.addClass("ck-suggestion-marker--active",r):s[Wa("0xfb")][Wa("0xed")](Wa("0x111"),r));for(const e of t[Wa("0xa6")].createRangeIn(o.item)[Wa("0xbd")]())s[Wa("0x82")][Wa("0x8a")](e,n[Wa("0xd")]);s[Wa("0x82")].consume(o[Wa("0xb9")],n[Wa("0xd")])};t[Wa("0x33")].for(Wa("0x8d"))[Wa("0x91")]((t=>{t.on(Wa("0x3f"),((t,e,o)=>{o[Wa("0xa5")][Wa("0x1")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Wa("0x109")})})),t[Wa("0x33")][Wa("0x0")]("dataDowncast").markerToData({model:"suggestion",view:(t,e)=>e.options[Wa("0x1")]?null:{group:Wa("0x143"),name:t[Wa("0x11f")](11)}}),t[Wa("0x33")][Wa("0x0")](Wa("0x3a"))[Wa("0x4e")]({view:{name:Wa("0x143"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[Wa("0x11b")]("suggestion-type")+":"+t[Wa("0x11b")]("id");return t.getAttribute(Wa("0x2b"))&&(n+=":"+t[Wa("0x11b")]("marker-count")),e[Wa("0x5d")](Wa("0x74"),{"data-name":n})}}),t[Wa("0x33")][Wa("0x0")]("upcast")[Wa("0x86")]({view:Wa("0x143")}),t[Wa("0x33")][Wa("0x0")](Wa("0x14"))[Wa("0x91")]((t=>{t.on(Wa("0x3f"),n(),{priority:"high"})})),t[Wa("0x33")][Wa("0x0")]("editingDowncast").add((t=>{t.on(Wa("0x21"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[Wa("0x3")]);if(o)for(const t of o)t[Wa("0x124")]("addHighlight")||(n[Wa("0xfb")][Wa("0xed")]([Wa("0x117"),Wa("0xa8"),"ck-suggestion-marker--active"],t),n[Wa("0xfb")][Wa("0x103")]("data-suggestion",t),n[Wa("0xb8")][Wa("0x73")](t,e.markerName))}),{priority:"high"})})),t.model[Wa("0x30")][Wa("0x114")]((e=>{let n=!1;const o=Array[Wa("0x11d")](t[Wa("0xa6")][Wa("0x30")][Wa("0x60")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Wa("0x50")](x);if("suggestion"!==o)continue;const d=this[Wa("0x9f")].get(l);if(null!=a[Wa("0xaa")])if(Wa("0x118")==c&&(n=n||Xa(a[Wa("0xaa")],x,e,t[Wa("0xa6")][Wa("0xb0")])),a[Wa("0xaa")][Wa("0x138")]||Wa("0x12a")==a[Wa("0xaa")][Wa("0x130")][Wa("0xde")]||"formatBlock"==c&&!Qa(a[Wa("0xaa")])||Wa("0xda")==c&&(qa(i=a[Wa("0xaa")])||(r=i)[Wa("0x100")][Wa("0x10d")]==r[Wa("0x44")][Wa("0xd5")]&&r.start[Wa("0xf1")]))e[Wa("0x88")](x),n=!0;else{if(!d||!d.isInContent)continue;s.add(d)}}var r,i;return s[Wa("0x116")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[Wa("0xa6")][Wa("0x30")][Wa("0x114")]((e=>{let n=!1;for(const o of t.model[Wa("0x30")][Wa("0x60")][Wa("0x2d")]()){if(Wa("0x76")!=o[Wa("0x22")])continue;const s=o[Wa("0xf0")][Wa("0x121")](o[Wa("0x49")]);if(s[Wa("0xf1")])for(const r of this[Wa("0x9f")][Wa("0x127")]()){if(r[Wa("0x9e")]||!r[Wa("0x11")])continue;if("formatBlock"!=r[Wa("0x22")])continue;const i=r[Wa("0x36")]();if(i[Wa("0x100")][Wa("0x10d")]!=i[Wa("0x44")][Wa("0x10d")]&&i.end[Wa("0x5e")](o.position)){const o=t[Wa("0xa6")][Wa("0x92")](i[Wa("0x100")],s);e.updateMarker(r.getFirstMarker(),{range:o}),n=!0}}}return n})),t.model.markers.on(Wa("0x104"),((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0x50")](e[Wa("0xd")]),n=this[Wa("0x9f")][Wa("0x4c")](t);n&&n[Wa("0x39")](e[Wa("0xd")])}})),t[Wa("0xa6")][Wa("0x30")].on(Wa("0xa3"),(()=>{const e=Array[Wa("0x11d")](t.model.document[Wa("0x60")][Wa("0xa2")]())[Wa("0x142")]((t=>"suggestion"===this[Wa("0x50")](t.name)[Wa("0x13f")]));if(0===e[Wa("0x49")])return;e[Wa("0x24")](((t,e)=>{const n=t.data[Wa("0x1e")],o=e[Wa("0x126")][Wa("0x1e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Wa("0x100")][Wa("0xa4")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Wa("0x50")](t);if(null===s[Wa("0x1e")]){const e=this[Wa("0x12d")](t);o[Wa("0x91")](e)}else{const t=this[Wa("0x9f")].get(e);null!==s.newRange||t[Wa("0x11")]?(n[Wa("0x91")](t[Wa("0x133")]),o[Wa("0x91")](t)):this[Wa("0x4d")](t)}}o[Wa("0x116")]>0&&this[Wa("0x119")](o);for(const t of n)this[Wa("0x23")](Wa("0x94"),t)})),t[Wa("0xa6")].on(Wa("0x46"),((e,n)=>{const o=n[0];if(!this[Wa("0x9f")][Wa("0x116")])return;if(!o[Wa("0x101")])return;if(o[Wa("0xdf")][Wa("0x147")]||!o[Wa("0xdf")][Wa("0x37")])return;let s,r;switch(o[Wa("0x22")]){case Wa("0x76"):s=t[Wa("0xa6")][Wa("0xc1")](o.position),r=s[Wa("0x121")](o[Wa("0xc7")]);break;case Wa("0xf"):s=t[Wa("0xa6")][Wa("0xc1")](o.splitPosition),r=t[Wa("0xa6")][Wa("0xc1")](o[Wa("0xe2")]);break;case Wa("0x107"):s=t[Wa("0xa6")][Wa("0xc1")](o[Wa("0xb7")]),r=s[Wa("0x121")](o[Wa("0xc7")]);break;default:return}const i=t[Wa("0xa6")][Wa("0x92")](s,r);t[Wa("0xa6")][Wa("0xa9")]((()=>{for(const{suggestion:t,meta:e}of this[Wa("0x9b")](i)){if(t[Wa("0x9e")])continue;if(Wa("0x118")==t[Wa("0x22")])continue;const n=t[Wa("0x126")]&&t[Wa("0x126")][Wa("0xc9")];(Wa("0x7d")!=t[Wa("0x22")]||Wa("0xf")==o[Wa("0x22")]&&!n)&&(e.containsRangeInObject||"insertion"==t[Wa("0x22")]&&e[Wa("0x13e")]||t[Wa("0x36")]().containsRange(i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:Wa("0x6c")}),t[Wa("0xa6")].on(Wa("0xc6"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Wa("0x2f")])return;if(this[Wa("0x10c")])return;if(!this[Wa("0x98")].value)return;if(o[Wa("0x138")])return;const r=t.model[Wa("0xb0")],{start:i,end:x}=o[Wa("0x36")](),a=i[Wa("0x40")]&&r[Wa("0x4b")](i[Wa("0x40")])?null:r[Wa("0x12e")](i,Wa("0x53")),c=x[Wa("0xd5")]&&r.isLimit(x.nodeBefore)?null:r[Wa("0x12e")](x,Wa("0xd2")),l=t[Wa("0xa6")][Wa("0x92")](a?a.start:i,c?c[Wa("0x44")]:x);t[Wa("0xa6")][Wa("0xa9")]((e=>{this[Wa("0x13b")](l);const n=t[Wa("0xa6")][Wa("0xb0")][Wa("0x12e")](l.start);o.is("documentSelection")?e.setSelection(n):o[Wa("0x25")](n)})),e.stop()}),{priority:e.priorities[Wa("0x10a")]+10}),t[Wa("0xa6")].on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o[Wa("0x2f")]||this[Wa("0x10c")]||this[Wa("0x98")][Wa("0x42")]&&(t[Wa("0xa6")][Wa("0xa9")]((()=>{let o=t[Wa("0xa6")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Wa("0xb")]=o[Wa("0xd6")]();const s=o.end[Wa("0xd5")],r=t[Wa("0xa6")][Wa("0xb0")];s&&r[Wa("0x27")](s)&&!r[Wa("0x3e")](s)&&(o=t[Wa("0xa6")][Wa("0x92")](o.start,t[Wa("0xa6")][Wa("0xc1")](s,Wa("0x44")))),this[Wa("0x105")](o)})),e[Wa("0xe3")]())}),{priority:Wa("0x12b")}),this.editor.commands[Wa("0x91")](Wa("0xbf"),this[Wa("0x98")]),this.enableCommand(Wa("0xbf"));const o=new p(t,this[Wa("0x9f")]);t[Wa("0xee")][Wa("0x91")](Wa("0x16"),o),this[Wa("0x112")](Wa("0x16"));const s=new C(t,this[Wa("0x9f")]);t.commands.add(Wa("0x1b"),s),this[Wa("0x112")](Wa("0x1b")),t[Wa("0xee")][Wa("0x91")](Wa("0x51"),new F(t,o,this._suggestions)),this[Wa("0x112")](Wa("0x51")),t.commands[Wa("0x91")](Wa("0xc2"),new F(t,s,this[Wa("0x9f")])),this[Wa("0x112")](Wa("0xc2")),t[Wa("0xee")][Wa("0x91")]("acceptSelectedSuggestions",new U(t,o,this[Wa("0x9f")])),this[Wa("0x112")](Wa("0xdd")),t[Wa("0xee")][Wa("0x91")](Wa("0x141"),new U(t,s,this[Wa("0x9f")])),this[Wa("0x112")](Wa("0x141"));const r=t.plugins[Wa("0x4c")](Wa("0x15"));this[Wa("0x19")](r,"addComment",((t,{threadId:e})=>{const n=this[Wa("0x9f")][Wa("0x4c")](e);n&&n[Wa("0x65")]&&1===n[Wa("0x65")].length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:Wa("0x122")}),this[Wa("0x19")](r,Wa("0xa1"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[Wa("0x65")]&&!n[Wa("0x65")].length&&this[Wa("0xe8")](e,{hasComments:!1})}),{priority:"low"})}set[Wa("0x80")](t){if(this._adapter)throw new e.CKEditorError(Wa("0x54"),this);this._adapter=t}get adapter(){return this[Wa("0xb2")]}[Wa("0x45")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Wa("0x127")]())t&&!e[Wa("0x11")]||n.push(e);return e?n[Wa("0x99")]((t=>t[Wa("0x47")]())):n}getSuggestion(t){const n=this[Wa("0x9f")][Wa("0x4c")](t);if(!n)throw new e.CKEditorError(Wa("0xbe"),this);return n}[Wa("0x9a")](t){return this[Wa("0x9f")][Wa("0x140")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type[Wa("0xf")](":"),i=this[Wa("0x9f")][Wa("0x4c")](n)||this[Wa("0x7b")](s,r,n,e,o);if(this[Wa("0xe4")](i),this[Wa("0x83")](i,s,r||null,e),i[Wa("0xe6")]=t[Wa("0xe6")],o&&o[Wa("0xd0")]){const t=o[Wa("0xd0")],e=this[Wa("0x3d")](t[Wa("0xae")]);i[Wa("0x1a")]=t[Wa("0xe6")],i.author=e,i[Wa("0xd3")]=!0}else i[Wa("0x1a")]=t.createdAt;switch(t[Wa("0x126")]&&(i[Wa("0x126")]=t[Wa("0x126")]),t[Wa("0x8b")]&&(i[Wa("0x8b")]=t[Wa("0x8b")]),this[Wa("0xb2")]&&this._adapter[Wa("0x38")]||(i[Wa("0x110")]=!0),this._suggestionState[Wa("0x4c")](i)){case Wa("0x9d"):this[Wa("0x120")][Wa("0x7c")](i,Wa("0xe"));break;case Wa("0x59"):i[Wa("0x11")]?(this._suggestionState[Wa("0x7c")](i,Wa("0x5c")),this.fire(Wa("0xc5"),i)):this[Wa("0x120")][Wa("0x7c")](i,Wa("0x12f"))}return i}[Wa("0x16")](t){this[Wa("0x2f")]((()=>{this[Wa("0xac")][Wa("0xa6")][Wa("0xa9")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}[Wa("0x1b")](t){this[Wa("0x2f")]((()=>{this[Wa("0xac")][Wa("0xa6")].change((()=>{for(const e of t[Wa("0x1f")]())e[Wa("0x58")]()}))}))}enableCommand(t,n){const o=this[Wa("0xac")].commands[Wa("0x4c")](t);if(!o)throw new e.CKEditorError(Wa("0x3b"),this,{commandName:t});this._enabledCommands.add(o),n&&o.on(Wa("0x10e"),((t,e)=>{this[Wa("0x98")][Wa("0x42")]&&(this._isForcedDefaultExecutionBlock||e[Wa("0x49")]>0&&e[e.length-1]&&e[e[Wa("0x49")]-1][Wa("0x2f")]||(n(((...t)=>o[Wa("0x10e")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:Wa("0x12b")})}forceDefaultExecution(t){let n,o;const s=this[Wa("0x10c")];this[Wa("0x10c")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[Wa("0xd1")](o,this),n}markInsertion(t,n=null,o={}){if(t[Wa("0x138")])return null;const s=this.editor[Wa("0xb5")].get(Wa("0x66")).me;for(const{suggestion:e,meta:o}of this[Wa("0x9b")](t,Wa("0x6")))if(o[Wa("0x13e")]){if(!o[Wa("0xdb")]){if(!this[Wa("0x108")]&&o[Wa("0x8c")])continue;return e}if(n==e[Wa("0x77")]){const n=e.getFirstRange();return n[Wa("0x100")][Wa("0x5e")](t.end)?this[Wa("0x131")](e,this[Wa("0x52")][Wa("0x92")](t[Wa("0x100")],n.end)):this[Wa("0x131")](e,this._model[Wa("0x92")](n[Wa("0x100")],t[Wa("0x44")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Wa("0x62")+n:Wa("0x6"),a=this[Wa("0x35")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x70")](x,r,i,t),a}[Wa("0x13")](t,n=Wa("0x72"),o={}){const s=this[Wa("0xac")][Wa("0xb5")].get("Users").me,r=this[Wa("0xea")][Wa("0x11e")]("insertion",n,Wa("0x123"));for(const e of this.getSuggestions())if(e[Wa("0x132")].id==s.id&&Wa("0x6")==e[Wa("0x22")]&&e[Wa("0x77")]==n&&(r(e[Wa("0x2")](),t)||r(t,e[Wa("0x2")]()))){for(const n of t)e[Wa("0x135")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[Wa("0x9b")](e,Wa("0x6"))){if(!o.isOwn)continue;let e=!0;for(const o of n[Wa("0x2")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=Wa("0x62")+n,c=this[Wa("0x35")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0x70")](a,i,x,e,Zo[Wa("0x71")]());return c}[Wa("0xe9")](t,n,o=null,s={}){if(o=o||$a(n),t[Wa("0x138")])return null;if("never"===this[Wa("0xcf")]){const e=this[Wa("0xea")][Wa("0x11e")](Wa("0x118"),o,Wa("0xf2"));return this[Wa("0x2f")]((()=>e([t],n,s))),null}const r=this.editor.plugins[Wa("0x4c")](Wa("0x66")).me,i=[];if(Wa("0xab")!==this[Wa("0xcf")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n[Wa("0x13e")]&&!n.isInsideObject&&i.push(...e[Wa("0x2")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Wa("0x20")](o);e&&n[Wa("0xd8")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Wa("0x49")];){const o=n[e][Wa("0x10f")](t);n[Wa("0xaf")](e,1,...o),e+=o.length}}return n}(t,i);x[Wa("0x49")]&&this[Wa("0x52")][Wa("0xa9")]((()=>{for(const t of x){const e=this[Wa("0xea")].getSuggestionCallback(Wa("0x118"),o,Wa("0xf2"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Wa("0x100")],a=t[Wa("0x44")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wa("0x118"))){if(!n.isOwn)continue;if(e[Wa("0x77")]!=o)continue;const s=e[Wa("0x36")]();if(s.containsRange(t,!0))return null;x=x[Wa("0xa4")](s[Wa("0x100")])?x:s[Wa("0x100")],a=a[Wa("0x102")](s[Wa("0x44")])?a:s[Wa("0x44")],i?s[Wa("0x100")][Wa("0xa4")](i[Wa("0x36")]()[Wa("0x100")])?(i[Wa("0x61")](),i=e):e[Wa("0x61")]():i=e}const c=this[Wa("0x52")][Wa("0x92")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:Wa("0x6a")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Wa("0x70")](Wa("0x6a")+o,t,i,c)}}return null}[Wa("0x8")](t,n,o=[],s=null,r={}){n[Wa("0xcb")]||(n[Wa("0xcb")]=n[Wa("0x17")]),n[Wa("0xc9")]=t.is("range"),s=s||$a(n);const i=o[Wa("0x99")]((t=>Ja(t,this[Wa("0x52")]))),x=t.is(Wa("0xce"))?t:Ja(t,this[Wa("0x52")]);if(Wa("0xb6")===this[Wa("0xcf")]){const t=this[Wa("0xea")][Wa("0x11e")](Wa("0x7d"),s,Wa("0xf2"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&Wa("0xab")!==this[Wa("0xcf")]){const t=this._suggestionFactory[Wa("0x11e")](Wa("0x7d"),s,Wa("0xf2"));return this[Wa("0x2f")]((()=>t([x],n,r))),null}let c=null,l=x.start,d=x[Wa("0x44")];for(const{suggestion:t,meta:e}of this[Wa("0x9b")](x,Wa("0x7d"))){if(!e[Wa("0x13e")]||e[Wa("0xdb")]||e.containsRangeInObject||e[Wa("0x129")])continue;if(t[Wa("0x126")][Wa("0xcb")]!=n[Wa("0xcb")])continue;const o=t[Wa("0x36")]();if(t[Wa("0x77")]==s){if(o[Wa("0x13c")](x,!0))return null;l=l[Wa("0xa4")](o[Wa("0x100")])?l:o[Wa("0x100")],d=d.isAfter(o[Wa("0x44")])?d:o.end,c?o[Wa("0x100")][Wa("0xa4")](c[Wa("0x36")]()[Wa("0x100")])?(c[Wa("0x61")](),c=t):t[Wa("0x61")]():c=t}else{const e=x[Wa("0x20")](o);this._cutOutSuggestionMarker(t,e)}}const u=this[Wa("0xac")].plugins[Wa("0x4c")](Wa("0x66")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Wa("0x131")](c,this[Wa("0x52")][Wa("0x92")](l,d)),c;{const t=this[Wa("0x35")]({id:g,type:Wa("0x6b")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Wa("0x70")]("formatBlock:"+s,g,m,this._model[Wa("0x92")](l,d)),t}}[Wa("0x4f")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[Wa("0xcb")]=n[Wa("0x17")]);const i=t[0];n[Wa("0xc9")]=i.is("range"),s=s||$a(n);const x=o[Wa("0x99")]((t=>Ja(t,this[Wa("0x52")]))),a=i.is(Wa("0xce"))?t:t[Wa("0x99")]((t=>Ja(t,this[Wa("0x52")])));if(Wa("0xb6")===this._trackFormatChanges){const t=this[Wa("0xea")][Wa("0x11e")](Wa("0x7d"),s,Wa("0xf2"));return this[Wa("0x2f")]((()=>t(a,n,r))),null}x[Wa("0xd8")](...a);let c=!0;for(const t of x)if(!this[Wa("0x7e")](t)){c=!1;break}if(c&&Wa("0xab")!==this[Wa("0xcf")]){const t=this[Wa("0xea")].getSuggestionCallback(Wa("0x7d"),s,Wa("0xf2"));return this[Wa("0x2f")]((()=>t(a,n,r))),null}const l=this[Wa("0xac")].plugins[Wa("0x4c")](Wa("0x66")).me;for(const t of this[Wa("0x45")]()){if(t[Wa("0x132")].id!=l.id)continue;if(Wa("0x7d")!=t.type||t[Wa("0x126")][Wa("0xcb")]!=n[Wa("0xcb")])continue;const e=t[Wa("0x77")]==s;for(let n=0;n<a[Wa("0x49")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[Wa("0xc3")]();if(o[Wa("0x5e")](r)){e?(a[Wa("0xaf")](n,1),n--):t[Wa("0x88")](s[Wa("0xd")]);break}}}}if(0==a[Wa("0x49")])return null;const d=this[Wa("0xea")].getSuggestionCallback("formatBlock",s,Wa("0x123"));for(const t of this[Wa("0x45")]())if(t.author.id==l.id&&Wa("0x7d")==t.type&&t[Wa("0x126")][Wa("0xcb")]==n[Wa("0xcb")]&&t[Wa("0x77")]==s&&(d(t[Wa("0x2")](),a)||d(a,t.getRanges()))){for(const e of a)t[Wa("0x135")](e);return t}const u=(0,e.uid)(),g=l.id,m=Wa("0x6b")+s,f=this[Wa("0x35")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Wa("0x70")](m,u,g,t,Zo[Wa("0x71")]());return f}[Wa("0x13b")](t,n=null,o={}){if(t[Wa("0x138")])return null;const s=this.editor[Wa("0xb5")][Wa("0x4c")](Wa("0x66")).me,r=new i.LiveRange(t[Wa("0x100")],t[Wa("0x44")]);for(const{suggestion:t,meta:e}of this[Wa("0x9b")](r,Wa("0x6")))if(e[Wa("0x13e")]&&!e[Wa("0xdb")])if(t[Wa("0x9e")]){const e=t[Wa("0x2")]()[Wa("0x142")]((t=>Wa("0x12a")!=t[Wa("0x130")].rootName));if(e[Wa("0xc")]((t=>r[Wa("0x13c")](t,!0)))&&t.discard(),e[Wa("0x67")]((t=>t[Wa("0x13c")](r,!0)))){const t=this[Wa("0xea")].getSuggestionCallback(Wa("0xda"),n,Wa("0xf2"));return this[Wa("0x2f")]((()=>t([r],null,o))),null}}else{const e=r[Wa("0x20")](t[Wa("0x36")]());null!==e&&t[Wa("0xf9")]([e],null,o)}if(r[Wa("0xd7")](),r.isCollapsed||Wa("0x12a")==r[Wa("0x130")][Wa("0xde")])return null;let x=null,a=r.start,c=r[Wa("0x44")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,Wa("0xda")))if(e[Wa("0x13e")])if(t[Wa("0x9e")]&&this._mergeNestedSuggestions){let e=!0;for(const n of t.getRanges()){if(n.containsRange(r,!0))return t;r[Wa("0x13c")](n)||(e=!1)}e&&t[Wa("0x58")]()}else{const n=t.getFirstRange();if(n[Wa("0x13c")](r,!0)){if(!this._mergeNestedSuggestions&&e[Wa("0x8c")])continue;return t}a=a[Wa("0xa4")](n[Wa("0x100")])?a:n.start,c=c[Wa("0x102")](n[Wa("0x44")])?c:n[Wa("0x44")],x?n[Wa("0x100")].isBefore(x[Wa("0x36")]()[Wa("0x100")])?(x[Wa("0x61")](),x=t):t[Wa("0x61")]():x=t}if(x)return this[Wa("0x131")](x,this._model[Wa("0x92")](a,c)),x;{const t=(0,e.uid)(),r=this[Wa("0x52")][Wa("0x92")](a,c),i=s.id,x=n?Wa("0xe7")+n:Wa("0xda"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x70")](x,t,i,r),l}}[Wa("0x43")](t,n=Wa("0x72"),o={}){const s=this.editor[Wa("0xb5")][Wa("0x4c")](Wa("0x66")).me,r=t[Wa("0x99")]((t=>new i.LiveRange(t[Wa("0x100")],t[Wa("0x44")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n.isOwn&&!n[Wa("0xdb")]&&x[Wa("0x91")](e);for(const e of x)if(e[Wa("0x9e")]){const s=e[Wa("0x2")]();if((!e[Wa("0x8b")]||!e.attributes[Wa("0x28")])&&s[Wa("0xc")]((t=>r[Wa("0x67")]((e=>e[Wa("0x13c")](t,!0)))))&&e[Wa("0x58")](),r[Wa("0xc")]((t=>s[Wa("0x67")]((e=>e[Wa("0x13c")](t,!0)))))){const e=this._suggestionFactory[Wa("0x11e")](Wa("0xda"),n,Wa("0xf2"));return this[Wa("0x2f")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[Wa("0x67")]((e=>e[Wa("0x13c")](t,!0)))&&e[Wa("0x58")](),r.every((e=>t[Wa("0x13c")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(Wa("0xda"),n,"accept");return this[Wa("0x2f")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory.getSuggestionCallback(Wa("0xda"),n,Wa("0x123"));let c=null;for(const t of this[Wa("0x45")]())if(t[Wa("0x132")].id==s.id&&t[Wa("0x11")]&&Wa("0xda")==t.type&&t[Wa("0x77")]==n&&(a(t[Wa("0x2")](),r)||a(r,t[Wa("0x2")]())))if(c){if(t.commentThread&&t[Wa("0x65")][Wa("0x49")])continue;for(const e of t[Wa("0x2")]())c[Wa("0x32")](e)||c[Wa("0x135")](e);t[Wa("0x61")]()}else{c=t;for(const e of r)t[Wa("0x32")](e)||t[Wa("0x135")](e)}if(c)return c;x.clear();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wa("0xda")))n.isOwn&&x[Wa("0x91")](e);for(const t of x){const e=t[Wa("0x2")]();if((!o||!o[Wa("0x28")])&&r.every((t=>e.some((e=>e[Wa("0x13c")](t,!0))))))return t;(!t[Wa("0x8b")]||!t[Wa("0x8b")].skipNestingCheck)&&e[Wa("0xc")]((t=>r[Wa("0x67")]((e=>e[Wa("0x13c")](t,!0)))))&&t[Wa("0x58")]()}const l=(0,e.uid)(),d=s.id,u=Wa("0xe7")+n,g=this[Wa("0x35")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Wa("0xd7")](),t.isCollapsed||Wa("0x12a")==t[Wa("0x130")][Wa("0xde")]||this._addSuggestionMarker(u,l,d,t,Zo[Wa("0x71")]());return g}[Wa("0x131")](t,e){const n=t[Wa("0xcc")]();this._model[Wa("0xa9")]((t=>{t[Wa("0x41")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[Wa("0xac")][Wa("0x10b")][Wa("0x4c")](Wa("0x68"));this[Wa("0x48")][Wa("0x34")](e)||this[Wa("0x48")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository.getCommentThread(e);o[Wa("0x6f")]("isRemovable"),o.isRemovable=!1,t.commentThread=o}_checkSuggestionCorrectness(t,n,o,s){if(t[Wa("0x22")]!=n||t[Wa("0x77")]!=o||t[Wa("0xf5")].id!=s)throw this.editor[Wa("0x75")](Wa("0x7f")),new e.CKEditorError(Wa("0x7f"),this)}_cutOutSuggestionMarker(t,n){const o=t[Wa("0x36")]();if(n[Wa("0x5e")](o))t[Wa("0x61")]();else if(o[Wa("0x13c")](n)){const s=this._model[Wa("0xc1")](n[Wa("0x100")][Wa("0xd5")],"end");this[Wa("0x131")](t,this[Wa("0x52")][Wa("0x92")](o[Wa("0x100")],s));const r=(0,e.uid)(),i=t[Wa("0xf5")].id,x=t[Wa("0x22")]+":"+t.subType;this[Wa("0x35")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Wa("0x126")],attributes:t[Wa("0x8b")]});const a=this[Wa("0x52")][Wa("0xc1")](n[Wa("0x44")][Wa("0x10d")],Wa("0x4")),c=this._model[Wa("0x92")](a,o[Wa("0x44")]);this[Wa("0x70")](x,r,i,c)}else if(o[Wa("0x125")](n[Wa("0x100")])){const e=this._model[Wa("0xc1")](n[Wa("0x100")].nodeBefore,Wa("0x44"));this[Wa("0x131")](t,this[Wa("0x52")][Wa("0x92")](o[Wa("0x100")],e))}else{const e=this[Wa("0x52")][Wa("0xc1")](n[Wa("0x44")][Wa("0x10d")],Wa("0x4"));this[Wa("0x131")](t,this[Wa("0x52")][Wa("0x92")](e,o[Wa("0x44")]))}}[Wa("0x7e")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wa("0x6"))){if(!n[Wa("0x13e")])continue;const o=e.getRanges();for(const e of o)if(!t[Wa("0x10f")](e)[Wa("0x49")])return!0}return!1}[Wa("0xf4")](t){const n=this[Wa("0xac")].plugins[Wa("0x4c")](Wa("0x66"))[Wa("0x136")](t);if(!n)throw new e.CKEditorError(Wa("0x5f"),this);return n}[Wa("0x3d")](t){const e=this[Wa("0xac")].plugins[Wa("0x4c")]("Users"),n=(0,r.hashObject)(Wa("0x12")+t);return e[Wa("0x136")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[Wa("0xf4")](o),i=this._suggestionFactory.buildSuggestion(t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[Wa("0x19")](i,"accept",(()=>{this[Wa("0xe8")](n,{state:Wa("0xf7")})}),{priority:Wa("0x12b")}),this[Wa("0x19")](i,"discard",(()=>{this[Wa("0xe8")](n,{state:Wa("0x93")})}),{priority:Wa("0x12b")}),this[Wa("0x9f")][Wa("0x7c")](n,i),this[Wa("0x120")].set(i,Wa("0x9d")),i}[Wa("0x50")](t){const e=t[Wa("0xf")](":");return{group:e[0],type:e[1],subType:e[Wa("0x49")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[Wa("0x49")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[Wa("0x2a")](t,n,o){const s=t[Wa("0x36")](),r=s[Wa("0x100")],i=s[Wa("0x44")];this[Wa("0x131")](t,this[Wa("0x52")][Wa("0x92")](r,n));const x=(0,e.uid)(),a=t[Wa("0xf5")].id,c=t[Wa("0x22")]+(t[Wa("0x77")]?":"+t[Wa("0x77")]:"");this[Wa("0x35")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Wa("0x8b")],data:t[Wa("0x126")]}),Wa("0x7d")==t[Wa("0x22")]&&(o=this[Wa("0x52")][Wa("0x64")](o[Wa("0x10d")])),this[Wa("0x70")](c,x,a,this._model[Wa("0x92")](o,i))}[Wa("0x9b")](t,e=null){const n=[],o=this[Wa("0x52")][Wa("0xb0")],s=this.editor.plugins[Wa("0x4c")](Wa("0x66")).me;for(const r of this.getSuggestions())if(r.isInContent&&(!e||r.type==e))for(const e of r[Wa("0x2")]()){const i=t.start[Wa("0x5e")](e[Wa("0x44")])||t[Wa("0x44")][Wa("0x5e")](e[Wa("0x100")]);if(i||t[Wa("0x20")](e)){const x=t[Wa("0x13c")](e)&&Ka(o,e.start,t),a=e[Wa("0x13c")](t)&&Ka(o,t[Wa("0x100")],e);n.push({suggestion:r,meta:{isOwn:s==r[Wa("0x132")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[Wa("0x70")](t,e,n,o,s){this[Wa("0x52")][Wa("0xa9")]((r=>{let i=Wa("0x6e")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[Wa("0x4d")](t){const e=t[Wa("0x134")],n=t[Wa("0xbb")];t[Wa("0x134")]=null,null!=e&&(e[Wa("0xbb")]=null),t[Wa("0xbb")]=null,null!=n&&(n[Wa("0x134")]=null),"ready"==this[Wa("0x120")][Wa("0x4c")](t)&&(this[Wa("0x120")].set(t,"removed"),this[Wa("0x23")](Wa("0xef"),t,e,n))}[Wa("0x35")](t){const n=t.id,o=this[Wa("0xcd")](t);if(this[Wa("0xb2")]&&this[Wa("0xb2")][Wa("0x38")]){const s=this.editor[Wa("0xb5")][Wa("0x4c")](Wa("0x63")),r=o[Wa("0x8f")],i=o.subType?o.type+":"+o.subType:o[Wa("0x22")],x=this[Wa("0xac")].locale,a=s[Wa("0x91")](Yo(x,Wa("0x5b"))),c={id:n,type:i,hasComments:r,data:t[Wa("0x126")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Wa("0x8b")]};this[Wa("0xb2")][Wa("0x38")](c).then((t=>{o._saved=!0,s[Wa("0x1c")](a),t&&t.createdAt&&(this._suggestions[Wa("0x4c")](n)[Wa("0xe6")]=t[Wa("0xe6")])}))[Wa("0x87")]((t=>{throw(0,e.logWarning)(Wa("0x29")),this[Wa("0xac")][Wa("0xa6")][Wa("0x13a")]({isUndoable:!1},(()=>{o[Wa("0x58")]()})),o[Wa("0x84")](),this._suggestions.delete(o.id),this._suggestionState[Wa("0x2e")](o),t}))}return o}[Wa("0xe8")](t,e){const n=this[Wa("0xac")].plugins[Wa("0x4c")](Wa("0x63")),o=this[Wa("0x115")](t);if(this[Wa("0xb2")]&&this._adapter[Wa("0x5a")])if(o[Wa("0x110")]){const o=n[Wa("0x91")](Yo(this.editor[Wa("0x144")],"PENDING_ACTION_SUGGESTION"));this[Wa("0xb2")][Wa("0x5a")](t,e)[Wa("0x69")]((()=>{n[Wa("0x1c")](o)}))}else o.on(Wa("0x12c"),(()=>{this[Wa("0xe8")](t,e)}))}[Wa("0xc0")](t){if(!this[Wa("0xb2")]||!this[Wa("0xb2")][Wa("0x115")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this._adapter.getSuggestion(t)}[Wa("0x12d")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[Wa("0x9f")].get(e)||this[Wa("0x7b")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[Wa("0x120")][Wa("0x4c")](r)){case Wa("0x9d"):this[Wa("0xc0")](e).then((t=>{let n=Promise.resolve();t[Wa("0x8f")]&&(n=this[Wa("0x48")].fetchCommentThread({channelId:this[Wa("0xac")][Wa("0x10b")][Wa("0x4c")](Wa("0x68")),threadId:e})),n[Wa("0x69")]((()=>{this[Wa("0xcd")](t)._saved=!0}))})),this[Wa("0x120")][Wa("0x7c")](r,Wa("0x59"));break;case Wa("0x12f"):this._updateSuggestionData(e,{state:Wa("0xd4")});case Wa("0xe"):this._suggestionState.set(r,Wa("0x5c")),this.fire(Wa("0xc5"),r);break;case Wa("0x5c"):this[Wa("0x23")](Wa("0x94"),r)}return r[Wa("0x39")](t),r}[Wa("0x119")](t){const e=Array[Wa("0x11d")](t)[Wa("0x142")]((t=>!t[Wa("0x9e")])),n=this[Wa("0x45")]({skipNotAttached:!0})[Wa("0x142")]((t=>!t[Wa("0x9e")])),o=n[Wa("0x142")]((e=>!t[Wa("0x140")](e))),s=new Map(n[Wa("0x99")]((t=>[t,this[Wa("0xea")][Wa("0x11e")](t[Wa("0x22")],t[Wa("0x77")],"chain")]))),r=new Map(n[Wa("0x99")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[Wa("0x49")];t++)a(e[t],e,t+1);for(let t=0;t<e[Wa("0x49")];t++)a(e[t],o,0);for(let t=0;t<e[Wa("0x49")];t++){const n=e[t];!x.has(n)&&n[Wa("0x134")]&&(n[Wa("0x134")][Wa("0xbb")]===n&&(n.previous[Wa("0xbb")]=null),n.previous=null),!i.has(n)&&n[Wa("0xbb")]&&(n.next[Wa("0x134")]===n&&(n.next[Wa("0x134")]=null),n[Wa("0xbb")]=null)}function a(t,e,n){for(let o=n;o<e[Wa("0x49")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Wa("0x134")]=n[0],i[Wa("0x91")](n[0]),x[Wa("0x91")](n[1]))}}function c(t,e){if(t.author.id!==e[Wa("0x132")].id)return null;const n=s[Wa("0x4c")](t)(t,e,r.get(t),r.get(e));return n&&s[Wa("0x4c")](e)(t,e,r[Wa("0x4c")](t),r.get(e))?n[1][Wa("0x65")]&&n[1].commentThread[Wa("0x49")]?null:n:null}}[Wa("0xf3")](t){const e=Array.from(t),n=this[Wa("0x45")]({skipNotAttached:!0}),o=n.filter((e=>!t[Wa("0x140")](e))),s=new Map(e[Wa("0x99")]((t=>[t,this[Wa("0xea")][Wa("0x11e")](t[Wa("0x22")],t[Wa("0x77")],Wa("0x123"))]))),r=new Map(n[Wa("0x99")]((t=>[t,t[Wa("0x2")]()])));for(let t=0;t<e.length;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[Wa("0x22")]!==e[Wa("0x22")]||o[Wa("0x132")].id!==e.author.id||o.subType!==e[Wa("0x77")])continue;const x=s[Wa("0x4c")](e),a=r[Wa("0x4c")](e),c=r.get(o),l=e[Wa("0x65")]&&e[Wa("0x65")][Wa("0x49")],d=o.commentThread&&o[Wa("0x65")][Wa("0x49")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[Wa("0x2e")](e),!0;if(!d&&x(a,c))return t[Wa("0xca")](e,o),r.delete(o),!0}return!1}}[Wa("0xca")](t,e){if(t[Wa("0x9e")])for(const n of e[Wa("0x2")]())t[Wa("0x135")](n);else{const n=e.getFirstRange()[Wa("0x44")];this[Wa("0x131")](t,this[Wa("0x52")].createRange(t[Wa("0x36")]()[Wa("0x100")],n))}e.removeMarkers()}}class Va{constructor(t){this[Wa("0xdc")]=t,this[Wa("0x52")]=t[Wa("0xa6")],this[Wa("0xf8")]=new Map,this._defaultCallbacks=new Map,this[Wa("0x3c")]()}[Wa("0xec")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Wa("0x11e")](t,e,Wa("0xf2"))(...n),onDiscard:(...n)=>this[Wa("0x11e")](t,e,Wa("0x58"))(...n)})}[Wa("0x128")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[Wa("0x7c")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Wa("0xf8")][Wa("0x4c")](o)||this._defaultCallbacks[Wa("0x4c")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[Wa("0x24")](((t,e)=>t[Wa("0x100")][Wa("0xa4")](e[Wa("0x100")])?1:-1)),this[Wa("0x52")][Wa("0xa9")]((e=>{for(const n of t){let t;t=n[Wa("0x44")].isAtEnd&&n[Wa("0x44")][Wa("0x10d")]==n.start[Wa("0x40")]?e.createSelection(n[Wa("0x100")].nodeAfter,"on"):e[Wa("0x97")](n),this._model[Wa("0xc6")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Wa("0x52")][Wa("0xa9")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wa("0x99")]((t=>(qa(t)&&(t=this[Wa("0x52")].createRange(t[Wa("0x44")])),t))).filter((t=>Wa("0x12a")!==t[Wa("0x130")][Wa("0xde")]));if(r.length<1)return;const x=Array[Wa("0x11d")](this[Wa("0x52")][Wa("0x30")][Wa("0x9c")][Wa("0x2")]())[Wa("0x99")]((t=>i.LiveRange[Wa("0xb4")](t)));n[Wa("0xe1")](r);for(const t of this[Wa("0xdc")].commands[Wa("0xee")]())t[Wa("0x89")]();s[Wa("0xd8")]({forceDefaultExecution:!0}),this[Wa("0xdc")][Wa("0x10e")](o,...s);const a=x[Wa("0x142")]((t=>Wa("0x12a")!=t[Wa("0x130")][Wa("0xde")]));a.length>0&&n.setSelection(a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Wa("0x49")]&&1==e[Wa("0x49")]&&t[0].end[Wa("0x5e")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this[Wa("0x52")])?[t,e]:Za(e,t,o,n,this[Wa("0x52")])?[e,t]:null;this[Wa("0x6d")].set(Wa("0xbc"),t),this[Wa("0x6d")][Wa("0x7c")](Wa("0x7a"),e),this._defaultCallbacks[Wa("0x7c")](Wa("0x11c"),o),this[Wa("0x6d")][Wa("0x7c")](Wa("0x26"),s),this[Wa("0x6d")][Wa("0x7c")]("deletion:accept",e),this._defaultCallbacks[Wa("0x7c")](Wa("0x56"),t),this._defaultCallbacks[Wa("0x7c")](Wa("0x2c"),o),this[Wa("0x6d")].set("deletion:chain",s),this._defaultCallbacks[Wa("0x7c")](Wa("0xeb"),n),this._defaultCallbacks[Wa("0x7c")](Wa("0xb1"),t),this[Wa("0x6d")][Wa("0x7c")](Wa("0xa7"),o),this[Wa("0x6d")][Wa("0x7c")](Wa("0xfc"),t),this._defaultCallbacks[Wa("0x7c")]("formatBlock:accept",n),this._defaultCallbacks.set(Wa("0x1d"),t),this[Wa("0x6d")][Wa("0x7c")](Wa("0x96"),o),this[Wa("0x6d")][Wa("0x7c")](Wa("0xd9"),t)}}function Ka(t,e,n){for(const o of e[Wa("0x10d")][Wa("0x57")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[Wa("0x78")](o))return!1;if(t[Wa("0x3e")](o)||t.isLimit(o))return!0}return!1}function qa(t){return t[Wa("0x44")].parent==t[Wa("0x100")][Wa("0x40")]&&t[Wa("0x44")][Wa("0x90")]}function Xa(t,e,n,o){const s=t=>!t[Wa("0xb9")].is(Wa("0xfd"))&&!o[Wa("0x3e")](t[Wa("0xb9")]),r=t[Wa("0x100")].getLastMatchingPosition(s),i=t[Wa("0x44")][Wa("0xba")](s,{direction:Wa("0xd2")});return!(t[Wa("0x100")][Wa("0x5e")](r)&&t[Wa("0x44")][Wa("0x5e")](i)||(r[Wa("0xa4")](i)?n[Wa("0x41")](e,{range:n[Wa("0x92")](r,i)}):n[Wa("0x88")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Qa(t){const e=t[Wa("0x100")][Wa("0x40")];return e&&e.is("element")}function Ja(t,e){const n=e.schema.isObject(t)||e[Wa("0xb0")][Wa("0x95")](t);return e[Wa("0x92")](e[Wa("0xc1")](t,Wa("0xfa")),n?e[Wa("0x8e")](t):e[Wa("0xc1")](t,"end"))}function Za(t,e,n,o,s){if(n[Wa("0x44")].isEqual(o[Wa("0x100")]))return!0;if(t.type!=e[Wa("0x22")])return!1;if(!n.end[Wa("0xe5")](o[Wa("0x100")]))return!1;const r=s[Wa("0x92")](n.end,o[Wa("0x100")])[Wa("0xfe")]();for(const t of r)if([Wa("0x137"),Wa("0xff")].includes(t[Wa("0x22")])&&s[Wa("0xb0")][Wa("0x4b")](t[Wa("0xb9")]))return!1;return!0}const Ya=["canEditAt","view","_discardCommand","_editor","_removePendingAction","_acceptCommand","destroy","PENDING_ACTION_SUGGESTION","commentThreadController","isEnabled","_setPendingAction","commands","acceptSuggestion","listenTo","canAccept","model","get","execute","stopListening","locale","canDiscard","isDirty","discardSuggestion","remove","_pendingAction","unbind","bind","plugins","add"];var tc,ec;tc=Ya,ec=126,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x5")]=e,this[nc("0x14")]=n,this.commentThreadController=o,this._editor=t,this[nc("0x18")]=t[nc("0x1")][nc("0x6")](nc("0x2")),this[nc("0x15")]=t[nc("0x1")].get(nc("0xc")),this[nc("0x14")][nc("0x10")](nc("0x1c")).to(this[nc("0x18")],this[nc("0x15")],((t,e)=>t||e)),this.view[nc("0x10")](nc("0x4")).to(this[nc("0x18")],nc("0x1c"),(t=>t&&this[nc("0x16")][nc("0x5")].canEditAt(e.getRanges()))),this[nc("0x14")].bind(nc("0xa")).to(this[nc("0x15")],nc("0x1c"),(t=>t&&this[nc("0x16")][nc("0x5")][nc("0x13")](e.getRanges()))),this[nc("0xe")]=null,n[nc("0xb")]&&this[nc("0x0")](),this.listenTo(n,nc("0x2"),(()=>this.acceptSuggestion())),this[nc("0x3")](n,nc("0xc"),(()=>this[nc("0xc")]())),this[nc("0x3")](n,"change:isDirty",(()=>{n[nc("0xb")]?this[nc("0x0")]():this._removePendingAction()}))}acceptSuggestion(){this[nc("0x18")][nc("0x7")](this[nc("0x5")].id)}[nc("0xc")](){this[nc("0x15")].execute(this[nc("0x5")].id)}[nc("0x19")](){this[nc("0x14")][nc("0xf")](nc("0x1c")),this[nc("0x14")].unbind(nc("0x4")),this[nc("0x14")][nc("0xf")](nc("0xa")),this[nc("0x8")](),this[nc("0x1b")].destroy(),this._pendingAction&&this[nc("0x17")]()}[nc("0x0")](){const t=Yo(this[nc("0x16")][nc("0x9")],nc("0x1a"));this[nc("0xe")]=this[nc("0x16")][nc("0x11")].get("PendingActions")[nc("0x12")](t)}_removePendingAction(){null!==this._pendingAction&&this[nc("0x16")][nc("0x11")][nc("0x6")]("PendingActions")[nc("0xd")](this[nc("0xe")]),this[nc("0xe")]=null}}const sc=["addComment","destroy","commentThread","focus","descriptionParts","disabledSubmit","authoredAt","editorConfig","value","_createCommentThreadInputView","_model","_createCommentViews","CommentView","_config","disableComments","locale","hasDirtyComment","commentInputView","isActive","bind","submit","canAccept","set","editor","isDirty","cancel","showInput","removeComment","_localUser","delegate","isReadOnly","commentsListView","length","commentThreadInputView","fire"];var rc,ic;rc=sc,ic=150,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x15")]=null,this[xc("0x17")]=null,this[xc("0xc")]("isActive",!1),this[xc("0xc")](xc("0x1f"),e[xc("0x1f")]),this.bind(xc("0x1f")).to(e),this.set(xc("0x1d"),[]),this[xc("0xc")]("isDirty",!1),this[xc("0xc")]("isEnabled",!1),this[xc("0xc")](xc("0xb"),!1),this[xc("0xc")]("canDiscard",!1),this[xc("0x0")]=e,this[xc("0x12")]=n,this._config=o,o[xc("0x4")]?this[xc("0xc")](xc("0x16"),1):this[xc("0x1")]()}[xc("0x1c")](){this.element[xc("0x1c")]()}[xc("0x1a")](){this[xc("0x15")]&&this[xc("0x15")][xc("0x1a")](),this[xc("0x17")]&&this[xc("0x17")][xc("0x1a")](),super.destroy()}[xc("0x1")](){const{CommentsListView:t}=this._config;this[xc("0x15")]=new t(this[xc("0x5")],this._model[xc("0x1b")],Object.assign({CommentView:this._config[xc("0x2")]},this._config)),this.commentsListView[xc("0x13")](xc("0x11")).to(this),this[xc("0x15")][xc("0x13")]("updateComment").to(this),this.commentsListView[xc("0x9")]("isActive").to(this),this[xc("0xc")]("length",this.commentsListView[xc("0x16")]+1),this[xc("0x9")](xc("0x16")).to(this[xc("0x15")],xc("0x16"),(t=>t+1)),this[xc("0x17")]=this[xc("0x22")](),this.on(xc("0x11"),(()=>this[xc("0x1c")]())),this.bind(xc("0xe")).to(this.commentsListView,xc("0x6"),this.commentThreadInputView[xc("0x7")],xc("0x21"),((t,e)=>t||!!e))}[xc("0x22")](){const{CommentThreadInputView:t}=this[xc("0x3")],e=new t(this[xc("0x5")],this[xc("0x12")],this[xc("0x3")][xc("0x20")]),n=e[xc("0x7")];return e[xc("0x9")](xc("0x10")).to(this,xc("0x8"),this[xc("0x0")].commentThread,xc("0x14"),n,xc("0x21"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0xa"),((t,e)=>{this[xc("0x18")](xc("0x19"),e),n[xc("0xd")].setData("")})),n.on(xc("0xf"),(()=>this[xc("0x1c")]())),n[xc("0x9")](xc("0x1e")).to(this[xc("0x0")][xc("0x1b")],xc("0x14")),e}}const cc=["commentsListView","name","@external","execute","getUserViewNotificationText","creator","disableComments","author","span","ck-comment__external","editorReady",'"></span>',"innerHTML","EXTERNAL_AVATAR","bind","render","Discard suggestion","authoredAt","ck-annotation","ck-suggestion--disabled-comments",".ck-annotation__content-wrapper","getTemplate","ck-suggestion__main","canAccept","commentThreadInputView","ck-annotation__info-name","getExternalSuggestionNote","value","bindTemplate","ck-suggestion__actions","ck-annotation__actions","_createButton","fire","<p>","join","ck-annotation__main","ck-annotation__user","type","push","div","formatDateTime","discardSuggestion","commentThread","isEnabled","userView","children","set","description","canDiscard","isExternal","ck-suggestion--discard","_config","EXTERNAL_IMPORT_WORD_AVATAR","attributes","map","discardButton","acceptSuggestion","split","ck-annotation__info","ck-suggestion__info","setTemplate","delegate",'<span class="ck-suggestion-color" style="background-color: ',"locale","ck-comment__info-time","importWord","ck-suggestion__user","ck-annotation__info-time","descriptionParts","innerText","title","ck-suggestion","editorDestroyed","check",'" title="',"_descriptionElement","content","EXTERNAL_SUGGESTION","isActive","source","ck-suggestion-wrapper--active","querySelector","acceptButton","ck-suggestion-","_model","cancel"];var lc,dc;lc=cc,dc=227,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x4d")](uc("0x44"),""),this[uc("0x2d")](uc("0x44")).to(this,uc("0xd"),(t=>t&&t[0]?t[0].type:"")),this.bind(uc("0x4e")).to(this,uc("0xd"),this,uc("0x17"),((t,e)=>{let n="";for(const e of t)n+=uc("0x40")+mc(e[uc("0x15")],e.color)+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x14")]=null,this.acceptButton=this[uc("0x3e")](Yo(e,"Accept suggestion"),t.icons[uc("0x12")],"ck-suggestion--accept",uc("0x1"),"sw"),this.acceptButton[uc("0x2d")](uc("0x4a")).to(this,uc("0x36")),this[uc("0x0")]=this._createButton(Yo(e,uc("0x2f")),t.icons[uc("0x1e")],uc("0x51"),uc("0x48"),"sw"),this[uc("0x0")].bind("isEnabled").to(this,uc("0x4f")),this[uc("0x4b")]=new r.UserView(e,this[uc("0x1d")][uc("0x26")],this.getUserViewNotificationText()),this[uc("0x4b")].extendTemplate({attributes:{class:[uc("0xb"),uc("0x43")]}}),this[uc("0x5")](this[uc("0x34")]())}[uc("0x34")](){const t=this[uc("0x3b")],e=[{tag:uc("0x46"),attributes:{class:[uc("0x4"),uc("0x3")]},children:[{tag:uc("0x27"),children:[{text:this[uc("0x4b")][uc("0x20")]}],attributes:{class:["ck-suggestion__info-name",uc("0x38")]}},{tag:"time",attributes:{datetime:t.to(uc("0x30")),class:[uc("0x9"),uc("0xc")]},children:[{text:t.to(uc("0x30"),(t=>this._config[uc("0x47")](t)))}]}]},{tag:uc("0x46"),attributes:{class:[uc("0x3c"),uc("0x3d")]},children:[this[uc("0x1b")],this.discardButton]},{tag:uc("0x46"),attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[uc("0x50")]&&e.push({tag:"div",attributes:{class:[uc("0x28")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:["ck-suggestion-wrapper",t.if(uc("0x17"),uc("0x19")),t.to(uc("0x44"),(t=>uc("0x1c")+t)),this[uc("0x52")][uc("0x25")]&&uc("0x32")],"data-suggestion-id":this[uc("0x1d")].id,"data-thread-id":this._model[uc("0x49")].id,"data-author-id":this[uc("0x1d")][uc("0x26")].id,tabindex:-1},children:[{tag:uc("0x46"),attributes:{class:[uc("0x10"),uc("0x31")]},children:[this[uc("0x4b")],{tag:uc("0x46"),attributes:{class:[uc("0x35"),uc("0x42")]},children:e}]}]};return this[uc("0x1f")]&&this[uc("0x37")]&&(n[uc("0x4c")][uc("0x45")](this[uc("0x1f")],this.commentThreadInputView),this[uc("0x1f")][uc("0x6")](uc("0x29")).to(this),this.commentsListView[uc("0x6")](uc("0x11")).to(this),this[uc("0x37")][uc("0x6")](uc("0x29")).to(this),this[uc("0x37")][uc("0x6")](uc("0x11")).to(this)),n}[uc("0x2e")](){super[uc("0x2e")](),this._descriptionElement=this.element[uc("0x1a")](uc("0x33")),this[uc("0x14")].innerHTML=this[uc("0x4e")],this.on("change:description",((t,e,n)=>{this[uc("0x14")][uc("0x2b")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[uc("0x8")]);return i[uc("0x4d")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on(uc("0x22"),(()=>{this[uc("0x3f")](o,this[uc("0x1d")].id)})),i}[uc("0x39")](){return uc("0xa")===this[uc("0x1d")][uc("0x54")][uc("0x21")][uc("0x18")]?Yo(this[uc("0x8")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[uc("0x8")],uc("0x16"))}[uc("0x23")](){return this[uc("0x1d")][uc("0x50")]?uc("0xa")===this._model[uc("0x54")]["@external"][uc("0x18")]?Yo(this[uc("0x8")],uc("0x53"),this[uc("0x1d")][uc("0x24")][uc("0x20")]):Yo(this[uc("0x8")],uc("0x2c"),this._model.creator[uc("0x20")]):null}}function mc(t,e){let n="";return n+=t[uc("0x2")]("*")[uc("0x55")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+"</span>":fc(t)))[uc("0x41")](""),e&&(n+=uc("0x7")+e[uc("0x3a")]+uc("0x13")+e[uc("0xf")]+uc("0x2a")),n}function fc(t){const e=document.createElement("span");return e[uc("0xe")]=t,e.innerHTML}const hc=["_disableComments","plugins","delete","push","getAllAdjacentSuggestions","some","separator","button","refreshSelectedViews","getByInnerView","model","keys","comments.maxCommentCharsWhenCollapsed","_updateController","Accept all suggestions","acceptSelectedSuggestions","trackChanges","_suggestionToController","getJoined","addSourceCollector","filter","unbind","commandName","value","listenTo","remove","type","execute","reduce","stopListening","isMultiRange","hasSuggestion","discardSelectedSuggestions","Annotations","activeMarkers","requires","suggestion-","createAnnotationView","getRanges","getFirstRange","acceptAllSuggestions","_createUIButton","_destroyController","isInContent","add","_descriptionFactory","change:previous","addComment","suggestionChanged","switchbutton","createCommentThreadController","_initializeController","mainView","pluginName","has","comments.maxThreadTotalWeight","getMarkerNames","activeAnnotations","change:activeAnnotations","head","_refreshActiveMarkers","comments.maxCommentsWhenCollapsed","_annotationViews","EditorAnnotations","locale","bind","commands","destroy","isEnabled","trackChanges.disableComments","componentFactory","arrowView","isDirty","getMarkers","createAnnotation","clear","define","toMany","_handleSuggestionControllerDelayed","set","registerAnnotation","CommentView","discardButton","source","CommentsUI","Discard all selected suggestions","map","CommentsRepository","Accept all selected suggestions","buttonView","lowest","size","TrackChangesEditing","focus","_viewToController","editor","SuggestionThreadView","descriptionParts","view","editing","actionView","_handleControllerBuffer","isOn","getDescriptions","suggestionLoaded","get"];var pc,bc;pc=hc,bc=166,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x51")](){return[za,r.Users,Ec("0x1b"),Ec("0x4f"),Ec("0x3")]}static get[Ec("0x63")](){return"TrackChangesUI"}constructor(t){super(t),this[Ec("0x3f")]=new Map,this[Ec("0x22")]=new Map,this[Ec("0x2")]=new Map,this[Ec("0x29")]=new Map;const e=this.editor.config;e[Ec("0x10")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x10")](Ec("0x9"),!1),this[Ec("0x2e")]=e[Ec("0x2d")](Ec("0x9"))}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[Ec("0x1f")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x29")]){const n=this[Ec("0x3f")][Ec("0x64")](t);n||e?n&&e&&this[Ec("0x58")](t):this[Ec("0x61")](t)}this[Ec("0x23")][Ec("0x2f")][Ec("0x2d")](Ec("0x3"))[Ec("0x36")](),this[Ec("0x0")](),this[Ec("0x29")][Ec("0xf")]()}),10),this[Ec("0x29")][Ec("0x13")](t,e)}init(){const t=this[Ec("0x23")],e=t[Ec("0x2f")][Ec("0x2d")](Ec("0x20")),n=t.plugins[Ec("0x2d")]("Annotations"),o=t[Ec("0x2f")].get(Ec("0x3")),s=t[Ec("0x2f")][Ec("0x2d")](Ec("0x1b"));t.ui[Ec("0xa")][Ec("0x5a")](Ec("0x3e"),(t=>this[Ec("0x57")](t))),o[Ec("0x41")]((()=>{const t=[];for(const[e,n]of Array.from(this[Ec("0x3f")])){const o=e[Ec("0x32")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x4c")]){s[Ec("0x31")](...t[Ec("0x54")]());continue}const e=t[Ec("0x55")]();if(s.length>0){const t=s[0][Ec("0x40")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x31")]([n[Ec("0x26")],s])}return t})),this[Ec("0x46")](e,Ec("0x2c"),((t,e)=>{this[Ec("0x46")](e,Ec("0x5c"),((t,n,o,s)=>{e[Ec("0x59")]&&(null==o?(this._updateController(s.head),this[Ec("0x12")](e,!1)):(this._updateController(o[Ec("0x69")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x3b")](e[Ec("0x69")])})),this[Ec("0x46")](e,"suggestionUnloaded",((t,e,n)=>{this[Ec("0x4b")](e,"change:previous"),this[Ec("0x29")][Ec("0x30")](e);const o=n?n.head:e,s=this._suggestionToController[Ec("0x2d")](o);null!==n&&this[Ec("0x3b")](o),null===n&&s&&this._destroyController(e)})),this[Ec("0x46")](e,Ec("0x5e"),((t,e)=>{this._updateController(e)})),this[Ec("0x46")](n,Ec("0x68"),(()=>{this._refreshActiveMarkers()})),this.listenTo(s,Ec("0x5d"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x4d")](n))return;const s=e.getSuggestion(n);this[Ec("0x3f")].get(s)[Ec("0x26")].focus()}),{priority:Ec("0x1e")})}_refreshActiveMarkers(){const t=this[Ec("0x23")].plugins.get(Ec("0x4f")),e=this[Ec("0x23")][Ec("0x2f")][Ec("0x2d")](Ec("0x20")),n=Array.from(t[Ec("0x67")],(t=>t.innerView))[Ec("0x42")]((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this[Ec("0x22")][Ec("0x2d")](t)[Ec("0x38")][Ec("0x32")]();o[Ec("0x31")](...e[Ec("0x4a")](((t,e)=>[...t,...e[Ec("0x66")]()]),[]))}e[Ec("0x50")]=o}[Ec("0x57")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Ec("0x6")].get(Ec("0x3e")),r=Yo(t,"Track changes");n[Ec("0x1d")][Ec("0x13")]({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-2022, 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[Ec("0x5")]("isOn").to(o,Ec("0x45")),n.buttonView.on(Ec("0x49"),(()=>{o.execute(),this.editor[Ec("0x27")].view[Ec("0x21")]()}));const i=new e.Collection,x=[{type:Ec("0x5f"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Ec("0x34")},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x3c")),commandName:Ec("0x56")}},{type:Ec("0x35"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:Ec("0x3d")}},{type:Ec("0x35"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x19")),commandName:Ec("0x4e")}}];for(const t of x){let e={type:"separator"};if(t.model){const n=new s.Model(t.model),o=this[Ec("0x23")][Ec("0x6")].get(n[Ec("0x44")]);n[Ec("0x5")](Ec("0x2a"),Ec("0x8")).to(o,Ec("0x45"),Ec("0x8")),e={type:t[Ec("0x48")],model:n}}i[Ec("0x5a")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t.model))[Ec("0x1a")]((t=>this.editor[Ec("0x6")][Ec("0x2d")](t.model[Ec("0x44")]))),c=n.buttonView;return c[Ec("0x28")][Ec("0x43")](Ec("0x8")),c.arrowView.unbind(Ec("0x8")),c[Ec("0x28")][Ec("0x5")](Ec("0x8")).to(o,Ec("0x8")),c[Ec("0xb")].bind(Ec("0x8"))[Ec("0x11")](a,Ec("0x8"),((...t)=>t[Ec("0x33")]((t=>t)))),n.on(Ec("0x49"),(t=>{this[Ec("0x23")].execute(t[Ec("0x17")].commandName),this[Ec("0x23")][Ec("0x27")][Ec("0x26")][Ec("0x21")]()})),n}[Ec("0x61")](t){const e=this[Ec("0x23")],n=e.config,o=e[Ec("0x2f")].get(Ec("0x4f")),s=e[Ec("0x2f")][Ec("0x2d")](Ec("0x1b")),i=e.plugins[Ec("0x2d")]("EditorAnnotations"),x=e.plugins[Ec("0x2d")](r.Users).me,a=n[Ec("0x2d")](Ec("0x3e"))[Ec("0x24")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x2f")][Ec("0x2d")](Ec("0x18"));let d,u;this._annotationViews[Ec("0x64")](t.id)?(u=this[Ec("0x2")][Ec("0x2d")](t.id),d=u[Ec("0x62")]):(d=new a(e[Ec("0x4")],t,x,{disableComments:this[Ec("0x2e")],editorConfig:n[Ec("0x2d")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x2d")](Ec("0x1")),maxThreadTotalWeight:n.get(Ec("0x65")),maxCommentCharsWhenCollapsed:n.get(Ec("0x3a")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x2d")](Ec("0x4"))),CommentView:n.get("comments")[Ec("0x15")],CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on(Ec("0x49"),(()=>{e[Ec("0x27")][Ec("0x26")][Ec("0x21")]()})),d[Ec("0x16")].on("execute",(()=>{e.editing.view[Ec("0x21")]()})),u=o[Ec("0x53")](this[Ec("0x23")][Ec("0x4")],d),u.bind(Ec("0xc")).to(d,Ec("0xc")),u[Ec("0x5")]("length").to(d),u[Ec("0x5")](Ec("0x48")).to(d,"type",(t=>Ec("0x52")+t)),this._annotationViews[Ec("0x13")](t.id,u));const g=s[Ec("0x60")](t.commentThread,d),m=new oc(e,t,d,g),f=t[Ec("0x32")]().filter((t=>t.isInContent));d[Ec("0x25")]=e[Ec("0x2f")][Ec("0x2d")](Ec("0x20"))[Ec("0x5b")][Ec("0x2b")](f),this[Ec("0x3f")][Ec("0x13")](t,m),this[Ec("0x22")][Ec("0x13")](d,m);const h=o[Ec("0xe")]({view:u,target:()=>{const n=[],o=t[Ec("0x32")]().filter((t=>t[Ec("0x59")]));for(const t of o)n[Ec("0x31")](...t[Ec("0xd")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x27")],n)},type:()=>"suggestion-"+m[Ec("0x26")][Ec("0x48")]});s._bindAnnotationToEditors(d,h),o[Ec("0x5a")](h),i[Ec("0x14")](h)}_destroyController(t){const e=this[Ec("0x23")][Ec("0x2f")][Ec("0x2d")](Ec("0x4f")),n=this[Ec("0x3f")].get(t),o=n[Ec("0x26")],s=e[Ec("0x37")](o);s&&e[Ec("0x47")](s),this._suggestionToController[Ec("0x30")](t),this[Ec("0x22")][Ec("0x30")](o),n.destroy()}[Ec("0x3b")](t){if(!t.isInContent||!this[Ec("0x3f")][Ec("0x64")](t))return;const e=this.editor[Ec("0x2f")].get(Ec("0x20")),n=this._suggestionToController[Ec("0x2d")](t),o=t[Ec("0x32")]();n.view[Ec("0x25")]=e[Ec("0x5b")].getDescriptions(o)}destroy(){for(const t of this[Ec("0x3f")][Ec("0x39")]())this[Ec("0x58")](t);for(const t of this._annotationViews.values())t[Ec("0x62")][Ec("0x7")]();super.destroy()}}var Tc,Cc,yc=["pluginName","addSuggestion","getSuggestion","requires","editor","get","adapter","plugins","TrackChanges","Comments","addSuggestionData"];Tc=yc,Cc=235,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0xa")](){return[za,_c,kc("0x5")]}static get[kc("0x7")](){return kc("0x4")}set[kc("0x2")](t){this[kc("0x0")][kc("0x3")].get(za)[kc("0x2")]=t}get adapter(){return this[kc("0x0")][kc("0x3")][kc("0x1")](za)[kc("0x2")]}[kc("0x8")](t){return this[kc("0x0")][kc("0x3")][kc("0x1")](za)[kc("0x6")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x0")].plugins[kc("0x1")](za).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x0")].plugins[kc("0x1")](za)[kc("0x9")](t)}}const vc=["div","trackChangesData","TrackChangesDataGetter","getRootNames","createDocumentFragment","users","_adapter","TrackChangesData","editorCreator","plugins","map","addUser","TrackChangesEditing","config","addSuggestionData","data","execute","push","name","pluginName","define","getDataWithDiscardedSuggestions","getDataWithAcceptedSuggestions","CommentsRepository","getUser","Users","document","model","requires","Pagination","trackChangesData.editorCreator","acceptAllSuggestions","editor","get","getFullData","rootsAttributes","set","getRootsAttributes","init","result","reduce","create"];var Rc,Sc;Rc=vc,Sc=174,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x17")];class Nc extends t.Plugin{static get[Ic("0x16")](){return[za]}static get[Ic("0xd")](){return Ic("0x1")}[Ic("0x20")](){const t=this.editor;if(t[Ic("0x7")][Ic("0xe")](Ic("0x18"),(e=>{const n=t[Ic("0x15")][Ic("0x14")][Ic("0x27")]()[Ic("0x22")](((t,e)=>(t[e]="",t)),{});return t.constructor[Ic("0x23")](n,e)})),"function"!=typeof t[Ic("0x7")][Ic("0x1b")](Ic("0x25"))[Ic("0x2")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Ic("0x10")](t){return Oc(this[Ic("0x1a")],!0,t)}[Ic("0xf")](t){return Oc(this[Ic("0x1a")],!1,t)}}class wc extends t.Plugin{static get pluginName(){return Ic("0x26")}constructor(t){super(t),this[Ic("0x21")]="end"}init(){this[Ic("0x1a")][Ic("0x3")].get(Ic("0x11"))._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[Ic("0x1a")].plugins.get(Ic("0x6"))[Ic("0x0")]=null}}function Mc(t){return void 0!==t[Ic("0x1f")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x3")][Ic("0xb")](za,wc),o[Ic("0x1d")]=Mc(t)?t.getRootsAttributes():void 0;const s=document[Ic("0x28")](),i=t[Ic("0x7")].get("trackChangesData").editorCreator,x=await i(o,(()=>function(t){const e=document.createElement(Ic("0x24"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Ic("0x15")][Ic("0x14")][Ic("0x27")]()[Ic("0x22")](((e,n)=>(e[n]=t[Ic("0x9")][Ic("0x1b")]({rootName:n}),e)),{}),o=t[Ic("0x3")].get("Users")[Ic("0x29")][Ic("0x4")]((t=>({id:t.id,name:t[Ic("0xc")]}))),s=t[Ic("0x3")][Ic("0x1b")](Ic("0x6")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get(Ic("0x13")),i=e[Ic("0x3")][Ic("0x1b")]("TrackChangesEditing");for(const t of o)r[Ic("0x12")](t.id)||r[Ic("0x5")](t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0x8")](t);e[Ic("0x9")][Ic("0x1e")](n)}(t,x),x[Ic("0xa")](e?Ic("0x19"):"discardAllSuggestions");const a=Mc(x)?x[Ic("0x1c")](n):x[Ic("0x9")][Ic("0x1b")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();