@ckeditor/ckeditor5-revision-history 46.0.1-alpha.4 → 46.0.1-alpha.5

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,11 +20,11 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x46d461,uid as _0x4de09f,Collection as _0x3455f1,logWarning as _0x29a30c,FocusTracker as _0x22eada,KeystrokeHandler as _0x27fdae,scrollViewportToShowTarget as _0x1c4b70,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0xe7e073}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2f320b,set as _0x169b13,unset as _0x198dca,isEqual as _0x4a85bd}from'es-toolkit/compat';import{Plugin as _0x5e8bcb,PendingActions as _0x302a30,Command as _0x44fa3d,ElementApiMixin as _0x489004,Editor as _0x1f4a2c}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x42a9a2,getMarkerDomElement as _0x19750e,ConfirmMixin as _0x4de50b,sanitizeEditorConfig as _0x13bb37}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x43fe3e,ViewAttributeElement as _0x2d96e4,ViewEmptyElement as _0x15fce2,ViewRawElement as _0x375b39,ViewUIElement as _0x5e9b8d,ViewDocumentFragment as _0x2d289e,ViewText as _0x578e61,ViewElement as _0x2fe4da,ModelElement as _0x1c89c2,ModelRange as _0x35853a,ModelPosition as _0x41e47c,ModelDocumentFragment as _0x42921b,ModelText as _0x213f4e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5e53f9,IconChevronUp as _0x3985f9,IconChevronDown as _0x2a9948,IconUndo as _0x20ce7f,IconUser as _0x3d4b77,IconThreeVerticalDots as _0x21ffc2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0xd18b2e,View as _0x4691c3,submitHandler as _0x49fff6,LabeledFieldView as _0x506965,createLabeledInputText as _0x1340c0,createDropdown as _0x5b24c1,ListView as _0x65fa40,ListItemView as _0xd6f348,ButtonView as _0x304d89,MenuBarMenuView as _0x543c93,MenuBarMenuListView as _0x5cc111,MenuBarMenuListItemView as _0x41ed97,MenuBarMenuListItemButtonView as _0x5cdee7,ContextualBalloon as _0x53db58,ToolbarSeparatorView as _0x41f145,IconView as _0xd894e8,addListToDropdown as _0x24538a,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x313843,StickyPanelView as _0x436b55,ToolbarView as _0x3a21fd,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4ca622}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
- _0x46d461(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x14a45a){super(),this['id']=_0x14a45a['id']||_0x4de09f(),this['creator']=_0x14a45a['creator']||null,this['authors']=_0x14a45a['authors']||[],this['diffData']=_0x14a45a['diffData']||null,this['toVersion']=_0x14a45a['toVersion']||0x0,this['fromVersion']=_0x14a45a['fromVersion']||0x0,this['set']('name',_0x14a45a['name']||''),this['set']('createdAt',_0x14a45a['createdAt']||new Date()),this['set']('attributes',_0x14a45a['attributes']||{});}['setName'](_0x5b4775){this['_update']({'name':_0x5b4775});}['setAttribute'](_0x5f4a10,_0xd4e3ed){const _0x4245ca=_0x2f320b(this['attributes']);_0x169b13(_0x4245ca,_0x5f4a10,_0xd4e3ed),this['_update']({'attributes':_0x4245ca});}['removeAttribute'](_0x36a30f){const _0x2d3baa=_0x2f320b(this['attributes']);_0x198dca(_0x2d3baa,_0x36a30f),this['_update']({'attributes':_0x2d3baa});}['_update'](_0x14da40,_0x266d9d=!0x1){let _0x56dc98=!0x1;const _0x153401={'id':this['id']},_0x34c098=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a3280 of _0x34c098){const _0xf40014=_0x14da40[_0x5a3280];void 0x0!==_0xf40014&&_0xf40014!==this[_0x5a3280]&&(this[_0x5a3280]=_0xf40014,_0x153401[_0x5a3280]=_0xf40014,_0x56dc98=!0x0);}_0x56dc98&&(_0x153401['authors']&&(_0x153401['authorsIds']=_0x153401['authors']['map'](_0x286243=>_0x286243['id']),delete _0x153401['authors']),this['fire']('_update',_0x153401,_0x266d9d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x547ee9=>_0x547ee9['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x5e8bcb{['_revisions'];static get['requires'](){return[_0x42a9a2];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x41423b){super(_0x41423b),this['_revisions']=new _0x3455f1();}['afterInit'](){!async function(_0x1d906e){const _0x192a4e=_0xea0d84([0x4c,0x75,0x54,0x30,0x42,0x79,0x72,0x41,0x52,0x49,0x38,0x6e,0x63,0x6a,0x69,0x70,0x59,0x76,0x73,0x6f,0x48,0x64,0x58,0x34,0x53,0x33,0x71,0x4f,0x66,0x39,0x56,0x62,0x68,0x36,0x35,0x57,0x78,0x4d,0x4b,0x7a,0x61,0x67,0x51,0x74,0x6c,0x4a,0x43,0x46,0x47,0x32,0x6b,0x5a,0x31,0x77,0x4e,0x45,0x44,0x50,0x55,0x6d,0x37,0x65]),_0x16033b=0xeb829,_0x5a000f=0x5f0629ff,_0x3845c8=0x5f014697^_0x5a000f,_0x28f0a3=window[_0xea0d84([0x44,0x61,0x74,0x65])][_0xea0d84([0x6e,0x6f,0x77])](),_0x18fcca=_0x1d906e[_0xea0d84([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x444ec6=new window[(_0xea0d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23320f=>{_0x18fcca[_0xea0d84([0x6f,0x6e,0x63,0x65])](_0xea0d84([0x72,0x65,0x61,0x64,0x79]),_0x23320f);}),_0x528d1f={[_0xea0d84([0x6b,0x74,0x79])]:_0xea0d84([0x45,0x43]),[_0xea0d84([0x75,0x73,0x65])]:_0xea0d84([0x73,0x69,0x67]),[_0xea0d84([0x63,0x72,0x76])]:_0xea0d84([0x50,0x2d,0x32,0x35,0x36]),[_0xea0d84([0x78])]:_0xea0d84([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]),[_0xea0d84([0x79])]:_0xea0d84([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]),[_0xea0d84([0x61,0x6c,0x67])]:_0xea0d84([0x45,0x53,0x32,0x35,0x36])},_0x12938b=_0x18fcca[_0xea0d84([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xea0d84([0x67,0x65,0x74])](_0xea0d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f634e(){let _0x3e6bfb,_0x313431=null,_0x3e21ef=null;try{if(_0x12938b==_0xea0d84([0x47,0x50,0x4c]))return _0xea0d84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e6bfb=_0x384b72(),!_0x3e6bfb)return _0xea0d84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e6bfb[_0xea0d84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e21ef=_0x28c31b(_0x3e6bfb[_0xea0d84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e6bfb[_0xea0d84([0x6a,0x74,0x69])])),await _0x5e9bc6()?_0x28434a()?_0x240331()?_0xea0d84([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17d4c1()?(_0x3e6bfb[_0xea0d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xea0d84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x313431=_0x4200ec(_0xea0d84([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e6bfb[_0xea0d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xea0d84([0x74,0x72,0x69,0x61,0x6c])&&(_0x313431=_0x4200ec(_0xea0d84([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e6fdb()):_0xea0d84([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xea0d84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xea0d84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xea0d84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x240331(){const _0x23830f=[_0xea0d84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xea0d84([0x74,0x72,0x69,0x61,0x6c])][_0xea0d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e6bfb[_0xea0d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28f0a3/0x3e8:0xe10*_0x3845c8;return _0x3e6bfb[_0xea0d84([0x65,0x78,0x70])]<_0x23830f;}function _0x28434a(){const _0x420491=_0x3e6bfb[_0xea0d84([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x420491)return!0x1;if(_0x420491[_0xea0d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea0d84([0x2a])))return!0x0;if(_0x420491[_0xea0d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea0d84([0x52,0x48])))return!0x0;if(_0x420491[_0xea0d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea0d84([0x52,0x52,0x48]))){if(_0x17ff59())return!0x0;if(_0xdea8fd()||_0x255aa5())return!0x0;}return!0x1;}function _0x17d4c1(){const _0x29c283=_0x3e6bfb[_0xea0d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29c283||0x0==_0x29c283[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x576f50}=new URL(window[_0xea0d84([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29c283[_0xea0d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x576f50))return!0x0;const _0x4749fd=_0x576f50[_0xea0d84([0x73,0x70,0x6c,0x69,0x74])](_0xea0d84([0x2e]));return _0x29c283[_0xea0d84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e2b1f=>_0x3e2b1f[_0xea0d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea0d84([0x2a])))[_0xea0d84([0x6d,0x61,0x70])](_0x3fa853=>_0x3fa853[_0xea0d84([0x73,0x70,0x6c,0x69,0x74])](_0xea0d84([0x2e])))[_0xea0d84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf9e167=>_0xf9e167[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4749fd[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xea0d84([0x6d,0x61,0x70])](_0x2cd8a6=>Array(_0x4749fd[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2cd8a6[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xea0d84([0x66,0x69,0x6c,0x6c])](_0x2cd8a6[0x0]===_0xea0d84([0x2a])?_0xea0d84([0x2a]):'')[_0xea0d84([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2cd8a6))[_0xea0d84([0x73,0x6f,0x6d,0x65])](_0x3e1970=>_0x4749fd[_0xea0d84([0x65,0x76,0x65,0x72,0x79])]((_0x470089,_0x1503b5)=>_0x3e1970[_0x1503b5]===_0x470089||_0x3e1970[_0x1503b5]===_0xea0d84([0x2a])));}function _0x3e6fdb(){return _0x313431&&_0x3e21ef?new window[(_0xea0d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9b7982,_0x26a109)=>{_0x313431[_0xea0d84([0x74,0x68,0x65,0x6e])](_0x9b7982,_0x26a109),_0x3e21ef[_0xea0d84([0x74,0x68,0x65,0x6e])](_0x480fd5=>{_0x480fd5!=_0xea0d84([0x56,0x61,0x6c,0x69,0x64])&&_0x9b7982(_0x480fd5);},_0x26a109);}):_0x313431||_0x3e21ef||_0xea0d84([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28c31b(_0x1d75e7,_0x3dbb0b){return new window[(_0xea0d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31976f=>{if(_0xd270a2())return _0x31976f(_0xea0d84([0x56,0x61,0x6c,0x69,0x64]));_0x19ae49(),_0x18fcca[_0xea0d84([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xea0d84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16357a=!0x1;const _0x209980=_0x4de09f();function _0x27b697(_0x28f553){return!!_0x28f553&&(typeof _0x28f553===_0xea0d84([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28f553===_0xea0d84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28f553[_0xea0d84([0x74,0x68,0x65,0x6e])]===_0xea0d84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28f553[_0xea0d84([0x63,0x61,0x74,0x63,0x68])]===_0xea0d84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21d282(_0x3e428c){_0x249820(_0x3e428c)[_0xea0d84([0x74,0x68,0x65,0x6e])](_0x5c18f7=>{if(!_0x5c18f7||_0x5c18f7[_0xea0d84([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xea0d84([0x6f,0x6b]))return _0xea0d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x139243(_0x2713d9(_0x209980+_0x3dbb0b))!=_0x5c18f7[_0xea0d84([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xea0d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xea0d84([0x56,0x61,0x6c,0x69,0x64]);})[_0xea0d84([0x74,0x68,0x65,0x6e])](_0x5570cc=>(_0x29cb4b(),_0x5570cc),()=>{const _0x5703e8=_0x172c06();return null==_0x5703e8?(_0x29cb4b(),_0xea0d84([0x56,0x61,0x6c,0x69,0x64])):_0xea0d84(_0x28f0a3-_0x5703e8>(0x7b0aadff^_0x5a000f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xea0d84([0x74,0x68,0x65,0x6e])](_0x31976f)[_0xea0d84([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31976f(_0xea0d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1329eb=0x5f30c77f^_0x5a000f;function _0x29cb4b(){const _0x3a6397=_0xea0d84([0x6c,0x6c,0x63,0x74,0x2d])+_0x139243(_0x2713d9(_0x1d75e7)),_0x5d9608=_0x526833(_0x139243(window[_0xea0d84([0x4d,0x61,0x74,0x68])][_0xea0d84([0x63,0x65,0x69,0x6c])](_0x28f0a3/_0x1329eb)));window[_0xea0d84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xea0d84([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a6397,_0x5d9608);}function _0x172c06(){const _0x413395=_0xea0d84([0x6c,0x6c,0x63,0x74,0x2d])+_0x139243(_0x2713d9(_0x1d75e7)),_0x83b522=window[_0xea0d84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xea0d84([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x413395);return _0x83b522?window[_0xea0d84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x526833(_0x83b522),0x10)*_0x1329eb:null;}function _0x249820(_0x3cee97){return new window[(_0xea0d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e2bf6,_0x452b30)=>{_0x3cee97[_0xea0d84([0x74,0x68,0x65,0x6e])](_0x3e2bf6,_0x452b30),window[_0xea0d84([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x452b30,0x5f07fd3f^_0x5a000f);});}}_0x18fcca[_0xea0d84([0x6f,0x6e])](_0xea0d84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36a46b,_0x24fb13)=>{if(_0x24fb13[0x0]!=_0x1d75e7)return _0x31976f(_0xea0d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24fb13[0x1]={..._0x24fb13[0x1],[_0xea0d84([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x209980};},{[_0xea0d84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xea0d84([0x68,0x69,0x67,0x68])}),_0x18fcca[_0xea0d84([0x6f,0x6e])](_0xea0d84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x214999=>{_0x27b697(_0x214999[_0xea0d84([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16357a=!0x0,_0x21d282(_0x214999[_0xea0d84([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xea0d84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xea0d84([0x6c,0x6f,0x77])}),_0x444ec6[_0xea0d84([0x74,0x68,0x65,0x6e])](()=>{_0x16357a||_0x31976f(_0xea0d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd270a2(){return _0x18fcca[_0xea0d84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xea0d84([0x76,0x69,0x65,0x77])][_0xea0d84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xea0d84([0x61,0x75,0x74,0x6f]);}function _0x19ae49(){_0x18fcca[_0xea0d84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xea0d84([0x76,0x69,0x65,0x77])][_0xea0d84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xea0d84([0x61,0x75,0x74,0x6f]);}}function _0x4200ec(_0x330a0e){const _0x167058=[new window[(_0xea0d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55f052=>setTimeout(_0x55f052,0x5f0f1733^_0x5a000f)),_0x444ec6[_0xea0d84([0x74,0x68,0x65,0x6e])](()=>new window[(_0xea0d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x452319=>{const _0x5800b4=0x5f0629f8^_0x5a000f,_0xdde71a=_0x1d906e[_0xea0d84([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x7d1a24(){_0xdde71a[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5800b4&&_0x452319();}_0x7d1a24(),_0xdde71a[_0xea0d84([0x6f,0x6e])](_0xea0d84([0x61,0x64,0x64]),_0x7d1a24);})),new window[(_0xea0d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3db4f2=>{function _0x4c98e4(){for(const _0xc26710 in window)if(window[_0xea0d84([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xea0d84([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xc26710))&&window[_0xc26710]==_0x16033b)return _0x3db4f2();_0x18fcca[_0xea0d84([0x73,0x74,0x61,0x74,0x65])]!=_0xea0d84([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xea0d84([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c98e4,0x5f063a77^_0x5a000f);}_0x2af29a(_0xea0d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4c98e4();})];return window[_0xea0d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xea0d84([0x72,0x61,0x63,0x65])](_0x167058)[_0xea0d84([0x74,0x68,0x65,0x6e])](()=>_0x330a0e);}async function _0x396d0e(){if(await _0x444ec6,_0x2af29a(_0xea0d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x258994=_0x1d906e[_0xea0d84([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x19bdb1=_0x1d906e[_0xea0d84([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])](_0x258994[_0xea0d84([0x69,0x64])]),_0x20faac=_0x342ea1(_0xea0d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x20faac[_0xea0d84([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x258994['id'],_0x19bdb1?_0x19bdb1['id']:null,!0x0),_0x20faac[_0xea0d84([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xea0d84([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x20faac[_0xea0d84([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x20faac[_0xea0d84([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2053b3,void(_0x20faac[_0xea0d84([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2053b3);}if(_0x2af29a(_0xea0d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5d2df0=_0x342ea1(_0xea0d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5d2df0[_0xea0d84([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xea0d84([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5d2df0[_0xea0d84([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5d2df0[_0xea0d84([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2053b3,_0x5d2df0[_0xea0d84([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2053b3;}_0x18fcca[_0xea0d84([0x6d,0x6f,0x64,0x65,0x6c])][_0xea0d84([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2053b3,_0x18fcca[_0xea0d84([0x6d,0x6f,0x64,0x65,0x6c])][_0xea0d84([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2053b3,_0x18fcca[_0xea0d84([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xea0d84([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17ff59(){return _0x2af29a(_0xea0d84([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x342ea1(_0xea0d84([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xea0d84([0x73,0x74,0x61,0x74,0x65])]==_0xea0d84([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xdea8fd(){return _0x2af29a(_0xea0d84([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 _0x255aa5(){return _0x2af29a(_0xea0d84([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x597610(_0x1eb7ab){const _0x343f11=_0x360cb9();_0x18fcca[_0x343f11]=_0xea0d84([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])+_0x1eb7ab,_0x1eb7ab[_0xea0d84([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xea0d84([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x360cb9()]=_0x16033b),_0x1eb7ab!=_0xea0d84([0x56,0x61,0x6c,0x69,0x64])&&_0x396d0e();}function _0x360cb9(){const _0x9cb004=window[_0xea0d84([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xea0d84([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xea0d84([0x6e,0x6f,0x77])]())[_0xea0d84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xea0d84([0x2e]),'');let _0x1f2a5c=_0xea0d84([0x4c]);for(let _0x2c419d=0x0;_0x2c419d<_0x9cb004[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c419d+=0x2){let _0x4e4b5e=window[_0xea0d84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9cb004[_0xea0d84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c419d,_0x2c419d+0x2));_0x4e4b5e>=_0x192a4e[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e4b5e-=_0x192a4e[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f2a5c+=_0x192a4e[_0x4e4b5e];}return _0x1f2a5c;}function _0x384b72(){const _0x27da0e=_0x12938b[_0xea0d84([0x73,0x70,0x6c,0x69,0x74])](_0xea0d84([0x2e]));if(0x3!=_0x27da0e[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bc8c3(_0x27da0e[0x1]);function _0x2bc8c3(_0x5b4adb){const _0x405c61=_0x2ea874(_0x5b4adb);return _0x405c61&&_0x1f45ea()?_0x405c61:null;function _0x1f45ea(){const _0x14d012=_0x405c61[_0xea0d84([0x6a,0x74,0x69])],_0x3bcd2d=window[_0xea0d84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14d012[_0xea0d84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14d012[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17aa9e={..._0x405c61,[_0xea0d84([0x6a,0x74,0x69])]:_0x14d012[_0xea0d84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14d012[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17aa9e[_0xea0d84([0x76,0x63])],_0x2713d9(_0x17aa9e)==_0x3bcd2d;}}}async function _0x5e9bc6(){let _0xf8bfb9=!0x0;try{const _0x50318d=_0x12938b[_0xea0d84([0x73,0x70,0x6c,0x69,0x74])](_0xea0d84([0x2e])),[_0x5584eb,_0x3f3041,_0x29438c]=_0x50318d;return _0x89525d(_0x5584eb),await _0x1eedfc(_0x5584eb,_0x3f3041,_0x29438c),_0xf8bfb9;}catch{return!0x1;}function _0x89525d(_0x2fec29){const _0x2be719=_0x2ea874(_0x2fec29);_0x2be719&&_0x2be719[_0xea0d84([0x61,0x6c,0x67])]==_0xea0d84([0x45,0x53,0x32,0x35,0x36])||(_0xf8bfb9=!0x1);}async function _0x1eedfc(_0x5973e3,_0x2a9b04,_0x5dec39){const _0x5eea24=window[_0xea0d84([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xea0d84([0x66,0x72,0x6f,0x6d])](_0x44c964(_0x5dec39),_0x18db43=>_0x18db43[_0xea0d84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a3120=new window[(_0xea0d84([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xea0d84([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5973e3+_0xea0d84([0x2e])+_0x2a9b04),_0x1f2215=window[_0xea0d84([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xea0d84([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f2215)return;const _0x4322f1=await _0x1f2215[_0xea0d84([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xea0d84([0x6a,0x77,0x6b]),_0x528d1f,{[_0xea0d84([0x6e,0x61,0x6d,0x65])]:_0xea0d84([0x45,0x43,0x44,0x53,0x41]),[_0xea0d84([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xea0d84([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xea0d84([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f2215[_0xea0d84([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xea0d84([0x6e,0x61,0x6d,0x65])]:_0xea0d84([0x45,0x43,0x44,0x53,0x41]),[_0xea0d84([0x68,0x61,0x73,0x68])]:{[_0xea0d84([0x6e,0x61,0x6d,0x65])]:_0xea0d84([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4322f1,_0x5eea24,_0x1a3120)||(_0xf8bfb9=!0x1);}}function _0x2ea874(_0x4a5f73){return _0x4a5f73[_0xea0d84([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xea0d84([0x65,0x79]))?JSON[_0xea0d84([0x70,0x61,0x72,0x73,0x65])](_0x44c964(_0x4a5f73)):null;}function _0x44c964(_0x4a731f){return window[_0xea0d84([0x61,0x74,0x6f,0x62])](_0x4a731f[_0xea0d84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xea0d84([0x2b]))[_0xea0d84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xea0d84([0x2f])));}function _0x2713d9(_0x53cd52){let _0x20484b=0x1505;function _0x277c8f(_0x415b66){for(let _0x11eb77=0x0;_0x11eb77<_0x415b66[_0xea0d84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11eb77++){const _0x145a83=_0x415b66[_0xea0d84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11eb77);_0x20484b=(_0x20484b<<0x5)+_0x20484b+_0x145a83,_0x20484b&=_0x20484b;}}function _0x403bba(_0x1b9cd3){Array[_0xea0d84([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b9cd3)?_0x1b9cd3[_0xea0d84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x403bba):_0x1b9cd3&&typeof _0x1b9cd3==_0xea0d84([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xea0d84([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b9cd3)[_0xea0d84([0x73,0x6f,0x72,0x74])]()[_0xea0d84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39aa28,_0xfc12f7])=>{_0x277c8f(_0x39aa28),_0x403bba(_0xfc12f7);}):_0x277c8f(window[_0xea0d84([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b9cd3));}return _0x403bba(_0x53cd52),_0x20484b>>>0x0;}function _0x139243(_0x49291f){return _0x49291f[_0xea0d84([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xea0d84([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xea0d84([0x30]));}function _0x526833(_0x57778c){return _0x57778c[_0xea0d84([0x73,0x70,0x6c,0x69,0x74])]('')[_0xea0d84([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xea0d84([0x6a,0x6f,0x69,0x6e])]('');}function _0x2af29a(_0xc3f38e){return _0x18fcca[_0xea0d84([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xea0d84([0x68,0x61,0x73])](_0xc3f38e);}function _0x342ea1(_0x4ff8dc){return _0x18fcca[_0xea0d84([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xea0d84([0x67,0x65,0x74])](_0x4ff8dc);}function _0x2053b3(){}function _0xea0d84(_0x3686c8){return _0x3686c8['map'](_0x4a6735=>String['fromCharCode'](_0x4a6735))['join']('');}_0x597610(await _0x1f634e());}(this);}['createRevision'](_0x2e23ce){const _0x4c5ea0=this['editor']['plugins']['get']('Users');return new I({'id':_0x2e23ce['id'],'name':_0x2e23ce['name'],'creator':_0x2e23ce['creatorId']?_0x4c5ea0['getUser'](_0x2e23ce['creatorId']):null,'diffData':_0x2e23ce['diffData']||_0x2e23ce['data'],'authors':_0x2e23ce['authorsIds']['map'](_0x440771=>_0x4c5ea0['getUser'](_0x440771)),'createdAt':new Date(_0x2e23ce['createdAt']),'attributes':_0x2e23ce['attributes'],'fromVersion':_0x2e23ce['fromVersion'],'toVersion':_0x2e23ce['toVersion']});}['addRevision'](_0x2bcff9,_0x212028=0x0){this['_revisions']['add'](_0x2bcff9,_0x212028);}['getRevision'](_0x147732){return this['_revisions']['get'](_0x147732);}['getRevisions'](_0x3b4706={'toJSON':!0x1}){const _0x90d76c=Array['from'](this['_revisions']);return _0x90d76c['reverse'](),_0x3b4706['toJSON']?_0x90d76c['map'](_0x26a51a=>_0x26a51a['toJSON']()):_0x90d76c;}['getIndex'](_0x30232f){return this['_revisions']['getIndex'](_0x30232f);}['getEarlierVisibleRevision'](_0x4b7534){const [,_0x34e56f]=this['getRevisionsIterator'](_0x4b7534,{'direction':'earlier'});return _0x34e56f;}['getLaterVisibleRevision'](_0x4205a0){const [,_0x5d0747]=this['getRevisionsIterator'](_0x4205a0,{'direction':'later'});return _0x5d0747;}['getRevisionsInDiff'](_0x5b4a55){const _0x3abd83=[];for(const _0x1e34cc of this['getRevisionsIterator'](_0x5b4a55['newRevisionId']))if(_0x3abd83['push'](_0x1e34cc),_0x1e34cc['id']===_0x5b4a55['oldRevisionId'])break;return _0x3abd83;}*['getRevisionsIterator'](_0x4320c5,{direction:_0x39b283='earlier',filter:_0x4ef5a0=()=>!0x0}={}){const _0x16affb='earlier'===_0x39b283?0x1:-0x1;let _0x70ce60=this['_revisions']['get'](_0x4320c5),_0x51fb1d=this['getIndex'](_0x70ce60);for(yield _0x70ce60;_0x70ce60;){if(_0x51fb1d+=_0x16affb,_0x70ce60=this['getRevision'](_0x51fb1d),!_0x70ce60)return;_0x4ef5a0(_0x70ce60)&&(yield _0x70ce60);}}}class $ extends _0x5e8bcb{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x43fe3e,'c'],[_0x2d96e4,'a'],[_0x15fce2,'e'],[_0x375b39,'r'],[_0x5e9b8d,'u']]);['_typeCharToViewClass']=new Map([['c',_0x43fe3e],['a',_0x2d96e4],['e',_0x15fce2],['r',_0x375b39],['u',_0x5e9b8d]]);async['loadRevisionData'](_0x37c466,_0x27bb80){if(_0x37c466['diffData']||!_0x27bb80)return;const _0xa1ea97=this['editor']['config']['get']('collaboration.channelId'),_0xa345da=await _0x27bb80['getRevision']({'channelId':_0xa1ea97,'revisionId':_0x37c466['id']});_0x37c466['diffData']=_0xa345da['diffData'];}['getRevisionDocumentData'](_0x43c50b){const _0x57bd16={};for(const _0x22bb9c in _0x43c50b['diffData']){if(_0x43c50b['diffData'][_0x22bb9c]['attachChange']&&!_0x43c50b['diffData'][_0x22bb9c]['attachChange']['isAttached'])continue;const _0xd313a3=this['_removeRevisionMarkers'](JSON['parse'](_0x43c50b['diffData'][_0x22bb9c]['insertions'])),_0x4cf477=this['editor']['editing']['view']['document'],_0x4c8bbb=new _0x2d289e(_0x4cf477,_0xd313a3['map'](_0x1997f5=>this['_getViewFromDiffObj'](_0x1997f5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x57bd16[_0x22bb9c]=this['editor']['data']['processor']['toData'](_0x4c8bbb),this['editor']['data']['processor']['useFillerType']('default');}return _0x57bd16;}['getRevisionRootsAttributes'](_0x48cb7a){const _0x590989={};for(const _0x29cb8c in _0x48cb7a['diffData'])_0x48cb7a['diffData'][_0x29cb8c]['attachChange']&&!_0x48cb7a['diffData'][_0x29cb8c]['attachChange']['isAttached']||(_0x590989[_0x29cb8c]=_0x48cb7a['diffData'][_0x29cb8c]['attributesAfter']||{});return _0x590989;}['_getTypeCharForViewElement'](_0x463c23){return this['_viewClassToTypeChar']['get'](_0x463c23['constructor']);}['_getViewFromDiffObj'](_0x1e5c8b,_0x530a52){const _0x13e7b5=this['editor']['editing']['view']['document'];if('string'==typeof _0x1e5c8b)return new _0x578e61(_0x13e7b5,_0x1e5c8b);{let _0x37378f,_0xd2b6f7;_0xd2b6f7='u'==_0x1e5c8b['type']||'r'==_0x1e5c8b['type']?[]:_0x1e5c8b['children']['map'](_0xaecfe7=>this['_getViewFromDiffObj'](_0xaecfe7,_0x530a52));const _0x1fb440=this['_typeCharToViewClass']['get'](_0x1e5c8b['type'])||_0x2fe4da,_0x534ad4=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x37378f=new _0x1fb440(_0x13e7b5,_0x1e5c8b['name'],_0x1e5c8b['attributes'],_0xd2b6f7),'u'==_0x1e5c8b['type']&&_0x1e5c8b['children'][0x0]){const _0x44b189=_0x1e5c8b['children'][0x0];if(_0x37378f['render']=function(_0x5736b1){const _0x533b48=_0x5736b1['createElement']('div');return _0x533b48['innerHTML']=_0x44b189,_0x533b48['childNodes'][0x0];},_0x530a52){const _0x3ed2f3=new _0x2d289e(_0x13e7b5);_0x3ed2f3['_appendChild'](_0x37378f);const _0xc2dc1a=Array['from'](_0x534ad4['viewChildrenToDom'](_0x3ed2f3,{'bind':!0x1})),_0x4cd4c8=_0x534ad4['domDocument']['createElement']('div');_0x4cd4c8['append'](..._0xc2dc1a),_0x37378f=Array['from'](_0x534ad4['domChildrenToView'](_0x4cd4c8))[0x0];}}else{if('r'==_0x1e5c8b['type']&&_0x1e5c8b['children'][0x0]){const _0x1c6de0=_0x1e5c8b['children'][0x0];if(_0x37378f['render']=function(_0x51ffb8){_0x51ffb8['innerHTML']=_0x1c6de0;},_0x530a52){const _0x41f947=new _0x2d289e(_0x13e7b5);_0x41f947['_appendChild'](_0x37378f);const _0x1030ea=Array['from'](_0x534ad4['viewChildrenToDom'](_0x41f947,{'bind':!0x1})),_0x46f663=_0x534ad4['domDocument']['createElement']('div');_0x46f663['append'](..._0x1030ea);const _0x23c1df=Array['from'](_0x534ad4['domChildrenToView'](_0x46f663));_0x23c1df['length']>0x1?_0x37378f['_appendChild'](_0x23c1df):_0x37378f=_0x23c1df[0x0];}}}if(_0x1e5c8b['customProperties']){for(const [_0x457d7d,_0x538711]of _0x1e5c8b['customProperties'])_0x37378f['_setCustomProperty'](_0x457d7d,_0x538711);}const _0x1d2980=void 0x0===_0x1e5c8b['fillerOffset']?null:_0x1e5c8b['fillerOffset'];return null!==_0x1d2980&&(_0x37378f['getFillerOffset']=()=>_0x1d2980),_0x37378f;}}['_makeModelFromViewString'](_0x1a1a95){const _0x4cc3d0=JSON['parse'](_0x1a1a95),_0x5ab087=this['editor']['editing']['view']['document'],_0x69500c=new _0x2d289e(_0x5ab087,_0x4cc3d0['map'](_0xfb5056=>this['_getViewFromDiffObj'](_0xfb5056,!0x0)));return this['editor']['data']['toModel'](_0x69500c);}['_removeRevisionMarkers'](_0x349586){return(_0x349586=_0x349586['filter'](_0x48a98d=>!_0x48a98d['name']||'revision-start'!==_0x48a98d['name']&&'revision-end'!==_0x48a98d['name']))['forEach'](_0x1b625e=>{'string'!=typeof _0x1b625e&&(_0x1b625e['children']=this['_removeRevisionMarkers'](_0x1b625e['children']),_0x1b625e['attributes']=_0x1b625e['attributes']['filter'](_0x2af81b=>!_0x2af81b[0x0]['startsWith']('data-revision-')));}),_0x349586;}}function R(_0x4403bc,_0x449c7e,_0x892cf0){const t=_0x4403bc['t'];switch(_0x449c7e){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'},_0x892cf0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x892cf0);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'';}}class h extends _0x5e8bcb{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x42a9a2,S,$,_0x302a30];}constructor(_0x3d3e2f){super(_0x3d3e2f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1ea516=_0x4de09f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1ea516},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1dfb17=this['repository']['getRevision'](0x0),_0x1ab570=_0x1dfb17&&null===_0x1dfb17['creator']?_0x1dfb17:null;if(this['_continueCurrentRevision']=!!_0x1ab570&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4e46f4=this['_source']['getCurrentRevisionId'](),_0x2c0686=this['repository']['getRevision'](_0x4e46f4);if(_0x2c0686)this['_startingVersion']=_0x2c0686['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x381115=this['_source']['history']['_operations']['find'](_0x384110=>!_0x384110['_isInit']),_0x200522=_0x381115?_0x381115['baseVersion']:this['_source']['history']['version'];_0x1dfb17?(_0x1dfb17['toVersion']<_0x200522&&_0x1dfb17['_update']({'toVersion':_0x200522}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1ab570['id'],this['_startingVersion']=_0x1ab570['fromVersion']):(this['_startingVersion']=_0x1dfb17['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x200522,this['_continueCurrentRevision']=!0x1);}}else _0x1ab570&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1ab570['toVersion'],this['editor']['model']['document']['history']['version']),_0x1ab570['fromVersion']===_0x1ab570['toVersion']?(0x0!==_0x1ab570['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1ab570['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1ab570['id'],this['_startingVersion']=_0x1ab570['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',_0x53fbc0=>!_0x53fbc0),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc0fe4b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd098e5;for(const _0xded78b in _0xc0fe4b){const _0x45aecf=_0xded78b,_0x43dad3=_0xc0fe4b[_0x45aecf];if('revisionHistoryLicenseKeyValid'==_0x43dad3||'revisionHistoryLicenseKeyInvalid'==_0x43dad3||'revisionHistoryLicenseKeyExpired'==_0x43dad3||'revisionHistoryLicenseKeyDomainLimit'==_0x43dad3||'revisionHistoryLicenseKeyNotAllowed'==_0x43dad3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x43dad3||'revisionHistoryLicenseKeyTrialLimit'==_0x43dad3||'revisionHistoryLicenseKeyUsageLimit'==_0x43dad3){delete _0xc0fe4b[_0x45aecf],_0xd098e5=_0x43dad3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xd098e5&&_0xc0fe4b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xd098e5&&_0xc0fe4b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xd098e5&&_0xc0fe4b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xd098e5&&_0xc0fe4b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xd098e5&&_0xc0fe4b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xd098e5&&_0xc0fe4b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xd098e5&&_0xc0fe4b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x303b57=this['repository']['getRevision'](0x0),_0x16615c=await this['getRevisionDocumentData'](_0x303b57),_0x25ece1=await this['getRevisionRootsAttributes'](_0x303b57);this['_replaceEditorDataWithRevisionData'](_0x16615c,_0x25ece1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x33a39d){this['_source']=_0x33a39d;}async['update'](){const _0x2b76b6=await this['_source']['getLatestVersion']();if(_0x2b76b6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3b7f97=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2b76b6});_0x3b7f97['authors']=_0x3b7f97['authorsIds']['map'](_0x48ee50=>this['editor']['plugins']['get']('Users')['getUser'](_0x48ee50)),this['currentRevision']['_update'](_0x3b7f97);}}async['saveRevision'](_0x17a210={},_0x2ac268=null){const _0x760ae9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2ac268>this['currentRevision']['toVersion']&&(_0x2ac268=null),null===_0x2ac268&&(_0x2ac268=await this['_source']['getLatestVersion']());const _0x43aa46=this['_getFromVersion'](_0x2ac268),_0x53bcce=this['buildRevisionData']({'from':_0x43aa46,'to':_0x2ac268});if(this['currentRevision']['toVersion']<_0x2ac268){const _0x130209=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2ac268,'to':_0x2ac268});_0x130209['authors']=[],_0x130209['authorsIds']=[],_0x130209['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x130209,!0x0),delete _0x130209['authors'],_0x760ae9['push'](_0x130209);}_0x17a210['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x17a210['name']=_0x17a210['name']||null,_0x17a210['id']=_0x17a210['id']||_0x4de09f(),_0x17a210={..._0x17a210,..._0x53bcce};const _0x543e0d=this['addRevisionData'](_0x17a210);_0x760ae9['push'](_0x17a210);const _0x263de1=this['repository']['getIndex'](_0x543e0d);if(0x0!==_0x263de1){const _0x431ae8=this['repository']['getRevision'](_0x263de1-0x1);if(_0x431ae8['fromVersion']!==_0x2ac268){const _0xc6d6a=this['_revisionDataBuilder']['getData'](_0x2ac268,_0x431ae8['toVersion']),_0x5bfb02={'id':_0x431ae8['id'],'diffData':_0xc6d6a['diffData'],'authorsIds':_0xc6d6a['authorsIds'],'authors':_0xc6d6a['authorsIds']['map'](_0x10d1b7=>this['editor']['plugins']['get']('Users')['getUser'](_0x10d1b7)),'fromVersion':_0x2ac268};_0x431ae8===this['currentRevision']&&(_0x5bfb02['createdAt']=new Date(_0x17a210['createdAt']['getTime']()+0xa)),_0x431ae8['_update'](_0x5bfb02,!0x0),delete _0x5bfb02['authors'],_0x760ae9['push'](_0x5bfb02);}}if(this['adapter']){for(const _0x2354ec of _0x760ae9)this['_bufferUpdate'](_0x2354ec['id'],_0x2354ec,!0x0);this['sendBufferedUpdates']();}return _0x543e0d;}['addRevisionData'](_0x11bd08){const _0x1b0532=this['repository']['createRevision'](_0x11bd08);return this['adapter']&&_0x1b0532['on']('_update',(_0x3088d7,_0x2a8894,_0x129274)=>{_0x129274||(this['_bufferUpdate'](_0x2a8894['id'],_0x2a8894,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b0532,this['_findInsertionIndex'](_0x1b0532)),_0x1b0532;}async['getRevisionDocumentData'](_0x5c890f){return await this['_utils']['loadRevisionData'](_0x5c890f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5c890f);}async['getRevisionRootsAttributes'](_0x27e37c){return await this['_utils']['loadRevisionData'](_0x27e37c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x27e37c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x7794e0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1ad204=0x0;_0x1ad204<_0x7794e0['length'];_0x1ad204++){const _0x9d0376=_0x7794e0[_0x1ad204];let _0x5c36f6=!0x1;for(const _0x4677c8 of Object['keys'](_0x9d0376))void 0x0===_0x9d0376[_0x4677c8]?delete _0x9d0376[_0x4677c8]:'id'!==_0x4677c8&&(_0x5c36f6=!0x0);_0x5c36f6||(_0x7794e0[_0x1ad204]=null);}if(_0x7794e0=_0x7794e0['filter'](_0x4fc5cb=>null!==_0x4fc5cb),!_0x7794e0['length'])return;for(let _0x5e673b=0x0;_0x5e673b<_0x7794e0['length'];_0x5e673b++){const _0x5a53f5=_0x7794e0[_0x5e673b];void 0x0!==_0x5a53f5['fromVersion']&&void 0x0===_0x5a53f5['toVersion']&&(_0x5a53f5['toVersion']=this['repository']['getRevision'](_0x5a53f5['id'])['toVersion']),void 0x0!==_0x5a53f5['toVersion']&&void 0x0===_0x5a53f5['fromVersion']&&(_0x5a53f5['fromVersion']=this['repository']['getRevision'](_0x5a53f5['id'])['fromVersion']);}const _0x218873=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x7794e0,_0x218873)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x22d816=>{if(_0x22d816){for(const _0x399207 of _0x22d816)this['setRevisionData']({'id':_0x399207['id'],'createdAt':_0x399207['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2e2b52=null,from:_0x552fe2=null,to:_0x1b6f54=null}){_0x552fe2=null!==_0x552fe2?_0x552fe2:_0x2e2b52['fromVersion'],_0x1b6f54=null!==_0x1b6f54?_0x1b6f54:_0x2e2b52['toVersion'];const _0x5e1611=this['_revisionDataBuilder']['getData'](_0x552fe2,_0x1b6f54),_0x33bc0b={'diffData':_0x5e1611['diffData'],'authorsIds':_0x5e1611['authorsIds'],'fromVersion':_0x552fe2,'toVersion':_0x1b6f54};if(!_0x2e2b52||_0x1b6f54!==_0x2e2b52['toVersion']){const _0x9446b5=_0x1b6f54-0x1,_0x3ce75e=this['_source']['history']['getOperation'](_0x9446b5);_0x33bc0b['createdAt']=_0x3ce75e&&_0x3ce75e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x552fe2===this['_loadedStateData']['fromVersion']){for(const _0x108d9d of this['_loadedStateData']['authors'])_0x33bc0b['authorsIds']['includes'](_0x108d9d['id'])||_0x33bc0b['authorsIds']['push'](_0x108d9d['id']);}return _0x33bc0b;}['_bufferUpdate'](_0x4e2c3a,_0x2f18fa,_0x33c60f){if(this['_bufferedUpdates']['has'](_0x4e2c3a)){const _0x56c0f3=this['_bufferedUpdates']['get'](_0x4e2c3a);_0x2f18fa=_0x33c60f?{..._0x56c0f3,..._0x2f18fa}:{..._0x2f18fa,..._0x56c0f3};}this['_bufferedUpdates']['set'](_0x4e2c3a,_0x2f18fa);}['setRevisionData'](_0x52cc4e){const _0x297722=this['repository']['getRevision'](_0x52cc4e['id']);if(_0x52cc4e['createdAt']&&(_0x52cc4e['createdAt']=new Date(_0x52cc4e['createdAt'])),_0x52cc4e['authorsIds']){const _0x2f9b9b=this['editor']['plugins']['get']('Users');_0x52cc4e['authors']=_0x52cc4e['authorsIds']['map'](_0x441a32=>_0x2f9b9b['getUser'](_0x441a32));}_0x297722['_update'](_0x52cc4e,!0x0);}['_createInitialRevision'](_0x5f257f){const _0x284ca5=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x284ca5)this['_initialRevisionId']=_0x284ca5['id'];else{const _0x271c03=!this['editor']['model']['document']['roots']['find'](_0x2074b1=>this['editor']['model']['hasContent'](_0x2074b1)),_0x4e2c40=this['editor']['plugins']['get']('Users')['me']['id'],_0x35f8df=R(this['editor']['locale'],_0x271c03?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5f257f,'to':_0x5f257f,'id':this['_initialRevisionId'],'name':_0x35f8df,'creatorId':_0x4e2c40});}}['_createCurrentRevision'](_0x3325d1){const _0x1ddffd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1ddffd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3325d1,'to':_0x3325d1,'id':_0x1ddffd,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x51da44,_0x1dd994){let _0x9d8146=this['editor']['config']['get']('initialData'),_0x3f2364=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x9d8146){_0x9d8146={};for(const _0x4da8f1 of this['editor']['model']['document']['getRootNames']())_0x9d8146[_0x4da8f1]='';}if('string'==typeof _0x9d8146&&(_0x9d8146={'main':_0x9d8146}),void 0x0===_0x3f2364){_0x3f2364={};for(const _0x485f91 of this['editor']['model']['document']['getRootNames']())_0x3f2364[_0x485f91]={};}let _0x37ae20=!0x1;const _0x1b40ea=Object['keys'](_0x9d8146),_0x5b6a87=Object['keys'](_0x51da44);for(const _0x55ac72 of _0x1b40ea){if(_0x9d8146[_0x55ac72]!==_0x51da44[_0x55ac72]&&''!==_0x9d8146[_0x55ac72]['trim']()){_0x37ae20=!0x0;break;}if(!_0x4a85bd(_0x3f2364[_0x55ac72],_0x1dd994[_0x55ac72])&&Object['keys'](_0x3f2364[_0x55ac72])['length']>0x0){_0x37ae20=!0x0;break;}}_0x37ae20||(_0x37ae20=_0x5b6a87['some'](_0x49b235=>!this['editor']['model']['document']['getRoot'](_0x49b235))),_0x37ae20&&_0x29a30c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x9d8146,'editorRootsAttributes':_0x3f2364,'revisionData':_0x51da44,'revisionRootsAttributes':_0x1dd994}),this['editor']['config']['set']('initialData',_0x51da44),this['editor']['config']['set']('rootsAttributes',_0x1dd994);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x134d96=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x134d96['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3de5ec){const _0xc65212=this['repository']['getRevisions']();_0xc65212['reverse']();let _0x343016=0x0;for(;_0x343016<_0xc65212['length'];){const _0x1bb864=_0xc65212[_0x343016];if(_0x1bb864===this['currentRevision']){_0x343016++;continue;}if(_0x1bb864['id']===this['_initialRevisionId'])break;const _0x3478f6=_0x3de5ec['toVersion']-_0x1bb864['toVersion']||_0x3de5ec['fromVersion']-_0x1bb864['fromVersion'];if(_0x3478f6>0x0)break;if(_0x3478f6<0x0)_0x343016++;else{if(!_0x3de5ec['creator']&&_0x1bb864['creator'])break;if(_0x1bb864['creator']||!_0x3de5ec['creator']){if(_0x3de5ec['createdAt']>_0x1bb864['createdAt'])break;_0x343016++;}else _0x343016++;}}return _0x343016;}['_getFromVersion'](_0x502881){const _0x54da7d=this['repository']['getRevisions']();_0x54da7d['reverse'](),_0x54da7d['shift']();const _0x192105=_0x54da7d['find'](_0x51f7cf=>_0x51f7cf['toVersion']<=_0x502881)['toVersion'];return _0x192105<this['_startingVersion']?this['_startingVersion']:_0x192105;}['_makeRevision']({name:_0x57a6f2,from:_0x528065,to:_0x54784a,creatorId:_0x363bce,id:_0x5d5dca}){const _0x503c68=this['buildRevisionData']({'from':_0x528065,'to':_0x54784a});_0x503c68['name']=_0x57a6f2,_0x503c68['creatorId']=_0x363bce,_0x503c68['id']=_0x5d5dca;const _0x4c8793=this['addRevisionData'](_0x503c68);return this['adapter']&&this['_bufferUpdate'](_0x503c68['id'],_0x503c68,!0x0),_0x4c8793;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x51d1d5){this['editor']=_0x51d1d5,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'](_0x4541c8){this['source']=_0x4541c8;const _0x4b5555=new Map(),_0x2f7b54=new Map(),_0x3ebe99=this['editor']['model']['document']['roots']['map'](_0xd571aa=>_0xd571aa['rootName']);for(const _0x27fcfa of _0x3ebe99){const _0x35088b=this['editor']['model']['document']['getRoot'](_0x27fcfa),_0x30cc6f=x(_0x35088b);_0x4b5555['set'](_0x27fcfa,_0x30cc6f),_0x2f7b54['set'](_0x27fcfa,Object['fromEntries'](_0x35088b['getAttributes']()));}const _0xd80bc6=Array['from'](this['editor']['model']['markers'])['map'](_0x112191=>[_0x112191['name'],_0x112191['getRange']()]),_0x588f80=this['source']['version'];this['_saveMetaData'](_0x588f80,_0x4b5555,_0xd80bc6,_0x2f7b54),this['_startingRevisionId']=this['_revisionId'];const _0x431874=new Map(),_0x3ac1b6=new Map();for(const _0x6d796e of _0x3ebe99){const _0x196bd8=N(_0x6d796e);_0x431874['set'](_0x6d796e,_0x196bd8),_0x3ac1b6['set'](_0x6d796e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x431874,[],_0x3ac1b6);}['getData'](_0x7971eb,_0x320ccf){if(this['_lastFrom']===_0x7971eb&&this['_lastTo']<=_0x320ccf)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x320ccf,!0x0);else{if(!this['_savedMetaData']['has'](_0x7971eb)){const _0x5b5f9a=this['_getPreviousFrom'](_0x7971eb);this['_calculateMetaData'](_0x5b5f9a,_0x7971eb,!0x1);}this['_calculateMetaData'](_0x7971eb,_0x320ccf,!0x0);}return this['_lastFrom']=_0x7971eb,this['_lastTo']=_0x320ccf,this['_getState']();}['loadState'](_0x30707c){const _0x323071=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x30707c['fromVersion'],this['_lastTo']=_0x30707c['toVersion'];for(const _0x50518c in _0x30707c['diffData']){const _0x3751c2=_0x30707c['diffData'][_0x50518c]['attachChange'],_0x518906=_0x2f320b(_0x30707c['diffData'][_0x50518c]['attributesBefore'])||{},_0x1fab41=_0x323071['_makeModelFromViewString'](_0x30707c['diffData'][_0x50518c]['deletions']);_0x1fab41['rootName']=_0x50518c,_0x1fab41['_isAttached']=!_0x3751c2||!_0x3751c2['isAttached'],_0x1fab41['isAttached']=()=>_0x1fab41['_isAttached'],this['_baseRoots']['set'](_0x50518c,_0x1fab41),this['_baseRootsAttributes']['set'](_0x50518c,_0x518906),_0x3751c2&&this['_touchedRoots']['set'](_0x50518c,_0x3751c2);const _0x373fb0=this['_makeIdsRoot'](_0x1fab41);this['_baseIdsRoots']['set'](_0x50518c,_0x373fb0);for(const [_0x1bdf81,_0x2d7208]of _0x1fab41['markers']){if(!_0x1bdf81['startsWith']('revision:'))continue;const _0x49d7fa=_0x1bdf81['split'](':')[0x2];for(const _0x35a9bf of _0x2d7208['getWalker']({'singleCharacters':!0x0})){const _0x519dcd=this['_getVidAttributeName'](_0x35a9bf),_0x580fb7='elementEnd'==_0x35a9bf['type']?_0x35a9bf['previousPosition']['path']['slice'](0x0,-0x1):_0x35a9bf['previousPosition']['path'],_0x4943a9=_0x373fb0['getNodeByPath'](_0x580fb7)['getAttribute'](_0x519dcd);this['_touched']['set'](_0x4943a9,{'userId':_0x49d7fa});}}}this['_startingRevisionId']=this['_revisionId'];const _0x38c41e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x388cb2=>!this['_touched']['has'](_0x388cb2));let _0xe35485=0x0;const _0x2ec305=new Map();for(const _0x3eff31 in _0x30707c['diffData']){const _0x52aac8=_0x30707c['diffData'][_0x3eff31]['attachChange'],_0x1dc42e=_0x2f320b(_0x30707c['diffData'][_0x3eff31]['attributesAfter'])||{},_0x410167=_0x323071['_makeModelFromViewString'](_0x30707c['diffData'][_0x3eff31]['insertions']);_0x410167['rootName']=_0x3eff31,_0x410167['_isAttached']=!_0x52aac8||_0x52aac8['isAttached'],_0x410167['isAttached']=()=>_0x410167['_isAttached'],this['_diffRoots']['set'](_0x3eff31,_0x410167),this['_diffRootsAttributes']['set'](_0x3eff31,_0x1dc42e);const _0x22f5db=this['_makeIdsRoot'](_0x410167,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3eff31,_0x22f5db),_0x2ec305['set'](_0x3eff31,_0x410167['isAttached']()?_0x1dc42e:{});for(const [_0x7b1ac8,_0x21f126]of _0x410167['markers']){if(!_0x7b1ac8['startsWith']('revision:'))continue;const _0x52c652=_0x7b1ac8['split'](':')[0x2];for(const _0x2bf3c0 of _0x21f126['getWalker']({'singleCharacters':!0x0})){const _0x59f425=this['_getVidAttributeName'](_0x2bf3c0),_0x4485d6=this['_revisionId']++,_0x5d0274='elementEnd'==_0x2bf3c0['type']?_0x2bf3c0['previousPosition']['path']['slice'](0x0,-0x1):_0x2bf3c0['previousPosition']['path'];_0x22f5db['getNodeByPath'](_0x5d0274)['_setAttribute'](_0x59f425,_0x4485d6),this['_touched']['set'](_0x4485d6,{'userId':_0x52c652});}}for(const _0x4af693 of this['editor']['model']['createRangeIn'](_0x410167)['getWalker']({'singleCharacters':!0x0})){const _0x21b809=this['_getVidAttributeName'](_0x4af693),_0x4c3021='elementEnd'==_0x4af693['type']?_0x4af693['previousPosition']['path']['slice'](0x0,-0x1):_0x4af693['previousPosition']['path'],_0x3a9061=_0x22f5db['getNodeByPath'](_0x4c3021);_0x3a9061['getAttribute'](_0x21b809)>0x0||_0x3a9061['_setAttribute'](_0x21b809,_0x38c41e[_0xe35485++]);}for(const [_0x5655ab,_0x582de9]of _0x410167['markers'])_0x5655ab['startsWith']('revision:')||this['_markers']['set'](_0x5655ab,_0x582de9);}const _0x1225c7=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1225c7),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1225c7,0x1));const _0x2cf8f8=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2cf8f8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2cf8f8,0x1));const _0x40e442=Array['from'](this['_diffRoots'])['map'](([_0x2cb2be,_0x106005])=>[_0x2cb2be,x(_0x106005)]);this['_saveMetaData'](this['_lastTo'],_0x40e442,this['_markers'],_0x2ec305);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1ca2f0,_0x40d40f,_0x6ba1ff,_0x282910){const _0x5f2eb0=new Map(_0x40d40f),_0xed7b75=new Map(_0x2f320b(_0x282910)),_0x1887ef=new Map();for(const [_0x177b56,_0x23626a]of _0x6ba1ff)_0x1887ef['set'](_0x177b56,{'start':_0x23626a['start']['clone'](),'end':_0x23626a['end']['clone'](),'rootName':_0x23626a['root']['rootName']});this['_savedMetaData']['set'](_0x1ca2f0,{'roots':_0x5f2eb0,'markers':_0x1887ef,'rootsAttributes':_0xed7b75});}['_removeMetaData'](_0x37876){this['_savedMetaData']['delete'](_0x37876);}['_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'](_0x1a1648,_0x516904=null){let _0x57c269=null;_0x1a1648['is']('documentFragment')||(_0x57c269=new _0x1c89c2(_0x1a1648['name'],{'vid_start':null===_0x516904?this['_revisionId']++:_0x516904++}));const _0x5fc974=[];for(const _0x53e082 of _0x1a1648['getChildren']())if(_0x53e082['is']('element')){_0x5fc974['push'](this['_makeIdsRoot'](_0x53e082,_0x516904));const _0x218d3c=_0x5fc974[_0x5fc974['length']-0x1];null!==_0x516904&&(_0x516904=_0x218d3c['is']('element','$text')?_0x218d3c['getAttribute']('vid')+0x1:_0x218d3c['getAttribute']('vid_end')+0x1);}else{for(let _0x2f55fb=0x0;_0x2f55fb<_0x53e082['offsetSize'];_0x2f55fb++)_0x5fc974['push'](new _0x1c89c2('$text',{'vid':null===_0x516904?this['_revisionId']++:_0x516904++}));}if(_0x1a1648['is']('documentFragment')){const _0x1710a4=N(_0x1a1648['rootName']);return _0x1710a4['_insertChild'](0x0,_0x5fc974),_0x1710a4;}return _0x57c269['_setAttribute']('vid_end',null===_0x516904?this['_revisionId']++:_0x516904++),_0x57c269['_insertChild'](0x0,_0x5fc974),_0x57c269;}['_calculateMetaData'](_0x2e5543,_0x5b435c,_0x1a4418){this['_reset']();const {roots:_0x4c3f59,markers:_0x2fe465,rootsAttributes:_0x1edfe5}=this['_savedMetaData']['get'](_0x2e5543);this['_baseRoots']=new Map(_0x4c3f59),this['_baseRootsAttributes']=new Map(_0x2f320b(_0x1edfe5));for(const [_0x48f6a9,_0x4f96ae]of this['_baseRoots'])if('$graveyard'!==_0x48f6a9&&(this['_diffRoots']['set'](_0x48f6a9,x(_0x4f96ae)),this['_diffRootsAttributes']=new Map(_0x2f320b(_0x1edfe5)),_0x1a4418)){const _0x3f245c=this['_revisionId'];this['_idsRoots']['set'](_0x48f6a9,this['_makeIdsRoot'](_0x4f96ae)),this['_baseIdsRoots']['set'](_0x48f6a9,this['_makeIdsRoot'](_0x4f96ae,_0x3f245c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x1a4418&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xd1e567,_0x1f6aa0]of _0x2fe465){const _0x1df4b1=this['_baseRoots']['get'](_0x1f6aa0['rootName']),_0x22bb2d=this['_diffRoots']['get'](_0x1f6aa0['rootName']),_0x4872a6=new _0x35853a(this['_fixPosition'](_0x1f6aa0['start'],_0x1df4b1),this['_fixPosition'](_0x1f6aa0['end'],_0x1df4b1)),_0x45df57=this['_fixRange'](_0x4872a6,_0x22bb2d);_0x1df4b1['markers']['set'](_0xd1e567,_0x4872a6),this['_markers']['set'](_0xd1e567,_0x45df57);}this['_applyOperations'](_0x2e5543,_0x5b435c,_0x1a4418);}['_applyOperations'](_0x5a32d4,_0x140141,_0x4e3132){for(const _0x35153f of this['source']['getOperations'](_0x5a32d4,_0x140141))this['_handleOperation'](_0x35153f,_0x4e3132);for(const _0x28689c of this['_diffRoots']['values']())_0x28689c['markers']['clear']();for(const [_0x53a002,_0xb3cd77]of this['_markers']){this['_diffRoots']['get'](_0xb3cd77['root']['rootName'])['markers']['set'](_0x53a002,_0xb3cd77['clone']());}const _0x11c729=new Map(),_0x4becf5=new Map();for(const [_0x127d32,_0x36f5ba]of this['_diffRoots'])_0x11c729['set'](_0x127d32,x(_0x36f5ba)),_0x4becf5['set'](_0x127d32,this['_diffRootsAttributes']['get'](_0x127d32));this['_saveMetaData'](_0x140141,_0x11c729,this['_markers'],_0x4becf5);}['_getPreviousFrom'](_0x1c5429){const _0x2e29bb=Array['from'](this['_savedMetaData']['keys']());_0x2e29bb['sort']((_0x51f9c9,_0x5c5a45)=>_0x51f9c9-_0x5c5a45),_0x2e29bb['reverse']();for(const _0x1a35b1 of _0x2e29bb)if(_0x1a35b1<_0x1c5429)return _0x1a35b1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x49ccfd,_0x164702){const _0x2ea0f7=Array['from'](_0x164702['markers'])['map'](([_0x3fe34b,_0x50585d])=>[_0x3fe34b,this['_fixRange'](_0x50585d,_0x49ccfd)]);_0x49ccfd['markers']=new Map(_0x2ea0f7);}['_transformMarkers'](_0x167872){for(const _0x883107 of this['_markers']['values']()){const _0x1e04a8=_0x883107['getTransformedByOperation'](_0x167872),_0x108f2b=_0x35853a['_createFromRanges'](_0x1e04a8);_0x883107['start']=_0x108f2b['start'],_0x883107['end']=_0x108f2b['end'];}}['_handleOperation'](_0x4e10fd,_0x49b070){if('addRoot'!=_0x4e10fd['type']&&'detachRoot'!=_0x4e10fd['type']){if('insert'==_0x4e10fd['type']){const _0x2b0627=_0x4e10fd['position']['root']['rootName'];this['_diffRoots']['has'](_0x2b0627)||(this['_diffRoots']['set'](_0x2b0627,N(_0x2b0627,!0x0)),this['_diffRootsAttributes']['set'](_0x2b0627,{}),_0x49b070&&this['_idsRoots']['set'](_0x2b0627,N(_0x2b0627,!0x0)));}else{if('addRootAttribute'==_0x4e10fd['type']||'removeRootAttribute'==_0x4e10fd['type']||'changeRootAttribute'==_0x4e10fd['type'])return void this['_handleRootAttributeOperation'](_0x4e10fd);'marker'==_0x4e10fd['type']&&this['_handleMarkerOperation'](_0x4e10fd);}if('marker'!==_0x4e10fd['type']){const _0x31ce55=this['_cloneOperation'](_0x4e10fd,this['_diffRoots']);_0x31ce55['_execute'](),this['_transformMarkers'](_0x31ce55);}if(_0x49b070)switch(_0x4e10fd['type']){case'insert':this['_handleInsertOperation'](_0x4e10fd);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4e10fd);break;case'merge':this['_handleMergeOperation'](_0x4e10fd);break;case'split':this['_handleSplitOperation'](_0x4e10fd);}}else this['_handleRootOperation'](_0x4e10fd,_0x49b070);}['_cloneOperation'](_0x410ece,_0x11781b){const _0xe79459=_0x410ece['clone']();return _0xe79459['_authorId']=_0x410ece['_authorId'],this['_fixOperation'](_0xe79459,_0x11781b),_0xe79459;}['_getBaseVids'](_0x53cbbe){return _0x53cbbe['map'](_0x2c9764=>{const _0x1d781f=this['_getVidAttributeName'](_0x2c9764);return Number(_0x2c9764['item']['getAttribute'](_0x1d781f));});}['_generateTape'](_0x528359,_0x481158){if(_0x528359['is']('element','$text'))_0x481158['push']({'item':_0x528359,'type':'text'});else{_0x528359['is']('element')&&_0x481158['push']({'item':_0x528359,'type':'elementStart'});for(const _0x39b8cb of _0x528359['getChildren']())this['_generateTape'](_0x39b8cb,_0x481158);_0x528359['is']('element')&&_0x481158['push']({'item':_0x528359,'type':'elementEnd'});}return _0x481158;}['_getState'](){const _0xa6fcbd=new Map(this['_touched']),_0x41b89d=new Map(_0xa6fcbd),_0x25278a=new Map(),_0x2b61f1={'insertions':{},'deletions':{}},_0x227767={'insertions':{},'deletions':{}},_0x54075b=new Map(),_0x253fc7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x253fc7['delete']('$graveyard');for(const _0x906a6d of _0x253fc7){const _0x5ae8ef=this['_diffRoots']['get'](_0x906a6d)||N(_0x906a6d,!0x1),_0x3567a4=this['_baseRoots']['get'](_0x906a6d)||N(_0x906a6d,!0x1);_0x5ae8ef['isAttached']()||_0x3567a4['isAttached']()?(_0x2b61f1['insertions'][_0x906a6d]=x(_0x5ae8ef),_0x2b61f1['deletions'][_0x906a6d]=x(_0x3567a4),this['_copyMarkers'](_0x2b61f1['deletions'][_0x906a6d],_0x3567a4),this['_copyMarkers'](_0x2b61f1['insertions'][_0x906a6d],_0x5ae8ef),_0x227767['insertions'][_0x906a6d]=this['_generateTape'](this['_idsRoots']['get'](_0x906a6d),[]),_0x227767['deletions'][_0x906a6d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x906a6d)||N(_0x906a6d,!0x1),[])):_0x253fc7['delete'](_0x906a6d);}for(const _0x3dab8e of _0x253fc7){const _0x18a7a4=_0x227767['insertions'][_0x3dab8e];for(const _0x2d55a9 of _0x18a7a4){const _0x260436=this['_getVidAttributeName'](_0x2d55a9),_0x55323b=_0x2d55a9['item']['getAttribute'](_0x260436);_0x41b89d['delete'](_0x55323b),_0x55323b>=this['_startingRevisionId']&&_0x25278a['set'](_0x55323b,_0xa6fcbd['get'](_0x55323b));}}for(const _0x243dcd of _0x253fc7){const _0x30d842=_0x227767['insertions'][_0x243dcd],_0x9f3b8c=this['_getBaseVids'](_0x227767['deletions'][_0x243dcd]);let _0x49930c=0x0;for(const _0x4e1686 of _0x30d842){const _0x436aa1=this['_getVidAttributeName'](_0x4e1686),_0xd3974=_0x4e1686['item']['getAttribute'](_0x436aa1);if(!_0x25278a['has'](_0xd3974)&&!_0x54075b['has'](_0xd3974)){if(_0x41b89d['has'](_0xd3974))_0x49930c++;else{if(_0xd3974!=_0x9f3b8c[_0x49930c]){const _0x4eecb8=_0xa6fcbd['get'](_0xd3974)||_0xa6fcbd['get'](_0x9f3b8c[_0x49930c]);for(;_0xd3974!=_0x9f3b8c[_0x49930c];)_0x41b89d['has'](_0x9f3b8c[_0x49930c])||(_0x54075b['set'](_0x9f3b8c[_0x49930c],_0x4eecb8),_0xa6fcbd['set'](_0x9f3b8c[_0x49930c],_0x4eecb8)),_0x49930c++;}_0x49930c++;}}}}for(const _0x563f63 of _0x253fc7){const _0x579693=_0x227767['insertions'][_0x563f63];for(const _0x25eb63 of _0x579693){const _0x2840b8=this['_getVidAttributeName'](_0x25eb63),_0x3eca52=_0x25eb63['item']['getAttribute'](_0x2840b8);if(_0x54075b['has'](_0x3eca52)){const _0x10612f=_0x54075b['get'](_0x3eca52);_0x41b89d['has'](_0x3eca52)||_0x41b89d['set'](_0x3eca52,{..._0x10612f}),_0x25278a['set'](_0x3eca52,{..._0x10612f});}}}for(const _0x42a45e of _0x41b89d['keys']())_0x42a45e>=this['_startingRevisionId']&&_0x41b89d['delete'](_0x42a45e);const _0x1025e7=new Map();for(const _0x2ed048 of _0x253fc7){let _0x4e548a=_0x227767['insertions'][_0x2ed048];for(const _0xec5082 of _0x4e548a)if(_0xec5082['item']['is']('element','tableCell')){const _0x3947f5=this['_getVidAttributeName'](_0xec5082),_0x2999aa=_0xec5082['item']['getAttribute'](_0x3947f5);if(_0x25278a['has'](_0x2999aa)){const _0x5bdcde=_0xec5082['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d1312=_0x1025e7['get'](_0x5bdcde)||new Set();_0x5d1312['add'](_0x25278a['get'](_0x2999aa)['userId']),_0x1025e7['set'](_0x5bdcde,_0x5d1312);}}_0x4e548a=_0x227767['deletions'][_0x2ed048];for(const _0x918163 of _0x4e548a)if(_0x918163['item']['is']('element','tableCell')){const _0x5bb48f=this['_getVidAttributeName'](_0x918163),_0x7e340c=_0x918163['item']['getAttribute'](_0x5bb48f);if(_0x41b89d['has'](_0x7e340c)){const _0x400b61=_0x918163['item']['parent']['parent']['getAttribute']('vid_start'),_0x1c8af3=_0x1025e7['get'](_0x400b61)||new Set();_0x1c8af3['add'](_0x41b89d['get'](_0x7e340c)['userId']),_0x1025e7['set'](_0x400b61,_0x1c8af3);}}for(const _0x2bf17d of _0x1025e7['keys']())(_0x25278a['has'](_0x2bf17d)||_0x41b89d['has'](_0x2bf17d))&&_0x1025e7['delete'](_0x2bf17d);}for(const _0x3e406f of _0x253fc7){const _0x5b5e4e=_0x227767['insertions'][_0x3e406f];let _0x595cb4=null,_0x185c33=null;for(const _0x2d06f0 of _0x5b5e4e){const _0xc50fe6=this['_getVidAttributeName'](_0x2d06f0),_0x2ba9e6=_0x2d06f0['item']['getAttribute'](_0xc50fe6),_0x52b0c7=_0x1025e7['get'](_0x2ba9e6);_0x52b0c7&&'elementStart'==_0x2d06f0['type']&&(_0x595cb4=Array['from'](_0x52b0c7)[0x0],_0x185c33=_0x2d06f0['item']['getAttribute']('vid_end')),_0x595cb4&&(_0x41b89d['set'](_0x2ba9e6,{'userId':_0x595cb4}),_0x25278a['set'](_0x2ba9e6,{'userId':_0x595cb4})),_0x2ba9e6==_0x185c33&&(_0x595cb4=null,_0x185c33=null);}}const _0x168800={},_0x3c2606=new Set();for(const _0xbc0447 of _0x253fc7){const _0x1d874b=_0x2b61f1['deletions'][_0xbc0447],_0x1e4f76=_0x2b61f1['insertions'][_0xbc0447];for(const {userId:_0x803e42}of this['_touchedMarkers']['values']())null!==_0x803e42&&_0x3c2606['add'](_0x803e42);for(const {userId:_0x293558}of this['_touchedRoots']['values']())null!==_0x293558&&_0x3c2606['add'](_0x293558);this['_markChanges'](_0x1e4f76,_0x227767['insertions'][_0xbc0447],_0x25278a,'insertion',_0x3c2606),this['_markChanges'](_0x1d874b,_0x227767['deletions'][_0xbc0447],_0x41b89d,'deletion',_0x3c2606),_0x168800[_0xbc0447]={'insertions':this['_prepareViewToSave'](_0x1e4f76),'deletions':this['_prepareViewToSave'](_0x1d874b),'attachChange':this['_touchedRoots']['get'](_0xbc0447)||null,'attributesBefore':_0x2f320b(this['_baseRootsAttributes']['get'](_0xbc0447))||{},'attributesAfter':_0x2f320b(this['_diffRootsAttributes']['get'](_0xbc0447))};}return{'diffData':_0x168800,'authorsIds':Array['from'](_0x3c2606)};}['_processRootBeforeSave'](_0x1736db){for(const [,_0x1736e0]of _0x1736db['markers']){const _0x295f4b=_0x1736e0['start']['getAncestors']()['filter'](_0x1f84db=>'tableCell'==_0x1f84db['name']);for(const _0x123d47 of _0x295f4b)0x1==_0x123d47['childCount']&&_0x123d47['getChild'](0x0)['is']('element','paragraph')&&_0x123d47['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x45df5f){this['_processRootBeforeSave'](_0x45df5f);const _0x466e18=this['editor']['data']['toView'](_0x45df5f,{}),_0x58ad71=Array['from'](_0x466e18['getChildren']())['map'](_0x5d9319=>this['_getViewJson'](_0x5d9319));return JSON['stringify'](_0x58ad71);}['_getViewJson'](_0x19cd90){if(_0x19cd90['is']('$text'))return _0x19cd90['data'];{const _0x52f379=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x17882c=_0x19cd90,_0x8bfe16=this['editor']['data']['htmlProcessor']['domConverter'],_0x16c7a1={'type':_0x52f379['_getTypeCharForViewElement'](_0x17882c),'name':_0x17882c['name'],'attributes':Array['from'](_0x17882c['getAttributes']()),'children':Array['from'](_0x17882c['getChildren']())['map'](_0x5d0515=>this['_getViewJson'](_0x5d0515))};if(_0x19cd90['is']('uiElement')&&'$comment'!=_0x19cd90['name']){const _0x2f93bc=_0x19cd90['render'](_0x8bfe16['domDocument'],_0x8bfe16);_0x16c7a1['children']['push'](_0x2f93bc['outerHTML']);}else{if(_0x19cd90['is']('rawElement')){const _0x5bef99=_0x8bfe16['domDocument']['createElement'](_0x17882c['name']);_0x19cd90['render'](_0x5bef99,_0x8bfe16),_0x16c7a1['children']['push'](_0x5bef99['innerHTML']);}}const _0x8648bb=Array['from'](_0x17882c['getCustomProperties']());_0x8648bb['length']>0x0&&(_0x16c7a1['customProperties']=_0x8648bb);const _0x481141=_0x17882c['getFillerOffset']();return null!==_0x481141&&(_0x16c7a1['fillerOffset']=_0x481141),_0x16c7a1;}}['_markChanges'](_0x31f019,_0x3d1809,_0x37bf0e,_0xb9bd8a,_0x106854){let _0x3fbd95=null,_0xd7e7a2=null,_0x741e27=0x0;const _0x329ea7=this['editor']['model'];for(let _0x458f9f=0x0;_0x458f9f<_0x3d1809['length'];_0x458f9f++){const _0x2b1e1b=this['_getVidAttributeName'](_0x3d1809[_0x458f9f]),_0x58498d=_0x3d1809[_0x458f9f]['item']['getAttribute'](_0x2b1e1b),_0x426271=_0x37bf0e['get'](_0x58498d),_0x25773e=_0x458f9f==_0x3d1809['length']-0x1;(!_0x3fbd95&&_0x426271&&(_0x3fbd95=_0x426271,_0xd7e7a2=_0x3d1809[_0x458f9f]),_0x3fbd95&&(!_0x426271||_0x426271['userId']!=_0x3fbd95['userId']))&&(_0x3167c2(_0x426271,P(_0xd7e7a2,_0x31f019,_0x329ea7),P(_0x3d1809[_0x458f9f],_0x31f019,_0x329ea7)),_0x3fbd95=_0x426271||null,_0xd7e7a2=_0x426271?_0x3d1809[_0x458f9f]:null),_0x3fbd95&&_0x25773e&&_0x3167c2(_0x426271,P(_0xd7e7a2,_0x31f019,_0x329ea7),V(_0x3d1809[_0x458f9f],_0x31f019,_0x329ea7));}function _0x3167c2(_0x48f74f,_0x42fa9c,_0x529568){const _0x587cb5=_0x3fbd95['userId'],_0x1dda9b='revision:'+_0xb9bd8a+':'+_0x587cb5+':'+_0x741e27++,_0x46808c=_0x329ea7['createRange'](_0x42fa9c,_0x529568);_0x31f019['markers']['set'](_0x1dda9b,_0x46808c),null!==_0x587cb5&&_0x106854['add'](_0x587cb5);}}['_getVidAttributeName'](_0x53177b){switch(_0x53177b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5e188c,_0x4bf105){_0x5e188c['baseVersion']=null;for(const _0x208f89 in _0x5e188c){const _0xb14f43=_0x5e188c[_0x208f89];if(_0xb14f43 instanceof _0x41e47c){const _0x35aee3=_0x4bf105['get'](_0xb14f43['root']['rootName']);_0x5e188c[_0x208f89]=this['_fixPosition'](_0xb14f43,_0x35aee3);}if(_0xb14f43 instanceof _0x35853a){const _0x25498e=_0x4bf105['get'](_0xb14f43['root']['rootName']);_0x5e188c[_0x208f89]=this['_fixRange'](_0xb14f43,_0x25498e);}'root'===_0x208f89&&(_0x5e188c['root']=_0x4bf105['get'](_0x5e188c['root']['rootName']));}}['_fixRange'](_0x1775d4,_0x5c5f6c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1775d4['start'],_0x5c5f6c),this['_fixPosition'](_0x1775d4['end'],_0x5c5f6c));}['_fixPosition'](_0x16daec,_0x40fe8e){return this['editor']['model']['createPositionFromPath'](_0x40fe8e,_0x16daec['path'],_0x16daec['stickiness']);}['_handleInsertOperation'](_0x50fdda){const _0x5c9aa1=this['_idsRoots']['get'](_0x50fdda['position']['root']['rootName']),_0xe1bb6d=this['_fixPosition'](_0x50fdda['position'],_0x5c9aa1),_0x549ae8=null===_0x50fdda['_authorId']?null:_0x50fdda['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5525ca=_0xe1bb6d['parent'],_0x122c52=this['_revisionId'],_0x249e2b=[];for(const _0x222ba4 of _0x50fdda['nodes'])if(_0x222ba4['is']('element'))_0x249e2b['push'](this['_makeIdsRoot'](_0x222ba4));else{for(let _0x49209e=0x0;_0x49209e<_0x222ba4['offsetSize'];_0x49209e++)_0x249e2b['push'](new _0x1c89c2('$text',{'vid':this['_revisionId']++}));}const _0x4fc117=this['_revisionId'];for(let _0x1fee43=_0x122c52;_0x1fee43<_0x4fc117;_0x1fee43++)this['_touched']['set'](_0x1fee43,{'userId':_0x549ae8});_0x5525ca['_insertChild'](_0xe1bb6d['offset'],_0x249e2b);}['_handleMoveOperation'](_0x276f7a){(_0x276f7a=this['_cloneOperation'](_0x276f7a,this['_idsRoots']))['_execute']();const _0x2e01d7=null===_0x276f7a['_authorId']?null:_0x276f7a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1378ac=_0x276f7a['getMovedRangeStart'](),_0x33df75=_0x1378ac['parent'],_0x34a788=_0x1378ac['offset'];!function _0x1b99fb(_0xe7f0aa,_0x1a840f,_0xfdc638,_0x4b7409){for(let _0x1cfe27=_0xfdc638;_0x1cfe27<_0x4b7409;_0x1cfe27++){const _0x363ae3=_0x1a840f['getChild'](_0x1cfe27);_0x363ae3['is']('element','$text')?_0xe7f0aa['set'](_0x363ae3['getAttribute']('vid'),{'userId':_0x2e01d7}):(_0xe7f0aa['set'](_0x363ae3['getAttribute']('vid_start'),{'userId':_0x2e01d7}),_0x1b99fb(_0xe7f0aa,_0x363ae3,0x0,_0x363ae3['childCount']),_0xe7f0aa['set'](_0x363ae3['getAttribute']('vid_end'),{'userId':_0x2e01d7}));}}(this['_touched'],_0x33df75,_0x34a788,_0x34a788+_0x276f7a['howMany']);}['_handleMergeOperation'](_0x541e28){const _0x1f2e54=null===(_0x541e28=this['_cloneOperation'](_0x541e28,this['_idsRoots']))['_authorId']?null:_0x541e28['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ff865=_0x541e28['targetPosition']['parent'],_0x38c2ef=_0x541e28['sourcePosition']['parent'],_0x239159=_0x3ff865['getAttribute']('vid_end'),_0x5a9f26=_0x38c2ef['getAttribute']('vid_start');_0x3ff865['_setAttribute']('vid_end',_0x38c2ef['getAttribute']('vid_end')),_0x38c2ef['_setAttribute']('vid_end',_0x239159),this['_touched']['set'](_0x5a9f26,{'userId':_0x1f2e54}),this['_touched']['set'](_0x239159,{'userId':_0x1f2e54}),_0x541e28['_execute']();}['_handleSplitOperation'](_0x330379){const _0x2328b0=null===(_0x330379=this['_cloneOperation'](_0x330379,this['_idsRoots']))['_authorId']?null:_0x330379['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4cd06e=_0x330379['graveyardPosition'],_0x39318b=_0x330379['splitPosition']['parent'];_0x330379['_execute']();const _0x17328a=_0x39318b['getAttribute']('vid_end'),_0x19dc87=_0x330379['insertionPosition']['nodeAfter'];if(_0x4cd06e){const _0x17fd56=_0x19dc87['getAttribute']('vid_end'),_0x2d4124=_0x39318b['getAttribute']('vid_end');_0x39318b['_setAttribute']('vid_end',_0x17fd56),_0x19dc87['_setAttribute']('vid_end',_0x2d4124),this['_touched']['set'](_0x39318b['getAttribute']('vid_end'),{'userId':_0x2328b0}),this['_touched']['set'](_0x19dc87['getAttribute']('vid_start'),{'userId':_0x2328b0});}else{const _0xe95b6a=this['_revisionId']++,_0x399211=this['_revisionId']++;_0x39318b['_setAttribute']('vid_end',_0xe95b6a),_0x19dc87['_setAttribute']('vid_start',_0x399211),_0x19dc87['_setAttribute']('vid_end',_0x17328a),this['_touched']['set'](_0xe95b6a,{'userId':_0x2328b0}),this['_touched']['set'](_0x399211,{'userId':_0x2328b0});}}['_handleMarkerOperation'](_0x58157e){if(!_0x58157e['affectsData'])return;const _0x1fa328=(_0x58157e=this['_cloneOperation'](_0x58157e,this['_diffRoots']))['oldRange']?_0x58157e['oldRange']['root']:null,_0x1d6c08=_0x58157e['newRange']?_0x58157e['newRange']['root']:null;_0x1fa328&&this['_markers']['delete'](_0x58157e['name']),_0x1d6c08&&this['_markers']['set'](_0x58157e['name'],_0x58157e['newRange']['clone']());const _0x43fcaa=null===_0x58157e['_authorId']?null:_0x58157e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x216a89=_0x58157e['name'];if(!this['_touchedMarkers']['has'](_0x216a89))return void this['_touchedMarkers']['set'](_0x216a89,{'range':_0x58157e['oldRange'],'userId':_0x43fcaa});const _0x550737=this['_touchedMarkers']['get'](_0x216a89),_0x2b03ab=_0x550737['range'],_0x8b278d=_0x58157e['newRange'];null==_0x2b03ab&&null==_0x8b278d||_0x2b03ab&&_0x8b278d&&_0x2b03ab['isEqual'](_0x8b278d)?this['_touchedMarkers']['delete'](_0x58157e['name']):_0x550737['userId']=_0x43fcaa;}['_handleRootOperation'](_0x1688ff,_0x4a10cf){this['_diffRoots']['has'](_0x1688ff['rootName'])?this['_diffRoots']['get'](_0x1688ff['rootName'])['_isAttached']=_0x1688ff['isAdd']:(this['_diffRoots']['set'](_0x1688ff['rootName'],N(_0x1688ff['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1688ff['rootName'],{}),_0x4a10cf&&this['_idsRoots']['set'](_0x1688ff['rootName'],N(_0x1688ff['rootName'],!0x0)));const _0x49c5a0=null===_0x1688ff['_authorId']?null:_0x1688ff['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40c3e0=this['_touchedRoots']['get'](_0x1688ff['rootName']);_0x40c3e0&&_0x40c3e0['userId']===_0x49c5a0?this['_touchedRoots']['delete'](_0x1688ff['rootName']):this['_touchedRoots']['set'](_0x1688ff['rootName'],{'userId':_0x49c5a0,'isAttached':_0x1688ff['isAdd']});}['_handleRootAttributeOperation'](_0x569e99){const _0x14d508=this['_diffRootsAttributes']['get'](_0x569e99['root']['rootName']);null===_0x569e99['newValue']?delete _0x14d508[_0x569e99['key']]:_0x14d508[_0x569e99['key']]=_0x569e99['newValue'];}}function x(_0x4b54ef){const _0x5bb8d1=N(_0x4b54ef['rootName'],_0x4b54ef['isAttached']());for(const _0x1dde2c of _0x4b54ef['getChildren']()){const _0x43f685=_0x1dde2c['_clone'](!0x0);_0x5bb8d1['_appendChild'](_0x43f685);}return _0x5bb8d1;}function N(_0x54750c,_0x42565a=!0x0){const _0x30a905=new _0x42921b();return _0x30a905['rootName']=_0x54750c,_0x30a905['_isAttached']=_0x42565a,_0x30a905['isAttached']=()=>_0x30a905['_isAttached'],_0x30a905;}function P(_0x22fb07,_0x58d80c,_0x11a2d9){const _0x2ac1f2='elementEnd'==_0x22fb07['type']?_0x11a2d9['createPositionAt'](_0x22fb07['item'],'end'):_0x11a2d9['createPositionBefore'](_0x22fb07['item']);return _0x11a2d9['createPositionFromPath'](_0x58d80c,_0x2ac1f2['path'],_0x2ac1f2['stickiness']);}function V(_0x313339,_0x32e259,_0xe6e136){const _0x5fb44c='elementStart'==_0x313339['type']?_0xe6e136['createPositionAt'](_0x313339['item'],0x0):_0xe6e136['createPositionAfter'](_0x313339['item']);return _0xe6e136['createPositionFromPath'](_0x32e259,_0x5fb44c['path'],_0x5fb44c['stickiness']);}class he extends/* #__PURE__ -- @preserve */
25
- _0xd18b2e(_0x4691c3){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4e1a42,_0x5eab06){super(_0x4e1a42),this['focusTracker']=new _0x22eada(),this['keystrokes']=new _0x27fdae(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5eab06),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x49fff6({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x90c49b=_0xcec550=>_0xcec550['stopPropagation']();this['keystrokes']['set']('arrowright',_0x90c49b),this['keystrokes']['set']('arrowleft',_0x90c49b),this['keystrokes']['set']('arrowup',_0x90c49b),this['keystrokes']['set']('arrowdown',_0x90c49b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x11e45e){this['revisionNameInputView']['fieldView']['element']['value']=_0x11e45e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2a7f5d){const _0x4df131=new _0x506965(this['locale'],_0x1340c0),_0x224d25=_0x4df131['fieldView'];_0x224d25['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3014fb=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2a7f5d&&(_0x3014fb+='\x20('+R(this['locale'],'optional')+')'),(_0x4df131['label']=_0x3014fb,_0x224d25['on']('input',()=>{this['revisionNameInputValue']=_0x224d25['element']['value']['trim']();}),_0x4df131);}}class v extends _0x5e8bcb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x4b2809=this['editor'],_0x12cc8e=_0x4b2809['plugins']['get']('RevisionTracker');_0x4b2809['ui']['componentFactory']['add']('revisionHistory',_0x57dfdd=>{const _0x9bc0f7=_0x5b24c1(_0x57dfdd),_0x232b0b=_0x9bc0f7['panelView']['children'],_0x466f17=new _0x65fa40(_0x57dfdd),_0x1df04a=new _0xd6f348(_0x57dfdd),_0x5f35ae=new _0x304d89(_0x57dfdd),_0x43baeb=new _0xd6f348(_0x57dfdd),_0x2193b3=new _0x304d89(_0x57dfdd);return _0x9bc0f7['bind']('isEnabled')['to'](_0x12cc8e,'isReady',_0x12cc8e,'isEnabled',_0x4b2809,'isReadOnly',(_0x52aeb4,_0x5ffc5,_0x25e243)=>_0x52aeb4&&_0x5ffc5&&!_0x25e243),_0x9bc0f7['buttonView']['set']({'icon':_0x5e53f9,'label':R(_0x57dfdd,'Revision\x20history'),'tooltip':!0x0}),_0x5f35ae['set']({'label':R(_0x57dfdd,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5f35ae['bind']('isEnabled')['to'](_0x12cc8e,'isReady',_0x12cc8e,'isEnabled',_0x4b2809,'isReadOnly',(_0x17ecc3,_0x2df67f,_0x4cfcea)=>_0x17ecc3&&_0x2df67f&&!_0x4cfcea),_0x5f35ae['on']('execute',()=>this['_showDialog']()),_0x2193b3['set']({'label':R(_0x57dfdd,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2193b3['bind']('isEnabled')['to'](_0x12cc8e,'isReady',_0x4b2809,'isReadOnly',(_0x109180,_0x1aa03c)=>_0x109180&&!_0x1aa03c),_0x2193b3['on']('execute',()=>{_0x4b2809['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x9bc0f7['isOpen']=!0x1,_0x4b2809['editing']['view']['focus']();}),_0x1df04a['children']['add'](_0x5f35ae),_0x43baeb['children']['add'](_0x2193b3),_0x466f17['role']='menu',_0x466f17['items']['addMany']([_0x1df04a,_0x43baeb]),_0x232b0b['add'](_0x466f17),_0x9bc0f7;}),_0x4b2809['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x538a9b=this['editor'],_0x15d0a1=_0x538a9b['locale'],_0xd8ecb8=new _0x543c93(_0x15d0a1),_0x30d0e0=new _0x5cc111(_0x15d0a1);_0xd8ecb8['buttonView']['set']({'icon':_0x5e53f9,'label':R(_0x15d0a1,'Revision\x20history')});const _0x2705f5=new _0x41ed97(_0x15d0a1,_0xd8ecb8),_0xf0e7ab=new _0x5cdee7(_0x15d0a1);_0xf0e7ab['set']({'label':R(_0x15d0a1,'Save\x20current\x20revision')}),_0xf0e7ab['delegate']('execute')['to'](_0xd8ecb8),_0xf0e7ab['on']('execute',()=>{this['_showDialog']();}),_0x2705f5['children']['add'](_0xf0e7ab),_0x30d0e0['items']['add'](_0x2705f5);const _0x597199=new _0x41ed97(_0x15d0a1,_0xd8ecb8),_0x399d75=new _0x5cdee7(_0x15d0a1);return _0x399d75['set']({'label':R(_0x15d0a1,'Open\x20revision\x20history')}),_0x399d75['delegate']('execute')['to'](_0xd8ecb8),_0x399d75['on']('execute',()=>{_0x538a9b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x597199['children']['add'](_0x399d75),_0x30d0e0['items']['add'](_0x597199),_0xd8ecb8['panelView']['children']['add'](_0x30d0e0),_0xd8ecb8;}['_showDialog'](){const _0x2e1964=this['editor'],_0x363a94=_0x2e1964['locale'],_0x97e328=_0x2e1964['plugins']['get']('Dialog'),_0x2205a4=_0x2e1964['plugins']['get']('RevisionTracker');function _0x5ede5d(_0x2a976d){_0x2e1964['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2a976d['revisionName']?_0x2a976d['revisionNameInputView']['errorText']=R(_0x363a94,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2e1964['plugins']['get'](h)['saveRevision']({'name':_0x2a976d['revisionName']}),_0x97e328['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5ede5d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x97e328['show']({'id':'revisionSave','title':R(_0x363a94,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2e1964['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x97e328['hide']()},{'label':R(_0x2e1964['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x6d1a21){_0x6d1a21['bind']('isEnabled')['to'](_0x2205a4,'isReady',_0x2205a4,'isEnabled',_0x2e1964,'isReadOnly',(_0x3fe116,_0x58a8ab,_0x53be07)=>_0x3fe116&&_0x58a8ab&&!_0x53be07);},'onExecute':()=>_0x5ede5d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x391047=this['editor'],_0x40bf91=_0x391047['locale'];this['_saveRevisionFormView']=new he(_0x40bf91,_0x391047['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x4691c3{['changeId'];['_model'];constructor(_0x241cb0,_0x5db1cf){super(_0x241cb0),this['_model']=_0x5db1cf,this['changeId']=_0x5db1cf['id'];const _0x71e8c7=this['bindTemplate'],_0x5df1b2=R(_0x241cb0,_0x5db1cf['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5db1cf['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5db1cf['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x71e8c7['to']('type',_0x1466ab=>'ck-revision-change__'+_0x1466ab)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5df1b2}]},{'text':'\x20'+_0x5db1cf['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
- _0x46d461(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x285855){super(),this['id']=_0x285855['id']||_0x4de09f(),this['author']=_0x285855['author'],this['type']=_0x285855['type'],this['data']=_0x285855['data']||{},this['rootName']=_0x285855['rootName'],this['set']('createdAt',_0x285855['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x138a7c,_0x5a2027){this['newRevisionId']=_0x138a7c,this['oldRevisionId']=_0x5a2027,this['changes']=new _0x3455f1();}['_setChanges'](_0x211a79){for(const _0x1c82e8 of _0x211a79)this['changes']['add'](_0x1c82e8);}}class l extends _0x5e8bcb{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x42a9a2,_0x53db58,S,$];}constructor(_0x585d79){super(_0x585d79),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x1af552,_0x1423b5,_0x289476)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xd5587a=>{for(const _0x3a1135 of this['editor']['editing']['view']['document']['roots'])_0x289476?_0xd5587a['removeClass']('ck-editor__editable__overlay',_0x3a1135):_0xd5587a['addClass']('ck-editor__editable__overlay',_0x3a1135);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5395a1=>null!==_0x5395a1),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4caf89,_0x32acfa,_0xf82bd3)=>_0x4caf89&&_0xf82bd3?_0x32acfa['changes']['getIndex'](_0xf82bd3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x35dc79,_0x523587)=>_0x35dc79?_0x523587['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x53db58);}['init'](){const _0x4d850c=this['editor'],_0x30e9a4=new ot(_0x4d850c,{'direction':'backward'}),_0x7664d7=new ot(_0x4d850c,{'direction':'forward'});(_0x4d850c['commands']['add']('showPreviousChange',_0x30e9a4),_0x4d850c['commands']['add']('showNextChange',_0x7664d7),_0x4d850c['commands']['add']('restoreRevision',new nt(_0x4d850c)),this['on']('change:numberOfChanges',()=>{_0x30e9a4['refresh'](),_0x7664d7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4d850c['enableReadOnlyMode']('revision-viewer'),_0x4d850c['plugins']['has']('WidgetToolbarRepository'))&&_0x4d850c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x574dad){return await this['_utils']['loadRevisionData'](_0x574dad,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x574dad);}async['getRevisionRootsAttributes'](_0x4c53a9){return await this['_utils']['loadRevisionData'](_0x4c53a9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4c53a9);}async['compare'](_0xa0084a,_0x14306a,_0x279a58=!0x1){if(!this['isEnabled'])return;const _0x269d3b=this['diff'],_0x40d5e3=this['repository'],_0x4deca5='string'==typeof _0xa0084a?_0x40d5e3['getRevision'](_0xa0084a):_0xa0084a,_0x5ac1d9='string'==typeof _0x14306a?_0x40d5e3['getRevision'](_0x14306a):_0x14306a,_0x3d6141=_0x4deca5['id'],_0x3981e3=_0x5ac1d9?_0x5ac1d9['id']:null;if(!_0x279a58&&this['diff']&&this['diff']['newRevisionId']===_0x3d6141&&this['diff']['oldRevisionId']===_0x3981e3)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x3d6141,_0x3981e3);const _0x3ab6c9=this['_getRevisionsRange'](_0x4deca5,_0x5ac1d9,!0x0)['map'](_0x510821=>this['_utils']['loadRevisionData'](_0x510821,this['adapter']));return _0x3ab6c9['push'](new Promise(_0x184cb8=>{setTimeout(_0x184cb8,0x14);})),Promise['all'](_0x3ab6c9)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2ebad0=this['_getDiff'](_0x3d6141,_0x3981e3);for(const _0x2ffbfd of _0x2ebad0['changes'])this['_changeIdToChange']['set'](_0x2ffbfd['id'],_0x2ffbfd);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x161c12=>{for(const _0xf135d3 of this['editor']['model']['document']['getRootNames']())_0x161c12['detachRoot'](_0xf135d3);for(const _0x367319 of Object['keys'](_0x2ebad0['model'])){const _0x5dc2a2=_0x161c12['addRoot'](_0x367319);for(const _0x42fb2a of Object['keys'](_0x2ebad0['attributes'][_0x367319]))_0x161c12['setAttribute'](_0x42fb2a,_0x2ebad0['attributes'][_0x367319][_0x42fb2a],_0x5dc2a2);_0x161c12['insert'](_0x2ebad0['model'][_0x367319],_0x5dc2a2,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2ebad0['changes'])),this['isReady']=!0x0;})['catch'](_0xd46936=>{console['error'](_0xd46936),this['_cleanUp'](),_0x269d3b&&(this['diff']=_0x269d3b),this['isReady']=!0x0;});}['addRevisionData'](_0x240bd0,_0x41533e){const _0x5c16e2=this['repository']['createRevision'](_0x240bd0);return _0x5c16e2['on']('_update',(_0x3b3222,_0x19e47f,_0x4ab0bc)=>_0x41533e(_0x19e47f,_0x4ab0bc,_0x5c16e2)),this['repository']['addRevision'](_0x5c16e2),_0x5c16e2;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xb558f2=>{for(const _0x2f38da of this['editor']['model']['document']['getRootNames']())_0xb558f2['detachRoot'](_0x2f38da);});}['_sortAndFilterDiffChanges'](_0x2e9bd3){const _0x472688=[],_0x1974dd=new Map();for(const _0x3ada3e of this['editor']['model']['document']['getRootNames']()){const _0x2698f7=this['editor']['editing']['view']['getDomRoot'](_0x3ada3e);if(!_0x2698f7)continue;const _0x5096f1=_0x2698f7['getClientRects']()['item'](0x0);_0x5096f1&&(_0x472688['push'](_0x3ada3e),_0x1974dd['set'](_0x3ada3e,_0x5096f1));}return _0x472688['sort']((_0xef8a5d,_0x46ef71)=>{const _0x15d6ea=_0x1974dd['get'](_0xef8a5d),_0x370760=_0x1974dd['get'](_0x46ef71);return _0x15d6ea['y']-_0x370760['y']||_0x15d6ea['x']-_0x370760['x'];}),(_0x2e9bd3=_0x2e9bd3['filter'](_0x490698=>_0x472688['includes'](_0x490698['rootName'])))['sort']((_0x695693,_0x566f89)=>_0x472688['indexOf'](_0x695693['rootName'])-_0x472688['indexOf'](_0x566f89['rootName'])),_0x2e9bd3;}['_makeTape'](_0x4e08b8){const _0x192035=Array['from'](_0x4e08b8['markers'])['filter'](([_0x55c435,_0x30d056])=>_0x55c435['startsWith']('revision:')&&!_0x30d056['isCollapsed']),_0x11c9b3=Array['from'](this['editor']['model']['createRangeIn'](_0x4e08b8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x192035['length'])for(const _0x16b6ec of _0x11c9b3){const [_0x285735,_0x2f4c5f]=_0x192035[0x0],[,_0x359f41,_0x2be5d1]=_0x285735['split'](':');if(_0x2f4c5f['end']['isEqual'](_0x16b6ec['nextPosition'])&&_0x192035['shift'](),(_0x16b6ec['previousPosition']['isEqual'](_0x2f4c5f['start'])||_0x16b6ec['previousPosition']['isAfter'](_0x2f4c5f['start']))&&('insertion'==_0x359f41?_0x16b6ec['isAdded']={'userId':_0x2be5d1}:'deletion'==_0x359f41&&(_0x16b6ec['isRemoved']={'userId':_0x2be5d1})),0x0==_0x192035['length'])break;}return _0x11c9b3;}['_refreshStartEndIndex'](_0x334772){const _0x21d690=new Map();for(let _0x4cc950=0x0;_0x4cc950<_0x334772['length'];_0x4cc950++)'text'===_0x334772[_0x4cc950]['type']?(_0x334772[_0x4cc950]['item']['startIndex']=_0x4cc950,_0x334772[_0x4cc950]['item']['endIndex']=_0x4cc950):('elementStart'===_0x334772[_0x4cc950]['type']?_0x334772[_0x4cc950]['item']['startIndex']=_0x4cc950:'elementEnd'===_0x334772[_0x4cc950]['type']&&(_0x334772[_0x4cc950]['item']['endIndex']=_0x4cc950),_0x21d690['set'](_0x334772[_0x4cc950]['id'],_0x4cc950));for(const _0x45b2d1 of _0x21d690['values']())'elementStart'===_0x334772[_0x45b2d1]['type']?_0x334772[_0x45b2d1]['item']['endIndex']=_0x21d690['get'](_0x334772[_0x45b2d1]['pairId']):'elementEnd'===_0x334772[_0x45b2d1]['type']&&(_0x334772[_0x45b2d1]['item']['startIndex']=_0x21d690['get'](_0x334772[_0x45b2d1]['pairId']));}['_processTape'](_0x11c463){for(let _0x4fbc80=0x0;_0x4fbc80<_0x11c463['length'];_0x4fbc80++){if('elementStart'===_0x11c463[_0x4fbc80]['type'])_0x11c463[_0x4fbc80]['item']['startIndex']=_0x4fbc80;else{if('elementEnd'===_0x11c463[_0x4fbc80]['type']){_0x11c463[_0x4fbc80]['item']['endIndex']=_0x4fbc80;const _0xb13f5a=_0x11c463[_0x4fbc80]['item']['startIndex'];_0x11c463[_0xb13f5a]['pairId']=_0x11c463[_0x4fbc80]['id'],_0x11c463[_0x4fbc80]['pairId']=_0x11c463[_0xb13f5a]['id'];}else _0x11c463[_0x4fbc80]['item']['startIndex']=_0x4fbc80,_0x11c463[_0x4fbc80]['item']['endIndex']=_0x4fbc80,_0x11c463[_0x4fbc80]['pairId']=null;}_0x11c463[_0x4fbc80]['markersStart']||(_0x11c463[_0x4fbc80]['markersStart']=[],_0x11c463[_0x4fbc80]['markersEnd']=[]);}}['_markInsertions'](_0x47b818,_0x2b526a){const _0x4a76ce=_0x47b818['filter'](_0x29511f=>!_0x29511f['isAdded']);for(let _0xa6b581=0x0;_0xa6b581<_0x2b526a['length'];_0xa6b581++)_0x2b526a[_0xa6b581]['isAdded']&&(_0x4a76ce[_0xa6b581]['isAdded']=_0x2b526a[_0xa6b581]['isAdded']);}['_getDiff'](_0x74dda,_0x11c307=null){const _0x2d6281=this['repository']['getRevision'](_0x74dda),_0x1b3f2a=_0x11c307?this['repository']['getRevision'](_0x11c307):null,_0x5110c9=this['_getRevisionsRange'](_0x2d6281,_0x1b3f2a),_0x1401f4=_0x5110c9[_0x5110c9['length']-0x1],_0x393c2c=new Map(),_0x67b557={'model':{},'attributes':{},'changes':[]},_0x4245f7=new Set(),_0x45a47d=new Map();for(let _0x80a7a0=_0x5110c9['length']-0x1;_0x80a7a0>=0x0;_0x80a7a0--){const _0x35adbf=_0x5110c9[_0x80a7a0];for(const _0x4f6373 of Object['keys'](_0x35adbf['diffData']))if(_0x35adbf['diffData'][_0x4f6373]['attachChange']){const _0xc5d802=_0x35adbf['diffData'][_0x4f6373]['attachChange'];_0xc5d802['isAttached']?(_0x4245f7['add'](_0x4f6373),_0x45a47d['has'](_0x4f6373)&&_0x45a47d['get'](_0x4f6373)['userId']==_0xc5d802['userId']?_0x45a47d['delete'](_0x4f6373):_0x45a47d['set'](_0x4f6373,_0xc5d802)):_0x45a47d['has'](_0x4f6373)?(_0x4245f7['delete'](_0x4f6373),_0x45a47d['delete'](_0x4f6373)):(_0x4245f7['add'](_0x4f6373),_0x45a47d['set'](_0x4f6373,_0xc5d802));}else _0x4245f7['add'](_0x4f6373);}for(const _0x24bc26 of _0x4245f7){const _0x284266=_0x45a47d['has'](_0x24bc26)&&!_0x45a47d['get'](_0x24bc26)['isAttached'];let _0x480617=_0x284266?_0x5110c9['length']-0x1:0x0;const _0x29e0b1=_0x284266?-0x1:0x1;for(;_0x5110c9[_0x480617];){const _0x4e8ec5=_0x5110c9[_0x480617];if(_0x4e8ec5['diffData'][_0x24bc26]){const _0x1aa125=_0x284266?_0x4e8ec5['diffData'][_0x24bc26]['attributesBefore']:_0x4e8ec5['diffData'][_0x24bc26]['attributesAfter'];_0x67b557['attributes'][_0x24bc26]=_0x1aa125?_0x2f320b(_0x1aa125):{};break;}_0x480617+=_0x29e0b1;}}for(const _0x32ce99 of _0x5110c9){_0x32ce99['model']={};for(const _0x1c6d23 of _0x32ce99['authors'])_0x393c2c['set'](_0x1c6d23['id'],_0x1c6d23);for(const _0x1aa8fd of _0x4245f7){const _0x5308bb=_0x32ce99['diffData'][_0x1aa8fd]?_0x32ce99['diffData'][_0x1aa8fd]['insertions']:'[]',_0x263818=_0x32ce99['diffData'][_0x1aa8fd]?_0x32ce99['diffData'][_0x1aa8fd]['deletions']:'[]';_0x32ce99['model'][_0x1aa8fd]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5308bb),'deletions':this['_utils']['_makeModelFromViewString'](_0x263818)};}}for(const _0xe03925 of _0x4245f7){let _0x27b2ff=null,_0x3f77a4=0x0;const _0x17025d=new Map(Array['from'](_0x2d6281['model'][_0xe03925]['insertions']['markers'])['filter'](([_0x509732])=>!_0x509732['startsWith']('revision:')));let _0x3be6f1=0x0;for(const _0x3f6057 of _0x5110c9){const _0x57d1d2=this['_makeTape'](_0x3f6057['model'][_0xe03925]['insertions']);_0x3f6057==_0x2d6281?(_0x27b2ff=_0x57d1d2,_0x3f77a4=_0x27b2ff['length'],_0x27b2ff['forEach'](_0x2dc821=>{_0x2dc821['id']=_0x3be6f1++;}),this['_processTape'](_0x27b2ff)):this['_markInsertions'](_0x27b2ff,_0x57d1d2);const _0x1257c0=_0x27b2ff['filter'](_0xdc06b=>!_0xdc06b['isAdded'])['map'](_0x561328=>_0x561328['id']);let _0x3462bd=0x0;const _0x38eb9f=this['_makeTape'](_0x3f6057['model'][_0xe03925]['deletions']);_0x38eb9f['forEach'](_0x48c3f5=>{_0x48c3f5['isRemoved']?_0x48c3f5['id']=_0x3f77a4++:_0x48c3f5['id']=_0x1257c0[_0x3462bd++];}),this['_processTape'](_0x38eb9f),this['_setDistance'](_0x27b2ff,'isAdded'),this['_setDistance'](_0x38eb9f,'isRemoved'),_0x3f6057==_0x2d6281&&this['_markMarkers'](_0x27b2ff,_0x17025d),_0x27b2ff=this['_joinTapes'](_0x27b2ff,_0x38eb9f),this['_refreshStartEndIndex'](_0x27b2ff),this['_setDistance'](_0x27b2ff,'isRemoved');}_0x27b2ff=_0x27b2ff['filter'](_0x2f154e=>!(_0x2f154e['isAdded']&&_0x2f154e['isRemoved']));const _0x256a5e=new Map(_0x1401f4['model'][_0xe03925]['deletions']['markers']),_0x477e67=new Set(_0x17025d['keys']());for(const _0x3cd0fd of _0x256a5e['keys']())_0x477e67['delete'](_0x3cd0fd);this['_markSuggestions'](_0x27b2ff,_0x477e67),this['_fixObsoleteTags'](_0x27b2ff),_0x27b2ff=this['_removeMissingPairs'](_0x27b2ff),_0x27b2ff=this['_markMismatchedRemovedTags'](_0x27b2ff),_0x27b2ff=this['_removeUnsupportedChanges'](_0x27b2ff);const {root:_0x1ca6ed,changes:_0x5a103d}=this['_makeModelFromTape'](_0x27b2ff,_0x393c2c,_0xe03925);_0x67b557['model'][_0xe03925]=_0x1ca6ed;const _0x4a2ff8=_0x45a47d['get'](_0xe03925);if(_0x4a2ff8){const _0x262871=_0x393c2c['get'](_0x4a2ff8['userId']),_0x304edd=new G({'author':_0x262871,'type':_0x4a2ff8['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xe03925});_0x5a103d['unshift'](_0x304edd),_0x67b557['attributes'][_0xe03925]['revisionHistoryAttachChange']=_0x304edd['id'];}_0x67b557['changes']=_0x67b557['changes']['concat'](_0x5a103d);}return _0x67b557;}['_markMarkers'](_0x2bc90f,_0x5c5325){for(let _0x2d57ac=0x0;_0x2d57ac<_0x2bc90f['length'];_0x2d57ac++)for(const [_0x2d4886,_0x4adce5]of _0x5c5325)!_0x4adce5['isCollapsed']&&_0x4adce5['start']['isEqual'](_0x2bc90f[_0x2d57ac]['previousPosition'])&&_0x2bc90f[_0x2d57ac]['markersStart']['push'](_0x2d4886),_0x4adce5['end']['isEqual'](_0x2bc90f[_0x2d57ac]['nextPosition'])&&_0x2bc90f[_0x2d57ac]['markersEnd']['push'](_0x2d4886);}['_joinTapes'](_0x4279b1,_0x21ac3b){let _0x58edc8=[],_0x38fd9b=0x0,_0xa93955=0x0;for(;_0x38fd9b<_0x4279b1['length']||_0xa93955<_0x21ac3b['length'];){const _0x353006=_0x4279b1[_0x38fd9b]||{},_0xe62661=_0x21ac3b[_0xa93955]||{};if(_0x353006['id']==_0xe62661['id'])_0x38fd9b++,_0xa93955++,_0x58edc8['push'](_0x353006);else{if(_0xe62661['isRemoved']&&_0x353006['isAdded']){const {commonTape:_0x369756,iEnd:_0xcc2444,jEnd:_0x11b0f1}=this['_threeWayMerge'](_0x4279b1,_0x38fd9b,_0x21ac3b,_0xa93955);_0x58edc8=_0x58edc8['concat'](_0x369756),_0x38fd9b=_0xcc2444,_0xa93955=_0x11b0f1;}else _0xe62661['isRemoved']?(_0xa93955++,_0x58edc8['push'](_0xe62661)):(_0x38fd9b++,_0x58edc8['push'](_0x353006));}}return _0x58edc8;}['_markSuggestions'](_0x5e76b7,_0x77d947){const _0x27e035=[];for(let _0x2b4e28=0x0;_0x2b4e28<_0x5e76b7['length'];_0x2b4e28++){for(let _0x185715=0x0;_0x185715<_0x5e76b7[_0x2b4e28]['markersStart']['length'];_0x185715++){const _0x58f137=_0x5e76b7[_0x2b4e28]['markersStart'][_0x185715];if(!_0x77d947['has'](_0x58f137))continue;const {group:_0x219c5b,type:_0xfd7a14,authorId:_0x4f4d50}=_0x18ba4c(_0x58f137);'revision-suggestion'!=_0x219c5b||'insertion'!=_0xfd7a14&&'deletion'!=_0xfd7a14||(_0x27e035['unshift']({'type':_0xfd7a14,'name':_0x58f137,'userId':_0x4f4d50}),_0x5e76b7[_0x2b4e28]['markersStart']['splice'](_0x185715,0x1),_0x185715--);}_0x5cb339(_0x5e76b7[_0x2b4e28]);for(let _0x226ed4=0x0;_0x226ed4<_0x5e76b7[_0x2b4e28]['markersEnd']['length'];_0x226ed4++){const _0x3a0f77=_0x5e76b7[_0x2b4e28]['markersEnd'][_0x226ed4];if(!_0x77d947['has'](_0x3a0f77))continue;const {group:_0x51236c,type:_0x3bb16f}=_0x18ba4c(_0x3a0f77);if('revision-suggestion'!=_0x51236c||'insertion'!=_0x3bb16f&&'deletion'!=_0x3bb16f)continue;_0x5e76b7[_0x2b4e28]['markersEnd']['splice'](_0x226ed4,0x1),_0x226ed4--;const _0x51dc3e=_0x27e035['findIndex'](_0x39acf3=>_0x39acf3['name']==_0x3a0f77);_0x51dc3e>-0x1&&_0x27e035['splice'](_0x51dc3e,0x1);}}function _0x18ba4c(_0x44b538){const _0xaed503=_0x44b538['split'](':');return{'group':_0xaed503[0x0],'type':_0xaed503[0x1],'subType':_0xaed503['length']>=0x5?_0xaed503[0x2]:null,'id':_0xaed503['length']<0x5?_0xaed503[0x2]:_0xaed503[0x3],'authorId':_0xaed503['length']<0x5?_0xaed503[0x3]:_0xaed503[0x4],'markerCount':0x6==_0xaed503['length']?_0xaed503[0x5]:null};}function _0x5cb339(_0x59e36d){for(let _0x4c302a=0x0;_0x4c302a<_0x27e035['length'];_0x4c302a++){if(_0x59e36d['isAdded']&&'insertion'==_0x27e035[_0x4c302a]['type']&&_0x59e36d['isAdded']['userId']==_0x27e035[_0x4c302a]['userId'])return _0x59e36d['isAddSuggestion']=_0x27e035[_0x4c302a],void delete _0x59e36d['isAdded'];if(!_0x59e36d['isAdded']&&!_0x59e36d['isRemoved']&&'deletion'==_0x27e035[_0x4c302a]['type'])return void(_0x59e36d['isRemoveSuggestion']=_0x27e035[_0x4c302a]);}}}['_setDistance'](_0xc32d6f,_0xebe1b2){let _0x4bc6c8=0x0,_0xf80167=!0x1;const _0x19b9e1=new Map();for(const _0x1b66f9 of _0xc32d6f)_0x1b66f9[_0xebe1b2]?_0xf80167&&(_0x4bc6c8++,_0xf80167=!0x1):(_0x4bc6c8++,_0xf80167=!0x0),_0x19b9e1['set'](_0x1b66f9['id'],_0x4bc6c8);for(let _0xcd96ea=0x0;_0xcd96ea<_0xc32d6f['length'];_0xcd96ea++){if('isRemoved'==_0xebe1b2&&_0xc32d6f[_0xcd96ea]['isAdded']||'isAdded'==_0xebe1b2&&_0xc32d6f[_0xcd96ea]['isRemoved'])continue;if('text'==_0xc32d6f[_0xcd96ea]['type']){_0xc32d6f[_0xcd96ea]['distance']=0x0;continue;}const _0x1760fa=_0x19b9e1['get'](_0xc32d6f[_0xcd96ea]['pairId']),_0xdbeb3e=_0x19b9e1['get'](_0xc32d6f[_0xcd96ea]['id']);_0xc32d6f[_0xcd96ea]['distance']=_0x1760fa-_0xdbeb3e;}}['_getRevisionsRange'](_0x2ab8be,_0x360daa,_0x37538c=!0x1){const _0x4a744c=[];let _0x3831a9=this['repository']['getIndex'](_0x2ab8be),_0x2bc020=this['repository']['getIndex'](_0x360daa);for(-0x1==_0x2bc020&&(_0x2bc020=this['repository']['_revisions']['length'],_0x37538c=!0x1);_0x3831a9<_0x2bc020;)_0x4a744c['push'](this['repository']['getRevision'](_0x3831a9)),_0x3831a9++;return _0x37538c&&_0x4a744c['push'](this['repository']['getRevision'](_0x3831a9)),_0x4a744c;}['_threeWayMerge'](_0x83c2a2,_0x374362,_0x5f0082,_0x4c5afd){const _0xce238d=this['editor']['model']['schema'];let _0x4a259a=_0x374362;for(;_0x83c2a2[_0x4a259a]&&_0x83c2a2[_0x4a259a]['isAdded'];)_0x4a259a++;let _0x5df75f=_0x4c5afd;for(;_0x5f0082[_0x5df75f]&&_0x5f0082[_0x5df75f]['isRemoved'];)_0x5df75f++;_0x5d05b6(_0x83c2a2,_0x374362,_0x4a259a),_0x5d05b6(_0x5f0082,_0x4c5afd,_0x5df75f);const _0x235996=_0x5f0082['slice'](_0x4c5afd,_0x5df75f)['concat'](_0x83c2a2['slice'](_0x374362,_0x4a259a));return _0x235996['sort']((_0x14119a,_0x347178)=>_0x14119a['side']!=_0x347178['side']?_0x14119a['side']-_0x347178['side']:_0x14119a['level']!=_0x347178['level']?_0x14119a['level']-_0x347178['level']:_0x14119a['distance']!=_0x347178['distance']?_0x347178['distance']-_0x14119a['distance']:!!_0x14119a['isAdded']!=!!_0x347178['isAdded']?-0x1==_0x14119a['side']||0x0==_0x14119a['side']?_0x14119a['isAdded']?-0x1:0x1:_0x14119a['isAdded']?0x1:-0x1:_0x14119a['index']-_0x347178['index']),{'commonTape':_0x235996,'iEnd':_0x4a259a,'jEnd':_0x5df75f};function _0x5d05b6(_0x5c1f79,_0x2fa530,_0x53cb7e){let _0x8a7cc0=-0x1,_0x4ad5ef=Number['POSITIVE_INFINITY'],_0x1f2a75=!0x0;for(let _0x4f2b7e=_0x2fa530;_0x4f2b7e<_0x53cb7e;_0x4f2b7e++)if(_0xce238d['isInline'](_0x5c1f79[_0x4f2b7e]['item'])||(_0x1f2a75=!0x1),_0x5c1f79[_0x4f2b7e]['item']['startIndex']<_0x2fa530&&(_0x8a7cc0=_0x4f2b7e),_0x5c1f79[_0x4f2b7e]['item']['endIndex']>=_0x53cb7e){_0x4ad5ef=_0x4f2b7e;break;}_0x1f2a75&&(_0x8a7cc0=_0x53cb7e-0x1);for(let _0x7c2113=_0x2fa530;_0x7c2113<_0x53cb7e;_0x7c2113++)_0x5c1f79[_0x7c2113]['side']=_0x7c2113<=_0x8a7cc0?-0x1:_0x7c2113<_0x4ad5ef?0x0:0x1,_0x5c1f79[_0x7c2113]['index']=_0x7c2113;let _0x235526=0x0;for(let _0x1cb467=_0x2fa530;_0x1cb467<=_0x8a7cc0;_0x1cb467++)0x0==_0x5c1f79[_0x1cb467]['distance']?_0x5c1f79[_0x1cb467]['level']=_0x235526:(_0x235526++,_0x5c1f79[_0x1cb467]['level']=_0x235526,_0x235526++);for(let _0x5c5cdb=_0x2fa530;_0x5c5cdb<_0x53cb7e;_0x5c5cdb++)0x0==_0x5c1f79[_0x5c5cdb]['side']&&(_0x5c1f79[_0x5c5cdb]['level']=_0x235526);_0x235526=0x0;for(let _0xf63e3=_0x53cb7e-0x1;_0xf63e3>=_0x4ad5ef;_0xf63e3--)0x0==_0x5c1f79[_0xf63e3]['distance']?_0x5c1f79[_0xf63e3]['level']=_0x235526:(_0x235526--,_0x5c1f79[_0xf63e3]['level']=_0x235526,_0x235526--);}}['_fixObsoleteTags'](_0x546afc){const _0x3f295c=new Map(),_0x4140ea=this['editor']['model']['schema'];for(let _0x1e346d=0x1;_0x1e346d<_0x546afc['length'];_0x1e346d++){let _0xe2d116,_0x1ca652,_0x114480;const _0xc760da=_0x546afc[_0x1e346d],_0x3e0859=_0x546afc[_0x1e346d-0x1];if('text'==_0xc760da['type'])continue;if(_0xc760da['type']!=_0x3e0859['type'])continue;if(!_0x4140ea['isBlock'](_0x3e0859['item'])||_0x4140ea['isLimit'](_0x3e0859['item']))continue;if(!_0x4140ea['isBlock'](_0xc760da['item'])||_0x4140ea['isLimit'](_0xc760da['item']))continue;if((_0x546afc[_0x1e346d]['isAdded']||_0x546afc[_0x1e346d]['isAddSuggestion'])&&_0x546afc[_0x1e346d-0x1]['isRemoved'])_0xe2d116=_0x546afc[_0x1e346d],_0x1ca652=_0x546afc[_0x1e346d-0x1],_0x114480=_0x1e346d-0x1;else{if(!_0x546afc[_0x1e346d]['isRemoved']||!_0x546afc[_0x1e346d-0x1]['isAdded']&&!_0x546afc[_0x1e346d-0x1]['isAddSuggestion'])continue;_0xe2d116=_0x546afc[_0x1e346d-0x1],_0x1ca652=_0x546afc[_0x1e346d],_0x114480=_0x1e346d;}const _0x2f016b=_0xe2d116['level']==_0x1ca652['level'],_0x423754=Math['abs'](_0xe2d116['level'])<Math['abs'](_0x1ca652['level'])&&0x0==_0x1ca652['distance'];(_0x2f016b||_0x423754)&&(_0x3f295c['set'](_0x1ca652['id'],_0xe2d116['id']),_0x546afc['splice'](_0x114480,0x1),_0x1e346d--,_0xe2d116['isAdded']=!0x1);}for(let _0x5a4d30=0x0;_0x5a4d30<_0x546afc['length'];_0x5a4d30++)_0x3f295c['has'](_0x546afc[_0x5a4d30]['pairId'])&&(_0x546afc[_0x5a4d30]['pairId']=_0x3f295c['get'](_0x546afc[_0x5a4d30]['pairId']));}['_removeMissingPairs'](_0x1bf23a){const _0x75e528=new Set(_0x1bf23a['map'](_0x54b880=>_0x54b880['id']));for(let _0x363460=0x0;_0x363460<_0x1bf23a['length'];_0x363460++)_0x75e528['has'](_0x1bf23a[_0x363460]['pairId'])||0x0==_0x1bf23a[_0x363460]['distance']||(_0x1bf23a[_0x363460]['isIncorrect']=!0x0);return _0x1bf23a['filter'](_0x3b2afe=>!_0x3b2afe['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5e132e){const _0x567c6c=new Set();for(let _0x23927b=0x0;_0x23927b<_0x5e132e['length'];_0x23927b++){if(_0x567c6c['has'](_0x5e132e[_0x23927b]['id'])&&_0x5e132e[_0x23927b]['isRemoved']&&(_0x5e132e[_0x23927b]['isIncorrect']=!0x0),_0x5e132e[_0x23927b]['isIncorrect'])continue;if(0x0==_0x5e132e[_0x23927b]['distance'])continue;if('elementStart'!=_0x5e132e[_0x23927b]['type'])continue;if(null==_0x5e132e[_0x23927b]['pairId'])continue;let _0xd8ce26=_0x23927b+0x1,_0x196140=0x0;for(;_0x5e132e[_0xd8ce26]['id']!=_0x5e132e[_0x23927b]['pairId'];)'elementStart'==_0x5e132e[_0xd8ce26]['type']?_0x196140++:'elementEnd'==_0x5e132e[_0xd8ce26]['type']&&_0x196140--,_0xd8ce26++;if(0x0!=_0x196140){if(_0x5e132e[_0x23927b]['isRemoved'])_0x5e132e[_0x23927b]['isIncorrect']=!0x0;else{for(;_0xd8ce26!=_0x23927b;)_0x5e132e[_0xd8ce26]['isRemoved']&&0x0!=_0x5e132e[_0xd8ce26]['distance']&&(_0x5e132e[_0xd8ce26]['isIncorrect']=!0x0,_0x567c6c['add'](_0x5e132e[_0xd8ce26]['pairId'])),_0xd8ce26--;}}}return _0x5e132e['filter'](_0x2aef67=>!_0x2aef67['isIncorrect']);}['_removeUnsupportedChanges'](_0x2615e8){const _0xa7602d=this['editor']['model']['schema'];for(let _0x2f8dea=0x0;_0x2f8dea<_0x2615e8['length'];_0x2f8dea++){if(!(_0x2615e8[_0x2f8dea]['isAdded']||_0x2615e8[_0x2f8dea]['isAddSuggestion']||_0x2615e8[_0x2f8dea]['isRemoved']||_0x2615e8[_0x2f8dea]['isRemoveSuggestion']))continue;if(0x0==_0x2615e8[_0x2f8dea]['distance'])continue;const _0x4c23ad=_0x2615e8[_0x2f8dea]['item'];_0xa7602d['isBlock'](_0x4c23ad)||_0xa7602d['isLimit'](_0x4c23ad)||(_0x2615e8[_0x2f8dea]['isAdded']&&delete _0x2615e8[_0x2f8dea]['isAdded'],_0x2615e8[_0x2f8dea]['isAddSuggestion']&&delete _0x2615e8[_0x2f8dea]['isAddSuggestion'],_0x2615e8[_0x2f8dea]['isRemoveSuggestion']&&delete _0x2615e8[_0x2f8dea]['isRemoveSuggestion'],_0x2615e8[_0x2f8dea]['isRemoved']&&(_0x2615e8[_0x2f8dea]['isIncorrect']=!0x0));}return _0x2615e8['filter'](_0x5b6e90=>!_0x5b6e90['isIncorrect']);}['_makeModelFromTape'](_0x377071,_0x4e7cc2,_0x283e67){const _0x916404=new _0x42921b(),_0x30fb5e=[],_0x25463d=new Map(),_0x40d64c=this['editor']['model'],_0x89b457=_0x40d64c['schema'],_0x2dce0d=[_0x916404],_0x181f15={},_0x211e2c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x514688=null;const _0x30c990=[0x0];for(let _0x4727ea=0x0;_0x4727ea<_0x377071['length'];_0x4727ea++)if('elementStart'===_0x377071[_0x4727ea]['type']){_0x377071[_0x4727ea]['previousPosition']=_0x40d64c['createPositionFromPath'](_0x916404,_0x30c990);const _0x2b9db5=new _0x1c89c2(_0x377071[_0x4727ea]['item']['name'],_0x377071[_0x4727ea]['item']['getAttributes']());_0x2dce0d[0x0]['_appendChild'](_0x2b9db5),_0x30c990['push'](0x0),_0x2dce0d['unshift'](_0x2b9db5),_0x377071[_0x4727ea]['nextPosition']=_0x40d64c['createPositionFromPath'](_0x916404,_0x30c990);}else'elementEnd'===_0x377071[_0x4727ea]['type']?(_0x2dce0d['shift'](),_0x377071[_0x4727ea]['previousPosition']=_0x40d64c['createPositionFromPath'](_0x916404,_0x30c990),_0x30c990['pop'](),_0x30c990[_0x30c990['length']-0x1]++,_0x377071[_0x4727ea]['nextPosition']=_0x40d64c['createPositionFromPath'](_0x916404,_0x30c990)):(_0x377071[_0x4727ea]['previousPosition']=_0x40d64c['createPositionFromPath'](_0x916404,_0x30c990),_0x514688?_0x514688['_data']+=_0x377071[_0x4727ea]['item']['data']:_0x514688=new _0x213f4e(_0x377071[_0x4727ea]['item']['data'],_0x377071[_0x4727ea]['item']['getAttributes']()),_0x377071[_0x4727ea+0x1]&&'text'===_0x377071[_0x4727ea+0x1]['type']&&_0x21a654(_0x514688,_0x377071[_0x4727ea+0x1]['item'])||(_0x2dce0d[0x0]['_appendChild'](_0x514688),_0x514688=null),_0x30c990[_0x30c990['length']-0x1]+=_0x377071[_0x4727ea]['item']['offsetSize'],_0x377071[_0x4727ea]['nextPosition']=_0x40d64c['createPositionFromPath'](_0x916404,_0x30c990));for(let _0x17fd3c=0x0;_0x17fd3c<_0x377071['length'];_0x17fd3c++){const _0x2c4d5c=_0x377071[_0x17fd3c]['previousPosition'],_0x2b6ef3=_0x377071[_0x17fd3c]['nextPosition'];for(const _0x4441c5 of _0x377071[_0x17fd3c]['markersStart'])_0x25463d['set'](_0x4441c5,{'start':_0x2c4d5c,'end':null});_0x9b0c4b('isRemoveSuggestion',_0x17fd3c,_0x2c4d5c,_0x2b6ef3),_0x9b0c4b('isAddSuggestion',_0x17fd3c,_0x2c4d5c,_0x2b6ef3),_0x9b0c4b('isRemoved',_0x17fd3c,_0x2c4d5c,_0x2b6ef3),_0x9b0c4b('isAdded',_0x17fd3c,_0x2c4d5c,_0x2b6ef3);for(const _0xe0a761 of _0x377071[_0x17fd3c]['markersEnd']){const _0xfa47d3=_0x25463d['get'](_0xe0a761);_0xfa47d3?_0xfa47d3['end']=_0x2b6ef3:_0x25463d['set'](_0xe0a761,{'start':_0x2b6ef3,'end':_0x2b6ef3});}}for(const [_0x1d3e3e,_0x335e79]of _0x25463d){const _0xc6319=this['editor']['model']['createRange'](_0x335e79['start'],_0x335e79['end']);_0x916404['markers']['set'](_0x1d3e3e,_0xc6319);}return _0x30fb5e['sort']((_0x40b52b,_0xb48fee)=>{const _0x554ab7=_0x916404['markers']['get']('revision:'+_0x40b52b['id']),_0x53d0f2=_0x916404['markers']['get']('revision:'+_0xb48fee['id']);return _0x554ab7['start']['isBefore'](_0x53d0f2['start'])?-0x1:_0x554ab7['start']['isAfter'](_0x53d0f2['start'])?0x1:_0x554ab7['end']['isBefore'](_0x53d0f2['end'])?-0x1:_0x554ab7['end']['isAfter'](_0x53d0f2['end'])?0x1:'add'===_0x40b52b['type']?-0x1:0x1;}),{'root':_0x916404,'changes':_0x30fb5e};function _0x9b0c4b(_0x1dac61,_0x2db1bd,_0x3fe272,_0x27fc61){const _0x12ff0f=!!_0x377071[_0x2db1bd][_0x1dac61],_0x2a28e7=_0x12ff0f?_0x377071[_0x2db1bd][_0x1dac61]['userId']:null,_0x515e4a=_0x2db1bd===_0x377071['length']-0x1,_0x342606=_0x211e2c[_0x1dac61][0x0],_0x2d6c6b=_0x89b457['isObject'](_0x377071[_0x2db1bd]['item']);!_0x181f15[_0x1dac61]&&_0x12ff0f?_0x181f15[_0x1dac61]={'start':_0x3fe272,'tapeItem':_0x377071[_0x2db1bd],'userId':_0x2a28e7,'type':_0x1dac61}:_0x181f15[_0x1dac61]&&!_0x12ff0f?(_0x181f15[_0x1dac61]['end']=_0x3fe272,_0x27eb78(_0x181f15[_0x1dac61]),_0x181f15[_0x1dac61]=null):_0x181f15[_0x1dac61]&&_0x12ff0f&&_0x181f15[_0x1dac61]['userId']!==_0x2a28e7&&(_0x181f15[_0x1dac61]['end']=_0x3fe272,_0x342606&&_0x342606['userId']===_0x181f15[_0x1dac61]['userId']||_0x27eb78(_0x181f15[_0x1dac61]),_0x181f15[_0x1dac61]={'start':_0x3fe272,'tapeItem':_0x377071[_0x2db1bd],'userId':_0x2a28e7,'type':_0x1dac61}),_0x181f15[_0x1dac61]&&_0x2d6c6b&&('elementStart'!==_0x377071[_0x2db1bd]['type']||_0x342606&&_0x342606['userId']===_0x2a28e7||_0x211e2c[_0x1dac61]['unshift']({'userId':_0x2a28e7,'object':_0x377071[_0x2db1bd]['item'],'change':_0x181f15[_0x1dac61]}),'elementEnd'===_0x377071[_0x2db1bd]['type']&&_0x342606&&_0x342606['object']===_0x377071[_0x2db1bd]['item']&&(_0x211e2c[_0x1dac61]['shift'](),_0x181f15[_0x1dac61]=_0x342606['change'])),_0x181f15[_0x1dac61]&&_0x515e4a&&(_0x181f15[_0x1dac61]['end']=_0x27fc61,_0x27eb78(_0x181f15[_0x1dac61]),_0x181f15[_0x1dac61]=null);}function _0x27eb78({start:_0x412b07,end:_0x134aba,tapeItem:_0x28d058,userId:_0x10f786,type:_0x1d0c5c}){const _0x2c3c5d=_0x28d058['item'],_0x1c681e=_0x40d64c['schema']['isBlock'](_0x2c3c5d)&&!_0x40d64c['schema']['isLimit'](_0x2c3c5d),_0x29fc66=_0x412b07['nodeAfter']==_0x134aba['parent']&&_0x134aba['isAtStart'];if(_0x1c681e&&_0x29fc66)return;const _0x1e578f=_0x40d64c['createRange'](_0x412b07,_0x134aba),_0x1ed336=_0x4e7cc2['get'](_0x10f786),_0xae8c4e=new G({'author':_0x1ed336,'type':'isAdded'==_0x1d0c5c||'isAddSuggestion'==_0x1d0c5c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1d0c5c||'isRemoveSuggestion'==_0x1d0c5c},'createdAt':new Date(),'rootName':_0x283e67});_0x30fb5e['push'](_0xae8c4e),_0x916404['markers']['set']('revision:'+_0xae8c4e['id'],_0x1e578f);}function _0x21a654(_0x461b3,_0x1324af){const _0x228183=_0x461b3['getAttributes'](),_0x36cb3a=_0x1324af['getAttributes']();for(const _0x1b8eaa of _0x228183){if(_0x1b8eaa[0x1]!==_0x1324af['getAttribute'](_0x1b8eaa[0x0]))return!0x1;_0x36cb3a['next']();}return _0x36cb3a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4be54c=>{const _0x119e4e=_0x4be54c['markerName']['split'](':')[0x1],_0x56351d=this['_getChangeFromId'](_0x119e4e);if(!_0x56351d)return null;const _0x4c960f='add'==_0x56351d['type']?'insertion':'deletion',_0x2d9f04=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4c960f];return _0x56351d['data']['isSuggestion']&&_0x2d9f04['push']('ck-suggestion-marker-'+_0x4c960f+'-new'),this['activeChange']==_0x56351d&&_0x2d9f04['push']('ck-suggestion-marker--active'),{'classes':_0x2d9f04,'attributes':{'data-change-id':_0x119e4e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x54927a=>{_0x54927a['on']('element:pre',(_0x85b77e,_0x1bb27a,_0x4d2b46)=>{const _0x4ab3ae=_0x1bb27a['viewItem']['getChild'](0x0);if(!_0x4ab3ae||!_0x4ab3ae['is']('element','code'))return;if(!_0x4d2b46['consumable']['consume'](_0x4ab3ae,{'attributes':['vid_start','vid_end']}))return;const _0x427a58=_0x1bb27a['modelRange']['start']['nodeAfter'];_0x4d2b46['writer']['setAttribute']('vid_start',_0x4ab3ae['getAttribute']('vid_start'),_0x427a58),_0x4d2b46['writer']['setAttribute']('vid_end',_0x4ab3ae['getAttribute']('vid_end'),_0x427a58);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4b5b57=>{_0x4b5b57['on']('element',(_0x21bed9,_0x11eaf3,_0x2c5892)=>{if(!_0x2c5892['consumable']['consume'](_0x11eaf3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x11eaf3['modelRange']['isCollapsed'])return;const _0xdcdaaf=_0x11eaf3['modelRange']['start']['nodeAfter'];_0xdcdaaf['hasAttribute']('vid_start')||_0xdcdaaf['hasAttribute']('vid')||(_0x2c5892['writer']['setAttribute']('vid_start',_0x11eaf3['viewItem']['getAttribute']('vid_start'),_0xdcdaaf),_0x2c5892['writer']['setAttribute']('vid_end',_0x11eaf3['viewItem']['getAttribute']('vid_end'),_0xdcdaaf));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1dc6a4=>_0x1dc6a4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x134893,[,_0x3ed86a])=>{['vid_start','vid_end','vid']['includes'](_0x3ed86a)&&(_0x134893['return']=!0x0,_0x134893['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1b8385=>{_0x1b8385['on']('attribute:vid',(_0x204e3d,_0x51ce98,_0x39d821)=>{if('\x20'!=_0x51ce98['item']['data']||_0x51ce98['item']['parent']['maxOffset']>0x1)return;if(!_0x39d821['consumable']['consume'](_0x51ce98['item'],_0x204e3d['name']))return;const _0x2ffff2=_0x39d821['writer'],_0x3e542a=_0x39d821['mapper']['toViewRange'](_0x51ce98['range']);_0x2ffff2['wrap'](_0x3e542a,_0x2ffff2['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x483f6d){const _0x40f6d4=_0x483f6d['plugins']['get']('RevisionViewer');return(_0x10533a,_0x4b1199,_0x4b33fa)=>{const _0x560247=_0x4b1199['markerName']['split'](':')[0x1],_0x5abc28=_0x40f6d4['_getChangeFromId'](_0x560247);if(!_0x5abc28)return null;const _0x1cf34d='add'==_0x5abc28['type']?'split':'merge';if(!_0x4b33fa['consumable']['test'](_0x4b1199['markerRange'],_0x10533a['name']))return;const _0x10c12d=_0x4b1199['markerRange']['getWalker'](),_0x5371c8=_0x4b1199['markerRange']['start'],_0x42883f=_0x483f6d['model']['schema'];let _0x5cf51d=null,_0x5a7318=null,_0x575204=!0x1,_0x25dc6a=!0x1;for(const _0x291f66 of _0x10c12d){const _0x30a0e0=_0x291f66['item'];_0x575204=_0x575204||_0x42883f['isContent'](_0x30a0e0);const _0x174186=_0x4b33fa['mapper']['toViewElement'](_0x30a0e0);if(_0x174186&&_0x174186['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x291f66['type']&&(_0x42883f['isBlock'](_0x30a0e0)&&!_0x42883f['isLimit'](_0x30a0e0)&&(_0x30a0e0['nextSibling']||_0x5371c8['isAtEnd']?_0x5cf51d&&_0x5cf51d['parent']==_0x30a0e0||(_0x5cf51d=_0x30a0e0,_0x235b09(_0x291f66['previousPosition']),_0x25dc6a=!0x0):_0x5a7318=_0x5a7318||_0x291f66['previousPosition']));}function _0x235b09(_0x4be18b){const _0x55aa99=_0x4b33fa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1cf34d}),_0x2ce9f5=_0x4b33fa['mapper']['toViewPosition'](_0x4be18b);_0x5abc28['data']['isSuggestion']&&_0x4b33fa['writer']['addClass']('ck-suggestion-marker-'+_0x1cf34d+'-new',_0x55aa99),_0x40f6d4['activeChange']==_0x5abc28&&_0x4b33fa['writer']['addClass']('ck-suggestion-marker--active',_0x55aa99),_0x4b33fa['writer']['insert'](_0x2ce9f5,_0x55aa99),_0x4b33fa['mapper']['bindElementToMarker'](_0x55aa99,_0x4b1199['markerName']);}_0x575204||_0x25dc6a||!_0x5a7318||_0x235b09(_0x5a7318);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4e0798,_0x1f892d,_0x579d20)=>{const _0x44aae7=_0x579d20['mapper']['markerNameToElements'](_0x1f892d['markerName']);if(_0x44aae7){for(const _0x3bf6fe of _0x44aae7)(_0x3bf6fe['hasClass']('ck-suggestion-marker-split')||_0x3bf6fe['hasClass']('ck-suggestion-marker-merge'))&&(_0x579d20['mapper']['unbindElementFromMarkerName'](_0x3bf6fe,_0x1f892d['markerName']),_0x579d20['writer']['remove'](_0x3bf6fe));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3c09b9,_0x3f80e3,_0x5c107d)=>{const _0x2bbab=_0x3f80e3['markerName']['split'](':')[0x1],_0x18c4c9=this['_getChangeFromId'](_0x2bbab);if(!_0x18c4c9)return null;const _0x274684='add'==_0x18c4c9['type']?'split':'merge';if(_0x5c107d['consumable']['test'](_0x3f80e3['markerRange'],_0x3c09b9['name']))for(const _0x8a3367 of _0x3f80e3['markerRange']['getItems']()){if(!_0x8a3367['is']('element','softBreak'))continue;const _0x3e894b=_0x5c107d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x274684}),_0x1fde75=_0x5c107d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x8a3367));_0x18c4c9['data']['isSuggestion']&&_0x5c107d['writer']['addClass']('ck-suggestion-marker-'+_0x274684+'-new',_0x3e894b),this['activeChange']==_0x18c4c9&&_0x5c107d['writer']['addClass']('ck-suggestion-marker--active',_0x3e894b),_0x5c107d['writer']['insert'](_0x1fde75,_0x3e894b),_0x5c107d['mapper']['bindElementToMarker'](_0x3e894b,_0x3f80e3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4c1752=>{for(const _0x1776f7 of this['editor']['model']['document']['getRootNames']()){const _0x1e92ef=this['editor']['model']['document']['getRoot'](_0x1776f7),_0x4aaf99=this['editor']['editing']['view']['document']['getRoot'](_0x1776f7);if(_0x4aaf99){const _0x18452f=_0x1e92ef['getAttribute']('revisionHistoryAttachChange');if(_0x4c1752['removeAttribute']('data-change-id',_0x4aaf99),_0x4c1752['removeClass']('ck-revision-history-root-add',_0x4aaf99),_0x4c1752['removeClass']('ck-revision-history-root-remove',_0x4aaf99),_0x4c1752['removeClass']('ck-revision-history-root--active',_0x4aaf99),_0x18452f){const _0x70bef5=this['_getChangeFromId'](_0x18452f);if(!_0x70bef5)return null;_0x4c1752['setAttribute']('data-change-id',_0x18452f,_0x4aaf99),_0x4c1752['addClass']('ck-revision-history-root-'+_0x70bef5['type'],_0x4aaf99),this['activeChange']==_0x70bef5&&_0x4c1752['addClass']('ck-revision-history-root--active',_0x4aaf99);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x580e0e=>'revision-comment:'+_0x580e0e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x143558=>'revision-suggestion:'+_0x143558,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x381a32=>({'name':'suggestion:'+_0x381a32,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x26b20a=>{const _0x31cffc=_0x26b20a['markerName']['split'](':')[0x1];return'insertion'!=_0x31cffc&&'deletion'!=_0x31cffc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x31cffc]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1bbfca,_0x28a103,_0x3c3925)=>{const _0x1ce7f9=_0x3c3925['mapper']['markerNameToElements'](_0x28a103['markerName']);if(_0x1ce7f9){for(const _0x5501f3 of _0x1ce7f9)_0x5501f3['is']('uiElement')&&(_0x3c3925['mapper']['unbindElementFromMarkerName'](_0x5501f3,_0x28a103['markerName']),_0x3c3925['writer']['remove'](_0x5501f3));}},{'priority':'high'});}['_getChangeFromId'](_0x251984){return this['_changeIdToChange']['get'](_0x251984);}['_getViewForChange'](_0x2b5735){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x2b5735),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x59916d,_0x1817e5,_0x2f6179,_0x424dc8)=>{_0x424dc8&&this['_balloon']['remove'](_0x424dc8),_0x2f6179&&(this['_balloon']['add']({'view':_0x2f6179,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x598b7e=this['editor']['editing'],_0x36da88=this['_getChangeFromId'](_0x2f6179['changeId']);let _0x2b3b5d;if(_0x36da88['data']['isOnRoot']){const _0x2ea7c3=_0x598b7e['view']['getDomRoot'](_0x36da88['rootName']);_0x2b3b5d=Array['from'](_0x2ea7c3['getClientRects']());}else{const _0x560383=this['editor']['model']['markers']['get']('revision:'+_0x2f6179['changeId']);_0x2b3b5d=Array['from'](_0x598b7e['mapper']['markerNameToElements'](_0x560383['name']))['map'](_0x9d012=>_0x598b7e['view']['domConverter']['mapViewToDom'](_0x9d012))['map'](_0x3b84a2=>Array['from'](_0x3b84a2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2b3b5d[0x0];return _0x2b3b5d['find'](_0x2f794f=>_0x2f794f['top']-0x3<=this['_activeViewTarget']['y']&&_0x2f794f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2f794f['left']-0x3<=this['_activeViewTarget']['x']&&_0x2f794f['right']+0x3>=this['_activeViewTarget']['x'])||_0x2b3b5d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x17b4aa,_0x150370,_0x5888fb,_0x11e21e)=>{this['activeView']=_0x5888fb?this['_getViewForChange'](_0x5888fb):null,this['editor']['model']['change'](()=>{const _0x45692c=this['editor']['editing'];_0x11e21e&&(_0x11e21e['data']['isOnRoot']?_0x45692c['view']['change'](_0x3b777f=>{_0x3b777f['removeClass']('ck-revision-history-root--active',_0x45692c['view']['document']['getRoot'](_0x11e21e['rootName']));}):_0x45692c['reconvertMarker']('revision:'+_0x11e21e['id'])),_0x5888fb&&(_0x5888fb['data']['isOnRoot']?_0x45692c['view']['change'](_0x5b22c1=>{_0x5b22c1['addClass']('ck-revision-history-root--active',_0x45692c['view']['document']['getRoot'](_0x5888fb['rootName']));}):_0x45692c['reconvertMarker']('revision:'+_0x5888fb['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x8aeab0,_0x2637d6)=>{if(this['activeChange'])return;const _0x58c675=this['_findChangeIdFromDomTarget'](_0x2637d6['target']),_0x33a9eb=this['_changeIdToChange']['get'](_0x58c675);_0x33a9eb?(this['_activeViewTarget']={'x':_0x2637d6['domEvent']['x'],'y':_0x2637d6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x33a9eb)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4207cc,_0x322936)=>{const _0x15847d=this['_findChangeIdFromDomTarget'](_0x322936['target']),_0x38891c=this['_changeIdToChange']['get'](_0x15847d);_0x38891c?(this['_activeViewTarget']={'x':_0x322936['domEvent']['x'],'y':_0x322936['domEvent']['y']},_0x38891c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x38891c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5ef5fa){do{const _0x1147d4=_0x5ef5fa['getAttribute']('data-change-id');if(_0x1147d4)return _0x1147d4;_0x5ef5fa=_0x5ef5fa['parent'];}while(_0x5ef5fa);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1545d0=>{for(const _0x2d5ae0 of this['editor']['model']['markers'])_0x1545d0['removeMarker'](_0x2d5ae0);});}}function Q(_0x3c22b4,_0x5b576b){return(_0x345da2,_0x50a428,_0x36c1d4)=>{if(!_0x36c1d4['consumable']['test'](_0x50a428['markerRange'],_0x345da2['name']))return;const _0x43b1aa=_0x50a428['markerRange']['getWalker'](),_0xc10e00=_0x50a428['markerRange']['start'],_0x8cc52c=_0x3c22b4['model']['schema'];let _0x1cd087=null,_0x16e26e=null,_0x5a5bd2=!0x1,_0x42ab39=!0x1;for(const _0x1eb71e of _0x43b1aa){const _0x46f570=_0x1eb71e['item'];_0x5a5bd2=_0x5a5bd2||_0x8cc52c['isContent'](_0x46f570);const _0x361052=_0x36c1d4['mapper']['toViewElement'](_0x46f570);if(_0x361052&&_0x361052['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1eb71e['type']&&(_0x8cc52c['isBlock'](_0x46f570)&&!_0x8cc52c['isLimit'](_0x46f570)&&(_0x46f570['nextSibling']||_0xc10e00['isAtEnd']?_0x1cd087&&_0x1cd087['parent']==_0x46f570||(_0x1cd087=_0x46f570,_0xde97d7(_0x1eb71e['previousPosition']),_0x42ab39=!0x0):_0x16e26e=_0x16e26e||_0x1eb71e['previousPosition']));}function _0xde97d7(_0x40bbff){const _0x4c81f8=_0x36c1d4['mapper']['toViewPosition'](_0x40bbff),_0x4be62e=_0x36c1d4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5b576b});_0x36c1d4['writer']['insert'](_0x4c81f8,_0x4be62e),_0x36c1d4['mapper']['bindElementToMarker'](_0x4be62e,_0x50a428['markerName']);}_0x5a5bd2||_0x42ab39||!_0x16e26e||_0xde97d7(_0x16e26e);};}class nt extends _0x44fa3d{constructor(_0x12430d){super(_0x12430d);const _0x462765=_0x12430d['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x462765,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x462765,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4c2728=this['editor'],_0x219190=_0x4c2728['plugins']['get'](l),_0x4966b8=_0x219190['isReady']?_0x219190['diff']['newRevisionId']:null;_0x4c2728['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4966b8);}['refresh'](){const {isReady:_0x425f39,isEnabled:_0x10f68d,repository:_0x21421c,diff:_0x105fc8}=this['editor']['plugins']['get'](l),_0x2c5245=_0x105fc8&&_0x21421c['getLaterVisibleRevision'](_0x105fc8['newRevisionId']);this['isEnabled']=_0x425f39&&_0x10f68d&&Boolean(_0x2c5245);}}class ot extends _0x44fa3d{['_step'];constructor(_0x1f9288,{direction:_0x22b4d4}){super(_0x1f9288);const _0x200cc4=_0x1f9288['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x22b4d4?0x1:-0x1,this['listenTo'](_0x200cc4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x200cc4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x200cc4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x53a8cf=this['editor'],_0x162731=_0x53a8cf['plugins']['get'](l),{isNavigationMode:_0x42b94d,currentChangeNumber:_0x32bbe7}=_0x162731;let _0x2fe25c;if(_0x162731['activeChange']=_0x42b94d?_0x162731['diff']['changes']['get'](_0x32bbe7+this['_step']):_0x162731['diff']['changes']['first'],_0x162731['activeChange']['data']['isOnRoot'])_0x2fe25c=_0x53a8cf['editing']['view']['getDomRoot'](_0x162731['activeChange']['rootName']);else{const _0xabbcb5=_0x53a8cf['model']['markers']['get']('revision:'+_0x162731['activeChange']['id']);_0x2fe25c=_0x19750e(_0x53a8cf['editing'],_0xabbcb5);}_0x1c4b70({'target':_0x2fe25c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x387b80,currentChangeNumber:_0x2e144b,numberOfChanges:_0x1cb0d1,isReady:_0x506da1,isEnabled:_0x200f4f}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x200f4f&&_0x506da1&&_0x1cb0d1)&&(!_0x387b80||(0x1===this['_step']?_0x2e144b<_0x1cb0d1-0x1:_0x2e144b>0x0));}}class xi extends _0x4691c3{constructor(_0x7b5bee){super(_0x7b5bee);const _0x180cc6=this['bindTemplate'],_0xf0a0c2=new _0x304d89(_0x7b5bee),_0x5efbc6=new _0x304d89(_0x7b5bee);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',(_0x204a64,_0xe93da7)=>_0x204a64&&_0xe93da7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xa0b61e,_0x47919d,_0x5b5012,_0x42cd14)=>{if(!_0xa0b61e)return R(_0x7b5bee,'Loading...');if(!_0x5b5012)return R(_0x7b5bee,'No\x20changes');const _0x4b87c0=R(_0x7b5bee,'NUMBER_OF_CHANGES',_0x5b5012);return _0x42cd14?R(_0x7b5bee,'X_OF_Y_CHANGES',[_0x47919d+0x1,_0x5b5012]):_0x4b87c0;}),_0xf0a0c2['set']({'label':R(_0x7b5bee,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3985f9}),_0x5efbc6['set']({'label':R(_0x7b5bee,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2a9948}),_0xf0a0c2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5efbc6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xf0a0c2['on']('execute',()=>this['fire']('execute','backward')),_0x5efbc6['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',_0x180cc6['if']('_isStatusLabelVisible','ck-hidden',_0x44ef26=>!_0x44ef26)]},'children':[{'text':_0x180cc6['to']('isNavigationMode',_0x1128a3=>_0x1128a3?R(_0x7b5bee,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x7b5bee,'Total')+':\x20')}]},{'text':_0x180cc6['to']('_statusText')}]},new _0x41f145(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xf0a0c2,_0x5efbc6]}]});}}const ge='ck-editor__editable__loading-overlay';class Ri extends _0x5e8bcb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4f8903=this['editor']['editing']['view'];_0x4f8903['change'](_0x1408aa=>{for(const _0x17682b of _0x4f8903['document']['roots'])_0x1408aa['addClass'](ge,_0x17682b);});}['hide'](){const _0x49e979=this['editor']['editing']['view'];_0x49e979['change'](_0x178a60=>{for(const _0x35303a of _0x49e979['document']['roots'])_0x178a60['removeClass'](ge,_0x35303a);});}}class u extends _0x5e8bcb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,Ri];}['init'](){const _0x152d07=this['editor'],_0x59b9e4=_0x152d07['plugins']['get'](l),_0x528325=_0x152d07['plugins']['get'](Ri);_0x152d07['ui']['componentFactory']['add']('exitToEditing',_0x277f4f=>{const _0x53d09c=new _0x304d89(_0x277f4f);return _0x53d09c['set']({'label':R(_0x277f4f,'Back\x20to\x20editing'),'icon':_0x20ce7f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x53d09c,'execute',()=>{_0x152d07['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x53d09c;}),_0x152d07['ui']['componentFactory']['add']('restoreRevision',_0x5b8e5b=>{const _0x212b17=new _0x304d89(_0x5b8e5b);return _0x212b17['set']({'label':R(_0x5b8e5b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x212b17['bind']('isEnabled')['to'](_0x152d07['commands']['get']('restoreRevision')),this['listenTo'](_0x212b17,'execute',()=>_0x152d07['execute']('restoreRevision')),_0x212b17;}),_0x152d07['ui']['componentFactory']['add']('changesNavigation',_0x1cda5f=>{const _0x340e80=new xi(_0x1cda5f),_0x36b610=_0x152d07['commands']['get']('showPreviousChange'),_0x3ffd55=_0x152d07['commands']['get']('showNextChange');return _0x340e80['bind']('isBackwardNavigationEnabled')['to'](_0x36b610,'isEnabled'),_0x340e80['bind']('isForwardNavigationEnabled')['to'](_0x3ffd55,'isEnabled'),_0x340e80['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x59b9e4),this['listenTo'](_0x340e80,'execute',(_0x1fccca,_0x25751e)=>{_0x152d07['execute']('forward'===_0x25751e?'showNextChange':'showPreviousChange');}),_0x340e80;}),_0x528325['show'](),_0x59b9e4['on']('change:isReady',(_0x2fef3d,_0xea7e54,_0x961d6f)=>{_0x961d6f?_0x528325['hide']():_0x528325['show']();});}}class li extends _0x506965{['_resizeObserver']=null;constructor(_0x4a7e7f,_0x51beed){super(_0x4a7e7f,_0x51beed);const _0x5be69f=this['bindTemplate'];this['set']({'label':R(_0x4a7e7f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4a7e7f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5be69f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4f0c07=this['fieldView']['element'];this['_tooltipString']=_0x4f0c07['scrollWidth']>_0x4f0c07['clientWidth']&&_0x4f0c07['value']||'';}}class _i extends _0x4691c3{constructor(_0x61124b,_0x3abc76,_0x2d3af0){super(_0x61124b);const _0x37b05f=new _0xd894e8();_0x37b05f['set']({'content':_0x3d4b77,'viewBox':'0\x200\x2011\x2010'});const _0x55f4a4=['ck','ck-revision-history-sidebar__revision-author'];_0x2d3af0&&_0x55f4a4['push']('ck-revision-history-sidebar__revision-author_creator');const _0xfedb7a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x61124b,_0x2d3af0?'Revision\x20creator':'Revision\x20author')},'children':[_0x37b05f,_0x3abc76['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x55f4a4},'children':_0xfedb7a});}}function pi(_0x10eab2,_0x13e9e5){const _0x421234=_0x10eab2['bindTemplate'],_0x5e3334=_0x10eab2['locale'],_0x2d3e35=_0x5b24c1(_0x5e3334);_0x2d3e35['panelPosition']='sw';const _0x322312=function(_0x1ef89b,_0x424b95){const _0x326e67=function(_0x43fd18,_0x33c503){const _0x3fa421=_0x43fd18['locale'],_0x2a0f09={'Compare\x20against\x20selected':R(_0x3fa421,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x3fa421,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x3fa421,'Restore\x20this\x20revision')};return _0x33c503['map'](_0x4cd3ba=>{const _0x2bc561=_0x2a0f09[_0x4cd3ba['name']];return _0x2bc561&&_0x2bc561!==_0x4cd3ba['name']&&(_0x4cd3ba['name']=_0x2bc561),_0x4cd3ba;});}(_0x1ef89b,_0x424b95),_0x315190=new _0x3455f1();for(const _0x36e2c8 of _0x326e67){const _0x160e02={'type':'button','model':new to({'label':_0x36e2c8['name'],'class':_0x36e2c8['class'],'withText':!0x0,'role':'menuitem','_action':_0x36e2c8['action']})};_0x160e02['model']['bind']('isEnabled')['to'](_0x1ef89b,'isActionsDropdownOpen',_0x23d213=>'function'!=typeof _0x36e2c8['isEnabled']||(!_0x23d213||_0x36e2c8['isEnabled'](_0x1ef89b))),_0x315190['add'](_0x160e02);}return _0x315190;}(_0x10eab2,_0x13e9e5);return _0x10eab2['bind']('isActionsDropdownOpen')['to'](_0x2d3e35,'isOpen'),_0x2d3e35['buttonView']['set']({'label':R(_0x5e3334,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x21ffc2}),_0x2d3e35['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x421234['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x421234['to'](_0x49a271=>_0x49a271['stopPropagation']())}}),_0x2d3e35['on']('execute',_0x3ab8ea=>{_0x10eab2['isReady']&&'function'==typeof _0x3ab8ea['source']['_action']&&_0x3ab8ea['source']['_action'](_0x10eab2);}),_0x24538a(_0x2d3e35,_0x322312,{'role':'menu'}),_0x2d3e35['listenTo'](_0x10eab2,'change:isActionsDropdownOpen',(_0x45f9ef,_0x2ad5b8,_0x1af17d)=>{if(_0x1af17d)for(const _0x236e93 of _0x2d3e35['listView']['items']){const _0x13339a=_0x236e93['children']['first'],_0x188994=_0x13e9e5['find'](_0x35e3dc=>_0x35e3dc['action']===_0x13339a['_action'])['isVisible'];_0x236e93['isVisible']=void 0x0===_0x188994||_0x188994(_0x10eab2);}}),_0x2d3e35;}class ei extends/* #__PURE__ -- @preserve */
27
- _0x4de50b(_0x4691c3){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x383854,_0x384144,_0x563881,_0x15c1bd){super(_0x383854);const _0x3f235f=this['bindTemplate'],_0x96a833=function(_0x289b93,_0x3f3a8e){const _0x4b5186=Array['from'](_0x3f3a8e['authors'])['filter'](_0x2bf5ff=>_0x2bf5ff!=_0x3f3a8e['creator']);return _0x3f3a8e['creator']&&_0x4b5186['unshift'](_0x3f3a8e['creator']),_0x4b5186['map'](_0x2f5a33=>new _i(_0x289b93,_0x2f5a33,_0x2f5a33==_0x3f3a8e['creator']));}(_0x383854,_0x384144);this['id']=_0x384144['id'],this['_revision']=_0x384144,this['_requireRevisionName']=_0x15c1bd,this['bind']('name','createdAt')['to'](_0x384144),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x19d2d=>{return _0x33168a=_0x383854['uiLanguage'],(_0x74148f=_0x19d2d)['toLocaleDateString'](_0x33168a,{'month':'long','day':'numeric'})+',\x20'+_0x74148f['toLocaleTimeString'](_0x33168a,{'hour':'numeric','minute':'numeric'});var _0x33168a,_0x74148f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x383854,_0x1340c0),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x13a810=>_0x13a810||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1ac089,_0x417251)=>_0x1ac089&&_0x417251),this['revisionActionsView']=_0x563881&&_0x563881['length']?pi(this,_0x563881):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3f235f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3f235f['if']('isEnabled','ck-disabled',_0x51c8a8=>!_0x51c8a8),_0x3f235f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3f235f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3f235f['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':_0x3f235f['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':_0x96a833}]},this['revisionActionsView']],'on':{'click':_0x3f235f['to'](_0x127bb7=>{_0x127bb7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x35448b=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x35448b,'change',()=>{this['_requireRevisionName']&&!_0x35448b['value']||this['fire']('setName',{'id':this['id'],'name':_0x35448b['value']}),_0x35448b['value']||(_0x35448b['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x5ea0b6,_0x14b133){const _0x607bc6=_0x4ca622['fromJSDate'](_0x5ea0b6)['setLocale'](_0x14b133),_0x438ca7=_0x4ca622['local'](),_0x2f1e3a=_0x438ca7['minus']({'days':0x1})['startOf']('day');let _0x4bac4d,_0x9bd998;return _0x607bc6['hasSame'](_0x438ca7,'day')?(_0x4bac4d=_0x607bc6['startOf']('day')['toJSDate'](),_0x9bd998=_0x607bc6['toRelativeCalendar']()):_0x607bc6['hasSame'](_0x2f1e3a,'day')?(_0x4bac4d=_0x2f1e3a['toJSDate'](),_0x9bd998=_0x607bc6['toRelativeCalendar']()):_0x607bc6['hasSame'](_0x438ca7,'week')?(_0x4bac4d=_0x607bc6['startOf']('week')['toJSDate'](),_0x9bd998=_0x607bc6['weekdayLong']||''):_0x607bc6['hasSame'](_0x438ca7,'year')?(_0x4bac4d=_0x607bc6['startOf']('month')['toJSDate'](),_0x9bd998=_0x607bc6['monthLong']||''):(_0x4bac4d=_0x607bc6['startOf']('year')['toJSDate'](),_0x9bd998=String(_0x607bc6['year'])),{'startDate':_0x4bac4d,'localizedPeriodName':_0x9bd998};}class ri extends _0x4691c3{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3381fc,_0x5bd608,_0x36ce2f,_0x3fc429){super(_0x3381fc);const _0xf9378d=ti(_0x5bd608,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5bd608,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x36ce2f,this['_requireRevisionName']=_0x3fc429,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':_0xf9378d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x13b8ed){const _0x221ae4=new ei(this['locale'],_0x13b8ed,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x221ae4);}['removeRevision'](_0x1981a0){const _0x2fe154=this['revisionViews']['find'](_0x528fc1=>_0x528fc1['id']===_0x1981a0['id']);this['revisionViews']['remove'](_0x2fe154);}}class oi extends _0x4691c3{constructor(_0x3ea17c){super(_0x3ea17c);const _0x4167ac=new _0xd894e8();_0x4167ac['content']=_0x5e53f9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4167ac,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x3ea17c,'Revision\x20history')]}]});}}class si extends _0x4691c3{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c1b27,_0x5d117d,_0x2fb82b,_0x1cdfb6){super(_0x4c1b27);const _0x1e0de1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5d117d,this['_revisionActions']=_0x2fb82b,this['_requireRevisionName']=_0x1cdfb6,this['on']('select',(_0xc1ef46,_0xd809c1)=>{this['fire']('revisionSelected',_0xd809c1);}),this['on']('setName',(_0x46eef9,_0x20eaac)=>{this['fire']('revisionSetName',_0x20eaac);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new oi(_0x4c1b27),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1e0de1['if']('isEnabled','ck-disabled',_0x1e20ed=>!_0x1e20ed)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5f4826 of this['_revisions'])this['_addRevision'](_0x5f4826);this['_revisions']['on']('add',(_0x435d57,_0x39ea60)=>{this['_addRevision'](_0x39ea60);}),this['_revisions']['on']('remove',(_0x223d69,_0x7079f3)=>{this['_removeRevision'](_0x7079f3);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x18630e=>_0x18630e['revisionViews']['map'](_0x5c2d3a=>_0x5c2d3a))['flat']();}['selectRevision'](_0x17b77f){for(const _0x338dd5 of this['revisionViews'])_0x17b77f&&_0x17b77f['id']===_0x338dd5['id']?_0x338dd5['select']():_0x338dd5['deselect']();}['highlightRevisions'](_0x20305a){for(const _0xf7d9c2 of this['revisionViews'])_0x20305a['some'](({id:_0x3ccd13})=>_0x3ccd13===_0xf7d9c2['id'])?_0xf7d9c2['highlight']():_0xf7d9c2['unhighlight']();}['_addRevision'](_0x55996c){const _0x1a3825=ti(_0x55996c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x31b287=this['timePeriodViews']['get'](0x0);_0x31b287&&_0x31b287['startDate']['getTime']()===_0x1a3825['getTime']()||(_0x31b287=new ri(this['locale'],_0x1a3825,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x31b287)),_0x31b287['addRevision'](_0x55996c);}['_removeRevision'](_0x15a3d7){const _0x10f143=ti(_0x15a3d7['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x10f143)['removeRevision'](_0x15a3d7);}['_getTimePeriodViewByStartDate'](_0x533d41){return this['timePeriodViews']['find'](_0x51b8f1=>_0x51b8f1['startDate']['getTime']()===_0x533d41['getTime']());}}class f extends _0x5e8bcb{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x2e7ad6,uid as _0x47b252,Collection as _0x25aee0,logWarning as _0x176086,FocusTracker as _0x312bee,KeystrokeHandler as _0x513db7,scrollViewportToShowTarget as _0x20ce4c,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x8b62c2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x309714,set as _0x277039,unset as _0x4f1e06,isEqual as _0x1036b1}from'es-toolkit/compat';import{Plugin as _0xebc3e0,PendingActions as _0x16b8a2,Command as _0x147c99,ElementApiMixin as _0x5af58f,Editor as _0x168e66}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3017f2,getMarkerDomElement as _0x2dd75d,ConfirmMixin as _0x5f2767,sanitizeEditorConfig as _0x27966f}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x415fd8,ViewAttributeElement as _0x24e439,ViewEmptyElement as _0x5e72d3,ViewRawElement as _0xcb22e3,ViewUIElement as _0x574de8,ViewDocumentFragment as _0x90a7c6,ViewText as _0x942315,ViewElement as _0xe833e5,ModelElement as _0x38b79f,ModelRange as _0x2eabcc,ModelPosition as _0x54a248,ModelDocumentFragment as _0x411e92,ModelText as _0x12eef8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x44948c,IconChevronUp as _0x26c96a,IconChevronDown as _0x5dd6f6,IconUndo as _0x56b3ea,IconUser as _0x20968b,IconThreeVerticalDots as _0x4fc43a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x1e1199,View as _0x3001a4,submitHandler as _0x2f895c,LabeledFieldView as ti,createLabeledInputText as _0x20b885,createDropdown as _0x4b4187,ListView as _0x3f98b4,ListItemView as _0x3c2a08,ButtonView as _0x462f0b,MenuBarMenuView as _0x36176b,MenuBarMenuListView as _0x3a18dc,MenuBarMenuListItemView as _0x39747e,MenuBarMenuListItemButtonView as _0x58682a,ContextualBalloon as _0x1a0243,ToolbarSeparatorView as _0x516843,IconView as _0x35dec8,addListToDropdown as _0x415f8b,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x46135a,StickyPanelView as _0x4ab08d,ToolbarView as _0x383f66,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2d35fb}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
+ _0x2e7ad6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5b9bf8){super(),this['id']=_0x5b9bf8['id']||_0x47b252(),this['creator']=_0x5b9bf8['creator']||null,this['authors']=_0x5b9bf8['authors']||[],this['diffData']=_0x5b9bf8['diffData']||null,this['toVersion']=_0x5b9bf8['toVersion']||0x0,this['fromVersion']=_0x5b9bf8['fromVersion']||0x0,this['set']('name',_0x5b9bf8['name']||''),this['set']('createdAt',_0x5b9bf8['createdAt']||new Date()),this['set']('attributes',_0x5b9bf8['attributes']||{});}['setName'](_0x4e0536){this['_update']({'name':_0x4e0536});}['setAttribute'](_0x535ed3,_0x5df4ad){const _0x128e9a=_0x309714(this['attributes']);_0x277039(_0x128e9a,_0x535ed3,_0x5df4ad),this['_update']({'attributes':_0x128e9a});}['removeAttribute'](_0x316b49){const _0x1f0774=_0x309714(this['attributes']);_0x4f1e06(_0x1f0774,_0x316b49),this['_update']({'attributes':_0x1f0774});}['_update'](_0x1e3919,_0x297188=!0x1){let _0x317df9=!0x1;const _0x12f2b5={'id':this['id']},_0xfb24d7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x54a44b of _0xfb24d7){const _0x200600=_0x1e3919[_0x54a44b];void 0x0!==_0x200600&&_0x200600!==this[_0x54a44b]&&(this[_0x54a44b]=_0x200600,_0x12f2b5[_0x54a44b]=_0x200600,_0x317df9=!0x0);}_0x317df9&&(_0x12f2b5['authors']&&(_0x12f2b5['authorsIds']=_0x12f2b5['authors']['map'](_0x628f2e=>_0x628f2e['id']),delete _0x12f2b5['authors']),this['fire']('_update',_0x12f2b5,_0x297188));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4b6312=>_0x4b6312['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xebc3e0{['_revisions'];static get['requires'](){return[_0x3017f2];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x11bb29){super(_0x11bb29),this['_revisions']=new _0x25aee0();}['afterInit'](){!async function(_0x57daed){const _0x5edc54=_0x50ac56([0x47,0x6d,0x5a,0x30,0x71,0x68,0x74,0x6f,0x41,0x56,0x42,0x52,0x55,0x37,0x61,0x4c,0x6c,0x4a,0x36,0x66,0x4b,0x6b,0x46,0x64,0x69,0x57,0x78,0x44,0x43,0x77,0x4d,0x33,0x63,0x58,0x34,0x67,0x51,0x50,0x48,0x70,0x65,0x72,0x59,0x38,0x45,0x31,0x32,0x62,0x39,0x6e,0x79,0x7a,0x4e,0x6a,0x75,0x35,0x49,0x4f,0x73,0x53,0x76,0x54]),_0x3f20c1=0xeb829,_0x3504a5=0x36432ebf,_0x569d6a=0x3644413f^_0x3504a5,_0x175feb=window[_0x50ac56([0x44,0x61,0x74,0x65])][_0x50ac56([0x6e,0x6f,0x77])](),_0x2384eb=_0x57daed[_0x50ac56([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cfb8c=new window[(_0x50ac56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c226d=>{_0x2384eb[_0x50ac56([0x6f,0x6e,0x63,0x65])](_0x50ac56([0x72,0x65,0x61,0x64,0x79]),_0x5c226d);}),_0x54a326={[_0x50ac56([0x6b,0x74,0x79])]:_0x50ac56([0x45,0x43]),[_0x50ac56([0x75,0x73,0x65])]:_0x50ac56([0x73,0x69,0x67]),[_0x50ac56([0x63,0x72,0x76])]:_0x50ac56([0x50,0x2d,0x32,0x35,0x36]),[_0x50ac56([0x78])]:_0x50ac56([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]),[_0x50ac56([0x79])]:_0x50ac56([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]),[_0x50ac56([0x61,0x6c,0x67])]:_0x50ac56([0x45,0x53,0x32,0x35,0x36])},_0x2342a1=_0x2384eb[_0x50ac56([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50ac56([0x67,0x65,0x74])](_0x50ac56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59a4f3(){let _0x1da898,_0x23f9dd=null,_0x126e62=null;try{if(_0x2342a1==_0x50ac56([0x47,0x50,0x4c]))return _0x50ac56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1da898=_0x150563(),!_0x1da898)return _0x50ac56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1da898[_0x50ac56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x126e62=_0x37b780(_0x1da898[_0x50ac56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1da898[_0x50ac56([0x6a,0x74,0x69])])),await _0x2edac3()?_0x5c1f55()?_0x18304b()?_0x50ac56([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e7c1b()?(_0x1da898[_0x50ac56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50ac56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23f9dd=_0x1c3f94(_0x50ac56([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1da898[_0x50ac56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50ac56([0x74,0x72,0x69,0x61,0x6c])&&(_0x23f9dd=_0x1c3f94(_0x50ac56([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x506d87()):_0x50ac56([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50ac56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50ac56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x50ac56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18304b(){const _0xe4a7b0=[_0x50ac56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50ac56([0x74,0x72,0x69,0x61,0x6c])][_0x50ac56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1da898[_0x50ac56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x175feb/0x3e8:0xe10*_0x569d6a;return _0x1da898[_0x50ac56([0x65,0x78,0x70])]<_0xe4a7b0;}function _0x5c1f55(){const _0xf93f0b=_0x1da898[_0x50ac56([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf93f0b)return!0x1;if(_0xf93f0b[_0x50ac56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50ac56([0x2a])))return!0x0;if(_0xf93f0b[_0x50ac56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50ac56([0x52,0x48])))return!0x0;if(_0xf93f0b[_0x50ac56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50ac56([0x52,0x52,0x48]))){if(_0x2e84c9())return!0x0;if(_0x2e0cb3()||_0x3a8db4())return!0x0;}return!0x1;}function _0x1e7c1b(){const _0x499fb8=_0x1da898[_0x50ac56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x499fb8||0x0==_0x499fb8[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x394e03}=new URL(window[_0x50ac56([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x499fb8[_0x50ac56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394e03))return!0x0;const _0x26978a=_0x394e03[_0x50ac56([0x73,0x70,0x6c,0x69,0x74])](_0x50ac56([0x2e]));return _0x499fb8[_0x50ac56([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55c3ed=>_0x55c3ed[_0x50ac56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50ac56([0x2a])))[_0x50ac56([0x6d,0x61,0x70])](_0x2cdf34=>_0x2cdf34[_0x50ac56([0x73,0x70,0x6c,0x69,0x74])](_0x50ac56([0x2e])))[_0x50ac56([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59f9ef=>_0x59f9ef[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26978a[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50ac56([0x6d,0x61,0x70])](_0x4d1813=>Array(_0x26978a[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d1813[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50ac56([0x66,0x69,0x6c,0x6c])](_0x4d1813[0x0]===_0x50ac56([0x2a])?_0x50ac56([0x2a]):'')[_0x50ac56([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d1813))[_0x50ac56([0x73,0x6f,0x6d,0x65])](_0x2ee4fa=>_0x26978a[_0x50ac56([0x65,0x76,0x65,0x72,0x79])]((_0x3cf9bf,_0x407536)=>_0x2ee4fa[_0x407536]===_0x3cf9bf||_0x2ee4fa[_0x407536]===_0x50ac56([0x2a])));}function _0x506d87(){return _0x23f9dd&&_0x126e62?new window[(_0x50ac56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x153ea9,_0x2f9b1b)=>{_0x23f9dd[_0x50ac56([0x74,0x68,0x65,0x6e])](_0x153ea9,_0x2f9b1b),_0x126e62[_0x50ac56([0x74,0x68,0x65,0x6e])](_0x1e5511=>{_0x1e5511!=_0x50ac56([0x56,0x61,0x6c,0x69,0x64])&&_0x153ea9(_0x1e5511);},_0x2f9b1b);}):_0x23f9dd||_0x126e62||_0x50ac56([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37b780(_0x311190,_0x3eb88f){return new window[(_0x50ac56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6a45=>{if(_0x1620be())return _0x2c6a45(_0x50ac56([0x56,0x61,0x6c,0x69,0x64]));_0x3af8c7(),_0x2384eb[_0x50ac56([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50ac56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c59d1=!0x1;const _0x1ef8bc=_0x47b252();function _0x1090e7(_0x485f41){return!!_0x485f41&&(typeof _0x485f41===_0x50ac56([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x485f41===_0x50ac56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x485f41[_0x50ac56([0x74,0x68,0x65,0x6e])]===_0x50ac56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x485f41[_0x50ac56([0x63,0x61,0x74,0x63,0x68])]===_0x50ac56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x304658(_0xd21324){_0xc9facf(_0xd21324)[_0x50ac56([0x74,0x68,0x65,0x6e])](_0x1d64c6=>{if(!_0x1d64c6||_0x1d64c6[_0x50ac56([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50ac56([0x6f,0x6b]))return _0x50ac56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45b88c(_0x2fbee5(_0x1ef8bc+_0x3eb88f))!=_0x1d64c6[_0x50ac56([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50ac56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50ac56([0x56,0x61,0x6c,0x69,0x64]);})[_0x50ac56([0x74,0x68,0x65,0x6e])](_0x95dd19=>(_0x360128(),_0x95dd19),()=>{const _0x3d2898=_0x43ceb8();return null==_0x3d2898?(_0x360128(),_0x50ac56([0x56,0x61,0x6c,0x69,0x64])):_0x50ac56(_0x175feb-_0x3d2898>(0x124faabf^_0x3504a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50ac56([0x74,0x68,0x65,0x6e])](_0x2c6a45)[_0x50ac56([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c6a45(_0x50ac56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44140b=0x3675c03f^_0x3504a5;function _0x360128(){const _0x4e1a53=_0x50ac56([0x6c,0x6c,0x63,0x74,0x2d])+_0x45b88c(_0x2fbee5(_0x311190)),_0x29469b=_0x54aa09(_0x45b88c(window[_0x50ac56([0x4d,0x61,0x74,0x68])][_0x50ac56([0x63,0x65,0x69,0x6c])](_0x175feb/_0x44140b)));window[_0x50ac56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50ac56([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e1a53,_0x29469b);}function _0x43ceb8(){const _0x53042f=_0x50ac56([0x6c,0x6c,0x63,0x74,0x2d])+_0x45b88c(_0x2fbee5(_0x311190)),_0x2b57e2=window[_0x50ac56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50ac56([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53042f);return _0x2b57e2?window[_0x50ac56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54aa09(_0x2b57e2),0x10)*_0x44140b:null;}function _0xc9facf(_0x462445){return new window[(_0x50ac56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57ccbe,_0x4f27dd)=>{_0x462445[_0x50ac56([0x74,0x68,0x65,0x6e])](_0x57ccbe,_0x4f27dd),window[_0x50ac56([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f27dd,0x3642fa7f^_0x3504a5);});}}_0x2384eb[_0x50ac56([0x6f,0x6e])](_0x50ac56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa99532,_0x41a42d)=>{if(_0x41a42d[0x0]!=_0x311190)return _0x2c6a45(_0x50ac56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41a42d[0x1]={..._0x41a42d[0x1],[_0x50ac56([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ef8bc};},{[_0x50ac56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50ac56([0x68,0x69,0x67,0x68])}),_0x2384eb[_0x50ac56([0x6f,0x6e])](_0x50ac56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x245930=>{_0x1090e7(_0x245930[_0x50ac56([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c59d1=!0x0,_0x304658(_0x245930[_0x50ac56([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50ac56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50ac56([0x6c,0x6f,0x77])}),_0x1cfb8c[_0x50ac56([0x74,0x68,0x65,0x6e])](()=>{_0x3c59d1||_0x2c6a45(_0x50ac56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1620be(){return _0x2384eb[_0x50ac56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50ac56([0x76,0x69,0x65,0x77])][_0x50ac56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50ac56([0x61,0x75,0x74,0x6f]);}function _0x3af8c7(){_0x2384eb[_0x50ac56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50ac56([0x76,0x69,0x65,0x77])][_0x50ac56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50ac56([0x61,0x75,0x74,0x6f]);}}function _0x1c3f94(_0x99928){const _0x921c78=[new window[(_0x50ac56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x407891=>setTimeout(_0x407891,0x364a1073^_0x3504a5)),_0x1cfb8c[_0x50ac56([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50ac56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42289b=>{const _0x13c199=0x36432eb8^_0x3504a5,_0x29d97f=_0x57daed[_0x50ac56([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3df2c8(){_0x29d97f[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x13c199&&_0x42289b();}_0x3df2c8(),_0x29d97f[_0x50ac56([0x6f,0x6e])](_0x50ac56([0x61,0x64,0x64]),_0x3df2c8);})),new window[(_0x50ac56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28dd09=>{function _0x4762a6(){for(const _0x134cbe in window)if(window[_0x50ac56([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x50ac56([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x134cbe))&&window[_0x134cbe]==_0x3f20c1)return _0x28dd09();_0x2384eb[_0x50ac56([0x73,0x74,0x61,0x74,0x65])]!=_0x50ac56([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x50ac56([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4762a6,0x36433d37^_0x3504a5);}_0x16da50(_0x50ac56([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4762a6();})];return window[_0x50ac56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50ac56([0x72,0x61,0x63,0x65])](_0x921c78)[_0x50ac56([0x74,0x68,0x65,0x6e])](()=>_0x99928);}async function _0xaa62cb(){if(await _0x1cfb8c,_0x16da50(_0x50ac56([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xcf8c8=_0x57daed[_0x50ac56([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x535d25=_0x57daed[_0x50ac56([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])](_0xcf8c8[_0x50ac56([0x69,0x64])]),_0x3041e6=_0x46d686(_0x50ac56([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3041e6[_0x50ac56([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xcf8c8['id'],_0x535d25?_0x535d25['id']:null,!0x0),_0x3041e6[_0x50ac56([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x50ac56([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3041e6[_0x50ac56([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3041e6[_0x50ac56([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x569eb7,void(_0x3041e6[_0x50ac56([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x569eb7);}if(_0x16da50(_0x50ac56([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2e02a6=_0x46d686(_0x50ac56([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2e02a6[_0x50ac56([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x50ac56([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2e02a6[_0x50ac56([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2e02a6[_0x50ac56([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x569eb7,_0x2e02a6[_0x50ac56([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x569eb7;}_0x2384eb[_0x50ac56([0x6d,0x6f,0x64,0x65,0x6c])][_0x50ac56([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x569eb7,_0x2384eb[_0x50ac56([0x6d,0x6f,0x64,0x65,0x6c])][_0x50ac56([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x569eb7,_0x2384eb[_0x50ac56([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50ac56([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e84c9(){return _0x16da50(_0x50ac56([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x46d686(_0x50ac56([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x50ac56([0x73,0x74,0x61,0x74,0x65])]==_0x50ac56([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2e0cb3(){return _0x16da50(_0x50ac56([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 _0x3a8db4(){return _0x16da50(_0x50ac56([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f5cf0(_0x22ddd2){const _0x5ce0d6=_0x62f1e4();_0x2384eb[_0x5ce0d6]=_0x50ac56([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])+_0x22ddd2,_0x22ddd2[_0x50ac56([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x50ac56([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x62f1e4()]=_0x3f20c1),_0x22ddd2!=_0x50ac56([0x56,0x61,0x6c,0x69,0x64])&&_0xaa62cb();}function _0x62f1e4(){const _0x22b060=window[_0x50ac56([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50ac56([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50ac56([0x6e,0x6f,0x77])]())[_0x50ac56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50ac56([0x2e]),'');let _0x4cea6e=_0x50ac56([0x47]);for(let _0x3ef764=0x0;_0x3ef764<_0x22b060[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ef764+=0x2){let _0x1fe6b3=window[_0x50ac56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22b060[_0x50ac56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ef764,_0x3ef764+0x2));_0x1fe6b3>=_0x5edc54[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1fe6b3-=_0x5edc54[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cea6e+=_0x5edc54[_0x1fe6b3];}return _0x4cea6e;}function _0x150563(){const _0xc06880=_0x2342a1[_0x50ac56([0x73,0x70,0x6c,0x69,0x74])](_0x50ac56([0x2e]));if(0x3!=_0xc06880[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x233d53(_0xc06880[0x1]);function _0x233d53(_0x2c49ec){const _0x55a300=_0xf4a97c(_0x2c49ec);return _0x55a300&&_0x638ad()?_0x55a300:null;function _0x638ad(){const _0x342e9d=_0x55a300[_0x50ac56([0x6a,0x74,0x69])],_0x2d9187=window[_0x50ac56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x342e9d[_0x50ac56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x342e9d[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d69b9={..._0x55a300,[_0x50ac56([0x6a,0x74,0x69])]:_0x342e9d[_0x50ac56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x342e9d[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d69b9[_0x50ac56([0x76,0x63])],_0x2fbee5(_0x1d69b9)==_0x2d9187;}}}async function _0x2edac3(){let _0x5410b2=!0x0;try{const _0x2d8bfe=_0x2342a1[_0x50ac56([0x73,0x70,0x6c,0x69,0x74])](_0x50ac56([0x2e])),[_0x375a95,_0x2d3537,_0x3ac72b]=_0x2d8bfe;return _0x2db28e(_0x375a95),await _0x55a6be(_0x375a95,_0x2d3537,_0x3ac72b),_0x5410b2;}catch{return!0x1;}function _0x2db28e(_0x5c6d26){const _0xd56e51=_0xf4a97c(_0x5c6d26);_0xd56e51&&_0xd56e51[_0x50ac56([0x61,0x6c,0x67])]==_0x50ac56([0x45,0x53,0x32,0x35,0x36])||(_0x5410b2=!0x1);}async function _0x55a6be(_0x5de81f,_0x58c58f,_0x3a7d5c){const _0x3e1ba6=window[_0x50ac56([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50ac56([0x66,0x72,0x6f,0x6d])](_0x55dfbf(_0x3a7d5c),_0x3b111f=>_0x3b111f[_0x50ac56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27fe36=new window[(_0x50ac56([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50ac56([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5de81f+_0x50ac56([0x2e])+_0x58c58f),_0x1efd6d=window[_0x50ac56([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50ac56([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1efd6d)return;const _0x146d7f=await _0x1efd6d[_0x50ac56([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50ac56([0x6a,0x77,0x6b]),_0x54a326,{[_0x50ac56([0x6e,0x61,0x6d,0x65])]:_0x50ac56([0x45,0x43,0x44,0x53,0x41]),[_0x50ac56([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50ac56([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50ac56([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1efd6d[_0x50ac56([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50ac56([0x6e,0x61,0x6d,0x65])]:_0x50ac56([0x45,0x43,0x44,0x53,0x41]),[_0x50ac56([0x68,0x61,0x73,0x68])]:{[_0x50ac56([0x6e,0x61,0x6d,0x65])]:_0x50ac56([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x146d7f,_0x3e1ba6,_0x27fe36)||(_0x5410b2=!0x1);}}function _0xf4a97c(_0x531aee){return _0x531aee[_0x50ac56([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50ac56([0x65,0x79]))?JSON[_0x50ac56([0x70,0x61,0x72,0x73,0x65])](_0x55dfbf(_0x531aee)):null;}function _0x55dfbf(_0x94eeaf){return window[_0x50ac56([0x61,0x74,0x6f,0x62])](_0x94eeaf[_0x50ac56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50ac56([0x2b]))[_0x50ac56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50ac56([0x2f])));}function _0x2fbee5(_0x90793){let _0xdd3dc=0x1505;function _0x39e1a0(_0x2ca2f8){for(let _0xc5607=0x0;_0xc5607<_0x2ca2f8[_0x50ac56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc5607++){const _0x34abad=_0x2ca2f8[_0x50ac56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc5607);_0xdd3dc=(_0xdd3dc<<0x5)+_0xdd3dc+_0x34abad,_0xdd3dc&=_0xdd3dc;}}function _0x246ef3(_0xfd6bdd){Array[_0x50ac56([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfd6bdd)?_0xfd6bdd[_0x50ac56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x246ef3):_0xfd6bdd&&typeof _0xfd6bdd==_0x50ac56([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50ac56([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfd6bdd)[_0x50ac56([0x73,0x6f,0x72,0x74])]()[_0x50ac56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x198ac0,_0x2e75d8])=>{_0x39e1a0(_0x198ac0),_0x246ef3(_0x2e75d8);}):_0x39e1a0(window[_0x50ac56([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfd6bdd));}return _0x246ef3(_0x90793),_0xdd3dc>>>0x0;}function _0x45b88c(_0x1bddf4){return _0x1bddf4[_0x50ac56([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50ac56([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50ac56([0x30]));}function _0x54aa09(_0x428426){return _0x428426[_0x50ac56([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50ac56([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50ac56([0x6a,0x6f,0x69,0x6e])]('');}function _0x16da50(_0x2b5271){return _0x2384eb[_0x50ac56([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x50ac56([0x68,0x61,0x73])](_0x2b5271);}function _0x46d686(_0x236a37){return _0x2384eb[_0x50ac56([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x50ac56([0x67,0x65,0x74])](_0x236a37);}function _0x569eb7(){}function _0x50ac56(_0x5c9dd9){return _0x5c9dd9['map'](_0xeb08ad=>String['fromCharCode'](_0xeb08ad))['join']('');}_0x4f5cf0(await _0x59a4f3());}(this);}['createRevision'](_0x10ebdd){const _0x2a68e7=this['editor']['plugins']['get']('Users');return new I({'id':_0x10ebdd['id'],'name':_0x10ebdd['name'],'creator':_0x10ebdd['creatorId']?_0x2a68e7['getUser'](_0x10ebdd['creatorId']):null,'diffData':_0x10ebdd['diffData']||_0x10ebdd['data'],'authors':_0x10ebdd['authorsIds']['map'](_0x5751af=>_0x2a68e7['getUser'](_0x5751af)),'createdAt':new Date(_0x10ebdd['createdAt']),'attributes':_0x10ebdd['attributes'],'fromVersion':_0x10ebdd['fromVersion'],'toVersion':_0x10ebdd['toVersion']});}['addRevision'](_0x52f6ac,_0xaba21=0x0){this['_revisions']['add'](_0x52f6ac,_0xaba21);}['getRevision'](_0x3baf0f){return this['_revisions']['get'](_0x3baf0f);}['getRevisions'](_0x3ceda4={'toJSON':!0x1}){const _0x3d6de7=Array['from'](this['_revisions']);return _0x3d6de7['reverse'](),_0x3ceda4['toJSON']?_0x3d6de7['map'](_0x3b124c=>_0x3b124c['toJSON']()):_0x3d6de7;}['getIndex'](_0x46c49c){return this['_revisions']['getIndex'](_0x46c49c);}['getEarlierVisibleRevision'](_0x5d4cc0){const [,_0x4b313b]=this['getRevisionsIterator'](_0x5d4cc0,{'direction':'earlier'});return _0x4b313b;}['getLaterVisibleRevision'](_0x357573){const [,_0x32c3a8]=this['getRevisionsIterator'](_0x357573,{'direction':'later'});return _0x32c3a8;}['getRevisionsInDiff'](_0x240421){const _0x33014f=[];for(const _0x198caf of this['getRevisionsIterator'](_0x240421['newRevisionId']))if(_0x33014f['push'](_0x198caf),_0x198caf['id']===_0x240421['oldRevisionId'])break;return _0x33014f;}*['getRevisionsIterator'](_0xe1f54b,{direction:_0x835175='earlier',filter:_0x1b1f5b=()=>!0x0}={}){const _0x6665c8='earlier'===_0x835175?0x1:-0x1;let _0x436f77=this['_revisions']['get'](_0xe1f54b),_0x48d9b2=this['getIndex'](_0x436f77);for(yield _0x436f77;_0x436f77;){if(_0x48d9b2+=_0x6665c8,_0x436f77=this['getRevision'](_0x48d9b2),!_0x436f77)return;_0x1b1f5b(_0x436f77)&&(yield _0x436f77);}}}class $ extends _0xebc3e0{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x415fd8,'c'],[_0x24e439,'a'],[_0x5e72d3,'e'],[_0xcb22e3,'r'],[_0x574de8,'u']]);['_typeCharToViewClass']=new Map([['c',_0x415fd8],['a',_0x24e439],['e',_0x5e72d3],['r',_0xcb22e3],['u',_0x574de8]]);async['loadRevisionData'](_0x4799da,_0x36d080){if(_0x4799da['diffData']||!_0x36d080)return;const _0x3faddf=this['editor']['config']['get']('collaboration.channelId'),_0x1c1299=await _0x36d080['getRevision']({'channelId':_0x3faddf,'revisionId':_0x4799da['id']});_0x4799da['diffData']=_0x1c1299['diffData'];}['getRevisionDocumentData'](_0x25d819){const _0x4a9cdc={};for(const _0x1ab7cc in _0x25d819['diffData']){if(_0x25d819['diffData'][_0x1ab7cc]['attachChange']&&!_0x25d819['diffData'][_0x1ab7cc]['attachChange']['isAttached'])continue;const _0x11669c=this['_removeRevisionMarkers'](JSON['parse'](_0x25d819['diffData'][_0x1ab7cc]['insertions'])),_0x2e3166=this['editor']['editing']['view']['document'],_0x5ee776=new _0x90a7c6(_0x2e3166,_0x11669c['map'](_0x3321ad=>this['_getViewFromDiffObj'](_0x3321ad,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4a9cdc[_0x1ab7cc]=this['editor']['data']['processor']['toData'](_0x5ee776),this['editor']['data']['processor']['useFillerType']('default');}return _0x4a9cdc;}['getRevisionRootsAttributes'](_0x55e85f){const _0x5a1254={};for(const _0x2be6da in _0x55e85f['diffData'])_0x55e85f['diffData'][_0x2be6da]['attachChange']&&!_0x55e85f['diffData'][_0x2be6da]['attachChange']['isAttached']||(_0x5a1254[_0x2be6da]=_0x55e85f['diffData'][_0x2be6da]['attributesAfter']||{});return _0x5a1254;}['_getTypeCharForViewElement'](_0x25079d){return this['_viewClassToTypeChar']['get'](_0x25079d['constructor']);}['_getViewFromDiffObj'](_0x4b153e,_0x5fccd1){const _0x31e6c6=this['editor']['editing']['view']['document'];if('string'==typeof _0x4b153e)return new _0x942315(_0x31e6c6,_0x4b153e);{let _0x4837d1,_0x565ca6;_0x565ca6='u'==_0x4b153e['type']||'r'==_0x4b153e['type']?[]:_0x4b153e['children']['map'](_0x5273c8=>this['_getViewFromDiffObj'](_0x5273c8,_0x5fccd1));const _0x51402b=this['_typeCharToViewClass']['get'](_0x4b153e['type'])||_0xe833e5,_0x5d24cb=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4837d1=new _0x51402b(_0x31e6c6,_0x4b153e['name'],_0x4b153e['attributes'],_0x565ca6),'u'==_0x4b153e['type']&&_0x4b153e['children'][0x0]){const _0x231d94=_0x4b153e['children'][0x0];if(_0x4837d1['render']=function(_0x22d4fb){const _0x27c271=_0x22d4fb['createElement']('div');return _0x27c271['innerHTML']=_0x231d94,_0x27c271['childNodes'][0x0];},_0x5fccd1){const _0x249ecc=new _0x90a7c6(_0x31e6c6);_0x249ecc['_appendChild'](_0x4837d1);const _0x284769=Array['from'](_0x5d24cb['viewChildrenToDom'](_0x249ecc,{'bind':!0x1})),_0x283f3a=_0x5d24cb['domDocument']['createElement']('div');_0x283f3a['append'](..._0x284769),_0x4837d1=Array['from'](_0x5d24cb['domChildrenToView'](_0x283f3a))[0x0];}}else{if('r'==_0x4b153e['type']&&_0x4b153e['children'][0x0]){const _0x3e0b58=_0x4b153e['children'][0x0];if(_0x4837d1['render']=function(_0x1d9f48){_0x1d9f48['innerHTML']=_0x3e0b58;},_0x5fccd1){const _0x2b4880=new _0x90a7c6(_0x31e6c6);_0x2b4880['_appendChild'](_0x4837d1);const _0xf5e9df=Array['from'](_0x5d24cb['viewChildrenToDom'](_0x2b4880,{'bind':!0x1})),_0x4abb29=_0x5d24cb['domDocument']['createElement']('div');_0x4abb29['append'](..._0xf5e9df);const _0x371da8=Array['from'](_0x5d24cb['domChildrenToView'](_0x4abb29));_0x371da8['length']>0x1?_0x4837d1['_appendChild'](_0x371da8):_0x4837d1=_0x371da8[0x0];}}}if(_0x4b153e['customProperties']){for(const [_0x5b60ab,_0x419ce3]of _0x4b153e['customProperties'])_0x4837d1['_setCustomProperty'](_0x5b60ab,_0x419ce3);}const _0x13255b=void 0x0===_0x4b153e['fillerOffset']?null:_0x4b153e['fillerOffset'];return null!==_0x13255b&&(_0x4837d1['getFillerOffset']=()=>_0x13255b),_0x4837d1;}}['_makeModelFromViewString'](_0x390c46){const _0x242e51=JSON['parse'](_0x390c46),_0x33ecda=this['editor']['editing']['view']['document'],_0x3d1e40=new _0x90a7c6(_0x33ecda,_0x242e51['map'](_0xc9d94c=>this['_getViewFromDiffObj'](_0xc9d94c,!0x0)));return this['editor']['data']['toModel'](_0x3d1e40);}['_removeRevisionMarkers'](_0x25428b){return(_0x25428b=_0x25428b['filter'](_0x675a7e=>!_0x675a7e['name']||'revision-start'!==_0x675a7e['name']&&'revision-end'!==_0x675a7e['name']))['forEach'](_0x26f2c5=>{'string'!=typeof _0x26f2c5&&(_0x26f2c5['children']=this['_removeRevisionMarkers'](_0x26f2c5['children']),_0x26f2c5['attributes']=_0x26f2c5['attributes']['filter'](_0x456119=>!_0x456119[0x0]['startsWith']('data-revision-')));}),_0x25428b;}}function R(_0x4f4fda,_0x1825c1,_0x2bedb8){const t=_0x4f4fda['t'];switch(_0x1825c1){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'},_0x2bedb8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2bedb8);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'';}}class h extends _0xebc3e0{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3017f2,S,$,_0x16b8a2];}constructor(_0x220edf){super(_0x220edf),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5b4d10=_0x47b252();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5b4d10},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5d659f=this['repository']['getRevision'](0x0),_0x4462a5=_0x5d659f&&null===_0x5d659f['creator']?_0x5d659f:null;if(this['_continueCurrentRevision']=!!_0x4462a5&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x49f06c=this['_source']['getCurrentRevisionId'](),_0x12535c=this['repository']['getRevision'](_0x49f06c);if(_0x12535c)this['_startingVersion']=_0x12535c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x215545=this['_source']['history']['_operations']['find'](_0x3c984f=>!_0x3c984f['_isInit']),_0x4d45e5=_0x215545?_0x215545['baseVersion']:this['_source']['history']['version'];_0x5d659f?(_0x5d659f['toVersion']<_0x4d45e5&&_0x5d659f['_update']({'toVersion':_0x4d45e5}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4462a5['id'],this['_startingVersion']=_0x4462a5['fromVersion']):(this['_startingVersion']=_0x5d659f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4d45e5,this['_continueCurrentRevision']=!0x1);}}else _0x4462a5&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4462a5['toVersion'],this['editor']['model']['document']['history']['version']),_0x4462a5['fromVersion']===_0x4462a5['toVersion']?(0x0!==_0x4462a5['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4462a5['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4462a5['id'],this['_startingVersion']=_0x4462a5['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',_0x1ee92b=>!_0x1ee92b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3424df=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x90fa92;for(const _0x3801be in _0x3424df){const _0x5ce092=_0x3801be,_0x37e872=_0x3424df[_0x5ce092];if('revisionHistoryLicenseKeyValid'==_0x37e872||'revisionHistoryLicenseKeyInvalid'==_0x37e872||'revisionHistoryLicenseKeyExpired'==_0x37e872||'revisionHistoryLicenseKeyDomainLimit'==_0x37e872||'revisionHistoryLicenseKeyNotAllowed'==_0x37e872||'revisionHistoryLicenseKeyEvaluationLimit'==_0x37e872||'revisionHistoryLicenseKeyTrialLimit'==_0x37e872||'revisionHistoryLicenseKeyUsageLimit'==_0x37e872){delete _0x3424df[_0x5ce092],_0x90fa92=_0x37e872,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x90fa92&&_0x3424df['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x90fa92&&_0x3424df['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x90fa92&&_0x3424df['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x90fa92&&_0x3424df['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x90fa92&&_0x3424df['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x90fa92&&_0x3424df['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x90fa92&&_0x3424df['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3e040f=this['repository']['getRevision'](0x0),_0x4ba281=await this['getRevisionDocumentData'](_0x3e040f),_0x324ce3=await this['getRevisionRootsAttributes'](_0x3e040f);this['_replaceEditorDataWithRevisionData'](_0x4ba281,_0x324ce3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x298f4c){this['_source']=_0x298f4c;}async['update'](){const _0x1faee6=await this['_source']['getLatestVersion']();if(_0x1faee6>this['currentRevision']['toVersion']){await this['_loadState']();const _0xc6947=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1faee6});_0xc6947['authors']=_0xc6947['authorsIds']['map'](_0x2f4f2d=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f4f2d)),this['currentRevision']['_update'](_0xc6947);}}async['saveRevision'](_0x1acd32={},_0x56a472=null){const _0x514452=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x56a472>this['currentRevision']['toVersion']&&(_0x56a472=null),null===_0x56a472&&(_0x56a472=await this['_source']['getLatestVersion']());const _0x1c64e4=this['_getFromVersion'](_0x56a472),_0xd33e62=this['buildRevisionData']({'from':_0x1c64e4,'to':_0x56a472});if(this['currentRevision']['toVersion']<_0x56a472){const _0x3d0fa6=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x56a472,'to':_0x56a472});_0x3d0fa6['authors']=[],_0x3d0fa6['authorsIds']=[],_0x3d0fa6['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3d0fa6,!0x0),delete _0x3d0fa6['authors'],_0x514452['push'](_0x3d0fa6);}_0x1acd32['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1acd32['name']=_0x1acd32['name']||null,_0x1acd32['id']=_0x1acd32['id']||_0x47b252(),_0x1acd32={..._0x1acd32,..._0xd33e62};const _0x5c3630=this['addRevisionData'](_0x1acd32);_0x514452['push'](_0x1acd32);const _0x3dad17=this['repository']['getIndex'](_0x5c3630);if(0x0!==_0x3dad17){const _0x1f9232=this['repository']['getRevision'](_0x3dad17-0x1);if(_0x1f9232['fromVersion']!==_0x56a472){const _0x6775a8=this['_revisionDataBuilder']['getData'](_0x56a472,_0x1f9232['toVersion']),_0x21e9b7={'id':_0x1f9232['id'],'diffData':_0x6775a8['diffData'],'authorsIds':_0x6775a8['authorsIds'],'authors':_0x6775a8['authorsIds']['map'](_0xfc4ef=>this['editor']['plugins']['get']('Users')['getUser'](_0xfc4ef)),'fromVersion':_0x56a472};_0x1f9232===this['currentRevision']&&(_0x21e9b7['createdAt']=new Date(_0x1acd32['createdAt']['getTime']()+0xa)),_0x1f9232['_update'](_0x21e9b7,!0x0),delete _0x21e9b7['authors'],_0x514452['push'](_0x21e9b7);}}if(this['adapter']){for(const _0x3ff6d7 of _0x514452)this['_bufferUpdate'](_0x3ff6d7['id'],_0x3ff6d7,!0x0);this['sendBufferedUpdates']();}return _0x5c3630;}['addRevisionData'](_0x374bbc){const _0x3d6453=this['repository']['createRevision'](_0x374bbc);return this['adapter']&&_0x3d6453['on']('_update',(_0x7e9b48,_0x55f3f5,_0x5a30cc)=>{_0x5a30cc||(this['_bufferUpdate'](_0x55f3f5['id'],_0x55f3f5,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3d6453,this['_findInsertionIndex'](_0x3d6453)),_0x3d6453;}async['getRevisionDocumentData'](_0x299155){return await this['_utils']['loadRevisionData'](_0x299155,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x299155);}async['getRevisionRootsAttributes'](_0x24f5db){return await this['_utils']['loadRevisionData'](_0x24f5db,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x24f5db);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x10fce2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x44146c=0x0;_0x44146c<_0x10fce2['length'];_0x44146c++){const _0x5665f7=_0x10fce2[_0x44146c];let _0x1b84c4=!0x1;for(const _0x27e27b of Object['keys'](_0x5665f7))void 0x0===_0x5665f7[_0x27e27b]?delete _0x5665f7[_0x27e27b]:'id'!==_0x27e27b&&(_0x1b84c4=!0x0);_0x1b84c4||(_0x10fce2[_0x44146c]=null);}if(_0x10fce2=_0x10fce2['filter'](_0x382f27=>null!==_0x382f27),!_0x10fce2['length'])return;for(let _0x3c2488=0x0;_0x3c2488<_0x10fce2['length'];_0x3c2488++){const _0x278679=_0x10fce2[_0x3c2488];void 0x0!==_0x278679['fromVersion']&&void 0x0===_0x278679['toVersion']&&(_0x278679['toVersion']=this['repository']['getRevision'](_0x278679['id'])['toVersion']),void 0x0!==_0x278679['toVersion']&&void 0x0===_0x278679['fromVersion']&&(_0x278679['fromVersion']=this['repository']['getRevision'](_0x278679['id'])['fromVersion']);}const _0x926496=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x10fce2,_0x926496)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x40182a=>{if(_0x40182a){for(const _0x4b1cd1 of _0x40182a)this['setRevisionData']({'id':_0x4b1cd1['id'],'createdAt':_0x4b1cd1['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2bf8fb=null,from:_0x1f858e=null,to:_0x4d6183=null}){_0x1f858e=null!==_0x1f858e?_0x1f858e:_0x2bf8fb['fromVersion'],_0x4d6183=null!==_0x4d6183?_0x4d6183:_0x2bf8fb['toVersion'];const _0xf6579f=this['_revisionDataBuilder']['getData'](_0x1f858e,_0x4d6183),_0x392961={'diffData':_0xf6579f['diffData'],'authorsIds':_0xf6579f['authorsIds'],'fromVersion':_0x1f858e,'toVersion':_0x4d6183};if(!_0x2bf8fb||_0x4d6183!==_0x2bf8fb['toVersion']){const _0x3dbf14=_0x4d6183-0x1,_0x2b5723=this['_source']['history']['getOperation'](_0x3dbf14);_0x392961['createdAt']=_0x2b5723&&_0x2b5723['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1f858e===this['_loadedStateData']['fromVersion']){for(const _0x4c85f5 of this['_loadedStateData']['authors'])_0x392961['authorsIds']['includes'](_0x4c85f5['id'])||_0x392961['authorsIds']['push'](_0x4c85f5['id']);}return _0x392961;}['_bufferUpdate'](_0x24875d,_0x2c096d,_0x1d171d){if(this['_bufferedUpdates']['has'](_0x24875d)){const _0x3d78f0=this['_bufferedUpdates']['get'](_0x24875d);_0x2c096d=_0x1d171d?{..._0x3d78f0,..._0x2c096d}:{..._0x2c096d,..._0x3d78f0};}this['_bufferedUpdates']['set'](_0x24875d,_0x2c096d);}['setRevisionData'](_0x581edd){const _0x548d15=this['repository']['getRevision'](_0x581edd['id']);if(_0x581edd['createdAt']&&(_0x581edd['createdAt']=new Date(_0x581edd['createdAt'])),_0x581edd['authorsIds']){const _0x3563dd=this['editor']['plugins']['get']('Users');_0x581edd['authors']=_0x581edd['authorsIds']['map'](_0x52d887=>_0x3563dd['getUser'](_0x52d887));}_0x548d15['_update'](_0x581edd,!0x0);}['_createInitialRevision'](_0x526793){const _0x3f93ee=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3f93ee)this['_initialRevisionId']=_0x3f93ee['id'];else{const _0x169862=!this['editor']['model']['document']['roots']['find'](_0x66aeec=>this['editor']['model']['hasContent'](_0x66aeec)),_0x5d0b1a=this['editor']['plugins']['get']('Users')['me']['id'],_0x23652a=R(this['editor']['locale'],_0x169862?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x526793,'to':_0x526793,'id':this['_initialRevisionId'],'name':_0x23652a,'creatorId':_0x5d0b1a});}}['_createCurrentRevision'](_0xcaa91f){const _0x4aafa3=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4aafa3),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xcaa91f,'to':_0xcaa91f,'id':_0x4aafa3,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3f56d9,_0x424230){let _0x70be27=this['editor']['config']['get']('initialData'),_0x511b28=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x70be27){_0x70be27={};for(const _0x2e9e98 of this['editor']['model']['document']['getRootNames']())_0x70be27[_0x2e9e98]='';}if('string'==typeof _0x70be27&&(_0x70be27={'main':_0x70be27}),void 0x0===_0x511b28){_0x511b28={};for(const _0x179b73 of this['editor']['model']['document']['getRootNames']())_0x511b28[_0x179b73]={};}let _0x564ed0=!0x1;const _0xce7f6f=Object['keys'](_0x70be27),_0x6d6ef3=Object['keys'](_0x3f56d9);for(const _0x5204e5 of _0xce7f6f){if(_0x70be27[_0x5204e5]!==_0x3f56d9[_0x5204e5]&&''!==_0x70be27[_0x5204e5]['trim']()){_0x564ed0=!0x0;break;}if(!_0x1036b1(_0x511b28[_0x5204e5],_0x424230[_0x5204e5])&&Object['keys'](_0x511b28[_0x5204e5])['length']>0x0){_0x564ed0=!0x0;break;}}_0x564ed0||(_0x564ed0=_0x6d6ef3['some'](_0x367352=>!this['editor']['model']['document']['getRoot'](_0x367352))),_0x564ed0&&_0x176086('editor-initial-data-replaced-with-revision-data',{'editorData':_0x70be27,'editorRootsAttributes':_0x511b28,'revisionData':_0x3f56d9,'revisionRootsAttributes':_0x424230}),this['editor']['config']['set']('initialData',_0x3f56d9),this['editor']['config']['set']('rootsAttributes',_0x424230);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x329ff4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x329ff4['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x6fd508){const _0x8a8a63=this['repository']['getRevisions']();_0x8a8a63['reverse']();let _0x1dd544=0x0;for(;_0x1dd544<_0x8a8a63['length'];){const _0x2eb35f=_0x8a8a63[_0x1dd544];if(_0x2eb35f===this['currentRevision']){_0x1dd544++;continue;}if(_0x2eb35f['id']===this['_initialRevisionId'])break;const _0x8c9ec7=_0x6fd508['toVersion']-_0x2eb35f['toVersion']||_0x6fd508['fromVersion']-_0x2eb35f['fromVersion'];if(_0x8c9ec7>0x0)break;if(_0x8c9ec7<0x0)_0x1dd544++;else{if(!_0x6fd508['creator']&&_0x2eb35f['creator'])break;if(_0x2eb35f['creator']||!_0x6fd508['creator']){if(_0x6fd508['createdAt']>_0x2eb35f['createdAt'])break;_0x1dd544++;}else _0x1dd544++;}}return _0x1dd544;}['_getFromVersion'](_0x37e0bb){const _0x467e41=this['repository']['getRevisions']();_0x467e41['reverse'](),_0x467e41['shift']();const _0x497a4b=_0x467e41['find'](_0x5a9349=>_0x5a9349['toVersion']<=_0x37e0bb)['toVersion'];return _0x497a4b<this['_startingVersion']?this['_startingVersion']:_0x497a4b;}['_makeRevision']({name:_0x10c718,from:_0x50aaa4,to:_0x1e4609,creatorId:_0x4ff3c4,id:_0x1323a5}){const _0x428932=this['buildRevisionData']({'from':_0x50aaa4,'to':_0x1e4609});_0x428932['name']=_0x10c718,_0x428932['creatorId']=_0x4ff3c4,_0x428932['id']=_0x1323a5;const _0x170a0b=this['addRevisionData'](_0x428932);return this['adapter']&&this['_bufferUpdate'](_0x428932['id'],_0x428932,!0x0),_0x170a0b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x152af3){this['editor']=_0x152af3,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'](_0x5dfea2){this['source']=_0x5dfea2;const _0x5238fc=new Map(),_0x3a918a=new Map(),_0x46e8b9=this['editor']['model']['document']['roots']['map'](_0x21a501=>_0x21a501['rootName']);for(const _0x2067f of _0x46e8b9){const _0x25fd32=this['editor']['model']['document']['getRoot'](_0x2067f),_0x40e412=x(_0x25fd32);_0x5238fc['set'](_0x2067f,_0x40e412),_0x3a918a['set'](_0x2067f,Object['fromEntries'](_0x25fd32['getAttributes']()));}const _0xda1d33=Array['from'](this['editor']['model']['markers'])['map'](_0x311913=>[_0x311913['name'],_0x311913['getRange']()]),_0x5ad8aa=this['source']['version'];this['_saveMetaData'](_0x5ad8aa,_0x5238fc,_0xda1d33,_0x3a918a),this['_startingRevisionId']=this['_revisionId'];const _0x35df88=new Map(),_0x536ff4=new Map();for(const _0x2a1504 of _0x46e8b9){const _0x1587ce=N(_0x2a1504);_0x35df88['set'](_0x2a1504,_0x1587ce),_0x536ff4['set'](_0x2a1504,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x35df88,[],_0x536ff4);}['getData'](_0x237a00,_0x5e2db5){if(this['_lastFrom']===_0x237a00&&this['_lastTo']<=_0x5e2db5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5e2db5,!0x0);else{if(!this['_savedMetaData']['has'](_0x237a00)){const _0x53557e=this['_getPreviousFrom'](_0x237a00);this['_calculateMetaData'](_0x53557e,_0x237a00,!0x1);}this['_calculateMetaData'](_0x237a00,_0x5e2db5,!0x0);}return this['_lastFrom']=_0x237a00,this['_lastTo']=_0x5e2db5,this['_getState']();}['loadState'](_0x3da0f1){const _0x19fc2c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3da0f1['fromVersion'],this['_lastTo']=_0x3da0f1['toVersion'];for(const _0x19ca9f in _0x3da0f1['diffData']){const _0x43fc82=_0x3da0f1['diffData'][_0x19ca9f]['attachChange'],_0x30dd14=_0x309714(_0x3da0f1['diffData'][_0x19ca9f]['attributesBefore'])||{},_0x3d4907=_0x19fc2c['_makeModelFromViewString'](_0x3da0f1['diffData'][_0x19ca9f]['deletions']);_0x3d4907['rootName']=_0x19ca9f,_0x3d4907['_isAttached']=!_0x43fc82||!_0x43fc82['isAttached'],_0x3d4907['isAttached']=()=>_0x3d4907['_isAttached'],this['_baseRoots']['set'](_0x19ca9f,_0x3d4907),this['_baseRootsAttributes']['set'](_0x19ca9f,_0x30dd14),_0x43fc82&&this['_touchedRoots']['set'](_0x19ca9f,_0x43fc82);const _0x1d7596=this['_makeIdsRoot'](_0x3d4907);this['_baseIdsRoots']['set'](_0x19ca9f,_0x1d7596);for(const [_0x5925d0,_0x18032f]of _0x3d4907['markers']){if(!_0x5925d0['startsWith']('revision:'))continue;const _0x397652=_0x5925d0['split'](':')[0x2];for(const _0x52331a of _0x18032f['getWalker']({'singleCharacters':!0x0})){const _0x1d9bf7=this['_getVidAttributeName'](_0x52331a),_0xe31789='elementEnd'==_0x52331a['type']?_0x52331a['previousPosition']['path']['slice'](0x0,-0x1):_0x52331a['previousPosition']['path'],_0x42661b=_0x1d7596['getNodeByPath'](_0xe31789)['getAttribute'](_0x1d9bf7);this['_touched']['set'](_0x42661b,{'userId':_0x397652});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1912e6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x56883d=>!this['_touched']['has'](_0x56883d));let _0x477287=0x0;const _0xb3c9f2=new Map();for(const _0x1aec16 in _0x3da0f1['diffData']){const _0x2884b4=_0x3da0f1['diffData'][_0x1aec16]['attachChange'],_0x11510d=_0x309714(_0x3da0f1['diffData'][_0x1aec16]['attributesAfter'])||{},_0x4a8626=_0x19fc2c['_makeModelFromViewString'](_0x3da0f1['diffData'][_0x1aec16]['insertions']);_0x4a8626['rootName']=_0x1aec16,_0x4a8626['_isAttached']=!_0x2884b4||_0x2884b4['isAttached'],_0x4a8626['isAttached']=()=>_0x4a8626['_isAttached'],this['_diffRoots']['set'](_0x1aec16,_0x4a8626),this['_diffRootsAttributes']['set'](_0x1aec16,_0x11510d);const _0x544f39=this['_makeIdsRoot'](_0x4a8626,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1aec16,_0x544f39),_0xb3c9f2['set'](_0x1aec16,_0x4a8626['isAttached']()?_0x11510d:{});for(const [_0x3d97f0,_0x4a00a6]of _0x4a8626['markers']){if(!_0x3d97f0['startsWith']('revision:'))continue;const _0x1aef38=_0x3d97f0['split'](':')[0x2];for(const _0x52190f of _0x4a00a6['getWalker']({'singleCharacters':!0x0})){const _0x1eeebc=this['_getVidAttributeName'](_0x52190f),_0x192ea0=this['_revisionId']++,_0x232b92='elementEnd'==_0x52190f['type']?_0x52190f['previousPosition']['path']['slice'](0x0,-0x1):_0x52190f['previousPosition']['path'];_0x544f39['getNodeByPath'](_0x232b92)['_setAttribute'](_0x1eeebc,_0x192ea0),this['_touched']['set'](_0x192ea0,{'userId':_0x1aef38});}}for(const _0xc83b49 of this['editor']['model']['createRangeIn'](_0x4a8626)['getWalker']({'singleCharacters':!0x0})){const _0x331fd3=this['_getVidAttributeName'](_0xc83b49),_0x55f740='elementEnd'==_0xc83b49['type']?_0xc83b49['previousPosition']['path']['slice'](0x0,-0x1):_0xc83b49['previousPosition']['path'],_0x30fa04=_0x544f39['getNodeByPath'](_0x55f740);_0x30fa04['getAttribute'](_0x331fd3)>0x0||_0x30fa04['_setAttribute'](_0x331fd3,_0x1912e6[_0x477287++]);}for(const [_0x52a876,_0x20aa11]of _0x4a8626['markers'])_0x52a876['startsWith']('revision:')||this['_markers']['set'](_0x52a876,_0x20aa11);}const _0x3275d5=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3275d5),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3275d5,0x1));const _0x59f533=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x59f533),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59f533,0x1));const _0x45e438=Array['from'](this['_diffRoots'])['map'](([_0x387a92,_0x205111])=>[_0x387a92,x(_0x205111)]);this['_saveMetaData'](this['_lastTo'],_0x45e438,this['_markers'],_0xb3c9f2);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1d67b2,_0x21d062,_0x485319,_0x785154){const _0x5be042=new Map(_0x21d062),_0x5718ce=new Map(_0x309714(_0x785154)),_0x506fc7=new Map();for(const [_0x20a869,_0x103220]of _0x485319)_0x506fc7['set'](_0x20a869,{'start':_0x103220['start']['clone'](),'end':_0x103220['end']['clone'](),'rootName':_0x103220['root']['rootName']});this['_savedMetaData']['set'](_0x1d67b2,{'roots':_0x5be042,'markers':_0x506fc7,'rootsAttributes':_0x5718ce});}['_removeMetaData'](_0x4ade64){this['_savedMetaData']['delete'](_0x4ade64);}['_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'](_0x5b8931,_0xc6f2dd=null){let _0x403ccc=null;_0x5b8931['is']('documentFragment')||(_0x403ccc=new _0x38b79f(_0x5b8931['name'],{'vid_start':null===_0xc6f2dd?this['_revisionId']++:_0xc6f2dd++}));const _0x56f165=[];for(const _0x2f7328 of _0x5b8931['getChildren']())if(_0x2f7328['is']('element')){_0x56f165['push'](this['_makeIdsRoot'](_0x2f7328,_0xc6f2dd));const _0x492f9e=_0x56f165[_0x56f165['length']-0x1];null!==_0xc6f2dd&&(_0xc6f2dd=_0x492f9e['is']('element','$text')?_0x492f9e['getAttribute']('vid')+0x1:_0x492f9e['getAttribute']('vid_end')+0x1);}else{for(let _0x3bf340=0x0;_0x3bf340<_0x2f7328['offsetSize'];_0x3bf340++)_0x56f165['push'](new _0x38b79f('$text',{'vid':null===_0xc6f2dd?this['_revisionId']++:_0xc6f2dd++}));}if(_0x5b8931['is']('documentFragment')){const _0x80912a=N(_0x5b8931['rootName']);return _0x80912a['_insertChild'](0x0,_0x56f165),_0x80912a;}return _0x403ccc['_setAttribute']('vid_end',null===_0xc6f2dd?this['_revisionId']++:_0xc6f2dd++),_0x403ccc['_insertChild'](0x0,_0x56f165),_0x403ccc;}['_calculateMetaData'](_0x31f7cf,_0xfc1b50,_0x597151){this['_reset']();const {roots:_0x2be00b,markers:_0x5ebe11,rootsAttributes:_0x283160}=this['_savedMetaData']['get'](_0x31f7cf);this['_baseRoots']=new Map(_0x2be00b),this['_baseRootsAttributes']=new Map(_0x309714(_0x283160));for(const [_0x5a4d6d,_0x529c9a]of this['_baseRoots'])if('$graveyard'!==_0x5a4d6d&&(this['_diffRoots']['set'](_0x5a4d6d,x(_0x529c9a)),this['_diffRootsAttributes']=new Map(_0x309714(_0x283160)),_0x597151)){const _0x156f41=this['_revisionId'];this['_idsRoots']['set'](_0x5a4d6d,this['_makeIdsRoot'](_0x529c9a)),this['_baseIdsRoots']['set'](_0x5a4d6d,this['_makeIdsRoot'](_0x529c9a,_0x156f41));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x597151&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x533d64,_0x684c12]of _0x5ebe11){const _0x54f37d=this['_baseRoots']['get'](_0x684c12['rootName']),_0x325203=this['_diffRoots']['get'](_0x684c12['rootName']),_0x56e868=new _0x2eabcc(this['_fixPosition'](_0x684c12['start'],_0x54f37d),this['_fixPosition'](_0x684c12['end'],_0x54f37d)),_0x4782e0=this['_fixRange'](_0x56e868,_0x325203);_0x54f37d['markers']['set'](_0x533d64,_0x56e868),this['_markers']['set'](_0x533d64,_0x4782e0);}this['_applyOperations'](_0x31f7cf,_0xfc1b50,_0x597151);}['_applyOperations'](_0x5dae4f,_0x222270,_0x5d94a8){for(const _0x55aff6 of this['source']['getOperations'](_0x5dae4f,_0x222270))this['_handleOperation'](_0x55aff6,_0x5d94a8);for(const _0x5bc3f7 of this['_diffRoots']['values']())_0x5bc3f7['markers']['clear']();for(const [_0x42fe50,_0x5a878b]of this['_markers']){this['_diffRoots']['get'](_0x5a878b['root']['rootName'])['markers']['set'](_0x42fe50,_0x5a878b['clone']());}const _0x27dba5=new Map(),_0x1796f1=new Map();for(const [_0x26897a,_0x1111dd]of this['_diffRoots'])_0x27dba5['set'](_0x26897a,x(_0x1111dd)),_0x1796f1['set'](_0x26897a,this['_diffRootsAttributes']['get'](_0x26897a));this['_saveMetaData'](_0x222270,_0x27dba5,this['_markers'],_0x1796f1);}['_getPreviousFrom'](_0x38a466){const _0x5433b5=Array['from'](this['_savedMetaData']['keys']());_0x5433b5['sort']((_0x4c7a78,_0x2947a4)=>_0x4c7a78-_0x2947a4),_0x5433b5['reverse']();for(const _0x79a8a1 of _0x5433b5)if(_0x79a8a1<_0x38a466)return _0x79a8a1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5a9de1,_0x47d389){const _0xa5a072=Array['from'](_0x47d389['markers'])['map'](([_0x49de34,_0x2c8679])=>[_0x49de34,this['_fixRange'](_0x2c8679,_0x5a9de1)]);_0x5a9de1['markers']=new Map(_0xa5a072);}['_transformMarkers'](_0x318766){for(const _0x5b1871 of this['_markers']['values']()){const _0x42f507=_0x5b1871['getTransformedByOperation'](_0x318766),_0x4df8fa=_0x2eabcc['_createFromRanges'](_0x42f507);_0x5b1871['start']=_0x4df8fa['start'],_0x5b1871['end']=_0x4df8fa['end'];}}['_handleOperation'](_0x1863fc,_0x39ddb8){if('addRoot'!=_0x1863fc['type']&&'detachRoot'!=_0x1863fc['type']){if('insert'==_0x1863fc['type']){const _0x45f316=_0x1863fc['position']['root']['rootName'];this['_diffRoots']['has'](_0x45f316)||(this['_diffRoots']['set'](_0x45f316,N(_0x45f316,!0x0)),this['_diffRootsAttributes']['set'](_0x45f316,{}),_0x39ddb8&&this['_idsRoots']['set'](_0x45f316,N(_0x45f316,!0x0)));}else{if('addRootAttribute'==_0x1863fc['type']||'removeRootAttribute'==_0x1863fc['type']||'changeRootAttribute'==_0x1863fc['type'])return void this['_handleRootAttributeOperation'](_0x1863fc);'marker'==_0x1863fc['type']&&this['_handleMarkerOperation'](_0x1863fc);}if('marker'!==_0x1863fc['type']){const _0x30ab14=this['_cloneOperation'](_0x1863fc,this['_diffRoots']);_0x30ab14['_execute'](),this['_transformMarkers'](_0x30ab14);}if(_0x39ddb8)switch(_0x1863fc['type']){case'insert':this['_handleInsertOperation'](_0x1863fc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1863fc);break;case'merge':this['_handleMergeOperation'](_0x1863fc);break;case'split':this['_handleSplitOperation'](_0x1863fc);}}else this['_handleRootOperation'](_0x1863fc,_0x39ddb8);}['_cloneOperation'](_0x1d7941,_0x1b3b6d){const _0x2cfab4=_0x1d7941['clone']();return _0x2cfab4['_authorId']=_0x1d7941['_authorId'],this['_fixOperation'](_0x2cfab4,_0x1b3b6d),_0x2cfab4;}['_getBaseVids'](_0x468a9f){return _0x468a9f['map'](_0x5a4066=>{const _0x406432=this['_getVidAttributeName'](_0x5a4066);return Number(_0x5a4066['item']['getAttribute'](_0x406432));});}['_generateTape'](_0x33003f,_0x2d3514){if(_0x33003f['is']('element','$text'))_0x2d3514['push']({'item':_0x33003f,'type':'text'});else{_0x33003f['is']('element')&&_0x2d3514['push']({'item':_0x33003f,'type':'elementStart'});for(const _0x746c29 of _0x33003f['getChildren']())this['_generateTape'](_0x746c29,_0x2d3514);_0x33003f['is']('element')&&_0x2d3514['push']({'item':_0x33003f,'type':'elementEnd'});}return _0x2d3514;}['_getState'](){const _0x436a0b=new Map(this['_touched']),_0x321dc1=new Map(_0x436a0b),_0x232362=new Map(),_0x527d67={'insertions':{},'deletions':{}},_0x4a0280={'insertions':{},'deletions':{}},_0x56b9ea=new Map(),_0x9e7a34=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x9e7a34['delete']('$graveyard');for(const _0x21317e of _0x9e7a34){const _0x211f4d=this['_diffRoots']['get'](_0x21317e)||N(_0x21317e,!0x1),_0x33aecf=this['_baseRoots']['get'](_0x21317e)||N(_0x21317e,!0x1);_0x211f4d['isAttached']()||_0x33aecf['isAttached']()?(_0x527d67['insertions'][_0x21317e]=x(_0x211f4d),_0x527d67['deletions'][_0x21317e]=x(_0x33aecf),this['_copyMarkers'](_0x527d67['deletions'][_0x21317e],_0x33aecf),this['_copyMarkers'](_0x527d67['insertions'][_0x21317e],_0x211f4d),_0x4a0280['insertions'][_0x21317e]=this['_generateTape'](this['_idsRoots']['get'](_0x21317e),[]),_0x4a0280['deletions'][_0x21317e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x21317e)||N(_0x21317e,!0x1),[])):_0x9e7a34['delete'](_0x21317e);}for(const _0x28d4c8 of _0x9e7a34){const _0x156cec=_0x4a0280['insertions'][_0x28d4c8];for(const _0xec88bc of _0x156cec){const _0x15b8b1=this['_getVidAttributeName'](_0xec88bc),_0x5be2b7=_0xec88bc['item']['getAttribute'](_0x15b8b1);_0x321dc1['delete'](_0x5be2b7),_0x5be2b7>=this['_startingRevisionId']&&_0x232362['set'](_0x5be2b7,_0x436a0b['get'](_0x5be2b7));}}for(const _0x25c97c of _0x9e7a34){const _0x32d6ea=_0x4a0280['insertions'][_0x25c97c],_0x31c643=this['_getBaseVids'](_0x4a0280['deletions'][_0x25c97c]);let _0x2945ba=0x0;for(const _0x44389c of _0x32d6ea){const _0x1d9601=this['_getVidAttributeName'](_0x44389c),_0x2435ac=_0x44389c['item']['getAttribute'](_0x1d9601);if(!_0x232362['has'](_0x2435ac)&&!_0x56b9ea['has'](_0x2435ac)){if(_0x321dc1['has'](_0x2435ac))_0x2945ba++;else{if(_0x2435ac!=_0x31c643[_0x2945ba]){const _0x4beb9f=_0x436a0b['get'](_0x2435ac)||_0x436a0b['get'](_0x31c643[_0x2945ba]);for(;_0x2435ac!=_0x31c643[_0x2945ba];)_0x321dc1['has'](_0x31c643[_0x2945ba])||(_0x56b9ea['set'](_0x31c643[_0x2945ba],_0x4beb9f),_0x436a0b['set'](_0x31c643[_0x2945ba],_0x4beb9f)),_0x2945ba++;}_0x2945ba++;}}}}for(const _0x331d69 of _0x9e7a34){const _0x3b0768=_0x4a0280['insertions'][_0x331d69];for(const _0x1df034 of _0x3b0768){const _0x2602cd=this['_getVidAttributeName'](_0x1df034),_0x2eafcd=_0x1df034['item']['getAttribute'](_0x2602cd);if(_0x56b9ea['has'](_0x2eafcd)){const _0x17ff04=_0x56b9ea['get'](_0x2eafcd);_0x321dc1['has'](_0x2eafcd)||_0x321dc1['set'](_0x2eafcd,{..._0x17ff04}),_0x232362['set'](_0x2eafcd,{..._0x17ff04});}}}for(const _0x407192 of _0x321dc1['keys']())_0x407192>=this['_startingRevisionId']&&_0x321dc1['delete'](_0x407192);const _0x41fad3=new Map();for(const _0x3a98f4 of _0x9e7a34){let _0x2de0d4=_0x4a0280['insertions'][_0x3a98f4];for(const _0x2b4808 of _0x2de0d4)if(_0x2b4808['item']['is']('element','tableCell')){const _0x1f4e11=this['_getVidAttributeName'](_0x2b4808),_0x4faf90=_0x2b4808['item']['getAttribute'](_0x1f4e11);if(_0x232362['has'](_0x4faf90)){const _0x3f3f27=_0x2b4808['item']['parent']['parent']['getAttribute']('vid_start'),_0x1101a2=_0x41fad3['get'](_0x3f3f27)||new Set();_0x1101a2['add'](_0x232362['get'](_0x4faf90)['userId']),_0x41fad3['set'](_0x3f3f27,_0x1101a2);}}_0x2de0d4=_0x4a0280['deletions'][_0x3a98f4];for(const _0x43694a of _0x2de0d4)if(_0x43694a['item']['is']('element','tableCell')){const _0x3c0212=this['_getVidAttributeName'](_0x43694a),_0x2822c6=_0x43694a['item']['getAttribute'](_0x3c0212);if(_0x321dc1['has'](_0x2822c6)){const _0x2563b7=_0x43694a['item']['parent']['parent']['getAttribute']('vid_start'),_0x4dd17=_0x41fad3['get'](_0x2563b7)||new Set();_0x4dd17['add'](_0x321dc1['get'](_0x2822c6)['userId']),_0x41fad3['set'](_0x2563b7,_0x4dd17);}}for(const _0x3656eb of _0x41fad3['keys']())(_0x232362['has'](_0x3656eb)||_0x321dc1['has'](_0x3656eb))&&_0x41fad3['delete'](_0x3656eb);}for(const _0x243d65 of _0x9e7a34){const _0x4c1408=_0x4a0280['insertions'][_0x243d65];let _0x50e7b1=null,_0x465934=null;for(const _0x229da9 of _0x4c1408){const _0x380b9d=this['_getVidAttributeName'](_0x229da9),_0x7332c=_0x229da9['item']['getAttribute'](_0x380b9d),_0xf89f22=_0x41fad3['get'](_0x7332c);_0xf89f22&&'elementStart'==_0x229da9['type']&&(_0x50e7b1=Array['from'](_0xf89f22)[0x0],_0x465934=_0x229da9['item']['getAttribute']('vid_end')),_0x50e7b1&&(_0x321dc1['set'](_0x7332c,{'userId':_0x50e7b1}),_0x232362['set'](_0x7332c,{'userId':_0x50e7b1})),_0x7332c==_0x465934&&(_0x50e7b1=null,_0x465934=null);}}const _0x5c33dc={},_0x4cce4a=new Set();for(const _0x324a7d of _0x9e7a34){const _0x5b8b74=_0x527d67['deletions'][_0x324a7d],_0x2f0218=_0x527d67['insertions'][_0x324a7d];for(const {userId:_0x1a96f8}of this['_touchedMarkers']['values']())null!==_0x1a96f8&&_0x4cce4a['add'](_0x1a96f8);for(const {userId:_0x79055d}of this['_touchedRoots']['values']())null!==_0x79055d&&_0x4cce4a['add'](_0x79055d);this['_markChanges'](_0x2f0218,_0x4a0280['insertions'][_0x324a7d],_0x232362,'insertion',_0x4cce4a),this['_markChanges'](_0x5b8b74,_0x4a0280['deletions'][_0x324a7d],_0x321dc1,'deletion',_0x4cce4a),_0x5c33dc[_0x324a7d]={'insertions':this['_prepareViewToSave'](_0x2f0218),'deletions':this['_prepareViewToSave'](_0x5b8b74),'attachChange':this['_touchedRoots']['get'](_0x324a7d)||null,'attributesBefore':_0x309714(this['_baseRootsAttributes']['get'](_0x324a7d))||{},'attributesAfter':_0x309714(this['_diffRootsAttributes']['get'](_0x324a7d))};}return{'diffData':_0x5c33dc,'authorsIds':Array['from'](_0x4cce4a)};}['_processRootBeforeSave'](_0x560983){for(const [,_0x4bcd0f]of _0x560983['markers']){const _0x2e994c=_0x4bcd0f['start']['getAncestors']()['filter'](_0x1060ea=>'tableCell'==_0x1060ea['name']);for(const _0x30c36f of _0x2e994c)0x1==_0x30c36f['childCount']&&_0x30c36f['getChild'](0x0)['is']('element','paragraph')&&_0x30c36f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x204a16){this['_processRootBeforeSave'](_0x204a16);const _0x4fc919=this['editor']['data']['toView'](_0x204a16,{}),_0x4e9530=Array['from'](_0x4fc919['getChildren']())['map'](_0xa2bf1b=>this['_getViewJson'](_0xa2bf1b));return JSON['stringify'](_0x4e9530);}['_getViewJson'](_0x4d1cca){if(_0x4d1cca['is']('$text'))return _0x4d1cca['data'];{const _0x4e4b09=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x181018=_0x4d1cca,_0x4aef91=this['editor']['data']['htmlProcessor']['domConverter'],_0x4023f0={'type':_0x4e4b09['_getTypeCharForViewElement'](_0x181018),'name':_0x181018['name'],'attributes':Array['from'](_0x181018['getAttributes']()),'children':Array['from'](_0x181018['getChildren']())['map'](_0x2d1ddd=>this['_getViewJson'](_0x2d1ddd))};if(_0x4d1cca['is']('uiElement')&&'$comment'!=_0x4d1cca['name']){const _0x3e9945=_0x4d1cca['render'](_0x4aef91['domDocument'],_0x4aef91);_0x4023f0['children']['push'](_0x3e9945['outerHTML']);}else{if(_0x4d1cca['is']('rawElement')){const _0x50a677=_0x4aef91['domDocument']['createElement'](_0x181018['name']);_0x4d1cca['render'](_0x50a677,_0x4aef91),_0x4023f0['children']['push'](_0x50a677['innerHTML']);}}const _0x3cfb8e=Array['from'](_0x181018['getCustomProperties']());_0x3cfb8e['length']>0x0&&(_0x4023f0['customProperties']=_0x3cfb8e);const _0x9ee18d=_0x181018['getFillerOffset']();return null!==_0x9ee18d&&(_0x4023f0['fillerOffset']=_0x9ee18d),_0x4023f0;}}['_markChanges'](_0x47bc59,_0x189fc2,_0x48c59b,_0x2ac294,_0x553c31){let _0x4d7a4f=null,_0x2b3bd4=null,_0x2f12c1=0x0;const _0xd36796=this['editor']['model'];for(let _0x4afb4e=0x0;_0x4afb4e<_0x189fc2['length'];_0x4afb4e++){const _0xf8638a=this['_getVidAttributeName'](_0x189fc2[_0x4afb4e]),_0x13f22e=_0x189fc2[_0x4afb4e]['item']['getAttribute'](_0xf8638a),_0x45a7db=_0x48c59b['get'](_0x13f22e),_0x2f587f=_0x4afb4e==_0x189fc2['length']-0x1;(!_0x4d7a4f&&_0x45a7db&&(_0x4d7a4f=_0x45a7db,_0x2b3bd4=_0x189fc2[_0x4afb4e]),_0x4d7a4f&&(!_0x45a7db||_0x45a7db['userId']!=_0x4d7a4f['userId']))&&(_0xb9855b(_0x45a7db,P(_0x2b3bd4,_0x47bc59,_0xd36796),P(_0x189fc2[_0x4afb4e],_0x47bc59,_0xd36796)),_0x4d7a4f=_0x45a7db||null,_0x2b3bd4=_0x45a7db?_0x189fc2[_0x4afb4e]:null),_0x4d7a4f&&_0x2f587f&&_0xb9855b(_0x45a7db,P(_0x2b3bd4,_0x47bc59,_0xd36796),V(_0x189fc2[_0x4afb4e],_0x47bc59,_0xd36796));}function _0xb9855b(_0x1b0692,_0x498b69,_0x2974f7){const _0x197d83=_0x4d7a4f['userId'],_0x59f3b8='revision:'+_0x2ac294+':'+_0x197d83+':'+_0x2f12c1++,_0x4470d2=_0xd36796['createRange'](_0x498b69,_0x2974f7);_0x47bc59['markers']['set'](_0x59f3b8,_0x4470d2),null!==_0x197d83&&_0x553c31['add'](_0x197d83);}}['_getVidAttributeName'](_0x11b180){switch(_0x11b180['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xea098b,_0xf13dcc){_0xea098b['baseVersion']=null;for(const _0x208bdb in _0xea098b){const _0x5383e6=_0xea098b[_0x208bdb];if(_0x5383e6 instanceof _0x54a248){const _0x23c9d6=_0xf13dcc['get'](_0x5383e6['root']['rootName']);_0xea098b[_0x208bdb]=this['_fixPosition'](_0x5383e6,_0x23c9d6);}if(_0x5383e6 instanceof _0x2eabcc){const _0x18b6ce=_0xf13dcc['get'](_0x5383e6['root']['rootName']);_0xea098b[_0x208bdb]=this['_fixRange'](_0x5383e6,_0x18b6ce);}'root'===_0x208bdb&&(_0xea098b['root']=_0xf13dcc['get'](_0xea098b['root']['rootName']));}}['_fixRange'](_0x5516e8,_0x5de5cd){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5516e8['start'],_0x5de5cd),this['_fixPosition'](_0x5516e8['end'],_0x5de5cd));}['_fixPosition'](_0x2fad9d,_0x2c7f04){return this['editor']['model']['createPositionFromPath'](_0x2c7f04,_0x2fad9d['path'],_0x2fad9d['stickiness']);}['_handleInsertOperation'](_0x2dcadf){const _0x1f318a=this['_idsRoots']['get'](_0x2dcadf['position']['root']['rootName']),_0x216ee0=this['_fixPosition'](_0x2dcadf['position'],_0x1f318a),_0x3ff395=null===_0x2dcadf['_authorId']?null:_0x2dcadf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ecdab=_0x216ee0['parent'],_0x1da54b=this['_revisionId'],_0x509681=[];for(const _0x45afcb of _0x2dcadf['nodes'])if(_0x45afcb['is']('element'))_0x509681['push'](this['_makeIdsRoot'](_0x45afcb));else{for(let _0x12dec2=0x0;_0x12dec2<_0x45afcb['offsetSize'];_0x12dec2++)_0x509681['push'](new _0x38b79f('$text',{'vid':this['_revisionId']++}));}const _0x443b37=this['_revisionId'];for(let _0x16cba4=_0x1da54b;_0x16cba4<_0x443b37;_0x16cba4++)this['_touched']['set'](_0x16cba4,{'userId':_0x3ff395});_0x5ecdab['_insertChild'](_0x216ee0['offset'],_0x509681);}['_handleMoveOperation'](_0x434c98){(_0x434c98=this['_cloneOperation'](_0x434c98,this['_idsRoots']))['_execute']();const _0x48aabe=null===_0x434c98['_authorId']?null:_0x434c98['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x321a6c=_0x434c98['getMovedRangeStart'](),_0x157889=_0x321a6c['parent'],_0x58c457=_0x321a6c['offset'];!function _0x35bc05(_0x868c73,_0x1ff6db,_0x2f07af,_0x227a2a){for(let _0x4dc0d8=_0x2f07af;_0x4dc0d8<_0x227a2a;_0x4dc0d8++){const _0x4f63c=_0x1ff6db['getChild'](_0x4dc0d8);_0x4f63c['is']('element','$text')?_0x868c73['set'](_0x4f63c['getAttribute']('vid'),{'userId':_0x48aabe}):(_0x868c73['set'](_0x4f63c['getAttribute']('vid_start'),{'userId':_0x48aabe}),_0x35bc05(_0x868c73,_0x4f63c,0x0,_0x4f63c['childCount']),_0x868c73['set'](_0x4f63c['getAttribute']('vid_end'),{'userId':_0x48aabe}));}}(this['_touched'],_0x157889,_0x58c457,_0x58c457+_0x434c98['howMany']);}['_handleMergeOperation'](_0x43a909){const _0x3f94cd=null===(_0x43a909=this['_cloneOperation'](_0x43a909,this['_idsRoots']))['_authorId']?null:_0x43a909['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x506447=_0x43a909['targetPosition']['parent'],_0x3ed245=_0x43a909['sourcePosition']['parent'],_0x47e82d=_0x506447['getAttribute']('vid_end'),_0x169699=_0x3ed245['getAttribute']('vid_start');_0x506447['_setAttribute']('vid_end',_0x3ed245['getAttribute']('vid_end')),_0x3ed245['_setAttribute']('vid_end',_0x47e82d),this['_touched']['set'](_0x169699,{'userId':_0x3f94cd}),this['_touched']['set'](_0x47e82d,{'userId':_0x3f94cd}),_0x43a909['_execute']();}['_handleSplitOperation'](_0x4607df){const _0x3e634e=null===(_0x4607df=this['_cloneOperation'](_0x4607df,this['_idsRoots']))['_authorId']?null:_0x4607df['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3eb67a=_0x4607df['graveyardPosition'],_0x5c87d6=_0x4607df['splitPosition']['parent'];_0x4607df['_execute']();const _0x534aaa=_0x5c87d6['getAttribute']('vid_end'),_0x38a8da=_0x4607df['insertionPosition']['nodeAfter'];if(_0x3eb67a){const _0x2651ed=_0x38a8da['getAttribute']('vid_end'),_0x5f3744=_0x5c87d6['getAttribute']('vid_end');_0x5c87d6['_setAttribute']('vid_end',_0x2651ed),_0x38a8da['_setAttribute']('vid_end',_0x5f3744),this['_touched']['set'](_0x5c87d6['getAttribute']('vid_end'),{'userId':_0x3e634e}),this['_touched']['set'](_0x38a8da['getAttribute']('vid_start'),{'userId':_0x3e634e});}else{const _0x3600af=this['_revisionId']++,_0x226e05=this['_revisionId']++;_0x5c87d6['_setAttribute']('vid_end',_0x3600af),_0x38a8da['_setAttribute']('vid_start',_0x226e05),_0x38a8da['_setAttribute']('vid_end',_0x534aaa),this['_touched']['set'](_0x3600af,{'userId':_0x3e634e}),this['_touched']['set'](_0x226e05,{'userId':_0x3e634e});}}['_handleMarkerOperation'](_0xbc25be){if(!_0xbc25be['affectsData'])return;const _0x198bfa=(_0xbc25be=this['_cloneOperation'](_0xbc25be,this['_diffRoots']))['oldRange']?_0xbc25be['oldRange']['root']:null,_0x539a58=_0xbc25be['newRange']?_0xbc25be['newRange']['root']:null;_0x198bfa&&this['_markers']['delete'](_0xbc25be['name']),_0x539a58&&this['_markers']['set'](_0xbc25be['name'],_0xbc25be['newRange']['clone']());const _0x5afbb3=null===_0xbc25be['_authorId']?null:_0xbc25be['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51417b=_0xbc25be['name'];if(!this['_touchedMarkers']['has'](_0x51417b))return void this['_touchedMarkers']['set'](_0x51417b,{'range':_0xbc25be['oldRange'],'userId':_0x5afbb3});const _0x3a413f=this['_touchedMarkers']['get'](_0x51417b),_0x818f39=_0x3a413f['range'],_0x298547=_0xbc25be['newRange'];null==_0x818f39&&null==_0x298547||_0x818f39&&_0x298547&&_0x818f39['isEqual'](_0x298547)?this['_touchedMarkers']['delete'](_0xbc25be['name']):_0x3a413f['userId']=_0x5afbb3;}['_handleRootOperation'](_0x8f34d7,_0x1ddaff){this['_diffRoots']['has'](_0x8f34d7['rootName'])?this['_diffRoots']['get'](_0x8f34d7['rootName'])['_isAttached']=_0x8f34d7['isAdd']:(this['_diffRoots']['set'](_0x8f34d7['rootName'],N(_0x8f34d7['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x8f34d7['rootName'],{}),_0x1ddaff&&this['_idsRoots']['set'](_0x8f34d7['rootName'],N(_0x8f34d7['rootName'],!0x0)));const _0x16ba47=null===_0x8f34d7['_authorId']?null:_0x8f34d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ff85e=this['_touchedRoots']['get'](_0x8f34d7['rootName']);_0x2ff85e&&_0x2ff85e['userId']===_0x16ba47?this['_touchedRoots']['delete'](_0x8f34d7['rootName']):this['_touchedRoots']['set'](_0x8f34d7['rootName'],{'userId':_0x16ba47,'isAttached':_0x8f34d7['isAdd']});}['_handleRootAttributeOperation'](_0x3f30c9){const _0x5e5bef=this['_diffRootsAttributes']['get'](_0x3f30c9['root']['rootName']);null===_0x3f30c9['newValue']?delete _0x5e5bef[_0x3f30c9['key']]:_0x5e5bef[_0x3f30c9['key']]=_0x3f30c9['newValue'];}}function x(_0x2f0f78){const _0x2c0628=N(_0x2f0f78['rootName'],_0x2f0f78['isAttached']());for(const _0x2ae406 of _0x2f0f78['getChildren']()){const _0x4cbe5d=_0x2ae406['_clone'](!0x0);_0x2c0628['_appendChild'](_0x4cbe5d);}return _0x2c0628;}function N(_0x250a4e,_0x1bb9ee=!0x0){const _0x385e83=new _0x411e92();return _0x385e83['rootName']=_0x250a4e,_0x385e83['_isAttached']=_0x1bb9ee,_0x385e83['isAttached']=()=>_0x385e83['_isAttached'],_0x385e83;}function P(_0x4a56f8,_0x1d09b3,_0x1e4e4f){const _0x2dc863='elementEnd'==_0x4a56f8['type']?_0x1e4e4f['createPositionAt'](_0x4a56f8['item'],'end'):_0x1e4e4f['createPositionBefore'](_0x4a56f8['item']);return _0x1e4e4f['createPositionFromPath'](_0x1d09b3,_0x2dc863['path'],_0x2dc863['stickiness']);}function V(_0x255a6f,_0x24e5d6,_0x1ea7d5){const _0x4747d9='elementStart'==_0x255a6f['type']?_0x1ea7d5['createPositionAt'](_0x255a6f['item'],0x0):_0x1ea7d5['createPositionAfter'](_0x255a6f['item']);return _0x1ea7d5['createPositionFromPath'](_0x24e5d6,_0x4747d9['path'],_0x4747d9['stickiness']);}class he extends/* #__PURE__ -- @preserve */
25
+ _0x1e1199(_0x3001a4){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x10c16c,_0x555fa4){super(_0x10c16c),this['focusTracker']=new _0x312bee(),this['keystrokes']=new _0x513db7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x555fa4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x2f895c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x48d3c8=_0x4ad871=>_0x4ad871['stopPropagation']();this['keystrokes']['set']('arrowright',_0x48d3c8),this['keystrokes']['set']('arrowleft',_0x48d3c8),this['keystrokes']['set']('arrowup',_0x48d3c8),this['keystrokes']['set']('arrowdown',_0x48d3c8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x563e0c){this['revisionNameInputView']['fieldView']['element']['value']=_0x563e0c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3bbe58){const _0x2d7558=new ti(this['locale'],_0x20b885),_0x287015=_0x2d7558['fieldView'];_0x287015['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x10e713=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3bbe58&&(_0x10e713+='\x20('+R(this['locale'],'optional')+')'),(_0x2d7558['label']=_0x10e713,_0x287015['on']('input',()=>{this['revisionNameInputValue']=_0x287015['element']['value']['trim']();}),_0x2d7558);}}class v extends _0xebc3e0{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x54203e=this['editor'],_0x158253=_0x54203e['plugins']['get']('RevisionTracker');_0x54203e['ui']['componentFactory']['add']('revisionHistory',_0x28f8f5=>{const _0x2a1721=_0x4b4187(_0x28f8f5),_0x353d84=_0x2a1721['panelView']['children'],_0xad87a2=new _0x3f98b4(_0x28f8f5),_0x1a82fc=new _0x3c2a08(_0x28f8f5),_0x518d9c=new _0x462f0b(_0x28f8f5),_0x3dc9a0=new _0x3c2a08(_0x28f8f5),_0x27f80d=new _0x462f0b(_0x28f8f5);return _0x2a1721['bind']('isEnabled')['to'](_0x158253,'isReady',_0x158253,'isEnabled',_0x54203e,'isReadOnly',(_0x38562a,_0x26a1f5,_0x4ab28a)=>_0x38562a&&_0x26a1f5&&!_0x4ab28a),_0x2a1721['buttonView']['set']({'icon':_0x44948c,'label':R(_0x28f8f5,'Revision\x20history'),'tooltip':!0x0}),_0x518d9c['set']({'label':R(_0x28f8f5,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x518d9c['bind']('isEnabled')['to'](_0x158253,'isReady',_0x158253,'isEnabled',_0x54203e,'isReadOnly',(_0x23e60d,_0x5d2e82,_0x200fe7)=>_0x23e60d&&_0x5d2e82&&!_0x200fe7),_0x518d9c['on']('execute',()=>this['_showDialog']()),_0x27f80d['set']({'label':R(_0x28f8f5,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x27f80d['bind']('isEnabled')['to'](_0x158253,'isReady',_0x54203e,'isReadOnly',(_0x5c3323,_0x45c750)=>_0x5c3323&&!_0x45c750),_0x27f80d['on']('execute',()=>{_0x54203e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2a1721['isOpen']=!0x1,_0x54203e['editing']['view']['focus']();}),_0x1a82fc['children']['add'](_0x518d9c),_0x3dc9a0['children']['add'](_0x27f80d),_0xad87a2['role']='menu',_0xad87a2['items']['addMany']([_0x1a82fc,_0x3dc9a0]),_0x353d84['add'](_0xad87a2),_0x2a1721;}),_0x54203e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x283b78=this['editor'],_0x180794=_0x283b78['locale'],_0x1a7891=new _0x36176b(_0x180794),_0x4210b9=new _0x3a18dc(_0x180794);_0x1a7891['buttonView']['set']({'icon':_0x44948c,'label':R(_0x180794,'Revision\x20history')});const _0x108930=new _0x39747e(_0x180794,_0x1a7891),_0x29151e=new _0x58682a(_0x180794);_0x29151e['set']({'label':R(_0x180794,'Save\x20current\x20revision')}),_0x29151e['delegate']('execute')['to'](_0x1a7891),_0x29151e['on']('execute',()=>{this['_showDialog']();}),_0x108930['children']['add'](_0x29151e),_0x4210b9['items']['add'](_0x108930);const _0x1d4456=new _0x39747e(_0x180794,_0x1a7891),_0x324dd2=new _0x58682a(_0x180794);return _0x324dd2['set']({'label':R(_0x180794,'Open\x20revision\x20history')}),_0x324dd2['delegate']('execute')['to'](_0x1a7891),_0x324dd2['on']('execute',()=>{_0x283b78['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1d4456['children']['add'](_0x324dd2),_0x4210b9['items']['add'](_0x1d4456),_0x1a7891['panelView']['children']['add'](_0x4210b9),_0x1a7891;}['_showDialog'](){const _0x114ef7=this['editor'],_0x25efad=_0x114ef7['locale'],_0xdd3344=_0x114ef7['plugins']['get']('Dialog'),_0x2e8df8=_0x114ef7['plugins']['get']('RevisionTracker');function _0x21bfa1(_0x31e662){_0x114ef7['config']['get']('revisionHistory.requireRevisionName')&&''===_0x31e662['revisionName']?_0x31e662['revisionNameInputView']['errorText']=R(_0x25efad,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x114ef7['plugins']['get'](h)['saveRevision']({'name':_0x31e662['revisionName']}),_0xdd3344['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x21bfa1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xdd3344['show']({'id':'revisionSave','title':R(_0x25efad,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x114ef7['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xdd3344['hide']()},{'label':R(_0x114ef7['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5da9c4){_0x5da9c4['bind']('isEnabled')['to'](_0x2e8df8,'isReady',_0x2e8df8,'isEnabled',_0x114ef7,'isReadOnly',(_0x5db452,_0x36147c,_0x1e21e5)=>_0x5db452&&_0x36147c&&!_0x1e21e5);},'onExecute':()=>_0x21bfa1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x12bd9e=this['editor'],_0x1f272d=_0x12bd9e['locale'];this['_saveRevisionFormView']=new he(_0x1f272d,_0x12bd9e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x3001a4{['changeId'];['_model'];constructor(_0x252f55,_0x19731a){super(_0x252f55),this['_model']=_0x19731a,this['changeId']=_0x19731a['id'];const _0x258b79=this['bindTemplate'],_0x43ad23=R(_0x252f55,_0x19731a['data']['isSuggestion']?'Suggested\x20by':'add'==_0x19731a['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x19731a['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x258b79['to']('type',_0x56a7cf=>'ck-revision-change__'+_0x56a7cf)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x43ad23}]},{'text':'\x20'+_0x19731a['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
+ _0x2e7ad6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3ca228){super(),this['id']=_0x3ca228['id']||_0x47b252(),this['author']=_0x3ca228['author'],this['type']=_0x3ca228['type'],this['data']=_0x3ca228['data']||{},this['rootName']=_0x3ca228['rootName'],this['set']('createdAt',_0x3ca228['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x28e2bf,_0x430e3e){this['newRevisionId']=_0x28e2bf,this['oldRevisionId']=_0x430e3e,this['changes']=new _0x25aee0();}['_setChanges'](_0x2f03a1){for(const _0x34a030 of _0x2f03a1)this['changes']['add'](_0x34a030);}}class l extends _0xebc3e0{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3017f2,_0x1a0243,S,$];}constructor(_0x27e2f5){super(_0x27e2f5),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x4544ef,_0x3e50b0,_0x48cdeb)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x208b3d=>{for(const _0x59368c of this['editor']['editing']['view']['document']['roots'])_0x48cdeb?_0x208b3d['removeClass']('ck-editor__editable__overlay',_0x59368c):_0x208b3d['addClass']('ck-editor__editable__overlay',_0x59368c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4435a9=>null!==_0x4435a9),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3213fa,_0x19652d,_0x5f19f7)=>_0x3213fa&&_0x5f19f7?_0x19652d['changes']['getIndex'](_0x5f19f7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xbbcd72,_0x465d03)=>_0xbbcd72?_0x465d03['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1a0243);}['init'](){const _0x2b1f16=this['editor'],_0x1a7625=new ot(_0x2b1f16,{'direction':'backward'}),_0x3d1bb3=new ot(_0x2b1f16,{'direction':'forward'});(_0x2b1f16['commands']['add']('showPreviousChange',_0x1a7625),_0x2b1f16['commands']['add']('showNextChange',_0x3d1bb3),_0x2b1f16['commands']['add']('restoreRevision',new nt(_0x2b1f16)),this['on']('change:numberOfChanges',()=>{_0x1a7625['refresh'](),_0x3d1bb3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2b1f16['enableReadOnlyMode']('revision-viewer'),_0x2b1f16['plugins']['has']('WidgetToolbarRepository'))&&_0x2b1f16['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2a267f){return await this['_utils']['loadRevisionData'](_0x2a267f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2a267f);}async['getRevisionRootsAttributes'](_0x15f80a){return await this['_utils']['loadRevisionData'](_0x15f80a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x15f80a);}async['compare'](_0x233a46,_0x379ee4,_0x480315=!0x1){if(!this['isEnabled'])return;const _0x34a3a0=this['diff'],_0x19c7fc=this['repository'],_0x228c34='string'==typeof _0x233a46?_0x19c7fc['getRevision'](_0x233a46):_0x233a46,_0x1857b8='string'==typeof _0x379ee4?_0x19c7fc['getRevision'](_0x379ee4):_0x379ee4,_0x4825e4=_0x228c34['id'],_0x3e3985=_0x1857b8?_0x1857b8['id']:null;if(!_0x480315&&this['diff']&&this['diff']['newRevisionId']===_0x4825e4&&this['diff']['oldRevisionId']===_0x3e3985)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4825e4,_0x3e3985);const _0x2e6bb0=this['_getRevisionsRange'](_0x228c34,_0x1857b8,!0x0)['map'](_0x50da18=>this['_utils']['loadRevisionData'](_0x50da18,this['adapter']));return _0x2e6bb0['push'](new Promise(_0xcd5eb3=>{setTimeout(_0xcd5eb3,0x14);})),Promise['all'](_0x2e6bb0)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x391c27=this['_getDiff'](_0x4825e4,_0x3e3985);for(const _0x465fca of _0x391c27['changes'])this['_changeIdToChange']['set'](_0x465fca['id'],_0x465fca);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5c5ce9=>{for(const _0xffb9e5 of this['editor']['model']['document']['getRootNames']())_0x5c5ce9['detachRoot'](_0xffb9e5);for(const _0x2fe023 of Object['keys'](_0x391c27['model'])){const _0x197e50=_0x5c5ce9['addRoot'](_0x2fe023);for(const _0x471fc6 of Object['keys'](_0x391c27['attributes'][_0x2fe023]))_0x5c5ce9['setAttribute'](_0x471fc6,_0x391c27['attributes'][_0x2fe023][_0x471fc6],_0x197e50);_0x5c5ce9['insert'](_0x391c27['model'][_0x2fe023],_0x197e50,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x391c27['changes'])),this['isReady']=!0x0;})['catch'](_0x2ecf27=>{console['error'](_0x2ecf27),this['_cleanUp'](),_0x34a3a0&&(this['diff']=_0x34a3a0),this['isReady']=!0x0;});}['addRevisionData'](_0x31c803,_0x5f558b){const _0x2b2a99=this['repository']['createRevision'](_0x31c803);return _0x2b2a99['on']('_update',(_0x3be0dd,_0x4e46a8,_0x2e2c40)=>_0x5f558b(_0x4e46a8,_0x2e2c40,_0x2b2a99)),this['repository']['addRevision'](_0x2b2a99),_0x2b2a99;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x17ced1=>{for(const _0x6c5f2e of this['editor']['model']['document']['getRootNames']())_0x17ced1['detachRoot'](_0x6c5f2e);});}['_sortAndFilterDiffChanges'](_0x120350){const _0x310a9d=[],_0xd69b54=new Map();for(const _0x187404 of this['editor']['model']['document']['getRootNames']()){const _0x5113ce=this['editor']['editing']['view']['getDomRoot'](_0x187404);if(!_0x5113ce)continue;const _0x218c2a=_0x5113ce['getClientRects']()['item'](0x0);_0x218c2a&&(_0x310a9d['push'](_0x187404),_0xd69b54['set'](_0x187404,_0x218c2a));}return _0x310a9d['sort']((_0x4e3dc6,_0x1485d2)=>{const _0x506b4e=_0xd69b54['get'](_0x4e3dc6),_0x1eb864=_0xd69b54['get'](_0x1485d2);return _0x506b4e['y']-_0x1eb864['y']||_0x506b4e['x']-_0x1eb864['x'];}),(_0x120350=_0x120350['filter'](_0x4095a0=>_0x310a9d['includes'](_0x4095a0['rootName'])))['sort']((_0x262552,_0xe6076a)=>_0x310a9d['indexOf'](_0x262552['rootName'])-_0x310a9d['indexOf'](_0xe6076a['rootName'])),_0x120350;}['_makeTape'](_0xfa0339){const _0x378d4b=Array['from'](_0xfa0339['markers'])['filter'](([_0x361b4c,_0x4a4ab7])=>_0x361b4c['startsWith']('revision:')&&!_0x4a4ab7['isCollapsed']),_0x5c0953=Array['from'](this['editor']['model']['createRangeIn'](_0xfa0339)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x378d4b['length'])for(const _0x26f069 of _0x5c0953){const [_0x413e53,_0x4a4bce]=_0x378d4b[0x0],[,_0x1bdf2f,_0x4a0b08]=_0x413e53['split'](':');if(_0x4a4bce['end']['isEqual'](_0x26f069['nextPosition'])&&_0x378d4b['shift'](),(_0x26f069['previousPosition']['isEqual'](_0x4a4bce['start'])||_0x26f069['previousPosition']['isAfter'](_0x4a4bce['start']))&&('insertion'==_0x1bdf2f?_0x26f069['isAdded']={'userId':_0x4a0b08}:'deletion'==_0x1bdf2f&&(_0x26f069['isRemoved']={'userId':_0x4a0b08})),0x0==_0x378d4b['length'])break;}return _0x5c0953;}['_refreshStartEndIndex'](_0x3f5b56){const _0x2fd924=new Map();for(let _0x4b71ef=0x0;_0x4b71ef<_0x3f5b56['length'];_0x4b71ef++)'text'===_0x3f5b56[_0x4b71ef]['type']?(_0x3f5b56[_0x4b71ef]['item']['startIndex']=_0x4b71ef,_0x3f5b56[_0x4b71ef]['item']['endIndex']=_0x4b71ef):('elementStart'===_0x3f5b56[_0x4b71ef]['type']?_0x3f5b56[_0x4b71ef]['item']['startIndex']=_0x4b71ef:'elementEnd'===_0x3f5b56[_0x4b71ef]['type']&&(_0x3f5b56[_0x4b71ef]['item']['endIndex']=_0x4b71ef),_0x2fd924['set'](_0x3f5b56[_0x4b71ef]['id'],_0x4b71ef));for(const _0x423e66 of _0x2fd924['values']())'elementStart'===_0x3f5b56[_0x423e66]['type']?_0x3f5b56[_0x423e66]['item']['endIndex']=_0x2fd924['get'](_0x3f5b56[_0x423e66]['pairId']):'elementEnd'===_0x3f5b56[_0x423e66]['type']&&(_0x3f5b56[_0x423e66]['item']['startIndex']=_0x2fd924['get'](_0x3f5b56[_0x423e66]['pairId']));}['_processTape'](_0x5d46fa){for(let _0x3b3927=0x0;_0x3b3927<_0x5d46fa['length'];_0x3b3927++){if('elementStart'===_0x5d46fa[_0x3b3927]['type'])_0x5d46fa[_0x3b3927]['item']['startIndex']=_0x3b3927;else{if('elementEnd'===_0x5d46fa[_0x3b3927]['type']){_0x5d46fa[_0x3b3927]['item']['endIndex']=_0x3b3927;const _0x38ee0e=_0x5d46fa[_0x3b3927]['item']['startIndex'];_0x5d46fa[_0x38ee0e]['pairId']=_0x5d46fa[_0x3b3927]['id'],_0x5d46fa[_0x3b3927]['pairId']=_0x5d46fa[_0x38ee0e]['id'];}else _0x5d46fa[_0x3b3927]['item']['startIndex']=_0x3b3927,_0x5d46fa[_0x3b3927]['item']['endIndex']=_0x3b3927,_0x5d46fa[_0x3b3927]['pairId']=null;}_0x5d46fa[_0x3b3927]['markersStart']||(_0x5d46fa[_0x3b3927]['markersStart']=[],_0x5d46fa[_0x3b3927]['markersEnd']=[]);}}['_markInsertions'](_0x303349,_0x14f2f4){const _0x3e0e69=_0x303349['filter'](_0x1f66bd=>!_0x1f66bd['isAdded']);for(let _0xa1c48=0x0;_0xa1c48<_0x14f2f4['length'];_0xa1c48++)_0x14f2f4[_0xa1c48]['isAdded']&&(_0x3e0e69[_0xa1c48]['isAdded']=_0x14f2f4[_0xa1c48]['isAdded']);}['_getDiff'](_0x1d12af,_0x5f4973=null){const _0x28fef0=this['repository']['getRevision'](_0x1d12af),_0x4a6afe=_0x5f4973?this['repository']['getRevision'](_0x5f4973):null,_0xfcd218=this['_getRevisionsRange'](_0x28fef0,_0x4a6afe),_0x14b45e=_0xfcd218[_0xfcd218['length']-0x1],_0x303271=new Map(),_0xa6ac09={'model':{},'attributes':{},'changes':[]},_0x37c840=new Set(),_0x57ed41=new Map();for(let _0x54ff23=_0xfcd218['length']-0x1;_0x54ff23>=0x0;_0x54ff23--){const _0x13634e=_0xfcd218[_0x54ff23];for(const _0x1cc6f1 of Object['keys'](_0x13634e['diffData']))if(_0x13634e['diffData'][_0x1cc6f1]['attachChange']){const _0x147c6e=_0x13634e['diffData'][_0x1cc6f1]['attachChange'];_0x147c6e['isAttached']?(_0x37c840['add'](_0x1cc6f1),_0x57ed41['has'](_0x1cc6f1)&&_0x57ed41['get'](_0x1cc6f1)['userId']==_0x147c6e['userId']?_0x57ed41['delete'](_0x1cc6f1):_0x57ed41['set'](_0x1cc6f1,_0x147c6e)):_0x57ed41['has'](_0x1cc6f1)?(_0x37c840['delete'](_0x1cc6f1),_0x57ed41['delete'](_0x1cc6f1)):(_0x37c840['add'](_0x1cc6f1),_0x57ed41['set'](_0x1cc6f1,_0x147c6e));}else _0x37c840['add'](_0x1cc6f1);}for(const _0x536824 of _0x37c840){const _0x4d86b7=_0x57ed41['has'](_0x536824)&&!_0x57ed41['get'](_0x536824)['isAttached'];let _0x3c6b36=_0x4d86b7?_0xfcd218['length']-0x1:0x0;const _0x2912ae=_0x4d86b7?-0x1:0x1;for(;_0xfcd218[_0x3c6b36];){const _0x32ac76=_0xfcd218[_0x3c6b36];if(_0x32ac76['diffData'][_0x536824]){const _0xef57b0=_0x4d86b7?_0x32ac76['diffData'][_0x536824]['attributesBefore']:_0x32ac76['diffData'][_0x536824]['attributesAfter'];_0xa6ac09['attributes'][_0x536824]=_0xef57b0?_0x309714(_0xef57b0):{};break;}_0x3c6b36+=_0x2912ae;}}for(const _0x29155 of _0xfcd218){_0x29155['model']={};for(const _0x4ce23c of _0x29155['authors'])_0x303271['set'](_0x4ce23c['id'],_0x4ce23c);for(const _0x106c66 of _0x37c840){const _0x339f4e=_0x29155['diffData'][_0x106c66]?_0x29155['diffData'][_0x106c66]['insertions']:'[]',_0x1a7c88=_0x29155['diffData'][_0x106c66]?_0x29155['diffData'][_0x106c66]['deletions']:'[]';_0x29155['model'][_0x106c66]={'insertions':this['_utils']['_makeModelFromViewString'](_0x339f4e),'deletions':this['_utils']['_makeModelFromViewString'](_0x1a7c88)};}}for(const _0xd60713 of _0x37c840){let _0x49cef5=null,_0x1f4ecd=0x0;const _0x2aef0d=new Map(Array['from'](_0x28fef0['model'][_0xd60713]['insertions']['markers'])['filter'](([_0x52413f])=>!_0x52413f['startsWith']('revision:')));let _0x5713f6=0x0;for(const _0x8e10f1 of _0xfcd218){const _0xa5fe8e=this['_makeTape'](_0x8e10f1['model'][_0xd60713]['insertions']);_0x8e10f1==_0x28fef0?(_0x49cef5=_0xa5fe8e,_0x1f4ecd=_0x49cef5['length'],_0x49cef5['forEach'](_0x576164=>{_0x576164['id']=_0x5713f6++;}),this['_processTape'](_0x49cef5)):this['_markInsertions'](_0x49cef5,_0xa5fe8e);const _0x13580c=_0x49cef5['filter'](_0xb608a5=>!_0xb608a5['isAdded'])['map'](_0xf2e767=>_0xf2e767['id']);let _0x2d1fdf=0x0;const _0x36deb2=this['_makeTape'](_0x8e10f1['model'][_0xd60713]['deletions']);_0x36deb2['forEach'](_0x536e3e=>{_0x536e3e['isRemoved']?_0x536e3e['id']=_0x1f4ecd++:_0x536e3e['id']=_0x13580c[_0x2d1fdf++];}),this['_processTape'](_0x36deb2),this['_setDistance'](_0x49cef5,'isAdded'),this['_setDistance'](_0x36deb2,'isRemoved'),_0x8e10f1==_0x28fef0&&this['_markMarkers'](_0x49cef5,_0x2aef0d),_0x49cef5=this['_joinTapes'](_0x49cef5,_0x36deb2),this['_refreshStartEndIndex'](_0x49cef5),this['_setDistance'](_0x49cef5,'isRemoved');}_0x49cef5=_0x49cef5['filter'](_0x1a3920=>!(_0x1a3920['isAdded']&&_0x1a3920['isRemoved']));const _0x5644ca=new Map(_0x14b45e['model'][_0xd60713]['deletions']['markers']),_0x3ded19=new Set(_0x2aef0d['keys']());for(const _0x3600be of _0x5644ca['keys']())_0x3ded19['delete'](_0x3600be);this['_markSuggestions'](_0x49cef5,_0x3ded19),this['_fixObsoleteTags'](_0x49cef5),_0x49cef5=this['_removeMissingPairs'](_0x49cef5),_0x49cef5=this['_markMismatchedRemovedTags'](_0x49cef5),_0x49cef5=this['_removeUnsupportedChanges'](_0x49cef5);const {root:_0x2f4b69,changes:_0x3e8bcc}=this['_makeModelFromTape'](_0x49cef5,_0x303271,_0xd60713);_0xa6ac09['model'][_0xd60713]=_0x2f4b69;const _0x10d1f6=_0x57ed41['get'](_0xd60713);if(_0x10d1f6){const _0x306092=_0x303271['get'](_0x10d1f6['userId']),_0x3b0772=new G({'author':_0x306092,'type':_0x10d1f6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xd60713});_0x3e8bcc['unshift'](_0x3b0772),_0xa6ac09['attributes'][_0xd60713]['revisionHistoryAttachChange']=_0x3b0772['id'];}_0xa6ac09['changes']=_0xa6ac09['changes']['concat'](_0x3e8bcc);}return _0xa6ac09;}['_markMarkers'](_0xf7290f,_0x36dcc4){for(let _0x3b4333=0x0;_0x3b4333<_0xf7290f['length'];_0x3b4333++)for(const [_0xb8b357,_0x19b97f]of _0x36dcc4)!_0x19b97f['isCollapsed']&&_0x19b97f['start']['isEqual'](_0xf7290f[_0x3b4333]['previousPosition'])&&_0xf7290f[_0x3b4333]['markersStart']['push'](_0xb8b357),_0x19b97f['end']['isEqual'](_0xf7290f[_0x3b4333]['nextPosition'])&&_0xf7290f[_0x3b4333]['markersEnd']['push'](_0xb8b357);}['_joinTapes'](_0x37cd2e,_0x3d6c23){let _0x5f0ab6=[],_0x23ab6d=0x0,_0x3f3414=0x0;for(;_0x23ab6d<_0x37cd2e['length']||_0x3f3414<_0x3d6c23['length'];){const _0x3b98e1=_0x37cd2e[_0x23ab6d]||{},_0x547380=_0x3d6c23[_0x3f3414]||{};if(_0x3b98e1['id']==_0x547380['id'])_0x23ab6d++,_0x3f3414++,_0x5f0ab6['push'](_0x3b98e1);else{if(_0x547380['isRemoved']&&_0x3b98e1['isAdded']){const {commonTape:_0x46ed61,iEnd:_0x5027e0,jEnd:_0x25adf9}=this['_threeWayMerge'](_0x37cd2e,_0x23ab6d,_0x3d6c23,_0x3f3414);_0x5f0ab6=_0x5f0ab6['concat'](_0x46ed61),_0x23ab6d=_0x5027e0,_0x3f3414=_0x25adf9;}else _0x547380['isRemoved']?(_0x3f3414++,_0x5f0ab6['push'](_0x547380)):(_0x23ab6d++,_0x5f0ab6['push'](_0x3b98e1));}}return _0x5f0ab6;}['_markSuggestions'](_0x23db2b,_0x51bd30){const _0x1517c8=[];for(let _0x1fdc26=0x0;_0x1fdc26<_0x23db2b['length'];_0x1fdc26++){for(let _0x40724a=0x0;_0x40724a<_0x23db2b[_0x1fdc26]['markersStart']['length'];_0x40724a++){const _0x4d8f93=_0x23db2b[_0x1fdc26]['markersStart'][_0x40724a];if(!_0x51bd30['has'](_0x4d8f93))continue;const {group:_0x2afb81,type:_0x5f2cd0,authorId:_0x58f4e0}=_0x39e3ca(_0x4d8f93);'revision-suggestion'!=_0x2afb81||'insertion'!=_0x5f2cd0&&'deletion'!=_0x5f2cd0||(_0x1517c8['unshift']({'type':_0x5f2cd0,'name':_0x4d8f93,'userId':_0x58f4e0}),_0x23db2b[_0x1fdc26]['markersStart']['splice'](_0x40724a,0x1),_0x40724a--);}_0x4e71e6(_0x23db2b[_0x1fdc26]);for(let _0x325079=0x0;_0x325079<_0x23db2b[_0x1fdc26]['markersEnd']['length'];_0x325079++){const _0xf8f82e=_0x23db2b[_0x1fdc26]['markersEnd'][_0x325079];if(!_0x51bd30['has'](_0xf8f82e))continue;const {group:_0x3f2088,type:_0x456640}=_0x39e3ca(_0xf8f82e);if('revision-suggestion'!=_0x3f2088||'insertion'!=_0x456640&&'deletion'!=_0x456640)continue;_0x23db2b[_0x1fdc26]['markersEnd']['splice'](_0x325079,0x1),_0x325079--;const _0x1a7e63=_0x1517c8['findIndex'](_0x5efb34=>_0x5efb34['name']==_0xf8f82e);_0x1a7e63>-0x1&&_0x1517c8['splice'](_0x1a7e63,0x1);}}function _0x39e3ca(_0x24706b){const _0x18daf4=_0x24706b['split'](':');return{'group':_0x18daf4[0x0],'type':_0x18daf4[0x1],'subType':_0x18daf4['length']>=0x5?_0x18daf4[0x2]:null,'id':_0x18daf4['length']<0x5?_0x18daf4[0x2]:_0x18daf4[0x3],'authorId':_0x18daf4['length']<0x5?_0x18daf4[0x3]:_0x18daf4[0x4],'markerCount':0x6==_0x18daf4['length']?_0x18daf4[0x5]:null};}function _0x4e71e6(_0x2aec36){for(let _0x28c9fe=0x0;_0x28c9fe<_0x1517c8['length'];_0x28c9fe++){if(_0x2aec36['isAdded']&&'insertion'==_0x1517c8[_0x28c9fe]['type']&&_0x2aec36['isAdded']['userId']==_0x1517c8[_0x28c9fe]['userId'])return _0x2aec36['isAddSuggestion']=_0x1517c8[_0x28c9fe],void delete _0x2aec36['isAdded'];if(!_0x2aec36['isAdded']&&!_0x2aec36['isRemoved']&&'deletion'==_0x1517c8[_0x28c9fe]['type'])return void(_0x2aec36['isRemoveSuggestion']=_0x1517c8[_0x28c9fe]);}}}['_setDistance'](_0x156214,_0x25c011){let _0xc7d808=0x0,_0xd03e75=!0x1;const _0x2caebc=new Map();for(const _0x3e6f98 of _0x156214)_0x3e6f98[_0x25c011]?_0xd03e75&&(_0xc7d808++,_0xd03e75=!0x1):(_0xc7d808++,_0xd03e75=!0x0),_0x2caebc['set'](_0x3e6f98['id'],_0xc7d808);for(let _0x4a01b6=0x0;_0x4a01b6<_0x156214['length'];_0x4a01b6++){if('isRemoved'==_0x25c011&&_0x156214[_0x4a01b6]['isAdded']||'isAdded'==_0x25c011&&_0x156214[_0x4a01b6]['isRemoved'])continue;if('text'==_0x156214[_0x4a01b6]['type']){_0x156214[_0x4a01b6]['distance']=0x0;continue;}const _0x1bdf88=_0x2caebc['get'](_0x156214[_0x4a01b6]['pairId']),_0x4728cb=_0x2caebc['get'](_0x156214[_0x4a01b6]['id']);_0x156214[_0x4a01b6]['distance']=_0x1bdf88-_0x4728cb;}}['_getRevisionsRange'](_0x492237,_0x4eb33c,_0x4e5b9d=!0x1){const _0x2d2f4a=[];let _0x1112b6=this['repository']['getIndex'](_0x492237),_0x400e0a=this['repository']['getIndex'](_0x4eb33c);for(-0x1==_0x400e0a&&(_0x400e0a=this['repository']['_revisions']['length'],_0x4e5b9d=!0x1);_0x1112b6<_0x400e0a;)_0x2d2f4a['push'](this['repository']['getRevision'](_0x1112b6)),_0x1112b6++;return _0x4e5b9d&&_0x2d2f4a['push'](this['repository']['getRevision'](_0x1112b6)),_0x2d2f4a;}['_threeWayMerge'](_0x335240,_0xd967c3,_0x1892ae,_0x43bb4f){const _0xf0081c=this['editor']['model']['schema'];let _0x13cd8d=_0xd967c3;for(;_0x335240[_0x13cd8d]&&_0x335240[_0x13cd8d]['isAdded'];)_0x13cd8d++;let _0x2ea907=_0x43bb4f;for(;_0x1892ae[_0x2ea907]&&_0x1892ae[_0x2ea907]['isRemoved'];)_0x2ea907++;_0x38a497(_0x335240,_0xd967c3,_0x13cd8d),_0x38a497(_0x1892ae,_0x43bb4f,_0x2ea907);const _0x701407=_0x1892ae['slice'](_0x43bb4f,_0x2ea907)['concat'](_0x335240['slice'](_0xd967c3,_0x13cd8d));return _0x701407['sort']((_0x1dd294,_0x28872c)=>_0x1dd294['side']!=_0x28872c['side']?_0x1dd294['side']-_0x28872c['side']:_0x1dd294['level']!=_0x28872c['level']?_0x1dd294['level']-_0x28872c['level']:_0x1dd294['distance']!=_0x28872c['distance']?_0x28872c['distance']-_0x1dd294['distance']:!!_0x1dd294['isAdded']!=!!_0x28872c['isAdded']?-0x1==_0x1dd294['side']||0x0==_0x1dd294['side']?_0x1dd294['isAdded']?-0x1:0x1:_0x1dd294['isAdded']?0x1:-0x1:_0x1dd294['index']-_0x28872c['index']),{'commonTape':_0x701407,'iEnd':_0x13cd8d,'jEnd':_0x2ea907};function _0x38a497(_0x562d8c,_0x12487d,_0x32d91f){let _0x336b74=-0x1,_0x1bc821=Number['POSITIVE_INFINITY'],_0x14bafc=!0x0;for(let _0x5a741a=_0x12487d;_0x5a741a<_0x32d91f;_0x5a741a++)if(_0xf0081c['isInline'](_0x562d8c[_0x5a741a]['item'])||(_0x14bafc=!0x1),_0x562d8c[_0x5a741a]['item']['startIndex']<_0x12487d&&(_0x336b74=_0x5a741a),_0x562d8c[_0x5a741a]['item']['endIndex']>=_0x32d91f){_0x1bc821=_0x5a741a;break;}_0x14bafc&&(_0x336b74=_0x32d91f-0x1);for(let _0x1c1981=_0x12487d;_0x1c1981<_0x32d91f;_0x1c1981++)_0x562d8c[_0x1c1981]['side']=_0x1c1981<=_0x336b74?-0x1:_0x1c1981<_0x1bc821?0x0:0x1,_0x562d8c[_0x1c1981]['index']=_0x1c1981;let _0x25b235=0x0;for(let _0x1cc698=_0x12487d;_0x1cc698<=_0x336b74;_0x1cc698++)0x0==_0x562d8c[_0x1cc698]['distance']?_0x562d8c[_0x1cc698]['level']=_0x25b235:(_0x25b235++,_0x562d8c[_0x1cc698]['level']=_0x25b235,_0x25b235++);for(let _0x2e342b=_0x12487d;_0x2e342b<_0x32d91f;_0x2e342b++)0x0==_0x562d8c[_0x2e342b]['side']&&(_0x562d8c[_0x2e342b]['level']=_0x25b235);_0x25b235=0x0;for(let _0x120908=_0x32d91f-0x1;_0x120908>=_0x1bc821;_0x120908--)0x0==_0x562d8c[_0x120908]['distance']?_0x562d8c[_0x120908]['level']=_0x25b235:(_0x25b235--,_0x562d8c[_0x120908]['level']=_0x25b235,_0x25b235--);}}['_fixObsoleteTags'](_0x1013a0){const _0x839981=new Map(),_0x3895a3=this['editor']['model']['schema'];for(let _0xb4bbfd=0x1;_0xb4bbfd<_0x1013a0['length'];_0xb4bbfd++){let _0x3ebc86,_0x314b26,_0x39e003;const _0x59a7db=_0x1013a0[_0xb4bbfd],_0x18c105=_0x1013a0[_0xb4bbfd-0x1];if('text'==_0x59a7db['type'])continue;if(_0x59a7db['type']!=_0x18c105['type'])continue;if(!_0x3895a3['isBlock'](_0x18c105['item'])||_0x3895a3['isLimit'](_0x18c105['item']))continue;if(!_0x3895a3['isBlock'](_0x59a7db['item'])||_0x3895a3['isLimit'](_0x59a7db['item']))continue;if((_0x1013a0[_0xb4bbfd]['isAdded']||_0x1013a0[_0xb4bbfd]['isAddSuggestion'])&&_0x1013a0[_0xb4bbfd-0x1]['isRemoved'])_0x3ebc86=_0x1013a0[_0xb4bbfd],_0x314b26=_0x1013a0[_0xb4bbfd-0x1],_0x39e003=_0xb4bbfd-0x1;else{if(!_0x1013a0[_0xb4bbfd]['isRemoved']||!_0x1013a0[_0xb4bbfd-0x1]['isAdded']&&!_0x1013a0[_0xb4bbfd-0x1]['isAddSuggestion'])continue;_0x3ebc86=_0x1013a0[_0xb4bbfd-0x1],_0x314b26=_0x1013a0[_0xb4bbfd],_0x39e003=_0xb4bbfd;}const _0x11eda5=_0x3ebc86['level']==_0x314b26['level'],_0x5edeeb=Math['abs'](_0x3ebc86['level'])<Math['abs'](_0x314b26['level'])&&0x0==_0x314b26['distance'];(_0x11eda5||_0x5edeeb)&&(_0x839981['set'](_0x314b26['id'],_0x3ebc86['id']),_0x1013a0['splice'](_0x39e003,0x1),_0xb4bbfd--,_0x3ebc86['isAdded']=!0x1);}for(let _0x19a475=0x0;_0x19a475<_0x1013a0['length'];_0x19a475++)_0x839981['has'](_0x1013a0[_0x19a475]['pairId'])&&(_0x1013a0[_0x19a475]['pairId']=_0x839981['get'](_0x1013a0[_0x19a475]['pairId']));}['_removeMissingPairs'](_0x4c3b14){const _0x8a0232=new Set(_0x4c3b14['map'](_0x496a91=>_0x496a91['id']));for(let _0x355876=0x0;_0x355876<_0x4c3b14['length'];_0x355876++)_0x8a0232['has'](_0x4c3b14[_0x355876]['pairId'])||0x0==_0x4c3b14[_0x355876]['distance']||(_0x4c3b14[_0x355876]['isIncorrect']=!0x0);return _0x4c3b14['filter'](_0x43b1be=>!_0x43b1be['isIncorrect']);}['_markMismatchedRemovedTags'](_0xd60a2b){const _0x1c7bf9=new Set();for(let _0x11a4b1=0x0;_0x11a4b1<_0xd60a2b['length'];_0x11a4b1++){if(_0x1c7bf9['has'](_0xd60a2b[_0x11a4b1]['id'])&&_0xd60a2b[_0x11a4b1]['isRemoved']&&(_0xd60a2b[_0x11a4b1]['isIncorrect']=!0x0),_0xd60a2b[_0x11a4b1]['isIncorrect'])continue;if(0x0==_0xd60a2b[_0x11a4b1]['distance'])continue;if('elementStart'!=_0xd60a2b[_0x11a4b1]['type'])continue;if(null==_0xd60a2b[_0x11a4b1]['pairId'])continue;let _0x3e2613=_0x11a4b1+0x1,_0x4de4b0=0x0;for(;_0xd60a2b[_0x3e2613]['id']!=_0xd60a2b[_0x11a4b1]['pairId'];)'elementStart'==_0xd60a2b[_0x3e2613]['type']?_0x4de4b0++:'elementEnd'==_0xd60a2b[_0x3e2613]['type']&&_0x4de4b0--,_0x3e2613++;if(0x0!=_0x4de4b0){if(_0xd60a2b[_0x11a4b1]['isRemoved'])_0xd60a2b[_0x11a4b1]['isIncorrect']=!0x0;else{for(;_0x3e2613!=_0x11a4b1;)_0xd60a2b[_0x3e2613]['isRemoved']&&0x0!=_0xd60a2b[_0x3e2613]['distance']&&(_0xd60a2b[_0x3e2613]['isIncorrect']=!0x0,_0x1c7bf9['add'](_0xd60a2b[_0x3e2613]['pairId'])),_0x3e2613--;}}}return _0xd60a2b['filter'](_0x429bec=>!_0x429bec['isIncorrect']);}['_removeUnsupportedChanges'](_0x1c1a5f){const _0xabf55c=this['editor']['model']['schema'];for(let _0x2c34a3=0x0;_0x2c34a3<_0x1c1a5f['length'];_0x2c34a3++){if(!(_0x1c1a5f[_0x2c34a3]['isAdded']||_0x1c1a5f[_0x2c34a3]['isAddSuggestion']||_0x1c1a5f[_0x2c34a3]['isRemoved']||_0x1c1a5f[_0x2c34a3]['isRemoveSuggestion']))continue;if(0x0==_0x1c1a5f[_0x2c34a3]['distance'])continue;const _0x264f7e=_0x1c1a5f[_0x2c34a3]['item'];_0xabf55c['isBlock'](_0x264f7e)||_0xabf55c['isLimit'](_0x264f7e)||(_0x1c1a5f[_0x2c34a3]['isAdded']&&delete _0x1c1a5f[_0x2c34a3]['isAdded'],_0x1c1a5f[_0x2c34a3]['isAddSuggestion']&&delete _0x1c1a5f[_0x2c34a3]['isAddSuggestion'],_0x1c1a5f[_0x2c34a3]['isRemoveSuggestion']&&delete _0x1c1a5f[_0x2c34a3]['isRemoveSuggestion'],_0x1c1a5f[_0x2c34a3]['isRemoved']&&(_0x1c1a5f[_0x2c34a3]['isIncorrect']=!0x0));}return _0x1c1a5f['filter'](_0x39b6a1=>!_0x39b6a1['isIncorrect']);}['_makeModelFromTape'](_0x1e3674,_0x55a74e,_0x4ed30e){const _0x528ae3=new _0x411e92(),_0x25de4a=[],_0xf52ba6=new Map(),_0x15277c=this['editor']['model'],_0xbe25d1=_0x15277c['schema'],_0x2d6fb6=[_0x528ae3],_0x4c20b7={},_0x285c81={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x243d37=null;const _0x2e4f49=[0x0];for(let _0x5b598b=0x0;_0x5b598b<_0x1e3674['length'];_0x5b598b++)if('elementStart'===_0x1e3674[_0x5b598b]['type']){_0x1e3674[_0x5b598b]['previousPosition']=_0x15277c['createPositionFromPath'](_0x528ae3,_0x2e4f49);const _0x144c20=new _0x38b79f(_0x1e3674[_0x5b598b]['item']['name'],_0x1e3674[_0x5b598b]['item']['getAttributes']());_0x2d6fb6[0x0]['_appendChild'](_0x144c20),_0x2e4f49['push'](0x0),_0x2d6fb6['unshift'](_0x144c20),_0x1e3674[_0x5b598b]['nextPosition']=_0x15277c['createPositionFromPath'](_0x528ae3,_0x2e4f49);}else'elementEnd'===_0x1e3674[_0x5b598b]['type']?(_0x2d6fb6['shift'](),_0x1e3674[_0x5b598b]['previousPosition']=_0x15277c['createPositionFromPath'](_0x528ae3,_0x2e4f49),_0x2e4f49['pop'](),_0x2e4f49[_0x2e4f49['length']-0x1]++,_0x1e3674[_0x5b598b]['nextPosition']=_0x15277c['createPositionFromPath'](_0x528ae3,_0x2e4f49)):(_0x1e3674[_0x5b598b]['previousPosition']=_0x15277c['createPositionFromPath'](_0x528ae3,_0x2e4f49),_0x243d37?_0x243d37['_data']+=_0x1e3674[_0x5b598b]['item']['data']:_0x243d37=new _0x12eef8(_0x1e3674[_0x5b598b]['item']['data'],_0x1e3674[_0x5b598b]['item']['getAttributes']()),_0x1e3674[_0x5b598b+0x1]&&'text'===_0x1e3674[_0x5b598b+0x1]['type']&&_0x5b2152(_0x243d37,_0x1e3674[_0x5b598b+0x1]['item'])||(_0x2d6fb6[0x0]['_appendChild'](_0x243d37),_0x243d37=null),_0x2e4f49[_0x2e4f49['length']-0x1]+=_0x1e3674[_0x5b598b]['item']['offsetSize'],_0x1e3674[_0x5b598b]['nextPosition']=_0x15277c['createPositionFromPath'](_0x528ae3,_0x2e4f49));for(let _0x5f292c=0x0;_0x5f292c<_0x1e3674['length'];_0x5f292c++){const _0x7abbd5=_0x1e3674[_0x5f292c]['previousPosition'],_0x3666bf=_0x1e3674[_0x5f292c]['nextPosition'];for(const _0x1b0d43 of _0x1e3674[_0x5f292c]['markersStart'])_0xf52ba6['set'](_0x1b0d43,{'start':_0x7abbd5,'end':null});_0x139a6f('isRemoveSuggestion',_0x5f292c,_0x7abbd5,_0x3666bf),_0x139a6f('isAddSuggestion',_0x5f292c,_0x7abbd5,_0x3666bf),_0x139a6f('isRemoved',_0x5f292c,_0x7abbd5,_0x3666bf),_0x139a6f('isAdded',_0x5f292c,_0x7abbd5,_0x3666bf);for(const _0x10ec29 of _0x1e3674[_0x5f292c]['markersEnd']){const _0x5e0a4c=_0xf52ba6['get'](_0x10ec29);_0x5e0a4c?_0x5e0a4c['end']=_0x3666bf:_0xf52ba6['set'](_0x10ec29,{'start':_0x3666bf,'end':_0x3666bf});}}for(const [_0x53d004,_0x58708b]of _0xf52ba6){const _0x41e68f=this['editor']['model']['createRange'](_0x58708b['start'],_0x58708b['end']);_0x528ae3['markers']['set'](_0x53d004,_0x41e68f);}return _0x25de4a['sort']((_0x34e9e5,_0x1d38e2)=>{const _0x2e9485=_0x528ae3['markers']['get']('revision:'+_0x34e9e5['id']),_0x3873d7=_0x528ae3['markers']['get']('revision:'+_0x1d38e2['id']);return _0x2e9485['start']['isBefore'](_0x3873d7['start'])?-0x1:_0x2e9485['start']['isAfter'](_0x3873d7['start'])?0x1:_0x2e9485['end']['isBefore'](_0x3873d7['end'])?-0x1:_0x2e9485['end']['isAfter'](_0x3873d7['end'])?0x1:'add'===_0x34e9e5['type']?-0x1:0x1;}),{'root':_0x528ae3,'changes':_0x25de4a};function _0x139a6f(_0x5a3ea2,_0x5ccb01,_0x89d6a6,_0x3516ae){const _0xca72b6=!!_0x1e3674[_0x5ccb01][_0x5a3ea2],_0x3ac2e5=_0xca72b6?_0x1e3674[_0x5ccb01][_0x5a3ea2]['userId']:null,_0x26e89b=_0x5ccb01===_0x1e3674['length']-0x1,_0x2c0bec=_0x285c81[_0x5a3ea2][0x0],_0x37db77=_0xbe25d1['isObject'](_0x1e3674[_0x5ccb01]['item']);!_0x4c20b7[_0x5a3ea2]&&_0xca72b6?_0x4c20b7[_0x5a3ea2]={'start':_0x89d6a6,'tapeItem':_0x1e3674[_0x5ccb01],'userId':_0x3ac2e5,'type':_0x5a3ea2}:_0x4c20b7[_0x5a3ea2]&&!_0xca72b6?(_0x4c20b7[_0x5a3ea2]['end']=_0x89d6a6,_0x2e14ba(_0x4c20b7[_0x5a3ea2]),_0x4c20b7[_0x5a3ea2]=null):_0x4c20b7[_0x5a3ea2]&&_0xca72b6&&_0x4c20b7[_0x5a3ea2]['userId']!==_0x3ac2e5&&(_0x4c20b7[_0x5a3ea2]['end']=_0x89d6a6,_0x2c0bec&&_0x2c0bec['userId']===_0x4c20b7[_0x5a3ea2]['userId']||_0x2e14ba(_0x4c20b7[_0x5a3ea2]),_0x4c20b7[_0x5a3ea2]={'start':_0x89d6a6,'tapeItem':_0x1e3674[_0x5ccb01],'userId':_0x3ac2e5,'type':_0x5a3ea2}),_0x4c20b7[_0x5a3ea2]&&_0x37db77&&('elementStart'!==_0x1e3674[_0x5ccb01]['type']||_0x2c0bec&&_0x2c0bec['userId']===_0x3ac2e5||_0x285c81[_0x5a3ea2]['unshift']({'userId':_0x3ac2e5,'object':_0x1e3674[_0x5ccb01]['item'],'change':_0x4c20b7[_0x5a3ea2]}),'elementEnd'===_0x1e3674[_0x5ccb01]['type']&&_0x2c0bec&&_0x2c0bec['object']===_0x1e3674[_0x5ccb01]['item']&&(_0x285c81[_0x5a3ea2]['shift'](),_0x4c20b7[_0x5a3ea2]=_0x2c0bec['change'])),_0x4c20b7[_0x5a3ea2]&&_0x26e89b&&(_0x4c20b7[_0x5a3ea2]['end']=_0x3516ae,_0x2e14ba(_0x4c20b7[_0x5a3ea2]),_0x4c20b7[_0x5a3ea2]=null);}function _0x2e14ba({start:_0x24ecc9,end:_0x4e97d1,tapeItem:_0x5a17e9,userId:_0x506b3a,type:_0x3a925a}){const _0x3aa8b7=_0x5a17e9['item'],_0x5bd9b6=_0x15277c['schema']['isBlock'](_0x3aa8b7)&&!_0x15277c['schema']['isLimit'](_0x3aa8b7),_0x2c8748=_0x24ecc9['nodeAfter']==_0x4e97d1['parent']&&_0x4e97d1['isAtStart'];if(_0x5bd9b6&&_0x2c8748)return;const _0x4f2d80=_0x15277c['createRange'](_0x24ecc9,_0x4e97d1),_0x148bea=_0x55a74e['get'](_0x506b3a),_0x5ba828=new G({'author':_0x148bea,'type':'isAdded'==_0x3a925a||'isAddSuggestion'==_0x3a925a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3a925a||'isRemoveSuggestion'==_0x3a925a},'createdAt':new Date(),'rootName':_0x4ed30e});_0x25de4a['push'](_0x5ba828),_0x528ae3['markers']['set']('revision:'+_0x5ba828['id'],_0x4f2d80);}function _0x5b2152(_0x27327e,_0x3a04e4){const _0x36e008=_0x27327e['getAttributes'](),_0x59357a=_0x3a04e4['getAttributes']();for(const _0x504558 of _0x36e008){if(_0x504558[0x1]!==_0x3a04e4['getAttribute'](_0x504558[0x0]))return!0x1;_0x59357a['next']();}return _0x59357a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3783f8=>{const _0xf00a74=_0x3783f8['markerName']['split'](':')[0x1],_0x86900d=this['_getChangeFromId'](_0xf00a74);if(!_0x86900d)return null;const _0x2ec8c9='add'==_0x86900d['type']?'insertion':'deletion',_0x18d587=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2ec8c9];return _0x86900d['data']['isSuggestion']&&_0x18d587['push']('ck-suggestion-marker-'+_0x2ec8c9+'-new'),this['activeChange']==_0x86900d&&_0x18d587['push']('ck-suggestion-marker--active'),{'classes':_0x18d587,'attributes':{'data-change-id':_0xf00a74}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x336321=>{_0x336321['on']('element:pre',(_0x52472c,_0x167612,_0x1408bd)=>{const _0x266fcc=_0x167612['viewItem']['getChild'](0x0);if(!_0x266fcc||!_0x266fcc['is']('element','code'))return;if(!_0x1408bd['consumable']['consume'](_0x266fcc,{'attributes':['vid_start','vid_end']}))return;const _0x40e35a=_0x167612['modelRange']['start']['nodeAfter'];_0x1408bd['writer']['setAttribute']('vid_start',_0x266fcc['getAttribute']('vid_start'),_0x40e35a),_0x1408bd['writer']['setAttribute']('vid_end',_0x266fcc['getAttribute']('vid_end'),_0x40e35a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x564bfe=>{_0x564bfe['on']('element',(_0x2cd645,_0x2f27bb,_0x1cd14d)=>{if(!_0x1cd14d['consumable']['consume'](_0x2f27bb['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2f27bb['modelRange']['isCollapsed'])return;const _0x5ca3e0=_0x2f27bb['modelRange']['start']['nodeAfter'];_0x5ca3e0['hasAttribute']('vid_start')||_0x5ca3e0['hasAttribute']('vid')||(_0x1cd14d['writer']['setAttribute']('vid_start',_0x2f27bb['viewItem']['getAttribute']('vid_start'),_0x5ca3e0),_0x1cd14d['writer']['setAttribute']('vid_end',_0x2f27bb['viewItem']['getAttribute']('vid_end'),_0x5ca3e0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x42536b=>_0x42536b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x172a33,[,_0x5cd6c9])=>{['vid_start','vid_end','vid']['includes'](_0x5cd6c9)&&(_0x172a33['return']=!0x0,_0x172a33['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1bb2e3=>{_0x1bb2e3['on']('attribute:vid',(_0x2af50e,_0x2cb9e4,_0x185e69)=>{if('\x20'!=_0x2cb9e4['item']['data']||_0x2cb9e4['item']['parent']['maxOffset']>0x1)return;if(!_0x185e69['consumable']['consume'](_0x2cb9e4['item'],_0x2af50e['name']))return;const _0x4d7dd3=_0x185e69['writer'],_0x5966d9=_0x185e69['mapper']['toViewRange'](_0x2cb9e4['range']);_0x4d7dd3['wrap'](_0x5966d9,_0x4d7dd3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x44b14f){const _0x3efdf1=_0x44b14f['plugins']['get']('RevisionViewer');return(_0x37123d,_0x5f12b2,_0x2d2b93)=>{const _0x147589=_0x5f12b2['markerName']['split'](':')[0x1],_0x645f66=_0x3efdf1['_getChangeFromId'](_0x147589);if(!_0x645f66)return null;const _0xef83d4='add'==_0x645f66['type']?'split':'merge';if(!_0x2d2b93['consumable']['test'](_0x5f12b2['markerRange'],_0x37123d['name']))return;const _0x8598b5=_0x5f12b2['markerRange']['getWalker'](),_0x2742e8=_0x5f12b2['markerRange']['start'],_0x38de63=_0x44b14f['model']['schema'];let _0x59fdfc=null,_0x3ab0da=null,_0x844619=!0x1,_0x45d29e=!0x1;for(const _0x38adfc of _0x8598b5){const _0x55f3f6=_0x38adfc['item'];_0x844619=_0x844619||_0x38de63['isContent'](_0x55f3f6);const _0x13cf63=_0x2d2b93['mapper']['toViewElement'](_0x55f3f6);if(_0x13cf63&&_0x13cf63['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x38adfc['type']&&(_0x38de63['isBlock'](_0x55f3f6)&&!_0x38de63['isLimit'](_0x55f3f6)&&(_0x55f3f6['nextSibling']||_0x2742e8['isAtEnd']?_0x59fdfc&&_0x59fdfc['parent']==_0x55f3f6||(_0x59fdfc=_0x55f3f6,_0x4e8156(_0x38adfc['previousPosition']),_0x45d29e=!0x0):_0x3ab0da=_0x3ab0da||_0x38adfc['previousPosition']));}function _0x4e8156(_0xc9c37a){const _0x45741d=_0x2d2b93['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xef83d4}),_0x1f72f8=_0x2d2b93['mapper']['toViewPosition'](_0xc9c37a);_0x645f66['data']['isSuggestion']&&_0x2d2b93['writer']['addClass']('ck-suggestion-marker-'+_0xef83d4+'-new',_0x45741d),_0x3efdf1['activeChange']==_0x645f66&&_0x2d2b93['writer']['addClass']('ck-suggestion-marker--active',_0x45741d),_0x2d2b93['writer']['insert'](_0x1f72f8,_0x45741d),_0x2d2b93['mapper']['bindElementToMarker'](_0x45741d,_0x5f12b2['markerName']);}_0x844619||_0x45d29e||!_0x3ab0da||_0x4e8156(_0x3ab0da);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x34aef6,_0x34ed83,_0x519f08)=>{const _0x4e097e=_0x519f08['mapper']['markerNameToElements'](_0x34ed83['markerName']);if(_0x4e097e){for(const _0x2e5ecf of _0x4e097e)(_0x2e5ecf['hasClass']('ck-suggestion-marker-split')||_0x2e5ecf['hasClass']('ck-suggestion-marker-merge'))&&(_0x519f08['mapper']['unbindElementFromMarkerName'](_0x2e5ecf,_0x34ed83['markerName']),_0x519f08['writer']['remove'](_0x2e5ecf));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x29b5f3,_0x52f14b,_0xd975f2)=>{const _0x98ca06=_0x52f14b['markerName']['split'](':')[0x1],_0x202344=this['_getChangeFromId'](_0x98ca06);if(!_0x202344)return null;const _0x1308d6='add'==_0x202344['type']?'split':'merge';if(_0xd975f2['consumable']['test'](_0x52f14b['markerRange'],_0x29b5f3['name']))for(const _0x5d2501 of _0x52f14b['markerRange']['getItems']()){if(!_0x5d2501['is']('element','softBreak'))continue;const _0x22530d=_0xd975f2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1308d6}),_0x4e4bc9=_0xd975f2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5d2501));_0x202344['data']['isSuggestion']&&_0xd975f2['writer']['addClass']('ck-suggestion-marker-'+_0x1308d6+'-new',_0x22530d),this['activeChange']==_0x202344&&_0xd975f2['writer']['addClass']('ck-suggestion-marker--active',_0x22530d),_0xd975f2['writer']['insert'](_0x4e4bc9,_0x22530d),_0xd975f2['mapper']['bindElementToMarker'](_0x22530d,_0x52f14b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x33c748=>{for(const _0x2d5b95 of this['editor']['model']['document']['getRootNames']()){const _0x342f43=this['editor']['model']['document']['getRoot'](_0x2d5b95),_0x3dd63f=this['editor']['editing']['view']['document']['getRoot'](_0x2d5b95);if(_0x3dd63f){const _0x506036=_0x342f43['getAttribute']('revisionHistoryAttachChange');if(_0x33c748['removeAttribute']('data-change-id',_0x3dd63f),_0x33c748['removeClass']('ck-revision-history-root-add',_0x3dd63f),_0x33c748['removeClass']('ck-revision-history-root-remove',_0x3dd63f),_0x33c748['removeClass']('ck-revision-history-root--active',_0x3dd63f),_0x506036){const _0xb7f3a=this['_getChangeFromId'](_0x506036);if(!_0xb7f3a)return null;_0x33c748['setAttribute']('data-change-id',_0x506036,_0x3dd63f),_0x33c748['addClass']('ck-revision-history-root-'+_0xb7f3a['type'],_0x3dd63f),this['activeChange']==_0xb7f3a&&_0x33c748['addClass']('ck-revision-history-root--active',_0x3dd63f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3f11dc=>'revision-comment:'+_0x3f11dc,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3c47bb=>'revision-suggestion:'+_0x3c47bb,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5d1eba=>({'name':'suggestion:'+_0x5d1eba,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x34590b=>{const _0x23e3a6=_0x34590b['markerName']['split'](':')[0x1];return'insertion'!=_0x23e3a6&&'deletion'!=_0x23e3a6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x23e3a6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x13ca60,_0x443fd4,_0x7dbee8)=>{const _0x5f429e=_0x7dbee8['mapper']['markerNameToElements'](_0x443fd4['markerName']);if(_0x5f429e){for(const _0x4165c3 of _0x5f429e)_0x4165c3['is']('uiElement')&&(_0x7dbee8['mapper']['unbindElementFromMarkerName'](_0x4165c3,_0x443fd4['markerName']),_0x7dbee8['writer']['remove'](_0x4165c3));}},{'priority':'high'});}['_getChangeFromId'](_0x5abe8d){return this['_changeIdToChange']['get'](_0x5abe8d);}['_getViewForChange'](_0x1fa9d1){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x1fa9d1),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x27fcc0,_0xb7e888,_0x25f88c,_0x492617)=>{_0x492617&&this['_balloon']['remove'](_0x492617),_0x25f88c&&(this['_balloon']['add']({'view':_0x25f88c,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4bbcec=this['editor']['editing'],_0x2a76ed=this['_getChangeFromId'](_0x25f88c['changeId']);let _0x436e78;if(_0x2a76ed['data']['isOnRoot']){const _0xae645b=_0x4bbcec['view']['getDomRoot'](_0x2a76ed['rootName']);_0x436e78=Array['from'](_0xae645b['getClientRects']());}else{const _0x56a69b=this['editor']['model']['markers']['get']('revision:'+_0x25f88c['changeId']);_0x436e78=Array['from'](_0x4bbcec['mapper']['markerNameToElements'](_0x56a69b['name']))['map'](_0x52be36=>_0x4bbcec['view']['domConverter']['mapViewToDom'](_0x52be36))['map'](_0x12e5f6=>Array['from'](_0x12e5f6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x436e78[0x0];return _0x436e78['find'](_0x3d1810=>_0x3d1810['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d1810['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d1810['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d1810['right']+0x3>=this['_activeViewTarget']['x'])||_0x436e78[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x41818f,_0x10177d,_0x56ddcc,_0x327291)=>{this['activeView']=_0x56ddcc?this['_getViewForChange'](_0x56ddcc):null,this['editor']['model']['change'](()=>{const _0x16c48f=this['editor']['editing'];_0x327291&&(_0x327291['data']['isOnRoot']?_0x16c48f['view']['change'](_0x23d323=>{_0x23d323['removeClass']('ck-revision-history-root--active',_0x16c48f['view']['document']['getRoot'](_0x327291['rootName']));}):_0x16c48f['reconvertMarker']('revision:'+_0x327291['id'])),_0x56ddcc&&(_0x56ddcc['data']['isOnRoot']?_0x16c48f['view']['change'](_0x5e8fad=>{_0x5e8fad['addClass']('ck-revision-history-root--active',_0x16c48f['view']['document']['getRoot'](_0x56ddcc['rootName']));}):_0x16c48f['reconvertMarker']('revision:'+_0x56ddcc['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x25a12c,_0x51d76c)=>{if(this['activeChange'])return;const _0x3aae69=this['_findChangeIdFromDomTarget'](_0x51d76c['target']),_0x12936b=this['_changeIdToChange']['get'](_0x3aae69);_0x12936b?(this['_activeViewTarget']={'x':_0x51d76c['domEvent']['x'],'y':_0x51d76c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x12936b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4bee48,_0x406f79)=>{const _0x758526=this['_findChangeIdFromDomTarget'](_0x406f79['target']),_0x1f507a=this['_changeIdToChange']['get'](_0x758526);_0x1f507a?(this['_activeViewTarget']={'x':_0x406f79['domEvent']['x'],'y':_0x406f79['domEvent']['y']},_0x1f507a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1f507a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4cf99f){do{const _0xea752d=_0x4cf99f['getAttribute']('data-change-id');if(_0xea752d)return _0xea752d;_0x4cf99f=_0x4cf99f['parent'];}while(_0x4cf99f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x49f326=>{for(const _0x27105f of this['editor']['model']['markers'])_0x49f326['removeMarker'](_0x27105f);});}}function Q(_0x4f384b,_0x2f39ac){return(_0x5e3b8e,_0xd8ce14,_0x3b1e85)=>{if(!_0x3b1e85['consumable']['test'](_0xd8ce14['markerRange'],_0x5e3b8e['name']))return;const _0x3af9b2=_0xd8ce14['markerRange']['getWalker'](),_0x43c166=_0xd8ce14['markerRange']['start'],_0x5af7da=_0x4f384b['model']['schema'];let _0x2e128f=null,_0xd3b712=null,_0x30ad47=!0x1,_0x5752d0=!0x1;for(const _0x4a1e3d of _0x3af9b2){const _0x2b0060=_0x4a1e3d['item'];_0x30ad47=_0x30ad47||_0x5af7da['isContent'](_0x2b0060);const _0x417b89=_0x3b1e85['mapper']['toViewElement'](_0x2b0060);if(_0x417b89&&_0x417b89['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a1e3d['type']&&(_0x5af7da['isBlock'](_0x2b0060)&&!_0x5af7da['isLimit'](_0x2b0060)&&(_0x2b0060['nextSibling']||_0x43c166['isAtEnd']?_0x2e128f&&_0x2e128f['parent']==_0x2b0060||(_0x2e128f=_0x2b0060,_0x577667(_0x4a1e3d['previousPosition']),_0x5752d0=!0x0):_0xd3b712=_0xd3b712||_0x4a1e3d['previousPosition']));}function _0x577667(_0x5eb1c6){const _0x10668b=_0x3b1e85['mapper']['toViewPosition'](_0x5eb1c6),_0x420f8b=_0x3b1e85['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2f39ac});_0x3b1e85['writer']['insert'](_0x10668b,_0x420f8b),_0x3b1e85['mapper']['bindElementToMarker'](_0x420f8b,_0xd8ce14['markerName']);}_0x30ad47||_0x5752d0||!_0xd3b712||_0x577667(_0xd3b712);};}class nt extends _0x147c99{constructor(_0x50cca5){super(_0x50cca5);const _0x4e0cd0=_0x50cca5['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4e0cd0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4e0cd0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x16bcbd=this['editor'],_0xf7a41e=_0x16bcbd['plugins']['get'](l),_0x327502=_0xf7a41e['isReady']?_0xf7a41e['diff']['newRevisionId']:null;_0x16bcbd['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x327502);}['refresh'](){const {isReady:_0x3e91fb,isEnabled:_0x324ac7,repository:_0xe55c56,diff:_0x16fa62}=this['editor']['plugins']['get'](l),_0x4af28b=_0x16fa62&&_0xe55c56['getLaterVisibleRevision'](_0x16fa62['newRevisionId']);this['isEnabled']=_0x3e91fb&&_0x324ac7&&Boolean(_0x4af28b);}}class ot extends _0x147c99{['_step'];constructor(_0x1825be,{direction:_0x98821c}){super(_0x1825be);const _0x5390d1=_0x1825be['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x98821c?0x1:-0x1,this['listenTo'](_0x5390d1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5390d1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5390d1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1364db=this['editor'],_0x4b0066=_0x1364db['plugins']['get'](l),{isNavigationMode:_0x16974f,currentChangeNumber:_0x50b9d1}=_0x4b0066;let _0x54bde6;if(_0x4b0066['activeChange']=_0x16974f?_0x4b0066['diff']['changes']['get'](_0x50b9d1+this['_step']):_0x4b0066['diff']['changes']['first'],_0x4b0066['activeChange']['data']['isOnRoot'])_0x54bde6=_0x1364db['editing']['view']['getDomRoot'](_0x4b0066['activeChange']['rootName']);else{const _0x58b0d3=_0x1364db['model']['markers']['get']('revision:'+_0x4b0066['activeChange']['id']);_0x54bde6=_0x2dd75d(_0x1364db['editing'],_0x58b0d3);}_0x20ce4c({'target':_0x54bde6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2d6985,currentChangeNumber:_0x323c18,numberOfChanges:_0x1a9d06,isReady:_0x596fa6,isEnabled:_0x494f79}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x494f79&&_0x596fa6&&_0x1a9d06)&&(!_0x2d6985||(0x1===this['_step']?_0x323c18<_0x1a9d06-0x1:_0x323c18>0x0));}}class Ri extends _0x3001a4{constructor(_0x138d29){super(_0x138d29);const _0x518130=this['bindTemplate'],_0x245b5a=new _0x462f0b(_0x138d29),_0x3e2c17=new _0x462f0b(_0x138d29);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',(_0x2580bc,_0x86872f)=>_0x2580bc&&_0x86872f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x436936,_0x4bdaf4,_0x5b4d6f,_0x296e76)=>{if(!_0x436936)return R(_0x138d29,'Loading...');if(!_0x5b4d6f)return R(_0x138d29,'No\x20changes');const _0x364aa1=R(_0x138d29,'NUMBER_OF_CHANGES',_0x5b4d6f);return _0x296e76?R(_0x138d29,'X_OF_Y_CHANGES',[_0x4bdaf4+0x1,_0x5b4d6f]):_0x364aa1;}),_0x245b5a['set']({'label':R(_0x138d29,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x26c96a}),_0x3e2c17['set']({'label':R(_0x138d29,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5dd6f6}),_0x245b5a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3e2c17['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x245b5a['on']('execute',()=>this['fire']('execute','backward')),_0x3e2c17['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',_0x518130['if']('_isStatusLabelVisible','ck-hidden',_0x35db9c=>!_0x35db9c)]},'children':[{'text':_0x518130['to']('isNavigationMode',_0x1e63c3=>_0x1e63c3?R(_0x138d29,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x138d29,'Total')+':\x20')}]},{'text':_0x518130['to']('_statusText')}]},new _0x516843(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x245b5a,_0x3e2c17]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0xebc3e0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4579c9=this['editor']['editing']['view'];_0x4579c9['change'](_0x3f0b41=>{for(const _0x12d37d of _0x4579c9['document']['roots'])_0x3f0b41['addClass'](ge,_0x12d37d);});}['hide'](){const _0x163478=this['editor']['editing']['view'];_0x163478['change'](_0x55a65a=>{for(const _0xba0d91 of _0x163478['document']['roots'])_0x55a65a['removeClass'](ge,_0xba0d91);});}}class u extends _0xebc3e0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x3807e3=this['editor'],_0x225f22=_0x3807e3['plugins']['get'](l),_0x3d07c8=_0x3807e3['plugins']['get'](ji);_0x3807e3['ui']['componentFactory']['add']('exitToEditing',_0x26d304=>{const _0x4b6888=new _0x462f0b(_0x26d304);return _0x4b6888['set']({'label':R(_0x26d304,'Back\x20to\x20editing'),'icon':_0x56b3ea,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4b6888,'execute',()=>{_0x3807e3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4b6888;}),_0x3807e3['ui']['componentFactory']['add']('restoreRevision',_0x17b940=>{const _0x5182bd=new _0x462f0b(_0x17b940);return _0x5182bd['set']({'label':R(_0x17b940,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5182bd['bind']('isEnabled')['to'](_0x3807e3['commands']['get']('restoreRevision')),this['listenTo'](_0x5182bd,'execute',()=>_0x3807e3['execute']('restoreRevision')),_0x5182bd;}),_0x3807e3['ui']['componentFactory']['add']('changesNavigation',_0x48683d=>{const _0x2e928f=new Ri(_0x48683d),_0x299acd=_0x3807e3['commands']['get']('showPreviousChange'),_0x31a189=_0x3807e3['commands']['get']('showNextChange');return _0x2e928f['bind']('isBackwardNavigationEnabled')['to'](_0x299acd,'isEnabled'),_0x2e928f['bind']('isForwardNavigationEnabled')['to'](_0x31a189,'isEnabled'),_0x2e928f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x225f22),this['listenTo'](_0x2e928f,'execute',(_0x58049f,_0x50103a)=>{_0x3807e3['execute']('forward'===_0x50103a?'showNextChange':'showPreviousChange');}),_0x2e928f;}),_0x3d07c8['show'](),_0x225f22['on']('change:isReady',(_0x1681b5,_0x343949,_0x33df10)=>{_0x33df10?_0x3d07c8['hide']():_0x3d07c8['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x3c915f,_0x2d9dd4){super(_0x3c915f,_0x2d9dd4);const _0x36d4ab=this['bindTemplate'];this['set']({'label':R(_0x3c915f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3c915f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x36d4ab['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x353beb=this['fieldView']['element'];this['_tooltipString']=_0x353beb['scrollWidth']>_0x353beb['clientWidth']&&_0x353beb['value']||'';}}class vi extends _0x3001a4{constructor(_0x3f6744,_0x4c6880,_0x269308){super(_0x3f6744);const _0x19a357=new _0x35dec8();_0x19a357['set']({'content':_0x20968b,'viewBox':'0\x200\x2011\x2010'});const _0x16f1af=['ck','ck-revision-history-sidebar__revision-author'];_0x269308&&_0x16f1af['push']('ck-revision-history-sidebar__revision-author_creator');const _0x23de27=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3f6744,_0x269308?'Revision\x20creator':'Revision\x20author')},'children':[_0x19a357,_0x4c6880['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x16f1af},'children':_0x23de27});}}function mi(_0x443aa0,_0x2a0872){const _0x4215d2=_0x443aa0['bindTemplate'],_0x2e85a5=_0x443aa0['locale'],_0x65da50=_0x4b4187(_0x2e85a5);_0x65da50['panelPosition']='sw';const _0x5d8969=function(_0x18db3e,_0x44bbd9){const _0x231d3d=function(_0x29eb3f,_0x50880c){const _0x2fa0a5=_0x29eb3f['locale'],_0x2f5b96={'Compare\x20against\x20selected':R(_0x2fa0a5,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2fa0a5,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2fa0a5,'Restore\x20this\x20revision')};return _0x50880c['map'](_0x3d38bb=>{const _0x1b145a=_0x2f5b96[_0x3d38bb['name']];return _0x1b145a&&_0x1b145a!==_0x3d38bb['name']&&(_0x3d38bb['name']=_0x1b145a),_0x3d38bb;});}(_0x18db3e,_0x44bbd9),_0x228d44=new _0x25aee0();for(const _0x44dd78 of _0x231d3d){const _0x11efbe={'type':'button','model':new to({'label':_0x44dd78['name'],'class':_0x44dd78['class'],'withText':!0x0,'role':'menuitem','_action':_0x44dd78['action']})};_0x11efbe['model']['bind']('isEnabled')['to'](_0x18db3e,'isActionsDropdownOpen',_0x19baaa=>'function'!=typeof _0x44dd78['isEnabled']||(!_0x19baaa||_0x44dd78['isEnabled'](_0x18db3e))),_0x228d44['add'](_0x11efbe);}return _0x228d44;}(_0x443aa0,_0x2a0872);return _0x443aa0['bind']('isActionsDropdownOpen')['to'](_0x65da50,'isOpen'),_0x65da50['buttonView']['set']({'label':R(_0x2e85a5,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4fc43a}),_0x65da50['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4215d2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4215d2['to'](_0x36eeb5=>_0x36eeb5['stopPropagation']())}}),_0x65da50['on']('execute',_0x3752b3=>{_0x443aa0['isReady']&&'function'==typeof _0x3752b3['source']['_action']&&_0x3752b3['source']['_action'](_0x443aa0);}),_0x415f8b(_0x65da50,_0x5d8969,{'role':'menu'}),_0x65da50['listenTo'](_0x443aa0,'change:isActionsDropdownOpen',(_0x3917ba,_0x5f250b,_0x29cf10)=>{if(_0x29cf10)for(const _0x115503 of _0x65da50['listView']['items']){const _0x339890=_0x115503['children']['first'],_0x578d8=_0x2a0872['find'](_0x71b5a1=>_0x71b5a1['action']===_0x339890['_action'])['isVisible'];_0x115503['isVisible']=void 0x0===_0x578d8||_0x578d8(_0x443aa0);}}),_0x65da50;}class pi extends/* #__PURE__ -- @preserve */
27
+ _0x5f2767(_0x3001a4){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3d863c,_0x489b66,_0x2ec01c,_0x2dfc65){super(_0x3d863c);const _0xd1eef=this['bindTemplate'],_0x5ce6c8=function(_0x3d1e0a,_0x1daf07){const _0x1f04fc=Array['from'](_0x1daf07['authors'])['filter'](_0xdd6b5f=>_0xdd6b5f!=_0x1daf07['creator']);return _0x1daf07['creator']&&_0x1f04fc['unshift'](_0x1daf07['creator']),_0x1f04fc['map'](_0x5d3202=>new vi(_0x3d1e0a,_0x5d3202,_0x5d3202==_0x1daf07['creator']));}(_0x3d863c,_0x489b66);this['id']=_0x489b66['id'],this['_revision']=_0x489b66,this['_requireRevisionName']=_0x2dfc65,this['bind']('name','createdAt')['to'](_0x489b66),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2ea34a=>{return _0xcca980=_0x3d863c['uiLanguage'],(_0x470d5b=_0x2ea34a)['toLocaleDateString'](_0xcca980,{'month':'long','day':'numeric'})+',\x20'+_0x470d5b['toLocaleTimeString'](_0xcca980,{'hour':'numeric','minute':'numeric'});var _0xcca980,_0x470d5b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x3d863c,_0x20b885),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x41e940=>_0x41e940||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5d73fb,_0x487e27)=>_0x5d73fb&&_0x487e27),this['revisionActionsView']=_0x2ec01c&&_0x2ec01c['length']?mi(this,_0x2ec01c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xd1eef['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xd1eef['if']('isEnabled','ck-disabled',_0x217782=>!_0x217782),_0xd1eef['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xd1eef['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xd1eef['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':_0xd1eef['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':_0x5ce6c8}]},this['revisionActionsView']],'on':{'click':_0xd1eef['to'](_0x51e1b4=>{_0x51e1b4['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4931f5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4931f5,'change',()=>{this['_requireRevisionName']&&!_0x4931f5['value']||this['fire']('setName',{'id':this['id'],'name':_0x4931f5['value']}),_0x4931f5['value']||(_0x4931f5['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x5d58f4,_0x41e1d6){const _0x325311=_0x2d35fb['fromJSDate'](_0x5d58f4)['setLocale'](_0x41e1d6),_0x1db721=_0x2d35fb['local'](),_0x103058=_0x1db721['minus']({'days':0x1})['startOf']('day');let _0x44dff6,_0x240f15;return _0x325311['hasSame'](_0x1db721,'day')?(_0x44dff6=_0x325311['startOf']('day')['toJSDate'](),_0x240f15=_0x325311['toRelativeCalendar']()):_0x325311['hasSame'](_0x103058,'day')?(_0x44dff6=_0x103058['toJSDate'](),_0x240f15=_0x325311['toRelativeCalendar']()):_0x325311['hasSame'](_0x1db721,'week')?(_0x44dff6=_0x325311['startOf']('week')['toJSDate'](),_0x240f15=_0x325311['weekdayLong']||''):_0x325311['hasSame'](_0x1db721,'year')?(_0x44dff6=_0x325311['startOf']('month')['toJSDate'](),_0x240f15=_0x325311['monthLong']||''):(_0x44dff6=_0x325311['startOf']('year')['toJSDate'](),_0x240f15=String(_0x325311['year'])),{'startDate':_0x44dff6,'localizedPeriodName':_0x240f15};}class fi extends _0x3001a4{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1cb858,_0x41b26c,_0x37b7f9,_0xd42928){super(_0x1cb858);const _0x4be9d7=bi(_0x41b26c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x41b26c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x37b7f9,this['_requireRevisionName']=_0xd42928,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':_0x4be9d7}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2ead78){const _0x5cc072=new pi(this['locale'],_0x2ead78,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5cc072);}['removeRevision'](_0x358585){const _0x27162b=this['revisionViews']['find'](_0x6a9e2a=>_0x6a9e2a['id']===_0x358585['id']);this['revisionViews']['remove'](_0x27162b);}}class ki extends _0x3001a4{constructor(_0x1dbdf6){super(_0x1dbdf6);const _0x4d3abb=new _0x35dec8();_0x4d3abb['content']=_0x44948c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4d3abb,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1dbdf6,'Revision\x20history')]}]});}}class ui extends _0x3001a4{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x182f74,_0x24c3d0,_0x3e39c9,_0xc0d3aa){super(_0x182f74);const _0x44afcb=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x24c3d0,this['_revisionActions']=_0x3e39c9,this['_requireRevisionName']=_0xc0d3aa,this['on']('select',(_0x58c0d4,_0x3f2223)=>{this['fire']('revisionSelected',_0x3f2223);}),this['on']('setName',(_0x16309a,_0x2f7bbe)=>{this['fire']('revisionSetName',_0x2f7bbe);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x182f74),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x44afcb['if']('isEnabled','ck-disabled',_0x548934=>!_0x548934)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2190d5 of this['_revisions'])this['_addRevision'](_0x2190d5);this['_revisions']['on']('add',(_0xde8fd9,_0x534852)=>{this['_addRevision'](_0x534852);}),this['_revisions']['on']('remove',(_0x13d2fe,_0x3b7cfe)=>{this['_removeRevision'](_0x3b7cfe);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x32fbae=>_0x32fbae['revisionViews']['map'](_0x1b5691=>_0x1b5691))['flat']();}['selectRevision'](_0x441d08){for(const _0x595948 of this['revisionViews'])_0x441d08&&_0x441d08['id']===_0x595948['id']?_0x595948['select']():_0x595948['deselect']();}['highlightRevisions'](_0xb89b5){for(const _0x4f5644 of this['revisionViews'])_0xb89b5['some'](({id:_0x55f617})=>_0x55f617===_0x4f5644['id'])?_0x4f5644['highlight']():_0x4f5644['unhighlight']();}['_addRevision'](_0x213563){const _0x2ad5ea=bi(_0x213563['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x17f853=this['timePeriodViews']['get'](0x0);_0x17f853&&_0x17f853['startDate']['getTime']()===_0x2ad5ea['getTime']()||(_0x17f853=new fi(this['locale'],_0x2ad5ea,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x17f853)),_0x17f853['addRevision'](_0x213563);}['_removeRevision'](_0x3f07bd){const _0x1e8a7e=bi(_0x3f07bd['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1e8a7e)['removeRevision'](_0x3f07bd);}['_getTimePeriodViewByStartDate'](_0x41baec){return this['timePeriodViews']['find'](_0x211d5b=>_0x211d5b['startDate']['getTime']()===_0x41baec['getTime']());}}class f extends _0xebc3e0{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
28
28
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
29
- rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x3e7c8d){super(_0x3e7c8d),this['_revisionViewer']=_0x3e7c8d['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1bd1a9=this['_revisionsRepository']['_revisions'],_0x17e61a=this['_createRevisionActions'](),_0x136efe=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new si(this['editor']['locale'],_0x1bd1a9,_0x17e61a,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',(_0x3a2ab6,_0x25e652)=>{_0x25e652['revisionViews']['on']('add',(_0x483980,_0x1089c0)=>{_0x1089c0['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)),_0x136efe['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1c5569=this['_revisionsRepository']['getRevision'](0x0);if(_0x1c5569){const _0x1d1951=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1c5569['id']);this['_revisionViewer']['compare'](_0x1c5569,_0x1d1951);}}['_handleRevisionSelected'](_0x30bf05,_0x21de4e){const _0x6a3cf8=this['_revisionsRepository']['getRevision'](_0x21de4e['id']),_0x151969=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x6a3cf8['id']);this['_revisionViewer']['compare'](_0x6a3cf8,_0x151969);}['_handleRevisionSetName'](_0x138af8,_0x3a263){this['_revisionsRepository']['getRevision'](_0x3a263['id'])['setName'](_0x3a263['name']);}['_handleDiffChange'](_0x8e8802,_0x3d99e8,_0x289c53){const _0x399228=this['_revisionsRepository']['getRevisionsInDiff'](_0x289c53);_0x399228['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x399228),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x399228[0x0]));}['_createRevisionActions'](){const _0x2c2d57=this['editor'],_0x269cf6=f['availableRevisionActions'],_0x4cde85=_0x2c2d57['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x4cde85['length'])return _0x4cde85['map'](_0x15626f=>{const _0x1c7645='string'==typeof _0x15626f?Object['assign']({},_0x269cf6[_0x15626f]):_0x15626f;return _0x1c7645['action']=_0x1c7645['action']['bind'](this,_0x2c2d57),_0x1c7645['isVisible']&&(_0x1c7645['isVisible']=_0x1c7645['isVisible']['bind'](this,_0x2c2d57)),_0x1c7645;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1ef5ea},_0x5ba86b)=>{const _0x2e33e2=_0x1ef5ea['get'](l),_0x57f1dd=_0x2e33e2['repository'];let _0x11b3e7=_0x2e33e2['diff']['newRevisionId'],_0x1595cd=_0x5ba86b['id'];_0x57f1dd['getIndex'](_0x11b3e7)>_0x57f1dd['getIndex'](_0x1595cd)&&([_0x11b3e7,_0x1595cd]=[_0x1595cd,_0x11b3e7]),_0x2e33e2['compare'](_0x11b3e7,_0x1595cd);},'isVisible':({plugins:_0x56b34c},_0x47c217)=>{const _0x305244=_0x56b34c['get'](l);return!(_0x305244['repository']['getRevisionsInDiff'](_0x305244['diff'])['length']>0x2)&&!_0x47c217['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x230887,{id:_0x4c7360})=>{_0x230887['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4c7360);},'isVisible':({plugins:_0x23f9ed},_0xfca6ad)=>!!_0x23f9ed['get'](l)['repository']['getLaterVisibleRevision'](_0xfca6ad['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x449c2d},{id:_0x8e5d0a,revisionNameView:_0x5627aa})=>{const _0x215cb0=_0x449c2d['get'](l),_0x42d1ea=_0x215cb0['repository']['getEarlierVisibleRevision'](_0x8e5d0a);_0x215cb0['compare'](_0x8e5d0a,_0x42d1ea),_0x5627aa['focus'](),_0x5627aa['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x430519,_0x49b0bc){super(_0x430519),this['_view']=_0x49b0bc,this['_toolbarConfig']=st(_0x430519['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x15e959){const _0x26b8a2=this['editor'],_0x5cd424=this['view'],_0x1440b7=_0x26b8a2['editing']['view'],_0x1816aa=_0x5cd424['editable'],_0x336837=_0x1440b7['document']['getRoot']();_0x1816aa['name']=_0x336837['rootName'],_0x5cd424['render']();const _0x2b59ca=_0x1816aa['element'];this['setEditableElement'](_0x1816aa['name'],_0x2b59ca),_0x5cd424['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1440b7['attachDomRoot'](_0x2b59ca),this['_elementReplacer']['replace'](_0x15e959,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5db330=this['view'],_0x2b6d7f=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2b6d7f['detachDomRoot'](_0x5db330['editable']['name']),_0x5db330['destroy']();}['_initToolbar'](){const _0x1ba5dd=this['view'];_0x1ba5dd['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1ba5dd['stickyPanel']['limiterElement']=_0x1ba5dd['element'],_0x1ba5dd['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1f3b85})=>_0x1f3b85),_0x1ba5dd['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1ba5dd['toolbar']);}}class ii extends _0x313843{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4e743c,_0x5d0718,_0x578618={}){super(_0x4e743c),this['stickyPanel']=new _0x436b55(_0x4e743c),this['toolbar']=new _0x3a21fd(_0x4e743c,{'shouldGroupWhenFull':_0x578618['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x4e743c,_0x5d0718);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
30
- _0x489004(_0x1f4a2c){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xe9cf5d,_0xafc357){super(_0xafc357),this['sourceElement']=_0xe9cf5d,this['model']['document']['createRoot']();const _0x3ef2fa=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3ef2fa);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x24d6d7,_0x519ddb){const _0x2f268e=new this(_0x24d6d7,_0x519ddb);return await _0x2f268e['initPlugins'](),await _0x2f268e['ui']['init'](_0x24d6d7),await _0x2f268e['data']['init'](_0x2f268e['config']['get']('initialData')||''),_0x2f268e['fire']('ready'),_0x2f268e;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x5e8bcb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bb341){function _0x11f9f0(_0x4ecb98){return _0x4ecb98['map'](_0xfe0508=>String['fromCharCode'](_0xfe0508))['join']('');}super(_0x2bb341),this['result']='end',_0x2bb341[_0x11f9f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11f9f0([0x76,0x69,0x65,0x77])][_0x11f9f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11f9f0([0x61,0x75,0x74,0x6f]),_0x2bb341[_0x11f9f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x11f9f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11f9f0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x11f9f0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x11f9f0([0x6f,0x6b])});}}class ht extends _0x5e8bcb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x38b325){if(super(_0x38b325),!this['editor']['config']['get']('revisionHistory'))throw new _0xe7e073('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1262d7=>this['_showRevisionViewer']({..._0x1262d7,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x35ecab=>this['_closeRevisionViewer'](_0x35ecab)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xaf2a7b=>this['_restoreRevision'](_0xaf2a7b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x30a5ee){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x30a5ee;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x42bc1c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x42bc1c);}['getRevision'](_0x28b1f9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x28b1f9);}['getRevisions'](_0x2f4156){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2f4156||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x578497=this['editor'],_0x2aaac4=_0x13bb37(_0x578497,d),_0x3dc542=_0x578497['plugins']['get']('RevisionTracker'),_0x599ff6=_0x578497['plugins']['get']('Users')['users'];return _0x2aaac4['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2aaac4['lazyRoots'],(_0x2aaac4['plugins']['push'](at,l,u,class extends _0x5e8bcb{static get['requires'](){return[l,'Users'];}['init'](){const _0x7ed615=this['editor']['plugins']['get']('Users');for(const _0x455efd of _0x599ff6)_0x455efd['isAnonymous']||_0x7ed615['getUser'](_0x455efd['id'])||_0x7ed615['addUser'](_0x455efd);const _0x47ff5a=_0x3dc542['repository']['getRevisions']();let _0x97aef1=null;const _0x11a08e=this['editor']['plugins']['get']('RevisionViewer');_0x11a08e['adapter']=_0x3dc542['adapter'],_0x11a08e['bind']('isEnabled')['to'](_0x3dc542),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x578497,'isReadOnly',_0xac0b00=>!_0xac0b00);for(const _0x50b20b of _0x47ff5a){const _0x4adec3=null===_0x50b20b['creator'];if(_0x4adec3&&_0x50b20b['toVersion']===_0x50b20b['fromVersion'])continue;const _0xaeeba5=_0x50b20b['toJSON']();_0x11a08e['addRevisionData'](_0xaeeba5,(_0x51997b,_0x1b7526,_0x1332fb)=>{if(_0x4adec3){if(_0x97aef1)_0x97aef1['_update'](_0x51997b,_0x1b7526);else{if(!_0x1b7526){const _0x2e882e=_0x1332fb['toJSON']();_0x2e882e['id']=_0x4de09f(),_0x3dc542['saveRevision'](_0x2e882e,_0x1332fb['toVersion'])['then'](_0x558412=>{_0x97aef1=_0x558412;});}}}else _0x50b20b['_update'](_0x51997b,_0x1b7526);});}}},f),_0x2aaac4);}['_enhanceShowRevisionViewerCallback'](){const _0x1131d2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x203900=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4aebf5=this['editor']['plugins']['get']('Autosave');await _0x4aebf5['save']();}else await _0x203900['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4e76ea=this['editor']['plugins']['get']('Dialog');_0x4e76ea['isOpen']&&_0x4e76ea['hide']();}const _0x4642fc=this['_getRevisionViewerEditorConfig']();return _0x1131d2(_0x4642fc)['then'](_0x4b4f8d=>{return(this['_viewerEditor']=_0x4b4f8d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4b4f8d);})['catch'](_0x44de41=>(console['error'](_0x44de41),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3b56e9=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3b56e9(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1749bf=this['editor']['plugins']['get']('Annotations');_0x1749bf['refreshVisibility'](),_0x1749bf['refreshPositioning']();}})));}['_showRevisionViewer'](_0x390b19){const _0x5cde3a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5748b3=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1f758a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x1f758a,_0x390b19)['then'](_0x54e358=>(_0x5748b3['style']['display']='block',_0x5cde3a['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x54e358));}['_closeRevisionViewer'](_0x52cc54){const _0x35aa63=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x35aa63['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x52cc54['destroy']();}async['_restoreRevision'](_0x3d85ae){const _0x42519d=this['editor'],_0x6a52f1=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3915e7=_0x42519d['plugins']['get']('RevisionTracker'),_0x4a2911=_0x42519d['plugins']['get']('RevisionHistoryUtils'),_0x3c2f2c=_0x6a52f1['repository']['getRevision'](_0x3d85ae);let _0x2abed3,_0x485168,_0x2dc98b;try{await _0x4a2911['loadRevisionData'](_0x3c2f2c,this['adapter']),_0x2abed3=_0x4a2911['getRevisionDocumentData'](_0x3c2f2c),_0x485168=_0x4a2911['getRevisionRootsAttributes'](_0x3c2f2c);}catch(_0x3e47bd){return void console['error'](_0x3e47bd);}_0x42519d['model']['change'](_0x4f2cb4=>{for(const _0x1a70cf of Array['from'](_0x42519d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4f2cb4['removeMarker'](_0x1a70cf);}),_0x6a52f1['isReady']=!0x1,_0x42519d['model']['enqueueChange'](_0x56ee75=>{_0x56ee75['setSelection'](null),_0x56ee75['removeSelectionAttribute'](_0x42519d['model']['document']['selection']['getAttributeKeys']());const _0x1ae0cd=Object['keys'](_0x2abed3);for(const _0x3b1cf2 of _0x42519d['model']['document']['roots'])'$graveyard'!=_0x3b1cf2['rootName']&&_0x3b1cf2['isAttached']()&&!_0x1ae0cd['includes'](_0x3b1cf2['rootName'])&&_0x56ee75['detachRoot'](_0x3b1cf2);for(const _0x3923a5 of _0x1ae0cd){let _0x4a0c45=_0x42519d['model']['document']['getRoot'](_0x3923a5);_0x4a0c45&&_0x4a0c45['isAttached']()||(_0x4a0c45=_0x56ee75['addRoot'](_0x3923a5));const _0x4b5536=_0x485168[_0x3923a5],_0x455262=Object['keys'](_0x4b5536),_0x12761a=_0x2abed3[_0x3923a5];for(const _0x3e0411 of _0x4a0c45['getAttributeKeys']())_0x455262['includes'](_0x3e0411)||_0x56ee75['removeAttribute'](_0x3e0411,_0x4a0c45);for(const _0x357ee8 of _0x455262)_0x56ee75['setAttribute'](_0x357ee8,_0x485168[_0x3923a5][_0x357ee8],_0x4a0c45);_0x56ee75['remove'](_0x56ee75['createRangeIn'](_0x4a0c45)),_0x56ee75['insert'](_0x42519d['data']['parse'](_0x12761a,_0x4a0c45),_0x4a0c45,0x0);}});const _0x17b8bc=R(_0x42519d['locale'],'Restored');if(_0x3c2f2c['name'])_0x2dc98b=-0x1==_0x3c2f2c['name']['indexOf'](_0x17b8bc)?_0x17b8bc+':\x20'+_0x3c2f2c['name']:_0x3c2f2c['name'];else _0x2dc98b=_0x17b8bc+':\x20'+(_0x3c2f2c['createdAt']['toLocaleDateString'](_0x42519d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3c2f2c['createdAt']['toLocaleTimeString'](_0x42519d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3915e7['saveRevision']({'name':_0x2dc98b}),_0x6a52f1['isReady']=!0x0,_0x42519d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,Ri as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
29
+ rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x521b48){super(_0x521b48),this['_revisionViewer']=_0x521b48['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2ce5bf=this['_revisionsRepository']['_revisions'],_0x232143=this['_createRevisionActions'](),_0x298121=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x2ce5bf,_0x232143,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',(_0x4162ae,_0x2831bc)=>{_0x2831bc['revisionViews']['on']('add',(_0x324bd5,_0x3e7a93)=>{_0x3e7a93['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)),_0x298121['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x28268f=this['_revisionsRepository']['getRevision'](0x0);if(_0x28268f){const _0x443cbc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x28268f['id']);this['_revisionViewer']['compare'](_0x28268f,_0x443cbc);}}['_handleRevisionSelected'](_0x15dc59,_0xe11514){const _0x116645=this['_revisionsRepository']['getRevision'](_0xe11514['id']),_0x2195ac=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x116645['id']);this['_revisionViewer']['compare'](_0x116645,_0x2195ac);}['_handleRevisionSetName'](_0x4af316,_0x5ad774){this['_revisionsRepository']['getRevision'](_0x5ad774['id'])['setName'](_0x5ad774['name']);}['_handleDiffChange'](_0x51c8b0,_0xf7994e,_0x448b8d){const _0xb3bdc5=this['_revisionsRepository']['getRevisionsInDiff'](_0x448b8d);_0xb3bdc5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xb3bdc5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xb3bdc5[0x0]));}['_createRevisionActions'](){const _0x374b2f=this['editor'],_0x4b04fc=f['availableRevisionActions'],_0x21af64=_0x374b2f['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x21af64['length'])return _0x21af64['map'](_0x2c7ac2=>{const _0x36b868='string'==typeof _0x2c7ac2?Object['assign']({},_0x4b04fc[_0x2c7ac2]):_0x2c7ac2;return _0x36b868['action']=_0x36b868['action']['bind'](this,_0x374b2f),_0x36b868['isVisible']&&(_0x36b868['isVisible']=_0x36b868['isVisible']['bind'](this,_0x374b2f)),_0x36b868;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x13c203},_0x47a5db)=>{const _0x43e7a8=_0x13c203['get'](l),_0xdbd1ac=_0x43e7a8['repository'];let _0x1dbe6e=_0x43e7a8['diff']['newRevisionId'],_0x18c9ad=_0x47a5db['id'];_0xdbd1ac['getIndex'](_0x1dbe6e)>_0xdbd1ac['getIndex'](_0x18c9ad)&&([_0x1dbe6e,_0x18c9ad]=[_0x18c9ad,_0x1dbe6e]),_0x43e7a8['compare'](_0x1dbe6e,_0x18c9ad);},'isVisible':({plugins:_0x3d5b2d},_0x8a4bdc)=>{const _0x55a3ef=_0x3d5b2d['get'](l);return!(_0x55a3ef['repository']['getRevisionsInDiff'](_0x55a3ef['diff'])['length']>0x2)&&!_0x8a4bdc['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1a5869,{id:_0xb8cad8})=>{_0x1a5869['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xb8cad8);},'isVisible':({plugins:_0x4f48d9},_0x34f968)=>!!_0x4f48d9['get'](l)['repository']['getLaterVisibleRevision'](_0x34f968['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xa94a4c},{id:_0x58c013,revisionNameView:_0x599647})=>{const _0x428815=_0xa94a4c['get'](l),_0x6fe99d=_0x428815['repository']['getEarlierVisibleRevision'](_0x58c013);_0x428815['compare'](_0x58c013,_0x6fe99d),_0x599647['focus'](),_0x599647['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1925b2,_0x26b376){super(_0x1925b2),this['_view']=_0x26b376,this['_toolbarConfig']=st(_0x1925b2['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x23b0b6){const _0x17343c=this['editor'],_0x28adb4=this['view'],_0x11132b=_0x17343c['editing']['view'],_0x35b426=_0x28adb4['editable'],_0x5288a3=_0x11132b['document']['getRoot']();_0x35b426['name']=_0x5288a3['rootName'],_0x28adb4['render']();const _0x193f68=_0x35b426['element'];this['setEditableElement'](_0x35b426['name'],_0x193f68),_0x28adb4['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x11132b['attachDomRoot'](_0x193f68),this['_elementReplacer']['replace'](_0x23b0b6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x31a3f6=this['view'],_0x5d283d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5d283d['detachDomRoot'](_0x31a3f6['editable']['name']),_0x31a3f6['destroy']();}['_initToolbar'](){const _0x830385=this['view'];_0x830385['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x830385['stickyPanel']['limiterElement']=_0x830385['element'],_0x830385['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2f003c})=>_0x2f003c),_0x830385['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x830385['toolbar']);}}class ii extends _0x46135a{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2bd2c2,_0x1bf27a,_0x2fd9d4={}){super(_0x2bd2c2),this['stickyPanel']=new _0x4ab08d(_0x2bd2c2),this['toolbar']=new _0x383f66(_0x2bd2c2,{'shouldGroupWhenFull':_0x2fd9d4['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x2bd2c2,_0x1bf27a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
30
+ _0x5af58f(_0x168e66){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x47e6a4,_0x2d08f2){super(_0x2d08f2),this['sourceElement']=_0x47e6a4,this['model']['document']['createRoot']();const _0x3e6728=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3e6728);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4900ce,_0x5602d0){const _0x55f844=new this(_0x4900ce,_0x5602d0);return await _0x55f844['initPlugins'](),await _0x55f844['ui']['init'](_0x4900ce),await _0x55f844['data']['init'](_0x55f844['config']['get']('initialData')||''),_0x55f844['fire']('ready'),_0x55f844;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0xebc3e0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d3cb6){function _0x202bed(_0x1460d8){return _0x1460d8['map'](_0x1a2224=>String['fromCharCode'](_0x1a2224))['join']('');}super(_0x4d3cb6),this['result']='end',_0x4d3cb6[_0x202bed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x202bed([0x76,0x69,0x65,0x77])][_0x202bed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x202bed([0x61,0x75,0x74,0x6f]),_0x4d3cb6[_0x202bed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x202bed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x202bed([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x202bed([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x202bed([0x6f,0x6b])});}}class ht extends _0xebc3e0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x3dd9ee){if(super(_0x3dd9ee),!this['editor']['config']['get']('revisionHistory'))throw new _0x8b62c2('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x149a5a=>this['_showRevisionViewer']({..._0x149a5a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x39b3d2=>this['_closeRevisionViewer'](_0x39b3d2)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1d2933=>this['_restoreRevision'](_0x1d2933)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5b4331){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5b4331;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1fed7e){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1fed7e);}['getRevision'](_0x32a150){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x32a150);}['getRevisions'](_0x147be2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x147be2||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x337f1e=this['editor'],_0x2ae06c=_0x27966f(_0x337f1e,d),_0x40d3f0=_0x337f1e['plugins']['get']('RevisionTracker'),_0x491f34=_0x337f1e['plugins']['get']('Users')['users'];return _0x2ae06c['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2ae06c['lazyRoots'],(_0x2ae06c['plugins']['push'](at,l,u,class extends _0xebc3e0{static get['requires'](){return[l,'Users'];}['init'](){const _0x3a1441=this['editor']['plugins']['get']('Users');for(const _0x4bd317 of _0x491f34)_0x4bd317['isAnonymous']||_0x3a1441['getUser'](_0x4bd317['id'])||_0x3a1441['addUser'](_0x4bd317);const _0x206380=_0x40d3f0['repository']['getRevisions']();let _0x2bccd2=null;const _0x427e19=this['editor']['plugins']['get']('RevisionViewer');_0x427e19['adapter']=_0x40d3f0['adapter'],_0x427e19['bind']('isEnabled')['to'](_0x40d3f0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x337f1e,'isReadOnly',_0x32d604=>!_0x32d604);for(const _0x43aca2 of _0x206380){const _0x7e6ba7=null===_0x43aca2['creator'];if(_0x7e6ba7&&_0x43aca2['toVersion']===_0x43aca2['fromVersion'])continue;const _0x2e7ce6=_0x43aca2['toJSON']();_0x427e19['addRevisionData'](_0x2e7ce6,(_0x328e8d,_0xa345a,_0x1a91b5)=>{if(_0x7e6ba7){if(_0x2bccd2)_0x2bccd2['_update'](_0x328e8d,_0xa345a);else{if(!_0xa345a){const _0x356cfe=_0x1a91b5['toJSON']();_0x356cfe['id']=_0x47b252(),_0x40d3f0['saveRevision'](_0x356cfe,_0x1a91b5['toVersion'])['then'](_0x15579a=>{_0x2bccd2=_0x15579a;});}}}else _0x43aca2['_update'](_0x328e8d,_0xa345a);});}}},f),_0x2ae06c);}['_enhanceShowRevisionViewerCallback'](){const _0x3cc553=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4cf835=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xd14a8f=this['editor']['plugins']['get']('Autosave');await _0xd14a8f['save']();}else await _0x4cf835['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x11a62f=this['editor']['plugins']['get']('Dialog');_0x11a62f['isOpen']&&_0x11a62f['hide']();}const _0x5c74fc=this['_getRevisionViewerEditorConfig']();return _0x3cc553(_0x5c74fc)['then'](_0x4d8ae8=>{return(this['_viewerEditor']=_0x4d8ae8,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4d8ae8);})['catch'](_0x5b1ca4=>(console['error'](_0x5b1ca4),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2738b0=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2738b0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x409108=this['editor']['plugins']['get']('Annotations');_0x409108['refreshVisibility'](),_0x409108['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4fb54e){const _0x5f1311=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x38ad8d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5ad218=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x5ad218,_0x4fb54e)['then'](_0x179f1c=>(_0x38ad8d['style']['display']='block',_0x5f1311['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x179f1c));}['_closeRevisionViewer'](_0x14a9cc){const _0x343959=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x343959['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x14a9cc['destroy']();}async['_restoreRevision'](_0x367733){const _0x1a6f78=this['editor'],_0x423862=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1bafaf=_0x1a6f78['plugins']['get']('RevisionTracker'),_0x4b7bd8=_0x1a6f78['plugins']['get']('RevisionHistoryUtils'),_0x945a35=_0x423862['repository']['getRevision'](_0x367733);let _0xfadaa2,_0x309256,_0x22d148;try{await _0x4b7bd8['loadRevisionData'](_0x945a35,this['adapter']),_0xfadaa2=_0x4b7bd8['getRevisionDocumentData'](_0x945a35),_0x309256=_0x4b7bd8['getRevisionRootsAttributes'](_0x945a35);}catch(_0x1568aa){return void console['error'](_0x1568aa);}_0x1a6f78['model']['change'](_0x11dd75=>{for(const _0x4bb2bb of Array['from'](_0x1a6f78['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x11dd75['removeMarker'](_0x4bb2bb);}),_0x423862['isReady']=!0x1,_0x1a6f78['model']['enqueueChange'](_0x548838=>{_0x548838['setSelection'](null),_0x548838['removeSelectionAttribute'](_0x1a6f78['model']['document']['selection']['getAttributeKeys']());const _0x2d7fbe=Object['keys'](_0xfadaa2);for(const _0x154894 of _0x1a6f78['model']['document']['roots'])'$graveyard'!=_0x154894['rootName']&&_0x154894['isAttached']()&&!_0x2d7fbe['includes'](_0x154894['rootName'])&&_0x548838['detachRoot'](_0x154894);for(const _0x5a0fb6 of _0x2d7fbe){let _0x22a2f1=_0x1a6f78['model']['document']['getRoot'](_0x5a0fb6);_0x22a2f1&&_0x22a2f1['isAttached']()||(_0x22a2f1=_0x548838['addRoot'](_0x5a0fb6));const _0x169125=_0x309256[_0x5a0fb6],_0x5a9bcf=Object['keys'](_0x169125),_0x2264e8=_0xfadaa2[_0x5a0fb6];for(const _0x19b106 of _0x22a2f1['getAttributeKeys']())_0x5a9bcf['includes'](_0x19b106)||_0x548838['removeAttribute'](_0x19b106,_0x22a2f1);for(const _0x461a08 of _0x5a9bcf)_0x548838['setAttribute'](_0x461a08,_0x309256[_0x5a0fb6][_0x461a08],_0x22a2f1);_0x548838['remove'](_0x548838['createRangeIn'](_0x22a2f1)),_0x548838['insert'](_0x1a6f78['data']['parse'](_0x2264e8,_0x22a2f1),_0x22a2f1,0x0);}});const _0x64e928=R(_0x1a6f78['locale'],'Restored');if(_0x945a35['name'])_0x22d148=-0x1==_0x945a35['name']['indexOf'](_0x64e928)?_0x64e928+':\x20'+_0x945a35['name']:_0x945a35['name'];else _0x22d148=_0x64e928+':\x20'+(_0x945a35['createdAt']['toLocaleDateString'](_0x1a6f78['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x945a35['createdAt']['toLocaleTimeString'](_0x1a6f78['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1bafaf['saveRevision']({'name':_0x22d148}),_0x423862['isReady']=!0x0,_0x1a6f78['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};