@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241219.2 → 0.0.0-nightly-20241221.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x31a9c8,uid as _0xc034ba,Collection as _0x1b7f87,logWarning as _0x4606bf,FocusTracker as _0x1f48e8,KeystrokeHandler as _0x1ad837,scrollViewportToShowTarget as _0x20971c,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x249248}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3f8d7d,set as _0x17c9e1,unset as _0x39706c,isEqual as _0x137c87}from'lodash-es';import{Plugin as _0x24c069,PendingActions as _0x48ae60,icons as _0x2774db,Command as _0x251dfe,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x34ae1a,getMarkerDomElement as _0x4c6d8a,ConfirmMixin as _0x7db3c0,sanitizeEditorConfig as _0x3be582}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1faec1,ViewText as _0xc82295,ViewElement as _0x5a0a9f,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x79aa2,ViewAttributeElement as _0x582d0a,ViewEmptyElement as _0x1dfa96,ViewRawElement as _0x28dc89,ViewUIElement as _0x57b2a1,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x2f7742,injectCssTransitionDisabler as ts,submitHandler as _0x255ed2,LabeledFieldView as at,createLabeledInputText as _0x4f7e6f,createDropdown as _0x433761,ListView as te,ListItemView as _0x3cd8f4,ButtonView as _0x27296f,MenuBarMenuView as _0x354e27,MenuBarMenuListView as _0x16dcc0,MenuBarMenuListItemView as _0x21965d,MenuBarMenuListItemButtonView as _0x3ebae4,ContextualBalloon as _0x28e605,ToolbarSeparatorView as _0x448f5a,IconView as _0x348243,addListToDropdown as _0x40edfc,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2265c1}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x31a9c8(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x58e248){super(),this['id']=_0x58e248['id']||_0xc034ba(),this['creator']=_0x58e248['creator']||null,this['authors']=_0x58e248['authors']||[],this['diffData']=_0x58e248['diffData']||null,this['toVersion']=_0x58e248['toVersion']||0x0,this['fromVersion']=_0x58e248['fromVersion']||0x0,this['set']('name',_0x58e248['name']||''),this['set']('createdAt',_0x58e248['createdAt']||new Date()),this['set']('attributes',_0x58e248['attributes']||{});}['setName'](_0x26b06a){this['_update']({'name':_0x26b06a});}['setAttribute'](_0x540803,_0x5e48de){const _0x466996=_0x3f8d7d(this['attributes']);_0x17c9e1(_0x466996,_0x540803,_0x5e48de),this['_update']({'attributes':_0x466996});}['removeAttribute'](_0x4b4769){const _0x39d2d3=_0x3f8d7d(this['attributes']);_0x39706c(_0x39d2d3,_0x4b4769),this['_update']({'attributes':_0x39d2d3});}['_update'](_0x45e664,_0x1fc6c3=!0x1){let _0x2a778e=!0x1;const _0x487948={'id':this['id']},_0x8b4426=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x161d7c of _0x8b4426){const _0x541111=_0x45e664[_0x161d7c];void 0x0!==_0x541111&&_0x541111!==this[_0x161d7c]&&(this[_0x161d7c]=_0x541111,_0x487948[_0x161d7c]=_0x541111,_0x2a778e=!0x0);}_0x2a778e&&(_0x487948['authors']&&(_0x487948['authorsIds']=_0x487948['authors']['map'](_0x447b97=>_0x447b97['id']),delete _0x487948['authors']),this['fire']('_update',_0x487948,_0x1fc6c3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x52e9e7=>_0x52e9e7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x24c069{['_revisions'];static get['requires'](){return[_0x34ae1a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3a1c9c){super(_0x3a1c9c),this['_revisions']=new _0x1b7f87();}['afterInit'](){!async function(_0xd51d64){const _0x58553d=_0x44cc9b([0x61,0x56,0x6e,0x38,0x48,0x52,0x78,0x74,0x39,0x37,0x4f,0x33,0x75,0x49,0x42,0x59,0x77,0x50,0x7a,0x36,0x65,0x6d,0x68,0x79,0x6c,0x41,0x6f,0x73,0x58,0x62,0x53,0x55,0x76,0x54,0x69,0x47,0x6b,0x57,0x51,0x4c,0x43,0x4d,0x35,0x64,0x30,0x46,0x66,0x45,0x5a,0x67,0x4a,0x72,0x63,0x4b,0x44,0x70,0x34,0x6a,0x32,0x4e,0x71,0x31]),_0x5ce1b9=0xeb829,_0xdb6d89=0x1cf82369,_0x278cad=0x1cff7949^_0xdb6d89,_0x823cea=window[_0x44cc9b([0x44,0x61,0x74,0x65])][_0x44cc9b([0x6e,0x6f,0x77])](),_0x36e850=_0xd51d64[_0x44cc9b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x443d6e=new window[(_0x44cc9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x287550=>{_0x36e850[_0x44cc9b([0x6f,0x6e,0x63,0x65])](_0x44cc9b([0x72,0x65,0x61,0x64,0x79]),_0x287550);}),_0x14d4d5={[_0x44cc9b([0x6b,0x74,0x79])]:_0x44cc9b([0x45,0x43]),[_0x44cc9b([0x75,0x73,0x65])]:_0x44cc9b([0x73,0x69,0x67]),[_0x44cc9b([0x63,0x72,0x76])]:_0x44cc9b([0x50,0x2d,0x32,0x35,0x36]),[_0x44cc9b([0x78])]:_0x44cc9b([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]),[_0x44cc9b([0x79])]:_0x44cc9b([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]),[_0x44cc9b([0x61,0x6c,0x67])]:_0x44cc9b([0x45,0x53,0x32,0x35,0x36])},_0x199d52=_0x36e850[_0x44cc9b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44cc9b([0x67,0x65,0x74])](_0x44cc9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2174ce(){let _0x23c447,_0x179910=null,_0x465105=null;try{if(_0x199d52==_0x44cc9b([0x47,0x50,0x4c]))return _0x44cc9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23c447=_0x126456(),!_0x23c447)return _0x44cc9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23c447[_0x44cc9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x465105=_0x3a9bfd(_0x23c447[_0x44cc9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23c447[_0x44cc9b([0x6a,0x74,0x69])])),await _0x25046e()?_0x5dfa99()?_0x444a9a()?_0x44cc9b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3352a8()?(_0x23c447[_0x44cc9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44cc9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x179910=_0x1b4b85(_0x44cc9b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23c447[_0x44cc9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44cc9b([0x74,0x72,0x69,0x61,0x6c])&&(_0x179910=_0x1b4b85(_0x44cc9b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x23c447[_0x44cc9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44cc9b([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x179910=_0x1b4b85(_0x44cc9b([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10bcc0()):_0x44cc9b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44cc9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44cc9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46ea11){return _0x44cc9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x444a9a(){const _0x405752=[_0x44cc9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44cc9b([0x74,0x72,0x69,0x61,0x6c])][_0x44cc9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c447[_0x44cc9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x823cea/0x3e8:0xe10*_0x278cad;return _0x23c447[_0x44cc9b([0x65,0x78,0x70])]<_0x405752;}function _0x5dfa99(){const _0x5c1c1b=_0x23c447[_0x44cc9b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5c1c1b)return!0x1;if(_0x5c1c1b[_0x44cc9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44cc9b([0x2a])))return!0x0;if(_0x5c1c1b[_0x44cc9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44cc9b([0x52,0x48])))return!0x0;if(_0x5c1c1b[_0x44cc9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44cc9b([0x52,0x52,0x48]))){if(_0x3209df())return!0x0;if(_0x484b1d()||_0x1b3d69())return!0x0;}return!0x1;}function _0x3352a8(){const _0x287de2=_0x23c447[_0x44cc9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x287de2||0x0==_0x287de2[_0x44cc9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x238165}=new URL(window[_0x44cc9b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x287de2[_0x44cc9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x238165))return!0x0;const _0x5ee59e=_0x238165[_0x44cc9b([0x73,0x70,0x6c,0x69,0x74])](_0x44cc9b([0x2e]));return _0x287de2[_0x44cc9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e9e9a=>_0x4e9e9a[_0x44cc9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44cc9b([0x2a])))[_0x44cc9b([0x6d,0x61,0x70])](_0x3d955a=>_0x3d955a[_0x44cc9b([0x73,0x70,0x6c,0x69,0x74])](_0x44cc9b([0x2e])))[_0x44cc9b([0x73,0x6f,0x6d,0x65])](_0x44c535=>_0x5ee59e[_0x44cc9b([0x65,0x76,0x65,0x72,0x79])]((_0x25a70c,_0x1630e9)=>_0x44c535[_0x1630e9]===_0x25a70c||_0x44c535[_0x1630e9]===_0x44cc9b([0x2a])));}function _0x10bcc0(){return _0x179910&&_0x465105?new window[(_0x44cc9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x367474,_0x2001c1)=>{_0x179910[_0x44cc9b([0x74,0x68,0x65,0x6e])](_0x367474,_0x2001c1),_0x465105[_0x44cc9b([0x74,0x68,0x65,0x6e])](_0x253870=>{_0x253870!=_0x44cc9b([0x56,0x61,0x6c,0x69,0x64])&&_0x367474(_0x253870);},_0x2001c1);}):_0x179910||_0x465105||_0x44cc9b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a9bfd(_0x33df83,_0x3aca59){return new window[(_0x44cc9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d80f6=>{if(_0x960df7())return _0x5d80f6(_0x44cc9b([0x56,0x61,0x6c,0x69,0x64]));_0x39c7ff(),_0x36e850[_0x44cc9b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44cc9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9c5cc7=!0x1;const _0x2e52b3=_0xc034ba();function _0x1592c5(_0x3d3387){return!!_0x3d3387&&(typeof _0x3d3387===_0x44cc9b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d3387===_0x44cc9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d3387[_0x44cc9b([0x74,0x68,0x65,0x6e])]===_0x44cc9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d3387[_0x44cc9b([0x63,0x61,0x74,0x63,0x68])]===_0x44cc9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31f123(_0x46b1c3){_0x137ca3(_0x46b1c3)[_0x44cc9b([0x74,0x68,0x65,0x6e])](_0x362f8f=>{if(!_0x362f8f||_0x362f8f[_0x44cc9b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44cc9b([0x6f,0x6b]))return _0x44cc9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x292037(_0x222e06(_0x2e52b3+_0x3aca59))!=_0x362f8f[_0x44cc9b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44cc9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44cc9b([0x56,0x61,0x6c,0x69,0x64]);})[_0x44cc9b([0x74,0x68,0x65,0x6e])](_0x1c450c=>(_0x4f1d6d(),_0x1c450c),()=>{const _0x4f6fe9=_0x412753();return null==_0x4f6fe9?(_0x4f1d6d(),_0x44cc9b([0x56,0x61,0x6c,0x69,0x64])):_0x44cc9b(_0x823cea-_0x4f6fe9>(0x38f4a769^_0xdb6d89)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44cc9b([0x74,0x68,0x65,0x6e])](_0x5d80f6)[_0x44cc9b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d80f6(_0x44cc9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1502f7=0x1ccecde9^_0xdb6d89;function _0x4f1d6d(){const _0x384d69=_0x44cc9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x292037(_0x222e06(_0x33df83)),_0x4c3971=_0x395a6b(_0x292037(window[_0x44cc9b([0x4d,0x61,0x74,0x68])][_0x44cc9b([0x63,0x65,0x69,0x6c])](_0x823cea/_0x1502f7)));window[_0x44cc9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44cc9b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x384d69,_0x4c3971);}function _0x412753(){const _0x399a9b=_0x44cc9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x292037(_0x222e06(_0x33df83)),_0x10cd8c=window[_0x44cc9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44cc9b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x399a9b);return _0x10cd8c?window[_0x44cc9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x395a6b(_0x10cd8c),0x10)*_0x1502f7:null;}function _0x137ca3(_0x18100b){return new window[(_0x44cc9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c80a9,_0x694143)=>{_0x18100b[_0x44cc9b([0x74,0x68,0x65,0x6e])](_0x2c80a9,_0x694143),window[_0x44cc9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x694143,0x1cf9f7a9^_0xdb6d89);});}}_0x36e850[_0x44cc9b([0x6f,0x6e])](_0x44cc9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fbad6,_0x506808)=>{if(_0x506808[0x0]!=_0x33df83)return _0x5d80f6(_0x44cc9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x506808[0x1]={..._0x506808[0x1],[_0x44cc9b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e52b3};},{[_0x44cc9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44cc9b([0x68,0x69,0x67,0x68])}),_0x36e850[_0x44cc9b([0x6f,0x6e])](_0x44cc9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30c519=>{_0x1592c5(_0x30c519[_0x44cc9b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9c5cc7=!0x0,_0x31f123(_0x30c519[_0x44cc9b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44cc9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44cc9b([0x6c,0x6f,0x77])}),_0x443d6e[_0x44cc9b([0x74,0x68,0x65,0x6e])](()=>{_0x9c5cc7||_0x5d80f6(_0x44cc9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x960df7(){return _0x36e850[_0x44cc9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44cc9b([0x76,0x69,0x65,0x77])][_0x44cc9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44cc9b([0x61,0x75,0x74,0x6f]);}function _0x39c7ff(){_0x36e850[_0x44cc9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44cc9b([0x76,0x69,0x65,0x77])][_0x44cc9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44cc9b([0x61,0x75,0x74,0x6f]);}}function _0x1b4b85(_0x50729c){const _0x411a22=[new window[(_0x44cc9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e8d64=>setTimeout(_0x1e8d64,0x1cf11da5^_0xdb6d89)),_0x443d6e[_0x44cc9b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44cc9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53ba62=>{const _0x4c90b6=0x1cf8236e^_0xdb6d89,_0x427b69=_0xd51d64[_0x44cc9b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xee6705(){_0x427b69[_0x44cc9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4c90b6&&_0x53ba62();}_0xee6705(),_0x427b69[_0x44cc9b([0x6f,0x6e])](_0x44cc9b([0x61,0x64,0x64]),_0xee6705);})),new window[(_0x44cc9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34114e=>{function _0x4d4945(){for(const _0x482271 in window)if(window[_0x44cc9b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x44cc9b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x482271))&&window[_0x482271]==_0x5ce1b9)return _0x34114e();_0x36e850[_0x44cc9b([0x73,0x74,0x61,0x74,0x65])]!=_0x44cc9b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x44cc9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d4945,0x1cf830e1^_0xdb6d89);}_0x4c1e53(_0x44cc9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4d4945();})];return window[_0x44cc9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44cc9b([0x72,0x61,0x63,0x65])](_0x411a22)[_0x44cc9b([0x74,0x68,0x65,0x6e])](()=>_0x50729c);}async function _0x361668(){if(await _0x443d6e,_0x4c1e53(_0x44cc9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x454f42=_0xd51d64[_0x44cc9b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3ff8f8=_0xd51d64[_0x44cc9b([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])](_0x454f42[_0x44cc9b([0x69,0x64])]),_0x455fed=_0x309f30(_0x44cc9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x455fed[_0x44cc9b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x454f42['id'],_0x3ff8f8?_0x3ff8f8['id']:null,!0x0),_0x455fed[_0x44cc9b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x44cc9b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x455fed[_0x44cc9b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x455fed[_0x44cc9b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x7e5710,void(_0x455fed[_0x44cc9b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x7e5710);}if(_0x4c1e53(_0x44cc9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x298bff=_0x309f30(_0x44cc9b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x298bff[_0x44cc9b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x44cc9b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x298bff[_0x44cc9b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x298bff[_0x44cc9b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x7e5710,_0x298bff[_0x44cc9b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x7e5710;}_0x36e850[_0x44cc9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x44cc9b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7e5710,_0x36e850[_0x44cc9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x44cc9b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7e5710,_0x36e850[_0x44cc9b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44cc9b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3209df(){return _0x4c1e53(_0x44cc9b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x309f30(_0x44cc9b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x44cc9b([0x73,0x74,0x61,0x74,0x65])]==_0x44cc9b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x484b1d(){return _0x4c1e53(_0x44cc9b([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 _0x1b3d69(){return _0x4c1e53(_0x44cc9b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4da634(_0x5e249b){const _0x3de755=_0x300356();_0x36e850[_0x3de755]=_0x44cc9b([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])+_0x5e249b,_0x5e249b[_0x44cc9b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x44cc9b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x300356()]=_0x5ce1b9),_0x5e249b!=_0x44cc9b([0x56,0x61,0x6c,0x69,0x64])&&_0x361668();}function _0x300356(){const _0x104c59=window[_0x44cc9b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44cc9b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44cc9b([0x6e,0x6f,0x77])]())[_0x44cc9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44cc9b([0x2e]),'');let _0x1ba62e=_0x44cc9b([0x61]);for(let _0x7e8551=0x0;_0x7e8551<_0x104c59[_0x44cc9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7e8551+=0x2){let _0x10de10=window[_0x44cc9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x104c59[_0x44cc9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7e8551,_0x7e8551+0x2));_0x10de10>=_0x58553d[_0x44cc9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10de10-=_0x58553d[_0x44cc9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ba62e+=_0x58553d[_0x10de10];}return _0x1ba62e;}function _0x126456(){const _0x46497c=_0x199d52[_0x44cc9b([0x73,0x70,0x6c,0x69,0x74])](_0x44cc9b([0x2e]));if(0x3!=_0x46497c[_0x44cc9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a6245(_0x46497c[0x1]);function _0x1a6245(_0x320413){const _0x505c2c=_0x239196(_0x320413);return _0x505c2c&&_0x160aa9()?_0x505c2c:null;function _0x160aa9(){const _0x2edd60=_0x505c2c[_0x44cc9b([0x6a,0x74,0x69])],_0xc6974c=window[_0x44cc9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2edd60[_0x44cc9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2edd60[_0x44cc9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e3c22={..._0x505c2c,[_0x44cc9b([0x6a,0x74,0x69])]:_0x2edd60[_0x44cc9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2edd60[_0x44cc9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e3c22[_0x44cc9b([0x76,0x63])],_0x222e06(_0x2e3c22)==_0xc6974c;}}}async function _0x25046e(){let _0x4efba2=!0x0;try{const _0x5a49e5=_0x199d52[_0x44cc9b([0x73,0x70,0x6c,0x69,0x74])](_0x44cc9b([0x2e])),[_0x4bd70b,_0x1c0659,_0x4ae374]=_0x5a49e5;return _0x5b7589(_0x4bd70b),await _0xe537d5(_0x4bd70b,_0x1c0659,_0x4ae374),_0x4efba2;}catch(_0x316d55){return!0x1;}function _0x5b7589(_0x3749bd){const _0x5e936a=_0x239196(_0x3749bd);_0x5e936a&&_0x5e936a[_0x44cc9b([0x61,0x6c,0x67])]==_0x44cc9b([0x45,0x53,0x32,0x35,0x36])||(_0x4efba2=!0x1);}async function _0xe537d5(_0xd1d139,_0x4d1839,_0x3c866b){const _0x16efa5=window[_0x44cc9b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44cc9b([0x66,0x72,0x6f,0x6d])](_0x444891(_0x3c866b),_0x419e93=>_0x419e93[_0x44cc9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x129e10=new window[(_0x44cc9b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44cc9b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd1d139+_0x44cc9b([0x2e])+_0x4d1839),_0x1f7e97=window[_0x44cc9b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44cc9b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f7e97)return;const _0x2c337a=await _0x1f7e97[_0x44cc9b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44cc9b([0x6a,0x77,0x6b]),_0x14d4d5,{[_0x44cc9b([0x6e,0x61,0x6d,0x65])]:_0x44cc9b([0x45,0x43,0x44,0x53,0x41]),[_0x44cc9b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44cc9b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44cc9b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f7e97[_0x44cc9b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44cc9b([0x6e,0x61,0x6d,0x65])]:_0x44cc9b([0x45,0x43,0x44,0x53,0x41]),[_0x44cc9b([0x68,0x61,0x73,0x68])]:{[_0x44cc9b([0x6e,0x61,0x6d,0x65])]:_0x44cc9b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c337a,_0x16efa5,_0x129e10)||(_0x4efba2=!0x1);}}function _0x239196(_0x43c701){return _0x43c701[_0x44cc9b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44cc9b([0x65,0x79]))?JSON[_0x44cc9b([0x70,0x61,0x72,0x73,0x65])](_0x444891(_0x43c701)):null;}function _0x444891(_0x35995c){return window[_0x44cc9b([0x61,0x74,0x6f,0x62])](_0x35995c[_0x44cc9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44cc9b([0x2b]))[_0x44cc9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44cc9b([0x2f])));}function _0x222e06(_0x31579b){let _0x509dce=0x1505;function _0x414b7e(_0x1d8fa2){for(let _0x2818ba=0x0;_0x2818ba<_0x1d8fa2[_0x44cc9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2818ba++){const _0x2d6db0=_0x1d8fa2[_0x44cc9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2818ba);_0x509dce=(_0x509dce<<0x5)+_0x509dce+_0x2d6db0,_0x509dce&=_0x509dce;}}function _0x4530eb(_0x4d733b){Array[_0x44cc9b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d733b)?_0x4d733b[_0x44cc9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4530eb):_0x4d733b&&typeof _0x4d733b==_0x44cc9b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44cc9b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d733b)[_0x44cc9b([0x73,0x6f,0x72,0x74])]()[_0x44cc9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49ac6d,_0xa3435e])=>{_0x414b7e(_0x49ac6d),_0x4530eb(_0xa3435e);}):_0x414b7e(window[_0x44cc9b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d733b));}return _0x4530eb(_0x31579b),_0x509dce>>>0x0;}function _0x292037(_0x34d9d2){return _0x34d9d2[_0x44cc9b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44cc9b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44cc9b([0x30]));}function _0x395a6b(_0x10119f){return _0x10119f[_0x44cc9b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44cc9b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44cc9b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c1e53(_0x2c5307){return _0x36e850[_0x44cc9b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44cc9b([0x68,0x61,0x73])](_0x2c5307);}function _0x309f30(_0x3ece18){return _0x36e850[_0x44cc9b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44cc9b([0x67,0x65,0x74])](_0x3ece18);}function _0x7e5710(){}function _0x44cc9b(_0x29bc77){return _0x29bc77['map'](_0x3397cc=>String['fromCharCode'](_0x3397cc))['join']('');}_0x4da634(await _0x2174ce());}(this);}['createRevision'](_0x29c553){const _0x1edd0e=this['editor']['plugins']['get']('Users');return new a({'id':_0x29c553['id'],'name':_0x29c553['name'],'creator':_0x29c553['creatorId']?_0x1edd0e['getUser'](_0x29c553['creatorId']):null,'diffData':_0x29c553['diffData']||_0x29c553['data'],'authors':_0x29c553['authorsIds']['map'](_0x4d8138=>_0x1edd0e['getUser'](_0x4d8138)),'createdAt':new Date(_0x29c553['createdAt']),'attributes':_0x29c553['attributes'],'fromVersion':_0x29c553['fromVersion'],'toVersion':_0x29c553['toVersion']});}['addRevision'](_0x351a8f,_0x103854=0x0){this['_revisions']['add'](_0x351a8f,_0x103854);}['getRevision'](_0x10b489){return this['_revisions']['get'](_0x10b489);}['getRevisions'](_0x3843cd={'toJSON':!0x1}){const _0x1dcd26=Array['from'](this['_revisions']);return _0x1dcd26['reverse'](),_0x3843cd['toJSON']?_0x1dcd26['map'](_0x2e6f21=>_0x2e6f21['toJSON']()):_0x1dcd26;}['getIndex'](_0x53a2c5){return this['_revisions']['getIndex'](_0x53a2c5);}['getEarlierVisibleRevision'](_0x187f65){const [,_0x47ecc8]=this['getRevisionsIterator'](_0x187f65,{'direction':'earlier'});return _0x47ecc8;}['getLaterVisibleRevision'](_0x3d9fa2){const [,_0x4811b8]=this['getRevisionsIterator'](_0x3d9fa2,{'direction':'later'});return _0x4811b8;}['getRevisionsInDiff'](_0x91384){const _0x3c51c8=[];for(const _0x2442ba of this['getRevisionsIterator'](_0x91384['newRevisionId']))if(_0x3c51c8['push'](_0x2442ba),_0x2442ba['id']===_0x91384['oldRevisionId'])break;return _0x3c51c8;}*['getRevisionsIterator'](_0x47be3a,{direction:_0x3eb7ab='earlier',filter:_0xfa187a=()=>!0x0}={}){const _0x2a9706='earlier'===_0x3eb7ab?0x1:-0x1;let _0x53b727=this['_revisions']['get'](_0x47be3a),_0x34613e=this['getIndex'](_0x53b727);for(yield _0x53b727;_0x53b727;){if(_0x34613e+=_0x2a9706,_0x53b727=this['getRevision'](_0x34613e),!_0x53b727)return;_0xfa187a(_0x53b727)&&(yield _0x53b727);}}}function R(_0x2161c4,_0x4c63e8,_0x16c42e){const t=_0x2161c4['t'];switch(_0x4c63e8){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'},_0x16c42e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x16c42e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x79aa2,'a':_0x582d0a,'e':_0x1dfa96,'r':_0x28dc89,'u':_0x57b2a1};class l extends _0x24c069{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x34ae1a,j,_0x48ae60];}constructor(_0x3a8504){super(_0x3a8504),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4665c4=_0xc034ba();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4665c4},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x87818f=this['repository']['getRevision'](0x0),_0x44c1c3=_0x87818f&&null===_0x87818f['creator']?_0x87818f:null;if(this['_continueCurrentRevision']=!!_0x44c1c3&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x97ae02=this['_source']['getCurrentRevisionId'](),_0x25d367=this['repository']['getRevision'](_0x97ae02);if(_0x25d367)this['_startingVersion']=_0x25d367['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5db3d7=this['_source']['history']['_operations']['find'](_0x13b5e0=>!_0x13b5e0['_isInit']),_0x399270=_0x5db3d7?_0x5db3d7['baseVersion']:this['_source']['history']['version'];_0x87818f?(_0x87818f['toVersion']<_0x399270&&_0x87818f['_update']({'toVersion':_0x399270}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x44c1c3['id'],this['_startingVersion']=_0x44c1c3['fromVersion']):(this['_startingVersion']=_0x87818f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x399270,this['_continueCurrentRevision']=!0x1);}}else _0x44c1c3&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x44c1c3['toVersion'],this['editor']['model']['document']['history']['version']),_0x44c1c3['fromVersion']===_0x44c1c3['toVersion']?(0x0!==_0x44c1c3['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x44c1c3['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x44c1c3['id'],this['_startingVersion']=_0x44c1c3['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',_0x7fe34=>!_0x7fe34),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a5a5b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23c528;for(const _0x5f49c4 in _0x5a5a5b){const _0x3c3ee8=_0x5f49c4,_0x39407b=_0x5a5a5b[_0x3c3ee8];if('revisionHistoryLicenseKeyValid'==_0x39407b||'revisionHistoryLicenseKeyInvalid'==_0x39407b||'revisionHistoryLicenseKeyExpired'==_0x39407b||'revisionHistoryLicenseKeyDomainLimit'==_0x39407b||'revisionHistoryLicenseKeyNotAllowed'==_0x39407b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x39407b||'revisionHistoryLicenseKeyTrialLimit'==_0x39407b||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x39407b||'revisionHistoryLicenseKeyUsageLimit'==_0x39407b){delete _0x5a5a5b[_0x3c3ee8],_0x23c528=_0x39407b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x23c528&&_0x5a5a5b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x23c528&&_0x5a5a5b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x23c528&&_0x5a5a5b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x23c528&&_0x5a5a5b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x23c528&&_0x5a5a5b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x23c528&&_0x5a5a5b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x23c528&&_0x5a5a5b['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x23c528&&_0x5a5a5b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1502cd=this['repository']['getRevision'](0x0),_0x554e41=await this['getRevisionDocumentData'](_0x1502cd),_0x1cde0d=await this['getRevisionRootsAttributes'](_0x1502cd);this['_replaceEditorDataWithRevisionData'](_0x554e41,_0x1cde0d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1e98c6){this['_source']=_0x1e98c6;}async['update'](){const _0x25104b=await this['_source']['getLatestVersion']();if(_0x25104b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2d5e83=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x25104b});_0x2d5e83['authors']=_0x2d5e83['authorsIds']['map'](_0x26c928=>this['editor']['plugins']['get']('Users')['getUser'](_0x26c928)),this['currentRevision']['_update'](_0x2d5e83);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x431f8d={},_0x289bef=null){const _0x2084a6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x289bef>this['currentRevision']['toVersion']&&(_0x289bef=null),null===_0x289bef&&(_0x289bef=await this['_source']['getLatestVersion']());const _0x4aefcb=this['_getFromVersion'](_0x289bef),_0x4a71aa=this['buildRevisionData']({'from':_0x4aefcb,'to':_0x289bef});if(this['currentRevision']['toVersion']<_0x289bef){const _0x1a0271=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x289bef,'to':_0x289bef});_0x1a0271['authors']=[],_0x1a0271['authorsIds']=[],_0x1a0271['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1a0271,!0x0),delete _0x1a0271['authors'],_0x2084a6['push'](_0x1a0271);}_0x431f8d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x431f8d['name']=_0x431f8d['name']||null,_0x431f8d['id']=_0x431f8d['id']||_0xc034ba(),_0x431f8d={..._0x431f8d,..._0x4a71aa};const _0x461776=this['addRevisionData'](_0x431f8d);_0x2084a6['push'](_0x431f8d);const _0x393cb9=this['repository']['getIndex'](_0x461776);if(0x0!==_0x393cb9){const _0xfacde1=this['repository']['getRevision'](_0x393cb9-0x1);if(_0xfacde1['fromVersion']!==_0x289bef){const _0x51671a=this['_revisionDataBuilder']['getData'](_0x289bef,_0xfacde1['toVersion']),_0x7904a4={'id':_0xfacde1['id'],'diffData':_0x51671a['diffData'],'authorsIds':_0x51671a['authorsIds'],'authors':_0x51671a['authorsIds']['map'](_0x19c8df=>this['editor']['plugins']['get']('Users')['getUser'](_0x19c8df)),'fromVersion':_0x289bef};_0xfacde1===this['currentRevision']&&(_0x7904a4['createdAt']=new Date(_0x431f8d['createdAt']['getTime']()+0xa)),_0xfacde1['_update'](_0x7904a4,!0x0),delete _0x7904a4['authors'],_0x2084a6['push'](_0x7904a4);}}if(this['adapter']){for(const _0x5ad107 of _0x2084a6)this['_bufferUpdate'](_0x5ad107['id'],_0x5ad107,!0x0);this['sendBufferedUpdates']();}return _0x461776;}['addRevisionData'](_0x10079b){const _0x28b433=this['repository']['createRevision'](_0x10079b);return this['adapter']&&_0x28b433['on']('_update',(_0x5207ec,_0x3b5b3a,_0x263692)=>{_0x263692||(this['_bufferUpdate'](_0x3b5b3a['id'],_0x3b5b3a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x28b433,this['_findInsertionIndex'](_0x28b433)),_0x28b433;}async['getRevisionDocumentData'](_0x2e0bcc){await this['_loadRevisionData'](_0x2e0bcc);const _0x212715={};for(const _0x1950ae in _0x2e0bcc['diffData']){if(_0x2e0bcc['diffData'][_0x1950ae]['attachChange']&&!_0x2e0bcc['diffData'][_0x1950ae]['attachChange']['isAttached'])continue;const _0xa4881b=this['_removeRevisionMarkers'](JSON['parse'](_0x2e0bcc['diffData'][_0x1950ae]['insertions'])),_0x563957=this['editor']['editing']['view']['document'],_0xfd6c7e=new _0x1faec1(_0x563957,_0xa4881b['map'](_0x185cd5=>V(_0x185cd5,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x212715[_0x1950ae]=this['editor']['data']['processor']['toData'](_0xfd6c7e),this['editor']['data']['processor']['useFillerType']('default');}return _0x212715;}async['getRevisionRootsAttributes'](_0x56c161){await this['_loadRevisionData'](_0x56c161);const _0x22fb28={};for(const _0x1264c9 in _0x56c161['diffData'])_0x56c161['diffData'][_0x1264c9]['attachChange']&&!_0x56c161['diffData'][_0x1264c9]['attachChange']['isAttached']||(_0x22fb28[_0x1264c9]=_0x56c161['diffData'][_0x1264c9]['attributesAfter']||{});return _0x22fb28;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x68e626=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x174c6d=0x0;_0x174c6d<_0x68e626['length'];_0x174c6d++){const _0x211b47=_0x68e626[_0x174c6d];let _0x253144=!0x1;for(const _0x54b85e of Object['keys'](_0x211b47))void 0x0===_0x211b47[_0x54b85e]?delete _0x211b47[_0x54b85e]:'id'!==_0x54b85e&&(_0x253144=!0x0);_0x253144||(_0x68e626[_0x174c6d]=null);}if(_0x68e626=_0x68e626['filter'](_0x44d757=>null!==_0x44d757),!_0x68e626['length'])return;for(let _0x53f781=0x0;_0x53f781<_0x68e626['length'];_0x53f781++){const _0x3bd914=_0x68e626[_0x53f781];void 0x0!==_0x3bd914['fromVersion']&&void 0x0===_0x3bd914['toVersion']&&(_0x3bd914['toVersion']=this['repository']['getRevision'](_0x3bd914['id'])['toVersion']),void 0x0!==_0x3bd914['toVersion']&&void 0x0===_0x3bd914['fromVersion']&&(_0x3bd914['fromVersion']=this['repository']['getRevision'](_0x3bd914['id'])['fromVersion']);}const _0xec80ab=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x68e626,_0xec80ab)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xadfe63=>{if(_0xadfe63){for(const _0x470f7e of _0xadfe63)this['setRevisionData']({'id':_0x470f7e['id'],'createdAt':_0x470f7e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x498e85,_0x164462){let _0x5700cb=this['editor']['config']['get']('initialData'),_0x13a9a7=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5700cb){_0x5700cb={};for(const _0x2b5282 of this['editor']['model']['document']['getRootNames']())_0x5700cb[_0x2b5282]='';}if('string'==typeof _0x5700cb&&(_0x5700cb={'main':_0x5700cb}),void 0x0===_0x13a9a7){_0x13a9a7={};for(const _0x1aec2f of this['editor']['model']['document']['getRootNames']())_0x13a9a7[_0x1aec2f]={};}let _0x349295=!0x1;const _0x234d3d=Object['keys'](_0x5700cb),_0x59ce22=Object['keys'](_0x498e85);for(const _0xa0bb2d of _0x234d3d){if(_0x5700cb[_0xa0bb2d]!==_0x498e85[_0xa0bb2d]&&''!==_0x5700cb[_0xa0bb2d]['trim']()){_0x349295=!0x0;break;}if(!_0x137c87(_0x13a9a7[_0xa0bb2d],_0x164462[_0xa0bb2d])&&Object['keys'](_0x13a9a7[_0xa0bb2d])['length']>0x0){_0x349295=!0x0;break;}}_0x349295||(_0x349295=_0x59ce22['some'](_0xc5efc8=>!this['editor']['model']['document']['getRoot'](_0xc5efc8))),_0x349295&&_0x4606bf('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5700cb,'editorRootsAttributes':_0x13a9a7,'revisionData':_0x498e85,'revisionRootsAttributes':_0x164462}),this['editor']['config']['set']('initialData',_0x498e85),this['editor']['config']['set']('rootsAttributes',_0x164462);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3e40ef=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3e40ef['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x228e75){const _0x564d23=this['repository']['getRevisions']();_0x564d23['reverse']();let _0x33ee5e=0x0;for(;_0x33ee5e<_0x564d23['length'];){const _0x593e4b=_0x564d23[_0x33ee5e];if(_0x593e4b===this['currentRevision']){_0x33ee5e++;continue;}if(_0x593e4b['id']===this['_initialRevisionId'])break;const _0x3093ae=_0x228e75['toVersion']-_0x593e4b['toVersion']||_0x228e75['fromVersion']-_0x593e4b['fromVersion'];if(_0x3093ae>0x0)break;if(_0x3093ae<0x0)_0x33ee5e++;else{if(!_0x228e75['creator']&&_0x593e4b['creator'])break;if(_0x593e4b['creator']||!_0x228e75['creator']){if(_0x228e75['createdAt']>_0x593e4b['createdAt'])break;_0x33ee5e++;}else _0x33ee5e++;}}return _0x33ee5e;}['setRevisionData'](_0x1343c9){const _0x57b094=this['repository']['getRevision'](_0x1343c9['id']);if(_0x1343c9['createdAt']&&(_0x1343c9['createdAt']=new Date(_0x1343c9['createdAt'])),_0x1343c9['authorsIds']){const _0x5e7ffd=this['editor']['plugins']['get']('Users');_0x1343c9['authors']=_0x1343c9['authorsIds']['map'](_0x1d4d5b=>_0x5e7ffd['getUser'](_0x1d4d5b));}_0x57b094['_update'](_0x1343c9,!0x0);}['buildRevisionData']({revision:_0x52e846=null,from:_0x40fe20=null,to:_0x1c7465=null}){_0x40fe20=null!==_0x40fe20?_0x40fe20:_0x52e846['fromVersion'],_0x1c7465=null!==_0x1c7465?_0x1c7465:_0x52e846['toVersion'];const _0x3573ab=this['_revisionDataBuilder']['getData'](_0x40fe20,_0x1c7465),_0x35be32={'diffData':_0x3573ab['diffData'],'authorsIds':_0x3573ab['authorsIds'],'fromVersion':_0x40fe20,'toVersion':_0x1c7465};if(!_0x52e846||_0x1c7465!==_0x52e846['toVersion']){const _0x2e5e82=_0x1c7465-0x1,_0x3a014f=this['_source']['history']['getOperation'](_0x2e5e82);_0x35be32['createdAt']=_0x3a014f&&_0x3a014f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x40fe20===this['_loadedStateData']['fromVersion']){for(const _0x415989 of this['_loadedStateData']['authors'])_0x35be32['authorsIds']['includes'](_0x415989['id'])||_0x35be32['authorsIds']['push'](_0x415989['id']);}return _0x35be32;}['_loadRevisionData'](_0x24856d){if(!_0x24856d||_0x24856d['diffData'])return Promise['resolve']();{const _0x3d1c96=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3d1c96,'revisionId':_0x24856d['id']})['then'](_0x5ce83c=>{_0x24856d['diffData']=_0x5ce83c['diffData'];});}}['_bufferUpdate'](_0x7b8a40,_0x1c1c7b,_0x5844b4){if(this['_bufferedUpdates']['has'](_0x7b8a40)){const _0x3223c2=this['_bufferedUpdates']['get'](_0x7b8a40);_0x1c1c7b=_0x5844b4?{..._0x3223c2,..._0x1c1c7b}:{..._0x1c1c7b,..._0x3223c2};}this['_bufferedUpdates']['set'](_0x7b8a40,_0x1c1c7b);}['_getFromVersion'](_0x22f480){const _0x5ec78d=this['repository']['getRevisions']();_0x5ec78d['reverse'](),_0x5ec78d['shift']();const _0x6c2d11=_0x5ec78d['find'](_0x10909f=>_0x10909f['toVersion']<=_0x22f480)['toVersion'];return _0x6c2d11<this['_startingVersion']?this['_startingVersion']:_0x6c2d11;}['_createInitialRevision'](_0xfd2981){const _0xdcd5d6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xdcd5d6)this['_initialRevisionId']=_0xdcd5d6['id'];else{const _0x288508=!this['editor']['model']['document']['roots']['find'](_0x27d994=>this['editor']['model']['hasContent'](_0x27d994)),_0x5672c7=this['editor']['plugins']['get']('Users')['me']['id'],_0x96126c=R(this['editor']['locale'],_0x288508?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xfd2981,'to':_0xfd2981,'id':this['_initialRevisionId'],'name':_0x96126c,'creatorId':_0x5672c7});}}['_createCurrentRevision'](_0x2909b0){const _0x512107=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x512107),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2909b0,'to':_0x2909b0,'id':_0x512107,'name':'','creatorId':null}));}['_makeRevision']({name:_0x64fc90,from:_0x41d86c,to:_0x5b42f3,creatorId:_0x318b8c,id:_0x409018}){const _0xda90d7=this['buildRevisionData']({'from':_0x41d86c,'to':_0x5b42f3});_0xda90d7['name']=_0x64fc90,_0xda90d7['creatorId']=_0x318b8c,_0xda90d7['id']=_0x409018;const _0x5d6914=this['addRevisionData'](_0xda90d7);return this['adapter']&&this['_bufferUpdate'](_0xda90d7['id'],_0xda90d7,!0x0),_0x5d6914;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4b27c3){return(_0x4b27c3=_0x4b27c3['filter'](_0x38b67b=>!_0x38b67b['name']||'revision-start'!==_0x38b67b['name']&&'revision-end'!==_0x38b67b['name']))['forEach'](_0x29e377=>{'string'!=typeof _0x29e377&&(_0x29e377['children']=this['_removeRevisionMarkers'](_0x29e377['children']),_0x29e377['attributes']=_0x29e377['attributes']['filter'](_0x56977c=>!_0x56977c[0x0]['startsWith']('data-revision-')));}),_0x4b27c3;}}function V(_0x4b85fc,_0x1fe35d){const _0x4d9beb=_0x1fe35d['editing']['view']['document'];if('string'==typeof _0x4b85fc)return new _0xc82295(_0x4d9beb,_0x4b85fc);{const _0x181c50=_0x4b85fc['children']['map'](_0x347ece=>V(_0x347ece,_0x1fe35d));return new(C[_0x4b85fc['type']]||_0x5a0a9f)(_0x4d9beb,_0x4b85fc['name'],_0x4b85fc['attributes'],_0x181c50);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3ec5e4){this['editor']=_0x3ec5e4,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'](_0x3e1a65){this['source']=_0x3e1a65;const _0x34a310=new Map(),_0x449533=new Map(),_0x5715ba=this['editor']['model']['document']['roots']['map'](_0x29612f=>_0x29612f['rootName']);for(const _0x30df89 of _0x5715ba){const _0x395ee6=this['editor']['model']['document']['getRoot'](_0x30df89),_0x2af088=F(_0x395ee6);_0x34a310['set'](_0x30df89,_0x2af088),_0x449533['set'](_0x30df89,Object['fromEntries'](_0x395ee6['getAttributes']()));}const _0x5609c3=Array['from'](this['editor']['model']['markers'])['map'](_0x12a389=>[_0x12a389['name'],_0x12a389['getRange']()]),_0x17ea83=this['source']['version'];this['_saveMetaData'](_0x17ea83,_0x34a310,_0x5609c3,_0x449533),this['_startingRevisionId']=this['_revisionId'];const _0x12d1fe=new Map(),_0x5ad28a=new Map();for(const _0x1ff60e of _0x5715ba){const _0x44846d=B(_0x1ff60e);_0x12d1fe['set'](_0x1ff60e,_0x44846d),_0x5ad28a['set'](_0x1ff60e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x12d1fe,[],_0x5ad28a);}['getData'](_0x348072,_0x398de3){if(this['_lastFrom']===_0x348072&&this['_lastTo']<=_0x398de3)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x398de3,!0x0);else{if(!this['_savedMetaData']['has'](_0x348072)){const _0xca92cf=this['_getPreviousFrom'](_0x348072);this['_calculateMetaData'](_0xca92cf,_0x348072,!0x1);}this['_calculateMetaData'](_0x348072,_0x398de3,!0x0);}return this['_lastFrom']=_0x348072,this['_lastTo']=_0x398de3,this['_getState']();}['loadState'](_0x56b109){this['_reset'](),this['_lastFrom']=_0x56b109['fromVersion'],this['_lastTo']=_0x56b109['toVersion'];for(const _0x183bbb in _0x56b109['diffData']){const _0x41a3ba=_0x56b109['diffData'][_0x183bbb]['attachChange'],_0x3fbe57=_0x3f8d7d(_0x56b109['diffData'][_0x183bbb]['attributesBefore'])||{},_0x3a6331=this['_makeModelFromViewString'](_0x56b109['diffData'][_0x183bbb]['deletions']);_0x3a6331['rootName']=_0x183bbb,_0x3a6331['_isAttached']=!_0x41a3ba||!_0x41a3ba['isAttached'],_0x3a6331['isAttached']=()=>_0x3a6331['_isAttached'],this['_baseRoots']['set'](_0x183bbb,_0x3a6331),this['_baseRootsAttributes']['set'](_0x183bbb,_0x3fbe57),_0x41a3ba&&this['_touchedRoots']['set'](_0x183bbb,_0x41a3ba);const _0xd11af0=this['_makeIdsRoot'](_0x3a6331);this['_baseIdsRoots']['set'](_0x183bbb,_0xd11af0);for(const [_0xc95b04,_0xefce26]of _0x3a6331['markers']){if(!_0xc95b04['startsWith']('revision:'))continue;const _0x4ace4d=_0xc95b04['split'](':')[0x2];for(const _0x421fa3 of _0xefce26['getWalker']({'singleCharacters':!0x0})){const _0x16845a=this['_getVidAttributeName'](_0x421fa3),_0x3ac1cc='elementEnd'==_0x421fa3['type']?_0x421fa3['previousPosition']['path']['slice'](0x0,-0x1):_0x421fa3['previousPosition']['path'],_0xba139f=_0xd11af0['getNodeByPath'](_0x3ac1cc)['getAttribute'](_0x16845a);this['_touched']['set'](_0xba139f,{'userId':_0x4ace4d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5a2c22=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x11b87e=>!this['_touched']['has'](_0x11b87e));let _0xd1a865=0x0;const _0x40dc77=new Map();for(const _0x5bd5de in _0x56b109['diffData']){const _0x5134a2=_0x56b109['diffData'][_0x5bd5de]['attachChange'],_0x23aad0=_0x3f8d7d(_0x56b109['diffData'][_0x5bd5de]['attributesAfter'])||{},_0x2d5741=this['_makeModelFromViewString'](_0x56b109['diffData'][_0x5bd5de]['insertions']);_0x2d5741['rootName']=_0x5bd5de,_0x2d5741['_isAttached']=!_0x5134a2||_0x5134a2['isAttached'],_0x2d5741['isAttached']=()=>_0x2d5741['_isAttached'],this['_diffRoots']['set'](_0x5bd5de,_0x2d5741),this['_diffRootsAttributes']['set'](_0x5bd5de,_0x23aad0);const _0x193076=this['_makeIdsRoot'](_0x2d5741,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5bd5de,_0x193076),_0x40dc77['set'](_0x5bd5de,_0x2d5741['isAttached']()?_0x23aad0:{});for(const [_0x627574,_0x20f971]of _0x2d5741['markers']){if(!_0x627574['startsWith']('revision:'))continue;const _0x22936b=_0x627574['split'](':')[0x2];for(const _0x1edf9c of _0x20f971['getWalker']({'singleCharacters':!0x0})){const _0x4c46b1=this['_getVidAttributeName'](_0x1edf9c),_0x4952d5=this['_revisionId']++,_0x4ec38b='elementEnd'==_0x1edf9c['type']?_0x1edf9c['previousPosition']['path']['slice'](0x0,-0x1):_0x1edf9c['previousPosition']['path'];_0x193076['getNodeByPath'](_0x4ec38b)['_setAttribute'](_0x4c46b1,_0x4952d5),this['_touched']['set'](_0x4952d5,{'userId':_0x22936b});}}for(const _0x7e334f of this['editor']['model']['createRangeIn'](_0x2d5741)['getWalker']({'singleCharacters':!0x0})){const _0xa04d4d=this['_getVidAttributeName'](_0x7e334f),_0x42effe='elementEnd'==_0x7e334f['type']?_0x7e334f['previousPosition']['path']['slice'](0x0,-0x1):_0x7e334f['previousPosition']['path'],_0x359b5e=_0x193076['getNodeByPath'](_0x42effe);_0x359b5e['getAttribute'](_0xa04d4d)>0x0||_0x359b5e['_setAttribute'](_0xa04d4d,_0x5a2c22[_0xd1a865++]);}for(const [_0x1e45b4,_0xcb9c51]of _0x2d5741['markers'])_0x1e45b4['startsWith']('revision:')||this['_markers']['set'](_0x1e45b4,_0xcb9c51);}const _0x4630f6=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4630f6),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4630f6,0x1));const _0x3f0a7b=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3f0a7b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f0a7b,0x1));const _0x3ed5d6=Array['from'](this['_diffRoots'])['map'](([_0x8651e3,_0xb26e9a])=>[_0x8651e3,F(_0xb26e9a)]);this['_saveMetaData'](this['_lastTo'],_0x3ed5d6,this['_markers'],_0x40dc77);}['_makeModelFromViewString'](_0x177682){const _0x476b37=JSON['parse'](_0x177682),_0x21424c=this['editor']['editing']['view']['document'],_0x1e5306=new _0x1faec1(_0x21424c,_0x476b37['map'](_0x561e89=>V(_0x561e89,this['editor'])));return this['editor']['data']['toModel'](_0x1e5306);}['_saveMetaData'](_0x3d2a7d,_0x32442a,_0x145194,_0x3e85d8){const _0x333928=new Map(_0x32442a),_0x35efbc=new Map(_0x3f8d7d(_0x3e85d8)),_0x3d7587=new Map();for(const [_0x94d5ea,_0x104bc6]of _0x145194)_0x3d7587['set'](_0x94d5ea,{'start':_0x104bc6['start']['clone'](),'end':_0x104bc6['end']['clone'](),'rootName':_0x104bc6['root']['rootName']});this['_savedMetaData']['set'](_0x3d2a7d,{'roots':_0x333928,'markers':_0x3d7587,'rootsAttributes':_0x35efbc});}['_removeMetaData'](_0x6abae){this['_savedMetaData']['delete'](_0x6abae);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x42478b,_0x2b7ce6=null){let _0x34d600=null;_0x42478b['is']('documentFragment')||(_0x34d600=new ft(_0x42478b['name'],{'vid_start':null===_0x2b7ce6?this['_revisionId']++:_0x2b7ce6++}));const _0x2571a2=[];for(const _0x45774f of _0x42478b['getChildren']())if(_0x45774f['is']('element')){_0x2571a2['push'](this['_makeIdsRoot'](_0x45774f,_0x2b7ce6));const _0xa3d042=_0x2571a2[_0x2571a2['length']-0x1];null!==_0x2b7ce6&&(_0x2b7ce6=_0xa3d042['is']('element','$text')?_0xa3d042['getAttribute']('vid')+0x1:_0xa3d042['getAttribute']('vid_end')+0x1);}else{for(let _0x481611=0x0;_0x481611<_0x45774f['offsetSize'];_0x481611++)_0x2571a2['push'](new ft('$text',{'vid':null===_0x2b7ce6?this['_revisionId']++:_0x2b7ce6++}));}if(_0x42478b['is']('documentFragment')){const _0x409c7f=B(_0x42478b['rootName']);return _0x409c7f['_insertChild'](0x0,_0x2571a2),_0x409c7f;}return _0x34d600['_setAttribute']('vid_end',null===_0x2b7ce6?this['_revisionId']++:_0x2b7ce6++),_0x34d600['_insertChild'](0x0,_0x2571a2),_0x34d600;}['_calculateMetaData'](_0x58aefa,_0x4acb39,_0x5fbed8){this['_reset']();const {roots:_0x35332e,markers:_0x178d0f,rootsAttributes:_0x347cc6}=this['_savedMetaData']['get'](_0x58aefa);this['_baseRoots']=new Map(_0x35332e),this['_baseRootsAttributes']=new Map(_0x3f8d7d(_0x347cc6));for(const [_0x2d9ba8,_0x22e635]of this['_baseRoots'])if('$graveyard'!==_0x2d9ba8&&(this['_diffRoots']['set'](_0x2d9ba8,F(_0x22e635)),this['_diffRootsAttributes']=new Map(_0x3f8d7d(_0x347cc6)),_0x5fbed8)){const _0x4f318a=this['_revisionId'];this['_idsRoots']['set'](_0x2d9ba8,this['_makeIdsRoot'](_0x22e635)),this['_baseIdsRoots']['set'](_0x2d9ba8,this['_makeIdsRoot'](_0x22e635,_0x4f318a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5fbed8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2219d7,_0x31a4de]of _0x178d0f){const _0x3c5784=this['_baseRoots']['get'](_0x31a4de['rootName']),_0x2be0db=this['_diffRoots']['get'](_0x31a4de['rootName']),_0x474714=new vt(this['_fixPosition'](_0x31a4de['start'],_0x3c5784),this['_fixPosition'](_0x31a4de['end'],_0x3c5784)),_0x3b0378=this['_fixRange'](_0x474714,_0x2be0db);_0x3c5784['markers']['set'](_0x2219d7,_0x474714),this['_markers']['set'](_0x2219d7,_0x3b0378);}this['_applyOperations'](_0x58aefa,_0x4acb39,_0x5fbed8);}['_applyOperations'](_0x33f6fa,_0x25ea5e,_0x30ae41){for(const _0x376de4 of this['source']['getOperations'](_0x33f6fa,_0x25ea5e))this['_handleOperation'](_0x376de4,_0x30ae41);for(const _0x1282a7 of this['_diffRoots']['values']())_0x1282a7['markers']['clear']();for(const [_0x52d647,_0x4174fb]of this['_markers']){this['_diffRoots']['get'](_0x4174fb['root']['rootName'])['markers']['set'](_0x52d647,_0x4174fb['clone']());}const _0x44b8a2=new Map(),_0x27e261=new Map();for(const [_0x545703,_0x2e6c5d]of this['_diffRoots'])_0x44b8a2['set'](_0x545703,F(_0x2e6c5d)),_0x27e261['set'](_0x545703,this['_diffRootsAttributes']['get'](_0x545703));this['_saveMetaData'](_0x25ea5e,_0x44b8a2,this['_markers'],_0x27e261);}['_getPreviousFrom'](_0xc1ecbe){const _0x52a86b=Array['from'](this['_savedMetaData']['keys']());_0x52a86b['sort']((_0xc551cb,_0x36255e)=>_0xc551cb-_0x36255e),_0x52a86b['reverse']();for(const _0x4a7a60 of _0x52a86b)if(_0x4a7a60<_0xc1ecbe)return _0x4a7a60;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5e75c9,_0x36f284){const _0x8b1507=Array['from'](_0x36f284['markers'])['map'](([_0x39cd12,_0xedf347])=>[_0x39cd12,this['_fixRange'](_0xedf347,_0x5e75c9)]);_0x5e75c9['markers']=new Map(_0x8b1507);}['_transformMarkers'](_0x50c703){for(const _0x4edcc0 of this['_markers']['values']()){const _0x68822b=_0x4edcc0['getTransformedByOperation'](_0x50c703),_0x387944=vt['_createFromRanges'](_0x68822b);_0x4edcc0['start']=_0x387944['start'],_0x4edcc0['end']=_0x387944['end'];}}['_handleOperation'](_0x2a3e40,_0x1c2a17){if('addRoot'!=_0x2a3e40['type']&&'detachRoot'!=_0x2a3e40['type']){if('insert'==_0x2a3e40['type']){const _0x4f44e9=_0x2a3e40['position']['root']['rootName'];this['_diffRoots']['has'](_0x4f44e9)||(this['_diffRoots']['set'](_0x4f44e9,B(_0x4f44e9,!0x0)),this['_diffRootsAttributes']['set'](_0x4f44e9,{}),_0x1c2a17&&this['_idsRoots']['set'](_0x4f44e9,B(_0x4f44e9,!0x0)));}else{if('addRootAttribute'==_0x2a3e40['type']||'removeRootAttribute'==_0x2a3e40['type']||'changeRootAttribute'==_0x2a3e40['type'])return void this['_handleRootAttributeOperation'](_0x2a3e40);'marker'==_0x2a3e40['type']&&this['_handleMarkerOperation'](_0x2a3e40);}if('marker'!==_0x2a3e40['type']){const _0x38b02f=this['_cloneOperation'](_0x2a3e40,this['_diffRoots']);_0x38b02f['_execute'](),this['_transformMarkers'](_0x38b02f);}if(_0x1c2a17)switch(_0x2a3e40['type']){case'insert':this['_handleInsertOperation'](_0x2a3e40);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2a3e40);break;case'merge':this['_handleMergeOperation'](_0x2a3e40);break;case'split':this['_handleSplitOperation'](_0x2a3e40);}}else this['_handleRootOperation'](_0x2a3e40,_0x1c2a17);}['_cloneOperation'](_0x35c063,_0xec2ddf){const _0x51c614=_0x35c063['clone']();return _0x51c614['_authorId']=_0x35c063['_authorId'],this['_fixOperation'](_0x51c614,_0xec2ddf),_0x51c614;}['_getBaseVids'](_0x2eead7){return _0x2eead7['map'](_0x50f286=>{const _0x2a9baf=this['_getVidAttributeName'](_0x50f286);return Number(_0x50f286['item']['getAttribute'](_0x2a9baf));});}['_generateTape'](_0x4dae41,_0x60b692){if(_0x4dae41['is']('element','$text'))_0x60b692['push']({'item':_0x4dae41,'type':'text'});else{_0x4dae41['is']('element')&&_0x60b692['push']({'item':_0x4dae41,'type':'elementStart'});for(const _0x325cc9 of _0x4dae41['getChildren']())this['_generateTape'](_0x325cc9,_0x60b692);_0x4dae41['is']('element')&&_0x60b692['push']({'item':_0x4dae41,'type':'elementEnd'});}return _0x60b692;}['_getState'](){const _0x446525=new Map(this['_touched']),_0x446d77=new Map(_0x446525),_0xf48a08=new Map(),_0x4d9bbc={'insertions':{},'deletions':{}},_0xda4516={'insertions':{},'deletions':{}},_0x45e990=new Map(),_0xedd605=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xedd605['delete']('$graveyard');for(const _0x10b677 of _0xedd605){const _0x5ceee5=this['_diffRoots']['get'](_0x10b677)||B(_0x10b677,!0x1),_0x276641=this['_baseRoots']['get'](_0x10b677)||B(_0x10b677,!0x1);_0x5ceee5['isAttached']()||_0x276641['isAttached']()?(_0x4d9bbc['insertions'][_0x10b677]=F(_0x5ceee5),_0x4d9bbc['deletions'][_0x10b677]=F(_0x276641),this['_copyMarkers'](_0x4d9bbc['deletions'][_0x10b677],_0x276641),this['_copyMarkers'](_0x4d9bbc['insertions'][_0x10b677],_0x5ceee5),_0xda4516['insertions'][_0x10b677]=this['_generateTape'](this['_idsRoots']['get'](_0x10b677),[]),_0xda4516['deletions'][_0x10b677]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x10b677)||B(_0x10b677,!0x1),[])):_0xedd605['delete'](_0x10b677);}for(const _0x5d8fb2 of _0xedd605){const _0x1865ae=_0xda4516['insertions'][_0x5d8fb2];for(const _0x330025 of _0x1865ae){const _0x472138=this['_getVidAttributeName'](_0x330025),_0x54e851=_0x330025['item']['getAttribute'](_0x472138);_0x446d77['delete'](_0x54e851),_0x54e851>=this['_startingRevisionId']&&_0xf48a08['set'](_0x54e851,_0x446525['get'](_0x54e851));}}for(const _0x553942 of _0xedd605){const _0x14908f=_0xda4516['insertions'][_0x553942],_0x3ed93e=this['_getBaseVids'](_0xda4516['deletions'][_0x553942]);let _0x5e5902=0x0;for(const _0x12d4e4 of _0x14908f){const _0x54e306=this['_getVidAttributeName'](_0x12d4e4),_0x59f823=_0x12d4e4['item']['getAttribute'](_0x54e306);if(!_0xf48a08['has'](_0x59f823)&&!_0x45e990['has'](_0x59f823)){if(_0x446d77['has'](_0x59f823))_0x5e5902++;else{if(_0x59f823!=_0x3ed93e[_0x5e5902]){const _0x476b01=_0x446525['get'](_0x59f823)||_0x446525['get'](_0x3ed93e[_0x5e5902]);for(;_0x59f823!=_0x3ed93e[_0x5e5902];)_0x446d77['has'](_0x3ed93e[_0x5e5902])||(_0x45e990['set'](_0x3ed93e[_0x5e5902],_0x476b01),_0x446525['set'](_0x3ed93e[_0x5e5902],_0x476b01)),_0x5e5902++;}_0x5e5902++;}}}}for(const _0x3a14a2 of _0xedd605){const _0x161c6e=_0xda4516['insertions'][_0x3a14a2];for(const _0x52cf32 of _0x161c6e){const _0x44b6a9=this['_getVidAttributeName'](_0x52cf32),_0x3dfaa0=_0x52cf32['item']['getAttribute'](_0x44b6a9);if(_0x45e990['has'](_0x3dfaa0)){const _0x1d8e8d=_0x45e990['get'](_0x3dfaa0);_0x446d77['has'](_0x3dfaa0)||_0x446d77['set'](_0x3dfaa0,{..._0x1d8e8d}),_0xf48a08['set'](_0x3dfaa0,{..._0x1d8e8d});}}}for(const _0x5dc8a6 of _0x446d77['keys']())_0x5dc8a6>=this['_startingRevisionId']&&_0x446d77['delete'](_0x5dc8a6);const _0x5be5b7=new Map();for(const _0x467cea of _0xedd605){let _0x2d71bf=_0xda4516['insertions'][_0x467cea];for(const _0x3fc86e of _0x2d71bf)if(_0x3fc86e['item']['is']('element','tableCell')){const _0x138a3c=this['_getVidAttributeName'](_0x3fc86e),_0x299446=_0x3fc86e['item']['getAttribute'](_0x138a3c);if(_0xf48a08['has'](_0x299446)){const _0xe99bd9=_0x3fc86e['item']['parent']['parent']['getAttribute']('vid_start'),_0x252983=_0x5be5b7['get'](_0xe99bd9)||new Set();_0x252983['add'](_0xf48a08['get'](_0x299446)['userId']),_0x5be5b7['set'](_0xe99bd9,_0x252983);}}_0x2d71bf=_0xda4516['deletions'][_0x467cea];for(const _0x171b49 of _0x2d71bf)if(_0x171b49['item']['is']('element','tableCell')){const _0x18bcd9=this['_getVidAttributeName'](_0x171b49),_0xfd8d05=_0x171b49['item']['getAttribute'](_0x18bcd9);if(_0x446d77['has'](_0xfd8d05)){const _0x33f9d1=_0x171b49['item']['parent']['parent']['getAttribute']('vid_start'),_0x51c37d=_0x5be5b7['get'](_0x33f9d1)||new Set();_0x51c37d['add'](_0x446d77['get'](_0xfd8d05)['userId']),_0x5be5b7['set'](_0x33f9d1,_0x51c37d);}}for(const _0x2eb500 of _0x5be5b7['keys']())(_0xf48a08['has'](_0x2eb500)||_0x446d77['has'](_0x2eb500))&&_0x5be5b7['delete'](_0x2eb500);}for(const _0xb8f085 of _0xedd605){const _0x3bdbb5=_0xda4516['insertions'][_0xb8f085];let _0x67e64c=null,_0x3202f9=null;for(const _0x3aa1eb of _0x3bdbb5){const _0x60884d=this['_getVidAttributeName'](_0x3aa1eb),_0x2d105f=_0x3aa1eb['item']['getAttribute'](_0x60884d),_0x44698b=_0x5be5b7['get'](_0x2d105f);_0x44698b&&'elementStart'==_0x3aa1eb['type']&&(_0x67e64c=Array['from'](_0x44698b)[0x0],_0x3202f9=_0x3aa1eb['item']['getAttribute']('vid_end')),_0x67e64c&&(_0x446d77['set'](_0x2d105f,{'userId':_0x67e64c}),_0xf48a08['set'](_0x2d105f,{'userId':_0x67e64c})),_0x2d105f==_0x3202f9&&(_0x67e64c=null,_0x3202f9=null);}}const _0x334d18={},_0x18ff06=new Set();for(const _0x488382 of _0xedd605){const _0x119c07=_0x4d9bbc['deletions'][_0x488382],_0x2dfa61=_0x4d9bbc['insertions'][_0x488382];for(const {userId:_0x3bd8af}of this['_touchedMarkers']['values']())null!==_0x3bd8af&&_0x18ff06['add'](_0x3bd8af);for(const {userId:_0x3248f5}of this['_touchedRoots']['values']())null!==_0x3248f5&&_0x18ff06['add'](_0x3248f5);this['_markChanges'](_0x2dfa61,_0xda4516['insertions'][_0x488382],_0xf48a08,'insertion',_0x18ff06),this['_markChanges'](_0x119c07,_0xda4516['deletions'][_0x488382],_0x446d77,'deletion',_0x18ff06),_0x334d18[_0x488382]={'insertions':this['_prepareViewToSave'](_0x2dfa61),'deletions':this['_prepareViewToSave'](_0x119c07),'attachChange':this['_touchedRoots']['get'](_0x488382)||null,'attributesBefore':_0x3f8d7d(this['_baseRootsAttributes']['get'](_0x488382))||{},'attributesAfter':_0x3f8d7d(this['_diffRootsAttributes']['get'](_0x488382))};}return{'diffData':_0x334d18,'authorsIds':Array['from'](_0x18ff06)};}['_processRootBeforeSave'](_0x37df4a){for(const [,_0x1ad57e]of _0x37df4a['markers']){const _0x392cf9=_0x1ad57e['start']['getAncestors']()['filter'](_0x12d54e=>'tableCell'==_0x12d54e['name']);for(const _0x51bcd1 of _0x392cf9)0x1==_0x51bcd1['childCount']&&_0x51bcd1['getChild'](0x0)['is']('element','paragraph')&&_0x51bcd1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3a2251){this['_processRootBeforeSave'](_0x3a2251);const _0x23a26c=this['editor']['data']['toView'](_0x3a2251,{}),_0x4a3dc2=Array['from'](_0x23a26c['getChildren']())['map'](_0x5b7db4=>this['_getViewJson'](_0x5b7db4));return JSON['stringify'](_0x4a3dc2);}['_getViewJson'](_0x4a487b){if(_0x4a487b['is']('$text'))return _0x4a487b['data'];{const _0x45bb42=_0x4a487b;return{'type':Object['keys'](C)['find'](_0x44e752=>_0x4a487b instanceof C[_0x44e752]),'name':_0x45bb42['name'],'attributes':Array['from'](_0x45bb42['getAttributes']()),'children':Array['from'](_0x45bb42['getChildren']())['map'](_0x3142e6=>this['_getViewJson'](_0x3142e6))};}}['_markChanges'](_0x220106,_0x3d1843,_0x2d02f4,_0x362db8,_0x56efc6){let _0x240647=null,_0x205f67=null,_0x5c2195=0x0;const _0x2dda24=this['editor']['model'];for(let _0x46b093=0x0;_0x46b093<_0x3d1843['length'];_0x46b093++){const _0x34a666=this['_getVidAttributeName'](_0x3d1843[_0x46b093]),_0x2013e5=_0x3d1843[_0x46b093]['item']['getAttribute'](_0x34a666),_0x25e89d=_0x2d02f4['get'](_0x2013e5),_0x34af15=_0x46b093==_0x3d1843['length']-0x1;(!_0x240647&&_0x25e89d&&(_0x240647=_0x25e89d,_0x205f67=_0x3d1843[_0x46b093]),_0x240647&&(!_0x25e89d||_0x25e89d['userId']!=_0x240647['userId']))&&(_0x1573bd(_0x25e89d,J(_0x205f67,_0x220106,_0x2dda24),J(_0x3d1843[_0x46b093],_0x220106,_0x2dda24)),_0x240647=_0x25e89d||null,_0x205f67=_0x25e89d?_0x3d1843[_0x46b093]:null),_0x240647&&_0x34af15&&_0x1573bd(_0x25e89d,J(_0x205f67,_0x220106,_0x2dda24),q(_0x3d1843[_0x46b093],_0x220106,_0x2dda24));}function _0x1573bd(_0x50bae2,_0x4f1370,_0x49f2b3){const _0x3bb579=_0x240647['userId'],_0x1beb2f='revision:'+_0x362db8+':'+_0x3bb579+':'+_0x5c2195++,_0x3bb46f=_0x2dda24['createRange'](_0x4f1370,_0x49f2b3);_0x220106['markers']['set'](_0x1beb2f,_0x3bb46f),null!==_0x3bb579&&_0x56efc6['add'](_0x3bb579);}}['_getVidAttributeName'](_0x486e53){switch(_0x486e53['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x42d853,_0x5b0368){_0x42d853['baseVersion']=null;for(const _0x3fed4a in _0x42d853){const _0x412d8c=_0x42d853[_0x3fed4a];if(_0x412d8c instanceof gt){const _0x4c517a=_0x5b0368['get'](_0x412d8c['root']['rootName']);_0x42d853[_0x3fed4a]=this['_fixPosition'](_0x412d8c,_0x4c517a);}if(_0x412d8c instanceof vt){const _0x11e023=_0x5b0368['get'](_0x412d8c['root']['rootName']);_0x42d853[_0x3fed4a]=this['_fixRange'](_0x412d8c,_0x11e023);}'root'===_0x3fed4a&&(_0x42d853['root']=_0x5b0368['get'](_0x42d853['root']['rootName']));}}['_fixRange'](_0x3eace1,_0x3d674c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3eace1['start'],_0x3d674c),this['_fixPosition'](_0x3eace1['end'],_0x3d674c));}['_fixPosition'](_0x227af4,_0x141f83){return this['editor']['model']['createPositionFromPath'](_0x141f83,_0x227af4['path'],_0x227af4['stickiness']);}['_handleInsertOperation'](_0x4cd6ad){const _0x40478d=this['_idsRoots']['get'](_0x4cd6ad['position']['root']['rootName']),_0x5ad6c2=this['_fixPosition'](_0x4cd6ad['position'],_0x40478d),_0x50235d=null===_0x4cd6ad['_authorId']?null:_0x4cd6ad['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e7239=_0x5ad6c2['parent'],_0x1ecf2b=this['_revisionId'],_0x4bb2a0=[];for(const _0x265d1c of _0x4cd6ad['nodes'])if(_0x265d1c['is']('element'))_0x4bb2a0['push'](this['_makeIdsRoot'](_0x265d1c));else{for(let _0x2c3573=0x0;_0x2c3573<_0x265d1c['offsetSize'];_0x2c3573++)_0x4bb2a0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x1b608a=this['_revisionId'];for(let _0x2c5d63=_0x1ecf2b;_0x2c5d63<_0x1b608a;_0x2c5d63++)this['_touched']['set'](_0x2c5d63,{'userId':_0x50235d});_0x2e7239['_insertChild'](_0x5ad6c2['offset'],_0x4bb2a0);}['_handleMoveOperation'](_0x80fefa){(_0x80fefa=this['_cloneOperation'](_0x80fefa,this['_idsRoots']))['_execute']();const _0x517bf6=null===_0x80fefa['_authorId']?null:_0x80fefa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a94c1=_0x80fefa['getMovedRangeStart'](),_0x21faf2=_0x3a94c1['parent'],_0x59da6a=_0x3a94c1['offset'];!function _0x3850dc(_0x25c250,_0x16a071,_0x2a30e6,_0x3d4035){for(let _0x10d961=_0x2a30e6;_0x10d961<_0x3d4035;_0x10d961++){const _0xea66e8=_0x16a071['getChild'](_0x10d961);_0xea66e8['is']('element','$text')?_0x25c250['set'](_0xea66e8['getAttribute']('vid'),{'userId':_0x517bf6}):(_0x25c250['set'](_0xea66e8['getAttribute']('vid_start'),{'userId':_0x517bf6}),_0x3850dc(_0x25c250,_0xea66e8,0x0,_0xea66e8['childCount']),_0x25c250['set'](_0xea66e8['getAttribute']('vid_end'),{'userId':_0x517bf6}));}}(this['_touched'],_0x21faf2,_0x59da6a,_0x59da6a+_0x80fefa['howMany']);}['_handleMergeOperation'](_0x38ec18){const _0x3ec452=null===(_0x38ec18=this['_cloneOperation'](_0x38ec18,this['_idsRoots']))['_authorId']?null:_0x38ec18['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d1442=_0x38ec18['targetPosition']['parent'],_0x3437ce=_0x38ec18['sourcePosition']['parent'],_0x25656e=_0x1d1442['getAttribute']('vid_end'),_0xe851a=_0x3437ce['getAttribute']('vid_start');_0x1d1442['_setAttribute']('vid_end',_0x3437ce['getAttribute']('vid_end')),_0x3437ce['_setAttribute']('vid_end',_0x25656e),this['_touched']['set'](_0xe851a,{'userId':_0x3ec452}),this['_touched']['set'](_0x25656e,{'userId':_0x3ec452}),_0x38ec18['_execute']();}['_handleSplitOperation'](_0x292839){const _0x48b3b2=null===(_0x292839=this['_cloneOperation'](_0x292839,this['_idsRoots']))['_authorId']?null:_0x292839['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1758bf=_0x292839['graveyardPosition'],_0x3931ef=_0x292839['splitPosition']['parent'];_0x292839['_execute']();const _0x31a474=_0x3931ef['getAttribute']('vid_end'),_0x31c6f7=_0x292839['insertionPosition']['nodeAfter'];if(_0x1758bf){const _0x4c78c1=_0x31c6f7['getAttribute']('vid_end'),_0x5d8d0e=_0x3931ef['getAttribute']('vid_end');_0x3931ef['_setAttribute']('vid_end',_0x4c78c1),_0x31c6f7['_setAttribute']('vid_end',_0x5d8d0e),this['_touched']['set'](_0x3931ef['getAttribute']('vid_end'),{'userId':_0x48b3b2}),this['_touched']['set'](_0x31c6f7['getAttribute']('vid_start'),{'userId':_0x48b3b2});}else{const _0x3a61a7=this['_revisionId']++,_0x4a0080=this['_revisionId']++;_0x3931ef['_setAttribute']('vid_end',_0x3a61a7),_0x31c6f7['_setAttribute']('vid_start',_0x4a0080),_0x31c6f7['_setAttribute']('vid_end',_0x31a474),this['_touched']['set'](_0x3a61a7,{'userId':_0x48b3b2}),this['_touched']['set'](_0x4a0080,{'userId':_0x48b3b2});}}['_handleMarkerOperation'](_0x5c0881){if(!_0x5c0881['affectsData'])return;const _0x442f3d=(_0x5c0881=this['_cloneOperation'](_0x5c0881,this['_diffRoots']))['oldRange']?_0x5c0881['oldRange']['root']:null,_0x50ab96=_0x5c0881['newRange']?_0x5c0881['newRange']['root']:null;_0x442f3d&&this['_markers']['delete'](_0x5c0881['name']),_0x50ab96&&this['_markers']['set'](_0x5c0881['name'],_0x5c0881['newRange']['clone']());const _0x3aa7f8=null===_0x5c0881['_authorId']?null:_0x5c0881['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25a9e7=_0x5c0881['name'];if(!this['_touchedMarkers']['has'](_0x25a9e7))return void this['_touchedMarkers']['set'](_0x25a9e7,{'range':_0x5c0881['oldRange'],'userId':_0x3aa7f8});const _0x2771a4=this['_touchedMarkers']['get'](_0x25a9e7),_0x30fa31=_0x2771a4['range'],_0x1f7f4e=_0x5c0881['newRange'];null==_0x30fa31&&null==_0x1f7f4e||_0x30fa31&&_0x1f7f4e&&_0x30fa31['isEqual'](_0x1f7f4e)?this['_touchedMarkers']['delete'](_0x5c0881['name']):_0x2771a4['userId']=_0x3aa7f8;}['_handleRootOperation'](_0x12f108,_0x179b14){this['_diffRoots']['has'](_0x12f108['rootName'])?this['_diffRoots']['get'](_0x12f108['rootName'])['_isAttached']=_0x12f108['isAdd']:(this['_diffRoots']['set'](_0x12f108['rootName'],B(_0x12f108['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x12f108['rootName'],{}),_0x179b14&&this['_idsRoots']['set'](_0x12f108['rootName'],B(_0x12f108['rootName'],!0x0)));const _0x4d8317=null===_0x12f108['_authorId']?null:_0x12f108['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2885a5=this['_touchedRoots']['get'](_0x12f108['rootName']);_0x2885a5&&_0x2885a5['userId']===_0x4d8317?this['_touchedRoots']['delete'](_0x12f108['rootName']):this['_touchedRoots']['set'](_0x12f108['rootName'],{'userId':_0x4d8317,'isAttached':_0x12f108['isAdd']});}['_handleRootAttributeOperation'](_0x370b00){const _0x2fd3f0=this['_diffRootsAttributes']['get'](_0x370b00['root']['rootName']);null===_0x370b00['newValue']?delete _0x2fd3f0[_0x370b00['key']]:_0x2fd3f0[_0x370b00['key']]=_0x370b00['newValue'];}}function F(_0x967736){const _0x3112c7=B(_0x967736['rootName'],_0x967736['isAttached']());for(const _0x2ce97e of _0x967736['getChildren']()){const _0xc4362c=_0x2ce97e['_clone'](!0x0);_0x3112c7['_appendChild'](_0xc4362c);}return _0x3112c7;}function B(_0x3d0aba,_0x4ad390=!0x0){const _0x4b49b9=new wt();return _0x4b49b9['rootName']=_0x3d0aba,_0x4b49b9['_isAttached']=_0x4ad390,_0x4b49b9['isAttached']=()=>_0x4b49b9['_isAttached'],_0x4b49b9;}function J(_0x600f39,_0x13d6ec,_0x5c4ef0){const _0x4c789d='elementEnd'==_0x600f39['type']?_0x5c4ef0['createPositionAt'](_0x600f39['item'],'end'):_0x5c4ef0['createPositionBefore'](_0x600f39['item']);return _0x5c4ef0['createPositionFromPath'](_0x13d6ec,_0x4c789d['path'],_0x4c789d['stickiness']);}function q(_0x5e1045,_0x53a0eb,_0x146b47){const _0x50d2c2='elementStart'==_0x5e1045['type']?_0x146b47['createPositionAt'](_0x5e1045['item'],0x0):_0x146b47['createPositionAfter'](_0x5e1045['item']);return _0x146b47['createPositionFromPath'](_0x53a0eb,_0x50d2c2['path'],_0x50d2c2['stickiness']);}class ns extends _0x2f7742{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3994e7,_0x2945c2){super(_0x3994e7),this['focusTracker']=new _0x1f48e8(),this['keystrokes']=new _0x1ad837(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2945c2),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x255ed2({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x32e00c=_0xc562cb=>_0xc562cb['stopPropagation']();this['keystrokes']['set']('arrowright',_0x32e00c),this['keystrokes']['set']('arrowleft',_0x32e00c),this['keystrokes']['set']('arrowup',_0x32e00c),this['keystrokes']['set']('arrowdown',_0x32e00c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2598e6){this['revisionNameInputView']['fieldView']['element']['value']=_0x2598e6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3d1c77){const _0x12d3cc=new at(this['locale'],_0x4f7e6f),_0x323667=_0x12d3cc['fieldView'];_0x323667['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5c466a=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3d1c77&&(_0x5c466a+='\x20('+R(this['locale'],'optional')+')'),(_0x12d3cc['label']=_0x5c466a,_0x323667['on']('input',()=>{this['revisionNameInputValue']=_0x323667['element']['value']['trim']();}),_0x12d3cc);}}class u extends _0x24c069{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xe9a894=this['editor'],_0x22f635=_0xe9a894['plugins']['get']('RevisionTracker');_0xe9a894['ui']['componentFactory']['add']('revisionHistory',_0x2cdb75=>{const _0x25de48=_0x433761(_0x2cdb75),_0x2de1c2=_0x25de48['panelView']['children'],_0x45879c=new te(_0x2cdb75),_0x100ab3=new _0x3cd8f4(_0x2cdb75),_0x262d87=new _0x27296f(_0x2cdb75),_0x1068c0=new _0x3cd8f4(_0x2cdb75),_0x37f87a=new _0x27296f(_0x2cdb75);return _0x25de48['bind']('isEnabled')['to'](_0x22f635,'isReady',_0x22f635,'isEnabled',_0xe9a894,'isReadOnly',(_0x32ab35,_0x1da1a6,_0x598e93)=>_0x32ab35&&_0x1da1a6&&!_0x598e93),_0x25de48['buttonView']['set']({'icon':_0x2774db['history'],'label':R(_0x2cdb75,'Revision\x20history'),'tooltip':!0x0}),_0x262d87['set']({'label':R(_0x2cdb75,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x262d87['bind']('isEnabled')['to'](_0x22f635,'isReady',_0x22f635,'isEnabled',_0xe9a894,'isReadOnly',(_0x1d5885,_0x41998e,_0x396fc4)=>_0x1d5885&&_0x41998e&&!_0x396fc4),_0x262d87['on']('execute',()=>this['_showDialog']()),_0x37f87a['set']({'label':R(_0x2cdb75,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x37f87a['bind']('isEnabled')['to'](_0x22f635,'isReady',_0xe9a894,'isReadOnly',(_0x3894f9,_0x54f15f)=>_0x3894f9&&!_0x54f15f),_0x37f87a['on']('execute',()=>{_0xe9a894['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x25de48['isOpen']=!0x1,_0xe9a894['editing']['view']['focus']();}),_0x100ab3['children']['add'](_0x262d87),_0x1068c0['children']['add'](_0x37f87a),_0x45879c['role']='menu',_0x45879c['items']['addMany']([_0x100ab3,_0x1068c0]),_0x2de1c2['add'](_0x45879c),_0x25de48;}),_0xe9a894['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x31ae6e=this['editor'],_0x38910b=_0x31ae6e['locale'],_0x188e73=new _0x354e27(_0x38910b),_0x256d68=new _0x16dcc0(_0x38910b);_0x188e73['buttonView']['set']({'icon':_0x2774db['history'],'label':R(_0x38910b,'Revision\x20history')});const _0x39e35e=new _0x21965d(_0x38910b,_0x188e73),_0x207f50=new _0x3ebae4(_0x38910b);_0x207f50['set']({'label':R(_0x38910b,'Save\x20current\x20revision')}),_0x207f50['delegate']('execute')['to'](_0x188e73),_0x207f50['on']('execute',()=>{this['_showDialog']();}),_0x39e35e['children']['add'](_0x207f50),_0x256d68['items']['add'](_0x39e35e);const _0x13f63d=new _0x21965d(_0x38910b,_0x188e73),_0x3e965a=new _0x3ebae4(_0x38910b);return _0x3e965a['set']({'label':R(_0x38910b,'Open\x20revision\x20history')}),_0x3e965a['delegate']('execute')['to'](_0x188e73),_0x3e965a['on']('execute',()=>{_0x31ae6e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x13f63d['children']['add'](_0x3e965a),_0x256d68['items']['add'](_0x13f63d),_0x188e73['panelView']['children']['add'](_0x256d68),_0x188e73;}['_showDialog'](){const _0x12b43f=this['editor'],_0x3f1f81=_0x12b43f['locale'],_0x187770=_0x12b43f['plugins']['get']('Dialog'),_0x5a8e1c=_0x12b43f['plugins']['get']('RevisionTracker');function _0x56ccc6(_0x222b1f){_0x12b43f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x222b1f['revisionName']?_0x222b1f['revisionNameInputView']['errorText']=R(_0x3f1f81,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x12b43f['plugins']['get'](l)['saveRevision']({'name':_0x222b1f['revisionName']}),_0x187770['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x56ccc6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x187770['show']({'id':'revisionSave','title':R(_0x3f1f81,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x12b43f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x187770['hide']()},{'label':R(_0x12b43f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5a4565){_0x5a4565['bind']('isEnabled')['to'](_0x5a8e1c,'isReady',_0x5a8e1c,'isEnabled',_0x12b43f,'isReadOnly',(_0x30f4a5,_0x5e74b6,_0x2a631b)=>_0x30f4a5&&_0x5e74b6&&!_0x2a631b);},'onExecute':()=>_0x56ccc6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x36392b=this['editor'],_0x250979=_0x36392b['locale'];this['_saveRevisionFormView']=new ns(_0x250979,_0x36392b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x2f7742{['changeId'];['_model'];constructor(_0x178fb8,_0x4c9df1){super(_0x178fb8),this['_model']=_0x4c9df1,this['changeId']=_0x4c9df1['id'];const _0x1ecf45=this['bindTemplate'],_0x2b7e66=R(_0x178fb8,_0x4c9df1['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4c9df1['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4c9df1['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1ecf45['to']('type',_0x1b4199=>'ck-revision-change__'+_0x1b4199)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2b7e66}]},{'text':'\x20'+_0x4c9df1['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x31a9c8(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x29322a){super(),this['id']=_0x29322a['id']||_0xc034ba(),this['author']=_0x29322a['author'],this['type']=_0x29322a['type'],this['data']=_0x29322a['data']||{},this['rootName']=_0x29322a['rootName'],this['set']('createdAt',_0x29322a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x51d091,_0x188503){this['newRevisionId']=_0x51d091,this['oldRevisionId']=_0x188503,this['changes']=new _0x1b7f87();}['_setChanges'](_0x49623c){for(const _0x1b8368 of _0x49623c)this['changes']['add'](_0x1b8368);}}const Z={'c':_0x79aa2,'a':_0x582d0a,'e':_0x1dfa96,'r':_0x28dc89,'u':_0x57b2a1};class d extends _0x24c069{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x34ae1a,_0x28e605,j];}constructor(_0x195f56){super(_0x195f56),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3c924d,_0x33601e,_0x1d8b18)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x48a9a4=>{for(const _0xb45ac3 of this['editor']['editing']['view']['document']['roots'])_0x1d8b18?_0x48a9a4['removeClass']('ck-editor__editable__overlay',_0xb45ac3):_0x48a9a4['addClass']('ck-editor__editable__overlay',_0xb45ac3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3569df=>null!==_0x3569df),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5db190,_0x296181,_0x2b7e40)=>_0x5db190&&_0x2b7e40?_0x296181['changes']['getIndex'](_0x2b7e40):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x192c5a,_0x5f0c60)=>_0x192c5a?_0x5f0c60['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x28e605);}['init'](){const _0x18fdd9=this['editor'],_0x275bfa=new bt(_0x18fdd9,{'direction':'backward'}),_0x21a2c6=new bt(_0x18fdd9,{'direction':'forward'});(_0x18fdd9['commands']['add']('showPreviousChange',_0x275bfa),_0x18fdd9['commands']['add']('showNextChange',_0x21a2c6),_0x18fdd9['commands']['add']('restoreRevision',new yt(_0x18fdd9)),this['on']('change:numberOfChanges',()=>{_0x275bfa['refresh'](),_0x21a2c6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x18fdd9['enableReadOnlyMode']('revision-viewer'),_0x18fdd9['plugins']['has']('WidgetToolbarRepository'))&&_0x18fdd9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3166c0){await this['loadRevisionData'](_0x3166c0);const _0x44ceba={};for(const _0x45eadb in _0x3166c0['diffData']){if(_0x3166c0['diffData'][_0x45eadb]['attachChange']&&!_0x3166c0['diffData'][_0x45eadb]['attachChange']['isAttached'])continue;const _0x6a9ba=this['_removeRevisionMarkers'](JSON['parse'](_0x3166c0['diffData'][_0x45eadb]['insertions'])),_0x26b016=this['editor']['editing']['view']['document'],_0x1ff332=new _0x1faec1(_0x26b016,_0x6a9ba['map'](_0x588465=>this['_getViewObj'](_0x588465)));this['editor']['data']['processor']['useFillerType']('marked'),_0x44ceba[_0x45eadb]=this['editor']['data']['processor']['toData'](_0x1ff332),this['editor']['data']['processor']['useFillerType']('default');}return _0x44ceba;}async['getRevisionRootsAttributes'](_0x5432e3){await this['loadRevisionData'](_0x5432e3);const _0x956f9={};for(const _0x2a455b in _0x5432e3['diffData'])_0x5432e3['diffData'][_0x2a455b]['attachChange']&&!_0x5432e3['diffData'][_0x2a455b]['attachChange']['isAttached']||(_0x956f9[_0x2a455b]=_0x5432e3['diffData'][_0x2a455b]['attributesAfter']||{});return _0x956f9;}['_removeRevisionMarkers'](_0x32843e){return(_0x32843e=_0x32843e['filter'](_0x5a398c=>!_0x5a398c['name']||'revision-start'!==_0x5a398c['name']&&'revision-end'!==_0x5a398c['name']))['forEach'](_0xf67f2c=>{'string'!=typeof _0xf67f2c&&(_0xf67f2c['children']=this['_removeRevisionMarkers'](_0xf67f2c['children']),_0xf67f2c['attributes']=_0xf67f2c['attributes']['filter'](_0x2d040a=>!_0x2d040a[0x0]['startsWith']('data-revision-')));}),_0x32843e;}async['compare'](_0x9274e4,_0x260955,_0x176c76=!0x1){if(!this['isEnabled'])return;const _0x18e387=this['diff'],_0xc8b82b=this['repository'],_0x57828f='string'==typeof _0x9274e4?_0xc8b82b['getRevision'](_0x9274e4):_0x9274e4,_0x4dda05='string'==typeof _0x260955?_0xc8b82b['getRevision'](_0x260955):_0x260955,_0x5b3cd3=_0x57828f['id'],_0x2b5267=_0x4dda05?_0x4dda05['id']:null;if(!_0x176c76&&this['diff']&&this['diff']['newRevisionId']===_0x5b3cd3&&this['diff']['oldRevisionId']===_0x2b5267)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5b3cd3,_0x2b5267);const _0x5c1456=this['_getRevisionsRange'](_0x57828f,_0x4dda05,!0x0)['map'](_0x56965a=>this['loadRevisionData'](_0x56965a));return _0x5c1456['push'](new Promise(_0x38116c=>{setTimeout(_0x38116c,0x14);})),Promise['all'](_0x5c1456)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x30bda5=this['_getDiff'](_0x5b3cd3,_0x2b5267);for(const _0x44f2b5 of _0x30bda5['changes'])this['_changeIdToChange']['set'](_0x44f2b5['id'],_0x44f2b5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xfe855=>{for(const _0x376064 of this['editor']['model']['document']['getRootNames']())_0xfe855['detachRoot'](_0x376064);for(const _0x238546 of Object['keys'](_0x30bda5['model'])){const _0xd26da1=_0xfe855['addRoot'](_0x238546);for(const _0x41b049 of Object['keys'](_0x30bda5['attributes'][_0x238546]))_0xfe855['setAttribute'](_0x41b049,_0x30bda5['attributes'][_0x238546][_0x41b049],_0xd26da1);_0xfe855['insert'](_0x30bda5['model'][_0x238546],_0xd26da1,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x30bda5['changes'])),this['isReady']=!0x0;})['catch'](_0xed2a33=>{console['error'](_0xed2a33),this['_cleanUp'](),_0x18e387&&(this['diff']=_0x18e387),this['isReady']=!0x0;});}['addRevisionData'](_0x5c0b1b,_0x44ea9e){const _0x77a1d9=this['repository']['createRevision'](_0x5c0b1b);return _0x77a1d9['on']('_update',(_0x6efeed,_0x348f6b,_0x400022)=>_0x44ea9e(_0x348f6b,_0x400022,_0x77a1d9)),this['repository']['addRevision'](_0x77a1d9),_0x77a1d9;}['loadRevisionData'](_0x1ea35a){if(!_0x1ea35a||_0x1ea35a['diffData'])return Promise['resolve']();{const _0x4a680f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4a680f,'revisionId':_0x1ea35a['id']})['then'](_0x1187bf=>{_0x1ea35a['_update']({'diffData':_0x1187bf['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xe3be1c=>{for(const _0x1d89b6 of this['editor']['model']['document']['getRootNames']())_0xe3be1c['detachRoot'](_0x1d89b6);});}['_sortAndFilterDiffChanges'](_0x50e332){const _0x59fc0f=[],_0x5d9457=new Map();for(const _0x2a6144 of this['editor']['model']['document']['getRootNames']()){const _0x1cdc51=this['editor']['editing']['view']['getDomRoot'](_0x2a6144);if(!_0x1cdc51)continue;const _0x51b993=_0x1cdc51['getClientRects']()['item'](0x0);_0x51b993&&(_0x59fc0f['push'](_0x2a6144),_0x5d9457['set'](_0x2a6144,_0x51b993));}return _0x59fc0f['sort']((_0x432c82,_0x20c5b7)=>{const _0x1d9bfc=_0x5d9457['get'](_0x432c82),_0x41401c=_0x5d9457['get'](_0x20c5b7);return _0x1d9bfc['y']-_0x41401c['y']||_0x1d9bfc['x']-_0x41401c['x'];}),(_0x50e332=_0x50e332['filter'](_0x2b08de=>_0x59fc0f['includes'](_0x2b08de['rootName'])))['sort']((_0x4a090a,_0x5b304a)=>_0x59fc0f['indexOf'](_0x4a090a['rootName'])-_0x59fc0f['indexOf'](_0x5b304a['rootName'])),_0x50e332;}['_makeTape'](_0x3c6292){const _0x12e87c=Array['from'](_0x3c6292['markers'])['filter'](([_0x17aab4,_0x176d81])=>_0x17aab4['startsWith']('revision:')&&!_0x176d81['isCollapsed']),_0x3be6a8=Array['from'](this['editor']['model']['createRangeIn'](_0x3c6292)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x12e87c['length'])for(const _0x2ac08d of _0x3be6a8){const [_0x420fdb,_0x3bdb6b]=_0x12e87c[0x0],[,_0x426b69,_0x4953bf]=_0x420fdb['split'](':');if(_0x3bdb6b['end']['isEqual'](_0x2ac08d['nextPosition'])&&_0x12e87c['shift'](),(_0x2ac08d['previousPosition']['isEqual'](_0x3bdb6b['start'])||_0x2ac08d['previousPosition']['isAfter'](_0x3bdb6b['start']))&&('insertion'==_0x426b69?_0x2ac08d['isAdded']={'userId':_0x4953bf}:'deletion'==_0x426b69&&(_0x2ac08d['isRemoved']={'userId':_0x4953bf})),0x0==_0x12e87c['length'])break;}return _0x3be6a8;}['_refreshStartEndIndex'](_0x1ccda2){const _0x3a774f=new Map();for(let _0x225d16=0x0;_0x225d16<_0x1ccda2['length'];_0x225d16++)'text'===_0x1ccda2[_0x225d16]['type']?(_0x1ccda2[_0x225d16]['item']['startIndex']=_0x225d16,_0x1ccda2[_0x225d16]['item']['endIndex']=_0x225d16):('elementStart'===_0x1ccda2[_0x225d16]['type']?_0x1ccda2[_0x225d16]['item']['startIndex']=_0x225d16:'elementEnd'===_0x1ccda2[_0x225d16]['type']&&(_0x1ccda2[_0x225d16]['item']['endIndex']=_0x225d16),_0x3a774f['set'](_0x1ccda2[_0x225d16]['id'],_0x225d16));for(const _0x33a6ec of _0x3a774f['values']())'elementStart'===_0x1ccda2[_0x33a6ec]['type']?_0x1ccda2[_0x33a6ec]['item']['endIndex']=_0x3a774f['get'](_0x1ccda2[_0x33a6ec]['pairId']):'elementEnd'===_0x1ccda2[_0x33a6ec]['type']&&(_0x1ccda2[_0x33a6ec]['item']['startIndex']=_0x3a774f['get'](_0x1ccda2[_0x33a6ec]['pairId']));}['_processTape'](_0x5e96d3){for(let _0x9440e0=0x0;_0x9440e0<_0x5e96d3['length'];_0x9440e0++){if('elementStart'===_0x5e96d3[_0x9440e0]['type'])_0x5e96d3[_0x9440e0]['item']['startIndex']=_0x9440e0;else{if('elementEnd'===_0x5e96d3[_0x9440e0]['type']){_0x5e96d3[_0x9440e0]['item']['endIndex']=_0x9440e0;const _0x4ce216=_0x5e96d3[_0x9440e0]['item']['startIndex'];_0x5e96d3[_0x4ce216]['pairId']=_0x5e96d3[_0x9440e0]['id'],_0x5e96d3[_0x9440e0]['pairId']=_0x5e96d3[_0x4ce216]['id'];}else _0x5e96d3[_0x9440e0]['item']['startIndex']=_0x9440e0,_0x5e96d3[_0x9440e0]['item']['endIndex']=_0x9440e0,_0x5e96d3[_0x9440e0]['pairId']=null;}_0x5e96d3[_0x9440e0]['markersStart']||(_0x5e96d3[_0x9440e0]['markersStart']=[],_0x5e96d3[_0x9440e0]['markersEnd']=[]);}}['_markInsertions'](_0x213e8d,_0x372db5){const _0x736e7c=_0x213e8d['filter'](_0x1916b6=>!_0x1916b6['isAdded']);for(let _0x19a204=0x0;_0x19a204<_0x372db5['length'];_0x19a204++)_0x372db5[_0x19a204]['isAdded']&&(_0x736e7c[_0x19a204]['isAdded']=_0x372db5[_0x19a204]['isAdded']);}['_makeModelFromViewString'](_0x297bcd){const _0x31fb25=JSON['parse'](_0x297bcd),_0xd8c987=this['editor']['editing']['view']['document'],_0xbb5ddb=new _0x1faec1(_0xd8c987,_0x31fb25['map'](_0x378f4b=>this['_getViewObj'](_0x378f4b)));return this['editor']['data']['toModel'](_0xbb5ddb);}['_getViewObj'](_0x112dca){const _0x9502f7=this['editor']['editing']['view']['document'];if('string'==typeof _0x112dca)return new _0xc82295(_0x9502f7,_0x112dca);{const _0x5c9dfa=_0x112dca['children']['map'](_0x55d613=>this['_getViewObj'](_0x55d613));return new(Z[_0x112dca['type']]||_0x5a0a9f)(_0x9502f7,_0x112dca['name'],_0x112dca['attributes'],_0x5c9dfa);}}['_getDiff'](_0x52c038,_0x19385c=null){const _0x3c3f91=this['repository']['getRevision'](_0x52c038),_0x530d85=_0x19385c?this['repository']['getRevision'](_0x19385c):null,_0x18a90b=this['_getRevisionsRange'](_0x3c3f91,_0x530d85),_0x1ee567=_0x18a90b[_0x18a90b['length']-0x1],_0x13ed12=new Map(),_0x3f320c={'model':{},'attributes':{},'changes':[]},_0x8d64c2=new Set(),_0x208035=new Map();for(let _0x45285c=_0x18a90b['length']-0x1;_0x45285c>=0x0;_0x45285c--){const _0x6c575c=_0x18a90b[_0x45285c];for(const _0x5d6535 of Object['keys'](_0x6c575c['diffData']))if(_0x6c575c['diffData'][_0x5d6535]['attachChange']){const _0x2f16a2=_0x6c575c['diffData'][_0x5d6535]['attachChange'];_0x2f16a2['isAttached']?(_0x8d64c2['add'](_0x5d6535),_0x208035['has'](_0x5d6535)&&_0x208035['get'](_0x5d6535)['userId']==_0x2f16a2['userId']?_0x208035['delete'](_0x5d6535):_0x208035['set'](_0x5d6535,_0x2f16a2)):_0x208035['has'](_0x5d6535)?(_0x8d64c2['delete'](_0x5d6535),_0x208035['delete'](_0x5d6535)):(_0x8d64c2['add'](_0x5d6535),_0x208035['set'](_0x5d6535,_0x2f16a2));}else _0x8d64c2['add'](_0x5d6535);}for(const _0xf547d8 of _0x8d64c2){const _0x581d1e=_0x208035['has'](_0xf547d8)&&!_0x208035['get'](_0xf547d8)['isAttached'];let _0x57af66=_0x581d1e?_0x18a90b['length']-0x1:0x0;const _0x242dfd=_0x581d1e?-0x1:0x1;for(;_0x18a90b[_0x57af66];){const _0xb01f3f=_0x18a90b[_0x57af66];if(_0xb01f3f['diffData'][_0xf547d8]){const _0x3ce9f2=_0x581d1e?_0xb01f3f['diffData'][_0xf547d8]['attributesBefore']:_0xb01f3f['diffData'][_0xf547d8]['attributesAfter'];_0x3f320c['attributes'][_0xf547d8]=_0x3ce9f2?_0x3f8d7d(_0x3ce9f2):{};break;}_0x57af66+=_0x242dfd;}}for(const _0x353369 of _0x18a90b){_0x353369['model']={};for(const _0x1ba5c4 of _0x353369['authors'])_0x13ed12['set'](_0x1ba5c4['id'],_0x1ba5c4);for(const _0xa3771 of _0x8d64c2){const _0x348b89=_0x353369['diffData'][_0xa3771]?_0x353369['diffData'][_0xa3771]['insertions']:'[]',_0x168045=_0x353369['diffData'][_0xa3771]?_0x353369['diffData'][_0xa3771]['deletions']:'[]';_0x353369['model'][_0xa3771]={'insertions':this['_makeModelFromViewString'](_0x348b89),'deletions':this['_makeModelFromViewString'](_0x168045)};}}for(const _0x529749 of _0x8d64c2){let _0x2a5986=null,_0x39aa8f=0x0;const _0x30a776=new Map(Array['from'](_0x3c3f91['model'][_0x529749]['insertions']['markers'])['filter'](([_0x2674c5])=>!_0x2674c5['startsWith']('revision:')));let _0x56690c=0x0;for(const _0x4fb03b of _0x18a90b){const _0x2f3ed4=this['_makeTape'](_0x4fb03b['model'][_0x529749]['insertions']);_0x4fb03b==_0x3c3f91?(_0x2a5986=_0x2f3ed4,_0x39aa8f=_0x2a5986['length'],_0x2a5986['forEach'](_0x16c1be=>{_0x16c1be['id']=_0x56690c++;}),this['_processTape'](_0x2a5986)):this['_markInsertions'](_0x2a5986,_0x2f3ed4);const _0x4dee1f=_0x2a5986['filter'](_0x3c7af8=>!_0x3c7af8['isAdded'])['map'](_0x37f5d2=>_0x37f5d2['id']);let _0x4b8ce5=0x0;const _0x4d6fd6=this['_makeTape'](_0x4fb03b['model'][_0x529749]['deletions']);_0x4d6fd6['forEach'](_0x1f265d=>{_0x1f265d['isRemoved']?_0x1f265d['id']=_0x39aa8f++:_0x1f265d['id']=_0x4dee1f[_0x4b8ce5++];}),this['_processTape'](_0x4d6fd6),this['_setDistance'](_0x2a5986,'isAdded'),this['_setDistance'](_0x4d6fd6,'isRemoved'),_0x4fb03b==_0x3c3f91&&this['_markMarkers'](_0x2a5986,_0x30a776),_0x2a5986=this['_joinTapes'](_0x2a5986,_0x4d6fd6),this['_refreshStartEndIndex'](_0x2a5986),this['_setDistance'](_0x2a5986,'isRemoved');}_0x2a5986=_0x2a5986['filter'](_0x2edce7=>!(_0x2edce7['isAdded']&&_0x2edce7['isRemoved']));const _0x252771=new Map(_0x1ee567['model'][_0x529749]['deletions']['markers']),_0x353549=new Set(_0x30a776['keys']());for(const _0x44bd99 of _0x252771['keys']())_0x353549['delete'](_0x44bd99);this['_markSuggestions'](_0x2a5986,_0x353549),this['_fixObsoleteTags'](_0x2a5986),_0x2a5986=this['_removeMissingPairs'](_0x2a5986),_0x2a5986=this['_markMismatchedRemovedTags'](_0x2a5986),_0x2a5986=this['_removeUnsupportedChanges'](_0x2a5986);const {root:_0x71cccc,changes:_0x230c2d}=this['_makeModelFromTape'](_0x2a5986,_0x13ed12,_0x529749);_0x3f320c['model'][_0x529749]=_0x71cccc;const _0x3b2d7e=_0x208035['get'](_0x529749);if(_0x3b2d7e){const _0x4a2667=_0x13ed12['get'](_0x3b2d7e['userId']),_0x447842=new r({'author':_0x4a2667,'type':_0x3b2d7e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x529749});_0x230c2d['unshift'](_0x447842),_0x3f320c['attributes'][_0x529749]['revisionHistoryAttachChange']=_0x447842['id'];}_0x3f320c['changes']=_0x3f320c['changes']['concat'](_0x230c2d);}return _0x3f320c;}['_markMarkers'](_0xe9d088,_0x1800db){for(let _0x4298b0=0x0;_0x4298b0<_0xe9d088['length'];_0x4298b0++)for(const [_0x50b9f3,_0x5b8f0a]of _0x1800db)_0x5b8f0a['start']['isEqual'](_0xe9d088[_0x4298b0]['previousPosition'])&&_0xe9d088[_0x4298b0]['markersStart']['push'](_0x50b9f3),_0x5b8f0a['end']['isEqual'](_0xe9d088[_0x4298b0]['nextPosition'])&&_0xe9d088[_0x4298b0]['markersEnd']['push'](_0x50b9f3);}['_joinTapes'](_0x38c21a,_0x26b79c){let _0x523d7e=[],_0x4971e1=0x0,_0x5d4ad8=0x0;for(;_0x4971e1<_0x38c21a['length']||_0x5d4ad8<_0x26b79c['length'];){const _0x464757=_0x38c21a[_0x4971e1]||{},_0x3aa6ed=_0x26b79c[_0x5d4ad8]||{};if(_0x464757['id']==_0x3aa6ed['id'])_0x4971e1++,_0x5d4ad8++,_0x523d7e['push'](_0x464757);else{if(_0x3aa6ed['isRemoved']&&_0x464757['isAdded']){const {commonTape:_0x29cabe,iEnd:_0x48f470,jEnd:_0x134ae4}=this['_threeWayMerge'](_0x38c21a,_0x4971e1,_0x26b79c,_0x5d4ad8);_0x523d7e=_0x523d7e['concat'](_0x29cabe),_0x4971e1=_0x48f470,_0x5d4ad8=_0x134ae4;}else _0x3aa6ed['isRemoved']?(_0x5d4ad8++,_0x523d7e['push'](_0x3aa6ed)):(_0x4971e1++,_0x523d7e['push'](_0x464757));}}return _0x523d7e;}['_markSuggestions'](_0x313e2e,_0x41dcc1){const _0x210f6c=[];for(let _0x800c0e=0x0;_0x800c0e<_0x313e2e['length'];_0x800c0e++){for(let _0x3de41a=0x0;_0x3de41a<_0x313e2e[_0x800c0e]['markersStart']['length'];_0x3de41a++){const _0x88c921=_0x313e2e[_0x800c0e]['markersStart'][_0x3de41a];if(!_0x41dcc1['has'](_0x88c921))continue;const {group:_0x159709,type:_0x2571c9,authorId:_0x310999}=_0x425134(_0x88c921);'revision-suggestion'!=_0x159709||'insertion'!=_0x2571c9&&'deletion'!=_0x2571c9||(_0x210f6c['unshift']({'type':_0x2571c9,'name':_0x88c921,'userId':_0x310999}),_0x313e2e[_0x800c0e]['markersStart']['splice'](_0x3de41a,0x1),_0x3de41a--);}_0x2fdf7f(_0x313e2e[_0x800c0e]);for(let _0x713303=0x0;_0x713303<_0x313e2e[_0x800c0e]['markersEnd']['length'];_0x713303++){const _0x2f972a=_0x313e2e[_0x800c0e]['markersEnd'][_0x713303];if(!_0x41dcc1['has'](_0x2f972a))continue;const {group:_0xee0bb6,type:_0x1924e2}=_0x425134(_0x2f972a);if('revision-suggestion'!=_0xee0bb6||'insertion'!=_0x1924e2&&'deletion'!=_0x1924e2)continue;_0x313e2e[_0x800c0e]['markersEnd']['splice'](_0x713303,0x1),_0x713303--;const _0x2ed69d=_0x210f6c['findIndex'](_0x240c08=>_0x240c08['name']==_0x2f972a);_0x2ed69d>-0x1&&_0x210f6c['splice'](_0x2ed69d,0x1);}}function _0x425134(_0x41dfc5){const _0x24d206=_0x41dfc5['split'](':');return{'group':_0x24d206[0x0],'type':_0x24d206[0x1],'subType':_0x24d206['length']>=0x5?_0x24d206[0x2]:null,'id':_0x24d206['length']<0x5?_0x24d206[0x2]:_0x24d206[0x3],'authorId':_0x24d206['length']<0x5?_0x24d206[0x3]:_0x24d206[0x4],'markerCount':0x6==_0x24d206['length']?_0x24d206[0x5]:null};}function _0x2fdf7f(_0x130dfe){for(let _0x28590c=0x0;_0x28590c<_0x210f6c['length'];_0x28590c++){if(_0x130dfe['isAdded']&&'insertion'==_0x210f6c[_0x28590c]['type'])return _0x130dfe['isAddSuggestion']=_0x210f6c[_0x28590c],void delete _0x130dfe['isAdded'];if(!_0x130dfe['isAdded']&&!_0x130dfe['isRemoved']&&'deletion'==_0x210f6c[_0x28590c]['type'])return void(_0x130dfe['isRemoveSuggestion']=_0x210f6c[_0x28590c]);}}}['_setDistance'](_0x469a14,_0x3cef05){let _0x5167c5=0x0,_0x127a5d=!0x1;const _0x1e51d6=new Map();for(const _0x4f1d81 of _0x469a14)_0x4f1d81[_0x3cef05]?_0x127a5d&&(_0x5167c5++,_0x127a5d=!0x1):(_0x5167c5++,_0x127a5d=!0x0),_0x1e51d6['set'](_0x4f1d81['id'],_0x5167c5);for(let _0x2cea56=0x0;_0x2cea56<_0x469a14['length'];_0x2cea56++){if('isRemoved'==_0x3cef05&&_0x469a14[_0x2cea56]['isAdded']||'isAdded'==_0x3cef05&&_0x469a14[_0x2cea56]['isRemoved'])continue;if('text'==_0x469a14[_0x2cea56]['type']){_0x469a14[_0x2cea56]['distance']=0x0;continue;}const _0x3f75c9=_0x1e51d6['get'](_0x469a14[_0x2cea56]['pairId']),_0x3467c3=_0x1e51d6['get'](_0x469a14[_0x2cea56]['id']);_0x469a14[_0x2cea56]['distance']=_0x3f75c9-_0x3467c3;}}['_getRevisionsRange'](_0x5c901a,_0x21c377,_0x5b1a55=!0x1){const _0x404b46=[];let _0x12c292=this['repository']['getIndex'](_0x5c901a),_0x5a6532=this['repository']['getIndex'](_0x21c377);for(-0x1==_0x5a6532&&(_0x5a6532=this['repository']['_revisions']['length'],_0x5b1a55=!0x1);_0x12c292<_0x5a6532;)_0x404b46['push'](this['repository']['getRevision'](_0x12c292)),_0x12c292++;return _0x5b1a55&&_0x404b46['push'](this['repository']['getRevision'](_0x12c292)),_0x404b46;}['_threeWayMerge'](_0x5a00eb,_0x529c14,_0xbd8119,_0x244e54){const _0xff5dbc=this['editor']['model']['schema'];let _0x4418db=_0x529c14;for(;_0x5a00eb[_0x4418db]&&_0x5a00eb[_0x4418db]['isAdded'];)_0x4418db++;let _0x302cc6=_0x244e54;for(;_0xbd8119[_0x302cc6]&&_0xbd8119[_0x302cc6]['isRemoved'];)_0x302cc6++;_0x2b6061(_0x5a00eb,_0x529c14,_0x4418db),_0x2b6061(_0xbd8119,_0x244e54,_0x302cc6);const _0x1f8a79=_0xbd8119['slice'](_0x244e54,_0x302cc6)['concat'](_0x5a00eb['slice'](_0x529c14,_0x4418db));return _0x1f8a79['sort']((_0x57c96c,_0x7dba8a)=>_0x57c96c['side']!=_0x7dba8a['side']?_0x57c96c['side']-_0x7dba8a['side']:_0x57c96c['level']!=_0x7dba8a['level']?_0x57c96c['level']-_0x7dba8a['level']:_0x57c96c['distance']!=_0x7dba8a['distance']?_0x7dba8a['distance']-_0x57c96c['distance']:!!_0x57c96c['isAdded']!=!!_0x7dba8a['isAdded']?-0x1==_0x57c96c['side']||0x0==_0x57c96c['side']?_0x57c96c['isAdded']?-0x1:0x1:_0x57c96c['isAdded']?0x1:-0x1:_0x57c96c['index']-_0x7dba8a['index']),{'commonTape':_0x1f8a79,'iEnd':_0x4418db,'jEnd':_0x302cc6};function _0x2b6061(_0x48b51a,_0x28604b,_0x2bcf68){let _0x1e15b9=-0x1,_0x7acd23=Number['POSITIVE_INFINITY'],_0x180150=!0x0;for(let _0xc90fd5=_0x28604b;_0xc90fd5<_0x2bcf68;_0xc90fd5++)if(_0xff5dbc['isInline'](_0x48b51a[_0xc90fd5]['item'])||(_0x180150=!0x1),_0x48b51a[_0xc90fd5]['item']['startIndex']<_0x28604b&&(_0x1e15b9=_0xc90fd5),_0x48b51a[_0xc90fd5]['item']['endIndex']>=_0x2bcf68){_0x7acd23=_0xc90fd5;break;}_0x180150&&(_0x1e15b9=_0x2bcf68-0x1);for(let _0x4c8079=_0x28604b;_0x4c8079<_0x2bcf68;_0x4c8079++)_0x48b51a[_0x4c8079]['side']=_0x4c8079<=_0x1e15b9?-0x1:_0x4c8079<_0x7acd23?0x0:0x1,_0x48b51a[_0x4c8079]['index']=_0x4c8079;let _0x1717d6=0x0;for(let _0x413ecf=_0x28604b;_0x413ecf<=_0x1e15b9;_0x413ecf++)0x0==_0x48b51a[_0x413ecf]['distance']?_0x48b51a[_0x413ecf]['level']=_0x1717d6:(_0x1717d6++,_0x48b51a[_0x413ecf]['level']=_0x1717d6,_0x1717d6++);for(let _0x5d944d=_0x28604b;_0x5d944d<_0x2bcf68;_0x5d944d++)0x0==_0x48b51a[_0x5d944d]['side']&&(_0x48b51a[_0x5d944d]['level']=_0x1717d6);_0x1717d6=0x0;for(let _0xf7589b=_0x2bcf68-0x1;_0xf7589b>=_0x7acd23;_0xf7589b--)0x0==_0x48b51a[_0xf7589b]['distance']?_0x48b51a[_0xf7589b]['level']=_0x1717d6:(_0x1717d6--,_0x48b51a[_0xf7589b]['level']=_0x1717d6,_0x1717d6--);}}['_fixObsoleteTags'](_0x4e9206){const _0x538832=new Map(),_0x507417=this['editor']['model']['schema'];for(let _0x45efb9=0x1;_0x45efb9<_0x4e9206['length'];_0x45efb9++){let _0x5c4e92,_0x3de785,_0x15c926;const _0x524ea4=_0x4e9206[_0x45efb9],_0x52ef4f=_0x4e9206[_0x45efb9-0x1];if('text'==_0x524ea4['type'])continue;if(_0x524ea4['type']!=_0x52ef4f['type'])continue;if(!_0x507417['isBlock'](_0x52ef4f['item'])||_0x507417['isLimit'](_0x52ef4f['item']))continue;if(!_0x507417['isBlock'](_0x524ea4['item'])||_0x507417['isLimit'](_0x524ea4['item']))continue;if((_0x4e9206[_0x45efb9]['isAdded']||_0x4e9206[_0x45efb9]['isAddSuggestion'])&&_0x4e9206[_0x45efb9-0x1]['isRemoved'])_0x5c4e92=_0x4e9206[_0x45efb9],_0x3de785=_0x4e9206[_0x45efb9-0x1],_0x15c926=_0x45efb9-0x1;else{if(!_0x4e9206[_0x45efb9]['isRemoved']||!_0x4e9206[_0x45efb9-0x1]['isAdded']&&!_0x4e9206[_0x45efb9-0x1]['isAddSuggestion'])continue;_0x5c4e92=_0x4e9206[_0x45efb9-0x1],_0x3de785=_0x4e9206[_0x45efb9],_0x15c926=_0x45efb9;}const _0x51239b=_0x5c4e92['level']==_0x3de785['level'],_0x2e5a5e=Math['abs'](_0x5c4e92['level'])<Math['abs'](_0x3de785['level'])&&0x0==_0x3de785['distance'];(_0x51239b||_0x2e5a5e)&&(_0x538832['set'](_0x3de785['id'],_0x5c4e92['id']),_0x4e9206['splice'](_0x15c926,0x1),_0x45efb9--,_0x5c4e92['isAdded']=!0x1);}for(let _0x32a50e=0x0;_0x32a50e<_0x4e9206['length'];_0x32a50e++)_0x538832['has'](_0x4e9206[_0x32a50e]['pairId'])&&(_0x4e9206[_0x32a50e]['pairId']=_0x538832['get'](_0x4e9206[_0x32a50e]['pairId']));}['_removeMissingPairs'](_0x420b94){const _0x567ae7=new Set(_0x420b94['map'](_0x41b325=>_0x41b325['id']));for(let _0x45be54=0x0;_0x45be54<_0x420b94['length'];_0x45be54++)_0x567ae7['has'](_0x420b94[_0x45be54]['pairId'])||0x0==_0x420b94[_0x45be54]['distance']||(_0x420b94[_0x45be54]['isIncorrect']=!0x0);return _0x420b94['filter'](_0x24e4b3=>!_0x24e4b3['isIncorrect']);}['_markMismatchedRemovedTags'](_0x203389){const _0x3735c8=new Set();for(let _0x261754=0x0;_0x261754<_0x203389['length'];_0x261754++){if(_0x3735c8['has'](_0x203389[_0x261754]['id'])&&_0x203389[_0x261754]['isRemoved']&&(_0x203389[_0x261754]['isIncorrect']=!0x0),_0x203389[_0x261754]['isIncorrect'])continue;if(0x0==_0x203389[_0x261754]['distance'])continue;if('elementStart'!=_0x203389[_0x261754]['type'])continue;if(null==_0x203389[_0x261754]['pairId'])continue;let _0x1dbd77=_0x261754+0x1,_0x23242a=0x0;for(;_0x203389[_0x1dbd77]['id']!=_0x203389[_0x261754]['pairId'];)'elementStart'==_0x203389[_0x1dbd77]['type']?_0x23242a++:'elementEnd'==_0x203389[_0x1dbd77]['type']&&_0x23242a--,_0x1dbd77++;if(0x0!=_0x23242a){if(_0x203389[_0x261754]['isRemoved'])_0x203389[_0x261754]['isIncorrect']=!0x0;else{for(;_0x1dbd77!=_0x261754;)_0x203389[_0x1dbd77]['isRemoved']&&0x0!=_0x203389[_0x1dbd77]['distance']&&(_0x203389[_0x1dbd77]['isIncorrect']=!0x0,_0x3735c8['add'](_0x203389[_0x1dbd77]['pairId'])),_0x1dbd77--;}}}return _0x203389['filter'](_0x51c46b=>!_0x51c46b['isIncorrect']);}['_removeUnsupportedChanges'](_0x5a3353){const _0x43b0cb=this['editor']['model']['schema'];for(let _0x51a5b0=0x0;_0x51a5b0<_0x5a3353['length'];_0x51a5b0++){if(!(_0x5a3353[_0x51a5b0]['isAdded']||_0x5a3353[_0x51a5b0]['isAddSuggestion']||_0x5a3353[_0x51a5b0]['isRemoved']||_0x5a3353[_0x51a5b0]['isRemoveSuggestion']))continue;if(0x0==_0x5a3353[_0x51a5b0]['distance'])continue;const _0x2bed0d=_0x5a3353[_0x51a5b0]['item'];_0x43b0cb['isBlock'](_0x2bed0d)||_0x43b0cb['isLimit'](_0x2bed0d)||(_0x5a3353[_0x51a5b0]['isAdded']&&delete _0x5a3353[_0x51a5b0]['isAdded'],_0x5a3353[_0x51a5b0]['isAddSuggestion']&&delete _0x5a3353[_0x51a5b0]['isAddSuggestion'],_0x5a3353[_0x51a5b0]['isRemoveSuggestion']&&delete _0x5a3353[_0x51a5b0]['isRemoveSuggestion'],_0x5a3353[_0x51a5b0]['isRemoved']&&(_0x5a3353[_0x51a5b0]['isIncorrect']=!0x0));}return _0x5a3353['filter'](_0x235f21=>!_0x235f21['isIncorrect']);}['_makeModelFromTape'](_0x48cf86,_0x3caebe,_0x309c05){const _0x282245=new wt(),_0x184692=[],_0xeaf1e3=new Map(),_0x2473e5=this['editor']['model'],_0x28c068=_0x2473e5['schema'],_0x13c3ff=[_0x282245],_0x7da3fc={},_0x2b35c6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xfef00b=null;const _0x524991=[0x0];for(let _0x35acf8=0x0;_0x35acf8<_0x48cf86['length'];_0x35acf8++)if('elementStart'===_0x48cf86[_0x35acf8]['type']){_0x48cf86[_0x35acf8]['previousPosition']=_0x2473e5['createPositionFromPath'](_0x282245,_0x524991);const _0x4271b7=new ft(_0x48cf86[_0x35acf8]['item']['name'],_0x48cf86[_0x35acf8]['item']['getAttributes']());_0x13c3ff[0x0]['_appendChild'](_0x4271b7),_0x524991['push'](0x0),_0x13c3ff['unshift'](_0x4271b7),_0x48cf86[_0x35acf8]['nextPosition']=_0x2473e5['createPositionFromPath'](_0x282245,_0x524991);}else'elementEnd'===_0x48cf86[_0x35acf8]['type']?(_0x13c3ff['shift'](),_0x48cf86[_0x35acf8]['previousPosition']=_0x2473e5['createPositionFromPath'](_0x282245,_0x524991),_0x524991['pop'](),_0x524991[_0x524991['length']-0x1]++,_0x48cf86[_0x35acf8]['nextPosition']=_0x2473e5['createPositionFromPath'](_0x282245,_0x524991)):(_0x48cf86[_0x35acf8]['previousPosition']=_0x2473e5['createPositionFromPath'](_0x282245,_0x524991),_0xfef00b?_0xfef00b['_data']+=_0x48cf86[_0x35acf8]['item']['data']:_0xfef00b=new _t(_0x48cf86[_0x35acf8]['item']['data'],_0x48cf86[_0x35acf8]['item']['getAttributes']()),_0x48cf86[_0x35acf8+0x1]&&'text'===_0x48cf86[_0x35acf8+0x1]['type']&&_0x518482(_0xfef00b,_0x48cf86[_0x35acf8+0x1]['item'])||(_0x13c3ff[0x0]['_appendChild'](_0xfef00b),_0xfef00b=null),_0x524991[_0x524991['length']-0x1]+=_0x48cf86[_0x35acf8]['item']['offsetSize'],_0x48cf86[_0x35acf8]['nextPosition']=_0x2473e5['createPositionFromPath'](_0x282245,_0x524991));for(let _0x33e19a=0x0;_0x33e19a<_0x48cf86['length'];_0x33e19a++){const _0x3e45d1=_0x48cf86[_0x33e19a]['previousPosition'],_0x562ba4=_0x48cf86[_0x33e19a]['nextPosition'];for(const _0x5b1033 of _0x48cf86[_0x33e19a]['markersStart'])_0xeaf1e3['set'](_0x5b1033,{'start':_0x3e45d1,'end':null});_0x6b88ee('isRemoveSuggestion',_0x33e19a,_0x3e45d1,_0x562ba4),_0x6b88ee('isAddSuggestion',_0x33e19a,_0x3e45d1,_0x562ba4),_0x6b88ee('isRemoved',_0x33e19a,_0x3e45d1,_0x562ba4),_0x6b88ee('isAdded',_0x33e19a,_0x3e45d1,_0x562ba4);for(const _0x53d907 of _0x48cf86[_0x33e19a]['markersEnd']){_0xeaf1e3['get'](_0x53d907)['end']=_0x562ba4;}}for(const [_0x20d4ae,_0x1c0df0]of _0xeaf1e3){const _0x577c14=this['editor']['model']['createRange'](_0x1c0df0['start'],_0x1c0df0['end']);_0x282245['markers']['set'](_0x20d4ae,_0x577c14);}return _0x184692['sort']((_0x4df823,_0x31ad3b)=>{const _0x48b745=_0x282245['markers']['get']('revision:'+_0x4df823['id']),_0x16bee3=_0x282245['markers']['get']('revision:'+_0x31ad3b['id']);return _0x48b745['start']['isBefore'](_0x16bee3['start'])?-0x1:_0x48b745['start']['isAfter'](_0x16bee3['start'])?0x1:_0x48b745['end']['isBefore'](_0x16bee3['end'])?-0x1:_0x48b745['end']['isAfter'](_0x16bee3['end'])?0x1:'add'===_0x4df823['type']?-0x1:0x1;}),{'root':_0x282245,'changes':_0x184692};function _0x6b88ee(_0x58acaa,_0x1702aa,_0x651304,_0x5a116e){const _0x27e158=!!_0x48cf86[_0x1702aa][_0x58acaa],_0x19a18f=_0x27e158?_0x48cf86[_0x1702aa][_0x58acaa]['userId']:null,_0x33fba4=_0x1702aa===_0x48cf86['length']-0x1,_0x2146b4=_0x2b35c6[_0x58acaa][0x0],_0x4230a4=_0x28c068['isObject'](_0x48cf86[_0x1702aa]['item']);!_0x7da3fc[_0x58acaa]&&_0x27e158?_0x7da3fc[_0x58acaa]={'start':_0x651304,'tapeItem':_0x48cf86[_0x1702aa],'userId':_0x19a18f,'type':_0x58acaa}:_0x7da3fc[_0x58acaa]&&!_0x27e158?(_0x7da3fc[_0x58acaa]['end']=_0x651304,_0x229ef8(_0x7da3fc[_0x58acaa]),_0x7da3fc[_0x58acaa]=null):_0x7da3fc[_0x58acaa]&&_0x27e158&&_0x7da3fc[_0x58acaa]['userId']!==_0x19a18f&&(_0x7da3fc[_0x58acaa]['end']=_0x651304,_0x2146b4&&_0x2146b4['userId']===_0x7da3fc[_0x58acaa]['userId']||_0x229ef8(_0x7da3fc[_0x58acaa]),_0x7da3fc[_0x58acaa]={'start':_0x651304,'tapeItem':_0x48cf86[_0x1702aa],'userId':_0x19a18f,'type':_0x58acaa}),_0x7da3fc[_0x58acaa]&&_0x4230a4&&('elementStart'!==_0x48cf86[_0x1702aa]['type']||_0x2146b4&&_0x2146b4['userId']===_0x19a18f||_0x2b35c6[_0x58acaa]['unshift']({'userId':_0x19a18f,'object':_0x48cf86[_0x1702aa]['item'],'change':_0x7da3fc[_0x58acaa]}),'elementEnd'===_0x48cf86[_0x1702aa]['type']&&_0x2146b4&&_0x2146b4['object']===_0x48cf86[_0x1702aa]['item']&&(_0x2b35c6[_0x58acaa]['shift'](),_0x7da3fc[_0x58acaa]=_0x2146b4['change'])),_0x7da3fc[_0x58acaa]&&_0x33fba4&&(_0x7da3fc[_0x58acaa]['end']=_0x5a116e,_0x229ef8(_0x7da3fc[_0x58acaa]),_0x7da3fc[_0x58acaa]=null);}function _0x229ef8({start:_0x5ccd5c,end:_0x5dc0c9,tapeItem:_0x4ac636,userId:_0x5901e7,type:_0xda6494}){const _0x41df64=_0x4ac636['item'],_0x2e4792=_0x2473e5['schema']['isBlock'](_0x41df64)&&!_0x2473e5['schema']['isLimit'](_0x41df64),_0x4158bf=_0x5ccd5c['nodeAfter']==_0x5dc0c9['parent']&&_0x5dc0c9['isAtStart'];if(_0x2e4792&&_0x4158bf)return;const _0xdc937=_0x2473e5['createRange'](_0x5ccd5c,_0x5dc0c9),_0x38d4cc=_0x3caebe['get'](_0x5901e7),_0x3e139f=new r({'author':_0x38d4cc,'type':'isAdded'==_0xda6494||'isAddSuggestion'==_0xda6494?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xda6494||'isRemoveSuggestion'==_0xda6494},'createdAt':new Date(),'rootName':_0x309c05});_0x184692['push'](_0x3e139f),_0x282245['markers']['set']('revision:'+_0x3e139f['id'],_0xdc937);}function _0x518482(_0x3515c9,_0x24f8a1){const _0x4da14a=_0x3515c9['getAttributes'](),_0x43924b=_0x24f8a1['getAttributes']();for(const _0x3e1576 of _0x4da14a){if(_0x3e1576[0x1]!==_0x24f8a1['getAttribute'](_0x3e1576[0x0]))return!0x1;_0x43924b['next']();}return _0x43924b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x20112c=>{const _0x2a28c7=_0x20112c['markerName']['split'](':')[0x1],_0x21b6f8=this['_getChangeFromId'](_0x2a28c7);if(!_0x21b6f8)return null;const _0x1ffff7='add'==_0x21b6f8['type']?'insertion':'deletion',_0x55b752=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1ffff7];return _0x21b6f8['data']['isSuggestion']&&_0x55b752['push']('ck-suggestion-marker-'+_0x1ffff7+'-new'),this['activeChange']==_0x21b6f8&&_0x55b752['push']('ck-suggestion-marker--active'),{'classes':_0x55b752,'attributes':{'data-change-id':_0x2a28c7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3c445f=>{_0x3c445f['on']('element:pre',(_0x3aa419,_0x415be1,_0x3930f6)=>{const _0x313167=_0x415be1['viewItem']['getChild'](0x0);if(!_0x313167||!_0x313167['is']('element','code'))return;if(!_0x3930f6['consumable']['consume'](_0x313167,{'attributes':['vid_start','vid_end']}))return;const _0x4b457d=_0x415be1['modelRange']['start']['nodeAfter'];_0x3930f6['writer']['setAttribute']('vid_start',_0x313167['getAttribute']('vid_start'),_0x4b457d),_0x3930f6['writer']['setAttribute']('vid_end',_0x313167['getAttribute']('vid_end'),_0x4b457d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2fe9d6=>{_0x2fe9d6['on']('element',(_0x36302e,_0x2b0b13,_0x2c8884)=>{if(!_0x2c8884['consumable']['consume'](_0x2b0b13['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2b0b13['modelRange']['isCollapsed'])return;const _0x11db4a=_0x2b0b13['modelRange']['start']['nodeAfter'];_0x11db4a['hasAttribute']('vid_start')||_0x11db4a['hasAttribute']('vid')||(_0x2c8884['writer']['setAttribute']('vid_start',_0x2b0b13['viewItem']['getAttribute']('vid_start'),_0x11db4a),_0x2c8884['writer']['setAttribute']('vid_end',_0x2b0b13['viewItem']['getAttribute']('vid_end'),_0x11db4a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x12c4c1=>_0x12c4c1['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xebce22,[,_0x48fe1f])=>{['vid_start','vid_end','vid']['includes'](_0x48fe1f)&&(_0xebce22['return']=!0x0,_0xebce22['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x210b20=>{_0x210b20['on']('attribute:vid',(_0x10ae04,_0x517c0d,_0x503f88)=>{if('\x20'!=_0x517c0d['item']['data']||_0x517c0d['item']['parent']['maxOffset']>0x1)return;if(!_0x503f88['consumable']['consume'](_0x517c0d['item'],_0x10ae04['name']))return;const _0x553444=_0x503f88['writer'],_0x336941=_0x503f88['mapper']['toViewRange'](_0x517c0d['range']);_0x553444['wrap'](_0x336941,_0x553444['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4c27f6){const _0x4ba12d=_0x4c27f6['plugins']['get']('RevisionViewer');return(_0x1ca6ef,_0x7596e8,_0x12b2fe)=>{const _0x350fa7=_0x7596e8['markerName']['split'](':')[0x1],_0x584038=_0x4ba12d['_getChangeFromId'](_0x350fa7);if(!_0x584038)return null;const _0x2183ad='add'==_0x584038['type']?'split':'merge';if(!_0x12b2fe['consumable']['test'](_0x7596e8['markerRange'],_0x1ca6ef['name']))return;const _0x131319=_0x7596e8['markerRange']['getWalker'](),_0x3e0f1c=_0x7596e8['markerRange']['start'],_0x425d14=_0x4c27f6['model']['schema'];let _0x2b6ca4=null,_0x2068df=null,_0x24eedf=!0x1,_0x18c777=!0x1;for(const _0xc868ef of _0x131319){const _0x16bf82=_0xc868ef['item'];_0x24eedf=_0x24eedf||_0x425d14['isContent'](_0x16bf82);const _0xe64550=_0x12b2fe['mapper']['toViewElement'](_0x16bf82);if(_0xe64550&&_0xe64550['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xc868ef['type']&&(_0x425d14['isBlock'](_0x16bf82)&&!_0x425d14['isLimit'](_0x16bf82)&&(_0x16bf82['nextSibling']||_0x3e0f1c['isAtEnd']?_0x2b6ca4&&_0x2b6ca4['parent']==_0x16bf82||(_0x2b6ca4=_0x16bf82,_0x467c09(_0xc868ef['previousPosition']),_0x18c777=!0x0):_0x2068df=_0x2068df||_0xc868ef['previousPosition']));}function _0x467c09(_0x5313a2){const _0x209a67=_0x12b2fe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2183ad}),_0x99711d=_0x12b2fe['mapper']['toViewPosition'](_0x5313a2);_0x584038['data']['isSuggestion']&&_0x12b2fe['writer']['addClass']('ck-suggestion-marker-'+_0x2183ad+'-new',_0x209a67),_0x4ba12d['activeChange']==_0x584038&&_0x12b2fe['writer']['addClass']('ck-suggestion-marker--active',_0x209a67),_0x12b2fe['writer']['insert'](_0x99711d,_0x209a67),_0x12b2fe['mapper']['bindElementToMarker'](_0x209a67,_0x7596e8['markerName']);}_0x24eedf||_0x18c777||!_0x2068df||_0x467c09(_0x2068df);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xd9a76e,_0x2b0b92,_0x4fc1f9)=>{const _0x15b5e6=_0x4fc1f9['mapper']['markerNameToElements'](_0x2b0b92['markerName']);if(_0x15b5e6){for(const _0x3571b2 of _0x15b5e6)(_0x3571b2['hasClass']('ck-suggestion-marker-split')||_0x3571b2['hasClass']('ck-suggestion-marker-merge'))&&(_0x4fc1f9['mapper']['unbindElementFromMarkerName'](_0x3571b2,_0x2b0b92['markerName']),_0x4fc1f9['writer']['remove'](_0x3571b2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xcc9a55,_0x242e6c,_0x9ce42e)=>{const _0x235939=_0x242e6c['markerName']['split'](':')[0x1],_0x5e88e6=this['_getChangeFromId'](_0x235939);if(!_0x5e88e6)return null;const _0x32b15c='add'==_0x5e88e6['type']?'split':'merge';if(_0x9ce42e['consumable']['test'](_0x242e6c['markerRange'],_0xcc9a55['name']))for(const _0x185d41 of _0x242e6c['markerRange']['getItems']()){if(!_0x185d41['is']('element','softBreak'))continue;const _0x5a3d8f=_0x9ce42e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32b15c}),_0x4d77bc=_0x9ce42e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x185d41));_0x5e88e6['data']['isSuggestion']&&_0x9ce42e['writer']['addClass']('ck-suggestion-marker-'+_0x32b15c+'-new',_0x5a3d8f),this['activeChange']==_0x5e88e6&&_0x9ce42e['writer']['addClass']('ck-suggestion-marker--active',_0x5a3d8f),_0x9ce42e['writer']['insert'](_0x4d77bc,_0x5a3d8f),_0x9ce42e['mapper']['bindElementToMarker'](_0x5a3d8f,_0x242e6c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x709a7c=>{for(const _0x55c796 of this['editor']['model']['document']['getRootNames']()){const _0x287cd2=this['editor']['model']['document']['getRoot'](_0x55c796),_0x2690a8=this['editor']['editing']['view']['document']['getRoot'](_0x55c796);if(_0x2690a8){const _0x3ed7b7=_0x287cd2['getAttribute']('revisionHistoryAttachChange');if(_0x709a7c['removeAttribute']('data-change-id',_0x2690a8),_0x709a7c['removeClass']('ck-revision-history-root-add',_0x2690a8),_0x709a7c['removeClass']('ck-revision-history-root-remove',_0x2690a8),_0x709a7c['removeClass']('ck-revision-history-root--active',_0x2690a8),_0x3ed7b7){const _0x3387bb=this['_getChangeFromId'](_0x3ed7b7);if(!_0x3387bb)return null;_0x709a7c['setAttribute']('data-change-id',_0x3ed7b7,_0x2690a8),_0x709a7c['addClass']('ck-revision-history-root-'+_0x3387bb['type'],_0x2690a8),this['activeChange']==_0x3387bb&&_0x709a7c['addClass']('ck-revision-history-root--active',_0x2690a8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4f47dc=>'revision-comment:'+_0x4f47dc,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3a54b0=>'revision-suggestion:'+_0x3a54b0,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3f63a8=>({'name':'suggestion:'+_0x3f63a8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x526105=>{const _0x11f6cc=_0x526105['markerName']['split'](':')[0x1];return'insertion'!=_0x11f6cc&&'deletion'!=_0x11f6cc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x11f6cc]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2653d6,_0x20f965,_0xdd545b)=>{const _0x139795=_0xdd545b['mapper']['markerNameToElements'](_0x20f965['markerName']);if(_0x139795){for(const _0x121673 of _0x139795)_0x121673['is']('uiElement')&&(_0xdd545b['mapper']['unbindElementFromMarkerName'](_0x121673,_0x20f965['markerName']),_0xdd545b['writer']['remove'](_0x121673));}},{'priority':'high'});}['_getChangeFromId'](_0x1fdef2){return this['_changeIdToChange']['get'](_0x1fdef2);}['_getViewForChange'](_0x322f44){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x322f44),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x23719f,_0x52600a,_0xab4092,_0x275c42)=>{_0x275c42&&this['_balloon']['remove'](_0x275c42),_0xab4092&&(this['_balloon']['add']({'view':_0xab4092,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5bebe0=this['editor']['editing'],_0x505fb9=this['_getChangeFromId'](_0xab4092['changeId']);let _0x424522;if(_0x505fb9['data']['isOnRoot']){const _0x47fb4a=_0x5bebe0['view']['getDomRoot'](_0x505fb9['rootName']);_0x424522=Array['from'](_0x47fb4a['getClientRects']());}else{const _0x18db2b=this['editor']['model']['markers']['get']('revision:'+_0xab4092['changeId']);_0x424522=Array['from'](_0x5bebe0['mapper']['markerNameToElements'](_0x18db2b['name']))['map'](_0x104b54=>_0x5bebe0['view']['domConverter']['mapViewToDom'](_0x104b54))['map'](_0x3514cd=>Array['from'](_0x3514cd['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x424522[0x0];return _0x424522['find'](_0x169e5f=>_0x169e5f['top']-0x3<=this['_activeViewTarget']['y']&&_0x169e5f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x169e5f['left']-0x3<=this['_activeViewTarget']['x']&&_0x169e5f['right']+0x3>=this['_activeViewTarget']['x'])||_0x424522[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3ea673,_0x53726f,_0x9336a7,_0xbf7870)=>{this['activeView']=_0x9336a7?this['_getViewForChange'](_0x9336a7):null,this['editor']['model']['change'](()=>{const _0x596416=this['editor']['editing'];_0xbf7870&&(_0xbf7870['data']['isOnRoot']?_0x596416['view']['change'](_0x1d2da9=>{_0x1d2da9['removeClass']('ck-revision-history-root--active',_0x596416['view']['document']['getRoot'](_0xbf7870['rootName']));}):_0x596416['reconvertMarker']('revision:'+_0xbf7870['id'])),_0x9336a7&&(_0x9336a7['data']['isOnRoot']?_0x596416['view']['change'](_0x3cdf79=>{_0x3cdf79['addClass']('ck-revision-history-root--active',_0x596416['view']['document']['getRoot'](_0x9336a7['rootName']));}):_0x596416['reconvertMarker']('revision:'+_0x9336a7['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x7c763e,_0x4e0fd6)=>{if(this['activeChange'])return;const _0x574cd9=this['_findChangeIdFromDomTarget'](_0x4e0fd6['target']),_0x55b6b7=this['_changeIdToChange']['get'](_0x574cd9);_0x55b6b7?(this['_activeViewTarget']={'x':_0x4e0fd6['domEvent']['x'],'y':_0x4e0fd6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x55b6b7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5a5594,_0x4f4996)=>{const _0x302a93=this['_findChangeIdFromDomTarget'](_0x4f4996['target']),_0x31dc74=this['_changeIdToChange']['get'](_0x302a93);_0x31dc74?(this['_activeViewTarget']={'x':_0x4f4996['domEvent']['x'],'y':_0x4f4996['domEvent']['y']},_0x31dc74===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x31dc74):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5bbe51){do{const _0x1cec89=_0x5bbe51['getAttribute']('data-change-id');if(_0x1cec89)return _0x1cec89;_0x5bbe51=_0x5bbe51['parent'];}while(_0x5bbe51);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x49eb0d=>{for(const _0x9af52d of this['editor']['model']['markers'])_0x49eb0d['removeMarker'](_0x9af52d);});}}function tt(_0x46e48c,_0x133a43){return(_0x31c64e,_0x848ba0,_0x4d16e3)=>{if(!_0x4d16e3['consumable']['test'](_0x848ba0['markerRange'],_0x31c64e['name']))return;const _0x14cb2b=_0x848ba0['markerRange']['getWalker'](),_0x87af82=_0x848ba0['markerRange']['start'],_0x9c92c7=_0x46e48c['model']['schema'];let _0xccdb89=null,_0x57c4eb=null,_0xb03be0=!0x1,_0x360118=!0x1;for(const _0x9b563c of _0x14cb2b){const _0x1b7703=_0x9b563c['item'];_0xb03be0=_0xb03be0||_0x9c92c7['isContent'](_0x1b7703);const _0x234fb1=_0x4d16e3['mapper']['toViewElement'](_0x1b7703);if(_0x234fb1&&_0x234fb1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x9b563c['type']&&(_0x9c92c7['isBlock'](_0x1b7703)&&!_0x9c92c7['isLimit'](_0x1b7703)&&(_0x1b7703['nextSibling']||_0x87af82['isAtEnd']?_0xccdb89&&_0xccdb89['parent']==_0x1b7703||(_0xccdb89=_0x1b7703,_0x5ada19(_0x9b563c['previousPosition']),_0x360118=!0x0):_0x57c4eb=_0x57c4eb||_0x9b563c['previousPosition']));}function _0x5ada19(_0x1fd04b){const _0x46060a=_0x4d16e3['mapper']['toViewPosition'](_0x1fd04b),_0x9df877=_0x4d16e3['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x133a43});_0x4d16e3['writer']['insert'](_0x46060a,_0x9df877),_0x4d16e3['mapper']['bindElementToMarker'](_0x9df877,_0x848ba0['markerName']);}_0xb03be0||_0x360118||!_0x57c4eb||_0x5ada19(_0x57c4eb);};}class yt extends _0x251dfe{constructor(_0x5405e8){super(_0x5405e8);const _0x34ff59=_0x5405e8['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x34ff59,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34ff59,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x14199c=this['editor'],_0x2803e7=_0x14199c['plugins']['get'](d),_0xb14c46=_0x2803e7['isReady']?_0x2803e7['diff']['newRevisionId']:null;_0x14199c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xb14c46);}['refresh'](){const {isReady:_0x22e241,isEnabled:_0x4793d2,repository:_0x5a9abe,diff:_0x307fbc}=this['editor']['plugins']['get'](d),_0x4b462d=_0x307fbc&&_0x5a9abe['getLaterVisibleRevision'](_0x307fbc['newRevisionId']);this['isEnabled']=_0x22e241&&_0x4793d2&&Boolean(_0x4b462d);}}class bt extends _0x251dfe{['_step'];constructor(_0x2e3961,{direction:_0x40e07b}){super(_0x2e3961);const _0x211332=_0x2e3961['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x40e07b?0x1:-0x1,this['listenTo'](_0x211332,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x211332,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x211332,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3bed7e=this['editor'],_0x458bc0=_0x3bed7e['plugins']['get'](d),{isNavigationMode:_0x213467,currentChangeNumber:_0x4faa56}=_0x458bc0;let _0x1754c5;if(_0x458bc0['activeChange']=_0x213467?_0x458bc0['diff']['changes']['get'](_0x4faa56+this['_step']):_0x458bc0['diff']['changes']['first'],_0x458bc0['activeChange']['data']['isOnRoot'])_0x1754c5=_0x3bed7e['editing']['view']['getDomRoot'](_0x458bc0['activeChange']['rootName']);else{const _0x30f8eb=_0x3bed7e['model']['markers']['get']('revision:'+_0x458bc0['activeChange']['id']);_0x1754c5=_0x4c6d8a(_0x3bed7e['editing'],_0x30f8eb);}_0x20971c({'target':_0x1754c5,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x505109,currentChangeNumber:_0x2180f3,numberOfChanges:_0x5eec25,isReady:_0x2b6fbe,isEnabled:_0x7fe5c6}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x7fe5c6&&_0x2b6fbe&&_0x5eec25)&&(!_0x505109||(0x1===this['_step']?_0x2180f3<_0x5eec25-0x1:_0x2180f3>0x0));}}class _i extends _0x2f7742{constructor(_0x163b26){super(_0x163b26);const _0xfa56fb=this['bindTemplate'],_0xa46b47=new _0x27296f(_0x163b26),_0x3a78f6=new _0x27296f(_0x163b26);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',(_0x38f300,_0xf0679f)=>_0x38f300&&_0xf0679f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x334e1f,_0x38d9e2,_0x3910fd,_0x2fabe2)=>{if(!_0x334e1f)return R(_0x163b26,'Loading...');if(!_0x3910fd)return R(_0x163b26,'No\x20changes');const _0x234b3d=R(_0x163b26,'NUMBER_OF_CHANGES',_0x3910fd);return _0x2fabe2?R(_0x163b26,'X_OF_Y_CHANGES',[_0x38d9e2+0x1,_0x3910fd]):_0x234b3d;}),_0xa46b47['set']({'label':R(_0x163b26,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x3a78f6['set']({'label':R(_0x163b26,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0xa46b47['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3a78f6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xa46b47['on']('execute',()=>this['fire']('execute','backward')),_0x3a78f6['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',_0xfa56fb['if']('_isStatusLabelVisible','ck-hidden',_0x473fd0=>!_0x473fd0)]},'children':[{'text':_0xfa56fb['to']('isNavigationMode',_0x433981=>_0x433981?R(_0x163b26,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x163b26,'Total')+':\x20')}]},{'text':_0xfa56fb['to']('_statusText')}]},new _0x448f5a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xa46b47,_0x3a78f6]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x24c069{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xd2047d=this['editor']['editing']['view'];_0xd2047d['change'](_0xff8c35=>{for(const _0x57621f of _0xd2047d['document']['roots'])_0xff8c35['addClass'](ce,_0x57621f);});}['hide'](){const _0xca9056=this['editor']['editing']['view'];_0xca9056['change'](_0x4c1fd2=>{for(const _0x309314 of _0xca9056['document']['roots'])_0x4c1fd2['removeClass'](ce,_0x309314);});}}class m extends _0x24c069{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x55c4a1=this['editor'],_0x29a90d=_0x55c4a1['plugins']['get'](d),_0x8de7b4=_0x55c4a1['plugins']['get'](le);_0x55c4a1['ui']['componentFactory']['add']('exitToEditing',_0x31335a=>{const _0x362f40=new _0x27296f(_0x31335a);return _0x362f40['set']({'label':R(_0x31335a,'Back\x20to\x20editing'),'icon':_0x2774db['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x362f40,'execute',()=>{_0x55c4a1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x362f40;}),_0x55c4a1['ui']['componentFactory']['add']('restoreRevision',_0x13fd25=>{const _0x3e7de=new _0x27296f(_0x13fd25);return _0x3e7de['set']({'label':R(_0x13fd25,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3e7de['bind']('isEnabled')['to'](_0x55c4a1['commands']['get']('restoreRevision')),this['listenTo'](_0x3e7de,'execute',()=>_0x55c4a1['execute']('restoreRevision')),_0x3e7de;}),_0x55c4a1['ui']['componentFactory']['add']('changesNavigation',_0x2d9abf=>{const _0x1781e3=new _i(_0x2d9abf),_0x1a4152=_0x55c4a1['commands']['get']('showPreviousChange'),_0x8e9024=_0x55c4a1['commands']['get']('showNextChange');return _0x1781e3['bind']('isBackwardNavigationEnabled')['to'](_0x1a4152,'isEnabled'),_0x1781e3['bind']('isForwardNavigationEnabled')['to'](_0x8e9024,'isEnabled'),_0x1781e3['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x29a90d),this['listenTo'](_0x1781e3,'execute',(_0x50bcbf,_0x38496a)=>{_0x55c4a1['execute']('forward'===_0x38496a?'showNextChange':'showPreviousChange');}),_0x1781e3;}),_0x8de7b4['show'](),_0x29a90d['on']('change:isReady',(_0x47e398,_0x671678,_0x27c368)=>{_0x27c368?_0x8de7b4['hide']():_0x8de7b4['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x55f8b8,_0xd09024){super(_0x55f8b8,_0xd09024);const _0x383627=this['bindTemplate'];this['set']({'label':R(_0x55f8b8,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x55f8b8,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x383627['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4aa627=this['fieldView']['element'];this['_tooltipString']=_0x4aa627['scrollWidth']>_0x4aa627['clientWidth']&&_0x4aa627['value']||'';}}class ti extends _0x2f7742{constructor(_0x594681,_0x4d1b6d,_0x2db98b){super(_0x594681);const _0x5e21b4=new _0x348243();_0x5e21b4['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x36a9e9=['ck','ck-revision-history-sidebar__revision-author'];_0x2db98b&&_0x36a9e9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x390368=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x594681,_0x2db98b?'Revision\x20creator':'Revision\x20author')},'children':[_0x5e21b4,_0x4d1b6d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x36a9e9},'children':_0x390368});}}function ni(_0x322a88,_0x345c4c){const _0x24efcb=_0x322a88['bindTemplate'],_0x21f3e9=_0x322a88['locale'],_0x173fef=_0x433761(_0x21f3e9);_0x173fef['panelPosition']='sw';const _0xd1d329=function(_0x339706,_0x237de5){const _0x246399=function(_0x40cb65,_0x4f9b53){const _0x4bb5fb=_0x40cb65['locale'],_0x1f5f0c={'Compare\x20against\x20selected':R(_0x4bb5fb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4bb5fb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4bb5fb,'Restore\x20this\x20revision')};return _0x4f9b53['map'](_0x2f905c=>{const _0x5b0359=_0x1f5f0c[_0x2f905c['name']];return _0x5b0359&&_0x5b0359!==_0x2f905c['name']&&(_0x2f905c['name']=_0x5b0359),_0x2f905c;});}(_0x339706,_0x237de5),_0x4f5d83=new _0x1b7f87();for(const _0x159a4a of _0x246399){const _0x7ab789={'type':'button','model':new to({'label':_0x159a4a['name'],'class':_0x159a4a['class'],'withText':!0x0,'role':'menuitem','_action':_0x159a4a['action']})};_0x7ab789['model']['bind']('isEnabled')['to'](_0x339706,'isActionsDropdownOpen',_0x43494c=>'function'!=typeof _0x159a4a['isEnabled']||(!_0x43494c||_0x159a4a['isEnabled'](_0x339706))),_0x4f5d83['add'](_0x7ab789);}return _0x4f5d83;}(_0x322a88,_0x345c4c);return _0x322a88['bind']('isActionsDropdownOpen')['to'](_0x173fef,'isOpen'),_0x173fef['buttonView']['set']({'label':R(_0x21f3e9,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2774db['threeVerticalDots']}),_0x173fef['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x24efcb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x24efcb['to'](_0x12cd88=>_0x12cd88['stopPropagation']())}}),_0x173fef['on']('execute',_0x18a5b2=>{_0x322a88['isReady']&&'function'==typeof _0x18a5b2['source']['_action']&&_0x18a5b2['source']['_action'](_0x322a88);}),_0x40edfc(_0x173fef,_0xd1d329,{'role':'menu'}),_0x173fef['listenTo'](_0x322a88,'change:isActionsDropdownOpen',(_0x1c70b5,_0x41a110,_0x4aa25c)=>{if(_0x4aa25c)for(const _0x55cfb2 of _0x173fef['listView']['items']){const _0x33e1fa=_0x55cfb2['children']['first'],_0x1ec5dd=_0x345c4c['find'](_0x342198=>_0x342198['action']===_0x33e1fa['_action'])['isVisible'];_0x55cfb2['isVisible']=void 0x0===_0x1ec5dd||_0x1ec5dd(_0x322a88);}}),_0x173fef;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x7db3c0(_0x2f7742){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xf5e5dd,_0x42a37b,_0x873acc,_0x349742){super(_0xf5e5dd);const _0x4dffb6=this['bindTemplate'],_0x2e0b04=function(_0x3e1305,_0x2abcfe){const _0x431fbe=Array['from'](_0x2abcfe['authors'])['filter'](_0x1e9865=>_0x1e9865!=_0x2abcfe['creator']);return _0x2abcfe['creator']&&_0x431fbe['unshift'](_0x2abcfe['creator']),_0x431fbe['map'](_0x262aa3=>new ti(_0x3e1305,_0x262aa3,_0x262aa3==_0x2abcfe['creator']));}(_0xf5e5dd,_0x42a37b);this['id']=_0x42a37b['id'],this['_revision']=_0x42a37b,this['_requireRevisionName']=_0x349742,this['bind']('name','createdAt')['to'](_0x42a37b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x241257=>{return _0x103be0=_0xf5e5dd['uiLanguage'],(_0x40a415=_0x241257)['toLocaleDateString'](_0x103be0,{'month':'long','day':'numeric'})+',\x20'+_0x40a415['toLocaleTimeString'](_0x103be0,{'hour':'numeric','minute':'numeric'});var _0x103be0,_0x40a415;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0xf5e5dd,_0x4f7e6f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1c5bf6=>_0x1c5bf6||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4dea3f,_0x5e670c)=>_0x4dea3f&&_0x5e670c),this['revisionActionsView']=_0x873acc&&_0x873acc['length']?ni(this,_0x873acc):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4dffb6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4dffb6['if']('isEnabled','ck-disabled',_0x590cc0=>!_0x590cc0),_0x4dffb6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4dffb6['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4dffb6['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':_0x4dffb6['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':_0x2e0b04}]},this['revisionActionsView']],'on':{'click':_0x4dffb6['to'](_0x2af97b=>{_0x2af97b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x53a145=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x53a145,'change',()=>{this['_requireRevisionName']&&!_0x53a145['value']||this['fire']('setName',{'id':this['id'],'name':_0x53a145['value']}),_0x53a145['value']||(_0x53a145['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x1a74b4,_0x3e6b9a){const _0x2a1853=_0x2265c1['fromJSDate'](_0x1a74b4)['setLocale'](_0x3e6b9a),_0x3705a7=_0x2265c1['local'](),_0x14df79=_0x3705a7['minus']({'days':0x1})['startOf']('day');let _0x49c447,_0x24a628;return _0x2a1853['hasSame'](_0x3705a7,'day')?(_0x49c447=_0x2a1853['startOf']('day')['toJSDate'](),_0x24a628=_0x2a1853['toRelativeCalendar']()):_0x2a1853['hasSame'](_0x14df79,'day')?(_0x49c447=_0x14df79['toJSDate'](),_0x24a628=_0x2a1853['toRelativeCalendar']()):_0x2a1853['hasSame'](_0x3705a7,'week')?(_0x49c447=_0x2a1853['startOf']('week')['toJSDate'](),_0x24a628=_0x2a1853['weekdayLong']||''):_0x2a1853['hasSame'](_0x3705a7,'year')?(_0x49c447=_0x2a1853['startOf']('month')['toJSDate'](),_0x24a628=_0x2a1853['monthLong']||''):(_0x49c447=_0x2a1853['startOf']('year')['toJSDate'](),_0x24a628=String(_0x2a1853['year'])),{'startDate':_0x49c447,'localizedPeriodName':_0x24a628};}class mi extends _0x2f7742{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x145465,_0x258d39,_0x599c39,_0x3ba7e0){super(_0x145465);const _0x1f98fb=di(_0x258d39,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x258d39,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x599c39,this['_requireRevisionName']=_0x3ba7e0,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':_0x1f98fb}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3f0b3c){const _0x102833=new ai(this['locale'],_0x3f0b3c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x102833);}['removeRevision'](_0x3c008a){const _0x47563b=this['revisionViews']['find'](_0x4555bf=>_0x4555bf['id']===_0x3c008a['id']);this['revisionViews']['remove'](_0x47563b);}}class as extends _0x2f7742{constructor(_0x1f9515){super(_0x1f9515);const _0x23f72d=new _0x348243();_0x23f72d['content']=_0x2774db['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x23f72d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1f9515,'Revision\x20history')]}]});}}class ci extends _0x2f7742{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5c73a7,_0x1f306c,_0x237182,_0x5f4a50){super(_0x5c73a7);const _0x241759=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1f306c,this['_revisionActions']=_0x237182,this['_requireRevisionName']=_0x5f4a50,this['on']('select',(_0xfa15c0,_0x3f6390)=>{this['fire']('revisionSelected',_0x3f6390);}),this['on']('setName',(_0x57c381,_0x20c669)=>{this['fire']('revisionSetName',_0x20c669);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5c73a7),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x241759['if']('isEnabled','ck-disabled',_0x16bcf4=>!_0x16bcf4)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1fb299 of this['_revisions'])this['_addRevision'](_0x1fb299);this['_revisions']['on']('add',(_0x2167dd,_0xf2b2b1)=>{this['_addRevision'](_0xf2b2b1);}),this['_revisions']['on']('remove',(_0x516519,_0xedbf54)=>{this['_removeRevision'](_0xedbf54);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2b5f66=>_0x2b5f66['revisionViews']['map'](_0xfc08da=>_0xfc08da))['flat']();}['selectRevision'](_0x2cac39){for(const _0x38571c of this['revisionViews'])_0x2cac39&&_0x2cac39['id']===_0x38571c['id']?_0x38571c['select']():_0x38571c['deselect']();}['highlightRevisions'](_0x3075e8){for(const _0x2627af of this['revisionViews'])_0x3075e8['some'](({id:_0x1d1607})=>_0x1d1607===_0x2627af['id'])?_0x2627af['highlight']():_0x2627af['unhighlight']();}['_addRevision'](_0x37ebc2){const _0x33213a=di(_0x37ebc2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4bd769=this['timePeriodViews']['get'](0x0);_0x4bd769&&_0x4bd769['startDate']['getTime']()===_0x33213a['getTime']()||(_0x4bd769=new mi(this['locale'],_0x33213a,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4bd769)),_0x4bd769['addRevision'](_0x37ebc2);}['_removeRevision'](_0x138dec){const _0x5240ff=di(_0x138dec['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5240ff)['removeRevision'](_0x138dec);}['_getTimePeriodViewByStartDate'](_0x1edc7f){return this['timePeriodViews']['find'](_0x4d13e1=>_0x4d13e1['startDate']['getTime']()===_0x1edc7f['getTime']());}}class g extends _0x24c069{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x1a125e,uid as _0x3a23ba,Collection as _0x2bb746,logWarning as _0x51d1a9,FocusTracker as _0x5dd387,KeystrokeHandler as _0x2f3ff4,scrollViewportToShowTarget as _0x56a21a,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x8d401c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x10f70f,set as _0x5131fc,unset as _0x1c3ba7,isEqual as _0x334eec}from'lodash-es';import{Plugin as _0x2808fc,PendingActions as _0x2ce975,icons as _0x1b5e61,Command as _0x452e57,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1dae11,getMarkerDomElement as _0x3e9ef9,ConfirmMixin as ti,sanitizeEditorConfig as _0x31cf92}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x9a3e49,ViewText as _0x45f37d,ViewElement as _0x1df7c3,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x4c078e,ViewAttributeElement as _0x36fce1,ViewEmptyElement as _0x387a7a,ViewRawElement as _0x134602,ViewUIElement as _0x55ebfa,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5e7c65,submitHandler as _0x569e30,LabeledFieldView as _0x57140c,createLabeledInputText as _0x76e838,createDropdown as _0x1e5beb,ListView as _0x34f44e,ListItemView as _0x3cb22f,ButtonView as te,MenuBarMenuView as _0x1b433c,MenuBarMenuListView as _0x1097f2,MenuBarMenuListItemView as _0x21aabe,MenuBarMenuListItemButtonView as _0x56f955,ContextualBalloon as _0x3bc516,ToolbarSeparatorView as _0x577ee9,IconView as _0x13d24a,addListToDropdown as to,ViewModel as _0x598a22,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x26f736}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x1a125e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x105890){super(),this['id']=_0x105890['id']||_0x3a23ba(),this['creator']=_0x105890['creator']||null,this['authors']=_0x105890['authors']||[],this['diffData']=_0x105890['diffData']||null,this['toVersion']=_0x105890['toVersion']||0x0,this['fromVersion']=_0x105890['fromVersion']||0x0,this['set']('name',_0x105890['name']||''),this['set']('createdAt',_0x105890['createdAt']||new Date()),this['set']('attributes',_0x105890['attributes']||{});}['setName'](_0x4aa682){this['_update']({'name':_0x4aa682});}['setAttribute'](_0x1e0bb4,_0x58c5df){const _0x3e4adc=_0x10f70f(this['attributes']);_0x5131fc(_0x3e4adc,_0x1e0bb4,_0x58c5df),this['_update']({'attributes':_0x3e4adc});}['removeAttribute'](_0x99111a){const _0x5ade09=_0x10f70f(this['attributes']);_0x1c3ba7(_0x5ade09,_0x99111a),this['_update']({'attributes':_0x5ade09});}['_update'](_0x40b72f,_0x243e95=!0x1){let _0x2cc0b1=!0x1;const _0x23ff27={'id':this['id']},_0x293f99=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x532caa of _0x293f99){const _0x1014de=_0x40b72f[_0x532caa];void 0x0!==_0x1014de&&_0x1014de!==this[_0x532caa]&&(this[_0x532caa]=_0x1014de,_0x23ff27[_0x532caa]=_0x1014de,_0x2cc0b1=!0x0);}_0x2cc0b1&&(_0x23ff27['authors']&&(_0x23ff27['authorsIds']=_0x23ff27['authors']['map'](_0x55c914=>_0x55c914['id']),delete _0x23ff27['authors']),this['fire']('_update',_0x23ff27,_0x243e95));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4fe9a3=>_0x4fe9a3['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2808fc{['_revisions'];static get['requires'](){return[_0x1dae11];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2095f4){super(_0x2095f4),this['_revisions']=new _0x2bb746();}['afterInit'](){!async function(_0x2a7a4b){const _0x3f6e07=_0x21c432([0x47,0x4e,0x65,0x6d,0x63,0x51,0x76,0x36,0x6a,0x52,0x70,0x57,0x45,0x5a,0x7a,0x56,0x78,0x4f,0x32,0x62,0x30,0x55,0x35,0x58,0x41,0x72,0x64,0x31,0x50,0x39,0x6b,0x6e,0x44,0x68,0x38,0x74,0x6f,0x73,0x79,0x4b,0x4c,0x67,0x49,0x54,0x69,0x6c,0x61,0x42,0x53,0x37,0x66,0x75,0x48,0x4a,0x34,0x71,0x43,0x59,0x46,0x4d,0x77,0x33]),_0x534954=0xeb829,_0x424376=0x361c154a,_0x50df44=0x361b4f1a^_0x424376,_0x131c2a=window[_0x21c432([0x44,0x61,0x74,0x65])][_0x21c432([0x6e,0x6f,0x77])](),_0x352a24=_0x2a7a4b[_0x21c432([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x393ba5=new window[(_0x21c432([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29c42a=>{_0x352a24[_0x21c432([0x6f,0x6e,0x63,0x65])](_0x21c432([0x72,0x65,0x61,0x64,0x79]),_0x29c42a);}),_0xf786dd={[_0x21c432([0x6b,0x74,0x79])]:_0x21c432([0x45,0x43]),[_0x21c432([0x75,0x73,0x65])]:_0x21c432([0x73,0x69,0x67]),[_0x21c432([0x63,0x72,0x76])]:_0x21c432([0x50,0x2d,0x32,0x35,0x36]),[_0x21c432([0x78])]:_0x21c432([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]),[_0x21c432([0x79])]:_0x21c432([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]),[_0x21c432([0x61,0x6c,0x67])]:_0x21c432([0x45,0x53,0x32,0x35,0x36])},_0x3a362f=_0x352a24[_0x21c432([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21c432([0x67,0x65,0x74])](_0x21c432([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x281350(){let _0x1c21a8,_0x1d4e12=null,_0x2c83b6=null;try{if(_0x3a362f==_0x21c432([0x47,0x50,0x4c]))return _0x21c432([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c21a8=_0x229e9c(),!_0x1c21a8)return _0x21c432([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c21a8[_0x21c432([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c83b6=_0x7f29(_0x1c21a8[_0x21c432([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c21a8[_0x21c432([0x6a,0x74,0x69])])),await _0x4a0128()?_0x35eb36()?_0x4b9ade()?_0x21c432([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b5dde()?(_0x1c21a8[_0x21c432([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21c432([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d4e12=_0x3b0293(_0x21c432([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c21a8[_0x21c432([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21c432([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d4e12=_0x3b0293(_0x21c432([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c21a8[_0x21c432([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21c432([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1d4e12=_0x3b0293(_0x21c432([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x216217()):_0x21c432([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21c432([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21c432([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f9134){return _0x21c432([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b9ade(){const _0x1fb059=[_0x21c432([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21c432([0x74,0x72,0x69,0x61,0x6c])][_0x21c432([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c21a8[_0x21c432([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x131c2a/0x3e8:0xe10*_0x50df44;return _0x1c21a8[_0x21c432([0x65,0x78,0x70])]<_0x1fb059;}function _0x35eb36(){const _0x588dbc=_0x1c21a8[_0x21c432([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x588dbc)return!0x1;if(_0x588dbc[_0x21c432([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c432([0x2a])))return!0x0;if(_0x588dbc[_0x21c432([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c432([0x52,0x48])))return!0x0;if(_0x588dbc[_0x21c432([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c432([0x52,0x52,0x48]))){if(_0x5bd389())return!0x0;if(_0x5b0fab()||_0x11a7a1())return!0x0;}return!0x1;}function _0x1b5dde(){const _0x2e43b5=_0x1c21a8[_0x21c432([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e43b5||0x0==_0x2e43b5[_0x21c432([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33fe64}=new URL(window[_0x21c432([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e43b5[_0x21c432([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33fe64))return!0x0;const _0x5dd1b1=_0x33fe64[_0x21c432([0x73,0x70,0x6c,0x69,0x74])](_0x21c432([0x2e]));return _0x2e43b5[_0x21c432([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ebcea=>_0x1ebcea[_0x21c432([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c432([0x2a])))[_0x21c432([0x6d,0x61,0x70])](_0x2fbf73=>_0x2fbf73[_0x21c432([0x73,0x70,0x6c,0x69,0x74])](_0x21c432([0x2e])))[_0x21c432([0x73,0x6f,0x6d,0x65])](_0xc81f86=>_0x5dd1b1[_0x21c432([0x65,0x76,0x65,0x72,0x79])]((_0x2b2361,_0x29607a)=>_0xc81f86[_0x29607a]===_0x2b2361||_0xc81f86[_0x29607a]===_0x21c432([0x2a])));}function _0x216217(){return _0x1d4e12&&_0x2c83b6?new window[(_0x21c432([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52da08,_0x396d69)=>{_0x1d4e12[_0x21c432([0x74,0x68,0x65,0x6e])](_0x52da08,_0x396d69),_0x2c83b6[_0x21c432([0x74,0x68,0x65,0x6e])](_0x383f58=>{_0x383f58!=_0x21c432([0x56,0x61,0x6c,0x69,0x64])&&_0x52da08(_0x383f58);},_0x396d69);}):_0x1d4e12||_0x2c83b6||_0x21c432([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7f29(_0x2bf040,_0x35825b){return new window[(_0x21c432([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5980c5=>{if(_0x3fb636())return _0x5980c5(_0x21c432([0x56,0x61,0x6c,0x69,0x64]));_0x2446a5(),_0x352a24[_0x21c432([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21c432([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x427e7a=!0x1;const _0x125b77=_0x3a23ba();function _0x3a20d8(_0x19b100){return!!_0x19b100&&(typeof _0x19b100===_0x21c432([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19b100===_0x21c432([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19b100[_0x21c432([0x74,0x68,0x65,0x6e])]===_0x21c432([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19b100[_0x21c432([0x63,0x61,0x74,0x63,0x68])]===_0x21c432([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2340ed(_0x2dcb5c){_0x2440fd(_0x2dcb5c)[_0x21c432([0x74,0x68,0x65,0x6e])](_0x1299db=>{if(!_0x1299db||_0x1299db[_0x21c432([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21c432([0x6f,0x6b]))return _0x21c432([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15ae92(_0xa988fc(_0x125b77+_0x35825b))!=_0x1299db[_0x21c432([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21c432([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21c432([0x56,0x61,0x6c,0x69,0x64]);})[_0x21c432([0x74,0x68,0x65,0x6e])](_0xe868db=>(_0xa1c765(),_0xe868db),()=>{const _0x838a79=_0x250e93();return null==_0x838a79?(_0xa1c765(),_0x21c432([0x56,0x61,0x6c,0x69,0x64])):_0x21c432(_0x131c2a-_0x838a79>(0x1210914a^_0x424376)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21c432([0x74,0x68,0x65,0x6e])](_0x5980c5)[_0x21c432([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5980c5(_0x21c432([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x346855=0x362afbca^_0x424376;function _0xa1c765(){const _0x518fbf=_0x21c432([0x6c,0x6c,0x63,0x74,0x2d])+_0x15ae92(_0xa988fc(_0x2bf040)),_0x10f6b5=_0x44e546(_0x15ae92(window[_0x21c432([0x4d,0x61,0x74,0x68])][_0x21c432([0x63,0x65,0x69,0x6c])](_0x131c2a/_0x346855)));window[_0x21c432([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21c432([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x518fbf,_0x10f6b5);}function _0x250e93(){const _0x4783e8=_0x21c432([0x6c,0x6c,0x63,0x74,0x2d])+_0x15ae92(_0xa988fc(_0x2bf040)),_0x42e667=window[_0x21c432([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21c432([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4783e8);return _0x42e667?window[_0x21c432([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44e546(_0x42e667),0x10)*_0x346855:null;}function _0x2440fd(_0x4a3191){return new window[(_0x21c432([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5087b6,_0x17decd)=>{_0x4a3191[_0x21c432([0x74,0x68,0x65,0x6e])](_0x5087b6,_0x17decd),window[_0x21c432([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17decd,0x361dc18a^_0x424376);});}}_0x352a24[_0x21c432([0x6f,0x6e])](_0x21c432([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f2cf5,_0x2b6c32)=>{if(_0x2b6c32[0x0]!=_0x2bf040)return _0x5980c5(_0x21c432([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b6c32[0x1]={..._0x2b6c32[0x1],[_0x21c432([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x125b77};},{[_0x21c432([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21c432([0x68,0x69,0x67,0x68])}),_0x352a24[_0x21c432([0x6f,0x6e])](_0x21c432([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x224b34=>{_0x3a20d8(_0x224b34[_0x21c432([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x427e7a=!0x0,_0x2340ed(_0x224b34[_0x21c432([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21c432([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21c432([0x6c,0x6f,0x77])}),_0x393ba5[_0x21c432([0x74,0x68,0x65,0x6e])](()=>{_0x427e7a||_0x5980c5(_0x21c432([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fb636(){return _0x352a24[_0x21c432([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21c432([0x76,0x69,0x65,0x77])][_0x21c432([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21c432([0x61,0x75,0x74,0x6f]);}function _0x2446a5(){_0x352a24[_0x21c432([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21c432([0x76,0x69,0x65,0x77])][_0x21c432([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21c432([0x61,0x75,0x74,0x6f]);}}function _0x3b0293(_0x3f616b){const _0x4a00b1=[new window[(_0x21c432([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6d14c4=>setTimeout(_0x6d14c4,0x36152b86^_0x424376)),_0x393ba5[_0x21c432([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21c432([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x177dbe=>{const _0x53108e=0x361c154d^_0x424376,_0x1d135b=_0x2a7a4b[_0x21c432([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x124073(){_0x1d135b[_0x21c432([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x53108e&&_0x177dbe();}_0x124073(),_0x1d135b[_0x21c432([0x6f,0x6e])](_0x21c432([0x61,0x64,0x64]),_0x124073);})),new window[(_0x21c432([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5917a0=>{function _0x43e4c3(){for(const _0x1d1257 in window)if(window[_0x21c432([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x21c432([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1d1257))&&window[_0x1d1257]==_0x534954)return _0x5917a0();_0x352a24[_0x21c432([0x73,0x74,0x61,0x74,0x65])]!=_0x21c432([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x21c432([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43e4c3,0x361c06c2^_0x424376);}_0x5947c7(_0x21c432([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x43e4c3();})];return window[_0x21c432([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21c432([0x72,0x61,0x63,0x65])](_0x4a00b1)[_0x21c432([0x74,0x68,0x65,0x6e])](()=>_0x3f616b);}async function _0x5516c6(){if(await _0x393ba5,_0x5947c7(_0x21c432([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x15dddc=_0x2a7a4b[_0x21c432([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x111536=_0x2a7a4b[_0x21c432([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])](_0x15dddc[_0x21c432([0x69,0x64])]),_0x1de462=_0x43af62(_0x21c432([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1de462[_0x21c432([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x15dddc['id'],_0x111536?_0x111536['id']:null,!0x0),_0x1de462[_0x21c432([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x21c432([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1de462[_0x21c432([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1de462[_0x21c432([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4408b5,void(_0x1de462[_0x21c432([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4408b5);}if(_0x5947c7(_0x21c432([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2df26f=_0x43af62(_0x21c432([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2df26f[_0x21c432([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x21c432([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2df26f[_0x21c432([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2df26f[_0x21c432([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4408b5,_0x2df26f[_0x21c432([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4408b5;}_0x352a24[_0x21c432([0x6d,0x6f,0x64,0x65,0x6c])][_0x21c432([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4408b5,_0x352a24[_0x21c432([0x6d,0x6f,0x64,0x65,0x6c])][_0x21c432([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4408b5,_0x352a24[_0x21c432([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21c432([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5bd389(){return _0x5947c7(_0x21c432([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x43af62(_0x21c432([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x21c432([0x73,0x74,0x61,0x74,0x65])]==_0x21c432([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b0fab(){return _0x5947c7(_0x21c432([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 _0x11a7a1(){return _0x5947c7(_0x21c432([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2fa93c(_0x2131f3){const _0x5199a1=_0x2d6f7e();_0x352a24[_0x5199a1]=_0x21c432([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])+_0x2131f3,_0x2131f3[_0x21c432([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x21c432([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2d6f7e()]=_0x534954),_0x2131f3!=_0x21c432([0x56,0x61,0x6c,0x69,0x64])&&_0x5516c6();}function _0x2d6f7e(){const _0x27fac7=window[_0x21c432([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21c432([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21c432([0x6e,0x6f,0x77])]())[_0x21c432([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21c432([0x2e]),'');let _0xe2ba08=_0x21c432([0x47]);for(let _0x1e99c1=0x0;_0x1e99c1<_0x27fac7[_0x21c432([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e99c1+=0x2){let _0x482c0e=window[_0x21c432([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27fac7[_0x21c432([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e99c1,_0x1e99c1+0x2));_0x482c0e>=_0x3f6e07[_0x21c432([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x482c0e-=_0x3f6e07[_0x21c432([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe2ba08+=_0x3f6e07[_0x482c0e];}return _0xe2ba08;}function _0x229e9c(){const _0x2a86d0=_0x3a362f[_0x21c432([0x73,0x70,0x6c,0x69,0x74])](_0x21c432([0x2e]));if(0x3!=_0x2a86d0[_0x21c432([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x421db5(_0x2a86d0[0x1]);function _0x421db5(_0x594d0e){const _0x413686=_0x353935(_0x594d0e);return _0x413686&&_0x2392dd()?_0x413686:null;function _0x2392dd(){const _0x59a6fe=_0x413686[_0x21c432([0x6a,0x74,0x69])],_0x10a536=window[_0x21c432([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59a6fe[_0x21c432([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59a6fe[_0x21c432([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36d440={..._0x413686,[_0x21c432([0x6a,0x74,0x69])]:_0x59a6fe[_0x21c432([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59a6fe[_0x21c432([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36d440[_0x21c432([0x76,0x63])],_0xa988fc(_0x36d440)==_0x10a536;}}}async function _0x4a0128(){let _0x50757a=!0x0;try{const _0x1757f6=_0x3a362f[_0x21c432([0x73,0x70,0x6c,0x69,0x74])](_0x21c432([0x2e])),[_0x5ae902,_0x199889,_0x81cba1]=_0x1757f6;return _0x5a8555(_0x5ae902),await _0x3a7702(_0x5ae902,_0x199889,_0x81cba1),_0x50757a;}catch(_0x315193){return!0x1;}function _0x5a8555(_0x1893d5){const _0x116641=_0x353935(_0x1893d5);_0x116641&&_0x116641[_0x21c432([0x61,0x6c,0x67])]==_0x21c432([0x45,0x53,0x32,0x35,0x36])||(_0x50757a=!0x1);}async function _0x3a7702(_0x339e99,_0x2bd129,_0x18a4da){const _0x25a9b0=window[_0x21c432([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21c432([0x66,0x72,0x6f,0x6d])](_0x56e4db(_0x18a4da),_0x4b2868=>_0x4b2868[_0x21c432([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44059f=new window[(_0x21c432([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21c432([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x339e99+_0x21c432([0x2e])+_0x2bd129),_0xbd6e1=window[_0x21c432([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21c432([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbd6e1)return;const _0x209a76=await _0xbd6e1[_0x21c432([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21c432([0x6a,0x77,0x6b]),_0xf786dd,{[_0x21c432([0x6e,0x61,0x6d,0x65])]:_0x21c432([0x45,0x43,0x44,0x53,0x41]),[_0x21c432([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21c432([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21c432([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbd6e1[_0x21c432([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21c432([0x6e,0x61,0x6d,0x65])]:_0x21c432([0x45,0x43,0x44,0x53,0x41]),[_0x21c432([0x68,0x61,0x73,0x68])]:{[_0x21c432([0x6e,0x61,0x6d,0x65])]:_0x21c432([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x209a76,_0x25a9b0,_0x44059f)||(_0x50757a=!0x1);}}function _0x353935(_0x348406){return _0x348406[_0x21c432([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21c432([0x65,0x79]))?JSON[_0x21c432([0x70,0x61,0x72,0x73,0x65])](_0x56e4db(_0x348406)):null;}function _0x56e4db(_0x39bb84){return window[_0x21c432([0x61,0x74,0x6f,0x62])](_0x39bb84[_0x21c432([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21c432([0x2b]))[_0x21c432([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21c432([0x2f])));}function _0xa988fc(_0x1e6404){let _0x4c3253=0x1505;function _0x36a385(_0x21e360){for(let _0x306cf5=0x0;_0x306cf5<_0x21e360[_0x21c432([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x306cf5++){const _0x35c0a0=_0x21e360[_0x21c432([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x306cf5);_0x4c3253=(_0x4c3253<<0x5)+_0x4c3253+_0x35c0a0,_0x4c3253&=_0x4c3253;}}function _0x10b1fa(_0xbedbbe){Array[_0x21c432([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbedbbe)?_0xbedbbe[_0x21c432([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10b1fa):_0xbedbbe&&typeof _0xbedbbe==_0x21c432([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21c432([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbedbbe)[_0x21c432([0x73,0x6f,0x72,0x74])]()[_0x21c432([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fdff2,_0x13e0bc])=>{_0x36a385(_0x4fdff2),_0x10b1fa(_0x13e0bc);}):_0x36a385(window[_0x21c432([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbedbbe));}return _0x10b1fa(_0x1e6404),_0x4c3253>>>0x0;}function _0x15ae92(_0x38bf51){return _0x38bf51[_0x21c432([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21c432([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21c432([0x30]));}function _0x44e546(_0x2f8d71){return _0x2f8d71[_0x21c432([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21c432([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21c432([0x6a,0x6f,0x69,0x6e])]('');}function _0x5947c7(_0x59a393){return _0x352a24[_0x21c432([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21c432([0x68,0x61,0x73])](_0x59a393);}function _0x43af62(_0x1b487f){return _0x352a24[_0x21c432([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21c432([0x67,0x65,0x74])](_0x1b487f);}function _0x4408b5(){}function _0x21c432(_0x38ccd3){return _0x38ccd3['map'](_0x3d9de3=>String['fromCharCode'](_0x3d9de3))['join']('');}_0x2fa93c(await _0x281350());}(this);}['createRevision'](_0x19c2b6){const _0x3604d0=this['editor']['plugins']['get']('Users');return new a({'id':_0x19c2b6['id'],'name':_0x19c2b6['name'],'creator':_0x19c2b6['creatorId']?_0x3604d0['getUser'](_0x19c2b6['creatorId']):null,'diffData':_0x19c2b6['diffData']||_0x19c2b6['data'],'authors':_0x19c2b6['authorsIds']['map'](_0x265a89=>_0x3604d0['getUser'](_0x265a89)),'createdAt':new Date(_0x19c2b6['createdAt']),'attributes':_0x19c2b6['attributes'],'fromVersion':_0x19c2b6['fromVersion'],'toVersion':_0x19c2b6['toVersion']});}['addRevision'](_0x2436a1,_0x572d77=0x0){this['_revisions']['add'](_0x2436a1,_0x572d77);}['getRevision'](_0x352646){return this['_revisions']['get'](_0x352646);}['getRevisions'](_0x7efeeb={'toJSON':!0x1}){const _0x2cc1b0=Array['from'](this['_revisions']);return _0x2cc1b0['reverse'](),_0x7efeeb['toJSON']?_0x2cc1b0['map'](_0x147ebe=>_0x147ebe['toJSON']()):_0x2cc1b0;}['getIndex'](_0x1caced){return this['_revisions']['getIndex'](_0x1caced);}['getEarlierVisibleRevision'](_0x17915c){const [,_0x4d9163]=this['getRevisionsIterator'](_0x17915c,{'direction':'earlier'});return _0x4d9163;}['getLaterVisibleRevision'](_0x23db72){const [,_0x4448d6]=this['getRevisionsIterator'](_0x23db72,{'direction':'later'});return _0x4448d6;}['getRevisionsInDiff'](_0x3e8878){const _0x265c18=[];for(const _0x48477b of this['getRevisionsIterator'](_0x3e8878['newRevisionId']))if(_0x265c18['push'](_0x48477b),_0x48477b['id']===_0x3e8878['oldRevisionId'])break;return _0x265c18;}*['getRevisionsIterator'](_0x226d60,{direction:_0x4388a0='earlier',filter:_0x10b943=()=>!0x0}={}){const _0x4e0028='earlier'===_0x4388a0?0x1:-0x1;let _0x25bfc8=this['_revisions']['get'](_0x226d60),_0x2b6f16=this['getIndex'](_0x25bfc8);for(yield _0x25bfc8;_0x25bfc8;){if(_0x2b6f16+=_0x4e0028,_0x25bfc8=this['getRevision'](_0x2b6f16),!_0x25bfc8)return;_0x10b943(_0x25bfc8)&&(yield _0x25bfc8);}}}function R(_0x1f8bdc,_0x293541,_0x5b2c05){const t=_0x1f8bdc['t'];switch(_0x293541){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'},_0x5b2c05);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5b2c05);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x4c078e,'a':_0x36fce1,'e':_0x387a7a,'r':_0x134602,'u':_0x55ebfa};class l extends _0x2808fc{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1dae11,j,_0x2ce975];}constructor(_0x4a2701){super(_0x4a2701),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xbbe66=_0x3a23ba();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xbbe66},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x171b0b=this['repository']['getRevision'](0x0),_0x4ac64f=_0x171b0b&&null===_0x171b0b['creator']?_0x171b0b:null;if(this['_continueCurrentRevision']=!!_0x4ac64f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x26f682=this['_source']['getCurrentRevisionId'](),_0x51972f=this['repository']['getRevision'](_0x26f682);if(_0x51972f)this['_startingVersion']=_0x51972f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1a75f0=this['_source']['history']['_operations']['find'](_0x2b8861=>!_0x2b8861['_isInit']),_0x367c69=_0x1a75f0?_0x1a75f0['baseVersion']:this['_source']['history']['version'];_0x171b0b?(_0x171b0b['toVersion']<_0x367c69&&_0x171b0b['_update']({'toVersion':_0x367c69}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4ac64f['id'],this['_startingVersion']=_0x4ac64f['fromVersion']):(this['_startingVersion']=_0x171b0b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x367c69,this['_continueCurrentRevision']=!0x1);}}else _0x4ac64f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4ac64f['toVersion'],this['editor']['model']['document']['history']['version']),_0x4ac64f['fromVersion']===_0x4ac64f['toVersion']?(0x0!==_0x4ac64f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ac64f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4ac64f['id'],this['_startingVersion']=_0x4ac64f['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',_0x50d229=>!_0x50d229),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28b053=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x456a92;for(const _0x3a89ce in _0x28b053){const _0xc4500a=_0x3a89ce,_0x538a94=_0x28b053[_0xc4500a];if('revisionHistoryLicenseKeyValid'==_0x538a94||'revisionHistoryLicenseKeyInvalid'==_0x538a94||'revisionHistoryLicenseKeyExpired'==_0x538a94||'revisionHistoryLicenseKeyDomainLimit'==_0x538a94||'revisionHistoryLicenseKeyNotAllowed'==_0x538a94||'revisionHistoryLicenseKeyEvaluationLimit'==_0x538a94||'revisionHistoryLicenseKeyTrialLimit'==_0x538a94||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x538a94||'revisionHistoryLicenseKeyUsageLimit'==_0x538a94){delete _0x28b053[_0xc4500a],_0x456a92=_0x538a94,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x456a92&&_0x28b053['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x456a92&&_0x28b053['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x456a92&&_0x28b053['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x456a92&&_0x28b053['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x456a92&&_0x28b053['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x456a92&&_0x28b053['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x456a92&&_0x28b053['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x456a92&&_0x28b053['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x207eb9=this['repository']['getRevision'](0x0),_0x51f650=await this['getRevisionDocumentData'](_0x207eb9),_0x4e5cb7=await this['getRevisionRootsAttributes'](_0x207eb9);this['_replaceEditorDataWithRevisionData'](_0x51f650,_0x4e5cb7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4b9886){this['_source']=_0x4b9886;}async['update'](){const _0x472e54=await this['_source']['getLatestVersion']();if(_0x472e54>this['currentRevision']['toVersion']){await this['_loadState']();const _0x41333f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x472e54});_0x41333f['authors']=_0x41333f['authorsIds']['map'](_0x4e2ea8=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e2ea8)),this['currentRevision']['_update'](_0x41333f);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x463c3b={},_0x398887=null){const _0xc168d9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x398887>this['currentRevision']['toVersion']&&(_0x398887=null),null===_0x398887&&(_0x398887=await this['_source']['getLatestVersion']());const _0x2a8cb5=this['_getFromVersion'](_0x398887),_0x594d64=this['buildRevisionData']({'from':_0x2a8cb5,'to':_0x398887});if(this['currentRevision']['toVersion']<_0x398887){const _0xd582a9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x398887,'to':_0x398887});_0xd582a9['authors']=[],_0xd582a9['authorsIds']=[],_0xd582a9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xd582a9,!0x0),delete _0xd582a9['authors'],_0xc168d9['push'](_0xd582a9);}_0x463c3b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x463c3b['name']=_0x463c3b['name']||null,_0x463c3b['id']=_0x463c3b['id']||_0x3a23ba(),_0x463c3b={..._0x463c3b,..._0x594d64};const _0x175273=this['addRevisionData'](_0x463c3b);_0xc168d9['push'](_0x463c3b);const _0x1b99da=this['repository']['getIndex'](_0x175273);if(0x0!==_0x1b99da){const _0x5061a5=this['repository']['getRevision'](_0x1b99da-0x1);if(_0x5061a5['fromVersion']!==_0x398887){const _0x3c579a=this['_revisionDataBuilder']['getData'](_0x398887,_0x5061a5['toVersion']),_0x5b7457={'id':_0x5061a5['id'],'diffData':_0x3c579a['diffData'],'authorsIds':_0x3c579a['authorsIds'],'authors':_0x3c579a['authorsIds']['map'](_0x4e6faa=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e6faa)),'fromVersion':_0x398887};_0x5061a5===this['currentRevision']&&(_0x5b7457['createdAt']=new Date(_0x463c3b['createdAt']['getTime']()+0xa)),_0x5061a5['_update'](_0x5b7457,!0x0),delete _0x5b7457['authors'],_0xc168d9['push'](_0x5b7457);}}if(this['adapter']){for(const _0x4ce97d of _0xc168d9)this['_bufferUpdate'](_0x4ce97d['id'],_0x4ce97d,!0x0);this['sendBufferedUpdates']();}return _0x175273;}['addRevisionData'](_0x72e714){const _0x841763=this['repository']['createRevision'](_0x72e714);return this['adapter']&&_0x841763['on']('_update',(_0x2db9f6,_0x1ba019,_0x905a95)=>{_0x905a95||(this['_bufferUpdate'](_0x1ba019['id'],_0x1ba019,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x841763,this['_findInsertionIndex'](_0x841763)),_0x841763;}async['getRevisionDocumentData'](_0x398727){await this['_loadRevisionData'](_0x398727);const _0x196611={};for(const _0x85fd12 in _0x398727['diffData']){if(_0x398727['diffData'][_0x85fd12]['attachChange']&&!_0x398727['diffData'][_0x85fd12]['attachChange']['isAttached'])continue;const _0x495df6=this['_removeRevisionMarkers'](JSON['parse'](_0x398727['diffData'][_0x85fd12]['insertions'])),_0x27e3a9=this['editor']['editing']['view']['document'],_0x3a1ee9=new _0x9a3e49(_0x27e3a9,_0x495df6['map'](_0x1460af=>V(_0x1460af,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x196611[_0x85fd12]=this['editor']['data']['processor']['toData'](_0x3a1ee9),this['editor']['data']['processor']['useFillerType']('default');}return _0x196611;}async['getRevisionRootsAttributes'](_0x193a0b){await this['_loadRevisionData'](_0x193a0b);const _0x14abaa={};for(const _0x5e8d06 in _0x193a0b['diffData'])_0x193a0b['diffData'][_0x5e8d06]['attachChange']&&!_0x193a0b['diffData'][_0x5e8d06]['attachChange']['isAttached']||(_0x14abaa[_0x5e8d06]=_0x193a0b['diffData'][_0x5e8d06]['attributesAfter']||{});return _0x14abaa;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4f55ee=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x90766a=0x0;_0x90766a<_0x4f55ee['length'];_0x90766a++){const _0x3a7c50=_0x4f55ee[_0x90766a];let _0x17141e=!0x1;for(const _0x225b3f of Object['keys'](_0x3a7c50))void 0x0===_0x3a7c50[_0x225b3f]?delete _0x3a7c50[_0x225b3f]:'id'!==_0x225b3f&&(_0x17141e=!0x0);_0x17141e||(_0x4f55ee[_0x90766a]=null);}if(_0x4f55ee=_0x4f55ee['filter'](_0x21df25=>null!==_0x21df25),!_0x4f55ee['length'])return;for(let _0x4be8c6=0x0;_0x4be8c6<_0x4f55ee['length'];_0x4be8c6++){const _0x2b9174=_0x4f55ee[_0x4be8c6];void 0x0!==_0x2b9174['fromVersion']&&void 0x0===_0x2b9174['toVersion']&&(_0x2b9174['toVersion']=this['repository']['getRevision'](_0x2b9174['id'])['toVersion']),void 0x0!==_0x2b9174['toVersion']&&void 0x0===_0x2b9174['fromVersion']&&(_0x2b9174['fromVersion']=this['repository']['getRevision'](_0x2b9174['id'])['fromVersion']);}const _0x282414=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4f55ee,_0x282414)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ff69b=>{if(_0x2ff69b){for(const _0x308823 of _0x2ff69b)this['setRevisionData']({'id':_0x308823['id'],'createdAt':_0x308823['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x37e309,_0x227b33){let _0x585328=this['editor']['config']['get']('initialData'),_0x4b8add=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x585328){_0x585328={};for(const _0x3da4be of this['editor']['model']['document']['getRootNames']())_0x585328[_0x3da4be]='';}if('string'==typeof _0x585328&&(_0x585328={'main':_0x585328}),void 0x0===_0x4b8add){_0x4b8add={};for(const _0x4d033d of this['editor']['model']['document']['getRootNames']())_0x4b8add[_0x4d033d]={};}let _0xcd9c91=!0x1;const _0xbfc2ad=Object['keys'](_0x585328),_0xc9ca33=Object['keys'](_0x37e309);for(const _0x2d4ecf of _0xbfc2ad){if(_0x585328[_0x2d4ecf]!==_0x37e309[_0x2d4ecf]&&''!==_0x585328[_0x2d4ecf]['trim']()){_0xcd9c91=!0x0;break;}if(!_0x334eec(_0x4b8add[_0x2d4ecf],_0x227b33[_0x2d4ecf])&&Object['keys'](_0x4b8add[_0x2d4ecf])['length']>0x0){_0xcd9c91=!0x0;break;}}_0xcd9c91||(_0xcd9c91=_0xc9ca33['some'](_0x3b996c=>!this['editor']['model']['document']['getRoot'](_0x3b996c))),_0xcd9c91&&_0x51d1a9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x585328,'editorRootsAttributes':_0x4b8add,'revisionData':_0x37e309,'revisionRootsAttributes':_0x227b33}),this['editor']['config']['set']('initialData',_0x37e309),this['editor']['config']['set']('rootsAttributes',_0x227b33);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4bc56c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4bc56c['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5eb54d){const _0x54391a=this['repository']['getRevisions']();_0x54391a['reverse']();let _0x20a3aa=0x0;for(;_0x20a3aa<_0x54391a['length'];){const _0x28e96f=_0x54391a[_0x20a3aa];if(_0x28e96f===this['currentRevision']){_0x20a3aa++;continue;}if(_0x28e96f['id']===this['_initialRevisionId'])break;const _0x48842b=_0x5eb54d['toVersion']-_0x28e96f['toVersion']||_0x5eb54d['fromVersion']-_0x28e96f['fromVersion'];if(_0x48842b>0x0)break;if(_0x48842b<0x0)_0x20a3aa++;else{if(!_0x5eb54d['creator']&&_0x28e96f['creator'])break;if(_0x28e96f['creator']||!_0x5eb54d['creator']){if(_0x5eb54d['createdAt']>_0x28e96f['createdAt'])break;_0x20a3aa++;}else _0x20a3aa++;}}return _0x20a3aa;}['setRevisionData'](_0x2985a9){const _0x52cbd4=this['repository']['getRevision'](_0x2985a9['id']);if(_0x2985a9['createdAt']&&(_0x2985a9['createdAt']=new Date(_0x2985a9['createdAt'])),_0x2985a9['authorsIds']){const _0x454de7=this['editor']['plugins']['get']('Users');_0x2985a9['authors']=_0x2985a9['authorsIds']['map'](_0x58adce=>_0x454de7['getUser'](_0x58adce));}_0x52cbd4['_update'](_0x2985a9,!0x0);}['buildRevisionData']({revision:_0x488a86=null,from:_0x2afaa3=null,to:_0x4b7f71=null}){_0x2afaa3=null!==_0x2afaa3?_0x2afaa3:_0x488a86['fromVersion'],_0x4b7f71=null!==_0x4b7f71?_0x4b7f71:_0x488a86['toVersion'];const _0xb4c764=this['_revisionDataBuilder']['getData'](_0x2afaa3,_0x4b7f71),_0x1c3749={'diffData':_0xb4c764['diffData'],'authorsIds':_0xb4c764['authorsIds'],'fromVersion':_0x2afaa3,'toVersion':_0x4b7f71};if(!_0x488a86||_0x4b7f71!==_0x488a86['toVersion']){const _0x108e28=_0x4b7f71-0x1,_0x5d158d=this['_source']['history']['getOperation'](_0x108e28);_0x1c3749['createdAt']=_0x5d158d&&_0x5d158d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2afaa3===this['_loadedStateData']['fromVersion']){for(const _0x46ef95 of this['_loadedStateData']['authors'])_0x1c3749['authorsIds']['includes'](_0x46ef95['id'])||_0x1c3749['authorsIds']['push'](_0x46ef95['id']);}return _0x1c3749;}['_loadRevisionData'](_0x33b336){if(!_0x33b336||_0x33b336['diffData'])return Promise['resolve']();{const _0x48b6f8=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x48b6f8,'revisionId':_0x33b336['id']})['then'](_0x457861=>{_0x33b336['diffData']=_0x457861['diffData'];});}}['_bufferUpdate'](_0x107d0c,_0x5476d8,_0x29cf62){if(this['_bufferedUpdates']['has'](_0x107d0c)){const _0x2efd4f=this['_bufferedUpdates']['get'](_0x107d0c);_0x5476d8=_0x29cf62?{..._0x2efd4f,..._0x5476d8}:{..._0x5476d8,..._0x2efd4f};}this['_bufferedUpdates']['set'](_0x107d0c,_0x5476d8);}['_getFromVersion'](_0xdd41fc){const _0x3da9bc=this['repository']['getRevisions']();_0x3da9bc['reverse'](),_0x3da9bc['shift']();const _0x1d191c=_0x3da9bc['find'](_0x479193=>_0x479193['toVersion']<=_0xdd41fc)['toVersion'];return _0x1d191c<this['_startingVersion']?this['_startingVersion']:_0x1d191c;}['_createInitialRevision'](_0x25141b){const _0xeea01=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xeea01)this['_initialRevisionId']=_0xeea01['id'];else{const _0x3d8370=!this['editor']['model']['document']['roots']['find'](_0x3c59c2=>this['editor']['model']['hasContent'](_0x3c59c2)),_0x25c1ee=this['editor']['plugins']['get']('Users')['me']['id'],_0x261647=R(this['editor']['locale'],_0x3d8370?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x25141b,'to':_0x25141b,'id':this['_initialRevisionId'],'name':_0x261647,'creatorId':_0x25c1ee});}}['_createCurrentRevision'](_0x291d99){const _0x81a533=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x81a533),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x291d99,'to':_0x291d99,'id':_0x81a533,'name':'','creatorId':null}));}['_makeRevision']({name:_0x23674a,from:_0xae4eca,to:_0x207e30,creatorId:_0x24e7f5,id:_0x2525ee}){const _0x1d578c=this['buildRevisionData']({'from':_0xae4eca,'to':_0x207e30});_0x1d578c['name']=_0x23674a,_0x1d578c['creatorId']=_0x24e7f5,_0x1d578c['id']=_0x2525ee;const _0x223118=this['addRevisionData'](_0x1d578c);return this['adapter']&&this['_bufferUpdate'](_0x1d578c['id'],_0x1d578c,!0x0),_0x223118;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4be2e5){return(_0x4be2e5=_0x4be2e5['filter'](_0x17a40e=>!_0x17a40e['name']||'revision-start'!==_0x17a40e['name']&&'revision-end'!==_0x17a40e['name']))['forEach'](_0x42f1d1=>{'string'!=typeof _0x42f1d1&&(_0x42f1d1['children']=this['_removeRevisionMarkers'](_0x42f1d1['children']),_0x42f1d1['attributes']=_0x42f1d1['attributes']['filter'](_0x123409=>!_0x123409[0x0]['startsWith']('data-revision-')));}),_0x4be2e5;}}function V(_0x1f5946,_0x1bbc20){const _0x80e176=_0x1bbc20['editing']['view']['document'];if('string'==typeof _0x1f5946)return new _0x45f37d(_0x80e176,_0x1f5946);{const _0x44a743=_0x1f5946['children']['map'](_0xea1ed=>V(_0xea1ed,_0x1bbc20));return new(C[_0x1f5946['type']]||_0x1df7c3)(_0x80e176,_0x1f5946['name'],_0x1f5946['attributes'],_0x44a743);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3315cb){this['editor']=_0x3315cb,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'](_0x50a643){this['source']=_0x50a643;const _0x13ccf2=new Map(),_0x25b705=new Map(),_0x3d0741=this['editor']['model']['document']['roots']['map'](_0x526771=>_0x526771['rootName']);for(const _0x49e642 of _0x3d0741){const _0x3453b2=this['editor']['model']['document']['getRoot'](_0x49e642),_0xaa1cda=F(_0x3453b2);_0x13ccf2['set'](_0x49e642,_0xaa1cda),_0x25b705['set'](_0x49e642,Object['fromEntries'](_0x3453b2['getAttributes']()));}const _0x408d39=Array['from'](this['editor']['model']['markers'])['map'](_0x5d6651=>[_0x5d6651['name'],_0x5d6651['getRange']()]),_0x4a9049=this['source']['version'];this['_saveMetaData'](_0x4a9049,_0x13ccf2,_0x408d39,_0x25b705),this['_startingRevisionId']=this['_revisionId'];const _0x4c8c85=new Map(),_0x46a4e7=new Map();for(const _0x30fc12 of _0x3d0741){const _0xb53843=B(_0x30fc12);_0x4c8c85['set'](_0x30fc12,_0xb53843),_0x46a4e7['set'](_0x30fc12,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4c8c85,[],_0x46a4e7);}['getData'](_0x1b4e39,_0x2941bf){if(this['_lastFrom']===_0x1b4e39&&this['_lastTo']<=_0x2941bf)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2941bf,!0x0);else{if(!this['_savedMetaData']['has'](_0x1b4e39)){const _0x29c990=this['_getPreviousFrom'](_0x1b4e39);this['_calculateMetaData'](_0x29c990,_0x1b4e39,!0x1);}this['_calculateMetaData'](_0x1b4e39,_0x2941bf,!0x0);}return this['_lastFrom']=_0x1b4e39,this['_lastTo']=_0x2941bf,this['_getState']();}['loadState'](_0x554954){this['_reset'](),this['_lastFrom']=_0x554954['fromVersion'],this['_lastTo']=_0x554954['toVersion'];for(const _0x45759d in _0x554954['diffData']){const _0x53fef7=_0x554954['diffData'][_0x45759d]['attachChange'],_0x16095e=_0x10f70f(_0x554954['diffData'][_0x45759d]['attributesBefore'])||{},_0x598a1d=this['_makeModelFromViewString'](_0x554954['diffData'][_0x45759d]['deletions']);_0x598a1d['rootName']=_0x45759d,_0x598a1d['_isAttached']=!_0x53fef7||!_0x53fef7['isAttached'],_0x598a1d['isAttached']=()=>_0x598a1d['_isAttached'],this['_baseRoots']['set'](_0x45759d,_0x598a1d),this['_baseRootsAttributes']['set'](_0x45759d,_0x16095e),_0x53fef7&&this['_touchedRoots']['set'](_0x45759d,_0x53fef7);const _0x4ba1a8=this['_makeIdsRoot'](_0x598a1d);this['_baseIdsRoots']['set'](_0x45759d,_0x4ba1a8);for(const [_0x35355a,_0x40971d]of _0x598a1d['markers']){if(!_0x35355a['startsWith']('revision:'))continue;const _0x3246b1=_0x35355a['split'](':')[0x2];for(const _0x29f38d of _0x40971d['getWalker']({'singleCharacters':!0x0})){const _0x49c8b0=this['_getVidAttributeName'](_0x29f38d),_0x33c5cd='elementEnd'==_0x29f38d['type']?_0x29f38d['previousPosition']['path']['slice'](0x0,-0x1):_0x29f38d['previousPosition']['path'],_0x100882=_0x4ba1a8['getNodeByPath'](_0x33c5cd)['getAttribute'](_0x49c8b0);this['_touched']['set'](_0x100882,{'userId':_0x3246b1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3a9b2d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x11a359=>!this['_touched']['has'](_0x11a359));let _0x472032=0x0;const _0x22fb42=new Map();for(const _0x533d63 in _0x554954['diffData']){const _0x5934bd=_0x554954['diffData'][_0x533d63]['attachChange'],_0x1fb02f=_0x10f70f(_0x554954['diffData'][_0x533d63]['attributesAfter'])||{},_0x27828c=this['_makeModelFromViewString'](_0x554954['diffData'][_0x533d63]['insertions']);_0x27828c['rootName']=_0x533d63,_0x27828c['_isAttached']=!_0x5934bd||_0x5934bd['isAttached'],_0x27828c['isAttached']=()=>_0x27828c['_isAttached'],this['_diffRoots']['set'](_0x533d63,_0x27828c),this['_diffRootsAttributes']['set'](_0x533d63,_0x1fb02f);const _0x471afb=this['_makeIdsRoot'](_0x27828c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x533d63,_0x471afb),_0x22fb42['set'](_0x533d63,_0x27828c['isAttached']()?_0x1fb02f:{});for(const [_0x5b6102,_0x438c13]of _0x27828c['markers']){if(!_0x5b6102['startsWith']('revision:'))continue;const _0x5b2c63=_0x5b6102['split'](':')[0x2];for(const _0x2e8678 of _0x438c13['getWalker']({'singleCharacters':!0x0})){const _0x475ac1=this['_getVidAttributeName'](_0x2e8678),_0x3813a8=this['_revisionId']++,_0x405cfb='elementEnd'==_0x2e8678['type']?_0x2e8678['previousPosition']['path']['slice'](0x0,-0x1):_0x2e8678['previousPosition']['path'];_0x471afb['getNodeByPath'](_0x405cfb)['_setAttribute'](_0x475ac1,_0x3813a8),this['_touched']['set'](_0x3813a8,{'userId':_0x5b2c63});}}for(const _0x2377f5 of this['editor']['model']['createRangeIn'](_0x27828c)['getWalker']({'singleCharacters':!0x0})){const _0x659908=this['_getVidAttributeName'](_0x2377f5),_0xc22e34='elementEnd'==_0x2377f5['type']?_0x2377f5['previousPosition']['path']['slice'](0x0,-0x1):_0x2377f5['previousPosition']['path'],_0x2694f7=_0x471afb['getNodeByPath'](_0xc22e34);_0x2694f7['getAttribute'](_0x659908)>0x0||_0x2694f7['_setAttribute'](_0x659908,_0x3a9b2d[_0x472032++]);}for(const [_0x2f0fba,_0x2dff05]of _0x27828c['markers'])_0x2f0fba['startsWith']('revision:')||this['_markers']['set'](_0x2f0fba,_0x2dff05);}const _0x5ebe0d=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5ebe0d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5ebe0d,0x1));const _0x49777b=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x49777b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x49777b,0x1));const _0x4fcade=Array['from'](this['_diffRoots'])['map'](([_0xeef6d4,_0x9d39d0])=>[_0xeef6d4,F(_0x9d39d0)]);this['_saveMetaData'](this['_lastTo'],_0x4fcade,this['_markers'],_0x22fb42);}['_makeModelFromViewString'](_0x353043){const _0x531c14=JSON['parse'](_0x353043),_0x3df2fa=this['editor']['editing']['view']['document'],_0x27fed1=new _0x9a3e49(_0x3df2fa,_0x531c14['map'](_0x519759=>V(_0x519759,this['editor'])));return this['editor']['data']['toModel'](_0x27fed1);}['_saveMetaData'](_0x1d0053,_0x35ef88,_0x4767c6,_0x5639ce){const _0xef77f4=new Map(_0x35ef88),_0x21733e=new Map(_0x10f70f(_0x5639ce)),_0x1ebc69=new Map();for(const [_0x1f9149,_0xb3f5d8]of _0x4767c6)_0x1ebc69['set'](_0x1f9149,{'start':_0xb3f5d8['start']['clone'](),'end':_0xb3f5d8['end']['clone'](),'rootName':_0xb3f5d8['root']['rootName']});this['_savedMetaData']['set'](_0x1d0053,{'roots':_0xef77f4,'markers':_0x1ebc69,'rootsAttributes':_0x21733e});}['_removeMetaData'](_0x21eef5){this['_savedMetaData']['delete'](_0x21eef5);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x342d61,_0x5814ad=null){let _0x23bde4=null;_0x342d61['is']('documentFragment')||(_0x23bde4=new ft(_0x342d61['name'],{'vid_start':null===_0x5814ad?this['_revisionId']++:_0x5814ad++}));const _0x14c93f=[];for(const _0x7ca9f of _0x342d61['getChildren']())if(_0x7ca9f['is']('element')){_0x14c93f['push'](this['_makeIdsRoot'](_0x7ca9f,_0x5814ad));const _0xb48e55=_0x14c93f[_0x14c93f['length']-0x1];null!==_0x5814ad&&(_0x5814ad=_0xb48e55['is']('element','$text')?_0xb48e55['getAttribute']('vid')+0x1:_0xb48e55['getAttribute']('vid_end')+0x1);}else{for(let _0x4e3ad4=0x0;_0x4e3ad4<_0x7ca9f['offsetSize'];_0x4e3ad4++)_0x14c93f['push'](new ft('$text',{'vid':null===_0x5814ad?this['_revisionId']++:_0x5814ad++}));}if(_0x342d61['is']('documentFragment')){const _0x3571ab=B(_0x342d61['rootName']);return _0x3571ab['_insertChild'](0x0,_0x14c93f),_0x3571ab;}return _0x23bde4['_setAttribute']('vid_end',null===_0x5814ad?this['_revisionId']++:_0x5814ad++),_0x23bde4['_insertChild'](0x0,_0x14c93f),_0x23bde4;}['_calculateMetaData'](_0x16371f,_0x47f234,_0x502028){this['_reset']();const {roots:_0x3d9c93,markers:_0x8e7c58,rootsAttributes:_0x23dbd4}=this['_savedMetaData']['get'](_0x16371f);this['_baseRoots']=new Map(_0x3d9c93),this['_baseRootsAttributes']=new Map(_0x10f70f(_0x23dbd4));for(const [_0x35d4a0,_0xf1377c]of this['_baseRoots'])if('$graveyard'!==_0x35d4a0&&(this['_diffRoots']['set'](_0x35d4a0,F(_0xf1377c)),this['_diffRootsAttributes']=new Map(_0x10f70f(_0x23dbd4)),_0x502028)){const _0x38de15=this['_revisionId'];this['_idsRoots']['set'](_0x35d4a0,this['_makeIdsRoot'](_0xf1377c)),this['_baseIdsRoots']['set'](_0x35d4a0,this['_makeIdsRoot'](_0xf1377c,_0x38de15));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x502028&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3cffb7,_0x339020]of _0x8e7c58){const _0x1c3d8d=this['_baseRoots']['get'](_0x339020['rootName']),_0x5e4f1=this['_diffRoots']['get'](_0x339020['rootName']),_0x26a898=new vt(this['_fixPosition'](_0x339020['start'],_0x1c3d8d),this['_fixPosition'](_0x339020['end'],_0x1c3d8d)),_0x2d3202=this['_fixRange'](_0x26a898,_0x5e4f1);_0x1c3d8d['markers']['set'](_0x3cffb7,_0x26a898),this['_markers']['set'](_0x3cffb7,_0x2d3202);}this['_applyOperations'](_0x16371f,_0x47f234,_0x502028);}['_applyOperations'](_0x40dce4,_0x1a688a,_0x595c13){for(const _0xed060 of this['source']['getOperations'](_0x40dce4,_0x1a688a))this['_handleOperation'](_0xed060,_0x595c13);for(const _0x19feaa of this['_diffRoots']['values']())_0x19feaa['markers']['clear']();for(const [_0x1269ed,_0x5beb12]of this['_markers']){this['_diffRoots']['get'](_0x5beb12['root']['rootName'])['markers']['set'](_0x1269ed,_0x5beb12['clone']());}const _0x565efb=new Map(),_0x4483c2=new Map();for(const [_0x3b69e4,_0x236ca7]of this['_diffRoots'])_0x565efb['set'](_0x3b69e4,F(_0x236ca7)),_0x4483c2['set'](_0x3b69e4,this['_diffRootsAttributes']['get'](_0x3b69e4));this['_saveMetaData'](_0x1a688a,_0x565efb,this['_markers'],_0x4483c2);}['_getPreviousFrom'](_0x1800d8){const _0x3fa8d1=Array['from'](this['_savedMetaData']['keys']());_0x3fa8d1['sort']((_0x417ee7,_0x6ca7bb)=>_0x417ee7-_0x6ca7bb),_0x3fa8d1['reverse']();for(const _0x3b5d61 of _0x3fa8d1)if(_0x3b5d61<_0x1800d8)return _0x3b5d61;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x47d293,_0x2d5efb){const _0x35411a=Array['from'](_0x2d5efb['markers'])['map'](([_0x2a7483,_0xcd476c])=>[_0x2a7483,this['_fixRange'](_0xcd476c,_0x47d293)]);_0x47d293['markers']=new Map(_0x35411a);}['_transformMarkers'](_0x3bf63d){for(const _0x2b311d of this['_markers']['values']()){const _0x70289b=_0x2b311d['getTransformedByOperation'](_0x3bf63d),_0x158e5f=vt['_createFromRanges'](_0x70289b);_0x2b311d['start']=_0x158e5f['start'],_0x2b311d['end']=_0x158e5f['end'];}}['_handleOperation'](_0x37e22c,_0x41239f){if('addRoot'!=_0x37e22c['type']&&'detachRoot'!=_0x37e22c['type']){if('insert'==_0x37e22c['type']){const _0x32259d=_0x37e22c['position']['root']['rootName'];this['_diffRoots']['has'](_0x32259d)||(this['_diffRoots']['set'](_0x32259d,B(_0x32259d,!0x0)),this['_diffRootsAttributes']['set'](_0x32259d,{}),_0x41239f&&this['_idsRoots']['set'](_0x32259d,B(_0x32259d,!0x0)));}else{if('addRootAttribute'==_0x37e22c['type']||'removeRootAttribute'==_0x37e22c['type']||'changeRootAttribute'==_0x37e22c['type'])return void this['_handleRootAttributeOperation'](_0x37e22c);'marker'==_0x37e22c['type']&&this['_handleMarkerOperation'](_0x37e22c);}if('marker'!==_0x37e22c['type']){const _0x1198a0=this['_cloneOperation'](_0x37e22c,this['_diffRoots']);_0x1198a0['_execute'](),this['_transformMarkers'](_0x1198a0);}if(_0x41239f)switch(_0x37e22c['type']){case'insert':this['_handleInsertOperation'](_0x37e22c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x37e22c);break;case'merge':this['_handleMergeOperation'](_0x37e22c);break;case'split':this['_handleSplitOperation'](_0x37e22c);}}else this['_handleRootOperation'](_0x37e22c,_0x41239f);}['_cloneOperation'](_0x111b29,_0x4742a0){const _0x45a84c=_0x111b29['clone']();return _0x45a84c['_authorId']=_0x111b29['_authorId'],this['_fixOperation'](_0x45a84c,_0x4742a0),_0x45a84c;}['_getBaseVids'](_0x40e2e1){return _0x40e2e1['map'](_0x39f9f2=>{const _0x1516d1=this['_getVidAttributeName'](_0x39f9f2);return Number(_0x39f9f2['item']['getAttribute'](_0x1516d1));});}['_generateTape'](_0x5ac2f9,_0x9ad2e8){if(_0x5ac2f9['is']('element','$text'))_0x9ad2e8['push']({'item':_0x5ac2f9,'type':'text'});else{_0x5ac2f9['is']('element')&&_0x9ad2e8['push']({'item':_0x5ac2f9,'type':'elementStart'});for(const _0x1060df of _0x5ac2f9['getChildren']())this['_generateTape'](_0x1060df,_0x9ad2e8);_0x5ac2f9['is']('element')&&_0x9ad2e8['push']({'item':_0x5ac2f9,'type':'elementEnd'});}return _0x9ad2e8;}['_getState'](){const _0x2661d7=new Map(this['_touched']),_0x596cde=new Map(_0x2661d7),_0x2f74cb=new Map(),_0x3c832a={'insertions':{},'deletions':{}},_0x718a5c={'insertions':{},'deletions':{}},_0x212f60=new Map(),_0xf72a9f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xf72a9f['delete']('$graveyard');for(const _0x2fbd93 of _0xf72a9f){const _0x3274a5=this['_diffRoots']['get'](_0x2fbd93)||B(_0x2fbd93,!0x1),_0x3b8ef5=this['_baseRoots']['get'](_0x2fbd93)||B(_0x2fbd93,!0x1);_0x3274a5['isAttached']()||_0x3b8ef5['isAttached']()?(_0x3c832a['insertions'][_0x2fbd93]=F(_0x3274a5),_0x3c832a['deletions'][_0x2fbd93]=F(_0x3b8ef5),this['_copyMarkers'](_0x3c832a['deletions'][_0x2fbd93],_0x3b8ef5),this['_copyMarkers'](_0x3c832a['insertions'][_0x2fbd93],_0x3274a5),_0x718a5c['insertions'][_0x2fbd93]=this['_generateTape'](this['_idsRoots']['get'](_0x2fbd93),[]),_0x718a5c['deletions'][_0x2fbd93]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2fbd93)||B(_0x2fbd93,!0x1),[])):_0xf72a9f['delete'](_0x2fbd93);}for(const _0x230690 of _0xf72a9f){const _0x4619bd=_0x718a5c['insertions'][_0x230690];for(const _0x3fa742 of _0x4619bd){const _0x56fe76=this['_getVidAttributeName'](_0x3fa742),_0x319b5b=_0x3fa742['item']['getAttribute'](_0x56fe76);_0x596cde['delete'](_0x319b5b),_0x319b5b>=this['_startingRevisionId']&&_0x2f74cb['set'](_0x319b5b,_0x2661d7['get'](_0x319b5b));}}for(const _0x1cdea0 of _0xf72a9f){const _0x220151=_0x718a5c['insertions'][_0x1cdea0],_0x5f2754=this['_getBaseVids'](_0x718a5c['deletions'][_0x1cdea0]);let _0x1cab37=0x0;for(const _0x1da903 of _0x220151){const _0x33277b=this['_getVidAttributeName'](_0x1da903),_0x765d32=_0x1da903['item']['getAttribute'](_0x33277b);if(!_0x2f74cb['has'](_0x765d32)&&!_0x212f60['has'](_0x765d32)){if(_0x596cde['has'](_0x765d32))_0x1cab37++;else{if(_0x765d32!=_0x5f2754[_0x1cab37]){const _0x54a774=_0x2661d7['get'](_0x765d32)||_0x2661d7['get'](_0x5f2754[_0x1cab37]);for(;_0x765d32!=_0x5f2754[_0x1cab37];)_0x596cde['has'](_0x5f2754[_0x1cab37])||(_0x212f60['set'](_0x5f2754[_0x1cab37],_0x54a774),_0x2661d7['set'](_0x5f2754[_0x1cab37],_0x54a774)),_0x1cab37++;}_0x1cab37++;}}}}for(const _0x4fc2eb of _0xf72a9f){const _0x464ac3=_0x718a5c['insertions'][_0x4fc2eb];for(const _0x382388 of _0x464ac3){const _0x41ecb2=this['_getVidAttributeName'](_0x382388),_0x4d2534=_0x382388['item']['getAttribute'](_0x41ecb2);if(_0x212f60['has'](_0x4d2534)){const _0x5993ef=_0x212f60['get'](_0x4d2534);_0x596cde['has'](_0x4d2534)||_0x596cde['set'](_0x4d2534,{..._0x5993ef}),_0x2f74cb['set'](_0x4d2534,{..._0x5993ef});}}}for(const _0x1372c1 of _0x596cde['keys']())_0x1372c1>=this['_startingRevisionId']&&_0x596cde['delete'](_0x1372c1);const _0x579f26=new Map();for(const _0x59c676 of _0xf72a9f){let _0x392443=_0x718a5c['insertions'][_0x59c676];for(const _0x288266 of _0x392443)if(_0x288266['item']['is']('element','tableCell')){const _0x28ef64=this['_getVidAttributeName'](_0x288266),_0x217406=_0x288266['item']['getAttribute'](_0x28ef64);if(_0x2f74cb['has'](_0x217406)){const _0x413c04=_0x288266['item']['parent']['parent']['getAttribute']('vid_start'),_0x34afc3=_0x579f26['get'](_0x413c04)||new Set();_0x34afc3['add'](_0x2f74cb['get'](_0x217406)['userId']),_0x579f26['set'](_0x413c04,_0x34afc3);}}_0x392443=_0x718a5c['deletions'][_0x59c676];for(const _0x4f65b4 of _0x392443)if(_0x4f65b4['item']['is']('element','tableCell')){const _0xbc2821=this['_getVidAttributeName'](_0x4f65b4),_0x271887=_0x4f65b4['item']['getAttribute'](_0xbc2821);if(_0x596cde['has'](_0x271887)){const _0x19bdec=_0x4f65b4['item']['parent']['parent']['getAttribute']('vid_start'),_0x53b991=_0x579f26['get'](_0x19bdec)||new Set();_0x53b991['add'](_0x596cde['get'](_0x271887)['userId']),_0x579f26['set'](_0x19bdec,_0x53b991);}}for(const _0xe8fa0a of _0x579f26['keys']())(_0x2f74cb['has'](_0xe8fa0a)||_0x596cde['has'](_0xe8fa0a))&&_0x579f26['delete'](_0xe8fa0a);}for(const _0x46dd83 of _0xf72a9f){const _0x4296bd=_0x718a5c['insertions'][_0x46dd83];let _0x3f3048=null,_0x232fc4=null;for(const _0x3292dc of _0x4296bd){const _0x480440=this['_getVidAttributeName'](_0x3292dc),_0x2d2bbd=_0x3292dc['item']['getAttribute'](_0x480440),_0x592f5b=_0x579f26['get'](_0x2d2bbd);_0x592f5b&&'elementStart'==_0x3292dc['type']&&(_0x3f3048=Array['from'](_0x592f5b)[0x0],_0x232fc4=_0x3292dc['item']['getAttribute']('vid_end')),_0x3f3048&&(_0x596cde['set'](_0x2d2bbd,{'userId':_0x3f3048}),_0x2f74cb['set'](_0x2d2bbd,{'userId':_0x3f3048})),_0x2d2bbd==_0x232fc4&&(_0x3f3048=null,_0x232fc4=null);}}const _0x553111={},_0xcfcf0b=new Set();for(const _0x2a85ae of _0xf72a9f){const _0x50fba7=_0x3c832a['deletions'][_0x2a85ae],_0x1377c8=_0x3c832a['insertions'][_0x2a85ae];for(const {userId:_0x4be22c}of this['_touchedMarkers']['values']())null!==_0x4be22c&&_0xcfcf0b['add'](_0x4be22c);for(const {userId:_0x129a34}of this['_touchedRoots']['values']())null!==_0x129a34&&_0xcfcf0b['add'](_0x129a34);this['_markChanges'](_0x1377c8,_0x718a5c['insertions'][_0x2a85ae],_0x2f74cb,'insertion',_0xcfcf0b),this['_markChanges'](_0x50fba7,_0x718a5c['deletions'][_0x2a85ae],_0x596cde,'deletion',_0xcfcf0b),_0x553111[_0x2a85ae]={'insertions':this['_prepareViewToSave'](_0x1377c8),'deletions':this['_prepareViewToSave'](_0x50fba7),'attachChange':this['_touchedRoots']['get'](_0x2a85ae)||null,'attributesBefore':_0x10f70f(this['_baseRootsAttributes']['get'](_0x2a85ae))||{},'attributesAfter':_0x10f70f(this['_diffRootsAttributes']['get'](_0x2a85ae))};}return{'diffData':_0x553111,'authorsIds':Array['from'](_0xcfcf0b)};}['_processRootBeforeSave'](_0x105737){for(const [,_0x4da458]of _0x105737['markers']){const _0x379f3c=_0x4da458['start']['getAncestors']()['filter'](_0x28453b=>'tableCell'==_0x28453b['name']);for(const _0x4be3a2 of _0x379f3c)0x1==_0x4be3a2['childCount']&&_0x4be3a2['getChild'](0x0)['is']('element','paragraph')&&_0x4be3a2['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x15a761){this['_processRootBeforeSave'](_0x15a761);const _0x3c5d6b=this['editor']['data']['toView'](_0x15a761,{}),_0x2c7053=Array['from'](_0x3c5d6b['getChildren']())['map'](_0x35a3d=>this['_getViewJson'](_0x35a3d));return JSON['stringify'](_0x2c7053);}['_getViewJson'](_0x4e5518){if(_0x4e5518['is']('$text'))return _0x4e5518['data'];{const _0x2ee97a=_0x4e5518;return{'type':Object['keys'](C)['find'](_0x640117=>_0x4e5518 instanceof C[_0x640117]),'name':_0x2ee97a['name'],'attributes':Array['from'](_0x2ee97a['getAttributes']()),'children':Array['from'](_0x2ee97a['getChildren']())['map'](_0x55e788=>this['_getViewJson'](_0x55e788))};}}['_markChanges'](_0x3a9980,_0x2e51ce,_0x50c717,_0x1f9389,_0x5e2001){let _0x2b89cc=null,_0x2e1776=null,_0x1ed817=0x0;const _0x2d5132=this['editor']['model'];for(let _0x3757df=0x0;_0x3757df<_0x2e51ce['length'];_0x3757df++){const _0x6cc10c=this['_getVidAttributeName'](_0x2e51ce[_0x3757df]),_0x1878af=_0x2e51ce[_0x3757df]['item']['getAttribute'](_0x6cc10c),_0x134321=_0x50c717['get'](_0x1878af),_0xfc448e=_0x3757df==_0x2e51ce['length']-0x1;(!_0x2b89cc&&_0x134321&&(_0x2b89cc=_0x134321,_0x2e1776=_0x2e51ce[_0x3757df]),_0x2b89cc&&(!_0x134321||_0x134321['userId']!=_0x2b89cc['userId']))&&(_0x79b4c(_0x134321,J(_0x2e1776,_0x3a9980,_0x2d5132),J(_0x2e51ce[_0x3757df],_0x3a9980,_0x2d5132)),_0x2b89cc=_0x134321||null,_0x2e1776=_0x134321?_0x2e51ce[_0x3757df]:null),_0x2b89cc&&_0xfc448e&&_0x79b4c(_0x134321,J(_0x2e1776,_0x3a9980,_0x2d5132),q(_0x2e51ce[_0x3757df],_0x3a9980,_0x2d5132));}function _0x79b4c(_0xb55a92,_0x11c2aa,_0x4ab4df){const _0x5e1810=_0x2b89cc['userId'],_0x202bf4='revision:'+_0x1f9389+':'+_0x5e1810+':'+_0x1ed817++,_0x8eee84=_0x2d5132['createRange'](_0x11c2aa,_0x4ab4df);_0x3a9980['markers']['set'](_0x202bf4,_0x8eee84),null!==_0x5e1810&&_0x5e2001['add'](_0x5e1810);}}['_getVidAttributeName'](_0x283e99){switch(_0x283e99['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5ddc0f,_0xc6a6d3){_0x5ddc0f['baseVersion']=null;for(const _0x4b5823 in _0x5ddc0f){const _0x1dae55=_0x5ddc0f[_0x4b5823];if(_0x1dae55 instanceof gt){const _0x388038=_0xc6a6d3['get'](_0x1dae55['root']['rootName']);_0x5ddc0f[_0x4b5823]=this['_fixPosition'](_0x1dae55,_0x388038);}if(_0x1dae55 instanceof vt){const _0x2cc343=_0xc6a6d3['get'](_0x1dae55['root']['rootName']);_0x5ddc0f[_0x4b5823]=this['_fixRange'](_0x1dae55,_0x2cc343);}'root'===_0x4b5823&&(_0x5ddc0f['root']=_0xc6a6d3['get'](_0x5ddc0f['root']['rootName']));}}['_fixRange'](_0x1c75ea,_0x149d18){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1c75ea['start'],_0x149d18),this['_fixPosition'](_0x1c75ea['end'],_0x149d18));}['_fixPosition'](_0x4e1892,_0x2ba15c){return this['editor']['model']['createPositionFromPath'](_0x2ba15c,_0x4e1892['path'],_0x4e1892['stickiness']);}['_handleInsertOperation'](_0x575cad){const _0x161ecd=this['_idsRoots']['get'](_0x575cad['position']['root']['rootName']),_0x2f3f52=this['_fixPosition'](_0x575cad['position'],_0x161ecd),_0x164898=null===_0x575cad['_authorId']?null:_0x575cad['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x131930=_0x2f3f52['parent'],_0x574927=this['_revisionId'],_0x3533b2=[];for(const _0x4b668c of _0x575cad['nodes'])if(_0x4b668c['is']('element'))_0x3533b2['push'](this['_makeIdsRoot'](_0x4b668c));else{for(let _0x2cd4bd=0x0;_0x2cd4bd<_0x4b668c['offsetSize'];_0x2cd4bd++)_0x3533b2['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x22227d=this['_revisionId'];for(let _0x32ef64=_0x574927;_0x32ef64<_0x22227d;_0x32ef64++)this['_touched']['set'](_0x32ef64,{'userId':_0x164898});_0x131930['_insertChild'](_0x2f3f52['offset'],_0x3533b2);}['_handleMoveOperation'](_0x47fa52){(_0x47fa52=this['_cloneOperation'](_0x47fa52,this['_idsRoots']))['_execute']();const _0x12cec6=null===_0x47fa52['_authorId']?null:_0x47fa52['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4592a7=_0x47fa52['getMovedRangeStart'](),_0x4954ae=_0x4592a7['parent'],_0x536b9c=_0x4592a7['offset'];!function _0x561812(_0x510707,_0x4c98e1,_0x2d2576,_0x2c20ab){for(let _0x390865=_0x2d2576;_0x390865<_0x2c20ab;_0x390865++){const _0x176705=_0x4c98e1['getChild'](_0x390865);_0x176705['is']('element','$text')?_0x510707['set'](_0x176705['getAttribute']('vid'),{'userId':_0x12cec6}):(_0x510707['set'](_0x176705['getAttribute']('vid_start'),{'userId':_0x12cec6}),_0x561812(_0x510707,_0x176705,0x0,_0x176705['childCount']),_0x510707['set'](_0x176705['getAttribute']('vid_end'),{'userId':_0x12cec6}));}}(this['_touched'],_0x4954ae,_0x536b9c,_0x536b9c+_0x47fa52['howMany']);}['_handleMergeOperation'](_0x4fa4d8){const _0x1bff16=null===(_0x4fa4d8=this['_cloneOperation'](_0x4fa4d8,this['_idsRoots']))['_authorId']?null:_0x4fa4d8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26f227=_0x4fa4d8['targetPosition']['parent'],_0x9abf9b=_0x4fa4d8['sourcePosition']['parent'],_0x3abca5=_0x26f227['getAttribute']('vid_end'),_0x14d1c7=_0x9abf9b['getAttribute']('vid_start');_0x26f227['_setAttribute']('vid_end',_0x9abf9b['getAttribute']('vid_end')),_0x9abf9b['_setAttribute']('vid_end',_0x3abca5),this['_touched']['set'](_0x14d1c7,{'userId':_0x1bff16}),this['_touched']['set'](_0x3abca5,{'userId':_0x1bff16}),_0x4fa4d8['_execute']();}['_handleSplitOperation'](_0x3b2c8a){const _0x558bab=null===(_0x3b2c8a=this['_cloneOperation'](_0x3b2c8a,this['_idsRoots']))['_authorId']?null:_0x3b2c8a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ffb20=_0x3b2c8a['graveyardPosition'],_0x5cf722=_0x3b2c8a['splitPosition']['parent'];_0x3b2c8a['_execute']();const _0x82b8f9=_0x5cf722['getAttribute']('vid_end'),_0x4d0461=_0x3b2c8a['insertionPosition']['nodeAfter'];if(_0x1ffb20){const _0x4f6042=_0x4d0461['getAttribute']('vid_end'),_0x12efd1=_0x5cf722['getAttribute']('vid_end');_0x5cf722['_setAttribute']('vid_end',_0x4f6042),_0x4d0461['_setAttribute']('vid_end',_0x12efd1),this['_touched']['set'](_0x5cf722['getAttribute']('vid_end'),{'userId':_0x558bab}),this['_touched']['set'](_0x4d0461['getAttribute']('vid_start'),{'userId':_0x558bab});}else{const _0x3d7315=this['_revisionId']++,_0x45049b=this['_revisionId']++;_0x5cf722['_setAttribute']('vid_end',_0x3d7315),_0x4d0461['_setAttribute']('vid_start',_0x45049b),_0x4d0461['_setAttribute']('vid_end',_0x82b8f9),this['_touched']['set'](_0x3d7315,{'userId':_0x558bab}),this['_touched']['set'](_0x45049b,{'userId':_0x558bab});}}['_handleMarkerOperation'](_0x58bea8){if(!_0x58bea8['affectsData'])return;const _0x2bef5e=(_0x58bea8=this['_cloneOperation'](_0x58bea8,this['_diffRoots']))['oldRange']?_0x58bea8['oldRange']['root']:null,_0x23f86e=_0x58bea8['newRange']?_0x58bea8['newRange']['root']:null;_0x2bef5e&&this['_markers']['delete'](_0x58bea8['name']),_0x23f86e&&this['_markers']['set'](_0x58bea8['name'],_0x58bea8['newRange']['clone']());const _0x40c691=null===_0x58bea8['_authorId']?null:_0x58bea8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x511c5a=_0x58bea8['name'];if(!this['_touchedMarkers']['has'](_0x511c5a))return void this['_touchedMarkers']['set'](_0x511c5a,{'range':_0x58bea8['oldRange'],'userId':_0x40c691});const _0x5b3d45=this['_touchedMarkers']['get'](_0x511c5a),_0x571de4=_0x5b3d45['range'],_0x1608a0=_0x58bea8['newRange'];null==_0x571de4&&null==_0x1608a0||_0x571de4&&_0x1608a0&&_0x571de4['isEqual'](_0x1608a0)?this['_touchedMarkers']['delete'](_0x58bea8['name']):_0x5b3d45['userId']=_0x40c691;}['_handleRootOperation'](_0x544a76,_0x151adf){this['_diffRoots']['has'](_0x544a76['rootName'])?this['_diffRoots']['get'](_0x544a76['rootName'])['_isAttached']=_0x544a76['isAdd']:(this['_diffRoots']['set'](_0x544a76['rootName'],B(_0x544a76['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x544a76['rootName'],{}),_0x151adf&&this['_idsRoots']['set'](_0x544a76['rootName'],B(_0x544a76['rootName'],!0x0)));const _0x4e1c27=null===_0x544a76['_authorId']?null:_0x544a76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x402c44=this['_touchedRoots']['get'](_0x544a76['rootName']);_0x402c44&&_0x402c44['userId']===_0x4e1c27?this['_touchedRoots']['delete'](_0x544a76['rootName']):this['_touchedRoots']['set'](_0x544a76['rootName'],{'userId':_0x4e1c27,'isAttached':_0x544a76['isAdd']});}['_handleRootAttributeOperation'](_0x52979f){const _0x1641f8=this['_diffRootsAttributes']['get'](_0x52979f['root']['rootName']);null===_0x52979f['newValue']?delete _0x1641f8[_0x52979f['key']]:_0x1641f8[_0x52979f['key']]=_0x52979f['newValue'];}}function F(_0x36c7bf){const _0x1560bc=B(_0x36c7bf['rootName'],_0x36c7bf['isAttached']());for(const _0x2f72d3 of _0x36c7bf['getChildren']()){const _0x4034be=_0x2f72d3['_clone'](!0x0);_0x1560bc['_appendChild'](_0x4034be);}return _0x1560bc;}function B(_0x5e6c9d,_0x39429d=!0x0){const _0x5cfc50=new mt();return _0x5cfc50['rootName']=_0x5e6c9d,_0x5cfc50['_isAttached']=_0x39429d,_0x5cfc50['isAttached']=()=>_0x5cfc50['_isAttached'],_0x5cfc50;}function J(_0x19fd7a,_0x374c42,_0x2cf8b6){const _0xfcd37f='elementEnd'==_0x19fd7a['type']?_0x2cf8b6['createPositionAt'](_0x19fd7a['item'],'end'):_0x2cf8b6['createPositionBefore'](_0x19fd7a['item']);return _0x2cf8b6['createPositionFromPath'](_0x374c42,_0xfcd37f['path'],_0xfcd37f['stickiness']);}function q(_0x2304ce,_0x1d36ad,_0x13523d){const _0x58d204='elementStart'==_0x2304ce['type']?_0x13523d['createPositionAt'](_0x2304ce['item'],0x0):_0x13523d['createPositionAfter'](_0x2304ce['item']);return _0x13523d['createPositionFromPath'](_0x1d36ad,_0x58d204['path'],_0x58d204['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x30811f,_0x156874){super(_0x30811f),this['focusTracker']=new _0x5dd387(),this['keystrokes']=new _0x2f3ff4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x156874),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5e7c65(this);}['render'](){super['render'](),_0x569e30({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x43078b=_0x5969bd=>_0x5969bd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x43078b),this['keystrokes']['set']('arrowleft',_0x43078b),this['keystrokes']['set']('arrowup',_0x43078b),this['keystrokes']['set']('arrowdown',_0x43078b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2758f3){this['revisionNameInputView']['fieldView']['element']['value']=_0x2758f3['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x852333){const _0x509d4d=new _0x57140c(this['locale'],_0x76e838),_0x4dc061=_0x509d4d['fieldView'];_0x4dc061['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5cf54b=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x852333&&(_0x5cf54b+='\x20('+R(this['locale'],'optional')+')'),(_0x509d4d['label']=_0x5cf54b,_0x4dc061['on']('input',()=>{this['revisionNameInputValue']=_0x4dc061['element']['value']['trim']();}),_0x509d4d);}}class u extends _0x2808fc{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x468a45=this['editor'],_0x5d00ab=_0x468a45['plugins']['get']('RevisionTracker');_0x468a45['ui']['componentFactory']['add']('revisionHistory',_0x556cd2=>{const _0x4fbe03=_0x1e5beb(_0x556cd2),_0x1edcb0=_0x4fbe03['panelView']['children'],_0x2a67b7=new _0x34f44e(_0x556cd2),_0x307039=new _0x3cb22f(_0x556cd2),_0x58f71b=new te(_0x556cd2),_0x1b2792=new _0x3cb22f(_0x556cd2),_0x609384=new te(_0x556cd2);return _0x4fbe03['bind']('isEnabled')['to'](_0x5d00ab,'isReady',_0x5d00ab,'isEnabled',_0x468a45,'isReadOnly',(_0x1f603b,_0x292d4d,_0x4ef1bd)=>_0x1f603b&&_0x292d4d&&!_0x4ef1bd),_0x4fbe03['buttonView']['set']({'icon':_0x1b5e61['history'],'label':R(_0x556cd2,'Revision\x20history'),'tooltip':!0x0}),_0x58f71b['set']({'label':R(_0x556cd2,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x58f71b['bind']('isEnabled')['to'](_0x5d00ab,'isReady',_0x5d00ab,'isEnabled',_0x468a45,'isReadOnly',(_0x2e3281,_0x417493,_0x52a67d)=>_0x2e3281&&_0x417493&&!_0x52a67d),_0x58f71b['on']('execute',()=>this['_showDialog']()),_0x609384['set']({'label':R(_0x556cd2,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x609384['bind']('isEnabled')['to'](_0x5d00ab,'isReady',_0x468a45,'isReadOnly',(_0x3b1836,_0x513ef5)=>_0x3b1836&&!_0x513ef5),_0x609384['on']('execute',()=>{_0x468a45['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4fbe03['isOpen']=!0x1,_0x468a45['editing']['view']['focus']();}),_0x307039['children']['add'](_0x58f71b),_0x1b2792['children']['add'](_0x609384),_0x2a67b7['role']='menu',_0x2a67b7['items']['addMany']([_0x307039,_0x1b2792]),_0x1edcb0['add'](_0x2a67b7),_0x4fbe03;}),_0x468a45['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x17246b=this['editor'],_0x3aec9c=_0x17246b['locale'],_0x336122=new _0x1b433c(_0x3aec9c),_0x99b02=new _0x1097f2(_0x3aec9c);_0x336122['buttonView']['set']({'icon':_0x1b5e61['history'],'label':R(_0x3aec9c,'Revision\x20history')});const _0x1e2976=new _0x21aabe(_0x3aec9c,_0x336122),_0x4d1969=new _0x56f955(_0x3aec9c);_0x4d1969['set']({'label':R(_0x3aec9c,'Save\x20current\x20revision')}),_0x4d1969['delegate']('execute')['to'](_0x336122),_0x4d1969['on']('execute',()=>{this['_showDialog']();}),_0x1e2976['children']['add'](_0x4d1969),_0x99b02['items']['add'](_0x1e2976);const _0xe52f68=new _0x21aabe(_0x3aec9c,_0x336122),_0x44575d=new _0x56f955(_0x3aec9c);return _0x44575d['set']({'label':R(_0x3aec9c,'Open\x20revision\x20history')}),_0x44575d['delegate']('execute')['to'](_0x336122),_0x44575d['on']('execute',()=>{_0x17246b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xe52f68['children']['add'](_0x44575d),_0x99b02['items']['add'](_0xe52f68),_0x336122['panelView']['children']['add'](_0x99b02),_0x336122;}['_showDialog'](){const _0x193118=this['editor'],_0x6f6af1=_0x193118['locale'],_0x1d900e=_0x193118['plugins']['get']('Dialog'),_0x126862=_0x193118['plugins']['get']('RevisionTracker');function _0x244e18(_0x12dffd){_0x193118['config']['get']('revisionHistory.requireRevisionName')&&''===_0x12dffd['revisionName']?_0x12dffd['revisionNameInputView']['errorText']=R(_0x6f6af1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x193118['plugins']['get'](l)['saveRevision']({'name':_0x12dffd['revisionName']}),_0x1d900e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x244e18(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1d900e['show']({'id':'revisionSave','title':R(_0x6f6af1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x193118['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1d900e['hide']()},{'label':R(_0x193118['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x497941){_0x497941['bind']('isEnabled')['to'](_0x126862,'isReady',_0x126862,'isEnabled',_0x193118,'isReadOnly',(_0x5bfbc3,_0x2274e9,_0x383e6e)=>_0x5bfbc3&&_0x2274e9&&!_0x383e6e);},'onExecute':()=>_0x244e18(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x462621=this['editor'],_0x1a8351=_0x462621['locale'];this['_saveRevisionFormView']=new hs(_0x1a8351,_0x462621['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x32cbd9,_0x34a06a){super(_0x32cbd9),this['_model']=_0x34a06a,this['changeId']=_0x34a06a['id'];const _0x21ccbf=this['bindTemplate'],_0x3ca96c=R(_0x32cbd9,_0x34a06a['data']['isSuggestion']?'Suggested\x20by':'add'==_0x34a06a['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x34a06a['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x21ccbf['to']('type',_0x205196=>'ck-revision-change__'+_0x205196)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3ca96c}]},{'text':'\x20'+_0x34a06a['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x1a125e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3f04c1){super(),this['id']=_0x3f04c1['id']||_0x3a23ba(),this['author']=_0x3f04c1['author'],this['type']=_0x3f04c1['type'],this['data']=_0x3f04c1['data']||{},this['rootName']=_0x3f04c1['rootName'],this['set']('createdAt',_0x3f04c1['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x11e360,_0x43de0d){this['newRevisionId']=_0x11e360,this['oldRevisionId']=_0x43de0d,this['changes']=new _0x2bb746();}['_setChanges'](_0x37f0a4){for(const _0x4c7625 of _0x37f0a4)this['changes']['add'](_0x4c7625);}}const Z={'c':_0x4c078e,'a':_0x36fce1,'e':_0x387a7a,'r':_0x134602,'u':_0x55ebfa};class d extends _0x2808fc{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1dae11,_0x3bc516,j];}constructor(_0x85a5d9){super(_0x85a5d9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4d97fe,_0x3b4d91,_0x532623)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x17241e=>{for(const _0x49ac7a of this['editor']['editing']['view']['document']['roots'])_0x532623?_0x17241e['removeClass']('ck-editor__editable__overlay',_0x49ac7a):_0x17241e['addClass']('ck-editor__editable__overlay',_0x49ac7a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x265b05=>null!==_0x265b05),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3b63d1,_0x12e180,_0x167fa7)=>_0x3b63d1&&_0x167fa7?_0x12e180['changes']['getIndex'](_0x167fa7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x131d05,_0x24782f)=>_0x131d05?_0x24782f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3bc516);}['init'](){const _0x117ce3=this['editor'],_0x309f4b=new yt(_0x117ce3,{'direction':'backward'}),_0x654156=new yt(_0x117ce3,{'direction':'forward'});(_0x117ce3['commands']['add']('showPreviousChange',_0x309f4b),_0x117ce3['commands']['add']('showNextChange',_0x654156),_0x117ce3['commands']['add']('restoreRevision',new _t(_0x117ce3)),this['on']('change:numberOfChanges',()=>{_0x309f4b['refresh'](),_0x654156['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x117ce3['enableReadOnlyMode']('revision-viewer'),_0x117ce3['plugins']['has']('WidgetToolbarRepository'))&&_0x117ce3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x14dca8){await this['loadRevisionData'](_0x14dca8);const _0x5d7411={};for(const _0x2e54c3 in _0x14dca8['diffData']){if(_0x14dca8['diffData'][_0x2e54c3]['attachChange']&&!_0x14dca8['diffData'][_0x2e54c3]['attachChange']['isAttached'])continue;const _0xf2ecd0=this['_removeRevisionMarkers'](JSON['parse'](_0x14dca8['diffData'][_0x2e54c3]['insertions'])),_0x2698be=this['editor']['editing']['view']['document'],_0x1b9fe0=new _0x9a3e49(_0x2698be,_0xf2ecd0['map'](_0x3d318a=>this['_getViewObj'](_0x3d318a)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5d7411[_0x2e54c3]=this['editor']['data']['processor']['toData'](_0x1b9fe0),this['editor']['data']['processor']['useFillerType']('default');}return _0x5d7411;}async['getRevisionRootsAttributes'](_0x218aa3){await this['loadRevisionData'](_0x218aa3);const _0xc8b3ab={};for(const _0x2eef36 in _0x218aa3['diffData'])_0x218aa3['diffData'][_0x2eef36]['attachChange']&&!_0x218aa3['diffData'][_0x2eef36]['attachChange']['isAttached']||(_0xc8b3ab[_0x2eef36]=_0x218aa3['diffData'][_0x2eef36]['attributesAfter']||{});return _0xc8b3ab;}['_removeRevisionMarkers'](_0x3df59f){return(_0x3df59f=_0x3df59f['filter'](_0x535efa=>!_0x535efa['name']||'revision-start'!==_0x535efa['name']&&'revision-end'!==_0x535efa['name']))['forEach'](_0x334da5=>{'string'!=typeof _0x334da5&&(_0x334da5['children']=this['_removeRevisionMarkers'](_0x334da5['children']),_0x334da5['attributes']=_0x334da5['attributes']['filter'](_0x32f9cb=>!_0x32f9cb[0x0]['startsWith']('data-revision-')));}),_0x3df59f;}async['compare'](_0x40b8fa,_0x140754,_0x48f840=!0x1){if(!this['isEnabled'])return;const _0x3309e6=this['diff'],_0x4f2804=this['repository'],_0x1de6c2='string'==typeof _0x40b8fa?_0x4f2804['getRevision'](_0x40b8fa):_0x40b8fa,_0x4a35a1='string'==typeof _0x140754?_0x4f2804['getRevision'](_0x140754):_0x140754,_0x140c4a=_0x1de6c2['id'],_0x286df5=_0x4a35a1?_0x4a35a1['id']:null;if(!_0x48f840&&this['diff']&&this['diff']['newRevisionId']===_0x140c4a&&this['diff']['oldRevisionId']===_0x286df5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x140c4a,_0x286df5);const _0xd9a906=this['_getRevisionsRange'](_0x1de6c2,_0x4a35a1,!0x0)['map'](_0x14f1af=>this['loadRevisionData'](_0x14f1af));return _0xd9a906['push'](new Promise(_0x53d237=>{setTimeout(_0x53d237,0x14);})),Promise['all'](_0xd9a906)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2d8d4c=this['_getDiff'](_0x140c4a,_0x286df5);for(const _0x8da32f of _0x2d8d4c['changes'])this['_changeIdToChange']['set'](_0x8da32f['id'],_0x8da32f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5f6344=>{for(const _0x92c199 of this['editor']['model']['document']['getRootNames']())_0x5f6344['detachRoot'](_0x92c199);for(const _0x58d00c of Object['keys'](_0x2d8d4c['model'])){const _0x5cb018=_0x5f6344['addRoot'](_0x58d00c);for(const _0x5b8a6d of Object['keys'](_0x2d8d4c['attributes'][_0x58d00c]))_0x5f6344['setAttribute'](_0x5b8a6d,_0x2d8d4c['attributes'][_0x58d00c][_0x5b8a6d],_0x5cb018);_0x5f6344['insert'](_0x2d8d4c['model'][_0x58d00c],_0x5cb018,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2d8d4c['changes'])),this['isReady']=!0x0;})['catch'](_0x4cb830=>{console['error'](_0x4cb830),this['_cleanUp'](),_0x3309e6&&(this['diff']=_0x3309e6),this['isReady']=!0x0;});}['addRevisionData'](_0x27fedc,_0x5ccbeb){const _0x29133d=this['repository']['createRevision'](_0x27fedc);return _0x29133d['on']('_update',(_0x5eb4eb,_0x38e51d,_0x21bbc6)=>_0x5ccbeb(_0x38e51d,_0x21bbc6,_0x29133d)),this['repository']['addRevision'](_0x29133d),_0x29133d;}['loadRevisionData'](_0x3bdd60){if(!_0x3bdd60||_0x3bdd60['diffData'])return Promise['resolve']();{const _0x1c8cc4=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1c8cc4,'revisionId':_0x3bdd60['id']})['then'](_0x65fc9f=>{_0x3bdd60['_update']({'diffData':_0x65fc9f['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5230ad=>{for(const _0xeb408a of this['editor']['model']['document']['getRootNames']())_0x5230ad['detachRoot'](_0xeb408a);});}['_sortAndFilterDiffChanges'](_0x5606c2){const _0x346a37=[],_0x262a4f=new Map();for(const _0x10dc5b of this['editor']['model']['document']['getRootNames']()){const _0x45dbce=this['editor']['editing']['view']['getDomRoot'](_0x10dc5b);if(!_0x45dbce)continue;const _0x6ed1aa=_0x45dbce['getClientRects']()['item'](0x0);_0x6ed1aa&&(_0x346a37['push'](_0x10dc5b),_0x262a4f['set'](_0x10dc5b,_0x6ed1aa));}return _0x346a37['sort']((_0x3a56d4,_0x3ff07d)=>{const _0x4fb84a=_0x262a4f['get'](_0x3a56d4),_0x28e3a9=_0x262a4f['get'](_0x3ff07d);return _0x4fb84a['y']-_0x28e3a9['y']||_0x4fb84a['x']-_0x28e3a9['x'];}),(_0x5606c2=_0x5606c2['filter'](_0x12efae=>_0x346a37['includes'](_0x12efae['rootName'])))['sort']((_0xd00d14,_0xec22f7)=>_0x346a37['indexOf'](_0xd00d14['rootName'])-_0x346a37['indexOf'](_0xec22f7['rootName'])),_0x5606c2;}['_makeTape'](_0x438409){const _0x5ba725=Array['from'](_0x438409['markers'])['filter'](([_0x49f524,_0x35108a])=>_0x49f524['startsWith']('revision:')&&!_0x35108a['isCollapsed']),_0x2214ca=Array['from'](this['editor']['model']['createRangeIn'](_0x438409)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5ba725['length'])for(const _0x109b55 of _0x2214ca){const [_0x246c0a,_0x4477d8]=_0x5ba725[0x0],[,_0x328016,_0x562234]=_0x246c0a['split'](':');if(_0x4477d8['end']['isEqual'](_0x109b55['nextPosition'])&&_0x5ba725['shift'](),(_0x109b55['previousPosition']['isEqual'](_0x4477d8['start'])||_0x109b55['previousPosition']['isAfter'](_0x4477d8['start']))&&('insertion'==_0x328016?_0x109b55['isAdded']={'userId':_0x562234}:'deletion'==_0x328016&&(_0x109b55['isRemoved']={'userId':_0x562234})),0x0==_0x5ba725['length'])break;}return _0x2214ca;}['_refreshStartEndIndex'](_0x316600){const _0x900606=new Map();for(let _0x167906=0x0;_0x167906<_0x316600['length'];_0x167906++)'text'===_0x316600[_0x167906]['type']?(_0x316600[_0x167906]['item']['startIndex']=_0x167906,_0x316600[_0x167906]['item']['endIndex']=_0x167906):('elementStart'===_0x316600[_0x167906]['type']?_0x316600[_0x167906]['item']['startIndex']=_0x167906:'elementEnd'===_0x316600[_0x167906]['type']&&(_0x316600[_0x167906]['item']['endIndex']=_0x167906),_0x900606['set'](_0x316600[_0x167906]['id'],_0x167906));for(const _0xd402d6 of _0x900606['values']())'elementStart'===_0x316600[_0xd402d6]['type']?_0x316600[_0xd402d6]['item']['endIndex']=_0x900606['get'](_0x316600[_0xd402d6]['pairId']):'elementEnd'===_0x316600[_0xd402d6]['type']&&(_0x316600[_0xd402d6]['item']['startIndex']=_0x900606['get'](_0x316600[_0xd402d6]['pairId']));}['_processTape'](_0x491e78){for(let _0x512ba7=0x0;_0x512ba7<_0x491e78['length'];_0x512ba7++){if('elementStart'===_0x491e78[_0x512ba7]['type'])_0x491e78[_0x512ba7]['item']['startIndex']=_0x512ba7;else{if('elementEnd'===_0x491e78[_0x512ba7]['type']){_0x491e78[_0x512ba7]['item']['endIndex']=_0x512ba7;const _0x25a236=_0x491e78[_0x512ba7]['item']['startIndex'];_0x491e78[_0x25a236]['pairId']=_0x491e78[_0x512ba7]['id'],_0x491e78[_0x512ba7]['pairId']=_0x491e78[_0x25a236]['id'];}else _0x491e78[_0x512ba7]['item']['startIndex']=_0x512ba7,_0x491e78[_0x512ba7]['item']['endIndex']=_0x512ba7,_0x491e78[_0x512ba7]['pairId']=null;}_0x491e78[_0x512ba7]['markersStart']||(_0x491e78[_0x512ba7]['markersStart']=[],_0x491e78[_0x512ba7]['markersEnd']=[]);}}['_markInsertions'](_0x1979b0,_0x192081){const _0x48206e=_0x1979b0['filter'](_0x7f20a3=>!_0x7f20a3['isAdded']);for(let _0x10d0a7=0x0;_0x10d0a7<_0x192081['length'];_0x10d0a7++)_0x192081[_0x10d0a7]['isAdded']&&(_0x48206e[_0x10d0a7]['isAdded']=_0x192081[_0x10d0a7]['isAdded']);}['_makeModelFromViewString'](_0x4cd282){const _0xd977f7=JSON['parse'](_0x4cd282),_0x33def8=this['editor']['editing']['view']['document'],_0x17cac4=new _0x9a3e49(_0x33def8,_0xd977f7['map'](_0x506956=>this['_getViewObj'](_0x506956)));return this['editor']['data']['toModel'](_0x17cac4);}['_getViewObj'](_0xe9cf75){const _0x6f23fa=this['editor']['editing']['view']['document'];if('string'==typeof _0xe9cf75)return new _0x45f37d(_0x6f23fa,_0xe9cf75);{const _0x1304d9=_0xe9cf75['children']['map'](_0x1bdbf8=>this['_getViewObj'](_0x1bdbf8));return new(Z[_0xe9cf75['type']]||_0x1df7c3)(_0x6f23fa,_0xe9cf75['name'],_0xe9cf75['attributes'],_0x1304d9);}}['_getDiff'](_0x471622,_0x3ad865=null){const _0xb8bb8c=this['repository']['getRevision'](_0x471622),_0x44489a=_0x3ad865?this['repository']['getRevision'](_0x3ad865):null,_0xd60437=this['_getRevisionsRange'](_0xb8bb8c,_0x44489a),_0x59fbac=_0xd60437[_0xd60437['length']-0x1],_0x5016fd=new Map(),_0x7fe066={'model':{},'attributes':{},'changes':[]},_0xf568ed=new Set(),_0x49c150=new Map();for(let _0x2f9d0d=_0xd60437['length']-0x1;_0x2f9d0d>=0x0;_0x2f9d0d--){const _0x3e0b84=_0xd60437[_0x2f9d0d];for(const _0x3f8ad1 of Object['keys'](_0x3e0b84['diffData']))if(_0x3e0b84['diffData'][_0x3f8ad1]['attachChange']){const _0x22fb45=_0x3e0b84['diffData'][_0x3f8ad1]['attachChange'];_0x22fb45['isAttached']?(_0xf568ed['add'](_0x3f8ad1),_0x49c150['has'](_0x3f8ad1)&&_0x49c150['get'](_0x3f8ad1)['userId']==_0x22fb45['userId']?_0x49c150['delete'](_0x3f8ad1):_0x49c150['set'](_0x3f8ad1,_0x22fb45)):_0x49c150['has'](_0x3f8ad1)?(_0xf568ed['delete'](_0x3f8ad1),_0x49c150['delete'](_0x3f8ad1)):(_0xf568ed['add'](_0x3f8ad1),_0x49c150['set'](_0x3f8ad1,_0x22fb45));}else _0xf568ed['add'](_0x3f8ad1);}for(const _0x3bb448 of _0xf568ed){const _0x192a02=_0x49c150['has'](_0x3bb448)&&!_0x49c150['get'](_0x3bb448)['isAttached'];let _0x3456c5=_0x192a02?_0xd60437['length']-0x1:0x0;const _0x2368b8=_0x192a02?-0x1:0x1;for(;_0xd60437[_0x3456c5];){const _0x171461=_0xd60437[_0x3456c5];if(_0x171461['diffData'][_0x3bb448]){const _0x356b84=_0x192a02?_0x171461['diffData'][_0x3bb448]['attributesBefore']:_0x171461['diffData'][_0x3bb448]['attributesAfter'];_0x7fe066['attributes'][_0x3bb448]=_0x356b84?_0x10f70f(_0x356b84):{};break;}_0x3456c5+=_0x2368b8;}}for(const _0x2d75e1 of _0xd60437){_0x2d75e1['model']={};for(const _0x46e986 of _0x2d75e1['authors'])_0x5016fd['set'](_0x46e986['id'],_0x46e986);for(const _0x132f4c of _0xf568ed){const _0x3c0c9f=_0x2d75e1['diffData'][_0x132f4c]?_0x2d75e1['diffData'][_0x132f4c]['insertions']:'[]',_0x1a6791=_0x2d75e1['diffData'][_0x132f4c]?_0x2d75e1['diffData'][_0x132f4c]['deletions']:'[]';_0x2d75e1['model'][_0x132f4c]={'insertions':this['_makeModelFromViewString'](_0x3c0c9f),'deletions':this['_makeModelFromViewString'](_0x1a6791)};}}for(const _0xad25a5 of _0xf568ed){let _0x35a738=null,_0x3f29c2=0x0;const _0x5ab6c2=new Map(Array['from'](_0xb8bb8c['model'][_0xad25a5]['insertions']['markers'])['filter'](([_0x35a25b])=>!_0x35a25b['startsWith']('revision:')));let _0x1b4bee=0x0;for(const _0x348768 of _0xd60437){const _0x26d8c0=this['_makeTape'](_0x348768['model'][_0xad25a5]['insertions']);_0x348768==_0xb8bb8c?(_0x35a738=_0x26d8c0,_0x3f29c2=_0x35a738['length'],_0x35a738['forEach'](_0x11e6b7=>{_0x11e6b7['id']=_0x1b4bee++;}),this['_processTape'](_0x35a738)):this['_markInsertions'](_0x35a738,_0x26d8c0);const _0x3b54ed=_0x35a738['filter'](_0x24fb2f=>!_0x24fb2f['isAdded'])['map'](_0x5b1767=>_0x5b1767['id']);let _0x588384=0x0;const _0x33d530=this['_makeTape'](_0x348768['model'][_0xad25a5]['deletions']);_0x33d530['forEach'](_0x4dc759=>{_0x4dc759['isRemoved']?_0x4dc759['id']=_0x3f29c2++:_0x4dc759['id']=_0x3b54ed[_0x588384++];}),this['_processTape'](_0x33d530),this['_setDistance'](_0x35a738,'isAdded'),this['_setDistance'](_0x33d530,'isRemoved'),_0x348768==_0xb8bb8c&&this['_markMarkers'](_0x35a738,_0x5ab6c2),_0x35a738=this['_joinTapes'](_0x35a738,_0x33d530),this['_refreshStartEndIndex'](_0x35a738),this['_setDistance'](_0x35a738,'isRemoved');}_0x35a738=_0x35a738['filter'](_0x3cbfd0=>!(_0x3cbfd0['isAdded']&&_0x3cbfd0['isRemoved']));const _0x59ef76=new Map(_0x59fbac['model'][_0xad25a5]['deletions']['markers']),_0x435da1=new Set(_0x5ab6c2['keys']());for(const _0x1c6aba of _0x59ef76['keys']())_0x435da1['delete'](_0x1c6aba);this['_markSuggestions'](_0x35a738,_0x435da1),this['_fixObsoleteTags'](_0x35a738),_0x35a738=this['_removeMissingPairs'](_0x35a738),_0x35a738=this['_markMismatchedRemovedTags'](_0x35a738),_0x35a738=this['_removeUnsupportedChanges'](_0x35a738);const {root:_0x4b3ba5,changes:_0x5c3c67}=this['_makeModelFromTape'](_0x35a738,_0x5016fd,_0xad25a5);_0x7fe066['model'][_0xad25a5]=_0x4b3ba5;const _0x3e923f=_0x49c150['get'](_0xad25a5);if(_0x3e923f){const _0x1fa14b=_0x5016fd['get'](_0x3e923f['userId']),_0x362f8f=new r({'author':_0x1fa14b,'type':_0x3e923f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xad25a5});_0x5c3c67['unshift'](_0x362f8f),_0x7fe066['attributes'][_0xad25a5]['revisionHistoryAttachChange']=_0x362f8f['id'];}_0x7fe066['changes']=_0x7fe066['changes']['concat'](_0x5c3c67);}return _0x7fe066;}['_markMarkers'](_0x1ad0fe,_0x27602c){for(let _0x4f36b5=0x0;_0x4f36b5<_0x1ad0fe['length'];_0x4f36b5++)for(const [_0x1910a5,_0xbd01ec]of _0x27602c)_0xbd01ec['start']['isEqual'](_0x1ad0fe[_0x4f36b5]['previousPosition'])&&_0x1ad0fe[_0x4f36b5]['markersStart']['push'](_0x1910a5),_0xbd01ec['end']['isEqual'](_0x1ad0fe[_0x4f36b5]['nextPosition'])&&_0x1ad0fe[_0x4f36b5]['markersEnd']['push'](_0x1910a5);}['_joinTapes'](_0x3f883e,_0x99b7dd){let _0x49d1fb=[],_0x18a7c1=0x0,_0x3e52ba=0x0;for(;_0x18a7c1<_0x3f883e['length']||_0x3e52ba<_0x99b7dd['length'];){const _0x317883=_0x3f883e[_0x18a7c1]||{},_0x205ff6=_0x99b7dd[_0x3e52ba]||{};if(_0x317883['id']==_0x205ff6['id'])_0x18a7c1++,_0x3e52ba++,_0x49d1fb['push'](_0x317883);else{if(_0x205ff6['isRemoved']&&_0x317883['isAdded']){const {commonTape:_0x261fdb,iEnd:_0x5c75fb,jEnd:_0x1d8eda}=this['_threeWayMerge'](_0x3f883e,_0x18a7c1,_0x99b7dd,_0x3e52ba);_0x49d1fb=_0x49d1fb['concat'](_0x261fdb),_0x18a7c1=_0x5c75fb,_0x3e52ba=_0x1d8eda;}else _0x205ff6['isRemoved']?(_0x3e52ba++,_0x49d1fb['push'](_0x205ff6)):(_0x18a7c1++,_0x49d1fb['push'](_0x317883));}}return _0x49d1fb;}['_markSuggestions'](_0x32683c,_0x2643b5){const _0x4c4943=[];for(let _0x1fd0b1=0x0;_0x1fd0b1<_0x32683c['length'];_0x1fd0b1++){for(let _0x2671e1=0x0;_0x2671e1<_0x32683c[_0x1fd0b1]['markersStart']['length'];_0x2671e1++){const _0x4a51ef=_0x32683c[_0x1fd0b1]['markersStart'][_0x2671e1];if(!_0x2643b5['has'](_0x4a51ef))continue;const {group:_0x5b194e,type:_0x4067f1,authorId:_0x30f2f3}=_0x39d8b4(_0x4a51ef);'revision-suggestion'!=_0x5b194e||'insertion'!=_0x4067f1&&'deletion'!=_0x4067f1||(_0x4c4943['unshift']({'type':_0x4067f1,'name':_0x4a51ef,'userId':_0x30f2f3}),_0x32683c[_0x1fd0b1]['markersStart']['splice'](_0x2671e1,0x1),_0x2671e1--);}_0x5761e8(_0x32683c[_0x1fd0b1]);for(let _0x3d96fa=0x0;_0x3d96fa<_0x32683c[_0x1fd0b1]['markersEnd']['length'];_0x3d96fa++){const _0x2d8a13=_0x32683c[_0x1fd0b1]['markersEnd'][_0x3d96fa];if(!_0x2643b5['has'](_0x2d8a13))continue;const {group:_0x106fcf,type:_0x5f5953}=_0x39d8b4(_0x2d8a13);if('revision-suggestion'!=_0x106fcf||'insertion'!=_0x5f5953&&'deletion'!=_0x5f5953)continue;_0x32683c[_0x1fd0b1]['markersEnd']['splice'](_0x3d96fa,0x1),_0x3d96fa--;const _0x30fbe6=_0x4c4943['findIndex'](_0x2d80b4=>_0x2d80b4['name']==_0x2d8a13);_0x30fbe6>-0x1&&_0x4c4943['splice'](_0x30fbe6,0x1);}}function _0x39d8b4(_0x488612){const _0xa76cd0=_0x488612['split'](':');return{'group':_0xa76cd0[0x0],'type':_0xa76cd0[0x1],'subType':_0xa76cd0['length']>=0x5?_0xa76cd0[0x2]:null,'id':_0xa76cd0['length']<0x5?_0xa76cd0[0x2]:_0xa76cd0[0x3],'authorId':_0xa76cd0['length']<0x5?_0xa76cd0[0x3]:_0xa76cd0[0x4],'markerCount':0x6==_0xa76cd0['length']?_0xa76cd0[0x5]:null};}function _0x5761e8(_0x1bf80e){for(let _0x5318da=0x0;_0x5318da<_0x4c4943['length'];_0x5318da++){if(_0x1bf80e['isAdded']&&'insertion'==_0x4c4943[_0x5318da]['type'])return _0x1bf80e['isAddSuggestion']=_0x4c4943[_0x5318da],void delete _0x1bf80e['isAdded'];if(!_0x1bf80e['isAdded']&&!_0x1bf80e['isRemoved']&&'deletion'==_0x4c4943[_0x5318da]['type'])return void(_0x1bf80e['isRemoveSuggestion']=_0x4c4943[_0x5318da]);}}}['_setDistance'](_0x5711c6,_0x26127e){let _0x2516c4=0x0,_0x11c748=!0x1;const _0x2cc5e9=new Map();for(const _0x4a3e37 of _0x5711c6)_0x4a3e37[_0x26127e]?_0x11c748&&(_0x2516c4++,_0x11c748=!0x1):(_0x2516c4++,_0x11c748=!0x0),_0x2cc5e9['set'](_0x4a3e37['id'],_0x2516c4);for(let _0x302881=0x0;_0x302881<_0x5711c6['length'];_0x302881++){if('isRemoved'==_0x26127e&&_0x5711c6[_0x302881]['isAdded']||'isAdded'==_0x26127e&&_0x5711c6[_0x302881]['isRemoved'])continue;if('text'==_0x5711c6[_0x302881]['type']){_0x5711c6[_0x302881]['distance']=0x0;continue;}const _0xfc4dd8=_0x2cc5e9['get'](_0x5711c6[_0x302881]['pairId']),_0x313505=_0x2cc5e9['get'](_0x5711c6[_0x302881]['id']);_0x5711c6[_0x302881]['distance']=_0xfc4dd8-_0x313505;}}['_getRevisionsRange'](_0x58bed3,_0x2cf7ea,_0x1beb13=!0x1){const _0x4a331d=[];let _0x11724c=this['repository']['getIndex'](_0x58bed3),_0x8c8e2b=this['repository']['getIndex'](_0x2cf7ea);for(-0x1==_0x8c8e2b&&(_0x8c8e2b=this['repository']['_revisions']['length'],_0x1beb13=!0x1);_0x11724c<_0x8c8e2b;)_0x4a331d['push'](this['repository']['getRevision'](_0x11724c)),_0x11724c++;return _0x1beb13&&_0x4a331d['push'](this['repository']['getRevision'](_0x11724c)),_0x4a331d;}['_threeWayMerge'](_0x28ef22,_0x32086b,_0x5c7950,_0x3582f2){const _0x1929ef=this['editor']['model']['schema'];let _0x6b9544=_0x32086b;for(;_0x28ef22[_0x6b9544]&&_0x28ef22[_0x6b9544]['isAdded'];)_0x6b9544++;let _0x712d98=_0x3582f2;for(;_0x5c7950[_0x712d98]&&_0x5c7950[_0x712d98]['isRemoved'];)_0x712d98++;_0x1166eb(_0x28ef22,_0x32086b,_0x6b9544),_0x1166eb(_0x5c7950,_0x3582f2,_0x712d98);const _0x473dd9=_0x5c7950['slice'](_0x3582f2,_0x712d98)['concat'](_0x28ef22['slice'](_0x32086b,_0x6b9544));return _0x473dd9['sort']((_0x205000,_0x44ce2f)=>_0x205000['side']!=_0x44ce2f['side']?_0x205000['side']-_0x44ce2f['side']:_0x205000['level']!=_0x44ce2f['level']?_0x205000['level']-_0x44ce2f['level']:_0x205000['distance']!=_0x44ce2f['distance']?_0x44ce2f['distance']-_0x205000['distance']:!!_0x205000['isAdded']!=!!_0x44ce2f['isAdded']?-0x1==_0x205000['side']||0x0==_0x205000['side']?_0x205000['isAdded']?-0x1:0x1:_0x205000['isAdded']?0x1:-0x1:_0x205000['index']-_0x44ce2f['index']),{'commonTape':_0x473dd9,'iEnd':_0x6b9544,'jEnd':_0x712d98};function _0x1166eb(_0x4efcb2,_0x1c5ac4,_0x336bbb){let _0x3cec30=-0x1,_0x39275d=Number['POSITIVE_INFINITY'],_0x5e3e3e=!0x0;for(let _0x320e4b=_0x1c5ac4;_0x320e4b<_0x336bbb;_0x320e4b++)if(_0x1929ef['isInline'](_0x4efcb2[_0x320e4b]['item'])||(_0x5e3e3e=!0x1),_0x4efcb2[_0x320e4b]['item']['startIndex']<_0x1c5ac4&&(_0x3cec30=_0x320e4b),_0x4efcb2[_0x320e4b]['item']['endIndex']>=_0x336bbb){_0x39275d=_0x320e4b;break;}_0x5e3e3e&&(_0x3cec30=_0x336bbb-0x1);for(let _0x3e07e5=_0x1c5ac4;_0x3e07e5<_0x336bbb;_0x3e07e5++)_0x4efcb2[_0x3e07e5]['side']=_0x3e07e5<=_0x3cec30?-0x1:_0x3e07e5<_0x39275d?0x0:0x1,_0x4efcb2[_0x3e07e5]['index']=_0x3e07e5;let _0x2eb7e1=0x0;for(let _0x238f9e=_0x1c5ac4;_0x238f9e<=_0x3cec30;_0x238f9e++)0x0==_0x4efcb2[_0x238f9e]['distance']?_0x4efcb2[_0x238f9e]['level']=_0x2eb7e1:(_0x2eb7e1++,_0x4efcb2[_0x238f9e]['level']=_0x2eb7e1,_0x2eb7e1++);for(let _0x335c59=_0x1c5ac4;_0x335c59<_0x336bbb;_0x335c59++)0x0==_0x4efcb2[_0x335c59]['side']&&(_0x4efcb2[_0x335c59]['level']=_0x2eb7e1);_0x2eb7e1=0x0;for(let _0x349a0e=_0x336bbb-0x1;_0x349a0e>=_0x39275d;_0x349a0e--)0x0==_0x4efcb2[_0x349a0e]['distance']?_0x4efcb2[_0x349a0e]['level']=_0x2eb7e1:(_0x2eb7e1--,_0x4efcb2[_0x349a0e]['level']=_0x2eb7e1,_0x2eb7e1--);}}['_fixObsoleteTags'](_0x588835){const _0x4e2832=new Map(),_0x2a8663=this['editor']['model']['schema'];for(let _0x5c278d=0x1;_0x5c278d<_0x588835['length'];_0x5c278d++){let _0xfc514c,_0x1aaae7,_0x490d3c;const _0x587c9e=_0x588835[_0x5c278d],_0x1e0c38=_0x588835[_0x5c278d-0x1];if('text'==_0x587c9e['type'])continue;if(_0x587c9e['type']!=_0x1e0c38['type'])continue;if(!_0x2a8663['isBlock'](_0x1e0c38['item'])||_0x2a8663['isLimit'](_0x1e0c38['item']))continue;if(!_0x2a8663['isBlock'](_0x587c9e['item'])||_0x2a8663['isLimit'](_0x587c9e['item']))continue;if((_0x588835[_0x5c278d]['isAdded']||_0x588835[_0x5c278d]['isAddSuggestion'])&&_0x588835[_0x5c278d-0x1]['isRemoved'])_0xfc514c=_0x588835[_0x5c278d],_0x1aaae7=_0x588835[_0x5c278d-0x1],_0x490d3c=_0x5c278d-0x1;else{if(!_0x588835[_0x5c278d]['isRemoved']||!_0x588835[_0x5c278d-0x1]['isAdded']&&!_0x588835[_0x5c278d-0x1]['isAddSuggestion'])continue;_0xfc514c=_0x588835[_0x5c278d-0x1],_0x1aaae7=_0x588835[_0x5c278d],_0x490d3c=_0x5c278d;}const _0x10ad43=_0xfc514c['level']==_0x1aaae7['level'],_0x463cbb=Math['abs'](_0xfc514c['level'])<Math['abs'](_0x1aaae7['level'])&&0x0==_0x1aaae7['distance'];(_0x10ad43||_0x463cbb)&&(_0x4e2832['set'](_0x1aaae7['id'],_0xfc514c['id']),_0x588835['splice'](_0x490d3c,0x1),_0x5c278d--,_0xfc514c['isAdded']=!0x1);}for(let _0x320287=0x0;_0x320287<_0x588835['length'];_0x320287++)_0x4e2832['has'](_0x588835[_0x320287]['pairId'])&&(_0x588835[_0x320287]['pairId']=_0x4e2832['get'](_0x588835[_0x320287]['pairId']));}['_removeMissingPairs'](_0x4e30f6){const _0x495dd1=new Set(_0x4e30f6['map'](_0x38d7b9=>_0x38d7b9['id']));for(let _0x3a3f0d=0x0;_0x3a3f0d<_0x4e30f6['length'];_0x3a3f0d++)_0x495dd1['has'](_0x4e30f6[_0x3a3f0d]['pairId'])||0x0==_0x4e30f6[_0x3a3f0d]['distance']||(_0x4e30f6[_0x3a3f0d]['isIncorrect']=!0x0);return _0x4e30f6['filter'](_0x2b5959=>!_0x2b5959['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5879e9){const _0x21b894=new Set();for(let _0x1186ec=0x0;_0x1186ec<_0x5879e9['length'];_0x1186ec++){if(_0x21b894['has'](_0x5879e9[_0x1186ec]['id'])&&_0x5879e9[_0x1186ec]['isRemoved']&&(_0x5879e9[_0x1186ec]['isIncorrect']=!0x0),_0x5879e9[_0x1186ec]['isIncorrect'])continue;if(0x0==_0x5879e9[_0x1186ec]['distance'])continue;if('elementStart'!=_0x5879e9[_0x1186ec]['type'])continue;if(null==_0x5879e9[_0x1186ec]['pairId'])continue;let _0x3dcac8=_0x1186ec+0x1,_0x4ddf14=0x0;for(;_0x5879e9[_0x3dcac8]['id']!=_0x5879e9[_0x1186ec]['pairId'];)'elementStart'==_0x5879e9[_0x3dcac8]['type']?_0x4ddf14++:'elementEnd'==_0x5879e9[_0x3dcac8]['type']&&_0x4ddf14--,_0x3dcac8++;if(0x0!=_0x4ddf14){if(_0x5879e9[_0x1186ec]['isRemoved'])_0x5879e9[_0x1186ec]['isIncorrect']=!0x0;else{for(;_0x3dcac8!=_0x1186ec;)_0x5879e9[_0x3dcac8]['isRemoved']&&0x0!=_0x5879e9[_0x3dcac8]['distance']&&(_0x5879e9[_0x3dcac8]['isIncorrect']=!0x0,_0x21b894['add'](_0x5879e9[_0x3dcac8]['pairId'])),_0x3dcac8--;}}}return _0x5879e9['filter'](_0x45bcf8=>!_0x45bcf8['isIncorrect']);}['_removeUnsupportedChanges'](_0x377b46){const _0x46662b=this['editor']['model']['schema'];for(let _0x2067aa=0x0;_0x2067aa<_0x377b46['length'];_0x2067aa++){if(!(_0x377b46[_0x2067aa]['isAdded']||_0x377b46[_0x2067aa]['isAddSuggestion']||_0x377b46[_0x2067aa]['isRemoved']||_0x377b46[_0x2067aa]['isRemoveSuggestion']))continue;if(0x0==_0x377b46[_0x2067aa]['distance'])continue;const _0x1f24b2=_0x377b46[_0x2067aa]['item'];_0x46662b['isBlock'](_0x1f24b2)||_0x46662b['isLimit'](_0x1f24b2)||(_0x377b46[_0x2067aa]['isAdded']&&delete _0x377b46[_0x2067aa]['isAdded'],_0x377b46[_0x2067aa]['isAddSuggestion']&&delete _0x377b46[_0x2067aa]['isAddSuggestion'],_0x377b46[_0x2067aa]['isRemoveSuggestion']&&delete _0x377b46[_0x2067aa]['isRemoveSuggestion'],_0x377b46[_0x2067aa]['isRemoved']&&(_0x377b46[_0x2067aa]['isIncorrect']=!0x0));}return _0x377b46['filter'](_0x24a0b9=>!_0x24a0b9['isIncorrect']);}['_makeModelFromTape'](_0x2fbff4,_0x4bd41e,_0x2494fd){const _0x33a09b=new mt(),_0x57b0ad=[],_0x5790c2=new Map(),_0x9ce656=this['editor']['model'],_0x5eef62=_0x9ce656['schema'],_0x8923a6=[_0x33a09b],_0x36fb9c={},_0x2baf98={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x345822=null;const _0x50178a=[0x0];for(let _0x20104f=0x0;_0x20104f<_0x2fbff4['length'];_0x20104f++)if('elementStart'===_0x2fbff4[_0x20104f]['type']){_0x2fbff4[_0x20104f]['previousPosition']=_0x9ce656['createPositionFromPath'](_0x33a09b,_0x50178a);const _0x5db3c7=new ft(_0x2fbff4[_0x20104f]['item']['name'],_0x2fbff4[_0x20104f]['item']['getAttributes']());_0x8923a6[0x0]['_appendChild'](_0x5db3c7),_0x50178a['push'](0x0),_0x8923a6['unshift'](_0x5db3c7),_0x2fbff4[_0x20104f]['nextPosition']=_0x9ce656['createPositionFromPath'](_0x33a09b,_0x50178a);}else'elementEnd'===_0x2fbff4[_0x20104f]['type']?(_0x8923a6['shift'](),_0x2fbff4[_0x20104f]['previousPosition']=_0x9ce656['createPositionFromPath'](_0x33a09b,_0x50178a),_0x50178a['pop'](),_0x50178a[_0x50178a['length']-0x1]++,_0x2fbff4[_0x20104f]['nextPosition']=_0x9ce656['createPositionFromPath'](_0x33a09b,_0x50178a)):(_0x2fbff4[_0x20104f]['previousPosition']=_0x9ce656['createPositionFromPath'](_0x33a09b,_0x50178a),_0x345822?_0x345822['_data']+=_0x2fbff4[_0x20104f]['item']['data']:_0x345822=new wt(_0x2fbff4[_0x20104f]['item']['data'],_0x2fbff4[_0x20104f]['item']['getAttributes']()),_0x2fbff4[_0x20104f+0x1]&&'text'===_0x2fbff4[_0x20104f+0x1]['type']&&_0x5d3d7f(_0x345822,_0x2fbff4[_0x20104f+0x1]['item'])||(_0x8923a6[0x0]['_appendChild'](_0x345822),_0x345822=null),_0x50178a[_0x50178a['length']-0x1]+=_0x2fbff4[_0x20104f]['item']['offsetSize'],_0x2fbff4[_0x20104f]['nextPosition']=_0x9ce656['createPositionFromPath'](_0x33a09b,_0x50178a));for(let _0x4ca1a4=0x0;_0x4ca1a4<_0x2fbff4['length'];_0x4ca1a4++){const _0x252050=_0x2fbff4[_0x4ca1a4]['previousPosition'],_0x2f0a05=_0x2fbff4[_0x4ca1a4]['nextPosition'];for(const _0x58a008 of _0x2fbff4[_0x4ca1a4]['markersStart'])_0x5790c2['set'](_0x58a008,{'start':_0x252050,'end':null});_0x1052e0('isRemoveSuggestion',_0x4ca1a4,_0x252050,_0x2f0a05),_0x1052e0('isAddSuggestion',_0x4ca1a4,_0x252050,_0x2f0a05),_0x1052e0('isRemoved',_0x4ca1a4,_0x252050,_0x2f0a05),_0x1052e0('isAdded',_0x4ca1a4,_0x252050,_0x2f0a05);for(const _0x188b97 of _0x2fbff4[_0x4ca1a4]['markersEnd']){_0x5790c2['get'](_0x188b97)['end']=_0x2f0a05;}}for(const [_0x3130e6,_0x509959]of _0x5790c2){const _0x518552=this['editor']['model']['createRange'](_0x509959['start'],_0x509959['end']);_0x33a09b['markers']['set'](_0x3130e6,_0x518552);}return _0x57b0ad['sort']((_0x17b148,_0x3a7d98)=>{const _0x5a6b39=_0x33a09b['markers']['get']('revision:'+_0x17b148['id']),_0xea5f23=_0x33a09b['markers']['get']('revision:'+_0x3a7d98['id']);return _0x5a6b39['start']['isBefore'](_0xea5f23['start'])?-0x1:_0x5a6b39['start']['isAfter'](_0xea5f23['start'])?0x1:_0x5a6b39['end']['isBefore'](_0xea5f23['end'])?-0x1:_0x5a6b39['end']['isAfter'](_0xea5f23['end'])?0x1:'add'===_0x17b148['type']?-0x1:0x1;}),{'root':_0x33a09b,'changes':_0x57b0ad};function _0x1052e0(_0x3ce8a2,_0x298417,_0x29038c,_0xe72ed9){const _0x57df86=!!_0x2fbff4[_0x298417][_0x3ce8a2],_0x4201e1=_0x57df86?_0x2fbff4[_0x298417][_0x3ce8a2]['userId']:null,_0x5e36d6=_0x298417===_0x2fbff4['length']-0x1,_0x1898a5=_0x2baf98[_0x3ce8a2][0x0],_0x5253d1=_0x5eef62['isObject'](_0x2fbff4[_0x298417]['item']);!_0x36fb9c[_0x3ce8a2]&&_0x57df86?_0x36fb9c[_0x3ce8a2]={'start':_0x29038c,'tapeItem':_0x2fbff4[_0x298417],'userId':_0x4201e1,'type':_0x3ce8a2}:_0x36fb9c[_0x3ce8a2]&&!_0x57df86?(_0x36fb9c[_0x3ce8a2]['end']=_0x29038c,_0x2f5751(_0x36fb9c[_0x3ce8a2]),_0x36fb9c[_0x3ce8a2]=null):_0x36fb9c[_0x3ce8a2]&&_0x57df86&&_0x36fb9c[_0x3ce8a2]['userId']!==_0x4201e1&&(_0x36fb9c[_0x3ce8a2]['end']=_0x29038c,_0x1898a5&&_0x1898a5['userId']===_0x36fb9c[_0x3ce8a2]['userId']||_0x2f5751(_0x36fb9c[_0x3ce8a2]),_0x36fb9c[_0x3ce8a2]={'start':_0x29038c,'tapeItem':_0x2fbff4[_0x298417],'userId':_0x4201e1,'type':_0x3ce8a2}),_0x36fb9c[_0x3ce8a2]&&_0x5253d1&&('elementStart'!==_0x2fbff4[_0x298417]['type']||_0x1898a5&&_0x1898a5['userId']===_0x4201e1||_0x2baf98[_0x3ce8a2]['unshift']({'userId':_0x4201e1,'object':_0x2fbff4[_0x298417]['item'],'change':_0x36fb9c[_0x3ce8a2]}),'elementEnd'===_0x2fbff4[_0x298417]['type']&&_0x1898a5&&_0x1898a5['object']===_0x2fbff4[_0x298417]['item']&&(_0x2baf98[_0x3ce8a2]['shift'](),_0x36fb9c[_0x3ce8a2]=_0x1898a5['change'])),_0x36fb9c[_0x3ce8a2]&&_0x5e36d6&&(_0x36fb9c[_0x3ce8a2]['end']=_0xe72ed9,_0x2f5751(_0x36fb9c[_0x3ce8a2]),_0x36fb9c[_0x3ce8a2]=null);}function _0x2f5751({start:_0x56b0af,end:_0x121dff,tapeItem:_0x1da29d,userId:_0x15ee0f,type:_0x36e692}){const _0x4cc3b4=_0x1da29d['item'],_0x5be5e6=_0x9ce656['schema']['isBlock'](_0x4cc3b4)&&!_0x9ce656['schema']['isLimit'](_0x4cc3b4),_0x809c1d=_0x56b0af['nodeAfter']==_0x121dff['parent']&&_0x121dff['isAtStart'];if(_0x5be5e6&&_0x809c1d)return;const _0x4c5b39=_0x9ce656['createRange'](_0x56b0af,_0x121dff),_0x508909=_0x4bd41e['get'](_0x15ee0f),_0x288838=new r({'author':_0x508909,'type':'isAdded'==_0x36e692||'isAddSuggestion'==_0x36e692?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x36e692||'isRemoveSuggestion'==_0x36e692},'createdAt':new Date(),'rootName':_0x2494fd});_0x57b0ad['push'](_0x288838),_0x33a09b['markers']['set']('revision:'+_0x288838['id'],_0x4c5b39);}function _0x5d3d7f(_0xfb8236,_0xc1b170){const _0x28a460=_0xfb8236['getAttributes'](),_0x21c61e=_0xc1b170['getAttributes']();for(const _0xf98f34 of _0x28a460){if(_0xf98f34[0x1]!==_0xc1b170['getAttribute'](_0xf98f34[0x0]))return!0x1;_0x21c61e['next']();}return _0x21c61e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x425433=>{const _0x36714f=_0x425433['markerName']['split'](':')[0x1],_0x56ab55=this['_getChangeFromId'](_0x36714f);if(!_0x56ab55)return null;const _0x1d2f17='add'==_0x56ab55['type']?'insertion':'deletion',_0x4bb3b1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1d2f17];return _0x56ab55['data']['isSuggestion']&&_0x4bb3b1['push']('ck-suggestion-marker-'+_0x1d2f17+'-new'),this['activeChange']==_0x56ab55&&_0x4bb3b1['push']('ck-suggestion-marker--active'),{'classes':_0x4bb3b1,'attributes':{'data-change-id':_0x36714f}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2328a4=>{_0x2328a4['on']('element:pre',(_0x11cd91,_0x45a268,_0x1b36e6)=>{const _0x58b239=_0x45a268['viewItem']['getChild'](0x0);if(!_0x58b239||!_0x58b239['is']('element','code'))return;if(!_0x1b36e6['consumable']['consume'](_0x58b239,{'attributes':['vid_start','vid_end']}))return;const _0x14059e=_0x45a268['modelRange']['start']['nodeAfter'];_0x1b36e6['writer']['setAttribute']('vid_start',_0x58b239['getAttribute']('vid_start'),_0x14059e),_0x1b36e6['writer']['setAttribute']('vid_end',_0x58b239['getAttribute']('vid_end'),_0x14059e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x48c846=>{_0x48c846['on']('element',(_0x214d94,_0x57f620,_0x740a8a)=>{if(!_0x740a8a['consumable']['consume'](_0x57f620['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x57f620['modelRange']['isCollapsed'])return;const _0x5f2e74=_0x57f620['modelRange']['start']['nodeAfter'];_0x5f2e74['hasAttribute']('vid_start')||_0x5f2e74['hasAttribute']('vid')||(_0x740a8a['writer']['setAttribute']('vid_start',_0x57f620['viewItem']['getAttribute']('vid_start'),_0x5f2e74),_0x740a8a['writer']['setAttribute']('vid_end',_0x57f620['viewItem']['getAttribute']('vid_end'),_0x5f2e74));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2b5147=>_0x2b5147['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2ee448,[,_0x1fa4f5])=>{['vid_start','vid_end','vid']['includes'](_0x1fa4f5)&&(_0x2ee448['return']=!0x0,_0x2ee448['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x234cf7=>{_0x234cf7['on']('attribute:vid',(_0x39f7fe,_0x49c9c9,_0xd4ad)=>{if('\x20'!=_0x49c9c9['item']['data']||_0x49c9c9['item']['parent']['maxOffset']>0x1)return;if(!_0xd4ad['consumable']['consume'](_0x49c9c9['item'],_0x39f7fe['name']))return;const _0x122555=_0xd4ad['writer'],_0x4131f5=_0xd4ad['mapper']['toViewRange'](_0x49c9c9['range']);_0x122555['wrap'](_0x4131f5,_0x122555['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x412fd8){const _0x3a82eb=_0x412fd8['plugins']['get']('RevisionViewer');return(_0x506673,_0x267a94,_0x3b10cf)=>{const _0x1f280d=_0x267a94['markerName']['split'](':')[0x1],_0x17b68a=_0x3a82eb['_getChangeFromId'](_0x1f280d);if(!_0x17b68a)return null;const _0x4f6f84='add'==_0x17b68a['type']?'split':'merge';if(!_0x3b10cf['consumable']['test'](_0x267a94['markerRange'],_0x506673['name']))return;const _0x1189ac=_0x267a94['markerRange']['getWalker'](),_0x49f26d=_0x267a94['markerRange']['start'],_0x270f04=_0x412fd8['model']['schema'];let _0x2a2c00=null,_0x3ae02a=null,_0x39cc0a=!0x1,_0x49622e=!0x1;for(const _0x3acd47 of _0x1189ac){const _0x48ccb4=_0x3acd47['item'];_0x39cc0a=_0x39cc0a||_0x270f04['isContent'](_0x48ccb4);const _0x18db3e=_0x3b10cf['mapper']['toViewElement'](_0x48ccb4);if(_0x18db3e&&_0x18db3e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3acd47['type']&&(_0x270f04['isBlock'](_0x48ccb4)&&!_0x270f04['isLimit'](_0x48ccb4)&&(_0x48ccb4['nextSibling']||_0x49f26d['isAtEnd']?_0x2a2c00&&_0x2a2c00['parent']==_0x48ccb4||(_0x2a2c00=_0x48ccb4,_0x1abbb8(_0x3acd47['previousPosition']),_0x49622e=!0x0):_0x3ae02a=_0x3ae02a||_0x3acd47['previousPosition']));}function _0x1abbb8(_0x4bdf9c){const _0x240d21=_0x3b10cf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f6f84}),_0x294057=_0x3b10cf['mapper']['toViewPosition'](_0x4bdf9c);_0x17b68a['data']['isSuggestion']&&_0x3b10cf['writer']['addClass']('ck-suggestion-marker-'+_0x4f6f84+'-new',_0x240d21),_0x3a82eb['activeChange']==_0x17b68a&&_0x3b10cf['writer']['addClass']('ck-suggestion-marker--active',_0x240d21),_0x3b10cf['writer']['insert'](_0x294057,_0x240d21),_0x3b10cf['mapper']['bindElementToMarker'](_0x240d21,_0x267a94['markerName']);}_0x39cc0a||_0x49622e||!_0x3ae02a||_0x1abbb8(_0x3ae02a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2bbb14,_0x42150d,_0x3dbb06)=>{const _0x240a54=_0x3dbb06['mapper']['markerNameToElements'](_0x42150d['markerName']);if(_0x240a54){for(const _0xdadd98 of _0x240a54)(_0xdadd98['hasClass']('ck-suggestion-marker-split')||_0xdadd98['hasClass']('ck-suggestion-marker-merge'))&&(_0x3dbb06['mapper']['unbindElementFromMarkerName'](_0xdadd98,_0x42150d['markerName']),_0x3dbb06['writer']['remove'](_0xdadd98));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x42b15b,_0x1023ee,_0x1292d2)=>{const _0x13a13f=_0x1023ee['markerName']['split'](':')[0x1],_0x998af0=this['_getChangeFromId'](_0x13a13f);if(!_0x998af0)return null;const _0x36434e='add'==_0x998af0['type']?'split':'merge';if(_0x1292d2['consumable']['test'](_0x1023ee['markerRange'],_0x42b15b['name']))for(const _0xa30d10 of _0x1023ee['markerRange']['getItems']()){if(!_0xa30d10['is']('element','softBreak'))continue;const _0x5a8443=_0x1292d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36434e}),_0x5ad5af=_0x1292d2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xa30d10));_0x998af0['data']['isSuggestion']&&_0x1292d2['writer']['addClass']('ck-suggestion-marker-'+_0x36434e+'-new',_0x5a8443),this['activeChange']==_0x998af0&&_0x1292d2['writer']['addClass']('ck-suggestion-marker--active',_0x5a8443),_0x1292d2['writer']['insert'](_0x5ad5af,_0x5a8443),_0x1292d2['mapper']['bindElementToMarker'](_0x5a8443,_0x1023ee['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x7cb649=>{for(const _0xcd8079 of this['editor']['model']['document']['getRootNames']()){const _0x4a3430=this['editor']['model']['document']['getRoot'](_0xcd8079),_0x5208ff=this['editor']['editing']['view']['document']['getRoot'](_0xcd8079);if(_0x5208ff){const _0x505236=_0x4a3430['getAttribute']('revisionHistoryAttachChange');if(_0x7cb649['removeAttribute']('data-change-id',_0x5208ff),_0x7cb649['removeClass']('ck-revision-history-root-add',_0x5208ff),_0x7cb649['removeClass']('ck-revision-history-root-remove',_0x5208ff),_0x7cb649['removeClass']('ck-revision-history-root--active',_0x5208ff),_0x505236){const _0x25ddac=this['_getChangeFromId'](_0x505236);if(!_0x25ddac)return null;_0x7cb649['setAttribute']('data-change-id',_0x505236,_0x5208ff),_0x7cb649['addClass']('ck-revision-history-root-'+_0x25ddac['type'],_0x5208ff),this['activeChange']==_0x25ddac&&_0x7cb649['addClass']('ck-revision-history-root--active',_0x5208ff);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4f24fb=>'revision-comment:'+_0x4f24fb,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5ecce2=>'revision-suggestion:'+_0x5ecce2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x279342=>({'name':'suggestion:'+_0x279342,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x21fa04=>{const _0x2fdd1c=_0x21fa04['markerName']['split'](':')[0x1];return'insertion'!=_0x2fdd1c&&'deletion'!=_0x2fdd1c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2fdd1c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x12b287,_0x35ed67,_0x5f47af)=>{const _0x37c2c6=_0x5f47af['mapper']['markerNameToElements'](_0x35ed67['markerName']);if(_0x37c2c6){for(const _0x67802 of _0x37c2c6)_0x67802['is']('uiElement')&&(_0x5f47af['mapper']['unbindElementFromMarkerName'](_0x67802,_0x35ed67['markerName']),_0x5f47af['writer']['remove'](_0x67802));}},{'priority':'high'});}['_getChangeFromId'](_0x3bb7e3){return this['_changeIdToChange']['get'](_0x3bb7e3);}['_getViewForChange'](_0x27a187){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x27a187),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3f1a5e,_0x35e3c1,_0x694d96,_0x4f4f36)=>{_0x4f4f36&&this['_balloon']['remove'](_0x4f4f36),_0x694d96&&(this['_balloon']['add']({'view':_0x694d96,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1d9c85=this['editor']['editing'],_0x10ba9c=this['_getChangeFromId'](_0x694d96['changeId']);let _0x266184;if(_0x10ba9c['data']['isOnRoot']){const _0x4a349b=_0x1d9c85['view']['getDomRoot'](_0x10ba9c['rootName']);_0x266184=Array['from'](_0x4a349b['getClientRects']());}else{const _0x1821e1=this['editor']['model']['markers']['get']('revision:'+_0x694d96['changeId']);_0x266184=Array['from'](_0x1d9c85['mapper']['markerNameToElements'](_0x1821e1['name']))['map'](_0xb66e23=>_0x1d9c85['view']['domConverter']['mapViewToDom'](_0xb66e23))['map'](_0x119198=>Array['from'](_0x119198['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x266184[0x0];return _0x266184['find'](_0x4606ba=>_0x4606ba['top']-0x3<=this['_activeViewTarget']['y']&&_0x4606ba['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4606ba['left']-0x3<=this['_activeViewTarget']['x']&&_0x4606ba['right']+0x3>=this['_activeViewTarget']['x'])||_0x266184[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1e1f17,_0x3a304c,_0x505cae,_0x397abe)=>{this['activeView']=_0x505cae?this['_getViewForChange'](_0x505cae):null,this['editor']['model']['change'](()=>{const _0x1e5dc1=this['editor']['editing'];_0x397abe&&(_0x397abe['data']['isOnRoot']?_0x1e5dc1['view']['change'](_0x39b802=>{_0x39b802['removeClass']('ck-revision-history-root--active',_0x1e5dc1['view']['document']['getRoot'](_0x397abe['rootName']));}):_0x1e5dc1['reconvertMarker']('revision:'+_0x397abe['id'])),_0x505cae&&(_0x505cae['data']['isOnRoot']?_0x1e5dc1['view']['change'](_0x380361=>{_0x380361['addClass']('ck-revision-history-root--active',_0x1e5dc1['view']['document']['getRoot'](_0x505cae['rootName']));}):_0x1e5dc1['reconvertMarker']('revision:'+_0x505cae['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x463f91,_0x47ee3a)=>{if(this['activeChange'])return;const _0x47fe0c=this['_findChangeIdFromDomTarget'](_0x47ee3a['target']),_0x149d3d=this['_changeIdToChange']['get'](_0x47fe0c);_0x149d3d?(this['_activeViewTarget']={'x':_0x47ee3a['domEvent']['x'],'y':_0x47ee3a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x149d3d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x7b66f2,_0x46d041)=>{const _0x2564ff=this['_findChangeIdFromDomTarget'](_0x46d041['target']),_0x4ecc12=this['_changeIdToChange']['get'](_0x2564ff);_0x4ecc12?(this['_activeViewTarget']={'x':_0x46d041['domEvent']['x'],'y':_0x46d041['domEvent']['y']},_0x4ecc12===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4ecc12):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3d8809){do{const _0x504b53=_0x3d8809['getAttribute']('data-change-id');if(_0x504b53)return _0x504b53;_0x3d8809=_0x3d8809['parent'];}while(_0x3d8809);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2fe8ad=>{for(const _0x428663 of this['editor']['model']['markers'])_0x2fe8ad['removeMarker'](_0x428663);});}}function tt(_0x39b12c,_0xab7cf9){return(_0x4f942e,_0x4b6b37,_0x188e9d)=>{if(!_0x188e9d['consumable']['test'](_0x4b6b37['markerRange'],_0x4f942e['name']))return;const _0x40727d=_0x4b6b37['markerRange']['getWalker'](),_0x41314e=_0x4b6b37['markerRange']['start'],_0x5592bc=_0x39b12c['model']['schema'];let _0x582ce4=null,_0x1b1cf6=null,_0x3a188a=!0x1,_0x15e3bb=!0x1;for(const _0x18a086 of _0x40727d){const _0x4df0fa=_0x18a086['item'];_0x3a188a=_0x3a188a||_0x5592bc['isContent'](_0x4df0fa);const _0x18b03e=_0x188e9d['mapper']['toViewElement'](_0x4df0fa);if(_0x18b03e&&_0x18b03e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x18a086['type']&&(_0x5592bc['isBlock'](_0x4df0fa)&&!_0x5592bc['isLimit'](_0x4df0fa)&&(_0x4df0fa['nextSibling']||_0x41314e['isAtEnd']?_0x582ce4&&_0x582ce4['parent']==_0x4df0fa||(_0x582ce4=_0x4df0fa,_0x2c9171(_0x18a086['previousPosition']),_0x15e3bb=!0x0):_0x1b1cf6=_0x1b1cf6||_0x18a086['previousPosition']));}function _0x2c9171(_0x5ab218){const _0x4f8eb1=_0x188e9d['mapper']['toViewPosition'](_0x5ab218),_0x50523f=_0x188e9d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xab7cf9});_0x188e9d['writer']['insert'](_0x4f8eb1,_0x50523f),_0x188e9d['mapper']['bindElementToMarker'](_0x50523f,_0x4b6b37['markerName']);}_0x3a188a||_0x15e3bb||!_0x1b1cf6||_0x2c9171(_0x1b1cf6);};}class _t extends _0x452e57{constructor(_0x4531ac){super(_0x4531ac);const _0x5ee6bc=_0x4531ac['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5ee6bc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ee6bc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x180f89=this['editor'],_0x1c8ec2=_0x180f89['plugins']['get'](d),_0x321a78=_0x1c8ec2['isReady']?_0x1c8ec2['diff']['newRevisionId']:null;_0x180f89['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x321a78);}['refresh'](){const {isReady:_0xcaf3c3,isEnabled:_0x3e77ed,repository:_0x415d6a,diff:_0x325594}=this['editor']['plugins']['get'](d),_0x50694e=_0x325594&&_0x415d6a['getLaterVisibleRevision'](_0x325594['newRevisionId']);this['isEnabled']=_0xcaf3c3&&_0x3e77ed&&Boolean(_0x50694e);}}class yt extends _0x452e57{['_step'];constructor(_0x342be1,{direction:_0x3a6753}){super(_0x342be1);const _0x10c49d=_0x342be1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3a6753?0x1:-0x1,this['listenTo'](_0x10c49d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10c49d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x10c49d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x929bd7=this['editor'],_0x5ae524=_0x929bd7['plugins']['get'](d),{isNavigationMode:_0x989050,currentChangeNumber:_0x1bb34a}=_0x5ae524;let _0x11be19;if(_0x5ae524['activeChange']=_0x989050?_0x5ae524['diff']['changes']['get'](_0x1bb34a+this['_step']):_0x5ae524['diff']['changes']['first'],_0x5ae524['activeChange']['data']['isOnRoot'])_0x11be19=_0x929bd7['editing']['view']['getDomRoot'](_0x5ae524['activeChange']['rootName']);else{const _0x59c34d=_0x929bd7['model']['markers']['get']('revision:'+_0x5ae524['activeChange']['id']);_0x11be19=_0x3e9ef9(_0x929bd7['editing'],_0x59c34d);}_0x56a21a({'target':_0x11be19,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xd781f2,currentChangeNumber:_0x18957b,numberOfChanges:_0x145a9e,isReady:_0x570fb3,isEnabled:_0x7fbfc3}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x7fbfc3&&_0x570fb3&&_0x145a9e)&&(!_0xd781f2||(0x1===this['_step']?_0x18957b<_0x145a9e-0x1:_0x18957b>0x0));}}class ui extends ts{constructor(_0x41a23b){super(_0x41a23b);const _0x440351=this['bindTemplate'],_0x43720a=new te(_0x41a23b),_0x2d9fb7=new te(_0x41a23b);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',(_0x2b63f2,_0x168566)=>_0x2b63f2&&_0x168566>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x51d640,_0x58e236,_0x1cf590,_0x112c5e)=>{if(!_0x51d640)return R(_0x41a23b,'Loading...');if(!_0x1cf590)return R(_0x41a23b,'No\x20changes');const _0xe49d7f=R(_0x41a23b,'NUMBER_OF_CHANGES',_0x1cf590);return _0x112c5e?R(_0x41a23b,'X_OF_Y_CHANGES',[_0x58e236+0x1,_0x1cf590]):_0xe49d7f;}),_0x43720a['set']({'label':R(_0x41a23b,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2d9fb7['set']({'label':R(_0x41a23b,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x43720a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2d9fb7['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x43720a['on']('execute',()=>this['fire']('execute','backward')),_0x2d9fb7['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',_0x440351['if']('_isStatusLabelVisible','ck-hidden',_0x438eb7=>!_0x438eb7)]},'children':[{'text':_0x440351['to']('isNavigationMode',_0x443cb9=>_0x443cb9?R(_0x41a23b,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x41a23b,'Total')+':\x20')}]},{'text':_0x440351['to']('_statusText')}]},new _0x577ee9(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x43720a,_0x2d9fb7]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x2808fc{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x578015=this['editor']['editing']['view'];_0x578015['change'](_0x89c515=>{for(const _0x129e81 of _0x578015['document']['roots'])_0x89c515['addClass'](le,_0x129e81);});}['hide'](){const _0xce040f=this['editor']['editing']['view'];_0xce040f['change'](_0x5cfe18=>{for(const _0x10a7b2 of _0xce040f['document']['roots'])_0x5cfe18['removeClass'](le,_0x10a7b2);});}}class m extends _0x2808fc{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x2deca7=this['editor'],_0x2c0321=_0x2deca7['plugins']['get'](d),_0x5888fb=_0x2deca7['plugins']['get'](de);_0x2deca7['ui']['componentFactory']['add']('exitToEditing',_0x3989dc=>{const _0x702c6d=new te(_0x3989dc);return _0x702c6d['set']({'label':R(_0x3989dc,'Back\x20to\x20editing'),'icon':_0x1b5e61['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x702c6d,'execute',()=>{_0x2deca7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x702c6d;}),_0x2deca7['ui']['componentFactory']['add']('restoreRevision',_0xdb7672=>{const _0xcdec34=new te(_0xdb7672);return _0xcdec34['set']({'label':R(_0xdb7672,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xcdec34['bind']('isEnabled')['to'](_0x2deca7['commands']['get']('restoreRevision')),this['listenTo'](_0xcdec34,'execute',()=>_0x2deca7['execute']('restoreRevision')),_0xcdec34;}),_0x2deca7['ui']['componentFactory']['add']('changesNavigation',_0x5363d5=>{const _0x205944=new ui(_0x5363d5),_0xda6002=_0x2deca7['commands']['get']('showPreviousChange'),_0x57c36e=_0x2deca7['commands']['get']('showNextChange');return _0x205944['bind']('isBackwardNavigationEnabled')['to'](_0xda6002,'isEnabled'),_0x205944['bind']('isForwardNavigationEnabled')['to'](_0x57c36e,'isEnabled'),_0x205944['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2c0321),this['listenTo'](_0x205944,'execute',(_0x70c61c,_0x1af2e7)=>{_0x2deca7['execute']('forward'===_0x1af2e7?'showNextChange':'showPreviousChange');}),_0x205944;}),_0x5888fb['show'](),_0x2c0321['on']('change:isReady',(_0x13efb9,_0x1d3265,_0x143565)=>{_0x143565?_0x5888fb['hide']():_0x5888fb['show']();});}}class pt extends _0x57140c{['_resizeObserver']=null;constructor(_0x64c58b,_0x50dfdf){super(_0x64c58b,_0x50dfdf);const _0x1f89c1=this['bindTemplate'];this['set']({'label':R(_0x64c58b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x64c58b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1f89c1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x408d5a=this['fieldView']['element'];this['_tooltipString']=_0x408d5a['scrollWidth']>_0x408d5a['clientWidth']&&_0x408d5a['value']||'';}}class ri extends ts{constructor(_0x3ddcbe,_0x32843d,_0x5a7a95){super(_0x3ddcbe);const _0x5c4336=new _0x13d24a();_0x5c4336['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x5e7d3=['ck','ck-revision-history-sidebar__revision-author'];_0x5a7a95&&_0x5e7d3['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3c8587=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3ddcbe,_0x5a7a95?'Revision\x20creator':'Revision\x20author')},'children':[_0x5c4336,_0x32843d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5e7d3},'children':_0x3c8587});}}function oi(_0x4db05f,_0x57b920){const _0x5828cc=_0x4db05f['bindTemplate'],_0x7ad448=_0x4db05f['locale'],_0x3cfaa3=_0x1e5beb(_0x7ad448);_0x3cfaa3['panelPosition']='sw';const _0x377cde=function(_0x55f5a9,_0xa0c096){const _0x1cf334=function(_0x11ad29,_0x595fe5){const _0x7c70b3=_0x11ad29['locale'],_0x1fec56={'Compare\x20against\x20selected':R(_0x7c70b3,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x7c70b3,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x7c70b3,'Restore\x20this\x20revision')};return _0x595fe5['map'](_0x2cb9fe=>{const _0x58e591=_0x1fec56[_0x2cb9fe['name']];return _0x58e591&&_0x58e591!==_0x2cb9fe['name']&&(_0x2cb9fe['name']=_0x58e591),_0x2cb9fe;});}(_0x55f5a9,_0xa0c096),_0x100077=new _0x2bb746();for(const _0xee6d3e of _0x1cf334){const _0x5051c4={'type':'button','model':new _0x598a22({'label':_0xee6d3e['name'],'class':_0xee6d3e['class'],'withText':!0x0,'role':'menuitem','_action':_0xee6d3e['action']})};_0x5051c4['model']['bind']('isEnabled')['to'](_0x55f5a9,'isActionsDropdownOpen',_0x26ddcc=>'function'!=typeof _0xee6d3e['isEnabled']||(!_0x26ddcc||_0xee6d3e['isEnabled'](_0x55f5a9))),_0x100077['add'](_0x5051c4);}return _0x100077;}(_0x4db05f,_0x57b920);return _0x4db05f['bind']('isActionsDropdownOpen')['to'](_0x3cfaa3,'isOpen'),_0x3cfaa3['buttonView']['set']({'label':R(_0x7ad448,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1b5e61['threeVerticalDots']}),_0x3cfaa3['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5828cc['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5828cc['to'](_0x4e2ba3=>_0x4e2ba3['stopPropagation']())}}),_0x3cfaa3['on']('execute',_0x3d5aa3=>{_0x4db05f['isReady']&&'function'==typeof _0x3d5aa3['source']['_action']&&_0x3d5aa3['source']['_action'](_0x4db05f);}),to(_0x3cfaa3,_0x377cde,{'role':'menu'}),_0x3cfaa3['listenTo'](_0x4db05f,'change:isActionsDropdownOpen',(_0x56b542,_0x466437,_0x14836b)=>{if(_0x14836b)for(const _0x277c3d of _0x3cfaa3['listView']['items']){const _0x4aec60=_0x277c3d['children']['first'],_0x4bb742=_0x57b920['find'](_0x5a8eba=>_0x5a8eba['action']===_0x4aec60['_action'])['isVisible'];_0x277c3d['isVisible']=void 0x0===_0x4bb742||_0x4bb742(_0x4db05f);}}),_0x3cfaa3;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x301683,_0x1134d2,_0x38a31a,_0x53e1a0){super(_0x301683);const _0x1160ce=this['bindTemplate'],_0x433fc3=function(_0x3760dd,_0x20f41a){const _0x463590=Array['from'](_0x20f41a['authors'])['filter'](_0x298059=>_0x298059!=_0x20f41a['creator']);return _0x20f41a['creator']&&_0x463590['unshift'](_0x20f41a['creator']),_0x463590['map'](_0xbc09e9=>new ri(_0x3760dd,_0xbc09e9,_0xbc09e9==_0x20f41a['creator']));}(_0x301683,_0x1134d2);this['id']=_0x1134d2['id'],this['_revision']=_0x1134d2,this['_requireRevisionName']=_0x53e1a0,this['bind']('name','createdAt')['to'](_0x1134d2),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1cfb3b=>{return _0x288ce9=_0x301683['uiLanguage'],(_0x812160=_0x1cfb3b)['toLocaleDateString'](_0x288ce9,{'month':'long','day':'numeric'})+',\x20'+_0x812160['toLocaleTimeString'](_0x288ce9,{'hour':'numeric','minute':'numeric'});var _0x288ce9,_0x812160;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x301683,_0x76e838),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x488c38=>_0x488c38||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2e8d13,_0x18cf99)=>_0x2e8d13&&_0x18cf99),this['revisionActionsView']=_0x38a31a&&_0x38a31a['length']?oi(this,_0x38a31a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1160ce['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1160ce['if']('isEnabled','ck-disabled',_0x217a7e=>!_0x217a7e),_0x1160ce['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1160ce['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1160ce['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':_0x1160ce['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':_0x433fc3}]},this['revisionActionsView']],'on':{'click':_0x1160ce['to'](_0x59066c=>{_0x59066c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x289add=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x289add,'change',()=>{this['_requireRevisionName']&&!_0x289add['value']||this['fire']('setName',{'id':this['id'],'name':_0x289add['value']}),_0x289add['value']||(_0x289add['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x21f686,_0x126317){const _0x12dfe1=_0x26f736['fromJSDate'](_0x21f686)['setLocale'](_0x126317),_0x2ce81e=_0x26f736['local'](),_0x54170c=_0x2ce81e['minus']({'days':0x1})['startOf']('day');let _0x342554,_0x2408dd;return _0x12dfe1['hasSame'](_0x2ce81e,'day')?(_0x342554=_0x12dfe1['startOf']('day')['toJSDate'](),_0x2408dd=_0x12dfe1['toRelativeCalendar']()):_0x12dfe1['hasSame'](_0x54170c,'day')?(_0x342554=_0x54170c['toJSDate'](),_0x2408dd=_0x12dfe1['toRelativeCalendar']()):_0x12dfe1['hasSame'](_0x2ce81e,'week')?(_0x342554=_0x12dfe1['startOf']('week')['toJSDate'](),_0x2408dd=_0x12dfe1['weekdayLong']||''):_0x12dfe1['hasSame'](_0x2ce81e,'year')?(_0x342554=_0x12dfe1['startOf']('month')['toJSDate'](),_0x2408dd=_0x12dfe1['monthLong']||''):(_0x342554=_0x12dfe1['startOf']('year')['toJSDate'](),_0x2408dd=String(_0x12dfe1['year'])),{'startDate':_0x342554,'localizedPeriodName':_0x2408dd};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1f147b,_0x254700,_0x576af3,_0x6ae0a5){super(_0x1f147b);const _0x39aef9=mi(_0x254700,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x254700,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x576af3,this['_requireRevisionName']=_0x6ae0a5,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':_0x39aef9}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3f00ff){const _0x422694=new hi(this['locale'],_0x3f00ff,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x422694);}['removeRevision'](_0x3edd97){const _0x49b241=this['revisionViews']['find'](_0x42b314=>_0x42b314['id']===_0x3edd97['id']);this['revisionViews']['remove'](_0x49b241);}}class as extends ts{constructor(_0x45b78b){super(_0x45b78b);const _0x4895f3=new _0x13d24a();_0x4895f3['content']=_0x1b5e61['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4895f3,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x45b78b,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x35b96c,_0x29fa4d,_0x4b6e7b,_0x238087){super(_0x35b96c);const _0x5ccfd2=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x29fa4d,this['_revisionActions']=_0x4b6e7b,this['_requireRevisionName']=_0x238087,this['on']('select',(_0x8dd00d,_0x259bfc)=>{this['fire']('revisionSelected',_0x259bfc);}),this['on']('setName',(_0x532508,_0x23249b)=>{this['fire']('revisionSetName',_0x23249b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x35b96c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5ccfd2['if']('isEnabled','ck-disabled',_0x4b374a=>!_0x4b374a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x51772d of this['_revisions'])this['_addRevision'](_0x51772d);this['_revisions']['on']('add',(_0x3c0c3c,_0x5ccc1f)=>{this['_addRevision'](_0x5ccc1f);}),this['_revisions']['on']('remove',(_0xb839c5,_0x2c5c31)=>{this['_removeRevision'](_0x2c5c31);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5bfe5c=>_0x5bfe5c['revisionViews']['map'](_0x30e11b=>_0x30e11b))['flat']();}['selectRevision'](_0x49c65c){for(const _0x543683 of this['revisionViews'])_0x49c65c&&_0x49c65c['id']===_0x543683['id']?_0x543683['select']():_0x543683['deselect']();}['highlightRevisions'](_0x3c206c){for(const _0x20405b of this['revisionViews'])_0x3c206c['some'](({id:_0x1c790e})=>_0x1c790e===_0x20405b['id'])?_0x20405b['highlight']():_0x20405b['unhighlight']();}['_addRevision'](_0x5f26e1){const _0xc649bd=mi(_0x5f26e1['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4a186c=this['timePeriodViews']['get'](0x0);_0x4a186c&&_0x4a186c['startDate']['getTime']()===_0xc649bd['getTime']()||(_0x4a186c=new vi(this['locale'],_0xc649bd,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4a186c)),_0x4a186c['addRevision'](_0x5f26e1);}['_removeRevision'](_0x21c7e5){const _0x5c8a70=mi(_0x21c7e5['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5c8a70)['removeRevision'](_0x21c7e5);}['_getTimePeriodViewByStartDate'](_0x1ffb38){return this['timePeriodViews']['find'](_0x598e41=>_0x598e41['startDate']['getTime']()===_0x1ffb38['getTime']());}}class g extends _0x2808fc{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x59d070){super(_0x59d070),this['_revisionViewer']=_0x59d070['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x42194e=this['_revisionsRepository']['_revisions'],_0x5e4c66=this['_createRevisionActions'](),_0x1b90ac=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x42194e,_0x5e4c66,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',(_0x85cb75,_0x4d8eed)=>{_0x4d8eed['revisionViews']['on']('add',(_0xb8df0b,_0x21d399)=>{_0x21d399['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)),_0x1b90ac['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x35f16c=this['_revisionsRepository']['getRevision'](0x0);if(_0x35f16c){const _0x2055c1=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x35f16c['id']);this['_revisionViewer']['compare'](_0x35f16c,_0x2055c1);}}['_handleRevisionSelected'](_0x433ce6,_0x3c2ff2){const _0x292acd=this['_revisionsRepository']['getRevision'](_0x3c2ff2['id']),_0x4bf166=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x292acd['id']);this['_revisionViewer']['compare'](_0x292acd,_0x4bf166);}['_handleRevisionSetName'](_0x5182d1,_0x17671b){this['_revisionsRepository']['getRevision'](_0x17671b['id'])['setName'](_0x17671b['name']);}['_handleDiffChange'](_0x344da0,_0x495674,_0x552d91){const _0x589026=this['_revisionsRepository']['getRevisionsInDiff'](_0x552d91);_0x589026['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x589026),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x589026[0x0]));}['_createRevisionActions'](){const _0x95e53e=this['editor'],_0x505f16=g['availableRevisionActions'],_0x18cbc3=_0x95e53e['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x18cbc3['length'])return _0x18cbc3['map'](_0x2575ed=>{const _0x46ef64='string'==typeof _0x2575ed?Object['assign']({},_0x505f16[_0x2575ed]):_0x2575ed;return _0x46ef64['action']=_0x46ef64['action']['bind'](this,_0x95e53e),_0x46ef64['isVisible']&&(_0x46ef64['isVisible']=_0x46ef64['isVisible']['bind'](this,_0x95e53e)),_0x46ef64;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x36d2ae},_0x1517ac)=>{const _0x8ff9f3=_0x36d2ae['get'](d),_0x57d056=_0x8ff9f3['repository'];let _0x281fba=_0x8ff9f3['diff']['newRevisionId'],_0x4bbd7b=_0x1517ac['id'];_0x57d056['getIndex'](_0x281fba)>_0x57d056['getIndex'](_0x4bbd7b)&&([_0x281fba,_0x4bbd7b]=[_0x4bbd7b,_0x281fba]),_0x8ff9f3['compare'](_0x281fba,_0x4bbd7b);},'isVisible':({plugins:_0x2d001c},_0x9868e0)=>{const _0x311ae7=_0x2d001c['get'](d);return!(_0x311ae7['repository']['getRevisionsInDiff'](_0x311ae7['diff'])['length']>0x2)&&!_0x9868e0['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x584475,{id:_0x5504b3})=>{_0x584475['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5504b3);},'isVisible':({plugins:_0x1ede37},_0x2ffca1)=>!!_0x1ede37['get'](d)['repository']['getLaterVisibleRevision'](_0x2ffca1['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1c69ca},{id:_0x189578,revisionNameView:_0x27b819})=>{const _0x2f2732=_0x1c69ca['get'](d),_0x3a6d46=_0x2f2732['repository']['getEarlierVisibleRevision'](_0x189578);_0x2f2732['compare'](_0x189578,_0x3a6d46),_0x27b819['focus'](),_0x27b819['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1f1898,_0x1c1d7a){super(_0x1f1898),this['_view']=_0x1c1d7a,this['_toolbarConfig']=ht(_0x1f1898['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x3da222){const _0x485520=this['editor'],_0x11894b=this['view'],_0x18c21c=_0x485520['editing']['view'],_0x412b81=_0x11894b['editable'],_0xc71b6c=_0x18c21c['document']['getRoot']();_0x412b81['name']=_0xc71b6c['rootName'],_0x11894b['render']();const _0xba2501=_0x412b81['element'];this['setEditableElement'](_0x412b81['name'],_0xba2501),_0x11894b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x18c21c['attachDomRoot'](_0xba2501),this['_elementReplacer']['replace'](_0x3da222,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x18a12d=this['view'],_0xd0e6d4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xd0e6d4['detachDomRoot'](_0x18a12d['editable']['name']),_0x18a12d['destroy']();}['_initToolbar'](){const _0x10212d=this['view'];_0x10212d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x10212d['stickyPanel']['limiterElement']=_0x10212d['element'],_0x10212d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3604be})=>_0x3604be),_0x10212d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x10212d['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x54fd67,_0x6f91cd,_0x577551={}){super(_0x54fd67),this['stickyPanel']=new lt(_0x54fd67),this['toolbar']=new nt(_0x54fd67,{'shouldGroupWhenFull':_0x577551['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x54fd67,_0x6f91cd);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x6b804f,_0x53fc5c){super(_0x53fc5c),this['sourceElement']=_0x6b804f,this['model']['document']['createRoot']();const _0x38885a=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x38885a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3ddcee,_0x5f2c5a){const _0x145c1e=new this(_0x3ddcee,_0x5f2c5a);return await _0x145c1e['initPlugins'](),await _0x145c1e['ui']['init'](_0x3ddcee),await _0x145c1e['data']['init'](_0x145c1e['config']['get']('initialData')||''),_0x145c1e['fire']('ready'),_0x145c1e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x24c069{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4122f6){function _0x444e25(_0x212b6d){return _0x212b6d['map'](_0x2603ca=>String['fromCharCode'](_0x2603ca))['join']('');}super(_0x4122f6),this['result']='end',_0x4122f6[_0x444e25([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x444e25([0x76,0x69,0x65,0x77])][_0x444e25([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x444e25([0x61,0x75,0x74,0x6f]),_0x4122f6[_0x444e25([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x444e25([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x444e25([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x444e25([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x444e25([0x6f,0x6b])});}}class H extends _0x24c069{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x38aa4b){if(super(_0x38aa4b),!this['editor']['config']['get']('revisionHistory'))throw new _0x249248('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x28d4b2=>this['_showRevisionViewer']({..._0x28d4b2,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x21fa45=>this['_closeRevisionViewer'](_0x21fa45)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5db308=>this['_restoreRevision'](_0x5db308)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x152251){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x152251;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4ee404){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4ee404);}['getRevision'](_0x47de23){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x47de23);}['getRevisions'](_0x47e2fb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x47e2fb||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5dfdfd=this['editor'],_0xed6dde=_0x3be582(_0x5dfdfd,p),_0x5d38c3=_0x5dfdfd['plugins']['get']('RevisionTracker'),_0x5d987c=_0x5dfdfd['plugins']['get']('Users')['users'];return _0xed6dde['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xed6dde['lazyRoots'],(_0xed6dde['plugins']['push'](k,d,m,class extends _0x24c069{static get['requires'](){return[d,'Users'];}['init'](){const _0x21a87f=this['editor']['plugins']['get']('Users');for(const _0x8364e1 of _0x5d987c)_0x8364e1['isAnonymous']||_0x21a87f['getUser'](_0x8364e1['id'])||_0x21a87f['addUser'](_0x8364e1);const _0x2247d6=_0x5d38c3['repository']['getRevisions']();let _0x11786b=null;const _0x261cd2=this['editor']['plugins']['get']('RevisionViewer');_0x261cd2['adapter']=_0x5d38c3['adapter'],_0x261cd2['bind']('isEnabled')['to'](_0x5d38c3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5dfdfd,'isReadOnly',_0x4898e0=>!_0x4898e0);for(const _0x514881 of _0x2247d6){const _0xa09e6c=null===_0x514881['creator'];if(_0xa09e6c&&_0x514881['toVersion']===_0x514881['fromVersion'])continue;const _0x1a96a0=_0x514881['toJSON']();_0x261cd2['addRevisionData'](_0x1a96a0,(_0x257378,_0x5e59ef,_0x497b67)=>{if(_0xa09e6c){if(_0x11786b)_0x11786b['_update'](_0x257378,_0x5e59ef);else{if(!_0x5e59ef){const _0x156315=_0x497b67['toJSON']();_0x156315['id']=_0xc034ba(),_0x5d38c3['saveRevision'](_0x156315,_0x497b67['toVersion'])['then'](_0x16c604=>{_0x11786b=_0x16c604;});}}}else _0x514881['_update'](_0x257378,_0x5e59ef);});}}},g),_0xed6dde);}['_enhanceShowRevisionViewerCallback'](){const _0x232ae7=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xc0ccb0=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5734ab=this['editor']['plugins']['get']('Autosave');await _0x5734ab['save']();}else await _0xc0ccb0['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x76f5d3=this['editor']['plugins']['get']('Dialog');_0x76f5d3['isOpen']&&_0x76f5d3['hide']();}const _0x210041=this['_getRevisionViewerEditorConfig']();return _0x232ae7(_0x210041)['then'](_0x30cd88=>{return(this['_viewerEditor']=_0x30cd88,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x30cd88;})['catch'](_0x23c9d0=>(console['error'](_0x23c9d0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5edb4d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5edb4d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1803cd=this['editor']['plugins']['get']('Annotations');_0x1803cd['refreshVisibility'](),_0x1803cd['refreshPositioning']();}})));}['_showRevisionViewer'](_0x213427){const _0x2a95c3=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x52132f=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3f81f6=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3f81f6,_0x213427)['then'](_0xa73998=>(_0x52132f['style']['display']='block',_0x2a95c3['style']['display']='none',_0xa73998));}['_closeRevisionViewer'](_0x5353d1){const _0x2f3f3a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2f3f3a['style']['display']='',_0x5353d1['destroy']();}async['_restoreRevision'](_0x55dcfb){const _0x5b8a61=this['editor'],_0x15da60=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1cd8e3=_0x5b8a61['plugins']['get']('RevisionTracker'),_0xe59944=_0x15da60['repository']['getRevision'](_0x55dcfb);let _0x11fd11,_0x5cf071,_0x42856d;try{_0x11fd11=await _0x15da60['getRevisionData'](_0xe59944),_0x5cf071=await _0x15da60['getRevisionRootsAttributes'](_0xe59944);}catch(_0x3e6332){return void console['error'](_0x3e6332);}_0x5b8a61['model']['change'](_0x4a7db5=>{for(const _0x42ea2f of Array['from'](_0x5b8a61['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4a7db5['removeMarker'](_0x42ea2f);}),_0x15da60['isReady']=!0x1,_0x5b8a61['model']['enqueueChange'](_0x2fafeb=>{_0x2fafeb['setSelection'](null),_0x2fafeb['removeSelectionAttribute'](_0x5b8a61['model']['document']['selection']['getAttributeKeys']());const _0x48ffbc=Object['keys'](_0x11fd11);for(const _0x27b0a3 of _0x5b8a61['model']['document']['roots'])'$graveyard'!=_0x27b0a3['rootName']&&_0x27b0a3['isAttached']()&&!_0x48ffbc['includes'](_0x27b0a3['rootName'])&&_0x2fafeb['detachRoot'](_0x27b0a3);for(const _0x23a42a of _0x48ffbc){let _0x457cda=_0x5b8a61['model']['document']['getRoot'](_0x23a42a);_0x457cda&&_0x457cda['isAttached']()||(_0x457cda=_0x2fafeb['addRoot'](_0x23a42a));const _0x544be7=_0x5cf071[_0x23a42a],_0x36b29d=Object['keys'](_0x544be7),_0x3b9e3d=_0x11fd11[_0x23a42a];for(const _0x2a6c2a of _0x457cda['getAttributeKeys']())_0x36b29d['includes'](_0x2a6c2a)||_0x2fafeb['removeAttribute'](_0x2a6c2a,_0x457cda);for(const _0x1f89e4 of _0x36b29d)_0x2fafeb['setAttribute'](_0x1f89e4,_0x5cf071[_0x23a42a][_0x1f89e4],_0x457cda);_0x2fafeb['remove'](_0x2fafeb['createRangeIn'](_0x457cda)),_0x2fafeb['insert'](_0x5b8a61['data']['parse'](_0x3b9e3d,_0x457cda),_0x457cda,0x0);}});const _0x366330=R(_0x5b8a61['locale'],'Restored');if(_0xe59944['name'])_0x42856d=-0x1==_0xe59944['name']['indexOf'](_0x366330)?_0x366330+':\x20'+_0xe59944['name']:_0xe59944['name'];else _0x42856d=_0x366330+':\x20'+(_0xe59944['createdAt']['toLocaleDateString'](_0x5b8a61['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xe59944['createdAt']['toLocaleTimeString'](_0x5b8a61['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1cd8e3['saveRevision']({'name':_0x42856d}),_0x15da60['isReady']=!0x0,_0x5b8a61['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x57bcff){super(_0x57bcff),this['_revisionViewer']=_0x57bcff['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x51b37b=this['_revisionsRepository']['_revisions'],_0x35c461=this['_createRevisionActions'](),_0x292d4c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x51b37b,_0x35c461,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',(_0x26833d,_0x199b1f)=>{_0x199b1f['revisionViews']['on']('add',(_0xb5d02f,_0x648863)=>{_0x648863['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)),_0x292d4c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x11b71f=this['_revisionsRepository']['getRevision'](0x0);if(_0x11b71f){const _0x3bc34c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x11b71f['id']);this['_revisionViewer']['compare'](_0x11b71f,_0x3bc34c);}}['_handleRevisionSelected'](_0x41d316,_0x361986){const _0x5b318e=this['_revisionsRepository']['getRevision'](_0x361986['id']),_0x4f9bed=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5b318e['id']);this['_revisionViewer']['compare'](_0x5b318e,_0x4f9bed);}['_handleRevisionSetName'](_0x2e61f6,_0x489382){this['_revisionsRepository']['getRevision'](_0x489382['id'])['setName'](_0x489382['name']);}['_handleDiffChange'](_0x39f23a,_0x39de10,_0x4b9c93){const _0x82c8d=this['_revisionsRepository']['getRevisionsInDiff'](_0x4b9c93);_0x82c8d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x82c8d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x82c8d[0x0]));}['_createRevisionActions'](){const _0x2a190f=this['editor'],_0x2b4f2d=g['availableRevisionActions'],_0x5224bb=_0x2a190f['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5224bb['length'])return _0x5224bb['map'](_0x197db6=>{const _0x49b522='string'==typeof _0x197db6?Object['assign']({},_0x2b4f2d[_0x197db6]):_0x197db6;return _0x49b522['action']=_0x49b522['action']['bind'](this,_0x2a190f),_0x49b522['isVisible']&&(_0x49b522['isVisible']=_0x49b522['isVisible']['bind'](this,_0x2a190f)),_0x49b522;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x73524a},_0x368ae9)=>{const _0x453fcf=_0x73524a['get'](d),_0x32093c=_0x453fcf['repository'];let _0x7e30e2=_0x453fcf['diff']['newRevisionId'],_0x2be03a=_0x368ae9['id'];_0x32093c['getIndex'](_0x7e30e2)>_0x32093c['getIndex'](_0x2be03a)&&([_0x7e30e2,_0x2be03a]=[_0x2be03a,_0x7e30e2]),_0x453fcf['compare'](_0x7e30e2,_0x2be03a);},'isVisible':({plugins:_0x34ae0c},_0x3cc7f0)=>{const _0x44fd00=_0x34ae0c['get'](d);return!(_0x44fd00['repository']['getRevisionsInDiff'](_0x44fd00['diff'])['length']>0x2)&&!_0x3cc7f0['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x566d78,{id:_0x126238})=>{_0x566d78['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x126238);},'isVisible':({plugins:_0x125da7},_0x19e7f3)=>!!_0x125da7['get'](d)['repository']['getLaterVisibleRevision'](_0x19e7f3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2e0cd9},{id:_0x162112,revisionNameView:_0x3a53b6})=>{const _0x53124d=_0x2e0cd9['get'](d),_0x4da365=_0x53124d['repository']['getEarlierVisibleRevision'](_0x162112);_0x53124d['compare'](_0x162112,_0x4da365),_0x3a53b6['focus'](),_0x3a53b6['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4a206d,_0x2e3c28){super(_0x4a206d),this['_view']=_0x2e3c28,this['_toolbarConfig']=ht(_0x4a206d['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x2145c8){const _0x485c13=this['editor'],_0x58ddc2=this['view'],_0x4a13cf=_0x485c13['editing']['view'],_0x1c2e1d=_0x58ddc2['editable'],_0x222026=_0x4a13cf['document']['getRoot']();_0x1c2e1d['name']=_0x222026['rootName'],_0x58ddc2['render']();const _0x303041=_0x1c2e1d['element'];this['setEditableElement'](_0x1c2e1d['name'],_0x303041),_0x58ddc2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4a13cf['attachDomRoot'](_0x303041),this['_elementReplacer']['replace'](_0x2145c8,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3a38d8=this['view'],_0x39f59e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x39f59e['detachDomRoot'](_0x3a38d8['editable']['name']),_0x3a38d8['destroy']();}['_initToolbar'](){const _0x345c6a=this['view'];_0x345c6a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x345c6a['stickyPanel']['limiterElement']=_0x345c6a['element'],_0x345c6a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4fabb4})=>_0x4fabb4),_0x345c6a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x345c6a['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3d2dc6,_0x41bd19,_0x513262={}){super(_0x3d2dc6),this['stickyPanel']=new lt(_0x3d2dc6),this['toolbar']=new nt(_0x3d2dc6,{'shouldGroupWhenFull':_0x513262['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x3d2dc6,_0x41bd19);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x210d11,_0x5056c0){super(_0x5056c0),this['sourceElement']=_0x210d11,this['model']['document']['createRoot']();const _0x735001=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x735001);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x11f236,_0x34ba0e){const _0x4769db=new this(_0x11f236,_0x34ba0e);return await _0x4769db['initPlugins'](),await _0x4769db['ui']['init'](_0x11f236),await _0x4769db['data']['init'](_0x4769db['config']['get']('initialData')||''),_0x4769db['fire']('ready'),_0x4769db;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x2808fc{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2633e2){function _0x154c37(_0xe480c5){return _0xe480c5['map'](_0x41c3c0=>String['fromCharCode'](_0x41c3c0))['join']('');}super(_0x2633e2),this['result']='end',_0x2633e2[_0x154c37([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x154c37([0x76,0x69,0x65,0x77])][_0x154c37([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x154c37([0x61,0x75,0x74,0x6f]),_0x2633e2[_0x154c37([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x154c37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x154c37([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x154c37([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x154c37([0x6f,0x6b])});}}class H extends _0x2808fc{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2bed2f){if(super(_0x2bed2f),!this['editor']['config']['get']('revisionHistory'))throw new _0x8d401c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x589ff9=>this['_showRevisionViewer']({..._0x589ff9,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xb2dee0=>this['_closeRevisionViewer'](_0xb2dee0)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xb66682=>this['_restoreRevision'](_0xb66682)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x367713){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x367713;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xd8ce49){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xd8ce49);}['getRevision'](_0x2093e7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2093e7);}['getRevisions'](_0x22e37a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x22e37a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4d1644=this['editor'],_0x423268=_0x31cf92(_0x4d1644,p),_0x5aca95=_0x4d1644['plugins']['get']('RevisionTracker'),_0x47eb4c=_0x4d1644['plugins']['get']('Users')['users'];return _0x423268['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x423268['lazyRoots'],(_0x423268['plugins']['push'](k,d,m,class extends _0x2808fc{static get['requires'](){return[d,'Users'];}['init'](){const _0x5e9403=this['editor']['plugins']['get']('Users');for(const _0x243652 of _0x47eb4c)_0x243652['isAnonymous']||_0x5e9403['getUser'](_0x243652['id'])||_0x5e9403['addUser'](_0x243652);const _0x5db5e5=_0x5aca95['repository']['getRevisions']();let _0x547ee1=null;const _0x120169=this['editor']['plugins']['get']('RevisionViewer');_0x120169['adapter']=_0x5aca95['adapter'],_0x120169['bind']('isEnabled')['to'](_0x5aca95),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4d1644,'isReadOnly',_0x317b33=>!_0x317b33);for(const _0x30d498 of _0x5db5e5){const _0x4ae129=null===_0x30d498['creator'];if(_0x4ae129&&_0x30d498['toVersion']===_0x30d498['fromVersion'])continue;const _0x2ad2f5=_0x30d498['toJSON']();_0x120169['addRevisionData'](_0x2ad2f5,(_0x30ea2d,_0x718b3f,_0x3a380f)=>{if(_0x4ae129){if(_0x547ee1)_0x547ee1['_update'](_0x30ea2d,_0x718b3f);else{if(!_0x718b3f){const _0x1766f8=_0x3a380f['toJSON']();_0x1766f8['id']=_0x3a23ba(),_0x5aca95['saveRevision'](_0x1766f8,_0x3a380f['toVersion'])['then'](_0x5c9f60=>{_0x547ee1=_0x5c9f60;});}}}else _0x30d498['_update'](_0x30ea2d,_0x718b3f);});}}},g),_0x423268);}['_enhanceShowRevisionViewerCallback'](){const _0x1f1a81=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2e4dd9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x35b396=this['editor']['plugins']['get']('Autosave');await _0x35b396['save']();}else await _0x2e4dd9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x290203=this['editor']['plugins']['get']('Dialog');_0x290203['isOpen']&&_0x290203['hide']();}const _0x4def0f=this['_getRevisionViewerEditorConfig']();return _0x1f1a81(_0x4def0f)['then'](_0x1aa39d=>{return(this['_viewerEditor']=_0x1aa39d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1aa39d;})['catch'](_0x1b2569=>(console['error'](_0x1b2569),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x372fce=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x372fce(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3d536e=this['editor']['plugins']['get']('Annotations');_0x3d536e['refreshVisibility'](),_0x3d536e['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2d39f1){const _0x5e5903=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x47c282=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4f1fcf=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4f1fcf,_0x2d39f1)['then'](_0xf15631=>(_0x47c282['style']['display']='block',_0x5e5903['style']['display']='none',_0xf15631));}['_closeRevisionViewer'](_0x175a7c){const _0x3bf9fa=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3bf9fa['style']['display']='',_0x175a7c['destroy']();}async['_restoreRevision'](_0x578e1d){const _0x29757f=this['editor'],_0x54d32d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x404bf4=_0x29757f['plugins']['get']('RevisionTracker'),_0x146c0e=_0x54d32d['repository']['getRevision'](_0x578e1d);let _0x406ede,_0xed0b78,_0x3d1743;try{_0x406ede=await _0x54d32d['getRevisionData'](_0x146c0e),_0xed0b78=await _0x54d32d['getRevisionRootsAttributes'](_0x146c0e);}catch(_0x348786){return void console['error'](_0x348786);}_0x29757f['model']['change'](_0x9c5cf7=>{for(const _0x511a50 of Array['from'](_0x29757f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x9c5cf7['removeMarker'](_0x511a50);}),_0x54d32d['isReady']=!0x1,_0x29757f['model']['enqueueChange'](_0x2e3675=>{_0x2e3675['setSelection'](null),_0x2e3675['removeSelectionAttribute'](_0x29757f['model']['document']['selection']['getAttributeKeys']());const _0x27f0c9=Object['keys'](_0x406ede);for(const _0x37c740 of _0x29757f['model']['document']['roots'])'$graveyard'!=_0x37c740['rootName']&&_0x37c740['isAttached']()&&!_0x27f0c9['includes'](_0x37c740['rootName'])&&_0x2e3675['detachRoot'](_0x37c740);for(const _0x43c672 of _0x27f0c9){let _0x4fb790=_0x29757f['model']['document']['getRoot'](_0x43c672);_0x4fb790&&_0x4fb790['isAttached']()||(_0x4fb790=_0x2e3675['addRoot'](_0x43c672));const _0x4311dc=_0xed0b78[_0x43c672],_0x1d7488=Object['keys'](_0x4311dc),_0x2b214e=_0x406ede[_0x43c672];for(const _0xc7a2fc of _0x4fb790['getAttributeKeys']())_0x1d7488['includes'](_0xc7a2fc)||_0x2e3675['removeAttribute'](_0xc7a2fc,_0x4fb790);for(const _0x21f03c of _0x1d7488)_0x2e3675['setAttribute'](_0x21f03c,_0xed0b78[_0x43c672][_0x21f03c],_0x4fb790);_0x2e3675['remove'](_0x2e3675['createRangeIn'](_0x4fb790)),_0x2e3675['insert'](_0x29757f['data']['parse'](_0x2b214e,_0x4fb790),_0x4fb790,0x0);}});const _0x28b085=R(_0x29757f['locale'],'Restored');if(_0x146c0e['name'])_0x3d1743=-0x1==_0x146c0e['name']['indexOf'](_0x28b085)?_0x28b085+':\x20'+_0x146c0e['name']:_0x146c0e['name'];else _0x3d1743=_0x28b085+':\x20'+(_0x146c0e['createdAt']['toLocaleDateString'](_0x29757f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x146c0e['createdAt']['toLocaleTimeString'](_0x29757f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x404bf4['saveRevision']({'name':_0x3d1743}),_0x54d32d['isReady']=!0x0,_0x29757f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};