@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250326.2 → 0.0.0-nightly-20250327.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 _0x6a77e2,uid as _0x58b8ff,Collection as _0x5495c4,logWarning as _0xf43310,FocusTracker as _0x50bd47,KeystrokeHandler as _0x4ecd61,scrollViewportToShowTarget as _0x2606af,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0xdb6012}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x291809,set as _0x5848ba,unset as _0x934b01,isEqual as _0x7a304c}from'es-toolkit/compat';import{Plugin as _0x3ba875,PendingActions as _0x25252b,Command as _0x23e514,ElementApiMixin as _0x40797a,Editor as _0x3664be}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1b8b11,getMarkerDomElement as _0x225b7e,ConfirmMixin as _0x1f1bf1,sanitizeEditorConfig as _0x22bf10}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4e0af3,ViewAttributeElement as _0xfb9c57,ViewEmptyElement as _0x4480bf,ViewRawElement as _0x346d39,ViewUIElement as _0x42c222,ViewDocumentFragment as _0x1852c8,ViewText as _0x2f8706,ViewElement as _0xfd25df,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x209882,IconChevronUp as _0x5abbae,IconChevronDown as _0x4ea29c,IconUndo as _0x55c272,IconUser as _0x4379bb,IconThreeVerticalDots as _0x2cdf3c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x18313a,injectCssTransitionDisabler as ts,submitHandler as _0x47be2c,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x3564c9,ListView as _0x10dfcb,ListItemView as te,ButtonView as _0x29dce1,MenuBarMenuView as _0x1ab6f1,MenuBarMenuListView as _0x56e625,MenuBarMenuListItemView as _0x39cc4d,MenuBarMenuListItemButtonView as _0x34296b,ContextualBalloon as _0x44407,ToolbarSeparatorView as _0x15eefc,IconView as _0x9e0bb7,addListToDropdown as _0x294d83,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x16a5a3}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x6a77e2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xfb318){super(),this['id']=_0xfb318['id']||_0x58b8ff(),this['creator']=_0xfb318['creator']||null,this['authors']=_0xfb318['authors']||[],this['diffData']=_0xfb318['diffData']||null,this['toVersion']=_0xfb318['toVersion']||0x0,this['fromVersion']=_0xfb318['fromVersion']||0x0,this['set']('name',_0xfb318['name']||''),this['set']('createdAt',_0xfb318['createdAt']||new Date()),this['set']('attributes',_0xfb318['attributes']||{});}['setName'](_0x387de2){this['_update']({'name':_0x387de2});}['setAttribute'](_0x543eaa,_0x2a2248){const _0x3d3abd=_0x291809(this['attributes']);_0x5848ba(_0x3d3abd,_0x543eaa,_0x2a2248),this['_update']({'attributes':_0x3d3abd});}['removeAttribute'](_0x5980d2){const _0x3bd59f=_0x291809(this['attributes']);_0x934b01(_0x3bd59f,_0x5980d2),this['_update']({'attributes':_0x3bd59f});}['_update'](_0x2b2aa7,_0x29e2bb=!0x1){let _0x1fdf8c=!0x1;const _0x41cda3={'id':this['id']},_0x2ffb62=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a0e08 of _0x2ffb62){const _0x1f7923=_0x2b2aa7[_0x5a0e08];void 0x0!==_0x1f7923&&_0x1f7923!==this[_0x5a0e08]&&(this[_0x5a0e08]=_0x1f7923,_0x41cda3[_0x5a0e08]=_0x1f7923,_0x1fdf8c=!0x0);}_0x1fdf8c&&(_0x41cda3['authors']&&(_0x41cda3['authorsIds']=_0x41cda3['authors']['map'](_0x4c07a3=>_0x4c07a3['id']),delete _0x41cda3['authors']),this['fire']('_update',_0x41cda3,_0x29e2bb));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x24a681=>_0x24a681['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x3ba875{['_revisions'];static get['requires'](){return[_0x1b8b11];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1dfa78){super(_0x1dfa78),this['_revisions']=new _0x5495c4();}['afterInit'](){!async function(_0x22b0b9){const _0x537b2c=_0x30efda([0x6d,0x46,0x35,0x49,0x4d,0x69,0x34,0x6c,0x57,0x42,0x77,0x54,0x62,0x58,0x7a,0x72,0x6f,0x39,0x59,0x4e,0x6b,0x47,0x32,0x52,0x4c,0x75,0x55,0x56,0x4f,0x76,0x61,0x50,0x79,0x74,0x4a,0x66,0x6e,0x37,0x64,0x67,0x38,0x73,0x51,0x41,0x36,0x44,0x33,0x30,0x6a,0x45,0x70,0x31,0x65,0x4b,0x68,0x63,0x78,0x71,0x5a,0x43,0x53,0x48]),_0x47cd1f=0xeb829,_0x4bbaf7=0x41eb99b3,_0x48619c=0x41ecfa8b^_0x4bbaf7,_0x276b28=window[_0x30efda([0x44,0x61,0x74,0x65])][_0x30efda([0x6e,0x6f,0x77])](),_0x1b9de3=_0x22b0b9[_0x30efda([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb70054=new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b3a9a=>{_0x1b9de3[_0x30efda([0x6f,0x6e,0x63,0x65])](_0x30efda([0x72,0x65,0x61,0x64,0x79]),_0x1b3a9a);}),_0x21e0cb={[_0x30efda([0x6b,0x74,0x79])]:_0x30efda([0x45,0x43]),[_0x30efda([0x75,0x73,0x65])]:_0x30efda([0x73,0x69,0x67]),[_0x30efda([0x63,0x72,0x76])]:_0x30efda([0x50,0x2d,0x32,0x35,0x36]),[_0x30efda([0x78])]:_0x30efda([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]),[_0x30efda([0x79])]:_0x30efda([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]),[_0x30efda([0x61,0x6c,0x67])]:_0x30efda([0x45,0x53,0x32,0x35,0x36])},_0x1e9771=_0x1b9de3[_0x30efda([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30efda([0x67,0x65,0x74])](_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18b881(){let _0x21ef21,_0xeda640=null,_0x9bfec1=null;try{if(_0x1e9771==_0x30efda([0x47,0x50,0x4c]))return _0x30efda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21ef21=_0x1922d7(),!_0x21ef21)return _0x30efda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21ef21[_0x30efda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9bfec1=_0x2cccc4(_0x21ef21[_0x30efda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21ef21[_0x30efda([0x6a,0x74,0x69])])),await _0x36f90f()?_0x26f254()?_0x1713d0()?_0x30efda([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x359bb6()?(_0x21ef21[_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30efda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeda640=_0xef7ead(_0x30efda([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21ef21[_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30efda([0x74,0x72,0x69,0x61,0x6c])&&(_0xeda640=_0xef7ead(_0x30efda([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4796d5()):_0x30efda([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30efda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30efda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3231eb){return _0x30efda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1713d0(){const _0x185f86=[_0x30efda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30efda([0x74,0x72,0x69,0x61,0x6c])][_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ef21[_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x276b28/0x3e8:0xe10*_0x48619c;return _0x21ef21[_0x30efda([0x65,0x78,0x70])]<_0x185f86;}function _0x26f254(){const _0x28cebd=_0x21ef21[_0x30efda([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x28cebd)return!0x1;if(_0x28cebd[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30efda([0x2a])))return!0x0;if(_0x28cebd[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30efda([0x52,0x48])))return!0x0;if(_0x28cebd[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30efda([0x52,0x52,0x48]))){if(_0x458815())return!0x0;if(_0x666d3e()||_0x35a172())return!0x0;}return!0x1;}function _0x359bb6(){const _0x2af5d2=_0x21ef21[_0x30efda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2af5d2||0x0==_0x2af5d2[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21f0a9}=new URL(window[_0x30efda([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2af5d2[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21f0a9))return!0x0;const _0x2ce956=_0x21f0a9[_0x30efda([0x73,0x70,0x6c,0x69,0x74])](_0x30efda([0x2e]));return _0x2af5d2[_0x30efda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ae48d=>_0x4ae48d[_0x30efda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30efda([0x2a])))[_0x30efda([0x6d,0x61,0x70])](_0x2dcbec=>_0x2dcbec[_0x30efda([0x73,0x70,0x6c,0x69,0x74])](_0x30efda([0x2e])))[_0x30efda([0x73,0x6f,0x6d,0x65])](_0x36eac5=>_0x2ce956[_0x30efda([0x65,0x76,0x65,0x72,0x79])]((_0x31b547,_0x14efb7)=>_0x36eac5[_0x14efb7]===_0x31b547||_0x36eac5[_0x14efb7]===_0x30efda([0x2a])));}function _0x4796d5(){return _0xeda640&&_0x9bfec1?new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a516c,_0x18abef)=>{_0xeda640[_0x30efda([0x74,0x68,0x65,0x6e])](_0x3a516c,_0x18abef),_0x9bfec1[_0x30efda([0x74,0x68,0x65,0x6e])](_0x43f79c=>{_0x43f79c!=_0x30efda([0x56,0x61,0x6c,0x69,0x64])&&_0x3a516c(_0x43f79c);},_0x18abef);}):_0xeda640||_0x9bfec1||_0x30efda([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cccc4(_0x5d35a2,_0x4f403c){return new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1846ef=>{if(_0x9cecab())return _0x1846ef(_0x30efda([0x56,0x61,0x6c,0x69,0x64]));_0x157d69(),_0x1b9de3[_0x30efda([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30efda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x65be2d=!0x1;const _0x179a39=_0x58b8ff();function _0xe11d34(_0x2f55c7){return!!_0x2f55c7&&(typeof _0x2f55c7===_0x30efda([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f55c7===_0x30efda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f55c7[_0x30efda([0x74,0x68,0x65,0x6e])]===_0x30efda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f55c7[_0x30efda([0x63,0x61,0x74,0x63,0x68])]===_0x30efda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x266061(_0x416e22){_0x2367fe(_0x416e22)[_0x30efda([0x74,0x68,0x65,0x6e])](_0x4d77ec=>{if(!_0x4d77ec||_0x4d77ec[_0x30efda([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30efda([0x6f,0x6b]))return _0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31aafd(_0x329db6(_0x179a39+_0x4f403c))!=_0x4d77ec[_0x30efda([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30efda([0x56,0x61,0x6c,0x69,0x64]);})[_0x30efda([0x74,0x68,0x65,0x6e])](_0x3210ba=>(_0x27cfa4(),_0x3210ba),()=>{const _0xcef7b9=_0x325d85();return null==_0xcef7b9?(_0x27cfa4(),_0x30efda([0x56,0x61,0x6c,0x69,0x64])):_0x30efda(_0x276b28-_0xcef7b9>(0x65e71db3^_0x4bbaf7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30efda([0x74,0x68,0x65,0x6e])](_0x1846ef)[_0x30efda([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1846ef(_0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33ec1d=0x41dd7733^_0x4bbaf7;function _0x27cfa4(){const _0x356e3a=_0x30efda([0x6c,0x6c,0x63,0x74,0x2d])+_0x31aafd(_0x329db6(_0x5d35a2)),_0x38e296=_0x3acb4d(_0x31aafd(window[_0x30efda([0x4d,0x61,0x74,0x68])][_0x30efda([0x63,0x65,0x69,0x6c])](_0x276b28/_0x33ec1d)));window[_0x30efda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30efda([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x356e3a,_0x38e296);}function _0x325d85(){const _0x2b3a7f=_0x30efda([0x6c,0x6c,0x63,0x74,0x2d])+_0x31aafd(_0x329db6(_0x5d35a2)),_0x11b106=window[_0x30efda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30efda([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b3a7f);return _0x11b106?window[_0x30efda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3acb4d(_0x11b106),0x10)*_0x33ec1d:null;}function _0x2367fe(_0x2bc7e6){return new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50555a,_0x3d3377)=>{_0x2bc7e6[_0x30efda([0x74,0x68,0x65,0x6e])](_0x50555a,_0x3d3377),window[_0x30efda([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d3377,0x41ea4d73^_0x4bbaf7);});}}_0x1b9de3[_0x30efda([0x6f,0x6e])](_0x30efda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x345d6e,_0x43eb6f)=>{if(_0x43eb6f[0x0]!=_0x5d35a2)return _0x1846ef(_0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43eb6f[0x1]={..._0x43eb6f[0x1],[_0x30efda([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x179a39};},{[_0x30efda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30efda([0x68,0x69,0x67,0x68])}),_0x1b9de3[_0x30efda([0x6f,0x6e])](_0x30efda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x324922=>{_0xe11d34(_0x324922[_0x30efda([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x65be2d=!0x0,_0x266061(_0x324922[_0x30efda([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30efda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30efda([0x6c,0x6f,0x77])}),_0xb70054[_0x30efda([0x74,0x68,0x65,0x6e])](()=>{_0x65be2d||_0x1846ef(_0x30efda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9cecab(){return _0x1b9de3[_0x30efda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30efda([0x76,0x69,0x65,0x77])][_0x30efda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30efda([0x61,0x75,0x74,0x6f]);}function _0x157d69(){_0x1b9de3[_0x30efda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30efda([0x76,0x69,0x65,0x77])][_0x30efda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30efda([0x61,0x75,0x74,0x6f]);}}function _0xef7ead(_0x591b98){const _0x4ced23=[new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dbf32=>setTimeout(_0x4dbf32,0x41e2a77f^_0x4bbaf7)),_0xb70054[_0x30efda([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e0209=>{const _0x35c886=0x41eb99b4^_0x4bbaf7,_0x2b941d=_0x22b0b9[_0x30efda([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2f5155(){_0x2b941d[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35c886&&_0x3e0209();}_0x2f5155(),_0x2b941d[_0x30efda([0x6f,0x6e])](_0x30efda([0x61,0x64,0x64]),_0x2f5155);})),new window[(_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x358826=>{function _0x124d58(){for(const _0x59da24 in window)if(window[_0x30efda([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x30efda([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x59da24))&&window[_0x59da24]==_0x47cd1f)return _0x358826();_0x1b9de3[_0x30efda([0x73,0x74,0x61,0x74,0x65])]!=_0x30efda([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x30efda([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x124d58,0x41eb8a3b^_0x4bbaf7);}_0x484062(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x124d58();})];return window[_0x30efda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30efda([0x72,0x61,0x63,0x65])](_0x4ced23)[_0x30efda([0x74,0x68,0x65,0x6e])](()=>_0x591b98);}async function _0x42839d(){if(await _0xb70054,_0x484062(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x55ae27=_0x22b0b9[_0x30efda([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x27cfe9=_0x22b0b9[_0x30efda([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])](_0x55ae27[_0x30efda([0x69,0x64])]),_0x5f5bb4=_0xc0da89(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5f5bb4[_0x30efda([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x55ae27['id'],_0x27cfe9?_0x27cfe9['id']:null,!0x0),_0x5f5bb4[_0x30efda([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x30efda([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5f5bb4[_0x30efda([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5f5bb4[_0x30efda([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x318bcf,void(_0x5f5bb4[_0x30efda([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x318bcf);}if(_0x484062(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1340ca=_0xc0da89(_0x30efda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1340ca[_0x30efda([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x30efda([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1340ca[_0x30efda([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1340ca[_0x30efda([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x318bcf,_0x1340ca[_0x30efda([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x318bcf;}_0x1b9de3[_0x30efda([0x6d,0x6f,0x64,0x65,0x6c])][_0x30efda([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x318bcf,_0x1b9de3[_0x30efda([0x6d,0x6f,0x64,0x65,0x6c])][_0x30efda([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x318bcf,_0x1b9de3[_0x30efda([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30efda([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x458815(){return _0x484062(_0x30efda([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc0da89(_0x30efda([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x30efda([0x73,0x74,0x61,0x74,0x65])]==_0x30efda([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x666d3e(){return _0x484062(_0x30efda([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 _0x35a172(){return _0x484062(_0x30efda([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5d842e(_0xbb9630){const _0x57edf4=_0x1ed3a0();_0x1b9de3[_0x57edf4]=_0x30efda([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])+_0xbb9630,_0xbb9630[_0x30efda([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x30efda([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1ed3a0()]=_0x47cd1f),_0xbb9630!=_0x30efda([0x56,0x61,0x6c,0x69,0x64])&&_0x42839d();}function _0x1ed3a0(){const _0x17b9e4=window[_0x30efda([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30efda([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30efda([0x6e,0x6f,0x77])]())[_0x30efda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30efda([0x2e]),'');let _0xacccd9=_0x30efda([0x6d]);for(let _0x42b1e1=0x0;_0x42b1e1<_0x17b9e4[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42b1e1+=0x2){let _0x13cdf1=window[_0x30efda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17b9e4[_0x30efda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42b1e1,_0x42b1e1+0x2));_0x13cdf1>=_0x537b2c[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13cdf1-=_0x537b2c[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xacccd9+=_0x537b2c[_0x13cdf1];}return _0xacccd9;}function _0x1922d7(){const _0x3e4b8a=_0x1e9771[_0x30efda([0x73,0x70,0x6c,0x69,0x74])](_0x30efda([0x2e]));if(0x3!=_0x3e4b8a[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x192c77(_0x3e4b8a[0x1]);function _0x192c77(_0x228af6){const _0x34a0da=_0x2cef56(_0x228af6);return _0x34a0da&&_0x2e1718()?_0x34a0da:null;function _0x2e1718(){const _0x26f7c8=_0x34a0da[_0x30efda([0x6a,0x74,0x69])],_0x3604d9=window[_0x30efda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26f7c8[_0x30efda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26f7c8[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x489d83={..._0x34a0da,[_0x30efda([0x6a,0x74,0x69])]:_0x26f7c8[_0x30efda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26f7c8[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x489d83[_0x30efda([0x76,0x63])],_0x329db6(_0x489d83)==_0x3604d9;}}}async function _0x36f90f(){let _0x477d45=!0x0;try{const _0x1d8907=_0x1e9771[_0x30efda([0x73,0x70,0x6c,0x69,0x74])](_0x30efda([0x2e])),[_0x160e13,_0x39133b,_0x107a1b]=_0x1d8907;return _0xb7819e(_0x160e13),await _0x5417c3(_0x160e13,_0x39133b,_0x107a1b),_0x477d45;}catch(_0x33fa21){return!0x1;}function _0xb7819e(_0x8df2a3){const _0x46ad24=_0x2cef56(_0x8df2a3);_0x46ad24&&_0x46ad24[_0x30efda([0x61,0x6c,0x67])]==_0x30efda([0x45,0x53,0x32,0x35,0x36])||(_0x477d45=!0x1);}async function _0x5417c3(_0x596c09,_0x214d86,_0x4b578){const _0x4c910b=window[_0x30efda([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30efda([0x66,0x72,0x6f,0x6d])](_0x20ccc2(_0x4b578),_0x443579=>_0x443579[_0x30efda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xde21f=new window[(_0x30efda([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30efda([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x596c09+_0x30efda([0x2e])+_0x214d86),_0x33e9cc=window[_0x30efda([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30efda([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33e9cc)return;const _0x55410e=await _0x33e9cc[_0x30efda([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30efda([0x6a,0x77,0x6b]),_0x21e0cb,{[_0x30efda([0x6e,0x61,0x6d,0x65])]:_0x30efda([0x45,0x43,0x44,0x53,0x41]),[_0x30efda([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30efda([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30efda([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33e9cc[_0x30efda([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30efda([0x6e,0x61,0x6d,0x65])]:_0x30efda([0x45,0x43,0x44,0x53,0x41]),[_0x30efda([0x68,0x61,0x73,0x68])]:{[_0x30efda([0x6e,0x61,0x6d,0x65])]:_0x30efda([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x55410e,_0x4c910b,_0xde21f)||(_0x477d45=!0x1);}}function _0x2cef56(_0x401837){return _0x401837[_0x30efda([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30efda([0x65,0x79]))?JSON[_0x30efda([0x70,0x61,0x72,0x73,0x65])](_0x20ccc2(_0x401837)):null;}function _0x20ccc2(_0x55dacc){return window[_0x30efda([0x61,0x74,0x6f,0x62])](_0x55dacc[_0x30efda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30efda([0x2b]))[_0x30efda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30efda([0x2f])));}function _0x329db6(_0x174e40){let _0x2e0bef=0x1505;function _0x42466c(_0x51caf8){for(let _0x15cd5c=0x0;_0x15cd5c<_0x51caf8[_0x30efda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15cd5c++){const _0x371d93=_0x51caf8[_0x30efda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15cd5c);_0x2e0bef=(_0x2e0bef<<0x5)+_0x2e0bef+_0x371d93,_0x2e0bef&=_0x2e0bef;}}function _0x43eb24(_0x518bb5){Array[_0x30efda([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x518bb5)?_0x518bb5[_0x30efda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43eb24):_0x518bb5&&typeof _0x518bb5==_0x30efda([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30efda([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x518bb5)[_0x30efda([0x73,0x6f,0x72,0x74])]()[_0x30efda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24ec8e,_0x463d6a])=>{_0x42466c(_0x24ec8e),_0x43eb24(_0x463d6a);}):_0x42466c(window[_0x30efda([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x518bb5));}return _0x43eb24(_0x174e40),_0x2e0bef>>>0x0;}function _0x31aafd(_0x33979c){return _0x33979c[_0x30efda([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30efda([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30efda([0x30]));}function _0x3acb4d(_0x29232d){return _0x29232d[_0x30efda([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30efda([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30efda([0x6a,0x6f,0x69,0x6e])]('');}function _0x484062(_0x1847eb){return _0x1b9de3[_0x30efda([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30efda([0x68,0x61,0x73])](_0x1847eb);}function _0xc0da89(_0x5d77dc){return _0x1b9de3[_0x30efda([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30efda([0x67,0x65,0x74])](_0x5d77dc);}function _0x318bcf(){}function _0x30efda(_0xb104a4){return _0xb104a4['map'](_0x1e475c=>String['fromCharCode'](_0x1e475c))['join']('');}_0x5d842e(await _0x18b881());}(this);}['createRevision'](_0x235389){const _0x4127d4=this['editor']['plugins']['get']('Users');return new h({'id':_0x235389['id'],'name':_0x235389['name'],'creator':_0x235389['creatorId']?_0x4127d4['getUser'](_0x235389['creatorId']):null,'diffData':_0x235389['diffData']||_0x235389['data'],'authors':_0x235389['authorsIds']['map'](_0x713c0=>_0x4127d4['getUser'](_0x713c0)),'createdAt':new Date(_0x235389['createdAt']),'attributes':_0x235389['attributes'],'fromVersion':_0x235389['fromVersion'],'toVersion':_0x235389['toVersion']});}['addRevision'](_0x4a80b5,_0x4f069d=0x0){this['_revisions']['add'](_0x4a80b5,_0x4f069d);}['getRevision'](_0x28567e){return this['_revisions']['get'](_0x28567e);}['getRevisions'](_0x32c835={'toJSON':!0x1}){const _0xc4d684=Array['from'](this['_revisions']);return _0xc4d684['reverse'](),_0x32c835['toJSON']?_0xc4d684['map'](_0x583a07=>_0x583a07['toJSON']()):_0xc4d684;}['getIndex'](_0x11f6a0){return this['_revisions']['getIndex'](_0x11f6a0);}['getEarlierVisibleRevision'](_0x33e26e){const [,_0x206ca3]=this['getRevisionsIterator'](_0x33e26e,{'direction':'earlier'});return _0x206ca3;}['getLaterVisibleRevision'](_0x390470){const [,_0x3917dc]=this['getRevisionsIterator'](_0x390470,{'direction':'later'});return _0x3917dc;}['getRevisionsInDiff'](_0x88599c){const _0x24831f=[];for(const _0x222fbe of this['getRevisionsIterator'](_0x88599c['newRevisionId']))if(_0x24831f['push'](_0x222fbe),_0x222fbe['id']===_0x88599c['oldRevisionId'])break;return _0x24831f;}*['getRevisionsIterator'](_0x3450a1,{direction:_0x37d935='earlier',filter:_0x17fff2=()=>!0x0}={}){const _0x1e8a65='earlier'===_0x37d935?0x1:-0x1;let _0x3f58db=this['_revisions']['get'](_0x3450a1),_0x7a8473=this['getIndex'](_0x3f58db);for(yield _0x3f58db;_0x3f58db;){if(_0x7a8473+=_0x1e8a65,_0x3f58db=this['getRevision'](_0x7a8473),!_0x3f58db)return;_0x17fff2(_0x3f58db)&&(yield _0x3f58db);}}}class V extends _0x3ba875{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4e0af3,'c'],[_0xfb9c57,'a'],[_0x4480bf,'e'],[_0x346d39,'r'],[_0x42c222,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4e0af3],['a',_0xfb9c57],['e',_0x4480bf],['r',_0x346d39],['u',_0x42c222]]);async['loadRevisionData'](_0x3fb142,_0x55c8ab){if(_0x3fb142['diffData']||!_0x55c8ab)return;const _0x3ed88e=this['editor']['config']['get']('collaboration.channelId'),_0x1bad3f=await _0x55c8ab['getRevision']({'channelId':_0x3ed88e,'revisionId':_0x3fb142['id']});_0x3fb142['diffData']=_0x1bad3f['diffData'];}['getRevisionDocumentData'](_0x2c64ce){const _0x9ee63e={};for(const _0x346982 in _0x2c64ce['diffData']){if(_0x2c64ce['diffData'][_0x346982]['attachChange']&&!_0x2c64ce['diffData'][_0x346982]['attachChange']['isAttached'])continue;const _0x47636d=this['_removeRevisionMarkers'](JSON['parse'](_0x2c64ce['diffData'][_0x346982]['insertions'])),_0x43b8a3=this['editor']['editing']['view']['document'],_0x52a4ff=new _0x1852c8(_0x43b8a3,_0x47636d['map'](_0x4e0ed8=>this['_getViewFromDiffObj'](_0x4e0ed8,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x9ee63e[_0x346982]=this['editor']['data']['processor']['toData'](_0x52a4ff),this['editor']['data']['processor']['useFillerType']('default');}return _0x9ee63e;}['getRevisionRootsAttributes'](_0x17cdf0){const _0x550b8c={};for(const _0x52a070 in _0x17cdf0['diffData'])_0x17cdf0['diffData'][_0x52a070]['attachChange']&&!_0x17cdf0['diffData'][_0x52a070]['attachChange']['isAttached']||(_0x550b8c[_0x52a070]=_0x17cdf0['diffData'][_0x52a070]['attributesAfter']||{});return _0x550b8c;}['_getTypeCharForViewElement'](_0x4884e6){return this['_viewClassToTypeChar']['get'](_0x4884e6['constructor']);}['_getViewFromDiffObj'](_0x804745,_0x29233d){const _0x524b39=this['editor']['editing']['view']['document'];if('string'==typeof _0x804745)return new _0x2f8706(_0x524b39,_0x804745);{let _0x50a09f,_0x4e9a2e;_0x4e9a2e='u'==_0x804745['type']||'r'==_0x804745['type']?[]:_0x804745['children']['map'](_0x189e69=>this['_getViewFromDiffObj'](_0x189e69,_0x29233d));const _0x4dc83c=this['_typeCharToViewClass']['get'](_0x804745['type'])||_0xfd25df,_0x3c4d05=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x50a09f=new _0x4dc83c(_0x524b39,_0x804745['name'],_0x804745['attributes'],_0x4e9a2e),'u'==_0x804745['type']){const _0x574808=_0x804745['children'][0x0];if(_0x50a09f['render']=function(_0x2f5b82){const _0x45a57b=_0x2f5b82['createElement']('div');return _0x45a57b['innerHTML']=_0x574808,_0x45a57b['childNodes'][0x0];},_0x29233d){const _0x2f514e=new _0x1852c8(_0x524b39);_0x2f514e['_appendChild'](_0x50a09f);const _0xc8fbd5=Array['from'](_0x3c4d05['viewChildrenToDom'](_0x2f514e,{'bind':!0x1})),_0x30c4d7=_0x3c4d05['domDocument']['createElement']('div');_0x30c4d7['append'](..._0xc8fbd5),_0x50a09f=Array['from'](_0x3c4d05['domChildrenToView'](_0x30c4d7))[0x0];}}else{if('r'==_0x804745['type']){const _0x23d378=_0x804745['children'][0x0];if(_0x50a09f['render']=function(_0x569e3b){_0x569e3b['innerHTML']=_0x23d378;},_0x29233d){const _0x117a01=new _0x1852c8(_0x524b39);_0x117a01['_appendChild'](_0x50a09f);const _0x2628f6=Array['from'](_0x3c4d05['viewChildrenToDom'](_0x117a01,{'bind':!0x1})),_0x171c15=_0x3c4d05['domDocument']['createElement']('div');_0x171c15['append'](..._0x2628f6);const _0x46445c=Array['from'](_0x3c4d05['domChildrenToView'](_0x171c15));_0x46445c['length']>0x1?_0x50a09f['_appendChild'](_0x46445c):_0x50a09f=_0x46445c[0x0];}}}if(_0x804745['customProperties']){for(const [_0x21c84c,_0x30f452]of _0x804745['customProperties'])_0x50a09f['_setCustomProperty'](_0x21c84c,_0x30f452);}const _0x5430d2=_0x804745['fillerOffset']||null;return _0x50a09f['getFillerOffset']=()=>_0x5430d2,_0x50a09f;}}['_makeModelFromViewString'](_0x3d8b26){const _0x224ddd=JSON['parse'](_0x3d8b26),_0x2a4bca=this['editor']['editing']['view']['document'],_0x59e6f8=new _0x1852c8(_0x2a4bca,_0x224ddd['map'](_0x3fe5a5=>this['_getViewFromDiffObj'](_0x3fe5a5,!0x0)));return this['editor']['data']['toModel'](_0x59e6f8);}['_removeRevisionMarkers'](_0x3d7035){return(_0x3d7035=_0x3d7035['filter'](_0x42206e=>!_0x42206e['name']||'revision-start'!==_0x42206e['name']&&'revision-end'!==_0x42206e['name']))['forEach'](_0x2baaf5=>{'string'!=typeof _0x2baaf5&&(_0x2baaf5['children']=this['_removeRevisionMarkers'](_0x2baaf5['children']),_0x2baaf5['attributes']=_0x2baaf5['attributes']['filter'](_0x3df39b=>!_0x3df39b[0x0]['startsWith']('data-revision-')));}),_0x3d7035;}}function g(_0x4dcc87,_0x20fb40,_0x1b5a4d){const t=_0x4dcc87['t'];switch(_0x20fb40){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'},_0x1b5a4d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1b5a4d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x3ba875{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1b8b11,I,V,_0x25252b];}constructor(_0x276d8a){super(_0x276d8a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x157a42=_0x58b8ff();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x157a42},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2435a3=this['repository']['getRevision'](0x0),_0x470489=_0x2435a3&&null===_0x2435a3['creator']?_0x2435a3:null;if(this['_continueCurrentRevision']=!!_0x470489&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5c0b9e=this['_source']['getCurrentRevisionId'](),_0x55fa3d=this['repository']['getRevision'](_0x5c0b9e);if(_0x55fa3d)this['_startingVersion']=_0x55fa3d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2d35c7=this['_source']['history']['_operations']['find'](_0x499fbd=>!_0x499fbd['_isInit']),_0x4538a7=_0x2d35c7?_0x2d35c7['baseVersion']:this['_source']['history']['version'];_0x2435a3?(_0x2435a3['toVersion']<_0x4538a7&&_0x2435a3['_update']({'toVersion':_0x4538a7}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x470489['id'],this['_startingVersion']=_0x470489['fromVersion']):(this['_startingVersion']=_0x2435a3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4538a7,this['_continueCurrentRevision']=!0x1);}}else _0x470489&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x470489['toVersion'],this['editor']['model']['document']['history']['version']),_0x470489['fromVersion']===_0x470489['toVersion']?(0x0!==_0x470489['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x470489['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x470489['id'],this['_startingVersion']=_0x470489['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',_0x11e5aa=>!_0x11e5aa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ce330=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e9074;for(const _0x1e6996 in _0x4ce330){const _0x5bc3e8=_0x1e6996,_0x2983d7=_0x4ce330[_0x5bc3e8];if('revisionHistoryLicenseKeyValid'==_0x2983d7||'revisionHistoryLicenseKeyInvalid'==_0x2983d7||'revisionHistoryLicenseKeyExpired'==_0x2983d7||'revisionHistoryLicenseKeyDomainLimit'==_0x2983d7||'revisionHistoryLicenseKeyNotAllowed'==_0x2983d7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2983d7||'revisionHistoryLicenseKeyTrialLimit'==_0x2983d7||'revisionHistoryLicenseKeyUsageLimit'==_0x2983d7){delete _0x4ce330[_0x5bc3e8],_0x2e9074=_0x2983d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2e9074&&_0x4ce330['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2e9074&&_0x4ce330['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2e9074&&_0x4ce330['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2e9074&&_0x4ce330['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2e9074&&_0x4ce330['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2e9074&&_0x4ce330['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2e9074&&_0x4ce330['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4e2344=this['repository']['getRevision'](0x0),_0x4c892d=await this['getRevisionDocumentData'](_0x4e2344),_0x542c31=await this['getRevisionRootsAttributes'](_0x4e2344);this['_replaceEditorDataWithRevisionData'](_0x4c892d,_0x542c31);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2c27ef){this['_source']=_0x2c27ef;}async['update'](){const _0x17863e=await this['_source']['getLatestVersion']();if(_0x17863e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x19d794=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x17863e});_0x19d794['authors']=_0x19d794['authorsIds']['map'](_0xb7c27=>this['editor']['plugins']['get']('Users')['getUser'](_0xb7c27)),this['currentRevision']['_update'](_0x19d794);}}async['saveRevision'](_0x4a68d9={},_0x5841cf=null){const _0x28061c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5841cf>this['currentRevision']['toVersion']&&(_0x5841cf=null),null===_0x5841cf&&(_0x5841cf=await this['_source']['getLatestVersion']());const _0x27afed=this['_getFromVersion'](_0x5841cf),_0x8b204e=this['buildRevisionData']({'from':_0x27afed,'to':_0x5841cf});if(this['currentRevision']['toVersion']<_0x5841cf){const _0x1882e6=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5841cf,'to':_0x5841cf});_0x1882e6['authors']=[],_0x1882e6['authorsIds']=[],_0x1882e6['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1882e6,!0x0),delete _0x1882e6['authors'],_0x28061c['push'](_0x1882e6);}_0x4a68d9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a68d9['name']=_0x4a68d9['name']||null,_0x4a68d9['id']=_0x4a68d9['id']||_0x58b8ff(),_0x4a68d9={..._0x4a68d9,..._0x8b204e};const _0x483b4b=this['addRevisionData'](_0x4a68d9);_0x28061c['push'](_0x4a68d9);const _0x5699e6=this['repository']['getIndex'](_0x483b4b);if(0x0!==_0x5699e6){const _0x55e8ea=this['repository']['getRevision'](_0x5699e6-0x1);if(_0x55e8ea['fromVersion']!==_0x5841cf){const _0x81ab04=this['_revisionDataBuilder']['getData'](_0x5841cf,_0x55e8ea['toVersion']),_0x3065f2={'id':_0x55e8ea['id'],'diffData':_0x81ab04['diffData'],'authorsIds':_0x81ab04['authorsIds'],'authors':_0x81ab04['authorsIds']['map'](_0x3f5d16=>this['editor']['plugins']['get']('Users')['getUser'](_0x3f5d16)),'fromVersion':_0x5841cf};_0x55e8ea===this['currentRevision']&&(_0x3065f2['createdAt']=new Date(_0x4a68d9['createdAt']['getTime']()+0xa)),_0x55e8ea['_update'](_0x3065f2,!0x0),delete _0x3065f2['authors'],_0x28061c['push'](_0x3065f2);}}if(this['adapter']){for(const _0x2a84ff of _0x28061c)this['_bufferUpdate'](_0x2a84ff['id'],_0x2a84ff,!0x0);this['sendBufferedUpdates']();}return _0x483b4b;}['addRevisionData'](_0x335146){const _0xd9f753=this['repository']['createRevision'](_0x335146);return this['adapter']&&_0xd9f753['on']('_update',(_0x2f4e5e,_0x3753e0,_0x518e2a)=>{_0x518e2a||(this['_bufferUpdate'](_0x3753e0['id'],_0x3753e0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xd9f753,this['_findInsertionIndex'](_0xd9f753)),_0xd9f753;}async['getRevisionDocumentData'](_0x1c2f2d){return await this['_utils']['loadRevisionData'](_0x1c2f2d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1c2f2d);}async['getRevisionRootsAttributes'](_0x9b1d6b){return await this['_utils']['loadRevisionData'](_0x9b1d6b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x9b1d6b);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1dee34=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4cf0f1=0x0;_0x4cf0f1<_0x1dee34['length'];_0x4cf0f1++){const _0x26bc01=_0x1dee34[_0x4cf0f1];let _0x295cb9=!0x1;for(const _0x4722f8 of Object['keys'](_0x26bc01))void 0x0===_0x26bc01[_0x4722f8]?delete _0x26bc01[_0x4722f8]:'id'!==_0x4722f8&&(_0x295cb9=!0x0);_0x295cb9||(_0x1dee34[_0x4cf0f1]=null);}if(_0x1dee34=_0x1dee34['filter'](_0x49e579=>null!==_0x49e579),!_0x1dee34['length'])return;for(let _0x24ae4f=0x0;_0x24ae4f<_0x1dee34['length'];_0x24ae4f++){const _0x9ba915=_0x1dee34[_0x24ae4f];void 0x0!==_0x9ba915['fromVersion']&&void 0x0===_0x9ba915['toVersion']&&(_0x9ba915['toVersion']=this['repository']['getRevision'](_0x9ba915['id'])['toVersion']),void 0x0!==_0x9ba915['toVersion']&&void 0x0===_0x9ba915['fromVersion']&&(_0x9ba915['fromVersion']=this['repository']['getRevision'](_0x9ba915['id'])['fromVersion']);}const _0x1e00b2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1dee34,_0x1e00b2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x48e0fc=>{if(_0x48e0fc){for(const _0x91599f of _0x48e0fc)this['setRevisionData']({'id':_0x91599f['id'],'createdAt':_0x91599f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x14f3bc=null,from:_0x4dc8c3=null,to:_0x55751e=null}){_0x4dc8c3=null!==_0x4dc8c3?_0x4dc8c3:_0x14f3bc['fromVersion'],_0x55751e=null!==_0x55751e?_0x55751e:_0x14f3bc['toVersion'];const _0x156dca=this['_revisionDataBuilder']['getData'](_0x4dc8c3,_0x55751e),_0xba55be={'diffData':_0x156dca['diffData'],'authorsIds':_0x156dca['authorsIds'],'fromVersion':_0x4dc8c3,'toVersion':_0x55751e};if(!_0x14f3bc||_0x55751e!==_0x14f3bc['toVersion']){const _0x36ebc3=_0x55751e-0x1,_0x3da5af=this['_source']['history']['getOperation'](_0x36ebc3);_0xba55be['createdAt']=_0x3da5af&&_0x3da5af['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4dc8c3===this['_loadedStateData']['fromVersion']){for(const _0x3c65c3 of this['_loadedStateData']['authors'])_0xba55be['authorsIds']['includes'](_0x3c65c3['id'])||_0xba55be['authorsIds']['push'](_0x3c65c3['id']);}return _0xba55be;}['_bufferUpdate'](_0x4a562e,_0x102bbf,_0x2b7bae){if(this['_bufferedUpdates']['has'](_0x4a562e)){const _0x18b50b=this['_bufferedUpdates']['get'](_0x4a562e);_0x102bbf=_0x2b7bae?{..._0x18b50b,..._0x102bbf}:{..._0x102bbf,..._0x18b50b};}this['_bufferedUpdates']['set'](_0x4a562e,_0x102bbf);}['setRevisionData'](_0x178f56){const _0x2f2f2c=this['repository']['getRevision'](_0x178f56['id']);if(_0x178f56['createdAt']&&(_0x178f56['createdAt']=new Date(_0x178f56['createdAt'])),_0x178f56['authorsIds']){const _0x508f0f=this['editor']['plugins']['get']('Users');_0x178f56['authors']=_0x178f56['authorsIds']['map'](_0x3b0bfe=>_0x508f0f['getUser'](_0x3b0bfe));}_0x2f2f2c['_update'](_0x178f56,!0x0);}['_createInitialRevision'](_0x3ee5d4){const _0x32b398=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x32b398)this['_initialRevisionId']=_0x32b398['id'];else{const _0x316e4c=!this['editor']['model']['document']['roots']['find'](_0x5c47cc=>this['editor']['model']['hasContent'](_0x5c47cc)),_0x4a702b=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e2852=g(this['editor']['locale'],_0x316e4c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3ee5d4,'to':_0x3ee5d4,'id':this['_initialRevisionId'],'name':_0x1e2852,'creatorId':_0x4a702b});}}['_createCurrentRevision'](_0x20112b){const _0x29aa2a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x29aa2a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x20112b,'to':_0x20112b,'id':_0x29aa2a,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x49a180,_0x1cb9cc){let _0x344953=this['editor']['config']['get']('initialData'),_0x296459=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x344953){_0x344953={};for(const _0x1c0a09 of this['editor']['model']['document']['getRootNames']())_0x344953[_0x1c0a09]='';}if('string'==typeof _0x344953&&(_0x344953={'main':_0x344953}),void 0x0===_0x296459){_0x296459={};for(const _0x46ab17 of this['editor']['model']['document']['getRootNames']())_0x296459[_0x46ab17]={};}let _0x2f06fa=!0x1;const _0x325169=Object['keys'](_0x344953),_0x19ff07=Object['keys'](_0x49a180);for(const _0x1edff9 of _0x325169){if(_0x344953[_0x1edff9]!==_0x49a180[_0x1edff9]&&''!==_0x344953[_0x1edff9]['trim']()){_0x2f06fa=!0x0;break;}if(!_0x7a304c(_0x296459[_0x1edff9],_0x1cb9cc[_0x1edff9])&&Object['keys'](_0x296459[_0x1edff9])['length']>0x0){_0x2f06fa=!0x0;break;}}_0x2f06fa||(_0x2f06fa=_0x19ff07['some'](_0x518572=>!this['editor']['model']['document']['getRoot'](_0x518572))),_0x2f06fa&&_0xf43310('editor-initial-data-replaced-with-revision-data',{'editorData':_0x344953,'editorRootsAttributes':_0x296459,'revisionData':_0x49a180,'revisionRootsAttributes':_0x1cb9cc}),this['editor']['config']['set']('initialData',_0x49a180),this['editor']['config']['set']('rootsAttributes',_0x1cb9cc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4a046f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4a046f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x59d5bd){const _0x11150c=this['repository']['getRevisions']();_0x11150c['reverse']();let _0x10d197=0x0;for(;_0x10d197<_0x11150c['length'];){const _0x12996f=_0x11150c[_0x10d197];if(_0x12996f===this['currentRevision']){_0x10d197++;continue;}if(_0x12996f['id']===this['_initialRevisionId'])break;const _0x4fedd9=_0x59d5bd['toVersion']-_0x12996f['toVersion']||_0x59d5bd['fromVersion']-_0x12996f['fromVersion'];if(_0x4fedd9>0x0)break;if(_0x4fedd9<0x0)_0x10d197++;else{if(!_0x59d5bd['creator']&&_0x12996f['creator'])break;if(_0x12996f['creator']||!_0x59d5bd['creator']){if(_0x59d5bd['createdAt']>_0x12996f['createdAt'])break;_0x10d197++;}else _0x10d197++;}}return _0x10d197;}['_getFromVersion'](_0x5d00e5){const _0x2fe966=this['repository']['getRevisions']();_0x2fe966['reverse'](),_0x2fe966['shift']();const _0x3da049=_0x2fe966['find'](_0x3d1b33=>_0x3d1b33['toVersion']<=_0x5d00e5)['toVersion'];return _0x3da049<this['_startingVersion']?this['_startingVersion']:_0x3da049;}['_makeRevision']({name:_0x156efe,from:_0x484c58,to:_0x535877,creatorId:_0x458bca,id:_0x41fed6}){const _0x4ef63f=this['buildRevisionData']({'from':_0x484c58,'to':_0x535877});_0x4ef63f['name']=_0x156efe,_0x4ef63f['creatorId']=_0x458bca,_0x4ef63f['id']=_0x41fed6;const _0x5efd79=this['addRevisionData'](_0x4ef63f);return this['adapter']&&this['_bufferUpdate'](_0x4ef63f['id'],_0x4ef63f,!0x0),_0x5efd79;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x17da37){this['editor']=_0x17da37,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'](_0x56c612){this['source']=_0x56c612;const _0x3068b7=new Map(),_0x2a7dca=new Map(),_0x1bd84a=this['editor']['model']['document']['roots']['map'](_0xb079f6=>_0xb079f6['rootName']);for(const _0x1f070d of _0x1bd84a){const _0x1da0ad=this['editor']['model']['document']['getRoot'](_0x1f070d),_0x57a568=N(_0x1da0ad);_0x3068b7['set'](_0x1f070d,_0x57a568),_0x2a7dca['set'](_0x1f070d,Object['fromEntries'](_0x1da0ad['getAttributes']()));}const _0x1c2812=Array['from'](this['editor']['model']['markers'])['map'](_0xd5b215=>[_0xd5b215['name'],_0xd5b215['getRange']()]),_0x53bfd3=this['source']['version'];this['_saveMetaData'](_0x53bfd3,_0x3068b7,_0x1c2812,_0x2a7dca),this['_startingRevisionId']=this['_revisionId'];const _0x2c9b17=new Map(),_0xa2bfee=new Map();for(const _0x58fda0 of _0x1bd84a){const _0x5c5561=P(_0x58fda0);_0x2c9b17['set'](_0x58fda0,_0x5c5561),_0xa2bfee['set'](_0x58fda0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2c9b17,[],_0xa2bfee);}['getData'](_0x5e9a03,_0x28b9bd){if(this['_lastFrom']===_0x5e9a03&&this['_lastTo']<=_0x28b9bd)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x28b9bd,!0x0);else{if(!this['_savedMetaData']['has'](_0x5e9a03)){const _0x549e60=this['_getPreviousFrom'](_0x5e9a03);this['_calculateMetaData'](_0x549e60,_0x5e9a03,!0x1);}this['_calculateMetaData'](_0x5e9a03,_0x28b9bd,!0x0);}return this['_lastFrom']=_0x5e9a03,this['_lastTo']=_0x28b9bd,this['_getState']();}['loadState'](_0x4b3b18){const _0xacb9ac=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4b3b18['fromVersion'],this['_lastTo']=_0x4b3b18['toVersion'];for(const _0x4e0357 in _0x4b3b18['diffData']){const _0x49c3f6=_0x4b3b18['diffData'][_0x4e0357]['attachChange'],_0x3e1de3=_0x291809(_0x4b3b18['diffData'][_0x4e0357]['attributesBefore'])||{},_0x47bd55=_0xacb9ac['_makeModelFromViewString'](_0x4b3b18['diffData'][_0x4e0357]['deletions']);_0x47bd55['rootName']=_0x4e0357,_0x47bd55['_isAttached']=!_0x49c3f6||!_0x49c3f6['isAttached'],_0x47bd55['isAttached']=()=>_0x47bd55['_isAttached'],this['_baseRoots']['set'](_0x4e0357,_0x47bd55),this['_baseRootsAttributes']['set'](_0x4e0357,_0x3e1de3),_0x49c3f6&&this['_touchedRoots']['set'](_0x4e0357,_0x49c3f6);const _0x171d3e=this['_makeIdsRoot'](_0x47bd55);this['_baseIdsRoots']['set'](_0x4e0357,_0x171d3e);for(const [_0x2a56eb,_0x37455b]of _0x47bd55['markers']){if(!_0x2a56eb['startsWith']('revision:'))continue;const _0x30bbff=_0x2a56eb['split'](':')[0x2];for(const _0x3b3923 of _0x37455b['getWalker']({'singleCharacters':!0x0})){const _0x2b7cc4=this['_getVidAttributeName'](_0x3b3923),_0x3ceb2c='elementEnd'==_0x3b3923['type']?_0x3b3923['previousPosition']['path']['slice'](0x0,-0x1):_0x3b3923['previousPosition']['path'],_0x50656d=_0x171d3e['getNodeByPath'](_0x3ceb2c)['getAttribute'](_0x2b7cc4);this['_touched']['set'](_0x50656d,{'userId':_0x30bbff});}}}this['_startingRevisionId']=this['_revisionId'];const _0xf112d7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x322a4a=>!this['_touched']['has'](_0x322a4a));let _0x5b3a52=0x0;const _0x1bd8f9=new Map();for(const _0x17cade in _0x4b3b18['diffData']){const _0x182d66=_0x4b3b18['diffData'][_0x17cade]['attachChange'],_0x476778=_0x291809(_0x4b3b18['diffData'][_0x17cade]['attributesAfter'])||{},_0x58a02e=_0xacb9ac['_makeModelFromViewString'](_0x4b3b18['diffData'][_0x17cade]['insertions']);_0x58a02e['rootName']=_0x17cade,_0x58a02e['_isAttached']=!_0x182d66||_0x182d66['isAttached'],_0x58a02e['isAttached']=()=>_0x58a02e['_isAttached'],this['_diffRoots']['set'](_0x17cade,_0x58a02e),this['_diffRootsAttributes']['set'](_0x17cade,_0x476778);const _0x55dbd9=this['_makeIdsRoot'](_0x58a02e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x17cade,_0x55dbd9),_0x1bd8f9['set'](_0x17cade,_0x58a02e['isAttached']()?_0x476778:{});for(const [_0x364918,_0x4984f8]of _0x58a02e['markers']){if(!_0x364918['startsWith']('revision:'))continue;const _0x3f9eb5=_0x364918['split'](':')[0x2];for(const _0xa5e318 of _0x4984f8['getWalker']({'singleCharacters':!0x0})){const _0x47b87e=this['_getVidAttributeName'](_0xa5e318),_0xdc23bb=this['_revisionId']++,_0x424b54='elementEnd'==_0xa5e318['type']?_0xa5e318['previousPosition']['path']['slice'](0x0,-0x1):_0xa5e318['previousPosition']['path'];_0x55dbd9['getNodeByPath'](_0x424b54)['_setAttribute'](_0x47b87e,_0xdc23bb),this['_touched']['set'](_0xdc23bb,{'userId':_0x3f9eb5});}}for(const _0x4ee11a of this['editor']['model']['createRangeIn'](_0x58a02e)['getWalker']({'singleCharacters':!0x0})){const _0x5488a9=this['_getVidAttributeName'](_0x4ee11a),_0x588f7b='elementEnd'==_0x4ee11a['type']?_0x4ee11a['previousPosition']['path']['slice'](0x0,-0x1):_0x4ee11a['previousPosition']['path'],_0x1baba2=_0x55dbd9['getNodeByPath'](_0x588f7b);_0x1baba2['getAttribute'](_0x5488a9)>0x0||_0x1baba2['_setAttribute'](_0x5488a9,_0xf112d7[_0x5b3a52++]);}for(const [_0x8e9622,_0x39f0a6]of _0x58a02e['markers'])_0x8e9622['startsWith']('revision:')||this['_markers']['set'](_0x8e9622,_0x39f0a6);}const _0xf502d3=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf502d3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf502d3,0x1));const _0x17ef2f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x17ef2f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x17ef2f,0x1));const _0x594b7d=Array['from'](this['_diffRoots'])['map'](([_0x1f2b2a,_0x1ba7f3])=>[_0x1f2b2a,N(_0x1ba7f3)]);this['_saveMetaData'](this['_lastTo'],_0x594b7d,this['_markers'],_0x1bd8f9);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4a9d11,_0x33b8ea,_0xafcbdd,_0x1affe4){const _0x23609a=new Map(_0x33b8ea),_0x43b58e=new Map(_0x291809(_0x1affe4)),_0x5ce51a=new Map();for(const [_0x11f987,_0x362c55]of _0xafcbdd)_0x5ce51a['set'](_0x11f987,{'start':_0x362c55['start']['clone'](),'end':_0x362c55['end']['clone'](),'rootName':_0x362c55['root']['rootName']});this['_savedMetaData']['set'](_0x4a9d11,{'roots':_0x23609a,'markers':_0x5ce51a,'rootsAttributes':_0x43b58e});}['_removeMetaData'](_0x33c58d){this['_savedMetaData']['delete'](_0x33c58d);}['_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'](_0x3c7d4c,_0x2f56c0=null){let _0x393dbd=null;_0x3c7d4c['is']('documentFragment')||(_0x393dbd=new ut(_0x3c7d4c['name'],{'vid_start':null===_0x2f56c0?this['_revisionId']++:_0x2f56c0++}));const _0x507f3f=[];for(const _0x3a54fd of _0x3c7d4c['getChildren']())if(_0x3a54fd['is']('element')){_0x507f3f['push'](this['_makeIdsRoot'](_0x3a54fd,_0x2f56c0));const _0xbd1282=_0x507f3f[_0x507f3f['length']-0x1];null!==_0x2f56c0&&(_0x2f56c0=_0xbd1282['is']('element','$text')?_0xbd1282['getAttribute']('vid')+0x1:_0xbd1282['getAttribute']('vid_end')+0x1);}else{for(let _0x442e98=0x0;_0x442e98<_0x3a54fd['offsetSize'];_0x442e98++)_0x507f3f['push'](new ut('$text',{'vid':null===_0x2f56c0?this['_revisionId']++:_0x2f56c0++}));}if(_0x3c7d4c['is']('documentFragment')){const _0x31af24=P(_0x3c7d4c['rootName']);return _0x31af24['_insertChild'](0x0,_0x507f3f),_0x31af24;}return _0x393dbd['_setAttribute']('vid_end',null===_0x2f56c0?this['_revisionId']++:_0x2f56c0++),_0x393dbd['_insertChild'](0x0,_0x507f3f),_0x393dbd;}['_calculateMetaData'](_0x4369ca,_0x3ca5de,_0x414f00){this['_reset']();const {roots:_0x4d62b5,markers:_0x2c4653,rootsAttributes:_0x48922b}=this['_savedMetaData']['get'](_0x4369ca);this['_baseRoots']=new Map(_0x4d62b5),this['_baseRootsAttributes']=new Map(_0x291809(_0x48922b));for(const [_0x39f324,_0x38cef4]of this['_baseRoots'])if('$graveyard'!==_0x39f324&&(this['_diffRoots']['set'](_0x39f324,N(_0x38cef4)),this['_diffRootsAttributes']=new Map(_0x291809(_0x48922b)),_0x414f00)){const _0x2d8d39=this['_revisionId'];this['_idsRoots']['set'](_0x39f324,this['_makeIdsRoot'](_0x38cef4)),this['_baseIdsRoots']['set'](_0x39f324,this['_makeIdsRoot'](_0x38cef4,_0x2d8d39));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x414f00&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2c9a1b,_0x59880d]of _0x2c4653){const _0x2dc2f8=this['_baseRoots']['get'](_0x59880d['rootName']),_0x2f810e=this['_diffRoots']['get'](_0x59880d['rootName']),_0x1812fc=new ft(this['_fixPosition'](_0x59880d['start'],_0x2dc2f8),this['_fixPosition'](_0x59880d['end'],_0x2dc2f8)),_0x1c52a3=this['_fixRange'](_0x1812fc,_0x2f810e);_0x2dc2f8['markers']['set'](_0x2c9a1b,_0x1812fc),this['_markers']['set'](_0x2c9a1b,_0x1c52a3);}this['_applyOperations'](_0x4369ca,_0x3ca5de,_0x414f00);}['_applyOperations'](_0x15d43f,_0x5049c8,_0x566cd6){for(const _0x4c8ff8 of this['source']['getOperations'](_0x15d43f,_0x5049c8))this['_handleOperation'](_0x4c8ff8,_0x566cd6);for(const _0x20e58d of this['_diffRoots']['values']())_0x20e58d['markers']['clear']();for(const [_0x5cb7de,_0xe9a8e8]of this['_markers']){this['_diffRoots']['get'](_0xe9a8e8['root']['rootName'])['markers']['set'](_0x5cb7de,_0xe9a8e8['clone']());}const _0x59a09a=new Map(),_0x4432e2=new Map();for(const [_0x2b90fd,_0x28b034]of this['_diffRoots'])_0x59a09a['set'](_0x2b90fd,N(_0x28b034)),_0x4432e2['set'](_0x2b90fd,this['_diffRootsAttributes']['get'](_0x2b90fd));this['_saveMetaData'](_0x5049c8,_0x59a09a,this['_markers'],_0x4432e2);}['_getPreviousFrom'](_0x3708d4){const _0x52e726=Array['from'](this['_savedMetaData']['keys']());_0x52e726['sort']((_0x1b2d3e,_0x427564)=>_0x1b2d3e-_0x427564),_0x52e726['reverse']();for(const _0x111aa1 of _0x52e726)if(_0x111aa1<_0x3708d4)return _0x111aa1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x27f878,_0x23ac67){const _0x32be9d=Array['from'](_0x23ac67['markers'])['map'](([_0x34e852,_0x5a727d])=>[_0x34e852,this['_fixRange'](_0x5a727d,_0x27f878)]);_0x27f878['markers']=new Map(_0x32be9d);}['_transformMarkers'](_0x7d139f){for(const _0x556f01 of this['_markers']['values']()){const _0x30e481=_0x556f01['getTransformedByOperation'](_0x7d139f),_0x341383=ft['_createFromRanges'](_0x30e481);_0x556f01['start']=_0x341383['start'],_0x556f01['end']=_0x341383['end'];}}['_handleOperation'](_0x5f1894,_0x4583a0){if('addRoot'!=_0x5f1894['type']&&'detachRoot'!=_0x5f1894['type']){if('insert'==_0x5f1894['type']){const _0x5e291f=_0x5f1894['position']['root']['rootName'];this['_diffRoots']['has'](_0x5e291f)||(this['_diffRoots']['set'](_0x5e291f,P(_0x5e291f,!0x0)),this['_diffRootsAttributes']['set'](_0x5e291f,{}),_0x4583a0&&this['_idsRoots']['set'](_0x5e291f,P(_0x5e291f,!0x0)));}else{if('addRootAttribute'==_0x5f1894['type']||'removeRootAttribute'==_0x5f1894['type']||'changeRootAttribute'==_0x5f1894['type'])return void this['_handleRootAttributeOperation'](_0x5f1894);'marker'==_0x5f1894['type']&&this['_handleMarkerOperation'](_0x5f1894);}if('marker'!==_0x5f1894['type']){const _0x1bd455=this['_cloneOperation'](_0x5f1894,this['_diffRoots']);_0x1bd455['_execute'](),this['_transformMarkers'](_0x1bd455);}if(_0x4583a0)switch(_0x5f1894['type']){case'insert':this['_handleInsertOperation'](_0x5f1894);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5f1894);break;case'merge':this['_handleMergeOperation'](_0x5f1894);break;case'split':this['_handleSplitOperation'](_0x5f1894);}}else this['_handleRootOperation'](_0x5f1894,_0x4583a0);}['_cloneOperation'](_0x543e1d,_0x1d1b24){const _0x2b8870=_0x543e1d['clone']();return _0x2b8870['_authorId']=_0x543e1d['_authorId'],this['_fixOperation'](_0x2b8870,_0x1d1b24),_0x2b8870;}['_getBaseVids'](_0x4dc8fa){return _0x4dc8fa['map'](_0x30913c=>{const _0x3d6e27=this['_getVidAttributeName'](_0x30913c);return Number(_0x30913c['item']['getAttribute'](_0x3d6e27));});}['_generateTape'](_0x140813,_0x36f3d7){if(_0x140813['is']('element','$text'))_0x36f3d7['push']({'item':_0x140813,'type':'text'});else{_0x140813['is']('element')&&_0x36f3d7['push']({'item':_0x140813,'type':'elementStart'});for(const _0x5d32b7 of _0x140813['getChildren']())this['_generateTape'](_0x5d32b7,_0x36f3d7);_0x140813['is']('element')&&_0x36f3d7['push']({'item':_0x140813,'type':'elementEnd'});}return _0x36f3d7;}['_getState'](){const _0x5ddbda=new Map(this['_touched']),_0x356fb3=new Map(_0x5ddbda),_0xf6b48a=new Map(),_0x485090={'insertions':{},'deletions':{}},_0x4a15fa={'insertions':{},'deletions':{}},_0x1b51d5=new Map(),_0x4343e1=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4343e1['delete']('$graveyard');for(const _0x381055 of _0x4343e1){const _0x5d72c1=this['_diffRoots']['get'](_0x381055)||P(_0x381055,!0x1),_0x11fcb4=this['_baseRoots']['get'](_0x381055)||P(_0x381055,!0x1);_0x5d72c1['isAttached']()||_0x11fcb4['isAttached']()?(_0x485090['insertions'][_0x381055]=N(_0x5d72c1),_0x485090['deletions'][_0x381055]=N(_0x11fcb4),this['_copyMarkers'](_0x485090['deletions'][_0x381055],_0x11fcb4),this['_copyMarkers'](_0x485090['insertions'][_0x381055],_0x5d72c1),_0x4a15fa['insertions'][_0x381055]=this['_generateTape'](this['_idsRoots']['get'](_0x381055),[]),_0x4a15fa['deletions'][_0x381055]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x381055)||P(_0x381055,!0x1),[])):_0x4343e1['delete'](_0x381055);}for(const _0x31f087 of _0x4343e1){const _0x48faf6=_0x4a15fa['insertions'][_0x31f087];for(const _0x4331d2 of _0x48faf6){const _0x3f695c=this['_getVidAttributeName'](_0x4331d2),_0x343c95=_0x4331d2['item']['getAttribute'](_0x3f695c);_0x356fb3['delete'](_0x343c95),_0x343c95>=this['_startingRevisionId']&&_0xf6b48a['set'](_0x343c95,_0x5ddbda['get'](_0x343c95));}}for(const _0x520edb of _0x4343e1){const _0x5941b1=_0x4a15fa['insertions'][_0x520edb],_0x3a06eb=this['_getBaseVids'](_0x4a15fa['deletions'][_0x520edb]);let _0xa16ec6=0x0;for(const _0x30104f of _0x5941b1){const _0x40c3ef=this['_getVidAttributeName'](_0x30104f),_0xcbac44=_0x30104f['item']['getAttribute'](_0x40c3ef);if(!_0xf6b48a['has'](_0xcbac44)&&!_0x1b51d5['has'](_0xcbac44)){if(_0x356fb3['has'](_0xcbac44))_0xa16ec6++;else{if(_0xcbac44!=_0x3a06eb[_0xa16ec6]){const _0xb74075=_0x5ddbda['get'](_0xcbac44)||_0x5ddbda['get'](_0x3a06eb[_0xa16ec6]);for(;_0xcbac44!=_0x3a06eb[_0xa16ec6];)_0x356fb3['has'](_0x3a06eb[_0xa16ec6])||(_0x1b51d5['set'](_0x3a06eb[_0xa16ec6],_0xb74075),_0x5ddbda['set'](_0x3a06eb[_0xa16ec6],_0xb74075)),_0xa16ec6++;}_0xa16ec6++;}}}}for(const _0x4dc3b9 of _0x4343e1){const _0x1e4c68=_0x4a15fa['insertions'][_0x4dc3b9];for(const _0x3e05e4 of _0x1e4c68){const _0x5036c6=this['_getVidAttributeName'](_0x3e05e4),_0x360522=_0x3e05e4['item']['getAttribute'](_0x5036c6);if(_0x1b51d5['has'](_0x360522)){const _0x4213d5=_0x1b51d5['get'](_0x360522);_0x356fb3['has'](_0x360522)||_0x356fb3['set'](_0x360522,{..._0x4213d5}),_0xf6b48a['set'](_0x360522,{..._0x4213d5});}}}for(const _0x5f5833 of _0x356fb3['keys']())_0x5f5833>=this['_startingRevisionId']&&_0x356fb3['delete'](_0x5f5833);const _0x8d2f1a=new Map();for(const _0x24d729 of _0x4343e1){let _0x3ce740=_0x4a15fa['insertions'][_0x24d729];for(const _0x86ed0b of _0x3ce740)if(_0x86ed0b['item']['is']('element','tableCell')){const _0x224683=this['_getVidAttributeName'](_0x86ed0b),_0x35c58c=_0x86ed0b['item']['getAttribute'](_0x224683);if(_0xf6b48a['has'](_0x35c58c)){const _0x3004a0=_0x86ed0b['item']['parent']['parent']['getAttribute']('vid_start'),_0x59bd71=_0x8d2f1a['get'](_0x3004a0)||new Set();_0x59bd71['add'](_0xf6b48a['get'](_0x35c58c)['userId']),_0x8d2f1a['set'](_0x3004a0,_0x59bd71);}}_0x3ce740=_0x4a15fa['deletions'][_0x24d729];for(const _0x41074f of _0x3ce740)if(_0x41074f['item']['is']('element','tableCell')){const _0x5a251e=this['_getVidAttributeName'](_0x41074f),_0x5de5f5=_0x41074f['item']['getAttribute'](_0x5a251e);if(_0x356fb3['has'](_0x5de5f5)){const _0x1bad05=_0x41074f['item']['parent']['parent']['getAttribute']('vid_start'),_0xe2f3b8=_0x8d2f1a['get'](_0x1bad05)||new Set();_0xe2f3b8['add'](_0x356fb3['get'](_0x5de5f5)['userId']),_0x8d2f1a['set'](_0x1bad05,_0xe2f3b8);}}for(const _0x3ce12a of _0x8d2f1a['keys']())(_0xf6b48a['has'](_0x3ce12a)||_0x356fb3['has'](_0x3ce12a))&&_0x8d2f1a['delete'](_0x3ce12a);}for(const _0x1f4882 of _0x4343e1){const _0x302f02=_0x4a15fa['insertions'][_0x1f4882];let _0x14a33a=null,_0x4898c4=null;for(const _0x1b71f6 of _0x302f02){const _0x4e367f=this['_getVidAttributeName'](_0x1b71f6),_0x48c7db=_0x1b71f6['item']['getAttribute'](_0x4e367f),_0x3e1840=_0x8d2f1a['get'](_0x48c7db);_0x3e1840&&'elementStart'==_0x1b71f6['type']&&(_0x14a33a=Array['from'](_0x3e1840)[0x0],_0x4898c4=_0x1b71f6['item']['getAttribute']('vid_end')),_0x14a33a&&(_0x356fb3['set'](_0x48c7db,{'userId':_0x14a33a}),_0xf6b48a['set'](_0x48c7db,{'userId':_0x14a33a})),_0x48c7db==_0x4898c4&&(_0x14a33a=null,_0x4898c4=null);}}const _0x48ae2f={},_0x3ad26e=new Set();for(const _0x1e7579 of _0x4343e1){const _0x1ffb30=_0x485090['deletions'][_0x1e7579],_0x18656d=_0x485090['insertions'][_0x1e7579];for(const {userId:_0x36b952}of this['_touchedMarkers']['values']())null!==_0x36b952&&_0x3ad26e['add'](_0x36b952);for(const {userId:_0x55a61d}of this['_touchedRoots']['values']())null!==_0x55a61d&&_0x3ad26e['add'](_0x55a61d);this['_markChanges'](_0x18656d,_0x4a15fa['insertions'][_0x1e7579],_0xf6b48a,'insertion',_0x3ad26e),this['_markChanges'](_0x1ffb30,_0x4a15fa['deletions'][_0x1e7579],_0x356fb3,'deletion',_0x3ad26e),_0x48ae2f[_0x1e7579]={'insertions':this['_prepareViewToSave'](_0x18656d),'deletions':this['_prepareViewToSave'](_0x1ffb30),'attachChange':this['_touchedRoots']['get'](_0x1e7579)||null,'attributesBefore':_0x291809(this['_baseRootsAttributes']['get'](_0x1e7579))||{},'attributesAfter':_0x291809(this['_diffRootsAttributes']['get'](_0x1e7579))};}return{'diffData':_0x48ae2f,'authorsIds':Array['from'](_0x3ad26e)};}['_processRootBeforeSave'](_0x364550){for(const [,_0xadc428]of _0x364550['markers']){const _0x548f57=_0xadc428['start']['getAncestors']()['filter'](_0x2616f6=>'tableCell'==_0x2616f6['name']);for(const _0xbb004c of _0x548f57)0x1==_0xbb004c['childCount']&&_0xbb004c['getChild'](0x0)['is']('element','paragraph')&&_0xbb004c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x258159){this['_processRootBeforeSave'](_0x258159);const _0x13b59c=this['editor']['data']['toView'](_0x258159,{}),_0x27f422=Array['from'](_0x13b59c['getChildren']())['map'](_0x1817d2=>this['_getViewJson'](_0x1817d2));return JSON['stringify'](_0x27f422);}['_getViewJson'](_0x370d44){if(_0x370d44['is']('$text'))return _0x370d44['data'];{const _0xcbf328=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x56aeaf=_0x370d44,_0x3549f0=this['editor']['data']['htmlProcessor']['domConverter'],_0x46cfa1={'type':_0xcbf328['_getTypeCharForViewElement'](_0x56aeaf),'name':_0x56aeaf['name'],'attributes':Array['from'](_0x56aeaf['getAttributes']()),'children':Array['from'](_0x56aeaf['getChildren']())['map'](_0x48584e=>this['_getViewJson'](_0x48584e))};if(_0x370d44['is']('uiElement')&&'$comment'!=_0x370d44['name']){const _0x17b911=_0x370d44['render'](_0x3549f0['domDocument'],_0x3549f0);_0x46cfa1['children']['push'](_0x17b911['outerHTML']);}else{if(_0x370d44['is']('rawElement')){const _0x108a88=_0x3549f0['domDocument']['createElement'](_0x56aeaf['name']);_0x370d44['render'](_0x108a88,_0x3549f0),_0x46cfa1['children']['push'](_0x108a88['innerHTML']);}}const _0x36e1bc=Array['from'](_0x56aeaf['getCustomProperties']());_0x36e1bc['length']>0x0&&(_0x46cfa1['customProperties']=_0x36e1bc);const _0x729e05=_0x56aeaf['getFillerOffset']();return null!==_0x729e05&&(_0x46cfa1['fillerOffset']=_0x729e05),_0x46cfa1;}}['_markChanges'](_0x13d1a5,_0x5ba338,_0x490223,_0x46935a,_0x22a241){let _0x5e0e4d=null,_0x135e66=null,_0x54a5a7=0x0;const _0x277874=this['editor']['model'];for(let _0xde1ded=0x0;_0xde1ded<_0x5ba338['length'];_0xde1ded++){const _0x1d6926=this['_getVidAttributeName'](_0x5ba338[_0xde1ded]),_0xece8e5=_0x5ba338[_0xde1ded]['item']['getAttribute'](_0x1d6926),_0x297ba3=_0x490223['get'](_0xece8e5),_0x48a6b1=_0xde1ded==_0x5ba338['length']-0x1;(!_0x5e0e4d&&_0x297ba3&&(_0x5e0e4d=_0x297ba3,_0x135e66=_0x5ba338[_0xde1ded]),_0x5e0e4d&&(!_0x297ba3||_0x297ba3['userId']!=_0x5e0e4d['userId']))&&(_0x893173(_0x297ba3,F(_0x135e66,_0x13d1a5,_0x277874),F(_0x5ba338[_0xde1ded],_0x13d1a5,_0x277874)),_0x5e0e4d=_0x297ba3||null,_0x135e66=_0x297ba3?_0x5ba338[_0xde1ded]:null),_0x5e0e4d&&_0x48a6b1&&_0x893173(_0x297ba3,F(_0x135e66,_0x13d1a5,_0x277874),B(_0x5ba338[_0xde1ded],_0x13d1a5,_0x277874));}function _0x893173(_0x5bb342,_0x19cf0b,_0x5d0a74){const _0x6210d7=_0x5e0e4d['userId'],_0xdf5a4b='revision:'+_0x46935a+':'+_0x6210d7+':'+_0x54a5a7++,_0x5b13d3=_0x277874['createRange'](_0x19cf0b,_0x5d0a74);_0x13d1a5['markers']['set'](_0xdf5a4b,_0x5b13d3),null!==_0x6210d7&&_0x22a241['add'](_0x6210d7);}}['_getVidAttributeName'](_0x1f4952){switch(_0x1f4952['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x360422,_0x3b7f91){_0x360422['baseVersion']=null;for(const _0x374bf1 in _0x360422){const _0x7a8c7e=_0x360422[_0x374bf1];if(_0x7a8c7e instanceof vt){const _0x1e9b5a=_0x3b7f91['get'](_0x7a8c7e['root']['rootName']);_0x360422[_0x374bf1]=this['_fixPosition'](_0x7a8c7e,_0x1e9b5a);}if(_0x7a8c7e instanceof ft){const _0x2b2453=_0x3b7f91['get'](_0x7a8c7e['root']['rootName']);_0x360422[_0x374bf1]=this['_fixRange'](_0x7a8c7e,_0x2b2453);}'root'===_0x374bf1&&(_0x360422['root']=_0x3b7f91['get'](_0x360422['root']['rootName']));}}['_fixRange'](_0x377561,_0x916784){return this['editor']['model']['createRange'](this['_fixPosition'](_0x377561['start'],_0x916784),this['_fixPosition'](_0x377561['end'],_0x916784));}['_fixPosition'](_0x2ddba2,_0x3c9c29){return this['editor']['model']['createPositionFromPath'](_0x3c9c29,_0x2ddba2['path'],_0x2ddba2['stickiness']);}['_handleInsertOperation'](_0x53a3c3){const _0x597da9=this['_idsRoots']['get'](_0x53a3c3['position']['root']['rootName']),_0x2dcc33=this['_fixPosition'](_0x53a3c3['position'],_0x597da9),_0x54e8fb=null===_0x53a3c3['_authorId']?null:_0x53a3c3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d1507=_0x2dcc33['parent'],_0x597efd=this['_revisionId'],_0x255352=[];for(const _0x100f05 of _0x53a3c3['nodes'])if(_0x100f05['is']('element'))_0x255352['push'](this['_makeIdsRoot'](_0x100f05));else{for(let _0x3af4df=0x0;_0x3af4df<_0x100f05['offsetSize'];_0x3af4df++)_0x255352['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x59a3f2=this['_revisionId'];for(let _0xb66128=_0x597efd;_0xb66128<_0x59a3f2;_0xb66128++)this['_touched']['set'](_0xb66128,{'userId':_0x54e8fb});_0x1d1507['_insertChild'](_0x2dcc33['offset'],_0x255352);}['_handleMoveOperation'](_0x5be334){(_0x5be334=this['_cloneOperation'](_0x5be334,this['_idsRoots']))['_execute']();const _0x1c182a=null===_0x5be334['_authorId']?null:_0x5be334['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb9c9c7=_0x5be334['getMovedRangeStart'](),_0x2afd68=_0xb9c9c7['parent'],_0x1527fa=_0xb9c9c7['offset'];!function _0x19d065(_0x4350ab,_0x58497d,_0x24a2f6,_0x551aa1){for(let _0x3ba6d9=_0x24a2f6;_0x3ba6d9<_0x551aa1;_0x3ba6d9++){const _0xcddfbc=_0x58497d['getChild'](_0x3ba6d9);_0xcddfbc['is']('element','$text')?_0x4350ab['set'](_0xcddfbc['getAttribute']('vid'),{'userId':_0x1c182a}):(_0x4350ab['set'](_0xcddfbc['getAttribute']('vid_start'),{'userId':_0x1c182a}),_0x19d065(_0x4350ab,_0xcddfbc,0x0,_0xcddfbc['childCount']),_0x4350ab['set'](_0xcddfbc['getAttribute']('vid_end'),{'userId':_0x1c182a}));}}(this['_touched'],_0x2afd68,_0x1527fa,_0x1527fa+_0x5be334['howMany']);}['_handleMergeOperation'](_0x3ef69b){const _0x558bbd=null===(_0x3ef69b=this['_cloneOperation'](_0x3ef69b,this['_idsRoots']))['_authorId']?null:_0x3ef69b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x356a07=_0x3ef69b['targetPosition']['parent'],_0x419a95=_0x3ef69b['sourcePosition']['parent'],_0x4ce2df=_0x356a07['getAttribute']('vid_end'),_0x1ded0e=_0x419a95['getAttribute']('vid_start');_0x356a07['_setAttribute']('vid_end',_0x419a95['getAttribute']('vid_end')),_0x419a95['_setAttribute']('vid_end',_0x4ce2df),this['_touched']['set'](_0x1ded0e,{'userId':_0x558bbd}),this['_touched']['set'](_0x4ce2df,{'userId':_0x558bbd}),_0x3ef69b['_execute']();}['_handleSplitOperation'](_0x2fd47e){const _0x4f1497=null===(_0x2fd47e=this['_cloneOperation'](_0x2fd47e,this['_idsRoots']))['_authorId']?null:_0x2fd47e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a5a43=_0x2fd47e['graveyardPosition'],_0x2a497d=_0x2fd47e['splitPosition']['parent'];_0x2fd47e['_execute']();const _0xae6cc1=_0x2a497d['getAttribute']('vid_end'),_0x708481=_0x2fd47e['insertionPosition']['nodeAfter'];if(_0x5a5a43){const _0x213cc3=_0x708481['getAttribute']('vid_end'),_0x6dbdd1=_0x2a497d['getAttribute']('vid_end');_0x2a497d['_setAttribute']('vid_end',_0x213cc3),_0x708481['_setAttribute']('vid_end',_0x6dbdd1),this['_touched']['set'](_0x2a497d['getAttribute']('vid_end'),{'userId':_0x4f1497}),this['_touched']['set'](_0x708481['getAttribute']('vid_start'),{'userId':_0x4f1497});}else{const _0x3b1bdc=this['_revisionId']++,_0x1575d6=this['_revisionId']++;_0x2a497d['_setAttribute']('vid_end',_0x3b1bdc),_0x708481['_setAttribute']('vid_start',_0x1575d6),_0x708481['_setAttribute']('vid_end',_0xae6cc1),this['_touched']['set'](_0x3b1bdc,{'userId':_0x4f1497}),this['_touched']['set'](_0x1575d6,{'userId':_0x4f1497});}}['_handleMarkerOperation'](_0x1da526){if(!_0x1da526['affectsData'])return;const _0x5d66ee=(_0x1da526=this['_cloneOperation'](_0x1da526,this['_diffRoots']))['oldRange']?_0x1da526['oldRange']['root']:null,_0x4d06b2=_0x1da526['newRange']?_0x1da526['newRange']['root']:null;_0x5d66ee&&this['_markers']['delete'](_0x1da526['name']),_0x4d06b2&&this['_markers']['set'](_0x1da526['name'],_0x1da526['newRange']['clone']());const _0x6dbec3=null===_0x1da526['_authorId']?null:_0x1da526['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5642e2=_0x1da526['name'];if(!this['_touchedMarkers']['has'](_0x5642e2))return void this['_touchedMarkers']['set'](_0x5642e2,{'range':_0x1da526['oldRange'],'userId':_0x6dbec3});const _0x24fa08=this['_touchedMarkers']['get'](_0x5642e2),_0x1b57d7=_0x24fa08['range'],_0x1372e8=_0x1da526['newRange'];null==_0x1b57d7&&null==_0x1372e8||_0x1b57d7&&_0x1372e8&&_0x1b57d7['isEqual'](_0x1372e8)?this['_touchedMarkers']['delete'](_0x1da526['name']):_0x24fa08['userId']=_0x6dbec3;}['_handleRootOperation'](_0x102767,_0x166d13){this['_diffRoots']['has'](_0x102767['rootName'])?this['_diffRoots']['get'](_0x102767['rootName'])['_isAttached']=_0x102767['isAdd']:(this['_diffRoots']['set'](_0x102767['rootName'],P(_0x102767['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x102767['rootName'],{}),_0x166d13&&this['_idsRoots']['set'](_0x102767['rootName'],P(_0x102767['rootName'],!0x0)));const _0x4b994e=null===_0x102767['_authorId']?null:_0x102767['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x271bf1=this['_touchedRoots']['get'](_0x102767['rootName']);_0x271bf1&&_0x271bf1['userId']===_0x4b994e?this['_touchedRoots']['delete'](_0x102767['rootName']):this['_touchedRoots']['set'](_0x102767['rootName'],{'userId':_0x4b994e,'isAttached':_0x102767['isAdd']});}['_handleRootAttributeOperation'](_0x82a35f){const _0x345dfe=this['_diffRootsAttributes']['get'](_0x82a35f['root']['rootName']);null===_0x82a35f['newValue']?delete _0x345dfe[_0x82a35f['key']]:_0x345dfe[_0x82a35f['key']]=_0x82a35f['newValue'];}}function N(_0x4f28a0){const _0xed9b64=P(_0x4f28a0['rootName'],_0x4f28a0['isAttached']());for(const _0xd05400 of _0x4f28a0['getChildren']()){const _0x3f020d=_0xd05400['_clone'](!0x0);_0xed9b64['_appendChild'](_0x3f020d);}return _0xed9b64;}function P(_0x5b9a4e,_0x8014aa=!0x0){const _0x2f0752=new gt();return _0x2f0752['rootName']=_0x5b9a4e,_0x2f0752['_isAttached']=_0x8014aa,_0x2f0752['isAttached']=()=>_0x2f0752['_isAttached'],_0x2f0752;}function F(_0x12d65c,_0x38ba7e,_0x1d1122){const _0x495092='elementEnd'==_0x12d65c['type']?_0x1d1122['createPositionAt'](_0x12d65c['item'],'end'):_0x1d1122['createPositionBefore'](_0x12d65c['item']);return _0x1d1122['createPositionFromPath'](_0x38ba7e,_0x495092['path'],_0x495092['stickiness']);}function B(_0x316456,_0x4a2cfc,_0x5b6078){const _0x448256='elementStart'==_0x316456['type']?_0x5b6078['createPositionAt'](_0x316456['item'],0x0):_0x5b6078['createPositionAfter'](_0x316456['item']);return _0x5b6078['createPositionFromPath'](_0x4a2cfc,_0x448256['path'],_0x448256['stickiness']);}class os extends _0x18313a{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2a7faf,_0x2bb430){super(_0x2a7faf),this['focusTracker']=new _0x50bd47(),this['keystrokes']=new _0x4ecd61(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2bb430),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'](),_0x47be2c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4001ca=_0x4f8be3=>_0x4f8be3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4001ca),this['keystrokes']['set']('arrowleft',_0x4001ca),this['keystrokes']['set']('arrowup',_0x4001ca),this['keystrokes']['set']('arrowdown',_0x4001ca);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x47d138){this['revisionNameInputView']['fieldView']['element']['value']=_0x47d138['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xf8266e){const _0x3ea29e=new nt(this['locale'],ti),_0x75280b=_0x3ea29e['fieldView'];_0x75280b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x36180e=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0xf8266e&&(_0x36180e+='\x20('+g(this['locale'],'optional')+')'),(_0x3ea29e['label']=_0x36180e,_0x75280b['on']('input',()=>{this['revisionNameInputValue']=_0x75280b['element']['value']['trim']();}),_0x3ea29e);}}class f extends _0x3ba875{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x443b66=this['editor'],_0x4cb857=_0x443b66['plugins']['get']('RevisionTracker');_0x443b66['ui']['componentFactory']['add']('revisionHistory',_0x3308ac=>{const _0x485770=_0x3564c9(_0x3308ac),_0x292455=_0x485770['panelView']['children'],_0x13ed58=new _0x10dfcb(_0x3308ac),_0x3798d2=new te(_0x3308ac),_0x5be490=new _0x29dce1(_0x3308ac),_0x3f908f=new te(_0x3308ac),_0x2b9e4b=new _0x29dce1(_0x3308ac);return _0x485770['bind']('isEnabled')['to'](_0x4cb857,'isReady',_0x4cb857,'isEnabled',_0x443b66,'isReadOnly',(_0xe569d5,_0x400b2b,_0x3897dc)=>_0xe569d5&&_0x400b2b&&!_0x3897dc),_0x485770['buttonView']['set']({'icon':_0x209882,'label':g(_0x3308ac,'Revision\x20history'),'tooltip':!0x0}),_0x5be490['set']({'label':g(_0x3308ac,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5be490['bind']('isEnabled')['to'](_0x4cb857,'isReady',_0x4cb857,'isEnabled',_0x443b66,'isReadOnly',(_0x27457e,_0x804ca,_0x26eb56)=>_0x27457e&&_0x804ca&&!_0x26eb56),_0x5be490['on']('execute',()=>this['_showDialog']()),_0x2b9e4b['set']({'label':g(_0x3308ac,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2b9e4b['bind']('isEnabled')['to'](_0x4cb857,'isReady',_0x443b66,'isReadOnly',(_0xc7e616,_0x1bbed7)=>_0xc7e616&&!_0x1bbed7),_0x2b9e4b['on']('execute',()=>{_0x443b66['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x485770['isOpen']=!0x1,_0x443b66['editing']['view']['focus']();}),_0x3798d2['children']['add'](_0x5be490),_0x3f908f['children']['add'](_0x2b9e4b),_0x13ed58['role']='menu',_0x13ed58['items']['addMany']([_0x3798d2,_0x3f908f]),_0x292455['add'](_0x13ed58),_0x485770;}),_0x443b66['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1bcde4=this['editor'],_0x76c58c=_0x1bcde4['locale'],_0xd0cfe5=new _0x1ab6f1(_0x76c58c),_0x508d09=new _0x56e625(_0x76c58c);_0xd0cfe5['buttonView']['set']({'icon':_0x209882,'label':g(_0x76c58c,'Revision\x20history')});const _0x36ba06=new _0x39cc4d(_0x76c58c,_0xd0cfe5),_0x49a411=new _0x34296b(_0x76c58c);_0x49a411['set']({'label':g(_0x76c58c,'Save\x20current\x20revision')}),_0x49a411['delegate']('execute')['to'](_0xd0cfe5),_0x49a411['on']('execute',()=>{this['_showDialog']();}),_0x36ba06['children']['add'](_0x49a411),_0x508d09['items']['add'](_0x36ba06);const _0x3265d2=new _0x39cc4d(_0x76c58c,_0xd0cfe5),_0x4e592b=new _0x34296b(_0x76c58c);return _0x4e592b['set']({'label':g(_0x76c58c,'Open\x20revision\x20history')}),_0x4e592b['delegate']('execute')['to'](_0xd0cfe5),_0x4e592b['on']('execute',()=>{_0x1bcde4['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3265d2['children']['add'](_0x4e592b),_0x508d09['items']['add'](_0x3265d2),_0xd0cfe5['panelView']['children']['add'](_0x508d09),_0xd0cfe5;}['_showDialog'](){const _0xf26cfe=this['editor'],_0x24955b=_0xf26cfe['locale'],_0x5d7559=_0xf26cfe['plugins']['get']('Dialog'),_0x23c088=_0xf26cfe['plugins']['get']('RevisionTracker');function _0x53500f(_0x2db4a9){_0xf26cfe['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2db4a9['revisionName']?_0x2db4a9['revisionNameInputView']['errorText']=g(_0x24955b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xf26cfe['plugins']['get'](u)['saveRevision']({'name':_0x2db4a9['revisionName']}),_0x5d7559['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x53500f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5d7559['show']({'id':'revisionSave','title':g(_0x24955b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0xf26cfe['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5d7559['hide']()},{'label':g(_0xf26cfe['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3f3fe7){_0x3f3fe7['bind']('isEnabled')['to'](_0x23c088,'isReady',_0x23c088,'isEnabled',_0xf26cfe,'isReadOnly',(_0x34adee,_0xbe2bf7,_0x615836)=>_0x34adee&&_0xbe2bf7&&!_0x615836);},'onExecute':()=>_0x53500f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x425035=this['editor'],_0x365802=_0x425035['locale'];this['_saveRevisionFormView']=new os(_0x365802,_0x425035['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x18313a{['changeId'];['_model'];constructor(_0x2be4f3,_0x41778e){super(_0x2be4f3),this['_model']=_0x41778e,this['changeId']=_0x41778e['id'];const _0x36d94f=this['bindTemplate'],_0x1f0fd1=g(_0x2be4f3,_0x41778e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x41778e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x41778e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x36d94f['to']('type',_0x4ffe9d=>'ck-revision-change__'+_0x4ffe9d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1f0fd1}]},{'text':'\x20'+_0x41778e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x6a77e2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x178ac6){super(),this['id']=_0x178ac6['id']||_0x58b8ff(),this['author']=_0x178ac6['author'],this['type']=_0x178ac6['type'],this['data']=_0x178ac6['data']||{},this['rootName']=_0x178ac6['rootName'],this['set']('createdAt',_0x178ac6['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x207624,_0x4837b5){this['newRevisionId']=_0x207624,this['oldRevisionId']=_0x4837b5,this['changes']=new _0x5495c4();}['_setChanges'](_0x5cbad2){for(const _0x4bca68 of _0x5cbad2)this['changes']['add'](_0x4bca68);}}class m extends _0x3ba875{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1b8b11,_0x44407,I,V];}constructor(_0x3a99dd){super(_0x3a99dd),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4767da,_0x4a4bab,_0x44d30e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xab8b00=>{for(const _0x26f414 of this['editor']['editing']['view']['document']['roots'])_0x44d30e?_0xab8b00['removeClass']('ck-editor__editable__overlay',_0x26f414):_0xab8b00['addClass']('ck-editor__editable__overlay',_0x26f414);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x416a64=>null!==_0x416a64),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x162014,_0x18cfd1,_0x56daf4)=>_0x162014&&_0x56daf4?_0x18cfd1['changes']['getIndex'](_0x56daf4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x558fb9,_0xb431ae)=>_0x558fb9?_0xb431ae['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x44407);}['init'](){const _0x5b30ec=this['editor'],_0xa02973=new pt(_0x5b30ec,{'direction':'backward'}),_0x1892f0=new pt(_0x5b30ec,{'direction':'forward'});(_0x5b30ec['commands']['add']('showPreviousChange',_0xa02973),_0x5b30ec['commands']['add']('showNextChange',_0x1892f0),_0x5b30ec['commands']['add']('restoreRevision',new wt(_0x5b30ec)),this['on']('change:numberOfChanges',()=>{_0xa02973['refresh'](),_0x1892f0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b30ec['enableReadOnlyMode']('revision-viewer'),_0x5b30ec['plugins']['has']('WidgetToolbarRepository'))&&_0x5b30ec['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2c3d9f){return await this['_utils']['loadRevisionData'](_0x2c3d9f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2c3d9f);}async['getRevisionRootsAttributes'](_0x139c6b){return await this['_utils']['loadRevisionData'](_0x139c6b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x139c6b);}async['compare'](_0xe8e2db,_0x4fdc7a,_0x1f7944=!0x1){if(!this['isEnabled'])return;const _0x5dcd5e=this['diff'],_0x58d753=this['repository'],_0xc748cb='string'==typeof _0xe8e2db?_0x58d753['getRevision'](_0xe8e2db):_0xe8e2db,_0x26e2a2='string'==typeof _0x4fdc7a?_0x58d753['getRevision'](_0x4fdc7a):_0x4fdc7a,_0x3528d7=_0xc748cb['id'],_0x2c1e41=_0x26e2a2?_0x26e2a2['id']:null;if(!_0x1f7944&&this['diff']&&this['diff']['newRevisionId']===_0x3528d7&&this['diff']['oldRevisionId']===_0x2c1e41)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3528d7,_0x2c1e41);const _0x1b0404=this['_getRevisionsRange'](_0xc748cb,_0x26e2a2,!0x0)['map'](_0x3ac4d6=>this['_utils']['loadRevisionData'](_0x3ac4d6,this['adapter']));return _0x1b0404['push'](new Promise(_0x537851=>{setTimeout(_0x537851,0x14);})),Promise['all'](_0x1b0404)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xe8a9f0=this['_getDiff'](_0x3528d7,_0x2c1e41);for(const _0x458e51 of _0xe8a9f0['changes'])this['_changeIdToChange']['set'](_0x458e51['id'],_0x458e51);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4530cf=>{for(const _0x95d1 of this['editor']['model']['document']['getRootNames']())_0x4530cf['detachRoot'](_0x95d1);for(const _0x148a0a of Object['keys'](_0xe8a9f0['model'])){const _0x45d767=_0x4530cf['addRoot'](_0x148a0a);for(const _0x1a166c of Object['keys'](_0xe8a9f0['attributes'][_0x148a0a]))_0x4530cf['setAttribute'](_0x1a166c,_0xe8a9f0['attributes'][_0x148a0a][_0x1a166c],_0x45d767);_0x4530cf['insert'](_0xe8a9f0['model'][_0x148a0a],_0x45d767,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xe8a9f0['changes'])),this['isReady']=!0x0;})['catch'](_0x3cc93d=>{console['error'](_0x3cc93d),this['_cleanUp'](),_0x5dcd5e&&(this['diff']=_0x5dcd5e),this['isReady']=!0x0;});}['addRevisionData'](_0x3a2e50,_0x105415){const _0x468aa1=this['repository']['createRevision'](_0x3a2e50);return _0x468aa1['on']('_update',(_0x2f527a,_0x18aa3e,_0x16df1a)=>_0x105415(_0x18aa3e,_0x16df1a,_0x468aa1)),this['repository']['addRevision'](_0x468aa1),_0x468aa1;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x23bc24=>{for(const _0x58d93c of this['editor']['model']['document']['getRootNames']())_0x23bc24['detachRoot'](_0x58d93c);});}['_sortAndFilterDiffChanges'](_0x23b196){const _0x141f2d=[],_0xeaf635=new Map();for(const _0x4d49b0 of this['editor']['model']['document']['getRootNames']()){const _0x30f7bf=this['editor']['editing']['view']['getDomRoot'](_0x4d49b0);if(!_0x30f7bf)continue;const _0x321b8c=_0x30f7bf['getClientRects']()['item'](0x0);_0x321b8c&&(_0x141f2d['push'](_0x4d49b0),_0xeaf635['set'](_0x4d49b0,_0x321b8c));}return _0x141f2d['sort']((_0x263e5c,_0x5a4f73)=>{const _0xc63c23=_0xeaf635['get'](_0x263e5c),_0x5629e0=_0xeaf635['get'](_0x5a4f73);return _0xc63c23['y']-_0x5629e0['y']||_0xc63c23['x']-_0x5629e0['x'];}),(_0x23b196=_0x23b196['filter'](_0x1a3a3d=>_0x141f2d['includes'](_0x1a3a3d['rootName'])))['sort']((_0x4735c6,_0xd8049a)=>_0x141f2d['indexOf'](_0x4735c6['rootName'])-_0x141f2d['indexOf'](_0xd8049a['rootName'])),_0x23b196;}['_makeTape'](_0x4f150c){const _0x822270=Array['from'](_0x4f150c['markers'])['filter'](([_0x4c667e,_0xbdc58d])=>_0x4c667e['startsWith']('revision:')&&!_0xbdc58d['isCollapsed']),_0x3ee569=Array['from'](this['editor']['model']['createRangeIn'](_0x4f150c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x822270['length'])for(const _0x4d492c of _0x3ee569){const [_0xb3a3fd,_0x42f0b8]=_0x822270[0x0],[,_0x5d2b33,_0x5c9859]=_0xb3a3fd['split'](':');if(_0x42f0b8['end']['isEqual'](_0x4d492c['nextPosition'])&&_0x822270['shift'](),(_0x4d492c['previousPosition']['isEqual'](_0x42f0b8['start'])||_0x4d492c['previousPosition']['isAfter'](_0x42f0b8['start']))&&('insertion'==_0x5d2b33?_0x4d492c['isAdded']={'userId':_0x5c9859}:'deletion'==_0x5d2b33&&(_0x4d492c['isRemoved']={'userId':_0x5c9859})),0x0==_0x822270['length'])break;}return _0x3ee569;}['_refreshStartEndIndex'](_0x3c2731){const _0x2bf3e3=new Map();for(let _0x324e65=0x0;_0x324e65<_0x3c2731['length'];_0x324e65++)'text'===_0x3c2731[_0x324e65]['type']?(_0x3c2731[_0x324e65]['item']['startIndex']=_0x324e65,_0x3c2731[_0x324e65]['item']['endIndex']=_0x324e65):('elementStart'===_0x3c2731[_0x324e65]['type']?_0x3c2731[_0x324e65]['item']['startIndex']=_0x324e65:'elementEnd'===_0x3c2731[_0x324e65]['type']&&(_0x3c2731[_0x324e65]['item']['endIndex']=_0x324e65),_0x2bf3e3['set'](_0x3c2731[_0x324e65]['id'],_0x324e65));for(const _0x530cd9 of _0x2bf3e3['values']())'elementStart'===_0x3c2731[_0x530cd9]['type']?_0x3c2731[_0x530cd9]['item']['endIndex']=_0x2bf3e3['get'](_0x3c2731[_0x530cd9]['pairId']):'elementEnd'===_0x3c2731[_0x530cd9]['type']&&(_0x3c2731[_0x530cd9]['item']['startIndex']=_0x2bf3e3['get'](_0x3c2731[_0x530cd9]['pairId']));}['_processTape'](_0x2f795d){for(let _0x3ee77c=0x0;_0x3ee77c<_0x2f795d['length'];_0x3ee77c++){if('elementStart'===_0x2f795d[_0x3ee77c]['type'])_0x2f795d[_0x3ee77c]['item']['startIndex']=_0x3ee77c;else{if('elementEnd'===_0x2f795d[_0x3ee77c]['type']){_0x2f795d[_0x3ee77c]['item']['endIndex']=_0x3ee77c;const _0x25dcd1=_0x2f795d[_0x3ee77c]['item']['startIndex'];_0x2f795d[_0x25dcd1]['pairId']=_0x2f795d[_0x3ee77c]['id'],_0x2f795d[_0x3ee77c]['pairId']=_0x2f795d[_0x25dcd1]['id'];}else _0x2f795d[_0x3ee77c]['item']['startIndex']=_0x3ee77c,_0x2f795d[_0x3ee77c]['item']['endIndex']=_0x3ee77c,_0x2f795d[_0x3ee77c]['pairId']=null;}_0x2f795d[_0x3ee77c]['markersStart']||(_0x2f795d[_0x3ee77c]['markersStart']=[],_0x2f795d[_0x3ee77c]['markersEnd']=[]);}}['_markInsertions'](_0x83bc07,_0x23931c){const _0x2aaa06=_0x83bc07['filter'](_0x4e85da=>!_0x4e85da['isAdded']);for(let _0x3eaf67=0x0;_0x3eaf67<_0x23931c['length'];_0x3eaf67++)_0x23931c[_0x3eaf67]['isAdded']&&(_0x2aaa06[_0x3eaf67]['isAdded']=_0x23931c[_0x3eaf67]['isAdded']);}['_getDiff'](_0x5bc1a6,_0x546d52=null){const _0x4d18b3=this['repository']['getRevision'](_0x5bc1a6),_0x3e501c=_0x546d52?this['repository']['getRevision'](_0x546d52):null,_0x4a78bd=this['_getRevisionsRange'](_0x4d18b3,_0x3e501c),_0x17e436=_0x4a78bd[_0x4a78bd['length']-0x1],_0x3c2830=new Map(),_0x3207d6={'model':{},'attributes':{},'changes':[]},_0x3c5c2c=new Set(),_0x31c5cc=new Map();for(let _0x5df376=_0x4a78bd['length']-0x1;_0x5df376>=0x0;_0x5df376--){const _0x2c9ffc=_0x4a78bd[_0x5df376];for(const _0x2017b5 of Object['keys'](_0x2c9ffc['diffData']))if(_0x2c9ffc['diffData'][_0x2017b5]['attachChange']){const _0x1146ce=_0x2c9ffc['diffData'][_0x2017b5]['attachChange'];_0x1146ce['isAttached']?(_0x3c5c2c['add'](_0x2017b5),_0x31c5cc['has'](_0x2017b5)&&_0x31c5cc['get'](_0x2017b5)['userId']==_0x1146ce['userId']?_0x31c5cc['delete'](_0x2017b5):_0x31c5cc['set'](_0x2017b5,_0x1146ce)):_0x31c5cc['has'](_0x2017b5)?(_0x3c5c2c['delete'](_0x2017b5),_0x31c5cc['delete'](_0x2017b5)):(_0x3c5c2c['add'](_0x2017b5),_0x31c5cc['set'](_0x2017b5,_0x1146ce));}else _0x3c5c2c['add'](_0x2017b5);}for(const _0x139f57 of _0x3c5c2c){const _0x906e19=_0x31c5cc['has'](_0x139f57)&&!_0x31c5cc['get'](_0x139f57)['isAttached'];let _0x3cd81e=_0x906e19?_0x4a78bd['length']-0x1:0x0;const _0x1ef67f=_0x906e19?-0x1:0x1;for(;_0x4a78bd[_0x3cd81e];){const _0x9210e8=_0x4a78bd[_0x3cd81e];if(_0x9210e8['diffData'][_0x139f57]){const _0x1a01f9=_0x906e19?_0x9210e8['diffData'][_0x139f57]['attributesBefore']:_0x9210e8['diffData'][_0x139f57]['attributesAfter'];_0x3207d6['attributes'][_0x139f57]=_0x1a01f9?_0x291809(_0x1a01f9):{};break;}_0x3cd81e+=_0x1ef67f;}}for(const _0x50066c of _0x4a78bd){_0x50066c['model']={};for(const _0x4df297 of _0x50066c['authors'])_0x3c2830['set'](_0x4df297['id'],_0x4df297);for(const _0x13a844 of _0x3c5c2c){const _0x5d59f8=_0x50066c['diffData'][_0x13a844]?_0x50066c['diffData'][_0x13a844]['insertions']:'[]',_0x5350f7=_0x50066c['diffData'][_0x13a844]?_0x50066c['diffData'][_0x13a844]['deletions']:'[]';_0x50066c['model'][_0x13a844]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5d59f8),'deletions':this['_utils']['_makeModelFromViewString'](_0x5350f7)};}}for(const _0x50ff79 of _0x3c5c2c){let _0x1e5a68=null,_0x18bee9=0x0;const _0x212962=new Map(Array['from'](_0x4d18b3['model'][_0x50ff79]['insertions']['markers'])['filter'](([_0x336371])=>!_0x336371['startsWith']('revision:')));let _0x5e407c=0x0;for(const _0x1837f4 of _0x4a78bd){const _0x3eca91=this['_makeTape'](_0x1837f4['model'][_0x50ff79]['insertions']);_0x1837f4==_0x4d18b3?(_0x1e5a68=_0x3eca91,_0x18bee9=_0x1e5a68['length'],_0x1e5a68['forEach'](_0x5abd4b=>{_0x5abd4b['id']=_0x5e407c++;}),this['_processTape'](_0x1e5a68)):this['_markInsertions'](_0x1e5a68,_0x3eca91);const _0x13a29c=_0x1e5a68['filter'](_0x3a6239=>!_0x3a6239['isAdded'])['map'](_0x3e1953=>_0x3e1953['id']);let _0x46f4df=0x0;const _0xfda3d3=this['_makeTape'](_0x1837f4['model'][_0x50ff79]['deletions']);_0xfda3d3['forEach'](_0x57ba7f=>{_0x57ba7f['isRemoved']?_0x57ba7f['id']=_0x18bee9++:_0x57ba7f['id']=_0x13a29c[_0x46f4df++];}),this['_processTape'](_0xfda3d3),this['_setDistance'](_0x1e5a68,'isAdded'),this['_setDistance'](_0xfda3d3,'isRemoved'),_0x1837f4==_0x4d18b3&&this['_markMarkers'](_0x1e5a68,_0x212962),_0x1e5a68=this['_joinTapes'](_0x1e5a68,_0xfda3d3),this['_refreshStartEndIndex'](_0x1e5a68),this['_setDistance'](_0x1e5a68,'isRemoved');}_0x1e5a68=_0x1e5a68['filter'](_0x31d35c=>!(_0x31d35c['isAdded']&&_0x31d35c['isRemoved']));const _0xa4e260=new Map(_0x17e436['model'][_0x50ff79]['deletions']['markers']),_0x3372b1=new Set(_0x212962['keys']());for(const _0x3950bb of _0xa4e260['keys']())_0x3372b1['delete'](_0x3950bb);this['_markSuggestions'](_0x1e5a68,_0x3372b1),this['_fixObsoleteTags'](_0x1e5a68),_0x1e5a68=this['_removeMissingPairs'](_0x1e5a68),_0x1e5a68=this['_markMismatchedRemovedTags'](_0x1e5a68),_0x1e5a68=this['_removeUnsupportedChanges'](_0x1e5a68);const {root:_0x47f16d,changes:_0x42e3cb}=this['_makeModelFromTape'](_0x1e5a68,_0x3c2830,_0x50ff79);_0x3207d6['model'][_0x50ff79]=_0x47f16d;const _0x55633b=_0x31c5cc['get'](_0x50ff79);if(_0x55633b){const _0x2ce1c4=_0x3c2830['get'](_0x55633b['userId']),_0x4ede97=new r({'author':_0x2ce1c4,'type':_0x55633b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x50ff79});_0x42e3cb['unshift'](_0x4ede97),_0x3207d6['attributes'][_0x50ff79]['revisionHistoryAttachChange']=_0x4ede97['id'];}_0x3207d6['changes']=_0x3207d6['changes']['concat'](_0x42e3cb);}return _0x3207d6;}['_markMarkers'](_0x19a0ad,_0x2eefea){for(let _0x52c7eb=0x0;_0x52c7eb<_0x19a0ad['length'];_0x52c7eb++)for(const [_0x19ab29,_0xb78d4a]of _0x2eefea)!_0xb78d4a['isCollapsed']&&_0xb78d4a['start']['isEqual'](_0x19a0ad[_0x52c7eb]['previousPosition'])&&_0x19a0ad[_0x52c7eb]['markersStart']['push'](_0x19ab29),_0xb78d4a['end']['isEqual'](_0x19a0ad[_0x52c7eb]['nextPosition'])&&_0x19a0ad[_0x52c7eb]['markersEnd']['push'](_0x19ab29);}['_joinTapes'](_0x29b104,_0x26e641){let _0x55f5ba=[],_0x1e1a0a=0x0,_0x38ff39=0x0;for(;_0x1e1a0a<_0x29b104['length']||_0x38ff39<_0x26e641['length'];){const _0x379f96=_0x29b104[_0x1e1a0a]||{},_0x1fcc7a=_0x26e641[_0x38ff39]||{};if(_0x379f96['id']==_0x1fcc7a['id'])_0x1e1a0a++,_0x38ff39++,_0x55f5ba['push'](_0x379f96);else{if(_0x1fcc7a['isRemoved']&&_0x379f96['isAdded']){const {commonTape:_0x36fc8d,iEnd:_0x29227c,jEnd:_0x44bb95}=this['_threeWayMerge'](_0x29b104,_0x1e1a0a,_0x26e641,_0x38ff39);_0x55f5ba=_0x55f5ba['concat'](_0x36fc8d),_0x1e1a0a=_0x29227c,_0x38ff39=_0x44bb95;}else _0x1fcc7a['isRemoved']?(_0x38ff39++,_0x55f5ba['push'](_0x1fcc7a)):(_0x1e1a0a++,_0x55f5ba['push'](_0x379f96));}}return _0x55f5ba;}['_markSuggestions'](_0x1cee7b,_0xaa26e2){const _0x4a1e98=[];for(let _0x441dd6=0x0;_0x441dd6<_0x1cee7b['length'];_0x441dd6++){for(let _0x21e306=0x0;_0x21e306<_0x1cee7b[_0x441dd6]['markersStart']['length'];_0x21e306++){const _0x5eb0ab=_0x1cee7b[_0x441dd6]['markersStart'][_0x21e306];if(!_0xaa26e2['has'](_0x5eb0ab))continue;const {group:_0x485c61,type:_0x275d77,authorId:_0x533269}=_0x40dd5e(_0x5eb0ab);'revision-suggestion'!=_0x485c61||'insertion'!=_0x275d77&&'deletion'!=_0x275d77||(_0x4a1e98['unshift']({'type':_0x275d77,'name':_0x5eb0ab,'userId':_0x533269}),_0x1cee7b[_0x441dd6]['markersStart']['splice'](_0x21e306,0x1),_0x21e306--);}_0x29d385(_0x1cee7b[_0x441dd6]);for(let _0xd9a462=0x0;_0xd9a462<_0x1cee7b[_0x441dd6]['markersEnd']['length'];_0xd9a462++){const _0x1a4846=_0x1cee7b[_0x441dd6]['markersEnd'][_0xd9a462];if(!_0xaa26e2['has'](_0x1a4846))continue;const {group:_0x59b242,type:_0x5cd06e}=_0x40dd5e(_0x1a4846);if('revision-suggestion'!=_0x59b242||'insertion'!=_0x5cd06e&&'deletion'!=_0x5cd06e)continue;_0x1cee7b[_0x441dd6]['markersEnd']['splice'](_0xd9a462,0x1),_0xd9a462--;const _0x2741ea=_0x4a1e98['findIndex'](_0x4f7f64=>_0x4f7f64['name']==_0x1a4846);_0x2741ea>-0x1&&_0x4a1e98['splice'](_0x2741ea,0x1);}}function _0x40dd5e(_0xb77e1d){const _0xe25fbd=_0xb77e1d['split'](':');return{'group':_0xe25fbd[0x0],'type':_0xe25fbd[0x1],'subType':_0xe25fbd['length']>=0x5?_0xe25fbd[0x2]:null,'id':_0xe25fbd['length']<0x5?_0xe25fbd[0x2]:_0xe25fbd[0x3],'authorId':_0xe25fbd['length']<0x5?_0xe25fbd[0x3]:_0xe25fbd[0x4],'markerCount':0x6==_0xe25fbd['length']?_0xe25fbd[0x5]:null};}function _0x29d385(_0x5ce9fa){for(let _0x4284f4=0x0;_0x4284f4<_0x4a1e98['length'];_0x4284f4++){if(_0x5ce9fa['isAdded']&&'insertion'==_0x4a1e98[_0x4284f4]['type'])return _0x5ce9fa['isAddSuggestion']=_0x4a1e98[_0x4284f4],void delete _0x5ce9fa['isAdded'];if(!_0x5ce9fa['isAdded']&&!_0x5ce9fa['isRemoved']&&'deletion'==_0x4a1e98[_0x4284f4]['type'])return void(_0x5ce9fa['isRemoveSuggestion']=_0x4a1e98[_0x4284f4]);}}}['_setDistance'](_0x350bc7,_0x57208b){let _0x2a6007=0x0,_0x236bd9=!0x1;const _0x249c5f=new Map();for(const _0x1887a9 of _0x350bc7)_0x1887a9[_0x57208b]?_0x236bd9&&(_0x2a6007++,_0x236bd9=!0x1):(_0x2a6007++,_0x236bd9=!0x0),_0x249c5f['set'](_0x1887a9['id'],_0x2a6007);for(let _0x656fa7=0x0;_0x656fa7<_0x350bc7['length'];_0x656fa7++){if('isRemoved'==_0x57208b&&_0x350bc7[_0x656fa7]['isAdded']||'isAdded'==_0x57208b&&_0x350bc7[_0x656fa7]['isRemoved'])continue;if('text'==_0x350bc7[_0x656fa7]['type']){_0x350bc7[_0x656fa7]['distance']=0x0;continue;}const _0xe06aa0=_0x249c5f['get'](_0x350bc7[_0x656fa7]['pairId']),_0x5c3a2d=_0x249c5f['get'](_0x350bc7[_0x656fa7]['id']);_0x350bc7[_0x656fa7]['distance']=_0xe06aa0-_0x5c3a2d;}}['_getRevisionsRange'](_0x557d29,_0x4d05fa,_0xda74f0=!0x1){const _0x549abc=[];let _0x3f6022=this['repository']['getIndex'](_0x557d29),_0x33950f=this['repository']['getIndex'](_0x4d05fa);for(-0x1==_0x33950f&&(_0x33950f=this['repository']['_revisions']['length'],_0xda74f0=!0x1);_0x3f6022<_0x33950f;)_0x549abc['push'](this['repository']['getRevision'](_0x3f6022)),_0x3f6022++;return _0xda74f0&&_0x549abc['push'](this['repository']['getRevision'](_0x3f6022)),_0x549abc;}['_threeWayMerge'](_0x1781b9,_0xdcb765,_0x2babda,_0x493fa3){const _0x4aa1bc=this['editor']['model']['schema'];let _0x27cdfd=_0xdcb765;for(;_0x1781b9[_0x27cdfd]&&_0x1781b9[_0x27cdfd]['isAdded'];)_0x27cdfd++;let _0x5b15e6=_0x493fa3;for(;_0x2babda[_0x5b15e6]&&_0x2babda[_0x5b15e6]['isRemoved'];)_0x5b15e6++;_0x4cf84b(_0x1781b9,_0xdcb765,_0x27cdfd),_0x4cf84b(_0x2babda,_0x493fa3,_0x5b15e6);const _0x49e876=_0x2babda['slice'](_0x493fa3,_0x5b15e6)['concat'](_0x1781b9['slice'](_0xdcb765,_0x27cdfd));return _0x49e876['sort']((_0x241ee6,_0x472225)=>_0x241ee6['side']!=_0x472225['side']?_0x241ee6['side']-_0x472225['side']:_0x241ee6['level']!=_0x472225['level']?_0x241ee6['level']-_0x472225['level']:_0x241ee6['distance']!=_0x472225['distance']?_0x472225['distance']-_0x241ee6['distance']:!!_0x241ee6['isAdded']!=!!_0x472225['isAdded']?-0x1==_0x241ee6['side']||0x0==_0x241ee6['side']?_0x241ee6['isAdded']?-0x1:0x1:_0x241ee6['isAdded']?0x1:-0x1:_0x241ee6['index']-_0x472225['index']),{'commonTape':_0x49e876,'iEnd':_0x27cdfd,'jEnd':_0x5b15e6};function _0x4cf84b(_0x1faafd,_0x46388e,_0x1445fd){let _0x397dfa=-0x1,_0x381d75=Number['POSITIVE_INFINITY'],_0x439a78=!0x0;for(let _0x355114=_0x46388e;_0x355114<_0x1445fd;_0x355114++)if(_0x4aa1bc['isInline'](_0x1faafd[_0x355114]['item'])||(_0x439a78=!0x1),_0x1faafd[_0x355114]['item']['startIndex']<_0x46388e&&(_0x397dfa=_0x355114),_0x1faafd[_0x355114]['item']['endIndex']>=_0x1445fd){_0x381d75=_0x355114;break;}_0x439a78&&(_0x397dfa=_0x1445fd-0x1);for(let _0x3e8ee0=_0x46388e;_0x3e8ee0<_0x1445fd;_0x3e8ee0++)_0x1faafd[_0x3e8ee0]['side']=_0x3e8ee0<=_0x397dfa?-0x1:_0x3e8ee0<_0x381d75?0x0:0x1,_0x1faafd[_0x3e8ee0]['index']=_0x3e8ee0;let _0x553691=0x0;for(let _0x490d8f=_0x46388e;_0x490d8f<=_0x397dfa;_0x490d8f++)0x0==_0x1faafd[_0x490d8f]['distance']?_0x1faafd[_0x490d8f]['level']=_0x553691:(_0x553691++,_0x1faafd[_0x490d8f]['level']=_0x553691,_0x553691++);for(let _0xe5eef1=_0x46388e;_0xe5eef1<_0x1445fd;_0xe5eef1++)0x0==_0x1faafd[_0xe5eef1]['side']&&(_0x1faafd[_0xe5eef1]['level']=_0x553691);_0x553691=0x0;for(let _0x9c57c6=_0x1445fd-0x1;_0x9c57c6>=_0x381d75;_0x9c57c6--)0x0==_0x1faafd[_0x9c57c6]['distance']?_0x1faafd[_0x9c57c6]['level']=_0x553691:(_0x553691--,_0x1faafd[_0x9c57c6]['level']=_0x553691,_0x553691--);}}['_fixObsoleteTags'](_0x684510){const _0x30a835=new Map(),_0x52480=this['editor']['model']['schema'];for(let _0x563828=0x1;_0x563828<_0x684510['length'];_0x563828++){let _0x38e438,_0x44eb84,_0x577616;const _0x35448b=_0x684510[_0x563828],_0x4d2a17=_0x684510[_0x563828-0x1];if('text'==_0x35448b['type'])continue;if(_0x35448b['type']!=_0x4d2a17['type'])continue;if(!_0x52480['isBlock'](_0x4d2a17['item'])||_0x52480['isLimit'](_0x4d2a17['item']))continue;if(!_0x52480['isBlock'](_0x35448b['item'])||_0x52480['isLimit'](_0x35448b['item']))continue;if((_0x684510[_0x563828]['isAdded']||_0x684510[_0x563828]['isAddSuggestion'])&&_0x684510[_0x563828-0x1]['isRemoved'])_0x38e438=_0x684510[_0x563828],_0x44eb84=_0x684510[_0x563828-0x1],_0x577616=_0x563828-0x1;else{if(!_0x684510[_0x563828]['isRemoved']||!_0x684510[_0x563828-0x1]['isAdded']&&!_0x684510[_0x563828-0x1]['isAddSuggestion'])continue;_0x38e438=_0x684510[_0x563828-0x1],_0x44eb84=_0x684510[_0x563828],_0x577616=_0x563828;}const _0x1dc3f3=_0x38e438['level']==_0x44eb84['level'],_0x128bff=Math['abs'](_0x38e438['level'])<Math['abs'](_0x44eb84['level'])&&0x0==_0x44eb84['distance'];(_0x1dc3f3||_0x128bff)&&(_0x30a835['set'](_0x44eb84['id'],_0x38e438['id']),_0x684510['splice'](_0x577616,0x1),_0x563828--,_0x38e438['isAdded']=!0x1);}for(let _0x588af1=0x0;_0x588af1<_0x684510['length'];_0x588af1++)_0x30a835['has'](_0x684510[_0x588af1]['pairId'])&&(_0x684510[_0x588af1]['pairId']=_0x30a835['get'](_0x684510[_0x588af1]['pairId']));}['_removeMissingPairs'](_0x39c0ef){const _0x376fe3=new Set(_0x39c0ef['map'](_0x45441b=>_0x45441b['id']));for(let _0x12f1c8=0x0;_0x12f1c8<_0x39c0ef['length'];_0x12f1c8++)_0x376fe3['has'](_0x39c0ef[_0x12f1c8]['pairId'])||0x0==_0x39c0ef[_0x12f1c8]['distance']||(_0x39c0ef[_0x12f1c8]['isIncorrect']=!0x0);return _0x39c0ef['filter'](_0x2cff4b=>!_0x2cff4b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x338ad8){const _0x5340c9=new Set();for(let _0x132144=0x0;_0x132144<_0x338ad8['length'];_0x132144++){if(_0x5340c9['has'](_0x338ad8[_0x132144]['id'])&&_0x338ad8[_0x132144]['isRemoved']&&(_0x338ad8[_0x132144]['isIncorrect']=!0x0),_0x338ad8[_0x132144]['isIncorrect'])continue;if(0x0==_0x338ad8[_0x132144]['distance'])continue;if('elementStart'!=_0x338ad8[_0x132144]['type'])continue;if(null==_0x338ad8[_0x132144]['pairId'])continue;let _0x28202a=_0x132144+0x1,_0xa97d77=0x0;for(;_0x338ad8[_0x28202a]['id']!=_0x338ad8[_0x132144]['pairId'];)'elementStart'==_0x338ad8[_0x28202a]['type']?_0xa97d77++:'elementEnd'==_0x338ad8[_0x28202a]['type']&&_0xa97d77--,_0x28202a++;if(0x0!=_0xa97d77){if(_0x338ad8[_0x132144]['isRemoved'])_0x338ad8[_0x132144]['isIncorrect']=!0x0;else{for(;_0x28202a!=_0x132144;)_0x338ad8[_0x28202a]['isRemoved']&&0x0!=_0x338ad8[_0x28202a]['distance']&&(_0x338ad8[_0x28202a]['isIncorrect']=!0x0,_0x5340c9['add'](_0x338ad8[_0x28202a]['pairId'])),_0x28202a--;}}}return _0x338ad8['filter'](_0x38fed7=>!_0x38fed7['isIncorrect']);}['_removeUnsupportedChanges'](_0x47d46d){const _0x447593=this['editor']['model']['schema'];for(let _0x40bb47=0x0;_0x40bb47<_0x47d46d['length'];_0x40bb47++){if(!(_0x47d46d[_0x40bb47]['isAdded']||_0x47d46d[_0x40bb47]['isAddSuggestion']||_0x47d46d[_0x40bb47]['isRemoved']||_0x47d46d[_0x40bb47]['isRemoveSuggestion']))continue;if(0x0==_0x47d46d[_0x40bb47]['distance'])continue;const _0x4d4f0a=_0x47d46d[_0x40bb47]['item'];_0x447593['isBlock'](_0x4d4f0a)||_0x447593['isLimit'](_0x4d4f0a)||(_0x47d46d[_0x40bb47]['isAdded']&&delete _0x47d46d[_0x40bb47]['isAdded'],_0x47d46d[_0x40bb47]['isAddSuggestion']&&delete _0x47d46d[_0x40bb47]['isAddSuggestion'],_0x47d46d[_0x40bb47]['isRemoveSuggestion']&&delete _0x47d46d[_0x40bb47]['isRemoveSuggestion'],_0x47d46d[_0x40bb47]['isRemoved']&&(_0x47d46d[_0x40bb47]['isIncorrect']=!0x0));}return _0x47d46d['filter'](_0x324154=>!_0x324154['isIncorrect']);}['_makeModelFromTape'](_0x5d57d2,_0x3af34e,_0x45457e){const _0x45761a=new gt(),_0x10ad1b=[],_0x4f52db=new Map(),_0x13e9d7=this['editor']['model'],_0x3ad15d=_0x13e9d7['schema'],_0x52025e=[_0x45761a],_0x462395={},_0x2dcdaf={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4d19de=null;const _0x5d3bb8=[0x0];for(let _0x3f1cd7=0x0;_0x3f1cd7<_0x5d57d2['length'];_0x3f1cd7++)if('elementStart'===_0x5d57d2[_0x3f1cd7]['type']){_0x5d57d2[_0x3f1cd7]['previousPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8);const _0x59deb6=new ut(_0x5d57d2[_0x3f1cd7]['item']['name'],_0x5d57d2[_0x3f1cd7]['item']['getAttributes']());_0x52025e[0x0]['_appendChild'](_0x59deb6),_0x5d3bb8['push'](0x0),_0x52025e['unshift'](_0x59deb6),_0x5d57d2[_0x3f1cd7]['nextPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8);}else'elementEnd'===_0x5d57d2[_0x3f1cd7]['type']?(_0x52025e['shift'](),_0x5d57d2[_0x3f1cd7]['previousPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8),_0x5d3bb8['pop'](),_0x5d3bb8[_0x5d3bb8['length']-0x1]++,_0x5d57d2[_0x3f1cd7]['nextPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8)):(_0x5d57d2[_0x3f1cd7]['previousPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8),_0x4d19de?_0x4d19de['_data']+=_0x5d57d2[_0x3f1cd7]['item']['data']:_0x4d19de=new mt(_0x5d57d2[_0x3f1cd7]['item']['data'],_0x5d57d2[_0x3f1cd7]['item']['getAttributes']()),_0x5d57d2[_0x3f1cd7+0x1]&&'text'===_0x5d57d2[_0x3f1cd7+0x1]['type']&&_0x413d82(_0x4d19de,_0x5d57d2[_0x3f1cd7+0x1]['item'])||(_0x52025e[0x0]['_appendChild'](_0x4d19de),_0x4d19de=null),_0x5d3bb8[_0x5d3bb8['length']-0x1]+=_0x5d57d2[_0x3f1cd7]['item']['offsetSize'],_0x5d57d2[_0x3f1cd7]['nextPosition']=_0x13e9d7['createPositionFromPath'](_0x45761a,_0x5d3bb8));for(let _0x1c3863=0x0;_0x1c3863<_0x5d57d2['length'];_0x1c3863++){const _0x124ff1=_0x5d57d2[_0x1c3863]['previousPosition'],_0x3d6448=_0x5d57d2[_0x1c3863]['nextPosition'];for(const _0xb33afe of _0x5d57d2[_0x1c3863]['markersStart'])_0x4f52db['set'](_0xb33afe,{'start':_0x124ff1,'end':null});_0x189c31('isRemoveSuggestion',_0x1c3863,_0x124ff1,_0x3d6448),_0x189c31('isAddSuggestion',_0x1c3863,_0x124ff1,_0x3d6448),_0x189c31('isRemoved',_0x1c3863,_0x124ff1,_0x3d6448),_0x189c31('isAdded',_0x1c3863,_0x124ff1,_0x3d6448);for(const _0xbee012 of _0x5d57d2[_0x1c3863]['markersEnd']){const _0x344945=_0x4f52db['get'](_0xbee012);_0x344945?_0x344945['end']=_0x3d6448:_0x4f52db['set'](_0xbee012,{'start':_0x3d6448,'end':_0x3d6448});}}for(const [_0x383a64,_0x23a033]of _0x4f52db){const _0x1bc7d7=this['editor']['model']['createRange'](_0x23a033['start'],_0x23a033['end']);_0x45761a['markers']['set'](_0x383a64,_0x1bc7d7);}return _0x10ad1b['sort']((_0x1ddfcd,_0x40ca72)=>{const _0x2ba7c2=_0x45761a['markers']['get']('revision:'+_0x1ddfcd['id']),_0x42477a=_0x45761a['markers']['get']('revision:'+_0x40ca72['id']);return _0x2ba7c2['start']['isBefore'](_0x42477a['start'])?-0x1:_0x2ba7c2['start']['isAfter'](_0x42477a['start'])?0x1:_0x2ba7c2['end']['isBefore'](_0x42477a['end'])?-0x1:_0x2ba7c2['end']['isAfter'](_0x42477a['end'])?0x1:'add'===_0x1ddfcd['type']?-0x1:0x1;}),{'root':_0x45761a,'changes':_0x10ad1b};function _0x189c31(_0x386938,_0x2cc315,_0x47b4c3,_0x1d33c2){const _0xf666a1=!!_0x5d57d2[_0x2cc315][_0x386938],_0x1a23b6=_0xf666a1?_0x5d57d2[_0x2cc315][_0x386938]['userId']:null,_0x5bd6c2=_0x2cc315===_0x5d57d2['length']-0x1,_0xebd258=_0x2dcdaf[_0x386938][0x0],_0x20ad1c=_0x3ad15d['isObject'](_0x5d57d2[_0x2cc315]['item']);!_0x462395[_0x386938]&&_0xf666a1?_0x462395[_0x386938]={'start':_0x47b4c3,'tapeItem':_0x5d57d2[_0x2cc315],'userId':_0x1a23b6,'type':_0x386938}:_0x462395[_0x386938]&&!_0xf666a1?(_0x462395[_0x386938]['end']=_0x47b4c3,_0xcd7bb3(_0x462395[_0x386938]),_0x462395[_0x386938]=null):_0x462395[_0x386938]&&_0xf666a1&&_0x462395[_0x386938]['userId']!==_0x1a23b6&&(_0x462395[_0x386938]['end']=_0x47b4c3,_0xebd258&&_0xebd258['userId']===_0x462395[_0x386938]['userId']||_0xcd7bb3(_0x462395[_0x386938]),_0x462395[_0x386938]={'start':_0x47b4c3,'tapeItem':_0x5d57d2[_0x2cc315],'userId':_0x1a23b6,'type':_0x386938}),_0x462395[_0x386938]&&_0x20ad1c&&('elementStart'!==_0x5d57d2[_0x2cc315]['type']||_0xebd258&&_0xebd258['userId']===_0x1a23b6||_0x2dcdaf[_0x386938]['unshift']({'userId':_0x1a23b6,'object':_0x5d57d2[_0x2cc315]['item'],'change':_0x462395[_0x386938]}),'elementEnd'===_0x5d57d2[_0x2cc315]['type']&&_0xebd258&&_0xebd258['object']===_0x5d57d2[_0x2cc315]['item']&&(_0x2dcdaf[_0x386938]['shift'](),_0x462395[_0x386938]=_0xebd258['change'])),_0x462395[_0x386938]&&_0x5bd6c2&&(_0x462395[_0x386938]['end']=_0x1d33c2,_0xcd7bb3(_0x462395[_0x386938]),_0x462395[_0x386938]=null);}function _0xcd7bb3({start:_0x2b8c6f,end:_0x113be1,tapeItem:_0x1b322b,userId:_0x53a8b9,type:_0x10ec64}){const _0x5bcb30=_0x1b322b['item'],_0x3ab1f1=_0x13e9d7['schema']['isBlock'](_0x5bcb30)&&!_0x13e9d7['schema']['isLimit'](_0x5bcb30),_0x46040f=_0x2b8c6f['nodeAfter']==_0x113be1['parent']&&_0x113be1['isAtStart'];if(_0x3ab1f1&&_0x46040f)return;const _0x5907aa=_0x13e9d7['createRange'](_0x2b8c6f,_0x113be1),_0x49b458=_0x3af34e['get'](_0x53a8b9),_0x1a89f4=new r({'author':_0x49b458,'type':'isAdded'==_0x10ec64||'isAddSuggestion'==_0x10ec64?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x10ec64||'isRemoveSuggestion'==_0x10ec64},'createdAt':new Date(),'rootName':_0x45457e});_0x10ad1b['push'](_0x1a89f4),_0x45761a['markers']['set']('revision:'+_0x1a89f4['id'],_0x5907aa);}function _0x413d82(_0x23fd05,_0x64a2c0){const _0x219f9a=_0x23fd05['getAttributes'](),_0x3f84a6=_0x64a2c0['getAttributes']();for(const _0x212b6b of _0x219f9a){if(_0x212b6b[0x1]!==_0x64a2c0['getAttribute'](_0x212b6b[0x0]))return!0x1;_0x3f84a6['next']();}return _0x3f84a6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x445f5c=>{const _0x376df0=_0x445f5c['markerName']['split'](':')[0x1],_0x261554=this['_getChangeFromId'](_0x376df0);if(!_0x261554)return null;const _0x160b32='add'==_0x261554['type']?'insertion':'deletion',_0x3fa95d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x160b32];return _0x261554['data']['isSuggestion']&&_0x3fa95d['push']('ck-suggestion-marker-'+_0x160b32+'-new'),this['activeChange']==_0x261554&&_0x3fa95d['push']('ck-suggestion-marker--active'),{'classes':_0x3fa95d,'attributes':{'data-change-id':_0x376df0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x22c7d6=>{_0x22c7d6['on']('element:pre',(_0x1d58b6,_0x17589e,_0x34b572)=>{const _0x123241=_0x17589e['viewItem']['getChild'](0x0);if(!_0x123241||!_0x123241['is']('element','code'))return;if(!_0x34b572['consumable']['consume'](_0x123241,{'attributes':['vid_start','vid_end']}))return;const _0x2b463e=_0x17589e['modelRange']['start']['nodeAfter'];_0x34b572['writer']['setAttribute']('vid_start',_0x123241['getAttribute']('vid_start'),_0x2b463e),_0x34b572['writer']['setAttribute']('vid_end',_0x123241['getAttribute']('vid_end'),_0x2b463e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x133b63=>{_0x133b63['on']('element',(_0x5ea910,_0x3a8455,_0x2dff2a)=>{if(!_0x2dff2a['consumable']['consume'](_0x3a8455['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3a8455['modelRange']['isCollapsed'])return;const _0x2723c9=_0x3a8455['modelRange']['start']['nodeAfter'];_0x2723c9['hasAttribute']('vid_start')||_0x2723c9['hasAttribute']('vid')||(_0x2dff2a['writer']['setAttribute']('vid_start',_0x3a8455['viewItem']['getAttribute']('vid_start'),_0x2723c9),_0x2dff2a['writer']['setAttribute']('vid_end',_0x3a8455['viewItem']['getAttribute']('vid_end'),_0x2723c9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4d386a=>_0x4d386a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xbd0239,[,_0x5da7a0])=>{['vid_start','vid_end','vid']['includes'](_0x5da7a0)&&(_0xbd0239['return']=!0x0,_0xbd0239['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2b3336=>{_0x2b3336['on']('attribute:vid',(_0x27c731,_0x52529b,_0x225c58)=>{if('\x20'!=_0x52529b['item']['data']||_0x52529b['item']['parent']['maxOffset']>0x1)return;if(!_0x225c58['consumable']['consume'](_0x52529b['item'],_0x27c731['name']))return;const _0x1f8a3f=_0x225c58['writer'],_0x53da1c=_0x225c58['mapper']['toViewRange'](_0x52529b['range']);_0x1f8a3f['wrap'](_0x53da1c,_0x1f8a3f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x54f9f9){const _0x5e5e0d=_0x54f9f9['plugins']['get']('RevisionViewer');return(_0x261de1,_0xb6b6d,_0x566b05)=>{const _0x3085fa=_0xb6b6d['markerName']['split'](':')[0x1],_0x13b691=_0x5e5e0d['_getChangeFromId'](_0x3085fa);if(!_0x13b691)return null;const _0x4bc2d7='add'==_0x13b691['type']?'split':'merge';if(!_0x566b05['consumable']['test'](_0xb6b6d['markerRange'],_0x261de1['name']))return;const _0x5dc296=_0xb6b6d['markerRange']['getWalker'](),_0x1331e5=_0xb6b6d['markerRange']['start'],_0x166fa5=_0x54f9f9['model']['schema'];let _0x2bf024=null,_0xb8378a=null,_0x3b51be=!0x1,_0x3370cc=!0x1;for(const _0x27bab6 of _0x5dc296){const _0x1f1f8c=_0x27bab6['item'];_0x3b51be=_0x3b51be||_0x166fa5['isContent'](_0x1f1f8c);const _0x3d9919=_0x566b05['mapper']['toViewElement'](_0x1f1f8c);if(_0x3d9919&&_0x3d9919['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x27bab6['type']&&(_0x166fa5['isBlock'](_0x1f1f8c)&&!_0x166fa5['isLimit'](_0x1f1f8c)&&(_0x1f1f8c['nextSibling']||_0x1331e5['isAtEnd']?_0x2bf024&&_0x2bf024['parent']==_0x1f1f8c||(_0x2bf024=_0x1f1f8c,_0x24c060(_0x27bab6['previousPosition']),_0x3370cc=!0x0):_0xb8378a=_0xb8378a||_0x27bab6['previousPosition']));}function _0x24c060(_0x28decd){const _0x478e0=_0x566b05['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bc2d7}),_0x255771=_0x566b05['mapper']['toViewPosition'](_0x28decd);_0x13b691['data']['isSuggestion']&&_0x566b05['writer']['addClass']('ck-suggestion-marker-'+_0x4bc2d7+'-new',_0x478e0),_0x5e5e0d['activeChange']==_0x13b691&&_0x566b05['writer']['addClass']('ck-suggestion-marker--active',_0x478e0),_0x566b05['writer']['insert'](_0x255771,_0x478e0),_0x566b05['mapper']['bindElementToMarker'](_0x478e0,_0xb6b6d['markerName']);}_0x3b51be||_0x3370cc||!_0xb8378a||_0x24c060(_0xb8378a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1f1ec1,_0x209d83,_0x686478)=>{const _0x41a6d8=_0x686478['mapper']['markerNameToElements'](_0x209d83['markerName']);if(_0x41a6d8){for(const _0x8a707f of _0x41a6d8)(_0x8a707f['hasClass']('ck-suggestion-marker-split')||_0x8a707f['hasClass']('ck-suggestion-marker-merge'))&&(_0x686478['mapper']['unbindElementFromMarkerName'](_0x8a707f,_0x209d83['markerName']),_0x686478['writer']['remove'](_0x8a707f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x327f42,_0x2cdcd4,_0x499641)=>{const _0x25ca49=_0x2cdcd4['markerName']['split'](':')[0x1],_0x18d1a0=this['_getChangeFromId'](_0x25ca49);if(!_0x18d1a0)return null;const _0x3d1f8c='add'==_0x18d1a0['type']?'split':'merge';if(_0x499641['consumable']['test'](_0x2cdcd4['markerRange'],_0x327f42['name']))for(const _0x5690ff of _0x2cdcd4['markerRange']['getItems']()){if(!_0x5690ff['is']('element','softBreak'))continue;const _0x176f21=_0x499641['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d1f8c}),_0x2ca8c2=_0x499641['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5690ff));_0x18d1a0['data']['isSuggestion']&&_0x499641['writer']['addClass']('ck-suggestion-marker-'+_0x3d1f8c+'-new',_0x176f21),this['activeChange']==_0x18d1a0&&_0x499641['writer']['addClass']('ck-suggestion-marker--active',_0x176f21),_0x499641['writer']['insert'](_0x2ca8c2,_0x176f21),_0x499641['mapper']['bindElementToMarker'](_0x176f21,_0x2cdcd4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x31edf1=>{for(const _0x563bee of this['editor']['model']['document']['getRootNames']()){const _0x36f209=this['editor']['model']['document']['getRoot'](_0x563bee),_0x5b8661=this['editor']['editing']['view']['document']['getRoot'](_0x563bee);if(_0x5b8661){const _0x211569=_0x36f209['getAttribute']('revisionHistoryAttachChange');if(_0x31edf1['removeAttribute']('data-change-id',_0x5b8661),_0x31edf1['removeClass']('ck-revision-history-root-add',_0x5b8661),_0x31edf1['removeClass']('ck-revision-history-root-remove',_0x5b8661),_0x31edf1['removeClass']('ck-revision-history-root--active',_0x5b8661),_0x211569){const _0x1b907d=this['_getChangeFromId'](_0x211569);if(!_0x1b907d)return null;_0x31edf1['setAttribute']('data-change-id',_0x211569,_0x5b8661),_0x31edf1['addClass']('ck-revision-history-root-'+_0x1b907d['type'],_0x5b8661),this['activeChange']==_0x1b907d&&_0x31edf1['addClass']('ck-revision-history-root--active',_0x5b8661);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4172d8=>'revision-comment:'+_0x4172d8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x34d575=>'revision-suggestion:'+_0x34d575,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1a1e1a=>({'name':'suggestion:'+_0x1a1e1a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5bca92=>{const _0x4ee63d=_0x5bca92['markerName']['split'](':')[0x1];return'insertion'!=_0x4ee63d&&'deletion'!=_0x4ee63d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4ee63d]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x28a32c,_0x51c9e3,_0x2b85aa)=>{const _0x37f7d0=_0x2b85aa['mapper']['markerNameToElements'](_0x51c9e3['markerName']);if(_0x37f7d0){for(const _0x14596 of _0x37f7d0)_0x14596['is']('uiElement')&&(_0x2b85aa['mapper']['unbindElementFromMarkerName'](_0x14596,_0x51c9e3['markerName']),_0x2b85aa['writer']['remove'](_0x14596));}},{'priority':'high'});}['_getChangeFromId'](_0x29a45f){return this['_changeIdToChange']['get'](_0x29a45f);}['_getViewForChange'](_0x189154){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x189154),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2fa3ac,_0xbb754e,_0x301d67,_0x2f757a)=>{_0x2f757a&&this['_balloon']['remove'](_0x2f757a),_0x301d67&&(this['_balloon']['add']({'view':_0x301d67,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x35e82b=this['editor']['editing'],_0x20910e=this['_getChangeFromId'](_0x301d67['changeId']);let _0x14a48f;if(_0x20910e['data']['isOnRoot']){const _0x249872=_0x35e82b['view']['getDomRoot'](_0x20910e['rootName']);_0x14a48f=Array['from'](_0x249872['getClientRects']());}else{const _0x113b70=this['editor']['model']['markers']['get']('revision:'+_0x301d67['changeId']);_0x14a48f=Array['from'](_0x35e82b['mapper']['markerNameToElements'](_0x113b70['name']))['map'](_0x18ba59=>_0x35e82b['view']['domConverter']['mapViewToDom'](_0x18ba59))['map'](_0x4ee363=>Array['from'](_0x4ee363['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x14a48f[0x0];return _0x14a48f['find'](_0x3d6d16=>_0x3d6d16['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d6d16['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d6d16['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d6d16['right']+0x3>=this['_activeViewTarget']['x'])||_0x14a48f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3924a7,_0x31687b,_0x2c6d93,_0x4da6f0)=>{this['activeView']=_0x2c6d93?this['_getViewForChange'](_0x2c6d93):null,this['editor']['model']['change'](()=>{const _0x35da64=this['editor']['editing'];_0x4da6f0&&(_0x4da6f0['data']['isOnRoot']?_0x35da64['view']['change'](_0xa2879a=>{_0xa2879a['removeClass']('ck-revision-history-root--active',_0x35da64['view']['document']['getRoot'](_0x4da6f0['rootName']));}):_0x35da64['reconvertMarker']('revision:'+_0x4da6f0['id'])),_0x2c6d93&&(_0x2c6d93['data']['isOnRoot']?_0x35da64['view']['change'](_0x395587=>{_0x395587['addClass']('ck-revision-history-root--active',_0x35da64['view']['document']['getRoot'](_0x2c6d93['rootName']));}):_0x35da64['reconvertMarker']('revision:'+_0x2c6d93['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x544557,_0x3f7620)=>{if(this['activeChange'])return;const _0x329ca4=this['_findChangeIdFromDomTarget'](_0x3f7620['target']),_0x5d3d1e=this['_changeIdToChange']['get'](_0x329ca4);_0x5d3d1e?(this['_activeViewTarget']={'x':_0x3f7620['domEvent']['x'],'y':_0x3f7620['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5d3d1e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4ffe0d,_0x414fca)=>{const _0x1f2d1b=this['_findChangeIdFromDomTarget'](_0x414fca['target']),_0xcf976c=this['_changeIdToChange']['get'](_0x1f2d1b);_0xcf976c?(this['_activeViewTarget']={'x':_0x414fca['domEvent']['x'],'y':_0x414fca['domEvent']['y']},_0xcf976c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xcf976c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x34b8b8){do{const _0x59bbb6=_0x34b8b8['getAttribute']('data-change-id');if(_0x59bbb6)return _0x59bbb6;_0x34b8b8=_0x34b8b8['parent'];}while(_0x34b8b8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2eb654=>{for(const _0x4cf40c of this['editor']['model']['markers'])_0x2eb654['removeMarker'](_0x4cf40c);});}}function X(_0x2e57a3,_0x16fcbf){return(_0x1b7f0a,_0x2ffebe,_0x58a482)=>{if(!_0x58a482['consumable']['test'](_0x2ffebe['markerRange'],_0x1b7f0a['name']))return;const _0x45a515=_0x2ffebe['markerRange']['getWalker'](),_0x341210=_0x2ffebe['markerRange']['start'],_0x5a483d=_0x2e57a3['model']['schema'];let _0xc46b89=null,_0x530f63=null,_0x1dface=!0x1,_0x13758d=!0x1;for(const _0x43f3a5 of _0x45a515){const _0x16a532=_0x43f3a5['item'];_0x1dface=_0x1dface||_0x5a483d['isContent'](_0x16a532);const _0x3a3fc3=_0x58a482['mapper']['toViewElement'](_0x16a532);if(_0x3a3fc3&&_0x3a3fc3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x43f3a5['type']&&(_0x5a483d['isBlock'](_0x16a532)&&!_0x5a483d['isLimit'](_0x16a532)&&(_0x16a532['nextSibling']||_0x341210['isAtEnd']?_0xc46b89&&_0xc46b89['parent']==_0x16a532||(_0xc46b89=_0x16a532,_0x151d3d(_0x43f3a5['previousPosition']),_0x13758d=!0x0):_0x530f63=_0x530f63||_0x43f3a5['previousPosition']));}function _0x151d3d(_0xfaa5ef){const _0x1956dc=_0x58a482['mapper']['toViewPosition'](_0xfaa5ef),_0x434f88=_0x58a482['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x16fcbf});_0x58a482['writer']['insert'](_0x1956dc,_0x434f88),_0x58a482['mapper']['bindElementToMarker'](_0x434f88,_0x2ffebe['markerName']);}_0x1dface||_0x13758d||!_0x530f63||_0x151d3d(_0x530f63);};}class wt extends _0x23e514{constructor(_0x5821e3){super(_0x5821e3);const _0x7cbe91=_0x5821e3['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x7cbe91,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x7cbe91,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x372427=this['editor'],_0x1bcdf5=_0x372427['plugins']['get'](m),_0x48c9ce=_0x1bcdf5['isReady']?_0x1bcdf5['diff']['newRevisionId']:null;_0x372427['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x48c9ce);}['refresh'](){const {isReady:_0x56bdb8,isEnabled:_0x31d3f3,repository:_0x26d860,diff:_0x45f2e}=this['editor']['plugins']['get'](m),_0x4abbff=_0x45f2e&&_0x26d860['getLaterVisibleRevision'](_0x45f2e['newRevisionId']);this['isEnabled']=_0x56bdb8&&_0x31d3f3&&Boolean(_0x4abbff);}}class pt extends _0x23e514{['_step'];constructor(_0x234f74,{direction:_0x4111e8}){super(_0x234f74);const _0x10e765=_0x234f74['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4111e8?0x1:-0x1,this['listenTo'](_0x10e765,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10e765,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x10e765,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x124638=this['editor'],_0x437047=_0x124638['plugins']['get'](m),{isNavigationMode:_0x4ec6e4,currentChangeNumber:_0x136f54}=_0x437047;let _0x5bc919;if(_0x437047['activeChange']=_0x4ec6e4?_0x437047['diff']['changes']['get'](_0x136f54+this['_step']):_0x437047['diff']['changes']['first'],_0x437047['activeChange']['data']['isOnRoot'])_0x5bc919=_0x124638['editing']['view']['getDomRoot'](_0x437047['activeChange']['rootName']);else{const _0x4c28db=_0x124638['model']['markers']['get']('revision:'+_0x437047['activeChange']['id']);_0x5bc919=_0x225b7e(_0x124638['editing'],_0x4c28db);}_0x2606af({'target':_0x5bc919,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x42b5ec,currentChangeNumber:_0x45ec7c,numberOfChanges:_0x5f2da,isReady:_0x485d51,isEnabled:_0xed26ef}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0xed26ef&&_0x485d51&&_0x5f2da)&&(!_0x42b5ec||(0x1===this['_step']?_0x45ec7c<_0x5f2da-0x1:_0x45ec7c>0x0));}}class li extends _0x18313a{constructor(_0x480b8e){super(_0x480b8e);const _0x25dae3=this['bindTemplate'],_0x3eb2eb=new _0x29dce1(_0x480b8e),_0x11d7f1=new _0x29dce1(_0x480b8e);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',(_0x5721a0,_0x579dbb)=>_0x5721a0&&_0x579dbb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xdb201c,_0x4a43f0,_0x160ef1,_0x4d87fd)=>{if(!_0xdb201c)return g(_0x480b8e,'Loading...');if(!_0x160ef1)return g(_0x480b8e,'No\x20changes');const _0x228e73=g(_0x480b8e,'NUMBER_OF_CHANGES',_0x160ef1);return _0x4d87fd?g(_0x480b8e,'X_OF_Y_CHANGES',[_0x4a43f0+0x1,_0x160ef1]):_0x228e73;}),_0x3eb2eb['set']({'label':g(_0x480b8e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5abbae}),_0x11d7f1['set']({'label':g(_0x480b8e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4ea29c}),_0x3eb2eb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x11d7f1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3eb2eb['on']('execute',()=>this['fire']('execute','backward')),_0x11d7f1['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',_0x25dae3['if']('_isStatusLabelVisible','ck-hidden',_0x2b9d1c=>!_0x2b9d1c)]},'children':[{'text':_0x25dae3['to']('isNavigationMode',_0x3fe85d=>_0x3fe85d?g(_0x480b8e,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x480b8e,'Total')+':\x20')}]},{'text':_0x25dae3['to']('_statusText')}]},new _0x15eefc(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3eb2eb,_0x11d7f1]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3ba875{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xaf2c17=this['editor']['editing']['view'];_0xaf2c17['change'](_0xb4a12a=>{for(const _0x13d5e3 of _0xaf2c17['document']['roots'])_0xb4a12a['addClass'](ce,_0x13d5e3);});}['hide'](){const _0x4af265=this['editor']['editing']['view'];_0x4af265['change'](_0x1c2dd7=>{for(const _0x1add9c of _0x4af265['document']['roots'])_0x1c2dd7['removeClass'](ce,_0x1add9c);});}}class R extends _0x3ba875{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x2bf5da=this['editor'],_0x4b3755=_0x2bf5da['plugins']['get'](m),_0x18ab14=_0x2bf5da['plugins']['get'](le);_0x2bf5da['ui']['componentFactory']['add']('exitToEditing',_0x16e0f9=>{const _0x4ac8ef=new _0x29dce1(_0x16e0f9);return _0x4ac8ef['set']({'label':g(_0x16e0f9,'Back\x20to\x20editing'),'icon':_0x55c272,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4ac8ef,'execute',()=>{_0x2bf5da['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4ac8ef;}),_0x2bf5da['ui']['componentFactory']['add']('restoreRevision',_0x21defb=>{const _0xa0dce9=new _0x29dce1(_0x21defb);return _0xa0dce9['set']({'label':g(_0x21defb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xa0dce9['bind']('isEnabled')['to'](_0x2bf5da['commands']['get']('restoreRevision')),this['listenTo'](_0xa0dce9,'execute',()=>_0x2bf5da['execute']('restoreRevision')),_0xa0dce9;}),_0x2bf5da['ui']['componentFactory']['add']('changesNavigation',_0x11f648=>{const _0x1ab322=new li(_0x11f648),_0x5622d7=_0x2bf5da['commands']['get']('showPreviousChange'),_0x3556e2=_0x2bf5da['commands']['get']('showNextChange');return _0x1ab322['bind']('isBackwardNavigationEnabled')['to'](_0x5622d7,'isEnabled'),_0x1ab322['bind']('isForwardNavigationEnabled')['to'](_0x3556e2,'isEnabled'),_0x1ab322['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4b3755),this['listenTo'](_0x1ab322,'execute',(_0x39ab6d,_0x3b9500)=>{_0x2bf5da['execute']('forward'===_0x3b9500?'showNextChange':'showPreviousChange');}),_0x1ab322;}),_0x18ab14['show'](),_0x4b3755['on']('change:isReady',(_0x2b7e97,_0x2bb898,_0x31d4a7)=>{_0x31d4a7?_0x18ab14['hide']():_0x18ab14['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x2dc23d,_0x3458fd){super(_0x2dc23d,_0x3458fd);const _0x471630=this['bindTemplate'];this['set']({'label':g(_0x2dc23d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2dc23d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x471630['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 _0x266044=this['fieldView']['element'];this['_tooltipString']=_0x266044['scrollWidth']>_0x266044['clientWidth']&&_0x266044['value']||'';}}class oi extends _0x18313a{constructor(_0x4f92d6,_0x1ee551,_0x5b9bec){super(_0x4f92d6);const _0x1fa6fe=new _0x9e0bb7();_0x1fa6fe['set']({'content':_0x4379bb,'viewBox':'0\x200\x2011\x2010'});const _0x2e0ca9=['ck','ck-revision-history-sidebar__revision-author'];_0x5b9bec&&_0x2e0ca9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x200a64=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4f92d6,_0x5b9bec?'Revision\x20creator':'Revision\x20author')},'children':[_0x1fa6fe,_0x1ee551['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2e0ca9},'children':_0x200a64});}}function ni(_0x34dd1d,_0x2fc63f){const _0x2e8fae=_0x34dd1d['bindTemplate'],_0x360358=_0x34dd1d['locale'],_0x1af6ed=_0x3564c9(_0x360358);_0x1af6ed['panelPosition']='sw';const _0x1d6d46=function(_0x416dbd,_0x32bc65){const _0x11d590=function(_0xad8cf1,_0x3f4214){const _0x546b5e=_0xad8cf1['locale'],_0x2dcbff={'Compare\x20against\x20selected':g(_0x546b5e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x546b5e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x546b5e,'Restore\x20this\x20revision')};return _0x3f4214['map'](_0x301e29=>{const _0x425d84=_0x2dcbff[_0x301e29['name']];return _0x425d84&&_0x425d84!==_0x301e29['name']&&(_0x301e29['name']=_0x425d84),_0x301e29;});}(_0x416dbd,_0x32bc65),_0x351ddf=new _0x5495c4();for(const _0x2b9fb5 of _0x11d590){const _0x469760={'type':'button','model':new to({'label':_0x2b9fb5['name'],'class':_0x2b9fb5['class'],'withText':!0x0,'role':'menuitem','_action':_0x2b9fb5['action']})};_0x469760['model']['bind']('isEnabled')['to'](_0x416dbd,'isActionsDropdownOpen',_0x153870=>'function'!=typeof _0x2b9fb5['isEnabled']||(!_0x153870||_0x2b9fb5['isEnabled'](_0x416dbd))),_0x351ddf['add'](_0x469760);}return _0x351ddf;}(_0x34dd1d,_0x2fc63f);return _0x34dd1d['bind']('isActionsDropdownOpen')['to'](_0x1af6ed,'isOpen'),_0x1af6ed['buttonView']['set']({'label':g(_0x360358,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2cdf3c}),_0x1af6ed['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2e8fae['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2e8fae['to'](_0x455638=>_0x455638['stopPropagation']())}}),_0x1af6ed['on']('execute',_0x3b57fb=>{_0x34dd1d['isReady']&&'function'==typeof _0x3b57fb['source']['_action']&&_0x3b57fb['source']['_action'](_0x34dd1d);}),_0x294d83(_0x1af6ed,_0x1d6d46,{'role':'menu'}),_0x1af6ed['listenTo'](_0x34dd1d,'change:isActionsDropdownOpen',(_0x4de874,_0x23c409,_0x466874)=>{if(_0x466874)for(const _0x1eef7f of _0x1af6ed['listView']['items']){const _0x25e82b=_0x1eef7f['children']['first'],_0x58b679=_0x2fc63f['find'](_0x5f2bc9=>_0x5f2bc9['action']===_0x25e82b['_action'])['isVisible'];_0x1eef7f['isVisible']=void 0x0===_0x58b679||_0x58b679(_0x34dd1d);}}),_0x1af6ed;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x1f1bf1(_0x18313a){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x29d823,_0x37c540,_0x2a671b,_0x5b0e06){super(_0x29d823);const _0x279b18=this['bindTemplate'],_0x444a4a=function(_0x40699b,_0x29698b){const _0x4bd527=Array['from'](_0x29698b['authors'])['filter'](_0x171a16=>_0x171a16!=_0x29698b['creator']);return _0x29698b['creator']&&_0x4bd527['unshift'](_0x29698b['creator']),_0x4bd527['map'](_0x48c321=>new oi(_0x40699b,_0x48c321,_0x48c321==_0x29698b['creator']));}(_0x29d823,_0x37c540);this['id']=_0x37c540['id'],this['_revision']=_0x37c540,this['_requireRevisionName']=_0x5b0e06,this['bind']('name','createdAt')['to'](_0x37c540),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x53d179=>{return _0x49b837=_0x29d823['uiLanguage'],(_0x3125b1=_0x53d179)['toLocaleDateString'](_0x49b837,{'month':'long','day':'numeric'})+',\x20'+_0x3125b1['toLocaleTimeString'](_0x49b837,{'hour':'numeric','minute':'numeric'});var _0x49b837,_0x3125b1;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x29d823,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1d1c0e=>_0x1d1c0e||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5989f7,_0x18f6f9)=>_0x5989f7&&_0x18f6f9),this['revisionActionsView']=_0x2a671b&&_0x2a671b['length']?ni(this,_0x2a671b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x279b18['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x279b18['if']('isEnabled','ck-disabled',_0x735598=>!_0x735598),_0x279b18['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x279b18['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x279b18['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':_0x279b18['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':_0x444a4a}]},this['revisionActionsView']],'on':{'click':_0x279b18['to'](_0x1e34bc=>{_0x1e34bc['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4d029d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4d029d,'change',()=>{this['_requireRevisionName']&&!_0x4d029d['value']||this['fire']('setName',{'id':this['id'],'name':_0x4d029d['value']}),_0x4d029d['value']||(_0x4d029d['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(_0x449721,_0x109eee){const _0x246f62=_0x16a5a3['fromJSDate'](_0x449721)['setLocale'](_0x109eee),_0x4633e8=_0x16a5a3['local'](),_0x7e88e5=_0x4633e8['minus']({'days':0x1})['startOf']('day');let _0x4c5bc2,_0xa833d5;return _0x246f62['hasSame'](_0x4633e8,'day')?(_0x4c5bc2=_0x246f62['startOf']('day')['toJSDate'](),_0xa833d5=_0x246f62['toRelativeCalendar']()):_0x246f62['hasSame'](_0x7e88e5,'day')?(_0x4c5bc2=_0x7e88e5['toJSDate'](),_0xa833d5=_0x246f62['toRelativeCalendar']()):_0x246f62['hasSame'](_0x4633e8,'week')?(_0x4c5bc2=_0x246f62['startOf']('week')['toJSDate'](),_0xa833d5=_0x246f62['weekdayLong']||''):_0x246f62['hasSame'](_0x4633e8,'year')?(_0x4c5bc2=_0x246f62['startOf']('month')['toJSDate'](),_0xa833d5=_0x246f62['monthLong']||''):(_0x4c5bc2=_0x246f62['startOf']('year')['toJSDate'](),_0xa833d5=String(_0x246f62['year'])),{'startDate':_0x4c5bc2,'localizedPeriodName':_0xa833d5};}class _i extends _0x18313a{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1f2d34,_0x8e805b,_0x3a9db9,_0x287b7b){super(_0x1f2d34);const _0x75892b=mi(_0x8e805b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x8e805b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3a9db9,this['_requireRevisionName']=_0x287b7b,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':_0x75892b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x498f1c){const _0x1bfe32=new ai(this['locale'],_0x498f1c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1bfe32);}['removeRevision'](_0x4beb9b){const _0x3f9d4b=this['revisionViews']['find'](_0x4eb9fc=>_0x4eb9fc['id']===_0x4beb9b['id']);this['revisionViews']['remove'](_0x3f9d4b);}}class as extends _0x18313a{constructor(_0x102f0f){super(_0x102f0f);const _0x520afc=new _0x9e0bb7();_0x520afc['content']=_0x209882,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x520afc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x102f0f,'Revision\x20history')]}]});}}class vi extends _0x18313a{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3dddbb,_0x546048,_0x3f4f00,_0x3ede37){super(_0x3dddbb);const _0x2c649a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x546048,this['_revisionActions']=_0x3f4f00,this['_requireRevisionName']=_0x3ede37,this['on']('select',(_0x44f336,_0x370601)=>{this['fire']('revisionSelected',_0x370601);}),this['on']('setName',(_0x24a0f1,_0x3c597f)=>{this['fire']('revisionSetName',_0x3c597f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3dddbb),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2c649a['if']('isEnabled','ck-disabled',_0x2ddad8=>!_0x2ddad8)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1e65ba of this['_revisions'])this['_addRevision'](_0x1e65ba);this['_revisions']['on']('add',(_0x2dcef3,_0x24373a)=>{this['_addRevision'](_0x24373a);}),this['_revisions']['on']('remove',(_0x3a88bd,_0x187245)=>{this['_removeRevision'](_0x187245);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1ee149=>_0x1ee149['revisionViews']['map'](_0x2c097b=>_0x2c097b))['flat']();}['selectRevision'](_0x1daa06){for(const _0x1adc43 of this['revisionViews'])_0x1daa06&&_0x1daa06['id']===_0x1adc43['id']?_0x1adc43['select']():_0x1adc43['deselect']();}['highlightRevisions'](_0x14bd08){for(const _0x11de00 of this['revisionViews'])_0x14bd08['some'](({id:_0x2077c2})=>_0x2077c2===_0x11de00['id'])?_0x11de00['highlight']():_0x11de00['unhighlight']();}['_addRevision'](_0x2bdd0a){const _0x4a78cf=mi(_0x2bdd0a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2c5209=this['timePeriodViews']['get'](0x0);_0x2c5209&&_0x2c5209['startDate']['getTime']()===_0x4a78cf['getTime']()||(_0x2c5209=new _i(this['locale'],_0x4a78cf,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2c5209)),_0x2c5209['addRevision'](_0x2bdd0a);}['_removeRevision'](_0x7cb352){const _0x1a2eb1=mi(_0x7cb352['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1a2eb1)['removeRevision'](_0x7cb352);}['_getTimePeriodViewByStartDate'](_0x4551e5){return this['timePeriodViews']['find'](_0x11e8fe=>_0x11e8fe['startDate']['getTime']()===_0x4551e5['getTime']());}}class d extends _0x3ba875{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x427504,uid as _0x3e0359,Collection as _0x1bc032,logWarning as _0x55144f,FocusTracker as _0x10b0d6,KeystrokeHandler as _0x4d6104,scrollViewportToShowTarget as _0xaaa48,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x569748}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xc896ae,set as _0x3fb37d,unset as _0x32bfa7,isEqual as _0x5e9db9}from'es-toolkit/compat';import{Plugin as _0x294c95,PendingActions as _0x1b0105,Command as _0x2e4eef,ElementApiMixin as _0x473944,Editor as _0x597429}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xaca5ca,getMarkerDomElement as _0x8cde1b,ConfirmMixin as ti,sanitizeEditorConfig as _0x5e675d}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x9fdf14,ViewAttributeElement as _0x123f0b,ViewEmptyElement as _0xd698a4,ViewRawElement as _0x51b3c8,ViewUIElement as _0x341439,ViewDocumentFragment as _0x5ad84a,ViewText as _0x1a0530,ViewElement as _0x12f693,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5eca74,IconChevronUp as _0x2b49d1,IconChevronDown as _0x538803,IconUndo as _0x2a2057,IconUser as _0x1d542d,IconThreeVerticalDots as _0xcb5707}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5d80d2,submitHandler as _0x1b934e,LabeledFieldView as _0x5c3265,createLabeledInputText as _0x8970f,createDropdown as _0x39253b,ListView as _0x3ea8fb,ListItemView as _0x5b7596,ButtonView as te,MenuBarMenuView as _0xc0565c,MenuBarMenuListView as _0x219df3,MenuBarMenuListItemView as _0x5f4184,MenuBarMenuListItemButtonView as _0x31dcc7,ContextualBalloon as _0x5e935b,ToolbarSeparatorView as _0x4cdae1,IconView as _0x535fd4,addListToDropdown as _0x12d551,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x43fc8f}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x427504(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4dc4e4){super(),this['id']=_0x4dc4e4['id']||_0x3e0359(),this['creator']=_0x4dc4e4['creator']||null,this['authors']=_0x4dc4e4['authors']||[],this['diffData']=_0x4dc4e4['diffData']||null,this['toVersion']=_0x4dc4e4['toVersion']||0x0,this['fromVersion']=_0x4dc4e4['fromVersion']||0x0,this['set']('name',_0x4dc4e4['name']||''),this['set']('createdAt',_0x4dc4e4['createdAt']||new Date()),this['set']('attributes',_0x4dc4e4['attributes']||{});}['setName'](_0x405938){this['_update']({'name':_0x405938});}['setAttribute'](_0xab2374,_0x1dfe1b){const _0x751523=_0xc896ae(this['attributes']);_0x3fb37d(_0x751523,_0xab2374,_0x1dfe1b),this['_update']({'attributes':_0x751523});}['removeAttribute'](_0x78e4b0){const _0x3ff244=_0xc896ae(this['attributes']);_0x32bfa7(_0x3ff244,_0x78e4b0),this['_update']({'attributes':_0x3ff244});}['_update'](_0x5d0dfc,_0x461f14=!0x1){let _0x278c0f=!0x1;const _0xc03d9b={'id':this['id']},_0xdd7d1b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x28f74f of _0xdd7d1b){const _0x408e7d=_0x5d0dfc[_0x28f74f];void 0x0!==_0x408e7d&&_0x408e7d!==this[_0x28f74f]&&(this[_0x28f74f]=_0x408e7d,_0xc03d9b[_0x28f74f]=_0x408e7d,_0x278c0f=!0x0);}_0x278c0f&&(_0xc03d9b['authors']&&(_0xc03d9b['authorsIds']=_0xc03d9b['authors']['map'](_0x29d572=>_0x29d572['id']),delete _0xc03d9b['authors']),this['fire']('_update',_0xc03d9b,_0x461f14));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x128274=>_0x128274['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x294c95{['_revisions'];static get['requires'](){return[_0xaca5ca];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5e6a58){super(_0x5e6a58),this['_revisions']=new _0x1bc032();}['afterInit'](){!async function(_0x2b7090){const _0xc9b8e7=_0x14b724([0x39,0x42,0x36,0x47,0x4a,0x45,0x44,0x48,0x31,0x4b,0x4d,0x76,0x66,0x7a,0x73,0x43,0x6f,0x64,0x51,0x6b,0x68,0x6a,0x4c,0x30,0x4f,0x71,0x56,0x67,0x55,0x58,0x5a,0x78,0x69,0x74,0x46,0x63,0x72,0x75,0x49,0x79,0x6c,0x59,0x38,0x65,0x35,0x61,0x4e,0x77,0x52,0x57,0x53,0x62,0x70,0x54,0x50,0x33,0x37,0x6d,0x32,0x41,0x6e,0x34]),_0x4142cd=0xeb829,_0x329441=0x2a3ced53,_0x5b5a3b=0x2a3b8e03^_0x329441,_0x5d239f=window[_0x14b724([0x44,0x61,0x74,0x65])][_0x14b724([0x6e,0x6f,0x77])](),_0x45bc02=_0x2b7090[_0x14b724([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x581929=new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b5f31=>{_0x45bc02[_0x14b724([0x6f,0x6e,0x63,0x65])](_0x14b724([0x72,0x65,0x61,0x64,0x79]),_0x3b5f31);}),_0x569284={[_0x14b724([0x6b,0x74,0x79])]:_0x14b724([0x45,0x43]),[_0x14b724([0x75,0x73,0x65])]:_0x14b724([0x73,0x69,0x67]),[_0x14b724([0x63,0x72,0x76])]:_0x14b724([0x50,0x2d,0x32,0x35,0x36]),[_0x14b724([0x78])]:_0x14b724([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]),[_0x14b724([0x79])]:_0x14b724([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]),[_0x14b724([0x61,0x6c,0x67])]:_0x14b724([0x45,0x53,0x32,0x35,0x36])},_0x307415=_0x45bc02[_0x14b724([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14b724([0x67,0x65,0x74])](_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31f064(){let _0x1a3cb3,_0x48e79c=null,_0x42253a=null;try{if(_0x307415==_0x14b724([0x47,0x50,0x4c]))return _0x14b724([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a3cb3=_0x4328d6(),!_0x1a3cb3)return _0x14b724([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a3cb3[_0x14b724([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42253a=_0x458ec6(_0x1a3cb3[_0x14b724([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a3cb3[_0x14b724([0x6a,0x74,0x69])])),await _0x2ce788()?_0x5cbd18()?_0x59f78e()?_0x14b724([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cd836()?(_0x1a3cb3[_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b724([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48e79c=_0xce3d61(_0x14b724([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1a3cb3[_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b724([0x74,0x72,0x69,0x61,0x6c])&&(_0x48e79c=_0xce3d61(_0x14b724([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45ed62()):_0x14b724([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14b724([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14b724([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5a24c9){return _0x14b724([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59f78e(){const _0x8e20be=[_0x14b724([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14b724([0x74,0x72,0x69,0x61,0x6c])][_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a3cb3[_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d239f/0x3e8:0xe10*_0x5b5a3b;return _0x1a3cb3[_0x14b724([0x65,0x78,0x70])]<_0x8e20be;}function _0x5cbd18(){const _0x5402e6=_0x1a3cb3[_0x14b724([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5402e6)return!0x1;if(_0x5402e6[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b724([0x2a])))return!0x0;if(_0x5402e6[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b724([0x52,0x48])))return!0x0;if(_0x5402e6[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b724([0x52,0x52,0x48]))){if(_0xa24f7c())return!0x0;if(_0x5b698c()||_0x762df3())return!0x0;}return!0x1;}function _0x2cd836(){const _0x8e162b=_0x1a3cb3[_0x14b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x8e162b||0x0==_0x8e162b[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b4803}=new URL(window[_0x14b724([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x8e162b[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b4803))return!0x0;const _0x2a735f=_0x5b4803[_0x14b724([0x73,0x70,0x6c,0x69,0x74])](_0x14b724([0x2e]));return _0x8e162b[_0x14b724([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a09b9=>_0x5a09b9[_0x14b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b724([0x2a])))[_0x14b724([0x6d,0x61,0x70])](_0x242b9d=>_0x242b9d[_0x14b724([0x73,0x70,0x6c,0x69,0x74])](_0x14b724([0x2e])))[_0x14b724([0x73,0x6f,0x6d,0x65])](_0x1d0bd0=>_0x2a735f[_0x14b724([0x65,0x76,0x65,0x72,0x79])]((_0x5495aa,_0x13b82e)=>_0x1d0bd0[_0x13b82e]===_0x5495aa||_0x1d0bd0[_0x13b82e]===_0x14b724([0x2a])));}function _0x45ed62(){return _0x48e79c&&_0x42253a?new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x563879,_0x543e4c)=>{_0x48e79c[_0x14b724([0x74,0x68,0x65,0x6e])](_0x563879,_0x543e4c),_0x42253a[_0x14b724([0x74,0x68,0x65,0x6e])](_0x2d3a36=>{_0x2d3a36!=_0x14b724([0x56,0x61,0x6c,0x69,0x64])&&_0x563879(_0x2d3a36);},_0x543e4c);}):_0x48e79c||_0x42253a||_0x14b724([0x56,0x61,0x6c,0x69,0x64]);}}function _0x458ec6(_0x312d0f,_0x51deb8){return new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c1670=>{if(_0x27d605())return _0x4c1670(_0x14b724([0x56,0x61,0x6c,0x69,0x64]));_0x191154(),_0x45bc02[_0x14b724([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14b724([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30db33=!0x1;const _0x5a988f=_0x3e0359();function _0xe9bb5c(_0x195f58){return!!_0x195f58&&(typeof _0x195f58===_0x14b724([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x195f58===_0x14b724([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x195f58[_0x14b724([0x74,0x68,0x65,0x6e])]===_0x14b724([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x195f58[_0x14b724([0x63,0x61,0x74,0x63,0x68])]===_0x14b724([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x265d1c(_0x40cf01){_0x5461de(_0x40cf01)[_0x14b724([0x74,0x68,0x65,0x6e])](_0x508cb3=>{if(!_0x508cb3||_0x508cb3[_0x14b724([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14b724([0x6f,0x6b]))return _0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x312065(_0x4a13e9(_0x5a988f+_0x51deb8))!=_0x508cb3[_0x14b724([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14b724([0x56,0x61,0x6c,0x69,0x64]);})[_0x14b724([0x74,0x68,0x65,0x6e])](_0x2188a9=>(_0x11e1fb(),_0x2188a9),()=>{const _0x133986=_0x5d9827();return null==_0x133986?(_0x11e1fb(),_0x14b724([0x56,0x61,0x6c,0x69,0x64])):_0x14b724(_0x5d239f-_0x133986>(0xe306953^_0x329441)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14b724([0x74,0x68,0x65,0x6e])](_0x4c1670)[_0x14b724([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c1670(_0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x198a9f=0x2a0a03d3^_0x329441;function _0x11e1fb(){const _0x23fc3b=_0x14b724([0x6c,0x6c,0x63,0x74,0x2d])+_0x312065(_0x4a13e9(_0x312d0f)),_0x21a0fa=_0x2b4343(_0x312065(window[_0x14b724([0x4d,0x61,0x74,0x68])][_0x14b724([0x63,0x65,0x69,0x6c])](_0x5d239f/_0x198a9f)));window[_0x14b724([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b724([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23fc3b,_0x21a0fa);}function _0x5d9827(){const _0xf7da2e=_0x14b724([0x6c,0x6c,0x63,0x74,0x2d])+_0x312065(_0x4a13e9(_0x312d0f)),_0x2ae5d0=window[_0x14b724([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b724([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf7da2e);return _0x2ae5d0?window[_0x14b724([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b4343(_0x2ae5d0),0x10)*_0x198a9f:null;}function _0x5461de(_0x902b6){return new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x152d3f,_0x37d22d)=>{_0x902b6[_0x14b724([0x74,0x68,0x65,0x6e])](_0x152d3f,_0x37d22d),window[_0x14b724([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37d22d,0x2a3d3993^_0x329441);});}}_0x45bc02[_0x14b724([0x6f,0x6e])](_0x14b724([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b15b7,_0x4294c2)=>{if(_0x4294c2[0x0]!=_0x312d0f)return _0x4c1670(_0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4294c2[0x1]={..._0x4294c2[0x1],[_0x14b724([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a988f};},{[_0x14b724([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b724([0x68,0x69,0x67,0x68])}),_0x45bc02[_0x14b724([0x6f,0x6e])](_0x14b724([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36fdfc=>{_0xe9bb5c(_0x36fdfc[_0x14b724([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30db33=!0x0,_0x265d1c(_0x36fdfc[_0x14b724([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14b724([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b724([0x6c,0x6f,0x77])}),_0x581929[_0x14b724([0x74,0x68,0x65,0x6e])](()=>{_0x30db33||_0x4c1670(_0x14b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27d605(){return _0x45bc02[_0x14b724([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b724([0x76,0x69,0x65,0x77])][_0x14b724([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14b724([0x61,0x75,0x74,0x6f]);}function _0x191154(){_0x45bc02[_0x14b724([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b724([0x76,0x69,0x65,0x77])][_0x14b724([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14b724([0x61,0x75,0x74,0x6f]);}}function _0xce3d61(_0x3ede1a){const _0x11b90a=[new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58d9d5=>setTimeout(_0x58d9d5,0x2a35d39f^_0x329441)),_0x581929[_0x14b724([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a49c0=>{const _0x282338=0x2a3ced54^_0x329441,_0x5f242a=_0x2b7090[_0x14b724([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3550be(){_0x5f242a[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x282338&&_0x1a49c0();}_0x3550be(),_0x5f242a[_0x14b724([0x6f,0x6e])](_0x14b724([0x61,0x64,0x64]),_0x3550be);})),new window[(_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41866c=>{function _0x6636e0(){for(const _0x59cc0c in window)if(window[_0x14b724([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x14b724([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x59cc0c))&&window[_0x59cc0c]==_0x4142cd)return _0x41866c();_0x45bc02[_0x14b724([0x73,0x74,0x61,0x74,0x65])]!=_0x14b724([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x14b724([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6636e0,0x2a3cfedb^_0x329441);}_0x348091(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x6636e0();})];return window[_0x14b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14b724([0x72,0x61,0x63,0x65])](_0x11b90a)[_0x14b724([0x74,0x68,0x65,0x6e])](()=>_0x3ede1a);}async function _0x499240(){if(await _0x581929,_0x348091(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11c58c=_0x2b7090[_0x14b724([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x233b72=_0x2b7090[_0x14b724([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])](_0x11c58c[_0x14b724([0x69,0x64])]),_0x1a1553=_0x42b4da(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1a1553[_0x14b724([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11c58c['id'],_0x233b72?_0x233b72['id']:null,!0x0),_0x1a1553[_0x14b724([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14b724([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1a1553[_0x14b724([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1a1553[_0x14b724([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4ac587,void(_0x1a1553[_0x14b724([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4ac587);}if(_0x348091(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x50557a=_0x42b4da(_0x14b724([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x50557a[_0x14b724([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x14b724([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x50557a[_0x14b724([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x50557a[_0x14b724([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4ac587,_0x50557a[_0x14b724([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4ac587;}_0x45bc02[_0x14b724([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b724([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac587,_0x45bc02[_0x14b724([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b724([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac587,_0x45bc02[_0x14b724([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14b724([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa24f7c(){return _0x348091(_0x14b724([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x42b4da(_0x14b724([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14b724([0x73,0x74,0x61,0x74,0x65])]==_0x14b724([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b698c(){return _0x348091(_0x14b724([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 _0x762df3(){return _0x348091(_0x14b724([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x107154(_0x50482a){const _0x4dda05=_0x4a5e3d();_0x45bc02[_0x4dda05]=_0x14b724([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])+_0x50482a,_0x50482a[_0x14b724([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x14b724([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4a5e3d()]=_0x4142cd),_0x50482a!=_0x14b724([0x56,0x61,0x6c,0x69,0x64])&&_0x499240();}function _0x4a5e3d(){const _0x4754a8=window[_0x14b724([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14b724([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14b724([0x6e,0x6f,0x77])]())[_0x14b724([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14b724([0x2e]),'');let _0x42e8a3=_0x14b724([0x42]);for(let _0x18f756=0x0;_0x18f756<_0x4754a8[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18f756+=0x2){let _0x5dba1f=window[_0x14b724([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4754a8[_0x14b724([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18f756,_0x18f756+0x2));_0x5dba1f>=_0xc9b8e7[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5dba1f-=_0xc9b8e7[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42e8a3+=_0xc9b8e7[_0x5dba1f];}return _0x42e8a3;}function _0x4328d6(){const _0xaf8490=_0x307415[_0x14b724([0x73,0x70,0x6c,0x69,0x74])](_0x14b724([0x2e]));if(0x3!=_0xaf8490[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1393e1(_0xaf8490[0x1]);function _0x1393e1(_0x5500a2){const _0x216a8b=_0x3de60c(_0x5500a2);return _0x216a8b&&_0x1d99a2()?_0x216a8b:null;function _0x1d99a2(){const _0x11a21f=_0x216a8b[_0x14b724([0x6a,0x74,0x69])],_0x341362=window[_0x14b724([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11a21f[_0x14b724([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11a21f[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ece5b={..._0x216a8b,[_0x14b724([0x6a,0x74,0x69])]:_0x11a21f[_0x14b724([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x11a21f[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ece5b[_0x14b724([0x76,0x63])],_0x4a13e9(_0x5ece5b)==_0x341362;}}}async function _0x2ce788(){let _0x443b01=!0x0;try{const _0x30c7b4=_0x307415[_0x14b724([0x73,0x70,0x6c,0x69,0x74])](_0x14b724([0x2e])),[_0x291d3f,_0x9d6819,_0x5e4e27]=_0x30c7b4;return _0x182127(_0x291d3f),await _0x6daeec(_0x291d3f,_0x9d6819,_0x5e4e27),_0x443b01;}catch(_0x2d4e4f){return!0x1;}function _0x182127(_0xdea6cf){const _0x3baea8=_0x3de60c(_0xdea6cf);_0x3baea8&&_0x3baea8[_0x14b724([0x61,0x6c,0x67])]==_0x14b724([0x45,0x53,0x32,0x35,0x36])||(_0x443b01=!0x1);}async function _0x6daeec(_0x4f4221,_0x4e6d8a,_0x22cbc4){const _0x4884b9=window[_0x14b724([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14b724([0x66,0x72,0x6f,0x6d])](_0x598349(_0x22cbc4),_0x2496b2=>_0x2496b2[_0x14b724([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42343c=new window[(_0x14b724([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14b724([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f4221+_0x14b724([0x2e])+_0x4e6d8a),_0x168bbf=window[_0x14b724([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14b724([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x168bbf)return;const _0x38c703=await _0x168bbf[_0x14b724([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14b724([0x6a,0x77,0x6b]),_0x569284,{[_0x14b724([0x6e,0x61,0x6d,0x65])]:_0x14b724([0x45,0x43,0x44,0x53,0x41]),[_0x14b724([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14b724([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14b724([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x168bbf[_0x14b724([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14b724([0x6e,0x61,0x6d,0x65])]:_0x14b724([0x45,0x43,0x44,0x53,0x41]),[_0x14b724([0x68,0x61,0x73,0x68])]:{[_0x14b724([0x6e,0x61,0x6d,0x65])]:_0x14b724([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38c703,_0x4884b9,_0x42343c)||(_0x443b01=!0x1);}}function _0x3de60c(_0x89bc23){return _0x89bc23[_0x14b724([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14b724([0x65,0x79]))?JSON[_0x14b724([0x70,0x61,0x72,0x73,0x65])](_0x598349(_0x89bc23)):null;}function _0x598349(_0x488b54){return window[_0x14b724([0x61,0x74,0x6f,0x62])](_0x488b54[_0x14b724([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14b724([0x2b]))[_0x14b724([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14b724([0x2f])));}function _0x4a13e9(_0x257827){let _0x5e090e=0x1505;function _0x30c60c(_0x38df42){for(let _0x52e091=0x0;_0x52e091<_0x38df42[_0x14b724([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52e091++){const _0x2aa905=_0x38df42[_0x14b724([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x52e091);_0x5e090e=(_0x5e090e<<0x5)+_0x5e090e+_0x2aa905,_0x5e090e&=_0x5e090e;}}function _0x15e8ea(_0x241ef2){Array[_0x14b724([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x241ef2)?_0x241ef2[_0x14b724([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15e8ea):_0x241ef2&&typeof _0x241ef2==_0x14b724([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14b724([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x241ef2)[_0x14b724([0x73,0x6f,0x72,0x74])]()[_0x14b724([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53e099,_0x5b9c6a])=>{_0x30c60c(_0x53e099),_0x15e8ea(_0x5b9c6a);}):_0x30c60c(window[_0x14b724([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x241ef2));}return _0x15e8ea(_0x257827),_0x5e090e>>>0x0;}function _0x312065(_0x5b9a40){return _0x5b9a40[_0x14b724([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14b724([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14b724([0x30]));}function _0x2b4343(_0x57cc45){return _0x57cc45[_0x14b724([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14b724([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14b724([0x6a,0x6f,0x69,0x6e])]('');}function _0x348091(_0x487385){return _0x45bc02[_0x14b724([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14b724([0x68,0x61,0x73])](_0x487385);}function _0x42b4da(_0x2a032a){return _0x45bc02[_0x14b724([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14b724([0x67,0x65,0x74])](_0x2a032a);}function _0x4ac587(){}function _0x14b724(_0x3a3a5a){return _0x3a3a5a['map'](_0x18e5ed=>String['fromCharCode'](_0x18e5ed))['join']('');}_0x107154(await _0x31f064());}(this);}['createRevision'](_0x4d5027){const _0x263f41=this['editor']['plugins']['get']('Users');return new h({'id':_0x4d5027['id'],'name':_0x4d5027['name'],'creator':_0x4d5027['creatorId']?_0x263f41['getUser'](_0x4d5027['creatorId']):null,'diffData':_0x4d5027['diffData']||_0x4d5027['data'],'authors':_0x4d5027['authorsIds']['map'](_0x27e5a5=>_0x263f41['getUser'](_0x27e5a5)),'createdAt':new Date(_0x4d5027['createdAt']),'attributes':_0x4d5027['attributes'],'fromVersion':_0x4d5027['fromVersion'],'toVersion':_0x4d5027['toVersion']});}['addRevision'](_0x14e2a0,_0x27d3d8=0x0){this['_revisions']['add'](_0x14e2a0,_0x27d3d8);}['getRevision'](_0x55f47f){return this['_revisions']['get'](_0x55f47f);}['getRevisions'](_0x17fb65={'toJSON':!0x1}){const _0x31841c=Array['from'](this['_revisions']);return _0x31841c['reverse'](),_0x17fb65['toJSON']?_0x31841c['map'](_0xa660a9=>_0xa660a9['toJSON']()):_0x31841c;}['getIndex'](_0x154803){return this['_revisions']['getIndex'](_0x154803);}['getEarlierVisibleRevision'](_0x216d96){const [,_0x2c1cd4]=this['getRevisionsIterator'](_0x216d96,{'direction':'earlier'});return _0x2c1cd4;}['getLaterVisibleRevision'](_0xed62cf){const [,_0x4305df]=this['getRevisionsIterator'](_0xed62cf,{'direction':'later'});return _0x4305df;}['getRevisionsInDiff'](_0x513508){const _0x3802be=[];for(const _0x3bdc61 of this['getRevisionsIterator'](_0x513508['newRevisionId']))if(_0x3802be['push'](_0x3bdc61),_0x3bdc61['id']===_0x513508['oldRevisionId'])break;return _0x3802be;}*['getRevisionsIterator'](_0x5d4b3d,{direction:_0x5a3767='earlier',filter:_0x14406e=()=>!0x0}={}){const _0x56e098='earlier'===_0x5a3767?0x1:-0x1;let _0x5aabd2=this['_revisions']['get'](_0x5d4b3d),_0x3604ef=this['getIndex'](_0x5aabd2);for(yield _0x5aabd2;_0x5aabd2;){if(_0x3604ef+=_0x56e098,_0x5aabd2=this['getRevision'](_0x3604ef),!_0x5aabd2)return;_0x14406e(_0x5aabd2)&&(yield _0x5aabd2);}}}class V extends _0x294c95{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x9fdf14,'c'],[_0x123f0b,'a'],[_0xd698a4,'e'],[_0x51b3c8,'r'],[_0x341439,'u']]);['_typeCharToViewClass']=new Map([['c',_0x9fdf14],['a',_0x123f0b],['e',_0xd698a4],['r',_0x51b3c8],['u',_0x341439]]);async['loadRevisionData'](_0x576038,_0x2df0f5){if(_0x576038['diffData']||!_0x2df0f5)return;const _0x2e342b=this['editor']['config']['get']('collaboration.channelId'),_0x218948=await _0x2df0f5['getRevision']({'channelId':_0x2e342b,'revisionId':_0x576038['id']});_0x576038['diffData']=_0x218948['diffData'];}['getRevisionDocumentData'](_0xf950ff){const _0x4b33a3={};for(const _0x59edf7 in _0xf950ff['diffData']){if(_0xf950ff['diffData'][_0x59edf7]['attachChange']&&!_0xf950ff['diffData'][_0x59edf7]['attachChange']['isAttached'])continue;const _0x3aa5f4=this['_removeRevisionMarkers'](JSON['parse'](_0xf950ff['diffData'][_0x59edf7]['insertions'])),_0x50928d=this['editor']['editing']['view']['document'],_0xff6ee4=new _0x5ad84a(_0x50928d,_0x3aa5f4['map'](_0x10f0be=>this['_getViewFromDiffObj'](_0x10f0be,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4b33a3[_0x59edf7]=this['editor']['data']['processor']['toData'](_0xff6ee4),this['editor']['data']['processor']['useFillerType']('default');}return _0x4b33a3;}['getRevisionRootsAttributes'](_0x5c6e4a){const _0x29afe5={};for(const _0x192bb4 in _0x5c6e4a['diffData'])_0x5c6e4a['diffData'][_0x192bb4]['attachChange']&&!_0x5c6e4a['diffData'][_0x192bb4]['attachChange']['isAttached']||(_0x29afe5[_0x192bb4]=_0x5c6e4a['diffData'][_0x192bb4]['attributesAfter']||{});return _0x29afe5;}['_getTypeCharForViewElement'](_0x4fd32d){return this['_viewClassToTypeChar']['get'](_0x4fd32d['constructor']);}['_getViewFromDiffObj'](_0x3b1590,_0x2accf2){const _0x536c15=this['editor']['editing']['view']['document'];if('string'==typeof _0x3b1590)return new _0x1a0530(_0x536c15,_0x3b1590);{let _0x18dae3,_0x53e197;_0x53e197='u'==_0x3b1590['type']||'r'==_0x3b1590['type']?[]:_0x3b1590['children']['map'](_0x53e7d9=>this['_getViewFromDiffObj'](_0x53e7d9,_0x2accf2));const _0x53f04a=this['_typeCharToViewClass']['get'](_0x3b1590['type'])||_0x12f693,_0x5231ed=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x18dae3=new _0x53f04a(_0x536c15,_0x3b1590['name'],_0x3b1590['attributes'],_0x53e197),'u'==_0x3b1590['type']){const _0x469b2f=_0x3b1590['children'][0x0];if(_0x18dae3['render']=function(_0x1be937){const _0x482310=_0x1be937['createElement']('div');return _0x482310['innerHTML']=_0x469b2f,_0x482310['childNodes'][0x0];},_0x2accf2){const _0xafa05f=new _0x5ad84a(_0x536c15);_0xafa05f['_appendChild'](_0x18dae3);const _0x2af0d7=Array['from'](_0x5231ed['viewChildrenToDom'](_0xafa05f,{'bind':!0x1})),_0x48d540=_0x5231ed['domDocument']['createElement']('div');_0x48d540['append'](..._0x2af0d7),_0x18dae3=Array['from'](_0x5231ed['domChildrenToView'](_0x48d540))[0x0];}}else{if('r'==_0x3b1590['type']){const _0x27aec7=_0x3b1590['children'][0x0];if(_0x18dae3['render']=function(_0x4f7b7f){_0x4f7b7f['innerHTML']=_0x27aec7;},_0x2accf2){const _0x4ec155=new _0x5ad84a(_0x536c15);_0x4ec155['_appendChild'](_0x18dae3);const _0x57ae0e=Array['from'](_0x5231ed['viewChildrenToDom'](_0x4ec155,{'bind':!0x1})),_0x512bea=_0x5231ed['domDocument']['createElement']('div');_0x512bea['append'](..._0x57ae0e);const _0x56dde2=Array['from'](_0x5231ed['domChildrenToView'](_0x512bea));_0x56dde2['length']>0x1?_0x18dae3['_appendChild'](_0x56dde2):_0x18dae3=_0x56dde2[0x0];}}}if(_0x3b1590['customProperties']){for(const [_0x470e95,_0x1b9eac]of _0x3b1590['customProperties'])_0x18dae3['_setCustomProperty'](_0x470e95,_0x1b9eac);}const _0x50a5cb=_0x3b1590['fillerOffset']||null;return _0x18dae3['getFillerOffset']=()=>_0x50a5cb,_0x18dae3;}}['_makeModelFromViewString'](_0x21cc1a){const _0x568ae9=JSON['parse'](_0x21cc1a),_0x411886=this['editor']['editing']['view']['document'],_0x57df5e=new _0x5ad84a(_0x411886,_0x568ae9['map'](_0x3272d0=>this['_getViewFromDiffObj'](_0x3272d0,!0x0)));return this['editor']['data']['toModel'](_0x57df5e);}['_removeRevisionMarkers'](_0x375938){return(_0x375938=_0x375938['filter'](_0x5eb24a=>!_0x5eb24a['name']||'revision-start'!==_0x5eb24a['name']&&'revision-end'!==_0x5eb24a['name']))['forEach'](_0x3fc40a=>{'string'!=typeof _0x3fc40a&&(_0x3fc40a['children']=this['_removeRevisionMarkers'](_0x3fc40a['children']),_0x3fc40a['attributes']=_0x3fc40a['attributes']['filter'](_0x363e1e=>!_0x363e1e[0x0]['startsWith']('data-revision-')));}),_0x375938;}}function g(_0x4d92ef,_0x527220,_0x1635d5){const t=_0x4d92ef['t'];switch(_0x527220){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'},_0x1635d5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1635d5);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x294c95{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xaca5ca,I,V,_0x1b0105];}constructor(_0xaef3d1){super(_0xaef3d1),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x16817c=_0x3e0359();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x16817c},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1f8628=this['repository']['getRevision'](0x0),_0x146250=_0x1f8628&&null===_0x1f8628['creator']?_0x1f8628:null;if(this['_continueCurrentRevision']=!!_0x146250&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1d9181=this['_source']['getCurrentRevisionId'](),_0x515852=this['repository']['getRevision'](_0x1d9181);if(_0x515852)this['_startingVersion']=_0x515852['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5efe67=this['_source']['history']['_operations']['find'](_0x1665ae=>!_0x1665ae['_isInit']),_0x51ee12=_0x5efe67?_0x5efe67['baseVersion']:this['_source']['history']['version'];_0x1f8628?(_0x1f8628['toVersion']<_0x51ee12&&_0x1f8628['_update']({'toVersion':_0x51ee12}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x146250['id'],this['_startingVersion']=_0x146250['fromVersion']):(this['_startingVersion']=_0x1f8628['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x51ee12,this['_continueCurrentRevision']=!0x1);}}else _0x146250&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x146250['toVersion'],this['editor']['model']['document']['history']['version']),_0x146250['fromVersion']===_0x146250['toVersion']?(0x0!==_0x146250['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x146250['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x146250['id'],this['_startingVersion']=_0x146250['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',_0x4d0a3e=>!_0x4d0a3e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x30abb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4af352;for(const _0x1d8fca in _0x30abb8){const _0x3a14dc=_0x1d8fca,_0x133ad6=_0x30abb8[_0x3a14dc];if('revisionHistoryLicenseKeyValid'==_0x133ad6||'revisionHistoryLicenseKeyInvalid'==_0x133ad6||'revisionHistoryLicenseKeyExpired'==_0x133ad6||'revisionHistoryLicenseKeyDomainLimit'==_0x133ad6||'revisionHistoryLicenseKeyNotAllowed'==_0x133ad6||'revisionHistoryLicenseKeyEvaluationLimit'==_0x133ad6||'revisionHistoryLicenseKeyTrialLimit'==_0x133ad6||'revisionHistoryLicenseKeyUsageLimit'==_0x133ad6){delete _0x30abb8[_0x3a14dc],_0x4af352=_0x133ad6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4af352&&_0x30abb8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4af352&&_0x30abb8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4af352&&_0x30abb8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4af352&&_0x30abb8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4af352&&_0x30abb8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4af352&&_0x30abb8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4af352&&_0x30abb8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x296d5a=this['repository']['getRevision'](0x0),_0x121a34=await this['getRevisionDocumentData'](_0x296d5a),_0x599ec9=await this['getRevisionRootsAttributes'](_0x296d5a);this['_replaceEditorDataWithRevisionData'](_0x121a34,_0x599ec9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x52051e){this['_source']=_0x52051e;}async['update'](){const _0x6f7dd3=await this['_source']['getLatestVersion']();if(_0x6f7dd3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x35f9fc=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x6f7dd3});_0x35f9fc['authors']=_0x35f9fc['authorsIds']['map'](_0x4ae119=>this['editor']['plugins']['get']('Users')['getUser'](_0x4ae119)),this['currentRevision']['_update'](_0x35f9fc);}}async['saveRevision'](_0x5d126={},_0xea3f66=null){const _0x493911=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xea3f66>this['currentRevision']['toVersion']&&(_0xea3f66=null),null===_0xea3f66&&(_0xea3f66=await this['_source']['getLatestVersion']());const _0x5ac8dd=this['_getFromVersion'](_0xea3f66),_0x16481d=this['buildRevisionData']({'from':_0x5ac8dd,'to':_0xea3f66});if(this['currentRevision']['toVersion']<_0xea3f66){const _0x2f825f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xea3f66,'to':_0xea3f66});_0x2f825f['authors']=[],_0x2f825f['authorsIds']=[],_0x2f825f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2f825f,!0x0),delete _0x2f825f['authors'],_0x493911['push'](_0x2f825f);}_0x5d126['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5d126['name']=_0x5d126['name']||null,_0x5d126['id']=_0x5d126['id']||_0x3e0359(),_0x5d126={..._0x5d126,..._0x16481d};const _0x7be01=this['addRevisionData'](_0x5d126);_0x493911['push'](_0x5d126);const _0x29c943=this['repository']['getIndex'](_0x7be01);if(0x0!==_0x29c943){const _0x12f002=this['repository']['getRevision'](_0x29c943-0x1);if(_0x12f002['fromVersion']!==_0xea3f66){const _0x6af506=this['_revisionDataBuilder']['getData'](_0xea3f66,_0x12f002['toVersion']),_0x153877={'id':_0x12f002['id'],'diffData':_0x6af506['diffData'],'authorsIds':_0x6af506['authorsIds'],'authors':_0x6af506['authorsIds']['map'](_0x3be0a6=>this['editor']['plugins']['get']('Users')['getUser'](_0x3be0a6)),'fromVersion':_0xea3f66};_0x12f002===this['currentRevision']&&(_0x153877['createdAt']=new Date(_0x5d126['createdAt']['getTime']()+0xa)),_0x12f002['_update'](_0x153877,!0x0),delete _0x153877['authors'],_0x493911['push'](_0x153877);}}if(this['adapter']){for(const _0xf47ba3 of _0x493911)this['_bufferUpdate'](_0xf47ba3['id'],_0xf47ba3,!0x0);this['sendBufferedUpdates']();}return _0x7be01;}['addRevisionData'](_0x457f06){const _0x2591eb=this['repository']['createRevision'](_0x457f06);return this['adapter']&&_0x2591eb['on']('_update',(_0x499702,_0x18873a,_0x3274fa)=>{_0x3274fa||(this['_bufferUpdate'](_0x18873a['id'],_0x18873a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2591eb,this['_findInsertionIndex'](_0x2591eb)),_0x2591eb;}async['getRevisionDocumentData'](_0x1913aa){return await this['_utils']['loadRevisionData'](_0x1913aa,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1913aa);}async['getRevisionRootsAttributes'](_0xbcf919){return await this['_utils']['loadRevisionData'](_0xbcf919,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xbcf919);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x17dc03=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3abebf=0x0;_0x3abebf<_0x17dc03['length'];_0x3abebf++){const _0x186c4e=_0x17dc03[_0x3abebf];let _0x231bd8=!0x1;for(const _0xf2aaef of Object['keys'](_0x186c4e))void 0x0===_0x186c4e[_0xf2aaef]?delete _0x186c4e[_0xf2aaef]:'id'!==_0xf2aaef&&(_0x231bd8=!0x0);_0x231bd8||(_0x17dc03[_0x3abebf]=null);}if(_0x17dc03=_0x17dc03['filter'](_0x4c2282=>null!==_0x4c2282),!_0x17dc03['length'])return;for(let _0x1318d6=0x0;_0x1318d6<_0x17dc03['length'];_0x1318d6++){const _0x45e568=_0x17dc03[_0x1318d6];void 0x0!==_0x45e568['fromVersion']&&void 0x0===_0x45e568['toVersion']&&(_0x45e568['toVersion']=this['repository']['getRevision'](_0x45e568['id'])['toVersion']),void 0x0!==_0x45e568['toVersion']&&void 0x0===_0x45e568['fromVersion']&&(_0x45e568['fromVersion']=this['repository']['getRevision'](_0x45e568['id'])['fromVersion']);}const _0x553e00=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x17dc03,_0x553e00)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3f35f7=>{if(_0x3f35f7){for(const _0x141efa of _0x3f35f7)this['setRevisionData']({'id':_0x141efa['id'],'createdAt':_0x141efa['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x17b2f0=null,from:_0x52d29a=null,to:_0x556c16=null}){_0x52d29a=null!==_0x52d29a?_0x52d29a:_0x17b2f0['fromVersion'],_0x556c16=null!==_0x556c16?_0x556c16:_0x17b2f0['toVersion'];const _0x74b76e=this['_revisionDataBuilder']['getData'](_0x52d29a,_0x556c16),_0x30173e={'diffData':_0x74b76e['diffData'],'authorsIds':_0x74b76e['authorsIds'],'fromVersion':_0x52d29a,'toVersion':_0x556c16};if(!_0x17b2f0||_0x556c16!==_0x17b2f0['toVersion']){const _0x2fd474=_0x556c16-0x1,_0x3bf2eb=this['_source']['history']['getOperation'](_0x2fd474);_0x30173e['createdAt']=_0x3bf2eb&&_0x3bf2eb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x52d29a===this['_loadedStateData']['fromVersion']){for(const _0xe9a3ff of this['_loadedStateData']['authors'])_0x30173e['authorsIds']['includes'](_0xe9a3ff['id'])||_0x30173e['authorsIds']['push'](_0xe9a3ff['id']);}return _0x30173e;}['_bufferUpdate'](_0x590ea0,_0x991139,_0x2e0c18){if(this['_bufferedUpdates']['has'](_0x590ea0)){const _0x2c1071=this['_bufferedUpdates']['get'](_0x590ea0);_0x991139=_0x2e0c18?{..._0x2c1071,..._0x991139}:{..._0x991139,..._0x2c1071};}this['_bufferedUpdates']['set'](_0x590ea0,_0x991139);}['setRevisionData'](_0x3c22ee){const _0x2fb666=this['repository']['getRevision'](_0x3c22ee['id']);if(_0x3c22ee['createdAt']&&(_0x3c22ee['createdAt']=new Date(_0x3c22ee['createdAt'])),_0x3c22ee['authorsIds']){const _0x2ac6d3=this['editor']['plugins']['get']('Users');_0x3c22ee['authors']=_0x3c22ee['authorsIds']['map'](_0x29fe2e=>_0x2ac6d3['getUser'](_0x29fe2e));}_0x2fb666['_update'](_0x3c22ee,!0x0);}['_createInitialRevision'](_0x5b363a){const _0xd2914d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xd2914d)this['_initialRevisionId']=_0xd2914d['id'];else{const _0x58f5ce=!this['editor']['model']['document']['roots']['find'](_0x4dad30=>this['editor']['model']['hasContent'](_0x4dad30)),_0x25e2d3=this['editor']['plugins']['get']('Users')['me']['id'],_0x5056d3=g(this['editor']['locale'],_0x58f5ce?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5b363a,'to':_0x5b363a,'id':this['_initialRevisionId'],'name':_0x5056d3,'creatorId':_0x25e2d3});}}['_createCurrentRevision'](_0x55a6f9){const _0x5287f7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5287f7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x55a6f9,'to':_0x55a6f9,'id':_0x5287f7,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3a100b,_0x33c70f){let _0x25a9d6=this['editor']['config']['get']('initialData'),_0x13c7e0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x25a9d6){_0x25a9d6={};for(const _0x10839e of this['editor']['model']['document']['getRootNames']())_0x25a9d6[_0x10839e]='';}if('string'==typeof _0x25a9d6&&(_0x25a9d6={'main':_0x25a9d6}),void 0x0===_0x13c7e0){_0x13c7e0={};for(const _0x209338 of this['editor']['model']['document']['getRootNames']())_0x13c7e0[_0x209338]={};}let _0x2bf4fd=!0x1;const _0x351c19=Object['keys'](_0x25a9d6),_0x557c75=Object['keys'](_0x3a100b);for(const _0x50d5f3 of _0x351c19){if(_0x25a9d6[_0x50d5f3]!==_0x3a100b[_0x50d5f3]&&''!==_0x25a9d6[_0x50d5f3]['trim']()){_0x2bf4fd=!0x0;break;}if(!_0x5e9db9(_0x13c7e0[_0x50d5f3],_0x33c70f[_0x50d5f3])&&Object['keys'](_0x13c7e0[_0x50d5f3])['length']>0x0){_0x2bf4fd=!0x0;break;}}_0x2bf4fd||(_0x2bf4fd=_0x557c75['some'](_0x3b97ba=>!this['editor']['model']['document']['getRoot'](_0x3b97ba))),_0x2bf4fd&&_0x55144f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x25a9d6,'editorRootsAttributes':_0x13c7e0,'revisionData':_0x3a100b,'revisionRootsAttributes':_0x33c70f}),this['editor']['config']['set']('initialData',_0x3a100b),this['editor']['config']['set']('rootsAttributes',_0x33c70f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x21b45b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x21b45b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1b719a){const _0x5202ca=this['repository']['getRevisions']();_0x5202ca['reverse']();let _0x5912ef=0x0;for(;_0x5912ef<_0x5202ca['length'];){const _0x8eec0e=_0x5202ca[_0x5912ef];if(_0x8eec0e===this['currentRevision']){_0x5912ef++;continue;}if(_0x8eec0e['id']===this['_initialRevisionId'])break;const _0x1d340a=_0x1b719a['toVersion']-_0x8eec0e['toVersion']||_0x1b719a['fromVersion']-_0x8eec0e['fromVersion'];if(_0x1d340a>0x0)break;if(_0x1d340a<0x0)_0x5912ef++;else{if(!_0x1b719a['creator']&&_0x8eec0e['creator'])break;if(_0x8eec0e['creator']||!_0x1b719a['creator']){if(_0x1b719a['createdAt']>_0x8eec0e['createdAt'])break;_0x5912ef++;}else _0x5912ef++;}}return _0x5912ef;}['_getFromVersion'](_0x3b7dc0){const _0x7f0e86=this['repository']['getRevisions']();_0x7f0e86['reverse'](),_0x7f0e86['shift']();const _0x22e686=_0x7f0e86['find'](_0x40d271=>_0x40d271['toVersion']<=_0x3b7dc0)['toVersion'];return _0x22e686<this['_startingVersion']?this['_startingVersion']:_0x22e686;}['_makeRevision']({name:_0x527998,from:_0x297051,to:_0x1b7dc0,creatorId:_0x28536e,id:_0x80bdf1}){const _0x57ca2e=this['buildRevisionData']({'from':_0x297051,'to':_0x1b7dc0});_0x57ca2e['name']=_0x527998,_0x57ca2e['creatorId']=_0x28536e,_0x57ca2e['id']=_0x80bdf1;const _0xc645d2=this['addRevisionData'](_0x57ca2e);return this['adapter']&&this['_bufferUpdate'](_0x57ca2e['id'],_0x57ca2e,!0x0),_0xc645d2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3f4a3a){this['editor']=_0x3f4a3a,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'](_0x1a8c43){this['source']=_0x1a8c43;const _0x1d48e0=new Map(),_0x5dd1a2=new Map(),_0x2ccec5=this['editor']['model']['document']['roots']['map'](_0x3bf032=>_0x3bf032['rootName']);for(const _0x1aebe7 of _0x2ccec5){const _0x24a1fa=this['editor']['model']['document']['getRoot'](_0x1aebe7),_0x282366=N(_0x24a1fa);_0x1d48e0['set'](_0x1aebe7,_0x282366),_0x5dd1a2['set'](_0x1aebe7,Object['fromEntries'](_0x24a1fa['getAttributes']()));}const _0x2a0432=Array['from'](this['editor']['model']['markers'])['map'](_0x3fc54d=>[_0x3fc54d['name'],_0x3fc54d['getRange']()]),_0x4d75d9=this['source']['version'];this['_saveMetaData'](_0x4d75d9,_0x1d48e0,_0x2a0432,_0x5dd1a2),this['_startingRevisionId']=this['_revisionId'];const _0x4e5dda=new Map(),_0x19727c=new Map();for(const _0x115cab of _0x2ccec5){const _0x51cade=P(_0x115cab);_0x4e5dda['set'](_0x115cab,_0x51cade),_0x19727c['set'](_0x115cab,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4e5dda,[],_0x19727c);}['getData'](_0x1f7fc5,_0x5424e4){if(this['_lastFrom']===_0x1f7fc5&&this['_lastTo']<=_0x5424e4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5424e4,!0x0);else{if(!this['_savedMetaData']['has'](_0x1f7fc5)){const _0x267924=this['_getPreviousFrom'](_0x1f7fc5);this['_calculateMetaData'](_0x267924,_0x1f7fc5,!0x1);}this['_calculateMetaData'](_0x1f7fc5,_0x5424e4,!0x0);}return this['_lastFrom']=_0x1f7fc5,this['_lastTo']=_0x5424e4,this['_getState']();}['loadState'](_0x2977f9){const _0x580ddc=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2977f9['fromVersion'],this['_lastTo']=_0x2977f9['toVersion'];for(const _0x5d8616 in _0x2977f9['diffData']){const _0x54aee2=_0x2977f9['diffData'][_0x5d8616]['attachChange'],_0x83cb7e=_0xc896ae(_0x2977f9['diffData'][_0x5d8616]['attributesBefore'])||{},_0x10a9c5=_0x580ddc['_makeModelFromViewString'](_0x2977f9['diffData'][_0x5d8616]['deletions']);_0x10a9c5['rootName']=_0x5d8616,_0x10a9c5['_isAttached']=!_0x54aee2||!_0x54aee2['isAttached'],_0x10a9c5['isAttached']=()=>_0x10a9c5['_isAttached'],this['_baseRoots']['set'](_0x5d8616,_0x10a9c5),this['_baseRootsAttributes']['set'](_0x5d8616,_0x83cb7e),_0x54aee2&&this['_touchedRoots']['set'](_0x5d8616,_0x54aee2);const _0x11fa66=this['_makeIdsRoot'](_0x10a9c5);this['_baseIdsRoots']['set'](_0x5d8616,_0x11fa66);for(const [_0x2e4c40,_0x14aa8d]of _0x10a9c5['markers']){if(!_0x2e4c40['startsWith']('revision:'))continue;const _0x1a5839=_0x2e4c40['split'](':')[0x2];for(const _0xc3052 of _0x14aa8d['getWalker']({'singleCharacters':!0x0})){const _0x1413ca=this['_getVidAttributeName'](_0xc3052),_0x4d85e9='elementEnd'==_0xc3052['type']?_0xc3052['previousPosition']['path']['slice'](0x0,-0x1):_0xc3052['previousPosition']['path'],_0x235477=_0x11fa66['getNodeByPath'](_0x4d85e9)['getAttribute'](_0x1413ca);this['_touched']['set'](_0x235477,{'userId':_0x1a5839});}}}this['_startingRevisionId']=this['_revisionId'];const _0x57cc4f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2fb14d=>!this['_touched']['has'](_0x2fb14d));let _0x46e329=0x0;const _0x206c6c=new Map();for(const _0x5ce8c7 in _0x2977f9['diffData']){const _0x17d293=_0x2977f9['diffData'][_0x5ce8c7]['attachChange'],_0x424903=_0xc896ae(_0x2977f9['diffData'][_0x5ce8c7]['attributesAfter'])||{},_0x33f27f=_0x580ddc['_makeModelFromViewString'](_0x2977f9['diffData'][_0x5ce8c7]['insertions']);_0x33f27f['rootName']=_0x5ce8c7,_0x33f27f['_isAttached']=!_0x17d293||_0x17d293['isAttached'],_0x33f27f['isAttached']=()=>_0x33f27f['_isAttached'],this['_diffRoots']['set'](_0x5ce8c7,_0x33f27f),this['_diffRootsAttributes']['set'](_0x5ce8c7,_0x424903);const _0xcda320=this['_makeIdsRoot'](_0x33f27f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5ce8c7,_0xcda320),_0x206c6c['set'](_0x5ce8c7,_0x33f27f['isAttached']()?_0x424903:{});for(const [_0x3d69a7,_0x56c8ef]of _0x33f27f['markers']){if(!_0x3d69a7['startsWith']('revision:'))continue;const _0x14658a=_0x3d69a7['split'](':')[0x2];for(const _0x39a6c4 of _0x56c8ef['getWalker']({'singleCharacters':!0x0})){const _0x5638fe=this['_getVidAttributeName'](_0x39a6c4),_0x24ca44=this['_revisionId']++,_0x303452='elementEnd'==_0x39a6c4['type']?_0x39a6c4['previousPosition']['path']['slice'](0x0,-0x1):_0x39a6c4['previousPosition']['path'];_0xcda320['getNodeByPath'](_0x303452)['_setAttribute'](_0x5638fe,_0x24ca44),this['_touched']['set'](_0x24ca44,{'userId':_0x14658a});}}for(const _0x3dc3da of this['editor']['model']['createRangeIn'](_0x33f27f)['getWalker']({'singleCharacters':!0x0})){const _0x40b1e6=this['_getVidAttributeName'](_0x3dc3da),_0x37ff02='elementEnd'==_0x3dc3da['type']?_0x3dc3da['previousPosition']['path']['slice'](0x0,-0x1):_0x3dc3da['previousPosition']['path'],_0x39aa3d=_0xcda320['getNodeByPath'](_0x37ff02);_0x39aa3d['getAttribute'](_0x40b1e6)>0x0||_0x39aa3d['_setAttribute'](_0x40b1e6,_0x57cc4f[_0x46e329++]);}for(const [_0x22d1a7,_0x4042dc]of _0x33f27f['markers'])_0x22d1a7['startsWith']('revision:')||this['_markers']['set'](_0x22d1a7,_0x4042dc);}const _0x5912cf=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5912cf),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5912cf,0x1));const _0x4a7665=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4a7665),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4a7665,0x1));const _0x2ee700=Array['from'](this['_diffRoots'])['map'](([_0x2c96c8,_0x441373])=>[_0x2c96c8,N(_0x441373)]);this['_saveMetaData'](this['_lastTo'],_0x2ee700,this['_markers'],_0x206c6c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d89a5,_0x1debec,_0x59bd55,_0x542f37){const _0x4deca7=new Map(_0x1debec),_0x28d80a=new Map(_0xc896ae(_0x542f37)),_0x75f8f4=new Map();for(const [_0x500abe,_0x29a587]of _0x59bd55)_0x75f8f4['set'](_0x500abe,{'start':_0x29a587['start']['clone'](),'end':_0x29a587['end']['clone'](),'rootName':_0x29a587['root']['rootName']});this['_savedMetaData']['set'](_0x4d89a5,{'roots':_0x4deca7,'markers':_0x75f8f4,'rootsAttributes':_0x28d80a});}['_removeMetaData'](_0x167210){this['_savedMetaData']['delete'](_0x167210);}['_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'](_0x229746,_0x1cb8d4=null){let _0xf77a6f=null;_0x229746['is']('documentFragment')||(_0xf77a6f=new ut(_0x229746['name'],{'vid_start':null===_0x1cb8d4?this['_revisionId']++:_0x1cb8d4++}));const _0x2ad967=[];for(const _0x192df2 of _0x229746['getChildren']())if(_0x192df2['is']('element')){_0x2ad967['push'](this['_makeIdsRoot'](_0x192df2,_0x1cb8d4));const _0x49716e=_0x2ad967[_0x2ad967['length']-0x1];null!==_0x1cb8d4&&(_0x1cb8d4=_0x49716e['is']('element','$text')?_0x49716e['getAttribute']('vid')+0x1:_0x49716e['getAttribute']('vid_end')+0x1);}else{for(let _0x833b8d=0x0;_0x833b8d<_0x192df2['offsetSize'];_0x833b8d++)_0x2ad967['push'](new ut('$text',{'vid':null===_0x1cb8d4?this['_revisionId']++:_0x1cb8d4++}));}if(_0x229746['is']('documentFragment')){const _0x188f1d=P(_0x229746['rootName']);return _0x188f1d['_insertChild'](0x0,_0x2ad967),_0x188f1d;}return _0xf77a6f['_setAttribute']('vid_end',null===_0x1cb8d4?this['_revisionId']++:_0x1cb8d4++),_0xf77a6f['_insertChild'](0x0,_0x2ad967),_0xf77a6f;}['_calculateMetaData'](_0x51e13f,_0x542bb4,_0xe269af){this['_reset']();const {roots:_0x114241,markers:_0x335aee,rootsAttributes:_0x45179f}=this['_savedMetaData']['get'](_0x51e13f);this['_baseRoots']=new Map(_0x114241),this['_baseRootsAttributes']=new Map(_0xc896ae(_0x45179f));for(const [_0x4015e8,_0x2b22ae]of this['_baseRoots'])if('$graveyard'!==_0x4015e8&&(this['_diffRoots']['set'](_0x4015e8,N(_0x2b22ae)),this['_diffRootsAttributes']=new Map(_0xc896ae(_0x45179f)),_0xe269af)){const _0xf0ffe=this['_revisionId'];this['_idsRoots']['set'](_0x4015e8,this['_makeIdsRoot'](_0x2b22ae)),this['_baseIdsRoots']['set'](_0x4015e8,this['_makeIdsRoot'](_0x2b22ae,_0xf0ffe));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xe269af&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x107a7f,_0x3c9bce]of _0x335aee){const _0x17ee2c=this['_baseRoots']['get'](_0x3c9bce['rootName']),_0xa1b785=this['_diffRoots']['get'](_0x3c9bce['rootName']),_0x4bf3b9=new lt(this['_fixPosition'](_0x3c9bce['start'],_0x17ee2c),this['_fixPosition'](_0x3c9bce['end'],_0x17ee2c)),_0x46dbeb=this['_fixRange'](_0x4bf3b9,_0xa1b785);_0x17ee2c['markers']['set'](_0x107a7f,_0x4bf3b9),this['_markers']['set'](_0x107a7f,_0x46dbeb);}this['_applyOperations'](_0x51e13f,_0x542bb4,_0xe269af);}['_applyOperations'](_0x37eb78,_0x419aae,_0xc06c0f){for(const _0x279bc8 of this['source']['getOperations'](_0x37eb78,_0x419aae))this['_handleOperation'](_0x279bc8,_0xc06c0f);for(const _0x5d04a7 of this['_diffRoots']['values']())_0x5d04a7['markers']['clear']();for(const [_0x3cf36a,_0x456d09]of this['_markers']){this['_diffRoots']['get'](_0x456d09['root']['rootName'])['markers']['set'](_0x3cf36a,_0x456d09['clone']());}const _0x4719b1=new Map(),_0x46b8c3=new Map();for(const [_0x4d7e7f,_0x544ba6]of this['_diffRoots'])_0x4719b1['set'](_0x4d7e7f,N(_0x544ba6)),_0x46b8c3['set'](_0x4d7e7f,this['_diffRootsAttributes']['get'](_0x4d7e7f));this['_saveMetaData'](_0x419aae,_0x4719b1,this['_markers'],_0x46b8c3);}['_getPreviousFrom'](_0x5084e3){const _0x302d0e=Array['from'](this['_savedMetaData']['keys']());_0x302d0e['sort']((_0x2e4225,_0x1ac882)=>_0x2e4225-_0x1ac882),_0x302d0e['reverse']();for(const _0x5ce3e4 of _0x302d0e)if(_0x5ce3e4<_0x5084e3)return _0x5ce3e4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4e6442,_0x29987){const _0x511bf3=Array['from'](_0x29987['markers'])['map'](([_0x445b0f,_0x6ee6b6])=>[_0x445b0f,this['_fixRange'](_0x6ee6b6,_0x4e6442)]);_0x4e6442['markers']=new Map(_0x511bf3);}['_transformMarkers'](_0x4246bc){for(const _0x1a2547 of this['_markers']['values']()){const _0x31e5d5=_0x1a2547['getTransformedByOperation'](_0x4246bc),_0x46d637=lt['_createFromRanges'](_0x31e5d5);_0x1a2547['start']=_0x46d637['start'],_0x1a2547['end']=_0x46d637['end'];}}['_handleOperation'](_0x11c75c,_0x21dd0b){if('addRoot'!=_0x11c75c['type']&&'detachRoot'!=_0x11c75c['type']){if('insert'==_0x11c75c['type']){const _0x12da7b=_0x11c75c['position']['root']['rootName'];this['_diffRoots']['has'](_0x12da7b)||(this['_diffRoots']['set'](_0x12da7b,P(_0x12da7b,!0x0)),this['_diffRootsAttributes']['set'](_0x12da7b,{}),_0x21dd0b&&this['_idsRoots']['set'](_0x12da7b,P(_0x12da7b,!0x0)));}else{if('addRootAttribute'==_0x11c75c['type']||'removeRootAttribute'==_0x11c75c['type']||'changeRootAttribute'==_0x11c75c['type'])return void this['_handleRootAttributeOperation'](_0x11c75c);'marker'==_0x11c75c['type']&&this['_handleMarkerOperation'](_0x11c75c);}if('marker'!==_0x11c75c['type']){const _0x20164d=this['_cloneOperation'](_0x11c75c,this['_diffRoots']);_0x20164d['_execute'](),this['_transformMarkers'](_0x20164d);}if(_0x21dd0b)switch(_0x11c75c['type']){case'insert':this['_handleInsertOperation'](_0x11c75c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x11c75c);break;case'merge':this['_handleMergeOperation'](_0x11c75c);break;case'split':this['_handleSplitOperation'](_0x11c75c);}}else this['_handleRootOperation'](_0x11c75c,_0x21dd0b);}['_cloneOperation'](_0xcc63e2,_0x5a36f8){const _0x255c8c=_0xcc63e2['clone']();return _0x255c8c['_authorId']=_0xcc63e2['_authorId'],this['_fixOperation'](_0x255c8c,_0x5a36f8),_0x255c8c;}['_getBaseVids'](_0x2eba29){return _0x2eba29['map'](_0xd3819e=>{const _0x5a37d0=this['_getVidAttributeName'](_0xd3819e);return Number(_0xd3819e['item']['getAttribute'](_0x5a37d0));});}['_generateTape'](_0x5b375a,_0x2adfff){if(_0x5b375a['is']('element','$text'))_0x2adfff['push']({'item':_0x5b375a,'type':'text'});else{_0x5b375a['is']('element')&&_0x2adfff['push']({'item':_0x5b375a,'type':'elementStart'});for(const _0x215097 of _0x5b375a['getChildren']())this['_generateTape'](_0x215097,_0x2adfff);_0x5b375a['is']('element')&&_0x2adfff['push']({'item':_0x5b375a,'type':'elementEnd'});}return _0x2adfff;}['_getState'](){const _0x471059=new Map(this['_touched']),_0x1ed7b3=new Map(_0x471059),_0x21d90d=new Map(),_0x5e62fb={'insertions':{},'deletions':{}},_0x132a84={'insertions':{},'deletions':{}},_0x2f9630=new Map(),_0x1d18f4=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1d18f4['delete']('$graveyard');for(const _0x2e9fd2 of _0x1d18f4){const _0x384c75=this['_diffRoots']['get'](_0x2e9fd2)||P(_0x2e9fd2,!0x1),_0x572ce6=this['_baseRoots']['get'](_0x2e9fd2)||P(_0x2e9fd2,!0x1);_0x384c75['isAttached']()||_0x572ce6['isAttached']()?(_0x5e62fb['insertions'][_0x2e9fd2]=N(_0x384c75),_0x5e62fb['deletions'][_0x2e9fd2]=N(_0x572ce6),this['_copyMarkers'](_0x5e62fb['deletions'][_0x2e9fd2],_0x572ce6),this['_copyMarkers'](_0x5e62fb['insertions'][_0x2e9fd2],_0x384c75),_0x132a84['insertions'][_0x2e9fd2]=this['_generateTape'](this['_idsRoots']['get'](_0x2e9fd2),[]),_0x132a84['deletions'][_0x2e9fd2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2e9fd2)||P(_0x2e9fd2,!0x1),[])):_0x1d18f4['delete'](_0x2e9fd2);}for(const _0x2bb65a of _0x1d18f4){const _0x472da9=_0x132a84['insertions'][_0x2bb65a];for(const _0x31f796 of _0x472da9){const _0x5a3726=this['_getVidAttributeName'](_0x31f796),_0x5b3902=_0x31f796['item']['getAttribute'](_0x5a3726);_0x1ed7b3['delete'](_0x5b3902),_0x5b3902>=this['_startingRevisionId']&&_0x21d90d['set'](_0x5b3902,_0x471059['get'](_0x5b3902));}}for(const _0x21b116 of _0x1d18f4){const _0x19f84c=_0x132a84['insertions'][_0x21b116],_0x51ed05=this['_getBaseVids'](_0x132a84['deletions'][_0x21b116]);let _0x15a517=0x0;for(const _0xd32b82 of _0x19f84c){const _0x569ed4=this['_getVidAttributeName'](_0xd32b82),_0xb7a69b=_0xd32b82['item']['getAttribute'](_0x569ed4);if(!_0x21d90d['has'](_0xb7a69b)&&!_0x2f9630['has'](_0xb7a69b)){if(_0x1ed7b3['has'](_0xb7a69b))_0x15a517++;else{if(_0xb7a69b!=_0x51ed05[_0x15a517]){const _0x186d22=_0x471059['get'](_0xb7a69b)||_0x471059['get'](_0x51ed05[_0x15a517]);for(;_0xb7a69b!=_0x51ed05[_0x15a517];)_0x1ed7b3['has'](_0x51ed05[_0x15a517])||(_0x2f9630['set'](_0x51ed05[_0x15a517],_0x186d22),_0x471059['set'](_0x51ed05[_0x15a517],_0x186d22)),_0x15a517++;}_0x15a517++;}}}}for(const _0x2dc814 of _0x1d18f4){const _0x2cbf7e=_0x132a84['insertions'][_0x2dc814];for(const _0x87cf48 of _0x2cbf7e){const _0x3aa937=this['_getVidAttributeName'](_0x87cf48),_0xe68132=_0x87cf48['item']['getAttribute'](_0x3aa937);if(_0x2f9630['has'](_0xe68132)){const _0x41a132=_0x2f9630['get'](_0xe68132);_0x1ed7b3['has'](_0xe68132)||_0x1ed7b3['set'](_0xe68132,{..._0x41a132}),_0x21d90d['set'](_0xe68132,{..._0x41a132});}}}for(const _0x1e330b of _0x1ed7b3['keys']())_0x1e330b>=this['_startingRevisionId']&&_0x1ed7b3['delete'](_0x1e330b);const _0x1198ee=new Map();for(const _0x1236df of _0x1d18f4){let _0x1cfca5=_0x132a84['insertions'][_0x1236df];for(const _0x36c830 of _0x1cfca5)if(_0x36c830['item']['is']('element','tableCell')){const _0x30d3da=this['_getVidAttributeName'](_0x36c830),_0x1315e4=_0x36c830['item']['getAttribute'](_0x30d3da);if(_0x21d90d['has'](_0x1315e4)){const _0x42fe8b=_0x36c830['item']['parent']['parent']['getAttribute']('vid_start'),_0x5035ed=_0x1198ee['get'](_0x42fe8b)||new Set();_0x5035ed['add'](_0x21d90d['get'](_0x1315e4)['userId']),_0x1198ee['set'](_0x42fe8b,_0x5035ed);}}_0x1cfca5=_0x132a84['deletions'][_0x1236df];for(const _0x19fc40 of _0x1cfca5)if(_0x19fc40['item']['is']('element','tableCell')){const _0x5f2d16=this['_getVidAttributeName'](_0x19fc40),_0x108d5d=_0x19fc40['item']['getAttribute'](_0x5f2d16);if(_0x1ed7b3['has'](_0x108d5d)){const _0x46ec6b=_0x19fc40['item']['parent']['parent']['getAttribute']('vid_start'),_0x24eac1=_0x1198ee['get'](_0x46ec6b)||new Set();_0x24eac1['add'](_0x1ed7b3['get'](_0x108d5d)['userId']),_0x1198ee['set'](_0x46ec6b,_0x24eac1);}}for(const _0x1af476 of _0x1198ee['keys']())(_0x21d90d['has'](_0x1af476)||_0x1ed7b3['has'](_0x1af476))&&_0x1198ee['delete'](_0x1af476);}for(const _0x31e8be of _0x1d18f4){const _0x27bf67=_0x132a84['insertions'][_0x31e8be];let _0x1b4023=null,_0x295bb0=null;for(const _0x4ca52c of _0x27bf67){const _0x721e59=this['_getVidAttributeName'](_0x4ca52c),_0x5caa09=_0x4ca52c['item']['getAttribute'](_0x721e59),_0x4d9c66=_0x1198ee['get'](_0x5caa09);_0x4d9c66&&'elementStart'==_0x4ca52c['type']&&(_0x1b4023=Array['from'](_0x4d9c66)[0x0],_0x295bb0=_0x4ca52c['item']['getAttribute']('vid_end')),_0x1b4023&&(_0x1ed7b3['set'](_0x5caa09,{'userId':_0x1b4023}),_0x21d90d['set'](_0x5caa09,{'userId':_0x1b4023})),_0x5caa09==_0x295bb0&&(_0x1b4023=null,_0x295bb0=null);}}const _0x2645ee={},_0x48e201=new Set();for(const _0x40ee2f of _0x1d18f4){const _0x3094d3=_0x5e62fb['deletions'][_0x40ee2f],_0x36e94c=_0x5e62fb['insertions'][_0x40ee2f];for(const {userId:_0x152cb6}of this['_touchedMarkers']['values']())null!==_0x152cb6&&_0x48e201['add'](_0x152cb6);for(const {userId:_0x39ec3b}of this['_touchedRoots']['values']())null!==_0x39ec3b&&_0x48e201['add'](_0x39ec3b);this['_markChanges'](_0x36e94c,_0x132a84['insertions'][_0x40ee2f],_0x21d90d,'insertion',_0x48e201),this['_markChanges'](_0x3094d3,_0x132a84['deletions'][_0x40ee2f],_0x1ed7b3,'deletion',_0x48e201),_0x2645ee[_0x40ee2f]={'insertions':this['_prepareViewToSave'](_0x36e94c),'deletions':this['_prepareViewToSave'](_0x3094d3),'attachChange':this['_touchedRoots']['get'](_0x40ee2f)||null,'attributesBefore':_0xc896ae(this['_baseRootsAttributes']['get'](_0x40ee2f))||{},'attributesAfter':_0xc896ae(this['_diffRootsAttributes']['get'](_0x40ee2f))};}return{'diffData':_0x2645ee,'authorsIds':Array['from'](_0x48e201)};}['_processRootBeforeSave'](_0x37359e){for(const [,_0x5de3b8]of _0x37359e['markers']){const _0x369758=_0x5de3b8['start']['getAncestors']()['filter'](_0x49116d=>'tableCell'==_0x49116d['name']);for(const _0x4fbcec of _0x369758)0x1==_0x4fbcec['childCount']&&_0x4fbcec['getChild'](0x0)['is']('element','paragraph')&&_0x4fbcec['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4e6a03){this['_processRootBeforeSave'](_0x4e6a03);const _0x448ad6=this['editor']['data']['toView'](_0x4e6a03,{}),_0x1bd2e3=Array['from'](_0x448ad6['getChildren']())['map'](_0x544e2f=>this['_getViewJson'](_0x544e2f));return JSON['stringify'](_0x1bd2e3);}['_getViewJson'](_0xd3fbbc){if(_0xd3fbbc['is']('$text'))return _0xd3fbbc['data'];{const _0x57e3a1=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4292e8=_0xd3fbbc,_0x5d7767=this['editor']['data']['htmlProcessor']['domConverter'],_0x2775be={'type':_0x57e3a1['_getTypeCharForViewElement'](_0x4292e8),'name':_0x4292e8['name'],'attributes':Array['from'](_0x4292e8['getAttributes']()),'children':Array['from'](_0x4292e8['getChildren']())['map'](_0x136fd0=>this['_getViewJson'](_0x136fd0))};if(_0xd3fbbc['is']('uiElement')&&'$comment'!=_0xd3fbbc['name']){const _0x470ec8=_0xd3fbbc['render'](_0x5d7767['domDocument'],_0x5d7767);_0x2775be['children']['push'](_0x470ec8['outerHTML']);}else{if(_0xd3fbbc['is']('rawElement')){const _0x4b0222=_0x5d7767['domDocument']['createElement'](_0x4292e8['name']);_0xd3fbbc['render'](_0x4b0222,_0x5d7767),_0x2775be['children']['push'](_0x4b0222['innerHTML']);}}const _0x3f2649=Array['from'](_0x4292e8['getCustomProperties']());_0x3f2649['length']>0x0&&(_0x2775be['customProperties']=_0x3f2649);const _0x391b63=_0x4292e8['getFillerOffset']();return null!==_0x391b63&&(_0x2775be['fillerOffset']=_0x391b63),_0x2775be;}}['_markChanges'](_0x15e35d,_0x2ef939,_0x165e66,_0x2d581b,_0x185bb9){let _0x21ef24=null,_0x45c5d6=null,_0x52bc78=0x0;const _0x148846=this['editor']['model'];for(let _0x5d46ba=0x0;_0x5d46ba<_0x2ef939['length'];_0x5d46ba++){const _0x16496e=this['_getVidAttributeName'](_0x2ef939[_0x5d46ba]),_0x563e94=_0x2ef939[_0x5d46ba]['item']['getAttribute'](_0x16496e),_0x393707=_0x165e66['get'](_0x563e94),_0x430fc0=_0x5d46ba==_0x2ef939['length']-0x1;(!_0x21ef24&&_0x393707&&(_0x21ef24=_0x393707,_0x45c5d6=_0x2ef939[_0x5d46ba]),_0x21ef24&&(!_0x393707||_0x393707['userId']!=_0x21ef24['userId']))&&(_0x3749d3(_0x393707,F(_0x45c5d6,_0x15e35d,_0x148846),F(_0x2ef939[_0x5d46ba],_0x15e35d,_0x148846)),_0x21ef24=_0x393707||null,_0x45c5d6=_0x393707?_0x2ef939[_0x5d46ba]:null),_0x21ef24&&_0x430fc0&&_0x3749d3(_0x393707,F(_0x45c5d6,_0x15e35d,_0x148846),B(_0x2ef939[_0x5d46ba],_0x15e35d,_0x148846));}function _0x3749d3(_0x38ee40,_0x2f9bc6,_0x88d4f7){const _0x450f72=_0x21ef24['userId'],_0x86b905='revision:'+_0x2d581b+':'+_0x450f72+':'+_0x52bc78++,_0x35c00e=_0x148846['createRange'](_0x2f9bc6,_0x88d4f7);_0x15e35d['markers']['set'](_0x86b905,_0x35c00e),null!==_0x450f72&&_0x185bb9['add'](_0x450f72);}}['_getVidAttributeName'](_0x427f5c){switch(_0x427f5c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5ed803,_0xed8f02){_0x5ed803['baseVersion']=null;for(const _0x2491be in _0x5ed803){const _0x19fef9=_0x5ed803[_0x2491be];if(_0x19fef9 instanceof ft){const _0x119283=_0xed8f02['get'](_0x19fef9['root']['rootName']);_0x5ed803[_0x2491be]=this['_fixPosition'](_0x19fef9,_0x119283);}if(_0x19fef9 instanceof lt){const _0x46cfdc=_0xed8f02['get'](_0x19fef9['root']['rootName']);_0x5ed803[_0x2491be]=this['_fixRange'](_0x19fef9,_0x46cfdc);}'root'===_0x2491be&&(_0x5ed803['root']=_0xed8f02['get'](_0x5ed803['root']['rootName']));}}['_fixRange'](_0x5cb294,_0x59f157){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5cb294['start'],_0x59f157),this['_fixPosition'](_0x5cb294['end'],_0x59f157));}['_fixPosition'](_0x3d851e,_0x25431b){return this['editor']['model']['createPositionFromPath'](_0x25431b,_0x3d851e['path'],_0x3d851e['stickiness']);}['_handleInsertOperation'](_0x327033){const _0x1bc4db=this['_idsRoots']['get'](_0x327033['position']['root']['rootName']),_0x310860=this['_fixPosition'](_0x327033['position'],_0x1bc4db),_0x85d0a5=null===_0x327033['_authorId']?null:_0x327033['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fd740=_0x310860['parent'],_0x53e166=this['_revisionId'],_0x14ea66=[];for(const _0x4c0ae4 of _0x327033['nodes'])if(_0x4c0ae4['is']('element'))_0x14ea66['push'](this['_makeIdsRoot'](_0x4c0ae4));else{for(let _0x4a4a7e=0x0;_0x4a4a7e<_0x4c0ae4['offsetSize'];_0x4a4a7e++)_0x14ea66['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x34f7c7=this['_revisionId'];for(let _0x4dfc17=_0x53e166;_0x4dfc17<_0x34f7c7;_0x4dfc17++)this['_touched']['set'](_0x4dfc17,{'userId':_0x85d0a5});_0x1fd740['_insertChild'](_0x310860['offset'],_0x14ea66);}['_handleMoveOperation'](_0x14370e){(_0x14370e=this['_cloneOperation'](_0x14370e,this['_idsRoots']))['_execute']();const _0x346cb1=null===_0x14370e['_authorId']?null:_0x14370e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22dbcc=_0x14370e['getMovedRangeStart'](),_0x1c1241=_0x22dbcc['parent'],_0x564e22=_0x22dbcc['offset'];!function _0x45746f(_0x58465d,_0x5c171f,_0x308676,_0x4069e1){for(let _0x990172=_0x308676;_0x990172<_0x4069e1;_0x990172++){const _0xb76f98=_0x5c171f['getChild'](_0x990172);_0xb76f98['is']('element','$text')?_0x58465d['set'](_0xb76f98['getAttribute']('vid'),{'userId':_0x346cb1}):(_0x58465d['set'](_0xb76f98['getAttribute']('vid_start'),{'userId':_0x346cb1}),_0x45746f(_0x58465d,_0xb76f98,0x0,_0xb76f98['childCount']),_0x58465d['set'](_0xb76f98['getAttribute']('vid_end'),{'userId':_0x346cb1}));}}(this['_touched'],_0x1c1241,_0x564e22,_0x564e22+_0x14370e['howMany']);}['_handleMergeOperation'](_0x40e005){const _0x9d442a=null===(_0x40e005=this['_cloneOperation'](_0x40e005,this['_idsRoots']))['_authorId']?null:_0x40e005['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1464ad=_0x40e005['targetPosition']['parent'],_0x4bca07=_0x40e005['sourcePosition']['parent'],_0x1dae4f=_0x1464ad['getAttribute']('vid_end'),_0x2169e6=_0x4bca07['getAttribute']('vid_start');_0x1464ad['_setAttribute']('vid_end',_0x4bca07['getAttribute']('vid_end')),_0x4bca07['_setAttribute']('vid_end',_0x1dae4f),this['_touched']['set'](_0x2169e6,{'userId':_0x9d442a}),this['_touched']['set'](_0x1dae4f,{'userId':_0x9d442a}),_0x40e005['_execute']();}['_handleSplitOperation'](_0x249994){const _0x5a391a=null===(_0x249994=this['_cloneOperation'](_0x249994,this['_idsRoots']))['_authorId']?null:_0x249994['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x346b82=_0x249994['graveyardPosition'],_0x5a9c3d=_0x249994['splitPosition']['parent'];_0x249994['_execute']();const _0xa5f721=_0x5a9c3d['getAttribute']('vid_end'),_0x585b63=_0x249994['insertionPosition']['nodeAfter'];if(_0x346b82){const _0x1b5de3=_0x585b63['getAttribute']('vid_end'),_0x5304e6=_0x5a9c3d['getAttribute']('vid_end');_0x5a9c3d['_setAttribute']('vid_end',_0x1b5de3),_0x585b63['_setAttribute']('vid_end',_0x5304e6),this['_touched']['set'](_0x5a9c3d['getAttribute']('vid_end'),{'userId':_0x5a391a}),this['_touched']['set'](_0x585b63['getAttribute']('vid_start'),{'userId':_0x5a391a});}else{const _0x2190ab=this['_revisionId']++,_0x1bc1d9=this['_revisionId']++;_0x5a9c3d['_setAttribute']('vid_end',_0x2190ab),_0x585b63['_setAttribute']('vid_start',_0x1bc1d9),_0x585b63['_setAttribute']('vid_end',_0xa5f721),this['_touched']['set'](_0x2190ab,{'userId':_0x5a391a}),this['_touched']['set'](_0x1bc1d9,{'userId':_0x5a391a});}}['_handleMarkerOperation'](_0x343171){if(!_0x343171['affectsData'])return;const _0x25564d=(_0x343171=this['_cloneOperation'](_0x343171,this['_diffRoots']))['oldRange']?_0x343171['oldRange']['root']:null,_0x39685e=_0x343171['newRange']?_0x343171['newRange']['root']:null;_0x25564d&&this['_markers']['delete'](_0x343171['name']),_0x39685e&&this['_markers']['set'](_0x343171['name'],_0x343171['newRange']['clone']());const _0x258397=null===_0x343171['_authorId']?null:_0x343171['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1459b6=_0x343171['name'];if(!this['_touchedMarkers']['has'](_0x1459b6))return void this['_touchedMarkers']['set'](_0x1459b6,{'range':_0x343171['oldRange'],'userId':_0x258397});const _0x2a69a0=this['_touchedMarkers']['get'](_0x1459b6),_0x21990f=_0x2a69a0['range'],_0x31e7f3=_0x343171['newRange'];null==_0x21990f&&null==_0x31e7f3||_0x21990f&&_0x31e7f3&&_0x21990f['isEqual'](_0x31e7f3)?this['_touchedMarkers']['delete'](_0x343171['name']):_0x2a69a0['userId']=_0x258397;}['_handleRootOperation'](_0x35f5e9,_0x5d2a83){this['_diffRoots']['has'](_0x35f5e9['rootName'])?this['_diffRoots']['get'](_0x35f5e9['rootName'])['_isAttached']=_0x35f5e9['isAdd']:(this['_diffRoots']['set'](_0x35f5e9['rootName'],P(_0x35f5e9['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x35f5e9['rootName'],{}),_0x5d2a83&&this['_idsRoots']['set'](_0x35f5e9['rootName'],P(_0x35f5e9['rootName'],!0x0)));const _0x2826d8=null===_0x35f5e9['_authorId']?null:_0x35f5e9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42d8f6=this['_touchedRoots']['get'](_0x35f5e9['rootName']);_0x42d8f6&&_0x42d8f6['userId']===_0x2826d8?this['_touchedRoots']['delete'](_0x35f5e9['rootName']):this['_touchedRoots']['set'](_0x35f5e9['rootName'],{'userId':_0x2826d8,'isAttached':_0x35f5e9['isAdd']});}['_handleRootAttributeOperation'](_0x17e935){const _0x4a420c=this['_diffRootsAttributes']['get'](_0x17e935['root']['rootName']);null===_0x17e935['newValue']?delete _0x4a420c[_0x17e935['key']]:_0x4a420c[_0x17e935['key']]=_0x17e935['newValue'];}}function N(_0xdcdd1c){const _0x34fbbc=P(_0xdcdd1c['rootName'],_0xdcdd1c['isAttached']());for(const _0x1da3de of _0xdcdd1c['getChildren']()){const _0x275d3b=_0x1da3de['_clone'](!0x0);_0x34fbbc['_appendChild'](_0x275d3b);}return _0x34fbbc;}function P(_0x5c0f34,_0x315d4b=!0x0){const _0x4f8c22=new vt();return _0x4f8c22['rootName']=_0x5c0f34,_0x4f8c22['_isAttached']=_0x315d4b,_0x4f8c22['isAttached']=()=>_0x4f8c22['_isAttached'],_0x4f8c22;}function F(_0x23c1ec,_0x1a515b,_0x17254f){const _0x17bc9e='elementEnd'==_0x23c1ec['type']?_0x17254f['createPositionAt'](_0x23c1ec['item'],'end'):_0x17254f['createPositionBefore'](_0x23c1ec['item']);return _0x17254f['createPositionFromPath'](_0x1a515b,_0x17bc9e['path'],_0x17bc9e['stickiness']);}function B(_0x3f685f,_0x25bec3,_0x5678ff){const _0x4e3d62='elementStart'==_0x3f685f['type']?_0x5678ff['createPositionAt'](_0x3f685f['item'],0x0):_0x5678ff['createPositionAfter'](_0x3f685f['item']);return _0x5678ff['createPositionFromPath'](_0x25bec3,_0x4e3d62['path'],_0x4e3d62['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3e5605,_0x39b77c){super(_0x3e5605),this['focusTracker']=new _0x10b0d6(),this['keystrokes']=new _0x4d6104(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x39b77c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5d80d2(this);}['render'](){super['render'](),_0x1b934e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x11f932=_0x14d768=>_0x14d768['stopPropagation']();this['keystrokes']['set']('arrowright',_0x11f932),this['keystrokes']['set']('arrowleft',_0x11f932),this['keystrokes']['set']('arrowup',_0x11f932),this['keystrokes']['set']('arrowdown',_0x11f932);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1ae30b){this['revisionNameInputView']['fieldView']['element']['value']=_0x1ae30b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5ca5d0){const _0x599ad0=new _0x5c3265(this['locale'],_0x8970f),_0x298ba7=_0x599ad0['fieldView'];_0x298ba7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5caa27=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5ca5d0&&(_0x5caa27+='\x20('+g(this['locale'],'optional')+')'),(_0x599ad0['label']=_0x5caa27,_0x298ba7['on']('input',()=>{this['revisionNameInputValue']=_0x298ba7['element']['value']['trim']();}),_0x599ad0);}}class f extends _0x294c95{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xb3a551=this['editor'],_0x1ef9ff=_0xb3a551['plugins']['get']('RevisionTracker');_0xb3a551['ui']['componentFactory']['add']('revisionHistory',_0x416278=>{const _0x86b4f7=_0x39253b(_0x416278),_0x26bcf0=_0x86b4f7['panelView']['children'],_0x30191d=new _0x3ea8fb(_0x416278),_0x317be3=new _0x5b7596(_0x416278),_0x26db58=new te(_0x416278),_0x5b915e=new _0x5b7596(_0x416278),_0x26a5d4=new te(_0x416278);return _0x86b4f7['bind']('isEnabled')['to'](_0x1ef9ff,'isReady',_0x1ef9ff,'isEnabled',_0xb3a551,'isReadOnly',(_0x2b19be,_0x2a1d2c,_0x1995e7)=>_0x2b19be&&_0x2a1d2c&&!_0x1995e7),_0x86b4f7['buttonView']['set']({'icon':_0x5eca74,'label':g(_0x416278,'Revision\x20history'),'tooltip':!0x0}),_0x26db58['set']({'label':g(_0x416278,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x26db58['bind']('isEnabled')['to'](_0x1ef9ff,'isReady',_0x1ef9ff,'isEnabled',_0xb3a551,'isReadOnly',(_0x48bd1e,_0x5a48cc,_0x100549)=>_0x48bd1e&&_0x5a48cc&&!_0x100549),_0x26db58['on']('execute',()=>this['_showDialog']()),_0x26a5d4['set']({'label':g(_0x416278,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x26a5d4['bind']('isEnabled')['to'](_0x1ef9ff,'isReady',_0xb3a551,'isReadOnly',(_0x5889fe,_0x24e6cf)=>_0x5889fe&&!_0x24e6cf),_0x26a5d4['on']('execute',()=>{_0xb3a551['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x86b4f7['isOpen']=!0x1,_0xb3a551['editing']['view']['focus']();}),_0x317be3['children']['add'](_0x26db58),_0x5b915e['children']['add'](_0x26a5d4),_0x30191d['role']='menu',_0x30191d['items']['addMany']([_0x317be3,_0x5b915e]),_0x26bcf0['add'](_0x30191d),_0x86b4f7;}),_0xb3a551['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xbd7ae8=this['editor'],_0x214701=_0xbd7ae8['locale'],_0x285f56=new _0xc0565c(_0x214701),_0x23e9a5=new _0x219df3(_0x214701);_0x285f56['buttonView']['set']({'icon':_0x5eca74,'label':g(_0x214701,'Revision\x20history')});const _0x5f2260=new _0x5f4184(_0x214701,_0x285f56),_0x515960=new _0x31dcc7(_0x214701);_0x515960['set']({'label':g(_0x214701,'Save\x20current\x20revision')}),_0x515960['delegate']('execute')['to'](_0x285f56),_0x515960['on']('execute',()=>{this['_showDialog']();}),_0x5f2260['children']['add'](_0x515960),_0x23e9a5['items']['add'](_0x5f2260);const _0x2a21a1=new _0x5f4184(_0x214701,_0x285f56),_0x3aa23b=new _0x31dcc7(_0x214701);return _0x3aa23b['set']({'label':g(_0x214701,'Open\x20revision\x20history')}),_0x3aa23b['delegate']('execute')['to'](_0x285f56),_0x3aa23b['on']('execute',()=>{_0xbd7ae8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2a21a1['children']['add'](_0x3aa23b),_0x23e9a5['items']['add'](_0x2a21a1),_0x285f56['panelView']['children']['add'](_0x23e9a5),_0x285f56;}['_showDialog'](){const _0xfdf9b3=this['editor'],_0x3a1748=_0xfdf9b3['locale'],_0x42735f=_0xfdf9b3['plugins']['get']('Dialog'),_0x54383c=_0xfdf9b3['plugins']['get']('RevisionTracker');function _0x340b2e(_0x4c361d){_0xfdf9b3['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4c361d['revisionName']?_0x4c361d['revisionNameInputView']['errorText']=g(_0x3a1748,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xfdf9b3['plugins']['get'](u)['saveRevision']({'name':_0x4c361d['revisionName']}),_0x42735f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x340b2e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x42735f['show']({'id':'revisionSave','title':g(_0x3a1748,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0xfdf9b3['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x42735f['hide']()},{'label':g(_0xfdf9b3['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x34fc38){_0x34fc38['bind']('isEnabled')['to'](_0x54383c,'isReady',_0x54383c,'isEnabled',_0xfdf9b3,'isReadOnly',(_0xa4b8c8,_0x323daa,_0x55b05c)=>_0xa4b8c8&&_0x323daa&&!_0x55b05c);},'onExecute':()=>_0x340b2e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2e52ae=this['editor'],_0x3497c0=_0x2e52ae['locale'];this['_saveRevisionFormView']=new hs(_0x3497c0,_0x2e52ae['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x45ee54,_0x5d1f98){super(_0x45ee54),this['_model']=_0x5d1f98,this['changeId']=_0x5d1f98['id'];const _0x1384c1=this['bindTemplate'],_0x4d10d4=g(_0x45ee54,_0x5d1f98['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5d1f98['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5d1f98['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1384c1['to']('type',_0x4e8b0d=>'ck-revision-change__'+_0x4e8b0d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4d10d4}]},{'text':'\x20'+_0x5d1f98['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x427504(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xbf2a46){super(),this['id']=_0xbf2a46['id']||_0x3e0359(),this['author']=_0xbf2a46['author'],this['type']=_0xbf2a46['type'],this['data']=_0xbf2a46['data']||{},this['rootName']=_0xbf2a46['rootName'],this['set']('createdAt',_0xbf2a46['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x331918,_0x25a02c){this['newRevisionId']=_0x331918,this['oldRevisionId']=_0x25a02c,this['changes']=new _0x1bc032();}['_setChanges'](_0x28c576){for(const _0x267623 of _0x28c576)this['changes']['add'](_0x267623);}}class m extends _0x294c95{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xaca5ca,_0x5e935b,I,V];}constructor(_0x314995){super(_0x314995),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x298f36,_0x2f90c1,_0x19ed29)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x443a31=>{for(const _0x548b0a of this['editor']['editing']['view']['document']['roots'])_0x19ed29?_0x443a31['removeClass']('ck-editor__editable__overlay',_0x548b0a):_0x443a31['addClass']('ck-editor__editable__overlay',_0x548b0a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x34ceee=>null!==_0x34ceee),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5d96b5,_0x176240,_0x3c19b4)=>_0x5d96b5&&_0x3c19b4?_0x176240['changes']['getIndex'](_0x3c19b4):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x55059a,_0x5235e5)=>_0x55059a?_0x5235e5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5e935b);}['init'](){const _0x12b7b4=this['editor'],_0x162a05=new wt(_0x12b7b4,{'direction':'backward'}),_0x1fc036=new wt(_0x12b7b4,{'direction':'forward'});(_0x12b7b4['commands']['add']('showPreviousChange',_0x162a05),_0x12b7b4['commands']['add']('showNextChange',_0x1fc036),_0x12b7b4['commands']['add']('restoreRevision',new mt(_0x12b7b4)),this['on']('change:numberOfChanges',()=>{_0x162a05['refresh'](),_0x1fc036['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x12b7b4['enableReadOnlyMode']('revision-viewer'),_0x12b7b4['plugins']['has']('WidgetToolbarRepository'))&&_0x12b7b4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5f4604){return await this['_utils']['loadRevisionData'](_0x5f4604,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5f4604);}async['getRevisionRootsAttributes'](_0x209cf2){return await this['_utils']['loadRevisionData'](_0x209cf2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x209cf2);}async['compare'](_0x3022df,_0x3df116,_0x16fb90=!0x1){if(!this['isEnabled'])return;const _0x46c441=this['diff'],_0x1766c5=this['repository'],_0x1006f4='string'==typeof _0x3022df?_0x1766c5['getRevision'](_0x3022df):_0x3022df,_0x320a87='string'==typeof _0x3df116?_0x1766c5['getRevision'](_0x3df116):_0x3df116,_0x5083b8=_0x1006f4['id'],_0x121b06=_0x320a87?_0x320a87['id']:null;if(!_0x16fb90&&this['diff']&&this['diff']['newRevisionId']===_0x5083b8&&this['diff']['oldRevisionId']===_0x121b06)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5083b8,_0x121b06);const _0x485244=this['_getRevisionsRange'](_0x1006f4,_0x320a87,!0x0)['map'](_0x35f706=>this['_utils']['loadRevisionData'](_0x35f706,this['adapter']));return _0x485244['push'](new Promise(_0x50d5cd=>{setTimeout(_0x50d5cd,0x14);})),Promise['all'](_0x485244)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31ce49=this['_getDiff'](_0x5083b8,_0x121b06);for(const _0x3fc1da of _0x31ce49['changes'])this['_changeIdToChange']['set'](_0x3fc1da['id'],_0x3fc1da);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x46960e=>{for(const _0x476cdb of this['editor']['model']['document']['getRootNames']())_0x46960e['detachRoot'](_0x476cdb);for(const _0x22affd of Object['keys'](_0x31ce49['model'])){const _0x2e6704=_0x46960e['addRoot'](_0x22affd);for(const _0x3f27c1 of Object['keys'](_0x31ce49['attributes'][_0x22affd]))_0x46960e['setAttribute'](_0x3f27c1,_0x31ce49['attributes'][_0x22affd][_0x3f27c1],_0x2e6704);_0x46960e['insert'](_0x31ce49['model'][_0x22affd],_0x2e6704,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31ce49['changes'])),this['isReady']=!0x0;})['catch'](_0x4ac3ed=>{console['error'](_0x4ac3ed),this['_cleanUp'](),_0x46c441&&(this['diff']=_0x46c441),this['isReady']=!0x0;});}['addRevisionData'](_0x3530a9,_0x39fa6c){const _0xe92ed3=this['repository']['createRevision'](_0x3530a9);return _0xe92ed3['on']('_update',(_0x26f5a0,_0x5b2060,_0x2ec2c8)=>_0x39fa6c(_0x5b2060,_0x2ec2c8,_0xe92ed3)),this['repository']['addRevision'](_0xe92ed3),_0xe92ed3;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x16fc5f=>{for(const _0x4b1b46 of this['editor']['model']['document']['getRootNames']())_0x16fc5f['detachRoot'](_0x4b1b46);});}['_sortAndFilterDiffChanges'](_0x38e230){const _0xe9def1=[],_0x15eafe=new Map();for(const _0x2c161f of this['editor']['model']['document']['getRootNames']()){const _0x5ba2c1=this['editor']['editing']['view']['getDomRoot'](_0x2c161f);if(!_0x5ba2c1)continue;const _0x1af58d=_0x5ba2c1['getClientRects']()['item'](0x0);_0x1af58d&&(_0xe9def1['push'](_0x2c161f),_0x15eafe['set'](_0x2c161f,_0x1af58d));}return _0xe9def1['sort']((_0x52eb8c,_0x565dde)=>{const _0x4867f4=_0x15eafe['get'](_0x52eb8c),_0x1c491e=_0x15eafe['get'](_0x565dde);return _0x4867f4['y']-_0x1c491e['y']||_0x4867f4['x']-_0x1c491e['x'];}),(_0x38e230=_0x38e230['filter'](_0x5a18a1=>_0xe9def1['includes'](_0x5a18a1['rootName'])))['sort']((_0x3b5e82,_0x319fa2)=>_0xe9def1['indexOf'](_0x3b5e82['rootName'])-_0xe9def1['indexOf'](_0x319fa2['rootName'])),_0x38e230;}['_makeTape'](_0x29f435){const _0x49c8c2=Array['from'](_0x29f435['markers'])['filter'](([_0x59fc42,_0x10f1a9])=>_0x59fc42['startsWith']('revision:')&&!_0x10f1a9['isCollapsed']),_0x5a1147=Array['from'](this['editor']['model']['createRangeIn'](_0x29f435)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x49c8c2['length'])for(const _0x2bbe17 of _0x5a1147){const [_0x3d12b9,_0x42724b]=_0x49c8c2[0x0],[,_0x13ea59,_0x50437a]=_0x3d12b9['split'](':');if(_0x42724b['end']['isEqual'](_0x2bbe17['nextPosition'])&&_0x49c8c2['shift'](),(_0x2bbe17['previousPosition']['isEqual'](_0x42724b['start'])||_0x2bbe17['previousPosition']['isAfter'](_0x42724b['start']))&&('insertion'==_0x13ea59?_0x2bbe17['isAdded']={'userId':_0x50437a}:'deletion'==_0x13ea59&&(_0x2bbe17['isRemoved']={'userId':_0x50437a})),0x0==_0x49c8c2['length'])break;}return _0x5a1147;}['_refreshStartEndIndex'](_0x237bd4){const _0x1d561a=new Map();for(let _0x135db4=0x0;_0x135db4<_0x237bd4['length'];_0x135db4++)'text'===_0x237bd4[_0x135db4]['type']?(_0x237bd4[_0x135db4]['item']['startIndex']=_0x135db4,_0x237bd4[_0x135db4]['item']['endIndex']=_0x135db4):('elementStart'===_0x237bd4[_0x135db4]['type']?_0x237bd4[_0x135db4]['item']['startIndex']=_0x135db4:'elementEnd'===_0x237bd4[_0x135db4]['type']&&(_0x237bd4[_0x135db4]['item']['endIndex']=_0x135db4),_0x1d561a['set'](_0x237bd4[_0x135db4]['id'],_0x135db4));for(const _0x1aaa57 of _0x1d561a['values']())'elementStart'===_0x237bd4[_0x1aaa57]['type']?_0x237bd4[_0x1aaa57]['item']['endIndex']=_0x1d561a['get'](_0x237bd4[_0x1aaa57]['pairId']):'elementEnd'===_0x237bd4[_0x1aaa57]['type']&&(_0x237bd4[_0x1aaa57]['item']['startIndex']=_0x1d561a['get'](_0x237bd4[_0x1aaa57]['pairId']));}['_processTape'](_0x4cf557){for(let _0x3ae98b=0x0;_0x3ae98b<_0x4cf557['length'];_0x3ae98b++){if('elementStart'===_0x4cf557[_0x3ae98b]['type'])_0x4cf557[_0x3ae98b]['item']['startIndex']=_0x3ae98b;else{if('elementEnd'===_0x4cf557[_0x3ae98b]['type']){_0x4cf557[_0x3ae98b]['item']['endIndex']=_0x3ae98b;const _0x549245=_0x4cf557[_0x3ae98b]['item']['startIndex'];_0x4cf557[_0x549245]['pairId']=_0x4cf557[_0x3ae98b]['id'],_0x4cf557[_0x3ae98b]['pairId']=_0x4cf557[_0x549245]['id'];}else _0x4cf557[_0x3ae98b]['item']['startIndex']=_0x3ae98b,_0x4cf557[_0x3ae98b]['item']['endIndex']=_0x3ae98b,_0x4cf557[_0x3ae98b]['pairId']=null;}_0x4cf557[_0x3ae98b]['markersStart']||(_0x4cf557[_0x3ae98b]['markersStart']=[],_0x4cf557[_0x3ae98b]['markersEnd']=[]);}}['_markInsertions'](_0x1e8669,_0x45eb38){const _0x461153=_0x1e8669['filter'](_0x2f384d=>!_0x2f384d['isAdded']);for(let _0x3d6fab=0x0;_0x3d6fab<_0x45eb38['length'];_0x3d6fab++)_0x45eb38[_0x3d6fab]['isAdded']&&(_0x461153[_0x3d6fab]['isAdded']=_0x45eb38[_0x3d6fab]['isAdded']);}['_getDiff'](_0x7f66f4,_0x3242a0=null){const _0x11b5d0=this['repository']['getRevision'](_0x7f66f4),_0x4cc743=_0x3242a0?this['repository']['getRevision'](_0x3242a0):null,_0xab3134=this['_getRevisionsRange'](_0x11b5d0,_0x4cc743),_0x2a8fb5=_0xab3134[_0xab3134['length']-0x1],_0x3b4e39=new Map(),_0x381726={'model':{},'attributes':{},'changes':[]},_0x31f2b9=new Set(),_0x2befe8=new Map();for(let _0x2b4f3d=_0xab3134['length']-0x1;_0x2b4f3d>=0x0;_0x2b4f3d--){const _0x448e24=_0xab3134[_0x2b4f3d];for(const _0x11a15f of Object['keys'](_0x448e24['diffData']))if(_0x448e24['diffData'][_0x11a15f]['attachChange']){const _0x21b928=_0x448e24['diffData'][_0x11a15f]['attachChange'];_0x21b928['isAttached']?(_0x31f2b9['add'](_0x11a15f),_0x2befe8['has'](_0x11a15f)&&_0x2befe8['get'](_0x11a15f)['userId']==_0x21b928['userId']?_0x2befe8['delete'](_0x11a15f):_0x2befe8['set'](_0x11a15f,_0x21b928)):_0x2befe8['has'](_0x11a15f)?(_0x31f2b9['delete'](_0x11a15f),_0x2befe8['delete'](_0x11a15f)):(_0x31f2b9['add'](_0x11a15f),_0x2befe8['set'](_0x11a15f,_0x21b928));}else _0x31f2b9['add'](_0x11a15f);}for(const _0x3d441a of _0x31f2b9){const _0x2f3153=_0x2befe8['has'](_0x3d441a)&&!_0x2befe8['get'](_0x3d441a)['isAttached'];let _0x452cf9=_0x2f3153?_0xab3134['length']-0x1:0x0;const _0x1c1a62=_0x2f3153?-0x1:0x1;for(;_0xab3134[_0x452cf9];){const _0x14f7c1=_0xab3134[_0x452cf9];if(_0x14f7c1['diffData'][_0x3d441a]){const _0x4407b8=_0x2f3153?_0x14f7c1['diffData'][_0x3d441a]['attributesBefore']:_0x14f7c1['diffData'][_0x3d441a]['attributesAfter'];_0x381726['attributes'][_0x3d441a]=_0x4407b8?_0xc896ae(_0x4407b8):{};break;}_0x452cf9+=_0x1c1a62;}}for(const _0x3ac5d1 of _0xab3134){_0x3ac5d1['model']={};for(const _0x222601 of _0x3ac5d1['authors'])_0x3b4e39['set'](_0x222601['id'],_0x222601);for(const _0x19bfcb of _0x31f2b9){const _0xe7e749=_0x3ac5d1['diffData'][_0x19bfcb]?_0x3ac5d1['diffData'][_0x19bfcb]['insertions']:'[]',_0x3a2bda=_0x3ac5d1['diffData'][_0x19bfcb]?_0x3ac5d1['diffData'][_0x19bfcb]['deletions']:'[]';_0x3ac5d1['model'][_0x19bfcb]={'insertions':this['_utils']['_makeModelFromViewString'](_0xe7e749),'deletions':this['_utils']['_makeModelFromViewString'](_0x3a2bda)};}}for(const _0x5309aa of _0x31f2b9){let _0x5ed7f0=null,_0x640d59=0x0;const _0x1f3522=new Map(Array['from'](_0x11b5d0['model'][_0x5309aa]['insertions']['markers'])['filter'](([_0x18d559])=>!_0x18d559['startsWith']('revision:')));let _0x142a6b=0x0;for(const _0x506e48 of _0xab3134){const _0x11b277=this['_makeTape'](_0x506e48['model'][_0x5309aa]['insertions']);_0x506e48==_0x11b5d0?(_0x5ed7f0=_0x11b277,_0x640d59=_0x5ed7f0['length'],_0x5ed7f0['forEach'](_0x415b94=>{_0x415b94['id']=_0x142a6b++;}),this['_processTape'](_0x5ed7f0)):this['_markInsertions'](_0x5ed7f0,_0x11b277);const _0x5a5afe=_0x5ed7f0['filter'](_0x372343=>!_0x372343['isAdded'])['map'](_0x5510dd=>_0x5510dd['id']);let _0x3e6527=0x0;const _0x5b983e=this['_makeTape'](_0x506e48['model'][_0x5309aa]['deletions']);_0x5b983e['forEach'](_0x41dfa6=>{_0x41dfa6['isRemoved']?_0x41dfa6['id']=_0x640d59++:_0x41dfa6['id']=_0x5a5afe[_0x3e6527++];}),this['_processTape'](_0x5b983e),this['_setDistance'](_0x5ed7f0,'isAdded'),this['_setDistance'](_0x5b983e,'isRemoved'),_0x506e48==_0x11b5d0&&this['_markMarkers'](_0x5ed7f0,_0x1f3522),_0x5ed7f0=this['_joinTapes'](_0x5ed7f0,_0x5b983e),this['_refreshStartEndIndex'](_0x5ed7f0),this['_setDistance'](_0x5ed7f0,'isRemoved');}_0x5ed7f0=_0x5ed7f0['filter'](_0x1e8cd7=>!(_0x1e8cd7['isAdded']&&_0x1e8cd7['isRemoved']));const _0x94cd8e=new Map(_0x2a8fb5['model'][_0x5309aa]['deletions']['markers']),_0x14630a=new Set(_0x1f3522['keys']());for(const _0x5dd9a8 of _0x94cd8e['keys']())_0x14630a['delete'](_0x5dd9a8);this['_markSuggestions'](_0x5ed7f0,_0x14630a),this['_fixObsoleteTags'](_0x5ed7f0),_0x5ed7f0=this['_removeMissingPairs'](_0x5ed7f0),_0x5ed7f0=this['_markMismatchedRemovedTags'](_0x5ed7f0),_0x5ed7f0=this['_removeUnsupportedChanges'](_0x5ed7f0);const {root:_0x31eb3a,changes:_0x575895}=this['_makeModelFromTape'](_0x5ed7f0,_0x3b4e39,_0x5309aa);_0x381726['model'][_0x5309aa]=_0x31eb3a;const _0x1b5729=_0x2befe8['get'](_0x5309aa);if(_0x1b5729){const _0xe74799=_0x3b4e39['get'](_0x1b5729['userId']),_0x7c4a33=new r({'author':_0xe74799,'type':_0x1b5729['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5309aa});_0x575895['unshift'](_0x7c4a33),_0x381726['attributes'][_0x5309aa]['revisionHistoryAttachChange']=_0x7c4a33['id'];}_0x381726['changes']=_0x381726['changes']['concat'](_0x575895);}return _0x381726;}['_markMarkers'](_0x5e08cc,_0x3ea863){for(let _0x3cdbeb=0x0;_0x3cdbeb<_0x5e08cc['length'];_0x3cdbeb++)for(const [_0x529569,_0x3f9188]of _0x3ea863)!_0x3f9188['isCollapsed']&&_0x3f9188['start']['isEqual'](_0x5e08cc[_0x3cdbeb]['previousPosition'])&&_0x5e08cc[_0x3cdbeb]['markersStart']['push'](_0x529569),_0x3f9188['end']['isEqual'](_0x5e08cc[_0x3cdbeb]['nextPosition'])&&_0x5e08cc[_0x3cdbeb]['markersEnd']['push'](_0x529569);}['_joinTapes'](_0x242242,_0x274df8){let _0xbc8eb1=[],_0x4509c9=0x0,_0x4fa3cf=0x0;for(;_0x4509c9<_0x242242['length']||_0x4fa3cf<_0x274df8['length'];){const _0x2b7833=_0x242242[_0x4509c9]||{},_0x57acf1=_0x274df8[_0x4fa3cf]||{};if(_0x2b7833['id']==_0x57acf1['id'])_0x4509c9++,_0x4fa3cf++,_0xbc8eb1['push'](_0x2b7833);else{if(_0x57acf1['isRemoved']&&_0x2b7833['isAdded']){const {commonTape:_0xb7f48e,iEnd:_0x271ace,jEnd:_0x4952e9}=this['_threeWayMerge'](_0x242242,_0x4509c9,_0x274df8,_0x4fa3cf);_0xbc8eb1=_0xbc8eb1['concat'](_0xb7f48e),_0x4509c9=_0x271ace,_0x4fa3cf=_0x4952e9;}else _0x57acf1['isRemoved']?(_0x4fa3cf++,_0xbc8eb1['push'](_0x57acf1)):(_0x4509c9++,_0xbc8eb1['push'](_0x2b7833));}}return _0xbc8eb1;}['_markSuggestions'](_0x28263e,_0x7330b8){const _0x57b4bc=[];for(let _0x481989=0x0;_0x481989<_0x28263e['length'];_0x481989++){for(let _0x329119=0x0;_0x329119<_0x28263e[_0x481989]['markersStart']['length'];_0x329119++){const _0x385a6c=_0x28263e[_0x481989]['markersStart'][_0x329119];if(!_0x7330b8['has'](_0x385a6c))continue;const {group:_0x178c96,type:_0x4dce91,authorId:_0x179c51}=_0x11170d(_0x385a6c);'revision-suggestion'!=_0x178c96||'insertion'!=_0x4dce91&&'deletion'!=_0x4dce91||(_0x57b4bc['unshift']({'type':_0x4dce91,'name':_0x385a6c,'userId':_0x179c51}),_0x28263e[_0x481989]['markersStart']['splice'](_0x329119,0x1),_0x329119--);}_0x545474(_0x28263e[_0x481989]);for(let _0xb99f69=0x0;_0xb99f69<_0x28263e[_0x481989]['markersEnd']['length'];_0xb99f69++){const _0x8c991d=_0x28263e[_0x481989]['markersEnd'][_0xb99f69];if(!_0x7330b8['has'](_0x8c991d))continue;const {group:_0x43222f,type:_0x2bd79d}=_0x11170d(_0x8c991d);if('revision-suggestion'!=_0x43222f||'insertion'!=_0x2bd79d&&'deletion'!=_0x2bd79d)continue;_0x28263e[_0x481989]['markersEnd']['splice'](_0xb99f69,0x1),_0xb99f69--;const _0x302040=_0x57b4bc['findIndex'](_0x6482a8=>_0x6482a8['name']==_0x8c991d);_0x302040>-0x1&&_0x57b4bc['splice'](_0x302040,0x1);}}function _0x11170d(_0x51cde0){const _0x196ca8=_0x51cde0['split'](':');return{'group':_0x196ca8[0x0],'type':_0x196ca8[0x1],'subType':_0x196ca8['length']>=0x5?_0x196ca8[0x2]:null,'id':_0x196ca8['length']<0x5?_0x196ca8[0x2]:_0x196ca8[0x3],'authorId':_0x196ca8['length']<0x5?_0x196ca8[0x3]:_0x196ca8[0x4],'markerCount':0x6==_0x196ca8['length']?_0x196ca8[0x5]:null};}function _0x545474(_0x2ab7e9){for(let _0xad7c58=0x0;_0xad7c58<_0x57b4bc['length'];_0xad7c58++){if(_0x2ab7e9['isAdded']&&'insertion'==_0x57b4bc[_0xad7c58]['type'])return _0x2ab7e9['isAddSuggestion']=_0x57b4bc[_0xad7c58],void delete _0x2ab7e9['isAdded'];if(!_0x2ab7e9['isAdded']&&!_0x2ab7e9['isRemoved']&&'deletion'==_0x57b4bc[_0xad7c58]['type'])return void(_0x2ab7e9['isRemoveSuggestion']=_0x57b4bc[_0xad7c58]);}}}['_setDistance'](_0x51691d,_0x225666){let _0x3e8f5a=0x0,_0xf81b5b=!0x1;const _0x24b56a=new Map();for(const _0x2f322b of _0x51691d)_0x2f322b[_0x225666]?_0xf81b5b&&(_0x3e8f5a++,_0xf81b5b=!0x1):(_0x3e8f5a++,_0xf81b5b=!0x0),_0x24b56a['set'](_0x2f322b['id'],_0x3e8f5a);for(let _0x491156=0x0;_0x491156<_0x51691d['length'];_0x491156++){if('isRemoved'==_0x225666&&_0x51691d[_0x491156]['isAdded']||'isAdded'==_0x225666&&_0x51691d[_0x491156]['isRemoved'])continue;if('text'==_0x51691d[_0x491156]['type']){_0x51691d[_0x491156]['distance']=0x0;continue;}const _0x4100f8=_0x24b56a['get'](_0x51691d[_0x491156]['pairId']),_0x16ba57=_0x24b56a['get'](_0x51691d[_0x491156]['id']);_0x51691d[_0x491156]['distance']=_0x4100f8-_0x16ba57;}}['_getRevisionsRange'](_0x4fd3d2,_0x37ed8e,_0x66ab4e=!0x1){const _0x4fe1ba=[];let _0x4a8b41=this['repository']['getIndex'](_0x4fd3d2),_0x555dd2=this['repository']['getIndex'](_0x37ed8e);for(-0x1==_0x555dd2&&(_0x555dd2=this['repository']['_revisions']['length'],_0x66ab4e=!0x1);_0x4a8b41<_0x555dd2;)_0x4fe1ba['push'](this['repository']['getRevision'](_0x4a8b41)),_0x4a8b41++;return _0x66ab4e&&_0x4fe1ba['push'](this['repository']['getRevision'](_0x4a8b41)),_0x4fe1ba;}['_threeWayMerge'](_0x5bbcb1,_0x3f6489,_0x559600,_0x48ef65){const _0x4a023a=this['editor']['model']['schema'];let _0x5bdade=_0x3f6489;for(;_0x5bbcb1[_0x5bdade]&&_0x5bbcb1[_0x5bdade]['isAdded'];)_0x5bdade++;let _0x49410a=_0x48ef65;for(;_0x559600[_0x49410a]&&_0x559600[_0x49410a]['isRemoved'];)_0x49410a++;_0x13a30d(_0x5bbcb1,_0x3f6489,_0x5bdade),_0x13a30d(_0x559600,_0x48ef65,_0x49410a);const _0x4e442a=_0x559600['slice'](_0x48ef65,_0x49410a)['concat'](_0x5bbcb1['slice'](_0x3f6489,_0x5bdade));return _0x4e442a['sort']((_0x156e18,_0x34fd15)=>_0x156e18['side']!=_0x34fd15['side']?_0x156e18['side']-_0x34fd15['side']:_0x156e18['level']!=_0x34fd15['level']?_0x156e18['level']-_0x34fd15['level']:_0x156e18['distance']!=_0x34fd15['distance']?_0x34fd15['distance']-_0x156e18['distance']:!!_0x156e18['isAdded']!=!!_0x34fd15['isAdded']?-0x1==_0x156e18['side']||0x0==_0x156e18['side']?_0x156e18['isAdded']?-0x1:0x1:_0x156e18['isAdded']?0x1:-0x1:_0x156e18['index']-_0x34fd15['index']),{'commonTape':_0x4e442a,'iEnd':_0x5bdade,'jEnd':_0x49410a};function _0x13a30d(_0x5c60b6,_0x4adab2,_0x2b81ce){let _0x34db47=-0x1,_0x5eec66=Number['POSITIVE_INFINITY'],_0x10ff47=!0x0;for(let _0x39bbf9=_0x4adab2;_0x39bbf9<_0x2b81ce;_0x39bbf9++)if(_0x4a023a['isInline'](_0x5c60b6[_0x39bbf9]['item'])||(_0x10ff47=!0x1),_0x5c60b6[_0x39bbf9]['item']['startIndex']<_0x4adab2&&(_0x34db47=_0x39bbf9),_0x5c60b6[_0x39bbf9]['item']['endIndex']>=_0x2b81ce){_0x5eec66=_0x39bbf9;break;}_0x10ff47&&(_0x34db47=_0x2b81ce-0x1);for(let _0x1544c5=_0x4adab2;_0x1544c5<_0x2b81ce;_0x1544c5++)_0x5c60b6[_0x1544c5]['side']=_0x1544c5<=_0x34db47?-0x1:_0x1544c5<_0x5eec66?0x0:0x1,_0x5c60b6[_0x1544c5]['index']=_0x1544c5;let _0x43ca3e=0x0;for(let _0x4a17c7=_0x4adab2;_0x4a17c7<=_0x34db47;_0x4a17c7++)0x0==_0x5c60b6[_0x4a17c7]['distance']?_0x5c60b6[_0x4a17c7]['level']=_0x43ca3e:(_0x43ca3e++,_0x5c60b6[_0x4a17c7]['level']=_0x43ca3e,_0x43ca3e++);for(let _0x2f047a=_0x4adab2;_0x2f047a<_0x2b81ce;_0x2f047a++)0x0==_0x5c60b6[_0x2f047a]['side']&&(_0x5c60b6[_0x2f047a]['level']=_0x43ca3e);_0x43ca3e=0x0;for(let _0x137d51=_0x2b81ce-0x1;_0x137d51>=_0x5eec66;_0x137d51--)0x0==_0x5c60b6[_0x137d51]['distance']?_0x5c60b6[_0x137d51]['level']=_0x43ca3e:(_0x43ca3e--,_0x5c60b6[_0x137d51]['level']=_0x43ca3e,_0x43ca3e--);}}['_fixObsoleteTags'](_0x488cfe){const _0x17f2c0=new Map(),_0x1d9a15=this['editor']['model']['schema'];for(let _0x4aaace=0x1;_0x4aaace<_0x488cfe['length'];_0x4aaace++){let _0x45b582,_0x4f4713,_0x3b2b69;const _0x249a83=_0x488cfe[_0x4aaace],_0x3be548=_0x488cfe[_0x4aaace-0x1];if('text'==_0x249a83['type'])continue;if(_0x249a83['type']!=_0x3be548['type'])continue;if(!_0x1d9a15['isBlock'](_0x3be548['item'])||_0x1d9a15['isLimit'](_0x3be548['item']))continue;if(!_0x1d9a15['isBlock'](_0x249a83['item'])||_0x1d9a15['isLimit'](_0x249a83['item']))continue;if((_0x488cfe[_0x4aaace]['isAdded']||_0x488cfe[_0x4aaace]['isAddSuggestion'])&&_0x488cfe[_0x4aaace-0x1]['isRemoved'])_0x45b582=_0x488cfe[_0x4aaace],_0x4f4713=_0x488cfe[_0x4aaace-0x1],_0x3b2b69=_0x4aaace-0x1;else{if(!_0x488cfe[_0x4aaace]['isRemoved']||!_0x488cfe[_0x4aaace-0x1]['isAdded']&&!_0x488cfe[_0x4aaace-0x1]['isAddSuggestion'])continue;_0x45b582=_0x488cfe[_0x4aaace-0x1],_0x4f4713=_0x488cfe[_0x4aaace],_0x3b2b69=_0x4aaace;}const _0x56731a=_0x45b582['level']==_0x4f4713['level'],_0x3ff852=Math['abs'](_0x45b582['level'])<Math['abs'](_0x4f4713['level'])&&0x0==_0x4f4713['distance'];(_0x56731a||_0x3ff852)&&(_0x17f2c0['set'](_0x4f4713['id'],_0x45b582['id']),_0x488cfe['splice'](_0x3b2b69,0x1),_0x4aaace--,_0x45b582['isAdded']=!0x1);}for(let _0x29b9f0=0x0;_0x29b9f0<_0x488cfe['length'];_0x29b9f0++)_0x17f2c0['has'](_0x488cfe[_0x29b9f0]['pairId'])&&(_0x488cfe[_0x29b9f0]['pairId']=_0x17f2c0['get'](_0x488cfe[_0x29b9f0]['pairId']));}['_removeMissingPairs'](_0x3a089b){const _0x7c5a8e=new Set(_0x3a089b['map'](_0x4b1f14=>_0x4b1f14['id']));for(let _0x42e5b8=0x0;_0x42e5b8<_0x3a089b['length'];_0x42e5b8++)_0x7c5a8e['has'](_0x3a089b[_0x42e5b8]['pairId'])||0x0==_0x3a089b[_0x42e5b8]['distance']||(_0x3a089b[_0x42e5b8]['isIncorrect']=!0x0);return _0x3a089b['filter'](_0x5ac97c=>!_0x5ac97c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41810c){const _0x24500b=new Set();for(let _0x3b827d=0x0;_0x3b827d<_0x41810c['length'];_0x3b827d++){if(_0x24500b['has'](_0x41810c[_0x3b827d]['id'])&&_0x41810c[_0x3b827d]['isRemoved']&&(_0x41810c[_0x3b827d]['isIncorrect']=!0x0),_0x41810c[_0x3b827d]['isIncorrect'])continue;if(0x0==_0x41810c[_0x3b827d]['distance'])continue;if('elementStart'!=_0x41810c[_0x3b827d]['type'])continue;if(null==_0x41810c[_0x3b827d]['pairId'])continue;let _0x47d3db=_0x3b827d+0x1,_0x5b68a6=0x0;for(;_0x41810c[_0x47d3db]['id']!=_0x41810c[_0x3b827d]['pairId'];)'elementStart'==_0x41810c[_0x47d3db]['type']?_0x5b68a6++:'elementEnd'==_0x41810c[_0x47d3db]['type']&&_0x5b68a6--,_0x47d3db++;if(0x0!=_0x5b68a6){if(_0x41810c[_0x3b827d]['isRemoved'])_0x41810c[_0x3b827d]['isIncorrect']=!0x0;else{for(;_0x47d3db!=_0x3b827d;)_0x41810c[_0x47d3db]['isRemoved']&&0x0!=_0x41810c[_0x47d3db]['distance']&&(_0x41810c[_0x47d3db]['isIncorrect']=!0x0,_0x24500b['add'](_0x41810c[_0x47d3db]['pairId'])),_0x47d3db--;}}}return _0x41810c['filter'](_0x3caf6a=>!_0x3caf6a['isIncorrect']);}['_removeUnsupportedChanges'](_0xf86270){const _0x43a47f=this['editor']['model']['schema'];for(let _0x41ab49=0x0;_0x41ab49<_0xf86270['length'];_0x41ab49++){if(!(_0xf86270[_0x41ab49]['isAdded']||_0xf86270[_0x41ab49]['isAddSuggestion']||_0xf86270[_0x41ab49]['isRemoved']||_0xf86270[_0x41ab49]['isRemoveSuggestion']))continue;if(0x0==_0xf86270[_0x41ab49]['distance'])continue;const _0x1f830d=_0xf86270[_0x41ab49]['item'];_0x43a47f['isBlock'](_0x1f830d)||_0x43a47f['isLimit'](_0x1f830d)||(_0xf86270[_0x41ab49]['isAdded']&&delete _0xf86270[_0x41ab49]['isAdded'],_0xf86270[_0x41ab49]['isAddSuggestion']&&delete _0xf86270[_0x41ab49]['isAddSuggestion'],_0xf86270[_0x41ab49]['isRemoveSuggestion']&&delete _0xf86270[_0x41ab49]['isRemoveSuggestion'],_0xf86270[_0x41ab49]['isRemoved']&&(_0xf86270[_0x41ab49]['isIncorrect']=!0x0));}return _0xf86270['filter'](_0x1720e4=>!_0x1720e4['isIncorrect']);}['_makeModelFromTape'](_0x5a48e9,_0x3b66f3,_0x3b6d4f){const _0xd2d43a=new vt(),_0x2f4f3a=[],_0x3d5d37=new Map(),_0x578429=this['editor']['model'],_0x34628b=_0x578429['schema'],_0x1ced87=[_0xd2d43a],_0x449120={},_0x3b21e6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5d07af=null;const _0x68c784=[0x0];for(let _0x3a85b6=0x0;_0x3a85b6<_0x5a48e9['length'];_0x3a85b6++)if('elementStart'===_0x5a48e9[_0x3a85b6]['type']){_0x5a48e9[_0x3a85b6]['previousPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784);const _0x2a58ac=new ut(_0x5a48e9[_0x3a85b6]['item']['name'],_0x5a48e9[_0x3a85b6]['item']['getAttributes']());_0x1ced87[0x0]['_appendChild'](_0x2a58ac),_0x68c784['push'](0x0),_0x1ced87['unshift'](_0x2a58ac),_0x5a48e9[_0x3a85b6]['nextPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784);}else'elementEnd'===_0x5a48e9[_0x3a85b6]['type']?(_0x1ced87['shift'](),_0x5a48e9[_0x3a85b6]['previousPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784),_0x68c784['pop'](),_0x68c784[_0x68c784['length']-0x1]++,_0x5a48e9[_0x3a85b6]['nextPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784)):(_0x5a48e9[_0x3a85b6]['previousPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784),_0x5d07af?_0x5d07af['_data']+=_0x5a48e9[_0x3a85b6]['item']['data']:_0x5d07af=new gt(_0x5a48e9[_0x3a85b6]['item']['data'],_0x5a48e9[_0x3a85b6]['item']['getAttributes']()),_0x5a48e9[_0x3a85b6+0x1]&&'text'===_0x5a48e9[_0x3a85b6+0x1]['type']&&_0x7a1751(_0x5d07af,_0x5a48e9[_0x3a85b6+0x1]['item'])||(_0x1ced87[0x0]['_appendChild'](_0x5d07af),_0x5d07af=null),_0x68c784[_0x68c784['length']-0x1]+=_0x5a48e9[_0x3a85b6]['item']['offsetSize'],_0x5a48e9[_0x3a85b6]['nextPosition']=_0x578429['createPositionFromPath'](_0xd2d43a,_0x68c784));for(let _0x31aac4=0x0;_0x31aac4<_0x5a48e9['length'];_0x31aac4++){const _0x164341=_0x5a48e9[_0x31aac4]['previousPosition'],_0x43ed4d=_0x5a48e9[_0x31aac4]['nextPosition'];for(const _0x2aa401 of _0x5a48e9[_0x31aac4]['markersStart'])_0x3d5d37['set'](_0x2aa401,{'start':_0x164341,'end':null});_0x5702a9('isRemoveSuggestion',_0x31aac4,_0x164341,_0x43ed4d),_0x5702a9('isAddSuggestion',_0x31aac4,_0x164341,_0x43ed4d),_0x5702a9('isRemoved',_0x31aac4,_0x164341,_0x43ed4d),_0x5702a9('isAdded',_0x31aac4,_0x164341,_0x43ed4d);for(const _0x3f3f8c of _0x5a48e9[_0x31aac4]['markersEnd']){const _0x5ee696=_0x3d5d37['get'](_0x3f3f8c);_0x5ee696?_0x5ee696['end']=_0x43ed4d:_0x3d5d37['set'](_0x3f3f8c,{'start':_0x43ed4d,'end':_0x43ed4d});}}for(const [_0x27f26a,_0x3a3d69]of _0x3d5d37){const _0x151226=this['editor']['model']['createRange'](_0x3a3d69['start'],_0x3a3d69['end']);_0xd2d43a['markers']['set'](_0x27f26a,_0x151226);}return _0x2f4f3a['sort']((_0x58e7d5,_0x6985e8)=>{const _0x360f87=_0xd2d43a['markers']['get']('revision:'+_0x58e7d5['id']),_0x479014=_0xd2d43a['markers']['get']('revision:'+_0x6985e8['id']);return _0x360f87['start']['isBefore'](_0x479014['start'])?-0x1:_0x360f87['start']['isAfter'](_0x479014['start'])?0x1:_0x360f87['end']['isBefore'](_0x479014['end'])?-0x1:_0x360f87['end']['isAfter'](_0x479014['end'])?0x1:'add'===_0x58e7d5['type']?-0x1:0x1;}),{'root':_0xd2d43a,'changes':_0x2f4f3a};function _0x5702a9(_0x5af6a2,_0x5adde1,_0x52704c,_0x5a750d){const _0x17b236=!!_0x5a48e9[_0x5adde1][_0x5af6a2],_0x134548=_0x17b236?_0x5a48e9[_0x5adde1][_0x5af6a2]['userId']:null,_0x547ecc=_0x5adde1===_0x5a48e9['length']-0x1,_0x244a34=_0x3b21e6[_0x5af6a2][0x0],_0x41e426=_0x34628b['isObject'](_0x5a48e9[_0x5adde1]['item']);!_0x449120[_0x5af6a2]&&_0x17b236?_0x449120[_0x5af6a2]={'start':_0x52704c,'tapeItem':_0x5a48e9[_0x5adde1],'userId':_0x134548,'type':_0x5af6a2}:_0x449120[_0x5af6a2]&&!_0x17b236?(_0x449120[_0x5af6a2]['end']=_0x52704c,_0x1488a6(_0x449120[_0x5af6a2]),_0x449120[_0x5af6a2]=null):_0x449120[_0x5af6a2]&&_0x17b236&&_0x449120[_0x5af6a2]['userId']!==_0x134548&&(_0x449120[_0x5af6a2]['end']=_0x52704c,_0x244a34&&_0x244a34['userId']===_0x449120[_0x5af6a2]['userId']||_0x1488a6(_0x449120[_0x5af6a2]),_0x449120[_0x5af6a2]={'start':_0x52704c,'tapeItem':_0x5a48e9[_0x5adde1],'userId':_0x134548,'type':_0x5af6a2}),_0x449120[_0x5af6a2]&&_0x41e426&&('elementStart'!==_0x5a48e9[_0x5adde1]['type']||_0x244a34&&_0x244a34['userId']===_0x134548||_0x3b21e6[_0x5af6a2]['unshift']({'userId':_0x134548,'object':_0x5a48e9[_0x5adde1]['item'],'change':_0x449120[_0x5af6a2]}),'elementEnd'===_0x5a48e9[_0x5adde1]['type']&&_0x244a34&&_0x244a34['object']===_0x5a48e9[_0x5adde1]['item']&&(_0x3b21e6[_0x5af6a2]['shift'](),_0x449120[_0x5af6a2]=_0x244a34['change'])),_0x449120[_0x5af6a2]&&_0x547ecc&&(_0x449120[_0x5af6a2]['end']=_0x5a750d,_0x1488a6(_0x449120[_0x5af6a2]),_0x449120[_0x5af6a2]=null);}function _0x1488a6({start:_0x14b93e,end:_0x54adaf,tapeItem:_0x17e4de,userId:_0x3b2c9b,type:_0x441564}){const _0x1ddc0f=_0x17e4de['item'],_0x1d5d4b=_0x578429['schema']['isBlock'](_0x1ddc0f)&&!_0x578429['schema']['isLimit'](_0x1ddc0f),_0x40f356=_0x14b93e['nodeAfter']==_0x54adaf['parent']&&_0x54adaf['isAtStart'];if(_0x1d5d4b&&_0x40f356)return;const _0x23c574=_0x578429['createRange'](_0x14b93e,_0x54adaf),_0x4767df=_0x3b66f3['get'](_0x3b2c9b),_0x511f8b=new r({'author':_0x4767df,'type':'isAdded'==_0x441564||'isAddSuggestion'==_0x441564?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x441564||'isRemoveSuggestion'==_0x441564},'createdAt':new Date(),'rootName':_0x3b6d4f});_0x2f4f3a['push'](_0x511f8b),_0xd2d43a['markers']['set']('revision:'+_0x511f8b['id'],_0x23c574);}function _0x7a1751(_0x10f43f,_0x2016d0){const _0x1ce1cb=_0x10f43f['getAttributes'](),_0xb7dc5e=_0x2016d0['getAttributes']();for(const _0x413b79 of _0x1ce1cb){if(_0x413b79[0x1]!==_0x2016d0['getAttribute'](_0x413b79[0x0]))return!0x1;_0xb7dc5e['next']();}return _0xb7dc5e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x25f627=>{const _0x461438=_0x25f627['markerName']['split'](':')[0x1],_0x341462=this['_getChangeFromId'](_0x461438);if(!_0x341462)return null;const _0x314204='add'==_0x341462['type']?'insertion':'deletion',_0x3e2a09=['ck-suggestion-marker','ck-suggestion-marker-'+_0x314204];return _0x341462['data']['isSuggestion']&&_0x3e2a09['push']('ck-suggestion-marker-'+_0x314204+'-new'),this['activeChange']==_0x341462&&_0x3e2a09['push']('ck-suggestion-marker--active'),{'classes':_0x3e2a09,'attributes':{'data-change-id':_0x461438}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x364969=>{_0x364969['on']('element:pre',(_0x5cbe60,_0x19d2d0,_0x4bf8d8)=>{const _0x163bbe=_0x19d2d0['viewItem']['getChild'](0x0);if(!_0x163bbe||!_0x163bbe['is']('element','code'))return;if(!_0x4bf8d8['consumable']['consume'](_0x163bbe,{'attributes':['vid_start','vid_end']}))return;const _0xaeea84=_0x19d2d0['modelRange']['start']['nodeAfter'];_0x4bf8d8['writer']['setAttribute']('vid_start',_0x163bbe['getAttribute']('vid_start'),_0xaeea84),_0x4bf8d8['writer']['setAttribute']('vid_end',_0x163bbe['getAttribute']('vid_end'),_0xaeea84);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1716fe=>{_0x1716fe['on']('element',(_0x49ada0,_0x43fba3,_0x375cd)=>{if(!_0x375cd['consumable']['consume'](_0x43fba3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x43fba3['modelRange']['isCollapsed'])return;const _0x303037=_0x43fba3['modelRange']['start']['nodeAfter'];_0x303037['hasAttribute']('vid_start')||_0x303037['hasAttribute']('vid')||(_0x375cd['writer']['setAttribute']('vid_start',_0x43fba3['viewItem']['getAttribute']('vid_start'),_0x303037),_0x375cd['writer']['setAttribute']('vid_end',_0x43fba3['viewItem']['getAttribute']('vid_end'),_0x303037));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x42b1c0=>_0x42b1c0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4f7ef5,[,_0x6822f])=>{['vid_start','vid_end','vid']['includes'](_0x6822f)&&(_0x4f7ef5['return']=!0x0,_0x4f7ef5['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x240e67=>{_0x240e67['on']('attribute:vid',(_0x48fe8f,_0x5ae172,_0x59e551)=>{if('\x20'!=_0x5ae172['item']['data']||_0x5ae172['item']['parent']['maxOffset']>0x1)return;if(!_0x59e551['consumable']['consume'](_0x5ae172['item'],_0x48fe8f['name']))return;const _0x5adc95=_0x59e551['writer'],_0x508eae=_0x59e551['mapper']['toViewRange'](_0x5ae172['range']);_0x5adc95['wrap'](_0x508eae,_0x5adc95['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x49ad31){const _0x5f159b=_0x49ad31['plugins']['get']('RevisionViewer');return(_0x288dec,_0x332835,_0x21391d)=>{const _0x36b794=_0x332835['markerName']['split'](':')[0x1],_0xca2d14=_0x5f159b['_getChangeFromId'](_0x36b794);if(!_0xca2d14)return null;const _0xaceebb='add'==_0xca2d14['type']?'split':'merge';if(!_0x21391d['consumable']['test'](_0x332835['markerRange'],_0x288dec['name']))return;const _0x580531=_0x332835['markerRange']['getWalker'](),_0x415074=_0x332835['markerRange']['start'],_0x1af34d=_0x49ad31['model']['schema'];let _0x2ae96b=null,_0x577e98=null,_0x2db00c=!0x1,_0x2e9801=!0x1;for(const _0x146b0e of _0x580531){const _0x1a358d=_0x146b0e['item'];_0x2db00c=_0x2db00c||_0x1af34d['isContent'](_0x1a358d);const _0x26f4d9=_0x21391d['mapper']['toViewElement'](_0x1a358d);if(_0x26f4d9&&_0x26f4d9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x146b0e['type']&&(_0x1af34d['isBlock'](_0x1a358d)&&!_0x1af34d['isLimit'](_0x1a358d)&&(_0x1a358d['nextSibling']||_0x415074['isAtEnd']?_0x2ae96b&&_0x2ae96b['parent']==_0x1a358d||(_0x2ae96b=_0x1a358d,_0x1ace6d(_0x146b0e['previousPosition']),_0x2e9801=!0x0):_0x577e98=_0x577e98||_0x146b0e['previousPosition']));}function _0x1ace6d(_0x4f600b){const _0x2e21fb=_0x21391d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xaceebb}),_0x159085=_0x21391d['mapper']['toViewPosition'](_0x4f600b);_0xca2d14['data']['isSuggestion']&&_0x21391d['writer']['addClass']('ck-suggestion-marker-'+_0xaceebb+'-new',_0x2e21fb),_0x5f159b['activeChange']==_0xca2d14&&_0x21391d['writer']['addClass']('ck-suggestion-marker--active',_0x2e21fb),_0x21391d['writer']['insert'](_0x159085,_0x2e21fb),_0x21391d['mapper']['bindElementToMarker'](_0x2e21fb,_0x332835['markerName']);}_0x2db00c||_0x2e9801||!_0x577e98||_0x1ace6d(_0x577e98);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1ad43d,_0x302bce,_0x1bdc3f)=>{const _0x283a2a=_0x1bdc3f['mapper']['markerNameToElements'](_0x302bce['markerName']);if(_0x283a2a){for(const _0x57a2fd of _0x283a2a)(_0x57a2fd['hasClass']('ck-suggestion-marker-split')||_0x57a2fd['hasClass']('ck-suggestion-marker-merge'))&&(_0x1bdc3f['mapper']['unbindElementFromMarkerName'](_0x57a2fd,_0x302bce['markerName']),_0x1bdc3f['writer']['remove'](_0x57a2fd));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x372544,_0x22202e,_0xc86f20)=>{const _0x3724cc=_0x22202e['markerName']['split'](':')[0x1],_0x100e74=this['_getChangeFromId'](_0x3724cc);if(!_0x100e74)return null;const _0x1f8294='add'==_0x100e74['type']?'split':'merge';if(_0xc86f20['consumable']['test'](_0x22202e['markerRange'],_0x372544['name']))for(const _0x5e4aa6 of _0x22202e['markerRange']['getItems']()){if(!_0x5e4aa6['is']('element','softBreak'))continue;const _0x4c9d3e=_0xc86f20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f8294}),_0x1dac4e=_0xc86f20['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5e4aa6));_0x100e74['data']['isSuggestion']&&_0xc86f20['writer']['addClass']('ck-suggestion-marker-'+_0x1f8294+'-new',_0x4c9d3e),this['activeChange']==_0x100e74&&_0xc86f20['writer']['addClass']('ck-suggestion-marker--active',_0x4c9d3e),_0xc86f20['writer']['insert'](_0x1dac4e,_0x4c9d3e),_0xc86f20['mapper']['bindElementToMarker'](_0x4c9d3e,_0x22202e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3d28c5=>{for(const _0xeda255 of this['editor']['model']['document']['getRootNames']()){const _0x40f58d=this['editor']['model']['document']['getRoot'](_0xeda255),_0x3b825f=this['editor']['editing']['view']['document']['getRoot'](_0xeda255);if(_0x3b825f){const _0x4882ce=_0x40f58d['getAttribute']('revisionHistoryAttachChange');if(_0x3d28c5['removeAttribute']('data-change-id',_0x3b825f),_0x3d28c5['removeClass']('ck-revision-history-root-add',_0x3b825f),_0x3d28c5['removeClass']('ck-revision-history-root-remove',_0x3b825f),_0x3d28c5['removeClass']('ck-revision-history-root--active',_0x3b825f),_0x4882ce){const _0x5e216d=this['_getChangeFromId'](_0x4882ce);if(!_0x5e216d)return null;_0x3d28c5['setAttribute']('data-change-id',_0x4882ce,_0x3b825f),_0x3d28c5['addClass']('ck-revision-history-root-'+_0x5e216d['type'],_0x3b825f),this['activeChange']==_0x5e216d&&_0x3d28c5['addClass']('ck-revision-history-root--active',_0x3b825f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x157d6f=>'revision-comment:'+_0x157d6f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xe2f01f=>'revision-suggestion:'+_0xe2f01f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2d7fd8=>({'name':'suggestion:'+_0x2d7fd8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x292090=>{const _0x1d9b49=_0x292090['markerName']['split'](':')[0x1];return'insertion'!=_0x1d9b49&&'deletion'!=_0x1d9b49?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1d9b49]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x398ed2,_0x5a8ed2,_0x266b82)=>{const _0x11399a=_0x266b82['mapper']['markerNameToElements'](_0x5a8ed2['markerName']);if(_0x11399a){for(const _0x275571 of _0x11399a)_0x275571['is']('uiElement')&&(_0x266b82['mapper']['unbindElementFromMarkerName'](_0x275571,_0x5a8ed2['markerName']),_0x266b82['writer']['remove'](_0x275571));}},{'priority':'high'});}['_getChangeFromId'](_0x2df57c){return this['_changeIdToChange']['get'](_0x2df57c);}['_getViewForChange'](_0x51395c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x51395c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3aef3b,_0x578150,_0x2d9447,_0x538fc4)=>{_0x538fc4&&this['_balloon']['remove'](_0x538fc4),_0x2d9447&&(this['_balloon']['add']({'view':_0x2d9447,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x95db38=this['editor']['editing'],_0x7cc9e4=this['_getChangeFromId'](_0x2d9447['changeId']);let _0x207421;if(_0x7cc9e4['data']['isOnRoot']){const _0x14d506=_0x95db38['view']['getDomRoot'](_0x7cc9e4['rootName']);_0x207421=Array['from'](_0x14d506['getClientRects']());}else{const _0x4ac80e=this['editor']['model']['markers']['get']('revision:'+_0x2d9447['changeId']);_0x207421=Array['from'](_0x95db38['mapper']['markerNameToElements'](_0x4ac80e['name']))['map'](_0x5596b3=>_0x95db38['view']['domConverter']['mapViewToDom'](_0x5596b3))['map'](_0x28c3d2=>Array['from'](_0x28c3d2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x207421[0x0];return _0x207421['find'](_0xb51ea7=>_0xb51ea7['top']-0x3<=this['_activeViewTarget']['y']&&_0xb51ea7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xb51ea7['left']-0x3<=this['_activeViewTarget']['x']&&_0xb51ea7['right']+0x3>=this['_activeViewTarget']['x'])||_0x207421[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x304ace,_0x4fb151,_0x39c028,_0x4f85f6)=>{this['activeView']=_0x39c028?this['_getViewForChange'](_0x39c028):null,this['editor']['model']['change'](()=>{const _0x17cf83=this['editor']['editing'];_0x4f85f6&&(_0x4f85f6['data']['isOnRoot']?_0x17cf83['view']['change'](_0x2ec353=>{_0x2ec353['removeClass']('ck-revision-history-root--active',_0x17cf83['view']['document']['getRoot'](_0x4f85f6['rootName']));}):_0x17cf83['reconvertMarker']('revision:'+_0x4f85f6['id'])),_0x39c028&&(_0x39c028['data']['isOnRoot']?_0x17cf83['view']['change'](_0x487f33=>{_0x487f33['addClass']('ck-revision-history-root--active',_0x17cf83['view']['document']['getRoot'](_0x39c028['rootName']));}):_0x17cf83['reconvertMarker']('revision:'+_0x39c028['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5b465e,_0x18b64b)=>{if(this['activeChange'])return;const _0x23c4cc=this['_findChangeIdFromDomTarget'](_0x18b64b['target']),_0x251809=this['_changeIdToChange']['get'](_0x23c4cc);_0x251809?(this['_activeViewTarget']={'x':_0x18b64b['domEvent']['x'],'y':_0x18b64b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x251809)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x191bb1,_0x52464a)=>{const _0x5e42ae=this['_findChangeIdFromDomTarget'](_0x52464a['target']),_0x46ca6d=this['_changeIdToChange']['get'](_0x5e42ae);_0x46ca6d?(this['_activeViewTarget']={'x':_0x52464a['domEvent']['x'],'y':_0x52464a['domEvent']['y']},_0x46ca6d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x46ca6d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2a98aa){do{const _0x184861=_0x2a98aa['getAttribute']('data-change-id');if(_0x184861)return _0x184861;_0x2a98aa=_0x2a98aa['parent'];}while(_0x2a98aa);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x103f89=>{for(const _0x2c9fd2 of this['editor']['model']['markers'])_0x103f89['removeMarker'](_0x2c9fd2);});}}function X(_0x171f67,_0x4f2030){return(_0xb4ba05,_0x225713,_0x51fb24)=>{if(!_0x51fb24['consumable']['test'](_0x225713['markerRange'],_0xb4ba05['name']))return;const _0x3401c0=_0x225713['markerRange']['getWalker'](),_0x3c0c0b=_0x225713['markerRange']['start'],_0x48da4d=_0x171f67['model']['schema'];let _0x126118=null,_0x193d99=null,_0x3e0d39=!0x1,_0x336e3d=!0x1;for(const _0x4b05f1 of _0x3401c0){const _0x5ef184=_0x4b05f1['item'];_0x3e0d39=_0x3e0d39||_0x48da4d['isContent'](_0x5ef184);const _0x18ed95=_0x51fb24['mapper']['toViewElement'](_0x5ef184);if(_0x18ed95&&_0x18ed95['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b05f1['type']&&(_0x48da4d['isBlock'](_0x5ef184)&&!_0x48da4d['isLimit'](_0x5ef184)&&(_0x5ef184['nextSibling']||_0x3c0c0b['isAtEnd']?_0x126118&&_0x126118['parent']==_0x5ef184||(_0x126118=_0x5ef184,_0x2028a4(_0x4b05f1['previousPosition']),_0x336e3d=!0x0):_0x193d99=_0x193d99||_0x4b05f1['previousPosition']));}function _0x2028a4(_0x17785f){const _0x1eaee2=_0x51fb24['mapper']['toViewPosition'](_0x17785f),_0x78e631=_0x51fb24['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4f2030});_0x51fb24['writer']['insert'](_0x1eaee2,_0x78e631),_0x51fb24['mapper']['bindElementToMarker'](_0x78e631,_0x225713['markerName']);}_0x3e0d39||_0x336e3d||!_0x193d99||_0x2028a4(_0x193d99);};}class mt extends _0x2e4eef{constructor(_0x3499eb){super(_0x3499eb);const _0x55ba99=_0x3499eb['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x55ba99,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x55ba99,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x47c49a=this['editor'],_0x17603b=_0x47c49a['plugins']['get'](m),_0x5a198a=_0x17603b['isReady']?_0x17603b['diff']['newRevisionId']:null;_0x47c49a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5a198a);}['refresh'](){const {isReady:_0x3ca394,isEnabled:_0x15e930,repository:_0x2e0e27,diff:_0x2dc920}=this['editor']['plugins']['get'](m),_0x352519=_0x2dc920&&_0x2e0e27['getLaterVisibleRevision'](_0x2dc920['newRevisionId']);this['isEnabled']=_0x3ca394&&_0x15e930&&Boolean(_0x352519);}}class wt extends _0x2e4eef{['_step'];constructor(_0x3a3c8b,{direction:_0x394474}){super(_0x3a3c8b);const _0x1862e6=_0x3a3c8b['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x394474?0x1:-0x1,this['listenTo'](_0x1862e6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1862e6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1862e6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3c626b=this['editor'],_0x38fff1=_0x3c626b['plugins']['get'](m),{isNavigationMode:_0x3cae4a,currentChangeNumber:_0x1e8a39}=_0x38fff1;let _0xf3be10;if(_0x38fff1['activeChange']=_0x3cae4a?_0x38fff1['diff']['changes']['get'](_0x1e8a39+this['_step']):_0x38fff1['diff']['changes']['first'],_0x38fff1['activeChange']['data']['isOnRoot'])_0xf3be10=_0x3c626b['editing']['view']['getDomRoot'](_0x38fff1['activeChange']['rootName']);else{const _0x11347a=_0x3c626b['model']['markers']['get']('revision:'+_0x38fff1['activeChange']['id']);_0xf3be10=_0x8cde1b(_0x3c626b['editing'],_0x11347a);}_0xaaa48({'target':_0xf3be10,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x360685,currentChangeNumber:_0x29d0f8,numberOfChanges:_0x2c093d,isReady:_0x33873f,isEnabled:_0x210a1a}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x210a1a&&_0x33873f&&_0x2c093d)&&(!_0x360685||(0x1===this['_step']?_0x29d0f8<_0x2c093d-0x1:_0x29d0f8>0x0));}}class di extends ts{constructor(_0x11787e){super(_0x11787e);const _0x5d67b0=this['bindTemplate'],_0x174576=new te(_0x11787e),_0x5702a1=new te(_0x11787e);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',(_0x44753d,_0x3c615b)=>_0x44753d&&_0x3c615b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x38f753,_0x5dc35a,_0x3882d8,_0x1c7486)=>{if(!_0x38f753)return g(_0x11787e,'Loading...');if(!_0x3882d8)return g(_0x11787e,'No\x20changes');const _0x2d1873=g(_0x11787e,'NUMBER_OF_CHANGES',_0x3882d8);return _0x1c7486?g(_0x11787e,'X_OF_Y_CHANGES',[_0x5dc35a+0x1,_0x3882d8]):_0x2d1873;}),_0x174576['set']({'label':g(_0x11787e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2b49d1}),_0x5702a1['set']({'label':g(_0x11787e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x538803}),_0x174576['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5702a1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x174576['on']('execute',()=>this['fire']('execute','backward')),_0x5702a1['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',_0x5d67b0['if']('_isStatusLabelVisible','ck-hidden',_0x42b017=>!_0x42b017)]},'children':[{'text':_0x5d67b0['to']('isNavigationMode',_0x21e408=>_0x21e408?g(_0x11787e,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x11787e,'Total')+':\x20')}]},{'text':_0x5d67b0['to']('_statusText')}]},new _0x4cdae1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x174576,_0x5702a1]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x294c95{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x27fcd7=this['editor']['editing']['view'];_0x27fcd7['change'](_0xe43655=>{for(const _0x2969e2 of _0x27fcd7['document']['roots'])_0xe43655['addClass'](le,_0x2969e2);});}['hide'](){const _0x3f06a0=this['editor']['editing']['view'];_0x3f06a0['change'](_0x5e653d=>{for(const _0x405f6b of _0x3f06a0['document']['roots'])_0x5e653d['removeClass'](le,_0x405f6b);});}}class R extends _0x294c95{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x195af3=this['editor'],_0x406a50=_0x195af3['plugins']['get'](m),_0x318cf6=_0x195af3['plugins']['get'](de);_0x195af3['ui']['componentFactory']['add']('exitToEditing',_0x5118d2=>{const _0x50160f=new te(_0x5118d2);return _0x50160f['set']({'label':g(_0x5118d2,'Back\x20to\x20editing'),'icon':_0x2a2057,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x50160f,'execute',()=>{_0x195af3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x50160f;}),_0x195af3['ui']['componentFactory']['add']('restoreRevision',_0x36a291=>{const _0x10d3a1=new te(_0x36a291);return _0x10d3a1['set']({'label':g(_0x36a291,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x10d3a1['bind']('isEnabled')['to'](_0x195af3['commands']['get']('restoreRevision')),this['listenTo'](_0x10d3a1,'execute',()=>_0x195af3['execute']('restoreRevision')),_0x10d3a1;}),_0x195af3['ui']['componentFactory']['add']('changesNavigation',_0x1b87a4=>{const _0x186604=new di(_0x1b87a4),_0x5042fb=_0x195af3['commands']['get']('showPreviousChange'),_0x1d5d32=_0x195af3['commands']['get']('showNextChange');return _0x186604['bind']('isBackwardNavigationEnabled')['to'](_0x5042fb,'isEnabled'),_0x186604['bind']('isForwardNavigationEnabled')['to'](_0x1d5d32,'isEnabled'),_0x186604['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x406a50),this['listenTo'](_0x186604,'execute',(_0x76552e,_0x4a9845)=>{_0x195af3['execute']('forward'===_0x4a9845?'showNextChange':'showPreviousChange');}),_0x186604;}),_0x318cf6['show'](),_0x406a50['on']('change:isReady',(_0x1b57e4,_0xf8012b,_0x22ef59)=>{_0x22ef59?_0x318cf6['hide']():_0x318cf6['show']();});}}class at extends _0x5c3265{['_resizeObserver']=null;constructor(_0xde6b54,_0x5af44d){super(_0xde6b54,_0x5af44d);const _0x56d9a7=this['bindTemplate'];this['set']({'label':g(_0xde6b54,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0xde6b54,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x56d9a7['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4579bc=this['fieldView']['element'];this['_tooltipString']=_0x4579bc['scrollWidth']>_0x4579bc['clientWidth']&&_0x4579bc['value']||'';}}class si extends ts{constructor(_0x4e1516,_0x3df524,_0x989416){super(_0x4e1516);const _0x462beb=new _0x535fd4();_0x462beb['set']({'content':_0x1d542d,'viewBox':'0\x200\x2011\x2010'});const _0x4d9a4a=['ck','ck-revision-history-sidebar__revision-author'];_0x989416&&_0x4d9a4a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x8b1603=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4e1516,_0x989416?'Revision\x20creator':'Revision\x20author')},'children':[_0x462beb,_0x3df524['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4d9a4a},'children':_0x8b1603});}}function oi(_0x4ad00a,_0x33af60){const _0x24af15=_0x4ad00a['bindTemplate'],_0x1ac738=_0x4ad00a['locale'],_0x5a8ddf=_0x39253b(_0x1ac738);_0x5a8ddf['panelPosition']='sw';const _0x4d7f7b=function(_0x18f14f,_0x57c74f){const _0x1527c4=function(_0x3a93cc,_0x36c149){const _0xac7818=_0x3a93cc['locale'],_0x1191fd={'Compare\x20against\x20selected':g(_0xac7818,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0xac7818,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0xac7818,'Restore\x20this\x20revision')};return _0x36c149['map'](_0x1c7f99=>{const _0x3a5664=_0x1191fd[_0x1c7f99['name']];return _0x3a5664&&_0x3a5664!==_0x1c7f99['name']&&(_0x1c7f99['name']=_0x3a5664),_0x1c7f99;});}(_0x18f14f,_0x57c74f),_0x4fe8d7=new _0x1bc032();for(const _0x18cd56 of _0x1527c4){const _0x54f04a={'type':'button','model':new to({'label':_0x18cd56['name'],'class':_0x18cd56['class'],'withText':!0x0,'role':'menuitem','_action':_0x18cd56['action']})};_0x54f04a['model']['bind']('isEnabled')['to'](_0x18f14f,'isActionsDropdownOpen',_0xcd404b=>'function'!=typeof _0x18cd56['isEnabled']||(!_0xcd404b||_0x18cd56['isEnabled'](_0x18f14f))),_0x4fe8d7['add'](_0x54f04a);}return _0x4fe8d7;}(_0x4ad00a,_0x33af60);return _0x4ad00a['bind']('isActionsDropdownOpen')['to'](_0x5a8ddf,'isOpen'),_0x5a8ddf['buttonView']['set']({'label':g(_0x1ac738,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xcb5707}),_0x5a8ddf['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x24af15['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x24af15['to'](_0x5982ae=>_0x5982ae['stopPropagation']())}}),_0x5a8ddf['on']('execute',_0x2dc96d=>{_0x4ad00a['isReady']&&'function'==typeof _0x2dc96d['source']['_action']&&_0x2dc96d['source']['_action'](_0x4ad00a);}),_0x12d551(_0x5a8ddf,_0x4d7f7b,{'role':'menu'}),_0x5a8ddf['listenTo'](_0x4ad00a,'change:isActionsDropdownOpen',(_0x3c52f6,_0x84fdea,_0x13f9c6)=>{if(_0x13f9c6)for(const _0x4ff460 of _0x5a8ddf['listView']['items']){const _0x43f9be=_0x4ff460['children']['first'],_0x1d51c7=_0x33af60['find'](_0x17bf7c=>_0x17bf7c['action']===_0x43f9be['_action'])['isVisible'];_0x4ff460['isVisible']=void 0x0===_0x1d51c7||_0x1d51c7(_0x4ad00a);}}),_0x5a8ddf;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x41d42c,_0x4d6407,_0x167e10,_0x1a9471){super(_0x41d42c);const _0x3c765b=this['bindTemplate'],_0x33c6ac=function(_0x59e121,_0x45866c){const _0x3ae573=Array['from'](_0x45866c['authors'])['filter'](_0x2a187f=>_0x2a187f!=_0x45866c['creator']);return _0x45866c['creator']&&_0x3ae573['unshift'](_0x45866c['creator']),_0x3ae573['map'](_0x2662b5=>new si(_0x59e121,_0x2662b5,_0x2662b5==_0x45866c['creator']));}(_0x41d42c,_0x4d6407);this['id']=_0x4d6407['id'],this['_revision']=_0x4d6407,this['_requireRevisionName']=_0x1a9471,this['bind']('name','createdAt')['to'](_0x4d6407),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2dd001=>{return _0x369ea1=_0x41d42c['uiLanguage'],(_0x3e00fb=_0x2dd001)['toLocaleDateString'](_0x369ea1,{'month':'long','day':'numeric'})+',\x20'+_0x3e00fb['toLocaleTimeString'](_0x369ea1,{'hour':'numeric','minute':'numeric'});var _0x369ea1,_0x3e00fb;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x41d42c,_0x8970f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x385272=>_0x385272||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x22681a,_0x3570a7)=>_0x22681a&&_0x3570a7),this['revisionActionsView']=_0x167e10&&_0x167e10['length']?oi(this,_0x167e10):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3c765b['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3c765b['if']('isEnabled','ck-disabled',_0x167c60=>!_0x167c60),_0x3c765b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3c765b['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3c765b['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':_0x3c765b['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':_0x33c6ac}]},this['revisionActionsView']],'on':{'click':_0x3c765b['to'](_0x993c65=>{_0x993c65['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x559383=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x559383,'change',()=>{this['_requireRevisionName']&&!_0x559383['value']||this['fire']('setName',{'id':this['id'],'name':_0x559383['value']}),_0x559383['value']||(_0x559383['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x1c4198,_0x4bd7a6){const _0x2d0566=_0x43fc8f['fromJSDate'](_0x1c4198)['setLocale'](_0x4bd7a6),_0x2c86cd=_0x43fc8f['local'](),_0x172fb3=_0x2c86cd['minus']({'days':0x1})['startOf']('day');let _0x3d4062,_0x18dfee;return _0x2d0566['hasSame'](_0x2c86cd,'day')?(_0x3d4062=_0x2d0566['startOf']('day')['toJSDate'](),_0x18dfee=_0x2d0566['toRelativeCalendar']()):_0x2d0566['hasSame'](_0x172fb3,'day')?(_0x3d4062=_0x172fb3['toJSDate'](),_0x18dfee=_0x2d0566['toRelativeCalendar']()):_0x2d0566['hasSame'](_0x2c86cd,'week')?(_0x3d4062=_0x2d0566['startOf']('week')['toJSDate'](),_0x18dfee=_0x2d0566['weekdayLong']||''):_0x2d0566['hasSame'](_0x2c86cd,'year')?(_0x3d4062=_0x2d0566['startOf']('month')['toJSDate'](),_0x18dfee=_0x2d0566['monthLong']||''):(_0x3d4062=_0x2d0566['startOf']('year')['toJSDate'](),_0x18dfee=String(_0x2d0566['year'])),{'startDate':_0x3d4062,'localizedPeriodName':_0x18dfee};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x198a1b,_0xba5700,_0x598315,_0x564a68){super(_0x198a1b);const _0x1b06e3=vi(_0xba5700,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xba5700,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x598315,this['_requireRevisionName']=_0x564a68,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':_0x1b06e3}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x56514d){const _0x5c6399=new hi(this['locale'],_0x56514d,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5c6399);}['removeRevision'](_0x5ce378){const _0x134cc7=this['revisionViews']['find'](_0x247867=>_0x247867['id']===_0x5ce378['id']);this['revisionViews']['remove'](_0x134cc7);}}class as extends ts{constructor(_0xdcdfd1){super(_0xdcdfd1);const _0x3817c1=new _0x535fd4();_0x3817c1['content']=_0x5eca74,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3817c1,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xdcdfd1,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2b9cd9,_0x17dd7b,_0x21875e,_0x40d25f){super(_0x2b9cd9);const _0x4fd68f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x17dd7b,this['_revisionActions']=_0x21875e,this['_requireRevisionName']=_0x40d25f,this['on']('select',(_0x28a110,_0x16c475)=>{this['fire']('revisionSelected',_0x16c475);}),this['on']('setName',(_0x7d7fd4,_0x354869)=>{this['fire']('revisionSetName',_0x354869);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2b9cd9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4fd68f['if']('isEnabled','ck-disabled',_0x1ea926=>!_0x1ea926)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1c379b of this['_revisions'])this['_addRevision'](_0x1c379b);this['_revisions']['on']('add',(_0xb1615e,_0x363dee)=>{this['_addRevision'](_0x363dee);}),this['_revisions']['on']('remove',(_0x4b5398,_0x1880a9)=>{this['_removeRevision'](_0x1880a9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5aaa2f=>_0x5aaa2f['revisionViews']['map'](_0x4033dc=>_0x4033dc))['flat']();}['selectRevision'](_0x575074){for(const _0x1368a7 of this['revisionViews'])_0x575074&&_0x575074['id']===_0x1368a7['id']?_0x1368a7['select']():_0x1368a7['deselect']();}['highlightRevisions'](_0x6eb9bf){for(const _0x41b634 of this['revisionViews'])_0x6eb9bf['some'](({id:_0x5b61dd})=>_0x5b61dd===_0x41b634['id'])?_0x41b634['highlight']():_0x41b634['unhighlight']();}['_addRevision'](_0x2240d5){const _0x16672e=vi(_0x2240d5['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4c3d2f=this['timePeriodViews']['get'](0x0);_0x4c3d2f&&_0x4c3d2f['startDate']['getTime']()===_0x16672e['getTime']()||(_0x4c3d2f=new mi(this['locale'],_0x16672e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4c3d2f)),_0x4c3d2f['addRevision'](_0x2240d5);}['_removeRevision'](_0x17887c){const _0x523b6b=vi(_0x17887c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x523b6b)['removeRevision'](_0x17887c);}['_getTimePeriodViewByStartDate'](_0x4f4fa6){return this['timePeriodViews']['find'](_0x429010=>_0x429010['startDate']['getTime']()===_0x4f4fa6['getTime']());}}class d extends _0x294c95{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x38f044){super(_0x38f044),this['_revisionViewer']=_0x38f044['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x125ba1=this['_revisionsRepository']['_revisions'],_0x3df4ad=this['_createRevisionActions'](),_0x3cd3f7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x125ba1,_0x3df4ad,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',(_0x452ce1,_0x59cc61)=>{_0x59cc61['revisionViews']['on']('add',(_0x4a65ba,_0xf400d5)=>{_0xf400d5['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)),_0x3cd3f7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1a2b81=this['_revisionsRepository']['getRevision'](0x0);if(_0x1a2b81){const _0xdf10a8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1a2b81['id']);this['_revisionViewer']['compare'](_0x1a2b81,_0xdf10a8);}}['_handleRevisionSelected'](_0x15c09f,_0x13b136){const _0x60dda8=this['_revisionsRepository']['getRevision'](_0x13b136['id']),_0x2aa374=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x60dda8['id']);this['_revisionViewer']['compare'](_0x60dda8,_0x2aa374);}['_handleRevisionSetName'](_0x2e0532,_0x2ce658){this['_revisionsRepository']['getRevision'](_0x2ce658['id'])['setName'](_0x2ce658['name']);}['_handleDiffChange'](_0x58d6a6,_0x346318,_0x39c737){const _0x128720=this['_revisionsRepository']['getRevisionsInDiff'](_0x39c737);_0x128720['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x128720),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x128720[0x0]));}['_createRevisionActions'](){const _0x2edd7d=this['editor'],_0x42bfa9=d['availableRevisionActions'],_0x55a577=_0x2edd7d['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x55a577['length'])return _0x55a577['map'](_0x3d3f09=>{const _0x57df4c='string'==typeof _0x3d3f09?Object['assign']({},_0x42bfa9[_0x3d3f09]):_0x3d3f09;return _0x57df4c['action']=_0x57df4c['action']['bind'](this,_0x2edd7d),_0x57df4c['isVisible']&&(_0x57df4c['isVisible']=_0x57df4c['isVisible']['bind'](this,_0x2edd7d)),_0x57df4c;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ea6ce},_0x221a8b)=>{const _0x5904f5=_0x5ea6ce['get'](m),_0x1d8664=_0x5904f5['repository'];let _0x586f8d=_0x5904f5['diff']['newRevisionId'],_0x3e3cfb=_0x221a8b['id'];_0x1d8664['getIndex'](_0x586f8d)>_0x1d8664['getIndex'](_0x3e3cfb)&&([_0x586f8d,_0x3e3cfb]=[_0x3e3cfb,_0x586f8d]),_0x5904f5['compare'](_0x586f8d,_0x3e3cfb);},'isVisible':({plugins:_0x42d988},_0x3d5069)=>{const _0xbfb2d5=_0x42d988['get'](m);return!(_0xbfb2d5['repository']['getRevisionsInDiff'](_0xbfb2d5['diff'])['length']>0x2)&&!_0x3d5069['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x190138,{id:_0x24dbfa})=>{_0x190138['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x24dbfa);},'isVisible':({plugins:_0x32bf52},_0x1ce2d0)=>!!_0x32bf52['get'](m)['repository']['getLaterVisibleRevision'](_0x1ce2d0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x39a588},{id:_0x22d3a6,revisionNameView:_0x2a4fc6})=>{const _0x247afb=_0x39a588['get'](m),_0x25692d=_0x247afb['repository']['getEarlierVisibleRevision'](_0x22d3a6);_0x247afb['compare'](_0x22d3a6,_0x25692d),_0x2a4fc6['focus'](),_0x2a4fc6['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5fe99a,_0x393d92){super(_0x5fe99a),this['_view']=_0x393d92,this['_toolbarConfig']=et(_0x5fe99a['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4224f3){const _0xa585f0=this['editor'],_0x5a3b84=this['view'],_0x5d51c1=_0xa585f0['editing']['view'],_0x5f0138=_0x5a3b84['editable'],_0x36ecfe=_0x5d51c1['document']['getRoot']();_0x5f0138['name']=_0x36ecfe['rootName'],_0x5a3b84['render']();const _0x5e6778=_0x5f0138['element'];this['setEditableElement'](_0x5f0138['name'],_0x5e6778),_0x5a3b84['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5d51c1['attachDomRoot'](_0x5e6778),this['_elementReplacer']['replace'](_0x4224f3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x358c59=this['view'],_0x28c36f=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x28c36f['detachDomRoot'](_0x358c59['editable']['name']),_0x358c59['destroy']();}['_initToolbar'](){const _0x47f439=this['view'];_0x47f439['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x47f439['stickyPanel']['limiterElement']=_0x47f439['element'],_0x47f439['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x37bfb2})=>_0x37bfb2),_0x47f439['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x47f439['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1ebbff,_0x516912,_0x5cf9bf={}){super(_0x1ebbff),this['stickyPanel']=new ht(_0x1ebbff),this['toolbar']=new dt(_0x1ebbff,{'shouldGroupWhenFull':_0x5cf9bf['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x1ebbff,_0x516912);}['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
- _0x40797a(_0x3664be){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x19f4a4,_0x1da438){super(_0x1da438),this['sourceElement']=_0x19f4a4,this['model']['document']['createRoot']();const _0x16c337=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x16c337);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x57f482,_0x3cd7e3){const _0x496d55=new this(_0x57f482,_0x3cd7e3);return await _0x496d55['initPlugins'](),await _0x496d55['ui']['init'](_0x57f482),await _0x496d55['data']['init'](_0x496d55['config']['get']('initialData')||''),_0x496d55['fire']('ready'),_0x496d55;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x3ba875{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b0cab){function _0x218d8c(_0x2b700f){return _0x2b700f['map'](_0x4d99c2=>String['fromCharCode'](_0x4d99c2))['join']('');}super(_0x5b0cab),this['result']='end',_0x5b0cab[_0x218d8c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x218d8c([0x76,0x69,0x65,0x77])][_0x218d8c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x218d8c([0x61,0x75,0x74,0x6f]),_0x5b0cab[_0x218d8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x218d8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x218d8c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x218d8c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x218d8c([0x6f,0x6b])});}}class k extends _0x3ba875{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x5c3827){if(super(_0x5c3827),!this['editor']['config']['get']('revisionHistory'))throw new _0xdb6012('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5335d5=>this['_showRevisionViewer']({..._0x5335d5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2eb10e=>this['_closeRevisionViewer'](_0x2eb10e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x509e1f=>this['_restoreRevision'](_0x509e1f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x22ad10){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x22ad10;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2f1d24){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2f1d24);}['getRevision'](_0x66a1af){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x66a1af);}['getRevisions'](_0x53e0fb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x53e0fb||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x350870=this['editor'],_0x460c04=_0x22bf10(_0x350870,p),_0x94bd7b=_0x350870['plugins']['get']('RevisionTracker'),_0xa2fe98=_0x350870['plugins']['get']('Users')['users'];return _0x460c04['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x460c04['lazyRoots'],(_0x460c04['plugins']['push'](yt,m,R,class extends _0x3ba875{static get['requires'](){return[m,'Users'];}['init'](){const _0x252484=this['editor']['plugins']['get']('Users');for(const _0xb752e3 of _0xa2fe98)_0xb752e3['isAnonymous']||_0x252484['getUser'](_0xb752e3['id'])||_0x252484['addUser'](_0xb752e3);const _0x28bd8e=_0x94bd7b['repository']['getRevisions']();let _0x4c2298=null;const _0x26cc66=this['editor']['plugins']['get']('RevisionViewer');_0x26cc66['adapter']=_0x94bd7b['adapter'],_0x26cc66['bind']('isEnabled')['to'](_0x94bd7b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x350870,'isReadOnly',_0x36a4ad=>!_0x36a4ad);for(const _0x2a1214 of _0x28bd8e){const _0x138b99=null===_0x2a1214['creator'];if(_0x138b99&&_0x2a1214['toVersion']===_0x2a1214['fromVersion'])continue;const _0x1274ca=_0x2a1214['toJSON']();_0x26cc66['addRevisionData'](_0x1274ca,(_0x14e11f,_0x35169e,_0x2a2fc0)=>{if(_0x138b99){if(_0x4c2298)_0x4c2298['_update'](_0x14e11f,_0x35169e);else{if(!_0x35169e){const _0x38596f=_0x2a2fc0['toJSON']();_0x38596f['id']=_0x58b8ff(),_0x94bd7b['saveRevision'](_0x38596f,_0x2a2fc0['toVersion'])['then'](_0x1fd5be=>{_0x4c2298=_0x1fd5be;});}}}else _0x2a1214['_update'](_0x14e11f,_0x35169e);});}}},d),_0x460c04);}['_enhanceShowRevisionViewerCallback'](){const _0x26df62=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1421ab=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x30876b=this['editor']['plugins']['get']('Autosave');await _0x30876b['save']();}else await _0x1421ab['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x20aacc=this['editor']['plugins']['get']('Dialog');_0x20aacc['isOpen']&&_0x20aacc['hide']();}const _0x107280=this['_getRevisionViewerEditorConfig']();return _0x26df62(_0x107280)['then'](_0x5c1341=>{return(this['_viewerEditor']=_0x5c1341,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x5c1341);})['catch'](_0x5e5662=>(console['error'](_0x5e5662),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4ca37c=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4ca37c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x53e591=this['editor']['plugins']['get']('Annotations');_0x53e591['refreshVisibility'](),_0x53e591['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3afc44){const _0x4774bb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3d6903=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xe346ee=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xe346ee,_0x3afc44)['then'](_0x1f32c6=>(_0x3d6903['style']['display']='block',_0x4774bb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1f32c6));}['_closeRevisionViewer'](_0x4fd397){const _0x5386c0=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5386c0['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4fd397['destroy']();}async['_restoreRevision'](_0x3fcc9d){const _0x4dd00d=this['editor'],_0x5b82e0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x6c1573=_0x4dd00d['plugins']['get']('RevisionTracker'),_0x15091a=_0x4dd00d['plugins']['get']('RevisionHistoryUtils'),_0x1d99bd=_0x5b82e0['repository']['getRevision'](_0x3fcc9d);let _0x3b0ca8,_0x435a4d,_0x1dbf76;try{await _0x15091a['loadRevisionData'](_0x1d99bd,this['adapter']),_0x3b0ca8=_0x15091a['getRevisionDocumentData'](_0x1d99bd),_0x435a4d=_0x15091a['getRevisionRootsAttributes'](_0x1d99bd);}catch(_0x464afd){return void console['error'](_0x464afd);}_0x4dd00d['model']['change'](_0x457c12=>{for(const _0x101c02 of Array['from'](_0x4dd00d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x457c12['removeMarker'](_0x101c02);}),_0x5b82e0['isReady']=!0x1,_0x4dd00d['model']['enqueueChange'](_0x2ab8c1=>{_0x2ab8c1['setSelection'](null),_0x2ab8c1['removeSelectionAttribute'](_0x4dd00d['model']['document']['selection']['getAttributeKeys']());const _0x2594b0=Object['keys'](_0x3b0ca8);for(const _0x1f455b of _0x4dd00d['model']['document']['roots'])'$graveyard'!=_0x1f455b['rootName']&&_0x1f455b['isAttached']()&&!_0x2594b0['includes'](_0x1f455b['rootName'])&&_0x2ab8c1['detachRoot'](_0x1f455b);for(const _0x395cd3 of _0x2594b0){let _0x4acc21=_0x4dd00d['model']['document']['getRoot'](_0x395cd3);_0x4acc21&&_0x4acc21['isAttached']()||(_0x4acc21=_0x2ab8c1['addRoot'](_0x395cd3));const _0x3c6e75=_0x435a4d[_0x395cd3],_0x84fe9b=Object['keys'](_0x3c6e75),_0x24bf1f=_0x3b0ca8[_0x395cd3];for(const _0x21aca2 of _0x4acc21['getAttributeKeys']())_0x84fe9b['includes'](_0x21aca2)||_0x2ab8c1['removeAttribute'](_0x21aca2,_0x4acc21);for(const _0x122080 of _0x84fe9b)_0x2ab8c1['setAttribute'](_0x122080,_0x435a4d[_0x395cd3][_0x122080],_0x4acc21);_0x2ab8c1['remove'](_0x2ab8c1['createRangeIn'](_0x4acc21)),_0x2ab8c1['insert'](_0x4dd00d['data']['parse'](_0x24bf1f,_0x4acc21),_0x4acc21,0x0);}});const _0x4aab98=g(_0x4dd00d['locale'],'Restored');if(_0x1d99bd['name'])_0x1dbf76=-0x1==_0x1d99bd['name']['indexOf'](_0x4aab98)?_0x4aab98+':\x20'+_0x1d99bd['name']:_0x1d99bd['name'];else _0x1dbf76=_0x4aab98+':\x20'+(_0x1d99bd['createdAt']['toLocaleDateString'](_0x4dd00d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1d99bd['createdAt']['toLocaleTimeString'](_0x4dd00d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x6c1573['saveRevision']({'name':_0x1dbf76}),_0x5b82e0['isReady']=!0x0,_0x4dd00d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x244b95){super(_0x244b95),this['_revisionViewer']=_0x244b95['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x36a71e=this['_revisionsRepository']['_revisions'],_0x1d7754=this['_createRevisionActions'](),_0x4afcff=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x36a71e,_0x1d7754,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',(_0x2b23e0,_0x4a0834)=>{_0x4a0834['revisionViews']['on']('add',(_0x3e1606,_0x397929)=>{_0x397929['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)),_0x4afcff['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xc4a0a=this['_revisionsRepository']['getRevision'](0x0);if(_0xc4a0a){const _0x252c68=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xc4a0a['id']);this['_revisionViewer']['compare'](_0xc4a0a,_0x252c68);}}['_handleRevisionSelected'](_0x18baad,_0xd5f17b){const _0x586bdd=this['_revisionsRepository']['getRevision'](_0xd5f17b['id']),_0x119dc7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x586bdd['id']);this['_revisionViewer']['compare'](_0x586bdd,_0x119dc7);}['_handleRevisionSetName'](_0x4e9a6d,_0x4398ad){this['_revisionsRepository']['getRevision'](_0x4398ad['id'])['setName'](_0x4398ad['name']);}['_handleDiffChange'](_0x4c6455,_0xde874e,_0x4f5b30){const _0x41be23=this['_revisionsRepository']['getRevisionsInDiff'](_0x4f5b30);_0x41be23['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x41be23),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x41be23[0x0]));}['_createRevisionActions'](){const _0x34975b=this['editor'],_0xcf7443=d['availableRevisionActions'],_0x1aed2d=_0x34975b['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x1aed2d['length'])return _0x1aed2d['map'](_0x480556=>{const _0x2b13ad='string'==typeof _0x480556?Object['assign']({},_0xcf7443[_0x480556]):_0x480556;return _0x2b13ad['action']=_0x2b13ad['action']['bind'](this,_0x34975b),_0x2b13ad['isVisible']&&(_0x2b13ad['isVisible']=_0x2b13ad['isVisible']['bind'](this,_0x34975b)),_0x2b13ad;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x537cbb},_0x5ece83)=>{const _0x1616bf=_0x537cbb['get'](m),_0x59b5ea=_0x1616bf['repository'];let _0x203931=_0x1616bf['diff']['newRevisionId'],_0x1c9bec=_0x5ece83['id'];_0x59b5ea['getIndex'](_0x203931)>_0x59b5ea['getIndex'](_0x1c9bec)&&([_0x203931,_0x1c9bec]=[_0x1c9bec,_0x203931]),_0x1616bf['compare'](_0x203931,_0x1c9bec);},'isVisible':({plugins:_0x2715f2},_0x29cb75)=>{const _0x5bd371=_0x2715f2['get'](m);return!(_0x5bd371['repository']['getRevisionsInDiff'](_0x5bd371['diff'])['length']>0x2)&&!_0x29cb75['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x426997,{id:_0x4495dc})=>{_0x426997['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4495dc);},'isVisible':({plugins:_0x5f1c13},_0x1af862)=>!!_0x5f1c13['get'](m)['repository']['getLaterVisibleRevision'](_0x1af862['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5f3352},{id:_0x3d35e0,revisionNameView:_0x3db86d})=>{const _0x404711=_0x5f3352['get'](m),_0xb3ee91=_0x404711['repository']['getEarlierVisibleRevision'](_0x3d35e0);_0x404711['compare'](_0x3d35e0,_0xb3ee91),_0x3db86d['focus'](),_0x3db86d['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x576582,_0x1144f6){super(_0x576582),this['_view']=_0x1144f6,this['_toolbarConfig']=et(_0x576582['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0xd24607){const _0x18db35=this['editor'],_0x5670f1=this['view'],_0x24de58=_0x18db35['editing']['view'],_0x3fc016=_0x5670f1['editable'],_0x2304c5=_0x24de58['document']['getRoot']();_0x3fc016['name']=_0x2304c5['rootName'],_0x5670f1['render']();const _0x136525=_0x3fc016['element'];this['setEditableElement'](_0x3fc016['name'],_0x136525),_0x5670f1['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24de58['attachDomRoot'](_0x136525),this['_elementReplacer']['replace'](_0xd24607,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3a36a4=this['view'],_0x1394c2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1394c2['detachDomRoot'](_0x3a36a4['editable']['name']),_0x3a36a4['destroy']();}['_initToolbar'](){const _0x2e3c6f=this['view'];_0x2e3c6f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2e3c6f['stickyPanel']['limiterElement']=_0x2e3c6f['element'],_0x2e3c6f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x75e4cb})=>_0x75e4cb),_0x2e3c6f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2e3c6f['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x213b35,_0x2f4847,_0x570e17={}){super(_0x213b35),this['stickyPanel']=new ht(_0x213b35),this['toolbar']=new dt(_0x213b35,{'shouldGroupWhenFull':_0x570e17['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x213b35,_0x2f4847);}['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
+ _0x473944(_0x597429){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4656f1,_0x3b118d){super(_0x3b118d),this['sourceElement']=_0x4656f1,this['model']['document']['createRoot']();const _0x32ed01=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x32ed01);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5cc9f5,_0x22597f){const _0x32a40d=new this(_0x5cc9f5,_0x22597f);return await _0x32a40d['initPlugins'](),await _0x32a40d['ui']['init'](_0x5cc9f5),await _0x32a40d['data']['init'](_0x32a40d['config']['get']('initialData')||''),_0x32a40d['fire']('ready'),_0x32a40d;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x294c95{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x81c66f){function _0x2c462f(_0xf6c7ad){return _0xf6c7ad['map'](_0x163880=>String['fromCharCode'](_0x163880))['join']('');}super(_0x81c66f),this['result']='end',_0x81c66f[_0x2c462f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c462f([0x76,0x69,0x65,0x77])][_0x2c462f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c462f([0x61,0x75,0x74,0x6f]),_0x81c66f[_0x2c462f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c462f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c462f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c462f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c462f([0x6f,0x6b])});}}class k extends _0x294c95{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x3c09f2){if(super(_0x3c09f2),!this['editor']['config']['get']('revisionHistory'))throw new _0x569748('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1b1104=>this['_showRevisionViewer']({..._0x1b1104,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x51e6de=>this['_closeRevisionViewer'](_0x51e6de)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xaf2c12=>this['_restoreRevision'](_0xaf2c12)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xd2f0fe){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xd2f0fe;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x458089){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x458089);}['getRevision'](_0xce0e0a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xce0e0a);}['getRevisions'](_0x5af67b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5af67b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4f7685=this['editor'],_0x2db321=_0x5e675d(_0x4f7685,p),_0x2fcd6f=_0x4f7685['plugins']['get']('RevisionTracker'),_0x517cd4=_0x4f7685['plugins']['get']('Users')['users'];return _0x2db321['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2db321['lazyRoots'],(_0x2db321['plugins']['push'](_t,m,R,class extends _0x294c95{static get['requires'](){return[m,'Users'];}['init'](){const _0x2da071=this['editor']['plugins']['get']('Users');for(const _0x45e382 of _0x517cd4)_0x45e382['isAnonymous']||_0x2da071['getUser'](_0x45e382['id'])||_0x2da071['addUser'](_0x45e382);const _0x57b0ee=_0x2fcd6f['repository']['getRevisions']();let _0x5430c4=null;const _0x24436b=this['editor']['plugins']['get']('RevisionViewer');_0x24436b['adapter']=_0x2fcd6f['adapter'],_0x24436b['bind']('isEnabled')['to'](_0x2fcd6f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4f7685,'isReadOnly',_0x1c8df2=>!_0x1c8df2);for(const _0x5b82c1 of _0x57b0ee){const _0x5c5d8b=null===_0x5b82c1['creator'];if(_0x5c5d8b&&_0x5b82c1['toVersion']===_0x5b82c1['fromVersion'])continue;const _0x3f3a88=_0x5b82c1['toJSON']();_0x24436b['addRevisionData'](_0x3f3a88,(_0x1de1d9,_0x373194,_0x233273)=>{if(_0x5c5d8b){if(_0x5430c4)_0x5430c4['_update'](_0x1de1d9,_0x373194);else{if(!_0x373194){const _0x4457cf=_0x233273['toJSON']();_0x4457cf['id']=_0x3e0359(),_0x2fcd6f['saveRevision'](_0x4457cf,_0x233273['toVersion'])['then'](_0x3486ce=>{_0x5430c4=_0x3486ce;});}}}else _0x5b82c1['_update'](_0x1de1d9,_0x373194);});}}},d),_0x2db321);}['_enhanceShowRevisionViewerCallback'](){const _0xeca981=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3f5b7f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x27a6da=this['editor']['plugins']['get']('Autosave');await _0x27a6da['save']();}else await _0x3f5b7f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x487a1b=this['editor']['plugins']['get']('Dialog');_0x487a1b['isOpen']&&_0x487a1b['hide']();}const _0x56c106=this['_getRevisionViewerEditorConfig']();return _0xeca981(_0x56c106)['then'](_0x3eb6e0=>{return(this['_viewerEditor']=_0x3eb6e0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3eb6e0);})['catch'](_0x5be353=>(console['error'](_0x5be353),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1d8f44=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1d8f44(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x26a056=this['editor']['plugins']['get']('Annotations');_0x26a056['refreshVisibility'](),_0x26a056['refreshPositioning']();}})));}['_showRevisionViewer'](_0x198f6f){const _0x51a3eb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1ae744=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3af5a4=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3af5a4,_0x198f6f)['then'](_0x3f6e03=>(_0x1ae744['style']['display']='block',_0x51a3eb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3f6e03));}['_closeRevisionViewer'](_0x4ba06f){const _0x5e8b10=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5e8b10['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4ba06f['destroy']();}async['_restoreRevision'](_0x3ef92c){const _0x2009d0=this['editor'],_0x1f59ec=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x18b8eb=_0x2009d0['plugins']['get']('RevisionTracker'),_0x133d3e=_0x2009d0['plugins']['get']('RevisionHistoryUtils'),_0x37fffb=_0x1f59ec['repository']['getRevision'](_0x3ef92c);let _0x2212f3,_0x4638fc,_0x10737a;try{await _0x133d3e['loadRevisionData'](_0x37fffb,this['adapter']),_0x2212f3=_0x133d3e['getRevisionDocumentData'](_0x37fffb),_0x4638fc=_0x133d3e['getRevisionRootsAttributes'](_0x37fffb);}catch(_0x2f639b){return void console['error'](_0x2f639b);}_0x2009d0['model']['change'](_0x603653=>{for(const _0x45aa8c of Array['from'](_0x2009d0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x603653['removeMarker'](_0x45aa8c);}),_0x1f59ec['isReady']=!0x1,_0x2009d0['model']['enqueueChange'](_0x5a373c=>{_0x5a373c['setSelection'](null),_0x5a373c['removeSelectionAttribute'](_0x2009d0['model']['document']['selection']['getAttributeKeys']());const _0x5c6999=Object['keys'](_0x2212f3);for(const _0x125ccd of _0x2009d0['model']['document']['roots'])'$graveyard'!=_0x125ccd['rootName']&&_0x125ccd['isAttached']()&&!_0x5c6999['includes'](_0x125ccd['rootName'])&&_0x5a373c['detachRoot'](_0x125ccd);for(const _0x7eb7f of _0x5c6999){let _0x5be4d0=_0x2009d0['model']['document']['getRoot'](_0x7eb7f);_0x5be4d0&&_0x5be4d0['isAttached']()||(_0x5be4d0=_0x5a373c['addRoot'](_0x7eb7f));const _0x34084c=_0x4638fc[_0x7eb7f],_0x4c613e=Object['keys'](_0x34084c),_0xcc332d=_0x2212f3[_0x7eb7f];for(const _0x12254e of _0x5be4d0['getAttributeKeys']())_0x4c613e['includes'](_0x12254e)||_0x5a373c['removeAttribute'](_0x12254e,_0x5be4d0);for(const _0x39eacb of _0x4c613e)_0x5a373c['setAttribute'](_0x39eacb,_0x4638fc[_0x7eb7f][_0x39eacb],_0x5be4d0);_0x5a373c['remove'](_0x5a373c['createRangeIn'](_0x5be4d0)),_0x5a373c['insert'](_0x2009d0['data']['parse'](_0xcc332d,_0x5be4d0),_0x5be4d0,0x0);}});const _0x12fa41=g(_0x2009d0['locale'],'Restored');if(_0x37fffb['name'])_0x10737a=-0x1==_0x37fffb['name']['indexOf'](_0x12fa41)?_0x12fa41+':\x20'+_0x37fffb['name']:_0x37fffb['name'];else _0x10737a=_0x12fa41+':\x20'+(_0x37fffb['createdAt']['toLocaleDateString'](_0x2009d0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x37fffb['createdAt']['toLocaleTimeString'](_0x2009d0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x18b8eb['saveRevision']({'name':_0x10737a}),_0x1f59ec['isReady']=!0x0,_0x2009d0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,de as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};