@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250329.0 → 0.0.0-nightly-20250331.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 _0x482aa6,uid as _0x56f194,Collection as _0x3c755c,logWarning as _0x1c05ab,FocusTracker as _0x1bca59,KeystrokeHandler as _0x34f2e4,scrollViewportToShowTarget as _0x3c4a3a,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x50b2f4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1a7cd1,set as _0x25a6e6,unset as _0x4258d2,isEqual as _0x1cf4e2}from'es-toolkit/compat';import{Plugin as _0x3a83bf,PendingActions as _0xd49075,Command as _0x4887eb,ElementApiMixin as _0x3e370e,Editor as _0xca871b}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4fe82c,getMarkerDomElement as _0x1a8ea3,ConfirmMixin as ti,sanitizeEditorConfig as _0x319fea}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x575821,ViewAttributeElement as _0x3fed71,ViewEmptyElement as _0x5eaeb8,ViewRawElement as _0xb2d509,ViewUIElement as _0x51de0d,ViewDocumentFragment as _0x2d689c,ViewText as _0x57595a,ViewElement as _0x19acf2,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x16f088,IconChevronUp as _0x1f62e6,IconChevronDown as _0x425d1f,IconUndo as _0x979595,IconUser as _0xf9cca,IconThreeVerticalDots as _0xbed950}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x573f6c,submitHandler as _0x2425f0,LabeledFieldView as _0x263937,createLabeledInputText as _0x399d5e,createDropdown as _0x72e1f8,ListView as _0x456cd6,ListItemView as _0x3b4857,ButtonView as te,MenuBarMenuView as _0x2bb94e,MenuBarMenuListView as _0x3cc535,MenuBarMenuListItemView as _0x4b7eb2,MenuBarMenuListItemButtonView as _0x36566e,ContextualBalloon as _0x487f43,ToolbarSeparatorView as _0x48d5b0,IconView as _0x12c313,addListToDropdown as _0x4e2d08,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x479a17}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x482aa6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x37d0f9){super(),this['id']=_0x37d0f9['id']||_0x56f194(),this['creator']=_0x37d0f9['creator']||null,this['authors']=_0x37d0f9['authors']||[],this['diffData']=_0x37d0f9['diffData']||null,this['toVersion']=_0x37d0f9['toVersion']||0x0,this['fromVersion']=_0x37d0f9['fromVersion']||0x0,this['set']('name',_0x37d0f9['name']||''),this['set']('createdAt',_0x37d0f9['createdAt']||new Date()),this['set']('attributes',_0x37d0f9['attributes']||{});}['setName'](_0x5e0c41){this['_update']({'name':_0x5e0c41});}['setAttribute'](_0x4ef9a5,_0x107ce6){const _0x6a3897=_0x1a7cd1(this['attributes']);_0x25a6e6(_0x6a3897,_0x4ef9a5,_0x107ce6),this['_update']({'attributes':_0x6a3897});}['removeAttribute'](_0x2161e2){const _0x128a98=_0x1a7cd1(this['attributes']);_0x4258d2(_0x128a98,_0x2161e2),this['_update']({'attributes':_0x128a98});}['_update'](_0x332e0a,_0x75a48c=!0x1){let _0x16b90b=!0x1;const _0x21f4af={'id':this['id']},_0x1d6b1f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2ad911 of _0x1d6b1f){const _0x96dd24=_0x332e0a[_0x2ad911];void 0x0!==_0x96dd24&&_0x96dd24!==this[_0x2ad911]&&(this[_0x2ad911]=_0x96dd24,_0x21f4af[_0x2ad911]=_0x96dd24,_0x16b90b=!0x0);}_0x16b90b&&(_0x21f4af['authors']&&(_0x21f4af['authorsIds']=_0x21f4af['authors']['map'](_0x5e004f=>_0x5e004f['id']),delete _0x21f4af['authors']),this['fire']('_update',_0x21f4af,_0x75a48c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x163a2a=>_0x163a2a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x3a83bf{['_revisions'];static get['requires'](){return[_0x4fe82c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xf74609){super(_0xf74609),this['_revisions']=new _0x3c755c();}['afterInit'](){!async function(_0x2048d8){const _0x1ea66c=_0x37cc7d([0x42,0x49,0x4b,0x4e,0x74,0x4a,0x6b,0x6d,0x59,0x69,0x50,0x76,0x55,0x57,0x47,0x34,0x70,0x32,0x77,0x37,0x78,0x54,0x72,0x44,0x6a,0x6e,0x4d,0x6c,0x7a,0x6f,0x43,0x30,0x73,0x79,0x53,0x46,0x63,0x39,0x45,0x67,0x71,0x4f,0x65,0x62,0x64,0x52,0x56,0x36,0x48,0x41,0x51,0x75,0x4c,0x33,0x35,0x38,0x61,0x31,0x68,0x66,0x5a,0x58]),_0x3d1194=0xeb829,_0xe6925f=0x10652408,_0x462beb=0x10624788^_0xe6925f,_0x17ffdf=window[_0x37cc7d([0x44,0x61,0x74,0x65])][_0x37cc7d([0x6e,0x6f,0x77])](),_0x43a20e=_0x2048d8[_0x37cc7d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x689dc3=new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3edbf2=>{_0x43a20e[_0x37cc7d([0x6f,0x6e,0x63,0x65])](_0x37cc7d([0x72,0x65,0x61,0x64,0x79]),_0x3edbf2);}),_0x508fff={[_0x37cc7d([0x6b,0x74,0x79])]:_0x37cc7d([0x45,0x43]),[_0x37cc7d([0x75,0x73,0x65])]:_0x37cc7d([0x73,0x69,0x67]),[_0x37cc7d([0x63,0x72,0x76])]:_0x37cc7d([0x50,0x2d,0x32,0x35,0x36]),[_0x37cc7d([0x78])]:_0x37cc7d([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]),[_0x37cc7d([0x79])]:_0x37cc7d([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]),[_0x37cc7d([0x61,0x6c,0x67])]:_0x37cc7d([0x45,0x53,0x32,0x35,0x36])},_0x11d800=_0x43a20e[_0x37cc7d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37cc7d([0x67,0x65,0x74])](_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x419480(){let _0x31a800,_0xcf6018=null,_0x1d701e=null;try{if(_0x11d800==_0x37cc7d([0x47,0x50,0x4c]))return _0x37cc7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31a800=_0x57bea6(),!_0x31a800)return _0x37cc7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31a800[_0x37cc7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d701e=_0x11f38a(_0x31a800[_0x37cc7d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31a800[_0x37cc7d([0x6a,0x74,0x69])])),await _0x1757d6()?_0x27497b()?_0x5f8cd3()?_0x37cc7d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5dc7d7()?(_0x31a800[_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37cc7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xcf6018=_0x49eff7(_0x37cc7d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x31a800[_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37cc7d([0x74,0x72,0x69,0x61,0x6c])&&(_0xcf6018=_0x49eff7(_0x37cc7d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1abdff()):_0x37cc7d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37cc7d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37cc7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1975e3){return _0x37cc7d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f8cd3(){const _0x9bdc2=[_0x37cc7d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37cc7d([0x74,0x72,0x69,0x61,0x6c])][_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31a800[_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17ffdf/0x3e8:0xe10*_0x462beb;return _0x31a800[_0x37cc7d([0x65,0x78,0x70])]<_0x9bdc2;}function _0x27497b(){const _0x22ff43=_0x31a800[_0x37cc7d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x22ff43)return!0x1;if(_0x22ff43[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37cc7d([0x2a])))return!0x0;if(_0x22ff43[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37cc7d([0x52,0x48])))return!0x0;if(_0x22ff43[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37cc7d([0x52,0x52,0x48]))){if(_0x1b9928())return!0x0;if(_0xe7d9ac()||_0x212c70())return!0x0;}return!0x1;}function _0x5dc7d7(){const _0x1ed052=_0x31a800[_0x37cc7d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ed052||0x0==_0x1ed052[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20add9}=new URL(window[_0x37cc7d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ed052[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20add9))return!0x0;const _0x3b1f92=_0x20add9[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])](_0x37cc7d([0x2e]));return _0x1ed052[_0x37cc7d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23fab3=>_0x23fab3[_0x37cc7d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37cc7d([0x2a])))[_0x37cc7d([0x6d,0x61,0x70])](_0x2e015a=>_0x2e015a[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])](_0x37cc7d([0x2e])))[_0x37cc7d([0x73,0x6f,0x6d,0x65])](_0xc4b147=>_0x3b1f92[_0x37cc7d([0x65,0x76,0x65,0x72,0x79])]((_0x597eb7,_0x334bc5)=>_0xc4b147[_0x334bc5]===_0x597eb7||_0xc4b147[_0x334bc5]===_0x37cc7d([0x2a])));}function _0x1abdff(){return _0xcf6018&&_0x1d701e?new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bff96,_0x64e6a0)=>{_0xcf6018[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x5bff96,_0x64e6a0),_0x1d701e[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x38b0ed=>{_0x38b0ed!=_0x37cc7d([0x56,0x61,0x6c,0x69,0x64])&&_0x5bff96(_0x38b0ed);},_0x64e6a0);}):_0xcf6018||_0x1d701e||_0x37cc7d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11f38a(_0x3f32cc,_0x3cd2f6){return new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5c4a=>{if(_0x2247bd())return _0x5f5c4a(_0x37cc7d([0x56,0x61,0x6c,0x69,0x64]));_0x24049a(),_0x43a20e[_0x37cc7d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37cc7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c724e=!0x1;const _0xd04244=_0x56f194();function _0x31ff51(_0x479290){return!!_0x479290&&(typeof _0x479290===_0x37cc7d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x479290===_0x37cc7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x479290[_0x37cc7d([0x74,0x68,0x65,0x6e])]===_0x37cc7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x479290[_0x37cc7d([0x63,0x61,0x74,0x63,0x68])]===_0x37cc7d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d30e8(_0x2a4545){_0x272a79(_0x2a4545)[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x5782b2=>{if(!_0x5782b2||_0x5782b2[_0x37cc7d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37cc7d([0x6f,0x6b]))return _0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4430b3(_0x341b30(_0xd04244+_0x3cd2f6))!=_0x5782b2[_0x37cc7d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37cc7d([0x56,0x61,0x6c,0x69,0x64]);})[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x58ea77=>(_0x151540(),_0x58ea77),()=>{const _0x5730d8=_0x1ba765();return null==_0x5730d8?(_0x151540(),_0x37cc7d([0x56,0x61,0x6c,0x69,0x64])):_0x37cc7d(_0x17ffdf-_0x5730d8>(0x3469a008^_0xe6925f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x5f5c4a)[_0x37cc7d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f5c4a(_0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x290235=0x1053ca88^_0xe6925f;function _0x151540(){const _0x18b3d9=_0x37cc7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4430b3(_0x341b30(_0x3f32cc)),_0x1b5c36=_0x55961a(_0x4430b3(window[_0x37cc7d([0x4d,0x61,0x74,0x68])][_0x37cc7d([0x63,0x65,0x69,0x6c])](_0x17ffdf/_0x290235)));window[_0x37cc7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37cc7d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18b3d9,_0x1b5c36);}function _0x1ba765(){const _0x11c089=_0x37cc7d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4430b3(_0x341b30(_0x3f32cc)),_0x484ab1=window[_0x37cc7d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37cc7d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11c089);return _0x484ab1?window[_0x37cc7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55961a(_0x484ab1),0x10)*_0x290235:null;}function _0x272a79(_0x357b21){return new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13ac01,_0x5215a4)=>{_0x357b21[_0x37cc7d([0x74,0x68,0x65,0x6e])](_0x13ac01,_0x5215a4),window[_0x37cc7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5215a4,0x1064f0c8^_0xe6925f);});}}_0x43a20e[_0x37cc7d([0x6f,0x6e])](_0x37cc7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x253487,_0x23b54d)=>{if(_0x23b54d[0x0]!=_0x3f32cc)return _0x5f5c4a(_0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23b54d[0x1]={..._0x23b54d[0x1],[_0x37cc7d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd04244};},{[_0x37cc7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37cc7d([0x68,0x69,0x67,0x68])}),_0x43a20e[_0x37cc7d([0x6f,0x6e])](_0x37cc7d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e0def=>{_0x31ff51(_0x1e0def[_0x37cc7d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c724e=!0x0,_0x3d30e8(_0x1e0def[_0x37cc7d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37cc7d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37cc7d([0x6c,0x6f,0x77])}),_0x689dc3[_0x37cc7d([0x74,0x68,0x65,0x6e])](()=>{_0x5c724e||_0x5f5c4a(_0x37cc7d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2247bd(){return _0x43a20e[_0x37cc7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37cc7d([0x76,0x69,0x65,0x77])][_0x37cc7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37cc7d([0x61,0x75,0x74,0x6f]);}function _0x24049a(){_0x43a20e[_0x37cc7d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37cc7d([0x76,0x69,0x65,0x77])][_0x37cc7d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37cc7d([0x61,0x75,0x74,0x6f]);}}function _0x49eff7(_0x259807){const _0x17d500=[new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fc3d=>setTimeout(_0x34fc3d,0x106c1ac4^_0xe6925f)),_0x689dc3[_0x37cc7d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246be4=>{const _0x10f790=0x1065240f^_0xe6925f,_0x34ad79=_0x2048d8[_0x37cc7d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x465d04(){_0x34ad79[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10f790&&_0x246be4();}_0x465d04(),_0x34ad79[_0x37cc7d([0x6f,0x6e])](_0x37cc7d([0x61,0x64,0x64]),_0x465d04);})),new window[(_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x201f9d=>{function _0x2d3581(){for(const _0x3619e0 in window)if(window[_0x37cc7d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x37cc7d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3619e0))&&window[_0x3619e0]==_0x3d1194)return _0x201f9d();_0x43a20e[_0x37cc7d([0x73,0x74,0x61,0x74,0x65])]!=_0x37cc7d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x37cc7d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d3581,0x10653780^_0xe6925f);}_0xdcc90f(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2d3581();})];return window[_0x37cc7d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37cc7d([0x72,0x61,0x63,0x65])](_0x17d500)[_0x37cc7d([0x74,0x68,0x65,0x6e])](()=>_0x259807);}async function _0x59b758(){if(await _0x689dc3,_0xdcc90f(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x36eb61=_0x2048d8[_0x37cc7d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x16c3e4=_0x2048d8[_0x37cc7d([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])](_0x36eb61[_0x37cc7d([0x69,0x64])]),_0x4c58b5=_0xec6777(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4c58b5[_0x37cc7d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x36eb61['id'],_0x16c3e4?_0x16c3e4['id']:null,!0x0),_0x4c58b5[_0x37cc7d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37cc7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4c58b5[_0x37cc7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4c58b5[_0x37cc7d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3b3755,void(_0x4c58b5[_0x37cc7d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3b3755);}if(_0xdcc90f(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x543f90=_0xec6777(_0x37cc7d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x543f90[_0x37cc7d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37cc7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x543f90[_0x37cc7d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x543f90[_0x37cc7d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3b3755,_0x543f90[_0x37cc7d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3b3755;}_0x43a20e[_0x37cc7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x37cc7d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b3755,_0x43a20e[_0x37cc7d([0x6d,0x6f,0x64,0x65,0x6c])][_0x37cc7d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b3755,_0x43a20e[_0x37cc7d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37cc7d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b9928(){return _0xdcc90f(_0x37cc7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xec6777(_0x37cc7d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x37cc7d([0x73,0x74,0x61,0x74,0x65])]==_0x37cc7d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe7d9ac(){return _0xdcc90f(_0x37cc7d([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 _0x212c70(){return _0xdcc90f(_0x37cc7d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5cb29c(_0x21ba3c){const _0x476596=_0x54a794();_0x43a20e[_0x476596]=_0x37cc7d([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])+_0x21ba3c,_0x21ba3c[_0x37cc7d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x37cc7d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x54a794()]=_0x3d1194),_0x21ba3c!=_0x37cc7d([0x56,0x61,0x6c,0x69,0x64])&&_0x59b758();}function _0x54a794(){const _0x35242a=window[_0x37cc7d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37cc7d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37cc7d([0x6e,0x6f,0x77])]())[_0x37cc7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37cc7d([0x2e]),'');let _0x3a4756=_0x37cc7d([0x42]);for(let _0x490199=0x0;_0x490199<_0x35242a[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x490199+=0x2){let _0x341770=window[_0x37cc7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35242a[_0x37cc7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x490199,_0x490199+0x2));_0x341770>=_0x1ea66c[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x341770-=_0x1ea66c[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a4756+=_0x1ea66c[_0x341770];}return _0x3a4756;}function _0x57bea6(){const _0x38fbaf=_0x11d800[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])](_0x37cc7d([0x2e]));if(0x3!=_0x38fbaf[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58242e(_0x38fbaf[0x1]);function _0x58242e(_0x3d9792){const _0x59caa4=_0x4b84b6(_0x3d9792);return _0x59caa4&&_0x160fb7()?_0x59caa4:null;function _0x160fb7(){const _0x23c9e3=_0x59caa4[_0x37cc7d([0x6a,0x74,0x69])],_0x11a8d7=window[_0x37cc7d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23c9e3[_0x37cc7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23c9e3[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1feb0a={..._0x59caa4,[_0x37cc7d([0x6a,0x74,0x69])]:_0x23c9e3[_0x37cc7d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23c9e3[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1feb0a[_0x37cc7d([0x76,0x63])],_0x341b30(_0x1feb0a)==_0x11a8d7;}}}async function _0x1757d6(){let _0x3cefbd=!0x0;try{const _0x155fa4=_0x11d800[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])](_0x37cc7d([0x2e])),[_0x359128,_0x531b4d,_0x3e677f]=_0x155fa4;return _0x17f6f7(_0x359128),await _0xf49454(_0x359128,_0x531b4d,_0x3e677f),_0x3cefbd;}catch(_0x972c78){return!0x1;}function _0x17f6f7(_0x4f5a4d){const _0x59bde5=_0x4b84b6(_0x4f5a4d);_0x59bde5&&_0x59bde5[_0x37cc7d([0x61,0x6c,0x67])]==_0x37cc7d([0x45,0x53,0x32,0x35,0x36])||(_0x3cefbd=!0x1);}async function _0xf49454(_0x1c51ae,_0x536a67,_0x3cc50f){const _0x34a21a=window[_0x37cc7d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37cc7d([0x66,0x72,0x6f,0x6d])](_0x3a15dc(_0x3cc50f),_0x536ed9=>_0x536ed9[_0x37cc7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3021cc=new window[(_0x37cc7d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37cc7d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c51ae+_0x37cc7d([0x2e])+_0x536a67),_0x2ae6ed=window[_0x37cc7d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37cc7d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ae6ed)return;const _0x599121=await _0x2ae6ed[_0x37cc7d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37cc7d([0x6a,0x77,0x6b]),_0x508fff,{[_0x37cc7d([0x6e,0x61,0x6d,0x65])]:_0x37cc7d([0x45,0x43,0x44,0x53,0x41]),[_0x37cc7d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37cc7d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37cc7d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ae6ed[_0x37cc7d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37cc7d([0x6e,0x61,0x6d,0x65])]:_0x37cc7d([0x45,0x43,0x44,0x53,0x41]),[_0x37cc7d([0x68,0x61,0x73,0x68])]:{[_0x37cc7d([0x6e,0x61,0x6d,0x65])]:_0x37cc7d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x599121,_0x34a21a,_0x3021cc)||(_0x3cefbd=!0x1);}}function _0x4b84b6(_0x514b53){return _0x514b53[_0x37cc7d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37cc7d([0x65,0x79]))?JSON[_0x37cc7d([0x70,0x61,0x72,0x73,0x65])](_0x3a15dc(_0x514b53)):null;}function _0x3a15dc(_0x20162a){return window[_0x37cc7d([0x61,0x74,0x6f,0x62])](_0x20162a[_0x37cc7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37cc7d([0x2b]))[_0x37cc7d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37cc7d([0x2f])));}function _0x341b30(_0x79f735){let _0x377ff1=0x1505;function _0x164ef2(_0x3879d8){for(let _0x5bfb36=0x0;_0x5bfb36<_0x3879d8[_0x37cc7d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bfb36++){const _0xc07373=_0x3879d8[_0x37cc7d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bfb36);_0x377ff1=(_0x377ff1<<0x5)+_0x377ff1+_0xc07373,_0x377ff1&=_0x377ff1;}}function _0x3dfb39(_0x4e7eb2){Array[_0x37cc7d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e7eb2)?_0x4e7eb2[_0x37cc7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3dfb39):_0x4e7eb2&&typeof _0x4e7eb2==_0x37cc7d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37cc7d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e7eb2)[_0x37cc7d([0x73,0x6f,0x72,0x74])]()[_0x37cc7d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x352d1,_0x3fe49b])=>{_0x164ef2(_0x352d1),_0x3dfb39(_0x3fe49b);}):_0x164ef2(window[_0x37cc7d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e7eb2));}return _0x3dfb39(_0x79f735),_0x377ff1>>>0x0;}function _0x4430b3(_0x2c473c){return _0x2c473c[_0x37cc7d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37cc7d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37cc7d([0x30]));}function _0x55961a(_0x455dc9){return _0x455dc9[_0x37cc7d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37cc7d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37cc7d([0x6a,0x6f,0x69,0x6e])]('');}function _0xdcc90f(_0x165ca0){return _0x43a20e[_0x37cc7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37cc7d([0x68,0x61,0x73])](_0x165ca0);}function _0xec6777(_0x2f6f9a){return _0x43a20e[_0x37cc7d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37cc7d([0x67,0x65,0x74])](_0x2f6f9a);}function _0x3b3755(){}function _0x37cc7d(_0x47acef){return _0x47acef['map'](_0x1081fe=>String['fromCharCode'](_0x1081fe))['join']('');}_0x5cb29c(await _0x419480());}(this);}['createRevision'](_0x5906d4){const _0x86ca25=this['editor']['plugins']['get']('Users');return new h({'id':_0x5906d4['id'],'name':_0x5906d4['name'],'creator':_0x5906d4['creatorId']?_0x86ca25['getUser'](_0x5906d4['creatorId']):null,'diffData':_0x5906d4['diffData']||_0x5906d4['data'],'authors':_0x5906d4['authorsIds']['map'](_0x3ddf15=>_0x86ca25['getUser'](_0x3ddf15)),'createdAt':new Date(_0x5906d4['createdAt']),'attributes':_0x5906d4['attributes'],'fromVersion':_0x5906d4['fromVersion'],'toVersion':_0x5906d4['toVersion']});}['addRevision'](_0x2ea2fa,_0x4a2b98=0x0){this['_revisions']['add'](_0x2ea2fa,_0x4a2b98);}['getRevision'](_0x23d913){return this['_revisions']['get'](_0x23d913);}['getRevisions'](_0x37999a={'toJSON':!0x1}){const _0x2e01d7=Array['from'](this['_revisions']);return _0x2e01d7['reverse'](),_0x37999a['toJSON']?_0x2e01d7['map'](_0x1fe12d=>_0x1fe12d['toJSON']()):_0x2e01d7;}['getIndex'](_0x594639){return this['_revisions']['getIndex'](_0x594639);}['getEarlierVisibleRevision'](_0x31628f){const [,_0x15bc57]=this['getRevisionsIterator'](_0x31628f,{'direction':'earlier'});return _0x15bc57;}['getLaterVisibleRevision'](_0x4c7171){const [,_0x188336]=this['getRevisionsIterator'](_0x4c7171,{'direction':'later'});return _0x188336;}['getRevisionsInDiff'](_0x151c78){const _0x3bf514=[];for(const _0x480af5 of this['getRevisionsIterator'](_0x151c78['newRevisionId']))if(_0x3bf514['push'](_0x480af5),_0x480af5['id']===_0x151c78['oldRevisionId'])break;return _0x3bf514;}*['getRevisionsIterator'](_0xf0890f,{direction:_0x3fa89a='earlier',filter:_0x24eea8=()=>!0x0}={}){const _0x289b96='earlier'===_0x3fa89a?0x1:-0x1;let _0x101e3c=this['_revisions']['get'](_0xf0890f),_0x1a63b9=this['getIndex'](_0x101e3c);for(yield _0x101e3c;_0x101e3c;){if(_0x1a63b9+=_0x289b96,_0x101e3c=this['getRevision'](_0x1a63b9),!_0x101e3c)return;_0x24eea8(_0x101e3c)&&(yield _0x101e3c);}}}class V extends _0x3a83bf{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x575821,'c'],[_0x3fed71,'a'],[_0x5eaeb8,'e'],[_0xb2d509,'r'],[_0x51de0d,'u']]);['_typeCharToViewClass']=new Map([['c',_0x575821],['a',_0x3fed71],['e',_0x5eaeb8],['r',_0xb2d509],['u',_0x51de0d]]);async['loadRevisionData'](_0x553455,_0x54bed2){if(_0x553455['diffData']||!_0x54bed2)return;const _0x28b7d7=this['editor']['config']['get']('collaboration.channelId'),_0x13a1ab=await _0x54bed2['getRevision']({'channelId':_0x28b7d7,'revisionId':_0x553455['id']});_0x553455['diffData']=_0x13a1ab['diffData'];}['getRevisionDocumentData'](_0x4b0880){const _0x5a7674={};for(const _0x2b1e76 in _0x4b0880['diffData']){if(_0x4b0880['diffData'][_0x2b1e76]['attachChange']&&!_0x4b0880['diffData'][_0x2b1e76]['attachChange']['isAttached'])continue;const _0x5a2ff7=this['_removeRevisionMarkers'](JSON['parse'](_0x4b0880['diffData'][_0x2b1e76]['insertions'])),_0x28cd3a=this['editor']['editing']['view']['document'],_0xe4abc6=new _0x2d689c(_0x28cd3a,_0x5a2ff7['map'](_0x23b503=>this['_getViewFromDiffObj'](_0x23b503,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5a7674[_0x2b1e76]=this['editor']['data']['processor']['toData'](_0xe4abc6),this['editor']['data']['processor']['useFillerType']('default');}return _0x5a7674;}['getRevisionRootsAttributes'](_0x2d5720){const _0x3a2c8d={};for(const _0x50ee4b in _0x2d5720['diffData'])_0x2d5720['diffData'][_0x50ee4b]['attachChange']&&!_0x2d5720['diffData'][_0x50ee4b]['attachChange']['isAttached']||(_0x3a2c8d[_0x50ee4b]=_0x2d5720['diffData'][_0x50ee4b]['attributesAfter']||{});return _0x3a2c8d;}['_getTypeCharForViewElement'](_0x565745){return this['_viewClassToTypeChar']['get'](_0x565745['constructor']);}['_getViewFromDiffObj'](_0x519ccc,_0x26fe27){const _0x4e82a0=this['editor']['editing']['view']['document'];if('string'==typeof _0x519ccc)return new _0x57595a(_0x4e82a0,_0x519ccc);{let _0x2f85e5,_0x2fd388;_0x2fd388='u'==_0x519ccc['type']||'r'==_0x519ccc['type']?[]:_0x519ccc['children']['map'](_0x255fd5=>this['_getViewFromDiffObj'](_0x255fd5,_0x26fe27));const _0x146c29=this['_typeCharToViewClass']['get'](_0x519ccc['type'])||_0x19acf2,_0x7c7de3=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2f85e5=new _0x146c29(_0x4e82a0,_0x519ccc['name'],_0x519ccc['attributes'],_0x2fd388),'u'==_0x519ccc['type']){const _0x21dced=_0x519ccc['children'][0x0];if(_0x2f85e5['render']=function(_0x272708){const _0x73d56b=_0x272708['createElement']('div');return _0x73d56b['innerHTML']=_0x21dced,_0x73d56b['childNodes'][0x0];},_0x26fe27){const _0x58055a=new _0x2d689c(_0x4e82a0);_0x58055a['_appendChild'](_0x2f85e5);const _0xeac3c6=Array['from'](_0x7c7de3['viewChildrenToDom'](_0x58055a,{'bind':!0x1})),_0x18d94e=_0x7c7de3['domDocument']['createElement']('div');_0x18d94e['append'](..._0xeac3c6),_0x2f85e5=Array['from'](_0x7c7de3['domChildrenToView'](_0x18d94e))[0x0];}}else{if('r'==_0x519ccc['type']){const _0x2a9a46=_0x519ccc['children'][0x0];if(_0x2f85e5['render']=function(_0x584b2b){_0x584b2b['innerHTML']=_0x2a9a46;},_0x26fe27){const _0x5d0f2f=new _0x2d689c(_0x4e82a0);_0x5d0f2f['_appendChild'](_0x2f85e5);const _0x180b48=Array['from'](_0x7c7de3['viewChildrenToDom'](_0x5d0f2f,{'bind':!0x1})),_0x374a73=_0x7c7de3['domDocument']['createElement']('div');_0x374a73['append'](..._0x180b48);const _0x3e5200=Array['from'](_0x7c7de3['domChildrenToView'](_0x374a73));_0x3e5200['length']>0x1?_0x2f85e5['_appendChild'](_0x3e5200):_0x2f85e5=_0x3e5200[0x0];}}}if(_0x519ccc['customProperties']){for(const [_0x29ca9b,_0x3c9588]of _0x519ccc['customProperties'])_0x2f85e5['_setCustomProperty'](_0x29ca9b,_0x3c9588);}const _0x215323=_0x519ccc['fillerOffset']||null;return _0x2f85e5['getFillerOffset']=()=>_0x215323,_0x2f85e5;}}['_makeModelFromViewString'](_0x28cc61){const _0x52c8c1=JSON['parse'](_0x28cc61),_0x3c490f=this['editor']['editing']['view']['document'],_0x26b1b0=new _0x2d689c(_0x3c490f,_0x52c8c1['map'](_0x159ce5=>this['_getViewFromDiffObj'](_0x159ce5,!0x0)));return this['editor']['data']['toModel'](_0x26b1b0);}['_removeRevisionMarkers'](_0x4db312){return(_0x4db312=_0x4db312['filter'](_0xf33897=>!_0xf33897['name']||'revision-start'!==_0xf33897['name']&&'revision-end'!==_0xf33897['name']))['forEach'](_0x19b14d=>{'string'!=typeof _0x19b14d&&(_0x19b14d['children']=this['_removeRevisionMarkers'](_0x19b14d['children']),_0x19b14d['attributes']=_0x19b14d['attributes']['filter'](_0x4c1074=>!_0x4c1074[0x0]['startsWith']('data-revision-')));}),_0x4db312;}}function g(_0x35d866,_0x12b315,_0x5d0343){const t=_0x35d866['t'];switch(_0x12b315){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'},_0x5d0343);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5d0343);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x3a83bf{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4fe82c,I,V,_0xd49075];}constructor(_0x203f67){super(_0x203f67),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x23ae30=_0x56f194();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x23ae30},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1a1098=this['repository']['getRevision'](0x0),_0x30ac13=_0x1a1098&&null===_0x1a1098['creator']?_0x1a1098:null;if(this['_continueCurrentRevision']=!!_0x30ac13&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2eab5f=this['_source']['getCurrentRevisionId'](),_0x468a4c=this['repository']['getRevision'](_0x2eab5f);if(_0x468a4c)this['_startingVersion']=_0x468a4c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2a0b77=this['_source']['history']['_operations']['find'](_0x27c0c8=>!_0x27c0c8['_isInit']),_0x1058db=_0x2a0b77?_0x2a0b77['baseVersion']:this['_source']['history']['version'];_0x1a1098?(_0x1a1098['toVersion']<_0x1058db&&_0x1a1098['_update']({'toVersion':_0x1058db}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x30ac13['id'],this['_startingVersion']=_0x30ac13['fromVersion']):(this['_startingVersion']=_0x1a1098['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1058db,this['_continueCurrentRevision']=!0x1);}}else _0x30ac13&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x30ac13['toVersion'],this['editor']['model']['document']['history']['version']),_0x30ac13['fromVersion']===_0x30ac13['toVersion']?(0x0!==_0x30ac13['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x30ac13['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x30ac13['id'],this['_startingVersion']=_0x30ac13['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',_0x1d1e48=>!_0x1d1e48),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ce013=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e40fc;for(const _0xf0b578 in _0x2ce013){const _0x47f2b5=_0xf0b578,_0x42608d=_0x2ce013[_0x47f2b5];if('revisionHistoryLicenseKeyValid'==_0x42608d||'revisionHistoryLicenseKeyInvalid'==_0x42608d||'revisionHistoryLicenseKeyExpired'==_0x42608d||'revisionHistoryLicenseKeyDomainLimit'==_0x42608d||'revisionHistoryLicenseKeyNotAllowed'==_0x42608d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x42608d||'revisionHistoryLicenseKeyTrialLimit'==_0x42608d||'revisionHistoryLicenseKeyUsageLimit'==_0x42608d){delete _0x2ce013[_0x47f2b5],_0x3e40fc=_0x42608d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3e40fc&&_0x2ce013['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3e40fc&&_0x2ce013['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3e40fc&&_0x2ce013['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3e40fc&&_0x2ce013['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3e40fc&&_0x2ce013['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3e40fc&&_0x2ce013['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3e40fc&&_0x2ce013['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x72cac4=this['repository']['getRevision'](0x0),_0x5ec348=await this['getRevisionDocumentData'](_0x72cac4),_0x1231aa=await this['getRevisionRootsAttributes'](_0x72cac4);this['_replaceEditorDataWithRevisionData'](_0x5ec348,_0x1231aa);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3ffe2a){this['_source']=_0x3ffe2a;}async['update'](){const _0x405807=await this['_source']['getLatestVersion']();if(_0x405807>this['currentRevision']['toVersion']){await this['_loadState']();const _0x49b3f0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x405807});_0x49b3f0['authors']=_0x49b3f0['authorsIds']['map'](_0x2fa7c4=>this['editor']['plugins']['get']('Users')['getUser'](_0x2fa7c4)),this['currentRevision']['_update'](_0x49b3f0);}}async['saveRevision'](_0x18756b={},_0x1ac01d=null){const _0x36cf87=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1ac01d>this['currentRevision']['toVersion']&&(_0x1ac01d=null),null===_0x1ac01d&&(_0x1ac01d=await this['_source']['getLatestVersion']());const _0xe02e9a=this['_getFromVersion'](_0x1ac01d),_0x559e44=this['buildRevisionData']({'from':_0xe02e9a,'to':_0x1ac01d});if(this['currentRevision']['toVersion']<_0x1ac01d){const _0xe235c1=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1ac01d,'to':_0x1ac01d});_0xe235c1['authors']=[],_0xe235c1['authorsIds']=[],_0xe235c1['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xe235c1,!0x0),delete _0xe235c1['authors'],_0x36cf87['push'](_0xe235c1);}_0x18756b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x18756b['name']=_0x18756b['name']||null,_0x18756b['id']=_0x18756b['id']||_0x56f194(),_0x18756b={..._0x18756b,..._0x559e44};const _0x1dce0d=this['addRevisionData'](_0x18756b);_0x36cf87['push'](_0x18756b);const _0x156fa5=this['repository']['getIndex'](_0x1dce0d);if(0x0!==_0x156fa5){const _0x1c6e6c=this['repository']['getRevision'](_0x156fa5-0x1);if(_0x1c6e6c['fromVersion']!==_0x1ac01d){const _0x57732e=this['_revisionDataBuilder']['getData'](_0x1ac01d,_0x1c6e6c['toVersion']),_0x221389={'id':_0x1c6e6c['id'],'diffData':_0x57732e['diffData'],'authorsIds':_0x57732e['authorsIds'],'authors':_0x57732e['authorsIds']['map'](_0x4add66=>this['editor']['plugins']['get']('Users')['getUser'](_0x4add66)),'fromVersion':_0x1ac01d};_0x1c6e6c===this['currentRevision']&&(_0x221389['createdAt']=new Date(_0x18756b['createdAt']['getTime']()+0xa)),_0x1c6e6c['_update'](_0x221389,!0x0),delete _0x221389['authors'],_0x36cf87['push'](_0x221389);}}if(this['adapter']){for(const _0x53e4b2 of _0x36cf87)this['_bufferUpdate'](_0x53e4b2['id'],_0x53e4b2,!0x0);this['sendBufferedUpdates']();}return _0x1dce0d;}['addRevisionData'](_0x5f43eb){const _0x51c57a=this['repository']['createRevision'](_0x5f43eb);return this['adapter']&&_0x51c57a['on']('_update',(_0x44580a,_0x2956c2,_0x4f64a8)=>{_0x4f64a8||(this['_bufferUpdate'](_0x2956c2['id'],_0x2956c2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x51c57a,this['_findInsertionIndex'](_0x51c57a)),_0x51c57a;}async['getRevisionDocumentData'](_0x174639){return await this['_utils']['loadRevisionData'](_0x174639,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x174639);}async['getRevisionRootsAttributes'](_0x2cf298){return await this['_utils']['loadRevisionData'](_0x2cf298,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2cf298);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x42a033=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x297c9d=0x0;_0x297c9d<_0x42a033['length'];_0x297c9d++){const _0x12715e=_0x42a033[_0x297c9d];let _0x81c9a2=!0x1;for(const _0x4f9f62 of Object['keys'](_0x12715e))void 0x0===_0x12715e[_0x4f9f62]?delete _0x12715e[_0x4f9f62]:'id'!==_0x4f9f62&&(_0x81c9a2=!0x0);_0x81c9a2||(_0x42a033[_0x297c9d]=null);}if(_0x42a033=_0x42a033['filter'](_0x5ec2a0=>null!==_0x5ec2a0),!_0x42a033['length'])return;for(let _0x1eee61=0x0;_0x1eee61<_0x42a033['length'];_0x1eee61++){const _0x2ca423=_0x42a033[_0x1eee61];void 0x0!==_0x2ca423['fromVersion']&&void 0x0===_0x2ca423['toVersion']&&(_0x2ca423['toVersion']=this['repository']['getRevision'](_0x2ca423['id'])['toVersion']),void 0x0!==_0x2ca423['toVersion']&&void 0x0===_0x2ca423['fromVersion']&&(_0x2ca423['fromVersion']=this['repository']['getRevision'](_0x2ca423['id'])['fromVersion']);}const _0xd7c5b6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x42a033,_0xd7c5b6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x32c5d8=>{if(_0x32c5d8){for(const _0x5b08ae of _0x32c5d8)this['setRevisionData']({'id':_0x5b08ae['id'],'createdAt':_0x5b08ae['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2b6c76=null,from:_0x1dbb03=null,to:_0x308426=null}){_0x1dbb03=null!==_0x1dbb03?_0x1dbb03:_0x2b6c76['fromVersion'],_0x308426=null!==_0x308426?_0x308426:_0x2b6c76['toVersion'];const _0x45a60b=this['_revisionDataBuilder']['getData'](_0x1dbb03,_0x308426),_0x425dcb={'diffData':_0x45a60b['diffData'],'authorsIds':_0x45a60b['authorsIds'],'fromVersion':_0x1dbb03,'toVersion':_0x308426};if(!_0x2b6c76||_0x308426!==_0x2b6c76['toVersion']){const _0x67e45=_0x308426-0x1,_0xd22f83=this['_source']['history']['getOperation'](_0x67e45);_0x425dcb['createdAt']=_0xd22f83&&_0xd22f83['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1dbb03===this['_loadedStateData']['fromVersion']){for(const _0x35019c of this['_loadedStateData']['authors'])_0x425dcb['authorsIds']['includes'](_0x35019c['id'])||_0x425dcb['authorsIds']['push'](_0x35019c['id']);}return _0x425dcb;}['_bufferUpdate'](_0x2618f5,_0x36225e,_0x68d0ed){if(this['_bufferedUpdates']['has'](_0x2618f5)){const _0x5b7054=this['_bufferedUpdates']['get'](_0x2618f5);_0x36225e=_0x68d0ed?{..._0x5b7054,..._0x36225e}:{..._0x36225e,..._0x5b7054};}this['_bufferedUpdates']['set'](_0x2618f5,_0x36225e);}['setRevisionData'](_0x301254){const _0x1ccf40=this['repository']['getRevision'](_0x301254['id']);if(_0x301254['createdAt']&&(_0x301254['createdAt']=new Date(_0x301254['createdAt'])),_0x301254['authorsIds']){const _0xe1925=this['editor']['plugins']['get']('Users');_0x301254['authors']=_0x301254['authorsIds']['map'](_0x3bbf46=>_0xe1925['getUser'](_0x3bbf46));}_0x1ccf40['_update'](_0x301254,!0x0);}['_createInitialRevision'](_0x274b07){const _0x31c031=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x31c031)this['_initialRevisionId']=_0x31c031['id'];else{const _0x37148e=!this['editor']['model']['document']['roots']['find'](_0x18dfa3=>this['editor']['model']['hasContent'](_0x18dfa3)),_0x129689=this['editor']['plugins']['get']('Users')['me']['id'],_0x1efea2=g(this['editor']['locale'],_0x37148e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x274b07,'to':_0x274b07,'id':this['_initialRevisionId'],'name':_0x1efea2,'creatorId':_0x129689});}}['_createCurrentRevision'](_0x37af9c){const _0x4a6817=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4a6817),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x37af9c,'to':_0x37af9c,'id':_0x4a6817,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x5977f8,_0x43f73d){let _0x2450ce=this['editor']['config']['get']('initialData'),_0x225d31=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2450ce){_0x2450ce={};for(const _0x20cedf of this['editor']['model']['document']['getRootNames']())_0x2450ce[_0x20cedf]='';}if('string'==typeof _0x2450ce&&(_0x2450ce={'main':_0x2450ce}),void 0x0===_0x225d31){_0x225d31={};for(const _0x4e40a6 of this['editor']['model']['document']['getRootNames']())_0x225d31[_0x4e40a6]={};}let _0x225228=!0x1;const _0x2e3fd5=Object['keys'](_0x2450ce),_0x9c785f=Object['keys'](_0x5977f8);for(const _0x540de1 of _0x2e3fd5){if(_0x2450ce[_0x540de1]!==_0x5977f8[_0x540de1]&&''!==_0x2450ce[_0x540de1]['trim']()){_0x225228=!0x0;break;}if(!_0x1cf4e2(_0x225d31[_0x540de1],_0x43f73d[_0x540de1])&&Object['keys'](_0x225d31[_0x540de1])['length']>0x0){_0x225228=!0x0;break;}}_0x225228||(_0x225228=_0x9c785f['some'](_0x464a17=>!this['editor']['model']['document']['getRoot'](_0x464a17))),_0x225228&&_0x1c05ab('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2450ce,'editorRootsAttributes':_0x225d31,'revisionData':_0x5977f8,'revisionRootsAttributes':_0x43f73d}),this['editor']['config']['set']('initialData',_0x5977f8),this['editor']['config']['set']('rootsAttributes',_0x43f73d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x194c91=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x194c91['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x297ecc){const _0x148822=this['repository']['getRevisions']();_0x148822['reverse']();let _0x549155=0x0;for(;_0x549155<_0x148822['length'];){const _0xb2eb09=_0x148822[_0x549155];if(_0xb2eb09===this['currentRevision']){_0x549155++;continue;}if(_0xb2eb09['id']===this['_initialRevisionId'])break;const _0x48e973=_0x297ecc['toVersion']-_0xb2eb09['toVersion']||_0x297ecc['fromVersion']-_0xb2eb09['fromVersion'];if(_0x48e973>0x0)break;if(_0x48e973<0x0)_0x549155++;else{if(!_0x297ecc['creator']&&_0xb2eb09['creator'])break;if(_0xb2eb09['creator']||!_0x297ecc['creator']){if(_0x297ecc['createdAt']>_0xb2eb09['createdAt'])break;_0x549155++;}else _0x549155++;}}return _0x549155;}['_getFromVersion'](_0x246188){const _0x22f3f8=this['repository']['getRevisions']();_0x22f3f8['reverse'](),_0x22f3f8['shift']();const _0x2f8ce3=_0x22f3f8['find'](_0x4a8d98=>_0x4a8d98['toVersion']<=_0x246188)['toVersion'];return _0x2f8ce3<this['_startingVersion']?this['_startingVersion']:_0x2f8ce3;}['_makeRevision']({name:_0x510f84,from:_0x5dafde,to:_0x3b34ae,creatorId:_0x5ef60f,id:_0xb9e9a1}){const _0x9c0da9=this['buildRevisionData']({'from':_0x5dafde,'to':_0x3b34ae});_0x9c0da9['name']=_0x510f84,_0x9c0da9['creatorId']=_0x5ef60f,_0x9c0da9['id']=_0xb9e9a1;const _0xa63204=this['addRevisionData'](_0x9c0da9);return this['adapter']&&this['_bufferUpdate'](_0x9c0da9['id'],_0x9c0da9,!0x0),_0xa63204;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x6da12b){this['editor']=_0x6da12b,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'](_0x19c3d9){this['source']=_0x19c3d9;const _0x1d21b1=new Map(),_0x1c5e83=new Map(),_0x516632=this['editor']['model']['document']['roots']['map'](_0x3091a6=>_0x3091a6['rootName']);for(const _0x259af8 of _0x516632){const _0x293dd0=this['editor']['model']['document']['getRoot'](_0x259af8),_0x509b53=N(_0x293dd0);_0x1d21b1['set'](_0x259af8,_0x509b53),_0x1c5e83['set'](_0x259af8,Object['fromEntries'](_0x293dd0['getAttributes']()));}const _0x425c4b=Array['from'](this['editor']['model']['markers'])['map'](_0x3dd94d=>[_0x3dd94d['name'],_0x3dd94d['getRange']()]),_0x2528cb=this['source']['version'];this['_saveMetaData'](_0x2528cb,_0x1d21b1,_0x425c4b,_0x1c5e83),this['_startingRevisionId']=this['_revisionId'];const _0x587130=new Map(),_0x430ed4=new Map();for(const _0x1e1d4d of _0x516632){const _0x541a6c=P(_0x1e1d4d);_0x587130['set'](_0x1e1d4d,_0x541a6c),_0x430ed4['set'](_0x1e1d4d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x587130,[],_0x430ed4);}['getData'](_0x7fb5af,_0x220398){if(this['_lastFrom']===_0x7fb5af&&this['_lastTo']<=_0x220398)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x220398,!0x0);else{if(!this['_savedMetaData']['has'](_0x7fb5af)){const _0x3c1c46=this['_getPreviousFrom'](_0x7fb5af);this['_calculateMetaData'](_0x3c1c46,_0x7fb5af,!0x1);}this['_calculateMetaData'](_0x7fb5af,_0x220398,!0x0);}return this['_lastFrom']=_0x7fb5af,this['_lastTo']=_0x220398,this['_getState']();}['loadState'](_0x55b591){const _0x1ed490=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x55b591['fromVersion'],this['_lastTo']=_0x55b591['toVersion'];for(const _0x3d9caa in _0x55b591['diffData']){const _0x412b17=_0x55b591['diffData'][_0x3d9caa]['attachChange'],_0x2e88db=_0x1a7cd1(_0x55b591['diffData'][_0x3d9caa]['attributesBefore'])||{},_0x10072a=_0x1ed490['_makeModelFromViewString'](_0x55b591['diffData'][_0x3d9caa]['deletions']);_0x10072a['rootName']=_0x3d9caa,_0x10072a['_isAttached']=!_0x412b17||!_0x412b17['isAttached'],_0x10072a['isAttached']=()=>_0x10072a['_isAttached'],this['_baseRoots']['set'](_0x3d9caa,_0x10072a),this['_baseRootsAttributes']['set'](_0x3d9caa,_0x2e88db),_0x412b17&&this['_touchedRoots']['set'](_0x3d9caa,_0x412b17);const _0x2336ef=this['_makeIdsRoot'](_0x10072a);this['_baseIdsRoots']['set'](_0x3d9caa,_0x2336ef);for(const [_0x22142f,_0x5b7726]of _0x10072a['markers']){if(!_0x22142f['startsWith']('revision:'))continue;const _0x1a390e=_0x22142f['split'](':')[0x2];for(const _0x459ebb of _0x5b7726['getWalker']({'singleCharacters':!0x0})){const _0xe01f80=this['_getVidAttributeName'](_0x459ebb),_0x4ad2bf='elementEnd'==_0x459ebb['type']?_0x459ebb['previousPosition']['path']['slice'](0x0,-0x1):_0x459ebb['previousPosition']['path'],_0x2c4918=_0x2336ef['getNodeByPath'](_0x4ad2bf)['getAttribute'](_0xe01f80);this['_touched']['set'](_0x2c4918,{'userId':_0x1a390e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x332525=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x21a3b2=>!this['_touched']['has'](_0x21a3b2));let _0x531306=0x0;const _0x1cee8f=new Map();for(const _0xa50cb8 in _0x55b591['diffData']){const _0x2404a9=_0x55b591['diffData'][_0xa50cb8]['attachChange'],_0x572f2b=_0x1a7cd1(_0x55b591['diffData'][_0xa50cb8]['attributesAfter'])||{},_0x2cacaf=_0x1ed490['_makeModelFromViewString'](_0x55b591['diffData'][_0xa50cb8]['insertions']);_0x2cacaf['rootName']=_0xa50cb8,_0x2cacaf['_isAttached']=!_0x2404a9||_0x2404a9['isAttached'],_0x2cacaf['isAttached']=()=>_0x2cacaf['_isAttached'],this['_diffRoots']['set'](_0xa50cb8,_0x2cacaf),this['_diffRootsAttributes']['set'](_0xa50cb8,_0x572f2b);const _0x58c653=this['_makeIdsRoot'](_0x2cacaf,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xa50cb8,_0x58c653),_0x1cee8f['set'](_0xa50cb8,_0x2cacaf['isAttached']()?_0x572f2b:{});for(const [_0xc70c8a,_0x24d3d2]of _0x2cacaf['markers']){if(!_0xc70c8a['startsWith']('revision:'))continue;const _0xf7636b=_0xc70c8a['split'](':')[0x2];for(const _0x35fe8a of _0x24d3d2['getWalker']({'singleCharacters':!0x0})){const _0x2c8fde=this['_getVidAttributeName'](_0x35fe8a),_0x3bd434=this['_revisionId']++,_0x471337='elementEnd'==_0x35fe8a['type']?_0x35fe8a['previousPosition']['path']['slice'](0x0,-0x1):_0x35fe8a['previousPosition']['path'];_0x58c653['getNodeByPath'](_0x471337)['_setAttribute'](_0x2c8fde,_0x3bd434),this['_touched']['set'](_0x3bd434,{'userId':_0xf7636b});}}for(const _0x47fa6d of this['editor']['model']['createRangeIn'](_0x2cacaf)['getWalker']({'singleCharacters':!0x0})){const _0x53ccd0=this['_getVidAttributeName'](_0x47fa6d),_0x490970='elementEnd'==_0x47fa6d['type']?_0x47fa6d['previousPosition']['path']['slice'](0x0,-0x1):_0x47fa6d['previousPosition']['path'],_0x1dfba9=_0x58c653['getNodeByPath'](_0x490970);_0x1dfba9['getAttribute'](_0x53ccd0)>0x0||_0x1dfba9['_setAttribute'](_0x53ccd0,_0x332525[_0x531306++]);}for(const [_0x2281d6,_0x198d29]of _0x2cacaf['markers'])_0x2281d6['startsWith']('revision:')||this['_markers']['set'](_0x2281d6,_0x198d29);}const _0x50d988=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x50d988),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x50d988,0x1));const _0x309018=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x309018),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x309018,0x1));const _0x107e18=Array['from'](this['_diffRoots'])['map'](([_0x36031d,_0x539b7b])=>[_0x36031d,N(_0x539b7b)]);this['_saveMetaData'](this['_lastTo'],_0x107e18,this['_markers'],_0x1cee8f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5b70b3,_0x5b4ad8,_0x32cecc,_0x4fbca3){const _0x3f7dad=new Map(_0x5b4ad8),_0x26c5f9=new Map(_0x1a7cd1(_0x4fbca3)),_0x1f646b=new Map();for(const [_0x34487e,_0x52d8ea]of _0x32cecc)_0x1f646b['set'](_0x34487e,{'start':_0x52d8ea['start']['clone'](),'end':_0x52d8ea['end']['clone'](),'rootName':_0x52d8ea['root']['rootName']});this['_savedMetaData']['set'](_0x5b70b3,{'roots':_0x3f7dad,'markers':_0x1f646b,'rootsAttributes':_0x26c5f9});}['_removeMetaData'](_0x2b53ad){this['_savedMetaData']['delete'](_0x2b53ad);}['_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'](_0x2c8532,_0x1f30c9=null){let _0x357279=null;_0x2c8532['is']('documentFragment')||(_0x357279=new ut(_0x2c8532['name'],{'vid_start':null===_0x1f30c9?this['_revisionId']++:_0x1f30c9++}));const _0x5b28cd=[];for(const _0x33a110 of _0x2c8532['getChildren']())if(_0x33a110['is']('element')){_0x5b28cd['push'](this['_makeIdsRoot'](_0x33a110,_0x1f30c9));const _0x144da0=_0x5b28cd[_0x5b28cd['length']-0x1];null!==_0x1f30c9&&(_0x1f30c9=_0x144da0['is']('element','$text')?_0x144da0['getAttribute']('vid')+0x1:_0x144da0['getAttribute']('vid_end')+0x1);}else{for(let _0x25e927=0x0;_0x25e927<_0x33a110['offsetSize'];_0x25e927++)_0x5b28cd['push'](new ut('$text',{'vid':null===_0x1f30c9?this['_revisionId']++:_0x1f30c9++}));}if(_0x2c8532['is']('documentFragment')){const _0x359127=P(_0x2c8532['rootName']);return _0x359127['_insertChild'](0x0,_0x5b28cd),_0x359127;}return _0x357279['_setAttribute']('vid_end',null===_0x1f30c9?this['_revisionId']++:_0x1f30c9++),_0x357279['_insertChild'](0x0,_0x5b28cd),_0x357279;}['_calculateMetaData'](_0x481885,_0x5f3a80,_0xab0569){this['_reset']();const {roots:_0x1f01b8,markers:_0x11d44a,rootsAttributes:_0x5f3ff6}=this['_savedMetaData']['get'](_0x481885);this['_baseRoots']=new Map(_0x1f01b8),this['_baseRootsAttributes']=new Map(_0x1a7cd1(_0x5f3ff6));for(const [_0x27f2d2,_0x32482b]of this['_baseRoots'])if('$graveyard'!==_0x27f2d2&&(this['_diffRoots']['set'](_0x27f2d2,N(_0x32482b)),this['_diffRootsAttributes']=new Map(_0x1a7cd1(_0x5f3ff6)),_0xab0569)){const _0x28809c=this['_revisionId'];this['_idsRoots']['set'](_0x27f2d2,this['_makeIdsRoot'](_0x32482b)),this['_baseIdsRoots']['set'](_0x27f2d2,this['_makeIdsRoot'](_0x32482b,_0x28809c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xab0569&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x208262,_0x119f54]of _0x11d44a){const _0x5bcbb5=this['_baseRoots']['get'](_0x119f54['rootName']),_0x2b5700=this['_diffRoots']['get'](_0x119f54['rootName']),_0x58af93=new lt(this['_fixPosition'](_0x119f54['start'],_0x5bcbb5),this['_fixPosition'](_0x119f54['end'],_0x5bcbb5)),_0x32e13a=this['_fixRange'](_0x58af93,_0x2b5700);_0x5bcbb5['markers']['set'](_0x208262,_0x58af93),this['_markers']['set'](_0x208262,_0x32e13a);}this['_applyOperations'](_0x481885,_0x5f3a80,_0xab0569);}['_applyOperations'](_0x54d788,_0xc72003,_0x15ac6b){for(const _0x40f744 of this['source']['getOperations'](_0x54d788,_0xc72003))this['_handleOperation'](_0x40f744,_0x15ac6b);for(const _0x18caee of this['_diffRoots']['values']())_0x18caee['markers']['clear']();for(const [_0x495f11,_0x30b62f]of this['_markers']){this['_diffRoots']['get'](_0x30b62f['root']['rootName'])['markers']['set'](_0x495f11,_0x30b62f['clone']());}const _0x2c9bff=new Map(),_0x2db093=new Map();for(const [_0x57da2c,_0x439d03]of this['_diffRoots'])_0x2c9bff['set'](_0x57da2c,N(_0x439d03)),_0x2db093['set'](_0x57da2c,this['_diffRootsAttributes']['get'](_0x57da2c));this['_saveMetaData'](_0xc72003,_0x2c9bff,this['_markers'],_0x2db093);}['_getPreviousFrom'](_0x4e3ead){const _0x2ead33=Array['from'](this['_savedMetaData']['keys']());_0x2ead33['sort']((_0x1c9cb2,_0x32cbf0)=>_0x1c9cb2-_0x32cbf0),_0x2ead33['reverse']();for(const _0x1485fa of _0x2ead33)if(_0x1485fa<_0x4e3ead)return _0x1485fa;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x172cdc,_0x2fbcb9){const _0x116329=Array['from'](_0x2fbcb9['markers'])['map'](([_0x45e042,_0x3b16f4])=>[_0x45e042,this['_fixRange'](_0x3b16f4,_0x172cdc)]);_0x172cdc['markers']=new Map(_0x116329);}['_transformMarkers'](_0x7c3708){for(const _0x3cdb8a of this['_markers']['values']()){const _0x27850d=_0x3cdb8a['getTransformedByOperation'](_0x7c3708),_0x384a55=lt['_createFromRanges'](_0x27850d);_0x3cdb8a['start']=_0x384a55['start'],_0x3cdb8a['end']=_0x384a55['end'];}}['_handleOperation'](_0x45123d,_0x354d98){if('addRoot'!=_0x45123d['type']&&'detachRoot'!=_0x45123d['type']){if('insert'==_0x45123d['type']){const _0x11bcbb=_0x45123d['position']['root']['rootName'];this['_diffRoots']['has'](_0x11bcbb)||(this['_diffRoots']['set'](_0x11bcbb,P(_0x11bcbb,!0x0)),this['_diffRootsAttributes']['set'](_0x11bcbb,{}),_0x354d98&&this['_idsRoots']['set'](_0x11bcbb,P(_0x11bcbb,!0x0)));}else{if('addRootAttribute'==_0x45123d['type']||'removeRootAttribute'==_0x45123d['type']||'changeRootAttribute'==_0x45123d['type'])return void this['_handleRootAttributeOperation'](_0x45123d);'marker'==_0x45123d['type']&&this['_handleMarkerOperation'](_0x45123d);}if('marker'!==_0x45123d['type']){const _0x764a5a=this['_cloneOperation'](_0x45123d,this['_diffRoots']);_0x764a5a['_execute'](),this['_transformMarkers'](_0x764a5a);}if(_0x354d98)switch(_0x45123d['type']){case'insert':this['_handleInsertOperation'](_0x45123d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x45123d);break;case'merge':this['_handleMergeOperation'](_0x45123d);break;case'split':this['_handleSplitOperation'](_0x45123d);}}else this['_handleRootOperation'](_0x45123d,_0x354d98);}['_cloneOperation'](_0x24caa3,_0x48a5f1){const _0x32e373=_0x24caa3['clone']();return _0x32e373['_authorId']=_0x24caa3['_authorId'],this['_fixOperation'](_0x32e373,_0x48a5f1),_0x32e373;}['_getBaseVids'](_0x11b9e6){return _0x11b9e6['map'](_0x346405=>{const _0x778569=this['_getVidAttributeName'](_0x346405);return Number(_0x346405['item']['getAttribute'](_0x778569));});}['_generateTape'](_0x206871,_0x541183){if(_0x206871['is']('element','$text'))_0x541183['push']({'item':_0x206871,'type':'text'});else{_0x206871['is']('element')&&_0x541183['push']({'item':_0x206871,'type':'elementStart'});for(const _0x4cd92d of _0x206871['getChildren']())this['_generateTape'](_0x4cd92d,_0x541183);_0x206871['is']('element')&&_0x541183['push']({'item':_0x206871,'type':'elementEnd'});}return _0x541183;}['_getState'](){const _0x2fef1c=new Map(this['_touched']),_0x228d6f=new Map(_0x2fef1c),_0x133bbe=new Map(),_0x271f6d={'insertions':{},'deletions':{}},_0x552448={'insertions':{},'deletions':{}},_0x173144=new Map(),_0x459691=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x459691['delete']('$graveyard');for(const _0x5aa1a4 of _0x459691){const _0x28047e=this['_diffRoots']['get'](_0x5aa1a4)||P(_0x5aa1a4,!0x1),_0x2fe70c=this['_baseRoots']['get'](_0x5aa1a4)||P(_0x5aa1a4,!0x1);_0x28047e['isAttached']()||_0x2fe70c['isAttached']()?(_0x271f6d['insertions'][_0x5aa1a4]=N(_0x28047e),_0x271f6d['deletions'][_0x5aa1a4]=N(_0x2fe70c),this['_copyMarkers'](_0x271f6d['deletions'][_0x5aa1a4],_0x2fe70c),this['_copyMarkers'](_0x271f6d['insertions'][_0x5aa1a4],_0x28047e),_0x552448['insertions'][_0x5aa1a4]=this['_generateTape'](this['_idsRoots']['get'](_0x5aa1a4),[]),_0x552448['deletions'][_0x5aa1a4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5aa1a4)||P(_0x5aa1a4,!0x1),[])):_0x459691['delete'](_0x5aa1a4);}for(const _0x2454f2 of _0x459691){const _0x3e5405=_0x552448['insertions'][_0x2454f2];for(const _0x16c55d of _0x3e5405){const _0x5aa309=this['_getVidAttributeName'](_0x16c55d),_0x54c752=_0x16c55d['item']['getAttribute'](_0x5aa309);_0x228d6f['delete'](_0x54c752),_0x54c752>=this['_startingRevisionId']&&_0x133bbe['set'](_0x54c752,_0x2fef1c['get'](_0x54c752));}}for(const _0xa67ec3 of _0x459691){const _0x1c86a9=_0x552448['insertions'][_0xa67ec3],_0x57f822=this['_getBaseVids'](_0x552448['deletions'][_0xa67ec3]);let _0x3f0ee2=0x0;for(const _0x4b2197 of _0x1c86a9){const _0x4d2b39=this['_getVidAttributeName'](_0x4b2197),_0x50123c=_0x4b2197['item']['getAttribute'](_0x4d2b39);if(!_0x133bbe['has'](_0x50123c)&&!_0x173144['has'](_0x50123c)){if(_0x228d6f['has'](_0x50123c))_0x3f0ee2++;else{if(_0x50123c!=_0x57f822[_0x3f0ee2]){const _0x3c82da=_0x2fef1c['get'](_0x50123c)||_0x2fef1c['get'](_0x57f822[_0x3f0ee2]);for(;_0x50123c!=_0x57f822[_0x3f0ee2];)_0x228d6f['has'](_0x57f822[_0x3f0ee2])||(_0x173144['set'](_0x57f822[_0x3f0ee2],_0x3c82da),_0x2fef1c['set'](_0x57f822[_0x3f0ee2],_0x3c82da)),_0x3f0ee2++;}_0x3f0ee2++;}}}}for(const _0x2cc069 of _0x459691){const _0x3950e3=_0x552448['insertions'][_0x2cc069];for(const _0x5054ce of _0x3950e3){const _0x4e9030=this['_getVidAttributeName'](_0x5054ce),_0x40d751=_0x5054ce['item']['getAttribute'](_0x4e9030);if(_0x173144['has'](_0x40d751)){const _0x44ced3=_0x173144['get'](_0x40d751);_0x228d6f['has'](_0x40d751)||_0x228d6f['set'](_0x40d751,{..._0x44ced3}),_0x133bbe['set'](_0x40d751,{..._0x44ced3});}}}for(const _0xce7307 of _0x228d6f['keys']())_0xce7307>=this['_startingRevisionId']&&_0x228d6f['delete'](_0xce7307);const _0x3af0b7=new Map();for(const _0x6110d3 of _0x459691){let _0xceeae8=_0x552448['insertions'][_0x6110d3];for(const _0x16de7b of _0xceeae8)if(_0x16de7b['item']['is']('element','tableCell')){const _0x29fda5=this['_getVidAttributeName'](_0x16de7b),_0x3cdff2=_0x16de7b['item']['getAttribute'](_0x29fda5);if(_0x133bbe['has'](_0x3cdff2)){const _0xc91889=_0x16de7b['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d2fc4=_0x3af0b7['get'](_0xc91889)||new Set();_0x5d2fc4['add'](_0x133bbe['get'](_0x3cdff2)['userId']),_0x3af0b7['set'](_0xc91889,_0x5d2fc4);}}_0xceeae8=_0x552448['deletions'][_0x6110d3];for(const _0x59fd96 of _0xceeae8)if(_0x59fd96['item']['is']('element','tableCell')){const _0x1f82f3=this['_getVidAttributeName'](_0x59fd96),_0x218978=_0x59fd96['item']['getAttribute'](_0x1f82f3);if(_0x228d6f['has'](_0x218978)){const _0x4e62d4=_0x59fd96['item']['parent']['parent']['getAttribute']('vid_start'),_0x28f52c=_0x3af0b7['get'](_0x4e62d4)||new Set();_0x28f52c['add'](_0x228d6f['get'](_0x218978)['userId']),_0x3af0b7['set'](_0x4e62d4,_0x28f52c);}}for(const _0x40627b of _0x3af0b7['keys']())(_0x133bbe['has'](_0x40627b)||_0x228d6f['has'](_0x40627b))&&_0x3af0b7['delete'](_0x40627b);}for(const _0x3451f2 of _0x459691){const _0x395d20=_0x552448['insertions'][_0x3451f2];let _0x1980fa=null,_0x1a4a00=null;for(const _0x37ecbb of _0x395d20){const _0x58ce50=this['_getVidAttributeName'](_0x37ecbb),_0x2b291c=_0x37ecbb['item']['getAttribute'](_0x58ce50),_0x1074af=_0x3af0b7['get'](_0x2b291c);_0x1074af&&'elementStart'==_0x37ecbb['type']&&(_0x1980fa=Array['from'](_0x1074af)[0x0],_0x1a4a00=_0x37ecbb['item']['getAttribute']('vid_end')),_0x1980fa&&(_0x228d6f['set'](_0x2b291c,{'userId':_0x1980fa}),_0x133bbe['set'](_0x2b291c,{'userId':_0x1980fa})),_0x2b291c==_0x1a4a00&&(_0x1980fa=null,_0x1a4a00=null);}}const _0x1e1c96={},_0x2b0aa8=new Set();for(const _0x257741 of _0x459691){const _0x44774a=_0x271f6d['deletions'][_0x257741],_0x55b3f2=_0x271f6d['insertions'][_0x257741];for(const {userId:_0x4501c5}of this['_touchedMarkers']['values']())null!==_0x4501c5&&_0x2b0aa8['add'](_0x4501c5);for(const {userId:_0x32f910}of this['_touchedRoots']['values']())null!==_0x32f910&&_0x2b0aa8['add'](_0x32f910);this['_markChanges'](_0x55b3f2,_0x552448['insertions'][_0x257741],_0x133bbe,'insertion',_0x2b0aa8),this['_markChanges'](_0x44774a,_0x552448['deletions'][_0x257741],_0x228d6f,'deletion',_0x2b0aa8),_0x1e1c96[_0x257741]={'insertions':this['_prepareViewToSave'](_0x55b3f2),'deletions':this['_prepareViewToSave'](_0x44774a),'attachChange':this['_touchedRoots']['get'](_0x257741)||null,'attributesBefore':_0x1a7cd1(this['_baseRootsAttributes']['get'](_0x257741))||{},'attributesAfter':_0x1a7cd1(this['_diffRootsAttributes']['get'](_0x257741))};}return{'diffData':_0x1e1c96,'authorsIds':Array['from'](_0x2b0aa8)};}['_processRootBeforeSave'](_0x257540){for(const [,_0x206751]of _0x257540['markers']){const _0x52c2a0=_0x206751['start']['getAncestors']()['filter'](_0x2113da=>'tableCell'==_0x2113da['name']);for(const _0x35748d of _0x52c2a0)0x1==_0x35748d['childCount']&&_0x35748d['getChild'](0x0)['is']('element','paragraph')&&_0x35748d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x44ed80){this['_processRootBeforeSave'](_0x44ed80);const _0x19e5f5=this['editor']['data']['toView'](_0x44ed80,{}),_0x4ea14e=Array['from'](_0x19e5f5['getChildren']())['map'](_0x4b3d39=>this['_getViewJson'](_0x4b3d39));return JSON['stringify'](_0x4ea14e);}['_getViewJson'](_0x1260c8){if(_0x1260c8['is']('$text'))return _0x1260c8['data'];{const _0x31c4fc=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1dce1e=_0x1260c8,_0x12787b=this['editor']['data']['htmlProcessor']['domConverter'],_0x5c4cfa={'type':_0x31c4fc['_getTypeCharForViewElement'](_0x1dce1e),'name':_0x1dce1e['name'],'attributes':Array['from'](_0x1dce1e['getAttributes']()),'children':Array['from'](_0x1dce1e['getChildren']())['map'](_0x541f87=>this['_getViewJson'](_0x541f87))};if(_0x1260c8['is']('uiElement')&&'$comment'!=_0x1260c8['name']){const _0x424051=_0x1260c8['render'](_0x12787b['domDocument'],_0x12787b);_0x5c4cfa['children']['push'](_0x424051['outerHTML']);}else{if(_0x1260c8['is']('rawElement')){const _0x578b1c=_0x12787b['domDocument']['createElement'](_0x1dce1e['name']);_0x1260c8['render'](_0x578b1c,_0x12787b),_0x5c4cfa['children']['push'](_0x578b1c['innerHTML']);}}const _0x51e459=Array['from'](_0x1dce1e['getCustomProperties']());_0x51e459['length']>0x0&&(_0x5c4cfa['customProperties']=_0x51e459);const _0x15f59b=_0x1dce1e['getFillerOffset']();return null!==_0x15f59b&&(_0x5c4cfa['fillerOffset']=_0x15f59b),_0x5c4cfa;}}['_markChanges'](_0x391aa7,_0x4dba86,_0x578203,_0x141452,_0xae9c1a){let _0x2e2f4b=null,_0x315a1d=null,_0x2ce7ee=0x0;const _0x4ab937=this['editor']['model'];for(let _0x3fb732=0x0;_0x3fb732<_0x4dba86['length'];_0x3fb732++){const _0x1d06d9=this['_getVidAttributeName'](_0x4dba86[_0x3fb732]),_0x421d26=_0x4dba86[_0x3fb732]['item']['getAttribute'](_0x1d06d9),_0x5e6137=_0x578203['get'](_0x421d26),_0x51daa7=_0x3fb732==_0x4dba86['length']-0x1;(!_0x2e2f4b&&_0x5e6137&&(_0x2e2f4b=_0x5e6137,_0x315a1d=_0x4dba86[_0x3fb732]),_0x2e2f4b&&(!_0x5e6137||_0x5e6137['userId']!=_0x2e2f4b['userId']))&&(_0x40b08f(_0x5e6137,F(_0x315a1d,_0x391aa7,_0x4ab937),F(_0x4dba86[_0x3fb732],_0x391aa7,_0x4ab937)),_0x2e2f4b=_0x5e6137||null,_0x315a1d=_0x5e6137?_0x4dba86[_0x3fb732]:null),_0x2e2f4b&&_0x51daa7&&_0x40b08f(_0x5e6137,F(_0x315a1d,_0x391aa7,_0x4ab937),B(_0x4dba86[_0x3fb732],_0x391aa7,_0x4ab937));}function _0x40b08f(_0x16cd50,_0x2cedb0,_0x206685){const _0x297cfc=_0x2e2f4b['userId'],_0x394031='revision:'+_0x141452+':'+_0x297cfc+':'+_0x2ce7ee++,_0x53f257=_0x4ab937['createRange'](_0x2cedb0,_0x206685);_0x391aa7['markers']['set'](_0x394031,_0x53f257),null!==_0x297cfc&&_0xae9c1a['add'](_0x297cfc);}}['_getVidAttributeName'](_0x48b789){switch(_0x48b789['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x262d5e,_0x47075a){_0x262d5e['baseVersion']=null;for(const _0x17a4aa in _0x262d5e){const _0x4745d2=_0x262d5e[_0x17a4aa];if(_0x4745d2 instanceof ft){const _0xeb7b33=_0x47075a['get'](_0x4745d2['root']['rootName']);_0x262d5e[_0x17a4aa]=this['_fixPosition'](_0x4745d2,_0xeb7b33);}if(_0x4745d2 instanceof lt){const _0x21b20a=_0x47075a['get'](_0x4745d2['root']['rootName']);_0x262d5e[_0x17a4aa]=this['_fixRange'](_0x4745d2,_0x21b20a);}'root'===_0x17a4aa&&(_0x262d5e['root']=_0x47075a['get'](_0x262d5e['root']['rootName']));}}['_fixRange'](_0x436296,_0x4255d0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x436296['start'],_0x4255d0),this['_fixPosition'](_0x436296['end'],_0x4255d0));}['_fixPosition'](_0x2afd15,_0x1ece42){return this['editor']['model']['createPositionFromPath'](_0x1ece42,_0x2afd15['path'],_0x2afd15['stickiness']);}['_handleInsertOperation'](_0x54043c){const _0x3570c7=this['_idsRoots']['get'](_0x54043c['position']['root']['rootName']),_0x374b0e=this['_fixPosition'](_0x54043c['position'],_0x3570c7),_0x1bef92=null===_0x54043c['_authorId']?null:_0x54043c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15ed99=_0x374b0e['parent'],_0x4d9414=this['_revisionId'],_0x3a584c=[];for(const _0xca2573 of _0x54043c['nodes'])if(_0xca2573['is']('element'))_0x3a584c['push'](this['_makeIdsRoot'](_0xca2573));else{for(let _0x347d00=0x0;_0x347d00<_0xca2573['offsetSize'];_0x347d00++)_0x3a584c['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1db7f4=this['_revisionId'];for(let _0x9aade1=_0x4d9414;_0x9aade1<_0x1db7f4;_0x9aade1++)this['_touched']['set'](_0x9aade1,{'userId':_0x1bef92});_0x15ed99['_insertChild'](_0x374b0e['offset'],_0x3a584c);}['_handleMoveOperation'](_0x6794e0){(_0x6794e0=this['_cloneOperation'](_0x6794e0,this['_idsRoots']))['_execute']();const _0x1afc1a=null===_0x6794e0['_authorId']?null:_0x6794e0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a1c6e=_0x6794e0['getMovedRangeStart'](),_0xa6e78c=_0x4a1c6e['parent'],_0x29dca6=_0x4a1c6e['offset'];!function _0x112a55(_0x55c56e,_0x578e5c,_0x4e68a2,_0x312253){for(let _0x5dddfe=_0x4e68a2;_0x5dddfe<_0x312253;_0x5dddfe++){const _0x1b0e72=_0x578e5c['getChild'](_0x5dddfe);_0x1b0e72['is']('element','$text')?_0x55c56e['set'](_0x1b0e72['getAttribute']('vid'),{'userId':_0x1afc1a}):(_0x55c56e['set'](_0x1b0e72['getAttribute']('vid_start'),{'userId':_0x1afc1a}),_0x112a55(_0x55c56e,_0x1b0e72,0x0,_0x1b0e72['childCount']),_0x55c56e['set'](_0x1b0e72['getAttribute']('vid_end'),{'userId':_0x1afc1a}));}}(this['_touched'],_0xa6e78c,_0x29dca6,_0x29dca6+_0x6794e0['howMany']);}['_handleMergeOperation'](_0x51132e){const _0x25e47a=null===(_0x51132e=this['_cloneOperation'](_0x51132e,this['_idsRoots']))['_authorId']?null:_0x51132e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d418f=_0x51132e['targetPosition']['parent'],_0x18d018=_0x51132e['sourcePosition']['parent'],_0x3dc13b=_0x4d418f['getAttribute']('vid_end'),_0x3fb3fc=_0x18d018['getAttribute']('vid_start');_0x4d418f['_setAttribute']('vid_end',_0x18d018['getAttribute']('vid_end')),_0x18d018['_setAttribute']('vid_end',_0x3dc13b),this['_touched']['set'](_0x3fb3fc,{'userId':_0x25e47a}),this['_touched']['set'](_0x3dc13b,{'userId':_0x25e47a}),_0x51132e['_execute']();}['_handleSplitOperation'](_0x3e2adb){const _0x50aacb=null===(_0x3e2adb=this['_cloneOperation'](_0x3e2adb,this['_idsRoots']))['_authorId']?null:_0x3e2adb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ec318=_0x3e2adb['graveyardPosition'],_0x551596=_0x3e2adb['splitPosition']['parent'];_0x3e2adb['_execute']();const _0x2313ea=_0x551596['getAttribute']('vid_end'),_0x59e5cb=_0x3e2adb['insertionPosition']['nodeAfter'];if(_0x5ec318){const _0x4c6da0=_0x59e5cb['getAttribute']('vid_end'),_0xf15cf7=_0x551596['getAttribute']('vid_end');_0x551596['_setAttribute']('vid_end',_0x4c6da0),_0x59e5cb['_setAttribute']('vid_end',_0xf15cf7),this['_touched']['set'](_0x551596['getAttribute']('vid_end'),{'userId':_0x50aacb}),this['_touched']['set'](_0x59e5cb['getAttribute']('vid_start'),{'userId':_0x50aacb});}else{const _0x53d985=this['_revisionId']++,_0x47f709=this['_revisionId']++;_0x551596['_setAttribute']('vid_end',_0x53d985),_0x59e5cb['_setAttribute']('vid_start',_0x47f709),_0x59e5cb['_setAttribute']('vid_end',_0x2313ea),this['_touched']['set'](_0x53d985,{'userId':_0x50aacb}),this['_touched']['set'](_0x47f709,{'userId':_0x50aacb});}}['_handleMarkerOperation'](_0x2e6e2a){if(!_0x2e6e2a['affectsData'])return;const _0x5df63d=(_0x2e6e2a=this['_cloneOperation'](_0x2e6e2a,this['_diffRoots']))['oldRange']?_0x2e6e2a['oldRange']['root']:null,_0x302192=_0x2e6e2a['newRange']?_0x2e6e2a['newRange']['root']:null;_0x5df63d&&this['_markers']['delete'](_0x2e6e2a['name']),_0x302192&&this['_markers']['set'](_0x2e6e2a['name'],_0x2e6e2a['newRange']['clone']());const _0x3f2b11=null===_0x2e6e2a['_authorId']?null:_0x2e6e2a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1026a5=_0x2e6e2a['name'];if(!this['_touchedMarkers']['has'](_0x1026a5))return void this['_touchedMarkers']['set'](_0x1026a5,{'range':_0x2e6e2a['oldRange'],'userId':_0x3f2b11});const _0x45d9bf=this['_touchedMarkers']['get'](_0x1026a5),_0x1e491c=_0x45d9bf['range'],_0x3e6ce5=_0x2e6e2a['newRange'];null==_0x1e491c&&null==_0x3e6ce5||_0x1e491c&&_0x3e6ce5&&_0x1e491c['isEqual'](_0x3e6ce5)?this['_touchedMarkers']['delete'](_0x2e6e2a['name']):_0x45d9bf['userId']=_0x3f2b11;}['_handleRootOperation'](_0x3c747b,_0x35d564){this['_diffRoots']['has'](_0x3c747b['rootName'])?this['_diffRoots']['get'](_0x3c747b['rootName'])['_isAttached']=_0x3c747b['isAdd']:(this['_diffRoots']['set'](_0x3c747b['rootName'],P(_0x3c747b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3c747b['rootName'],{}),_0x35d564&&this['_idsRoots']['set'](_0x3c747b['rootName'],P(_0x3c747b['rootName'],!0x0)));const _0x3af8da=null===_0x3c747b['_authorId']?null:_0x3c747b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52484b=this['_touchedRoots']['get'](_0x3c747b['rootName']);_0x52484b&&_0x52484b['userId']===_0x3af8da?this['_touchedRoots']['delete'](_0x3c747b['rootName']):this['_touchedRoots']['set'](_0x3c747b['rootName'],{'userId':_0x3af8da,'isAttached':_0x3c747b['isAdd']});}['_handleRootAttributeOperation'](_0x52d6e1){const _0x32e1e3=this['_diffRootsAttributes']['get'](_0x52d6e1['root']['rootName']);null===_0x52d6e1['newValue']?delete _0x32e1e3[_0x52d6e1['key']]:_0x32e1e3[_0x52d6e1['key']]=_0x52d6e1['newValue'];}}function N(_0x30d006){const _0x32a758=P(_0x30d006['rootName'],_0x30d006['isAttached']());for(const _0x42ff10 of _0x30d006['getChildren']()){const _0x2df788=_0x42ff10['_clone'](!0x0);_0x32a758['_appendChild'](_0x2df788);}return _0x32a758;}function P(_0x122eef,_0x29eb9f=!0x0){const _0x8ca628=new vt();return _0x8ca628['rootName']=_0x122eef,_0x8ca628['_isAttached']=_0x29eb9f,_0x8ca628['isAttached']=()=>_0x8ca628['_isAttached'],_0x8ca628;}function F(_0x1144be,_0x54d913,_0x43eeea){const _0xfb0d38='elementEnd'==_0x1144be['type']?_0x43eeea['createPositionAt'](_0x1144be['item'],'end'):_0x43eeea['createPositionBefore'](_0x1144be['item']);return _0x43eeea['createPositionFromPath'](_0x54d913,_0xfb0d38['path'],_0xfb0d38['stickiness']);}function B(_0x228654,_0x46aa96,_0x5ec38d){const _0x1a5c49='elementStart'==_0x228654['type']?_0x5ec38d['createPositionAt'](_0x228654['item'],0x0):_0x5ec38d['createPositionAfter'](_0x228654['item']);return _0x5ec38d['createPositionFromPath'](_0x46aa96,_0x1a5c49['path'],_0x1a5c49['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x26994c,_0x63b7c5){super(_0x26994c),this['focusTracker']=new _0x1bca59(),this['keystrokes']=new _0x34f2e4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x63b7c5),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x573f6c(this);}['render'](){super['render'](),_0x2425f0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x320c66=_0x524a58=>_0x524a58['stopPropagation']();this['keystrokes']['set']('arrowright',_0x320c66),this['keystrokes']['set']('arrowleft',_0x320c66),this['keystrokes']['set']('arrowup',_0x320c66),this['keystrokes']['set']('arrowdown',_0x320c66);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x53e07c){this['revisionNameInputView']['fieldView']['element']['value']=_0x53e07c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2b51f9){const _0x4687bc=new _0x263937(this['locale'],_0x399d5e),_0xf840ed=_0x4687bc['fieldView'];_0xf840ed['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5458ac=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2b51f9&&(_0x5458ac+='\x20('+g(this['locale'],'optional')+')'),(_0x4687bc['label']=_0x5458ac,_0xf840ed['on']('input',()=>{this['revisionNameInputValue']=_0xf840ed['element']['value']['trim']();}),_0x4687bc);}}class f extends _0x3a83bf{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1966eb=this['editor'],_0x189850=_0x1966eb['plugins']['get']('RevisionTracker');_0x1966eb['ui']['componentFactory']['add']('revisionHistory',_0x3e8ee8=>{const _0xe19b10=_0x72e1f8(_0x3e8ee8),_0x456282=_0xe19b10['panelView']['children'],_0x23fd55=new _0x456cd6(_0x3e8ee8),_0x4fba12=new _0x3b4857(_0x3e8ee8),_0x9032df=new te(_0x3e8ee8),_0x37eb80=new _0x3b4857(_0x3e8ee8),_0x319688=new te(_0x3e8ee8);return _0xe19b10['bind']('isEnabled')['to'](_0x189850,'isReady',_0x189850,'isEnabled',_0x1966eb,'isReadOnly',(_0x23eb3a,_0x18f7ed,_0x133f43)=>_0x23eb3a&&_0x18f7ed&&!_0x133f43),_0xe19b10['buttonView']['set']({'icon':_0x16f088,'label':g(_0x3e8ee8,'Revision\x20history'),'tooltip':!0x0}),_0x9032df['set']({'label':g(_0x3e8ee8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x9032df['bind']('isEnabled')['to'](_0x189850,'isReady',_0x189850,'isEnabled',_0x1966eb,'isReadOnly',(_0x40a37c,_0x53e383,_0x1ffd5b)=>_0x40a37c&&_0x53e383&&!_0x1ffd5b),_0x9032df['on']('execute',()=>this['_showDialog']()),_0x319688['set']({'label':g(_0x3e8ee8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x319688['bind']('isEnabled')['to'](_0x189850,'isReady',_0x1966eb,'isReadOnly',(_0x2192d1,_0x5e9201)=>_0x2192d1&&!_0x5e9201),_0x319688['on']('execute',()=>{_0x1966eb['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xe19b10['isOpen']=!0x1,_0x1966eb['editing']['view']['focus']();}),_0x4fba12['children']['add'](_0x9032df),_0x37eb80['children']['add'](_0x319688),_0x23fd55['role']='menu',_0x23fd55['items']['addMany']([_0x4fba12,_0x37eb80]),_0x456282['add'](_0x23fd55),_0xe19b10;}),_0x1966eb['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x57ed78=this['editor'],_0x453e56=_0x57ed78['locale'],_0x4c0935=new _0x2bb94e(_0x453e56),_0x16f05b=new _0x3cc535(_0x453e56);_0x4c0935['buttonView']['set']({'icon':_0x16f088,'label':g(_0x453e56,'Revision\x20history')});const _0xba1dbd=new _0x4b7eb2(_0x453e56,_0x4c0935),_0x3dd68f=new _0x36566e(_0x453e56);_0x3dd68f['set']({'label':g(_0x453e56,'Save\x20current\x20revision')}),_0x3dd68f['delegate']('execute')['to'](_0x4c0935),_0x3dd68f['on']('execute',()=>{this['_showDialog']();}),_0xba1dbd['children']['add'](_0x3dd68f),_0x16f05b['items']['add'](_0xba1dbd);const _0x2d2bde=new _0x4b7eb2(_0x453e56,_0x4c0935),_0x4c2101=new _0x36566e(_0x453e56);return _0x4c2101['set']({'label':g(_0x453e56,'Open\x20revision\x20history')}),_0x4c2101['delegate']('execute')['to'](_0x4c0935),_0x4c2101['on']('execute',()=>{_0x57ed78['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2d2bde['children']['add'](_0x4c2101),_0x16f05b['items']['add'](_0x2d2bde),_0x4c0935['panelView']['children']['add'](_0x16f05b),_0x4c0935;}['_showDialog'](){const _0xbf8828=this['editor'],_0x5a15f1=_0xbf8828['locale'],_0x57f6e8=_0xbf8828['plugins']['get']('Dialog'),_0x5af262=_0xbf8828['plugins']['get']('RevisionTracker');function _0x4957be(_0x3a131f){_0xbf8828['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3a131f['revisionName']?_0x3a131f['revisionNameInputView']['errorText']=g(_0x5a15f1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xbf8828['plugins']['get'](u)['saveRevision']({'name':_0x3a131f['revisionName']}),_0x57f6e8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4957be(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x57f6e8['show']({'id':'revisionSave','title':g(_0x5a15f1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0xbf8828['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x57f6e8['hide']()},{'label':g(_0xbf8828['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2b4d66){_0x2b4d66['bind']('isEnabled')['to'](_0x5af262,'isReady',_0x5af262,'isEnabled',_0xbf8828,'isReadOnly',(_0x6bcc84,_0x3eef82,_0x4e46c8)=>_0x6bcc84&&_0x3eef82&&!_0x4e46c8);},'onExecute':()=>_0x4957be(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x55129a=this['editor'],_0x1d639d=_0x55129a['locale'];this['_saveRevisionFormView']=new hs(_0x1d639d,_0x55129a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1cd8de,_0x404a1f){super(_0x1cd8de),this['_model']=_0x404a1f,this['changeId']=_0x404a1f['id'];const _0x13f916=this['bindTemplate'],_0x14e17b=g(_0x1cd8de,_0x404a1f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x404a1f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x404a1f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x13f916['to']('type',_0x1a018a=>'ck-revision-change__'+_0x1a018a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x14e17b}]},{'text':'\x20'+_0x404a1f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x482aa6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3cfeae){super(),this['id']=_0x3cfeae['id']||_0x56f194(),this['author']=_0x3cfeae['author'],this['type']=_0x3cfeae['type'],this['data']=_0x3cfeae['data']||{},this['rootName']=_0x3cfeae['rootName'],this['set']('createdAt',_0x3cfeae['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(_0x14275b,_0x585631){this['newRevisionId']=_0x14275b,this['oldRevisionId']=_0x585631,this['changes']=new _0x3c755c();}['_setChanges'](_0x266cd0){for(const _0x2468b6 of _0x266cd0)this['changes']['add'](_0x2468b6);}}class m extends _0x3a83bf{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4fe82c,_0x487f43,I,V];}constructor(_0x41d82d){super(_0x41d82d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2f55ab,_0x4f8c2b,_0x5cb89a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2bb31f=>{for(const _0x1f8dba of this['editor']['editing']['view']['document']['roots'])_0x5cb89a?_0x2bb31f['removeClass']('ck-editor__editable__overlay',_0x1f8dba):_0x2bb31f['addClass']('ck-editor__editable__overlay',_0x1f8dba);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1aae30=>null!==_0x1aae30),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x33f776,_0xbe61ce,_0x486683)=>_0x33f776&&_0x486683?_0xbe61ce['changes']['getIndex'](_0x486683):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e929d,_0xe31f4b)=>_0x5e929d?_0xe31f4b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x487f43);}['init'](){const _0xf9c9a7=this['editor'],_0x17e8b1=new wt(_0xf9c9a7,{'direction':'backward'}),_0x2b67b1=new wt(_0xf9c9a7,{'direction':'forward'});(_0xf9c9a7['commands']['add']('showPreviousChange',_0x17e8b1),_0xf9c9a7['commands']['add']('showNextChange',_0x2b67b1),_0xf9c9a7['commands']['add']('restoreRevision',new mt(_0xf9c9a7)),this['on']('change:numberOfChanges',()=>{_0x17e8b1['refresh'](),_0x2b67b1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xf9c9a7['enableReadOnlyMode']('revision-viewer'),_0xf9c9a7['plugins']['has']('WidgetToolbarRepository'))&&_0xf9c9a7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x16475f){return await this['_utils']['loadRevisionData'](_0x16475f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x16475f);}async['getRevisionRootsAttributes'](_0x27e06d){return await this['_utils']['loadRevisionData'](_0x27e06d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x27e06d);}async['compare'](_0x3e9734,_0x5c76f7,_0x4a8206=!0x1){if(!this['isEnabled'])return;const _0x2be5dc=this['diff'],_0x38b784=this['repository'],_0x390068='string'==typeof _0x3e9734?_0x38b784['getRevision'](_0x3e9734):_0x3e9734,_0x3d5a64='string'==typeof _0x5c76f7?_0x38b784['getRevision'](_0x5c76f7):_0x5c76f7,_0x57764a=_0x390068['id'],_0x3517fd=_0x3d5a64?_0x3d5a64['id']:null;if(!_0x4a8206&&this['diff']&&this['diff']['newRevisionId']===_0x57764a&&this['diff']['oldRevisionId']===_0x3517fd)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x57764a,_0x3517fd);const _0x355823=this['_getRevisionsRange'](_0x390068,_0x3d5a64,!0x0)['map'](_0x4df5dc=>this['_utils']['loadRevisionData'](_0x4df5dc,this['adapter']));return _0x355823['push'](new Promise(_0x337688=>{setTimeout(_0x337688,0x14);})),Promise['all'](_0x355823)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2bda63=this['_getDiff'](_0x57764a,_0x3517fd);for(const _0x3b4c55 of _0x2bda63['changes'])this['_changeIdToChange']['set'](_0x3b4c55['id'],_0x3b4c55);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1bf9e6=>{for(const _0x11d171 of this['editor']['model']['document']['getRootNames']())_0x1bf9e6['detachRoot'](_0x11d171);for(const _0x3d370e of Object['keys'](_0x2bda63['model'])){const _0x11ba9e=_0x1bf9e6['addRoot'](_0x3d370e);for(const _0x1a29ff of Object['keys'](_0x2bda63['attributes'][_0x3d370e]))_0x1bf9e6['setAttribute'](_0x1a29ff,_0x2bda63['attributes'][_0x3d370e][_0x1a29ff],_0x11ba9e);_0x1bf9e6['insert'](_0x2bda63['model'][_0x3d370e],_0x11ba9e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2bda63['changes'])),this['isReady']=!0x0;})['catch'](_0x4b69db=>{console['error'](_0x4b69db),this['_cleanUp'](),_0x2be5dc&&(this['diff']=_0x2be5dc),this['isReady']=!0x0;});}['addRevisionData'](_0x3026a1,_0x50eda5){const _0x15296e=this['repository']['createRevision'](_0x3026a1);return _0x15296e['on']('_update',(_0xb97670,_0x285b45,_0x24974d)=>_0x50eda5(_0x285b45,_0x24974d,_0x15296e)),this['repository']['addRevision'](_0x15296e),_0x15296e;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x10d976=>{for(const _0x2395ad of this['editor']['model']['document']['getRootNames']())_0x10d976['detachRoot'](_0x2395ad);});}['_sortAndFilterDiffChanges'](_0x4b9949){const _0x35c484=[],_0x1224d9=new Map();for(const _0x4771e3 of this['editor']['model']['document']['getRootNames']()){const _0x5a27da=this['editor']['editing']['view']['getDomRoot'](_0x4771e3);if(!_0x5a27da)continue;const _0x2673fe=_0x5a27da['getClientRects']()['item'](0x0);_0x2673fe&&(_0x35c484['push'](_0x4771e3),_0x1224d9['set'](_0x4771e3,_0x2673fe));}return _0x35c484['sort']((_0x49f86f,_0x4230bb)=>{const _0x2280e1=_0x1224d9['get'](_0x49f86f),_0x204c32=_0x1224d9['get'](_0x4230bb);return _0x2280e1['y']-_0x204c32['y']||_0x2280e1['x']-_0x204c32['x'];}),(_0x4b9949=_0x4b9949['filter'](_0x3298cd=>_0x35c484['includes'](_0x3298cd['rootName'])))['sort']((_0x3ed2a9,_0xa047a)=>_0x35c484['indexOf'](_0x3ed2a9['rootName'])-_0x35c484['indexOf'](_0xa047a['rootName'])),_0x4b9949;}['_makeTape'](_0x27129c){const _0x42195c=Array['from'](_0x27129c['markers'])['filter'](([_0x18c109,_0x1e23d1])=>_0x18c109['startsWith']('revision:')&&!_0x1e23d1['isCollapsed']),_0x12f195=Array['from'](this['editor']['model']['createRangeIn'](_0x27129c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x42195c['length'])for(const _0x4cf7af of _0x12f195){const [_0x5ef593,_0x5c6120]=_0x42195c[0x0],[,_0x9a535b,_0x1250cd]=_0x5ef593['split'](':');if(_0x5c6120['end']['isEqual'](_0x4cf7af['nextPosition'])&&_0x42195c['shift'](),(_0x4cf7af['previousPosition']['isEqual'](_0x5c6120['start'])||_0x4cf7af['previousPosition']['isAfter'](_0x5c6120['start']))&&('insertion'==_0x9a535b?_0x4cf7af['isAdded']={'userId':_0x1250cd}:'deletion'==_0x9a535b&&(_0x4cf7af['isRemoved']={'userId':_0x1250cd})),0x0==_0x42195c['length'])break;}return _0x12f195;}['_refreshStartEndIndex'](_0x1458d3){const _0x7d04f=new Map();for(let _0xeb4a8d=0x0;_0xeb4a8d<_0x1458d3['length'];_0xeb4a8d++)'text'===_0x1458d3[_0xeb4a8d]['type']?(_0x1458d3[_0xeb4a8d]['item']['startIndex']=_0xeb4a8d,_0x1458d3[_0xeb4a8d]['item']['endIndex']=_0xeb4a8d):('elementStart'===_0x1458d3[_0xeb4a8d]['type']?_0x1458d3[_0xeb4a8d]['item']['startIndex']=_0xeb4a8d:'elementEnd'===_0x1458d3[_0xeb4a8d]['type']&&(_0x1458d3[_0xeb4a8d]['item']['endIndex']=_0xeb4a8d),_0x7d04f['set'](_0x1458d3[_0xeb4a8d]['id'],_0xeb4a8d));for(const _0x164583 of _0x7d04f['values']())'elementStart'===_0x1458d3[_0x164583]['type']?_0x1458d3[_0x164583]['item']['endIndex']=_0x7d04f['get'](_0x1458d3[_0x164583]['pairId']):'elementEnd'===_0x1458d3[_0x164583]['type']&&(_0x1458d3[_0x164583]['item']['startIndex']=_0x7d04f['get'](_0x1458d3[_0x164583]['pairId']));}['_processTape'](_0x2c66d4){for(let _0x261486=0x0;_0x261486<_0x2c66d4['length'];_0x261486++){if('elementStart'===_0x2c66d4[_0x261486]['type'])_0x2c66d4[_0x261486]['item']['startIndex']=_0x261486;else{if('elementEnd'===_0x2c66d4[_0x261486]['type']){_0x2c66d4[_0x261486]['item']['endIndex']=_0x261486;const _0x500549=_0x2c66d4[_0x261486]['item']['startIndex'];_0x2c66d4[_0x500549]['pairId']=_0x2c66d4[_0x261486]['id'],_0x2c66d4[_0x261486]['pairId']=_0x2c66d4[_0x500549]['id'];}else _0x2c66d4[_0x261486]['item']['startIndex']=_0x261486,_0x2c66d4[_0x261486]['item']['endIndex']=_0x261486,_0x2c66d4[_0x261486]['pairId']=null;}_0x2c66d4[_0x261486]['markersStart']||(_0x2c66d4[_0x261486]['markersStart']=[],_0x2c66d4[_0x261486]['markersEnd']=[]);}}['_markInsertions'](_0x31f124,_0x5ea45a){const _0x5de569=_0x31f124['filter'](_0x6cc96f=>!_0x6cc96f['isAdded']);for(let _0x3b71e6=0x0;_0x3b71e6<_0x5ea45a['length'];_0x3b71e6++)_0x5ea45a[_0x3b71e6]['isAdded']&&(_0x5de569[_0x3b71e6]['isAdded']=_0x5ea45a[_0x3b71e6]['isAdded']);}['_getDiff'](_0xbca8e7,_0x58d8cf=null){const _0x4d3496=this['repository']['getRevision'](_0xbca8e7),_0x57768a=_0x58d8cf?this['repository']['getRevision'](_0x58d8cf):null,_0x441b86=this['_getRevisionsRange'](_0x4d3496,_0x57768a),_0x214f4a=_0x441b86[_0x441b86['length']-0x1],_0x33179c=new Map(),_0xebfff2={'model':{},'attributes':{},'changes':[]},_0xb8d657=new Set(),_0x2a3d9a=new Map();for(let _0x425065=_0x441b86['length']-0x1;_0x425065>=0x0;_0x425065--){const _0x5a237a=_0x441b86[_0x425065];for(const _0x1d2b7b of Object['keys'](_0x5a237a['diffData']))if(_0x5a237a['diffData'][_0x1d2b7b]['attachChange']){const _0x5cb855=_0x5a237a['diffData'][_0x1d2b7b]['attachChange'];_0x5cb855['isAttached']?(_0xb8d657['add'](_0x1d2b7b),_0x2a3d9a['has'](_0x1d2b7b)&&_0x2a3d9a['get'](_0x1d2b7b)['userId']==_0x5cb855['userId']?_0x2a3d9a['delete'](_0x1d2b7b):_0x2a3d9a['set'](_0x1d2b7b,_0x5cb855)):_0x2a3d9a['has'](_0x1d2b7b)?(_0xb8d657['delete'](_0x1d2b7b),_0x2a3d9a['delete'](_0x1d2b7b)):(_0xb8d657['add'](_0x1d2b7b),_0x2a3d9a['set'](_0x1d2b7b,_0x5cb855));}else _0xb8d657['add'](_0x1d2b7b);}for(const _0x2cc43e of _0xb8d657){const _0x42df91=_0x2a3d9a['has'](_0x2cc43e)&&!_0x2a3d9a['get'](_0x2cc43e)['isAttached'];let _0x21a11c=_0x42df91?_0x441b86['length']-0x1:0x0;const _0x2698b5=_0x42df91?-0x1:0x1;for(;_0x441b86[_0x21a11c];){const _0x53fe9e=_0x441b86[_0x21a11c];if(_0x53fe9e['diffData'][_0x2cc43e]){const _0x52eaa2=_0x42df91?_0x53fe9e['diffData'][_0x2cc43e]['attributesBefore']:_0x53fe9e['diffData'][_0x2cc43e]['attributesAfter'];_0xebfff2['attributes'][_0x2cc43e]=_0x52eaa2?_0x1a7cd1(_0x52eaa2):{};break;}_0x21a11c+=_0x2698b5;}}for(const _0x25b596 of _0x441b86){_0x25b596['model']={};for(const _0x11a6fc of _0x25b596['authors'])_0x33179c['set'](_0x11a6fc['id'],_0x11a6fc);for(const _0x30d70d of _0xb8d657){const _0x23e165=_0x25b596['diffData'][_0x30d70d]?_0x25b596['diffData'][_0x30d70d]['insertions']:'[]',_0x8f00a1=_0x25b596['diffData'][_0x30d70d]?_0x25b596['diffData'][_0x30d70d]['deletions']:'[]';_0x25b596['model'][_0x30d70d]={'insertions':this['_utils']['_makeModelFromViewString'](_0x23e165),'deletions':this['_utils']['_makeModelFromViewString'](_0x8f00a1)};}}for(const _0x4fcf9b of _0xb8d657){let _0x1f49d6=null,_0xb24754=0x0;const _0x566f33=new Map(Array['from'](_0x4d3496['model'][_0x4fcf9b]['insertions']['markers'])['filter'](([_0x3e12ca])=>!_0x3e12ca['startsWith']('revision:')));let _0x4a4da8=0x0;for(const _0x2a26c0 of _0x441b86){const _0x3812ba=this['_makeTape'](_0x2a26c0['model'][_0x4fcf9b]['insertions']);_0x2a26c0==_0x4d3496?(_0x1f49d6=_0x3812ba,_0xb24754=_0x1f49d6['length'],_0x1f49d6['forEach'](_0x1c3ebb=>{_0x1c3ebb['id']=_0x4a4da8++;}),this['_processTape'](_0x1f49d6)):this['_markInsertions'](_0x1f49d6,_0x3812ba);const _0x5eda3f=_0x1f49d6['filter'](_0xa0a13c=>!_0xa0a13c['isAdded'])['map'](_0xc722bc=>_0xc722bc['id']);let _0x1b21f1=0x0;const _0x139a94=this['_makeTape'](_0x2a26c0['model'][_0x4fcf9b]['deletions']);_0x139a94['forEach'](_0x4badec=>{_0x4badec['isRemoved']?_0x4badec['id']=_0xb24754++:_0x4badec['id']=_0x5eda3f[_0x1b21f1++];}),this['_processTape'](_0x139a94),this['_setDistance'](_0x1f49d6,'isAdded'),this['_setDistance'](_0x139a94,'isRemoved'),_0x2a26c0==_0x4d3496&&this['_markMarkers'](_0x1f49d6,_0x566f33),_0x1f49d6=this['_joinTapes'](_0x1f49d6,_0x139a94),this['_refreshStartEndIndex'](_0x1f49d6),this['_setDistance'](_0x1f49d6,'isRemoved');}_0x1f49d6=_0x1f49d6['filter'](_0x414b55=>!(_0x414b55['isAdded']&&_0x414b55['isRemoved']));const _0x48c9a3=new Map(_0x214f4a['model'][_0x4fcf9b]['deletions']['markers']),_0x264793=new Set(_0x566f33['keys']());for(const _0x4c3345 of _0x48c9a3['keys']())_0x264793['delete'](_0x4c3345);this['_markSuggestions'](_0x1f49d6,_0x264793),this['_fixObsoleteTags'](_0x1f49d6),_0x1f49d6=this['_removeMissingPairs'](_0x1f49d6),_0x1f49d6=this['_markMismatchedRemovedTags'](_0x1f49d6),_0x1f49d6=this['_removeUnsupportedChanges'](_0x1f49d6);const {root:_0x3d3d6a,changes:_0x469fd7}=this['_makeModelFromTape'](_0x1f49d6,_0x33179c,_0x4fcf9b);_0xebfff2['model'][_0x4fcf9b]=_0x3d3d6a;const _0x38427b=_0x2a3d9a['get'](_0x4fcf9b);if(_0x38427b){const _0x3d3b06=_0x33179c['get'](_0x38427b['userId']),_0x27d27d=new r({'author':_0x3d3b06,'type':_0x38427b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4fcf9b});_0x469fd7['unshift'](_0x27d27d),_0xebfff2['attributes'][_0x4fcf9b]['revisionHistoryAttachChange']=_0x27d27d['id'];}_0xebfff2['changes']=_0xebfff2['changes']['concat'](_0x469fd7);}return _0xebfff2;}['_markMarkers'](_0x5c65ff,_0x1fa958){for(let _0x4d357d=0x0;_0x4d357d<_0x5c65ff['length'];_0x4d357d++)for(const [_0xb3fc5f,_0x1cdab4]of _0x1fa958)!_0x1cdab4['isCollapsed']&&_0x1cdab4['start']['isEqual'](_0x5c65ff[_0x4d357d]['previousPosition'])&&_0x5c65ff[_0x4d357d]['markersStart']['push'](_0xb3fc5f),_0x1cdab4['end']['isEqual'](_0x5c65ff[_0x4d357d]['nextPosition'])&&_0x5c65ff[_0x4d357d]['markersEnd']['push'](_0xb3fc5f);}['_joinTapes'](_0x22b6f3,_0x1e36ff){let _0x34bf9d=[],_0xd834f8=0x0,_0x3227ab=0x0;for(;_0xd834f8<_0x22b6f3['length']||_0x3227ab<_0x1e36ff['length'];){const _0x24cf80=_0x22b6f3[_0xd834f8]||{},_0x431bc3=_0x1e36ff[_0x3227ab]||{};if(_0x24cf80['id']==_0x431bc3['id'])_0xd834f8++,_0x3227ab++,_0x34bf9d['push'](_0x24cf80);else{if(_0x431bc3['isRemoved']&&_0x24cf80['isAdded']){const {commonTape:_0x247d38,iEnd:_0x4798ca,jEnd:_0x3a047d}=this['_threeWayMerge'](_0x22b6f3,_0xd834f8,_0x1e36ff,_0x3227ab);_0x34bf9d=_0x34bf9d['concat'](_0x247d38),_0xd834f8=_0x4798ca,_0x3227ab=_0x3a047d;}else _0x431bc3['isRemoved']?(_0x3227ab++,_0x34bf9d['push'](_0x431bc3)):(_0xd834f8++,_0x34bf9d['push'](_0x24cf80));}}return _0x34bf9d;}['_markSuggestions'](_0x1c463d,_0xfbed82){const _0x338da8=[];for(let _0x40697a=0x0;_0x40697a<_0x1c463d['length'];_0x40697a++){for(let _0x1556f6=0x0;_0x1556f6<_0x1c463d[_0x40697a]['markersStart']['length'];_0x1556f6++){const _0x317606=_0x1c463d[_0x40697a]['markersStart'][_0x1556f6];if(!_0xfbed82['has'](_0x317606))continue;const {group:_0x42fe8f,type:_0x45d372,authorId:_0x66a8b2}=_0x1d9865(_0x317606);'revision-suggestion'!=_0x42fe8f||'insertion'!=_0x45d372&&'deletion'!=_0x45d372||(_0x338da8['unshift']({'type':_0x45d372,'name':_0x317606,'userId':_0x66a8b2}),_0x1c463d[_0x40697a]['markersStart']['splice'](_0x1556f6,0x1),_0x1556f6--);}_0x576d9b(_0x1c463d[_0x40697a]);for(let _0x48a93b=0x0;_0x48a93b<_0x1c463d[_0x40697a]['markersEnd']['length'];_0x48a93b++){const _0x127071=_0x1c463d[_0x40697a]['markersEnd'][_0x48a93b];if(!_0xfbed82['has'](_0x127071))continue;const {group:_0x375ce0,type:_0x205924}=_0x1d9865(_0x127071);if('revision-suggestion'!=_0x375ce0||'insertion'!=_0x205924&&'deletion'!=_0x205924)continue;_0x1c463d[_0x40697a]['markersEnd']['splice'](_0x48a93b,0x1),_0x48a93b--;const _0x118465=_0x338da8['findIndex'](_0x5551ff=>_0x5551ff['name']==_0x127071);_0x118465>-0x1&&_0x338da8['splice'](_0x118465,0x1);}}function _0x1d9865(_0x51d591){const _0x37090e=_0x51d591['split'](':');return{'group':_0x37090e[0x0],'type':_0x37090e[0x1],'subType':_0x37090e['length']>=0x5?_0x37090e[0x2]:null,'id':_0x37090e['length']<0x5?_0x37090e[0x2]:_0x37090e[0x3],'authorId':_0x37090e['length']<0x5?_0x37090e[0x3]:_0x37090e[0x4],'markerCount':0x6==_0x37090e['length']?_0x37090e[0x5]:null};}function _0x576d9b(_0x1b74cf){for(let _0x46f7cc=0x0;_0x46f7cc<_0x338da8['length'];_0x46f7cc++){if(_0x1b74cf['isAdded']&&'insertion'==_0x338da8[_0x46f7cc]['type'])return _0x1b74cf['isAddSuggestion']=_0x338da8[_0x46f7cc],void delete _0x1b74cf['isAdded'];if(!_0x1b74cf['isAdded']&&!_0x1b74cf['isRemoved']&&'deletion'==_0x338da8[_0x46f7cc]['type'])return void(_0x1b74cf['isRemoveSuggestion']=_0x338da8[_0x46f7cc]);}}}['_setDistance'](_0x364cb7,_0x3f5d66){let _0x3fb795=0x0,_0x289c0d=!0x1;const _0x516460=new Map();for(const _0xf3ff13 of _0x364cb7)_0xf3ff13[_0x3f5d66]?_0x289c0d&&(_0x3fb795++,_0x289c0d=!0x1):(_0x3fb795++,_0x289c0d=!0x0),_0x516460['set'](_0xf3ff13['id'],_0x3fb795);for(let _0x1575c8=0x0;_0x1575c8<_0x364cb7['length'];_0x1575c8++){if('isRemoved'==_0x3f5d66&&_0x364cb7[_0x1575c8]['isAdded']||'isAdded'==_0x3f5d66&&_0x364cb7[_0x1575c8]['isRemoved'])continue;if('text'==_0x364cb7[_0x1575c8]['type']){_0x364cb7[_0x1575c8]['distance']=0x0;continue;}const _0x59bab0=_0x516460['get'](_0x364cb7[_0x1575c8]['pairId']),_0x2d7ad5=_0x516460['get'](_0x364cb7[_0x1575c8]['id']);_0x364cb7[_0x1575c8]['distance']=_0x59bab0-_0x2d7ad5;}}['_getRevisionsRange'](_0x32fcb9,_0x538402,_0x95e7b=!0x1){const _0x305be8=[];let _0x5c0ea5=this['repository']['getIndex'](_0x32fcb9),_0x656393=this['repository']['getIndex'](_0x538402);for(-0x1==_0x656393&&(_0x656393=this['repository']['_revisions']['length'],_0x95e7b=!0x1);_0x5c0ea5<_0x656393;)_0x305be8['push'](this['repository']['getRevision'](_0x5c0ea5)),_0x5c0ea5++;return _0x95e7b&&_0x305be8['push'](this['repository']['getRevision'](_0x5c0ea5)),_0x305be8;}['_threeWayMerge'](_0x3d48a2,_0x2a6de0,_0x2fbab9,_0x25341f){const _0x5e1966=this['editor']['model']['schema'];let _0x4fcde7=_0x2a6de0;for(;_0x3d48a2[_0x4fcde7]&&_0x3d48a2[_0x4fcde7]['isAdded'];)_0x4fcde7++;let _0xe8f208=_0x25341f;for(;_0x2fbab9[_0xe8f208]&&_0x2fbab9[_0xe8f208]['isRemoved'];)_0xe8f208++;_0x1f9435(_0x3d48a2,_0x2a6de0,_0x4fcde7),_0x1f9435(_0x2fbab9,_0x25341f,_0xe8f208);const _0x48190b=_0x2fbab9['slice'](_0x25341f,_0xe8f208)['concat'](_0x3d48a2['slice'](_0x2a6de0,_0x4fcde7));return _0x48190b['sort']((_0xb9df4a,_0x2a709b)=>_0xb9df4a['side']!=_0x2a709b['side']?_0xb9df4a['side']-_0x2a709b['side']:_0xb9df4a['level']!=_0x2a709b['level']?_0xb9df4a['level']-_0x2a709b['level']:_0xb9df4a['distance']!=_0x2a709b['distance']?_0x2a709b['distance']-_0xb9df4a['distance']:!!_0xb9df4a['isAdded']!=!!_0x2a709b['isAdded']?-0x1==_0xb9df4a['side']||0x0==_0xb9df4a['side']?_0xb9df4a['isAdded']?-0x1:0x1:_0xb9df4a['isAdded']?0x1:-0x1:_0xb9df4a['index']-_0x2a709b['index']),{'commonTape':_0x48190b,'iEnd':_0x4fcde7,'jEnd':_0xe8f208};function _0x1f9435(_0xd414ff,_0x3d86cb,_0x2a9850){let _0x576129=-0x1,_0x1a3b58=Number['POSITIVE_INFINITY'],_0x110966=!0x0;for(let _0x470245=_0x3d86cb;_0x470245<_0x2a9850;_0x470245++)if(_0x5e1966['isInline'](_0xd414ff[_0x470245]['item'])||(_0x110966=!0x1),_0xd414ff[_0x470245]['item']['startIndex']<_0x3d86cb&&(_0x576129=_0x470245),_0xd414ff[_0x470245]['item']['endIndex']>=_0x2a9850){_0x1a3b58=_0x470245;break;}_0x110966&&(_0x576129=_0x2a9850-0x1);for(let _0x38e87d=_0x3d86cb;_0x38e87d<_0x2a9850;_0x38e87d++)_0xd414ff[_0x38e87d]['side']=_0x38e87d<=_0x576129?-0x1:_0x38e87d<_0x1a3b58?0x0:0x1,_0xd414ff[_0x38e87d]['index']=_0x38e87d;let _0x64ef24=0x0;for(let _0x3d60a8=_0x3d86cb;_0x3d60a8<=_0x576129;_0x3d60a8++)0x0==_0xd414ff[_0x3d60a8]['distance']?_0xd414ff[_0x3d60a8]['level']=_0x64ef24:(_0x64ef24++,_0xd414ff[_0x3d60a8]['level']=_0x64ef24,_0x64ef24++);for(let _0x6d2e9b=_0x3d86cb;_0x6d2e9b<_0x2a9850;_0x6d2e9b++)0x0==_0xd414ff[_0x6d2e9b]['side']&&(_0xd414ff[_0x6d2e9b]['level']=_0x64ef24);_0x64ef24=0x0;for(let _0x40025f=_0x2a9850-0x1;_0x40025f>=_0x1a3b58;_0x40025f--)0x0==_0xd414ff[_0x40025f]['distance']?_0xd414ff[_0x40025f]['level']=_0x64ef24:(_0x64ef24--,_0xd414ff[_0x40025f]['level']=_0x64ef24,_0x64ef24--);}}['_fixObsoleteTags'](_0x192ebe){const _0x249d27=new Map(),_0x4859a5=this['editor']['model']['schema'];for(let _0x26c35a=0x1;_0x26c35a<_0x192ebe['length'];_0x26c35a++){let _0x3ccf8c,_0x426f53,_0xfd4bd8;const _0xc7309f=_0x192ebe[_0x26c35a],_0x5489c5=_0x192ebe[_0x26c35a-0x1];if('text'==_0xc7309f['type'])continue;if(_0xc7309f['type']!=_0x5489c5['type'])continue;if(!_0x4859a5['isBlock'](_0x5489c5['item'])||_0x4859a5['isLimit'](_0x5489c5['item']))continue;if(!_0x4859a5['isBlock'](_0xc7309f['item'])||_0x4859a5['isLimit'](_0xc7309f['item']))continue;if((_0x192ebe[_0x26c35a]['isAdded']||_0x192ebe[_0x26c35a]['isAddSuggestion'])&&_0x192ebe[_0x26c35a-0x1]['isRemoved'])_0x3ccf8c=_0x192ebe[_0x26c35a],_0x426f53=_0x192ebe[_0x26c35a-0x1],_0xfd4bd8=_0x26c35a-0x1;else{if(!_0x192ebe[_0x26c35a]['isRemoved']||!_0x192ebe[_0x26c35a-0x1]['isAdded']&&!_0x192ebe[_0x26c35a-0x1]['isAddSuggestion'])continue;_0x3ccf8c=_0x192ebe[_0x26c35a-0x1],_0x426f53=_0x192ebe[_0x26c35a],_0xfd4bd8=_0x26c35a;}const _0x19da54=_0x3ccf8c['level']==_0x426f53['level'],_0x156a3b=Math['abs'](_0x3ccf8c['level'])<Math['abs'](_0x426f53['level'])&&0x0==_0x426f53['distance'];(_0x19da54||_0x156a3b)&&(_0x249d27['set'](_0x426f53['id'],_0x3ccf8c['id']),_0x192ebe['splice'](_0xfd4bd8,0x1),_0x26c35a--,_0x3ccf8c['isAdded']=!0x1);}for(let _0x384e53=0x0;_0x384e53<_0x192ebe['length'];_0x384e53++)_0x249d27['has'](_0x192ebe[_0x384e53]['pairId'])&&(_0x192ebe[_0x384e53]['pairId']=_0x249d27['get'](_0x192ebe[_0x384e53]['pairId']));}['_removeMissingPairs'](_0xa2504c){const _0x30ce8a=new Set(_0xa2504c['map'](_0x578cfd=>_0x578cfd['id']));for(let _0xc55f38=0x0;_0xc55f38<_0xa2504c['length'];_0xc55f38++)_0x30ce8a['has'](_0xa2504c[_0xc55f38]['pairId'])||0x0==_0xa2504c[_0xc55f38]['distance']||(_0xa2504c[_0xc55f38]['isIncorrect']=!0x0);return _0xa2504c['filter'](_0x4161f1=>!_0x4161f1['isIncorrect']);}['_markMismatchedRemovedTags'](_0xb57ec0){const _0x580aa8=new Set();for(let _0x3cb9e7=0x0;_0x3cb9e7<_0xb57ec0['length'];_0x3cb9e7++){if(_0x580aa8['has'](_0xb57ec0[_0x3cb9e7]['id'])&&_0xb57ec0[_0x3cb9e7]['isRemoved']&&(_0xb57ec0[_0x3cb9e7]['isIncorrect']=!0x0),_0xb57ec0[_0x3cb9e7]['isIncorrect'])continue;if(0x0==_0xb57ec0[_0x3cb9e7]['distance'])continue;if('elementStart'!=_0xb57ec0[_0x3cb9e7]['type'])continue;if(null==_0xb57ec0[_0x3cb9e7]['pairId'])continue;let _0x4a650e=_0x3cb9e7+0x1,_0x569a24=0x0;for(;_0xb57ec0[_0x4a650e]['id']!=_0xb57ec0[_0x3cb9e7]['pairId'];)'elementStart'==_0xb57ec0[_0x4a650e]['type']?_0x569a24++:'elementEnd'==_0xb57ec0[_0x4a650e]['type']&&_0x569a24--,_0x4a650e++;if(0x0!=_0x569a24){if(_0xb57ec0[_0x3cb9e7]['isRemoved'])_0xb57ec0[_0x3cb9e7]['isIncorrect']=!0x0;else{for(;_0x4a650e!=_0x3cb9e7;)_0xb57ec0[_0x4a650e]['isRemoved']&&0x0!=_0xb57ec0[_0x4a650e]['distance']&&(_0xb57ec0[_0x4a650e]['isIncorrect']=!0x0,_0x580aa8['add'](_0xb57ec0[_0x4a650e]['pairId'])),_0x4a650e--;}}}return _0xb57ec0['filter'](_0x43e95c=>!_0x43e95c['isIncorrect']);}['_removeUnsupportedChanges'](_0x423bca){const _0x2c4ce0=this['editor']['model']['schema'];for(let _0x808da6=0x0;_0x808da6<_0x423bca['length'];_0x808da6++){if(!(_0x423bca[_0x808da6]['isAdded']||_0x423bca[_0x808da6]['isAddSuggestion']||_0x423bca[_0x808da6]['isRemoved']||_0x423bca[_0x808da6]['isRemoveSuggestion']))continue;if(0x0==_0x423bca[_0x808da6]['distance'])continue;const _0x7d599e=_0x423bca[_0x808da6]['item'];_0x2c4ce0['isBlock'](_0x7d599e)||_0x2c4ce0['isLimit'](_0x7d599e)||(_0x423bca[_0x808da6]['isAdded']&&delete _0x423bca[_0x808da6]['isAdded'],_0x423bca[_0x808da6]['isAddSuggestion']&&delete _0x423bca[_0x808da6]['isAddSuggestion'],_0x423bca[_0x808da6]['isRemoveSuggestion']&&delete _0x423bca[_0x808da6]['isRemoveSuggestion'],_0x423bca[_0x808da6]['isRemoved']&&(_0x423bca[_0x808da6]['isIncorrect']=!0x0));}return _0x423bca['filter'](_0x268f7b=>!_0x268f7b['isIncorrect']);}['_makeModelFromTape'](_0x57f0e4,_0x344e2d,_0x41d0ff){const _0x1fe9b6=new vt(),_0x411f6a=[],_0x57d6d5=new Map(),_0x37d643=this['editor']['model'],_0x52c387=_0x37d643['schema'],_0x212a88=[_0x1fe9b6],_0x53f60b={},_0x16945a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x18efa9=null;const _0x27ee89=[0x0];for(let _0x420dbe=0x0;_0x420dbe<_0x57f0e4['length'];_0x420dbe++)if('elementStart'===_0x57f0e4[_0x420dbe]['type']){_0x57f0e4[_0x420dbe]['previousPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89);const _0x33cd82=new ut(_0x57f0e4[_0x420dbe]['item']['name'],_0x57f0e4[_0x420dbe]['item']['getAttributes']());_0x212a88[0x0]['_appendChild'](_0x33cd82),_0x27ee89['push'](0x0),_0x212a88['unshift'](_0x33cd82),_0x57f0e4[_0x420dbe]['nextPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89);}else'elementEnd'===_0x57f0e4[_0x420dbe]['type']?(_0x212a88['shift'](),_0x57f0e4[_0x420dbe]['previousPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89),_0x27ee89['pop'](),_0x27ee89[_0x27ee89['length']-0x1]++,_0x57f0e4[_0x420dbe]['nextPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89)):(_0x57f0e4[_0x420dbe]['previousPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89),_0x18efa9?_0x18efa9['_data']+=_0x57f0e4[_0x420dbe]['item']['data']:_0x18efa9=new gt(_0x57f0e4[_0x420dbe]['item']['data'],_0x57f0e4[_0x420dbe]['item']['getAttributes']()),_0x57f0e4[_0x420dbe+0x1]&&'text'===_0x57f0e4[_0x420dbe+0x1]['type']&&_0x9df698(_0x18efa9,_0x57f0e4[_0x420dbe+0x1]['item'])||(_0x212a88[0x0]['_appendChild'](_0x18efa9),_0x18efa9=null),_0x27ee89[_0x27ee89['length']-0x1]+=_0x57f0e4[_0x420dbe]['item']['offsetSize'],_0x57f0e4[_0x420dbe]['nextPosition']=_0x37d643['createPositionFromPath'](_0x1fe9b6,_0x27ee89));for(let _0x4571ff=0x0;_0x4571ff<_0x57f0e4['length'];_0x4571ff++){const _0x51580b=_0x57f0e4[_0x4571ff]['previousPosition'],_0x2a56d1=_0x57f0e4[_0x4571ff]['nextPosition'];for(const _0x35e5fc of _0x57f0e4[_0x4571ff]['markersStart'])_0x57d6d5['set'](_0x35e5fc,{'start':_0x51580b,'end':null});_0x3e0c2f('isRemoveSuggestion',_0x4571ff,_0x51580b,_0x2a56d1),_0x3e0c2f('isAddSuggestion',_0x4571ff,_0x51580b,_0x2a56d1),_0x3e0c2f('isRemoved',_0x4571ff,_0x51580b,_0x2a56d1),_0x3e0c2f('isAdded',_0x4571ff,_0x51580b,_0x2a56d1);for(const _0x522125 of _0x57f0e4[_0x4571ff]['markersEnd']){const _0x45478b=_0x57d6d5['get'](_0x522125);_0x45478b?_0x45478b['end']=_0x2a56d1:_0x57d6d5['set'](_0x522125,{'start':_0x2a56d1,'end':_0x2a56d1});}}for(const [_0x2f2534,_0x4c9b22]of _0x57d6d5){const _0x23597b=this['editor']['model']['createRange'](_0x4c9b22['start'],_0x4c9b22['end']);_0x1fe9b6['markers']['set'](_0x2f2534,_0x23597b);}return _0x411f6a['sort']((_0x2a2490,_0x42b527)=>{const _0x2aa7c6=_0x1fe9b6['markers']['get']('revision:'+_0x2a2490['id']),_0x287478=_0x1fe9b6['markers']['get']('revision:'+_0x42b527['id']);return _0x2aa7c6['start']['isBefore'](_0x287478['start'])?-0x1:_0x2aa7c6['start']['isAfter'](_0x287478['start'])?0x1:_0x2aa7c6['end']['isBefore'](_0x287478['end'])?-0x1:_0x2aa7c6['end']['isAfter'](_0x287478['end'])?0x1:'add'===_0x2a2490['type']?-0x1:0x1;}),{'root':_0x1fe9b6,'changes':_0x411f6a};function _0x3e0c2f(_0x13c187,_0x44456c,_0x1a1897,_0x12e004){const _0x10442e=!!_0x57f0e4[_0x44456c][_0x13c187],_0x2c61af=_0x10442e?_0x57f0e4[_0x44456c][_0x13c187]['userId']:null,_0x20b0a2=_0x44456c===_0x57f0e4['length']-0x1,_0x71326=_0x16945a[_0x13c187][0x0],_0x25315e=_0x52c387['isObject'](_0x57f0e4[_0x44456c]['item']);!_0x53f60b[_0x13c187]&&_0x10442e?_0x53f60b[_0x13c187]={'start':_0x1a1897,'tapeItem':_0x57f0e4[_0x44456c],'userId':_0x2c61af,'type':_0x13c187}:_0x53f60b[_0x13c187]&&!_0x10442e?(_0x53f60b[_0x13c187]['end']=_0x1a1897,_0x31f0b7(_0x53f60b[_0x13c187]),_0x53f60b[_0x13c187]=null):_0x53f60b[_0x13c187]&&_0x10442e&&_0x53f60b[_0x13c187]['userId']!==_0x2c61af&&(_0x53f60b[_0x13c187]['end']=_0x1a1897,_0x71326&&_0x71326['userId']===_0x53f60b[_0x13c187]['userId']||_0x31f0b7(_0x53f60b[_0x13c187]),_0x53f60b[_0x13c187]={'start':_0x1a1897,'tapeItem':_0x57f0e4[_0x44456c],'userId':_0x2c61af,'type':_0x13c187}),_0x53f60b[_0x13c187]&&_0x25315e&&('elementStart'!==_0x57f0e4[_0x44456c]['type']||_0x71326&&_0x71326['userId']===_0x2c61af||_0x16945a[_0x13c187]['unshift']({'userId':_0x2c61af,'object':_0x57f0e4[_0x44456c]['item'],'change':_0x53f60b[_0x13c187]}),'elementEnd'===_0x57f0e4[_0x44456c]['type']&&_0x71326&&_0x71326['object']===_0x57f0e4[_0x44456c]['item']&&(_0x16945a[_0x13c187]['shift'](),_0x53f60b[_0x13c187]=_0x71326['change'])),_0x53f60b[_0x13c187]&&_0x20b0a2&&(_0x53f60b[_0x13c187]['end']=_0x12e004,_0x31f0b7(_0x53f60b[_0x13c187]),_0x53f60b[_0x13c187]=null);}function _0x31f0b7({start:_0x123ff3,end:_0x5aad42,tapeItem:_0xf201ac,userId:_0x226033,type:_0x3ba286}){const _0x5db82a=_0xf201ac['item'],_0xe466fb=_0x37d643['schema']['isBlock'](_0x5db82a)&&!_0x37d643['schema']['isLimit'](_0x5db82a),_0x39ac6f=_0x123ff3['nodeAfter']==_0x5aad42['parent']&&_0x5aad42['isAtStart'];if(_0xe466fb&&_0x39ac6f)return;const _0x355be7=_0x37d643['createRange'](_0x123ff3,_0x5aad42),_0x19fa62=_0x344e2d['get'](_0x226033),_0x4a9fd1=new r({'author':_0x19fa62,'type':'isAdded'==_0x3ba286||'isAddSuggestion'==_0x3ba286?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3ba286||'isRemoveSuggestion'==_0x3ba286},'createdAt':new Date(),'rootName':_0x41d0ff});_0x411f6a['push'](_0x4a9fd1),_0x1fe9b6['markers']['set']('revision:'+_0x4a9fd1['id'],_0x355be7);}function _0x9df698(_0x10a0f4,_0x38a7c2){const _0x5da7cd=_0x10a0f4['getAttributes'](),_0x5e13c9=_0x38a7c2['getAttributes']();for(const _0x2f7f43 of _0x5da7cd){if(_0x2f7f43[0x1]!==_0x38a7c2['getAttribute'](_0x2f7f43[0x0]))return!0x1;_0x5e13c9['next']();}return _0x5e13c9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x140e05=>{const _0x1fd20f=_0x140e05['markerName']['split'](':')[0x1],_0x12513c=this['_getChangeFromId'](_0x1fd20f);if(!_0x12513c)return null;const _0x272f57='add'==_0x12513c['type']?'insertion':'deletion',_0x270981=['ck-suggestion-marker','ck-suggestion-marker-'+_0x272f57];return _0x12513c['data']['isSuggestion']&&_0x270981['push']('ck-suggestion-marker-'+_0x272f57+'-new'),this['activeChange']==_0x12513c&&_0x270981['push']('ck-suggestion-marker--active'),{'classes':_0x270981,'attributes':{'data-change-id':_0x1fd20f}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28c8d2=>{_0x28c8d2['on']('element:pre',(_0x560608,_0x3c672b,_0x4ae408)=>{const _0x3a724c=_0x3c672b['viewItem']['getChild'](0x0);if(!_0x3a724c||!_0x3a724c['is']('element','code'))return;if(!_0x4ae408['consumable']['consume'](_0x3a724c,{'attributes':['vid_start','vid_end']}))return;const _0x1e856c=_0x3c672b['modelRange']['start']['nodeAfter'];_0x4ae408['writer']['setAttribute']('vid_start',_0x3a724c['getAttribute']('vid_start'),_0x1e856c),_0x4ae408['writer']['setAttribute']('vid_end',_0x3a724c['getAttribute']('vid_end'),_0x1e856c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x382637=>{_0x382637['on']('element',(_0xc795a9,_0x3935d2,_0x385abd)=>{if(!_0x385abd['consumable']['consume'](_0x3935d2['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3935d2['modelRange']['isCollapsed'])return;const _0x2282cf=_0x3935d2['modelRange']['start']['nodeAfter'];_0x2282cf['hasAttribute']('vid_start')||_0x2282cf['hasAttribute']('vid')||(_0x385abd['writer']['setAttribute']('vid_start',_0x3935d2['viewItem']['getAttribute']('vid_start'),_0x2282cf),_0x385abd['writer']['setAttribute']('vid_end',_0x3935d2['viewItem']['getAttribute']('vid_end'),_0x2282cf));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3a44a6=>_0x3a44a6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x215144,[,_0x440298])=>{['vid_start','vid_end','vid']['includes'](_0x440298)&&(_0x215144['return']=!0x0,_0x215144['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x9b04ed=>{_0x9b04ed['on']('attribute:vid',(_0x59ee43,_0x27afa8,_0x562ba0)=>{if('\x20'!=_0x27afa8['item']['data']||_0x27afa8['item']['parent']['maxOffset']>0x1)return;if(!_0x562ba0['consumable']['consume'](_0x27afa8['item'],_0x59ee43['name']))return;const _0x5bfb5e=_0x562ba0['writer'],_0x2d895c=_0x562ba0['mapper']['toViewRange'](_0x27afa8['range']);_0x5bfb5e['wrap'](_0x2d895c,_0x5bfb5e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x49a494){const _0x4cf82f=_0x49a494['plugins']['get']('RevisionViewer');return(_0x4dfb13,_0x3c9617,_0x10dae3)=>{const _0x111458=_0x3c9617['markerName']['split'](':')[0x1],_0x47d257=_0x4cf82f['_getChangeFromId'](_0x111458);if(!_0x47d257)return null;const _0xbb041e='add'==_0x47d257['type']?'split':'merge';if(!_0x10dae3['consumable']['test'](_0x3c9617['markerRange'],_0x4dfb13['name']))return;const _0x3e8b35=_0x3c9617['markerRange']['getWalker'](),_0x40ed87=_0x3c9617['markerRange']['start'],_0x125dfd=_0x49a494['model']['schema'];let _0x3fee05=null,_0x5aa7e5=null,_0x32d0b5=!0x1,_0x2db750=!0x1;for(const _0x1ddb1a of _0x3e8b35){const _0x5d4a41=_0x1ddb1a['item'];_0x32d0b5=_0x32d0b5||_0x125dfd['isContent'](_0x5d4a41);const _0x50670f=_0x10dae3['mapper']['toViewElement'](_0x5d4a41);if(_0x50670f&&_0x50670f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ddb1a['type']&&(_0x125dfd['isBlock'](_0x5d4a41)&&!_0x125dfd['isLimit'](_0x5d4a41)&&(_0x5d4a41['nextSibling']||_0x40ed87['isAtEnd']?_0x3fee05&&_0x3fee05['parent']==_0x5d4a41||(_0x3fee05=_0x5d4a41,_0x412211(_0x1ddb1a['previousPosition']),_0x2db750=!0x0):_0x5aa7e5=_0x5aa7e5||_0x1ddb1a['previousPosition']));}function _0x412211(_0x10e7d4){const _0x203a63=_0x10dae3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbb041e}),_0x314566=_0x10dae3['mapper']['toViewPosition'](_0x10e7d4);_0x47d257['data']['isSuggestion']&&_0x10dae3['writer']['addClass']('ck-suggestion-marker-'+_0xbb041e+'-new',_0x203a63),_0x4cf82f['activeChange']==_0x47d257&&_0x10dae3['writer']['addClass']('ck-suggestion-marker--active',_0x203a63),_0x10dae3['writer']['insert'](_0x314566,_0x203a63),_0x10dae3['mapper']['bindElementToMarker'](_0x203a63,_0x3c9617['markerName']);}_0x32d0b5||_0x2db750||!_0x5aa7e5||_0x412211(_0x5aa7e5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x562789,_0x5277c2,_0x1e1bee)=>{const _0x2d63aa=_0x1e1bee['mapper']['markerNameToElements'](_0x5277c2['markerName']);if(_0x2d63aa){for(const _0x13745e of _0x2d63aa)(_0x13745e['hasClass']('ck-suggestion-marker-split')||_0x13745e['hasClass']('ck-suggestion-marker-merge'))&&(_0x1e1bee['mapper']['unbindElementFromMarkerName'](_0x13745e,_0x5277c2['markerName']),_0x1e1bee['writer']['remove'](_0x13745e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd11924,_0x23c2c3,_0x16e52a)=>{const _0x36bd98=_0x23c2c3['markerName']['split'](':')[0x1],_0x10ac90=this['_getChangeFromId'](_0x36bd98);if(!_0x10ac90)return null;const _0xb7e14a='add'==_0x10ac90['type']?'split':'merge';if(_0x16e52a['consumable']['test'](_0x23c2c3['markerRange'],_0xd11924['name']))for(const _0x23a13d of _0x23c2c3['markerRange']['getItems']()){if(!_0x23a13d['is']('element','softBreak'))continue;const _0x3379d1=_0x16e52a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb7e14a}),_0x409f86=_0x16e52a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x23a13d));_0x10ac90['data']['isSuggestion']&&_0x16e52a['writer']['addClass']('ck-suggestion-marker-'+_0xb7e14a+'-new',_0x3379d1),this['activeChange']==_0x10ac90&&_0x16e52a['writer']['addClass']('ck-suggestion-marker--active',_0x3379d1),_0x16e52a['writer']['insert'](_0x409f86,_0x3379d1),_0x16e52a['mapper']['bindElementToMarker'](_0x3379d1,_0x23c2c3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3ac22c=>{for(const _0x4b47d9 of this['editor']['model']['document']['getRootNames']()){const _0x14476a=this['editor']['model']['document']['getRoot'](_0x4b47d9),_0x4bc456=this['editor']['editing']['view']['document']['getRoot'](_0x4b47d9);if(_0x4bc456){const _0x53fb2d=_0x14476a['getAttribute']('revisionHistoryAttachChange');if(_0x3ac22c['removeAttribute']('data-change-id',_0x4bc456),_0x3ac22c['removeClass']('ck-revision-history-root-add',_0x4bc456),_0x3ac22c['removeClass']('ck-revision-history-root-remove',_0x4bc456),_0x3ac22c['removeClass']('ck-revision-history-root--active',_0x4bc456),_0x53fb2d){const _0x9eb018=this['_getChangeFromId'](_0x53fb2d);if(!_0x9eb018)return null;_0x3ac22c['setAttribute']('data-change-id',_0x53fb2d,_0x4bc456),_0x3ac22c['addClass']('ck-revision-history-root-'+_0x9eb018['type'],_0x4bc456),this['activeChange']==_0x9eb018&&_0x3ac22c['addClass']('ck-revision-history-root--active',_0x4bc456);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5d7a72=>'revision-comment:'+_0x5d7a72,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5d5986=>'revision-suggestion:'+_0x5d5986,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1266dd=>({'name':'suggestion:'+_0x1266dd,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x7a7b6d=>{const _0x202a9d=_0x7a7b6d['markerName']['split'](':')[0x1];return'insertion'!=_0x202a9d&&'deletion'!=_0x202a9d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x202a9d]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x231ee6,_0x474c9c,_0x1771f6)=>{const _0xb1b5c9=_0x1771f6['mapper']['markerNameToElements'](_0x474c9c['markerName']);if(_0xb1b5c9){for(const _0x1ab32c of _0xb1b5c9)_0x1ab32c['is']('uiElement')&&(_0x1771f6['mapper']['unbindElementFromMarkerName'](_0x1ab32c,_0x474c9c['markerName']),_0x1771f6['writer']['remove'](_0x1ab32c));}},{'priority':'high'});}['_getChangeFromId'](_0x491d37){return this['_changeIdToChange']['get'](_0x491d37);}['_getViewForChange'](_0x45ea18){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x45ea18),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3c78e0,_0x23c16a,_0x158566,_0x4f1e54)=>{_0x4f1e54&&this['_balloon']['remove'](_0x4f1e54),_0x158566&&(this['_balloon']['add']({'view':_0x158566,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x27c875=this['editor']['editing'],_0x2a0bd6=this['_getChangeFromId'](_0x158566['changeId']);let _0x758913;if(_0x2a0bd6['data']['isOnRoot']){const _0x4c5b8a=_0x27c875['view']['getDomRoot'](_0x2a0bd6['rootName']);_0x758913=Array['from'](_0x4c5b8a['getClientRects']());}else{const _0x1fb7b7=this['editor']['model']['markers']['get']('revision:'+_0x158566['changeId']);_0x758913=Array['from'](_0x27c875['mapper']['markerNameToElements'](_0x1fb7b7['name']))['map'](_0x1ca885=>_0x27c875['view']['domConverter']['mapViewToDom'](_0x1ca885))['map'](_0x2d7aa1=>Array['from'](_0x2d7aa1['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x758913[0x0];return _0x758913['find'](_0x1a60d5=>_0x1a60d5['top']-0x3<=this['_activeViewTarget']['y']&&_0x1a60d5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1a60d5['left']-0x3<=this['_activeViewTarget']['x']&&_0x1a60d5['right']+0x3>=this['_activeViewTarget']['x'])||_0x758913[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x16e2cc,_0x55cecd,_0x1b9fa1,_0x409928)=>{this['activeView']=_0x1b9fa1?this['_getViewForChange'](_0x1b9fa1):null,this['editor']['model']['change'](()=>{const _0x40aa00=this['editor']['editing'];_0x409928&&(_0x409928['data']['isOnRoot']?_0x40aa00['view']['change'](_0x5df18c=>{_0x5df18c['removeClass']('ck-revision-history-root--active',_0x40aa00['view']['document']['getRoot'](_0x409928['rootName']));}):_0x40aa00['reconvertMarker']('revision:'+_0x409928['id'])),_0x1b9fa1&&(_0x1b9fa1['data']['isOnRoot']?_0x40aa00['view']['change'](_0xaa6359=>{_0xaa6359['addClass']('ck-revision-history-root--active',_0x40aa00['view']['document']['getRoot'](_0x1b9fa1['rootName']));}):_0x40aa00['reconvertMarker']('revision:'+_0x1b9fa1['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5c5131,_0x3b13f5)=>{if(this['activeChange'])return;const _0x81b001=this['_findChangeIdFromDomTarget'](_0x3b13f5['target']),_0x472871=this['_changeIdToChange']['get'](_0x81b001);_0x472871?(this['_activeViewTarget']={'x':_0x3b13f5['domEvent']['x'],'y':_0x3b13f5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x472871)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x503b99,_0x1b7feb)=>{const _0x5068ba=this['_findChangeIdFromDomTarget'](_0x1b7feb['target']),_0x4f6d50=this['_changeIdToChange']['get'](_0x5068ba);_0x4f6d50?(this['_activeViewTarget']={'x':_0x1b7feb['domEvent']['x'],'y':_0x1b7feb['domEvent']['y']},_0x4f6d50===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4f6d50):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x349899){do{const _0x4b42b5=_0x349899['getAttribute']('data-change-id');if(_0x4b42b5)return _0x4b42b5;_0x349899=_0x349899['parent'];}while(_0x349899);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4aa0af=>{for(const _0x3c041f of this['editor']['model']['markers'])_0x4aa0af['removeMarker'](_0x3c041f);});}}function X(_0x35270a,_0x1a6bfc){return(_0x484439,_0x59d03e,_0x5c2b47)=>{if(!_0x5c2b47['consumable']['test'](_0x59d03e['markerRange'],_0x484439['name']))return;const _0x5b63a0=_0x59d03e['markerRange']['getWalker'](),_0x1f1db6=_0x59d03e['markerRange']['start'],_0x36dceb=_0x35270a['model']['schema'];let _0x42aaef=null,_0x1d7a3a=null,_0x129a0d=!0x1,_0x28910d=!0x1;for(const _0x45cba7 of _0x5b63a0){const _0x33396f=_0x45cba7['item'];_0x129a0d=_0x129a0d||_0x36dceb['isContent'](_0x33396f);const _0x464121=_0x5c2b47['mapper']['toViewElement'](_0x33396f);if(_0x464121&&_0x464121['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45cba7['type']&&(_0x36dceb['isBlock'](_0x33396f)&&!_0x36dceb['isLimit'](_0x33396f)&&(_0x33396f['nextSibling']||_0x1f1db6['isAtEnd']?_0x42aaef&&_0x42aaef['parent']==_0x33396f||(_0x42aaef=_0x33396f,_0x4999a3(_0x45cba7['previousPosition']),_0x28910d=!0x0):_0x1d7a3a=_0x1d7a3a||_0x45cba7['previousPosition']));}function _0x4999a3(_0x3f4a51){const _0x450a2e=_0x5c2b47['mapper']['toViewPosition'](_0x3f4a51),_0x880872=_0x5c2b47['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1a6bfc});_0x5c2b47['writer']['insert'](_0x450a2e,_0x880872),_0x5c2b47['mapper']['bindElementToMarker'](_0x880872,_0x59d03e['markerName']);}_0x129a0d||_0x28910d||!_0x1d7a3a||_0x4999a3(_0x1d7a3a);};}class mt extends _0x4887eb{constructor(_0x1a52a1){super(_0x1a52a1);const _0x3a4c3f=_0x1a52a1['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x3a4c3f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a4c3f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x41fc2f=this['editor'],_0x35e977=_0x41fc2f['plugins']['get'](m),_0x1fb5cc=_0x35e977['isReady']?_0x35e977['diff']['newRevisionId']:null;_0x41fc2f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1fb5cc);}['refresh'](){const {isReady:_0x908595,isEnabled:_0x47fb13,repository:_0x49be7e,diff:_0x30aad1}=this['editor']['plugins']['get'](m),_0xe464ab=_0x30aad1&&_0x49be7e['getLaterVisibleRevision'](_0x30aad1['newRevisionId']);this['isEnabled']=_0x908595&&_0x47fb13&&Boolean(_0xe464ab);}}class wt extends _0x4887eb{['_step'];constructor(_0x4712d5,{direction:_0x41b790}){super(_0x4712d5);const _0x2d9885=_0x4712d5['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x41b790?0x1:-0x1,this['listenTo'](_0x2d9885,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2d9885,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2d9885,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x324e8f=this['editor'],_0x17e419=_0x324e8f['plugins']['get'](m),{isNavigationMode:_0x20d8a7,currentChangeNumber:_0x6f1b5b}=_0x17e419;let _0x3a7f4a;if(_0x17e419['activeChange']=_0x20d8a7?_0x17e419['diff']['changes']['get'](_0x6f1b5b+this['_step']):_0x17e419['diff']['changes']['first'],_0x17e419['activeChange']['data']['isOnRoot'])_0x3a7f4a=_0x324e8f['editing']['view']['getDomRoot'](_0x17e419['activeChange']['rootName']);else{const _0x2353d1=_0x324e8f['model']['markers']['get']('revision:'+_0x17e419['activeChange']['id']);_0x3a7f4a=_0x1a8ea3(_0x324e8f['editing'],_0x2353d1);}_0x3c4a3a({'target':_0x3a7f4a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x935211,currentChangeNumber:_0xed01bf,numberOfChanges:_0x3aac22,isReady:_0x198972,isEnabled:_0x213b63}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x213b63&&_0x198972&&_0x3aac22)&&(!_0x935211||(0x1===this['_step']?_0xed01bf<_0x3aac22-0x1:_0xed01bf>0x0));}}class di extends ts{constructor(_0x459b99){super(_0x459b99);const _0x182eb2=this['bindTemplate'],_0x4a8e24=new te(_0x459b99),_0x3c9c8a=new te(_0x459b99);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',(_0xc3c679,_0x45b706)=>_0xc3c679&&_0x45b706>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x599983,_0xd9168e,_0x2032b3,_0x51bc33)=>{if(!_0x599983)return g(_0x459b99,'Loading...');if(!_0x2032b3)return g(_0x459b99,'No\x20changes');const _0x4581f5=g(_0x459b99,'NUMBER_OF_CHANGES',_0x2032b3);return _0x51bc33?g(_0x459b99,'X_OF_Y_CHANGES',[_0xd9168e+0x1,_0x2032b3]):_0x4581f5;}),_0x4a8e24['set']({'label':g(_0x459b99,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1f62e6}),_0x3c9c8a['set']({'label':g(_0x459b99,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x425d1f}),_0x4a8e24['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3c9c8a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4a8e24['on']('execute',()=>this['fire']('execute','backward')),_0x3c9c8a['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',_0x182eb2['if']('_isStatusLabelVisible','ck-hidden',_0x3ede10=>!_0x3ede10)]},'children':[{'text':_0x182eb2['to']('isNavigationMode',_0x93182f=>_0x93182f?g(_0x459b99,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x459b99,'Total')+':\x20')}]},{'text':_0x182eb2['to']('_statusText')}]},new _0x48d5b0(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4a8e24,_0x3c9c8a]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x3a83bf{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x23cac4=this['editor']['editing']['view'];_0x23cac4['change'](_0x6a7c57=>{for(const _0x1a80ae of _0x23cac4['document']['roots'])_0x6a7c57['addClass'](le,_0x1a80ae);});}['hide'](){const _0x4ef0da=this['editor']['editing']['view'];_0x4ef0da['change'](_0x546018=>{for(const _0x18f384 of _0x4ef0da['document']['roots'])_0x546018['removeClass'](le,_0x18f384);});}}class R extends _0x3a83bf{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x37dd9b=this['editor'],_0x6bbfc=_0x37dd9b['plugins']['get'](m),_0x141928=_0x37dd9b['plugins']['get'](de);_0x37dd9b['ui']['componentFactory']['add']('exitToEditing',_0x49ae7a=>{const _0x7d11fc=new te(_0x49ae7a);return _0x7d11fc['set']({'label':g(_0x49ae7a,'Back\x20to\x20editing'),'icon':_0x979595,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x7d11fc,'execute',()=>{_0x37dd9b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x7d11fc;}),_0x37dd9b['ui']['componentFactory']['add']('restoreRevision',_0x2c05c2=>{const _0x3bb239=new te(_0x2c05c2);return _0x3bb239['set']({'label':g(_0x2c05c2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3bb239['bind']('isEnabled')['to'](_0x37dd9b['commands']['get']('restoreRevision')),this['listenTo'](_0x3bb239,'execute',()=>_0x37dd9b['execute']('restoreRevision')),_0x3bb239;}),_0x37dd9b['ui']['componentFactory']['add']('changesNavigation',_0x1d86c4=>{const _0x56279d=new di(_0x1d86c4),_0x425261=_0x37dd9b['commands']['get']('showPreviousChange'),_0x4a531e=_0x37dd9b['commands']['get']('showNextChange');return _0x56279d['bind']('isBackwardNavigationEnabled')['to'](_0x425261,'isEnabled'),_0x56279d['bind']('isForwardNavigationEnabled')['to'](_0x4a531e,'isEnabled'),_0x56279d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x6bbfc),this['listenTo'](_0x56279d,'execute',(_0x13671c,_0x536a70)=>{_0x37dd9b['execute']('forward'===_0x536a70?'showNextChange':'showPreviousChange');}),_0x56279d;}),_0x141928['show'](),_0x6bbfc['on']('change:isReady',(_0x36e864,_0x3d6482,_0x173aa1)=>{_0x173aa1?_0x141928['hide']():_0x141928['show']();});}}class at extends _0x263937{['_resizeObserver']=null;constructor(_0x82d6d0,_0x201523){super(_0x82d6d0,_0x201523);const _0x49829f=this['bindTemplate'];this['set']({'label':g(_0x82d6d0,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x82d6d0,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x49829f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xec6915=this['fieldView']['element'];this['_tooltipString']=_0xec6915['scrollWidth']>_0xec6915['clientWidth']&&_0xec6915['value']||'';}}class si extends ts{constructor(_0x8a7678,_0x2cae77,_0x1c7563){super(_0x8a7678);const _0x20a07d=new _0x12c313();_0x20a07d['set']({'content':_0xf9cca,'viewBox':'0\x200\x2011\x2010'});const _0x3ba72d=['ck','ck-revision-history-sidebar__revision-author'];_0x1c7563&&_0x3ba72d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1761a9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x8a7678,_0x1c7563?'Revision\x20creator':'Revision\x20author')},'children':[_0x20a07d,_0x2cae77['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3ba72d},'children':_0x1761a9});}}function oi(_0x49ac1c,_0xcb119c){const _0x2397dd=_0x49ac1c['bindTemplate'],_0x2b0749=_0x49ac1c['locale'],_0x1dbb19=_0x72e1f8(_0x2b0749);_0x1dbb19['panelPosition']='sw';const _0x2a9880=function(_0x563c42,_0x496c7c){const _0x5ce1f9=function(_0x26d4c5,_0x41410c){const _0x2b782e=_0x26d4c5['locale'],_0x2aec79={'Compare\x20against\x20selected':g(_0x2b782e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2b782e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2b782e,'Restore\x20this\x20revision')};return _0x41410c['map'](_0x59e5a6=>{const _0x2c3e36=_0x2aec79[_0x59e5a6['name']];return _0x2c3e36&&_0x2c3e36!==_0x59e5a6['name']&&(_0x59e5a6['name']=_0x2c3e36),_0x59e5a6;});}(_0x563c42,_0x496c7c),_0x1182a0=new _0x3c755c();for(const _0x12dda9 of _0x5ce1f9){const _0xa4652c={'type':'button','model':new to({'label':_0x12dda9['name'],'class':_0x12dda9['class'],'withText':!0x0,'role':'menuitem','_action':_0x12dda9['action']})};_0xa4652c['model']['bind']('isEnabled')['to'](_0x563c42,'isActionsDropdownOpen',_0x5305c0=>'function'!=typeof _0x12dda9['isEnabled']||(!_0x5305c0||_0x12dda9['isEnabled'](_0x563c42))),_0x1182a0['add'](_0xa4652c);}return _0x1182a0;}(_0x49ac1c,_0xcb119c);return _0x49ac1c['bind']('isActionsDropdownOpen')['to'](_0x1dbb19,'isOpen'),_0x1dbb19['buttonView']['set']({'label':g(_0x2b0749,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xbed950}),_0x1dbb19['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2397dd['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2397dd['to'](_0x338157=>_0x338157['stopPropagation']())}}),_0x1dbb19['on']('execute',_0xbd14ea=>{_0x49ac1c['isReady']&&'function'==typeof _0xbd14ea['source']['_action']&&_0xbd14ea['source']['_action'](_0x49ac1c);}),_0x4e2d08(_0x1dbb19,_0x2a9880,{'role':'menu'}),_0x1dbb19['listenTo'](_0x49ac1c,'change:isActionsDropdownOpen',(_0x28b980,_0x1c31e8,_0x3b2e48)=>{if(_0x3b2e48)for(const _0x57f3db of _0x1dbb19['listView']['items']){const _0x59a402=_0x57f3db['children']['first'],_0x121c76=_0xcb119c['find'](_0x45800c=>_0x45800c['action']===_0x59a402['_action'])['isVisible'];_0x57f3db['isVisible']=void 0x0===_0x121c76||_0x121c76(_0x49ac1c);}}),_0x1dbb19;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5ca27e,_0x23a3f7,_0x1c21d1,_0x5e0815){super(_0x5ca27e);const _0x13bdef=this['bindTemplate'],_0x226206=function(_0x3d4012,_0x2a6276){const _0x327994=Array['from'](_0x2a6276['authors'])['filter'](_0x3d887e=>_0x3d887e!=_0x2a6276['creator']);return _0x2a6276['creator']&&_0x327994['unshift'](_0x2a6276['creator']),_0x327994['map'](_0x530db7=>new si(_0x3d4012,_0x530db7,_0x530db7==_0x2a6276['creator']));}(_0x5ca27e,_0x23a3f7);this['id']=_0x23a3f7['id'],this['_revision']=_0x23a3f7,this['_requireRevisionName']=_0x5e0815,this['bind']('name','createdAt')['to'](_0x23a3f7),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3b1c6a=>{return _0x131d7e=_0x5ca27e['uiLanguage'],(_0x2b56dd=_0x3b1c6a)['toLocaleDateString'](_0x131d7e,{'month':'long','day':'numeric'})+',\x20'+_0x2b56dd['toLocaleTimeString'](_0x131d7e,{'hour':'numeric','minute':'numeric'});var _0x131d7e,_0x2b56dd;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x5ca27e,_0x399d5e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x9e76d2=>_0x9e76d2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x46c681,_0x32c8fe)=>_0x46c681&&_0x32c8fe),this['revisionActionsView']=_0x1c21d1&&_0x1c21d1['length']?oi(this,_0x1c21d1):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x13bdef['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x13bdef['if']('isEnabled','ck-disabled',_0xaee0a1=>!_0xaee0a1),_0x13bdef['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x13bdef['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x13bdef['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':_0x13bdef['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':_0x226206}]},this['revisionActionsView']],'on':{'click':_0x13bdef['to'](_0x3d74e0=>{_0x3d74e0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x363543=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x363543,'change',()=>{this['_requireRevisionName']&&!_0x363543['value']||this['fire']('setName',{'id':this['id'],'name':_0x363543['value']}),_0x363543['value']||(_0x363543['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x444790,_0x472192){const _0xb44f6b=_0x479a17['fromJSDate'](_0x444790)['setLocale'](_0x472192),_0x31950f=_0x479a17['local'](),_0x10e100=_0x31950f['minus']({'days':0x1})['startOf']('day');let _0x4c66e8,_0x3ad470;return _0xb44f6b['hasSame'](_0x31950f,'day')?(_0x4c66e8=_0xb44f6b['startOf']('day')['toJSDate'](),_0x3ad470=_0xb44f6b['toRelativeCalendar']()):_0xb44f6b['hasSame'](_0x10e100,'day')?(_0x4c66e8=_0x10e100['toJSDate'](),_0x3ad470=_0xb44f6b['toRelativeCalendar']()):_0xb44f6b['hasSame'](_0x31950f,'week')?(_0x4c66e8=_0xb44f6b['startOf']('week')['toJSDate'](),_0x3ad470=_0xb44f6b['weekdayLong']||''):_0xb44f6b['hasSame'](_0x31950f,'year')?(_0x4c66e8=_0xb44f6b['startOf']('month')['toJSDate'](),_0x3ad470=_0xb44f6b['monthLong']||''):(_0x4c66e8=_0xb44f6b['startOf']('year')['toJSDate'](),_0x3ad470=String(_0xb44f6b['year'])),{'startDate':_0x4c66e8,'localizedPeriodName':_0x3ad470};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3caa0b,_0xd69e85,_0x20ac92,_0x52c122){super(_0x3caa0b);const _0x472b5b=vi(_0xd69e85,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xd69e85,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x20ac92,this['_requireRevisionName']=_0x52c122,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':_0x472b5b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x121dd2){const _0x2b7ace=new hi(this['locale'],_0x121dd2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2b7ace);}['removeRevision'](_0xfdf1f0){const _0x2bdd69=this['revisionViews']['find'](_0x3460c4=>_0x3460c4['id']===_0xfdf1f0['id']);this['revisionViews']['remove'](_0x2bdd69);}}class as extends ts{constructor(_0x27ff5e){super(_0x27ff5e);const _0x1737b4=new _0x12c313();_0x1737b4['content']=_0x16f088,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1737b4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x27ff5e,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x135482,_0x22bdd0,_0x1261e5,_0x45b684){super(_0x135482);const _0x402f58=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x22bdd0,this['_revisionActions']=_0x1261e5,this['_requireRevisionName']=_0x45b684,this['on']('select',(_0x330145,_0x2645e9)=>{this['fire']('revisionSelected',_0x2645e9);}),this['on']('setName',(_0x19f245,_0x5e3a56)=>{this['fire']('revisionSetName',_0x5e3a56);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x135482),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x402f58['if']('isEnabled','ck-disabled',_0x2aaa95=>!_0x2aaa95)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x498b89 of this['_revisions'])this['_addRevision'](_0x498b89);this['_revisions']['on']('add',(_0x30bdac,_0xa458fa)=>{this['_addRevision'](_0xa458fa);}),this['_revisions']['on']('remove',(_0x2495c9,_0x2ea962)=>{this['_removeRevision'](_0x2ea962);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xbdf8=>_0xbdf8['revisionViews']['map'](_0x5ce989=>_0x5ce989))['flat']();}['selectRevision'](_0x2bc0c2){for(const _0x1d3a25 of this['revisionViews'])_0x2bc0c2&&_0x2bc0c2['id']===_0x1d3a25['id']?_0x1d3a25['select']():_0x1d3a25['deselect']();}['highlightRevisions'](_0x376581){for(const _0x23d4f6 of this['revisionViews'])_0x376581['some'](({id:_0xa4f2bc})=>_0xa4f2bc===_0x23d4f6['id'])?_0x23d4f6['highlight']():_0x23d4f6['unhighlight']();}['_addRevision'](_0x4bc457){const _0x33ba06=vi(_0x4bc457['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2a6e67=this['timePeriodViews']['get'](0x0);_0x2a6e67&&_0x2a6e67['startDate']['getTime']()===_0x33ba06['getTime']()||(_0x2a6e67=new mi(this['locale'],_0x33ba06,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2a6e67)),_0x2a6e67['addRevision'](_0x4bc457);}['_removeRevision'](_0x8227b4){const _0x334169=vi(_0x8227b4['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x334169)['removeRevision'](_0x8227b4);}['_getTimePeriodViewByStartDate'](_0x339c3b){return this['timePeriodViews']['find'](_0xe4c782=>_0xe4c782['startDate']['getTime']()===_0x339c3b['getTime']());}}class d extends _0x3a83bf{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x53a97b,uid as _0x452db2,Collection as _0x4e76a3,logWarning as _0x16fb6c,FocusTracker as _0x2fc1e0,KeystrokeHandler as _0xe7195d,scrollViewportToShowTarget as _0x3597b8,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x3a1fdd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1ce38b,set as _0x223b86,unset as _0x552b71,isEqual as _0x3ab384}from'es-toolkit/compat';import{Plugin as _0x563dd0,PendingActions as _0x11b638,Command as _0x33cfaf,ElementApiMixin as _0x2f40ad,Editor as _0x2f28e2}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x41f456,getMarkerDomElement as _0x53f201,ConfirmMixin as _0xf13c3d,sanitizeEditorConfig as _0x3fbbbc}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x218865,ViewAttributeElement as _0x136355,ViewEmptyElement as _0x13d416,ViewRawElement as _0x5e2576,ViewUIElement as _0x494c1b,ViewDocumentFragment as _0x4da565,ViewText as _0x2f6bae,ViewElement as _0x320b0b,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3d91fe,IconChevronUp as _0x570756,IconChevronDown as _0x4f69eb,IconUndo as _0x33818f,IconUser as _0x59a9b3,IconThreeVerticalDots as _0x48f754}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4eacd9,injectCssTransitionDisabler as ts,submitHandler as _0xa5da1c,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x14068a,ListView as _0xfbca9c,ListItemView as te,ButtonView as _0x3399f1,MenuBarMenuView as _0x3e7c0a,MenuBarMenuListView as _0x3de1b6,MenuBarMenuListItemView as _0x4238f5,MenuBarMenuListItemButtonView as _0x53fba4,ContextualBalloon as _0x5ef071,ToolbarSeparatorView as _0x4ae2bb,IconView as _0x2b05ec,addListToDropdown as _0x26ee0b,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4d6dc2}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x53a97b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x40f508){super(),this['id']=_0x40f508['id']||_0x452db2(),this['creator']=_0x40f508['creator']||null,this['authors']=_0x40f508['authors']||[],this['diffData']=_0x40f508['diffData']||null,this['toVersion']=_0x40f508['toVersion']||0x0,this['fromVersion']=_0x40f508['fromVersion']||0x0,this['set']('name',_0x40f508['name']||''),this['set']('createdAt',_0x40f508['createdAt']||new Date()),this['set']('attributes',_0x40f508['attributes']||{});}['setName'](_0x1c1c2e){this['_update']({'name':_0x1c1c2e});}['setAttribute'](_0x37b1a6,_0x3b0f71){const _0x4a2504=_0x1ce38b(this['attributes']);_0x223b86(_0x4a2504,_0x37b1a6,_0x3b0f71),this['_update']({'attributes':_0x4a2504});}['removeAttribute'](_0x2029ca){const _0x4195af=_0x1ce38b(this['attributes']);_0x552b71(_0x4195af,_0x2029ca),this['_update']({'attributes':_0x4195af});}['_update'](_0x4ffeb6,_0x2f0e60=!0x1){let _0x177e64=!0x1;const _0x3d564a={'id':this['id']},_0x412627=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1b37cc of _0x412627){const _0x213724=_0x4ffeb6[_0x1b37cc];void 0x0!==_0x213724&&_0x213724!==this[_0x1b37cc]&&(this[_0x1b37cc]=_0x213724,_0x3d564a[_0x1b37cc]=_0x213724,_0x177e64=!0x0);}_0x177e64&&(_0x3d564a['authors']&&(_0x3d564a['authorsIds']=_0x3d564a['authors']['map'](_0x1adec0=>_0x1adec0['id']),delete _0x3d564a['authors']),this['fire']('_update',_0x3d564a,_0x2f0e60));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x18c83a=>_0x18c83a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x563dd0{['_revisions'];static get['requires'](){return[_0x41f456];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x393fb6){super(_0x393fb6),this['_revisions']=new _0x4e76a3();}['afterInit'](){!async function(_0x2f66da){const _0x11791c=_0x40546f([0x6f,0x43,0x4a,0x62,0x75,0x70,0x41,0x69,0x6c,0x4c,0x74,0x64,0x57,0x63,0x6a,0x47,0x54,0x78,0x37,0x48,0x6b,0x30,0x6e,0x79,0x4e,0x4f,0x71,0x68,0x66,0x7a,0x53,0x5a,0x42,0x31,0x58,0x38,0x36,0x61,0x46,0x51,0x67,0x77,0x56,0x35,0x50,0x44,0x39,0x4d,0x65,0x72,0x33,0x55,0x49,0x34,0x59,0x73,0x32,0x4b,0x6d,0x52,0x45,0x76]),_0x50fdba=0xeb829,_0x1f1220=0x6ca290f,_0xe9e303=0x6cd4abf^_0x1f1220,_0x283d4b=window[_0x40546f([0x44,0x61,0x74,0x65])][_0x40546f([0x6e,0x6f,0x77])](),_0x434de0=_0x2f66da[_0x40546f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x391e73=new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dc109=>{_0x434de0[_0x40546f([0x6f,0x6e,0x63,0x65])](_0x40546f([0x72,0x65,0x61,0x64,0x79]),_0x1dc109);}),_0x3c4b62={[_0x40546f([0x6b,0x74,0x79])]:_0x40546f([0x45,0x43]),[_0x40546f([0x75,0x73,0x65])]:_0x40546f([0x73,0x69,0x67]),[_0x40546f([0x63,0x72,0x76])]:_0x40546f([0x50,0x2d,0x32,0x35,0x36]),[_0x40546f([0x78])]:_0x40546f([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]),[_0x40546f([0x79])]:_0x40546f([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]),[_0x40546f([0x61,0x6c,0x67])]:_0x40546f([0x45,0x53,0x32,0x35,0x36])},_0x5f4e91=_0x434de0[_0x40546f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40546f([0x67,0x65,0x74])](_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x290828(){let _0x513cc3,_0x57bbd6=null,_0x184871=null;try{if(_0x5f4e91==_0x40546f([0x47,0x50,0x4c]))return _0x40546f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x513cc3=_0xbdbb45(),!_0x513cc3)return _0x40546f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x513cc3[_0x40546f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x184871=_0x51b6aa(_0x513cc3[_0x40546f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x513cc3[_0x40546f([0x6a,0x74,0x69])])),await _0x12a9c2()?_0x46cda5()?_0x394e24()?_0x40546f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48f59b()?(_0x513cc3[_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40546f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57bbd6=_0x8952d2(_0x40546f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x513cc3[_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40546f([0x74,0x72,0x69,0x61,0x6c])&&(_0x57bbd6=_0x8952d2(_0x40546f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a6e36()):_0x40546f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40546f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40546f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x43a7eb){return _0x40546f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x394e24(){const _0x3dda18=[_0x40546f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40546f([0x74,0x72,0x69,0x61,0x6c])][_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513cc3[_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x283d4b/0x3e8:0xe10*_0xe9e303;return _0x513cc3[_0x40546f([0x65,0x78,0x70])]<_0x3dda18;}function _0x46cda5(){const _0x33af6a=_0x513cc3[_0x40546f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x33af6a)return!0x1;if(_0x33af6a[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40546f([0x2a])))return!0x0;if(_0x33af6a[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40546f([0x52,0x48])))return!0x0;if(_0x33af6a[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40546f([0x52,0x52,0x48]))){if(_0x16246a())return!0x0;if(_0x1d33b0()||_0x345ea8())return!0x0;}return!0x1;}function _0x48f59b(){const _0x403777=_0x513cc3[_0x40546f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x403777||0x0==_0x403777[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b8863}=new URL(window[_0x40546f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x403777[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8863))return!0x0;const _0x1b1aa2=_0x3b8863[_0x40546f([0x73,0x70,0x6c,0x69,0x74])](_0x40546f([0x2e]));return _0x403777[_0x40546f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6efbbe=>_0x6efbbe[_0x40546f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40546f([0x2a])))[_0x40546f([0x6d,0x61,0x70])](_0x5aabcf=>_0x5aabcf[_0x40546f([0x73,0x70,0x6c,0x69,0x74])](_0x40546f([0x2e])))[_0x40546f([0x73,0x6f,0x6d,0x65])](_0x8e658f=>_0x1b1aa2[_0x40546f([0x65,0x76,0x65,0x72,0x79])]((_0x50b356,_0x560e3d)=>_0x8e658f[_0x560e3d]===_0x50b356||_0x8e658f[_0x560e3d]===_0x40546f([0x2a])));}function _0x3a6e36(){return _0x57bbd6&&_0x184871?new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59b981,_0x1d08b8)=>{_0x57bbd6[_0x40546f([0x74,0x68,0x65,0x6e])](_0x59b981,_0x1d08b8),_0x184871[_0x40546f([0x74,0x68,0x65,0x6e])](_0x2399a2=>{_0x2399a2!=_0x40546f([0x56,0x61,0x6c,0x69,0x64])&&_0x59b981(_0x2399a2);},_0x1d08b8);}):_0x57bbd6||_0x184871||_0x40546f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51b6aa(_0xcba329,_0x5eadb3){return new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x411d11=>{if(_0x5b1646())return _0x411d11(_0x40546f([0x56,0x61,0x6c,0x69,0x64]));_0x30d9ed(),_0x434de0[_0x40546f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40546f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3566c5=!0x1;const _0x58fd10=_0x452db2();function _0x59d8ec(_0x5e0dbd){return!!_0x5e0dbd&&(typeof _0x5e0dbd===_0x40546f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e0dbd===_0x40546f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e0dbd[_0x40546f([0x74,0x68,0x65,0x6e])]===_0x40546f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e0dbd[_0x40546f([0x63,0x61,0x74,0x63,0x68])]===_0x40546f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x177e62(_0x4202c9){_0x2a80d2(_0x4202c9)[_0x40546f([0x74,0x68,0x65,0x6e])](_0x5d01e4=>{if(!_0x5d01e4||_0x5d01e4[_0x40546f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40546f([0x6f,0x6b]))return _0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x136fe8(_0x217467(_0x58fd10+_0x5eadb3))!=_0x5d01e4[_0x40546f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40546f([0x56,0x61,0x6c,0x69,0x64]);})[_0x40546f([0x74,0x68,0x65,0x6e])](_0x44081c=>(_0x217086(),_0x44081c),()=>{const _0x265208=_0x57a440();return null==_0x265208?(_0x217086(),_0x40546f([0x56,0x61,0x6c,0x69,0x64])):_0x40546f(_0x283d4b-_0x265208>(0x22c6ad0f^_0x1f1220)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40546f([0x74,0x68,0x65,0x6e])](_0x411d11)[_0x40546f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x411d11(_0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x230a6c=0x6fcc78f^_0x1f1220;function _0x217086(){const _0x79ee88=_0x40546f([0x6c,0x6c,0x63,0x74,0x2d])+_0x136fe8(_0x217467(_0xcba329)),_0x4b0a1c=_0x41aca3(_0x136fe8(window[_0x40546f([0x4d,0x61,0x74,0x68])][_0x40546f([0x63,0x65,0x69,0x6c])](_0x283d4b/_0x230a6c)));window[_0x40546f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40546f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x79ee88,_0x4b0a1c);}function _0x57a440(){const _0xf5159f=_0x40546f([0x6c,0x6c,0x63,0x74,0x2d])+_0x136fe8(_0x217467(_0xcba329)),_0x5e67be=window[_0x40546f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40546f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf5159f);return _0x5e67be?window[_0x40546f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41aca3(_0x5e67be),0x10)*_0x230a6c:null;}function _0x2a80d2(_0x3e848a){return new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x807e2f,_0xffd20b)=>{_0x3e848a[_0x40546f([0x74,0x68,0x65,0x6e])](_0x807e2f,_0xffd20b),window[_0x40546f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xffd20b,0x6cbfdcf^_0x1f1220);});}}_0x434de0[_0x40546f([0x6f,0x6e])](_0x40546f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51bb08,_0x34bbc0)=>{if(_0x34bbc0[0x0]!=_0xcba329)return _0x411d11(_0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34bbc0[0x1]={..._0x34bbc0[0x1],[_0x40546f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58fd10};},{[_0x40546f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40546f([0x68,0x69,0x67,0x68])}),_0x434de0[_0x40546f([0x6f,0x6e])](_0x40546f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fefc4=>{_0x59d8ec(_0x1fefc4[_0x40546f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3566c5=!0x0,_0x177e62(_0x1fefc4[_0x40546f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40546f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40546f([0x6c,0x6f,0x77])}),_0x391e73[_0x40546f([0x74,0x68,0x65,0x6e])](()=>{_0x3566c5||_0x411d11(_0x40546f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b1646(){return _0x434de0[_0x40546f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40546f([0x76,0x69,0x65,0x77])][_0x40546f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40546f([0x61,0x75,0x74,0x6f]);}function _0x30d9ed(){_0x434de0[_0x40546f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40546f([0x76,0x69,0x65,0x77])][_0x40546f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40546f([0x61,0x75,0x74,0x6f]);}}function _0x8952d2(_0x3ff8c6){const _0x18d98f=[new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0dd7=>setTimeout(_0x1b0dd7,0x6c317c3^_0x1f1220)),_0x391e73[_0x40546f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5904a8=>{const _0x127ff0=0x6ca2908^_0x1f1220,_0x31acb5=_0x2f66da[_0x40546f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x29e780(){_0x31acb5[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x127ff0&&_0x5904a8();}_0x29e780(),_0x31acb5[_0x40546f([0x6f,0x6e])](_0x40546f([0x61,0x64,0x64]),_0x29e780);})),new window[(_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28e63e=>{function _0x58121c(){for(const _0x4013b9 in window)if(window[_0x40546f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x40546f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4013b9))&&window[_0x4013b9]==_0x50fdba)return _0x28e63e();_0x434de0[_0x40546f([0x73,0x74,0x61,0x74,0x65])]!=_0x40546f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x40546f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58121c,0x6ca3a87^_0x1f1220);}_0x3b5327(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x58121c();})];return window[_0x40546f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40546f([0x72,0x61,0x63,0x65])](_0x18d98f)[_0x40546f([0x74,0x68,0x65,0x6e])](()=>_0x3ff8c6);}async function _0x205c2e(){if(await _0x391e73,_0x3b5327(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x13ef19=_0x2f66da[_0x40546f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xa33464=_0x2f66da[_0x40546f([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])](_0x13ef19[_0x40546f([0x69,0x64])]),_0x8eb637=_0x1ed708(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x8eb637[_0x40546f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x13ef19['id'],_0xa33464?_0xa33464['id']:null,!0x0),_0x8eb637[_0x40546f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x40546f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x8eb637[_0x40546f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x8eb637[_0x40546f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5d8e18,void(_0x8eb637[_0x40546f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5d8e18);}if(_0x3b5327(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x42f8c5=_0x1ed708(_0x40546f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x42f8c5[_0x40546f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x40546f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x42f8c5[_0x40546f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x42f8c5[_0x40546f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5d8e18,_0x42f8c5[_0x40546f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5d8e18;}_0x434de0[_0x40546f([0x6d,0x6f,0x64,0x65,0x6c])][_0x40546f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d8e18,_0x434de0[_0x40546f([0x6d,0x6f,0x64,0x65,0x6c])][_0x40546f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d8e18,_0x434de0[_0x40546f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40546f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16246a(){return _0x3b5327(_0x40546f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ed708(_0x40546f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x40546f([0x73,0x74,0x61,0x74,0x65])]==_0x40546f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1d33b0(){return _0x3b5327(_0x40546f([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 _0x345ea8(){return _0x3b5327(_0x40546f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x141bed(_0x12edbb){const _0x385d9f=_0x51dc16();_0x434de0[_0x385d9f]=_0x40546f([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])+_0x12edbb,_0x12edbb[_0x40546f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x40546f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x51dc16()]=_0x50fdba),_0x12edbb!=_0x40546f([0x56,0x61,0x6c,0x69,0x64])&&_0x205c2e();}function _0x51dc16(){const _0x5ad5b2=window[_0x40546f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40546f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40546f([0x6e,0x6f,0x77])]())[_0x40546f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40546f([0x2e]),'');let _0x32777b=_0x40546f([0x6f]);for(let _0x3b0e50=0x0;_0x3b0e50<_0x5ad5b2[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b0e50+=0x2){let _0x32f68e=window[_0x40546f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ad5b2[_0x40546f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b0e50,_0x3b0e50+0x2));_0x32f68e>=_0x11791c[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32f68e-=_0x11791c[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32777b+=_0x11791c[_0x32f68e];}return _0x32777b;}function _0xbdbb45(){const _0x423dae=_0x5f4e91[_0x40546f([0x73,0x70,0x6c,0x69,0x74])](_0x40546f([0x2e]));if(0x3!=_0x423dae[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c10b3(_0x423dae[0x1]);function _0x2c10b3(_0x144f9e){const _0x3e86f3=_0x33e8f2(_0x144f9e);return _0x3e86f3&&_0x1aa901()?_0x3e86f3:null;function _0x1aa901(){const _0x6b190c=_0x3e86f3[_0x40546f([0x6a,0x74,0x69])],_0xd3fffc=window[_0x40546f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6b190c[_0x40546f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6b190c[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2bd654={..._0x3e86f3,[_0x40546f([0x6a,0x74,0x69])]:_0x6b190c[_0x40546f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6b190c[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2bd654[_0x40546f([0x76,0x63])],_0x217467(_0x2bd654)==_0xd3fffc;}}}async function _0x12a9c2(){let _0x58c9ef=!0x0;try{const _0x2b1b51=_0x5f4e91[_0x40546f([0x73,0x70,0x6c,0x69,0x74])](_0x40546f([0x2e])),[_0x4fd994,_0x2b32fc,_0x2ce4f0]=_0x2b1b51;return _0x54f4c8(_0x4fd994),await _0x42fc2e(_0x4fd994,_0x2b32fc,_0x2ce4f0),_0x58c9ef;}catch(_0x68321f){return!0x1;}function _0x54f4c8(_0x1bd79a){const _0xff27a0=_0x33e8f2(_0x1bd79a);_0xff27a0&&_0xff27a0[_0x40546f([0x61,0x6c,0x67])]==_0x40546f([0x45,0x53,0x32,0x35,0x36])||(_0x58c9ef=!0x1);}async function _0x42fc2e(_0x51175e,_0x322c2d,_0x3f0d67){const _0x3084a4=window[_0x40546f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40546f([0x66,0x72,0x6f,0x6d])](_0x4bd58f(_0x3f0d67),_0x45d1d6=>_0x45d1d6[_0x40546f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b1369=new window[(_0x40546f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40546f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51175e+_0x40546f([0x2e])+_0x322c2d),_0x499e76=window[_0x40546f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40546f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x499e76)return;const _0x39df2f=await _0x499e76[_0x40546f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40546f([0x6a,0x77,0x6b]),_0x3c4b62,{[_0x40546f([0x6e,0x61,0x6d,0x65])]:_0x40546f([0x45,0x43,0x44,0x53,0x41]),[_0x40546f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40546f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40546f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x499e76[_0x40546f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40546f([0x6e,0x61,0x6d,0x65])]:_0x40546f([0x45,0x43,0x44,0x53,0x41]),[_0x40546f([0x68,0x61,0x73,0x68])]:{[_0x40546f([0x6e,0x61,0x6d,0x65])]:_0x40546f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39df2f,_0x3084a4,_0x5b1369)||(_0x58c9ef=!0x1);}}function _0x33e8f2(_0x43e455){return _0x43e455[_0x40546f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40546f([0x65,0x79]))?JSON[_0x40546f([0x70,0x61,0x72,0x73,0x65])](_0x4bd58f(_0x43e455)):null;}function _0x4bd58f(_0x9c4505){return window[_0x40546f([0x61,0x74,0x6f,0x62])](_0x9c4505[_0x40546f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40546f([0x2b]))[_0x40546f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40546f([0x2f])));}function _0x217467(_0x963dd9){let _0x217b19=0x1505;function _0x5f340a(_0x1f0ed0){for(let _0x4b08ce=0x0;_0x4b08ce<_0x1f0ed0[_0x40546f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b08ce++){const _0x22ec8c=_0x1f0ed0[_0x40546f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b08ce);_0x217b19=(_0x217b19<<0x5)+_0x217b19+_0x22ec8c,_0x217b19&=_0x217b19;}}function _0x3f2dff(_0x27bd3a){Array[_0x40546f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27bd3a)?_0x27bd3a[_0x40546f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f2dff):_0x27bd3a&&typeof _0x27bd3a==_0x40546f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40546f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27bd3a)[_0x40546f([0x73,0x6f,0x72,0x74])]()[_0x40546f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x460a0d,_0x42431c])=>{_0x5f340a(_0x460a0d),_0x3f2dff(_0x42431c);}):_0x5f340a(window[_0x40546f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27bd3a));}return _0x3f2dff(_0x963dd9),_0x217b19>>>0x0;}function _0x136fe8(_0x36052d){return _0x36052d[_0x40546f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40546f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40546f([0x30]));}function _0x41aca3(_0x23420a){return _0x23420a[_0x40546f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40546f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40546f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b5327(_0x397811){return _0x434de0[_0x40546f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40546f([0x68,0x61,0x73])](_0x397811);}function _0x1ed708(_0xcf46ef){return _0x434de0[_0x40546f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40546f([0x67,0x65,0x74])](_0xcf46ef);}function _0x5d8e18(){}function _0x40546f(_0x4205d0){return _0x4205d0['map'](_0x5a30f8=>String['fromCharCode'](_0x5a30f8))['join']('');}_0x141bed(await _0x290828());}(this);}['createRevision'](_0x2f9b9f){const _0x831a4a=this['editor']['plugins']['get']('Users');return new h({'id':_0x2f9b9f['id'],'name':_0x2f9b9f['name'],'creator':_0x2f9b9f['creatorId']?_0x831a4a['getUser'](_0x2f9b9f['creatorId']):null,'diffData':_0x2f9b9f['diffData']||_0x2f9b9f['data'],'authors':_0x2f9b9f['authorsIds']['map'](_0x31a0fb=>_0x831a4a['getUser'](_0x31a0fb)),'createdAt':new Date(_0x2f9b9f['createdAt']),'attributes':_0x2f9b9f['attributes'],'fromVersion':_0x2f9b9f['fromVersion'],'toVersion':_0x2f9b9f['toVersion']});}['addRevision'](_0x834051,_0x1ee9e9=0x0){this['_revisions']['add'](_0x834051,_0x1ee9e9);}['getRevision'](_0xa3cacc){return this['_revisions']['get'](_0xa3cacc);}['getRevisions'](_0x5c8802={'toJSON':!0x1}){const _0xd8c530=Array['from'](this['_revisions']);return _0xd8c530['reverse'](),_0x5c8802['toJSON']?_0xd8c530['map'](_0x5a0e4f=>_0x5a0e4f['toJSON']()):_0xd8c530;}['getIndex'](_0x1dc11f){return this['_revisions']['getIndex'](_0x1dc11f);}['getEarlierVisibleRevision'](_0x212a69){const [,_0x1f60bc]=this['getRevisionsIterator'](_0x212a69,{'direction':'earlier'});return _0x1f60bc;}['getLaterVisibleRevision'](_0x4b1ea4){const [,_0x1166f7]=this['getRevisionsIterator'](_0x4b1ea4,{'direction':'later'});return _0x1166f7;}['getRevisionsInDiff'](_0x2775a7){const _0x4981da=[];for(const _0x436cf3 of this['getRevisionsIterator'](_0x2775a7['newRevisionId']))if(_0x4981da['push'](_0x436cf3),_0x436cf3['id']===_0x2775a7['oldRevisionId'])break;return _0x4981da;}*['getRevisionsIterator'](_0x1cc87e,{direction:_0x43c699='earlier',filter:_0x5dee12=()=>!0x0}={}){const _0x4a6872='earlier'===_0x43c699?0x1:-0x1;let _0x434132=this['_revisions']['get'](_0x1cc87e),_0x4cdf0f=this['getIndex'](_0x434132);for(yield _0x434132;_0x434132;){if(_0x4cdf0f+=_0x4a6872,_0x434132=this['getRevision'](_0x4cdf0f),!_0x434132)return;_0x5dee12(_0x434132)&&(yield _0x434132);}}}class V extends _0x563dd0{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x218865,'c'],[_0x136355,'a'],[_0x13d416,'e'],[_0x5e2576,'r'],[_0x494c1b,'u']]);['_typeCharToViewClass']=new Map([['c',_0x218865],['a',_0x136355],['e',_0x13d416],['r',_0x5e2576],['u',_0x494c1b]]);async['loadRevisionData'](_0x1db305,_0x16ac7b){if(_0x1db305['diffData']||!_0x16ac7b)return;const _0x496de3=this['editor']['config']['get']('collaboration.channelId'),_0x2c69ef=await _0x16ac7b['getRevision']({'channelId':_0x496de3,'revisionId':_0x1db305['id']});_0x1db305['diffData']=_0x2c69ef['diffData'];}['getRevisionDocumentData'](_0x548887){const _0x1daddb={};for(const _0x511711 in _0x548887['diffData']){if(_0x548887['diffData'][_0x511711]['attachChange']&&!_0x548887['diffData'][_0x511711]['attachChange']['isAttached'])continue;const _0xadf09a=this['_removeRevisionMarkers'](JSON['parse'](_0x548887['diffData'][_0x511711]['insertions'])),_0x5a5071=this['editor']['editing']['view']['document'],_0x40deac=new _0x4da565(_0x5a5071,_0xadf09a['map'](_0x59deb7=>this['_getViewFromDiffObj'](_0x59deb7,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1daddb[_0x511711]=this['editor']['data']['processor']['toData'](_0x40deac),this['editor']['data']['processor']['useFillerType']('default');}return _0x1daddb;}['getRevisionRootsAttributes'](_0x50a6d7){const _0x13c01e={};for(const _0x433c9e in _0x50a6d7['diffData'])_0x50a6d7['diffData'][_0x433c9e]['attachChange']&&!_0x50a6d7['diffData'][_0x433c9e]['attachChange']['isAttached']||(_0x13c01e[_0x433c9e]=_0x50a6d7['diffData'][_0x433c9e]['attributesAfter']||{});return _0x13c01e;}['_getTypeCharForViewElement'](_0x35bb3c){return this['_viewClassToTypeChar']['get'](_0x35bb3c['constructor']);}['_getViewFromDiffObj'](_0x208e7f,_0x49e992){const _0x4170d8=this['editor']['editing']['view']['document'];if('string'==typeof _0x208e7f)return new _0x2f6bae(_0x4170d8,_0x208e7f);{let _0x2fbfe0,_0x1a42c5;_0x1a42c5='u'==_0x208e7f['type']||'r'==_0x208e7f['type']?[]:_0x208e7f['children']['map'](_0x495af0=>this['_getViewFromDiffObj'](_0x495af0,_0x49e992));const _0x1d476b=this['_typeCharToViewClass']['get'](_0x208e7f['type'])||_0x320b0b,_0x14335e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2fbfe0=new _0x1d476b(_0x4170d8,_0x208e7f['name'],_0x208e7f['attributes'],_0x1a42c5),'u'==_0x208e7f['type']){const _0x96085f=_0x208e7f['children'][0x0];if(_0x2fbfe0['render']=function(_0x48e66b){const _0x5202c1=_0x48e66b['createElement']('div');return _0x5202c1['innerHTML']=_0x96085f,_0x5202c1['childNodes'][0x0];},_0x49e992){const _0x3aee59=new _0x4da565(_0x4170d8);_0x3aee59['_appendChild'](_0x2fbfe0);const _0x13c2d5=Array['from'](_0x14335e['viewChildrenToDom'](_0x3aee59,{'bind':!0x1})),_0x1047df=_0x14335e['domDocument']['createElement']('div');_0x1047df['append'](..._0x13c2d5),_0x2fbfe0=Array['from'](_0x14335e['domChildrenToView'](_0x1047df))[0x0];}}else{if('r'==_0x208e7f['type']){const _0x579359=_0x208e7f['children'][0x0];if(_0x2fbfe0['render']=function(_0x2fff4d){_0x2fff4d['innerHTML']=_0x579359;},_0x49e992){const _0x584ac5=new _0x4da565(_0x4170d8);_0x584ac5['_appendChild'](_0x2fbfe0);const _0x4afb00=Array['from'](_0x14335e['viewChildrenToDom'](_0x584ac5,{'bind':!0x1})),_0x162c0f=_0x14335e['domDocument']['createElement']('div');_0x162c0f['append'](..._0x4afb00);const _0x202db4=Array['from'](_0x14335e['domChildrenToView'](_0x162c0f));_0x202db4['length']>0x1?_0x2fbfe0['_appendChild'](_0x202db4):_0x2fbfe0=_0x202db4[0x0];}}}if(_0x208e7f['customProperties']){for(const [_0x598a26,_0x3ca018]of _0x208e7f['customProperties'])_0x2fbfe0['_setCustomProperty'](_0x598a26,_0x3ca018);}const _0x2f1b9e=_0x208e7f['fillerOffset']||null;return _0x2fbfe0['getFillerOffset']=()=>_0x2f1b9e,_0x2fbfe0;}}['_makeModelFromViewString'](_0x49745c){const _0x23e566=JSON['parse'](_0x49745c),_0x52ce3d=this['editor']['editing']['view']['document'],_0xe09da8=new _0x4da565(_0x52ce3d,_0x23e566['map'](_0x1c1e4c=>this['_getViewFromDiffObj'](_0x1c1e4c,!0x0)));return this['editor']['data']['toModel'](_0xe09da8);}['_removeRevisionMarkers'](_0x2f4f5e){return(_0x2f4f5e=_0x2f4f5e['filter'](_0x1c79ff=>!_0x1c79ff['name']||'revision-start'!==_0x1c79ff['name']&&'revision-end'!==_0x1c79ff['name']))['forEach'](_0x271c2a=>{'string'!=typeof _0x271c2a&&(_0x271c2a['children']=this['_removeRevisionMarkers'](_0x271c2a['children']),_0x271c2a['attributes']=_0x271c2a['attributes']['filter'](_0x30ac10=>!_0x30ac10[0x0]['startsWith']('data-revision-')));}),_0x2f4f5e;}}function g(_0x2e4012,_0x4cf80e,_0x440203){const t=_0x2e4012['t'];switch(_0x4cf80e){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'},_0x440203);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x440203);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x563dd0{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x41f456,I,V,_0x11b638];}constructor(_0x467630){super(_0x467630),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x374059=_0x452db2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x374059},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3b3a64=this['repository']['getRevision'](0x0),_0x3539de=_0x3b3a64&&null===_0x3b3a64['creator']?_0x3b3a64:null;if(this['_continueCurrentRevision']=!!_0x3539de&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xd66d8=this['_source']['getCurrentRevisionId'](),_0x55b241=this['repository']['getRevision'](_0xd66d8);if(_0x55b241)this['_startingVersion']=_0x55b241['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x53ceee=this['_source']['history']['_operations']['find'](_0xdf332e=>!_0xdf332e['_isInit']),_0x1b66d5=_0x53ceee?_0x53ceee['baseVersion']:this['_source']['history']['version'];_0x3b3a64?(_0x3b3a64['toVersion']<_0x1b66d5&&_0x3b3a64['_update']({'toVersion':_0x1b66d5}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3539de['id'],this['_startingVersion']=_0x3539de['fromVersion']):(this['_startingVersion']=_0x3b3a64['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1b66d5,this['_continueCurrentRevision']=!0x1);}}else _0x3539de&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3539de['toVersion'],this['editor']['model']['document']['history']['version']),_0x3539de['fromVersion']===_0x3539de['toVersion']?(0x0!==_0x3539de['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3539de['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3539de['id'],this['_startingVersion']=_0x3539de['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',_0x1f7392=>!_0x1f7392),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5143d5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf3f6de;for(const _0x160eac in _0x5143d5){const _0x548802=_0x160eac,_0x2eb7be=_0x5143d5[_0x548802];if('revisionHistoryLicenseKeyValid'==_0x2eb7be||'revisionHistoryLicenseKeyInvalid'==_0x2eb7be||'revisionHistoryLicenseKeyExpired'==_0x2eb7be||'revisionHistoryLicenseKeyDomainLimit'==_0x2eb7be||'revisionHistoryLicenseKeyNotAllowed'==_0x2eb7be||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2eb7be||'revisionHistoryLicenseKeyTrialLimit'==_0x2eb7be||'revisionHistoryLicenseKeyUsageLimit'==_0x2eb7be){delete _0x5143d5[_0x548802],_0xf3f6de=_0x2eb7be,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xf3f6de&&_0x5143d5['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xf3f6de&&_0x5143d5['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xf3f6de&&_0x5143d5['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xf3f6de&&_0x5143d5['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xf3f6de&&_0x5143d5['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xf3f6de&&_0x5143d5['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xf3f6de&&_0x5143d5['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x91c768=this['repository']['getRevision'](0x0),_0x1504c5=await this['getRevisionDocumentData'](_0x91c768),_0x933068=await this['getRevisionRootsAttributes'](_0x91c768);this['_replaceEditorDataWithRevisionData'](_0x1504c5,_0x933068);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3192dc){this['_source']=_0x3192dc;}async['update'](){const _0xe088ab=await this['_source']['getLatestVersion']();if(_0xe088ab>this['currentRevision']['toVersion']){await this['_loadState']();const _0x52b246=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xe088ab});_0x52b246['authors']=_0x52b246['authorsIds']['map'](_0x2ccfcc=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ccfcc)),this['currentRevision']['_update'](_0x52b246);}}async['saveRevision'](_0x317a12={},_0x1fa897=null){const _0xb57fcd=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1fa897>this['currentRevision']['toVersion']&&(_0x1fa897=null),null===_0x1fa897&&(_0x1fa897=await this['_source']['getLatestVersion']());const _0x234ca4=this['_getFromVersion'](_0x1fa897),_0x5e75c8=this['buildRevisionData']({'from':_0x234ca4,'to':_0x1fa897});if(this['currentRevision']['toVersion']<_0x1fa897){const _0x200886=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1fa897,'to':_0x1fa897});_0x200886['authors']=[],_0x200886['authorsIds']=[],_0x200886['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x200886,!0x0),delete _0x200886['authors'],_0xb57fcd['push'](_0x200886);}_0x317a12['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x317a12['name']=_0x317a12['name']||null,_0x317a12['id']=_0x317a12['id']||_0x452db2(),_0x317a12={..._0x317a12,..._0x5e75c8};const _0x279d8c=this['addRevisionData'](_0x317a12);_0xb57fcd['push'](_0x317a12);const _0x23d5e7=this['repository']['getIndex'](_0x279d8c);if(0x0!==_0x23d5e7){const _0x44c534=this['repository']['getRevision'](_0x23d5e7-0x1);if(_0x44c534['fromVersion']!==_0x1fa897){const _0x55b000=this['_revisionDataBuilder']['getData'](_0x1fa897,_0x44c534['toVersion']),_0x1ae479={'id':_0x44c534['id'],'diffData':_0x55b000['diffData'],'authorsIds':_0x55b000['authorsIds'],'authors':_0x55b000['authorsIds']['map'](_0x4b1b32=>this['editor']['plugins']['get']('Users')['getUser'](_0x4b1b32)),'fromVersion':_0x1fa897};_0x44c534===this['currentRevision']&&(_0x1ae479['createdAt']=new Date(_0x317a12['createdAt']['getTime']()+0xa)),_0x44c534['_update'](_0x1ae479,!0x0),delete _0x1ae479['authors'],_0xb57fcd['push'](_0x1ae479);}}if(this['adapter']){for(const _0x36bc6f of _0xb57fcd)this['_bufferUpdate'](_0x36bc6f['id'],_0x36bc6f,!0x0);this['sendBufferedUpdates']();}return _0x279d8c;}['addRevisionData'](_0x22713c){const _0x32b8b3=this['repository']['createRevision'](_0x22713c);return this['adapter']&&_0x32b8b3['on']('_update',(_0x51aaba,_0x5eeaa0,_0x204807)=>{_0x204807||(this['_bufferUpdate'](_0x5eeaa0['id'],_0x5eeaa0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x32b8b3,this['_findInsertionIndex'](_0x32b8b3)),_0x32b8b3;}async['getRevisionDocumentData'](_0x50580c){return await this['_utils']['loadRevisionData'](_0x50580c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x50580c);}async['getRevisionRootsAttributes'](_0xa5c8fd){return await this['_utils']['loadRevisionData'](_0xa5c8fd,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xa5c8fd);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3bea1a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2c8055=0x0;_0x2c8055<_0x3bea1a['length'];_0x2c8055++){const _0x4b4009=_0x3bea1a[_0x2c8055];let _0x5f3d32=!0x1;for(const _0x13a0bf of Object['keys'](_0x4b4009))void 0x0===_0x4b4009[_0x13a0bf]?delete _0x4b4009[_0x13a0bf]:'id'!==_0x13a0bf&&(_0x5f3d32=!0x0);_0x5f3d32||(_0x3bea1a[_0x2c8055]=null);}if(_0x3bea1a=_0x3bea1a['filter'](_0x1e079a=>null!==_0x1e079a),!_0x3bea1a['length'])return;for(let _0x4cad34=0x0;_0x4cad34<_0x3bea1a['length'];_0x4cad34++){const _0x501941=_0x3bea1a[_0x4cad34];void 0x0!==_0x501941['fromVersion']&&void 0x0===_0x501941['toVersion']&&(_0x501941['toVersion']=this['repository']['getRevision'](_0x501941['id'])['toVersion']),void 0x0!==_0x501941['toVersion']&&void 0x0===_0x501941['fromVersion']&&(_0x501941['fromVersion']=this['repository']['getRevision'](_0x501941['id'])['fromVersion']);}const _0x38eb03=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3bea1a,_0x38eb03)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2decfd=>{if(_0x2decfd){for(const _0x43b8a5 of _0x2decfd)this['setRevisionData']({'id':_0x43b8a5['id'],'createdAt':_0x43b8a5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x54812c=null,from:_0x123478=null,to:_0x4c823d=null}){_0x123478=null!==_0x123478?_0x123478:_0x54812c['fromVersion'],_0x4c823d=null!==_0x4c823d?_0x4c823d:_0x54812c['toVersion'];const _0x1169ba=this['_revisionDataBuilder']['getData'](_0x123478,_0x4c823d),_0x4a3bd5={'diffData':_0x1169ba['diffData'],'authorsIds':_0x1169ba['authorsIds'],'fromVersion':_0x123478,'toVersion':_0x4c823d};if(!_0x54812c||_0x4c823d!==_0x54812c['toVersion']){const _0x2006e9=_0x4c823d-0x1,_0x216ea9=this['_source']['history']['getOperation'](_0x2006e9);_0x4a3bd5['createdAt']=_0x216ea9&&_0x216ea9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x123478===this['_loadedStateData']['fromVersion']){for(const _0x57236b of this['_loadedStateData']['authors'])_0x4a3bd5['authorsIds']['includes'](_0x57236b['id'])||_0x4a3bd5['authorsIds']['push'](_0x57236b['id']);}return _0x4a3bd5;}['_bufferUpdate'](_0x409f8,_0x2de590,_0x187d5a){if(this['_bufferedUpdates']['has'](_0x409f8)){const _0x208159=this['_bufferedUpdates']['get'](_0x409f8);_0x2de590=_0x187d5a?{..._0x208159,..._0x2de590}:{..._0x2de590,..._0x208159};}this['_bufferedUpdates']['set'](_0x409f8,_0x2de590);}['setRevisionData'](_0x5c5559){const _0x4c4f9c=this['repository']['getRevision'](_0x5c5559['id']);if(_0x5c5559['createdAt']&&(_0x5c5559['createdAt']=new Date(_0x5c5559['createdAt'])),_0x5c5559['authorsIds']){const _0x293b1e=this['editor']['plugins']['get']('Users');_0x5c5559['authors']=_0x5c5559['authorsIds']['map'](_0x197118=>_0x293b1e['getUser'](_0x197118));}_0x4c4f9c['_update'](_0x5c5559,!0x0);}['_createInitialRevision'](_0x5e4f0c){const _0x247bd9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x247bd9)this['_initialRevisionId']=_0x247bd9['id'];else{const _0x5d14be=!this['editor']['model']['document']['roots']['find'](_0x3b7f97=>this['editor']['model']['hasContent'](_0x3b7f97)),_0x3e59c6=this['editor']['plugins']['get']('Users')['me']['id'],_0x48f304=g(this['editor']['locale'],_0x5d14be?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5e4f0c,'to':_0x5e4f0c,'id':this['_initialRevisionId'],'name':_0x48f304,'creatorId':_0x3e59c6});}}['_createCurrentRevision'](_0x4ecdfd){const _0x124aa8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x124aa8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4ecdfd,'to':_0x4ecdfd,'id':_0x124aa8,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x13fe97,_0x8e52b8){let _0xe7cf19=this['editor']['config']['get']('initialData'),_0x87512a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xe7cf19){_0xe7cf19={};for(const _0x452f41 of this['editor']['model']['document']['getRootNames']())_0xe7cf19[_0x452f41]='';}if('string'==typeof _0xe7cf19&&(_0xe7cf19={'main':_0xe7cf19}),void 0x0===_0x87512a){_0x87512a={};for(const _0x4b6bd3 of this['editor']['model']['document']['getRootNames']())_0x87512a[_0x4b6bd3]={};}let _0x124671=!0x1;const _0x2542ba=Object['keys'](_0xe7cf19),_0x490901=Object['keys'](_0x13fe97);for(const _0x44c97c of _0x2542ba){if(_0xe7cf19[_0x44c97c]!==_0x13fe97[_0x44c97c]&&''!==_0xe7cf19[_0x44c97c]['trim']()){_0x124671=!0x0;break;}if(!_0x3ab384(_0x87512a[_0x44c97c],_0x8e52b8[_0x44c97c])&&Object['keys'](_0x87512a[_0x44c97c])['length']>0x0){_0x124671=!0x0;break;}}_0x124671||(_0x124671=_0x490901['some'](_0x37aaef=>!this['editor']['model']['document']['getRoot'](_0x37aaef))),_0x124671&&_0x16fb6c('editor-initial-data-replaced-with-revision-data',{'editorData':_0xe7cf19,'editorRootsAttributes':_0x87512a,'revisionData':_0x13fe97,'revisionRootsAttributes':_0x8e52b8}),this['editor']['config']['set']('initialData',_0x13fe97),this['editor']['config']['set']('rootsAttributes',_0x8e52b8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x562f5d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x562f5d['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x16f2ba){const _0x14830b=this['repository']['getRevisions']();_0x14830b['reverse']();let _0x57df18=0x0;for(;_0x57df18<_0x14830b['length'];){const _0x15f893=_0x14830b[_0x57df18];if(_0x15f893===this['currentRevision']){_0x57df18++;continue;}if(_0x15f893['id']===this['_initialRevisionId'])break;const _0x4c7ad9=_0x16f2ba['toVersion']-_0x15f893['toVersion']||_0x16f2ba['fromVersion']-_0x15f893['fromVersion'];if(_0x4c7ad9>0x0)break;if(_0x4c7ad9<0x0)_0x57df18++;else{if(!_0x16f2ba['creator']&&_0x15f893['creator'])break;if(_0x15f893['creator']||!_0x16f2ba['creator']){if(_0x16f2ba['createdAt']>_0x15f893['createdAt'])break;_0x57df18++;}else _0x57df18++;}}return _0x57df18;}['_getFromVersion'](_0x50026e){const _0x4c0b6d=this['repository']['getRevisions']();_0x4c0b6d['reverse'](),_0x4c0b6d['shift']();const _0x43715f=_0x4c0b6d['find'](_0x4fe61b=>_0x4fe61b['toVersion']<=_0x50026e)['toVersion'];return _0x43715f<this['_startingVersion']?this['_startingVersion']:_0x43715f;}['_makeRevision']({name:_0x424558,from:_0x43ce85,to:_0x2eb8e9,creatorId:_0x389b72,id:_0x526104}){const _0xb38d22=this['buildRevisionData']({'from':_0x43ce85,'to':_0x2eb8e9});_0xb38d22['name']=_0x424558,_0xb38d22['creatorId']=_0x389b72,_0xb38d22['id']=_0x526104;const _0x1a2420=this['addRevisionData'](_0xb38d22);return this['adapter']&&this['_bufferUpdate'](_0xb38d22['id'],_0xb38d22,!0x0),_0x1a2420;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x146f9e){this['editor']=_0x146f9e,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'](_0x4b94e0){this['source']=_0x4b94e0;const _0x1b8aaa=new Map(),_0x53945b=new Map(),_0x26ae8e=this['editor']['model']['document']['roots']['map'](_0x56322b=>_0x56322b['rootName']);for(const _0x188afd of _0x26ae8e){const _0x1399de=this['editor']['model']['document']['getRoot'](_0x188afd),_0x122537=N(_0x1399de);_0x1b8aaa['set'](_0x188afd,_0x122537),_0x53945b['set'](_0x188afd,Object['fromEntries'](_0x1399de['getAttributes']()));}const _0x4605dd=Array['from'](this['editor']['model']['markers'])['map'](_0x80961a=>[_0x80961a['name'],_0x80961a['getRange']()]),_0x519e91=this['source']['version'];this['_saveMetaData'](_0x519e91,_0x1b8aaa,_0x4605dd,_0x53945b),this['_startingRevisionId']=this['_revisionId'];const _0x3a76b4=new Map(),_0x4f4276=new Map();for(const _0x51a69b of _0x26ae8e){const _0x335d1f=P(_0x51a69b);_0x3a76b4['set'](_0x51a69b,_0x335d1f),_0x4f4276['set'](_0x51a69b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3a76b4,[],_0x4f4276);}['getData'](_0x108186,_0x2cc35f){if(this['_lastFrom']===_0x108186&&this['_lastTo']<=_0x2cc35f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2cc35f,!0x0);else{if(!this['_savedMetaData']['has'](_0x108186)){const _0x4adc99=this['_getPreviousFrom'](_0x108186);this['_calculateMetaData'](_0x4adc99,_0x108186,!0x1);}this['_calculateMetaData'](_0x108186,_0x2cc35f,!0x0);}return this['_lastFrom']=_0x108186,this['_lastTo']=_0x2cc35f,this['_getState']();}['loadState'](_0x260cd6){const _0x318f6e=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x260cd6['fromVersion'],this['_lastTo']=_0x260cd6['toVersion'];for(const _0x304db7 in _0x260cd6['diffData']){const _0x7970e0=_0x260cd6['diffData'][_0x304db7]['attachChange'],_0x5b9e0b=_0x1ce38b(_0x260cd6['diffData'][_0x304db7]['attributesBefore'])||{},_0x22804d=_0x318f6e['_makeModelFromViewString'](_0x260cd6['diffData'][_0x304db7]['deletions']);_0x22804d['rootName']=_0x304db7,_0x22804d['_isAttached']=!_0x7970e0||!_0x7970e0['isAttached'],_0x22804d['isAttached']=()=>_0x22804d['_isAttached'],this['_baseRoots']['set'](_0x304db7,_0x22804d),this['_baseRootsAttributes']['set'](_0x304db7,_0x5b9e0b),_0x7970e0&&this['_touchedRoots']['set'](_0x304db7,_0x7970e0);const _0x578cf2=this['_makeIdsRoot'](_0x22804d);this['_baseIdsRoots']['set'](_0x304db7,_0x578cf2);for(const [_0x1a6a1b,_0x5a2f0c]of _0x22804d['markers']){if(!_0x1a6a1b['startsWith']('revision:'))continue;const _0x441bbf=_0x1a6a1b['split'](':')[0x2];for(const _0x1d84c4 of _0x5a2f0c['getWalker']({'singleCharacters':!0x0})){const _0x4bf4fd=this['_getVidAttributeName'](_0x1d84c4),_0x5ecb5b='elementEnd'==_0x1d84c4['type']?_0x1d84c4['previousPosition']['path']['slice'](0x0,-0x1):_0x1d84c4['previousPosition']['path'],_0x2c26cd=_0x578cf2['getNodeByPath'](_0x5ecb5b)['getAttribute'](_0x4bf4fd);this['_touched']['set'](_0x2c26cd,{'userId':_0x441bbf});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4b91cc=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x43048b=>!this['_touched']['has'](_0x43048b));let _0x3f08ad=0x0;const _0x1d0b0e=new Map();for(const _0xb7673 in _0x260cd6['diffData']){const _0x8cfd9b=_0x260cd6['diffData'][_0xb7673]['attachChange'],_0x11f682=_0x1ce38b(_0x260cd6['diffData'][_0xb7673]['attributesAfter'])||{},_0x5e8d12=_0x318f6e['_makeModelFromViewString'](_0x260cd6['diffData'][_0xb7673]['insertions']);_0x5e8d12['rootName']=_0xb7673,_0x5e8d12['_isAttached']=!_0x8cfd9b||_0x8cfd9b['isAttached'],_0x5e8d12['isAttached']=()=>_0x5e8d12['_isAttached'],this['_diffRoots']['set'](_0xb7673,_0x5e8d12),this['_diffRootsAttributes']['set'](_0xb7673,_0x11f682);const _0x1d26bf=this['_makeIdsRoot'](_0x5e8d12,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xb7673,_0x1d26bf),_0x1d0b0e['set'](_0xb7673,_0x5e8d12['isAttached']()?_0x11f682:{});for(const [_0x40c0d8,_0x44c4f0]of _0x5e8d12['markers']){if(!_0x40c0d8['startsWith']('revision:'))continue;const _0x979449=_0x40c0d8['split'](':')[0x2];for(const _0x8c8ab7 of _0x44c4f0['getWalker']({'singleCharacters':!0x0})){const _0x5245cc=this['_getVidAttributeName'](_0x8c8ab7),_0x22900e=this['_revisionId']++,_0x32c7d1='elementEnd'==_0x8c8ab7['type']?_0x8c8ab7['previousPosition']['path']['slice'](0x0,-0x1):_0x8c8ab7['previousPosition']['path'];_0x1d26bf['getNodeByPath'](_0x32c7d1)['_setAttribute'](_0x5245cc,_0x22900e),this['_touched']['set'](_0x22900e,{'userId':_0x979449});}}for(const _0x527b58 of this['editor']['model']['createRangeIn'](_0x5e8d12)['getWalker']({'singleCharacters':!0x0})){const _0x408044=this['_getVidAttributeName'](_0x527b58),_0x235416='elementEnd'==_0x527b58['type']?_0x527b58['previousPosition']['path']['slice'](0x0,-0x1):_0x527b58['previousPosition']['path'],_0x141953=_0x1d26bf['getNodeByPath'](_0x235416);_0x141953['getAttribute'](_0x408044)>0x0||_0x141953['_setAttribute'](_0x408044,_0x4b91cc[_0x3f08ad++]);}for(const [_0x38528f,_0xe9d65e]of _0x5e8d12['markers'])_0x38528f['startsWith']('revision:')||this['_markers']['set'](_0x38528f,_0xe9d65e);}const _0xf38ba9=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xf38ba9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf38ba9,0x1));const _0x2353d4=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2353d4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2353d4,0x1));const _0x3b7b1e=Array['from'](this['_diffRoots'])['map'](([_0x21e4ae,_0x403c95])=>[_0x21e4ae,N(_0x403c95)]);this['_saveMetaData'](this['_lastTo'],_0x3b7b1e,this['_markers'],_0x1d0b0e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x471e3a,_0x1f2658,_0x233978,_0x189bdf){const _0x29877e=new Map(_0x1f2658),_0x50151b=new Map(_0x1ce38b(_0x189bdf)),_0xf0e57=new Map();for(const [_0x27eb87,_0x2bedd2]of _0x233978)_0xf0e57['set'](_0x27eb87,{'start':_0x2bedd2['start']['clone'](),'end':_0x2bedd2['end']['clone'](),'rootName':_0x2bedd2['root']['rootName']});this['_savedMetaData']['set'](_0x471e3a,{'roots':_0x29877e,'markers':_0xf0e57,'rootsAttributes':_0x50151b});}['_removeMetaData'](_0x474def){this['_savedMetaData']['delete'](_0x474def);}['_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'](_0x1e1b25,_0x595455=null){let _0x392288=null;_0x1e1b25['is']('documentFragment')||(_0x392288=new ut(_0x1e1b25['name'],{'vid_start':null===_0x595455?this['_revisionId']++:_0x595455++}));const _0x2967b1=[];for(const _0x13005e of _0x1e1b25['getChildren']())if(_0x13005e['is']('element')){_0x2967b1['push'](this['_makeIdsRoot'](_0x13005e,_0x595455));const _0x32d4af=_0x2967b1[_0x2967b1['length']-0x1];null!==_0x595455&&(_0x595455=_0x32d4af['is']('element','$text')?_0x32d4af['getAttribute']('vid')+0x1:_0x32d4af['getAttribute']('vid_end')+0x1);}else{for(let _0x241ef3=0x0;_0x241ef3<_0x13005e['offsetSize'];_0x241ef3++)_0x2967b1['push'](new ut('$text',{'vid':null===_0x595455?this['_revisionId']++:_0x595455++}));}if(_0x1e1b25['is']('documentFragment')){const _0x2ff32a=P(_0x1e1b25['rootName']);return _0x2ff32a['_insertChild'](0x0,_0x2967b1),_0x2ff32a;}return _0x392288['_setAttribute']('vid_end',null===_0x595455?this['_revisionId']++:_0x595455++),_0x392288['_insertChild'](0x0,_0x2967b1),_0x392288;}['_calculateMetaData'](_0x5cf2be,_0x94d7fb,_0x200752){this['_reset']();const {roots:_0x53cf36,markers:_0x1109ff,rootsAttributes:_0x4531b7}=this['_savedMetaData']['get'](_0x5cf2be);this['_baseRoots']=new Map(_0x53cf36),this['_baseRootsAttributes']=new Map(_0x1ce38b(_0x4531b7));for(const [_0x2a16f0,_0x60e183]of this['_baseRoots'])if('$graveyard'!==_0x2a16f0&&(this['_diffRoots']['set'](_0x2a16f0,N(_0x60e183)),this['_diffRootsAttributes']=new Map(_0x1ce38b(_0x4531b7)),_0x200752)){const _0x266e5e=this['_revisionId'];this['_idsRoots']['set'](_0x2a16f0,this['_makeIdsRoot'](_0x60e183)),this['_baseIdsRoots']['set'](_0x2a16f0,this['_makeIdsRoot'](_0x60e183,_0x266e5e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x200752&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1cc451,_0x297bea]of _0x1109ff){const _0xa62eb4=this['_baseRoots']['get'](_0x297bea['rootName']),_0x5ee4c9=this['_diffRoots']['get'](_0x297bea['rootName']),_0x11d3ee=new ft(this['_fixPosition'](_0x297bea['start'],_0xa62eb4),this['_fixPosition'](_0x297bea['end'],_0xa62eb4)),_0x2e7c15=this['_fixRange'](_0x11d3ee,_0x5ee4c9);_0xa62eb4['markers']['set'](_0x1cc451,_0x11d3ee),this['_markers']['set'](_0x1cc451,_0x2e7c15);}this['_applyOperations'](_0x5cf2be,_0x94d7fb,_0x200752);}['_applyOperations'](_0x44b2a2,_0xfa6ace,_0x5848ef){for(const _0x3e8cf6 of this['source']['getOperations'](_0x44b2a2,_0xfa6ace))this['_handleOperation'](_0x3e8cf6,_0x5848ef);for(const _0x537a06 of this['_diffRoots']['values']())_0x537a06['markers']['clear']();for(const [_0xa9a0fa,_0x35ac09]of this['_markers']){this['_diffRoots']['get'](_0x35ac09['root']['rootName'])['markers']['set'](_0xa9a0fa,_0x35ac09['clone']());}const _0x4dc236=new Map(),_0x1d13f5=new Map();for(const [_0x21ad23,_0x215de9]of this['_diffRoots'])_0x4dc236['set'](_0x21ad23,N(_0x215de9)),_0x1d13f5['set'](_0x21ad23,this['_diffRootsAttributes']['get'](_0x21ad23));this['_saveMetaData'](_0xfa6ace,_0x4dc236,this['_markers'],_0x1d13f5);}['_getPreviousFrom'](_0x415143){const _0x5e41f0=Array['from'](this['_savedMetaData']['keys']());_0x5e41f0['sort']((_0x1287f3,_0x5db446)=>_0x1287f3-_0x5db446),_0x5e41f0['reverse']();for(const _0x458df9 of _0x5e41f0)if(_0x458df9<_0x415143)return _0x458df9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x190b79,_0x94b9be){const _0x13b74a=Array['from'](_0x94b9be['markers'])['map'](([_0x48fa50,_0x5ac189])=>[_0x48fa50,this['_fixRange'](_0x5ac189,_0x190b79)]);_0x190b79['markers']=new Map(_0x13b74a);}['_transformMarkers'](_0x151036){for(const _0x4fbb4b of this['_markers']['values']()){const _0x3978d9=_0x4fbb4b['getTransformedByOperation'](_0x151036),_0xd4c002=ft['_createFromRanges'](_0x3978d9);_0x4fbb4b['start']=_0xd4c002['start'],_0x4fbb4b['end']=_0xd4c002['end'];}}['_handleOperation'](_0x5455ce,_0x292e32){if('addRoot'!=_0x5455ce['type']&&'detachRoot'!=_0x5455ce['type']){if('insert'==_0x5455ce['type']){const _0x15aae7=_0x5455ce['position']['root']['rootName'];this['_diffRoots']['has'](_0x15aae7)||(this['_diffRoots']['set'](_0x15aae7,P(_0x15aae7,!0x0)),this['_diffRootsAttributes']['set'](_0x15aae7,{}),_0x292e32&&this['_idsRoots']['set'](_0x15aae7,P(_0x15aae7,!0x0)));}else{if('addRootAttribute'==_0x5455ce['type']||'removeRootAttribute'==_0x5455ce['type']||'changeRootAttribute'==_0x5455ce['type'])return void this['_handleRootAttributeOperation'](_0x5455ce);'marker'==_0x5455ce['type']&&this['_handleMarkerOperation'](_0x5455ce);}if('marker'!==_0x5455ce['type']){const _0x41d3b4=this['_cloneOperation'](_0x5455ce,this['_diffRoots']);_0x41d3b4['_execute'](),this['_transformMarkers'](_0x41d3b4);}if(_0x292e32)switch(_0x5455ce['type']){case'insert':this['_handleInsertOperation'](_0x5455ce);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5455ce);break;case'merge':this['_handleMergeOperation'](_0x5455ce);break;case'split':this['_handleSplitOperation'](_0x5455ce);}}else this['_handleRootOperation'](_0x5455ce,_0x292e32);}['_cloneOperation'](_0x2a5cd2,_0x101415){const _0x15558d=_0x2a5cd2['clone']();return _0x15558d['_authorId']=_0x2a5cd2['_authorId'],this['_fixOperation'](_0x15558d,_0x101415),_0x15558d;}['_getBaseVids'](_0x412d2a){return _0x412d2a['map'](_0x1759f4=>{const _0x52b99c=this['_getVidAttributeName'](_0x1759f4);return Number(_0x1759f4['item']['getAttribute'](_0x52b99c));});}['_generateTape'](_0x489233,_0x86e843){if(_0x489233['is']('element','$text'))_0x86e843['push']({'item':_0x489233,'type':'text'});else{_0x489233['is']('element')&&_0x86e843['push']({'item':_0x489233,'type':'elementStart'});for(const _0x5c99a7 of _0x489233['getChildren']())this['_generateTape'](_0x5c99a7,_0x86e843);_0x489233['is']('element')&&_0x86e843['push']({'item':_0x489233,'type':'elementEnd'});}return _0x86e843;}['_getState'](){const _0x4ee4bc=new Map(this['_touched']),_0x19073b=new Map(_0x4ee4bc),_0x3c463a=new Map(),_0x2a74b8={'insertions':{},'deletions':{}},_0x53da2a={'insertions':{},'deletions':{}},_0x307a16=new Map(),_0x351855=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x351855['delete']('$graveyard');for(const _0x54bcdb of _0x351855){const _0x3d4d56=this['_diffRoots']['get'](_0x54bcdb)||P(_0x54bcdb,!0x1),_0x29b309=this['_baseRoots']['get'](_0x54bcdb)||P(_0x54bcdb,!0x1);_0x3d4d56['isAttached']()||_0x29b309['isAttached']()?(_0x2a74b8['insertions'][_0x54bcdb]=N(_0x3d4d56),_0x2a74b8['deletions'][_0x54bcdb]=N(_0x29b309),this['_copyMarkers'](_0x2a74b8['deletions'][_0x54bcdb],_0x29b309),this['_copyMarkers'](_0x2a74b8['insertions'][_0x54bcdb],_0x3d4d56),_0x53da2a['insertions'][_0x54bcdb]=this['_generateTape'](this['_idsRoots']['get'](_0x54bcdb),[]),_0x53da2a['deletions'][_0x54bcdb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x54bcdb)||P(_0x54bcdb,!0x1),[])):_0x351855['delete'](_0x54bcdb);}for(const _0xf88bc2 of _0x351855){const _0x58150c=_0x53da2a['insertions'][_0xf88bc2];for(const _0x3f232c of _0x58150c){const _0x431bf9=this['_getVidAttributeName'](_0x3f232c),_0x1bafe0=_0x3f232c['item']['getAttribute'](_0x431bf9);_0x19073b['delete'](_0x1bafe0),_0x1bafe0>=this['_startingRevisionId']&&_0x3c463a['set'](_0x1bafe0,_0x4ee4bc['get'](_0x1bafe0));}}for(const _0x107aeb of _0x351855){const _0x333a00=_0x53da2a['insertions'][_0x107aeb],_0x4c4ec1=this['_getBaseVids'](_0x53da2a['deletions'][_0x107aeb]);let _0x4e837f=0x0;for(const _0x533c8c of _0x333a00){const _0x3fb525=this['_getVidAttributeName'](_0x533c8c),_0x49190c=_0x533c8c['item']['getAttribute'](_0x3fb525);if(!_0x3c463a['has'](_0x49190c)&&!_0x307a16['has'](_0x49190c)){if(_0x19073b['has'](_0x49190c))_0x4e837f++;else{if(_0x49190c!=_0x4c4ec1[_0x4e837f]){const _0xb50862=_0x4ee4bc['get'](_0x49190c)||_0x4ee4bc['get'](_0x4c4ec1[_0x4e837f]);for(;_0x49190c!=_0x4c4ec1[_0x4e837f];)_0x19073b['has'](_0x4c4ec1[_0x4e837f])||(_0x307a16['set'](_0x4c4ec1[_0x4e837f],_0xb50862),_0x4ee4bc['set'](_0x4c4ec1[_0x4e837f],_0xb50862)),_0x4e837f++;}_0x4e837f++;}}}}for(const _0x1c254c of _0x351855){const _0x4531ac=_0x53da2a['insertions'][_0x1c254c];for(const _0x2d2339 of _0x4531ac){const _0x163d0d=this['_getVidAttributeName'](_0x2d2339),_0x2df1d7=_0x2d2339['item']['getAttribute'](_0x163d0d);if(_0x307a16['has'](_0x2df1d7)){const _0xa67857=_0x307a16['get'](_0x2df1d7);_0x19073b['has'](_0x2df1d7)||_0x19073b['set'](_0x2df1d7,{..._0xa67857}),_0x3c463a['set'](_0x2df1d7,{..._0xa67857});}}}for(const _0xdee6d of _0x19073b['keys']())_0xdee6d>=this['_startingRevisionId']&&_0x19073b['delete'](_0xdee6d);const _0x6632d1=new Map();for(const _0x2416dc of _0x351855){let _0x5a8d48=_0x53da2a['insertions'][_0x2416dc];for(const _0x24d4ec of _0x5a8d48)if(_0x24d4ec['item']['is']('element','tableCell')){const _0x261a5c=this['_getVidAttributeName'](_0x24d4ec),_0x122959=_0x24d4ec['item']['getAttribute'](_0x261a5c);if(_0x3c463a['has'](_0x122959)){const _0xcdbca2=_0x24d4ec['item']['parent']['parent']['getAttribute']('vid_start'),_0x2ddedb=_0x6632d1['get'](_0xcdbca2)||new Set();_0x2ddedb['add'](_0x3c463a['get'](_0x122959)['userId']),_0x6632d1['set'](_0xcdbca2,_0x2ddedb);}}_0x5a8d48=_0x53da2a['deletions'][_0x2416dc];for(const _0x28fb93 of _0x5a8d48)if(_0x28fb93['item']['is']('element','tableCell')){const _0xeb885b=this['_getVidAttributeName'](_0x28fb93),_0x5ed50b=_0x28fb93['item']['getAttribute'](_0xeb885b);if(_0x19073b['has'](_0x5ed50b)){const _0xc69b73=_0x28fb93['item']['parent']['parent']['getAttribute']('vid_start'),_0x43fe0e=_0x6632d1['get'](_0xc69b73)||new Set();_0x43fe0e['add'](_0x19073b['get'](_0x5ed50b)['userId']),_0x6632d1['set'](_0xc69b73,_0x43fe0e);}}for(const _0x3ea10b of _0x6632d1['keys']())(_0x3c463a['has'](_0x3ea10b)||_0x19073b['has'](_0x3ea10b))&&_0x6632d1['delete'](_0x3ea10b);}for(const _0x1784be of _0x351855){const _0x5a2db8=_0x53da2a['insertions'][_0x1784be];let _0x19b98e=null,_0x1bb320=null;for(const _0x2f2e65 of _0x5a2db8){const _0x35fa34=this['_getVidAttributeName'](_0x2f2e65),_0x5385a1=_0x2f2e65['item']['getAttribute'](_0x35fa34),_0x2c540c=_0x6632d1['get'](_0x5385a1);_0x2c540c&&'elementStart'==_0x2f2e65['type']&&(_0x19b98e=Array['from'](_0x2c540c)[0x0],_0x1bb320=_0x2f2e65['item']['getAttribute']('vid_end')),_0x19b98e&&(_0x19073b['set'](_0x5385a1,{'userId':_0x19b98e}),_0x3c463a['set'](_0x5385a1,{'userId':_0x19b98e})),_0x5385a1==_0x1bb320&&(_0x19b98e=null,_0x1bb320=null);}}const _0x557e2b={},_0x572727=new Set();for(const _0x55017d of _0x351855){const _0x4fb68f=_0x2a74b8['deletions'][_0x55017d],_0x19dc79=_0x2a74b8['insertions'][_0x55017d];for(const {userId:_0x436ec0}of this['_touchedMarkers']['values']())null!==_0x436ec0&&_0x572727['add'](_0x436ec0);for(const {userId:_0x34e8c4}of this['_touchedRoots']['values']())null!==_0x34e8c4&&_0x572727['add'](_0x34e8c4);this['_markChanges'](_0x19dc79,_0x53da2a['insertions'][_0x55017d],_0x3c463a,'insertion',_0x572727),this['_markChanges'](_0x4fb68f,_0x53da2a['deletions'][_0x55017d],_0x19073b,'deletion',_0x572727),_0x557e2b[_0x55017d]={'insertions':this['_prepareViewToSave'](_0x19dc79),'deletions':this['_prepareViewToSave'](_0x4fb68f),'attachChange':this['_touchedRoots']['get'](_0x55017d)||null,'attributesBefore':_0x1ce38b(this['_baseRootsAttributes']['get'](_0x55017d))||{},'attributesAfter':_0x1ce38b(this['_diffRootsAttributes']['get'](_0x55017d))};}return{'diffData':_0x557e2b,'authorsIds':Array['from'](_0x572727)};}['_processRootBeforeSave'](_0x1e1039){for(const [,_0xe8fcae]of _0x1e1039['markers']){const _0x562230=_0xe8fcae['start']['getAncestors']()['filter'](_0x20773c=>'tableCell'==_0x20773c['name']);for(const _0x280d4b of _0x562230)0x1==_0x280d4b['childCount']&&_0x280d4b['getChild'](0x0)['is']('element','paragraph')&&_0x280d4b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xde4e71){this['_processRootBeforeSave'](_0xde4e71);const _0x37122f=this['editor']['data']['toView'](_0xde4e71,{}),_0x2577bb=Array['from'](_0x37122f['getChildren']())['map'](_0x4489f9=>this['_getViewJson'](_0x4489f9));return JSON['stringify'](_0x2577bb);}['_getViewJson'](_0x2e9670){if(_0x2e9670['is']('$text'))return _0x2e9670['data'];{const _0x55c7e2=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4fc31f=_0x2e9670,_0x4bb898=this['editor']['data']['htmlProcessor']['domConverter'],_0x3d6b32={'type':_0x55c7e2['_getTypeCharForViewElement'](_0x4fc31f),'name':_0x4fc31f['name'],'attributes':Array['from'](_0x4fc31f['getAttributes']()),'children':Array['from'](_0x4fc31f['getChildren']())['map'](_0x38934c=>this['_getViewJson'](_0x38934c))};if(_0x2e9670['is']('uiElement')&&'$comment'!=_0x2e9670['name']){const _0x527e0e=_0x2e9670['render'](_0x4bb898['domDocument'],_0x4bb898);_0x3d6b32['children']['push'](_0x527e0e['outerHTML']);}else{if(_0x2e9670['is']('rawElement')){const _0x3c0d38=_0x4bb898['domDocument']['createElement'](_0x4fc31f['name']);_0x2e9670['render'](_0x3c0d38,_0x4bb898),_0x3d6b32['children']['push'](_0x3c0d38['innerHTML']);}}const _0x37889f=Array['from'](_0x4fc31f['getCustomProperties']());_0x37889f['length']>0x0&&(_0x3d6b32['customProperties']=_0x37889f);const _0x46e0df=_0x4fc31f['getFillerOffset']();return null!==_0x46e0df&&(_0x3d6b32['fillerOffset']=_0x46e0df),_0x3d6b32;}}['_markChanges'](_0x343695,_0x54fdb1,_0x21a98f,_0x3d06bd,_0x3ab67d){let _0x2123b0=null,_0x56e02f=null,_0x2b17b3=0x0;const _0x15a553=this['editor']['model'];for(let _0x2a0072=0x0;_0x2a0072<_0x54fdb1['length'];_0x2a0072++){const _0x3f4249=this['_getVidAttributeName'](_0x54fdb1[_0x2a0072]),_0xa922e1=_0x54fdb1[_0x2a0072]['item']['getAttribute'](_0x3f4249),_0x2faf5f=_0x21a98f['get'](_0xa922e1),_0x436b65=_0x2a0072==_0x54fdb1['length']-0x1;(!_0x2123b0&&_0x2faf5f&&(_0x2123b0=_0x2faf5f,_0x56e02f=_0x54fdb1[_0x2a0072]),_0x2123b0&&(!_0x2faf5f||_0x2faf5f['userId']!=_0x2123b0['userId']))&&(_0x2b5334(_0x2faf5f,F(_0x56e02f,_0x343695,_0x15a553),F(_0x54fdb1[_0x2a0072],_0x343695,_0x15a553)),_0x2123b0=_0x2faf5f||null,_0x56e02f=_0x2faf5f?_0x54fdb1[_0x2a0072]:null),_0x2123b0&&_0x436b65&&_0x2b5334(_0x2faf5f,F(_0x56e02f,_0x343695,_0x15a553),B(_0x54fdb1[_0x2a0072],_0x343695,_0x15a553));}function _0x2b5334(_0x368846,_0x5200d0,_0x9cb5e1){const _0x228a31=_0x2123b0['userId'],_0x3b5501='revision:'+_0x3d06bd+':'+_0x228a31+':'+_0x2b17b3++,_0x196953=_0x15a553['createRange'](_0x5200d0,_0x9cb5e1);_0x343695['markers']['set'](_0x3b5501,_0x196953),null!==_0x228a31&&_0x3ab67d['add'](_0x228a31);}}['_getVidAttributeName'](_0x35e17c){switch(_0x35e17c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2cd82d,_0x574714){_0x2cd82d['baseVersion']=null;for(const _0x3c7901 in _0x2cd82d){const _0x16e8a8=_0x2cd82d[_0x3c7901];if(_0x16e8a8 instanceof vt){const _0x3e945f=_0x574714['get'](_0x16e8a8['root']['rootName']);_0x2cd82d[_0x3c7901]=this['_fixPosition'](_0x16e8a8,_0x3e945f);}if(_0x16e8a8 instanceof ft){const _0x5049a5=_0x574714['get'](_0x16e8a8['root']['rootName']);_0x2cd82d[_0x3c7901]=this['_fixRange'](_0x16e8a8,_0x5049a5);}'root'===_0x3c7901&&(_0x2cd82d['root']=_0x574714['get'](_0x2cd82d['root']['rootName']));}}['_fixRange'](_0x34fc55,_0x48ec87){return this['editor']['model']['createRange'](this['_fixPosition'](_0x34fc55['start'],_0x48ec87),this['_fixPosition'](_0x34fc55['end'],_0x48ec87));}['_fixPosition'](_0x3e4a6c,_0x3a7082){return this['editor']['model']['createPositionFromPath'](_0x3a7082,_0x3e4a6c['path'],_0x3e4a6c['stickiness']);}['_handleInsertOperation'](_0x4daf14){const _0x1876e6=this['_idsRoots']['get'](_0x4daf14['position']['root']['rootName']),_0x5be4b4=this['_fixPosition'](_0x4daf14['position'],_0x1876e6),_0x5be3bb=null===_0x4daf14['_authorId']?null:_0x4daf14['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56ff2b=_0x5be4b4['parent'],_0x4111f0=this['_revisionId'],_0x3e2f2c=[];for(const _0x948ecb of _0x4daf14['nodes'])if(_0x948ecb['is']('element'))_0x3e2f2c['push'](this['_makeIdsRoot'](_0x948ecb));else{for(let _0x46dee3=0x0;_0x46dee3<_0x948ecb['offsetSize'];_0x46dee3++)_0x3e2f2c['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1d5458=this['_revisionId'];for(let _0x24121c=_0x4111f0;_0x24121c<_0x1d5458;_0x24121c++)this['_touched']['set'](_0x24121c,{'userId':_0x5be3bb});_0x56ff2b['_insertChild'](_0x5be4b4['offset'],_0x3e2f2c);}['_handleMoveOperation'](_0x434f4c){(_0x434f4c=this['_cloneOperation'](_0x434f4c,this['_idsRoots']))['_execute']();const _0x5a59e9=null===_0x434f4c['_authorId']?null:_0x434f4c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20a720=_0x434f4c['getMovedRangeStart'](),_0x3f6025=_0x20a720['parent'],_0x2a9626=_0x20a720['offset'];!function _0x11237c(_0xef0981,_0x29d734,_0x33eee3,_0x57aea4){for(let _0x4096e4=_0x33eee3;_0x4096e4<_0x57aea4;_0x4096e4++){const _0x44f8f3=_0x29d734['getChild'](_0x4096e4);_0x44f8f3['is']('element','$text')?_0xef0981['set'](_0x44f8f3['getAttribute']('vid'),{'userId':_0x5a59e9}):(_0xef0981['set'](_0x44f8f3['getAttribute']('vid_start'),{'userId':_0x5a59e9}),_0x11237c(_0xef0981,_0x44f8f3,0x0,_0x44f8f3['childCount']),_0xef0981['set'](_0x44f8f3['getAttribute']('vid_end'),{'userId':_0x5a59e9}));}}(this['_touched'],_0x3f6025,_0x2a9626,_0x2a9626+_0x434f4c['howMany']);}['_handleMergeOperation'](_0x525839){const _0x168654=null===(_0x525839=this['_cloneOperation'](_0x525839,this['_idsRoots']))['_authorId']?null:_0x525839['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3aa5dc=_0x525839['targetPosition']['parent'],_0x3247e3=_0x525839['sourcePosition']['parent'],_0x2728f1=_0x3aa5dc['getAttribute']('vid_end'),_0x4da943=_0x3247e3['getAttribute']('vid_start');_0x3aa5dc['_setAttribute']('vid_end',_0x3247e3['getAttribute']('vid_end')),_0x3247e3['_setAttribute']('vid_end',_0x2728f1),this['_touched']['set'](_0x4da943,{'userId':_0x168654}),this['_touched']['set'](_0x2728f1,{'userId':_0x168654}),_0x525839['_execute']();}['_handleSplitOperation'](_0x18f7a6){const _0x3ce6f5=null===(_0x18f7a6=this['_cloneOperation'](_0x18f7a6,this['_idsRoots']))['_authorId']?null:_0x18f7a6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x437e9d=_0x18f7a6['graveyardPosition'],_0x2d2e60=_0x18f7a6['splitPosition']['parent'];_0x18f7a6['_execute']();const _0x2016f3=_0x2d2e60['getAttribute']('vid_end'),_0x116131=_0x18f7a6['insertionPosition']['nodeAfter'];if(_0x437e9d){const _0x870f8f=_0x116131['getAttribute']('vid_end'),_0x53d01e=_0x2d2e60['getAttribute']('vid_end');_0x2d2e60['_setAttribute']('vid_end',_0x870f8f),_0x116131['_setAttribute']('vid_end',_0x53d01e),this['_touched']['set'](_0x2d2e60['getAttribute']('vid_end'),{'userId':_0x3ce6f5}),this['_touched']['set'](_0x116131['getAttribute']('vid_start'),{'userId':_0x3ce6f5});}else{const _0x31bf5f=this['_revisionId']++,_0x201b14=this['_revisionId']++;_0x2d2e60['_setAttribute']('vid_end',_0x31bf5f),_0x116131['_setAttribute']('vid_start',_0x201b14),_0x116131['_setAttribute']('vid_end',_0x2016f3),this['_touched']['set'](_0x31bf5f,{'userId':_0x3ce6f5}),this['_touched']['set'](_0x201b14,{'userId':_0x3ce6f5});}}['_handleMarkerOperation'](_0x4474ac){if(!_0x4474ac['affectsData'])return;const _0x2b7bcc=(_0x4474ac=this['_cloneOperation'](_0x4474ac,this['_diffRoots']))['oldRange']?_0x4474ac['oldRange']['root']:null,_0x1f0f84=_0x4474ac['newRange']?_0x4474ac['newRange']['root']:null;_0x2b7bcc&&this['_markers']['delete'](_0x4474ac['name']),_0x1f0f84&&this['_markers']['set'](_0x4474ac['name'],_0x4474ac['newRange']['clone']());const _0x9cbdec=null===_0x4474ac['_authorId']?null:_0x4474ac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57f2f1=_0x4474ac['name'];if(!this['_touchedMarkers']['has'](_0x57f2f1))return void this['_touchedMarkers']['set'](_0x57f2f1,{'range':_0x4474ac['oldRange'],'userId':_0x9cbdec});const _0x54a70b=this['_touchedMarkers']['get'](_0x57f2f1),_0x2034dd=_0x54a70b['range'],_0x4dc0b5=_0x4474ac['newRange'];null==_0x2034dd&&null==_0x4dc0b5||_0x2034dd&&_0x4dc0b5&&_0x2034dd['isEqual'](_0x4dc0b5)?this['_touchedMarkers']['delete'](_0x4474ac['name']):_0x54a70b['userId']=_0x9cbdec;}['_handleRootOperation'](_0x3abc1e,_0x201370){this['_diffRoots']['has'](_0x3abc1e['rootName'])?this['_diffRoots']['get'](_0x3abc1e['rootName'])['_isAttached']=_0x3abc1e['isAdd']:(this['_diffRoots']['set'](_0x3abc1e['rootName'],P(_0x3abc1e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3abc1e['rootName'],{}),_0x201370&&this['_idsRoots']['set'](_0x3abc1e['rootName'],P(_0x3abc1e['rootName'],!0x0)));const _0x2986ed=null===_0x3abc1e['_authorId']?null:_0x3abc1e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1306d8=this['_touchedRoots']['get'](_0x3abc1e['rootName']);_0x1306d8&&_0x1306d8['userId']===_0x2986ed?this['_touchedRoots']['delete'](_0x3abc1e['rootName']):this['_touchedRoots']['set'](_0x3abc1e['rootName'],{'userId':_0x2986ed,'isAttached':_0x3abc1e['isAdd']});}['_handleRootAttributeOperation'](_0x5da2d5){const _0xc08bd5=this['_diffRootsAttributes']['get'](_0x5da2d5['root']['rootName']);null===_0x5da2d5['newValue']?delete _0xc08bd5[_0x5da2d5['key']]:_0xc08bd5[_0x5da2d5['key']]=_0x5da2d5['newValue'];}}function N(_0x2760d3){const _0xb679ae=P(_0x2760d3['rootName'],_0x2760d3['isAttached']());for(const _0x59a68d of _0x2760d3['getChildren']()){const _0x2a7deb=_0x59a68d['_clone'](!0x0);_0xb679ae['_appendChild'](_0x2a7deb);}return _0xb679ae;}function P(_0x21125a,_0x5855b3=!0x0){const _0x2bab04=new gt();return _0x2bab04['rootName']=_0x21125a,_0x2bab04['_isAttached']=_0x5855b3,_0x2bab04['isAttached']=()=>_0x2bab04['_isAttached'],_0x2bab04;}function F(_0x3bb8b7,_0x1801ed,_0x515340){const _0x12df16='elementEnd'==_0x3bb8b7['type']?_0x515340['createPositionAt'](_0x3bb8b7['item'],'end'):_0x515340['createPositionBefore'](_0x3bb8b7['item']);return _0x515340['createPositionFromPath'](_0x1801ed,_0x12df16['path'],_0x12df16['stickiness']);}function B(_0x2c9294,_0x6b4ef3,_0x53ad62){const _0x59803e='elementStart'==_0x2c9294['type']?_0x53ad62['createPositionAt'](_0x2c9294['item'],0x0):_0x53ad62['createPositionAfter'](_0x2c9294['item']);return _0x53ad62['createPositionFromPath'](_0x6b4ef3,_0x59803e['path'],_0x59803e['stickiness']);}class hs extends _0x4eacd9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x348751,_0x5aca4f){super(_0x348751),this['focusTracker']=new _0x2fc1e0(),this['keystrokes']=new _0xe7195d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5aca4f),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'](),_0xa5da1c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x18df1d=_0x2d1ef4=>_0x2d1ef4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x18df1d),this['keystrokes']['set']('arrowleft',_0x18df1d),this['keystrokes']['set']('arrowup',_0x18df1d),this['keystrokes']['set']('arrowdown',_0x18df1d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x133989){this['revisionNameInputView']['fieldView']['element']['value']=_0x133989['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x24e7e4){const _0x486ca2=new nt(this['locale'],ti),_0x55232e=_0x486ca2['fieldView'];_0x55232e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x517f4b=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x24e7e4&&(_0x517f4b+='\x20('+g(this['locale'],'optional')+')'),(_0x486ca2['label']=_0x517f4b,_0x55232e['on']('input',()=>{this['revisionNameInputValue']=_0x55232e['element']['value']['trim']();}),_0x486ca2);}}class f extends _0x563dd0{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2ba7c7=this['editor'],_0x522cd7=_0x2ba7c7['plugins']['get']('RevisionTracker');_0x2ba7c7['ui']['componentFactory']['add']('revisionHistory',_0x590842=>{const _0x6ec192=_0x14068a(_0x590842),_0x2d0486=_0x6ec192['panelView']['children'],_0xdd7e0=new _0xfbca9c(_0x590842),_0x1add0c=new te(_0x590842),_0x2a4625=new _0x3399f1(_0x590842),_0x336650=new te(_0x590842),_0x1a2686=new _0x3399f1(_0x590842);return _0x6ec192['bind']('isEnabled')['to'](_0x522cd7,'isReady',_0x522cd7,'isEnabled',_0x2ba7c7,'isReadOnly',(_0x33cd13,_0x4cd997,_0x1eeeda)=>_0x33cd13&&_0x4cd997&&!_0x1eeeda),_0x6ec192['buttonView']['set']({'icon':_0x3d91fe,'label':g(_0x590842,'Revision\x20history'),'tooltip':!0x0}),_0x2a4625['set']({'label':g(_0x590842,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2a4625['bind']('isEnabled')['to'](_0x522cd7,'isReady',_0x522cd7,'isEnabled',_0x2ba7c7,'isReadOnly',(_0x28ebf0,_0x15b762,_0x59afe5)=>_0x28ebf0&&_0x15b762&&!_0x59afe5),_0x2a4625['on']('execute',()=>this['_showDialog']()),_0x1a2686['set']({'label':g(_0x590842,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1a2686['bind']('isEnabled')['to'](_0x522cd7,'isReady',_0x2ba7c7,'isReadOnly',(_0x6ddb85,_0x19a4d7)=>_0x6ddb85&&!_0x19a4d7),_0x1a2686['on']('execute',()=>{_0x2ba7c7['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x6ec192['isOpen']=!0x1,_0x2ba7c7['editing']['view']['focus']();}),_0x1add0c['children']['add'](_0x2a4625),_0x336650['children']['add'](_0x1a2686),_0xdd7e0['role']='menu',_0xdd7e0['items']['addMany']([_0x1add0c,_0x336650]),_0x2d0486['add'](_0xdd7e0),_0x6ec192;}),_0x2ba7c7['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2c7e0a=this['editor'],_0x27b893=_0x2c7e0a['locale'],_0x1dbbca=new _0x3e7c0a(_0x27b893),_0x569483=new _0x3de1b6(_0x27b893);_0x1dbbca['buttonView']['set']({'icon':_0x3d91fe,'label':g(_0x27b893,'Revision\x20history')});const _0x2cfd49=new _0x4238f5(_0x27b893,_0x1dbbca),_0x5f202b=new _0x53fba4(_0x27b893);_0x5f202b['set']({'label':g(_0x27b893,'Save\x20current\x20revision')}),_0x5f202b['delegate']('execute')['to'](_0x1dbbca),_0x5f202b['on']('execute',()=>{this['_showDialog']();}),_0x2cfd49['children']['add'](_0x5f202b),_0x569483['items']['add'](_0x2cfd49);const _0x45a4c5=new _0x4238f5(_0x27b893,_0x1dbbca),_0x1a711b=new _0x53fba4(_0x27b893);return _0x1a711b['set']({'label':g(_0x27b893,'Open\x20revision\x20history')}),_0x1a711b['delegate']('execute')['to'](_0x1dbbca),_0x1a711b['on']('execute',()=>{_0x2c7e0a['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x45a4c5['children']['add'](_0x1a711b),_0x569483['items']['add'](_0x45a4c5),_0x1dbbca['panelView']['children']['add'](_0x569483),_0x1dbbca;}['_showDialog'](){const _0x4d3f63=this['editor'],_0x22d1ec=_0x4d3f63['locale'],_0x1edcb8=_0x4d3f63['plugins']['get']('Dialog'),_0x214474=_0x4d3f63['plugins']['get']('RevisionTracker');function _0x4c7e2f(_0x40d8fc){_0x4d3f63['config']['get']('revisionHistory.requireRevisionName')&&''===_0x40d8fc['revisionName']?_0x40d8fc['revisionNameInputView']['errorText']=g(_0x22d1ec,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4d3f63['plugins']['get'](u)['saveRevision']({'name':_0x40d8fc['revisionName']}),_0x1edcb8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c7e2f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1edcb8['show']({'id':'revisionSave','title':g(_0x22d1ec,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4d3f63['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1edcb8['hide']()},{'label':g(_0x4d3f63['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5df236){_0x5df236['bind']('isEnabled')['to'](_0x214474,'isReady',_0x214474,'isEnabled',_0x4d3f63,'isReadOnly',(_0x3477ce,_0x19c615,_0x1dd4f5)=>_0x3477ce&&_0x19c615&&!_0x1dd4f5);},'onExecute':()=>_0x4c7e2f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x6a9a05=this['editor'],_0x3ca7a2=_0x6a9a05['locale'];this['_saveRevisionFormView']=new hs(_0x3ca7a2,_0x6a9a05['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x4eacd9{['changeId'];['_model'];constructor(_0x420336,_0x252ba4){super(_0x420336),this['_model']=_0x252ba4,this['changeId']=_0x252ba4['id'];const _0x5de394=this['bindTemplate'],_0x4cbdab=g(_0x420336,_0x252ba4['data']['isSuggestion']?'Suggested\x20by':'add'==_0x252ba4['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x252ba4['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5de394['to']('type',_0x4930b3=>'ck-revision-change__'+_0x4930b3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4cbdab}]},{'text':'\x20'+_0x252ba4['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x53a97b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x412bbe){super(),this['id']=_0x412bbe['id']||_0x452db2(),this['author']=_0x412bbe['author'],this['type']=_0x412bbe['type'],this['data']=_0x412bbe['data']||{},this['rootName']=_0x412bbe['rootName'],this['set']('createdAt',_0x412bbe['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(_0x5de80b,_0x3434a4){this['newRevisionId']=_0x5de80b,this['oldRevisionId']=_0x3434a4,this['changes']=new _0x4e76a3();}['_setChanges'](_0x1554f8){for(const _0x436a4d of _0x1554f8)this['changes']['add'](_0x436a4d);}}class m extends _0x563dd0{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x41f456,_0x5ef071,I,V];}constructor(_0x2c32cd){super(_0x2c32cd),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4297aa,_0x5a38db,_0x5595a2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x588950=>{for(const _0x1d9abb of this['editor']['editing']['view']['document']['roots'])_0x5595a2?_0x588950['removeClass']('ck-editor__editable__overlay',_0x1d9abb):_0x588950['addClass']('ck-editor__editable__overlay',_0x1d9abb);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x59ac12=>null!==_0x59ac12),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x39ff7b,_0xbd6c04,_0x2a9be3)=>_0x39ff7b&&_0x2a9be3?_0xbd6c04['changes']['getIndex'](_0x2a9be3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x44ca1d,_0x3effb1)=>_0x44ca1d?_0x3effb1['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5ef071);}['init'](){const _0x16b21d=this['editor'],_0x4fa4bb=new pt(_0x16b21d,{'direction':'backward'}),_0x34bf1f=new pt(_0x16b21d,{'direction':'forward'});(_0x16b21d['commands']['add']('showPreviousChange',_0x4fa4bb),_0x16b21d['commands']['add']('showNextChange',_0x34bf1f),_0x16b21d['commands']['add']('restoreRevision',new wt(_0x16b21d)),this['on']('change:numberOfChanges',()=>{_0x4fa4bb['refresh'](),_0x34bf1f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x16b21d['enableReadOnlyMode']('revision-viewer'),_0x16b21d['plugins']['has']('WidgetToolbarRepository'))&&_0x16b21d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x298fee){return await this['_utils']['loadRevisionData'](_0x298fee,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x298fee);}async['getRevisionRootsAttributes'](_0xb7d2ec){return await this['_utils']['loadRevisionData'](_0xb7d2ec,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xb7d2ec);}async['compare'](_0x35c6b3,_0x2b9cab,_0x5c0436=!0x1){if(!this['isEnabled'])return;const _0x44ae29=this['diff'],_0x23ee6c=this['repository'],_0x43a109='string'==typeof _0x35c6b3?_0x23ee6c['getRevision'](_0x35c6b3):_0x35c6b3,_0x13ff77='string'==typeof _0x2b9cab?_0x23ee6c['getRevision'](_0x2b9cab):_0x2b9cab,_0x39cf06=_0x43a109['id'],_0x5df9d0=_0x13ff77?_0x13ff77['id']:null;if(!_0x5c0436&&this['diff']&&this['diff']['newRevisionId']===_0x39cf06&&this['diff']['oldRevisionId']===_0x5df9d0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x39cf06,_0x5df9d0);const _0x332a1a=this['_getRevisionsRange'](_0x43a109,_0x13ff77,!0x0)['map'](_0x21b4e4=>this['_utils']['loadRevisionData'](_0x21b4e4,this['adapter']));return _0x332a1a['push'](new Promise(_0x198256=>{setTimeout(_0x198256,0x14);})),Promise['all'](_0x332a1a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31280d=this['_getDiff'](_0x39cf06,_0x5df9d0);for(const _0x195341 of _0x31280d['changes'])this['_changeIdToChange']['set'](_0x195341['id'],_0x195341);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x20e8a1=>{for(const _0x23adcb of this['editor']['model']['document']['getRootNames']())_0x20e8a1['detachRoot'](_0x23adcb);for(const _0x1d6ce9 of Object['keys'](_0x31280d['model'])){const _0x239cf2=_0x20e8a1['addRoot'](_0x1d6ce9);for(const _0x4b5cb2 of Object['keys'](_0x31280d['attributes'][_0x1d6ce9]))_0x20e8a1['setAttribute'](_0x4b5cb2,_0x31280d['attributes'][_0x1d6ce9][_0x4b5cb2],_0x239cf2);_0x20e8a1['insert'](_0x31280d['model'][_0x1d6ce9],_0x239cf2,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31280d['changes'])),this['isReady']=!0x0;})['catch'](_0x3a05fc=>{console['error'](_0x3a05fc),this['_cleanUp'](),_0x44ae29&&(this['diff']=_0x44ae29),this['isReady']=!0x0;});}['addRevisionData'](_0x40ced8,_0x1fbfd0){const _0x1495ed=this['repository']['createRevision'](_0x40ced8);return _0x1495ed['on']('_update',(_0x2bbd76,_0x522cc4,_0x262d83)=>_0x1fbfd0(_0x522cc4,_0x262d83,_0x1495ed)),this['repository']['addRevision'](_0x1495ed),_0x1495ed;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5a09ea=>{for(const _0x4e420f of this['editor']['model']['document']['getRootNames']())_0x5a09ea['detachRoot'](_0x4e420f);});}['_sortAndFilterDiffChanges'](_0x48f711){const _0x17f80c=[],_0x3aea23=new Map();for(const _0xce4e0c of this['editor']['model']['document']['getRootNames']()){const _0x2c2e18=this['editor']['editing']['view']['getDomRoot'](_0xce4e0c);if(!_0x2c2e18)continue;const _0x56b7ef=_0x2c2e18['getClientRects']()['item'](0x0);_0x56b7ef&&(_0x17f80c['push'](_0xce4e0c),_0x3aea23['set'](_0xce4e0c,_0x56b7ef));}return _0x17f80c['sort']((_0x2aaa69,_0x349008)=>{const _0x586698=_0x3aea23['get'](_0x2aaa69),_0x10d634=_0x3aea23['get'](_0x349008);return _0x586698['y']-_0x10d634['y']||_0x586698['x']-_0x10d634['x'];}),(_0x48f711=_0x48f711['filter'](_0x46172a=>_0x17f80c['includes'](_0x46172a['rootName'])))['sort']((_0x264fb5,_0x422181)=>_0x17f80c['indexOf'](_0x264fb5['rootName'])-_0x17f80c['indexOf'](_0x422181['rootName'])),_0x48f711;}['_makeTape'](_0x3f0140){const _0xbda139=Array['from'](_0x3f0140['markers'])['filter'](([_0x15e41d,_0x33ef18])=>_0x15e41d['startsWith']('revision:')&&!_0x33ef18['isCollapsed']),_0x3f05f8=Array['from'](this['editor']['model']['createRangeIn'](_0x3f0140)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xbda139['length'])for(const _0x5c30d5 of _0x3f05f8){const [_0x183598,_0x46feb6]=_0xbda139[0x0],[,_0xb6ad24,_0x47176b]=_0x183598['split'](':');if(_0x46feb6['end']['isEqual'](_0x5c30d5['nextPosition'])&&_0xbda139['shift'](),(_0x5c30d5['previousPosition']['isEqual'](_0x46feb6['start'])||_0x5c30d5['previousPosition']['isAfter'](_0x46feb6['start']))&&('insertion'==_0xb6ad24?_0x5c30d5['isAdded']={'userId':_0x47176b}:'deletion'==_0xb6ad24&&(_0x5c30d5['isRemoved']={'userId':_0x47176b})),0x0==_0xbda139['length'])break;}return _0x3f05f8;}['_refreshStartEndIndex'](_0x2fd9c3){const _0x2c90fa=new Map();for(let _0x5ec1fc=0x0;_0x5ec1fc<_0x2fd9c3['length'];_0x5ec1fc++)'text'===_0x2fd9c3[_0x5ec1fc]['type']?(_0x2fd9c3[_0x5ec1fc]['item']['startIndex']=_0x5ec1fc,_0x2fd9c3[_0x5ec1fc]['item']['endIndex']=_0x5ec1fc):('elementStart'===_0x2fd9c3[_0x5ec1fc]['type']?_0x2fd9c3[_0x5ec1fc]['item']['startIndex']=_0x5ec1fc:'elementEnd'===_0x2fd9c3[_0x5ec1fc]['type']&&(_0x2fd9c3[_0x5ec1fc]['item']['endIndex']=_0x5ec1fc),_0x2c90fa['set'](_0x2fd9c3[_0x5ec1fc]['id'],_0x5ec1fc));for(const _0x5dcdbc of _0x2c90fa['values']())'elementStart'===_0x2fd9c3[_0x5dcdbc]['type']?_0x2fd9c3[_0x5dcdbc]['item']['endIndex']=_0x2c90fa['get'](_0x2fd9c3[_0x5dcdbc]['pairId']):'elementEnd'===_0x2fd9c3[_0x5dcdbc]['type']&&(_0x2fd9c3[_0x5dcdbc]['item']['startIndex']=_0x2c90fa['get'](_0x2fd9c3[_0x5dcdbc]['pairId']));}['_processTape'](_0x48cdf3){for(let _0x3ee0ff=0x0;_0x3ee0ff<_0x48cdf3['length'];_0x3ee0ff++){if('elementStart'===_0x48cdf3[_0x3ee0ff]['type'])_0x48cdf3[_0x3ee0ff]['item']['startIndex']=_0x3ee0ff;else{if('elementEnd'===_0x48cdf3[_0x3ee0ff]['type']){_0x48cdf3[_0x3ee0ff]['item']['endIndex']=_0x3ee0ff;const _0x127e4a=_0x48cdf3[_0x3ee0ff]['item']['startIndex'];_0x48cdf3[_0x127e4a]['pairId']=_0x48cdf3[_0x3ee0ff]['id'],_0x48cdf3[_0x3ee0ff]['pairId']=_0x48cdf3[_0x127e4a]['id'];}else _0x48cdf3[_0x3ee0ff]['item']['startIndex']=_0x3ee0ff,_0x48cdf3[_0x3ee0ff]['item']['endIndex']=_0x3ee0ff,_0x48cdf3[_0x3ee0ff]['pairId']=null;}_0x48cdf3[_0x3ee0ff]['markersStart']||(_0x48cdf3[_0x3ee0ff]['markersStart']=[],_0x48cdf3[_0x3ee0ff]['markersEnd']=[]);}}['_markInsertions'](_0x41034e,_0x378f02){const _0xae402f=_0x41034e['filter'](_0x47db8a=>!_0x47db8a['isAdded']);for(let _0x4be529=0x0;_0x4be529<_0x378f02['length'];_0x4be529++)_0x378f02[_0x4be529]['isAdded']&&(_0xae402f[_0x4be529]['isAdded']=_0x378f02[_0x4be529]['isAdded']);}['_getDiff'](_0x53eb39,_0x5c64b3=null){const _0x31ba22=this['repository']['getRevision'](_0x53eb39),_0x129b94=_0x5c64b3?this['repository']['getRevision'](_0x5c64b3):null,_0x3dfa29=this['_getRevisionsRange'](_0x31ba22,_0x129b94),_0x3884ca=_0x3dfa29[_0x3dfa29['length']-0x1],_0xa541cb=new Map(),_0x4d11b3={'model':{},'attributes':{},'changes':[]},_0x413d82=new Set(),_0x593cb3=new Map();for(let _0x5d695b=_0x3dfa29['length']-0x1;_0x5d695b>=0x0;_0x5d695b--){const _0x5a373c=_0x3dfa29[_0x5d695b];for(const _0x4d837c of Object['keys'](_0x5a373c['diffData']))if(_0x5a373c['diffData'][_0x4d837c]['attachChange']){const _0x1b02c4=_0x5a373c['diffData'][_0x4d837c]['attachChange'];_0x1b02c4['isAttached']?(_0x413d82['add'](_0x4d837c),_0x593cb3['has'](_0x4d837c)&&_0x593cb3['get'](_0x4d837c)['userId']==_0x1b02c4['userId']?_0x593cb3['delete'](_0x4d837c):_0x593cb3['set'](_0x4d837c,_0x1b02c4)):_0x593cb3['has'](_0x4d837c)?(_0x413d82['delete'](_0x4d837c),_0x593cb3['delete'](_0x4d837c)):(_0x413d82['add'](_0x4d837c),_0x593cb3['set'](_0x4d837c,_0x1b02c4));}else _0x413d82['add'](_0x4d837c);}for(const _0x37a55c of _0x413d82){const _0x336ba9=_0x593cb3['has'](_0x37a55c)&&!_0x593cb3['get'](_0x37a55c)['isAttached'];let _0x48c22c=_0x336ba9?_0x3dfa29['length']-0x1:0x0;const _0x1d58a9=_0x336ba9?-0x1:0x1;for(;_0x3dfa29[_0x48c22c];){const _0x40d1f8=_0x3dfa29[_0x48c22c];if(_0x40d1f8['diffData'][_0x37a55c]){const _0x446d5f=_0x336ba9?_0x40d1f8['diffData'][_0x37a55c]['attributesBefore']:_0x40d1f8['diffData'][_0x37a55c]['attributesAfter'];_0x4d11b3['attributes'][_0x37a55c]=_0x446d5f?_0x1ce38b(_0x446d5f):{};break;}_0x48c22c+=_0x1d58a9;}}for(const _0x1ce65c of _0x3dfa29){_0x1ce65c['model']={};for(const _0x5d104f of _0x1ce65c['authors'])_0xa541cb['set'](_0x5d104f['id'],_0x5d104f);for(const _0x599f29 of _0x413d82){const _0x3f934f=_0x1ce65c['diffData'][_0x599f29]?_0x1ce65c['diffData'][_0x599f29]['insertions']:'[]',_0x30e3de=_0x1ce65c['diffData'][_0x599f29]?_0x1ce65c['diffData'][_0x599f29]['deletions']:'[]';_0x1ce65c['model'][_0x599f29]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3f934f),'deletions':this['_utils']['_makeModelFromViewString'](_0x30e3de)};}}for(const _0x5d0a48 of _0x413d82){let _0x30a0c6=null,_0x11022b=0x0;const _0x539921=new Map(Array['from'](_0x31ba22['model'][_0x5d0a48]['insertions']['markers'])['filter'](([_0x108d30])=>!_0x108d30['startsWith']('revision:')));let _0x5c2062=0x0;for(const _0x5aad6a of _0x3dfa29){const _0x59683d=this['_makeTape'](_0x5aad6a['model'][_0x5d0a48]['insertions']);_0x5aad6a==_0x31ba22?(_0x30a0c6=_0x59683d,_0x11022b=_0x30a0c6['length'],_0x30a0c6['forEach'](_0x2ff6a9=>{_0x2ff6a9['id']=_0x5c2062++;}),this['_processTape'](_0x30a0c6)):this['_markInsertions'](_0x30a0c6,_0x59683d);const _0x2a4291=_0x30a0c6['filter'](_0x1d0906=>!_0x1d0906['isAdded'])['map'](_0x190146=>_0x190146['id']);let _0x4b907a=0x0;const _0x20643d=this['_makeTape'](_0x5aad6a['model'][_0x5d0a48]['deletions']);_0x20643d['forEach'](_0x3e4585=>{_0x3e4585['isRemoved']?_0x3e4585['id']=_0x11022b++:_0x3e4585['id']=_0x2a4291[_0x4b907a++];}),this['_processTape'](_0x20643d),this['_setDistance'](_0x30a0c6,'isAdded'),this['_setDistance'](_0x20643d,'isRemoved'),_0x5aad6a==_0x31ba22&&this['_markMarkers'](_0x30a0c6,_0x539921),_0x30a0c6=this['_joinTapes'](_0x30a0c6,_0x20643d),this['_refreshStartEndIndex'](_0x30a0c6),this['_setDistance'](_0x30a0c6,'isRemoved');}_0x30a0c6=_0x30a0c6['filter'](_0x23cc86=>!(_0x23cc86['isAdded']&&_0x23cc86['isRemoved']));const _0x4c303d=new Map(_0x3884ca['model'][_0x5d0a48]['deletions']['markers']),_0x4310d8=new Set(_0x539921['keys']());for(const _0x3ae524 of _0x4c303d['keys']())_0x4310d8['delete'](_0x3ae524);this['_markSuggestions'](_0x30a0c6,_0x4310d8),this['_fixObsoleteTags'](_0x30a0c6),_0x30a0c6=this['_removeMissingPairs'](_0x30a0c6),_0x30a0c6=this['_markMismatchedRemovedTags'](_0x30a0c6),_0x30a0c6=this['_removeUnsupportedChanges'](_0x30a0c6);const {root:_0x48d782,changes:_0x5574df}=this['_makeModelFromTape'](_0x30a0c6,_0xa541cb,_0x5d0a48);_0x4d11b3['model'][_0x5d0a48]=_0x48d782;const _0x310f0d=_0x593cb3['get'](_0x5d0a48);if(_0x310f0d){const _0x5d14f7=_0xa541cb['get'](_0x310f0d['userId']),_0x153c35=new r({'author':_0x5d14f7,'type':_0x310f0d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d0a48});_0x5574df['unshift'](_0x153c35),_0x4d11b3['attributes'][_0x5d0a48]['revisionHistoryAttachChange']=_0x153c35['id'];}_0x4d11b3['changes']=_0x4d11b3['changes']['concat'](_0x5574df);}return _0x4d11b3;}['_markMarkers'](_0x28bdc8,_0x32a105){for(let _0x3e61f5=0x0;_0x3e61f5<_0x28bdc8['length'];_0x3e61f5++)for(const [_0x3789b9,_0x1646e8]of _0x32a105)!_0x1646e8['isCollapsed']&&_0x1646e8['start']['isEqual'](_0x28bdc8[_0x3e61f5]['previousPosition'])&&_0x28bdc8[_0x3e61f5]['markersStart']['push'](_0x3789b9),_0x1646e8['end']['isEqual'](_0x28bdc8[_0x3e61f5]['nextPosition'])&&_0x28bdc8[_0x3e61f5]['markersEnd']['push'](_0x3789b9);}['_joinTapes'](_0x548c40,_0x557634){let _0x15edad=[],_0x3150da=0x0,_0x40ef7c=0x0;for(;_0x3150da<_0x548c40['length']||_0x40ef7c<_0x557634['length'];){const _0x167c48=_0x548c40[_0x3150da]||{},_0x8d7016=_0x557634[_0x40ef7c]||{};if(_0x167c48['id']==_0x8d7016['id'])_0x3150da++,_0x40ef7c++,_0x15edad['push'](_0x167c48);else{if(_0x8d7016['isRemoved']&&_0x167c48['isAdded']){const {commonTape:_0x36df5f,iEnd:_0x5a0cdd,jEnd:_0x20dc39}=this['_threeWayMerge'](_0x548c40,_0x3150da,_0x557634,_0x40ef7c);_0x15edad=_0x15edad['concat'](_0x36df5f),_0x3150da=_0x5a0cdd,_0x40ef7c=_0x20dc39;}else _0x8d7016['isRemoved']?(_0x40ef7c++,_0x15edad['push'](_0x8d7016)):(_0x3150da++,_0x15edad['push'](_0x167c48));}}return _0x15edad;}['_markSuggestions'](_0x42f153,_0x10879b){const _0x2976e8=[];for(let _0x4cbeb3=0x0;_0x4cbeb3<_0x42f153['length'];_0x4cbeb3++){for(let _0x4049e6=0x0;_0x4049e6<_0x42f153[_0x4cbeb3]['markersStart']['length'];_0x4049e6++){const _0x326b37=_0x42f153[_0x4cbeb3]['markersStart'][_0x4049e6];if(!_0x10879b['has'](_0x326b37))continue;const {group:_0x30521b,type:_0x17082b,authorId:_0x27079f}=_0x117c2d(_0x326b37);'revision-suggestion'!=_0x30521b||'insertion'!=_0x17082b&&'deletion'!=_0x17082b||(_0x2976e8['unshift']({'type':_0x17082b,'name':_0x326b37,'userId':_0x27079f}),_0x42f153[_0x4cbeb3]['markersStart']['splice'](_0x4049e6,0x1),_0x4049e6--);}_0x25aeef(_0x42f153[_0x4cbeb3]);for(let _0x3b9275=0x0;_0x3b9275<_0x42f153[_0x4cbeb3]['markersEnd']['length'];_0x3b9275++){const _0x5c3b48=_0x42f153[_0x4cbeb3]['markersEnd'][_0x3b9275];if(!_0x10879b['has'](_0x5c3b48))continue;const {group:_0x1b589f,type:_0x3fa006}=_0x117c2d(_0x5c3b48);if('revision-suggestion'!=_0x1b589f||'insertion'!=_0x3fa006&&'deletion'!=_0x3fa006)continue;_0x42f153[_0x4cbeb3]['markersEnd']['splice'](_0x3b9275,0x1),_0x3b9275--;const _0x3a5534=_0x2976e8['findIndex'](_0x23b8a2=>_0x23b8a2['name']==_0x5c3b48);_0x3a5534>-0x1&&_0x2976e8['splice'](_0x3a5534,0x1);}}function _0x117c2d(_0x534c38){const _0x334ccb=_0x534c38['split'](':');return{'group':_0x334ccb[0x0],'type':_0x334ccb[0x1],'subType':_0x334ccb['length']>=0x5?_0x334ccb[0x2]:null,'id':_0x334ccb['length']<0x5?_0x334ccb[0x2]:_0x334ccb[0x3],'authorId':_0x334ccb['length']<0x5?_0x334ccb[0x3]:_0x334ccb[0x4],'markerCount':0x6==_0x334ccb['length']?_0x334ccb[0x5]:null};}function _0x25aeef(_0x3a98b9){for(let _0x107e5c=0x0;_0x107e5c<_0x2976e8['length'];_0x107e5c++){if(_0x3a98b9['isAdded']&&'insertion'==_0x2976e8[_0x107e5c]['type'])return _0x3a98b9['isAddSuggestion']=_0x2976e8[_0x107e5c],void delete _0x3a98b9['isAdded'];if(!_0x3a98b9['isAdded']&&!_0x3a98b9['isRemoved']&&'deletion'==_0x2976e8[_0x107e5c]['type'])return void(_0x3a98b9['isRemoveSuggestion']=_0x2976e8[_0x107e5c]);}}}['_setDistance'](_0x34b429,_0x326271){let _0x3c963b=0x0,_0x5b72fe=!0x1;const _0x439986=new Map();for(const _0x16b779 of _0x34b429)_0x16b779[_0x326271]?_0x5b72fe&&(_0x3c963b++,_0x5b72fe=!0x1):(_0x3c963b++,_0x5b72fe=!0x0),_0x439986['set'](_0x16b779['id'],_0x3c963b);for(let _0x368ea0=0x0;_0x368ea0<_0x34b429['length'];_0x368ea0++){if('isRemoved'==_0x326271&&_0x34b429[_0x368ea0]['isAdded']||'isAdded'==_0x326271&&_0x34b429[_0x368ea0]['isRemoved'])continue;if('text'==_0x34b429[_0x368ea0]['type']){_0x34b429[_0x368ea0]['distance']=0x0;continue;}const _0x41d5c5=_0x439986['get'](_0x34b429[_0x368ea0]['pairId']),_0x5e201f=_0x439986['get'](_0x34b429[_0x368ea0]['id']);_0x34b429[_0x368ea0]['distance']=_0x41d5c5-_0x5e201f;}}['_getRevisionsRange'](_0x5e4f2b,_0x23a75b,_0x1c5100=!0x1){const _0x1cd181=[];let _0x5ddc31=this['repository']['getIndex'](_0x5e4f2b),_0x49ee45=this['repository']['getIndex'](_0x23a75b);for(-0x1==_0x49ee45&&(_0x49ee45=this['repository']['_revisions']['length'],_0x1c5100=!0x1);_0x5ddc31<_0x49ee45;)_0x1cd181['push'](this['repository']['getRevision'](_0x5ddc31)),_0x5ddc31++;return _0x1c5100&&_0x1cd181['push'](this['repository']['getRevision'](_0x5ddc31)),_0x1cd181;}['_threeWayMerge'](_0x10d777,_0x540bd8,_0x5893fc,_0x41f407){const _0x5888c6=this['editor']['model']['schema'];let _0x2d5da7=_0x540bd8;for(;_0x10d777[_0x2d5da7]&&_0x10d777[_0x2d5da7]['isAdded'];)_0x2d5da7++;let _0x2d44d6=_0x41f407;for(;_0x5893fc[_0x2d44d6]&&_0x5893fc[_0x2d44d6]['isRemoved'];)_0x2d44d6++;_0x528afd(_0x10d777,_0x540bd8,_0x2d5da7),_0x528afd(_0x5893fc,_0x41f407,_0x2d44d6);const _0x5917f0=_0x5893fc['slice'](_0x41f407,_0x2d44d6)['concat'](_0x10d777['slice'](_0x540bd8,_0x2d5da7));return _0x5917f0['sort']((_0x1cdcd5,_0x407ef4)=>_0x1cdcd5['side']!=_0x407ef4['side']?_0x1cdcd5['side']-_0x407ef4['side']:_0x1cdcd5['level']!=_0x407ef4['level']?_0x1cdcd5['level']-_0x407ef4['level']:_0x1cdcd5['distance']!=_0x407ef4['distance']?_0x407ef4['distance']-_0x1cdcd5['distance']:!!_0x1cdcd5['isAdded']!=!!_0x407ef4['isAdded']?-0x1==_0x1cdcd5['side']||0x0==_0x1cdcd5['side']?_0x1cdcd5['isAdded']?-0x1:0x1:_0x1cdcd5['isAdded']?0x1:-0x1:_0x1cdcd5['index']-_0x407ef4['index']),{'commonTape':_0x5917f0,'iEnd':_0x2d5da7,'jEnd':_0x2d44d6};function _0x528afd(_0xe8b7aa,_0x313290,_0x510684){let _0x2747ad=-0x1,_0x524fa4=Number['POSITIVE_INFINITY'],_0x406ab4=!0x0;for(let _0x5b8cdb=_0x313290;_0x5b8cdb<_0x510684;_0x5b8cdb++)if(_0x5888c6['isInline'](_0xe8b7aa[_0x5b8cdb]['item'])||(_0x406ab4=!0x1),_0xe8b7aa[_0x5b8cdb]['item']['startIndex']<_0x313290&&(_0x2747ad=_0x5b8cdb),_0xe8b7aa[_0x5b8cdb]['item']['endIndex']>=_0x510684){_0x524fa4=_0x5b8cdb;break;}_0x406ab4&&(_0x2747ad=_0x510684-0x1);for(let _0x23a3f7=_0x313290;_0x23a3f7<_0x510684;_0x23a3f7++)_0xe8b7aa[_0x23a3f7]['side']=_0x23a3f7<=_0x2747ad?-0x1:_0x23a3f7<_0x524fa4?0x0:0x1,_0xe8b7aa[_0x23a3f7]['index']=_0x23a3f7;let _0x969a19=0x0;for(let _0x50a20c=_0x313290;_0x50a20c<=_0x2747ad;_0x50a20c++)0x0==_0xe8b7aa[_0x50a20c]['distance']?_0xe8b7aa[_0x50a20c]['level']=_0x969a19:(_0x969a19++,_0xe8b7aa[_0x50a20c]['level']=_0x969a19,_0x969a19++);for(let _0x267cc7=_0x313290;_0x267cc7<_0x510684;_0x267cc7++)0x0==_0xe8b7aa[_0x267cc7]['side']&&(_0xe8b7aa[_0x267cc7]['level']=_0x969a19);_0x969a19=0x0;for(let _0xfe7411=_0x510684-0x1;_0xfe7411>=_0x524fa4;_0xfe7411--)0x0==_0xe8b7aa[_0xfe7411]['distance']?_0xe8b7aa[_0xfe7411]['level']=_0x969a19:(_0x969a19--,_0xe8b7aa[_0xfe7411]['level']=_0x969a19,_0x969a19--);}}['_fixObsoleteTags'](_0x5cea59){const _0x328527=new Map(),_0x1e2bab=this['editor']['model']['schema'];for(let _0x30dc9e=0x1;_0x30dc9e<_0x5cea59['length'];_0x30dc9e++){let _0x25fbe3,_0x2acbb2,_0x2d5a33;const _0xe4a871=_0x5cea59[_0x30dc9e],_0x11f486=_0x5cea59[_0x30dc9e-0x1];if('text'==_0xe4a871['type'])continue;if(_0xe4a871['type']!=_0x11f486['type'])continue;if(!_0x1e2bab['isBlock'](_0x11f486['item'])||_0x1e2bab['isLimit'](_0x11f486['item']))continue;if(!_0x1e2bab['isBlock'](_0xe4a871['item'])||_0x1e2bab['isLimit'](_0xe4a871['item']))continue;if((_0x5cea59[_0x30dc9e]['isAdded']||_0x5cea59[_0x30dc9e]['isAddSuggestion'])&&_0x5cea59[_0x30dc9e-0x1]['isRemoved'])_0x25fbe3=_0x5cea59[_0x30dc9e],_0x2acbb2=_0x5cea59[_0x30dc9e-0x1],_0x2d5a33=_0x30dc9e-0x1;else{if(!_0x5cea59[_0x30dc9e]['isRemoved']||!_0x5cea59[_0x30dc9e-0x1]['isAdded']&&!_0x5cea59[_0x30dc9e-0x1]['isAddSuggestion'])continue;_0x25fbe3=_0x5cea59[_0x30dc9e-0x1],_0x2acbb2=_0x5cea59[_0x30dc9e],_0x2d5a33=_0x30dc9e;}const _0x284b0a=_0x25fbe3['level']==_0x2acbb2['level'],_0x3447d8=Math['abs'](_0x25fbe3['level'])<Math['abs'](_0x2acbb2['level'])&&0x0==_0x2acbb2['distance'];(_0x284b0a||_0x3447d8)&&(_0x328527['set'](_0x2acbb2['id'],_0x25fbe3['id']),_0x5cea59['splice'](_0x2d5a33,0x1),_0x30dc9e--,_0x25fbe3['isAdded']=!0x1);}for(let _0x449ae4=0x0;_0x449ae4<_0x5cea59['length'];_0x449ae4++)_0x328527['has'](_0x5cea59[_0x449ae4]['pairId'])&&(_0x5cea59[_0x449ae4]['pairId']=_0x328527['get'](_0x5cea59[_0x449ae4]['pairId']));}['_removeMissingPairs'](_0x1d66fa){const _0x595034=new Set(_0x1d66fa['map'](_0x57b084=>_0x57b084['id']));for(let _0x20950a=0x0;_0x20950a<_0x1d66fa['length'];_0x20950a++)_0x595034['has'](_0x1d66fa[_0x20950a]['pairId'])||0x0==_0x1d66fa[_0x20950a]['distance']||(_0x1d66fa[_0x20950a]['isIncorrect']=!0x0);return _0x1d66fa['filter'](_0x4cc219=>!_0x4cc219['isIncorrect']);}['_markMismatchedRemovedTags'](_0x189b4e){const _0x4d8f08=new Set();for(let _0xb827da=0x0;_0xb827da<_0x189b4e['length'];_0xb827da++){if(_0x4d8f08['has'](_0x189b4e[_0xb827da]['id'])&&_0x189b4e[_0xb827da]['isRemoved']&&(_0x189b4e[_0xb827da]['isIncorrect']=!0x0),_0x189b4e[_0xb827da]['isIncorrect'])continue;if(0x0==_0x189b4e[_0xb827da]['distance'])continue;if('elementStart'!=_0x189b4e[_0xb827da]['type'])continue;if(null==_0x189b4e[_0xb827da]['pairId'])continue;let _0x43998f=_0xb827da+0x1,_0x581e77=0x0;for(;_0x189b4e[_0x43998f]['id']!=_0x189b4e[_0xb827da]['pairId'];)'elementStart'==_0x189b4e[_0x43998f]['type']?_0x581e77++:'elementEnd'==_0x189b4e[_0x43998f]['type']&&_0x581e77--,_0x43998f++;if(0x0!=_0x581e77){if(_0x189b4e[_0xb827da]['isRemoved'])_0x189b4e[_0xb827da]['isIncorrect']=!0x0;else{for(;_0x43998f!=_0xb827da;)_0x189b4e[_0x43998f]['isRemoved']&&0x0!=_0x189b4e[_0x43998f]['distance']&&(_0x189b4e[_0x43998f]['isIncorrect']=!0x0,_0x4d8f08['add'](_0x189b4e[_0x43998f]['pairId'])),_0x43998f--;}}}return _0x189b4e['filter'](_0x3b02cf=>!_0x3b02cf['isIncorrect']);}['_removeUnsupportedChanges'](_0xfd7ca9){const _0x584bf5=this['editor']['model']['schema'];for(let _0x35c017=0x0;_0x35c017<_0xfd7ca9['length'];_0x35c017++){if(!(_0xfd7ca9[_0x35c017]['isAdded']||_0xfd7ca9[_0x35c017]['isAddSuggestion']||_0xfd7ca9[_0x35c017]['isRemoved']||_0xfd7ca9[_0x35c017]['isRemoveSuggestion']))continue;if(0x0==_0xfd7ca9[_0x35c017]['distance'])continue;const _0x571bdc=_0xfd7ca9[_0x35c017]['item'];_0x584bf5['isBlock'](_0x571bdc)||_0x584bf5['isLimit'](_0x571bdc)||(_0xfd7ca9[_0x35c017]['isAdded']&&delete _0xfd7ca9[_0x35c017]['isAdded'],_0xfd7ca9[_0x35c017]['isAddSuggestion']&&delete _0xfd7ca9[_0x35c017]['isAddSuggestion'],_0xfd7ca9[_0x35c017]['isRemoveSuggestion']&&delete _0xfd7ca9[_0x35c017]['isRemoveSuggestion'],_0xfd7ca9[_0x35c017]['isRemoved']&&(_0xfd7ca9[_0x35c017]['isIncorrect']=!0x0));}return _0xfd7ca9['filter'](_0x1e52a3=>!_0x1e52a3['isIncorrect']);}['_makeModelFromTape'](_0x4f4107,_0x37fae7,_0xc66b61){const _0x438aae=new gt(),_0x17e624=[],_0x27070e=new Map(),_0x1a3ffd=this['editor']['model'],_0x3f362e=_0x1a3ffd['schema'],_0x32769c=[_0x438aae],_0x2abb6b={},_0x3e11d1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e3b84=null;const _0x19c696=[0x0];for(let _0x45fe31=0x0;_0x45fe31<_0x4f4107['length'];_0x45fe31++)if('elementStart'===_0x4f4107[_0x45fe31]['type']){_0x4f4107[_0x45fe31]['previousPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696);const _0x5ad11a=new ut(_0x4f4107[_0x45fe31]['item']['name'],_0x4f4107[_0x45fe31]['item']['getAttributes']());_0x32769c[0x0]['_appendChild'](_0x5ad11a),_0x19c696['push'](0x0),_0x32769c['unshift'](_0x5ad11a),_0x4f4107[_0x45fe31]['nextPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696);}else'elementEnd'===_0x4f4107[_0x45fe31]['type']?(_0x32769c['shift'](),_0x4f4107[_0x45fe31]['previousPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696),_0x19c696['pop'](),_0x19c696[_0x19c696['length']-0x1]++,_0x4f4107[_0x45fe31]['nextPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696)):(_0x4f4107[_0x45fe31]['previousPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696),_0x5e3b84?_0x5e3b84['_data']+=_0x4f4107[_0x45fe31]['item']['data']:_0x5e3b84=new mt(_0x4f4107[_0x45fe31]['item']['data'],_0x4f4107[_0x45fe31]['item']['getAttributes']()),_0x4f4107[_0x45fe31+0x1]&&'text'===_0x4f4107[_0x45fe31+0x1]['type']&&_0x2bebcd(_0x5e3b84,_0x4f4107[_0x45fe31+0x1]['item'])||(_0x32769c[0x0]['_appendChild'](_0x5e3b84),_0x5e3b84=null),_0x19c696[_0x19c696['length']-0x1]+=_0x4f4107[_0x45fe31]['item']['offsetSize'],_0x4f4107[_0x45fe31]['nextPosition']=_0x1a3ffd['createPositionFromPath'](_0x438aae,_0x19c696));for(let _0x5ecf3f=0x0;_0x5ecf3f<_0x4f4107['length'];_0x5ecf3f++){const _0x1c7338=_0x4f4107[_0x5ecf3f]['previousPosition'],_0x3bedcd=_0x4f4107[_0x5ecf3f]['nextPosition'];for(const _0x39573d of _0x4f4107[_0x5ecf3f]['markersStart'])_0x27070e['set'](_0x39573d,{'start':_0x1c7338,'end':null});_0x1206a5('isRemoveSuggestion',_0x5ecf3f,_0x1c7338,_0x3bedcd),_0x1206a5('isAddSuggestion',_0x5ecf3f,_0x1c7338,_0x3bedcd),_0x1206a5('isRemoved',_0x5ecf3f,_0x1c7338,_0x3bedcd),_0x1206a5('isAdded',_0x5ecf3f,_0x1c7338,_0x3bedcd);for(const _0x516d9c of _0x4f4107[_0x5ecf3f]['markersEnd']){const _0x12ec7e=_0x27070e['get'](_0x516d9c);_0x12ec7e?_0x12ec7e['end']=_0x3bedcd:_0x27070e['set'](_0x516d9c,{'start':_0x3bedcd,'end':_0x3bedcd});}}for(const [_0x4913e9,_0x28ac1c]of _0x27070e){const _0x93323d=this['editor']['model']['createRange'](_0x28ac1c['start'],_0x28ac1c['end']);_0x438aae['markers']['set'](_0x4913e9,_0x93323d);}return _0x17e624['sort']((_0x4d95c6,_0x4ca16e)=>{const _0x56a2f3=_0x438aae['markers']['get']('revision:'+_0x4d95c6['id']),_0x5817cc=_0x438aae['markers']['get']('revision:'+_0x4ca16e['id']);return _0x56a2f3['start']['isBefore'](_0x5817cc['start'])?-0x1:_0x56a2f3['start']['isAfter'](_0x5817cc['start'])?0x1:_0x56a2f3['end']['isBefore'](_0x5817cc['end'])?-0x1:_0x56a2f3['end']['isAfter'](_0x5817cc['end'])?0x1:'add'===_0x4d95c6['type']?-0x1:0x1;}),{'root':_0x438aae,'changes':_0x17e624};function _0x1206a5(_0x1307ab,_0x3e1c1e,_0x37c77a,_0x3f7982){const _0x1cb568=!!_0x4f4107[_0x3e1c1e][_0x1307ab],_0x314155=_0x1cb568?_0x4f4107[_0x3e1c1e][_0x1307ab]['userId']:null,_0x8c9c86=_0x3e1c1e===_0x4f4107['length']-0x1,_0x232de6=_0x3e11d1[_0x1307ab][0x0],_0x5a27b1=_0x3f362e['isObject'](_0x4f4107[_0x3e1c1e]['item']);!_0x2abb6b[_0x1307ab]&&_0x1cb568?_0x2abb6b[_0x1307ab]={'start':_0x37c77a,'tapeItem':_0x4f4107[_0x3e1c1e],'userId':_0x314155,'type':_0x1307ab}:_0x2abb6b[_0x1307ab]&&!_0x1cb568?(_0x2abb6b[_0x1307ab]['end']=_0x37c77a,_0x4ba125(_0x2abb6b[_0x1307ab]),_0x2abb6b[_0x1307ab]=null):_0x2abb6b[_0x1307ab]&&_0x1cb568&&_0x2abb6b[_0x1307ab]['userId']!==_0x314155&&(_0x2abb6b[_0x1307ab]['end']=_0x37c77a,_0x232de6&&_0x232de6['userId']===_0x2abb6b[_0x1307ab]['userId']||_0x4ba125(_0x2abb6b[_0x1307ab]),_0x2abb6b[_0x1307ab]={'start':_0x37c77a,'tapeItem':_0x4f4107[_0x3e1c1e],'userId':_0x314155,'type':_0x1307ab}),_0x2abb6b[_0x1307ab]&&_0x5a27b1&&('elementStart'!==_0x4f4107[_0x3e1c1e]['type']||_0x232de6&&_0x232de6['userId']===_0x314155||_0x3e11d1[_0x1307ab]['unshift']({'userId':_0x314155,'object':_0x4f4107[_0x3e1c1e]['item'],'change':_0x2abb6b[_0x1307ab]}),'elementEnd'===_0x4f4107[_0x3e1c1e]['type']&&_0x232de6&&_0x232de6['object']===_0x4f4107[_0x3e1c1e]['item']&&(_0x3e11d1[_0x1307ab]['shift'](),_0x2abb6b[_0x1307ab]=_0x232de6['change'])),_0x2abb6b[_0x1307ab]&&_0x8c9c86&&(_0x2abb6b[_0x1307ab]['end']=_0x3f7982,_0x4ba125(_0x2abb6b[_0x1307ab]),_0x2abb6b[_0x1307ab]=null);}function _0x4ba125({start:_0xa1e845,end:_0x30365d,tapeItem:_0x42c08a,userId:_0x55df88,type:_0x4ad696}){const _0x4f2d98=_0x42c08a['item'],_0xf893d5=_0x1a3ffd['schema']['isBlock'](_0x4f2d98)&&!_0x1a3ffd['schema']['isLimit'](_0x4f2d98),_0x5741e2=_0xa1e845['nodeAfter']==_0x30365d['parent']&&_0x30365d['isAtStart'];if(_0xf893d5&&_0x5741e2)return;const _0x59461f=_0x1a3ffd['createRange'](_0xa1e845,_0x30365d),_0x2ea663=_0x37fae7['get'](_0x55df88),_0x8dcee5=new r({'author':_0x2ea663,'type':'isAdded'==_0x4ad696||'isAddSuggestion'==_0x4ad696?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4ad696||'isRemoveSuggestion'==_0x4ad696},'createdAt':new Date(),'rootName':_0xc66b61});_0x17e624['push'](_0x8dcee5),_0x438aae['markers']['set']('revision:'+_0x8dcee5['id'],_0x59461f);}function _0x2bebcd(_0x3ed07f,_0x50b8b7){const _0x11491c=_0x3ed07f['getAttributes'](),_0x3a361a=_0x50b8b7['getAttributes']();for(const _0x5cd64f of _0x11491c){if(_0x5cd64f[0x1]!==_0x50b8b7['getAttribute'](_0x5cd64f[0x0]))return!0x1;_0x3a361a['next']();}return _0x3a361a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5d8447=>{const _0x102a4f=_0x5d8447['markerName']['split'](':')[0x1],_0xa04e0c=this['_getChangeFromId'](_0x102a4f);if(!_0xa04e0c)return null;const _0x1bf9cf='add'==_0xa04e0c['type']?'insertion':'deletion',_0x5aa773=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1bf9cf];return _0xa04e0c['data']['isSuggestion']&&_0x5aa773['push']('ck-suggestion-marker-'+_0x1bf9cf+'-new'),this['activeChange']==_0xa04e0c&&_0x5aa773['push']('ck-suggestion-marker--active'),{'classes':_0x5aa773,'attributes':{'data-change-id':_0x102a4f}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x232efb=>{_0x232efb['on']('element:pre',(_0x329439,_0x1df468,_0x1124a8)=>{const _0x2f9209=_0x1df468['viewItem']['getChild'](0x0);if(!_0x2f9209||!_0x2f9209['is']('element','code'))return;if(!_0x1124a8['consumable']['consume'](_0x2f9209,{'attributes':['vid_start','vid_end']}))return;const _0x4713bc=_0x1df468['modelRange']['start']['nodeAfter'];_0x1124a8['writer']['setAttribute']('vid_start',_0x2f9209['getAttribute']('vid_start'),_0x4713bc),_0x1124a8['writer']['setAttribute']('vid_end',_0x2f9209['getAttribute']('vid_end'),_0x4713bc);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x49a420=>{_0x49a420['on']('element',(_0x18fd8a,_0x57f3f8,_0x27634e)=>{if(!_0x27634e['consumable']['consume'](_0x57f3f8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x57f3f8['modelRange']['isCollapsed'])return;const _0xbe47ae=_0x57f3f8['modelRange']['start']['nodeAfter'];_0xbe47ae['hasAttribute']('vid_start')||_0xbe47ae['hasAttribute']('vid')||(_0x27634e['writer']['setAttribute']('vid_start',_0x57f3f8['viewItem']['getAttribute']('vid_start'),_0xbe47ae),_0x27634e['writer']['setAttribute']('vid_end',_0x57f3f8['viewItem']['getAttribute']('vid_end'),_0xbe47ae));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x491c6a=>_0x491c6a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x590ad3,[,_0x430999])=>{['vid_start','vid_end','vid']['includes'](_0x430999)&&(_0x590ad3['return']=!0x0,_0x590ad3['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5ec2ab=>{_0x5ec2ab['on']('attribute:vid',(_0x6b2263,_0x23d278,_0x5e52d7)=>{if('\x20'!=_0x23d278['item']['data']||_0x23d278['item']['parent']['maxOffset']>0x1)return;if(!_0x5e52d7['consumable']['consume'](_0x23d278['item'],_0x6b2263['name']))return;const _0x372eb8=_0x5e52d7['writer'],_0x13c1cf=_0x5e52d7['mapper']['toViewRange'](_0x23d278['range']);_0x372eb8['wrap'](_0x13c1cf,_0x372eb8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5cda7f){const _0x213661=_0x5cda7f['plugins']['get']('RevisionViewer');return(_0x267102,_0x19a7ab,_0x1b3716)=>{const _0x2da97e=_0x19a7ab['markerName']['split'](':')[0x1],_0x567757=_0x213661['_getChangeFromId'](_0x2da97e);if(!_0x567757)return null;const _0x4d049f='add'==_0x567757['type']?'split':'merge';if(!_0x1b3716['consumable']['test'](_0x19a7ab['markerRange'],_0x267102['name']))return;const _0x25eeab=_0x19a7ab['markerRange']['getWalker'](),_0x32d0a2=_0x19a7ab['markerRange']['start'],_0x2e9a4d=_0x5cda7f['model']['schema'];let _0x1757bc=null,_0x56774c=null,_0x254f63=!0x1,_0x15dca0=!0x1;for(const _0x4e37d2 of _0x25eeab){const _0x2a9297=_0x4e37d2['item'];_0x254f63=_0x254f63||_0x2e9a4d['isContent'](_0x2a9297);const _0x4fc2b1=_0x1b3716['mapper']['toViewElement'](_0x2a9297);if(_0x4fc2b1&&_0x4fc2b1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e37d2['type']&&(_0x2e9a4d['isBlock'](_0x2a9297)&&!_0x2e9a4d['isLimit'](_0x2a9297)&&(_0x2a9297['nextSibling']||_0x32d0a2['isAtEnd']?_0x1757bc&&_0x1757bc['parent']==_0x2a9297||(_0x1757bc=_0x2a9297,_0x35d1f6(_0x4e37d2['previousPosition']),_0x15dca0=!0x0):_0x56774c=_0x56774c||_0x4e37d2['previousPosition']));}function _0x35d1f6(_0x46a271){const _0x2a3c02=_0x1b3716['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d049f}),_0x48af54=_0x1b3716['mapper']['toViewPosition'](_0x46a271);_0x567757['data']['isSuggestion']&&_0x1b3716['writer']['addClass']('ck-suggestion-marker-'+_0x4d049f+'-new',_0x2a3c02),_0x213661['activeChange']==_0x567757&&_0x1b3716['writer']['addClass']('ck-suggestion-marker--active',_0x2a3c02),_0x1b3716['writer']['insert'](_0x48af54,_0x2a3c02),_0x1b3716['mapper']['bindElementToMarker'](_0x2a3c02,_0x19a7ab['markerName']);}_0x254f63||_0x15dca0||!_0x56774c||_0x35d1f6(_0x56774c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x59da04,_0x747469,_0x25565f)=>{const _0x425231=_0x25565f['mapper']['markerNameToElements'](_0x747469['markerName']);if(_0x425231){for(const _0x7c4346 of _0x425231)(_0x7c4346['hasClass']('ck-suggestion-marker-split')||_0x7c4346['hasClass']('ck-suggestion-marker-merge'))&&(_0x25565f['mapper']['unbindElementFromMarkerName'](_0x7c4346,_0x747469['markerName']),_0x25565f['writer']['remove'](_0x7c4346));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x177506,_0x241171,_0x306ecf)=>{const _0x23b303=_0x241171['markerName']['split'](':')[0x1],_0x20fa75=this['_getChangeFromId'](_0x23b303);if(!_0x20fa75)return null;const _0x4a6abb='add'==_0x20fa75['type']?'split':'merge';if(_0x306ecf['consumable']['test'](_0x241171['markerRange'],_0x177506['name']))for(const _0x4676e4 of _0x241171['markerRange']['getItems']()){if(!_0x4676e4['is']('element','softBreak'))continue;const _0x150348=_0x306ecf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a6abb}),_0x1b140e=_0x306ecf['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4676e4));_0x20fa75['data']['isSuggestion']&&_0x306ecf['writer']['addClass']('ck-suggestion-marker-'+_0x4a6abb+'-new',_0x150348),this['activeChange']==_0x20fa75&&_0x306ecf['writer']['addClass']('ck-suggestion-marker--active',_0x150348),_0x306ecf['writer']['insert'](_0x1b140e,_0x150348),_0x306ecf['mapper']['bindElementToMarker'](_0x150348,_0x241171['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1ff281=>{for(const _0x32059e of this['editor']['model']['document']['getRootNames']()){const _0x5d8c75=this['editor']['model']['document']['getRoot'](_0x32059e),_0x1ad20f=this['editor']['editing']['view']['document']['getRoot'](_0x32059e);if(_0x1ad20f){const _0x62f97=_0x5d8c75['getAttribute']('revisionHistoryAttachChange');if(_0x1ff281['removeAttribute']('data-change-id',_0x1ad20f),_0x1ff281['removeClass']('ck-revision-history-root-add',_0x1ad20f),_0x1ff281['removeClass']('ck-revision-history-root-remove',_0x1ad20f),_0x1ff281['removeClass']('ck-revision-history-root--active',_0x1ad20f),_0x62f97){const _0xa68fac=this['_getChangeFromId'](_0x62f97);if(!_0xa68fac)return null;_0x1ff281['setAttribute']('data-change-id',_0x62f97,_0x1ad20f),_0x1ff281['addClass']('ck-revision-history-root-'+_0xa68fac['type'],_0x1ad20f),this['activeChange']==_0xa68fac&&_0x1ff281['addClass']('ck-revision-history-root--active',_0x1ad20f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5225f1=>'revision-comment:'+_0x5225f1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x40b247=>'revision-suggestion:'+_0x40b247,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x36ef58=>({'name':'suggestion:'+_0x36ef58,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3444b8=>{const _0x2ac24a=_0x3444b8['markerName']['split'](':')[0x1];return'insertion'!=_0x2ac24a&&'deletion'!=_0x2ac24a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2ac24a]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x311147,_0xa5ab76,_0x5dd747)=>{const _0x231725=_0x5dd747['mapper']['markerNameToElements'](_0xa5ab76['markerName']);if(_0x231725){for(const _0x3f3543 of _0x231725)_0x3f3543['is']('uiElement')&&(_0x5dd747['mapper']['unbindElementFromMarkerName'](_0x3f3543,_0xa5ab76['markerName']),_0x5dd747['writer']['remove'](_0x3f3543));}},{'priority':'high'});}['_getChangeFromId'](_0x3797a7){return this['_changeIdToChange']['get'](_0x3797a7);}['_getViewForChange'](_0x343151){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x343151),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x365f23,_0x1cd28a,_0x4952e5,_0x11e2dd)=>{_0x11e2dd&&this['_balloon']['remove'](_0x11e2dd),_0x4952e5&&(this['_balloon']['add']({'view':_0x4952e5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x432829=this['editor']['editing'],_0x3c9418=this['_getChangeFromId'](_0x4952e5['changeId']);let _0xc5b0e1;if(_0x3c9418['data']['isOnRoot']){const _0x4b7899=_0x432829['view']['getDomRoot'](_0x3c9418['rootName']);_0xc5b0e1=Array['from'](_0x4b7899['getClientRects']());}else{const _0x1dffb9=this['editor']['model']['markers']['get']('revision:'+_0x4952e5['changeId']);_0xc5b0e1=Array['from'](_0x432829['mapper']['markerNameToElements'](_0x1dffb9['name']))['map'](_0xac7f7=>_0x432829['view']['domConverter']['mapViewToDom'](_0xac7f7))['map'](_0x120f55=>Array['from'](_0x120f55['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc5b0e1[0x0];return _0xc5b0e1['find'](_0x3d44ff=>_0x3d44ff['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d44ff['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d44ff['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d44ff['right']+0x3>=this['_activeViewTarget']['x'])||_0xc5b0e1[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x594ab4,_0x1a6aba,_0x5e6300,_0xf110a2)=>{this['activeView']=_0x5e6300?this['_getViewForChange'](_0x5e6300):null,this['editor']['model']['change'](()=>{const _0x4ed396=this['editor']['editing'];_0xf110a2&&(_0xf110a2['data']['isOnRoot']?_0x4ed396['view']['change'](_0x1e4b27=>{_0x1e4b27['removeClass']('ck-revision-history-root--active',_0x4ed396['view']['document']['getRoot'](_0xf110a2['rootName']));}):_0x4ed396['reconvertMarker']('revision:'+_0xf110a2['id'])),_0x5e6300&&(_0x5e6300['data']['isOnRoot']?_0x4ed396['view']['change'](_0x33bc73=>{_0x33bc73['addClass']('ck-revision-history-root--active',_0x4ed396['view']['document']['getRoot'](_0x5e6300['rootName']));}):_0x4ed396['reconvertMarker']('revision:'+_0x5e6300['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x550b1d,_0x24c8c8)=>{if(this['activeChange'])return;const _0x27be6c=this['_findChangeIdFromDomTarget'](_0x24c8c8['target']),_0x2b921c=this['_changeIdToChange']['get'](_0x27be6c);_0x2b921c?(this['_activeViewTarget']={'x':_0x24c8c8['domEvent']['x'],'y':_0x24c8c8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2b921c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5308fb,_0x39461f)=>{const _0x5944b4=this['_findChangeIdFromDomTarget'](_0x39461f['target']),_0x43ca82=this['_changeIdToChange']['get'](_0x5944b4);_0x43ca82?(this['_activeViewTarget']={'x':_0x39461f['domEvent']['x'],'y':_0x39461f['domEvent']['y']},_0x43ca82===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x43ca82):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x56b0d6){do{const _0x304506=_0x56b0d6['getAttribute']('data-change-id');if(_0x304506)return _0x304506;_0x56b0d6=_0x56b0d6['parent'];}while(_0x56b0d6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xa7af8f=>{for(const _0x4cf30c of this['editor']['model']['markers'])_0xa7af8f['removeMarker'](_0x4cf30c);});}}function X(_0x23e69b,_0x261aed){return(_0x5085fd,_0x3cea5b,_0x1fcfcf)=>{if(!_0x1fcfcf['consumable']['test'](_0x3cea5b['markerRange'],_0x5085fd['name']))return;const _0x2a7d32=_0x3cea5b['markerRange']['getWalker'](),_0x25c49a=_0x3cea5b['markerRange']['start'],_0x50532b=_0x23e69b['model']['schema'];let _0x409147=null,_0x4c56fd=null,_0x3eadf3=!0x1,_0x179c16=!0x1;for(const _0x42f458 of _0x2a7d32){const _0xa2ffbb=_0x42f458['item'];_0x3eadf3=_0x3eadf3||_0x50532b['isContent'](_0xa2ffbb);const _0x165653=_0x1fcfcf['mapper']['toViewElement'](_0xa2ffbb);if(_0x165653&&_0x165653['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42f458['type']&&(_0x50532b['isBlock'](_0xa2ffbb)&&!_0x50532b['isLimit'](_0xa2ffbb)&&(_0xa2ffbb['nextSibling']||_0x25c49a['isAtEnd']?_0x409147&&_0x409147['parent']==_0xa2ffbb||(_0x409147=_0xa2ffbb,_0x1af84d(_0x42f458['previousPosition']),_0x179c16=!0x0):_0x4c56fd=_0x4c56fd||_0x42f458['previousPosition']));}function _0x1af84d(_0x225da3){const _0x8197a9=_0x1fcfcf['mapper']['toViewPosition'](_0x225da3),_0x374e23=_0x1fcfcf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x261aed});_0x1fcfcf['writer']['insert'](_0x8197a9,_0x374e23),_0x1fcfcf['mapper']['bindElementToMarker'](_0x374e23,_0x3cea5b['markerName']);}_0x3eadf3||_0x179c16||!_0x4c56fd||_0x1af84d(_0x4c56fd);};}class wt extends _0x33cfaf{constructor(_0x9a2d83){super(_0x9a2d83);const _0x46c012=_0x9a2d83['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x46c012,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x46c012,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x11eab5=this['editor'],_0x4892de=_0x11eab5['plugins']['get'](m),_0x5f55d2=_0x4892de['isReady']?_0x4892de['diff']['newRevisionId']:null;_0x11eab5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5f55d2);}['refresh'](){const {isReady:_0x21e5a4,isEnabled:_0x4552c9,repository:_0x410afa,diff:_0x342b4c}=this['editor']['plugins']['get'](m),_0x22b75f=_0x342b4c&&_0x410afa['getLaterVisibleRevision'](_0x342b4c['newRevisionId']);this['isEnabled']=_0x21e5a4&&_0x4552c9&&Boolean(_0x22b75f);}}class pt extends _0x33cfaf{['_step'];constructor(_0x48a430,{direction:_0x60021b}){super(_0x48a430);const _0x380f72=_0x48a430['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x60021b?0x1:-0x1,this['listenTo'](_0x380f72,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x380f72,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x380f72,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2c7a5b=this['editor'],_0x3f97ee=_0x2c7a5b['plugins']['get'](m),{isNavigationMode:_0x5a7aa5,currentChangeNumber:_0x548afc}=_0x3f97ee;let _0x15c15e;if(_0x3f97ee['activeChange']=_0x5a7aa5?_0x3f97ee['diff']['changes']['get'](_0x548afc+this['_step']):_0x3f97ee['diff']['changes']['first'],_0x3f97ee['activeChange']['data']['isOnRoot'])_0x15c15e=_0x2c7a5b['editing']['view']['getDomRoot'](_0x3f97ee['activeChange']['rootName']);else{const _0x35213f=_0x2c7a5b['model']['markers']['get']('revision:'+_0x3f97ee['activeChange']['id']);_0x15c15e=_0x53f201(_0x2c7a5b['editing'],_0x35213f);}_0x3597b8({'target':_0x15c15e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x273bec,currentChangeNumber:_0x219ff8,numberOfChanges:_0x177564,isReady:_0x2adb02,isEnabled:_0x4d251b}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x4d251b&&_0x2adb02&&_0x177564)&&(!_0x273bec||(0x1===this['_step']?_0x219ff8<_0x177564-0x1:_0x219ff8>0x0));}}class _i extends _0x4eacd9{constructor(_0x2fd461){super(_0x2fd461);const _0x35036b=this['bindTemplate'],_0x1256ad=new _0x3399f1(_0x2fd461),_0x2fbd5b=new _0x3399f1(_0x2fd461);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',(_0x7b6291,_0x118b49)=>_0x7b6291&&_0x118b49>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xe606c7,_0x4d78d6,_0x3eb29d,_0x5ef6cb)=>{if(!_0xe606c7)return g(_0x2fd461,'Loading...');if(!_0x3eb29d)return g(_0x2fd461,'No\x20changes');const _0x22bfb1=g(_0x2fd461,'NUMBER_OF_CHANGES',_0x3eb29d);return _0x5ef6cb?g(_0x2fd461,'X_OF_Y_CHANGES',[_0x4d78d6+0x1,_0x3eb29d]):_0x22bfb1;}),_0x1256ad['set']({'label':g(_0x2fd461,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x570756}),_0x2fbd5b['set']({'label':g(_0x2fd461,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4f69eb}),_0x1256ad['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2fbd5b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1256ad['on']('execute',()=>this['fire']('execute','backward')),_0x2fbd5b['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',_0x35036b['if']('_isStatusLabelVisible','ck-hidden',_0x3cb80a=>!_0x3cb80a)]},'children':[{'text':_0x35036b['to']('isNavigationMode',_0x324ec8=>_0x324ec8?g(_0x2fd461,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2fd461,'Total')+':\x20')}]},{'text':_0x35036b['to']('_statusText')}]},new _0x4ae2bb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1256ad,_0x2fbd5b]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x563dd0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x481148=this['editor']['editing']['view'];_0x481148['change'](_0xe59ed0=>{for(const _0x209076 of _0x481148['document']['roots'])_0xe59ed0['addClass'](ce,_0x209076);});}['hide'](){const _0x51fcba=this['editor']['editing']['view'];_0x51fcba['change'](_0x9178de=>{for(const _0x5aac02 of _0x51fcba['document']['roots'])_0x9178de['removeClass'](ce,_0x5aac02);});}}class R extends _0x563dd0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x124a6e=this['editor'],_0xf64424=_0x124a6e['plugins']['get'](m),_0x476737=_0x124a6e['plugins']['get'](le);_0x124a6e['ui']['componentFactory']['add']('exitToEditing',_0x3e4ef5=>{const _0x3611fb=new _0x3399f1(_0x3e4ef5);return _0x3611fb['set']({'label':g(_0x3e4ef5,'Back\x20to\x20editing'),'icon':_0x33818f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3611fb,'execute',()=>{_0x124a6e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3611fb;}),_0x124a6e['ui']['componentFactory']['add']('restoreRevision',_0x1531d4=>{const _0x42c3db=new _0x3399f1(_0x1531d4);return _0x42c3db['set']({'label':g(_0x1531d4,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x42c3db['bind']('isEnabled')['to'](_0x124a6e['commands']['get']('restoreRevision')),this['listenTo'](_0x42c3db,'execute',()=>_0x124a6e['execute']('restoreRevision')),_0x42c3db;}),_0x124a6e['ui']['componentFactory']['add']('changesNavigation',_0x2bb8e8=>{const _0x62988a=new _i(_0x2bb8e8),_0xcbc49a=_0x124a6e['commands']['get']('showPreviousChange'),_0x59a8d0=_0x124a6e['commands']['get']('showNextChange');return _0x62988a['bind']('isBackwardNavigationEnabled')['to'](_0xcbc49a,'isEnabled'),_0x62988a['bind']('isForwardNavigationEnabled')['to'](_0x59a8d0,'isEnabled'),_0x62988a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xf64424),this['listenTo'](_0x62988a,'execute',(_0x4b4df4,_0x1ac7d7)=>{_0x124a6e['execute']('forward'===_0x1ac7d7?'showNextChange':'showPreviousChange');}),_0x62988a;}),_0x476737['show'](),_0xf64424['on']('change:isReady',(_0x25dee2,_0x283def,_0xc812c0)=>{_0xc812c0?_0x476737['hide']():_0x476737['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x22a96f,_0x1f184e){super(_0x22a96f,_0x1f184e);const _0x2abe81=this['bindTemplate'];this['set']({'label':g(_0x22a96f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x22a96f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2abe81['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 _0x158fc9=this['fieldView']['element'];this['_tooltipString']=_0x158fc9['scrollWidth']>_0x158fc9['clientWidth']&&_0x158fc9['value']||'';}}class oi extends _0x4eacd9{constructor(_0x59b3df,_0x217902,_0x2d4d9b){super(_0x59b3df);const _0x34d77d=new _0x2b05ec();_0x34d77d['set']({'content':_0x59a9b3,'viewBox':'0\x200\x2011\x2010'});const _0x43e77d=['ck','ck-revision-history-sidebar__revision-author'];_0x2d4d9b&&_0x43e77d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x40abfa=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x59b3df,_0x2d4d9b?'Revision\x20creator':'Revision\x20author')},'children':[_0x34d77d,_0x217902['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x43e77d},'children':_0x40abfa});}}function ni(_0xa657bd,_0x58becb){const _0x575cef=_0xa657bd['bindTemplate'],_0x334dbc=_0xa657bd['locale'],_0x4d1e51=_0x14068a(_0x334dbc);_0x4d1e51['panelPosition']='sw';const _0x49f5a1=function(_0x3e3ba8,_0x1b242a){const _0x15863d=function(_0x156eff,_0x32cb2c){const _0x6bd6b7=_0x156eff['locale'],_0x3e9a00={'Compare\x20against\x20selected':g(_0x6bd6b7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x6bd6b7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x6bd6b7,'Restore\x20this\x20revision')};return _0x32cb2c['map'](_0x1b27a9=>{const _0x7201=_0x3e9a00[_0x1b27a9['name']];return _0x7201&&_0x7201!==_0x1b27a9['name']&&(_0x1b27a9['name']=_0x7201),_0x1b27a9;});}(_0x3e3ba8,_0x1b242a),_0x357b69=new _0x4e76a3();for(const _0x593f98 of _0x15863d){const _0x86399a={'type':'button','model':new to({'label':_0x593f98['name'],'class':_0x593f98['class'],'withText':!0x0,'role':'menuitem','_action':_0x593f98['action']})};_0x86399a['model']['bind']('isEnabled')['to'](_0x3e3ba8,'isActionsDropdownOpen',_0x57fe3c=>'function'!=typeof _0x593f98['isEnabled']||(!_0x57fe3c||_0x593f98['isEnabled'](_0x3e3ba8))),_0x357b69['add'](_0x86399a);}return _0x357b69;}(_0xa657bd,_0x58becb);return _0xa657bd['bind']('isActionsDropdownOpen')['to'](_0x4d1e51,'isOpen'),_0x4d1e51['buttonView']['set']({'label':g(_0x334dbc,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x48f754}),_0x4d1e51['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x575cef['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x575cef['to'](_0x5edb04=>_0x5edb04['stopPropagation']())}}),_0x4d1e51['on']('execute',_0x485e76=>{_0xa657bd['isReady']&&'function'==typeof _0x485e76['source']['_action']&&_0x485e76['source']['_action'](_0xa657bd);}),_0x26ee0b(_0x4d1e51,_0x49f5a1,{'role':'menu'}),_0x4d1e51['listenTo'](_0xa657bd,'change:isActionsDropdownOpen',(_0x5bb621,_0x1092a5,_0x3c7af1)=>{if(_0x3c7af1)for(const _0x1dd179 of _0x4d1e51['listView']['items']){const _0x346945=_0x1dd179['children']['first'],_0x1deede=_0x58becb['find'](_0x3c9242=>_0x3c9242['action']===_0x346945['_action'])['isVisible'];_0x1dd179['isVisible']=void 0x0===_0x1deede||_0x1deede(_0xa657bd);}}),_0x4d1e51;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0xf13c3d(_0x4eacd9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1b6b3c,_0x26be1a,_0x2cbe3f,_0x3bef20){super(_0x1b6b3c);const _0xd96728=this['bindTemplate'],_0x1f5e8e=function(_0x38ccfc,_0x3bc828){const _0x41643b=Array['from'](_0x3bc828['authors'])['filter'](_0x1dc45c=>_0x1dc45c!=_0x3bc828['creator']);return _0x3bc828['creator']&&_0x41643b['unshift'](_0x3bc828['creator']),_0x41643b['map'](_0x587714=>new oi(_0x38ccfc,_0x587714,_0x587714==_0x3bc828['creator']));}(_0x1b6b3c,_0x26be1a);this['id']=_0x26be1a['id'],this['_revision']=_0x26be1a,this['_requireRevisionName']=_0x3bef20,this['bind']('name','createdAt')['to'](_0x26be1a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x11bcda=>{return _0x2ef7a3=_0x1b6b3c['uiLanguage'],(_0x447d0f=_0x11bcda)['toLocaleDateString'](_0x2ef7a3,{'month':'long','day':'numeric'})+',\x20'+_0x447d0f['toLocaleTimeString'](_0x2ef7a3,{'hour':'numeric','minute':'numeric'});var _0x2ef7a3,_0x447d0f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x1b6b3c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xb0ed3b=>_0xb0ed3b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3cdf01,_0x4235f7)=>_0x3cdf01&&_0x4235f7),this['revisionActionsView']=_0x2cbe3f&&_0x2cbe3f['length']?ni(this,_0x2cbe3f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xd96728['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xd96728['if']('isEnabled','ck-disabled',_0xd65434=>!_0xd65434),_0xd96728['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xd96728['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xd96728['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':_0xd96728['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':_0x1f5e8e}]},this['revisionActionsView']],'on':{'click':_0xd96728['to'](_0x4e0a0b=>{_0x4e0a0b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2526e5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2526e5,'change',()=>{this['_requireRevisionName']&&!_0x2526e5['value']||this['fire']('setName',{'id':this['id'],'name':_0x2526e5['value']}),_0x2526e5['value']||(_0x2526e5['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x1f3217,_0x468875){const _0x19ce7c=_0x4d6dc2['fromJSDate'](_0x1f3217)['setLocale'](_0x468875),_0x588f45=_0x4d6dc2['local'](),_0x55d76c=_0x588f45['minus']({'days':0x1})['startOf']('day');let _0x7b147d,_0x5081a5;return _0x19ce7c['hasSame'](_0x588f45,'day')?(_0x7b147d=_0x19ce7c['startOf']('day')['toJSDate'](),_0x5081a5=_0x19ce7c['toRelativeCalendar']()):_0x19ce7c['hasSame'](_0x55d76c,'day')?(_0x7b147d=_0x55d76c['toJSDate'](),_0x5081a5=_0x19ce7c['toRelativeCalendar']()):_0x19ce7c['hasSame'](_0x588f45,'week')?(_0x7b147d=_0x19ce7c['startOf']('week')['toJSDate'](),_0x5081a5=_0x19ce7c['weekdayLong']||''):_0x19ce7c['hasSame'](_0x588f45,'year')?(_0x7b147d=_0x19ce7c['startOf']('month')['toJSDate'](),_0x5081a5=_0x19ce7c['monthLong']||''):(_0x7b147d=_0x19ce7c['startOf']('year')['toJSDate'](),_0x5081a5=String(_0x19ce7c['year'])),{'startDate':_0x7b147d,'localizedPeriodName':_0x5081a5};}class mi extends _0x4eacd9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1d3a20,_0x31beef,_0x1c223e,_0xf7f22c){super(_0x1d3a20);const _0xa00173=vi(_0x31beef,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x31beef,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1c223e,this['_requireRevisionName']=_0xf7f22c,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':_0xa00173}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xc008b0){const _0x4e818a=new ai(this['locale'],_0xc008b0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4e818a);}['removeRevision'](_0x38be03){const _0x1b8fb5=this['revisionViews']['find'](_0x5ecba3=>_0x5ecba3['id']===_0x38be03['id']);this['revisionViews']['remove'](_0x1b8fb5);}}class is extends _0x4eacd9{constructor(_0xa8271a){super(_0xa8271a);const _0x59dd08=new _0x2b05ec();_0x59dd08['content']=_0x3d91fe,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x59dd08,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xa8271a,'Revision\x20history')]}]});}}class di extends _0x4eacd9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x39a64c,_0xa696bc,_0x87bf02,_0x569cf3){super(_0x39a64c);const _0x23fef4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xa696bc,this['_revisionActions']=_0x87bf02,this['_requireRevisionName']=_0x569cf3,this['on']('select',(_0x43a07b,_0x1e5243)=>{this['fire']('revisionSelected',_0x1e5243);}),this['on']('setName',(_0x2398b4,_0x30ee63)=>{this['fire']('revisionSetName',_0x30ee63);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x39a64c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x23fef4['if']('isEnabled','ck-disabled',_0x3a0bef=>!_0x3a0bef)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x19b49d of this['_revisions'])this['_addRevision'](_0x19b49d);this['_revisions']['on']('add',(_0x275a2b,_0x5e0f32)=>{this['_addRevision'](_0x5e0f32);}),this['_revisions']['on']('remove',(_0x4203e2,_0xe3cd1e)=>{this['_removeRevision'](_0xe3cd1e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x466adc=>_0x466adc['revisionViews']['map'](_0x4844e1=>_0x4844e1))['flat']();}['selectRevision'](_0x257ded){for(const _0x2faffd of this['revisionViews'])_0x257ded&&_0x257ded['id']===_0x2faffd['id']?_0x2faffd['select']():_0x2faffd['deselect']();}['highlightRevisions'](_0x327788){for(const _0x10844d of this['revisionViews'])_0x327788['some'](({id:_0x3bfc79})=>_0x3bfc79===_0x10844d['id'])?_0x10844d['highlight']():_0x10844d['unhighlight']();}['_addRevision'](_0x13cd31){const _0x8becf3=vi(_0x13cd31['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1f8f23=this['timePeriodViews']['get'](0x0);_0x1f8f23&&_0x1f8f23['startDate']['getTime']()===_0x8becf3['getTime']()||(_0x1f8f23=new mi(this['locale'],_0x8becf3,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1f8f23)),_0x1f8f23['addRevision'](_0x13cd31);}['_removeRevision'](_0x26bf13){const _0x91a19f=vi(_0x26bf13['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x91a19f)['removeRevision'](_0x26bf13);}['_getTimePeriodViewByStartDate'](_0x4c5d22){return this['timePeriodViews']['find'](_0x2d56f3=>_0x2d56f3['startDate']['getTime']()===_0x4c5d22['getTime']());}}class d extends _0x563dd0{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x353e26){super(_0x353e26),this['_revisionViewer']=_0x353e26['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x36ac4d=this['_revisionsRepository']['_revisions'],_0x46ddbc=this['_createRevisionActions'](),_0x37ce37=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x36ac4d,_0x46ddbc,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',(_0x4b55ab,_0x218e38)=>{_0x218e38['revisionViews']['on']('add',(_0x3b1d1c,_0x4ce821)=>{_0x4ce821['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)),_0x37ce37['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2bfdb7=this['_revisionsRepository']['getRevision'](0x0);if(_0x2bfdb7){const _0x3657c3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2bfdb7['id']);this['_revisionViewer']['compare'](_0x2bfdb7,_0x3657c3);}}['_handleRevisionSelected'](_0x506030,_0x161a20){const _0x2bd049=this['_revisionsRepository']['getRevision'](_0x161a20['id']),_0x2b9261=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2bd049['id']);this['_revisionViewer']['compare'](_0x2bd049,_0x2b9261);}['_handleRevisionSetName'](_0x5033a7,_0x27c3aa){this['_revisionsRepository']['getRevision'](_0x27c3aa['id'])['setName'](_0x27c3aa['name']);}['_handleDiffChange'](_0x4c2a44,_0x1074bb,_0x5cd92a){const _0x237e91=this['_revisionsRepository']['getRevisionsInDiff'](_0x5cd92a);_0x237e91['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x237e91),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x237e91[0x0]));}['_createRevisionActions'](){const _0x3a5fa1=this['editor'],_0x2a6e25=d['availableRevisionActions'],_0x324d80=_0x3a5fa1['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x324d80['length'])return _0x324d80['map'](_0x179c08=>{const _0x1672fb='string'==typeof _0x179c08?Object['assign']({},_0x2a6e25[_0x179c08]):_0x179c08;return _0x1672fb['action']=_0x1672fb['action']['bind'](this,_0x3a5fa1),_0x1672fb['isVisible']&&(_0x1672fb['isVisible']=_0x1672fb['isVisible']['bind'](this,_0x3a5fa1)),_0x1672fb;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x281d40},_0x3be41d)=>{const _0x54d7a6=_0x281d40['get'](m),_0xacb603=_0x54d7a6['repository'];let _0x28100c=_0x54d7a6['diff']['newRevisionId'],_0x6db9e4=_0x3be41d['id'];_0xacb603['getIndex'](_0x28100c)>_0xacb603['getIndex'](_0x6db9e4)&&([_0x28100c,_0x6db9e4]=[_0x6db9e4,_0x28100c]),_0x54d7a6['compare'](_0x28100c,_0x6db9e4);},'isVisible':({plugins:_0x2606f9},_0x153019)=>{const _0x1b8bc5=_0x2606f9['get'](m);return!(_0x1b8bc5['repository']['getRevisionsInDiff'](_0x1b8bc5['diff'])['length']>0x2)&&!_0x153019['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3ddb62,{id:_0x1c36d6})=>{_0x3ddb62['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1c36d6);},'isVisible':({plugins:_0x884a15},_0x18bc77)=>!!_0x884a15['get'](m)['repository']['getLaterVisibleRevision'](_0x18bc77['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x43dc69},{id:_0x1d97ff,revisionNameView:_0x553d69})=>{const _0x2e1d65=_0x43dc69['get'](m),_0x5ac1df=_0x2e1d65['repository']['getEarlierVisibleRevision'](_0x1d97ff);_0x2e1d65['compare'](_0x1d97ff,_0x5ac1df),_0x553d69['focus'](),_0x553d69['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x747adf,_0x990d82){super(_0x747adf),this['_view']=_0x990d82,this['_toolbarConfig']=et(_0x747adf['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x579692){const _0x4d3582=this['editor'],_0x24b513=this['view'],_0x8502bd=_0x4d3582['editing']['view'],_0x37c4b0=_0x24b513['editable'],_0x4bd737=_0x8502bd['document']['getRoot']();_0x37c4b0['name']=_0x4bd737['rootName'],_0x24b513['render']();const _0x26f0ab=_0x37c4b0['element'];this['setEditableElement'](_0x37c4b0['name'],_0x26f0ab),_0x24b513['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x8502bd['attachDomRoot'](_0x26f0ab),this['_elementReplacer']['replace'](_0x579692,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x423d1b=this['view'],_0x3d5fbc=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3d5fbc['detachDomRoot'](_0x423d1b['editable']['name']),_0x423d1b['destroy']();}['_initToolbar'](){const _0x5d3cf1=this['view'];_0x5d3cf1['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5d3cf1['stickyPanel']['limiterElement']=_0x5d3cf1['element'],_0x5d3cf1['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x586ece})=>_0x586ece),_0x5d3cf1['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5d3cf1['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xf9bce5,_0xd3b77,_0x34b23a={}){super(_0xf9bce5),this['stickyPanel']=new ht(_0xf9bce5),this['toolbar']=new dt(_0xf9bce5,{'shouldGroupWhenFull':_0x34b23a['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0xf9bce5,_0xd3b77);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- _0x3e370e(_0xca871b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x279d44,_0xea9221){super(_0xea9221),this['sourceElement']=_0x279d44,this['model']['document']['createRoot']();const _0x160c44=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x160c44);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x460e2c,_0x35bc55){const _0x2514bc=new this(_0x460e2c,_0x35bc55);return await _0x2514bc['initPlugins'](),await _0x2514bc['ui']['init'](_0x460e2c),await _0x2514bc['data']['init'](_0x2514bc['config']['get']('initialData')||''),_0x2514bc['fire']('ready'),_0x2514bc;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x3a83bf{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1799a2){function _0x575310(_0x1d5976){return _0x1d5976['map'](_0x35e918=>String['fromCharCode'](_0x35e918))['join']('');}super(_0x1799a2),this['result']='end',_0x1799a2[_0x575310([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x575310([0x76,0x69,0x65,0x77])][_0x575310([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x575310([0x61,0x75,0x74,0x6f]),_0x1799a2[_0x575310([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x575310([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x575310([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x575310([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x575310([0x6f,0x6b])});}}class k extends _0x3a83bf{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x994e15){if(super(_0x994e15),!this['editor']['config']['get']('revisionHistory'))throw new _0x50b2f4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4c86db=>this['_showRevisionViewer']({..._0x4c86db,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1a552a=>this['_closeRevisionViewer'](_0x1a552a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3faf62=>this['_restoreRevision'](_0x3faf62)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5f14e7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5f14e7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3c3041){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3c3041);}['getRevision'](_0x39f733){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x39f733);}['getRevisions'](_0x4df877){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4df877||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x164c3c=this['editor'],_0xcebabc=_0x319fea(_0x164c3c,p),_0x4cc6c0=_0x164c3c['plugins']['get']('RevisionTracker'),_0x725038=_0x164c3c['plugins']['get']('Users')['users'];return _0xcebabc['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xcebabc['lazyRoots'],(_0xcebabc['plugins']['push'](_t,m,R,class extends _0x3a83bf{static get['requires'](){return[m,'Users'];}['init'](){const _0x2bac8f=this['editor']['plugins']['get']('Users');for(const _0xf33b8b of _0x725038)_0xf33b8b['isAnonymous']||_0x2bac8f['getUser'](_0xf33b8b['id'])||_0x2bac8f['addUser'](_0xf33b8b);const _0x1eba19=_0x4cc6c0['repository']['getRevisions']();let _0x6aa664=null;const _0x3a4b70=this['editor']['plugins']['get']('RevisionViewer');_0x3a4b70['adapter']=_0x4cc6c0['adapter'],_0x3a4b70['bind']('isEnabled')['to'](_0x4cc6c0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x164c3c,'isReadOnly',_0x516fa3=>!_0x516fa3);for(const _0x1a8a76 of _0x1eba19){const _0x1e3a14=null===_0x1a8a76['creator'];if(_0x1e3a14&&_0x1a8a76['toVersion']===_0x1a8a76['fromVersion'])continue;const _0x14a830=_0x1a8a76['toJSON']();_0x3a4b70['addRevisionData'](_0x14a830,(_0x2720ea,_0x3a57ef,_0x455c33)=>{if(_0x1e3a14){if(_0x6aa664)_0x6aa664['_update'](_0x2720ea,_0x3a57ef);else{if(!_0x3a57ef){const _0x14e149=_0x455c33['toJSON']();_0x14e149['id']=_0x56f194(),_0x4cc6c0['saveRevision'](_0x14e149,_0x455c33['toVersion'])['then'](_0x3c428f=>{_0x6aa664=_0x3c428f;});}}}else _0x1a8a76['_update'](_0x2720ea,_0x3a57ef);});}}},d),_0xcebabc);}['_enhanceShowRevisionViewerCallback'](){const _0x510180=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x141047=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x10b554=this['editor']['plugins']['get']('Autosave');await _0x10b554['save']();}else await _0x141047['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1ca4bd=this['editor']['plugins']['get']('Dialog');_0x1ca4bd['isOpen']&&_0x1ca4bd['hide']();}const _0xdc9660=this['_getRevisionViewerEditorConfig']();return _0x510180(_0xdc9660)['then'](_0x33f9a4=>{return(this['_viewerEditor']=_0x33f9a4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x33f9a4);})['catch'](_0x538859=>(console['error'](_0x538859),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5e9a05=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5e9a05(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x181191=this['editor']['plugins']['get']('Annotations');_0x181191['refreshVisibility'](),_0x181191['refreshPositioning']();}})));}['_showRevisionViewer'](_0x425e37){const _0x557de0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4f163e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3aa030=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3aa030,_0x425e37)['then'](_0x5f323b=>(_0x4f163e['style']['display']='block',_0x557de0['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5f323b));}['_closeRevisionViewer'](_0x45c374){const _0x260d46=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x260d46['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x45c374['destroy']();}async['_restoreRevision'](_0x321d09){const _0x56f63e=this['editor'],_0x37c117=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x17f00d=_0x56f63e['plugins']['get']('RevisionTracker'),_0x1f33a0=_0x56f63e['plugins']['get']('RevisionHistoryUtils'),_0xafc861=_0x37c117['repository']['getRevision'](_0x321d09);let _0x190116,_0x34a03d,_0x431c9c;try{await _0x1f33a0['loadRevisionData'](_0xafc861,this['adapter']),_0x190116=_0x1f33a0['getRevisionDocumentData'](_0xafc861),_0x34a03d=_0x1f33a0['getRevisionRootsAttributes'](_0xafc861);}catch(_0x51f1f3){return void console['error'](_0x51f1f3);}_0x56f63e['model']['change'](_0x277eaa=>{for(const _0x474340 of Array['from'](_0x56f63e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x277eaa['removeMarker'](_0x474340);}),_0x37c117['isReady']=!0x1,_0x56f63e['model']['enqueueChange'](_0x3628cf=>{_0x3628cf['setSelection'](null),_0x3628cf['removeSelectionAttribute'](_0x56f63e['model']['document']['selection']['getAttributeKeys']());const _0x49b0d4=Object['keys'](_0x190116);for(const _0x2557a2 of _0x56f63e['model']['document']['roots'])'$graveyard'!=_0x2557a2['rootName']&&_0x2557a2['isAttached']()&&!_0x49b0d4['includes'](_0x2557a2['rootName'])&&_0x3628cf['detachRoot'](_0x2557a2);for(const _0x5eb36a of _0x49b0d4){let _0x1b268c=_0x56f63e['model']['document']['getRoot'](_0x5eb36a);_0x1b268c&&_0x1b268c['isAttached']()||(_0x1b268c=_0x3628cf['addRoot'](_0x5eb36a));const _0x514318=_0x34a03d[_0x5eb36a],_0x52315d=Object['keys'](_0x514318),_0x4d931a=_0x190116[_0x5eb36a];for(const _0x3466f6 of _0x1b268c['getAttributeKeys']())_0x52315d['includes'](_0x3466f6)||_0x3628cf['removeAttribute'](_0x3466f6,_0x1b268c);for(const _0x1317a3 of _0x52315d)_0x3628cf['setAttribute'](_0x1317a3,_0x34a03d[_0x5eb36a][_0x1317a3],_0x1b268c);_0x3628cf['remove'](_0x3628cf['createRangeIn'](_0x1b268c)),_0x3628cf['insert'](_0x56f63e['data']['parse'](_0x4d931a,_0x1b268c),_0x1b268c,0x0);}});const _0x137fbe=g(_0x56f63e['locale'],'Restored');if(_0xafc861['name'])_0x431c9c=-0x1==_0xafc861['name']['indexOf'](_0x137fbe)?_0x137fbe+':\x20'+_0xafc861['name']:_0xafc861['name'];else _0x431c9c=_0x137fbe+':\x20'+(_0xafc861['createdAt']['toLocaleDateString'](_0x56f63e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xafc861['createdAt']['toLocaleTimeString'](_0x56f63e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x17f00d['saveRevision']({'name':_0x431c9c}),_0x37c117['isReady']=!0x0,_0x56f63e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,de as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x28e854){super(_0x28e854),this['_revisionViewer']=_0x28e854['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2f57ab=this['_revisionsRepository']['_revisions'],_0x4c9a1f=this['_createRevisionActions'](),_0x280649=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2f57ab,_0x4c9a1f,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',(_0x58a84c,_0x5713b2)=>{_0x5713b2['revisionViews']['on']('add',(_0x2b2f66,_0x76015c)=>{_0x76015c['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)),_0x280649['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1806ab=this['_revisionsRepository']['getRevision'](0x0);if(_0x1806ab){const _0x71fd92=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1806ab['id']);this['_revisionViewer']['compare'](_0x1806ab,_0x71fd92);}}['_handleRevisionSelected'](_0x488b46,_0x5f4b4c){const _0x541622=this['_revisionsRepository']['getRevision'](_0x5f4b4c['id']),_0x4b5b96=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x541622['id']);this['_revisionViewer']['compare'](_0x541622,_0x4b5b96);}['_handleRevisionSetName'](_0x368903,_0x180658){this['_revisionsRepository']['getRevision'](_0x180658['id'])['setName'](_0x180658['name']);}['_handleDiffChange'](_0x12e472,_0x2173c4,_0x59ad4a){const _0x3f0363=this['_revisionsRepository']['getRevisionsInDiff'](_0x59ad4a);_0x3f0363['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3f0363),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3f0363[0x0]));}['_createRevisionActions'](){const _0x3af26d=this['editor'],_0x19129d=d['availableRevisionActions'],_0x82c2f6=_0x3af26d['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x82c2f6['length'])return _0x82c2f6['map'](_0x446622=>{const _0x9b9e9c='string'==typeof _0x446622?Object['assign']({},_0x19129d[_0x446622]):_0x446622;return _0x9b9e9c['action']=_0x9b9e9c['action']['bind'](this,_0x3af26d),_0x9b9e9c['isVisible']&&(_0x9b9e9c['isVisible']=_0x9b9e9c['isVisible']['bind'](this,_0x3af26d)),_0x9b9e9c;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x55a6e5},_0x5523e0)=>{const _0x3cf426=_0x55a6e5['get'](m),_0x286c00=_0x3cf426['repository'];let _0x5ea847=_0x3cf426['diff']['newRevisionId'],_0x334f5a=_0x5523e0['id'];_0x286c00['getIndex'](_0x5ea847)>_0x286c00['getIndex'](_0x334f5a)&&([_0x5ea847,_0x334f5a]=[_0x334f5a,_0x5ea847]),_0x3cf426['compare'](_0x5ea847,_0x334f5a);},'isVisible':({plugins:_0x1c8b78},_0x369c4b)=>{const _0x5eb345=_0x1c8b78['get'](m);return!(_0x5eb345['repository']['getRevisionsInDiff'](_0x5eb345['diff'])['length']>0x2)&&!_0x369c4b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x46770d,{id:_0x4a6e8c})=>{_0x46770d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4a6e8c);},'isVisible':({plugins:_0xc5edb6},_0x396f6b)=>!!_0xc5edb6['get'](m)['repository']['getLaterVisibleRevision'](_0x396f6b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5af47b},{id:_0x42bff9,revisionNameView:_0x2c3b68})=>{const _0x4cf80a=_0x5af47b['get'](m),_0x52ffd8=_0x4cf80a['repository']['getEarlierVisibleRevision'](_0x42bff9);_0x4cf80a['compare'](_0x42bff9,_0x52ffd8),_0x2c3b68['focus'](),_0x2c3b68['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5729ad,_0x210df4){super(_0x5729ad),this['_view']=_0x210df4,this['_toolbarConfig']=et(_0x5729ad['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x5d2c03){const _0x3f57f9=this['editor'],_0x2c5de8=this['view'],_0x4bd45e=_0x3f57f9['editing']['view'],_0x34bac9=_0x2c5de8['editable'],_0x2149e6=_0x4bd45e['document']['getRoot']();_0x34bac9['name']=_0x2149e6['rootName'],_0x2c5de8['render']();const _0x2b4356=_0x34bac9['element'];this['setEditableElement'](_0x34bac9['name'],_0x2b4356),_0x2c5de8['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4bd45e['attachDomRoot'](_0x2b4356),this['_elementReplacer']['replace'](_0x5d2c03,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x10b317=this['view'],_0x526d5=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x526d5['detachDomRoot'](_0x10b317['editable']['name']),_0x10b317['destroy']();}['_initToolbar'](){const _0x2f5295=this['view'];_0x2f5295['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2f5295['stickyPanel']['limiterElement']=_0x2f5295['element'],_0x2f5295['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1768b6})=>_0x1768b6),_0x2f5295['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2f5295['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x55c6c2,_0x22b2be,_0xbc12ac={}){super(_0x55c6c2),this['stickyPanel']=new ht(_0x55c6c2),this['toolbar']=new dt(_0x55c6c2,{'shouldGroupWhenFull':_0xbc12ac['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x55c6c2,_0x22b2be);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ _0x2f40ad(_0x2f28e2){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4c6aa1,_0x1acf3f){super(_0x1acf3f),this['sourceElement']=_0x4c6aa1,this['model']['document']['createRoot']();const _0x1b3e27=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x1b3e27);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x7bcb6e,_0x300636){const _0x2b13b4=new this(_0x7bcb6e,_0x300636);return await _0x2b13b4['initPlugins'](),await _0x2b13b4['ui']['init'](_0x7bcb6e),await _0x2b13b4['data']['init'](_0x2b13b4['config']['get']('initialData')||''),_0x2b13b4['fire']('ready'),_0x2b13b4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x563dd0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28d959){function _0x591b57(_0x609388){return _0x609388['map'](_0x4ba1f9=>String['fromCharCode'](_0x4ba1f9))['join']('');}super(_0x28d959),this['result']='end',_0x28d959[_0x591b57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x591b57([0x76,0x69,0x65,0x77])][_0x591b57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x591b57([0x61,0x75,0x74,0x6f]),_0x28d959[_0x591b57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x591b57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x591b57([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x591b57([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x591b57([0x6f,0x6b])});}}class k extends _0x563dd0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x3b5724){if(super(_0x3b5724),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a1fdd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x43d851=>this['_showRevisionViewer']({..._0x43d851,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3ce846=>this['_closeRevisionViewer'](_0x3ce846)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x47eff7=>this['_restoreRevision'](_0x47eff7)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x32c4d6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x32c4d6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xe3ec4c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xe3ec4c);}['getRevision'](_0x1c2497){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1c2497);}['getRevisions'](_0x1e30d0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1e30d0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x20ebcc=this['editor'],_0x4893fd=_0x3fbbbc(_0x20ebcc,p),_0x921618=_0x20ebcc['plugins']['get']('RevisionTracker'),_0x2186bc=_0x20ebcc['plugins']['get']('Users')['users'];return _0x4893fd['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4893fd['lazyRoots'],(_0x4893fd['plugins']['push'](yt,m,R,class extends _0x563dd0{static get['requires'](){return[m,'Users'];}['init'](){const _0x564ecb=this['editor']['plugins']['get']('Users');for(const _0x53c4be of _0x2186bc)_0x53c4be['isAnonymous']||_0x564ecb['getUser'](_0x53c4be['id'])||_0x564ecb['addUser'](_0x53c4be);const _0x8ded60=_0x921618['repository']['getRevisions']();let _0x28b878=null;const _0x1f465c=this['editor']['plugins']['get']('RevisionViewer');_0x1f465c['adapter']=_0x921618['adapter'],_0x1f465c['bind']('isEnabled')['to'](_0x921618),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x20ebcc,'isReadOnly',_0x118c24=>!_0x118c24);for(const _0x51f525 of _0x8ded60){const _0x593812=null===_0x51f525['creator'];if(_0x593812&&_0x51f525['toVersion']===_0x51f525['fromVersion'])continue;const _0x25e96b=_0x51f525['toJSON']();_0x1f465c['addRevisionData'](_0x25e96b,(_0xae2628,_0x55b7a2,_0x125011)=>{if(_0x593812){if(_0x28b878)_0x28b878['_update'](_0xae2628,_0x55b7a2);else{if(!_0x55b7a2){const _0xd9b034=_0x125011['toJSON']();_0xd9b034['id']=_0x452db2(),_0x921618['saveRevision'](_0xd9b034,_0x125011['toVersion'])['then'](_0x42d3e8=>{_0x28b878=_0x42d3e8;});}}}else _0x51f525['_update'](_0xae2628,_0x55b7a2);});}}},d),_0x4893fd);}['_enhanceShowRevisionViewerCallback'](){const _0x2d8b10=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x25e0d3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4de2bc=this['editor']['plugins']['get']('Autosave');await _0x4de2bc['save']();}else await _0x25e0d3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2f90a4=this['editor']['plugins']['get']('Dialog');_0x2f90a4['isOpen']&&_0x2f90a4['hide']();}const _0x2e7298=this['_getRevisionViewerEditorConfig']();return _0x2d8b10(_0x2e7298)['then'](_0x3f7f26=>{return(this['_viewerEditor']=_0x3f7f26,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3f7f26);})['catch'](_0x55f365=>(console['error'](_0x55f365),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x44bd7c=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x44bd7c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x31c664=this['editor']['plugins']['get']('Annotations');_0x31c664['refreshVisibility'](),_0x31c664['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1063de){const _0x2b7fd2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4f33f4=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x567dc5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x567dc5,_0x1063de)['then'](_0x965a06=>(_0x4f33f4['style']['display']='block',_0x2b7fd2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x965a06));}['_closeRevisionViewer'](_0x4eaefc){const _0x2c46f8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2c46f8['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4eaefc['destroy']();}async['_restoreRevision'](_0x20d32e){const _0x48f9b0=this['editor'],_0x2eed42=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x16fdec=_0x48f9b0['plugins']['get']('RevisionTracker'),_0x30d1da=_0x48f9b0['plugins']['get']('RevisionHistoryUtils'),_0x1c6f0d=_0x2eed42['repository']['getRevision'](_0x20d32e);let _0x25b9bf,_0x4fad1a,_0x3ff6c1;try{await _0x30d1da['loadRevisionData'](_0x1c6f0d,this['adapter']),_0x25b9bf=_0x30d1da['getRevisionDocumentData'](_0x1c6f0d),_0x4fad1a=_0x30d1da['getRevisionRootsAttributes'](_0x1c6f0d);}catch(_0x50a16d){return void console['error'](_0x50a16d);}_0x48f9b0['model']['change'](_0x2b14aa=>{for(const _0x19dcbb of Array['from'](_0x48f9b0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2b14aa['removeMarker'](_0x19dcbb);}),_0x2eed42['isReady']=!0x1,_0x48f9b0['model']['enqueueChange'](_0xbd8f28=>{_0xbd8f28['setSelection'](null),_0xbd8f28['removeSelectionAttribute'](_0x48f9b0['model']['document']['selection']['getAttributeKeys']());const _0x4180d3=Object['keys'](_0x25b9bf);for(const _0x26ff41 of _0x48f9b0['model']['document']['roots'])'$graveyard'!=_0x26ff41['rootName']&&_0x26ff41['isAttached']()&&!_0x4180d3['includes'](_0x26ff41['rootName'])&&_0xbd8f28['detachRoot'](_0x26ff41);for(const _0x1258f0 of _0x4180d3){let _0x3cd6dc=_0x48f9b0['model']['document']['getRoot'](_0x1258f0);_0x3cd6dc&&_0x3cd6dc['isAttached']()||(_0x3cd6dc=_0xbd8f28['addRoot'](_0x1258f0));const _0xec4703=_0x4fad1a[_0x1258f0],_0x29ed33=Object['keys'](_0xec4703),_0x2ff8c4=_0x25b9bf[_0x1258f0];for(const _0x406839 of _0x3cd6dc['getAttributeKeys']())_0x29ed33['includes'](_0x406839)||_0xbd8f28['removeAttribute'](_0x406839,_0x3cd6dc);for(const _0x3bbde1 of _0x29ed33)_0xbd8f28['setAttribute'](_0x3bbde1,_0x4fad1a[_0x1258f0][_0x3bbde1],_0x3cd6dc);_0xbd8f28['remove'](_0xbd8f28['createRangeIn'](_0x3cd6dc)),_0xbd8f28['insert'](_0x48f9b0['data']['parse'](_0x2ff8c4,_0x3cd6dc),_0x3cd6dc,0x0);}});const _0x1348d7=g(_0x48f9b0['locale'],'Restored');if(_0x1c6f0d['name'])_0x3ff6c1=-0x1==_0x1c6f0d['name']['indexOf'](_0x1348d7)?_0x1348d7+':\x20'+_0x1c6f0d['name']:_0x1c6f0d['name'];else _0x3ff6c1=_0x1348d7+':\x20'+(_0x1c6f0d['createdAt']['toLocaleDateString'](_0x48f9b0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1c6f0d['createdAt']['toLocaleTimeString'](_0x48f9b0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x16fdec['saveRevision']({'name':_0x3ff6c1}),_0x2eed42['isReady']=!0x0,_0x48f9b0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};