@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250323.0 → 0.0.0-nightly-20250324.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 _0xcb1cec,uid as _0x47cd61,Collection as _0xc0b39c,logWarning as _0x2dad38,FocusTracker as _0x56b250,KeystrokeHandler as _0xe5d47,scrollViewportToShowTarget as _0x38eeba,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x141381}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x17f390,set as _0x28fabf,unset as _0x9391bb,isEqual as _0x2ef2d0}from'es-toolkit/compat';import{Plugin as _0x26f450,PendingActions as _0x8cd40,Command as _0x573d0a,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xbb1ed5,getMarkerDomElement as _0x1f8be4,ConfirmMixin as _0x3bf4fb,sanitizeEditorConfig as _0x21b855}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x53812f,Element as ut,Range as ft,ViewUIElement as _0x2af098,ViewRawElement as _0x45c87a,ViewEmptyElement as _0x5a2ecc,ViewAttributeElement as _0x122c61,ViewContainerElement as _0x3e4f10,Position as vt,ViewText as _0x2f79b6,ViewElement as _0x15bf3f,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5ce4fd,IconChevronUp as _0xaa3d7,IconChevronDown as _0x2feeab,IconUndo as _0x6af520,IconUser as _0x944b2,IconThreeVerticalDots as _0x19a42a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x525a1d,injectCssTransitionDisabler as ts,submitHandler as _0x124e02,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x290b2b,ListView as _0x148aee,ListItemView as te,ButtonView as _0x278200,MenuBarMenuView as _0x56f35c,MenuBarMenuListView as _0x5df39b,MenuBarMenuListItemView as _0x63b3db,MenuBarMenuListItemButtonView as _0x2550e0,ContextualBalloon as _0x4fc96b,ToolbarSeparatorView as _0x5c64c1,IconView as _0x35b78b,addListToDropdown as _0x19a37f,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x920f1c}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0xcb1cec(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x220107){super(),this['id']=_0x220107['id']||_0x47cd61(),this['creator']=_0x220107['creator']||null,this['authors']=_0x220107['authors']||[],this['diffData']=_0x220107['diffData']||null,this['toVersion']=_0x220107['toVersion']||0x0,this['fromVersion']=_0x220107['fromVersion']||0x0,this['set']('name',_0x220107['name']||''),this['set']('createdAt',_0x220107['createdAt']||new Date()),this['set']('attributes',_0x220107['attributes']||{});}['setName'](_0x3fb88d){this['_update']({'name':_0x3fb88d});}['setAttribute'](_0x4fb1ba,_0xbf552a){const _0x3e078c=_0x17f390(this['attributes']);_0x28fabf(_0x3e078c,_0x4fb1ba,_0xbf552a),this['_update']({'attributes':_0x3e078c});}['removeAttribute'](_0x1f130c){const _0x4213ca=_0x17f390(this['attributes']);_0x9391bb(_0x4213ca,_0x1f130c),this['_update']({'attributes':_0x4213ca});}['_update'](_0x34d464,_0x110de9=!0x1){let _0x37843d=!0x1;const _0xd6b3a8={'id':this['id']},_0x4f8866=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2348d7 of _0x4f8866){const _0x2fb371=_0x34d464[_0x2348d7];void 0x0!==_0x2fb371&&_0x2fb371!==this[_0x2348d7]&&(this[_0x2348d7]=_0x2fb371,_0xd6b3a8[_0x2348d7]=_0x2fb371,_0x37843d=!0x0);}_0x37843d&&(_0xd6b3a8['authors']&&(_0xd6b3a8['authorsIds']=_0xd6b3a8['authors']['map'](_0x42131d=>_0x42131d['id']),delete _0xd6b3a8['authors']),this['fire']('_update',_0xd6b3a8,_0x110de9));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x211a0d=>_0x211a0d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x26f450{['_revisions'];static get['requires'](){return[_0xbb1ed5];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x228e5e){super(_0x228e5e),this['_revisions']=new _0xc0b39c();}['afterInit'](){!async function(_0x4e29fc){const _0x316d08=_0x384eb4([0x59,0x6e,0x47,0x66,0x63,0x53,0x39,0x55,0x79,0x69,0x56,0x41,0x6b,0x73,0x35,0x78,0x43,0x52,0x46,0x50,0x57,0x64,0x4a,0x4e,0x48,0x4f,0x37,0x45,0x6c,0x6a,0x49,0x54,0x72,0x42,0x32,0x33,0x68,0x36,0x76,0x61,0x4b,0x71,0x4d,0x44,0x7a,0x5a,0x77,0x31,0x51,0x6f,0x65,0x58,0x74,0x75,0x4c,0x38,0x6d,0x30,0x70,0x62,0x34,0x67]),_0x56b126=0xeb829,_0x3c62cc=0x177d6f34,_0x1c6dee=0x177a0dc4^_0x3c62cc,_0xbe7b36=window[_0x384eb4([0x44,0x61,0x74,0x65])][_0x384eb4([0x6e,0x6f,0x77])](),_0x2435d7=_0x4e29fc[_0x384eb4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ca75a=new window[(_0x384eb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ccc74=>{_0x2435d7[_0x384eb4([0x6f,0x6e,0x63,0x65])](_0x384eb4([0x72,0x65,0x61,0x64,0x79]),_0x3ccc74);}),_0x344061={[_0x384eb4([0x6b,0x74,0x79])]:_0x384eb4([0x45,0x43]),[_0x384eb4([0x75,0x73,0x65])]:_0x384eb4([0x73,0x69,0x67]),[_0x384eb4([0x63,0x72,0x76])]:_0x384eb4([0x50,0x2d,0x32,0x35,0x36]),[_0x384eb4([0x78])]:_0x384eb4([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]),[_0x384eb4([0x79])]:_0x384eb4([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]),[_0x384eb4([0x61,0x6c,0x67])]:_0x384eb4([0x45,0x53,0x32,0x35,0x36])},_0x3993ae=_0x2435d7[_0x384eb4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x384eb4([0x67,0x65,0x74])](_0x384eb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56cad4(){let _0x41e236,_0x20173b=null,_0x3a1967=null;try{if(_0x3993ae==_0x384eb4([0x47,0x50,0x4c]))return _0x384eb4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41e236=_0x4ec099(),!_0x41e236)return _0x384eb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41e236[_0x384eb4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a1967=_0x4ba643(_0x41e236[_0x384eb4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41e236[_0x384eb4([0x6a,0x74,0x69])])),await _0x36c63d()?_0x45e0b5()?_0x31719e()?_0x384eb4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x191f6d()?(_0x41e236[_0x384eb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x384eb4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20173b=_0x5bc099(_0x384eb4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41e236[_0x384eb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x384eb4([0x74,0x72,0x69,0x61,0x6c])&&(_0x20173b=_0x5bc099(_0x384eb4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa3298c()):_0x384eb4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x384eb4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x384eb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x159f18){return _0x384eb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31719e(){const _0x6e34a5=[_0x384eb4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x384eb4([0x74,0x72,0x69,0x61,0x6c])][_0x384eb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41e236[_0x384eb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbe7b36/0x3e8:0xe10*_0x1c6dee;return _0x41e236[_0x384eb4([0x65,0x78,0x70])]<_0x6e34a5;}function _0x45e0b5(){const _0x10145e=_0x41e236[_0x384eb4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x10145e)return!0x1;if(_0x10145e[_0x384eb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x384eb4([0x2a])))return!0x0;if(_0x10145e[_0x384eb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x384eb4([0x52,0x48])))return!0x0;if(_0x10145e[_0x384eb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x384eb4([0x52,0x52,0x48]))){if(_0x180ace())return!0x0;if(_0x25ab56()||_0x1db989())return!0x0;}return!0x1;}function _0x191f6d(){const _0x5c8e36=_0x41e236[_0x384eb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c8e36||0x0==_0x5c8e36[_0x384eb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49442c}=new URL(window[_0x384eb4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c8e36[_0x384eb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49442c))return!0x0;const _0xf8ab5e=_0x49442c[_0x384eb4([0x73,0x70,0x6c,0x69,0x74])](_0x384eb4([0x2e]));return _0x5c8e36[_0x384eb4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x170c98=>_0x170c98[_0x384eb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x384eb4([0x2a])))[_0x384eb4([0x6d,0x61,0x70])](_0xd99933=>_0xd99933[_0x384eb4([0x73,0x70,0x6c,0x69,0x74])](_0x384eb4([0x2e])))[_0x384eb4([0x73,0x6f,0x6d,0x65])](_0x3817f9=>_0xf8ab5e[_0x384eb4([0x65,0x76,0x65,0x72,0x79])]((_0x23baf2,_0x556381)=>_0x3817f9[_0x556381]===_0x23baf2||_0x3817f9[_0x556381]===_0x384eb4([0x2a])));}function _0xa3298c(){return _0x20173b&&_0x3a1967?new window[(_0x384eb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14d829,_0x4c33b8)=>{_0x20173b[_0x384eb4([0x74,0x68,0x65,0x6e])](_0x14d829,_0x4c33b8),_0x3a1967[_0x384eb4([0x74,0x68,0x65,0x6e])](_0x269517=>{_0x269517!=_0x384eb4([0x56,0x61,0x6c,0x69,0x64])&&_0x14d829(_0x269517);},_0x4c33b8);}):_0x20173b||_0x3a1967||_0x384eb4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ba643(_0x1d7f45,_0x4acc5e){return new window[(_0x384eb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47ee67=>{if(_0x7ce330())return _0x47ee67(_0x384eb4([0x56,0x61,0x6c,0x69,0x64]));_0x5b423b(),_0x2435d7[_0x384eb4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x384eb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x132a00=!0x1;const _0x286d7e=_0x47cd61();function _0x1ce6a8(_0x9acd6e){return!!_0x9acd6e&&(typeof _0x9acd6e===_0x384eb4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9acd6e===_0x384eb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9acd6e[_0x384eb4([0x74,0x68,0x65,0x6e])]===_0x384eb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9acd6e[_0x384eb4([0x63,0x61,0x74,0x63,0x68])]===_0x384eb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40dee1(_0x5837da){_0x459134(_0x5837da)[_0x384eb4([0x74,0x68,0x65,0x6e])](_0x3786d9=>{if(!_0x3786d9||_0x3786d9[_0x384eb4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x384eb4([0x6f,0x6b]))return _0x384eb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x262fab(_0x43740a(_0x286d7e+_0x4acc5e))!=_0x3786d9[_0x384eb4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x384eb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x384eb4([0x56,0x61,0x6c,0x69,0x64]);})[_0x384eb4([0x74,0x68,0x65,0x6e])](_0x500b44=>(_0x31482a(),_0x500b44),()=>{const _0x594999=_0x4fd242();return null==_0x594999?(_0x31482a(),_0x384eb4([0x56,0x61,0x6c,0x69,0x64])):_0x384eb4(_0xbe7b36-_0x594999>(0x3371eb34^_0x3c62cc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x384eb4([0x74,0x68,0x65,0x6e])](_0x47ee67)[_0x384eb4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47ee67(_0x384eb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d7d6f=0x174b81b4^_0x3c62cc;function _0x31482a(){const _0x67391f=_0x384eb4([0x6c,0x6c,0x63,0x74,0x2d])+_0x262fab(_0x43740a(_0x1d7f45)),_0x50b473=_0x28d281(_0x262fab(window[_0x384eb4([0x4d,0x61,0x74,0x68])][_0x384eb4([0x63,0x65,0x69,0x6c])](_0xbe7b36/_0x1d7d6f)));window[_0x384eb4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x384eb4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x67391f,_0x50b473);}function _0x4fd242(){const _0x54c835=_0x384eb4([0x6c,0x6c,0x63,0x74,0x2d])+_0x262fab(_0x43740a(_0x1d7f45)),_0x345692=window[_0x384eb4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x384eb4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54c835);return _0x345692?window[_0x384eb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28d281(_0x345692),0x10)*_0x1d7d6f:null;}function _0x459134(_0x4567d1){return new window[(_0x384eb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d9acd,_0x15ed64)=>{_0x4567d1[_0x384eb4([0x74,0x68,0x65,0x6e])](_0x4d9acd,_0x15ed64),window[_0x384eb4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15ed64,0x177cbbf4^_0x3c62cc);});}}_0x2435d7[_0x384eb4([0x6f,0x6e])](_0x384eb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ebd53,_0x36b8f0)=>{if(_0x36b8f0[0x0]!=_0x1d7f45)return _0x47ee67(_0x384eb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36b8f0[0x1]={..._0x36b8f0[0x1],[_0x384eb4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x286d7e};},{[_0x384eb4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x384eb4([0x68,0x69,0x67,0x68])}),_0x2435d7[_0x384eb4([0x6f,0x6e])](_0x384eb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x497c5f=>{_0x1ce6a8(_0x497c5f[_0x384eb4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x132a00=!0x0,_0x40dee1(_0x497c5f[_0x384eb4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x384eb4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x384eb4([0x6c,0x6f,0x77])}),_0x2ca75a[_0x384eb4([0x74,0x68,0x65,0x6e])](()=>{_0x132a00||_0x47ee67(_0x384eb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7ce330(){return _0x2435d7[_0x384eb4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x384eb4([0x76,0x69,0x65,0x77])][_0x384eb4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x384eb4([0x61,0x75,0x74,0x6f]);}function _0x5b423b(){_0x2435d7[_0x384eb4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x384eb4([0x76,0x69,0x65,0x77])][_0x384eb4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x384eb4([0x61,0x75,0x74,0x6f]);}}function _0x5bc099(_0x4c2f6f){const _0x1f824b=[new window[(_0x384eb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a9525=>setTimeout(_0x3a9525,0x177451f8^_0x3c62cc)),_0x2ca75a[_0x384eb4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x384eb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339a2c=>{const _0x342fab=0x177d6f33^_0x3c62cc,_0x462e6b=_0x4e29fc[_0x384eb4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5df65f(){_0x462e6b[_0x384eb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x342fab&&_0x339a2c();}_0x5df65f(),_0x462e6b[_0x384eb4([0x6f,0x6e])](_0x384eb4([0x61,0x64,0x64]),_0x5df65f);})),new window[(_0x384eb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58a393=>{function _0x5257e0(){for(const _0x1fb34d in window)if(window[_0x384eb4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x384eb4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1fb34d))&&window[_0x1fb34d]==_0x56b126)return _0x58a393();_0x2435d7[_0x384eb4([0x73,0x74,0x61,0x74,0x65])]!=_0x384eb4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x384eb4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5257e0,0x177d7cbc^_0x3c62cc);}_0x26bbed(_0x384eb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5257e0();})];return window[_0x384eb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x384eb4([0x72,0x61,0x63,0x65])](_0x1f824b)[_0x384eb4([0x74,0x68,0x65,0x6e])](()=>_0x4c2f6f);}async function _0xbc8d5e(){if(await _0x2ca75a,_0x26bbed(_0x384eb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4989a8=_0x4e29fc[_0x384eb4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2a5397=_0x4e29fc[_0x384eb4([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])](_0x4989a8[_0x384eb4([0x69,0x64])]),_0x26213f=_0x1ccc9c(_0x384eb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x26213f[_0x384eb4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4989a8['id'],_0x2a5397?_0x2a5397['id']:null,!0x0),_0x26213f[_0x384eb4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x384eb4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x26213f[_0x384eb4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x26213f[_0x384eb4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xbc97fa,void(_0x26213f[_0x384eb4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xbc97fa);}if(_0x26bbed(_0x384eb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5f94eb=_0x1ccc9c(_0x384eb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5f94eb[_0x384eb4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x384eb4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5f94eb[_0x384eb4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5f94eb[_0x384eb4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xbc97fa,_0x5f94eb[_0x384eb4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xbc97fa;}_0x2435d7[_0x384eb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x384eb4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xbc97fa,_0x2435d7[_0x384eb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x384eb4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xbc97fa,_0x2435d7[_0x384eb4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x384eb4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x180ace(){return _0x26bbed(_0x384eb4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ccc9c(_0x384eb4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x384eb4([0x73,0x74,0x61,0x74,0x65])]==_0x384eb4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x25ab56(){return _0x26bbed(_0x384eb4([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 _0x1db989(){return _0x26bbed(_0x384eb4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1f4ec8(_0x36df47){const _0x2bdfca=_0x3fa10c();_0x2435d7[_0x2bdfca]=_0x384eb4([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])+_0x36df47,_0x36df47[_0x384eb4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x384eb4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3fa10c()]=_0x56b126),_0x36df47!=_0x384eb4([0x56,0x61,0x6c,0x69,0x64])&&_0xbc8d5e();}function _0x3fa10c(){const _0xdb6574=window[_0x384eb4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x384eb4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x384eb4([0x6e,0x6f,0x77])]())[_0x384eb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x384eb4([0x2e]),'');let _0x11a25d=_0x384eb4([0x59]);for(let _0x240e07=0x0;_0x240e07<_0xdb6574[_0x384eb4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x240e07+=0x2){let _0x336d19=window[_0x384eb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdb6574[_0x384eb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x240e07,_0x240e07+0x2));_0x336d19>=_0x316d08[_0x384eb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x336d19-=_0x316d08[_0x384eb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11a25d+=_0x316d08[_0x336d19];}return _0x11a25d;}function _0x4ec099(){const _0x235e94=_0x3993ae[_0x384eb4([0x73,0x70,0x6c,0x69,0x74])](_0x384eb4([0x2e]));if(0x3!=_0x235e94[_0x384eb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50ffc1(_0x235e94[0x1]);function _0x50ffc1(_0x248e8c){const _0x59f28e=_0x15943b(_0x248e8c);return _0x59f28e&&_0xc539e7()?_0x59f28e:null;function _0xc539e7(){const _0x3f7504=_0x59f28e[_0x384eb4([0x6a,0x74,0x69])],_0x1d39a1=window[_0x384eb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f7504[_0x384eb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f7504[_0x384eb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1885eb={..._0x59f28e,[_0x384eb4([0x6a,0x74,0x69])]:_0x3f7504[_0x384eb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f7504[_0x384eb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1885eb[_0x384eb4([0x76,0x63])],_0x43740a(_0x1885eb)==_0x1d39a1;}}}async function _0x36c63d(){let _0x54a563=!0x0;try{const _0x57b833=_0x3993ae[_0x384eb4([0x73,0x70,0x6c,0x69,0x74])](_0x384eb4([0x2e])),[_0x3e2edd,_0x1d3dbe,_0x3ea46f]=_0x57b833;return _0x440403(_0x3e2edd),await _0x3bf483(_0x3e2edd,_0x1d3dbe,_0x3ea46f),_0x54a563;}catch(_0x56a2e3){return!0x1;}function _0x440403(_0xdfc40c){const _0x18dd6a=_0x15943b(_0xdfc40c);_0x18dd6a&&_0x18dd6a[_0x384eb4([0x61,0x6c,0x67])]==_0x384eb4([0x45,0x53,0x32,0x35,0x36])||(_0x54a563=!0x1);}async function _0x3bf483(_0x2387f3,_0x5ef58c,_0x4424c7){const _0x40b98c=window[_0x384eb4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x384eb4([0x66,0x72,0x6f,0x6d])](_0x107f74(_0x4424c7),_0x510344=>_0x510344[_0x384eb4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5eb95b=new window[(_0x384eb4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x384eb4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2387f3+_0x384eb4([0x2e])+_0x5ef58c),_0x321e5f=window[_0x384eb4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x384eb4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x321e5f)return;const _0x4d9ffd=await _0x321e5f[_0x384eb4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x384eb4([0x6a,0x77,0x6b]),_0x344061,{[_0x384eb4([0x6e,0x61,0x6d,0x65])]:_0x384eb4([0x45,0x43,0x44,0x53,0x41]),[_0x384eb4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x384eb4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x384eb4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x321e5f[_0x384eb4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x384eb4([0x6e,0x61,0x6d,0x65])]:_0x384eb4([0x45,0x43,0x44,0x53,0x41]),[_0x384eb4([0x68,0x61,0x73,0x68])]:{[_0x384eb4([0x6e,0x61,0x6d,0x65])]:_0x384eb4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d9ffd,_0x40b98c,_0x5eb95b)||(_0x54a563=!0x1);}}function _0x15943b(_0x9c09b){return _0x9c09b[_0x384eb4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x384eb4([0x65,0x79]))?JSON[_0x384eb4([0x70,0x61,0x72,0x73,0x65])](_0x107f74(_0x9c09b)):null;}function _0x107f74(_0x3ad873){return window[_0x384eb4([0x61,0x74,0x6f,0x62])](_0x3ad873[_0x384eb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x384eb4([0x2b]))[_0x384eb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x384eb4([0x2f])));}function _0x43740a(_0x2e92a6){let _0x2af770=0x1505;function _0x580caf(_0x2484ac){for(let _0x111c1f=0x0;_0x111c1f<_0x2484ac[_0x384eb4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x111c1f++){const _0x4ff7fa=_0x2484ac[_0x384eb4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x111c1f);_0x2af770=(_0x2af770<<0x5)+_0x2af770+_0x4ff7fa,_0x2af770&=_0x2af770;}}function _0xe7fc5b(_0x3325ef){Array[_0x384eb4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3325ef)?_0x3325ef[_0x384eb4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe7fc5b):_0x3325ef&&typeof _0x3325ef==_0x384eb4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x384eb4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3325ef)[_0x384eb4([0x73,0x6f,0x72,0x74])]()[_0x384eb4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ce1e0,_0x2e5bf8])=>{_0x580caf(_0x1ce1e0),_0xe7fc5b(_0x2e5bf8);}):_0x580caf(window[_0x384eb4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3325ef));}return _0xe7fc5b(_0x2e92a6),_0x2af770>>>0x0;}function _0x262fab(_0x3e821c){return _0x3e821c[_0x384eb4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x384eb4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x384eb4([0x30]));}function _0x28d281(_0x15500b){return _0x15500b[_0x384eb4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x384eb4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x384eb4([0x6a,0x6f,0x69,0x6e])]('');}function _0x26bbed(_0x43fcbf){return _0x2435d7[_0x384eb4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x384eb4([0x68,0x61,0x73])](_0x43fcbf);}function _0x1ccc9c(_0x16766b){return _0x2435d7[_0x384eb4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x384eb4([0x67,0x65,0x74])](_0x16766b);}function _0xbc97fa(){}function _0x384eb4(_0x1a6909){return _0x1a6909['map'](_0x1c4db2=>String['fromCharCode'](_0x1c4db2))['join']('');}_0x1f4ec8(await _0x56cad4());}(this);}['createRevision'](_0x447c51){const _0x4765ef=this['editor']['plugins']['get']('Users');return new h({'id':_0x447c51['id'],'name':_0x447c51['name'],'creator':_0x447c51['creatorId']?_0x4765ef['getUser'](_0x447c51['creatorId']):null,'diffData':_0x447c51['diffData']||_0x447c51['data'],'authors':_0x447c51['authorsIds']['map'](_0xc54c6e=>_0x4765ef['getUser'](_0xc54c6e)),'createdAt':new Date(_0x447c51['createdAt']),'attributes':_0x447c51['attributes'],'fromVersion':_0x447c51['fromVersion'],'toVersion':_0x447c51['toVersion']});}['addRevision'](_0x4c8d72,_0x363158=0x0){this['_revisions']['add'](_0x4c8d72,_0x363158);}['getRevision'](_0x1ebbde){return this['_revisions']['get'](_0x1ebbde);}['getRevisions'](_0x2dae8a={'toJSON':!0x1}){const _0x2a9034=Array['from'](this['_revisions']);return _0x2a9034['reverse'](),_0x2dae8a['toJSON']?_0x2a9034['map'](_0x450e31=>_0x450e31['toJSON']()):_0x2a9034;}['getIndex'](_0x290558){return this['_revisions']['getIndex'](_0x290558);}['getEarlierVisibleRevision'](_0x5d8396){const [,_0xb06396]=this['getRevisionsIterator'](_0x5d8396,{'direction':'earlier'});return _0xb06396;}['getLaterVisibleRevision'](_0x19564e){const [,_0x5da13e]=this['getRevisionsIterator'](_0x19564e,{'direction':'later'});return _0x5da13e;}['getRevisionsInDiff'](_0x4b21be){const _0x1d4604=[];for(const _0x3233a5 of this['getRevisionsIterator'](_0x4b21be['newRevisionId']))if(_0x1d4604['push'](_0x3233a5),_0x3233a5['id']===_0x4b21be['oldRevisionId'])break;return _0x1d4604;}*['getRevisionsIterator'](_0x2ac984,{direction:_0x3e9424='earlier',filter:_0x3380b3=()=>!0x0}={}){const _0x23e0ac='earlier'===_0x3e9424?0x1:-0x1;let _0x1073aa=this['_revisions']['get'](_0x2ac984),_0xf7940=this['getIndex'](_0x1073aa);for(yield _0x1073aa;_0x1073aa;){if(_0xf7940+=_0x23e0ac,_0x1073aa=this['getRevision'](_0xf7940),!_0x1073aa)return;_0x3380b3(_0x1073aa)&&(yield _0x1073aa);}}}function m(_0x15ae3c,_0x463fd4,_0x1a9ccd){const t=_0x15ae3c['t'];switch(_0x463fd4){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'},_0x1a9ccd);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1a9ccd);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x3e4f10,'a':_0x122c61,'e':_0x5a2ecc,'r':_0x45c87a,'u':_0x2af098};class u extends _0x26f450{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xbb1ed5,j,_0x8cd40];}constructor(_0x5a820c){super(_0x5a820c),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x26a844=_0x47cd61();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x26a844},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x50130c=this['repository']['getRevision'](0x0),_0x387252=_0x50130c&&null===_0x50130c['creator']?_0x50130c:null;if(this['_continueCurrentRevision']=!!_0x387252&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1bd2a2=this['_source']['getCurrentRevisionId'](),_0x29f37b=this['repository']['getRevision'](_0x1bd2a2);if(_0x29f37b)this['_startingVersion']=_0x29f37b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4edb08=this['_source']['history']['_operations']['find'](_0x3f115e=>!_0x3f115e['_isInit']),_0x335811=_0x4edb08?_0x4edb08['baseVersion']:this['_source']['history']['version'];_0x50130c?(_0x50130c['toVersion']<_0x335811&&_0x50130c['_update']({'toVersion':_0x335811}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x387252['id'],this['_startingVersion']=_0x387252['fromVersion']):(this['_startingVersion']=_0x50130c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x335811,this['_continueCurrentRevision']=!0x1);}}else _0x387252&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x387252['toVersion'],this['editor']['model']['document']['history']['version']),_0x387252['fromVersion']===_0x387252['toVersion']?(0x0!==_0x387252['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x387252['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x387252['id'],this['_startingVersion']=_0x387252['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',_0x4ca49b=>!_0x4ca49b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x439ba3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x282013;for(const _0x8a5c58 in _0x439ba3){const _0x3daf0a=_0x8a5c58,_0x5110da=_0x439ba3[_0x3daf0a];if('revisionHistoryLicenseKeyValid'==_0x5110da||'revisionHistoryLicenseKeyInvalid'==_0x5110da||'revisionHistoryLicenseKeyExpired'==_0x5110da||'revisionHistoryLicenseKeyDomainLimit'==_0x5110da||'revisionHistoryLicenseKeyNotAllowed'==_0x5110da||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5110da||'revisionHistoryLicenseKeyTrialLimit'==_0x5110da||'revisionHistoryLicenseKeyUsageLimit'==_0x5110da){delete _0x439ba3[_0x3daf0a],_0x282013=_0x5110da,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x282013&&_0x439ba3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x282013&&_0x439ba3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x282013&&_0x439ba3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x282013&&_0x439ba3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x282013&&_0x439ba3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x282013&&_0x439ba3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x282013&&_0x439ba3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2ca06b=this['repository']['getRevision'](0x0),_0x392fc6=await this['getRevisionDocumentData'](_0x2ca06b),_0x1e55bd=await this['getRevisionRootsAttributes'](_0x2ca06b);this['_replaceEditorDataWithRevisionData'](_0x392fc6,_0x1e55bd);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x330fc7){this['_source']=_0x330fc7;}async['update'](){const _0x11a9bc=await this['_source']['getLatestVersion']();if(_0x11a9bc>this['currentRevision']['toVersion']){await this['_loadState']();const _0x212686=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x11a9bc});_0x212686['authors']=_0x212686['authorsIds']['map'](_0x2d35cf=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d35cf)),this['currentRevision']['_update'](_0x212686);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x35719c={},_0x3b925b=null){const _0x395c5d=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3b925b>this['currentRevision']['toVersion']&&(_0x3b925b=null),null===_0x3b925b&&(_0x3b925b=await this['_source']['getLatestVersion']());const _0x21a779=this['_getFromVersion'](_0x3b925b),_0x50d188=this['buildRevisionData']({'from':_0x21a779,'to':_0x3b925b});if(this['currentRevision']['toVersion']<_0x3b925b){const _0x2729db=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3b925b,'to':_0x3b925b});_0x2729db['authors']=[],_0x2729db['authorsIds']=[],_0x2729db['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2729db,!0x0),delete _0x2729db['authors'],_0x395c5d['push'](_0x2729db);}_0x35719c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x35719c['name']=_0x35719c['name']||null,_0x35719c['id']=_0x35719c['id']||_0x47cd61(),_0x35719c={..._0x35719c,..._0x50d188};const _0x13f221=this['addRevisionData'](_0x35719c);_0x395c5d['push'](_0x35719c);const _0x12514b=this['repository']['getIndex'](_0x13f221);if(0x0!==_0x12514b){const _0x8e9b71=this['repository']['getRevision'](_0x12514b-0x1);if(_0x8e9b71['fromVersion']!==_0x3b925b){const _0x14b0ab=this['_revisionDataBuilder']['getData'](_0x3b925b,_0x8e9b71['toVersion']),_0x18a1cb={'id':_0x8e9b71['id'],'diffData':_0x14b0ab['diffData'],'authorsIds':_0x14b0ab['authorsIds'],'authors':_0x14b0ab['authorsIds']['map'](_0x473d26=>this['editor']['plugins']['get']('Users')['getUser'](_0x473d26)),'fromVersion':_0x3b925b};_0x8e9b71===this['currentRevision']&&(_0x18a1cb['createdAt']=new Date(_0x35719c['createdAt']['getTime']()+0xa)),_0x8e9b71['_update'](_0x18a1cb,!0x0),delete _0x18a1cb['authors'],_0x395c5d['push'](_0x18a1cb);}}if(this['adapter']){for(const _0x1bdf22 of _0x395c5d)this['_bufferUpdate'](_0x1bdf22['id'],_0x1bdf22,!0x0);this['sendBufferedUpdates']();}return _0x13f221;}['addRevisionData'](_0x3fe75f){const _0x23a772=this['repository']['createRevision'](_0x3fe75f);return this['adapter']&&_0x23a772['on']('_update',(_0x28e32e,_0x14a2bf,_0x1cfe6b)=>{_0x1cfe6b||(this['_bufferUpdate'](_0x14a2bf['id'],_0x14a2bf,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x23a772,this['_findInsertionIndex'](_0x23a772)),_0x23a772;}async['getRevisionDocumentData'](_0x1bfe43){await this['_loadRevisionData'](_0x1bfe43);const _0x359374={};for(const _0x2fbb3a in _0x1bfe43['diffData']){if(_0x1bfe43['diffData'][_0x2fbb3a]['attachChange']&&!_0x1bfe43['diffData'][_0x2fbb3a]['attachChange']['isAttached'])continue;const _0x180976=this['_removeRevisionMarkers'](JSON['parse'](_0x1bfe43['diffData'][_0x2fbb3a]['insertions'])),_0x33aba0=this['editor']['editing']['view']['document'],_0x2ea584=new _0x53812f(_0x33aba0,_0x180976['map'](_0x248e9f=>P(_0x248e9f,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x359374[_0x2fbb3a]=this['editor']['data']['processor']['toData'](_0x2ea584),this['editor']['data']['processor']['useFillerType']('default');}return _0x359374;}async['getRevisionRootsAttributes'](_0x1018eb){await this['_loadRevisionData'](_0x1018eb);const _0xe09025={};for(const _0x569c5f in _0x1018eb['diffData'])_0x1018eb['diffData'][_0x569c5f]['attachChange']&&!_0x1018eb['diffData'][_0x569c5f]['attachChange']['isAttached']||(_0xe09025[_0x569c5f]=_0x1018eb['diffData'][_0x569c5f]['attributesAfter']||{});return _0xe09025;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xa4ca67=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x35060a=0x0;_0x35060a<_0xa4ca67['length'];_0x35060a++){const _0x4715c2=_0xa4ca67[_0x35060a];let _0x4edee7=!0x1;for(const _0x36e672 of Object['keys'](_0x4715c2))void 0x0===_0x4715c2[_0x36e672]?delete _0x4715c2[_0x36e672]:'id'!==_0x36e672&&(_0x4edee7=!0x0);_0x4edee7||(_0xa4ca67[_0x35060a]=null);}if(_0xa4ca67=_0xa4ca67['filter'](_0x4cef03=>null!==_0x4cef03),!_0xa4ca67['length'])return;for(let _0x163aab=0x0;_0x163aab<_0xa4ca67['length'];_0x163aab++){const _0x12aee1=_0xa4ca67[_0x163aab];void 0x0!==_0x12aee1['fromVersion']&&void 0x0===_0x12aee1['toVersion']&&(_0x12aee1['toVersion']=this['repository']['getRevision'](_0x12aee1['id'])['toVersion']),void 0x0!==_0x12aee1['toVersion']&&void 0x0===_0x12aee1['fromVersion']&&(_0x12aee1['fromVersion']=this['repository']['getRevision'](_0x12aee1['id'])['fromVersion']);}const _0x1b43c4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xa4ca67,_0x1b43c4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1a4a32=>{if(_0x1a4a32){for(const _0x16fa7a of _0x1a4a32)this['setRevisionData']({'id':_0x16fa7a['id'],'createdAt':_0x16fa7a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2f70ab,_0x4e9e8d){let _0x1363c0=this['editor']['config']['get']('initialData'),_0x4a454b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1363c0){_0x1363c0={};for(const _0x280a2d of this['editor']['model']['document']['getRootNames']())_0x1363c0[_0x280a2d]='';}if('string'==typeof _0x1363c0&&(_0x1363c0={'main':_0x1363c0}),void 0x0===_0x4a454b){_0x4a454b={};for(const _0x30f458 of this['editor']['model']['document']['getRootNames']())_0x4a454b[_0x30f458]={};}let _0x372de1=!0x1;const _0x3882a4=Object['keys'](_0x1363c0),_0x3b86ad=Object['keys'](_0x2f70ab);for(const _0x577014 of _0x3882a4){if(_0x1363c0[_0x577014]!==_0x2f70ab[_0x577014]&&''!==_0x1363c0[_0x577014]['trim']()){_0x372de1=!0x0;break;}if(!_0x2ef2d0(_0x4a454b[_0x577014],_0x4e9e8d[_0x577014])&&Object['keys'](_0x4a454b[_0x577014])['length']>0x0){_0x372de1=!0x0;break;}}_0x372de1||(_0x372de1=_0x3b86ad['some'](_0x378d95=>!this['editor']['model']['document']['getRoot'](_0x378d95))),_0x372de1&&_0x2dad38('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1363c0,'editorRootsAttributes':_0x4a454b,'revisionData':_0x2f70ab,'revisionRootsAttributes':_0x4e9e8d}),this['editor']['config']['set']('initialData',_0x2f70ab),this['editor']['config']['set']('rootsAttributes',_0x4e9e8d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5f3adf=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5f3adf['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x206554){const _0x48ca7a=this['repository']['getRevisions']();_0x48ca7a['reverse']();let _0x127947=0x0;for(;_0x127947<_0x48ca7a['length'];){const _0xf48411=_0x48ca7a[_0x127947];if(_0xf48411===this['currentRevision']){_0x127947++;continue;}if(_0xf48411['id']===this['_initialRevisionId'])break;const _0x5d6362=_0x206554['toVersion']-_0xf48411['toVersion']||_0x206554['fromVersion']-_0xf48411['fromVersion'];if(_0x5d6362>0x0)break;if(_0x5d6362<0x0)_0x127947++;else{if(!_0x206554['creator']&&_0xf48411['creator'])break;if(_0xf48411['creator']||!_0x206554['creator']){if(_0x206554['createdAt']>_0xf48411['createdAt'])break;_0x127947++;}else _0x127947++;}}return _0x127947;}['setRevisionData'](_0x26841e){const _0x399da8=this['repository']['getRevision'](_0x26841e['id']);if(_0x26841e['createdAt']&&(_0x26841e['createdAt']=new Date(_0x26841e['createdAt'])),_0x26841e['authorsIds']){const _0x52a7b3=this['editor']['plugins']['get']('Users');_0x26841e['authors']=_0x26841e['authorsIds']['map'](_0xd14e57=>_0x52a7b3['getUser'](_0xd14e57));}_0x399da8['_update'](_0x26841e,!0x0);}['buildRevisionData']({revision:_0x5d38a5=null,from:_0x26a674=null,to:_0x209558=null}){_0x26a674=null!==_0x26a674?_0x26a674:_0x5d38a5['fromVersion'],_0x209558=null!==_0x209558?_0x209558:_0x5d38a5['toVersion'];const _0x483c06=this['_revisionDataBuilder']['getData'](_0x26a674,_0x209558),_0x4587e0={'diffData':_0x483c06['diffData'],'authorsIds':_0x483c06['authorsIds'],'fromVersion':_0x26a674,'toVersion':_0x209558};if(!_0x5d38a5||_0x209558!==_0x5d38a5['toVersion']){const _0x2ab235=_0x209558-0x1,_0x1ddfd=this['_source']['history']['getOperation'](_0x2ab235);_0x4587e0['createdAt']=_0x1ddfd&&_0x1ddfd['createdAt']||new Date();}if(this['_loadedStateData']&&_0x26a674===this['_loadedStateData']['fromVersion']){for(const _0x3a5c8b of this['_loadedStateData']['authors'])_0x4587e0['authorsIds']['includes'](_0x3a5c8b['id'])||_0x4587e0['authorsIds']['push'](_0x3a5c8b['id']);}return _0x4587e0;}['_loadRevisionData'](_0x27b0cf){if(!_0x27b0cf||_0x27b0cf['diffData'])return Promise['resolve']();{const _0x1acdc3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1acdc3,'revisionId':_0x27b0cf['id']})['then'](_0x3d6868=>{_0x27b0cf['diffData']=_0x3d6868['diffData'];});}}['_bufferUpdate'](_0x35884c,_0x4359db,_0x7881d6){if(this['_bufferedUpdates']['has'](_0x35884c)){const _0x1af94d=this['_bufferedUpdates']['get'](_0x35884c);_0x4359db=_0x7881d6?{..._0x1af94d,..._0x4359db}:{..._0x4359db,..._0x1af94d};}this['_bufferedUpdates']['set'](_0x35884c,_0x4359db);}['_getFromVersion'](_0x1c5f19){const _0x281646=this['repository']['getRevisions']();_0x281646['reverse'](),_0x281646['shift']();const _0x12a709=_0x281646['find'](_0x4791c2=>_0x4791c2['toVersion']<=_0x1c5f19)['toVersion'];return _0x12a709<this['_startingVersion']?this['_startingVersion']:_0x12a709;}['_createInitialRevision'](_0x4e18d2){const _0x26d9bc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x26d9bc)this['_initialRevisionId']=_0x26d9bc['id'];else{const _0x4b4186=!this['editor']['model']['document']['roots']['find'](_0x3325ce=>this['editor']['model']['hasContent'](_0x3325ce)),_0x55fc29=this['editor']['plugins']['get']('Users')['me']['id'],_0x1182e3=m(this['editor']['locale'],_0x4b4186?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4e18d2,'to':_0x4e18d2,'id':this['_initialRevisionId'],'name':_0x1182e3,'creatorId':_0x55fc29});}}['_createCurrentRevision'](_0x5a2171){const _0x2d3c84=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2d3c84),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5a2171,'to':_0x5a2171,'id':_0x2d3c84,'name':'','creatorId':null}));}['_makeRevision']({name:_0xa29c3b,from:_0x214646,to:_0x11689c,creatorId:_0x3d6c96,id:_0x1304cf}){const _0x1b3587=this['buildRevisionData']({'from':_0x214646,'to':_0x11689c});_0x1b3587['name']=_0xa29c3b,_0x1b3587['creatorId']=_0x3d6c96,_0x1b3587['id']=_0x1304cf;const _0x40e027=this['addRevisionData'](_0x1b3587);return this['adapter']&&this['_bufferUpdate'](_0x1b3587['id'],_0x1b3587,!0x0),_0x40e027;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x149a74){return(_0x149a74=_0x149a74['filter'](_0x4e6399=>!_0x4e6399['name']||'revision-start'!==_0x4e6399['name']&&'revision-end'!==_0x4e6399['name']))['forEach'](_0x57fa93=>{'string'!=typeof _0x57fa93&&(_0x57fa93['children']=this['_removeRevisionMarkers'](_0x57fa93['children']),_0x57fa93['attributes']=_0x57fa93['attributes']['filter'](_0xe0383e=>!_0xe0383e[0x0]['startsWith']('data-revision-')));}),_0x149a74;}}function P(_0x958659,_0x40d7dd){const _0x4243c3=_0x40d7dd['editing']['view']['document'];if('string'==typeof _0x958659)return new _0x2f79b6(_0x4243c3,_0x958659);{const _0x507ac5=_0x958659['children']['map'](_0x2b2785=>P(_0x2b2785,_0x40d7dd));return new(E[_0x958659['type']]||_0x15bf3f)(_0x4243c3,_0x958659['name'],_0x958659['attributes'],_0x507ac5);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x320f2f){this['editor']=_0x320f2f,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'](_0x2e3a2e){this['source']=_0x2e3a2e;const _0x5a57d8=new Map(),_0x3b4c2f=new Map(),_0x648f86=this['editor']['model']['document']['roots']['map'](_0x3ac65c=>_0x3ac65c['rootName']);for(const _0x5d85db of _0x648f86){const _0x3b3e43=this['editor']['model']['document']['getRoot'](_0x5d85db),_0x1a8e72=T(_0x3b3e43);_0x5a57d8['set'](_0x5d85db,_0x1a8e72),_0x3b4c2f['set'](_0x5d85db,Object['fromEntries'](_0x3b3e43['getAttributes']()));}const _0xb32d31=Array['from'](this['editor']['model']['markers'])['map'](_0x421477=>[_0x421477['name'],_0x421477['getRange']()]),_0x144993=this['source']['version'];this['_saveMetaData'](_0x144993,_0x5a57d8,_0xb32d31,_0x3b4c2f),this['_startingRevisionId']=this['_revisionId'];const _0x2e30e9=new Map(),_0x4f9ac3=new Map();for(const _0x307322 of _0x648f86){const _0xa9224d=F(_0x307322);_0x2e30e9['set'](_0x307322,_0xa9224d),_0x4f9ac3['set'](_0x307322,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2e30e9,[],_0x4f9ac3);}['getData'](_0x434102,_0x147363){if(this['_lastFrom']===_0x434102&&this['_lastTo']<=_0x147363)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x147363,!0x0);else{if(!this['_savedMetaData']['has'](_0x434102)){const _0x2353a2=this['_getPreviousFrom'](_0x434102);this['_calculateMetaData'](_0x2353a2,_0x434102,!0x1);}this['_calculateMetaData'](_0x434102,_0x147363,!0x0);}return this['_lastFrom']=_0x434102,this['_lastTo']=_0x147363,this['_getState']();}['loadState'](_0x1644e3){this['_reset'](),this['_lastFrom']=_0x1644e3['fromVersion'],this['_lastTo']=_0x1644e3['toVersion'];for(const _0x145240 in _0x1644e3['diffData']){const _0x33c097=_0x1644e3['diffData'][_0x145240]['attachChange'],_0x2a499d=_0x17f390(_0x1644e3['diffData'][_0x145240]['attributesBefore'])||{},_0x2fb452=this['_makeModelFromViewString'](_0x1644e3['diffData'][_0x145240]['deletions']);_0x2fb452['rootName']=_0x145240,_0x2fb452['_isAttached']=!_0x33c097||!_0x33c097['isAttached'],_0x2fb452['isAttached']=()=>_0x2fb452['_isAttached'],this['_baseRoots']['set'](_0x145240,_0x2fb452),this['_baseRootsAttributes']['set'](_0x145240,_0x2a499d),_0x33c097&&this['_touchedRoots']['set'](_0x145240,_0x33c097);const _0x1fea0a=this['_makeIdsRoot'](_0x2fb452);this['_baseIdsRoots']['set'](_0x145240,_0x1fea0a);for(const [_0x16d33d,_0x8f500]of _0x2fb452['markers']){if(!_0x16d33d['startsWith']('revision:'))continue;const _0x210f7d=_0x16d33d['split'](':')[0x2];for(const _0x5e350a of _0x8f500['getWalker']({'singleCharacters':!0x0})){const _0x454088=this['_getVidAttributeName'](_0x5e350a),_0x281bed='elementEnd'==_0x5e350a['type']?_0x5e350a['previousPosition']['path']['slice'](0x0,-0x1):_0x5e350a['previousPosition']['path'],_0x3ea232=_0x1fea0a['getNodeByPath'](_0x281bed)['getAttribute'](_0x454088);this['_touched']['set'](_0x3ea232,{'userId':_0x210f7d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x28e21e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x481695=>!this['_touched']['has'](_0x481695));let _0x3f3ba1=0x0;const _0xc5085e=new Map();for(const _0x1b62f7 in _0x1644e3['diffData']){const _0x8e6889=_0x1644e3['diffData'][_0x1b62f7]['attachChange'],_0x47b3f0=_0x17f390(_0x1644e3['diffData'][_0x1b62f7]['attributesAfter'])||{},_0x466d9c=this['_makeModelFromViewString'](_0x1644e3['diffData'][_0x1b62f7]['insertions']);_0x466d9c['rootName']=_0x1b62f7,_0x466d9c['_isAttached']=!_0x8e6889||_0x8e6889['isAttached'],_0x466d9c['isAttached']=()=>_0x466d9c['_isAttached'],this['_diffRoots']['set'](_0x1b62f7,_0x466d9c),this['_diffRootsAttributes']['set'](_0x1b62f7,_0x47b3f0);const _0x4915cc=this['_makeIdsRoot'](_0x466d9c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1b62f7,_0x4915cc),_0xc5085e['set'](_0x1b62f7,_0x466d9c['isAttached']()?_0x47b3f0:{});for(const [_0x19a07b,_0x5b2846]of _0x466d9c['markers']){if(!_0x19a07b['startsWith']('revision:'))continue;const _0x415dab=_0x19a07b['split'](':')[0x2];for(const _0x6c2f7d of _0x5b2846['getWalker']({'singleCharacters':!0x0})){const _0x19335d=this['_getVidAttributeName'](_0x6c2f7d),_0x179fb0=this['_revisionId']++,_0x190351='elementEnd'==_0x6c2f7d['type']?_0x6c2f7d['previousPosition']['path']['slice'](0x0,-0x1):_0x6c2f7d['previousPosition']['path'];_0x4915cc['getNodeByPath'](_0x190351)['_setAttribute'](_0x19335d,_0x179fb0),this['_touched']['set'](_0x179fb0,{'userId':_0x415dab});}}for(const _0x362c54 of this['editor']['model']['createRangeIn'](_0x466d9c)['getWalker']({'singleCharacters':!0x0})){const _0x21eb02=this['_getVidAttributeName'](_0x362c54),_0x28a1e8='elementEnd'==_0x362c54['type']?_0x362c54['previousPosition']['path']['slice'](0x0,-0x1):_0x362c54['previousPosition']['path'],_0x2516ce=_0x4915cc['getNodeByPath'](_0x28a1e8);_0x2516ce['getAttribute'](_0x21eb02)>0x0||_0x2516ce['_setAttribute'](_0x21eb02,_0x28e21e[_0x3f3ba1++]);}for(const [_0x19f01e,_0x1fa8ba]of _0x466d9c['markers'])_0x19f01e['startsWith']('revision:')||this['_markers']['set'](_0x19f01e,_0x1fa8ba);}const _0x2fe1fe=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2fe1fe),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2fe1fe,0x1));const _0x56b799=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x56b799),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x56b799,0x1));const _0x526ca6=Array['from'](this['_diffRoots'])['map'](([_0x5192c4,_0x42edee])=>[_0x5192c4,T(_0x42edee)]);this['_saveMetaData'](this['_lastTo'],_0x526ca6,this['_markers'],_0xc5085e);}['_makeModelFromViewString'](_0x383294){const _0x478292=JSON['parse'](_0x383294),_0x33241d=this['editor']['editing']['view']['document'],_0x440cf7=new _0x53812f(_0x33241d,_0x478292['map'](_0x52653a=>P(_0x52653a,this['editor'])));return this['editor']['data']['toModel'](_0x440cf7);}['_saveMetaData'](_0x5d7fda,_0x27aec3,_0x59c64b,_0x5eea77){const _0x3292ce=new Map(_0x27aec3),_0x3a598f=new Map(_0x17f390(_0x5eea77)),_0x2e20ed=new Map();for(const [_0x5aabea,_0x2cc045]of _0x59c64b)_0x2e20ed['set'](_0x5aabea,{'start':_0x2cc045['start']['clone'](),'end':_0x2cc045['end']['clone'](),'rootName':_0x2cc045['root']['rootName']});this['_savedMetaData']['set'](_0x5d7fda,{'roots':_0x3292ce,'markers':_0x2e20ed,'rootsAttributes':_0x3a598f});}['_removeMetaData'](_0x2c3eb4){this['_savedMetaData']['delete'](_0x2c3eb4);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x2e07f,_0x160a43=null){let _0x353259=null;_0x2e07f['is']('documentFragment')||(_0x353259=new ut(_0x2e07f['name'],{'vid_start':null===_0x160a43?this['_revisionId']++:_0x160a43++}));const _0x155f01=[];for(const _0x6e5f75 of _0x2e07f['getChildren']())if(_0x6e5f75['is']('element')){_0x155f01['push'](this['_makeIdsRoot'](_0x6e5f75,_0x160a43));const _0x4808e9=_0x155f01[_0x155f01['length']-0x1];null!==_0x160a43&&(_0x160a43=_0x4808e9['is']('element','$text')?_0x4808e9['getAttribute']('vid')+0x1:_0x4808e9['getAttribute']('vid_end')+0x1);}else{for(let _0x2cd9cc=0x0;_0x2cd9cc<_0x6e5f75['offsetSize'];_0x2cd9cc++)_0x155f01['push'](new ut('$text',{'vid':null===_0x160a43?this['_revisionId']++:_0x160a43++}));}if(_0x2e07f['is']('documentFragment')){const _0x3416f2=F(_0x2e07f['rootName']);return _0x3416f2['_insertChild'](0x0,_0x155f01),_0x3416f2;}return _0x353259['_setAttribute']('vid_end',null===_0x160a43?this['_revisionId']++:_0x160a43++),_0x353259['_insertChild'](0x0,_0x155f01),_0x353259;}['_calculateMetaData'](_0xbbeea0,_0x2941f7,_0x1a863a){this['_reset']();const {roots:_0x34a0cd,markers:_0x154827,rootsAttributes:_0x4b48b8}=this['_savedMetaData']['get'](_0xbbeea0);this['_baseRoots']=new Map(_0x34a0cd),this['_baseRootsAttributes']=new Map(_0x17f390(_0x4b48b8));for(const [_0x50ac86,_0x5ec35c]of this['_baseRoots'])if('$graveyard'!==_0x50ac86&&(this['_diffRoots']['set'](_0x50ac86,T(_0x5ec35c)),this['_diffRootsAttributes']=new Map(_0x17f390(_0x4b48b8)),_0x1a863a)){const _0x3083ef=this['_revisionId'];this['_idsRoots']['set'](_0x50ac86,this['_makeIdsRoot'](_0x5ec35c)),this['_baseIdsRoots']['set'](_0x50ac86,this['_makeIdsRoot'](_0x5ec35c,_0x3083ef));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x1a863a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5b976c,_0xf022db]of _0x154827){const _0x38794b=this['_baseRoots']['get'](_0xf022db['rootName']),_0x3b2b8b=this['_diffRoots']['get'](_0xf022db['rootName']),_0xa40611=new ft(this['_fixPosition'](_0xf022db['start'],_0x38794b),this['_fixPosition'](_0xf022db['end'],_0x38794b)),_0xbc4446=this['_fixRange'](_0xa40611,_0x3b2b8b);_0x38794b['markers']['set'](_0x5b976c,_0xa40611),this['_markers']['set'](_0x5b976c,_0xbc4446);}this['_applyOperations'](_0xbbeea0,_0x2941f7,_0x1a863a);}['_applyOperations'](_0x413f9d,_0x1ab411,_0x2a2741){for(const _0x312d44 of this['source']['getOperations'](_0x413f9d,_0x1ab411))this['_handleOperation'](_0x312d44,_0x2a2741);for(const _0x205bc3 of this['_diffRoots']['values']())_0x205bc3['markers']['clear']();for(const [_0x14e435,_0x54cde4]of this['_markers']){this['_diffRoots']['get'](_0x54cde4['root']['rootName'])['markers']['set'](_0x14e435,_0x54cde4['clone']());}const _0x27e6d8=new Map(),_0x598880=new Map();for(const [_0x59f271,_0x408c22]of this['_diffRoots'])_0x27e6d8['set'](_0x59f271,T(_0x408c22)),_0x598880['set'](_0x59f271,this['_diffRootsAttributes']['get'](_0x59f271));this['_saveMetaData'](_0x1ab411,_0x27e6d8,this['_markers'],_0x598880);}['_getPreviousFrom'](_0x3ec419){const _0x2985b4=Array['from'](this['_savedMetaData']['keys']());_0x2985b4['sort']((_0x3e1271,_0xe9eb4f)=>_0x3e1271-_0xe9eb4f),_0x2985b4['reverse']();for(const _0x415644 of _0x2985b4)if(_0x415644<_0x3ec419)return _0x415644;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x23704c,_0x5d743e){const _0x593076=Array['from'](_0x5d743e['markers'])['map'](([_0x3a7a28,_0x212433])=>[_0x3a7a28,this['_fixRange'](_0x212433,_0x23704c)]);_0x23704c['markers']=new Map(_0x593076);}['_transformMarkers'](_0x2f3e85){for(const _0x5480a3 of this['_markers']['values']()){const _0x277d5d=_0x5480a3['getTransformedByOperation'](_0x2f3e85),_0x2a91dc=ft['_createFromRanges'](_0x277d5d);_0x5480a3['start']=_0x2a91dc['start'],_0x5480a3['end']=_0x2a91dc['end'];}}['_handleOperation'](_0x2fb335,_0x4d8048){if('addRoot'!=_0x2fb335['type']&&'detachRoot'!=_0x2fb335['type']){if('insert'==_0x2fb335['type']){const _0x578285=_0x2fb335['position']['root']['rootName'];this['_diffRoots']['has'](_0x578285)||(this['_diffRoots']['set'](_0x578285,F(_0x578285,!0x0)),this['_diffRootsAttributes']['set'](_0x578285,{}),_0x4d8048&&this['_idsRoots']['set'](_0x578285,F(_0x578285,!0x0)));}else{if('addRootAttribute'==_0x2fb335['type']||'removeRootAttribute'==_0x2fb335['type']||'changeRootAttribute'==_0x2fb335['type'])return void this['_handleRootAttributeOperation'](_0x2fb335);'marker'==_0x2fb335['type']&&this['_handleMarkerOperation'](_0x2fb335);}if('marker'!==_0x2fb335['type']){const _0x3e1a8f=this['_cloneOperation'](_0x2fb335,this['_diffRoots']);_0x3e1a8f['_execute'](),this['_transformMarkers'](_0x3e1a8f);}if(_0x4d8048)switch(_0x2fb335['type']){case'insert':this['_handleInsertOperation'](_0x2fb335);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2fb335);break;case'merge':this['_handleMergeOperation'](_0x2fb335);break;case'split':this['_handleSplitOperation'](_0x2fb335);}}else this['_handleRootOperation'](_0x2fb335,_0x4d8048);}['_cloneOperation'](_0x1208a6,_0x567b62){const _0x3e11f9=_0x1208a6['clone']();return _0x3e11f9['_authorId']=_0x1208a6['_authorId'],this['_fixOperation'](_0x3e11f9,_0x567b62),_0x3e11f9;}['_getBaseVids'](_0x20f66a){return _0x20f66a['map'](_0x3bcdf3=>{const _0x3183ce=this['_getVidAttributeName'](_0x3bcdf3);return Number(_0x3bcdf3['item']['getAttribute'](_0x3183ce));});}['_generateTape'](_0x292713,_0x453307){if(_0x292713['is']('element','$text'))_0x453307['push']({'item':_0x292713,'type':'text'});else{_0x292713['is']('element')&&_0x453307['push']({'item':_0x292713,'type':'elementStart'});for(const _0x3dad3d of _0x292713['getChildren']())this['_generateTape'](_0x3dad3d,_0x453307);_0x292713['is']('element')&&_0x453307['push']({'item':_0x292713,'type':'elementEnd'});}return _0x453307;}['_getState'](){const _0x2fd277=new Map(this['_touched']),_0x424ff9=new Map(_0x2fd277),_0x171329=new Map(),_0x170ad1={'insertions':{},'deletions':{}},_0x17e320={'insertions':{},'deletions':{}},_0x29d4f0=new Map(),_0x48c366=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x48c366['delete']('$graveyard');for(const _0x5b1531 of _0x48c366){const _0x2a6dfe=this['_diffRoots']['get'](_0x5b1531)||F(_0x5b1531,!0x1),_0x510c22=this['_baseRoots']['get'](_0x5b1531)||F(_0x5b1531,!0x1);_0x2a6dfe['isAttached']()||_0x510c22['isAttached']()?(_0x170ad1['insertions'][_0x5b1531]=T(_0x2a6dfe),_0x170ad1['deletions'][_0x5b1531]=T(_0x510c22),this['_copyMarkers'](_0x170ad1['deletions'][_0x5b1531],_0x510c22),this['_copyMarkers'](_0x170ad1['insertions'][_0x5b1531],_0x2a6dfe),_0x17e320['insertions'][_0x5b1531]=this['_generateTape'](this['_idsRoots']['get'](_0x5b1531),[]),_0x17e320['deletions'][_0x5b1531]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5b1531)||F(_0x5b1531,!0x1),[])):_0x48c366['delete'](_0x5b1531);}for(const _0xa475f of _0x48c366){const _0x3d6823=_0x17e320['insertions'][_0xa475f];for(const _0x528ada of _0x3d6823){const _0x315c65=this['_getVidAttributeName'](_0x528ada),_0x34ba7d=_0x528ada['item']['getAttribute'](_0x315c65);_0x424ff9['delete'](_0x34ba7d),_0x34ba7d>=this['_startingRevisionId']&&_0x171329['set'](_0x34ba7d,_0x2fd277['get'](_0x34ba7d));}}for(const _0x215fd4 of _0x48c366){const _0x3185c5=_0x17e320['insertions'][_0x215fd4],_0x8080a1=this['_getBaseVids'](_0x17e320['deletions'][_0x215fd4]);let _0x401d39=0x0;for(const _0x546d74 of _0x3185c5){const _0x427288=this['_getVidAttributeName'](_0x546d74),_0x37c659=_0x546d74['item']['getAttribute'](_0x427288);if(!_0x171329['has'](_0x37c659)&&!_0x29d4f0['has'](_0x37c659)){if(_0x424ff9['has'](_0x37c659))_0x401d39++;else{if(_0x37c659!=_0x8080a1[_0x401d39]){const _0x489b32=_0x2fd277['get'](_0x37c659)||_0x2fd277['get'](_0x8080a1[_0x401d39]);for(;_0x37c659!=_0x8080a1[_0x401d39];)_0x424ff9['has'](_0x8080a1[_0x401d39])||(_0x29d4f0['set'](_0x8080a1[_0x401d39],_0x489b32),_0x2fd277['set'](_0x8080a1[_0x401d39],_0x489b32)),_0x401d39++;}_0x401d39++;}}}}for(const _0x489a90 of _0x48c366){const _0x4bd62c=_0x17e320['insertions'][_0x489a90];for(const _0x119d25 of _0x4bd62c){const _0x9e5208=this['_getVidAttributeName'](_0x119d25),_0x48e93b=_0x119d25['item']['getAttribute'](_0x9e5208);if(_0x29d4f0['has'](_0x48e93b)){const _0x376397=_0x29d4f0['get'](_0x48e93b);_0x424ff9['has'](_0x48e93b)||_0x424ff9['set'](_0x48e93b,{..._0x376397}),_0x171329['set'](_0x48e93b,{..._0x376397});}}}for(const _0x26d09e of _0x424ff9['keys']())_0x26d09e>=this['_startingRevisionId']&&_0x424ff9['delete'](_0x26d09e);const _0x4c8649=new Map();for(const _0x27a186 of _0x48c366){let _0x5e17b1=_0x17e320['insertions'][_0x27a186];for(const _0x19f8ec of _0x5e17b1)if(_0x19f8ec['item']['is']('element','tableCell')){const _0x296109=this['_getVidAttributeName'](_0x19f8ec),_0x504291=_0x19f8ec['item']['getAttribute'](_0x296109);if(_0x171329['has'](_0x504291)){const _0x5c305f=_0x19f8ec['item']['parent']['parent']['getAttribute']('vid_start'),_0x2831b5=_0x4c8649['get'](_0x5c305f)||new Set();_0x2831b5['add'](_0x171329['get'](_0x504291)['userId']),_0x4c8649['set'](_0x5c305f,_0x2831b5);}}_0x5e17b1=_0x17e320['deletions'][_0x27a186];for(const _0x3d8e4e of _0x5e17b1)if(_0x3d8e4e['item']['is']('element','tableCell')){const _0x36771d=this['_getVidAttributeName'](_0x3d8e4e),_0x31e92c=_0x3d8e4e['item']['getAttribute'](_0x36771d);if(_0x424ff9['has'](_0x31e92c)){const _0x2912fd=_0x3d8e4e['item']['parent']['parent']['getAttribute']('vid_start'),_0x57f6cf=_0x4c8649['get'](_0x2912fd)||new Set();_0x57f6cf['add'](_0x424ff9['get'](_0x31e92c)['userId']),_0x4c8649['set'](_0x2912fd,_0x57f6cf);}}for(const _0x146df5 of _0x4c8649['keys']())(_0x171329['has'](_0x146df5)||_0x424ff9['has'](_0x146df5))&&_0x4c8649['delete'](_0x146df5);}for(const _0x3bd198 of _0x48c366){const _0x4abe8f=_0x17e320['insertions'][_0x3bd198];let _0x4a3706=null,_0x340afd=null;for(const _0x55f4fd of _0x4abe8f){const _0x317572=this['_getVidAttributeName'](_0x55f4fd),_0x223533=_0x55f4fd['item']['getAttribute'](_0x317572),_0xa184f3=_0x4c8649['get'](_0x223533);_0xa184f3&&'elementStart'==_0x55f4fd['type']&&(_0x4a3706=Array['from'](_0xa184f3)[0x0],_0x340afd=_0x55f4fd['item']['getAttribute']('vid_end')),_0x4a3706&&(_0x424ff9['set'](_0x223533,{'userId':_0x4a3706}),_0x171329['set'](_0x223533,{'userId':_0x4a3706})),_0x223533==_0x340afd&&(_0x4a3706=null,_0x340afd=null);}}const _0x2dea4f={},_0x5e27d8=new Set();for(const _0x4c6caf of _0x48c366){const _0x1f68db=_0x170ad1['deletions'][_0x4c6caf],_0x264e61=_0x170ad1['insertions'][_0x4c6caf];for(const {userId:_0x35124d}of this['_touchedMarkers']['values']())null!==_0x35124d&&_0x5e27d8['add'](_0x35124d);for(const {userId:_0x4f7534}of this['_touchedRoots']['values']())null!==_0x4f7534&&_0x5e27d8['add'](_0x4f7534);this['_markChanges'](_0x264e61,_0x17e320['insertions'][_0x4c6caf],_0x171329,'insertion',_0x5e27d8),this['_markChanges'](_0x1f68db,_0x17e320['deletions'][_0x4c6caf],_0x424ff9,'deletion',_0x5e27d8),_0x2dea4f[_0x4c6caf]={'insertions':this['_prepareViewToSave'](_0x264e61),'deletions':this['_prepareViewToSave'](_0x1f68db),'attachChange':this['_touchedRoots']['get'](_0x4c6caf)||null,'attributesBefore':_0x17f390(this['_baseRootsAttributes']['get'](_0x4c6caf))||{},'attributesAfter':_0x17f390(this['_diffRootsAttributes']['get'](_0x4c6caf))};}return{'diffData':_0x2dea4f,'authorsIds':Array['from'](_0x5e27d8)};}['_processRootBeforeSave'](_0x122d4f){for(const [,_0x5b1b92]of _0x122d4f['markers']){const _0x3e4a7c=_0x5b1b92['start']['getAncestors']()['filter'](_0x42ac20=>'tableCell'==_0x42ac20['name']);for(const _0x575d00 of _0x3e4a7c)0x1==_0x575d00['childCount']&&_0x575d00['getChild'](0x0)['is']('element','paragraph')&&_0x575d00['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4591d1){this['_processRootBeforeSave'](_0x4591d1);const _0x737871=this['editor']['data']['toView'](_0x4591d1,{}),_0x3d47bf=Array['from'](_0x737871['getChildren']())['map'](_0x4d6329=>this['_getViewJson'](_0x4d6329));return JSON['stringify'](_0x3d47bf);}['_getViewJson'](_0x1c613f){if(_0x1c613f['is']('$text'))return _0x1c613f['data'];{const _0x470e0e=_0x1c613f;return{'type':Object['keys'](E)['find'](_0x2e6529=>_0x1c613f instanceof E[_0x2e6529]),'name':_0x470e0e['name'],'attributes':Array['from'](_0x470e0e['getAttributes']()),'children':Array['from'](_0x470e0e['getChildren']())['map'](_0x2435a1=>this['_getViewJson'](_0x2435a1))};}}['_markChanges'](_0x3dd725,_0x189ef7,_0x478af6,_0x324de8,_0x2a3134){let _0x3f108f=null,_0x5af66c=null,_0x1766e2=0x0;const _0x46fe23=this['editor']['model'];for(let _0x17137d=0x0;_0x17137d<_0x189ef7['length'];_0x17137d++){const _0x2d8ca1=this['_getVidAttributeName'](_0x189ef7[_0x17137d]),_0x168b96=_0x189ef7[_0x17137d]['item']['getAttribute'](_0x2d8ca1),_0x47fdbd=_0x478af6['get'](_0x168b96),_0x327544=_0x17137d==_0x189ef7['length']-0x1;(!_0x3f108f&&_0x47fdbd&&(_0x3f108f=_0x47fdbd,_0x5af66c=_0x189ef7[_0x17137d]),_0x3f108f&&(!_0x47fdbd||_0x47fdbd['userId']!=_0x3f108f['userId']))&&(_0x16d450(_0x47fdbd,B(_0x5af66c,_0x3dd725,_0x46fe23),B(_0x189ef7[_0x17137d],_0x3dd725,_0x46fe23)),_0x3f108f=_0x47fdbd||null,_0x5af66c=_0x47fdbd?_0x189ef7[_0x17137d]:null),_0x3f108f&&_0x327544&&_0x16d450(_0x47fdbd,B(_0x5af66c,_0x3dd725,_0x46fe23),J(_0x189ef7[_0x17137d],_0x3dd725,_0x46fe23));}function _0x16d450(_0x42d5ab,_0x17be66,_0x368d3a){const _0x33c039=_0x3f108f['userId'],_0x5dbc1c='revision:'+_0x324de8+':'+_0x33c039+':'+_0x1766e2++,_0x13fc22=_0x46fe23['createRange'](_0x17be66,_0x368d3a);_0x3dd725['markers']['set'](_0x5dbc1c,_0x13fc22),null!==_0x33c039&&_0x2a3134['add'](_0x33c039);}}['_getVidAttributeName'](_0x3aad3d){switch(_0x3aad3d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1afaa9,_0x4dc626){_0x1afaa9['baseVersion']=null;for(const _0x1bf8d5 in _0x1afaa9){const _0x30b124=_0x1afaa9[_0x1bf8d5];if(_0x30b124 instanceof vt){const _0x3dcf72=_0x4dc626['get'](_0x30b124['root']['rootName']);_0x1afaa9[_0x1bf8d5]=this['_fixPosition'](_0x30b124,_0x3dcf72);}if(_0x30b124 instanceof ft){const _0x694d2d=_0x4dc626['get'](_0x30b124['root']['rootName']);_0x1afaa9[_0x1bf8d5]=this['_fixRange'](_0x30b124,_0x694d2d);}'root'===_0x1bf8d5&&(_0x1afaa9['root']=_0x4dc626['get'](_0x1afaa9['root']['rootName']));}}['_fixRange'](_0x34f44f,_0x4b19a6){return this['editor']['model']['createRange'](this['_fixPosition'](_0x34f44f['start'],_0x4b19a6),this['_fixPosition'](_0x34f44f['end'],_0x4b19a6));}['_fixPosition'](_0x10a5fa,_0x3ffb5e){return this['editor']['model']['createPositionFromPath'](_0x3ffb5e,_0x10a5fa['path'],_0x10a5fa['stickiness']);}['_handleInsertOperation'](_0x5706da){const _0xd0de45=this['_idsRoots']['get'](_0x5706da['position']['root']['rootName']),_0x4a7417=this['_fixPosition'](_0x5706da['position'],_0xd0de45),_0xed6a91=null===_0x5706da['_authorId']?null:_0x5706da['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36e286=_0x4a7417['parent'],_0x4f5fca=this['_revisionId'],_0x2381a7=[];for(const _0xeb1a2d of _0x5706da['nodes'])if(_0xeb1a2d['is']('element'))_0x2381a7['push'](this['_makeIdsRoot'](_0xeb1a2d));else{for(let _0x5be7ff=0x0;_0x5be7ff<_0xeb1a2d['offsetSize'];_0x5be7ff++)_0x2381a7['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3a630f=this['_revisionId'];for(let _0x259a30=_0x4f5fca;_0x259a30<_0x3a630f;_0x259a30++)this['_touched']['set'](_0x259a30,{'userId':_0xed6a91});_0x36e286['_insertChild'](_0x4a7417['offset'],_0x2381a7);}['_handleMoveOperation'](_0x35b755){(_0x35b755=this['_cloneOperation'](_0x35b755,this['_idsRoots']))['_execute']();const _0x564f32=null===_0x35b755['_authorId']?null:_0x35b755['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x581172=_0x35b755['getMovedRangeStart'](),_0x1259c8=_0x581172['parent'],_0xb556f3=_0x581172['offset'];!function _0x3bda83(_0x28bef7,_0x19c76b,_0x23215b,_0x2921ec){for(let _0x33f43b=_0x23215b;_0x33f43b<_0x2921ec;_0x33f43b++){const _0x2782f5=_0x19c76b['getChild'](_0x33f43b);_0x2782f5['is']('element','$text')?_0x28bef7['set'](_0x2782f5['getAttribute']('vid'),{'userId':_0x564f32}):(_0x28bef7['set'](_0x2782f5['getAttribute']('vid_start'),{'userId':_0x564f32}),_0x3bda83(_0x28bef7,_0x2782f5,0x0,_0x2782f5['childCount']),_0x28bef7['set'](_0x2782f5['getAttribute']('vid_end'),{'userId':_0x564f32}));}}(this['_touched'],_0x1259c8,_0xb556f3,_0xb556f3+_0x35b755['howMany']);}['_handleMergeOperation'](_0xba0853){const _0x123217=null===(_0xba0853=this['_cloneOperation'](_0xba0853,this['_idsRoots']))['_authorId']?null:_0xba0853['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4493b9=_0xba0853['targetPosition']['parent'],_0x317007=_0xba0853['sourcePosition']['parent'],_0x36ae16=_0x4493b9['getAttribute']('vid_end'),_0x197a35=_0x317007['getAttribute']('vid_start');_0x4493b9['_setAttribute']('vid_end',_0x317007['getAttribute']('vid_end')),_0x317007['_setAttribute']('vid_end',_0x36ae16),this['_touched']['set'](_0x197a35,{'userId':_0x123217}),this['_touched']['set'](_0x36ae16,{'userId':_0x123217}),_0xba0853['_execute']();}['_handleSplitOperation'](_0x242564){const _0x56f7a4=null===(_0x242564=this['_cloneOperation'](_0x242564,this['_idsRoots']))['_authorId']?null:_0x242564['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x417ad2=_0x242564['graveyardPosition'],_0x21f862=_0x242564['splitPosition']['parent'];_0x242564['_execute']();const _0x87b7c4=_0x21f862['getAttribute']('vid_end'),_0x1c3d6a=_0x242564['insertionPosition']['nodeAfter'];if(_0x417ad2){const _0x248da8=_0x1c3d6a['getAttribute']('vid_end'),_0x42ba14=_0x21f862['getAttribute']('vid_end');_0x21f862['_setAttribute']('vid_end',_0x248da8),_0x1c3d6a['_setAttribute']('vid_end',_0x42ba14),this['_touched']['set'](_0x21f862['getAttribute']('vid_end'),{'userId':_0x56f7a4}),this['_touched']['set'](_0x1c3d6a['getAttribute']('vid_start'),{'userId':_0x56f7a4});}else{const _0x1af353=this['_revisionId']++,_0x9bb77b=this['_revisionId']++;_0x21f862['_setAttribute']('vid_end',_0x1af353),_0x1c3d6a['_setAttribute']('vid_start',_0x9bb77b),_0x1c3d6a['_setAttribute']('vid_end',_0x87b7c4),this['_touched']['set'](_0x1af353,{'userId':_0x56f7a4}),this['_touched']['set'](_0x9bb77b,{'userId':_0x56f7a4});}}['_handleMarkerOperation'](_0x18708e){if(!_0x18708e['affectsData'])return;const _0x2c10de=(_0x18708e=this['_cloneOperation'](_0x18708e,this['_diffRoots']))['oldRange']?_0x18708e['oldRange']['root']:null,_0x1b41cd=_0x18708e['newRange']?_0x18708e['newRange']['root']:null;_0x2c10de&&this['_markers']['delete'](_0x18708e['name']),_0x1b41cd&&this['_markers']['set'](_0x18708e['name'],_0x18708e['newRange']['clone']());const _0x4ba253=null===_0x18708e['_authorId']?null:_0x18708e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c0e7f=_0x18708e['name'];if(!this['_touchedMarkers']['has'](_0x3c0e7f))return void this['_touchedMarkers']['set'](_0x3c0e7f,{'range':_0x18708e['oldRange'],'userId':_0x4ba253});const _0x6fa98d=this['_touchedMarkers']['get'](_0x3c0e7f),_0x66ee25=_0x6fa98d['range'],_0x5d217a=_0x18708e['newRange'];null==_0x66ee25&&null==_0x5d217a||_0x66ee25&&_0x5d217a&&_0x66ee25['isEqual'](_0x5d217a)?this['_touchedMarkers']['delete'](_0x18708e['name']):_0x6fa98d['userId']=_0x4ba253;}['_handleRootOperation'](_0x4e1cfd,_0x324151){this['_diffRoots']['has'](_0x4e1cfd['rootName'])?this['_diffRoots']['get'](_0x4e1cfd['rootName'])['_isAttached']=_0x4e1cfd['isAdd']:(this['_diffRoots']['set'](_0x4e1cfd['rootName'],F(_0x4e1cfd['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4e1cfd['rootName'],{}),_0x324151&&this['_idsRoots']['set'](_0x4e1cfd['rootName'],F(_0x4e1cfd['rootName'],!0x0)));const _0x395163=null===_0x4e1cfd['_authorId']?null:_0x4e1cfd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x369dd2=this['_touchedRoots']['get'](_0x4e1cfd['rootName']);_0x369dd2&&_0x369dd2['userId']===_0x395163?this['_touchedRoots']['delete'](_0x4e1cfd['rootName']):this['_touchedRoots']['set'](_0x4e1cfd['rootName'],{'userId':_0x395163,'isAttached':_0x4e1cfd['isAdd']});}['_handleRootAttributeOperation'](_0x4efb6c){const _0x1879bc=this['_diffRootsAttributes']['get'](_0x4efb6c['root']['rootName']);null===_0x4efb6c['newValue']?delete _0x1879bc[_0x4efb6c['key']]:_0x1879bc[_0x4efb6c['key']]=_0x4efb6c['newValue'];}}function T(_0x4eede9){const _0x2597fc=F(_0x4eede9['rootName'],_0x4eede9['isAttached']());for(const _0x70ba97 of _0x4eede9['getChildren']()){const _0x20a710=_0x70ba97['_clone'](!0x0);_0x2597fc['_appendChild'](_0x20a710);}return _0x2597fc;}function F(_0x5c0391,_0x2e59aa=!0x0){const _0x45c6fe=new gt();return _0x45c6fe['rootName']=_0x5c0391,_0x45c6fe['_isAttached']=_0x2e59aa,_0x45c6fe['isAttached']=()=>_0x45c6fe['_isAttached'],_0x45c6fe;}function B(_0x440302,_0x5f2ebe,_0x52d3cf){const _0x58eb14='elementEnd'==_0x440302['type']?_0x52d3cf['createPositionAt'](_0x440302['item'],'end'):_0x52d3cf['createPositionBefore'](_0x440302['item']);return _0x52d3cf['createPositionFromPath'](_0x5f2ebe,_0x58eb14['path'],_0x58eb14['stickiness']);}function J(_0x51ef4f,_0x379bdd,_0x2827d2){const _0x5d00f9='elementStart'==_0x51ef4f['type']?_0x2827d2['createPositionAt'](_0x51ef4f['item'],0x0):_0x2827d2['createPositionAfter'](_0x51ef4f['item']);return _0x2827d2['createPositionFromPath'](_0x379bdd,_0x5d00f9['path'],_0x5d00f9['stickiness']);}class os extends _0x525a1d{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5812ae,_0x3f5bb3){super(_0x5812ae),this['focusTracker']=new _0x56b250(),this['keystrokes']=new _0xe5d47(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3f5bb3),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'](),_0x124e02({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x21acbc=_0x42d694=>_0x42d694['stopPropagation']();this['keystrokes']['set']('arrowright',_0x21acbc),this['keystrokes']['set']('arrowleft',_0x21acbc),this['keystrokes']['set']('arrowup',_0x21acbc),this['keystrokes']['set']('arrowdown',_0x21acbc);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x46c0e4){this['revisionNameInputView']['fieldView']['element']['value']=_0x46c0e4['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x427ada){const _0x196554=new at(this['locale'],ti),_0x49a175=_0x196554['fieldView'];_0x49a175['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x581460=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x427ada&&(_0x581460+='\x20('+m(this['locale'],'optional')+')'),(_0x196554['label']=_0x581460,_0x49a175['on']('input',()=>{this['revisionNameInputValue']=_0x49a175['element']['value']['trim']();}),_0x196554);}}class f extends _0x26f450{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4c73f5=this['editor'],_0x57fd56=_0x4c73f5['plugins']['get']('RevisionTracker');_0x4c73f5['ui']['componentFactory']['add']('revisionHistory',_0x608c0=>{const _0x3d971b=_0x290b2b(_0x608c0),_0x1f5083=_0x3d971b['panelView']['children'],_0x3c5790=new _0x148aee(_0x608c0),_0x2cfeea=new te(_0x608c0),_0x17d66d=new _0x278200(_0x608c0),_0x3b896f=new te(_0x608c0),_0x4076a0=new _0x278200(_0x608c0);return _0x3d971b['bind']('isEnabled')['to'](_0x57fd56,'isReady',_0x57fd56,'isEnabled',_0x4c73f5,'isReadOnly',(_0x4ca333,_0x47019b,_0x1662e6)=>_0x4ca333&&_0x47019b&&!_0x1662e6),_0x3d971b['buttonView']['set']({'icon':_0x5ce4fd,'label':m(_0x608c0,'Revision\x20history'),'tooltip':!0x0}),_0x17d66d['set']({'label':m(_0x608c0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x17d66d['bind']('isEnabled')['to'](_0x57fd56,'isReady',_0x57fd56,'isEnabled',_0x4c73f5,'isReadOnly',(_0x3474a9,_0x29cd55,_0x121e42)=>_0x3474a9&&_0x29cd55&&!_0x121e42),_0x17d66d['on']('execute',()=>this['_showDialog']()),_0x4076a0['set']({'label':m(_0x608c0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4076a0['bind']('isEnabled')['to'](_0x57fd56,'isReady',_0x4c73f5,'isReadOnly',(_0x26864b,_0x4c3727)=>_0x26864b&&!_0x4c3727),_0x4076a0['on']('execute',()=>{_0x4c73f5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3d971b['isOpen']=!0x1,_0x4c73f5['editing']['view']['focus']();}),_0x2cfeea['children']['add'](_0x17d66d),_0x3b896f['children']['add'](_0x4076a0),_0x3c5790['role']='menu',_0x3c5790['items']['addMany']([_0x2cfeea,_0x3b896f]),_0x1f5083['add'](_0x3c5790),_0x3d971b;}),_0x4c73f5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x17043d=this['editor'],_0x3895ee=_0x17043d['locale'],_0xb6acc1=new _0x56f35c(_0x3895ee),_0x2e7d61=new _0x5df39b(_0x3895ee);_0xb6acc1['buttonView']['set']({'icon':_0x5ce4fd,'label':m(_0x3895ee,'Revision\x20history')});const _0x55a512=new _0x63b3db(_0x3895ee,_0xb6acc1),_0x3f7b79=new _0x2550e0(_0x3895ee);_0x3f7b79['set']({'label':m(_0x3895ee,'Save\x20current\x20revision')}),_0x3f7b79['delegate']('execute')['to'](_0xb6acc1),_0x3f7b79['on']('execute',()=>{this['_showDialog']();}),_0x55a512['children']['add'](_0x3f7b79),_0x2e7d61['items']['add'](_0x55a512);const _0x1f9f27=new _0x63b3db(_0x3895ee,_0xb6acc1),_0x3fd528=new _0x2550e0(_0x3895ee);return _0x3fd528['set']({'label':m(_0x3895ee,'Open\x20revision\x20history')}),_0x3fd528['delegate']('execute')['to'](_0xb6acc1),_0x3fd528['on']('execute',()=>{_0x17043d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1f9f27['children']['add'](_0x3fd528),_0x2e7d61['items']['add'](_0x1f9f27),_0xb6acc1['panelView']['children']['add'](_0x2e7d61),_0xb6acc1;}['_showDialog'](){const _0x206733=this['editor'],_0x39374d=_0x206733['locale'],_0x3c80c5=_0x206733['plugins']['get']('Dialog'),_0x5be687=_0x206733['plugins']['get']('RevisionTracker');function _0x47c77a(_0x5eb7d1){_0x206733['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5eb7d1['revisionName']?_0x5eb7d1['revisionNameInputView']['errorText']=m(_0x39374d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x206733['plugins']['get'](u)['saveRevision']({'name':_0x5eb7d1['revisionName']}),_0x3c80c5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x47c77a(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3c80c5['show']({'id':'revisionSave','title':m(_0x39374d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x206733['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3c80c5['hide']()},{'label':m(_0x206733['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x11a75f){_0x11a75f['bind']('isEnabled')['to'](_0x5be687,'isReady',_0x5be687,'isEnabled',_0x206733,'isReadOnly',(_0x38297c,_0x27efa8,_0x210250)=>_0x38297c&&_0x27efa8&&!_0x210250);},'onExecute':()=>_0x47c77a(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3e94b3=this['editor'],_0x379231=_0x3e94b3['locale'];this['_saveRevisionFormView']=new os(_0x379231,_0x3e94b3['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x525a1d{['changeId'];['_model'];constructor(_0x34621a,_0xa16f6c){super(_0x34621a),this['_model']=_0xa16f6c,this['changeId']=_0xa16f6c['id'];const _0x262bd8=this['bindTemplate'],_0x369ac6=m(_0x34621a,_0xa16f6c['data']['isSuggestion']?'Suggested\x20by':'add'==_0xa16f6c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xa16f6c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x262bd8['to']('type',_0x1da274=>'ck-revision-change__'+_0x1da274)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x369ac6}]},{'text':'\x20'+_0xa16f6c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0xcb1cec(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x571764){super(),this['id']=_0x571764['id']||_0x47cd61(),this['author']=_0x571764['author'],this['type']=_0x571764['type'],this['data']=_0x571764['data']||{},this['rootName']=_0x571764['rootName'],this['set']('createdAt',_0x571764['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(_0xab5fe3,_0x2e6b25){this['newRevisionId']=_0xab5fe3,this['oldRevisionId']=_0x2e6b25,this['changes']=new _0xc0b39c();}['_setChanges'](_0x26c65d){for(const _0x8b608a of _0x26c65d)this['changes']['add'](_0x8b608a);}}const Y={'c':_0x3e4f10,'a':_0x122c61,'e':_0x5a2ecc,'r':_0x45c87a,'u':_0x2af098};class d extends _0x26f450{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xbb1ed5,_0x4fc96b,j];}constructor(_0x2b2a44){super(_0x2b2a44),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0xa3a052,_0x2bd4ce,_0xcb287f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5b9d4b=>{for(const _0x1e647c of this['editor']['editing']['view']['document']['roots'])_0xcb287f?_0x5b9d4b['removeClass']('ck-editor__editable__overlay',_0x1e647c):_0x5b9d4b['addClass']('ck-editor__editable__overlay',_0x1e647c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x447979=>null!==_0x447979),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3c58a8,_0x1c6e5a,_0x12d7f5)=>_0x3c58a8&&_0x12d7f5?_0x1c6e5a['changes']['getIndex'](_0x12d7f5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3b3f95,_0x261b79)=>_0x3b3f95?_0x261b79['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4fc96b);}['init'](){const _0x1406e3=this['editor'],_0x4aaf62=new yt(_0x1406e3,{'direction':'backward'}),_0x5b5544=new yt(_0x1406e3,{'direction':'forward'});(_0x1406e3['commands']['add']('showPreviousChange',_0x4aaf62),_0x1406e3['commands']['add']('showNextChange',_0x5b5544),_0x1406e3['commands']['add']('restoreRevision',new _t(_0x1406e3)),this['on']('change:numberOfChanges',()=>{_0x4aaf62['refresh'](),_0x5b5544['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1406e3['enableReadOnlyMode']('revision-viewer'),_0x1406e3['plugins']['has']('WidgetToolbarRepository'))&&_0x1406e3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x29e4fe){await this['loadRevisionData'](_0x29e4fe);const _0x47b552={};for(const _0x5c8a36 in _0x29e4fe['diffData']){if(_0x29e4fe['diffData'][_0x5c8a36]['attachChange']&&!_0x29e4fe['diffData'][_0x5c8a36]['attachChange']['isAttached'])continue;const _0x4b99d5=this['_removeRevisionMarkers'](JSON['parse'](_0x29e4fe['diffData'][_0x5c8a36]['insertions'])),_0x515674=this['editor']['editing']['view']['document'],_0x2e3de6=new _0x53812f(_0x515674,_0x4b99d5['map'](_0x438901=>this['_getViewObj'](_0x438901)));this['editor']['data']['processor']['useFillerType']('marked'),_0x47b552[_0x5c8a36]=this['editor']['data']['processor']['toData'](_0x2e3de6),this['editor']['data']['processor']['useFillerType']('default');}return _0x47b552;}async['getRevisionRootsAttributes'](_0x168f34){await this['loadRevisionData'](_0x168f34);const _0x415c9e={};for(const _0x2bce3c in _0x168f34['diffData'])_0x168f34['diffData'][_0x2bce3c]['attachChange']&&!_0x168f34['diffData'][_0x2bce3c]['attachChange']['isAttached']||(_0x415c9e[_0x2bce3c]=_0x168f34['diffData'][_0x2bce3c]['attributesAfter']||{});return _0x415c9e;}['_removeRevisionMarkers'](_0x246c12){return(_0x246c12=_0x246c12['filter'](_0x136315=>!_0x136315['name']||'revision-start'!==_0x136315['name']&&'revision-end'!==_0x136315['name']))['forEach'](_0x3f9a06=>{'string'!=typeof _0x3f9a06&&(_0x3f9a06['children']=this['_removeRevisionMarkers'](_0x3f9a06['children']),_0x3f9a06['attributes']=_0x3f9a06['attributes']['filter'](_0x14744e=>!_0x14744e[0x0]['startsWith']('data-revision-')));}),_0x246c12;}async['compare'](_0xd3c0ed,_0x5ba0c3,_0x172515=!0x1){if(!this['isEnabled'])return;const _0x162b1d=this['diff'],_0x2bb9e9=this['repository'],_0x1fee5d='string'==typeof _0xd3c0ed?_0x2bb9e9['getRevision'](_0xd3c0ed):_0xd3c0ed,_0x13bf17='string'==typeof _0x5ba0c3?_0x2bb9e9['getRevision'](_0x5ba0c3):_0x5ba0c3,_0x1003ff=_0x1fee5d['id'],_0x74ef86=_0x13bf17?_0x13bf17['id']:null;if(!_0x172515&&this['diff']&&this['diff']['newRevisionId']===_0x1003ff&&this['diff']['oldRevisionId']===_0x74ef86)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1003ff,_0x74ef86);const _0x1ad084=this['_getRevisionsRange'](_0x1fee5d,_0x13bf17,!0x0)['map'](_0x10ffa4=>this['loadRevisionData'](_0x10ffa4));return _0x1ad084['push'](new Promise(_0x36a784=>{setTimeout(_0x36a784,0x14);})),Promise['all'](_0x1ad084)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xf11628=this['_getDiff'](_0x1003ff,_0x74ef86);for(const _0x38b9d3 of _0xf11628['changes'])this['_changeIdToChange']['set'](_0x38b9d3['id'],_0x38b9d3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1669d2=>{for(const _0x3ad5d9 of this['editor']['model']['document']['getRootNames']())_0x1669d2['detachRoot'](_0x3ad5d9);for(const _0x11abc2 of Object['keys'](_0xf11628['model'])){const _0x2b9a6e=_0x1669d2['addRoot'](_0x11abc2);for(const _0x1e5399 of Object['keys'](_0xf11628['attributes'][_0x11abc2]))_0x1669d2['setAttribute'](_0x1e5399,_0xf11628['attributes'][_0x11abc2][_0x1e5399],_0x2b9a6e);_0x1669d2['insert'](_0xf11628['model'][_0x11abc2],_0x2b9a6e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xf11628['changes'])),this['isReady']=!0x0;})['catch'](_0x166126=>{console['error'](_0x166126),this['_cleanUp'](),_0x162b1d&&(this['diff']=_0x162b1d),this['isReady']=!0x0;});}['addRevisionData'](_0xb5e662,_0x7cb3eb){const _0x229671=this['repository']['createRevision'](_0xb5e662);return _0x229671['on']('_update',(_0x246fb8,_0x41aed8,_0x3ba44d)=>_0x7cb3eb(_0x41aed8,_0x3ba44d,_0x229671)),this['repository']['addRevision'](_0x229671),_0x229671;}['loadRevisionData'](_0x1b4fb2){if(!_0x1b4fb2||_0x1b4fb2['diffData'])return Promise['resolve']();{const _0x4d1a1b=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4d1a1b,'revisionId':_0x1b4fb2['id']})['then'](_0x3d0973=>{_0x1b4fb2['_update']({'diffData':_0x3d0973['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4bb116=>{for(const _0x291b17 of this['editor']['model']['document']['getRootNames']())_0x4bb116['detachRoot'](_0x291b17);});}['_sortAndFilterDiffChanges'](_0x3adf80){const _0x47b8f7=[],_0x5d2458=new Map();for(const _0xf6a2d of this['editor']['model']['document']['getRootNames']()){const _0x1fc3a8=this['editor']['editing']['view']['getDomRoot'](_0xf6a2d);if(!_0x1fc3a8)continue;const _0x294ec8=_0x1fc3a8['getClientRects']()['item'](0x0);_0x294ec8&&(_0x47b8f7['push'](_0xf6a2d),_0x5d2458['set'](_0xf6a2d,_0x294ec8));}return _0x47b8f7['sort']((_0x4e9969,_0x2e0326)=>{const _0x520abe=_0x5d2458['get'](_0x4e9969),_0x4e4846=_0x5d2458['get'](_0x2e0326);return _0x520abe['y']-_0x4e4846['y']||_0x520abe['x']-_0x4e4846['x'];}),(_0x3adf80=_0x3adf80['filter'](_0x5505b5=>_0x47b8f7['includes'](_0x5505b5['rootName'])))['sort']((_0x3ec9d9,_0x3aa25b)=>_0x47b8f7['indexOf'](_0x3ec9d9['rootName'])-_0x47b8f7['indexOf'](_0x3aa25b['rootName'])),_0x3adf80;}['_makeTape'](_0xb590a8){const _0x281098=Array['from'](_0xb590a8['markers'])['filter'](([_0x2fc87b,_0x5cad02])=>_0x2fc87b['startsWith']('revision:')&&!_0x5cad02['isCollapsed']),_0x13a1c0=Array['from'](this['editor']['model']['createRangeIn'](_0xb590a8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x281098['length'])for(const _0x360870 of _0x13a1c0){const [_0xb615af,_0x1ee9a5]=_0x281098[0x0],[,_0x4ac5cc,_0x3527f1]=_0xb615af['split'](':');if(_0x1ee9a5['end']['isEqual'](_0x360870['nextPosition'])&&_0x281098['shift'](),(_0x360870['previousPosition']['isEqual'](_0x1ee9a5['start'])||_0x360870['previousPosition']['isAfter'](_0x1ee9a5['start']))&&('insertion'==_0x4ac5cc?_0x360870['isAdded']={'userId':_0x3527f1}:'deletion'==_0x4ac5cc&&(_0x360870['isRemoved']={'userId':_0x3527f1})),0x0==_0x281098['length'])break;}return _0x13a1c0;}['_refreshStartEndIndex'](_0x54aae6){const _0x31b2ff=new Map();for(let _0x2b9410=0x0;_0x2b9410<_0x54aae6['length'];_0x2b9410++)'text'===_0x54aae6[_0x2b9410]['type']?(_0x54aae6[_0x2b9410]['item']['startIndex']=_0x2b9410,_0x54aae6[_0x2b9410]['item']['endIndex']=_0x2b9410):('elementStart'===_0x54aae6[_0x2b9410]['type']?_0x54aae6[_0x2b9410]['item']['startIndex']=_0x2b9410:'elementEnd'===_0x54aae6[_0x2b9410]['type']&&(_0x54aae6[_0x2b9410]['item']['endIndex']=_0x2b9410),_0x31b2ff['set'](_0x54aae6[_0x2b9410]['id'],_0x2b9410));for(const _0x1ed985 of _0x31b2ff['values']())'elementStart'===_0x54aae6[_0x1ed985]['type']?_0x54aae6[_0x1ed985]['item']['endIndex']=_0x31b2ff['get'](_0x54aae6[_0x1ed985]['pairId']):'elementEnd'===_0x54aae6[_0x1ed985]['type']&&(_0x54aae6[_0x1ed985]['item']['startIndex']=_0x31b2ff['get'](_0x54aae6[_0x1ed985]['pairId']));}['_processTape'](_0x103e26){for(let _0x289d24=0x0;_0x289d24<_0x103e26['length'];_0x289d24++){if('elementStart'===_0x103e26[_0x289d24]['type'])_0x103e26[_0x289d24]['item']['startIndex']=_0x289d24;else{if('elementEnd'===_0x103e26[_0x289d24]['type']){_0x103e26[_0x289d24]['item']['endIndex']=_0x289d24;const _0x4e5791=_0x103e26[_0x289d24]['item']['startIndex'];_0x103e26[_0x4e5791]['pairId']=_0x103e26[_0x289d24]['id'],_0x103e26[_0x289d24]['pairId']=_0x103e26[_0x4e5791]['id'];}else _0x103e26[_0x289d24]['item']['startIndex']=_0x289d24,_0x103e26[_0x289d24]['item']['endIndex']=_0x289d24,_0x103e26[_0x289d24]['pairId']=null;}_0x103e26[_0x289d24]['markersStart']||(_0x103e26[_0x289d24]['markersStart']=[],_0x103e26[_0x289d24]['markersEnd']=[]);}}['_markInsertions'](_0x4a485a,_0x5c10a3){const _0x396c65=_0x4a485a['filter'](_0x4df94c=>!_0x4df94c['isAdded']);for(let _0x2c7753=0x0;_0x2c7753<_0x5c10a3['length'];_0x2c7753++)_0x5c10a3[_0x2c7753]['isAdded']&&(_0x396c65[_0x2c7753]['isAdded']=_0x5c10a3[_0x2c7753]['isAdded']);}['_makeModelFromViewString'](_0x4a859c){const _0x4e6c1f=JSON['parse'](_0x4a859c),_0x326e47=this['editor']['editing']['view']['document'],_0x333c76=new _0x53812f(_0x326e47,_0x4e6c1f['map'](_0x54bf6f=>this['_getViewObj'](_0x54bf6f)));return this['editor']['data']['toModel'](_0x333c76);}['_getViewObj'](_0x5a1706){const _0x13dc9b=this['editor']['editing']['view']['document'];if('string'==typeof _0x5a1706)return new _0x2f79b6(_0x13dc9b,_0x5a1706);{const _0x316927=_0x5a1706['children']['map'](_0x5f0bac=>this['_getViewObj'](_0x5f0bac));return new(Y[_0x5a1706['type']]||_0x15bf3f)(_0x13dc9b,_0x5a1706['name'],_0x5a1706['attributes'],_0x316927);}}['_getDiff'](_0x4dacb8,_0x222d5d=null){const _0x113e92=this['repository']['getRevision'](_0x4dacb8),_0x27929d=_0x222d5d?this['repository']['getRevision'](_0x222d5d):null,_0x29269c=this['_getRevisionsRange'](_0x113e92,_0x27929d),_0x475673=_0x29269c[_0x29269c['length']-0x1],_0x322401=new Map(),_0x24eba4={'model':{},'attributes':{},'changes':[]},_0x348d0f=new Set(),_0x5ce9f4=new Map();for(let _0x5c772c=_0x29269c['length']-0x1;_0x5c772c>=0x0;_0x5c772c--){const _0x218e7d=_0x29269c[_0x5c772c];for(const _0x41e79e of Object['keys'](_0x218e7d['diffData']))if(_0x218e7d['diffData'][_0x41e79e]['attachChange']){const _0x348b87=_0x218e7d['diffData'][_0x41e79e]['attachChange'];_0x348b87['isAttached']?(_0x348d0f['add'](_0x41e79e),_0x5ce9f4['has'](_0x41e79e)&&_0x5ce9f4['get'](_0x41e79e)['userId']==_0x348b87['userId']?_0x5ce9f4['delete'](_0x41e79e):_0x5ce9f4['set'](_0x41e79e,_0x348b87)):_0x5ce9f4['has'](_0x41e79e)?(_0x348d0f['delete'](_0x41e79e),_0x5ce9f4['delete'](_0x41e79e)):(_0x348d0f['add'](_0x41e79e),_0x5ce9f4['set'](_0x41e79e,_0x348b87));}else _0x348d0f['add'](_0x41e79e);}for(const _0xb98505 of _0x348d0f){const _0x4d7471=_0x5ce9f4['has'](_0xb98505)&&!_0x5ce9f4['get'](_0xb98505)['isAttached'];let _0x10ab49=_0x4d7471?_0x29269c['length']-0x1:0x0;const _0x2d366e=_0x4d7471?-0x1:0x1;for(;_0x29269c[_0x10ab49];){const _0x57e7b7=_0x29269c[_0x10ab49];if(_0x57e7b7['diffData'][_0xb98505]){const _0x202654=_0x4d7471?_0x57e7b7['diffData'][_0xb98505]['attributesBefore']:_0x57e7b7['diffData'][_0xb98505]['attributesAfter'];_0x24eba4['attributes'][_0xb98505]=_0x202654?_0x17f390(_0x202654):{};break;}_0x10ab49+=_0x2d366e;}}for(const _0x3f114a of _0x29269c){_0x3f114a['model']={};for(const _0x5e4711 of _0x3f114a['authors'])_0x322401['set'](_0x5e4711['id'],_0x5e4711);for(const _0xcf5cf9 of _0x348d0f){const _0x5c3c71=_0x3f114a['diffData'][_0xcf5cf9]?_0x3f114a['diffData'][_0xcf5cf9]['insertions']:'[]',_0x7f8c18=_0x3f114a['diffData'][_0xcf5cf9]?_0x3f114a['diffData'][_0xcf5cf9]['deletions']:'[]';_0x3f114a['model'][_0xcf5cf9]={'insertions':this['_makeModelFromViewString'](_0x5c3c71),'deletions':this['_makeModelFromViewString'](_0x7f8c18)};}}for(const _0x525db7 of _0x348d0f){let _0xad248e=null,_0x97e422=0x0;const _0x2c6d9a=new Map(Array['from'](_0x113e92['model'][_0x525db7]['insertions']['markers'])['filter'](([_0x1f8fb7])=>!_0x1f8fb7['startsWith']('revision:')));let _0xe109c5=0x0;for(const _0x1fbd6d of _0x29269c){const _0x2f345c=this['_makeTape'](_0x1fbd6d['model'][_0x525db7]['insertions']);_0x1fbd6d==_0x113e92?(_0xad248e=_0x2f345c,_0x97e422=_0xad248e['length'],_0xad248e['forEach'](_0x31d053=>{_0x31d053['id']=_0xe109c5++;}),this['_processTape'](_0xad248e)):this['_markInsertions'](_0xad248e,_0x2f345c);const _0x174c41=_0xad248e['filter'](_0x1d5d2b=>!_0x1d5d2b['isAdded'])['map'](_0x217c06=>_0x217c06['id']);let _0x4b4057=0x0;const _0x84c3db=this['_makeTape'](_0x1fbd6d['model'][_0x525db7]['deletions']);_0x84c3db['forEach'](_0x904dfe=>{_0x904dfe['isRemoved']?_0x904dfe['id']=_0x97e422++:_0x904dfe['id']=_0x174c41[_0x4b4057++];}),this['_processTape'](_0x84c3db),this['_setDistance'](_0xad248e,'isAdded'),this['_setDistance'](_0x84c3db,'isRemoved'),_0x1fbd6d==_0x113e92&&this['_markMarkers'](_0xad248e,_0x2c6d9a),_0xad248e=this['_joinTapes'](_0xad248e,_0x84c3db),this['_refreshStartEndIndex'](_0xad248e),this['_setDistance'](_0xad248e,'isRemoved');}_0xad248e=_0xad248e['filter'](_0x53ced4=>!(_0x53ced4['isAdded']&&_0x53ced4['isRemoved']));const _0x24a684=new Map(_0x475673['model'][_0x525db7]['deletions']['markers']),_0x243ab4=new Set(_0x2c6d9a['keys']());for(const _0x3627cd of _0x24a684['keys']())_0x243ab4['delete'](_0x3627cd);this['_markSuggestions'](_0xad248e,_0x243ab4),this['_fixObsoleteTags'](_0xad248e),_0xad248e=this['_removeMissingPairs'](_0xad248e),_0xad248e=this['_markMismatchedRemovedTags'](_0xad248e),_0xad248e=this['_removeUnsupportedChanges'](_0xad248e);const {root:_0xa5760c,changes:_0x169ba0}=this['_makeModelFromTape'](_0xad248e,_0x322401,_0x525db7);_0x24eba4['model'][_0x525db7]=_0xa5760c;const _0x3e22e2=_0x5ce9f4['get'](_0x525db7);if(_0x3e22e2){const _0x30c730=_0x322401['get'](_0x3e22e2['userId']),_0x127786=new r({'author':_0x30c730,'type':_0x3e22e2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x525db7});_0x169ba0['unshift'](_0x127786),_0x24eba4['attributes'][_0x525db7]['revisionHistoryAttachChange']=_0x127786['id'];}_0x24eba4['changes']=_0x24eba4['changes']['concat'](_0x169ba0);}return _0x24eba4;}['_markMarkers'](_0x215935,_0x33f17a){for(let _0x535d73=0x0;_0x535d73<_0x215935['length'];_0x535d73++)for(const [_0x54d875,_0x7150d1]of _0x33f17a)_0x7150d1['start']['isEqual'](_0x215935[_0x535d73]['previousPosition'])&&_0x215935[_0x535d73]['markersStart']['push'](_0x54d875),_0x7150d1['end']['isEqual'](_0x215935[_0x535d73]['nextPosition'])&&_0x215935[_0x535d73]['markersEnd']['push'](_0x54d875);}['_joinTapes'](_0x41b711,_0x4aa3ef){let _0x1232a9=[],_0x45797b=0x0,_0x43e4a5=0x0;for(;_0x45797b<_0x41b711['length']||_0x43e4a5<_0x4aa3ef['length'];){const _0x1f01af=_0x41b711[_0x45797b]||{},_0x83f780=_0x4aa3ef[_0x43e4a5]||{};if(_0x1f01af['id']==_0x83f780['id'])_0x45797b++,_0x43e4a5++,_0x1232a9['push'](_0x1f01af);else{if(_0x83f780['isRemoved']&&_0x1f01af['isAdded']){const {commonTape:_0x5af8c9,iEnd:_0x2d26aa,jEnd:_0x5ed5a0}=this['_threeWayMerge'](_0x41b711,_0x45797b,_0x4aa3ef,_0x43e4a5);_0x1232a9=_0x1232a9['concat'](_0x5af8c9),_0x45797b=_0x2d26aa,_0x43e4a5=_0x5ed5a0;}else _0x83f780['isRemoved']?(_0x43e4a5++,_0x1232a9['push'](_0x83f780)):(_0x45797b++,_0x1232a9['push'](_0x1f01af));}}return _0x1232a9;}['_markSuggestions'](_0x398bed,_0x3b23db){const _0x4754bf=[];for(let _0xce88e5=0x0;_0xce88e5<_0x398bed['length'];_0xce88e5++){for(let _0x3e73b2=0x0;_0x3e73b2<_0x398bed[_0xce88e5]['markersStart']['length'];_0x3e73b2++){const _0xe63d7d=_0x398bed[_0xce88e5]['markersStart'][_0x3e73b2];if(!_0x3b23db['has'](_0xe63d7d))continue;const {group:_0x1c11d3,type:_0x1d759b,authorId:_0x10c1a5}=_0x5924eb(_0xe63d7d);'revision-suggestion'!=_0x1c11d3||'insertion'!=_0x1d759b&&'deletion'!=_0x1d759b||(_0x4754bf['unshift']({'type':_0x1d759b,'name':_0xe63d7d,'userId':_0x10c1a5}),_0x398bed[_0xce88e5]['markersStart']['splice'](_0x3e73b2,0x1),_0x3e73b2--);}_0x5b0ace(_0x398bed[_0xce88e5]);for(let _0x54fbdb=0x0;_0x54fbdb<_0x398bed[_0xce88e5]['markersEnd']['length'];_0x54fbdb++){const _0x223b26=_0x398bed[_0xce88e5]['markersEnd'][_0x54fbdb];if(!_0x3b23db['has'](_0x223b26))continue;const {group:_0x33507e,type:_0x5b304c}=_0x5924eb(_0x223b26);if('revision-suggestion'!=_0x33507e||'insertion'!=_0x5b304c&&'deletion'!=_0x5b304c)continue;_0x398bed[_0xce88e5]['markersEnd']['splice'](_0x54fbdb,0x1),_0x54fbdb--;const _0x909cf5=_0x4754bf['findIndex'](_0x37742a=>_0x37742a['name']==_0x223b26);_0x909cf5>-0x1&&_0x4754bf['splice'](_0x909cf5,0x1);}}function _0x5924eb(_0x158365){const _0xa2ad01=_0x158365['split'](':');return{'group':_0xa2ad01[0x0],'type':_0xa2ad01[0x1],'subType':_0xa2ad01['length']>=0x5?_0xa2ad01[0x2]:null,'id':_0xa2ad01['length']<0x5?_0xa2ad01[0x2]:_0xa2ad01[0x3],'authorId':_0xa2ad01['length']<0x5?_0xa2ad01[0x3]:_0xa2ad01[0x4],'markerCount':0x6==_0xa2ad01['length']?_0xa2ad01[0x5]:null};}function _0x5b0ace(_0x44e185){for(let _0x30263f=0x0;_0x30263f<_0x4754bf['length'];_0x30263f++){if(_0x44e185['isAdded']&&'insertion'==_0x4754bf[_0x30263f]['type'])return _0x44e185['isAddSuggestion']=_0x4754bf[_0x30263f],void delete _0x44e185['isAdded'];if(!_0x44e185['isAdded']&&!_0x44e185['isRemoved']&&'deletion'==_0x4754bf[_0x30263f]['type'])return void(_0x44e185['isRemoveSuggestion']=_0x4754bf[_0x30263f]);}}}['_setDistance'](_0x3a1bf2,_0x4ce83b){let _0x33498e=0x0,_0x14b00c=!0x1;const _0x4bd63f=new Map();for(const _0x1c24b2 of _0x3a1bf2)_0x1c24b2[_0x4ce83b]?_0x14b00c&&(_0x33498e++,_0x14b00c=!0x1):(_0x33498e++,_0x14b00c=!0x0),_0x4bd63f['set'](_0x1c24b2['id'],_0x33498e);for(let _0x1bebc2=0x0;_0x1bebc2<_0x3a1bf2['length'];_0x1bebc2++){if('isRemoved'==_0x4ce83b&&_0x3a1bf2[_0x1bebc2]['isAdded']||'isAdded'==_0x4ce83b&&_0x3a1bf2[_0x1bebc2]['isRemoved'])continue;if('text'==_0x3a1bf2[_0x1bebc2]['type']){_0x3a1bf2[_0x1bebc2]['distance']=0x0;continue;}const _0x5dfe90=_0x4bd63f['get'](_0x3a1bf2[_0x1bebc2]['pairId']),_0x3fb7bd=_0x4bd63f['get'](_0x3a1bf2[_0x1bebc2]['id']);_0x3a1bf2[_0x1bebc2]['distance']=_0x5dfe90-_0x3fb7bd;}}['_getRevisionsRange'](_0x1d1bcb,_0x432dbd,_0x296291=!0x1){const _0x12e3da=[];let _0x4f641b=this['repository']['getIndex'](_0x1d1bcb),_0x729c92=this['repository']['getIndex'](_0x432dbd);for(-0x1==_0x729c92&&(_0x729c92=this['repository']['_revisions']['length'],_0x296291=!0x1);_0x4f641b<_0x729c92;)_0x12e3da['push'](this['repository']['getRevision'](_0x4f641b)),_0x4f641b++;return _0x296291&&_0x12e3da['push'](this['repository']['getRevision'](_0x4f641b)),_0x12e3da;}['_threeWayMerge'](_0x17d314,_0x4170d9,_0x51f96b,_0x345db6){const _0x558978=this['editor']['model']['schema'];let _0xeeb64b=_0x4170d9;for(;_0x17d314[_0xeeb64b]&&_0x17d314[_0xeeb64b]['isAdded'];)_0xeeb64b++;let _0x18f529=_0x345db6;for(;_0x51f96b[_0x18f529]&&_0x51f96b[_0x18f529]['isRemoved'];)_0x18f529++;_0x2225fb(_0x17d314,_0x4170d9,_0xeeb64b),_0x2225fb(_0x51f96b,_0x345db6,_0x18f529);const _0x484941=_0x51f96b['slice'](_0x345db6,_0x18f529)['concat'](_0x17d314['slice'](_0x4170d9,_0xeeb64b));return _0x484941['sort']((_0x217f58,_0x192670)=>_0x217f58['side']!=_0x192670['side']?_0x217f58['side']-_0x192670['side']:_0x217f58['level']!=_0x192670['level']?_0x217f58['level']-_0x192670['level']:_0x217f58['distance']!=_0x192670['distance']?_0x192670['distance']-_0x217f58['distance']:!!_0x217f58['isAdded']!=!!_0x192670['isAdded']?-0x1==_0x217f58['side']||0x0==_0x217f58['side']?_0x217f58['isAdded']?-0x1:0x1:_0x217f58['isAdded']?0x1:-0x1:_0x217f58['index']-_0x192670['index']),{'commonTape':_0x484941,'iEnd':_0xeeb64b,'jEnd':_0x18f529};function _0x2225fb(_0x176e21,_0xaad319,_0x3c9a8f){let _0x186eb8=-0x1,_0x423597=Number['POSITIVE_INFINITY'],_0x4429bb=!0x0;for(let _0x14f438=_0xaad319;_0x14f438<_0x3c9a8f;_0x14f438++)if(_0x558978['isInline'](_0x176e21[_0x14f438]['item'])||(_0x4429bb=!0x1),_0x176e21[_0x14f438]['item']['startIndex']<_0xaad319&&(_0x186eb8=_0x14f438),_0x176e21[_0x14f438]['item']['endIndex']>=_0x3c9a8f){_0x423597=_0x14f438;break;}_0x4429bb&&(_0x186eb8=_0x3c9a8f-0x1);for(let _0x520660=_0xaad319;_0x520660<_0x3c9a8f;_0x520660++)_0x176e21[_0x520660]['side']=_0x520660<=_0x186eb8?-0x1:_0x520660<_0x423597?0x0:0x1,_0x176e21[_0x520660]['index']=_0x520660;let _0x58e7eb=0x0;for(let _0x4bc9f1=_0xaad319;_0x4bc9f1<=_0x186eb8;_0x4bc9f1++)0x0==_0x176e21[_0x4bc9f1]['distance']?_0x176e21[_0x4bc9f1]['level']=_0x58e7eb:(_0x58e7eb++,_0x176e21[_0x4bc9f1]['level']=_0x58e7eb,_0x58e7eb++);for(let _0x1bc095=_0xaad319;_0x1bc095<_0x3c9a8f;_0x1bc095++)0x0==_0x176e21[_0x1bc095]['side']&&(_0x176e21[_0x1bc095]['level']=_0x58e7eb);_0x58e7eb=0x0;for(let _0xf009c0=_0x3c9a8f-0x1;_0xf009c0>=_0x423597;_0xf009c0--)0x0==_0x176e21[_0xf009c0]['distance']?_0x176e21[_0xf009c0]['level']=_0x58e7eb:(_0x58e7eb--,_0x176e21[_0xf009c0]['level']=_0x58e7eb,_0x58e7eb--);}}['_fixObsoleteTags'](_0x3677da){const _0x2273dd=new Map(),_0x1c1147=this['editor']['model']['schema'];for(let _0x3a2aca=0x1;_0x3a2aca<_0x3677da['length'];_0x3a2aca++){let _0x892017,_0x424721,_0x40ef40;const _0x1c2568=_0x3677da[_0x3a2aca],_0x1c7e5b=_0x3677da[_0x3a2aca-0x1];if('text'==_0x1c2568['type'])continue;if(_0x1c2568['type']!=_0x1c7e5b['type'])continue;if(!_0x1c1147['isBlock'](_0x1c7e5b['item'])||_0x1c1147['isLimit'](_0x1c7e5b['item']))continue;if(!_0x1c1147['isBlock'](_0x1c2568['item'])||_0x1c1147['isLimit'](_0x1c2568['item']))continue;if((_0x3677da[_0x3a2aca]['isAdded']||_0x3677da[_0x3a2aca]['isAddSuggestion'])&&_0x3677da[_0x3a2aca-0x1]['isRemoved'])_0x892017=_0x3677da[_0x3a2aca],_0x424721=_0x3677da[_0x3a2aca-0x1],_0x40ef40=_0x3a2aca-0x1;else{if(!_0x3677da[_0x3a2aca]['isRemoved']||!_0x3677da[_0x3a2aca-0x1]['isAdded']&&!_0x3677da[_0x3a2aca-0x1]['isAddSuggestion'])continue;_0x892017=_0x3677da[_0x3a2aca-0x1],_0x424721=_0x3677da[_0x3a2aca],_0x40ef40=_0x3a2aca;}const _0x356bbc=_0x892017['level']==_0x424721['level'],_0x2bac94=Math['abs'](_0x892017['level'])<Math['abs'](_0x424721['level'])&&0x0==_0x424721['distance'];(_0x356bbc||_0x2bac94)&&(_0x2273dd['set'](_0x424721['id'],_0x892017['id']),_0x3677da['splice'](_0x40ef40,0x1),_0x3a2aca--,_0x892017['isAdded']=!0x1);}for(let _0x52bdd5=0x0;_0x52bdd5<_0x3677da['length'];_0x52bdd5++)_0x2273dd['has'](_0x3677da[_0x52bdd5]['pairId'])&&(_0x3677da[_0x52bdd5]['pairId']=_0x2273dd['get'](_0x3677da[_0x52bdd5]['pairId']));}['_removeMissingPairs'](_0x2fe96c){const _0x1c1630=new Set(_0x2fe96c['map'](_0x497fb8=>_0x497fb8['id']));for(let _0x1aa338=0x0;_0x1aa338<_0x2fe96c['length'];_0x1aa338++)_0x1c1630['has'](_0x2fe96c[_0x1aa338]['pairId'])||0x0==_0x2fe96c[_0x1aa338]['distance']||(_0x2fe96c[_0x1aa338]['isIncorrect']=!0x0);return _0x2fe96c['filter'](_0x43e6c0=>!_0x43e6c0['isIncorrect']);}['_markMismatchedRemovedTags'](_0x309b3f){const _0x4b1a71=new Set();for(let _0x16d066=0x0;_0x16d066<_0x309b3f['length'];_0x16d066++){if(_0x4b1a71['has'](_0x309b3f[_0x16d066]['id'])&&_0x309b3f[_0x16d066]['isRemoved']&&(_0x309b3f[_0x16d066]['isIncorrect']=!0x0),_0x309b3f[_0x16d066]['isIncorrect'])continue;if(0x0==_0x309b3f[_0x16d066]['distance'])continue;if('elementStart'!=_0x309b3f[_0x16d066]['type'])continue;if(null==_0x309b3f[_0x16d066]['pairId'])continue;let _0x38ed8e=_0x16d066+0x1,_0x3f8df0=0x0;for(;_0x309b3f[_0x38ed8e]['id']!=_0x309b3f[_0x16d066]['pairId'];)'elementStart'==_0x309b3f[_0x38ed8e]['type']?_0x3f8df0++:'elementEnd'==_0x309b3f[_0x38ed8e]['type']&&_0x3f8df0--,_0x38ed8e++;if(0x0!=_0x3f8df0){if(_0x309b3f[_0x16d066]['isRemoved'])_0x309b3f[_0x16d066]['isIncorrect']=!0x0;else{for(;_0x38ed8e!=_0x16d066;)_0x309b3f[_0x38ed8e]['isRemoved']&&0x0!=_0x309b3f[_0x38ed8e]['distance']&&(_0x309b3f[_0x38ed8e]['isIncorrect']=!0x0,_0x4b1a71['add'](_0x309b3f[_0x38ed8e]['pairId'])),_0x38ed8e--;}}}return _0x309b3f['filter'](_0x4d2bc7=>!_0x4d2bc7['isIncorrect']);}['_removeUnsupportedChanges'](_0x5a1b00){const _0xaa0a14=this['editor']['model']['schema'];for(let _0x7da9ff=0x0;_0x7da9ff<_0x5a1b00['length'];_0x7da9ff++){if(!(_0x5a1b00[_0x7da9ff]['isAdded']||_0x5a1b00[_0x7da9ff]['isAddSuggestion']||_0x5a1b00[_0x7da9ff]['isRemoved']||_0x5a1b00[_0x7da9ff]['isRemoveSuggestion']))continue;if(0x0==_0x5a1b00[_0x7da9ff]['distance'])continue;const _0x1894cd=_0x5a1b00[_0x7da9ff]['item'];_0xaa0a14['isBlock'](_0x1894cd)||_0xaa0a14['isLimit'](_0x1894cd)||(_0x5a1b00[_0x7da9ff]['isAdded']&&delete _0x5a1b00[_0x7da9ff]['isAdded'],_0x5a1b00[_0x7da9ff]['isAddSuggestion']&&delete _0x5a1b00[_0x7da9ff]['isAddSuggestion'],_0x5a1b00[_0x7da9ff]['isRemoveSuggestion']&&delete _0x5a1b00[_0x7da9ff]['isRemoveSuggestion'],_0x5a1b00[_0x7da9ff]['isRemoved']&&(_0x5a1b00[_0x7da9ff]['isIncorrect']=!0x0));}return _0x5a1b00['filter'](_0x2b322a=>!_0x2b322a['isIncorrect']);}['_makeModelFromTape'](_0x4735d0,_0x380d33,_0x31d797){const _0x5129e9=new gt(),_0x2d5a8b=[],_0x1b6b26=new Map(),_0x34d27e=this['editor']['model'],_0x2893ee=_0x34d27e['schema'],_0x151368=[_0x5129e9],_0x5f3a4a={},_0x2b1b6f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x18fbe9=null;const _0xbba077=[0x0];for(let _0x5a45da=0x0;_0x5a45da<_0x4735d0['length'];_0x5a45da++)if('elementStart'===_0x4735d0[_0x5a45da]['type']){_0x4735d0[_0x5a45da]['previousPosition']=_0x34d27e['createPositionFromPath'](_0x5129e9,_0xbba077);const _0xbb463f=new ut(_0x4735d0[_0x5a45da]['item']['name'],_0x4735d0[_0x5a45da]['item']['getAttributes']());_0x151368[0x0]['_appendChild'](_0xbb463f),_0xbba077['push'](0x0),_0x151368['unshift'](_0xbb463f),_0x4735d0[_0x5a45da]['nextPosition']=_0x34d27e['createPositionFromPath'](_0x5129e9,_0xbba077);}else'elementEnd'===_0x4735d0[_0x5a45da]['type']?(_0x151368['shift'](),_0x4735d0[_0x5a45da]['previousPosition']=_0x34d27e['createPositionFromPath'](_0x5129e9,_0xbba077),_0xbba077['pop'](),_0xbba077[_0xbba077['length']-0x1]++,_0x4735d0[_0x5a45da]['nextPosition']=_0x34d27e['createPositionFromPath'](_0x5129e9,_0xbba077)):(_0x4735d0[_0x5a45da]['previousPosition']=_0x34d27e['createPositionFromPath'](_0x5129e9,_0xbba077),_0x18fbe9?_0x18fbe9['_data']+=_0x4735d0[_0x5a45da]['item']['data']:_0x18fbe9=new wt(_0x4735d0[_0x5a45da]['item']['data'],_0x4735d0[_0x5a45da]['item']['getAttributes']()),_0x4735d0[_0x5a45da+0x1]&&'text'===_0x4735d0[_0x5a45da+0x1]['type']&&_0x539857(_0x18fbe9,_0x4735d0[_0x5a45da+0x1]['item'])||(_0x151368[0x0]['_appendChild'](_0x18fbe9),_0x18fbe9=null),_0xbba077[_0xbba077['length']-0x1]+=_0x4735d0[_0x5a45da]['item']['offsetSize'],_0x4735d0[_0x5a45da]['nextPosition']=_0x34d27e['createPositionFromPath'](_0x5129e9,_0xbba077));for(let _0xb1fcda=0x0;_0xb1fcda<_0x4735d0['length'];_0xb1fcda++){const _0x5b10b0=_0x4735d0[_0xb1fcda]['previousPosition'],_0x5ecf89=_0x4735d0[_0xb1fcda]['nextPosition'];for(const _0x201a12 of _0x4735d0[_0xb1fcda]['markersStart'])_0x1b6b26['set'](_0x201a12,{'start':_0x5b10b0,'end':null});_0x50c083('isRemoveSuggestion',_0xb1fcda,_0x5b10b0,_0x5ecf89),_0x50c083('isAddSuggestion',_0xb1fcda,_0x5b10b0,_0x5ecf89),_0x50c083('isRemoved',_0xb1fcda,_0x5b10b0,_0x5ecf89),_0x50c083('isAdded',_0xb1fcda,_0x5b10b0,_0x5ecf89);for(const _0x2cb018 of _0x4735d0[_0xb1fcda]['markersEnd']){_0x1b6b26['get'](_0x2cb018)['end']=_0x5ecf89;}}for(const [_0x26e7bd,_0x466f14]of _0x1b6b26){const _0x4bc1e7=this['editor']['model']['createRange'](_0x466f14['start'],_0x466f14['end']);_0x5129e9['markers']['set'](_0x26e7bd,_0x4bc1e7);}return _0x2d5a8b['sort']((_0x2716f6,_0x6c117a)=>{const _0x42e580=_0x5129e9['markers']['get']('revision:'+_0x2716f6['id']),_0x2d71ac=_0x5129e9['markers']['get']('revision:'+_0x6c117a['id']);return _0x42e580['start']['isBefore'](_0x2d71ac['start'])?-0x1:_0x42e580['start']['isAfter'](_0x2d71ac['start'])?0x1:_0x42e580['end']['isBefore'](_0x2d71ac['end'])?-0x1:_0x42e580['end']['isAfter'](_0x2d71ac['end'])?0x1:'add'===_0x2716f6['type']?-0x1:0x1;}),{'root':_0x5129e9,'changes':_0x2d5a8b};function _0x50c083(_0x84075,_0x337ea8,_0x455d60,_0x1d2c97){const _0x5763c7=!!_0x4735d0[_0x337ea8][_0x84075],_0xb5988c=_0x5763c7?_0x4735d0[_0x337ea8][_0x84075]['userId']:null,_0x1c8f99=_0x337ea8===_0x4735d0['length']-0x1,_0x4f644b=_0x2b1b6f[_0x84075][0x0],_0x46a1b5=_0x2893ee['isObject'](_0x4735d0[_0x337ea8]['item']);!_0x5f3a4a[_0x84075]&&_0x5763c7?_0x5f3a4a[_0x84075]={'start':_0x455d60,'tapeItem':_0x4735d0[_0x337ea8],'userId':_0xb5988c,'type':_0x84075}:_0x5f3a4a[_0x84075]&&!_0x5763c7?(_0x5f3a4a[_0x84075]['end']=_0x455d60,_0xe5b3(_0x5f3a4a[_0x84075]),_0x5f3a4a[_0x84075]=null):_0x5f3a4a[_0x84075]&&_0x5763c7&&_0x5f3a4a[_0x84075]['userId']!==_0xb5988c&&(_0x5f3a4a[_0x84075]['end']=_0x455d60,_0x4f644b&&_0x4f644b['userId']===_0x5f3a4a[_0x84075]['userId']||_0xe5b3(_0x5f3a4a[_0x84075]),_0x5f3a4a[_0x84075]={'start':_0x455d60,'tapeItem':_0x4735d0[_0x337ea8],'userId':_0xb5988c,'type':_0x84075}),_0x5f3a4a[_0x84075]&&_0x46a1b5&&('elementStart'!==_0x4735d0[_0x337ea8]['type']||_0x4f644b&&_0x4f644b['userId']===_0xb5988c||_0x2b1b6f[_0x84075]['unshift']({'userId':_0xb5988c,'object':_0x4735d0[_0x337ea8]['item'],'change':_0x5f3a4a[_0x84075]}),'elementEnd'===_0x4735d0[_0x337ea8]['type']&&_0x4f644b&&_0x4f644b['object']===_0x4735d0[_0x337ea8]['item']&&(_0x2b1b6f[_0x84075]['shift'](),_0x5f3a4a[_0x84075]=_0x4f644b['change'])),_0x5f3a4a[_0x84075]&&_0x1c8f99&&(_0x5f3a4a[_0x84075]['end']=_0x1d2c97,_0xe5b3(_0x5f3a4a[_0x84075]),_0x5f3a4a[_0x84075]=null);}function _0xe5b3({start:_0x51d97f,end:_0x339eda,tapeItem:_0x2e1d32,userId:_0x21ad92,type:_0x205975}){const _0x3092f3=_0x2e1d32['item'],_0x10caeb=_0x34d27e['schema']['isBlock'](_0x3092f3)&&!_0x34d27e['schema']['isLimit'](_0x3092f3),_0x1f20c4=_0x51d97f['nodeAfter']==_0x339eda['parent']&&_0x339eda['isAtStart'];if(_0x10caeb&&_0x1f20c4)return;const _0x494b0a=_0x34d27e['createRange'](_0x51d97f,_0x339eda),_0x941b38=_0x380d33['get'](_0x21ad92),_0x5ccc51=new r({'author':_0x941b38,'type':'isAdded'==_0x205975||'isAddSuggestion'==_0x205975?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x205975||'isRemoveSuggestion'==_0x205975},'createdAt':new Date(),'rootName':_0x31d797});_0x2d5a8b['push'](_0x5ccc51),_0x5129e9['markers']['set']('revision:'+_0x5ccc51['id'],_0x494b0a);}function _0x539857(_0x191cd3,_0x4af22d){const _0xfe8741=_0x191cd3['getAttributes'](),_0x18d69f=_0x4af22d['getAttributes']();for(const _0x4ae91a of _0xfe8741){if(_0x4ae91a[0x1]!==_0x4af22d['getAttribute'](_0x4ae91a[0x0]))return!0x1;_0x18d69f['next']();}return _0x18d69f['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x84a9e8=>{const _0x47772c=_0x84a9e8['markerName']['split'](':')[0x1],_0x1f6902=this['_getChangeFromId'](_0x47772c);if(!_0x1f6902)return null;const _0x5e18cb='add'==_0x1f6902['type']?'insertion':'deletion',_0x51a279=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5e18cb];return _0x1f6902['data']['isSuggestion']&&_0x51a279['push']('ck-suggestion-marker-'+_0x5e18cb+'-new'),this['activeChange']==_0x1f6902&&_0x51a279['push']('ck-suggestion-marker--active'),{'classes':_0x51a279,'attributes':{'data-change-id':_0x47772c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3c17b7=>{_0x3c17b7['on']('element:pre',(_0x3b9ece,_0x3c91ed,_0x5c8169)=>{const _0x60d9cf=_0x3c91ed['viewItem']['getChild'](0x0);if(!_0x60d9cf||!_0x60d9cf['is']('element','code'))return;if(!_0x5c8169['consumable']['consume'](_0x60d9cf,{'attributes':['vid_start','vid_end']}))return;const _0x15708d=_0x3c91ed['modelRange']['start']['nodeAfter'];_0x5c8169['writer']['setAttribute']('vid_start',_0x60d9cf['getAttribute']('vid_start'),_0x15708d),_0x5c8169['writer']['setAttribute']('vid_end',_0x60d9cf['getAttribute']('vid_end'),_0x15708d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x59a46e=>{_0x59a46e['on']('element',(_0x39fe6d,_0x507637,_0x1a4358)=>{if(!_0x1a4358['consumable']['consume'](_0x507637['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x507637['modelRange']['isCollapsed'])return;const _0x449c2e=_0x507637['modelRange']['start']['nodeAfter'];_0x449c2e['hasAttribute']('vid_start')||_0x449c2e['hasAttribute']('vid')||(_0x1a4358['writer']['setAttribute']('vid_start',_0x507637['viewItem']['getAttribute']('vid_start'),_0x449c2e),_0x1a4358['writer']['setAttribute']('vid_end',_0x507637['viewItem']['getAttribute']('vid_end'),_0x449c2e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xe44636=>_0xe44636['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x7d2af8,[,_0x4d5015])=>{['vid_start','vid_end','vid']['includes'](_0x4d5015)&&(_0x7d2af8['return']=!0x0,_0x7d2af8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x93eb25=>{_0x93eb25['on']('attribute:vid',(_0xba7343,_0x163edc,_0x1055b1)=>{if('\x20'!=_0x163edc['item']['data']||_0x163edc['item']['parent']['maxOffset']>0x1)return;if(!_0x1055b1['consumable']['consume'](_0x163edc['item'],_0xba7343['name']))return;const _0x5999ca=_0x1055b1['writer'],_0x34b5b6=_0x1055b1['mapper']['toViewRange'](_0x163edc['range']);_0x5999ca['wrap'](_0x34b5b6,_0x5999ca['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x93c68d){const _0x52fd=_0x93c68d['plugins']['get']('RevisionViewer');return(_0x57be7a,_0x354148,_0x240165)=>{const _0x41cd39=_0x354148['markerName']['split'](':')[0x1],_0x317718=_0x52fd['_getChangeFromId'](_0x41cd39);if(!_0x317718)return null;const _0x51d71a='add'==_0x317718['type']?'split':'merge';if(!_0x240165['consumable']['test'](_0x354148['markerRange'],_0x57be7a['name']))return;const _0xecb12e=_0x354148['markerRange']['getWalker'](),_0x248714=_0x354148['markerRange']['start'],_0x2ae284=_0x93c68d['model']['schema'];let _0x1c7d4c=null,_0x1b2587=null,_0x580f29=!0x1,_0x3a74c0=!0x1;for(const _0x175e5c of _0xecb12e){const _0x39fec8=_0x175e5c['item'];_0x580f29=_0x580f29||_0x2ae284['isContent'](_0x39fec8);const _0x1d089b=_0x240165['mapper']['toViewElement'](_0x39fec8);if(_0x1d089b&&_0x1d089b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x175e5c['type']&&(_0x2ae284['isBlock'](_0x39fec8)&&!_0x2ae284['isLimit'](_0x39fec8)&&(_0x39fec8['nextSibling']||_0x248714['isAtEnd']?_0x1c7d4c&&_0x1c7d4c['parent']==_0x39fec8||(_0x1c7d4c=_0x39fec8,_0x228e1c(_0x175e5c['previousPosition']),_0x3a74c0=!0x0):_0x1b2587=_0x1b2587||_0x175e5c['previousPosition']));}function _0x228e1c(_0x299dbe){const _0xb0727=_0x240165['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51d71a}),_0x78c524=_0x240165['mapper']['toViewPosition'](_0x299dbe);_0x317718['data']['isSuggestion']&&_0x240165['writer']['addClass']('ck-suggestion-marker-'+_0x51d71a+'-new',_0xb0727),_0x52fd['activeChange']==_0x317718&&_0x240165['writer']['addClass']('ck-suggestion-marker--active',_0xb0727),_0x240165['writer']['insert'](_0x78c524,_0xb0727),_0x240165['mapper']['bindElementToMarker'](_0xb0727,_0x354148['markerName']);}_0x580f29||_0x3a74c0||!_0x1b2587||_0x228e1c(_0x1b2587);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xc3c362,_0x254f4b,_0x298abb)=>{const _0x335aa6=_0x298abb['mapper']['markerNameToElements'](_0x254f4b['markerName']);if(_0x335aa6){for(const _0x4848cc of _0x335aa6)(_0x4848cc['hasClass']('ck-suggestion-marker-split')||_0x4848cc['hasClass']('ck-suggestion-marker-merge'))&&(_0x298abb['mapper']['unbindElementFromMarkerName'](_0x4848cc,_0x254f4b['markerName']),_0x298abb['writer']['remove'](_0x4848cc));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2e51a8,_0x10c66a,_0x433e55)=>{const _0x368d2a=_0x10c66a['markerName']['split'](':')[0x1],_0x55c0fe=this['_getChangeFromId'](_0x368d2a);if(!_0x55c0fe)return null;const _0x2fb373='add'==_0x55c0fe['type']?'split':'merge';if(_0x433e55['consumable']['test'](_0x10c66a['markerRange'],_0x2e51a8['name']))for(const _0x56cfaf of _0x10c66a['markerRange']['getItems']()){if(!_0x56cfaf['is']('element','softBreak'))continue;const _0x2ee19e=_0x433e55['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fb373}),_0x1f8807=_0x433e55['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x56cfaf));_0x55c0fe['data']['isSuggestion']&&_0x433e55['writer']['addClass']('ck-suggestion-marker-'+_0x2fb373+'-new',_0x2ee19e),this['activeChange']==_0x55c0fe&&_0x433e55['writer']['addClass']('ck-suggestion-marker--active',_0x2ee19e),_0x433e55['writer']['insert'](_0x1f8807,_0x2ee19e),_0x433e55['mapper']['bindElementToMarker'](_0x2ee19e,_0x10c66a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x19ffb5=>{for(const _0x2ddeac of this['editor']['model']['document']['getRootNames']()){const _0x67d40a=this['editor']['model']['document']['getRoot'](_0x2ddeac),_0x379bac=this['editor']['editing']['view']['document']['getRoot'](_0x2ddeac);if(_0x379bac){const _0x2ff5b9=_0x67d40a['getAttribute']('revisionHistoryAttachChange');if(_0x19ffb5['removeAttribute']('data-change-id',_0x379bac),_0x19ffb5['removeClass']('ck-revision-history-root-add',_0x379bac),_0x19ffb5['removeClass']('ck-revision-history-root-remove',_0x379bac),_0x19ffb5['removeClass']('ck-revision-history-root--active',_0x379bac),_0x2ff5b9){const _0x5cf2c8=this['_getChangeFromId'](_0x2ff5b9);if(!_0x5cf2c8)return null;_0x19ffb5['setAttribute']('data-change-id',_0x2ff5b9,_0x379bac),_0x19ffb5['addClass']('ck-revision-history-root-'+_0x5cf2c8['type'],_0x379bac),this['activeChange']==_0x5cf2c8&&_0x19ffb5['addClass']('ck-revision-history-root--active',_0x379bac);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x42e226=>'revision-comment:'+_0x42e226,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x52b887=>'revision-suggestion:'+_0x52b887,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x47cfd6=>({'name':'suggestion:'+_0x47cfd6,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4f9503=>{const _0x2fb17f=_0x4f9503['markerName']['split'](':')[0x1];return'insertion'!=_0x2fb17f&&'deletion'!=_0x2fb17f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2fb17f]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2040cc,_0x790ef4,_0x1eb0f8)=>{const _0x5a8220=_0x1eb0f8['mapper']['markerNameToElements'](_0x790ef4['markerName']);if(_0x5a8220){for(const _0x42e941 of _0x5a8220)_0x42e941['is']('uiElement')&&(_0x1eb0f8['mapper']['unbindElementFromMarkerName'](_0x42e941,_0x790ef4['markerName']),_0x1eb0f8['writer']['remove'](_0x42e941));}},{'priority':'high'});}['_getChangeFromId'](_0x4d9c82){return this['_changeIdToChange']['get'](_0x4d9c82);}['_getViewForChange'](_0x528f2a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x528f2a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x346acc,_0x3457da,_0xc2124f,_0x3c8c4a)=>{_0x3c8c4a&&this['_balloon']['remove'](_0x3c8c4a),_0xc2124f&&(this['_balloon']['add']({'view':_0xc2124f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xec52c1=this['editor']['editing'],_0x48f145=this['_getChangeFromId'](_0xc2124f['changeId']);let _0x11a2a1;if(_0x48f145['data']['isOnRoot']){const _0x1b99ae=_0xec52c1['view']['getDomRoot'](_0x48f145['rootName']);_0x11a2a1=Array['from'](_0x1b99ae['getClientRects']());}else{const _0x5f49d9=this['editor']['model']['markers']['get']('revision:'+_0xc2124f['changeId']);_0x11a2a1=Array['from'](_0xec52c1['mapper']['markerNameToElements'](_0x5f49d9['name']))['map'](_0x40baab=>_0xec52c1['view']['domConverter']['mapViewToDom'](_0x40baab))['map'](_0x1df66f=>Array['from'](_0x1df66f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x11a2a1[0x0];return _0x11a2a1['find'](_0x4dc1d6=>_0x4dc1d6['top']-0x3<=this['_activeViewTarget']['y']&&_0x4dc1d6['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4dc1d6['left']-0x3<=this['_activeViewTarget']['x']&&_0x4dc1d6['right']+0x3>=this['_activeViewTarget']['x'])||_0x11a2a1[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3b1ae8,_0x24849a,_0x2679d6,_0x19443d)=>{this['activeView']=_0x2679d6?this['_getViewForChange'](_0x2679d6):null,this['editor']['model']['change'](()=>{const _0x1564ff=this['editor']['editing'];_0x19443d&&(_0x19443d['data']['isOnRoot']?_0x1564ff['view']['change'](_0x424f2a=>{_0x424f2a['removeClass']('ck-revision-history-root--active',_0x1564ff['view']['document']['getRoot'](_0x19443d['rootName']));}):_0x1564ff['reconvertMarker']('revision:'+_0x19443d['id'])),_0x2679d6&&(_0x2679d6['data']['isOnRoot']?_0x1564ff['view']['change'](_0x2ba970=>{_0x2ba970['addClass']('ck-revision-history-root--active',_0x1564ff['view']['document']['getRoot'](_0x2679d6['rootName']));}):_0x1564ff['reconvertMarker']('revision:'+_0x2679d6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1ae0f8,_0x45922b)=>{if(this['activeChange'])return;const _0x13ca09=this['_findChangeIdFromDomTarget'](_0x45922b['target']),_0x590677=this['_changeIdToChange']['get'](_0x13ca09);_0x590677?(this['_activeViewTarget']={'x':_0x45922b['domEvent']['x'],'y':_0x45922b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x590677)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4d78a1,_0x516784)=>{const _0x1c51b0=this['_findChangeIdFromDomTarget'](_0x516784['target']),_0x458131=this['_changeIdToChange']['get'](_0x1c51b0);_0x458131?(this['_activeViewTarget']={'x':_0x516784['domEvent']['x'],'y':_0x516784['domEvent']['y']},_0x458131===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x458131):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3deacd){do{const _0x2f2e47=_0x3deacd['getAttribute']('data-change-id');if(_0x2f2e47)return _0x2f2e47;_0x3deacd=_0x3deacd['parent'];}while(_0x3deacd);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4be46d=>{for(const _0x4bf2f8 of this['editor']['model']['markers'])_0x4be46d['removeMarker'](_0x4bf2f8);});}}function Z(_0xb8b94e,_0xbc54e5){return(_0x4d4fd8,_0x16b6d3,_0x44ed50)=>{if(!_0x44ed50['consumable']['test'](_0x16b6d3['markerRange'],_0x4d4fd8['name']))return;const _0x22e6cb=_0x16b6d3['markerRange']['getWalker'](),_0x1d2602=_0x16b6d3['markerRange']['start'],_0x10b6d6=_0xb8b94e['model']['schema'];let _0x2caefb=null,_0x2b47d9=null,_0x340136=!0x1,_0x213bcc=!0x1;for(const _0x41505d of _0x22e6cb){const _0x44f4fe=_0x41505d['item'];_0x340136=_0x340136||_0x10b6d6['isContent'](_0x44f4fe);const _0x1b1b07=_0x44ed50['mapper']['toViewElement'](_0x44f4fe);if(_0x1b1b07&&_0x1b1b07['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41505d['type']&&(_0x10b6d6['isBlock'](_0x44f4fe)&&!_0x10b6d6['isLimit'](_0x44f4fe)&&(_0x44f4fe['nextSibling']||_0x1d2602['isAtEnd']?_0x2caefb&&_0x2caefb['parent']==_0x44f4fe||(_0x2caefb=_0x44f4fe,_0x36d21e(_0x41505d['previousPosition']),_0x213bcc=!0x0):_0x2b47d9=_0x2b47d9||_0x41505d['previousPosition']));}function _0x36d21e(_0x4bca85){const _0x34c865=_0x44ed50['mapper']['toViewPosition'](_0x4bca85),_0x3d0d81=_0x44ed50['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xbc54e5});_0x44ed50['writer']['insert'](_0x34c865,_0x3d0d81),_0x44ed50['mapper']['bindElementToMarker'](_0x3d0d81,_0x16b6d3['markerName']);}_0x340136||_0x213bcc||!_0x2b47d9||_0x36d21e(_0x2b47d9);};}class _t extends _0x573d0a{constructor(_0x526256){super(_0x526256);const _0x45aaf7=_0x526256['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x45aaf7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x45aaf7,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4eff0c=this['editor'],_0x3e1507=_0x4eff0c['plugins']['get'](d),_0x5d880f=_0x3e1507['isReady']?_0x3e1507['diff']['newRevisionId']:null;_0x4eff0c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5d880f);}['refresh'](){const {isReady:_0x4ec7f4,isEnabled:_0x155053,repository:_0x16057a,diff:_0x19ae91}=this['editor']['plugins']['get'](d),_0x2ca9eb=_0x19ae91&&_0x16057a['getLaterVisibleRevision'](_0x19ae91['newRevisionId']);this['isEnabled']=_0x4ec7f4&&_0x155053&&Boolean(_0x2ca9eb);}}class yt extends _0x573d0a{['_step'];constructor(_0x2356e4,{direction:_0x318211}){super(_0x2356e4);const _0xbd63e8=_0x2356e4['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x318211?0x1:-0x1,this['listenTo'](_0xbd63e8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xbd63e8,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xbd63e8,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x36adb4=this['editor'],_0x2c802c=_0x36adb4['plugins']['get'](d),{isNavigationMode:_0xc0dafd,currentChangeNumber:_0x491111}=_0x2c802c;let _0x4a271d;if(_0x2c802c['activeChange']=_0xc0dafd?_0x2c802c['diff']['changes']['get'](_0x491111+this['_step']):_0x2c802c['diff']['changes']['first'],_0x2c802c['activeChange']['data']['isOnRoot'])_0x4a271d=_0x36adb4['editing']['view']['getDomRoot'](_0x2c802c['activeChange']['rootName']);else{const _0x44c0db=_0x36adb4['model']['markers']['get']('revision:'+_0x2c802c['activeChange']['id']);_0x4a271d=_0x1f8be4(_0x36adb4['editing'],_0x44c0db);}_0x38eeba({'target':_0x4a271d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x58d7c0,currentChangeNumber:_0x1e2e4b,numberOfChanges:_0x15443f,isReady:_0xf9131b,isEnabled:_0x27aa4c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x27aa4c&&_0xf9131b&&_0x15443f)&&(!_0x58d7c0||(0x1===this['_step']?_0x1e2e4b<_0x15443f-0x1:_0x1e2e4b>0x0));}}class li extends _0x525a1d{constructor(_0x18ce05){super(_0x18ce05);const _0xba596=this['bindTemplate'],_0x4561ae=new _0x278200(_0x18ce05),_0xe6f656=new _0x278200(_0x18ce05);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',(_0x130b42,_0x5ad731)=>_0x130b42&&_0x5ad731>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1bea49,_0x32bf2c,_0x2d477,_0x21cbc2)=>{if(!_0x1bea49)return m(_0x18ce05,'Loading...');if(!_0x2d477)return m(_0x18ce05,'No\x20changes');const _0x48ae5e=m(_0x18ce05,'NUMBER_OF_CHANGES',_0x2d477);return _0x21cbc2?m(_0x18ce05,'X_OF_Y_CHANGES',[_0x32bf2c+0x1,_0x2d477]):_0x48ae5e;}),_0x4561ae['set']({'label':m(_0x18ce05,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xaa3d7}),_0xe6f656['set']({'label':m(_0x18ce05,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2feeab}),_0x4561ae['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xe6f656['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4561ae['on']('execute',()=>this['fire']('execute','backward')),_0xe6f656['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',_0xba596['if']('_isStatusLabelVisible','ck-hidden',_0x5a47e0=>!_0x5a47e0)]},'children':[{'text':_0xba596['to']('isNavigationMode',_0x2c04e3=>_0x2c04e3?m(_0x18ce05,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x18ce05,'Total')+':\x20')}]},{'text':_0xba596['to']('_statusText')}]},new _0x5c64c1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4561ae,_0xe6f656]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x26f450{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x153323=this['editor']['editing']['view'];_0x153323['change'](_0x5cbf43=>{for(const _0x2da05b of _0x153323['document']['roots'])_0x5cbf43['addClass'](ce,_0x2da05b);});}['hide'](){const _0x4ed26f=this['editor']['editing']['view'];_0x4ed26f['change'](_0x25d5ee=>{for(const _0x2475ca of _0x4ed26f['document']['roots'])_0x25d5ee['removeClass'](ce,_0x2475ca);});}}class w extends _0x26f450{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x4c22e8=this['editor'],_0x13918c=_0x4c22e8['plugins']['get'](d),_0x21b4e3=_0x4c22e8['plugins']['get'](le);_0x4c22e8['ui']['componentFactory']['add']('exitToEditing',_0x31879f=>{const _0x2233db=new _0x278200(_0x31879f);return _0x2233db['set']({'label':m(_0x31879f,'Back\x20to\x20editing'),'icon':_0x6af520,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2233db,'execute',()=>{_0x4c22e8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2233db;}),_0x4c22e8['ui']['componentFactory']['add']('restoreRevision',_0x5637d7=>{const _0x5b97db=new _0x278200(_0x5637d7);return _0x5b97db['set']({'label':m(_0x5637d7,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5b97db['bind']('isEnabled')['to'](_0x4c22e8['commands']['get']('restoreRevision')),this['listenTo'](_0x5b97db,'execute',()=>_0x4c22e8['execute']('restoreRevision')),_0x5b97db;}),_0x4c22e8['ui']['componentFactory']['add']('changesNavigation',_0x426e8b=>{const _0x120852=new li(_0x426e8b),_0x1d43e2=_0x4c22e8['commands']['get']('showPreviousChange'),_0x2a68a3=_0x4c22e8['commands']['get']('showNextChange');return _0x120852['bind']('isBackwardNavigationEnabled')['to'](_0x1d43e2,'isEnabled'),_0x120852['bind']('isForwardNavigationEnabled')['to'](_0x2a68a3,'isEnabled'),_0x120852['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x13918c),this['listenTo'](_0x120852,'execute',(_0x29efab,_0x3997e7)=>{_0x4c22e8['execute']('forward'===_0x3997e7?'showNextChange':'showPreviousChange');}),_0x120852;}),_0x21b4e3['show'](),_0x13918c['on']('change:isReady',(_0x14b0a6,_0x4e6f79,_0x23a514)=>{_0x23a514?_0x21b4e3['hide']():_0x21b4e3['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x445a0f,_0x29e19d){super(_0x445a0f,_0x29e19d);const _0x247557=this['bindTemplate'];this['set']({'label':m(_0x445a0f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x445a0f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x247557['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2c49cf=this['fieldView']['element'];this['_tooltipString']=_0x2c49cf['scrollWidth']>_0x2c49cf['clientWidth']&&_0x2c49cf['value']||'';}}class oi extends _0x525a1d{constructor(_0x218221,_0x44c125,_0x1f82ea){super(_0x218221);const _0x496785=new _0x35b78b();_0x496785['set']({'content':_0x944b2,'viewBox':'0\x200\x2011\x2010'});const _0x6b8484=['ck','ck-revision-history-sidebar__revision-author'];_0x1f82ea&&_0x6b8484['push']('ck-revision-history-sidebar__revision-author_creator');const _0x185bb5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x218221,_0x1f82ea?'Revision\x20creator':'Revision\x20author')},'children':[_0x496785,_0x44c125['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x6b8484},'children':_0x185bb5});}}function ni(_0x329f00,_0x2a1e47){const _0x1c4a1f=_0x329f00['bindTemplate'],_0x75fc30=_0x329f00['locale'],_0x6e5cd6=_0x290b2b(_0x75fc30);_0x6e5cd6['panelPosition']='sw';const _0x1fb774=function(_0x3ec983,_0x133fb8){const _0x3b52f3=function(_0x44a4fc,_0x527c27){const _0x2053de=_0x44a4fc['locale'],_0x46062a={'Compare\x20against\x20selected':m(_0x2053de,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2053de,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2053de,'Restore\x20this\x20revision')};return _0x527c27['map'](_0x5d3517=>{const _0x2e65ad=_0x46062a[_0x5d3517['name']];return _0x2e65ad&&_0x2e65ad!==_0x5d3517['name']&&(_0x5d3517['name']=_0x2e65ad),_0x5d3517;});}(_0x3ec983,_0x133fb8),_0x112100=new _0xc0b39c();for(const _0x2ee5c7 of _0x3b52f3){const _0x5794f4={'type':'button','model':new to({'label':_0x2ee5c7['name'],'class':_0x2ee5c7['class'],'withText':!0x0,'role':'menuitem','_action':_0x2ee5c7['action']})};_0x5794f4['model']['bind']('isEnabled')['to'](_0x3ec983,'isActionsDropdownOpen',_0x5999e4=>'function'!=typeof _0x2ee5c7['isEnabled']||(!_0x5999e4||_0x2ee5c7['isEnabled'](_0x3ec983))),_0x112100['add'](_0x5794f4);}return _0x112100;}(_0x329f00,_0x2a1e47);return _0x329f00['bind']('isActionsDropdownOpen')['to'](_0x6e5cd6,'isOpen'),_0x6e5cd6['buttonView']['set']({'label':m(_0x75fc30,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x19a42a}),_0x6e5cd6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1c4a1f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1c4a1f['to'](_0x2d4534=>_0x2d4534['stopPropagation']())}}),_0x6e5cd6['on']('execute',_0x20aef7=>{_0x329f00['isReady']&&'function'==typeof _0x20aef7['source']['_action']&&_0x20aef7['source']['_action'](_0x329f00);}),_0x19a37f(_0x6e5cd6,_0x1fb774,{'role':'menu'}),_0x6e5cd6['listenTo'](_0x329f00,'change:isActionsDropdownOpen',(_0x586dc5,_0x48b00a,_0x215e1b)=>{if(_0x215e1b)for(const _0x1df0c1 of _0x6e5cd6['listView']['items']){const _0x3a95ec=_0x1df0c1['children']['first'],_0x240e79=_0x2a1e47['find'](_0x4b7ee7=>_0x4b7ee7['action']===_0x3a95ec['_action'])['isVisible'];_0x1df0c1['isVisible']=void 0x0===_0x240e79||_0x240e79(_0x329f00);}}),_0x6e5cd6;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x3bf4fb(_0x525a1d){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x44dedd,_0x1da2d9,_0x2e3c52,_0x2c1746){super(_0x44dedd);const _0xe5803f=this['bindTemplate'],_0x1003ae=function(_0x1d77aa,_0x2fdad2){const _0x32ce6a=Array['from'](_0x2fdad2['authors'])['filter'](_0x36fb26=>_0x36fb26!=_0x2fdad2['creator']);return _0x2fdad2['creator']&&_0x32ce6a['unshift'](_0x2fdad2['creator']),_0x32ce6a['map'](_0x507e72=>new oi(_0x1d77aa,_0x507e72,_0x507e72==_0x2fdad2['creator']));}(_0x44dedd,_0x1da2d9);this['id']=_0x1da2d9['id'],this['_revision']=_0x1da2d9,this['_requireRevisionName']=_0x2c1746,this['bind']('name','createdAt')['to'](_0x1da2d9),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x50ef84=>{return _0x5c27c2=_0x44dedd['uiLanguage'],(_0x546fb7=_0x50ef84)['toLocaleDateString'](_0x5c27c2,{'month':'long','day':'numeric'})+',\x20'+_0x546fb7['toLocaleTimeString'](_0x5c27c2,{'hour':'numeric','minute':'numeric'});var _0x5c27c2,_0x546fb7;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x44dedd,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1648b7=>_0x1648b7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5cad51,_0x3fb70a)=>_0x5cad51&&_0x3fb70a),this['revisionActionsView']=_0x2e3c52&&_0x2e3c52['length']?ni(this,_0x2e3c52):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xe5803f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xe5803f['if']('isEnabled','ck-disabled',_0x5b7054=>!_0x5b7054),_0xe5803f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xe5803f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xe5803f['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':_0xe5803f['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':_0x1003ae}]},this['revisionActionsView']],'on':{'click':_0xe5803f['to'](_0xe314b7=>{_0xe314b7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x282eb4=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x282eb4,'change',()=>{this['_requireRevisionName']&&!_0x282eb4['value']||this['fire']('setName',{'id':this['id'],'name':_0x282eb4['value']}),_0x282eb4['value']||(_0x282eb4['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(_0x3e79e6,_0x373fb4){const _0x1f84f4=_0x920f1c['fromJSDate'](_0x3e79e6)['setLocale'](_0x373fb4),_0x7feb1e=_0x920f1c['local'](),_0x361e8b=_0x7feb1e['minus']({'days':0x1})['startOf']('day');let _0x1d50e4,_0x5643e5;return _0x1f84f4['hasSame'](_0x7feb1e,'day')?(_0x1d50e4=_0x1f84f4['startOf']('day')['toJSDate'](),_0x5643e5=_0x1f84f4['toRelativeCalendar']()):_0x1f84f4['hasSame'](_0x361e8b,'day')?(_0x1d50e4=_0x361e8b['toJSDate'](),_0x5643e5=_0x1f84f4['toRelativeCalendar']()):_0x1f84f4['hasSame'](_0x7feb1e,'week')?(_0x1d50e4=_0x1f84f4['startOf']('week')['toJSDate'](),_0x5643e5=_0x1f84f4['weekdayLong']||''):_0x1f84f4['hasSame'](_0x7feb1e,'year')?(_0x1d50e4=_0x1f84f4['startOf']('month')['toJSDate'](),_0x5643e5=_0x1f84f4['monthLong']||''):(_0x1d50e4=_0x1f84f4['startOf']('year')['toJSDate'](),_0x5643e5=String(_0x1f84f4['year'])),{'startDate':_0x1d50e4,'localizedPeriodName':_0x5643e5};}class _i extends _0x525a1d{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x14847a,_0x276431,_0x32a9a0,_0x16e8f4){super(_0x14847a);const _0x10a1dc=mi(_0x276431,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x276431,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x32a9a0,this['_requireRevisionName']=_0x16e8f4,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':_0x10a1dc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5a40b0){const _0x399f15=new ai(this['locale'],_0x5a40b0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x399f15);}['removeRevision'](_0x409372){const _0x5d7cc7=this['revisionViews']['find'](_0xd003a8=>_0xd003a8['id']===_0x409372['id']);this['revisionViews']['remove'](_0x5d7cc7);}}class as extends _0x525a1d{constructor(_0x28d327){super(_0x28d327);const _0x310ff4=new _0x35b78b();_0x310ff4['content']=_0x5ce4fd,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x310ff4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x28d327,'Revision\x20history')]}]});}}class vi extends _0x525a1d{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xc8dd20,_0x2d0c14,_0x4056ac,_0x2c62d0){super(_0xc8dd20);const _0xf2bfe8=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2d0c14,this['_revisionActions']=_0x4056ac,this['_requireRevisionName']=_0x2c62d0,this['on']('select',(_0xb0f62a,_0xf8790e)=>{this['fire']('revisionSelected',_0xf8790e);}),this['on']('setName',(_0x34560e,_0x405623)=>{this['fire']('revisionSetName',_0x405623);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xc8dd20),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xf2bfe8['if']('isEnabled','ck-disabled',_0x40e7a5=>!_0x40e7a5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x799a61 of this['_revisions'])this['_addRevision'](_0x799a61);this['_revisions']['on']('add',(_0x45fe06,_0x256f50)=>{this['_addRevision'](_0x256f50);}),this['_revisions']['on']('remove',(_0x3e37f4,_0x34cf58)=>{this['_removeRevision'](_0x34cf58);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5b57aa=>_0x5b57aa['revisionViews']['map'](_0xa9802d=>_0xa9802d))['flat']();}['selectRevision'](_0x5d1e87){for(const _0x36d0d7 of this['revisionViews'])_0x5d1e87&&_0x5d1e87['id']===_0x36d0d7['id']?_0x36d0d7['select']():_0x36d0d7['deselect']();}['highlightRevisions'](_0x5e13ee){for(const _0x748a50 of this['revisionViews'])_0x5e13ee['some'](({id:_0x5035af})=>_0x5035af===_0x748a50['id'])?_0x748a50['highlight']():_0x748a50['unhighlight']();}['_addRevision'](_0x3317e4){const _0x2213e8=mi(_0x3317e4['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4c757d=this['timePeriodViews']['get'](0x0);_0x4c757d&&_0x4c757d['startDate']['getTime']()===_0x2213e8['getTime']()||(_0x4c757d=new _i(this['locale'],_0x2213e8,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4c757d)),_0x4c757d['addRevision'](_0x3317e4);}['_removeRevision'](_0xa80ca6){const _0x5980c8=mi(_0xa80ca6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5980c8)['removeRevision'](_0xa80ca6);}['_getTimePeriodViewByStartDate'](_0x39f4aa){return this['timePeriodViews']['find'](_0xeea4e1=>_0xeea4e1['startDate']['getTime']()===_0x39f4aa['getTime']());}}class g extends _0x26f450{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4d6e3b,uid as _0xe821f1,Collection as _0x751bfb,logWarning as _0x30edc3,FocusTracker as _0x3dfb88,KeystrokeHandler as _0xef17d7,scrollViewportToShowTarget as _0x16f493,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x1d3755}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x351846,set as _0x168284,unset as _0x4a8a1c,isEqual as _0x5db2c9}from'es-toolkit/compat';import{Plugin as _0x3c80d2,PendingActions as _0x11f700,Command as _0x13f25b,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x442638,getMarkerDomElement as _0x11be06,ConfirmMixin as _0x3a7de8,sanitizeEditorConfig as _0x34b419}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x469639,Element as ut,Range as ft,ViewUIElement as _0x5ad08c,ViewRawElement as _0x5f2f31,ViewEmptyElement as _0x50a7fd,ViewAttributeElement as _0x378d02,ViewContainerElement as _0x2901db,Position as vt,ViewText as _0x4ccbca,ViewElement as _0x46c9fc,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3144c0,IconChevronUp as _0x235e6b,IconChevronDown as _0x397ef1,IconUndo as _0x324ce9,IconUser as _0x2de24c,IconThreeVerticalDots as _0x3b66e4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x4d7ad0,submitHandler as _0x190f2f,LabeledFieldView as _0xecce61,createLabeledInputText as _0x5c6c61,createDropdown as _0x3690ba,ListView as _0x594650,ListItemView as _0xbcf656,ButtonView as te,MenuBarMenuView as _0x3d65e2,MenuBarMenuListView as _0x3abd94,MenuBarMenuListItemView as _0x390930,MenuBarMenuListItemButtonView as _0x5a5432,ContextualBalloon as _0x44d490,ToolbarSeparatorView as _0x31e5ea,IconView as _0x39d1e2,addListToDropdown as _0x8d46c2,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3e1eeb}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x4d6e3b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4cdef6){super(),this['id']=_0x4cdef6['id']||_0xe821f1(),this['creator']=_0x4cdef6['creator']||null,this['authors']=_0x4cdef6['authors']||[],this['diffData']=_0x4cdef6['diffData']||null,this['toVersion']=_0x4cdef6['toVersion']||0x0,this['fromVersion']=_0x4cdef6['fromVersion']||0x0,this['set']('name',_0x4cdef6['name']||''),this['set']('createdAt',_0x4cdef6['createdAt']||new Date()),this['set']('attributes',_0x4cdef6['attributes']||{});}['setName'](_0x24a9a2){this['_update']({'name':_0x24a9a2});}['setAttribute'](_0x34d126,_0x3918b4){const _0x3bad1f=_0x351846(this['attributes']);_0x168284(_0x3bad1f,_0x34d126,_0x3918b4),this['_update']({'attributes':_0x3bad1f});}['removeAttribute'](_0x3a50b4){const _0x161aa6=_0x351846(this['attributes']);_0x4a8a1c(_0x161aa6,_0x3a50b4),this['_update']({'attributes':_0x161aa6});}['_update'](_0xb80e20,_0x480e7f=!0x1){let _0xc352f3=!0x1;const _0x255335={'id':this['id']},_0x395639=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2093e0 of _0x395639){const _0x2b1a32=_0xb80e20[_0x2093e0];void 0x0!==_0x2b1a32&&_0x2b1a32!==this[_0x2093e0]&&(this[_0x2093e0]=_0x2b1a32,_0x255335[_0x2093e0]=_0x2b1a32,_0xc352f3=!0x0);}_0xc352f3&&(_0x255335['authors']&&(_0x255335['authorsIds']=_0x255335['authors']['map'](_0x17f09e=>_0x17f09e['id']),delete _0x255335['authors']),this['fire']('_update',_0x255335,_0x480e7f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1ff610=>_0x1ff610['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3c80d2{['_revisions'];static get['requires'](){return[_0x442638];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xe94349){super(_0xe94349),this['_revisions']=new _0x751bfb();}['afterInit'](){!async function(_0x3a2447){const _0x21d078=_0x2b8107([0x42,0x32,0x30,0x4a,0x45,0x64,0x76,0x69,0x43,0x74,0x4f,0x66,0x4d,0x37,0x6f,0x62,0x57,0x46,0x56,0x5a,0x58,0x6e,0x41,0x68,0x4e,0x35,0x61,0x65,0x55,0x4c,0x49,0x77,0x48,0x70,0x54,0x44,0x4b,0x47,0x50,0x39,0x52,0x34,0x33,0x6d,0x6b,0x71,0x75,0x73,0x79,0x38,0x6c,0x7a,0x63,0x53,0x51,0x67,0x59,0x78,0x72,0x31,0x6a,0x36]),_0x5741c4=0xeb829,_0x13476a=0x1fb1eaf4,_0xa17231=0x1fb689fc^_0x13476a,_0x59c6ee=window[_0x2b8107([0x44,0x61,0x74,0x65])][_0x2b8107([0x6e,0x6f,0x77])](),_0x61585d=_0x3a2447[_0x2b8107([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e4df4=new window[(_0x2b8107([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35b1e1=>{_0x61585d[_0x2b8107([0x6f,0x6e,0x63,0x65])](_0x2b8107([0x72,0x65,0x61,0x64,0x79]),_0x35b1e1);}),_0x11ca24={[_0x2b8107([0x6b,0x74,0x79])]:_0x2b8107([0x45,0x43]),[_0x2b8107([0x75,0x73,0x65])]:_0x2b8107([0x73,0x69,0x67]),[_0x2b8107([0x63,0x72,0x76])]:_0x2b8107([0x50,0x2d,0x32,0x35,0x36]),[_0x2b8107([0x78])]:_0x2b8107([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]),[_0x2b8107([0x79])]:_0x2b8107([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]),[_0x2b8107([0x61,0x6c,0x67])]:_0x2b8107([0x45,0x53,0x32,0x35,0x36])},_0x4e3086=_0x61585d[_0x2b8107([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b8107([0x67,0x65,0x74])](_0x2b8107([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cbccc(){let _0x190c1a,_0x374f72=null,_0x126487=null;try{if(_0x4e3086==_0x2b8107([0x47,0x50,0x4c]))return _0x2b8107([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x190c1a=_0x14721b(),!_0x190c1a)return _0x2b8107([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x190c1a[_0x2b8107([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x126487=_0x1a463b(_0x190c1a[_0x2b8107([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x190c1a[_0x2b8107([0x6a,0x74,0x69])])),await _0x571753()?_0x2ddbfc()?_0x25e35c()?_0x2b8107([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43658c()?(_0x190c1a[_0x2b8107([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b8107([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x374f72=_0x51023e(_0x2b8107([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x190c1a[_0x2b8107([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b8107([0x74,0x72,0x69,0x61,0x6c])&&(_0x374f72=_0x51023e(_0x2b8107([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34ed88()):_0x2b8107([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b8107([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b8107([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x36c3ba){return _0x2b8107([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25e35c(){const _0x1a8578=[_0x2b8107([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b8107([0x74,0x72,0x69,0x61,0x6c])][_0x2b8107([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x190c1a[_0x2b8107([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59c6ee/0x3e8:0xe10*_0xa17231;return _0x190c1a[_0x2b8107([0x65,0x78,0x70])]<_0x1a8578;}function _0x2ddbfc(){const _0x409607=_0x190c1a[_0x2b8107([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x409607)return!0x1;if(_0x409607[_0x2b8107([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b8107([0x2a])))return!0x0;if(_0x409607[_0x2b8107([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b8107([0x52,0x48])))return!0x0;if(_0x409607[_0x2b8107([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b8107([0x52,0x52,0x48]))){if(_0x2578a8())return!0x0;if(_0x3872af()||_0x5581c3())return!0x0;}return!0x1;}function _0x43658c(){const _0x477f00=_0x190c1a[_0x2b8107([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x477f00||0x0==_0x477f00[_0x2b8107([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bd20d}=new URL(window[_0x2b8107([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x477f00[_0x2b8107([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bd20d))return!0x0;const _0xc29944=_0x5bd20d[_0x2b8107([0x73,0x70,0x6c,0x69,0x74])](_0x2b8107([0x2e]));return _0x477f00[_0x2b8107([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8781=>_0x4c8781[_0x2b8107([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b8107([0x2a])))[_0x2b8107([0x6d,0x61,0x70])](_0x18f83d=>_0x18f83d[_0x2b8107([0x73,0x70,0x6c,0x69,0x74])](_0x2b8107([0x2e])))[_0x2b8107([0x73,0x6f,0x6d,0x65])](_0x20a08d=>_0xc29944[_0x2b8107([0x65,0x76,0x65,0x72,0x79])]((_0x57590a,_0x39a054)=>_0x20a08d[_0x39a054]===_0x57590a||_0x20a08d[_0x39a054]===_0x2b8107([0x2a])));}function _0x34ed88(){return _0x374f72&&_0x126487?new window[(_0x2b8107([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x200404,_0xbaaa2)=>{_0x374f72[_0x2b8107([0x74,0x68,0x65,0x6e])](_0x200404,_0xbaaa2),_0x126487[_0x2b8107([0x74,0x68,0x65,0x6e])](_0x450235=>{_0x450235!=_0x2b8107([0x56,0x61,0x6c,0x69,0x64])&&_0x200404(_0x450235);},_0xbaaa2);}):_0x374f72||_0x126487||_0x2b8107([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a463b(_0x2881ce,_0x3afea0){return new window[(_0x2b8107([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x189159=>{if(_0xc0390d())return _0x189159(_0x2b8107([0x56,0x61,0x6c,0x69,0x64]));_0x958378(),_0x61585d[_0x2b8107([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b8107([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f430c=!0x1;const _0x37a066=_0xe821f1();function _0x1b9385(_0x4d9838){return!!_0x4d9838&&(typeof _0x4d9838===_0x2b8107([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d9838===_0x2b8107([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d9838[_0x2b8107([0x74,0x68,0x65,0x6e])]===_0x2b8107([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d9838[_0x2b8107([0x63,0x61,0x74,0x63,0x68])]===_0x2b8107([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51073d(_0x2da04c){_0x23d385(_0x2da04c)[_0x2b8107([0x74,0x68,0x65,0x6e])](_0xc67467=>{if(!_0xc67467||_0xc67467[_0x2b8107([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b8107([0x6f,0x6b]))return _0x2b8107([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x498b7d(_0x5638b9(_0x37a066+_0x3afea0))!=_0xc67467[_0x2b8107([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b8107([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b8107([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b8107([0x74,0x68,0x65,0x6e])](_0x201f1f=>(_0x42553b(),_0x201f1f),()=>{const _0x5a996b=_0x1cbca1();return null==_0x5a996b?(_0x42553b(),_0x2b8107([0x56,0x61,0x6c,0x69,0x64])):_0x2b8107(_0x59c6ee-_0x5a996b>(0x3bbd6ef4^_0x13476a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b8107([0x74,0x68,0x65,0x6e])](_0x189159)[_0x2b8107([0x63,0x61,0x74,0x63,0x68])](()=>{_0x189159(_0x2b8107([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b509d=0x1f870474^_0x13476a;function _0x42553b(){const _0x15df94=_0x2b8107([0x6c,0x6c,0x63,0x74,0x2d])+_0x498b7d(_0x5638b9(_0x2881ce)),_0x1eacbb=_0x22e0ad(_0x498b7d(window[_0x2b8107([0x4d,0x61,0x74,0x68])][_0x2b8107([0x63,0x65,0x69,0x6c])](_0x59c6ee/_0x4b509d)));window[_0x2b8107([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b8107([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15df94,_0x1eacbb);}function _0x1cbca1(){const _0x115c17=_0x2b8107([0x6c,0x6c,0x63,0x74,0x2d])+_0x498b7d(_0x5638b9(_0x2881ce)),_0x4742e4=window[_0x2b8107([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b8107([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x115c17);return _0x4742e4?window[_0x2b8107([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e0ad(_0x4742e4),0x10)*_0x4b509d:null;}function _0x23d385(_0x38e8f1){return new window[(_0x2b8107([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x431b45,_0x274a19)=>{_0x38e8f1[_0x2b8107([0x74,0x68,0x65,0x6e])](_0x431b45,_0x274a19),window[_0x2b8107([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x274a19,0x1fb03e34^_0x13476a);});}}_0x61585d[_0x2b8107([0x6f,0x6e])](_0x2b8107([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2016ff,_0x463db0)=>{if(_0x463db0[0x0]!=_0x2881ce)return _0x189159(_0x2b8107([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x463db0[0x1]={..._0x463db0[0x1],[_0x2b8107([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37a066};},{[_0x2b8107([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b8107([0x68,0x69,0x67,0x68])}),_0x61585d[_0x2b8107([0x6f,0x6e])](_0x2b8107([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1969a7=>{_0x1b9385(_0x1969a7[_0x2b8107([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f430c=!0x0,_0x51073d(_0x1969a7[_0x2b8107([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b8107([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b8107([0x6c,0x6f,0x77])}),_0x2e4df4[_0x2b8107([0x74,0x68,0x65,0x6e])](()=>{_0x4f430c||_0x189159(_0x2b8107([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc0390d(){return _0x61585d[_0x2b8107([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b8107([0x76,0x69,0x65,0x77])][_0x2b8107([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b8107([0x61,0x75,0x74,0x6f]);}function _0x958378(){_0x61585d[_0x2b8107([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b8107([0x76,0x69,0x65,0x77])][_0x2b8107([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b8107([0x61,0x75,0x74,0x6f]);}}function _0x51023e(_0x26dc2c){const _0x321683=[new window[(_0x2b8107([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d3f04=>setTimeout(_0x2d3f04,0x1fb8d438^_0x13476a)),_0x2e4df4[_0x2b8107([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b8107([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a2798=>{const _0xf91890=0x1fb1eaf3^_0x13476a,_0x50a03f=_0x3a2447[_0x2b8107([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x510e96(){_0x50a03f[_0x2b8107([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xf91890&&_0x4a2798();}_0x510e96(),_0x50a03f[_0x2b8107([0x6f,0x6e])](_0x2b8107([0x61,0x64,0x64]),_0x510e96);})),new window[(_0x2b8107([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbca977=>{function _0x3aa53a(){for(const _0x4bce27 in window)if(window[_0x2b8107([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2b8107([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4bce27))&&window[_0x4bce27]==_0x5741c4)return _0xbca977();_0x61585d[_0x2b8107([0x73,0x74,0x61,0x74,0x65])]!=_0x2b8107([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2b8107([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3aa53a,0x1fb1f97c^_0x13476a);}_0xc421ec(_0x2b8107([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3aa53a();})];return window[_0x2b8107([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b8107([0x72,0x61,0x63,0x65])](_0x321683)[_0x2b8107([0x74,0x68,0x65,0x6e])](()=>_0x26dc2c);}async function _0x1cd075(){if(await _0x2e4df4,_0xc421ec(_0x2b8107([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x501837=_0x3a2447[_0x2b8107([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x537909=_0x3a2447[_0x2b8107([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])](_0x501837[_0x2b8107([0x69,0x64])]),_0x3b67ff=_0xc5146b(_0x2b8107([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3b67ff[_0x2b8107([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x501837['id'],_0x537909?_0x537909['id']:null,!0x0),_0x3b67ff[_0x2b8107([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2b8107([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3b67ff[_0x2b8107([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3b67ff[_0x2b8107([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3b1ba3,void(_0x3b67ff[_0x2b8107([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3b1ba3);}if(_0xc421ec(_0x2b8107([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x38b631=_0xc5146b(_0x2b8107([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x38b631[_0x2b8107([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2b8107([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x38b631[_0x2b8107([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x38b631[_0x2b8107([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3b1ba3,_0x38b631[_0x2b8107([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3b1ba3;}_0x61585d[_0x2b8107([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b8107([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b1ba3,_0x61585d[_0x2b8107([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b8107([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b1ba3,_0x61585d[_0x2b8107([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b8107([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2578a8(){return _0xc421ec(_0x2b8107([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc5146b(_0x2b8107([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2b8107([0x73,0x74,0x61,0x74,0x65])]==_0x2b8107([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3872af(){return _0xc421ec(_0x2b8107([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 _0x5581c3(){return _0xc421ec(_0x2b8107([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5ba856(_0x413d06){const _0x14d78c=_0x549569();_0x61585d[_0x14d78c]=_0x2b8107([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])+_0x413d06,_0x413d06[_0x2b8107([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2b8107([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x549569()]=_0x5741c4),_0x413d06!=_0x2b8107([0x56,0x61,0x6c,0x69,0x64])&&_0x1cd075();}function _0x549569(){const _0x53cabd=window[_0x2b8107([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b8107([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b8107([0x6e,0x6f,0x77])]())[_0x2b8107([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b8107([0x2e]),'');let _0x493fb5=_0x2b8107([0x42]);for(let _0x5759d4=0x0;_0x5759d4<_0x53cabd[_0x2b8107([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5759d4+=0x2){let _0x33430d=window[_0x2b8107([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53cabd[_0x2b8107([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5759d4,_0x5759d4+0x2));_0x33430d>=_0x21d078[_0x2b8107([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33430d-=_0x21d078[_0x2b8107([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x493fb5+=_0x21d078[_0x33430d];}return _0x493fb5;}function _0x14721b(){const _0x5c3442=_0x4e3086[_0x2b8107([0x73,0x70,0x6c,0x69,0x74])](_0x2b8107([0x2e]));if(0x3!=_0x5c3442[_0x2b8107([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44b3be(_0x5c3442[0x1]);function _0x44b3be(_0x5e9f5d){const _0x132e7b=_0x50c738(_0x5e9f5d);return _0x132e7b&&_0x2e030f()?_0x132e7b:null;function _0x2e030f(){const _0x4fe268=_0x132e7b[_0x2b8107([0x6a,0x74,0x69])],_0x459802=window[_0x2b8107([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fe268[_0x2b8107([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fe268[_0x2b8107([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4226d0={..._0x132e7b,[_0x2b8107([0x6a,0x74,0x69])]:_0x4fe268[_0x2b8107([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4fe268[_0x2b8107([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4226d0[_0x2b8107([0x76,0x63])],_0x5638b9(_0x4226d0)==_0x459802;}}}async function _0x571753(){let _0x19f874=!0x0;try{const _0x502294=_0x4e3086[_0x2b8107([0x73,0x70,0x6c,0x69,0x74])](_0x2b8107([0x2e])),[_0x1b37cc,_0x354577,_0x213a1e]=_0x502294;return _0x2e2fc3(_0x1b37cc),await _0x405ad3(_0x1b37cc,_0x354577,_0x213a1e),_0x19f874;}catch(_0x45d3d4){return!0x1;}function _0x2e2fc3(_0x569f04){const _0x42bff0=_0x50c738(_0x569f04);_0x42bff0&&_0x42bff0[_0x2b8107([0x61,0x6c,0x67])]==_0x2b8107([0x45,0x53,0x32,0x35,0x36])||(_0x19f874=!0x1);}async function _0x405ad3(_0x17c611,_0x1bf47a,_0x323e5d){const _0x2a943f=window[_0x2b8107([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b8107([0x66,0x72,0x6f,0x6d])](_0x153d11(_0x323e5d),_0x1a8975=>_0x1a8975[_0x2b8107([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xce05=new window[(_0x2b8107([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b8107([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17c611+_0x2b8107([0x2e])+_0x1bf47a),_0x21807f=window[_0x2b8107([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b8107([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21807f)return;const _0x383d85=await _0x21807f[_0x2b8107([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b8107([0x6a,0x77,0x6b]),_0x11ca24,{[_0x2b8107([0x6e,0x61,0x6d,0x65])]:_0x2b8107([0x45,0x43,0x44,0x53,0x41]),[_0x2b8107([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b8107([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b8107([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21807f[_0x2b8107([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b8107([0x6e,0x61,0x6d,0x65])]:_0x2b8107([0x45,0x43,0x44,0x53,0x41]),[_0x2b8107([0x68,0x61,0x73,0x68])]:{[_0x2b8107([0x6e,0x61,0x6d,0x65])]:_0x2b8107([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x383d85,_0x2a943f,_0xce05)||(_0x19f874=!0x1);}}function _0x50c738(_0x35e939){return _0x35e939[_0x2b8107([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b8107([0x65,0x79]))?JSON[_0x2b8107([0x70,0x61,0x72,0x73,0x65])](_0x153d11(_0x35e939)):null;}function _0x153d11(_0x3a4c98){return window[_0x2b8107([0x61,0x74,0x6f,0x62])](_0x3a4c98[_0x2b8107([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b8107([0x2b]))[_0x2b8107([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b8107([0x2f])));}function _0x5638b9(_0x5b1ed4){let _0x3c04be=0x1505;function _0x4e6ca9(_0x2c9280){for(let _0x4771b4=0x0;_0x4771b4<_0x2c9280[_0x2b8107([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4771b4++){const _0xa6fa1=_0x2c9280[_0x2b8107([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4771b4);_0x3c04be=(_0x3c04be<<0x5)+_0x3c04be+_0xa6fa1,_0x3c04be&=_0x3c04be;}}function _0xbf2d93(_0x36add1){Array[_0x2b8107([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36add1)?_0x36add1[_0x2b8107([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xbf2d93):_0x36add1&&typeof _0x36add1==_0x2b8107([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b8107([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36add1)[_0x2b8107([0x73,0x6f,0x72,0x74])]()[_0x2b8107([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x342c0a,_0x58b441])=>{_0x4e6ca9(_0x342c0a),_0xbf2d93(_0x58b441);}):_0x4e6ca9(window[_0x2b8107([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36add1));}return _0xbf2d93(_0x5b1ed4),_0x3c04be>>>0x0;}function _0x498b7d(_0x2d552a){return _0x2d552a[_0x2b8107([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b8107([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b8107([0x30]));}function _0x22e0ad(_0x523f3e){return _0x523f3e[_0x2b8107([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b8107([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b8107([0x6a,0x6f,0x69,0x6e])]('');}function _0xc421ec(_0x39d2c1){return _0x61585d[_0x2b8107([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b8107([0x68,0x61,0x73])](_0x39d2c1);}function _0xc5146b(_0x4ac578){return _0x61585d[_0x2b8107([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b8107([0x67,0x65,0x74])](_0x4ac578);}function _0x3b1ba3(){}function _0x2b8107(_0x2b9979){return _0x2b9979['map'](_0x3bda72=>String['fromCharCode'](_0x3bda72))['join']('');}_0x5ba856(await _0x3cbccc());}(this);}['createRevision'](_0x4cd753){const _0x322fd8=this['editor']['plugins']['get']('Users');return new h({'id':_0x4cd753['id'],'name':_0x4cd753['name'],'creator':_0x4cd753['creatorId']?_0x322fd8['getUser'](_0x4cd753['creatorId']):null,'diffData':_0x4cd753['diffData']||_0x4cd753['data'],'authors':_0x4cd753['authorsIds']['map'](_0xfeddb2=>_0x322fd8['getUser'](_0xfeddb2)),'createdAt':new Date(_0x4cd753['createdAt']),'attributes':_0x4cd753['attributes'],'fromVersion':_0x4cd753['fromVersion'],'toVersion':_0x4cd753['toVersion']});}['addRevision'](_0x2a6429,_0x563aac=0x0){this['_revisions']['add'](_0x2a6429,_0x563aac);}['getRevision'](_0x2d7c0d){return this['_revisions']['get'](_0x2d7c0d);}['getRevisions'](_0x3e6315={'toJSON':!0x1}){const _0x50e785=Array['from'](this['_revisions']);return _0x50e785['reverse'](),_0x3e6315['toJSON']?_0x50e785['map'](_0x1889cc=>_0x1889cc['toJSON']()):_0x50e785;}['getIndex'](_0x1f8f85){return this['_revisions']['getIndex'](_0x1f8f85);}['getEarlierVisibleRevision'](_0x4c6eba){const [,_0x931d2f]=this['getRevisionsIterator'](_0x4c6eba,{'direction':'earlier'});return _0x931d2f;}['getLaterVisibleRevision'](_0x3d206c){const [,_0x3e9568]=this['getRevisionsIterator'](_0x3d206c,{'direction':'later'});return _0x3e9568;}['getRevisionsInDiff'](_0x1d0f1d){const _0x21ec20=[];for(const _0x3f65b2 of this['getRevisionsIterator'](_0x1d0f1d['newRevisionId']))if(_0x21ec20['push'](_0x3f65b2),_0x3f65b2['id']===_0x1d0f1d['oldRevisionId'])break;return _0x21ec20;}*['getRevisionsIterator'](_0x485e73,{direction:_0x38a616='earlier',filter:_0x21d761=()=>!0x0}={}){const _0x40b6c3='earlier'===_0x38a616?0x1:-0x1;let _0x5c5c8d=this['_revisions']['get'](_0x485e73),_0x30d9d2=this['getIndex'](_0x5c5c8d);for(yield _0x5c5c8d;_0x5c5c8d;){if(_0x30d9d2+=_0x40b6c3,_0x5c5c8d=this['getRevision'](_0x30d9d2),!_0x5c5c8d)return;_0x21d761(_0x5c5c8d)&&(yield _0x5c5c8d);}}}function m(_0x3bece7,_0x964635,_0x117364){const t=_0x3bece7['t'];switch(_0x964635){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'},_0x117364);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x117364);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x2901db,'a':_0x378d02,'e':_0x50a7fd,'r':_0x5f2f31,'u':_0x5ad08c};class u extends _0x3c80d2{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x442638,j,_0x11f700];}constructor(_0x3ee6a4){super(_0x3ee6a4),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x15378b=_0xe821f1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x15378b},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x328b0e=this['repository']['getRevision'](0x0),_0x5939d7=_0x328b0e&&null===_0x328b0e['creator']?_0x328b0e:null;if(this['_continueCurrentRevision']=!!_0x5939d7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4411a9=this['_source']['getCurrentRevisionId'](),_0x1fc275=this['repository']['getRevision'](_0x4411a9);if(_0x1fc275)this['_startingVersion']=_0x1fc275['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x543cf4=this['_source']['history']['_operations']['find'](_0x36dda2=>!_0x36dda2['_isInit']),_0x7c9459=_0x543cf4?_0x543cf4['baseVersion']:this['_source']['history']['version'];_0x328b0e?(_0x328b0e['toVersion']<_0x7c9459&&_0x328b0e['_update']({'toVersion':_0x7c9459}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5939d7['id'],this['_startingVersion']=_0x5939d7['fromVersion']):(this['_startingVersion']=_0x328b0e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x7c9459,this['_continueCurrentRevision']=!0x1);}}else _0x5939d7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5939d7['toVersion'],this['editor']['model']['document']['history']['version']),_0x5939d7['fromVersion']===_0x5939d7['toVersion']?(0x0!==_0x5939d7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5939d7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5939d7['id'],this['_startingVersion']=_0x5939d7['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',_0x15daf8=>!_0x15daf8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x465282=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5531c2;for(const _0x325078 in _0x465282){const _0x4f8416=_0x325078,_0x1aad5d=_0x465282[_0x4f8416];if('revisionHistoryLicenseKeyValid'==_0x1aad5d||'revisionHistoryLicenseKeyInvalid'==_0x1aad5d||'revisionHistoryLicenseKeyExpired'==_0x1aad5d||'revisionHistoryLicenseKeyDomainLimit'==_0x1aad5d||'revisionHistoryLicenseKeyNotAllowed'==_0x1aad5d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1aad5d||'revisionHistoryLicenseKeyTrialLimit'==_0x1aad5d||'revisionHistoryLicenseKeyUsageLimit'==_0x1aad5d){delete _0x465282[_0x4f8416],_0x5531c2=_0x1aad5d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5531c2&&_0x465282['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5531c2&&_0x465282['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5531c2&&_0x465282['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5531c2&&_0x465282['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5531c2&&_0x465282['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5531c2&&_0x465282['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5531c2&&_0x465282['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x51916a=this['repository']['getRevision'](0x0),_0x2efae8=await this['getRevisionDocumentData'](_0x51916a),_0x5ab26e=await this['getRevisionRootsAttributes'](_0x51916a);this['_replaceEditorDataWithRevisionData'](_0x2efae8,_0x5ab26e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5bcf3c){this['_source']=_0x5bcf3c;}async['update'](){const _0x1c0518=await this['_source']['getLatestVersion']();if(_0x1c0518>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4db8d4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1c0518});_0x4db8d4['authors']=_0x4db8d4['authorsIds']['map'](_0x5691fc=>this['editor']['plugins']['get']('Users')['getUser'](_0x5691fc)),this['currentRevision']['_update'](_0x4db8d4);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x5c77c8={},_0x56e250=null){const _0x4e1e86=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x56e250>this['currentRevision']['toVersion']&&(_0x56e250=null),null===_0x56e250&&(_0x56e250=await this['_source']['getLatestVersion']());const _0x4bb72f=this['_getFromVersion'](_0x56e250),_0x57e76=this['buildRevisionData']({'from':_0x4bb72f,'to':_0x56e250});if(this['currentRevision']['toVersion']<_0x56e250){const _0xb9fc7e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x56e250,'to':_0x56e250});_0xb9fc7e['authors']=[],_0xb9fc7e['authorsIds']=[],_0xb9fc7e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xb9fc7e,!0x0),delete _0xb9fc7e['authors'],_0x4e1e86['push'](_0xb9fc7e);}_0x5c77c8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c77c8['name']=_0x5c77c8['name']||null,_0x5c77c8['id']=_0x5c77c8['id']||_0xe821f1(),_0x5c77c8={..._0x5c77c8,..._0x57e76};const _0x36fdc2=this['addRevisionData'](_0x5c77c8);_0x4e1e86['push'](_0x5c77c8);const _0x561f4e=this['repository']['getIndex'](_0x36fdc2);if(0x0!==_0x561f4e){const _0x43a801=this['repository']['getRevision'](_0x561f4e-0x1);if(_0x43a801['fromVersion']!==_0x56e250){const _0x4b57f9=this['_revisionDataBuilder']['getData'](_0x56e250,_0x43a801['toVersion']),_0x212d27={'id':_0x43a801['id'],'diffData':_0x4b57f9['diffData'],'authorsIds':_0x4b57f9['authorsIds'],'authors':_0x4b57f9['authorsIds']['map'](_0x563670=>this['editor']['plugins']['get']('Users')['getUser'](_0x563670)),'fromVersion':_0x56e250};_0x43a801===this['currentRevision']&&(_0x212d27['createdAt']=new Date(_0x5c77c8['createdAt']['getTime']()+0xa)),_0x43a801['_update'](_0x212d27,!0x0),delete _0x212d27['authors'],_0x4e1e86['push'](_0x212d27);}}if(this['adapter']){for(const _0x663886 of _0x4e1e86)this['_bufferUpdate'](_0x663886['id'],_0x663886,!0x0);this['sendBufferedUpdates']();}return _0x36fdc2;}['addRevisionData'](_0x5c2c50){const _0x122707=this['repository']['createRevision'](_0x5c2c50);return this['adapter']&&_0x122707['on']('_update',(_0x5de714,_0x3f27a6,_0x45fcff)=>{_0x45fcff||(this['_bufferUpdate'](_0x3f27a6['id'],_0x3f27a6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x122707,this['_findInsertionIndex'](_0x122707)),_0x122707;}async['getRevisionDocumentData'](_0x34bd42){await this['_loadRevisionData'](_0x34bd42);const _0x33ac5e={};for(const _0x52072a in _0x34bd42['diffData']){if(_0x34bd42['diffData'][_0x52072a]['attachChange']&&!_0x34bd42['diffData'][_0x52072a]['attachChange']['isAttached'])continue;const _0x369b27=this['_removeRevisionMarkers'](JSON['parse'](_0x34bd42['diffData'][_0x52072a]['insertions'])),_0x10b9f2=this['editor']['editing']['view']['document'],_0x2e2b84=new _0x469639(_0x10b9f2,_0x369b27['map'](_0x345d4f=>P(_0x345d4f,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x33ac5e[_0x52072a]=this['editor']['data']['processor']['toData'](_0x2e2b84),this['editor']['data']['processor']['useFillerType']('default');}return _0x33ac5e;}async['getRevisionRootsAttributes'](_0x1ca83d){await this['_loadRevisionData'](_0x1ca83d);const _0xe52330={};for(const _0x423102 in _0x1ca83d['diffData'])_0x1ca83d['diffData'][_0x423102]['attachChange']&&!_0x1ca83d['diffData'][_0x423102]['attachChange']['isAttached']||(_0xe52330[_0x423102]=_0x1ca83d['diffData'][_0x423102]['attributesAfter']||{});return _0xe52330;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x333311=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xa2563=0x0;_0xa2563<_0x333311['length'];_0xa2563++){const _0x2664db=_0x333311[_0xa2563];let _0x3202e3=!0x1;for(const _0x4b2cc0 of Object['keys'](_0x2664db))void 0x0===_0x2664db[_0x4b2cc0]?delete _0x2664db[_0x4b2cc0]:'id'!==_0x4b2cc0&&(_0x3202e3=!0x0);_0x3202e3||(_0x333311[_0xa2563]=null);}if(_0x333311=_0x333311['filter'](_0x2d392f=>null!==_0x2d392f),!_0x333311['length'])return;for(let _0x572537=0x0;_0x572537<_0x333311['length'];_0x572537++){const _0x4279b7=_0x333311[_0x572537];void 0x0!==_0x4279b7['fromVersion']&&void 0x0===_0x4279b7['toVersion']&&(_0x4279b7['toVersion']=this['repository']['getRevision'](_0x4279b7['id'])['toVersion']),void 0x0!==_0x4279b7['toVersion']&&void 0x0===_0x4279b7['fromVersion']&&(_0x4279b7['fromVersion']=this['repository']['getRevision'](_0x4279b7['id'])['fromVersion']);}const _0x438042=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x333311,_0x438042)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x277944=>{if(_0x277944){for(const _0x410faf of _0x277944)this['setRevisionData']({'id':_0x410faf['id'],'createdAt':_0x410faf['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1da30b,_0x5e25ae){let _0x4a2ff4=this['editor']['config']['get']('initialData'),_0x4c35b4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4a2ff4){_0x4a2ff4={};for(const _0x378c14 of this['editor']['model']['document']['getRootNames']())_0x4a2ff4[_0x378c14]='';}if('string'==typeof _0x4a2ff4&&(_0x4a2ff4={'main':_0x4a2ff4}),void 0x0===_0x4c35b4){_0x4c35b4={};for(const _0x5c357c of this['editor']['model']['document']['getRootNames']())_0x4c35b4[_0x5c357c]={};}let _0x135c6=!0x1;const _0x5031cb=Object['keys'](_0x4a2ff4),_0x58e629=Object['keys'](_0x1da30b);for(const _0x4e4c9d of _0x5031cb){if(_0x4a2ff4[_0x4e4c9d]!==_0x1da30b[_0x4e4c9d]&&''!==_0x4a2ff4[_0x4e4c9d]['trim']()){_0x135c6=!0x0;break;}if(!_0x5db2c9(_0x4c35b4[_0x4e4c9d],_0x5e25ae[_0x4e4c9d])&&Object['keys'](_0x4c35b4[_0x4e4c9d])['length']>0x0){_0x135c6=!0x0;break;}}_0x135c6||(_0x135c6=_0x58e629['some'](_0x31d9b8=>!this['editor']['model']['document']['getRoot'](_0x31d9b8))),_0x135c6&&_0x30edc3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4a2ff4,'editorRootsAttributes':_0x4c35b4,'revisionData':_0x1da30b,'revisionRootsAttributes':_0x5e25ae}),this['editor']['config']['set']('initialData',_0x1da30b),this['editor']['config']['set']('rootsAttributes',_0x5e25ae);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x363025=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x363025['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5dae32){const _0x590c1e=this['repository']['getRevisions']();_0x590c1e['reverse']();let _0x3ecb4c=0x0;for(;_0x3ecb4c<_0x590c1e['length'];){const _0x55101b=_0x590c1e[_0x3ecb4c];if(_0x55101b===this['currentRevision']){_0x3ecb4c++;continue;}if(_0x55101b['id']===this['_initialRevisionId'])break;const _0x458e3b=_0x5dae32['toVersion']-_0x55101b['toVersion']||_0x5dae32['fromVersion']-_0x55101b['fromVersion'];if(_0x458e3b>0x0)break;if(_0x458e3b<0x0)_0x3ecb4c++;else{if(!_0x5dae32['creator']&&_0x55101b['creator'])break;if(_0x55101b['creator']||!_0x5dae32['creator']){if(_0x5dae32['createdAt']>_0x55101b['createdAt'])break;_0x3ecb4c++;}else _0x3ecb4c++;}}return _0x3ecb4c;}['setRevisionData'](_0x2d7564){const _0x7692a5=this['repository']['getRevision'](_0x2d7564['id']);if(_0x2d7564['createdAt']&&(_0x2d7564['createdAt']=new Date(_0x2d7564['createdAt'])),_0x2d7564['authorsIds']){const _0x9377e5=this['editor']['plugins']['get']('Users');_0x2d7564['authors']=_0x2d7564['authorsIds']['map'](_0x36b67b=>_0x9377e5['getUser'](_0x36b67b));}_0x7692a5['_update'](_0x2d7564,!0x0);}['buildRevisionData']({revision:_0x374ea9=null,from:_0x573ec2=null,to:_0x1a2c34=null}){_0x573ec2=null!==_0x573ec2?_0x573ec2:_0x374ea9['fromVersion'],_0x1a2c34=null!==_0x1a2c34?_0x1a2c34:_0x374ea9['toVersion'];const _0x2ce7c4=this['_revisionDataBuilder']['getData'](_0x573ec2,_0x1a2c34),_0x17de46={'diffData':_0x2ce7c4['diffData'],'authorsIds':_0x2ce7c4['authorsIds'],'fromVersion':_0x573ec2,'toVersion':_0x1a2c34};if(!_0x374ea9||_0x1a2c34!==_0x374ea9['toVersion']){const _0x64eedf=_0x1a2c34-0x1,_0x1891b8=this['_source']['history']['getOperation'](_0x64eedf);_0x17de46['createdAt']=_0x1891b8&&_0x1891b8['createdAt']||new Date();}if(this['_loadedStateData']&&_0x573ec2===this['_loadedStateData']['fromVersion']){for(const _0x4832b6 of this['_loadedStateData']['authors'])_0x17de46['authorsIds']['includes'](_0x4832b6['id'])||_0x17de46['authorsIds']['push'](_0x4832b6['id']);}return _0x17de46;}['_loadRevisionData'](_0x1e2527){if(!_0x1e2527||_0x1e2527['diffData'])return Promise['resolve']();{const _0xc76e81=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xc76e81,'revisionId':_0x1e2527['id']})['then'](_0xaf2a0=>{_0x1e2527['diffData']=_0xaf2a0['diffData'];});}}['_bufferUpdate'](_0x46ad5c,_0x2566b2,_0x371b54){if(this['_bufferedUpdates']['has'](_0x46ad5c)){const _0x188998=this['_bufferedUpdates']['get'](_0x46ad5c);_0x2566b2=_0x371b54?{..._0x188998,..._0x2566b2}:{..._0x2566b2,..._0x188998};}this['_bufferedUpdates']['set'](_0x46ad5c,_0x2566b2);}['_getFromVersion'](_0x5c7976){const _0x18b925=this['repository']['getRevisions']();_0x18b925['reverse'](),_0x18b925['shift']();const _0xe3973f=_0x18b925['find'](_0x104564=>_0x104564['toVersion']<=_0x5c7976)['toVersion'];return _0xe3973f<this['_startingVersion']?this['_startingVersion']:_0xe3973f;}['_createInitialRevision'](_0x2bde09){const _0x22b6aa=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x22b6aa)this['_initialRevisionId']=_0x22b6aa['id'];else{const _0x5bbe2f=!this['editor']['model']['document']['roots']['find'](_0x199938=>this['editor']['model']['hasContent'](_0x199938)),_0x48826a=this['editor']['plugins']['get']('Users')['me']['id'],_0x2cfd84=m(this['editor']['locale'],_0x5bbe2f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2bde09,'to':_0x2bde09,'id':this['_initialRevisionId'],'name':_0x2cfd84,'creatorId':_0x48826a});}}['_createCurrentRevision'](_0x1a9fde){const _0x7d4952=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x7d4952),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1a9fde,'to':_0x1a9fde,'id':_0x7d4952,'name':'','creatorId':null}));}['_makeRevision']({name:_0xd3e557,from:_0x3f4809,to:_0x1989af,creatorId:_0x46c357,id:_0x3b09a6}){const _0x187c93=this['buildRevisionData']({'from':_0x3f4809,'to':_0x1989af});_0x187c93['name']=_0xd3e557,_0x187c93['creatorId']=_0x46c357,_0x187c93['id']=_0x3b09a6;const _0x1ab6a6=this['addRevisionData'](_0x187c93);return this['adapter']&&this['_bufferUpdate'](_0x187c93['id'],_0x187c93,!0x0),_0x1ab6a6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xf7ec3f){return(_0xf7ec3f=_0xf7ec3f['filter'](_0x8b87e3=>!_0x8b87e3['name']||'revision-start'!==_0x8b87e3['name']&&'revision-end'!==_0x8b87e3['name']))['forEach'](_0x4eb434=>{'string'!=typeof _0x4eb434&&(_0x4eb434['children']=this['_removeRevisionMarkers'](_0x4eb434['children']),_0x4eb434['attributes']=_0x4eb434['attributes']['filter'](_0x2e3334=>!_0x2e3334[0x0]['startsWith']('data-revision-')));}),_0xf7ec3f;}}function P(_0x230c34,_0x296305){const _0x49dd1d=_0x296305['editing']['view']['document'];if('string'==typeof _0x230c34)return new _0x4ccbca(_0x49dd1d,_0x230c34);{const _0x4d8c34=_0x230c34['children']['map'](_0x29da98=>P(_0x29da98,_0x296305));return new(E[_0x230c34['type']]||_0x46c9fc)(_0x49dd1d,_0x230c34['name'],_0x230c34['attributes'],_0x4d8c34);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5aa822){this['editor']=_0x5aa822,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'](_0xc1f45a){this['source']=_0xc1f45a;const _0x39ad4e=new Map(),_0x4475ad=new Map(),_0x1c2272=this['editor']['model']['document']['roots']['map'](_0x2d6c5a=>_0x2d6c5a['rootName']);for(const _0x255940 of _0x1c2272){const _0x4a8a56=this['editor']['model']['document']['getRoot'](_0x255940),_0x306a38=T(_0x4a8a56);_0x39ad4e['set'](_0x255940,_0x306a38),_0x4475ad['set'](_0x255940,Object['fromEntries'](_0x4a8a56['getAttributes']()));}const _0xa6fee9=Array['from'](this['editor']['model']['markers'])['map'](_0x4f9798=>[_0x4f9798['name'],_0x4f9798['getRange']()]),_0x2e6583=this['source']['version'];this['_saveMetaData'](_0x2e6583,_0x39ad4e,_0xa6fee9,_0x4475ad),this['_startingRevisionId']=this['_revisionId'];const _0x131373=new Map(),_0x37a698=new Map();for(const _0x28c6a7 of _0x1c2272){const _0x3bf38f=F(_0x28c6a7);_0x131373['set'](_0x28c6a7,_0x3bf38f),_0x37a698['set'](_0x28c6a7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x131373,[],_0x37a698);}['getData'](_0x4a1b7a,_0x42dcc2){if(this['_lastFrom']===_0x4a1b7a&&this['_lastTo']<=_0x42dcc2)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x42dcc2,!0x0);else{if(!this['_savedMetaData']['has'](_0x4a1b7a)){const _0x3ec9e5=this['_getPreviousFrom'](_0x4a1b7a);this['_calculateMetaData'](_0x3ec9e5,_0x4a1b7a,!0x1);}this['_calculateMetaData'](_0x4a1b7a,_0x42dcc2,!0x0);}return this['_lastFrom']=_0x4a1b7a,this['_lastTo']=_0x42dcc2,this['_getState']();}['loadState'](_0x35ef92){this['_reset'](),this['_lastFrom']=_0x35ef92['fromVersion'],this['_lastTo']=_0x35ef92['toVersion'];for(const _0x1dee9b in _0x35ef92['diffData']){const _0x18e3dc=_0x35ef92['diffData'][_0x1dee9b]['attachChange'],_0x147d2e=_0x351846(_0x35ef92['diffData'][_0x1dee9b]['attributesBefore'])||{},_0x553de5=this['_makeModelFromViewString'](_0x35ef92['diffData'][_0x1dee9b]['deletions']);_0x553de5['rootName']=_0x1dee9b,_0x553de5['_isAttached']=!_0x18e3dc||!_0x18e3dc['isAttached'],_0x553de5['isAttached']=()=>_0x553de5['_isAttached'],this['_baseRoots']['set'](_0x1dee9b,_0x553de5),this['_baseRootsAttributes']['set'](_0x1dee9b,_0x147d2e),_0x18e3dc&&this['_touchedRoots']['set'](_0x1dee9b,_0x18e3dc);const _0x4cc01f=this['_makeIdsRoot'](_0x553de5);this['_baseIdsRoots']['set'](_0x1dee9b,_0x4cc01f);for(const [_0x455c64,_0x4e0931]of _0x553de5['markers']){if(!_0x455c64['startsWith']('revision:'))continue;const _0x1dc571=_0x455c64['split'](':')[0x2];for(const _0x47df7c of _0x4e0931['getWalker']({'singleCharacters':!0x0})){const _0x3e2b1a=this['_getVidAttributeName'](_0x47df7c),_0x5234fa='elementEnd'==_0x47df7c['type']?_0x47df7c['previousPosition']['path']['slice'](0x0,-0x1):_0x47df7c['previousPosition']['path'],_0x5db969=_0x4cc01f['getNodeByPath'](_0x5234fa)['getAttribute'](_0x3e2b1a);this['_touched']['set'](_0x5db969,{'userId':_0x1dc571});}}}this['_startingRevisionId']=this['_revisionId'];const _0x354dd5=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x300f1f=>!this['_touched']['has'](_0x300f1f));let _0x57d80=0x0;const _0x5b646f=new Map();for(const _0xe5595f in _0x35ef92['diffData']){const _0x41b513=_0x35ef92['diffData'][_0xe5595f]['attachChange'],_0x2dd423=_0x351846(_0x35ef92['diffData'][_0xe5595f]['attributesAfter'])||{},_0xf96dcd=this['_makeModelFromViewString'](_0x35ef92['diffData'][_0xe5595f]['insertions']);_0xf96dcd['rootName']=_0xe5595f,_0xf96dcd['_isAttached']=!_0x41b513||_0x41b513['isAttached'],_0xf96dcd['isAttached']=()=>_0xf96dcd['_isAttached'],this['_diffRoots']['set'](_0xe5595f,_0xf96dcd),this['_diffRootsAttributes']['set'](_0xe5595f,_0x2dd423);const _0x32095c=this['_makeIdsRoot'](_0xf96dcd,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xe5595f,_0x32095c),_0x5b646f['set'](_0xe5595f,_0xf96dcd['isAttached']()?_0x2dd423:{});for(const [_0x525bb2,_0xff1d48]of _0xf96dcd['markers']){if(!_0x525bb2['startsWith']('revision:'))continue;const _0x38a702=_0x525bb2['split'](':')[0x2];for(const _0x204353 of _0xff1d48['getWalker']({'singleCharacters':!0x0})){const _0xbba61e=this['_getVidAttributeName'](_0x204353),_0x3b5c9a=this['_revisionId']++,_0x489582='elementEnd'==_0x204353['type']?_0x204353['previousPosition']['path']['slice'](0x0,-0x1):_0x204353['previousPosition']['path'];_0x32095c['getNodeByPath'](_0x489582)['_setAttribute'](_0xbba61e,_0x3b5c9a),this['_touched']['set'](_0x3b5c9a,{'userId':_0x38a702});}}for(const _0x4d6c17 of this['editor']['model']['createRangeIn'](_0xf96dcd)['getWalker']({'singleCharacters':!0x0})){const _0x41ba8a=this['_getVidAttributeName'](_0x4d6c17),_0x54749b='elementEnd'==_0x4d6c17['type']?_0x4d6c17['previousPosition']['path']['slice'](0x0,-0x1):_0x4d6c17['previousPosition']['path'],_0x538473=_0x32095c['getNodeByPath'](_0x54749b);_0x538473['getAttribute'](_0x41ba8a)>0x0||_0x538473['_setAttribute'](_0x41ba8a,_0x354dd5[_0x57d80++]);}for(const [_0x4f411c,_0x335829]of _0xf96dcd['markers'])_0x4f411c['startsWith']('revision:')||this['_markers']['set'](_0x4f411c,_0x335829);}const _0x1b42b3=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1b42b3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1b42b3,0x1));const _0x9e400a=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x9e400a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x9e400a,0x1));const _0x21384d=Array['from'](this['_diffRoots'])['map'](([_0x46abf5,_0x433555])=>[_0x46abf5,T(_0x433555)]);this['_saveMetaData'](this['_lastTo'],_0x21384d,this['_markers'],_0x5b646f);}['_makeModelFromViewString'](_0x32d41b){const _0x1fd303=JSON['parse'](_0x32d41b),_0x31f66c=this['editor']['editing']['view']['document'],_0x44266b=new _0x469639(_0x31f66c,_0x1fd303['map'](_0x4eaf5b=>P(_0x4eaf5b,this['editor'])));return this['editor']['data']['toModel'](_0x44266b);}['_saveMetaData'](_0x192548,_0xc92a77,_0x1739bb,_0x2c1e1d){const _0x2905f9=new Map(_0xc92a77),_0x271896=new Map(_0x351846(_0x2c1e1d)),_0xf0087d=new Map();for(const [_0x40427e,_0x4a08dd]of _0x1739bb)_0xf0087d['set'](_0x40427e,{'start':_0x4a08dd['start']['clone'](),'end':_0x4a08dd['end']['clone'](),'rootName':_0x4a08dd['root']['rootName']});this['_savedMetaData']['set'](_0x192548,{'roots':_0x2905f9,'markers':_0xf0087d,'rootsAttributes':_0x271896});}['_removeMetaData'](_0x5a8bf){this['_savedMetaData']['delete'](_0x5a8bf);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x50af31,_0x5d0d13=null){let _0x87537e=null;_0x50af31['is']('documentFragment')||(_0x87537e=new ut(_0x50af31['name'],{'vid_start':null===_0x5d0d13?this['_revisionId']++:_0x5d0d13++}));const _0x4721ac=[];for(const _0x1a960f of _0x50af31['getChildren']())if(_0x1a960f['is']('element')){_0x4721ac['push'](this['_makeIdsRoot'](_0x1a960f,_0x5d0d13));const _0x212d50=_0x4721ac[_0x4721ac['length']-0x1];null!==_0x5d0d13&&(_0x5d0d13=_0x212d50['is']('element','$text')?_0x212d50['getAttribute']('vid')+0x1:_0x212d50['getAttribute']('vid_end')+0x1);}else{for(let _0x2d72cb=0x0;_0x2d72cb<_0x1a960f['offsetSize'];_0x2d72cb++)_0x4721ac['push'](new ut('$text',{'vid':null===_0x5d0d13?this['_revisionId']++:_0x5d0d13++}));}if(_0x50af31['is']('documentFragment')){const _0x3ccde4=F(_0x50af31['rootName']);return _0x3ccde4['_insertChild'](0x0,_0x4721ac),_0x3ccde4;}return _0x87537e['_setAttribute']('vid_end',null===_0x5d0d13?this['_revisionId']++:_0x5d0d13++),_0x87537e['_insertChild'](0x0,_0x4721ac),_0x87537e;}['_calculateMetaData'](_0x29c24a,_0x31b74c,_0x855c3){this['_reset']();const {roots:_0x328fbf,markers:_0x598eed,rootsAttributes:_0x34d2b6}=this['_savedMetaData']['get'](_0x29c24a);this['_baseRoots']=new Map(_0x328fbf),this['_baseRootsAttributes']=new Map(_0x351846(_0x34d2b6));for(const [_0x4de928,_0x256ce]of this['_baseRoots'])if('$graveyard'!==_0x4de928&&(this['_diffRoots']['set'](_0x4de928,T(_0x256ce)),this['_diffRootsAttributes']=new Map(_0x351846(_0x34d2b6)),_0x855c3)){const _0x2e871c=this['_revisionId'];this['_idsRoots']['set'](_0x4de928,this['_makeIdsRoot'](_0x256ce)),this['_baseIdsRoots']['set'](_0x4de928,this['_makeIdsRoot'](_0x256ce,_0x2e871c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x855c3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x291f46,_0x381604]of _0x598eed){const _0x5e4dff=this['_baseRoots']['get'](_0x381604['rootName']),_0x300e9b=this['_diffRoots']['get'](_0x381604['rootName']),_0x3c776d=new ft(this['_fixPosition'](_0x381604['start'],_0x5e4dff),this['_fixPosition'](_0x381604['end'],_0x5e4dff)),_0x5f43fa=this['_fixRange'](_0x3c776d,_0x300e9b);_0x5e4dff['markers']['set'](_0x291f46,_0x3c776d),this['_markers']['set'](_0x291f46,_0x5f43fa);}this['_applyOperations'](_0x29c24a,_0x31b74c,_0x855c3);}['_applyOperations'](_0x14277d,_0x321425,_0x42fd4d){for(const _0x7a22f3 of this['source']['getOperations'](_0x14277d,_0x321425))this['_handleOperation'](_0x7a22f3,_0x42fd4d);for(const _0xb9d3d2 of this['_diffRoots']['values']())_0xb9d3d2['markers']['clear']();for(const [_0x2e6b51,_0x2544c8]of this['_markers']){this['_diffRoots']['get'](_0x2544c8['root']['rootName'])['markers']['set'](_0x2e6b51,_0x2544c8['clone']());}const _0x29f822=new Map(),_0xc7b9ac=new Map();for(const [_0x2f140d,_0x13a009]of this['_diffRoots'])_0x29f822['set'](_0x2f140d,T(_0x13a009)),_0xc7b9ac['set'](_0x2f140d,this['_diffRootsAttributes']['get'](_0x2f140d));this['_saveMetaData'](_0x321425,_0x29f822,this['_markers'],_0xc7b9ac);}['_getPreviousFrom'](_0x4a7804){const _0x280957=Array['from'](this['_savedMetaData']['keys']());_0x280957['sort']((_0x5ce51c,_0x18f4c6)=>_0x5ce51c-_0x18f4c6),_0x280957['reverse']();for(const _0x4a787a of _0x280957)if(_0x4a787a<_0x4a7804)return _0x4a787a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x48ced4,_0x19b3f2){const _0x134d27=Array['from'](_0x19b3f2['markers'])['map'](([_0xf1f076,_0x4c3912])=>[_0xf1f076,this['_fixRange'](_0x4c3912,_0x48ced4)]);_0x48ced4['markers']=new Map(_0x134d27);}['_transformMarkers'](_0x15ee29){for(const _0xbfd50d of this['_markers']['values']()){const _0x1da37e=_0xbfd50d['getTransformedByOperation'](_0x15ee29),_0x5a6a4d=ft['_createFromRanges'](_0x1da37e);_0xbfd50d['start']=_0x5a6a4d['start'],_0xbfd50d['end']=_0x5a6a4d['end'];}}['_handleOperation'](_0xc32627,_0x3fbfe5){if('addRoot'!=_0xc32627['type']&&'detachRoot'!=_0xc32627['type']){if('insert'==_0xc32627['type']){const _0x1bb998=_0xc32627['position']['root']['rootName'];this['_diffRoots']['has'](_0x1bb998)||(this['_diffRoots']['set'](_0x1bb998,F(_0x1bb998,!0x0)),this['_diffRootsAttributes']['set'](_0x1bb998,{}),_0x3fbfe5&&this['_idsRoots']['set'](_0x1bb998,F(_0x1bb998,!0x0)));}else{if('addRootAttribute'==_0xc32627['type']||'removeRootAttribute'==_0xc32627['type']||'changeRootAttribute'==_0xc32627['type'])return void this['_handleRootAttributeOperation'](_0xc32627);'marker'==_0xc32627['type']&&this['_handleMarkerOperation'](_0xc32627);}if('marker'!==_0xc32627['type']){const _0x557bc8=this['_cloneOperation'](_0xc32627,this['_diffRoots']);_0x557bc8['_execute'](),this['_transformMarkers'](_0x557bc8);}if(_0x3fbfe5)switch(_0xc32627['type']){case'insert':this['_handleInsertOperation'](_0xc32627);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xc32627);break;case'merge':this['_handleMergeOperation'](_0xc32627);break;case'split':this['_handleSplitOperation'](_0xc32627);}}else this['_handleRootOperation'](_0xc32627,_0x3fbfe5);}['_cloneOperation'](_0x2d0d80,_0x374309){const _0x273c52=_0x2d0d80['clone']();return _0x273c52['_authorId']=_0x2d0d80['_authorId'],this['_fixOperation'](_0x273c52,_0x374309),_0x273c52;}['_getBaseVids'](_0xfeae05){return _0xfeae05['map'](_0x2bf556=>{const _0x4e27df=this['_getVidAttributeName'](_0x2bf556);return Number(_0x2bf556['item']['getAttribute'](_0x4e27df));});}['_generateTape'](_0x2fc33f,_0x25a178){if(_0x2fc33f['is']('element','$text'))_0x25a178['push']({'item':_0x2fc33f,'type':'text'});else{_0x2fc33f['is']('element')&&_0x25a178['push']({'item':_0x2fc33f,'type':'elementStart'});for(const _0x508bcc of _0x2fc33f['getChildren']())this['_generateTape'](_0x508bcc,_0x25a178);_0x2fc33f['is']('element')&&_0x25a178['push']({'item':_0x2fc33f,'type':'elementEnd'});}return _0x25a178;}['_getState'](){const _0x591713=new Map(this['_touched']),_0x1ccb77=new Map(_0x591713),_0x2cdb3e=new Map(),_0x186a58={'insertions':{},'deletions':{}},_0x4d51c7={'insertions':{},'deletions':{}},_0x35bffd=new Map(),_0x4194f4=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4194f4['delete']('$graveyard');for(const _0x82b132 of _0x4194f4){const _0x4822a4=this['_diffRoots']['get'](_0x82b132)||F(_0x82b132,!0x1),_0x3543e3=this['_baseRoots']['get'](_0x82b132)||F(_0x82b132,!0x1);_0x4822a4['isAttached']()||_0x3543e3['isAttached']()?(_0x186a58['insertions'][_0x82b132]=T(_0x4822a4),_0x186a58['deletions'][_0x82b132]=T(_0x3543e3),this['_copyMarkers'](_0x186a58['deletions'][_0x82b132],_0x3543e3),this['_copyMarkers'](_0x186a58['insertions'][_0x82b132],_0x4822a4),_0x4d51c7['insertions'][_0x82b132]=this['_generateTape'](this['_idsRoots']['get'](_0x82b132),[]),_0x4d51c7['deletions'][_0x82b132]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x82b132)||F(_0x82b132,!0x1),[])):_0x4194f4['delete'](_0x82b132);}for(const _0x832d6 of _0x4194f4){const _0x5de806=_0x4d51c7['insertions'][_0x832d6];for(const _0xa44e32 of _0x5de806){const _0x47baa2=this['_getVidAttributeName'](_0xa44e32),_0x312693=_0xa44e32['item']['getAttribute'](_0x47baa2);_0x1ccb77['delete'](_0x312693),_0x312693>=this['_startingRevisionId']&&_0x2cdb3e['set'](_0x312693,_0x591713['get'](_0x312693));}}for(const _0x3a0a53 of _0x4194f4){const _0x35de58=_0x4d51c7['insertions'][_0x3a0a53],_0x377cd9=this['_getBaseVids'](_0x4d51c7['deletions'][_0x3a0a53]);let _0x40a39c=0x0;for(const _0x17f0f2 of _0x35de58){const _0x20d30b=this['_getVidAttributeName'](_0x17f0f2),_0x254da6=_0x17f0f2['item']['getAttribute'](_0x20d30b);if(!_0x2cdb3e['has'](_0x254da6)&&!_0x35bffd['has'](_0x254da6)){if(_0x1ccb77['has'](_0x254da6))_0x40a39c++;else{if(_0x254da6!=_0x377cd9[_0x40a39c]){const _0x46793a=_0x591713['get'](_0x254da6)||_0x591713['get'](_0x377cd9[_0x40a39c]);for(;_0x254da6!=_0x377cd9[_0x40a39c];)_0x1ccb77['has'](_0x377cd9[_0x40a39c])||(_0x35bffd['set'](_0x377cd9[_0x40a39c],_0x46793a),_0x591713['set'](_0x377cd9[_0x40a39c],_0x46793a)),_0x40a39c++;}_0x40a39c++;}}}}for(const _0x613113 of _0x4194f4){const _0xb70ddb=_0x4d51c7['insertions'][_0x613113];for(const _0x3080f4 of _0xb70ddb){const _0x23c1c0=this['_getVidAttributeName'](_0x3080f4),_0x4bfa2c=_0x3080f4['item']['getAttribute'](_0x23c1c0);if(_0x35bffd['has'](_0x4bfa2c)){const _0x104d18=_0x35bffd['get'](_0x4bfa2c);_0x1ccb77['has'](_0x4bfa2c)||_0x1ccb77['set'](_0x4bfa2c,{..._0x104d18}),_0x2cdb3e['set'](_0x4bfa2c,{..._0x104d18});}}}for(const _0x30f410 of _0x1ccb77['keys']())_0x30f410>=this['_startingRevisionId']&&_0x1ccb77['delete'](_0x30f410);const _0x12235c=new Map();for(const _0x3c8304 of _0x4194f4){let _0x2c420b=_0x4d51c7['insertions'][_0x3c8304];for(const _0x123b02 of _0x2c420b)if(_0x123b02['item']['is']('element','tableCell')){const _0x3636fa=this['_getVidAttributeName'](_0x123b02),_0x3bbb67=_0x123b02['item']['getAttribute'](_0x3636fa);if(_0x2cdb3e['has'](_0x3bbb67)){const _0x7d14e1=_0x123b02['item']['parent']['parent']['getAttribute']('vid_start'),_0x447093=_0x12235c['get'](_0x7d14e1)||new Set();_0x447093['add'](_0x2cdb3e['get'](_0x3bbb67)['userId']),_0x12235c['set'](_0x7d14e1,_0x447093);}}_0x2c420b=_0x4d51c7['deletions'][_0x3c8304];for(const _0x47ec2f of _0x2c420b)if(_0x47ec2f['item']['is']('element','tableCell')){const _0x499078=this['_getVidAttributeName'](_0x47ec2f),_0x2800a7=_0x47ec2f['item']['getAttribute'](_0x499078);if(_0x1ccb77['has'](_0x2800a7)){const _0x2a1a8d=_0x47ec2f['item']['parent']['parent']['getAttribute']('vid_start'),_0x5c75ac=_0x12235c['get'](_0x2a1a8d)||new Set();_0x5c75ac['add'](_0x1ccb77['get'](_0x2800a7)['userId']),_0x12235c['set'](_0x2a1a8d,_0x5c75ac);}}for(const _0x497cfe of _0x12235c['keys']())(_0x2cdb3e['has'](_0x497cfe)||_0x1ccb77['has'](_0x497cfe))&&_0x12235c['delete'](_0x497cfe);}for(const _0x41d0f6 of _0x4194f4){const _0x4f3676=_0x4d51c7['insertions'][_0x41d0f6];let _0xba4098=null,_0x29436a=null;for(const _0x34d84b of _0x4f3676){const _0x49ee84=this['_getVidAttributeName'](_0x34d84b),_0x46f012=_0x34d84b['item']['getAttribute'](_0x49ee84),_0x19c06b=_0x12235c['get'](_0x46f012);_0x19c06b&&'elementStart'==_0x34d84b['type']&&(_0xba4098=Array['from'](_0x19c06b)[0x0],_0x29436a=_0x34d84b['item']['getAttribute']('vid_end')),_0xba4098&&(_0x1ccb77['set'](_0x46f012,{'userId':_0xba4098}),_0x2cdb3e['set'](_0x46f012,{'userId':_0xba4098})),_0x46f012==_0x29436a&&(_0xba4098=null,_0x29436a=null);}}const _0x2793b2={},_0x1bfbc2=new Set();for(const _0xa76fae of _0x4194f4){const _0x2233de=_0x186a58['deletions'][_0xa76fae],_0xff4ef2=_0x186a58['insertions'][_0xa76fae];for(const {userId:_0x1d8993}of this['_touchedMarkers']['values']())null!==_0x1d8993&&_0x1bfbc2['add'](_0x1d8993);for(const {userId:_0x51f52a}of this['_touchedRoots']['values']())null!==_0x51f52a&&_0x1bfbc2['add'](_0x51f52a);this['_markChanges'](_0xff4ef2,_0x4d51c7['insertions'][_0xa76fae],_0x2cdb3e,'insertion',_0x1bfbc2),this['_markChanges'](_0x2233de,_0x4d51c7['deletions'][_0xa76fae],_0x1ccb77,'deletion',_0x1bfbc2),_0x2793b2[_0xa76fae]={'insertions':this['_prepareViewToSave'](_0xff4ef2),'deletions':this['_prepareViewToSave'](_0x2233de),'attachChange':this['_touchedRoots']['get'](_0xa76fae)||null,'attributesBefore':_0x351846(this['_baseRootsAttributes']['get'](_0xa76fae))||{},'attributesAfter':_0x351846(this['_diffRootsAttributes']['get'](_0xa76fae))};}return{'diffData':_0x2793b2,'authorsIds':Array['from'](_0x1bfbc2)};}['_processRootBeforeSave'](_0x2f240b){for(const [,_0x86869f]of _0x2f240b['markers']){const _0x5f59ba=_0x86869f['start']['getAncestors']()['filter'](_0x22fff8=>'tableCell'==_0x22fff8['name']);for(const _0x2e9e11 of _0x5f59ba)0x1==_0x2e9e11['childCount']&&_0x2e9e11['getChild'](0x0)['is']('element','paragraph')&&_0x2e9e11['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4735fb){this['_processRootBeforeSave'](_0x4735fb);const _0xd2c23a=this['editor']['data']['toView'](_0x4735fb,{}),_0x5d470c=Array['from'](_0xd2c23a['getChildren']())['map'](_0x3b1810=>this['_getViewJson'](_0x3b1810));return JSON['stringify'](_0x5d470c);}['_getViewJson'](_0x1cc70d){if(_0x1cc70d['is']('$text'))return _0x1cc70d['data'];{const _0xc73e26=_0x1cc70d;return{'type':Object['keys'](E)['find'](_0x30cd2c=>_0x1cc70d instanceof E[_0x30cd2c]),'name':_0xc73e26['name'],'attributes':Array['from'](_0xc73e26['getAttributes']()),'children':Array['from'](_0xc73e26['getChildren']())['map'](_0x52258b=>this['_getViewJson'](_0x52258b))};}}['_markChanges'](_0x15e109,_0x872cf2,_0x1e7612,_0x355197,_0x270439){let _0x35c3d9=null,_0x312d7a=null,_0x12184e=0x0;const _0x3532fb=this['editor']['model'];for(let _0x1d5591=0x0;_0x1d5591<_0x872cf2['length'];_0x1d5591++){const _0x5d0265=this['_getVidAttributeName'](_0x872cf2[_0x1d5591]),_0x1cf3dc=_0x872cf2[_0x1d5591]['item']['getAttribute'](_0x5d0265),_0x47a870=_0x1e7612['get'](_0x1cf3dc),_0x2668ea=_0x1d5591==_0x872cf2['length']-0x1;(!_0x35c3d9&&_0x47a870&&(_0x35c3d9=_0x47a870,_0x312d7a=_0x872cf2[_0x1d5591]),_0x35c3d9&&(!_0x47a870||_0x47a870['userId']!=_0x35c3d9['userId']))&&(_0x538561(_0x47a870,B(_0x312d7a,_0x15e109,_0x3532fb),B(_0x872cf2[_0x1d5591],_0x15e109,_0x3532fb)),_0x35c3d9=_0x47a870||null,_0x312d7a=_0x47a870?_0x872cf2[_0x1d5591]:null),_0x35c3d9&&_0x2668ea&&_0x538561(_0x47a870,B(_0x312d7a,_0x15e109,_0x3532fb),J(_0x872cf2[_0x1d5591],_0x15e109,_0x3532fb));}function _0x538561(_0x201692,_0x4a79ff,_0x4fc8e4){const _0x418538=_0x35c3d9['userId'],_0xe52573='revision:'+_0x355197+':'+_0x418538+':'+_0x12184e++,_0x5d2bc8=_0x3532fb['createRange'](_0x4a79ff,_0x4fc8e4);_0x15e109['markers']['set'](_0xe52573,_0x5d2bc8),null!==_0x418538&&_0x270439['add'](_0x418538);}}['_getVidAttributeName'](_0x33cdc4){switch(_0x33cdc4['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4724aa,_0x5a28e4){_0x4724aa['baseVersion']=null;for(const _0x2dda2a in _0x4724aa){const _0x6d6b50=_0x4724aa[_0x2dda2a];if(_0x6d6b50 instanceof vt){const _0x27dad3=_0x5a28e4['get'](_0x6d6b50['root']['rootName']);_0x4724aa[_0x2dda2a]=this['_fixPosition'](_0x6d6b50,_0x27dad3);}if(_0x6d6b50 instanceof ft){const _0x2a51e3=_0x5a28e4['get'](_0x6d6b50['root']['rootName']);_0x4724aa[_0x2dda2a]=this['_fixRange'](_0x6d6b50,_0x2a51e3);}'root'===_0x2dda2a&&(_0x4724aa['root']=_0x5a28e4['get'](_0x4724aa['root']['rootName']));}}['_fixRange'](_0x414aaf,_0x43ac08){return this['editor']['model']['createRange'](this['_fixPosition'](_0x414aaf['start'],_0x43ac08),this['_fixPosition'](_0x414aaf['end'],_0x43ac08));}['_fixPosition'](_0xce8c67,_0x15a485){return this['editor']['model']['createPositionFromPath'](_0x15a485,_0xce8c67['path'],_0xce8c67['stickiness']);}['_handleInsertOperation'](_0x4138c8){const _0x2aaa22=this['_idsRoots']['get'](_0x4138c8['position']['root']['rootName']),_0x5e1d05=this['_fixPosition'](_0x4138c8['position'],_0x2aaa22),_0x47a914=null===_0x4138c8['_authorId']?null:_0x4138c8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ca32e=_0x5e1d05['parent'],_0x497c97=this['_revisionId'],_0x3be5aa=[];for(const _0x7f68e3 of _0x4138c8['nodes'])if(_0x7f68e3['is']('element'))_0x3be5aa['push'](this['_makeIdsRoot'](_0x7f68e3));else{for(let _0x11b068=0x0;_0x11b068<_0x7f68e3['offsetSize'];_0x11b068++)_0x3be5aa['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x117d92=this['_revisionId'];for(let _0x5f37b4=_0x497c97;_0x5f37b4<_0x117d92;_0x5f37b4++)this['_touched']['set'](_0x5f37b4,{'userId':_0x47a914});_0x1ca32e['_insertChild'](_0x5e1d05['offset'],_0x3be5aa);}['_handleMoveOperation'](_0x52d7c9){(_0x52d7c9=this['_cloneOperation'](_0x52d7c9,this['_idsRoots']))['_execute']();const _0x16915d=null===_0x52d7c9['_authorId']?null:_0x52d7c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x596f9c=_0x52d7c9['getMovedRangeStart'](),_0x31b5dd=_0x596f9c['parent'],_0x3b5fb7=_0x596f9c['offset'];!function _0x437a1f(_0x3d740f,_0x2a752d,_0x1a964a,_0x5d3c48){for(let _0x49f2fe=_0x1a964a;_0x49f2fe<_0x5d3c48;_0x49f2fe++){const _0x15ce01=_0x2a752d['getChild'](_0x49f2fe);_0x15ce01['is']('element','$text')?_0x3d740f['set'](_0x15ce01['getAttribute']('vid'),{'userId':_0x16915d}):(_0x3d740f['set'](_0x15ce01['getAttribute']('vid_start'),{'userId':_0x16915d}),_0x437a1f(_0x3d740f,_0x15ce01,0x0,_0x15ce01['childCount']),_0x3d740f['set'](_0x15ce01['getAttribute']('vid_end'),{'userId':_0x16915d}));}}(this['_touched'],_0x31b5dd,_0x3b5fb7,_0x3b5fb7+_0x52d7c9['howMany']);}['_handleMergeOperation'](_0x4cad2f){const _0x59bff4=null===(_0x4cad2f=this['_cloneOperation'](_0x4cad2f,this['_idsRoots']))['_authorId']?null:_0x4cad2f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f1359=_0x4cad2f['targetPosition']['parent'],_0x3a0ea6=_0x4cad2f['sourcePosition']['parent'],_0x11780d=_0x3f1359['getAttribute']('vid_end'),_0x49623c=_0x3a0ea6['getAttribute']('vid_start');_0x3f1359['_setAttribute']('vid_end',_0x3a0ea6['getAttribute']('vid_end')),_0x3a0ea6['_setAttribute']('vid_end',_0x11780d),this['_touched']['set'](_0x49623c,{'userId':_0x59bff4}),this['_touched']['set'](_0x11780d,{'userId':_0x59bff4}),_0x4cad2f['_execute']();}['_handleSplitOperation'](_0xfdcc35){const _0x446856=null===(_0xfdcc35=this['_cloneOperation'](_0xfdcc35,this['_idsRoots']))['_authorId']?null:_0xfdcc35['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x73f6c7=_0xfdcc35['graveyardPosition'],_0x19f4aa=_0xfdcc35['splitPosition']['parent'];_0xfdcc35['_execute']();const _0x24832d=_0x19f4aa['getAttribute']('vid_end'),_0x4f1291=_0xfdcc35['insertionPosition']['nodeAfter'];if(_0x73f6c7){const _0x16dfe7=_0x4f1291['getAttribute']('vid_end'),_0x347b42=_0x19f4aa['getAttribute']('vid_end');_0x19f4aa['_setAttribute']('vid_end',_0x16dfe7),_0x4f1291['_setAttribute']('vid_end',_0x347b42),this['_touched']['set'](_0x19f4aa['getAttribute']('vid_end'),{'userId':_0x446856}),this['_touched']['set'](_0x4f1291['getAttribute']('vid_start'),{'userId':_0x446856});}else{const _0x29c957=this['_revisionId']++,_0x1e051c=this['_revisionId']++;_0x19f4aa['_setAttribute']('vid_end',_0x29c957),_0x4f1291['_setAttribute']('vid_start',_0x1e051c),_0x4f1291['_setAttribute']('vid_end',_0x24832d),this['_touched']['set'](_0x29c957,{'userId':_0x446856}),this['_touched']['set'](_0x1e051c,{'userId':_0x446856});}}['_handleMarkerOperation'](_0x1668cc){if(!_0x1668cc['affectsData'])return;const _0x1181ae=(_0x1668cc=this['_cloneOperation'](_0x1668cc,this['_diffRoots']))['oldRange']?_0x1668cc['oldRange']['root']:null,_0x45b259=_0x1668cc['newRange']?_0x1668cc['newRange']['root']:null;_0x1181ae&&this['_markers']['delete'](_0x1668cc['name']),_0x45b259&&this['_markers']['set'](_0x1668cc['name'],_0x1668cc['newRange']['clone']());const _0x39c286=null===_0x1668cc['_authorId']?null:_0x1668cc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x641d87=_0x1668cc['name'];if(!this['_touchedMarkers']['has'](_0x641d87))return void this['_touchedMarkers']['set'](_0x641d87,{'range':_0x1668cc['oldRange'],'userId':_0x39c286});const _0x3e9250=this['_touchedMarkers']['get'](_0x641d87),_0x4b2427=_0x3e9250['range'],_0x1c8be4=_0x1668cc['newRange'];null==_0x4b2427&&null==_0x1c8be4||_0x4b2427&&_0x1c8be4&&_0x4b2427['isEqual'](_0x1c8be4)?this['_touchedMarkers']['delete'](_0x1668cc['name']):_0x3e9250['userId']=_0x39c286;}['_handleRootOperation'](_0x137125,_0x52955f){this['_diffRoots']['has'](_0x137125['rootName'])?this['_diffRoots']['get'](_0x137125['rootName'])['_isAttached']=_0x137125['isAdd']:(this['_diffRoots']['set'](_0x137125['rootName'],F(_0x137125['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x137125['rootName'],{}),_0x52955f&&this['_idsRoots']['set'](_0x137125['rootName'],F(_0x137125['rootName'],!0x0)));const _0x3a1faf=null===_0x137125['_authorId']?null:_0x137125['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x298825=this['_touchedRoots']['get'](_0x137125['rootName']);_0x298825&&_0x298825['userId']===_0x3a1faf?this['_touchedRoots']['delete'](_0x137125['rootName']):this['_touchedRoots']['set'](_0x137125['rootName'],{'userId':_0x3a1faf,'isAttached':_0x137125['isAdd']});}['_handleRootAttributeOperation'](_0x199959){const _0x4fefae=this['_diffRootsAttributes']['get'](_0x199959['root']['rootName']);null===_0x199959['newValue']?delete _0x4fefae[_0x199959['key']]:_0x4fefae[_0x199959['key']]=_0x199959['newValue'];}}function T(_0x49ba8f){const _0x221939=F(_0x49ba8f['rootName'],_0x49ba8f['isAttached']());for(const _0x511fc0 of _0x49ba8f['getChildren']()){const _0x28e439=_0x511fc0['_clone'](!0x0);_0x221939['_appendChild'](_0x28e439);}return _0x221939;}function F(_0x2f44ae,_0x445ae0=!0x0){const _0xb6e315=new gt();return _0xb6e315['rootName']=_0x2f44ae,_0xb6e315['_isAttached']=_0x445ae0,_0xb6e315['isAttached']=()=>_0xb6e315['_isAttached'],_0xb6e315;}function B(_0x11d8cf,_0x274d20,_0x56d56b){const _0x172f26='elementEnd'==_0x11d8cf['type']?_0x56d56b['createPositionAt'](_0x11d8cf['item'],'end'):_0x56d56b['createPositionBefore'](_0x11d8cf['item']);return _0x56d56b['createPositionFromPath'](_0x274d20,_0x172f26['path'],_0x172f26['stickiness']);}function J(_0x51bace,_0x566322,_0x500d00){const _0x2d520f='elementStart'==_0x51bace['type']?_0x500d00['createPositionAt'](_0x51bace['item'],0x0):_0x500d00['createPositionAfter'](_0x51bace['item']);return _0x500d00['createPositionFromPath'](_0x566322,_0x2d520f['path'],_0x2d520f['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3dd83c,_0x1a86aa){super(_0x3dd83c),this['focusTracker']=new _0x3dfb88(),this['keystrokes']=new _0xef17d7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1a86aa),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x4d7ad0(this);}['render'](){super['render'](),_0x190f2f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x37aeb8=_0x3afe01=>_0x3afe01['stopPropagation']();this['keystrokes']['set']('arrowright',_0x37aeb8),this['keystrokes']['set']('arrowleft',_0x37aeb8),this['keystrokes']['set']('arrowup',_0x37aeb8),this['keystrokes']['set']('arrowdown',_0x37aeb8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x37ddd3){this['revisionNameInputView']['fieldView']['element']['value']=_0x37ddd3['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x16da6a){const _0x199d69=new _0xecce61(this['locale'],_0x5c6c61),_0x504bcf=_0x199d69['fieldView'];_0x504bcf['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xecdc81=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x16da6a&&(_0xecdc81+='\x20('+m(this['locale'],'optional')+')'),(_0x199d69['label']=_0xecdc81,_0x504bcf['on']('input',()=>{this['revisionNameInputValue']=_0x504bcf['element']['value']['trim']();}),_0x199d69);}}class f extends _0x3c80d2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x27bc9b=this['editor'],_0x1306f3=_0x27bc9b['plugins']['get']('RevisionTracker');_0x27bc9b['ui']['componentFactory']['add']('revisionHistory',_0x488352=>{const _0x5da3b4=_0x3690ba(_0x488352),_0x3a0272=_0x5da3b4['panelView']['children'],_0x1e9765=new _0x594650(_0x488352),_0xc50de5=new _0xbcf656(_0x488352),_0x3e6e71=new te(_0x488352),_0x2105c7=new _0xbcf656(_0x488352),_0x5a2e82=new te(_0x488352);return _0x5da3b4['bind']('isEnabled')['to'](_0x1306f3,'isReady',_0x1306f3,'isEnabled',_0x27bc9b,'isReadOnly',(_0x220df5,_0x32bf17,_0x41d410)=>_0x220df5&&_0x32bf17&&!_0x41d410),_0x5da3b4['buttonView']['set']({'icon':_0x3144c0,'label':m(_0x488352,'Revision\x20history'),'tooltip':!0x0}),_0x3e6e71['set']({'label':m(_0x488352,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3e6e71['bind']('isEnabled')['to'](_0x1306f3,'isReady',_0x1306f3,'isEnabled',_0x27bc9b,'isReadOnly',(_0x4c7a41,_0x459e7d,_0x30f2ce)=>_0x4c7a41&&_0x459e7d&&!_0x30f2ce),_0x3e6e71['on']('execute',()=>this['_showDialog']()),_0x5a2e82['set']({'label':m(_0x488352,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5a2e82['bind']('isEnabled')['to'](_0x1306f3,'isReady',_0x27bc9b,'isReadOnly',(_0x5e5cce,_0x5dd194)=>_0x5e5cce&&!_0x5dd194),_0x5a2e82['on']('execute',()=>{_0x27bc9b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5da3b4['isOpen']=!0x1,_0x27bc9b['editing']['view']['focus']();}),_0xc50de5['children']['add'](_0x3e6e71),_0x2105c7['children']['add'](_0x5a2e82),_0x1e9765['role']='menu',_0x1e9765['items']['addMany']([_0xc50de5,_0x2105c7]),_0x3a0272['add'](_0x1e9765),_0x5da3b4;}),_0x27bc9b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x20bc5f=this['editor'],_0x59a211=_0x20bc5f['locale'],_0x460bea=new _0x3d65e2(_0x59a211),_0x31ecb6=new _0x3abd94(_0x59a211);_0x460bea['buttonView']['set']({'icon':_0x3144c0,'label':m(_0x59a211,'Revision\x20history')});const _0x33d14f=new _0x390930(_0x59a211,_0x460bea),_0x511b33=new _0x5a5432(_0x59a211);_0x511b33['set']({'label':m(_0x59a211,'Save\x20current\x20revision')}),_0x511b33['delegate']('execute')['to'](_0x460bea),_0x511b33['on']('execute',()=>{this['_showDialog']();}),_0x33d14f['children']['add'](_0x511b33),_0x31ecb6['items']['add'](_0x33d14f);const _0x56e415=new _0x390930(_0x59a211,_0x460bea),_0x26bc94=new _0x5a5432(_0x59a211);return _0x26bc94['set']({'label':m(_0x59a211,'Open\x20revision\x20history')}),_0x26bc94['delegate']('execute')['to'](_0x460bea),_0x26bc94['on']('execute',()=>{_0x20bc5f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x56e415['children']['add'](_0x26bc94),_0x31ecb6['items']['add'](_0x56e415),_0x460bea['panelView']['children']['add'](_0x31ecb6),_0x460bea;}['_showDialog'](){const _0x36731e=this['editor'],_0x313510=_0x36731e['locale'],_0x432b74=_0x36731e['plugins']['get']('Dialog'),_0x67aacf=_0x36731e['plugins']['get']('RevisionTracker');function _0x3bbae9(_0x1a1c38){_0x36731e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1a1c38['revisionName']?_0x1a1c38['revisionNameInputView']['errorText']=m(_0x313510,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x36731e['plugins']['get'](u)['saveRevision']({'name':_0x1a1c38['revisionName']}),_0x432b74['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3bbae9(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x432b74['show']({'id':'revisionSave','title':m(_0x313510,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x36731e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x432b74['hide']()},{'label':m(_0x36731e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x164ad6){_0x164ad6['bind']('isEnabled')['to'](_0x67aacf,'isReady',_0x67aacf,'isEnabled',_0x36731e,'isReadOnly',(_0x350ebb,_0x1ee264,_0x255356)=>_0x350ebb&&_0x1ee264&&!_0x255356);},'onExecute':()=>_0x3bbae9(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x516d7c=this['editor'],_0x642caf=_0x516d7c['locale'];this['_saveRevisionFormView']=new hs(_0x642caf,_0x516d7c['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x5d06e5,_0x41c81c){super(_0x5d06e5),this['_model']=_0x41c81c,this['changeId']=_0x41c81c['id'];const _0x3674cd=this['bindTemplate'],_0x53b380=m(_0x5d06e5,_0x41c81c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x41c81c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x41c81c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3674cd['to']('type',_0x4efc83=>'ck-revision-change__'+_0x4efc83)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x53b380}]},{'text':'\x20'+_0x41c81c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4d6e3b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5acedf){super(),this['id']=_0x5acedf['id']||_0xe821f1(),this['author']=_0x5acedf['author'],this['type']=_0x5acedf['type'],this['data']=_0x5acedf['data']||{},this['rootName']=_0x5acedf['rootName'],this['set']('createdAt',_0x5acedf['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(_0xddf9e7,_0x5d042b){this['newRevisionId']=_0xddf9e7,this['oldRevisionId']=_0x5d042b,this['changes']=new _0x751bfb();}['_setChanges'](_0x523157){for(const _0x26128f of _0x523157)this['changes']['add'](_0x26128f);}}const Y={'c':_0x2901db,'a':_0x378d02,'e':_0x50a7fd,'r':_0x5f2f31,'u':_0x5ad08c};class d extends _0x3c80d2{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x442638,_0x44d490,j];}constructor(_0x41000d){super(_0x41000d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3aa0e6,_0x422082,_0x2d5509)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4df287=>{for(const _0x5d2fef of this['editor']['editing']['view']['document']['roots'])_0x2d5509?_0x4df287['removeClass']('ck-editor__editable__overlay',_0x5d2fef):_0x4df287['addClass']('ck-editor__editable__overlay',_0x5d2fef);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x48429b=>null!==_0x48429b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x46248d,_0x1eaf47,_0x13b3db)=>_0x46248d&&_0x13b3db?_0x1eaf47['changes']['getIndex'](_0x13b3db):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x56f438,_0x2664f7)=>_0x56f438?_0x2664f7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x44d490);}['init'](){const _0x5f448d=this['editor'],_0x508dd8=new _t(_0x5f448d,{'direction':'backward'}),_0xd497d6=new _t(_0x5f448d,{'direction':'forward'});(_0x5f448d['commands']['add']('showPreviousChange',_0x508dd8),_0x5f448d['commands']['add']('showNextChange',_0xd497d6),_0x5f448d['commands']['add']('restoreRevision',new wt(_0x5f448d)),this['on']('change:numberOfChanges',()=>{_0x508dd8['refresh'](),_0xd497d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5f448d['enableReadOnlyMode']('revision-viewer'),_0x5f448d['plugins']['has']('WidgetToolbarRepository'))&&_0x5f448d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xf13dfd){await this['loadRevisionData'](_0xf13dfd);const _0x5e7921={};for(const _0xf25be4 in _0xf13dfd['diffData']){if(_0xf13dfd['diffData'][_0xf25be4]['attachChange']&&!_0xf13dfd['diffData'][_0xf25be4]['attachChange']['isAttached'])continue;const _0x48b602=this['_removeRevisionMarkers'](JSON['parse'](_0xf13dfd['diffData'][_0xf25be4]['insertions'])),_0x1cf1df=this['editor']['editing']['view']['document'],_0x22730f=new _0x469639(_0x1cf1df,_0x48b602['map'](_0x4cb1b8=>this['_getViewObj'](_0x4cb1b8)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5e7921[_0xf25be4]=this['editor']['data']['processor']['toData'](_0x22730f),this['editor']['data']['processor']['useFillerType']('default');}return _0x5e7921;}async['getRevisionRootsAttributes'](_0x8036c7){await this['loadRevisionData'](_0x8036c7);const _0x54e088={};for(const _0x401e74 in _0x8036c7['diffData'])_0x8036c7['diffData'][_0x401e74]['attachChange']&&!_0x8036c7['diffData'][_0x401e74]['attachChange']['isAttached']||(_0x54e088[_0x401e74]=_0x8036c7['diffData'][_0x401e74]['attributesAfter']||{});return _0x54e088;}['_removeRevisionMarkers'](_0x3d98a7){return(_0x3d98a7=_0x3d98a7['filter'](_0x12d216=>!_0x12d216['name']||'revision-start'!==_0x12d216['name']&&'revision-end'!==_0x12d216['name']))['forEach'](_0x23eafb=>{'string'!=typeof _0x23eafb&&(_0x23eafb['children']=this['_removeRevisionMarkers'](_0x23eafb['children']),_0x23eafb['attributes']=_0x23eafb['attributes']['filter'](_0xb89a2=>!_0xb89a2[0x0]['startsWith']('data-revision-')));}),_0x3d98a7;}async['compare'](_0xa5d19c,_0x87e012,_0x5a86a7=!0x1){if(!this['isEnabled'])return;const _0x3f68ad=this['diff'],_0xaf965a=this['repository'],_0x24bd31='string'==typeof _0xa5d19c?_0xaf965a['getRevision'](_0xa5d19c):_0xa5d19c,_0x78e3e4='string'==typeof _0x87e012?_0xaf965a['getRevision'](_0x87e012):_0x87e012,_0x259982=_0x24bd31['id'],_0x5c375e=_0x78e3e4?_0x78e3e4['id']:null;if(!_0x5a86a7&&this['diff']&&this['diff']['newRevisionId']===_0x259982&&this['diff']['oldRevisionId']===_0x5c375e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x259982,_0x5c375e);const _0x9f6c38=this['_getRevisionsRange'](_0x24bd31,_0x78e3e4,!0x0)['map'](_0x204829=>this['loadRevisionData'](_0x204829));return _0x9f6c38['push'](new Promise(_0x3cb17a=>{setTimeout(_0x3cb17a,0x14);})),Promise['all'](_0x9f6c38)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x269a94=this['_getDiff'](_0x259982,_0x5c375e);for(const _0x487661 of _0x269a94['changes'])this['_changeIdToChange']['set'](_0x487661['id'],_0x487661);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x50c240=>{for(const _0x1cebc5 of this['editor']['model']['document']['getRootNames']())_0x50c240['detachRoot'](_0x1cebc5);for(const _0x14fdd7 of Object['keys'](_0x269a94['model'])){const _0x2025f5=_0x50c240['addRoot'](_0x14fdd7);for(const _0x3856fb of Object['keys'](_0x269a94['attributes'][_0x14fdd7]))_0x50c240['setAttribute'](_0x3856fb,_0x269a94['attributes'][_0x14fdd7][_0x3856fb],_0x2025f5);_0x50c240['insert'](_0x269a94['model'][_0x14fdd7],_0x2025f5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x269a94['changes'])),this['isReady']=!0x0;})['catch'](_0x3cc91d=>{console['error'](_0x3cc91d),this['_cleanUp'](),_0x3f68ad&&(this['diff']=_0x3f68ad),this['isReady']=!0x0;});}['addRevisionData'](_0x4580a5,_0x4ab92b){const _0x2db92f=this['repository']['createRevision'](_0x4580a5);return _0x2db92f['on']('_update',(_0x27c092,_0x5e2723,_0x4d4d15)=>_0x4ab92b(_0x5e2723,_0x4d4d15,_0x2db92f)),this['repository']['addRevision'](_0x2db92f),_0x2db92f;}['loadRevisionData'](_0xfe3952){if(!_0xfe3952||_0xfe3952['diffData'])return Promise['resolve']();{const _0x9eb6f3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x9eb6f3,'revisionId':_0xfe3952['id']})['then'](_0x48ccb1=>{_0xfe3952['_update']({'diffData':_0x48ccb1['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xbfaf57=>{for(const _0x2ccae6 of this['editor']['model']['document']['getRootNames']())_0xbfaf57['detachRoot'](_0x2ccae6);});}['_sortAndFilterDiffChanges'](_0x32b9c1){const _0x1faaa6=[],_0x1a4905=new Map();for(const _0x44d619 of this['editor']['model']['document']['getRootNames']()){const _0x46341c=this['editor']['editing']['view']['getDomRoot'](_0x44d619);if(!_0x46341c)continue;const _0x2d2cd0=_0x46341c['getClientRects']()['item'](0x0);_0x2d2cd0&&(_0x1faaa6['push'](_0x44d619),_0x1a4905['set'](_0x44d619,_0x2d2cd0));}return _0x1faaa6['sort']((_0x80ae40,_0x171129)=>{const _0x408698=_0x1a4905['get'](_0x80ae40),_0x52ab28=_0x1a4905['get'](_0x171129);return _0x408698['y']-_0x52ab28['y']||_0x408698['x']-_0x52ab28['x'];}),(_0x32b9c1=_0x32b9c1['filter'](_0x25e851=>_0x1faaa6['includes'](_0x25e851['rootName'])))['sort']((_0x6cf999,_0x1c0d4c)=>_0x1faaa6['indexOf'](_0x6cf999['rootName'])-_0x1faaa6['indexOf'](_0x1c0d4c['rootName'])),_0x32b9c1;}['_makeTape'](_0x3f66aa){const _0x2e5ff0=Array['from'](_0x3f66aa['markers'])['filter'](([_0x144bd7,_0x2b00a6])=>_0x144bd7['startsWith']('revision:')&&!_0x2b00a6['isCollapsed']),_0x282257=Array['from'](this['editor']['model']['createRangeIn'](_0x3f66aa)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2e5ff0['length'])for(const _0x4ac0fe of _0x282257){const [_0x3e6025,_0x2627a2]=_0x2e5ff0[0x0],[,_0x36aa31,_0x324f43]=_0x3e6025['split'](':');if(_0x2627a2['end']['isEqual'](_0x4ac0fe['nextPosition'])&&_0x2e5ff0['shift'](),(_0x4ac0fe['previousPosition']['isEqual'](_0x2627a2['start'])||_0x4ac0fe['previousPosition']['isAfter'](_0x2627a2['start']))&&('insertion'==_0x36aa31?_0x4ac0fe['isAdded']={'userId':_0x324f43}:'deletion'==_0x36aa31&&(_0x4ac0fe['isRemoved']={'userId':_0x324f43})),0x0==_0x2e5ff0['length'])break;}return _0x282257;}['_refreshStartEndIndex'](_0x57d5e9){const _0x5d57c3=new Map();for(let _0xefc314=0x0;_0xefc314<_0x57d5e9['length'];_0xefc314++)'text'===_0x57d5e9[_0xefc314]['type']?(_0x57d5e9[_0xefc314]['item']['startIndex']=_0xefc314,_0x57d5e9[_0xefc314]['item']['endIndex']=_0xefc314):('elementStart'===_0x57d5e9[_0xefc314]['type']?_0x57d5e9[_0xefc314]['item']['startIndex']=_0xefc314:'elementEnd'===_0x57d5e9[_0xefc314]['type']&&(_0x57d5e9[_0xefc314]['item']['endIndex']=_0xefc314),_0x5d57c3['set'](_0x57d5e9[_0xefc314]['id'],_0xefc314));for(const _0x5888e4 of _0x5d57c3['values']())'elementStart'===_0x57d5e9[_0x5888e4]['type']?_0x57d5e9[_0x5888e4]['item']['endIndex']=_0x5d57c3['get'](_0x57d5e9[_0x5888e4]['pairId']):'elementEnd'===_0x57d5e9[_0x5888e4]['type']&&(_0x57d5e9[_0x5888e4]['item']['startIndex']=_0x5d57c3['get'](_0x57d5e9[_0x5888e4]['pairId']));}['_processTape'](_0x4b44e4){for(let _0x128557=0x0;_0x128557<_0x4b44e4['length'];_0x128557++){if('elementStart'===_0x4b44e4[_0x128557]['type'])_0x4b44e4[_0x128557]['item']['startIndex']=_0x128557;else{if('elementEnd'===_0x4b44e4[_0x128557]['type']){_0x4b44e4[_0x128557]['item']['endIndex']=_0x128557;const _0x182b3b=_0x4b44e4[_0x128557]['item']['startIndex'];_0x4b44e4[_0x182b3b]['pairId']=_0x4b44e4[_0x128557]['id'],_0x4b44e4[_0x128557]['pairId']=_0x4b44e4[_0x182b3b]['id'];}else _0x4b44e4[_0x128557]['item']['startIndex']=_0x128557,_0x4b44e4[_0x128557]['item']['endIndex']=_0x128557,_0x4b44e4[_0x128557]['pairId']=null;}_0x4b44e4[_0x128557]['markersStart']||(_0x4b44e4[_0x128557]['markersStart']=[],_0x4b44e4[_0x128557]['markersEnd']=[]);}}['_markInsertions'](_0x4be4e4,_0x4eef74){const _0x5b6b69=_0x4be4e4['filter'](_0x3e373d=>!_0x3e373d['isAdded']);for(let _0x5698a3=0x0;_0x5698a3<_0x4eef74['length'];_0x5698a3++)_0x4eef74[_0x5698a3]['isAdded']&&(_0x5b6b69[_0x5698a3]['isAdded']=_0x4eef74[_0x5698a3]['isAdded']);}['_makeModelFromViewString'](_0x1cd748){const _0x2ca51d=JSON['parse'](_0x1cd748),_0x50436f=this['editor']['editing']['view']['document'],_0x5347fe=new _0x469639(_0x50436f,_0x2ca51d['map'](_0x16619a=>this['_getViewObj'](_0x16619a)));return this['editor']['data']['toModel'](_0x5347fe);}['_getViewObj'](_0x1ac7ca){const _0x109204=this['editor']['editing']['view']['document'];if('string'==typeof _0x1ac7ca)return new _0x4ccbca(_0x109204,_0x1ac7ca);{const _0x3587ee=_0x1ac7ca['children']['map'](_0xc99348=>this['_getViewObj'](_0xc99348));return new(Y[_0x1ac7ca['type']]||_0x46c9fc)(_0x109204,_0x1ac7ca['name'],_0x1ac7ca['attributes'],_0x3587ee);}}['_getDiff'](_0x5309c0,_0x1b7421=null){const _0x52f3ee=this['repository']['getRevision'](_0x5309c0),_0x11f36e=_0x1b7421?this['repository']['getRevision'](_0x1b7421):null,_0x50d914=this['_getRevisionsRange'](_0x52f3ee,_0x11f36e),_0x2c8269=_0x50d914[_0x50d914['length']-0x1],_0x19f6df=new Map(),_0x23eaf9={'model':{},'attributes':{},'changes':[]},_0x38b635=new Set(),_0x52c062=new Map();for(let _0x387b60=_0x50d914['length']-0x1;_0x387b60>=0x0;_0x387b60--){const _0x414dcc=_0x50d914[_0x387b60];for(const _0x447f20 of Object['keys'](_0x414dcc['diffData']))if(_0x414dcc['diffData'][_0x447f20]['attachChange']){const _0x1a90be=_0x414dcc['diffData'][_0x447f20]['attachChange'];_0x1a90be['isAttached']?(_0x38b635['add'](_0x447f20),_0x52c062['has'](_0x447f20)&&_0x52c062['get'](_0x447f20)['userId']==_0x1a90be['userId']?_0x52c062['delete'](_0x447f20):_0x52c062['set'](_0x447f20,_0x1a90be)):_0x52c062['has'](_0x447f20)?(_0x38b635['delete'](_0x447f20),_0x52c062['delete'](_0x447f20)):(_0x38b635['add'](_0x447f20),_0x52c062['set'](_0x447f20,_0x1a90be));}else _0x38b635['add'](_0x447f20);}for(const _0x539231 of _0x38b635){const _0x32981e=_0x52c062['has'](_0x539231)&&!_0x52c062['get'](_0x539231)['isAttached'];let _0x1d14b5=_0x32981e?_0x50d914['length']-0x1:0x0;const _0x10109e=_0x32981e?-0x1:0x1;for(;_0x50d914[_0x1d14b5];){const _0x51b6a7=_0x50d914[_0x1d14b5];if(_0x51b6a7['diffData'][_0x539231]){const _0xe02c2b=_0x32981e?_0x51b6a7['diffData'][_0x539231]['attributesBefore']:_0x51b6a7['diffData'][_0x539231]['attributesAfter'];_0x23eaf9['attributes'][_0x539231]=_0xe02c2b?_0x351846(_0xe02c2b):{};break;}_0x1d14b5+=_0x10109e;}}for(const _0x2a3d83 of _0x50d914){_0x2a3d83['model']={};for(const _0x20cb27 of _0x2a3d83['authors'])_0x19f6df['set'](_0x20cb27['id'],_0x20cb27);for(const _0x1d2ccb of _0x38b635){const _0x268086=_0x2a3d83['diffData'][_0x1d2ccb]?_0x2a3d83['diffData'][_0x1d2ccb]['insertions']:'[]',_0x156f33=_0x2a3d83['diffData'][_0x1d2ccb]?_0x2a3d83['diffData'][_0x1d2ccb]['deletions']:'[]';_0x2a3d83['model'][_0x1d2ccb]={'insertions':this['_makeModelFromViewString'](_0x268086),'deletions':this['_makeModelFromViewString'](_0x156f33)};}}for(const _0x27f7ce of _0x38b635){let _0x43e49f=null,_0x1c92a6=0x0;const _0x58b36b=new Map(Array['from'](_0x52f3ee['model'][_0x27f7ce]['insertions']['markers'])['filter'](([_0x56cf20])=>!_0x56cf20['startsWith']('revision:')));let _0x4e414e=0x0;for(const _0x53cef4 of _0x50d914){const _0x40b09f=this['_makeTape'](_0x53cef4['model'][_0x27f7ce]['insertions']);_0x53cef4==_0x52f3ee?(_0x43e49f=_0x40b09f,_0x1c92a6=_0x43e49f['length'],_0x43e49f['forEach'](_0x3cb000=>{_0x3cb000['id']=_0x4e414e++;}),this['_processTape'](_0x43e49f)):this['_markInsertions'](_0x43e49f,_0x40b09f);const _0x47b6b4=_0x43e49f['filter'](_0xe856f1=>!_0xe856f1['isAdded'])['map'](_0x5ea76d=>_0x5ea76d['id']);let _0x5ba198=0x0;const _0x151876=this['_makeTape'](_0x53cef4['model'][_0x27f7ce]['deletions']);_0x151876['forEach'](_0xf676e1=>{_0xf676e1['isRemoved']?_0xf676e1['id']=_0x1c92a6++:_0xf676e1['id']=_0x47b6b4[_0x5ba198++];}),this['_processTape'](_0x151876),this['_setDistance'](_0x43e49f,'isAdded'),this['_setDistance'](_0x151876,'isRemoved'),_0x53cef4==_0x52f3ee&&this['_markMarkers'](_0x43e49f,_0x58b36b),_0x43e49f=this['_joinTapes'](_0x43e49f,_0x151876),this['_refreshStartEndIndex'](_0x43e49f),this['_setDistance'](_0x43e49f,'isRemoved');}_0x43e49f=_0x43e49f['filter'](_0x2ab0ae=>!(_0x2ab0ae['isAdded']&&_0x2ab0ae['isRemoved']));const _0x35cdfa=new Map(_0x2c8269['model'][_0x27f7ce]['deletions']['markers']),_0x4d230c=new Set(_0x58b36b['keys']());for(const _0x2fcf88 of _0x35cdfa['keys']())_0x4d230c['delete'](_0x2fcf88);this['_markSuggestions'](_0x43e49f,_0x4d230c),this['_fixObsoleteTags'](_0x43e49f),_0x43e49f=this['_removeMissingPairs'](_0x43e49f),_0x43e49f=this['_markMismatchedRemovedTags'](_0x43e49f),_0x43e49f=this['_removeUnsupportedChanges'](_0x43e49f);const {root:_0xdea234,changes:_0x1241ad}=this['_makeModelFromTape'](_0x43e49f,_0x19f6df,_0x27f7ce);_0x23eaf9['model'][_0x27f7ce]=_0xdea234;const _0xfadd22=_0x52c062['get'](_0x27f7ce);if(_0xfadd22){const _0x455bc2=_0x19f6df['get'](_0xfadd22['userId']),_0x49b6d4=new r({'author':_0x455bc2,'type':_0xfadd22['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x27f7ce});_0x1241ad['unshift'](_0x49b6d4),_0x23eaf9['attributes'][_0x27f7ce]['revisionHistoryAttachChange']=_0x49b6d4['id'];}_0x23eaf9['changes']=_0x23eaf9['changes']['concat'](_0x1241ad);}return _0x23eaf9;}['_markMarkers'](_0x77a712,_0x54d523){for(let _0x2b6720=0x0;_0x2b6720<_0x77a712['length'];_0x2b6720++)for(const [_0x3765d4,_0x1b85b8]of _0x54d523)_0x1b85b8['start']['isEqual'](_0x77a712[_0x2b6720]['previousPosition'])&&_0x77a712[_0x2b6720]['markersStart']['push'](_0x3765d4),_0x1b85b8['end']['isEqual'](_0x77a712[_0x2b6720]['nextPosition'])&&_0x77a712[_0x2b6720]['markersEnd']['push'](_0x3765d4);}['_joinTapes'](_0x43a355,_0x4df995){let _0x580c28=[],_0x8ec794=0x0,_0x3d3d48=0x0;for(;_0x8ec794<_0x43a355['length']||_0x3d3d48<_0x4df995['length'];){const _0x4616ba=_0x43a355[_0x8ec794]||{},_0x5f52eb=_0x4df995[_0x3d3d48]||{};if(_0x4616ba['id']==_0x5f52eb['id'])_0x8ec794++,_0x3d3d48++,_0x580c28['push'](_0x4616ba);else{if(_0x5f52eb['isRemoved']&&_0x4616ba['isAdded']){const {commonTape:_0x3447bc,iEnd:_0x270b6e,jEnd:_0x33b2b9}=this['_threeWayMerge'](_0x43a355,_0x8ec794,_0x4df995,_0x3d3d48);_0x580c28=_0x580c28['concat'](_0x3447bc),_0x8ec794=_0x270b6e,_0x3d3d48=_0x33b2b9;}else _0x5f52eb['isRemoved']?(_0x3d3d48++,_0x580c28['push'](_0x5f52eb)):(_0x8ec794++,_0x580c28['push'](_0x4616ba));}}return _0x580c28;}['_markSuggestions'](_0x17a067,_0x6195d){const _0x43cb15=[];for(let _0x1d39a0=0x0;_0x1d39a0<_0x17a067['length'];_0x1d39a0++){for(let _0xc6565b=0x0;_0xc6565b<_0x17a067[_0x1d39a0]['markersStart']['length'];_0xc6565b++){const _0x11589f=_0x17a067[_0x1d39a0]['markersStart'][_0xc6565b];if(!_0x6195d['has'](_0x11589f))continue;const {group:_0x403c9e,type:_0x3ecb72,authorId:_0x21c834}=_0x486d08(_0x11589f);'revision-suggestion'!=_0x403c9e||'insertion'!=_0x3ecb72&&'deletion'!=_0x3ecb72||(_0x43cb15['unshift']({'type':_0x3ecb72,'name':_0x11589f,'userId':_0x21c834}),_0x17a067[_0x1d39a0]['markersStart']['splice'](_0xc6565b,0x1),_0xc6565b--);}_0x2f52fc(_0x17a067[_0x1d39a0]);for(let _0x41627e=0x0;_0x41627e<_0x17a067[_0x1d39a0]['markersEnd']['length'];_0x41627e++){const _0x160d99=_0x17a067[_0x1d39a0]['markersEnd'][_0x41627e];if(!_0x6195d['has'](_0x160d99))continue;const {group:_0x1b501e,type:_0x319e47}=_0x486d08(_0x160d99);if('revision-suggestion'!=_0x1b501e||'insertion'!=_0x319e47&&'deletion'!=_0x319e47)continue;_0x17a067[_0x1d39a0]['markersEnd']['splice'](_0x41627e,0x1),_0x41627e--;const _0x3cb87b=_0x43cb15['findIndex'](_0x466581=>_0x466581['name']==_0x160d99);_0x3cb87b>-0x1&&_0x43cb15['splice'](_0x3cb87b,0x1);}}function _0x486d08(_0x1cf988){const _0x6f910c=_0x1cf988['split'](':');return{'group':_0x6f910c[0x0],'type':_0x6f910c[0x1],'subType':_0x6f910c['length']>=0x5?_0x6f910c[0x2]:null,'id':_0x6f910c['length']<0x5?_0x6f910c[0x2]:_0x6f910c[0x3],'authorId':_0x6f910c['length']<0x5?_0x6f910c[0x3]:_0x6f910c[0x4],'markerCount':0x6==_0x6f910c['length']?_0x6f910c[0x5]:null};}function _0x2f52fc(_0x488d8f){for(let _0x510696=0x0;_0x510696<_0x43cb15['length'];_0x510696++){if(_0x488d8f['isAdded']&&'insertion'==_0x43cb15[_0x510696]['type'])return _0x488d8f['isAddSuggestion']=_0x43cb15[_0x510696],void delete _0x488d8f['isAdded'];if(!_0x488d8f['isAdded']&&!_0x488d8f['isRemoved']&&'deletion'==_0x43cb15[_0x510696]['type'])return void(_0x488d8f['isRemoveSuggestion']=_0x43cb15[_0x510696]);}}}['_setDistance'](_0x46aac7,_0x533446){let _0x1b4d5f=0x0,_0x414018=!0x1;const _0x4ca8fd=new Map();for(const _0x2599ec of _0x46aac7)_0x2599ec[_0x533446]?_0x414018&&(_0x1b4d5f++,_0x414018=!0x1):(_0x1b4d5f++,_0x414018=!0x0),_0x4ca8fd['set'](_0x2599ec['id'],_0x1b4d5f);for(let _0x28daa3=0x0;_0x28daa3<_0x46aac7['length'];_0x28daa3++){if('isRemoved'==_0x533446&&_0x46aac7[_0x28daa3]['isAdded']||'isAdded'==_0x533446&&_0x46aac7[_0x28daa3]['isRemoved'])continue;if('text'==_0x46aac7[_0x28daa3]['type']){_0x46aac7[_0x28daa3]['distance']=0x0;continue;}const _0x3b732c=_0x4ca8fd['get'](_0x46aac7[_0x28daa3]['pairId']),_0x22980f=_0x4ca8fd['get'](_0x46aac7[_0x28daa3]['id']);_0x46aac7[_0x28daa3]['distance']=_0x3b732c-_0x22980f;}}['_getRevisionsRange'](_0x3f4631,_0x27e430,_0x3d8dd2=!0x1){const _0x21a6a1=[];let _0x574e18=this['repository']['getIndex'](_0x3f4631),_0x68fb90=this['repository']['getIndex'](_0x27e430);for(-0x1==_0x68fb90&&(_0x68fb90=this['repository']['_revisions']['length'],_0x3d8dd2=!0x1);_0x574e18<_0x68fb90;)_0x21a6a1['push'](this['repository']['getRevision'](_0x574e18)),_0x574e18++;return _0x3d8dd2&&_0x21a6a1['push'](this['repository']['getRevision'](_0x574e18)),_0x21a6a1;}['_threeWayMerge'](_0xec449b,_0x59cde7,_0x74323a,_0x28a234){const _0x17942a=this['editor']['model']['schema'];let _0x4114fb=_0x59cde7;for(;_0xec449b[_0x4114fb]&&_0xec449b[_0x4114fb]['isAdded'];)_0x4114fb++;let _0x551101=_0x28a234;for(;_0x74323a[_0x551101]&&_0x74323a[_0x551101]['isRemoved'];)_0x551101++;_0x599a67(_0xec449b,_0x59cde7,_0x4114fb),_0x599a67(_0x74323a,_0x28a234,_0x551101);const _0x123592=_0x74323a['slice'](_0x28a234,_0x551101)['concat'](_0xec449b['slice'](_0x59cde7,_0x4114fb));return _0x123592['sort']((_0x47ded4,_0x2d89e8)=>_0x47ded4['side']!=_0x2d89e8['side']?_0x47ded4['side']-_0x2d89e8['side']:_0x47ded4['level']!=_0x2d89e8['level']?_0x47ded4['level']-_0x2d89e8['level']:_0x47ded4['distance']!=_0x2d89e8['distance']?_0x2d89e8['distance']-_0x47ded4['distance']:!!_0x47ded4['isAdded']!=!!_0x2d89e8['isAdded']?-0x1==_0x47ded4['side']||0x0==_0x47ded4['side']?_0x47ded4['isAdded']?-0x1:0x1:_0x47ded4['isAdded']?0x1:-0x1:_0x47ded4['index']-_0x2d89e8['index']),{'commonTape':_0x123592,'iEnd':_0x4114fb,'jEnd':_0x551101};function _0x599a67(_0x4129c8,_0x4b4b14,_0x4243cb){let _0x217a55=-0x1,_0x3d321c=Number['POSITIVE_INFINITY'],_0x563091=!0x0;for(let _0x469155=_0x4b4b14;_0x469155<_0x4243cb;_0x469155++)if(_0x17942a['isInline'](_0x4129c8[_0x469155]['item'])||(_0x563091=!0x1),_0x4129c8[_0x469155]['item']['startIndex']<_0x4b4b14&&(_0x217a55=_0x469155),_0x4129c8[_0x469155]['item']['endIndex']>=_0x4243cb){_0x3d321c=_0x469155;break;}_0x563091&&(_0x217a55=_0x4243cb-0x1);for(let _0x4870ac=_0x4b4b14;_0x4870ac<_0x4243cb;_0x4870ac++)_0x4129c8[_0x4870ac]['side']=_0x4870ac<=_0x217a55?-0x1:_0x4870ac<_0x3d321c?0x0:0x1,_0x4129c8[_0x4870ac]['index']=_0x4870ac;let _0x29a2cc=0x0;for(let _0x1b8edc=_0x4b4b14;_0x1b8edc<=_0x217a55;_0x1b8edc++)0x0==_0x4129c8[_0x1b8edc]['distance']?_0x4129c8[_0x1b8edc]['level']=_0x29a2cc:(_0x29a2cc++,_0x4129c8[_0x1b8edc]['level']=_0x29a2cc,_0x29a2cc++);for(let _0x45f551=_0x4b4b14;_0x45f551<_0x4243cb;_0x45f551++)0x0==_0x4129c8[_0x45f551]['side']&&(_0x4129c8[_0x45f551]['level']=_0x29a2cc);_0x29a2cc=0x0;for(let _0x403453=_0x4243cb-0x1;_0x403453>=_0x3d321c;_0x403453--)0x0==_0x4129c8[_0x403453]['distance']?_0x4129c8[_0x403453]['level']=_0x29a2cc:(_0x29a2cc--,_0x4129c8[_0x403453]['level']=_0x29a2cc,_0x29a2cc--);}}['_fixObsoleteTags'](_0x357c97){const _0x4636e5=new Map(),_0xf36b1f=this['editor']['model']['schema'];for(let _0x1f7102=0x1;_0x1f7102<_0x357c97['length'];_0x1f7102++){let _0x139545,_0x50fe2f,_0x5ab3a9;const _0x46dc19=_0x357c97[_0x1f7102],_0x188be4=_0x357c97[_0x1f7102-0x1];if('text'==_0x46dc19['type'])continue;if(_0x46dc19['type']!=_0x188be4['type'])continue;if(!_0xf36b1f['isBlock'](_0x188be4['item'])||_0xf36b1f['isLimit'](_0x188be4['item']))continue;if(!_0xf36b1f['isBlock'](_0x46dc19['item'])||_0xf36b1f['isLimit'](_0x46dc19['item']))continue;if((_0x357c97[_0x1f7102]['isAdded']||_0x357c97[_0x1f7102]['isAddSuggestion'])&&_0x357c97[_0x1f7102-0x1]['isRemoved'])_0x139545=_0x357c97[_0x1f7102],_0x50fe2f=_0x357c97[_0x1f7102-0x1],_0x5ab3a9=_0x1f7102-0x1;else{if(!_0x357c97[_0x1f7102]['isRemoved']||!_0x357c97[_0x1f7102-0x1]['isAdded']&&!_0x357c97[_0x1f7102-0x1]['isAddSuggestion'])continue;_0x139545=_0x357c97[_0x1f7102-0x1],_0x50fe2f=_0x357c97[_0x1f7102],_0x5ab3a9=_0x1f7102;}const _0x2e0cee=_0x139545['level']==_0x50fe2f['level'],_0xf40210=Math['abs'](_0x139545['level'])<Math['abs'](_0x50fe2f['level'])&&0x0==_0x50fe2f['distance'];(_0x2e0cee||_0xf40210)&&(_0x4636e5['set'](_0x50fe2f['id'],_0x139545['id']),_0x357c97['splice'](_0x5ab3a9,0x1),_0x1f7102--,_0x139545['isAdded']=!0x1);}for(let _0x3972a7=0x0;_0x3972a7<_0x357c97['length'];_0x3972a7++)_0x4636e5['has'](_0x357c97[_0x3972a7]['pairId'])&&(_0x357c97[_0x3972a7]['pairId']=_0x4636e5['get'](_0x357c97[_0x3972a7]['pairId']));}['_removeMissingPairs'](_0x56e314){const _0x26662e=new Set(_0x56e314['map'](_0x3fda63=>_0x3fda63['id']));for(let _0x55b7c5=0x0;_0x55b7c5<_0x56e314['length'];_0x55b7c5++)_0x26662e['has'](_0x56e314[_0x55b7c5]['pairId'])||0x0==_0x56e314[_0x55b7c5]['distance']||(_0x56e314[_0x55b7c5]['isIncorrect']=!0x0);return _0x56e314['filter'](_0x54da62=>!_0x54da62['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5ab90f){const _0x3e9dcd=new Set();for(let _0x34cf0d=0x0;_0x34cf0d<_0x5ab90f['length'];_0x34cf0d++){if(_0x3e9dcd['has'](_0x5ab90f[_0x34cf0d]['id'])&&_0x5ab90f[_0x34cf0d]['isRemoved']&&(_0x5ab90f[_0x34cf0d]['isIncorrect']=!0x0),_0x5ab90f[_0x34cf0d]['isIncorrect'])continue;if(0x0==_0x5ab90f[_0x34cf0d]['distance'])continue;if('elementStart'!=_0x5ab90f[_0x34cf0d]['type'])continue;if(null==_0x5ab90f[_0x34cf0d]['pairId'])continue;let _0x4b156e=_0x34cf0d+0x1,_0x50dcdc=0x0;for(;_0x5ab90f[_0x4b156e]['id']!=_0x5ab90f[_0x34cf0d]['pairId'];)'elementStart'==_0x5ab90f[_0x4b156e]['type']?_0x50dcdc++:'elementEnd'==_0x5ab90f[_0x4b156e]['type']&&_0x50dcdc--,_0x4b156e++;if(0x0!=_0x50dcdc){if(_0x5ab90f[_0x34cf0d]['isRemoved'])_0x5ab90f[_0x34cf0d]['isIncorrect']=!0x0;else{for(;_0x4b156e!=_0x34cf0d;)_0x5ab90f[_0x4b156e]['isRemoved']&&0x0!=_0x5ab90f[_0x4b156e]['distance']&&(_0x5ab90f[_0x4b156e]['isIncorrect']=!0x0,_0x3e9dcd['add'](_0x5ab90f[_0x4b156e]['pairId'])),_0x4b156e--;}}}return _0x5ab90f['filter'](_0x4ee308=>!_0x4ee308['isIncorrect']);}['_removeUnsupportedChanges'](_0x41424f){const _0x2cca01=this['editor']['model']['schema'];for(let _0x1bae52=0x0;_0x1bae52<_0x41424f['length'];_0x1bae52++){if(!(_0x41424f[_0x1bae52]['isAdded']||_0x41424f[_0x1bae52]['isAddSuggestion']||_0x41424f[_0x1bae52]['isRemoved']||_0x41424f[_0x1bae52]['isRemoveSuggestion']))continue;if(0x0==_0x41424f[_0x1bae52]['distance'])continue;const _0x1307cf=_0x41424f[_0x1bae52]['item'];_0x2cca01['isBlock'](_0x1307cf)||_0x2cca01['isLimit'](_0x1307cf)||(_0x41424f[_0x1bae52]['isAdded']&&delete _0x41424f[_0x1bae52]['isAdded'],_0x41424f[_0x1bae52]['isAddSuggestion']&&delete _0x41424f[_0x1bae52]['isAddSuggestion'],_0x41424f[_0x1bae52]['isRemoveSuggestion']&&delete _0x41424f[_0x1bae52]['isRemoveSuggestion'],_0x41424f[_0x1bae52]['isRemoved']&&(_0x41424f[_0x1bae52]['isIncorrect']=!0x0));}return _0x41424f['filter'](_0x266575=>!_0x266575['isIncorrect']);}['_makeModelFromTape'](_0x482a7c,_0x87b146,_0xd2f51c){const _0x3fff7f=new gt(),_0x278aad=[],_0x2d2259=new Map(),_0x4752a6=this['editor']['model'],_0x11b063=_0x4752a6['schema'],_0x4f0870=[_0x3fff7f],_0x1a45a9={},_0x1650df={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x545ddb=null;const _0x1f4eb9=[0x0];for(let _0xcaf772=0x0;_0xcaf772<_0x482a7c['length'];_0xcaf772++)if('elementStart'===_0x482a7c[_0xcaf772]['type']){_0x482a7c[_0xcaf772]['previousPosition']=_0x4752a6['createPositionFromPath'](_0x3fff7f,_0x1f4eb9);const _0x4a746f=new ut(_0x482a7c[_0xcaf772]['item']['name'],_0x482a7c[_0xcaf772]['item']['getAttributes']());_0x4f0870[0x0]['_appendChild'](_0x4a746f),_0x1f4eb9['push'](0x0),_0x4f0870['unshift'](_0x4a746f),_0x482a7c[_0xcaf772]['nextPosition']=_0x4752a6['createPositionFromPath'](_0x3fff7f,_0x1f4eb9);}else'elementEnd'===_0x482a7c[_0xcaf772]['type']?(_0x4f0870['shift'](),_0x482a7c[_0xcaf772]['previousPosition']=_0x4752a6['createPositionFromPath'](_0x3fff7f,_0x1f4eb9),_0x1f4eb9['pop'](),_0x1f4eb9[_0x1f4eb9['length']-0x1]++,_0x482a7c[_0xcaf772]['nextPosition']=_0x4752a6['createPositionFromPath'](_0x3fff7f,_0x1f4eb9)):(_0x482a7c[_0xcaf772]['previousPosition']=_0x4752a6['createPositionFromPath'](_0x3fff7f,_0x1f4eb9),_0x545ddb?_0x545ddb['_data']+=_0x482a7c[_0xcaf772]['item']['data']:_0x545ddb=new mt(_0x482a7c[_0xcaf772]['item']['data'],_0x482a7c[_0xcaf772]['item']['getAttributes']()),_0x482a7c[_0xcaf772+0x1]&&'text'===_0x482a7c[_0xcaf772+0x1]['type']&&_0x4a893e(_0x545ddb,_0x482a7c[_0xcaf772+0x1]['item'])||(_0x4f0870[0x0]['_appendChild'](_0x545ddb),_0x545ddb=null),_0x1f4eb9[_0x1f4eb9['length']-0x1]+=_0x482a7c[_0xcaf772]['item']['offsetSize'],_0x482a7c[_0xcaf772]['nextPosition']=_0x4752a6['createPositionFromPath'](_0x3fff7f,_0x1f4eb9));for(let _0x2897bb=0x0;_0x2897bb<_0x482a7c['length'];_0x2897bb++){const _0x474c7e=_0x482a7c[_0x2897bb]['previousPosition'],_0x5720e3=_0x482a7c[_0x2897bb]['nextPosition'];for(const _0x384b41 of _0x482a7c[_0x2897bb]['markersStart'])_0x2d2259['set'](_0x384b41,{'start':_0x474c7e,'end':null});_0x10bc7b('isRemoveSuggestion',_0x2897bb,_0x474c7e,_0x5720e3),_0x10bc7b('isAddSuggestion',_0x2897bb,_0x474c7e,_0x5720e3),_0x10bc7b('isRemoved',_0x2897bb,_0x474c7e,_0x5720e3),_0x10bc7b('isAdded',_0x2897bb,_0x474c7e,_0x5720e3);for(const _0x1af1ca of _0x482a7c[_0x2897bb]['markersEnd']){_0x2d2259['get'](_0x1af1ca)['end']=_0x5720e3;}}for(const [_0x1913e6,_0x54a29d]of _0x2d2259){const _0x44fc37=this['editor']['model']['createRange'](_0x54a29d['start'],_0x54a29d['end']);_0x3fff7f['markers']['set'](_0x1913e6,_0x44fc37);}return _0x278aad['sort']((_0x24406e,_0xccdddc)=>{const _0x462bf6=_0x3fff7f['markers']['get']('revision:'+_0x24406e['id']),_0x33a1f5=_0x3fff7f['markers']['get']('revision:'+_0xccdddc['id']);return _0x462bf6['start']['isBefore'](_0x33a1f5['start'])?-0x1:_0x462bf6['start']['isAfter'](_0x33a1f5['start'])?0x1:_0x462bf6['end']['isBefore'](_0x33a1f5['end'])?-0x1:_0x462bf6['end']['isAfter'](_0x33a1f5['end'])?0x1:'add'===_0x24406e['type']?-0x1:0x1;}),{'root':_0x3fff7f,'changes':_0x278aad};function _0x10bc7b(_0xb3ef15,_0x584214,_0x291156,_0x33737e){const _0x4481d6=!!_0x482a7c[_0x584214][_0xb3ef15],_0x436dc3=_0x4481d6?_0x482a7c[_0x584214][_0xb3ef15]['userId']:null,_0x4f7f62=_0x584214===_0x482a7c['length']-0x1,_0x1e835b=_0x1650df[_0xb3ef15][0x0],_0xa3f844=_0x11b063['isObject'](_0x482a7c[_0x584214]['item']);!_0x1a45a9[_0xb3ef15]&&_0x4481d6?_0x1a45a9[_0xb3ef15]={'start':_0x291156,'tapeItem':_0x482a7c[_0x584214],'userId':_0x436dc3,'type':_0xb3ef15}:_0x1a45a9[_0xb3ef15]&&!_0x4481d6?(_0x1a45a9[_0xb3ef15]['end']=_0x291156,_0x28426b(_0x1a45a9[_0xb3ef15]),_0x1a45a9[_0xb3ef15]=null):_0x1a45a9[_0xb3ef15]&&_0x4481d6&&_0x1a45a9[_0xb3ef15]['userId']!==_0x436dc3&&(_0x1a45a9[_0xb3ef15]['end']=_0x291156,_0x1e835b&&_0x1e835b['userId']===_0x1a45a9[_0xb3ef15]['userId']||_0x28426b(_0x1a45a9[_0xb3ef15]),_0x1a45a9[_0xb3ef15]={'start':_0x291156,'tapeItem':_0x482a7c[_0x584214],'userId':_0x436dc3,'type':_0xb3ef15}),_0x1a45a9[_0xb3ef15]&&_0xa3f844&&('elementStart'!==_0x482a7c[_0x584214]['type']||_0x1e835b&&_0x1e835b['userId']===_0x436dc3||_0x1650df[_0xb3ef15]['unshift']({'userId':_0x436dc3,'object':_0x482a7c[_0x584214]['item'],'change':_0x1a45a9[_0xb3ef15]}),'elementEnd'===_0x482a7c[_0x584214]['type']&&_0x1e835b&&_0x1e835b['object']===_0x482a7c[_0x584214]['item']&&(_0x1650df[_0xb3ef15]['shift'](),_0x1a45a9[_0xb3ef15]=_0x1e835b['change'])),_0x1a45a9[_0xb3ef15]&&_0x4f7f62&&(_0x1a45a9[_0xb3ef15]['end']=_0x33737e,_0x28426b(_0x1a45a9[_0xb3ef15]),_0x1a45a9[_0xb3ef15]=null);}function _0x28426b({start:_0x5acfba,end:_0x448206,tapeItem:_0x511950,userId:_0x14b537,type:_0x4db02a}){const _0x186d52=_0x511950['item'],_0x48d692=_0x4752a6['schema']['isBlock'](_0x186d52)&&!_0x4752a6['schema']['isLimit'](_0x186d52),_0x929eb0=_0x5acfba['nodeAfter']==_0x448206['parent']&&_0x448206['isAtStart'];if(_0x48d692&&_0x929eb0)return;const _0x16addc=_0x4752a6['createRange'](_0x5acfba,_0x448206),_0x3d1c51=_0x87b146['get'](_0x14b537),_0x308653=new r({'author':_0x3d1c51,'type':'isAdded'==_0x4db02a||'isAddSuggestion'==_0x4db02a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4db02a||'isRemoveSuggestion'==_0x4db02a},'createdAt':new Date(),'rootName':_0xd2f51c});_0x278aad['push'](_0x308653),_0x3fff7f['markers']['set']('revision:'+_0x308653['id'],_0x16addc);}function _0x4a893e(_0x25114d,_0x57dc51){const _0x1cc272=_0x25114d['getAttributes'](),_0x802202=_0x57dc51['getAttributes']();for(const _0x5e92bd of _0x1cc272){if(_0x5e92bd[0x1]!==_0x57dc51['getAttribute'](_0x5e92bd[0x0]))return!0x1;_0x802202['next']();}return _0x802202['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x285490=>{const _0x2181b3=_0x285490['markerName']['split'](':')[0x1],_0x557da6=this['_getChangeFromId'](_0x2181b3);if(!_0x557da6)return null;const _0xd51504='add'==_0x557da6['type']?'insertion':'deletion',_0x1283e0=['ck-suggestion-marker','ck-suggestion-marker-'+_0xd51504];return _0x557da6['data']['isSuggestion']&&_0x1283e0['push']('ck-suggestion-marker-'+_0xd51504+'-new'),this['activeChange']==_0x557da6&&_0x1283e0['push']('ck-suggestion-marker--active'),{'classes':_0x1283e0,'attributes':{'data-change-id':_0x2181b3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x538448=>{_0x538448['on']('element:pre',(_0x3ad042,_0x38987b,_0x32f1b1)=>{const _0x24b12f=_0x38987b['viewItem']['getChild'](0x0);if(!_0x24b12f||!_0x24b12f['is']('element','code'))return;if(!_0x32f1b1['consumable']['consume'](_0x24b12f,{'attributes':['vid_start','vid_end']}))return;const _0x49eb35=_0x38987b['modelRange']['start']['nodeAfter'];_0x32f1b1['writer']['setAttribute']('vid_start',_0x24b12f['getAttribute']('vid_start'),_0x49eb35),_0x32f1b1['writer']['setAttribute']('vid_end',_0x24b12f['getAttribute']('vid_end'),_0x49eb35);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4679d9=>{_0x4679d9['on']('element',(_0x17575e,_0x394dfe,_0x377099)=>{if(!_0x377099['consumable']['consume'](_0x394dfe['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x394dfe['modelRange']['isCollapsed'])return;const _0x55651b=_0x394dfe['modelRange']['start']['nodeAfter'];_0x55651b['hasAttribute']('vid_start')||_0x55651b['hasAttribute']('vid')||(_0x377099['writer']['setAttribute']('vid_start',_0x394dfe['viewItem']['getAttribute']('vid_start'),_0x55651b),_0x377099['writer']['setAttribute']('vid_end',_0x394dfe['viewItem']['getAttribute']('vid_end'),_0x55651b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x457092=>_0x457092['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x580376,[,_0x1a7cd5])=>{['vid_start','vid_end','vid']['includes'](_0x1a7cd5)&&(_0x580376['return']=!0x0,_0x580376['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x920bcd=>{_0x920bcd['on']('attribute:vid',(_0x140abb,_0x2a03de,_0x417f46)=>{if('\x20'!=_0x2a03de['item']['data']||_0x2a03de['item']['parent']['maxOffset']>0x1)return;if(!_0x417f46['consumable']['consume'](_0x2a03de['item'],_0x140abb['name']))return;const _0x5a270f=_0x417f46['writer'],_0x37d481=_0x417f46['mapper']['toViewRange'](_0x2a03de['range']);_0x5a270f['wrap'](_0x37d481,_0x5a270f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xa42c24){const _0x3bee5b=_0xa42c24['plugins']['get']('RevisionViewer');return(_0x47c240,_0x49ea0c,_0x58da8d)=>{const _0x58c385=_0x49ea0c['markerName']['split'](':')[0x1],_0x25d4af=_0x3bee5b['_getChangeFromId'](_0x58c385);if(!_0x25d4af)return null;const _0x35d131='add'==_0x25d4af['type']?'split':'merge';if(!_0x58da8d['consumable']['test'](_0x49ea0c['markerRange'],_0x47c240['name']))return;const _0x5b146d=_0x49ea0c['markerRange']['getWalker'](),_0xeb7f5a=_0x49ea0c['markerRange']['start'],_0x431ffe=_0xa42c24['model']['schema'];let _0x497ac1=null,_0x35c28e=null,_0x5e10c4=!0x1,_0xbb7d6c=!0x1;for(const _0x328659 of _0x5b146d){const _0xd2df33=_0x328659['item'];_0x5e10c4=_0x5e10c4||_0x431ffe['isContent'](_0xd2df33);const _0x16b85a=_0x58da8d['mapper']['toViewElement'](_0xd2df33);if(_0x16b85a&&_0x16b85a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x328659['type']&&(_0x431ffe['isBlock'](_0xd2df33)&&!_0x431ffe['isLimit'](_0xd2df33)&&(_0xd2df33['nextSibling']||_0xeb7f5a['isAtEnd']?_0x497ac1&&_0x497ac1['parent']==_0xd2df33||(_0x497ac1=_0xd2df33,_0x4dfb3a(_0x328659['previousPosition']),_0xbb7d6c=!0x0):_0x35c28e=_0x35c28e||_0x328659['previousPosition']));}function _0x4dfb3a(_0xc45c97){const _0x568a2b=_0x58da8d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35d131}),_0x2a4197=_0x58da8d['mapper']['toViewPosition'](_0xc45c97);_0x25d4af['data']['isSuggestion']&&_0x58da8d['writer']['addClass']('ck-suggestion-marker-'+_0x35d131+'-new',_0x568a2b),_0x3bee5b['activeChange']==_0x25d4af&&_0x58da8d['writer']['addClass']('ck-suggestion-marker--active',_0x568a2b),_0x58da8d['writer']['insert'](_0x2a4197,_0x568a2b),_0x58da8d['mapper']['bindElementToMarker'](_0x568a2b,_0x49ea0c['markerName']);}_0x5e10c4||_0xbb7d6c||!_0x35c28e||_0x4dfb3a(_0x35c28e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3e1a0e,_0x2c9f75,_0x2f21a1)=>{const _0x4f8c22=_0x2f21a1['mapper']['markerNameToElements'](_0x2c9f75['markerName']);if(_0x4f8c22){for(const _0x9264fb of _0x4f8c22)(_0x9264fb['hasClass']('ck-suggestion-marker-split')||_0x9264fb['hasClass']('ck-suggestion-marker-merge'))&&(_0x2f21a1['mapper']['unbindElementFromMarkerName'](_0x9264fb,_0x2c9f75['markerName']),_0x2f21a1['writer']['remove'](_0x9264fb));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x346303,_0x5e3b6e,_0x24cc8e)=>{const _0x44d590=_0x5e3b6e['markerName']['split'](':')[0x1],_0x17bb32=this['_getChangeFromId'](_0x44d590);if(!_0x17bb32)return null;const _0x375ac1='add'==_0x17bb32['type']?'split':'merge';if(_0x24cc8e['consumable']['test'](_0x5e3b6e['markerRange'],_0x346303['name']))for(const _0x5452bf of _0x5e3b6e['markerRange']['getItems']()){if(!_0x5452bf['is']('element','softBreak'))continue;const _0xc13a06=_0x24cc8e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x375ac1}),_0x573c07=_0x24cc8e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5452bf));_0x17bb32['data']['isSuggestion']&&_0x24cc8e['writer']['addClass']('ck-suggestion-marker-'+_0x375ac1+'-new',_0xc13a06),this['activeChange']==_0x17bb32&&_0x24cc8e['writer']['addClass']('ck-suggestion-marker--active',_0xc13a06),_0x24cc8e['writer']['insert'](_0x573c07,_0xc13a06),_0x24cc8e['mapper']['bindElementToMarker'](_0xc13a06,_0x5e3b6e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2bd341=>{for(const _0x523b96 of this['editor']['model']['document']['getRootNames']()){const _0x3d4ae6=this['editor']['model']['document']['getRoot'](_0x523b96),_0x58d8e3=this['editor']['editing']['view']['document']['getRoot'](_0x523b96);if(_0x58d8e3){const _0x3e9afa=_0x3d4ae6['getAttribute']('revisionHistoryAttachChange');if(_0x2bd341['removeAttribute']('data-change-id',_0x58d8e3),_0x2bd341['removeClass']('ck-revision-history-root-add',_0x58d8e3),_0x2bd341['removeClass']('ck-revision-history-root-remove',_0x58d8e3),_0x2bd341['removeClass']('ck-revision-history-root--active',_0x58d8e3),_0x3e9afa){const _0x17034b=this['_getChangeFromId'](_0x3e9afa);if(!_0x17034b)return null;_0x2bd341['setAttribute']('data-change-id',_0x3e9afa,_0x58d8e3),_0x2bd341['addClass']('ck-revision-history-root-'+_0x17034b['type'],_0x58d8e3),this['activeChange']==_0x17034b&&_0x2bd341['addClass']('ck-revision-history-root--active',_0x58d8e3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x37b238=>'revision-comment:'+_0x37b238,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2042a0=>'revision-suggestion:'+_0x2042a0,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x593fc2=>({'name':'suggestion:'+_0x593fc2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x42b7de=>{const _0x17f7a1=_0x42b7de['markerName']['split'](':')[0x1];return'insertion'!=_0x17f7a1&&'deletion'!=_0x17f7a1?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x17f7a1]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1d7cb2,_0x2eb7ac,_0x26c46d)=>{const _0x35b2be=_0x26c46d['mapper']['markerNameToElements'](_0x2eb7ac['markerName']);if(_0x35b2be){for(const _0x22e48b of _0x35b2be)_0x22e48b['is']('uiElement')&&(_0x26c46d['mapper']['unbindElementFromMarkerName'](_0x22e48b,_0x2eb7ac['markerName']),_0x26c46d['writer']['remove'](_0x22e48b));}},{'priority':'high'});}['_getChangeFromId'](_0x18a5d4){return this['_changeIdToChange']['get'](_0x18a5d4);}['_getViewForChange'](_0x1291bb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1291bb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1026c6,_0x5e131d,_0x50a1dc,_0x180466)=>{_0x180466&&this['_balloon']['remove'](_0x180466),_0x50a1dc&&(this['_balloon']['add']({'view':_0x50a1dc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2ade82=this['editor']['editing'],_0x41d70f=this['_getChangeFromId'](_0x50a1dc['changeId']);let _0x1c5425;if(_0x41d70f['data']['isOnRoot']){const _0x3f7fc8=_0x2ade82['view']['getDomRoot'](_0x41d70f['rootName']);_0x1c5425=Array['from'](_0x3f7fc8['getClientRects']());}else{const _0x3abcb4=this['editor']['model']['markers']['get']('revision:'+_0x50a1dc['changeId']);_0x1c5425=Array['from'](_0x2ade82['mapper']['markerNameToElements'](_0x3abcb4['name']))['map'](_0x5b894d=>_0x2ade82['view']['domConverter']['mapViewToDom'](_0x5b894d))['map'](_0x4c902e=>Array['from'](_0x4c902e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c5425[0x0];return _0x1c5425['find'](_0x3ac1c6=>_0x3ac1c6['top']-0x3<=this['_activeViewTarget']['y']&&_0x3ac1c6['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3ac1c6['left']-0x3<=this['_activeViewTarget']['x']&&_0x3ac1c6['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c5425[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x241fd1,_0x53b4fe,_0x3f2be4,_0xa8bdba)=>{this['activeView']=_0x3f2be4?this['_getViewForChange'](_0x3f2be4):null,this['editor']['model']['change'](()=>{const _0x515946=this['editor']['editing'];_0xa8bdba&&(_0xa8bdba['data']['isOnRoot']?_0x515946['view']['change'](_0x3aa8f9=>{_0x3aa8f9['removeClass']('ck-revision-history-root--active',_0x515946['view']['document']['getRoot'](_0xa8bdba['rootName']));}):_0x515946['reconvertMarker']('revision:'+_0xa8bdba['id'])),_0x3f2be4&&(_0x3f2be4['data']['isOnRoot']?_0x515946['view']['change'](_0x1fe13a=>{_0x1fe13a['addClass']('ck-revision-history-root--active',_0x515946['view']['document']['getRoot'](_0x3f2be4['rootName']));}):_0x515946['reconvertMarker']('revision:'+_0x3f2be4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x39c5af,_0x237e60)=>{if(this['activeChange'])return;const _0x89351e=this['_findChangeIdFromDomTarget'](_0x237e60['target']),_0x40b589=this['_changeIdToChange']['get'](_0x89351e);_0x40b589?(this['_activeViewTarget']={'x':_0x237e60['domEvent']['x'],'y':_0x237e60['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x40b589)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3932b4,_0x11e8f5)=>{const _0x56bec3=this['_findChangeIdFromDomTarget'](_0x11e8f5['target']),_0x4b19e3=this['_changeIdToChange']['get'](_0x56bec3);_0x4b19e3?(this['_activeViewTarget']={'x':_0x11e8f5['domEvent']['x'],'y':_0x11e8f5['domEvent']['y']},_0x4b19e3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4b19e3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x26f1f5){do{const _0x468e81=_0x26f1f5['getAttribute']('data-change-id');if(_0x468e81)return _0x468e81;_0x26f1f5=_0x26f1f5['parent'];}while(_0x26f1f5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x525eed=>{for(const _0x4a8f89 of this['editor']['model']['markers'])_0x525eed['removeMarker'](_0x4a8f89);});}}function Z(_0x472787,_0x591d6d){return(_0x39a2cb,_0x5c1576,_0x46bf1d)=>{if(!_0x46bf1d['consumable']['test'](_0x5c1576['markerRange'],_0x39a2cb['name']))return;const _0x548aff=_0x5c1576['markerRange']['getWalker'](),_0x58063a=_0x5c1576['markerRange']['start'],_0x534aae=_0x472787['model']['schema'];let _0x20b823=null,_0x50707a=null,_0x127516=!0x1,_0x34dc01=!0x1;for(const _0x4bef33 of _0x548aff){const _0x369d70=_0x4bef33['item'];_0x127516=_0x127516||_0x534aae['isContent'](_0x369d70);const _0x46bcde=_0x46bf1d['mapper']['toViewElement'](_0x369d70);if(_0x46bcde&&_0x46bcde['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4bef33['type']&&(_0x534aae['isBlock'](_0x369d70)&&!_0x534aae['isLimit'](_0x369d70)&&(_0x369d70['nextSibling']||_0x58063a['isAtEnd']?_0x20b823&&_0x20b823['parent']==_0x369d70||(_0x20b823=_0x369d70,_0x2d6335(_0x4bef33['previousPosition']),_0x34dc01=!0x0):_0x50707a=_0x50707a||_0x4bef33['previousPosition']));}function _0x2d6335(_0x23f0cb){const _0x111902=_0x46bf1d['mapper']['toViewPosition'](_0x23f0cb),_0x1397b5=_0x46bf1d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x591d6d});_0x46bf1d['writer']['insert'](_0x111902,_0x1397b5),_0x46bf1d['mapper']['bindElementToMarker'](_0x1397b5,_0x5c1576['markerName']);}_0x127516||_0x34dc01||!_0x50707a||_0x2d6335(_0x50707a);};}class wt extends _0x13f25b{constructor(_0x5d92d2){super(_0x5d92d2);const _0x31a30d=_0x5d92d2['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x31a30d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x31a30d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xb48e29=this['editor'],_0x5b1628=_0xb48e29['plugins']['get'](d),_0x1b41ec=_0x5b1628['isReady']?_0x5b1628['diff']['newRevisionId']:null;_0xb48e29['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1b41ec);}['refresh'](){const {isReady:_0x504fa1,isEnabled:_0x248b02,repository:_0x4bae92,diff:_0x51e9af}=this['editor']['plugins']['get'](d),_0x42e0a9=_0x51e9af&&_0x4bae92['getLaterVisibleRevision'](_0x51e9af['newRevisionId']);this['isEnabled']=_0x504fa1&&_0x248b02&&Boolean(_0x42e0a9);}}class _t extends _0x13f25b{['_step'];constructor(_0x4cd99f,{direction:_0x4b72b0}){super(_0x4cd99f);const _0x38c664=_0x4cd99f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4b72b0?0x1:-0x1,this['listenTo'](_0x38c664,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x38c664,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x38c664,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2604ac=this['editor'],_0x2f6cb4=_0x2604ac['plugins']['get'](d),{isNavigationMode:_0x3f9c00,currentChangeNumber:_0x24cdbb}=_0x2f6cb4;let _0x29f137;if(_0x2f6cb4['activeChange']=_0x3f9c00?_0x2f6cb4['diff']['changes']['get'](_0x24cdbb+this['_step']):_0x2f6cb4['diff']['changes']['first'],_0x2f6cb4['activeChange']['data']['isOnRoot'])_0x29f137=_0x2604ac['editing']['view']['getDomRoot'](_0x2f6cb4['activeChange']['rootName']);else{const _0x598aec=_0x2604ac['model']['markers']['get']('revision:'+_0x2f6cb4['activeChange']['id']);_0x29f137=_0x11be06(_0x2604ac['editing'],_0x598aec);}_0x16f493({'target':_0x29f137,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x592e0f,currentChangeNumber:_0x515b4d,numberOfChanges:_0x42b4d5,isReady:_0x52e120,isEnabled:_0x20befc}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x20befc&&_0x52e120&&_0x42b4d5)&&(!_0x592e0f||(0x1===this['_step']?_0x515b4d<_0x42b4d5-0x1:_0x515b4d>0x0));}}class li extends ts{constructor(_0x40cacb){super(_0x40cacb);const _0x23b2d0=this['bindTemplate'],_0x3949b8=new te(_0x40cacb),_0x5e40be=new te(_0x40cacb);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',(_0x3cbfae,_0x4a6aa5)=>_0x3cbfae&&_0x4a6aa5>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x354729,_0x358ed8,_0x4b4038,_0x35e555)=>{if(!_0x354729)return m(_0x40cacb,'Loading...');if(!_0x4b4038)return m(_0x40cacb,'No\x20changes');const _0x539c91=m(_0x40cacb,'NUMBER_OF_CHANGES',_0x4b4038);return _0x35e555?m(_0x40cacb,'X_OF_Y_CHANGES',[_0x358ed8+0x1,_0x4b4038]):_0x539c91;}),_0x3949b8['set']({'label':m(_0x40cacb,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x235e6b}),_0x5e40be['set']({'label':m(_0x40cacb,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x397ef1}),_0x3949b8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5e40be['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3949b8['on']('execute',()=>this['fire']('execute','backward')),_0x5e40be['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',_0x23b2d0['if']('_isStatusLabelVisible','ck-hidden',_0x2e86a0=>!_0x2e86a0)]},'children':[{'text':_0x23b2d0['to']('isNavigationMode',_0x2822c8=>_0x2822c8?m(_0x40cacb,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x40cacb,'Total')+':\x20')}]},{'text':_0x23b2d0['to']('_statusText')}]},new _0x31e5ea(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3949b8,_0x5e40be]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x3c80d2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x205afd=this['editor']['editing']['view'];_0x205afd['change'](_0x533411=>{for(const _0x4c4b31 of _0x205afd['document']['roots'])_0x533411['addClass'](le,_0x4c4b31);});}['hide'](){const _0x353694=this['editor']['editing']['view'];_0x353694['change'](_0x3c54e5=>{for(const _0x4223b9 of _0x353694['document']['roots'])_0x3c54e5['removeClass'](le,_0x4223b9);});}}class w extends _0x3c80d2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x10f7f8=this['editor'],_0x16b022=_0x10f7f8['plugins']['get'](d),_0x1983d4=_0x10f7f8['plugins']['get'](ge);_0x10f7f8['ui']['componentFactory']['add']('exitToEditing',_0x9ff6f3=>{const _0x5a1721=new te(_0x9ff6f3);return _0x5a1721['set']({'label':m(_0x9ff6f3,'Back\x20to\x20editing'),'icon':_0x324ce9,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5a1721,'execute',()=>{_0x10f7f8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5a1721;}),_0x10f7f8['ui']['componentFactory']['add']('restoreRevision',_0x1c09c1=>{const _0x272b6b=new te(_0x1c09c1);return _0x272b6b['set']({'label':m(_0x1c09c1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x272b6b['bind']('isEnabled')['to'](_0x10f7f8['commands']['get']('restoreRevision')),this['listenTo'](_0x272b6b,'execute',()=>_0x10f7f8['execute']('restoreRevision')),_0x272b6b;}),_0x10f7f8['ui']['componentFactory']['add']('changesNavigation',_0xed25db=>{const _0x3d3ae7=new li(_0xed25db),_0x15900b=_0x10f7f8['commands']['get']('showPreviousChange'),_0x4e9bb7=_0x10f7f8['commands']['get']('showNextChange');return _0x3d3ae7['bind']('isBackwardNavigationEnabled')['to'](_0x15900b,'isEnabled'),_0x3d3ae7['bind']('isForwardNavigationEnabled')['to'](_0x4e9bb7,'isEnabled'),_0x3d3ae7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x16b022),this['listenTo'](_0x3d3ae7,'execute',(_0x143b3f,_0x25dd38)=>{_0x10f7f8['execute']('forward'===_0x25dd38?'showNextChange':'showPreviousChange');}),_0x3d3ae7;}),_0x1983d4['show'](),_0x16b022['on']('change:isReady',(_0x2725e0,_0x54cef8,_0x57c003)=>{_0x57c003?_0x1983d4['hide']():_0x1983d4['show']();});}}class pt extends _0xecce61{['_resizeObserver']=null;constructor(_0x5071bd,_0x35451c){super(_0x5071bd,_0x35451c);const _0x28fb42=this['bindTemplate'];this['set']({'label':m(_0x5071bd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5071bd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x28fb42['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 _0x3ac35c=this['fieldView']['element'];this['_tooltipString']=_0x3ac35c['scrollWidth']>_0x3ac35c['clientWidth']&&_0x3ac35c['value']||'';}}class oi extends ts{constructor(_0x450c47,_0x2d50f2,_0x161cf6){super(_0x450c47);const _0x5e2d6e=new _0x39d1e2();_0x5e2d6e['set']({'content':_0x2de24c,'viewBox':'0\x200\x2011\x2010'});const _0x48b621=['ck','ck-revision-history-sidebar__revision-author'];_0x161cf6&&_0x48b621['push']('ck-revision-history-sidebar__revision-author_creator');const _0x387889=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x450c47,_0x161cf6?'Revision\x20creator':'Revision\x20author')},'children':[_0x5e2d6e,_0x2d50f2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x48b621},'children':_0x387889});}}function ai(_0x1258d5,_0x8f1da1){const _0x380a39=_0x1258d5['bindTemplate'],_0x1b755f=_0x1258d5['locale'],_0x1f7ac8=_0x3690ba(_0x1b755f);_0x1f7ac8['panelPosition']='sw';const _0x55ead2=function(_0x51289e,_0x20e26e){const _0xad7c08=function(_0x2f250f,_0x4195c2){const _0x4b7e9a=_0x2f250f['locale'],_0x405622={'Compare\x20against\x20selected':m(_0x4b7e9a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4b7e9a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4b7e9a,'Restore\x20this\x20revision')};return _0x4195c2['map'](_0x45e8a2=>{const _0x488b7e=_0x405622[_0x45e8a2['name']];return _0x488b7e&&_0x488b7e!==_0x45e8a2['name']&&(_0x45e8a2['name']=_0x488b7e),_0x45e8a2;});}(_0x51289e,_0x20e26e),_0x5f44d4=new _0x751bfb();for(const _0x49bdd8 of _0xad7c08){const _0x4fd021={'type':'button','model':new to({'label':_0x49bdd8['name'],'class':_0x49bdd8['class'],'withText':!0x0,'role':'menuitem','_action':_0x49bdd8['action']})};_0x4fd021['model']['bind']('isEnabled')['to'](_0x51289e,'isActionsDropdownOpen',_0x2f12a1=>'function'!=typeof _0x49bdd8['isEnabled']||(!_0x2f12a1||_0x49bdd8['isEnabled'](_0x51289e))),_0x5f44d4['add'](_0x4fd021);}return _0x5f44d4;}(_0x1258d5,_0x8f1da1);return _0x1258d5['bind']('isActionsDropdownOpen')['to'](_0x1f7ac8,'isOpen'),_0x1f7ac8['buttonView']['set']({'label':m(_0x1b755f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3b66e4}),_0x1f7ac8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x380a39['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x380a39['to'](_0x35757d=>_0x35757d['stopPropagation']())}}),_0x1f7ac8['on']('execute',_0x3acc8d=>{_0x1258d5['isReady']&&'function'==typeof _0x3acc8d['source']['_action']&&_0x3acc8d['source']['_action'](_0x1258d5);}),_0x8d46c2(_0x1f7ac8,_0x55ead2,{'role':'menu'}),_0x1f7ac8['listenTo'](_0x1258d5,'change:isActionsDropdownOpen',(_0x24abc3,_0x26df04,_0x4b923e)=>{if(_0x4b923e)for(const _0x517a20 of _0x1f7ac8['listView']['items']){const _0x2068ee=_0x517a20['children']['first'],_0x4cfdda=_0x8f1da1['find'](_0x724efe=>_0x724efe['action']===_0x2068ee['_action'])['isVisible'];_0x517a20['isVisible']=void 0x0===_0x4cfdda||_0x4cfdda(_0x1258d5);}}),_0x1f7ac8;}class si extends/* #__PURE__ -- @preserve */
26
+ _0x3a7de8(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xcb2bdf,_0x51a8b4,_0x3b188c,_0x385268){super(_0xcb2bdf);const _0x4d89bf=this['bindTemplate'],_0x2f3421=function(_0x273e8f,_0xb3683d){const _0x44a18d=Array['from'](_0xb3683d['authors'])['filter'](_0x13d7c8=>_0x13d7c8!=_0xb3683d['creator']);return _0xb3683d['creator']&&_0x44a18d['unshift'](_0xb3683d['creator']),_0x44a18d['map'](_0x5885d3=>new oi(_0x273e8f,_0x5885d3,_0x5885d3==_0xb3683d['creator']));}(_0xcb2bdf,_0x51a8b4);this['id']=_0x51a8b4['id'],this['_revision']=_0x51a8b4,this['_requireRevisionName']=_0x385268,this['bind']('name','createdAt')['to'](_0x51a8b4),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x108323=>{return _0x24fe50=_0xcb2bdf['uiLanguage'],(_0xff1cd2=_0x108323)['toLocaleDateString'](_0x24fe50,{'month':'long','day':'numeric'})+',\x20'+_0xff1cd2['toLocaleTimeString'](_0x24fe50,{'hour':'numeric','minute':'numeric'});var _0x24fe50,_0xff1cd2;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xcb2bdf,_0x5c6c61),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x80ff29=>_0x80ff29||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2cc714,_0x5183b8)=>_0x2cc714&&_0x5183b8),this['revisionActionsView']=_0x3b188c&&_0x3b188c['length']?ai(this,_0x3b188c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4d89bf['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4d89bf['if']('isEnabled','ck-disabled',_0x400bad=>!_0x400bad),_0x4d89bf['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4d89bf['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4d89bf['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':_0x4d89bf['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':_0x2f3421}]},this['revisionActionsView']],'on':{'click':_0x4d89bf['to'](_0x3bc651=>{_0x3bc651['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xa3d158=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xa3d158,'change',()=>{this['_requireRevisionName']&&!_0xa3d158['value']||this['fire']('setName',{'id':this['id'],'name':_0xa3d158['value']}),_0xa3d158['value']||(_0xa3d158['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x297b14,_0x1d7124){const _0x71ef26=_0x3e1eeb['fromJSDate'](_0x297b14)['setLocale'](_0x1d7124),_0x39f5de=_0x3e1eeb['local'](),_0x338e84=_0x39f5de['minus']({'days':0x1})['startOf']('day');let _0xc6c729,_0x5c67d3;return _0x71ef26['hasSame'](_0x39f5de,'day')?(_0xc6c729=_0x71ef26['startOf']('day')['toJSDate'](),_0x5c67d3=_0x71ef26['toRelativeCalendar']()):_0x71ef26['hasSame'](_0x338e84,'day')?(_0xc6c729=_0x338e84['toJSDate'](),_0x5c67d3=_0x71ef26['toRelativeCalendar']()):_0x71ef26['hasSame'](_0x39f5de,'week')?(_0xc6c729=_0x71ef26['startOf']('week')['toJSDate'](),_0x5c67d3=_0x71ef26['weekdayLong']||''):_0x71ef26['hasSame'](_0x39f5de,'year')?(_0xc6c729=_0x71ef26['startOf']('month')['toJSDate'](),_0x5c67d3=_0x71ef26['monthLong']||''):(_0xc6c729=_0x71ef26['startOf']('year')['toJSDate'](),_0x5c67d3=String(_0x71ef26['year'])),{'startDate':_0xc6c729,'localizedPeriodName':_0x5c67d3};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x55dccc,_0x2169dd,_0x253ead,_0x22e8f8){super(_0x55dccc);const _0x1aed46=ti(_0x2169dd,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2169dd,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x253ead,this['_requireRevisionName']=_0x22e8f8,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':_0x1aed46}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x518613){const _0x816831=new si(this['locale'],_0x518613,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x816831);}['removeRevision'](_0x3740df){const _0x4ab439=this['revisionViews']['find'](_0xdd121b=>_0xdd121b['id']===_0x3740df['id']);this['revisionViews']['remove'](_0x4ab439);}}class cs extends ts{constructor(_0x4a55a6){super(_0x4a55a6);const _0x35fefd=new _0x39d1e2();_0x35fefd['content']=_0x3144c0,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x35fefd,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x4a55a6,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x316e96,_0x8f6bbb,_0x14db0f,_0x13eb6b){super(_0x316e96);const _0x42bd58=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x8f6bbb,this['_revisionActions']=_0x14db0f,this['_requireRevisionName']=_0x13eb6b,this['on']('select',(_0x4a3cd9,_0xcfc955)=>{this['fire']('revisionSelected',_0xcfc955);}),this['on']('setName',(_0x31e064,_0x49b65f)=>{this['fire']('revisionSetName',_0x49b65f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x316e96),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x42bd58['if']('isEnabled','ck-disabled',_0x44c9b4=>!_0x44c9b4)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x29fdfc of this['_revisions'])this['_addRevision'](_0x29fdfc);this['_revisions']['on']('add',(_0x120375,_0x38dbe6)=>{this['_addRevision'](_0x38dbe6);}),this['_revisions']['on']('remove',(_0x5aace4,_0xbbaf92)=>{this['_removeRevision'](_0xbbaf92);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2ae733=>_0x2ae733['revisionViews']['map'](_0x21ad60=>_0x21ad60))['flat']();}['selectRevision'](_0x566844){for(const _0x55f61e of this['revisionViews'])_0x566844&&_0x566844['id']===_0x55f61e['id']?_0x55f61e['select']():_0x55f61e['deselect']();}['highlightRevisions'](_0x457804){for(const _0x17d656 of this['revisionViews'])_0x457804['some'](({id:_0x3b3da4})=>_0x3b3da4===_0x17d656['id'])?_0x17d656['highlight']():_0x17d656['unhighlight']();}['_addRevision'](_0x421959){const _0x2c5812=ti(_0x421959['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5882a3=this['timePeriodViews']['get'](0x0);_0x5882a3&&_0x5882a3['startDate']['getTime']()===_0x2c5812['getTime']()||(_0x5882a3=new ei(this['locale'],_0x2c5812,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5882a3)),_0x5882a3['addRevision'](_0x421959);}['_removeRevision'](_0x3a7299){const _0x2617ab=ti(_0x3a7299['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2617ab)['removeRevision'](_0x3a7299);}['_getTimePeriodViewByStartDate'](_0x32e388){return this['timePeriodViews']['find'](_0x54460b=>_0x54460b['startDate']['getTime']()===_0x32e388['getTime']());}}class g extends _0x3c80d2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x3998d1){super(_0x3998d1),this['_revisionViewer']=_0x3998d1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x33e181=this['_revisionsRepository']['_revisions'],_0x10bda2=this['_createRevisionActions'](),_0x33bfa8=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x33e181,_0x10bda2,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',(_0x104bba,_0x175369)=>{_0x175369['revisionViews']['on']('add',(_0x44e497,_0x30ab2d)=>{_0x30ab2d['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)),_0x33bfa8['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x331922=this['_revisionsRepository']['getRevision'](0x0);if(_0x331922){const _0x4e8dce=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x331922['id']);this['_revisionViewer']['compare'](_0x331922,_0x4e8dce);}}['_handleRevisionSelected'](_0xf0124c,_0x21fa82){const _0x2f9fee=this['_revisionsRepository']['getRevision'](_0x21fa82['id']),_0x1d574d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2f9fee['id']);this['_revisionViewer']['compare'](_0x2f9fee,_0x1d574d);}['_handleRevisionSetName'](_0x4cb018,_0x16781a){this['_revisionsRepository']['getRevision'](_0x16781a['id'])['setName'](_0x16781a['name']);}['_handleDiffChange'](_0x431eb1,_0x4cc6cf,_0x264ea3){const _0x135712=this['_revisionsRepository']['getRevisionsInDiff'](_0x264ea3);_0x135712['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x135712),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x135712[0x0]));}['_createRevisionActions'](){const _0x115fbc=this['editor'],_0x308d10=g['availableRevisionActions'],_0x390eae=_0x115fbc['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x390eae['length'])return _0x390eae['map'](_0x33e286=>{const _0x3d009f='string'==typeof _0x33e286?Object['assign']({},_0x308d10[_0x33e286]):_0x33e286;return _0x3d009f['action']=_0x3d009f['action']['bind'](this,_0x115fbc),_0x3d009f['isVisible']&&(_0x3d009f['isVisible']=_0x3d009f['isVisible']['bind'](this,_0x115fbc)),_0x3d009f;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x20cae0},_0x27bd8c)=>{const _0x283043=_0x20cae0['get'](d),_0x4737b7=_0x283043['repository'];let _0xc02d14=_0x283043['diff']['newRevisionId'],_0x56f095=_0x27bd8c['id'];_0x4737b7['getIndex'](_0xc02d14)>_0x4737b7['getIndex'](_0x56f095)&&([_0xc02d14,_0x56f095]=[_0x56f095,_0xc02d14]),_0x283043['compare'](_0xc02d14,_0x56f095);},'isVisible':({plugins:_0x1699ff},_0x372d96)=>{const _0xdfaf9f=_0x1699ff['get'](d);return!(_0xdfaf9f['repository']['getRevisionsInDiff'](_0xdfaf9f['diff'])['length']>0x2)&&!_0x372d96['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x447992,{id:_0x811e32})=>{_0x447992['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x811e32);},'isVisible':({plugins:_0x51806a},_0x30b3d5)=>!!_0x51806a['get'](d)['repository']['getLaterVisibleRevision'](_0x30b3d5['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x291b47},{id:_0x58c015,revisionNameView:_0x1b8a30})=>{const _0x4ea7b1=_0x291b47['get'](d),_0x48c539=_0x4ea7b1['repository']['getEarlierVisibleRevision'](_0x58c015);_0x4ea7b1['compare'](_0x58c015,_0x48c539),_0x1b8a30['focus'](),_0x1b8a30['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x23da17,_0x3788fc){super(_0x23da17),this['_view']=_0x3788fc,this['_toolbarConfig']=ot(_0x23da17['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x48b613){const _0x4efcc7=this['editor'],_0x5cddd3=this['view'],_0x2fd442=_0x4efcc7['editing']['view'],_0x54ce04=_0x5cddd3['editable'],_0x4ce088=_0x2fd442['document']['getRoot']();_0x54ce04['name']=_0x4ce088['rootName'],_0x5cddd3['render']();const _0x3685b=_0x54ce04['element'];this['setEditableElement'](_0x54ce04['name'],_0x3685b),_0x5cddd3['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2fd442['attachDomRoot'](_0x3685b),this['_elementReplacer']['replace'](_0x48b613,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4a8990=this['view'],_0xa4fe1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xa4fe1['detachDomRoot'](_0x4a8990['editable']['name']),_0x4a8990['destroy']();}['_initToolbar'](){const _0x3136e1=this['view'];_0x3136e1['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3136e1['stickyPanel']['limiterElement']=_0x3136e1['element'],_0x3136e1['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1e0366})=>_0x1e0366),_0x3136e1['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3136e1['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x50091e,_0x25918e,_0x4f620c={}){super(_0x50091e),this['stickyPanel']=new lt(_0x50091e),this['toolbar']=new nt(_0x50091e,{'shouldGroupWhenFull':_0x4f620c['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x50091e,_0x25918e);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xb98dff,_0x14c3fc){super(_0x14c3fc),this['sourceElement']=_0xb98dff,this['model']['document']['createRoot']();const _0x1cec20=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1cec20);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4f886d,_0x3655a7){const _0x3502ad=new this(_0x4f886d,_0x3655a7);return await _0x3502ad['initPlugins'](),await _0x3502ad['ui']['init'](_0x4f886d),await _0x3502ad['data']['init'](_0x3502ad['config']['get']('initialData')||''),_0x3502ad['fire']('ready'),_0x3502ad;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x26f450{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a3492){function _0x4871c6(_0x579192){return _0x579192['map'](_0xdffe97=>String['fromCharCode'](_0xdffe97))['join']('');}super(_0x4a3492),this['result']='end',_0x4a3492[_0x4871c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4871c6([0x76,0x69,0x65,0x77])][_0x4871c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4871c6([0x61,0x75,0x74,0x6f]),_0x4a3492[_0x4871c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4871c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4871c6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4871c6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4871c6([0x6f,0x6b])});}}class k extends _0x26f450{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2f57ff){if(super(_0x2f57ff),!this['editor']['config']['get']('revisionHistory'))throw new _0x141381('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2205f8=>this['_showRevisionViewer']({..._0x2205f8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x6bfd2f=>this['_closeRevisionViewer'](_0x6bfd2f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x37bd9e=>this['_restoreRevision'](_0x37bd9e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x10bff2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x10bff2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3e63e4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3e63e4);}['getRevision'](_0x77f5a2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x77f5a2);}['getRevisions'](_0x52251f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x52251f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x432329=this['editor'],_0x34e9c0=_0x21b855(_0x432329,p),_0x1a13dd=_0x432329['plugins']['get']('RevisionTracker'),_0x4ad4ac=_0x432329['plugins']['get']('Users')['users'];return _0x34e9c0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x34e9c0['lazyRoots'],(_0x34e9c0['plugins']['push'](Rt,d,w,class extends _0x26f450{static get['requires'](){return[d,'Users'];}['init'](){const _0x799cad=this['editor']['plugins']['get']('Users');for(const _0x2a45cc of _0x4ad4ac)_0x2a45cc['isAnonymous']||_0x799cad['getUser'](_0x2a45cc['id'])||_0x799cad['addUser'](_0x2a45cc);const _0x2e30ce=_0x1a13dd['repository']['getRevisions']();let _0x2b59b0=null;const _0x19e05d=this['editor']['plugins']['get']('RevisionViewer');_0x19e05d['adapter']=_0x1a13dd['adapter'],_0x19e05d['bind']('isEnabled')['to'](_0x1a13dd),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x432329,'isReadOnly',_0x14bb38=>!_0x14bb38);for(const _0x1a6dd1 of _0x2e30ce){const _0x3905f2=null===_0x1a6dd1['creator'];if(_0x3905f2&&_0x1a6dd1['toVersion']===_0x1a6dd1['fromVersion'])continue;const _0x160b3b=_0x1a6dd1['toJSON']();_0x19e05d['addRevisionData'](_0x160b3b,(_0x492e5a,_0xbc3a4f,_0x236e76)=>{if(_0x3905f2){if(_0x2b59b0)_0x2b59b0['_update'](_0x492e5a,_0xbc3a4f);else{if(!_0xbc3a4f){const _0x24dd8b=_0x236e76['toJSON']();_0x24dd8b['id']=_0x47cd61(),_0x1a13dd['saveRevision'](_0x24dd8b,_0x236e76['toVersion'])['then'](_0x3f6cf1=>{_0x2b59b0=_0x3f6cf1;});}}}else _0x1a6dd1['_update'](_0x492e5a,_0xbc3a4f);});}}},g),_0x34e9c0);}['_enhanceShowRevisionViewerCallback'](){const _0x2a1800=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x51a89a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x517dfd=this['editor']['plugins']['get']('Autosave');await _0x517dfd['save']();}else await _0x51a89a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xf36f7f=this['editor']['plugins']['get']('Dialog');_0xf36f7f['isOpen']&&_0xf36f7f['hide']();}const _0x6d023c=this['_getRevisionViewerEditorConfig']();return _0x2a1800(_0x6d023c)['then'](_0x25cf73=>{return(this['_viewerEditor']=_0x25cf73,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x25cf73;})['catch'](_0x1bdbe3=>(console['error'](_0x1bdbe3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x227752=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x227752(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4fa822=this['editor']['plugins']['get']('Annotations');_0x4fa822['refreshVisibility'](),_0x4fa822['refreshPositioning']();}})));}['_showRevisionViewer'](_0x163736){const _0x27e545=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x481286=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x243f31=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x243f31,_0x163736)['then'](_0x53a4b1=>(_0x481286['style']['display']='block',_0x27e545['style']['display']='none',_0x53a4b1));}['_closeRevisionViewer'](_0x2f9494){const _0x3c6f70=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3c6f70['style']['display']='',_0x2f9494['destroy']();}async['_restoreRevision'](_0x4fd35f){const _0x1dd1e6=this['editor'],_0x582289=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5790eb=_0x1dd1e6['plugins']['get']('RevisionTracker'),_0x134974=_0x582289['repository']['getRevision'](_0x4fd35f);let _0x4d76c8,_0x58a70d,_0x31c3b3;try{_0x4d76c8=await _0x582289['getRevisionData'](_0x134974),_0x58a70d=await _0x582289['getRevisionRootsAttributes'](_0x134974);}catch(_0x3a9ae8){return void console['error'](_0x3a9ae8);}_0x1dd1e6['model']['change'](_0x124fbd=>{for(const _0x5698a0 of Array['from'](_0x1dd1e6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x124fbd['removeMarker'](_0x5698a0);}),_0x582289['isReady']=!0x1,_0x1dd1e6['model']['enqueueChange'](_0x3c1a6f=>{_0x3c1a6f['setSelection'](null),_0x3c1a6f['removeSelectionAttribute'](_0x1dd1e6['model']['document']['selection']['getAttributeKeys']());const _0x5a364a=Object['keys'](_0x4d76c8);for(const _0x2d9ac8 of _0x1dd1e6['model']['document']['roots'])'$graveyard'!=_0x2d9ac8['rootName']&&_0x2d9ac8['isAttached']()&&!_0x5a364a['includes'](_0x2d9ac8['rootName'])&&_0x3c1a6f['detachRoot'](_0x2d9ac8);for(const _0x280aa6 of _0x5a364a){let _0x47a448=_0x1dd1e6['model']['document']['getRoot'](_0x280aa6);_0x47a448&&_0x47a448['isAttached']()||(_0x47a448=_0x3c1a6f['addRoot'](_0x280aa6));const _0x61f891=_0x58a70d[_0x280aa6],_0x41713c=Object['keys'](_0x61f891),_0xdc4ee7=_0x4d76c8[_0x280aa6];for(const _0xe48e5b of _0x47a448['getAttributeKeys']())_0x41713c['includes'](_0xe48e5b)||_0x3c1a6f['removeAttribute'](_0xe48e5b,_0x47a448);for(const _0x403d55 of _0x41713c)_0x3c1a6f['setAttribute'](_0x403d55,_0x58a70d[_0x280aa6][_0x403d55],_0x47a448);_0x3c1a6f['remove'](_0x3c1a6f['createRangeIn'](_0x47a448)),_0x3c1a6f['insert'](_0x1dd1e6['data']['parse'](_0xdc4ee7,_0x47a448),_0x47a448,0x0);}});const _0x52c2e4=m(_0x1dd1e6['locale'],'Restored');if(_0x134974['name'])_0x31c3b3=-0x1==_0x134974['name']['indexOf'](_0x52c2e4)?_0x52c2e4+':\x20'+_0x134974['name']:_0x134974['name'];else _0x31c3b3=_0x52c2e4+':\x20'+(_0x134974['createdAt']['toLocaleDateString'](_0x1dd1e6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x134974['createdAt']['toLocaleTimeString'](_0x1dd1e6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5790eb['saveRevision']({'name':_0x31c3b3}),_0x582289['isReady']=!0x0,_0x1dd1e6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x2cdefb){super(_0x2cdefb),this['_revisionViewer']=_0x2cdefb['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x370ed6=this['_revisionsRepository']['_revisions'],_0x1273c0=this['_createRevisionActions'](),_0x31e93c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x370ed6,_0x1273c0,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',(_0x4b9011,_0x3ddb88)=>{_0x3ddb88['revisionViews']['on']('add',(_0x37d7fe,_0x32876f)=>{_0x32876f['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)),_0x31e93c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x494df0=this['_revisionsRepository']['getRevision'](0x0);if(_0x494df0){const _0xed767b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x494df0['id']);this['_revisionViewer']['compare'](_0x494df0,_0xed767b);}}['_handleRevisionSelected'](_0x42950a,_0x470b38){const _0x3e95a9=this['_revisionsRepository']['getRevision'](_0x470b38['id']),_0x373b32=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3e95a9['id']);this['_revisionViewer']['compare'](_0x3e95a9,_0x373b32);}['_handleRevisionSetName'](_0x4c6237,_0x5c6497){this['_revisionsRepository']['getRevision'](_0x5c6497['id'])['setName'](_0x5c6497['name']);}['_handleDiffChange'](_0x567bb4,_0x18b204,_0x1f2c32){const _0x428e22=this['_revisionsRepository']['getRevisionsInDiff'](_0x1f2c32);_0x428e22['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x428e22),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x428e22[0x0]));}['_createRevisionActions'](){const _0x461897=this['editor'],_0x58fa52=g['availableRevisionActions'],_0x2e05ee=_0x461897['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2e05ee['length'])return _0x2e05ee['map'](_0x5e032d=>{const _0x2b4e09='string'==typeof _0x5e032d?Object['assign']({},_0x58fa52[_0x5e032d]):_0x5e032d;return _0x2b4e09['action']=_0x2b4e09['action']['bind'](this,_0x461897),_0x2b4e09['isVisible']&&(_0x2b4e09['isVisible']=_0x2b4e09['isVisible']['bind'](this,_0x461897)),_0x2b4e09;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1e620c},_0x172d0e)=>{const _0x3e8507=_0x1e620c['get'](d),_0x26815d=_0x3e8507['repository'];let _0x60f0cf=_0x3e8507['diff']['newRevisionId'],_0x3ad93a=_0x172d0e['id'];_0x26815d['getIndex'](_0x60f0cf)>_0x26815d['getIndex'](_0x3ad93a)&&([_0x60f0cf,_0x3ad93a]=[_0x3ad93a,_0x60f0cf]),_0x3e8507['compare'](_0x60f0cf,_0x3ad93a);},'isVisible':({plugins:_0x28d2ee},_0x2cac31)=>{const _0x108a42=_0x28d2ee['get'](d);return!(_0x108a42['repository']['getRevisionsInDiff'](_0x108a42['diff'])['length']>0x2)&&!_0x2cac31['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xccfced,{id:_0x2f9791})=>{_0xccfced['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2f9791);},'isVisible':({plugins:_0x25a918},_0x145587)=>!!_0x25a918['get'](d)['repository']['getLaterVisibleRevision'](_0x145587['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3a1e2f},{id:_0x1f25e,revisionNameView:_0x3abfd6})=>{const _0x1b9eeb=_0x3a1e2f['get'](d),_0x1c7692=_0x1b9eeb['repository']['getEarlierVisibleRevision'](_0x1f25e);_0x1b9eeb['compare'](_0x1f25e,_0x1c7692),_0x3abfd6['focus'](),_0x3abfd6['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xb62984,_0x2a922d){super(_0xb62984),this['_view']=_0x2a922d,this['_toolbarConfig']=ot(_0xb62984['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x9eb69){const _0xffa539=this['editor'],_0x445b48=this['view'],_0x43aa43=_0xffa539['editing']['view'],_0x4077aa=_0x445b48['editable'],_0x250a8e=_0x43aa43['document']['getRoot']();_0x4077aa['name']=_0x250a8e['rootName'],_0x445b48['render']();const _0xdb3bb0=_0x4077aa['element'];this['setEditableElement'](_0x4077aa['name'],_0xdb3bb0),_0x445b48['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x43aa43['attachDomRoot'](_0xdb3bb0),this['_elementReplacer']['replace'](_0x9eb69,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x45d2ff=this['view'],_0x49ca54=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x49ca54['detachDomRoot'](_0x45d2ff['editable']['name']),_0x45d2ff['destroy']();}['_initToolbar'](){const _0x21de0e=this['view'];_0x21de0e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x21de0e['stickyPanel']['limiterElement']=_0x21de0e['element'],_0x21de0e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5640f1})=>_0x5640f1),_0x21de0e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x21de0e['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2e901a,_0x159d98,_0x533053={}){super(_0x2e901a),this['stickyPanel']=new lt(_0x2e901a),this['toolbar']=new nt(_0x2e901a,{'shouldGroupWhenFull':_0x533053['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2e901a,_0x159d98);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x19050f,_0x2365d5){super(_0x2365d5),this['sourceElement']=_0x19050f,this['model']['document']['createRoot']();const _0x13a0ee=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x13a0ee);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x418f20,_0x5afca1){const _0x7995d3=new this(_0x418f20,_0x5afca1);return await _0x7995d3['initPlugins'](),await _0x7995d3['ui']['init'](_0x418f20),await _0x7995d3['data']['init'](_0x7995d3['config']['get']('initialData')||''),_0x7995d3['fire']('ready'),_0x7995d3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x3c80d2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x319e39){function _0x5be078(_0x4260bf){return _0x4260bf['map'](_0x29eba9=>String['fromCharCode'](_0x29eba9))['join']('');}super(_0x319e39),this['result']='end',_0x319e39[_0x5be078([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5be078([0x76,0x69,0x65,0x77])][_0x5be078([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5be078([0x61,0x75,0x74,0x6f]),_0x319e39[_0x5be078([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5be078([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5be078([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5be078([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5be078([0x6f,0x6b])});}}class k extends _0x3c80d2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4312da){if(super(_0x4312da),!this['editor']['config']['get']('revisionHistory'))throw new _0x1d3755('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x6fb5e7=>this['_showRevisionViewer']({..._0x6fb5e7,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x39d049=>this['_closeRevisionViewer'](_0x39d049)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2d8a45=>this['_restoreRevision'](_0x2d8a45)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4e23b0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4e23b0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xfc42b1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xfc42b1);}['getRevision'](_0x2ee915){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2ee915);}['getRevisions'](_0x44a2ea){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x44a2ea||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xdec514=this['editor'],_0x49bdff=_0x34b419(_0xdec514,p),_0x1383cd=_0xdec514['plugins']['get']('RevisionTracker'),_0x2488b4=_0xdec514['plugins']['get']('Users')['users'];return _0x49bdff['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x49bdff['lazyRoots'],(_0x49bdff['plugins']['push'](bt,d,w,class extends _0x3c80d2{static get['requires'](){return[d,'Users'];}['init'](){const _0x55e75e=this['editor']['plugins']['get']('Users');for(const _0x2c032b of _0x2488b4)_0x2c032b['isAnonymous']||_0x55e75e['getUser'](_0x2c032b['id'])||_0x55e75e['addUser'](_0x2c032b);const _0x473715=_0x1383cd['repository']['getRevisions']();let _0x3a4a53=null;const _0xef89ac=this['editor']['plugins']['get']('RevisionViewer');_0xef89ac['adapter']=_0x1383cd['adapter'],_0xef89ac['bind']('isEnabled')['to'](_0x1383cd),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xdec514,'isReadOnly',_0x1f87ec=>!_0x1f87ec);for(const _0xdb99e of _0x473715){const _0x2ce1ce=null===_0xdb99e['creator'];if(_0x2ce1ce&&_0xdb99e['toVersion']===_0xdb99e['fromVersion'])continue;const _0xdba29f=_0xdb99e['toJSON']();_0xef89ac['addRevisionData'](_0xdba29f,(_0x596f79,_0x4ffef8,_0x52be86)=>{if(_0x2ce1ce){if(_0x3a4a53)_0x3a4a53['_update'](_0x596f79,_0x4ffef8);else{if(!_0x4ffef8){const _0x39fe9d=_0x52be86['toJSON']();_0x39fe9d['id']=_0xe821f1(),_0x1383cd['saveRevision'](_0x39fe9d,_0x52be86['toVersion'])['then'](_0x2f35e0=>{_0x3a4a53=_0x2f35e0;});}}}else _0xdb99e['_update'](_0x596f79,_0x4ffef8);});}}},g),_0x49bdff);}['_enhanceShowRevisionViewerCallback'](){const _0x435b26=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x30f359=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x335166=this['editor']['plugins']['get']('Autosave');await _0x335166['save']();}else await _0x30f359['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2856ca=this['editor']['plugins']['get']('Dialog');_0x2856ca['isOpen']&&_0x2856ca['hide']();}const _0x10b052=this['_getRevisionViewerEditorConfig']();return _0x435b26(_0x10b052)['then'](_0xf3f8c=>{return(this['_viewerEditor']=_0xf3f8c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xf3f8c;})['catch'](_0x353426=>(console['error'](_0x353426),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x25b7d6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x25b7d6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1f77ad=this['editor']['plugins']['get']('Annotations');_0x1f77ad['refreshVisibility'](),_0x1f77ad['refreshPositioning']();}})));}['_showRevisionViewer'](_0x597028){const _0x4ad591=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x248282=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2de300=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2de300,_0x597028)['then'](_0x58df35=>(_0x248282['style']['display']='block',_0x4ad591['style']['display']='none',_0x58df35));}['_closeRevisionViewer'](_0x412409){const _0x3aec0c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3aec0c['style']['display']='',_0x412409['destroy']();}async['_restoreRevision'](_0x4ba499){const _0x32017f=this['editor'],_0x2daea7=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x16e26b=_0x32017f['plugins']['get']('RevisionTracker'),_0x1b8d8d=_0x2daea7['repository']['getRevision'](_0x4ba499);let _0x27d99e,_0xeb00e6,_0x38297f;try{_0x27d99e=await _0x2daea7['getRevisionData'](_0x1b8d8d),_0xeb00e6=await _0x2daea7['getRevisionRootsAttributes'](_0x1b8d8d);}catch(_0x1d80d7){return void console['error'](_0x1d80d7);}_0x32017f['model']['change'](_0xe6ec64=>{for(const _0x2264fb of Array['from'](_0x32017f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xe6ec64['removeMarker'](_0x2264fb);}),_0x2daea7['isReady']=!0x1,_0x32017f['model']['enqueueChange'](_0xf8a265=>{_0xf8a265['setSelection'](null),_0xf8a265['removeSelectionAttribute'](_0x32017f['model']['document']['selection']['getAttributeKeys']());const _0x420fbe=Object['keys'](_0x27d99e);for(const _0x5da66a of _0x32017f['model']['document']['roots'])'$graveyard'!=_0x5da66a['rootName']&&_0x5da66a['isAttached']()&&!_0x420fbe['includes'](_0x5da66a['rootName'])&&_0xf8a265['detachRoot'](_0x5da66a);for(const _0x381492 of _0x420fbe){let _0x3e4e34=_0x32017f['model']['document']['getRoot'](_0x381492);_0x3e4e34&&_0x3e4e34['isAttached']()||(_0x3e4e34=_0xf8a265['addRoot'](_0x381492));const _0x2d7bbb=_0xeb00e6[_0x381492],_0x2e212e=Object['keys'](_0x2d7bbb),_0x1a004c=_0x27d99e[_0x381492];for(const _0x2342be of _0x3e4e34['getAttributeKeys']())_0x2e212e['includes'](_0x2342be)||_0xf8a265['removeAttribute'](_0x2342be,_0x3e4e34);for(const _0x3c248e of _0x2e212e)_0xf8a265['setAttribute'](_0x3c248e,_0xeb00e6[_0x381492][_0x3c248e],_0x3e4e34);_0xf8a265['remove'](_0xf8a265['createRangeIn'](_0x3e4e34)),_0xf8a265['insert'](_0x32017f['data']['parse'](_0x1a004c,_0x3e4e34),_0x3e4e34,0x0);}});const _0x5b4cec=m(_0x32017f['locale'],'Restored');if(_0x1b8d8d['name'])_0x38297f=-0x1==_0x1b8d8d['name']['indexOf'](_0x5b4cec)?_0x5b4cec+':\x20'+_0x1b8d8d['name']:_0x1b8d8d['name'];else _0x38297f=_0x5b4cec+':\x20'+(_0x1b8d8d['createdAt']['toLocaleDateString'](_0x32017f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1b8d8d['createdAt']['toLocaleTimeString'](_0x32017f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x16e26b['saveRevision']({'name':_0x38297f}),_0x2daea7['isReady']=!0x0,_0x32017f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};