@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230801.0 → 0.0.0-nightly-20230803.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:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["forceDisabled","affectsData","has","TrackChangesCommand","refresh","isEnabled","_disableUnsupportedCommands","_enableCommands","_enabledCommands","editor","_isEnabledBasedOnSelection","value","commands","clearForceDisabled"];var c,l;c=a,l=470,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("0x0")]=e,this[d("0x3")]=!1,this.refresh(),this[d("0x2")]=!1}[d("0xa")](){this[d("0xb")]=!0}execute(){this[d("0x3")]=!this[d("0x3")],this[d("0x3")]?this[d("0xc")]():this[d("0xd")]()}[d("0xc")](){for(const t of this[d("0x1")][d("0x4")][d("0x4")]())t[d("0x7")]&&!this[d("0x0")].has(t)&&t[d("0x6")](d("0x9"))}[d("0xd")](){for(const t of this[d("0x1")][d("0x4")][d("0x4")]())t[d("0x7")]&&!this[d("0x0")][d("0x8")](t)&&t[d("0x5")](d("0x9"))}}const g=["acceptSuggestion","plugins","refresh","_isEnabledBasedOnSelection","model","track-changes-accept-suggestion-not-found","get","editor","execute","_suggestions","isEnabled"];var m,f;m=g,f=292,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("0x3")]=e,this[h("0x7")](),this[h("0x8")]=!1}refresh(){this[h("0x4")]=!0}[h("0x2")](t){const n=this._suggestions[h("0x0")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n.getRanges();this[h("0x1")][h("0x9")].canEditAt(o)&&this[h("0x1")][h("0x6")][h("0x0")]("TrackChangesEditing")[h("0x5")](n)}}const b=["TrackChangesEditing","get","getRanges","editor","_isEnabledBasedOnSelection","plugins","isEnabled","discardSuggestion","refresh","model","execute","track-changes-discard-suggestion-not-found","_suggestions"];var E,_;E=b,_=278,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x7")]=e,this[T("0x3")](),this[T("0xc")]=!1}[T("0x3")](){this[T("0x1")]=!0}[T("0x5")](t){const n=this[T("0x7")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0xa")]();this[T("0xb")][T("0x4")].canEditAt(o)&&this[T("0xb")][T("0x0")].get(T("0x8"))[T("0x2")](n)}}const y=["from","end","sort","content","deletion","isIntersecting","color","start","replace","map","createRange","createPositionAfter","isCollapsed","schema","createPositionAt","length","next","createPositionBefore","execute","type","isTouching","getRange","isInContent"," [color ","add"];var k,A;k=y,A=258,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)=>"deletion"==t[v("0xb")]&&v("0x15")!=e[v("0xb")]?-1:v("0x15")!=t.type&&v("0x15")==e[v("0xb")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x5")];for(;o<t[v("0x7")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s.push(e[v("0x2")](n,r.isObject(i)?e[v("0x3")](i):e[v("0x6")](i,v("0x12")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x9")](n);return o[v("0xc")](s)}function L(t,e,n){for(;n[v("0x7")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t[v("0xe")]&&e[v("0xa")](t.id)}))}}const N=["canEditAt","model","isEnabled","_command","some","isInContent","editor","_suggestions","from","refresh"];var M,w;M=N,w=139,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("0x4")]=e,this._suggestions=n,this.refresh(),this._isEnabledBasedOnSelection=!1}[O("0x0")](){const t=Array[O("0x9")](this[O("0x8")].values())[O("0x5")]((t=>t[O("0x6")]));this[O("0x3")]=this[O("0x4")][O("0x3")]&&t}execute(){const t=R(Array[O("0x9")](this[O("0x8")].values()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x2")][O("0x1")](t))return}L(this[O("0x7")][O("0x2")],this[O("0x4")],t)}}const P=["model","canEditAt","isEnabled","_suggestions","_selectedSuggestions","from","_command","getRanges","selection","_isEnabledBasedOnSelection","values","document","execute","refresh","editor"];var D,B;D=P,B=262,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("0xb")]=n,this[j("0xc")]=new Set,this[j("0x6")](),this[j("0x2")]=!1}[j("0x6")](){const t=this[j("0x7")][j("0x8")][j("0x4")][j("0x1")],e=Array[j("0xd")](this._suggestions[j("0x3")]());this[j("0xc")]=function(t,e){const n=Array[v("0x11")](t.getRanges()),o=new Set;for(const s of e)if(s[v("0xe")])for(const e of n)for(const n of s.getMarkers()){const r=n[v("0xd")]();(e[v("0x16")](r)||t[v("0x4")]&&!s.isMultiRange&&s[v("0x8")]&&r[v("0x12")][v("0xc")](e[v("0x18")]))&&o[v("0x10")](s)}return o}(t,e),this[j("0xa")]=this[j("0xe")][j("0xa")]&&!!this[j("0xc")].size}[j("0x5")](){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e[j("0x0")]();if(!this[j("0x7")][j("0x8")][j("0x9")](t))return}L(this[j("0x7")][j("0x8")],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 z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const 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 Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const 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 We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const 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 Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const 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 Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["attributes","previous","getAllAdjacentSuggestions","isMultiRange","getMarkers","subType","clear","getFirstMarker","createdAt","author","isIntersecting","_markerNames","markers","data","map","_onDiscard","accept","head","decorate","getFirstRange","hasComments","split","isExternal","length","addRange","onAttributesChange","onAccept","removeAttribute","removeMarkers","add","reduce","getRanges","_onAccept","commentThread","getMarkerNames","isIntersectingWithRange","setAttribute","creator","removeMarker","filter","addMarker","start","end","_onAttributesChange","@external","size","getRange","_model","type","change","getItems","addMarkerName","nodeAfter","set","toJSON","delete","next","get","push","from"];var $o,Jo;$o=Xo,Jo=147,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("0x15")]=e[Qo("0x15")],this[Qo("0x26")]=e[Qo("0x26")]||null,this[Qo("0x2a")]=e[Qo("0x2a")],this[Qo("0xa")]=e.creator||e.author,this[Qo("0x37")]=Boolean(e[Qo("0x21")]&&e[Qo("0x21")][Qo("0x11")]),this[Qo("0x2e")]=null,this[Qo("0x14")]=t,this._onAccept=e[Qo("0x3b")],this._onDiscard=e.onDiscard,this[Qo("0x10")]=e[Qo("0x3a")],this[Qo("0x2c")]=new Set,this[Qo("0x29")]=null,this[Qo("0x1a")]("authoredAt",null),this[Qo("0x1a")](Qo("0x21"),e[Qo("0x21")]||{}),this[Qo("0x1a")](Qo("0x22"),null),this.set(Qo("0x1d"),null),this[Qo("0x1a")]("commentThread",null),this[Qo("0x1a")]("_saved",!1),this[Qo("0x33")]("accept"),this[Qo("0x33")]("discard")}get[Qo("0x32")](){let t=this;for(;t[Qo("0x22")];)t=t[Qo("0x22")];return t}get[Qo("0x35")](){return!!this[Qo("0x6")]&&this.commentThread[Qo("0x38")]>0}get[Qo("0x24")](){return 0!=this[Qo("0x2c")][Qo("0x12")]&&6==Array[Qo("0x20")](this[Qo("0x2c")])[0][Qo("0x36")](":")[Qo("0x38")]}get isInContent(){return null!==this.getFirstMarker()}[Qo("0x18")](t){this[Qo("0x2c")][Qo("0x2")](t)}[Qo("0x7")](){return Array.from(this._markerNames)}[Qo("0x25")](){return this[Qo("0x7")]()[Qo("0x2f")]((t=>this[Qo("0x14")][Qo("0x2d")][Qo("0x1e")](t)))[Qo("0xc")]((t=>t))}getFirstMarker(){return this[Qo("0x25")]()[0]||null}removeMarkers(){this[Qo("0x14")][Qo("0x16")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this[Qo("0x2c")][Qo("0x27")]()}[Qo("0xb")](t){this[Qo("0x14")][Qo("0x16")]((e=>{e[Qo("0xb")](t)})),this._markerNames[Qo("0x1c")](t)}[Qo("0x39")](t){const e="suggestion:"+this[Qo("0x15")]+":"+this.subType+":"+this.id+":"+this[Qo("0xa")].id+":"+Zo.getMultiRangeId();this[Qo("0x18")](e),this[Qo("0x14")][Qo("0x16")]((n=>{n[Qo("0xd")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x8")](t){for(const e of this.getRanges())if(e[Qo("0x2b")](t))return!0;return!1}getRanges(){return this[Qo("0x25")]()[Qo("0x2f")]((t=>t.getRange()))}[Qo("0x17")](){return this.getRanges()[Qo("0x3")](((t,e)=>[...t,...e[Qo("0x17")]()]),[])}[Qo("0x34")](){var t;return(null===(t=this[Qo("0x28")]())||void 0===t?void 0:t[Qo("0x13")]())||null}getContainedElement(){const t=this[Qo("0x4")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0xe")][Qo("0x19")],o=e[Qo("0xf")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x31")](){this[Qo("0x5")](this[Qo("0x4")](),this[Qo("0x2e")],this[Qo("0x21")]),this[Qo("0x1")]()}discard(){this[Qo("0x30")](this[Qo("0x4")](),this[Qo("0x2e")],this[Qo("0x21")]),this[Qo("0x1")]()}[Qo("0x23")](){const t=[];let e=this[Qo("0x32")];for(;e;)t[Qo("0x1f")](e),e=e[Qo("0x1d")];return t}[Qo("0x9")](t,e){const n=eo(this[Qo("0x21")]);_o(n,t,e),Go(n,this[Qo("0x21")])||(this.attributes=n,this[Qo("0x10")](n))}[Qo("0x0")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x21")])||(this[Qo("0x21")]=e,this[Qo("0x10")](this[Qo("0x21")]))}[Qo("0x1b")](){return{id:this.id,type:this[Qo("0x26")]?this[Qo("0x15")]+":"+this[Qo("0x26")]:this.type,authorId:this[Qo("0xa")].id,createdAt:this[Qo("0x29")],hasComments:this[Qo("0x35")],data:this[Qo("0x2e")],attributes:this[Qo("0x21")]}}static getMultiRangeId(){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=["text","Container","getFirstRange","*Insert:* %0","push","start","length","$1 $2","data","addObject","label","function","replace","_itemLabels","$textProxy","_itemLabelsCallbacks","$text","ELEMENT_SPACE","normal","isInContent","isEqual","quantity","matchingCallback","addEmptyContainer","*Remove:* %0","insertion","getItemLabel","add","_addDescriptionItems","Object","softBreak","name","end","skip","_schema","_customCallbacks","get","_resolveDescriptionItems","_locale","getDescriptions","element","EmptyContainer","deletion","remove","type","removeObject","REPLACE_TEXT","set","removeEmptyContainer","item","*Merge:* %0","isEmpty","nextSibling","isObject","checkChild","indexOf","previousSibling","removeContainer","elementEnd"];var es,ns;es=ts,ns=151,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("0x2")]=[],this._itemLabels=new Map,this[os("0x29")]=[],this[os("0x1")]=t,this[os("0x5")]=e}[os("0x6")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x2d")])continue;let s=!1;for(const t of this[os("0x2")]){const n=t(o);if(n){os("0xb")in n&&e[os("0x1e")](n),s=!0;break}}if(!s){this[os("0x36")](e,o);const s=t[n+1];if(s&&!o[os("0x1c")]()[os("0x3a")][os("0x2e")](s.getFirstRange()[os("0x1f")])){const t=e[e[os("0x20")]-1],n="insertion"==o[os("0xb")]?os("0x35"):os("0xa");t&&"text"==t[os("0xb")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this._customCallbacks.push(t)}registerElementLabel(t,n,o=e.priorities[os("0x2c")]){os("0x25")==typeof t?(0,e.insertToPriorityArray)(this[os("0x29")],{matchingCallback:t,label:n,priority:o}):this[os("0x27")][os("0xe")](t,n)}[os("0x34")](t,e=1){let n;for(const e of this[os("0x29")])if(e[os("0x30")](t)){n=e[os("0x24")];break}return n||(n=this._itemLabels[os("0x3")](t[os("0x39")])),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}[os("0x36")](t,e){const n=e[os("0x1c")]().getWalker(),o=os("0x33")==e[os("0xb")]?os("0x35"):os("0xa");for(const e of n){const s=e[os("0x10")],r=t[t.length-1];if(s.is(os("0x28")))r&&r[os("0xb")][os("0x16")](os("0x1b"))>-1&&t.pop(),r&&"text"==r[os("0xb")]?r[o]+=s[os("0x22")]:t[os("0x1e")]({type:"text",add:"add"==o?s.data:"",remove:"remove"==o?s.data:""});else if(this._schema.isObject(s)){const i=s;if(r&&r[os("0xb")][os("0x16")](os("0x1b"))>-1&&t.pop(),os("0x19")==e[os("0xb")])continue;r&&r[os("0xb")]==o+"Object"&&r[os("0x7")].name==i[os("0x39")]?r[os("0x2f")]++:t[os("0x1e")]({type:o+os("0x37"),element:i,quantity:1}),n[os("0x0")]((t=>!("elementEnd"==t[os("0xb")]&&t[os("0x10")]==s)))}else if(this[os("0x1")][os("0x15")](s,os("0x2a"))||s.is("element",os("0x38"))){const n=s;if(os("0x35")==o&&"elementStart"==e[os("0xb")]||"remove"==o&&os("0x19")==e[os("0xb")])continue;if(r&&-1==r.type[os("0x16")](os("0x1b"))){os("0x1a")==r[os("0xb")]&&(r[o]+="\n");continue}let i;if(i="add"==o?n[os("0x13")]&&!this[os("0x1")].isObject(n.nextSibling)?n[os("0x13")]:null:n[os("0x17")]&&!this[os("0x1")][os("0x14")](n[os("0x17")])?n[os("0x17")]:null,n[os("0x12")]||i&&i[os("0x12")]){const e=i&&i[os("0x12")]?i:n;r&&r.type==o+os("0x8")&&r.element[os("0x39")]==e[os("0x39")]?r[os("0x2f")]++:t[os("0x1e")]({type:o+os("0x8"),element:e,quantity:1})}else t[os("0x1e")]({type:o+os("0x1b"),element:n})}}}[os("0x4")](t){const e=this[os("0x5")],n=[];for(const o of t){switch(o[os("0xb")]){case os("0x1a"):if(o[os("0x35")]=o[os("0x35")][os("0x26")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0x26")](/\u000A/g,""),o[os("0xa")]=o[os("0xa")][os("0x26")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0x26")](/\u000A/g,""),""!=o[os("0x35")]&&""!=o[os("0xa")]){n[os("0x1e")]({type:os("0x26"),content:Yo(e,os("0xd"),['"'+o[os("0xa")]+'"','"'+o[os("0x35")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0x1e")]({type:os("0x33"),content:Yo(e,os("0x1d"),Yo(e,os("0x2b"),o[os("0x35")].length))});continue}if(null!=o[os("0xa")].match(/^ +$/)){n[os("0x1e")]({type:os("0x9"),content:Yo(e,os("0x32"),Yo(e,os("0x2b"),o[os("0xa")][os("0x20")]))});continue}if(""!=o[os("0x35")]){n[os("0x1e")]({type:os("0x33"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x35")]+'"')});continue}n.push({type:os("0x9"),content:Yo(e,os("0x32"),'"'+o.remove+'"')});continue;case os("0x31"):case os("0x23"):n[os("0x1e")]({type:"insertion",content:Yo(e,"*Insert:* %0",this[os("0x34")](o[os("0x7")],o.quantity))});continue;case os("0xf"):case os("0xc"):n[os("0x1e")]({type:os("0x9"),content:Yo(e,os("0x32"),this[os("0x34")](o[os("0x7")],o[os("0x2f")]))});continue;case"addContainer":n[os("0x1e")]({type:"insertion",content:Yo(e,"*Split:* %0",this.getItemLabel(o[os("0x7")],o[os("0x2f")]))});continue;case os("0x18"):n[os("0x1e")]({type:"deletion",content:Yo(e,os("0x11"),this[os("0x34")](o[os("0x7")],o.quantity))});continue}n[os("0x1e")](o)}return n}}const rs=["*Format:* %0","registerDescriptionCallback","_descriptionFactory","AlignmentEditing","value","has","model","right","plugins","contentLanguageDirection","document","from","locale","justify","change","getSelectedBlocks","alignment","FORMAT_ALIGN_TO_CENTER","markBlockFormat","left","schema","editor","getAttribute","FORMAT_ALIGN_TO_LEFT","commandParams","filter","get","afterInit","format"];var is,xs;is=rs,xs=314,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x3")](){const t=this.editor,e=t.locale;if(!t[as("0xd")][as("0xa")](as("0x8")))return;const n=t.plugins[as("0x2")]("TrackChangesEditing");n.enableCommand("alignment",((e,o={})=>{let s=o.value;o[as("0x9")]||(s="ltr"===t[as("0x11")][as("0xe")]?as("0x18"):as("0xc"));const r=Array[as("0x10")](this[as("0x1a")][as("0xb")][as("0xf")].selection[as("0x14")]())[as("0x1")]((t=>function(t,e,n){const o=t[as("0x1b")](as("0x15"))||null;return e.checkAttribute(t,as("0x15"))&&n!=o}(t,this[as("0x1a")][as("0xb")][as("0x19")],s)));t[as("0xb")][as("0x13")]((()=>{for(const t of r)n[as("0x17")](t,{commandName:as("0x15"),commandParams:[{value:s}]})}))})),n[as("0x7")][as("0x6")]((t=>{const{data:n}=t;if(n&&as("0x15")==n.commandName){const t=n[as("0x0")][0][as("0x9")];return{type:as("0x4"),content:Yo(e,as("0x5"),function(t){switch(t){case"left":return Yo(e,as("0x1c"));case as("0xc"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case"center":return Yo(e,as("0x16"));case as("0x12"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["createRangeOn","previousPosition","addHighlight","writer","span","isBlock","listIndent","schema","nextSibling","ck-suggestion-marker--active","listItem","getItems","getWalker","insert","getCustomProperty","isLimit","toViewElement","model","createUIElement","consumable","hasAttribute","parent","ck-suggestion-marker-","getAttribute","push","get","TrackChangesEditing","start","activeMarkers","elementEnd","isAtEnd","isContent","markerRange","type","includes","markerName","addClass","bindElementToMarker","toViewPosition","mapper","element"];var ds,us;ds=ls,us=159,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("0x10")]())s[gs("0x19")](t)&&o[gs("0x1d")](n[gs("0x5")](s));return o}function fs(t){const e=[];if(t.is(gs("0x4"),gs("0xf"))){let n=t[gs("0xd")];for(;n&&n.is(gs("0x4"),gs("0xf"))&&n[gs("0x1c")](gs("0xb"))>0;)e[gs("0x1d")](n),n=n[gs("0xd")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x1e")](gs("0x1f"));return(s,r,i)=>{if(!i[gs("0x18")].test(r[gs("0x25")],s.name))return;const x=r[gs("0x25")][gs("0x11")](),a=r[gs("0x25")][gs("0x20")],c=t[gs("0x16")][gs("0xc")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0x24")](e);const n=i[gs("0x3")][gs("0x15")](e);if(n&&n[gs("0x13")](gs("0x7")))return;gs("0x22")==t[gs("0x26")]&&c[gs("0xa")](e)&&!c[gs("0x14")](e)&&(e[gs("0xd")]||a[gs("0x23")]?l&&l[gs("0x1a")]==e||(l=e,m(t[gs("0x6")]),g=!0):d=d||t[gs("0x6")])}function m(t){const s=i.writer[gs("0x17")](gs("0x9"),{class:gs("0x1b")+e}),x=i[gs("0x3")][gs("0x2")](t);n&&o[gs("0x21")][gs("0x27")](r[gs("0x28")])&&i[gs("0x8")][gs("0x0")](gs("0xe"),s),i.writer[gs("0x12")](x,s),i[gs("0x3")][gs("0x1")](s,r[gs("0x28")])}u||g||!d||m(d)}}const ps=["editor","subscript","code","*Format:* %0","underline","format","CodeEditing","registerDescriptionCallback","_descriptionFactory","commandParams","enableCommand","BoldEditing","FORMAT_SUBSCRIPT","FORMAT_ITALIC","commands","UnderlineEditing","get","afterInit","FORMAT_CODE","document","forceValue","FORMAT_UNDERLINE","value","has","superscript","locale","model","bold","FORMAT_SUPERSCRIPT","change","isCollapsed","selection"];var bs,Es;bs=ps,Es=394,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x1"),"ItalicEditing",_s("0x5"),_s("0x1c"),"StrikethroughEditing","SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0x7")](){const t=this[_s("0x16")],e=t[_s("0x10")],n=t.plugins[_s("0x6")]("TrackChangesEditing"),o=t[_s("0xf")];for(const o of Ts){if(!t.plugins[_s("0xd")](o))continue;const s=o.slice(0,-7).toLowerCase(),r=t[_s("0x4")][_s("0x6")](s);n[_s("0x0")](s,((t,o={})=>{const i=e[_s("0x9")][_s("0x15")];if(i[_s("0x14")])return void t(o);const x=void 0!==o.forceValue?o[_s("0xa")]:!r[_s("0xc")];e[_s("0x13")]((()=>{const t=Array.from(i.getRanges());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("0x1e")][_s("0x1d")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x1f")][0][_s("0xa")]?{type:"format",content:Yo(o,_s("0x19"),e)}:{type:_s("0x1b"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x11"),Yo(o,"FORMAT_BOLD")),s("italic",Yo(o,_s("0x3"))),s(_s("0x1a"),Yo(o,_s("0xb"))),s(_s("0x18"),Yo(o,_s("0x8"))),s("strikethrough",Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x17"),Yo(o,_s("0x2"))),s(_s("0xe"),Yo(o,_s("0x12")))}}const ys=["value","has","from","commands","document","getSelectedBlocks","filter","selection","afterInit","checkChild","locale","change","forceValue","schema","_descriptionFactory","ELEMENT_BLOCK_QUOTE","editor","plugins","format","commandParams","BlockQuoteEditing","*Remove format:* %0","markBlockFormat","blockQuote","parent","registerDescriptionCallback","model"];var ks,As;ks=ys,As=311,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x15")](){const t=this[vs("0x2")],e=t[vs("0x17")];if(!t[vs("0x3")][vs("0xe")](vs("0x6")))return;const n=t[vs("0x3")].get("TrackChangesEditing"),o=this[vs("0x2")][vs("0x10")].get(vs("0x9"));n.enableCommand(vs("0x9"),((e,s={})=>{const r=this[vs("0x2")].model[vs("0x11")][vs("0x14")],i=s&&void 0!==s[vs("0x19")]?s.forceValue:!o[vs("0xd")];let x=[];if(i){const e=Array[vs("0xf")](r.getSelectedBlocks())[vs("0x13")]((t=>Ss(t)||function(t,e){const n=e[vs("0x16")](t[vs("0xa")],vs("0x9")),o=e.checkChild(["$root",vs("0x9")],t);return n&&o}(t,this[vs("0x2")][vs("0xc")][vs("0x1a")])));x=S(e,t.model)}else{const e=Array[vs("0xf")](r[vs("0x12")]())[vs("0x13")]((t=>Ss(t)));x=S(e,t[vs("0xc")])}t.model[vs("0x18")]((()=>{for(const t of x)n[vs("0x8")](t,{commandName:vs("0x9"),commandParams:[{forceValue:i}]})}))})),n[vs("0x0")][vs("0xb")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n.commandName){const t=Yo(e,vs("0x1"));return n[vs("0x5")][0][vs("0x19")]?{type:vs("0x4"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0x4"),content:Yo(e,vs("0x7"),t)}}}))}}function Ss(t){return"blockQuote"==t.parent.name}const Is=["editor","TrackChangesEditing","ckbox","enableCommand","afterInit","plugins","get"];var Ls,Ns;Ls=Is,Ns=225,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("0x6")];t.commands[Ms("0x5")](Ms("0x1"))&&t[Ms("0x4")].get(Ms("0x0"))[Ms("0x2")](Ms("0x1"))}}const Os=["name","config","afterInit","commands","editor","indentCodeBlock","change","get","language","enableCommand","registerDescriptionCallback","formatBlock","CodeBlock","format","forceValue","TrackChangesEditing","markBlockFormat","label","locale","_descriptionFactory","rootElement","getSelectedBlocks","model","filter","value","*Format:* %0","blockName","codeBlock","*Remove format:* %0","plugins","isLimit","has","ELEMENT_CODE_BLOCK","find","parent","from","commandName","schema","outdentCodeBlock","commandParams"];var Fs,Ps;Fs=Os,Ps=400,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x2")](){const t=this[Ds("0x4")];if(!t.plugins[Ds("0x1f")](Ds("0xc")))return;const e=t[Ds("0x1d")][Ds("0x7")](Ds("0xf")),n=t[Ds("0x12")],o=t[Ds("0x1")].get("codeBlock").languages,s=t[Ds("0x3")][Ds("0x7")](Ds("0x1b"));e[Ds("0x9")](Ds("0x5")),e[Ds("0x9")](Ds("0x26")),e[Ds("0x9")](Ds("0x1b"),((n,r={})=>{const i=t[Ds("0x16")],x=t[Ds("0x16")].document.selection,a=r&&void 0!==r[Ds("0xe")]?r[Ds("0xe")]:!s[Ds("0x18")];let c;r[Ds("0x8")]||(r[Ds("0x8")]=o[0][Ds("0x8")]),c=a?Array[Ds("0x23")](x[Ds("0x15")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x25")],!e.is(Ds("0x14"))&&!n[Ds("0x1e")](e)&&n.checkChild(e[Ds("0x22")],"codeBlock"));var e,n})):Array[Ds("0x23")](x.getSelectedBlocks())[Ds("0x17")]((t=>js(t)));const l=S(c,i);i[Ds("0x6")]((()=>{for(const t of l)e[Ds("0x10")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1a")})}))})),e[Ds("0x13")].registerElementLabel(Ds("0x1b"),(t=>Yo(n,Ds("0x20"),t))),e[Ds("0x13")][Ds("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xb")==s&&r&&Ds("0x1b")==r[Ds("0x24")]){const t=r[Ds("0x27")][0][Ds("0x8")],s=e(o[Ds("0x21")]((e=>e[Ds("0x8")]===t))[Ds("0x11")]);return r[Ds("0x27")][0][Ds("0xe")]?{type:Ds("0xd"),content:Yo(n,Ds("0x19"),Yo(n,Ds("0x20"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0x1c"),Yo(n,Ds("0x20"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x0")]}const Us=["plugins","editor","get","afterInit","TrackChangesEditing","enableCommand","CommentsEditing","addCommentThread"];var Gs,Hs;Gs=Us,Hs=318,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x5")](){const t=this[zs("0x3")];t.plugins.has(zs("0x0"))&&t[zs("0x2")][zs("0x4")](zs("0x6"))[zs("0x7")](zs("0x1"))}}var Vs=n(181);const Ks=["root","requires","forward","uiElement","get","editor","high","options","buffer","delete","merge","removeMarker:suggestion:deletion","unit","init","start","enqueueChange","deleteForward","enableCommand","remove","modifySelection","plugins","selection","unbindElementFromMarkerName","document","showSuggestionHighlights","downcastDispatcher","markerNameToElements","createSelection","isCollapsed","detach","commands","markerName","end","rootName","writer","lock","bind","addMarker:suggestion:deletion","setSelection","createRange","model","editing","mapper"];var qs,Xs;qs=Ks,Xs=438,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("0x24")](){return[Vs.Delete]}[$s("0x5")](){const t=this[$s("0x28")],e=t[$s("0xc")][$s("0x27")]("TrackChangesEditing");e[$s("0x9")]($s("0x1"));const n=t[$s("0x16")].get("deleteForward");e.enableCommand($s("0x8"),((e,o={})=>{const s=t[$s("0x20")][$s("0x13")](t[$s("0x20")][$s("0xf")][$s("0xd")]);s[$s("0x14")]&&t[$s("0x20")][$s("0xb")](s,{direction:$s("0x25"),unit:o[$s("0x4")]});const r=s.getFirstRange(),x=i.LiveRange.fromRange(r);let a;e(o),a="$graveyard"==x[$s("0x23")][$s("0x19")]?t.model[$s("0x1f")](r[$s("0x6")]):t[$s("0x20")].createRange(x.start,x[$s("0x18")]),x[$s("0x15")](),t[$s("0x20")][$s("0x7")](n[$s("0x0")].batch,(t=>{n.buffer[$s("0x1b")](),t[$s("0x1e")](t[$s("0x1f")](a[$s("0x18")])),n[$s("0x0")].unlock()}))})),t[$s("0x21")].downcastDispatcher.on("addMarker:suggestion:deletion",hs(t,$s("0x2")),{priority:$s("0x29")}),t.data.downcastDispatcher.on($s("0x1d"),((e,n,o)=>{o[$s("0x2a")][$s("0x10")]&&hs(t,$s("0x2"),{showActiveMarker:!1})[$s("0x1c")](this)(e,n,o)}),{priority:$s("0x29")}),t.editing[$s("0x11")].on($s("0x3"),((t,e,n)=>{const o=n[$s("0x22")][$s("0x12")](e[$s("0x17")]);if(o)for(const t of o)t.is($s("0x26"))&&(n[$s("0x22")][$s("0xe")](t,e.markerName),n[$s("0x1a")][$s("0xa")](t))}),{priority:"high"})}}const Qs=["listItemId","createPositionAt","registerCustomCallback","getFirstRange","format","*Outdent:* %0","accept","documentList","detach","createRange","afterInit","from","length","toUpperCase","end","plugins","expandListBlocksToCompleteList","selection","*Change to:* %0","ELEMENT_BULLETED_LIST","push","isObject","*Format:* remove from %0","bulletedList","*Merge:* %0","after","nodeAfter","deletion","value","isFirstBlockOfListItem","setSelection","commandName","ELEMENT_NUMBERED_LIST","indentList","editor","schema","ELEMENT_","DocumentListEditing","has","formatBlock","before","add","commandParams","findIndex","model","getRanges","TrackChangesEditing","slice","enableCommand","refresh","forceValue","outdentList","splitListItemBefore","getAttribute","ELEMENT_LIST_ITEM","document","_descriptionFactory","listIndent","numberedList","nextSibling","splitListItemAfter","*Format:* insert into %0","markBlockFormat","commands","mergeListItemBackward","listType","mergeListItemForward","markMultiRangeBlockFormat","start","change","previousSibling","getSelectedBlocks","registerDescriptionCallback","get"];var Zs,Ys;Zs=Qs,Ys=348,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x20")](){const t=this[tr("0x38")];if(!t[tr("0x25")][tr("0x3c")](tr("0x3b")))return;const e=t.locale,n=t[tr("0x25")][tr("0x15")](tr("0x44")),o=t.plugins[tr("0x15")]("DocumentListUtils");function s(e){return()=>{const s=t[tr("0xb")][tr("0x15")](e);let r=Array[tr("0x21")](t[tr("0x42")].document[tr("0x27")][tr("0x13")]());if(a(e)){r=o[tr("0x26")](r);const t=[];for(const e of r)o[tr("0x33")](e)&&t.push(e);r=t}t[tr("0x42")][tr("0x11")]((()=>{n[tr("0xf")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x32")]}],formatGroupId:"listType"},[],tr("0x1d"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x21")](t);const n=e[tr("0x41")]((t=>!t.hasAttribute(tr("0x16"))));return n>-1&&(e=e[tr("0x45")](0,n)),e}(t[tr("0x42")][tr("0x3")][tr("0x27")][tr("0x13")]()),s=o[o[tr("0x22")]-1],r=t[tr("0x42")][tr("0x39")].isObject(s)?tr("0x2f"):"end",i=t.model[tr("0x1f")](t[tr("0x42")].createPositionAt(o[0],"before"),t[tr("0x42")][tr("0x17")](s,r));t[tr("0x42")].change((()=>{n[tr("0xa")](i,{commandName:e,commandParams:[],formatGroupId:tr("0xd")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x1")](tr("0x5"))>n.getAttribute(tr("0x5"));)e[tr("0x3f")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x3")].selection.getSelectedBlocks().next()[tr("0x32")],s=t[tr("0x42")][tr("0x17")](o,tr("0x3e")),r=t.model.createPositionAt(o,0),i=t[tr("0x42")].createRange(s,r);t[tr("0x42")][tr("0x11")]((()=>{n[tr("0xa")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0xb")][tr("0x15")](tr("0x2d"))[tr("0x32")],o=t[tr("0xb")][tr("0x15")](tr("0x6"))[tr("0x32")];return tr("0x6")===e?n:o}n[tr("0x46")](tr("0x6"),s(tr("0x6"))),n.enableCommand(tr("0x2d"),s(tr("0x2d"))),n[tr("0x46")](tr("0x37"),r("indentList")),n.enableCommand(tr("0x49"),r("outdentList")),n[tr("0x46")](tr("0x8"),x(tr("0x8"))),n.enableCommand(tr("0x0"),x(tr("0x0"))),n._descriptionFactory.registerElementLabel((function(e){const n=!t[tr("0x42")].schema[tr("0x2b")](e),o=e[tr("0x12")],s=e[tr("0x7")],r=e[tr("0x1")]("listItemId"),i=!o||o[tr("0x1")](tr("0x16"))!==r,x=!s||s.getAttribute(tr("0x16"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x2"),t))),n[tr("0x4")][tr("0x14")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case"bulletedList":r=n[tr("0x40")][0].forceValue,i=a(n[tr("0x35")]),o=tr(r?"0x9":"0x2c"),i&&(o=tr("0x28")),s={type:tr("0x1a"),content:Yo(e,o,Yo(e,tr("0x29")))};break;case tr("0x6"):r=n.commandParams[0][tr("0x48")],i=a(n[tr("0x35")]),o=tr(r?"0x9":"0x2c"),i&&(o=tr("0x28")),s={type:tr("0x1a"),content:Yo(e,o,Yo(e,tr("0x36")))};break;case"indentList":o="*Indent:* %0",s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case tr("0x49"):o=function(t){const e=t[tr("0x19")]();let n=e[tr("0x10")][tr("0x30")];for(;n&&e.containsItem(n);){if(n.getAttribute(tr("0x5"))>0)return!1;n=n[tr("0x7")]}return!0}(t)?Yo(e,tr("0x2c"),Yo(e,function(t){const e=t[tr("0x19")]().start[tr("0x30")];return tr("0x3a")+e[tr("0x1")](tr("0xd"))[tr("0x23")]()+"_LIST"}(t))):Yo(e,tr("0x1b"),Yo(e,tr("0x2"))),s={type:"format",content:o};break;case tr("0xc"):case tr("0xe"):!1===n.multipleBlocks&&(o=tr("0x2e"),s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x2")))})}return s})),n._suggestionFactory[tr("0x18")](tr("0x3d"),"documentList",tr("0x1c"),(function(e,n){const o=[];for(let n of e)n[tr("0x10")][tr("0x30")]===n[tr("0x24")].parent&&(n=t.model[tr("0x1f")](t[tr("0x42")].createPositionAt(n[tr("0x10")][tr("0x30")],0))),o.push(n);t.model[tr("0x11")]((e=>{const s=t[tr("0x42")].document.selection,r=Array.from(s[tr("0x43")]()).map((t=>i.LiveRange.fromRange(t)));e[tr("0x34")](o),t[tr("0xb")][tr("0x15")](n[tr("0x35")])[tr("0x47")](),n[tr("0x40")][tr("0x2a")]({forceDefaultExecution:!0}),t.execute(n[tr("0x35")],...n[tr("0x40")]),e.setSelection(r);for(const t of r)t[tr("0x1e")]()}))}))}}var nr=n(331);const or=["getFirstPosition","enableCommand","model","remove","editing","enter","hasClass","markerName","createRange","removeMarker:suggestion:insertion","get","data","unbindElementFromMarkerName","markerNameToElements","requires","options","change","end","bind","selection","addMarker:suggestion:insertion","afterExecute","fire","nextSibling","high","enterBlock","TrackChangesEditing","downcastDispatcher","split","parent","writer","init","mapper","setSelection","createPositionAt","getFirstRange","commands","plugins"];var sr,rr;sr=or,rr=121,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("0x7")](){return[nr.Enter]}[ir("0x18")](){const t=this.editor,e=t[ir("0x1e")][ir("0x3")](ir("0x13")),n=t[ir("0x1d")][ir("0x3")]("enter");e[ir("0x20")](ir("0x24"),(()=>{t.model[ir("0x9")]((o=>{const s=t[ir("0x21")].document[ir("0xc")],r=s[ir("0x1f")](),x=i.LiveRange.fromRange(s[ir("0x1c")]());if(n[ir("0x12")](o)){const n=t.model[ir("0x1b")](r[ir("0x16")][ir("0x10")],0),s=o[ir("0x1")](r,n);e.markInsertion(s)}else o[ir("0x1a")](o[ir("0x1")](x[ir("0xa")]));x.detach(),n[ir("0xf")](ir("0xe"),{writer:o})}))})),t[ir("0x23")].downcastDispatcher.on(ir("0xd"),hs(t,ir("0x15")),{priority:ir("0x11")}),t[ir("0x23")][ir("0x14")].on(ir("0x2"),((t,e,n)=>{const o=n[ir("0x19")][ir("0x6")](e.markerName);if(o)for(const t of o)t[ir("0x25")]("ck-suggestion-marker-split")&&(n[ir("0x19")][ir("0x5")](t,e[ir("0x0")]),n[ir("0x17")][ir("0x22")](t))}),{priority:"high"}),t[ir("0x4")][ir("0x14")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x8")].showSuggestionHighlights&&hs(t,"split",{showActiveMarker:!1})[ir("0xb")](this)(e,n,o)}),{priority:ir("0x11")})}}const ar=["handleFindCommand","editor","bind","FindAndReplaceEditing","FindAndReplaceUtils","model","TrackChangesEditing","plugins","_isInDeletionRange","replaceAll","getMarkersGroup","replace","findNext","filter","item","string","afterInit","findPrevious","getIntersection","createPositionAt","enableCommand","markers","end","get"];var cr,lr;cr=ar,lr=340,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0xc")](){if(!this.editor[dr("0x3")].has(dr("0x17")))return;const t=this[dr("0x15")][dr("0x3")][dr("0x13")](dr("0x2"));t[dr("0x10")]("find",this[dr("0x14")][dr("0x16")](this)),t[dr("0x10")](dr("0x8")),t[dr("0x10")](dr("0xd")),t[dr("0x10")](dr("0x7")),t[dr("0x10")](dr("0x5"))}[dr("0x14")](t,e,n={}){const o=this[dr("0x15")].plugins[dr("0x13")](dr("0x0"));void 0!==n&&t((t=>(dr("0xb")==typeof e?o.findByTextCallback(e,n):e)(t)[dr("0x9")]((e=>!1===this[dr("0x4")](e,t[dr("0xa")])))),n)}_isInDeletionRange(t,e){const n=this.editor.model.createRange(this.editor[dr("0x1")][dr("0xf")](e,t.start),this[dr("0x15")][dr("0x1")][dr("0xf")](e,t[dr("0x12")]));for(const t of this.editor.model[dr("0x11")][dr("0x6")]("suggestion:deletion"))if(null!==n[dr("0xe")](t.getRange()))return!0;return!1}}const gr=["normalizeSizeOptions","get","toLowerCase","fontSize.options","FontSizeEditing","getRanges","from","FontBackgroundColorEditing","title","afterInit","fontBackgroundColor","_descriptionFactory","fontColor.colors","model","fontSize","editor","*Set font size:* %0","commandParams","*Reset font size*","*Reset font family*","locale","fontColor","*Set font background color:* %0","label","plugins","*Reset font background color*","trim","_enableCommand","find","document","format","FontFamilyEditing","change","value","enableCommand","registerDescriptionCallback","*Set font family:* %0","fontFamily","config","FontSize","commandName","selection","TrackChangesEditing"];var mr,fr;mr=gr,fr=490,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1e"),commandName:hr("0x28")},{pluginName:hr("0xe"),commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:hr("0x4")},{pluginName:hr("0x21"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x23")](){const t=this.editor[hr("0x3")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x29")].plugins.has(t)&&this[hr("0xa")](e);this[hr("0x29")][hr("0x7")][hr("0x1b")]("TrackChangesEditing")[hr("0x25")][hr("0x12")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x28")==o[hr("0x17")]){const e=o[hr("0x0")][0][hr("0x10")];if(e){const o=n(this[hr("0x29")][hr("0x7")][hr("0x1b")](hr("0x16"))[hr("0x1a")](this[hr("0x29")][hr("0x15")].get(hr("0x1d")))[hr("0xb")]((t=>t.model==e))[hr("0x22")])[hr("0x1c")]();return{type:"format",content:Yo(t,hr("0x2a"),o)}}return{type:hr("0xd"),content:Yo(t,hr("0x1"))}}if(hr("0x14")==o[hr("0x17")]){const e=o[hr("0x0")][0][hr("0x10")];return e?{type:hr("0xd"),content:Yo(t,hr("0x13"),e)}:{type:hr("0xd"),content:Yo(t,hr("0x2"))}}if(hr("0x4")==o[hr("0x17")]){const e=o.commandParams[0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x29")].config[hr("0x1b")](hr("0x26"))).find((t=>t[hr("0x27")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r).toLowerCase()),{type:hr("0xd"),content:Yo(t,"*Set font color:* %0",i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0xd"),content:Yo(t,"*Reset font color*")}}if(hr("0x24")==o[hr("0x17")]){const e=o.commandParams[0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x29")][hr("0x15")][hr("0x1b")]("fontBackgroundColor.colors"))[hr("0xb")]((t=>t[hr("0x27")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r)[hr("0x1c")]()),{type:hr("0xd"),content:Yo(t,hr("0x5"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0xd"),content:Yo(t,hr("0x8"))}}}}))}[hr("0xa")](t){const e=this.editor;e[hr("0x7")].get("TrackChangesEditing")[hr("0x11")](t,((n,o={})=>{const s=e[hr("0x27")][hr("0xc")][hr("0x18")],r=o[hr("0x10")];s.isCollapsed?n(o):e.model[hr("0xf")]((()=>{const n=Array[hr("0x20")](s[hr("0x1f")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x27")]);for(const o of n)e[hr("0x7")].get(hr("0x19")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["length","selection","_descriptionFactory","copyFormat","boolean","getSelectedBlocks","normalizeSizeOptions","locale","pasteFormat","charAt","config","keys","isFormatting","fontSize.options","markInlineFormat","getRanges","toLowerCase","from","editor","fontColor","*Set format to:* %0","isBlock","modifySelection","model","split","getAttributes","TrackChangesEditing","word","*Remove all formatting*","forward","commands","plugins","registerDescriptionCallback","title","fontBackgroundColor","getFirstPosition","afterInit","schema","createSelection","enableCommand","push","get","entries","toUpperCase","join","format","change"];var _r,Tr;_r=Er,Tr=409,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x3")](){const t=this[Cr("0x20")],n=t[Cr("0x25")],o=n.document[Cr("0xf")],s=t[Cr("0x2d")][Cr("0x8")](Cr("0x28")),r=t[Cr("0x15")],i=t[Cr("0x2c")].get("copyFormat"),x=t[Cr("0x2c")][Cr("0x8")](Cr("0x16"));i&&x&&(s[Cr("0x6")](Cr("0x16"),((t,r={})=>{const i=r;n[Cr("0xd")]((()=>{const t=Array[Cr("0x1f")](o[Cr("0x1d")]()),r=o.isCollapsed?[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("0x27")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0x1a")]&&(yield n)}}(t,n));for(const e of t[Cr("0x1d")]())for(const t of e.getItems())!n[Cr("0x23")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x13")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x4")]))||0!==Object[Cr("0x19")](i)[Cr("0xe")])for(const t of r)s[Cr("0x1c")](t,{commandName:Cr("0x16"),commandParams:[i]})}))})),s[Cr("0x10")][Cr("0x2e")]((e=>{const{data:n}=e;if(n&&Cr("0x16")===n.commandName){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x9")](o))e[Cr("0x7")](Ar(t,n,s));return e.length?{type:Cr("0xc"),content:Yo(r,Cr("0x22"),e.join(", "))}:{type:Cr("0xc"),content:Yo(r,Cr("0x2a"))}}})),t[Cr("0x2d")][Cr("0x8")](Cr("0x28"))[Cr("0x6")](Cr("0x11")))}}function kr(t,e){const n=t[Cr("0x5")](e);t.modifySelection(n,{unit:Cr("0x29"),direction:"backward"});const o=n[Cr("0x2")]();t[Cr("0x24")](n,{unit:Cr("0x29"),direction:Cr("0x2b")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x15")].t,r=e[Cr("0x26")](/(?=[A-Z])/)[Cr("0xb")](" "),i=o(r[Cr("0x17")](0)[Cr("0xa")]()+r.slice(1))[Cr("0x1e")]();if(Cr("0x12")==typeof n)return i;if(Cr("0x21")===e||Cr("0x1")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x18")][Cr("0x8")]("fontColor.colors")).find((t=>t.model==n));return i+" ("+(e?o(e.label)[Cr("0x1e")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x2d")][Cr("0x8")]("FontSize")[Cr("0x14")](t[Cr("0x18")][Cr("0x8")](Cr("0x1b"))).find((t=>t[Cr("0x25")]==n));return i+" ("+(e?o(e[Cr("0x0")])[Cr("0x1e")]():n)+")"}return i+" ("+n+")"}const vr=["filter","selection","format","value","schema","TrackChangesEditing","registerDescriptionCallback","formatBlock","model","isObject","from","enableCommand","plugins","commandParams","registerElementLabel","document","get","_descriptionFactory","afterInit","blockName","match","name","*Change to:* %0","heading.options","getSelectedBlocks","title","paragraph","checkChild","find","heading","editor","config"];var Rr,Sr;Rr=vr,Sr=382,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x14")](){const t=this.editor,e=t.locale,n=t[Ir("0x1")][Ir("0x12")](Ir("0x19"));if(!t[Ir("0xe")].has("HeadingEditing"))return;const o=t.plugins.get(Ir("0x7"));o[Ir("0xd")](Ir("0x1f"),((e,n)=>{const s=n[Ir("0x5")],r=Array[Ir("0xc")](this[Ir("0x0")].model[Ir("0x11")][Ir("0x3")][Ir("0x1a")]())[Ir("0x2")]((t=>{return e=t,n=s,(o=this[Ir("0x0")][Ir("0xa")][Ir("0x6")])[Ir("0x1d")](e.parent,n)&&!o[Ir("0xb")](e)&&e[Ir("0x17")]!=n;var e,n,o}));t[Ir("0xa")].change((()=>{for(const t of r)o.markBlockFormat(t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x15")},fs(t))}))}));for(const t of n)Ir("0x1c")!=t[Ir("0xa")]&&o[Ir("0x13")][Ir("0x10")](t[Ir("0xa")],(e=>{const n=Nr(t[Ir("0xa")]);return null!==n?s(e,n):r(e,t[Ir("0x1b")])}));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("0x13")][Ir("0x8")]((t=>{const{type:o,data:i}=t;if(Ir("0x9")==o&&i&&"heading"==i.commandName){const t=i[Ir("0xf")][0][Ir("0x5")],o=Nr(t);if(null!==o)return{type:Ir("0x4"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Ir("0x1e")]((e=>e[Ir("0xa")]===t))[Ir("0x1b")];return{type:Ir("0x4"),content:Yo(e,Ir("0x18"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x16")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["*Set highlight:* %0","registerDescriptionCallback","document","change","getFirstPosition","plugins","highlight.options","has","highlight","value","FORMAT_HIGHLIGHT","getAttribute","item","editor","format","backward","afterInit","_descriptionFactory","color","formatInline","get","isCollapsed","getLastMatchingPosition","commandParams","config","selection","push","find","model","commandName","title","*Remove highlight*","locale","createRange","markInlineFormat","hasAttribute"];var wr,Or;wr=Mr,Or=130,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x1e")](){const t=this[Fr("0x1b")];if(!t[Fr("0x13")][Fr("0x15")]("HighlightEditing"))return;const e=t[Fr("0x13")][Fr("0x22")]("TrackChangesEditing");e.enableCommand(Fr("0x16"),((n,o={})=>{const s=t[Fr("0x6")][Fr("0x10")][Fr("0x3")],r=s[Fr("0x19")](Fr("0x16"));let i=o[Fr("0x17")],x=[];if(s[Fr("0x23")]){const e=s[Fr("0x12")]();if(!s[Fr("0xd")](Fr("0x16")))return void n(o);{const n=t=>t[Fr("0x1a")][Fr("0x19")](Fr("0x16"))===r,o=e[Fr("0x0")](n,{direction:Fr("0x1d")}),s=e[Fr("0x0")](n);x=[t[Fr("0x6")][Fr("0xb")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x.push(e):x[Fr("0x4")](...ms(Fr("0x16"),e,t.model));t.model[Fr("0x11")]((()=>{for(const t of x)e[Fr("0xc")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0xa")];e[Fr("0x1f")][Fr("0xf")]((e=>{const{type:o,data:s}=e;if(Fr("0x21")==o&&s&&Fr("0x16")==s[Fr("0x7")]){const e=n.t,o=s[Fr("0x1")][0][Fr("0x17")];if(o){const s=t[Fr("0x2")][Fr("0x22")](Fr("0x14"))[Fr("0x5")]((t=>t[Fr("0x6")]==o)),r=e(s.title).toLowerCase();return{type:Fr("0x1c"),content:Yo(n,Fr("0xe"),r),color:{value:s[Fr("0x20")],title:s[Fr("0x8")]}}}return{type:"format",content:Yo(n,Fr("0x9"),Yo(n,Fr("0x18")))}}}))}}const Dr=["addClass","createEmptyElement","get","for","elementToStructure","showSuggestionHighlights","ck-horizontal-line","locale","insert","conversion","editor","high","horizontalLine","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","createPositionAt","plugins","createContainerElement","HorizontalLineEditing"];var Br,jr;Br=Dr,jr=116,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this[Ur("0x8")];if(!t[Ur("0xe")].has(Ur("0x10")))return;t[Ur("0xe")].get(Ur("0xc")).enableCommand(Ur("0xa"));const e=t[Ur("0xe")][Ur("0x0")](Ur("0xc")),n=t[Ur("0x5")];e._descriptionFactory.registerElementLabel(Ur("0xa"),(t=>Yo(n,Ur("0xb"),t))),t[Ur("0x7")][Ur("0x1")]("dataDowncast")[Ur("0x2")]({model:Ur("0xa"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x3")])return null;const o=e[Ur("0xf")]("div"),s=e[Ur("0x12")]("hr");return e[Ur("0x11")](Ur("0x4"),o),e[Ur("0x6")](e[Ur("0xd")](o,0),s),o},converterPriority:Ur("0x9")})}}const Hr=["element","format","htmlEmbed","model","commandName","*Change %0 content*","afterInit","locale","enableCommand","getCustomProperty","selection","rawHtml","editing","get","has","getSelectedElement","value","view","TrackChangesEditing","editor","ELEMENT_HTML_EMBED","_descriptionFactory","registerDescriptionCallback","plugins"];var zr,Wr;zr=Hr,Wr=336,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x6")](){const t=this[Vr("0x13")];if(!t[Vr("0x17")][Vr("0xe")]("HtmlEmbed"))return;const e=t[Vr("0x17")][Vr("0xd")](Vr("0x12")),n=t[Vr("0x7")],o=t[Vr("0xc")][Vr("0x11")].document[Vr("0xa")];e._descriptionFactory.registerElementLabel(Vr("0xb"),(t=>Yo(n,Vr("0x14"),t))),t[Vr("0x17")][Vr("0xd")]("TrackChangesEditing")[Vr("0x8")](Vr("0x2"),((n,s)=>{const r=t[Vr("0x3")],i=r.document[Vr("0xa")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x0"),Vr("0xb"))?t[Vr("0xf")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x10"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x2"),commandParams:[s]}),o.getSelectedElement()[Vr("0x9")]("rawHtmlApi").cancel())}))})),e[Vr("0x15")][Vr("0x16")]((t=>{const{data:e}=t;if(e&&Vr("0x2")==e[Vr("0x4")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x1"),content:Yo(n,Vr("0x5"),t)}}}))}}const qr=["commandParams","imageStylePostApply","from","imageStyle","start","accept","value","convertBlockImageToInline","imageInline","ELEMENT_INLINE_IMAGE","editor","commandName","model","ImageBlockEditing","createRange","getSuggestions","getCaptionFromImageModelElement","afterInit","format","nodeBefore","hasSuggestion","resizeImage","get","createRangeOn","getNearestSelectionRange","imageCaption","*Reset image width*","find","chain","commands","width","isInlineImage","getContainedElement","removeObject","ImageEditing","subType","getChangedMarkers","_descriptionFactory","element","imageTextAlternative","registerElementLabel","type","getFirstRange","join","head","filter","*Remove image text alternative*","alt","detach","imageStylePreApply","ImageUtils","isBlockImage","ImageUploadEditing","ImageCaptionEditing","markBlockFormat","discardSuggestion","formatInline","selection","uploadImage","change","registerCustomCallback","*Set image text alternative:* %0","imageTypeBlock","getClosestSelectedImageElement","ImageCaptionUtils","_findSuggestions","markDeletion","fromPosition","forward","length","getAttribute","addObject","document","plugins","_suggestionFactory","insertion","isBefore","newRange","forceDefaultExecution","locale","findIndex","imageBlock","caption","getSuggestion","forEach","insertImage","previous","formatBlock","_splitMarkerName","markInlineFormat","side","imageTypeInline","discard","TrackChangesEditing","isEqual","isInContent","*Format:* %0","refresh","isCollapsed","registerPostFixer","newValue","nodeAfter","next","Users","isOwn","ELEMENT_IMAGE","Inline image to block image","markInsertion","toggleImageCaption","schema","toNext","author","hasAttribute","has","normalizedStyles","registerDescriptionCallback","ImageStyleEditing","ELEMENT_CAPTION","enableCommand","Block image to inline image","name","ImageResize","end","convertInlineImageToBlock","getSuggestionCallback"];var Xr,$r;Xr=qr,$r=358,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x22")](){const t=this[Jr("0x1b")];if(!t[Jr("0x5a")][Jr("0x5")](Jr("0x33")))return;const n=t[Jr("0x5a")].get(Jr("0x6e")),o=t.plugins[Jr("0x27")](Jr("0x43")),s={},r=t[Jr("0x60")];if(n[Jr("0xa")](Jr("0x66")),n._descriptionFactory[Jr("0x39")](Jr("0x62"),(t=>Yo(r,Jr("0x7a"),t))),n[Jr("0x36")][Jr("0x39")](Jr("0x19"),(t=>Yo(r,Jr("0x1a"),t))),n[Jr("0x36")].registerElementLabel(Jr("0x63"),(()=>Yo(r,Jr("0x9")))),t.plugins[Jr("0x5")](Jr("0x45"))&&n[Jr("0xa")](Jr("0x4b")),t[Jr("0x5a")][Jr("0x5")](Jr("0x1e"))&&t[Jr("0x5a")][Jr("0x5")]("ImageInlineEditing")&&(n[Jr("0xa")](Jr("0x6c"),((e,s)=>{const r=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]);t[Jr("0x1d")][Jr("0x4c")]((()=>{n[Jr("0x47")](r,{commandName:Jr("0x6c"),commandParams:[s]},[],Jr("0x18"))}))})),n[Jr("0xa")](Jr("0x4f"),((e,s)=>{t[Jr("0x1d")][Jr("0x4c")]((r=>{let x=o[Jr("0x50")](t.model[Jr("0x59")][Jr("0x4a")]),a=r[Jr("0x28")](x);const c=i.LivePosition.fromPosition(a[Jr("0x15")],"toPrevious"),l=i.LivePosition[Jr("0x54")](a[Jr("0xe")],Jr("0x2"));n[Jr("0x5f")]((()=>e(s))),x=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]),a=r[Jr("0x28")](x);const d=r[Jr("0x1f")](c,l);c[Jr("0x41")](),l[Jr("0x41")](),n[Jr("0x47")](x,{commandName:Jr("0x6c"),commandParams:[]},[],"convertInlineImageToBlock"),d[Jr("0x15")].isBefore(a[Jr("0x15")])&&n[Jr("0x7c")](r[Jr("0x1f")](d[Jr("0x15")],a.start),"convertInlineImageToBlock"),a.end[Jr("0x5d")](d[Jr("0xe")])&&n[Jr("0x7c")](r[Jr("0x1f")](a[Jr("0xe")],d[Jr("0xe")]),Jr("0xf"))}))})),n[Jr("0x5b")][Jr("0x4d")]("formatBlock",Jr("0xf"),Jr("0x3c"),(()=>{})),n[Jr("0x5b")].registerCustomCallback("formatBlock",Jr("0xf"),Jr("0x16"),(()=>{})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x68"),Jr("0xf"),Jr("0x6d"),n[Jr("0x5b")][Jr("0x10")]("formatBlock","",Jr("0x16"))),n._suggestionFactory.registerCustomCallback(Jr("0x5c"),Jr("0xf"),Jr("0x3c"),(()=>{})),n[Jr("0x5b")].registerCustomCallback(Jr("0x5c"),Jr("0xf"),Jr("0x6d"),(([e])=>{const o=n[Jr("0x5b")][Jr("0x10")](Jr("0x5c"),"","discard");let s=e.start,r=e.end;const i=t.model[Jr("0x1")][Jr("0x29")](s,"backward"),x=t[Jr("0x1d")][Jr("0x1")][Jr("0x29")](r,Jr("0x55"));i[Jr("0x73")]&&(s=i[Jr("0x15")]),x[Jr("0x73")]&&(r=x[Jr("0xe")]),o([t.model[Jr("0x1f")](s,r)])})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x68"),Jr("0xf"),"chain",c),n[Jr("0x5b")].registerCustomCallback(Jr("0x5c"),Jr("0xf"),"chain",c)),t.plugins.has(Jr("0x46"))&&(n.enableCommand(Jr("0x0"),((e,s)=>{const r=t.plugins[Jr("0x27")](Jr("0x51"));let i=o.getClosestSelectedImageElement(t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]),x=r[Jr("0x21")](i);t.model[Jr("0x4c")]((()=>{if(x)return void n[Jr("0x53")](t[Jr("0x1d")][Jr("0x28")](x));const a=o[Jr("0x44")](i);e(s),i=o[Jr("0x50")](t.model[Jr("0x59")][Jr("0x4a")]),x=r[Jr("0x21")](i),n.markInsertion(t[Jr("0x1d")][Jr("0x28")](x),a?null:Jr("0x2a"))}))})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x5c"),Jr("0x2a"),Jr("0x2d"),c)),t.plugins[Jr("0x5")](Jr("0x8"))){n[Jr("0xa")]("imageStyle",((s,r)=>{const i=t[Jr("0x5a")][Jr("0x27")](Jr("0x78")).me,x=t[Jr("0x2e")].get(Jr("0x14"));let a=o[Jr("0x50")](t.model[Jr("0x59")][Jr("0x4a")]),c=t[Jr("0x1d")][Jr("0x28")](a),l=x[Jr("0x17")];if(l==r[Jr("0x17")])return;const d={commandName:Jr("0x14"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x1d")][Jr("0x4c")]((()=>{if(n[Jr("0x20")]()[Jr("0x3e")]((t=>t.isInContent&&i==t[Jr("0x3")]&&(Jr("0x68")==t[Jr("0x3a")]||"formatInline"==t.type)&&(Jr("0x42")==t[Jr("0x34")]||Jr("0x12")==t[Jr("0x34")])&&t[Jr("0x3b")]()[Jr("0x6f")](c)))[Jr("0x65")]((t=>n[Jr("0x48")](t[Jr("0x3d")]))),a=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")].selection),c=t[Jr("0x1d")][Jr("0x28")](a),x[Jr("0x72")](),t[Jr("0x2e")][Jr("0x27")](Jr("0x6c"))[Jr("0x72")](),t[Jr("0x2e")].get("imageTypeBlock")[Jr("0x72")](),l=x[Jr("0x17")],l!=r.value)return o[Jr("0x30")](a)&&x.shouldConvertImageType(r[Jr("0x17")],a)?(s(r),a=o[Jr("0x50")](t[Jr("0x1d")].document[Jr("0x4a")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x42"))):void(o[Jr("0x44")](a)?n[Jr("0x47")](a,d,[],"imageStylePostApply"):n[Jr("0x6a")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x5a")][Jr("0x27")](Jr("0x8"))[Jr("0x6")])s[e[Jr("0xc")]]=e.title.toLowerCase();n[Jr("0x5b")][Jr("0x4d")]("formatBlock",Jr("0x42"),Jr("0x3c"),(()=>{})),n._suggestionFactory[Jr("0x4d")]("formatBlock","imageStylePostApply",Jr("0x3c"),(()=>{})),n._suggestionFactory[Jr("0x4d")](Jr("0x49"),Jr("0x12"),"join",(()=>{})),n[Jr("0x5b")].registerCustomCallback(Jr("0x68"),Jr("0x42"),Jr("0x16"),(()=>{})),n[Jr("0x5b")].registerCustomCallback(Jr("0x68"),Jr("0x42"),Jr("0x6d"),((t,e)=>{n[Jr("0x5b")][Jr("0x10")](Jr("0x68"),"",Jr("0x16"))(t,{commandName:e[Jr("0x1c")],commandParams:e.commandReversedParams})})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x68"),Jr("0x42"),"chain",c)}const x=[{type:Jr("0x68"),subType:"imageStylePreApply"},{type:Jr("0x5c"),subType:"imageCaption"},{type:Jr("0x68"),subType:"convertInlineImageToBlock"},{type:Jr("0x5c"),subType:Jr("0xf")}];function a(t,e){const s=x[Jr("0x61")]((({type:e,subType:n})=>t[Jr("0x3a")]==e&&t.subType==n)),r=x.findIndex((({type:t,subType:n})=>e[Jr("0x3a")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[Jr("0x3b")](),a=e[Jr("0x3b")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x52")](i,"insertion")[Jr("0x3e")]((({suggestion:t,meta:e})=>e[Jr("0x79")]&&Jr("0xf")==t[Jr("0x34")]));if(t[Jr("0x56")]>1&&a[Jr("0xe")][Jr("0x6f")](i.start))return!0;if(1==t[Jr("0x56")]&&(i[Jr("0x15")][Jr("0x6f")](a[Jr("0xe")])||i.end.isEqual(a[Jr("0x15")])))return!0}if(3==s&&3==r&&i[Jr("0x15")][Jr("0x5d")](a[Jr("0x15")])){const t=i[Jr("0xe")][Jr("0x76")],e=a[Jr("0x15")][Jr("0x24")];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[Jr("0x1d")][Jr("0x59")][Jr("0x74")]((()=>{let e=!1;const s=Array[Jr("0x13")](t.model.document.differ[Jr("0x35")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x69")](t);if("suggestion"==s&&n[Jr("0x25")](a)){if(Jr("0x68")==i&&(Jr("0x42")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0x5e")]){const s=t[Jr("0x3b")]()[Jr("0x31")]();if(o[Jr("0x44")](s))continue;n[Jr("0x48")](t),e=!0}}if(Jr("0x5c")==i&&Jr("0x2a")==x&&!r[Jr("0x5e")]){const t=n[Jr("0x64")](a);t.next&&t[Jr("0x77")][Jr("0x70")]&&(n[Jr("0x48")](t[Jr("0x77")]),e=!0)}}}return e})),t[Jr("0x5a")][Jr("0x5")](Jr("0xd"))&&n.enableCommand(Jr("0x26"),((e,s)=>{const r=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]);r[Jr("0x57")](Jr("0x2f"))!=s[Jr("0x2f")]&&t[Jr("0x1d")].change((()=>{n[Jr("0x47")](r,{commandName:Jr("0x26"),commandParams:[s]})}))})),t[Jr("0x5a")].has("ImageTextAlternativeEditing")&&n[Jr("0xa")](Jr("0x38"),((e,s)=>{const r=o[Jr("0x50")](t[Jr("0x1d")].document[Jr("0x4a")]);(r[Jr("0x4")](Jr("0x40"))?r[Jr("0x57")](Jr("0x40")):"")!=s[Jr("0x75")]&&t[Jr("0x1d")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x38"),commandParams:[s]})}))})),n[Jr("0x36")].registerDescriptionCallback((t=>{if(x[Jr("0x2c")]((({type:e,subType:n})=>t[Jr("0x3a")]==e&&t[Jr("0x34")]==n)))return t[Jr("0x67")]?{}:void 0})),n[Jr("0x36")][Jr("0x7")]((t=>{if(Jr("0x5c")==t[Jr("0x3a")]||"deletion"==t[Jr("0x3a")]){const e=t.getContainedElement();if(e&&e.is(Jr("0x37"),"caption"))return{type:Jr("0x5c")==t[Jr("0x3a")]?Jr("0x58"):Jr("0x32"),element:e,quantity:1}}})),n[Jr("0x36")][Jr("0x7")]((t=>"formatBlock"==t[Jr("0x3a")]&&"convertInlineImageToBlock"==t[Jr("0x34")]?{type:"format",content:Jr("0x7b")}:Jr("0x68")==t[Jr("0x3a")]&&Jr("0x18")==t[Jr("0x34")]?{type:Jr("0x23"),content:Jr("0xb")}:void 0)),n[Jr("0x36")][Jr("0x7")]((t=>{const{data:e}=t;if(e){if(Jr("0x14")==e[Jr("0x1c")]){const t=e[Jr("0x11")][0].value;return n=Jr("0x6b")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x23"),content:Yo(r,Jr("0x71"),n)}}if(Jr("0x38")==e[Jr("0x1c")]){const t=e[Jr("0x11")][0].newValue;return t?{type:Jr("0x23"),content:Yo(r,Jr("0x4e"),'"'+t+'"')}:{type:Jr("0x23"),content:Yo(r,Jr("0x3f"))}}if(Jr("0x26")==e[Jr("0x1c")]){const t=e[Jr("0x11")][0][Jr("0x2f")];return t?{type:"format",content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x23"),content:Yo(r,Jr("0x2b"))}}}var n}))}}const Zr=["model","markBlockFormat","_suggestionFactory","src","selection","discard","ImageEditing","*Format:* replace image URL","handleReplaceImageCommand","_descriptionFactory","has","format","subType","document","change","getSuggestions","handleSuggestionDescription","TrackChangesEditing","data","author","editor","getSelectedElement","registerCustomCallback","commandName","afterInit","getSuggestionCallback","replaceImageSource","formatBlock","plugins","Users","getContainedElement","commandParams","enableCommand","locale","get","accept"];var Yr,ti;Yr=Zr,ti=257,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("0xf")].plugins[ei("0x5")](ei("0x1")))return;const t=this[ei("0xf")].plugins.get(ei("0xc"));t[ei("0x1b")]("replaceImageSource",((t,e)=>this[ei("0x3")](t,e))),t._suggestionFactory[ei("0x11")](ei("0x16"),ei("0x15"),"accept",t[ei("0x21")][ei("0x14")]("formatBlock",null,"discard")),t[ei("0x21")][ei("0x11")]("formatBlock",ei("0x15"),ei("0x0"),t[ei("0x21")][ei("0x14")](ei("0x16"),null,ei("0x1e"))),t[ei("0x4")].registerDescriptionCallback((t=>this[ei("0xb")](t)))}handleReplaceImageCommand(t,e){const n=this.editor[ei("0x17")][ei("0x1d")](ei("0xc")),o=this[ei("0xf")][ei("0x1f")][ei("0x8")][ei("0x23")][ei("0x10")]();this[ei("0xf")][ei("0x1f")][ei("0x9")]((()=>{let s=o.getAttribute(ei("0x22"));const r=this[ei("0xf")].plugins[ei("0x1d")](ei("0x18")).me;for(const t of n[ei("0xa")]({skipNotAttached:!0})){const e=t[ei("0x19")]();if(ei("0x15")===t[ei("0x7")]&&e===o){t[ei("0xe")]!==r&&t[ei("0x0")](),s=t[ei("0xd")][ei("0x1a")][0].source;break}}t(e),n[ei("0x20")](o,{commandName:ei("0x15"),commandParams:[{source:s}]},[],ei("0x15"))}))}[ei("0xb")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x12")]){const t=ei("0x2");return{type:ei("0x6"),content:Yo(this[ei("0xf")][ei("0x1c")],t)}}}}const oi=["bind","execute","collaboration_features","listenTo","commands","forEach","_trackChangesExecuted","get","importWord","trackChanges","Users","lowest","_trackChangesValueDuringImport","TrackChangesEditing","value","editor","plugins","track_changes","high","_handleImportedData","afterInit"];var si,ri;si=oi,ri=177,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("0x3")]=!1,this[ii("0x12")]=!1}[ii("0xb")](){const t=this[ii("0x6")],e=t[ii("0x10")][ii("0x13")](ii("0x14")),n=t[ii("0x10")].get(ii("0x0"));e&&(e.on(ii("0xd"),((t,[,e])=>{this[ii("0x3")]=n.value,e[ii("0xe")][ii("0x8")]=!this[ii("0x3")]}),{priority:ii("0x9")}),this[ii("0xf")](e,"dataInsert",this[ii("0xa")][ii("0xc")](this)),this.listenTo(e,"dataInsert",(()=>{this._trackChangesExecuted&&(n[ii("0xd")](),this._trackChangesExecuted=!1)}),{priority:ii("0x2")}),t.plugins[ii("0x13")](ii("0x4")).enableCommand(ii("0x14")))}[ii("0xa")](t,e){const{suggestions:n}=e,o=this[ii("0x6")][ii("0x10")][ii("0x13")](ii("0x0")),s=o[ii("0x5")];this._trackChangesValueDuringImport!==s&&(o[ii("0xd")](),this[ii("0x12")]=!0),n&&n[ii("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x6")][ii("0x7")].get(ii("0x1")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x14")}}};this[ii("0x6")][ii("0x7")][ii("0x13")](ii("0x4"))._setSuggestionData(s)}))}}const ai=["afterInit","format","getItemLabel","checkAttribute","indent","getItems","IndentBlock","from","locale","IndentEditing","selection","enableCommand","indentBlock","*Indent:* %0","_descriptionFactory","plugins","getSelectedBlocks","blockIndent","document","TrackChangesEditing","editor","get","has","commandName","model","outdentBlock","schema","*Outdent:* %0"];var ci,li;ci=ai,li=452,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x18")](){const t=this[di("0x10")],e=t[di("0xb")][di("0x11")](di("0xf"));t[di("0xb")][di("0x12")](di("0x5"))&&(e[di("0x7")](di("0x0")),e[di("0x7")]("outdent"));const n=t[di("0x4")];if(t[di("0xb")][di("0x12")](di("0x2"))){for(const n of[di("0x8"),"outdentBlock"])e[di("0x7")](n,(()=>{const o=Array[di("0x3")](this[di("0x10")].model[di("0xe")][di("0x6")][di("0xc")]()).filter((t=>this[di("0x10")][di("0x14")][di("0x16")][di("0x1b")](t,di("0xd"))));t[di("0x14")].change((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x8")})}))}));e[di("0xa")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(di("0x8")!=o[di("0x13")]&&di("0x15")!=o[di("0x13")])return;const s=t[di("0x1")]()[0],r=e[di("0xa")][di("0x1a")](s);return"indentBlock"==o[di("0x13")]?{type:di("0x19"),content:Yo(n,di("0x9"),r)}:di("0x15")==o[di("0x13")]?{type:di("0x19"),content:Yo(n,di("0x17"),r)}:void 0}))}}}var gi,mi,fi=["get","requires","init","editor","TrackChangesEditing"];gi=fi,mi=449,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("0x2")](){return[Vs.Input]}[hi("0x3")](){this[hi("0x4")].plugins[hi("0x1")](hi("0x0")).enableCommand("input")}}const bi=["markInlineFormat","*Remove link*","editor","afterInit","selection","change","LinkEditing","get","getAttribute","commandName","getFirstPosition","hasAttribute","locale","from","link","enableCommand","document","has","model","format","isCollapsed","unlink","linkHref","registerDescriptionCallback","plugins"];var Ei,_i;Ei=bi,_i=420,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x8")](){const t=this[Ti("0x7")];if(!t[Ti("0x4")][Ti("0x16")](Ti("0xb")))return;const e=t[Ti("0x4")][Ti("0xc")]("TrackChangesEditing");e[Ti("0x14")]("link",((n,o)=>{const s=t[Ti("0x17")][Ti("0x15")][Ti("0x9")];let r=[];if(s[Ti("0x0")]){if(!s[Ti("0x10")](Ti("0x2")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xf")](),Ti("0x2"),s.getAttribute(Ti("0x2")),t.model);r=[e]}}else r=Array[Ti("0x12")](s.getRanges());t[Ti("0x17")][Ti("0xa")]((()=>{for(const t of r)e[Ti("0x5")](t,{commandName:Ti("0x13"),commandParams:[o]})}))})),e[Ti("0x14")](Ti("0x1"),(()=>{const n=this[Ti("0x7")][Ti("0x17")],o=n[Ti("0x15")].selection;n[Ti("0xa")]((()=>{let n=[];n=o[Ti("0x0")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x2"),o[Ti("0xd")](Ti("0x2")),t.model)]:ms(Ti("0x2"),o.getFirstRange(),t[Ti("0x17")]);for(const t of n)e[Ti("0x5")](t,{commandName:Ti("0x1"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x3")]((e=>{const{data:n}=e,o=t[Ti("0x11")];if(n){if("link"==n[Ti("0xe")]){const t=n.commandParams[0];return{type:Ti("0x18"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x1")==n.commandName?{type:Ti("0x18"),content:Yo(o,Ti("0x6"))}:void 0}}))}}const yi=["from","commandName","nextSibling","TodoListEditing","end","checkTodoList","registerDescriptionCallback","listIndent","locale","markBlockFormat","add","previousSibling","has","bulletedList","commands","outdentList","todoList","indentList","element","model","getAttribute","*Outdent:* %0","*Uncheck item*","get","*Indent:* %0","value","listType","forceValue","numberedList","schema","listItem","blockName","selection","*Check item*","_descriptionFactory","isObject","name","afterInit","enableCommand","todoListChecked","format","createRange","*Change to:* %0","checkChild","filter","createPositionAt","plugins","slice","commandParams","editor","document","change","bulleted","ELEMENT_TODO_LIST","paragraph","push","_selectedElements","TrackChangesEditing","registerElementLabel","getSelectedBlocks"];var ki,Ai;ki=yi,Ai=205,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[vi("0x18")],e=t[vi("0x2b")];if(!t[vi("0x15")][vi("0x2f")]("ListEditing"))return;const n=t[vi("0x15")][vi("0x3a")](vi("0x20")),o=t[vi("0x15")].has(vi("0x26"));function s(e){return()=>{const o=t[vi("0x36")][vi("0x19")][vi("0x7")],s=t[vi("0x31")][vi("0x3a")](e);if(s.value)return void t.execute(vi("0x1d"),{});const r=e[vi("0x16")](0,-4),i=function(t,e,n){let o=Array[vi("0x23")](t)[vi("0x13")]((t=>{return e=t,(o=n)[vi("0x12")](e.parent,vi("0x5"))&&!o[vi("0xa")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x35"),vi("0x5"))||t[vi("0x37")](vi("0x1"))!=e));const s=new Set;for(const t of o)t.is(vi("0x35"),vi("0x5"))?s[vi("0x2d")](Si(t)):s[vi("0x2d")](t);return Array[vi("0x23")](s)}(o[vi("0x22")](),r,t[vi("0x36")][vi("0x4")]);t.model[vi("0x1a")]((()=>{for(const t of i)n[vi("0x2c")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x0")]}],formatGroupId:vi("0x6")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x23")](t);const n=e.findIndex((t=>vi("0x5")!=t[vi("0xb")]));return n>-1&&(e=e[vi("0x16")](0,n)),e}(t[vi("0x36")][vi("0x19")][vi("0x7")].getSelectedBlocks()),s=t.model[vi("0x10")](t[vi("0x36")][vi("0x14")](o[0],"before"),t[vi("0x36")][vi("0x14")](o[o.length-1],vi("0x27")));t[vi("0x36")][vi("0x1a")]((()=>{n[vi("0x2c")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x2a")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x25")];for(;t&&t[vi("0x37")](vi("0x2a"))>n[vi("0x37")](vi("0x2a"));)e[vi("0x2d")](t),t=t[vi("0x25")]}return Array.from(e)}(o))}))}}n.enableCommand(vi("0x3"),s("numberedList")),n[vi("0xd")](vi("0x30"),s("bulletedList")),o&&n[vi("0xd")](vi("0x33"),s("todoList")),n.enableCommand(vi("0x34"),r("indentList")),n[vi("0xd")]("outdentList",r(vi("0x32"))),o&&n[vi("0xd")]("checkTodoList",(()=>{const e=t[vi("0x31")][vi("0x3a")](vi("0x28")),o=Array[vi("0x23")](e[vi("0x1f")]);o.filter((t=>t[vi("0x37")](vi("0xe"))!=e[vi("0x0")])),t[vi("0x36")][vi("0x1a")]((()=>{for(const t of o)n[vi("0x2c")](t,{commandName:vi("0x28"),commandParams:[{forceValue:!e[vi("0x0")]}]})}))})),n[vi("0x9")][vi("0x21")](vi("0x5"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x9")][vi("0x29")]((t=>{const{data:n}=t;if(n){if(vi("0x3")==n[vi("0x24")]||vi("0x30")==n[vi("0x24")]||vi("0x33")==n[vi("0x24")])switch(n[vi("0x24")].replace("List","")){case vi("0x1b"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,vi("0x1c")))}if(vi("0x34")==n[vi("0x24")])return{type:vi("0xf"),content:Yo(e,vi("0x3b"),Yo(e,"ELEMENT_LIST_ITEM"))};if("outdentList"==n[vi("0x24")])return{type:vi("0xf"),content:Yo(e,vi("0x38"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x28")==n.commandName)return n[vi("0x17")][0][vi("0x2")]?{type:vi("0xf"),content:Yo(e,vi("0x8"))}:{type:vi("0xf"),content:Yo(e,vi("0x39"))}}function o(t){return{type:vi("0xf"),content:Yo(e,vi("0x11"),t)}}}))}}function Si(t){const e=t[vi("0x37")](vi("0x2a"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x2e")].is(vi("0x35"),vi("0x5"));){const o=t[vi("0x2e")][vi("0x37")](vi("0x2a"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t.previousSibling}return n}function Ii(t){const e=[];if(t.is(vi("0x35"),"listItem")&&t.getAttribute(vi("0x2a"))>0){let n=t[vi("0x25")];for(;n&&vi("0x5")==n[vi("0xb")]&&n[vi("0x37")](vi("0x2a"))==t[vi("0x37")](vi("0x2a"));)e[vi("0x1e")](n),n=n[vi("0x25")]}return e}const Li=["getSelectedBlocks","bind","selection","enableCommand","TrackChangesEditing","getListTypeFromListStyleType","handleListStyleCommand","model","reversed","registerDescriptionCallback","_descriptionFactory","getFirstPosition","commandParams","createRange","listItem","backward","afterInit","format","editor","styles","toUpperCase","has","get","handleListReversedCommand","getSiblingNodes","startIndex","length","ELEMENT_","*Format:* set start index to %0","_getTranslationKeyForListStyle","listStart","plugins","change","forward","document","from","push","replace","config","list.properties","ListUtils","commandName","createPositionAt","numbered","listStyle","type","_getSuggestionBlocksForListStyle","handleListStartCommand","_LIST_","before","flat","listType","_getSuggestionBlocks","element","*Format:* set order to regular","listReversed","markMultiRangeBlockFormat","handleDescriptions","map","filter","getAttribute"];var Ni,Mi;Ni=Li,Mi=273,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x30")](){if(!this[wi("0x32")][wi("0x2")][wi("0x35")]("ListPropertiesEditing"))return;const t=this.editor[wi("0x9")].get(wi("0xa")),e=this.editor[wi("0x2")][wi("0x36")](wi("0x24"));t[wi("0x33")]&&e.enableCommand(wi("0xf"),this[wi("0x26")][wi("0x21")](this)),t[wi("0x28")]&&e[wi("0x23")](wi("0x1a"),this[wi("0x37")][wi("0x21")](this)),t[wi("0x39")]&&e[wi("0x23")](wi("0x1"),this[wi("0x12")][wi("0x21")](this)),e[wi("0x2a")][wi("0x29")](this[wi("0x1c")][wi("0x21")](this))}handleListStyleCommand(t,e={}){const n=this[wi("0x32")][wi("0x2")][wi("0x36")](wi("0x24")),o=this[wi("0x11")]();this[wi("0x32")].model[wi("0x3")]((()=>{n[wi("0x1b")](o,{commandName:wi("0xf"),commandParams:[{type:e[wi("0x10")]}],formatGroupId:"listStyle"})}))}[wi("0x37")](t,e={}){const n=this[wi("0x32")][wi("0x2")][wi("0x36")]("TrackChangesEditing"),o=this[wi("0x17")]((t=>t.is(wi("0x18"),wi("0x2e"))&&wi("0xe")===t[wi("0x1f")](wi("0x16"))));if(o[wi("0x3a")]<1)return;const s=o[wi("0x1d")]((t=>this[wi("0x32")].model.createRange(this[wi("0x32")].model[wi("0xd")](t,wi("0x14")),this.editor.model.createPositionAt(t,0))));this[wi("0x32")].model.change((()=>{n[wi("0x1b")](s,{commandName:wi("0x1a"),commandParams:[{reversed:e[wi("0x28")]}],formatGroupId:wi("0x1a")})}))}[wi("0x12")](t,e={}){const n=this[wi("0x32")][wi("0x2")][wi("0x36")](wi("0x24")),o=this[wi("0x17")]((t=>t.is(wi("0x18"),wi("0x2e"))&&"numbered"===t[wi("0x1f")](wi("0x16"))));if(o[wi("0x3a")]<1)return;const s=o[wi("0x1d")]((t=>this[wi("0x32")][wi("0x27")][wi("0x2d")](this.editor[wi("0x27")][wi("0xd")](t,wi("0x14")),this[wi("0x32")].model[wi("0xd")](t,0))));this[wi("0x32")].model[wi("0x3")]((()=>{n[wi("0x1b")](s,{commandName:wi("0x1"),commandParams:[{startIndex:e[wi("0x39")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this[wi("0x32")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0xc")]){case"listStyle":o="*Change to:* %0",s={type:wi("0x31"),content:Yo(e,o,Yo(e,this[wi("0x0")](n[wi("0x2c")][0][wi("0x10")])))};break;case"listReversed":o=n[wi("0x2c")][0][wi("0x28")]?"*Format:* set order to reversed":wi("0x19"),s={type:"format",content:Yo(e,o)};break;case wi("0x1"):o=wi("0x3c"),s={type:"format",content:Yo(e,o,n.commandParams[0][wi("0x39")])}}return s}[wi("0x11")](){var t,e,n,o;const s=this.editor[wi("0x2")][wi("0x36")](wi("0xb"));let r=Array[wi("0x6")](this.editor[wi("0x27")][wi("0x5")][wi("0x22")][wi("0x20")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x18"),wi("0x2e")))&&r.unshift(...s[wi("0x38")](this[wi("0x32")][wi("0x27")][wi("0x5")][wi("0x22")][wi("0x2b")](),wi("0x2f"))),(null===(e=r[r[wi("0x3a")]-1])||void 0===e?void 0:e.is("element",wi("0x2e")))&&r[wi("0x7")](...s[wi("0x38")](this[wi("0x32")][wi("0x27")][wi("0x5")][wi("0x22")].getLastPosition(),wi("0x4"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x32")].model[wi("0x5")].selection[wi("0x2b")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x18"),wi("0x2e")))&&(r=r[wi("0x1e")]((t=>t.is(wi("0x18"),wi("0x2e"))))),r}[wi("0x17")](t){const e=this[wi("0x32")].plugins.get(wi("0xb"));let n=Array[wi("0x6")](this[wi("0x32")][wi("0x27")][wi("0x5")][wi("0x22")][wi("0x20")]()).filter(t)[wi("0x1d")]((t=>{const n=this[wi("0x32")].model[wi("0xd")](t,0);return[...e.getSiblingNodes(n,wi("0x2f")),...e[wi("0x38")](n,wi("0x4"))]}))[wi("0x15")]();return n=[...new Set(n)],n}[wi("0x0")](t){return wi("0x3b")+this[wi("0x32")][wi("0x2")].get(wi("0xb"))[wi("0x25")](t)[wi("0x34")]()+wi("0x13")+t[wi("0x34")]()[wi("0x8")](/-/g,"_")}}const Fi=["editor","stop","dataDowncast","elementToElement","MediaEmbedEditing","high","afterInit","TrackChangesEditing","showSuggestionHighlights","has","data","mediaEmbed","locale","plugins","get","attribute:url:media","media","createEmptyElement","registerElementLabel","conversion","enableCommand"];var Pi,Di;Pi=Fi,Di=143,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("0x4")];if(!t[Bi("0x11")][Bi("0xd")](Bi("0x8")))return;const e=t[Bi("0x11")][Bi("0x12")](Bi("0xb")),n=t[Bi("0x10")];e[Bi("0x3")](Bi("0xf")),e._descriptionFactory[Bi("0x1")](Bi("0x14"),(t=>Yo(n,"ELEMENT_MEDIA",t))),t[Bi("0x2")].for(Bi("0x6"))[Bi("0x7")]({model:Bi("0x14"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xc")])return e[Bi("0x0")]("div")},converterPriority:Bi("0x9")}),t[Bi("0xe")].downcastDispatcher.on(Bi("0x13"),((t,e,n)=>{n.options.showSuggestionHighlights&&t[Bi("0x5")]()}),{priority:Bi("0x9")})}}const Ui=["enableCommand","get","mention","MentionEditing","has","plugins","TrackChangesEditing","afterInit"];var Gi,Hi;Gi=Ui,Hi=133,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x2")](){const t=this.editor;t[zi("0x0")][zi("0x7")](zi("0x6"))&&t[zi("0x0")][zi("0x4")](zi("0x1"))[zi("0x3")](zi("0x5"))}}const Vi=["editor","ELEMENT_PAGE_BREAK","has","locale","plugins","_descriptionFactory","TrackChangesEditing","registerElementLabel","get","PageBreakEditing","pageBreak","enableCommand"];var Ki,qi;Ki=Vi,qi=273,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x3")];if(!t[Xi("0x7")][Xi("0x5")](Xi("0x0")))return;t[Xi("0x7")].get(Xi("0x9"))[Xi("0x2")](Xi("0x1"));const e=t[Xi("0x7")][Xi("0xb")](Xi("0x9")),n=t[Xi("0x6")];e[Xi("0x8")][Xi("0xa")](Xi("0x1"),(t=>Yo(n,Xi("0x4"),t)))}}const Ji=["selection","registerDescriptionCallback","locale","isBlock","options","Paragraph","has","*Change to:* %0","_descriptionFactory","paragraph","*Insert:* %0","addMarker:suggestion:insertion","start","showSuggestionHighlights","insertParagraph","enableCommand","mapper","schema","span","nodeAfter","consumable","from","toViewPosition","plugins","ELEMENT_PARAGRAPH","getFirstRange","editor","addClass","writer","highest","includes","getSelectedBlocks","markerName","model","insert","bindElementToMarker","insertion","isObject","name","afterInit","document","consume","checkChild","TrackChangesEditing","markerRange","data","end","isTouching","change","createUIElement","isLimit","$text","ck-suggestion-marker-split","filter"];var Qi,Zi;Qi=Ji,Zi=356,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x7")](){const t=this[Yi("0x30")];if(!t[Yi("0x2d")][Yi("0x1c")](Yi("0x1b")))return;const e=t[Yi("0x18")],n=t[Yi("0x2d")].get(Yi("0xb"));n[Yi("0x1e")].registerElementLabel("paragraph",(t=>Yo(e,Yi("0x2e"),t))),n[Yi("0x25")](Yi("0x1f"),((e,o={})=>{const s=t[Yi("0x1")][Yi("0x8")],r=o[Yi("0x16")]||s.selection,i=Array[Yi("0x2b")](r[Yi("0x35")]())[Yi("0x15")]((t=>{return e=t,(n=this[Yi("0x30")][Yi("0x1")][Yi("0x27")])[Yi("0xa")](e.parent,"paragraph")&&!n[Yi("0x5")](e)&&"paragraph"!=e[Yi("0x6")];var e,n}));t.model[Yi("0x10")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x1f"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0x1e")][Yi("0x17")]((t=>{const{data:n}=t;if(n&&Yi("0x1f")==n.commandName)return{type:"format",content:Yo(e,Yi("0x1d"),Yo(e,Yi("0x2e")))}})),n.enableCommand(Yi("0x24")),t.editing.downcastDispatcher.on(Yi("0x21"),ex(t),{priority:"highest"}),t[Yi("0xd")].downcastDispatcher.on(Yi("0x21"),((e,n,o)=>{o[Yi("0x1a")][Yi("0x23")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x33")});const o=n[Yi("0x1e")];o[Yi("0x17")]((n=>{if(Yi("0x4")!==n.type)return;const{start:s,end:r}=n[Yi("0x2f")]();if(!s[Yi("0xf")](r)||!s[Yi("0x29")])return;const i=t[Yi("0x1")].schema,x=s.nodeAfter;return i[Yi("0x19")](x)&&!i[Yi("0x12")](x)&&i[Yi("0xa")](x,"$text")?{type:"insertion",content:Yo(e,Yi("0x20"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x2d")].get("TrackChangesEditing"),i=o.markerRange[Yi("0x22")],x=o[Yi("0xc")][Yi("0xe")],a=t[Yi("0x1")][Yi("0x27")];if(!i[Yi("0xf")](x)||!i[Yi("0x29")])return;const c=i[Yi("0x29")];if(a[Yi("0x19")](c)&&!a[Yi("0x12")](c)&&a[Yi("0xa")](c,Yi("0x13"))){if(!s[Yi("0x2a")][Yi("0x9")](o[Yi("0xc")],n.name))return;const t=s[Yi("0x32")][Yi("0x11")](Yi("0x28"),{class:Yi("0x14")}),i=s.mapper[Yi("0x2c")](x);e&&r.activeMarkers[Yi("0x34")](o[Yi("0x0")])&&s.writer[Yi("0x31")]("ck-suggestion-marker--active",t),s.writer[Yi("0x2")](i,t),s[Yi("0x26")][Yi("0x3")](t,o[Yi("0x0")])}}}const nx=["isFormatting","registerDescriptionCallback","TrackChangesEditing","plugins","document","getAttributeProperties","enableCommand","getAttributes","commandName","removeFormat","get","afterInit","getRanges","getItems","has","model","markInlineFormat","format","isCollapsed","locale"];var ox,sx;ox=nx,sx=274,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[rx("0x9")][rx("0x0")]("RemoveFormatEditing"))return;const e=t[rx("0x9")][rx("0x10")](rx("0x8"));e[rx("0xc")]("removeFormat",(n=>{const o=t[rx("0x1")][rx("0xa")].selection;o[rx("0x4")]?n():t[rx("0x1")].change((()=>{const n=Array.from(o[rx("0x12")]());for(const o of n)for(const n of o[rx("0x13")]())xx(n,t[rx("0x1")].schema)&&e[rx("0x2")](t[rx("0x1")].createRangeOn(n),{commandName:rx("0xf"),commandParams:[]})}))})),e._descriptionFactory[rx("0x7")]((e=>{const{data:n}=e;if(n&&rx("0xf")==n[rx("0xe")])return{type:rx("0x3"),content:Yo(t[rx("0x5")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0xd")]()){const t=e[rx("0xb")](n);if(t&&t[rx("0x6")])return!0}return!1}const ax=["discardAllSuggestions","enableCommand","editor","discardSelectedSuggestions","acceptSelectedSuggestions","RestrictedEditingModeEditing","afterInit","goToNextRestrictedEditingException","has","plugins","goToPreviousRestrictedEditingException","acceptSuggestion","get","trackChanges","TrackChangesEditing"];var cx,lx;cx=ax,lx=262,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0xe")](){const t=this[dx("0xa")];if(!t[dx("0x2")][dx("0x1")](dx("0xd")))return;const e=t[dx("0x2")].get(dx("0x7"));e[dx("0x9")](dx("0x3")),e[dx("0x9")](dx("0x0"));const n=t.plugins[dx("0x5")]("RestrictedEditingModeEditing");n.enableCommand(dx("0x6")),n[dx("0x9")](dx("0x4")),n.enableCommand("discardSuggestion"),n[dx("0x9")]("acceptAllSuggestions"),n.enableCommand(dx("0x8")),n[dx("0x9")](dx("0xc")),n[dx("0x9")](dx("0xb"))}}const gx=["bindElementToMarker","mapper","test","ck-suggestion-marker--active","createPositionBefore","span","createUIElement","high","model","editing","getItems","plugins","toViewPosition","addMarker:suggestion:insertion","enableCommand","addMarker:suggestion:deletion","merge","name","ELEMENT_LINE_BREAK","downcastDispatcher","TrackChangesEditing","registerElementLabel","writer","element","init","shiftEnter","split","_descriptionFactory","locale","addMarker:suggestion","ck-suggestion-marker-","addClass","insert","requires","editor","softBreak","markerRange","deletion","consumable","markerName","get"];var mx,fx;mx=gx,fx=181,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("0x10")](){return[nr.ShiftEnter]}[hx("0x7")](){const t=this[hx("0x11")],e=t[hx("0x23")][hx("0x17")](hx("0x3"));e[hx("0x26")](hx("0x8")),t[hx("0x21")][hx("0x2")].on(hx("0x25"),bx(t),{priority:hx("0x1f")}),t[hx("0x21")][hx("0x2")].on(hx("0x27"),bx(t),{priority:hx("0x1f")}),t.data[hx("0x2")].on(hx("0xc"),((e,n,o)=>{o.options.showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0xa")][hx("0x4")]("softBreak",(e=>Yo(t[hx("0xb")],hx("0x1"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x23")][hx("0x17")](hx("0x3"));if(!s[hx("0x15")][hx("0x1a")](o[hx("0x13")],n[hx("0x0")]))return;const i=t[hx("0x20")];for(const t of o[hx("0x13")][hx("0x22")]()){if(!t.is(hx("0x6"),hx("0x12")))continue;const n=hx("0x14")==o[hx("0x16")][hx("0x9")](":")[1]?hx("0x28"):"split",x=s[hx("0x5")][hx("0x1e")](hx("0x1d"),{class:hx("0xd")+n}),a=s.mapper[hx("0x24")](i[hx("0x1c")](t));e&&r.activeMarkers.includes(o.markerName)&&s[hx("0x5")][hx("0xe")](hx("0x1b"),x),s[hx("0x5")][hx("0xf")](a,x),s[hx("0x19")][hx("0x18")](x,o[hx("0x16")])}}}const Ex=["plugins","selection","commands","registerDescriptionCallback","getRanges","StandardEditingModeEditing","enableCommand","value","format","from","TrackChangesEditing","FORMAT_RESTRICTED_DISABLED","change","model","get","_descriptionFactory","document","commandName","FORMAT_RESTRICTED_ENABLED","forceValue"];var _x,Tx;_x=Ex,Tx=461,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("0xc")],n=t.locale;if(!t[Cx("0x13")].has(Cx("0x4")))return;const o=t.plugins[Cx("0xd")](Cx("0x9")),s="restrictedEditingException",r=t[Cx("0x1")].get(s);o[Cx("0x5")](s,((t,n={})=>{const i=e[Cx("0xf")][Cx("0x0")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x12")]?n[Cx("0x12")]:!r[Cx("0x6")];e[Cx("0xb")]((()=>{const t=Array[Cx("0x8")](i[Cx("0x3")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xe")][Cx("0x2")]((t=>{const{data:e}=t;if(e&&e[Cx("0x10")]==s)return e.commandParams[0][Cx("0x12")]?{type:Cx("0x7"),content:Yo(n,Cx("0x11"))}:{type:Cx("0x7"),content:Yo(n,Cx("0xa"))}}))}}const kx=["*Format:* %0","format","modelElements","has","selection","getRanges","get","getDefinitionsForView","TrackChangesEditing","_getStyleDefinition","plugins","style.definitions","locale","commandParams","push","change","normalizeConfig","commandName","block","classes","styleName","createRangeOn","name","style:","find","getItems","markBlockFormat","StyleUtils","DataSchema","toLowerCase","isCollapsed","includes","forceValue","element","model","Style","every","getAncestors","afterInit","enabledStyles","from","config","style","getAttribute","enableCommand"];var Ax,vx;Ax=kx,vx=475,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0xd")](){const t=this.editor;if(!t[Rx("0x1e")][Rx("0x17")](Rx("0xa")))return;const e=t.commands[Rx("0x1a")](Rx("0x11")),n=t[Rx("0x1e")][Rx("0x1a")](Rx("0x1c")),o=t[Rx("0x20")],s=t[Rx("0x1e")][Rx("0x1a")](Rx("0x3")),r=t[Rx("0x1e")][Rx("0x1a")](Rx("0x2"))[Rx("0x24")](s,t[Rx("0x10")][Rx("0x1a")](Rx("0x1f")));n[Rx("0x13")](Rx("0x11"),((o,{styleName:i})=>{const x=t.model.document[Rx("0x18")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0xe")][Rx("0x6")](i))return;if(x[Rx("0x5")]&&!a.isBlock)return void o({styleName:i});const c=!e.value.includes(a[Rx("0x2a")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0xc")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x6")](o[Rx("0x2a")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x16")]);t[Rx("0x9")][Rx("0x23")]((()=>{for(const t of e)n[Rx("0x1")](t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x2b")+i})}))}else{let e=Array.from(x[Rx("0x19")]());if(!c){const n=Array[Rx("0xf")](s[Rx("0x1b")](a[Rx("0x8")],!1))[0][Rx("0x9")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0x9")],s,a.classes,n);o[Rx("0x22")](...e)}e=o}t[Rx("0x9")][Rx("0x23")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x25")])return e[Rx("0x21")][0][Rx("0x7")]?{type:"format",content:Yo(o,Rx("0x14"),e[Rx("0x21")][0][Rx("0x28")][Rx("0x4")]())}:{type:Rx("0x15"),content:Yo(o,"*Remove format:* %0",e[Rx("0x21")][0].styleName[Rx("0x4")]())}}))}[Rx("0x1d")](t,e){let n=e[Rx("0x26")][Rx("0x2c")]((e=>e[Rx("0x2a")]===t));return n||(n=e.inline[Rx("0x2c")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x0")]()){const e=r[Rx("0x12")](o);e&&n[Rx("0xb")]((t=>e[Rx("0x27")].includes(t)))&&s.push(t[Rx("0x29")](r))}return s}}const Ix=["accept","insertTableRowBelow","change","min","_getSuggestionCoords","above","name","suggestion","insertTableColumnRight","TableUtils","removeTableRow","insertTableColumnLeft","differ","start","$graveyard","getContainedElement","createPositionAt","first","end","addRange","map","enableCommand","MAX_SAFE_INTEGER","deletion","ELEMENT_TABLE_ROW_WITH_TEXT","maxColumn","element","_setupColumnsRowsFixing","type","$textProxy","max","insertTable","insert","values","getRowIndexes","model","afterInit","selectTableColumn","_tableSuggestions","includes","removeTableColumn","registerElementLabel","position","selection","options","getAttribute","createRangeIn","*Remove:* %0","document","*Insert:* %0","MIN_SAFE_INTEGER","commands","table","TrackChangesEditing","rowspan","getRanges","rootName","_getCoordsForCells","_tablePostFixingSubtypes","isEqual","findAncestor","forceValue","_acceptFormatSuggestionCallbackFactory","minRow","tableCell","plugins","addMarker:suggestion","push","filter","setSelection","low","getColumnIndexes","refresh","item","isTouching","nodeAfter","tableRow","subType","last","has","span","add","createRangeOn","toViewElement","root","isInContent","batch","toLowerCase","highest","length","tableColumn","mapper","selectTableRow","left","registerCustomCallback","substr","getSelectionAffectedTableCells","editor","tablePaste","TableEditing","change:data","hasAttribute","downcastDispatcher","classes","_descriptionFactory","removeClass","data","markMultiRangeDeletion","from","ELEMENT_TABLE_ROW","minColumn","registerDescriptionCallback","cell","detach","getCellLocation","every","startsWith","markMultiRangeInsertion","some","get","createTableWalker","getItems","insertion","join","fromRange","execute","ELEMENT_TABLE_COLUMN","enqueueChange","colspan","isIntersectingWithRange","_suggestionFactory"];var Lx,Nx;Lx=Ix,Nx=347,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._tablePostFixingSubtypes=[Mx("0x7a"),Mx("0x5")],this[Mx("0x54")]=new Set}[Mx("0x52")](){const t=this.editor,e=t[Mx("0x51")].document[Mx("0x59")];if(!t[Mx("0x6f")][Mx("0x7d")](Mx("0xe")))return;const n=t.locale,o=t[Mx("0x6f")][Mx("0x22")]("TrackChangesEditing"),s=t[Mx("0x6f")][Mx("0x22")](Mx("0x37"));o[Mx("0x13")][Mx("0x57")](Mx("0x62"),(t=>Yo(n,"ELEMENT_TABLE",t))),this[Mx("0x49")](),o.enableCommand(Mx("0x4d")),o[Mx("0x43")](Mx("0x7")),o[Mx("0x43")](Mx("0x53"));for(const n of["insertTableRowAbove",Mx("0x2f")]){const r=t[Mx("0x61")][Mx("0x22")](n);o[Mx("0x43")](n,(n=>{t[Mx("0x51")].change((t=>{n();const i=Mx("0x33")===r.order,x=s[Mx("0xb")](e),a=s[Mx("0x50")](x),c=i?a.first-1:a[Mx("0x7c")]+1,l=x[0].findAncestor("table"),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d)[Mx("0x42")]((e=>t[Mx("0x80")](e[Mx("0x1b")])));o.markMultiRangeInsertion(u,Mx("0x7a"))}))}))}for(const n of[Mx("0x39"),Mx("0x36")]){const r=t[Mx("0x61")].get(n);o[Mx("0x43")](n,(n=>{t[Mx("0x51")][Mx("0x30")]((t=>{n();const i=Mx("0x8")===r.order,x=s[Mx("0xb")](e),a=s[Mx("0x75")](x),c=i?a[Mx("0x3f")]-1:a[Mx("0x7c")]+1,l=x[0][Mx("0x6a")]("table"),d=s[Mx("0x23")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x17")](d)[Mx("0x42")]((e=>t.createRangeOn(e[Mx("0x1b")])));o[Mx("0x20")](u,Mx("0x5"))}))}))}for(const n of[Mx("0x38"),"removeTableColumn"]){const r=n[Mx("0xa")](11),i=r.toLowerCase(),x=i.substr(0,3)+Mx("0x7e"),a="table"+r,c=Mx("0x31")+r,l=Mx("0x4c")+r;o[Mx("0x43")](n,(()=>{t[Mx("0x51")][Mx("0x30")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Mx("0x6a")](Mx("0x62"));let u;if(Mx("0x38")==n){const t=s[Mx("0x50")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s[Mx("0x75")](r);u={startColumn:t.first,endColumn:t[Mx("0x7c")],includeAllSlots:!0}}const g=s[Mx("0x23")](d,u),m=Array[Mx("0x17")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x72")]((t=>t[Mx("0x10")](x)))),h=Ox(m[Mx("0x72")]((t=>!t[Mx("0x10")](x)))).map((e=>t.createRangeOn(e))),p=o[Mx("0x16")](h,a);if(p&&(Mx("0x7a")==p[Mx("0x7b")]||Mx("0x5")==p[Mx("0x7b")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[Mx("0x80")](n),r=s[Mx("0x1d")](n),a=n[Mx("0x5b")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x41")](o)}}}))}))}function r(n){const o=Array[Mx("0x17")](e[Mx("0x65")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x27")](t)));t[Mx("0x51")][Mx("0x30")]((e=>{const s=e[Mx("0x1")];n=n[Mx("0x72")]((t=>Mx("0x3c")!=t.root.rootName)),e.setSelection(n),t[Mx("0x61")].get(Mx("0x38"))[Mx("0x76")](),t[Mx("0x28")](Mx("0x38"),{forceDefaultExecution:!0}),t[Mx("0x51")][Mx("0x2a")]((()=>{t[Mx("0x51")].enqueueChange(s,(t=>{const e=o[Mx("0x72")]((t=>Mx("0x3c")!=t.root[Mx("0x66")]));e[Mx("0x4")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x1c")]()}))}))}))}function a(n){t[Mx("0x51")][Mx("0x30")]((o=>{const s=Array[Mx("0x17")](e[Mx("0x65")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x27")](t))),r=[];for(const t of n)for(const e of t[Mx("0x24")]({shallow:!0}))r[Mx("0x71")](e);for(const e of r)"$graveyard"!=e[Mx("0x82")][Mx("0x66")]&&(o[Mx("0x73")](o[Mx("0x3e")](e,0)),t[Mx("0x61")].get(Mx("0x56")).refresh(),t[Mx("0x28")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s[Mx("0x72")]((t=>Mx("0x3c")!=t.root.rootName));x[Mx("0x4")]>0&&o[Mx("0x73")](x);for(const t of s)t[Mx("0x1c")]()}))}function c(t,e){return e[Mx("0x1e")]((e=>t[Mx("0x21")]((t=>t.end[Mx("0x69")](e[Mx("0x3b")])||e.end[Mx("0x69")](t[Mx("0x3b")])))))}function l(t,e){return t[Mx("0x21")]((t=>e[Mx("0x21")]((e=>t[Mx("0x40")][Mx("0x78")](e[Mx("0x3b")])))))}t.data[Mx("0x11")].on(Mx("0x70"),((t,e,n)=>{if(!n[Mx("0x5a")].showSuggestionHighlights)return;const o=e[Mx("0x77")];if(!o)return;const s=n[Mx("0x6")][Mx("0x81")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x6e")===o[Mx("0x34")]&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n.addClass(r(e[Mx("0x12")]),t)),((t,e,n)=>n[Mx("0x14")](r(e.classes),t)))}),{priority:Mx("0x3")}),o[Mx("0x13")][Mx("0x1a")]((t=>{if(Mx("0x25")!=t[Mx("0x4a")]&&"deletion"!=t[Mx("0x4a")])return;const e=t[Mx("0x3d")]();if(null!=e&&e.is(Mx("0x48"),Mx("0x62"))){if(Mx("0x25")==t[Mx("0x4a")]){const e=t[Mx("0x24")]().filter((t=>t.is(Mx("0x4b")))).map((t=>t[Mx("0x15")]));if(e[Mx("0x4")])return{type:"insertion",content:Yo(n,Mx("0x5f"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x26")](" ")+'"'))}}if(Mx("0x45")==t[Mx("0x4a")]){const e=t[Mx("0x24")]().filter((t=>t.is("$textProxy")))[Mx("0x42")]((t=>t[Mx("0x15")]));if(e[Mx("0x4")])return{type:"deletion",content:Yo(n,Mx("0x5d"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x26")](" ")+'"'))}}}})),o[Mx("0x13")].registerDescriptionCallback((t=>{if("tableRow"==t[Mx("0x7b")]){const e=t[Mx("0x24")]().filter((t=>t.is(Mx("0x4b")))).map((t=>t[Mx("0x15")])),o=this[Mx("0x32")](t),s=o.maxRow-o[Mx("0x6d")]+1;if("insertion"==t[Mx("0x4a")])return e[Mx("0x4")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x46"),[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x25"),content:Yo(n,Mx("0x5f"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x45")==t[Mx("0x4a")])return e[Mx("0x4")]?{type:"deletion",content:Yo(n,Mx("0x5d"),Yo(n,Mx("0x46"),[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x45"),content:Yo(n,Mx("0x5d"),Yo(n,Mx("0x18"),s))}}if(Mx("0x5")==t[Mx("0x7b")]){const e=t[Mx("0x24")]()[Mx("0x72")]((t=>t.is("$textProxy"))).map((t=>t[Mx("0x15")])),o=this[Mx("0x32")](t),s=o[Mx("0x47")]-o[Mx("0x19")]+1;if(Mx("0x25")==t[Mx("0x4a")])return e[Mx("0x4")]?{type:Mx("0x25"),content:Yo(n,Mx("0x5f"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x25"),content:Yo(n,Mx("0x5f"),Yo(n,Mx("0x29"),s))};if(Mx("0x45")==t[Mx("0x4a")])return e[Mx("0x4")]?{type:Mx("0x45"),content:Yo(n,Mx("0x5d"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x45"),content:Yo(n,Mx("0x5d"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Mx("0x2d")][Mx("0x9")](Mx("0x25"),Mx("0x7a"),"discard",r),o[Mx("0x2d")][Mx("0x9")](Mx("0x45"),Mx("0x7a"),Mx("0x2e"),r),o[Mx("0x2d")][Mx("0x9")](Mx("0x25"),Mx("0x5"),"discard",a),o[Mx("0x2d")][Mx("0x9")](Mx("0x45"),Mx("0x5"),Mx("0x2e"),a),o._suggestionFactory.registerCustomCallback(Mx("0x25"),Mx("0x5"),Mx("0x26"),c),o[Mx("0x2d")][Mx("0x9")](Mx("0x45"),"tableColumn",Mx("0x26"),c),o._suggestionFactory.registerCustomCallback(Mx("0x25"),Mx("0x7a"),Mx("0x26"),l),o._suggestionFactory[Mx("0x9")]("deletion","tableRow","join",l)}[Mx("0x6c")](){const t=this[Mx("0xc")],e=t.model.document[Mx("0x59")];return(n,o)=>{t.model[Mx("0x30")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x40")].nodeBefore;x&&x[0]&&!1===x[0][Mx("0x6b")]&&(a=n[0][Mx("0x3b")].nodeAfter);const c=s[Mx("0x5c")](a);if(Mx("0x3c")==c[Mx("0x82")].rootName)return;const l=Array[Mx("0x17")](e[Mx("0x65")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x27")](t)));s[Mx("0x73")](c),t[Mx("0x61")][Mx("0x22")](r)[Mx("0x76")](),x[Mx("0x71")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x72")]((t=>"$graveyard"!=t.root[Mx("0x66")]));d.length>0&&s[Mx("0x73")](d);for(const t of l)t[Mx("0x1c")]()}))}}[Mx("0x67")](t){const e=this[Mx("0xc")][Mx("0x6f")][Mx("0x22")]("TableUtils");let n=Number[Mx("0x44")],o=Number[Mx("0x60")],s=Number[Mx("0x44")],r=Number[Mx("0x60")];for(const i of t){if(Mx("0x3c")==i[Mx("0x82")][Mx("0x66")])continue;const{row:t,column:x}=e[Mx("0x1d")](i),a=i[Mx("0x10")](Mx("0x64"))?i.getAttribute(Mx("0x64"))-1:0,c=i[Mx("0x10")]("colspan")?i[Mx("0x5b")](Mx("0x2b"))-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.editor,e=t.plugins[Mx("0x22")](Mx("0x63")),n=t.plugins.get(Mx("0x37"));t[Mx("0x51")][Mx("0x5e")].on(Mx("0xf"),(()=>{const n=Array[Mx("0x17")](t[Mx("0x51")][Mx("0x5e")][Mx("0x3a")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(Mx("0x35")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x68")][Mx("0x55")](r)&&this[Mx("0x54")][Mx("0x7f")](i)}}),{priority:Mx("0x74")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x80")](t),r=t[Mx("0x6a")](Mx("0x62")),i=n[Mx("0x1d")](t);for(const e of this[Mx("0x54")]){const n=e[Mx("0x7b")],x=n[Mx("0x1f")](Mx("0xd")),a=n.substr(x?10:5),c=a[Mx("0x2")](),l=c[Mx("0xa")](0,3)+Mx("0x7e"),d="min"+a,u=Mx("0x4c")+a;if(!e[Mx("0x0")])continue;if(r!=e.getFirstRange()[Mx("0x3b")][Mx("0x6a")](Mx("0x62")))continue;if(e[Mx("0x2c")](s))continue;const g=t[Mx("0x10")](l)?t.getAttribute(l)-1:0,m=this[Mx("0x32")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Mx("0x51")][Mx("0x5e")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x51")].document[Mx("0x3a")].getChanges())if(Mx("0x4e")==s[Mx("0x4a")])if(Mx("0x7a")==s[Mx("0x34")])for(const t of s.position[Mx("0x79")].getChildren())n=n||o(t,e);else Mx("0x6e")==s[Mx("0x34")]&&(n=n||o(s[Mx("0x58")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0x67")](t[Mx("0x65")]()[Mx("0x42")]((t=>t[Mx("0x3b")][Mx("0x79")])))}}function Ox(t){return Array[Mx("0x17")](new Set(t)[Mx("0x4f")]())}const Fx=["createRangeOn","getRanges","locale","_areSelectedCellsMergable","isInContent","selection","stop","find","execute","return","low","model","tableCell","isEnabled","add","requires","direction","has","enableCommand","_areMergableCells","commands","_isForcedDefaultExecutionBlock","accept","registerCustomCallback","TableUtils","subType","*Merge cells*","change","findAncestor","splitTableCellHorizontally","createTableWalker","highest","_suggestionFactory","filter","root","markMultiRangeBlockFormat","commandName","*Split cell:* vertically","*Split cell:* horizontally","registerDescriptionCallback","push","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","editor","cell","getAncestors","length","element","getSuggestions","value","mergeTableCellDown","format","document","_descriptionFactory","TableEditing","map","formatBlock","get","size","rootName","getFirstPosition","TrackChangesEditing","setSelection","plugins","type","mergeTableCellUp","forceDefaultExecution","horizontally","mergeTableCellLeft","from","mergeTableCellRight","trackChanges","splitTableCellVertically","author","afterInit","mergeTableCells","detach","containsRange","$graveyard"];var Px,Dx;Px=Fx,Dx=383,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("0x1b")](){return[wx]}[Bx("0x7")](){const t=this[Bx("0x37")],e=t[Bx("0x17")][Bx("0x40")].selection,n=t[Bx("0xe")];if(!t[Bx("0x4b")][Bx("0x1d")](Bx("0x42")))return;const o=t.plugins[Bx("0x45")]("TrackChangesEditing"),s=t[Bx("0x4b")][Bx("0x45")](Bx("0x24")),r=t[Bx("0x4b")][Bx("0x45")](wx);r._tablePostFixingSubtypes[Bx("0x34")](Bx("0x8")),o[Bx("0x1e")](Bx("0x8"),(()=>{const e=s[Bx("0x35")](t[Bx("0x17")][Bx("0x40")][Bx("0x11")]);t[Bx("0x17")][Bx("0x27")]((()=>{o[Bx("0x2f")](e,{commandName:Bx("0x8"),commandParams:[]},[],Bx("0x8"))}))})),t[Bx("0x20")][Bx("0x45")]("mergeTableCells").on(Bx("0x14"),((e,n)=>{t[Bx("0x20")][Bx("0x45")](Bx("0x4")).value&&(n[Bx("0x3a")]>0&&n[n[Bx("0x3a")]-1]&&n[n[Bx("0x3a")]-1][Bx("0x4e")]||o[Bx("0x21")]||this[Bx("0xf")]()||e[Bx("0x12")]())}),{priority:Bx("0x2b")});for(const e of[Bx("0x4d"),Bx("0x3"),Bx("0x3e"),"mergeTableCellLeft"]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t.model.document.selection.getFirstPosition()[Bx("0x39")]()[Bx("0x13")]((t=>t.is(Bx("0x3b"),Bx("0x18")))),s=n.value;t.model.change((()=>{o[Bx("0x2f")]([e,s],{commandName:Bx("0x8"),commandParams:[]},[],Bx("0x8"))}))}))}for(const e of[Bx("0x5"),Bx("0x29")]){const n=t[Bx("0x20")].get(e);o[Bx("0x1e")](e,(()=>{const r=s[Bx("0x35")](t.model.document.selection)[0],i=r[Bx("0x28")]("table"),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x0")==n[Bx("0x1c")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x2")](t)[Bx("0x43")]((t=>t[Bx("0x38")]))}else{const t=s[Bx("0x2a")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x2")](t)[Bx("0x43")]((t=>t[Bx("0x38")]))}t[Bx("0x17")][Bx("0x27")]((t=>{o.markBlockFormat(t[Bx("0xc")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x33")]((t=>{const{data:e}=t;if(e)return Bx("0x8")==e[Bx("0x30")]?{type:Bx("0x3f"),content:Yo(n,Bx("0x26"))}:void 0})),o[Bx("0x41")][Bx("0x33")]((t=>{const{data:e}=t;if(e)return Bx("0x5")==e[Bx("0x30")]?{type:Bx("0x3f"),content:Yo(n,Bx("0x31"))}:Bx("0x29")==e.commandName?{type:Bx("0x3f"),content:Yo(n,Bx("0x32"))}:void 0}));const x=r[Bx("0x36")]();for(const t of["mergeTableCellUp",Bx("0x3"),Bx("0x3e"),Bx("0x1")])o[Bx("0x2c")][Bx("0x23")](Bx("0x44"),t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x29")])o[Bx("0x2c")][Bx("0x23")](Bx("0x44"),t,Bx("0x22"),x);o[Bx("0x2c")][Bx("0x23")]("formatBlock",Bx("0x8"),Bx("0x22"),(n=>{t[Bx("0x17")][Bx("0x27")]((o=>{const s=Array.from(e[Bx("0xd")]())[Bx("0x43")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x4a")](n),t.commands.get("mergeTableCells").refresh(),t[Bx("0x14")](Bx("0x8"),{forceDefaultExecution:!0});const r=s[Bx("0x2d")]((t=>Bx("0xb")!=t[Bx("0x2e")][Bx("0x47")]));r[Bx("0x3a")]>0&&o[Bx("0x4a")](r);for(const t of s)t[Bx("0x9")]()}))}));for(const e of[Bx("0x4d"),Bx("0x3e"),Bx("0x1"),Bx("0x3")]){const n=t.commands[Bx("0x45")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model[Bx("0x40")][Bx("0x11")][Bx("0x48")]()[Bx("0x39")]().find((t=>t.is(Bx("0x3b"),"tableCell")));this._areMergableCells(n[Bx("0x3d")],o)||(e[Bx("0x15")]=!1,e[Bx("0x12")]())}}),{priority:Bx("0x16")})}}_areSelectedCellsMergable(){const t=this[Bx("0x37")][Bx("0x20")][Bx("0x45")]("mergeTableCells"),e=this[Bx("0x37")][Bx("0x4b")][Bx("0x45")](Bx("0x24"));if(!t[Bx("0x19")])return!1;const n=e[Bx("0x35")](this.editor[Bx("0x17")][Bx("0x40")][Bx("0x11")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x1f")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x37")][Bx("0x4b")].get(Bx("0x49")),o=this[Bx("0x37")][Bx("0x17")][Bx("0xc")](t),s=this[Bx("0x37")][Bx("0x17")][Bx("0xc")](e),r=new Set,i=new Set;for(const t of n[Bx("0x3c")]())if(("insertion"==t[Bx("0x4c")]||"deletion"==t[Bx("0x4c")]||"mergeTableCells"==t[Bx("0x25")])&&t[Bx("0x10")])for(const e of t[Bx("0xd")]())e[Bx("0xa")](o,!0)&&r.add(t.type+":"+t[Bx("0x6")].id),e.containsRange(s,!0)&&i[Bx("0x1a")](t.type+":"+t[Bx("0x6")].id);if(r[Bx("0x46")]!=i[Bx("0x46")])return!1;for(const t of r)if(!i[Bx("0x1d")](t))return!1;return!0}}const Ux=["unbindElementFromMarkerName","FORMAT_REGULAR_COLUMN","TrackChangesEditing","showSuggestionHighlights","toViewElement","change","_descriptionFactory","FORMAT_REGULAR_ROW","nodeAfter","requires","last","accept","commands","locale","commandParams","markerNameToElements","parent","registerCustomCallback","createPositionAfter","afterInit","TableUtils","removeClass","highest","FORMAT_HEADER_ROW","_splitMarkerName","first","markBlockFormat","downcastDispatcher","setAttribute","_suggestionFactory","enableCommand","registerDescriptionCallback","markerName","getChild","formatBlock","getSelectionAffectedTableCells","end","has","activeMarkers","data","removeMarker:suggestion","markerRange","ck-suggestion-marker--active","_acceptFormatSuggestionCallbackFactory","createRange","getRowIndexes","childCount","writer","commandName","consume","forceValue","table","from","mapper","item","getSuggestion","start","findAncestor","addClass","cell","index","model","document","includes","data-suggestion","TableEditing","getCellLocation","value","setTableRowHeader","createPositionBefore","addMarker:suggestion","createTableWalker","getAttribute","name","headingRows","plugins","editing","get","getColumnIndexes","setTableColumnHeader","format"];var Gx,Hx;Gx=Ux,Hx=391,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x17")](){return[wx]}[zx("0x21")](){const t=this.editor;if(!t[zx("0x8")][zx("0x33")](zx("0x4f")))return;const e=t[zx("0x1b")],n=t[zx("0x8")].get(zx("0x10")),o=t[zx("0x8")][zx("0xa")](zx("0x22")),s=t.plugins[zx("0xa")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x26")](r[zx("0x2e")]),c=n[zx("0x45")](a);if(!c[zx("0x35")]||zx("0xc")!=c.data[zx("0x3e")])return;if(r[zx("0x44")])return void s.stop();if(!i.consumable[zx("0x3f")](r[zx("0x37")],s[zx("0x6")]))return;const l=r[zx("0x37")][zx("0x46")][zx("0x16")],d=r[zx("0x37")][zx("0x32")].nodeBefore,u=l[zx("0x1e")][zx("0x1e")],{column:g}=o[zx("0x50")](l),{column:m}=o[zx("0x50")](d);for(let s=g;s<=m;s++){const c=o[zx("0x4")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x49")],c=i[zx("0x43")][zx("0x12")](s);i[zx("0x3d")][zx("0x48")]("ck-suggestion-marker-"+x,c),e&&i.writer[zx("0x2a")](zx("0x4e"),a,c),i[zx("0x43")].bindElementToMarker(c,r[zx("0x2e")]),t&&(n[zx("0x34")][zx("0x4d")](r[zx("0x2e")])?i.writer[zx("0x48")]("ck-suggestion-marker--active",c):i.writer[zx("0x23")](zx("0x38"),c))}}}}n[zx("0x2c")](zx("0x1"),((e,s)=>{const r=o[zx("0x31")](t[zx("0x4b")][zx("0x4c")].selection),i=o[zx("0x3b")](r),x=r[0].findAncestor(zx("0x41")),a=x[zx("0x5")](zx("0x7"))||0,c=s&&null!==s[zx("0x40")]?s[zx("0x40")]:!t[zx("0x1a")].get(zx("0x1"))[zx("0x0")],l=c?i[zx("0x18")]:i[zx("0x27")],d=x[zx("0x2f")](l);let u;if(c){const e=x[zx("0x2f")](a);if(d.index<e[zx("0x4a")])return;u=t[zx("0x4b")][zx("0x3a")](t[zx("0x4b")][zx("0x2")](e[zx("0x2f")](0)),t[zx("0x4b")][zx("0x20")](d[zx("0x2f")](d[zx("0x3c")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[zx("0x4b")][zx("0x3a")](t[zx("0x4b")].createPositionBefore(d[zx("0x2f")](0)),t[zx("0x4b")].createPositionAfter(e.getChild(e[zx("0x3c")]-1)))}t[zx("0x4b")][zx("0x13")]((()=>{n[zx("0x28")](u,{commandName:zx("0x1"),commandParams:[{forceValue:c}]},[],zx("0x1"))}))})),n[zx("0x2c")](zx("0xc"),((e,o)=>{const s=t.plugins[zx("0xa")]("TableUtils"),r=s[zx("0x31")](t[zx("0x4b")].document.selection),i=s[zx("0xb")](r),x=r[0][zx("0x47")](zx("0x41")),a=x.getAttribute("headingColumns")||0,c=o&&null!==o[zx("0x40")]?o[zx("0x40")]:!t[zx("0x1a")][zx("0xa")]("setTableColumnHeader")[zx("0x0")];let l;const d=x.getChild(0),u=c?i[zx("0x18")]:i[zx("0x27")],g=s[zx("0x4")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x42")](g)[0][zx("0x49")];if(c){const e=d[zx("0x2f")](a);if(m.isBefore(e))return;l=t[zx("0x4b")][zx("0x3a")](t[zx("0x4b")][zx("0x2")](e),t.model[zx("0x20")](m))}else{const e=d[zx("0x2f")](a-1);if(!e)return;l=t[zx("0x4b")][zx("0x3a")](t[zx("0x4b")].createPositionBefore(m),t.model[zx("0x20")](e))}t.model.change((()=>{n[zx("0x28")](l,{commandName:zx("0xc"),commandParams:[{forceValue:c}]},[],zx("0xc"))}))})),t[zx("0x9")][zx("0x29")].on(zx("0x3"),r(),{priority:zx("0x24")}),t[zx("0x35")][zx("0x29")].on("addMarker:suggestion",((t,e,n)=>{n.options[zx("0x11")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x24")}),t[zx("0x9")][zx("0x29")].on(zx("0x36"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x26")](e.markerName),i=n.getSuggestion(r);if(!i[zx("0x35")]||zx("0xc")!=i[zx("0x35")].commandName)return;const x=o[zx("0x43")][zx("0x1d")](e[zx("0x2e")]);if(x)for(const t of x)o[zx("0x3d")][zx("0x23")]("ck-suggestion-marker-"+s,t),o[zx("0x3d")][zx("0x23")](zx("0x38"),t),o.writer.removeAttribute(zx("0x4e"),t),o.mapper[zx("0xe")](t,e[zx("0x2e")])}),{priority:"highest"}),n[zx("0x14")][zx("0x2d")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[zx("0x3e")]){const t=n[zx("0x1c")][0][zx("0x40")];return o(Yo(e,zx(t?"0x25":"0x15")))}if(zx("0xc")==n[zx("0x3e")]){const t=n[zx("0x1c")][0][zx("0x40")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0xf")))}}function o(t){return{type:zx("0xd"),content:Yo(e,"*Format:* %0",t)}}}));const i=s[zx("0x39")]();n[zx("0x2b")][zx("0x1f")](zx("0x30"),zx("0x1"),zx("0x19"),i),n[zx("0x2b")][zx("0x1f")](zx("0x30"),zx("0xc"),zx("0x19"),i)}}const Vx=["_tablePostFixingSubtypes","redo","markMultiRangeDeletion","registerPostFixer","getSuggestion","getRowIndexes","discard","ck-suggestion-marker","getChangedMarkers","dataDowncast","getRanges","*Replace table cells*","Users","commands","removeMarkers","name","findAncestor","createRangeIn","fromEntries","push","return","accept","next","createElement","register","high","createTableWalker","has","suggestionLoaded","deletionRanges","TrackChangesEditing","suggestion-td","rows","suggestion:formatBlock:tablePasteCell","tableCellBorderColor","_suggestionFactory","previous","getColumns","setAttribute","stop","model","tableCellBorderWidth","editor","tableCellHorizontalAlignment","cells","getItems","registerDescriptionCallback","_descriptionFactory","low","createPositionBefore","schema","locale","set","markMultiRangeInsertion","paragraph","attributes","insertionRanges","updateMarker","tablePasteChainId","suggestion","listenTo","getRange","selection","every","tablePasteRow","remove","getAllAdjacentSuggestions","removeMarker","registerCustomCallback","insertRows","getMarkers","map","nextSibling","element","removeColumns","filter","markMultiRangeBlockFormat","tableCell","_getCoordsForCells","document","editingDowncast","from","wrap","createRange","oldRange","rowInsertionRanges","getAttributes","author","find","hasSuggestion","showSuggestionHighlights","join","first","createRangeOn","value","tableCellPadding","isEqual","columnInsertionIndexes","$graveyard","getShiftedBy","TableClipboard","nodeAfter","differ","change","rowInsertionIndexes","conversion","end","columns","plugins","editing","content","cell","entries","tableCellSuggestion","insertion","view","getSuggestions","getChildren","some","columnInsertionRanges","deletion","isEmpty","tablePasteColumn","start","getSelectionAffectedTableCells","tablePaste","insertColumns","markerName","ck-suggestion-marker--active","suggestionUnloaded","reduce","insertContent","unwrap","includes","isInContent","getChanges","newRange","endRow","forceDefaultExecution","markerToHighlight","getChild","table","last","fill","trackChanges","for","_splitMarkerName","column","tablePasteCell","subType","options","startsWith","length","formatBlock","get","add","type","previousSibling","position","insert","markerAttributes","elementToElement","getContainedElement"];var Kx,qx;Kx=Vx,qx=439,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x5b"),Xx("0x54"),"tableCellBorderStyle",Xx("0x5d"),"tableCellVerticalAlignment","tableCellBackgroundColor",Xx("0x91")],Jx=Object[Xx("0x44")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}afterInit(){const t=this[Xx("0x5c")];if(!t[Xx("0x9e")][Xx("0x4d")]("TableClipboard"))return;const n=t[Xx("0x9e")].get(Xx("0x50")),o=t[Xx("0x9e")][Xx("0x29")]("TableUtils"),s=t[Xx("0x9e")][Xx("0x29")](wx),r=t[Xx("0x9e")][Xx("0x29")]("TableClipboard");s[Xx("0x32")][Xx("0x45")](Xx("0x72"),Xx("0x9")),t.model[Xx("0x64")][Xx("0x4a")]("tableCellSuggestion",{allowIn:Xx("0x7f"),allowContentOf:Xx("0x7f"),isLimit:!0}),t[Xx("0x9b")][Xx("0x30")]({model:Xx("0x0"),view:Xx("0x51")});let i=null;t[Xx("0x5a")].on(Xx("0x12"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x27")]-1];l&&l[Xx("0x19")]||n._isForcedDefaultExecutionBlock||this[Xx("0x5c")][Xx("0x3f")][Xx("0x29")](Xx("0x1f"))[Xx("0x90")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0xb")](n[Xx("0x81")][Xx("0x70")]);if(!i.length)return!1;const x=i[0].findAncestor("table"),a=o[Xx("0x37")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x8e")],endRow:a[Xx("0x1d")],startColumn:c[Xx("0x8e")],endColumn:c.last};return 1==i.length&&(l[Xx("0x18")]+=o.getRows(r)-1,l.endColumn+=o[Xx("0x57")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x59")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x5a")][Xx("0x99")]((()=>{t.model[Xx("0x12")](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("0x27")]&&n[Xx("0x67")](s,Xx("0x72"),{tablePasteChainId:o}),r.length&&n[Xx("0x67")](r,Xx("0x9"),{tablePasteChainId:o}),a.length&&n[Xx("0x67")](a,Xx("0xc"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x27")]&&n[Xx("0x34")](c,Xx("0xc"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x7e")](l[Xx("0x79")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x23"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x8f")](o),i=e.find((t=>t[Xx("0x6f")]()[Xx("0x92")](r)));i&&n[Xx("0x45")]([i[Xx("0x41")],s])}n[Xx("0x27")]&&d[Xx("0x58")](Xx("0x2f"),Object[Xx("0x44")](n))}i=null})))}),{priority:e.priorities[Xx("0x4b")]+10}),t[Xx("0x9e")][Xx("0x29")](Xx("0x96")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x59")]();const r=n[Xx("0xa1")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x46")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x1b")](0));for(const t of Array[Xx("0x83")](x.getChildren()))s[Xx("0x2e")](t,r,Xx("0x9c"));const t=i[Xx("0x9a")].includes(n.row),e=i.columnInsertionIndexes[Xx("0x14")](n[Xx("0x22")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s.createRangeIn(r));else{const t=s.createElement(Xx("0x0")),e=s[Xx("0x49")](Xx("0x0"));s[Xx("0x84")](s[Xx("0x43")](r),e),s[Xx("0x2e")](t,r,0);for(const e of Array[Xx("0x83")](x[Xx("0x4")]()))s[Xx("0x2e")](e,t,"end");l=s.createRangeOn(t),d=s[Xx("0x8f")](e)}const u=Array[Xx("0x83")](x[Xx("0x88")]())[Xx("0x7d")]((([t])=>$x[Xx("0x14")](t)));i[Xx("0x5e")][Xx("0x45")]({element:r,attributes:u[Xx("0x27")]?Object[Xx("0x44")](u):null}),l&&i[Xx("0x6a")][Xx("0x45")](l),d&&i[Xx("0x4f")][Xx("0x45")](d)}),{priority:Xx("0x4b")}),o.on(Xx("0xd"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x9d")]||1;i[Xx("0x93")]=new Array(a)[Xx("0x1e")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4c")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x6")][Xx("0x45")](t[Xx("0x5a")][Xx("0x8f")](e))}),{priority:Xx("0x62")}),o.on(Xx("0x77"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x52")]||1;i[Xx("0x9a")]=new Array(a)[Xx("0x1e")](x)[Xx("0x79")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4c")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x87")][Xx("0x45")](t[Xx("0x5a")][Xx("0x8f")](e))}),{priority:Xx("0x62")}),n[Xx("0x61")][Xx("0x60")]((e=>{if(e.subType&&e[Xx("0x24")][Xx("0x26")](Xx("0xc")))return e[Xx("0x56")]?{}:{type:Xx("0x1"),content:Yo(t[Xx("0x65")],Xx("0x3d"))}}));const x=()=>{};for(const t of["tablePaste",Xx("0x9"),"tablePasteRow",Xx("0x23")])n[Xx("0x55")][Xx("0x76")]("insertion",t,Xx("0x8d"),x),n[Xx("0x55")][Xx("0x76")]("deletion",t,"join",x);n[Xx("0x55")].registerCustomCallback(Xx("0x28"),Xx("0x23"),"discard",x),n._suggestionFactory.registerCustomCallback(Xx("0x28"),"tablePasteCell",Xx("0x47"),((e,n,o)=>{const s=e[Xx("0x79")]((t=>t[Xx("0x31")]())).filter((t=>t)),r=new Map(s[Xx("0x79")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x5e")])e&&r[Xx("0x66")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0xa2")](o[Xx("0x2f")])){const o=t[Xx("0x5a")].markers[Xx("0x29")](e),s=o?o[Xx("0x6f")]()[Xx("0x31")]():null;s&&r[Xx("0x66")](s,n)}t[Xx("0x5a")][Xx("0x99")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Xx("0x76")](e,"tablePaste",o,((s,r,i)=>{t.model[Xx("0x99")]((t=>{const x=[];for(const t of s){const e=t[Xx("0xa")][Xx("0x97")];e.is(Xx("0x7b"),Xx("0x0"))&&x[Xx("0x45")](e)}n[Xx("0x55")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x94")!=e.root.rootName&&t.unwrap(e)}))}))};a("insertion",Xx("0x47")),a(Xx("0x1"),"discard"),a(Xx("0x7"),Xx("0x47")),a("deletion",Xx("0x38")),n[Xx("0x55")].registerCustomCallback("insertion",Xx("0x72"),Xx("0x38"),(t=>{const e=t.map((t=>t[Xx("0x31")]())),n=e[0][Xx("0x42")]("table"),{minRow:r,maxRow:i}=s[Xx("0x80")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x55")][Xx("0x76")]("insertion",Xx("0x9"),"discard",(t=>{const e=t[Xx("0x79")]((t=>t.getContainedElement())),n=e[0][Xx("0x42")](Xx("0x1c")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x7c")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x24")]||!e.subType[Xx("0x26")]("tablePaste"))return;const o=e[Xx("0x69")][Xx("0x6c")],s=n[Xx("0x3")]().filter((t=>t[Xx("0x15")]&&t[Xx("0x69")]&&t[Xx("0x69")].tablePasteChainId==o));s[Xx("0x27")]&&e.getAllAdjacentSuggestions()[Xx("0x27")]!=s[Xx("0x27")]&&s[Xx("0x11")](((t,e)=>(t[Xx("0x48")]=e,e[Xx("0x56")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x21")](t[Xx("0xe")]),s=[Xx("0x39"),"ck-suggestion-marker-insertion"],r=n.activeMarkers.includes(t[Xx("0xe")]);return r&&s.push(Xx("0xf")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x4e"),c,{priority:Xx("0x4b")}),n.on(Xx("0x10"),c,{priority:Xx("0x4b")}),t[Xx("0x5a")][Xx("0x81")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x83")](t[Xx("0x5a")][Xx("0x81")][Xx("0x98")][Xx("0x3a")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x21")](s);if(Xx("0x6d")!=o||Xx("0x7")!=i||r[Xx("0x86")])continue;if(!n[Xx("0x8b")](x))continue;const a=n[Xx("0x36")](x)[Xx("0x3c")](),c=t.plugins.get(Xx("0x3e")).me;for(const t of n.getSuggestions())if(t[Xx("0x15")]&&t.author==c&&Xx("0x28")==t[Xx("0x2b")]&&Xx("0x23")==t.subType&&t[Xx("0x3c")]()[Xx("0x71")]((t=>a[Xx("0x5")]((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0x74")]())n[Xx("0x15")]&&(n[Xx("0x38")](),e=!0)}return e})),t.model[Xx("0x81")].registerPostFixer((e=>{const o=t.commands[Xx("0x29")](Xx("0x33"));if(!o||!o._createdBatches.has(e.batch))return!1;let s=!1;const r=t.plugins[Xx("0x29")](Xx("0x3e")).me,i=t.model[Xx("0x81")].differ[Xx("0x16")](),x=Array[Xx("0x83")](t[Xx("0x5a")][Xx("0x81")][Xx("0x98")].getChangedMarkers())[Xx("0x7d")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x21")](t);return Xx("0x6d")==o&&Xx("0xc")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xx("0x2e")!=t[Xx("0x2b")]||Xx("0x0")!=t[Xx("0x41")]||1!=t[Xx("0x27")])continue;const n=e[Xx("0x85")](t[Xx("0x2d")],t[Xx("0x2d")][Xx("0x95")](1));if(!x[Xx("0x8a")]((({data:t})=>t[Xx("0x17")][Xx("0x92")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x17")])){e[Xx("0x6b")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x81")][Xx("0x35")]((e=>{let o=!1;const s=t.plugins.get(Xx("0x3e")).me,r=n[Xx("0x3")]()[Xx("0x7d")]((t=>t[Xx("0x15")]&&t[Xx("0x89")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0xc")==t.subType)for(const e of t[Xx("0x78")]()){const n=e[Xx("0x6f")]()[Xx("0x31")]();if(n)if(n.is(Xx("0x7b"),Xx("0x0"))&&Zx(n)){t[Xx("0x75")](e.name),i.add(n),o=!0;const s=n[Xx("0x7a")],r=n[Xx("0x2c")],a=s&&s.is(Xx("0x7b"),Xx("0x0")),c=r&&r.is(Xx("0x7b"),Xx("0x0"));a&&!i[Xx("0x4d")](s)&&x[Xx("0x2a")](s),c&&!i[Xx("0x4d")](r)&&x[Xx("0x2a")](r)}else n.is(Xx("0x7b"),Xx("0x68"))&&n[Xx("0x8")]&&(t.removeMarker(e[Xx("0x41")]),o=!0)}else if(Xx("0x23")==t[Xx("0x24")]){if(!t[Xx("0x69")]||!t.attributes.tablePasteChainId)continue;const e=t[Xx("0x69")][Xx("0x2f")];if(e&&Object.keys(e)[Xx("0x27")])continue;const n=t[Xx("0x69")][Xx("0x6c")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x24")]&&e.subType[Xx("0x26")]("tablePaste")){if(!e[Xx("0x69")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Xx("0x69")][Xx("0x6c")]==n){s=!1;break}}i&&s&&(t[Xx("0x40")](),o=!0)}for(const t of i)e[Xx("0x73")](t);for(const t of x)e[Xx("0x13")](t);return o})),t[Xx("0x9b")][Xx("0x20")](Xx("0x82"))[Xx("0x1a")]({model:Xx("0x53"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0x9b")][Xx("0x20")](Xx("0x3b"))[Xx("0x1a")]({model:Xx("0x53"),view:(t,e)=>e[Xx("0x25")][Xx("0x8c")]?l(t,!1):null,converterPriority:Xx("0x4b")});const d=t[Xx("0x9f")][Xx("0x2")];this[Xx("0x6e")](d[Xx("0x81")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Xx("0x43")](e[Xx("0xa0")])[Xx("0x5f")]())t.is(Xx("0x7b"),Xx("0x51"))&&n[Xx("0x45")](t);d[Xx("0x99")]((t=>{for(const e of n)t.move(t[Xx("0x43")](e),t[Xx("0x63")](e)),t[Xx("0x73")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x1b")](0);return e.is(Xx("0x7b"),Xx("0x68"))&&e[Xx("0x8")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x4c")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["get","document","_suggestionFactory","model","enableCommand","getContainedElement","resizeTable","getSuggestions","columnWidths","markBlockFormat","editor","getTableColumnsWidths","TableColumnResizeEditing","formatGroupId","plugins","accept","afterInit","bind","TrackChangesEditing","registerCustomCallback","has","getSelectedElement","data","commandParams","getSuggestionCallback","formatBlock","getColumnGroupElement","registerDescriptionCallback","tableWidth","discard","*Format:* resize table","handleResizeTableWidthCommand"];var ea,na;ea=ta,na=329,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x7")](){if(!this[oa("0x1")][oa("0x5")][oa("0xb")](oa("0x3")))return;const t=this.editor[oa("0x5")][oa("0x17")](oa("0x9"));t[oa("0x1b")]("resizeTableWidth",this[oa("0x16")][oa("0x8")](this)),t.enableCommand("resizeColumnWidths",this[oa("0x16")][oa("0x8")](this)),t[oa("0x19")][oa("0xa")](oa("0x10"),oa("0x1d"),oa("0x6"),t[oa("0x19")][oa("0xf")](oa("0x10"),null,"discard")),t._suggestionFactory[oa("0xa")]("formatBlock",oa("0x1d"),oa("0x14"),t._suggestionFactory.getSuggestionCallback(oa("0x10"),null,"accept")),t._descriptionFactory[oa("0x12")](this.handleSuggestionDescription[oa("0x8")](this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x1")][oa("0x5")][oa("0x17")]("TrackChangesEditing"),o=this[oa("0x1")][oa("0x5")][oa("0x17")]("TableColumnResizeEditing"),s=e.table||this[oa("0x1")][oa("0x1a")][oa("0x18")].selection[oa("0xc")]();this.editor[oa("0x1a")].change((()=>{const r=o[oa("0x11")](s);let i=r?o[oa("0x2")](r):null,x=s.getAttribute(oa("0x13"))||null;const a=e[oa("0x13")]||x,c=e[oa("0x1f")]||i,l=this[oa("0x1")][oa("0x5")][oa("0x17")]("Users").me;for(const t of n[oa("0x1e")]()){const e=t[oa("0x1c")]();if("resizeTable"===t.subType&&e===s){t.author!==l&&t[oa("0x14")]();const e=t[oa("0xd")][oa("0xe")];x=e[0][oa("0x13")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x0")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1d")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x1d")===e[oa("0x4")]){const t=oa("0x15");return{type:"format",content:Yo(this[oa("0x1")].locale,t)}}}}const ra=["TrackChangesEditing","enableCommand","Template","insertTemplate","get","has","afterInit","plugins"];var ia,xa;ia=ra,xa=192,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.plugins[aa("0x5")](aa("0x2"))&&t[aa("0x7")][aa("0x4")](aa("0x0"))[aa("0x1")](aa("0x3"))}}const la=["tableOfContents","ELEMENT_TABLE_OF_CONTENTS","TrackChangesEditing","commands","plugins","enableCommand","editor","locale","_descriptionFactory","afterInit","insertTableOfContents","get"];var da,ua;da=la,ua=218,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x7")](){const t=this[ga("0x4")];if(!t[ga("0x1")][ga("0x9")]("insertTableOfContents"))return;t[ga("0x2")][ga("0x9")](ga("0x0"))[ga("0x3")](ga("0x8"));const e=t[ga("0x2")][ga("0x9")](ga("0x0")),n=t[ga("0x5")];e[ga("0x6")].registerElementLabel(ga("0xa"),(t=>Yo(n,ga("0xb"),t)))}}const fa=["newRange","title-content","registerElementLabel","element","_descriptionFactory","removeMarker","TrackChangesEditing","differ","isTouching","registerPostFixer","getChangedMarkers","ELEMENT_TITLE","forward","schema","afterInit","isCollapsed","createRange","document","get","plugins","start","updateMarker","locale","model","from","Title","end","suggestion","getNearestSelectionRange","isEqual"];var ha,pa;ha=fa,pa=336,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.editor;if(!t[ba("0xd")].has(ba("0x13")))return;const e=t[ba("0xd")][ba("0xc")](ba("0x0"));e[ba("0x1c")][ba("0x1a")](ba("0x19"),(()=>Yo(t[ba("0x10")],ba("0x5")))),t[ba("0x11")].document[ba("0x3")]((n=>{let o=!1;const s=Array[ba("0x12")](t.model[ba("0xb")][ba("0x1")][ba("0x4")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x15")!==s||!i[ba("0x18")])continue;const x=i[ba("0x18")],a=x[ba("0x14")].nodeBefore;if(!a||!a.is(ba("0x1b"),ba("0x19")))continue;if(!x.start[ba("0x2")](x[ba("0x14")]))continue;const c=t.model[ba("0x7")][ba("0x16")](x.end,ba("0x6"));if(c&&c[ba("0x9")]){const t=n[ba("0xa")](x[ba("0xe")],c[ba("0xe")]);t[ba("0x17")](x)||(n[ba("0xf")](r,{range:t}),o=!0)}o||(n[ba("0x1d")](r),o=!0)}return o}))}}const _a=["plugins","undo","get","TrackChangesEditing","editor","UndoEditing","has","enableCommand"];var Ta,Ca;Ta=_a,Ca=487,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("0x5")],e=t.plugins[ya("0x3")](ya("0x4"));t[ya("0x1")][ya("0x7")](ya("0x6"))&&(e[ya("0x0")](ya("0x2")),e.enableCommand("redo"))}}const Aa=["requires","get","afterInit","enableCommand","has","plugins","TableCaptionEditing","TrackChangesEditing"];var va,Ra;va=Aa,Ra=169,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("0x7")](){return[wx]}[Sa("0x1")](){const t=this.editor;t[Sa("0x4")][Sa("0x3")](Sa("0x5"))&&t[Sa("0x4")][Sa("0x0")](Sa("0x6"))[Sa("0x2")]("toggleTableCaption")}}const La=["get","*Format:* set order to reversed","selection","isFirstBlockOfListItem","reversed","_getSuggestionBlocks","getListTypeFromListStyleType","has","listReversed","document","type","model","length","format","ELEMENT_","bind","numbered","startIndex","toUpperCase","commandName","getSelectedBlocks","registerDescriptionCallback","*Format:* set order to regular","markMultiRangeBlockFormat","handleListStartCommand","TrackChangesEditing","editor","_getSuggestionBlocksForListStyle","DocumentListUtils","plugins","handleListStyleCommand","listStart","commandParams","expandListBlocksToCompleteList","_LIST_","DocumentListPropertiesEditing","replace","_getTranslationKeyForListStyle","*Format:* set start index to %0","listStyle","handleListReversedCommand","styles","push","DocumentListPropertiesUtils","listType","change","filter","getAttribute","enableCommand"];var Na,Ma;Na=La,Ma=164,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[wa("0x9")].plugins[wa("0x27")](wa("0x12")))return;const t=this[wa("0x9")].config.get("list.properties"),e=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0x8"));t[wa("0x18")]&&e[wa("0x1f")](wa("0x16"),this[wa("0xd")][wa("0x2f")](this)),t[wa("0x24")]&&e.enableCommand("listReversed",this.handleListReversedCommand.bind(this)),t[wa("0x0")]&&e[wa("0x1f")](wa("0xe"),this[wa("0x7")].bind(this)),e._descriptionFactory[wa("0x4")](this.handleDescriptions[wa("0x2f")](this))}[wa("0xd")](t,e={}){const n=this.editor.plugins[wa("0x20")](wa("0x8")),o=this[wa("0xa")]();this[wa("0x9")].model[wa("0x1c")]((()=>{n[wa("0x6")](o,{commandName:wa("0x16"),commandParams:[{type:e[wa("0x2a")]}],formatGroupId:wa("0x16")})}))}[wa("0x17")](t,e={}){const n=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0x8")),o=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0xb")),s=this[wa("0x25")]((t=>o.isListItemBlock(t)&&wa("0x30")===t[wa("0x1e")](wa("0x1b"))));null!==s&&this.editor.model[wa("0x1c")]((()=>{n[wa("0x6")](s,{commandName:wa("0x28"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x28")})}))}[wa("0x7")](t,e={}){const n=this.editor[wa("0xc")][wa("0x20")](wa("0x8")),o=this.editor[wa("0xc")].get(wa("0xb")),s=this[wa("0x25")]((t=>o.isListItemBlock(t)&&wa("0x30")===t[wa("0x1e")]("listType")));null!==s&&this[wa("0x9")][wa("0x2b")][wa("0x1c")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0xe"),commandParams:[{startIndex:e[wa("0x0")]}],formatGroupId:wa("0xe")})}))}handleDescriptions(t){const e=this[wa("0x9")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x2")]){case"listStyle":o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case"listReversed":o=n[wa("0xf")][0][wa("0x24")]?wa("0x21"):wa("0x5"),s={type:"format",content:Yo(e,o)};break;case wa("0xe"):o=wa("0x15"),s={type:wa("0x2d"),content:Yo(e,o,n[wa("0xf")][0].startIndex)}}return s}_getSuggestionBlocksForListStyle(){const t=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0xb"));let e=Array.from(this.editor.model[wa("0x29")][wa("0x22")][wa("0x3")]());return e[wa("0x19")](...t[wa("0x10")](e)),e=[...new Set(e)],e}[wa("0x25")](t){const e=this.editor.plugins[wa("0x20")](wa("0xb"));let n=Array.from(this[wa("0x9")][wa("0x2b")].document.selection.getSelectedBlocks())[wa("0x1d")](t);if(!n[wa("0x2c")])return null;n=e[wa("0x10")](n);const o=[];for(const t of n)e[wa("0x23")](t)&&o.push(t);return o}[wa("0x14")](t){return wa("0x2e")+this[wa("0x9")].plugins[wa("0x20")](wa("0x1a"))[wa("0x26")](t)[wa("0x1")]()+wa("0x11")+t.toUpperCase()[wa("0x13")](/-/g,"_")}}const Fa=["getAttribute","findAncestor","tableCellBorderWidth","_suggestionFactory","nodeAfter","tableCellHeight","selection","editor","getSuggestions","registerCustomCallback","tableCellWidth","tableHeight","subType","tableCellProperties","start","getSelectionAffectedTableCells","pluginName","table","handleDiscardAction","tableBackgroundColor","removeAttribute","has","*Format:* change table cell properties","tableCellBorderColor","format","tableProperties","get","tableCellBackgroundColor","handleSuggestionDescription","document","enableCommand","tableBorderColor","tableCellPadding","locale","_handlePropertyChange","commandParams","getFirstPosition","change","_descriptionFactory","discard","tableCellHorizontalAlignment","tableAlignment","registerDescriptionCallback","batch","_getSuggestion","formatBlock","tableWidth","data","setAttribute","plugins","accept","TablePropertiesEditing","getSuggestionCallback","tableCellVerticalAlignment","tableCellBorderStyle","TableCellPropertiesEditing","TrackChangesEditing","model","*Format:* change table properties"];var Pa,Da;Pa=Fa,Da=325,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("0x36")]=[Ba("0x1"),"tableBorderStyle","tableBorderWidth",Ba("0xb"),Ba("0x10"),Ba("0x28"),Ba("0x30")],this.tableCellProperties=[Ba("0x34"),Ba("0x18"),Ba("0x1f"),Ba("0x2"),Ba("0x27"),Ba("0x22"),Ba("0x38"),Ba("0xa"),Ba("0x17")]}static get[Ba("0x2d")](){return"TrackChangesTableProperties"}afterInit(){const t=this[Ba("0x24")].plugins[Ba("0x37")](Ba("0x1a"));if(this[Ba("0x24")].plugins.has(Ba("0x15"))){for(const e of this[Ba("0x36")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x24")][Ba("0x1b")].document.selection[Ba("0x6")]()[Ba("0x1e")](Ba("0x2e"));this[Ba("0x4")](e,[o],this.tableProperties,"tableProperties",t,n)}));t._suggestionFactory[Ba("0x26")](Ba("0xf"),Ba("0x36"),Ba("0x14"),t[Ba("0x20")].getSuggestionCallback(Ba("0xf"),null,Ba("0x9"))),t[Ba("0x20")][Ba("0x26")](Ba("0xf"),Ba("0x36"),Ba("0x9"),((t,e)=>this[Ba("0x2f")](this.tableProperties,t,e))),t._suggestionFactory[Ba("0x26")](Ba("0xf"),Ba("0x36"),"join",(()=>!1))}if(this.editor[Ba("0x13")][Ba("0x32")](Ba("0x19"))){for(const e of this[Ba("0x2a")])t[Ba("0x0")](e,((t,n)=>{const o=this[Ba("0x24")].plugins[Ba("0x37")]("TableUtils")[Ba("0x2c")](this[Ba("0x24")].model[Ba("0x3a")][Ba("0x23")]);this[Ba("0x4")](e,o,this[Ba("0x2a")],Ba("0x2a"),t,n)}));t[Ba("0x20")].registerCustomCallback(Ba("0xf"),"tableCellProperties",Ba("0x14"),t._suggestionFactory[Ba("0x16")](Ba("0xf"),null,Ba("0x9"))),t._suggestionFactory[Ba("0x26")](Ba("0xf"),"tableCellProperties",Ba("0x9"),((t,e)=>this[Ba("0x2f")](this[Ba("0x2a")],t,e))),t[Ba("0x20")][Ba("0x26")]("formatBlock",Ba("0x2a"),"join",(()=>!1))}t[Ba("0x8")][Ba("0xc")]((t=>this[Ba("0x39")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x24")][Ba("0x13")][Ba("0x37")]("TrackChangesEditing");this.editor.model.enqueueChange(r[Ba("0xd")],(()=>{for(const t of e)if(this[Ba("0xe")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1d")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Ba("0x2f")](t,e,n){const o=e[0][Ba("0x2b")][Ba("0x21")],s=n[Ba("0x5")][0];this[Ba("0x24")][Ba("0x1b")][Ba("0x7")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x12")](n,s[n],o):e[Ba("0x31")](n,o)}))}[Ba("0x39")](t){if(t[Ba("0x11")])switch(t[Ba("0x29")]){case Ba("0x36"):return{type:Ba("0x35"),content:Yo(this[Ba("0x24")][Ba("0x3")],Ba("0x1c"))};case Ba("0x2a"):return{type:Ba("0x35"),content:Yo(this[Ba("0x24")].locale,Ba("0x33"))}}}[Ba("0xe")](t,e){const n=this.editor[Ba("0x13")][Ba("0x37")](Ba("0x1a"));for(const o of n[Ba("0x25")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["deletion","formatInline","_joinWithAdjacentSuggestions","position","suggestionUnloaded","attributes","isIntersectingWithRange","next","multi","formatBlock","fire","marker-count","formatBlock:chain","$marker","enableReadOnlyMode","discardSuggestion","addMarker:suggestion:formatBlock","length","resolve","formatBlock:join","track-changes-suggestion-data-mismatch","_addSuggestionMarker","element","_onDiscard","_createSuggestion","values","catch","_updateSuggestionData","showSuggestionHighlights","insertion:accept","oldRange","deletion:","_getSuggestionData","_splitMarkerName","add","getCommentThread","split","getUser","commandName","error-saving-suggestion-data-suggestion-discarded","_adapter","registerPostFixer","set","acceptSuggestion","nodeBefore","ck-suggestion-marker-","removeClass","getCustomProperty","containsRangeInObject","markDeletion","addHighlight","track-changes-command-not-found","batch","getChangedMarkers","_breakSuggestionMarker","_setSuggestionRange","every","trackChanges.mergeNestedSuggestions","item","moveTargetPosition","_defaultCallbacks","execute","addComment","parent","hasSuggestion","getIntersection","model","_cutOutSuggestionMarker","markBlockFormat","from","update:suggestion","some","isMultiRange","removeMarker:suggestion:formatBlock","never","$textProxy","createPositionAt","rejected","accept","fromCharCode","isEqual","isInContent","high","containsRange","markInsertion","hasComments","rootName","removed","_findSuggestions","registerCustomCallback","selection","createdAt","head","change:activeMarkers","data-suggestion","splice","addCommentThread","discard","isBlock","commentThread","isTouching","isAtEnd","formatBlock:accept","isUndo","deletion:join","isSelectable","clone","isDocumentOperation","notReady","forceDefaultExecution","getShiftedBy","getChanges","always","isBefore","getSuggestionCallback","_enabledCommands","addMarker:suggestion","isOwn","removeMarkers","document","removeMarker","_isForcedDefaultExecutionBlock","get","addUser","newRange","subType","_registerDefaultCallbacks","isAtStart","$graveyard","remove","options","end","conversion","config","push","formatInline:chain","removeAttribute","isInsideObject","Users","differ","multipleBlocks","detach","getFirstMarker","acceptSelectedSuggestions","ck-suggestion-marker","track-changes-adapter-missing-getsuggestion","PENDING_ACTION_SUGGESTION","createRangeIn","sort","before","ready","markerReady","size","_saved","addClass","addRange","change","insertContent","adapter","getMultiRangeId","unbind","authorName","default","applyOperation","createPositionBefore","has","createRange","includes","targetPosition","enableCommand","getAllAdjacentSuggestions","insertion:join","listenTo","widget","_getAuthorFromId","plugins","_trackFormatChanges","for","data","getMarkers","_checkSuggestionCorrectness","getNearestSelectionRange","getSuggestion","activeMarkers","_setSuggestionData","previous","clear","getLastMatchingPosition","documentSelection","markMultiRangeBlockFormat","filter","suggestionChanged","dataDowncast","deletion:chain","consumable","after","_suggestions","normal","containerElement","trackChanges.trackFormatChanges","_joinSuggestions","nodeAfter","_mergeNestedSuggestions","setTo","range","_commentsRepository","map","markerName","getAttribute","locale","skipNestingCheck","value","formatInline:discard","isCollapsed","fetchCommentThread","updateMarker","splitPosition","delete","_suggestionState","isAfter","_model","_descriptionFactory","isRemovable","markInlineFormat","createElement","getSuggestions","creator","insertion:","join","howMany","ck-suggestion-marker--active","collaboration.channelId","root","_rangeIsInLocalUserInsertion","track-changes-user-not-found","upcast","return","start","TrackChangesEditing","acceptAllSuggestions","getDifference","isNextTo","then","suggestion","low","markerToHighlight","_editor","init","author","isLimit","buildSuggestion","formatGroupId","refresh","stop","_customCallbacks","deleteContent","updateSuggestion","formatBlock:","toViewElement","isObject","change:_saved","_removeSuggestion","change:data","editingDowncast","insertion","consume","createSelection","markers","type","unbindElementFromMarkerName","insert","getWalker","commands","PendingActions","move","_getExternalAuthor","addMarkerName","_refreshSuggestionsChain","getFirstRange","define","writer","track-changes-suggestion-not-found","mapper","authoredAt","setSelection","discardSelectedSuggestions","_suggestionFactory","addSuggestion","pluginName","forward","editor","discardAllSuggestions","formatInline:","trackChanges","group","@external","CommentsRepository","getRanges","dataReady","formatInline:accept","dataToMarker","markMultiRangeDeletion","open","addSuggestionData","name","_handleNewSuggestionMarker","_addThreadToSuggestion","schema","trackChangesCommand","external:","formatBlock:discard"];var Ga,Ha;Ga=Ua,Ha=382,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xd9")](){return za("0xa7")}constructor(t){function e(t){return t[za("0x87")]((t=>String[za("0x8")](t)))[za("0x9d")]("")}super(t),this[za("0x11a")](za("0x70"),[]),this.on(za("0x16"),((e,n,o,s)=>{this._model.change((()=>{for(const e of[...s,...o])this._model.markers.has(e)&&t.editing.reconvertMarker(e)}))})),this[za("0x96")]=new ss(this.editor[za("0x132")].schema,this[za("0xdb")][za("0x8a")]),this[za("0x118")]=null,this[za("0xd7")]=new Va(this[za("0xdb")]),this[za("0x7d")]=new Map,this._commentsRepository=t[za("0x68")].get("CommentsRepository"),this[za("0x2c")]=new Set,this[za("0x95")]=this[za("0xdb")][za("0x132")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0x3e")][za("0xd0")](za("0x80"),za("0x5b")),this[za("0x69")]=t[za("0x3e")][za("0x33")]("trackChanges.trackFormatChanges"),t[za("0x3e")][za("0xd0")](za("0x129"),!0),this[za("0x83")]=t[za("0x3e")][za("0x33")]("trackChanges.mergeNestedSuggestions"),this[za("0xed")]=new u(t,this[za("0x2c")]),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,48,50])}[za("0xb0")](){const t=this[za("0xdb")];t[za("0x3d")][za("0x6a")](za("0xc0"))[za("0xae")]({model:za("0xac"),view:t=>{const{id:e,type:n}=this[za("0x111")](t.markerName),o=[za("0x49"),za("0x11d")+n];let s=3e3;return this[za("0x70")][za("0x60")](t[za("0x88")])&&(o.push(za("0x9f")),s=3010),za("0xf0")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x3d")].for(za("0x79"))[za("0x112")]((e=>{e.on(za("0x2d"),((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n[za("0x12a")];if(!s)return;const r=o[za("0xd3")].toViewElement(s);t[za("0x132")][za("0xec")][za("0xbc")](s)&&r&&!r[za("0x11f")](za("0x66"))&&r.is(za("0x7f"))&&(0,x.toWidget)(r,o[za("0xd1")])}),{priority:za("0xb")})})),t.conversion.for(za("0x79"))[za("0xae")]({model:za("0xac"),view:(t,e)=>{if(!e[za("0x3b")][za("0x10c")])return null;const{type:n}=this[za("0x111")](t[za("0x88")]);return{classes:["ck-suggestion-marker",za("0x11d")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x12a")])return;if(o.item.is(za("0x13")))return void s.consumable[za("0xc2")](o[za("0x12a")],n[za("0xe9")]);const r=s[za("0xd3")][za("0xbb")](o.item);if(!o[za("0x12a")].is(za("0x106"))||!t[za("0x132")][za("0xec")][za("0x1b")](o[za("0x12a")])||r[za("0x11f")](za("0x122")))return;const{id:i}=this[za("0x111")](o[za("0x88")]);s.writer[za("0x53")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],r),s[za("0xd1")].setAttribute(za("0x17"),i,r),s.mapper.bindElementToMarker(r,o.markerName),e&&(this.activeMarkers[za("0x60")](o[za("0x88")])?s.writer.addClass(za("0x9f"),r):s[za("0xd1")][za("0x11e")](za("0x9f"),r));for(const e of t[za("0x132")][za("0x4c")](o[za("0x12a")]).getItems())s[za("0x7b")][za("0xc2")](e,n.name);s.consumable[za("0xc2")](o[za("0x12a")],n[za("0xe9")])};t[za("0x3d")][za("0x6a")](za("0x79"))[za("0x112")]((t=>{t.on(za("0x100"),((t,e,o)=>{o[za("0x3b")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[za("0x6a")](za("0x79")).markerToData({model:za("0xac"),view:(t,e)=>e[za("0x3b")][za("0x10c")]?null:{group:za("0xac"),name:t.substr(11)}}),t[za("0x3d")].for(za("0xa4")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t.getAttribute("suggestion-type")+":"+t[za("0x89")]("id");return t.getAttribute(za("0xfb"))&&(n+=":"+t[za("0x89")](za("0xfb"))),e[za("0x99")](za("0xfd"),{"data-name":n})}}),t[za("0x3d")][za("0x6a")]("upcast")[za("0xe5")]({view:za("0xac")}),t[za("0x3d")][za("0x6a")](za("0xc0"))[za("0x112")]((t=>{t.on(za("0x100"),n(),{priority:za("0xb")})})),t[za("0x3d")].for(za("0xc0"))[za("0x112")]((t=>{t.on(za("0x2"),((t,e,n)=>{const o=n[za("0xd3")].markerNameToElements(e[za("0x88")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[za("0xd1")][za("0x11e")]([za("0x49"),"ck-suggestion-marker-formatBlock",za("0x9f")],t),n[za("0xd1")][za("0x41")]("data-suggestion",t),n[za("0xd3")][za("0xc6")](t,e[za("0x88")]))}),{priority:za("0xb")})})),t[za("0x132")][za("0x30")][za("0x119")]((e=>{let n=!1;const o=Array[za("0x135")](t[za("0x132")][za("0x30")][za("0x44")][za("0x125")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0xac")!==o)continue;const d=this[za("0x7d")][za("0x33")](l);if(null!=a.newRange)if(za("0xf1")==c&&(n=n||Xa(a[za("0x35")],x,e,t[za("0x132")].schema)),a.newRange.isCollapsed||za("0x39")==a[za("0x35")].root.rootName||za("0xf9")==c&&!Ja(a[za("0x35")])||za("0xf0")==c&&(qa(i=a[za("0x35")])||(r=i)[za("0xa6")][za("0x12f")]==r[za("0x3c")][za("0x11c")]&&r[za("0xa6")][za("0x1e")]))e[za("0x31")](x),n=!0;else{if(!d||!d.isInContent)continue;s[za("0x112")](d)}}var r,i;return s.size>0&&(n=!!this[za("0xf2")](s)||n),n})),t[za("0x132")][za("0x30")][za("0x119")]((e=>{let n=!1;for(const o of t[za("0x132")].document.differ[za("0x28")]()){if(za("0xc7")!=o.type)continue;const s=o[za("0xf3")][za("0x27")](o[za("0x101")]);if(s[za("0x1e")])for(const r of this[za("0x7d")][za("0x109")]()){if(r[za("0x1")]||!r[za("0xa")])continue;if(za("0xf9")!=r[za("0xc5")])continue;const i=r.getFirstRange();if(i[za("0xa6")][za("0x12f")]!=i[za("0x3c")][za("0x12f")]&&i[za("0x3c")][za("0x9")](o[za("0xf3")])){const o=t[za("0x132")].createRange(i[za("0xa6")],s);e[za("0x90")](r[za("0x47")](),{range:o}),n=!0}}}return n})),t[za("0x132")][za("0xc4")].on(za("0x136"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x111")](e[za("0xe9")]),n=this[za("0x7d")][za("0x33")](t);n&&n[za("0xcd")](e.name)}})),t[za("0x132")][za("0x30")].on(za("0xbf"),(()=>{const e=Array[za("0x135")](t[za("0x132")].document[za("0x44")][za("0x125")]())[za("0x77")]((t=>za("0xac")===this._splitMarkerName(t[za("0xe9")])[za("0xdf")]));if(0===e.length)return;e[za("0x4d")](((t,e)=>{const n=t.data[za("0x10e")],o=e.data[za("0x10e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xa6")][za("0x2a")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x111")](t);if(null===s[za("0x10e")]){const e=this[za("0xea")](t);o[za("0x112")](e)}else{const t=this[za("0x7d")][za("0x33")](e);null!==s[za("0x35")]||t[za("0xa")]?(n[za("0x112")](t[za("0x15")]),o[za("0x112")](t)):this[za("0xbe")](t)}}o[za("0x51")]>0&&this[za("0xce")](o);for(const t of n)this.fire(za("0x78"),t)})),t[za("0x132")].on(za("0x5c"),((e,n)=>{const o=n[0];if(!this[za("0x7d")][za("0x51")])return;if(!o[za("0x24")])return;if(o.batch[za("0x20")]||!o[za("0x124")].isLocal)return;let s,r;switch(o[za("0xc5")]){case za("0xc7"):s=t.model[za("0x5")](o[za("0xf3")]),r=s.getShiftedBy(o.howMany);break;case za("0x114"):s=t[za("0x132")][za("0x5")](o[za("0x91")]),r=t.model[za("0x5")](o[za("0x12b")]);break;case za("0xcb"):s=t[za("0x132")].createPositionAt(o[za("0x61")]),r=s.getShiftedBy(o[za("0x9e")]);break;default:return}const i=t[za("0x132")].createRange(s,r);t[za("0x132")][za("0x55")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x11")](i)){if(t[za("0x1")])continue;if(za("0xf1")==t[za("0xc5")])continue;const n=t[za("0x6b")]&&t.data[za("0x45")];(za("0xf9")!=t[za("0xc5")]||za("0x114")==o[za("0xc5")]&&!n)&&(e.containsRangeInObject||za("0xc1")==t.type&&e[za("0x2e")]||t[za("0xcf")]()[za("0xc")](i)&&this[za("0x126")](t,s,r))}}))}),{priority:"lowest"}),t[za("0x132")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x26")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this.trackChangesCommand.value)return;if(o[za("0x8e")])return;const r=t.model[za("0xec")],{start:i,end:x}=o.getFirstRange(),a=i[za("0x82")]&&r.isLimit(i[za("0x82")])?null:r.getNearestSelectionRange(i,za("0xda")),c=x[za("0x11c")]&&r.isLimit(x[za("0x11c")])?null:r[za("0x6e")](x,"backward"),l=t[za("0x132")].createRange(a?a.start:i,c?c.end:x);t[za("0x132")][za("0x55")]((e=>{this[za("0x121")](l);const n=t.model[za("0xec")][za("0x6e")](l[za("0xa6")]);o.is(za("0x75"))?e[za("0xd5")](n):o[za("0x84")](n)})),e.stop()}),{priority:e.priorities[za("0x7e")]+10}),t[za("0x132")].on("insertContent",((e,n)=>{const o=n[n[za("0x101")]-1];o&&o.forceDefaultExecution||this[za("0x32")]||this[za("0xed")].value&&(t[za("0x132")][za("0x55")]((()=>{let o=t[za("0x132")][za("0x56")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0xa5")]=o[za("0x23")]();const s=o[za("0x3c")][za("0x11c")],r=t[za("0x132")][za("0xec")];s&&r.isBlock(s)&&!r[za("0xbc")](s)&&(o=t.model.createRange(o[za("0xa6")],t.model[za("0x5")](s,za("0x3c")))),this[za("0xd")](o)})),e[za("0xb6")]())}),{priority:"high"}),this.editor.commands[za("0x112")](za("0xde"),this.trackChangesCommand),this[za("0x62")](za("0xde"));const o=new p(t,this[za("0x7d")]);t[za("0xc9")][za("0x112")](za("0x11b"),o),this[za("0x62")]("acceptSuggestion");const s=new C(t,this[za("0x7d")]);t[za("0xc9")].add(za("0xff"),s),this[za("0x62")](za("0xff")),t[za("0xc9")][za("0x112")](za("0xa8"),new F(t,o,this._suggestions)),this[za("0x62")]("acceptAllSuggestions"),t[za("0xc9")].add(za("0xdc"),new F(t,s,this[za("0x7d")])),this[za("0x62")](za("0xdc")),t[za("0xc9")][za("0x112")](za("0x48"),new U(t,o,this._suggestions)),this[za("0x62")](za("0x48")),t.commands[za("0x112")](za("0xd6"),new U(t,s,this[za("0x7d")])),this[za("0x62")](za("0xd6"));const r=t[za("0x68")][za("0x33")](za("0xe1"));this[za("0x65")](r,za("0x12e"),((t,{threadId:e})=>{const n=this[za("0x7d")][za("0x33")](e);n&&n.commentThread&&1===n[za("0x1c")].length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:za("0xad")}),this[za("0x65")](r,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[za("0x33")](e);n&&n[za("0x1c")]&&!n.commentThread[za("0x101")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[za("0x118")]=t}get[za("0x57")](){return this[za("0x118")]}[za("0x9a")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x7d")].values())t&&!e[za("0xa")]||n[za("0x3f")](e);return e?n[za("0x87")]((t=>t.toJSON())):n}getSuggestion(t){const n=this[za("0x7d")].get(t);if(!n)throw new e.CKEditorError(za("0xd2"),this);return n}[za("0x130")](t){return this[za("0x7d")].has(t)}[za("0xe8")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xc5")][za("0x114")](":"),i=this[za("0x7d")].get(n)||this._createSuggestion(s,r,n,e,o);if(this[za("0xeb")](i),this[za("0x6d")](i,s,r||null,e),i[za("0x14")]=t[za("0x14")],o&&o[za("0xe0")]){const t=o[za("0xe0")],e=this._getExternalAuthor(t[za("0x5a")]);i[za("0xd4")]=t[za("0x14")],i[za("0xb1")]=e,i.isExternal=!0}else i[za("0xd4")]=t[za("0x14")];switch(t[za("0x6b")]&&(i[za("0x6b")]=t[za("0x6b")]),t[za("0xf5")]&&(i[za("0xf5")]=t.attributes),this[za("0x118")]&&this[za("0x118")][za("0xd8")]||(i[za("0x52")]=!0),this._suggestionState[za("0x33")](i)){case"notReady":this[za("0x93")][za("0x11a")](i,za("0xe3"));break;case za("0x50"):i[za("0xa")]?(this[za("0x93")][za("0x11a")](i,"ready"),this[za("0xfa")]("suggestionLoaded",i)):this[za("0x93")].set(i,za("0x10"))}return i}acceptSuggestion(t){this[za("0x26")]((()=>{this[za("0xdb")][za("0x132")].change((()=>{for(const e of t[za("0x63")]())e[za("0x7")]()}))}))}[za("0xff")](t){this[za("0x26")]((()=>{this.editor[za("0x132")][za("0x55")]((()=>{for(const e of t[za("0x63")]())e.discard()}))}))}enableCommand(t,n){const o=this.editor[za("0xc9")][za("0x33")](t);if(!o)throw new e.CKEditorError(za("0x123"),this,{commandName:t});this[za("0x2c")][za("0x112")](o),n&&o.on("execute",((t,e)=>{this[za("0xed")][za("0x8c")]&&(this._isForcedDefaultExecutionBlock||e.length>0&&e[e[za("0x101")]-1]&&e[e[za("0x101")]-1][za("0x26")]||(n(((...t)=>o[za("0x12d")](...t,{forceDefaultExecution:!0})),...e),t[za("0xb6")]()))}),{priority:za("0xb")})}[za("0x26")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[za("0x32")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[za("0xd")](t,n=null,o={}){if(t[za("0x8e")])return null;const s=this[za("0xdb")][za("0x68")][za("0x33")]("Users").me;for(const{suggestion:e,meta:o}of this[za("0x11")](t,za("0xc1")))if(o[za("0x2e")]){if(!o[za("0xaa")]){if(!this._mergeNestedSuggestions&&o[za("0x120")])continue;return e}if(n==e[za("0x36")]){const n=e[za("0xcf")]();return n[za("0xa6")].isEqual(t[za("0x3c")])?this[za("0x127")](e,this[za("0x95")][za("0x5f")](t.start,n[za("0x3c")])):this._setSuggestionRange(e,this._model[za("0x5f")](n[za("0xa6")],t[za("0x3c")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:za("0xc1"),a=this[za("0x71")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x105")](x,r,i,t),a}markMultiRangeInsertion(t,n=za("0xf8"),o={}){const s=this[za("0xdb")].plugins[za("0x33")]("Users").me,r=this[za("0xd7")][za("0x2b")]("insertion",n,za("0x9d"));for(const e of this.getSuggestions())if(e[za("0xb1")].id==s.id&&za("0xc1")==e[za("0xc5")]&&e[za("0x36")]==n&&(r(e.getRanges(),t)||r(t,e[za("0xe2")]()))){for(const n of t)e[za("0x54")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x11")](e,za("0xc1"))){if(!o[za("0x2e")])continue;let e=!0;for(const o of n.getRanges())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=za("0x9c")+n,c=this[za("0x71")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x105")](a,i,x,e,Zo[za("0x58")]());return c}[za("0x98")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x8e")])return null;if(za("0x3")===this[za("0x69")]){const e=this[za("0xd7")].getSuggestionCallback(za("0xf1"),o,"accept");return this[za("0x26")]((()=>e([t],n,s))),null}const r=this[za("0xdb")][za("0x68")].get(za("0x43")).me,i=[];if(za("0x29")!==this[za("0x69")])for(const{suggestion:e,meta:n}of this[za("0x11")](t,za("0xc1")))n[za("0x2e")]&&!n[za("0x42")]&&i[za("0x3f")](...e[za("0xe2")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x131")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x101")];){const o=n[e][za("0xa9")](t);n.splice(e,1,...o),e+=o[za("0x101")]}}return n}(t,i);x[za("0x101")]&&this[za("0x95")][za("0x55")]((()=>{for(const t of x){const e=this[za("0xd7")][za("0x2b")](za("0xf1"),o,za("0x7"));this[za("0x26")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xa6")],a=t[za("0x3c")];for(const{suggestion:e,meta:n}of this[za("0x11")](t,za("0xf1"))){if(!n[za("0x2e")])continue;if(e[za("0x36")]!=o)continue;const s=e[za("0xcf")]();if(s.containsRange(t,!0))return null;x=x.isBefore(s[za("0xa6")])?x:s[za("0xa6")],a=a[za("0x94")](s[za("0x3c")])?a:s[za("0x3c")],i?s.start.isBefore(i[za("0xcf")]()[za("0xa6")])?(i[za("0x2f")](),i=e):e[za("0x2f")]():i=e}const c=this[za("0x95")][za("0x5f")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x71")]({id:t,type:za("0xdd")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x105")](za("0xdd")+o,t,i,c)}}return null}[za("0x134")](t,n,o=[],s=null,r={}){n[za("0xb4")]||(n.formatGroupId=n[za("0x116")]),n.multipleBlocks=t.is(za("0x85")),s=s||$a(n);const i=o[za("0x87")]((t=>Qa(t,this[za("0x95")]))),x=t.is("range")?t:Qa(t,this[za("0x95")]);if("never"===this[za("0x69")]){const t=this[za("0xd7")][za("0x2b")](za("0xf9"),s,za("0x7"));return this[za("0x26")]((()=>t([x],n,r))),null}i[za("0x3f")](x);let a=!0;for(const t of i)if(!this[za("0xa2")](t)){a=!1;break}if(a&&za("0x29")!==this._trackFormatChanges){const t=this[za("0xd7")][za("0x2b")]("formatBlock",s,za("0x7"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0xa6")],d=x[za("0x3c")];for(const{suggestion:t,meta:e}of this[za("0x11")](x,"formatBlock")){if(!e[za("0x2e")]||e[za("0xaa")]||e[za("0x120")]||e.isInsideObject)continue;if(t[za("0x6b")][za("0xb4")]!=n[za("0xb4")])continue;const o=t[za("0xcf")]();if(t[za("0x36")]==s){if(o.containsRange(x,!0))return null;l=l[za("0x2a")](o[za("0xa6")])?l:o[za("0xa6")],d=d.isAfter(o.end)?d:o[za("0x3c")],c?o[za("0xa6")][za("0x2a")](c.getFirstRange()[za("0xa6")])?(c[za("0x2f")](),c=t):t[za("0x2f")]():c=t}else{const e=x[za("0x131")](o);this[za("0x133")](t,e)}}const u=this[za("0xdb")][za("0x68")][za("0x33")](za("0x43")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x127")](c,this._model[za("0x5f")](l,d)),c;{const t=this._setSuggestionData({id:g,type:za("0xba")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x105")]("formatBlock:"+s,g,m,this[za("0x95")][za("0x5f")](l,d)),t}}[za("0x76")](t,n,o=[],s=null,r={}){n[za("0xb4")]||(n[za("0xb4")]=n[za("0x116")]);const i=t[0];n[za("0x45")]=i.is("range"),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0x95")]))),a=i.is(za("0x85"))?t:t[za("0x87")]((t=>Qa(t,this[za("0x95")])));if(za("0x3")===this._trackFormatChanges){const t=this[za("0xd7")][za("0x2b")]("formatBlock",s,za("0x7"));return this[za("0x26")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0xa2")](t)){c=!1;break}if(c&&"always"!==this[za("0x69")]){const t=this[za("0xd7")][za("0x2b")](za("0xf9"),s,za("0x7"));return this[za("0x26")]((()=>t(a,n,r))),null}const l=this[za("0xdb")][za("0x68")][za("0x33")](za("0x43")).me;for(const t of this[za("0x9a")]()){if(t[za("0xb1")].id!=l.id)continue;if(za("0xf9")!=t[za("0xc5")]||t[za("0x6b")][za("0xb4")]!=n[za("0xb4")])continue;const e=t.subType==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[za("0x6c")]()){const r=s.getRange();if(o[za("0x9")](r)){e?(a[za("0x18")](n,1),n--):t[za("0x31")](s[za("0xe9")]);break}}}}if(0==a.length)return null;const d=this[za("0xd7")][za("0x2b")](za("0xf9"),s,"join");for(const t of this.getSuggestions())if(t[za("0xb1")].id==l.id&&za("0xf9")==t[za("0xc5")]&&t[za("0x6b")][za("0xb4")]==n[za("0xb4")]&&t.subType==s&&(d(t[za("0xe2")](),a)||d(a,t[za("0xe2")]()))){for(const e of a)t[za("0x54")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xba")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x105")](m,u,g,t,Zo[za("0x58")]());return f}[za("0x121")](t,n=null,o={}){if(t[za("0x8e")])return null;const s=this[za("0xdb")].plugins[za("0x33")](za("0x43")).me,r=new i.LiveRange(t.start,t[za("0x3c")]);for(const{suggestion:t,meta:e}of this[za("0x11")](r,"insertion"))if(e.isOwn&&!e[za("0xaa")])if(t[za("0x1")]){const e=t[za("0xe2")]()[za("0x77")]((t=>za("0x39")!=t[za("0xa1")][za("0xf")]));if(e[za("0x128")]((t=>r[za("0xc")](t,!0)))&&t[za("0x1a")](),e[za("0x0")]((t=>t[za("0xc")](r,!0)))){const t=this[za("0xd7")][za("0x2b")](za("0xf0"),n,za("0x7"));return this[za("0x26")]((()=>t([r],null,o))),null}}else{const e=r[za("0x131")](t[za("0xcf")]());null!==e&&t[za("0x107")]([e],null,o)}if(r.detach(),r[za("0x8e")]||za("0x39")==r[za("0xa1")][za("0xf")])return null;let x=null,a=r[za("0xa6")],c=r[za("0x3c")];for(const{suggestion:t,meta:e}of this[za("0x11")](r,za("0xf0")))if(e[za("0x2e")])if(t.isMultiRange&&this[za("0x83")]){let e=!0;for(const n of t.getRanges()){if(n.containsRange(r,!0))return t;r.containsRange(n)||(e=!1)}e&&t.discard()}else{const n=t[za("0xcf")]();if(n[za("0xc")](r,!0)){if(!this[za("0x83")]&&e[za("0x120")])continue;return t}a=a[za("0x2a")](n[za("0xa6")])?a:n[za("0xa6")],c=c[za("0x94")](n[za("0x3c")])?c:n.end,x?n[za("0xa6")][za("0x2a")](x[za("0xcf")]()[za("0xa6")])?(x[za("0x2f")](),x=t):t[za("0x2f")]():x=t}if(x)return this._setSuggestionRange(x,this[za("0x95")][za("0x5f")](a,c)),x;{const t=(0,e.uid)(),r=this._model[za("0x5f")](a,c),i=s.id,x=n?za("0x10f")+n:za("0xf0"),l=this[za("0x71")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x105")](x,t,i,r),l}}[za("0xe6")](t,n=za("0xf8"),o={}){const s=this.editor.plugins[za("0x33")](za("0x43")).me,r=t[za("0x87")]((t=>new i.LiveRange(t[za("0xa6")],t[za("0x3c")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x11")](t,za("0xc1")))n.isOwn&&!n.isNextTo&&x[za("0x112")](e);for(const e of x)if(e.isMultiRange){const s=e.getRanges();if((!e[za("0xf5")]||!e[za("0xf5")][za("0x8b")])&&s[za("0x128")]((t=>r.some((e=>e[za("0xc")](t,!0)))))&&e[za("0x1a")](),r.every((t=>s[za("0x0")]((e=>e[za("0xc")](t,!0)))))){const e=this[za("0xd7")][za("0x2b")](za("0xf0"),n,za("0x7"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0x0")]((e=>e[za("0xc")](t,!0)))&&e[za("0x1a")](),r[za("0x128")]((e=>t[za("0xc")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback("deletion",n,za("0x7"));return this[za("0x26")]((()=>t(r,null,o))),null}}const a=this[za("0xd7")][za("0x2b")](za("0xf0"),n,za("0x9d"));let c=null;for(const t of this[za("0x9a")]())if(t[za("0xb1")].id==s.id&&t.isInContent&&"deletion"==t[za("0xc5")]&&t.subType==n&&(a(t.getRanges(),r)||a(r,t[za("0xe2")]())))if(c){if(t[za("0x1c")]&&t.commentThread[za("0x101")])continue;for(const e of t[za("0xe2")]())c[za("0xf6")](e)||c[za("0x54")](e);t[za("0x2f")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x[za("0x73")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x11")](t,"deletion"))n.isOwn&&x.add(e);for(const t of x){const e=t[za("0xe2")]();if((!o||!o.skipNestingCheck)&&r.every((t=>e.some((e=>e[za("0xc")](t,!0))))))return t;(!t[za("0xf5")]||!t[za("0xf5")][za("0x8b")])&&e[za("0x128")]((t=>r[za("0x0")]((e=>e.containsRange(t,!0)))))&&t[za("0x1a")]()}const l=(0,e.uid)(),d=s.id,u=za("0x10f")+n,g=this[za("0x71")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x46")](),t.isCollapsed||za("0x39")==t[za("0xa1")][za("0xf")]||this._addSuggestionMarker(u,l,d,t,Zo[za("0x58")]());return g}[za("0x127")](t,e){const n=t[za("0x47")]();this._model[za("0x55")]((t=>{t[za("0x90")](n,{range:e})}))}[za("0xeb")](t){const e=t.id,n=this[za("0xdb")].config[za("0x33")](za("0xa0"));this[za("0x86")].hasCommentThread(e)||this[za("0x86")][za("0x19")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x86")][za("0x113")](e);o[za("0x59")](za("0x97")),o[za("0x97")]=!1,t[za("0x1c")]=o}[za("0x6d")](t,n,o,s){if(t[za("0xc5")]!=n||t[za("0x36")]!=o||t[za("0x9b")].id!=s)throw this[za("0xdb")][za("0xfe")](za("0x104")),new e.CKEditorError(za("0x104"),this)}_cutOutSuggestionMarker(t,n){const o=t[za("0xcf")]();if(n.isEqual(o))t.removeMarkers();else if(o[za("0xc")](n)){const s=this[za("0x95")][za("0x5")](n[za("0xa6")][za("0x11c")],za("0x3c"));this[za("0x127")](t,this._model[za("0x5f")](o[za("0xa6")],s));const r=(0,e.uid)(),i=t[za("0x9b")].id,x=t[za("0xc5")]+":"+t[za("0x36")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0xf5")]});const a=this[za("0x95")][za("0x5")](n[za("0x3c")].parent,za("0x7c")),c=this[za("0x95")][za("0x5f")](a,o[za("0x3c")]);this[za("0x105")](x,r,i,c)}else if(o.containsPosition(n.start)){const e=this[za("0x95")][za("0x5")](n[za("0xa6")][za("0x11c")],za("0x3c"));this[za("0x127")](t,this[za("0x95")][za("0x5f")](o[za("0xa6")],e))}else{const e=this[za("0x95")][za("0x5")](n.end[za("0x12f")],za("0x7c"));this[za("0x127")](t,this._model[za("0x5f")](e,o.end))}}[za("0xa2")](t){for(const{suggestion:e,meta:n}of this[za("0x11")](t,za("0xc1"))){if(!n.isOwn)continue;const o=e[za("0xe2")]();for(const e of o)if(!t[za("0xa9")](e)[za("0x101")])return!0}return!1}[za("0x67")](t){const n=this.editor.plugins[za("0x33")](za("0x43"))[za("0x115")](t);if(!n)throw new e.CKEditorError(za("0xa3"),this);return n}[za("0xcc")](t){const e=this.editor[za("0x68")][za("0x33")](za("0x43")),n=(0,r.hashObject)(za("0xee")+t);return e[za("0x115")](n)||e[za("0x34")]({id:n,name:t})}[za("0x108")](t,e,n,o,s){const r=this[za("0x67")](o),i=this[za("0xd7")][za("0xb3")](t,e,n,r,s,(t=>this[za("0x10b")](n,{attributes:t})));return this[za("0x65")](i,za("0x7"),(()=>{this[za("0x10b")](n,{state:"accepted"})}),{priority:"high"}),this[za("0x65")](i,za("0x1a"),(()=>{this[za("0x10b")](n,{state:za("0x6")})}),{priority:za("0xb")}),this[za("0x7d")][za("0x11a")](n,i),this[za("0x93")][za("0x11a")](i,za("0x25")),i}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[za("0x101")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0x101")]<5?e[3]:e[4],markerCount:6==e[za("0x101")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[za("0xa6")],i=s[za("0x3c")];this[za("0x127")](t,this[za("0x95")][za("0x5f")](r,n));const x=(0,e.uid)(),a=t[za("0x9b")].id,c=t[za("0xc5")]+(t[za("0x36")]?":"+t[za("0x36")]:"");this[za("0x71")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0xf5")],data:t[za("0x6b")]}),za("0xf9")==t[za("0xc5")]&&(o=this[za("0x95")][za("0x5d")](o[za("0x12f")])),this[za("0x105")](c,x,a,this._model[za("0x5f")](o,i))}[za("0x11")](t,e=null){const n=[],o=this._model[za("0xec")],s=this[za("0xdb")][za("0x68")].get(za("0x43")).me;for(const r of this[za("0x9a")]())if(r[za("0xa")]&&(!e||r[za("0xc5")]==e))for(const e of r.getRanges()){const i=t.start.isEqual(e[za("0x3c")])||t.end[za("0x9")](e.start);if(i||t[za("0x131")](e)){const x=t.containsRange(e)&&Ka(o,e.start,t),a=e[za("0xc")](t)&&Ka(o,t.start,e);n[za("0x3f")]({suggestion:r,meta:{isOwn:s==r[za("0xb1")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x105")](t,e,n,o,s){this[za("0x95")][za("0x55")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xbe")](t){const e=t.previous,n=t[za("0xf7")];t[za("0x72")]=null,null!=e&&(e.next=null),t[za("0xf7")]=null,null!=n&&(n.previous=null),za("0x4f")==this._suggestionState[za("0x33")](t)&&(this[za("0x93")][za("0x11a")](t,za("0x10")),this[za("0xfa")](za("0xf4"),t,e,n))}[za("0x71")](t){const n=t.id,o=this[za("0xe8")](t);if(this[za("0x118")]&&this[za("0x118")][za("0xd8")]){const s=this.editor.plugins.get(za("0xca")),r=o[za("0xe")],i=o[za("0x36")]?o.type+":"+o.subType:o.type,x=this[za("0xdb")][za("0x8a")],a=s[za("0x112")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x6b")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[za("0xf5")]};this._adapter[za("0xd8")](c).then((t=>{o[za("0x52")]=!0,s.remove(a),t&&t[za("0x14")]&&(this[za("0x7d")][za("0x33")](n).createdAt=t[za("0x14")])}))[za("0x10a")]((t=>{throw(0,e.logWarning)(za("0x117")),this[za("0xdb")].model.enqueueChange({isUndoable:!1},(()=>{o[za("0x1a")]()})),o.stopListening(),this[za("0x7d")][za("0x92")](o.id),this[za("0x93")].delete(o),t}))}return o}[za("0x10b")](t,e){const n=this[za("0xdb")][za("0x68")][za("0x33")]("PendingActions"),o=this[za("0x6f")](t);if(this._adapter&&this[za("0x118")].updateSuggestion)if(o[za("0x52")]){const o=n[za("0x112")](Yo(this[za("0xdb")][za("0x8a")],za("0x4b")));this[za("0x118")][za("0xb9")](t,e)[za("0xab")]((()=>{n[za("0x3a")](o)}))}else o.on(za("0xbd"),(()=>{this[za("0x10b")](t,e)}))}[za("0x110")](t){if(!this[za("0x118")]||!this[za("0x118")][za("0x6f")])throw new e.CKEditorError(za("0x4a"),this);return this._adapter[za("0x6f")](t)}[za("0xea")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x111")](t),r=this[za("0x7d")][za("0x33")](e)||this[za("0x108")](n,o,e,s,{});switch(this[za("0x6d")](r,n,o,s),this[za("0x93")].get(r)){case za("0x25"):this._getSuggestionData(e).then((t=>{let n=Promise[za("0x102")]();t[za("0xe")]&&(n=this[za("0x86")][za("0x8f")]({channelId:this[za("0xdb")].config[za("0x33")](za("0xa0")),threadId:e})),n.then((()=>{this[za("0xe8")](t)[za("0x52")]=!0}))})),this[za("0x93")][za("0x11a")](r,za("0x50"));break;case za("0x10"):this[za("0x10b")](e,{state:za("0xe7")});case"dataReady":this[za("0x93")][za("0x11a")](r,"ready"),this[za("0xfa")]("suggestionLoaded",r);break;case za("0x4f"):this[za("0xfa")](za("0x78"),r)}return r[za("0xcd")](t),r}[za("0xce")](t){const e=Array[za("0x135")](t)[za("0x77")]((t=>!t[za("0x1")])),n=this[za("0x9a")]({skipNotAttached:!0})[za("0x77")]((t=>!t[za("0x1")])),o=n[za("0x77")]((e=>!t[za("0x5e")](e))),s=new Map(n.map((t=>[t,this[za("0xd7")].getSuggestionCallback(t[za("0xc5")],t.subType,"chain")]))),r=new Map(n[za("0x87")]((t=>[t,t[za("0xcf")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x101")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x101")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x101")];t++){const n=e[t];!x[za("0x5e")](n)&&n.previous&&(n[za("0x72")].next===n&&(n[za("0x72")][za("0xf7")]=null),n[za("0x72")]=null),!i[za("0x5e")](n)&&n.next&&(n.next[za("0x72")]===n&&(n[za("0xf7")][za("0x72")]=null),n[za("0xf7")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0xf7")]=n[1],n[1][za("0x72")]=n[0],i[za("0x112")](n[0]),x.add(n[1]))}}function c(t,e){if(t[za("0xb1")].id!==e.author.id)return null;const n=s[za("0x33")](t)(t,e,r.get(t),r.get(e));return n&&s[za("0x33")](e)(t,e,r[za("0x33")](t),r.get(e))?n[1][za("0x1c")]&&n[1][za("0x1c")][za("0x101")]?null:n:null}}[za("0xf2")](t){const e=Array.from(t),n=this[za("0x9a")]({skipNotAttached:!0}),o=n[za("0x77")]((e=>!t[za("0x5e")](e))),s=new Map(e[za("0x87")]((t=>[t,this[za("0xd7")][za("0x2b")](t[za("0xc5")],t[za("0x36")],za("0x9d"))]))),r=new Map(n[za("0x87")]((t=>[t,t[za("0xe2")]()])));for(let t=0;t<e[za("0x101")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x101")];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("0x101")];i++){const o=n[i];if(o.type!==e[za("0xc5")]||o[za("0xb1")].id!==e[za("0xb1")].id||o[za("0x36")]!==e[za("0x36")])continue;const x=s[za("0x33")](e),a=r.get(e),c=r.get(o),l=e[za("0x1c")]&&e[za("0x1c")][za("0x101")],d=o[za("0x1c")]&&o.commentThread[za("0x101")];if(!l&&x(c,a))return t[za("0x81")](o,e),r[za("0x92")](e),!0;if(!d&&x(a,c))return t[za("0x81")](e,o),r[za("0x92")](o),!0}return!1}}[za("0x81")](t,e){if(t[za("0x1")])for(const n of e[za("0xe2")]())t[za("0x54")](n);else{const n=e[za("0xcf")]().end;this._setSuggestionRange(t,this._model.createRange(t[za("0xcf")]().start,n))}e[za("0x2f")]()}}class Va{constructor(t){this[za("0xaf")]=t,this[za("0x95")]=t[za("0x132")],this[za("0xb7")]=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}[za("0xb3")](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.getSuggestionCallback(t,e,za("0x7"))(...n),onDiscard:(...n)=>this[za("0x2b")](t,e,"discard")(...n)})}[za("0x12")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xb7")].set(s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks.get(o)||this[za("0x12c")][za("0x33")](t+":"+n)}[za("0x37")](){const t=()=>{},e=t=>{t[za("0x4d")](((t,e)=>t[za("0xa6")][za("0x2a")](e[za("0xa6")])?1:-1)),this[za("0x95")][za("0x55")]((e=>{for(const n of t){let t;t=n.end[za("0x1e")]&&n.end[za("0x12f")]==n[za("0xa6")][za("0x82")]?e[za("0xc3")](n[za("0xa6")][za("0x82")],"on"):e[za("0xc3")](n),this[za("0x95")][za("0xb8")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x55")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x87")]((t=>(qa(t)&&(t=this._model[za("0x5f")](t.end)),t))).filter((t=>za("0x39")!==t[za("0xa1")][za("0xf")]));if(r[za("0x101")]<1)return;const x=Array.from(this[za("0x95")].document.selection.getRanges())[za("0x87")]((t=>i.LiveRange.fromRange(t)));n[za("0xd5")](r);for(const t of this._editor[za("0xc9")].commands())t[za("0xb5")]();s[za("0x3f")]({forceDefaultExecution:!0}),this[za("0xaf")].execute(o,...s);const a=x[za("0x77")]((t=>"$graveyard"!=t[za("0xa1")][za("0xf")]));a.length>0&&n[za("0xd5")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t.length&&1==e[za("0x101")]&&t[0][za("0x3c")][za("0x9")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x95")])?[t,e]:Za(e,t,o,n,this[za("0x95")])?[e,t]:null;this._defaultCallbacks[za("0x11a")](za("0x10d"),t),this[za("0x12c")][za("0x11a")]("insertion:discard",e),this[za("0x12c")][za("0x11a")](za("0x64"),o),this[za("0x12c")][za("0x11a")]("insertion:chain",s),this[za("0x12c")].set("deletion:accept",e),this[za("0x12c")][za("0x11a")]("deletion:discard",t),this[za("0x12c")][za("0x11a")](za("0x21"),o),this[za("0x12c")][za("0x11a")](za("0x7a"),s),this[za("0x12c")].set(za("0xe4"),n),this[za("0x12c")].set(za("0x8d"),t),this._defaultCallbacks[za("0x11a")]("formatInline:join",o),this[za("0x12c")].set(za("0x40"),t),this[za("0x12c")].set(za("0x1f"),n),this._defaultCallbacks.set(za("0xef"),t),this._defaultCallbacks[za("0x11a")](za("0x103"),o),this[za("0x12c")][za("0x11a")](za("0xfc"),t)}}function Ka(t,e,n){for(const o of e[za("0x12f")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0xa1")]==o)return!1;if(!n.containsItem(o))return!1;if(t[za("0xbc")](o)||t[za("0xb2")](o))return!0}return!1}function qa(t){return t[za("0x3c")][za("0x12f")]==t[za("0xa6")].nodeAfter&&t[za("0x3c")][za("0x38")]}function Xa(t,e,n,o){const s=t=>!t[za("0x12a")].is(za("0x4"))&&!o[za("0xbc")](t[za("0x12a")]),r=t[za("0xa6")][za("0x74")](s),i=t[za("0x3c")][za("0x74")](s,{direction:"backward"});return!(t[za("0xa6")][za("0x9")](r)&&t[za("0x3c")][za("0x9")](i)||(r[za("0x2a")](i)?n.updateMarker(e,{range:n[za("0x5f")](r,i)}):n[za("0x31")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xa6")].nodeAfter;return e&&e.is(za("0x106"))}function Qa(t,e){const n=e[za("0xec")].isObject(t)||e[za("0xec")][za("0x22")](t);return e[za("0x5f")](e.createPositionAt(t,za("0x4e")),n?e.createPositionAfter(t):e.createPositionAt(t,za("0x3c")))}function Za(t,e,n,o,s){if(n.end.isEqual(o.start))return!0;if(t[za("0xc5")]!=e[za("0xc5")])return!1;if(!n[za("0x3c")][za("0x1d")](o[za("0xa6")]))return!1;const r=s.createRange(n[za("0x3c")],o[za("0xa6")])[za("0xc8")]();for(const t of r)if(["elementStart","elementEnd"].includes(t[za("0xc5")])&&s[za("0xec")][za("0xb2")](t[za("0x12a")]))return!1;return!0}const Ya=["bind","unbind","_setPendingAction","add","discardSuggestion","stopListening","get","isEnabled","listenTo","_acceptCommand","getRanges","canDiscard","remove","canAccept","_pendingAction","commentThreadController","commands","execute","plugins","_removePendingAction","canEditAt","_editor","acceptSuggestion","destroy","locale","model","view","isDirty"];var tc,ec;tc=Ya,ec=459,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[nc("0xf")]=n,this[nc("0x4")]=o,this[nc("0xa")]=t,this[nc("0x1a")]=t.commands.get(nc("0xb")),this._discardCommand=t[nc("0x5")][nc("0x17")](nc("0x15")),this[nc("0xf")].bind(nc("0x18")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[nc("0xf")][nc("0x11")]("canAccept").to(this._acceptCommand,nc("0x18"),(t=>t&&this[nc("0xa")][nc("0xe")].canEditAt(e.getRanges()))),this[nc("0xf")][nc("0x11")](nc("0x0")).to(this._discardCommand,"isEnabled",(t=>t&&this[nc("0xa")][nc("0xe")][nc("0x9")](e[nc("0x1b")]()))),this[nc("0x3")]=null,n[nc("0x10")]&&this[nc("0x13")](),this[nc("0x19")](n,nc("0xb"),(()=>this[nc("0xb")]())),this[nc("0x19")](n,nc("0x15"),(()=>this[nc("0x15")]())),this[nc("0x19")](n,"change:isDirty",(()=>{n[nc("0x10")]?this[nc("0x13")]():this._removePendingAction()}))}[nc("0xb")](){this[nc("0x1a")][nc("0x6")](this[nc("0xe")].id)}[nc("0x15")](){this._discardCommand[nc("0x6")](this[nc("0xe")].id)}destroy(){this.view[nc("0x12")](nc("0x18")),this[nc("0xf")][nc("0x12")](nc("0x2")),this[nc("0xf")].unbind(nc("0x0")),this[nc("0x16")](),this[nc("0x4")][nc("0xc")](),this[nc("0x3")]&&this[nc("0x8")]()}[nc("0x13")](){const t=Yo(this[nc("0xa")][nc("0xd")],"PENDING_ACTION_SUGGESTION");this[nc("0x3")]=this[nc("0xa")].plugins.get("PendingActions")[nc("0x14")](t)}[nc("0x8")](){null!==this[nc("0x3")]&&this._editor[nc("0x7")].get("PendingActions")[nc("0x1")](this._pendingAction),this[nc("0x3")]=null}}const sc=["setData","_model","updateComment","editor","isActive","addComment","_createCommentViews","canAccept","cancel","editorConfig","focus","_config","element","commentsListView","length","hasDirtyComment","bind","authoredAt","delegate","commentThread","_createCommentThreadInputView","descriptionParts","set","removeComment","commentInputView","locale","_localUser","value","disableComments","submit","destroy","isEnabled","commentThreadInputView","canDiscard","isReadOnly","fire","isDirty"];var rc,ic;rc=sc,ic=445,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("0xc")]=null,this[xc("0x1f")]=null,this[xc("0x15")]("isActive",!1),this[xc("0x15")](xc("0x10"),e[xc("0x10")]),this[xc("0xf")](xc("0x10")).to(e),this.set(xc("0x14"),[]),this[xc("0x15")](xc("0x23"),!1),this[xc("0x15")](xc("0x1e"),!1),this[xc("0x15")](xc("0x6"),!1),this[xc("0x15")](xc("0x20"),!1),this[xc("0x0")]=e,this[xc("0x19")]=n,this[xc("0xa")]=o,o[xc("0x1b")]?this[xc("0x15")](xc("0xd"),1):this._createCommentViews()}focus(){this[xc("0xb")][xc("0x9")]()}[xc("0x1d")](){this[xc("0xc")]&&this[xc("0xc")][xc("0x1d")](),this[xc("0x1f")]&&this[xc("0x1f")][xc("0x1d")](),super.destroy()}[xc("0x5")](){const{CommentsListView:t}=this._config;this[xc("0xc")]=new t(this[xc("0x18")],this[xc("0x0")][xc("0x12")],Object.assign({CommentView:this[xc("0xa")].CommentView},this[xc("0xa")])),this.commentsListView[xc("0x11")](xc("0x16")).to(this),this[xc("0xc")][xc("0x11")](xc("0x1")).to(this),this[xc("0xc")].bind(xc("0x3")).to(this),this.set(xc("0xd"),this[xc("0xc")].length+1),this[xc("0xf")](xc("0xd")).to(this[xc("0xc")],"length",(t=>t+1)),this[xc("0x1f")]=this[xc("0x13")](),this.on(xc("0x16"),(()=>this[xc("0x9")]())),this[xc("0xf")]("isDirty").to(this[xc("0xc")],xc("0xe"),this[xc("0x1f")][xc("0x17")],xc("0x1a"),((t,e)=>t||!!e))}[xc("0x13")](){const{CommentThreadInputView:t}=this[xc("0xa")],e=new t(this[xc("0x18")],this._localUser,this[xc("0xa")][xc("0x8")]),n=e[xc("0x17")];return e[xc("0xf")]("showInput").to(this,"isActive",this[xc("0x0")][xc("0x12")],xc("0x21"),n,xc("0x1a"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1c"),((t,e)=>{this[xc("0x22")](xc("0x4"),e),n[xc("0x2")][xc("0x24")]("")})),n.on(xc("0x7"),(()=>this[xc("0x9")]())),n.bind("disabledSubmit").to(this[xc("0x0")][xc("0x12")],xc("0x21")),e}}const cc=["bind","formatDateTime","ck-annotation__actions","EXTERNAL_IMPORT_WORD_SUGGESTION","color","extendTemplate","div","isActive","title","ck-suggestion__user","_config","innerHTML","createElement",'<span class="ck-suggestion-color" style="background-color: ',"split","getTemplate","commentsListView","EXTERNAL_AVATAR","ck-annotation__info-time","querySelector","commentThreadInputView","check","ck-suggestion--accept","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion-","isEnabled","getExternalSuggestionNote","Accept suggestion","</span>","ck-annotation__content-wrapper","author","time",".ck-annotation__content-wrapper","isExternal","description","span","importWord",'<span class="ck-suggestion-type">',"ck-suggestion__info","acceptSuggestion","ck-annotation__info","type","source","name","locale","ck-annotation__main","canDiscard","map",'"></span>',"children","push","ck-suggestion--disabled-comments","ck-annotation","setTemplate","descriptionParts","render","</p>","ck-suggestion","ck-suggestion__actions","commentThread","element","@external","disableComments","innerText","userView","discardButton","ck-suggestion__main","value","canAccept","ck-suggestion__info-name","ck-suggestion-wrapper--active","_createButton","authoredAt","_descriptionElement","<p>","ck-suggestion-wrapper","ck-suggestion--discard","ck-comment__info-time","getUserViewNotificationText","_model",'" title="',"discardSuggestion","acceptButton","attributes","ck-annotation__user","join"];var lc,dc;lc=cc,dc=486,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.set(uc("0x47"),""),this.bind(uc("0x47")).to(this,uc("0x54"),(t=>t&&t[0]?t[0][uc("0x47")]:"")),this[uc("0x1e")](uc("0x40")).to(this,"descriptionParts",this,"isActive",((t,e)=>{let n="";for(const e of t)n+=uc("0x12")+mc(e.content,e[uc("0x22")])+uc("0x0");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x11")]=null,this[uc("0x1a")]=this._createButton(Yo(e,uc("0x39")),t.icons[uc("0x33")],uc("0x34"),uc("0x45"),"sw"),this.acceptButton[uc("0x1e")](uc("0x37")).to(this,uc("0xc")),this.discardButton=this[uc("0xf")](Yo(e,"Discard suggestion"),t.icons.cancel,uc("0x14"),uc("0x19"),"sw"),this[uc("0x9")][uc("0x1e")](uc("0x37")).to(this,uc("0x4c")),this[uc("0x8")]=new r.UserView(e,this[uc("0x17")][uc("0x3c")],this[uc("0x16")]()),this[uc("0x8")][uc("0x23")]({attributes:{class:[uc("0x27"),uc("0x1c")]}}),this[uc("0x53")](this.getTemplate())}[uc("0x2d")](){const t=this.bindTemplate,e=[{tag:uc("0x24"),attributes:{class:[uc("0x44"),uc("0x46")]},children:[{tag:"span",children:[{text:this[uc("0x8")][uc("0x49")]}],attributes:{class:[uc("0xd"),"ck-annotation__info-name"]}},{tag:uc("0x3d"),attributes:{datetime:t.to("authoredAt"),class:[uc("0x15"),uc("0x30")]},children:[{text:t.to(uc("0x10"),(t=>this[uc("0x28")][uc("0x1f")](t)))}]}]},{tag:uc("0x24"),attributes:{class:[uc("0x2"),uc("0x20")]},children:[this[uc("0x1a")],this[uc("0x9")]]},{tag:uc("0x24"),attributes:{class:[uc("0x3b")]}}];this[uc("0x17")][uc("0x3f")]&&e[uc("0x50")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[uc("0x38")]()}]});const n={tag:uc("0x24"),attributes:{class:[uc("0x13"),t.if(uc("0x25"),uc("0xe")),t.to(uc("0x47"),(t=>uc("0x36")+t)),this._config[uc("0x6")]&&uc("0x51")],"data-suggestion-id":this[uc("0x17")].id,"data-thread-id":this[uc("0x17")][uc("0x3")].id,"data-author-id":this._model[uc("0x3c")].id,tabindex:-1},children:[{tag:uc("0x24"),attributes:{class:[uc("0x1"),uc("0x52")]},children:[this.userView,{tag:"div",attributes:{class:[uc("0xa"),uc("0x4b")]},children:e}]}]};return this[uc("0x2e")]&&this[uc("0x32")]&&n[uc("0x4f")].push(this[uc("0x2e")],this[uc("0x32")]),n}[uc("0x55")](){super[uc("0x55")](),this._descriptionElement=this[uc("0x4")][uc("0x31")](uc("0x3e")),this._descriptionElement[uc("0x29")]=this[uc("0x40")],this.on("change:description",((t,e,n)=>{this[uc("0x11")][uc("0x29")]=n}))}[uc("0xf")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x4a")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x23")]({attributes:{class:n}}),i.on("execute",(()=>{this.fire(o,this[uc("0x17")].id)})),i}[uc("0x38")](){return uc("0x42")===this[uc("0x17")][uc("0x1b")][uc("0x5")][uc("0x48")]?Yo(this.locale,uc("0x21")):Yo(this[uc("0x4a")],"EXTERNAL_SUGGESTION")}[uc("0x16")](){return this[uc("0x17")].isExternal?uc("0x42")===this[uc("0x17")].attributes[uc("0x5")][uc("0x48")]?Yo(this[uc("0x4a")],uc("0x35"),this._model.creator.name):Yo(this[uc("0x4a")],uc("0x2f"),this[uc("0x17")].creator[uc("0x49")]):null}}function mc(t,e){let n="";return n+=t[uc("0x2c")]("*")[uc("0x4d")](((t,e)=>e%2!=0?uc("0x43")+fc(t)+uc("0x3a"):fc(t)))[uc("0x1d")](""),e&&(n+=uc("0x2b")+e[uc("0xb")]+uc("0x18")+e[uc("0x26")]+uc("0x4e")),n}function fc(t){const e=document[uc("0x2a")](uc("0x41"));return e[uc("0x7")]=t,e[uc("0x29")]}const hc=["_updateController","addComment","plugins","head","get","getSuggestion","suggestionLoaded","_destroyController","has","keys","isMultiRange","Accept all suggestions","hasSuggestion","buttonView","config","remove","commands","getJoined","comments.editorConfig","switchbutton","editor","TrackChangesEditing","_refreshActiveMarkers","_disableComments","registerAnnotation","Discard all selected suggestions","map","commandName","Annotations","delete","change:activeAnnotations","Accept all selected suggestions","comments.maxCommentsWhenCollapsed","requires","getMarkerNames","_handleControllerBuffer","comments.maxThreadTotalWeight","length","createAnnotationView","locale","mainView","bind","editing","filter","add","getFirstRange","type","listenTo","CommentsUI","activeAnnotations","refreshSelectedViews","size","focus","value","Discard all suggestions","init","some","lowest","CommentsRepository","comments","model","set","destroy","suggestion-","addSourceCollector","isOn","_annotationViews","EditorAnnotations","innerView","trackChanges.SuggestionThreadView","source","actionView","Track changes","pluginName","CommentView","suggestionChanged","previous","_handleSuggestionControllerDelayed","discardAllSuggestions","unbind","trackChanges.disableComments","arrowView","getRanges","SuggestionThreadView","_initializeController","push","TrackChangesUI","componentFactory","acceptSelectedSuggestions","getMarkers","suggestionUnloaded","acceptAllSuggestions","execute","getDescriptions","descriptionParts","reduce","isEnabled","activeMarkers","_viewToController","stopListening","acceptButton","define","button","separator","isInContent","comments.maxCommentCharsWhenCollapsed","_descriptionFactory","_suggestionToController","getAllAdjacentSuggestions","clear","trackChanges","_createUIButton","from","change:previous","isDirty","view","discardSelectedSuggestions","toMany"];var pc,bc;pc=hc,bc=357,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("0x1e")](){return[Wa,r.Users,Ec("0x37"),Ec("0x19"),Ec("0x40")]}static get[Ec("0x46")](){return Ec("0x53")}constructor(t){super(t),this[Ec("0x68")]=new Map,this._viewToController=new Map,this[Ec("0x3f")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x11")][Ec("0xb")];e[Ec("0x62")](Ec("0x42"),gc),e[Ec("0x62")]("trackChanges.disableComments",!1),this[Ec("0x14")]=e[Ec("0x1")](Ec("0x4d"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x20")][Ec("0x30")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x20")]){const n=this[Ec("0x68")][Ec("0x5")](t);n||e?n&&e&&this._destroyController(t):this[Ec("0x51")](t)}this[Ec("0x11")][Ec("0x75")][Ec("0x1")](Ec("0x40"))[Ec("0x2f")](),this[Ec("0x13")](),this[Ec("0x20")][Ec("0x6a")]()}),10),this[Ec("0x20")][Ec("0x3a")](t,e)}[Ec("0x34")](){const t=this[Ec("0x11")],e=t[Ec("0x75")].get(Ec("0x12")),n=t[Ec("0x75")][Ec("0x1")](Ec("0x19")),o=t[Ec("0x75")][Ec("0x1")]("EditorAnnotations"),s=t[Ec("0x75")][Ec("0x1")](Ec("0x37"));t.ui[Ec("0x54")][Ec("0x29")](Ec("0x6b"),(t=>this[Ec("0x6c")](t))),o[Ec("0x3d")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x6d")](this._suggestionToController)){const o=e[Ec("0x69")](),s=[];for(const t of o){if(!t[Ec("0x65")])continue;if(t[Ec("0x7")]){s[Ec("0x52")](...t[Ec("0x4f")]());continue}const e=t[Ec("0x2a")]();if(s[Ec("0x22")]>0){const t=s[0][Ec("0xe")](e);if(t){s[0]=t;continue}}s[Ec("0x52")](e)}t[Ec("0x52")]([n[Ec("0x70")],s])}return t})),this.listenTo(e,Ec("0x3"),((t,e)=>{this[Ec("0x2c")](e,Ec("0x6e"),((t,n,o,s)=>{e[Ec("0x65")]&&(null==o?(this[Ec("0x73")](s[Ec("0x0")]),this[Ec("0x4a")](e,!1)):(this[Ec("0x73")](o[Ec("0x0")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Ec("0x49")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x73")](e[Ec("0x0")])})),this[Ec("0x2c")](e,Ec("0x57"),((t,e,n)=>{this[Ec("0x60")](e,Ec("0x6e")),this[Ec("0x20")][Ec("0x1a")](e);const o=n?n[Ec("0x0")]:e,s=this[Ec("0x68")][Ec("0x1")](o);null!==n&&this[Ec("0x73")](o),null===n&&s&&this[Ec("0x4")](e)})),this[Ec("0x2c")](e,Ec("0x48"),((t,e)=>{this[Ec("0x73")](e)})),this[Ec("0x2c")](n,Ec("0x1b"),(()=>{this[Ec("0x13")]()})),this[Ec("0x2c")](s,Ec("0x74"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x9")](n))return;const s=e[Ec("0x2")](n);this[Ec("0x68")][Ec("0x1")](s)[Ec("0x70")].focus()}),{priority:Ec("0x36")})}[Ec("0x13")](){const t=this[Ec("0x11")].plugins[Ec("0x1")](Ec("0x19")),e=this[Ec("0x11")][Ec("0x75")][Ec("0x1")]("TrackChangesEditing"),n=Array[Ec("0x6d")](t[Ec("0x2e")],(t=>t[Ec("0x41")]))[Ec("0x28")]((t=>this._viewToController[Ec("0x5")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Ec("0x39")][Ec("0x69")]();o.push(...e[Ec("0x5c")](((t,e)=>[...t,...e[Ec("0x1f")]()]),[]))}e[Ec("0x5e")]=o}[Ec("0x6c")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x11")][Ec("0xd")][Ec("0x1")](Ec("0x6b")),r=Yo(t,Ec("0x45"));n.buttonView[Ec("0x3a")]({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("0xa")].bind("isOn").to(o,Ec("0x32")),n[Ec("0xa")].on(Ec("0x59"),(()=>{o[Ec("0x59")](),this[Ec("0x11")][Ec("0x27")][Ec("0x70")][Ec("0x31")]()}));const i=new e.Collection,x=[{type:Ec("0x10"),model:{withText:!0,label:r,commandName:Ec("0x6b")}},{type:Ec("0x64")},{type:Ec("0x63"),model:{withText:!0,label:Yo(t,Ec("0x8")),commandName:Ec("0x58")}},{type:Ec("0x63"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:Ec("0x55")}},{type:Ec("0x63"),model:{withText:!0,label:Yo(t,Ec("0x33")),commandName:Ec("0x4b")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x16")),commandName:Ec("0x71")}}];for(const t of x){let e={type:Ec("0x64")};if(t[Ec("0x39")]){const n=new s.Model(t[Ec("0x39")]),o=this[Ec("0x11")].commands.get(n.commandName);n[Ec("0x26")](Ec("0x3e"),"isEnabled").to(o,Ec("0x32"),Ec("0x5d")),e={type:t[Ec("0x2b")],model:n}}i[Ec("0x29")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x28")]((t=>null!=t[Ec("0x39")]))[Ec("0x17")]((t=>this[Ec("0x11")][Ec("0xd")][Ec("0x1")](t[Ec("0x39")][Ec("0x18")]))),c=n[Ec("0xa")];return c[Ec("0x44")].unbind(Ec("0x5d")),c[Ec("0x4e")][Ec("0x4c")](Ec("0x5d")),c[Ec("0x44")].bind(Ec("0x5d")).to(o,Ec("0x5d")),c[Ec("0x4e")][Ec("0x26")](Ec("0x5d"))[Ec("0x72")](a,Ec("0x5d"),((...t)=>t[Ec("0x35")]((t=>t)))),n.on("execute",(t=>{this[Ec("0x11")][Ec("0x59")](t[Ec("0x43")][Ec("0x18")]),this[Ec("0x11")][Ec("0x27")][Ec("0x70")][Ec("0x31")]()})),n}[Ec("0x51")](t){const e=this[Ec("0x11")],n=e[Ec("0xb")],o=e.plugins.get("Annotations"),s=e[Ec("0x75")][Ec("0x1")](Ec("0x37")),i=e[Ec("0x75")][Ec("0x1")]("EditorAnnotations"),x=e.plugins.get(r.Users).me,a=n.get(Ec("0x6b"))[Ec("0x50")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x1")](Ec("0x2d"));let d,u;this[Ec("0x3f")].has(t.id)?(u=this[Ec("0x3f")][Ec("0x1")](t.id),d=u[Ec("0x25")]):(d=new a(e[Ec("0x24")],t,x,{disableComments:this[Ec("0x14")],editorConfig:n[Ec("0x1")](Ec("0xf")),maxCommentsWhenCollapsed:n[Ec("0x1")](Ec("0x1d")),maxThreadTotalWeight:n[Ec("0x1")](Ec("0x21")),maxCommentCharsWhenCollapsed:n[Ec("0x1")](Ec("0x66")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Ec("0x24"))),CommentView:n.get(Ec("0x38"))[Ec("0x47")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x61")].on("execute",(()=>{e[Ec("0x27")][Ec("0x70")][Ec("0x31")]()})),d.discardButton.on("execute",(()=>{e[Ec("0x27")].view[Ec("0x31")]()})),u=o[Ec("0x23")](this[Ec("0x11")].locale,d),u[Ec("0x26")](Ec("0x6f")).to(d,Ec("0x6f")),u.bind(Ec("0x22")).to(d),u.bind(Ec("0x2b")).to(d,Ec("0x2b"),(t=>Ec("0x3c")+t)),this[Ec("0x3f")][Ec("0x3a")](t.id,u));const g=s.createCommentThreadController(t.commentThread,d),m=new oc(e,t,d,g),f=t[Ec("0x69")]()[Ec("0x28")]((t=>t[Ec("0x65")]));d[Ec("0x5b")]=e[Ec("0x75")][Ec("0x1")](Ec("0x12"))[Ec("0x67")][Ec("0x5a")](f),this[Ec("0x68")][Ec("0x3a")](t,m),this[Ec("0x5f")][Ec("0x3a")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x69")]()[Ec("0x28")]((t=>t[Ec("0x65")]));for(const t of o)n[Ec("0x52")](...t[Ec("0x56")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x27")],n)},type:()=>Ec("0x3c")+m[Ec("0x70")][Ec("0x2b")]});o[Ec("0x29")](h),i[Ec("0x15")](h)}[Ec("0x4")](t){const e=this[Ec("0x11")].plugins[Ec("0x1")]("Annotations"),n=this._suggestionToController.get(t),o=n[Ec("0x70")],s=e.getByInnerView(o);s&&e[Ec("0xc")](s),this[Ec("0x68")][Ec("0x1a")](t),this[Ec("0x5f")][Ec("0x1a")](o),n[Ec("0x3b")]()}[Ec("0x73")](t){if(!t.isInContent||!this[Ec("0x68")][Ec("0x5")](t))return;const e=this.editor[Ec("0x75")].get("TrackChangesEditing"),n=this._suggestionToController.get(t),o=t[Ec("0x69")]();n[Ec("0x70")][Ec("0x5b")]=e._descriptionFactory[Ec("0x5a")](o)}[Ec("0x3b")](){for(const t of this._suggestionToController[Ec("0x6")]())this[Ec("0x4")](t);for(const t of this[Ec("0x3f")].values())t[Ec("0x25")][Ec("0x3b")]();super[Ec("0x3b")]()}}var Tc,Cc,yc=["adapter","plugins","editor","requires","getSuggestions","getSuggestion","Comments","addSuggestion","pluginName","TrackChanges","get"];Tc=yc,Cc=180,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[Wa,_c,kc("0x2")]}static get[kc("0x4")](){return kc("0x5")}set[kc("0x7")](t){this[kc("0x9")][kc("0x8")].get(Wa).adapter=t}get[kc("0x7")](){return this[kc("0x9")][kc("0x8")][kc("0x6")](Wa)[kc("0x7")]}[kc("0x3")](t){return this[kc("0x9")][kc("0x8")][kc("0x6")](Wa).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x9")][kc("0x8")][kc("0x6")](Wa)[kc("0x0")]({skipNotAttached:t,toJSON:e})}[kc("0x1")](t){return this.editor[kc("0x8")][kc("0x6")](Wa)[kc("0x1")](t)}}const vc=["data","editor","getUser","users","editorCreator","execute","_adapter","createDocumentFragment","destroy","plugins","acceptAllSuggestions","end","config","result","trackChangesData","TrackChangesEditing","push","CommentsRepository","get","getFullData","Pagination","document","useAnonymousUser","model","create","init","discardAllSuggestions","pluginName","rootsAttributes","function","getDataWithAcceptedSuggestions","appendChild","track-changes-data-invalid-editor-creator","TrackChangesData","Users","createElement","addUser","name","div","getRootNames","reduce","getRootsAttributes"];var Rc,Sc;Rc=vc,Sc=306,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x8")];class Nc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0xf")](){return Ic("0x15")}[Ic("0xd")](){const t=this[Ic("0x1f")];if(t[Ic("0x0")].define("trackChangesData.editorCreator",(e=>{const n=t.model.document[Ic("0x1b")]()[Ic("0x1c")](((t,e)=>(t[e]="",t)),{});return t.constructor[Ic("0xc")](n,e)})),Ic("0x11")!=typeof t.config[Ic("0x6")](Ic("0x2")).editorCreator)throw new e.CKEditorError(Ic("0x14"))}[Ic("0x12")](t){return Oc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0x1f")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0xf")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[Ic("0x1")]=Ic("0x29")}[Ic("0xd")](){this.editor[Ic("0x27")][Ic("0x6")](Ic("0x5"))[Ic("0x24")]={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("0x1f")][Ic("0x27")].get(Ic("0x3"))._adapter=null}}function wc(t){return void 0!==t[Ic("0x1d")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x27")][Ic("0x4")](Wa,Mc),o[Ic("0x10")]=wc(t)?t.getRootsAttributes():void 0;const s=document[Ic("0x25")](),i=t[Ic("0x0")][Ic("0x6")]("trackChangesData")[Ic("0x22")],x=await i(o,(()=>function(t){const e=document[Ic("0x17")](Ic("0x1a"));return t[Ic("0x13")](e),e}(s)));!function(t,e){const n=t[Ic("0xb")][Ic("0x9")][Ic("0x1b")]().reduce(((e,n)=>(e[n]=t[Ic("0x1e")][Ic("0x6")]({rootName:n}),e)),{}),o=t[Ic("0x27")][Ic("0x6")](Ic("0x16"))[Ic("0x21")].map((t=>({id:t.id,name:t[Ic("0x19")]}))),s=t[Ic("0x27")].get(Ic("0x3")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x27")].get(Ic("0x16")),i=e[Ic("0x27")][Ic("0x6")](Ic("0x3"));for(const t of o)r[Ic("0x20")](t.id)||r[Ic("0x18")](t);r.me||r[Ic("0xa")]();for(const t of s)i.addSuggestionData(t);e[Ic("0x1e")].set(n)}(t,x),x[Ic("0x23")](Ic(e?"0x28":"0xe"));const a=wc(x)?x[Ic("0x7")](n):x[Ic("0x1e")][Ic("0x6")](n);return await x[Ic("0x26")](),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 r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.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:()=>Wa});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["isEnabled","has","refresh","editor","execute","TrackChangesCommand","_enableCommands","_disableUnsupportedCommands","clearForceDisabled","affectsData","value","_enabledCommands","_isEnabledBasedOnSelection","commands"];var c,l;c=a,l=196,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("0xb")]=e,this[d("0xa")]=!1,this[d("0x2")](),this[d("0xc")]=!1}[d("0x2")](){this[d("0x0")]=!0}[d("0x4")](){this[d("0xa")]=!this.value,this[d("0xa")]?this[d("0x7")]():this[d("0x6")]()}_disableUnsupportedCommands(){for(const t of this[d("0x3")][d("0xd")].commands())t.affectsData&&!this[d("0xb")][d("0x1")](t)&&t.forceDisabled("TrackChangesCommand")}[d("0x6")](){for(const t of this[d("0x3")][d("0xd")].commands())t[d("0x9")]&&!this[d("0xb")][d("0x1")](t)&&t[d("0x8")](d("0x5"))}}const g=["canEditAt","plugins","track-changes-accept-suggestion-not-found","TrackChangesEditing","get","acceptSuggestion","_suggestions","editor","refresh","isEnabled","getRanges","_isEnabledBasedOnSelection"];var m,f;m=g,f=300,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("0x8")](),this[h("0xb")]=!1}[h("0x8")](){this[h("0x9")]=!0}execute(t){const n=this[h("0x6")].get(t);if(!n)throw new e.CKEditorError(h("0x2"),this);const o=n[h("0xa")]();this[h("0x7")].model[h("0x0")](o)&&this[h("0x7")][h("0x1")][h("0x4")](h("0x3"))[h("0x5")](n)}}const b=["plugins","get","_isEnabledBasedOnSelection","TrackChangesEditing","refresh","isEnabled","track-changes-discard-suggestion-not-found","editor","execute","_suggestions","canEditAt","getRanges","model"];var E,_;E=b,_=247,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("0x9")]=e,this[T("0x4")](),this[T("0x2")]=!1}[T("0x4")](){this[T("0x5")]=!0}[T("0x8")](t){const n=this[T("0x9")][T("0x1")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0xb")]();this[T("0x7")][T("0xc")][T("0xa")](o)&&this[T("0x7")][T("0x0")][T("0x1")](T("0x3")).discardSuggestion(n)}}const y=["isInContent","deletion","add","type","color","getMarkers","replace","createPositionAt","isArray","createPositionBefore","isMultiRange","length","end","sort","schema","isTouching","content","createPositionAfter","getRange","change","push","execute","isIntersecting","isObject","map","createRange","isCollapsed","start"];var k,A;k=y,A=450,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xb")](((t,e)=>"deletion"==t[v("0x1")]&&v("0x1b")!=e[v("0x1")]?-1:v("0x1b")!=t[v("0x1")]&&v("0x1b")==e[v("0x1")]?1:0))}function I(t,e){let n,o=0;const r=[],s=e[v("0xc")];for(;o<t[v("0x9")];){const i=t[o],x=t[o+1];n||(n=e[v("0x7")](i)),S(e,i,x)||(r[v("0x12")](e[v("0x17")](n,s[v("0x15")](i)?e.createPositionAfter(i):e[v("0x5")](i,v("0xa")))),n=null),o++}return r}function S(t,e,n){if(!n)return!1;const o=t[v("0xf")](e),r=t.createPositionBefore(n);return o[v("0xd")](r)}function L(t,e,n){for(;n[v("0x9")];){const o=n.splice(0,100);t[v("0x11")]((()=>{for(const t of o)t[v("0x1a")]&&e[v("0x13")](t.id)}))}}const N=["refresh","values","model","execute","isInContent","getRanges","isEnabled","editor","_suggestions","from","_command"];var w,M;w=N,M=468,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x2")]=n,this[O("0x5")](),this._isEnabledBasedOnSelection=!1}[O("0x5")](){const t=Array[O("0x3")](this[O("0x2")][O("0x6")]()).some((t=>t[O("0x9")]));this[O("0x0")]=this[O("0x4")][O("0x0")]&&t}[O("0x8")](){const t=R(Array[O("0x3")](this[O("0x2")][O("0x6")]()));for(const e of t){const t=e[O("0xa")]();if(!this.editor.model.canEditAt(t))return}L(this[O("0x1")][O("0x7")],this._command,t)}}const P=["model","from","_selectedSuggestions","getRanges","selection","execute","editor","_command","size","document","values","isEnabled","_suggestions"];var D,B;D=P,B=109,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._command=e,this._suggestions=n,this[j("0xa")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}refresh(){const t=this[j("0x1")][j("0x8")][j("0x4")][j("0xc")],e=Array[j("0x9")](this[j("0x7")][j("0x5")]());this[j("0xa")]=function(t,e){const n=Array.from(t.getRanges()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[v("0x3")]()){const s=n[v("0x10")]();(e[v("0x14")](s)||t[v("0x18")]&&!r[v("0x8")]&&r.next&&s.end[v("0xd")](e[v("0x19")]))&&o[v("0x0")](r)}return o}(t,e),this[j("0x6")]=this[j("0x2")][j("0x6")]&&!!this[j("0xa")][j("0x3")]}[j("0x0")](){const t=R(Array[j("0x9")](this._selectedSuggestions));for(const e of t){const t=e[j("0xb")]();if(!this[j("0x1")][j("0x8")].canEditAt(t))return}L(this[j("0x1")][j("0x8")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const 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 rt=ot.Symbol;var st=Object.prototype,it=st.hasOwnProperty,xt=st.toString,at=rt?rt.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 r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||Q),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const 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 re=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const se=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const 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 Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),r=!n&&!o&&be(t),s=!n&&!o&&!r&&Le(t),i=n||o||r||s,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("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&&se(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&se(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,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};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 rn=function(t,e){return se(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return se(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=rt?rt.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var 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,r,s,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=s?o(e,r,s,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=In(e),g=u==Jn||"[object GeneratorFunction]"==u;if(be(e))return Je(e,a);if(u==Zn||u==Qn||g&&!s){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Yn[u])return s?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(r){x.add(t(r,n,o,r,e,i))})):Kn(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(r,s){f&&(r=e[s=r]),re(x,s,t(r,n,o,s,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)\]/,ro=/^\w*$/;const so=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,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,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,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:so(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 r=-1,s=(e=po(e,t)).length,i=s-1,x=t;null!=x&&++r<s;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const 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,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(s.set(t,e),s.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,s):o(m,f,d,t,e,s);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){u=!1;break}}return s.delete(t),s.delete(e),u};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=rt?rt.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,r,s,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||!s(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,r,s,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,r,s){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=s.get(t),u=s.get(e);if(d&&u)return d==e&&u==t;var g=!0;s.set(t,e),s.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,s):o(f,h,l,t,e,s);if(!(void 0===p?f===h||r(f,h,n,o,s):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 s.delete(t),s.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,r,s){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return s||(s=new Yt),i||Le(t)?Ro(t,e,n,o,r,s):wo(t,e,a,n,o,r,s);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 s||(s=new Yt),r(f,h,n,o,s)}}return!!u&&(s||(s=new Yt),Oo(t,e,n,o,r,s))};const Uo=function t(e,n,o,r,s){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,r,t,s))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["reduce","getMarkers","createdAt","removeMarkers","substr","data","filter","getItems","add","split","type","creator","isIntersectingWithRange","_onAttributesChange","getFirstMarker","clear","_onAccept","set","nodeAfter","subType","start","isExternal","getRange","previous","map","author","removeAttribute","authoredAt","head","getMultiRangeId","@external","_model","length","from","_markerNames","commentThread","change","accept","_saved","discard","onAccept","isInContent","addMarkerName","delete","push","next","suggestion:","attributes","getFirstRange","getRanges","isMultiRange","hasComments","decorate","getMarkerNames","addRange","removeMarker","_onDiscard","getAllAdjacentSuggestions","onDiscard","end","get","size"];var $o,Qo;$o=Xo,Qo=175,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[Jo("0x15")]=e.type,this[Jo("0x1e")]=e.subType||null,this[Jo("0x24")]=e.author,this[Jo("0x16")]=e[Jo("0x16")]||e.author,this[Jo("0x20")]=Boolean(e[Jo("0x3a")]&&e.attributes[Jo("0x29")]),this[Jo("0x10")]=null,this[Jo("0x2a")]=t,this[Jo("0x1b")]=e[Jo("0x33")],this._onDiscard=e[Jo("0x7")],this[Jo("0x18")]=e.onAttributesChange,this[Jo("0x2d")]=new Set,this[Jo("0xd")]=null,this[Jo("0x1c")](Jo("0x26"),null),this.set(Jo("0x3a"),e[Jo("0x3a")]||{}),this[Jo("0x1c")](Jo("0x22"),null),this[Jo("0x1c")]("next",null),this.set(Jo("0x2e"),null),this[Jo("0x1c")](Jo("0x31"),!1),this.decorate(Jo("0x30")),this[Jo("0x1")](Jo("0x32"))}get head(){let t=this;for(;t[Jo("0x22")];)t=t[Jo("0x22")];return t}get hasComments(){return!!this[Jo("0x2e")]&&this.commentThread[Jo("0x2b")]>0}get[Jo("0x3d")](){return 0!=this._markerNames[Jo("0xa")]&&6==Array[Jo("0x2c")](this._markerNames)[0][Jo("0x14")](":")[Jo("0x2b")]}get[Jo("0x34")](){return null!==this[Jo("0x19")]()}[Jo("0x35")](t){this[Jo("0x2d")][Jo("0x13")](t)}[Jo("0x2")](){return Array.from(this[Jo("0x2d")])}[Jo("0xc")](){return this.getMarkerNames()[Jo("0x23")]((t=>this._model.markers[Jo("0x9")](t)))[Jo("0x11")]((t=>t))}[Jo("0x19")](){return this[Jo("0xc")]()[0]||null}[Jo("0xe")](){this[Jo("0x2a")][Jo("0x2f")]((t=>{for(const e of this.getMarkers())t[Jo("0x4")](e)})),this[Jo("0x2d")][Jo("0x1a")]()}removeMarker(t){this[Jo("0x2a")][Jo("0x2f")]((e=>{e[Jo("0x4")](t)})),this[Jo("0x2d")][Jo("0x36")](t)}[Jo("0x3")](t){const e=Jo("0x39")+this[Jo("0x15")]+":"+this[Jo("0x1e")]+":"+this.id+":"+this[Jo("0x16")].id+":"+Zo[Jo("0x28")]();this[Jo("0x35")](e),this._model[Jo("0x2f")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0x17")](t){for(const e of this[Jo("0x3c")]())if(e.isIntersecting(t))return!0;return!1}[Jo("0x3c")](){return this[Jo("0xc")]()[Jo("0x23")]((t=>t[Jo("0x21")]()))}[Jo("0x12")](){return this[Jo("0x3c")]()[Jo("0xb")](((t,e)=>[...t,...e[Jo("0x12")]()]),[])}[Jo("0x3b")](){var t;return(null===(t=this[Jo("0x19")]())||void 0===t?void 0:t[Jo("0x21")]())||null}getContainedElement(){const t=this[Jo("0x3c")]();if(1!=t.length)return null;const e=t[0],n=e[Jo("0x1f")][Jo("0x1d")],o=e[Jo("0x8")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}accept(){this[Jo("0x1b")](this[Jo("0x3c")](),this[Jo("0x10")],this[Jo("0x3a")]),this.removeMarkers()}discard(){this[Jo("0x5")](this.getRanges(),this[Jo("0x10")],this.attributes),this[Jo("0xe")]()}[Jo("0x6")](){const t=[];let e=this[Jo("0x27")];for(;e;)t[Jo("0x37")](e),e=e[Jo("0x38")];return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Jo("0x3a")])||(this[Jo("0x3a")]=n,this[Jo("0x18")](n))}[Jo("0x25")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Jo("0x3a")])||(this.attributes=e,this[Jo("0x18")](this.attributes))}toJSON(){return{id:this.id,type:this.subType?this.type+":"+this[Jo("0x1e")]:this[Jo("0x15")],authorId:this[Jo("0x16")].id,createdAt:this.createdAt,hasComments:this[Jo("0x0")],data:this[Jo("0x10")],attributes:this[Jo("0x3a")]}}static getMultiRangeId(){return(0,e.uid)()[Jo("0xf")](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 tr=["Container","softBreak","*Insert:* %0","push","normal","get","removeContainer","function","addEmptyContainer","isEmpty","_schema","remove","EmptyContainer","$1 $2","start","addContainer","item","quantity","*Split:* %0","isInContent","registerElementLabel","elementEnd","getWalker","_customCallbacks","Object","addObject","end","add","_resolveDescriptionItems","previousSibling","type","checkChild","nextSibling","skip","length","_itemLabels","matchingCallback","REPLACE_TEXT","pop","getDescriptions","getItemLabel","match","*Remove:* %0","data","$text","replace","removeObject","element","insertion","name","getFirstRange","text","_locale","elementStart","isObject","isEqual","indexOf","deletion","ELEMENT_SPACE","_itemLabelsCallbacks"];var er,nr;er=tr,nr=431,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0xc")]=[],this[or("0x18")]=new Map,this[or("0x30")]=[],this[or("0x3b")]=t,this[or("0x29")]=e}[or("0x1c")](t){const e=[];for(let n=0;n<t[or("0x17")];n++){const o=t[n];if(!o[or("0x8")])continue;let r=!1;for(const t of this[or("0xc")]){const n=t(o);if(n){"type"in n&&e[or("0x34")](n),r=!0;break}}if(!r){this._addDescriptionItems(e,o);const r=t[n+1];if(r&&!o[or("0x27")]()[or("0xf")][or("0x2c")](r[or("0x27")]()[or("0x3")])){const t=e[e[or("0x17")]-1],n="insertion"==o[or("0x13")]?"add":"remove";t&&"text"==t[or("0x13")]&&(t[n]+="\n")}}}return this[or("0x11")](e)}registerDescriptionCallback(t){this._customCallbacks[or("0x34")](t)}[or("0x9")](t,n,o=e.priorities[or("0x35")]){or("0x38")==typeof t?(0,e.insertToPriorityArray)(this[or("0x30")],{matchingCallback:t,label:n,priority:o}):this[or("0x18")].set(t,n)}[or("0x1d")](t,e=1){let n;for(const e of this[or("0x30")])if(e[or("0x19")](t)){n=e.label;break}return n||(n=this[or("0x18")][or("0x36")](t[or("0x26")])),n?n(e):1!==e?e+" "+t[or("0x26")]+"s":""+t[or("0x26")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[or("0xb")](),o=or("0x25")==e.type?or("0x10"):or("0x0");for(const e of n){const r=e.item,s=t[t.length-1];if(r.is("$textProxy"))s&&s[or("0x13")][or("0x2d")]("Container")>-1&&t[or("0x1b")](),s&&or("0x28")==s[or("0x13")]?s[o]+=r[or("0x20")]:t[or("0x34")]({type:or("0x28"),add:or("0x10")==o?r[or("0x20")]:"",remove:or("0x0")==o?r.data:""});else if(this[or("0x3b")][or("0x2b")](r)){const i=r;if(s&&s.type.indexOf("Container")>-1&&t[or("0x1b")](),or("0xa")==e[or("0x13")])continue;s&&s.type==o+or("0xd")&&s[or("0x24")][or("0x26")]==i[or("0x26")]?s.quantity++:t.push({type:o+or("0xd"),element:i,quantity:1}),n[or("0x16")]((t=>!(or("0xa")==t.type&&t[or("0x5")]==r)))}else if(this[or("0x3b")][or("0x14")](r,or("0x21"))||r.is(or("0x24"),or("0x32"))){const n=r;if(or("0x10")==o&&or("0x2a")==e[or("0x13")]||or("0x0")==o&&or("0xa")==e[or("0x13")])continue;if(s&&-1==s.type[or("0x2d")](or("0x31"))){or("0x28")==s[or("0x13")]&&(s[o]+="\n");continue}let i;if(i=or("0x10")==o?n[or("0x15")]&&!this[or("0x3b")].isObject(n[or("0x15")])?n.nextSibling:null:n.previousSibling&&!this[or("0x3b")][or("0x2b")](n[or("0x12")])?n[or("0x12")]:null,n[or("0x3a")]||i&&i.isEmpty){const e=i&&i[or("0x3a")]?i:n;s&&s[or("0x13")]==o+or("0x1")&&s[or("0x24")].name==e[or("0x26")]?s[or("0x6")]++:t[or("0x34")]({type:o+or("0x1"),element:e,quantity:1})}else t[or("0x34")]({type:o+or("0x31"),element:n})}}}[or("0x11")](t){const e=this[or("0x29")],n=[];for(const o of t){switch(o[or("0x13")]){case"text":if(o[or("0x10")]=o.add.replace(/(\S)\u000A+(\S)/g,or("0x2"))[or("0x22")](/\u000A/g,""),o.remove=o[or("0x0")][or("0x22")](/(\S)\u000A+(\S)/g,or("0x2"))[or("0x22")](/\u000A/g,""),""!=o[or("0x10")]&&""!=o[or("0x0")]){n[or("0x34")]({type:"replace",content:Yo(e,or("0x1a"),['"'+o.remove+'"','"'+o[or("0x10")]+'"'])});continue}if(null!=o[or("0x10")][or("0x1e")](/^ +$/)){n[or("0x34")]({type:or("0x25"),content:Yo(e,or("0x33"),Yo(e,or("0x2f"),o[or("0x10")][or("0x17")]))});continue}if(null!=o[or("0x0")].match(/^ +$/)){n[or("0x34")]({type:"deletion",content:Yo(e,or("0x1f"),Yo(e,or("0x2f"),o.remove[or("0x17")]))});continue}if(""!=o[or("0x10")]){n[or("0x34")]({type:"insertion",content:Yo(e,or("0x33"),'"'+o.add+'"')});continue}n[or("0x34")]({type:or("0x2e"),content:Yo(e,"*Remove:* %0",'"'+o[or("0x0")]+'"')});continue;case or("0x39"):case or("0xe"):n[or("0x34")]({type:"insertion",content:Yo(e,or("0x33"),this[or("0x1d")](o[or("0x24")],o[or("0x6")]))});continue;case"removeEmptyContainer":case or("0x23"):n[or("0x34")]({type:"deletion",content:Yo(e,or("0x1f"),this[or("0x1d")](o[or("0x24")],o[or("0x6")]))});continue;case or("0x4"):n[or("0x34")]({type:"insertion",content:Yo(e,or("0x7"),this[or("0x1d")](o[or("0x24")],o[or("0x6")]))});continue;case or("0x37"):n[or("0x34")]({type:or("0x2e"),content:Yo(e,"*Merge:* %0",this[or("0x1d")](o.element,o.quantity))});continue}n[or("0x34")](o)}return n}}const sr=["value","format","commandParams","editor","schema","alignment","locale","registerDescriptionCallback","plugins","FORMAT_ALIGN_TO_CENTER","model","has","selection","checkAttribute","ltr","from","getAttribute","enableCommand","left","FORMAT_ALIGN_TO_RIGHT","markBlockFormat","center","right","change","_descriptionFactory","*Format:* %0","contentLanguageDirection","document","TrackChangesEditing","get","afterInit","FORMAT_ALIGN_TO_LEFT"];var ir,xr;ir=sr,xr=382,function(t){for(;--t;)ir.push(ir.shift())}(++xr);const ar=function(t,e){return sr[t-=0]};class cr extends t.Plugin{[ar("0x0")](){const t=this.editor,e=t[ar("0x8")];if(!t[ar("0xa")][ar("0xd")]("AlignmentEditing"))return;const n=t.plugins[ar("0x1f")](ar("0x1e"));n[ar("0x13")](ar("0x7"),((e,o={})=>{let r=o[ar("0x2")];o[ar("0x2")]||(r=ar("0x10")===t[ar("0x8")][ar("0x1c")]?ar("0x14"):ar("0x18"));const s=Array[ar("0x11")](this[ar("0x5")][ar("0xc")][ar("0x1d")][ar("0xe")].getSelectedBlocks()).filter((t=>function(t,e,n){const o=t[ar("0x12")]("alignment")||null;return e[ar("0xf")](t,ar("0x7"))&&n!=o}(t,this[ar("0x5")][ar("0xc")][ar("0x6")],r)));t[ar("0xc")][ar("0x19")]((()=>{for(const t of s)n[ar("0x16")](t,{commandName:ar("0x7"),commandParams:[{value:r}]})}))})),n[ar("0x1a")][ar("0x9")]((t=>{const{data:n}=t;if(n&&"alignment"==n.commandName){const t=n[ar("0x4")][0].value;return{type:ar("0x3"),content:Yo(e,ar("0x1b"),function(t){switch(t){case ar("0x14"):return Yo(e,ar("0x1"));case ar("0x18"):return Yo(e,ar("0x15"));case ar("0x17"):return Yo(e,ar("0xb"));case"justify":return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const lr=["includes","bindElementToMarker","plugins","addHighlight","writer","listIndent","item","span","getItems","nextSibling","markerName","toViewElement","getAttribute","schema","test","hasAttribute","isLimit","addClass","ck-suggestion-marker--active","get","ck-suggestion-marker-","insert","getWalker","isContent","getCustomProperty","previousPosition","TrackChangesEditing","parent","consumable","name","isBlock","markerRange","listItem","toViewPosition","mapper","push"];var dr,ur;dr=lr,ur=322,function(t){for(;--t;)dr.push(dr.shift())}(++ur);const gr=function(t,e){return lr[t-=0]};function mr(t,e,n){const o=[];for(const r of e[gr("0xa")]())r[gr("0x11")](t)&&o[gr("0x1")](n.createRangeOn(r));return o}function fr(t){const e=[];if(t.is("element",gr("0x22"))){let n=t[gr("0xb")];for(;n&&n.is("element",gr("0x22"))&&n[gr("0xe")](gr("0x7"))>0;)e.push(n),n=n[gr("0xb")]}return e}function hr(t,e,{showActiveMarker:n=!0}={}){const o=t[gr("0x4")][gr("0x15")](gr("0x1c"));return(r,s,i)=>{if(!i[gr("0x1e")][gr("0x10")](s[gr("0x21")],r[gr("0x1f")]))return;const x=s[gr("0x21")][gr("0x18")](),a=s[gr("0x21")].start,c=t.model[gr("0xf")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gr("0x8")];u=u||c[gr("0x19")](e);const n=i[gr("0x0")][gr("0xd")](e);if(n&&n[gr("0x1a")](gr("0x5")))return;"elementEnd"==t.type&&c[gr("0x20")](e)&&!c[gr("0x12")](e)&&(e[gr("0xb")]||a.isAtEnd?l&&l[gr("0x1d")]==e||(l=e,m(t[gr("0x1b")]),g=!0):d=d||t[gr("0x1b")])}function m(t){const r=i[gr("0x6")].createUIElement(gr("0x9"),{class:gr("0x16")+e}),x=i[gr("0x0")][gr("0x23")](t);n&&o.activeMarkers[gr("0x2")](s[gr("0xc")])&&i.writer[gr("0x13")](gr("0x14"),r),i.writer[gr("0x17")](x,r),i[gr("0x0")][gr("0x3")](r,s[gr("0xc")])}u||g||!d||m(d)}}const pr=["commands","forceValue","from","subscript","get","*Remove format:* %0","slice","has","FORMAT_CODE","italic","format","superscript","strikethrough","SuperscriptEditing","SubscriptEditing","bold","commandName","registerDescriptionCallback","document","FORMAT_BOLD","editor","markInlineFormat","toLowerCase","FORMAT_SUPERSCRIPT","plugins","ItalicEditing","code","FORMAT_STRIKETHROUGH","FORMAT_SUBSCRIPT","*Format:* %0","value","FORMAT_UNDERLINE","StrikethroughEditing","commandParams"];var br,Er;br=pr,Er=289,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]},Tr=["BoldEditing",_r("0x8"),"UnderlineEditing","CodeEditing",_r("0xf"),_r("0x1f"),_r("0x1e")];class Cr extends t.Plugin{afterInit(){const t=this[_r("0x3")],e=t.model,n=t[_r("0x7")][_r("0x15")]("TrackChangesEditing"),o=t.locale;for(const o of Tr){if(!t[_r("0x7")][_r("0x18")](o))continue;const r=o[_r("0x17")](0,-7)[_r("0x5")](),s=t[_r("0x11")][_r("0x15")](r);n.enableCommand(r,((t,o={})=>{const i=e[_r("0x1")].selection;if(i.isCollapsed)return void t(o);const x=void 0!==o[_r("0x12")]?o[_r("0x12")]:!s[_r("0xd")];e.change((()=>{const t=Array[_r("0x13")](i.getRanges());for(const o of t){const t=x?[o]:mr(r,o,e);for(const e of t)n[_r("0x4")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n._descriptionFactory[_r("0x0")]((n=>{const{data:r}=n;if(r&&r[_r("0x21")]===t)return r[_r("0x10")][0][_r("0x12")]?{type:_r("0x1b"),content:Yo(o,_r("0xc"),e)}:{type:_r("0x1b"),content:Yo(o,_r("0x16"),e)}}))}r(_r("0x20"),Yo(o,_r("0x2"))),r(_r("0x1a"),Yo(o,"FORMAT_ITALIC")),r("underline",Yo(o,_r("0xe"))),r(_r("0x9"),Yo(o,_r("0x19"))),r(_r("0x1d"),Yo(o,_r("0xa"))),r(_r("0x14"),Yo(o,_r("0xb"))),r(_r("0x1c"),Yo(o,_r("0x6")))}}const yr=["editor","registerDescriptionCallback","change","getSelectedBlocks","has","blockQuote","*Format:* %0","model","get","value","afterInit","_descriptionFactory","parent","commands","plugins","filter","TrackChangesEditing","locale","document","commandName","schema","$root","checkChild","forceValue","format","*Remove format:* %0","enableCommand","from"];var kr,Ar;kr=yr,Ar=168,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0xa")](){const t=this[vr("0x0")],e=t[vr("0x11")];if(!t[vr("0xe")][vr("0x4")]("BlockQuoteEditing"))return;const n=t[vr("0xe")].get(vr("0x10")),o=this[vr("0x0")][vr("0xd")][vr("0x8")]("blockQuote");n[vr("0x1a")](vr("0x5"),((e,r={})=>{const s=this[vr("0x0")][vr("0x7")][vr("0x12")].selection,i=r&&void 0!==r[vr("0x17")]?r.forceValue:!o[vr("0x9")];let x=[];if(i){const e=Array[vr("0x1b")](s[vr("0x3")]()).filter((t=>Ir(t)||function(t,e){const n=e[vr("0x16")](t[vr("0xc")],"blockQuote"),o=e[vr("0x16")]([vr("0x15"),"blockQuote"],t);return n&&o}(t,this[vr("0x0")].model[vr("0x14")])));x=I(e,t[vr("0x7")])}else{const e=Array[vr("0x1b")](s[vr("0x3")]())[vr("0xf")]((t=>Ir(t)));x=I(e,t[vr("0x7")])}t[vr("0x7")][vr("0x2")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:vr("0x5"),commandParams:[{forceValue:i}]})}))})),n[vr("0xb")][vr("0x1")]((t=>{const{data:n}=t;if(n&&vr("0x5")==n[vr("0x13")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n.commandParams[0][vr("0x17")]?{type:vr("0x18"),content:Yo(e,vr("0x6"),t)}:{type:"format",content:Yo(e,vr("0x19"),t)}}}))}}function Ir(t){return"blockQuote"==t[vr("0xc")].name}const Sr=["plugins","ckbox","TrackChangesEditing","afterInit","get","editor"];var Lr,Nr;Lr=Sr,Nr=435,function(t){for(;--t;)Lr.push(Lr.shift())}(++Nr);const wr=function(t,e){return Sr[t-=0]};class Mr extends t.Plugin{[wr("0x0")](){const t=this[wr("0x2")];t.commands[wr("0x1")](wr("0x4"))&&t[wr("0x3")][wr("0x1")](wr("0x5")).enableCommand(wr("0x4"))}}const Or=["codeBlock","from","change","TrackChangesEditing","ELEMENT_CODE_BLOCK","commandName","getSelectedBlocks","registerDescriptionCallback","_descriptionFactory","CodeBlock","enableCommand","label","parent","model","get","forceValue","plugins","document","registerElementLabel","commands","isLimit","*Remove format:* %0","find","format","value","locale","filter","blockName","outdentCodeBlock","formatBlock","languages","commandParams","language"];var Fr,Pr;Fr=Or,Pr=183,function(t){for(;--t;)Fr.push(Fr.shift())}(++Pr);const Dr=function(t,e){return Or[t-=0]};class Br extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins.has(Dr("0x18")))return;const e=t[Dr("0x1f")][Dr("0x1d")](Dr("0x12")),n=t[Dr("0x7")],o=t.config[Dr("0x1d")](Dr("0xf"))[Dr("0xc")],r=t[Dr("0x1")][Dr("0x1d")]("codeBlock");e[Dr("0x19")]("indentCodeBlock"),e[Dr("0x19")](Dr("0xa")),e[Dr("0x19")](Dr("0xf"),((n,s={})=>{const i=t[Dr("0x1c")],x=t[Dr("0x1c")][Dr("0x20")].selection,a=s&&void 0!==s[Dr("0x1e")]?s.forceValue:!r[Dr("0x6")];let c;s[Dr("0xe")]||(s[Dr("0xe")]=o[0].language),c=a?Array[Dr("0x10")](x.getSelectedBlocks()).filter((t=>{return jr(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Dr("0x2")](e)&&n.checkChild(e[Dr("0x1b")],"codeBlock"));var e,n})):Array.from(x[Dr("0x15")]())[Dr("0x8")]((t=>jr(t)));const l=I(c,i);i[Dr("0x11")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Dr("0xf"),commandParams:[{...s,forceValue:a}],formatGroupId:Dr("0x9")})}))})),e[Dr("0x17")][Dr("0x0")](Dr("0xf"),(t=>Yo(n,Dr("0x13"),t))),e[Dr("0x17")][Dr("0x16")]((t=>{const e=n.t,{type:r,data:s}=t;if(Dr("0xb")==r&&s&&Dr("0xf")==s[Dr("0x14")]){const t=s.commandParams[0][Dr("0xe")],r=e(o[Dr("0x4")]((e=>e.language===t))[Dr("0x1a")]);return s[Dr("0xd")][0][Dr("0x1e")]?{type:Dr("0x5"),content:Yo(n,"*Format:* %0",Yo(n,Dr("0x13"),1)+" ("+r+")")}:{type:"format",content:Yo(n,Dr("0x3"),Yo(n,Dr("0x13"),1))}}}))}}function jr(t){return Dr("0xf")==t.name}const Ur=["TrackChangesEditing","CommentsEditing","afterInit","plugins","get","has","enableCommand","addCommentThread","editor"];var Gr,Hr;Gr=Ur,Hr=275,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const zr=function(t,e){return Ur[t-=0]};class Wr extends t.Plugin{[zr("0x6")](){const t=this[zr("0x3")];t[zr("0x7")][zr("0x0")](zr("0x5"))&&t[zr("0x7")][zr("0x8")](zr("0x4"))[zr("0x1")](zr("0x2"))}}var Vr=n(181);const Kr=["selection","buffer","unlock","end","enableCommand","markerNameToElements","data","enqueueChange","start","high","init","$graveyard","commands","unit","model","editor","unbindElementFromMarkerName","editing","fromRange","remove","bind","writer","deleteForward","createRange","plugins","TrackChangesEditing","isCollapsed","mapper","forward","lock","delete","getFirstRange","removeMarker:suggestion:deletion","showSuggestionHighlights","downcastDispatcher","uiElement","merge","markerName","get","batch"];var qr,Xr;qr=Kr,Xr=347,function(t){for(;--t;)qr.push(qr.shift())}(++Xr);const $r=function(t,e){return Kr[t-=0]};class Qr extends t.Plugin{static get requires(){return[Vr.Delete]}[$r("0x17")](){const t=this[$r("0x1c")],e=t[$r("0x25")][$r("0xb")]($r("0x26"));e[$r("0x11")]($r("0x3"));const n=t[$r("0x19")].get("deleteForward");e[$r("0x11")]($r("0x23"),((e,o={})=>{const r=t.model.createSelection(t.model.document[$r("0xd")]);r[$r("0x27")]&&t[$r("0x1b")].modifySelection(r,{direction:$r("0x1"),unit:o[$r("0x1a")]});const s=r[$r("0x4")](),x=i.LiveRange[$r("0x1f")](s);let a;e(o),a=$r("0x18")==x.root.rootName?t.model.createRange(s[$r("0x15")]):t[$r("0x1b")][$r("0x24")](x[$r("0x15")],x[$r("0x10")]),x.detach(),t[$r("0x1b")][$r("0x14")](n[$r("0xe")][$r("0xc")],(t=>{n.buffer[$r("0x2")](),t.setSelection(t[$r("0x24")](a[$r("0x10")])),n[$r("0xe")][$r("0xf")]()}))})),t[$r("0x1e")].downcastDispatcher.on("addMarker:suggestion:deletion",hr(t,$r("0x9")),{priority:$r("0x16")}),t[$r("0x13")][$r("0x7")].on("addMarker:suggestion:deletion",((e,n,o)=>{o.options[$r("0x6")]&&hr(t,$r("0x9"),{showActiveMarker:!1})[$r("0x21")](this)(e,n,o)}),{priority:$r("0x16")}),t[$r("0x1e")][$r("0x7")].on($r("0x5"),((t,e,n)=>{const o=n.mapper[$r("0x12")](e[$r("0xa")]);if(o)for(const t of o)t.is($r("0x8"))&&(n[$r("0x0")][$r("0x1d")](t,e.markerName),n[$r("0x22")][$r("0x20")](t))}),{priority:$r("0x16")})}}const Jr=["enableCommand","push","indentList","change","registerDescriptionCallback","markMultiRangeBlockFormat","toUpperCase","listItemId","DocumentListUtils","markBlockFormat","plugins","mergeListItemForward","refresh","forceValue","get","*Format:* remove from %0","*Change to:* %0","execute","findIndex","registerCustomCallback","from","commandParams","multipleBlocks","listIndent","accept","selection","afterInit","numberedList","*Indent:* %0","splitListItemAfter","isFirstBlockOfListItem","listType","has","before","containsItem","formatBlock","splitListItemBefore","format","getFirstRange","setSelection","previousSibling","add","bulletedList","mergeListItemBackward","detach","slice","documentList","ELEMENT_LIST_ITEM","*Format:* insert into %0","getSelectedBlocks","getAttribute","_suggestionFactory","editor","isObject","document","model","value","commands","schema","outdentList","length","TrackChangesEditing","ELEMENT_","createPositionAt","commandName","next","end","*Outdent:* %0","start","hasAttribute","nextSibling","_descriptionFactory","nodeAfter","parent","ELEMENT_BULLETED_LIST","after","map","locale"];var Zr,Yr;Zr=Jr,Yr=306,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const ts=function(t,e){return Jr[t-=0]};class es extends t.Plugin{[ts("0x20")](){const t=this[ts("0x3a")];if(!t[ts("0x10")][ts("0x26")]("DocumentListEditing"))return;const e=t[ts("0x5")],n=t[ts("0x10")][ts("0x14")](ts("0x43")),o=t[ts("0x10")][ts("0x14")](ts("0xe"));function r(e){return()=>{const r=t[ts("0x3f")][ts("0x14")](e);let s=Array[ts("0x1a")](t[ts("0x3d")][ts("0x3c")][ts("0x1f")][ts("0x37")]());if(a(e)){s=o.expandListBlocksToCompleteList(s);const t=[];for(const e of s)o[ts("0x24")](e)&&t[ts("0x7")](e);s=t}t[ts("0x3d")].change((()=>{n[ts("0xb")](s,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:ts("0x25")},[],ts("0x34"))}))}}function s(e){return()=>{const o=function(t){let e=Array[ts("0x1a")](t);const n=e[ts("0x18")]((t=>!t[ts("0x4b")](ts("0xd"))));return n>-1&&(e=e[ts("0x33")](0,n)),e}(t.model.document[ts("0x1f")][ts("0x37")]()),r=o[o[ts("0x42")]-1],s=t[ts("0x3d")][ts("0x40")][ts("0x3b")](r)?ts("0x3"):ts("0x48"),i=t[ts("0x3d")].createRange(t[ts("0x3d")][ts("0x45")](o[0],ts("0x27")),t[ts("0x3d")][ts("0x45")](r,s));t[ts("0x3d")].change((()=>{n[ts("0xf")](i,{commandName:e,commandParams:[],formatGroupId:ts("0x25")},function(t){const e=new Set;for(const n of t){let t=n[ts("0x4c")];for(;t&&t[ts("0x38")](ts("0x1d"))>n.getAttribute(ts("0x1d"));)e[ts("0x2f")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ts("0x3d")][ts("0x3c")][ts("0x1f")][ts("0x37")]()[ts("0x47")]()[ts("0x3e")],r=t[ts("0x3d")].createPositionAt(o,ts("0x27")),s=t.model[ts("0x45")](o,0),i=t[ts("0x3d")].createRange(r,s);t[ts("0x3d")].change((()=>{n[ts("0xf")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[ts("0x3f")][ts("0x14")](ts("0x30")).value,o=t[ts("0x3f")].get("numberedList").value;return"numberedList"===e?n:o}n[ts("0x6")]("numberedList",r(ts("0x21"))),n[ts("0x6")](ts("0x30"),r(ts("0x30"))),n[ts("0x6")](ts("0x8"),s(ts("0x8"))),n.enableCommand(ts("0x41"),s("outdentList")),n[ts("0x6")](ts("0x23"),x(ts("0x23"))),n[ts("0x6")]("splitListItemBefore",x(ts("0x2a"))),n[ts("0x4d")].registerElementLabel((function(e){const n=!t[ts("0x3d")][ts("0x40")].isObject(e),o=e[ts("0x2e")],r=e.nextSibling,s=e[ts("0x38")]("listItemId"),i=!o||o.getAttribute(ts("0xd"))!==s,x=!r||r[ts("0x38")](ts("0xd"))!==s;return n&&Boolean(s)&&i&&x}),(t=>Yo(e,ts("0x35"),t))),n[ts("0x4d")][ts("0xa")]((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n.commandName){case ts("0x30"):s=n[ts("0x1b")][0][ts("0x13")],i=a(n[ts("0x46")]),o=s?ts("0x36"):"*Format:* remove from %0",i&&(o=ts("0x16")),r={type:ts("0x2b"),content:Yo(e,o,Yo(e,ts("0x2")))};break;case ts("0x21"):s=n[ts("0x1b")][0][ts("0x13")],i=a(n[ts("0x46")]),o=ts(s?"0x36":"0x15"),i&&(o=ts("0x16")),r={type:ts("0x2b"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case ts("0x8"):o=ts("0x22"),r={type:"format",content:Yo(e,o,Yo(e,ts("0x35")))};break;case ts("0x41"):o=function(t){const e=t[ts("0x2c")]();let n=e[ts("0x4a")][ts("0x0")];for(;n&&e[ts("0x28")](n);){if(n[ts("0x38")](ts("0x1d"))>0)return!1;n=n[ts("0x4c")]}return!0}(t)?Yo(e,ts("0x15"),Yo(e,function(t){const e=t[ts("0x2c")]()[ts("0x4a")][ts("0x0")];return ts("0x44")+e[ts("0x38")](ts("0x25"))[ts("0xc")]()+"_LIST"}(t))):Yo(e,ts("0x49"),Yo(e,"ELEMENT_LIST_ITEM")),r={type:ts("0x2b"),content:o};break;case ts("0x31"):case ts("0x11"):!1===n[ts("0x1c")]&&(o="*Merge:* %0",r={type:"deletion",content:Yo(e,o,Yo(e,ts("0x35")))})}return r})),n[ts("0x39")][ts("0x19")](ts("0x29"),ts("0x34"),ts("0x1e"),(function(e,n){const o=[];for(let n of e)n[ts("0x4a")].nodeAfter===n[ts("0x48")][ts("0x1")]&&(n=t[ts("0x3d")].createRange(t.model.createPositionAt(n[ts("0x4a")][ts("0x0")],0))),o[ts("0x7")](n);t[ts("0x3d")][ts("0x9")]((e=>{const r=t.model[ts("0x3c")][ts("0x1f")],s=Array[ts("0x1a")](r.getRanges())[ts("0x4")]((t=>i.LiveRange.fromRange(t)));e[ts("0x2d")](o),t[ts("0x3f")].get(n.commandName)[ts("0x12")](),n[ts("0x1b")].push({forceDefaultExecution:!0}),t[ts("0x17")](n.commandName,...n.commandParams),e.setSelection(s);for(const t of s)t[ts("0x32")]()}))}))}}var ns=n(331);const os=["get","selection","TrackChangesEditing","removeMarker:suggestion:insertion","afterExecute","createPositionAt","data","mapper","enableCommand","ck-suggestion-marker-split","high","hasClass","document","fire","init","plugins","writer","enter","markInsertion","detach","addMarker:suggestion:insertion","markerNameToElements","model","createRange","commands","getFirstRange","parent","showSuggestionHighlights","change","fromRange","unbindElementFromMarkerName","markerName","split","downcastDispatcher"];var rs,ss;rs=os,ss=392,function(t){for(;--t;)rs.push(rs.shift())}(++ss);const is=function(t,e){return os[t-=0]};class xs extends t.Plugin{static get requires(){return[ns.Enter]}[is("0x1e")](){const t=this.editor,e=t[is("0x1f")][is("0x10")](is("0x12")),n=t[is("0x6")].get(is("0x21"));e[is("0x18")](is("0x21"),(()=>{t[is("0x4")][is("0xa")]((o=>{const r=t[is("0x4")][is("0x1c")][is("0x11")],s=r.getFirstPosition(),x=i.LiveRange[is("0xb")](r[is("0x7")]());if(n.enterBlock(o)){const n=t[is("0x4")][is("0x15")](s[is("0x8")].nextSibling,0),r=o[is("0x5")](s,n);e[is("0x0")](r)}else o.setSelection(o[is("0x5")](x.end));x[is("0x1")](),n[is("0x1d")](is("0x14"),{writer:o})}))})),t.editing.downcastDispatcher.on(is("0x2"),hr(t,is("0xe")),{priority:is("0x1a")}),t.editing[is("0xf")].on(is("0x13"),((t,e,n)=>{const o=n.mapper[is("0x3")](e[is("0xd")]);if(o)for(const t of o)t[is("0x1b")](is("0x19"))&&(n[is("0x17")][is("0xc")](t,e[is("0xd")]),n[is("0x20")].remove(t))}),{priority:"high"}),t[is("0x16")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[is("0x9")]&&hr(t,is("0xe"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:is("0x1a")})}}const as=["getMarkersGroup","filter","createRange","getRange","createPositionAt","findNext","bind","enableCommand","findPrevious","item","afterInit","string","FindAndReplaceEditing","plugins","get","replaceAll","suggestion:deletion","has","markers","FindAndReplaceUtils","editor","replace","find","handleFindCommand","getIntersection","model","start","end","_isInDeletionRange","TrackChangesEditing"];var cs,ls;cs=as,ls=489,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const ds=function(t,e){return as[t-=0]};class us extends t.Plugin{[ds("0x1")](){if(!this.editor[ds("0x4")][ds("0x8")](ds("0x3")))return;const t=this[ds("0xb")].plugins[ds("0x5")](ds("0x14"));t[ds("0x1c")](ds("0xd"),this[ds("0xe")][ds("0x1b")](this)),t[ds("0x1c")](ds("0x1a")),t[ds("0x1c")](ds("0x1d")),t[ds("0x1c")](ds("0xc")),t[ds("0x1c")](ds("0x6"))}[ds("0xe")](t,e,n={}){const o=this[ds("0xb")][ds("0x4")].get(ds("0xa"));void 0!==n&&t((t=>(ds("0x2")==typeof e?o.findByTextCallback(e,n):e)(t)[ds("0x16")]((e=>!1===this[ds("0x13")](e,t[ds("0x0")])))),n)}[ds("0x13")](t,e){const n=this[ds("0xb")].model[ds("0x17")](this[ds("0xb")].model[ds("0x19")](e,t[ds("0x11")]),this[ds("0xb")][ds("0x10")][ds("0x19")](e,t[ds("0x12")]));for(const t of this[ds("0xb")][ds("0x10")][ds("0x9")][ds("0x15")](ds("0x7")))if(null!==n[ds("0xf")](t[ds("0x18")]()))return!0;return!1}}const gs=["*Reset font color*","fontBackgroundColor.colors","has","editor","value","label","*Set font background color:* %0","*Reset font background color*","FontFamilyEditing","trim","*Set font color:* %0","document","config","fontSize.options","fontColor","fontColor.colors","commandParams","find","plugins","fontSize","get","*Reset font family*","normalizeSizeOptions","FontSizeEditing","fontFamily","model","TrackChangesEditing","locale","_enableCommand","fontBackgroundColor","registerDescriptionCallback","format","toLowerCase","afterInit","*Set font size:* %0","_descriptionFactory","FontColorEditing","from","commandName","FontSize","change"];var ms,fs;ms=gs,fs=255,function(t){for(;--t;)ms.push(ms.shift())}(++fs);const hs=function(t,e){return gs[t-=0]},ps=[{pluginName:hs("0xe"),commandName:hs("0xa")},{pluginName:hs("0x28"),commandName:hs("0xf")},{pluginName:hs("0x1b"),commandName:hs("0x5")},{pluginName:"FontBackgroundColorEditing",commandName:hs("0x14")}];class bs extends t.Plugin{[hs("0x18")](){const t=this[hs("0x23")][hs("0x12")];for(const{pluginName:t,commandName:e}of ps)this.editor[hs("0x9")][hs("0x22")](t)&&this[hs("0x13")](e);this[hs("0x23")].plugins[hs("0xb")](hs("0x11"))[hs("0x1a")][hs("0x15")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hs("0xa")==o[hs("0x1d")]){const e=o[hs("0x7")][0][hs("0x24")];if(e){const o=n(this[hs("0x23")][hs("0x9")][hs("0xb")](hs("0x1e"))[hs("0xd")](this[hs("0x23")][hs("0x3")][hs("0xb")](hs("0x4")))[hs("0x8")]((t=>t[hs("0x10")]==e)).title)[hs("0x17")]();return{type:hs("0x16"),content:Yo(t,hs("0x19"),o)}}return{type:hs("0x16"),content:Yo(t,"*Reset font size*")}}if(hs("0xf")==o[hs("0x1d")]){const e=o.commandParams[0][hs("0x24")];return e?{type:"format",content:Yo(t,"*Set font family:* %0",e)}:{type:hs("0x16"),content:Yo(t,hs("0xc"))}}if("fontColor"==o.commandName){const e=o[hs("0x7")][0][hs("0x24")];if(e){const o=(0,r.normalizeColorOptions)(this[hs("0x23")].config.get(hs("0x6")))[hs("0x8")]((t=>t[hs("0x10")]==e));let s=e,i="";return o&&(s=o.label,i=n(s)[hs("0x17")]()),{type:hs("0x16"),content:Yo(t,hs("0x1"),i)[hs("0x0")](),color:{value:e,title:i||s}}}return{type:hs("0x16"),content:Yo(t,hs("0x20"))}}if(hs("0x14")==o[hs("0x1d")]){const e=o[hs("0x7")][0].value;if(e){const o=(0,r.normalizeColorOptions)(this.editor[hs("0x3")][hs("0xb")](hs("0x21")))[hs("0x8")]((t=>t.model==e));let s=e,i="";return o&&(s=o[hs("0x25")],i=n(s)[hs("0x17")]()),{type:"format",content:Yo(t,hs("0x26"),i)[hs("0x0")](),color:{value:e,title:i||s}}}return{type:hs("0x16"),content:Yo(t,hs("0x27"))}}}}))}_enableCommand(t){const e=this.editor;e.plugins[hs("0xb")](hs("0x11")).enableCommand(t,((n,o={})=>{const r=e[hs("0x10")][hs("0x2")].selection,s=o[hs("0x24")];r.isCollapsed?n(o):e[hs("0x10")][hs("0x1f")]((()=>{const n=Array[hs("0x1c")](r.getRanges());for(const o of n){const n=s?[o]:mr(t,o,e[hs("0x10")]);for(const o of n)e.plugins[hs("0xb")]("TrackChangesEditing").markInlineFormat(o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Es=["copyFormat","isBlock","isCollapsed","entries","forward","getLastPosition","get","normalizeSizeOptions","fontBackgroundColor","modifySelection","split","toUpperCase","isFormatting","keys","TrackChangesEditing","pasteFormat","getAttributeProperties","word","FontSize","document","getRanges","enableCommand","fontSize","fontSize.options","editor","commands","join","getSelectedBlocks","backward","config","getFirstPosition","getItems","*Remove all formatting*","label","schema","*Set format to:* %0","getAttributes","createRange","selection","format","from","slice","model","commandParams","length","toLowerCase","locale","charAt","markInlineFormat","createSelection","afterInit"];var _s,Ts;_s=Es,Ts=374,function(t){for(;--t;)_s.push(_s.shift())}(++Ts);const Cs=function(t,e){return Es[t-=0]};class ys extends t.Plugin{[Cs("0x21")](){const t=this[Cs("0x7")],n=t[Cs("0x19")],o=n[Cs("0x2")][Cs("0x15")],r=t.plugins[Cs("0x28")](Cs("0x30")),s=t[Cs("0x1d")],i=t[Cs("0x8")][Cs("0x28")](Cs("0x22")),x=t.commands[Cs("0x28")](Cs("0x31"));i&&x&&(r.enableCommand(Cs("0x31"),((t,s={})=>{const i=s;n.change((()=>{const t=Array[Cs("0x17")](o[Cs("0x3")]()),s=o[Cs("0x24")]?[ks(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cs("0x13")]()){const t=e[Cs("0x32")](n);t&&t[Cs("0x2e")]&&(yield n)}}(t,n));for(const e of t[Cs("0x3")]())for(const t of e[Cs("0xe")]())!n[Cs("0x23")](t)&&o(t)&&(yield t);for(const e of t[Cs("0xa")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cs("0x11")]))||0!==Object[Cs("0x2f")](i)[Cs("0x1b")])for(const t of s)r[Cs("0x1f")](t,{commandName:Cs("0x31"),commandParams:[i]})}))})),r._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cs("0x1a")][0];for(const[n,r]of Object[Cs("0x25")](o))e.push(As(t,n,r));return e[Cs("0x1b")]?{type:Cs("0x16"),content:Yo(s,Cs("0x12"),e[Cs("0x9")](", "))}:{type:Cs("0x16"),content:Yo(s,Cs("0xf"))}}})),t.plugins[Cs("0x28")](Cs("0x30"))[Cs("0x4")]("copyFormat"))}}function ks(t,e){const n=t[Cs("0x20")](e);t.modifySelection(n,{unit:"word",direction:Cs("0xb")});const o=n[Cs("0xd")]();t[Cs("0x2b")](n,{unit:Cs("0x0"),direction:Cs("0x26")});const r=n[Cs("0x27")]();return t[Cs("0x14")](o,r)}function As(t,e,n){const o=t[Cs("0x1d")].t,s=e[Cs("0x2c")](/(?=[A-Z])/)[Cs("0x9")](" "),i=o(s[Cs("0x1e")](0)[Cs("0x2d")]()+s[Cs("0x18")](1))[Cs("0x1c")]();if("boolean"==typeof n)return i;if("fontColor"===e||Cs("0x2a")===e){const e=(0,r.normalizeColorOptions)(t[Cs("0xc")][Cs("0x28")]("fontColor.colors")).find((t=>t[Cs("0x19")]==n));return i+" ("+(e?o(e[Cs("0x10")])[Cs("0x1c")]():n)+")"}if(Cs("0x5")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cs("0x28")](Cs("0x1"))[Cs("0x29")](t[Cs("0xc")].get(Cs("0x6"))).find((t=>t[Cs("0x19")]==n));return i+" ("+(e?o(e.title)[Cs("0x1c")]():n)+")"}return i+" ("+n+")"}const vs=["title","name","paragraph","from","heading","enableCommand","plugins","getSelectedBlocks","get","parent","_descriptionFactory","commandParams","heading.options","model","schema","match","checkChild","ELEMENT_HEADING","*Change to:* %0","change","commandName","afterInit","editor","format","markBlockFormat","formatBlock","blockName","TrackChangesEditing"];var Rs,Is;Rs=vs,Is=340,function(t){for(;--t;)Rs.push(Rs.shift())}(++Is);const Ss=function(t,e){return vs[t-=0]};class Ls extends t.Plugin{[Ss("0x11")](){const t=this.editor,e=t.locale,n=t.config[Ss("0x4")](Ss("0x8"));if(!t[Ss("0x2")].has("HeadingEditing"))return;const o=t[Ss("0x2")][Ss("0x4")](Ss("0x17"));o[Ss("0x1")](Ss("0x0"),((e,n)=>{const r=n.value,s=Array[Ss("0x1b")](this.editor[Ss("0x9")].document.selection[Ss("0x3")]()).filter((t=>{return e=t,n=r,(o=this[Ss("0x12")][Ss("0x9")][Ss("0xa")])[Ss("0xc")](e[Ss("0x5")],n)&&!o.isObject(e)&&e[Ss("0x19")]!=n;var e,n,o}));t[Ss("0x9")][Ss("0xf")]((()=>{for(const t of s)o[Ss("0x14")](t,{commandName:"heading",commandParams:[n],formatGroupId:Ss("0x16")},fr(t))}))}));for(const t of n)Ss("0x1a")!=t.model&&o[Ss("0x6")].registerElementLabel(t[Ss("0x9")],(e=>{const n=Ns(t[Ss("0x9")]);return null!==n?r(e,n):s(e,t.title)}));function r(t,n){return Yo(e,Ss("0xd"),[t,n])}function s(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o._descriptionFactory.registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Ss("0x15")==o&&i&&"heading"==i[Ss("0x10")]){const t=i[Ss("0x7")][0].value,o=Ns(t);if(null!==o)return{type:Ss("0x13"),content:Yo(e,Ss("0xe"),r(1,o))};const x=n.find((e=>e[Ss("0x9")]===t))[Ss("0x18")];return{type:Ss("0x13"),content:Yo(e,Ss("0xe"),s(1,x))}}}))}}function Ns(t){const e=t[Ss("0xb")](/^heading(\d+)$/);return e?e[1]:null}const ws=["HighlightEditing","getRanges","document","model","enableCommand","commandName","plugins","config","FORMAT_HIGHLIGHT","find","format","value","has","getFirstPosition","push","backward","commandParams","isCollapsed","getAttribute","get","TrackChangesEditing","color","*Set highlight:* %0","highlight.options","_descriptionFactory","*Remove highlight*","afterInit","editor","highlight","title","change","markInlineFormat"];var Ms,Os;Ms=ws,Os=337,function(t){for(;--t;)Ms.push(Ms.shift())}(++Os);const Fs=function(t,e){return ws[t-=0]};class Ps extends t.Plugin{[Fs("0x9")](){const t=this[Fs("0xa")];if(!t[Fs("0x15")][Fs("0x1b")](Fs("0xf")))return;const e=t[Fs("0x15")][Fs("0x2")](Fs("0x3"));e[Fs("0x13")]("highlight",((n,o={})=>{const r=t[Fs("0x12")][Fs("0x11")].selection,s=r[Fs("0x1")](Fs("0xb"));let i=o[Fs("0x1a")],x=[];if(r[Fs("0x0")]){const e=r[Fs("0x1c")]();if(!r.hasAttribute(Fs("0xb")))return void n(o);{const n=t=>t.item[Fs("0x1")]("highlight")===s,o=e.getLastMatchingPosition(n,{direction:Fs("0x1e")}),r=e.getLastMatchingPosition(n);x=[t[Fs("0x12")].createRange(o,r)],i==s&&(i=null)}}else for(const e of r[Fs("0x10")]())i?x[Fs("0x1d")](e):x.push(...mr(Fs("0xb"),e,t[Fs("0x12")]));t.model[Fs("0xd")]((()=>{for(const t of x)e[Fs("0xe")](t,{commandName:Fs("0xb"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Fs("0x7")].registerDescriptionCallback((e=>{const{type:o,data:r}=e;if("formatInline"==o&&r&&Fs("0xb")==r[Fs("0x14")]){const e=n.t,o=r[Fs("0x1f")][0][Fs("0x1a")];if(o){const r=t[Fs("0x16")][Fs("0x2")](Fs("0x6"))[Fs("0x18")]((t=>t[Fs("0x12")]==o)),s=e(r[Fs("0xc")]).toLowerCase();return{type:"format",content:Yo(n,Fs("0x5"),s),color:{value:r[Fs("0x4")],title:r.title}}}return{type:Fs("0x19"),content:Yo(n,Fs("0x8"),Yo(n,Fs("0x17")))}}}))}}const Ds=["get","conversion","createEmptyElement","editor","_descriptionFactory","for","ELEMENT_HORIZONTAL_LINE","div","plugins","horizontalLine","createPositionAt","addClass","showSuggestionHighlights","afterInit","enableCommand","TrackChangesEditing","has","locale"];var Bs,js;Bs=Ds,js=372,function(t){for(;--t;)Bs.push(Bs.shift())}(++js);const Us=function(t,e){return Ds[t-=0]};class Gs extends t.Plugin{[Us("0x1")](){const t=this[Us("0x9")];if(!t[Us("0xe")][Us("0x4")]("HorizontalLineEditing"))return;t[Us("0xe")][Us("0x6")](Us("0x3"))[Us("0x2")](Us("0xf"));const e=t.plugins[Us("0x6")](Us("0x3")),n=t[Us("0x5")];e[Us("0xa")].registerElementLabel(Us("0xf"),(t=>Yo(n,Us("0xc"),t))),t[Us("0x7")][Us("0xb")]("dataDowncast").elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Us("0x0")])return null;const o=e.createContainerElement(Us("0xd")),r=e[Us("0x8")]("hr");return e[Us("0x11")]("ck-horizontal-line",o),e.insert(e[Us("0x10")](o,0),r),o},converterPriority:"high"})}}const Hs=["plugins","element","getCustomProperty","selection","getAttribute","has","markBlockFormat","format","editor","document","htmlEmbed","registerElementLabel","cancel","model","get","ELEMENT_HTML_EMBED","editing","getSelectedElement","rawHtmlApi","value","*Change %0 content*","TrackChangesEditing","rawHtml","enableCommand","_descriptionFactory"];var zs,Ws;zs=Hs,Ws=431,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Vs=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{afterInit(){const t=this[Vs("0x2")];if(!t[Vs("0x13")][Vs("0x18")]("HtmlEmbed"))return;const e=t[Vs("0x13")].get("TrackChangesEditing"),n=t.locale,o=t[Vs("0xa")].view.document[Vs("0x16")];e[Vs("0x12")][Vs("0x5")]("rawHtml",(t=>Yo(n,Vs("0x9"),t))),t[Vs("0x13")][Vs("0x8")](Vs("0xf"))[Vs("0x11")](Vs("0x4"),((n,r)=>{const s=t[Vs("0x7")],i=s[Vs("0x3")][Vs("0x16")];s.change((()=>{const t=function(t){const e=t[Vs("0xb")]();return e&&e.is(Vs("0x14"),Vs("0x10"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const s=t[Vs("0x17")](Vs("0xd"))||"";void 0!==r&&r!==s&&(e[Vs("0x0")](t,{commandName:"htmlEmbed",commandParams:[r]}),o[Vs("0xb")]()[Vs("0x15")](Vs("0xc"))[Vs("0x6")]())}))})),e[Vs("0x12")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vs("0x4")==e.commandName){const t=Yo(n,Vs("0x9"));return{type:Vs("0x1"),content:Yo(n,Vs("0xe"),t)}}}))}}const qs=["Inline image to block image","start","end","differ","has","registerPostFixer","_splitMarkerName","caption","enableCommand","deletion","locale","ELEMENT_INLINE_IMAGE","format","FORMAT_SIDE_IMAGE","toNext","isBefore","suggestion","commandName","hasAttribute","ImageTextAlternativeEditing","backward","getClosestSelectedImageElement","convertInlineImageToBlock","imageStylePreApply","isCollapsed","markInsertion","getSuggestions","commandReversedParams","*Remove image text alternative*","toLowerCase","createRangeOn","forward","name","value","imageTypeBlock","imageInline","toPrevious","schema","getSuggestion","isEqual","ImageEditing","ImageInlineEditing","addObject","type","formatBlock","markBlockFormat","side","removeObject","*Reset image width*","ImageBlockEditing","detach","ImageStyleEditing","document","from","isOwn","accept","commandParams","chain","refresh","formatInline","length","discardSuggestion","normalizedStyles","imageStyle","title","afterInit","getCaptionFromImageModelElement","element","filter","previous","convertBlockImageToInline","*Set image width:* %0","ImageUploadEditing","newValue","imageTextAlternative","head","*Format:* %0","_descriptionFactory","getAttribute","join","isBlockImage","registerCustomCallback","discard","commands","get","newRange","selection","plugins","toggleImageCaption","imageTypeInline","getContainedElement","registerDescriptionCallback","subType","alt","nodeAfter","author","getNearestSelectionRange","model","registerElementLabel","resizeImage","isInContent","insertion","change","next","width","*Set image text alternative:* %0","_suggestionFactory","shouldConvertImageType","editor","imageStylePostApply","createRange","getFirstRange","isInlineImage","imageCaption","forEach","getSuggestionCallback"];var Xs,$s;Xs=qs,$s=422,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Qs=function(t,e){return qs[t-=0]};class Js extends t.Plugin{[Qs("0x6b")](){const t=this[Qs("0x22")];if(!t[Qs("0xd")][Qs("0x2e")](Qs("0x52")))return;const n=t[Qs("0xd")][Qs("0xa")]("TrackChangesEditing"),o=t[Qs("0xd")][Qs("0xa")]("ImageUtils"),r={},s=t[Qs("0x34")];if(n[Qs("0x32")]("insertImage"),n[Qs("0x3")][Qs("0x18")]("imageBlock",(t=>Yo(s,"ELEMENT_IMAGE",t))),n._descriptionFactory.registerElementLabel(Qs("0x4d"),(t=>Yo(s,Qs("0x35"),t))),n[Qs("0x3")][Qs("0x18")](Qs("0x31"),(()=>Yo(s,"ELEMENT_CAPTION"))),t[Qs("0xd")][Qs("0x2e")](Qs("0x72"))&&n[Qs("0x32")]("uploadImage"),t[Qs("0xd")].has(Qs("0x5b"))&&t[Qs("0xd")][Qs("0x2e")](Qs("0x53"))&&(n[Qs("0x32")](Qs("0xf"),((e,r)=>{const s=o.getClosestSelectedImageElement(t.model.document[Qs("0xc")]);t[Qs("0x17")][Qs("0x1c")]((()=>{n.markBlockFormat(s,{commandName:Qs("0xf"),commandParams:[r]},[],Qs("0x70"))}))})),n[Qs("0x32")](Qs("0x4c"),((e,r)=>{t.model[Qs("0x1c")]((s=>{let x=o[Qs("0x3f")](t[Qs("0x17")].document.selection),a=s.createRangeOn(x);const c=i.LivePosition.fromPosition(a.start,Qs("0x4e")),l=i.LivePosition.fromPosition(a[Qs("0x2c")],Qs("0x38"));n.forceDefaultExecution((()=>e(r))),x=o[Qs("0x3f")](t.model[Qs("0x5e")][Qs("0xc")]),a=s[Qs("0x48")](x);const d=s[Qs("0x24")](c,l);c[Qs("0x5c")](),l[Qs("0x5c")](),n.markBlockFormat(x,{commandName:"imageTypeInline",commandParams:[]},[],Qs("0x40")),d[Qs("0x2b")].isBefore(a[Qs("0x2b")])&&n[Qs("0x43")](s[Qs("0x24")](d[Qs("0x2b")],a[Qs("0x2b")]),Qs("0x40")),a[Qs("0x2c")].isBefore(d[Qs("0x2c")])&&n[Qs("0x43")](s.createRange(a[Qs("0x2c")],d[Qs("0x2c")]),"convertInlineImageToBlock")}))})),n[Qs("0x20")][Qs("0x7")]("formatBlock",Qs("0x40"),Qs("0x5"),(()=>{})),n[Qs("0x20")][Qs("0x7")](Qs("0x56"),"convertInlineImageToBlock","accept",(()=>{})),n._suggestionFactory[Qs("0x7")](Qs("0x56"),Qs("0x40"),Qs("0x8"),n[Qs("0x20")].getSuggestionCallback(Qs("0x56"),"",Qs("0x61"))),n[Qs("0x20")].registerCustomCallback("insertion",Qs("0x40"),Qs("0x5"),(()=>{})),n[Qs("0x20")].registerCustomCallback("insertion","convertInlineImageToBlock",Qs("0x8"),(([e])=>{const o=n[Qs("0x20")][Qs("0x29")]("insertion","",Qs("0x8"));let r=e[Qs("0x2b")],s=e[Qs("0x2c")];const i=t[Qs("0x17")][Qs("0x4f")][Qs("0x16")](r,Qs("0x3e")),x=t.model[Qs("0x4f")][Qs("0x16")](s,Qs("0x49"));i[Qs("0x42")]&&(r=i[Qs("0x2b")]),x[Qs("0x42")]&&(s=x.end),o([t[Qs("0x17")].createRange(r,s)])})),n._suggestionFactory[Qs("0x7")](Qs("0x56"),Qs("0x40"),Qs("0x63"),c),n[Qs("0x20")][Qs("0x7")]("insertion","convertInlineImageToBlock",Qs("0x63"),c)),t[Qs("0xd")][Qs("0x2e")]("ImageCaptionEditing")&&(n[Qs("0x32")](Qs("0xe"),((e,r)=>{const s=t[Qs("0xd")].get("ImageCaptionUtils");let i=o[Qs("0x3f")](t.model[Qs("0x5e")][Qs("0xc")]),x=s[Qs("0x6c")](i);t[Qs("0x17")][Qs("0x1c")]((()=>{if(x)return void n.markDeletion(t[Qs("0x17")].createRangeOn(x));const a=o[Qs("0x6")](i);e(r),i=o[Qs("0x3f")](t[Qs("0x17")][Qs("0x5e")][Qs("0xc")]),x=s[Qs("0x6c")](i),n[Qs("0x43")](t[Qs("0x17")][Qs("0x48")](x),a?null:"imageCaption")}))})),n._suggestionFactory[Qs("0x7")](Qs("0x1b"),Qs("0x27"),Qs("0x63"),c)),t[Qs("0xd")][Qs("0x2e")]("ImageStyleEditing")){n.enableCommand(Qs("0x69"),((r,s)=>{const i=t.plugins.get("Users").me,x=t[Qs("0x9")][Qs("0xa")](Qs("0x69"));let a=o[Qs("0x3f")](t[Qs("0x17")].document[Qs("0xc")]),c=t[Qs("0x17")][Qs("0x48")](a),l=x.value;if(l==s[Qs("0x4b")])return;const d={commandName:Qs("0x69"),commandParams:[s],formatGroupId:(0,e.uid)()};t[Qs("0x17")].change((()=>{if(n[Qs("0x44")]()[Qs("0x6e")]((t=>t[Qs("0x1a")]&&i==t[Qs("0x15")]&&(Qs("0x56")==t[Qs("0x55")]||Qs("0x65")==t[Qs("0x55")])&&(Qs("0x41")==t[Qs("0x12")]||Qs("0x23")==t.subType)&&t[Qs("0x25")]().isEqual(c)))[Qs("0x28")]((t=>n[Qs("0x67")](t[Qs("0x1")]))),a=o[Qs("0x3f")](t[Qs("0x17")][Qs("0x5e")].selection),c=t.model[Qs("0x48")](a),x[Qs("0x64")](),t[Qs("0x9")][Qs("0xa")]("imageTypeInline")[Qs("0x64")](),t[Qs("0x9")][Qs("0xa")]("imageTypeBlock")[Qs("0x64")](),l=x[Qs("0x4b")],l!=s[Qs("0x4b")])return o[Qs("0x26")](a)&&x[Qs("0x21")](s[Qs("0x4b")],a)?(r(s),a=o[Qs("0x3f")](t.model[Qs("0x5e")][Qs("0xc")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Qs("0x41"))):void(o[Qs("0x6")](a)?n[Qs("0x57")](a,d,[],Qs("0x23")):n.markInlineFormat(c,d,"imageStylePostApply"))}))}));for(const e of t[Qs("0xd")][Qs("0xa")](Qs("0x5d"))[Qs("0x68")])r[e[Qs("0x4a")]]=e[Qs("0x6a")][Qs("0x47")]();n._suggestionFactory[Qs("0x7")](Qs("0x56"),Qs("0x41"),"join",(()=>{})),n[Qs("0x20")][Qs("0x7")](Qs("0x56"),Qs("0x23"),Qs("0x5"),(()=>{})),n[Qs("0x20")][Qs("0x7")]("formatInline",Qs("0x23"),Qs("0x5"),(()=>{})),n[Qs("0x20")].registerCustomCallback(Qs("0x56"),"imageStylePreApply",Qs("0x61"),(()=>{})),n[Qs("0x20")].registerCustomCallback(Qs("0x56"),Qs("0x41"),Qs("0x8"),((t,e)=>{n._suggestionFactory[Qs("0x29")](Qs("0x56"),"",Qs("0x61"))(t,{commandName:e[Qs("0x3b")],commandParams:e[Qs("0x45")]})})),n[Qs("0x20")].registerCustomCallback(Qs("0x56"),Qs("0x41"),Qs("0x63"),c)}const x=[{type:Qs("0x56"),subType:Qs("0x41")},{type:"insertion",subType:Qs("0x27")},{type:Qs("0x56"),subType:Qs("0x40")},{type:Qs("0x1b"),subType:"convertInlineImageToBlock"}];function a(t,e){const r=x.findIndex((({type:e,subType:n})=>t[Qs("0x55")]==e&&t[Qs("0x12")]==n)),s=x.findIndex((({type:t,subType:n})=>e[Qs("0x55")]==t&&e[Qs("0x12")]==n));if(r<0||s<0)return!1;const i=t[Qs("0x25")](),a=e.getFirstRange();if((0==r||1==r)&&2==s&&i.isIntersecting(a))return!0;if(2==r&&3==s){const t=n._findSuggestions(i,Qs("0x1b")).filter((({suggestion:t,meta:e})=>e[Qs("0x60")]&&Qs("0x40")==t[Qs("0x12")]));if(t[Qs("0x66")]>1&&a.end[Qs("0x51")](i[Qs("0x2b")]))return!0;if(1==t[Qs("0x66")]&&(i.start[Qs("0x51")](a[Qs("0x2c")])||i[Qs("0x2c")][Qs("0x51")](a[Qs("0x2b")])))return!0}if(3==r&&3==s&&i[Qs("0x2b")][Qs("0x39")](a[Qs("0x2b")])){const t=i[Qs("0x2c")][Qs("0x14")],e=a[Qs("0x2b")].nodeBefore;return o[Qs("0x6")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Qs("0x17")].document[Qs("0x2f")]((()=>{let e=!1;const r=Array[Qs("0x5f")](t.model[Qs("0x5e")][Qs("0x2d")].getChangedMarkers());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Qs("0x30")](t);if(Qs("0x3a")==r&&n.hasSuggestion(a)){if(Qs("0x56")==i&&(Qs("0x41")==x||Qs("0x23")==x)){const t=n[Qs("0x50")](a);if(s[Qs("0xb")]){const r=t.getFirstRange()[Qs("0x10")]();if(o[Qs("0x6")](r))continue;n.discardSuggestion(t),e=!0}}if("insertion"==i&&"imageCaption"==x&&!s.newRange){const t=n[Qs("0x50")](a);t[Qs("0x1d")]&&t[Qs("0x1d")].isInContent&&(n.discardSuggestion(t[Qs("0x1d")]),e=!0)}}}return e})),t[Qs("0xd")][Qs("0x2e")]("ImageResize")&&n[Qs("0x32")]("resizeImage",((e,r)=>{const s=o[Qs("0x3f")](t[Qs("0x17")][Qs("0x5e")][Qs("0xc")]);s.getAttribute(Qs("0x1e"))!=r[Qs("0x1e")]&&t[Qs("0x17")][Qs("0x1c")]((()=>{n[Qs("0x57")](s,{commandName:Qs("0x19"),commandParams:[r]})}))})),t[Qs("0xd")].has(Qs("0x3d"))&&n[Qs("0x32")](Qs("0x0"),((e,r)=>{const s=o.getClosestSelectedImageElement(t[Qs("0x17")].document[Qs("0xc")]);(s[Qs("0x3c")](Qs("0x13"))?s[Qs("0x4")](Qs("0x13")):"")!=r[Qs("0x73")]&&t[Qs("0x17")][Qs("0x1c")]((()=>{n[Qs("0x57")](s,{commandName:Qs("0x0"),commandParams:[r]})}))})),n[Qs("0x3")][Qs("0x11")]((t=>{if(x.find((({type:e,subType:n})=>t[Qs("0x55")]==e&&t[Qs("0x12")]==n)))return t[Qs("0x6f")]?{}:void 0})),n._descriptionFactory[Qs("0x11")]((t=>{if(Qs("0x1b")==t[Qs("0x55")]||Qs("0x33")==t[Qs("0x55")]){const e=t[Qs("0x10")]();if(e&&e.is(Qs("0x6d"),"caption"))return{type:Qs("0x1b")==t[Qs("0x55")]?Qs("0x54"):Qs("0x59"),element:e,quantity:1}}})),n[Qs("0x3")][Qs("0x11")]((t=>Qs("0x56")==t[Qs("0x55")]&&Qs("0x40")==t[Qs("0x12")]?{type:Qs("0x36"),content:Qs("0x2a")}:Qs("0x56")==t[Qs("0x55")]&&Qs("0x70")==t[Qs("0x12")]?{type:Qs("0x36"),content:"Block image to inline image"}:void 0)),n[Qs("0x3")][Qs("0x11")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e[Qs("0x62")][0][Qs("0x4b")];return n=Qs("0x58")===t?Yo(s,Qs("0x37")):r[t]||t,{type:"format",content:Yo(s,Qs("0x2"),n)}}if("imageTextAlternative"==e[Qs("0x3b")]){const t=e.commandParams[0][Qs("0x73")];return t?{type:Qs("0x36"),content:Yo(s,Qs("0x1f"),'"'+t+'"')}:{type:Qs("0x36"),content:Yo(s,Qs("0x46"))}}if(Qs("0x19")==e[Qs("0x3b")]){const t=e[Qs("0x62")][0][Qs("0x1e")];return t?{type:Qs("0x36"),content:Yo(s,Qs("0x71"),t)}:{type:Qs("0x36"),content:Yo(s,Qs("0x5a"))}}}var n}))}}const Zs=["author","plugins","document","getSelectedElement","change","getContainedElement","get","registerCustomCallback","getSuggestions","model","src","replaceImageSource","markBlockFormat","discard","getAttribute","commandName","enableCommand","*Format:* replace image URL","TrackChangesEditing","_suggestionFactory","format","formatBlock","Users","selection","editor","handleReplaceImageCommand","getSuggestionCallback","handleSuggestionDescription","data","afterInit","source","_descriptionFactory"];var Ys,ti;Ys=Zs,ti=199,function(t){for(;--t;)Ys.push(Ys.shift())}(++ti);const ei=function(t,e){return Zs[t-=0]};class ni extends t.Plugin{[ei("0x16")](){if(!this.editor[ei("0x1a")].has("ImageEditing"))return;const t=this[ei("0x11")].plugins[ei("0x1f")]("TrackChangesEditing");t[ei("0x9")]("replaceImageSource",((t,e)=>this[ei("0x12")](t,e))),t[ei("0xc")][ei("0x0")](ei("0xe"),"replaceImageSource","accept",t[ei("0xc")][ei("0x13")](ei("0xe"),null,ei("0x6"))),t[ei("0xc")][ei("0x0")]("formatBlock","replaceImageSource","discard",t[ei("0xc")][ei("0x13")](ei("0xe"),null,"accept")),t[ei("0x18")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[ei("0x12")](t,e){const n=this[ei("0x11")][ei("0x1a")][ei("0x1f")](ei("0xb")),o=this[ei("0x11")][ei("0x2")][ei("0x1b")][ei("0x10")][ei("0x1c")]();this[ei("0x11")].model[ei("0x1d")]((()=>{let r=o[ei("0x7")](ei("0x3"));const s=this[ei("0x11")][ei("0x1a")][ei("0x1f")](ei("0xf")).me;for(const t of n[ei("0x1")]({skipNotAttached:!0})){const e=t[ei("0x1e")]();if("replaceImageSource"===t.subType&&e===o){t[ei("0x19")]!==s&&t[ei("0x6")](),r=t[ei("0x15")].commandParams[0][ei("0x17")];break}}t(e),n[ei("0x5")](o,{commandName:ei("0x4"),commandParams:[{source:r}]},[],ei("0x4"))}))}[ei("0x14")](t){const{data:e}=t;if(e&&ei("0x4")===e[ei("0x8")]){const t=ei("0xa");return{type:ei("0xd"),content:Yo(this.editor.locale,t)}}}}const oi=["_trackChangesValueDuringImport","execute","enableCommand","plugins","dataInsert","Users","value","track_changes","editor","_trackChangesExecuted","TrackChangesEditing","listenTo","trackChanges","afterInit","collaboration_features","commands","importWord","lowest","high","get"];var ri,si;ri=oi,si=175,function(t){for(;--t;)ri.push(ri.shift())}(++si);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x5")]=!1,this._trackChangesExecuted=!1}[ii("0x12")](){const t=this[ii("0xd")],e=t[ii("0x0")][ii("0x4")](ii("0x1")),n=t[ii("0x0")][ii("0x4")](ii("0x11"));e&&(e.on(ii("0x6"),((t,[,e])=>{this[ii("0x5")]=n[ii("0xb")],e[ii("0x13")][ii("0xc")]=!this[ii("0x5")]}),{priority:ii("0x3")}),this[ii("0x10")](e,ii("0x9"),this._handleImportedData.bind(this)),this[ii("0x10")](e,ii("0x9"),(()=>{this[ii("0xe")]&&(n[ii("0x6")](),this[ii("0xe")]=!1)}),{priority:ii("0x2")}),t[ii("0x8")][ii("0x4")](ii("0xf"))[ii("0x7")](ii("0x1")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor.commands.get(ii("0x11")),r=o[ii("0xb")];this[ii("0x5")]!==r&&(o.execute(),this[ii("0xe")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[ii("0xd")][ii("0x8")][ii("0x4")](ii("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor[ii("0x8")].get(ii("0xf"))._setSuggestionData(r)}))}}const ai=["getItems","enableCommand","blockIndent","IndentEditing","afterInit","format","commandName","outdentBlock","markBlockFormat","from","getItemLabel","selection","document","model","change","getSelectedBlocks","indent","has","indentBlock","registerDescriptionCallback","get","plugins"];var ci,li;ci=ai,li=354,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x2")](){const t=this.editor,e=t[di("0x13")][di("0x12")]("TrackChangesEditing");t[di("0x13")].has(di("0x1"))&&(e[di("0x15")](di("0xe")),e[di("0x15")]("outdent"));const n=t.locale;if(t.plugins[di("0xf")]("IndentBlock")){for(const n of[di("0x10"),"outdentBlock"])e[di("0x15")](n,(()=>{const o=Array[di("0x7")](this.editor[di("0xb")][di("0xa")][di("0x9")][di("0xd")]()).filter((t=>this.editor[di("0xb")].schema.checkAttribute(t,di("0x0"))));t[di("0xb")][di("0xc")]((()=>{for(const t of o)e[di("0x6")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x10")})}))}));e._descriptionFactory[di("0x11")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[di("0x4")]&&di("0x5")!=o.commandName)return;const r=t[di("0x14")]()[0],s=e._descriptionFactory[di("0x8")](r);return di("0x10")==o.commandName?{type:di("0x3"),content:Yo(n,"*Indent:* %0",s)}:di("0x5")==o.commandName?{type:di("0x3"),content:Yo(n,"*Outdent:* %0",s)}:void 0}))}}}var gi,mi,fi=["editor","input","init","TrackChangesEditing","enableCommand","requires","get"];gi=fi,mi=386,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("0x4")](){return[Vr.Input]}[hi("0x1")](){this[hi("0x6")].plugins[hi("0x5")](hi("0x2"))[hi("0x3")](hi("0x0"))}}const bi=["link","editor","from","commandName","registerDescriptionCallback","format","locale","getFirstPosition","enableCommand","selection","getAttribute","LinkEditing","plugins","change","_descriptionFactory","linkHref","markInlineFormat","afterInit","has","isCollapsed","*Set link:* %0","*Remove link*","getFirstRange","unlink","hasAttribute","TrackChangesEditing","model","document"];var Ei,_i;Ei=bi,_i=118,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xb")](){const t=this[Ti("0x17")];if(!t.plugins[Ti("0xc")](Ti("0x5")))return;const e=t[Ti("0x6")].get(Ti("0x13"));e[Ti("0x2")](Ti("0x16"),((n,o)=>{const r=t[Ti("0x14")].document[Ti("0x3")];let s=[];if(r[Ti("0xd")]){if(!r[Ti("0x12")](Ti("0x9")))return void n(o);{const e=(0,Vr.findAttributeRange)(r[Ti("0x1")](),Ti("0x9"),r[Ti("0x4")]("linkHref"),t[Ti("0x14")]);s=[e]}}else s=Array[Ti("0x18")](r.getRanges());t[Ti("0x14")][Ti("0x7")]((()=>{for(const t of s)e.markInlineFormat(t,{commandName:Ti("0x16"),commandParams:[o]})}))})),e[Ti("0x2")](Ti("0x11"),(()=>{const n=this[Ti("0x17")][Ti("0x14")],o=n[Ti("0x15")][Ti("0x3")];n.change((()=>{let n=[];n=o[Ti("0xd")]?[(0,Vr.findAttributeRange)(o.getFirstPosition(),Ti("0x9"),o.getAttribute(Ti("0x9")),t[Ti("0x14")])]:mr(Ti("0x9"),o[Ti("0x10")](),t[Ti("0x14")]);for(const t of n)e[Ti("0xa")](t,{commandName:"unlink",commandParams:[]})}))})),e[Ti("0x8")][Ti("0x1a")]((e=>{const{data:n}=e,o=t[Ti("0x0")];if(n){if(Ti("0x16")==n[Ti("0x19")]){const t=n.commandParams[0];return{type:Ti("0x1b"),content:Yo(o,Ti("0xe"),'"'+t+'"')}}return"unlink"==n[Ti("0x19")]?{type:"format",content:Yo(o,Ti("0xf"))}:void 0}}))}}const yi=["ELEMENT_NUMBERED_LIST","ELEMENT_BULLETED_LIST","indentList","commands","paragraph","previousSibling","afterInit","nextSibling","TodoListEditing","filter","slice","todo","listType","TrackChangesEditing","get","*Indent:* %0","ELEMENT_TODO_LIST","*Outdent:* %0","todoList","listItem","execute","numberedList","listIndent","parent","_descriptionFactory","blockName","checkChild","*Check item*","markBlockFormat","ELEMENT_LIST_ITEM","commandName","List","bulletedList","plugins","selection","enableCommand","forceValue","getAttribute","todoListChecked","commandParams","name","locale","push","outdentList","checkTodoList","isObject","element","schema","document","_selectedElements","*Uncheck item*","getSelectedBlocks","add","numbered","model","has","findIndex","format","value","change","*Change to:* %0","from","createPositionAt","registerDescriptionCallback"];var ki,Ai;ki=yi,Ai=247,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xf")](){const t=this.editor,e=t[vi("0x32")];if(!t[vi("0x2a")][vi("0x0")]("ListEditing"))return;const n=t[vi("0x2a")][vi("0x17")](vi("0x16")),o=t[vi("0x2a")].has(vi("0x11"));function r(e){return()=>{const o=t[vi("0x3f")][vi("0x39")][vi("0x2b")],r=t[vi("0xc")][vi("0x17")](e);if(r[vi("0x3")])return void t[vi("0x1d")](vi("0xd"),{});const s=e[vi("0x13")](0,-4),i=function(t,e,n){let o=Array[vi("0x6")](t).filter((t=>{return e=t,(o=n)[vi("0x23")](e[vi("0x20")],vi("0x1c"))&&!o[vi("0x36")](e);var e,o}));o=o[vi("0x12")]((t=>!t.is("element",vi("0x1c"))||t[vi("0x2e")](vi("0x15"))!=e));const r=new Set;for(const t of o)t.is(vi("0x37"),vi("0x1c"))?r.add(Ii(t)):r.add(t);return Array[vi("0x6")](r)}(o[vi("0x3c")](),s,t.model[vi("0x38")]);t[vi("0x3f")][vi("0x4")]((()=>{for(const t of i)n[vi("0x25")](t,{commandName:e,commandParams:[{forceValue:!r[vi("0x3")]}],formatGroupId:vi("0x22")},Si(t))}))}}function s(e){return()=>{const o=function(t){let e=Array[vi("0x6")](t);const n=e[vi("0x1")]((t=>vi("0x1c")!=t[vi("0x31")]));return n>-1&&(e=e[vi("0x13")](0,n)),e}(t[vi("0x3f")][vi("0x39")][vi("0x2b")][vi("0x3c")]()),r=t.model.createRange(t[vi("0x3f")][vi("0x7")](o[0],"before"),t[vi("0x3f")][vi("0x7")](o[o.length-1],"end"));t[vi("0x3f")][vi("0x4")]((()=>{n[vi("0x25")](r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x10")];for(;t&&t[vi("0x2e")](vi("0x1f"))>n[vi("0x2e")](vi("0x1f"));)e[vi("0x3d")](t),t=t[vi("0x10")]}return Array[vi("0x6")](e)}(o))}))}}n[vi("0x2c")](vi("0x1e"),r("numberedList")),n[vi("0x2c")](vi("0x29"),r("bulletedList")),o&&n.enableCommand(vi("0x1b"),r(vi("0x1b"))),n[vi("0x2c")](vi("0xb"),s(vi("0xb"))),n[vi("0x2c")](vi("0x34"),s(vi("0x34"))),o&&n.enableCommand(vi("0x35"),(()=>{const e=t[vi("0xc")][vi("0x17")](vi("0x35")),o=Array[vi("0x6")](e[vi("0x3a")]);o.filter((t=>t[vi("0x2e")](vi("0x2f"))!=e[vi("0x3")])),t[vi("0x3f")][vi("0x4")]((()=>{for(const t of o)n[vi("0x25")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x3")]}]})}))})),n[vi("0x21")].registerElementLabel("listItem",(t=>Yo(e,vi("0x26"),t))),n[vi("0x21")][vi("0x8")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[vi("0x27")]||vi("0x29")==n[vi("0x27")]||vi("0x1b")==n[vi("0x27")])switch(n.commandName.replace(vi("0x28"),"")){case"bulleted":return o(Yo(e,vi("0xa")));case vi("0x3e"):return o(Yo(e,vi("0x9")));case vi("0x14"):return o(Yo(e,vi("0x19")))}if(vi("0xb")==n[vi("0x27")])return{type:vi("0x2"),content:Yo(e,vi("0x18"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x34")==n.commandName)return{type:vi("0x2"),content:Yo(e,vi("0x1a"),Yo(e,vi("0x26")))};if(vi("0x35")==n[vi("0x27")])return n[vi("0x30")][0][vi("0x2d")]?{type:"format",content:Yo(e,vi("0x24"))}:{type:vi("0x2"),content:Yo(e,vi("0x3b"))}}function o(t){return{type:vi("0x2"),content:Yo(e,vi("0x5"),t)}}}))}}function Ii(t){const e=t[vi("0x2e")](vi("0x1f"));if(0==e)return t;let n=t;for(;t[vi("0xe")]&&t[vi("0xe")].is(vi("0x37"),vi("0x1c"));){const o=t[vi("0xe")].getAttribute("listIndent");if(o==e)n=t[vi("0xe")];else if(o<e)break;t=t.previousSibling}return n}function Si(t){const e=[];if(t.is(vi("0x37"),"listItem")&&t[vi("0x2e")](vi("0x1f"))>0){let n=t[vi("0x10")];for(;n&&vi("0x1c")==n[vi("0x31")]&&n.getAttribute(vi("0x1f"))==t[vi("0x2e")]("listIndent");)e[vi("0x33")](n),n=n[vi("0x10")]}return e}const Li=["listReversed","unshift","afterInit","replace","plugins","ELEMENT_","ListUtils","has","getSelectedBlocks","getLastPosition","enableCommand","getSiblingNodes","startIndex","selection","list.properties","before","get","forward","_descriptionFactory","flat","listStart","TrackChangesEditing","_getTranslationKeyForListStyle","numbered","*Format:* set start index to %0","listType","listStyle","*Format:* set order to reversed","editor","type","change","getFirstPosition","registerDescriptionCallback","map","createRange","styles","length","toUpperCase","commandParams","push","listItem","getListTypeFromListStyleType","handleDescriptions","format","reversed","ListPropertiesEditing","backward","config","createPositionAt","from","markMultiRangeBlockFormat","_LIST_","element","model","handleListStyleCommand","filter","commandName","handleListStartCommand","parent","bind","document","_getSuggestionBlocks"];var Ni,wi;Ni=Li,wi=116,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0xa")](){if(!this[Mi("0x24")][Mi("0xc")][Mi("0xf")](Mi("0x35")))return;const t=this.editor[Mi("0x37")][Mi("0x18")](Mi("0x16")),e=this[Mi("0x24")].plugins[Mi("0x18")]("TrackChangesEditing");t[Mi("0x2b")]&&e[Mi("0x12")](Mi("0x22"),this[Mi("0x0")].bind(this)),t[Mi("0x34")]&&e[Mi("0x12")]("listReversed",this.handleListReversedCommand[Mi("0x5")](this)),t.startIndex&&e[Mi("0x12")](Mi("0x1c"),this[Mi("0x3")][Mi("0x5")](this)),e[Mi("0x1a")][Mi("0x28")](this[Mi("0x32")][Mi("0x5")](this))}[Mi("0x0")](t,e={}){const n=this[Mi("0x24")].plugins[Mi("0x18")](Mi("0x1d")),o=this._getSuggestionBlocksForListStyle();this.editor[Mi("0x3d")][Mi("0x26")]((()=>{n[Mi("0x3a")](o,{commandName:Mi("0x22"),commandParams:[{type:e[Mi("0x25")]}],formatGroupId:Mi("0x22")})}))}handleListReversedCommand(t,e={}){const n=this.editor[Mi("0xc")][Mi("0x18")](Mi("0x1d")),o=this[Mi("0x7")]((t=>t.is(Mi("0x3c"),Mi("0x30"))&&"numbered"===t.getAttribute(Mi("0x21"))));if(o[Mi("0x2c")]<1)return;const r=o[Mi("0x29")]((t=>this[Mi("0x24")][Mi("0x3d")][Mi("0x2a")](this.editor[Mi("0x3d")].createPositionAt(t,Mi("0x17")),this.editor[Mi("0x3d")][Mi("0x38")](t,0))));this[Mi("0x24")][Mi("0x3d")][Mi("0x26")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Mi("0x8"),commandParams:[{reversed:e[Mi("0x34")]}],formatGroupId:Mi("0x8")})}))}handleListStartCommand(t,e={}){const n=this[Mi("0x24")][Mi("0xc")][Mi("0x18")]("TrackChangesEditing"),o=this[Mi("0x7")]((t=>t.is(Mi("0x3c"),Mi("0x30"))&&Mi("0x1f")===t.getAttribute(Mi("0x21"))));if(o[Mi("0x2c")]<1)return;const r=o[Mi("0x29")]((t=>this[Mi("0x24")].model[Mi("0x2a")](this[Mi("0x24")][Mi("0x3d")][Mi("0x38")](t,Mi("0x17")),this[Mi("0x24")].model[Mi("0x38")](t,0))));this[Mi("0x24")][Mi("0x3d")][Mi("0x26")]((()=>{n[Mi("0x3a")](r,{commandName:Mi("0x1c"),commandParams:[{startIndex:e[Mi("0x14")]}],formatGroupId:"listStart"})}))}[Mi("0x32")](t){const e=this[Mi("0x24")].locale,{data:n}=t;if(!n)return;let o,r;switch(n[Mi("0x2")]){case Mi("0x22"):o="*Change to:* %0",r={type:Mi("0x33"),content:Yo(e,o,Yo(e,this[Mi("0x1e")](n.commandParams[0][Mi("0x25")])))};break;case"listReversed":o=n[Mi("0x2e")][0].reversed?Mi("0x23"):"*Format:* set order to regular",r={type:Mi("0x33"),content:Yo(e,o)};break;case Mi("0x1c"):o=Mi("0x20"),r={type:Mi("0x33"),content:Yo(e,o,n[Mi("0x2e")][0][Mi("0x14")])}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[Mi("0x24")][Mi("0xc")][Mi("0x18")](Mi("0xe"));let s=Array.from(this[Mi("0x24")][Mi("0x3d")][Mi("0x6")].selection[Mi("0x10")]());return(null===(t=s[0])||void 0===t?void 0:t.is(Mi("0x3c"),Mi("0x30")))&&s[Mi("0x9")](...r[Mi("0x13")](this[Mi("0x24")][Mi("0x3d")][Mi("0x6")][Mi("0x15")][Mi("0x27")](),Mi("0x36"))),(null===(e=s[s[Mi("0x2c")]-1])||void 0===e?void 0:e.is(Mi("0x3c"),Mi("0x30")))&&s[Mi("0x2f")](...r[Mi("0x13")](this.editor[Mi("0x3d")][Mi("0x6")][Mi("0x15")][Mi("0x11")](),"forward")),s=[...new Set(s)],(null===(o=null===(n=this.editor[Mi("0x3d")][Mi("0x6")][Mi("0x15")][Mi("0x27")]())||void 0===n?void 0:n[Mi("0x4")])||void 0===o?void 0:o.is(Mi("0x3c"),"listItem"))&&(s=s.filter((t=>t.is(Mi("0x3c"),Mi("0x30"))))),s}[Mi("0x7")](t){const e=this[Mi("0x24")][Mi("0xc")][Mi("0x18")](Mi("0xe"));let n=Array[Mi("0x39")](this[Mi("0x24")].model[Mi("0x6")][Mi("0x15")][Mi("0x10")]())[Mi("0x1")](t).map((t=>{const n=this[Mi("0x24")][Mi("0x3d")].createPositionAt(t,0);return[...e[Mi("0x13")](n,"backward"),...e.getSiblingNodes(n,Mi("0x19"))]}))[Mi("0x1b")]();return n=[...new Set(n)],n}[Mi("0x1e")](t){return Mi("0xd")+this[Mi("0x24")][Mi("0xc")].get("ListUtils")[Mi("0x31")](t)[Mi("0x2d")]()+Mi("0x3b")+t.toUpperCase()[Mi("0xb")](/-/g,"_")}}const Fi=["registerElementLabel","elementToElement","plugins","attribute:url:media","data","downcastDispatcher","afterInit","showSuggestionHighlights","locale","media","editor","ELEMENT_MEDIA","for","_descriptionFactory","high","stop","mediaEmbed","createEmptyElement","conversion","TrackChangesEditing"];var Pi,Di;Pi=Fi,Di=499,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x7")](){const t=this[Bi("0xb")];if(!t[Bi("0x3")].has("MediaEmbedEditing"))return;const e=t.plugins.get(Bi("0x0")),n=t[Bi("0x9")];e.enableCommand(Bi("0x11")),e[Bi("0xe")][Bi("0x1")](Bi("0xa"),(t=>Yo(n,Bi("0xc"),t))),t[Bi("0x13")][Bi("0xd")]("dataDowncast")[Bi("0x2")]({model:Bi("0xa"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0x12")]("div")},converterPriority:"high"}),t[Bi("0x5")][Bi("0x6")].on(Bi("0x4"),((t,e,n)=>{n.options[Bi("0x8")]&&t[Bi("0x10")]()}),{priority:Bi("0xf")})}}const Ui=["mention","plugins","has","get","editor","MentionEditing","enableCommand","TrackChangesEditing"];var Gi,Hi;Gi=Ui,Hi=141,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x7")];t[zi("0x4")][zi("0x5")](zi("0x0"))&&t[zi("0x4")][zi("0x6")](zi("0x2"))[zi("0x1")](zi("0x3"))}}const Vi=["has","locale","ELEMENT_PAGE_BREAK","pageBreak","editor","plugins","registerElementLabel","get","afterInit","TrackChangesEditing","enableCommand","_descriptionFactory"];var Ki,qi;Ki=Vi,qi=350,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x6")](){const t=this[Xi("0x2")];if(!t[Xi("0x3")][Xi("0xa")]("PageBreakEditing"))return;t[Xi("0x3")][Xi("0x5")](Xi("0x7"))[Xi("0x8")](Xi("0x1"));const e=t.plugins[Xi("0x5")]("TrackChangesEditing"),n=t[Xi("0xb")];e[Xi("0x9")][Xi("0x4")](Xi("0x1"),(t=>Yo(n,Xi("0x0"),t)))}}const Qi=["start","insertion","model","format","insert","markerName","createUIElement","enableCommand","paragraph","commandName","locale","*Change to:* %0","parent","markerRange","markBlockFormat","document","Paragraph","*Insert:* %0","registerDescriptionCallback","get","checkChild","consume","isLimit","plugins","afterInit","isTouching","change","highest","nodeAfter","addClass","isBlock","blockName","ck-suggestion-marker--active","ELEMENT_PARAGRAPH","filter","_descriptionFactory","$text","from","getItemLabel","downcastDispatcher","activeMarkers","addMarker:suggestion:insertion","selection","editing","getFirstRange","consumable","mapper","ck-suggestion-marker-split","showSuggestionHighlights","options","schema","name","bindElementToMarker","registerElementLabel","type","writer","TrackChangesEditing"];var Ji,Zi;Ji=Qi,Zi=420,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{[Yi("0x3")](){const t=this.editor;if(!t[Yi("0x2")].has(Yi("0x34")))return;const e=t[Yi("0x2e")],n=t[Yi("0x2")][Yi("0x37")](Yi("0x23"));n[Yi("0xe")][Yi("0x20")](Yi("0x2c"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Yi("0x2b")](Yi("0x2c"),((e,o={})=>{const r=t[Yi("0x26")][Yi("0x33")],s=o[Yi("0x15")]||r[Yi("0x15")],i=Array[Yi("0x10")](s.getSelectedBlocks())[Yi("0xd")]((t=>{return e=t,(n=this.editor[Yi("0x26")][Yi("0x1d")])[Yi("0x38")](e[Yi("0x30")],Yi("0x2c"))&&!n.isObject(e)&&"paragraph"!=e[Yi("0x1e")];var e,n}));t[Yi("0x26")][Yi("0x5")]((()=>{for(const t of i)n[Yi("0x32")](t,{commandName:Yi("0x2c"),commandParams:[],formatGroupId:Yi("0xa")},fr(t))}))})),n[Yi("0xe")][Yi("0x36")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x2d")])return{type:Yi("0x27"),content:Yo(e,Yi("0x2f"),Yo(e,Yi("0xc")))}})),n[Yi("0x2b")]("insertParagraph"),t[Yi("0x16")][Yi("0x12")].on(Yi("0x14"),ex(t),{priority:Yi("0x6")}),t.data[Yi("0x12")].on(Yi("0x14"),((e,n,o)=>{o[Yi("0x1c")][Yi("0x1b")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n._descriptionFactory;o[Yi("0x36")]((n=>{if("insertion"!==n[Yi("0x21")])return;const{start:r,end:s}=n[Yi("0x17")]();if(!r.isTouching(s)||!r[Yi("0x7")])return;const i=t[Yi("0x26")][Yi("0x1d")],x=r[Yi("0x7")];return i[Yi("0x9")](x)&&!i[Yi("0x1")](x)&&i[Yi("0x38")](x,Yi("0xf"))?{type:Yi("0x25"),content:Yo(e,Yi("0x35"),o[Yi("0x11")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t.plugins[Yi("0x37")](Yi("0x23")),i=o.markerRange[Yi("0x24")],x=o[Yi("0x31")].end,a=t[Yi("0x26")][Yi("0x1d")];if(!i[Yi("0x4")](x)||!i[Yi("0x7")])return;const c=i[Yi("0x7")];if(a[Yi("0x9")](c)&&!a[Yi("0x1")](c)&&a[Yi("0x38")](c,"$text")){if(!r[Yi("0x18")][Yi("0x0")](o.markerRange,n[Yi("0x1e")]))return;const t=r.writer[Yi("0x2a")]("span",{class:Yi("0x1a")}),i=r[Yi("0x19")].toViewPosition(x);e&&s[Yi("0x13")].includes(o.markerName)&&r[Yi("0x22")][Yi("0x8")](Yi("0xb"),t),r[Yi("0x22")][Yi("0x28")](i,t),r[Yi("0x19")][Yi("0x1f")](t,o[Yi("0x29")])}}}const nx=["get","document","afterInit","isFormatting","registerDescriptionCallback","getAttributeProperties","createRangeOn","isCollapsed","locale","removeFormat","plugins","has","from","getRanges","schema","*Remove all formatting*","getAttributes","commandName","selection","format","RemoveFormatEditing","TrackChangesEditing","model","enableCommand","editor","getItems"];var ox,rx;ox=nx,rx=424,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[sx("0x14")](){const t=this[sx("0x10")];if(!t[sx("0x2")][sx("0x3")](sx("0xc")))return;const e=t[sx("0x2")][sx("0x12")](sx("0xd"));e[sx("0xf")]("removeFormat",(n=>{const o=t[sx("0xe")][sx("0x13")][sx("0xa")];o[sx("0x19")]?n():t[sx("0xe")].change((()=>{const n=Array[sx("0x4")](o[sx("0x5")]());for(const o of n)for(const n of o[sx("0x11")]())xx(n,t[sx("0xe")][sx("0x6")])&&e.markInlineFormat(t.model[sx("0x18")](n),{commandName:sx("0x1"),commandParams:[]})}))})),e._descriptionFactory[sx("0x16")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[sx("0x9")])return{type:sx("0xb"),content:Yo(t[sx("0x0")],sx("0x7"))}}))}}function xx(t,e){for(const[n]of t[sx("0x8")]()){const t=e[sx("0x17")](n);if(t&&t[sx("0x15")])return!0}return!1}const ax=["discardAllSuggestions","get","acceptSelectedSuggestions","afterInit","enableCommand","RestrictedEditingModeEditing","acceptSuggestion","editor","plugins","has","goToNextRestrictedEditingException","goToPreviousRestrictedEditingException","trackChanges","TrackChangesEditing","discardSuggestion"];var cx,lx;cx=ax,lx=363,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x0")](){const t=this[dx("0x4")];if(!t.plugins[dx("0x6")](dx("0x2")))return;const e=t[dx("0x5")][dx("0xd")](dx("0xa"));e.enableCommand(dx("0x8")),e[dx("0x1")](dx("0x7"));const n=t[dx("0x5")][dx("0xd")](dx("0x2"));n[dx("0x1")](dx("0x9")),n[dx("0x1")](dx("0x3")),n[dx("0x1")](dx("0xb")),n[dx("0x1")]("acceptAllSuggestions"),n[dx("0x1")](dx("0xc")),n[dx("0x1")](dx("0xe")),n.enableCommand("discardSelectedSuggestions")}}const gx=["downcastDispatcher","softBreak","name","addMarker:suggestion:deletion","TrackChangesEditing","model","includes","plugins","split","ck-suggestion-marker-","markerName","init","consumable","showSuggestionHighlights","ck-suggestion-marker--active","writer","test","shiftEnter","ELEMENT_LINE_BREAK","activeMarkers","get","registerElementLabel","options","high","editing","getItems","editor","mapper","markerRange","toViewPosition","deletion","data","merge","insert","createUIElement","addClass","bindElementToMarker","locale","addMarker:suggestion"];var mx,fx;mx=gx,fx=446,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 requires(){return[ns.ShiftEnter]}[hx("0x21")](){const t=this[hx("0x9")],e=t[hx("0x1d")].get(hx("0x1a"));e.enableCommand(hx("0x0")),t[hx("0x7")][hx("0x16")].on("addMarker:suggestion:insertion",bx(t),{priority:hx("0x6")}),t[hx("0x7")][hx("0x16")].on(hx("0x19"),bx(t),{priority:"high"}),t[hx("0xe")][hx("0x16")].on(hx("0x15"),((e,n,o)=>{o[hx("0x5")][hx("0x23")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0x4")]("softBreak",(e=>Yo(t[hx("0x14")],hx("0x1"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[hx("0x1d")][hx("0x3")](hx("0x1a"));if(!r[hx("0x22")][hx("0x26")](o[hx("0xb")],n[hx("0x18")]))return;const i=t[hx("0x1b")];for(const t of o[hx("0xb")][hx("0x8")]()){if(!t.is("element",hx("0x17")))continue;const n=hx("0xd")==o[hx("0x20")][hx("0x1e")](":")[1]?hx("0xf"):"split",x=r[hx("0x25")][hx("0x11")]("span",{class:hx("0x1f")+n}),a=r[hx("0xa")][hx("0xc")](i.createPositionBefore(t));e&&s[hx("0x2")][hx("0x1c")](o[hx("0x20")])&&r.writer[hx("0x12")](hx("0x24"),x),r[hx("0x25")][hx("0x10")](a,x),r[hx("0xa")][hx("0x13")](x,o[hx("0x20")])}}}const Ex=["from","TrackChangesEditing","change","format","locale","commandName","selection","StandardEditingModeEditing","has","FORMAT_RESTRICTED_ENABLED","markInlineFormat","afterInit","FORMAT_RESTRICTED_DISABLED","registerDescriptionCallback","restrictedEditingException","document","_descriptionFactory","editor","plugins","commandParams","forceValue","commands"];var _x,Tx;_x=Ex,Tx=291,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x6")](){const t=this[Cx("0xc")],e=t.model,n=t[Cx("0x15")];if(!t[Cx("0xd")][Cx("0x3")](Cx("0x2")))return;const o=t[Cx("0xd")].get(Cx("0x12")),r=Cx("0x9"),s=t[Cx("0x10")].get(r);o.enableCommand(r,((t,n={})=>{const i=e[Cx("0xa")][Cx("0x1")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0xf")]?n[Cx("0xf")]:!s.value;e[Cx("0x13")]((()=>{const t=Array[Cx("0x11")](i.getRanges());for(const n of t){const t=x?[n]:mr(r,n,e);for(const e of t)o[Cx("0x5")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xb")][Cx("0x8")]((t=>{const{data:e}=t;if(e&&e[Cx("0x0")]==r)return e[Cx("0xe")][0].forceValue?{type:Cx("0x14"),content:Yo(n,Cx("0x4"))}:{type:Cx("0x14"),content:Yo(n,Cx("0x7"))}}))}}const kx=["style","add","normalizeConfig","from","styleName","inline","getRanges","find","config","enabledStyles","_descriptionFactory","Style","locale","element","isCollapsed","format","plugins","getDefinitionsForView","isBlock","_getStyleDefinition","model","classes","markBlockFormat","getSelectedBlocks","includes","createRangeOn","enableCommand","value","modelElements","has","getAttribute","name","document","push","toLowerCase","forceValue","change","getAncestors","TrackChangesEditing","markInlineFormat","registerDescriptionCallback","commandName","commandParams","DataSchema","commands","get","block"];var Ax,vx;Ax=kx,vx=372,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{afterInit(){const t=this.editor;if(!t[Rx("0x14")][Rx("0x21")](Rx("0xf")))return;const e=t[Rx("0x1")][Rx("0x2")](Rx("0x4")),n=t[Rx("0x14")][Rx("0x2")](Rx("0x2a")),o=t[Rx("0x10")],r=t[Rx("0x14")][Rx("0x2")](Rx("0x0")),s=t[Rx("0x14")][Rx("0x2")]("StyleUtils")[Rx("0x6")](r,t[Rx("0xc")][Rx("0x2")]("style.definitions"));n[Rx("0x1e")](Rx("0x4"),((o,{styleName:i})=>{const x=t.model[Rx("0x24")].selection,a=this[Rx("0x17")](i,s);if(!a)return;if(!e[Rx("0xd")].includes(i))return;if(x[Rx("0x12")]&&!a[Rx("0x16")])return void o({styleName:i});const c=!e[Rx("0x1f")][Rx("0x1c")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x1c")](o[Rx("0x23")])){n[Rx("0x5")](o);break}}return n}(x[Rx("0x1b")](),a[Rx("0x20")]);t[Rx("0x18")][Rx("0x28")]((()=>{for(const t of e)n[Rx("0x1a")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x[Rx("0xa")]());if(!c){const n=Array[Rx("0x7")](r[Rx("0x15")](a[Rx("0x11")],!1))[0].model,o=[];for(const r of e){const e=this._getRangesWithClasses(t[Rx("0x18")],r,a[Rx("0x19")],n);o[Rx("0x25")](...e)}e=o}t.model[Rx("0x28")]((()=>{for(const t of e)n[Rx("0x2b")](t,{commandName:Rx("0x4"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0xe")][Rx("0x2c")]((t=>{const{data:e}=t;if(e&&Rx("0x4")===e[Rx("0x2d")])return e[Rx("0x2e")][0][Rx("0x27")]?{type:Rx("0x13"),content:Yo(o,"*Format:* %0",e[Rx("0x2e")][0].styleName[Rx("0x26")]())}:{type:Rx("0x13"),content:Yo(o,"*Remove format:* %0",e[Rx("0x2e")][0][Rx("0x8")][Rx("0x26")]())}}))}[Rx("0x17")](t,e){let n=e[Rx("0x3")][Rx("0xb")]((e=>e[Rx("0x23")]===t));return n||(n=e[Rx("0x9")][Rx("0xb")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const r=[];for(const s of e.getItems()){const e=s[Rx("0x22")](o);e&&n.every((t=>e[Rx("0x19")][Rx("0x1c")](t)))&&r[Rx("0x25")](t[Rx("0x1d")](s))}return r}}const Sx=["mapper","push","document","subType","tableRow","element","fromRange","min","plugins","getCellLocation","some","insertTableRowBelow","getItems","accept","enableCommand","isArray","item","getChildren","filter","insertTable","highest","ELEMENT_TABLE_COLUMN","add","$textProxy","hasAttribute","_tableSuggestions","join","MAX_SAFE_INTEGER","_splitMarkerName","execute","editor","rowspan","cell","ELEMENT_TABLE_COLUMN_WITH_TEXT","rootName","_suggestionFactory","minRow","getSelectionAffectedTableCells","has","maxRow","options","isIntersectingWithRange","removeTableColumn","above","addClass","change","_getSuggestionCoords","removeTableRow","getRanges","change:data","forceValue","TrackChangesEditing","addRange","insert","createTableWalker","deletion","showSuggestionHighlights","createRangeIn","_setupColumnsRowsFixing","*Insert:* %0","$graveyard","getChanges","addMarker:suggestion","colspan","tableColumn","findAncestor","registerElementLabel","get","selection","last","registerDescriptionCallback","values","table","selectTableRow","locale","low","_getCoordsForCells","ELEMENT_TABLE_ROW_WITH_TEXT","enqueueChange","toViewElement","getChangedMarkers","isInContent","getContainedElement","order","getColumnIndexes","registerPostFixer","registerCustomCallback","getAttribute","markMultiRangeInsertion","insertion","map","MIN_SAFE_INTEGER","insertTableRowAbove","afterInit","start","_tablePostFixingSubtypes","differ","span","TableEditing","ELEMENT_TABLE_WITH_TEXT","position","nodeBefore","left","createPositionAt","length","refresh","selectTableColumn","substr","from","name","markMultiRangeDeletion","model","TableUtils","detach","getFirstRange","tablePaste","type","insertTableColumnLeft","end","removeClass","getSuggestion","_acceptFormatSuggestionCallbackFactory","batch","isEqual","tableCell","setSelection","discard","max","*Remove:* %0","ELEMENT_TABLE_ROW","createRangeOn","_descriptionFactory","nodeAfter","toLowerCase","first","commands","ELEMENT_TABLE","root","data"];var Lx,Nx;Lx=Sx,Nx=346,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Sx[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x1b")]=[wx("0x4b"),wx("0x87")],this[wx("0x60")]=new Set}[wx("0x19")](){const t=this[wx("0x65")],e=t[wx("0x2b")][wx("0x49")][wx("0x0")];if(!t[wx("0x4f")][wx("0x6d")](wx("0x1e")))return;const n=t[wx("0x6")],o=t[wx("0x4f")][wx("0x8a")]("TrackChangesEditing"),r=t[wx("0x4f")].get(wx("0x2c"));o[wx("0x3f")][wx("0x89")](wx("0x4"),(t=>Yo(n,wx("0x44"),t))),this[wx("0x81")](),o[wx("0x55")](wx("0x5a")),o[wx("0x55")](wx("0x5")),o[wx("0x55")](wx("0x26"));for(const n of[wx("0x18"),wx("0x52")]){const s=t[wx("0x43")].get(n);o[wx("0x55")](n,(n=>{t[wx("0x2b")][wx("0x74")]((t=>{n();const i=wx("0x72")===s[wx("0xf")],x=r[wx("0x6c")](e),a=r.getRowIndexes(x),c=i?a[wx("0x42")]-1:a[wx("0x1")]+1,l=x[0][wx("0x88")]("table"),d=r[wx("0x7d")](l,{startRow:c,endRow:c}),u=Array[wx("0x28")](d).map((e=>t.createRangeOn(e.cell)));o[wx("0x14")](u,wx("0x4b"))}))}))}for(const n of[wx("0x31"),"insertTableColumnRight"]){const s=t[wx("0x43")][wx("0x8a")](n);o[wx("0x55")](n,(n=>{t[wx("0x2b")].change((t=>{n();const i=wx("0x22")===s[wx("0xf")],x=r[wx("0x6c")](e),a=r[wx("0x10")](x),c=i?a[wx("0x42")]-1:a[wx("0x1")]+1,l=x[0][wx("0x88")](wx("0x4")),d=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array.from(d).map((e=>t[wx("0x3e")](e[wx("0x67")])));o[wx("0x14")](u,wx("0x87"))}))}))}for(const n of[wx("0x76"),wx("0x71")]){const s=n[wx("0x27")](11),i=s[wx("0x41")](),x=i[wx("0x27")](0,3)+wx("0x1d"),a=wx("0x4")+s,c=wx("0x4e")+s,l=wx("0x3b")+s;o[wx("0x55")](n,(()=>{t.model[wx("0x74")]((t=>{const s=r[wx("0x6c")](e),d=s[0][wx("0x88")]("table");let u;if(wx("0x76")==n){const t=r.getRowIndexes(s);u={startRow:t[wx("0x42")],endRow:t.last,includeAllSlots:!0}}else{const t=r.getColumnIndexes(s);u={startColumn:t[wx("0x42")],endColumn:t.last,includeAllSlots:!0}}const g=r[wx("0x7d")](d,u),m=Array.from(g)[wx("0x16")]((({cell:t})=>t)),f=Ox(m.filter((t=>t[wx("0x5f")](x)))),h=Ox(m[wx("0x59")]((t=>!t[wx("0x5f")](x))))[wx("0x16")]((e=>t[wx("0x3e")](e))),p=o[wx("0x2a")](h,a);if(p&&(wx("0x4b")==p.subType||wx("0x87")==p[wx("0x4a")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[wx("0x3e")](n),s=r.getCellLocation(n),a=n[wx("0x13")](x)-1,d=e[c],u=e[l];d<=s[i]&&s[i]+a<=u&&p[wx("0x7b")](o)}}}))}))}function s(n){const o=Array.from(e[wx("0x77")]())[wx("0x16")]((t=>i.LiveRange[wx("0x4d")](t)));t[wx("0x2b")][wx("0x74")]((e=>{const r=e[wx("0x36")];n=n[wx("0x59")]((t=>"$graveyard"!=t[wx("0x45")].rootName)),e[wx("0x39")](n),t[wx("0x43")][wx("0x8a")](wx("0x76"))[wx("0x25")](),t[wx("0x64")](wx("0x76"),{forceDefaultExecution:!0}),t[wx("0x2b")][wx("0xa")]((()=>{t[wx("0x2b")][wx("0xa")](r,(t=>{const e=o[wx("0x59")]((t=>wx("0x83")!=t.root[wx("0x69")]));e[wx("0x24")]>0&&t[wx("0x39")](e);for(const t of o)t[wx("0x2d")]()}))}))}))}function a(n){t[wx("0x2b")][wx("0x74")]((o=>{const r=Array.from(e[wx("0x77")]())[wx("0x16")]((t=>i.LiveRange[wx("0x4d")](t))),s=[];for(const t of n)for(const e of t.getItems({shallow:!0}))s[wx("0x48")](e);for(const e of s)wx("0x83")!=e.root.rootName&&(o.setSelection(o[wx("0x23")](e,0)),t.commands[wx("0x8a")](wx("0x71"))[wx("0x25")](),t.execute(wx("0x71"),{forceDefaultExecution:!0}));const x=r[wx("0x59")]((t=>wx("0x83")!=t.root.rootName));x[wx("0x24")]>0&&o[wx("0x39")](x);for(const t of r)t[wx("0x2d")]()}))}function c(t,e){return e.every((e=>t[wx("0x51")]((t=>t[wx("0x32")][wx("0x37")](e.start)||e[wx("0x32")][wx("0x37")](t[wx("0x1a")])))))}function l(t,e){return t[wx("0x51")]((t=>e.some((e=>t[wx("0x32")].isTouching(e.start)))))}t.data.downcastDispatcher.on(wx("0x85"),((t,e,n)=>{if(!n[wx("0x6f")][wx("0x7f")])return;const o=e[wx("0x57")];if(!o)return;const r=n[wx("0x47")][wx("0xb")](o);function s(t){return Array[wx("0x56")](t)?t:[t]}r&&wx("0x38")===o[wx("0x29")]&&(0,x.setHighlightHandling)(r,n.writer,((t,e,n)=>n[wx("0x73")](s(e.classes),t)),((t,e,n)=>n[wx("0x33")](s(e.classes),t)))}),{priority:wx("0x5b")}),o[wx("0x3f")][wx("0x2")]((t=>{if(wx("0x15")!=t[wx("0x30")]&&wx("0x7e")!=t[wx("0x30")])return;const e=t[wx("0xe")]();if(null!=e&&e.is(wx("0x4c"),wx("0x4"))){if("insertion"==t[wx("0x30")]){const e=t[wx("0x53")]()[wx("0x59")]((t=>t.is(wx("0x5e"))))[wx("0x16")]((t=>t.data));if(e[wx("0x24")])return{type:wx("0x15"),content:Yo(n,wx("0x82"),Yo(n,wx("0x1f"),'"'+e[wx("0x61")](" ")+'"'))}}if(wx("0x7e")==t[wx("0x30")]){const e=t.getItems()[wx("0x59")]((t=>t.is("$textProxy")))[wx("0x16")]((t=>t.data));if(e.length)return{type:wx("0x7e"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x1f"),'"'+e[wx("0x61")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if(wx("0x4b")==t[wx("0x4a")]){const e=t[wx("0x53")]().filter((t=>t.is(wx("0x5e")))).map((t=>t[wx("0x46")])),o=this[wx("0x75")](t),r=o[wx("0x6e")]-o[wx("0x6b")]+1;if(wx("0x15")==t[wx("0x30")])return e[wx("0x24")]?{type:wx("0x15"),content:Yo(n,wx("0x82"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+e[wx("0x61")](" ")+'"']))}:{type:wx("0x15"),content:Yo(n,"*Insert:* %0",Yo(n,wx("0x3d"),r))};if(wx("0x7e")==t[wx("0x30")])return e.length?{type:wx("0x7e"),content:Yo(n,wx("0x3c"),Yo(n,wx("0x9"),[r,'"'+e[wx("0x61")](" ")+'"']))}:{type:"deletion",content:Yo(n,wx("0x3c"),Yo(n,wx("0x3d"),r))}}if(wx("0x87")==t[wx("0x4a")]){const e=t[wx("0x53")]().filter((t=>t.is(wx("0x5e"))))[wx("0x16")]((t=>t[wx("0x46")])),o=this._getSuggestionCoords(t),r=o.maxColumn-o.minColumn+1;if(wx("0x15")==t[wx("0x30")])return e[wx("0x24")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,wx("0x68"),[r,'"'+e[wx("0x61")](" ")+'"']))}:{type:wx("0x15"),content:Yo(n,wx("0x82"),Yo(n,wx("0x5c"),r))};if("deletion"==t[wx("0x30")])return e[wx("0x24")]?{type:wx("0x7e"),content:Yo(n,wx("0x3c"),Yo(n,wx("0x68"),[r,'"'+e[wx("0x61")](" ")+'"']))}:{type:wx("0x7e"),content:Yo(n,wx("0x3c"),Yo(n,wx("0x5c"),r))}}})),o._suggestionFactory[wx("0x12")](wx("0x15"),"tableRow",wx("0x3a"),s),o[wx("0x6a")].registerCustomCallback("deletion",wx("0x4b"),wx("0x54"),s),o[wx("0x6a")][wx("0x12")]("insertion",wx("0x87"),wx("0x3a"),a),o[wx("0x6a")].registerCustomCallback(wx("0x7e"),wx("0x87"),wx("0x54"),a),o[wx("0x6a")].registerCustomCallback(wx("0x15"),wx("0x87"),wx("0x61"),c),o[wx("0x6a")][wx("0x12")](wx("0x7e"),wx("0x87"),wx("0x61"),c),o[wx("0x6a")][wx("0x12")](wx("0x15"),wx("0x4b"),"join",l),o[wx("0x6a")][wx("0x12")]("deletion",wx("0x4b"),wx("0x61"),l)}[wx("0x35")](){const t=this[wx("0x65")],e=t.model[wx("0x49")][wx("0x0")];return(n,o)=>{t[wx("0x2b")][wx("0x74")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][wx("0x32")][wx("0x21")];x&&x[0]&&!1===x[0][wx("0x79")]&&(a=n[0][wx("0x1a")][wx("0x40")]);const c=r[wx("0x80")](a);if(wx("0x83")==c[wx("0x45")][wx("0x69")])return;const l=Array[wx("0x28")](e.getRanges())[wx("0x16")]((t=>i.LiveRange.fromRange(t)));r[wx("0x39")](c),t[wx("0x43")][wx("0x8a")](s)[wx("0x25")](),x[wx("0x48")]({forceDefaultExecution:!0}),t.execute(s,...x);const d=l[wx("0x59")]((t=>wx("0x83")!=t[wx("0x45")][wx("0x69")]));d[wx("0x24")]>0&&r[wx("0x39")](d);for(const t of l)t[wx("0x2d")]()}))}}[wx("0x8")](t){const e=this[wx("0x65")][wx("0x4f")][wx("0x8a")]("TableUtils");let n=Number[wx("0x62")],o=Number.MIN_SAFE_INTEGER,r=Number[wx("0x62")],s=Number[wx("0x17")];for(const i of t){if(wx("0x83")==i.root[wx("0x69")])continue;const{row:t,column:x}=e[wx("0x50")](i),a=i[wx("0x5f")](wx("0x66"))?i[wx("0x13")](wx("0x66"))-1:0,c=i[wx("0x5f")]("colspan")?i[wx("0x13")](wx("0x86"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[wx("0x81")](){const t=this[wx("0x65")],e=t[wx("0x4f")].get(wx("0x7a")),n=t[wx("0x4f")][wx("0x8a")](wx("0x2c"));t[wx("0x2b")].document.on(wx("0x78"),(()=>{const n=Array.from(t.model[wx("0x49")][wx("0x1c")][wx("0xc")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e[wx("0x63")](t);if("suggestion"!=n)continue;if(null!=o.oldRange)continue;const i=e[wx("0x34")](r);this[wx("0x1b")].includes(s)&&this._tableSuggestions[wx("0x5d")](i)}}),{priority:wx("0x7")});const o=(t,e)=>{let o=!1;const r=e[wx("0x3e")](t),s=t.findAncestor(wx("0x4")),i=n[wx("0x50")](t);for(const e of this[wx("0x60")]){const n=e[wx("0x4a")],x=n.startsWith(wx("0x2f")),a=n[wx("0x27")](x?10:5),c=a[wx("0x41")](),l=c.substr(0,3)+wx("0x1d"),d=wx("0x4e")+a,u=wx("0x3b")+a;if(!e[wx("0xd")])continue;if(s!=e[wx("0x2e")]().start[wx("0x88")](wx("0x4")))continue;if(e[wx("0x70")](r))continue;const g=t.hasAttribute(l)?t[wx("0x13")](l)-1:0,m=this[wx("0x75")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x7b")](r),o=!0)}return o};t[wx("0x2b")][wx("0x49")][wx("0x11")]((e=>{let n=!1;for(const r of t[wx("0x2b")].document.differ[wx("0x84")]())if(wx("0x7c")==r.type)if(wx("0x4b")==r[wx("0x29")])for(const t of r[wx("0x20")][wx("0x40")][wx("0x58")]())n=n||o(t,e);else wx("0x38")==r[wx("0x29")]&&(n=n||o(r[wx("0x20")][wx("0x40")],e));return n}))}[wx("0x75")](t){return this._getCoordsForCells(t.getRanges().map((t=>t[wx("0x1a")][wx("0x40")])))}}function Ox(t){return Array.from(new Set(t)[wx("0x3")]())}const Fx=["refresh","length","author","TrackChangesEditing","requires","_areSelectedCellsMergable","_tablePostFixingSubtypes","TableUtils","find","*Split cell:* vertically","markBlockFormat","horizontally","fromRange","deletion","plugins","markMultiRangeBlockFormat","_descriptionFactory","document","registerDescriptionCallback","selection","mergeTableCells","editor","createRangeOn","getCellLocation","getAncestors","map","splitTableCellHorizontally","splitTableCellVertically","accept","get","add","mergeTableCellLeft","*Split cell:* horizontally","_suggestionFactory","return","commandName","rootName","low","findAncestor","getRanges","enableCommand","afterInit","table","isInContent","_areMergableCells","change","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","getSuggestions","isEnabled","_isForcedDefaultExecutionBlock","mergeTableCellRight","$graveyard","highest","trackChanges","createTableWalker","commands","root","type","model","containsRange","from","cell","push","forceDefaultExecution","execute","element","formatBlock","value","format","registerCustomCallback","mergeTableCellUp","setSelection","mergeTableCellDown","stop","insertion","has"];var Px,Dx;Px=Fx,Dx=168,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("0x43")](){return[Mx]}[Bx("0x1b")](){const t=this.editor,e=t[Bx("0x2d")][Bx("0x3")][Bx("0x5")],n=t.locale;if(!t.plugins[Bx("0x3e")]("TableEditing"))return;const o=t.plugins[Bx("0xf")](Bx("0x42")),r=t[Bx("0x0")][Bx("0xf")](Bx("0x46")),s=t[Bx("0x0")].get(Mx);s[Bx("0x45")][Bx("0x31")](Bx("0x6")),o[Bx("0x1a")](Bx("0x6"),(()=>{const e=r[Bx("0x20")](t[Bx("0x2d")].document[Bx("0x5")]);t[Bx("0x2d")][Bx("0x1f")]((()=>{o[Bx("0x1")](e,{commandName:Bx("0x6"),commandParams:[]},[],Bx("0x6"))}))})),t[Bx("0x2a")][Bx("0xf")](Bx("0x6")).on("execute",((e,n)=>{t[Bx("0x2a")].get(Bx("0x28")).value&&(n[Bx("0x40")]>0&&n[n[Bx("0x40")]-1]&&n[n[Bx("0x40")]-1][Bx("0x32")]||o[Bx("0x24")]||this[Bx("0x44")]()||e.stop())}),{priority:Bx("0x27")});for(const e of[Bx("0x39"),Bx("0x25"),"mergeTableCellDown",Bx("0x11")]){const n=t[Bx("0x2a")][Bx("0xf")](e);o[Bx("0x1a")](e,(()=>{const e=t[Bx("0x2d")][Bx("0x3")].selection.getFirstPosition()[Bx("0xa")]()[Bx("0x47")]((t=>t.is(Bx("0x34"),"tableCell"))),r=n.value;t[Bx("0x2d")].change((()=>{o[Bx("0x1")]([e,r],{commandName:Bx("0x6"),commandParams:[]},[],Bx("0x6"))}))}))}for(const e of[Bx("0xd"),Bx("0xc")]){const n=t.commands[Bx("0xf")](e);o[Bx("0x1a")](e,(()=>{const s=r[Bx("0x20")](t[Bx("0x2d")][Bx("0x3")].selection)[0],i=s[Bx("0x18")](Bx("0x1c")),{column:x,row:a}=r[Bx("0x9")](s);let c=[];if(Bx("0x4a")==n.direction){const t=r[Bx("0x29")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[Bx("0x30")]))}else{const t=r[Bx("0x29")](i,{column:x,includeAllSlots:!0});c=Array.from(t).map((t=>t.cell))}t.model.change((t=>{o[Bx("0x49")](t[Bx("0x8")](s),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x2")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x6")==e[Bx("0x15")]?{type:"format",content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x2")][Bx("0x4")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x15")]?{type:"format",content:Yo(n,Bx("0x48"))}:Bx("0xc")==e[Bx("0x15")]?{type:Bx("0x37"),content:Yo(n,Bx("0x12"))}:void 0}));const x=s[Bx("0x21")]();for(const t of[Bx("0x39"),Bx("0x25"),Bx("0x3b"),Bx("0x11")])o[Bx("0x13")][Bx("0x38")](Bx("0x35"),t,Bx("0xe"),x);for(const t of["splitTableCellVertically",Bx("0xc")])o[Bx("0x13")][Bx("0x38")](Bx("0x35"),t,Bx("0xe"),x);o[Bx("0x13")][Bx("0x38")](Bx("0x35"),"mergeTableCells",Bx("0xe"),(n=>{t.model[Bx("0x1f")]((o=>{const r=Array[Bx("0x2f")](e[Bx("0x19")]())[Bx("0xb")]((t=>i.LiveRange[Bx("0x4b")](t)));o.setSelection(n),t[Bx("0x2a")][Bx("0xf")](Bx("0x6"))[Bx("0x3f")](),t[Bx("0x33")](Bx("0x6"),{forceDefaultExecution:!0});const s=r.filter((t=>Bx("0x26")!=t[Bx("0x2b")][Bx("0x16")]));s[Bx("0x40")]>0&&o[Bx("0x3a")](s);for(const t of r)t.detach()}))}));for(const e of["mergeTableCellUp",Bx("0x3b"),Bx("0x11"),Bx("0x25")]){const n=t[Bx("0x2a")][Bx("0xf")](e);n.on("set:isEnabled",((e,o,r)=>{if(r){const o=t[Bx("0x2d")].document.selection.getFirstPosition()[Bx("0xa")]()[Bx("0x47")]((t=>t.is(Bx("0x34"),"tableCell")));this[Bx("0x1e")](n[Bx("0x36")],o)||(e[Bx("0x14")]=!1,e[Bx("0x3c")]())}}),{priority:Bx("0x17")})}}[Bx("0x44")](){const t=this[Bx("0x7")].commands[Bx("0xf")]("mergeTableCells"),e=this[Bx("0x7")][Bx("0x0")][Bx("0xf")]("TableUtils");if(!t[Bx("0x23")])return!1;const n=e[Bx("0x20")](this[Bx("0x7")][Bx("0x2d")][Bx("0x3")][Bx("0x5")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x1e")](t,e))return!1;return!0}[Bx("0x1e")](t,e){const n=this[Bx("0x7")].plugins.get(Bx("0x42")),o=this[Bx("0x7")][Bx("0x2d")][Bx("0x8")](t),r=this[Bx("0x7")].model[Bx("0x8")](e),s=new Set,i=new Set;for(const t of n[Bx("0x22")]())if((Bx("0x3d")==t[Bx("0x2c")]||Bx("0x4c")==t.type||"mergeTableCells"==t.subType)&&t[Bx("0x1d")])for(const e of t[Bx("0x19")]())e[Bx("0x2e")](o,!0)&&s[Bx("0x10")](t[Bx("0x2c")]+":"+t[Bx("0x41")].id),e[Bx("0x2e")](r,!0)&&i[Bx("0x10")](t[Bx("0x2c")]+":"+t.author.id);if(s.size!=i.size)return!1;for(const t of s)if(!i[Bx("0x3e")](t))return!1;return!0}}const Ux=["model","commandName","addMarker:suggestion","from","parent","ck-suggestion-marker--active","markBlockFormat","registerDescriptionCallback","data","options","childCount","consumable","writer","ck-suggestion-marker-","nodeBefore","editor","setTableColumnHeader","name","selection","setTableRowHeader","getCellLocation","data-suggestion","_descriptionFactory","createPositionBefore","afterInit","getRowIndexes","headingRows","editing","createTableWalker","table","activeMarkers","createRange","getSuggestion","plugins","headingColumns","TableUtils","*Format:* %0","highest","bindElementToMarker","last","formatBlock","index","forceValue","FORMAT_REGULAR_ROW","consume","addClass","markerRange","registerCustomCallback","downcastDispatcher","_splitMarkerName","isBefore","cell","commands","createPositionAfter","showSuggestionHighlights","commandParams","removeClass","getSelectionAffectedTableCells","get","TableEditing","has","end","mapper","locale","getColumnIndexes","nodeAfter","stop","removeAttribute","_suggestionFactory","document","markerName","first","change","value","getChild","unbindElementFromMarkerName"];var Gx,Hx;Gx=Ux,Hx=235,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get requires(){return[Mx]}[zx("0x11")](){const t=this[zx("0x8")];if(!t[zx("0x1a")][zx("0x35")](zx("0x34")))return;const e=t[zx("0x38")],n=t[zx("0x1a")][zx("0x33")]("TrackChangesEditing"),o=t[zx("0x1a")][zx("0x33")](zx("0x1c")),r=t.plugins[zx("0x33")](Mx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[zx("0x2a")](s[zx("0x3f")]),c=n.getSuggestion(a);if(!c[zx("0x1")]||zx("0x9")!=c.data[zx("0x46")])return;if(s.item)return void r[zx("0x3b")]();if(!i[zx("0x4")][zx("0x25")](s[zx("0x27")],r[zx("0xa")]))return;const l=s[zx("0x27")].start[zx("0x3a")],d=s.markerRange[zx("0x36")][zx("0x7")],u=l[zx("0x49")].parent,{column:g}=o[zx("0xd")](l),{column:m}=o[zx("0xd")](d);for(let r=g;r<=m;r++){const c=o[zx("0x15")](u,{column:r,includeAllSlots:!1});for(const o of c){const r=o[zx("0x2c")],c=i[zx("0x37")].toViewElement(r);i[zx("0x5")][zx("0x26")](zx("0x6")+x,c),e&&i[zx("0x5")].setAttribute(zx("0xe"),a,c),i[zx("0x37")][zx("0x1f")](c,s[zx("0x3f")]),t&&(n[zx("0x17")].includes(s[zx("0x3f")])?i[zx("0x5")].addClass("ck-suggestion-marker--active",c):i[zx("0x5")][zx("0x31")](zx("0x4a"),c))}}}}n.enableCommand(zx("0xc"),((e,r)=>{const s=o[zx("0x32")](t[zx("0x45")].document[zx("0xb")]),i=o[zx("0x12")](s),x=s[0].findAncestor(zx("0x16")),a=x.getAttribute(zx("0x13"))||0,c=r&&null!==r.forceValue?r[zx("0x23")]:!t.commands.get(zx("0xc")).value,l=c?i[zx("0x20")]:i[zx("0x40")],d=x.getChild(l);let u;if(c){const e=x[zx("0x43")](a);if(d[zx("0x22")]<e[zx("0x22")])return;u=t[zx("0x45")][zx("0x18")](t[zx("0x45")][zx("0x10")](e[zx("0x43")](0)),t[zx("0x45")].createPositionAfter(d.getChild(d[zx("0x3")]-1)))}else{const e=x[zx("0x43")](a-1);if(!e)return;u=t[zx("0x45")][zx("0x18")](t[zx("0x45")][zx("0x10")](d.getChild(0)),t[zx("0x45")][zx("0x2e")](e[zx("0x43")](e[zx("0x3")]-1)))}t.model[zx("0x41")]((()=>{n[zx("0x4b")](u,{commandName:zx("0xc"),commandParams:[{forceValue:c}]},[],zx("0xc"))}))})),n.enableCommand(zx("0x9"),((e,o)=>{const r=t[zx("0x1a")][zx("0x33")](zx("0x1c")),s=r[zx("0x32")](t[zx("0x45")][zx("0x3e")][zx("0xb")]),i=r[zx("0x39")](s),x=s[0].findAncestor(zx("0x16")),a=x.getAttribute(zx("0x1b"))||0,c=o&&null!==o.forceValue?o[zx("0x23")]:!t[zx("0x2d")][zx("0x33")](zx("0x9"))[zx("0x42")];let l;const d=x[zx("0x43")](0),u=c?i[zx("0x20")]:i[zx("0x40")],g=r[zx("0x15")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x48")](g)[0][zx("0x2c")];if(c){const e=d.getChild(a);if(m[zx("0x2b")](e))return;l=t[zx("0x45")][zx("0x18")](t[zx("0x45")][zx("0x10")](e),t[zx("0x45")][zx("0x2e")](m))}else{const e=d[zx("0x43")](a-1);if(!e)return;l=t[zx("0x45")][zx("0x18")](t[zx("0x45")].createPositionBefore(m),t[zx("0x45")][zx("0x2e")](e))}t[zx("0x45")].change((()=>{n.markBlockFormat(l,{commandName:zx("0x9"),commandParams:[{forceValue:c}]},[],zx("0x9"))}))})),t[zx("0x14")][zx("0x29")].on(zx("0x47"),s(),{priority:zx("0x1e")}),t.data[zx("0x29")].on("addMarker:suggestion",((t,e,n)=>{n[zx("0x2")][zx("0x2f")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x1e")}),t[zx("0x14")][zx("0x29")].on("removeMarker:suggestion",((t,e,o)=>{const{type:r,id:s}=n[zx("0x2a")](e[zx("0x3f")]),i=n[zx("0x19")](s);if(!i[zx("0x1")]||"setTableColumnHeader"!=i[zx("0x1")].commandName)return;const x=o[zx("0x37")].markerNameToElements(e[zx("0x3f")]);if(x)for(const t of x)o[zx("0x5")][zx("0x31")](zx("0x6")+r,t),o[zx("0x5")][zx("0x31")](zx("0x4a"),t),o.writer[zx("0x3c")](zx("0xe"),t),o[zx("0x37")][zx("0x44")](t,e.markerName)}),{priority:zx("0x1e")}),n[zx("0xf")][zx("0x0")]((t=>{const{data:n}=t;if(n){if(zx("0xc")==n[zx("0x46")]){const t=n[zx("0x30")][0][zx("0x23")];return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x24")))}if(zx("0x9")==n[zx("0x46")]){const t=n[zx("0x30")][0][zx("0x23")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:"format",content:Yo(e,zx("0x1d"),t)}}}));const i=r._acceptFormatSuggestionCallbackFactory();n[zx("0x3d")][zx("0x28")]("formatBlock",zx("0xc"),"accept",i),n._suggestionFactory[zx("0x28")](zx("0x21"),zx("0x9"),"accept",i)}}const Vx=["push","startsWith","setAttribute","markMultiRangeBlockFormat","editingDowncast","requires","insertColumns","get","suggestionUnloaded","_descriptionFactory","ck-suggestion-marker-insertion","getSuggestions","previous","getSuggestion","subType","_splitMarkerName","getChangedMarkers","createElement","some","createTableWalker","tableCell","createRange","plugins","stop","markerAttributes","previousSibling","attributes","remove","position","cell","documentSelection","markerName","getAttributes","tableCellBackgroundColor","ck-suggestion-marker","redo","tablePaste","removeRows","map","tableCellSuggestion","wrap","tablePasteRow","columns","fill","change","isInContent","isEmpty","_isForcedDefaultExecutionBlock","insertRows","afterInit","move","registerPostFixer","find","getRowIndexes","type","rowInsertionRanges","TableUtils","tableCellBorderWidth","hasSuggestion","deletion","$graveyard","conversion","for","tablePasteCell","last","end","value","high","getRange","editing","element","length","containsRange","paragraph","set","fromEntries","nodeAfter","getChildren","return","markMultiRangeInsertion","includes","register","setAttributes","suggestion-td","insert","document","TableClipboard","every","author","registerCustomCallback","suggestionLoaded","insertContent","Users","getAllAdjacentSuggestions","row","keys","unwrap","content","add","batch","elementToElement","_suggestionFactory","tableCellHorizontalAlignment","entries","locale","getItems","rowInsertionIndexes","removeColumns","reduce","columnInsertionIndexes","view","schema","from","nextSibling","createPositionBefore","forceDefaultExecution","join","removeMarker","model","low","endRow","markMultiRangeDeletion","editor","getMarkers","name","accept","column","endColumn","markerToHighlight","differ","ck-suggestion-marker--active","filter","columnInsertionRanges","getColumns","findAncestor","suggestion","isEqual","formatBlock","createRangeOn","tablePasteColumn","getContainedElement","discard","has","deletionRanges","markers","rootName","commands","getChild","dataDowncast","_createdBatches","cells","insertion","tablePasteChainId","getColumnIndexes","newRange","_getCoordsForCells","getTableIfOnlyTableInContent","next","getRanges","_replaceTableSlotCell","start","*Replace table cells*","updateMarker","removeMarkers","activeMarkers","table","first","listenTo","createRangeIn"];var Kx,qx;Kx=Vx,qx=124,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x66"),"tableCellBorderColor","tableCellBorderStyle",Xx("0x93"),"tableCellVerticalAlignment",Xx("0x4e"),"tableCellPadding"],Qx=Object[Xx("0x78")]($x[Xx("0x53")]((t=>[t,null])));class Jx extends t.Plugin{static get[Xx("0x32")](){return[Mx]}[Xx("0x5e")](){const t=this[Xx("0xa7")];if(!t[Xx("0x43")].has("TableClipboard"))return;const n=t[Xx("0x43")][Xx("0x34")]("TrackChangesEditing"),o=t.plugins[Xx("0x34")](Xx("0x65")),r=t[Xx("0x43")].get(Mx),s=t[Xx("0x43")][Xx("0x34")](Xx("0x83"));r._tablePostFixingSubtypes[Xx("0x2d")]("tablePasteRow",Xx("0xf")),t.model[Xx("0x9c")][Xx("0x7e")](Xx("0x54"),{allowIn:Xx("0x41"),allowContentOf:Xx("0x41"),isLimit:!0}),t[Xx("0x6a")][Xx("0x91")]({model:"tableCellSuggestion",view:Xx("0x80")});let i=null;t[Xx("0xa3")].on(Xx("0x88"),((r,x)=>{const[a,c]=x,l=x[x[Xx("0x74")]-1];l&&l[Xx("0xa0")]||n[Xx("0x5c")]||this[Xx("0xa7")][Xx("0x16")][Xx("0x34")]("trackChanges")[Xx("0x6f")]&&function(t,e,n,o,r){if(e&&!e.is(Xx("0x4b")))return!1;const s=r[Xx("0x20")](t,n);if(!s||!Yx(s,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n.document.selection);if(!i.length)return!1;const x=i[0][Xx("0xa")](Xx("0x29")),a=o[Xx("0x62")](i),c=o[Xx("0x1d")](i),l={startRow:a[Xx("0x2a")],endRow:a.last,startColumn:c[Xx("0x2a")],endColumn:c[Xx("0x6d")]};return 1==i.length&&(l[Xx("0xa5")]+=o.getRows(s)-1,l[Xx("0x3")]+=o[Xx("0x9")](s)-1),Yx(x,l,o)}(a,c,t[Xx("0xa3")],o,s)&&(r[Xx("0x44")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0xa3")][Xx("0x59")]((()=>{t[Xx("0xa3")][Xx("0x88")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Xx("0x74")]&&n.markMultiRangeInsertion(r,"tablePasteRow",{tablePasteChainId:o}),s[Xx("0x74")]&&n[Xx("0x7c")](s,Xx("0xf"),{tablePasteChainId:o}),a[Xx("0x74")]&&n[Xx("0x7c")](a,Xx("0x51"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x74")]&&n[Xx("0xa6")](c,Xx("0x51"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x30")](l[Xx("0x53")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x6c"),{tablePasteChainId:o});if(d){const e=d[Xx("0xa8")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Xx("0xa3")][Xx("0xe")](o),i=e[Xx("0x61")]((t=>t[Xx("0x71")]()[Xx("0xc")](s)));i&&n.push([i[Xx("0x0")],r])}n[Xx("0x74")]&&d[Xx("0x2f")]("markerAttributes",Object[Xx("0x78")](n))}i=null})))}),{priority:e.priorities[Xx("0x70")]+10}),t.plugins[Xx("0x34")]("TableClipboard").on(Xx("0x23"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t.stop();const s=n[Xx("0x4a")],x=o,a=Zx(s),c=Zx(x);t[Xx("0x7b")]=s;let l=null,d=null;if(c||a)if(a&&!c){r[Xx("0x48")](s.getChild(0));for(const t of Array[Xx("0x9d")](x[Xx("0x7a")]()))r[Xx("0x81")](t,s,"end");const t=i.rowInsertionIndexes[Xx("0x7d")](n[Xx("0x8b")]),e=i[Xx("0x9a")].includes(n[Xx("0x2")]);t||e||(l=r.createRangeIn(s))}else c&&!a&&(d=r.createRangeIn(s));else{const t=r[Xx("0x3e")](Xx("0x54")),e=r[Xx("0x3e")](Xx("0x54"));r[Xx("0x55")](r[Xx("0x2c")](s),e),r.insert(t,s,0);for(const e of Array.from(x.getChildren()))r[Xx("0x81")](e,t,Xx("0x6e"));l=r[Xx("0xe")](t),d=r.createRangeOn(e)}const u=Array.from(x[Xx("0x4d")]())[Xx("0x7")]((([t])=>$x[Xx("0x7d")](t)));i[Xx("0x1a")].push({element:s,attributes:u[Xx("0x74")]?Object[Xx("0x78")](u):null}),l&&i.insertionRanges[Xx("0x2d")](l),d&&i[Xx("0x13")][Xx("0x2d")](d)}),{priority:"high"}),o.on(Xx("0x33"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x57")]||1;i[Xx("0x9a")]=new Array(a)[Xx("0x58")](x)[Xx("0x53")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))i[Xx("0x8")][Xx("0x2d")](t[Xx("0xa3")].createRangeOn(e))}),{priority:Xx("0xa4")}),o.on(Xx("0x5d"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s.rows||1;i[Xx("0x97")]=new Array(a)[Xx("0x58")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x40")](r,{startRow:x,endRow:x+a-1}))i[Xx("0x64")].push(t.model[Xx("0xe")](e))}),{priority:Xx("0xa4")}),n[Xx("0x36")].registerDescriptionCallback((e=>{if(e[Xx("0x3b")]&&e[Xx("0x3b")][Xx("0x2e")]("tablePaste"))return e.previous?{}:{type:"insertion",content:Yo(t[Xx("0x95")],Xx("0x25"))}}));const x=()=>{};for(const t of[Xx("0x51"),"tablePasteColumn",Xx("0x56"),"tablePasteCell"])n[Xx("0x92")][Xx("0x86")]("insertion",t,Xx("0xa1"),x),n[Xx("0x92")].registerCustomCallback("deletion",t,Xx("0xa1"),x);n[Xx("0x92")][Xx("0x86")](Xx("0xd"),Xx("0x6c"),"discard",x),n[Xx("0x92")][Xx("0x86")](Xx("0xd"),Xx("0x6c"),Xx("0x1"),((e,n,o)=>{const r=e[Xx("0x53")]((t=>t[Xx("0x10")]())).filter((t=>t)),s=new Map(r.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x1a")])e&&s[Xx("0x77")](t,e);else if(o&&o[Xx("0x45")])for(const[e,n]of Object[Xx("0x94")](o[Xx("0x45")])){const o=t.model[Xx("0x14")][Xx("0x34")](e),r=o?o[Xx("0x71")]()[Xx("0x10")]():null;r&&s[Xx("0x77")](r,n)}t.model[Xx("0x59")]((t=>{for(const[e,n]of s)t[Xx("0x7f")]({...Qx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x92")].registerCustomCallback(e,Xx("0x51"),o,((r,s,i)=>{t[Xx("0xa3")].change((t=>{const x=[];for(const t of r){const e=t[Xx("0x24")][Xx("0x79")];e.is(Xx("0x73"),"tableCellSuggestion")&&x[Xx("0x2d")](e)}n[Xx("0x92")].getSuggestionCallback(e,null,o)(r,s,i);for(const e of x)Xx("0x69")!=e.root[Xx("0x15")]&&t[Xx("0x8d")](e)}))}))};a("insertion","accept"),a("insertion","discard"),a("deletion","accept"),a(Xx("0x68"),Xx("0x11")),n[Xx("0x92")][Xx("0x86")](Xx("0x1b"),"tablePasteRow",Xx("0x11"),(t=>{const e=t[Xx("0x53")]((t=>t[Xx("0x10")]())),n=e[0][Xx("0xa")]("table"),{minRow:s,maxRow:i}=r[Xx("0x1f")](e);o[Xx("0x52")](n,{at:s,rows:i-s+1})})),n[Xx("0x92")][Xx("0x86")](Xx("0x1b"),Xx("0xf"),Xx("0x11"),(t=>{const e=t[Xx("0x53")]((t=>t[Xx("0x10")]())),n=e[0][Xx("0xa")](Xx("0x29")),{minColumn:s,maxColumn:i}=r[Xx("0x1f")](e);o[Xx("0x98")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Xx("0x3b")]||!e.subType[Xx("0x2e")]("tablePaste"))return;const o=e[Xx("0x47")][Xx("0x1c")],r=n[Xx("0x38")]()[Xx("0x7")]((t=>t[Xx("0x5a")]&&t[Xx("0x47")]&&t[Xx("0x47")].tablePasteChainId==o));r[Xx("0x74")]&&e.getAllAdjacentSuggestions()[Xx("0x74")]!=r[Xx("0x74")]&&r[Xx("0x99")](((t,e)=>(t[Xx("0x21")]=e,e[Xx("0x39")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x3c")](t[Xx("0x4c")]),r=[Xx("0x4f"),Xx("0x37")],s=n[Xx("0x28")].includes(t[Xx("0x4c")]);return s&&r[Xx("0x2d")](Xx("0x6")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(Xx("0x87"),c,{priority:"high"}),n.on(Xx("0x35"),c,{priority:"high"}),t.model.document.registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x9d")](t[Xx("0xa3")][Xx("0x82")][Xx("0x5")][Xx("0x3d")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[Xx("0x3c")](r);if("suggestion"!=o||Xx("0x68")!=i||s.oldRange)continue;if(!n[Xx("0x67")](x))continue;const a=n[Xx("0x3a")](x)[Xx("0x22")](),c=t[Xx("0x43")][Xx("0x34")](Xx("0x89")).me;for(const t of n[Xx("0x38")]())if(t.isInContent&&t[Xx("0x85")]==c&&"formatBlock"==t.type&&Xx("0x6c")==t.subType&&t[Xx("0x22")]()[Xx("0x84")]((t=>a[Xx("0x3f")]((e=>e[Xx("0x75")](t,!0))))))for(const n of t[Xx("0x8a")]())n[Xx("0x5a")]&&(n.discard(),e=!0)}return e})),t.model[Xx("0x82")][Xx("0x60")]((e=>{const o=t[Xx("0x16")][Xx("0x34")](Xx("0x50"));if(!o||!o[Xx("0x19")][Xx("0x12")](e[Xx("0x90")]))return!1;let r=!1;const s=t[Xx("0x43")].get(Xx("0x89")).me,i=t[Xx("0xa3")][Xx("0x82")][Xx("0x5")].getChanges(),x=Array.from(t[Xx("0xa3")][Xx("0x82")].differ[Xx("0x3d")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Xx("0x3c")](t);return Xx("0xb")==o&&"tablePaste"==r&&i==s.id&&!e.oldRange}));for(const t of i){if(Xx("0x81")!=t[Xx("0x63")]||Xx("0x54")!=t.name||1!=t[Xx("0x74")])continue;const n=e[Xx("0x42")](t.position,t[Xx("0x49")].getShiftedBy(1));if(!x[Xx("0x61")]((({data:t})=>t[Xx("0x1e")][Xx("0xc")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x75")](o[Xx("0x1e")])){e[Xx("0x26")](t,{range:n}),r=!0;break}}return r})),t[Xx("0xa3")][Xx("0x82")][Xx("0x60")]((e=>{let o=!1;const r=t.plugins.get("Users").me,s=n[Xx("0x38")]()[Xx("0x7")]((t=>t[Xx("0x5a")]&&t[Xx("0x85")]==r)),i=new Set,x=new Set;for(const t of s)if(Xx("0x51")==t.subType)for(const e of t[Xx("0xa8")]()){const n=e[Xx("0x71")]()[Xx("0x10")]();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){t[Xx("0xa2")](e[Xx("0x0")]),i.add(n),o=!0;const r=n[Xx("0x9e")],s=n[Xx("0x46")],a=r&&r.is(Xx("0x73"),Xx("0x54")),c=s&&s.is(Xx("0x73"),Xx("0x54"));a&&!i[Xx("0x12")](r)&&x[Xx("0x8f")](r),c&&!i[Xx("0x12")](s)&&x[Xx("0x8f")](s)}else n.is(Xx("0x73"),Xx("0x76"))&&n[Xx("0x5b")]&&(t[Xx("0xa2")](e.name),o=!0)}else if(Xx("0x6c")==t[Xx("0x3b")]){if(!t.attributes||!t[Xx("0x47")].tablePasteChainId)continue;const e=t.attributes.markerAttributes;if(e&&Object[Xx("0x8c")](e).length)continue;const n=t[Xx("0x47")][Xx("0x1c")];let r=!0,i=!0;for(const e of s)if(e[Xx("0x3b")]&&e[Xx("0x3b")][Xx("0x2e")](Xx("0x51"))){if(!e[Xx("0x47")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){r=!1;break}}i&&r&&(t[Xx("0x27")](),o=!0)}for(const t of i)e[Xx("0x48")](t);for(const t of x)e.unwrap(t);return o})),t[Xx("0x6a")][Xx("0x6b")](Xx("0x31"))[Xx("0x4")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Xx("0x70")}),t[Xx("0x6a")].for(Xx("0x18"))[Xx("0x4")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:Xx("0x70")});const d=t[Xx("0x72")][Xx("0x9b")];this[Xx("0x2b")](d[Xx("0x82")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Xx("0x2c")](e[Xx("0x8e")])[Xx("0x96")]())t.is("element","suggestion-td")&&n[Xx("0x2d")](t);d.change((t=>{for(const e of n)t[Xx("0x5f")](t[Xx("0x2c")](e),t[Xx("0x9f")](e)),t[Xx("0x48")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x17")](0);return e.is(Xx("0x73"),"paragraph")&&e[Xx("0x5b")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Xx("0x40")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const ta=["getColumnGroupElement","resizeTableWidth","accept","afterInit","selection","get","registerCustomCallback","getSuggestionCallback","model","discard","TrackChangesEditing","getAttribute","getSuggestions","markBlockFormat","change","bind","editor","tableWidth","columnWidths","registerDescriptionCallback","author","handleResizeTableWidthCommand","enableCommand","Users","TableColumnResizeEditing","locale","formatGroupId","resizeTable","resizeColumnWidths","has","_suggestionFactory","document","format","data","formatBlock","plugins","handleSuggestionDescription","commandParams","_descriptionFactory"];var ea,na;ea=ta,na=281,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class ra extends t.Plugin{[oa("0x22")](){if(!this.editor[oa("0x1b")][oa("0x15")](oa("0x10")))return;const t=this.editor[oa("0x1b")].get("TrackChangesEditing");t[oa("0xe")](oa("0x20"),this[oa("0xd")][oa("0x7")](this)),t[oa("0xe")](oa("0x14"),this[oa("0xd")][oa("0x7")](this)),t[oa("0x16")][oa("0x25")]("formatBlock","resizeTable","accept",t[oa("0x16")][oa("0x26")](oa("0x1a"),null,oa("0x1"))),t[oa("0x16")].registerCustomCallback(oa("0x1a"),oa("0x13"),"discard",t[oa("0x16")][oa("0x26")](oa("0x1a"),null,oa("0x21"))),t[oa("0x1e")][oa("0xb")](this[oa("0x1c")][oa("0x7")](this))}[oa("0xd")](t,e){const n=this.editor[oa("0x1b")][oa("0x24")](oa("0x2")),o=this[oa("0x8")].plugins[oa("0x24")](oa("0x10")),r=e.table||this[oa("0x8")][oa("0x0")][oa("0x17")][oa("0x23")].getSelectedElement();this[oa("0x8")].model[oa("0x6")]((()=>{const s=o[oa("0x1f")](r);let i=s?o.getTableColumnsWidths(s):null,x=r[oa("0x3")](oa("0x9"))||null;const a=e[oa("0x9")]||x,c=e[oa("0xa")]||i,l=this[oa("0x8")][oa("0x1b")][oa("0x24")](oa("0xf")).me;for(const t of n[oa("0x4")]()){const e=t.getContainedElement();if("resizeTable"===t.subType&&e===r){t[oa("0xc")]!==l&&t[oa("0x1")]();const e=t[oa("0x19")][oa("0x1d")];x=e[0][oa("0x9")],i=e[0][oa("0xa")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[oa("0x5")](r,{commandName:oa("0x20"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x13")},[],"resizeTable")}))}[oa("0x1c")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x12")]){const t="*Format:* resize table";return{type:oa("0x18"),content:Yo(this[oa("0x8")][oa("0x11")],t)}}}}const sa=["get","TrackChangesEditing","has","afterInit","plugins","insertTemplate","enableCommand","editor"];var ia,xa;ia=sa,xa=471,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return sa[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this[aa("0x0")];t[aa("0x5")][aa("0x3")]("Template")&&t.plugins[aa("0x1")](aa("0x2"))[aa("0x7")](aa("0x6"))}}const la=["_descriptionFactory","ELEMENT_TABLE_OF_CONTENTS","get","plugins","afterInit","TrackChangesEditing","editor","commands","enableCommand","insertTableOfContents"];var da,ua;da=la,ua=358,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[ga("0x8")];if(!t[ga("0x9")][ga("0x4")](ga("0x1")))return;t[ga("0x5")][ga("0x4")](ga("0x7"))[ga("0x0")](ga("0x1"));const e=t.plugins[ga("0x4")](ga("0x7")),n=t.locale;e[ga("0x2")].registerElementLabel("tableOfContents",(t=>Yo(n,ga("0x3"),t)))}}const fa=["ELEMENT_TITLE","forward","isCollapsed","afterInit","getChangedMarkers","start","editor","element","newRange","nodeBefore","end","updateMarker","model","get","suggestion","differ","title-content","registerElementLabel","plugins","registerPostFixer","has","document","locale","schema"];var ha,pa;ha=fa,pa=139,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("0xb")];if(!t[ba("0x17")][ba("0x1")]("Title"))return;const e=t[ba("0x17")][ba("0x12")]("TrackChangesEditing");e._descriptionFactory[ba("0x16")](ba("0x15"),(()=>Yo(t[ba("0x3")],ba("0x5")))),t[ba("0x11")][ba("0x2")][ba("0x0")]((n=>{let o=!1;const r=Array.from(t.model[ba("0x2")][ba("0x14")][ba("0x9")]());for(const{name:s,data:i}of r){const{group:r}=e._splitMarkerName(s);if(ba("0x13")!==r||!i[ba("0xd")])continue;const x=i.newRange,a=x.end[ba("0xe")];if(!a||!a.is(ba("0xc"),ba("0x15")))continue;if(!x[ba("0xa")].isTouching(x[ba("0xf")]))continue;const c=t[ba("0x11")][ba("0x4")].getNearestSelectionRange(x[ba("0xf")],ba("0x6"));if(c&&c[ba("0x7")]){const t=n.createRange(x[ba("0xa")],c.start);t.isEqual(x)||(n[ba("0x10")](s,{range:t}),o=!0)}o||(n.removeMarker(s),o=!0)}return o}))}}const _a=["enableCommand","has","get","TrackChangesEditing","undo","plugins"];var Ta,Ca;Ta=_a,Ca=421,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins[ya("0x1")](ya("0x2"));t[ya("0x4")][ya("0x0")]("UndoEditing")&&(e.enableCommand(ya("0x3")),e[ya("0x5")]("redo"))}}const Aa=["toggleTableCaption","TableCaptionEditing","has","editor","plugins","requires","afterInit","TrackChangesEditing"];var va,Ra;va=Aa,Ra=356,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get[Ia("0x1")](){return[Mx]}[Ia("0x2")](){const t=this[Ia("0x7")];t[Ia("0x0")][Ia("0x6")](Ia("0x5"))&&t[Ia("0x0")].get(Ia("0x3")).enableCommand(Ia("0x4"))}}const La=["handleListStyleCommand","getSelectedBlocks","format","enableCommand","editor","_getTranslationKeyForListStyle","DocumentListPropertiesUtils","bind","config","_descriptionFactory","length","handleDescriptions","TrackChangesEditing","styles","*Format:* set order to regular","_LIST_","listStyle","from","plugins","_getSuggestionBlocksForListStyle","change","getAttribute","_getSuggestionBlocks","DocumentListPropertiesEditing","getListTypeFromListStyleType","has","commandParams","selection","locale","get","expandListBlocksToCompleteList","push","handleListReversedCommand","replace","*Format:* set order to reversed","document","DocumentListUtils","listReversed","model","listType","toUpperCase","numbered","listStart","isListItemBlock","markMultiRangeBlockFormat","type","filter","startIndex","reversed"];var Na,wa;Na=La,wa=472,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[Ma("0x16")][Ma("0x24")][Ma("0x2b")](Ma("0x29")))return;const t=this.editor[Ma("0x1a")][Ma("0x2f")]("list.properties"),e=this.editor[Ma("0x24")].get("TrackChangesEditing");t[Ma("0x1f")]&&e[Ma("0x15")](Ma("0x22"),this[Ma("0x12")][Ma("0x19")](this)),t[Ma("0x11")]&&e[Ma("0x15")](Ma("0x6"),this.handleListReversedCommand[Ma("0x19")](this)),t[Ma("0x10")]&&e[Ma("0x15")](Ma("0xb"),this.handleListStartCommand[Ma("0x19")](this)),e[Ma("0x1b")].registerDescriptionCallback(this[Ma("0x1d")][Ma("0x19")](this))}[Ma("0x12")](t,e={}){const n=this[Ma("0x16")][Ma("0x24")][Ma("0x2f")](Ma("0x1e")),o=this[Ma("0x25")]();this[Ma("0x16")].model[Ma("0x26")]((()=>{n[Ma("0xd")](o,{commandName:Ma("0x22"),commandParams:[{type:e[Ma("0xe")]}],formatGroupId:Ma("0x22")})}))}[Ma("0x1")](t,e={}){const n=this[Ma("0x16")].plugins[Ma("0x2f")](Ma("0x1e")),o=this.editor[Ma("0x24")][Ma("0x2f")](Ma("0x5")),r=this._getSuggestionBlocks((t=>o[Ma("0xc")](t)&&Ma("0xa")===t[Ma("0x27")](Ma("0x8"))));null!==r&&this[Ma("0x16")].model.change((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ma("0x6"),commandParams:[{reversed:e[Ma("0x11")]}],formatGroupId:Ma("0x6")})}))}handleListStartCommand(t,e={}){const n=this.editor.plugins.get(Ma("0x1e")),o=this.editor[Ma("0x24")][Ma("0x2f")](Ma("0x5")),r=this[Ma("0x28")]((t=>o[Ma("0xc")](t)&&Ma("0xa")===t.getAttribute("listType")));null!==r&&this[Ma("0x16")][Ma("0x7")][Ma("0x26")]((()=>{n[Ma("0xd")](r,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:Ma("0xb")})}))}[Ma("0x1d")](t){const e=this[Ma("0x16")][Ma("0x2e")],{data:n}=t;if(!n)return;let o,r;switch(n.commandName){case Ma("0x22"):o="*Change to:* %0",r={type:Ma("0x14"),content:Yo(e,o,Yo(e,this[Ma("0x17")](n[Ma("0x2c")][0][Ma("0xe")])))};break;case"listReversed":o=n.commandParams[0][Ma("0x11")]?Ma("0x3"):Ma("0x20"),r={type:Ma("0x14"),content:Yo(e,o)};break;case Ma("0xb"):o="*Format:* set start index to %0",r={type:Ma("0x14"),content:Yo(e,o,n[Ma("0x2c")][0][Ma("0x10")])}}return r}[Ma("0x25")](){const t=this[Ma("0x16")][Ma("0x24")][Ma("0x2f")](Ma("0x5"));let e=Array[Ma("0x23")](this[Ma("0x16")][Ma("0x7")].document.selection.getSelectedBlocks());return e[Ma("0x0")](...t[Ma("0x30")](e)),e=[...new Set(e)],e}[Ma("0x28")](t){const e=this[Ma("0x16")].plugins[Ma("0x2f")]("DocumentListUtils");let n=Array[Ma("0x23")](this[Ma("0x16")][Ma("0x7")][Ma("0x4")][Ma("0x2d")][Ma("0x13")]())[Ma("0xf")](t);if(!n[Ma("0x1c")])return null;n=e[Ma("0x30")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o.push(t);return o}[Ma("0x17")](t){return"ELEMENT_"+this[Ma("0x16")].plugins[Ma("0x2f")](Ma("0x18"))[Ma("0x2a")](t)[Ma("0x9")]()+Ma("0x21")+t[Ma("0x9")]()[Ma("0x2")](/-/g,"_")}}const Fa=["getSelectionAffectedTableCells","getContainedElement","selection","TableCellPropertiesEditing","subType","_suggestionFactory","model","editor","tableCellPadding","_handlePropertyChange","tableCellBorderColor","document","tableBorderStyle","tableBorderColor","batch","tableCellBorderStyle","enableCommand","handleSuggestionDescription","*Format:* change table cell properties","handleDiscardAction","afterInit","markBlockFormat","registerDescriptionCallback","_getSuggestion","formatBlock","join","data","registerCustomCallback","locale","tableCellBorderWidth","getSuggestionCallback","plugins","tableBorderWidth","change","tableProperties","_descriptionFactory","nodeAfter","tableAlignment","tableCellWidth","has","TrackChangesEditing","TableUtils","tableCellHorizontalAlignment","get","accept","tableWidth","pluginName","tableBackgroundColor","tableCellProperties","TrackChangesTableProperties","start","getAttribute","tableCellHeight","enqueueChange","tableCellVerticalAlignment","*Format:* change table properties","format","getSuggestions","discard"];var Pa,Da;Pa=Fa,Da=170,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("0x29")]=[Ba("0x14"),Ba("0x13"),Ba("0x27"),Ba("0x2c"),Ba("0x34"),"tableHeight",Ba("0x36")],this[Ba("0x37")]=[Ba("0x11"),Ba("0x16"),Ba("0x24"),Ba("0xf"),Ba("0x2d"),Ba("0x0"),"tableCellBackgroundColor",Ba("0x31"),Ba("0x2")]}static get[Ba("0x35")](){return Ba("0x38")}[Ba("0x1b")](){const t=this.editor[Ba("0x26")].get(Ba("0x2f"));if(this[Ba("0xe")][Ba("0x26")][Ba("0x2e")]("TablePropertiesEditing")){for(const e of this.tableProperties)t[Ba("0x17")](e,((t,n)=>{const o=this.editor[Ba("0xd")].document.selection.getFirstPosition().findAncestor("table");this[Ba("0x10")](e,[o],this[Ba("0x29")],Ba("0x29"),t,n)}));t[Ba("0xc")][Ba("0x22")](Ba("0x1f"),"tableProperties",Ba("0x33"),t[Ba("0xc")][Ba("0x25")](Ba("0x1f"),null,Ba("0x6"))),t[Ba("0xc")][Ba("0x22")](Ba("0x1f"),Ba("0x29"),Ba("0x6"),((t,e)=>this[Ba("0x1a")](this[Ba("0x29")],t,e))),t[Ba("0xc")][Ba("0x22")](Ba("0x1f"),Ba("0x29"),Ba("0x20"),(()=>!1))}if(this[Ba("0xe")][Ba("0x26")][Ba("0x2e")](Ba("0xa"))){for(const e of this[Ba("0x37")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0xe")][Ba("0x26")][Ba("0x32")](Ba("0x30"))[Ba("0x7")](this[Ba("0xe")][Ba("0xd")][Ba("0x12")][Ba("0x9")]);this[Ba("0x10")](e,o,this[Ba("0x37")],Ba("0x37"),t,n)}));t._suggestionFactory[Ba("0x22")](Ba("0x1f"),Ba("0x37"),"accept",t[Ba("0xc")][Ba("0x25")](Ba("0x1f"),null,Ba("0x6"))),t[Ba("0xc")].registerCustomCallback("formatBlock",Ba("0x37"),Ba("0x6"),((t,e)=>this[Ba("0x1a")](this[Ba("0x37")],t,e))),t[Ba("0xc")].registerCustomCallback(Ba("0x1f"),Ba("0x37"),Ba("0x20"),(()=>!1))}t[Ba("0x2a")][Ba("0x1d")]((t=>this[Ba("0x18")](t)))}[Ba("0x10")](t,e,n,o,r,s){const i=this[Ba("0xe")].plugins[Ba("0x32")](Ba("0x2f"));this[Ba("0xe")][Ba("0xd")][Ba("0x1")](s[Ba("0x15")],(()=>{for(const t of e)if(this._getSuggestion(t,o))r(s);else{const e={};for(const o of n){const n=t[Ba("0x3a")](o);void 0!==n&&(e[o]=n)}r(s),i[Ba("0x1c")](t,{commandParams:[e]},[],o)}}))}[Ba("0x1a")](t,e,n){const o=e[0][Ba("0x39")][Ba("0x2b")],r=n.commandParams[0];this[Ba("0xe")][Ba("0xd")][Ba("0x28")]((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],o):e.removeAttribute(n,o)}))}[Ba("0x18")](t){if(t[Ba("0x21")])switch(t[Ba("0xb")]){case Ba("0x29"):return{type:Ba("0x4"),content:Yo(this[Ba("0xe")][Ba("0x23")],Ba("0x3"))};case Ba("0x37"):return{type:"format",content:Yo(this[Ba("0xe")].locale,Ba("0x19"))}}}[Ba("0x1e")](t,e){const n=this[Ba("0xe")][Ba("0x26")][Ba("0x32")](Ba("0x2f"));for(const o of n[Ba("0x5")]({skipNotAttached:!0})){const n=o[Ba("0x8")]();if(o[Ba("0xb")]===e&&n===t)return o}return null}}const Ua=["isEqual","enableCommand","deleteContent","isIntersectingWithRange","group","change","track-changes-suggestion-data-mismatch","removeMarker","getWalker","deletion","getMarkers","isTouching","consume","track-changes-user-not-found","isAtEnd","_getExternalAuthor","getChanges","suggestionChanged","options","insertion","containsRangeInObject","author","addComment","subType","track-changes-adapter-already-set","_onDiscard","_defaultCallbacks","length","_trackFormatChanges","rootName","_suggestionFactory","addRange","rejected","authorName","_addSuggestionMarker","removeComment","low","_findSuggestions","formatInline:discard","getShiftedBy","_suggestions","acceptAllSuggestions","discard","formatInline:accept","_commentsRepository","_mergeNestedSuggestions","getChangedMarkers","hasCommentThread","join","oldRange","isAfter","commentThread","multipleBlocks","getRanges","high","stopListening","originalSuggestionId","deletion:chain","Users","_registerDefaultCallbacks","normal","_joinSuggestions","insertContent","createSelection","then","_getAuthorFromId","insertion:discard","fire","discardAllSuggestions","notReady","collaboration.channelId","execute","hasSuggestion","move","insertion:","deletion:discard","editor","external:","setAttribute","createPositionBefore","schema","nodeBefore","getRange","removeMarker:suggestion:formatBlock","selection","$graveyard","registerPostFixer","getAttribute","getLastMatchingPosition","nodeAfter","after","start","setSelection","fetchCommentThread","getAncestors","data-suggestion","createdAt","addClass","createPositionAfter","PendingActions","suggestion-type","authoredAt","rethrowUnexpectedError","isObject","CommentsRepository","enableReadOnlyMode","discardSuggestion","map","registerCustomCallback","dataDowncast","dataReady","formatBlock:discard","get","locale","some","hasComments","getFirstRange","init","createRange","createRangeIn","before","_suggestionState","isInsideObject","_cutOutSuggestionMarker","suggestionUnloaded","formatBlock","updateSuggestion","includes","createElement","toJSON","creator","size","_getSuggestionData","batch","widget","never","splice","isCollapsed","formatInline:chain","markerToHighlight","define","getAllAdjacentSuggestions","suggestion","moveTargetPosition","$textProxy","plugins","forceDefaultExecution","getFirstMarker","values","@external","formatBlock:join","ready","ck-suggestion-marker--active","removed","position","_enabledCommands","highest","markerToData","formatBlock:","add","commands","markers","mapper","formatBlock:chain","howMany","bindElementToMarker","isUndo","_addThreadToSuggestion","addHighlight","_customCallbacks","containsItem","markInsertion","dataToMarker","value","markDeletion","update:suggestion","document","parent","set","ck-suggestion-marker-","markerReady","isDocumentOperation","root","elementEnd","adapter","isExternal","enqueueChange","_handleNewSuggestionMarker","fromCharCode","getIntersection","_setSuggestionData","conversion","ck-suggestion-marker-formatBlock","addSuggestionData","ck-suggestion-marker","previous","isAtStart","remove","sort","splitPosition","type","isRemovable","next","_setSuggestionRange","addUser","from","removeMarkers","item","model","config","isLimit","markMultiRangeInsertion","upcast","split","editingDowncast","insertion:accept","setTo","every","_saved","getItems","accepted","chain","insertion:chain","applyOperation","range","documentSelection","formatGroupId","for","createPositionAt","_splitMarkerName","element","getNearestSelectionRange","_isForcedDefaultExecutionBlock","marker-count","catch","formatInline","getMultiRangeId","delete","showSuggestionHighlights","consumable","isNextTo","_removeSuggestion","_breakSuggestionMarker","insert","push","trackChanges.mergeNestedSuggestions","name","return","data","writer","listenTo","_adapter","getCustomProperty","isBlock","isOwn","markBlockFormat","_updateSuggestionData","addCommentThread","head","filter","formatBlock:accept","newRange","getSuggestion","isBefore","change:data","addSuggestion","skipNestingCheck","discardSelectedSuggestions","isInContent","default","suggestionLoaded","end","_createSuggestion","acceptSelectedSuggestions","stop","isMultiRange","trackChanges.trackFormatChanges","error-saving-suggestion-data-suggestion-discarded","differ","acceptSuggestion","trackChangesCommand","_model","accept","attributes","addMarker:suggestion:formatBlock","has","containsRange","backward","updateMarker","elementToElement","fromRange","detach","getSuggestions","always","suggestion:","multi","isLocal","buildSuggestion","formatInline:","_refreshSuggestionsChain","editing","activeMarkers","markerName","_descriptionFactory","trackChanges","getUser","getSuggestionCallback","deletion:","_checkSuggestionCorrectness","_joinWithAdjacentSuggestions"];var Ga,Ha;Ga=Ua,Ha=225,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[za("0xbd"),s.Users,t.PendingActions,cr,Cr,Rr,Mr,Br,Wr,Qr,es,Oa,xs,us,bs,ys,Ls,Ps,Gs,Ks,Js,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Ix,Mx,jx,Wx,Sa,Jx,ra,ma,ja,ca,Ea,ka]}static get pluginName(){return"TrackChangesEditing"}constructor(t){function e(t){return t[za("0xc0")]((t=>String[za("0x111")](t))).join("")}super(t),this.set(za("0x4c"),[]),this.on("change:activeMarkers",((e,n,o,r)=>{this[za("0x38")].change((()=>{for(const e of[...r,...o])this[za("0x38")][za("0xf6")][za("0x3c")](e)&&t[za("0x4b")].reconvertMarker(e)}))})),this[za("0x4e")]=new rr(this.editor[za("0x125")].schema,this.editor[za("0xc6")]),this[za("0x1a")]=null,this._suggestionFactory=new Va(this[za("0xa1")]),this[za("0x7d")]=new Map,this[za("0x81")]=t[za("0xe6")][za("0xc5")](za("0xbd")),this[za("0xf0")]=new Set,this[za("0x38")]=this[za("0xa1")][za("0x125")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0x126")][za("0xe1")](za("0x33"),za("0x2c")),this[za("0x71")]=t[za("0x126")][za("0xc5")]("trackChanges.trackFormatChanges"),t.config.define(za("0x14"),!0),this._mergeNestedSuggestions=t[za("0x126")][za("0xc5")](za("0x14")),this.trackChangesCommand=new u(t,this[za("0xf0")]),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,48,54])}[za("0xca")](){const t=this.editor;t.conversion.for(za("0x12b"))[za("0xe0")]({model:za("0xe3"),view:t=>{const{id:e,type:n}=this[za("0x4")](t[za("0x4d")]),o=[za("0x117"),za("0x108")+n];let r=3e3;return this[za("0x4c")][za("0xd4")](t.markerName)&&(o[za("0x13")](za("0xed")),r=3010),za("0x5e")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[za("0x114")][za("0x2")]("dataDowncast")[za("0xf4")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[za("0x67")][za("0xd")])return;const r=n[za("0x124")];if(!r)return;const s=o[za("0xf7")].toViewElement(r);t[za("0x125")][za("0xa5")][za("0xbc")](r)&&s&&!s[za("0x1b")](za("0xdb"))&&s.is("containerElement")&&(0,x.toWidget)(s,o[za("0x18")])}),{priority:za("0x8b")})})),t[za("0x114")][za("0x2")](za("0xc2"))[za("0xe0")]({model:za("0xe3"),view:(t,e)=>{if(!e.options.showSuggestionHighlights)return null;const{type:n}=this._splitMarkerName(t[za("0x4d")]);return{classes:[za("0x117"),za("0x108")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[za("0x124")])return;if(o[za("0x124")].is(za("0xa9")))return void r[za("0xe")][za("0x61")](o.item,n[za("0x15")]);const s=r[za("0xf7")].toViewElement(o[za("0x124")]);if(!o.item.is(za("0x5"))||!t[za("0x125")][za("0xa5")][za("0x1c")](o[za("0x124")])||s[za("0x1b")]("addHighlight"))return;const{id:i}=this[za("0x4")](o[za("0x4d")]);r[za("0x18")].addClass([za("0x117"),za("0x115")],s),r.writer[za("0xa3")](za("0xb4"),i,s),r[za("0xf7")][za("0xfa")](s,o[za("0x4d")]),e&&(this[za("0x4c")][za("0xd4")](o[za("0x4d")])?r[za("0x18")][za("0xb6")](za("0xed"),s):r.writer.removeClass("ck-suggestion-marker--active",s));for(const e of t[za("0x125")][za("0xcc")](o[za("0x124")])[za("0x130")]())r[za("0xe")][za("0x61")](e,n[za("0x15")]);r[za("0xe")][za("0x61")](o[za("0x124")],n[za("0x15")])};t[za("0x114")].for("dataDowncast")[za("0xf4")]((t=>{t.on(za("0x3b"),((t,e,o)=>{o.options[za("0xd")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xf1")})})),t[za("0x114")][za("0x2")]("dataDowncast")[za("0xf2")]({model:"suggestion",view:(t,e)=>e.options[za("0xd")]?null:{group:za("0xe3"),name:t.substr(11)}}),t[za("0x114")][za("0x2")](za("0x129"))[za("0x40")]({view:{name:za("0xe3"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x45")+t.getAttribute(za("0xb9"))+":"+t[za("0xac")]("id");return t.getAttribute(za("0x8"))&&(n+=":"+t.getAttribute(za("0x8"))),e[za("0xd5")]("$marker",{"data-name":n})}}),t[za("0x114")][za("0x2")]("upcast")[za("0x101")]({view:za("0xe3")}),t[za("0x114")][za("0x2")](za("0x12b")).add((t=>{t.on(za("0x3b"),n(),{priority:za("0x8b")})})),t.conversion[za("0x2")](za("0x12b")).add((t=>{t.on(za("0xa8"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[za("0x4d")]);if(o)for(const t of o)t[za("0x1b")](za("0xfd"))||(n[za("0x18")].removeClass([za("0x117"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n.writer.removeAttribute(za("0xb4"),t),n[za("0xf7")].unbindElementFromMarkerName(t,e.markerName))}),{priority:za("0x8b")})})),t[za("0x125")][za("0x105")][za("0xab")]((e=>{let n=!1;const o=Array.from(t[za("0x125")][za("0x105")].differ[za("0x83")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0xe3")!==o)continue;const d=this[za("0x7d")][za("0xc5")](l);if(null!=a[za("0x24")])if("formatInline"==c&&(n=n||Xa(a.newRange,x,e,t.model.schema)),a[za("0x24")][za("0xde")]||za("0xaa")==a[za("0x24")].root.rootName||za("0xd2")==c&&!Qa(a[za("0x24")])||za("0x5e")==c&&(qa(i=a[za("0x24")])||(s=i)[za("0xb0")][za("0x106")]==s[za("0x2e")][za("0xa6")]&&s[za("0xb0")].isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d[za("0x2b")])continue;r[za("0xf4")](d)}}var s,i;return r[za("0xd8")]>0&&(n=!!this[za("0x54")](r)||n),n})),t.model[za("0x105")][za("0xab")]((e=>{let n=!1;for(const o of t[za("0x125")][za("0x105")][za("0x35")][za("0x65")]()){if("insert"!=o[za("0x11d")])continue;const r=o[za("0xef")][za("0x7c")](o[za("0x70")]);if(r[za("0x63")])for(const s of this[za("0x7d")][za("0xe9")]()){if(s[za("0x32")]||!s[za("0x2b")])continue;if(za("0xd2")!=s.type)continue;const i=s[za("0xc9")]();if(i[za("0xb0")][za("0x106")]!=i[za("0x2e")][za("0x106")]&&i.end[za("0x55")](o[za("0xef")])){const o=t.model.createRange(i[za("0xb0")],r);e.updateMarker(s.getFirstMarker(),{range:o}),n=!0}}}return n})),t[za("0x125")][za("0xf6")].on(za("0x104"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x4")](e[za("0x15")]),n=this[za("0x7d")][za("0xc5")](t);n&&n.addMarkerName(e[za("0x15")])}})),t.model.document.on(za("0x27"),(()=>{const e=Array.from(t[za("0x125")][za("0x105")].differ[za("0x83")]())[za("0x22")]((t=>za("0xe3")===this[za("0x4")](t[za("0x15")])[za("0x59")]));if(0===e[za("0x70")])return;e[za("0x11b")](((t,e)=>{const n=t[za("0x17")][za("0x86")],o=e[za("0x17")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xb0")][za("0x26")](o[za("0xb0")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[za("0x4")](t);if(null===r.oldRange){const e=this._handleNewSuggestionMarker(t);o[za("0xf4")](e)}else{const t=this[za("0x7d")][za("0xc5")](e);null!==r.newRange||t.isInContent?(n[za("0xf4")](t[za("0x21")]),o[za("0xf4")](t)):this._removeSuggestion(t)}}o.size>0&&this[za("0x4a")](o);for(const t of n)this[za("0x98")](za("0x66"),t)})),t[za("0x125")].on(za("0x134"),((e,n)=>{const o=n[0];if(!this._suggestions[za("0xd8")])return;if(!o[za("0x10a")])return;if(o.batch[za("0xfb")]||!o[za("0xda")][za("0x47")])return;let r,s;switch(o[za("0x11d")]){case za("0x12"):r=t[za("0x125")][za("0x3")](o[za("0xef")]),s=r.getShiftedBy(o[za("0xf9")]);break;case za("0x12a"):r=t[za("0x125")][za("0x3")](o[za("0x11c")]),s=t[za("0x125")][za("0x3")](o[za("0xe4")]);break;case za("0x9e"):r=t[za("0x125")][za("0x3")](o.targetPosition),s=r.getShiftedBy(o[za("0xf9")]);break;default:return}const i=t[za("0x125")][za("0xcb")](r,s);t.model[za("0x5a")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x7a")](i)){if(t[za("0x32")])continue;if(za("0xa")==t[za("0x11d")])continue;const n=t[za("0x17")]&&t[za("0x17")].multipleBlocks;("formatBlock"!=t.type||"split"==o.type&&!n)&&(e[za("0x69")]||za("0x68")==t[za("0x11d")]&&e[za("0x1d")]||t[za("0xc9")]()[za("0x3d")](i)&&this[za("0x11")](t,r,s))}}))}),{priority:"lowest"}),t[za("0x125")].on(za("0x57"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[za("0xe7")])return;if(this[za("0x7")])return;if(!this[za("0x37")][za("0x102")])return;if(o[za("0xde")])return;const s=t[za("0x125")].schema,{start:i,end:x}=o[za("0xc9")](),a=i[za("0xae")]&&s[za("0x127")](i.nodeAfter)?null:s[za("0x6")](i,"forward"),c=x.nodeBefore&&s[za("0x127")](x[za("0xa6")])?null:s[za("0x6")](x,za("0x3e")),l=t[za("0x125")][za("0xcb")](a?a[za("0xb0")]:i,c?c[za("0x2e")]:x);t[za("0x125")][za("0x5a")]((e=>{this[za("0x103")](l);const n=t.model[za("0xa5")][za("0x6")](l[za("0xb0")]);o.is(za("0x0"))?e[za("0xb1")](n):o[za("0x12d")](n)})),e[za("0x31")]()}),{priority:e.priorities[za("0x91")]+10}),t[za("0x125")].on(za("0x93"),((e,n)=>{const o=n[n[za("0x70")]-1];o&&o[za("0xe7")]||this._isForcedDefaultExecutionBlock||this[za("0x37")][za("0x102")]&&(t.model[za("0x5a")]((()=>{let o=t[za("0x125")][za("0x93")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x16")]=o.clone();const r=o[za("0x2e")][za("0xa6")],s=t.model[za("0xa5")];r&&s[za("0x1c")](r)&&!s[za("0xbc")](r)&&(o=t.model[za("0xcb")](o[za("0xb0")],t.model[za("0x3")](r,za("0x2e")))),this[za("0x100")](o)})),e[za("0x31")]())}),{priority:za("0x8b")}),this[za("0xa1")].commands[za("0xf4")](za("0x4f"),this.trackChangesCommand),this[za("0x56")](za("0x4f"));const o=new p(t,this._suggestions);t[za("0xf5")][za("0xf4")](za("0x36"),o),this[za("0x56")](za("0x36"));const r=new C(t,this[za("0x7d")]);t[za("0xf5")].add(za("0xbf"),r),this[za("0x56")](za("0xbf")),t[za("0xf5")][za("0xf4")]("acceptAllSuggestions",new F(t,o,this[za("0x7d")])),this[za("0x56")](za("0x7e")),t[za("0xf5")][za("0xf4")](za("0x99"),new F(t,r,this._suggestions)),this[za("0x56")](za("0x99")),t[za("0xf5")][za("0xf4")]("acceptSelectedSuggestions",new U(t,o,this[za("0x7d")])),this.enableCommand(za("0x30")),t[za("0xf5")][za("0xf4")]("discardSelectedSuggestions",new U(t,r,this[za("0x7d")])),this[za("0x56")](za("0x2a"));const s=t[za("0xe6")][za("0xc5")](za("0xbd"));this[za("0x19")](s,za("0x6b"),((t,{threadId:e})=>{const n=this[za("0x7d")][za("0xc5")](e);n&&n.commentThread&&1===n[za("0x88")][za("0x70")]&&this[za("0x1f")](e,{hasComments:!0})}),{priority:za("0x79")}),this[za("0x19")](s,za("0x78"),((t,{threadId:e})=>{const n=this._suggestions[za("0xc5")](e);n&&n[za("0x88")]&&!n.commentThread[za("0x70")]&&this[za("0x1f")](e,{hasComments:!1})}),{priority:za("0x79")})}set[za("0x10d")](t){if(this[za("0x1a")])throw new e.CKEditorError(za("0x6d"),this);this[za("0x1a")]=t}get[za("0x10d")](){return this[za("0x1a")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0xe9")]())t&&!e[za("0x2b")]||n.push(e);return e?n.map((t=>t[za("0xd6")]())):n}[za("0x25")](t){const n=this[za("0x7d")][za("0xc5")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0x9d")](t){return this[za("0x7d")][za("0x3c")](t)}[za("0x116")](t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t.type[za("0x12a")](":"),i=this[za("0x7d")].get(n)||this[za("0x2f")](r,s,n,e,o);if(this[za("0xfc")](i),this._checkSuggestionCorrectness(i,r,s||null,e),i[za("0xb5")]=t[za("0xb5")],o&&o[za("0xea")]){const t=o[za("0xea")],e=this._getExternalAuthor(t[za("0x76")]);i.authoredAt=t.createdAt,i[za("0x6a")]=e,i[za("0x10e")]=!0}else i[za("0xba")]=t[za("0xb5")];switch(t.data&&(i[za("0x17")]=t[za("0x17")]),t[za("0x3a")]&&(i[za("0x3a")]=t[za("0x3a")]),this[za("0x1a")]&&this[za("0x1a")][za("0x28")]||(i[za("0x12f")]=!0),this[za("0xce")][za("0xc5")](i)){case za("0x9a"):this[za("0xce")][za("0x107")](i,za("0xc3"));break;case za("0x109"):i[za("0x2b")]?(this[za("0xce")][za("0x107")](i,za("0xec")),this.fire("suggestionLoaded",i)):this._suggestionState[za("0x107")](i,za("0xee"))}return i}[za("0x36")](t){this.forceDefaultExecution((()=>{this[za("0xa1")][za("0x125")].change((()=>{for(const e of t[za("0xe2")]())e[za("0x39")]()}))}))}[za("0xbf")](t){this[za("0xe7")]((()=>{this[za("0xa1")][za("0x125")][za("0x5a")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x7f")]()}))}))}[za("0x56")](t,n){const o=this[za("0xa1")][za("0xf5")][za("0xc5")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0xf0")].add(o),n&&o.on("execute",((t,e)=>{this[za("0x37")].value&&(this[za("0x7")]||e[za("0x70")]>0&&e[e[za("0x70")]-1]&&e[e[za("0x70")]-1][za("0xe7")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[za("0x31")]()))}),{priority:za("0x8b")})}[za("0xe7")](t){let n,o;const r=this[za("0x7")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return r||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0xbb")](o,this),n}markInsertion(t,n=null,o={}){if(t[za("0xde")])return null;const r=this.editor[za("0xe6")].get("Users").me;for(const{suggestion:e,meta:o}of this[za("0x7a")](t,"insertion"))if(o[za("0x1d")]){if(!o[za("0xf")]){if(!this[za("0x82")]&&o[za("0x69")])continue;return e}if(n==e[za("0x6c")]){const n=e.getFirstRange();return n[za("0xb0")][za("0x55")](t[za("0x2e")])?this[za("0x120")](e,this[za("0x38")][za("0xcb")](t.start,n.end)):this[za("0x120")](e,this[za("0x38")][za("0xcb")](n[za("0xb0")],t[za("0x2e")])),e}}const s=(0,e.uid)(),i=r.id,x=n?"insertion:"+n:"insertion",a=this[za("0x113")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x77")](x,s,i,t),a}[za("0x128")](t,n=za("0x46"),o={}){const r=this[za("0xa1")][za("0xe6")][za("0xc5")](za("0x8f")).me,s=this._suggestionFactory[za("0x51")](za("0x68"),n,za("0x85"));for(const e of this[za("0x43")]())if(e[za("0x6a")].id==r.id&&za("0x68")==e.type&&e.subType==n&&(s(e[za("0x8a")](),t)||s(t,e.getRanges()))){for(const n of t)e[za("0x74")](n);return e}if(this[za("0x82")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x7a")](e,za("0x68"))){if(!o[za("0x1d")])continue;let e=!0;for(const o of n[za("0x8a")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a=za("0x9f")+n,c=this[za("0x113")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x77")](a,i,x,e,Zo[za("0xb")]());return c}markInlineFormat(t,n,o=null,r={}){if(o=o||$a(n),t.isCollapsed)return null;if(za("0xdc")===this._trackFormatChanges){const e=this._suggestionFactory.getSuggestionCallback(za("0xa"),o,"accept");return this[za("0xe7")]((()=>e([t],n,r))),null}const s=this.editor.plugins[za("0xc5")](za("0x8f")).me,i=[];if("always"!==this[za("0x71")])for(const{suggestion:e,meta:n}of this[za("0x7a")](t,za("0x68")))n[za("0x1d")]&&!n[za("0xcf")]&&i[za("0x13")](...e[za("0x8a")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x112")](o);e&&n[za("0x13")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x70")];){const o=n[e].getDifference(t);n[za("0xdd")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0x70")]&&this._model[za("0x5a")]((()=>{for(const t of x){const e=this[za("0x73")][za("0x51")](za("0xa"),o,za("0x39"));this.forceDefaultExecution((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[za("0xb0")],a=t.end;for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xa"))){if(!n.isOwn)continue;if(e.subType!=o)continue;const r=e.getFirstRange();if(r[za("0x3d")](t,!0))return null;x=x.isBefore(r[za("0xb0")])?x:r[za("0xb0")],a=a[za("0x87")](r[za("0x2e")])?a:r[za("0x2e")],i?r[za("0xb0")][za("0x26")](i[za("0xc9")]()[za("0xb0")])?(i[za("0x123")](),i=e):e[za("0x123")]():i=e}const c=this[za("0x38")][za("0xcb")](x,a);if(i)this[za("0x120")](i,c);else{const t=(0,e.uid)(),i=s.id;this[za("0x113")]({id:t,type:za("0x49")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[za("0x77")](za("0x49")+o,t,i,c)}}return null}[za("0x1e")](t,n,o=[],r=null,s={}){n[za("0x1")]||(n[za("0x1")]=n.commandName),n.multipleBlocks=t.is(za("0x135")),r=r||$a(n);const i=o[za("0xc0")]((t=>Ja(t,this[za("0x38")]))),x=t.is(za("0x135"))?t:Ja(t,this[za("0x38")]);if(za("0xdc")===this[za("0x71")]){const t=this._suggestionFactory[za("0x51")]("formatBlock",r,za("0x39"));return this[za("0xe7")]((()=>t([x],n,s))),null}i[za("0x13")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x44")!==this[za("0x71")]){const t=this[za("0x73")][za("0x51")](za("0xd2"),r,za("0x39"));return this[za("0xe7")]((()=>t([x],n,s))),null}let c=null,l=x.start,d=x[za("0x2e")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0xd2"))){if(!e[za("0x1d")]||e[za("0xf")]||e[za("0x69")]||e[za("0xcf")])continue;if(t[za("0x17")].formatGroupId!=n[za("0x1")])continue;const o=t.getFirstRange();if(t[za("0x6c")]==r){if(o[za("0x3d")](x,!0))return null;l=l.isBefore(o[za("0xb0")])?l:o[za("0xb0")],d=d[za("0x87")](o[za("0x2e")])?d:o[za("0x2e")],c?o.start[za("0x26")](c[za("0xc9")]()[za("0xb0")])?(c[za("0x123")](),c=t):t.removeMarkers():c=t}else{const e=x[za("0x112")](o);this[za("0xd0")](t,e)}}const u=this[za("0xa1")].plugins[za("0xc5")](za("0x8f")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[za("0x38")][za("0xcb")](l,d)),c;{const t=this[za("0x113")]({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:m,attributes:s});return this[za("0x77")](za("0xf3")+r,g,m,this[za("0x38")][za("0xcb")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],r=null,s={}){n[za("0x1")]||(n[za("0x1")]=n.commandName);const i=t[0];n[za("0x89")]=i.is(za("0x135")),r=r||$a(n);const x=o[za("0xc0")]((t=>Ja(t,this[za("0x38")]))),a=i.is(za("0x135"))?t:t.map((t=>Ja(t,this[za("0x38")])));if(za("0xdc")===this[za("0x71")]){const t=this[za("0x73")][za("0x51")](za("0xd2"),r,za("0x39"));return this[za("0xe7")]((()=>t(a,n,s))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&za("0x44")!==this._trackFormatChanges){const t=this[za("0x73")][za("0x51")](za("0xd2"),r,"accept");return this[za("0xe7")]((()=>t(a,n,s))),null}const l=this.editor[za("0xe6")].get(za("0x8f")).me;for(const t of this[za("0x43")]()){if(t[za("0x6a")].id!=l.id)continue;if("formatBlock"!=t[za("0x11d")]||t.data[za("0x1")]!=n[za("0x1")])continue;const e=t.subType==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[za("0x5f")]()){const s=r[za("0xa7")]();if(o[za("0x55")](s)){e?(a.splice(n,1),n--):t[za("0x5c")](r[za("0x15")]);break}}}}if(0==a.length)return null;const d=this[za("0x73")][za("0x51")](za("0xd2"),r,"join");for(const t of this[za("0x43")]())if(t[za("0x6a")].id==l.id&&za("0xd2")==t[za("0x11d")]&&t.data[za("0x1")]==n.formatGroupId&&t[za("0x6c")]==r&&(d(t.getRanges(),a)||d(a,t[za("0x8a")]()))){for(const e of a)t[za("0x74")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xf3")+r,f=this[za("0x113")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this[za("0x77")](m,u,g,t,Zo[za("0xb")]());return f}markDeletion(t,n=null,o={}){if(t.isCollapsed)return null;const r=this[za("0xa1")][za("0xe6")][za("0xc5")](za("0x8f")).me,s=new i.LiveRange(t[za("0xb0")],t[za("0x2e")]);for(const{suggestion:t,meta:e}of this[za("0x7a")](s,za("0x68")))if(e[za("0x1d")]&&!e[za("0xf")])if(t[za("0x32")]){const e=t.getRanges()[za("0x22")]((t=>za("0xaa")!=t.root[za("0x72")]));if(e[za("0x12e")]((t=>s[za("0x3d")](t,!0)))&&t[za("0x7f")](),e.some((t=>t[za("0x3d")](s,!0)))){const t=this[za("0x73")].getSuggestionCallback(za("0x5e"),n,za("0x39"));return this[za("0xe7")]((()=>t([s],null,o))),null}}else{const e=s.getIntersection(t[za("0xc9")]());null!==e&&t[za("0x6e")]([e],null,o)}if(s[za("0x42")](),s[za("0xde")]||za("0xaa")==s[za("0x10b")][za("0x72")])return null;let x=null,a=s[za("0xb0")],c=s.end;for(const{suggestion:t,meta:e}of this[za("0x7a")](s,za("0x5e")))if(e.isOwn)if(t[za("0x32")]&&this[za("0x82")]){let e=!0;for(const n of t[za("0x8a")]()){if(n[za("0x3d")](s,!0))return t;s.containsRange(n)||(e=!1)}e&&t.discard()}else{const n=t.getFirstRange();if(n[za("0x3d")](s,!0)){if(!this[za("0x82")]&&e[za("0x69")])continue;return t}a=a.isBefore(n.start)?a:n.start,c=c[za("0x87")](n[za("0x2e")])?c:n[za("0x2e")],x?n.start[za("0x26")](x.getFirstRange()[za("0xb0")])?(x[za("0x123")](),x=t):t[za("0x123")]():x=t}if(x)return this[za("0x120")](x,this[za("0x38")].createRange(a,c)),x;{const t=(0,e.uid)(),s=this._model[za("0xcb")](a,c),i=r.id,x=n?za("0x52")+n:"deletion",l=this[za("0x113")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x77")](x,t,i,s),l}}markMultiRangeDeletion(t,n=za("0x46"),o={}){const r=this[za("0xa1")][za("0xe6")][za("0xc5")](za("0x8f")).me,s=t[za("0xc0")]((t=>new i.LiveRange(t[za("0xb0")],t[za("0x2e")]))),x=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this[za("0x7a")](t,"insertion"))n[za("0x1d")]&&!n[za("0xf")]&&x.add(e);for(const e of x)if(e.isMultiRange){const r=e[za("0x8a")]();if((!e[za("0x3a")]||!e.attributes[za("0x29")])&&r[za("0x12e")]((t=>s[za("0xc7")]((e=>e[za("0x3d")](t,!0)))))&&e[za("0x7f")](),s[za("0x12e")]((t=>r[za("0xc7")]((e=>e[za("0x3d")](t,!0)))))){const e=this[za("0x73")][za("0x51")](za("0x5e"),n,za("0x39"));return this[za("0xe7")]((()=>e(t,null,o))),null}}else{const t=e[za("0xc9")]();if(s[za("0xc7")]((e=>e[za("0x3d")](t,!0)))&&e[za("0x7f")](),s[za("0x12e")]((e=>t[za("0x3d")](e,!0)))){const t=this[za("0x73")].getSuggestionCallback(za("0x5e"),n,za("0x39"));return this.forceDefaultExecution((()=>t(s,null,o))),null}}const a=this[za("0x73")].getSuggestionCallback("deletion",n,za("0x85"));let c=null;for(const t of this[za("0x43")]())if(t[za("0x6a")].id==r.id&&t.isInContent&&za("0x5e")==t.type&&t.subType==n&&(a(t[za("0x8a")](),s)||a(s,t[za("0x8a")]())))if(c){if(t.commentThread&&t[za("0x88")][za("0x70")])continue;for(const e of t.getRanges())c[za("0x58")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of s)t.isIntersectingWithRange(e)||t[za("0x74")](e)}if(c)return c;x.clear();for(const t of s)for(const{suggestion:e,meta:n}of this[za("0x7a")](t,"deletion"))n[za("0x1d")]&&x[za("0xf4")](e);for(const t of x){const e=t[za("0x8a")]();if((!o||!o[za("0x29")])&&s[za("0x12e")]((t=>e[za("0xc7")]((e=>e[za("0x3d")](t,!0))))))return t;(!t[za("0x3a")]||!t[za("0x3a")].skipNestingCheck)&&e[za("0x12e")]((t=>s[za("0xc7")]((e=>e[za("0x3d")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=r.id,u=za("0x52")+n,g=this[za("0x113")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of s)t[za("0x42")](),t[za("0xde")]||za("0xaa")==t[za("0x10b")].rootName||this[za("0x77")](u,l,d,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t[za("0xe8")]();this[za("0x38")][za("0x5a")]((t=>{t[za("0x3f")](n,{range:e})}))}[za("0xfc")](t){const e=t.id,n=this[za("0xa1")].config[za("0xc5")](za("0x9b"));this[za("0x81")][za("0x84")](e)||this[za("0x81")][za("0x20")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository.getCommentThread(e);o.unbind(za("0x11e")),o[za("0x11e")]=!1,t[za("0x88")]=o}[za("0x53")](t,n,o,r){if(t[za("0x11d")]!=n||t[za("0x6c")]!=o||t[za("0xd7")].id!=r)throw this.editor[za("0xbe")](za("0x5b")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}_cutOutSuggestionMarker(t,n){const o=t[za("0xc9")]();if(n.isEqual(o))t[za("0x123")]();else if(o[za("0x3d")](n)){const r=this[za("0x38")].createPositionAt(n.start[za("0xa6")],za("0x2e"));this._setSuggestionRange(t,this[za("0x38")][za("0xcb")](o[za("0xb0")],r));const s=(0,e.uid)(),i=t.creator.id,x=t[za("0x11d")]+":"+t.subType;this[za("0x113")]({id:s,type:x,createdAt:new Date,authorId:i,data:t[za("0x17")],attributes:t[za("0x3a")]});const a=this[za("0x38")].createPositionAt(n[za("0x2e")][za("0x106")],za("0xaf")),c=this[za("0x38")][za("0xcb")](a,o.end);this[za("0x77")](x,s,i,c)}else if(o.containsPosition(n[za("0xb0")])){const e=this._model.createPositionAt(n[za("0xb0")][za("0xa6")],"end");this[za("0x120")](t,this[za("0x38")][za("0xcb")](o[za("0xb0")],e))}else{const e=this._model.createPositionAt(n[za("0x2e")].parent,"after");this[za("0x120")](t,this[za("0x38")][za("0xcb")](e,o[za("0x2e")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0x7a")](t,za("0x68"))){if(!n[za("0x1d")])continue;const o=e[za("0x8a")]();for(const e of o)if(!t.getDifference(e)[za("0x70")])return!0}return!1}[za("0x96")](t){const n=this[za("0xa1")][za("0xe6")][za("0xc5")](za("0x8f")).getUser(t);if(!n)throw new e.CKEditorError(za("0x62"),this);return n}[za("0x64")](t){const e=this[za("0xa1")][za("0xe6")][za("0xc5")](za("0x8f")),n=(0,s.hashObject)(za("0xa2")+t);return e[za("0x50")](n)||e[za("0x121")]({id:n,name:t})}_createSuggestion(t,e,n,o,r){const s=this[za("0x96")](o),i=this[za("0x73")][za("0x48")](t,e,n,s,r,(t=>this[za("0x1f")](n,{attributes:t})));return this.listenTo(i,za("0x39"),(()=>{this[za("0x1f")](n,{state:za("0x131")})}),{priority:za("0x8b")}),this[za("0x19")](i,za("0x7f"),(()=>{this[za("0x1f")](n,{state:za("0x75")})}),{priority:za("0x8b")}),this[za("0x7d")][za("0x107")](n,i),this[za("0xce")][za("0x107")](i,"notReady"),i}[za("0x4")](t){const e=t[za("0x12a")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0x70")]<5?e[2]:e[3],authorId:e[za("0x70")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[za("0x11")](t,n,o){const r=t[za("0xc9")](),s=r[za("0xb0")],i=r[za("0x2e")];this[za("0x120")](t,this[za("0x38")][za("0xcb")](s,n));const x=(0,e.uid)(),a=t[za("0xd7")].id,c=t[za("0x11d")]+(t.subType?":"+t[za("0x6c")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data}),za("0xd2")==t[za("0x11d")]&&(o=this._model[za("0xa4")](o[za("0x106")])),this._addSuggestionMarker(c,x,a,this._model[za("0xcb")](o,i))}[za("0x7a")](t,e=null){const n=[],o=this[za("0x38")].schema,r=this[za("0xa1")].plugins[za("0xc5")](za("0x8f")).me;for(const s of this[za("0x43")]())if(s.isInContent&&(!e||s[za("0x11d")]==e))for(const e of s.getRanges()){const i=t[za("0xb0")][za("0x55")](e.end)||t[za("0x2e")][za("0x55")](e.start);if(i||t[za("0x112")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0xb0")],t),a=e[za("0x3d")](t)&&Ka(o,t.start,e);n[za("0x13")]({suggestion:s,meta:{isOwn:r==s[za("0x6a")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x77")](t,e,n,o,r){this[za("0x38")][za("0x5a")]((s=>{let i=za("0x45")+t+":"+e+":"+n;r&&(i=i+":"+r),s.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x10")](t){const e=t.previous,n=t.next;t.previous=null,null!=e&&(e.next=null),t[za("0x11f")]=null,null!=n&&(n[za("0x118")]=null),za("0xec")==this[za("0xce")][za("0xc5")](t)&&(this[za("0xce")][za("0x107")](t,za("0xee")),this.fire(za("0xd1"),t,e,n))}[za("0x113")](t){const n=t.id,o=this[za("0x116")](t);if(this[za("0x1a")]&&this._adapter.addSuggestion){const r=this.editor[za("0xe6")].get(za("0xb8")),s=o[za("0xc8")],i=o.subType?o[za("0x11d")]+":"+o[za("0x6c")]:o[za("0x11d")],x=this[za("0xa1")].locale,a=r[za("0xf4")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:s,data:t[za("0x17")]||null,originalSuggestionId:t[za("0x8d")]||null,attributes:o[za("0x3a")]};this[za("0x1a")][za("0x28")](c)[za("0x95")]((t=>{o._saved=!0,r[za("0x11a")](a),t&&t.createdAt&&(this._suggestions.get(n)[za("0xb5")]=t[za("0xb5")])}))[za("0x9")]((t=>{throw(0,e.logWarning)(za("0x34")),this[za("0xa1")][za("0x125")][za("0x10f")]({isUndoable:!1},(()=>{o.discard()})),o[za("0x8c")](),this[za("0x7d")][za("0xc")](o.id),this[za("0xce")][za("0xc")](o),t}))}return o}[za("0x1f")](t,e){const n=this.editor.plugins[za("0xc5")]("PendingActions"),o=this[za("0x25")](t);if(this[za("0x1a")]&&this[za("0x1a")][za("0xd3")])if(o[za("0x12f")]){const o=n[za("0xf4")](Yo(this.editor[za("0xc6")],"PENDING_ACTION_SUGGESTION"));this._adapter[za("0xd3")](t,e).then((()=>{n[za("0x11a")](o)}))}else o.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this[za("0x1a")]||!this[za("0x1a")][za("0x25")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[za("0x1a")][za("0x25")](t)}[za("0x110")](t){const{id:e,type:n,subType:o,authorId:r}=this[za("0x4")](t),s=this[za("0x7d")][za("0xc5")](e)||this[za("0x2f")](n,o,e,r,{});switch(this[za("0x53")](s,n,o,r),this[za("0xce")][za("0xc5")](s)){case za("0x9a"):this[za("0xd9")](e).then((t=>{let n=Promise.resolve();t[za("0xc8")]&&(n=this[za("0x81")][za("0xb2")]({channelId:this[za("0xa1")][za("0x126")][za("0xc5")](za("0x9b")),threadId:e})),n[za("0x95")]((()=>{this[za("0x116")](t)._saved=!0}))})),this[za("0xce")][za("0x107")](s,za("0x109"));break;case za("0xee"):this[za("0x1f")](e,{state:"open"});case"dataReady":this[za("0xce")][za("0x107")](s,za("0xec")),this.fire(za("0x2d"),s);break;case za("0xec"):this[za("0x98")](za("0x66"),s)}return s.addMarkerName(t),s}[za("0x4a")](t){const e=Array[za("0x122")](t)[za("0x22")]((t=>!t.isMultiRange)),n=this[za("0x43")]({skipNotAttached:!0}).filter((t=>!t[za("0x32")])),o=n.filter((e=>!t[za("0x3c")](e))),r=new Map(n[za("0xc0")]((t=>[t,this[za("0x73")][za("0x51")](t[za("0x11d")],t.subType,za("0x132"))]))),s=new Map(n[za("0xc0")]((t=>[t,t[za("0xc9")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x70")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x70")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x70")];t++){const n=e[t];!x[za("0x3c")](n)&&n[za("0x118")]&&(n[za("0x118")][za("0x11f")]===n&&(n.previous[za("0x11f")]=null),n.previous=null),!i[za("0x3c")](n)&&n[za("0x11f")]&&(n[za("0x11f")][za("0x118")]===n&&(n[za("0x11f")][za("0x118")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[za("0x70")];o++){const n=c(t,e[o]);n&&(n[0][za("0x11f")]=n[1],n[1][za("0x118")]=n[0],i[za("0xf4")](n[0]),x[za("0xf4")](n[1]))}}function c(t,e){if(t[za("0x6a")].id!==e[za("0x6a")].id)return null;const n=r[za("0xc5")](t)(t,e,s[za("0xc5")](t),s[za("0xc5")](e));return n&&r[za("0xc5")](e)(t,e,s[za("0xc5")](t),s[za("0xc5")](e))?n[1].commentThread&&n[1][za("0x88")][za("0x70")]?null:n:null}}[za("0x54")](t){const e=Array[za("0x122")](t),n=this[za("0x43")]({skipNotAttached:!0}),o=n[za("0x22")]((e=>!t.has(e))),r=new Map(e[za("0xc0")]((t=>[t,this._suggestionFactory[za("0x51")](t[za("0x11d")],t[za("0x6c")],"join")]))),s=new Map(n[za("0xc0")]((t=>[t,t[za("0x8a")]()])));for(let t=0;t<e[za("0x70")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x70")];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("0x70")];i++){const o=n[i];if(o[za("0x11d")]!==e.type||o[za("0x6a")].id!==e.author.id||o[za("0x6c")]!==e[za("0x6c")])continue;const x=r.get(e),a=s[za("0xc5")](e),c=s.get(o),l=e[za("0x88")]&&e[za("0x88")][za("0x70")],d=o[za("0x88")]&&o.commentThread.length;if(!l&&x(c,a))return t[za("0x92")](o,e),s[za("0xc")](e),!0;if(!d&&x(a,c))return t[za("0x92")](e,o),s[za("0xc")](o),!0}return!1}}[za("0x92")](t,e){if(t.isMultiRange)for(const n of e[za("0x8a")]())t[za("0x74")](n);else{const n=e.getFirstRange()[za("0x2e")];this[za("0x120")](t,this._model.createRange(t[za("0xc9")]()[za("0xb0")],n))}e[za("0x123")]()}}class Va{constructor(t){this._editor=t,this[za("0x38")]=t.model,this[za("0xfe")]=new Map,this[za("0x6f")]=new Map,this._registerDefaultCallbacks()}[za("0x48")](t,e,n,o,r,s){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[za("0x51")](t,e,za("0x39"))(...n),onDiscard:(...n)=>this[za("0x51")](t,e,za("0x7f"))(...n)})}[za("0xc1")](t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks[za("0x107")](r,o)}[za("0x51")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks.get(o)||this._defaultCallbacks[za("0xc5")](t+":"+n)}[za("0x90")](){const t=()=>{},e=t=>{t.sort(((t,e)=>t[za("0xb0")][za("0x26")](e[za("0xb0")])?1:-1)),this._model[za("0x5a")]((e=>{for(const n of t){let t;t=n.end[za("0x63")]&&n[za("0x2e")][za("0x106")]==n[za("0xb0")][za("0xae")]?e[za("0x94")](n[za("0xb0")][za("0xae")],"on"):e[za("0x94")](n),this[za("0x38")][za("0x57")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x5a")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[za("0xc0")]((t=>(qa(t)&&(t=this._model[za("0xcb")](t[za("0x2e")])),t)))[za("0x22")]((t=>za("0xaa")!==t.root.rootName));if(s.length<1)return;const x=Array.from(this[za("0x38")].document[za("0xa9")][za("0x8a")]())[za("0xc0")]((t=>i.LiveRange[za("0x41")](t)));n[za("0xb1")](s);for(const t of this._editor[za("0xf5")].commands())t.refresh();r[za("0x13")]({forceDefaultExecution:!0}),this._editor[za("0x9c")](o,...r);const a=x[za("0x22")]((t=>"$graveyard"!=t[za("0x10b")][za("0x72")]));a[za("0x70")]>0&&n[za("0xb1")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[za("0x70")]&&1==e[za("0x70")]&&t[0][za("0x2e")][za("0x55")](e[0][za("0xb0")]),r=(t,e,n,o)=>Za(t,e,n,o,this[za("0x38")])?[t,e]:Za(e,t,o,n,this[za("0x38")])?[e,t]:null;this._defaultCallbacks[za("0x107")](za("0x12c"),t),this[za("0x6f")][za("0x107")](za("0x97"),e),this[za("0x6f")].set("insertion:join",o),this[za("0x6f")].set(za("0x133"),r),this[za("0x6f")][za("0x107")]("deletion:accept",e),this[za("0x6f")][za("0x107")](za("0xa0"),t),this[za("0x6f")].set("deletion:join",o),this[za("0x6f")][za("0x107")](za("0x8e"),r),this[za("0x6f")][za("0x107")](za("0x80"),n),this[za("0x6f")][za("0x107")](za("0x7b"),t),this[za("0x6f")].set("formatInline:join",o),this[za("0x6f")].set(za("0xdf"),t),this[za("0x6f")][za("0x107")](za("0x23"),n),this[za("0x6f")][za("0x107")](za("0xc4"),t),this[za("0x6f")][za("0x107")](za("0xeb"),o),this._defaultCallbacks[za("0x107")](za("0xf8"),t)}}function Ka(t,e,n){for(const o of e[za("0x106")][za("0xb3")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x10b")]==o)return!1;if(!n[za("0xff")](o))return!1;if(t.isObject(o)||t.isLimit(o))return!0}return!1}function qa(t){return t.end[za("0x106")]==t.start[za("0xae")]&&t[za("0x2e")][za("0x119")]}function Xa(t,e,n,o){const r=t=>!t.item.is(za("0xe5"))&&!o[za("0xbc")](t[za("0x124")]),s=t[za("0xb0")][za("0xad")](r),i=t.end[za("0xad")](r,{direction:za("0x3e")});return!(t.start[za("0x55")](s)&&t.end[za("0x55")](i)||(s.isBefore(i)?n[za("0x3f")](e,{range:n.createRange(s,i)}):n[za("0x5c")](e),0))}function $a(t){return(0,s.hashObject)(t)}function Qa(t){const e=t[za("0xb0")][za("0xae")];return e&&e.is(za("0x5"))}function Ja(t,e){const n=e[za("0xa5")].isObject(t)||e[za("0xa5")].isSelectable(t);return e[za("0xcb")](e[za("0x3")](t,za("0xcd")),n?e[za("0xb7")](t):e[za("0x3")](t,za("0x2e")))}function Za(t,e,n,o,r){if(n[za("0x2e")][za("0x55")](o[za("0xb0")]))return!0;if(t.type!=e.type)return!1;if(!n.end[za("0x60")](o[za("0xb0")]))return!1;const s=r[za("0xcb")](n[za("0x2e")],o[za("0xb0")])[za("0x5d")]();for(const t of s)if(["elementStart",za("0x10c")][za("0xd4")](t.type)&&r[za("0xa5")].isLimit(t[za("0x124")]))return!1;return!0}const Ya=["PENDING_ACTION_SUGGESTION","model","canDiscard","commentThreadController","view","canEditAt","isEnabled","change:isDirty","unbind","_discardCommand","execute","_removePendingAction","canAccept","_acceptCommand","add","_editor","get","PendingActions","discardSuggestion","listenTo","stopListening","locale","getRanges","isDirty","_pendingAction","acceptSuggestion","commands","_setPendingAction","bind"];var tc,ec;tc=Ya,ec=225,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("0x8")]=e,this.view=n,this[nc("0xa")]=o,this[nc("0x16")]=t,this[nc("0x14")]=t[nc("0x4")].get(nc("0x3")),this[nc("0x10")]=t[nc("0x4")][nc("0x17")](nc("0x19")),this[nc("0xb")][nc("0x6")](nc("0xd")).to(this[nc("0x14")],this._discardCommand,((t,e)=>t||e)),this[nc("0xb")][nc("0x6")](nc("0x13")).to(this[nc("0x14")],nc("0xd"),(t=>t&&this[nc("0x16")][nc("0x8")].canEditAt(e[nc("0x0")]()))),this[nc("0xb")][nc("0x6")]("canDiscard").to(this[nc("0x10")],nc("0xd"),(t=>t&&this._editor[nc("0x8")][nc("0xc")](e[nc("0x0")]()))),this[nc("0x2")]=null,n[nc("0x1")]&&this[nc("0x5")](),this[nc("0x1a")](n,nc("0x3"),(()=>this.acceptSuggestion())),this[nc("0x1a")](n,nc("0x19"),(()=>this[nc("0x19")]())),this[nc("0x1a")](n,nc("0xe"),(()=>{n[nc("0x1")]?this[nc("0x5")]():this[nc("0x12")]()}))}acceptSuggestion(){this._acceptCommand[nc("0x11")](this[nc("0x8")].id)}[nc("0x19")](){this._discardCommand.execute(this[nc("0x8")].id)}destroy(){this[nc("0xb")][nc("0xf")](nc("0xd")),this[nc("0xb")][nc("0xf")](nc("0x13")),this[nc("0xb")].unbind(nc("0x9")),this[nc("0x1b")](),this[nc("0xa")].destroy(),this[nc("0x2")]&&this[nc("0x12")]()}[nc("0x5")](){const t=Yo(this[nc("0x16")][nc("0x1c")],nc("0x7"));this._pendingAction=this[nc("0x16")].plugins[nc("0x17")](nc("0x18"))[nc("0x15")](t)}[nc("0x12")](){null!==this[nc("0x2")]&&this._editor.plugins[nc("0x17")]("PendingActions").remove(this[nc("0x2")]),this[nc("0x2")]=null}}const rc=["CommentView","locale","delegate","bind","submit","showInput","commentsListView","_createCommentThreadInputView","descriptionParts","_createCommentViews","_model","cancel","editor","focus","_config","isReadOnly","authoredAt","destroy","updateComment","disabledSubmit","value","length","commentInputView","canDiscard","isDirty","commentThreadInputView","disableComments","removeComment","_localUser","isEnabled","set","commentThread","isActive"];var sc,ic;sc=rc,ic=127,function(t){for(;--t;)sc.push(sc.shift())}(++ic);const xc=function(t,e){return rc[t-=0]};class ac extends r.View{constructor(t,e,n,o){super(t),this[xc("0xb")]=null,this[xc("0x1e")]=null,this[xc("0x2")](xc("0x4"),!1),this[xc("0x2")]("authoredAt",e[xc("0x15")]),this[xc("0x8")](xc("0x15")).to(e),this.set(xc("0xd"),[]),this[xc("0x2")](xc("0x1d"),!1),this.set(xc("0x1"),!1),this[xc("0x2")]("canAccept",!1),this[xc("0x2")](xc("0x1c"),!1),this._model=e,this[xc("0x0")]=n,this[xc("0x13")]=o,o[xc("0x1f")]?this.set(xc("0x1a"),1):this[xc("0xe")]()}[xc("0x12")](){this.element[xc("0x12")]()}[xc("0x16")](){this[xc("0xb")]&&this[xc("0xb")].destroy(),this[xc("0x1e")]&&this[xc("0x1e")].destroy(),super.destroy()}[xc("0xe")](){const{CommentsListView:t}=this[xc("0x13")];this.commentsListView=new t(this[xc("0x6")],this[xc("0xf")][xc("0x3")],Object.assign({CommentView:this[xc("0x13")][xc("0x5")]},this._config)),this[xc("0xb")][xc("0x7")](xc("0x20")).to(this),this[xc("0xb")][xc("0x7")](xc("0x17")).to(this),this[xc("0xb")][xc("0x8")]("isActive").to(this),this.set(xc("0x1a"),this[xc("0xb")].length+1),this[xc("0x8")]("length").to(this[xc("0xb")],"length",(t=>t+1)),this[xc("0x1e")]=this._createCommentThreadInputView(),this.on(xc("0x20"),(()=>this[xc("0x12")]())),this.bind(xc("0x1d")).to(this[xc("0xb")],"hasDirtyComment",this[xc("0x1e")][xc("0x1b")],xc("0x19"),((t,e)=>t||!!e))}[xc("0xc")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[xc("0x0")],this._config.editorConfig),n=e[xc("0x1b")];return e[xc("0x8")](xc("0xa")).to(this,xc("0x4"),this[xc("0xf")][xc("0x3")],"isReadOnly",n,xc("0x19"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x9"),((t,e)=>{this.fire("addComment",e),n[xc("0x11")].setData("")})),n.on(xc("0x10"),(()=>this.focus())),n.bind(xc("0x18")).to(this[xc("0xf")][xc("0x3")],xc("0x14")),e}}const cc=["creator","fire","_config",'"></span>',"set","isActive","ck-suggestion__info","commentThreadInputView","delegate","description","span","importWord","ck-suggestion__actions","div","render","type","acceptSuggestion","commentThread","</span>","@external","getUserViewNotificationText","<p>","getExternalSuggestionNote","editorReady","execute","canAccept","EXTERNAL_IMPORT_WORD_SUGGESTION","title","ck-annotation__user","Accept suggestion","name","authoredAt","push","isEnabled","_model","ck-annotation__content-wrapper","EXTERNAL_AVATAR","ck-annotation__info-name","getTemplate","ck-annotation__info-time","ck-annotation__actions","ck-comment__external","split","bindTemplate","discardButton","cancel","EXTERNAL_IMPORT_WORD_AVATAR","commentsListView","change:description","locale","ck-suggestion__user","_createButton","attributes","ck-annotation__main",".ck-annotation__content-wrapper","time","formatDateTime","element","_descriptionElement","disableComments","isExternal","createElement","extendTemplate","setTemplate","userView","Discard suggestion","source","ck-suggestion-wrapper","EXTERNAL_SUGGESTION","author","ck-suggestion-wrapper--active","descriptionParts","ck-suggestion--discard",'<span class="ck-suggestion-color" style="background-color: ',"ck-suggestion__main","innerHTML","join","editorDestroyed","content","ck-annotation__info","check","bind","ck-suggestion--accept","ck-annotation","canDiscard"];var lc,dc;lc=cc,dc=321,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,r){super(e,n,o,r),this[uc("0x17")](uc("0x22"),""),this[uc("0xf")](uc("0x22")).to(this,uc("0x5"),(t=>t&&t[0]?t[0][uc("0x22")]:"")),this.bind(uc("0x1c")).to(this,uc("0x5"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=uc("0x28")+mc(e[uc("0xc")],e.color)+"</p>";return e?n:(0,s.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[uc("0x46")](Yo(e,uc("0x30")),t.icons[uc("0xe")],uc("0x10"),uc("0x23"),"sw"),this.acceptButton[uc("0xf")]("isEnabled").to(this,uc("0x2c")),this[uc("0x3f")]=this._createButton(Yo(e,uc("0x54")),t.icons[uc("0x40")],uc("0x6"),"discardSuggestion","sw"),this[uc("0x3f")][uc("0xf")](uc("0x34")).to(this,uc("0x12")),this[uc("0x53")]=new s.UserView(e,this._model.author,this.getUserViewNotificationText()),this[uc("0x53")][uc("0x51")]({attributes:{class:[uc("0x45"),uc("0x2f")]}}),this[uc("0x52")](this[uc("0x39")]())}getTemplate(){const t=this[uc("0x3e")],e=[{tag:uc("0x20"),attributes:{class:[uc("0x19"),uc("0xd")]},children:[{tag:"span",children:[{text:this[uc("0x53")][uc("0x31")]}],attributes:{class:["ck-suggestion__info-name",uc("0x38")]}},{tag:uc("0x4a"),attributes:{datetime:t.to("authoredAt"),class:["ck-comment__info-time",uc("0x3a")]},children:[{text:t.to(uc("0x32"),(t=>this._config[uc("0x4b")](t)))}]}]},{tag:uc("0x20"),attributes:{class:[uc("0x1f"),uc("0x3b")]},children:[this.acceptButton,this[uc("0x3f")]]},{tag:uc("0x20"),attributes:{class:[uc("0x36")]}}];this[uc("0x35")][uc("0x4f")]&&e[uc("0x33")]({tag:uc("0x20"),attributes:{class:[uc("0x3c")]},children:[{text:this[uc("0x29")]()}]});const n={tag:uc("0x20"),attributes:{class:[uc("0x1"),t.if(uc("0x18"),uc("0x4")),t.to(uc("0x22"),(t=>"ck-suggestion-"+t)),this[uc("0x15")][uc("0x4e")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[uc("0x35")].id,"data-thread-id":this._model[uc("0x24")].id,"data-author-id":this[uc("0x35")][uc("0x3")].id,tabindex:-1},children:[{tag:uc("0x20"),attributes:{class:["ck-suggestion",uc("0x11")]},children:[this[uc("0x53")],{tag:uc("0x20"),attributes:{class:[uc("0x8"),uc("0x48")]},children:e}]}]};return this[uc("0x42")]&&this.commentThreadInputView&&(n.children[uc("0x33")](this[uc("0x42")],this.commentThreadInputView),this[uc("0x42")][uc("0x1b")](uc("0x2a")).to(this),this[uc("0x42")][uc("0x1b")]("editorDestroyed").to(this),this.commentThreadInputView[uc("0x1b")]("editorReady").to(this),this[uc("0x1a")][uc("0x1b")](uc("0xb")).to(this)),n}render(){super[uc("0x21")](),this._descriptionElement=this[uc("0x4c")].querySelector(uc("0x49")),this[uc("0x4d")][uc("0x9")]=this[uc("0x1c")],this.on(uc("0x43"),((t,e,n)=>{this[uc("0x4d")][uc("0x9")]=n}))}_createButton(t,e,n,o,s){const i=new r.ButtonView(this[uc("0x44")]);return i[uc("0x17")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[uc("0x51")]({attributes:{class:n}}),i.on(uc("0x2b"),(()=>{this[uc("0x14")](o,this[uc("0x35")].id)})),i}[uc("0x29")](){return"importWord"===this[uc("0x35")][uc("0x47")][uc("0x26")][uc("0x0")]?Yo(this.locale,uc("0x2d")):Yo(this[uc("0x44")],uc("0x2"))}[uc("0x27")](){return this[uc("0x35")][uc("0x4f")]?uc("0x1e")===this._model[uc("0x47")]["@external"][uc("0x0")]?Yo(this[uc("0x44")],uc("0x41"),this[uc("0x35")][uc("0x13")][uc("0x31")]):Yo(this[uc("0x44")],uc("0x37"),this[uc("0x35")][uc("0x13")][uc("0x31")]):null}}function mc(t,e){let n="";return n+=t[uc("0x3d")]("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+uc("0x25"):fc(t)))[uc("0xa")](""),e&&(n+=uc("0x7")+e.value+'" title="'+e[uc("0x2e")]+uc("0x16")),n}function fc(t){const e=document[uc("0x50")](uc("0x1d"));return e.innerText=t,e[uc("0x9")]}const hc=["separator","unbind","isInContent","execute","length","getByInnerView","_destroyController","createAnnotationView","_viewToController","trackChanges","size","getDescriptions","CommentsRepository","EditorAnnotations","commands","remove","discardButton","button","discardSelectedSuggestions","type","define","editing","suggestion-","getMarkerNames","Discard all suggestions","filter","change:activeAnnotations","mainView","_bindAnnotationToEditors","listenTo","acceptSelectedSuggestions","some","add","buttonView","set","TrackChangesUI","Discard all selected suggestions","TrackChangesEditing","map","init","suggestionChanged","acceptAllSuggestions","destroy","comments.maxCommentsWhenCollapsed","_initializeController","innerView","comments.editorConfig","descriptionParts","head","commentThread","reduce","config","hasSuggestion","CommentView","has","suggestionLoaded","previous","focus","_disableComments","value","_refreshActiveMarkers","trackChanges.SuggestionThreadView","_updateController","comments","view","arrowView","plugins","bind","componentFactory","keys","_handleSuggestionControllerDelayed","pluginName","model","_descriptionFactory","activeMarkers","Annotations","getSuggestion","isOn","CommentsUI","isDirty","change:previous","SuggestionThreadView","from","addComment","addSourceCollector","editor","_handleControllerBuffer","_suggestionToController","_annotationViews","discardAllSuggestions","acceptButton","trackChanges.disableComments","getAllAdjacentSuggestions","delete","comments.maxCommentCharsWhenCollapsed","get","getFirstRange","getRanges","createCommentThreadController","actionView","isEnabled","switchbutton","push","activeAnnotations","refreshSelectedViews","Accept all selected suggestions","locale","toMany","commandName"];var pc,bc;pc=hc,bc=281,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 requires(){return[Wa,s.Users,"CommentsRepository",Ec("0xc"),Ec("0x3b")]}static get[Ec("0x8")](){return Ec("0x51")}constructor(t){super(t),this[Ec("0x18")]=new Map,this[Ec("0x36")]=new Map,this._annotationViews=new Map,this[Ec("0x17")]=new Map;const e=this.editor[Ec("0x61")];e[Ec("0x42")](Ec("0x6b"),gc),e.define(Ec("0x1c"),!1),this[Ec("0x68")]=e[Ec("0x20")]("trackChanges.disableComments")}[Ec("0x7")](t,e){0===this[Ec("0x17")][Ec("0x38")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x17")]){const n=this._suggestionToController.has(t);n||e?n&&e&&this[Ec("0x34")](t):this[Ec("0x5a")](t)}this.editor.plugins.get(Ec("0x3b"))[Ec("0x29")](),this[Ec("0x6a")](),this[Ec("0x17")].clear()}),10),this[Ec("0x17")][Ec("0x50")](t,e)}[Ec("0x55")](){const t=this.editor,e=t.plugins[Ec("0x20")]("TrackChangesEditing"),n=t[Ec("0x3")].get("Annotations"),o=t[Ec("0x3")][Ec("0x20")]("EditorAnnotations"),r=t[Ec("0x3")][Ec("0x20")](Ec("0x3a"));t.ui[Ec("0x5")].add("trackChanges",(t=>this._createUIButton(t))),o[Ec("0x15")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x13")](this[Ec("0x18")])){const o=e.getAllAdjacentSuggestions(),r=[];for(const t of o){if(!t[Ec("0x30")])continue;if(t.isMultiRange){r[Ec("0x27")](...t[Ec("0x22")]());continue}const e=t[Ec("0x21")]();if(r[Ec("0x32")]>0){const t=r[0].getJoined(e);if(t){r[0]=t;continue}}r.push(e)}t.push([n[Ec("0x1")],r])}return t})),this[Ec("0x4b")](e,Ec("0x65"),((t,e)=>{this.listenTo(e,Ec("0x11"),((t,n,o,r)=>{e.isInContent&&(null==o?(this._updateController(r[Ec("0x5e")]),this[Ec("0x7")](e,!1)):(this[Ec("0x6c")](o[Ec("0x5e")]),this[Ec("0x7")](e,!0)))})),null===e[Ec("0x66")]?this[Ec("0x7")](e,!1):this[Ec("0x6c")](e[Ec("0x5e")])})),this[Ec("0x4b")](e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,"change:previous"),this[Ec("0x17")][Ec("0x1e")](e);const o=n?n.head:e,r=this[Ec("0x18")][Ec("0x20")](o);null!==n&&this[Ec("0x6c")](o),null===n&&r&&this[Ec("0x34")](e)})),this[Ec("0x4b")](e,Ec("0x56"),((t,e)=>{this._updateController(e)})),this[Ec("0x4b")](n,Ec("0x48"),(()=>{this[Ec("0x6a")]()})),this[Ec("0x4b")](r,Ec("0x14"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x62")](n))return;const r=e[Ec("0xd")](n);this[Ec("0x18")][Ec("0x20")](r)[Ec("0x1")][Ec("0x67")]()}),{priority:"lowest"})}[Ec("0x6a")](){const t=this[Ec("0x16")][Ec("0x3")][Ec("0x20")]("Annotations"),e=this[Ec("0x16")].plugins.get(Ec("0x53")),n=Array.from(t[Ec("0x28")],(t=>t[Ec("0x5b")]))[Ec("0x47")]((t=>this[Ec("0x36")][Ec("0x64")](t))),o=[];for(const t of n){const e=this[Ec("0x36")].get(t)[Ec("0x9")][Ec("0x1d")]();o[Ec("0x27")](...e[Ec("0x60")](((t,e)=>[...t,...e[Ec("0x45")]()]),[]))}e[Ec("0xb")]=o}_createUIButton(t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Ec("0x16")][Ec("0x3c")][Ec("0x20")]("trackChanges"),s=Yo(t,"Track changes");n.buttonView.set({tooltip:s,label:s,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("0x4f")][Ec("0x4")](Ec("0xe")).to(o,Ec("0x69")),n[Ec("0x4f")].on("execute",(()=>{o[Ec("0x31")](),this[Ec("0x16")][Ec("0x43")][Ec("0x1")][Ec("0x67")]()}));const i=new e.Collection,x=[{type:Ec("0x26"),model:{withText:!0,label:s,commandName:Ec("0x37")}},{type:Ec("0x2e")},{type:Ec("0x3f"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0x57")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x2a")),commandName:Ec("0x4c")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x46")),commandName:Ec("0x1a")}},{type:Ec("0x3f"),model:{withText:!0,label:Yo(t,Ec("0x52")),commandName:Ec("0x40")}}];for(const t of x){let e={type:Ec("0x2e")};if(t.model){const n=new r.Model(t[Ec("0x9")]),o=this.editor[Ec("0x3c")][Ec("0x20")](n[Ec("0x2d")]);n[Ec("0x4")](Ec("0xe"),Ec("0x25")).to(o,Ec("0x69"),Ec("0x25")),e={type:t.type,model:n}}i[Ec("0x4e")](e)}(0,r.addListToDropdown)(n,i);const a=x[Ec("0x47")]((t=>null!=t.model))[Ec("0x54")]((t=>this[Ec("0x16")][Ec("0x3c")].get(t[Ec("0x9")].commandName))),c=n[Ec("0x4f")];return c[Ec("0x24")][Ec("0x2f")](Ec("0x25")),c.arrowView.unbind(Ec("0x25")),c[Ec("0x24")][Ec("0x4")](Ec("0x25")).to(o,Ec("0x25")),c[Ec("0x2")][Ec("0x4")](Ec("0x25"))[Ec("0x2c")](a,Ec("0x25"),((...t)=>t[Ec("0x4d")]((t=>t)))),n.on("execute",(t=>{this[Ec("0x16")][Ec("0x31")](t.source.commandName),this[Ec("0x16")].editing[Ec("0x1")][Ec("0x67")]()})),n}[Ec("0x5a")](t){const e=this.editor,n=e[Ec("0x61")],o=e[Ec("0x3")][Ec("0x20")](Ec("0xc")),r=e[Ec("0x3")][Ec("0x20")](Ec("0x3a")),i=e.plugins.get(Ec("0x3b")),x=e[Ec("0x3")].get(s.Users).me,a=n[Ec("0x20")](Ec("0x37"))[Ec("0x12")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x3")][Ec("0x20")](Ec("0xf"));let d,u;this._annotationViews[Ec("0x64")](t.id)?(u=this[Ec("0x19")][Ec("0x20")](t.id),d=u[Ec("0x49")]):(d=new a(e.locale,t,x,{disableComments:this[Ec("0x68")],editorConfig:n[Ec("0x20")](Ec("0x5c")),maxCommentsWhenCollapsed:n[Ec("0x20")](Ec("0x59")),maxThreadTotalWeight:n[Ec("0x20")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x20")](Ec("0x1f")),formatDateTime:(0,s.getDateTimeFormatter)(n[Ec("0x20")](Ec("0x2b"))),CommentView:n[Ec("0x20")](Ec("0x0"))[Ec("0x63")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x1b")].on(Ec("0x31"),(()=>{e[Ec("0x43")].view[Ec("0x67")]()})),d[Ec("0x3e")].on("execute",(()=>{e[Ec("0x43")].view[Ec("0x67")]()})),u=o[Ec("0x35")](this.editor[Ec("0x2b")],d),u.bind(Ec("0x10")).to(d,Ec("0x10")),u[Ec("0x4")](Ec("0x32")).to(d),u[Ec("0x4")](Ec("0x41")).to(d,Ec("0x41"),(t=>"suggestion-"+t)),this[Ec("0x19")][Ec("0x50")](t.id,u));const g=r[Ec("0x23")](t[Ec("0x5f")],d),m=new oc(e,t,d,g),f=t[Ec("0x1d")]()[Ec("0x47")]((t=>t[Ec("0x30")]));d.descriptionParts=e[Ec("0x3")][Ec("0x20")](Ec("0x53"))[Ec("0xa")].getDescriptions(f),this[Ec("0x18")][Ec("0x50")](t,m),this[Ec("0x36")][Ec("0x50")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x1d")]()[Ec("0x47")]((t=>t[Ec("0x30")]));for(const t of o)n[Ec("0x27")](...t.getMarkers());return(0,s.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x44")+m[Ec("0x1")][Ec("0x41")]});r[Ec("0x4a")](d,h),o[Ec("0x4e")](h),i.registerAnnotation(h)}[Ec("0x34")](t){const e=this.editor[Ec("0x3")][Ec("0x20")](Ec("0xc")),n=this[Ec("0x18")][Ec("0x20")](t),o=n.view,r=e[Ec("0x33")](o);r&&e[Ec("0x3d")](r),this[Ec("0x18")].delete(t),this[Ec("0x36")][Ec("0x1e")](o),n[Ec("0x58")]()}[Ec("0x6c")](t){if(!t[Ec("0x30")]||!this[Ec("0x18")][Ec("0x64")](t))return;const e=this[Ec("0x16")][Ec("0x3")][Ec("0x20")](Ec("0x53")),n=this[Ec("0x18")][Ec("0x20")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x1")][Ec("0x5d")]=e[Ec("0xa")][Ec("0x39")](o)}[Ec("0x58")](){for(const t of this._suggestionToController[Ec("0x6")]())this[Ec("0x34")](t);for(const t of this[Ec("0x19")].values())t[Ec("0x49")][Ec("0x58")]();super[Ec("0x58")]()}}var Tc,Cc,yc=["plugins","pluginName","getSuggestions","Comments","requires","TrackChanges","editor","addSuggestion","adapter","getSuggestion","addSuggestionData","get"];Tc=yc,Cc=260,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("0x8")](){return[Wa,_c,kc("0x7")]}static get[kc("0x5")](){return kc("0x9")}set adapter(t){this[kc("0xa")][kc("0x4")].get(Wa).adapter=t}get[kc("0x0")](){return this.editor.plugins.get(Wa)[kc("0x0")]}[kc("0xb")](t){return this[kc("0xa")][kc("0x4")][kc("0x3")](Wa)[kc("0x2")](t)}[kc("0x6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0xa")].plugins[kc("0x3")](Wa)[kc("0x6")]({skipNotAttached:t,toJSON:e})}[kc("0x1")](t){return this.editor[kc("0x4")][kc("0x3")](Wa)[kc("0x1")](t)}}const vc=["plugins","define","discardAllSuggestions","requires","rootsAttributes","constructor","name","TrackChangesData","init","addUser","getFullData","reduce","createElement","getRootsAttributes","execute","TrackChangesDataGetter","data","pluginName","addSuggestionData","getDataWithDiscardedSuggestions","getDataWithAcceptedSuggestions","document","Users","editorCreator","getSuggestions","_adapter","get","CommentsRepository","useAnonymousUser","getUser","trackChangesData.editorCreator","trackChangesData","result","appendChild","destroy","model","map","config","users","editor","getRootNames","TrackChangesEditing"];var Rc,Ic;Rc=vc,Ic=346,function(t){for(;--t;)Rc.push(Rc.shift())}(++Ic);const Sc=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get[Sc("0x23")](){return[Wa]}static get[Sc("0x7")](){return Sc("0x27")}[Sc("0x28")](){const t=this[Sc("0x1d")];if(t[Sc("0x1b")][Sc("0x21")](Sc("0x14"),(e=>{const n=t[Sc("0x19")][Sc("0xb")][Sc("0x1e")]()[Sc("0x1")](((t,e)=>(t[e]="",t)),{});return t[Sc("0x25")].create(n,e)})),"function"!=typeof t[Sc("0x1b")].get(Sc("0x15"))[Sc("0xd")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Sc("0xa")](t){return Oc(this.editor,!0,t)}[Sc("0x9")](t){return Oc(this[Sc("0x1d")],!1,t)}}class wc extends t.Plugin{static get[Sc("0x7")](){return Sc("0x5")}constructor(t){super(t),this[Sc("0x16")]="end"}[Sc("0x28")](){this.editor.plugins[Sc("0x10")](Sc("0x11"))[Sc("0xf")]={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[Sc("0x1d")][Sc("0x20")][Sc("0x10")]("TrackChangesEditing")._adapter=null}}function Mc(t){return void 0!==t[Sc("0x3")]}async function Oc(t,e,n){const o=(0,s.sanitizeEditorConfig)(t,Lc);o[Sc("0x20")].push(Wa,wc),o[Sc("0x24")]=Mc(t)?t[Sc("0x3")]():void 0;const r=document.createDocumentFragment(),i=t[Sc("0x1b")][Sc("0x10")](Sc("0x15")).editorCreator,x=await i(o,(()=>function(t){const e=document[Sc("0x2")]("div");return t[Sc("0x17")](e),e}(r)));!function(t,e){const n=t[Sc("0x19")][Sc("0xb")][Sc("0x1e")]()[Sc("0x1")](((e,n)=>(e[n]=t[Sc("0x6")][Sc("0x10")]({rootName:n}),e)),{}),o=t[Sc("0x20")][Sc("0x10")](Sc("0xc"))[Sc("0x1c")][Sc("0x1a")]((t=>({id:t.id,name:t[Sc("0x26")]}))),r=t[Sc("0x20")][Sc("0x10")](Sc("0x1f"))[Sc("0xe")]({skipNotAttached:!0,toJSON:!0}),s=e[Sc("0x20")][Sc("0x10")](Sc("0xc")),i=e[Sc("0x20")][Sc("0x10")](Sc("0x1f"));for(const t of o)s[Sc("0x13")](t.id)||s[Sc("0x29")](t);s.me||s[Sc("0x12")]();for(const t of r)i[Sc("0x8")](t);e[Sc("0x6")].set(n)}(t,x),x[Sc("0x4")](e?"acceptAllSuggestions":Sc("0x22"));const a=Mc(x)?x[Sc("0x0")](n):x[Sc("0x6")][Sc("0x10")](n);return await x[Sc("0x18")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();