@ckeditor/ckeditor5-revision-history 44.2.0-alpha.10 → 44.2.0-alpha.11

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 _0xed6999,uid as _0x5618d1,Collection as _0x266183,logWarning as _0x38e6be,FocusTracker as _0x2428f8,KeystrokeHandler as _0x35a0c2,scrollViewportToShowTarget as _0x11494c,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x32ed3d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x456867,set as _0x1b5cbc,unset as _0x21484a,isEqual as _0x598b8a}from'lodash-es';import{Plugin as _0x5076e7,PendingActions as _0x2fbb9f,icons as _0x357001,Command as _0x1f7eeb,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x37331c,getMarkerDomElement as _0x571191,ConfirmMixin as _0x504a4c,sanitizeEditorConfig as _0x30902e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1dcf39,Element as ft,Range as vt,ViewUIElement as _0x4e9cbe,ViewRawElement as _0xf0a950,ViewEmptyElement as _0x3a5ef6,ViewAttributeElement as _0x5be06e,ViewContainerElement as _0x33b3d2,Position as gt,ViewText as _0x505ed7,ViewElement as _0x44f4dd,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x4a15cb,injectCssTransitionDisabler as ts,submitHandler as _0x2fc20e,LabeledFieldView as nt,createLabeledInputText as _0x242cba,createDropdown as _0x2237ca,ListView as te,ListItemView as _0x2673d4,ButtonView as _0x4f6818,MenuBarMenuView as _0x58e2cc,MenuBarMenuListView as _0x40cdad,MenuBarMenuListItemView as _0x19bde0,MenuBarMenuListItemButtonView as _0x5c84c9,ContextualBalloon as _0x1c8221,ToolbarSeparatorView as _0x58e5ac,IconView as _0x5e8fce,addListToDropdown as _0x2029e6,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x148cea}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0xed6999(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2c5c6e){super(),this['id']=_0x2c5c6e['id']||_0x5618d1(),this['creator']=_0x2c5c6e['creator']||null,this['authors']=_0x2c5c6e['authors']||[],this['diffData']=_0x2c5c6e['diffData']||null,this['toVersion']=_0x2c5c6e['toVersion']||0x0,this['fromVersion']=_0x2c5c6e['fromVersion']||0x0,this['set']('name',_0x2c5c6e['name']||''),this['set']('createdAt',_0x2c5c6e['createdAt']||new Date()),this['set']('attributes',_0x2c5c6e['attributes']||{});}['setName'](_0x2648d2){this['_update']({'name':_0x2648d2});}['setAttribute'](_0xc5d8fa,_0x21b40a){const _0x5e11cc=_0x456867(this['attributes']);_0x1b5cbc(_0x5e11cc,_0xc5d8fa,_0x21b40a),this['_update']({'attributes':_0x5e11cc});}['removeAttribute'](_0x1355cf){const _0x345142=_0x456867(this['attributes']);_0x21484a(_0x345142,_0x1355cf),this['_update']({'attributes':_0x345142});}['_update'](_0x52ec73,_0x43b4c9=!0x1){let _0x5a0f69=!0x1;const _0x2c84a6={'id':this['id']},_0x40a7ce=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x115362 of _0x40a7ce){const _0x36f705=_0x52ec73[_0x115362];void 0x0!==_0x36f705&&_0x36f705!==this[_0x115362]&&(this[_0x115362]=_0x36f705,_0x2c84a6[_0x115362]=_0x36f705,_0x5a0f69=!0x0);}_0x5a0f69&&(_0x2c84a6['authors']&&(_0x2c84a6['authorsIds']=_0x2c84a6['authors']['map'](_0x4ddd7b=>_0x4ddd7b['id']),delete _0x2c84a6['authors']),this['fire']('_update',_0x2c84a6,_0x43b4c9));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x24c75a=>_0x24c75a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5076e7{['_revisions'];static get['requires'](){return[_0x37331c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xdb582b){super(_0xdb582b),this['_revisions']=new _0x266183();}['afterInit'](){!async function(_0xf90d2f){const _0x11203d=_0x1afd3c([0x4b,0x64,0x51,0x68,0x45,0x57,0x65,0x42,0x73,0x5a,0x4f,0x63,0x7a,0x6f,0x76,0x72,0x78,0x6e,0x48,0x69,0x58,0x49,0x38,0x66,0x61,0x6a,0x75,0x4e,0x54,0x37,0x33,0x59,0x6b,0x44,0x32,0x4d,0x62,0x46,0x36,0x6c,0x31,0x35,0x39,0x41,0x4a,0x74,0x79,0x34,0x30,0x55,0x43,0x71,0x70,0x53,0x47,0x4c,0x56,0x52,0x67,0x6d,0x77,0x50]),_0x3974ed=0xeb829,_0x96ce51=0x14949160,_0x1a043c=0x1493cfd8^_0x96ce51,_0x129c5f=window[_0x1afd3c([0x44,0x61,0x74,0x65])][_0x1afd3c([0x6e,0x6f,0x77])](),_0x1b9cb2=_0xf90d2f[_0x1afd3c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x451c2d=new window[(_0x1afd3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8640f1=>{_0x1b9cb2[_0x1afd3c([0x6f,0x6e,0x63,0x65])](_0x1afd3c([0x72,0x65,0x61,0x64,0x79]),_0x8640f1);}),_0x8a08b4={[_0x1afd3c([0x6b,0x74,0x79])]:_0x1afd3c([0x45,0x43]),[_0x1afd3c([0x75,0x73,0x65])]:_0x1afd3c([0x73,0x69,0x67]),[_0x1afd3c([0x63,0x72,0x76])]:_0x1afd3c([0x50,0x2d,0x32,0x35,0x36]),[_0x1afd3c([0x78])]:_0x1afd3c([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]),[_0x1afd3c([0x79])]:_0x1afd3c([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]),[_0x1afd3c([0x61,0x6c,0x67])]:_0x1afd3c([0x45,0x53,0x32,0x35,0x36])},_0x674272=_0x1b9cb2[_0x1afd3c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1afd3c([0x67,0x65,0x74])](_0x1afd3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd73034(){let _0x217031,_0x2af906=null,_0x51263c=null;try{if(_0x674272==_0x1afd3c([0x47,0x50,0x4c]))return _0x1afd3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x217031=_0x3a7bd8(),!_0x217031)return _0x1afd3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x217031[_0x1afd3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51263c=_0x33490d(_0x217031[_0x1afd3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x217031[_0x1afd3c([0x6a,0x74,0x69])])),await _0x538cc5()?_0x5155db()?_0x52e8f7()?_0x1afd3c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34ba4f()?(_0x217031[_0x1afd3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1afd3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2af906=_0x5a9226(_0x1afd3c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x217031[_0x1afd3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1afd3c([0x74,0x72,0x69,0x61,0x6c])&&(_0x2af906=_0x5a9226(_0x1afd3c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x146ec1()):_0x1afd3c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1afd3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1afd3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x384945){return _0x1afd3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52e8f7(){const _0x450800=[_0x1afd3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1afd3c([0x74,0x72,0x69,0x61,0x6c])][_0x1afd3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x217031[_0x1afd3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x129c5f/0x3e8:0xe10*_0x1a043c;return _0x217031[_0x1afd3c([0x65,0x78,0x70])]<_0x450800;}function _0x5155db(){const _0x1e54ec=_0x217031[_0x1afd3c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1e54ec)return!0x1;if(_0x1e54ec[_0x1afd3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afd3c([0x2a])))return!0x0;if(_0x1e54ec[_0x1afd3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afd3c([0x52,0x48])))return!0x0;if(_0x1e54ec[_0x1afd3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afd3c([0x52,0x52,0x48]))){if(_0x3198ce())return!0x0;if(_0x34d83c()||_0x44f377())return!0x0;}return!0x1;}function _0x34ba4f(){const _0x352496=_0x217031[_0x1afd3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x352496||0x0==_0x352496[_0x1afd3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2238b0}=new URL(window[_0x1afd3c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x352496[_0x1afd3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2238b0))return!0x0;const _0x4a15bd=_0x2238b0[_0x1afd3c([0x73,0x70,0x6c,0x69,0x74])](_0x1afd3c([0x2e]));return _0x352496[_0x1afd3c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1641fe=>_0x1641fe[_0x1afd3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afd3c([0x2a])))[_0x1afd3c([0x6d,0x61,0x70])](_0x2d3cbc=>_0x2d3cbc[_0x1afd3c([0x73,0x70,0x6c,0x69,0x74])](_0x1afd3c([0x2e])))[_0x1afd3c([0x73,0x6f,0x6d,0x65])](_0x4d21ed=>_0x4a15bd[_0x1afd3c([0x65,0x76,0x65,0x72,0x79])]((_0x71d7b6,_0x2b5c56)=>_0x4d21ed[_0x2b5c56]===_0x71d7b6||_0x4d21ed[_0x2b5c56]===_0x1afd3c([0x2a])));}function _0x146ec1(){return _0x2af906&&_0x51263c?new window[(_0x1afd3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x211628,_0x4c3d34)=>{_0x2af906[_0x1afd3c([0x74,0x68,0x65,0x6e])](_0x211628,_0x4c3d34),_0x51263c[_0x1afd3c([0x74,0x68,0x65,0x6e])](_0x46f5f9=>{_0x46f5f9!=_0x1afd3c([0x56,0x61,0x6c,0x69,0x64])&&_0x211628(_0x46f5f9);},_0x4c3d34);}):_0x2af906||_0x51263c||_0x1afd3c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33490d(_0x31df8f,_0xc34126){return new window[(_0x1afd3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x461268=>{if(_0x536a4c())return _0x461268(_0x1afd3c([0x56,0x61,0x6c,0x69,0x64]));_0x363f3a(),_0x1b9cb2[_0x1afd3c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1afd3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a7bd4=!0x1;const _0x4ace8d=_0x5618d1();function _0x594f48(_0x9873b4){return!!_0x9873b4&&(typeof _0x9873b4===_0x1afd3c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9873b4===_0x1afd3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9873b4[_0x1afd3c([0x74,0x68,0x65,0x6e])]===_0x1afd3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9873b4[_0x1afd3c([0x63,0x61,0x74,0x63,0x68])]===_0x1afd3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x186412(_0x2fe8e0){_0x17b479(_0x2fe8e0)[_0x1afd3c([0x74,0x68,0x65,0x6e])](_0x27eaf1=>{if(!_0x27eaf1||_0x27eaf1[_0x1afd3c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1afd3c([0x6f,0x6b]))return _0x1afd3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2de8fb(_0x4fcd2a(_0x4ace8d+_0xc34126))!=_0x27eaf1[_0x1afd3c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1afd3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1afd3c([0x56,0x61,0x6c,0x69,0x64]);})[_0x1afd3c([0x74,0x68,0x65,0x6e])](_0x4bed17=>(_0x175686(),_0x4bed17),()=>{const _0xe1a85=_0x389d27();return null==_0xe1a85?(_0x175686(),_0x1afd3c([0x56,0x61,0x6c,0x69,0x64])):_0x1afd3c(_0x129c5f-_0xe1a85>(0x30981560^_0x96ce51)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1afd3c([0x74,0x68,0x65,0x6e])](_0x461268)[_0x1afd3c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x461268(_0x1afd3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf94f06=0x14a27fe0^_0x96ce51;function _0x175686(){const _0x11590f=_0x1afd3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2de8fb(_0x4fcd2a(_0x31df8f)),_0x4bbdaf=_0x1b5ec8(_0x2de8fb(window[_0x1afd3c([0x4d,0x61,0x74,0x68])][_0x1afd3c([0x63,0x65,0x69,0x6c])](_0x129c5f/_0xf94f06)));window[_0x1afd3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1afd3c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11590f,_0x4bbdaf);}function _0x389d27(){const _0x51a817=_0x1afd3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2de8fb(_0x4fcd2a(_0x31df8f)),_0x524199=window[_0x1afd3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1afd3c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51a817);return _0x524199?window[_0x1afd3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b5ec8(_0x524199),0x10)*_0xf94f06:null;}function _0x17b479(_0x203f57){return new window[(_0x1afd3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53719c,_0x331b32)=>{_0x203f57[_0x1afd3c([0x74,0x68,0x65,0x6e])](_0x53719c,_0x331b32),window[_0x1afd3c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x331b32,0x149545a0^_0x96ce51);});}}_0x1b9cb2[_0x1afd3c([0x6f,0x6e])](_0x1afd3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1cf58b,_0x4a1c16)=>{if(_0x4a1c16[0x0]!=_0x31df8f)return _0x461268(_0x1afd3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a1c16[0x1]={..._0x4a1c16[0x1],[_0x1afd3c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ace8d};},{[_0x1afd3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1afd3c([0x68,0x69,0x67,0x68])}),_0x1b9cb2[_0x1afd3c([0x6f,0x6e])](_0x1afd3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x275d3e=>{_0x594f48(_0x275d3e[_0x1afd3c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a7bd4=!0x0,_0x186412(_0x275d3e[_0x1afd3c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1afd3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1afd3c([0x6c,0x6f,0x77])}),_0x451c2d[_0x1afd3c([0x74,0x68,0x65,0x6e])](()=>{_0x5a7bd4||_0x461268(_0x1afd3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x536a4c(){return _0x1b9cb2[_0x1afd3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1afd3c([0x76,0x69,0x65,0x77])][_0x1afd3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1afd3c([0x61,0x75,0x74,0x6f]);}function _0x363f3a(){_0x1b9cb2[_0x1afd3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1afd3c([0x76,0x69,0x65,0x77])][_0x1afd3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1afd3c([0x61,0x75,0x74,0x6f]);}}function _0x5a9226(_0x2058f4){const _0x42c8ab=[new window[(_0x1afd3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ba21b=>setTimeout(_0x3ba21b,0x149dafac^_0x96ce51)),_0x451c2d[_0x1afd3c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1afd3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x193e45=>{const _0x1a9cdf=0x14949167^_0x96ce51,_0x23debf=_0xf90d2f[_0x1afd3c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x8e9e2e(){_0x23debf[_0x1afd3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1a9cdf&&_0x193e45();}_0x8e9e2e(),_0x23debf[_0x1afd3c([0x6f,0x6e])](_0x1afd3c([0x61,0x64,0x64]),_0x8e9e2e);})),new window[(_0x1afd3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41d749=>{function _0x2fca5e(){for(const _0x163a91 in window)if(window[_0x1afd3c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1afd3c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x163a91))&&window[_0x163a91]==_0x3974ed)return _0x41d749();_0x1b9cb2[_0x1afd3c([0x73,0x74,0x61,0x74,0x65])]!=_0x1afd3c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1afd3c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fca5e,0x149482e8^_0x96ce51);}_0x32e421(_0x1afd3c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2fca5e();})];return window[_0x1afd3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1afd3c([0x72,0x61,0x63,0x65])](_0x42c8ab)[_0x1afd3c([0x74,0x68,0x65,0x6e])](()=>_0x2058f4);}async function _0x5c954a(){if(await _0x451c2d,_0x32e421(_0x1afd3c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x40e13d=_0xf90d2f[_0x1afd3c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5039ff=_0xf90d2f[_0x1afd3c([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])](_0x40e13d[_0x1afd3c([0x69,0x64])]),_0x307f18=_0x1f68b6(_0x1afd3c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x307f18[_0x1afd3c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x40e13d['id'],_0x5039ff?_0x5039ff['id']:null,!0x0),_0x307f18[_0x1afd3c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1afd3c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x307f18[_0x1afd3c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x307f18[_0x1afd3c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x175190,void(_0x307f18[_0x1afd3c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x175190);}if(_0x32e421(_0x1afd3c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x36a191=_0x1f68b6(_0x1afd3c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x36a191[_0x1afd3c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1afd3c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x36a191[_0x1afd3c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x36a191[_0x1afd3c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x175190,_0x36a191[_0x1afd3c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x175190;}_0x1b9cb2[_0x1afd3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afd3c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x175190,_0x1b9cb2[_0x1afd3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afd3c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x175190,_0x1b9cb2[_0x1afd3c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1afd3c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3198ce(){return _0x32e421(_0x1afd3c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f68b6(_0x1afd3c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1afd3c([0x73,0x74,0x61,0x74,0x65])]==_0x1afd3c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34d83c(){return _0x32e421(_0x1afd3c([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 _0x44f377(){return _0x32e421(_0x1afd3c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x43806b(_0x3b1a96){const _0x349701=_0x5c9344();_0x1b9cb2[_0x349701]=_0x1afd3c([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])+_0x3b1a96,_0x3b1a96[_0x1afd3c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1afd3c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5c9344()]=_0x3974ed),_0x3b1a96!=_0x1afd3c([0x56,0x61,0x6c,0x69,0x64])&&_0x5c954a();}function _0x5c9344(){const _0x4b3730=window[_0x1afd3c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1afd3c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1afd3c([0x6e,0x6f,0x77])]())[_0x1afd3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1afd3c([0x2e]),'');let _0x45575a=_0x1afd3c([0x4b]);for(let _0x402299=0x0;_0x402299<_0x4b3730[_0x1afd3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x402299+=0x2){let _0x341232=window[_0x1afd3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b3730[_0x1afd3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x402299,_0x402299+0x2));_0x341232>=_0x11203d[_0x1afd3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x341232-=_0x11203d[_0x1afd3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45575a+=_0x11203d[_0x341232];}return _0x45575a;}function _0x3a7bd8(){const _0x2ed647=_0x674272[_0x1afd3c([0x73,0x70,0x6c,0x69,0x74])](_0x1afd3c([0x2e]));if(0x3!=_0x2ed647[_0x1afd3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x277e6a(_0x2ed647[0x1]);function _0x277e6a(_0x184260){const _0x476cd0=_0x44c060(_0x184260);return _0x476cd0&&_0x3dccdf()?_0x476cd0:null;function _0x3dccdf(){const _0x47384=_0x476cd0[_0x1afd3c([0x6a,0x74,0x69])],_0x3c1001=window[_0x1afd3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47384[_0x1afd3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47384[_0x1afd3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e7455={..._0x476cd0,[_0x1afd3c([0x6a,0x74,0x69])]:_0x47384[_0x1afd3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47384[_0x1afd3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e7455[_0x1afd3c([0x76,0x63])],_0x4fcd2a(_0x4e7455)==_0x3c1001;}}}async function _0x538cc5(){let _0x5a8cad=!0x0;try{const _0x125486=_0x674272[_0x1afd3c([0x73,0x70,0x6c,0x69,0x74])](_0x1afd3c([0x2e])),[_0x686e68,_0x550197,_0x7ee27f]=_0x125486;return _0x28f5e0(_0x686e68),await _0x492e97(_0x686e68,_0x550197,_0x7ee27f),_0x5a8cad;}catch(_0x3455ce){return!0x1;}function _0x28f5e0(_0x464f49){const _0x4f0c05=_0x44c060(_0x464f49);_0x4f0c05&&_0x4f0c05[_0x1afd3c([0x61,0x6c,0x67])]==_0x1afd3c([0x45,0x53,0x32,0x35,0x36])||(_0x5a8cad=!0x1);}async function _0x492e97(_0x457c9a,_0x22411e,_0x805b06){const _0x2ffad6=window[_0x1afd3c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1afd3c([0x66,0x72,0x6f,0x6d])](_0x436804(_0x805b06),_0x35b2e1=>_0x35b2e1[_0x1afd3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2705e3=new window[(_0x1afd3c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1afd3c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x457c9a+_0x1afd3c([0x2e])+_0x22411e),_0x522637=window[_0x1afd3c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1afd3c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x522637)return;const _0xd42362=await _0x522637[_0x1afd3c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1afd3c([0x6a,0x77,0x6b]),_0x8a08b4,{[_0x1afd3c([0x6e,0x61,0x6d,0x65])]:_0x1afd3c([0x45,0x43,0x44,0x53,0x41]),[_0x1afd3c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1afd3c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1afd3c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x522637[_0x1afd3c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1afd3c([0x6e,0x61,0x6d,0x65])]:_0x1afd3c([0x45,0x43,0x44,0x53,0x41]),[_0x1afd3c([0x68,0x61,0x73,0x68])]:{[_0x1afd3c([0x6e,0x61,0x6d,0x65])]:_0x1afd3c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd42362,_0x2ffad6,_0x2705e3)||(_0x5a8cad=!0x1);}}function _0x44c060(_0x1faf0d){return _0x1faf0d[_0x1afd3c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1afd3c([0x65,0x79]))?JSON[_0x1afd3c([0x70,0x61,0x72,0x73,0x65])](_0x436804(_0x1faf0d)):null;}function _0x436804(_0xa97346){return window[_0x1afd3c([0x61,0x74,0x6f,0x62])](_0xa97346[_0x1afd3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1afd3c([0x2b]))[_0x1afd3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1afd3c([0x2f])));}function _0x4fcd2a(_0x39537c){let _0x3dbc77=0x1505;function _0x1a6e76(_0x30e42b){for(let _0x34d17e=0x0;_0x34d17e<_0x30e42b[_0x1afd3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34d17e++){const _0xfa64c4=_0x30e42b[_0x1afd3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34d17e);_0x3dbc77=(_0x3dbc77<<0x5)+_0x3dbc77+_0xfa64c4,_0x3dbc77&=_0x3dbc77;}}function _0x31ae9b(_0x1be74b){Array[_0x1afd3c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1be74b)?_0x1be74b[_0x1afd3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31ae9b):_0x1be74b&&typeof _0x1be74b==_0x1afd3c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1afd3c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1be74b)[_0x1afd3c([0x73,0x6f,0x72,0x74])]()[_0x1afd3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30f937,_0x4037aa])=>{_0x1a6e76(_0x30f937),_0x31ae9b(_0x4037aa);}):_0x1a6e76(window[_0x1afd3c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1be74b));}return _0x31ae9b(_0x39537c),_0x3dbc77>>>0x0;}function _0x2de8fb(_0x454384){return _0x454384[_0x1afd3c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1afd3c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1afd3c([0x30]));}function _0x1b5ec8(_0x815366){return _0x815366[_0x1afd3c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1afd3c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1afd3c([0x6a,0x6f,0x69,0x6e])]('');}function _0x32e421(_0x248166){return _0x1b9cb2[_0x1afd3c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1afd3c([0x68,0x61,0x73])](_0x248166);}function _0x1f68b6(_0x28facd){return _0x1b9cb2[_0x1afd3c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1afd3c([0x67,0x65,0x74])](_0x28facd);}function _0x175190(){}function _0x1afd3c(_0x5f2c0b){return _0x5f2c0b['map'](_0x12879a=>String['fromCharCode'](_0x12879a))['join']('');}_0x43806b(await _0xd73034());}(this);}['createRevision'](_0x1bddbf){const _0x7202df=this['editor']['plugins']['get']('Users');return new a({'id':_0x1bddbf['id'],'name':_0x1bddbf['name'],'creator':_0x1bddbf['creatorId']?_0x7202df['getUser'](_0x1bddbf['creatorId']):null,'diffData':_0x1bddbf['diffData']||_0x1bddbf['data'],'authors':_0x1bddbf['authorsIds']['map'](_0x549a9f=>_0x7202df['getUser'](_0x549a9f)),'createdAt':new Date(_0x1bddbf['createdAt']),'attributes':_0x1bddbf['attributes'],'fromVersion':_0x1bddbf['fromVersion'],'toVersion':_0x1bddbf['toVersion']});}['addRevision'](_0x1df843,_0xb1421c=0x0){this['_revisions']['add'](_0x1df843,_0xb1421c);}['getRevision'](_0xc3e2f3){return this['_revisions']['get'](_0xc3e2f3);}['getRevisions'](_0x289846={'toJSON':!0x1}){const _0x2baa5e=Array['from'](this['_revisions']);return _0x2baa5e['reverse'](),_0x289846['toJSON']?_0x2baa5e['map'](_0x5ea961=>_0x5ea961['toJSON']()):_0x2baa5e;}['getIndex'](_0x113dbd){return this['_revisions']['getIndex'](_0x113dbd);}['getEarlierVisibleRevision'](_0x3166dc){const [,_0x495c16]=this['getRevisionsIterator'](_0x3166dc,{'direction':'earlier'});return _0x495c16;}['getLaterVisibleRevision'](_0x4d0ead){const [,_0x16d2d2]=this['getRevisionsIterator'](_0x4d0ead,{'direction':'later'});return _0x16d2d2;}['getRevisionsInDiff'](_0x43bb9c){const _0x4bb826=[];for(const _0x1a8505 of this['getRevisionsIterator'](_0x43bb9c['newRevisionId']))if(_0x4bb826['push'](_0x1a8505),_0x1a8505['id']===_0x43bb9c['oldRevisionId'])break;return _0x4bb826;}*['getRevisionsIterator'](_0x51212c,{direction:_0x4a1484='earlier',filter:_0x55be3b=()=>!0x0}={}){const _0x59a0a1='earlier'===_0x4a1484?0x1:-0x1;let _0xc4b73f=this['_revisions']['get'](_0x51212c),_0x57ff61=this['getIndex'](_0xc4b73f);for(yield _0xc4b73f;_0xc4b73f;){if(_0x57ff61+=_0x59a0a1,_0xc4b73f=this['getRevision'](_0x57ff61),!_0xc4b73f)return;_0x55be3b(_0xc4b73f)&&(yield _0xc4b73f);}}}function m(_0x1a2d63,_0x425f1e,_0xa38d5b){const t=_0x1a2d63['t'];switch(_0x425f1e){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'},_0xa38d5b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xa38d5b);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 P={'c':_0x33b3d2,'a':_0x5be06e,'e':_0x3a5ef6,'r':_0xf0a950,'u':_0x4e9cbe};class l extends _0x5076e7{['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[_0x37331c,j,_0x2fbb9f];}constructor(_0x48fb0b){super(_0x48fb0b),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4ee98d=_0x5618d1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4ee98d},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 _0x47645a=this['repository']['getRevision'](0x0),_0x4c6ad7=_0x47645a&&null===_0x47645a['creator']?_0x47645a:null;if(this['_continueCurrentRevision']=!!_0x4c6ad7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x175398=this['_source']['getCurrentRevisionId'](),_0x89e4e8=this['repository']['getRevision'](_0x175398);if(_0x89e4e8)this['_startingVersion']=_0x89e4e8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x387e37=this['_source']['history']['_operations']['find'](_0x399d5e=>!_0x399d5e['_isInit']),_0x4839eb=_0x387e37?_0x387e37['baseVersion']:this['_source']['history']['version'];_0x47645a?(_0x47645a['toVersion']<_0x4839eb&&_0x47645a['_update']({'toVersion':_0x4839eb}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4c6ad7['id'],this['_startingVersion']=_0x4c6ad7['fromVersion']):(this['_startingVersion']=_0x47645a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4839eb,this['_continueCurrentRevision']=!0x1);}}else _0x4c6ad7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4c6ad7['toVersion'],this['editor']['model']['document']['history']['version']),_0x4c6ad7['fromVersion']===_0x4c6ad7['toVersion']?(0x0!==_0x4c6ad7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4c6ad7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4c6ad7['id'],this['_startingVersion']=_0x4c6ad7['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',_0x57c98=>!_0x57c98),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x160abc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22c33e;for(const _0x162eb6 in _0x160abc){const _0x544477=_0x162eb6,_0x18bf32=_0x160abc[_0x544477];if('revisionHistoryLicenseKeyValid'==_0x18bf32||'revisionHistoryLicenseKeyInvalid'==_0x18bf32||'revisionHistoryLicenseKeyExpired'==_0x18bf32||'revisionHistoryLicenseKeyDomainLimit'==_0x18bf32||'revisionHistoryLicenseKeyNotAllowed'==_0x18bf32||'revisionHistoryLicenseKeyEvaluationLimit'==_0x18bf32||'revisionHistoryLicenseKeyTrialLimit'==_0x18bf32||'revisionHistoryLicenseKeyUsageLimit'==_0x18bf32){delete _0x160abc[_0x544477],_0x22c33e=_0x18bf32,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x22c33e&&_0x160abc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x22c33e&&_0x160abc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x22c33e&&_0x160abc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x22c33e&&_0x160abc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x22c33e&&_0x160abc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x22c33e&&_0x160abc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x22c33e&&_0x160abc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2f18dc=this['repository']['getRevision'](0x0),_0x5962c6=await this['getRevisionDocumentData'](_0x2f18dc),_0x186583=await this['getRevisionRootsAttributes'](_0x2f18dc);this['_replaceEditorDataWithRevisionData'](_0x5962c6,_0x186583);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x277b3d){this['_source']=_0x277b3d;}async['update'](){const _0x36673e=await this['_source']['getLatestVersion']();if(_0x36673e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x204f0c=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x36673e});_0x204f0c['authors']=_0x204f0c['authorsIds']['map'](_0x1fb596=>this['editor']['plugins']['get']('Users')['getUser'](_0x1fb596)),this['currentRevision']['_update'](_0x204f0c);}}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'](_0x26701e={},_0x2be1f9=null){const _0x38a935=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2be1f9>this['currentRevision']['toVersion']&&(_0x2be1f9=null),null===_0x2be1f9&&(_0x2be1f9=await this['_source']['getLatestVersion']());const _0x92d7ca=this['_getFromVersion'](_0x2be1f9),_0x489397=this['buildRevisionData']({'from':_0x92d7ca,'to':_0x2be1f9});if(this['currentRevision']['toVersion']<_0x2be1f9){const _0x56596a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2be1f9,'to':_0x2be1f9});_0x56596a['authors']=[],_0x56596a['authorsIds']=[],_0x56596a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x56596a,!0x0),delete _0x56596a['authors'],_0x38a935['push'](_0x56596a);}_0x26701e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x26701e['name']=_0x26701e['name']||null,_0x26701e['id']=_0x26701e['id']||_0x5618d1(),_0x26701e={..._0x26701e,..._0x489397};const _0x198a93=this['addRevisionData'](_0x26701e);_0x38a935['push'](_0x26701e);const _0x545faf=this['repository']['getIndex'](_0x198a93);if(0x0!==_0x545faf){const _0x101912=this['repository']['getRevision'](_0x545faf-0x1);if(_0x101912['fromVersion']!==_0x2be1f9){const _0x7611db=this['_revisionDataBuilder']['getData'](_0x2be1f9,_0x101912['toVersion']),_0x63cecc={'id':_0x101912['id'],'diffData':_0x7611db['diffData'],'authorsIds':_0x7611db['authorsIds'],'authors':_0x7611db['authorsIds']['map'](_0x253c66=>this['editor']['plugins']['get']('Users')['getUser'](_0x253c66)),'fromVersion':_0x2be1f9};_0x101912===this['currentRevision']&&(_0x63cecc['createdAt']=new Date(_0x26701e['createdAt']['getTime']()+0xa)),_0x101912['_update'](_0x63cecc,!0x0),delete _0x63cecc['authors'],_0x38a935['push'](_0x63cecc);}}if(this['adapter']){for(const _0x26dbff of _0x38a935)this['_bufferUpdate'](_0x26dbff['id'],_0x26dbff,!0x0);this['sendBufferedUpdates']();}return _0x198a93;}['addRevisionData'](_0x3964db){const _0x38c783=this['repository']['createRevision'](_0x3964db);return this['adapter']&&_0x38c783['on']('_update',(_0x14bf78,_0x4096eb,_0x4213c9)=>{_0x4213c9||(this['_bufferUpdate'](_0x4096eb['id'],_0x4096eb,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x38c783,this['_findInsertionIndex'](_0x38c783)),_0x38c783;}async['getRevisionDocumentData'](_0x29f115){await this['_loadRevisionData'](_0x29f115);const _0x13ab87={};for(const _0x3bfc1c in _0x29f115['diffData']){if(_0x29f115['diffData'][_0x3bfc1c]['attachChange']&&!_0x29f115['diffData'][_0x3bfc1c]['attachChange']['isAttached'])continue;const _0xf7ba42=this['_removeRevisionMarkers'](JSON['parse'](_0x29f115['diffData'][_0x3bfc1c]['insertions'])),_0x2f51a4=this['editor']['editing']['view']['document'],_0x6af3e7=new _0x1dcf39(_0x2f51a4,_0xf7ba42['map'](_0x3bddee=>C(_0x3bddee,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x13ab87[_0x3bfc1c]=this['editor']['data']['processor']['toData'](_0x6af3e7),this['editor']['data']['processor']['useFillerType']('default');}return _0x13ab87;}async['getRevisionRootsAttributes'](_0x498f9e){await this['_loadRevisionData'](_0x498f9e);const _0x50bd7c={};for(const _0x3d8688 in _0x498f9e['diffData'])_0x498f9e['diffData'][_0x3d8688]['attachChange']&&!_0x498f9e['diffData'][_0x3d8688]['attachChange']['isAttached']||(_0x50bd7c[_0x3d8688]=_0x498f9e['diffData'][_0x3d8688]['attributesAfter']||{});return _0x50bd7c;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xbcbbd3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4b85ff=0x0;_0x4b85ff<_0xbcbbd3['length'];_0x4b85ff++){const _0x1c384e=_0xbcbbd3[_0x4b85ff];let _0xb014f8=!0x1;for(const _0x5859b0 of Object['keys'](_0x1c384e))void 0x0===_0x1c384e[_0x5859b0]?delete _0x1c384e[_0x5859b0]:'id'!==_0x5859b0&&(_0xb014f8=!0x0);_0xb014f8||(_0xbcbbd3[_0x4b85ff]=null);}if(_0xbcbbd3=_0xbcbbd3['filter'](_0x1f1c94=>null!==_0x1f1c94),!_0xbcbbd3['length'])return;for(let _0x3b464a=0x0;_0x3b464a<_0xbcbbd3['length'];_0x3b464a++){const _0x1f7520=_0xbcbbd3[_0x3b464a];void 0x0!==_0x1f7520['fromVersion']&&void 0x0===_0x1f7520['toVersion']&&(_0x1f7520['toVersion']=this['repository']['getRevision'](_0x1f7520['id'])['toVersion']),void 0x0!==_0x1f7520['toVersion']&&void 0x0===_0x1f7520['fromVersion']&&(_0x1f7520['fromVersion']=this['repository']['getRevision'](_0x1f7520['id'])['fromVersion']);}const _0x7bbd43=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xbcbbd3,_0x7bbd43)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3556c1=>{if(_0x3556c1){for(const _0x102161 of _0x3556c1)this['setRevisionData']({'id':_0x102161['id'],'createdAt':_0x102161['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x505825,_0x4680df){let _0x14418b=this['editor']['config']['get']('initialData'),_0x52a6e3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x14418b){_0x14418b={};for(const _0x29711d of this['editor']['model']['document']['getRootNames']())_0x14418b[_0x29711d]='';}if('string'==typeof _0x14418b&&(_0x14418b={'main':_0x14418b}),void 0x0===_0x52a6e3){_0x52a6e3={};for(const _0x5027e4 of this['editor']['model']['document']['getRootNames']())_0x52a6e3[_0x5027e4]={};}let _0x640a42=!0x1;const _0x2df2b7=Object['keys'](_0x14418b),_0x294974=Object['keys'](_0x505825);for(const _0x53552f of _0x2df2b7){if(_0x14418b[_0x53552f]!==_0x505825[_0x53552f]&&''!==_0x14418b[_0x53552f]['trim']()){_0x640a42=!0x0;break;}if(!_0x598b8a(_0x52a6e3[_0x53552f],_0x4680df[_0x53552f])&&Object['keys'](_0x52a6e3[_0x53552f])['length']>0x0){_0x640a42=!0x0;break;}}_0x640a42||(_0x640a42=_0x294974['some'](_0x1208c1=>!this['editor']['model']['document']['getRoot'](_0x1208c1))),_0x640a42&&_0x38e6be('editor-initial-data-replaced-with-revision-data',{'editorData':_0x14418b,'editorRootsAttributes':_0x52a6e3,'revisionData':_0x505825,'revisionRootsAttributes':_0x4680df}),this['editor']['config']['set']('initialData',_0x505825),this['editor']['config']['set']('rootsAttributes',_0x4680df);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x292cae=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x292cae['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x23f896){const _0x27602f=this['repository']['getRevisions']();_0x27602f['reverse']();let _0x593d76=0x0;for(;_0x593d76<_0x27602f['length'];){const _0x5098f1=_0x27602f[_0x593d76];if(_0x5098f1===this['currentRevision']){_0x593d76++;continue;}if(_0x5098f1['id']===this['_initialRevisionId'])break;const _0x5ae966=_0x23f896['toVersion']-_0x5098f1['toVersion']||_0x23f896['fromVersion']-_0x5098f1['fromVersion'];if(_0x5ae966>0x0)break;if(_0x5ae966<0x0)_0x593d76++;else{if(!_0x23f896['creator']&&_0x5098f1['creator'])break;if(_0x5098f1['creator']||!_0x23f896['creator']){if(_0x23f896['createdAt']>_0x5098f1['createdAt'])break;_0x593d76++;}else _0x593d76++;}}return _0x593d76;}['setRevisionData'](_0x4a6918){const _0x18e392=this['repository']['getRevision'](_0x4a6918['id']);if(_0x4a6918['createdAt']&&(_0x4a6918['createdAt']=new Date(_0x4a6918['createdAt'])),_0x4a6918['authorsIds']){const _0x25a6b6=this['editor']['plugins']['get']('Users');_0x4a6918['authors']=_0x4a6918['authorsIds']['map'](_0xd93359=>_0x25a6b6['getUser'](_0xd93359));}_0x18e392['_update'](_0x4a6918,!0x0);}['buildRevisionData']({revision:_0x22a4a1=null,from:_0x38b4cc=null,to:_0x2a574a=null}){_0x38b4cc=null!==_0x38b4cc?_0x38b4cc:_0x22a4a1['fromVersion'],_0x2a574a=null!==_0x2a574a?_0x2a574a:_0x22a4a1['toVersion'];const _0x4802a9=this['_revisionDataBuilder']['getData'](_0x38b4cc,_0x2a574a),_0x3b2d38={'diffData':_0x4802a9['diffData'],'authorsIds':_0x4802a9['authorsIds'],'fromVersion':_0x38b4cc,'toVersion':_0x2a574a};if(!_0x22a4a1||_0x2a574a!==_0x22a4a1['toVersion']){const _0x2d8a87=_0x2a574a-0x1,_0x352c87=this['_source']['history']['getOperation'](_0x2d8a87);_0x3b2d38['createdAt']=_0x352c87&&_0x352c87['createdAt']||new Date();}if(this['_loadedStateData']&&_0x38b4cc===this['_loadedStateData']['fromVersion']){for(const _0x48551b of this['_loadedStateData']['authors'])_0x3b2d38['authorsIds']['includes'](_0x48551b['id'])||_0x3b2d38['authorsIds']['push'](_0x48551b['id']);}return _0x3b2d38;}['_loadRevisionData'](_0x21006f){if(!_0x21006f||_0x21006f['diffData'])return Promise['resolve']();{const _0x1a0be8=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1a0be8,'revisionId':_0x21006f['id']})['then'](_0x3caa73=>{_0x21006f['diffData']=_0x3caa73['diffData'];});}}['_bufferUpdate'](_0x487924,_0x28f5a7,_0x2a2eeb){if(this['_bufferedUpdates']['has'](_0x487924)){const _0x3d0738=this['_bufferedUpdates']['get'](_0x487924);_0x28f5a7=_0x2a2eeb?{..._0x3d0738,..._0x28f5a7}:{..._0x28f5a7,..._0x3d0738};}this['_bufferedUpdates']['set'](_0x487924,_0x28f5a7);}['_getFromVersion'](_0x334021){const _0x487931=this['repository']['getRevisions']();_0x487931['reverse'](),_0x487931['shift']();const _0x52da12=_0x487931['find'](_0x326f99=>_0x326f99['toVersion']<=_0x334021)['toVersion'];return _0x52da12<this['_startingVersion']?this['_startingVersion']:_0x52da12;}['_createInitialRevision'](_0x365324){const _0x248645=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x248645)this['_initialRevisionId']=_0x248645['id'];else{const _0x289be4=!this['editor']['model']['document']['roots']['find'](_0x2fda5e=>this['editor']['model']['hasContent'](_0x2fda5e)),_0x1f7b7b=this['editor']['plugins']['get']('Users')['me']['id'],_0x3276b2=m(this['editor']['locale'],_0x289be4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x365324,'to':_0x365324,'id':this['_initialRevisionId'],'name':_0x3276b2,'creatorId':_0x1f7b7b});}}['_createCurrentRevision'](_0x347e40){const _0x4fecd8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4fecd8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x347e40,'to':_0x347e40,'id':_0x4fecd8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4da59b,from:_0x2c770c,to:_0x83bff,creatorId:_0x32090a,id:_0x18d680}){const _0x41d74f=this['buildRevisionData']({'from':_0x2c770c,'to':_0x83bff});_0x41d74f['name']=_0x4da59b,_0x41d74f['creatorId']=_0x32090a,_0x41d74f['id']=_0x18d680;const _0x641969=this['addRevisionData'](_0x41d74f);return this['adapter']&&this['_bufferUpdate'](_0x41d74f['id'],_0x41d74f,!0x0),_0x641969;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1482ee){return(_0x1482ee=_0x1482ee['filter'](_0x3873dc=>!_0x3873dc['name']||'revision-start'!==_0x3873dc['name']&&'revision-end'!==_0x3873dc['name']))['forEach'](_0xf03385=>{'string'!=typeof _0xf03385&&(_0xf03385['children']=this['_removeRevisionMarkers'](_0xf03385['children']),_0xf03385['attributes']=_0xf03385['attributes']['filter'](_0x16cd72=>!_0x16cd72[0x0]['startsWith']('data-revision-')));}),_0x1482ee;}}function C(_0x185925,_0x556618){const _0x592aaa=_0x556618['editing']['view']['document'];if('string'==typeof _0x185925)return new _0x505ed7(_0x592aaa,_0x185925);{const _0x170a13=_0x185925['children']['map'](_0x5f540c=>C(_0x5f540c,_0x556618));return new(P[_0x185925['type']]||_0x44f4dd)(_0x592aaa,_0x185925['name'],_0x185925['attributes'],_0x170a13);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x168380){this['editor']=_0x168380,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'](_0x4195eb){this['source']=_0x4195eb;const _0x4837ce=new Map(),_0x1cb3e3=new Map(),_0x320379=this['editor']['model']['document']['roots']['map'](_0x362378=>_0x362378['rootName']);for(const _0x58b5cb of _0x320379){const _0x344f5f=this['editor']['model']['document']['getRoot'](_0x58b5cb),_0x4bac58=T(_0x344f5f);_0x4837ce['set'](_0x58b5cb,_0x4bac58),_0x1cb3e3['set'](_0x58b5cb,Object['fromEntries'](_0x344f5f['getAttributes']()));}const _0x20da26=Array['from'](this['editor']['model']['markers'])['map'](_0x417a7f=>[_0x417a7f['name'],_0x417a7f['getRange']()]),_0x2ab4de=this['source']['version'];this['_saveMetaData'](_0x2ab4de,_0x4837ce,_0x20da26,_0x1cb3e3),this['_startingRevisionId']=this['_revisionId'];const _0x11740e=new Map(),_0x4e3507=new Map();for(const _0x2a4491 of _0x320379){const _0x2cce30=F(_0x2a4491);_0x11740e['set'](_0x2a4491,_0x2cce30),_0x4e3507['set'](_0x2a4491,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x11740e,[],_0x4e3507);}['getData'](_0xae544e,_0x3abf3c){if(this['_lastFrom']===_0xae544e&&this['_lastTo']<=_0x3abf3c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3abf3c,!0x0);else{if(!this['_savedMetaData']['has'](_0xae544e)){const _0x2cf0ae=this['_getPreviousFrom'](_0xae544e);this['_calculateMetaData'](_0x2cf0ae,_0xae544e,!0x1);}this['_calculateMetaData'](_0xae544e,_0x3abf3c,!0x0);}return this['_lastFrom']=_0xae544e,this['_lastTo']=_0x3abf3c,this['_getState']();}['loadState'](_0x16c287){this['_reset'](),this['_lastFrom']=_0x16c287['fromVersion'],this['_lastTo']=_0x16c287['toVersion'];for(const _0x1692c5 in _0x16c287['diffData']){const _0x1662d7=_0x16c287['diffData'][_0x1692c5]['attachChange'],_0x1745fc=_0x456867(_0x16c287['diffData'][_0x1692c5]['attributesBefore'])||{},_0x4d2d28=this['_makeModelFromViewString'](_0x16c287['diffData'][_0x1692c5]['deletions']);_0x4d2d28['rootName']=_0x1692c5,_0x4d2d28['_isAttached']=!_0x1662d7||!_0x1662d7['isAttached'],_0x4d2d28['isAttached']=()=>_0x4d2d28['_isAttached'],this['_baseRoots']['set'](_0x1692c5,_0x4d2d28),this['_baseRootsAttributes']['set'](_0x1692c5,_0x1745fc),_0x1662d7&&this['_touchedRoots']['set'](_0x1692c5,_0x1662d7);const _0x5315c4=this['_makeIdsRoot'](_0x4d2d28);this['_baseIdsRoots']['set'](_0x1692c5,_0x5315c4);for(const [_0x333a38,_0x50ba69]of _0x4d2d28['markers']){if(!_0x333a38['startsWith']('revision:'))continue;const _0x32e5c8=_0x333a38['split'](':')[0x2];for(const _0x2ccb71 of _0x50ba69['getWalker']({'singleCharacters':!0x0})){const _0x2a6903=this['_getVidAttributeName'](_0x2ccb71),_0x5be682='elementEnd'==_0x2ccb71['type']?_0x2ccb71['previousPosition']['path']['slice'](0x0,-0x1):_0x2ccb71['previousPosition']['path'],_0x4ed5eb=_0x5315c4['getNodeByPath'](_0x5be682)['getAttribute'](_0x2a6903);this['_touched']['set'](_0x4ed5eb,{'userId':_0x32e5c8});}}}this['_startingRevisionId']=this['_revisionId'];const _0xd8eefb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xe4661e=>!this['_touched']['has'](_0xe4661e));let _0xa3e6c0=0x0;const _0x351c29=new Map();for(const _0x49ce3a in _0x16c287['diffData']){const _0x2d2199=_0x16c287['diffData'][_0x49ce3a]['attachChange'],_0x368431=_0x456867(_0x16c287['diffData'][_0x49ce3a]['attributesAfter'])||{},_0x427418=this['_makeModelFromViewString'](_0x16c287['diffData'][_0x49ce3a]['insertions']);_0x427418['rootName']=_0x49ce3a,_0x427418['_isAttached']=!_0x2d2199||_0x2d2199['isAttached'],_0x427418['isAttached']=()=>_0x427418['_isAttached'],this['_diffRoots']['set'](_0x49ce3a,_0x427418),this['_diffRootsAttributes']['set'](_0x49ce3a,_0x368431);const _0x41e006=this['_makeIdsRoot'](_0x427418,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x49ce3a,_0x41e006),_0x351c29['set'](_0x49ce3a,_0x427418['isAttached']()?_0x368431:{});for(const [_0x577629,_0x2dac06]of _0x427418['markers']){if(!_0x577629['startsWith']('revision:'))continue;const _0x4c18d4=_0x577629['split'](':')[0x2];for(const _0x50a82c of _0x2dac06['getWalker']({'singleCharacters':!0x0})){const _0x2691b2=this['_getVidAttributeName'](_0x50a82c),_0x4c8b5c=this['_revisionId']++,_0xe7f63c='elementEnd'==_0x50a82c['type']?_0x50a82c['previousPosition']['path']['slice'](0x0,-0x1):_0x50a82c['previousPosition']['path'];_0x41e006['getNodeByPath'](_0xe7f63c)['_setAttribute'](_0x2691b2,_0x4c8b5c),this['_touched']['set'](_0x4c8b5c,{'userId':_0x4c18d4});}}for(const _0x282118 of this['editor']['model']['createRangeIn'](_0x427418)['getWalker']({'singleCharacters':!0x0})){const _0xa18dd3=this['_getVidAttributeName'](_0x282118),_0x2bbfdb='elementEnd'==_0x282118['type']?_0x282118['previousPosition']['path']['slice'](0x0,-0x1):_0x282118['previousPosition']['path'],_0x393381=_0x41e006['getNodeByPath'](_0x2bbfdb);_0x393381['getAttribute'](_0xa18dd3)>0x0||_0x393381['_setAttribute'](_0xa18dd3,_0xd8eefb[_0xa3e6c0++]);}for(const [_0x272323,_0xd3a7f9]of _0x427418['markers'])_0x272323['startsWith']('revision:')||this['_markers']['set'](_0x272323,_0xd3a7f9);}const _0x4d3f54=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4d3f54),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4d3f54,0x1));const _0x5a22f3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5a22f3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5a22f3,0x1));const _0x1849ba=Array['from'](this['_diffRoots'])['map'](([_0x1c60fb,_0x229f6c])=>[_0x1c60fb,T(_0x229f6c)]);this['_saveMetaData'](this['_lastTo'],_0x1849ba,this['_markers'],_0x351c29);}['_makeModelFromViewString'](_0x3ede85){const _0x3b3ce3=JSON['parse'](_0x3ede85),_0xc08a6d=this['editor']['editing']['view']['document'],_0x1fd8c6=new _0x1dcf39(_0xc08a6d,_0x3b3ce3['map'](_0x5a3156=>C(_0x5a3156,this['editor'])));return this['editor']['data']['toModel'](_0x1fd8c6);}['_saveMetaData'](_0x3cf45b,_0x193b99,_0x3d9c05,_0x46a444){const _0x354d0e=new Map(_0x193b99),_0x368206=new Map(_0x456867(_0x46a444)),_0x53af26=new Map();for(const [_0x4e418f,_0xc65454]of _0x3d9c05)_0x53af26['set'](_0x4e418f,{'start':_0xc65454['start']['clone'](),'end':_0xc65454['end']['clone'](),'rootName':_0xc65454['root']['rootName']});this['_savedMetaData']['set'](_0x3cf45b,{'roots':_0x354d0e,'markers':_0x53af26,'rootsAttributes':_0x368206});}['_removeMetaData'](_0x172e67){this['_savedMetaData']['delete'](_0x172e67);}['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'](_0x2fa87a,_0x3a7ef8=null){let _0x47fe12=null;_0x2fa87a['is']('documentFragment')||(_0x47fe12=new ft(_0x2fa87a['name'],{'vid_start':null===_0x3a7ef8?this['_revisionId']++:_0x3a7ef8++}));const _0x2b471e=[];for(const _0x2e6aa3 of _0x2fa87a['getChildren']())if(_0x2e6aa3['is']('element')){_0x2b471e['push'](this['_makeIdsRoot'](_0x2e6aa3,_0x3a7ef8));const _0x58fcd1=_0x2b471e[_0x2b471e['length']-0x1];null!==_0x3a7ef8&&(_0x3a7ef8=_0x58fcd1['is']('element','$text')?_0x58fcd1['getAttribute']('vid')+0x1:_0x58fcd1['getAttribute']('vid_end')+0x1);}else{for(let _0x2bc435=0x0;_0x2bc435<_0x2e6aa3['offsetSize'];_0x2bc435++)_0x2b471e['push'](new ft('$text',{'vid':null===_0x3a7ef8?this['_revisionId']++:_0x3a7ef8++}));}if(_0x2fa87a['is']('documentFragment')){const _0x541790=F(_0x2fa87a['rootName']);return _0x541790['_insertChild'](0x0,_0x2b471e),_0x541790;}return _0x47fe12['_setAttribute']('vid_end',null===_0x3a7ef8?this['_revisionId']++:_0x3a7ef8++),_0x47fe12['_insertChild'](0x0,_0x2b471e),_0x47fe12;}['_calculateMetaData'](_0x3433c3,_0x529985,_0xc8f5c8){this['_reset']();const {roots:_0x1ea992,markers:_0x2b2674,rootsAttributes:_0x51f8d9}=this['_savedMetaData']['get'](_0x3433c3);this['_baseRoots']=new Map(_0x1ea992),this['_baseRootsAttributes']=new Map(_0x456867(_0x51f8d9));for(const [_0x4d5598,_0x577fa0]of this['_baseRoots'])if('$graveyard'!==_0x4d5598&&(this['_diffRoots']['set'](_0x4d5598,T(_0x577fa0)),this['_diffRootsAttributes']=new Map(_0x456867(_0x51f8d9)),_0xc8f5c8)){const _0x5e1d06=this['_revisionId'];this['_idsRoots']['set'](_0x4d5598,this['_makeIdsRoot'](_0x577fa0)),this['_baseIdsRoots']['set'](_0x4d5598,this['_makeIdsRoot'](_0x577fa0,_0x5e1d06));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xc8f5c8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x459195,_0x2c91d3]of _0x2b2674){const _0x3f0ee9=this['_baseRoots']['get'](_0x2c91d3['rootName']),_0x35ca81=this['_diffRoots']['get'](_0x2c91d3['rootName']),_0x431ff9=new vt(this['_fixPosition'](_0x2c91d3['start'],_0x3f0ee9),this['_fixPosition'](_0x2c91d3['end'],_0x3f0ee9)),_0x290e8b=this['_fixRange'](_0x431ff9,_0x35ca81);_0x3f0ee9['markers']['set'](_0x459195,_0x431ff9),this['_markers']['set'](_0x459195,_0x290e8b);}this['_applyOperations'](_0x3433c3,_0x529985,_0xc8f5c8);}['_applyOperations'](_0xb6793,_0x1cf23b,_0x223a47){for(const _0x145500 of this['source']['getOperations'](_0xb6793,_0x1cf23b))this['_handleOperation'](_0x145500,_0x223a47);for(const _0x5da927 of this['_diffRoots']['values']())_0x5da927['markers']['clear']();for(const [_0x2525cd,_0x5ce18d]of this['_markers']){this['_diffRoots']['get'](_0x5ce18d['root']['rootName'])['markers']['set'](_0x2525cd,_0x5ce18d['clone']());}const _0x33e1af=new Map(),_0x283c6c=new Map();for(const [_0x188169,_0x4946ae]of this['_diffRoots'])_0x33e1af['set'](_0x188169,T(_0x4946ae)),_0x283c6c['set'](_0x188169,this['_diffRootsAttributes']['get'](_0x188169));this['_saveMetaData'](_0x1cf23b,_0x33e1af,this['_markers'],_0x283c6c);}['_getPreviousFrom'](_0x214db9){const _0x4cd9a0=Array['from'](this['_savedMetaData']['keys']());_0x4cd9a0['sort']((_0x4c0cd6,_0x9962c7)=>_0x4c0cd6-_0x9962c7),_0x4cd9a0['reverse']();for(const _0x4f7cc3 of _0x4cd9a0)if(_0x4f7cc3<_0x214db9)return _0x4f7cc3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5d93a1,_0x34b58e){const _0x121e17=Array['from'](_0x34b58e['markers'])['map'](([_0x2706ab,_0x3e434c])=>[_0x2706ab,this['_fixRange'](_0x3e434c,_0x5d93a1)]);_0x5d93a1['markers']=new Map(_0x121e17);}['_transformMarkers'](_0x3332c3){for(const _0x44299b of this['_markers']['values']()){const _0xc960bd=_0x44299b['getTransformedByOperation'](_0x3332c3),_0x535041=vt['_createFromRanges'](_0xc960bd);_0x44299b['start']=_0x535041['start'],_0x44299b['end']=_0x535041['end'];}}['_handleOperation'](_0x5c0f1e,_0x4c50d4){if('addRoot'!=_0x5c0f1e['type']&&'detachRoot'!=_0x5c0f1e['type']){if('insert'==_0x5c0f1e['type']){const _0x2136a8=_0x5c0f1e['position']['root']['rootName'];this['_diffRoots']['has'](_0x2136a8)||(this['_diffRoots']['set'](_0x2136a8,F(_0x2136a8,!0x0)),this['_diffRootsAttributes']['set'](_0x2136a8,{}),_0x4c50d4&&this['_idsRoots']['set'](_0x2136a8,F(_0x2136a8,!0x0)));}else{if('addRootAttribute'==_0x5c0f1e['type']||'removeRootAttribute'==_0x5c0f1e['type']||'changeRootAttribute'==_0x5c0f1e['type'])return void this['_handleRootAttributeOperation'](_0x5c0f1e);'marker'==_0x5c0f1e['type']&&this['_handleMarkerOperation'](_0x5c0f1e);}if('marker'!==_0x5c0f1e['type']){const _0x5da99c=this['_cloneOperation'](_0x5c0f1e,this['_diffRoots']);_0x5da99c['_execute'](),this['_transformMarkers'](_0x5da99c);}if(_0x4c50d4)switch(_0x5c0f1e['type']){case'insert':this['_handleInsertOperation'](_0x5c0f1e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5c0f1e);break;case'merge':this['_handleMergeOperation'](_0x5c0f1e);break;case'split':this['_handleSplitOperation'](_0x5c0f1e);}}else this['_handleRootOperation'](_0x5c0f1e,_0x4c50d4);}['_cloneOperation'](_0x5d1d62,_0x4d41e7){const _0x52a8a7=_0x5d1d62['clone']();return _0x52a8a7['_authorId']=_0x5d1d62['_authorId'],this['_fixOperation'](_0x52a8a7,_0x4d41e7),_0x52a8a7;}['_getBaseVids'](_0x22df85){return _0x22df85['map'](_0x5e0cfd=>{const _0x2b6926=this['_getVidAttributeName'](_0x5e0cfd);return Number(_0x5e0cfd['item']['getAttribute'](_0x2b6926));});}['_generateTape'](_0x4bc823,_0x400ef9){if(_0x4bc823['is']('element','$text'))_0x400ef9['push']({'item':_0x4bc823,'type':'text'});else{_0x4bc823['is']('element')&&_0x400ef9['push']({'item':_0x4bc823,'type':'elementStart'});for(const _0x4a8f12 of _0x4bc823['getChildren']())this['_generateTape'](_0x4a8f12,_0x400ef9);_0x4bc823['is']('element')&&_0x400ef9['push']({'item':_0x4bc823,'type':'elementEnd'});}return _0x400ef9;}['_getState'](){const _0x50127c=new Map(this['_touched']),_0x24aa64=new Map(_0x50127c),_0x5a76b7=new Map(),_0x173b29={'insertions':{},'deletions':{}},_0x3fab09={'insertions':{},'deletions':{}},_0x36da21=new Map(),_0xf23d9=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xf23d9['delete']('$graveyard');for(const _0x469458 of _0xf23d9){const _0x4ddc6f=this['_diffRoots']['get'](_0x469458)||F(_0x469458,!0x1),_0x22a7d7=this['_baseRoots']['get'](_0x469458)||F(_0x469458,!0x1);_0x4ddc6f['isAttached']()||_0x22a7d7['isAttached']()?(_0x173b29['insertions'][_0x469458]=T(_0x4ddc6f),_0x173b29['deletions'][_0x469458]=T(_0x22a7d7),this['_copyMarkers'](_0x173b29['deletions'][_0x469458],_0x22a7d7),this['_copyMarkers'](_0x173b29['insertions'][_0x469458],_0x4ddc6f),_0x3fab09['insertions'][_0x469458]=this['_generateTape'](this['_idsRoots']['get'](_0x469458),[]),_0x3fab09['deletions'][_0x469458]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x469458)||F(_0x469458,!0x1),[])):_0xf23d9['delete'](_0x469458);}for(const _0x3cf1d of _0xf23d9){const _0x3497a4=_0x3fab09['insertions'][_0x3cf1d];for(const _0x56d788 of _0x3497a4){const _0x16fef1=this['_getVidAttributeName'](_0x56d788),_0x47d243=_0x56d788['item']['getAttribute'](_0x16fef1);_0x24aa64['delete'](_0x47d243),_0x47d243>=this['_startingRevisionId']&&_0x5a76b7['set'](_0x47d243,_0x50127c['get'](_0x47d243));}}for(const _0xa64513 of _0xf23d9){const _0x35cca4=_0x3fab09['insertions'][_0xa64513],_0x3cb62f=this['_getBaseVids'](_0x3fab09['deletions'][_0xa64513]);let _0x1b49c8=0x0;for(const _0x1cbe8b of _0x35cca4){const _0x20a4bb=this['_getVidAttributeName'](_0x1cbe8b),_0x42122c=_0x1cbe8b['item']['getAttribute'](_0x20a4bb);if(!_0x5a76b7['has'](_0x42122c)&&!_0x36da21['has'](_0x42122c)){if(_0x24aa64['has'](_0x42122c))_0x1b49c8++;else{if(_0x42122c!=_0x3cb62f[_0x1b49c8]){const _0x38c686=_0x50127c['get'](_0x42122c)||_0x50127c['get'](_0x3cb62f[_0x1b49c8]);for(;_0x42122c!=_0x3cb62f[_0x1b49c8];)_0x24aa64['has'](_0x3cb62f[_0x1b49c8])||(_0x36da21['set'](_0x3cb62f[_0x1b49c8],_0x38c686),_0x50127c['set'](_0x3cb62f[_0x1b49c8],_0x38c686)),_0x1b49c8++;}_0x1b49c8++;}}}}for(const _0x28c879 of _0xf23d9){const _0x5f31c7=_0x3fab09['insertions'][_0x28c879];for(const _0x16a063 of _0x5f31c7){const _0x48d6ad=this['_getVidAttributeName'](_0x16a063),_0x481f82=_0x16a063['item']['getAttribute'](_0x48d6ad);if(_0x36da21['has'](_0x481f82)){const _0x488c9c=_0x36da21['get'](_0x481f82);_0x24aa64['has'](_0x481f82)||_0x24aa64['set'](_0x481f82,{..._0x488c9c}),_0x5a76b7['set'](_0x481f82,{..._0x488c9c});}}}for(const _0x23d2f6 of _0x24aa64['keys']())_0x23d2f6>=this['_startingRevisionId']&&_0x24aa64['delete'](_0x23d2f6);const _0x454758=new Map();for(const _0x2bb860 of _0xf23d9){let _0x484903=_0x3fab09['insertions'][_0x2bb860];for(const _0x24fa44 of _0x484903)if(_0x24fa44['item']['is']('element','tableCell')){const _0x4acfdc=this['_getVidAttributeName'](_0x24fa44),_0x4d9ab2=_0x24fa44['item']['getAttribute'](_0x4acfdc);if(_0x5a76b7['has'](_0x4d9ab2)){const _0x546997=_0x24fa44['item']['parent']['parent']['getAttribute']('vid_start'),_0x141bd9=_0x454758['get'](_0x546997)||new Set();_0x141bd9['add'](_0x5a76b7['get'](_0x4d9ab2)['userId']),_0x454758['set'](_0x546997,_0x141bd9);}}_0x484903=_0x3fab09['deletions'][_0x2bb860];for(const _0x809e28 of _0x484903)if(_0x809e28['item']['is']('element','tableCell')){const _0x120f56=this['_getVidAttributeName'](_0x809e28),_0x54b31f=_0x809e28['item']['getAttribute'](_0x120f56);if(_0x24aa64['has'](_0x54b31f)){const _0x1c6c05=_0x809e28['item']['parent']['parent']['getAttribute']('vid_start'),_0x2e4574=_0x454758['get'](_0x1c6c05)||new Set();_0x2e4574['add'](_0x24aa64['get'](_0x54b31f)['userId']),_0x454758['set'](_0x1c6c05,_0x2e4574);}}for(const _0x124d19 of _0x454758['keys']())(_0x5a76b7['has'](_0x124d19)||_0x24aa64['has'](_0x124d19))&&_0x454758['delete'](_0x124d19);}for(const _0x4d55f4 of _0xf23d9){const _0x4764ec=_0x3fab09['insertions'][_0x4d55f4];let _0xf5d0d4=null,_0x5c0d2f=null;for(const _0x240f76 of _0x4764ec){const _0xf00fee=this['_getVidAttributeName'](_0x240f76),_0x560b74=_0x240f76['item']['getAttribute'](_0xf00fee),_0x31186a=_0x454758['get'](_0x560b74);_0x31186a&&'elementStart'==_0x240f76['type']&&(_0xf5d0d4=Array['from'](_0x31186a)[0x0],_0x5c0d2f=_0x240f76['item']['getAttribute']('vid_end')),_0xf5d0d4&&(_0x24aa64['set'](_0x560b74,{'userId':_0xf5d0d4}),_0x5a76b7['set'](_0x560b74,{'userId':_0xf5d0d4})),_0x560b74==_0x5c0d2f&&(_0xf5d0d4=null,_0x5c0d2f=null);}}const _0x13c3f5={},_0x4a76ad=new Set();for(const _0x2342bf of _0xf23d9){const _0xb8117=_0x173b29['deletions'][_0x2342bf],_0x23935c=_0x173b29['insertions'][_0x2342bf];for(const {userId:_0x214f64}of this['_touchedMarkers']['values']())null!==_0x214f64&&_0x4a76ad['add'](_0x214f64);for(const {userId:_0x420b76}of this['_touchedRoots']['values']())null!==_0x420b76&&_0x4a76ad['add'](_0x420b76);this['_markChanges'](_0x23935c,_0x3fab09['insertions'][_0x2342bf],_0x5a76b7,'insertion',_0x4a76ad),this['_markChanges'](_0xb8117,_0x3fab09['deletions'][_0x2342bf],_0x24aa64,'deletion',_0x4a76ad),_0x13c3f5[_0x2342bf]={'insertions':this['_prepareViewToSave'](_0x23935c),'deletions':this['_prepareViewToSave'](_0xb8117),'attachChange':this['_touchedRoots']['get'](_0x2342bf)||null,'attributesBefore':_0x456867(this['_baseRootsAttributes']['get'](_0x2342bf))||{},'attributesAfter':_0x456867(this['_diffRootsAttributes']['get'](_0x2342bf))};}return{'diffData':_0x13c3f5,'authorsIds':Array['from'](_0x4a76ad)};}['_processRootBeforeSave'](_0x341685){for(const [,_0x233b90]of _0x341685['markers']){const _0x26d281=_0x233b90['start']['getAncestors']()['filter'](_0x4c10ad=>'tableCell'==_0x4c10ad['name']);for(const _0x507c00 of _0x26d281)0x1==_0x507c00['childCount']&&_0x507c00['getChild'](0x0)['is']('element','paragraph')&&_0x507c00['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x27cdff){this['_processRootBeforeSave'](_0x27cdff);const _0x114c25=this['editor']['data']['toView'](_0x27cdff,{}),_0x3e6a90=Array['from'](_0x114c25['getChildren']())['map'](_0x780618=>this['_getViewJson'](_0x780618));return JSON['stringify'](_0x3e6a90);}['_getViewJson'](_0x5e5510){if(_0x5e5510['is']('$text'))return _0x5e5510['data'];{const _0x25c2f7=_0x5e5510;return{'type':Object['keys'](P)['find'](_0x1b257d=>_0x5e5510 instanceof P[_0x1b257d]),'name':_0x25c2f7['name'],'attributes':Array['from'](_0x25c2f7['getAttributes']()),'children':Array['from'](_0x25c2f7['getChildren']())['map'](_0x43d8d7=>this['_getViewJson'](_0x43d8d7))};}}['_markChanges'](_0x1a5e2a,_0x452c81,_0x3a0107,_0x278500,_0x5f34c5){let _0x33987b=null,_0x299c92=null,_0x32fdd0=0x0;const _0x5ddadc=this['editor']['model'];for(let _0x4986e5=0x0;_0x4986e5<_0x452c81['length'];_0x4986e5++){const _0x20c39b=this['_getVidAttributeName'](_0x452c81[_0x4986e5]),_0x473d2b=_0x452c81[_0x4986e5]['item']['getAttribute'](_0x20c39b),_0xbe4873=_0x3a0107['get'](_0x473d2b),_0x19bc02=_0x4986e5==_0x452c81['length']-0x1;(!_0x33987b&&_0xbe4873&&(_0x33987b=_0xbe4873,_0x299c92=_0x452c81[_0x4986e5]),_0x33987b&&(!_0xbe4873||_0xbe4873['userId']!=_0x33987b['userId']))&&(_0x5a93f1(_0xbe4873,B(_0x299c92,_0x1a5e2a,_0x5ddadc),B(_0x452c81[_0x4986e5],_0x1a5e2a,_0x5ddadc)),_0x33987b=_0xbe4873||null,_0x299c92=_0xbe4873?_0x452c81[_0x4986e5]:null),_0x33987b&&_0x19bc02&&_0x5a93f1(_0xbe4873,B(_0x299c92,_0x1a5e2a,_0x5ddadc),J(_0x452c81[_0x4986e5],_0x1a5e2a,_0x5ddadc));}function _0x5a93f1(_0x209a94,_0x4d33c5,_0x129173){const _0x43ca28=_0x33987b['userId'],_0x271470='revision:'+_0x278500+':'+_0x43ca28+':'+_0x32fdd0++,_0x3406c2=_0x5ddadc['createRange'](_0x4d33c5,_0x129173);_0x1a5e2a['markers']['set'](_0x271470,_0x3406c2),null!==_0x43ca28&&_0x5f34c5['add'](_0x43ca28);}}['_getVidAttributeName'](_0x2bb701){switch(_0x2bb701['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x42d85d,_0x508184){_0x42d85d['baseVersion']=null;for(const _0x962a39 in _0x42d85d){const _0x13805f=_0x42d85d[_0x962a39];if(_0x13805f instanceof gt){const _0x58e6c1=_0x508184['get'](_0x13805f['root']['rootName']);_0x42d85d[_0x962a39]=this['_fixPosition'](_0x13805f,_0x58e6c1);}if(_0x13805f instanceof vt){const _0x25b9bf=_0x508184['get'](_0x13805f['root']['rootName']);_0x42d85d[_0x962a39]=this['_fixRange'](_0x13805f,_0x25b9bf);}'root'===_0x962a39&&(_0x42d85d['root']=_0x508184['get'](_0x42d85d['root']['rootName']));}}['_fixRange'](_0x5ba190,_0x359e84){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5ba190['start'],_0x359e84),this['_fixPosition'](_0x5ba190['end'],_0x359e84));}['_fixPosition'](_0x164b3d,_0x21f071){return this['editor']['model']['createPositionFromPath'](_0x21f071,_0x164b3d['path'],_0x164b3d['stickiness']);}['_handleInsertOperation'](_0x557ca7){const _0x53c46a=this['_idsRoots']['get'](_0x557ca7['position']['root']['rootName']),_0x2f56ab=this['_fixPosition'](_0x557ca7['position'],_0x53c46a),_0x46b2ae=null===_0x557ca7['_authorId']?null:_0x557ca7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3bc62d=_0x2f56ab['parent'],_0x348cf0=this['_revisionId'],_0x25fe2a=[];for(const _0x270a2a of _0x557ca7['nodes'])if(_0x270a2a['is']('element'))_0x25fe2a['push'](this['_makeIdsRoot'](_0x270a2a));else{for(let _0x31e8a6=0x0;_0x31e8a6<_0x270a2a['offsetSize'];_0x31e8a6++)_0x25fe2a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x1a490d=this['_revisionId'];for(let _0x4ea681=_0x348cf0;_0x4ea681<_0x1a490d;_0x4ea681++)this['_touched']['set'](_0x4ea681,{'userId':_0x46b2ae});_0x3bc62d['_insertChild'](_0x2f56ab['offset'],_0x25fe2a);}['_handleMoveOperation'](_0x563e42){(_0x563e42=this['_cloneOperation'](_0x563e42,this['_idsRoots']))['_execute']();const _0x4bf18c=null===_0x563e42['_authorId']?null:_0x563e42['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a24c2=_0x563e42['getMovedRangeStart'](),_0x3c287e=_0x4a24c2['parent'],_0x4ff8a9=_0x4a24c2['offset'];!function _0x4d1e03(_0x5b283a,_0xf9cfcf,_0x285469,_0x27f163){for(let _0x3e8222=_0x285469;_0x3e8222<_0x27f163;_0x3e8222++){const _0x24d6bb=_0xf9cfcf['getChild'](_0x3e8222);_0x24d6bb['is']('element','$text')?_0x5b283a['set'](_0x24d6bb['getAttribute']('vid'),{'userId':_0x4bf18c}):(_0x5b283a['set'](_0x24d6bb['getAttribute']('vid_start'),{'userId':_0x4bf18c}),_0x4d1e03(_0x5b283a,_0x24d6bb,0x0,_0x24d6bb['childCount']),_0x5b283a['set'](_0x24d6bb['getAttribute']('vid_end'),{'userId':_0x4bf18c}));}}(this['_touched'],_0x3c287e,_0x4ff8a9,_0x4ff8a9+_0x563e42['howMany']);}['_handleMergeOperation'](_0x2e9a0d){const _0x73444b=null===(_0x2e9a0d=this['_cloneOperation'](_0x2e9a0d,this['_idsRoots']))['_authorId']?null:_0x2e9a0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53b329=_0x2e9a0d['targetPosition']['parent'],_0x5d57f1=_0x2e9a0d['sourcePosition']['parent'],_0x3ac265=_0x53b329['getAttribute']('vid_end'),_0x38aeac=_0x5d57f1['getAttribute']('vid_start');_0x53b329['_setAttribute']('vid_end',_0x5d57f1['getAttribute']('vid_end')),_0x5d57f1['_setAttribute']('vid_end',_0x3ac265),this['_touched']['set'](_0x38aeac,{'userId':_0x73444b}),this['_touched']['set'](_0x3ac265,{'userId':_0x73444b}),_0x2e9a0d['_execute']();}['_handleSplitOperation'](_0x3e684b){const _0x110e71=null===(_0x3e684b=this['_cloneOperation'](_0x3e684b,this['_idsRoots']))['_authorId']?null:_0x3e684b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x519c36=_0x3e684b['graveyardPosition'],_0x21675c=_0x3e684b['splitPosition']['parent'];_0x3e684b['_execute']();const _0x5ee95e=_0x21675c['getAttribute']('vid_end'),_0x3e760a=_0x3e684b['insertionPosition']['nodeAfter'];if(_0x519c36){const _0x4d17d9=_0x3e760a['getAttribute']('vid_end'),_0x11c6bf=_0x21675c['getAttribute']('vid_end');_0x21675c['_setAttribute']('vid_end',_0x4d17d9),_0x3e760a['_setAttribute']('vid_end',_0x11c6bf),this['_touched']['set'](_0x21675c['getAttribute']('vid_end'),{'userId':_0x110e71}),this['_touched']['set'](_0x3e760a['getAttribute']('vid_start'),{'userId':_0x110e71});}else{const _0xb3604e=this['_revisionId']++,_0x274303=this['_revisionId']++;_0x21675c['_setAttribute']('vid_end',_0xb3604e),_0x3e760a['_setAttribute']('vid_start',_0x274303),_0x3e760a['_setAttribute']('vid_end',_0x5ee95e),this['_touched']['set'](_0xb3604e,{'userId':_0x110e71}),this['_touched']['set'](_0x274303,{'userId':_0x110e71});}}['_handleMarkerOperation'](_0x207c07){if(!_0x207c07['affectsData'])return;const _0x142398=(_0x207c07=this['_cloneOperation'](_0x207c07,this['_diffRoots']))['oldRange']?_0x207c07['oldRange']['root']:null,_0x3ffacf=_0x207c07['newRange']?_0x207c07['newRange']['root']:null;_0x142398&&this['_markers']['delete'](_0x207c07['name']),_0x3ffacf&&this['_markers']['set'](_0x207c07['name'],_0x207c07['newRange']['clone']());const _0x278428=null===_0x207c07['_authorId']?null:_0x207c07['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x340421=_0x207c07['name'];if(!this['_touchedMarkers']['has'](_0x340421))return void this['_touchedMarkers']['set'](_0x340421,{'range':_0x207c07['oldRange'],'userId':_0x278428});const _0x2533c3=this['_touchedMarkers']['get'](_0x340421),_0x29b815=_0x2533c3['range'],_0x15afd2=_0x207c07['newRange'];null==_0x29b815&&null==_0x15afd2||_0x29b815&&_0x15afd2&&_0x29b815['isEqual'](_0x15afd2)?this['_touchedMarkers']['delete'](_0x207c07['name']):_0x2533c3['userId']=_0x278428;}['_handleRootOperation'](_0x41c0de,_0x234233){this['_diffRoots']['has'](_0x41c0de['rootName'])?this['_diffRoots']['get'](_0x41c0de['rootName'])['_isAttached']=_0x41c0de['isAdd']:(this['_diffRoots']['set'](_0x41c0de['rootName'],F(_0x41c0de['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x41c0de['rootName'],{}),_0x234233&&this['_idsRoots']['set'](_0x41c0de['rootName'],F(_0x41c0de['rootName'],!0x0)));const _0x17938c=null===_0x41c0de['_authorId']?null:_0x41c0de['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a7ae3=this['_touchedRoots']['get'](_0x41c0de['rootName']);_0x3a7ae3&&_0x3a7ae3['userId']===_0x17938c?this['_touchedRoots']['delete'](_0x41c0de['rootName']):this['_touchedRoots']['set'](_0x41c0de['rootName'],{'userId':_0x17938c,'isAttached':_0x41c0de['isAdd']});}['_handleRootAttributeOperation'](_0x5b4333){const _0x169695=this['_diffRootsAttributes']['get'](_0x5b4333['root']['rootName']);null===_0x5b4333['newValue']?delete _0x169695[_0x5b4333['key']]:_0x169695[_0x5b4333['key']]=_0x5b4333['newValue'];}}function T(_0x424fe0){const _0x42fa61=F(_0x424fe0['rootName'],_0x424fe0['isAttached']());for(const _0x116f49 of _0x424fe0['getChildren']()){const _0x172e77=_0x116f49['_clone'](!0x0);_0x42fa61['_appendChild'](_0x172e77);}return _0x42fa61;}function F(_0x28b8cb,_0x5b68a0=!0x0){const _0x418abc=new mt();return _0x418abc['rootName']=_0x28b8cb,_0x418abc['_isAttached']=_0x5b68a0,_0x418abc['isAttached']=()=>_0x418abc['_isAttached'],_0x418abc;}function B(_0x58c84,_0xd72472,_0x2dbde1){const _0x1201e7='elementEnd'==_0x58c84['type']?_0x2dbde1['createPositionAt'](_0x58c84['item'],'end'):_0x2dbde1['createPositionBefore'](_0x58c84['item']);return _0x2dbde1['createPositionFromPath'](_0xd72472,_0x1201e7['path'],_0x1201e7['stickiness']);}function J(_0x40a337,_0x3520fd,_0x2d6e64){const _0x2d0144='elementStart'==_0x40a337['type']?_0x2d6e64['createPositionAt'](_0x40a337['item'],0x0):_0x2d6e64['createPositionAfter'](_0x40a337['item']);return _0x2d6e64['createPositionFromPath'](_0x3520fd,_0x2d0144['path'],_0x2d0144['stickiness']);}class ns extends _0x4a15cb{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5d630b,_0x223270){super(_0x5d630b),this['focusTracker']=new _0x2428f8(),this['keystrokes']=new _0x35a0c2(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x223270),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2fc20e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2fe655=_0xbed8f7=>_0xbed8f7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2fe655),this['keystrokes']['set']('arrowleft',_0x2fe655),this['keystrokes']['set']('arrowup',_0x2fe655),this['keystrokes']['set']('arrowdown',_0x2fe655);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x18927f){this['revisionNameInputView']['fieldView']['element']['value']=_0x18927f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xd0b544){const _0x380536=new nt(this['locale'],_0x242cba),_0x5d4ada=_0x380536['fieldView'];_0x5d4ada['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x494f49=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0xd0b544&&(_0x494f49+='\x20('+m(this['locale'],'optional')+')'),(_0x380536['label']=_0x494f49,_0x5d4ada['on']('input',()=>{this['revisionNameInputValue']=_0x5d4ada['element']['value']['trim']();}),_0x380536);}}class u extends _0x5076e7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5aacbf=this['editor'],_0xd0bfa2=_0x5aacbf['plugins']['get']('RevisionTracker');_0x5aacbf['ui']['componentFactory']['add']('revisionHistory',_0x29cae2=>{const _0x172fe8=_0x2237ca(_0x29cae2),_0x3ee4d9=_0x172fe8['panelView']['children'],_0x4f1ef5=new te(_0x29cae2),_0xb43080=new _0x2673d4(_0x29cae2),_0x413c2a=new _0x4f6818(_0x29cae2),_0x4f7a1e=new _0x2673d4(_0x29cae2),_0x1ebd88=new _0x4f6818(_0x29cae2);return _0x172fe8['bind']('isEnabled')['to'](_0xd0bfa2,'isReady',_0xd0bfa2,'isEnabled',_0x5aacbf,'isReadOnly',(_0xdb749,_0x4a88a9,_0x3db1b2)=>_0xdb749&&_0x4a88a9&&!_0x3db1b2),_0x172fe8['buttonView']['set']({'icon':_0x357001['history'],'label':m(_0x29cae2,'Revision\x20history'),'tooltip':!0x0}),_0x413c2a['set']({'label':m(_0x29cae2,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x413c2a['bind']('isEnabled')['to'](_0xd0bfa2,'isReady',_0xd0bfa2,'isEnabled',_0x5aacbf,'isReadOnly',(_0x4ba9a4,_0x1d30bf,_0x24680a)=>_0x4ba9a4&&_0x1d30bf&&!_0x24680a),_0x413c2a['on']('execute',()=>this['_showDialog']()),_0x1ebd88['set']({'label':m(_0x29cae2,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1ebd88['bind']('isEnabled')['to'](_0xd0bfa2,'isReady',_0x5aacbf,'isReadOnly',(_0x3b8315,_0x482cdb)=>_0x3b8315&&!_0x482cdb),_0x1ebd88['on']('execute',()=>{_0x5aacbf['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x172fe8['isOpen']=!0x1,_0x5aacbf['editing']['view']['focus']();}),_0xb43080['children']['add'](_0x413c2a),_0x4f7a1e['children']['add'](_0x1ebd88),_0x4f1ef5['role']='menu',_0x4f1ef5['items']['addMany']([_0xb43080,_0x4f7a1e]),_0x3ee4d9['add'](_0x4f1ef5),_0x172fe8;}),_0x5aacbf['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x222431=this['editor'],_0x5e282c=_0x222431['locale'],_0x2ebd61=new _0x58e2cc(_0x5e282c),_0x5cd794=new _0x40cdad(_0x5e282c);_0x2ebd61['buttonView']['set']({'icon':_0x357001['history'],'label':m(_0x5e282c,'Revision\x20history')});const _0x22a4e7=new _0x19bde0(_0x5e282c,_0x2ebd61),_0x441778=new _0x5c84c9(_0x5e282c);_0x441778['set']({'label':m(_0x5e282c,'Save\x20current\x20revision')}),_0x441778['delegate']('execute')['to'](_0x2ebd61),_0x441778['on']('execute',()=>{this['_showDialog']();}),_0x22a4e7['children']['add'](_0x441778),_0x5cd794['items']['add'](_0x22a4e7);const _0x4cc2e8=new _0x19bde0(_0x5e282c,_0x2ebd61),_0x53783c=new _0x5c84c9(_0x5e282c);return _0x53783c['set']({'label':m(_0x5e282c,'Open\x20revision\x20history')}),_0x53783c['delegate']('execute')['to'](_0x2ebd61),_0x53783c['on']('execute',()=>{_0x222431['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4cc2e8['children']['add'](_0x53783c),_0x5cd794['items']['add'](_0x4cc2e8),_0x2ebd61['panelView']['children']['add'](_0x5cd794),_0x2ebd61;}['_showDialog'](){const _0x167a49=this['editor'],_0x4a72cb=_0x167a49['locale'],_0x390684=_0x167a49['plugins']['get']('Dialog'),_0x10ab18=_0x167a49['plugins']['get']('RevisionTracker');function _0x191a1b(_0x15ad84){_0x167a49['config']['get']('revisionHistory.requireRevisionName')&&''===_0x15ad84['revisionName']?_0x15ad84['revisionNameInputView']['errorText']=m(_0x4a72cb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x167a49['plugins']['get'](l)['saveRevision']({'name':_0x15ad84['revisionName']}),_0x390684['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x191a1b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x390684['show']({'id':'revisionSave','title':m(_0x4a72cb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x167a49['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x390684['hide']()},{'label':m(_0x167a49['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x51f057){_0x51f057['bind']('isEnabled')['to'](_0x10ab18,'isReady',_0x10ab18,'isEnabled',_0x167a49,'isReadOnly',(_0x7dd40c,_0x5e645c,_0x5b5d83)=>_0x7dd40c&&_0x5e645c&&!_0x5b5d83);},'onExecute':()=>_0x191a1b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xe33195=this['editor'],_0x274003=_0xe33195['locale'];this['_saveRevisionFormView']=new ns(_0x274003,_0xe33195['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4a15cb{['changeId'];['_model'];constructor(_0x500f4c,_0x56688d){super(_0x500f4c),this['_model']=_0x56688d,this['changeId']=_0x56688d['id'];const _0x4dc77e=this['bindTemplate'],_0x124ee1=m(_0x500f4c,_0x56688d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x56688d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x56688d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4dc77e['to']('type',_0x407996=>'ck-revision-change__'+_0x407996)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x124ee1}]},{'text':'\x20'+_0x56688d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0xed6999(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5b8dc4){super(),this['id']=_0x5b8dc4['id']||_0x5618d1(),this['author']=_0x5b8dc4['author'],this['type']=_0x5b8dc4['type'],this['data']=_0x5b8dc4['data']||{},this['rootName']=_0x5b8dc4['rootName'],this['set']('createdAt',_0x5b8dc4['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(_0x1ae599,_0x1de9cc){this['newRevisionId']=_0x1ae599,this['oldRevisionId']=_0x1de9cc,this['changes']=new _0x266183();}['_setChanges'](_0x1afe6a){for(const _0xbde9b0 of _0x1afe6a)this['changes']['add'](_0xbde9b0);}}const Y={'c':_0x33b3d2,'a':_0x5be06e,'e':_0x3a5ef6,'r':_0xf0a950,'u':_0x4e9cbe};class d extends _0x5076e7{['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[_0x37331c,_0x1c8221,j];}constructor(_0x5dd777){super(_0x5dd777),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',(_0x247d18,_0x670829,_0x60591e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x19d848=>{for(const _0x4e05c9 of this['editor']['editing']['view']['document']['roots'])_0x60591e?_0x19d848['removeClass']('ck-editor__editable__overlay',_0x4e05c9):_0x19d848['addClass']('ck-editor__editable__overlay',_0x4e05c9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1367cc=>null!==_0x1367cc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x46d2b2,_0x18dc8a,_0x3573d4)=>_0x46d2b2&&_0x3573d4?_0x18dc8a['changes']['getIndex'](_0x3573d4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4bcdb9,_0x5ccf68)=>_0x4bcdb9?_0x5ccf68['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1c8221);}['init'](){const _0x52b853=this['editor'],_0x204e11=new yt(_0x52b853,{'direction':'backward'}),_0x11b131=new yt(_0x52b853,{'direction':'forward'});(_0x52b853['commands']['add']('showPreviousChange',_0x204e11),_0x52b853['commands']['add']('showNextChange',_0x11b131),_0x52b853['commands']['add']('restoreRevision',new _t(_0x52b853)),this['on']('change:numberOfChanges',()=>{_0x204e11['refresh'](),_0x11b131['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x52b853['enableReadOnlyMode']('revision-viewer'),_0x52b853['plugins']['has']('WidgetToolbarRepository'))&&_0x52b853['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x278f78){await this['loadRevisionData'](_0x278f78);const _0xc592a0={};for(const _0x139a10 in _0x278f78['diffData']){if(_0x278f78['diffData'][_0x139a10]['attachChange']&&!_0x278f78['diffData'][_0x139a10]['attachChange']['isAttached'])continue;const _0x57f370=this['_removeRevisionMarkers'](JSON['parse'](_0x278f78['diffData'][_0x139a10]['insertions'])),_0x449ea8=this['editor']['editing']['view']['document'],_0x117f52=new _0x1dcf39(_0x449ea8,_0x57f370['map'](_0x2d78af=>this['_getViewObj'](_0x2d78af)));this['editor']['data']['processor']['useFillerType']('marked'),_0xc592a0[_0x139a10]=this['editor']['data']['processor']['toData'](_0x117f52),this['editor']['data']['processor']['useFillerType']('default');}return _0xc592a0;}async['getRevisionRootsAttributes'](_0x352c0e){await this['loadRevisionData'](_0x352c0e);const _0x2f0add={};for(const _0x25318f in _0x352c0e['diffData'])_0x352c0e['diffData'][_0x25318f]['attachChange']&&!_0x352c0e['diffData'][_0x25318f]['attachChange']['isAttached']||(_0x2f0add[_0x25318f]=_0x352c0e['diffData'][_0x25318f]['attributesAfter']||{});return _0x2f0add;}['_removeRevisionMarkers'](_0x4c92a6){return(_0x4c92a6=_0x4c92a6['filter'](_0x538679=>!_0x538679['name']||'revision-start'!==_0x538679['name']&&'revision-end'!==_0x538679['name']))['forEach'](_0x1951d3=>{'string'!=typeof _0x1951d3&&(_0x1951d3['children']=this['_removeRevisionMarkers'](_0x1951d3['children']),_0x1951d3['attributes']=_0x1951d3['attributes']['filter'](_0x1c12aa=>!_0x1c12aa[0x0]['startsWith']('data-revision-')));}),_0x4c92a6;}async['compare'](_0x37aaba,_0xd4593c,_0x298c9a=!0x1){if(!this['isEnabled'])return;const _0x5c0c0c=this['diff'],_0xa0a843=this['repository'],_0x5944ca='string'==typeof _0x37aaba?_0xa0a843['getRevision'](_0x37aaba):_0x37aaba,_0x3d9c1c='string'==typeof _0xd4593c?_0xa0a843['getRevision'](_0xd4593c):_0xd4593c,_0x185b91=_0x5944ca['id'],_0x440697=_0x3d9c1c?_0x3d9c1c['id']:null;if(!_0x298c9a&&this['diff']&&this['diff']['newRevisionId']===_0x185b91&&this['diff']['oldRevisionId']===_0x440697)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x185b91,_0x440697);const _0x2fe22e=this['_getRevisionsRange'](_0x5944ca,_0x3d9c1c,!0x0)['map'](_0x25e2fe=>this['loadRevisionData'](_0x25e2fe));return _0x2fe22e['push'](new Promise(_0x11babb=>{setTimeout(_0x11babb,0x14);})),Promise['all'](_0x2fe22e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3559ff=this['_getDiff'](_0x185b91,_0x440697);for(const _0x12d942 of _0x3559ff['changes'])this['_changeIdToChange']['set'](_0x12d942['id'],_0x12d942);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x21bc73=>{for(const _0x5b51b1 of this['editor']['model']['document']['getRootNames']())_0x21bc73['detachRoot'](_0x5b51b1);for(const _0x1c0974 of Object['keys'](_0x3559ff['model'])){const _0x257f69=_0x21bc73['addRoot'](_0x1c0974);for(const _0x3e4754 of Object['keys'](_0x3559ff['attributes'][_0x1c0974]))_0x21bc73['setAttribute'](_0x3e4754,_0x3559ff['attributes'][_0x1c0974][_0x3e4754],_0x257f69);_0x21bc73['insert'](_0x3559ff['model'][_0x1c0974],_0x257f69,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3559ff['changes'])),this['isReady']=!0x0;})['catch'](_0xf0c2c0=>{console['error'](_0xf0c2c0),this['_cleanUp'](),_0x5c0c0c&&(this['diff']=_0x5c0c0c),this['isReady']=!0x0;});}['addRevisionData'](_0x597fa7,_0x176f53){const _0x407285=this['repository']['createRevision'](_0x597fa7);return _0x407285['on']('_update',(_0x2775e6,_0x7fe533,_0x45f977)=>_0x176f53(_0x7fe533,_0x45f977,_0x407285)),this['repository']['addRevision'](_0x407285),_0x407285;}['loadRevisionData'](_0x5da596){if(!_0x5da596||_0x5da596['diffData'])return Promise['resolve']();{const _0x21a77f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x21a77f,'revisionId':_0x5da596['id']})['then'](_0x394d38=>{_0x5da596['_update']({'diffData':_0x394d38['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},_0x48f6e1=>{for(const _0x2c8742 of this['editor']['model']['document']['getRootNames']())_0x48f6e1['detachRoot'](_0x2c8742);});}['_sortAndFilterDiffChanges'](_0x3613ff){const _0x5024f8=[],_0x42102a=new Map();for(const _0x580233 of this['editor']['model']['document']['getRootNames']()){const _0x213dcc=this['editor']['editing']['view']['getDomRoot'](_0x580233);if(!_0x213dcc)continue;const _0x2558a=_0x213dcc['getClientRects']()['item'](0x0);_0x2558a&&(_0x5024f8['push'](_0x580233),_0x42102a['set'](_0x580233,_0x2558a));}return _0x5024f8['sort']((_0x3b7cf2,_0x381f01)=>{const _0x3be4c0=_0x42102a['get'](_0x3b7cf2),_0x2485dd=_0x42102a['get'](_0x381f01);return _0x3be4c0['y']-_0x2485dd['y']||_0x3be4c0['x']-_0x2485dd['x'];}),(_0x3613ff=_0x3613ff['filter'](_0xc273af=>_0x5024f8['includes'](_0xc273af['rootName'])))['sort']((_0xf277aa,_0x1dc203)=>_0x5024f8['indexOf'](_0xf277aa['rootName'])-_0x5024f8['indexOf'](_0x1dc203['rootName'])),_0x3613ff;}['_makeTape'](_0x44d4d2){const _0x2e0683=Array['from'](_0x44d4d2['markers'])['filter'](([_0x166a54,_0x2bb261])=>_0x166a54['startsWith']('revision:')&&!_0x2bb261['isCollapsed']),_0x33cc0a=Array['from'](this['editor']['model']['createRangeIn'](_0x44d4d2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2e0683['length'])for(const _0x1b710e of _0x33cc0a){const [_0x316eff,_0x587f17]=_0x2e0683[0x0],[,_0x5b4b08,_0x218a60]=_0x316eff['split'](':');if(_0x587f17['end']['isEqual'](_0x1b710e['nextPosition'])&&_0x2e0683['shift'](),(_0x1b710e['previousPosition']['isEqual'](_0x587f17['start'])||_0x1b710e['previousPosition']['isAfter'](_0x587f17['start']))&&('insertion'==_0x5b4b08?_0x1b710e['isAdded']={'userId':_0x218a60}:'deletion'==_0x5b4b08&&(_0x1b710e['isRemoved']={'userId':_0x218a60})),0x0==_0x2e0683['length'])break;}return _0x33cc0a;}['_refreshStartEndIndex'](_0x10b8fe){const _0x838f8=new Map();for(let _0x3a051f=0x0;_0x3a051f<_0x10b8fe['length'];_0x3a051f++)'text'===_0x10b8fe[_0x3a051f]['type']?(_0x10b8fe[_0x3a051f]['item']['startIndex']=_0x3a051f,_0x10b8fe[_0x3a051f]['item']['endIndex']=_0x3a051f):('elementStart'===_0x10b8fe[_0x3a051f]['type']?_0x10b8fe[_0x3a051f]['item']['startIndex']=_0x3a051f:'elementEnd'===_0x10b8fe[_0x3a051f]['type']&&(_0x10b8fe[_0x3a051f]['item']['endIndex']=_0x3a051f),_0x838f8['set'](_0x10b8fe[_0x3a051f]['id'],_0x3a051f));for(const _0x5576db of _0x838f8['values']())'elementStart'===_0x10b8fe[_0x5576db]['type']?_0x10b8fe[_0x5576db]['item']['endIndex']=_0x838f8['get'](_0x10b8fe[_0x5576db]['pairId']):'elementEnd'===_0x10b8fe[_0x5576db]['type']&&(_0x10b8fe[_0x5576db]['item']['startIndex']=_0x838f8['get'](_0x10b8fe[_0x5576db]['pairId']));}['_processTape'](_0x5a5ec9){for(let _0x2e8559=0x0;_0x2e8559<_0x5a5ec9['length'];_0x2e8559++){if('elementStart'===_0x5a5ec9[_0x2e8559]['type'])_0x5a5ec9[_0x2e8559]['item']['startIndex']=_0x2e8559;else{if('elementEnd'===_0x5a5ec9[_0x2e8559]['type']){_0x5a5ec9[_0x2e8559]['item']['endIndex']=_0x2e8559;const _0x55a94b=_0x5a5ec9[_0x2e8559]['item']['startIndex'];_0x5a5ec9[_0x55a94b]['pairId']=_0x5a5ec9[_0x2e8559]['id'],_0x5a5ec9[_0x2e8559]['pairId']=_0x5a5ec9[_0x55a94b]['id'];}else _0x5a5ec9[_0x2e8559]['item']['startIndex']=_0x2e8559,_0x5a5ec9[_0x2e8559]['item']['endIndex']=_0x2e8559,_0x5a5ec9[_0x2e8559]['pairId']=null;}_0x5a5ec9[_0x2e8559]['markersStart']||(_0x5a5ec9[_0x2e8559]['markersStart']=[],_0x5a5ec9[_0x2e8559]['markersEnd']=[]);}}['_markInsertions'](_0x238b34,_0x563527){const _0x384b8b=_0x238b34['filter'](_0x362328=>!_0x362328['isAdded']);for(let _0x41f443=0x0;_0x41f443<_0x563527['length'];_0x41f443++)_0x563527[_0x41f443]['isAdded']&&(_0x384b8b[_0x41f443]['isAdded']=_0x563527[_0x41f443]['isAdded']);}['_makeModelFromViewString'](_0x58d8ff){const _0xa1cd81=JSON['parse'](_0x58d8ff),_0x46e6c7=this['editor']['editing']['view']['document'],_0xb6b677=new _0x1dcf39(_0x46e6c7,_0xa1cd81['map'](_0xde751f=>this['_getViewObj'](_0xde751f)));return this['editor']['data']['toModel'](_0xb6b677);}['_getViewObj'](_0x17b0fa){const _0x4b69a3=this['editor']['editing']['view']['document'];if('string'==typeof _0x17b0fa)return new _0x505ed7(_0x4b69a3,_0x17b0fa);{const _0x4fcd6e=_0x17b0fa['children']['map'](_0x4c85c6=>this['_getViewObj'](_0x4c85c6));return new(Y[_0x17b0fa['type']]||_0x44f4dd)(_0x4b69a3,_0x17b0fa['name'],_0x17b0fa['attributes'],_0x4fcd6e);}}['_getDiff'](_0x4b5154,_0xb52475=null){const _0x3169f7=this['repository']['getRevision'](_0x4b5154),_0x506342=_0xb52475?this['repository']['getRevision'](_0xb52475):null,_0x4224ca=this['_getRevisionsRange'](_0x3169f7,_0x506342),_0x537e18=_0x4224ca[_0x4224ca['length']-0x1],_0x33b59=new Map(),_0x3cfbc4={'model':{},'attributes':{},'changes':[]},_0x36fc50=new Set(),_0x4d17b1=new Map();for(let _0x701f1c=_0x4224ca['length']-0x1;_0x701f1c>=0x0;_0x701f1c--){const _0x2e7198=_0x4224ca[_0x701f1c];for(const _0xa7496f of Object['keys'](_0x2e7198['diffData']))if(_0x2e7198['diffData'][_0xa7496f]['attachChange']){const _0x24a43c=_0x2e7198['diffData'][_0xa7496f]['attachChange'];_0x24a43c['isAttached']?(_0x36fc50['add'](_0xa7496f),_0x4d17b1['has'](_0xa7496f)&&_0x4d17b1['get'](_0xa7496f)['userId']==_0x24a43c['userId']?_0x4d17b1['delete'](_0xa7496f):_0x4d17b1['set'](_0xa7496f,_0x24a43c)):_0x4d17b1['has'](_0xa7496f)?(_0x36fc50['delete'](_0xa7496f),_0x4d17b1['delete'](_0xa7496f)):(_0x36fc50['add'](_0xa7496f),_0x4d17b1['set'](_0xa7496f,_0x24a43c));}else _0x36fc50['add'](_0xa7496f);}for(const _0x55de86 of _0x36fc50){const _0x16e45b=_0x4d17b1['has'](_0x55de86)&&!_0x4d17b1['get'](_0x55de86)['isAttached'];let _0x3e79b8=_0x16e45b?_0x4224ca['length']-0x1:0x0;const _0x1649ee=_0x16e45b?-0x1:0x1;for(;_0x4224ca[_0x3e79b8];){const _0x7398ec=_0x4224ca[_0x3e79b8];if(_0x7398ec['diffData'][_0x55de86]){const _0x4d32dd=_0x16e45b?_0x7398ec['diffData'][_0x55de86]['attributesBefore']:_0x7398ec['diffData'][_0x55de86]['attributesAfter'];_0x3cfbc4['attributes'][_0x55de86]=_0x4d32dd?_0x456867(_0x4d32dd):{};break;}_0x3e79b8+=_0x1649ee;}}for(const _0x5854b8 of _0x4224ca){_0x5854b8['model']={};for(const _0x3c9886 of _0x5854b8['authors'])_0x33b59['set'](_0x3c9886['id'],_0x3c9886);for(const _0x459790 of _0x36fc50){const _0x179191=_0x5854b8['diffData'][_0x459790]?_0x5854b8['diffData'][_0x459790]['insertions']:'[]',_0x52e8d2=_0x5854b8['diffData'][_0x459790]?_0x5854b8['diffData'][_0x459790]['deletions']:'[]';_0x5854b8['model'][_0x459790]={'insertions':this['_makeModelFromViewString'](_0x179191),'deletions':this['_makeModelFromViewString'](_0x52e8d2)};}}for(const _0x24f6bc of _0x36fc50){let _0x55aa6d=null,_0x128873=0x0;const _0x1a301a=new Map(Array['from'](_0x3169f7['model'][_0x24f6bc]['insertions']['markers'])['filter'](([_0x18562e])=>!_0x18562e['startsWith']('revision:')));let _0x2ba3fe=0x0;for(const _0xd96573 of _0x4224ca){const _0x2aa008=this['_makeTape'](_0xd96573['model'][_0x24f6bc]['insertions']);_0xd96573==_0x3169f7?(_0x55aa6d=_0x2aa008,_0x128873=_0x55aa6d['length'],_0x55aa6d['forEach'](_0x1e33dd=>{_0x1e33dd['id']=_0x2ba3fe++;}),this['_processTape'](_0x55aa6d)):this['_markInsertions'](_0x55aa6d,_0x2aa008);const _0x4cd77d=_0x55aa6d['filter'](_0x1f8b1e=>!_0x1f8b1e['isAdded'])['map'](_0x5a87b7=>_0x5a87b7['id']);let _0x17a41e=0x0;const _0x23947b=this['_makeTape'](_0xd96573['model'][_0x24f6bc]['deletions']);_0x23947b['forEach'](_0x2e0b94=>{_0x2e0b94['isRemoved']?_0x2e0b94['id']=_0x128873++:_0x2e0b94['id']=_0x4cd77d[_0x17a41e++];}),this['_processTape'](_0x23947b),this['_setDistance'](_0x55aa6d,'isAdded'),this['_setDistance'](_0x23947b,'isRemoved'),_0xd96573==_0x3169f7&&this['_markMarkers'](_0x55aa6d,_0x1a301a),_0x55aa6d=this['_joinTapes'](_0x55aa6d,_0x23947b),this['_refreshStartEndIndex'](_0x55aa6d),this['_setDistance'](_0x55aa6d,'isRemoved');}_0x55aa6d=_0x55aa6d['filter'](_0x2aca4f=>!(_0x2aca4f['isAdded']&&_0x2aca4f['isRemoved']));const _0x4779f5=new Map(_0x537e18['model'][_0x24f6bc]['deletions']['markers']),_0x5b7e57=new Set(_0x1a301a['keys']());for(const _0x5356b9 of _0x4779f5['keys']())_0x5b7e57['delete'](_0x5356b9);this['_markSuggestions'](_0x55aa6d,_0x5b7e57),this['_fixObsoleteTags'](_0x55aa6d),_0x55aa6d=this['_removeMissingPairs'](_0x55aa6d),_0x55aa6d=this['_markMismatchedRemovedTags'](_0x55aa6d),_0x55aa6d=this['_removeUnsupportedChanges'](_0x55aa6d);const {root:_0x5621dc,changes:_0x3b1d87}=this['_makeModelFromTape'](_0x55aa6d,_0x33b59,_0x24f6bc);_0x3cfbc4['model'][_0x24f6bc]=_0x5621dc;const _0x2ed9f0=_0x4d17b1['get'](_0x24f6bc);if(_0x2ed9f0){const _0x88c18b=_0x33b59['get'](_0x2ed9f0['userId']),_0x159ea5=new r({'author':_0x88c18b,'type':_0x2ed9f0['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x24f6bc});_0x3b1d87['unshift'](_0x159ea5),_0x3cfbc4['attributes'][_0x24f6bc]['revisionHistoryAttachChange']=_0x159ea5['id'];}_0x3cfbc4['changes']=_0x3cfbc4['changes']['concat'](_0x3b1d87);}return _0x3cfbc4;}['_markMarkers'](_0x14b29e,_0x54a2e2){for(let _0x2fa8d5=0x0;_0x2fa8d5<_0x14b29e['length'];_0x2fa8d5++)for(const [_0x364091,_0x473aa9]of _0x54a2e2)_0x473aa9['start']['isEqual'](_0x14b29e[_0x2fa8d5]['previousPosition'])&&_0x14b29e[_0x2fa8d5]['markersStart']['push'](_0x364091),_0x473aa9['end']['isEqual'](_0x14b29e[_0x2fa8d5]['nextPosition'])&&_0x14b29e[_0x2fa8d5]['markersEnd']['push'](_0x364091);}['_joinTapes'](_0x12824a,_0x5804c1){let _0x4fa4bf=[],_0x2d5e66=0x0,_0x2b6c18=0x0;for(;_0x2d5e66<_0x12824a['length']||_0x2b6c18<_0x5804c1['length'];){const _0x8d42e8=_0x12824a[_0x2d5e66]||{},_0x1de0a1=_0x5804c1[_0x2b6c18]||{};if(_0x8d42e8['id']==_0x1de0a1['id'])_0x2d5e66++,_0x2b6c18++,_0x4fa4bf['push'](_0x8d42e8);else{if(_0x1de0a1['isRemoved']&&_0x8d42e8['isAdded']){const {commonTape:_0xd61a2d,iEnd:_0x6cd3b6,jEnd:_0x4f81cb}=this['_threeWayMerge'](_0x12824a,_0x2d5e66,_0x5804c1,_0x2b6c18);_0x4fa4bf=_0x4fa4bf['concat'](_0xd61a2d),_0x2d5e66=_0x6cd3b6,_0x2b6c18=_0x4f81cb;}else _0x1de0a1['isRemoved']?(_0x2b6c18++,_0x4fa4bf['push'](_0x1de0a1)):(_0x2d5e66++,_0x4fa4bf['push'](_0x8d42e8));}}return _0x4fa4bf;}['_markSuggestions'](_0x12cfe0,_0x39c5fa){const _0x20bc1a=[];for(let _0x1eaa0f=0x0;_0x1eaa0f<_0x12cfe0['length'];_0x1eaa0f++){for(let _0x4bd890=0x0;_0x4bd890<_0x12cfe0[_0x1eaa0f]['markersStart']['length'];_0x4bd890++){const _0x1c0d19=_0x12cfe0[_0x1eaa0f]['markersStart'][_0x4bd890];if(!_0x39c5fa['has'](_0x1c0d19))continue;const {group:_0x283883,type:_0x353f35,authorId:_0x47e327}=_0x5a832e(_0x1c0d19);'revision-suggestion'!=_0x283883||'insertion'!=_0x353f35&&'deletion'!=_0x353f35||(_0x20bc1a['unshift']({'type':_0x353f35,'name':_0x1c0d19,'userId':_0x47e327}),_0x12cfe0[_0x1eaa0f]['markersStart']['splice'](_0x4bd890,0x1),_0x4bd890--);}_0x1df775(_0x12cfe0[_0x1eaa0f]);for(let _0x4c0ce1=0x0;_0x4c0ce1<_0x12cfe0[_0x1eaa0f]['markersEnd']['length'];_0x4c0ce1++){const _0x394179=_0x12cfe0[_0x1eaa0f]['markersEnd'][_0x4c0ce1];if(!_0x39c5fa['has'](_0x394179))continue;const {group:_0x499f45,type:_0x2c52a2}=_0x5a832e(_0x394179);if('revision-suggestion'!=_0x499f45||'insertion'!=_0x2c52a2&&'deletion'!=_0x2c52a2)continue;_0x12cfe0[_0x1eaa0f]['markersEnd']['splice'](_0x4c0ce1,0x1),_0x4c0ce1--;const _0x5bbbde=_0x20bc1a['findIndex'](_0x3e1d8a=>_0x3e1d8a['name']==_0x394179);_0x5bbbde>-0x1&&_0x20bc1a['splice'](_0x5bbbde,0x1);}}function _0x5a832e(_0x161f03){const _0x18bbc2=_0x161f03['split'](':');return{'group':_0x18bbc2[0x0],'type':_0x18bbc2[0x1],'subType':_0x18bbc2['length']>=0x5?_0x18bbc2[0x2]:null,'id':_0x18bbc2['length']<0x5?_0x18bbc2[0x2]:_0x18bbc2[0x3],'authorId':_0x18bbc2['length']<0x5?_0x18bbc2[0x3]:_0x18bbc2[0x4],'markerCount':0x6==_0x18bbc2['length']?_0x18bbc2[0x5]:null};}function _0x1df775(_0x109838){for(let _0x454ce7=0x0;_0x454ce7<_0x20bc1a['length'];_0x454ce7++){if(_0x109838['isAdded']&&'insertion'==_0x20bc1a[_0x454ce7]['type'])return _0x109838['isAddSuggestion']=_0x20bc1a[_0x454ce7],void delete _0x109838['isAdded'];if(!_0x109838['isAdded']&&!_0x109838['isRemoved']&&'deletion'==_0x20bc1a[_0x454ce7]['type'])return void(_0x109838['isRemoveSuggestion']=_0x20bc1a[_0x454ce7]);}}}['_setDistance'](_0x16f7af,_0x64c2cc){let _0x1dc7e1=0x0,_0x1d2cca=!0x1;const _0x3e9369=new Map();for(const _0x22d8ed of _0x16f7af)_0x22d8ed[_0x64c2cc]?_0x1d2cca&&(_0x1dc7e1++,_0x1d2cca=!0x1):(_0x1dc7e1++,_0x1d2cca=!0x0),_0x3e9369['set'](_0x22d8ed['id'],_0x1dc7e1);for(let _0x311e6d=0x0;_0x311e6d<_0x16f7af['length'];_0x311e6d++){if('isRemoved'==_0x64c2cc&&_0x16f7af[_0x311e6d]['isAdded']||'isAdded'==_0x64c2cc&&_0x16f7af[_0x311e6d]['isRemoved'])continue;if('text'==_0x16f7af[_0x311e6d]['type']){_0x16f7af[_0x311e6d]['distance']=0x0;continue;}const _0x52d1ea=_0x3e9369['get'](_0x16f7af[_0x311e6d]['pairId']),_0x3d2127=_0x3e9369['get'](_0x16f7af[_0x311e6d]['id']);_0x16f7af[_0x311e6d]['distance']=_0x52d1ea-_0x3d2127;}}['_getRevisionsRange'](_0x2b43cf,_0x3868b4,_0x593125=!0x1){const _0x236506=[];let _0x33ed39=this['repository']['getIndex'](_0x2b43cf),_0x135335=this['repository']['getIndex'](_0x3868b4);for(-0x1==_0x135335&&(_0x135335=this['repository']['_revisions']['length'],_0x593125=!0x1);_0x33ed39<_0x135335;)_0x236506['push'](this['repository']['getRevision'](_0x33ed39)),_0x33ed39++;return _0x593125&&_0x236506['push'](this['repository']['getRevision'](_0x33ed39)),_0x236506;}['_threeWayMerge'](_0x5bc2cb,_0x1e5273,_0x3fdba4,_0x3d3f17){const _0x290490=this['editor']['model']['schema'];let _0x2b0844=_0x1e5273;for(;_0x5bc2cb[_0x2b0844]&&_0x5bc2cb[_0x2b0844]['isAdded'];)_0x2b0844++;let _0x344507=_0x3d3f17;for(;_0x3fdba4[_0x344507]&&_0x3fdba4[_0x344507]['isRemoved'];)_0x344507++;_0x1c6d40(_0x5bc2cb,_0x1e5273,_0x2b0844),_0x1c6d40(_0x3fdba4,_0x3d3f17,_0x344507);const _0x676dc1=_0x3fdba4['slice'](_0x3d3f17,_0x344507)['concat'](_0x5bc2cb['slice'](_0x1e5273,_0x2b0844));return _0x676dc1['sort']((_0x2705f0,_0x3be6e8)=>_0x2705f0['side']!=_0x3be6e8['side']?_0x2705f0['side']-_0x3be6e8['side']:_0x2705f0['level']!=_0x3be6e8['level']?_0x2705f0['level']-_0x3be6e8['level']:_0x2705f0['distance']!=_0x3be6e8['distance']?_0x3be6e8['distance']-_0x2705f0['distance']:!!_0x2705f0['isAdded']!=!!_0x3be6e8['isAdded']?-0x1==_0x2705f0['side']||0x0==_0x2705f0['side']?_0x2705f0['isAdded']?-0x1:0x1:_0x2705f0['isAdded']?0x1:-0x1:_0x2705f0['index']-_0x3be6e8['index']),{'commonTape':_0x676dc1,'iEnd':_0x2b0844,'jEnd':_0x344507};function _0x1c6d40(_0x584c43,_0x1b7435,_0x1b3f0e){let _0x2daaa6=-0x1,_0x349f18=Number['POSITIVE_INFINITY'],_0x202f6b=!0x0;for(let _0xb9efa5=_0x1b7435;_0xb9efa5<_0x1b3f0e;_0xb9efa5++)if(_0x290490['isInline'](_0x584c43[_0xb9efa5]['item'])||(_0x202f6b=!0x1),_0x584c43[_0xb9efa5]['item']['startIndex']<_0x1b7435&&(_0x2daaa6=_0xb9efa5),_0x584c43[_0xb9efa5]['item']['endIndex']>=_0x1b3f0e){_0x349f18=_0xb9efa5;break;}_0x202f6b&&(_0x2daaa6=_0x1b3f0e-0x1);for(let _0x1f8b28=_0x1b7435;_0x1f8b28<_0x1b3f0e;_0x1f8b28++)_0x584c43[_0x1f8b28]['side']=_0x1f8b28<=_0x2daaa6?-0x1:_0x1f8b28<_0x349f18?0x0:0x1,_0x584c43[_0x1f8b28]['index']=_0x1f8b28;let _0x1f0d0a=0x0;for(let _0x180792=_0x1b7435;_0x180792<=_0x2daaa6;_0x180792++)0x0==_0x584c43[_0x180792]['distance']?_0x584c43[_0x180792]['level']=_0x1f0d0a:(_0x1f0d0a++,_0x584c43[_0x180792]['level']=_0x1f0d0a,_0x1f0d0a++);for(let _0x3e381a=_0x1b7435;_0x3e381a<_0x1b3f0e;_0x3e381a++)0x0==_0x584c43[_0x3e381a]['side']&&(_0x584c43[_0x3e381a]['level']=_0x1f0d0a);_0x1f0d0a=0x0;for(let _0x6a7a22=_0x1b3f0e-0x1;_0x6a7a22>=_0x349f18;_0x6a7a22--)0x0==_0x584c43[_0x6a7a22]['distance']?_0x584c43[_0x6a7a22]['level']=_0x1f0d0a:(_0x1f0d0a--,_0x584c43[_0x6a7a22]['level']=_0x1f0d0a,_0x1f0d0a--);}}['_fixObsoleteTags'](_0x1e608e){const _0x313690=new Map(),_0x1608b2=this['editor']['model']['schema'];for(let _0x331d2a=0x1;_0x331d2a<_0x1e608e['length'];_0x331d2a++){let _0x1a2710,_0x5cd194,_0x58d823;const _0x37ae7b=_0x1e608e[_0x331d2a],_0x1a41a5=_0x1e608e[_0x331d2a-0x1];if('text'==_0x37ae7b['type'])continue;if(_0x37ae7b['type']!=_0x1a41a5['type'])continue;if(!_0x1608b2['isBlock'](_0x1a41a5['item'])||_0x1608b2['isLimit'](_0x1a41a5['item']))continue;if(!_0x1608b2['isBlock'](_0x37ae7b['item'])||_0x1608b2['isLimit'](_0x37ae7b['item']))continue;if((_0x1e608e[_0x331d2a]['isAdded']||_0x1e608e[_0x331d2a]['isAddSuggestion'])&&_0x1e608e[_0x331d2a-0x1]['isRemoved'])_0x1a2710=_0x1e608e[_0x331d2a],_0x5cd194=_0x1e608e[_0x331d2a-0x1],_0x58d823=_0x331d2a-0x1;else{if(!_0x1e608e[_0x331d2a]['isRemoved']||!_0x1e608e[_0x331d2a-0x1]['isAdded']&&!_0x1e608e[_0x331d2a-0x1]['isAddSuggestion'])continue;_0x1a2710=_0x1e608e[_0x331d2a-0x1],_0x5cd194=_0x1e608e[_0x331d2a],_0x58d823=_0x331d2a;}const _0x5f5752=_0x1a2710['level']==_0x5cd194['level'],_0x3267e8=Math['abs'](_0x1a2710['level'])<Math['abs'](_0x5cd194['level'])&&0x0==_0x5cd194['distance'];(_0x5f5752||_0x3267e8)&&(_0x313690['set'](_0x5cd194['id'],_0x1a2710['id']),_0x1e608e['splice'](_0x58d823,0x1),_0x331d2a--,_0x1a2710['isAdded']=!0x1);}for(let _0x3baf47=0x0;_0x3baf47<_0x1e608e['length'];_0x3baf47++)_0x313690['has'](_0x1e608e[_0x3baf47]['pairId'])&&(_0x1e608e[_0x3baf47]['pairId']=_0x313690['get'](_0x1e608e[_0x3baf47]['pairId']));}['_removeMissingPairs'](_0x1ebb5e){const _0x54bde0=new Set(_0x1ebb5e['map'](_0xc53a82=>_0xc53a82['id']));for(let _0x11fa9b=0x0;_0x11fa9b<_0x1ebb5e['length'];_0x11fa9b++)_0x54bde0['has'](_0x1ebb5e[_0x11fa9b]['pairId'])||0x0==_0x1ebb5e[_0x11fa9b]['distance']||(_0x1ebb5e[_0x11fa9b]['isIncorrect']=!0x0);return _0x1ebb5e['filter'](_0x10f988=>!_0x10f988['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1bbf04){const _0x3d9486=new Set();for(let _0x39527b=0x0;_0x39527b<_0x1bbf04['length'];_0x39527b++){if(_0x3d9486['has'](_0x1bbf04[_0x39527b]['id'])&&_0x1bbf04[_0x39527b]['isRemoved']&&(_0x1bbf04[_0x39527b]['isIncorrect']=!0x0),_0x1bbf04[_0x39527b]['isIncorrect'])continue;if(0x0==_0x1bbf04[_0x39527b]['distance'])continue;if('elementStart'!=_0x1bbf04[_0x39527b]['type'])continue;if(null==_0x1bbf04[_0x39527b]['pairId'])continue;let _0x2eb958=_0x39527b+0x1,_0x5df34b=0x0;for(;_0x1bbf04[_0x2eb958]['id']!=_0x1bbf04[_0x39527b]['pairId'];)'elementStart'==_0x1bbf04[_0x2eb958]['type']?_0x5df34b++:'elementEnd'==_0x1bbf04[_0x2eb958]['type']&&_0x5df34b--,_0x2eb958++;if(0x0!=_0x5df34b){if(_0x1bbf04[_0x39527b]['isRemoved'])_0x1bbf04[_0x39527b]['isIncorrect']=!0x0;else{for(;_0x2eb958!=_0x39527b;)_0x1bbf04[_0x2eb958]['isRemoved']&&0x0!=_0x1bbf04[_0x2eb958]['distance']&&(_0x1bbf04[_0x2eb958]['isIncorrect']=!0x0,_0x3d9486['add'](_0x1bbf04[_0x2eb958]['pairId'])),_0x2eb958--;}}}return _0x1bbf04['filter'](_0x170a5b=>!_0x170a5b['isIncorrect']);}['_removeUnsupportedChanges'](_0x3bf7db){const _0xebba41=this['editor']['model']['schema'];for(let _0xfd6053=0x0;_0xfd6053<_0x3bf7db['length'];_0xfd6053++){if(!(_0x3bf7db[_0xfd6053]['isAdded']||_0x3bf7db[_0xfd6053]['isAddSuggestion']||_0x3bf7db[_0xfd6053]['isRemoved']||_0x3bf7db[_0xfd6053]['isRemoveSuggestion']))continue;if(0x0==_0x3bf7db[_0xfd6053]['distance'])continue;const _0x33205e=_0x3bf7db[_0xfd6053]['item'];_0xebba41['isBlock'](_0x33205e)||_0xebba41['isLimit'](_0x33205e)||(_0x3bf7db[_0xfd6053]['isAdded']&&delete _0x3bf7db[_0xfd6053]['isAdded'],_0x3bf7db[_0xfd6053]['isAddSuggestion']&&delete _0x3bf7db[_0xfd6053]['isAddSuggestion'],_0x3bf7db[_0xfd6053]['isRemoveSuggestion']&&delete _0x3bf7db[_0xfd6053]['isRemoveSuggestion'],_0x3bf7db[_0xfd6053]['isRemoved']&&(_0x3bf7db[_0xfd6053]['isIncorrect']=!0x0));}return _0x3bf7db['filter'](_0x12365f=>!_0x12365f['isIncorrect']);}['_makeModelFromTape'](_0x1d5590,_0x4d7c57,_0x515061){const _0x2c0fc1=new mt(),_0xbf534f=[],_0x3e8b19=new Map(),_0x413713=this['editor']['model'],_0x128cfd=_0x413713['schema'],_0x19d952=[_0x2c0fc1],_0x3ac96b={},_0x5d4822={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5a59fc=null;const _0x47c4e=[0x0];for(let _0xad40b9=0x0;_0xad40b9<_0x1d5590['length'];_0xad40b9++)if('elementStart'===_0x1d5590[_0xad40b9]['type']){_0x1d5590[_0xad40b9]['previousPosition']=_0x413713['createPositionFromPath'](_0x2c0fc1,_0x47c4e);const _0x3fe40d=new ft(_0x1d5590[_0xad40b9]['item']['name'],_0x1d5590[_0xad40b9]['item']['getAttributes']());_0x19d952[0x0]['_appendChild'](_0x3fe40d),_0x47c4e['push'](0x0),_0x19d952['unshift'](_0x3fe40d),_0x1d5590[_0xad40b9]['nextPosition']=_0x413713['createPositionFromPath'](_0x2c0fc1,_0x47c4e);}else'elementEnd'===_0x1d5590[_0xad40b9]['type']?(_0x19d952['shift'](),_0x1d5590[_0xad40b9]['previousPosition']=_0x413713['createPositionFromPath'](_0x2c0fc1,_0x47c4e),_0x47c4e['pop'](),_0x47c4e[_0x47c4e['length']-0x1]++,_0x1d5590[_0xad40b9]['nextPosition']=_0x413713['createPositionFromPath'](_0x2c0fc1,_0x47c4e)):(_0x1d5590[_0xad40b9]['previousPosition']=_0x413713['createPositionFromPath'](_0x2c0fc1,_0x47c4e),_0x5a59fc?_0x5a59fc['_data']+=_0x1d5590[_0xad40b9]['item']['data']:_0x5a59fc=new wt(_0x1d5590[_0xad40b9]['item']['data'],_0x1d5590[_0xad40b9]['item']['getAttributes']()),_0x1d5590[_0xad40b9+0x1]&&'text'===_0x1d5590[_0xad40b9+0x1]['type']&&_0x18a0e7(_0x5a59fc,_0x1d5590[_0xad40b9+0x1]['item'])||(_0x19d952[0x0]['_appendChild'](_0x5a59fc),_0x5a59fc=null),_0x47c4e[_0x47c4e['length']-0x1]+=_0x1d5590[_0xad40b9]['item']['offsetSize'],_0x1d5590[_0xad40b9]['nextPosition']=_0x413713['createPositionFromPath'](_0x2c0fc1,_0x47c4e));for(let _0x55b558=0x0;_0x55b558<_0x1d5590['length'];_0x55b558++){const _0x22b39b=_0x1d5590[_0x55b558]['previousPosition'],_0x76096b=_0x1d5590[_0x55b558]['nextPosition'];for(const _0x2624e4 of _0x1d5590[_0x55b558]['markersStart'])_0x3e8b19['set'](_0x2624e4,{'start':_0x22b39b,'end':null});_0x231c5b('isRemoveSuggestion',_0x55b558,_0x22b39b,_0x76096b),_0x231c5b('isAddSuggestion',_0x55b558,_0x22b39b,_0x76096b),_0x231c5b('isRemoved',_0x55b558,_0x22b39b,_0x76096b),_0x231c5b('isAdded',_0x55b558,_0x22b39b,_0x76096b);for(const _0x41f0ff of _0x1d5590[_0x55b558]['markersEnd']){_0x3e8b19['get'](_0x41f0ff)['end']=_0x76096b;}}for(const [_0x31842b,_0x430d7d]of _0x3e8b19){const _0x260ab3=this['editor']['model']['createRange'](_0x430d7d['start'],_0x430d7d['end']);_0x2c0fc1['markers']['set'](_0x31842b,_0x260ab3);}return _0xbf534f['sort']((_0x4cf46b,_0x12266c)=>{const _0x23d486=_0x2c0fc1['markers']['get']('revision:'+_0x4cf46b['id']),_0x6cdc92=_0x2c0fc1['markers']['get']('revision:'+_0x12266c['id']);return _0x23d486['start']['isBefore'](_0x6cdc92['start'])?-0x1:_0x23d486['start']['isAfter'](_0x6cdc92['start'])?0x1:_0x23d486['end']['isBefore'](_0x6cdc92['end'])?-0x1:_0x23d486['end']['isAfter'](_0x6cdc92['end'])?0x1:'add'===_0x4cf46b['type']?-0x1:0x1;}),{'root':_0x2c0fc1,'changes':_0xbf534f};function _0x231c5b(_0x1b1696,_0x4c6985,_0x2cfd25,_0x32dfca){const _0x329813=!!_0x1d5590[_0x4c6985][_0x1b1696],_0x26641d=_0x329813?_0x1d5590[_0x4c6985][_0x1b1696]['userId']:null,_0x185d73=_0x4c6985===_0x1d5590['length']-0x1,_0x424a71=_0x5d4822[_0x1b1696][0x0],_0x15488e=_0x128cfd['isObject'](_0x1d5590[_0x4c6985]['item']);!_0x3ac96b[_0x1b1696]&&_0x329813?_0x3ac96b[_0x1b1696]={'start':_0x2cfd25,'tapeItem':_0x1d5590[_0x4c6985],'userId':_0x26641d,'type':_0x1b1696}:_0x3ac96b[_0x1b1696]&&!_0x329813?(_0x3ac96b[_0x1b1696]['end']=_0x2cfd25,_0x5f0df7(_0x3ac96b[_0x1b1696]),_0x3ac96b[_0x1b1696]=null):_0x3ac96b[_0x1b1696]&&_0x329813&&_0x3ac96b[_0x1b1696]['userId']!==_0x26641d&&(_0x3ac96b[_0x1b1696]['end']=_0x2cfd25,_0x424a71&&_0x424a71['userId']===_0x3ac96b[_0x1b1696]['userId']||_0x5f0df7(_0x3ac96b[_0x1b1696]),_0x3ac96b[_0x1b1696]={'start':_0x2cfd25,'tapeItem':_0x1d5590[_0x4c6985],'userId':_0x26641d,'type':_0x1b1696}),_0x3ac96b[_0x1b1696]&&_0x15488e&&('elementStart'!==_0x1d5590[_0x4c6985]['type']||_0x424a71&&_0x424a71['userId']===_0x26641d||_0x5d4822[_0x1b1696]['unshift']({'userId':_0x26641d,'object':_0x1d5590[_0x4c6985]['item'],'change':_0x3ac96b[_0x1b1696]}),'elementEnd'===_0x1d5590[_0x4c6985]['type']&&_0x424a71&&_0x424a71['object']===_0x1d5590[_0x4c6985]['item']&&(_0x5d4822[_0x1b1696]['shift'](),_0x3ac96b[_0x1b1696]=_0x424a71['change'])),_0x3ac96b[_0x1b1696]&&_0x185d73&&(_0x3ac96b[_0x1b1696]['end']=_0x32dfca,_0x5f0df7(_0x3ac96b[_0x1b1696]),_0x3ac96b[_0x1b1696]=null);}function _0x5f0df7({start:_0x488c2d,end:_0x21efd6,tapeItem:_0x1bc46e,userId:_0x36d83c,type:_0x55405d}){const _0x11d312=_0x1bc46e['item'],_0x345c6c=_0x413713['schema']['isBlock'](_0x11d312)&&!_0x413713['schema']['isLimit'](_0x11d312),_0x38cac3=_0x488c2d['nodeAfter']==_0x21efd6['parent']&&_0x21efd6['isAtStart'];if(_0x345c6c&&_0x38cac3)return;const _0x49ba72=_0x413713['createRange'](_0x488c2d,_0x21efd6),_0x22e660=_0x4d7c57['get'](_0x36d83c),_0x532ca3=new r({'author':_0x22e660,'type':'isAdded'==_0x55405d||'isAddSuggestion'==_0x55405d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x55405d||'isRemoveSuggestion'==_0x55405d},'createdAt':new Date(),'rootName':_0x515061});_0xbf534f['push'](_0x532ca3),_0x2c0fc1['markers']['set']('revision:'+_0x532ca3['id'],_0x49ba72);}function _0x18a0e7(_0x5f2baa,_0x5008ac){const _0x497fb6=_0x5f2baa['getAttributes'](),_0x3e3fe3=_0x5008ac['getAttributes']();for(const _0x59de2d of _0x497fb6){if(_0x59de2d[0x1]!==_0x5008ac['getAttribute'](_0x59de2d[0x0]))return!0x1;_0x3e3fe3['next']();}return _0x3e3fe3['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xdfdb2f=>{const _0x260f8b=_0xdfdb2f['markerName']['split'](':')[0x1],_0x438f0b=this['_getChangeFromId'](_0x260f8b);if(!_0x438f0b)return null;const _0xe78521='add'==_0x438f0b['type']?'insertion':'deletion',_0x45bbcb=['ck-suggestion-marker','ck-suggestion-marker-'+_0xe78521];return _0x438f0b['data']['isSuggestion']&&_0x45bbcb['push']('ck-suggestion-marker-'+_0xe78521+'-new'),this['activeChange']==_0x438f0b&&_0x45bbcb['push']('ck-suggestion-marker--active'),{'classes':_0x45bbcb,'attributes':{'data-change-id':_0x260f8b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x394817=>{_0x394817['on']('element:pre',(_0x2fd2a0,_0x324759,_0x4415e1)=>{const _0x1fa43a=_0x324759['viewItem']['getChild'](0x0);if(!_0x1fa43a||!_0x1fa43a['is']('element','code'))return;if(!_0x4415e1['consumable']['consume'](_0x1fa43a,{'attributes':['vid_start','vid_end']}))return;const _0x32d492=_0x324759['modelRange']['start']['nodeAfter'];_0x4415e1['writer']['setAttribute']('vid_start',_0x1fa43a['getAttribute']('vid_start'),_0x32d492),_0x4415e1['writer']['setAttribute']('vid_end',_0x1fa43a['getAttribute']('vid_end'),_0x32d492);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5cffca=>{_0x5cffca['on']('element',(_0x5a1b07,_0x5c3253,_0x2fc6e6)=>{if(!_0x2fc6e6['consumable']['consume'](_0x5c3253['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5c3253['modelRange']['isCollapsed'])return;const _0x5c8508=_0x5c3253['modelRange']['start']['nodeAfter'];_0x5c8508['hasAttribute']('vid_start')||_0x5c8508['hasAttribute']('vid')||(_0x2fc6e6['writer']['setAttribute']('vid_start',_0x5c3253['viewItem']['getAttribute']('vid_start'),_0x5c8508),_0x2fc6e6['writer']['setAttribute']('vid_end',_0x5c3253['viewItem']['getAttribute']('vid_end'),_0x5c8508));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5c7fbc=>_0x5c7fbc['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2c679f,[,_0x4bb151])=>{['vid_start','vid_end','vid']['includes'](_0x4bb151)&&(_0x2c679f['return']=!0x0,_0x2c679f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1f0ed5=>{_0x1f0ed5['on']('attribute:vid',(_0x1ce4e1,_0x1ad9ce,_0x4a88fd)=>{if('\x20'!=_0x1ad9ce['item']['data']||_0x1ad9ce['item']['parent']['maxOffset']>0x1)return;if(!_0x4a88fd['consumable']['consume'](_0x1ad9ce['item'],_0x1ce4e1['name']))return;const _0x142a7b=_0x4a88fd['writer'],_0x2c018f=_0x4a88fd['mapper']['toViewRange'](_0x1ad9ce['range']);_0x142a7b['wrap'](_0x2c018f,_0x142a7b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5da9d1){const _0x55b50f=_0x5da9d1['plugins']['get']('RevisionViewer');return(_0x2acf83,_0x1b0a47,_0x4366c4)=>{const _0x3fa0e6=_0x1b0a47['markerName']['split'](':')[0x1],_0x5d7e14=_0x55b50f['_getChangeFromId'](_0x3fa0e6);if(!_0x5d7e14)return null;const _0x4bf25b='add'==_0x5d7e14['type']?'split':'merge';if(!_0x4366c4['consumable']['test'](_0x1b0a47['markerRange'],_0x2acf83['name']))return;const _0x5af4d9=_0x1b0a47['markerRange']['getWalker'](),_0x4e0368=_0x1b0a47['markerRange']['start'],_0x57d7a9=_0x5da9d1['model']['schema'];let _0x54aac0=null,_0x41d4ac=null,_0x33588a=!0x1,_0x593697=!0x1;for(const _0x12276d of _0x5af4d9){const _0x22b410=_0x12276d['item'];_0x33588a=_0x33588a||_0x57d7a9['isContent'](_0x22b410);const _0x5a43a0=_0x4366c4['mapper']['toViewElement'](_0x22b410);if(_0x5a43a0&&_0x5a43a0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x12276d['type']&&(_0x57d7a9['isBlock'](_0x22b410)&&!_0x57d7a9['isLimit'](_0x22b410)&&(_0x22b410['nextSibling']||_0x4e0368['isAtEnd']?_0x54aac0&&_0x54aac0['parent']==_0x22b410||(_0x54aac0=_0x22b410,_0xd7addd(_0x12276d['previousPosition']),_0x593697=!0x0):_0x41d4ac=_0x41d4ac||_0x12276d['previousPosition']));}function _0xd7addd(_0x5270cf){const _0x22c14e=_0x4366c4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bf25b}),_0x26b97f=_0x4366c4['mapper']['toViewPosition'](_0x5270cf);_0x5d7e14['data']['isSuggestion']&&_0x4366c4['writer']['addClass']('ck-suggestion-marker-'+_0x4bf25b+'-new',_0x22c14e),_0x55b50f['activeChange']==_0x5d7e14&&_0x4366c4['writer']['addClass']('ck-suggestion-marker--active',_0x22c14e),_0x4366c4['writer']['insert'](_0x26b97f,_0x22c14e),_0x4366c4['mapper']['bindElementToMarker'](_0x22c14e,_0x1b0a47['markerName']);}_0x33588a||_0x593697||!_0x41d4ac||_0xd7addd(_0x41d4ac);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x24a0c4,_0x5bcc2b,_0x5b6017)=>{const _0xfbe58=_0x5b6017['mapper']['markerNameToElements'](_0x5bcc2b['markerName']);if(_0xfbe58){for(const _0x2d2219 of _0xfbe58)(_0x2d2219['hasClass']('ck-suggestion-marker-split')||_0x2d2219['hasClass']('ck-suggestion-marker-merge'))&&(_0x5b6017['mapper']['unbindElementFromMarkerName'](_0x2d2219,_0x5bcc2b['markerName']),_0x5b6017['writer']['remove'](_0x2d2219));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5a20d1,_0x21c51e,_0x1bdb59)=>{const _0x3546e2=_0x21c51e['markerName']['split'](':')[0x1],_0x4b184d=this['_getChangeFromId'](_0x3546e2);if(!_0x4b184d)return null;const _0x204470='add'==_0x4b184d['type']?'split':'merge';if(_0x1bdb59['consumable']['test'](_0x21c51e['markerRange'],_0x5a20d1['name']))for(const _0x35efd9 of _0x21c51e['markerRange']['getItems']()){if(!_0x35efd9['is']('element','softBreak'))continue;const _0x5c05f2=_0x1bdb59['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x204470}),_0x9b28bc=_0x1bdb59['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x35efd9));_0x4b184d['data']['isSuggestion']&&_0x1bdb59['writer']['addClass']('ck-suggestion-marker-'+_0x204470+'-new',_0x5c05f2),this['activeChange']==_0x4b184d&&_0x1bdb59['writer']['addClass']('ck-suggestion-marker--active',_0x5c05f2),_0x1bdb59['writer']['insert'](_0x9b28bc,_0x5c05f2),_0x1bdb59['mapper']['bindElementToMarker'](_0x5c05f2,_0x21c51e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2c6218=>{for(const _0x29a813 of this['editor']['model']['document']['getRootNames']()){const _0x62591f=this['editor']['model']['document']['getRoot'](_0x29a813),_0x3c3ef5=this['editor']['editing']['view']['document']['getRoot'](_0x29a813);if(_0x3c3ef5){const _0x28ca17=_0x62591f['getAttribute']('revisionHistoryAttachChange');if(_0x2c6218['removeAttribute']('data-change-id',_0x3c3ef5),_0x2c6218['removeClass']('ck-revision-history-root-add',_0x3c3ef5),_0x2c6218['removeClass']('ck-revision-history-root-remove',_0x3c3ef5),_0x2c6218['removeClass']('ck-revision-history-root--active',_0x3c3ef5),_0x28ca17){const _0x50b561=this['_getChangeFromId'](_0x28ca17);if(!_0x50b561)return null;_0x2c6218['setAttribute']('data-change-id',_0x28ca17,_0x3c3ef5),_0x2c6218['addClass']('ck-revision-history-root-'+_0x50b561['type'],_0x3c3ef5),this['activeChange']==_0x50b561&&_0x2c6218['addClass']('ck-revision-history-root--active',_0x3c3ef5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3ac67a=>'revision-comment:'+_0x3ac67a,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x13456b=>'revision-suggestion:'+_0x13456b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4b7584=>({'name':'suggestion:'+_0x4b7584,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x359e25=>{const _0x2f71ef=_0x359e25['markerName']['split'](':')[0x1];return'insertion'!=_0x2f71ef&&'deletion'!=_0x2f71ef?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2f71ef]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5ac605,_0x4e0f7a,_0x1f9345)=>{const _0x35830a=_0x1f9345['mapper']['markerNameToElements'](_0x4e0f7a['markerName']);if(_0x35830a){for(const _0x45e595 of _0x35830a)_0x45e595['is']('uiElement')&&(_0x1f9345['mapper']['unbindElementFromMarkerName'](_0x45e595,_0x4e0f7a['markerName']),_0x1f9345['writer']['remove'](_0x45e595));}},{'priority':'high'});}['_getChangeFromId'](_0x11bfce){return this['_changeIdToChange']['get'](_0x11bfce);}['_getViewForChange'](_0x2ca90d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x2ca90d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x768e07,_0x25e15a,_0x5382f6,_0x3e936f)=>{_0x3e936f&&this['_balloon']['remove'](_0x3e936f),_0x5382f6&&(this['_balloon']['add']({'view':_0x5382f6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x535660=this['editor']['editing'],_0x40582e=this['_getChangeFromId'](_0x5382f6['changeId']);let _0x3a31c6;if(_0x40582e['data']['isOnRoot']){const _0x465b7f=_0x535660['view']['getDomRoot'](_0x40582e['rootName']);_0x3a31c6=Array['from'](_0x465b7f['getClientRects']());}else{const _0x5bc00f=this['editor']['model']['markers']['get']('revision:'+_0x5382f6['changeId']);_0x3a31c6=Array['from'](_0x535660['mapper']['markerNameToElements'](_0x5bc00f['name']))['map'](_0x5318da=>_0x535660['view']['domConverter']['mapViewToDom'](_0x5318da))['map'](_0x452984=>Array['from'](_0x452984['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3a31c6[0x0];return _0x3a31c6['find'](_0x1d9120=>_0x1d9120['top']-0x3<=this['_activeViewTarget']['y']&&_0x1d9120['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1d9120['left']-0x3<=this['_activeViewTarget']['x']&&_0x1d9120['right']+0x3>=this['_activeViewTarget']['x'])||_0x3a31c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x13eb63,_0x1307a,_0x1950be,_0x34f036)=>{this['activeView']=_0x1950be?this['_getViewForChange'](_0x1950be):null,this['editor']['model']['change'](()=>{const _0x1abb65=this['editor']['editing'];_0x34f036&&(_0x34f036['data']['isOnRoot']?_0x1abb65['view']['change'](_0x12bb79=>{_0x12bb79['removeClass']('ck-revision-history-root--active',_0x1abb65['view']['document']['getRoot'](_0x34f036['rootName']));}):_0x1abb65['reconvertMarker']('revision:'+_0x34f036['id'])),_0x1950be&&(_0x1950be['data']['isOnRoot']?_0x1abb65['view']['change'](_0x2db71c=>{_0x2db71c['addClass']('ck-revision-history-root--active',_0x1abb65['view']['document']['getRoot'](_0x1950be['rootName']));}):_0x1abb65['reconvertMarker']('revision:'+_0x1950be['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2f27f2,_0x1d794a)=>{if(this['activeChange'])return;const _0x11b87c=this['_findChangeIdFromDomTarget'](_0x1d794a['target']),_0x6bb852=this['_changeIdToChange']['get'](_0x11b87c);_0x6bb852?(this['_activeViewTarget']={'x':_0x1d794a['domEvent']['x'],'y':_0x1d794a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x6bb852)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2e492b,_0x123df1)=>{const _0xbf6f24=this['_findChangeIdFromDomTarget'](_0x123df1['target']),_0x187e1d=this['_changeIdToChange']['get'](_0xbf6f24);_0x187e1d?(this['_activeViewTarget']={'x':_0x123df1['domEvent']['x'],'y':_0x123df1['domEvent']['y']},_0x187e1d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x187e1d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x23ac12){do{const _0x2b058d=_0x23ac12['getAttribute']('data-change-id');if(_0x2b058d)return _0x2b058d;_0x23ac12=_0x23ac12['parent'];}while(_0x23ac12);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4f38d0=>{for(const _0x1bd8bd of this['editor']['model']['markers'])_0x4f38d0['removeMarker'](_0x1bd8bd);});}}function Z(_0x405cf5,_0x6906){return(_0xac87a0,_0x143bdf,_0x55643d)=>{if(!_0x55643d['consumable']['test'](_0x143bdf['markerRange'],_0xac87a0['name']))return;const _0x4efffc=_0x143bdf['markerRange']['getWalker'](),_0x19747b=_0x143bdf['markerRange']['start'],_0x2cbd23=_0x405cf5['model']['schema'];let _0x248d52=null,_0x360aa5=null,_0xa42841=!0x1,_0x394211=!0x1;for(const _0x1c54aa of _0x4efffc){const _0x375f6a=_0x1c54aa['item'];_0xa42841=_0xa42841||_0x2cbd23['isContent'](_0x375f6a);const _0x453897=_0x55643d['mapper']['toViewElement'](_0x375f6a);if(_0x453897&&_0x453897['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c54aa['type']&&(_0x2cbd23['isBlock'](_0x375f6a)&&!_0x2cbd23['isLimit'](_0x375f6a)&&(_0x375f6a['nextSibling']||_0x19747b['isAtEnd']?_0x248d52&&_0x248d52['parent']==_0x375f6a||(_0x248d52=_0x375f6a,_0x381604(_0x1c54aa['previousPosition']),_0x394211=!0x0):_0x360aa5=_0x360aa5||_0x1c54aa['previousPosition']));}function _0x381604(_0x4eb763){const _0x224b0e=_0x55643d['mapper']['toViewPosition'](_0x4eb763),_0x267984=_0x55643d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x6906});_0x55643d['writer']['insert'](_0x224b0e,_0x267984),_0x55643d['mapper']['bindElementToMarker'](_0x267984,_0x143bdf['markerName']);}_0xa42841||_0x394211||!_0x360aa5||_0x381604(_0x360aa5);};}class _t extends _0x1f7eeb{constructor(_0x143d31){super(_0x143d31);const _0x394523=_0x143d31['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x394523,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x394523,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x460736=this['editor'],_0x5181c8=_0x460736['plugins']['get'](d),_0x2e4584=_0x5181c8['isReady']?_0x5181c8['diff']['newRevisionId']:null;_0x460736['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e4584);}['refresh'](){const {isReady:_0x1fcfdc,isEnabled:_0x45ec9d,repository:_0x52fec2,diff:_0x1a7a95}=this['editor']['plugins']['get'](d),_0x463c55=_0x1a7a95&&_0x52fec2['getLaterVisibleRevision'](_0x1a7a95['newRevisionId']);this['isEnabled']=_0x1fcfdc&&_0x45ec9d&&Boolean(_0x463c55);}}class yt extends _0x1f7eeb{['_step'];constructor(_0x1d4b54,{direction:_0x11a62c}){super(_0x1d4b54);const _0x2e46a7=_0x1d4b54['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x11a62c?0x1:-0x1,this['listenTo'](_0x2e46a7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2e46a7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2e46a7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1e801a=this['editor'],_0x1059bf=_0x1e801a['plugins']['get'](d),{isNavigationMode:_0x8c8d52,currentChangeNumber:_0xd452fe}=_0x1059bf;let _0x2d1372;if(_0x1059bf['activeChange']=_0x8c8d52?_0x1059bf['diff']['changes']['get'](_0xd452fe+this['_step']):_0x1059bf['diff']['changes']['first'],_0x1059bf['activeChange']['data']['isOnRoot'])_0x2d1372=_0x1e801a['editing']['view']['getDomRoot'](_0x1059bf['activeChange']['rootName']);else{const _0x351da0=_0x1e801a['model']['markers']['get']('revision:'+_0x1059bf['activeChange']['id']);_0x2d1372=_0x571191(_0x1e801a['editing'],_0x351da0);}_0x11494c({'target':_0x2d1372,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x29888d,currentChangeNumber:_0x5c32b4,numberOfChanges:_0x59a6f5,isReady:_0x540f61,isEnabled:_0x467f3b}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x467f3b&&_0x540f61&&_0x59a6f5)&&(!_0x29888d||(0x1===this['_step']?_0x5c32b4<_0x59a6f5-0x1:_0x5c32b4>0x0));}}class _i extends _0x4a15cb{constructor(_0x27b280){super(_0x27b280);const _0x2dddf8=this['bindTemplate'],_0x2499e0=new _0x4f6818(_0x27b280),_0x4c8c45=new _0x4f6818(_0x27b280);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',(_0x45bbe2,_0x1ab488)=>_0x45bbe2&&_0x1ab488>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3226dc,_0x33f4c5,_0x55bd86,_0x247e86)=>{if(!_0x3226dc)return m(_0x27b280,'Loading...');if(!_0x55bd86)return m(_0x27b280,'No\x20changes');const _0xe51cb2=m(_0x27b280,'NUMBER_OF_CHANGES',_0x55bd86);return _0x247e86?m(_0x27b280,'X_OF_Y_CHANGES',[_0x33f4c5+0x1,_0x55bd86]):_0xe51cb2;}),_0x2499e0['set']({'label':m(_0x27b280,'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'}),_0x4c8c45['set']({'label':m(_0x27b280,'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'}),_0x2499e0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4c8c45['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2499e0['on']('execute',()=>this['fire']('execute','backward')),_0x4c8c45['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',_0x2dddf8['if']('_isStatusLabelVisible','ck-hidden',_0x269b94=>!_0x269b94)]},'children':[{'text':_0x2dddf8['to']('isNavigationMode',_0x1c9c50=>_0x1c9c50?m(_0x27b280,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x27b280,'Total')+':\x20')}]},{'text':_0x2dddf8['to']('_statusText')}]},new _0x58e5ac(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2499e0,_0x4c8c45]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5076e7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x208ad8=this['editor']['editing']['view'];_0x208ad8['change'](_0x1f9ec9=>{for(const _0x5cb3a4 of _0x208ad8['document']['roots'])_0x1f9ec9['addClass'](ce,_0x5cb3a4);});}['hide'](){const _0x4259b7=this['editor']['editing']['view'];_0x4259b7['change'](_0x446e59=>{for(const _0x129d46 of _0x4259b7['document']['roots'])_0x446e59['removeClass'](ce,_0x129d46);});}}class g extends _0x5076e7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x2c3910=this['editor'],_0x336375=_0x2c3910['plugins']['get'](d),_0x5063c0=_0x2c3910['plugins']['get'](le);_0x2c3910['ui']['componentFactory']['add']('exitToEditing',_0x203a3c=>{const _0x1a8ffb=new _0x4f6818(_0x203a3c);return _0x1a8ffb['set']({'label':m(_0x203a3c,'Back\x20to\x20editing'),'icon':_0x357001['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1a8ffb,'execute',()=>{_0x2c3910['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1a8ffb;}),_0x2c3910['ui']['componentFactory']['add']('restoreRevision',_0x49a4ca=>{const _0xb2987b=new _0x4f6818(_0x49a4ca);return _0xb2987b['set']({'label':m(_0x49a4ca,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xb2987b['bind']('isEnabled')['to'](_0x2c3910['commands']['get']('restoreRevision')),this['listenTo'](_0xb2987b,'execute',()=>_0x2c3910['execute']('restoreRevision')),_0xb2987b;}),_0x2c3910['ui']['componentFactory']['add']('changesNavigation',_0x2eee53=>{const _0x1b43dc=new _i(_0x2eee53),_0x4c0d8a=_0x2c3910['commands']['get']('showPreviousChange'),_0x3d0b28=_0x2c3910['commands']['get']('showNextChange');return _0x1b43dc['bind']('isBackwardNavigationEnabled')['to'](_0x4c0d8a,'isEnabled'),_0x1b43dc['bind']('isForwardNavigationEnabled')['to'](_0x3d0b28,'isEnabled'),_0x1b43dc['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x336375),this['listenTo'](_0x1b43dc,'execute',(_0x11879f,_0x1b17ee)=>{_0x2c3910['execute']('forward'===_0x1b17ee?'showNextChange':'showPreviousChange');}),_0x1b43dc;}),_0x5063c0['show'](),_0x336375['on']('change:isReady',(_0x193e6c,_0x1dc29b,_0x3d6c03)=>{_0x3d6c03?_0x5063c0['hide']():_0x5063c0['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x28a709,_0x215bcc){super(_0x28a709,_0x215bcc);const _0x4d3753=this['bindTemplate'];this['set']({'label':m(_0x28a709,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x28a709,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4d3753['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 _0x2dccc3=this['fieldView']['element'];this['_tooltipString']=_0x2dccc3['scrollWidth']>_0x2dccc3['clientWidth']&&_0x2dccc3['value']||'';}}class ti extends _0x4a15cb{constructor(_0x20f3e1,_0x1b7f83,_0x30e9fe){super(_0x20f3e1);const _0x382a50=new _0x5e8fce();_0x382a50['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 _0x451a75=['ck','ck-revision-history-sidebar__revision-author'];_0x30e9fe&&_0x451a75['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4eb397=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x20f3e1,_0x30e9fe?'Revision\x20creator':'Revision\x20author')},'children':[_0x382a50,_0x1b7f83['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x451a75},'children':_0x4eb397});}}function ni(_0x59c5e2,_0x1b7f21){const _0x3e8efe=_0x59c5e2['bindTemplate'],_0x2f6747=_0x59c5e2['locale'],_0x41e2ad=_0x2237ca(_0x2f6747);_0x41e2ad['panelPosition']='sw';const _0x55c162=function(_0x3b6fa6,_0x22104e){const _0x22de3f=function(_0x3c4c95,_0x130ce9){const _0x12b0b8=_0x3c4c95['locale'],_0x4a3f11={'Compare\x20against\x20selected':m(_0x12b0b8,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12b0b8,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12b0b8,'Restore\x20this\x20revision')};return _0x130ce9['map'](_0x37e06d=>{const _0x5a0437=_0x4a3f11[_0x37e06d['name']];return _0x5a0437&&_0x5a0437!==_0x37e06d['name']&&(_0x37e06d['name']=_0x5a0437),_0x37e06d;});}(_0x3b6fa6,_0x22104e),_0x40635d=new _0x266183();for(const _0x46c6f9 of _0x22de3f){const _0x251ade={'type':'button','model':new to({'label':_0x46c6f9['name'],'class':_0x46c6f9['class'],'withText':!0x0,'role':'menuitem','_action':_0x46c6f9['action']})};_0x251ade['model']['bind']('isEnabled')['to'](_0x3b6fa6,'isActionsDropdownOpen',_0x3a723b=>'function'!=typeof _0x46c6f9['isEnabled']||(!_0x3a723b||_0x46c6f9['isEnabled'](_0x3b6fa6))),_0x40635d['add'](_0x251ade);}return _0x40635d;}(_0x59c5e2,_0x1b7f21);return _0x59c5e2['bind']('isActionsDropdownOpen')['to'](_0x41e2ad,'isOpen'),_0x41e2ad['buttonView']['set']({'label':m(_0x2f6747,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x357001['threeVerticalDots']}),_0x41e2ad['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e8efe['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3e8efe['to'](_0x3dcf5f=>_0x3dcf5f['stopPropagation']())}}),_0x41e2ad['on']('execute',_0x45be7f=>{_0x59c5e2['isReady']&&'function'==typeof _0x45be7f['source']['_action']&&_0x45be7f['source']['_action'](_0x59c5e2);}),_0x2029e6(_0x41e2ad,_0x55c162,{'role':'menu'}),_0x41e2ad['listenTo'](_0x59c5e2,'change:isActionsDropdownOpen',(_0x2123d5,_0xd14925,_0x13751e)=>{if(_0x13751e)for(const _0xf56ccb of _0x41e2ad['listView']['items']){const _0x304a57=_0xf56ccb['children']['first'],_0x977a3b=_0x1b7f21['find'](_0x19d83c=>_0x19d83c['action']===_0x304a57['_action'])['isVisible'];_0xf56ccb['isVisible']=void 0x0===_0x977a3b||_0x977a3b(_0x59c5e2);}}),_0x41e2ad;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x504a4c(_0x4a15cb){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xfb5914,_0x4a9512,_0x392a11,_0x5a140e){super(_0xfb5914);const _0x8217aa=this['bindTemplate'],_0x2bc56e=function(_0x5eb478,_0x2a3ad3){const _0xce286f=Array['from'](_0x2a3ad3['authors'])['filter'](_0x3f0dbb=>_0x3f0dbb!=_0x2a3ad3['creator']);return _0x2a3ad3['creator']&&_0xce286f['unshift'](_0x2a3ad3['creator']),_0xce286f['map'](_0x4ba3e4=>new ti(_0x5eb478,_0x4ba3e4,_0x4ba3e4==_0x2a3ad3['creator']));}(_0xfb5914,_0x4a9512);this['id']=_0x4a9512['id'],this['_revision']=_0x4a9512,this['_requireRevisionName']=_0x5a140e,this['bind']('name','createdAt')['to'](_0x4a9512),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x13d6b9=>{return _0x5c2b92=_0xfb5914['uiLanguage'],(_0x444262=_0x13d6b9)['toLocaleDateString'](_0x5c2b92,{'month':'long','day':'numeric'})+',\x20'+_0x444262['toLocaleTimeString'](_0x5c2b92,{'hour':'numeric','minute':'numeric'});var _0x5c2b92,_0x444262;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xfb5914,_0x242cba),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x13f294=>_0x13f294||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x200b2f,_0x3789b9)=>_0x200b2f&&_0x3789b9),this['revisionActionsView']=_0x392a11&&_0x392a11['length']?ni(this,_0x392a11):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x8217aa['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x8217aa['if']('isEnabled','ck-disabled',_0x54e619=>!_0x54e619),_0x8217aa['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x8217aa['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x8217aa['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':_0x8217aa['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':_0x2bc56e}]},this['revisionActionsView']],'on':{'click':_0x8217aa['to'](_0x29a887=>{_0x29a887['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4aaaf1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4aaaf1,'change',()=>{this['_requireRevisionName']&&!_0x4aaaf1['value']||this['fire']('setName',{'id':this['id'],'name':_0x4aaaf1['value']}),_0x4aaaf1['value']||(_0x4aaaf1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x30c218,_0x4cc8e3){const _0x3f2690=_0x148cea['fromJSDate'](_0x30c218)['setLocale'](_0x4cc8e3),_0x4af7d9=_0x148cea['local'](),_0x410bf3=_0x4af7d9['minus']({'days':0x1})['startOf']('day');let _0x54e24e,_0x56fac4;return _0x3f2690['hasSame'](_0x4af7d9,'day')?(_0x54e24e=_0x3f2690['startOf']('day')['toJSDate'](),_0x56fac4=_0x3f2690['toRelativeCalendar']()):_0x3f2690['hasSame'](_0x410bf3,'day')?(_0x54e24e=_0x410bf3['toJSDate'](),_0x56fac4=_0x3f2690['toRelativeCalendar']()):_0x3f2690['hasSame'](_0x4af7d9,'week')?(_0x54e24e=_0x3f2690['startOf']('week')['toJSDate'](),_0x56fac4=_0x3f2690['weekdayLong']||''):_0x3f2690['hasSame'](_0x4af7d9,'year')?(_0x54e24e=_0x3f2690['startOf']('month')['toJSDate'](),_0x56fac4=_0x3f2690['monthLong']||''):(_0x54e24e=_0x3f2690['startOf']('year')['toJSDate'](),_0x56fac4=String(_0x3f2690['year'])),{'startDate':_0x54e24e,'localizedPeriodName':_0x56fac4};}class mi extends _0x4a15cb{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xed7d66,_0xa58ba5,_0x5416a9,_0x30dc4b){super(_0xed7d66);const _0x1bdf3f=di(_0xa58ba5,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xa58ba5,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5416a9,this['_requireRevisionName']=_0x30dc4b,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':_0x1bdf3f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x516352){const _0x314a3a=new ai(this['locale'],_0x516352,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x314a3a);}['removeRevision'](_0x5b51de){const _0x1d3c32=this['revisionViews']['find'](_0x4e7176=>_0x4e7176['id']===_0x5b51de['id']);this['revisionViews']['remove'](_0x1d3c32);}}class as extends _0x4a15cb{constructor(_0x3b3466){super(_0x3b3466);const _0x2962fe=new _0x5e8fce();_0x2962fe['content']=_0x357001['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2962fe,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3b3466,'Revision\x20history')]}]});}}class ci extends _0x4a15cb{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d1c4c,_0x34ae24,_0x151c7d,_0x4c606e){super(_0x3d1c4c);const _0x783edc=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x34ae24,this['_revisionActions']=_0x151c7d,this['_requireRevisionName']=_0x4c606e,this['on']('select',(_0x35009,_0x17c228)=>{this['fire']('revisionSelected',_0x17c228);}),this['on']('setName',(_0x16ad7f,_0x170429)=>{this['fire']('revisionSetName',_0x170429);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3d1c4c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x783edc['if']('isEnabled','ck-disabled',_0x553403=>!_0x553403)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5b5190 of this['_revisions'])this['_addRevision'](_0x5b5190);this['_revisions']['on']('add',(_0x13de91,_0x14ee81)=>{this['_addRevision'](_0x14ee81);}),this['_revisions']['on']('remove',(_0x3aa374,_0x564737)=>{this['_removeRevision'](_0x564737);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x17e521=>_0x17e521['revisionViews']['map'](_0x3b4882=>_0x3b4882))['flat']();}['selectRevision'](_0x13dcd3){for(const _0x2b8e77 of this['revisionViews'])_0x13dcd3&&_0x13dcd3['id']===_0x2b8e77['id']?_0x2b8e77['select']():_0x2b8e77['deselect']();}['highlightRevisions'](_0x1c8000){for(const _0x167cbc of this['revisionViews'])_0x1c8000['some'](({id:_0xfa0642})=>_0xfa0642===_0x167cbc['id'])?_0x167cbc['highlight']():_0x167cbc['unhighlight']();}['_addRevision'](_0x4600fb){const _0x50bb37=di(_0x4600fb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x125890=this['timePeriodViews']['get'](0x0);_0x125890&&_0x125890['startDate']['getTime']()===_0x50bb37['getTime']()||(_0x125890=new mi(this['locale'],_0x50bb37,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x125890)),_0x125890['addRevision'](_0x4600fb);}['_removeRevision'](_0x30f0d6){const _0x322df4=di(_0x30f0d6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x322df4)['removeRevision'](_0x30f0d6);}['_getTimePeriodViewByStartDate'](_0x4cd434){return this['timePeriodViews']['find'](_0x1d55d6=>_0x1d55d6['startDate']['getTime']()===_0x4cd434['getTime']());}}class w extends _0x5076e7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x18d1d6,uid as _0x44825c,Collection as _0x5238b7,logWarning as _0x1b29aa,FocusTracker as _0x23058c,KeystrokeHandler as _0x9d560c,scrollViewportToShowTarget as _0x503e76,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x461a1a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x30ebd2,set as _0x188a00,unset as _0x1e1d30,isEqual as _0x3f09a7}from'lodash-es';import{Plugin as _0x29e489,PendingActions as _0x26a976,icons as _0x4a7550,Command as _0x3ed6a1,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xf4fc7b,getMarkerDomElement as _0x59db08,ConfirmMixin as _0x324c5b,sanitizeEditorConfig as _0x5ef743}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1716b3,Element as ft,Range as vt,ViewUIElement as _0x49a806,ViewRawElement as _0x53e239,ViewEmptyElement as _0x1fd110,ViewAttributeElement as _0x1a7a3c,ViewContainerElement as _0x8712c5,Position as gt,ViewText as _0x528d27,ViewElement as _0x4f78dd,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0xb5bc71,injectCssTransitionDisabler as ts,submitHandler as _0xed7b1e,LabeledFieldView as nt,createLabeledInputText as _0x396089,createDropdown as _0x417cf8,ListView as te,ListItemView as _0x12a450,ButtonView as _0xe84945,MenuBarMenuView as _0x568570,MenuBarMenuListView as _0x2b2504,MenuBarMenuListItemView as _0x2a9944,MenuBarMenuListItemButtonView as _0x433f31,ContextualBalloon as _0xb9a914,ToolbarSeparatorView as _0xb4512e,IconView as _0x29d439,addListToDropdown as _0x1105a3,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5eecc5}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x18d1d6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5e7646){super(),this['id']=_0x5e7646['id']||_0x44825c(),this['creator']=_0x5e7646['creator']||null,this['authors']=_0x5e7646['authors']||[],this['diffData']=_0x5e7646['diffData']||null,this['toVersion']=_0x5e7646['toVersion']||0x0,this['fromVersion']=_0x5e7646['fromVersion']||0x0,this['set']('name',_0x5e7646['name']||''),this['set']('createdAt',_0x5e7646['createdAt']||new Date()),this['set']('attributes',_0x5e7646['attributes']||{});}['setName'](_0x25f782){this['_update']({'name':_0x25f782});}['setAttribute'](_0xfe5880,_0x7d0b3a){const _0x185444=_0x30ebd2(this['attributes']);_0x188a00(_0x185444,_0xfe5880,_0x7d0b3a),this['_update']({'attributes':_0x185444});}['removeAttribute'](_0x49c13a){const _0x306326=_0x30ebd2(this['attributes']);_0x1e1d30(_0x306326,_0x49c13a),this['_update']({'attributes':_0x306326});}['_update'](_0x345173,_0x21c5b8=!0x1){let _0x39bd0a=!0x1;const _0x23dbf={'id':this['id']},_0x52fe47=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x36de96 of _0x52fe47){const _0x5b4005=_0x345173[_0x36de96];void 0x0!==_0x5b4005&&_0x5b4005!==this[_0x36de96]&&(this[_0x36de96]=_0x5b4005,_0x23dbf[_0x36de96]=_0x5b4005,_0x39bd0a=!0x0);}_0x39bd0a&&(_0x23dbf['authors']&&(_0x23dbf['authorsIds']=_0x23dbf['authors']['map'](_0x496173=>_0x496173['id']),delete _0x23dbf['authors']),this['fire']('_update',_0x23dbf,_0x21c5b8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1efe53=>_0x1efe53['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x29e489{['_revisions'];static get['requires'](){return[_0xf4fc7b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x13bf81){super(_0x13bf81),this['_revisions']=new _0x5238b7();}['afterInit'](){!async function(_0xae8842){const _0x364623=_0x43bba4([0x30,0x76,0x56,0x38,0x32,0x47,0x46,0x63,0x4f,0x67,0x36,0x5a,0x66,0x44,0x62,0x73,0x51,0x42,0x43,0x4c,0x71,0x52,0x4d,0x41,0x6b,0x65,0x74,0x33,0x48,0x45,0x54,0x6c,0x4e,0x31,0x50,0x4a,0x37,0x35,0x6f,0x79,0x6d,0x6a,0x34,0x55,0x61,0x70,0x6e,0x59,0x77,0x7a,0x49,0x4b,0x57,0x72,0x69,0x53,0x75,0x68,0x78,0x64,0x39,0x58]),_0x1f6e65=0xeb829,_0x9c0b1b=0x58661761,_0x26ec76=0x586149b1^_0x9c0b1b,_0x14d19f=window[_0x43bba4([0x44,0x61,0x74,0x65])][_0x43bba4([0x6e,0x6f,0x77])](),_0x47b656=_0xae8842[_0x43bba4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x241d45=new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49156d=>{_0x47b656[_0x43bba4([0x6f,0x6e,0x63,0x65])](_0x43bba4([0x72,0x65,0x61,0x64,0x79]),_0x49156d);}),_0x4cd799={[_0x43bba4([0x6b,0x74,0x79])]:_0x43bba4([0x45,0x43]),[_0x43bba4([0x75,0x73,0x65])]:_0x43bba4([0x73,0x69,0x67]),[_0x43bba4([0x63,0x72,0x76])]:_0x43bba4([0x50,0x2d,0x32,0x35,0x36]),[_0x43bba4([0x78])]:_0x43bba4([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]),[_0x43bba4([0x79])]:_0x43bba4([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]),[_0x43bba4([0x61,0x6c,0x67])]:_0x43bba4([0x45,0x53,0x32,0x35,0x36])},_0x1c31ce=_0x47b656[_0x43bba4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43bba4([0x67,0x65,0x74])](_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47fc7b(){let _0x15a298,_0x3198af=null,_0x3ef175=null;try{if(_0x1c31ce==_0x43bba4([0x47,0x50,0x4c]))return _0x43bba4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15a298=_0x15d51c(),!_0x15a298)return _0x43bba4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15a298[_0x43bba4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ef175=_0x4584ab(_0x15a298[_0x43bba4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15a298[_0x43bba4([0x6a,0x74,0x69])])),await _0x370776()?_0xeb7b9f()?_0x462a27()?_0x43bba4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e92e0()?(_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43bba4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3198af=_0x3b7c94(_0x43bba4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43bba4([0x74,0x72,0x69,0x61,0x6c])&&(_0x3198af=_0x3b7c94(_0x43bba4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10cc29()):_0x43bba4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43bba4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43bba4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x69aa60){return _0x43bba4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x462a27(){const _0x14a7ea=[_0x43bba4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43bba4([0x74,0x72,0x69,0x61,0x6c])][_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14d19f/0x3e8:0xe10*_0x26ec76;return _0x15a298[_0x43bba4([0x65,0x78,0x70])]<_0x14a7ea;}function _0xeb7b9f(){const _0x3da541=_0x15a298[_0x43bba4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3da541)return!0x1;if(_0x3da541[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x2a])))return!0x0;if(_0x3da541[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x52,0x48])))return!0x0;if(_0x3da541[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x52,0x52,0x48]))){if(_0x192a4e())return!0x0;if(_0xef2ba3()||_0x1d3d4c())return!0x0;}return!0x1;}function _0x3e92e0(){const _0x3683d9=_0x15a298[_0x43bba4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3683d9||0x0==_0x3683d9[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a6d28}=new URL(window[_0x43bba4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3683d9[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a6d28))return!0x0;const _0x3bdede=_0x3a6d28[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e]));return _0x3683d9[_0x43bba4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x314a8c=>_0x314a8c[_0x43bba4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bba4([0x2a])))[_0x43bba4([0x6d,0x61,0x70])](_0xdd344a=>_0xdd344a[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e])))[_0x43bba4([0x73,0x6f,0x6d,0x65])](_0x55431f=>_0x3bdede[_0x43bba4([0x65,0x76,0x65,0x72,0x79])]((_0x467afb,_0x4b82ee)=>_0x55431f[_0x4b82ee]===_0x467afb||_0x55431f[_0x4b82ee]===_0x43bba4([0x2a])));}function _0x10cc29(){return _0x3198af&&_0x3ef175?new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9b31,_0x399494)=>{_0x3198af[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x5b9b31,_0x399494),_0x3ef175[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x440c0a=>{_0x440c0a!=_0x43bba4([0x56,0x61,0x6c,0x69,0x64])&&_0x5b9b31(_0x440c0a);},_0x399494);}):_0x3198af||_0x3ef175||_0x43bba4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4584ab(_0x2c5be2,_0x1915d7){return new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x213e7f=>{if(_0x44073e())return _0x213e7f(_0x43bba4([0x56,0x61,0x6c,0x69,0x64]));_0x3f19d2(),_0x47b656[_0x43bba4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43bba4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f384c=!0x1;const _0x2b1487=_0x44825c();function _0x19158f(_0x15be9e){return!!_0x15be9e&&(typeof _0x15be9e===_0x43bba4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15be9e===_0x43bba4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15be9e[_0x43bba4([0x74,0x68,0x65,0x6e])]===_0x43bba4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15be9e[_0x43bba4([0x63,0x61,0x74,0x63,0x68])]===_0x43bba4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5da086(_0x1e0ea1){_0xf586ed(_0x1e0ea1)[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x196321=>{if(!_0x196321||_0x196321[_0x43bba4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43bba4([0x6f,0x6b]))return _0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48d9e7(_0x5d1b7d(_0x2b1487+_0x1915d7))!=_0x196321[_0x43bba4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43bba4([0x56,0x61,0x6c,0x69,0x64]);})[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x364cef=>(_0x255764(),_0x364cef),()=>{const _0x52e97b=_0x24229();return null==_0x52e97b?(_0x255764(),_0x43bba4([0x56,0x61,0x6c,0x69,0x64])):_0x43bba4(_0x14d19f-_0x52e97b>(0x7c6a9361^_0x9c0b1b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x213e7f)[_0x43bba4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x213e7f(_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e5933=0x5850f9e1^_0x9c0b1b;function _0x255764(){const _0x123e11=_0x43bba4([0x6c,0x6c,0x63,0x74,0x2d])+_0x48d9e7(_0x5d1b7d(_0x2c5be2)),_0x471675=_0x35a900(_0x48d9e7(window[_0x43bba4([0x4d,0x61,0x74,0x68])][_0x43bba4([0x63,0x65,0x69,0x6c])](_0x14d19f/_0x1e5933)));window[_0x43bba4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43bba4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x123e11,_0x471675);}function _0x24229(){const _0x3ac9a9=_0x43bba4([0x6c,0x6c,0x63,0x74,0x2d])+_0x48d9e7(_0x5d1b7d(_0x2c5be2)),_0x2b8b51=window[_0x43bba4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43bba4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ac9a9);return _0x2b8b51?window[_0x43bba4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35a900(_0x2b8b51),0x10)*_0x1e5933:null;}function _0xf586ed(_0x17e085){return new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3276fd,_0x5945ec)=>{_0x17e085[_0x43bba4([0x74,0x68,0x65,0x6e])](_0x3276fd,_0x5945ec),window[_0x43bba4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5945ec,0x5867c3a1^_0x9c0b1b);});}}_0x47b656[_0x43bba4([0x6f,0x6e])](_0x43bba4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x401e94,_0xf2960)=>{if(_0xf2960[0x0]!=_0x2c5be2)return _0x213e7f(_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf2960[0x1]={..._0xf2960[0x1],[_0x43bba4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b1487};},{[_0x43bba4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43bba4([0x68,0x69,0x67,0x68])}),_0x47b656[_0x43bba4([0x6f,0x6e])](_0x43bba4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2117e1=>{_0x19158f(_0x2117e1[_0x43bba4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f384c=!0x0,_0x5da086(_0x2117e1[_0x43bba4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43bba4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43bba4([0x6c,0x6f,0x77])}),_0x241d45[_0x43bba4([0x74,0x68,0x65,0x6e])](()=>{_0x3f384c||_0x213e7f(_0x43bba4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44073e(){return _0x47b656[_0x43bba4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43bba4([0x76,0x69,0x65,0x77])][_0x43bba4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43bba4([0x61,0x75,0x74,0x6f]);}function _0x3f19d2(){_0x47b656[_0x43bba4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43bba4([0x76,0x69,0x65,0x77])][_0x43bba4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43bba4([0x61,0x75,0x74,0x6f]);}}function _0x3b7c94(_0x3aac4a){const _0x27c67d=[new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134429=>setTimeout(_0x134429,0x586f29ad^_0x9c0b1b)),_0x241d45[_0x43bba4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7bf4=>{const _0x13db83=0x58661766^_0x9c0b1b,_0x1d8047=_0xae8842[_0x43bba4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5d6279(){_0x1d8047[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x13db83&&_0x1e7bf4();}_0x5d6279(),_0x1d8047[_0x43bba4([0x6f,0x6e])](_0x43bba4([0x61,0x64,0x64]),_0x5d6279);})),new window[(_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38092b=>{function _0x498cfe(){for(const _0x3bceee in window)if(window[_0x43bba4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x43bba4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3bceee))&&window[_0x3bceee]==_0x1f6e65)return _0x38092b();_0x47b656[_0x43bba4([0x73,0x74,0x61,0x74,0x65])]!=_0x43bba4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x43bba4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x498cfe,0x586604e9^_0x9c0b1b);}_0x27379a(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x498cfe();})];return window[_0x43bba4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43bba4([0x72,0x61,0x63,0x65])](_0x27c67d)[_0x43bba4([0x74,0x68,0x65,0x6e])](()=>_0x3aac4a);}async function _0x2281a9(){if(await _0x241d45,_0x27379a(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3aae00=_0xae8842[_0x43bba4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x370e78=_0xae8842[_0x43bba4([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])](_0x3aae00[_0x43bba4([0x69,0x64])]),_0x2afcba=_0x1db485(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2afcba[_0x43bba4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3aae00['id'],_0x370e78?_0x370e78['id']:null,!0x0),_0x2afcba[_0x43bba4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2afcba[_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2afcba[_0x43bba4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3feb2f,void(_0x2afcba[_0x43bba4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3feb2f);}if(_0x27379a(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5e1f85=_0x1db485(_0x43bba4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5e1f85[_0x43bba4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5e1f85[_0x43bba4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5e1f85[_0x43bba4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3feb2f,_0x5e1f85[_0x43bba4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3feb2f;}_0x47b656[_0x43bba4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43bba4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3feb2f,_0x47b656[_0x43bba4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43bba4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3feb2f,_0x47b656[_0x43bba4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43bba4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x192a4e(){return _0x27379a(_0x43bba4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1db485(_0x43bba4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x43bba4([0x73,0x74,0x61,0x74,0x65])]==_0x43bba4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xef2ba3(){return _0x27379a(_0x43bba4([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 _0x1d3d4c(){return _0x27379a(_0x43bba4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5b4272(_0x5e83c5){const _0x5d5f67=_0x1b6fa8();_0x47b656[_0x5d5f67]=_0x43bba4([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])+_0x5e83c5,_0x5e83c5[_0x43bba4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x43bba4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1b6fa8()]=_0x1f6e65),_0x5e83c5!=_0x43bba4([0x56,0x61,0x6c,0x69,0x64])&&_0x2281a9();}function _0x1b6fa8(){const _0x237c02=window[_0x43bba4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43bba4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43bba4([0x6e,0x6f,0x77])]())[_0x43bba4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43bba4([0x2e]),'');let _0x206a20=_0x43bba4([0x76]);for(let _0x1b499f=0x0;_0x1b499f<_0x237c02[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b499f+=0x2){let _0x421e63=window[_0x43bba4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x237c02[_0x43bba4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b499f,_0x1b499f+0x2));_0x421e63>=_0x364623[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x421e63-=_0x364623[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x206a20+=_0x364623[_0x421e63];}return _0x206a20;}function _0x15d51c(){const _0x2abdbd=_0x1c31ce[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e]));if(0x3!=_0x2abdbd[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fb190(_0x2abdbd[0x1]);function _0x4fb190(_0x37d6bd){const _0x374e94=_0xe911a5(_0x37d6bd);return _0x374e94&&_0x245fb4()?_0x374e94:null;function _0x245fb4(){const _0x50f686=_0x374e94[_0x43bba4([0x6a,0x74,0x69])],_0x14ea02=window[_0x43bba4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50f686[_0x43bba4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50f686[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d8edd={..._0x374e94,[_0x43bba4([0x6a,0x74,0x69])]:_0x50f686[_0x43bba4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50f686[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d8edd[_0x43bba4([0x76,0x63])],_0x5d1b7d(_0x2d8edd)==_0x14ea02;}}}async function _0x370776(){let _0x175ec9=!0x0;try{const _0x1551ca=_0x1c31ce[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])](_0x43bba4([0x2e])),[_0x19a121,_0x4dec62,_0x363a57]=_0x1551ca;return _0x63186c(_0x19a121),await _0x2459cc(_0x19a121,_0x4dec62,_0x363a57),_0x175ec9;}catch(_0x57af9a){return!0x1;}function _0x63186c(_0x24c14a){const _0x2dbc83=_0xe911a5(_0x24c14a);_0x2dbc83&&_0x2dbc83[_0x43bba4([0x61,0x6c,0x67])]==_0x43bba4([0x45,0x53,0x32,0x35,0x36])||(_0x175ec9=!0x1);}async function _0x2459cc(_0x231c98,_0x308294,_0x35f852){const _0x745be6=window[_0x43bba4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43bba4([0x66,0x72,0x6f,0x6d])](_0xfebe14(_0x35f852),_0x2f6cfe=>_0x2f6cfe[_0x43bba4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe69a24=new window[(_0x43bba4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43bba4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x231c98+_0x43bba4([0x2e])+_0x308294),_0x59be68=window[_0x43bba4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43bba4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59be68)return;const _0x2bfab3=await _0x59be68[_0x43bba4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43bba4([0x6a,0x77,0x6b]),_0x4cd799,{[_0x43bba4([0x6e,0x61,0x6d,0x65])]:_0x43bba4([0x45,0x43,0x44,0x53,0x41]),[_0x43bba4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43bba4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43bba4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59be68[_0x43bba4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43bba4([0x6e,0x61,0x6d,0x65])]:_0x43bba4([0x45,0x43,0x44,0x53,0x41]),[_0x43bba4([0x68,0x61,0x73,0x68])]:{[_0x43bba4([0x6e,0x61,0x6d,0x65])]:_0x43bba4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2bfab3,_0x745be6,_0xe69a24)||(_0x175ec9=!0x1);}}function _0xe911a5(_0x3a6735){return _0x3a6735[_0x43bba4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43bba4([0x65,0x79]))?JSON[_0x43bba4([0x70,0x61,0x72,0x73,0x65])](_0xfebe14(_0x3a6735)):null;}function _0xfebe14(_0x5374a9){return window[_0x43bba4([0x61,0x74,0x6f,0x62])](_0x5374a9[_0x43bba4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43bba4([0x2b]))[_0x43bba4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43bba4([0x2f])));}function _0x5d1b7d(_0x3c2c68){let _0x528a6c=0x1505;function _0x5e2156(_0x58ce86){for(let _0x4809f2=0x0;_0x4809f2<_0x58ce86[_0x43bba4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4809f2++){const _0x1fb45b=_0x58ce86[_0x43bba4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4809f2);_0x528a6c=(_0x528a6c<<0x5)+_0x528a6c+_0x1fb45b,_0x528a6c&=_0x528a6c;}}function _0x5b2849(_0x5f4b6c){Array[_0x43bba4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f4b6c)?_0x5f4b6c[_0x43bba4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b2849):_0x5f4b6c&&typeof _0x5f4b6c==_0x43bba4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43bba4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f4b6c)[_0x43bba4([0x73,0x6f,0x72,0x74])]()[_0x43bba4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55ad75,_0x1207a2])=>{_0x5e2156(_0x55ad75),_0x5b2849(_0x1207a2);}):_0x5e2156(window[_0x43bba4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f4b6c));}return _0x5b2849(_0x3c2c68),_0x528a6c>>>0x0;}function _0x48d9e7(_0x3a35aa){return _0x3a35aa[_0x43bba4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43bba4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43bba4([0x30]));}function _0x35a900(_0x390bfe){return _0x390bfe[_0x43bba4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43bba4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43bba4([0x6a,0x6f,0x69,0x6e])]('');}function _0x27379a(_0x3f4278){return _0x47b656[_0x43bba4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43bba4([0x68,0x61,0x73])](_0x3f4278);}function _0x1db485(_0x37a4e9){return _0x47b656[_0x43bba4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43bba4([0x67,0x65,0x74])](_0x37a4e9);}function _0x3feb2f(){}function _0x43bba4(_0x349ff7){return _0x349ff7['map'](_0x5a53fd=>String['fromCharCode'](_0x5a53fd))['join']('');}_0x5b4272(await _0x47fc7b());}(this);}['createRevision'](_0x3a9c71){const _0x274023=this['editor']['plugins']['get']('Users');return new a({'id':_0x3a9c71['id'],'name':_0x3a9c71['name'],'creator':_0x3a9c71['creatorId']?_0x274023['getUser'](_0x3a9c71['creatorId']):null,'diffData':_0x3a9c71['diffData']||_0x3a9c71['data'],'authors':_0x3a9c71['authorsIds']['map'](_0x203091=>_0x274023['getUser'](_0x203091)),'createdAt':new Date(_0x3a9c71['createdAt']),'attributes':_0x3a9c71['attributes'],'fromVersion':_0x3a9c71['fromVersion'],'toVersion':_0x3a9c71['toVersion']});}['addRevision'](_0x50eca2,_0x4dc049=0x0){this['_revisions']['add'](_0x50eca2,_0x4dc049);}['getRevision'](_0x53bbcd){return this['_revisions']['get'](_0x53bbcd);}['getRevisions'](_0x535c0a={'toJSON':!0x1}){const _0x56b47a=Array['from'](this['_revisions']);return _0x56b47a['reverse'](),_0x535c0a['toJSON']?_0x56b47a['map'](_0x4e23a7=>_0x4e23a7['toJSON']()):_0x56b47a;}['getIndex'](_0x5885ed){return this['_revisions']['getIndex'](_0x5885ed);}['getEarlierVisibleRevision'](_0x4530e5){const [,_0xe5e168]=this['getRevisionsIterator'](_0x4530e5,{'direction':'earlier'});return _0xe5e168;}['getLaterVisibleRevision'](_0x19558b){const [,_0x38e615]=this['getRevisionsIterator'](_0x19558b,{'direction':'later'});return _0x38e615;}['getRevisionsInDiff'](_0x419d18){const _0x5b48a7=[];for(const _0x147ca5 of this['getRevisionsIterator'](_0x419d18['newRevisionId']))if(_0x5b48a7['push'](_0x147ca5),_0x147ca5['id']===_0x419d18['oldRevisionId'])break;return _0x5b48a7;}*['getRevisionsIterator'](_0xbe067c,{direction:_0x554828='earlier',filter:_0x4d0af2=()=>!0x0}={}){const _0x380e2a='earlier'===_0x554828?0x1:-0x1;let _0x328175=this['_revisions']['get'](_0xbe067c),_0x3aa058=this['getIndex'](_0x328175);for(yield _0x328175;_0x328175;){if(_0x3aa058+=_0x380e2a,_0x328175=this['getRevision'](_0x3aa058),!_0x328175)return;_0x4d0af2(_0x328175)&&(yield _0x328175);}}}function m(_0x5340cb,_0x19ed95,_0x253588){const t=_0x5340cb['t'];switch(_0x19ed95){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'},_0x253588);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x253588);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 P={'c':_0x8712c5,'a':_0x1a7a3c,'e':_0x1fd110,'r':_0x53e239,'u':_0x49a806};class l extends _0x29e489{['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[_0xf4fc7b,j,_0x26a976];}constructor(_0x447868){super(_0x447868),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x31a8f0=_0x44825c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x31a8f0},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 _0xd86036=this['repository']['getRevision'](0x0),_0x207457=_0xd86036&&null===_0xd86036['creator']?_0xd86036:null;if(this['_continueCurrentRevision']=!!_0x207457&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x53b4e9=this['_source']['getCurrentRevisionId'](),_0x45b054=this['repository']['getRevision'](_0x53b4e9);if(_0x45b054)this['_startingVersion']=_0x45b054['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5bb69c=this['_source']['history']['_operations']['find'](_0x172ec0=>!_0x172ec0['_isInit']),_0x337ee9=_0x5bb69c?_0x5bb69c['baseVersion']:this['_source']['history']['version'];_0xd86036?(_0xd86036['toVersion']<_0x337ee9&&_0xd86036['_update']({'toVersion':_0x337ee9}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x207457['id'],this['_startingVersion']=_0x207457['fromVersion']):(this['_startingVersion']=_0xd86036['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x337ee9,this['_continueCurrentRevision']=!0x1);}}else _0x207457&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x207457['toVersion'],this['editor']['model']['document']['history']['version']),_0x207457['fromVersion']===_0x207457['toVersion']?(0x0!==_0x207457['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x207457['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x207457['id'],this['_startingVersion']=_0x207457['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',_0x207e8e=>!_0x207e8e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x515cec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ad71f;for(const _0x22308d in _0x515cec){const _0x44c6c2=_0x22308d,_0x490b28=_0x515cec[_0x44c6c2];if('revisionHistoryLicenseKeyValid'==_0x490b28||'revisionHistoryLicenseKeyInvalid'==_0x490b28||'revisionHistoryLicenseKeyExpired'==_0x490b28||'revisionHistoryLicenseKeyDomainLimit'==_0x490b28||'revisionHistoryLicenseKeyNotAllowed'==_0x490b28||'revisionHistoryLicenseKeyEvaluationLimit'==_0x490b28||'revisionHistoryLicenseKeyTrialLimit'==_0x490b28||'revisionHistoryLicenseKeyUsageLimit'==_0x490b28){delete _0x515cec[_0x44c6c2],_0x3ad71f=_0x490b28,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3ad71f&&_0x515cec['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3ad71f&&_0x515cec['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3ad71f&&_0x515cec['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3ad71f&&_0x515cec['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x207dfd=this['repository']['getRevision'](0x0),_0x400abd=await this['getRevisionDocumentData'](_0x207dfd),_0x231cc9=await this['getRevisionRootsAttributes'](_0x207dfd);this['_replaceEditorDataWithRevisionData'](_0x400abd,_0x231cc9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5f09cf){this['_source']=_0x5f09cf;}async['update'](){const _0x41adc3=await this['_source']['getLatestVersion']();if(_0x41adc3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x20d2de=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x41adc3});_0x20d2de['authors']=_0x20d2de['authorsIds']['map'](_0x33a4b2=>this['editor']['plugins']['get']('Users')['getUser'](_0x33a4b2)),this['currentRevision']['_update'](_0x20d2de);}}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'](_0xa51658={},_0x11e3c5=null){const _0x4bd0e0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x11e3c5>this['currentRevision']['toVersion']&&(_0x11e3c5=null),null===_0x11e3c5&&(_0x11e3c5=await this['_source']['getLatestVersion']());const _0x1c22d9=this['_getFromVersion'](_0x11e3c5),_0x536c1a=this['buildRevisionData']({'from':_0x1c22d9,'to':_0x11e3c5});if(this['currentRevision']['toVersion']<_0x11e3c5){const _0x40220f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x11e3c5,'to':_0x11e3c5});_0x40220f['authors']=[],_0x40220f['authorsIds']=[],_0x40220f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x40220f,!0x0),delete _0x40220f['authors'],_0x4bd0e0['push'](_0x40220f);}_0xa51658['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xa51658['name']=_0xa51658['name']||null,_0xa51658['id']=_0xa51658['id']||_0x44825c(),_0xa51658={..._0xa51658,..._0x536c1a};const _0x43634f=this['addRevisionData'](_0xa51658);_0x4bd0e0['push'](_0xa51658);const _0x1ef769=this['repository']['getIndex'](_0x43634f);if(0x0!==_0x1ef769){const _0x1098fd=this['repository']['getRevision'](_0x1ef769-0x1);if(_0x1098fd['fromVersion']!==_0x11e3c5){const _0x3cb4cc=this['_revisionDataBuilder']['getData'](_0x11e3c5,_0x1098fd['toVersion']),_0x57e87d={'id':_0x1098fd['id'],'diffData':_0x3cb4cc['diffData'],'authorsIds':_0x3cb4cc['authorsIds'],'authors':_0x3cb4cc['authorsIds']['map'](_0x5e0d47=>this['editor']['plugins']['get']('Users')['getUser'](_0x5e0d47)),'fromVersion':_0x11e3c5};_0x1098fd===this['currentRevision']&&(_0x57e87d['createdAt']=new Date(_0xa51658['createdAt']['getTime']()+0xa)),_0x1098fd['_update'](_0x57e87d,!0x0),delete _0x57e87d['authors'],_0x4bd0e0['push'](_0x57e87d);}}if(this['adapter']){for(const _0x1135ce of _0x4bd0e0)this['_bufferUpdate'](_0x1135ce['id'],_0x1135ce,!0x0);this['sendBufferedUpdates']();}return _0x43634f;}['addRevisionData'](_0x4aa765){const _0x270d23=this['repository']['createRevision'](_0x4aa765);return this['adapter']&&_0x270d23['on']('_update',(_0x5d933a,_0x1a2e78,_0x16607c)=>{_0x16607c||(this['_bufferUpdate'](_0x1a2e78['id'],_0x1a2e78,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x270d23,this['_findInsertionIndex'](_0x270d23)),_0x270d23;}async['getRevisionDocumentData'](_0x54f3d7){await this['_loadRevisionData'](_0x54f3d7);const _0x3932b6={};for(const _0x3bd651 in _0x54f3d7['diffData']){if(_0x54f3d7['diffData'][_0x3bd651]['attachChange']&&!_0x54f3d7['diffData'][_0x3bd651]['attachChange']['isAttached'])continue;const _0x59bc38=this['_removeRevisionMarkers'](JSON['parse'](_0x54f3d7['diffData'][_0x3bd651]['insertions'])),_0x5caf1d=this['editor']['editing']['view']['document'],_0x5c63a2=new _0x1716b3(_0x5caf1d,_0x59bc38['map'](_0x248e3c=>C(_0x248e3c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3932b6[_0x3bd651]=this['editor']['data']['processor']['toData'](_0x5c63a2),this['editor']['data']['processor']['useFillerType']('default');}return _0x3932b6;}async['getRevisionRootsAttributes'](_0x178eda){await this['_loadRevisionData'](_0x178eda);const _0x17fc6e={};for(const _0x37fcf3 in _0x178eda['diffData'])_0x178eda['diffData'][_0x37fcf3]['attachChange']&&!_0x178eda['diffData'][_0x37fcf3]['attachChange']['isAttached']||(_0x17fc6e[_0x37fcf3]=_0x178eda['diffData'][_0x37fcf3]['attributesAfter']||{});return _0x17fc6e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x131e22=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x17f79b=0x0;_0x17f79b<_0x131e22['length'];_0x17f79b++){const _0x485c6e=_0x131e22[_0x17f79b];let _0x16bd27=!0x1;for(const _0x4ce64e of Object['keys'](_0x485c6e))void 0x0===_0x485c6e[_0x4ce64e]?delete _0x485c6e[_0x4ce64e]:'id'!==_0x4ce64e&&(_0x16bd27=!0x0);_0x16bd27||(_0x131e22[_0x17f79b]=null);}if(_0x131e22=_0x131e22['filter'](_0x555ed8=>null!==_0x555ed8),!_0x131e22['length'])return;for(let _0x5dde8e=0x0;_0x5dde8e<_0x131e22['length'];_0x5dde8e++){const _0x29dec7=_0x131e22[_0x5dde8e];void 0x0!==_0x29dec7['fromVersion']&&void 0x0===_0x29dec7['toVersion']&&(_0x29dec7['toVersion']=this['repository']['getRevision'](_0x29dec7['id'])['toVersion']),void 0x0!==_0x29dec7['toVersion']&&void 0x0===_0x29dec7['fromVersion']&&(_0x29dec7['fromVersion']=this['repository']['getRevision'](_0x29dec7['id'])['fromVersion']);}const _0x4380c2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x131e22,_0x4380c2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x163373=>{if(_0x163373){for(const _0x2ab991 of _0x163373)this['setRevisionData']({'id':_0x2ab991['id'],'createdAt':_0x2ab991['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x375336,_0x102257){let _0x32e796=this['editor']['config']['get']('initialData'),_0x330e60=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x32e796){_0x32e796={};for(const _0x5ae272 of this['editor']['model']['document']['getRootNames']())_0x32e796[_0x5ae272]='';}if('string'==typeof _0x32e796&&(_0x32e796={'main':_0x32e796}),void 0x0===_0x330e60){_0x330e60={};for(const _0x324732 of this['editor']['model']['document']['getRootNames']())_0x330e60[_0x324732]={};}let _0x19ad28=!0x1;const _0x2bde09=Object['keys'](_0x32e796),_0x1ace16=Object['keys'](_0x375336);for(const _0x5bb8b5 of _0x2bde09){if(_0x32e796[_0x5bb8b5]!==_0x375336[_0x5bb8b5]&&''!==_0x32e796[_0x5bb8b5]['trim']()){_0x19ad28=!0x0;break;}if(!_0x3f09a7(_0x330e60[_0x5bb8b5],_0x102257[_0x5bb8b5])&&Object['keys'](_0x330e60[_0x5bb8b5])['length']>0x0){_0x19ad28=!0x0;break;}}_0x19ad28||(_0x19ad28=_0x1ace16['some'](_0x424ba7=>!this['editor']['model']['document']['getRoot'](_0x424ba7))),_0x19ad28&&_0x1b29aa('editor-initial-data-replaced-with-revision-data',{'editorData':_0x32e796,'editorRootsAttributes':_0x330e60,'revisionData':_0x375336,'revisionRootsAttributes':_0x102257}),this['editor']['config']['set']('initialData',_0x375336),this['editor']['config']['set']('rootsAttributes',_0x102257);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x61889b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x61889b['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x611e2f){const _0x373a03=this['repository']['getRevisions']();_0x373a03['reverse']();let _0x2106c9=0x0;for(;_0x2106c9<_0x373a03['length'];){const _0x527aef=_0x373a03[_0x2106c9];if(_0x527aef===this['currentRevision']){_0x2106c9++;continue;}if(_0x527aef['id']===this['_initialRevisionId'])break;const _0x5a72db=_0x611e2f['toVersion']-_0x527aef['toVersion']||_0x611e2f['fromVersion']-_0x527aef['fromVersion'];if(_0x5a72db>0x0)break;if(_0x5a72db<0x0)_0x2106c9++;else{if(!_0x611e2f['creator']&&_0x527aef['creator'])break;if(_0x527aef['creator']||!_0x611e2f['creator']){if(_0x611e2f['createdAt']>_0x527aef['createdAt'])break;_0x2106c9++;}else _0x2106c9++;}}return _0x2106c9;}['setRevisionData'](_0x18602f){const _0x1e577b=this['repository']['getRevision'](_0x18602f['id']);if(_0x18602f['createdAt']&&(_0x18602f['createdAt']=new Date(_0x18602f['createdAt'])),_0x18602f['authorsIds']){const _0x25a407=this['editor']['plugins']['get']('Users');_0x18602f['authors']=_0x18602f['authorsIds']['map'](_0x5d65c6=>_0x25a407['getUser'](_0x5d65c6));}_0x1e577b['_update'](_0x18602f,!0x0);}['buildRevisionData']({revision:_0x4d15b9=null,from:_0x3d9047=null,to:_0x190a26=null}){_0x3d9047=null!==_0x3d9047?_0x3d9047:_0x4d15b9['fromVersion'],_0x190a26=null!==_0x190a26?_0x190a26:_0x4d15b9['toVersion'];const _0x2d8e03=this['_revisionDataBuilder']['getData'](_0x3d9047,_0x190a26),_0x4a3c31={'diffData':_0x2d8e03['diffData'],'authorsIds':_0x2d8e03['authorsIds'],'fromVersion':_0x3d9047,'toVersion':_0x190a26};if(!_0x4d15b9||_0x190a26!==_0x4d15b9['toVersion']){const _0x2ea98e=_0x190a26-0x1,_0x3d9016=this['_source']['history']['getOperation'](_0x2ea98e);_0x4a3c31['createdAt']=_0x3d9016&&_0x3d9016['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3d9047===this['_loadedStateData']['fromVersion']){for(const _0x3b544e of this['_loadedStateData']['authors'])_0x4a3c31['authorsIds']['includes'](_0x3b544e['id'])||_0x4a3c31['authorsIds']['push'](_0x3b544e['id']);}return _0x4a3c31;}['_loadRevisionData'](_0x3e392a){if(!_0x3e392a||_0x3e392a['diffData'])return Promise['resolve']();{const _0x18efb6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x18efb6,'revisionId':_0x3e392a['id']})['then'](_0x37293d=>{_0x3e392a['diffData']=_0x37293d['diffData'];});}}['_bufferUpdate'](_0x31c500,_0x3c8130,_0x3c5f86){if(this['_bufferedUpdates']['has'](_0x31c500)){const _0x519858=this['_bufferedUpdates']['get'](_0x31c500);_0x3c8130=_0x3c5f86?{..._0x519858,..._0x3c8130}:{..._0x3c8130,..._0x519858};}this['_bufferedUpdates']['set'](_0x31c500,_0x3c8130);}['_getFromVersion'](_0x1913c6){const _0x382012=this['repository']['getRevisions']();_0x382012['reverse'](),_0x382012['shift']();const _0xdc5bd8=_0x382012['find'](_0x5a2d24=>_0x5a2d24['toVersion']<=_0x1913c6)['toVersion'];return _0xdc5bd8<this['_startingVersion']?this['_startingVersion']:_0xdc5bd8;}['_createInitialRevision'](_0x4c8ab4){const _0x22544a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x22544a)this['_initialRevisionId']=_0x22544a['id'];else{const _0x547437=!this['editor']['model']['document']['roots']['find'](_0x12ec1f=>this['editor']['model']['hasContent'](_0x12ec1f)),_0x179afb=this['editor']['plugins']['get']('Users')['me']['id'],_0xc434c3=m(this['editor']['locale'],_0x547437?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4c8ab4,'to':_0x4c8ab4,'id':this['_initialRevisionId'],'name':_0xc434c3,'creatorId':_0x179afb});}}['_createCurrentRevision'](_0x47244e){const _0x5527d0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5527d0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x47244e,'to':_0x47244e,'id':_0x5527d0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x6262c5,from:_0x2075be,to:_0x17eb5f,creatorId:_0x552524,id:_0x1dd9bf}){const _0x520072=this['buildRevisionData']({'from':_0x2075be,'to':_0x17eb5f});_0x520072['name']=_0x6262c5,_0x520072['creatorId']=_0x552524,_0x520072['id']=_0x1dd9bf;const _0x1e72e7=this['addRevisionData'](_0x520072);return this['adapter']&&this['_bufferUpdate'](_0x520072['id'],_0x520072,!0x0),_0x1e72e7;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4a0408){return(_0x4a0408=_0x4a0408['filter'](_0x37475d=>!_0x37475d['name']||'revision-start'!==_0x37475d['name']&&'revision-end'!==_0x37475d['name']))['forEach'](_0x4596f9=>{'string'!=typeof _0x4596f9&&(_0x4596f9['children']=this['_removeRevisionMarkers'](_0x4596f9['children']),_0x4596f9['attributes']=_0x4596f9['attributes']['filter'](_0x5eb05c=>!_0x5eb05c[0x0]['startsWith']('data-revision-')));}),_0x4a0408;}}function C(_0x2decf4,_0x5a3995){const _0x1e4ee5=_0x5a3995['editing']['view']['document'];if('string'==typeof _0x2decf4)return new _0x528d27(_0x1e4ee5,_0x2decf4);{const _0x20efaa=_0x2decf4['children']['map'](_0x3c1eb9=>C(_0x3c1eb9,_0x5a3995));return new(P[_0x2decf4['type']]||_0x4f78dd)(_0x1e4ee5,_0x2decf4['name'],_0x2decf4['attributes'],_0x20efaa);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5a4e2d){this['editor']=_0x5a4e2d,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'](_0xf5c972){this['source']=_0xf5c972;const _0x2bf7b0=new Map(),_0x594b8c=new Map(),_0x478000=this['editor']['model']['document']['roots']['map'](_0x42a919=>_0x42a919['rootName']);for(const _0x268354 of _0x478000){const _0x3b5db8=this['editor']['model']['document']['getRoot'](_0x268354),_0x349648=T(_0x3b5db8);_0x2bf7b0['set'](_0x268354,_0x349648),_0x594b8c['set'](_0x268354,Object['fromEntries'](_0x3b5db8['getAttributes']()));}const _0x4deeb5=Array['from'](this['editor']['model']['markers'])['map'](_0xe800ea=>[_0xe800ea['name'],_0xe800ea['getRange']()]),_0x25d7e8=this['source']['version'];this['_saveMetaData'](_0x25d7e8,_0x2bf7b0,_0x4deeb5,_0x594b8c),this['_startingRevisionId']=this['_revisionId'];const _0x35c960=new Map(),_0x279bf8=new Map();for(const _0x4c877f of _0x478000){const _0x46ece7=F(_0x4c877f);_0x35c960['set'](_0x4c877f,_0x46ece7),_0x279bf8['set'](_0x4c877f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x35c960,[],_0x279bf8);}['getData'](_0x2e9997,_0x4601ed){if(this['_lastFrom']===_0x2e9997&&this['_lastTo']<=_0x4601ed)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4601ed,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e9997)){const _0x38060c=this['_getPreviousFrom'](_0x2e9997);this['_calculateMetaData'](_0x38060c,_0x2e9997,!0x1);}this['_calculateMetaData'](_0x2e9997,_0x4601ed,!0x0);}return this['_lastFrom']=_0x2e9997,this['_lastTo']=_0x4601ed,this['_getState']();}['loadState'](_0x26a5aa){this['_reset'](),this['_lastFrom']=_0x26a5aa['fromVersion'],this['_lastTo']=_0x26a5aa['toVersion'];for(const _0x4ff8e3 in _0x26a5aa['diffData']){const _0x5c932a=_0x26a5aa['diffData'][_0x4ff8e3]['attachChange'],_0x35cd8b=_0x30ebd2(_0x26a5aa['diffData'][_0x4ff8e3]['attributesBefore'])||{},_0x5b7183=this['_makeModelFromViewString'](_0x26a5aa['diffData'][_0x4ff8e3]['deletions']);_0x5b7183['rootName']=_0x4ff8e3,_0x5b7183['_isAttached']=!_0x5c932a||!_0x5c932a['isAttached'],_0x5b7183['isAttached']=()=>_0x5b7183['_isAttached'],this['_baseRoots']['set'](_0x4ff8e3,_0x5b7183),this['_baseRootsAttributes']['set'](_0x4ff8e3,_0x35cd8b),_0x5c932a&&this['_touchedRoots']['set'](_0x4ff8e3,_0x5c932a);const _0x266865=this['_makeIdsRoot'](_0x5b7183);this['_baseIdsRoots']['set'](_0x4ff8e3,_0x266865);for(const [_0x1d94a1,_0x15b3d7]of _0x5b7183['markers']){if(!_0x1d94a1['startsWith']('revision:'))continue;const _0x31813d=_0x1d94a1['split'](':')[0x2];for(const _0x328c48 of _0x15b3d7['getWalker']({'singleCharacters':!0x0})){const _0x397ccf=this['_getVidAttributeName'](_0x328c48),_0x17a773='elementEnd'==_0x328c48['type']?_0x328c48['previousPosition']['path']['slice'](0x0,-0x1):_0x328c48['previousPosition']['path'],_0x1e948f=_0x266865['getNodeByPath'](_0x17a773)['getAttribute'](_0x397ccf);this['_touched']['set'](_0x1e948f,{'userId':_0x31813d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x418103=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x44b2aa=>!this['_touched']['has'](_0x44b2aa));let _0x21dc5c=0x0;const _0x5b69aa=new Map();for(const _0x16e898 in _0x26a5aa['diffData']){const _0x554787=_0x26a5aa['diffData'][_0x16e898]['attachChange'],_0x6f19ca=_0x30ebd2(_0x26a5aa['diffData'][_0x16e898]['attributesAfter'])||{},_0x2728f8=this['_makeModelFromViewString'](_0x26a5aa['diffData'][_0x16e898]['insertions']);_0x2728f8['rootName']=_0x16e898,_0x2728f8['_isAttached']=!_0x554787||_0x554787['isAttached'],_0x2728f8['isAttached']=()=>_0x2728f8['_isAttached'],this['_diffRoots']['set'](_0x16e898,_0x2728f8),this['_diffRootsAttributes']['set'](_0x16e898,_0x6f19ca);const _0x32c684=this['_makeIdsRoot'](_0x2728f8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x16e898,_0x32c684),_0x5b69aa['set'](_0x16e898,_0x2728f8['isAttached']()?_0x6f19ca:{});for(const [_0x162da8,_0x319d06]of _0x2728f8['markers']){if(!_0x162da8['startsWith']('revision:'))continue;const _0x288db0=_0x162da8['split'](':')[0x2];for(const _0x244e96 of _0x319d06['getWalker']({'singleCharacters':!0x0})){const _0x4d134d=this['_getVidAttributeName'](_0x244e96),_0x2f15a7=this['_revisionId']++,_0x352a37='elementEnd'==_0x244e96['type']?_0x244e96['previousPosition']['path']['slice'](0x0,-0x1):_0x244e96['previousPosition']['path'];_0x32c684['getNodeByPath'](_0x352a37)['_setAttribute'](_0x4d134d,_0x2f15a7),this['_touched']['set'](_0x2f15a7,{'userId':_0x288db0});}}for(const _0x7339ed of this['editor']['model']['createRangeIn'](_0x2728f8)['getWalker']({'singleCharacters':!0x0})){const _0x4cdf66=this['_getVidAttributeName'](_0x7339ed),_0x4a72a8='elementEnd'==_0x7339ed['type']?_0x7339ed['previousPosition']['path']['slice'](0x0,-0x1):_0x7339ed['previousPosition']['path'],_0x33485f=_0x32c684['getNodeByPath'](_0x4a72a8);_0x33485f['getAttribute'](_0x4cdf66)>0x0||_0x33485f['_setAttribute'](_0x4cdf66,_0x418103[_0x21dc5c++]);}for(const [_0x5b7f32,_0xe2761]of _0x2728f8['markers'])_0x5b7f32['startsWith']('revision:')||this['_markers']['set'](_0x5b7f32,_0xe2761);}const _0x2a5f0c=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2a5f0c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2a5f0c,0x1));const _0x141491=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x141491),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x141491,0x1));const _0x141feb=Array['from'](this['_diffRoots'])['map'](([_0x39d369,_0x5b7e63])=>[_0x39d369,T(_0x5b7e63)]);this['_saveMetaData'](this['_lastTo'],_0x141feb,this['_markers'],_0x5b69aa);}['_makeModelFromViewString'](_0x4d9553){const _0x39b953=JSON['parse'](_0x4d9553),_0x239980=this['editor']['editing']['view']['document'],_0x3dd5c1=new _0x1716b3(_0x239980,_0x39b953['map'](_0x233431=>C(_0x233431,this['editor'])));return this['editor']['data']['toModel'](_0x3dd5c1);}['_saveMetaData'](_0x58210c,_0x236758,_0x470791,_0xebd08e){const _0x9cb2bf=new Map(_0x236758),_0x25d52b=new Map(_0x30ebd2(_0xebd08e)),_0x11721f=new Map();for(const [_0x4ed044,_0x5328cc]of _0x470791)_0x11721f['set'](_0x4ed044,{'start':_0x5328cc['start']['clone'](),'end':_0x5328cc['end']['clone'](),'rootName':_0x5328cc['root']['rootName']});this['_savedMetaData']['set'](_0x58210c,{'roots':_0x9cb2bf,'markers':_0x11721f,'rootsAttributes':_0x25d52b});}['_removeMetaData'](_0x10a6f0){this['_savedMetaData']['delete'](_0x10a6f0);}['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'](_0x1ecc13,_0x1ffdab=null){let _0xebf0f4=null;_0x1ecc13['is']('documentFragment')||(_0xebf0f4=new ft(_0x1ecc13['name'],{'vid_start':null===_0x1ffdab?this['_revisionId']++:_0x1ffdab++}));const _0x2e5abe=[];for(const _0x4a3b1c of _0x1ecc13['getChildren']())if(_0x4a3b1c['is']('element')){_0x2e5abe['push'](this['_makeIdsRoot'](_0x4a3b1c,_0x1ffdab));const _0x11ed1a=_0x2e5abe[_0x2e5abe['length']-0x1];null!==_0x1ffdab&&(_0x1ffdab=_0x11ed1a['is']('element','$text')?_0x11ed1a['getAttribute']('vid')+0x1:_0x11ed1a['getAttribute']('vid_end')+0x1);}else{for(let _0x214d16=0x0;_0x214d16<_0x4a3b1c['offsetSize'];_0x214d16++)_0x2e5abe['push'](new ft('$text',{'vid':null===_0x1ffdab?this['_revisionId']++:_0x1ffdab++}));}if(_0x1ecc13['is']('documentFragment')){const _0x5b12c9=F(_0x1ecc13['rootName']);return _0x5b12c9['_insertChild'](0x0,_0x2e5abe),_0x5b12c9;}return _0xebf0f4['_setAttribute']('vid_end',null===_0x1ffdab?this['_revisionId']++:_0x1ffdab++),_0xebf0f4['_insertChild'](0x0,_0x2e5abe),_0xebf0f4;}['_calculateMetaData'](_0x480cae,_0x4e074f,_0xdf52b5){this['_reset']();const {roots:_0x11071b,markers:_0x222f0f,rootsAttributes:_0x4c7a28}=this['_savedMetaData']['get'](_0x480cae);this['_baseRoots']=new Map(_0x11071b),this['_baseRootsAttributes']=new Map(_0x30ebd2(_0x4c7a28));for(const [_0x39f183,_0x56cc22]of this['_baseRoots'])if('$graveyard'!==_0x39f183&&(this['_diffRoots']['set'](_0x39f183,T(_0x56cc22)),this['_diffRootsAttributes']=new Map(_0x30ebd2(_0x4c7a28)),_0xdf52b5)){const _0x1b8394=this['_revisionId'];this['_idsRoots']['set'](_0x39f183,this['_makeIdsRoot'](_0x56cc22)),this['_baseIdsRoots']['set'](_0x39f183,this['_makeIdsRoot'](_0x56cc22,_0x1b8394));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xdf52b5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x20d8db,_0x53a025]of _0x222f0f){const _0x3cf4a7=this['_baseRoots']['get'](_0x53a025['rootName']),_0x2a53e9=this['_diffRoots']['get'](_0x53a025['rootName']),_0x299739=new vt(this['_fixPosition'](_0x53a025['start'],_0x3cf4a7),this['_fixPosition'](_0x53a025['end'],_0x3cf4a7)),_0x302de0=this['_fixRange'](_0x299739,_0x2a53e9);_0x3cf4a7['markers']['set'](_0x20d8db,_0x299739),this['_markers']['set'](_0x20d8db,_0x302de0);}this['_applyOperations'](_0x480cae,_0x4e074f,_0xdf52b5);}['_applyOperations'](_0x5c99da,_0x38edbf,_0x3b9ea2){for(const _0x11def4 of this['source']['getOperations'](_0x5c99da,_0x38edbf))this['_handleOperation'](_0x11def4,_0x3b9ea2);for(const _0x3337f9 of this['_diffRoots']['values']())_0x3337f9['markers']['clear']();for(const [_0x7dda08,_0x923fe8]of this['_markers']){this['_diffRoots']['get'](_0x923fe8['root']['rootName'])['markers']['set'](_0x7dda08,_0x923fe8['clone']());}const _0x6dd741=new Map(),_0xbb4b57=new Map();for(const [_0x59e703,_0x193849]of this['_diffRoots'])_0x6dd741['set'](_0x59e703,T(_0x193849)),_0xbb4b57['set'](_0x59e703,this['_diffRootsAttributes']['get'](_0x59e703));this['_saveMetaData'](_0x38edbf,_0x6dd741,this['_markers'],_0xbb4b57);}['_getPreviousFrom'](_0x5dec5c){const _0x367c05=Array['from'](this['_savedMetaData']['keys']());_0x367c05['sort']((_0x285bcc,_0x33434c)=>_0x285bcc-_0x33434c),_0x367c05['reverse']();for(const _0x2ce0b4 of _0x367c05)if(_0x2ce0b4<_0x5dec5c)return _0x2ce0b4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2f3bb9,_0x2fa48b){const _0x48566c=Array['from'](_0x2fa48b['markers'])['map'](([_0x23c2e2,_0x16ee4e])=>[_0x23c2e2,this['_fixRange'](_0x16ee4e,_0x2f3bb9)]);_0x2f3bb9['markers']=new Map(_0x48566c);}['_transformMarkers'](_0xf7cf45){for(const _0x333593 of this['_markers']['values']()){const _0x473dbf=_0x333593['getTransformedByOperation'](_0xf7cf45),_0x2270d7=vt['_createFromRanges'](_0x473dbf);_0x333593['start']=_0x2270d7['start'],_0x333593['end']=_0x2270d7['end'];}}['_handleOperation'](_0x33d29d,_0x24d286){if('addRoot'!=_0x33d29d['type']&&'detachRoot'!=_0x33d29d['type']){if('insert'==_0x33d29d['type']){const _0x35b648=_0x33d29d['position']['root']['rootName'];this['_diffRoots']['has'](_0x35b648)||(this['_diffRoots']['set'](_0x35b648,F(_0x35b648,!0x0)),this['_diffRootsAttributes']['set'](_0x35b648,{}),_0x24d286&&this['_idsRoots']['set'](_0x35b648,F(_0x35b648,!0x0)));}else{if('addRootAttribute'==_0x33d29d['type']||'removeRootAttribute'==_0x33d29d['type']||'changeRootAttribute'==_0x33d29d['type'])return void this['_handleRootAttributeOperation'](_0x33d29d);'marker'==_0x33d29d['type']&&this['_handleMarkerOperation'](_0x33d29d);}if('marker'!==_0x33d29d['type']){const _0x2dae20=this['_cloneOperation'](_0x33d29d,this['_diffRoots']);_0x2dae20['_execute'](),this['_transformMarkers'](_0x2dae20);}if(_0x24d286)switch(_0x33d29d['type']){case'insert':this['_handleInsertOperation'](_0x33d29d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x33d29d);break;case'merge':this['_handleMergeOperation'](_0x33d29d);break;case'split':this['_handleSplitOperation'](_0x33d29d);}}else this['_handleRootOperation'](_0x33d29d,_0x24d286);}['_cloneOperation'](_0x3f1913,_0xea1d3c){const _0x4a27f0=_0x3f1913['clone']();return _0x4a27f0['_authorId']=_0x3f1913['_authorId'],this['_fixOperation'](_0x4a27f0,_0xea1d3c),_0x4a27f0;}['_getBaseVids'](_0x4f41a1){return _0x4f41a1['map'](_0x1ceade=>{const _0x5f3922=this['_getVidAttributeName'](_0x1ceade);return Number(_0x1ceade['item']['getAttribute'](_0x5f3922));});}['_generateTape'](_0x467b0f,_0x415d59){if(_0x467b0f['is']('element','$text'))_0x415d59['push']({'item':_0x467b0f,'type':'text'});else{_0x467b0f['is']('element')&&_0x415d59['push']({'item':_0x467b0f,'type':'elementStart'});for(const _0x5c5716 of _0x467b0f['getChildren']())this['_generateTape'](_0x5c5716,_0x415d59);_0x467b0f['is']('element')&&_0x415d59['push']({'item':_0x467b0f,'type':'elementEnd'});}return _0x415d59;}['_getState'](){const _0x3e903b=new Map(this['_touched']),_0x3f6ccc=new Map(_0x3e903b),_0x50ae36=new Map(),_0xebefc0={'insertions':{},'deletions':{}},_0x4039e3={'insertions':{},'deletions':{}},_0x261c23=new Map(),_0x15c4cf=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x15c4cf['delete']('$graveyard');for(const _0x186e34 of _0x15c4cf){const _0x1fcaa2=this['_diffRoots']['get'](_0x186e34)||F(_0x186e34,!0x1),_0x53fc64=this['_baseRoots']['get'](_0x186e34)||F(_0x186e34,!0x1);_0x1fcaa2['isAttached']()||_0x53fc64['isAttached']()?(_0xebefc0['insertions'][_0x186e34]=T(_0x1fcaa2),_0xebefc0['deletions'][_0x186e34]=T(_0x53fc64),this['_copyMarkers'](_0xebefc0['deletions'][_0x186e34],_0x53fc64),this['_copyMarkers'](_0xebefc0['insertions'][_0x186e34],_0x1fcaa2),_0x4039e3['insertions'][_0x186e34]=this['_generateTape'](this['_idsRoots']['get'](_0x186e34),[]),_0x4039e3['deletions'][_0x186e34]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x186e34)||F(_0x186e34,!0x1),[])):_0x15c4cf['delete'](_0x186e34);}for(const _0x4bafc7 of _0x15c4cf){const _0x1f7d4a=_0x4039e3['insertions'][_0x4bafc7];for(const _0x73b631 of _0x1f7d4a){const _0x1be66e=this['_getVidAttributeName'](_0x73b631),_0x16aa86=_0x73b631['item']['getAttribute'](_0x1be66e);_0x3f6ccc['delete'](_0x16aa86),_0x16aa86>=this['_startingRevisionId']&&_0x50ae36['set'](_0x16aa86,_0x3e903b['get'](_0x16aa86));}}for(const _0x15307 of _0x15c4cf){const _0x493599=_0x4039e3['insertions'][_0x15307],_0x242b3c=this['_getBaseVids'](_0x4039e3['deletions'][_0x15307]);let _0x18bcab=0x0;for(const _0x4647d5 of _0x493599){const _0x14ab19=this['_getVidAttributeName'](_0x4647d5),_0x32f41f=_0x4647d5['item']['getAttribute'](_0x14ab19);if(!_0x50ae36['has'](_0x32f41f)&&!_0x261c23['has'](_0x32f41f)){if(_0x3f6ccc['has'](_0x32f41f))_0x18bcab++;else{if(_0x32f41f!=_0x242b3c[_0x18bcab]){const _0x116255=_0x3e903b['get'](_0x32f41f)||_0x3e903b['get'](_0x242b3c[_0x18bcab]);for(;_0x32f41f!=_0x242b3c[_0x18bcab];)_0x3f6ccc['has'](_0x242b3c[_0x18bcab])||(_0x261c23['set'](_0x242b3c[_0x18bcab],_0x116255),_0x3e903b['set'](_0x242b3c[_0x18bcab],_0x116255)),_0x18bcab++;}_0x18bcab++;}}}}for(const _0x1a5a94 of _0x15c4cf){const _0x4333db=_0x4039e3['insertions'][_0x1a5a94];for(const _0x52c780 of _0x4333db){const _0x16437d=this['_getVidAttributeName'](_0x52c780),_0x573fb7=_0x52c780['item']['getAttribute'](_0x16437d);if(_0x261c23['has'](_0x573fb7)){const _0x338fe4=_0x261c23['get'](_0x573fb7);_0x3f6ccc['has'](_0x573fb7)||_0x3f6ccc['set'](_0x573fb7,{..._0x338fe4}),_0x50ae36['set'](_0x573fb7,{..._0x338fe4});}}}for(const _0x156516 of _0x3f6ccc['keys']())_0x156516>=this['_startingRevisionId']&&_0x3f6ccc['delete'](_0x156516);const _0x272a9d=new Map();for(const _0x40ef8d of _0x15c4cf){let _0xf25013=_0x4039e3['insertions'][_0x40ef8d];for(const _0x143064 of _0xf25013)if(_0x143064['item']['is']('element','tableCell')){const _0x46997f=this['_getVidAttributeName'](_0x143064),_0x468a3f=_0x143064['item']['getAttribute'](_0x46997f);if(_0x50ae36['has'](_0x468a3f)){const _0x153820=_0x143064['item']['parent']['parent']['getAttribute']('vid_start'),_0x45d88e=_0x272a9d['get'](_0x153820)||new Set();_0x45d88e['add'](_0x50ae36['get'](_0x468a3f)['userId']),_0x272a9d['set'](_0x153820,_0x45d88e);}}_0xf25013=_0x4039e3['deletions'][_0x40ef8d];for(const _0x21e129 of _0xf25013)if(_0x21e129['item']['is']('element','tableCell')){const _0x2d87bb=this['_getVidAttributeName'](_0x21e129),_0x110b17=_0x21e129['item']['getAttribute'](_0x2d87bb);if(_0x3f6ccc['has'](_0x110b17)){const _0x34abd4=_0x21e129['item']['parent']['parent']['getAttribute']('vid_start'),_0x5836d8=_0x272a9d['get'](_0x34abd4)||new Set();_0x5836d8['add'](_0x3f6ccc['get'](_0x110b17)['userId']),_0x272a9d['set'](_0x34abd4,_0x5836d8);}}for(const _0x4a60ff of _0x272a9d['keys']())(_0x50ae36['has'](_0x4a60ff)||_0x3f6ccc['has'](_0x4a60ff))&&_0x272a9d['delete'](_0x4a60ff);}for(const _0x270919 of _0x15c4cf){const _0x5428=_0x4039e3['insertions'][_0x270919];let _0x9f7899=null,_0x548e5d=null;for(const _0x3b068e of _0x5428){const _0x3642d3=this['_getVidAttributeName'](_0x3b068e),_0x5d29f0=_0x3b068e['item']['getAttribute'](_0x3642d3),_0x291455=_0x272a9d['get'](_0x5d29f0);_0x291455&&'elementStart'==_0x3b068e['type']&&(_0x9f7899=Array['from'](_0x291455)[0x0],_0x548e5d=_0x3b068e['item']['getAttribute']('vid_end')),_0x9f7899&&(_0x3f6ccc['set'](_0x5d29f0,{'userId':_0x9f7899}),_0x50ae36['set'](_0x5d29f0,{'userId':_0x9f7899})),_0x5d29f0==_0x548e5d&&(_0x9f7899=null,_0x548e5d=null);}}const _0x20e8ce={},_0x16c01b=new Set();for(const _0x391bf0 of _0x15c4cf){const _0x413f15=_0xebefc0['deletions'][_0x391bf0],_0xb1aa54=_0xebefc0['insertions'][_0x391bf0];for(const {userId:_0xe27755}of this['_touchedMarkers']['values']())null!==_0xe27755&&_0x16c01b['add'](_0xe27755);for(const {userId:_0x103b0a}of this['_touchedRoots']['values']())null!==_0x103b0a&&_0x16c01b['add'](_0x103b0a);this['_markChanges'](_0xb1aa54,_0x4039e3['insertions'][_0x391bf0],_0x50ae36,'insertion',_0x16c01b),this['_markChanges'](_0x413f15,_0x4039e3['deletions'][_0x391bf0],_0x3f6ccc,'deletion',_0x16c01b),_0x20e8ce[_0x391bf0]={'insertions':this['_prepareViewToSave'](_0xb1aa54),'deletions':this['_prepareViewToSave'](_0x413f15),'attachChange':this['_touchedRoots']['get'](_0x391bf0)||null,'attributesBefore':_0x30ebd2(this['_baseRootsAttributes']['get'](_0x391bf0))||{},'attributesAfter':_0x30ebd2(this['_diffRootsAttributes']['get'](_0x391bf0))};}return{'diffData':_0x20e8ce,'authorsIds':Array['from'](_0x16c01b)};}['_processRootBeforeSave'](_0x46b271){for(const [,_0x221279]of _0x46b271['markers']){const _0x5bf95a=_0x221279['start']['getAncestors']()['filter'](_0x552fe6=>'tableCell'==_0x552fe6['name']);for(const _0x2500a7 of _0x5bf95a)0x1==_0x2500a7['childCount']&&_0x2500a7['getChild'](0x0)['is']('element','paragraph')&&_0x2500a7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x31bac8){this['_processRootBeforeSave'](_0x31bac8);const _0x4030be=this['editor']['data']['toView'](_0x31bac8,{}),_0x2238fd=Array['from'](_0x4030be['getChildren']())['map'](_0x5c0fdb=>this['_getViewJson'](_0x5c0fdb));return JSON['stringify'](_0x2238fd);}['_getViewJson'](_0x55476d){if(_0x55476d['is']('$text'))return _0x55476d['data'];{const _0x349d5d=_0x55476d;return{'type':Object['keys'](P)['find'](_0x6d737e=>_0x55476d instanceof P[_0x6d737e]),'name':_0x349d5d['name'],'attributes':Array['from'](_0x349d5d['getAttributes']()),'children':Array['from'](_0x349d5d['getChildren']())['map'](_0x42bf26=>this['_getViewJson'](_0x42bf26))};}}['_markChanges'](_0x1d6c73,_0x28412d,_0x2394f7,_0xc4fb98,_0x12ebd2){let _0x5561c9=null,_0x1295ba=null,_0x208d50=0x0;const _0x28b545=this['editor']['model'];for(let _0x48da3c=0x0;_0x48da3c<_0x28412d['length'];_0x48da3c++){const _0x4911cc=this['_getVidAttributeName'](_0x28412d[_0x48da3c]),_0x2ad391=_0x28412d[_0x48da3c]['item']['getAttribute'](_0x4911cc),_0x5dc491=_0x2394f7['get'](_0x2ad391),_0x503819=_0x48da3c==_0x28412d['length']-0x1;(!_0x5561c9&&_0x5dc491&&(_0x5561c9=_0x5dc491,_0x1295ba=_0x28412d[_0x48da3c]),_0x5561c9&&(!_0x5dc491||_0x5dc491['userId']!=_0x5561c9['userId']))&&(_0x479e6d(_0x5dc491,B(_0x1295ba,_0x1d6c73,_0x28b545),B(_0x28412d[_0x48da3c],_0x1d6c73,_0x28b545)),_0x5561c9=_0x5dc491||null,_0x1295ba=_0x5dc491?_0x28412d[_0x48da3c]:null),_0x5561c9&&_0x503819&&_0x479e6d(_0x5dc491,B(_0x1295ba,_0x1d6c73,_0x28b545),J(_0x28412d[_0x48da3c],_0x1d6c73,_0x28b545));}function _0x479e6d(_0x5a44e6,_0x189667,_0x451662){const _0x48dfbd=_0x5561c9['userId'],_0x136fcc='revision:'+_0xc4fb98+':'+_0x48dfbd+':'+_0x208d50++,_0x35a4a9=_0x28b545['createRange'](_0x189667,_0x451662);_0x1d6c73['markers']['set'](_0x136fcc,_0x35a4a9),null!==_0x48dfbd&&_0x12ebd2['add'](_0x48dfbd);}}['_getVidAttributeName'](_0x5dd4d2){switch(_0x5dd4d2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2dff45,_0x459cf5){_0x2dff45['baseVersion']=null;for(const _0x12a121 in _0x2dff45){const _0x5a10f9=_0x2dff45[_0x12a121];if(_0x5a10f9 instanceof gt){const _0x1c6e0b=_0x459cf5['get'](_0x5a10f9['root']['rootName']);_0x2dff45[_0x12a121]=this['_fixPosition'](_0x5a10f9,_0x1c6e0b);}if(_0x5a10f9 instanceof vt){const _0x3d60fd=_0x459cf5['get'](_0x5a10f9['root']['rootName']);_0x2dff45[_0x12a121]=this['_fixRange'](_0x5a10f9,_0x3d60fd);}'root'===_0x12a121&&(_0x2dff45['root']=_0x459cf5['get'](_0x2dff45['root']['rootName']));}}['_fixRange'](_0x97730e,_0x3276ee){return this['editor']['model']['createRange'](this['_fixPosition'](_0x97730e['start'],_0x3276ee),this['_fixPosition'](_0x97730e['end'],_0x3276ee));}['_fixPosition'](_0x4db993,_0x18eb9a){return this['editor']['model']['createPositionFromPath'](_0x18eb9a,_0x4db993['path'],_0x4db993['stickiness']);}['_handleInsertOperation'](_0x2b68b5){const _0x50823c=this['_idsRoots']['get'](_0x2b68b5['position']['root']['rootName']),_0x4ae9e5=this['_fixPosition'](_0x2b68b5['position'],_0x50823c),_0x39f32f=null===_0x2b68b5['_authorId']?null:_0x2b68b5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37f837=_0x4ae9e5['parent'],_0x128f6a=this['_revisionId'],_0x196aee=[];for(const _0x5b1385 of _0x2b68b5['nodes'])if(_0x5b1385['is']('element'))_0x196aee['push'](this['_makeIdsRoot'](_0x5b1385));else{for(let _0x3828b1=0x0;_0x3828b1<_0x5b1385['offsetSize'];_0x3828b1++)_0x196aee['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3b6d75=this['_revisionId'];for(let _0x4d7a74=_0x128f6a;_0x4d7a74<_0x3b6d75;_0x4d7a74++)this['_touched']['set'](_0x4d7a74,{'userId':_0x39f32f});_0x37f837['_insertChild'](_0x4ae9e5['offset'],_0x196aee);}['_handleMoveOperation'](_0x3b3432){(_0x3b3432=this['_cloneOperation'](_0x3b3432,this['_idsRoots']))['_execute']();const _0x285b80=null===_0x3b3432['_authorId']?null:_0x3b3432['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c30bd=_0x3b3432['getMovedRangeStart'](),_0x29fa82=_0x2c30bd['parent'],_0x31407e=_0x2c30bd['offset'];!function _0x91c317(_0x19be6d,_0x275f7c,_0x588db4,_0x34cc9b){for(let _0x591a72=_0x588db4;_0x591a72<_0x34cc9b;_0x591a72++){const _0x495091=_0x275f7c['getChild'](_0x591a72);_0x495091['is']('element','$text')?_0x19be6d['set'](_0x495091['getAttribute']('vid'),{'userId':_0x285b80}):(_0x19be6d['set'](_0x495091['getAttribute']('vid_start'),{'userId':_0x285b80}),_0x91c317(_0x19be6d,_0x495091,0x0,_0x495091['childCount']),_0x19be6d['set'](_0x495091['getAttribute']('vid_end'),{'userId':_0x285b80}));}}(this['_touched'],_0x29fa82,_0x31407e,_0x31407e+_0x3b3432['howMany']);}['_handleMergeOperation'](_0x1de895){const _0x35b38b=null===(_0x1de895=this['_cloneOperation'](_0x1de895,this['_idsRoots']))['_authorId']?null:_0x1de895['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xecbe81=_0x1de895['targetPosition']['parent'],_0xa5687a=_0x1de895['sourcePosition']['parent'],_0x391883=_0xecbe81['getAttribute']('vid_end'),_0x360bfe=_0xa5687a['getAttribute']('vid_start');_0xecbe81['_setAttribute']('vid_end',_0xa5687a['getAttribute']('vid_end')),_0xa5687a['_setAttribute']('vid_end',_0x391883),this['_touched']['set'](_0x360bfe,{'userId':_0x35b38b}),this['_touched']['set'](_0x391883,{'userId':_0x35b38b}),_0x1de895['_execute']();}['_handleSplitOperation'](_0x2c4d5d){const _0x14d9a5=null===(_0x2c4d5d=this['_cloneOperation'](_0x2c4d5d,this['_idsRoots']))['_authorId']?null:_0x2c4d5d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55c57b=_0x2c4d5d['graveyardPosition'],_0x52abcc=_0x2c4d5d['splitPosition']['parent'];_0x2c4d5d['_execute']();const _0x73a5d4=_0x52abcc['getAttribute']('vid_end'),_0x3f09ed=_0x2c4d5d['insertionPosition']['nodeAfter'];if(_0x55c57b){const _0x3f0ab0=_0x3f09ed['getAttribute']('vid_end'),_0x4ce14e=_0x52abcc['getAttribute']('vid_end');_0x52abcc['_setAttribute']('vid_end',_0x3f0ab0),_0x3f09ed['_setAttribute']('vid_end',_0x4ce14e),this['_touched']['set'](_0x52abcc['getAttribute']('vid_end'),{'userId':_0x14d9a5}),this['_touched']['set'](_0x3f09ed['getAttribute']('vid_start'),{'userId':_0x14d9a5});}else{const _0x43e358=this['_revisionId']++,_0x13741c=this['_revisionId']++;_0x52abcc['_setAttribute']('vid_end',_0x43e358),_0x3f09ed['_setAttribute']('vid_start',_0x13741c),_0x3f09ed['_setAttribute']('vid_end',_0x73a5d4),this['_touched']['set'](_0x43e358,{'userId':_0x14d9a5}),this['_touched']['set'](_0x13741c,{'userId':_0x14d9a5});}}['_handleMarkerOperation'](_0x54307a){if(!_0x54307a['affectsData'])return;const _0x81ff7a=(_0x54307a=this['_cloneOperation'](_0x54307a,this['_diffRoots']))['oldRange']?_0x54307a['oldRange']['root']:null,_0x189039=_0x54307a['newRange']?_0x54307a['newRange']['root']:null;_0x81ff7a&&this['_markers']['delete'](_0x54307a['name']),_0x189039&&this['_markers']['set'](_0x54307a['name'],_0x54307a['newRange']['clone']());const _0x5456c1=null===_0x54307a['_authorId']?null:_0x54307a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xeeafe2=_0x54307a['name'];if(!this['_touchedMarkers']['has'](_0xeeafe2))return void this['_touchedMarkers']['set'](_0xeeafe2,{'range':_0x54307a['oldRange'],'userId':_0x5456c1});const _0x17b981=this['_touchedMarkers']['get'](_0xeeafe2),_0x464682=_0x17b981['range'],_0x2b9168=_0x54307a['newRange'];null==_0x464682&&null==_0x2b9168||_0x464682&&_0x2b9168&&_0x464682['isEqual'](_0x2b9168)?this['_touchedMarkers']['delete'](_0x54307a['name']):_0x17b981['userId']=_0x5456c1;}['_handleRootOperation'](_0x1f5452,_0x2819a7){this['_diffRoots']['has'](_0x1f5452['rootName'])?this['_diffRoots']['get'](_0x1f5452['rootName'])['_isAttached']=_0x1f5452['isAdd']:(this['_diffRoots']['set'](_0x1f5452['rootName'],F(_0x1f5452['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1f5452['rootName'],{}),_0x2819a7&&this['_idsRoots']['set'](_0x1f5452['rootName'],F(_0x1f5452['rootName'],!0x0)));const _0x137b33=null===_0x1f5452['_authorId']?null:_0x1f5452['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d1510=this['_touchedRoots']['get'](_0x1f5452['rootName']);_0x5d1510&&_0x5d1510['userId']===_0x137b33?this['_touchedRoots']['delete'](_0x1f5452['rootName']):this['_touchedRoots']['set'](_0x1f5452['rootName'],{'userId':_0x137b33,'isAttached':_0x1f5452['isAdd']});}['_handleRootAttributeOperation'](_0x1fd740){const _0x503816=this['_diffRootsAttributes']['get'](_0x1fd740['root']['rootName']);null===_0x1fd740['newValue']?delete _0x503816[_0x1fd740['key']]:_0x503816[_0x1fd740['key']]=_0x1fd740['newValue'];}}function T(_0x2c22b0){const _0x4e7b5a=F(_0x2c22b0['rootName'],_0x2c22b0['isAttached']());for(const _0x4e6fc5 of _0x2c22b0['getChildren']()){const _0x453513=_0x4e6fc5['_clone'](!0x0);_0x4e7b5a['_appendChild'](_0x453513);}return _0x4e7b5a;}function F(_0x39269f,_0x5206e8=!0x0){const _0x2601c2=new mt();return _0x2601c2['rootName']=_0x39269f,_0x2601c2['_isAttached']=_0x5206e8,_0x2601c2['isAttached']=()=>_0x2601c2['_isAttached'],_0x2601c2;}function B(_0x121269,_0x5db419,_0x577846){const _0x42d46a='elementEnd'==_0x121269['type']?_0x577846['createPositionAt'](_0x121269['item'],'end'):_0x577846['createPositionBefore'](_0x121269['item']);return _0x577846['createPositionFromPath'](_0x5db419,_0x42d46a['path'],_0x42d46a['stickiness']);}function J(_0x128032,_0x695dcd,_0x4e93d1){const _0x30bc12='elementStart'==_0x128032['type']?_0x4e93d1['createPositionAt'](_0x128032['item'],0x0):_0x4e93d1['createPositionAfter'](_0x128032['item']);return _0x4e93d1['createPositionFromPath'](_0x695dcd,_0x30bc12['path'],_0x30bc12['stickiness']);}class ns extends _0xb5bc71{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5ba432,_0x3e29fa){super(_0x5ba432),this['focusTracker']=new _0x23058c(),this['keystrokes']=new _0x9d560c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3e29fa),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0xed7b1e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x37da08=_0x3b8ce2=>_0x3b8ce2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x37da08),this['keystrokes']['set']('arrowleft',_0x37da08),this['keystrokes']['set']('arrowup',_0x37da08),this['keystrokes']['set']('arrowdown',_0x37da08);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x386eac){this['revisionNameInputView']['fieldView']['element']['value']=_0x386eac['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x74e484){const _0x843efe=new nt(this['locale'],_0x396089),_0x391bc5=_0x843efe['fieldView'];_0x391bc5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4811e6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x74e484&&(_0x4811e6+='\x20('+m(this['locale'],'optional')+')'),(_0x843efe['label']=_0x4811e6,_0x391bc5['on']('input',()=>{this['revisionNameInputValue']=_0x391bc5['element']['value']['trim']();}),_0x843efe);}}class u extends _0x29e489{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3c32ab=this['editor'],_0x4dd1f1=_0x3c32ab['plugins']['get']('RevisionTracker');_0x3c32ab['ui']['componentFactory']['add']('revisionHistory',_0x4fec9e=>{const _0xa2671e=_0x417cf8(_0x4fec9e),_0x599bb5=_0xa2671e['panelView']['children'],_0x33da48=new te(_0x4fec9e),_0x175237=new _0x12a450(_0x4fec9e),_0x1ad3ee=new _0xe84945(_0x4fec9e),_0x2ccea1=new _0x12a450(_0x4fec9e),_0x56fcca=new _0xe84945(_0x4fec9e);return _0xa2671e['bind']('isEnabled')['to'](_0x4dd1f1,'isReady',_0x4dd1f1,'isEnabled',_0x3c32ab,'isReadOnly',(_0x330325,_0x496fa7,_0x3eabdd)=>_0x330325&&_0x496fa7&&!_0x3eabdd),_0xa2671e['buttonView']['set']({'icon':_0x4a7550['history'],'label':m(_0x4fec9e,'Revision\x20history'),'tooltip':!0x0}),_0x1ad3ee['set']({'label':m(_0x4fec9e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ad3ee['bind']('isEnabled')['to'](_0x4dd1f1,'isReady',_0x4dd1f1,'isEnabled',_0x3c32ab,'isReadOnly',(_0x7e0129,_0x592362,_0xd3c497)=>_0x7e0129&&_0x592362&&!_0xd3c497),_0x1ad3ee['on']('execute',()=>this['_showDialog']()),_0x56fcca['set']({'label':m(_0x4fec9e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x56fcca['bind']('isEnabled')['to'](_0x4dd1f1,'isReady',_0x3c32ab,'isReadOnly',(_0xec6988,_0x449e39)=>_0xec6988&&!_0x449e39),_0x56fcca['on']('execute',()=>{_0x3c32ab['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xa2671e['isOpen']=!0x1,_0x3c32ab['editing']['view']['focus']();}),_0x175237['children']['add'](_0x1ad3ee),_0x2ccea1['children']['add'](_0x56fcca),_0x33da48['role']='menu',_0x33da48['items']['addMany']([_0x175237,_0x2ccea1]),_0x599bb5['add'](_0x33da48),_0xa2671e;}),_0x3c32ab['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2f49ce=this['editor'],_0x5ca0a6=_0x2f49ce['locale'],_0x35739e=new _0x568570(_0x5ca0a6),_0x19a89e=new _0x2b2504(_0x5ca0a6);_0x35739e['buttonView']['set']({'icon':_0x4a7550['history'],'label':m(_0x5ca0a6,'Revision\x20history')});const _0x5dc8dc=new _0x2a9944(_0x5ca0a6,_0x35739e),_0x38ed4e=new _0x433f31(_0x5ca0a6);_0x38ed4e['set']({'label':m(_0x5ca0a6,'Save\x20current\x20revision')}),_0x38ed4e['delegate']('execute')['to'](_0x35739e),_0x38ed4e['on']('execute',()=>{this['_showDialog']();}),_0x5dc8dc['children']['add'](_0x38ed4e),_0x19a89e['items']['add'](_0x5dc8dc);const _0x4110bc=new _0x2a9944(_0x5ca0a6,_0x35739e),_0x3cbb03=new _0x433f31(_0x5ca0a6);return _0x3cbb03['set']({'label':m(_0x5ca0a6,'Open\x20revision\x20history')}),_0x3cbb03['delegate']('execute')['to'](_0x35739e),_0x3cbb03['on']('execute',()=>{_0x2f49ce['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4110bc['children']['add'](_0x3cbb03),_0x19a89e['items']['add'](_0x4110bc),_0x35739e['panelView']['children']['add'](_0x19a89e),_0x35739e;}['_showDialog'](){const _0x3f0ce6=this['editor'],_0xe65734=_0x3f0ce6['locale'],_0x199ecf=_0x3f0ce6['plugins']['get']('Dialog'),_0x312af9=_0x3f0ce6['plugins']['get']('RevisionTracker');function _0x119ad6(_0x524462){_0x3f0ce6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x524462['revisionName']?_0x524462['revisionNameInputView']['errorText']=m(_0xe65734,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3f0ce6['plugins']['get'](l)['saveRevision']({'name':_0x524462['revisionName']}),_0x199ecf['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x119ad6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x199ecf['show']({'id':'revisionSave','title':m(_0xe65734,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x3f0ce6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x199ecf['hide']()},{'label':m(_0x3f0ce6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x29d90e){_0x29d90e['bind']('isEnabled')['to'](_0x312af9,'isReady',_0x312af9,'isEnabled',_0x3f0ce6,'isReadOnly',(_0x53aaf6,_0x397680,_0x4d1e44)=>_0x53aaf6&&_0x397680&&!_0x4d1e44);},'onExecute':()=>_0x119ad6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5dba75=this['editor'],_0x42d4eb=_0x5dba75['locale'];this['_saveRevisionFormView']=new ns(_0x42d4eb,_0x5dba75['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0xb5bc71{['changeId'];['_model'];constructor(_0x3cd2f4,_0x9d79b){super(_0x3cd2f4),this['_model']=_0x9d79b,this['changeId']=_0x9d79b['id'];const _0x7d83be=this['bindTemplate'],_0x31aef0=m(_0x3cd2f4,_0x9d79b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x9d79b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x9d79b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x7d83be['to']('type',_0x29733b=>'ck-revision-change__'+_0x29733b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x31aef0}]},{'text':'\x20'+_0x9d79b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x18d1d6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xd7792c){super(),this['id']=_0xd7792c['id']||_0x44825c(),this['author']=_0xd7792c['author'],this['type']=_0xd7792c['type'],this['data']=_0xd7792c['data']||{},this['rootName']=_0xd7792c['rootName'],this['set']('createdAt',_0xd7792c['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(_0x87dd50,_0x4290bb){this['newRevisionId']=_0x87dd50,this['oldRevisionId']=_0x4290bb,this['changes']=new _0x5238b7();}['_setChanges'](_0x3f74b3){for(const _0x3b250a of _0x3f74b3)this['changes']['add'](_0x3b250a);}}const Y={'c':_0x8712c5,'a':_0x1a7a3c,'e':_0x1fd110,'r':_0x53e239,'u':_0x49a806};class d extends _0x29e489{['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[_0xf4fc7b,_0xb9a914,j];}constructor(_0x4a3979){super(_0x4a3979),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',(_0x15a20a,_0x2355a7,_0x50171)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3a2ad6=>{for(const _0x13cfc8 of this['editor']['editing']['view']['document']['roots'])_0x50171?_0x3a2ad6['removeClass']('ck-editor__editable__overlay',_0x13cfc8):_0x3a2ad6['addClass']('ck-editor__editable__overlay',_0x13cfc8);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3ffa68=>null!==_0x3ffa68),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xf7854f,_0x574aac,_0xfeba0d)=>_0xf7854f&&_0xfeba0d?_0x574aac['changes']['getIndex'](_0xfeba0d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3ee3ad,_0x255946)=>_0x3ee3ad?_0x255946['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xb9a914);}['init'](){const _0x4672a7=this['editor'],_0x3e5b08=new yt(_0x4672a7,{'direction':'backward'}),_0x574605=new yt(_0x4672a7,{'direction':'forward'});(_0x4672a7['commands']['add']('showPreviousChange',_0x3e5b08),_0x4672a7['commands']['add']('showNextChange',_0x574605),_0x4672a7['commands']['add']('restoreRevision',new _t(_0x4672a7)),this['on']('change:numberOfChanges',()=>{_0x3e5b08['refresh'](),_0x574605['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4672a7['enableReadOnlyMode']('revision-viewer'),_0x4672a7['plugins']['has']('WidgetToolbarRepository'))&&_0x4672a7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x495522){await this['loadRevisionData'](_0x495522);const _0x52570f={};for(const _0x1c17f4 in _0x495522['diffData']){if(_0x495522['diffData'][_0x1c17f4]['attachChange']&&!_0x495522['diffData'][_0x1c17f4]['attachChange']['isAttached'])continue;const _0x5d942f=this['_removeRevisionMarkers'](JSON['parse'](_0x495522['diffData'][_0x1c17f4]['insertions'])),_0x117f70=this['editor']['editing']['view']['document'],_0x5bf5b4=new _0x1716b3(_0x117f70,_0x5d942f['map'](_0x214553=>this['_getViewObj'](_0x214553)));this['editor']['data']['processor']['useFillerType']('marked'),_0x52570f[_0x1c17f4]=this['editor']['data']['processor']['toData'](_0x5bf5b4),this['editor']['data']['processor']['useFillerType']('default');}return _0x52570f;}async['getRevisionRootsAttributes'](_0x20ebe6){await this['loadRevisionData'](_0x20ebe6);const _0x2d586c={};for(const _0x4e359c in _0x20ebe6['diffData'])_0x20ebe6['diffData'][_0x4e359c]['attachChange']&&!_0x20ebe6['diffData'][_0x4e359c]['attachChange']['isAttached']||(_0x2d586c[_0x4e359c]=_0x20ebe6['diffData'][_0x4e359c]['attributesAfter']||{});return _0x2d586c;}['_removeRevisionMarkers'](_0x209856){return(_0x209856=_0x209856['filter'](_0x1642c9=>!_0x1642c9['name']||'revision-start'!==_0x1642c9['name']&&'revision-end'!==_0x1642c9['name']))['forEach'](_0xe3999c=>{'string'!=typeof _0xe3999c&&(_0xe3999c['children']=this['_removeRevisionMarkers'](_0xe3999c['children']),_0xe3999c['attributes']=_0xe3999c['attributes']['filter'](_0x1974aa=>!_0x1974aa[0x0]['startsWith']('data-revision-')));}),_0x209856;}async['compare'](_0x119086,_0x3d271a,_0x549201=!0x1){if(!this['isEnabled'])return;const _0x57dcc8=this['diff'],_0x1907bb=this['repository'],_0x1a5192='string'==typeof _0x119086?_0x1907bb['getRevision'](_0x119086):_0x119086,_0x1792c8='string'==typeof _0x3d271a?_0x1907bb['getRevision'](_0x3d271a):_0x3d271a,_0x371747=_0x1a5192['id'],_0x3a6bcc=_0x1792c8?_0x1792c8['id']:null;if(!_0x549201&&this['diff']&&this['diff']['newRevisionId']===_0x371747&&this['diff']['oldRevisionId']===_0x3a6bcc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x371747,_0x3a6bcc);const _0x33a387=this['_getRevisionsRange'](_0x1a5192,_0x1792c8,!0x0)['map'](_0x5662aa=>this['loadRevisionData'](_0x5662aa));return _0x33a387['push'](new Promise(_0xb04e62=>{setTimeout(_0xb04e62,0x14);})),Promise['all'](_0x33a387)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x449139=this['_getDiff'](_0x371747,_0x3a6bcc);for(const _0x9d6cb2 of _0x449139['changes'])this['_changeIdToChange']['set'](_0x9d6cb2['id'],_0x9d6cb2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x54f14c=>{for(const _0x5763c3 of this['editor']['model']['document']['getRootNames']())_0x54f14c['detachRoot'](_0x5763c3);for(const _0x5ec79e of Object['keys'](_0x449139['model'])){const _0xcf4882=_0x54f14c['addRoot'](_0x5ec79e);for(const _0x2a5ff0 of Object['keys'](_0x449139['attributes'][_0x5ec79e]))_0x54f14c['setAttribute'](_0x2a5ff0,_0x449139['attributes'][_0x5ec79e][_0x2a5ff0],_0xcf4882);_0x54f14c['insert'](_0x449139['model'][_0x5ec79e],_0xcf4882,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x449139['changes'])),this['isReady']=!0x0;})['catch'](_0x19d6af=>{console['error'](_0x19d6af),this['_cleanUp'](),_0x57dcc8&&(this['diff']=_0x57dcc8),this['isReady']=!0x0;});}['addRevisionData'](_0x4d470a,_0x3ad26c){const _0x5571f1=this['repository']['createRevision'](_0x4d470a);return _0x5571f1['on']('_update',(_0x2c948e,_0x53729a,_0x4d50ca)=>_0x3ad26c(_0x53729a,_0x4d50ca,_0x5571f1)),this['repository']['addRevision'](_0x5571f1),_0x5571f1;}['loadRevisionData'](_0x47d5e8){if(!_0x47d5e8||_0x47d5e8['diffData'])return Promise['resolve']();{const _0x319101=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x319101,'revisionId':_0x47d5e8['id']})['then'](_0x329d38=>{_0x47d5e8['_update']({'diffData':_0x329d38['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},_0x3c5472=>{for(const _0x381732 of this['editor']['model']['document']['getRootNames']())_0x3c5472['detachRoot'](_0x381732);});}['_sortAndFilterDiffChanges'](_0xf8f971){const _0x27bf70=[],_0x4d4562=new Map();for(const _0x862fcc of this['editor']['model']['document']['getRootNames']()){const _0xc4695a=this['editor']['editing']['view']['getDomRoot'](_0x862fcc);if(!_0xc4695a)continue;const _0x278984=_0xc4695a['getClientRects']()['item'](0x0);_0x278984&&(_0x27bf70['push'](_0x862fcc),_0x4d4562['set'](_0x862fcc,_0x278984));}return _0x27bf70['sort']((_0x34a9e8,_0x247c1d)=>{const _0x1d0755=_0x4d4562['get'](_0x34a9e8),_0x47a584=_0x4d4562['get'](_0x247c1d);return _0x1d0755['y']-_0x47a584['y']||_0x1d0755['x']-_0x47a584['x'];}),(_0xf8f971=_0xf8f971['filter'](_0x33d4df=>_0x27bf70['includes'](_0x33d4df['rootName'])))['sort']((_0x580bf8,_0x1e069b)=>_0x27bf70['indexOf'](_0x580bf8['rootName'])-_0x27bf70['indexOf'](_0x1e069b['rootName'])),_0xf8f971;}['_makeTape'](_0x3b28da){const _0x5e6bf3=Array['from'](_0x3b28da['markers'])['filter'](([_0x447a4,_0x430e21])=>_0x447a4['startsWith']('revision:')&&!_0x430e21['isCollapsed']),_0x45807b=Array['from'](this['editor']['model']['createRangeIn'](_0x3b28da)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5e6bf3['length'])for(const _0x351089 of _0x45807b){const [_0x5a2a3e,_0x30afc6]=_0x5e6bf3[0x0],[,_0x475477,_0x53d3b2]=_0x5a2a3e['split'](':');if(_0x30afc6['end']['isEqual'](_0x351089['nextPosition'])&&_0x5e6bf3['shift'](),(_0x351089['previousPosition']['isEqual'](_0x30afc6['start'])||_0x351089['previousPosition']['isAfter'](_0x30afc6['start']))&&('insertion'==_0x475477?_0x351089['isAdded']={'userId':_0x53d3b2}:'deletion'==_0x475477&&(_0x351089['isRemoved']={'userId':_0x53d3b2})),0x0==_0x5e6bf3['length'])break;}return _0x45807b;}['_refreshStartEndIndex'](_0x57a4fc){const _0x4d6c22=new Map();for(let _0xbf4f08=0x0;_0xbf4f08<_0x57a4fc['length'];_0xbf4f08++)'text'===_0x57a4fc[_0xbf4f08]['type']?(_0x57a4fc[_0xbf4f08]['item']['startIndex']=_0xbf4f08,_0x57a4fc[_0xbf4f08]['item']['endIndex']=_0xbf4f08):('elementStart'===_0x57a4fc[_0xbf4f08]['type']?_0x57a4fc[_0xbf4f08]['item']['startIndex']=_0xbf4f08:'elementEnd'===_0x57a4fc[_0xbf4f08]['type']&&(_0x57a4fc[_0xbf4f08]['item']['endIndex']=_0xbf4f08),_0x4d6c22['set'](_0x57a4fc[_0xbf4f08]['id'],_0xbf4f08));for(const _0x13c2dc of _0x4d6c22['values']())'elementStart'===_0x57a4fc[_0x13c2dc]['type']?_0x57a4fc[_0x13c2dc]['item']['endIndex']=_0x4d6c22['get'](_0x57a4fc[_0x13c2dc]['pairId']):'elementEnd'===_0x57a4fc[_0x13c2dc]['type']&&(_0x57a4fc[_0x13c2dc]['item']['startIndex']=_0x4d6c22['get'](_0x57a4fc[_0x13c2dc]['pairId']));}['_processTape'](_0x3b272a){for(let _0x4c1579=0x0;_0x4c1579<_0x3b272a['length'];_0x4c1579++){if('elementStart'===_0x3b272a[_0x4c1579]['type'])_0x3b272a[_0x4c1579]['item']['startIndex']=_0x4c1579;else{if('elementEnd'===_0x3b272a[_0x4c1579]['type']){_0x3b272a[_0x4c1579]['item']['endIndex']=_0x4c1579;const _0x57f570=_0x3b272a[_0x4c1579]['item']['startIndex'];_0x3b272a[_0x57f570]['pairId']=_0x3b272a[_0x4c1579]['id'],_0x3b272a[_0x4c1579]['pairId']=_0x3b272a[_0x57f570]['id'];}else _0x3b272a[_0x4c1579]['item']['startIndex']=_0x4c1579,_0x3b272a[_0x4c1579]['item']['endIndex']=_0x4c1579,_0x3b272a[_0x4c1579]['pairId']=null;}_0x3b272a[_0x4c1579]['markersStart']||(_0x3b272a[_0x4c1579]['markersStart']=[],_0x3b272a[_0x4c1579]['markersEnd']=[]);}}['_markInsertions'](_0x45e919,_0x571d9f){const _0x171489=_0x45e919['filter'](_0x348dac=>!_0x348dac['isAdded']);for(let _0x13bc1e=0x0;_0x13bc1e<_0x571d9f['length'];_0x13bc1e++)_0x571d9f[_0x13bc1e]['isAdded']&&(_0x171489[_0x13bc1e]['isAdded']=_0x571d9f[_0x13bc1e]['isAdded']);}['_makeModelFromViewString'](_0x2bf807){const _0x34251e=JSON['parse'](_0x2bf807),_0x3553f7=this['editor']['editing']['view']['document'],_0x2b6935=new _0x1716b3(_0x3553f7,_0x34251e['map'](_0x19635d=>this['_getViewObj'](_0x19635d)));return this['editor']['data']['toModel'](_0x2b6935);}['_getViewObj'](_0x4e8da5){const _0x46949b=this['editor']['editing']['view']['document'];if('string'==typeof _0x4e8da5)return new _0x528d27(_0x46949b,_0x4e8da5);{const _0x241252=_0x4e8da5['children']['map'](_0xa597bc=>this['_getViewObj'](_0xa597bc));return new(Y[_0x4e8da5['type']]||_0x4f78dd)(_0x46949b,_0x4e8da5['name'],_0x4e8da5['attributes'],_0x241252);}}['_getDiff'](_0x33f5d7,_0x4f1590=null){const _0x2f8e5f=this['repository']['getRevision'](_0x33f5d7),_0x184254=_0x4f1590?this['repository']['getRevision'](_0x4f1590):null,_0x1cf881=this['_getRevisionsRange'](_0x2f8e5f,_0x184254),_0x457b25=_0x1cf881[_0x1cf881['length']-0x1],_0x32d404=new Map(),_0x3f717a={'model':{},'attributes':{},'changes':[]},_0x209677=new Set(),_0x51ee32=new Map();for(let _0xe73c97=_0x1cf881['length']-0x1;_0xe73c97>=0x0;_0xe73c97--){const _0x5b8b42=_0x1cf881[_0xe73c97];for(const _0x104a5e of Object['keys'](_0x5b8b42['diffData']))if(_0x5b8b42['diffData'][_0x104a5e]['attachChange']){const _0x4d7416=_0x5b8b42['diffData'][_0x104a5e]['attachChange'];_0x4d7416['isAttached']?(_0x209677['add'](_0x104a5e),_0x51ee32['has'](_0x104a5e)&&_0x51ee32['get'](_0x104a5e)['userId']==_0x4d7416['userId']?_0x51ee32['delete'](_0x104a5e):_0x51ee32['set'](_0x104a5e,_0x4d7416)):_0x51ee32['has'](_0x104a5e)?(_0x209677['delete'](_0x104a5e),_0x51ee32['delete'](_0x104a5e)):(_0x209677['add'](_0x104a5e),_0x51ee32['set'](_0x104a5e,_0x4d7416));}else _0x209677['add'](_0x104a5e);}for(const _0x44b8d8 of _0x209677){const _0x261357=_0x51ee32['has'](_0x44b8d8)&&!_0x51ee32['get'](_0x44b8d8)['isAttached'];let _0x2f83c5=_0x261357?_0x1cf881['length']-0x1:0x0;const _0x577178=_0x261357?-0x1:0x1;for(;_0x1cf881[_0x2f83c5];){const _0x2fddac=_0x1cf881[_0x2f83c5];if(_0x2fddac['diffData'][_0x44b8d8]){const _0x125514=_0x261357?_0x2fddac['diffData'][_0x44b8d8]['attributesBefore']:_0x2fddac['diffData'][_0x44b8d8]['attributesAfter'];_0x3f717a['attributes'][_0x44b8d8]=_0x125514?_0x30ebd2(_0x125514):{};break;}_0x2f83c5+=_0x577178;}}for(const _0x357962 of _0x1cf881){_0x357962['model']={};for(const _0x4ebb9b of _0x357962['authors'])_0x32d404['set'](_0x4ebb9b['id'],_0x4ebb9b);for(const _0x332391 of _0x209677){const _0x59837a=_0x357962['diffData'][_0x332391]?_0x357962['diffData'][_0x332391]['insertions']:'[]',_0xbf02ed=_0x357962['diffData'][_0x332391]?_0x357962['diffData'][_0x332391]['deletions']:'[]';_0x357962['model'][_0x332391]={'insertions':this['_makeModelFromViewString'](_0x59837a),'deletions':this['_makeModelFromViewString'](_0xbf02ed)};}}for(const _0x521f96 of _0x209677){let _0x176be9=null,_0x29b9c5=0x0;const _0x4fabee=new Map(Array['from'](_0x2f8e5f['model'][_0x521f96]['insertions']['markers'])['filter'](([_0x35a020])=>!_0x35a020['startsWith']('revision:')));let _0x20d067=0x0;for(const _0x20b295 of _0x1cf881){const _0x2b0021=this['_makeTape'](_0x20b295['model'][_0x521f96]['insertions']);_0x20b295==_0x2f8e5f?(_0x176be9=_0x2b0021,_0x29b9c5=_0x176be9['length'],_0x176be9['forEach'](_0x45d74a=>{_0x45d74a['id']=_0x20d067++;}),this['_processTape'](_0x176be9)):this['_markInsertions'](_0x176be9,_0x2b0021);const _0xaae583=_0x176be9['filter'](_0x3bfa4b=>!_0x3bfa4b['isAdded'])['map'](_0x2352d2=>_0x2352d2['id']);let _0x2f8222=0x0;const _0xa6cfe9=this['_makeTape'](_0x20b295['model'][_0x521f96]['deletions']);_0xa6cfe9['forEach'](_0x364f6d=>{_0x364f6d['isRemoved']?_0x364f6d['id']=_0x29b9c5++:_0x364f6d['id']=_0xaae583[_0x2f8222++];}),this['_processTape'](_0xa6cfe9),this['_setDistance'](_0x176be9,'isAdded'),this['_setDistance'](_0xa6cfe9,'isRemoved'),_0x20b295==_0x2f8e5f&&this['_markMarkers'](_0x176be9,_0x4fabee),_0x176be9=this['_joinTapes'](_0x176be9,_0xa6cfe9),this['_refreshStartEndIndex'](_0x176be9),this['_setDistance'](_0x176be9,'isRemoved');}_0x176be9=_0x176be9['filter'](_0x6e1cc5=>!(_0x6e1cc5['isAdded']&&_0x6e1cc5['isRemoved']));const _0x2a3803=new Map(_0x457b25['model'][_0x521f96]['deletions']['markers']),_0x41db5c=new Set(_0x4fabee['keys']());for(const _0x4c36a7 of _0x2a3803['keys']())_0x41db5c['delete'](_0x4c36a7);this['_markSuggestions'](_0x176be9,_0x41db5c),this['_fixObsoleteTags'](_0x176be9),_0x176be9=this['_removeMissingPairs'](_0x176be9),_0x176be9=this['_markMismatchedRemovedTags'](_0x176be9),_0x176be9=this['_removeUnsupportedChanges'](_0x176be9);const {root:_0x92f605,changes:_0x379658}=this['_makeModelFromTape'](_0x176be9,_0x32d404,_0x521f96);_0x3f717a['model'][_0x521f96]=_0x92f605;const _0x13eb03=_0x51ee32['get'](_0x521f96);if(_0x13eb03){const _0x3103e2=_0x32d404['get'](_0x13eb03['userId']),_0x473ee3=new r({'author':_0x3103e2,'type':_0x13eb03['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x521f96});_0x379658['unshift'](_0x473ee3),_0x3f717a['attributes'][_0x521f96]['revisionHistoryAttachChange']=_0x473ee3['id'];}_0x3f717a['changes']=_0x3f717a['changes']['concat'](_0x379658);}return _0x3f717a;}['_markMarkers'](_0x3e88ad,_0x586d74){for(let _0x446dd5=0x0;_0x446dd5<_0x3e88ad['length'];_0x446dd5++)for(const [_0x38971f,_0x4c638d]of _0x586d74)_0x4c638d['start']['isEqual'](_0x3e88ad[_0x446dd5]['previousPosition'])&&_0x3e88ad[_0x446dd5]['markersStart']['push'](_0x38971f),_0x4c638d['end']['isEqual'](_0x3e88ad[_0x446dd5]['nextPosition'])&&_0x3e88ad[_0x446dd5]['markersEnd']['push'](_0x38971f);}['_joinTapes'](_0x4775bc,_0x1765a7){let _0x18aaf7=[],_0x228a7a=0x0,_0x24f0c5=0x0;for(;_0x228a7a<_0x4775bc['length']||_0x24f0c5<_0x1765a7['length'];){const _0x2a0a72=_0x4775bc[_0x228a7a]||{},_0xa11b42=_0x1765a7[_0x24f0c5]||{};if(_0x2a0a72['id']==_0xa11b42['id'])_0x228a7a++,_0x24f0c5++,_0x18aaf7['push'](_0x2a0a72);else{if(_0xa11b42['isRemoved']&&_0x2a0a72['isAdded']){const {commonTape:_0x63a2c1,iEnd:_0x4cbb39,jEnd:_0x5bc752}=this['_threeWayMerge'](_0x4775bc,_0x228a7a,_0x1765a7,_0x24f0c5);_0x18aaf7=_0x18aaf7['concat'](_0x63a2c1),_0x228a7a=_0x4cbb39,_0x24f0c5=_0x5bc752;}else _0xa11b42['isRemoved']?(_0x24f0c5++,_0x18aaf7['push'](_0xa11b42)):(_0x228a7a++,_0x18aaf7['push'](_0x2a0a72));}}return _0x18aaf7;}['_markSuggestions'](_0x5dc4b4,_0x263ed2){const _0x39a4f6=[];for(let _0x40f18b=0x0;_0x40f18b<_0x5dc4b4['length'];_0x40f18b++){for(let _0x9e8ba=0x0;_0x9e8ba<_0x5dc4b4[_0x40f18b]['markersStart']['length'];_0x9e8ba++){const _0x486b85=_0x5dc4b4[_0x40f18b]['markersStart'][_0x9e8ba];if(!_0x263ed2['has'](_0x486b85))continue;const {group:_0x1123aa,type:_0x537c26,authorId:_0x245089}=_0x1c87ef(_0x486b85);'revision-suggestion'!=_0x1123aa||'insertion'!=_0x537c26&&'deletion'!=_0x537c26||(_0x39a4f6['unshift']({'type':_0x537c26,'name':_0x486b85,'userId':_0x245089}),_0x5dc4b4[_0x40f18b]['markersStart']['splice'](_0x9e8ba,0x1),_0x9e8ba--);}_0x1ccaef(_0x5dc4b4[_0x40f18b]);for(let _0x4c8083=0x0;_0x4c8083<_0x5dc4b4[_0x40f18b]['markersEnd']['length'];_0x4c8083++){const _0x45d7a6=_0x5dc4b4[_0x40f18b]['markersEnd'][_0x4c8083];if(!_0x263ed2['has'](_0x45d7a6))continue;const {group:_0x4280d8,type:_0x97279}=_0x1c87ef(_0x45d7a6);if('revision-suggestion'!=_0x4280d8||'insertion'!=_0x97279&&'deletion'!=_0x97279)continue;_0x5dc4b4[_0x40f18b]['markersEnd']['splice'](_0x4c8083,0x1),_0x4c8083--;const _0x2bc7dc=_0x39a4f6['findIndex'](_0x2916af=>_0x2916af['name']==_0x45d7a6);_0x2bc7dc>-0x1&&_0x39a4f6['splice'](_0x2bc7dc,0x1);}}function _0x1c87ef(_0x22cd5a){const _0x5d515a=_0x22cd5a['split'](':');return{'group':_0x5d515a[0x0],'type':_0x5d515a[0x1],'subType':_0x5d515a['length']>=0x5?_0x5d515a[0x2]:null,'id':_0x5d515a['length']<0x5?_0x5d515a[0x2]:_0x5d515a[0x3],'authorId':_0x5d515a['length']<0x5?_0x5d515a[0x3]:_0x5d515a[0x4],'markerCount':0x6==_0x5d515a['length']?_0x5d515a[0x5]:null};}function _0x1ccaef(_0x220d1f){for(let _0x5f3c27=0x0;_0x5f3c27<_0x39a4f6['length'];_0x5f3c27++){if(_0x220d1f['isAdded']&&'insertion'==_0x39a4f6[_0x5f3c27]['type'])return _0x220d1f['isAddSuggestion']=_0x39a4f6[_0x5f3c27],void delete _0x220d1f['isAdded'];if(!_0x220d1f['isAdded']&&!_0x220d1f['isRemoved']&&'deletion'==_0x39a4f6[_0x5f3c27]['type'])return void(_0x220d1f['isRemoveSuggestion']=_0x39a4f6[_0x5f3c27]);}}}['_setDistance'](_0xc27475,_0x4e3b6b){let _0x12f739=0x0,_0x1a632f=!0x1;const _0x541736=new Map();for(const _0x56937c of _0xc27475)_0x56937c[_0x4e3b6b]?_0x1a632f&&(_0x12f739++,_0x1a632f=!0x1):(_0x12f739++,_0x1a632f=!0x0),_0x541736['set'](_0x56937c['id'],_0x12f739);for(let _0x42d340=0x0;_0x42d340<_0xc27475['length'];_0x42d340++){if('isRemoved'==_0x4e3b6b&&_0xc27475[_0x42d340]['isAdded']||'isAdded'==_0x4e3b6b&&_0xc27475[_0x42d340]['isRemoved'])continue;if('text'==_0xc27475[_0x42d340]['type']){_0xc27475[_0x42d340]['distance']=0x0;continue;}const _0x291c04=_0x541736['get'](_0xc27475[_0x42d340]['pairId']),_0x3f6891=_0x541736['get'](_0xc27475[_0x42d340]['id']);_0xc27475[_0x42d340]['distance']=_0x291c04-_0x3f6891;}}['_getRevisionsRange'](_0x240444,_0x12cac9,_0x55d8a0=!0x1){const _0x230547=[];let _0x5dddf4=this['repository']['getIndex'](_0x240444),_0x231155=this['repository']['getIndex'](_0x12cac9);for(-0x1==_0x231155&&(_0x231155=this['repository']['_revisions']['length'],_0x55d8a0=!0x1);_0x5dddf4<_0x231155;)_0x230547['push'](this['repository']['getRevision'](_0x5dddf4)),_0x5dddf4++;return _0x55d8a0&&_0x230547['push'](this['repository']['getRevision'](_0x5dddf4)),_0x230547;}['_threeWayMerge'](_0xbffa90,_0x3f52a9,_0x318ca4,_0x276843){const _0x5ca96e=this['editor']['model']['schema'];let _0xb8f28e=_0x3f52a9;for(;_0xbffa90[_0xb8f28e]&&_0xbffa90[_0xb8f28e]['isAdded'];)_0xb8f28e++;let _0x2c46d1=_0x276843;for(;_0x318ca4[_0x2c46d1]&&_0x318ca4[_0x2c46d1]['isRemoved'];)_0x2c46d1++;_0x1b9c75(_0xbffa90,_0x3f52a9,_0xb8f28e),_0x1b9c75(_0x318ca4,_0x276843,_0x2c46d1);const _0x45fa2d=_0x318ca4['slice'](_0x276843,_0x2c46d1)['concat'](_0xbffa90['slice'](_0x3f52a9,_0xb8f28e));return _0x45fa2d['sort']((_0x549af9,_0x29786f)=>_0x549af9['side']!=_0x29786f['side']?_0x549af9['side']-_0x29786f['side']:_0x549af9['level']!=_0x29786f['level']?_0x549af9['level']-_0x29786f['level']:_0x549af9['distance']!=_0x29786f['distance']?_0x29786f['distance']-_0x549af9['distance']:!!_0x549af9['isAdded']!=!!_0x29786f['isAdded']?-0x1==_0x549af9['side']||0x0==_0x549af9['side']?_0x549af9['isAdded']?-0x1:0x1:_0x549af9['isAdded']?0x1:-0x1:_0x549af9['index']-_0x29786f['index']),{'commonTape':_0x45fa2d,'iEnd':_0xb8f28e,'jEnd':_0x2c46d1};function _0x1b9c75(_0x14a5db,_0x224ddf,_0x10ca95){let _0x56a85b=-0x1,_0x257ceb=Number['POSITIVE_INFINITY'],_0x4d0376=!0x0;for(let _0xa8eb5d=_0x224ddf;_0xa8eb5d<_0x10ca95;_0xa8eb5d++)if(_0x5ca96e['isInline'](_0x14a5db[_0xa8eb5d]['item'])||(_0x4d0376=!0x1),_0x14a5db[_0xa8eb5d]['item']['startIndex']<_0x224ddf&&(_0x56a85b=_0xa8eb5d),_0x14a5db[_0xa8eb5d]['item']['endIndex']>=_0x10ca95){_0x257ceb=_0xa8eb5d;break;}_0x4d0376&&(_0x56a85b=_0x10ca95-0x1);for(let _0xe0aa2a=_0x224ddf;_0xe0aa2a<_0x10ca95;_0xe0aa2a++)_0x14a5db[_0xe0aa2a]['side']=_0xe0aa2a<=_0x56a85b?-0x1:_0xe0aa2a<_0x257ceb?0x0:0x1,_0x14a5db[_0xe0aa2a]['index']=_0xe0aa2a;let _0xdb9fc2=0x0;for(let _0x35f1f8=_0x224ddf;_0x35f1f8<=_0x56a85b;_0x35f1f8++)0x0==_0x14a5db[_0x35f1f8]['distance']?_0x14a5db[_0x35f1f8]['level']=_0xdb9fc2:(_0xdb9fc2++,_0x14a5db[_0x35f1f8]['level']=_0xdb9fc2,_0xdb9fc2++);for(let _0x1f7840=_0x224ddf;_0x1f7840<_0x10ca95;_0x1f7840++)0x0==_0x14a5db[_0x1f7840]['side']&&(_0x14a5db[_0x1f7840]['level']=_0xdb9fc2);_0xdb9fc2=0x0;for(let _0x8bb581=_0x10ca95-0x1;_0x8bb581>=_0x257ceb;_0x8bb581--)0x0==_0x14a5db[_0x8bb581]['distance']?_0x14a5db[_0x8bb581]['level']=_0xdb9fc2:(_0xdb9fc2--,_0x14a5db[_0x8bb581]['level']=_0xdb9fc2,_0xdb9fc2--);}}['_fixObsoleteTags'](_0x20c87a){const _0x52c9ab=new Map(),_0x1e5635=this['editor']['model']['schema'];for(let _0xe4e697=0x1;_0xe4e697<_0x20c87a['length'];_0xe4e697++){let _0x442ae8,_0x39b072,_0x5336cf;const _0x3d2c57=_0x20c87a[_0xe4e697],_0x3d9e1b=_0x20c87a[_0xe4e697-0x1];if('text'==_0x3d2c57['type'])continue;if(_0x3d2c57['type']!=_0x3d9e1b['type'])continue;if(!_0x1e5635['isBlock'](_0x3d9e1b['item'])||_0x1e5635['isLimit'](_0x3d9e1b['item']))continue;if(!_0x1e5635['isBlock'](_0x3d2c57['item'])||_0x1e5635['isLimit'](_0x3d2c57['item']))continue;if((_0x20c87a[_0xe4e697]['isAdded']||_0x20c87a[_0xe4e697]['isAddSuggestion'])&&_0x20c87a[_0xe4e697-0x1]['isRemoved'])_0x442ae8=_0x20c87a[_0xe4e697],_0x39b072=_0x20c87a[_0xe4e697-0x1],_0x5336cf=_0xe4e697-0x1;else{if(!_0x20c87a[_0xe4e697]['isRemoved']||!_0x20c87a[_0xe4e697-0x1]['isAdded']&&!_0x20c87a[_0xe4e697-0x1]['isAddSuggestion'])continue;_0x442ae8=_0x20c87a[_0xe4e697-0x1],_0x39b072=_0x20c87a[_0xe4e697],_0x5336cf=_0xe4e697;}const _0x31e38c=_0x442ae8['level']==_0x39b072['level'],_0x166b64=Math['abs'](_0x442ae8['level'])<Math['abs'](_0x39b072['level'])&&0x0==_0x39b072['distance'];(_0x31e38c||_0x166b64)&&(_0x52c9ab['set'](_0x39b072['id'],_0x442ae8['id']),_0x20c87a['splice'](_0x5336cf,0x1),_0xe4e697--,_0x442ae8['isAdded']=!0x1);}for(let _0x242f04=0x0;_0x242f04<_0x20c87a['length'];_0x242f04++)_0x52c9ab['has'](_0x20c87a[_0x242f04]['pairId'])&&(_0x20c87a[_0x242f04]['pairId']=_0x52c9ab['get'](_0x20c87a[_0x242f04]['pairId']));}['_removeMissingPairs'](_0x2af9d7){const _0x21423f=new Set(_0x2af9d7['map'](_0x292f9a=>_0x292f9a['id']));for(let _0x1545d3=0x0;_0x1545d3<_0x2af9d7['length'];_0x1545d3++)_0x21423f['has'](_0x2af9d7[_0x1545d3]['pairId'])||0x0==_0x2af9d7[_0x1545d3]['distance']||(_0x2af9d7[_0x1545d3]['isIncorrect']=!0x0);return _0x2af9d7['filter'](_0x5eddb7=>!_0x5eddb7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x531ffd){const _0xb73e62=new Set();for(let _0x9f5dea=0x0;_0x9f5dea<_0x531ffd['length'];_0x9f5dea++){if(_0xb73e62['has'](_0x531ffd[_0x9f5dea]['id'])&&_0x531ffd[_0x9f5dea]['isRemoved']&&(_0x531ffd[_0x9f5dea]['isIncorrect']=!0x0),_0x531ffd[_0x9f5dea]['isIncorrect'])continue;if(0x0==_0x531ffd[_0x9f5dea]['distance'])continue;if('elementStart'!=_0x531ffd[_0x9f5dea]['type'])continue;if(null==_0x531ffd[_0x9f5dea]['pairId'])continue;let _0x2470ed=_0x9f5dea+0x1,_0x623f84=0x0;for(;_0x531ffd[_0x2470ed]['id']!=_0x531ffd[_0x9f5dea]['pairId'];)'elementStart'==_0x531ffd[_0x2470ed]['type']?_0x623f84++:'elementEnd'==_0x531ffd[_0x2470ed]['type']&&_0x623f84--,_0x2470ed++;if(0x0!=_0x623f84){if(_0x531ffd[_0x9f5dea]['isRemoved'])_0x531ffd[_0x9f5dea]['isIncorrect']=!0x0;else{for(;_0x2470ed!=_0x9f5dea;)_0x531ffd[_0x2470ed]['isRemoved']&&0x0!=_0x531ffd[_0x2470ed]['distance']&&(_0x531ffd[_0x2470ed]['isIncorrect']=!0x0,_0xb73e62['add'](_0x531ffd[_0x2470ed]['pairId'])),_0x2470ed--;}}}return _0x531ffd['filter'](_0x3fe1ae=>!_0x3fe1ae['isIncorrect']);}['_removeUnsupportedChanges'](_0x4237ef){const _0x2a40bd=this['editor']['model']['schema'];for(let _0x190278=0x0;_0x190278<_0x4237ef['length'];_0x190278++){if(!(_0x4237ef[_0x190278]['isAdded']||_0x4237ef[_0x190278]['isAddSuggestion']||_0x4237ef[_0x190278]['isRemoved']||_0x4237ef[_0x190278]['isRemoveSuggestion']))continue;if(0x0==_0x4237ef[_0x190278]['distance'])continue;const _0x2e2984=_0x4237ef[_0x190278]['item'];_0x2a40bd['isBlock'](_0x2e2984)||_0x2a40bd['isLimit'](_0x2e2984)||(_0x4237ef[_0x190278]['isAdded']&&delete _0x4237ef[_0x190278]['isAdded'],_0x4237ef[_0x190278]['isAddSuggestion']&&delete _0x4237ef[_0x190278]['isAddSuggestion'],_0x4237ef[_0x190278]['isRemoveSuggestion']&&delete _0x4237ef[_0x190278]['isRemoveSuggestion'],_0x4237ef[_0x190278]['isRemoved']&&(_0x4237ef[_0x190278]['isIncorrect']=!0x0));}return _0x4237ef['filter'](_0x26a151=>!_0x26a151['isIncorrect']);}['_makeModelFromTape'](_0x581b20,_0x1f6959,_0x31584c){const _0x1d790e=new mt(),_0x2b7082=[],_0x4887d2=new Map(),_0x8d3b46=this['editor']['model'],_0x4d805d=_0x8d3b46['schema'],_0x56c3d4=[_0x1d790e],_0x6eab93={},_0x29c6ca={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x58397b=null;const _0x46d309=[0x0];for(let _0x240afa=0x0;_0x240afa<_0x581b20['length'];_0x240afa++)if('elementStart'===_0x581b20[_0x240afa]['type']){_0x581b20[_0x240afa]['previousPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309);const _0xa828ae=new ft(_0x581b20[_0x240afa]['item']['name'],_0x581b20[_0x240afa]['item']['getAttributes']());_0x56c3d4[0x0]['_appendChild'](_0xa828ae),_0x46d309['push'](0x0),_0x56c3d4['unshift'](_0xa828ae),_0x581b20[_0x240afa]['nextPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309);}else'elementEnd'===_0x581b20[_0x240afa]['type']?(_0x56c3d4['shift'](),_0x581b20[_0x240afa]['previousPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309),_0x46d309['pop'](),_0x46d309[_0x46d309['length']-0x1]++,_0x581b20[_0x240afa]['nextPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309)):(_0x581b20[_0x240afa]['previousPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309),_0x58397b?_0x58397b['_data']+=_0x581b20[_0x240afa]['item']['data']:_0x58397b=new wt(_0x581b20[_0x240afa]['item']['data'],_0x581b20[_0x240afa]['item']['getAttributes']()),_0x581b20[_0x240afa+0x1]&&'text'===_0x581b20[_0x240afa+0x1]['type']&&_0x370dc3(_0x58397b,_0x581b20[_0x240afa+0x1]['item'])||(_0x56c3d4[0x0]['_appendChild'](_0x58397b),_0x58397b=null),_0x46d309[_0x46d309['length']-0x1]+=_0x581b20[_0x240afa]['item']['offsetSize'],_0x581b20[_0x240afa]['nextPosition']=_0x8d3b46['createPositionFromPath'](_0x1d790e,_0x46d309));for(let _0x51e4f8=0x0;_0x51e4f8<_0x581b20['length'];_0x51e4f8++){const _0x80e972=_0x581b20[_0x51e4f8]['previousPosition'],_0x126462=_0x581b20[_0x51e4f8]['nextPosition'];for(const _0x5bb9fa of _0x581b20[_0x51e4f8]['markersStart'])_0x4887d2['set'](_0x5bb9fa,{'start':_0x80e972,'end':null});_0x1eeccb('isRemoveSuggestion',_0x51e4f8,_0x80e972,_0x126462),_0x1eeccb('isAddSuggestion',_0x51e4f8,_0x80e972,_0x126462),_0x1eeccb('isRemoved',_0x51e4f8,_0x80e972,_0x126462),_0x1eeccb('isAdded',_0x51e4f8,_0x80e972,_0x126462);for(const _0x34c6b5 of _0x581b20[_0x51e4f8]['markersEnd']){_0x4887d2['get'](_0x34c6b5)['end']=_0x126462;}}for(const [_0x2cb2e8,_0x41b6e1]of _0x4887d2){const _0x308c82=this['editor']['model']['createRange'](_0x41b6e1['start'],_0x41b6e1['end']);_0x1d790e['markers']['set'](_0x2cb2e8,_0x308c82);}return _0x2b7082['sort']((_0x477102,_0x1b02d9)=>{const _0x49bfb8=_0x1d790e['markers']['get']('revision:'+_0x477102['id']),_0x3ad560=_0x1d790e['markers']['get']('revision:'+_0x1b02d9['id']);return _0x49bfb8['start']['isBefore'](_0x3ad560['start'])?-0x1:_0x49bfb8['start']['isAfter'](_0x3ad560['start'])?0x1:_0x49bfb8['end']['isBefore'](_0x3ad560['end'])?-0x1:_0x49bfb8['end']['isAfter'](_0x3ad560['end'])?0x1:'add'===_0x477102['type']?-0x1:0x1;}),{'root':_0x1d790e,'changes':_0x2b7082};function _0x1eeccb(_0x426391,_0x467df1,_0x105232,_0x32129e){const _0xfad31f=!!_0x581b20[_0x467df1][_0x426391],_0x15ad28=_0xfad31f?_0x581b20[_0x467df1][_0x426391]['userId']:null,_0x5a7c78=_0x467df1===_0x581b20['length']-0x1,_0x2b19ea=_0x29c6ca[_0x426391][0x0],_0x48f6c6=_0x4d805d['isObject'](_0x581b20[_0x467df1]['item']);!_0x6eab93[_0x426391]&&_0xfad31f?_0x6eab93[_0x426391]={'start':_0x105232,'tapeItem':_0x581b20[_0x467df1],'userId':_0x15ad28,'type':_0x426391}:_0x6eab93[_0x426391]&&!_0xfad31f?(_0x6eab93[_0x426391]['end']=_0x105232,_0x52357e(_0x6eab93[_0x426391]),_0x6eab93[_0x426391]=null):_0x6eab93[_0x426391]&&_0xfad31f&&_0x6eab93[_0x426391]['userId']!==_0x15ad28&&(_0x6eab93[_0x426391]['end']=_0x105232,_0x2b19ea&&_0x2b19ea['userId']===_0x6eab93[_0x426391]['userId']||_0x52357e(_0x6eab93[_0x426391]),_0x6eab93[_0x426391]={'start':_0x105232,'tapeItem':_0x581b20[_0x467df1],'userId':_0x15ad28,'type':_0x426391}),_0x6eab93[_0x426391]&&_0x48f6c6&&('elementStart'!==_0x581b20[_0x467df1]['type']||_0x2b19ea&&_0x2b19ea['userId']===_0x15ad28||_0x29c6ca[_0x426391]['unshift']({'userId':_0x15ad28,'object':_0x581b20[_0x467df1]['item'],'change':_0x6eab93[_0x426391]}),'elementEnd'===_0x581b20[_0x467df1]['type']&&_0x2b19ea&&_0x2b19ea['object']===_0x581b20[_0x467df1]['item']&&(_0x29c6ca[_0x426391]['shift'](),_0x6eab93[_0x426391]=_0x2b19ea['change'])),_0x6eab93[_0x426391]&&_0x5a7c78&&(_0x6eab93[_0x426391]['end']=_0x32129e,_0x52357e(_0x6eab93[_0x426391]),_0x6eab93[_0x426391]=null);}function _0x52357e({start:_0x5c14bd,end:_0x1b580f,tapeItem:_0x54fefc,userId:_0x4a02eb,type:_0x53c49b}){const _0xd108c9=_0x54fefc['item'],_0x1ba816=_0x8d3b46['schema']['isBlock'](_0xd108c9)&&!_0x8d3b46['schema']['isLimit'](_0xd108c9),_0x3b63a2=_0x5c14bd['nodeAfter']==_0x1b580f['parent']&&_0x1b580f['isAtStart'];if(_0x1ba816&&_0x3b63a2)return;const _0x4b1cb1=_0x8d3b46['createRange'](_0x5c14bd,_0x1b580f),_0x56f82b=_0x1f6959['get'](_0x4a02eb),_0x54c1fa=new r({'author':_0x56f82b,'type':'isAdded'==_0x53c49b||'isAddSuggestion'==_0x53c49b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x53c49b||'isRemoveSuggestion'==_0x53c49b},'createdAt':new Date(),'rootName':_0x31584c});_0x2b7082['push'](_0x54c1fa),_0x1d790e['markers']['set']('revision:'+_0x54c1fa['id'],_0x4b1cb1);}function _0x370dc3(_0x2e7008,_0x2972d5){const _0xe008d7=_0x2e7008['getAttributes'](),_0x589d1c=_0x2972d5['getAttributes']();for(const _0x5cced3 of _0xe008d7){if(_0x5cced3[0x1]!==_0x2972d5['getAttribute'](_0x5cced3[0x0]))return!0x1;_0x589d1c['next']();}return _0x589d1c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3a9007=>{const _0x3b592a=_0x3a9007['markerName']['split'](':')[0x1],_0x254be5=this['_getChangeFromId'](_0x3b592a);if(!_0x254be5)return null;const _0x11e7fe='add'==_0x254be5['type']?'insertion':'deletion',_0x23eaf9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x11e7fe];return _0x254be5['data']['isSuggestion']&&_0x23eaf9['push']('ck-suggestion-marker-'+_0x11e7fe+'-new'),this['activeChange']==_0x254be5&&_0x23eaf9['push']('ck-suggestion-marker--active'),{'classes':_0x23eaf9,'attributes':{'data-change-id':_0x3b592a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5d5278=>{_0x5d5278['on']('element:pre',(_0x203473,_0xa5da87,_0x391543)=>{const _0x3958c2=_0xa5da87['viewItem']['getChild'](0x0);if(!_0x3958c2||!_0x3958c2['is']('element','code'))return;if(!_0x391543['consumable']['consume'](_0x3958c2,{'attributes':['vid_start','vid_end']}))return;const _0x1212d3=_0xa5da87['modelRange']['start']['nodeAfter'];_0x391543['writer']['setAttribute']('vid_start',_0x3958c2['getAttribute']('vid_start'),_0x1212d3),_0x391543['writer']['setAttribute']('vid_end',_0x3958c2['getAttribute']('vid_end'),_0x1212d3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5112bb=>{_0x5112bb['on']('element',(_0x5caf3f,_0x2e4391,_0x5533fc)=>{if(!_0x5533fc['consumable']['consume'](_0x2e4391['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2e4391['modelRange']['isCollapsed'])return;const _0x516353=_0x2e4391['modelRange']['start']['nodeAfter'];_0x516353['hasAttribute']('vid_start')||_0x516353['hasAttribute']('vid')||(_0x5533fc['writer']['setAttribute']('vid_start',_0x2e4391['viewItem']['getAttribute']('vid_start'),_0x516353),_0x5533fc['writer']['setAttribute']('vid_end',_0x2e4391['viewItem']['getAttribute']('vid_end'),_0x516353));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3434b4=>_0x3434b4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x16a027,[,_0x6093b5])=>{['vid_start','vid_end','vid']['includes'](_0x6093b5)&&(_0x16a027['return']=!0x0,_0x16a027['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2b262a=>{_0x2b262a['on']('attribute:vid',(_0x1b2ef6,_0x4ec023,_0x486879)=>{if('\x20'!=_0x4ec023['item']['data']||_0x4ec023['item']['parent']['maxOffset']>0x1)return;if(!_0x486879['consumable']['consume'](_0x4ec023['item'],_0x1b2ef6['name']))return;const _0x2ab53a=_0x486879['writer'],_0x263609=_0x486879['mapper']['toViewRange'](_0x4ec023['range']);_0x2ab53a['wrap'](_0x263609,_0x2ab53a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2f064a){const _0xd61c6f=_0x2f064a['plugins']['get']('RevisionViewer');return(_0x40b7a2,_0x4ea769,_0x32e56d)=>{const _0x264765=_0x4ea769['markerName']['split'](':')[0x1],_0x1fbf57=_0xd61c6f['_getChangeFromId'](_0x264765);if(!_0x1fbf57)return null;const _0x8e4544='add'==_0x1fbf57['type']?'split':'merge';if(!_0x32e56d['consumable']['test'](_0x4ea769['markerRange'],_0x40b7a2['name']))return;const _0x22eb50=_0x4ea769['markerRange']['getWalker'](),_0xd0ea50=_0x4ea769['markerRange']['start'],_0x389c80=_0x2f064a['model']['schema'];let _0x186b47=null,_0x473b88=null,_0x43d0=!0x1,_0xad8a9=!0x1;for(const _0x13b599 of _0x22eb50){const _0x4facbf=_0x13b599['item'];_0x43d0=_0x43d0||_0x389c80['isContent'](_0x4facbf);const _0x11744c=_0x32e56d['mapper']['toViewElement'](_0x4facbf);if(_0x11744c&&_0x11744c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13b599['type']&&(_0x389c80['isBlock'](_0x4facbf)&&!_0x389c80['isLimit'](_0x4facbf)&&(_0x4facbf['nextSibling']||_0xd0ea50['isAtEnd']?_0x186b47&&_0x186b47['parent']==_0x4facbf||(_0x186b47=_0x4facbf,_0x2a0b1c(_0x13b599['previousPosition']),_0xad8a9=!0x0):_0x473b88=_0x473b88||_0x13b599['previousPosition']));}function _0x2a0b1c(_0x55fca5){const _0x1d14ee=_0x32e56d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8e4544}),_0x9d3c3e=_0x32e56d['mapper']['toViewPosition'](_0x55fca5);_0x1fbf57['data']['isSuggestion']&&_0x32e56d['writer']['addClass']('ck-suggestion-marker-'+_0x8e4544+'-new',_0x1d14ee),_0xd61c6f['activeChange']==_0x1fbf57&&_0x32e56d['writer']['addClass']('ck-suggestion-marker--active',_0x1d14ee),_0x32e56d['writer']['insert'](_0x9d3c3e,_0x1d14ee),_0x32e56d['mapper']['bindElementToMarker'](_0x1d14ee,_0x4ea769['markerName']);}_0x43d0||_0xad8a9||!_0x473b88||_0x2a0b1c(_0x473b88);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x33e9c7,_0x1ff832,_0x6e964e)=>{const _0x60390=_0x6e964e['mapper']['markerNameToElements'](_0x1ff832['markerName']);if(_0x60390){for(const _0x25764e of _0x60390)(_0x25764e['hasClass']('ck-suggestion-marker-split')||_0x25764e['hasClass']('ck-suggestion-marker-merge'))&&(_0x6e964e['mapper']['unbindElementFromMarkerName'](_0x25764e,_0x1ff832['markerName']),_0x6e964e['writer']['remove'](_0x25764e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd271c6,_0x1858c4,_0x53465e)=>{const _0x237c7a=_0x1858c4['markerName']['split'](':')[0x1],_0x19eec7=this['_getChangeFromId'](_0x237c7a);if(!_0x19eec7)return null;const _0x58fbb6='add'==_0x19eec7['type']?'split':'merge';if(_0x53465e['consumable']['test'](_0x1858c4['markerRange'],_0xd271c6['name']))for(const _0x19f2e1 of _0x1858c4['markerRange']['getItems']()){if(!_0x19f2e1['is']('element','softBreak'))continue;const _0x1c52ed=_0x53465e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58fbb6}),_0x5b3801=_0x53465e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x19f2e1));_0x19eec7['data']['isSuggestion']&&_0x53465e['writer']['addClass']('ck-suggestion-marker-'+_0x58fbb6+'-new',_0x1c52ed),this['activeChange']==_0x19eec7&&_0x53465e['writer']['addClass']('ck-suggestion-marker--active',_0x1c52ed),_0x53465e['writer']['insert'](_0x5b3801,_0x1c52ed),_0x53465e['mapper']['bindElementToMarker'](_0x1c52ed,_0x1858c4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3642bd=>{for(const _0x1bf9a2 of this['editor']['model']['document']['getRootNames']()){const _0x30970f=this['editor']['model']['document']['getRoot'](_0x1bf9a2),_0x3a27e4=this['editor']['editing']['view']['document']['getRoot'](_0x1bf9a2);if(_0x3a27e4){const _0x39ebbb=_0x30970f['getAttribute']('revisionHistoryAttachChange');if(_0x3642bd['removeAttribute']('data-change-id',_0x3a27e4),_0x3642bd['removeClass']('ck-revision-history-root-add',_0x3a27e4),_0x3642bd['removeClass']('ck-revision-history-root-remove',_0x3a27e4),_0x3642bd['removeClass']('ck-revision-history-root--active',_0x3a27e4),_0x39ebbb){const _0x5a12ef=this['_getChangeFromId'](_0x39ebbb);if(!_0x5a12ef)return null;_0x3642bd['setAttribute']('data-change-id',_0x39ebbb,_0x3a27e4),_0x3642bd['addClass']('ck-revision-history-root-'+_0x5a12ef['type'],_0x3a27e4),this['activeChange']==_0x5a12ef&&_0x3642bd['addClass']('ck-revision-history-root--active',_0x3a27e4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x116fca=>'revision-comment:'+_0x116fca,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x90113b=>'revision-suggestion:'+_0x90113b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1d5f12=>({'name':'suggestion:'+_0x1d5f12,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x46495b=>{const _0x2ff216=_0x46495b['markerName']['split'](':')[0x1];return'insertion'!=_0x2ff216&&'deletion'!=_0x2ff216?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2ff216]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x183625,_0x4afe16,_0x1913fc)=>{const _0x38cc5b=_0x1913fc['mapper']['markerNameToElements'](_0x4afe16['markerName']);if(_0x38cc5b){for(const _0x32bb0a of _0x38cc5b)_0x32bb0a['is']('uiElement')&&(_0x1913fc['mapper']['unbindElementFromMarkerName'](_0x32bb0a,_0x4afe16['markerName']),_0x1913fc['writer']['remove'](_0x32bb0a));}},{'priority':'high'});}['_getChangeFromId'](_0xe981dc){return this['_changeIdToChange']['get'](_0xe981dc);}['_getViewForChange'](_0x3705ba){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3705ba),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x41b811,_0x55efa9,_0x5d4f1f,_0x397617)=>{_0x397617&&this['_balloon']['remove'](_0x397617),_0x5d4f1f&&(this['_balloon']['add']({'view':_0x5d4f1f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x908611=this['editor']['editing'],_0x54f46e=this['_getChangeFromId'](_0x5d4f1f['changeId']);let _0x2a0040;if(_0x54f46e['data']['isOnRoot']){const _0x15fafa=_0x908611['view']['getDomRoot'](_0x54f46e['rootName']);_0x2a0040=Array['from'](_0x15fafa['getClientRects']());}else{const _0x16850e=this['editor']['model']['markers']['get']('revision:'+_0x5d4f1f['changeId']);_0x2a0040=Array['from'](_0x908611['mapper']['markerNameToElements'](_0x16850e['name']))['map'](_0x432bf7=>_0x908611['view']['domConverter']['mapViewToDom'](_0x432bf7))['map'](_0xbce470=>Array['from'](_0xbce470['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2a0040[0x0];return _0x2a0040['find'](_0x2e3e23=>_0x2e3e23['top']-0x3<=this['_activeViewTarget']['y']&&_0x2e3e23['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2e3e23['left']-0x3<=this['_activeViewTarget']['x']&&_0x2e3e23['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a0040[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5ba897,_0x5026c8,_0x3f93fd,_0x5d6595)=>{this['activeView']=_0x3f93fd?this['_getViewForChange'](_0x3f93fd):null,this['editor']['model']['change'](()=>{const _0x1c57c2=this['editor']['editing'];_0x5d6595&&(_0x5d6595['data']['isOnRoot']?_0x1c57c2['view']['change'](_0x4262dc=>{_0x4262dc['removeClass']('ck-revision-history-root--active',_0x1c57c2['view']['document']['getRoot'](_0x5d6595['rootName']));}):_0x1c57c2['reconvertMarker']('revision:'+_0x5d6595['id'])),_0x3f93fd&&(_0x3f93fd['data']['isOnRoot']?_0x1c57c2['view']['change'](_0x28bea5=>{_0x28bea5['addClass']('ck-revision-history-root--active',_0x1c57c2['view']['document']['getRoot'](_0x3f93fd['rootName']));}):_0x1c57c2['reconvertMarker']('revision:'+_0x3f93fd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1191e5,_0x388f41)=>{if(this['activeChange'])return;const _0x503fab=this['_findChangeIdFromDomTarget'](_0x388f41['target']),_0x54749c=this['_changeIdToChange']['get'](_0x503fab);_0x54749c?(this['_activeViewTarget']={'x':_0x388f41['domEvent']['x'],'y':_0x388f41['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x54749c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2425cc,_0xb7f237)=>{const _0x414704=this['_findChangeIdFromDomTarget'](_0xb7f237['target']),_0x2c1983=this['_changeIdToChange']['get'](_0x414704);_0x2c1983?(this['_activeViewTarget']={'x':_0xb7f237['domEvent']['x'],'y':_0xb7f237['domEvent']['y']},_0x2c1983===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2c1983):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d283a){do{const _0x174724=_0x1d283a['getAttribute']('data-change-id');if(_0x174724)return _0x174724;_0x1d283a=_0x1d283a['parent'];}while(_0x1d283a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x17ec69=>{for(const _0x48ae58 of this['editor']['model']['markers'])_0x17ec69['removeMarker'](_0x48ae58);});}}function Z(_0x2bd706,_0x56c603){return(_0x3c9622,_0xd4efcd,_0x4f3cb6)=>{if(!_0x4f3cb6['consumable']['test'](_0xd4efcd['markerRange'],_0x3c9622['name']))return;const _0x43eca2=_0xd4efcd['markerRange']['getWalker'](),_0x5ca82a=_0xd4efcd['markerRange']['start'],_0x31438e=_0x2bd706['model']['schema'];let _0x2d08f1=null,_0x5debd4=null,_0x2bfb97=!0x1,_0x3902ca=!0x1;for(const _0x49d145 of _0x43eca2){const _0x20b895=_0x49d145['item'];_0x2bfb97=_0x2bfb97||_0x31438e['isContent'](_0x20b895);const _0x123622=_0x4f3cb6['mapper']['toViewElement'](_0x20b895);if(_0x123622&&_0x123622['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49d145['type']&&(_0x31438e['isBlock'](_0x20b895)&&!_0x31438e['isLimit'](_0x20b895)&&(_0x20b895['nextSibling']||_0x5ca82a['isAtEnd']?_0x2d08f1&&_0x2d08f1['parent']==_0x20b895||(_0x2d08f1=_0x20b895,_0x3b6a4e(_0x49d145['previousPosition']),_0x3902ca=!0x0):_0x5debd4=_0x5debd4||_0x49d145['previousPosition']));}function _0x3b6a4e(_0x5382dc){const _0x3ab21c=_0x4f3cb6['mapper']['toViewPosition'](_0x5382dc),_0x14a68b=_0x4f3cb6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x56c603});_0x4f3cb6['writer']['insert'](_0x3ab21c,_0x14a68b),_0x4f3cb6['mapper']['bindElementToMarker'](_0x14a68b,_0xd4efcd['markerName']);}_0x2bfb97||_0x3902ca||!_0x5debd4||_0x3b6a4e(_0x5debd4);};}class _t extends _0x3ed6a1{constructor(_0x1b7f2a){super(_0x1b7f2a);const _0x39a2cc=_0x1b7f2a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x39a2cc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x39a2cc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x41bb19=this['editor'],_0x11ca79=_0x41bb19['plugins']['get'](d),_0x2cc89d=_0x11ca79['isReady']?_0x11ca79['diff']['newRevisionId']:null;_0x41bb19['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2cc89d);}['refresh'](){const {isReady:_0x5d7648,isEnabled:_0x5bb09e,repository:_0x47c112,diff:_0x26ab7b}=this['editor']['plugins']['get'](d),_0xaf6280=_0x26ab7b&&_0x47c112['getLaterVisibleRevision'](_0x26ab7b['newRevisionId']);this['isEnabled']=_0x5d7648&&_0x5bb09e&&Boolean(_0xaf6280);}}class yt extends _0x3ed6a1{['_step'];constructor(_0x272856,{direction:_0x280f07}){super(_0x272856);const _0x3a6ece=_0x272856['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x280f07?0x1:-0x1,this['listenTo'](_0x3a6ece,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a6ece,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3a6ece,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x44206a=this['editor'],_0x4f4bcf=_0x44206a['plugins']['get'](d),{isNavigationMode:_0x3a1c33,currentChangeNumber:_0x1a8d3d}=_0x4f4bcf;let _0x27a933;if(_0x4f4bcf['activeChange']=_0x3a1c33?_0x4f4bcf['diff']['changes']['get'](_0x1a8d3d+this['_step']):_0x4f4bcf['diff']['changes']['first'],_0x4f4bcf['activeChange']['data']['isOnRoot'])_0x27a933=_0x44206a['editing']['view']['getDomRoot'](_0x4f4bcf['activeChange']['rootName']);else{const _0x12b510=_0x44206a['model']['markers']['get']('revision:'+_0x4f4bcf['activeChange']['id']);_0x27a933=_0x59db08(_0x44206a['editing'],_0x12b510);}_0x503e76({'target':_0x27a933,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1d4631,currentChangeNumber:_0x2a0f6a,numberOfChanges:_0x4c390c,isReady:_0x4a174d,isEnabled:_0x439fb2}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x439fb2&&_0x4a174d&&_0x4c390c)&&(!_0x1d4631||(0x1===this['_step']?_0x2a0f6a<_0x4c390c-0x1:_0x2a0f6a>0x0));}}class _i extends _0xb5bc71{constructor(_0x49b967){super(_0x49b967);const _0x1d2774=this['bindTemplate'],_0x493d82=new _0xe84945(_0x49b967),_0x445ce5=new _0xe84945(_0x49b967);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',(_0x38f610,_0x32ca4c)=>_0x38f610&&_0x32ca4c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2c6a5a,_0x4f7425,_0x333e88,_0x1a58b1)=>{if(!_0x2c6a5a)return m(_0x49b967,'Loading...');if(!_0x333e88)return m(_0x49b967,'No\x20changes');const _0x568f18=m(_0x49b967,'NUMBER_OF_CHANGES',_0x333e88);return _0x1a58b1?m(_0x49b967,'X_OF_Y_CHANGES',[_0x4f7425+0x1,_0x333e88]):_0x568f18;}),_0x493d82['set']({'label':m(_0x49b967,'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'}),_0x445ce5['set']({'label':m(_0x49b967,'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'}),_0x493d82['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x445ce5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x493d82['on']('execute',()=>this['fire']('execute','backward')),_0x445ce5['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',_0x1d2774['if']('_isStatusLabelVisible','ck-hidden',_0x56dd0d=>!_0x56dd0d)]},'children':[{'text':_0x1d2774['to']('isNavigationMode',_0x7bf4b2=>_0x7bf4b2?m(_0x49b967,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x49b967,'Total')+':\x20')}]},{'text':_0x1d2774['to']('_statusText')}]},new _0xb4512e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x493d82,_0x445ce5]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x29e489{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x55706a=this['editor']['editing']['view'];_0x55706a['change'](_0xd44cdc=>{for(const _0x5a241e of _0x55706a['document']['roots'])_0xd44cdc['addClass'](ce,_0x5a241e);});}['hide'](){const _0x2d69a1=this['editor']['editing']['view'];_0x2d69a1['change'](_0x1cf533=>{for(const _0x5873b5 of _0x2d69a1['document']['roots'])_0x1cf533['removeClass'](ce,_0x5873b5);});}}class g extends _0x29e489{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x21fb78=this['editor'],_0x5adfb8=_0x21fb78['plugins']['get'](d),_0x2f3293=_0x21fb78['plugins']['get'](le);_0x21fb78['ui']['componentFactory']['add']('exitToEditing',_0x433072=>{const _0x2be49b=new _0xe84945(_0x433072);return _0x2be49b['set']({'label':m(_0x433072,'Back\x20to\x20editing'),'icon':_0x4a7550['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2be49b,'execute',()=>{_0x21fb78['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2be49b;}),_0x21fb78['ui']['componentFactory']['add']('restoreRevision',_0x240f22=>{const _0x1046c6=new _0xe84945(_0x240f22);return _0x1046c6['set']({'label':m(_0x240f22,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1046c6['bind']('isEnabled')['to'](_0x21fb78['commands']['get']('restoreRevision')),this['listenTo'](_0x1046c6,'execute',()=>_0x21fb78['execute']('restoreRevision')),_0x1046c6;}),_0x21fb78['ui']['componentFactory']['add']('changesNavigation',_0xfc25b5=>{const _0x3674af=new _i(_0xfc25b5),_0x34d652=_0x21fb78['commands']['get']('showPreviousChange'),_0x1e5461=_0x21fb78['commands']['get']('showNextChange');return _0x3674af['bind']('isBackwardNavigationEnabled')['to'](_0x34d652,'isEnabled'),_0x3674af['bind']('isForwardNavigationEnabled')['to'](_0x1e5461,'isEnabled'),_0x3674af['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5adfb8),this['listenTo'](_0x3674af,'execute',(_0x4172b6,_0x217001)=>{_0x21fb78['execute']('forward'===_0x217001?'showNextChange':'showPreviousChange');}),_0x3674af;}),_0x2f3293['show'](),_0x5adfb8['on']('change:isReady',(_0x49ee4b,_0x5a54d2,_0x24f72b)=>{_0x24f72b?_0x2f3293['hide']():_0x2f3293['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x388f32,_0x47cf3d){super(_0x388f32,_0x47cf3d);const _0x4ff2c7=this['bindTemplate'];this['set']({'label':m(_0x388f32,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x388f32,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ff2c7['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 _0x41bf6a=this['fieldView']['element'];this['_tooltipString']=_0x41bf6a['scrollWidth']>_0x41bf6a['clientWidth']&&_0x41bf6a['value']||'';}}class ti extends _0xb5bc71{constructor(_0x24c52b,_0x506960,_0x33791a){super(_0x24c52b);const _0x24cfbf=new _0x29d439();_0x24cfbf['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 _0x4cd79f=['ck','ck-revision-history-sidebar__revision-author'];_0x33791a&&_0x4cd79f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5a89ff=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x24c52b,_0x33791a?'Revision\x20creator':'Revision\x20author')},'children':[_0x24cfbf,_0x506960['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4cd79f},'children':_0x5a89ff});}}function ni(_0x5f320f,_0x52c36b){const _0x5498e5=_0x5f320f['bindTemplate'],_0x3f8e93=_0x5f320f['locale'],_0x5f30e0=_0x417cf8(_0x3f8e93);_0x5f30e0['panelPosition']='sw';const _0x45541d=function(_0x5464f6,_0x2bd298){const _0x554c5b=function(_0x3fa2b4,_0xd8e510){const _0xe8cd6a=_0x3fa2b4['locale'],_0x28d8cb={'Compare\x20against\x20selected':m(_0xe8cd6a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xe8cd6a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xe8cd6a,'Restore\x20this\x20revision')};return _0xd8e510['map'](_0x4da724=>{const _0x4a7e66=_0x28d8cb[_0x4da724['name']];return _0x4a7e66&&_0x4a7e66!==_0x4da724['name']&&(_0x4da724['name']=_0x4a7e66),_0x4da724;});}(_0x5464f6,_0x2bd298),_0x50b086=new _0x5238b7();for(const _0x2631f7 of _0x554c5b){const _0x5f1cbd={'type':'button','model':new to({'label':_0x2631f7['name'],'class':_0x2631f7['class'],'withText':!0x0,'role':'menuitem','_action':_0x2631f7['action']})};_0x5f1cbd['model']['bind']('isEnabled')['to'](_0x5464f6,'isActionsDropdownOpen',_0x57435f=>'function'!=typeof _0x2631f7['isEnabled']||(!_0x57435f||_0x2631f7['isEnabled'](_0x5464f6))),_0x50b086['add'](_0x5f1cbd);}return _0x50b086;}(_0x5f320f,_0x52c36b);return _0x5f320f['bind']('isActionsDropdownOpen')['to'](_0x5f30e0,'isOpen'),_0x5f30e0['buttonView']['set']({'label':m(_0x3f8e93,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4a7550['threeVerticalDots']}),_0x5f30e0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5498e5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5498e5['to'](_0x3acf7=>_0x3acf7['stopPropagation']())}}),_0x5f30e0['on']('execute',_0x383ba6=>{_0x5f320f['isReady']&&'function'==typeof _0x383ba6['source']['_action']&&_0x383ba6['source']['_action'](_0x5f320f);}),_0x1105a3(_0x5f30e0,_0x45541d,{'role':'menu'}),_0x5f30e0['listenTo'](_0x5f320f,'change:isActionsDropdownOpen',(_0x6ef7ed,_0x1d69ab,_0x473487)=>{if(_0x473487)for(const _0x233b18 of _0x5f30e0['listView']['items']){const _0x500dcf=_0x233b18['children']['first'],_0x18cf41=_0x52c36b['find'](_0x17d9ba=>_0x17d9ba['action']===_0x500dcf['_action'])['isVisible'];_0x233b18['isVisible']=void 0x0===_0x18cf41||_0x18cf41(_0x5f320f);}}),_0x5f30e0;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x324c5b(_0xb5bc71){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3583af,_0x720cc4,_0x499c88,_0x4827c5){super(_0x3583af);const _0x5884d5=this['bindTemplate'],_0x18aeae=function(_0x509c0e,_0x744a0b){const _0x39c6de=Array['from'](_0x744a0b['authors'])['filter'](_0x17a46e=>_0x17a46e!=_0x744a0b['creator']);return _0x744a0b['creator']&&_0x39c6de['unshift'](_0x744a0b['creator']),_0x39c6de['map'](_0x2af5a6=>new ti(_0x509c0e,_0x2af5a6,_0x2af5a6==_0x744a0b['creator']));}(_0x3583af,_0x720cc4);this['id']=_0x720cc4['id'],this['_revision']=_0x720cc4,this['_requireRevisionName']=_0x4827c5,this['bind']('name','createdAt')['to'](_0x720cc4),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x161058=>{return _0x10be80=_0x3583af['uiLanguage'],(_0x20ff6e=_0x161058)['toLocaleDateString'](_0x10be80,{'month':'long','day':'numeric'})+',\x20'+_0x20ff6e['toLocaleTimeString'](_0x10be80,{'hour':'numeric','minute':'numeric'});var _0x10be80,_0x20ff6e;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3583af,_0x396089),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x897af2=>_0x897af2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1495e5,_0x25b166)=>_0x1495e5&&_0x25b166),this['revisionActionsView']=_0x499c88&&_0x499c88['length']?ni(this,_0x499c88):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5884d5['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5884d5['if']('isEnabled','ck-disabled',_0x6753e5=>!_0x6753e5),_0x5884d5['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5884d5['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5884d5['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':_0x5884d5['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':_0x18aeae}]},this['revisionActionsView']],'on':{'click':_0x5884d5['to'](_0x4b06ff=>{_0x4b06ff['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x241934=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x241934,'change',()=>{this['_requireRevisionName']&&!_0x241934['value']||this['fire']('setName',{'id':this['id'],'name':_0x241934['value']}),_0x241934['value']||(_0x241934['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x1335e2,_0x41a73b){const _0x4b412e=_0x5eecc5['fromJSDate'](_0x1335e2)['setLocale'](_0x41a73b),_0x1ff041=_0x5eecc5['local'](),_0x33a2d4=_0x1ff041['minus']({'days':0x1})['startOf']('day');let _0x22de54,_0x2c7626;return _0x4b412e['hasSame'](_0x1ff041,'day')?(_0x22de54=_0x4b412e['startOf']('day')['toJSDate'](),_0x2c7626=_0x4b412e['toRelativeCalendar']()):_0x4b412e['hasSame'](_0x33a2d4,'day')?(_0x22de54=_0x33a2d4['toJSDate'](),_0x2c7626=_0x4b412e['toRelativeCalendar']()):_0x4b412e['hasSame'](_0x1ff041,'week')?(_0x22de54=_0x4b412e['startOf']('week')['toJSDate'](),_0x2c7626=_0x4b412e['weekdayLong']||''):_0x4b412e['hasSame'](_0x1ff041,'year')?(_0x22de54=_0x4b412e['startOf']('month')['toJSDate'](),_0x2c7626=_0x4b412e['monthLong']||''):(_0x22de54=_0x4b412e['startOf']('year')['toJSDate'](),_0x2c7626=String(_0x4b412e['year'])),{'startDate':_0x22de54,'localizedPeriodName':_0x2c7626};}class mi extends _0xb5bc71{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c73ac,_0x434ba0,_0xe3f4ed,_0x490fb1){super(_0x4c73ac);const _0x344a07=di(_0x434ba0,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x434ba0,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xe3f4ed,this['_requireRevisionName']=_0x490fb1,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':_0x344a07}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5d00f7){const _0x48334d=new ai(this['locale'],_0x5d00f7,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x48334d);}['removeRevision'](_0x290817){const _0x1b6f2a=this['revisionViews']['find'](_0x3db175=>_0x3db175['id']===_0x290817['id']);this['revisionViews']['remove'](_0x1b6f2a);}}class as extends _0xb5bc71{constructor(_0x5c2630){super(_0x5c2630);const _0x1f85d9=new _0x29d439();_0x1f85d9['content']=_0x4a7550['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1f85d9,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5c2630,'Revision\x20history')]}]});}}class ci extends _0xb5bc71{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58bc25,_0x4014bc,_0x2b0edb,_0x3062ec){super(_0x58bc25);const _0x579793=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4014bc,this['_revisionActions']=_0x2b0edb,this['_requireRevisionName']=_0x3062ec,this['on']('select',(_0xdece38,_0x2272b5)=>{this['fire']('revisionSelected',_0x2272b5);}),this['on']('setName',(_0x5d208a,_0x16f89b)=>{this['fire']('revisionSetName',_0x16f89b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x58bc25),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x579793['if']('isEnabled','ck-disabled',_0x5d4fef=>!_0x5d4fef)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5e3c79 of this['_revisions'])this['_addRevision'](_0x5e3c79);this['_revisions']['on']('add',(_0x246f69,_0x4dbb44)=>{this['_addRevision'](_0x4dbb44);}),this['_revisions']['on']('remove',(_0x49a998,_0x52728d)=>{this['_removeRevision'](_0x52728d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3af85=>_0x3af85['revisionViews']['map'](_0xc724cd=>_0xc724cd))['flat']();}['selectRevision'](_0x26d287){for(const _0x182f0f of this['revisionViews'])_0x26d287&&_0x26d287['id']===_0x182f0f['id']?_0x182f0f['select']():_0x182f0f['deselect']();}['highlightRevisions'](_0x1ad73d){for(const _0x420a23 of this['revisionViews'])_0x1ad73d['some'](({id:_0x2c9115})=>_0x2c9115===_0x420a23['id'])?_0x420a23['highlight']():_0x420a23['unhighlight']();}['_addRevision'](_0x363e1c){const _0x3a2c0d=di(_0x363e1c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2baff4=this['timePeriodViews']['get'](0x0);_0x2baff4&&_0x2baff4['startDate']['getTime']()===_0x3a2c0d['getTime']()||(_0x2baff4=new mi(this['locale'],_0x3a2c0d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2baff4)),_0x2baff4['addRevision'](_0x363e1c);}['_removeRevision'](_0x4e7f4a){const _0x34dd9d=di(_0x4e7f4a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x34dd9d)['removeRevision'](_0x4e7f4a);}['_getTimePeriodViewByStartDate'](_0x280668){return this['timePeriodViews']['find'](_0x5d7743=>_0x5d7743['startDate']['getTime']()===_0x280668['getTime']());}}class w extends _0x29e489{['_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(_0x53864a){super(_0x53864a),this['_revisionViewer']=_0x53864a['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xdc9141=this['_revisionsRepository']['_revisions'],_0xa7280a=this['_createRevisionActions'](),_0x4171dd=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0xdc9141,_0xa7280a,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',(_0x3d1ef8,_0x2e0d7d)=>{_0x2e0d7d['revisionViews']['on']('add',(_0x9b3c5f,_0x46aef3)=>{_0x46aef3['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)),_0x4171dd['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x54c5e2=this['_revisionsRepository']['getRevision'](0x0);if(_0x54c5e2){const _0x146e4b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x54c5e2['id']);this['_revisionViewer']['compare'](_0x54c5e2,_0x146e4b);}}['_handleRevisionSelected'](_0x236992,_0x11fdc1){const _0x355cce=this['_revisionsRepository']['getRevision'](_0x11fdc1['id']),_0x5a88bf=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x355cce['id']);this['_revisionViewer']['compare'](_0x355cce,_0x5a88bf);}['_handleRevisionSetName'](_0x2ca1e8,_0x86d7c4){this['_revisionsRepository']['getRevision'](_0x86d7c4['id'])['setName'](_0x86d7c4['name']);}['_handleDiffChange'](_0x31e6d1,_0x15818d,_0x1a12b8){const _0x471b4e=this['_revisionsRepository']['getRevisionsInDiff'](_0x1a12b8);_0x471b4e['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x471b4e),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x471b4e[0x0]));}['_createRevisionActions'](){const _0x609cc6=this['editor'],_0x1df12d=w['availableRevisionActions'],_0x43853f=_0x609cc6['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x43853f['length'])return _0x43853f['map'](_0x2252a1=>{const _0x494e05='string'==typeof _0x2252a1?Object['assign']({},_0x1df12d[_0x2252a1]):_0x2252a1;return _0x494e05['action']=_0x494e05['action']['bind'](this,_0x609cc6),_0x494e05['isVisible']&&(_0x494e05['isVisible']=_0x494e05['isVisible']['bind'](this,_0x609cc6)),_0x494e05;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x347525},_0x4248fc)=>{const _0x587894=_0x347525['get'](d),_0xafaf38=_0x587894['repository'];let _0x2d9847=_0x587894['diff']['newRevisionId'],_0x5a6c92=_0x4248fc['id'];_0xafaf38['getIndex'](_0x2d9847)>_0xafaf38['getIndex'](_0x5a6c92)&&([_0x2d9847,_0x5a6c92]=[_0x5a6c92,_0x2d9847]),_0x587894['compare'](_0x2d9847,_0x5a6c92);},'isVisible':({plugins:_0x28b0fd},_0x62de68)=>{const _0x42a26f=_0x28b0fd['get'](d);return!(_0x42a26f['repository']['getRevisionsInDiff'](_0x42a26f['diff'])['length']>0x2)&&!_0x62de68['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xf53284,{id:_0x3d88f4})=>{_0xf53284['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3d88f4);},'isVisible':({plugins:_0x338813},_0x58ffc3)=>!!_0x338813['get'](d)['repository']['getLaterVisibleRevision'](_0x58ffc3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x54ece1},{id:_0x21fa40,revisionNameView:_0x3c5edc})=>{const _0x2f6232=_0x54ece1['get'](d),_0x465cd5=_0x2f6232['repository']['getEarlierVisibleRevision'](_0x21fa40);_0x2f6232['compare'](_0x21fa40,_0x465cd5),_0x3c5edc['focus'](),_0x3c5edc['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x43f0cb,_0x2aa50e){super(_0x43f0cb),this['_view']=_0x2aa50e,this['_toolbarConfig']=ot(_0x43f0cb['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x53a1a3){const _0x4052de=this['editor'],_0x4e93f3=this['view'],_0x6e60c3=_0x4052de['editing']['view'],_0x9018e5=_0x4e93f3['editable'],_0x29c8a8=_0x6e60c3['document']['getRoot']();_0x9018e5['name']=_0x29c8a8['rootName'],_0x4e93f3['render']();const _0x5ea5c5=_0x9018e5['element'];this['setEditableElement'](_0x9018e5['name'],_0x5ea5c5),_0x4e93f3['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x6e60c3['attachDomRoot'](_0x5ea5c5),this['_elementReplacer']['replace'](_0x53a1a3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x443565=this['view'],_0x420cb5=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x420cb5['detachDomRoot'](_0x443565['editable']['name']),_0x443565['destroy']();}['_initToolbar'](){const _0x21de59=this['view'];_0x21de59['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x21de59['stickyPanel']['limiterElement']=_0x21de59['element'],_0x21de59['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2429a3})=>_0x2429a3),_0x21de59['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x21de59['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x40a69e,_0xabef09,_0x25966e={}){super(_0x40a69e),this['stickyPanel']=new ut(_0x40a69e),this['toolbar']=new lt(_0x40a69e,{'shouldGroupWhenFull':_0x25966e['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x40a69e,_0xabef09);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1b7210,_0x3133cc){super(_0x3133cc),this['sourceElement']=_0x1b7210,this['model']['document']['createRoot']();const _0x30aa8b=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x30aa8b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2848e0,_0x4daf38){const _0xfd7f29=new this(_0x2848e0,_0x4daf38);return await _0xfd7f29['initPlugins'](),await _0xfd7f29['ui']['init'](_0x2848e0),await _0xfd7f29['data']['init'](_0xfd7f29['config']['get']('initialData')||''),_0xfd7f29['fire']('ready'),_0xfd7f29;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x5076e7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x285474){function _0x584288(_0x48473e){return _0x48473e['map'](_0xb1ab5c=>String['fromCharCode'](_0xb1ab5c))['join']('');}super(_0x285474),this['result']='end',_0x285474[_0x584288([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x584288([0x76,0x69,0x65,0x77])][_0x584288([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x584288([0x61,0x75,0x74,0x6f]),_0x285474[_0x584288([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x584288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x584288([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x584288([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x584288([0x6f,0x6b])});}}class k extends _0x5076e7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3c6893){if(super(_0x3c6893),!this['editor']['config']['get']('revisionHistory'))throw new _0x32ed3d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x16bfa8=>this['_showRevisionViewer']({..._0x16bfa8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x40b3a7=>this['_closeRevisionViewer'](_0x40b3a7)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1e4ae9=>this['_restoreRevision'](_0x1e4ae9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x317fc7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x317fc7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x27481a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x27481a);}['getRevision'](_0x468c2d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x468c2d);}['getRevisions'](_0x329b5c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x329b5c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5cfae0=this['editor'],_0x15f66c=_0x30902e(_0x5cfae0,p),_0x5c16ce=_0x5cfae0['plugins']['get']('RevisionTracker'),_0x2a554e=_0x5cfae0['plugins']['get']('Users')['users'];return _0x15f66c['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x15f66c['lazyRoots'],(_0x15f66c['plugins']['push'](Rt,d,g,class extends _0x5076e7{static get['requires'](){return[d,'Users'];}['init'](){const _0x34d064=this['editor']['plugins']['get']('Users');for(const _0x3eafff of _0x2a554e)_0x3eafff['isAnonymous']||_0x34d064['getUser'](_0x3eafff['id'])||_0x34d064['addUser'](_0x3eafff);const _0x284c1c=_0x5c16ce['repository']['getRevisions']();let _0xa71427=null;const _0xa1be76=this['editor']['plugins']['get']('RevisionViewer');_0xa1be76['adapter']=_0x5c16ce['adapter'],_0xa1be76['bind']('isEnabled')['to'](_0x5c16ce),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5cfae0,'isReadOnly',_0x416388=>!_0x416388);for(const _0x1cb1e1 of _0x284c1c){const _0x59bfea=null===_0x1cb1e1['creator'];if(_0x59bfea&&_0x1cb1e1['toVersion']===_0x1cb1e1['fromVersion'])continue;const _0xe8a57f=_0x1cb1e1['toJSON']();_0xa1be76['addRevisionData'](_0xe8a57f,(_0x5c7875,_0x434cbe,_0x110c1d)=>{if(_0x59bfea){if(_0xa71427)_0xa71427['_update'](_0x5c7875,_0x434cbe);else{if(!_0x434cbe){const _0x12e601=_0x110c1d['toJSON']();_0x12e601['id']=_0x5618d1(),_0x5c16ce['saveRevision'](_0x12e601,_0x110c1d['toVersion'])['then'](_0x363e39=>{_0xa71427=_0x363e39;});}}}else _0x1cb1e1['_update'](_0x5c7875,_0x434cbe);});}}},w),_0x15f66c);}['_enhanceShowRevisionViewerCallback'](){const _0x20d148=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2423ff=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x35c1e4=this['editor']['plugins']['get']('Autosave');await _0x35c1e4['save']();}else await _0x2423ff['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x132031=this['editor']['plugins']['get']('Dialog');_0x132031['isOpen']&&_0x132031['hide']();}const _0x57e2e4=this['_getRevisionViewerEditorConfig']();return _0x20d148(_0x57e2e4)['then'](_0x5ebbdb=>{return(this['_viewerEditor']=_0x5ebbdb,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5ebbdb;})['catch'](_0x23f0eb=>(console['error'](_0x23f0eb),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2377de=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'](),_0x2377de(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x45e470=this['editor']['plugins']['get']('Annotations');_0x45e470['refreshVisibility'](),_0x45e470['refreshPositioning']();}})));}['_showRevisionViewer'](_0x549293){const _0x1600eb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2964b0=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x255e8a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x255e8a,_0x549293)['then'](_0x1739a3=>(_0x2964b0['style']['display']='block',_0x1600eb['style']['display']='none',_0x1739a3));}['_closeRevisionViewer'](_0xe874a4){const _0x5c6df4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5c6df4['style']['display']='',_0xe874a4['destroy']();}async['_restoreRevision'](_0x2451d7){const _0x33a8fb=this['editor'],_0x39e58e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x8b2cfd=_0x33a8fb['plugins']['get']('RevisionTracker'),_0x2ca833=_0x39e58e['repository']['getRevision'](_0x2451d7);let _0x406f82,_0x51db81,_0x1ff67c;try{_0x406f82=await _0x39e58e['getRevisionData'](_0x2ca833),_0x51db81=await _0x39e58e['getRevisionRootsAttributes'](_0x2ca833);}catch(_0x115096){return void console['error'](_0x115096);}_0x33a8fb['model']['change'](_0x355d28=>{for(const _0x533d3d of Array['from'](_0x33a8fb['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x355d28['removeMarker'](_0x533d3d);}),_0x39e58e['isReady']=!0x1,_0x33a8fb['model']['enqueueChange'](_0x1ee3c0=>{_0x1ee3c0['setSelection'](null),_0x1ee3c0['removeSelectionAttribute'](_0x33a8fb['model']['document']['selection']['getAttributeKeys']());const _0x437e52=Object['keys'](_0x406f82);for(const _0x5c308a of _0x33a8fb['model']['document']['roots'])'$graveyard'!=_0x5c308a['rootName']&&_0x5c308a['isAttached']()&&!_0x437e52['includes'](_0x5c308a['rootName'])&&_0x1ee3c0['detachRoot'](_0x5c308a);for(const _0x39f4be of _0x437e52){let _0x2ac13f=_0x33a8fb['model']['document']['getRoot'](_0x39f4be);_0x2ac13f&&_0x2ac13f['isAttached']()||(_0x2ac13f=_0x1ee3c0['addRoot'](_0x39f4be));const _0x23c9e6=_0x51db81[_0x39f4be],_0x1fe7f1=Object['keys'](_0x23c9e6),_0x4954e8=_0x406f82[_0x39f4be];for(const _0x4f738c of _0x2ac13f['getAttributeKeys']())_0x1fe7f1['includes'](_0x4f738c)||_0x1ee3c0['removeAttribute'](_0x4f738c,_0x2ac13f);for(const _0x5329f8 of _0x1fe7f1)_0x1ee3c0['setAttribute'](_0x5329f8,_0x51db81[_0x39f4be][_0x5329f8],_0x2ac13f);_0x1ee3c0['remove'](_0x1ee3c0['createRangeIn'](_0x2ac13f)),_0x1ee3c0['insert'](_0x33a8fb['data']['parse'](_0x4954e8,_0x2ac13f),_0x2ac13f,0x0);}});const _0x311e33=m(_0x33a8fb['locale'],'Restored');if(_0x2ca833['name'])_0x1ff67c=-0x1==_0x2ca833['name']['indexOf'](_0x311e33)?_0x311e33+':\x20'+_0x2ca833['name']:_0x2ca833['name'];else _0x1ff67c=_0x311e33+':\x20'+(_0x2ca833['createdAt']['toLocaleDateString'](_0x33a8fb['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2ca833['createdAt']['toLocaleTimeString'](_0x33a8fb['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x8b2cfd['saveRevision']({'name':_0x1ff67c}),_0x39e58e['isReady']=!0x0,_0x33a8fb['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w 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(_0x14dd58){super(_0x14dd58),this['_revisionViewer']=_0x14dd58['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x410b30=this['_revisionsRepository']['_revisions'],_0x52c2c0=this['_createRevisionActions'](),_0x3ba437=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x410b30,_0x52c2c0,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',(_0x41403a,_0x57d461)=>{_0x57d461['revisionViews']['on']('add',(_0x934170,_0x42aef1)=>{_0x42aef1['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)),_0x3ba437['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4064b3=this['_revisionsRepository']['getRevision'](0x0);if(_0x4064b3){const _0x1a4af3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4064b3['id']);this['_revisionViewer']['compare'](_0x4064b3,_0x1a4af3);}}['_handleRevisionSelected'](_0x31292c,_0x549902){const _0x14ae26=this['_revisionsRepository']['getRevision'](_0x549902['id']),_0x3dc694=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14ae26['id']);this['_revisionViewer']['compare'](_0x14ae26,_0x3dc694);}['_handleRevisionSetName'](_0x198b39,_0x455cd5){this['_revisionsRepository']['getRevision'](_0x455cd5['id'])['setName'](_0x455cd5['name']);}['_handleDiffChange'](_0x526580,_0x58a42b,_0x1af173){const _0x52e7d6=this['_revisionsRepository']['getRevisionsInDiff'](_0x1af173);_0x52e7d6['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x52e7d6),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x52e7d6[0x0]));}['_createRevisionActions'](){const _0x1261d8=this['editor'],_0x4dee15=w['availableRevisionActions'],_0x5ab8df=_0x1261d8['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x5ab8df['length'])return _0x5ab8df['map'](_0x25a147=>{const _0xaa972e='string'==typeof _0x25a147?Object['assign']({},_0x4dee15[_0x25a147]):_0x25a147;return _0xaa972e['action']=_0xaa972e['action']['bind'](this,_0x1261d8),_0xaa972e['isVisible']&&(_0xaa972e['isVisible']=_0xaa972e['isVisible']['bind'](this,_0x1261d8)),_0xaa972e;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5c36d6},_0x3a1f3c)=>{const _0x221896=_0x5c36d6['get'](d),_0x5cd934=_0x221896['repository'];let _0x47e320=_0x221896['diff']['newRevisionId'],_0x5aa630=_0x3a1f3c['id'];_0x5cd934['getIndex'](_0x47e320)>_0x5cd934['getIndex'](_0x5aa630)&&([_0x47e320,_0x5aa630]=[_0x5aa630,_0x47e320]),_0x221896['compare'](_0x47e320,_0x5aa630);},'isVisible':({plugins:_0xb7f550},_0x5a6073)=>{const _0x289dda=_0xb7f550['get'](d);return!(_0x289dda['repository']['getRevisionsInDiff'](_0x289dda['diff'])['length']>0x2)&&!_0x5a6073['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x340d37,{id:_0x231bb4})=>{_0x340d37['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x231bb4);},'isVisible':({plugins:_0x1cc65c},_0x301262)=>!!_0x1cc65c['get'](d)['repository']['getLaterVisibleRevision'](_0x301262['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x16054f},{id:_0x3bf57d,revisionNameView:_0x3eb497})=>{const _0x4eca08=_0x16054f['get'](d),_0x120358=_0x4eca08['repository']['getEarlierVisibleRevision'](_0x3bf57d);_0x4eca08['compare'](_0x3bf57d,_0x120358),_0x3eb497['focus'](),_0x3eb497['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1239e8,_0x334c65){super(_0x1239e8),this['_view']=_0x334c65,this['_toolbarConfig']=ot(_0x1239e8['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x4874ed){const _0x4988cf=this['editor'],_0x19c954=this['view'],_0x449749=_0x4988cf['editing']['view'],_0x493f4b=_0x19c954['editable'],_0x24b16e=_0x449749['document']['getRoot']();_0x493f4b['name']=_0x24b16e['rootName'],_0x19c954['render']();const _0x423c7a=_0x493f4b['element'];this['setEditableElement'](_0x493f4b['name'],_0x423c7a),_0x19c954['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x449749['attachDomRoot'](_0x423c7a),this['_elementReplacer']['replace'](_0x4874ed,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4f372e=this['view'],_0x7afb8e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x7afb8e['detachDomRoot'](_0x4f372e['editable']['name']),_0x4f372e['destroy']();}['_initToolbar'](){const _0x3955e3=this['view'];_0x3955e3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3955e3['stickyPanel']['limiterElement']=_0x3955e3['element'],_0x3955e3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5a7f0a})=>_0x5a7f0a),_0x3955e3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3955e3['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x175ef7,_0x4c3017,_0x4e3f70={}){super(_0x175ef7),this['stickyPanel']=new ut(_0x175ef7),this['toolbar']=new lt(_0x175ef7,{'shouldGroupWhenFull':_0x4e3f70['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x175ef7,_0x4c3017);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x19cf06,_0x2aa33f){super(_0x2aa33f),this['sourceElement']=_0x19cf06,this['model']['document']['createRoot']();const _0x17c798=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x17c798);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x387289,_0x4b39d7){const _0x2f32c8=new this(_0x387289,_0x4b39d7);return await _0x2f32c8['initPlugins'](),await _0x2f32c8['ui']['init'](_0x387289),await _0x2f32c8['data']['init'](_0x2f32c8['config']['get']('initialData')||''),_0x2f32c8['fire']('ready'),_0x2f32c8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x29e489{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x81bfbb){function _0x39f5e7(_0x4b4337){return _0x4b4337['map'](_0x3e9ea4=>String['fromCharCode'](_0x3e9ea4))['join']('');}super(_0x81bfbb),this['result']='end',_0x81bfbb[_0x39f5e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f5e7([0x76,0x69,0x65,0x77])][_0x39f5e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39f5e7([0x61,0x75,0x74,0x6f]),_0x81bfbb[_0x39f5e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39f5e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39f5e7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39f5e7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39f5e7([0x6f,0x6b])});}}class k extends _0x29e489{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x303a36){if(super(_0x303a36),!this['editor']['config']['get']('revisionHistory'))throw new _0x461a1a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x34e4bf=>this['_showRevisionViewer']({..._0x34e4bf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x28e7ed=>this['_closeRevisionViewer'](_0x28e7ed)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x488d2a=>this['_restoreRevision'](_0x488d2a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x254ed2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x254ed2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x33dc12){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x33dc12);}['getRevision'](_0x3ecee4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3ecee4);}['getRevisions'](_0x515034){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x515034||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x11e03f=this['editor'],_0x16e058=_0x5ef743(_0x11e03f,p),_0xcaeee1=_0x11e03f['plugins']['get']('RevisionTracker'),_0x10a8e5=_0x11e03f['plugins']['get']('Users')['users'];return _0x16e058['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x16e058['lazyRoots'],(_0x16e058['plugins']['push'](Rt,d,g,class extends _0x29e489{static get['requires'](){return[d,'Users'];}['init'](){const _0x5ae155=this['editor']['plugins']['get']('Users');for(const _0x2712dd of _0x10a8e5)_0x2712dd['isAnonymous']||_0x5ae155['getUser'](_0x2712dd['id'])||_0x5ae155['addUser'](_0x2712dd);const _0x34c633=_0xcaeee1['repository']['getRevisions']();let _0x43151e=null;const _0x519733=this['editor']['plugins']['get']('RevisionViewer');_0x519733['adapter']=_0xcaeee1['adapter'],_0x519733['bind']('isEnabled')['to'](_0xcaeee1),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x11e03f,'isReadOnly',_0x282065=>!_0x282065);for(const _0x1aaa33 of _0x34c633){const _0x1cb3f4=null===_0x1aaa33['creator'];if(_0x1cb3f4&&_0x1aaa33['toVersion']===_0x1aaa33['fromVersion'])continue;const _0x1de9c0=_0x1aaa33['toJSON']();_0x519733['addRevisionData'](_0x1de9c0,(_0x5f4d33,_0x5830ca,_0x8eced7)=>{if(_0x1cb3f4){if(_0x43151e)_0x43151e['_update'](_0x5f4d33,_0x5830ca);else{if(!_0x5830ca){const _0x2705e7=_0x8eced7['toJSON']();_0x2705e7['id']=_0x44825c(),_0xcaeee1['saveRevision'](_0x2705e7,_0x8eced7['toVersion'])['then'](_0x24a061=>{_0x43151e=_0x24a061;});}}}else _0x1aaa33['_update'](_0x5f4d33,_0x5830ca);});}}},w),_0x16e058);}['_enhanceShowRevisionViewerCallback'](){const _0x3bc2e8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x461450=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x11ca32=this['editor']['plugins']['get']('Autosave');await _0x11ca32['save']();}else await _0x461450['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x215ed1=this['editor']['plugins']['get']('Dialog');_0x215ed1['isOpen']&&_0x215ed1['hide']();}const _0x14b44d=this['_getRevisionViewerEditorConfig']();return _0x3bc2e8(_0x14b44d)['then'](_0x1f816e=>{return(this['_viewerEditor']=_0x1f816e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1f816e;})['catch'](_0x1edad0=>(console['error'](_0x1edad0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5db4bc=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'](),_0x5db4bc(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x54ef2a=this['editor']['plugins']['get']('Annotations');_0x54ef2a['refreshVisibility'](),_0x54ef2a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3a3fbb){const _0x6a31a1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x13f89c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x13e636=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x13e636,_0x3a3fbb)['then'](_0x34bb94=>(_0x13f89c['style']['display']='block',_0x6a31a1['style']['display']='none',_0x34bb94));}['_closeRevisionViewer'](_0x52f134){const _0x45923e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x45923e['style']['display']='',_0x52f134['destroy']();}async['_restoreRevision'](_0x1e7fb7){const _0x4edacf=this['editor'],_0x291e4c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x40eb1a=_0x4edacf['plugins']['get']('RevisionTracker'),_0x334a30=_0x291e4c['repository']['getRevision'](_0x1e7fb7);let _0x1757ae,_0x12ec0e,_0x34853;try{_0x1757ae=await _0x291e4c['getRevisionData'](_0x334a30),_0x12ec0e=await _0x291e4c['getRevisionRootsAttributes'](_0x334a30);}catch(_0x38f5dd){return void console['error'](_0x38f5dd);}_0x4edacf['model']['change'](_0x402418=>{for(const _0x33bac2 of Array['from'](_0x4edacf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x402418['removeMarker'](_0x33bac2);}),_0x291e4c['isReady']=!0x1,_0x4edacf['model']['enqueueChange'](_0x33aa32=>{_0x33aa32['setSelection'](null),_0x33aa32['removeSelectionAttribute'](_0x4edacf['model']['document']['selection']['getAttributeKeys']());const _0xb3d6d5=Object['keys'](_0x1757ae);for(const _0x1ffb81 of _0x4edacf['model']['document']['roots'])'$graveyard'!=_0x1ffb81['rootName']&&_0x1ffb81['isAttached']()&&!_0xb3d6d5['includes'](_0x1ffb81['rootName'])&&_0x33aa32['detachRoot'](_0x1ffb81);for(const _0x23d158 of _0xb3d6d5){let _0x5172c4=_0x4edacf['model']['document']['getRoot'](_0x23d158);_0x5172c4&&_0x5172c4['isAttached']()||(_0x5172c4=_0x33aa32['addRoot'](_0x23d158));const _0x3229f9=_0x12ec0e[_0x23d158],_0x3bd88d=Object['keys'](_0x3229f9),_0xff641=_0x1757ae[_0x23d158];for(const _0x3002d4 of _0x5172c4['getAttributeKeys']())_0x3bd88d['includes'](_0x3002d4)||_0x33aa32['removeAttribute'](_0x3002d4,_0x5172c4);for(const _0x2ba970 of _0x3bd88d)_0x33aa32['setAttribute'](_0x2ba970,_0x12ec0e[_0x23d158][_0x2ba970],_0x5172c4);_0x33aa32['remove'](_0x33aa32['createRangeIn'](_0x5172c4)),_0x33aa32['insert'](_0x4edacf['data']['parse'](_0xff641,_0x5172c4),_0x5172c4,0x0);}});const _0x5135d2=m(_0x4edacf['locale'],'Restored');if(_0x334a30['name'])_0x34853=-0x1==_0x334a30['name']['indexOf'](_0x5135d2)?_0x5135d2+':\x20'+_0x334a30['name']:_0x334a30['name'];else _0x34853=_0x5135d2+':\x20'+(_0x334a30['createdAt']['toLocaleDateString'](_0x4edacf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x334a30['createdAt']['toLocaleTimeString'](_0x4edacf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x40eb1a['saveRevision']({'name':_0x34853}),_0x291e4c['isReady']=!0x0,_0x4edacf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};