@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241209.0 → 0.0.0-nightly-20241210.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.
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x22c111,uid as _0x4a2e00,Collection as _0x5a5c64,logWarning as _0x14c8c1,FocusTracker as _0x431090,KeystrokeHandler as _0x433897,scrollViewportToShowTarget as _0x32e163,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x8b8fdd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1875bd,set as _0x506795,unset as _0x32b4e3,isEqual as _0x3ee46e}from'lodash-es';import{Plugin as _0x5b577d,PendingActions as _0x294576,icons as _0x105b1a,Command as _0x260265,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x36f408,getMarkerDomElement as _0x46d363,ConfirmMixin as ti,sanitizeEditorConfig as _0xfd0b49}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4a4d01,ViewText as _0x275fe8,ViewElement as _0x26ab22,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x11b6b8,ViewAttributeElement as _0x485951,ViewEmptyElement as _0x49d971,ViewRawElement as _0x523d4a,ViewUIElement as _0x10d7dc,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x191e69,submitHandler as _0xf2cc1a,LabeledFieldView as _0x11290e,createLabeledInputText as _0x5f48cb,createDropdown as _0x4c94ed,ListView as _0x1ac7e1,ListItemView as _0x333270,ButtonView as te,MenuBarMenuView as _0x39d19f,MenuBarMenuListView as _0x41953e,MenuBarMenuListItemView as _0x13e6b2,MenuBarMenuListItemButtonView as _0x1ea060,ContextualBalloon as _0x4ad402,ToolbarSeparatorView as _0xab97bf,IconView as _0x4f1258,addListToDropdown as to,ViewModel as _0x31a29d,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5d0133}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x22c111(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x20d1f0){super(),this['id']=_0x20d1f0['id']||_0x4a2e00(),this['creator']=_0x20d1f0['creator']||null,this['authors']=_0x20d1f0['authors']||[],this['diffData']=_0x20d1f0['diffData']||null,this['toVersion']=_0x20d1f0['toVersion']||0x0,this['fromVersion']=_0x20d1f0['fromVersion']||0x0,this['set']('name',_0x20d1f0['name']||''),this['set']('createdAt',_0x20d1f0['createdAt']||new Date()),this['set']('attributes',_0x20d1f0['attributes']||{});}['setName'](_0x5b5dd3){this['_update']({'name':_0x5b5dd3});}['setAttribute'](_0x78572e,_0x1c3a6d){const _0x3c4e8b=_0x1875bd(this['attributes']);_0x506795(_0x3c4e8b,_0x78572e,_0x1c3a6d),this['_update']({'attributes':_0x3c4e8b});}['removeAttribute'](_0x4cd5ef){const _0x3ec8c3=_0x1875bd(this['attributes']);_0x32b4e3(_0x3ec8c3,_0x4cd5ef),this['_update']({'attributes':_0x3ec8c3});}['_update'](_0x1f8658,_0x1daeff=!0x1){let _0x39075b=!0x1;const _0x3f39f6={'id':this['id']},_0x2d898e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x64f7e of _0x2d898e){const _0x380246=_0x1f8658[_0x64f7e];void 0x0!==_0x380246&&_0x380246!==this[_0x64f7e]&&(this[_0x64f7e]=_0x380246,_0x3f39f6[_0x64f7e]=_0x380246,_0x39075b=!0x0);}_0x39075b&&(_0x3f39f6['authors']&&(_0x3f39f6['authorsIds']=_0x3f39f6['authors']['map'](_0x372d0c=>_0x372d0c['id']),delete _0x3f39f6['authors']),this['fire']('_update',_0x3f39f6,_0x1daeff));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x178fe6=>_0x178fe6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5b577d{['_revisions'];static get['requires'](){return[_0x36f408];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x172679){super(_0x172679),this['_revisions']=new _0x5a5c64();}['afterInit'](){!async function(_0x448661){const _0x12c6fe=_0x15073e([0x46,0x55,0x58,0x45,0x75,0x34,0x57,0x54,0x79,0x6d,0x71,0x7a,0x6b,0x72,0x43,0x78,0x38,0x70,0x4e,0x6c,0x36,0x6f,0x63,0x64,0x65,0x68,0x6e,0x33,0x53,0x4d,0x39,0x48,0x76,0x35,0x50,0x41,0x52,0x47,0x59,0x49,0x44,0x69,0x51,0x74,0x30,0x4a,0x42,0x4c,0x56,0x73,0x4f,0x31,0x37,0x5a,0x61,0x77,0x62,0x67,0x6a,0x32,0x66,0x4b]),_0xf4f13b=0xeb829,_0x14447a=0x4d8b7c39,_0x1d2be2=0x4d8c2509^_0x14447a,_0x3b4009=window[_0x15073e([0x44,0x61,0x74,0x65])][_0x15073e([0x6e,0x6f,0x77])](),_0x1c5df8=_0x448661[_0x15073e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c0c25=new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119410=>{_0x1c5df8[_0x15073e([0x6f,0x6e,0x63,0x65])](_0x15073e([0x72,0x65,0x61,0x64,0x79]),_0x119410);}),_0x2000d9={[_0x15073e([0x6b,0x74,0x79])]:_0x15073e([0x45,0x43]),[_0x15073e([0x75,0x73,0x65])]:_0x15073e([0x73,0x69,0x67]),[_0x15073e([0x63,0x72,0x76])]:_0x15073e([0x50,0x2d,0x32,0x35,0x36]),[_0x15073e([0x78])]:_0x15073e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x15073e([0x79])]:_0x15073e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x15073e([0x61,0x6c,0x67])]:_0x15073e([0x45,0x53,0x32,0x35,0x36])},_0x507a87=_0x1c5df8[_0x15073e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15073e([0x67,0x65,0x74])](_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x116dae(){let _0x42d2a3,_0x4cdfef=null,_0x409201=null;try{if(_0x507a87==_0x15073e([0x47,0x50,0x4c]))return _0x15073e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42d2a3=_0x33c074(),!_0x42d2a3)return _0x15073e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42d2a3[_0x15073e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x409201=_0x40aed6(_0x42d2a3[_0x15073e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42d2a3[_0x15073e([0x6a,0x74,0x69])])),await _0xde47f8()?_0x5cee47()?_0x56d4d5()?_0x15073e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bc15b()?(_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15073e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4cdfef=_0x1982bc(_0x15073e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15073e([0x74,0x72,0x69,0x61,0x6c])&&(_0x4cdfef=_0x1982bc(_0x15073e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15073e([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4cdfef=_0x1982bc(_0x15073e([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59d4d9()):_0x15073e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15073e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15073e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5d5749){return _0x15073e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56d4d5(){const _0x3cc4a3=[_0x15073e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15073e([0x74,0x72,0x69,0x61,0x6c])][_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b4009/0x3e8:0xe10*_0x1d2be2;return _0x42d2a3[_0x15073e([0x65,0x78,0x70])]<_0x3cc4a3;}function _0x5cee47(){const _0x4694aa=_0x42d2a3[_0x15073e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4694aa)return!0x1;if(_0x4694aa[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15073e([0x2a])))return!0x0;if(_0x4694aa[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15073e([0x52,0x48])))return!0x0;if(_0x4694aa[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15073e([0x52,0x52,0x48]))){if(_0x2ec0ec())return!0x0;if(_0x1ec31d()||_0x1a0340())return!0x0;}return!0x1;}function _0x2bc15b(){const _0x19a1fc=_0x42d2a3[_0x15073e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x19a1fc||0x0==_0x19a1fc[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4dfb4c}=new URL(window[_0x15073e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x19a1fc[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dfb4c))return!0x0;const _0x27a0be=_0x4dfb4c[_0x15073e([0x73,0x70,0x6c,0x69,0x74])](_0x15073e([0x2e]));return _0x19a1fc[_0x15073e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x116a11=>_0x116a11[_0x15073e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15073e([0x2a])))[_0x15073e([0x6d,0x61,0x70])](_0x12b4b4=>_0x12b4b4[_0x15073e([0x73,0x70,0x6c,0x69,0x74])](_0x15073e([0x2e])))[_0x15073e([0x73,0x6f,0x6d,0x65])](_0x566972=>_0x27a0be[_0x15073e([0x65,0x76,0x65,0x72,0x79])]((_0x2f7a4a,_0x2e2bb2)=>_0x566972[_0x2e2bb2]===_0x2f7a4a||_0x566972[_0x2e2bb2]===_0x15073e([0x2a])));}function _0x59d4d9(){return _0x4cdfef&&_0x409201?new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x475585,_0x2ff68e)=>{_0x4cdfef[_0x15073e([0x74,0x68,0x65,0x6e])](_0x475585,_0x2ff68e),_0x409201[_0x15073e([0x74,0x68,0x65,0x6e])](_0x19d487=>{_0x19d487!=_0x15073e([0x56,0x61,0x6c,0x69,0x64])&&_0x475585(_0x19d487);},_0x2ff68e);}):_0x4cdfef||_0x409201||_0x15073e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40aed6(_0x41fadc,_0x25f92f){return new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33a566=>{if(_0x1e14de())return _0x33a566(_0x15073e([0x56,0x61,0x6c,0x69,0x64]));_0x133f3e(),_0x1c5df8[_0x15073e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15073e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x316bb6=!0x1;const _0x2b2c0c=_0x4a2e00();function _0x2d1328(_0x5021e5){return!!_0x5021e5&&(typeof _0x5021e5===_0x15073e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5021e5===_0x15073e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5021e5[_0x15073e([0x74,0x68,0x65,0x6e])]===_0x15073e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5021e5[_0x15073e([0x63,0x61,0x74,0x63,0x68])]===_0x15073e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x165cf6(_0x4fbed1){_0x5acdd8(_0x4fbed1)[_0x15073e([0x74,0x68,0x65,0x6e])](_0x4e1e39=>{if(!_0x4e1e39||_0x4e1e39[_0x15073e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15073e([0x6f,0x6b]))return _0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x139d06(_0xfdc51c(_0x2b2c0c+_0x25f92f))!=_0x4e1e39[_0x15073e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15073e([0x56,0x61,0x6c,0x69,0x64]);})[_0x15073e([0x74,0x68,0x65,0x6e])](_0x45e4d6=>(_0x35a73d(),_0x45e4d6),()=>{const _0x3533f8=_0x579b45();return null==_0x3533f8?(_0x35a73d(),_0x15073e([0x56,0x61,0x6c,0x69,0x64])):_0x15073e(_0x3b4009-_0x3533f8>(0x6987f839^_0x14447a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15073e([0x74,0x68,0x65,0x6e])](_0x33a566)[_0x15073e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33a566(_0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c0585=0x4dbd92b9^_0x14447a;function _0x35a73d(){const _0x4e8692=_0x15073e([0x6c,0x6c,0x63,0x74,0x2d])+_0x139d06(_0xfdc51c(_0x41fadc)),_0x174f21=_0x5b6be5(_0x139d06(window[_0x15073e([0x4d,0x61,0x74,0x68])][_0x15073e([0x63,0x65,0x69,0x6c])](_0x3b4009/_0x4c0585)));window[_0x15073e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15073e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e8692,_0x174f21);}function _0x579b45(){const _0x2ff006=_0x15073e([0x6c,0x6c,0x63,0x74,0x2d])+_0x139d06(_0xfdc51c(_0x41fadc)),_0x3f662d=window[_0x15073e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15073e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ff006);return _0x3f662d?window[_0x15073e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b6be5(_0x3f662d),0x10)*_0x4c0585:null;}function _0x5acdd8(_0x55c229){return new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8b908b,_0x369349)=>{_0x55c229[_0x15073e([0x74,0x68,0x65,0x6e])](_0x8b908b,_0x369349),window[_0x15073e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x369349,0x4d8aa8f9^_0x14447a);});}}_0x1c5df8[_0x15073e([0x6f,0x6e])](_0x15073e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23f324,_0x156f5d)=>{if(_0x156f5d[0x0]!=_0x41fadc)return _0x33a566(_0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x156f5d[0x1]={..._0x156f5d[0x1],[_0x15073e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b2c0c};},{[_0x15073e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15073e([0x68,0x69,0x67,0x68])}),_0x1c5df8[_0x15073e([0x6f,0x6e])](_0x15073e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x338314=>{_0x2d1328(_0x338314[_0x15073e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x316bb6=!0x0,_0x165cf6(_0x338314[_0x15073e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15073e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15073e([0x6c,0x6f,0x77])}),_0x2c0c25[_0x15073e([0x74,0x68,0x65,0x6e])](()=>{_0x316bb6||_0x33a566(_0x15073e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e14de(){return _0x1c5df8[_0x15073e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15073e([0x76,0x69,0x65,0x77])][_0x15073e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15073e([0x61,0x75,0x74,0x6f]);}function _0x133f3e(){_0x1c5df8[_0x15073e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15073e([0x76,0x69,0x65,0x77])][_0x15073e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15073e([0x61,0x75,0x74,0x6f]);}}function _0x1982bc(_0x1b8df3){const _0x53b8ab=[new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107cd0=>setTimeout(_0x107cd0,0x4d8242f5^_0x14447a)),_0x2c0c25[_0x15073e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x224f28=>{const _0x166bf4=0x4d8b7c3e^_0x14447a,_0x479ce8=_0x448661[_0x15073e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1a1521(){_0x479ce8[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x166bf4&&_0x224f28();}_0x1a1521(),_0x479ce8[_0x15073e([0x6f,0x6e])](_0x15073e([0x61,0x64,0x64]),_0x1a1521);})),new window[(_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x181e60=>{function _0x1efb3c(){for(const _0x5ec8fa in window)if(window[_0x15073e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x15073e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5ec8fa))&&window[_0x5ec8fa]==_0xf4f13b)return _0x181e60();_0x1c5df8[_0x15073e([0x73,0x74,0x61,0x74,0x65])]!=_0x15073e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x15073e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1efb3c,0x4d8b6fb1^_0x14447a);}_0x4767bb(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1efb3c();})];return window[_0x15073e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15073e([0x72,0x61,0x63,0x65])](_0x53b8ab)[_0x15073e([0x74,0x68,0x65,0x6e])](()=>_0x1b8df3);}async function _0x907393(){if(await _0x2c0c25,_0x4767bb(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x497da4=_0x448661[_0x15073e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x155bbe=_0x448661[_0x15073e([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x497da4[_0x15073e([0x69,0x64])]),_0x59de26=_0x44d906(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x59de26[_0x15073e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x497da4['id'],_0x155bbe?_0x155bbe['id']:null,!0x0),_0x59de26[_0x15073e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x15073e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59de26[_0x15073e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59de26[_0x15073e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5875ea,void(_0x59de26[_0x15073e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5875ea);}if(_0x4767bb(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x11e41a=_0x44d906(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x11e41a[_0x15073e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x15073e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x11e41a[_0x15073e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x11e41a[_0x15073e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5875ea,_0x11e41a[_0x15073e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5875ea;}_0x1c5df8[_0x15073e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15073e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5875ea,_0x1c5df8[_0x15073e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15073e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5875ea,_0x1c5df8[_0x15073e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15073e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ec0ec(){return _0x4767bb(_0x15073e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x44d906(_0x15073e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15073e([0x73,0x74,0x61,0x74,0x65])]==_0x15073e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ec31d(){return _0x4767bb(_0x15073e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1a0340(){return _0x4767bb(_0x15073e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x15a5ba(_0x11f02d){const _0x10668c=_0x1a4f52();_0x1c5df8[_0x10668c]=_0x15073e([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11f02d,_0x11f02d[_0x15073e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x15073e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1a4f52()]=_0xf4f13b),_0x11f02d!=_0x15073e([0x56,0x61,0x6c,0x69,0x64])&&_0x907393();}function _0x1a4f52(){const _0x578002=window[_0x15073e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15073e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15073e([0x6e,0x6f,0x77])]())[_0x15073e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15073e([0x2e]),'');let _0x5b5da7=_0x15073e([0x46]);for(let _0x1828c0=0x0;_0x1828c0<_0x578002[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1828c0+=0x2){let _0x14f382=window[_0x15073e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x578002[_0x15073e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1828c0,_0x1828c0+0x2));_0x14f382>=_0x12c6fe[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14f382-=_0x12c6fe[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b5da7+=_0x12c6fe[_0x14f382];}return _0x5b5da7;}function _0x33c074(){const _0x5abdf8=_0x507a87[_0x15073e([0x73,0x70,0x6c,0x69,0x74])](_0x15073e([0x2e]));if(0x3!=_0x5abdf8[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x547fd7(_0x5abdf8[0x1]);function _0x547fd7(_0x549b1f){const _0x187568=_0x15fd3e(_0x549b1f);return _0x187568&&_0x3b7c9d()?_0x187568:null;function _0x3b7c9d(){const _0x4386a9=_0x187568[_0x15073e([0x6a,0x74,0x69])],_0x3c017f=window[_0x15073e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4386a9[_0x15073e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4386a9[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13ccc4={..._0x187568,[_0x15073e([0x6a,0x74,0x69])]:_0x4386a9[_0x15073e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4386a9[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13ccc4[_0x15073e([0x76,0x63])],_0xfdc51c(_0x13ccc4)==_0x3c017f;}}}async function _0xde47f8(){let _0x1c6f1a=!0x0;try{const _0x3303ee=_0x507a87[_0x15073e([0x73,0x70,0x6c,0x69,0x74])](_0x15073e([0x2e])),[_0x4478c7,_0x4b4771,_0x564558]=_0x3303ee;return _0x19254e(_0x4478c7),await _0x54b254(_0x4478c7,_0x4b4771,_0x564558),_0x1c6f1a;}catch(_0xd491b){return!0x1;}function _0x19254e(_0x450b77){const _0x2680d1=_0x15fd3e(_0x450b77);_0x2680d1&&_0x2680d1[_0x15073e([0x61,0x6c,0x67])]==_0x15073e([0x45,0x53,0x32,0x35,0x36])||(_0x1c6f1a=!0x1);}async function _0x54b254(_0x2b55d5,_0x36ed81,_0x399c50){const _0x48f516=window[_0x15073e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15073e([0x66,0x72,0x6f,0x6d])](_0x1223ae(_0x399c50),_0x22eab8=>_0x22eab8[_0x15073e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x540bd7=new window[(_0x15073e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15073e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b55d5+_0x15073e([0x2e])+_0x36ed81),_0xaae41f=window[_0x15073e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15073e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xaae41f)return;const _0x5c5a2e=await _0xaae41f[_0x15073e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15073e([0x6a,0x77,0x6b]),_0x2000d9,{[_0x15073e([0x6e,0x61,0x6d,0x65])]:_0x15073e([0x45,0x43,0x44,0x53,0x41]),[_0x15073e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15073e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15073e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xaae41f[_0x15073e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15073e([0x6e,0x61,0x6d,0x65])]:_0x15073e([0x45,0x43,0x44,0x53,0x41]),[_0x15073e([0x68,0x61,0x73,0x68])]:{[_0x15073e([0x6e,0x61,0x6d,0x65])]:_0x15073e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c5a2e,_0x48f516,_0x540bd7)||(_0x1c6f1a=!0x1);}}function _0x15fd3e(_0x2e21a5){return _0x2e21a5[_0x15073e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15073e([0x65,0x79]))?JSON[_0x15073e([0x70,0x61,0x72,0x73,0x65])](_0x1223ae(_0x2e21a5)):null;}function _0x1223ae(_0x1bac3c){return window[_0x15073e([0x61,0x74,0x6f,0x62])](_0x1bac3c[_0x15073e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15073e([0x2b]))[_0x15073e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15073e([0x2f])));}function _0xfdc51c(_0x24f063){let _0x563355=0x1505;function _0x3ff281(_0x7c1824){for(let _0x31c07c=0x0;_0x31c07c<_0x7c1824[_0x15073e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31c07c++){const _0x43605a=_0x7c1824[_0x15073e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31c07c);_0x563355=(_0x563355<<0x5)+_0x563355+_0x43605a,_0x563355&=_0x563355;}}function _0x45e997(_0x58f036){Array[_0x15073e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58f036)?_0x58f036[_0x15073e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45e997):_0x58f036&&typeof _0x58f036==_0x15073e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15073e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58f036)[_0x15073e([0x73,0x6f,0x72,0x74])]()[_0x15073e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31547c,_0x3cfeb6])=>{_0x3ff281(_0x31547c),_0x45e997(_0x3cfeb6);}):_0x3ff281(window[_0x15073e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58f036));}return _0x45e997(_0x24f063),_0x563355>>>0x0;}function _0x139d06(_0x631d69){return _0x631d69[_0x15073e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15073e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15073e([0x30]));}function _0x5b6be5(_0x587c67){return _0x587c67[_0x15073e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15073e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15073e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4767bb(_0x3df298){return _0x1c5df8[_0x15073e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15073e([0x68,0x61,0x73])](_0x3df298);}function _0x44d906(_0x3d3c63){return _0x1c5df8[_0x15073e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15073e([0x67,0x65,0x74])](_0x3d3c63);}function _0x5875ea(){}function _0x15073e(_0x27769d){return _0x27769d['map'](_0x4168f8=>String['fromCharCode'](_0x4168f8))['join']('');}_0x15a5ba(await _0x116dae());}(this);}['createRevision'](_0x4fd858){const _0xebb00f=this['editor']['plugins']['get']('Users');return new a({'id':_0x4fd858['id'],'name':_0x4fd858['name'],'creator':_0x4fd858['creatorId']?_0xebb00f['getUser'](_0x4fd858['creatorId']):null,'diffData':_0x4fd858['diffData']||_0x4fd858['data'],'authors':_0x4fd858['authorsIds']['map'](_0xb4ef76=>_0xebb00f['getUser'](_0xb4ef76)),'createdAt':new Date(_0x4fd858['createdAt']),'attributes':_0x4fd858['attributes'],'fromVersion':_0x4fd858['fromVersion'],'toVersion':_0x4fd858['toVersion']});}['addRevision'](_0x3b1077,_0x5deaa2=0x0){this['_revisions']['add'](_0x3b1077,_0x5deaa2);}['getRevision'](_0x3f0863){return this['_revisions']['get'](_0x3f0863);}['getRevisions'](_0x891863={'toJSON':!0x1}){const _0x1dcfec=Array['from'](this['_revisions']);return _0x1dcfec['reverse'](),_0x891863['toJSON']?_0x1dcfec['map'](_0x5c2991=>_0x5c2991['toJSON']()):_0x1dcfec;}['getIndex'](_0xb6bcdc){return this['_revisions']['getIndex'](_0xb6bcdc);}['getEarlierVisibleRevision'](_0x4b32ee){const [,_0x449bd1]=this['getRevisionsIterator'](_0x4b32ee,{'direction':'earlier'});return _0x449bd1;}['getLaterVisibleRevision'](_0x817558){const [,_0x5f5939]=this['getRevisionsIterator'](_0x817558,{'direction':'later'});return _0x5f5939;}['getRevisionsInDiff'](_0x7cf228){const _0x553c88=[];for(const _0x420801 of this['getRevisionsIterator'](_0x7cf228['newRevisionId']))if(_0x553c88['push'](_0x420801),_0x420801['id']===_0x7cf228['oldRevisionId'])break;return _0x553c88;}*['getRevisionsIterator'](_0x4994dc,{direction:_0x567a39='earlier',filter:_0x1ceb24=()=>!0x0}={}){const _0xb41cb4='earlier'===_0x567a39?0x1:-0x1;let _0x3ee521=this['_revisions']['get'](_0x4994dc),_0x38996e=this['getIndex'](_0x3ee521);for(yield _0x3ee521;_0x3ee521;){if(_0x38996e+=_0xb41cb4,_0x3ee521=this['getRevision'](_0x38996e),!_0x3ee521)return;_0x1ceb24(_0x3ee521)&&(yield _0x3ee521);}}}function R(_0x49a97d,_0x4b8c9f,_0x4dd3e1){const t=_0x49a97d['t'];switch(_0x4b8c9f){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x4dd3e1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4dd3e1);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x11b6b8,'a':_0x485951,'e':_0x49d971,'r':_0x523d4a,'u':_0x10d7dc};class l extends _0x5b577d{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x36f408,j,_0x294576];}constructor(_0x3f22d1){super(_0x3f22d1),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x205d3c=_0x4a2e00();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x205d3c},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3a33ba=this['repository']['getRevision'](0x0),_0xa5f015=_0x3a33ba&&null===_0x3a33ba['creator']?_0x3a33ba:null;if(this['_continueCurrentRevision']=!!_0xa5f015&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2cec07=this['_source']['getCurrentRevisionId'](),_0x45649d=this['repository']['getRevision'](_0x2cec07);if(_0x45649d)this['_startingVersion']=_0x45649d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x14fa95=this['_source']['history']['_operations']['find'](_0x4489f5=>!_0x4489f5['_isInit']),_0x12ff5a=_0x14fa95?_0x14fa95['baseVersion']:this['_source']['history']['version'];_0x3a33ba?(_0x3a33ba['toVersion']<_0x12ff5a&&_0x3a33ba['_update']({'toVersion':_0x12ff5a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xa5f015['id'],this['_startingVersion']=_0xa5f015['fromVersion']):(this['_startingVersion']=_0x3a33ba['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x12ff5a,this['_continueCurrentRevision']=!0x1);}}else _0xa5f015&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xa5f015['toVersion'],this['editor']['model']['document']['history']['version']),_0xa5f015['fromVersion']===_0xa5f015['toVersion']?(0x0!==_0xa5f015['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xa5f015['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xa5f015['id'],this['_startingVersion']=_0xa5f015['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x2dc499=>!_0x2dc499),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a0552=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2681a5;for(const _0x1d49cb in _0x4a0552){const _0x1461d0=_0x1d49cb,_0x1ce1ec=_0x4a0552[_0x1461d0];if('revisionHistoryLicenseKeyValid'==_0x1ce1ec||'revisionHistoryLicenseKeyInvalid'==_0x1ce1ec||'revisionHistoryLicenseKeyExpired'==_0x1ce1ec||'revisionHistoryLicenseKeyDomainLimit'==_0x1ce1ec||'revisionHistoryLicenseKeyNotAllowed'==_0x1ce1ec||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1ce1ec||'revisionHistoryLicenseKeyTrialLimit'==_0x1ce1ec||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1ce1ec||'revisionHistoryLicenseKeyUsageLimit'==_0x1ce1ec){delete _0x4a0552[_0x1461d0],_0x2681a5=_0x1ce1ec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2681a5&&_0x4a0552['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2681a5&&_0x4a0552['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2681a5&&_0x4a0552['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2681a5&&_0x4a0552['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x22a304=this['repository']['getRevision'](0x0),_0x5c7425=await this['getRevisionDocumentData'](_0x22a304),_0x1f59d5=await this['getRevisionRootsAttributes'](_0x22a304);this['_replaceEditorDataWithRevisionData'](_0x5c7425,_0x1f59d5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x36283e){this['_source']=_0x36283e;}async['update'](){const _0x324ae0=await this['_source']['getLatestVersion']();if(_0x324ae0>this['currentRevision']['toVersion']){await this['_loadState']();const _0x34a835=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x324ae0});_0x34a835['authors']=_0x34a835['authorsIds']['map'](_0x1a6ace=>this['editor']['plugins']['get']('Users')['getUser'](_0x1a6ace)),this['currentRevision']['_update'](_0x34a835);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0xeafa9d={},_0x30016f=null){const _0x37e874=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x30016f>this['currentRevision']['toVersion']&&(_0x30016f=null),null===_0x30016f&&(_0x30016f=await this['_source']['getLatestVersion']());const _0x1edf8e=this['_getFromVersion'](_0x30016f),_0x31a37b=this['buildRevisionData']({'from':_0x1edf8e,'to':_0x30016f});if(this['currentRevision']['toVersion']<_0x30016f){const _0x37c337=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x30016f,'to':_0x30016f});_0x37c337['authors']=[],_0x37c337['authorsIds']=[],_0x37c337['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x37c337,!0x0),delete _0x37c337['authors'],_0x37e874['push'](_0x37c337);}_0xeafa9d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xeafa9d['name']=_0xeafa9d['name']||null,_0xeafa9d['id']=_0xeafa9d['id']||_0x4a2e00(),_0xeafa9d={..._0xeafa9d,..._0x31a37b};const _0xdf172f=this['addRevisionData'](_0xeafa9d);_0x37e874['push'](_0xeafa9d);const _0x2839ad=this['repository']['getIndex'](_0xdf172f);if(0x0!==_0x2839ad){const _0x46d040=this['repository']['getRevision'](_0x2839ad-0x1);if(_0x46d040['fromVersion']!==_0x30016f){const _0xe2b9e0=this['_revisionDataBuilder']['getData'](_0x30016f,_0x46d040['toVersion']),_0x431913={'id':_0x46d040['id'],'diffData':_0xe2b9e0['diffData'],'authorsIds':_0xe2b9e0['authorsIds'],'authors':_0xe2b9e0['authorsIds']['map'](_0x495522=>this['editor']['plugins']['get']('Users')['getUser'](_0x495522)),'fromVersion':_0x30016f};_0x46d040===this['currentRevision']&&(_0x431913['createdAt']=new Date(_0xeafa9d['createdAt']['getTime']()+0xa)),_0x46d040['_update'](_0x431913,!0x0),delete _0x431913['authors'],_0x37e874['push'](_0x431913);}}if(this['adapter']){for(const _0x4c76d4 of _0x37e874)this['_bufferUpdate'](_0x4c76d4['id'],_0x4c76d4,!0x0);this['sendBufferedUpdates']();}return _0xdf172f;}['addRevisionData'](_0x347b3d){const _0x1052db=this['repository']['createRevision'](_0x347b3d);return this['adapter']&&_0x1052db['on']('_update',(_0x52276f,_0x456cda,_0x8b245c)=>{_0x8b245c||(this['_bufferUpdate'](_0x456cda['id'],_0x456cda,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1052db,this['_findInsertionIndex'](_0x1052db)),_0x1052db;}async['getRevisionDocumentData'](_0x31f0aa){await this['_loadRevisionData'](_0x31f0aa);const _0x434fc9={};for(const _0x3c10e1 in _0x31f0aa['diffData']){if(_0x31f0aa['diffData'][_0x3c10e1]['attachChange']&&!_0x31f0aa['diffData'][_0x3c10e1]['attachChange']['isAttached'])continue;const _0x5026b3=this['_removeRevisionMarkers'](JSON['parse'](_0x31f0aa['diffData'][_0x3c10e1]['insertions'])),_0x243b5e=this['editor']['editing']['view']['document'],_0x3dc5d9=new _0x4a4d01(_0x243b5e,_0x5026b3['map'](_0x552931=>V(_0x552931,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x434fc9[_0x3c10e1]=this['editor']['data']['processor']['toData'](_0x3dc5d9),this['editor']['data']['processor']['useFillerType']('default');}return _0x434fc9;}async['getRevisionRootsAttributes'](_0x53e688){await this['_loadRevisionData'](_0x53e688);const _0xf47484={};for(const _0x58c6f2 in _0x53e688['diffData'])_0x53e688['diffData'][_0x58c6f2]['attachChange']&&!_0x53e688['diffData'][_0x58c6f2]['attachChange']['isAttached']||(_0xf47484[_0x58c6f2]=_0x53e688['diffData'][_0x58c6f2]['attributesAfter']||{});return _0xf47484;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2af181=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4ed249=0x0;_0x4ed249<_0x2af181['length'];_0x4ed249++){const _0xfaa5d6=_0x2af181[_0x4ed249];let _0xf4b570=!0x1;for(const _0x9e4825 of Object['keys'](_0xfaa5d6))void 0x0===_0xfaa5d6[_0x9e4825]?delete _0xfaa5d6[_0x9e4825]:'id'!==_0x9e4825&&(_0xf4b570=!0x0);_0xf4b570||(_0x2af181[_0x4ed249]=null);}if(_0x2af181=_0x2af181['filter'](_0x4fa853=>null!==_0x4fa853),!_0x2af181['length'])return;for(let _0x561dbe=0x0;_0x561dbe<_0x2af181['length'];_0x561dbe++){const _0x270873=_0x2af181[_0x561dbe];void 0x0!==_0x270873['fromVersion']&&void 0x0===_0x270873['toVersion']&&(_0x270873['toVersion']=this['repository']['getRevision'](_0x270873['id'])['toVersion']),void 0x0!==_0x270873['toVersion']&&void 0x0===_0x270873['fromVersion']&&(_0x270873['fromVersion']=this['repository']['getRevision'](_0x270873['id'])['fromVersion']);}const _0x5e673f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2af181,_0x5e673f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x28c58a=>{if(_0x28c58a){for(const _0x4816f8 of _0x28c58a)this['setRevisionData']({'id':_0x4816f8['id'],'createdAt':_0x4816f8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4b2bfe,_0x3ac968){let _0x16190a=this['editor']['config']['get']('initialData'),_0x4df0fa=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x16190a){_0x16190a={};for(const _0x1618f2 of this['editor']['model']['document']['getRootNames']())_0x16190a[_0x1618f2]='';}if('string'==typeof _0x16190a&&(_0x16190a={'main':_0x16190a}),void 0x0===_0x4df0fa){_0x4df0fa={};for(const _0x23e811 of this['editor']['model']['document']['getRootNames']())_0x4df0fa[_0x23e811]={};}let _0x5bd97f=!0x1;const _0x581f77=Object['keys'](_0x16190a),_0x4b1e8c=Object['keys'](_0x4b2bfe);for(const _0x4918d8 of _0x581f77){if(_0x16190a[_0x4918d8]!==_0x4b2bfe[_0x4918d8]&&''!==_0x16190a[_0x4918d8]['trim']()){_0x5bd97f=!0x0;break;}if(!_0x3ee46e(_0x4df0fa[_0x4918d8],_0x3ac968[_0x4918d8])&&Object['keys'](_0x4df0fa[_0x4918d8])['length']>0x0){_0x5bd97f=!0x0;break;}}_0x5bd97f||(_0x5bd97f=_0x4b1e8c['some'](_0x23862b=>!this['editor']['model']['document']['getRoot'](_0x23862b))),_0x5bd97f&&_0x14c8c1('editor-initial-data-replaced-with-revision-data',{'editorData':_0x16190a,'editorRootsAttributes':_0x4df0fa,'revisionData':_0x4b2bfe,'revisionRootsAttributes':_0x3ac968}),this['editor']['config']['set']('initialData',_0x4b2bfe),this['editor']['config']['set']('rootsAttributes',_0x3ac968);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x537dbb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x537dbb['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x31c16c){const _0x266b8f=this['repository']['getRevisions']();_0x266b8f['reverse']();let _0x2bf5b6=0x0;for(;_0x2bf5b6<_0x266b8f['length'];){const _0x3db206=_0x266b8f[_0x2bf5b6];if(_0x3db206===this['currentRevision']){_0x2bf5b6++;continue;}if(_0x3db206['id']===this['_initialRevisionId'])break;const _0x271912=_0x31c16c['toVersion']-_0x3db206['toVersion']||_0x31c16c['fromVersion']-_0x3db206['fromVersion'];if(_0x271912>0x0)break;if(_0x271912<0x0)_0x2bf5b6++;else{if(!_0x31c16c['creator']&&_0x3db206['creator'])break;if(_0x3db206['creator']||!_0x31c16c['creator']){if(_0x31c16c['createdAt']>_0x3db206['createdAt'])break;_0x2bf5b6++;}else _0x2bf5b6++;}}return _0x2bf5b6;}['setRevisionData'](_0x45ec88){const _0x25d4a6=this['repository']['getRevision'](_0x45ec88['id']);if(_0x45ec88['createdAt']&&(_0x45ec88['createdAt']=new Date(_0x45ec88['createdAt'])),_0x45ec88['authorsIds']){const _0x3e3f16=this['editor']['plugins']['get']('Users');_0x45ec88['authors']=_0x45ec88['authorsIds']['map'](_0x3f01f0=>_0x3e3f16['getUser'](_0x3f01f0));}_0x25d4a6['_update'](_0x45ec88,!0x0);}['buildRevisionData']({revision:_0x57ef70=null,from:_0x2cbc94=null,to:_0x35ea85=null}){_0x2cbc94=null!==_0x2cbc94?_0x2cbc94:_0x57ef70['fromVersion'],_0x35ea85=null!==_0x35ea85?_0x35ea85:_0x57ef70['toVersion'];const _0x3c5887=this['_revisionDataBuilder']['getData'](_0x2cbc94,_0x35ea85),_0x4f50b0={'diffData':_0x3c5887['diffData'],'authorsIds':_0x3c5887['authorsIds'],'fromVersion':_0x2cbc94,'toVersion':_0x35ea85};if(!_0x57ef70||_0x35ea85!==_0x57ef70['toVersion']){const _0x2f38e6=_0x35ea85-0x1,_0x49f69f=this['_source']['history']['getOperation'](_0x2f38e6);_0x4f50b0['createdAt']=_0x49f69f&&_0x49f69f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2cbc94===this['_loadedStateData']['fromVersion']){for(const _0x308d4d of this['_loadedStateData']['authors'])_0x4f50b0['authorsIds']['includes'](_0x308d4d['id'])||_0x4f50b0['authorsIds']['push'](_0x308d4d['id']);}return _0x4f50b0;}['_loadRevisionData'](_0x1324ff){if(!_0x1324ff||_0x1324ff['diffData'])return Promise['resolve']();{const _0x5dcd9b=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5dcd9b,'revisionId':_0x1324ff['id']})['then'](_0x8058f1=>{_0x1324ff['diffData']=_0x8058f1['diffData'];});}}['_bufferUpdate'](_0x28cec5,_0x3014eb,_0x57df46){if(this['_bufferedUpdates']['has'](_0x28cec5)){const _0x41720c=this['_bufferedUpdates']['get'](_0x28cec5);_0x3014eb=_0x57df46?{..._0x41720c,..._0x3014eb}:{..._0x3014eb,..._0x41720c};}this['_bufferedUpdates']['set'](_0x28cec5,_0x3014eb);}['_getFromVersion'](_0x2e2fa6){const _0x2e03ea=this['repository']['getRevisions']();_0x2e03ea['reverse'](),_0x2e03ea['shift']();const _0x19c62b=_0x2e03ea['find'](_0x57d6a1=>_0x57d6a1['toVersion']<=_0x2e2fa6)['toVersion'];return _0x19c62b<this['_startingVersion']?this['_startingVersion']:_0x19c62b;}['_createInitialRevision'](_0x3ad4ff){const _0x5e5032=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5e5032)this['_initialRevisionId']=_0x5e5032['id'];else{const _0x4fbc9f=!this['editor']['model']['document']['roots']['find'](_0x55de3=>this['editor']['model']['hasContent'](_0x55de3)),_0x17492b=this['editor']['plugins']['get']('Users')['me']['id'],_0x423314=R(this['editor']['locale'],_0x4fbc9f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3ad4ff,'to':_0x3ad4ff,'id':this['_initialRevisionId'],'name':_0x423314,'creatorId':_0x17492b});}}['_createCurrentRevision'](_0x150ccc){const _0x254ac0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x254ac0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x150ccc,'to':_0x150ccc,'id':_0x254ac0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x160027,from:_0x47d0f2,to:_0x47a9df,creatorId:_0x4f2248,id:_0x5891fb}){const _0x46104a=this['buildRevisionData']({'from':_0x47d0f2,'to':_0x47a9df});_0x46104a['name']=_0x160027,_0x46104a['creatorId']=_0x4f2248,_0x46104a['id']=_0x5891fb;const _0x2d407c=this['addRevisionData'](_0x46104a);return this['adapter']&&this['_bufferUpdate'](_0x46104a['id'],_0x46104a,!0x0),_0x2d407c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x307cc0){return(_0x307cc0=_0x307cc0['filter'](_0x3206cf=>!_0x3206cf['name']||'revision-start'!==_0x3206cf['name']&&'revision-end'!==_0x3206cf['name']))['forEach'](_0x57b1a9=>{'string'!=typeof _0x57b1a9&&(_0x57b1a9['children']=this['_removeRevisionMarkers'](_0x57b1a9['children']),_0x57b1a9['attributes']=_0x57b1a9['attributes']['filter'](_0x4f37a5=>!_0x4f37a5[0x0]['startsWith']('data-revision-')));}),_0x307cc0;}}function V(_0x30a0e4,_0x53d730){const _0x35d634=_0x53d730['editing']['view']['document'];if('string'==typeof _0x30a0e4)return new _0x275fe8(_0x35d634,_0x30a0e4);{const _0x19ecf6=_0x30a0e4['children']['map'](_0xb800b3=>V(_0xb800b3,_0x53d730));return new(C[_0x30a0e4['type']]||_0x26ab22)(_0x35d634,_0x30a0e4['name'],_0x30a0e4['attributes'],_0x19ecf6);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x53ea2d){this['editor']=_0x53ea2d,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x6cbbb2){this['source']=_0x6cbbb2;const _0x16fda0=new Map(),_0x42e117=new Map(),_0x3522af=this['editor']['model']['document']['roots']['map'](_0x4aec89=>_0x4aec89['rootName']);for(const _0x2a2b01 of _0x3522af){const _0x4c535b=this['editor']['model']['document']['getRoot'](_0x2a2b01),_0x11b835=F(_0x4c535b);_0x16fda0['set'](_0x2a2b01,_0x11b835),_0x42e117['set'](_0x2a2b01,Object['fromEntries'](_0x4c535b['getAttributes']()));}const _0x23777f=Array['from'](this['editor']['model']['markers'])['map'](_0x413ba1=>[_0x413ba1['name'],_0x413ba1['getRange']()]),_0x26e63c=this['source']['version'];this['_saveMetaData'](_0x26e63c,_0x16fda0,_0x23777f,_0x42e117),this['_startingRevisionId']=this['_revisionId'];const _0xab2014=new Map(),_0x42ad7d=new Map();for(const _0x53139e of _0x3522af){const _0x57a78f=B(_0x53139e);_0xab2014['set'](_0x53139e,_0x57a78f),_0x42ad7d['set'](_0x53139e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xab2014,[],_0x42ad7d);}['getData'](_0x588afa,_0xae6886){if(this['_lastFrom']===_0x588afa&&this['_lastTo']<=_0xae6886)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xae6886,!0x0);else{if(!this['_savedMetaData']['has'](_0x588afa)){const _0x5da8ad=this['_getPreviousFrom'](_0x588afa);this['_calculateMetaData'](_0x5da8ad,_0x588afa,!0x1);}this['_calculateMetaData'](_0x588afa,_0xae6886,!0x0);}return this['_lastFrom']=_0x588afa,this['_lastTo']=_0xae6886,this['_getState']();}['loadState'](_0x130199){this['_reset'](),this['_lastFrom']=_0x130199['fromVersion'],this['_lastTo']=_0x130199['toVersion'];for(const _0x4549fc in _0x130199['diffData']){const _0x5bae10=_0x130199['diffData'][_0x4549fc]['attachChange'],_0x37be30=_0x1875bd(_0x130199['diffData'][_0x4549fc]['attributesBefore'])||{},_0x4a9d79=this['_makeModelFromViewString'](_0x130199['diffData'][_0x4549fc]['deletions']);_0x4a9d79['rootName']=_0x4549fc,_0x4a9d79['_isAttached']=!_0x5bae10||!_0x5bae10['isAttached'],_0x4a9d79['isAttached']=()=>_0x4a9d79['_isAttached'],this['_baseRoots']['set'](_0x4549fc,_0x4a9d79),this['_baseRootsAttributes']['set'](_0x4549fc,_0x37be30),_0x5bae10&&this['_touchedRoots']['set'](_0x4549fc,_0x5bae10);const _0x15c781=this['_makeIdsRoot'](_0x4a9d79);this['_baseIdsRoots']['set'](_0x4549fc,_0x15c781);for(const [_0x376981,_0x76ecd3]of _0x4a9d79['markers']){if(!_0x376981['startsWith']('revision:'))continue;const _0x232a35=_0x376981['split'](':')[0x2];for(const _0x200cbe of _0x76ecd3['getWalker']({'singleCharacters':!0x0})){const _0x4b59ff=this['_getVidAttributeName'](_0x200cbe),_0xe2f353='elementEnd'==_0x200cbe['type']?_0x200cbe['previousPosition']['path']['slice'](0x0,-0x1):_0x200cbe['previousPosition']['path'],_0x5a9160=_0x15c781['getNodeByPath'](_0xe2f353)['getAttribute'](_0x4b59ff);this['_touched']['set'](_0x5a9160,{'userId':_0x232a35});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4140bb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x496d3f=>!this['_touched']['has'](_0x496d3f));let _0x1ad83c=0x0;const _0x3f2588=new Map();for(const _0xf91dc7 in _0x130199['diffData']){const _0x4cc857=_0x130199['diffData'][_0xf91dc7]['attachChange'],_0xc126a1=_0x1875bd(_0x130199['diffData'][_0xf91dc7]['attributesAfter'])||{},_0x66cad0=this['_makeModelFromViewString'](_0x130199['diffData'][_0xf91dc7]['insertions']);_0x66cad0['rootName']=_0xf91dc7,_0x66cad0['_isAttached']=!_0x4cc857||_0x4cc857['isAttached'],_0x66cad0['isAttached']=()=>_0x66cad0['_isAttached'],this['_diffRoots']['set'](_0xf91dc7,_0x66cad0),this['_diffRootsAttributes']['set'](_0xf91dc7,_0xc126a1);const _0x2b7aaf=this['_makeIdsRoot'](_0x66cad0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xf91dc7,_0x2b7aaf),_0x3f2588['set'](_0xf91dc7,_0x66cad0['isAttached']()?_0xc126a1:{});for(const [_0x2e8163,_0x5b2070]of _0x66cad0['markers']){if(!_0x2e8163['startsWith']('revision:'))continue;const _0x541ecc=_0x2e8163['split'](':')[0x2];for(const _0x46d506 of _0x5b2070['getWalker']({'singleCharacters':!0x0})){const _0x424dec=this['_getVidAttributeName'](_0x46d506),_0x51e5c3=this['_revisionId']++,_0x9d960='elementEnd'==_0x46d506['type']?_0x46d506['previousPosition']['path']['slice'](0x0,-0x1):_0x46d506['previousPosition']['path'];_0x2b7aaf['getNodeByPath'](_0x9d960)['_setAttribute'](_0x424dec,_0x51e5c3),this['_touched']['set'](_0x51e5c3,{'userId':_0x541ecc});}}for(const _0xb75cb9 of this['editor']['model']['createRangeIn'](_0x66cad0)['getWalker']({'singleCharacters':!0x0})){const _0x35a592=this['_getVidAttributeName'](_0xb75cb9),_0x3ca51f='elementEnd'==_0xb75cb9['type']?_0xb75cb9['previousPosition']['path']['slice'](0x0,-0x1):_0xb75cb9['previousPosition']['path'],_0x17d826=_0x2b7aaf['getNodeByPath'](_0x3ca51f);_0x17d826['getAttribute'](_0x35a592)>0x0||_0x17d826['_setAttribute'](_0x35a592,_0x4140bb[_0x1ad83c++]);}for(const [_0x383e43,_0x5e31dc]of _0x66cad0['markers'])_0x383e43['startsWith']('revision:')||this['_markers']['set'](_0x383e43,_0x5e31dc);}const _0x5e1d9f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5e1d9f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5e1d9f,0x1));const _0x1ed385=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1ed385),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ed385,0x1));const _0x469d4c=Array['from'](this['_diffRoots'])['map'](([_0x447b4f,_0x216df0])=>[_0x447b4f,F(_0x216df0)]);this['_saveMetaData'](this['_lastTo'],_0x469d4c,this['_markers'],_0x3f2588);}['_makeModelFromViewString'](_0x3aef9b){const _0x2e5c0a=JSON['parse'](_0x3aef9b),_0x1613df=this['editor']['editing']['view']['document'],_0x276962=new _0x4a4d01(_0x1613df,_0x2e5c0a['map'](_0x54ecee=>V(_0x54ecee,this['editor'])));return this['editor']['data']['toModel'](_0x276962);}['_saveMetaData'](_0x19cf54,_0xf17c3c,_0x558917,_0x32b03a){const _0x3c5c31=new Map(_0xf17c3c),_0x28ff71=new Map(_0x1875bd(_0x32b03a)),_0x355173=new Map();for(const [_0x840cd8,_0x2b7f29]of _0x558917)_0x355173['set'](_0x840cd8,{'start':_0x2b7f29['start']['clone'](),'end':_0x2b7f29['end']['clone'](),'rootName':_0x2b7f29['root']['rootName']});this['_savedMetaData']['set'](_0x19cf54,{'roots':_0x3c5c31,'markers':_0x355173,'rootsAttributes':_0x28ff71});}['_removeMetaData'](_0x22af86){this['_savedMetaData']['delete'](_0x22af86);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x5099bf,_0x5c8949=null){let _0x2566ec=null;_0x5099bf['is']('documentFragment')||(_0x2566ec=new ft(_0x5099bf['name'],{'vid_start':null===_0x5c8949?this['_revisionId']++:_0x5c8949++}));const _0x345a1f=[];for(const _0xfeec06 of _0x5099bf['getChildren']())if(_0xfeec06['is']('element')){_0x345a1f['push'](this['_makeIdsRoot'](_0xfeec06,_0x5c8949));const _0x34ae27=_0x345a1f[_0x345a1f['length']-0x1];null!==_0x5c8949&&(_0x5c8949=_0x34ae27['is']('element','$text')?_0x34ae27['getAttribute']('vid')+0x1:_0x34ae27['getAttribute']('vid_end')+0x1);}else{for(let _0x50b37c=0x0;_0x50b37c<_0xfeec06['offsetSize'];_0x50b37c++)_0x345a1f['push'](new ft('$text',{'vid':null===_0x5c8949?this['_revisionId']++:_0x5c8949++}));}if(_0x5099bf['is']('documentFragment')){const _0x2f06b1=B(_0x5099bf['rootName']);return _0x2f06b1['_insertChild'](0x0,_0x345a1f),_0x2f06b1;}return _0x2566ec['_setAttribute']('vid_end',null===_0x5c8949?this['_revisionId']++:_0x5c8949++),_0x2566ec['_insertChild'](0x0,_0x345a1f),_0x2566ec;}['_calculateMetaData'](_0x24bcbe,_0x57b420,_0x3fd5b3){this['_reset']();const {roots:_0x2c77a8,markers:_0x4ab6b1,rootsAttributes:_0x5a5f3d}=this['_savedMetaData']['get'](_0x24bcbe);this['_baseRoots']=new Map(_0x2c77a8),this['_baseRootsAttributes']=new Map(_0x1875bd(_0x5a5f3d));for(const [_0x209cba,_0x4a3db6]of this['_baseRoots'])if('$graveyard'!==_0x209cba&&(this['_diffRoots']['set'](_0x209cba,F(_0x4a3db6)),this['_diffRootsAttributes']=new Map(_0x1875bd(_0x5a5f3d)),_0x3fd5b3)){const _0x21396c=this['_revisionId'];this['_idsRoots']['set'](_0x209cba,this['_makeIdsRoot'](_0x4a3db6)),this['_baseIdsRoots']['set'](_0x209cba,this['_makeIdsRoot'](_0x4a3db6,_0x21396c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3fd5b3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xfa3bff,_0x3492fd]of _0x4ab6b1){const _0x52aaaf=this['_baseRoots']['get'](_0x3492fd['rootName']),_0x25f2a3=this['_diffRoots']['get'](_0x3492fd['rootName']),_0x169195=new vt(this['_fixPosition'](_0x3492fd['start'],_0x52aaaf),this['_fixPosition'](_0x3492fd['end'],_0x52aaaf)),_0xa2fc3b=this['_fixRange'](_0x169195,_0x25f2a3);_0x52aaaf['markers']['set'](_0xfa3bff,_0x169195),this['_markers']['set'](_0xfa3bff,_0xa2fc3b);}this['_applyOperations'](_0x24bcbe,_0x57b420,_0x3fd5b3);}['_applyOperations'](_0x23232b,_0x5056ee,_0x2d1cf6){for(const _0x281c66 of this['source']['getOperations'](_0x23232b,_0x5056ee))this['_handleOperation'](_0x281c66,_0x2d1cf6);for(const _0x5a32ad of this['_diffRoots']['values']())_0x5a32ad['markers']['clear']();for(const [_0x54d0b7,_0x44a615]of this['_markers']){this['_diffRoots']['get'](_0x44a615['root']['rootName'])['markers']['set'](_0x54d0b7,_0x44a615['clone']());}const _0x3e48c0=new Map(),_0x19e4c3=new Map();for(const [_0x310597,_0x85ca2f]of this['_diffRoots'])_0x3e48c0['set'](_0x310597,F(_0x85ca2f)),_0x19e4c3['set'](_0x310597,this['_diffRootsAttributes']['get'](_0x310597));this['_saveMetaData'](_0x5056ee,_0x3e48c0,this['_markers'],_0x19e4c3);}['_getPreviousFrom'](_0x209acf){const _0x3d3ba9=Array['from'](this['_savedMetaData']['keys']());_0x3d3ba9['sort']((_0x414dad,_0x243651)=>_0x414dad-_0x243651),_0x3d3ba9['reverse']();for(const _0x355b8a of _0x3d3ba9)if(_0x355b8a<_0x209acf)return _0x355b8a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1e45ef,_0x5ee3ed){const _0x3545f2=Array['from'](_0x5ee3ed['markers'])['map'](([_0xf12cea,_0x4e9e5d])=>[_0xf12cea,this['_fixRange'](_0x4e9e5d,_0x1e45ef)]);_0x1e45ef['markers']=new Map(_0x3545f2);}['_transformMarkers'](_0x4b9708){for(const _0x3cbe42 of this['_markers']['values']()){const _0x416a37=_0x3cbe42['getTransformedByOperation'](_0x4b9708),_0x141045=vt['_createFromRanges'](_0x416a37);_0x3cbe42['start']=_0x141045['start'],_0x3cbe42['end']=_0x141045['end'];}}['_handleOperation'](_0x53507a,_0x5be788){if('addRoot'!=_0x53507a['type']&&'detachRoot'!=_0x53507a['type']){if('insert'==_0x53507a['type']){const _0x2206fb=_0x53507a['position']['root']['rootName'];this['_diffRoots']['has'](_0x2206fb)||(this['_diffRoots']['set'](_0x2206fb,B(_0x2206fb,!0x0)),this['_diffRootsAttributes']['set'](_0x2206fb,{}),_0x5be788&&this['_idsRoots']['set'](_0x2206fb,B(_0x2206fb,!0x0)));}else{if('addRootAttribute'==_0x53507a['type']||'removeRootAttribute'==_0x53507a['type']||'changeRootAttribute'==_0x53507a['type'])return void this['_handleRootAttributeOperation'](_0x53507a);'marker'==_0x53507a['type']&&this['_handleMarkerOperation'](_0x53507a);}if('marker'!==_0x53507a['type']){const _0x1478d7=this['_cloneOperation'](_0x53507a,this['_diffRoots']);_0x1478d7['_execute'](),this['_transformMarkers'](_0x1478d7);}if(_0x5be788)switch(_0x53507a['type']){case'insert':this['_handleInsertOperation'](_0x53507a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x53507a);break;case'merge':this['_handleMergeOperation'](_0x53507a);break;case'split':this['_handleSplitOperation'](_0x53507a);}}else this['_handleRootOperation'](_0x53507a,_0x5be788);}['_cloneOperation'](_0x1714f0,_0x2d5de0){const _0x2065fe=_0x1714f0['clone']();return _0x2065fe['_authorId']=_0x1714f0['_authorId'],this['_fixOperation'](_0x2065fe,_0x2d5de0),_0x2065fe;}['_getBaseVids'](_0x3bacf5){return _0x3bacf5['map'](_0x2920ba=>{const _0x32df14=this['_getVidAttributeName'](_0x2920ba);return Number(_0x2920ba['item']['getAttribute'](_0x32df14));});}['_generateTape'](_0x519912,_0x43c5c1){if(_0x519912['is']('element','$text'))_0x43c5c1['push']({'item':_0x519912,'type':'text'});else{_0x519912['is']('element')&&_0x43c5c1['push']({'item':_0x519912,'type':'elementStart'});for(const _0x562556 of _0x519912['getChildren']())this['_generateTape'](_0x562556,_0x43c5c1);_0x519912['is']('element')&&_0x43c5c1['push']({'item':_0x519912,'type':'elementEnd'});}return _0x43c5c1;}['_getState'](){const _0xc429b=new Map(this['_touched']),_0x33d26d=new Map(_0xc429b),_0x3b0e6a=new Map(),_0x216498={'insertions':{},'deletions':{}},_0x1276ff={'insertions':{},'deletions':{}},_0x66b5b3=new Map(),_0x552f7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x552f7['delete']('$graveyard');for(const _0x30ff03 of _0x552f7){const _0xdba1a3=this['_diffRoots']['get'](_0x30ff03)||B(_0x30ff03,!0x1),_0x1473a4=this['_baseRoots']['get'](_0x30ff03)||B(_0x30ff03,!0x1);_0xdba1a3['isAttached']()||_0x1473a4['isAttached']()?(_0x216498['insertions'][_0x30ff03]=F(_0xdba1a3),_0x216498['deletions'][_0x30ff03]=F(_0x1473a4),this['_copyMarkers'](_0x216498['deletions'][_0x30ff03],_0x1473a4),this['_copyMarkers'](_0x216498['insertions'][_0x30ff03],_0xdba1a3),_0x1276ff['insertions'][_0x30ff03]=this['_generateTape'](this['_idsRoots']['get'](_0x30ff03),[]),_0x1276ff['deletions'][_0x30ff03]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x30ff03)||B(_0x30ff03,!0x1),[])):_0x552f7['delete'](_0x30ff03);}for(const _0x3cb238 of _0x552f7){const _0x38f3fe=_0x1276ff['insertions'][_0x3cb238];for(const _0x10109f of _0x38f3fe){const _0x2571d3=this['_getVidAttributeName'](_0x10109f),_0x468f8b=_0x10109f['item']['getAttribute'](_0x2571d3);_0x33d26d['delete'](_0x468f8b),_0x468f8b>=this['_startingRevisionId']&&_0x3b0e6a['set'](_0x468f8b,_0xc429b['get'](_0x468f8b));}}for(const _0x4638ed of _0x552f7){const _0x15f3e6=_0x1276ff['insertions'][_0x4638ed],_0x4b5b5b=this['_getBaseVids'](_0x1276ff['deletions'][_0x4638ed]);let _0x5cee9b=0x0;for(const _0x49c717 of _0x15f3e6){const _0x30fe74=this['_getVidAttributeName'](_0x49c717),_0x5de28a=_0x49c717['item']['getAttribute'](_0x30fe74);if(!_0x3b0e6a['has'](_0x5de28a)&&!_0x66b5b3['has'](_0x5de28a)){if(_0x33d26d['has'](_0x5de28a))_0x5cee9b++;else{if(_0x5de28a!=_0x4b5b5b[_0x5cee9b]){const _0x501c07=_0xc429b['get'](_0x5de28a)||_0xc429b['get'](_0x4b5b5b[_0x5cee9b]);for(;_0x5de28a!=_0x4b5b5b[_0x5cee9b];)_0x33d26d['has'](_0x4b5b5b[_0x5cee9b])||(_0x66b5b3['set'](_0x4b5b5b[_0x5cee9b],_0x501c07),_0xc429b['set'](_0x4b5b5b[_0x5cee9b],_0x501c07)),_0x5cee9b++;}_0x5cee9b++;}}}}for(const _0x35a635 of _0x552f7){const _0x2fe991=_0x1276ff['insertions'][_0x35a635];for(const _0x1cfc13 of _0x2fe991){const _0x555c1e=this['_getVidAttributeName'](_0x1cfc13),_0x4bae2c=_0x1cfc13['item']['getAttribute'](_0x555c1e);if(_0x66b5b3['has'](_0x4bae2c)){const _0x4554d9=_0x66b5b3['get'](_0x4bae2c);_0x33d26d['has'](_0x4bae2c)||_0x33d26d['set'](_0x4bae2c,{..._0x4554d9}),_0x3b0e6a['set'](_0x4bae2c,{..._0x4554d9});}}}for(const _0x107456 of _0x33d26d['keys']())_0x107456>=this['_startingRevisionId']&&_0x33d26d['delete'](_0x107456);const _0x5d8636=new Map();for(const _0x4f1a54 of _0x552f7){let _0xb96dc=_0x1276ff['insertions'][_0x4f1a54];for(const _0x1ead1c of _0xb96dc)if(_0x1ead1c['item']['is']('element','tableCell')){const _0x5004e0=this['_getVidAttributeName'](_0x1ead1c),_0x4036bb=_0x1ead1c['item']['getAttribute'](_0x5004e0);if(_0x3b0e6a['has'](_0x4036bb)){const _0x2a7d68=_0x1ead1c['item']['parent']['parent']['getAttribute']('vid_start'),_0x1ce73e=_0x5d8636['get'](_0x2a7d68)||new Set();_0x1ce73e['add'](_0x3b0e6a['get'](_0x4036bb)['userId']),_0x5d8636['set'](_0x2a7d68,_0x1ce73e);}}_0xb96dc=_0x1276ff['deletions'][_0x4f1a54];for(const _0x1f8443 of _0xb96dc)if(_0x1f8443['item']['is']('element','tableCell')){const _0x46a111=this['_getVidAttributeName'](_0x1f8443),_0x5ecf2c=_0x1f8443['item']['getAttribute'](_0x46a111);if(_0x33d26d['has'](_0x5ecf2c)){const _0x522c4e=_0x1f8443['item']['parent']['parent']['getAttribute']('vid_start'),_0x1e2a42=_0x5d8636['get'](_0x522c4e)||new Set();_0x1e2a42['add'](_0x33d26d['get'](_0x5ecf2c)['userId']),_0x5d8636['set'](_0x522c4e,_0x1e2a42);}}for(const _0x39feaf of _0x5d8636['keys']())(_0x3b0e6a['has'](_0x39feaf)||_0x33d26d['has'](_0x39feaf))&&_0x5d8636['delete'](_0x39feaf);}for(const _0x1c4962 of _0x552f7){const _0x232d05=_0x1276ff['insertions'][_0x1c4962];let _0x805fa5=null,_0x440d83=null;for(const _0x3b8b55 of _0x232d05){const _0x5465c1=this['_getVidAttributeName'](_0x3b8b55),_0x2c8ab5=_0x3b8b55['item']['getAttribute'](_0x5465c1),_0x38ef6d=_0x5d8636['get'](_0x2c8ab5);_0x38ef6d&&'elementStart'==_0x3b8b55['type']&&(_0x805fa5=Array['from'](_0x38ef6d)[0x0],_0x440d83=_0x3b8b55['item']['getAttribute']('vid_end')),_0x805fa5&&(_0x33d26d['set'](_0x2c8ab5,{'userId':_0x805fa5}),_0x3b0e6a['set'](_0x2c8ab5,{'userId':_0x805fa5})),_0x2c8ab5==_0x440d83&&(_0x805fa5=null,_0x440d83=null);}}const _0x5bec5d={},_0x170793=new Set();for(const _0x5ecabc of _0x552f7){const _0x1d023d=_0x216498['deletions'][_0x5ecabc],_0x96c83a=_0x216498['insertions'][_0x5ecabc];for(const {userId:_0x2a75d9}of this['_touchedMarkers']['values']())null!==_0x2a75d9&&_0x170793['add'](_0x2a75d9);for(const {userId:_0x269548}of this['_touchedRoots']['values']())null!==_0x269548&&_0x170793['add'](_0x269548);this['_markChanges'](_0x96c83a,_0x1276ff['insertions'][_0x5ecabc],_0x3b0e6a,'insertion',_0x170793),this['_markChanges'](_0x1d023d,_0x1276ff['deletions'][_0x5ecabc],_0x33d26d,'deletion',_0x170793),_0x5bec5d[_0x5ecabc]={'insertions':this['_prepareViewToSave'](_0x96c83a),'deletions':this['_prepareViewToSave'](_0x1d023d),'attachChange':this['_touchedRoots']['get'](_0x5ecabc)||null,'attributesBefore':_0x1875bd(this['_baseRootsAttributes']['get'](_0x5ecabc))||{},'attributesAfter':_0x1875bd(this['_diffRootsAttributes']['get'](_0x5ecabc))};}return{'diffData':_0x5bec5d,'authorsIds':Array['from'](_0x170793)};}['_processRootBeforeSave'](_0x17cca2){for(const [,_0x169f10]of _0x17cca2['markers']){const _0x18db20=_0x169f10['start']['getAncestors']()['filter'](_0x879eed=>'tableCell'==_0x879eed['name']);for(const _0x36fdaf of _0x18db20)0x1==_0x36fdaf['childCount']&&_0x36fdaf['getChild'](0x0)['is']('element','paragraph')&&_0x36fdaf['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x172305){this['_processRootBeforeSave'](_0x172305);const _0x21969a=this['editor']['data']['toView'](_0x172305,{}),_0x48cefb=Array['from'](_0x21969a['getChildren']())['map'](_0x200bf3=>this['_getViewJson'](_0x200bf3));return JSON['stringify'](_0x48cefb);}['_getViewJson'](_0x122497){if(_0x122497['is']('$text'))return _0x122497['data'];{const _0x216c2c=_0x122497;return{'type':Object['keys'](C)['find'](_0x429daf=>_0x122497 instanceof C[_0x429daf]),'name':_0x216c2c['name'],'attributes':Array['from'](_0x216c2c['getAttributes']()),'children':Array['from'](_0x216c2c['getChildren']())['map'](_0xff08ed=>this['_getViewJson'](_0xff08ed))};}}['_markChanges'](_0x16e1b5,_0x2f2884,_0x5463af,_0x57f9b3,_0x52b46d){let _0x2c1424=null,_0x5bf1da=null,_0xd238c8=0x0;const _0x421e0c=this['editor']['model'];for(let _0x55f056=0x0;_0x55f056<_0x2f2884['length'];_0x55f056++){const _0x5bcdd9=this['_getVidAttributeName'](_0x2f2884[_0x55f056]),_0x4c0d3a=_0x2f2884[_0x55f056]['item']['getAttribute'](_0x5bcdd9),_0x543228=_0x5463af['get'](_0x4c0d3a),_0x457b52=_0x55f056==_0x2f2884['length']-0x1;(!_0x2c1424&&_0x543228&&(_0x2c1424=_0x543228,_0x5bf1da=_0x2f2884[_0x55f056]),_0x2c1424&&(!_0x543228||_0x543228['userId']!=_0x2c1424['userId']))&&(_0x6a15a3(_0x543228,J(_0x5bf1da,_0x16e1b5,_0x421e0c),J(_0x2f2884[_0x55f056],_0x16e1b5,_0x421e0c)),_0x2c1424=_0x543228||null,_0x5bf1da=_0x543228?_0x2f2884[_0x55f056]:null),_0x2c1424&&_0x457b52&&_0x6a15a3(_0x543228,J(_0x5bf1da,_0x16e1b5,_0x421e0c),q(_0x2f2884[_0x55f056],_0x16e1b5,_0x421e0c));}function _0x6a15a3(_0x11cfd4,_0x1ea746,_0x370296){const _0xd47034=_0x2c1424['userId'],_0x3ec65f='revision:'+_0x57f9b3+':'+_0xd47034+':'+_0xd238c8++,_0x2abe19=_0x421e0c['createRange'](_0x1ea746,_0x370296);_0x16e1b5['markers']['set'](_0x3ec65f,_0x2abe19),null!==_0xd47034&&_0x52b46d['add'](_0xd47034);}}['_getVidAttributeName'](_0x47624f){switch(_0x47624f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xe07734,_0x14311c){_0xe07734['baseVersion']=null;for(const _0x5463fa in _0xe07734){const _0x8c5cee=_0xe07734[_0x5463fa];if(_0x8c5cee instanceof gt){const _0x147561=_0x14311c['get'](_0x8c5cee['root']['rootName']);_0xe07734[_0x5463fa]=this['_fixPosition'](_0x8c5cee,_0x147561);}if(_0x8c5cee instanceof vt){const _0x492141=_0x14311c['get'](_0x8c5cee['root']['rootName']);_0xe07734[_0x5463fa]=this['_fixRange'](_0x8c5cee,_0x492141);}'root'===_0x5463fa&&(_0xe07734['root']=_0x14311c['get'](_0xe07734['root']['rootName']));}}['_fixRange'](_0xbcd7a5,_0x555900){return this['editor']['model']['createRange'](this['_fixPosition'](_0xbcd7a5['start'],_0x555900),this['_fixPosition'](_0xbcd7a5['end'],_0x555900));}['_fixPosition'](_0x9674ac,_0x5f0cd0){return this['editor']['model']['createPositionFromPath'](_0x5f0cd0,_0x9674ac['path'],_0x9674ac['stickiness']);}['_handleInsertOperation'](_0x91ee23){const _0x2fb0f8=this['_idsRoots']['get'](_0x91ee23['position']['root']['rootName']),_0x1442b3=this['_fixPosition'](_0x91ee23['position'],_0x2fb0f8),_0x199126=null===_0x91ee23['_authorId']?null:_0x91ee23['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46e7cb=_0x1442b3['parent'],_0x3117a3=this['_revisionId'],_0x48904e=[];for(const _0x8487f0 of _0x91ee23['nodes'])if(_0x8487f0['is']('element'))_0x48904e['push'](this['_makeIdsRoot'](_0x8487f0));else{for(let _0x31faa5=0x0;_0x31faa5<_0x8487f0['offsetSize'];_0x31faa5++)_0x48904e['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x299aad=this['_revisionId'];for(let _0x3509b2=_0x3117a3;_0x3509b2<_0x299aad;_0x3509b2++)this['_touched']['set'](_0x3509b2,{'userId':_0x199126});_0x46e7cb['_insertChild'](_0x1442b3['offset'],_0x48904e);}['_handleMoveOperation'](_0x24b14a){(_0x24b14a=this['_cloneOperation'](_0x24b14a,this['_idsRoots']))['_execute']();const _0x50770e=null===_0x24b14a['_authorId']?null:_0x24b14a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x396e44=_0x24b14a['getMovedRangeStart'](),_0x38b110=_0x396e44['parent'],_0x5366f8=_0x396e44['offset'];!function _0x18bbd9(_0x416b77,_0x4e7c9c,_0x4c89f5,_0x1e0955){for(let _0x36748d=_0x4c89f5;_0x36748d<_0x1e0955;_0x36748d++){const _0x479851=_0x4e7c9c['getChild'](_0x36748d);_0x479851['is']('element','$text')?_0x416b77['set'](_0x479851['getAttribute']('vid'),{'userId':_0x50770e}):(_0x416b77['set'](_0x479851['getAttribute']('vid_start'),{'userId':_0x50770e}),_0x18bbd9(_0x416b77,_0x479851,0x0,_0x479851['childCount']),_0x416b77['set'](_0x479851['getAttribute']('vid_end'),{'userId':_0x50770e}));}}(this['_touched'],_0x38b110,_0x5366f8,_0x5366f8+_0x24b14a['howMany']);}['_handleMergeOperation'](_0x223edb){const _0x1d60f6=null===(_0x223edb=this['_cloneOperation'](_0x223edb,this['_idsRoots']))['_authorId']?null:_0x223edb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xea39a0=_0x223edb['targetPosition']['parent'],_0x888cad=_0x223edb['sourcePosition']['parent'],_0x40cf14=_0xea39a0['getAttribute']('vid_end'),_0x10137e=_0x888cad['getAttribute']('vid_start');_0xea39a0['_setAttribute']('vid_end',_0x888cad['getAttribute']('vid_end')),_0x888cad['_setAttribute']('vid_end',_0x40cf14),this['_touched']['set'](_0x10137e,{'userId':_0x1d60f6}),this['_touched']['set'](_0x40cf14,{'userId':_0x1d60f6}),_0x223edb['_execute']();}['_handleSplitOperation'](_0x2e843d){const _0x13079e=null===(_0x2e843d=this['_cloneOperation'](_0x2e843d,this['_idsRoots']))['_authorId']?null:_0x2e843d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f0652=_0x2e843d['graveyardPosition'],_0x23a52d=_0x2e843d['splitPosition']['parent'];_0x2e843d['_execute']();const _0x1e565e=_0x23a52d['getAttribute']('vid_end'),_0x5e1ad8=_0x2e843d['insertionPosition']['nodeAfter'];if(_0x1f0652){const _0x2b3865=_0x5e1ad8['getAttribute']('vid_end'),_0x4e927b=_0x23a52d['getAttribute']('vid_end');_0x23a52d['_setAttribute']('vid_end',_0x2b3865),_0x5e1ad8['_setAttribute']('vid_end',_0x4e927b),this['_touched']['set'](_0x23a52d['getAttribute']('vid_end'),{'userId':_0x13079e}),this['_touched']['set'](_0x5e1ad8['getAttribute']('vid_start'),{'userId':_0x13079e});}else{const _0x406ae3=this['_revisionId']++,_0x492121=this['_revisionId']++;_0x23a52d['_setAttribute']('vid_end',_0x406ae3),_0x5e1ad8['_setAttribute']('vid_start',_0x492121),_0x5e1ad8['_setAttribute']('vid_end',_0x1e565e),this['_touched']['set'](_0x406ae3,{'userId':_0x13079e}),this['_touched']['set'](_0x492121,{'userId':_0x13079e});}}['_handleMarkerOperation'](_0x57caa6){if(!_0x57caa6['affectsData'])return;const _0x2b51de=(_0x57caa6=this['_cloneOperation'](_0x57caa6,this['_diffRoots']))['oldRange']?_0x57caa6['oldRange']['root']:null,_0x4fee92=_0x57caa6['newRange']?_0x57caa6['newRange']['root']:null;_0x2b51de&&this['_markers']['delete'](_0x57caa6['name']),_0x4fee92&&this['_markers']['set'](_0x57caa6['name'],_0x57caa6['newRange']['clone']());const _0x218a5d=null===_0x57caa6['_authorId']?null:_0x57caa6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53cd2c=_0x57caa6['name'];if(!this['_touchedMarkers']['has'](_0x53cd2c))return void this['_touchedMarkers']['set'](_0x53cd2c,{'range':_0x57caa6['oldRange'],'userId':_0x218a5d});const _0x1fdc13=this['_touchedMarkers']['get'](_0x53cd2c),_0x149828=_0x1fdc13['range'],_0x4ad03b=_0x57caa6['newRange'];null==_0x149828&&null==_0x4ad03b||_0x149828&&_0x4ad03b&&_0x149828['isEqual'](_0x4ad03b)?this['_touchedMarkers']['delete'](_0x57caa6['name']):_0x1fdc13['userId']=_0x218a5d;}['_handleRootOperation'](_0x5be1f0,_0x146d4b){this['_diffRoots']['has'](_0x5be1f0['rootName'])?this['_diffRoots']['get'](_0x5be1f0['rootName'])['_isAttached']=_0x5be1f0['isAdd']:(this['_diffRoots']['set'](_0x5be1f0['rootName'],B(_0x5be1f0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5be1f0['rootName'],{}),_0x146d4b&&this['_idsRoots']['set'](_0x5be1f0['rootName'],B(_0x5be1f0['rootName'],!0x0)));const _0x130d35=null===_0x5be1f0['_authorId']?null:_0x5be1f0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e8d03=this['_touchedRoots']['get'](_0x5be1f0['rootName']);_0x2e8d03&&_0x2e8d03['userId']===_0x130d35?this['_touchedRoots']['delete'](_0x5be1f0['rootName']):this['_touchedRoots']['set'](_0x5be1f0['rootName'],{'userId':_0x130d35,'isAttached':_0x5be1f0['isAdd']});}['_handleRootAttributeOperation'](_0x486457){const _0x20a28c=this['_diffRootsAttributes']['get'](_0x486457['root']['rootName']);null===_0x486457['newValue']?delete _0x20a28c[_0x486457['key']]:_0x20a28c[_0x486457['key']]=_0x486457['newValue'];}}function F(_0x38a681){const _0x59a181=B(_0x38a681['rootName'],_0x38a681['isAttached']());for(const _0xe9294b of _0x38a681['getChildren']()){const _0x92f732=_0xe9294b['_clone'](!0x0);_0x59a181['_appendChild'](_0x92f732);}return _0x59a181;}function B(_0x28685c,_0x3a4a39=!0x0){const _0x351e15=new mt();return _0x351e15['rootName']=_0x28685c,_0x351e15['_isAttached']=_0x3a4a39,_0x351e15['isAttached']=()=>_0x351e15['_isAttached'],_0x351e15;}function J(_0x507d9a,_0x95d60b,_0x301945){const _0x5a11b8='elementEnd'==_0x507d9a['type']?_0x301945['createPositionAt'](_0x507d9a['item'],'end'):_0x301945['createPositionBefore'](_0x507d9a['item']);return _0x301945['createPositionFromPath'](_0x95d60b,_0x5a11b8['path'],_0x5a11b8['stickiness']);}function q(_0x5991fb,_0x398b17,_0x43476b){const _0x57145b='elementStart'==_0x5991fb['type']?_0x43476b['createPositionAt'](_0x5991fb['item'],0x0):_0x43476b['createPositionAfter'](_0x5991fb['item']);return _0x43476b['createPositionFromPath'](_0x398b17,_0x57145b['path'],_0x57145b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x194204,_0x432a01){super(_0x194204),this['focusTracker']=new _0x431090(),this['keystrokes']=new _0x433897(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x432a01),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x191e69(this);}['render'](){super['render'](),_0xf2cc1a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2d0091=_0x3f2f2d=>_0x3f2f2d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2d0091),this['keystrokes']['set']('arrowleft',_0x2d0091),this['keystrokes']['set']('arrowup',_0x2d0091),this['keystrokes']['set']('arrowdown',_0x2d0091);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5c4ae4){this['revisionNameInputView']['fieldView']['element']['value']=_0x5c4ae4['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x12223e){const _0x460aef=new _0x11290e(this['locale'],_0x5f48cb),_0x7ff1d7=_0x460aef['fieldView'];_0x7ff1d7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x21ba44=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x12223e&&(_0x21ba44+='\x20('+R(this['locale'],'optional')+')'),(_0x460aef['label']=_0x21ba44,_0x7ff1d7['on']('input',()=>{this['revisionNameInputValue']=_0x7ff1d7['element']['value']['trim']();}),_0x460aef);}}class u extends _0x5b577d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x190f1c=this['editor'],_0x85d2b8=_0x190f1c['plugins']['get']('RevisionTracker');_0x190f1c['ui']['componentFactory']['add']('revisionHistory',_0x6e2abb=>{const _0x2fc32e=_0x4c94ed(_0x6e2abb),_0x1af81b=_0x2fc32e['panelView']['children'],_0x22c9be=new _0x1ac7e1(_0x6e2abb),_0x314ea4=new _0x333270(_0x6e2abb),_0x653d78=new te(_0x6e2abb),_0x142ada=new _0x333270(_0x6e2abb),_0x25523c=new te(_0x6e2abb);return _0x2fc32e['bind']('isEnabled')['to'](_0x85d2b8,'isReady',_0x85d2b8,'isEnabled',_0x190f1c,'isReadOnly',(_0x221a2f,_0x3e49f0,_0x851348)=>_0x221a2f&&_0x3e49f0&&!_0x851348),_0x2fc32e['buttonView']['set']({'icon':_0x105b1a['history'],'label':R(_0x6e2abb,'Revision\x20history'),'tooltip':!0x0}),_0x653d78['set']({'label':R(_0x6e2abb,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x653d78['bind']('isEnabled')['to'](_0x85d2b8,'isReady',_0x85d2b8,'isEnabled',_0x190f1c,'isReadOnly',(_0x4b34c6,_0x4df30c,_0x370f3)=>_0x4b34c6&&_0x4df30c&&!_0x370f3),_0x653d78['on']('execute',()=>this['_showDialog']()),_0x25523c['set']({'label':R(_0x6e2abb,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x25523c['bind']('isEnabled')['to'](_0x85d2b8,'isReady',_0x190f1c,'isReadOnly',(_0x563403,_0x29a0dd)=>_0x563403&&!_0x29a0dd),_0x25523c['on']('execute',()=>{_0x190f1c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2fc32e['isOpen']=!0x1,_0x190f1c['editing']['view']['focus']();}),_0x314ea4['children']['add'](_0x653d78),_0x142ada['children']['add'](_0x25523c),_0x22c9be['role']='menu',_0x22c9be['items']['addMany']([_0x314ea4,_0x142ada]),_0x1af81b['add'](_0x22c9be),_0x2fc32e;}),_0x190f1c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4899ca=this['editor'],_0x39aa07=_0x4899ca['locale'],_0x88c6cd=new _0x39d19f(_0x39aa07),_0x57efee=new _0x41953e(_0x39aa07);_0x88c6cd['buttonView']['set']({'icon':_0x105b1a['history'],'label':R(_0x39aa07,'Revision\x20history')});const _0x5bc106=new _0x13e6b2(_0x39aa07,_0x88c6cd),_0x2b54e2=new _0x1ea060(_0x39aa07);_0x2b54e2['set']({'label':R(_0x39aa07,'Save\x20current\x20revision')}),_0x2b54e2['delegate']('execute')['to'](_0x88c6cd),_0x2b54e2['on']('execute',()=>{this['_showDialog']();}),_0x5bc106['children']['add'](_0x2b54e2),_0x57efee['items']['add'](_0x5bc106);const _0x1bfd49=new _0x13e6b2(_0x39aa07,_0x88c6cd),_0x43b8f5=new _0x1ea060(_0x39aa07);return _0x43b8f5['set']({'label':R(_0x39aa07,'Open\x20revision\x20history')}),_0x43b8f5['delegate']('execute')['to'](_0x88c6cd),_0x43b8f5['on']('execute',()=>{_0x4899ca['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1bfd49['children']['add'](_0x43b8f5),_0x57efee['items']['add'](_0x1bfd49),_0x88c6cd['panelView']['children']['add'](_0x57efee),_0x88c6cd;}['_showDialog'](){const _0x12fb6f=this['editor'],_0xd88a29=_0x12fb6f['locale'],_0x179da1=_0x12fb6f['plugins']['get']('Dialog'),_0x28a245=_0x12fb6f['plugins']['get']('RevisionTracker');function _0x21312d(_0x45e6ac){_0x12fb6f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x45e6ac['revisionName']?_0x45e6ac['revisionNameInputView']['errorText']=R(_0xd88a29,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x12fb6f['plugins']['get'](l)['saveRevision']({'name':_0x45e6ac['revisionName']}),_0x179da1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x21312d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x179da1['show']({'id':'revisionSave','title':R(_0xd88a29,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x12fb6f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x179da1['hide']()},{'label':R(_0x12fb6f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xcbf34e){_0xcbf34e['bind']('isEnabled')['to'](_0x28a245,'isReady',_0x28a245,'isEnabled',_0x12fb6f,'isReadOnly',(_0x64ba01,_0x44e6ed,_0x529fe3)=>_0x64ba01&&_0x44e6ed&&!_0x529fe3);},'onExecute':()=>_0x21312d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x46f1d5=this['editor'],_0x38a3a6=_0x46f1d5['locale'];this['_saveRevisionFormView']=new hs(_0x38a3a6,_0x46f1d5['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x319bca,_0x51da95){super(_0x319bca),this['_model']=_0x51da95,this['changeId']=_0x51da95['id'];const _0x2127cc=this['bindTemplate'],_0x3f45ad=R(_0x319bca,_0x51da95['data']['isSuggestion']?'Suggested\x20by':'add'==_0x51da95['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x51da95['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2127cc['to']('type',_0x2083f9=>'ck-revision-change__'+_0x2083f9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3f45ad}]},{'text':'\x20'+_0x51da95['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x22c111(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x34c158){super(),this['id']=_0x34c158['id']||_0x4a2e00(),this['author']=_0x34c158['author'],this['type']=_0x34c158['type'],this['data']=_0x34c158['data']||{},this['rootName']=_0x34c158['rootName'],this['set']('createdAt',_0x34c158['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x30aca7,_0x34da1c){this['newRevisionId']=_0x30aca7,this['oldRevisionId']=_0x34da1c,this['changes']=new _0x5a5c64();}['_setChanges'](_0x367d50){for(const _0x16d548 of _0x367d50)this['changes']['add'](_0x16d548);}}const Z={'c':_0x11b6b8,'a':_0x485951,'e':_0x49d971,'r':_0x523d4a,'u':_0x10d7dc};class d extends _0x5b577d{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x36f408,_0x4ad402,j];}constructor(_0x279cdd){super(_0x279cdd),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4d36a0,_0x412432,_0x1e9f5a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x21076f=>{for(const _0x5edd56 of this['editor']['editing']['view']['document']['roots'])_0x1e9f5a?_0x21076f['removeClass']('ck-editor__editable__overlay',_0x5edd56):_0x21076f['addClass']('ck-editor__editable__overlay',_0x5edd56);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x42a705=>null!==_0x42a705),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x29cf0b,_0x2b08ff,_0x2a102e)=>_0x29cf0b&&_0x2a102e?_0x2b08ff['changes']['getIndex'](_0x2a102e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x15be55,_0x44743a)=>_0x15be55?_0x44743a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4ad402);}['init'](){const _0x420994=this['editor'],_0x4850d5=new yt(_0x420994,{'direction':'backward'}),_0x4f8945=new yt(_0x420994,{'direction':'forward'});(_0x420994['commands']['add']('showPreviousChange',_0x4850d5),_0x420994['commands']['add']('showNextChange',_0x4f8945),_0x420994['commands']['add']('restoreRevision',new _t(_0x420994)),this['on']('change:numberOfChanges',()=>{_0x4850d5['refresh'](),_0x4f8945['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x420994['enableReadOnlyMode']('revision-viewer'),_0x420994['plugins']['has']('WidgetToolbarRepository'))&&_0x420994['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5e6984){await this['loadRevisionData'](_0x5e6984);const _0x4b2f88={};for(const _0xfe57ee in _0x5e6984['diffData']){if(_0x5e6984['diffData'][_0xfe57ee]['attachChange']&&!_0x5e6984['diffData'][_0xfe57ee]['attachChange']['isAttached'])continue;const _0x5cd5ab=this['_removeRevisionMarkers'](JSON['parse'](_0x5e6984['diffData'][_0xfe57ee]['insertions'])),_0x1e2fc1=this['editor']['editing']['view']['document'],_0x5a6402=new _0x4a4d01(_0x1e2fc1,_0x5cd5ab['map'](_0x24f5e1=>this['_getViewObj'](_0x24f5e1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4b2f88[_0xfe57ee]=this['editor']['data']['processor']['toData'](_0x5a6402),this['editor']['data']['processor']['useFillerType']('default');}return _0x4b2f88;}async['getRevisionRootsAttributes'](_0x48989e){await this['loadRevisionData'](_0x48989e);const _0x211606={};for(const _0x3094bb in _0x48989e['diffData'])_0x48989e['diffData'][_0x3094bb]['attachChange']&&!_0x48989e['diffData'][_0x3094bb]['attachChange']['isAttached']||(_0x211606[_0x3094bb]=_0x48989e['diffData'][_0x3094bb]['attributesAfter']||{});return _0x211606;}['_removeRevisionMarkers'](_0x46ef7f){return(_0x46ef7f=_0x46ef7f['filter'](_0x2325d3=>!_0x2325d3['name']||'revision-start'!==_0x2325d3['name']&&'revision-end'!==_0x2325d3['name']))['forEach'](_0x178adb=>{'string'!=typeof _0x178adb&&(_0x178adb['children']=this['_removeRevisionMarkers'](_0x178adb['children']),_0x178adb['attributes']=_0x178adb['attributes']['filter'](_0x53a03e=>!_0x53a03e[0x0]['startsWith']('data-revision-')));}),_0x46ef7f;}async['compare'](_0x11defc,_0x4563c4,_0x253846=!0x1){if(!this['isEnabled'])return;const _0x4890f9=this['diff'],_0xdf02dc=this['repository'],_0x39a079='string'==typeof _0x11defc?_0xdf02dc['getRevision'](_0x11defc):_0x11defc,_0x7b9aa7='string'==typeof _0x4563c4?_0xdf02dc['getRevision'](_0x4563c4):_0x4563c4,_0x2044f4=_0x39a079['id'],_0x467432=_0x7b9aa7?_0x7b9aa7['id']:null;if(!_0x253846&&this['diff']&&this['diff']['newRevisionId']===_0x2044f4&&this['diff']['oldRevisionId']===_0x467432)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2044f4,_0x467432);const _0x3236d0=this['_getRevisionsRange'](_0x39a079,_0x7b9aa7,!0x0)['map'](_0x25b749=>this['loadRevisionData'](_0x25b749));return _0x3236d0['push'](new Promise(_0x38d4ce=>{setTimeout(_0x38d4ce,0x14);})),Promise['all'](_0x3236d0)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x36b18a=this['_getDiff'](_0x2044f4,_0x467432);for(const _0x57ed67 of _0x36b18a['changes'])this['_changeIdToChange']['set'](_0x57ed67['id'],_0x57ed67);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x24a4ef=>{for(const _0x15f25e of this['editor']['model']['document']['getRootNames']())_0x24a4ef['detachRoot'](_0x15f25e);for(const _0x3e0cce of Object['keys'](_0x36b18a['model'])){const _0x176cc8=_0x24a4ef['addRoot'](_0x3e0cce);for(const _0x4bd3da of Object['keys'](_0x36b18a['attributes'][_0x3e0cce]))_0x24a4ef['setAttribute'](_0x4bd3da,_0x36b18a['attributes'][_0x3e0cce][_0x4bd3da],_0x176cc8);_0x24a4ef['insert'](_0x36b18a['model'][_0x3e0cce],_0x176cc8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x36b18a['changes'])),this['isReady']=!0x0;})['catch'](_0x48276a=>{console['error'](_0x48276a),this['_cleanUp'](),_0x4890f9&&(this['diff']=_0x4890f9),this['isReady']=!0x0;});}['addRevisionData'](_0x598248,_0x5b0ce3){const _0x26d6af=this['repository']['createRevision'](_0x598248);return _0x26d6af['on']('_update',(_0x3574e2,_0x4a5a3d,_0x2c223a)=>_0x5b0ce3(_0x4a5a3d,_0x2c223a,_0x26d6af)),this['repository']['addRevision'](_0x26d6af),_0x26d6af;}['loadRevisionData'](_0x1efdbf){if(!_0x1efdbf||_0x1efdbf['diffData'])return Promise['resolve']();{const _0x13f30c=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x13f30c,'revisionId':_0x1efdbf['id']})['then'](_0x1f595c=>{_0x1efdbf['_update']({'diffData':_0x1f595c['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x10f3c4=>{for(const _0x161f72 of this['editor']['model']['document']['getRootNames']())_0x10f3c4['detachRoot'](_0x161f72);});}['_sortAndFilterDiffChanges'](_0x374d55){const _0x32a8b3=[],_0x5dc79b=new Map();for(const _0x704a7b of this['editor']['model']['document']['getRootNames']()){const _0x347711=this['editor']['editing']['view']['getDomRoot'](_0x704a7b);if(!_0x347711)continue;const _0x1a3e9a=_0x347711['getClientRects']()['item'](0x0);_0x1a3e9a&&(_0x32a8b3['push'](_0x704a7b),_0x5dc79b['set'](_0x704a7b,_0x1a3e9a));}return _0x32a8b3['sort']((_0x16a74,_0xe63c0d)=>{const _0x490c0e=_0x5dc79b['get'](_0x16a74),_0x1c7423=_0x5dc79b['get'](_0xe63c0d);return _0x490c0e['y']-_0x1c7423['y']||_0x490c0e['x']-_0x1c7423['x'];}),(_0x374d55=_0x374d55['filter'](_0x309d42=>_0x32a8b3['includes'](_0x309d42['rootName'])))['sort']((_0x2eb82d,_0x56b2e8)=>_0x32a8b3['indexOf'](_0x2eb82d['rootName'])-_0x32a8b3['indexOf'](_0x56b2e8['rootName'])),_0x374d55;}['_makeTape'](_0x3ee9ed){const _0x2d545c=Array['from'](_0x3ee9ed['markers'])['filter'](([_0x53b7ff,_0x4983ee])=>_0x53b7ff['startsWith']('revision:')&&!_0x4983ee['isCollapsed']),_0x21b457=Array['from'](this['editor']['model']['createRangeIn'](_0x3ee9ed)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2d545c['length'])for(const _0xa92048 of _0x21b457){const [_0x3b60aa,_0x3a8683]=_0x2d545c[0x0],[,_0x2e574e,_0x2be25a]=_0x3b60aa['split'](':');if(_0x3a8683['end']['isEqual'](_0xa92048['nextPosition'])&&_0x2d545c['shift'](),(_0xa92048['previousPosition']['isEqual'](_0x3a8683['start'])||_0xa92048['previousPosition']['isAfter'](_0x3a8683['start']))&&('insertion'==_0x2e574e?_0xa92048['isAdded']={'userId':_0x2be25a}:'deletion'==_0x2e574e&&(_0xa92048['isRemoved']={'userId':_0x2be25a})),0x0==_0x2d545c['length'])break;}return _0x21b457;}['_refreshStartEndIndex'](_0x4d6e67){const _0x476581=new Map();for(let _0x52996a=0x0;_0x52996a<_0x4d6e67['length'];_0x52996a++)'text'===_0x4d6e67[_0x52996a]['type']?(_0x4d6e67[_0x52996a]['item']['startIndex']=_0x52996a,_0x4d6e67[_0x52996a]['item']['endIndex']=_0x52996a):('elementStart'===_0x4d6e67[_0x52996a]['type']?_0x4d6e67[_0x52996a]['item']['startIndex']=_0x52996a:'elementEnd'===_0x4d6e67[_0x52996a]['type']&&(_0x4d6e67[_0x52996a]['item']['endIndex']=_0x52996a),_0x476581['set'](_0x4d6e67[_0x52996a]['id'],_0x52996a));for(const _0x5cdbd2 of _0x476581['values']())'elementStart'===_0x4d6e67[_0x5cdbd2]['type']?_0x4d6e67[_0x5cdbd2]['item']['endIndex']=_0x476581['get'](_0x4d6e67[_0x5cdbd2]['pairId']):'elementEnd'===_0x4d6e67[_0x5cdbd2]['type']&&(_0x4d6e67[_0x5cdbd2]['item']['startIndex']=_0x476581['get'](_0x4d6e67[_0x5cdbd2]['pairId']));}['_processTape'](_0x3f0349){for(let _0x445d0f=0x0;_0x445d0f<_0x3f0349['length'];_0x445d0f++){if('elementStart'===_0x3f0349[_0x445d0f]['type'])_0x3f0349[_0x445d0f]['item']['startIndex']=_0x445d0f;else{if('elementEnd'===_0x3f0349[_0x445d0f]['type']){_0x3f0349[_0x445d0f]['item']['endIndex']=_0x445d0f;const _0x36d5c5=_0x3f0349[_0x445d0f]['item']['startIndex'];_0x3f0349[_0x36d5c5]['pairId']=_0x3f0349[_0x445d0f]['id'],_0x3f0349[_0x445d0f]['pairId']=_0x3f0349[_0x36d5c5]['id'];}else _0x3f0349[_0x445d0f]['item']['startIndex']=_0x445d0f,_0x3f0349[_0x445d0f]['item']['endIndex']=_0x445d0f,_0x3f0349[_0x445d0f]['pairId']=null;}_0x3f0349[_0x445d0f]['markersStart']||(_0x3f0349[_0x445d0f]['markersStart']=[],_0x3f0349[_0x445d0f]['markersEnd']=[]);}}['_markInsertions'](_0x1920f0,_0x30263e){const _0x39187f=_0x1920f0['filter'](_0x6990c1=>!_0x6990c1['isAdded']);for(let _0x494184=0x0;_0x494184<_0x30263e['length'];_0x494184++)_0x30263e[_0x494184]['isAdded']&&(_0x39187f[_0x494184]['isAdded']=_0x30263e[_0x494184]['isAdded']);}['_makeModelFromViewString'](_0x2d72de){const _0x267eed=JSON['parse'](_0x2d72de),_0x45e074=this['editor']['editing']['view']['document'],_0x1a4caf=new _0x4a4d01(_0x45e074,_0x267eed['map'](_0x55d00d=>this['_getViewObj'](_0x55d00d)));return this['editor']['data']['toModel'](_0x1a4caf);}['_getViewObj'](_0x226d60){const _0x232be7=this['editor']['editing']['view']['document'];if('string'==typeof _0x226d60)return new _0x275fe8(_0x232be7,_0x226d60);{const _0x393e01=_0x226d60['children']['map'](_0x5c896e=>this['_getViewObj'](_0x5c896e));return new(Z[_0x226d60['type']]||_0x26ab22)(_0x232be7,_0x226d60['name'],_0x226d60['attributes'],_0x393e01);}}['_getDiff'](_0x19a69f,_0x767eeb=null){const _0x258503=this['repository']['getRevision'](_0x19a69f),_0x50b613=_0x767eeb?this['repository']['getRevision'](_0x767eeb):null,_0x5973fe=this['_getRevisionsRange'](_0x258503,_0x50b613),_0x3ddb24=_0x5973fe[_0x5973fe['length']-0x1],_0x13c71a=new Map(),_0x5e299e={'model':{},'attributes':{},'changes':[]},_0x1341eb=new Set(),_0x5ed9ea=new Map();for(let _0x187a22=_0x5973fe['length']-0x1;_0x187a22>=0x0;_0x187a22--){const _0x41e3d5=_0x5973fe[_0x187a22];for(const _0x31dc7e of Object['keys'](_0x41e3d5['diffData']))if(_0x41e3d5['diffData'][_0x31dc7e]['attachChange']){const _0x5b91f5=_0x41e3d5['diffData'][_0x31dc7e]['attachChange'];_0x5b91f5['isAttached']?(_0x1341eb['add'](_0x31dc7e),_0x5ed9ea['has'](_0x31dc7e)&&_0x5ed9ea['get'](_0x31dc7e)['userId']==_0x5b91f5['userId']?_0x5ed9ea['delete'](_0x31dc7e):_0x5ed9ea['set'](_0x31dc7e,_0x5b91f5)):_0x5ed9ea['has'](_0x31dc7e)?(_0x1341eb['delete'](_0x31dc7e),_0x5ed9ea['delete'](_0x31dc7e)):(_0x1341eb['add'](_0x31dc7e),_0x5ed9ea['set'](_0x31dc7e,_0x5b91f5));}else _0x1341eb['add'](_0x31dc7e);}for(const _0x993776 of _0x1341eb){const _0x265bd2=_0x5ed9ea['has'](_0x993776)&&!_0x5ed9ea['get'](_0x993776)['isAttached'];let _0x36e545=_0x265bd2?_0x5973fe['length']-0x1:0x0;const _0x4a6125=_0x265bd2?-0x1:0x1;for(;_0x5973fe[_0x36e545];){const _0x2710e0=_0x5973fe[_0x36e545];if(_0x2710e0['diffData'][_0x993776]){const _0x1950bc=_0x265bd2?_0x2710e0['diffData'][_0x993776]['attributesBefore']:_0x2710e0['diffData'][_0x993776]['attributesAfter'];_0x5e299e['attributes'][_0x993776]=_0x1950bc?_0x1875bd(_0x1950bc):{};break;}_0x36e545+=_0x4a6125;}}for(const _0x50e0d4 of _0x5973fe){_0x50e0d4['model']={};for(const _0x18594b of _0x50e0d4['authors'])_0x13c71a['set'](_0x18594b['id'],_0x18594b);for(const _0x117078 of _0x1341eb){const _0x4363de=_0x50e0d4['diffData'][_0x117078]?_0x50e0d4['diffData'][_0x117078]['insertions']:'[]',_0x3ad22d=_0x50e0d4['diffData'][_0x117078]?_0x50e0d4['diffData'][_0x117078]['deletions']:'[]';_0x50e0d4['model'][_0x117078]={'insertions':this['_makeModelFromViewString'](_0x4363de),'deletions':this['_makeModelFromViewString'](_0x3ad22d)};}}for(const _0x1bf16a of _0x1341eb){let _0x272936=null,_0x2ad098=0x0;const _0x1e3261=new Map(Array['from'](_0x258503['model'][_0x1bf16a]['insertions']['markers'])['filter'](([_0x5b887f])=>!_0x5b887f['startsWith']('revision:')));let _0x8832d7=0x0;for(const _0x46216c of _0x5973fe){const _0x4cd27e=this['_makeTape'](_0x46216c['model'][_0x1bf16a]['insertions']);_0x46216c==_0x258503?(_0x272936=_0x4cd27e,_0x2ad098=_0x272936['length'],_0x272936['forEach'](_0x33f33f=>{_0x33f33f['id']=_0x8832d7++;}),this['_processTape'](_0x272936)):this['_markInsertions'](_0x272936,_0x4cd27e);const _0x2cb767=_0x272936['filter'](_0x3a403a=>!_0x3a403a['isAdded'])['map'](_0x3d6107=>_0x3d6107['id']);let _0x5a447e=0x0;const _0x12942f=this['_makeTape'](_0x46216c['model'][_0x1bf16a]['deletions']);_0x12942f['forEach'](_0x5186a2=>{_0x5186a2['isRemoved']?_0x5186a2['id']=_0x2ad098++:_0x5186a2['id']=_0x2cb767[_0x5a447e++];}),this['_processTape'](_0x12942f),this['_setDistance'](_0x272936,'isAdded'),this['_setDistance'](_0x12942f,'isRemoved'),_0x46216c==_0x258503&&this['_markMarkers'](_0x272936,_0x1e3261),_0x272936=this['_joinTapes'](_0x272936,_0x12942f),this['_refreshStartEndIndex'](_0x272936),this['_setDistance'](_0x272936,'isRemoved');}_0x272936=_0x272936['filter'](_0x1edf82=>!(_0x1edf82['isAdded']&&_0x1edf82['isRemoved']));const _0x137a37=new Map(_0x3ddb24['model'][_0x1bf16a]['deletions']['markers']),_0x1000ec=new Set(_0x1e3261['keys']());for(const _0x2bad5a of _0x137a37['keys']())_0x1000ec['delete'](_0x2bad5a);this['_markSuggestions'](_0x272936,_0x1000ec),this['_fixObsoleteTags'](_0x272936),_0x272936=this['_removeMissingPairs'](_0x272936),_0x272936=this['_markMismatchedRemovedTags'](_0x272936),_0x272936=this['_removeUnsupportedChanges'](_0x272936);const {root:_0x297904,changes:_0xd6ddbd}=this['_makeModelFromTape'](_0x272936,_0x13c71a,_0x1bf16a);_0x5e299e['model'][_0x1bf16a]=_0x297904;const _0x3af292=_0x5ed9ea['get'](_0x1bf16a);if(_0x3af292){const _0x41dc0b=_0x13c71a['get'](_0x3af292['userId']),_0x492d6e=new r({'author':_0x41dc0b,'type':_0x3af292['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1bf16a});_0xd6ddbd['unshift'](_0x492d6e),_0x5e299e['attributes'][_0x1bf16a]['revisionHistoryAttachChange']=_0x492d6e['id'];}_0x5e299e['changes']=_0x5e299e['changes']['concat'](_0xd6ddbd);}return _0x5e299e;}['_markMarkers'](_0x169fad,_0x366e38){for(let _0x1c666d=0x0;_0x1c666d<_0x169fad['length'];_0x1c666d++)for(const [_0x442047,_0x40007a]of _0x366e38)_0x40007a['start']['isEqual'](_0x169fad[_0x1c666d]['previousPosition'])&&_0x169fad[_0x1c666d]['markersStart']['push'](_0x442047),_0x40007a['end']['isEqual'](_0x169fad[_0x1c666d]['nextPosition'])&&_0x169fad[_0x1c666d]['markersEnd']['push'](_0x442047);}['_joinTapes'](_0x2d8ec3,_0x101866){let _0x2f36b1=[],_0x25af1b=0x0,_0x4a7803=0x0;for(;_0x25af1b<_0x2d8ec3['length']||_0x4a7803<_0x101866['length'];){const _0x1aee28=_0x2d8ec3[_0x25af1b]||{},_0x16b991=_0x101866[_0x4a7803]||{};if(_0x1aee28['id']==_0x16b991['id'])_0x25af1b++,_0x4a7803++,_0x2f36b1['push'](_0x1aee28);else{if(_0x16b991['isRemoved']&&_0x1aee28['isAdded']){const {commonTape:_0x2c5967,iEnd:_0x832174,jEnd:_0x47a652}=this['_threeWayMerge'](_0x2d8ec3,_0x25af1b,_0x101866,_0x4a7803);_0x2f36b1=_0x2f36b1['concat'](_0x2c5967),_0x25af1b=_0x832174,_0x4a7803=_0x47a652;}else _0x16b991['isRemoved']?(_0x4a7803++,_0x2f36b1['push'](_0x16b991)):(_0x25af1b++,_0x2f36b1['push'](_0x1aee28));}}return _0x2f36b1;}['_markSuggestions'](_0x2230d1,_0x5e0ca){const _0x40adb5=[];for(let _0x24d3d7=0x0;_0x24d3d7<_0x2230d1['length'];_0x24d3d7++){for(let _0x27caef=0x0;_0x27caef<_0x2230d1[_0x24d3d7]['markersStart']['length'];_0x27caef++){const _0x27eeb2=_0x2230d1[_0x24d3d7]['markersStart'][_0x27caef];if(!_0x5e0ca['has'](_0x27eeb2))continue;const {group:_0x2d0cce,type:_0x352fde,authorId:_0x38d814}=_0x27f969(_0x27eeb2);'revision-suggestion'!=_0x2d0cce||'insertion'!=_0x352fde&&'deletion'!=_0x352fde||(_0x40adb5['unshift']({'type':_0x352fde,'name':_0x27eeb2,'userId':_0x38d814}),_0x2230d1[_0x24d3d7]['markersStart']['splice'](_0x27caef,0x1),_0x27caef--);}_0x1b35b6(_0x2230d1[_0x24d3d7]);for(let _0x1c22ff=0x0;_0x1c22ff<_0x2230d1[_0x24d3d7]['markersEnd']['length'];_0x1c22ff++){const _0x3971fe=_0x2230d1[_0x24d3d7]['markersEnd'][_0x1c22ff];if(!_0x5e0ca['has'](_0x3971fe))continue;const {group:_0x2243ef,type:_0x5439ad}=_0x27f969(_0x3971fe);if('revision-suggestion'!=_0x2243ef||'insertion'!=_0x5439ad&&'deletion'!=_0x5439ad)continue;_0x2230d1[_0x24d3d7]['markersEnd']['splice'](_0x1c22ff,0x1),_0x1c22ff--;const _0x1f1424=_0x40adb5['findIndex'](_0x132caa=>_0x132caa['name']==_0x3971fe);_0x1f1424>-0x1&&_0x40adb5['splice'](_0x1f1424,0x1);}}function _0x27f969(_0x4fb408){const _0x4a4794=_0x4fb408['split'](':');return{'group':_0x4a4794[0x0],'type':_0x4a4794[0x1],'subType':_0x4a4794['length']>=0x5?_0x4a4794[0x2]:null,'id':_0x4a4794['length']<0x5?_0x4a4794[0x2]:_0x4a4794[0x3],'authorId':_0x4a4794['length']<0x5?_0x4a4794[0x3]:_0x4a4794[0x4],'markerCount':0x6==_0x4a4794['length']?_0x4a4794[0x5]:null};}function _0x1b35b6(_0x2852f1){for(let _0x174fc7=0x0;_0x174fc7<_0x40adb5['length'];_0x174fc7++){if(_0x2852f1['isAdded']&&'insertion'==_0x40adb5[_0x174fc7]['type'])return _0x2852f1['isAddSuggestion']=_0x40adb5[_0x174fc7],void delete _0x2852f1['isAdded'];if(!_0x2852f1['isAdded']&&!_0x2852f1['isRemoved']&&'deletion'==_0x40adb5[_0x174fc7]['type'])return void(_0x2852f1['isRemoveSuggestion']=_0x40adb5[_0x174fc7]);}}}['_setDistance'](_0x35157b,_0x5d02aa){let _0x4b1869=0x0,_0x139018=!0x1;const _0x11814c=new Map();for(const _0x5b8143 of _0x35157b)_0x5b8143[_0x5d02aa]?_0x139018&&(_0x4b1869++,_0x139018=!0x1):(_0x4b1869++,_0x139018=!0x0),_0x11814c['set'](_0x5b8143['id'],_0x4b1869);for(let _0x454a91=0x0;_0x454a91<_0x35157b['length'];_0x454a91++){if('isRemoved'==_0x5d02aa&&_0x35157b[_0x454a91]['isAdded']||'isAdded'==_0x5d02aa&&_0x35157b[_0x454a91]['isRemoved'])continue;if('text'==_0x35157b[_0x454a91]['type']){_0x35157b[_0x454a91]['distance']=0x0;continue;}const _0x4b1877=_0x11814c['get'](_0x35157b[_0x454a91]['pairId']),_0x1b4061=_0x11814c['get'](_0x35157b[_0x454a91]['id']);_0x35157b[_0x454a91]['distance']=_0x4b1877-_0x1b4061;}}['_getRevisionsRange'](_0x4f1285,_0x59473a,_0x4edb20=!0x1){const _0x4b70bb=[];let _0x448efc=this['repository']['getIndex'](_0x4f1285),_0x55dfde=this['repository']['getIndex'](_0x59473a);for(-0x1==_0x55dfde&&(_0x55dfde=this['repository']['_revisions']['length'],_0x4edb20=!0x1);_0x448efc<_0x55dfde;)_0x4b70bb['push'](this['repository']['getRevision'](_0x448efc)),_0x448efc++;return _0x4edb20&&_0x4b70bb['push'](this['repository']['getRevision'](_0x448efc)),_0x4b70bb;}['_threeWayMerge'](_0x398a8a,_0x5801a0,_0xbede42,_0x4797ef){const _0x36bdbf=this['editor']['model']['schema'];let _0x4d88f4=_0x5801a0;for(;_0x398a8a[_0x4d88f4]&&_0x398a8a[_0x4d88f4]['isAdded'];)_0x4d88f4++;let _0x55b887=_0x4797ef;for(;_0xbede42[_0x55b887]&&_0xbede42[_0x55b887]['isRemoved'];)_0x55b887++;_0x1e7909(_0x398a8a,_0x5801a0,_0x4d88f4),_0x1e7909(_0xbede42,_0x4797ef,_0x55b887);const _0x6e2c3a=_0xbede42['slice'](_0x4797ef,_0x55b887)['concat'](_0x398a8a['slice'](_0x5801a0,_0x4d88f4));return _0x6e2c3a['sort']((_0x45053f,_0x107b4f)=>_0x45053f['side']!=_0x107b4f['side']?_0x45053f['side']-_0x107b4f['side']:_0x45053f['level']!=_0x107b4f['level']?_0x45053f['level']-_0x107b4f['level']:_0x45053f['distance']!=_0x107b4f['distance']?_0x107b4f['distance']-_0x45053f['distance']:!!_0x45053f['isAdded']!=!!_0x107b4f['isAdded']?-0x1==_0x45053f['side']||0x0==_0x45053f['side']?_0x45053f['isAdded']?-0x1:0x1:_0x45053f['isAdded']?0x1:-0x1:_0x45053f['index']-_0x107b4f['index']),{'commonTape':_0x6e2c3a,'iEnd':_0x4d88f4,'jEnd':_0x55b887};function _0x1e7909(_0x321a95,_0x3b0584,_0x2afa3d){let _0x30c45f=-0x1,_0x3d35fe=Number['POSITIVE_INFINITY'],_0x13e8e7=!0x0;for(let _0x4e3d2c=_0x3b0584;_0x4e3d2c<_0x2afa3d;_0x4e3d2c++)if(_0x36bdbf['isInline'](_0x321a95[_0x4e3d2c]['item'])||(_0x13e8e7=!0x1),_0x321a95[_0x4e3d2c]['item']['startIndex']<_0x3b0584&&(_0x30c45f=_0x4e3d2c),_0x321a95[_0x4e3d2c]['item']['endIndex']>=_0x2afa3d){_0x3d35fe=_0x4e3d2c;break;}_0x13e8e7&&(_0x30c45f=_0x2afa3d-0x1);for(let _0x4a6ca=_0x3b0584;_0x4a6ca<_0x2afa3d;_0x4a6ca++)_0x321a95[_0x4a6ca]['side']=_0x4a6ca<=_0x30c45f?-0x1:_0x4a6ca<_0x3d35fe?0x0:0x1,_0x321a95[_0x4a6ca]['index']=_0x4a6ca;let _0x49c590=0x0;for(let _0xec5459=_0x3b0584;_0xec5459<=_0x30c45f;_0xec5459++)0x0==_0x321a95[_0xec5459]['distance']?_0x321a95[_0xec5459]['level']=_0x49c590:(_0x49c590++,_0x321a95[_0xec5459]['level']=_0x49c590,_0x49c590++);for(let _0x133d70=_0x3b0584;_0x133d70<_0x2afa3d;_0x133d70++)0x0==_0x321a95[_0x133d70]['side']&&(_0x321a95[_0x133d70]['level']=_0x49c590);_0x49c590=0x0;for(let _0x320897=_0x2afa3d-0x1;_0x320897>=_0x3d35fe;_0x320897--)0x0==_0x321a95[_0x320897]['distance']?_0x321a95[_0x320897]['level']=_0x49c590:(_0x49c590--,_0x321a95[_0x320897]['level']=_0x49c590,_0x49c590--);}}['_fixObsoleteTags'](_0x413fde){const _0x5a913d=new Map(),_0x335189=this['editor']['model']['schema'];for(let _0x47462b=0x1;_0x47462b<_0x413fde['length'];_0x47462b++){let _0x192150,_0x18f319,_0x3fdd65;const _0x4591b0=_0x413fde[_0x47462b],_0x156492=_0x413fde[_0x47462b-0x1];if('text'==_0x4591b0['type'])continue;if(_0x4591b0['type']!=_0x156492['type'])continue;if(!_0x335189['isBlock'](_0x156492['item'])||_0x335189['isLimit'](_0x156492['item']))continue;if(!_0x335189['isBlock'](_0x4591b0['item'])||_0x335189['isLimit'](_0x4591b0['item']))continue;if((_0x413fde[_0x47462b]['isAdded']||_0x413fde[_0x47462b]['isAddSuggestion'])&&_0x413fde[_0x47462b-0x1]['isRemoved'])_0x192150=_0x413fde[_0x47462b],_0x18f319=_0x413fde[_0x47462b-0x1],_0x3fdd65=_0x47462b-0x1;else{if(!_0x413fde[_0x47462b]['isRemoved']||!_0x413fde[_0x47462b-0x1]['isAdded']&&!_0x413fde[_0x47462b-0x1]['isAddSuggestion'])continue;_0x192150=_0x413fde[_0x47462b-0x1],_0x18f319=_0x413fde[_0x47462b],_0x3fdd65=_0x47462b;}const _0x204910=_0x192150['level']==_0x18f319['level'],_0x244278=Math['abs'](_0x192150['level'])<Math['abs'](_0x18f319['level'])&&0x0==_0x18f319['distance'];(_0x204910||_0x244278)&&(_0x5a913d['set'](_0x18f319['id'],_0x192150['id']),_0x413fde['splice'](_0x3fdd65,0x1),_0x47462b--,_0x192150['isAdded']=!0x1);}for(let _0x4033e5=0x0;_0x4033e5<_0x413fde['length'];_0x4033e5++)_0x5a913d['has'](_0x413fde[_0x4033e5]['pairId'])&&(_0x413fde[_0x4033e5]['pairId']=_0x5a913d['get'](_0x413fde[_0x4033e5]['pairId']));}['_removeMissingPairs'](_0x54653e){const _0x5cd36b=new Set(_0x54653e['map'](_0x3365df=>_0x3365df['id']));for(let _0x189582=0x0;_0x189582<_0x54653e['length'];_0x189582++)_0x5cd36b['has'](_0x54653e[_0x189582]['pairId'])||0x0==_0x54653e[_0x189582]['distance']||(_0x54653e[_0x189582]['isIncorrect']=!0x0);return _0x54653e['filter'](_0x27f84b=>!_0x27f84b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x26489e){const _0x1aee34=new Set();for(let _0x362a5f=0x0;_0x362a5f<_0x26489e['length'];_0x362a5f++){if(_0x1aee34['has'](_0x26489e[_0x362a5f]['id'])&&_0x26489e[_0x362a5f]['isRemoved']&&(_0x26489e[_0x362a5f]['isIncorrect']=!0x0),_0x26489e[_0x362a5f]['isIncorrect'])continue;if(0x0==_0x26489e[_0x362a5f]['distance'])continue;if('elementStart'!=_0x26489e[_0x362a5f]['type'])continue;if(null==_0x26489e[_0x362a5f]['pairId'])continue;let _0x2276a6=_0x362a5f+0x1,_0x5dda71=0x0;for(;_0x26489e[_0x2276a6]['id']!=_0x26489e[_0x362a5f]['pairId'];)'elementStart'==_0x26489e[_0x2276a6]['type']?_0x5dda71++:'elementEnd'==_0x26489e[_0x2276a6]['type']&&_0x5dda71--,_0x2276a6++;if(0x0!=_0x5dda71){if(_0x26489e[_0x362a5f]['isRemoved'])_0x26489e[_0x362a5f]['isIncorrect']=!0x0;else{for(;_0x2276a6!=_0x362a5f;)_0x26489e[_0x2276a6]['isRemoved']&&0x0!=_0x26489e[_0x2276a6]['distance']&&(_0x26489e[_0x2276a6]['isIncorrect']=!0x0,_0x1aee34['add'](_0x26489e[_0x2276a6]['pairId'])),_0x2276a6--;}}}return _0x26489e['filter'](_0x59c1d2=>!_0x59c1d2['isIncorrect']);}['_removeUnsupportedChanges'](_0x435d52){const _0x50e810=this['editor']['model']['schema'];for(let _0x3a45f1=0x0;_0x3a45f1<_0x435d52['length'];_0x3a45f1++){if(!(_0x435d52[_0x3a45f1]['isAdded']||_0x435d52[_0x3a45f1]['isAddSuggestion']||_0x435d52[_0x3a45f1]['isRemoved']||_0x435d52[_0x3a45f1]['isRemoveSuggestion']))continue;if(0x0==_0x435d52[_0x3a45f1]['distance'])continue;const _0xfad3a4=_0x435d52[_0x3a45f1]['item'];_0x50e810['isBlock'](_0xfad3a4)||_0x50e810['isLimit'](_0xfad3a4)||(_0x435d52[_0x3a45f1]['isAdded']&&delete _0x435d52[_0x3a45f1]['isAdded'],_0x435d52[_0x3a45f1]['isAddSuggestion']&&delete _0x435d52[_0x3a45f1]['isAddSuggestion'],_0x435d52[_0x3a45f1]['isRemoveSuggestion']&&delete _0x435d52[_0x3a45f1]['isRemoveSuggestion'],_0x435d52[_0x3a45f1]['isRemoved']&&(_0x435d52[_0x3a45f1]['isIncorrect']=!0x0));}return _0x435d52['filter'](_0x50306f=>!_0x50306f['isIncorrect']);}['_makeModelFromTape'](_0x3123ab,_0xf6c771,_0x2f6e86){const _0x37e381=new mt(),_0x4bd509=[],_0x38ec25=new Map(),_0x295c28=this['editor']['model'],_0x46e65d=_0x295c28['schema'],_0x432135=[_0x37e381],_0x51737e={},_0x399349={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1433e7=null;const _0x3283c6=[0x0];for(let _0x39781c=0x0;_0x39781c<_0x3123ab['length'];_0x39781c++)if('elementStart'===_0x3123ab[_0x39781c]['type']){_0x3123ab[_0x39781c]['previousPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6);const _0x57ca9b=new ft(_0x3123ab[_0x39781c]['item']['name'],_0x3123ab[_0x39781c]['item']['getAttributes']());_0x432135[0x0]['_appendChild'](_0x57ca9b),_0x3283c6['push'](0x0),_0x432135['unshift'](_0x57ca9b),_0x3123ab[_0x39781c]['nextPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6);}else'elementEnd'===_0x3123ab[_0x39781c]['type']?(_0x432135['shift'](),_0x3123ab[_0x39781c]['previousPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6),_0x3283c6['pop'](),_0x3283c6[_0x3283c6['length']-0x1]++,_0x3123ab[_0x39781c]['nextPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6)):(_0x3123ab[_0x39781c]['previousPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6),_0x1433e7?_0x1433e7['_data']+=_0x3123ab[_0x39781c]['item']['data']:_0x1433e7=new wt(_0x3123ab[_0x39781c]['item']['data'],_0x3123ab[_0x39781c]['item']['getAttributes']()),_0x3123ab[_0x39781c+0x1]&&'text'===_0x3123ab[_0x39781c+0x1]['type']&&_0x3d26a5(_0x1433e7,_0x3123ab[_0x39781c+0x1]['item'])||(_0x432135[0x0]['_appendChild'](_0x1433e7),_0x1433e7=null),_0x3283c6[_0x3283c6['length']-0x1]+=_0x3123ab[_0x39781c]['item']['offsetSize'],_0x3123ab[_0x39781c]['nextPosition']=_0x295c28['createPositionFromPath'](_0x37e381,_0x3283c6));for(let _0x2f34a3=0x0;_0x2f34a3<_0x3123ab['length'];_0x2f34a3++){const _0xa7f3b7=_0x3123ab[_0x2f34a3]['previousPosition'],_0x2933d2=_0x3123ab[_0x2f34a3]['nextPosition'];for(const _0x51048e of _0x3123ab[_0x2f34a3]['markersStart'])_0x38ec25['set'](_0x51048e,{'start':_0xa7f3b7,'end':null});_0x14c5f2('isRemoveSuggestion',_0x2f34a3,_0xa7f3b7,_0x2933d2),_0x14c5f2('isAddSuggestion',_0x2f34a3,_0xa7f3b7,_0x2933d2),_0x14c5f2('isRemoved',_0x2f34a3,_0xa7f3b7,_0x2933d2),_0x14c5f2('isAdded',_0x2f34a3,_0xa7f3b7,_0x2933d2);for(const _0x4f87aa of _0x3123ab[_0x2f34a3]['markersEnd']){_0x38ec25['get'](_0x4f87aa)['end']=_0x2933d2;}}for(const [_0x510f7a,_0x3e28d7]of _0x38ec25){const _0x3c791b=this['editor']['model']['createRange'](_0x3e28d7['start'],_0x3e28d7['end']);_0x37e381['markers']['set'](_0x510f7a,_0x3c791b);}return _0x4bd509['sort']((_0x2ef735,_0x3b39cb)=>{const _0x3beb47=_0x37e381['markers']['get']('revision:'+_0x2ef735['id']),_0x2a4b5f=_0x37e381['markers']['get']('revision:'+_0x3b39cb['id']);return _0x3beb47['start']['isBefore'](_0x2a4b5f['start'])?-0x1:_0x3beb47['start']['isAfter'](_0x2a4b5f['start'])?0x1:_0x3beb47['end']['isBefore'](_0x2a4b5f['end'])?-0x1:_0x3beb47['end']['isAfter'](_0x2a4b5f['end'])?0x1:'add'===_0x2ef735['type']?-0x1:0x1;}),{'root':_0x37e381,'changes':_0x4bd509};function _0x14c5f2(_0x506a9d,_0x2d3479,_0x11d549,_0x5b0382){const _0x49f307=!!_0x3123ab[_0x2d3479][_0x506a9d],_0x4ca584=_0x49f307?_0x3123ab[_0x2d3479][_0x506a9d]['userId']:null,_0x2718fc=_0x2d3479===_0x3123ab['length']-0x1,_0x327cec=_0x399349[_0x506a9d][0x0],_0xc777af=_0x46e65d['isObject'](_0x3123ab[_0x2d3479]['item']);!_0x51737e[_0x506a9d]&&_0x49f307?_0x51737e[_0x506a9d]={'start':_0x11d549,'tapeItem':_0x3123ab[_0x2d3479],'userId':_0x4ca584,'type':_0x506a9d}:_0x51737e[_0x506a9d]&&!_0x49f307?(_0x51737e[_0x506a9d]['end']=_0x11d549,_0x1d4d97(_0x51737e[_0x506a9d]),_0x51737e[_0x506a9d]=null):_0x51737e[_0x506a9d]&&_0x49f307&&_0x51737e[_0x506a9d]['userId']!==_0x4ca584&&(_0x51737e[_0x506a9d]['end']=_0x11d549,_0x327cec&&_0x327cec['userId']===_0x51737e[_0x506a9d]['userId']||_0x1d4d97(_0x51737e[_0x506a9d]),_0x51737e[_0x506a9d]={'start':_0x11d549,'tapeItem':_0x3123ab[_0x2d3479],'userId':_0x4ca584,'type':_0x506a9d}),_0x51737e[_0x506a9d]&&_0xc777af&&('elementStart'!==_0x3123ab[_0x2d3479]['type']||_0x327cec&&_0x327cec['userId']===_0x4ca584||_0x399349[_0x506a9d]['unshift']({'userId':_0x4ca584,'object':_0x3123ab[_0x2d3479]['item'],'change':_0x51737e[_0x506a9d]}),'elementEnd'===_0x3123ab[_0x2d3479]['type']&&_0x327cec&&_0x327cec['object']===_0x3123ab[_0x2d3479]['item']&&(_0x399349[_0x506a9d]['shift'](),_0x51737e[_0x506a9d]=_0x327cec['change'])),_0x51737e[_0x506a9d]&&_0x2718fc&&(_0x51737e[_0x506a9d]['end']=_0x5b0382,_0x1d4d97(_0x51737e[_0x506a9d]),_0x51737e[_0x506a9d]=null);}function _0x1d4d97({start:_0x48c848,end:_0x949fb8,tapeItem:_0x34603b,userId:_0x1e534c,type:_0x12d6c9}){const _0x5b7b8a=_0x34603b['item'],_0x12e889=_0x295c28['schema']['isBlock'](_0x5b7b8a)&&!_0x295c28['schema']['isLimit'](_0x5b7b8a),_0x381a8b=_0x48c848['nodeAfter']==_0x949fb8['parent']&&_0x949fb8['isAtStart'];if(_0x12e889&&_0x381a8b)return;const _0x5bb97c=_0x295c28['createRange'](_0x48c848,_0x949fb8),_0x742a0c=_0xf6c771['get'](_0x1e534c),_0x425da0=new r({'author':_0x742a0c,'type':'isAdded'==_0x12d6c9||'isAddSuggestion'==_0x12d6c9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x12d6c9||'isRemoveSuggestion'==_0x12d6c9},'createdAt':new Date(),'rootName':_0x2f6e86});_0x4bd509['push'](_0x425da0),_0x37e381['markers']['set']('revision:'+_0x425da0['id'],_0x5bb97c);}function _0x3d26a5(_0x2d69dc,_0x3bede4){const _0x594317=_0x2d69dc['getAttributes'](),_0x561f52=_0x3bede4['getAttributes']();for(const _0x3f97dc of _0x594317){if(_0x3f97dc[0x1]!==_0x3bede4['getAttribute'](_0x3f97dc[0x0]))return!0x1;_0x561f52['next']();}return _0x561f52['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x24c4e6=>{const _0x2d30ce=_0x24c4e6['markerName']['split'](':')[0x1],_0x654a72=this['_getChangeFromId'](_0x2d30ce);if(!_0x654a72)return null;const _0x2eb236='add'==_0x654a72['type']?'insertion':'deletion',_0x137da5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2eb236];return _0x654a72['data']['isSuggestion']&&_0x137da5['push']('ck-suggestion-marker-'+_0x2eb236+'-new'),this['activeChange']==_0x654a72&&_0x137da5['push']('ck-suggestion-marker--active'),{'classes':_0x137da5,'attributes':{'data-change-id':_0x2d30ce}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5b6cc7=>{_0x5b6cc7['on']('element:pre',(_0x9087bf,_0x1ce029,_0x21a4ad)=>{const _0x3f5a18=_0x1ce029['viewItem']['getChild'](0x0);if(!_0x3f5a18||!_0x3f5a18['is']('element','code'))return;if(!_0x21a4ad['consumable']['consume'](_0x3f5a18,{'attributes':['vid_start','vid_end']}))return;const _0x3d46be=_0x1ce029['modelRange']['start']['nodeAfter'];_0x21a4ad['writer']['setAttribute']('vid_start',_0x3f5a18['getAttribute']('vid_start'),_0x3d46be),_0x21a4ad['writer']['setAttribute']('vid_end',_0x3f5a18['getAttribute']('vid_end'),_0x3d46be);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1c0ec8=>{_0x1c0ec8['on']('element',(_0x22055c,_0x4e9c6c,_0x211288)=>{if(!_0x211288['consumable']['consume'](_0x4e9c6c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4e9c6c['modelRange']['isCollapsed'])return;const _0x3d37ad=_0x4e9c6c['modelRange']['start']['nodeAfter'];_0x3d37ad['hasAttribute']('vid_start')||_0x3d37ad['hasAttribute']('vid')||(_0x211288['writer']['setAttribute']('vid_start',_0x4e9c6c['viewItem']['getAttribute']('vid_start'),_0x3d37ad),_0x211288['writer']['setAttribute']('vid_end',_0x4e9c6c['viewItem']['getAttribute']('vid_end'),_0x3d37ad));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x30bac4=>_0x30bac4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4dd51c,[,_0x5dfcbb])=>{['vid_start','vid_end','vid']['includes'](_0x5dfcbb)&&(_0x4dd51c['return']=!0x0,_0x4dd51c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2c082f=>{_0x2c082f['on']('attribute:vid',(_0x435596,_0x1e0ed5,_0x41e756)=>{if('\x20'!=_0x1e0ed5['item']['data']||_0x1e0ed5['item']['parent']['maxOffset']>0x1)return;if(!_0x41e756['consumable']['consume'](_0x1e0ed5['item'],_0x435596['name']))return;const _0x24e79d=_0x41e756['writer'],_0x1b3f80=_0x41e756['mapper']['toViewRange'](_0x1e0ed5['range']);_0x24e79d['wrap'](_0x1b3f80,_0x24e79d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x59840d){const _0x3406e5=_0x59840d['plugins']['get']('RevisionViewer');return(_0x4b84fb,_0x347239,_0x144962)=>{const _0x410cda=_0x347239['markerName']['split'](':')[0x1],_0x1691aa=_0x3406e5['_getChangeFromId'](_0x410cda);if(!_0x1691aa)return null;const _0x2b5dbd='add'==_0x1691aa['type']?'split':'merge';if(!_0x144962['consumable']['test'](_0x347239['markerRange'],_0x4b84fb['name']))return;const _0x3ef528=_0x347239['markerRange']['getWalker'](),_0x221f40=_0x347239['markerRange']['start'],_0x306fad=_0x59840d['model']['schema'];let _0x51e9b0=null,_0x3efea7=null,_0x3b897b=!0x1,_0x49668e=!0x1;for(const _0x5e4fad of _0x3ef528){const _0x23be81=_0x5e4fad['item'];_0x3b897b=_0x3b897b||_0x306fad['isContent'](_0x23be81);const _0x2a3fa0=_0x144962['mapper']['toViewElement'](_0x23be81);if(_0x2a3fa0&&_0x2a3fa0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5e4fad['type']&&(_0x306fad['isBlock'](_0x23be81)&&!_0x306fad['isLimit'](_0x23be81)&&(_0x23be81['nextSibling']||_0x221f40['isAtEnd']?_0x51e9b0&&_0x51e9b0['parent']==_0x23be81||(_0x51e9b0=_0x23be81,_0xe63fef(_0x5e4fad['previousPosition']),_0x49668e=!0x0):_0x3efea7=_0x3efea7||_0x5e4fad['previousPosition']));}function _0xe63fef(_0x59122a){const _0x3ff593=_0x144962['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b5dbd}),_0x344dc1=_0x144962['mapper']['toViewPosition'](_0x59122a);_0x1691aa['data']['isSuggestion']&&_0x144962['writer']['addClass']('ck-suggestion-marker-'+_0x2b5dbd+'-new',_0x3ff593),_0x3406e5['activeChange']==_0x1691aa&&_0x144962['writer']['addClass']('ck-suggestion-marker--active',_0x3ff593),_0x144962['writer']['insert'](_0x344dc1,_0x3ff593),_0x144962['mapper']['bindElementToMarker'](_0x3ff593,_0x347239['markerName']);}_0x3b897b||_0x49668e||!_0x3efea7||_0xe63fef(_0x3efea7);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x332bda,_0x4dc68a,_0x4ecb47)=>{const _0x5cc3b7=_0x4ecb47['mapper']['markerNameToElements'](_0x4dc68a['markerName']);if(_0x5cc3b7){for(const _0x290e36 of _0x5cc3b7)(_0x290e36['hasClass']('ck-suggestion-marker-split')||_0x290e36['hasClass']('ck-suggestion-marker-merge'))&&(_0x4ecb47['mapper']['unbindElementFromMarkerName'](_0x290e36,_0x4dc68a['markerName']),_0x4ecb47['writer']['remove'](_0x290e36));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3d6ddd,_0x1b438c,_0x3b823e)=>{const _0xbbaab2=_0x1b438c['markerName']['split'](':')[0x1],_0x2c6f32=this['_getChangeFromId'](_0xbbaab2);if(!_0x2c6f32)return null;const _0x4ca540='add'==_0x2c6f32['type']?'split':'merge';if(_0x3b823e['consumable']['test'](_0x1b438c['markerRange'],_0x3d6ddd['name']))for(const _0x4d54d4 of _0x1b438c['markerRange']['getItems']()){if(!_0x4d54d4['is']('element','softBreak'))continue;const _0x4c09f0=_0x3b823e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ca540}),_0x565ef4=_0x3b823e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4d54d4));_0x2c6f32['data']['isSuggestion']&&_0x3b823e['writer']['addClass']('ck-suggestion-marker-'+_0x4ca540+'-new',_0x4c09f0),this['activeChange']==_0x2c6f32&&_0x3b823e['writer']['addClass']('ck-suggestion-marker--active',_0x4c09f0),_0x3b823e['writer']['insert'](_0x565ef4,_0x4c09f0),_0x3b823e['mapper']['bindElementToMarker'](_0x4c09f0,_0x1b438c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x37c9e3=>{for(const _0x58003e of this['editor']['model']['document']['getRootNames']()){const _0x2d4685=this['editor']['model']['document']['getRoot'](_0x58003e),_0x38d0d3=this['editor']['editing']['view']['document']['getRoot'](_0x58003e);if(_0x38d0d3){const _0x34ff12=_0x2d4685['getAttribute']('revisionHistoryAttachChange');if(_0x37c9e3['removeAttribute']('data-change-id',_0x38d0d3),_0x37c9e3['removeClass']('ck-revision-history-root-add',_0x38d0d3),_0x37c9e3['removeClass']('ck-revision-history-root-remove',_0x38d0d3),_0x37c9e3['removeClass']('ck-revision-history-root--active',_0x38d0d3),_0x34ff12){const _0x311f36=this['_getChangeFromId'](_0x34ff12);if(!_0x311f36)return null;_0x37c9e3['setAttribute']('data-change-id',_0x34ff12,_0x38d0d3),_0x37c9e3['addClass']('ck-revision-history-root-'+_0x311f36['type'],_0x38d0d3),this['activeChange']==_0x311f36&&_0x37c9e3['addClass']('ck-revision-history-root--active',_0x38d0d3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x57219c=>'revision-comment:'+_0x57219c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x9c581c=>'revision-suggestion:'+_0x9c581c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4767e2=>({'name':'suggestion:'+_0x4767e2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3bacee=>{const _0x31c17d=_0x3bacee['markerName']['split'](':')[0x1];return'insertion'!=_0x31c17d&&'deletion'!=_0x31c17d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x31c17d]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x289b77,_0x13ce84,_0x39a7a4)=>{const _0xdc5654=_0x39a7a4['mapper']['markerNameToElements'](_0x13ce84['markerName']);if(_0xdc5654){for(const _0x31f46a of _0xdc5654)_0x31f46a['is']('uiElement')&&(_0x39a7a4['mapper']['unbindElementFromMarkerName'](_0x31f46a,_0x13ce84['markerName']),_0x39a7a4['writer']['remove'](_0x31f46a));}},{'priority':'high'});}['_getChangeFromId'](_0x4745a5){return this['_changeIdToChange']['get'](_0x4745a5);}['_getViewForChange'](_0x3ff9b6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3ff9b6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x9e59ed,_0x40cb4c,_0x49978f,_0x4164d9)=>{_0x4164d9&&this['_balloon']['remove'](_0x4164d9),_0x49978f&&(this['_balloon']['add']({'view':_0x49978f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x210eff=this['editor']['editing'],_0x10d163=this['_getChangeFromId'](_0x49978f['changeId']);let _0x4ce1f4;if(_0x10d163['data']['isOnRoot']){const _0x404da5=_0x210eff['view']['getDomRoot'](_0x10d163['rootName']);_0x4ce1f4=Array['from'](_0x404da5['getClientRects']());}else{const _0x5561f4=this['editor']['model']['markers']['get']('revision:'+_0x49978f['changeId']);_0x4ce1f4=Array['from'](_0x210eff['mapper']['markerNameToElements'](_0x5561f4['name']))['map'](_0x534788=>_0x210eff['view']['domConverter']['mapViewToDom'](_0x534788))['map'](_0x3d2a8b=>Array['from'](_0x3d2a8b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4ce1f4[0x0];return _0x4ce1f4['find'](_0x30c880=>_0x30c880['top']-0x3<=this['_activeViewTarget']['y']&&_0x30c880['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x30c880['left']-0x3<=this['_activeViewTarget']['x']&&_0x30c880['right']+0x3>=this['_activeViewTarget']['x'])||_0x4ce1f4[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x188efd,_0x3fa97c,_0x41f835,_0x470244)=>{this['activeView']=_0x41f835?this['_getViewForChange'](_0x41f835):null,this['editor']['model']['change'](()=>{const _0x28b313=this['editor']['editing'];_0x470244&&(_0x470244['data']['isOnRoot']?_0x28b313['view']['change'](_0x2d5ef4=>{_0x2d5ef4['removeClass']('ck-revision-history-root--active',_0x28b313['view']['document']['getRoot'](_0x470244['rootName']));}):_0x28b313['reconvertMarker']('revision:'+_0x470244['id'])),_0x41f835&&(_0x41f835['data']['isOnRoot']?_0x28b313['view']['change'](_0x4446bf=>{_0x4446bf['addClass']('ck-revision-history-root--active',_0x28b313['view']['document']['getRoot'](_0x41f835['rootName']));}):_0x28b313['reconvertMarker']('revision:'+_0x41f835['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x58c040,_0x392991)=>{if(this['activeChange'])return;const _0x590037=this['_findChangeIdFromDomTarget'](_0x392991['target']),_0x25c1fa=this['_changeIdToChange']['get'](_0x590037);_0x25c1fa?(this['_activeViewTarget']={'x':_0x392991['domEvent']['x'],'y':_0x392991['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x25c1fa)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2a0ec9,_0x3993a2)=>{const _0x167dbe=this['_findChangeIdFromDomTarget'](_0x3993a2['target']),_0x53486c=this['_changeIdToChange']['get'](_0x167dbe);_0x53486c?(this['_activeViewTarget']={'x':_0x3993a2['domEvent']['x'],'y':_0x3993a2['domEvent']['y']},_0x53486c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x53486c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5240f4){do{const _0x164830=_0x5240f4['getAttribute']('data-change-id');if(_0x164830)return _0x164830;_0x5240f4=_0x5240f4['parent'];}while(_0x5240f4);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5748f2=>{for(const _0x96c1b5 of this['editor']['model']['markers'])_0x5748f2['removeMarker'](_0x96c1b5);});}}function tt(_0x54a051,_0x14945e){return(_0x5e0361,_0x34aaff,_0x27c0ea)=>{if(!_0x27c0ea['consumable']['test'](_0x34aaff['markerRange'],_0x5e0361['name']))return;const _0x60fc2f=_0x34aaff['markerRange']['getWalker'](),_0xa1dbec=_0x34aaff['markerRange']['start'],_0x4b0a1f=_0x54a051['model']['schema'];let _0x1f9a7f=null,_0x4a93ef=null,_0x85111b=!0x1,_0x1e7100=!0x1;for(const _0x1429df of _0x60fc2f){const _0x1aeee4=_0x1429df['item'];_0x85111b=_0x85111b||_0x4b0a1f['isContent'](_0x1aeee4);const _0xa2cb01=_0x27c0ea['mapper']['toViewElement'](_0x1aeee4);if(_0xa2cb01&&_0xa2cb01['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1429df['type']&&(_0x4b0a1f['isBlock'](_0x1aeee4)&&!_0x4b0a1f['isLimit'](_0x1aeee4)&&(_0x1aeee4['nextSibling']||_0xa1dbec['isAtEnd']?_0x1f9a7f&&_0x1f9a7f['parent']==_0x1aeee4||(_0x1f9a7f=_0x1aeee4,_0x1673e8(_0x1429df['previousPosition']),_0x1e7100=!0x0):_0x4a93ef=_0x4a93ef||_0x1429df['previousPosition']));}function _0x1673e8(_0x3ff26d){const _0x32f0f6=_0x27c0ea['mapper']['toViewPosition'](_0x3ff26d),_0x1ac6ed=_0x27c0ea['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x14945e});_0x27c0ea['writer']['insert'](_0x32f0f6,_0x1ac6ed),_0x27c0ea['mapper']['bindElementToMarker'](_0x1ac6ed,_0x34aaff['markerName']);}_0x85111b||_0x1e7100||!_0x4a93ef||_0x1673e8(_0x4a93ef);};}class _t extends _0x260265{constructor(_0x11df5e){super(_0x11df5e);const _0x5ab118=_0x11df5e['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5ab118,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ab118,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x540264=this['editor'],_0xabc4dc=_0x540264['plugins']['get'](d),_0x26714=_0xabc4dc['isReady']?_0xabc4dc['diff']['newRevisionId']:null;_0x540264['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x26714);}['refresh'](){const {isReady:_0x6f0a26,isEnabled:_0x12c1f}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x6f0a26&&_0x12c1f;}}class yt extends _0x260265{['_step'];constructor(_0x45a6de,{direction:_0x349e4c}){super(_0x45a6de);const _0x39fa7d=_0x45a6de['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x349e4c?0x1:-0x1,this['listenTo'](_0x39fa7d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x39fa7d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x39fa7d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2eaa43=this['editor'],_0x44e6f9=_0x2eaa43['plugins']['get'](d),{isNavigationMode:_0x21dc60,currentChangeNumber:_0x3eb326}=_0x44e6f9;let _0x447602;if(_0x44e6f9['activeChange']=_0x21dc60?_0x44e6f9['diff']['changes']['get'](_0x3eb326+this['_step']):_0x44e6f9['diff']['changes']['first'],_0x44e6f9['activeChange']['data']['isOnRoot'])_0x447602=_0x2eaa43['editing']['view']['getDomRoot'](_0x44e6f9['activeChange']['rootName']);else{const _0x5a8fc3=_0x2eaa43['model']['markers']['get']('revision:'+_0x44e6f9['activeChange']['id']);_0x447602=_0x46d363(_0x2eaa43['editing'],_0x5a8fc3);}_0x32e163({'target':_0x447602,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x54e0b4,currentChangeNumber:_0x1e36da,numberOfChanges:_0x3d7b70,isReady:_0x30ad9f,isEnabled:_0x2b1be9}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2b1be9&&_0x30ad9f&&_0x3d7b70)&&(!_0x54e0b4||(0x1===this['_step']?_0x1e36da<_0x3d7b70-0x1:_0x1e36da>0x0));}}class ui extends ts{constructor(_0x3e16d5){super(_0x3e16d5);const _0x2120e7=this['bindTemplate'],_0x41aba3=new te(_0x3e16d5),_0x54a973=new te(_0x3e16d5);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x4eda80,_0x3b1fc7)=>_0x4eda80&&_0x3b1fc7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x375b86,_0x4342fc,_0x241989,_0x399e2f)=>{if(!_0x375b86)return R(_0x3e16d5,'Loading...');if(!_0x241989)return R(_0x3e16d5,'No\x20changes');const _0xe76d9a=R(_0x3e16d5,'NUMBER_OF_CHANGES',_0x241989);return _0x399e2f?R(_0x3e16d5,'X_OF_Y_CHANGES',[_0x4342fc+0x1,_0x241989]):_0xe76d9a;}),_0x41aba3['set']({'label':R(_0x3e16d5,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x54a973['set']({'label':R(_0x3e16d5,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x41aba3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x54a973['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x41aba3['on']('execute',()=>this['fire']('execute','backward')),_0x54a973['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x2120e7['if']('_isStatusLabelVisible','ck-hidden',_0x468835=>!_0x468835)]},'children':[{'text':_0x2120e7['to']('isNavigationMode',_0x2fbf16=>_0x2fbf16?R(_0x3e16d5,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x3e16d5,'Total')+':\x20')}]},{'text':_0x2120e7['to']('_statusText')}]},new _0xab97bf(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x41aba3,_0x54a973]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x5b577d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x39d000=this['editor']['editing']['view'];_0x39d000['change'](_0x51edbe=>{for(const _0x2071da of _0x39d000['document']['roots'])_0x51edbe['addClass'](le,_0x2071da);});}['hide'](){const _0x59e933=this['editor']['editing']['view'];_0x59e933['change'](_0x33ea5a=>{for(const _0x331521 of _0x59e933['document']['roots'])_0x33ea5a['removeClass'](le,_0x331521);});}}class m extends _0x5b577d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x3b0263=this['editor'],_0x3b774e=_0x3b0263['plugins']['get'](d),_0x13c8a2=_0x3b0263['plugins']['get'](de);_0x3b0263['ui']['componentFactory']['add']('exitToEditing',_0x230215=>{const _0x123ab7=new te(_0x230215);return _0x123ab7['set']({'label':R(_0x230215,'Back\x20to\x20editing'),'icon':_0x105b1a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x123ab7,'execute',()=>{_0x3b0263['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x123ab7;}),_0x3b0263['ui']['componentFactory']['add']('restoreRevision',_0x5f589d=>{const _0x214007=new te(_0x5f589d);return _0x214007['set']({'label':R(_0x5f589d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x214007['bind']('isEnabled')['to'](_0x3b0263['commands']['get']('restoreRevision')),this['listenTo'](_0x214007,'execute',()=>_0x3b0263['execute']('restoreRevision')),_0x214007;}),_0x3b0263['ui']['componentFactory']['add']('changesNavigation',_0xfc4750=>{const _0xd73d8b=new ui(_0xfc4750),_0x2e1487=_0x3b0263['commands']['get']('showPreviousChange'),_0x94465e=_0x3b0263['commands']['get']('showNextChange');return _0xd73d8b['bind']('isBackwardNavigationEnabled')['to'](_0x2e1487,'isEnabled'),_0xd73d8b['bind']('isForwardNavigationEnabled')['to'](_0x94465e,'isEnabled'),_0xd73d8b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3b774e),this['listenTo'](_0xd73d8b,'execute',(_0xaf585a,_0x801b4f)=>{_0x3b0263['execute']('forward'===_0x801b4f?'showNextChange':'showPreviousChange');}),_0xd73d8b;}),_0x13c8a2['show'](),_0x3b774e['on']('change:isReady',(_0x592ee7,_0x59ffca,_0xa949c2)=>{_0xa949c2?_0x13c8a2['hide']():_0x13c8a2['show']();});}}class pt extends _0x11290e{['_resizeObserver']=null;constructor(_0x71fe68,_0x5adee5){super(_0x71fe68,_0x5adee5);const _0x423429=this['bindTemplate'];this['set']({'label':R(_0x71fe68,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x71fe68,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x423429['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2f2d19=this['fieldView']['element'];this['_tooltipString']=_0x2f2d19['scrollWidth']>_0x2f2d19['clientWidth']&&_0x2f2d19['value']||'';}}class ri extends ts{constructor(_0x56cfdd,_0x1d1604,_0x32b91a){super(_0x56cfdd);const _0x126b33=new _0x4f1258();_0x126b33['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x443441=['ck','ck-revision-history-sidebar__revision-author'];_0x32b91a&&_0x443441['push']('ck-revision-history-sidebar__revision-author_creator');const _0xf21f7d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x56cfdd,_0x32b91a?'Revision\x20creator':'Revision\x20author')},'children':[_0x126b33,_0x1d1604['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x443441},'children':_0xf21f7d});}}function oi(_0x209787,_0x3a0d64){const _0x2147ab=_0x209787['bindTemplate'],_0x3d6b70=_0x209787['locale'],_0x565d6a=_0x4c94ed(_0x3d6b70);_0x565d6a['panelPosition']='sw';const _0x15b7c4=function(_0x11c748,_0x5927aa){const _0x2914fc=function(_0x3b2e9b,_0x261274){const _0x237742=_0x3b2e9b['locale'],_0x20c08b={'Compare\x20against\x20selected':R(_0x237742,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x237742,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x237742,'Restore\x20this\x20revision')};return _0x261274['map'](_0x43555b=>{const _0x47cf14=_0x20c08b[_0x43555b['name']];return _0x47cf14&&_0x47cf14!==_0x43555b['name']&&(_0x43555b['name']=_0x47cf14),_0x43555b;});}(_0x11c748,_0x5927aa),_0x4fc4a1=new _0x5a5c64();for(const _0x478704 of _0x2914fc){const _0x403161={'type':'button','model':new _0x31a29d({'label':_0x478704['name'],'class':_0x478704['class'],'withText':!0x0,'role':'menuitem','_action':_0x478704['action']})};_0x403161['model']['bind']('isEnabled')['to'](_0x11c748,'isActionsDropdownOpen',_0x3de69d=>'function'!=typeof _0x478704['isEnabled']||(!_0x3de69d||_0x478704['isEnabled'](_0x11c748))),_0x4fc4a1['add'](_0x403161);}return _0x4fc4a1;}(_0x209787,_0x3a0d64);return _0x209787['bind']('isActionsDropdownOpen')['to'](_0x565d6a,'isOpen'),_0x565d6a['buttonView']['set']({'label':R(_0x3d6b70,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x105b1a['threeVerticalDots']}),_0x565d6a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2147ab['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2147ab['to'](_0x202853=>_0x202853['stopPropagation']())}}),_0x565d6a['on']('execute',_0x56d8e6=>{_0x209787['isReady']&&'function'==typeof _0x56d8e6['source']['_action']&&_0x56d8e6['source']['_action'](_0x209787);}),to(_0x565d6a,_0x15b7c4,{'role':'menu'}),_0x565d6a['listenTo'](_0x209787,'change:isActionsDropdownOpen',(_0xc0d187,_0x104d2d,_0x55e9f9)=>{if(_0x55e9f9)for(const _0x5367de of _0x565d6a['listView']['items']){const _0x2f9934=_0x5367de['children']['first'],_0x527fa0=_0x3a0d64['find'](_0x2afb57=>_0x2afb57['action']===_0x2f9934['_action'])['isVisible'];_0x5367de['isVisible']=void 0x0===_0x527fa0||_0x527fa0(_0x209787);}}),_0x565d6a;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x542d03,_0x7c0bf9,_0x5031cc,_0x207049){super(_0x542d03);const _0x29885d=this['bindTemplate'],_0x11d776=function(_0x5d62d1,_0x2c3e60){const _0x466455=Array['from'](_0x2c3e60['authors'])['filter'](_0x4037cc=>_0x4037cc!=_0x2c3e60['creator']);return _0x2c3e60['creator']&&_0x466455['unshift'](_0x2c3e60['creator']),_0x466455['map'](_0x2ddd45=>new ri(_0x5d62d1,_0x2ddd45,_0x2ddd45==_0x2c3e60['creator']));}(_0x542d03,_0x7c0bf9);this['id']=_0x7c0bf9['id'],this['_revision']=_0x7c0bf9,this['_requireRevisionName']=_0x207049,this['bind']('name','createdAt')['to'](_0x7c0bf9),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xec4406=>{return _0x4a3c74=_0x542d03['uiLanguage'],(_0x33fd61=_0xec4406)['toLocaleDateString'](_0x4a3c74,{'month':'long','day':'numeric'})+',\x20'+_0x33fd61['toLocaleTimeString'](_0x4a3c74,{'hour':'numeric','minute':'numeric'});var _0x4a3c74,_0x33fd61;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x542d03,_0x5f48cb),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x509b9d=>_0x509b9d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x26a32e,_0x2b9edb)=>_0x26a32e&&_0x2b9edb),this['revisionActionsView']=_0x5031cc&&_0x5031cc['length']?oi(this,_0x5031cc):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x29885d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x29885d['if']('isEnabled','ck-disabled',_0x29ccbf=>!_0x29ccbf),_0x29885d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x29885d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x29885d['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x29885d['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x11d776}]},this['revisionActionsView']],'on':{'click':_0x29885d['to'](_0x37d7ad=>{_0x37d7ad['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b8b63=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1b8b63,'change',()=>{this['_requireRevisionName']&&!_0x1b8b63['value']||this['fire']('setName',{'id':this['id'],'name':_0x1b8b63['value']}),_0x1b8b63['value']||(_0x1b8b63['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x254cd0,_0x4e8d54){const _0xb07add=_0x5d0133['fromJSDate'](_0x254cd0)['setLocale'](_0x4e8d54),_0x58af20=_0x5d0133['local'](),_0x160d8f=_0x58af20['minus']({'days':0x1})['startOf']('day');let _0x5a90d6,_0x16bfec;return _0xb07add['hasSame'](_0x58af20,'day')?(_0x5a90d6=_0xb07add['startOf']('day')['toJSDate'](),_0x16bfec=_0xb07add['toRelativeCalendar']()):_0xb07add['hasSame'](_0x160d8f,'day')?(_0x5a90d6=_0x160d8f['toJSDate'](),_0x16bfec=_0xb07add['toRelativeCalendar']()):_0xb07add['hasSame'](_0x58af20,'week')?(_0x5a90d6=_0xb07add['startOf']('week')['toJSDate'](),_0x16bfec=_0xb07add['weekdayLong']||''):_0xb07add['hasSame'](_0x58af20,'year')?(_0x5a90d6=_0xb07add['startOf']('month')['toJSDate'](),_0x16bfec=_0xb07add['monthLong']||''):(_0x5a90d6=_0xb07add['startOf']('year')['toJSDate'](),_0x16bfec=String(_0xb07add['year'])),{'startDate':_0x5a90d6,'localizedPeriodName':_0x16bfec};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xaecb99,_0x49320c,_0x114fe8,_0x1e6998){super(_0xaecb99);const _0x18ffee=mi(_0x49320c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x49320c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x114fe8,this['_requireRevisionName']=_0x1e6998,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x18ffee}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x176e8a){const _0x14520c=new hi(this['locale'],_0x176e8a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x14520c);}['removeRevision'](_0x29a03f){const _0x379b07=this['revisionViews']['find'](_0x3906a5=>_0x3906a5['id']===_0x29a03f['id']);this['revisionViews']['remove'](_0x379b07);}}class as extends ts{constructor(_0x5481b0){super(_0x5481b0);const _0x54109c=new _0x4f1258();_0x54109c['content']=_0x105b1a['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x54109c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x5481b0,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x115a31,_0x11e0cb,_0x5f2a85,_0x1a39b5){super(_0x115a31);const _0x25ce2c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x11e0cb,this['_revisionActions']=_0x5f2a85,this['_requireRevisionName']=_0x1a39b5,this['on']('select',(_0x187513,_0x4dbac6)=>{this['fire']('revisionSelected',_0x4dbac6);}),this['on']('setName',(_0x117b63,_0x3fd809)=>{this['fire']('revisionSetName',_0x3fd809);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x115a31),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x25ce2c['if']('isEnabled','ck-disabled',_0xa2be7b=>!_0xa2be7b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2e996d of this['_revisions'])this['_addRevision'](_0x2e996d);this['_revisions']['on']('add',(_0x2c8a89,_0x2c412a)=>{this['_addRevision'](_0x2c412a);}),this['_revisions']['on']('remove',(_0x2e3659,_0x29e5e9)=>{this['_removeRevision'](_0x29e5e9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5b5219=>_0x5b5219['revisionViews']['map'](_0x128505=>_0x128505))['flat']();}['selectRevision'](_0x4ec732){for(const _0x4ec9af of this['revisionViews'])_0x4ec732&&_0x4ec732['id']===_0x4ec9af['id']?_0x4ec9af['select']():_0x4ec9af['deselect']();}['highlightRevisions'](_0x3ea178){for(const _0x1e0c93 of this['revisionViews'])_0x3ea178['some'](({id:_0x5ceaff})=>_0x5ceaff===_0x1e0c93['id'])?_0x1e0c93['highlight']():_0x1e0c93['unhighlight']();}['_addRevision'](_0x27ed33){const _0x4a3e74=mi(_0x27ed33['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x414cbd=this['timePeriodViews']['get'](0x0);_0x414cbd&&_0x414cbd['startDate']['getTime']()===_0x4a3e74['getTime']()||(_0x414cbd=new vi(this['locale'],_0x4a3e74,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x414cbd)),_0x414cbd['addRevision'](_0x27ed33);}['_removeRevision'](_0x21ae2c){const _0x1ee2de=mi(_0x21ae2c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1ee2de)['removeRevision'](_0x21ae2c);}['_getTimePeriodViewByStartDate'](_0x3e2135){return this['timePeriodViews']['find'](_0xdb3564=>_0xdb3564['startDate']['getTime']()===_0x3e2135['getTime']());}}class g extends _0x5b577d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x429bfb,uid as _0x4fb206,Collection as _0x35ddfb,logWarning as _0x3c206e,FocusTracker as _0x4d1095,KeystrokeHandler as _0xd9c6cc,scrollViewportToShowTarget as _0x19448f,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x29c262}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2fd224,set as _0x5a199f,unset as _0x15498d,isEqual as _0x53d9b6}from'lodash-es';import{Plugin as _0x5025c2,PendingActions as _0x5a095e,icons as _0x75562c,Command as _0x3d421b,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x537e60,getMarkerDomElement as _0x240b25,ConfirmMixin as ti,sanitizeEditorConfig as _0x5e210e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x14c48c,ViewText as _0x4dec75,ViewElement as _0x195c96,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x27273a,ViewAttributeElement as _0x18f5a0,ViewEmptyElement as _0x36684c,ViewRawElement as _0x16c422,ViewUIElement as _0x5f2150,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x25f3d0,submitHandler as _0x1faf24,LabeledFieldView as _0x30bc25,createLabeledInputText as _0x41e485,createDropdown as _0x2abbe3,ListView as _0x1744fc,ListItemView as _0x1bf823,ButtonView as te,MenuBarMenuView as _0x50599e,MenuBarMenuListView as _0x3c8172,MenuBarMenuListItemView as _0x172e45,MenuBarMenuListItemButtonView as _0x5900b2,ContextualBalloon as _0x4ab179,ToolbarSeparatorView as _0x280233,IconView as _0x5bb643,addListToDropdown as to,ViewModel as _0x4c16ca,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2feaf2}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x429bfb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x488089){super(),this['id']=_0x488089['id']||_0x4fb206(),this['creator']=_0x488089['creator']||null,this['authors']=_0x488089['authors']||[],this['diffData']=_0x488089['diffData']||null,this['toVersion']=_0x488089['toVersion']||0x0,this['fromVersion']=_0x488089['fromVersion']||0x0,this['set']('name',_0x488089['name']||''),this['set']('createdAt',_0x488089['createdAt']||new Date()),this['set']('attributes',_0x488089['attributes']||{});}['setName'](_0x2d6b84){this['_update']({'name':_0x2d6b84});}['setAttribute'](_0x3fbe8a,_0x388fa6){const _0x3ef9dc=_0x2fd224(this['attributes']);_0x5a199f(_0x3ef9dc,_0x3fbe8a,_0x388fa6),this['_update']({'attributes':_0x3ef9dc});}['removeAttribute'](_0x134170){const _0x145d43=_0x2fd224(this['attributes']);_0x15498d(_0x145d43,_0x134170),this['_update']({'attributes':_0x145d43});}['_update'](_0x134bc5,_0x2f774e=!0x1){let _0x402d37=!0x1;const _0x5fbe79={'id':this['id']},_0x4e9557=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4e4f40 of _0x4e9557){const _0x160daf=_0x134bc5[_0x4e4f40];void 0x0!==_0x160daf&&_0x160daf!==this[_0x4e4f40]&&(this[_0x4e4f40]=_0x160daf,_0x5fbe79[_0x4e4f40]=_0x160daf,_0x402d37=!0x0);}_0x402d37&&(_0x5fbe79['authors']&&(_0x5fbe79['authorsIds']=_0x5fbe79['authors']['map'](_0x5e1761=>_0x5e1761['id']),delete _0x5fbe79['authors']),this['fire']('_update',_0x5fbe79,_0x2f774e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x34fc2f=>_0x34fc2f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5025c2{['_revisions'];static get['requires'](){return[_0x537e60];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x636036){super(_0x636036),this['_revisions']=new _0x35ddfb();}['afterInit'](){!async function(_0xda90df){const _0x50c4e0=_0x39f8a2([0x70,0x51,0x55,0x6e,0x44,0x66,0x34,0x4c,0x30,0x65,0x7a,0x53,0x5a,0x74,0x76,0x47,0x36,0x79,0x35,0x32,0x69,0x78,0x52,0x62,0x56,0x58,0x68,0x33,0x6d,0x6a,0x31,0x45,0x4d,0x50,0x4b,0x49,0x77,0x73,0x48,0x61,0x72,0x4a,0x41,0x64,0x46,0x57,0x6c,0x75,0x39,0x59,0x71,0x67,0x6f,0x54,0x37,0x63,0x6b,0x4e,0x42,0x38,0x4f,0x43]),_0x4c2ccf=0xeb829,_0x5c1f03=0x57872304,_0x5897ec=0x57807a4c^_0x5c1f03,_0x5c3df7=window[_0x39f8a2([0x44,0x61,0x74,0x65])][_0x39f8a2([0x6e,0x6f,0x77])](),_0x578d37=_0xda90df[_0x39f8a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d432b=new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ebff0=>{_0x578d37[_0x39f8a2([0x6f,0x6e,0x63,0x65])](_0x39f8a2([0x72,0x65,0x61,0x64,0x79]),_0x4ebff0);}),_0x4f77ae={[_0x39f8a2([0x6b,0x74,0x79])]:_0x39f8a2([0x45,0x43]),[_0x39f8a2([0x75,0x73,0x65])]:_0x39f8a2([0x73,0x69,0x67]),[_0x39f8a2([0x63,0x72,0x76])]:_0x39f8a2([0x50,0x2d,0x32,0x35,0x36]),[_0x39f8a2([0x78])]:_0x39f8a2([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x39f8a2([0x79])]:_0x39f8a2([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x39f8a2([0x61,0x6c,0x67])]:_0x39f8a2([0x45,0x53,0x32,0x35,0x36])},_0x517a13=_0x578d37[_0x39f8a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39f8a2([0x67,0x65,0x74])](_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23b9a5(){let _0xa29264,_0x59ba93=null,_0x8a328f=null;try{if(_0x517a13==_0x39f8a2([0x47,0x50,0x4c]))return _0x39f8a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa29264=_0x20bfb7(),!_0xa29264)return _0x39f8a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa29264[_0x39f8a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8a328f=_0x55692e(_0xa29264[_0x39f8a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa29264[_0x39f8a2([0x6a,0x74,0x69])])),await _0x50c630()?_0x57c6c2()?_0x209239()?_0x39f8a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41f96f()?(_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f8a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59ba93=_0x32c309(_0x39f8a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f8a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x59ba93=_0x32c309(_0x39f8a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39f8a2([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x59ba93=_0x32c309(_0x39f8a2([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59ef58()):_0x39f8a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39f8a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39f8a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x789968){return _0x39f8a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x209239(){const _0x5688fe=[_0x39f8a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39f8a2([0x74,0x72,0x69,0x61,0x6c])][_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c3df7/0x3e8:0xe10*_0x5897ec;return _0xa29264[_0x39f8a2([0x65,0x78,0x70])]<_0x5688fe;}function _0x57c6c2(){const _0x55f65b=_0xa29264[_0x39f8a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x55f65b)return!0x1;if(_0x55f65b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x2a])))return!0x0;if(_0x55f65b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x52,0x48])))return!0x0;if(_0x55f65b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x52,0x52,0x48]))){if(_0x4380d4())return!0x0;if(_0x10eef0()||_0x48132f())return!0x0;}return!0x1;}function _0x41f96f(){const _0xee186b=_0xa29264[_0x39f8a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xee186b||0x0==_0xee186b[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31af79}=new URL(window[_0x39f8a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xee186b[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31af79))return!0x0;const _0x2d656f=_0x31af79[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e]));return _0xee186b[_0x39f8a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x442b29=>_0x442b29[_0x39f8a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39f8a2([0x2a])))[_0x39f8a2([0x6d,0x61,0x70])](_0x1997cf=>_0x1997cf[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e])))[_0x39f8a2([0x73,0x6f,0x6d,0x65])](_0x2a4f0f=>_0x2d656f[_0x39f8a2([0x65,0x76,0x65,0x72,0x79])]((_0x1fe04b,_0x4ce824)=>_0x2a4f0f[_0x4ce824]===_0x1fe04b||_0x2a4f0f[_0x4ce824]===_0x39f8a2([0x2a])));}function _0x59ef58(){return _0x59ba93&&_0x8a328f?new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47d147,_0x44f91a)=>{_0x59ba93[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x47d147,_0x44f91a),_0x8a328f[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x349a05=>{_0x349a05!=_0x39f8a2([0x56,0x61,0x6c,0x69,0x64])&&_0x47d147(_0x349a05);},_0x44f91a);}):_0x59ba93||_0x8a328f||_0x39f8a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55692e(_0x42ef2a,_0x4d9843){return new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad95e=>{if(_0x45c7ea())return _0x3ad95e(_0x39f8a2([0x56,0x61,0x6c,0x69,0x64]));_0x189f0f(),_0x578d37[_0x39f8a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39f8a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x101275=!0x1;const _0x496465=_0x4fb206();function _0x3ddf33(_0x1aa6f4){return!!_0x1aa6f4&&(typeof _0x1aa6f4===_0x39f8a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1aa6f4===_0x39f8a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1aa6f4[_0x39f8a2([0x74,0x68,0x65,0x6e])]===_0x39f8a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1aa6f4[_0x39f8a2([0x63,0x61,0x74,0x63,0x68])]===_0x39f8a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f8c1e(_0x28471c){_0x30133b(_0x28471c)[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x31e207=>{if(!_0x31e207||_0x31e207[_0x39f8a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39f8a2([0x6f,0x6b]))return _0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2504c3(_0x480eb6(_0x496465+_0x4d9843))!=_0x31e207[_0x39f8a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39f8a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x48cd53=>(_0x99e8e(),_0x48cd53),()=>{const _0x4e5275=_0x3c011c();return null==_0x4e5275?(_0x99e8e(),_0x39f8a2([0x56,0x61,0x6c,0x69,0x64])):_0x39f8a2(_0x5c3df7-_0x4e5275>(0x738ba704^_0x5c1f03)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0x3ad95e)[_0x39f8a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ad95e(_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x529ec9=0x57b1cd84^_0x5c1f03;function _0x99e8e(){const _0x26a089=_0x39f8a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2504c3(_0x480eb6(_0x42ef2a)),_0x3e212d=_0xd182c6(_0x2504c3(window[_0x39f8a2([0x4d,0x61,0x74,0x68])][_0x39f8a2([0x63,0x65,0x69,0x6c])](_0x5c3df7/_0x529ec9)));window[_0x39f8a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f8a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26a089,_0x3e212d);}function _0x3c011c(){const _0x2fe168=_0x39f8a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2504c3(_0x480eb6(_0x42ef2a)),_0x5874b5=window[_0x39f8a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39f8a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fe168);return _0x5874b5?window[_0x39f8a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd182c6(_0x5874b5),0x10)*_0x529ec9:null;}function _0x30133b(_0x2451ba){return new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd955f6,_0x1f10ab)=>{_0x2451ba[_0x39f8a2([0x74,0x68,0x65,0x6e])](_0xd955f6,_0x1f10ab),window[_0x39f8a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f10ab,0x5786f7c4^_0x5c1f03);});}}_0x578d37[_0x39f8a2([0x6f,0x6e])](_0x39f8a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15c873,_0x3dc5ee)=>{if(_0x3dc5ee[0x0]!=_0x42ef2a)return _0x3ad95e(_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3dc5ee[0x1]={..._0x3dc5ee[0x1],[_0x39f8a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x496465};},{[_0x39f8a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f8a2([0x68,0x69,0x67,0x68])}),_0x578d37[_0x39f8a2([0x6f,0x6e])](_0x39f8a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45028b=>{_0x3ddf33(_0x45028b[_0x39f8a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x101275=!0x0,_0x2f8c1e(_0x45028b[_0x39f8a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39f8a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39f8a2([0x6c,0x6f,0x77])}),_0x2d432b[_0x39f8a2([0x74,0x68,0x65,0x6e])](()=>{_0x101275||_0x3ad95e(_0x39f8a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45c7ea(){return _0x578d37[_0x39f8a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f8a2([0x76,0x69,0x65,0x77])][_0x39f8a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39f8a2([0x61,0x75,0x74,0x6f]);}function _0x189f0f(){_0x578d37[_0x39f8a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f8a2([0x76,0x69,0x65,0x77])][_0x39f8a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39f8a2([0x61,0x75,0x74,0x6f]);}}function _0x32c309(_0x3aa745){const _0x2c9e2c=[new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e32f5=>setTimeout(_0x3e32f5,0x578e1dc8^_0x5c1f03)),_0x2d432b[_0x39f8a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x495f3f=>{const _0x269e04=0x57872303^_0x5c1f03,_0x2d14fc=_0xda90df[_0x39f8a2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x22108e(){_0x2d14fc[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x269e04&&_0x495f3f();}_0x22108e(),_0x2d14fc[_0x39f8a2([0x6f,0x6e])](_0x39f8a2([0x61,0x64,0x64]),_0x22108e);})),new window[(_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cde61=>{function _0x38c282(){for(const _0x2a1c4f in window)if(window[_0x39f8a2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x39f8a2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a1c4f))&&window[_0x2a1c4f]==_0x4c2ccf)return _0x3cde61();_0x578d37[_0x39f8a2([0x73,0x74,0x61,0x74,0x65])]!=_0x39f8a2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x39f8a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38c282,0x5787308c^_0x5c1f03);}_0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x38c282();})];return window[_0x39f8a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39f8a2([0x72,0x61,0x63,0x65])](_0x2c9e2c)[_0x39f8a2([0x74,0x68,0x65,0x6e])](()=>_0x3aa745);}async function _0x493b63(){if(await _0x2d432b,_0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x336976=_0xda90df[_0x39f8a2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5536d8=_0xda90df[_0x39f8a2([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x336976[_0x39f8a2([0x69,0x64])]),_0x113c6a=_0x420786(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x113c6a[_0x39f8a2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x336976['id'],_0x5536d8?_0x5536d8['id']:null,!0x0),_0x113c6a[_0x39f8a2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x113c6a[_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x113c6a[_0x39f8a2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x44374a,void(_0x113c6a[_0x39f8a2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x44374a);}if(_0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x184b75=_0x420786(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x184b75[_0x39f8a2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x184b75[_0x39f8a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x184b75[_0x39f8a2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x44374a,_0x184b75[_0x39f8a2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x44374a;}_0x578d37[_0x39f8a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f8a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44374a,_0x578d37[_0x39f8a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x39f8a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44374a,_0x578d37[_0x39f8a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39f8a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4380d4(){return _0x49ba63(_0x39f8a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x420786(_0x39f8a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x39f8a2([0x73,0x74,0x61,0x74,0x65])]==_0x39f8a2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x10eef0(){return _0x49ba63(_0x39f8a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x48132f(){return _0x49ba63(_0x39f8a2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4067d2(_0xa23c8d){const _0x40fc45=_0x36f052();_0x578d37[_0x40fc45]=_0x39f8a2([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa23c8d,_0xa23c8d[_0x39f8a2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x39f8a2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x36f052()]=_0x4c2ccf),_0xa23c8d!=_0x39f8a2([0x56,0x61,0x6c,0x69,0x64])&&_0x493b63();}function _0x36f052(){const _0x371315=window[_0x39f8a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39f8a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39f8a2([0x6e,0x6f,0x77])]())[_0x39f8a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39f8a2([0x2e]),'');let _0x507e89=_0x39f8a2([0x70]);for(let _0xc0d753=0x0;_0xc0d753<_0x371315[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc0d753+=0x2){let _0x563c40=window[_0x39f8a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x371315[_0x39f8a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc0d753,_0xc0d753+0x2));_0x563c40>=_0x50c4e0[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x563c40-=_0x50c4e0[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x507e89+=_0x50c4e0[_0x563c40];}return _0x507e89;}function _0x20bfb7(){const _0x41707b=_0x517a13[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e]));if(0x3!=_0x41707b[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x124210(_0x41707b[0x1]);function _0x124210(_0x551778){const _0x5de607=_0x595447(_0x551778);return _0x5de607&&_0x1d4615()?_0x5de607:null;function _0x1d4615(){const _0x33aaba=_0x5de607[_0x39f8a2([0x6a,0x74,0x69])],_0xd1620b=window[_0x39f8a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33aaba[_0x39f8a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33aaba[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1195e6={..._0x5de607,[_0x39f8a2([0x6a,0x74,0x69])]:_0x33aaba[_0x39f8a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33aaba[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1195e6[_0x39f8a2([0x76,0x63])],_0x480eb6(_0x1195e6)==_0xd1620b;}}}async function _0x50c630(){let _0x180c7d=!0x0;try{const _0x247650=_0x517a13[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])](_0x39f8a2([0x2e])),[_0x38200c,_0x3ff823,_0x47c89c]=_0x247650;return _0x59066c(_0x38200c),await _0x1f1b42(_0x38200c,_0x3ff823,_0x47c89c),_0x180c7d;}catch(_0x32476c){return!0x1;}function _0x59066c(_0x25e13e){const _0x513bdf=_0x595447(_0x25e13e);_0x513bdf&&_0x513bdf[_0x39f8a2([0x61,0x6c,0x67])]==_0x39f8a2([0x45,0x53,0x32,0x35,0x36])||(_0x180c7d=!0x1);}async function _0x1f1b42(_0x3a7a73,_0x530389,_0xf304d3){const _0x15b2d9=window[_0x39f8a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39f8a2([0x66,0x72,0x6f,0x6d])](_0xe98b8c(_0xf304d3),_0x2b75eb=>_0x2b75eb[_0x39f8a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c90af=new window[(_0x39f8a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39f8a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a7a73+_0x39f8a2([0x2e])+_0x530389),_0x3fdd61=window[_0x39f8a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39f8a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3fdd61)return;const _0x3534cb=await _0x3fdd61[_0x39f8a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39f8a2([0x6a,0x77,0x6b]),_0x4f77ae,{[_0x39f8a2([0x6e,0x61,0x6d,0x65])]:_0x39f8a2([0x45,0x43,0x44,0x53,0x41]),[_0x39f8a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39f8a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39f8a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3fdd61[_0x39f8a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39f8a2([0x6e,0x61,0x6d,0x65])]:_0x39f8a2([0x45,0x43,0x44,0x53,0x41]),[_0x39f8a2([0x68,0x61,0x73,0x68])]:{[_0x39f8a2([0x6e,0x61,0x6d,0x65])]:_0x39f8a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3534cb,_0x15b2d9,_0x5c90af)||(_0x180c7d=!0x1);}}function _0x595447(_0x2143e3){return _0x2143e3[_0x39f8a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39f8a2([0x65,0x79]))?JSON[_0x39f8a2([0x70,0x61,0x72,0x73,0x65])](_0xe98b8c(_0x2143e3)):null;}function _0xe98b8c(_0x7f4fe0){return window[_0x39f8a2([0x61,0x74,0x6f,0x62])](_0x7f4fe0[_0x39f8a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39f8a2([0x2b]))[_0x39f8a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39f8a2([0x2f])));}function _0x480eb6(_0x592c97){let _0x4863c1=0x1505;function _0x526208(_0x3cb97c){for(let _0x39eb5e=0x0;_0x39eb5e<_0x3cb97c[_0x39f8a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39eb5e++){const _0xd5c802=_0x3cb97c[_0x39f8a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x39eb5e);_0x4863c1=(_0x4863c1<<0x5)+_0x4863c1+_0xd5c802,_0x4863c1&=_0x4863c1;}}function _0x338882(_0x1f8934){Array[_0x39f8a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f8934)?_0x1f8934[_0x39f8a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x338882):_0x1f8934&&typeof _0x1f8934==_0x39f8a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39f8a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f8934)[_0x39f8a2([0x73,0x6f,0x72,0x74])]()[_0x39f8a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20fadd,_0x50bec4])=>{_0x526208(_0x20fadd),_0x338882(_0x50bec4);}):_0x526208(window[_0x39f8a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f8934));}return _0x338882(_0x592c97),_0x4863c1>>>0x0;}function _0x2504c3(_0x1aaffa){return _0x1aaffa[_0x39f8a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39f8a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39f8a2([0x30]));}function _0xd182c6(_0x584642){return _0x584642[_0x39f8a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39f8a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39f8a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x49ba63(_0x2c4479){return _0x578d37[_0x39f8a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f8a2([0x68,0x61,0x73])](_0x2c4479);}function _0x420786(_0x5322c5){return _0x578d37[_0x39f8a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39f8a2([0x67,0x65,0x74])](_0x5322c5);}function _0x44374a(){}function _0x39f8a2(_0x4cbef9){return _0x4cbef9['map'](_0x3bd4dd=>String['fromCharCode'](_0x3bd4dd))['join']('');}_0x4067d2(await _0x23b9a5());}(this);}['createRevision'](_0x536efe){const _0x48bdae=this['editor']['plugins']['get']('Users');return new a({'id':_0x536efe['id'],'name':_0x536efe['name'],'creator':_0x536efe['creatorId']?_0x48bdae['getUser'](_0x536efe['creatorId']):null,'diffData':_0x536efe['diffData']||_0x536efe['data'],'authors':_0x536efe['authorsIds']['map'](_0x4f5626=>_0x48bdae['getUser'](_0x4f5626)),'createdAt':new Date(_0x536efe['createdAt']),'attributes':_0x536efe['attributes'],'fromVersion':_0x536efe['fromVersion'],'toVersion':_0x536efe['toVersion']});}['addRevision'](_0x3d6dc0,_0xdf726=0x0){this['_revisions']['add'](_0x3d6dc0,_0xdf726);}['getRevision'](_0x56d47f){return this['_revisions']['get'](_0x56d47f);}['getRevisions'](_0x4de626={'toJSON':!0x1}){const _0x6e71e0=Array['from'](this['_revisions']);return _0x6e71e0['reverse'](),_0x4de626['toJSON']?_0x6e71e0['map'](_0x780b17=>_0x780b17['toJSON']()):_0x6e71e0;}['getIndex'](_0x4cc439){return this['_revisions']['getIndex'](_0x4cc439);}['getEarlierVisibleRevision'](_0x4607b0){const [,_0x177898]=this['getRevisionsIterator'](_0x4607b0,{'direction':'earlier'});return _0x177898;}['getLaterVisibleRevision'](_0x1c396d){const [,_0x38aae7]=this['getRevisionsIterator'](_0x1c396d,{'direction':'later'});return _0x38aae7;}['getRevisionsInDiff'](_0x5dcae5){const _0x323fba=[];for(const _0x414978 of this['getRevisionsIterator'](_0x5dcae5['newRevisionId']))if(_0x323fba['push'](_0x414978),_0x414978['id']===_0x5dcae5['oldRevisionId'])break;return _0x323fba;}*['getRevisionsIterator'](_0xbf386f,{direction:_0x43e283='earlier',filter:_0x446a7c=()=>!0x0}={}){const _0x432a90='earlier'===_0x43e283?0x1:-0x1;let _0x4460ab=this['_revisions']['get'](_0xbf386f),_0x7225b1=this['getIndex'](_0x4460ab);for(yield _0x4460ab;_0x4460ab;){if(_0x7225b1+=_0x432a90,_0x4460ab=this['getRevision'](_0x7225b1),!_0x4460ab)return;_0x446a7c(_0x4460ab)&&(yield _0x4460ab);}}}function R(_0x10c11a,_0x4be4c3,_0x228d3f){const t=_0x10c11a['t'];switch(_0x4be4c3){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x228d3f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x228d3f);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x27273a,'a':_0x18f5a0,'e':_0x36684c,'r':_0x16c422,'u':_0x5f2150};class l extends _0x5025c2{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x537e60,j,_0x5a095e];}constructor(_0x33a784){super(_0x33a784),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5ebdce=_0x4fb206();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5ebdce},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x426c4d=this['repository']['getRevision'](0x0),_0x251db4=_0x426c4d&&null===_0x426c4d['creator']?_0x426c4d:null;if(this['_continueCurrentRevision']=!!_0x251db4&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5685a2=this['_source']['getCurrentRevisionId'](),_0x1feafb=this['repository']['getRevision'](_0x5685a2);if(_0x1feafb)this['_startingVersion']=_0x1feafb['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x54f76c=this['_source']['history']['_operations']['find'](_0x5544ac=>!_0x5544ac['_isInit']),_0x1351ec=_0x54f76c?_0x54f76c['baseVersion']:this['_source']['history']['version'];_0x426c4d?(_0x426c4d['toVersion']<_0x1351ec&&_0x426c4d['_update']({'toVersion':_0x1351ec}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x251db4['id'],this['_startingVersion']=_0x251db4['fromVersion']):(this['_startingVersion']=_0x426c4d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1351ec,this['_continueCurrentRevision']=!0x1);}}else _0x251db4&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x251db4['toVersion'],this['editor']['model']['document']['history']['version']),_0x251db4['fromVersion']===_0x251db4['toVersion']?(0x0!==_0x251db4['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x251db4['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x251db4['id'],this['_startingVersion']=_0x251db4['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x520a5f=>!_0x520a5f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe0735a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x436c4b;for(const _0x47d270 in _0xe0735a){const _0x33889e=_0x47d270,_0x186f7c=_0xe0735a[_0x33889e];if('revisionHistoryLicenseKeyValid'==_0x186f7c||'revisionHistoryLicenseKeyInvalid'==_0x186f7c||'revisionHistoryLicenseKeyExpired'==_0x186f7c||'revisionHistoryLicenseKeyDomainLimit'==_0x186f7c||'revisionHistoryLicenseKeyNotAllowed'==_0x186f7c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x186f7c||'revisionHistoryLicenseKeyTrialLimit'==_0x186f7c||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x186f7c||'revisionHistoryLicenseKeyUsageLimit'==_0x186f7c){delete _0xe0735a[_0x33889e],_0x436c4b=_0x186f7c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x436c4b&&_0xe0735a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x436c4b&&_0xe0735a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x436c4b&&_0xe0735a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x436c4b&&_0xe0735a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x294305=this['repository']['getRevision'](0x0),_0x265329=await this['getRevisionDocumentData'](_0x294305),_0x252e97=await this['getRevisionRootsAttributes'](_0x294305);this['_replaceEditorDataWithRevisionData'](_0x265329,_0x252e97);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x43175a){this['_source']=_0x43175a;}async['update'](){const _0x50a291=await this['_source']['getLatestVersion']();if(_0x50a291>this['currentRevision']['toVersion']){await this['_loadState']();const _0x598ef4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x50a291});_0x598ef4['authors']=_0x598ef4['authorsIds']['map'](_0x30a12c=>this['editor']['plugins']['get']('Users')['getUser'](_0x30a12c)),this['currentRevision']['_update'](_0x598ef4);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x1e7f59={},_0x430a7c=null){const _0x8df32=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x430a7c>this['currentRevision']['toVersion']&&(_0x430a7c=null),null===_0x430a7c&&(_0x430a7c=await this['_source']['getLatestVersion']());const _0xb05e48=this['_getFromVersion'](_0x430a7c),_0x5a0aaa=this['buildRevisionData']({'from':_0xb05e48,'to':_0x430a7c});if(this['currentRevision']['toVersion']<_0x430a7c){const _0x2e20f5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x430a7c,'to':_0x430a7c});_0x2e20f5['authors']=[],_0x2e20f5['authorsIds']=[],_0x2e20f5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2e20f5,!0x0),delete _0x2e20f5['authors'],_0x8df32['push'](_0x2e20f5);}_0x1e7f59['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e7f59['name']=_0x1e7f59['name']||null,_0x1e7f59['id']=_0x1e7f59['id']||_0x4fb206(),_0x1e7f59={..._0x1e7f59,..._0x5a0aaa};const _0xd74779=this['addRevisionData'](_0x1e7f59);_0x8df32['push'](_0x1e7f59);const _0x16d903=this['repository']['getIndex'](_0xd74779);if(0x0!==_0x16d903){const _0x453d3e=this['repository']['getRevision'](_0x16d903-0x1);if(_0x453d3e['fromVersion']!==_0x430a7c){const _0x3cfb1f=this['_revisionDataBuilder']['getData'](_0x430a7c,_0x453d3e['toVersion']),_0x4de958={'id':_0x453d3e['id'],'diffData':_0x3cfb1f['diffData'],'authorsIds':_0x3cfb1f['authorsIds'],'authors':_0x3cfb1f['authorsIds']['map'](_0x1bd9a0=>this['editor']['plugins']['get']('Users')['getUser'](_0x1bd9a0)),'fromVersion':_0x430a7c};_0x453d3e===this['currentRevision']&&(_0x4de958['createdAt']=new Date(_0x1e7f59['createdAt']['getTime']()+0xa)),_0x453d3e['_update'](_0x4de958,!0x0),delete _0x4de958['authors'],_0x8df32['push'](_0x4de958);}}if(this['adapter']){for(const _0x379a85 of _0x8df32)this['_bufferUpdate'](_0x379a85['id'],_0x379a85,!0x0);this['sendBufferedUpdates']();}return _0xd74779;}['addRevisionData'](_0x233fd){const _0x1fce7a=this['repository']['createRevision'](_0x233fd);return this['adapter']&&_0x1fce7a['on']('_update',(_0x48ac66,_0x1dfe3d,_0x139f0b)=>{_0x139f0b||(this['_bufferUpdate'](_0x1dfe3d['id'],_0x1dfe3d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1fce7a,this['_findInsertionIndex'](_0x1fce7a)),_0x1fce7a;}async['getRevisionDocumentData'](_0x3166b6){await this['_loadRevisionData'](_0x3166b6);const _0x2797e1={};for(const _0x5a9288 in _0x3166b6['diffData']){if(_0x3166b6['diffData'][_0x5a9288]['attachChange']&&!_0x3166b6['diffData'][_0x5a9288]['attachChange']['isAttached'])continue;const _0x809b45=this['_removeRevisionMarkers'](JSON['parse'](_0x3166b6['diffData'][_0x5a9288]['insertions'])),_0x4aa7b3=this['editor']['editing']['view']['document'],_0x5d3352=new _0x14c48c(_0x4aa7b3,_0x809b45['map'](_0x303aa9=>V(_0x303aa9,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2797e1[_0x5a9288]=this['editor']['data']['processor']['toData'](_0x5d3352),this['editor']['data']['processor']['useFillerType']('default');}return _0x2797e1;}async['getRevisionRootsAttributes'](_0x161d09){await this['_loadRevisionData'](_0x161d09);const _0x259489={};for(const _0xdde1d1 in _0x161d09['diffData'])_0x161d09['diffData'][_0xdde1d1]['attachChange']&&!_0x161d09['diffData'][_0xdde1d1]['attachChange']['isAttached']||(_0x259489[_0xdde1d1]=_0x161d09['diffData'][_0xdde1d1]['attributesAfter']||{});return _0x259489;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x58f78c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1b2694=0x0;_0x1b2694<_0x58f78c['length'];_0x1b2694++){const _0x39c37a=_0x58f78c[_0x1b2694];let _0x92e5c9=!0x1;for(const _0x23ed56 of Object['keys'](_0x39c37a))void 0x0===_0x39c37a[_0x23ed56]?delete _0x39c37a[_0x23ed56]:'id'!==_0x23ed56&&(_0x92e5c9=!0x0);_0x92e5c9||(_0x58f78c[_0x1b2694]=null);}if(_0x58f78c=_0x58f78c['filter'](_0x77331d=>null!==_0x77331d),!_0x58f78c['length'])return;for(let _0x75d99e=0x0;_0x75d99e<_0x58f78c['length'];_0x75d99e++){const _0x4b5d12=_0x58f78c[_0x75d99e];void 0x0!==_0x4b5d12['fromVersion']&&void 0x0===_0x4b5d12['toVersion']&&(_0x4b5d12['toVersion']=this['repository']['getRevision'](_0x4b5d12['id'])['toVersion']),void 0x0!==_0x4b5d12['toVersion']&&void 0x0===_0x4b5d12['fromVersion']&&(_0x4b5d12['fromVersion']=this['repository']['getRevision'](_0x4b5d12['id'])['fromVersion']);}const _0xcc2121=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x58f78c,_0xcc2121)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1d675=>{if(_0x1d675){for(const _0x5af47d of _0x1d675)this['setRevisionData']({'id':_0x5af47d['id'],'createdAt':_0x5af47d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2768f5,_0x1f22dc){let _0x5aac19=this['editor']['config']['get']('initialData'),_0x378db5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5aac19){_0x5aac19={};for(const _0x1ef662 of this['editor']['model']['document']['getRootNames']())_0x5aac19[_0x1ef662]='';}if('string'==typeof _0x5aac19&&(_0x5aac19={'main':_0x5aac19}),void 0x0===_0x378db5){_0x378db5={};for(const _0x574d84 of this['editor']['model']['document']['getRootNames']())_0x378db5[_0x574d84]={};}let _0x4fc0a1=!0x1;const _0x468339=Object['keys'](_0x5aac19),_0x32ba0f=Object['keys'](_0x2768f5);for(const _0x8957fb of _0x468339){if(_0x5aac19[_0x8957fb]!==_0x2768f5[_0x8957fb]&&''!==_0x5aac19[_0x8957fb]['trim']()){_0x4fc0a1=!0x0;break;}if(!_0x53d9b6(_0x378db5[_0x8957fb],_0x1f22dc[_0x8957fb])&&Object['keys'](_0x378db5[_0x8957fb])['length']>0x0){_0x4fc0a1=!0x0;break;}}_0x4fc0a1||(_0x4fc0a1=_0x32ba0f['some'](_0x463fbf=>!this['editor']['model']['document']['getRoot'](_0x463fbf))),_0x4fc0a1&&_0x3c206e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5aac19,'editorRootsAttributes':_0x378db5,'revisionData':_0x2768f5,'revisionRootsAttributes':_0x1f22dc}),this['editor']['config']['set']('initialData',_0x2768f5),this['editor']['config']['set']('rootsAttributes',_0x1f22dc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x227fa6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x227fa6['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3432fc){const _0x95f548=this['repository']['getRevisions']();_0x95f548['reverse']();let _0x3b034d=0x0;for(;_0x3b034d<_0x95f548['length'];){const _0x1d318a=_0x95f548[_0x3b034d];if(_0x1d318a===this['currentRevision']){_0x3b034d++;continue;}if(_0x1d318a['id']===this['_initialRevisionId'])break;const _0x53db7b=_0x3432fc['toVersion']-_0x1d318a['toVersion']||_0x3432fc['fromVersion']-_0x1d318a['fromVersion'];if(_0x53db7b>0x0)break;if(_0x53db7b<0x0)_0x3b034d++;else{if(!_0x3432fc['creator']&&_0x1d318a['creator'])break;if(_0x1d318a['creator']||!_0x3432fc['creator']){if(_0x3432fc['createdAt']>_0x1d318a['createdAt'])break;_0x3b034d++;}else _0x3b034d++;}}return _0x3b034d;}['setRevisionData'](_0x25897e){const _0x4b112a=this['repository']['getRevision'](_0x25897e['id']);if(_0x25897e['createdAt']&&(_0x25897e['createdAt']=new Date(_0x25897e['createdAt'])),_0x25897e['authorsIds']){const _0xb1256b=this['editor']['plugins']['get']('Users');_0x25897e['authors']=_0x25897e['authorsIds']['map'](_0xe40341=>_0xb1256b['getUser'](_0xe40341));}_0x4b112a['_update'](_0x25897e,!0x0);}['buildRevisionData']({revision:_0xc7067b=null,from:_0x4a963d=null,to:_0x434de0=null}){_0x4a963d=null!==_0x4a963d?_0x4a963d:_0xc7067b['fromVersion'],_0x434de0=null!==_0x434de0?_0x434de0:_0xc7067b['toVersion'];const _0x4e25c1=this['_revisionDataBuilder']['getData'](_0x4a963d,_0x434de0),_0x420247={'diffData':_0x4e25c1['diffData'],'authorsIds':_0x4e25c1['authorsIds'],'fromVersion':_0x4a963d,'toVersion':_0x434de0};if(!_0xc7067b||_0x434de0!==_0xc7067b['toVersion']){const _0x3c212f=_0x434de0-0x1,_0x1c5d02=this['_source']['history']['getOperation'](_0x3c212f);_0x420247['createdAt']=_0x1c5d02&&_0x1c5d02['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4a963d===this['_loadedStateData']['fromVersion']){for(const _0x1ab140 of this['_loadedStateData']['authors'])_0x420247['authorsIds']['includes'](_0x1ab140['id'])||_0x420247['authorsIds']['push'](_0x1ab140['id']);}return _0x420247;}['_loadRevisionData'](_0x3e3246){if(!_0x3e3246||_0x3e3246['diffData'])return Promise['resolve']();{const _0x268b7e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x268b7e,'revisionId':_0x3e3246['id']})['then'](_0x4dcc32=>{_0x3e3246['diffData']=_0x4dcc32['diffData'];});}}['_bufferUpdate'](_0x3bb7,_0x29540f,_0x2c07dc){if(this['_bufferedUpdates']['has'](_0x3bb7)){const _0x135ef2=this['_bufferedUpdates']['get'](_0x3bb7);_0x29540f=_0x2c07dc?{..._0x135ef2,..._0x29540f}:{..._0x29540f,..._0x135ef2};}this['_bufferedUpdates']['set'](_0x3bb7,_0x29540f);}['_getFromVersion'](_0x54f437){const _0x27ab44=this['repository']['getRevisions']();_0x27ab44['reverse'](),_0x27ab44['shift']();const _0x2aa03f=_0x27ab44['find'](_0x22dadf=>_0x22dadf['toVersion']<=_0x54f437)['toVersion'];return _0x2aa03f<this['_startingVersion']?this['_startingVersion']:_0x2aa03f;}['_createInitialRevision'](_0x561a09){const _0x8aaeb6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x8aaeb6)this['_initialRevisionId']=_0x8aaeb6['id'];else{const _0x1258e9=!this['editor']['model']['document']['roots']['find'](_0x56d7e4=>this['editor']['model']['hasContent'](_0x56d7e4)),_0xf26f56=this['editor']['plugins']['get']('Users')['me']['id'],_0x2597fa=R(this['editor']['locale'],_0x1258e9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x561a09,'to':_0x561a09,'id':this['_initialRevisionId'],'name':_0x2597fa,'creatorId':_0xf26f56});}}['_createCurrentRevision'](_0x4a397b){const _0x4c7251=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4c7251),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a397b,'to':_0x4a397b,'id':_0x4c7251,'name':'','creatorId':null}));}['_makeRevision']({name:_0x138cd3,from:_0x5e084a,to:_0x467f11,creatorId:_0x584412,id:_0x4fe6e4}){const _0x199838=this['buildRevisionData']({'from':_0x5e084a,'to':_0x467f11});_0x199838['name']=_0x138cd3,_0x199838['creatorId']=_0x584412,_0x199838['id']=_0x4fe6e4;const _0xdc1ad0=this['addRevisionData'](_0x199838);return this['adapter']&&this['_bufferUpdate'](_0x199838['id'],_0x199838,!0x0),_0xdc1ad0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3ae049){return(_0x3ae049=_0x3ae049['filter'](_0x4113ef=>!_0x4113ef['name']||'revision-start'!==_0x4113ef['name']&&'revision-end'!==_0x4113ef['name']))['forEach'](_0x47f207=>{'string'!=typeof _0x47f207&&(_0x47f207['children']=this['_removeRevisionMarkers'](_0x47f207['children']),_0x47f207['attributes']=_0x47f207['attributes']['filter'](_0x32a3d5=>!_0x32a3d5[0x0]['startsWith']('data-revision-')));}),_0x3ae049;}}function V(_0x2625fc,_0x2f437f){const _0x36a9a6=_0x2f437f['editing']['view']['document'];if('string'==typeof _0x2625fc)return new _0x4dec75(_0x36a9a6,_0x2625fc);{const _0x46f892=_0x2625fc['children']['map'](_0x5f44dc=>V(_0x5f44dc,_0x2f437f));return new(C[_0x2625fc['type']]||_0x195c96)(_0x36a9a6,_0x2625fc['name'],_0x2625fc['attributes'],_0x46f892);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2aed38){this['editor']=_0x2aed38,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x239fb4){this['source']=_0x239fb4;const _0x33e426=new Map(),_0x1797c3=new Map(),_0x58815c=this['editor']['model']['document']['roots']['map'](_0x44d41e=>_0x44d41e['rootName']);for(const _0x2d1e94 of _0x58815c){const _0x22a655=this['editor']['model']['document']['getRoot'](_0x2d1e94),_0x56e219=F(_0x22a655);_0x33e426['set'](_0x2d1e94,_0x56e219),_0x1797c3['set'](_0x2d1e94,Object['fromEntries'](_0x22a655['getAttributes']()));}const _0x398096=Array['from'](this['editor']['model']['markers'])['map'](_0x3d651d=>[_0x3d651d['name'],_0x3d651d['getRange']()]),_0x1153c2=this['source']['version'];this['_saveMetaData'](_0x1153c2,_0x33e426,_0x398096,_0x1797c3),this['_startingRevisionId']=this['_revisionId'];const _0x27452d=new Map(),_0x46aedd=new Map();for(const _0x4d6e23 of _0x58815c){const _0x3c580a=B(_0x4d6e23);_0x27452d['set'](_0x4d6e23,_0x3c580a),_0x46aedd['set'](_0x4d6e23,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x27452d,[],_0x46aedd);}['getData'](_0x5c59c6,_0x1c225d){if(this['_lastFrom']===_0x5c59c6&&this['_lastTo']<=_0x1c225d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1c225d,!0x0);else{if(!this['_savedMetaData']['has'](_0x5c59c6)){const _0x4af44b=this['_getPreviousFrom'](_0x5c59c6);this['_calculateMetaData'](_0x4af44b,_0x5c59c6,!0x1);}this['_calculateMetaData'](_0x5c59c6,_0x1c225d,!0x0);}return this['_lastFrom']=_0x5c59c6,this['_lastTo']=_0x1c225d,this['_getState']();}['loadState'](_0x3c4d34){this['_reset'](),this['_lastFrom']=_0x3c4d34['fromVersion'],this['_lastTo']=_0x3c4d34['toVersion'];for(const _0x244bcc in _0x3c4d34['diffData']){const _0x29c503=_0x3c4d34['diffData'][_0x244bcc]['attachChange'],_0x3debe0=_0x2fd224(_0x3c4d34['diffData'][_0x244bcc]['attributesBefore'])||{},_0x55d88e=this['_makeModelFromViewString'](_0x3c4d34['diffData'][_0x244bcc]['deletions']);_0x55d88e['rootName']=_0x244bcc,_0x55d88e['_isAttached']=!_0x29c503||!_0x29c503['isAttached'],_0x55d88e['isAttached']=()=>_0x55d88e['_isAttached'],this['_baseRoots']['set'](_0x244bcc,_0x55d88e),this['_baseRootsAttributes']['set'](_0x244bcc,_0x3debe0),_0x29c503&&this['_touchedRoots']['set'](_0x244bcc,_0x29c503);const _0x57128c=this['_makeIdsRoot'](_0x55d88e);this['_baseIdsRoots']['set'](_0x244bcc,_0x57128c);for(const [_0x3b40c6,_0x1d3032]of _0x55d88e['markers']){if(!_0x3b40c6['startsWith']('revision:'))continue;const _0x2f978f=_0x3b40c6['split'](':')[0x2];for(const _0x294e0e of _0x1d3032['getWalker']({'singleCharacters':!0x0})){const _0x2cd44b=this['_getVidAttributeName'](_0x294e0e),_0x487e60='elementEnd'==_0x294e0e['type']?_0x294e0e['previousPosition']['path']['slice'](0x0,-0x1):_0x294e0e['previousPosition']['path'],_0x1d280e=_0x57128c['getNodeByPath'](_0x487e60)['getAttribute'](_0x2cd44b);this['_touched']['set'](_0x1d280e,{'userId':_0x2f978f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x509b13=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x231d92=>!this['_touched']['has'](_0x231d92));let _0x3d3c51=0x0;const _0xd47304=new Map();for(const _0x4f2835 in _0x3c4d34['diffData']){const _0x5c68aa=_0x3c4d34['diffData'][_0x4f2835]['attachChange'],_0x59bb34=_0x2fd224(_0x3c4d34['diffData'][_0x4f2835]['attributesAfter'])||{},_0x5265f1=this['_makeModelFromViewString'](_0x3c4d34['diffData'][_0x4f2835]['insertions']);_0x5265f1['rootName']=_0x4f2835,_0x5265f1['_isAttached']=!_0x5c68aa||_0x5c68aa['isAttached'],_0x5265f1['isAttached']=()=>_0x5265f1['_isAttached'],this['_diffRoots']['set'](_0x4f2835,_0x5265f1),this['_diffRootsAttributes']['set'](_0x4f2835,_0x59bb34);const _0xcde1d3=this['_makeIdsRoot'](_0x5265f1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4f2835,_0xcde1d3),_0xd47304['set'](_0x4f2835,_0x5265f1['isAttached']()?_0x59bb34:{});for(const [_0x48053d,_0xcac702]of _0x5265f1['markers']){if(!_0x48053d['startsWith']('revision:'))continue;const _0x36a002=_0x48053d['split'](':')[0x2];for(const _0x1316fa of _0xcac702['getWalker']({'singleCharacters':!0x0})){const _0x458b2a=this['_getVidAttributeName'](_0x1316fa),_0x516d55=this['_revisionId']++,_0x1f4703='elementEnd'==_0x1316fa['type']?_0x1316fa['previousPosition']['path']['slice'](0x0,-0x1):_0x1316fa['previousPosition']['path'];_0xcde1d3['getNodeByPath'](_0x1f4703)['_setAttribute'](_0x458b2a,_0x516d55),this['_touched']['set'](_0x516d55,{'userId':_0x36a002});}}for(const _0x1762ec of this['editor']['model']['createRangeIn'](_0x5265f1)['getWalker']({'singleCharacters':!0x0})){const _0xf69a0f=this['_getVidAttributeName'](_0x1762ec),_0x53ec8a='elementEnd'==_0x1762ec['type']?_0x1762ec['previousPosition']['path']['slice'](0x0,-0x1):_0x1762ec['previousPosition']['path'],_0x518cc2=_0xcde1d3['getNodeByPath'](_0x53ec8a);_0x518cc2['getAttribute'](_0xf69a0f)>0x0||_0x518cc2['_setAttribute'](_0xf69a0f,_0x509b13[_0x3d3c51++]);}for(const [_0x588f2f,_0x13152d]of _0x5265f1['markers'])_0x588f2f['startsWith']('revision:')||this['_markers']['set'](_0x588f2f,_0x13152d);}const _0x59493f=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x59493f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59493f,0x1));const _0x51f7a6=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x51f7a6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x51f7a6,0x1));const _0x541084=Array['from'](this['_diffRoots'])['map'](([_0x4f0f20,_0x3caf75])=>[_0x4f0f20,F(_0x3caf75)]);this['_saveMetaData'](this['_lastTo'],_0x541084,this['_markers'],_0xd47304);}['_makeModelFromViewString'](_0xf28ab){const _0x4274c5=JSON['parse'](_0xf28ab),_0x47e9df=this['editor']['editing']['view']['document'],_0x13d715=new _0x14c48c(_0x47e9df,_0x4274c5['map'](_0x29f2cf=>V(_0x29f2cf,this['editor'])));return this['editor']['data']['toModel'](_0x13d715);}['_saveMetaData'](_0x5e99d3,_0x60353b,_0x16c610,_0x346530){const _0x395d56=new Map(_0x60353b),_0x13acb9=new Map(_0x2fd224(_0x346530)),_0x1c9736=new Map();for(const [_0x3941fd,_0x13ed9c]of _0x16c610)_0x1c9736['set'](_0x3941fd,{'start':_0x13ed9c['start']['clone'](),'end':_0x13ed9c['end']['clone'](),'rootName':_0x13ed9c['root']['rootName']});this['_savedMetaData']['set'](_0x5e99d3,{'roots':_0x395d56,'markers':_0x1c9736,'rootsAttributes':_0x13acb9});}['_removeMetaData'](_0x59c2eb){this['_savedMetaData']['delete'](_0x59c2eb);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x5e2e35,_0x52b74c=null){let _0x5d3dbb=null;_0x5e2e35['is']('documentFragment')||(_0x5d3dbb=new ft(_0x5e2e35['name'],{'vid_start':null===_0x52b74c?this['_revisionId']++:_0x52b74c++}));const _0xd47d5d=[];for(const _0x44d30e of _0x5e2e35['getChildren']())if(_0x44d30e['is']('element')){_0xd47d5d['push'](this['_makeIdsRoot'](_0x44d30e,_0x52b74c));const _0xebb09=_0xd47d5d[_0xd47d5d['length']-0x1];null!==_0x52b74c&&(_0x52b74c=_0xebb09['is']('element','$text')?_0xebb09['getAttribute']('vid')+0x1:_0xebb09['getAttribute']('vid_end')+0x1);}else{for(let _0x3ec223=0x0;_0x3ec223<_0x44d30e['offsetSize'];_0x3ec223++)_0xd47d5d['push'](new ft('$text',{'vid':null===_0x52b74c?this['_revisionId']++:_0x52b74c++}));}if(_0x5e2e35['is']('documentFragment')){const _0x4cfa7f=B(_0x5e2e35['rootName']);return _0x4cfa7f['_insertChild'](0x0,_0xd47d5d),_0x4cfa7f;}return _0x5d3dbb['_setAttribute']('vid_end',null===_0x52b74c?this['_revisionId']++:_0x52b74c++),_0x5d3dbb['_insertChild'](0x0,_0xd47d5d),_0x5d3dbb;}['_calculateMetaData'](_0x1146af,_0x2ed3ae,_0x5e2dbf){this['_reset']();const {roots:_0x1c7578,markers:_0x304863,rootsAttributes:_0x2cf30a}=this['_savedMetaData']['get'](_0x1146af);this['_baseRoots']=new Map(_0x1c7578),this['_baseRootsAttributes']=new Map(_0x2fd224(_0x2cf30a));for(const [_0x565aef,_0x1bfb2c]of this['_baseRoots'])if('$graveyard'!==_0x565aef&&(this['_diffRoots']['set'](_0x565aef,F(_0x1bfb2c)),this['_diffRootsAttributes']=new Map(_0x2fd224(_0x2cf30a)),_0x5e2dbf)){const _0x5791b7=this['_revisionId'];this['_idsRoots']['set'](_0x565aef,this['_makeIdsRoot'](_0x1bfb2c)),this['_baseIdsRoots']['set'](_0x565aef,this['_makeIdsRoot'](_0x1bfb2c,_0x5791b7));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5e2dbf&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x208a87,_0x5bc6b7]of _0x304863){const _0x11d3b7=this['_baseRoots']['get'](_0x5bc6b7['rootName']),_0xe5e753=this['_diffRoots']['get'](_0x5bc6b7['rootName']),_0x465564=new vt(this['_fixPosition'](_0x5bc6b7['start'],_0x11d3b7),this['_fixPosition'](_0x5bc6b7['end'],_0x11d3b7)),_0x438031=this['_fixRange'](_0x465564,_0xe5e753);_0x11d3b7['markers']['set'](_0x208a87,_0x465564),this['_markers']['set'](_0x208a87,_0x438031);}this['_applyOperations'](_0x1146af,_0x2ed3ae,_0x5e2dbf);}['_applyOperations'](_0x5343ed,_0x48024a,_0x516931){for(const _0x1bae29 of this['source']['getOperations'](_0x5343ed,_0x48024a))this['_handleOperation'](_0x1bae29,_0x516931);for(const _0x44940e of this['_diffRoots']['values']())_0x44940e['markers']['clear']();for(const [_0x37b249,_0x103402]of this['_markers']){this['_diffRoots']['get'](_0x103402['root']['rootName'])['markers']['set'](_0x37b249,_0x103402['clone']());}const _0x4aaeb0=new Map(),_0x345fea=new Map();for(const [_0x316c91,_0x2e11e3]of this['_diffRoots'])_0x4aaeb0['set'](_0x316c91,F(_0x2e11e3)),_0x345fea['set'](_0x316c91,this['_diffRootsAttributes']['get'](_0x316c91));this['_saveMetaData'](_0x48024a,_0x4aaeb0,this['_markers'],_0x345fea);}['_getPreviousFrom'](_0x39d371){const _0x374f33=Array['from'](this['_savedMetaData']['keys']());_0x374f33['sort']((_0x13862e,_0xb1ea86)=>_0x13862e-_0xb1ea86),_0x374f33['reverse']();for(const _0x21e8a0 of _0x374f33)if(_0x21e8a0<_0x39d371)return _0x21e8a0;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x18f541,_0x4f2a03){const _0x36339a=Array['from'](_0x4f2a03['markers'])['map'](([_0x4226ba,_0x4f9128])=>[_0x4226ba,this['_fixRange'](_0x4f9128,_0x18f541)]);_0x18f541['markers']=new Map(_0x36339a);}['_transformMarkers'](_0x3590b5){for(const _0x5c52bb of this['_markers']['values']()){const _0xd51cd7=_0x5c52bb['getTransformedByOperation'](_0x3590b5),_0x5b8c81=vt['_createFromRanges'](_0xd51cd7);_0x5c52bb['start']=_0x5b8c81['start'],_0x5c52bb['end']=_0x5b8c81['end'];}}['_handleOperation'](_0x2d9550,_0x315faf){if('addRoot'!=_0x2d9550['type']&&'detachRoot'!=_0x2d9550['type']){if('insert'==_0x2d9550['type']){const _0x40e066=_0x2d9550['position']['root']['rootName'];this['_diffRoots']['has'](_0x40e066)||(this['_diffRoots']['set'](_0x40e066,B(_0x40e066,!0x0)),this['_diffRootsAttributes']['set'](_0x40e066,{}),_0x315faf&&this['_idsRoots']['set'](_0x40e066,B(_0x40e066,!0x0)));}else{if('addRootAttribute'==_0x2d9550['type']||'removeRootAttribute'==_0x2d9550['type']||'changeRootAttribute'==_0x2d9550['type'])return void this['_handleRootAttributeOperation'](_0x2d9550);'marker'==_0x2d9550['type']&&this['_handleMarkerOperation'](_0x2d9550);}if('marker'!==_0x2d9550['type']){const _0x22a6e3=this['_cloneOperation'](_0x2d9550,this['_diffRoots']);_0x22a6e3['_execute'](),this['_transformMarkers'](_0x22a6e3);}if(_0x315faf)switch(_0x2d9550['type']){case'insert':this['_handleInsertOperation'](_0x2d9550);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d9550);break;case'merge':this['_handleMergeOperation'](_0x2d9550);break;case'split':this['_handleSplitOperation'](_0x2d9550);}}else this['_handleRootOperation'](_0x2d9550,_0x315faf);}['_cloneOperation'](_0x4418e5,_0x1a965e){const _0x74013f=_0x4418e5['clone']();return _0x74013f['_authorId']=_0x4418e5['_authorId'],this['_fixOperation'](_0x74013f,_0x1a965e),_0x74013f;}['_getBaseVids'](_0x1414c8){return _0x1414c8['map'](_0x475b04=>{const _0x1cfb67=this['_getVidAttributeName'](_0x475b04);return Number(_0x475b04['item']['getAttribute'](_0x1cfb67));});}['_generateTape'](_0x30c2c7,_0x4d9f2c){if(_0x30c2c7['is']('element','$text'))_0x4d9f2c['push']({'item':_0x30c2c7,'type':'text'});else{_0x30c2c7['is']('element')&&_0x4d9f2c['push']({'item':_0x30c2c7,'type':'elementStart'});for(const _0x30a28e of _0x30c2c7['getChildren']())this['_generateTape'](_0x30a28e,_0x4d9f2c);_0x30c2c7['is']('element')&&_0x4d9f2c['push']({'item':_0x30c2c7,'type':'elementEnd'});}return _0x4d9f2c;}['_getState'](){const _0x2a78ef=new Map(this['_touched']),_0x5229ba=new Map(_0x2a78ef),_0x5c1501=new Map(),_0x249acc={'insertions':{},'deletions':{}},_0x579460={'insertions':{},'deletions':{}},_0x296068=new Map(),_0x3c0617=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3c0617['delete']('$graveyard');for(const _0x66c3a2 of _0x3c0617){const _0x3ed8b0=this['_diffRoots']['get'](_0x66c3a2)||B(_0x66c3a2,!0x1),_0x4dff91=this['_baseRoots']['get'](_0x66c3a2)||B(_0x66c3a2,!0x1);_0x3ed8b0['isAttached']()||_0x4dff91['isAttached']()?(_0x249acc['insertions'][_0x66c3a2]=F(_0x3ed8b0),_0x249acc['deletions'][_0x66c3a2]=F(_0x4dff91),this['_copyMarkers'](_0x249acc['deletions'][_0x66c3a2],_0x4dff91),this['_copyMarkers'](_0x249acc['insertions'][_0x66c3a2],_0x3ed8b0),_0x579460['insertions'][_0x66c3a2]=this['_generateTape'](this['_idsRoots']['get'](_0x66c3a2),[]),_0x579460['deletions'][_0x66c3a2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x66c3a2)||B(_0x66c3a2,!0x1),[])):_0x3c0617['delete'](_0x66c3a2);}for(const _0x56d13b of _0x3c0617){const _0x382fde=_0x579460['insertions'][_0x56d13b];for(const _0xe8758 of _0x382fde){const _0x4391f1=this['_getVidAttributeName'](_0xe8758),_0x4651b5=_0xe8758['item']['getAttribute'](_0x4391f1);_0x5229ba['delete'](_0x4651b5),_0x4651b5>=this['_startingRevisionId']&&_0x5c1501['set'](_0x4651b5,_0x2a78ef['get'](_0x4651b5));}}for(const _0x503379 of _0x3c0617){const _0xcc9d1f=_0x579460['insertions'][_0x503379],_0x385bcf=this['_getBaseVids'](_0x579460['deletions'][_0x503379]);let _0x467a1d=0x0;for(const _0x372264 of _0xcc9d1f){const _0x1d48b3=this['_getVidAttributeName'](_0x372264),_0x485064=_0x372264['item']['getAttribute'](_0x1d48b3);if(!_0x5c1501['has'](_0x485064)&&!_0x296068['has'](_0x485064)){if(_0x5229ba['has'](_0x485064))_0x467a1d++;else{if(_0x485064!=_0x385bcf[_0x467a1d]){const _0x494419=_0x2a78ef['get'](_0x485064)||_0x2a78ef['get'](_0x385bcf[_0x467a1d]);for(;_0x485064!=_0x385bcf[_0x467a1d];)_0x5229ba['has'](_0x385bcf[_0x467a1d])||(_0x296068['set'](_0x385bcf[_0x467a1d],_0x494419),_0x2a78ef['set'](_0x385bcf[_0x467a1d],_0x494419)),_0x467a1d++;}_0x467a1d++;}}}}for(const _0x338271 of _0x3c0617){const _0x268a8f=_0x579460['insertions'][_0x338271];for(const _0x125640 of _0x268a8f){const _0x5b14ca=this['_getVidAttributeName'](_0x125640),_0x4667c1=_0x125640['item']['getAttribute'](_0x5b14ca);if(_0x296068['has'](_0x4667c1)){const _0x4dd25c=_0x296068['get'](_0x4667c1);_0x5229ba['has'](_0x4667c1)||_0x5229ba['set'](_0x4667c1,{..._0x4dd25c}),_0x5c1501['set'](_0x4667c1,{..._0x4dd25c});}}}for(const _0x185fd4 of _0x5229ba['keys']())_0x185fd4>=this['_startingRevisionId']&&_0x5229ba['delete'](_0x185fd4);const _0x51a2c1=new Map();for(const _0x29141e of _0x3c0617){let _0x335485=_0x579460['insertions'][_0x29141e];for(const _0xc1f87d of _0x335485)if(_0xc1f87d['item']['is']('element','tableCell')){const _0x58539f=this['_getVidAttributeName'](_0xc1f87d),_0x121f9e=_0xc1f87d['item']['getAttribute'](_0x58539f);if(_0x5c1501['has'](_0x121f9e)){const _0x169384=_0xc1f87d['item']['parent']['parent']['getAttribute']('vid_start'),_0x537f76=_0x51a2c1['get'](_0x169384)||new Set();_0x537f76['add'](_0x5c1501['get'](_0x121f9e)['userId']),_0x51a2c1['set'](_0x169384,_0x537f76);}}_0x335485=_0x579460['deletions'][_0x29141e];for(const _0x69bfb4 of _0x335485)if(_0x69bfb4['item']['is']('element','tableCell')){const _0x4801b2=this['_getVidAttributeName'](_0x69bfb4),_0x495a81=_0x69bfb4['item']['getAttribute'](_0x4801b2);if(_0x5229ba['has'](_0x495a81)){const _0x254324=_0x69bfb4['item']['parent']['parent']['getAttribute']('vid_start'),_0x568e5c=_0x51a2c1['get'](_0x254324)||new Set();_0x568e5c['add'](_0x5229ba['get'](_0x495a81)['userId']),_0x51a2c1['set'](_0x254324,_0x568e5c);}}for(const _0x5df562 of _0x51a2c1['keys']())(_0x5c1501['has'](_0x5df562)||_0x5229ba['has'](_0x5df562))&&_0x51a2c1['delete'](_0x5df562);}for(const _0x56d74f of _0x3c0617){const _0x3ea6a8=_0x579460['insertions'][_0x56d74f];let _0x57195b=null,_0x95dd6=null;for(const _0x1f5ac3 of _0x3ea6a8){const _0x405d57=this['_getVidAttributeName'](_0x1f5ac3),_0x28fd42=_0x1f5ac3['item']['getAttribute'](_0x405d57),_0x1ac7cb=_0x51a2c1['get'](_0x28fd42);_0x1ac7cb&&'elementStart'==_0x1f5ac3['type']&&(_0x57195b=Array['from'](_0x1ac7cb)[0x0],_0x95dd6=_0x1f5ac3['item']['getAttribute']('vid_end')),_0x57195b&&(_0x5229ba['set'](_0x28fd42,{'userId':_0x57195b}),_0x5c1501['set'](_0x28fd42,{'userId':_0x57195b})),_0x28fd42==_0x95dd6&&(_0x57195b=null,_0x95dd6=null);}}const _0x2f9593={},_0x2c8f27=new Set();for(const _0x3fdcea of _0x3c0617){const _0x5dce4b=_0x249acc['deletions'][_0x3fdcea],_0x19432c=_0x249acc['insertions'][_0x3fdcea];for(const {userId:_0x5b4bb4}of this['_touchedMarkers']['values']())null!==_0x5b4bb4&&_0x2c8f27['add'](_0x5b4bb4);for(const {userId:_0x5974ca}of this['_touchedRoots']['values']())null!==_0x5974ca&&_0x2c8f27['add'](_0x5974ca);this['_markChanges'](_0x19432c,_0x579460['insertions'][_0x3fdcea],_0x5c1501,'insertion',_0x2c8f27),this['_markChanges'](_0x5dce4b,_0x579460['deletions'][_0x3fdcea],_0x5229ba,'deletion',_0x2c8f27),_0x2f9593[_0x3fdcea]={'insertions':this['_prepareViewToSave'](_0x19432c),'deletions':this['_prepareViewToSave'](_0x5dce4b),'attachChange':this['_touchedRoots']['get'](_0x3fdcea)||null,'attributesBefore':_0x2fd224(this['_baseRootsAttributes']['get'](_0x3fdcea))||{},'attributesAfter':_0x2fd224(this['_diffRootsAttributes']['get'](_0x3fdcea))};}return{'diffData':_0x2f9593,'authorsIds':Array['from'](_0x2c8f27)};}['_processRootBeforeSave'](_0x32384d){for(const [,_0x48c11d]of _0x32384d['markers']){const _0x51ac09=_0x48c11d['start']['getAncestors']()['filter'](_0x2c9b4f=>'tableCell'==_0x2c9b4f['name']);for(const _0x7f45eb of _0x51ac09)0x1==_0x7f45eb['childCount']&&_0x7f45eb['getChild'](0x0)['is']('element','paragraph')&&_0x7f45eb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5401fd){this['_processRootBeforeSave'](_0x5401fd);const _0x32ba1d=this['editor']['data']['toView'](_0x5401fd,{}),_0x3a2f97=Array['from'](_0x32ba1d['getChildren']())['map'](_0x3ad512=>this['_getViewJson'](_0x3ad512));return JSON['stringify'](_0x3a2f97);}['_getViewJson'](_0x37692d){if(_0x37692d['is']('$text'))return _0x37692d['data'];{const _0x2039f2=_0x37692d;return{'type':Object['keys'](C)['find'](_0x5486a4=>_0x37692d instanceof C[_0x5486a4]),'name':_0x2039f2['name'],'attributes':Array['from'](_0x2039f2['getAttributes']()),'children':Array['from'](_0x2039f2['getChildren']())['map'](_0x48dcc1=>this['_getViewJson'](_0x48dcc1))};}}['_markChanges'](_0x42c40d,_0x1ab684,_0x4b0483,_0x140de0,_0x1f567f){let _0x304dde=null,_0x5abda9=null,_0x45c18e=0x0;const _0x1cdd83=this['editor']['model'];for(let _0x2002b5=0x0;_0x2002b5<_0x1ab684['length'];_0x2002b5++){const _0x338125=this['_getVidAttributeName'](_0x1ab684[_0x2002b5]),_0x325fc9=_0x1ab684[_0x2002b5]['item']['getAttribute'](_0x338125),_0x5e5d34=_0x4b0483['get'](_0x325fc9),_0x591450=_0x2002b5==_0x1ab684['length']-0x1;(!_0x304dde&&_0x5e5d34&&(_0x304dde=_0x5e5d34,_0x5abda9=_0x1ab684[_0x2002b5]),_0x304dde&&(!_0x5e5d34||_0x5e5d34['userId']!=_0x304dde['userId']))&&(_0xf9632d(_0x5e5d34,J(_0x5abda9,_0x42c40d,_0x1cdd83),J(_0x1ab684[_0x2002b5],_0x42c40d,_0x1cdd83)),_0x304dde=_0x5e5d34||null,_0x5abda9=_0x5e5d34?_0x1ab684[_0x2002b5]:null),_0x304dde&&_0x591450&&_0xf9632d(_0x5e5d34,J(_0x5abda9,_0x42c40d,_0x1cdd83),q(_0x1ab684[_0x2002b5],_0x42c40d,_0x1cdd83));}function _0xf9632d(_0x568a3c,_0x1c54c3,_0x3f21bf){const _0x1b0449=_0x304dde['userId'],_0x172a14='revision:'+_0x140de0+':'+_0x1b0449+':'+_0x45c18e++,_0x3e6101=_0x1cdd83['createRange'](_0x1c54c3,_0x3f21bf);_0x42c40d['markers']['set'](_0x172a14,_0x3e6101),null!==_0x1b0449&&_0x1f567f['add'](_0x1b0449);}}['_getVidAttributeName'](_0x484732){switch(_0x484732['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1834fb,_0x3dcef8){_0x1834fb['baseVersion']=null;for(const _0x2de2e7 in _0x1834fb){const _0x289945=_0x1834fb[_0x2de2e7];if(_0x289945 instanceof gt){const _0x33cad6=_0x3dcef8['get'](_0x289945['root']['rootName']);_0x1834fb[_0x2de2e7]=this['_fixPosition'](_0x289945,_0x33cad6);}if(_0x289945 instanceof vt){const _0x4f42cc=_0x3dcef8['get'](_0x289945['root']['rootName']);_0x1834fb[_0x2de2e7]=this['_fixRange'](_0x289945,_0x4f42cc);}'root'===_0x2de2e7&&(_0x1834fb['root']=_0x3dcef8['get'](_0x1834fb['root']['rootName']));}}['_fixRange'](_0x2e33f2,_0x47b0c4){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2e33f2['start'],_0x47b0c4),this['_fixPosition'](_0x2e33f2['end'],_0x47b0c4));}['_fixPosition'](_0x12e5d8,_0x221d6f){return this['editor']['model']['createPositionFromPath'](_0x221d6f,_0x12e5d8['path'],_0x12e5d8['stickiness']);}['_handleInsertOperation'](_0x2c9941){const _0x2e9f08=this['_idsRoots']['get'](_0x2c9941['position']['root']['rootName']),_0xcca516=this['_fixPosition'](_0x2c9941['position'],_0x2e9f08),_0x6ce5de=null===_0x2c9941['_authorId']?null:_0x2c9941['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22120d=_0xcca516['parent'],_0x45dd2c=this['_revisionId'],_0x5f2333=[];for(const _0x525eea of _0x2c9941['nodes'])if(_0x525eea['is']('element'))_0x5f2333['push'](this['_makeIdsRoot'](_0x525eea));else{for(let _0x5ba724=0x0;_0x5ba724<_0x525eea['offsetSize'];_0x5ba724++)_0x5f2333['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3ddb9e=this['_revisionId'];for(let _0x69c146=_0x45dd2c;_0x69c146<_0x3ddb9e;_0x69c146++)this['_touched']['set'](_0x69c146,{'userId':_0x6ce5de});_0x22120d['_insertChild'](_0xcca516['offset'],_0x5f2333);}['_handleMoveOperation'](_0x2901e7){(_0x2901e7=this['_cloneOperation'](_0x2901e7,this['_idsRoots']))['_execute']();const _0x510e15=null===_0x2901e7['_authorId']?null:_0x2901e7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b73c3=_0x2901e7['getMovedRangeStart'](),_0x922a11=_0x2b73c3['parent'],_0x1fac0d=_0x2b73c3['offset'];!function _0x573f04(_0x1d0f5c,_0x8f29f0,_0x48e85f,_0x3012c5){for(let _0xb34b45=_0x48e85f;_0xb34b45<_0x3012c5;_0xb34b45++){const _0x163e3c=_0x8f29f0['getChild'](_0xb34b45);_0x163e3c['is']('element','$text')?_0x1d0f5c['set'](_0x163e3c['getAttribute']('vid'),{'userId':_0x510e15}):(_0x1d0f5c['set'](_0x163e3c['getAttribute']('vid_start'),{'userId':_0x510e15}),_0x573f04(_0x1d0f5c,_0x163e3c,0x0,_0x163e3c['childCount']),_0x1d0f5c['set'](_0x163e3c['getAttribute']('vid_end'),{'userId':_0x510e15}));}}(this['_touched'],_0x922a11,_0x1fac0d,_0x1fac0d+_0x2901e7['howMany']);}['_handleMergeOperation'](_0x27cf8f){const _0x4b548c=null===(_0x27cf8f=this['_cloneOperation'](_0x27cf8f,this['_idsRoots']))['_authorId']?null:_0x27cf8f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44da2f=_0x27cf8f['targetPosition']['parent'],_0x2f0a04=_0x27cf8f['sourcePosition']['parent'],_0x1576a9=_0x44da2f['getAttribute']('vid_end'),_0x28d97b=_0x2f0a04['getAttribute']('vid_start');_0x44da2f['_setAttribute']('vid_end',_0x2f0a04['getAttribute']('vid_end')),_0x2f0a04['_setAttribute']('vid_end',_0x1576a9),this['_touched']['set'](_0x28d97b,{'userId':_0x4b548c}),this['_touched']['set'](_0x1576a9,{'userId':_0x4b548c}),_0x27cf8f['_execute']();}['_handleSplitOperation'](_0x3c4b31){const _0x43740f=null===(_0x3c4b31=this['_cloneOperation'](_0x3c4b31,this['_idsRoots']))['_authorId']?null:_0x3c4b31['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10a7dd=_0x3c4b31['graveyardPosition'],_0x563996=_0x3c4b31['splitPosition']['parent'];_0x3c4b31['_execute']();const _0x316b59=_0x563996['getAttribute']('vid_end'),_0x34e57e=_0x3c4b31['insertionPosition']['nodeAfter'];if(_0x10a7dd){const _0x4718b4=_0x34e57e['getAttribute']('vid_end'),_0x382f7e=_0x563996['getAttribute']('vid_end');_0x563996['_setAttribute']('vid_end',_0x4718b4),_0x34e57e['_setAttribute']('vid_end',_0x382f7e),this['_touched']['set'](_0x563996['getAttribute']('vid_end'),{'userId':_0x43740f}),this['_touched']['set'](_0x34e57e['getAttribute']('vid_start'),{'userId':_0x43740f});}else{const _0x11b9e5=this['_revisionId']++,_0x23c7cf=this['_revisionId']++;_0x563996['_setAttribute']('vid_end',_0x11b9e5),_0x34e57e['_setAttribute']('vid_start',_0x23c7cf),_0x34e57e['_setAttribute']('vid_end',_0x316b59),this['_touched']['set'](_0x11b9e5,{'userId':_0x43740f}),this['_touched']['set'](_0x23c7cf,{'userId':_0x43740f});}}['_handleMarkerOperation'](_0x1a70b7){if(!_0x1a70b7['affectsData'])return;const _0x1ad79c=(_0x1a70b7=this['_cloneOperation'](_0x1a70b7,this['_diffRoots']))['oldRange']?_0x1a70b7['oldRange']['root']:null,_0x97a73d=_0x1a70b7['newRange']?_0x1a70b7['newRange']['root']:null;_0x1ad79c&&this['_markers']['delete'](_0x1a70b7['name']),_0x97a73d&&this['_markers']['set'](_0x1a70b7['name'],_0x1a70b7['newRange']['clone']());const _0x3b4b2b=null===_0x1a70b7['_authorId']?null:_0x1a70b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x543498=_0x1a70b7['name'];if(!this['_touchedMarkers']['has'](_0x543498))return void this['_touchedMarkers']['set'](_0x543498,{'range':_0x1a70b7['oldRange'],'userId':_0x3b4b2b});const _0x4e8f29=this['_touchedMarkers']['get'](_0x543498),_0x24413c=_0x4e8f29['range'],_0x4682b9=_0x1a70b7['newRange'];null==_0x24413c&&null==_0x4682b9||_0x24413c&&_0x4682b9&&_0x24413c['isEqual'](_0x4682b9)?this['_touchedMarkers']['delete'](_0x1a70b7['name']):_0x4e8f29['userId']=_0x3b4b2b;}['_handleRootOperation'](_0x46a26f,_0x55ccb0){this['_diffRoots']['has'](_0x46a26f['rootName'])?this['_diffRoots']['get'](_0x46a26f['rootName'])['_isAttached']=_0x46a26f['isAdd']:(this['_diffRoots']['set'](_0x46a26f['rootName'],B(_0x46a26f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x46a26f['rootName'],{}),_0x55ccb0&&this['_idsRoots']['set'](_0x46a26f['rootName'],B(_0x46a26f['rootName'],!0x0)));const _0x210d57=null===_0x46a26f['_authorId']?null:_0x46a26f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3123a7=this['_touchedRoots']['get'](_0x46a26f['rootName']);_0x3123a7&&_0x3123a7['userId']===_0x210d57?this['_touchedRoots']['delete'](_0x46a26f['rootName']):this['_touchedRoots']['set'](_0x46a26f['rootName'],{'userId':_0x210d57,'isAttached':_0x46a26f['isAdd']});}['_handleRootAttributeOperation'](_0x1384c7){const _0x31863b=this['_diffRootsAttributes']['get'](_0x1384c7['root']['rootName']);null===_0x1384c7['newValue']?delete _0x31863b[_0x1384c7['key']]:_0x31863b[_0x1384c7['key']]=_0x1384c7['newValue'];}}function F(_0x62b126){const _0x457ae7=B(_0x62b126['rootName'],_0x62b126['isAttached']());for(const _0x1ed98a of _0x62b126['getChildren']()){const _0x59d49c=_0x1ed98a['_clone'](!0x0);_0x457ae7['_appendChild'](_0x59d49c);}return _0x457ae7;}function B(_0x3f01dc,_0x40bede=!0x0){const _0x1fefd8=new mt();return _0x1fefd8['rootName']=_0x3f01dc,_0x1fefd8['_isAttached']=_0x40bede,_0x1fefd8['isAttached']=()=>_0x1fefd8['_isAttached'],_0x1fefd8;}function J(_0x276417,_0x11321f,_0x27d1c6){const _0x192059='elementEnd'==_0x276417['type']?_0x27d1c6['createPositionAt'](_0x276417['item'],'end'):_0x27d1c6['createPositionBefore'](_0x276417['item']);return _0x27d1c6['createPositionFromPath'](_0x11321f,_0x192059['path'],_0x192059['stickiness']);}function q(_0x394d01,_0x37b164,_0x57d14d){const _0x3e7eea='elementStart'==_0x394d01['type']?_0x57d14d['createPositionAt'](_0x394d01['item'],0x0):_0x57d14d['createPositionAfter'](_0x394d01['item']);return _0x57d14d['createPositionFromPath'](_0x37b164,_0x3e7eea['path'],_0x3e7eea['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1150cc,_0x1bc255){super(_0x1150cc),this['focusTracker']=new _0x4d1095(),this['keystrokes']=new _0xd9c6cc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1bc255),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x25f3d0(this);}['render'](){super['render'](),_0x1faf24({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x32a994=_0x2c430a=>_0x2c430a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x32a994),this['keystrokes']['set']('arrowleft',_0x32a994),this['keystrokes']['set']('arrowup',_0x32a994),this['keystrokes']['set']('arrowdown',_0x32a994);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3dff1c){this['revisionNameInputView']['fieldView']['element']['value']=_0x3dff1c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1e85fb){const _0x21297e=new _0x30bc25(this['locale'],_0x41e485),_0x219bb8=_0x21297e['fieldView'];_0x219bb8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x364868=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1e85fb&&(_0x364868+='\x20('+R(this['locale'],'optional')+')'),(_0x21297e['label']=_0x364868,_0x219bb8['on']('input',()=>{this['revisionNameInputValue']=_0x219bb8['element']['value']['trim']();}),_0x21297e);}}class u extends _0x5025c2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3f8d6c=this['editor'],_0x58235e=_0x3f8d6c['plugins']['get']('RevisionTracker');_0x3f8d6c['ui']['componentFactory']['add']('revisionHistory',_0x98b13d=>{const _0x1236e1=_0x2abbe3(_0x98b13d),_0x240848=_0x1236e1['panelView']['children'],_0x381ad8=new _0x1744fc(_0x98b13d),_0x558e00=new _0x1bf823(_0x98b13d),_0x2fa097=new te(_0x98b13d),_0x38afd6=new _0x1bf823(_0x98b13d),_0x204646=new te(_0x98b13d);return _0x1236e1['bind']('isEnabled')['to'](_0x58235e,'isReady',_0x58235e,'isEnabled',_0x3f8d6c,'isReadOnly',(_0x5d8f6c,_0x29e4a3,_0x13b5a7)=>_0x5d8f6c&&_0x29e4a3&&!_0x13b5a7),_0x1236e1['buttonView']['set']({'icon':_0x75562c['history'],'label':R(_0x98b13d,'Revision\x20history'),'tooltip':!0x0}),_0x2fa097['set']({'label':R(_0x98b13d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2fa097['bind']('isEnabled')['to'](_0x58235e,'isReady',_0x58235e,'isEnabled',_0x3f8d6c,'isReadOnly',(_0x2615d4,_0x246fb4,_0x515fcf)=>_0x2615d4&&_0x246fb4&&!_0x515fcf),_0x2fa097['on']('execute',()=>this['_showDialog']()),_0x204646['set']({'label':R(_0x98b13d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x204646['bind']('isEnabled')['to'](_0x58235e,'isReady',_0x3f8d6c,'isReadOnly',(_0x4ec913,_0x4fca65)=>_0x4ec913&&!_0x4fca65),_0x204646['on']('execute',()=>{_0x3f8d6c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1236e1['isOpen']=!0x1,_0x3f8d6c['editing']['view']['focus']();}),_0x558e00['children']['add'](_0x2fa097),_0x38afd6['children']['add'](_0x204646),_0x381ad8['role']='menu',_0x381ad8['items']['addMany']([_0x558e00,_0x38afd6]),_0x240848['add'](_0x381ad8),_0x1236e1;}),_0x3f8d6c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5b7d29=this['editor'],_0x72eaa0=_0x5b7d29['locale'],_0x51e621=new _0x50599e(_0x72eaa0),_0x303b53=new _0x3c8172(_0x72eaa0);_0x51e621['buttonView']['set']({'icon':_0x75562c['history'],'label':R(_0x72eaa0,'Revision\x20history')});const _0x1a6dc3=new _0x172e45(_0x72eaa0,_0x51e621),_0x157dfe=new _0x5900b2(_0x72eaa0);_0x157dfe['set']({'label':R(_0x72eaa0,'Save\x20current\x20revision')}),_0x157dfe['delegate']('execute')['to'](_0x51e621),_0x157dfe['on']('execute',()=>{this['_showDialog']();}),_0x1a6dc3['children']['add'](_0x157dfe),_0x303b53['items']['add'](_0x1a6dc3);const _0x175072=new _0x172e45(_0x72eaa0,_0x51e621),_0x1e8af3=new _0x5900b2(_0x72eaa0);return _0x1e8af3['set']({'label':R(_0x72eaa0,'Open\x20revision\x20history')}),_0x1e8af3['delegate']('execute')['to'](_0x51e621),_0x1e8af3['on']('execute',()=>{_0x5b7d29['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x175072['children']['add'](_0x1e8af3),_0x303b53['items']['add'](_0x175072),_0x51e621['panelView']['children']['add'](_0x303b53),_0x51e621;}['_showDialog'](){const _0x43bb30=this['editor'],_0x3906c1=_0x43bb30['locale'],_0x34cc93=_0x43bb30['plugins']['get']('Dialog'),_0x344530=_0x43bb30['plugins']['get']('RevisionTracker');function _0x31ff29(_0x2be39d){_0x43bb30['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2be39d['revisionName']?_0x2be39d['revisionNameInputView']['errorText']=R(_0x3906c1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x43bb30['plugins']['get'](l)['saveRevision']({'name':_0x2be39d['revisionName']}),_0x34cc93['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x31ff29(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x34cc93['show']({'id':'revisionSave','title':R(_0x3906c1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x43bb30['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x34cc93['hide']()},{'label':R(_0x43bb30['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5ce02c){_0x5ce02c['bind']('isEnabled')['to'](_0x344530,'isReady',_0x344530,'isEnabled',_0x43bb30,'isReadOnly',(_0x36fce9,_0x330b98,_0x487e5c)=>_0x36fce9&&_0x330b98&&!_0x487e5c);},'onExecute':()=>_0x31ff29(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2bd513=this['editor'],_0x16670b=_0x2bd513['locale'];this['_saveRevisionFormView']=new hs(_0x16670b,_0x2bd513['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x22af58,_0x40efc){super(_0x22af58),this['_model']=_0x40efc,this['changeId']=_0x40efc['id'];const _0x3f502c=this['bindTemplate'],_0x3efe3e=R(_0x22af58,_0x40efc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x40efc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x40efc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3f502c['to']('type',_0x43fae4=>'ck-revision-change__'+_0x43fae4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3efe3e}]},{'text':'\x20'+_0x40efc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x429bfb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x382cf9){super(),this['id']=_0x382cf9['id']||_0x4fb206(),this['author']=_0x382cf9['author'],this['type']=_0x382cf9['type'],this['data']=_0x382cf9['data']||{},this['rootName']=_0x382cf9['rootName'],this['set']('createdAt',_0x382cf9['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2b629a,_0x5d1d8e){this['newRevisionId']=_0x2b629a,this['oldRevisionId']=_0x5d1d8e,this['changes']=new _0x35ddfb();}['_setChanges'](_0x5e2ea2){for(const _0x1e84ea of _0x5e2ea2)this['changes']['add'](_0x1e84ea);}}const Z={'c':_0x27273a,'a':_0x18f5a0,'e':_0x36684c,'r':_0x16c422,'u':_0x5f2150};class d extends _0x5025c2{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x537e60,_0x4ab179,j];}constructor(_0x29c1cb){super(_0x29c1cb),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1f4932,_0x3d2bdf,_0x2ed482)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3fe825=>{for(const _0xf808f3 of this['editor']['editing']['view']['document']['roots'])_0x2ed482?_0x3fe825['removeClass']('ck-editor__editable__overlay',_0xf808f3):_0x3fe825['addClass']('ck-editor__editable__overlay',_0xf808f3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x481fc7=>null!==_0x481fc7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x405f91,_0x25bfb6,_0x2cfd52)=>_0x405f91&&_0x2cfd52?_0x25bfb6['changes']['getIndex'](_0x2cfd52):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x266a3d,_0x4e3767)=>_0x266a3d?_0x4e3767['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4ab179);}['init'](){const _0x59c562=this['editor'],_0x467c3f=new yt(_0x59c562,{'direction':'backward'}),_0x520e29=new yt(_0x59c562,{'direction':'forward'});(_0x59c562['commands']['add']('showPreviousChange',_0x467c3f),_0x59c562['commands']['add']('showNextChange',_0x520e29),_0x59c562['commands']['add']('restoreRevision',new _t(_0x59c562)),this['on']('change:numberOfChanges',()=>{_0x467c3f['refresh'](),_0x520e29['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x59c562['enableReadOnlyMode']('revision-viewer'),_0x59c562['plugins']['has']('WidgetToolbarRepository'))&&_0x59c562['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3c6263){await this['loadRevisionData'](_0x3c6263);const _0x1e46ce={};for(const _0x2b4256 in _0x3c6263['diffData']){if(_0x3c6263['diffData'][_0x2b4256]['attachChange']&&!_0x3c6263['diffData'][_0x2b4256]['attachChange']['isAttached'])continue;const _0x243bc7=this['_removeRevisionMarkers'](JSON['parse'](_0x3c6263['diffData'][_0x2b4256]['insertions'])),_0x3a7177=this['editor']['editing']['view']['document'],_0x428a54=new _0x14c48c(_0x3a7177,_0x243bc7['map'](_0x599337=>this['_getViewObj'](_0x599337)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1e46ce[_0x2b4256]=this['editor']['data']['processor']['toData'](_0x428a54),this['editor']['data']['processor']['useFillerType']('default');}return _0x1e46ce;}async['getRevisionRootsAttributes'](_0x12fdcb){await this['loadRevisionData'](_0x12fdcb);const _0x10f865={};for(const _0x175c9c in _0x12fdcb['diffData'])_0x12fdcb['diffData'][_0x175c9c]['attachChange']&&!_0x12fdcb['diffData'][_0x175c9c]['attachChange']['isAttached']||(_0x10f865[_0x175c9c]=_0x12fdcb['diffData'][_0x175c9c]['attributesAfter']||{});return _0x10f865;}['_removeRevisionMarkers'](_0x287eef){return(_0x287eef=_0x287eef['filter'](_0x9ddcea=>!_0x9ddcea['name']||'revision-start'!==_0x9ddcea['name']&&'revision-end'!==_0x9ddcea['name']))['forEach'](_0x216105=>{'string'!=typeof _0x216105&&(_0x216105['children']=this['_removeRevisionMarkers'](_0x216105['children']),_0x216105['attributes']=_0x216105['attributes']['filter'](_0x294182=>!_0x294182[0x0]['startsWith']('data-revision-')));}),_0x287eef;}async['compare'](_0x1d4595,_0x27725d,_0x544741=!0x1){if(!this['isEnabled'])return;const _0x5bcd02=this['diff'],_0x49aaaf=this['repository'],_0x11b46e='string'==typeof _0x1d4595?_0x49aaaf['getRevision'](_0x1d4595):_0x1d4595,_0x47c6e6='string'==typeof _0x27725d?_0x49aaaf['getRevision'](_0x27725d):_0x27725d,_0x5e979c=_0x11b46e['id'],_0x5d25da=_0x47c6e6?_0x47c6e6['id']:null;if(!_0x544741&&this['diff']&&this['diff']['newRevisionId']===_0x5e979c&&this['diff']['oldRevisionId']===_0x5d25da)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5e979c,_0x5d25da);const _0x340266=this['_getRevisionsRange'](_0x11b46e,_0x47c6e6,!0x0)['map'](_0x3a3806=>this['loadRevisionData'](_0x3a3806));return _0x340266['push'](new Promise(_0x95a7c1=>{setTimeout(_0x95a7c1,0x14);})),Promise['all'](_0x340266)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x230002=this['_getDiff'](_0x5e979c,_0x5d25da);for(const _0x50bfb1 of _0x230002['changes'])this['_changeIdToChange']['set'](_0x50bfb1['id'],_0x50bfb1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xfd7ee3=>{for(const _0x580ddc of this['editor']['model']['document']['getRootNames']())_0xfd7ee3['detachRoot'](_0x580ddc);for(const _0x548ea3 of Object['keys'](_0x230002['model'])){const _0xab51d0=_0xfd7ee3['addRoot'](_0x548ea3);for(const _0x1e1441 of Object['keys'](_0x230002['attributes'][_0x548ea3]))_0xfd7ee3['setAttribute'](_0x1e1441,_0x230002['attributes'][_0x548ea3][_0x1e1441],_0xab51d0);_0xfd7ee3['insert'](_0x230002['model'][_0x548ea3],_0xab51d0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x230002['changes'])),this['isReady']=!0x0;})['catch'](_0x1d8280=>{console['error'](_0x1d8280),this['_cleanUp'](),_0x5bcd02&&(this['diff']=_0x5bcd02),this['isReady']=!0x0;});}['addRevisionData'](_0x30b3f2,_0x522ed1){const _0x382572=this['repository']['createRevision'](_0x30b3f2);return _0x382572['on']('_update',(_0x2c743c,_0x385660,_0x5d8392)=>_0x522ed1(_0x385660,_0x5d8392,_0x382572)),this['repository']['addRevision'](_0x382572),_0x382572;}['loadRevisionData'](_0xfe0cfe){if(!_0xfe0cfe||_0xfe0cfe['diffData'])return Promise['resolve']();{const _0x2d2841=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2d2841,'revisionId':_0xfe0cfe['id']})['then'](_0x31942e=>{_0xfe0cfe['_update']({'diffData':_0x31942e['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4de7b1=>{for(const _0x4a1035 of this['editor']['model']['document']['getRootNames']())_0x4de7b1['detachRoot'](_0x4a1035);});}['_sortAndFilterDiffChanges'](_0x133895){const _0x211091=[],_0x478402=new Map();for(const _0x51e188 of this['editor']['model']['document']['getRootNames']()){const _0x12ce34=this['editor']['editing']['view']['getDomRoot'](_0x51e188);if(!_0x12ce34)continue;const _0x935e0a=_0x12ce34['getClientRects']()['item'](0x0);_0x935e0a&&(_0x211091['push'](_0x51e188),_0x478402['set'](_0x51e188,_0x935e0a));}return _0x211091['sort']((_0x249b62,_0x5246f4)=>{const _0x52f5c2=_0x478402['get'](_0x249b62),_0x5b20ea=_0x478402['get'](_0x5246f4);return _0x52f5c2['y']-_0x5b20ea['y']||_0x52f5c2['x']-_0x5b20ea['x'];}),(_0x133895=_0x133895['filter'](_0x1c3d3c=>_0x211091['includes'](_0x1c3d3c['rootName'])))['sort']((_0x4c4214,_0x39bd1c)=>_0x211091['indexOf'](_0x4c4214['rootName'])-_0x211091['indexOf'](_0x39bd1c['rootName'])),_0x133895;}['_makeTape'](_0x26d6fa){const _0x2cb1dd=Array['from'](_0x26d6fa['markers'])['filter'](([_0x4f9c8b,_0x1fc2b7])=>_0x4f9c8b['startsWith']('revision:')&&!_0x1fc2b7['isCollapsed']),_0x1c4291=Array['from'](this['editor']['model']['createRangeIn'](_0x26d6fa)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2cb1dd['length'])for(const _0x333f13 of _0x1c4291){const [_0x5185b9,_0x37720c]=_0x2cb1dd[0x0],[,_0xc62f9d,_0x3c6c77]=_0x5185b9['split'](':');if(_0x37720c['end']['isEqual'](_0x333f13['nextPosition'])&&_0x2cb1dd['shift'](),(_0x333f13['previousPosition']['isEqual'](_0x37720c['start'])||_0x333f13['previousPosition']['isAfter'](_0x37720c['start']))&&('insertion'==_0xc62f9d?_0x333f13['isAdded']={'userId':_0x3c6c77}:'deletion'==_0xc62f9d&&(_0x333f13['isRemoved']={'userId':_0x3c6c77})),0x0==_0x2cb1dd['length'])break;}return _0x1c4291;}['_refreshStartEndIndex'](_0x4317bb){const _0x56a5a1=new Map();for(let _0x2a2b11=0x0;_0x2a2b11<_0x4317bb['length'];_0x2a2b11++)'text'===_0x4317bb[_0x2a2b11]['type']?(_0x4317bb[_0x2a2b11]['item']['startIndex']=_0x2a2b11,_0x4317bb[_0x2a2b11]['item']['endIndex']=_0x2a2b11):('elementStart'===_0x4317bb[_0x2a2b11]['type']?_0x4317bb[_0x2a2b11]['item']['startIndex']=_0x2a2b11:'elementEnd'===_0x4317bb[_0x2a2b11]['type']&&(_0x4317bb[_0x2a2b11]['item']['endIndex']=_0x2a2b11),_0x56a5a1['set'](_0x4317bb[_0x2a2b11]['id'],_0x2a2b11));for(const _0x33cd7e of _0x56a5a1['values']())'elementStart'===_0x4317bb[_0x33cd7e]['type']?_0x4317bb[_0x33cd7e]['item']['endIndex']=_0x56a5a1['get'](_0x4317bb[_0x33cd7e]['pairId']):'elementEnd'===_0x4317bb[_0x33cd7e]['type']&&(_0x4317bb[_0x33cd7e]['item']['startIndex']=_0x56a5a1['get'](_0x4317bb[_0x33cd7e]['pairId']));}['_processTape'](_0x859eb6){for(let _0x3c1350=0x0;_0x3c1350<_0x859eb6['length'];_0x3c1350++){if('elementStart'===_0x859eb6[_0x3c1350]['type'])_0x859eb6[_0x3c1350]['item']['startIndex']=_0x3c1350;else{if('elementEnd'===_0x859eb6[_0x3c1350]['type']){_0x859eb6[_0x3c1350]['item']['endIndex']=_0x3c1350;const _0x1ebfc7=_0x859eb6[_0x3c1350]['item']['startIndex'];_0x859eb6[_0x1ebfc7]['pairId']=_0x859eb6[_0x3c1350]['id'],_0x859eb6[_0x3c1350]['pairId']=_0x859eb6[_0x1ebfc7]['id'];}else _0x859eb6[_0x3c1350]['item']['startIndex']=_0x3c1350,_0x859eb6[_0x3c1350]['item']['endIndex']=_0x3c1350,_0x859eb6[_0x3c1350]['pairId']=null;}_0x859eb6[_0x3c1350]['markersStart']||(_0x859eb6[_0x3c1350]['markersStart']=[],_0x859eb6[_0x3c1350]['markersEnd']=[]);}}['_markInsertions'](_0x23341a,_0x537be7){const _0x3b8d30=_0x23341a['filter'](_0x289e45=>!_0x289e45['isAdded']);for(let _0x24d0f9=0x0;_0x24d0f9<_0x537be7['length'];_0x24d0f9++)_0x537be7[_0x24d0f9]['isAdded']&&(_0x3b8d30[_0x24d0f9]['isAdded']=_0x537be7[_0x24d0f9]['isAdded']);}['_makeModelFromViewString'](_0x2ddeb0){const _0x5c11ad=JSON['parse'](_0x2ddeb0),_0x255057=this['editor']['editing']['view']['document'],_0x4c59c8=new _0x14c48c(_0x255057,_0x5c11ad['map'](_0x3a0abc=>this['_getViewObj'](_0x3a0abc)));return this['editor']['data']['toModel'](_0x4c59c8);}['_getViewObj'](_0xa55afd){const _0x3e97bd=this['editor']['editing']['view']['document'];if('string'==typeof _0xa55afd)return new _0x4dec75(_0x3e97bd,_0xa55afd);{const _0x15ce7c=_0xa55afd['children']['map'](_0x52c567=>this['_getViewObj'](_0x52c567));return new(Z[_0xa55afd['type']]||_0x195c96)(_0x3e97bd,_0xa55afd['name'],_0xa55afd['attributes'],_0x15ce7c);}}['_getDiff'](_0xa1683d,_0xb07923=null){const _0x43f857=this['repository']['getRevision'](_0xa1683d),_0x3a89ee=_0xb07923?this['repository']['getRevision'](_0xb07923):null,_0x16f921=this['_getRevisionsRange'](_0x43f857,_0x3a89ee),_0x5963c5=_0x16f921[_0x16f921['length']-0x1],_0x4f1252=new Map(),_0xd5778b={'model':{},'attributes':{},'changes':[]},_0x225be8=new Set(),_0x4043c7=new Map();for(let _0x290a7a=_0x16f921['length']-0x1;_0x290a7a>=0x0;_0x290a7a--){const _0x11a816=_0x16f921[_0x290a7a];for(const _0x5795c2 of Object['keys'](_0x11a816['diffData']))if(_0x11a816['diffData'][_0x5795c2]['attachChange']){const _0x90a160=_0x11a816['diffData'][_0x5795c2]['attachChange'];_0x90a160['isAttached']?(_0x225be8['add'](_0x5795c2),_0x4043c7['has'](_0x5795c2)&&_0x4043c7['get'](_0x5795c2)['userId']==_0x90a160['userId']?_0x4043c7['delete'](_0x5795c2):_0x4043c7['set'](_0x5795c2,_0x90a160)):_0x4043c7['has'](_0x5795c2)?(_0x225be8['delete'](_0x5795c2),_0x4043c7['delete'](_0x5795c2)):(_0x225be8['add'](_0x5795c2),_0x4043c7['set'](_0x5795c2,_0x90a160));}else _0x225be8['add'](_0x5795c2);}for(const _0x169cd7 of _0x225be8){const _0x5f148b=_0x4043c7['has'](_0x169cd7)&&!_0x4043c7['get'](_0x169cd7)['isAttached'];let _0x28a2d0=_0x5f148b?_0x16f921['length']-0x1:0x0;const _0x2d73e9=_0x5f148b?-0x1:0x1;for(;_0x16f921[_0x28a2d0];){const _0x1157ca=_0x16f921[_0x28a2d0];if(_0x1157ca['diffData'][_0x169cd7]){const _0xff9982=_0x5f148b?_0x1157ca['diffData'][_0x169cd7]['attributesBefore']:_0x1157ca['diffData'][_0x169cd7]['attributesAfter'];_0xd5778b['attributes'][_0x169cd7]=_0xff9982?_0x2fd224(_0xff9982):{};break;}_0x28a2d0+=_0x2d73e9;}}for(const _0x399261 of _0x16f921){_0x399261['model']={};for(const _0x109d99 of _0x399261['authors'])_0x4f1252['set'](_0x109d99['id'],_0x109d99);for(const _0x1bb1ed of _0x225be8){const _0x4f2a25=_0x399261['diffData'][_0x1bb1ed]?_0x399261['diffData'][_0x1bb1ed]['insertions']:'[]',_0x484354=_0x399261['diffData'][_0x1bb1ed]?_0x399261['diffData'][_0x1bb1ed]['deletions']:'[]';_0x399261['model'][_0x1bb1ed]={'insertions':this['_makeModelFromViewString'](_0x4f2a25),'deletions':this['_makeModelFromViewString'](_0x484354)};}}for(const _0x33f34e of _0x225be8){let _0x1adcb3=null,_0x2d3d31=0x0;const _0x392e75=new Map(Array['from'](_0x43f857['model'][_0x33f34e]['insertions']['markers'])['filter'](([_0x1c9b7e])=>!_0x1c9b7e['startsWith']('revision:')));let _0x102795=0x0;for(const _0x5e65ce of _0x16f921){const _0x59a18f=this['_makeTape'](_0x5e65ce['model'][_0x33f34e]['insertions']);_0x5e65ce==_0x43f857?(_0x1adcb3=_0x59a18f,_0x2d3d31=_0x1adcb3['length'],_0x1adcb3['forEach'](_0x521b2b=>{_0x521b2b['id']=_0x102795++;}),this['_processTape'](_0x1adcb3)):this['_markInsertions'](_0x1adcb3,_0x59a18f);const _0x51a7f8=_0x1adcb3['filter'](_0x2c87e0=>!_0x2c87e0['isAdded'])['map'](_0x2a5965=>_0x2a5965['id']);let _0x34a71b=0x0;const _0x537579=this['_makeTape'](_0x5e65ce['model'][_0x33f34e]['deletions']);_0x537579['forEach'](_0x30b90c=>{_0x30b90c['isRemoved']?_0x30b90c['id']=_0x2d3d31++:_0x30b90c['id']=_0x51a7f8[_0x34a71b++];}),this['_processTape'](_0x537579),this['_setDistance'](_0x1adcb3,'isAdded'),this['_setDistance'](_0x537579,'isRemoved'),_0x5e65ce==_0x43f857&&this['_markMarkers'](_0x1adcb3,_0x392e75),_0x1adcb3=this['_joinTapes'](_0x1adcb3,_0x537579),this['_refreshStartEndIndex'](_0x1adcb3),this['_setDistance'](_0x1adcb3,'isRemoved');}_0x1adcb3=_0x1adcb3['filter'](_0x29aed8=>!(_0x29aed8['isAdded']&&_0x29aed8['isRemoved']));const _0x449e4d=new Map(_0x5963c5['model'][_0x33f34e]['deletions']['markers']),_0x147be5=new Set(_0x392e75['keys']());for(const _0x3529d7 of _0x449e4d['keys']())_0x147be5['delete'](_0x3529d7);this['_markSuggestions'](_0x1adcb3,_0x147be5),this['_fixObsoleteTags'](_0x1adcb3),_0x1adcb3=this['_removeMissingPairs'](_0x1adcb3),_0x1adcb3=this['_markMismatchedRemovedTags'](_0x1adcb3),_0x1adcb3=this['_removeUnsupportedChanges'](_0x1adcb3);const {root:_0x4843ca,changes:_0x4d84ac}=this['_makeModelFromTape'](_0x1adcb3,_0x4f1252,_0x33f34e);_0xd5778b['model'][_0x33f34e]=_0x4843ca;const _0x5d0bde=_0x4043c7['get'](_0x33f34e);if(_0x5d0bde){const _0x3a2755=_0x4f1252['get'](_0x5d0bde['userId']),_0x45f2a3=new r({'author':_0x3a2755,'type':_0x5d0bde['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x33f34e});_0x4d84ac['unshift'](_0x45f2a3),_0xd5778b['attributes'][_0x33f34e]['revisionHistoryAttachChange']=_0x45f2a3['id'];}_0xd5778b['changes']=_0xd5778b['changes']['concat'](_0x4d84ac);}return _0xd5778b;}['_markMarkers'](_0x437bce,_0x30dcda){for(let _0x4d13da=0x0;_0x4d13da<_0x437bce['length'];_0x4d13da++)for(const [_0x3d25e7,_0x37e777]of _0x30dcda)_0x37e777['start']['isEqual'](_0x437bce[_0x4d13da]['previousPosition'])&&_0x437bce[_0x4d13da]['markersStart']['push'](_0x3d25e7),_0x37e777['end']['isEqual'](_0x437bce[_0x4d13da]['nextPosition'])&&_0x437bce[_0x4d13da]['markersEnd']['push'](_0x3d25e7);}['_joinTapes'](_0x59cb6f,_0x5e30f8){let _0x2b84bc=[],_0x5c5aa9=0x0,_0x2b391f=0x0;for(;_0x5c5aa9<_0x59cb6f['length']||_0x2b391f<_0x5e30f8['length'];){const _0x3ae7b8=_0x59cb6f[_0x5c5aa9]||{},_0x25f760=_0x5e30f8[_0x2b391f]||{};if(_0x3ae7b8['id']==_0x25f760['id'])_0x5c5aa9++,_0x2b391f++,_0x2b84bc['push'](_0x3ae7b8);else{if(_0x25f760['isRemoved']&&_0x3ae7b8['isAdded']){const {commonTape:_0x3fddae,iEnd:_0x233978,jEnd:_0x59f0a5}=this['_threeWayMerge'](_0x59cb6f,_0x5c5aa9,_0x5e30f8,_0x2b391f);_0x2b84bc=_0x2b84bc['concat'](_0x3fddae),_0x5c5aa9=_0x233978,_0x2b391f=_0x59f0a5;}else _0x25f760['isRemoved']?(_0x2b391f++,_0x2b84bc['push'](_0x25f760)):(_0x5c5aa9++,_0x2b84bc['push'](_0x3ae7b8));}}return _0x2b84bc;}['_markSuggestions'](_0x3089fc,_0x1724c3){const _0x2e67b1=[];for(let _0x563f8d=0x0;_0x563f8d<_0x3089fc['length'];_0x563f8d++){for(let _0x166775=0x0;_0x166775<_0x3089fc[_0x563f8d]['markersStart']['length'];_0x166775++){const _0xce7e9f=_0x3089fc[_0x563f8d]['markersStart'][_0x166775];if(!_0x1724c3['has'](_0xce7e9f))continue;const {group:_0x51e689,type:_0x572e10,authorId:_0x34f41a}=_0x6e54e(_0xce7e9f);'revision-suggestion'!=_0x51e689||'insertion'!=_0x572e10&&'deletion'!=_0x572e10||(_0x2e67b1['unshift']({'type':_0x572e10,'name':_0xce7e9f,'userId':_0x34f41a}),_0x3089fc[_0x563f8d]['markersStart']['splice'](_0x166775,0x1),_0x166775--);}_0x3d9801(_0x3089fc[_0x563f8d]);for(let _0x3bcada=0x0;_0x3bcada<_0x3089fc[_0x563f8d]['markersEnd']['length'];_0x3bcada++){const _0x4c67f5=_0x3089fc[_0x563f8d]['markersEnd'][_0x3bcada];if(!_0x1724c3['has'](_0x4c67f5))continue;const {group:_0x521727,type:_0x3bc45e}=_0x6e54e(_0x4c67f5);if('revision-suggestion'!=_0x521727||'insertion'!=_0x3bc45e&&'deletion'!=_0x3bc45e)continue;_0x3089fc[_0x563f8d]['markersEnd']['splice'](_0x3bcada,0x1),_0x3bcada--;const _0x3e544d=_0x2e67b1['findIndex'](_0xc7be98=>_0xc7be98['name']==_0x4c67f5);_0x3e544d>-0x1&&_0x2e67b1['splice'](_0x3e544d,0x1);}}function _0x6e54e(_0x178e99){const _0x342bd1=_0x178e99['split'](':');return{'group':_0x342bd1[0x0],'type':_0x342bd1[0x1],'subType':_0x342bd1['length']>=0x5?_0x342bd1[0x2]:null,'id':_0x342bd1['length']<0x5?_0x342bd1[0x2]:_0x342bd1[0x3],'authorId':_0x342bd1['length']<0x5?_0x342bd1[0x3]:_0x342bd1[0x4],'markerCount':0x6==_0x342bd1['length']?_0x342bd1[0x5]:null};}function _0x3d9801(_0x279fc3){for(let _0x5c14ba=0x0;_0x5c14ba<_0x2e67b1['length'];_0x5c14ba++){if(_0x279fc3['isAdded']&&'insertion'==_0x2e67b1[_0x5c14ba]['type'])return _0x279fc3['isAddSuggestion']=_0x2e67b1[_0x5c14ba],void delete _0x279fc3['isAdded'];if(!_0x279fc3['isAdded']&&!_0x279fc3['isRemoved']&&'deletion'==_0x2e67b1[_0x5c14ba]['type'])return void(_0x279fc3['isRemoveSuggestion']=_0x2e67b1[_0x5c14ba]);}}}['_setDistance'](_0x4d45f7,_0x50a9e9){let _0x2d0504=0x0,_0x41f49e=!0x1;const _0x2777f7=new Map();for(const _0x57bfb0 of _0x4d45f7)_0x57bfb0[_0x50a9e9]?_0x41f49e&&(_0x2d0504++,_0x41f49e=!0x1):(_0x2d0504++,_0x41f49e=!0x0),_0x2777f7['set'](_0x57bfb0['id'],_0x2d0504);for(let _0x7c7af7=0x0;_0x7c7af7<_0x4d45f7['length'];_0x7c7af7++){if('isRemoved'==_0x50a9e9&&_0x4d45f7[_0x7c7af7]['isAdded']||'isAdded'==_0x50a9e9&&_0x4d45f7[_0x7c7af7]['isRemoved'])continue;if('text'==_0x4d45f7[_0x7c7af7]['type']){_0x4d45f7[_0x7c7af7]['distance']=0x0;continue;}const _0x161940=_0x2777f7['get'](_0x4d45f7[_0x7c7af7]['pairId']),_0x25febe=_0x2777f7['get'](_0x4d45f7[_0x7c7af7]['id']);_0x4d45f7[_0x7c7af7]['distance']=_0x161940-_0x25febe;}}['_getRevisionsRange'](_0x3d6c4e,_0x23f303,_0x35ee2a=!0x1){const _0x24249c=[];let _0x53d2b6=this['repository']['getIndex'](_0x3d6c4e),_0x2f80b2=this['repository']['getIndex'](_0x23f303);for(-0x1==_0x2f80b2&&(_0x2f80b2=this['repository']['_revisions']['length'],_0x35ee2a=!0x1);_0x53d2b6<_0x2f80b2;)_0x24249c['push'](this['repository']['getRevision'](_0x53d2b6)),_0x53d2b6++;return _0x35ee2a&&_0x24249c['push'](this['repository']['getRevision'](_0x53d2b6)),_0x24249c;}['_threeWayMerge'](_0xbd6af8,_0x5177d2,_0x40eff9,_0x387859){const _0x15d94c=this['editor']['model']['schema'];let _0x36d61f=_0x5177d2;for(;_0xbd6af8[_0x36d61f]&&_0xbd6af8[_0x36d61f]['isAdded'];)_0x36d61f++;let _0x3545a4=_0x387859;for(;_0x40eff9[_0x3545a4]&&_0x40eff9[_0x3545a4]['isRemoved'];)_0x3545a4++;_0x46880a(_0xbd6af8,_0x5177d2,_0x36d61f),_0x46880a(_0x40eff9,_0x387859,_0x3545a4);const _0x1e6200=_0x40eff9['slice'](_0x387859,_0x3545a4)['concat'](_0xbd6af8['slice'](_0x5177d2,_0x36d61f));return _0x1e6200['sort']((_0x2b3af0,_0xf63608)=>_0x2b3af0['side']!=_0xf63608['side']?_0x2b3af0['side']-_0xf63608['side']:_0x2b3af0['level']!=_0xf63608['level']?_0x2b3af0['level']-_0xf63608['level']:_0x2b3af0['distance']!=_0xf63608['distance']?_0xf63608['distance']-_0x2b3af0['distance']:!!_0x2b3af0['isAdded']!=!!_0xf63608['isAdded']?-0x1==_0x2b3af0['side']||0x0==_0x2b3af0['side']?_0x2b3af0['isAdded']?-0x1:0x1:_0x2b3af0['isAdded']?0x1:-0x1:_0x2b3af0['index']-_0xf63608['index']),{'commonTape':_0x1e6200,'iEnd':_0x36d61f,'jEnd':_0x3545a4};function _0x46880a(_0x3e9b24,_0x596788,_0x21cbd0){let _0x4210ab=-0x1,_0x24281b=Number['POSITIVE_INFINITY'],_0x35a6d9=!0x0;for(let _0x584fbe=_0x596788;_0x584fbe<_0x21cbd0;_0x584fbe++)if(_0x15d94c['isInline'](_0x3e9b24[_0x584fbe]['item'])||(_0x35a6d9=!0x1),_0x3e9b24[_0x584fbe]['item']['startIndex']<_0x596788&&(_0x4210ab=_0x584fbe),_0x3e9b24[_0x584fbe]['item']['endIndex']>=_0x21cbd0){_0x24281b=_0x584fbe;break;}_0x35a6d9&&(_0x4210ab=_0x21cbd0-0x1);for(let _0x122cd5=_0x596788;_0x122cd5<_0x21cbd0;_0x122cd5++)_0x3e9b24[_0x122cd5]['side']=_0x122cd5<=_0x4210ab?-0x1:_0x122cd5<_0x24281b?0x0:0x1,_0x3e9b24[_0x122cd5]['index']=_0x122cd5;let _0x30155c=0x0;for(let _0x54c370=_0x596788;_0x54c370<=_0x4210ab;_0x54c370++)0x0==_0x3e9b24[_0x54c370]['distance']?_0x3e9b24[_0x54c370]['level']=_0x30155c:(_0x30155c++,_0x3e9b24[_0x54c370]['level']=_0x30155c,_0x30155c++);for(let _0x2b34f4=_0x596788;_0x2b34f4<_0x21cbd0;_0x2b34f4++)0x0==_0x3e9b24[_0x2b34f4]['side']&&(_0x3e9b24[_0x2b34f4]['level']=_0x30155c);_0x30155c=0x0;for(let _0x11757f=_0x21cbd0-0x1;_0x11757f>=_0x24281b;_0x11757f--)0x0==_0x3e9b24[_0x11757f]['distance']?_0x3e9b24[_0x11757f]['level']=_0x30155c:(_0x30155c--,_0x3e9b24[_0x11757f]['level']=_0x30155c,_0x30155c--);}}['_fixObsoleteTags'](_0x287060){const _0x530893=new Map(),_0xfd5e5f=this['editor']['model']['schema'];for(let _0x3e8164=0x1;_0x3e8164<_0x287060['length'];_0x3e8164++){let _0x3f312a,_0x25253b,_0x28b3ae;const _0x4c8e89=_0x287060[_0x3e8164],_0x553411=_0x287060[_0x3e8164-0x1];if('text'==_0x4c8e89['type'])continue;if(_0x4c8e89['type']!=_0x553411['type'])continue;if(!_0xfd5e5f['isBlock'](_0x553411['item'])||_0xfd5e5f['isLimit'](_0x553411['item']))continue;if(!_0xfd5e5f['isBlock'](_0x4c8e89['item'])||_0xfd5e5f['isLimit'](_0x4c8e89['item']))continue;if((_0x287060[_0x3e8164]['isAdded']||_0x287060[_0x3e8164]['isAddSuggestion'])&&_0x287060[_0x3e8164-0x1]['isRemoved'])_0x3f312a=_0x287060[_0x3e8164],_0x25253b=_0x287060[_0x3e8164-0x1],_0x28b3ae=_0x3e8164-0x1;else{if(!_0x287060[_0x3e8164]['isRemoved']||!_0x287060[_0x3e8164-0x1]['isAdded']&&!_0x287060[_0x3e8164-0x1]['isAddSuggestion'])continue;_0x3f312a=_0x287060[_0x3e8164-0x1],_0x25253b=_0x287060[_0x3e8164],_0x28b3ae=_0x3e8164;}const _0x267809=_0x3f312a['level']==_0x25253b['level'],_0x5314f2=Math['abs'](_0x3f312a['level'])<Math['abs'](_0x25253b['level'])&&0x0==_0x25253b['distance'];(_0x267809||_0x5314f2)&&(_0x530893['set'](_0x25253b['id'],_0x3f312a['id']),_0x287060['splice'](_0x28b3ae,0x1),_0x3e8164--,_0x3f312a['isAdded']=!0x1);}for(let _0x5efc24=0x0;_0x5efc24<_0x287060['length'];_0x5efc24++)_0x530893['has'](_0x287060[_0x5efc24]['pairId'])&&(_0x287060[_0x5efc24]['pairId']=_0x530893['get'](_0x287060[_0x5efc24]['pairId']));}['_removeMissingPairs'](_0x149a96){const _0x4ca7a7=new Set(_0x149a96['map'](_0x147111=>_0x147111['id']));for(let _0x5a1ac8=0x0;_0x5a1ac8<_0x149a96['length'];_0x5a1ac8++)_0x4ca7a7['has'](_0x149a96[_0x5a1ac8]['pairId'])||0x0==_0x149a96[_0x5a1ac8]['distance']||(_0x149a96[_0x5a1ac8]['isIncorrect']=!0x0);return _0x149a96['filter'](_0x413b22=>!_0x413b22['isIncorrect']);}['_markMismatchedRemovedTags'](_0x233b71){const _0x4e50ba=new Set();for(let _0xd8f3de=0x0;_0xd8f3de<_0x233b71['length'];_0xd8f3de++){if(_0x4e50ba['has'](_0x233b71[_0xd8f3de]['id'])&&_0x233b71[_0xd8f3de]['isRemoved']&&(_0x233b71[_0xd8f3de]['isIncorrect']=!0x0),_0x233b71[_0xd8f3de]['isIncorrect'])continue;if(0x0==_0x233b71[_0xd8f3de]['distance'])continue;if('elementStart'!=_0x233b71[_0xd8f3de]['type'])continue;if(null==_0x233b71[_0xd8f3de]['pairId'])continue;let _0x4d090d=_0xd8f3de+0x1,_0x59ca8c=0x0;for(;_0x233b71[_0x4d090d]['id']!=_0x233b71[_0xd8f3de]['pairId'];)'elementStart'==_0x233b71[_0x4d090d]['type']?_0x59ca8c++:'elementEnd'==_0x233b71[_0x4d090d]['type']&&_0x59ca8c--,_0x4d090d++;if(0x0!=_0x59ca8c){if(_0x233b71[_0xd8f3de]['isRemoved'])_0x233b71[_0xd8f3de]['isIncorrect']=!0x0;else{for(;_0x4d090d!=_0xd8f3de;)_0x233b71[_0x4d090d]['isRemoved']&&0x0!=_0x233b71[_0x4d090d]['distance']&&(_0x233b71[_0x4d090d]['isIncorrect']=!0x0,_0x4e50ba['add'](_0x233b71[_0x4d090d]['pairId'])),_0x4d090d--;}}}return _0x233b71['filter'](_0x50744b=>!_0x50744b['isIncorrect']);}['_removeUnsupportedChanges'](_0x34ac0f){const _0x5d6441=this['editor']['model']['schema'];for(let _0x1e7d9c=0x0;_0x1e7d9c<_0x34ac0f['length'];_0x1e7d9c++){if(!(_0x34ac0f[_0x1e7d9c]['isAdded']||_0x34ac0f[_0x1e7d9c]['isAddSuggestion']||_0x34ac0f[_0x1e7d9c]['isRemoved']||_0x34ac0f[_0x1e7d9c]['isRemoveSuggestion']))continue;if(0x0==_0x34ac0f[_0x1e7d9c]['distance'])continue;const _0x3851d1=_0x34ac0f[_0x1e7d9c]['item'];_0x5d6441['isBlock'](_0x3851d1)||_0x5d6441['isLimit'](_0x3851d1)||(_0x34ac0f[_0x1e7d9c]['isAdded']&&delete _0x34ac0f[_0x1e7d9c]['isAdded'],_0x34ac0f[_0x1e7d9c]['isAddSuggestion']&&delete _0x34ac0f[_0x1e7d9c]['isAddSuggestion'],_0x34ac0f[_0x1e7d9c]['isRemoveSuggestion']&&delete _0x34ac0f[_0x1e7d9c]['isRemoveSuggestion'],_0x34ac0f[_0x1e7d9c]['isRemoved']&&(_0x34ac0f[_0x1e7d9c]['isIncorrect']=!0x0));}return _0x34ac0f['filter'](_0x3c423f=>!_0x3c423f['isIncorrect']);}['_makeModelFromTape'](_0x229fb5,_0x2c7a77,_0x4e83aa){const _0x4e1236=new mt(),_0x15e67a=[],_0x2ceee4=new Map(),_0x2f6a56=this['editor']['model'],_0x8b1935=_0x2f6a56['schema'],_0x22f84b=[_0x4e1236],_0x382c4d={},_0x5cf479={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2a785f=null;const _0x4c098=[0x0];for(let _0x57f0c4=0x0;_0x57f0c4<_0x229fb5['length'];_0x57f0c4++)if('elementStart'===_0x229fb5[_0x57f0c4]['type']){_0x229fb5[_0x57f0c4]['previousPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098);const _0x1e960e=new ft(_0x229fb5[_0x57f0c4]['item']['name'],_0x229fb5[_0x57f0c4]['item']['getAttributes']());_0x22f84b[0x0]['_appendChild'](_0x1e960e),_0x4c098['push'](0x0),_0x22f84b['unshift'](_0x1e960e),_0x229fb5[_0x57f0c4]['nextPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098);}else'elementEnd'===_0x229fb5[_0x57f0c4]['type']?(_0x22f84b['shift'](),_0x229fb5[_0x57f0c4]['previousPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098),_0x4c098['pop'](),_0x4c098[_0x4c098['length']-0x1]++,_0x229fb5[_0x57f0c4]['nextPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098)):(_0x229fb5[_0x57f0c4]['previousPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098),_0x2a785f?_0x2a785f['_data']+=_0x229fb5[_0x57f0c4]['item']['data']:_0x2a785f=new wt(_0x229fb5[_0x57f0c4]['item']['data'],_0x229fb5[_0x57f0c4]['item']['getAttributes']()),_0x229fb5[_0x57f0c4+0x1]&&'text'===_0x229fb5[_0x57f0c4+0x1]['type']&&_0x246712(_0x2a785f,_0x229fb5[_0x57f0c4+0x1]['item'])||(_0x22f84b[0x0]['_appendChild'](_0x2a785f),_0x2a785f=null),_0x4c098[_0x4c098['length']-0x1]+=_0x229fb5[_0x57f0c4]['item']['offsetSize'],_0x229fb5[_0x57f0c4]['nextPosition']=_0x2f6a56['createPositionFromPath'](_0x4e1236,_0x4c098));for(let _0x4c33e0=0x0;_0x4c33e0<_0x229fb5['length'];_0x4c33e0++){const _0x4ad880=_0x229fb5[_0x4c33e0]['previousPosition'],_0x186d2b=_0x229fb5[_0x4c33e0]['nextPosition'];for(const _0x8d6218 of _0x229fb5[_0x4c33e0]['markersStart'])_0x2ceee4['set'](_0x8d6218,{'start':_0x4ad880,'end':null});_0x24de9d('isRemoveSuggestion',_0x4c33e0,_0x4ad880,_0x186d2b),_0x24de9d('isAddSuggestion',_0x4c33e0,_0x4ad880,_0x186d2b),_0x24de9d('isRemoved',_0x4c33e0,_0x4ad880,_0x186d2b),_0x24de9d('isAdded',_0x4c33e0,_0x4ad880,_0x186d2b);for(const _0x2fc763 of _0x229fb5[_0x4c33e0]['markersEnd']){_0x2ceee4['get'](_0x2fc763)['end']=_0x186d2b;}}for(const [_0x4325da,_0x3e9c38]of _0x2ceee4){const _0x53bf1d=this['editor']['model']['createRange'](_0x3e9c38['start'],_0x3e9c38['end']);_0x4e1236['markers']['set'](_0x4325da,_0x53bf1d);}return _0x15e67a['sort']((_0x248a05,_0x55248b)=>{const _0x244e5f=_0x4e1236['markers']['get']('revision:'+_0x248a05['id']),_0x2d129c=_0x4e1236['markers']['get']('revision:'+_0x55248b['id']);return _0x244e5f['start']['isBefore'](_0x2d129c['start'])?-0x1:_0x244e5f['start']['isAfter'](_0x2d129c['start'])?0x1:_0x244e5f['end']['isBefore'](_0x2d129c['end'])?-0x1:_0x244e5f['end']['isAfter'](_0x2d129c['end'])?0x1:'add'===_0x248a05['type']?-0x1:0x1;}),{'root':_0x4e1236,'changes':_0x15e67a};function _0x24de9d(_0x1decd1,_0x37cf37,_0x5433b4,_0x165698){const _0x307413=!!_0x229fb5[_0x37cf37][_0x1decd1],_0x57f5d5=_0x307413?_0x229fb5[_0x37cf37][_0x1decd1]['userId']:null,_0xf7a3fe=_0x37cf37===_0x229fb5['length']-0x1,_0x574cdc=_0x5cf479[_0x1decd1][0x0],_0xc99dd0=_0x8b1935['isObject'](_0x229fb5[_0x37cf37]['item']);!_0x382c4d[_0x1decd1]&&_0x307413?_0x382c4d[_0x1decd1]={'start':_0x5433b4,'tapeItem':_0x229fb5[_0x37cf37],'userId':_0x57f5d5,'type':_0x1decd1}:_0x382c4d[_0x1decd1]&&!_0x307413?(_0x382c4d[_0x1decd1]['end']=_0x5433b4,_0x3ef7fa(_0x382c4d[_0x1decd1]),_0x382c4d[_0x1decd1]=null):_0x382c4d[_0x1decd1]&&_0x307413&&_0x382c4d[_0x1decd1]['userId']!==_0x57f5d5&&(_0x382c4d[_0x1decd1]['end']=_0x5433b4,_0x574cdc&&_0x574cdc['userId']===_0x382c4d[_0x1decd1]['userId']||_0x3ef7fa(_0x382c4d[_0x1decd1]),_0x382c4d[_0x1decd1]={'start':_0x5433b4,'tapeItem':_0x229fb5[_0x37cf37],'userId':_0x57f5d5,'type':_0x1decd1}),_0x382c4d[_0x1decd1]&&_0xc99dd0&&('elementStart'!==_0x229fb5[_0x37cf37]['type']||_0x574cdc&&_0x574cdc['userId']===_0x57f5d5||_0x5cf479[_0x1decd1]['unshift']({'userId':_0x57f5d5,'object':_0x229fb5[_0x37cf37]['item'],'change':_0x382c4d[_0x1decd1]}),'elementEnd'===_0x229fb5[_0x37cf37]['type']&&_0x574cdc&&_0x574cdc['object']===_0x229fb5[_0x37cf37]['item']&&(_0x5cf479[_0x1decd1]['shift'](),_0x382c4d[_0x1decd1]=_0x574cdc['change'])),_0x382c4d[_0x1decd1]&&_0xf7a3fe&&(_0x382c4d[_0x1decd1]['end']=_0x165698,_0x3ef7fa(_0x382c4d[_0x1decd1]),_0x382c4d[_0x1decd1]=null);}function _0x3ef7fa({start:_0x1ddcac,end:_0x54bb8a,tapeItem:_0x14482e,userId:_0x10f9e0,type:_0x33f834}){const _0x332d30=_0x14482e['item'],_0x48eb84=_0x2f6a56['schema']['isBlock'](_0x332d30)&&!_0x2f6a56['schema']['isLimit'](_0x332d30),_0x45fd46=_0x1ddcac['nodeAfter']==_0x54bb8a['parent']&&_0x54bb8a['isAtStart'];if(_0x48eb84&&_0x45fd46)return;const _0x15b285=_0x2f6a56['createRange'](_0x1ddcac,_0x54bb8a),_0x1e1b5c=_0x2c7a77['get'](_0x10f9e0),_0xb46e88=new r({'author':_0x1e1b5c,'type':'isAdded'==_0x33f834||'isAddSuggestion'==_0x33f834?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33f834||'isRemoveSuggestion'==_0x33f834},'createdAt':new Date(),'rootName':_0x4e83aa});_0x15e67a['push'](_0xb46e88),_0x4e1236['markers']['set']('revision:'+_0xb46e88['id'],_0x15b285);}function _0x246712(_0x5e2f07,_0xca86b2){const _0x8f4004=_0x5e2f07['getAttributes'](),_0x2a38df=_0xca86b2['getAttributes']();for(const _0x4c2f75 of _0x8f4004){if(_0x4c2f75[0x1]!==_0xca86b2['getAttribute'](_0x4c2f75[0x0]))return!0x1;_0x2a38df['next']();}return _0x2a38df['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x55e812=>{const _0x4f9d15=_0x55e812['markerName']['split'](':')[0x1],_0x3f78a3=this['_getChangeFromId'](_0x4f9d15);if(!_0x3f78a3)return null;const _0x86f386='add'==_0x3f78a3['type']?'insertion':'deletion',_0x39f66f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x86f386];return _0x3f78a3['data']['isSuggestion']&&_0x39f66f['push']('ck-suggestion-marker-'+_0x86f386+'-new'),this['activeChange']==_0x3f78a3&&_0x39f66f['push']('ck-suggestion-marker--active'),{'classes':_0x39f66f,'attributes':{'data-change-id':_0x4f9d15}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x21679d=>{_0x21679d['on']('element:pre',(_0x2b12d4,_0xc44153,_0x317b47)=>{const _0x44e663=_0xc44153['viewItem']['getChild'](0x0);if(!_0x44e663||!_0x44e663['is']('element','code'))return;if(!_0x317b47['consumable']['consume'](_0x44e663,{'attributes':['vid_start','vid_end']}))return;const _0x593d25=_0xc44153['modelRange']['start']['nodeAfter'];_0x317b47['writer']['setAttribute']('vid_start',_0x44e663['getAttribute']('vid_start'),_0x593d25),_0x317b47['writer']['setAttribute']('vid_end',_0x44e663['getAttribute']('vid_end'),_0x593d25);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2af02f=>{_0x2af02f['on']('element',(_0x29e2d5,_0x19e308,_0x39dda4)=>{if(!_0x39dda4['consumable']['consume'](_0x19e308['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x19e308['modelRange']['isCollapsed'])return;const _0x106514=_0x19e308['modelRange']['start']['nodeAfter'];_0x106514['hasAttribute']('vid_start')||_0x106514['hasAttribute']('vid')||(_0x39dda4['writer']['setAttribute']('vid_start',_0x19e308['viewItem']['getAttribute']('vid_start'),_0x106514),_0x39dda4['writer']['setAttribute']('vid_end',_0x19e308['viewItem']['getAttribute']('vid_end'),_0x106514));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3ed17b=>_0x3ed17b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4badb8,[,_0x35d65b])=>{['vid_start','vid_end','vid']['includes'](_0x35d65b)&&(_0x4badb8['return']=!0x0,_0x4badb8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5d0238=>{_0x5d0238['on']('attribute:vid',(_0x24779d,_0x1a356f,_0x5d13f8)=>{if('\x20'!=_0x1a356f['item']['data']||_0x1a356f['item']['parent']['maxOffset']>0x1)return;if(!_0x5d13f8['consumable']['consume'](_0x1a356f['item'],_0x24779d['name']))return;const _0x14da96=_0x5d13f8['writer'],_0x168170=_0x5d13f8['mapper']['toViewRange'](_0x1a356f['range']);_0x14da96['wrap'](_0x168170,_0x14da96['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x318770){const _0x43e686=_0x318770['plugins']['get']('RevisionViewer');return(_0x271636,_0x53fc2a,_0x78df7e)=>{const _0x3d86c4=_0x53fc2a['markerName']['split'](':')[0x1],_0x5b30ad=_0x43e686['_getChangeFromId'](_0x3d86c4);if(!_0x5b30ad)return null;const _0x2b8463='add'==_0x5b30ad['type']?'split':'merge';if(!_0x78df7e['consumable']['test'](_0x53fc2a['markerRange'],_0x271636['name']))return;const _0x5676d3=_0x53fc2a['markerRange']['getWalker'](),_0x5c15a4=_0x53fc2a['markerRange']['start'],_0x3214b5=_0x318770['model']['schema'];let _0x297cc4=null,_0x4380f1=null,_0x2a39a6=!0x1,_0x44b231=!0x1;for(const _0x4e01d4 of _0x5676d3){const _0x74f1ed=_0x4e01d4['item'];_0x2a39a6=_0x2a39a6||_0x3214b5['isContent'](_0x74f1ed);const _0x514647=_0x78df7e['mapper']['toViewElement'](_0x74f1ed);if(_0x514647&&_0x514647['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e01d4['type']&&(_0x3214b5['isBlock'](_0x74f1ed)&&!_0x3214b5['isLimit'](_0x74f1ed)&&(_0x74f1ed['nextSibling']||_0x5c15a4['isAtEnd']?_0x297cc4&&_0x297cc4['parent']==_0x74f1ed||(_0x297cc4=_0x74f1ed,_0x578a3d(_0x4e01d4['previousPosition']),_0x44b231=!0x0):_0x4380f1=_0x4380f1||_0x4e01d4['previousPosition']));}function _0x578a3d(_0x1d6868){const _0x44324f=_0x78df7e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b8463}),_0x2e5950=_0x78df7e['mapper']['toViewPosition'](_0x1d6868);_0x5b30ad['data']['isSuggestion']&&_0x78df7e['writer']['addClass']('ck-suggestion-marker-'+_0x2b8463+'-new',_0x44324f),_0x43e686['activeChange']==_0x5b30ad&&_0x78df7e['writer']['addClass']('ck-suggestion-marker--active',_0x44324f),_0x78df7e['writer']['insert'](_0x2e5950,_0x44324f),_0x78df7e['mapper']['bindElementToMarker'](_0x44324f,_0x53fc2a['markerName']);}_0x2a39a6||_0x44b231||!_0x4380f1||_0x578a3d(_0x4380f1);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1616e8,_0x5ec54e,_0x4754a2)=>{const _0x50f712=_0x4754a2['mapper']['markerNameToElements'](_0x5ec54e['markerName']);if(_0x50f712){for(const _0x254e0e of _0x50f712)(_0x254e0e['hasClass']('ck-suggestion-marker-split')||_0x254e0e['hasClass']('ck-suggestion-marker-merge'))&&(_0x4754a2['mapper']['unbindElementFromMarkerName'](_0x254e0e,_0x5ec54e['markerName']),_0x4754a2['writer']['remove'](_0x254e0e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x13d5e2,_0x24993e,_0x5c8cc3)=>{const _0x2ac450=_0x24993e['markerName']['split'](':')[0x1],_0x2ef1f1=this['_getChangeFromId'](_0x2ac450);if(!_0x2ef1f1)return null;const _0x5b1217='add'==_0x2ef1f1['type']?'split':'merge';if(_0x5c8cc3['consumable']['test'](_0x24993e['markerRange'],_0x13d5e2['name']))for(const _0x491652 of _0x24993e['markerRange']['getItems']()){if(!_0x491652['is']('element','softBreak'))continue;const _0x33fef4=_0x5c8cc3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b1217}),_0x426db8=_0x5c8cc3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x491652));_0x2ef1f1['data']['isSuggestion']&&_0x5c8cc3['writer']['addClass']('ck-suggestion-marker-'+_0x5b1217+'-new',_0x33fef4),this['activeChange']==_0x2ef1f1&&_0x5c8cc3['writer']['addClass']('ck-suggestion-marker--active',_0x33fef4),_0x5c8cc3['writer']['insert'](_0x426db8,_0x33fef4),_0x5c8cc3['mapper']['bindElementToMarker'](_0x33fef4,_0x24993e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2dfe24=>{for(const _0x2025ab of this['editor']['model']['document']['getRootNames']()){const _0x3bde3c=this['editor']['model']['document']['getRoot'](_0x2025ab),_0x1cc469=this['editor']['editing']['view']['document']['getRoot'](_0x2025ab);if(_0x1cc469){const _0x7b78e6=_0x3bde3c['getAttribute']('revisionHistoryAttachChange');if(_0x2dfe24['removeAttribute']('data-change-id',_0x1cc469),_0x2dfe24['removeClass']('ck-revision-history-root-add',_0x1cc469),_0x2dfe24['removeClass']('ck-revision-history-root-remove',_0x1cc469),_0x2dfe24['removeClass']('ck-revision-history-root--active',_0x1cc469),_0x7b78e6){const _0x56459f=this['_getChangeFromId'](_0x7b78e6);if(!_0x56459f)return null;_0x2dfe24['setAttribute']('data-change-id',_0x7b78e6,_0x1cc469),_0x2dfe24['addClass']('ck-revision-history-root-'+_0x56459f['type'],_0x1cc469),this['activeChange']==_0x56459f&&_0x2dfe24['addClass']('ck-revision-history-root--active',_0x1cc469);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x311332=>'revision-comment:'+_0x311332,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2e9120=>'revision-suggestion:'+_0x2e9120,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x14f5d9=>({'name':'suggestion:'+_0x14f5d9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x451194=>{const _0xbc0ed0=_0x451194['markerName']['split'](':')[0x1];return'insertion'!=_0xbc0ed0&&'deletion'!=_0xbc0ed0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xbc0ed0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x21abab,_0x5d2ce9,_0x53fc5e)=>{const _0x30dcd3=_0x53fc5e['mapper']['markerNameToElements'](_0x5d2ce9['markerName']);if(_0x30dcd3){for(const _0x2af0e1 of _0x30dcd3)_0x2af0e1['is']('uiElement')&&(_0x53fc5e['mapper']['unbindElementFromMarkerName'](_0x2af0e1,_0x5d2ce9['markerName']),_0x53fc5e['writer']['remove'](_0x2af0e1));}},{'priority':'high'});}['_getChangeFromId'](_0x1bef98){return this['_changeIdToChange']['get'](_0x1bef98);}['_getViewForChange'](_0x3afa15){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3afa15),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x306940,_0x4b86c1,_0x3bdb56,_0x3ebfb6)=>{_0x3ebfb6&&this['_balloon']['remove'](_0x3ebfb6),_0x3bdb56&&(this['_balloon']['add']({'view':_0x3bdb56,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3db8a5=this['editor']['editing'],_0x4b72a1=this['_getChangeFromId'](_0x3bdb56['changeId']);let _0x4ca2ab;if(_0x4b72a1['data']['isOnRoot']){const _0x127dd4=_0x3db8a5['view']['getDomRoot'](_0x4b72a1['rootName']);_0x4ca2ab=Array['from'](_0x127dd4['getClientRects']());}else{const _0x185fa1=this['editor']['model']['markers']['get']('revision:'+_0x3bdb56['changeId']);_0x4ca2ab=Array['from'](_0x3db8a5['mapper']['markerNameToElements'](_0x185fa1['name']))['map'](_0x50bbbd=>_0x3db8a5['view']['domConverter']['mapViewToDom'](_0x50bbbd))['map'](_0x1194f2=>Array['from'](_0x1194f2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4ca2ab[0x0];return _0x4ca2ab['find'](_0x46b0ec=>_0x46b0ec['top']-0x3<=this['_activeViewTarget']['y']&&_0x46b0ec['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x46b0ec['left']-0x3<=this['_activeViewTarget']['x']&&_0x46b0ec['right']+0x3>=this['_activeViewTarget']['x'])||_0x4ca2ab[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5163cc,_0x1649fa,_0x5857ae,_0x4a357e)=>{this['activeView']=_0x5857ae?this['_getViewForChange'](_0x5857ae):null,this['editor']['model']['change'](()=>{const _0x4047f6=this['editor']['editing'];_0x4a357e&&(_0x4a357e['data']['isOnRoot']?_0x4047f6['view']['change'](_0x3e2b4e=>{_0x3e2b4e['removeClass']('ck-revision-history-root--active',_0x4047f6['view']['document']['getRoot'](_0x4a357e['rootName']));}):_0x4047f6['reconvertMarker']('revision:'+_0x4a357e['id'])),_0x5857ae&&(_0x5857ae['data']['isOnRoot']?_0x4047f6['view']['change'](_0x56e40c=>{_0x56e40c['addClass']('ck-revision-history-root--active',_0x4047f6['view']['document']['getRoot'](_0x5857ae['rootName']));}):_0x4047f6['reconvertMarker']('revision:'+_0x5857ae['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x406aad,_0x455a3a)=>{if(this['activeChange'])return;const _0x2699ed=this['_findChangeIdFromDomTarget'](_0x455a3a['target']),_0xd248d2=this['_changeIdToChange']['get'](_0x2699ed);_0xd248d2?(this['_activeViewTarget']={'x':_0x455a3a['domEvent']['x'],'y':_0x455a3a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xd248d2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x7bf701,_0x1f0697)=>{const _0x52bd6a=this['_findChangeIdFromDomTarget'](_0x1f0697['target']),_0x28095c=this['_changeIdToChange']['get'](_0x52bd6a);_0x28095c?(this['_activeViewTarget']={'x':_0x1f0697['domEvent']['x'],'y':_0x1f0697['domEvent']['y']},_0x28095c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x28095c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3bb146){do{const _0x3a0f5d=_0x3bb146['getAttribute']('data-change-id');if(_0x3a0f5d)return _0x3a0f5d;_0x3bb146=_0x3bb146['parent'];}while(_0x3bb146);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5dcbf5=>{for(const _0xd445c9 of this['editor']['model']['markers'])_0x5dcbf5['removeMarker'](_0xd445c9);});}}function tt(_0x57bb23,_0x4da3b9){return(_0x87c094,_0x1c0042,_0x58e72b)=>{if(!_0x58e72b['consumable']['test'](_0x1c0042['markerRange'],_0x87c094['name']))return;const _0x11a6f7=_0x1c0042['markerRange']['getWalker'](),_0x1b339f=_0x1c0042['markerRange']['start'],_0x100697=_0x57bb23['model']['schema'];let _0x482dd3=null,_0x5b8cb1=null,_0x176460=!0x1,_0x2a1f11=!0x1;for(const _0x1920e9 of _0x11a6f7){const _0x3dbf3f=_0x1920e9['item'];_0x176460=_0x176460||_0x100697['isContent'](_0x3dbf3f);const _0x501cf0=_0x58e72b['mapper']['toViewElement'](_0x3dbf3f);if(_0x501cf0&&_0x501cf0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1920e9['type']&&(_0x100697['isBlock'](_0x3dbf3f)&&!_0x100697['isLimit'](_0x3dbf3f)&&(_0x3dbf3f['nextSibling']||_0x1b339f['isAtEnd']?_0x482dd3&&_0x482dd3['parent']==_0x3dbf3f||(_0x482dd3=_0x3dbf3f,_0x2deb59(_0x1920e9['previousPosition']),_0x2a1f11=!0x0):_0x5b8cb1=_0x5b8cb1||_0x1920e9['previousPosition']));}function _0x2deb59(_0x2148d6){const _0x7107b5=_0x58e72b['mapper']['toViewPosition'](_0x2148d6),_0xf88441=_0x58e72b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4da3b9});_0x58e72b['writer']['insert'](_0x7107b5,_0xf88441),_0x58e72b['mapper']['bindElementToMarker'](_0xf88441,_0x1c0042['markerName']);}_0x176460||_0x2a1f11||!_0x5b8cb1||_0x2deb59(_0x5b8cb1);};}class _t extends _0x3d421b{constructor(_0x2e2363){super(_0x2e2363);const _0x5625e8=_0x2e2363['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5625e8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5625e8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x10699c=this['editor'],_0x4835d4=_0x10699c['plugins']['get'](d),_0x61ee59=_0x4835d4['isReady']?_0x4835d4['diff']['newRevisionId']:null;_0x10699c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x61ee59);}['refresh'](){const {isReady:_0xebc0e8,isEnabled:_0x227b3b}=this['editor']['plugins']['get'](d);this['isEnabled']=_0xebc0e8&&_0x227b3b;}}class yt extends _0x3d421b{['_step'];constructor(_0x29523d,{direction:_0x12b090}){super(_0x29523d);const _0x80efb0=_0x29523d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x12b090?0x1:-0x1,this['listenTo'](_0x80efb0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x80efb0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x80efb0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3284e6=this['editor'],_0x487333=_0x3284e6['plugins']['get'](d),{isNavigationMode:_0x1bd5e9,currentChangeNumber:_0x3bc258}=_0x487333;let _0x740424;if(_0x487333['activeChange']=_0x1bd5e9?_0x487333['diff']['changes']['get'](_0x3bc258+this['_step']):_0x487333['diff']['changes']['first'],_0x487333['activeChange']['data']['isOnRoot'])_0x740424=_0x3284e6['editing']['view']['getDomRoot'](_0x487333['activeChange']['rootName']);else{const _0x333c37=_0x3284e6['model']['markers']['get']('revision:'+_0x487333['activeChange']['id']);_0x740424=_0x240b25(_0x3284e6['editing'],_0x333c37);}_0x19448f({'target':_0x740424,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1343ee,currentChangeNumber:_0x37c5f8,numberOfChanges:_0x240ecb,isReady:_0x103a1c,isEnabled:_0x2dda0e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2dda0e&&_0x103a1c&&_0x240ecb)&&(!_0x1343ee||(0x1===this['_step']?_0x37c5f8<_0x240ecb-0x1:_0x37c5f8>0x0));}}class ui extends ts{constructor(_0x385cdf){super(_0x385cdf);const _0x5c2504=this['bindTemplate'],_0x5a14aa=new te(_0x385cdf),_0x5c12d5=new te(_0x385cdf);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x595276,_0x27764b)=>_0x595276&&_0x27764b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x35f6c6,_0x5358b2,_0x3b2a59,_0xed917e)=>{if(!_0x35f6c6)return R(_0x385cdf,'Loading...');if(!_0x3b2a59)return R(_0x385cdf,'No\x20changes');const _0x501dcf=R(_0x385cdf,'NUMBER_OF_CHANGES',_0x3b2a59);return _0xed917e?R(_0x385cdf,'X_OF_Y_CHANGES',[_0x5358b2+0x1,_0x3b2a59]):_0x501dcf;}),_0x5a14aa['set']({'label':R(_0x385cdf,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5c12d5['set']({'label':R(_0x385cdf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x5a14aa['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5c12d5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5a14aa['on']('execute',()=>this['fire']('execute','backward')),_0x5c12d5['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x5c2504['if']('_isStatusLabelVisible','ck-hidden',_0x479bff=>!_0x479bff)]},'children':[{'text':_0x5c2504['to']('isNavigationMode',_0x374274=>_0x374274?R(_0x385cdf,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x385cdf,'Total')+':\x20')}]},{'text':_0x5c2504['to']('_statusText')}]},new _0x280233(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5a14aa,_0x5c12d5]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x5025c2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x11689e=this['editor']['editing']['view'];_0x11689e['change'](_0x31e64f=>{for(const _0x46aeac of _0x11689e['document']['roots'])_0x31e64f['addClass'](le,_0x46aeac);});}['hide'](){const _0x536292=this['editor']['editing']['view'];_0x536292['change'](_0x3096bf=>{for(const _0x40b4a6 of _0x536292['document']['roots'])_0x3096bf['removeClass'](le,_0x40b4a6);});}}class m extends _0x5025c2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x15315f=this['editor'],_0x4b9e41=_0x15315f['plugins']['get'](d),_0x878c12=_0x15315f['plugins']['get'](de);_0x15315f['ui']['componentFactory']['add']('exitToEditing',_0x11a7e8=>{const _0x262203=new te(_0x11a7e8);return _0x262203['set']({'label':R(_0x11a7e8,'Back\x20to\x20editing'),'icon':_0x75562c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x262203,'execute',()=>{_0x15315f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x262203;}),_0x15315f['ui']['componentFactory']['add']('restoreRevision',_0x465377=>{const _0x4a2cb4=new te(_0x465377);return _0x4a2cb4['set']({'label':R(_0x465377,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4a2cb4['bind']('isEnabled')['to'](_0x15315f['commands']['get']('restoreRevision')),this['listenTo'](_0x4a2cb4,'execute',()=>_0x15315f['execute']('restoreRevision')),_0x4a2cb4;}),_0x15315f['ui']['componentFactory']['add']('changesNavigation',_0x6bd45=>{const _0x5547b2=new ui(_0x6bd45),_0x34dce4=_0x15315f['commands']['get']('showPreviousChange'),_0x3923f3=_0x15315f['commands']['get']('showNextChange');return _0x5547b2['bind']('isBackwardNavigationEnabled')['to'](_0x34dce4,'isEnabled'),_0x5547b2['bind']('isForwardNavigationEnabled')['to'](_0x3923f3,'isEnabled'),_0x5547b2['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4b9e41),this['listenTo'](_0x5547b2,'execute',(_0x4bf105,_0x5918d2)=>{_0x15315f['execute']('forward'===_0x5918d2?'showNextChange':'showPreviousChange');}),_0x5547b2;}),_0x878c12['show'](),_0x4b9e41['on']('change:isReady',(_0x18189c,_0x1282be,_0xfccd3f)=>{_0xfccd3f?_0x878c12['hide']():_0x878c12['show']();});}}class pt extends _0x30bc25{['_resizeObserver']=null;constructor(_0xfb19d2,_0x1e2aa7){super(_0xfb19d2,_0x1e2aa7);const _0x4ef2d3=this['bindTemplate'];this['set']({'label':R(_0xfb19d2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xfb19d2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ef2d3['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4efb82=this['fieldView']['element'];this['_tooltipString']=_0x4efb82['scrollWidth']>_0x4efb82['clientWidth']&&_0x4efb82['value']||'';}}class ri extends ts{constructor(_0x35b9c7,_0x262db2,_0x2d8e28){super(_0x35b9c7);const _0x3dd8ce=new _0x5bb643();_0x3dd8ce['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x40b8e4=['ck','ck-revision-history-sidebar__revision-author'];_0x2d8e28&&_0x40b8e4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5054f3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x35b9c7,_0x2d8e28?'Revision\x20creator':'Revision\x20author')},'children':[_0x3dd8ce,_0x262db2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x40b8e4},'children':_0x5054f3});}}function oi(_0xe4a294,_0x48e215){const _0x37a2b8=_0xe4a294['bindTemplate'],_0x442842=_0xe4a294['locale'],_0x10854c=_0x2abbe3(_0x442842);_0x10854c['panelPosition']='sw';const _0x3c998c=function(_0x4c2ac6,_0x5af6db){const _0x117e47=function(_0xae103e,_0x4457a6){const _0x1d842e=_0xae103e['locale'],_0x1c5f5a={'Compare\x20against\x20selected':R(_0x1d842e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1d842e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1d842e,'Restore\x20this\x20revision')};return _0x4457a6['map'](_0x1650b8=>{const _0x47029a=_0x1c5f5a[_0x1650b8['name']];return _0x47029a&&_0x47029a!==_0x1650b8['name']&&(_0x1650b8['name']=_0x47029a),_0x1650b8;});}(_0x4c2ac6,_0x5af6db),_0x4916ab=new _0x35ddfb();for(const _0x42cfa8 of _0x117e47){const _0x41025a={'type':'button','model':new _0x4c16ca({'label':_0x42cfa8['name'],'class':_0x42cfa8['class'],'withText':!0x0,'role':'menuitem','_action':_0x42cfa8['action']})};_0x41025a['model']['bind']('isEnabled')['to'](_0x4c2ac6,'isActionsDropdownOpen',_0x545e61=>'function'!=typeof _0x42cfa8['isEnabled']||(!_0x545e61||_0x42cfa8['isEnabled'](_0x4c2ac6))),_0x4916ab['add'](_0x41025a);}return _0x4916ab;}(_0xe4a294,_0x48e215);return _0xe4a294['bind']('isActionsDropdownOpen')['to'](_0x10854c,'isOpen'),_0x10854c['buttonView']['set']({'label':R(_0x442842,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x75562c['threeVerticalDots']}),_0x10854c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x37a2b8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x37a2b8['to'](_0x5dc68b=>_0x5dc68b['stopPropagation']())}}),_0x10854c['on']('execute',_0x52ed6f=>{_0xe4a294['isReady']&&'function'==typeof _0x52ed6f['source']['_action']&&_0x52ed6f['source']['_action'](_0xe4a294);}),to(_0x10854c,_0x3c998c,{'role':'menu'}),_0x10854c['listenTo'](_0xe4a294,'change:isActionsDropdownOpen',(_0x40673b,_0x4544cd,_0x363190)=>{if(_0x363190)for(const _0x1c09b2 of _0x10854c['listView']['items']){const _0x58b2b0=_0x1c09b2['children']['first'],_0x181253=_0x48e215['find'](_0x2b9952=>_0x2b9952['action']===_0x58b2b0['_action'])['isVisible'];_0x1c09b2['isVisible']=void 0x0===_0x181253||_0x181253(_0xe4a294);}}),_0x10854c;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1ae9f5,_0x211023,_0x45df65,_0x3a2349){super(_0x1ae9f5);const _0x53be8b=this['bindTemplate'],_0x51cb5=function(_0x125faa,_0x6a1a2d){const _0x34b6b5=Array['from'](_0x6a1a2d['authors'])['filter'](_0x35f922=>_0x35f922!=_0x6a1a2d['creator']);return _0x6a1a2d['creator']&&_0x34b6b5['unshift'](_0x6a1a2d['creator']),_0x34b6b5['map'](_0x14db84=>new ri(_0x125faa,_0x14db84,_0x14db84==_0x6a1a2d['creator']));}(_0x1ae9f5,_0x211023);this['id']=_0x211023['id'],this['_revision']=_0x211023,this['_requireRevisionName']=_0x3a2349,this['bind']('name','createdAt')['to'](_0x211023),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xcabc50=>{return _0x34b709=_0x1ae9f5['uiLanguage'],(_0x5ac892=_0xcabc50)['toLocaleDateString'](_0x34b709,{'month':'long','day':'numeric'})+',\x20'+_0x5ac892['toLocaleTimeString'](_0x34b709,{'hour':'numeric','minute':'numeric'});var _0x34b709,_0x5ac892;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x1ae9f5,_0x41e485),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x19d79c=>_0x19d79c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x605e65,_0x3b87c9)=>_0x605e65&&_0x3b87c9),this['revisionActionsView']=_0x45df65&&_0x45df65['length']?oi(this,_0x45df65):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x53be8b['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x53be8b['if']('isEnabled','ck-disabled',_0x3cd38e=>!_0x3cd38e),_0x53be8b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x53be8b['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x53be8b['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x53be8b['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x51cb5}]},this['revisionActionsView']],'on':{'click':_0x53be8b['to'](_0x12ef63=>{_0x12ef63['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1faa04=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1faa04,'change',()=>{this['_requireRevisionName']&&!_0x1faa04['value']||this['fire']('setName',{'id':this['id'],'name':_0x1faa04['value']}),_0x1faa04['value']||(_0x1faa04['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3718a8,_0x58e401){const _0x30b1c1=_0x2feaf2['fromJSDate'](_0x3718a8)['setLocale'](_0x58e401),_0xd1e3bc=_0x2feaf2['local'](),_0x290e50=_0xd1e3bc['minus']({'days':0x1})['startOf']('day');let _0x5e4a3c,_0x544880;return _0x30b1c1['hasSame'](_0xd1e3bc,'day')?(_0x5e4a3c=_0x30b1c1['startOf']('day')['toJSDate'](),_0x544880=_0x30b1c1['toRelativeCalendar']()):_0x30b1c1['hasSame'](_0x290e50,'day')?(_0x5e4a3c=_0x290e50['toJSDate'](),_0x544880=_0x30b1c1['toRelativeCalendar']()):_0x30b1c1['hasSame'](_0xd1e3bc,'week')?(_0x5e4a3c=_0x30b1c1['startOf']('week')['toJSDate'](),_0x544880=_0x30b1c1['weekdayLong']||''):_0x30b1c1['hasSame'](_0xd1e3bc,'year')?(_0x5e4a3c=_0x30b1c1['startOf']('month')['toJSDate'](),_0x544880=_0x30b1c1['monthLong']||''):(_0x5e4a3c=_0x30b1c1['startOf']('year')['toJSDate'](),_0x544880=String(_0x30b1c1['year'])),{'startDate':_0x5e4a3c,'localizedPeriodName':_0x544880};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x593018,_0x1d19a7,_0x209e59,_0xdd0fd5){super(_0x593018);const _0x386b56=mi(_0x1d19a7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1d19a7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x209e59,this['_requireRevisionName']=_0xdd0fd5,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x386b56}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xa0e007){const _0x9c2b8f=new hi(this['locale'],_0xa0e007,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x9c2b8f);}['removeRevision'](_0x22af6c){const _0x29e878=this['revisionViews']['find'](_0x32d00e=>_0x32d00e['id']===_0x22af6c['id']);this['revisionViews']['remove'](_0x29e878);}}class as extends ts{constructor(_0xba5ebf){super(_0xba5ebf);const _0x18802c=new _0x5bb643();_0x18802c['content']=_0x75562c['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x18802c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xba5ebf,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x159ca1,_0x3c43fe,_0x20b03c,_0x2f3982){super(_0x159ca1);const _0x509b19=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3c43fe,this['_revisionActions']=_0x20b03c,this['_requireRevisionName']=_0x2f3982,this['on']('select',(_0x5579ac,_0x47d33c)=>{this['fire']('revisionSelected',_0x47d33c);}),this['on']('setName',(_0x3abeea,_0xfd67db)=>{this['fire']('revisionSetName',_0xfd67db);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x159ca1),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x509b19['if']('isEnabled','ck-disabled',_0x205481=>!_0x205481)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3c92f9 of this['_revisions'])this['_addRevision'](_0x3c92f9);this['_revisions']['on']('add',(_0x3ebec4,_0x6be843)=>{this['_addRevision'](_0x6be843);}),this['_revisions']['on']('remove',(_0x58ab7a,_0x5c6aea)=>{this['_removeRevision'](_0x5c6aea);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x370625=>_0x370625['revisionViews']['map'](_0x171712=>_0x171712))['flat']();}['selectRevision'](_0x2fa63f){for(const _0x2f884b of this['revisionViews'])_0x2fa63f&&_0x2fa63f['id']===_0x2f884b['id']?_0x2f884b['select']():_0x2f884b['deselect']();}['highlightRevisions'](_0x4ec35b){for(const _0x3ddce5 of this['revisionViews'])_0x4ec35b['some'](({id:_0x3b36a7})=>_0x3b36a7===_0x3ddce5['id'])?_0x3ddce5['highlight']():_0x3ddce5['unhighlight']();}['_addRevision'](_0x296256){const _0x50fc01=mi(_0x296256['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3a6589=this['timePeriodViews']['get'](0x0);_0x3a6589&&_0x3a6589['startDate']['getTime']()===_0x50fc01['getTime']()||(_0x3a6589=new vi(this['locale'],_0x50fc01,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3a6589)),_0x3a6589['addRevision'](_0x296256);}['_removeRevision'](_0x2af635){const _0x58e576=mi(_0x2af635['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x58e576)['removeRevision'](_0x2af635);}['_getTimePeriodViewByStartDate'](_0x1a6510){return this['timePeriodViews']['find'](_0xe65bd2=>_0xe65bd2['startDate']['getTime']()===_0x1a6510['getTime']());}}class g extends _0x5025c2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x2c20d0){super(_0x2c20d0),this['_revisionViewer']=_0x2c20d0['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1447c0=this['_revisionsRepository']['_revisions'],_0x56fd7b=this['_createRevisionActions'](),_0x30d3e7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x1447c0,_0x56fd7b,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x26355b,_0x58bf06)=>{_0x58bf06['revisionViews']['on']('add',(_0x5224f3,_0x1c1f7d)=>{_0x1c1f7d['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x30d3e7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3e0477=this['_revisionsRepository']['getRevision'](0x0);if(_0x3e0477){const _0x2f597a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3e0477['id']);this['_revisionViewer']['compare'](_0x3e0477,_0x2f597a);}}['_handleRevisionSelected'](_0x2261c0,_0x5b90fe){const _0x40c27d=this['_revisionsRepository']['getRevision'](_0x5b90fe['id']),_0x5443a4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x40c27d['id']);this['_revisionViewer']['compare'](_0x40c27d,_0x5443a4);}['_handleRevisionSetName'](_0x54c9dc,_0x13cc2f){this['_revisionsRepository']['getRevision'](_0x13cc2f['id'])['setName'](_0x13cc2f['name']);}['_handleDiffChange'](_0x1f068b,_0x16f979,_0x6e6dbe){const _0x11e7d4=this['_revisionsRepository']['getRevisionsInDiff'](_0x6e6dbe);_0x11e7d4['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x11e7d4),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x11e7d4[0x0]));}['_createRevisionActions'](){const _0xcff383=this['editor'],_0x32850b=g['availableRevisionActions'],_0x2e5cda=_0xcff383['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2e5cda['length'])return _0x2e5cda['map'](_0x377257=>{const _0x15b16c='string'==typeof _0x377257?Object['assign']({},_0x32850b[_0x377257]):_0x377257;return _0x15b16c['action']=_0x15b16c['action']['bind'](this,_0xcff383),_0x15b16c['isVisible']&&(_0x15b16c['isVisible']=_0x15b16c['isVisible']['bind'](this,_0xcff383)),_0x15b16c;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x56ca5f},_0x13391e)=>{const _0x5d5ea3=_0x56ca5f['get'](d),_0x47646a=_0x5d5ea3['repository'];let _0x3f2fac=_0x5d5ea3['diff']['newRevisionId'],_0x56a471=_0x13391e['id'];_0x47646a['getIndex'](_0x3f2fac)>_0x47646a['getIndex'](_0x56a471)&&([_0x3f2fac,_0x56a471]=[_0x56a471,_0x3f2fac]),_0x5d5ea3['compare'](_0x3f2fac,_0x56a471);},'isVisible':({plugins:_0x31cfa4},_0x937fcd)=>{const _0x12a218=_0x31cfa4['get'](d);return!(_0x12a218['repository']['getRevisionsInDiff'](_0x12a218['diff'])['length']>0x2)&&!_0x937fcd['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3a9e94,{id:_0x3fc4da})=>{_0x3a9e94['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3fc4da);},'isVisible':({plugins:_0x2aa0d9},_0x8ff1bd)=>!!_0x2aa0d9['get'](d)['repository']['getLaterVisibleRevision'](_0x8ff1bd['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4ef239},{id:_0x262917,revisionNameView:_0x343d20})=>{const _0x13e92d=_0x4ef239['get'](d),_0x55815f=_0x13e92d['repository']['getEarlierVisibleRevision'](_0x262917);_0x13e92d['compare'](_0x262917,_0x55815f),_0x343d20['focus'](),_0x343d20['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4c0c33,_0x479dbe){super(_0x4c0c33),this['_view']=_0x479dbe,this['_toolbarConfig']=ht(_0x4c0c33['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x1f7e6a){const _0x181e87=this['editor'],_0x30420b=this['view'],_0x3bc374=_0x181e87['editing']['view'],_0x5066eb=_0x30420b['editable'],_0x108bb3=_0x3bc374['document']['getRoot']();_0x5066eb['name']=_0x108bb3['rootName'],_0x30420b['render']();const _0x1952ae=_0x5066eb['element'];this['setEditableElement'](_0x5066eb['name'],_0x1952ae),_0x30420b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3bc374['attachDomRoot'](_0x1952ae),this['_elementReplacer']['replace'](_0x1f7e6a,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xc72256=this['view'],_0x1acb87=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1acb87['detachDomRoot'](_0xc72256['editable']['name']),_0xc72256['destroy']();}['_initToolbar'](){const _0x1204cf=this['view'];_0x1204cf['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1204cf['stickyPanel']['limiterElement']=_0x1204cf['element'],_0x1204cf['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5af7da})=>_0x5af7da),_0x1204cf['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1204cf['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x47ad00,_0x46c280,_0x388e3b={}){super(_0x47ad00),this['stickyPanel']=new lt(_0x47ad00),this['toolbar']=new nt(_0x47ad00,{'shouldGroupWhenFull':_0x388e3b['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x47ad00,_0x46c280);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x129dd8,_0x3fe8d3){super(_0x3fe8d3),this['sourceElement']=_0x129dd8,this['model']['document']['createRoot']();const _0x1dbe49=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x1dbe49);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x179d93,_0x148c72){const _0x2a3e15=new this(_0x179d93,_0x148c72);return await _0x2a3e15['initPlugins'](),await _0x2a3e15['ui']['init'](_0x179d93),await _0x2a3e15['data']['init'](_0x2a3e15['config']['get']('initialData')||''),_0x2a3e15['fire']('ready'),_0x2a3e15;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5b577d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42f709){function _0x15c684(_0x136122){return _0x136122['map'](_0x2162a4=>String['fromCharCode'](_0x2162a4))['join']('');}super(_0x42f709),this['result']='end',_0x42f709[_0x15c684([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c684([0x76,0x69,0x65,0x77])][_0x15c684([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15c684([0x61,0x75,0x74,0x6f]),_0x42f709[_0x15c684([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x15c684([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15c684([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x15c684([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x15c684([0x6f,0x6b])});}}class H extends _0x5b577d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xc62673){if(super(_0xc62673),!this['editor']['config']['get']('revisionHistory'))throw new _0x8b8fdd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xa3b242=>this['_showRevisionViewer']({..._0xa3b242,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2ddafc=>this['_closeRevisionViewer'](_0x2ddafc)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x59d4b1=>this['_restoreRevision'](_0x59d4b1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3ffb2c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3ffb2c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xb89cf3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xb89cf3);}['getRevision'](_0x102172){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x102172);}['getRevisions'](_0x1fdee5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1fdee5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3c4d6c=this['editor'],_0x4ab783=_0xfd0b49(_0x3c4d6c,p),_0x3e3f1b=_0x3c4d6c['plugins']['get']('RevisionTracker'),_0x3783d9=_0x3c4d6c['plugins']['get']('Users')['users'];return _0x4ab783['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4ab783['lazyRoots'],(_0x4ab783['plugins']['push'](k,d,m,class extends _0x5b577d{static get['requires'](){return[d,'Users'];}['init'](){const _0x38078d=this['editor']['plugins']['get']('Users');for(const _0x204903 of _0x3783d9)_0x204903['isAnonymous']||_0x38078d['getUser'](_0x204903['id'])||_0x38078d['addUser'](_0x204903);const _0x3ab2fe=_0x3e3f1b['repository']['getRevisions']();let _0x580657=null;const _0x20bdeb=this['editor']['plugins']['get']('RevisionViewer');_0x20bdeb['adapter']=_0x3e3f1b['adapter'],_0x20bdeb['bind']('isEnabled')['to'](_0x3e3f1b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3c4d6c,'isReadOnly',_0x2131e2=>!_0x2131e2);for(const _0x460351 of _0x3ab2fe){const _0x485734=null===_0x460351['creator'];if(_0x485734&&_0x460351['toVersion']===_0x460351['fromVersion'])continue;const _0x5e1a04=_0x460351['toJSON']();_0x20bdeb['addRevisionData'](_0x5e1a04,(_0xda544c,_0x4ed172,_0x4adfe4)=>{if(_0x485734){if(_0x580657)_0x580657['_update'](_0xda544c,_0x4ed172);else{if(!_0x4ed172){const _0x33de85=_0x4adfe4['toJSON']();_0x33de85['id']=_0x4a2e00(),_0x3e3f1b['saveRevision'](_0x33de85,_0x4adfe4['toVersion'])['then'](_0x4e78fe=>{_0x580657=_0x4e78fe;});}}}else _0x460351['_update'](_0xda544c,_0x4ed172);});}}},g),_0x4ab783);}['_enhanceShowRevisionViewerCallback'](){const _0x15dc38=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1e85c8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x19d280=this['editor']['plugins']['get']('Autosave');await _0x19d280['save']();}else await _0x1e85c8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x17168e=this['editor']['plugins']['get']('Dialog');_0x17168e['isOpen']&&_0x17168e['hide']();}const _0x1b76dc=this['_getRevisionViewerEditorConfig']();return _0x15dc38(_0x1b76dc)['then'](_0x423f54=>{return(this['_viewerEditor']=_0x423f54,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x423f54;})['catch'](_0x196c50=>(console['error'](_0x196c50),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x180acf=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x180acf(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x172382=this['editor']['plugins']['get']('Annotations');_0x172382['refreshVisibility'](),_0x172382['refreshPositioning']();}})));}['_showRevisionViewer'](_0x19deb2){const _0x41b4fe=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2f519a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3b9fa0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3b9fa0,_0x19deb2)['then'](_0x1b881e=>(_0x2f519a['style']['display']='block',_0x41b4fe['style']['display']='none',_0x1b881e));}['_closeRevisionViewer'](_0x30f0eb){const _0x3da0a7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3da0a7['style']['display']='',_0x30f0eb['destroy']();}async['_restoreRevision'](_0x135593){const _0x187208=this['editor'],_0x2554f0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xc68281=_0x187208['plugins']['get']('RevisionTracker'),_0x20bcb7=_0x2554f0['repository']['getRevision'](_0x135593);let _0x3b6b30,_0x46c97d,_0x45f24f;try{_0x3b6b30=await _0x2554f0['getRevisionData'](_0x20bcb7),_0x46c97d=await _0x2554f0['getRevisionRootsAttributes'](_0x20bcb7);}catch(_0x2cca57){return void console['error'](_0x2cca57);}_0x187208['model']['change'](_0x501c30=>{for(const _0x42076f of Array['from'](_0x187208['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x501c30['removeMarker'](_0x42076f);}),_0x2554f0['isReady']=!0x1,_0x187208['model']['enqueueChange'](_0x164799=>{_0x164799['setSelection'](null),_0x164799['removeSelectionAttribute'](_0x187208['model']['document']['selection']['getAttributeKeys']());const _0x11ac2c=Object['keys'](_0x3b6b30);for(const _0x4bda62 of _0x187208['model']['document']['roots'])'$graveyard'!=_0x4bda62['rootName']&&_0x4bda62['isAttached']()&&!_0x11ac2c['includes'](_0x4bda62['rootName'])&&_0x164799['detachRoot'](_0x4bda62);for(const _0x49bfba of _0x11ac2c){let _0x2f7bd4=_0x187208['model']['document']['getRoot'](_0x49bfba);_0x2f7bd4&&_0x2f7bd4['isAttached']()||(_0x2f7bd4=_0x164799['addRoot'](_0x49bfba));const _0x1c5e4d=_0x46c97d[_0x49bfba],_0x12fdc5=Object['keys'](_0x1c5e4d),_0x3eed51=_0x3b6b30[_0x49bfba];for(const _0x2c19eb of _0x2f7bd4['getAttributeKeys']())_0x12fdc5['includes'](_0x2c19eb)||_0x164799['removeAttribute'](_0x2c19eb,_0x2f7bd4);for(const _0x5169d3 of _0x12fdc5)_0x164799['setAttribute'](_0x5169d3,_0x46c97d[_0x49bfba][_0x5169d3],_0x2f7bd4);_0x164799['remove'](_0x164799['createRangeIn'](_0x2f7bd4)),_0x164799['insert'](_0x187208['data']['parse'](_0x3eed51,_0x2f7bd4),_0x2f7bd4,0x0);}});const _0x4676ee=R(_0x187208['locale'],'Restored');if(_0x20bcb7['name'])_0x45f24f=-0x1==_0x20bcb7['name']['indexOf'](_0x4676ee)?_0x4676ee+':\x20'+_0x20bcb7['name']:_0x20bcb7['name'];else _0x45f24f=_0x4676ee+':\x20'+(_0x20bcb7['createdAt']['toLocaleDateString'](_0x187208['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x20bcb7['createdAt']['toLocaleTimeString'](_0x187208['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xc68281['saveRevision']({'name':_0x45f24f}),_0x2554f0['isReady']=!0x0,_0x187208['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x583ad3){super(_0x583ad3),this['_revisionViewer']=_0x583ad3['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4ace8a=this['_revisionsRepository']['_revisions'],_0x9306b3=this['_createRevisionActions'](),_0xc9450c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x4ace8a,_0x9306b3,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x3cecac,_0xa16da)=>{_0xa16da['revisionViews']['on']('add',(_0x59d82e,_0x2d463e)=>{_0x2d463e['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0xc9450c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x14aef3=this['_revisionsRepository']['getRevision'](0x0);if(_0x14aef3){const _0x452e4f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14aef3['id']);this['_revisionViewer']['compare'](_0x14aef3,_0x452e4f);}}['_handleRevisionSelected'](_0x3aae52,_0x334775){const _0x19277a=this['_revisionsRepository']['getRevision'](_0x334775['id']),_0x315b20=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x19277a['id']);this['_revisionViewer']['compare'](_0x19277a,_0x315b20);}['_handleRevisionSetName'](_0x48de1b,_0x32ed4e){this['_revisionsRepository']['getRevision'](_0x32ed4e['id'])['setName'](_0x32ed4e['name']);}['_handleDiffChange'](_0x2b024c,_0x56657e,_0x43b628){const _0x438d47=this['_revisionsRepository']['getRevisionsInDiff'](_0x43b628);_0x438d47['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x438d47),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x438d47[0x0]));}['_createRevisionActions'](){const _0x48789c=this['editor'],_0x171f7c=g['availableRevisionActions'],_0x216820=_0x48789c['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x216820['length'])return _0x216820['map'](_0x4d55ae=>{const _0x56ec13='string'==typeof _0x4d55ae?Object['assign']({},_0x171f7c[_0x4d55ae]):_0x4d55ae;return _0x56ec13['action']=_0x56ec13['action']['bind'](this,_0x48789c),_0x56ec13['isVisible']&&(_0x56ec13['isVisible']=_0x56ec13['isVisible']['bind'](this,_0x48789c)),_0x56ec13;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4e23f1},_0x4bbaf9)=>{const _0x301b53=_0x4e23f1['get'](d),_0x1436a4=_0x301b53['repository'];let _0x137f8e=_0x301b53['diff']['newRevisionId'],_0x5131d8=_0x4bbaf9['id'];_0x1436a4['getIndex'](_0x137f8e)>_0x1436a4['getIndex'](_0x5131d8)&&([_0x137f8e,_0x5131d8]=[_0x5131d8,_0x137f8e]),_0x301b53['compare'](_0x137f8e,_0x5131d8);},'isVisible':({plugins:_0x1c2881},_0x3d6f92)=>{const _0x261207=_0x1c2881['get'](d);return!(_0x261207['repository']['getRevisionsInDiff'](_0x261207['diff'])['length']>0x2)&&!_0x3d6f92['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x46717c,{id:_0x32ce84})=>{_0x46717c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x32ce84);},'isVisible':({plugins:_0x26ff13},_0x22b616)=>!!_0x26ff13['get'](d)['repository']['getLaterVisibleRevision'](_0x22b616['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3db243},{id:_0x1ca876,revisionNameView:_0x565f25})=>{const _0x101d17=_0x3db243['get'](d),_0x20ef73=_0x101d17['repository']['getEarlierVisibleRevision'](_0x1ca876);_0x101d17['compare'](_0x1ca876,_0x20ef73),_0x565f25['focus'](),_0x565f25['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x229513,_0x1a0f2c){super(_0x229513),this['_view']=_0x1a0f2c,this['_toolbarConfig']=ht(_0x229513['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x3bf818){const _0x21548a=this['editor'],_0x5bacb0=this['view'],_0xdcc87e=_0x21548a['editing']['view'],_0x2dece2=_0x5bacb0['editable'],_0x35f618=_0xdcc87e['document']['getRoot']();_0x2dece2['name']=_0x35f618['rootName'],_0x5bacb0['render']();const _0x5bbf82=_0x2dece2['element'];this['setEditableElement'](_0x2dece2['name'],_0x5bbf82),_0x5bacb0['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xdcc87e['attachDomRoot'](_0x5bbf82),this['_elementReplacer']['replace'](_0x3bf818,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3d5c49=this['view'],_0x5cf01c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5cf01c['detachDomRoot'](_0x3d5c49['editable']['name']),_0x3d5c49['destroy']();}['_initToolbar'](){const _0x139cb2=this['view'];_0x139cb2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x139cb2['stickyPanel']['limiterElement']=_0x139cb2['element'],_0x139cb2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x470c42})=>_0x470c42),_0x139cb2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x139cb2['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x497401,_0x3f758d,_0x281d9c={}){super(_0x497401),this['stickyPanel']=new lt(_0x497401),this['toolbar']=new nt(_0x497401,{'shouldGroupWhenFull':_0x281d9c['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x497401,_0x3f758d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3ab7ec,_0x11dea4){super(_0x11dea4),this['sourceElement']=_0x3ab7ec,this['model']['document']['createRoot']();const _0x4c8cdb=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x4c8cdb);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3fc35f,_0x13f8d5){const _0x2ac880=new this(_0x3fc35f,_0x13f8d5);return await _0x2ac880['initPlugins'](),await _0x2ac880['ui']['init'](_0x3fc35f),await _0x2ac880['data']['init'](_0x2ac880['config']['get']('initialData')||''),_0x2ac880['fire']('ready'),_0x2ac880;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x5025c2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3aa389){function _0x41172e(_0x26ee0e){return _0x26ee0e['map'](_0x5001a6=>String['fromCharCode'](_0x5001a6))['join']('');}super(_0x3aa389),this['result']='end',_0x3aa389[_0x41172e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41172e([0x76,0x69,0x65,0x77])][_0x41172e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41172e([0x61,0x75,0x74,0x6f]),_0x3aa389[_0x41172e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x41172e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41172e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x41172e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x41172e([0x6f,0x6b])});}}class H extends _0x5025c2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x494f0a){if(super(_0x494f0a),!this['editor']['config']['get']('revisionHistory'))throw new _0x29c262('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3383a5=>this['_showRevisionViewer']({..._0x3383a5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2a05ae=>this['_closeRevisionViewer'](_0x2a05ae)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x33bc00=>this['_restoreRevision'](_0x33bc00)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4b8bd0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4b8bd0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4eb164){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4eb164);}['getRevision'](_0x13ab73){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x13ab73);}['getRevisions'](_0x2330db){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2330db||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3375fd=this['editor'],_0x3f5e5b=_0x5e210e(_0x3375fd,p),_0x322d2d=_0x3375fd['plugins']['get']('RevisionTracker'),_0x1b99b2=_0x3375fd['plugins']['get']('Users')['users'];return _0x3f5e5b['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3f5e5b['lazyRoots'],(_0x3f5e5b['plugins']['push'](k,d,m,class extends _0x5025c2{static get['requires'](){return[d,'Users'];}['init'](){const _0x4b0e78=this['editor']['plugins']['get']('Users');for(const _0x4c21bf of _0x1b99b2)_0x4c21bf['isAnonymous']||_0x4b0e78['getUser'](_0x4c21bf['id'])||_0x4b0e78['addUser'](_0x4c21bf);const _0x3d4c05=_0x322d2d['repository']['getRevisions']();let _0x326444=null;const _0x1c9b68=this['editor']['plugins']['get']('RevisionViewer');_0x1c9b68['adapter']=_0x322d2d['adapter'],_0x1c9b68['bind']('isEnabled')['to'](_0x322d2d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3375fd,'isReadOnly',_0x233a3b=>!_0x233a3b);for(const _0x2e546e of _0x3d4c05){const _0x55fb15=null===_0x2e546e['creator'];if(_0x55fb15&&_0x2e546e['toVersion']===_0x2e546e['fromVersion'])continue;const _0x285982=_0x2e546e['toJSON']();_0x1c9b68['addRevisionData'](_0x285982,(_0x17202e,_0x4b2869,_0x93cf61)=>{if(_0x55fb15){if(_0x326444)_0x326444['_update'](_0x17202e,_0x4b2869);else{if(!_0x4b2869){const _0x310cd3=_0x93cf61['toJSON']();_0x310cd3['id']=_0x4fb206(),_0x322d2d['saveRevision'](_0x310cd3,_0x93cf61['toVersion'])['then'](_0x43708f=>{_0x326444=_0x43708f;});}}}else _0x2e546e['_update'](_0x17202e,_0x4b2869);});}}},g),_0x3f5e5b);}['_enhanceShowRevisionViewerCallback'](){const _0x340eda=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x30f6ca=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1be970=this['editor']['plugins']['get']('Autosave');await _0x1be970['save']();}else await _0x30f6ca['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x93ba8b=this['editor']['plugins']['get']('Dialog');_0x93ba8b['isOpen']&&_0x93ba8b['hide']();}const _0xd827c0=this['_getRevisionViewerEditorConfig']();return _0x340eda(_0xd827c0)['then'](_0x102f8d=>{return(this['_viewerEditor']=_0x102f8d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x102f8d;})['catch'](_0x571572=>(console['error'](_0x571572),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x222d40=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x222d40(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4488a1=this['editor']['plugins']['get']('Annotations');_0x4488a1['refreshVisibility'](),_0x4488a1['refreshPositioning']();}})));}['_showRevisionViewer'](_0x373b60){const _0xcf358e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x190129=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5af98c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5af98c,_0x373b60)['then'](_0x186cc1=>(_0x190129['style']['display']='block',_0xcf358e['style']['display']='none',_0x186cc1));}['_closeRevisionViewer'](_0x406bf2){const _0x403367=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x403367['style']['display']='',_0x406bf2['destroy']();}async['_restoreRevision'](_0x2c97e2){const _0x56c2cc=this['editor'],_0x1e6d78=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x51cd5a=_0x56c2cc['plugins']['get']('RevisionTracker'),_0x384173=_0x1e6d78['repository']['getRevision'](_0x2c97e2);let _0x50051e,_0x5c2c3e,_0x41b72f;try{_0x50051e=await _0x1e6d78['getRevisionData'](_0x384173),_0x5c2c3e=await _0x1e6d78['getRevisionRootsAttributes'](_0x384173);}catch(_0x1c0224){return void console['error'](_0x1c0224);}_0x56c2cc['model']['change'](_0x3e0243=>{for(const _0x2156b of Array['from'](_0x56c2cc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3e0243['removeMarker'](_0x2156b);}),_0x1e6d78['isReady']=!0x1,_0x56c2cc['model']['enqueueChange'](_0x44ec01=>{_0x44ec01['setSelection'](null),_0x44ec01['removeSelectionAttribute'](_0x56c2cc['model']['document']['selection']['getAttributeKeys']());const _0x57775e=Object['keys'](_0x50051e);for(const _0x44452f of _0x56c2cc['model']['document']['roots'])'$graveyard'!=_0x44452f['rootName']&&_0x44452f['isAttached']()&&!_0x57775e['includes'](_0x44452f['rootName'])&&_0x44ec01['detachRoot'](_0x44452f);for(const _0x45d7ed of _0x57775e){let _0x2fc508=_0x56c2cc['model']['document']['getRoot'](_0x45d7ed);_0x2fc508&&_0x2fc508['isAttached']()||(_0x2fc508=_0x44ec01['addRoot'](_0x45d7ed));const _0x36bd83=_0x5c2c3e[_0x45d7ed],_0xc3a810=Object['keys'](_0x36bd83),_0x5145c5=_0x50051e[_0x45d7ed];for(const _0x2ff3ca of _0x2fc508['getAttributeKeys']())_0xc3a810['includes'](_0x2ff3ca)||_0x44ec01['removeAttribute'](_0x2ff3ca,_0x2fc508);for(const _0x40bd37 of _0xc3a810)_0x44ec01['setAttribute'](_0x40bd37,_0x5c2c3e[_0x45d7ed][_0x40bd37],_0x2fc508);_0x44ec01['remove'](_0x44ec01['createRangeIn'](_0x2fc508)),_0x44ec01['insert'](_0x56c2cc['data']['parse'](_0x5145c5,_0x2fc508),_0x2fc508,0x0);}});const _0x3cb7c0=R(_0x56c2cc['locale'],'Restored');if(_0x384173['name'])_0x41b72f=-0x1==_0x384173['name']['indexOf'](_0x3cb7c0)?_0x3cb7c0+':\x20'+_0x384173['name']:_0x384173['name'];else _0x41b72f=_0x3cb7c0+':\x20'+(_0x384173['createdAt']['toLocaleDateString'](_0x56c2cc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x384173['createdAt']['toLocaleTimeString'](_0x56c2cc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x51cd5a['saveRevision']({'name':_0x41b72f}),_0x1e6d78['isReady']=!0x0,_0x56c2cc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};