@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250416.0 → 0.0.0-nightly-20250417.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 _0x2afae,uid as _0x4511b5,Collection as _0x10baa9,logWarning as _0xfa97f2,FocusTracker as _0x407f07,KeystrokeHandler as _0x2d0756,scrollViewportToShowTarget as _0x585041,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0xe3f082}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4af798,set as _0x1eab89,unset as _0x3afe9a,isEqual as _0xbd4972}from'es-toolkit/compat';import{Plugin as _0x1efec2,PendingActions as _0x8a3f1d,Command as _0x28e3bb,ElementApiMixin as _0x361ff7,Editor as _0x135947}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x31e86e,getMarkerDomElement as _0x490cea,ConfirmMixin as ti,sanitizeEditorConfig as _0xadfaa}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x57b74c,ViewAttributeElement as _0x432264,ViewEmptyElement as _0x16834e,ViewRawElement as _0x3ecaa8,ViewUIElement as _0x259043,ViewDocumentFragment as _0x299780,ViewText as _0x586c9c,ViewElement as _0x1b162d,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 _0x4d6637,IconChevronUp as _0x73b35c,IconChevronDown as _0x137441,IconUndo as _0x5af1be,IconUser as _0x5675dd,IconThreeVerticalDots as _0x15ee78}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x353fc0,submitHandler as _0x3f9d14,LabeledFieldView as _0x22d328,createLabeledInputText as _0xbcae3c,createDropdown as _0x555aeb,ListView as _0x111916,ListItemView as _0x183387,ButtonView as te,MenuBarMenuView as _0x33b627,MenuBarMenuListView as _0x1be08d,MenuBarMenuListItemView as _0x113723,MenuBarMenuListItemButtonView as _0xa5e47f,ContextualBalloon as _0x1c3430,ToolbarSeparatorView as _0x17336f,IconView as _0x1f4fe8,addListToDropdown as _0x3493b4,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 _0x232900}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x2afae(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x149c65){super(),this['id']=_0x149c65['id']||_0x4511b5(),this['creator']=_0x149c65['creator']||null,this['authors']=_0x149c65['authors']||[],this['diffData']=_0x149c65['diffData']||null,this['toVersion']=_0x149c65['toVersion']||0x0,this['fromVersion']=_0x149c65['fromVersion']||0x0,this['set']('name',_0x149c65['name']||''),this['set']('createdAt',_0x149c65['createdAt']||new Date()),this['set']('attributes',_0x149c65['attributes']||{});}['setName'](_0x152886){this['_update']({'name':_0x152886});}['setAttribute'](_0x2d5336,_0x481b0f){const _0x2dbdf0=_0x4af798(this['attributes']);_0x1eab89(_0x2dbdf0,_0x2d5336,_0x481b0f),this['_update']({'attributes':_0x2dbdf0});}['removeAttribute'](_0x63baa6){const _0x5913bc=_0x4af798(this['attributes']);_0x3afe9a(_0x5913bc,_0x63baa6),this['_update']({'attributes':_0x5913bc});}['_update'](_0x1f22f7,_0x4a8fba=!0x1){let _0x4f1cba=!0x1;const _0x37daef={'id':this['id']},_0x53e626=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x494ec5 of _0x53e626){const _0x2b19d0=_0x1f22f7[_0x494ec5];void 0x0!==_0x2b19d0&&_0x2b19d0!==this[_0x494ec5]&&(this[_0x494ec5]=_0x2b19d0,_0x37daef[_0x494ec5]=_0x2b19d0,_0x4f1cba=!0x0);}_0x4f1cba&&(_0x37daef['authors']&&(_0x37daef['authorsIds']=_0x37daef['authors']['map'](_0x3f2976=>_0x3f2976['id']),delete _0x37daef['authors']),this['fire']('_update',_0x37daef,_0x4a8fba));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x33fc82=>_0x33fc82['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x1efec2{['_revisions'];static get['requires'](){return[_0x31e86e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2f1811){super(_0x2f1811),this['_revisions']=new _0x10baa9();}['afterInit'](){!async function(_0xdb2046){const _0x583e96=_0x2891ff([0x5a,0x73,0x74,0x79,0x44,0x4f,0x57,0x63,0x6d,0x67,0x76,0x46,0x56,0x6c,0x62,0x53,0x55,0x58,0x69,0x4e,0x64,0x30,0x35,0x6e,0x45,0x33,0x41,0x50,0x51,0x68,0x59,0x4a,0x39,0x36,0x6b,0x78,0x32,0x34,0x4c,0x77,0x52,0x37,0x49,0x6a,0x75,0x31,0x38,0x54,0x65,0x43,0x4b,0x4d,0x61,0x47,0x71,0x7a,0x72,0x70,0x66,0x42,0x48,0x6f]),_0x26d7ce=0xeb829,_0x5e7fe6=0x1f701219,_0x17255c=0x1f777729^_0x5e7fe6,_0x1bd1f7=window[_0x2891ff([0x44,0x61,0x74,0x65])][_0x2891ff([0x6e,0x6f,0x77])](),_0x5b8bc2=_0xdb2046[_0x2891ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59650a=new window[(_0x2891ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5695e9=>{_0x5b8bc2[_0x2891ff([0x6f,0x6e,0x63,0x65])](_0x2891ff([0x72,0x65,0x61,0x64,0x79]),_0x5695e9);}),_0x15379a={[_0x2891ff([0x6b,0x74,0x79])]:_0x2891ff([0x45,0x43]),[_0x2891ff([0x75,0x73,0x65])]:_0x2891ff([0x73,0x69,0x67]),[_0x2891ff([0x63,0x72,0x76])]:_0x2891ff([0x50,0x2d,0x32,0x35,0x36]),[_0x2891ff([0x78])]:_0x2891ff([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]),[_0x2891ff([0x79])]:_0x2891ff([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]),[_0x2891ff([0x61,0x6c,0x67])]:_0x2891ff([0x45,0x53,0x32,0x35,0x36])},_0x32cf39=_0x5b8bc2[_0x2891ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2891ff([0x67,0x65,0x74])](_0x2891ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a5dfe(){let _0x40981e,_0x5612c7=null,_0x5430d1=null;try{if(_0x32cf39==_0x2891ff([0x47,0x50,0x4c]))return _0x2891ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40981e=_0x29f975(),!_0x40981e)return _0x2891ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40981e[_0x2891ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5430d1=_0x6e300a(_0x40981e[_0x2891ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40981e[_0x2891ff([0x6a,0x74,0x69])])),await _0x551f26()?_0x5d0d67()?_0x36b99b()?_0x2891ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c471d()?(_0x40981e[_0x2891ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2891ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5612c7=_0x1dec70(_0x2891ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40981e[_0x2891ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2891ff([0x74,0x72,0x69,0x61,0x6c])&&(_0x5612c7=_0x1dec70(_0x2891ff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x332f11()):_0x2891ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2891ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2891ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x52f7c9){return _0x2891ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36b99b(){const _0x8d0e59=[_0x2891ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2891ff([0x74,0x72,0x69,0x61,0x6c])][_0x2891ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40981e[_0x2891ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bd1f7/0x3e8:0xe10*_0x17255c;return _0x40981e[_0x2891ff([0x65,0x78,0x70])]<_0x8d0e59;}function _0x5d0d67(){const _0x47d252=_0x40981e[_0x2891ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x47d252)return!0x1;if(_0x47d252[_0x2891ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2891ff([0x2a])))return!0x0;if(_0x47d252[_0x2891ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2891ff([0x52,0x48])))return!0x0;if(_0x47d252[_0x2891ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2891ff([0x52,0x52,0x48]))){if(_0xc9dd7d())return!0x0;if(_0x58fca8()||_0x4f36bb())return!0x0;}return!0x1;}function _0x5c471d(){const _0x433750=_0x40981e[_0x2891ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x433750||0x0==_0x433750[_0x2891ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a038c}=new URL(window[_0x2891ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x433750[_0x2891ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a038c))return!0x0;const _0x21218e=_0x3a038c[_0x2891ff([0x73,0x70,0x6c,0x69,0x74])](_0x2891ff([0x2e]));return _0x433750[_0x2891ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44bed1=>_0x44bed1[_0x2891ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2891ff([0x2a])))[_0x2891ff([0x6d,0x61,0x70])](_0x4f9ed0=>_0x4f9ed0[_0x2891ff([0x73,0x70,0x6c,0x69,0x74])](_0x2891ff([0x2e])))[_0x2891ff([0x73,0x6f,0x6d,0x65])](_0x4857aa=>_0x21218e[_0x2891ff([0x65,0x76,0x65,0x72,0x79])]((_0x30e343,_0x1da7ea)=>_0x4857aa[_0x1da7ea]===_0x30e343||_0x4857aa[_0x1da7ea]===_0x2891ff([0x2a])));}function _0x332f11(){return _0x5612c7&&_0x5430d1?new window[(_0x2891ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46757c,_0x48fb5d)=>{_0x5612c7[_0x2891ff([0x74,0x68,0x65,0x6e])](_0x46757c,_0x48fb5d),_0x5430d1[_0x2891ff([0x74,0x68,0x65,0x6e])](_0x317da7=>{_0x317da7!=_0x2891ff([0x56,0x61,0x6c,0x69,0x64])&&_0x46757c(_0x317da7);},_0x48fb5d);}):_0x5612c7||_0x5430d1||_0x2891ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6e300a(_0x7a5e8e,_0x32af9d){return new window[(_0x2891ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b91f1=>{if(_0x186800())return _0x3b91f1(_0x2891ff([0x56,0x61,0x6c,0x69,0x64]));_0xbb9cd4(),_0x5b8bc2[_0x2891ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2891ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a11d2=!0x1;const _0x444f51=_0x4511b5();function _0x45388b(_0x666dcb){return!!_0x666dcb&&(typeof _0x666dcb===_0x2891ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x666dcb===_0x2891ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x666dcb[_0x2891ff([0x74,0x68,0x65,0x6e])]===_0x2891ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x666dcb[_0x2891ff([0x63,0x61,0x74,0x63,0x68])]===_0x2891ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x356208(_0x3c1a1a){_0x4a3ca1(_0x3c1a1a)[_0x2891ff([0x74,0x68,0x65,0x6e])](_0x34d534=>{if(!_0x34d534||_0x34d534[_0x2891ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2891ff([0x6f,0x6b]))return _0x2891ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5592f0(_0xc356dc(_0x444f51+_0x32af9d))!=_0x34d534[_0x2891ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2891ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2891ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x2891ff([0x74,0x68,0x65,0x6e])](_0x19f763=>(_0x5d984c(),_0x19f763),()=>{const _0x47d83d=_0x2b6b1b();return null==_0x47d83d?(_0x5d984c(),_0x2891ff([0x56,0x61,0x6c,0x69,0x64])):_0x2891ff(_0x1bd1f7-_0x47d83d>(0x3b7c9619^_0x5e7fe6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2891ff([0x74,0x68,0x65,0x6e])](_0x3b91f1)[_0x2891ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b91f1(_0x2891ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f6f12=0x1f46fc99^_0x5e7fe6;function _0x5d984c(){const _0x592207=_0x2891ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x5592f0(_0xc356dc(_0x7a5e8e)),_0x48dbf1=_0x37771c(_0x5592f0(window[_0x2891ff([0x4d,0x61,0x74,0x68])][_0x2891ff([0x63,0x65,0x69,0x6c])](_0x1bd1f7/_0x4f6f12)));window[_0x2891ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2891ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x592207,_0x48dbf1);}function _0x2b6b1b(){const _0x2ff0f3=_0x2891ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x5592f0(_0xc356dc(_0x7a5e8e)),_0x47a676=window[_0x2891ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2891ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ff0f3);return _0x47a676?window[_0x2891ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37771c(_0x47a676),0x10)*_0x4f6f12:null;}function _0x4a3ca1(_0x748538){return new window[(_0x2891ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e5288,_0x2c28a8)=>{_0x748538[_0x2891ff([0x74,0x68,0x65,0x6e])](_0x1e5288,_0x2c28a8),window[_0x2891ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c28a8,0x1f71c6d9^_0x5e7fe6);});}}_0x5b8bc2[_0x2891ff([0x6f,0x6e])](_0x2891ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2aab1c,_0xda4fb4)=>{if(_0xda4fb4[0x0]!=_0x7a5e8e)return _0x3b91f1(_0x2891ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xda4fb4[0x1]={..._0xda4fb4[0x1],[_0x2891ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x444f51};},{[_0x2891ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2891ff([0x68,0x69,0x67,0x68])}),_0x5b8bc2[_0x2891ff([0x6f,0x6e])](_0x2891ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x474f4f=>{_0x45388b(_0x474f4f[_0x2891ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a11d2=!0x0,_0x356208(_0x474f4f[_0x2891ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2891ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2891ff([0x6c,0x6f,0x77])}),_0x59650a[_0x2891ff([0x74,0x68,0x65,0x6e])](()=>{_0x5a11d2||_0x3b91f1(_0x2891ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x186800(){return _0x5b8bc2[_0x2891ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2891ff([0x76,0x69,0x65,0x77])][_0x2891ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2891ff([0x61,0x75,0x74,0x6f]);}function _0xbb9cd4(){_0x5b8bc2[_0x2891ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2891ff([0x76,0x69,0x65,0x77])][_0x2891ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2891ff([0x61,0x75,0x74,0x6f]);}}function _0x1dec70(_0x163c64){const _0x36d948=[new window[(_0x2891ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c3748=>setTimeout(_0x3c3748,0x1f792cd5^_0x5e7fe6)),_0x59650a[_0x2891ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2891ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b69b3=>{const _0x328b51=0x1f70121e^_0x5e7fe6,_0x29a800=_0xdb2046[_0x2891ff([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4d40b9(){_0x29a800[_0x2891ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x328b51&&_0x5b69b3();}_0x4d40b9(),_0x29a800[_0x2891ff([0x6f,0x6e])](_0x2891ff([0x61,0x64,0x64]),_0x4d40b9);})),new window[(_0x2891ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cb4d9=>{function _0x57f1e9(){for(const _0x35751e in window)if(window[_0x2891ff([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2891ff([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x35751e))&&window[_0x35751e]==_0x26d7ce)return _0x1cb4d9();_0x5b8bc2[_0x2891ff([0x73,0x74,0x61,0x74,0x65])]!=_0x2891ff([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2891ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57f1e9,0x1f700191^_0x5e7fe6);}_0x7079aa(_0x2891ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x57f1e9();})];return window[_0x2891ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2891ff([0x72,0x61,0x63,0x65])](_0x36d948)[_0x2891ff([0x74,0x68,0x65,0x6e])](()=>_0x163c64);}async function _0x20a1c3(){if(await _0x59650a,_0x7079aa(_0x2891ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x25f0bd=_0xdb2046[_0x2891ff([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x35f613=_0xdb2046[_0x2891ff([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])](_0x25f0bd[_0x2891ff([0x69,0x64])]),_0x565fcd=_0x331066(_0x2891ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x565fcd[_0x2891ff([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x25f0bd['id'],_0x35f613?_0x35f613['id']:null,!0x0),_0x565fcd[_0x2891ff([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2891ff([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x565fcd[_0x2891ff([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x565fcd[_0x2891ff([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3095e5,void(_0x565fcd[_0x2891ff([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3095e5);}if(_0x7079aa(_0x2891ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x26541b=_0x331066(_0x2891ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x26541b[_0x2891ff([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2891ff([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x26541b[_0x2891ff([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x26541b[_0x2891ff([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3095e5,_0x26541b[_0x2891ff([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3095e5;}_0x5b8bc2[_0x2891ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x2891ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3095e5,_0x5b8bc2[_0x2891ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x2891ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3095e5,_0x5b8bc2[_0x2891ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2891ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc9dd7d(){return _0x7079aa(_0x2891ff([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x331066(_0x2891ff([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2891ff([0x73,0x74,0x61,0x74,0x65])]==_0x2891ff([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x58fca8(){return _0x7079aa(_0x2891ff([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 _0x4f36bb(){return _0x7079aa(_0x2891ff([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3e60fe(_0xb139c1){const _0x1290fb=_0x533463();_0x5b8bc2[_0x1290fb]=_0x2891ff([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])+_0xb139c1,_0xb139c1[_0x2891ff([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2891ff([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x533463()]=_0x26d7ce),_0xb139c1!=_0x2891ff([0x56,0x61,0x6c,0x69,0x64])&&_0x20a1c3();}function _0x533463(){const _0x4b4e49=window[_0x2891ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2891ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2891ff([0x6e,0x6f,0x77])]())[_0x2891ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2891ff([0x2e]),'');let _0x2e5c19=_0x2891ff([0x5a]);for(let _0x12e182=0x0;_0x12e182<_0x4b4e49[_0x2891ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12e182+=0x2){let _0x4d5041=window[_0x2891ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b4e49[_0x2891ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12e182,_0x12e182+0x2));_0x4d5041>=_0x583e96[_0x2891ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d5041-=_0x583e96[_0x2891ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e5c19+=_0x583e96[_0x4d5041];}return _0x2e5c19;}function _0x29f975(){const _0x78c943=_0x32cf39[_0x2891ff([0x73,0x70,0x6c,0x69,0x74])](_0x2891ff([0x2e]));if(0x3!=_0x78c943[_0x2891ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5079ab(_0x78c943[0x1]);function _0x5079ab(_0x3b441a){const _0x232ebe=_0x5ba5f6(_0x3b441a);return _0x232ebe&&_0x918616()?_0x232ebe:null;function _0x918616(){const _0x1685d9=_0x232ebe[_0x2891ff([0x6a,0x74,0x69])],_0x3f37b7=window[_0x2891ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1685d9[_0x2891ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1685d9[_0x2891ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42e9f6={..._0x232ebe,[_0x2891ff([0x6a,0x74,0x69])]:_0x1685d9[_0x2891ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1685d9[_0x2891ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42e9f6[_0x2891ff([0x76,0x63])],_0xc356dc(_0x42e9f6)==_0x3f37b7;}}}async function _0x551f26(){let _0x3ca4be=!0x0;try{const _0x24e0d7=_0x32cf39[_0x2891ff([0x73,0x70,0x6c,0x69,0x74])](_0x2891ff([0x2e])),[_0x40ba5a,_0x524ab0,_0x3c97c7]=_0x24e0d7;return _0x50f04b(_0x40ba5a),await _0x281b21(_0x40ba5a,_0x524ab0,_0x3c97c7),_0x3ca4be;}catch(_0x3f4954){return!0x1;}function _0x50f04b(_0x13f88c){const _0x186c8e=_0x5ba5f6(_0x13f88c);_0x186c8e&&_0x186c8e[_0x2891ff([0x61,0x6c,0x67])]==_0x2891ff([0x45,0x53,0x32,0x35,0x36])||(_0x3ca4be=!0x1);}async function _0x281b21(_0x24cd49,_0x568c5d,_0x1baed7){const _0x4d0731=window[_0x2891ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2891ff([0x66,0x72,0x6f,0x6d])](_0x26dd27(_0x1baed7),_0x11b981=>_0x11b981[_0x2891ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5263a3=new window[(_0x2891ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2891ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24cd49+_0x2891ff([0x2e])+_0x568c5d),_0x22cb6e=window[_0x2891ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2891ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22cb6e)return;const _0x154d8c=await _0x22cb6e[_0x2891ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2891ff([0x6a,0x77,0x6b]),_0x15379a,{[_0x2891ff([0x6e,0x61,0x6d,0x65])]:_0x2891ff([0x45,0x43,0x44,0x53,0x41]),[_0x2891ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2891ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2891ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22cb6e[_0x2891ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2891ff([0x6e,0x61,0x6d,0x65])]:_0x2891ff([0x45,0x43,0x44,0x53,0x41]),[_0x2891ff([0x68,0x61,0x73,0x68])]:{[_0x2891ff([0x6e,0x61,0x6d,0x65])]:_0x2891ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x154d8c,_0x4d0731,_0x5263a3)||(_0x3ca4be=!0x1);}}function _0x5ba5f6(_0x4638f5){return _0x4638f5[_0x2891ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2891ff([0x65,0x79]))?JSON[_0x2891ff([0x70,0x61,0x72,0x73,0x65])](_0x26dd27(_0x4638f5)):null;}function _0x26dd27(_0x3d42a2){return window[_0x2891ff([0x61,0x74,0x6f,0x62])](_0x3d42a2[_0x2891ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2891ff([0x2b]))[_0x2891ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2891ff([0x2f])));}function _0xc356dc(_0x148e3f){let _0x239686=0x1505;function _0x441311(_0x4edada){for(let _0x2ecad8=0x0;_0x2ecad8<_0x4edada[_0x2891ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ecad8++){const _0xe5dd7f=_0x4edada[_0x2891ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2ecad8);_0x239686=(_0x239686<<0x5)+_0x239686+_0xe5dd7f,_0x239686&=_0x239686;}}function _0x286e58(_0x37253f){Array[_0x2891ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37253f)?_0x37253f[_0x2891ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x286e58):_0x37253f&&typeof _0x37253f==_0x2891ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2891ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37253f)[_0x2891ff([0x73,0x6f,0x72,0x74])]()[_0x2891ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a2dd2,_0x174770])=>{_0x441311(_0x3a2dd2),_0x286e58(_0x174770);}):_0x441311(window[_0x2891ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37253f));}return _0x286e58(_0x148e3f),_0x239686>>>0x0;}function _0x5592f0(_0x5e00ac){return _0x5e00ac[_0x2891ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2891ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2891ff([0x30]));}function _0x37771c(_0x435c91){return _0x435c91[_0x2891ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2891ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2891ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x7079aa(_0xa19d8f){return _0x5b8bc2[_0x2891ff([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2891ff([0x68,0x61,0x73])](_0xa19d8f);}function _0x331066(_0x41f91b){return _0x5b8bc2[_0x2891ff([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2891ff([0x67,0x65,0x74])](_0x41f91b);}function _0x3095e5(){}function _0x2891ff(_0xdc06bc){return _0xdc06bc['map'](_0x9aff24=>String['fromCharCode'](_0x9aff24))['join']('');}_0x3e60fe(await _0x4a5dfe());}(this);}['createRevision'](_0x1c8494){const _0x4414f5=this['editor']['plugins']['get']('Users');return new h({'id':_0x1c8494['id'],'name':_0x1c8494['name'],'creator':_0x1c8494['creatorId']?_0x4414f5['getUser'](_0x1c8494['creatorId']):null,'diffData':_0x1c8494['diffData']||_0x1c8494['data'],'authors':_0x1c8494['authorsIds']['map'](_0x2cdd86=>_0x4414f5['getUser'](_0x2cdd86)),'createdAt':new Date(_0x1c8494['createdAt']),'attributes':_0x1c8494['attributes'],'fromVersion':_0x1c8494['fromVersion'],'toVersion':_0x1c8494['toVersion']});}['addRevision'](_0x59d25a,_0x39c2d6=0x0){this['_revisions']['add'](_0x59d25a,_0x39c2d6);}['getRevision'](_0xc5b5cf){return this['_revisions']['get'](_0xc5b5cf);}['getRevisions'](_0xa6da85={'toJSON':!0x1}){const _0x29f6c9=Array['from'](this['_revisions']);return _0x29f6c9['reverse'](),_0xa6da85['toJSON']?_0x29f6c9['map'](_0x4d52ff=>_0x4d52ff['toJSON']()):_0x29f6c9;}['getIndex'](_0x2179a2){return this['_revisions']['getIndex'](_0x2179a2);}['getEarlierVisibleRevision'](_0xb919a1){const [,_0x2acf4a]=this['getRevisionsIterator'](_0xb919a1,{'direction':'earlier'});return _0x2acf4a;}['getLaterVisibleRevision'](_0x5d21cc){const [,_0x1fb608]=this['getRevisionsIterator'](_0x5d21cc,{'direction':'later'});return _0x1fb608;}['getRevisionsInDiff'](_0x587916){const _0x13a0d5=[];for(const _0x22e98e of this['getRevisionsIterator'](_0x587916['newRevisionId']))if(_0x13a0d5['push'](_0x22e98e),_0x22e98e['id']===_0x587916['oldRevisionId'])break;return _0x13a0d5;}*['getRevisionsIterator'](_0x4f30dd,{direction:_0x3537d7='earlier',filter:_0x4b1987=()=>!0x0}={}){const _0x112dba='earlier'===_0x3537d7?0x1:-0x1;let _0x2d4864=this['_revisions']['get'](_0x4f30dd),_0x17219b=this['getIndex'](_0x2d4864);for(yield _0x2d4864;_0x2d4864;){if(_0x17219b+=_0x112dba,_0x2d4864=this['getRevision'](_0x17219b),!_0x2d4864)return;_0x4b1987(_0x2d4864)&&(yield _0x2d4864);}}}class V extends _0x1efec2{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x57b74c,'c'],[_0x432264,'a'],[_0x16834e,'e'],[_0x3ecaa8,'r'],[_0x259043,'u']]);['_typeCharToViewClass']=new Map([['c',_0x57b74c],['a',_0x432264],['e',_0x16834e],['r',_0x3ecaa8],['u',_0x259043]]);async['loadRevisionData'](_0x2c6f30,_0x27ebc4){if(_0x2c6f30['diffData']||!_0x27ebc4)return;const _0x157374=this['editor']['config']['get']('collaboration.channelId'),_0x2cdf28=await _0x27ebc4['getRevision']({'channelId':_0x157374,'revisionId':_0x2c6f30['id']});_0x2c6f30['diffData']=_0x2cdf28['diffData'];}['getRevisionDocumentData'](_0x57806f){const _0x32d222={};for(const _0x45e12e in _0x57806f['diffData']){if(_0x57806f['diffData'][_0x45e12e]['attachChange']&&!_0x57806f['diffData'][_0x45e12e]['attachChange']['isAttached'])continue;const _0x3373e5=this['_removeRevisionMarkers'](JSON['parse'](_0x57806f['diffData'][_0x45e12e]['insertions'])),_0x43f54b=this['editor']['editing']['view']['document'],_0x2a49f7=new _0x299780(_0x43f54b,_0x3373e5['map'](_0x9ea756=>this['_getViewFromDiffObj'](_0x9ea756,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x32d222[_0x45e12e]=this['editor']['data']['processor']['toData'](_0x2a49f7),this['editor']['data']['processor']['useFillerType']('default');}return _0x32d222;}['getRevisionRootsAttributes'](_0x23c8d4){const _0x334bb8={};for(const _0x3b5ea7 in _0x23c8d4['diffData'])_0x23c8d4['diffData'][_0x3b5ea7]['attachChange']&&!_0x23c8d4['diffData'][_0x3b5ea7]['attachChange']['isAttached']||(_0x334bb8[_0x3b5ea7]=_0x23c8d4['diffData'][_0x3b5ea7]['attributesAfter']||{});return _0x334bb8;}['_getTypeCharForViewElement'](_0x28779e){return this['_viewClassToTypeChar']['get'](_0x28779e['constructor']);}['_getViewFromDiffObj'](_0x1d1651,_0x238310){const _0x2b9863=this['editor']['editing']['view']['document'];if('string'==typeof _0x1d1651)return new _0x586c9c(_0x2b9863,_0x1d1651);{let _0x48573d,_0x3517ad;_0x3517ad='u'==_0x1d1651['type']||'r'==_0x1d1651['type']?[]:_0x1d1651['children']['map'](_0x33cce7=>this['_getViewFromDiffObj'](_0x33cce7,_0x238310));const _0x226911=this['_typeCharToViewClass']['get'](_0x1d1651['type'])||_0x1b162d,_0x298c0b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x48573d=new _0x226911(_0x2b9863,_0x1d1651['name'],_0x1d1651['attributes'],_0x3517ad),'u'==_0x1d1651['type']&&_0x1d1651['children'][0x0]){const _0x1696c6=_0x1d1651['children'][0x0];if(_0x48573d['render']=function(_0x753d79){const _0x1497e4=_0x753d79['createElement']('div');return _0x1497e4['innerHTML']=_0x1696c6,_0x1497e4['childNodes'][0x0];},_0x238310){const _0x3e8ba2=new _0x299780(_0x2b9863);_0x3e8ba2['_appendChild'](_0x48573d);const _0x1c8e80=Array['from'](_0x298c0b['viewChildrenToDom'](_0x3e8ba2,{'bind':!0x1})),_0xa6bdc9=_0x298c0b['domDocument']['createElement']('div');_0xa6bdc9['append'](..._0x1c8e80),_0x48573d=Array['from'](_0x298c0b['domChildrenToView'](_0xa6bdc9))[0x0];}}else{if('r'==_0x1d1651['type']&&_0x1d1651['children'][0x0]){const _0x2534fb=_0x1d1651['children'][0x0];if(_0x48573d['render']=function(_0x3cdc30){_0x3cdc30['innerHTML']=_0x2534fb;},_0x238310){const _0x46269e=new _0x299780(_0x2b9863);_0x46269e['_appendChild'](_0x48573d);const _0x5c14af=Array['from'](_0x298c0b['viewChildrenToDom'](_0x46269e,{'bind':!0x1})),_0x36912d=_0x298c0b['domDocument']['createElement']('div');_0x36912d['append'](..._0x5c14af);const _0x5cf1f0=Array['from'](_0x298c0b['domChildrenToView'](_0x36912d));_0x5cf1f0['length']>0x1?_0x48573d['_appendChild'](_0x5cf1f0):_0x48573d=_0x5cf1f0[0x0];}}}if(_0x1d1651['customProperties']){for(const [_0x169412,_0xfe8562]of _0x1d1651['customProperties'])_0x48573d['_setCustomProperty'](_0x169412,_0xfe8562);}const _0x1fc8ae=void 0x0===_0x1d1651['fillerOffset']?null:_0x1d1651['fillerOffset'];return null!==_0x1fc8ae&&(_0x48573d['getFillerOffset']=()=>_0x1fc8ae),_0x48573d;}}['_makeModelFromViewString'](_0x586065){const _0x4741b=JSON['parse'](_0x586065),_0x1603cd=this['editor']['editing']['view']['document'],_0x18bf23=new _0x299780(_0x1603cd,_0x4741b['map'](_0x4da6a8=>this['_getViewFromDiffObj'](_0x4da6a8,!0x0)));return this['editor']['data']['toModel'](_0x18bf23);}['_removeRevisionMarkers'](_0xf02b2d){return(_0xf02b2d=_0xf02b2d['filter'](_0x1c083f=>!_0x1c083f['name']||'revision-start'!==_0x1c083f['name']&&'revision-end'!==_0x1c083f['name']))['forEach'](_0x38322b=>{'string'!=typeof _0x38322b&&(_0x38322b['children']=this['_removeRevisionMarkers'](_0x38322b['children']),_0x38322b['attributes']=_0x38322b['attributes']['filter'](_0x4311b6=>!_0x4311b6[0x0]['startsWith']('data-revision-')));}),_0xf02b2d;}}function g(_0x3e4577,_0x15117b,_0x114969){const t=_0x3e4577['t'];switch(_0x15117b){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'},_0x114969);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x114969);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 _0x1efec2{['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[_0x31e86e,I,V,_0x8a3f1d];}constructor(_0x1b50a3){super(_0x1b50a3),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 _0xb04540=_0x4511b5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xb04540},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 _0x59d6ab=this['repository']['getRevision'](0x0),_0x451caa=_0x59d6ab&&null===_0x59d6ab['creator']?_0x59d6ab:null;if(this['_continueCurrentRevision']=!!_0x451caa&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x497d3b=this['_source']['getCurrentRevisionId'](),_0x2899f3=this['repository']['getRevision'](_0x497d3b);if(_0x2899f3)this['_startingVersion']=_0x2899f3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x39c907=this['_source']['history']['_operations']['find'](_0x21e960=>!_0x21e960['_isInit']),_0x311cda=_0x39c907?_0x39c907['baseVersion']:this['_source']['history']['version'];_0x59d6ab?(_0x59d6ab['toVersion']<_0x311cda&&_0x59d6ab['_update']({'toVersion':_0x311cda}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x451caa['id'],this['_startingVersion']=_0x451caa['fromVersion']):(this['_startingVersion']=_0x59d6ab['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x311cda,this['_continueCurrentRevision']=!0x1);}}else _0x451caa&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x451caa['toVersion'],this['editor']['model']['document']['history']['version']),_0x451caa['fromVersion']===_0x451caa['toVersion']?(0x0!==_0x451caa['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x451caa['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x451caa['id'],this['_startingVersion']=_0x451caa['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',_0x265c4f=>!_0x265c4f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x167214=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x51aea3;for(const _0x3f2413 in _0x167214){const _0x333a28=_0x3f2413,_0x1f26e1=_0x167214[_0x333a28];if('revisionHistoryLicenseKeyValid'==_0x1f26e1||'revisionHistoryLicenseKeyInvalid'==_0x1f26e1||'revisionHistoryLicenseKeyExpired'==_0x1f26e1||'revisionHistoryLicenseKeyDomainLimit'==_0x1f26e1||'revisionHistoryLicenseKeyNotAllowed'==_0x1f26e1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1f26e1||'revisionHistoryLicenseKeyTrialLimit'==_0x1f26e1||'revisionHistoryLicenseKeyUsageLimit'==_0x1f26e1){delete _0x167214[_0x333a28],_0x51aea3=_0x1f26e1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x51aea3&&_0x167214['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x51aea3&&_0x167214['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x51aea3&&_0x167214['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x51aea3&&_0x167214['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x51aea3&&_0x167214['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x51aea3&&_0x167214['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x51aea3&&_0x167214['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2fbb63=this['repository']['getRevision'](0x0),_0x2bf3e8=await this['getRevisionDocumentData'](_0x2fbb63),_0x5b3a31=await this['getRevisionRootsAttributes'](_0x2fbb63);this['_replaceEditorDataWithRevisionData'](_0x2bf3e8,_0x5b3a31);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xb15ef9){this['_source']=_0xb15ef9;}async['update'](){const _0x8ee5f6=await this['_source']['getLatestVersion']();if(_0x8ee5f6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x192a60=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x8ee5f6});_0x192a60['authors']=_0x192a60['authorsIds']['map'](_0x361974=>this['editor']['plugins']['get']('Users')['getUser'](_0x361974)),this['currentRevision']['_update'](_0x192a60);}}async['saveRevision'](_0x136cd7={},_0x13f684=null){const _0x44f0ec=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x13f684>this['currentRevision']['toVersion']&&(_0x13f684=null),null===_0x13f684&&(_0x13f684=await this['_source']['getLatestVersion']());const _0x9a6414=this['_getFromVersion'](_0x13f684),_0x4ba0f9=this['buildRevisionData']({'from':_0x9a6414,'to':_0x13f684});if(this['currentRevision']['toVersion']<_0x13f684){const _0x53feae=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x13f684,'to':_0x13f684});_0x53feae['authors']=[],_0x53feae['authorsIds']=[],_0x53feae['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x53feae,!0x0),delete _0x53feae['authors'],_0x44f0ec['push'](_0x53feae);}_0x136cd7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x136cd7['name']=_0x136cd7['name']||null,_0x136cd7['id']=_0x136cd7['id']||_0x4511b5(),_0x136cd7={..._0x136cd7,..._0x4ba0f9};const _0x2ec8ef=this['addRevisionData'](_0x136cd7);_0x44f0ec['push'](_0x136cd7);const _0x3c6179=this['repository']['getIndex'](_0x2ec8ef);if(0x0!==_0x3c6179){const _0x45eb54=this['repository']['getRevision'](_0x3c6179-0x1);if(_0x45eb54['fromVersion']!==_0x13f684){const _0x4a649b=this['_revisionDataBuilder']['getData'](_0x13f684,_0x45eb54['toVersion']),_0x101d6b={'id':_0x45eb54['id'],'diffData':_0x4a649b['diffData'],'authorsIds':_0x4a649b['authorsIds'],'authors':_0x4a649b['authorsIds']['map'](_0x41e92e=>this['editor']['plugins']['get']('Users')['getUser'](_0x41e92e)),'fromVersion':_0x13f684};_0x45eb54===this['currentRevision']&&(_0x101d6b['createdAt']=new Date(_0x136cd7['createdAt']['getTime']()+0xa)),_0x45eb54['_update'](_0x101d6b,!0x0),delete _0x101d6b['authors'],_0x44f0ec['push'](_0x101d6b);}}if(this['adapter']){for(const _0x58eb8f of _0x44f0ec)this['_bufferUpdate'](_0x58eb8f['id'],_0x58eb8f,!0x0);this['sendBufferedUpdates']();}return _0x2ec8ef;}['addRevisionData'](_0x24f43b){const _0x1b57fc=this['repository']['createRevision'](_0x24f43b);return this['adapter']&&_0x1b57fc['on']('_update',(_0x4238b4,_0x5ecef6,_0x5e5076)=>{_0x5e5076||(this['_bufferUpdate'](_0x5ecef6['id'],_0x5ecef6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b57fc,this['_findInsertionIndex'](_0x1b57fc)),_0x1b57fc;}async['getRevisionDocumentData'](_0x3881b2){return await this['_utils']['loadRevisionData'](_0x3881b2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3881b2);}async['getRevisionRootsAttributes'](_0x56e228){return await this['_utils']['loadRevisionData'](_0x56e228,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x56e228);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x35b380=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4f3b20=0x0;_0x4f3b20<_0x35b380['length'];_0x4f3b20++){const _0x2d4476=_0x35b380[_0x4f3b20];let _0x507a70=!0x1;for(const _0x4936f0 of Object['keys'](_0x2d4476))void 0x0===_0x2d4476[_0x4936f0]?delete _0x2d4476[_0x4936f0]:'id'!==_0x4936f0&&(_0x507a70=!0x0);_0x507a70||(_0x35b380[_0x4f3b20]=null);}if(_0x35b380=_0x35b380['filter'](_0x5a7ab=>null!==_0x5a7ab),!_0x35b380['length'])return;for(let _0x56c22f=0x0;_0x56c22f<_0x35b380['length'];_0x56c22f++){const _0x257567=_0x35b380[_0x56c22f];void 0x0!==_0x257567['fromVersion']&&void 0x0===_0x257567['toVersion']&&(_0x257567['toVersion']=this['repository']['getRevision'](_0x257567['id'])['toVersion']),void 0x0!==_0x257567['toVersion']&&void 0x0===_0x257567['fromVersion']&&(_0x257567['fromVersion']=this['repository']['getRevision'](_0x257567['id'])['fromVersion']);}const _0x25ddaf=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x35b380,_0x25ddaf)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xbc029d=>{if(_0xbc029d){for(const _0x145caa of _0xbc029d)this['setRevisionData']({'id':_0x145caa['id'],'createdAt':_0x145caa['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x21f314=null,from:_0x36f793=null,to:_0x5bbfe6=null}){_0x36f793=null!==_0x36f793?_0x36f793:_0x21f314['fromVersion'],_0x5bbfe6=null!==_0x5bbfe6?_0x5bbfe6:_0x21f314['toVersion'];const _0x50dfbd=this['_revisionDataBuilder']['getData'](_0x36f793,_0x5bbfe6),_0x12a793={'diffData':_0x50dfbd['diffData'],'authorsIds':_0x50dfbd['authorsIds'],'fromVersion':_0x36f793,'toVersion':_0x5bbfe6};if(!_0x21f314||_0x5bbfe6!==_0x21f314['toVersion']){const _0x32877b=_0x5bbfe6-0x1,_0x3fedb9=this['_source']['history']['getOperation'](_0x32877b);_0x12a793['createdAt']=_0x3fedb9&&_0x3fedb9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x36f793===this['_loadedStateData']['fromVersion']){for(const _0x1c2f29 of this['_loadedStateData']['authors'])_0x12a793['authorsIds']['includes'](_0x1c2f29['id'])||_0x12a793['authorsIds']['push'](_0x1c2f29['id']);}return _0x12a793;}['_bufferUpdate'](_0x193733,_0x3ec978,_0x2f4318){if(this['_bufferedUpdates']['has'](_0x193733)){const _0x12627e=this['_bufferedUpdates']['get'](_0x193733);_0x3ec978=_0x2f4318?{..._0x12627e,..._0x3ec978}:{..._0x3ec978,..._0x12627e};}this['_bufferedUpdates']['set'](_0x193733,_0x3ec978);}['setRevisionData'](_0x4b7a67){const _0x4a0f5f=this['repository']['getRevision'](_0x4b7a67['id']);if(_0x4b7a67['createdAt']&&(_0x4b7a67['createdAt']=new Date(_0x4b7a67['createdAt'])),_0x4b7a67['authorsIds']){const _0x2deb4d=this['editor']['plugins']['get']('Users');_0x4b7a67['authors']=_0x4b7a67['authorsIds']['map'](_0x569a34=>_0x2deb4d['getUser'](_0x569a34));}_0x4a0f5f['_update'](_0x4b7a67,!0x0);}['_createInitialRevision'](_0x34f0e9){const _0x2d26f7=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2d26f7)this['_initialRevisionId']=_0x2d26f7['id'];else{const _0x5e20=!this['editor']['model']['document']['roots']['find'](_0x24acf0=>this['editor']['model']['hasContent'](_0x24acf0)),_0x20f360=this['editor']['plugins']['get']('Users')['me']['id'],_0x50b0ec=g(this['editor']['locale'],_0x5e20?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x34f0e9,'to':_0x34f0e9,'id':this['_initialRevisionId'],'name':_0x50b0ec,'creatorId':_0x20f360});}}['_createCurrentRevision'](_0x4699d1){const _0x5388fa=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5388fa),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4699d1,'to':_0x4699d1,'id':_0x5388fa,'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'](_0x1b11d1,_0x26a15e){let _0x5b5d7d=this['editor']['config']['get']('initialData'),_0x4eccd9=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5b5d7d){_0x5b5d7d={};for(const _0x15c9c2 of this['editor']['model']['document']['getRootNames']())_0x5b5d7d[_0x15c9c2]='';}if('string'==typeof _0x5b5d7d&&(_0x5b5d7d={'main':_0x5b5d7d}),void 0x0===_0x4eccd9){_0x4eccd9={};for(const _0x26aa8c of this['editor']['model']['document']['getRootNames']())_0x4eccd9[_0x26aa8c]={};}let _0x47662f=!0x1;const _0x508797=Object['keys'](_0x5b5d7d),_0x37b016=Object['keys'](_0x1b11d1);for(const _0x1a51e0 of _0x508797){if(_0x5b5d7d[_0x1a51e0]!==_0x1b11d1[_0x1a51e0]&&''!==_0x5b5d7d[_0x1a51e0]['trim']()){_0x47662f=!0x0;break;}if(!_0xbd4972(_0x4eccd9[_0x1a51e0],_0x26a15e[_0x1a51e0])&&Object['keys'](_0x4eccd9[_0x1a51e0])['length']>0x0){_0x47662f=!0x0;break;}}_0x47662f||(_0x47662f=_0x37b016['some'](_0x3bfda1=>!this['editor']['model']['document']['getRoot'](_0x3bfda1))),_0x47662f&&_0xfa97f2('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5b5d7d,'editorRootsAttributes':_0x4eccd9,'revisionData':_0x1b11d1,'revisionRootsAttributes':_0x26a15e}),this['editor']['config']['set']('initialData',_0x1b11d1),this['editor']['config']['set']('rootsAttributes',_0x26a15e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x753326=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x753326['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x35fe36){const _0x260b2a=this['repository']['getRevisions']();_0x260b2a['reverse']();let _0x3d647c=0x0;for(;_0x3d647c<_0x260b2a['length'];){const _0x254383=_0x260b2a[_0x3d647c];if(_0x254383===this['currentRevision']){_0x3d647c++;continue;}if(_0x254383['id']===this['_initialRevisionId'])break;const _0x226645=_0x35fe36['toVersion']-_0x254383['toVersion']||_0x35fe36['fromVersion']-_0x254383['fromVersion'];if(_0x226645>0x0)break;if(_0x226645<0x0)_0x3d647c++;else{if(!_0x35fe36['creator']&&_0x254383['creator'])break;if(_0x254383['creator']||!_0x35fe36['creator']){if(_0x35fe36['createdAt']>_0x254383['createdAt'])break;_0x3d647c++;}else _0x3d647c++;}}return _0x3d647c;}['_getFromVersion'](_0x15b89c){const _0x576aa1=this['repository']['getRevisions']();_0x576aa1['reverse'](),_0x576aa1['shift']();const _0x27bed6=_0x576aa1['find'](_0x47eb7e=>_0x47eb7e['toVersion']<=_0x15b89c)['toVersion'];return _0x27bed6<this['_startingVersion']?this['_startingVersion']:_0x27bed6;}['_makeRevision']({name:_0x3e2a95,from:_0x1632da,to:_0x6c62a1,creatorId:_0x4e716e,id:_0x44672b}){const _0xdeedc9=this['buildRevisionData']({'from':_0x1632da,'to':_0x6c62a1});_0xdeedc9['name']=_0x3e2a95,_0xdeedc9['creatorId']=_0x4e716e,_0xdeedc9['id']=_0x44672b;const _0x3fe390=this['addRevisionData'](_0xdeedc9);return this['adapter']&&this['_bufferUpdate'](_0xdeedc9['id'],_0xdeedc9,!0x0),_0x3fe390;}['_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(_0x4e3c56){this['editor']=_0x4e3c56,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'](_0x295519){this['source']=_0x295519;const _0x5032e7=new Map(),_0x225511=new Map(),_0x2181f9=this['editor']['model']['document']['roots']['map'](_0x4e0477=>_0x4e0477['rootName']);for(const _0xb5baed of _0x2181f9){const _0x2a2590=this['editor']['model']['document']['getRoot'](_0xb5baed),_0xbccd8c=N(_0x2a2590);_0x5032e7['set'](_0xb5baed,_0xbccd8c),_0x225511['set'](_0xb5baed,Object['fromEntries'](_0x2a2590['getAttributes']()));}const _0x3cee09=Array['from'](this['editor']['model']['markers'])['map'](_0x1d6d5c=>[_0x1d6d5c['name'],_0x1d6d5c['getRange']()]),_0x85ad0d=this['source']['version'];this['_saveMetaData'](_0x85ad0d,_0x5032e7,_0x3cee09,_0x225511),this['_startingRevisionId']=this['_revisionId'];const _0x450044=new Map(),_0x4e51fe=new Map();for(const _0x2a88c8 of _0x2181f9){const _0x3a296e=P(_0x2a88c8);_0x450044['set'](_0x2a88c8,_0x3a296e),_0x4e51fe['set'](_0x2a88c8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x450044,[],_0x4e51fe);}['getData'](_0x14819d,_0x51309f){if(this['_lastFrom']===_0x14819d&&this['_lastTo']<=_0x51309f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x51309f,!0x0);else{if(!this['_savedMetaData']['has'](_0x14819d)){const _0x5eac6b=this['_getPreviousFrom'](_0x14819d);this['_calculateMetaData'](_0x5eac6b,_0x14819d,!0x1);}this['_calculateMetaData'](_0x14819d,_0x51309f,!0x0);}return this['_lastFrom']=_0x14819d,this['_lastTo']=_0x51309f,this['_getState']();}['loadState'](_0x23e80a){const _0x39f894=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x23e80a['fromVersion'],this['_lastTo']=_0x23e80a['toVersion'];for(const _0x3a18fc in _0x23e80a['diffData']){const _0x312104=_0x23e80a['diffData'][_0x3a18fc]['attachChange'],_0x19fc1d=_0x4af798(_0x23e80a['diffData'][_0x3a18fc]['attributesBefore'])||{},_0x1d490d=_0x39f894['_makeModelFromViewString'](_0x23e80a['diffData'][_0x3a18fc]['deletions']);_0x1d490d['rootName']=_0x3a18fc,_0x1d490d['_isAttached']=!_0x312104||!_0x312104['isAttached'],_0x1d490d['isAttached']=()=>_0x1d490d['_isAttached'],this['_baseRoots']['set'](_0x3a18fc,_0x1d490d),this['_baseRootsAttributes']['set'](_0x3a18fc,_0x19fc1d),_0x312104&&this['_touchedRoots']['set'](_0x3a18fc,_0x312104);const _0x2f2af9=this['_makeIdsRoot'](_0x1d490d);this['_baseIdsRoots']['set'](_0x3a18fc,_0x2f2af9);for(const [_0x2a92b5,_0x5161eb]of _0x1d490d['markers']){if(!_0x2a92b5['startsWith']('revision:'))continue;const _0x1bd5b5=_0x2a92b5['split'](':')[0x2];for(const _0x29245f of _0x5161eb['getWalker']({'singleCharacters':!0x0})){const _0x18e67e=this['_getVidAttributeName'](_0x29245f),_0x1b11f1='elementEnd'==_0x29245f['type']?_0x29245f['previousPosition']['path']['slice'](0x0,-0x1):_0x29245f['previousPosition']['path'],_0x411b09=_0x2f2af9['getNodeByPath'](_0x1b11f1)['getAttribute'](_0x18e67e);this['_touched']['set'](_0x411b09,{'userId':_0x1bd5b5});}}}this['_startingRevisionId']=this['_revisionId'];const _0x34c0c9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x49ed34=>!this['_touched']['has'](_0x49ed34));let _0x4cd029=0x0;const _0x5ae309=new Map();for(const _0x1c5e79 in _0x23e80a['diffData']){const _0x563f90=_0x23e80a['diffData'][_0x1c5e79]['attachChange'],_0x1565b6=_0x4af798(_0x23e80a['diffData'][_0x1c5e79]['attributesAfter'])||{},_0x2c1d73=_0x39f894['_makeModelFromViewString'](_0x23e80a['diffData'][_0x1c5e79]['insertions']);_0x2c1d73['rootName']=_0x1c5e79,_0x2c1d73['_isAttached']=!_0x563f90||_0x563f90['isAttached'],_0x2c1d73['isAttached']=()=>_0x2c1d73['_isAttached'],this['_diffRoots']['set'](_0x1c5e79,_0x2c1d73),this['_diffRootsAttributes']['set'](_0x1c5e79,_0x1565b6);const _0x43a714=this['_makeIdsRoot'](_0x2c1d73,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1c5e79,_0x43a714),_0x5ae309['set'](_0x1c5e79,_0x2c1d73['isAttached']()?_0x1565b6:{});for(const [_0x450e6,_0x49ffa9]of _0x2c1d73['markers']){if(!_0x450e6['startsWith']('revision:'))continue;const _0x41bc95=_0x450e6['split'](':')[0x2];for(const _0x55df98 of _0x49ffa9['getWalker']({'singleCharacters':!0x0})){const _0x1f045b=this['_getVidAttributeName'](_0x55df98),_0x265d45=this['_revisionId']++,_0x4a3173='elementEnd'==_0x55df98['type']?_0x55df98['previousPosition']['path']['slice'](0x0,-0x1):_0x55df98['previousPosition']['path'];_0x43a714['getNodeByPath'](_0x4a3173)['_setAttribute'](_0x1f045b,_0x265d45),this['_touched']['set'](_0x265d45,{'userId':_0x41bc95});}}for(const _0x469bdf of this['editor']['model']['createRangeIn'](_0x2c1d73)['getWalker']({'singleCharacters':!0x0})){const _0x4fcc03=this['_getVidAttributeName'](_0x469bdf),_0x3aa8e0='elementEnd'==_0x469bdf['type']?_0x469bdf['previousPosition']['path']['slice'](0x0,-0x1):_0x469bdf['previousPosition']['path'],_0x303f43=_0x43a714['getNodeByPath'](_0x3aa8e0);_0x303f43['getAttribute'](_0x4fcc03)>0x0||_0x303f43['_setAttribute'](_0x4fcc03,_0x34c0c9[_0x4cd029++]);}for(const [_0x3a8847,_0x47eada]of _0x2c1d73['markers'])_0x3a8847['startsWith']('revision:')||this['_markers']['set'](_0x3a8847,_0x47eada);}const _0x3018df=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3018df),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3018df,0x1));const _0x454e9d=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x454e9d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x454e9d,0x1));const _0x214b86=Array['from'](this['_diffRoots'])['map'](([_0xa9453f,_0x7489ce])=>[_0xa9453f,N(_0x7489ce)]);this['_saveMetaData'](this['_lastTo'],_0x214b86,this['_markers'],_0x5ae309);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x738658,_0x21de11,_0x108615,_0x5e816c){const _0x1111e2=new Map(_0x21de11),_0x28e3dd=new Map(_0x4af798(_0x5e816c)),_0x12a81f=new Map();for(const [_0x5cce5f,_0x179a16]of _0x108615)_0x12a81f['set'](_0x5cce5f,{'start':_0x179a16['start']['clone'](),'end':_0x179a16['end']['clone'](),'rootName':_0x179a16['root']['rootName']});this['_savedMetaData']['set'](_0x738658,{'roots':_0x1111e2,'markers':_0x12a81f,'rootsAttributes':_0x28e3dd});}['_removeMetaData'](_0x3e6dfb){this['_savedMetaData']['delete'](_0x3e6dfb);}['_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'](_0x221b90,_0x179113=null){let _0x4152f4=null;_0x221b90['is']('documentFragment')||(_0x4152f4=new ut(_0x221b90['name'],{'vid_start':null===_0x179113?this['_revisionId']++:_0x179113++}));const _0x4a6caf=[];for(const _0x2128d1 of _0x221b90['getChildren']())if(_0x2128d1['is']('element')){_0x4a6caf['push'](this['_makeIdsRoot'](_0x2128d1,_0x179113));const _0x39d922=_0x4a6caf[_0x4a6caf['length']-0x1];null!==_0x179113&&(_0x179113=_0x39d922['is']('element','$text')?_0x39d922['getAttribute']('vid')+0x1:_0x39d922['getAttribute']('vid_end')+0x1);}else{for(let _0x269381=0x0;_0x269381<_0x2128d1['offsetSize'];_0x269381++)_0x4a6caf['push'](new ut('$text',{'vid':null===_0x179113?this['_revisionId']++:_0x179113++}));}if(_0x221b90['is']('documentFragment')){const _0x1904e5=P(_0x221b90['rootName']);return _0x1904e5['_insertChild'](0x0,_0x4a6caf),_0x1904e5;}return _0x4152f4['_setAttribute']('vid_end',null===_0x179113?this['_revisionId']++:_0x179113++),_0x4152f4['_insertChild'](0x0,_0x4a6caf),_0x4152f4;}['_calculateMetaData'](_0x539a77,_0x5e382b,_0x6e2905){this['_reset']();const {roots:_0x40a884,markers:_0x3e3b5c,rootsAttributes:_0x1bedf3}=this['_savedMetaData']['get'](_0x539a77);this['_baseRoots']=new Map(_0x40a884),this['_baseRootsAttributes']=new Map(_0x4af798(_0x1bedf3));for(const [_0x40ca3c,_0x3dd851]of this['_baseRoots'])if('$graveyard'!==_0x40ca3c&&(this['_diffRoots']['set'](_0x40ca3c,N(_0x3dd851)),this['_diffRootsAttributes']=new Map(_0x4af798(_0x1bedf3)),_0x6e2905)){const _0x4a4128=this['_revisionId'];this['_idsRoots']['set'](_0x40ca3c,this['_makeIdsRoot'](_0x3dd851)),this['_baseIdsRoots']['set'](_0x40ca3c,this['_makeIdsRoot'](_0x3dd851,_0x4a4128));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x6e2905&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x328598,_0x215f89]of _0x3e3b5c){const _0x50a6ec=this['_baseRoots']['get'](_0x215f89['rootName']),_0x6c919d=this['_diffRoots']['get'](_0x215f89['rootName']),_0x2e6b7e=new lt(this['_fixPosition'](_0x215f89['start'],_0x50a6ec),this['_fixPosition'](_0x215f89['end'],_0x50a6ec)),_0x4083f7=this['_fixRange'](_0x2e6b7e,_0x6c919d);_0x50a6ec['markers']['set'](_0x328598,_0x2e6b7e),this['_markers']['set'](_0x328598,_0x4083f7);}this['_applyOperations'](_0x539a77,_0x5e382b,_0x6e2905);}['_applyOperations'](_0x4c9d1c,_0x49ca06,_0x3c4b2f){for(const _0x2acde4 of this['source']['getOperations'](_0x4c9d1c,_0x49ca06))this['_handleOperation'](_0x2acde4,_0x3c4b2f);for(const _0xffb74f of this['_diffRoots']['values']())_0xffb74f['markers']['clear']();for(const [_0x2feb42,_0x3a6a63]of this['_markers']){this['_diffRoots']['get'](_0x3a6a63['root']['rootName'])['markers']['set'](_0x2feb42,_0x3a6a63['clone']());}const _0x286c81=new Map(),_0x16dff1=new Map();for(const [_0x56700e,_0x1962d8]of this['_diffRoots'])_0x286c81['set'](_0x56700e,N(_0x1962d8)),_0x16dff1['set'](_0x56700e,this['_diffRootsAttributes']['get'](_0x56700e));this['_saveMetaData'](_0x49ca06,_0x286c81,this['_markers'],_0x16dff1);}['_getPreviousFrom'](_0x362d0c){const _0x850a80=Array['from'](this['_savedMetaData']['keys']());_0x850a80['sort']((_0x45feff,_0x51bb47)=>_0x45feff-_0x51bb47),_0x850a80['reverse']();for(const _0x24d918 of _0x850a80)if(_0x24d918<_0x362d0c)return _0x24d918;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x59ae2c,_0xed180){const _0x580be3=Array['from'](_0xed180['markers'])['map'](([_0x1f4ef1,_0x5ae4e6])=>[_0x1f4ef1,this['_fixRange'](_0x5ae4e6,_0x59ae2c)]);_0x59ae2c['markers']=new Map(_0x580be3);}['_transformMarkers'](_0x489768){for(const _0x5f1b5d of this['_markers']['values']()){const _0x27ea37=_0x5f1b5d['getTransformedByOperation'](_0x489768),_0x5d44d1=lt['_createFromRanges'](_0x27ea37);_0x5f1b5d['start']=_0x5d44d1['start'],_0x5f1b5d['end']=_0x5d44d1['end'];}}['_handleOperation'](_0x34a8bc,_0x436528){if('addRoot'!=_0x34a8bc['type']&&'detachRoot'!=_0x34a8bc['type']){if('insert'==_0x34a8bc['type']){const _0x1b6ce1=_0x34a8bc['position']['root']['rootName'];this['_diffRoots']['has'](_0x1b6ce1)||(this['_diffRoots']['set'](_0x1b6ce1,P(_0x1b6ce1,!0x0)),this['_diffRootsAttributes']['set'](_0x1b6ce1,{}),_0x436528&&this['_idsRoots']['set'](_0x1b6ce1,P(_0x1b6ce1,!0x0)));}else{if('addRootAttribute'==_0x34a8bc['type']||'removeRootAttribute'==_0x34a8bc['type']||'changeRootAttribute'==_0x34a8bc['type'])return void this['_handleRootAttributeOperation'](_0x34a8bc);'marker'==_0x34a8bc['type']&&this['_handleMarkerOperation'](_0x34a8bc);}if('marker'!==_0x34a8bc['type']){const _0x56cf3d=this['_cloneOperation'](_0x34a8bc,this['_diffRoots']);_0x56cf3d['_execute'](),this['_transformMarkers'](_0x56cf3d);}if(_0x436528)switch(_0x34a8bc['type']){case'insert':this['_handleInsertOperation'](_0x34a8bc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x34a8bc);break;case'merge':this['_handleMergeOperation'](_0x34a8bc);break;case'split':this['_handleSplitOperation'](_0x34a8bc);}}else this['_handleRootOperation'](_0x34a8bc,_0x436528);}['_cloneOperation'](_0x17cce8,_0x4d08d7){const _0x27a37f=_0x17cce8['clone']();return _0x27a37f['_authorId']=_0x17cce8['_authorId'],this['_fixOperation'](_0x27a37f,_0x4d08d7),_0x27a37f;}['_getBaseVids'](_0x57513d){return _0x57513d['map'](_0x4369ad=>{const _0x2a3bd9=this['_getVidAttributeName'](_0x4369ad);return Number(_0x4369ad['item']['getAttribute'](_0x2a3bd9));});}['_generateTape'](_0x3aa542,_0x3bfa94){if(_0x3aa542['is']('element','$text'))_0x3bfa94['push']({'item':_0x3aa542,'type':'text'});else{_0x3aa542['is']('element')&&_0x3bfa94['push']({'item':_0x3aa542,'type':'elementStart'});for(const _0x13e95f of _0x3aa542['getChildren']())this['_generateTape'](_0x13e95f,_0x3bfa94);_0x3aa542['is']('element')&&_0x3bfa94['push']({'item':_0x3aa542,'type':'elementEnd'});}return _0x3bfa94;}['_getState'](){const _0x2eb56c=new Map(this['_touched']),_0x2bcf79=new Map(_0x2eb56c),_0x5155cb=new Map(),_0x3746cd={'insertions':{},'deletions':{}},_0x4e612c={'insertions':{},'deletions':{}},_0x476a3e=new Map(),_0x431471=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x431471['delete']('$graveyard');for(const _0x59196e of _0x431471){const _0x4bfff8=this['_diffRoots']['get'](_0x59196e)||P(_0x59196e,!0x1),_0x1da5da=this['_baseRoots']['get'](_0x59196e)||P(_0x59196e,!0x1);_0x4bfff8['isAttached']()||_0x1da5da['isAttached']()?(_0x3746cd['insertions'][_0x59196e]=N(_0x4bfff8),_0x3746cd['deletions'][_0x59196e]=N(_0x1da5da),this['_copyMarkers'](_0x3746cd['deletions'][_0x59196e],_0x1da5da),this['_copyMarkers'](_0x3746cd['insertions'][_0x59196e],_0x4bfff8),_0x4e612c['insertions'][_0x59196e]=this['_generateTape'](this['_idsRoots']['get'](_0x59196e),[]),_0x4e612c['deletions'][_0x59196e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x59196e)||P(_0x59196e,!0x1),[])):_0x431471['delete'](_0x59196e);}for(const _0x532aa2 of _0x431471){const _0x55f34f=_0x4e612c['insertions'][_0x532aa2];for(const _0x2b17fd of _0x55f34f){const _0x17cfd4=this['_getVidAttributeName'](_0x2b17fd),_0x13c989=_0x2b17fd['item']['getAttribute'](_0x17cfd4);_0x2bcf79['delete'](_0x13c989),_0x13c989>=this['_startingRevisionId']&&_0x5155cb['set'](_0x13c989,_0x2eb56c['get'](_0x13c989));}}for(const _0x1587dc of _0x431471){const _0x4c4df3=_0x4e612c['insertions'][_0x1587dc],_0xad44d=this['_getBaseVids'](_0x4e612c['deletions'][_0x1587dc]);let _0x52b89f=0x0;for(const _0x3b1208 of _0x4c4df3){const _0x4b363b=this['_getVidAttributeName'](_0x3b1208),_0x2f5864=_0x3b1208['item']['getAttribute'](_0x4b363b);if(!_0x5155cb['has'](_0x2f5864)&&!_0x476a3e['has'](_0x2f5864)){if(_0x2bcf79['has'](_0x2f5864))_0x52b89f++;else{if(_0x2f5864!=_0xad44d[_0x52b89f]){const _0x4a62b3=_0x2eb56c['get'](_0x2f5864)||_0x2eb56c['get'](_0xad44d[_0x52b89f]);for(;_0x2f5864!=_0xad44d[_0x52b89f];)_0x2bcf79['has'](_0xad44d[_0x52b89f])||(_0x476a3e['set'](_0xad44d[_0x52b89f],_0x4a62b3),_0x2eb56c['set'](_0xad44d[_0x52b89f],_0x4a62b3)),_0x52b89f++;}_0x52b89f++;}}}}for(const _0x199f1a of _0x431471){const _0x2a3530=_0x4e612c['insertions'][_0x199f1a];for(const _0x48cda2 of _0x2a3530){const _0x5bacc4=this['_getVidAttributeName'](_0x48cda2),_0x28c21d=_0x48cda2['item']['getAttribute'](_0x5bacc4);if(_0x476a3e['has'](_0x28c21d)){const _0x1fada9=_0x476a3e['get'](_0x28c21d);_0x2bcf79['has'](_0x28c21d)||_0x2bcf79['set'](_0x28c21d,{..._0x1fada9}),_0x5155cb['set'](_0x28c21d,{..._0x1fada9});}}}for(const _0x446668 of _0x2bcf79['keys']())_0x446668>=this['_startingRevisionId']&&_0x2bcf79['delete'](_0x446668);const _0xf3270f=new Map();for(const _0xbd5c3a of _0x431471){let _0x38b5cc=_0x4e612c['insertions'][_0xbd5c3a];for(const _0x271fa5 of _0x38b5cc)if(_0x271fa5['item']['is']('element','tableCell')){const _0x2592d0=this['_getVidAttributeName'](_0x271fa5),_0x57d38e=_0x271fa5['item']['getAttribute'](_0x2592d0);if(_0x5155cb['has'](_0x57d38e)){const _0x30db58=_0x271fa5['item']['parent']['parent']['getAttribute']('vid_start'),_0xc1383d=_0xf3270f['get'](_0x30db58)||new Set();_0xc1383d['add'](_0x5155cb['get'](_0x57d38e)['userId']),_0xf3270f['set'](_0x30db58,_0xc1383d);}}_0x38b5cc=_0x4e612c['deletions'][_0xbd5c3a];for(const _0x42e751 of _0x38b5cc)if(_0x42e751['item']['is']('element','tableCell')){const _0x418308=this['_getVidAttributeName'](_0x42e751),_0x254ab3=_0x42e751['item']['getAttribute'](_0x418308);if(_0x2bcf79['has'](_0x254ab3)){const _0x10e504=_0x42e751['item']['parent']['parent']['getAttribute']('vid_start'),_0x16928a=_0xf3270f['get'](_0x10e504)||new Set();_0x16928a['add'](_0x2bcf79['get'](_0x254ab3)['userId']),_0xf3270f['set'](_0x10e504,_0x16928a);}}for(const _0x44cd63 of _0xf3270f['keys']())(_0x5155cb['has'](_0x44cd63)||_0x2bcf79['has'](_0x44cd63))&&_0xf3270f['delete'](_0x44cd63);}for(const _0x26f0b9 of _0x431471){const _0x1b8d69=_0x4e612c['insertions'][_0x26f0b9];let _0x238b52=null,_0x25e116=null;for(const _0x56121d of _0x1b8d69){const _0x47c932=this['_getVidAttributeName'](_0x56121d),_0xf25675=_0x56121d['item']['getAttribute'](_0x47c932),_0x492e3f=_0xf3270f['get'](_0xf25675);_0x492e3f&&'elementStart'==_0x56121d['type']&&(_0x238b52=Array['from'](_0x492e3f)[0x0],_0x25e116=_0x56121d['item']['getAttribute']('vid_end')),_0x238b52&&(_0x2bcf79['set'](_0xf25675,{'userId':_0x238b52}),_0x5155cb['set'](_0xf25675,{'userId':_0x238b52})),_0xf25675==_0x25e116&&(_0x238b52=null,_0x25e116=null);}}const _0x50d055={},_0x697e19=new Set();for(const _0x38269c of _0x431471){const _0x12e549=_0x3746cd['deletions'][_0x38269c],_0x23b66a=_0x3746cd['insertions'][_0x38269c];for(const {userId:_0x4f29e1}of this['_touchedMarkers']['values']())null!==_0x4f29e1&&_0x697e19['add'](_0x4f29e1);for(const {userId:_0x1d5b2c}of this['_touchedRoots']['values']())null!==_0x1d5b2c&&_0x697e19['add'](_0x1d5b2c);this['_markChanges'](_0x23b66a,_0x4e612c['insertions'][_0x38269c],_0x5155cb,'insertion',_0x697e19),this['_markChanges'](_0x12e549,_0x4e612c['deletions'][_0x38269c],_0x2bcf79,'deletion',_0x697e19),_0x50d055[_0x38269c]={'insertions':this['_prepareViewToSave'](_0x23b66a),'deletions':this['_prepareViewToSave'](_0x12e549),'attachChange':this['_touchedRoots']['get'](_0x38269c)||null,'attributesBefore':_0x4af798(this['_baseRootsAttributes']['get'](_0x38269c))||{},'attributesAfter':_0x4af798(this['_diffRootsAttributes']['get'](_0x38269c))};}return{'diffData':_0x50d055,'authorsIds':Array['from'](_0x697e19)};}['_processRootBeforeSave'](_0x52ef9b){for(const [,_0x2e1c2b]of _0x52ef9b['markers']){const _0x3feed8=_0x2e1c2b['start']['getAncestors']()['filter'](_0x1499bb=>'tableCell'==_0x1499bb['name']);for(const _0x240b18 of _0x3feed8)0x1==_0x240b18['childCount']&&_0x240b18['getChild'](0x0)['is']('element','paragraph')&&_0x240b18['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4fd4ea){this['_processRootBeforeSave'](_0x4fd4ea);const _0x408f9c=this['editor']['data']['toView'](_0x4fd4ea,{}),_0x1e5c8d=Array['from'](_0x408f9c['getChildren']())['map'](_0x435018=>this['_getViewJson'](_0x435018));return JSON['stringify'](_0x1e5c8d);}['_getViewJson'](_0x3a45af){if(_0x3a45af['is']('$text'))return _0x3a45af['data'];{const _0x57e9c8=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2060a9=_0x3a45af,_0x15c152=this['editor']['data']['htmlProcessor']['domConverter'],_0x4fb93f={'type':_0x57e9c8['_getTypeCharForViewElement'](_0x2060a9),'name':_0x2060a9['name'],'attributes':Array['from'](_0x2060a9['getAttributes']()),'children':Array['from'](_0x2060a9['getChildren']())['map'](_0x50efbc=>this['_getViewJson'](_0x50efbc))};if(_0x3a45af['is']('uiElement')&&'$comment'!=_0x3a45af['name']){const _0x17cfe2=_0x3a45af['render'](_0x15c152['domDocument'],_0x15c152);_0x4fb93f['children']['push'](_0x17cfe2['outerHTML']);}else{if(_0x3a45af['is']('rawElement')){const _0x5bb906=_0x15c152['domDocument']['createElement'](_0x2060a9['name']);_0x3a45af['render'](_0x5bb906,_0x15c152),_0x4fb93f['children']['push'](_0x5bb906['innerHTML']);}}const _0x37ac1e=Array['from'](_0x2060a9['getCustomProperties']());_0x37ac1e['length']>0x0&&(_0x4fb93f['customProperties']=_0x37ac1e);const _0x552c4e=_0x2060a9['getFillerOffset']();return null!==_0x552c4e&&(_0x4fb93f['fillerOffset']=_0x552c4e),_0x4fb93f;}}['_markChanges'](_0x42e5dc,_0x28f634,_0x28d264,_0x430f85,_0x472027){let _0x23a107=null,_0x10dd83=null,_0x1ed7b6=0x0;const _0x3ca0cd=this['editor']['model'];for(let _0x310d69=0x0;_0x310d69<_0x28f634['length'];_0x310d69++){const _0x2c2021=this['_getVidAttributeName'](_0x28f634[_0x310d69]),_0x3099ad=_0x28f634[_0x310d69]['item']['getAttribute'](_0x2c2021),_0x326b34=_0x28d264['get'](_0x3099ad),_0x260b9e=_0x310d69==_0x28f634['length']-0x1;(!_0x23a107&&_0x326b34&&(_0x23a107=_0x326b34,_0x10dd83=_0x28f634[_0x310d69]),_0x23a107&&(!_0x326b34||_0x326b34['userId']!=_0x23a107['userId']))&&(_0x172e73(_0x326b34,F(_0x10dd83,_0x42e5dc,_0x3ca0cd),F(_0x28f634[_0x310d69],_0x42e5dc,_0x3ca0cd)),_0x23a107=_0x326b34||null,_0x10dd83=_0x326b34?_0x28f634[_0x310d69]:null),_0x23a107&&_0x260b9e&&_0x172e73(_0x326b34,F(_0x10dd83,_0x42e5dc,_0x3ca0cd),B(_0x28f634[_0x310d69],_0x42e5dc,_0x3ca0cd));}function _0x172e73(_0x219c37,_0x2013fa,_0x15b628){const _0x1a73ff=_0x23a107['userId'],_0x11ee38='revision:'+_0x430f85+':'+_0x1a73ff+':'+_0x1ed7b6++,_0x1380e8=_0x3ca0cd['createRange'](_0x2013fa,_0x15b628);_0x42e5dc['markers']['set'](_0x11ee38,_0x1380e8),null!==_0x1a73ff&&_0x472027['add'](_0x1a73ff);}}['_getVidAttributeName'](_0x450e02){switch(_0x450e02['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5076a4,_0x3d02bc){_0x5076a4['baseVersion']=null;for(const _0x4ba317 in _0x5076a4){const _0x53e9d6=_0x5076a4[_0x4ba317];if(_0x53e9d6 instanceof ft){const _0x40e5df=_0x3d02bc['get'](_0x53e9d6['root']['rootName']);_0x5076a4[_0x4ba317]=this['_fixPosition'](_0x53e9d6,_0x40e5df);}if(_0x53e9d6 instanceof lt){const _0x3d90fe=_0x3d02bc['get'](_0x53e9d6['root']['rootName']);_0x5076a4[_0x4ba317]=this['_fixRange'](_0x53e9d6,_0x3d90fe);}'root'===_0x4ba317&&(_0x5076a4['root']=_0x3d02bc['get'](_0x5076a4['root']['rootName']));}}['_fixRange'](_0x50fe30,_0x42bb65){return this['editor']['model']['createRange'](this['_fixPosition'](_0x50fe30['start'],_0x42bb65),this['_fixPosition'](_0x50fe30['end'],_0x42bb65));}['_fixPosition'](_0x3c4592,_0x443bb3){return this['editor']['model']['createPositionFromPath'](_0x443bb3,_0x3c4592['path'],_0x3c4592['stickiness']);}['_handleInsertOperation'](_0x9e49b){const _0x482121=this['_idsRoots']['get'](_0x9e49b['position']['root']['rootName']),_0x1271ce=this['_fixPosition'](_0x9e49b['position'],_0x482121),_0x25e7d7=null===_0x9e49b['_authorId']?null:_0x9e49b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16446d=_0x1271ce['parent'],_0x47af14=this['_revisionId'],_0x157f86=[];for(const _0x17c728 of _0x9e49b['nodes'])if(_0x17c728['is']('element'))_0x157f86['push'](this['_makeIdsRoot'](_0x17c728));else{for(let _0x4c6217=0x0;_0x4c6217<_0x17c728['offsetSize'];_0x4c6217++)_0x157f86['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x539cf6=this['_revisionId'];for(let _0x400e16=_0x47af14;_0x400e16<_0x539cf6;_0x400e16++)this['_touched']['set'](_0x400e16,{'userId':_0x25e7d7});_0x16446d['_insertChild'](_0x1271ce['offset'],_0x157f86);}['_handleMoveOperation'](_0x3a5df0){(_0x3a5df0=this['_cloneOperation'](_0x3a5df0,this['_idsRoots']))['_execute']();const _0x1d991c=null===_0x3a5df0['_authorId']?null:_0x3a5df0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b3c1c=_0x3a5df0['getMovedRangeStart'](),_0x8efa2f=_0x4b3c1c['parent'],_0x38ef12=_0x4b3c1c['offset'];!function _0x5700a4(_0x9e053a,_0x1a474e,_0x92223c,_0x405a55){for(let _0x5d09e5=_0x92223c;_0x5d09e5<_0x405a55;_0x5d09e5++){const _0x200c9d=_0x1a474e['getChild'](_0x5d09e5);_0x200c9d['is']('element','$text')?_0x9e053a['set'](_0x200c9d['getAttribute']('vid'),{'userId':_0x1d991c}):(_0x9e053a['set'](_0x200c9d['getAttribute']('vid_start'),{'userId':_0x1d991c}),_0x5700a4(_0x9e053a,_0x200c9d,0x0,_0x200c9d['childCount']),_0x9e053a['set'](_0x200c9d['getAttribute']('vid_end'),{'userId':_0x1d991c}));}}(this['_touched'],_0x8efa2f,_0x38ef12,_0x38ef12+_0x3a5df0['howMany']);}['_handleMergeOperation'](_0x5c6c24){const _0x46eecd=null===(_0x5c6c24=this['_cloneOperation'](_0x5c6c24,this['_idsRoots']))['_authorId']?null:_0x5c6c24['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1574a3=_0x5c6c24['targetPosition']['parent'],_0xfe13de=_0x5c6c24['sourcePosition']['parent'],_0x1e2f3=_0x1574a3['getAttribute']('vid_end'),_0x5b9445=_0xfe13de['getAttribute']('vid_start');_0x1574a3['_setAttribute']('vid_end',_0xfe13de['getAttribute']('vid_end')),_0xfe13de['_setAttribute']('vid_end',_0x1e2f3),this['_touched']['set'](_0x5b9445,{'userId':_0x46eecd}),this['_touched']['set'](_0x1e2f3,{'userId':_0x46eecd}),_0x5c6c24['_execute']();}['_handleSplitOperation'](_0x351c36){const _0x55c939=null===(_0x351c36=this['_cloneOperation'](_0x351c36,this['_idsRoots']))['_authorId']?null:_0x351c36['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e3173=_0x351c36['graveyardPosition'],_0x1a9212=_0x351c36['splitPosition']['parent'];_0x351c36['_execute']();const _0x53bdae=_0x1a9212['getAttribute']('vid_end'),_0x36bcfc=_0x351c36['insertionPosition']['nodeAfter'];if(_0x4e3173){const _0x306224=_0x36bcfc['getAttribute']('vid_end'),_0x1bc63d=_0x1a9212['getAttribute']('vid_end');_0x1a9212['_setAttribute']('vid_end',_0x306224),_0x36bcfc['_setAttribute']('vid_end',_0x1bc63d),this['_touched']['set'](_0x1a9212['getAttribute']('vid_end'),{'userId':_0x55c939}),this['_touched']['set'](_0x36bcfc['getAttribute']('vid_start'),{'userId':_0x55c939});}else{const _0x3e284e=this['_revisionId']++,_0x48373a=this['_revisionId']++;_0x1a9212['_setAttribute']('vid_end',_0x3e284e),_0x36bcfc['_setAttribute']('vid_start',_0x48373a),_0x36bcfc['_setAttribute']('vid_end',_0x53bdae),this['_touched']['set'](_0x3e284e,{'userId':_0x55c939}),this['_touched']['set'](_0x48373a,{'userId':_0x55c939});}}['_handleMarkerOperation'](_0x15492a){if(!_0x15492a['affectsData'])return;const _0x516752=(_0x15492a=this['_cloneOperation'](_0x15492a,this['_diffRoots']))['oldRange']?_0x15492a['oldRange']['root']:null,_0x13e9e8=_0x15492a['newRange']?_0x15492a['newRange']['root']:null;_0x516752&&this['_markers']['delete'](_0x15492a['name']),_0x13e9e8&&this['_markers']['set'](_0x15492a['name'],_0x15492a['newRange']['clone']());const _0x2badd0=null===_0x15492a['_authorId']?null:_0x15492a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a2cc2=_0x15492a['name'];if(!this['_touchedMarkers']['has'](_0x3a2cc2))return void this['_touchedMarkers']['set'](_0x3a2cc2,{'range':_0x15492a['oldRange'],'userId':_0x2badd0});const _0x31f538=this['_touchedMarkers']['get'](_0x3a2cc2),_0xb1b4a0=_0x31f538['range'],_0x5431e7=_0x15492a['newRange'];null==_0xb1b4a0&&null==_0x5431e7||_0xb1b4a0&&_0x5431e7&&_0xb1b4a0['isEqual'](_0x5431e7)?this['_touchedMarkers']['delete'](_0x15492a['name']):_0x31f538['userId']=_0x2badd0;}['_handleRootOperation'](_0x2ecedc,_0x4d05a8){this['_diffRoots']['has'](_0x2ecedc['rootName'])?this['_diffRoots']['get'](_0x2ecedc['rootName'])['_isAttached']=_0x2ecedc['isAdd']:(this['_diffRoots']['set'](_0x2ecedc['rootName'],P(_0x2ecedc['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2ecedc['rootName'],{}),_0x4d05a8&&this['_idsRoots']['set'](_0x2ecedc['rootName'],P(_0x2ecedc['rootName'],!0x0)));const _0x1c969a=null===_0x2ecedc['_authorId']?null:_0x2ecedc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1caac6=this['_touchedRoots']['get'](_0x2ecedc['rootName']);_0x1caac6&&_0x1caac6['userId']===_0x1c969a?this['_touchedRoots']['delete'](_0x2ecedc['rootName']):this['_touchedRoots']['set'](_0x2ecedc['rootName'],{'userId':_0x1c969a,'isAttached':_0x2ecedc['isAdd']});}['_handleRootAttributeOperation'](_0x330df8){const _0x3bda0b=this['_diffRootsAttributes']['get'](_0x330df8['root']['rootName']);null===_0x330df8['newValue']?delete _0x3bda0b[_0x330df8['key']]:_0x3bda0b[_0x330df8['key']]=_0x330df8['newValue'];}}function N(_0x42acce){const _0x928817=P(_0x42acce['rootName'],_0x42acce['isAttached']());for(const _0x42c5c3 of _0x42acce['getChildren']()){const _0x26cebf=_0x42c5c3['_clone'](!0x0);_0x928817['_appendChild'](_0x26cebf);}return _0x928817;}function P(_0x3d9521,_0x30aef4=!0x0){const _0x7bdcdd=new vt();return _0x7bdcdd['rootName']=_0x3d9521,_0x7bdcdd['_isAttached']=_0x30aef4,_0x7bdcdd['isAttached']=()=>_0x7bdcdd['_isAttached'],_0x7bdcdd;}function F(_0x5e0920,_0x2673ae,_0x5cef8e){const _0x3318a7='elementEnd'==_0x5e0920['type']?_0x5cef8e['createPositionAt'](_0x5e0920['item'],'end'):_0x5cef8e['createPositionBefore'](_0x5e0920['item']);return _0x5cef8e['createPositionFromPath'](_0x2673ae,_0x3318a7['path'],_0x3318a7['stickiness']);}function B(_0x131552,_0x1cfbb3,_0x54059d){const _0x4a4528='elementStart'==_0x131552['type']?_0x54059d['createPositionAt'](_0x131552['item'],0x0):_0x54059d['createPositionAfter'](_0x131552['item']);return _0x54059d['createPositionFromPath'](_0x1cfbb3,_0x4a4528['path'],_0x4a4528['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3cce0b,_0x269c03){super(_0x3cce0b),this['focusTracker']=new _0x407f07(),this['keystrokes']=new _0x2d0756(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x269c03),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x353fc0(this);}['render'](){super['render'](),_0x3f9d14({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x37e462=_0x534d08=>_0x534d08['stopPropagation']();this['keystrokes']['set']('arrowright',_0x37e462),this['keystrokes']['set']('arrowleft',_0x37e462),this['keystrokes']['set']('arrowup',_0x37e462),this['keystrokes']['set']('arrowdown',_0x37e462);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x42b5e9){this['revisionNameInputView']['fieldView']['element']['value']=_0x42b5e9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x50c63b){const _0xfd356b=new _0x22d328(this['locale'],_0xbcae3c),_0x2b29be=_0xfd356b['fieldView'];_0x2b29be['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x350d50=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x50c63b&&(_0x350d50+='\x20('+g(this['locale'],'optional')+')'),(_0xfd356b['label']=_0x350d50,_0x2b29be['on']('input',()=>{this['revisionNameInputValue']=_0x2b29be['element']['value']['trim']();}),_0xfd356b);}}class f extends _0x1efec2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3dde3c=this['editor'],_0x782648=_0x3dde3c['plugins']['get']('RevisionTracker');_0x3dde3c['ui']['componentFactory']['add']('revisionHistory',_0x1a409f=>{const _0x5c45da=_0x555aeb(_0x1a409f),_0x4627be=_0x5c45da['panelView']['children'],_0x40f929=new _0x111916(_0x1a409f),_0xe647ad=new _0x183387(_0x1a409f),_0xa55e19=new te(_0x1a409f),_0x462402=new _0x183387(_0x1a409f),_0x4bf927=new te(_0x1a409f);return _0x5c45da['bind']('isEnabled')['to'](_0x782648,'isReady',_0x782648,'isEnabled',_0x3dde3c,'isReadOnly',(_0x4debf8,_0x6ecef,_0x22af6a)=>_0x4debf8&&_0x6ecef&&!_0x22af6a),_0x5c45da['buttonView']['set']({'icon':_0x4d6637,'label':g(_0x1a409f,'Revision\x20history'),'tooltip':!0x0}),_0xa55e19['set']({'label':g(_0x1a409f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xa55e19['bind']('isEnabled')['to'](_0x782648,'isReady',_0x782648,'isEnabled',_0x3dde3c,'isReadOnly',(_0x80dfda,_0x4b1c2b,_0x560a47)=>_0x80dfda&&_0x4b1c2b&&!_0x560a47),_0xa55e19['on']('execute',()=>this['_showDialog']()),_0x4bf927['set']({'label':g(_0x1a409f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4bf927['bind']('isEnabled')['to'](_0x782648,'isReady',_0x3dde3c,'isReadOnly',(_0x19fced,_0x28cacf)=>_0x19fced&&!_0x28cacf),_0x4bf927['on']('execute',()=>{_0x3dde3c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5c45da['isOpen']=!0x1,_0x3dde3c['editing']['view']['focus']();}),_0xe647ad['children']['add'](_0xa55e19),_0x462402['children']['add'](_0x4bf927),_0x40f929['role']='menu',_0x40f929['items']['addMany']([_0xe647ad,_0x462402]),_0x4627be['add'](_0x40f929),_0x5c45da;}),_0x3dde3c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3f74e1=this['editor'],_0x4bf90b=_0x3f74e1['locale'],_0x1f0d65=new _0x33b627(_0x4bf90b),_0x34f8f4=new _0x1be08d(_0x4bf90b);_0x1f0d65['buttonView']['set']({'icon':_0x4d6637,'label':g(_0x4bf90b,'Revision\x20history')});const _0x349430=new _0x113723(_0x4bf90b,_0x1f0d65),_0x28c54c=new _0xa5e47f(_0x4bf90b);_0x28c54c['set']({'label':g(_0x4bf90b,'Save\x20current\x20revision')}),_0x28c54c['delegate']('execute')['to'](_0x1f0d65),_0x28c54c['on']('execute',()=>{this['_showDialog']();}),_0x349430['children']['add'](_0x28c54c),_0x34f8f4['items']['add'](_0x349430);const _0x2bd5ee=new _0x113723(_0x4bf90b,_0x1f0d65),_0x3439d6=new _0xa5e47f(_0x4bf90b);return _0x3439d6['set']({'label':g(_0x4bf90b,'Open\x20revision\x20history')}),_0x3439d6['delegate']('execute')['to'](_0x1f0d65),_0x3439d6['on']('execute',()=>{_0x3f74e1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2bd5ee['children']['add'](_0x3439d6),_0x34f8f4['items']['add'](_0x2bd5ee),_0x1f0d65['panelView']['children']['add'](_0x34f8f4),_0x1f0d65;}['_showDialog'](){const _0x21d14a=this['editor'],_0x32ed5f=_0x21d14a['locale'],_0xc3661b=_0x21d14a['plugins']['get']('Dialog'),_0x78868f=_0x21d14a['plugins']['get']('RevisionTracker');function _0x2186d0(_0x3a0ddc){_0x21d14a['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3a0ddc['revisionName']?_0x3a0ddc['revisionNameInputView']['errorText']=g(_0x32ed5f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x21d14a['plugins']['get'](u)['saveRevision']({'name':_0x3a0ddc['revisionName']}),_0xc3661b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2186d0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xc3661b['show']({'id':'revisionSave','title':g(_0x32ed5f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x21d14a['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xc3661b['hide']()},{'label':g(_0x21d14a['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5ad396){_0x5ad396['bind']('isEnabled')['to'](_0x78868f,'isReady',_0x78868f,'isEnabled',_0x21d14a,'isReadOnly',(_0x17792f,_0x45b629,_0x58f06d)=>_0x17792f&&_0x45b629&&!_0x58f06d);},'onExecute':()=>_0x2186d0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x15f7f1=this['editor'],_0x2e1b91=_0x15f7f1['locale'];this['_saveRevisionFormView']=new hs(_0x2e1b91,_0x15f7f1['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x370b59,_0x19c802){super(_0x370b59),this['_model']=_0x19c802,this['changeId']=_0x19c802['id'];const _0x46805b=this['bindTemplate'],_0x2932b8=g(_0x370b59,_0x19c802['data']['isSuggestion']?'Suggested\x20by':'add'==_0x19c802['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x19c802['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x46805b['to']('type',_0x535987=>'ck-revision-change__'+_0x535987)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2932b8}]},{'text':'\x20'+_0x19c802['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x2afae(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x57d8e7){super(),this['id']=_0x57d8e7['id']||_0x4511b5(),this['author']=_0x57d8e7['author'],this['type']=_0x57d8e7['type'],this['data']=_0x57d8e7['data']||{},this['rootName']=_0x57d8e7['rootName'],this['set']('createdAt',_0x57d8e7['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(_0x3c698d,_0x1a8187){this['newRevisionId']=_0x3c698d,this['oldRevisionId']=_0x1a8187,this['changes']=new _0x10baa9();}['_setChanges'](_0x46467b){for(const _0x166555 of _0x46467b)this['changes']['add'](_0x166555);}}class m extends _0x1efec2{['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[_0x31e86e,_0x1c3430,I,V];}constructor(_0x59dfe6){super(_0x59dfe6),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',(_0x5d1c92,_0x2ee2bb,_0x20daee)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2f2823=>{for(const _0x223e66 of this['editor']['editing']['view']['document']['roots'])_0x20daee?_0x2f2823['removeClass']('ck-editor__editable__overlay',_0x223e66):_0x2f2823['addClass']('ck-editor__editable__overlay',_0x223e66);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x54f2db=>null!==_0x54f2db),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x270312,_0x284db0,_0x428497)=>_0x270312&&_0x428497?_0x284db0['changes']['getIndex'](_0x428497):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1b80d7,_0x51fab0)=>_0x1b80d7?_0x51fab0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1c3430);}['init'](){const _0x504ac3=this['editor'],_0x54807b=new wt(_0x504ac3,{'direction':'backward'}),_0x16b8b5=new wt(_0x504ac3,{'direction':'forward'});(_0x504ac3['commands']['add']('showPreviousChange',_0x54807b),_0x504ac3['commands']['add']('showNextChange',_0x16b8b5),_0x504ac3['commands']['add']('restoreRevision',new mt(_0x504ac3)),this['on']('change:numberOfChanges',()=>{_0x54807b['refresh'](),_0x16b8b5['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x504ac3['enableReadOnlyMode']('revision-viewer'),_0x504ac3['plugins']['has']('WidgetToolbarRepository'))&&_0x504ac3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1641cd){return await this['_utils']['loadRevisionData'](_0x1641cd,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1641cd);}async['getRevisionRootsAttributes'](_0x19722b){return await this['_utils']['loadRevisionData'](_0x19722b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x19722b);}async['compare'](_0x464e90,_0x16ebbd,_0x2450c7=!0x1){if(!this['isEnabled'])return;const _0x12876f=this['diff'],_0x4f2eba=this['repository'],_0x56e446='string'==typeof _0x464e90?_0x4f2eba['getRevision'](_0x464e90):_0x464e90,_0x36ae14='string'==typeof _0x16ebbd?_0x4f2eba['getRevision'](_0x16ebbd):_0x16ebbd,_0x4246b2=_0x56e446['id'],_0x2041ed=_0x36ae14?_0x36ae14['id']:null;if(!_0x2450c7&&this['diff']&&this['diff']['newRevisionId']===_0x4246b2&&this['diff']['oldRevisionId']===_0x2041ed)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x4246b2,_0x2041ed);const _0x20d7da=this['_getRevisionsRange'](_0x56e446,_0x36ae14,!0x0)['map'](_0x39cc5c=>this['_utils']['loadRevisionData'](_0x39cc5c,this['adapter']));return _0x20d7da['push'](new Promise(_0x55380c=>{setTimeout(_0x55380c,0x14);})),Promise['all'](_0x20d7da)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1fc71f=this['_getDiff'](_0x4246b2,_0x2041ed);for(const _0x297341 of _0x1fc71f['changes'])this['_changeIdToChange']['set'](_0x297341['id'],_0x297341);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3ede9e=>{for(const _0x14604b of this['editor']['model']['document']['getRootNames']())_0x3ede9e['detachRoot'](_0x14604b);for(const _0x4e7957 of Object['keys'](_0x1fc71f['model'])){const _0x2c0f6e=_0x3ede9e['addRoot'](_0x4e7957);for(const _0xfcf923 of Object['keys'](_0x1fc71f['attributes'][_0x4e7957]))_0x3ede9e['setAttribute'](_0xfcf923,_0x1fc71f['attributes'][_0x4e7957][_0xfcf923],_0x2c0f6e);_0x3ede9e['insert'](_0x1fc71f['model'][_0x4e7957],_0x2c0f6e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1fc71f['changes'])),this['isReady']=!0x0;})['catch'](_0x34a172=>{console['error'](_0x34a172),this['_cleanUp'](),_0x12876f&&(this['diff']=_0x12876f),this['isReady']=!0x0;});}['addRevisionData'](_0x739d71,_0x41b10e){const _0x3a2184=this['repository']['createRevision'](_0x739d71);return _0x3a2184['on']('_update',(_0xae7461,_0x2e74f0,_0x32681a)=>_0x41b10e(_0x2e74f0,_0x32681a,_0x3a2184)),this['repository']['addRevision'](_0x3a2184),_0x3a2184;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5ea370=>{for(const _0x4f17f0 of this['editor']['model']['document']['getRootNames']())_0x5ea370['detachRoot'](_0x4f17f0);});}['_sortAndFilterDiffChanges'](_0x48743d){const _0x70607f=[],_0x4820e8=new Map();for(const _0x2653d7 of this['editor']['model']['document']['getRootNames']()){const _0xe66895=this['editor']['editing']['view']['getDomRoot'](_0x2653d7);if(!_0xe66895)continue;const _0x75e8a6=_0xe66895['getClientRects']()['item'](0x0);_0x75e8a6&&(_0x70607f['push'](_0x2653d7),_0x4820e8['set'](_0x2653d7,_0x75e8a6));}return _0x70607f['sort']((_0x408645,_0x22d4f0)=>{const _0x18ccec=_0x4820e8['get'](_0x408645),_0x1967e1=_0x4820e8['get'](_0x22d4f0);return _0x18ccec['y']-_0x1967e1['y']||_0x18ccec['x']-_0x1967e1['x'];}),(_0x48743d=_0x48743d['filter'](_0x5f5a63=>_0x70607f['includes'](_0x5f5a63['rootName'])))['sort']((_0x343a45,_0x435a17)=>_0x70607f['indexOf'](_0x343a45['rootName'])-_0x70607f['indexOf'](_0x435a17['rootName'])),_0x48743d;}['_makeTape'](_0x17967c){const _0x239dcf=Array['from'](_0x17967c['markers'])['filter'](([_0x380877,_0x2716d8])=>_0x380877['startsWith']('revision:')&&!_0x2716d8['isCollapsed']),_0xcfbc1c=Array['from'](this['editor']['model']['createRangeIn'](_0x17967c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x239dcf['length'])for(const _0x415cf6 of _0xcfbc1c){const [_0x3f5a1d,_0x291141]=_0x239dcf[0x0],[,_0x47430e,_0xa7ff8b]=_0x3f5a1d['split'](':');if(_0x291141['end']['isEqual'](_0x415cf6['nextPosition'])&&_0x239dcf['shift'](),(_0x415cf6['previousPosition']['isEqual'](_0x291141['start'])||_0x415cf6['previousPosition']['isAfter'](_0x291141['start']))&&('insertion'==_0x47430e?_0x415cf6['isAdded']={'userId':_0xa7ff8b}:'deletion'==_0x47430e&&(_0x415cf6['isRemoved']={'userId':_0xa7ff8b})),0x0==_0x239dcf['length'])break;}return _0xcfbc1c;}['_refreshStartEndIndex'](_0x253193){const _0x20185d=new Map();for(let _0x2d9ea4=0x0;_0x2d9ea4<_0x253193['length'];_0x2d9ea4++)'text'===_0x253193[_0x2d9ea4]['type']?(_0x253193[_0x2d9ea4]['item']['startIndex']=_0x2d9ea4,_0x253193[_0x2d9ea4]['item']['endIndex']=_0x2d9ea4):('elementStart'===_0x253193[_0x2d9ea4]['type']?_0x253193[_0x2d9ea4]['item']['startIndex']=_0x2d9ea4:'elementEnd'===_0x253193[_0x2d9ea4]['type']&&(_0x253193[_0x2d9ea4]['item']['endIndex']=_0x2d9ea4),_0x20185d['set'](_0x253193[_0x2d9ea4]['id'],_0x2d9ea4));for(const _0x537c9f of _0x20185d['values']())'elementStart'===_0x253193[_0x537c9f]['type']?_0x253193[_0x537c9f]['item']['endIndex']=_0x20185d['get'](_0x253193[_0x537c9f]['pairId']):'elementEnd'===_0x253193[_0x537c9f]['type']&&(_0x253193[_0x537c9f]['item']['startIndex']=_0x20185d['get'](_0x253193[_0x537c9f]['pairId']));}['_processTape'](_0x43ce06){for(let _0x7b4896=0x0;_0x7b4896<_0x43ce06['length'];_0x7b4896++){if('elementStart'===_0x43ce06[_0x7b4896]['type'])_0x43ce06[_0x7b4896]['item']['startIndex']=_0x7b4896;else{if('elementEnd'===_0x43ce06[_0x7b4896]['type']){_0x43ce06[_0x7b4896]['item']['endIndex']=_0x7b4896;const _0x7de92f=_0x43ce06[_0x7b4896]['item']['startIndex'];_0x43ce06[_0x7de92f]['pairId']=_0x43ce06[_0x7b4896]['id'],_0x43ce06[_0x7b4896]['pairId']=_0x43ce06[_0x7de92f]['id'];}else _0x43ce06[_0x7b4896]['item']['startIndex']=_0x7b4896,_0x43ce06[_0x7b4896]['item']['endIndex']=_0x7b4896,_0x43ce06[_0x7b4896]['pairId']=null;}_0x43ce06[_0x7b4896]['markersStart']||(_0x43ce06[_0x7b4896]['markersStart']=[],_0x43ce06[_0x7b4896]['markersEnd']=[]);}}['_markInsertions'](_0x43d6c2,_0x556abb){const _0x3383db=_0x43d6c2['filter'](_0x40b339=>!_0x40b339['isAdded']);for(let _0x6ec7b1=0x0;_0x6ec7b1<_0x556abb['length'];_0x6ec7b1++)_0x556abb[_0x6ec7b1]['isAdded']&&(_0x3383db[_0x6ec7b1]['isAdded']=_0x556abb[_0x6ec7b1]['isAdded']);}['_getDiff'](_0xe1318b,_0x5a1be3=null){const _0x146f6e=this['repository']['getRevision'](_0xe1318b),_0x47da69=_0x5a1be3?this['repository']['getRevision'](_0x5a1be3):null,_0x219708=this['_getRevisionsRange'](_0x146f6e,_0x47da69),_0x126fcf=_0x219708[_0x219708['length']-0x1],_0x496585=new Map(),_0xc6dedd={'model':{},'attributes':{},'changes':[]},_0x77312c=new Set(),_0x36aee3=new Map();for(let _0x3c80bd=_0x219708['length']-0x1;_0x3c80bd>=0x0;_0x3c80bd--){const _0x2615ad=_0x219708[_0x3c80bd];for(const _0x363f5c of Object['keys'](_0x2615ad['diffData']))if(_0x2615ad['diffData'][_0x363f5c]['attachChange']){const _0x3fd644=_0x2615ad['diffData'][_0x363f5c]['attachChange'];_0x3fd644['isAttached']?(_0x77312c['add'](_0x363f5c),_0x36aee3['has'](_0x363f5c)&&_0x36aee3['get'](_0x363f5c)['userId']==_0x3fd644['userId']?_0x36aee3['delete'](_0x363f5c):_0x36aee3['set'](_0x363f5c,_0x3fd644)):_0x36aee3['has'](_0x363f5c)?(_0x77312c['delete'](_0x363f5c),_0x36aee3['delete'](_0x363f5c)):(_0x77312c['add'](_0x363f5c),_0x36aee3['set'](_0x363f5c,_0x3fd644));}else _0x77312c['add'](_0x363f5c);}for(const _0x48a450 of _0x77312c){const _0x293190=_0x36aee3['has'](_0x48a450)&&!_0x36aee3['get'](_0x48a450)['isAttached'];let _0x55600c=_0x293190?_0x219708['length']-0x1:0x0;const _0x2768e0=_0x293190?-0x1:0x1;for(;_0x219708[_0x55600c];){const _0x4af567=_0x219708[_0x55600c];if(_0x4af567['diffData'][_0x48a450]){const _0x1ed993=_0x293190?_0x4af567['diffData'][_0x48a450]['attributesBefore']:_0x4af567['diffData'][_0x48a450]['attributesAfter'];_0xc6dedd['attributes'][_0x48a450]=_0x1ed993?_0x4af798(_0x1ed993):{};break;}_0x55600c+=_0x2768e0;}}for(const _0x24b253 of _0x219708){_0x24b253['model']={};for(const _0x327168 of _0x24b253['authors'])_0x496585['set'](_0x327168['id'],_0x327168);for(const _0x40d117 of _0x77312c){const _0x3e5357=_0x24b253['diffData'][_0x40d117]?_0x24b253['diffData'][_0x40d117]['insertions']:'[]',_0x2dccb9=_0x24b253['diffData'][_0x40d117]?_0x24b253['diffData'][_0x40d117]['deletions']:'[]';_0x24b253['model'][_0x40d117]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3e5357),'deletions':this['_utils']['_makeModelFromViewString'](_0x2dccb9)};}}for(const _0x78f5f0 of _0x77312c){let _0x15862f=null,_0x3e3ebb=0x0;const _0x1ff7b9=new Map(Array['from'](_0x146f6e['model'][_0x78f5f0]['insertions']['markers'])['filter'](([_0x15478c])=>!_0x15478c['startsWith']('revision:')));let _0x52e380=0x0;for(const _0x5ab13c of _0x219708){const _0xb1face=this['_makeTape'](_0x5ab13c['model'][_0x78f5f0]['insertions']);_0x5ab13c==_0x146f6e?(_0x15862f=_0xb1face,_0x3e3ebb=_0x15862f['length'],_0x15862f['forEach'](_0xa8f34=>{_0xa8f34['id']=_0x52e380++;}),this['_processTape'](_0x15862f)):this['_markInsertions'](_0x15862f,_0xb1face);const _0x1d6a6c=_0x15862f['filter'](_0x4cfa43=>!_0x4cfa43['isAdded'])['map'](_0x535e2b=>_0x535e2b['id']);let _0x42d010=0x0;const _0x296e21=this['_makeTape'](_0x5ab13c['model'][_0x78f5f0]['deletions']);_0x296e21['forEach'](_0x1b4aa5=>{_0x1b4aa5['isRemoved']?_0x1b4aa5['id']=_0x3e3ebb++:_0x1b4aa5['id']=_0x1d6a6c[_0x42d010++];}),this['_processTape'](_0x296e21),this['_setDistance'](_0x15862f,'isAdded'),this['_setDistance'](_0x296e21,'isRemoved'),_0x5ab13c==_0x146f6e&&this['_markMarkers'](_0x15862f,_0x1ff7b9),_0x15862f=this['_joinTapes'](_0x15862f,_0x296e21),this['_refreshStartEndIndex'](_0x15862f),this['_setDistance'](_0x15862f,'isRemoved');}_0x15862f=_0x15862f['filter'](_0x8a58dd=>!(_0x8a58dd['isAdded']&&_0x8a58dd['isRemoved']));const _0x376110=new Map(_0x126fcf['model'][_0x78f5f0]['deletions']['markers']),_0x374d5b=new Set(_0x1ff7b9['keys']());for(const _0x2259a7 of _0x376110['keys']())_0x374d5b['delete'](_0x2259a7);this['_markSuggestions'](_0x15862f,_0x374d5b),this['_fixObsoleteTags'](_0x15862f),_0x15862f=this['_removeMissingPairs'](_0x15862f),_0x15862f=this['_markMismatchedRemovedTags'](_0x15862f),_0x15862f=this['_removeUnsupportedChanges'](_0x15862f);const {root:_0x5d2ff1,changes:_0x1bdc01}=this['_makeModelFromTape'](_0x15862f,_0x496585,_0x78f5f0);_0xc6dedd['model'][_0x78f5f0]=_0x5d2ff1;const _0x4b2d61=_0x36aee3['get'](_0x78f5f0);if(_0x4b2d61){const _0x2e7be6=_0x496585['get'](_0x4b2d61['userId']),_0xb4d4f0=new r({'author':_0x2e7be6,'type':_0x4b2d61['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x78f5f0});_0x1bdc01['unshift'](_0xb4d4f0),_0xc6dedd['attributes'][_0x78f5f0]['revisionHistoryAttachChange']=_0xb4d4f0['id'];}_0xc6dedd['changes']=_0xc6dedd['changes']['concat'](_0x1bdc01);}return _0xc6dedd;}['_markMarkers'](_0x476064,_0x3ba1b2){for(let _0x5d4799=0x0;_0x5d4799<_0x476064['length'];_0x5d4799++)for(const [_0x1ecc6d,_0x2e21c6]of _0x3ba1b2)!_0x2e21c6['isCollapsed']&&_0x2e21c6['start']['isEqual'](_0x476064[_0x5d4799]['previousPosition'])&&_0x476064[_0x5d4799]['markersStart']['push'](_0x1ecc6d),_0x2e21c6['end']['isEqual'](_0x476064[_0x5d4799]['nextPosition'])&&_0x476064[_0x5d4799]['markersEnd']['push'](_0x1ecc6d);}['_joinTapes'](_0x421598,_0x1a4cd8){let _0xf1147b=[],_0x5550=0x0,_0x423cd6=0x0;for(;_0x5550<_0x421598['length']||_0x423cd6<_0x1a4cd8['length'];){const _0x52f9ff=_0x421598[_0x5550]||{},_0x69b17c=_0x1a4cd8[_0x423cd6]||{};if(_0x52f9ff['id']==_0x69b17c['id'])_0x5550++,_0x423cd6++,_0xf1147b['push'](_0x52f9ff);else{if(_0x69b17c['isRemoved']&&_0x52f9ff['isAdded']){const {commonTape:_0x4c5ce2,iEnd:_0x370c38,jEnd:_0x2f9981}=this['_threeWayMerge'](_0x421598,_0x5550,_0x1a4cd8,_0x423cd6);_0xf1147b=_0xf1147b['concat'](_0x4c5ce2),_0x5550=_0x370c38,_0x423cd6=_0x2f9981;}else _0x69b17c['isRemoved']?(_0x423cd6++,_0xf1147b['push'](_0x69b17c)):(_0x5550++,_0xf1147b['push'](_0x52f9ff));}}return _0xf1147b;}['_markSuggestions'](_0x2667cb,_0x49dc4e){const _0x305496=[];for(let _0x5e3fe9=0x0;_0x5e3fe9<_0x2667cb['length'];_0x5e3fe9++){for(let _0x48b4a2=0x0;_0x48b4a2<_0x2667cb[_0x5e3fe9]['markersStart']['length'];_0x48b4a2++){const _0x4fb845=_0x2667cb[_0x5e3fe9]['markersStart'][_0x48b4a2];if(!_0x49dc4e['has'](_0x4fb845))continue;const {group:_0x3c0b2e,type:_0x56bdac,authorId:_0x24cc3a}=_0x2a11c0(_0x4fb845);'revision-suggestion'!=_0x3c0b2e||'insertion'!=_0x56bdac&&'deletion'!=_0x56bdac||(_0x305496['unshift']({'type':_0x56bdac,'name':_0x4fb845,'userId':_0x24cc3a}),_0x2667cb[_0x5e3fe9]['markersStart']['splice'](_0x48b4a2,0x1),_0x48b4a2--);}_0x1da9d4(_0x2667cb[_0x5e3fe9]);for(let _0x2b7e69=0x0;_0x2b7e69<_0x2667cb[_0x5e3fe9]['markersEnd']['length'];_0x2b7e69++){const _0x16291b=_0x2667cb[_0x5e3fe9]['markersEnd'][_0x2b7e69];if(!_0x49dc4e['has'](_0x16291b))continue;const {group:_0x1769e8,type:_0x2f589a}=_0x2a11c0(_0x16291b);if('revision-suggestion'!=_0x1769e8||'insertion'!=_0x2f589a&&'deletion'!=_0x2f589a)continue;_0x2667cb[_0x5e3fe9]['markersEnd']['splice'](_0x2b7e69,0x1),_0x2b7e69--;const _0x4cb515=_0x305496['findIndex'](_0x6af384=>_0x6af384['name']==_0x16291b);_0x4cb515>-0x1&&_0x305496['splice'](_0x4cb515,0x1);}}function _0x2a11c0(_0x388904){const _0x336065=_0x388904['split'](':');return{'group':_0x336065[0x0],'type':_0x336065[0x1],'subType':_0x336065['length']>=0x5?_0x336065[0x2]:null,'id':_0x336065['length']<0x5?_0x336065[0x2]:_0x336065[0x3],'authorId':_0x336065['length']<0x5?_0x336065[0x3]:_0x336065[0x4],'markerCount':0x6==_0x336065['length']?_0x336065[0x5]:null};}function _0x1da9d4(_0x5487a3){for(let _0x36478e=0x0;_0x36478e<_0x305496['length'];_0x36478e++){if(_0x5487a3['isAdded']&&'insertion'==_0x305496[_0x36478e]['type'])return _0x5487a3['isAddSuggestion']=_0x305496[_0x36478e],void delete _0x5487a3['isAdded'];if(!_0x5487a3['isAdded']&&!_0x5487a3['isRemoved']&&'deletion'==_0x305496[_0x36478e]['type'])return void(_0x5487a3['isRemoveSuggestion']=_0x305496[_0x36478e]);}}}['_setDistance'](_0x123989,_0x336707){let _0x226750=0x0,_0xa9197=!0x1;const _0x18a45e=new Map();for(const _0x3b845b of _0x123989)_0x3b845b[_0x336707]?_0xa9197&&(_0x226750++,_0xa9197=!0x1):(_0x226750++,_0xa9197=!0x0),_0x18a45e['set'](_0x3b845b['id'],_0x226750);for(let _0x136188=0x0;_0x136188<_0x123989['length'];_0x136188++){if('isRemoved'==_0x336707&&_0x123989[_0x136188]['isAdded']||'isAdded'==_0x336707&&_0x123989[_0x136188]['isRemoved'])continue;if('text'==_0x123989[_0x136188]['type']){_0x123989[_0x136188]['distance']=0x0;continue;}const _0x1f8a61=_0x18a45e['get'](_0x123989[_0x136188]['pairId']),_0x10d39e=_0x18a45e['get'](_0x123989[_0x136188]['id']);_0x123989[_0x136188]['distance']=_0x1f8a61-_0x10d39e;}}['_getRevisionsRange'](_0x546f18,_0x3b5a98,_0x1be14a=!0x1){const _0x5932d1=[];let _0x232bd6=this['repository']['getIndex'](_0x546f18),_0x1fc68c=this['repository']['getIndex'](_0x3b5a98);for(-0x1==_0x1fc68c&&(_0x1fc68c=this['repository']['_revisions']['length'],_0x1be14a=!0x1);_0x232bd6<_0x1fc68c;)_0x5932d1['push'](this['repository']['getRevision'](_0x232bd6)),_0x232bd6++;return _0x1be14a&&_0x5932d1['push'](this['repository']['getRevision'](_0x232bd6)),_0x5932d1;}['_threeWayMerge'](_0x29f10e,_0x49fb63,_0x43893b,_0x3da6dc){const _0x4db22d=this['editor']['model']['schema'];let _0xc8c6b3=_0x49fb63;for(;_0x29f10e[_0xc8c6b3]&&_0x29f10e[_0xc8c6b3]['isAdded'];)_0xc8c6b3++;let _0x438e47=_0x3da6dc;for(;_0x43893b[_0x438e47]&&_0x43893b[_0x438e47]['isRemoved'];)_0x438e47++;_0x34fd10(_0x29f10e,_0x49fb63,_0xc8c6b3),_0x34fd10(_0x43893b,_0x3da6dc,_0x438e47);const _0x340493=_0x43893b['slice'](_0x3da6dc,_0x438e47)['concat'](_0x29f10e['slice'](_0x49fb63,_0xc8c6b3));return _0x340493['sort']((_0x249f3c,_0x38f52b)=>_0x249f3c['side']!=_0x38f52b['side']?_0x249f3c['side']-_0x38f52b['side']:_0x249f3c['level']!=_0x38f52b['level']?_0x249f3c['level']-_0x38f52b['level']:_0x249f3c['distance']!=_0x38f52b['distance']?_0x38f52b['distance']-_0x249f3c['distance']:!!_0x249f3c['isAdded']!=!!_0x38f52b['isAdded']?-0x1==_0x249f3c['side']||0x0==_0x249f3c['side']?_0x249f3c['isAdded']?-0x1:0x1:_0x249f3c['isAdded']?0x1:-0x1:_0x249f3c['index']-_0x38f52b['index']),{'commonTape':_0x340493,'iEnd':_0xc8c6b3,'jEnd':_0x438e47};function _0x34fd10(_0x4fbd5b,_0xf09546,_0x1af157){let _0x43abf4=-0x1,_0x43d250=Number['POSITIVE_INFINITY'],_0x58a16f=!0x0;for(let _0x4b6ea1=_0xf09546;_0x4b6ea1<_0x1af157;_0x4b6ea1++)if(_0x4db22d['isInline'](_0x4fbd5b[_0x4b6ea1]['item'])||(_0x58a16f=!0x1),_0x4fbd5b[_0x4b6ea1]['item']['startIndex']<_0xf09546&&(_0x43abf4=_0x4b6ea1),_0x4fbd5b[_0x4b6ea1]['item']['endIndex']>=_0x1af157){_0x43d250=_0x4b6ea1;break;}_0x58a16f&&(_0x43abf4=_0x1af157-0x1);for(let _0x4dee06=_0xf09546;_0x4dee06<_0x1af157;_0x4dee06++)_0x4fbd5b[_0x4dee06]['side']=_0x4dee06<=_0x43abf4?-0x1:_0x4dee06<_0x43d250?0x0:0x1,_0x4fbd5b[_0x4dee06]['index']=_0x4dee06;let _0x15b151=0x0;for(let _0xe442b6=_0xf09546;_0xe442b6<=_0x43abf4;_0xe442b6++)0x0==_0x4fbd5b[_0xe442b6]['distance']?_0x4fbd5b[_0xe442b6]['level']=_0x15b151:(_0x15b151++,_0x4fbd5b[_0xe442b6]['level']=_0x15b151,_0x15b151++);for(let _0x3543b6=_0xf09546;_0x3543b6<_0x1af157;_0x3543b6++)0x0==_0x4fbd5b[_0x3543b6]['side']&&(_0x4fbd5b[_0x3543b6]['level']=_0x15b151);_0x15b151=0x0;for(let _0x493b72=_0x1af157-0x1;_0x493b72>=_0x43d250;_0x493b72--)0x0==_0x4fbd5b[_0x493b72]['distance']?_0x4fbd5b[_0x493b72]['level']=_0x15b151:(_0x15b151--,_0x4fbd5b[_0x493b72]['level']=_0x15b151,_0x15b151--);}}['_fixObsoleteTags'](_0x590f89){const _0x1dde1a=new Map(),_0xb579c6=this['editor']['model']['schema'];for(let _0x277ba0=0x1;_0x277ba0<_0x590f89['length'];_0x277ba0++){let _0x5546b,_0x599b7c,_0x2ab0ce;const _0x4d1b14=_0x590f89[_0x277ba0],_0x1b724d=_0x590f89[_0x277ba0-0x1];if('text'==_0x4d1b14['type'])continue;if(_0x4d1b14['type']!=_0x1b724d['type'])continue;if(!_0xb579c6['isBlock'](_0x1b724d['item'])||_0xb579c6['isLimit'](_0x1b724d['item']))continue;if(!_0xb579c6['isBlock'](_0x4d1b14['item'])||_0xb579c6['isLimit'](_0x4d1b14['item']))continue;if((_0x590f89[_0x277ba0]['isAdded']||_0x590f89[_0x277ba0]['isAddSuggestion'])&&_0x590f89[_0x277ba0-0x1]['isRemoved'])_0x5546b=_0x590f89[_0x277ba0],_0x599b7c=_0x590f89[_0x277ba0-0x1],_0x2ab0ce=_0x277ba0-0x1;else{if(!_0x590f89[_0x277ba0]['isRemoved']||!_0x590f89[_0x277ba0-0x1]['isAdded']&&!_0x590f89[_0x277ba0-0x1]['isAddSuggestion'])continue;_0x5546b=_0x590f89[_0x277ba0-0x1],_0x599b7c=_0x590f89[_0x277ba0],_0x2ab0ce=_0x277ba0;}const _0x4ec202=_0x5546b['level']==_0x599b7c['level'],_0x551cd9=Math['abs'](_0x5546b['level'])<Math['abs'](_0x599b7c['level'])&&0x0==_0x599b7c['distance'];(_0x4ec202||_0x551cd9)&&(_0x1dde1a['set'](_0x599b7c['id'],_0x5546b['id']),_0x590f89['splice'](_0x2ab0ce,0x1),_0x277ba0--,_0x5546b['isAdded']=!0x1);}for(let _0x25bc02=0x0;_0x25bc02<_0x590f89['length'];_0x25bc02++)_0x1dde1a['has'](_0x590f89[_0x25bc02]['pairId'])&&(_0x590f89[_0x25bc02]['pairId']=_0x1dde1a['get'](_0x590f89[_0x25bc02]['pairId']));}['_removeMissingPairs'](_0x45c740){const _0xc1c0df=new Set(_0x45c740['map'](_0x4eaab8=>_0x4eaab8['id']));for(let _0x4d0de7=0x0;_0x4d0de7<_0x45c740['length'];_0x4d0de7++)_0xc1c0df['has'](_0x45c740[_0x4d0de7]['pairId'])||0x0==_0x45c740[_0x4d0de7]['distance']||(_0x45c740[_0x4d0de7]['isIncorrect']=!0x0);return _0x45c740['filter'](_0x3fb332=>!_0x3fb332['isIncorrect']);}['_markMismatchedRemovedTags'](_0x31f255){const _0x30fa31=new Set();for(let _0x2bec9f=0x0;_0x2bec9f<_0x31f255['length'];_0x2bec9f++){if(_0x30fa31['has'](_0x31f255[_0x2bec9f]['id'])&&_0x31f255[_0x2bec9f]['isRemoved']&&(_0x31f255[_0x2bec9f]['isIncorrect']=!0x0),_0x31f255[_0x2bec9f]['isIncorrect'])continue;if(0x0==_0x31f255[_0x2bec9f]['distance'])continue;if('elementStart'!=_0x31f255[_0x2bec9f]['type'])continue;if(null==_0x31f255[_0x2bec9f]['pairId'])continue;let _0x169db5=_0x2bec9f+0x1,_0x50f8b9=0x0;for(;_0x31f255[_0x169db5]['id']!=_0x31f255[_0x2bec9f]['pairId'];)'elementStart'==_0x31f255[_0x169db5]['type']?_0x50f8b9++:'elementEnd'==_0x31f255[_0x169db5]['type']&&_0x50f8b9--,_0x169db5++;if(0x0!=_0x50f8b9){if(_0x31f255[_0x2bec9f]['isRemoved'])_0x31f255[_0x2bec9f]['isIncorrect']=!0x0;else{for(;_0x169db5!=_0x2bec9f;)_0x31f255[_0x169db5]['isRemoved']&&0x0!=_0x31f255[_0x169db5]['distance']&&(_0x31f255[_0x169db5]['isIncorrect']=!0x0,_0x30fa31['add'](_0x31f255[_0x169db5]['pairId'])),_0x169db5--;}}}return _0x31f255['filter'](_0x400f6f=>!_0x400f6f['isIncorrect']);}['_removeUnsupportedChanges'](_0x47288c){const _0x1e4039=this['editor']['model']['schema'];for(let _0x1b129f=0x0;_0x1b129f<_0x47288c['length'];_0x1b129f++){if(!(_0x47288c[_0x1b129f]['isAdded']||_0x47288c[_0x1b129f]['isAddSuggestion']||_0x47288c[_0x1b129f]['isRemoved']||_0x47288c[_0x1b129f]['isRemoveSuggestion']))continue;if(0x0==_0x47288c[_0x1b129f]['distance'])continue;const _0x1a9f11=_0x47288c[_0x1b129f]['item'];_0x1e4039['isBlock'](_0x1a9f11)||_0x1e4039['isLimit'](_0x1a9f11)||(_0x47288c[_0x1b129f]['isAdded']&&delete _0x47288c[_0x1b129f]['isAdded'],_0x47288c[_0x1b129f]['isAddSuggestion']&&delete _0x47288c[_0x1b129f]['isAddSuggestion'],_0x47288c[_0x1b129f]['isRemoveSuggestion']&&delete _0x47288c[_0x1b129f]['isRemoveSuggestion'],_0x47288c[_0x1b129f]['isRemoved']&&(_0x47288c[_0x1b129f]['isIncorrect']=!0x0));}return _0x47288c['filter'](_0xf8a2f5=>!_0xf8a2f5['isIncorrect']);}['_makeModelFromTape'](_0x3f6991,_0x3efbf0,_0x35ccde){const _0x53cda0=new vt(),_0x54a5d2=[],_0x61afda=new Map(),_0x167cdb=this['editor']['model'],_0x111c47=_0x167cdb['schema'],_0x5c67de=[_0x53cda0],_0x208f4a={},_0x19484f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xac7f7d=null;const _0xf2e8a=[0x0];for(let _0x383035=0x0;_0x383035<_0x3f6991['length'];_0x383035++)if('elementStart'===_0x3f6991[_0x383035]['type']){_0x3f6991[_0x383035]['previousPosition']=_0x167cdb['createPositionFromPath'](_0x53cda0,_0xf2e8a);const _0x376a53=new ut(_0x3f6991[_0x383035]['item']['name'],_0x3f6991[_0x383035]['item']['getAttributes']());_0x5c67de[0x0]['_appendChild'](_0x376a53),_0xf2e8a['push'](0x0),_0x5c67de['unshift'](_0x376a53),_0x3f6991[_0x383035]['nextPosition']=_0x167cdb['createPositionFromPath'](_0x53cda0,_0xf2e8a);}else'elementEnd'===_0x3f6991[_0x383035]['type']?(_0x5c67de['shift'](),_0x3f6991[_0x383035]['previousPosition']=_0x167cdb['createPositionFromPath'](_0x53cda0,_0xf2e8a),_0xf2e8a['pop'](),_0xf2e8a[_0xf2e8a['length']-0x1]++,_0x3f6991[_0x383035]['nextPosition']=_0x167cdb['createPositionFromPath'](_0x53cda0,_0xf2e8a)):(_0x3f6991[_0x383035]['previousPosition']=_0x167cdb['createPositionFromPath'](_0x53cda0,_0xf2e8a),_0xac7f7d?_0xac7f7d['_data']+=_0x3f6991[_0x383035]['item']['data']:_0xac7f7d=new gt(_0x3f6991[_0x383035]['item']['data'],_0x3f6991[_0x383035]['item']['getAttributes']()),_0x3f6991[_0x383035+0x1]&&'text'===_0x3f6991[_0x383035+0x1]['type']&&_0x3caec1(_0xac7f7d,_0x3f6991[_0x383035+0x1]['item'])||(_0x5c67de[0x0]['_appendChild'](_0xac7f7d),_0xac7f7d=null),_0xf2e8a[_0xf2e8a['length']-0x1]+=_0x3f6991[_0x383035]['item']['offsetSize'],_0x3f6991[_0x383035]['nextPosition']=_0x167cdb['createPositionFromPath'](_0x53cda0,_0xf2e8a));for(let _0x33a0bf=0x0;_0x33a0bf<_0x3f6991['length'];_0x33a0bf++){const _0x11f6b7=_0x3f6991[_0x33a0bf]['previousPosition'],_0x3517e4=_0x3f6991[_0x33a0bf]['nextPosition'];for(const _0x14a67e of _0x3f6991[_0x33a0bf]['markersStart'])_0x61afda['set'](_0x14a67e,{'start':_0x11f6b7,'end':null});_0x332921('isRemoveSuggestion',_0x33a0bf,_0x11f6b7,_0x3517e4),_0x332921('isAddSuggestion',_0x33a0bf,_0x11f6b7,_0x3517e4),_0x332921('isRemoved',_0x33a0bf,_0x11f6b7,_0x3517e4),_0x332921('isAdded',_0x33a0bf,_0x11f6b7,_0x3517e4);for(const _0x58716f of _0x3f6991[_0x33a0bf]['markersEnd']){const _0x775e6b=_0x61afda['get'](_0x58716f);_0x775e6b?_0x775e6b['end']=_0x3517e4:_0x61afda['set'](_0x58716f,{'start':_0x3517e4,'end':_0x3517e4});}}for(const [_0x549502,_0x3fe491]of _0x61afda){const _0x8a55cc=this['editor']['model']['createRange'](_0x3fe491['start'],_0x3fe491['end']);_0x53cda0['markers']['set'](_0x549502,_0x8a55cc);}return _0x54a5d2['sort']((_0x7a4015,_0x196a99)=>{const _0xcd8f04=_0x53cda0['markers']['get']('revision:'+_0x7a4015['id']),_0x345c3d=_0x53cda0['markers']['get']('revision:'+_0x196a99['id']);return _0xcd8f04['start']['isBefore'](_0x345c3d['start'])?-0x1:_0xcd8f04['start']['isAfter'](_0x345c3d['start'])?0x1:_0xcd8f04['end']['isBefore'](_0x345c3d['end'])?-0x1:_0xcd8f04['end']['isAfter'](_0x345c3d['end'])?0x1:'add'===_0x7a4015['type']?-0x1:0x1;}),{'root':_0x53cda0,'changes':_0x54a5d2};function _0x332921(_0x4ff0db,_0x4d2059,_0x257a6b,_0x1daab0){const _0x89b9ba=!!_0x3f6991[_0x4d2059][_0x4ff0db],_0x490fb0=_0x89b9ba?_0x3f6991[_0x4d2059][_0x4ff0db]['userId']:null,_0x47bc0f=_0x4d2059===_0x3f6991['length']-0x1,_0x3a22a1=_0x19484f[_0x4ff0db][0x0],_0x5221f5=_0x111c47['isObject'](_0x3f6991[_0x4d2059]['item']);!_0x208f4a[_0x4ff0db]&&_0x89b9ba?_0x208f4a[_0x4ff0db]={'start':_0x257a6b,'tapeItem':_0x3f6991[_0x4d2059],'userId':_0x490fb0,'type':_0x4ff0db}:_0x208f4a[_0x4ff0db]&&!_0x89b9ba?(_0x208f4a[_0x4ff0db]['end']=_0x257a6b,_0x3062a7(_0x208f4a[_0x4ff0db]),_0x208f4a[_0x4ff0db]=null):_0x208f4a[_0x4ff0db]&&_0x89b9ba&&_0x208f4a[_0x4ff0db]['userId']!==_0x490fb0&&(_0x208f4a[_0x4ff0db]['end']=_0x257a6b,_0x3a22a1&&_0x3a22a1['userId']===_0x208f4a[_0x4ff0db]['userId']||_0x3062a7(_0x208f4a[_0x4ff0db]),_0x208f4a[_0x4ff0db]={'start':_0x257a6b,'tapeItem':_0x3f6991[_0x4d2059],'userId':_0x490fb0,'type':_0x4ff0db}),_0x208f4a[_0x4ff0db]&&_0x5221f5&&('elementStart'!==_0x3f6991[_0x4d2059]['type']||_0x3a22a1&&_0x3a22a1['userId']===_0x490fb0||_0x19484f[_0x4ff0db]['unshift']({'userId':_0x490fb0,'object':_0x3f6991[_0x4d2059]['item'],'change':_0x208f4a[_0x4ff0db]}),'elementEnd'===_0x3f6991[_0x4d2059]['type']&&_0x3a22a1&&_0x3a22a1['object']===_0x3f6991[_0x4d2059]['item']&&(_0x19484f[_0x4ff0db]['shift'](),_0x208f4a[_0x4ff0db]=_0x3a22a1['change'])),_0x208f4a[_0x4ff0db]&&_0x47bc0f&&(_0x208f4a[_0x4ff0db]['end']=_0x1daab0,_0x3062a7(_0x208f4a[_0x4ff0db]),_0x208f4a[_0x4ff0db]=null);}function _0x3062a7({start:_0x31c34c,end:_0x12d9f0,tapeItem:_0x3edd77,userId:_0x1fac21,type:_0x24de73}){const _0x32872f=_0x3edd77['item'],_0x3aa270=_0x167cdb['schema']['isBlock'](_0x32872f)&&!_0x167cdb['schema']['isLimit'](_0x32872f),_0x474606=_0x31c34c['nodeAfter']==_0x12d9f0['parent']&&_0x12d9f0['isAtStart'];if(_0x3aa270&&_0x474606)return;const _0xb6e190=_0x167cdb['createRange'](_0x31c34c,_0x12d9f0),_0x2b60c7=_0x3efbf0['get'](_0x1fac21),_0x375765=new r({'author':_0x2b60c7,'type':'isAdded'==_0x24de73||'isAddSuggestion'==_0x24de73?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x24de73||'isRemoveSuggestion'==_0x24de73},'createdAt':new Date(),'rootName':_0x35ccde});_0x54a5d2['push'](_0x375765),_0x53cda0['markers']['set']('revision:'+_0x375765['id'],_0xb6e190);}function _0x3caec1(_0x546b68,_0x27ea95){const _0x3f1bf5=_0x546b68['getAttributes'](),_0x4b9d82=_0x27ea95['getAttributes']();for(const _0xa80430 of _0x3f1bf5){if(_0xa80430[0x1]!==_0x27ea95['getAttribute'](_0xa80430[0x0]))return!0x1;_0x4b9d82['next']();}return _0x4b9d82['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x186edf=>{const _0x1e7e05=_0x186edf['markerName']['split'](':')[0x1],_0xce8b4b=this['_getChangeFromId'](_0x1e7e05);if(!_0xce8b4b)return null;const _0x4333cd='add'==_0xce8b4b['type']?'insertion':'deletion',_0x3cdd91=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4333cd];return _0xce8b4b['data']['isSuggestion']&&_0x3cdd91['push']('ck-suggestion-marker-'+_0x4333cd+'-new'),this['activeChange']==_0xce8b4b&&_0x3cdd91['push']('ck-suggestion-marker--active'),{'classes':_0x3cdd91,'attributes':{'data-change-id':_0x1e7e05}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4f89d2=>{_0x4f89d2['on']('element:pre',(_0x38a5f9,_0x579924,_0x238119)=>{const _0x454c98=_0x579924['viewItem']['getChild'](0x0);if(!_0x454c98||!_0x454c98['is']('element','code'))return;if(!_0x238119['consumable']['consume'](_0x454c98,{'attributes':['vid_start','vid_end']}))return;const _0x37c302=_0x579924['modelRange']['start']['nodeAfter'];_0x238119['writer']['setAttribute']('vid_start',_0x454c98['getAttribute']('vid_start'),_0x37c302),_0x238119['writer']['setAttribute']('vid_end',_0x454c98['getAttribute']('vid_end'),_0x37c302);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1295fb=>{_0x1295fb['on']('element',(_0xd4a30d,_0x3b6fa3,_0x399a7f)=>{if(!_0x399a7f['consumable']['consume'](_0x3b6fa3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3b6fa3['modelRange']['isCollapsed'])return;const _0xbddc3e=_0x3b6fa3['modelRange']['start']['nodeAfter'];_0xbddc3e['hasAttribute']('vid_start')||_0xbddc3e['hasAttribute']('vid')||(_0x399a7f['writer']['setAttribute']('vid_start',_0x3b6fa3['viewItem']['getAttribute']('vid_start'),_0xbddc3e),_0x399a7f['writer']['setAttribute']('vid_end',_0x3b6fa3['viewItem']['getAttribute']('vid_end'),_0xbddc3e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x191fbe=>_0x191fbe['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2da23d,[,_0x556b9d])=>{['vid_start','vid_end','vid']['includes'](_0x556b9d)&&(_0x2da23d['return']=!0x0,_0x2da23d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xa79691=>{_0xa79691['on']('attribute:vid',(_0x146707,_0x59f294,_0x13067e)=>{if('\x20'!=_0x59f294['item']['data']||_0x59f294['item']['parent']['maxOffset']>0x1)return;if(!_0x13067e['consumable']['consume'](_0x59f294['item'],_0x146707['name']))return;const _0x57abec=_0x13067e['writer'],_0x593243=_0x13067e['mapper']['toViewRange'](_0x59f294['range']);_0x57abec['wrap'](_0x593243,_0x57abec['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x884869){const _0x3d1adb=_0x884869['plugins']['get']('RevisionViewer');return(_0xf8ac1a,_0x54b3a3,_0x1954c7)=>{const _0x527f24=_0x54b3a3['markerName']['split'](':')[0x1],_0x663e22=_0x3d1adb['_getChangeFromId'](_0x527f24);if(!_0x663e22)return null;const _0x4ff2ca='add'==_0x663e22['type']?'split':'merge';if(!_0x1954c7['consumable']['test'](_0x54b3a3['markerRange'],_0xf8ac1a['name']))return;const _0x5ec6c1=_0x54b3a3['markerRange']['getWalker'](),_0xda93b9=_0x54b3a3['markerRange']['start'],_0x5da474=_0x884869['model']['schema'];let _0xc4c7a=null,_0x159ff6=null,_0x19b78a=!0x1,_0x573a08=!0x1;for(const _0x5715b5 of _0x5ec6c1){const _0x203a4f=_0x5715b5['item'];_0x19b78a=_0x19b78a||_0x5da474['isContent'](_0x203a4f);const _0x5351fb=_0x1954c7['mapper']['toViewElement'](_0x203a4f);if(_0x5351fb&&_0x5351fb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5715b5['type']&&(_0x5da474['isBlock'](_0x203a4f)&&!_0x5da474['isLimit'](_0x203a4f)&&(_0x203a4f['nextSibling']||_0xda93b9['isAtEnd']?_0xc4c7a&&_0xc4c7a['parent']==_0x203a4f||(_0xc4c7a=_0x203a4f,_0x4fc3fd(_0x5715b5['previousPosition']),_0x573a08=!0x0):_0x159ff6=_0x159ff6||_0x5715b5['previousPosition']));}function _0x4fc3fd(_0x176004){const _0x2b8166=_0x1954c7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ff2ca}),_0x2ffbef=_0x1954c7['mapper']['toViewPosition'](_0x176004);_0x663e22['data']['isSuggestion']&&_0x1954c7['writer']['addClass']('ck-suggestion-marker-'+_0x4ff2ca+'-new',_0x2b8166),_0x3d1adb['activeChange']==_0x663e22&&_0x1954c7['writer']['addClass']('ck-suggestion-marker--active',_0x2b8166),_0x1954c7['writer']['insert'](_0x2ffbef,_0x2b8166),_0x1954c7['mapper']['bindElementToMarker'](_0x2b8166,_0x54b3a3['markerName']);}_0x19b78a||_0x573a08||!_0x159ff6||_0x4fc3fd(_0x159ff6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x816fa5,_0x2956d2,_0x29cad6)=>{const _0x4c803c=_0x29cad6['mapper']['markerNameToElements'](_0x2956d2['markerName']);if(_0x4c803c){for(const _0x19d13c of _0x4c803c)(_0x19d13c['hasClass']('ck-suggestion-marker-split')||_0x19d13c['hasClass']('ck-suggestion-marker-merge'))&&(_0x29cad6['mapper']['unbindElementFromMarkerName'](_0x19d13c,_0x2956d2['markerName']),_0x29cad6['writer']['remove'](_0x19d13c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1a06e9,_0x5e51b5,_0x1d952b)=>{const _0x2e2a28=_0x5e51b5['markerName']['split'](':')[0x1],_0x235e69=this['_getChangeFromId'](_0x2e2a28);if(!_0x235e69)return null;const _0x10ead8='add'==_0x235e69['type']?'split':'merge';if(_0x1d952b['consumable']['test'](_0x5e51b5['markerRange'],_0x1a06e9['name']))for(const _0x3e37fc of _0x5e51b5['markerRange']['getItems']()){if(!_0x3e37fc['is']('element','softBreak'))continue;const _0x438efb=_0x1d952b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x10ead8}),_0x64f75f=_0x1d952b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3e37fc));_0x235e69['data']['isSuggestion']&&_0x1d952b['writer']['addClass']('ck-suggestion-marker-'+_0x10ead8+'-new',_0x438efb),this['activeChange']==_0x235e69&&_0x1d952b['writer']['addClass']('ck-suggestion-marker--active',_0x438efb),_0x1d952b['writer']['insert'](_0x64f75f,_0x438efb),_0x1d952b['mapper']['bindElementToMarker'](_0x438efb,_0x5e51b5['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4a2e0f=>{for(const _0x3c697d of this['editor']['model']['document']['getRootNames']()){const _0x44a90d=this['editor']['model']['document']['getRoot'](_0x3c697d),_0x495c5e=this['editor']['editing']['view']['document']['getRoot'](_0x3c697d);if(_0x495c5e){const _0x1746bf=_0x44a90d['getAttribute']('revisionHistoryAttachChange');if(_0x4a2e0f['removeAttribute']('data-change-id',_0x495c5e),_0x4a2e0f['removeClass']('ck-revision-history-root-add',_0x495c5e),_0x4a2e0f['removeClass']('ck-revision-history-root-remove',_0x495c5e),_0x4a2e0f['removeClass']('ck-revision-history-root--active',_0x495c5e),_0x1746bf){const _0x5116c8=this['_getChangeFromId'](_0x1746bf);if(!_0x5116c8)return null;_0x4a2e0f['setAttribute']('data-change-id',_0x1746bf,_0x495c5e),_0x4a2e0f['addClass']('ck-revision-history-root-'+_0x5116c8['type'],_0x495c5e),this['activeChange']==_0x5116c8&&_0x4a2e0f['addClass']('ck-revision-history-root--active',_0x495c5e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1bab78=>'revision-comment:'+_0x1bab78,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x18f6b8=>'revision-suggestion:'+_0x18f6b8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x27e93b=>({'name':'suggestion:'+_0x27e93b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x397404=>{const _0x53df0f=_0x397404['markerName']['split'](':')[0x1];return'insertion'!=_0x53df0f&&'deletion'!=_0x53df0f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x53df0f]};}}),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',(_0x570444,_0x50be9b,_0x489444)=>{const _0x2804f7=_0x489444['mapper']['markerNameToElements'](_0x50be9b['markerName']);if(_0x2804f7){for(const _0x485000 of _0x2804f7)_0x485000['is']('uiElement')&&(_0x489444['mapper']['unbindElementFromMarkerName'](_0x485000,_0x50be9b['markerName']),_0x489444['writer']['remove'](_0x485000));}},{'priority':'high'});}['_getChangeFromId'](_0x457afc){return this['_changeIdToChange']['get'](_0x457afc);}['_getViewForChange'](_0x4e002e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x4e002e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1effc2,_0x345c2d,_0x2523e1,_0x426251)=>{_0x426251&&this['_balloon']['remove'](_0x426251),_0x2523e1&&(this['_balloon']['add']({'view':_0x2523e1,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x402190=this['editor']['editing'],_0x369291=this['_getChangeFromId'](_0x2523e1['changeId']);let _0x4adc89;if(_0x369291['data']['isOnRoot']){const _0x29db4b=_0x402190['view']['getDomRoot'](_0x369291['rootName']);_0x4adc89=Array['from'](_0x29db4b['getClientRects']());}else{const _0x505688=this['editor']['model']['markers']['get']('revision:'+_0x2523e1['changeId']);_0x4adc89=Array['from'](_0x402190['mapper']['markerNameToElements'](_0x505688['name']))['map'](_0x7fd3e2=>_0x402190['view']['domConverter']['mapViewToDom'](_0x7fd3e2))['map'](_0xfc727b=>Array['from'](_0xfc727b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4adc89[0x0];return _0x4adc89['find'](_0x3e509a=>_0x3e509a['top']-0x3<=this['_activeViewTarget']['y']&&_0x3e509a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3e509a['left']-0x3<=this['_activeViewTarget']['x']&&_0x3e509a['right']+0x3>=this['_activeViewTarget']['x'])||_0x4adc89[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x335caf,_0x140476,_0x39bbb1,_0x293a71)=>{this['activeView']=_0x39bbb1?this['_getViewForChange'](_0x39bbb1):null,this['editor']['model']['change'](()=>{const _0x26fd9e=this['editor']['editing'];_0x293a71&&(_0x293a71['data']['isOnRoot']?_0x26fd9e['view']['change'](_0x3638d4=>{_0x3638d4['removeClass']('ck-revision-history-root--active',_0x26fd9e['view']['document']['getRoot'](_0x293a71['rootName']));}):_0x26fd9e['reconvertMarker']('revision:'+_0x293a71['id'])),_0x39bbb1&&(_0x39bbb1['data']['isOnRoot']?_0x26fd9e['view']['change'](_0x3da569=>{_0x3da569['addClass']('ck-revision-history-root--active',_0x26fd9e['view']['document']['getRoot'](_0x39bbb1['rootName']));}):_0x26fd9e['reconvertMarker']('revision:'+_0x39bbb1['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xd6bf42,_0xe59a08)=>{if(this['activeChange'])return;const _0x2f4ec7=this['_findChangeIdFromDomTarget'](_0xe59a08['target']),_0x4c4b9d=this['_changeIdToChange']['get'](_0x2f4ec7);_0x4c4b9d?(this['_activeViewTarget']={'x':_0xe59a08['domEvent']['x'],'y':_0xe59a08['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4c4b9d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x38dd76,_0x3650d9)=>{const _0x5f0cf0=this['_findChangeIdFromDomTarget'](_0x3650d9['target']),_0x4f59c6=this['_changeIdToChange']['get'](_0x5f0cf0);_0x4f59c6?(this['_activeViewTarget']={'x':_0x3650d9['domEvent']['x'],'y':_0x3650d9['domEvent']['y']},_0x4f59c6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4f59c6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x12c6b9){do{const _0x2cd056=_0x12c6b9['getAttribute']('data-change-id');if(_0x2cd056)return _0x2cd056;_0x12c6b9=_0x12c6b9['parent'];}while(_0x12c6b9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xcb90be=>{for(const _0x21a765 of this['editor']['model']['markers'])_0xcb90be['removeMarker'](_0x21a765);});}}function X(_0x3e015e,_0x57659d){return(_0x1fc0da,_0x38b9b7,_0x348172)=>{if(!_0x348172['consumable']['test'](_0x38b9b7['markerRange'],_0x1fc0da['name']))return;const _0x61c65b=_0x38b9b7['markerRange']['getWalker'](),_0x175cf4=_0x38b9b7['markerRange']['start'],_0x3142fb=_0x3e015e['model']['schema'];let _0x353659=null,_0x85560f=null,_0x2f289b=!0x1,_0x29b9ab=!0x1;for(const _0x5b4da1 of _0x61c65b){const _0x2df7e0=_0x5b4da1['item'];_0x2f289b=_0x2f289b||_0x3142fb['isContent'](_0x2df7e0);const _0x2ebf98=_0x348172['mapper']['toViewElement'](_0x2df7e0);if(_0x2ebf98&&_0x2ebf98['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b4da1['type']&&(_0x3142fb['isBlock'](_0x2df7e0)&&!_0x3142fb['isLimit'](_0x2df7e0)&&(_0x2df7e0['nextSibling']||_0x175cf4['isAtEnd']?_0x353659&&_0x353659['parent']==_0x2df7e0||(_0x353659=_0x2df7e0,_0x249e35(_0x5b4da1['previousPosition']),_0x29b9ab=!0x0):_0x85560f=_0x85560f||_0x5b4da1['previousPosition']));}function _0x249e35(_0x512ed2){const _0x187e3a=_0x348172['mapper']['toViewPosition'](_0x512ed2),_0x5e6e6a=_0x348172['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x57659d});_0x348172['writer']['insert'](_0x187e3a,_0x5e6e6a),_0x348172['mapper']['bindElementToMarker'](_0x5e6e6a,_0x38b9b7['markerName']);}_0x2f289b||_0x29b9ab||!_0x85560f||_0x249e35(_0x85560f);};}class mt extends _0x28e3bb{constructor(_0x127d2c){super(_0x127d2c);const _0x1a2171=_0x127d2c['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1a2171,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1a2171,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1d9968=this['editor'],_0x29ba6f=_0x1d9968['plugins']['get'](m),_0x17551b=_0x29ba6f['isReady']?_0x29ba6f['diff']['newRevisionId']:null;_0x1d9968['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x17551b);}['refresh'](){const {isReady:_0x49989a,isEnabled:_0x297fe7,repository:_0x14babd,diff:_0x58c60f}=this['editor']['plugins']['get'](m),_0x256c92=_0x58c60f&&_0x14babd['getLaterVisibleRevision'](_0x58c60f['newRevisionId']);this['isEnabled']=_0x49989a&&_0x297fe7&&Boolean(_0x256c92);}}class wt extends _0x28e3bb{['_step'];constructor(_0x449886,{direction:_0x4d4a3a}){super(_0x449886);const _0x4a1f6a=_0x449886['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4d4a3a?0x1:-0x1,this['listenTo'](_0x4a1f6a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4a1f6a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4a1f6a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x264056=this['editor'],_0x48ba3e=_0x264056['plugins']['get'](m),{isNavigationMode:_0x71686,currentChangeNumber:_0x20e957}=_0x48ba3e;let _0x4dc9a7;if(_0x48ba3e['activeChange']=_0x71686?_0x48ba3e['diff']['changes']['get'](_0x20e957+this['_step']):_0x48ba3e['diff']['changes']['first'],_0x48ba3e['activeChange']['data']['isOnRoot'])_0x4dc9a7=_0x264056['editing']['view']['getDomRoot'](_0x48ba3e['activeChange']['rootName']);else{const _0x4ae62e=_0x264056['model']['markers']['get']('revision:'+_0x48ba3e['activeChange']['id']);_0x4dc9a7=_0x490cea(_0x264056['editing'],_0x4ae62e);}_0x585041({'target':_0x4dc9a7,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x27a552,currentChangeNumber:_0x41e6ba,numberOfChanges:_0x566576,isReady:_0x306383,isEnabled:_0x10364d}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x10364d&&_0x306383&&_0x566576)&&(!_0x27a552||(0x1===this['_step']?_0x41e6ba<_0x566576-0x1:_0x41e6ba>0x0));}}class _i extends ts{constructor(_0x90d07c){super(_0x90d07c);const _0x10797d=this['bindTemplate'],_0x534a67=new te(_0x90d07c),_0xca5ad3=new te(_0x90d07c);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',(_0x11255f,_0x1d631f)=>_0x11255f&&_0x1d631f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xbc2181,_0x19ecf3,_0x1c620b,_0x37ceb0)=>{if(!_0xbc2181)return g(_0x90d07c,'Loading...');if(!_0x1c620b)return g(_0x90d07c,'No\x20changes');const _0xcc4dbb=g(_0x90d07c,'NUMBER_OF_CHANGES',_0x1c620b);return _0x37ceb0?g(_0x90d07c,'X_OF_Y_CHANGES',[_0x19ecf3+0x1,_0x1c620b]):_0xcc4dbb;}),_0x534a67['set']({'label':g(_0x90d07c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x73b35c}),_0xca5ad3['set']({'label':g(_0x90d07c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x137441}),_0x534a67['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xca5ad3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x534a67['on']('execute',()=>this['fire']('execute','backward')),_0xca5ad3['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',_0x10797d['if']('_isStatusLabelVisible','ck-hidden',_0x3c7e2e=>!_0x3c7e2e)]},'children':[{'text':_0x10797d['to']('isNavigationMode',_0x2b8f22=>_0x2b8f22?g(_0x90d07c,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x90d07c,'Total')+':\x20')}]},{'text':_0x10797d['to']('_statusText')}]},new _0x17336f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x534a67,_0xca5ad3]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x1efec2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2077db=this['editor']['editing']['view'];_0x2077db['change'](_0x7c4e61=>{for(const _0x34dbf5 of _0x2077db['document']['roots'])_0x7c4e61['addClass'](le,_0x34dbf5);});}['hide'](){const _0x3e2580=this['editor']['editing']['view'];_0x3e2580['change'](_0x35b72d=>{for(const _0x496fca of _0x3e2580['document']['roots'])_0x35b72d['removeClass'](le,_0x496fca);});}}class R extends _0x1efec2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x498c3f=this['editor'],_0x24a74a=_0x498c3f['plugins']['get'](m),_0x299f48=_0x498c3f['plugins']['get'](ge);_0x498c3f['ui']['componentFactory']['add']('exitToEditing',_0x4e12d4=>{const _0x2a5813=new te(_0x4e12d4);return _0x2a5813['set']({'label':g(_0x4e12d4,'Back\x20to\x20editing'),'icon':_0x5af1be,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2a5813,'execute',()=>{_0x498c3f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2a5813;}),_0x498c3f['ui']['componentFactory']['add']('restoreRevision',_0x4293c2=>{const _0x2b609b=new te(_0x4293c2);return _0x2b609b['set']({'label':g(_0x4293c2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2b609b['bind']('isEnabled')['to'](_0x498c3f['commands']['get']('restoreRevision')),this['listenTo'](_0x2b609b,'execute',()=>_0x498c3f['execute']('restoreRevision')),_0x2b609b;}),_0x498c3f['ui']['componentFactory']['add']('changesNavigation',_0x4cf73a=>{const _0x1831e8=new _i(_0x4cf73a),_0x314b9d=_0x498c3f['commands']['get']('showPreviousChange'),_0x437b3b=_0x498c3f['commands']['get']('showNextChange');return _0x1831e8['bind']('isBackwardNavigationEnabled')['to'](_0x314b9d,'isEnabled'),_0x1831e8['bind']('isForwardNavigationEnabled')['to'](_0x437b3b,'isEnabled'),_0x1831e8['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x24a74a),this['listenTo'](_0x1831e8,'execute',(_0x358168,_0x5d8502)=>{_0x498c3f['execute']('forward'===_0x5d8502?'showNextChange':'showPreviousChange');}),_0x1831e8;}),_0x299f48['show'](),_0x24a74a['on']('change:isReady',(_0x363ac8,_0x3c975b,_0x3c8bd3)=>{_0x3c8bd3?_0x299f48['hide']():_0x299f48['show']();});}}class at extends _0x22d328{['_resizeObserver']=null;constructor(_0xb1fe0e,_0x389aa2){super(_0xb1fe0e,_0x389aa2);const _0x129e4b=this['bindTemplate'];this['set']({'label':g(_0xb1fe0e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0xb1fe0e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x129e4b['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 _0x2a7880=this['fieldView']['element'];this['_tooltipString']=_0x2a7880['scrollWidth']>_0x2a7880['clientWidth']&&_0x2a7880['value']||'';}}class si extends ts{constructor(_0x2a3169,_0x4c4e63,_0x420827){super(_0x2a3169);const _0x502a3b=new _0x1f4fe8();_0x502a3b['set']({'content':_0x5675dd,'viewBox':'0\x200\x2011\x2010'});const _0x547913=['ck','ck-revision-history-sidebar__revision-author'];_0x420827&&_0x547913['push']('ck-revision-history-sidebar__revision-author_creator');const _0x58362e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x2a3169,_0x420827?'Revision\x20creator':'Revision\x20author')},'children':[_0x502a3b,_0x4c4e63['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x547913},'children':_0x58362e});}}function oi(_0x2bab01,_0x143e32){const _0x24573c=_0x2bab01['bindTemplate'],_0x2daedf=_0x2bab01['locale'],_0x21ceb4=_0x555aeb(_0x2daedf);_0x21ceb4['panelPosition']='sw';const _0x366391=function(_0x192fd5,_0x29b90f){const _0x526fc8=function(_0x4dcc94,_0x124d80){const _0x5cb178=_0x4dcc94['locale'],_0x53b4d8={'Compare\x20against\x20selected':g(_0x5cb178,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x5cb178,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x5cb178,'Restore\x20this\x20revision')};return _0x124d80['map'](_0x31e74b=>{const _0xf782e0=_0x53b4d8[_0x31e74b['name']];return _0xf782e0&&_0xf782e0!==_0x31e74b['name']&&(_0x31e74b['name']=_0xf782e0),_0x31e74b;});}(_0x192fd5,_0x29b90f),_0x1eaec0=new _0x10baa9();for(const _0x467cb of _0x526fc8){const _0x56d112={'type':'button','model':new to({'label':_0x467cb['name'],'class':_0x467cb['class'],'withText':!0x0,'role':'menuitem','_action':_0x467cb['action']})};_0x56d112['model']['bind']('isEnabled')['to'](_0x192fd5,'isActionsDropdownOpen',_0x4788c4=>'function'!=typeof _0x467cb['isEnabled']||(!_0x4788c4||_0x467cb['isEnabled'](_0x192fd5))),_0x1eaec0['add'](_0x56d112);}return _0x1eaec0;}(_0x2bab01,_0x143e32);return _0x2bab01['bind']('isActionsDropdownOpen')['to'](_0x21ceb4,'isOpen'),_0x21ceb4['buttonView']['set']({'label':g(_0x2daedf,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x15ee78}),_0x21ceb4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x24573c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x24573c['to'](_0x58831b=>_0x58831b['stopPropagation']())}}),_0x21ceb4['on']('execute',_0x2ed0d7=>{_0x2bab01['isReady']&&'function'==typeof _0x2ed0d7['source']['_action']&&_0x2ed0d7['source']['_action'](_0x2bab01);}),_0x3493b4(_0x21ceb4,_0x366391,{'role':'menu'}),_0x21ceb4['listenTo'](_0x2bab01,'change:isActionsDropdownOpen',(_0x3fb15d,_0x1b5bf4,_0x11a740)=>{if(_0x11a740)for(const _0x331f4b of _0x21ceb4['listView']['items']){const _0x462645=_0x331f4b['children']['first'],_0x4a87f0=_0x143e32['find'](_0x5434ef=>_0x5434ef['action']===_0x462645['_action'])['isVisible'];_0x331f4b['isVisible']=void 0x0===_0x4a87f0||_0x4a87f0(_0x2bab01);}}),_0x21ceb4;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x20c464,_0x19f429,_0x2d8408,_0x5ddfd1){super(_0x20c464);const _0x1b3440=this['bindTemplate'],_0x3568e7=function(_0x4e4a4a,_0x5ba256){const _0x1b30de=Array['from'](_0x5ba256['authors'])['filter'](_0xf76256=>_0xf76256!=_0x5ba256['creator']);return _0x5ba256['creator']&&_0x1b30de['unshift'](_0x5ba256['creator']),_0x1b30de['map'](_0x232d11=>new si(_0x4e4a4a,_0x232d11,_0x232d11==_0x5ba256['creator']));}(_0x20c464,_0x19f429);this['id']=_0x19f429['id'],this['_revision']=_0x19f429,this['_requireRevisionName']=_0x5ddfd1,this['bind']('name','createdAt')['to'](_0x19f429),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x45b6f3=>{return _0x28fc2b=_0x20c464['uiLanguage'],(_0x387c44=_0x45b6f3)['toLocaleDateString'](_0x28fc2b,{'month':'long','day':'numeric'})+',\x20'+_0x387c44['toLocaleTimeString'](_0x28fc2b,{'hour':'numeric','minute':'numeric'});var _0x28fc2b,_0x387c44;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x20c464,_0xbcae3c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1a5d18=>_0x1a5d18||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4441d8,_0x244adb)=>_0x4441d8&&_0x244adb),this['revisionActionsView']=_0x2d8408&&_0x2d8408['length']?oi(this,_0x2d8408):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1b3440['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1b3440['if']('isEnabled','ck-disabled',_0x50fd2b=>!_0x50fd2b),_0x1b3440['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1b3440['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1b3440['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':_0x1b3440['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':_0x3568e7}]},this['revisionActionsView']],'on':{'click':_0x1b3440['to'](_0x3383eb=>{_0x3383eb['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x482d35=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x482d35,'change',()=>{this['_requireRevisionName']&&!_0x482d35['value']||this['fire']('setName',{'id':this['id'],'name':_0x482d35['value']}),_0x482d35['value']||(_0x482d35['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0xc396a0,_0x4c82fd){const _0x4b4953=_0x232900['fromJSDate'](_0xc396a0)['setLocale'](_0x4c82fd),_0xc0229d=_0x232900['local'](),_0x398a44=_0xc0229d['minus']({'days':0x1})['startOf']('day');let _0x56083f,_0x154f0f;return _0x4b4953['hasSame'](_0xc0229d,'day')?(_0x56083f=_0x4b4953['startOf']('day')['toJSDate'](),_0x154f0f=_0x4b4953['toRelativeCalendar']()):_0x4b4953['hasSame'](_0x398a44,'day')?(_0x56083f=_0x398a44['toJSDate'](),_0x154f0f=_0x4b4953['toRelativeCalendar']()):_0x4b4953['hasSame'](_0xc0229d,'week')?(_0x56083f=_0x4b4953['startOf']('week')['toJSDate'](),_0x154f0f=_0x4b4953['weekdayLong']||''):_0x4b4953['hasSame'](_0xc0229d,'year')?(_0x56083f=_0x4b4953['startOf']('month')['toJSDate'](),_0x154f0f=_0x4b4953['monthLong']||''):(_0x56083f=_0x4b4953['startOf']('year')['toJSDate'](),_0x154f0f=String(_0x4b4953['year'])),{'startDate':_0x56083f,'localizedPeriodName':_0x154f0f};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x45edbb,_0xa78379,_0x36995c,_0x82f101){super(_0x45edbb);const _0x1b75a5=ai(_0xa78379,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xa78379,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x36995c,this['_requireRevisionName']=_0x82f101,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':_0x1b75a5}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x329799){const _0x42060a=new hi(this['locale'],_0x329799,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x42060a);}['removeRevision'](_0x2c5dfd){const _0x2c2fc5=this['revisionViews']['find'](_0x2d31c9=>_0x2d31c9['id']===_0x2c5dfd['id']);this['revisionViews']['remove'](_0x2c2fc5);}}class as extends ts{constructor(_0x54028b){super(_0x54028b);const _0x2715f1=new _0x1f4fe8();_0x2715f1['content']=_0x4d6637,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2715f1,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x54028b,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xd51c4f,_0x418d72,_0x334e06,_0x374701){super(_0xd51c4f);const _0x54582b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x418d72,this['_revisionActions']=_0x334e06,this['_requireRevisionName']=_0x374701,this['on']('select',(_0x5e4257,_0x3a4011)=>{this['fire']('revisionSelected',_0x3a4011);}),this['on']('setName',(_0x57e1a7,_0x4ecbc3)=>{this['fire']('revisionSetName',_0x4ecbc3);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xd51c4f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x54582b['if']('isEnabled','ck-disabled',_0x3e5de3=>!_0x3e5de3)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x317c9f of this['_revisions'])this['_addRevision'](_0x317c9f);this['_revisions']['on']('add',(_0x41ff73,_0x594936)=>{this['_addRevision'](_0x594936);}),this['_revisions']['on']('remove',(_0x2ae8af,_0x303f61)=>{this['_removeRevision'](_0x303f61);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x51ea45=>_0x51ea45['revisionViews']['map'](_0x8856b0=>_0x8856b0))['flat']();}['selectRevision'](_0x3fcb50){for(const _0x123eae of this['revisionViews'])_0x3fcb50&&_0x3fcb50['id']===_0x123eae['id']?_0x123eae['select']():_0x123eae['deselect']();}['highlightRevisions'](_0x9d57d8){for(const _0x30ea60 of this['revisionViews'])_0x9d57d8['some'](({id:_0x434a91})=>_0x434a91===_0x30ea60['id'])?_0x30ea60['highlight']():_0x30ea60['unhighlight']();}['_addRevision'](_0x2822e7){const _0x57f03f=ai(_0x2822e7['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1f48d1=this['timePeriodViews']['get'](0x0);_0x1f48d1&&_0x1f48d1['startDate']['getTime']()===_0x57f03f['getTime']()||(_0x1f48d1=new di(this['locale'],_0x57f03f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1f48d1)),_0x1f48d1['addRevision'](_0x2822e7);}['_removeRevision'](_0x3fd695){const _0x46ce38=ai(_0x3fd695['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x46ce38)['removeRevision'](_0x3fd695);}['_getTimePeriodViewByStartDate'](_0x2bac32){return this['timePeriodViews']['find'](_0x3e4e5f=>_0x3e4e5f['startDate']['getTime']()===_0x2bac32['getTime']());}}class d extends _0x1efec2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x2c59e9,uid as _0x33821a,Collection as _0x404bbe,logWarning as _0x173e22,FocusTracker as _0x310fb5,KeystrokeHandler as _0x1a5a25,scrollViewportToShowTarget as _0xb05bba,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x5b3011}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x583fb4,set as _0x1e25cd,unset as _0x5acb35,isEqual as _0x2ae65b}from'es-toolkit/compat';import{Plugin as _0x553bb9,PendingActions as _0xdcd942,Command as _0x52a6c8,ElementApiMixin as _0x42b48c,Editor as _0x280212}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5434d8,getMarkerDomElement as _0x409c56,ConfirmMixin as ti,sanitizeEditorConfig as _0x58e741}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x2ab8e2,ViewAttributeElement as _0x3efc1b,ViewEmptyElement as _0x14277a,ViewRawElement as _0x12bbe6,ViewUIElement as _0x4fc3cf,ViewDocumentFragment as _0x319660,ViewText as _0x566168,ViewElement as _0x24d873,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 _0x7ad83f,IconChevronUp as _0x19f9a5,IconChevronDown as _0x538da8,IconUndo as _0xd9c976,IconUser as _0x77c3a7,IconThreeVerticalDots as _0x44615f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1d0433,submitHandler as _0x48d2b1,LabeledFieldView as _0x45dc4c,createLabeledInputText as _0x11dee7,createDropdown as _0x41976a,ListView as _0x1a8399,ListItemView as _0xc351cd,ButtonView as te,MenuBarMenuView as _0x42507a,MenuBarMenuListView as _0x498f3c,MenuBarMenuListItemView as _0x5427b7,MenuBarMenuListItemButtonView as _0x2c3f2d,ContextualBalloon as _0x259487,ToolbarSeparatorView as _0x45188a,IconView as _0x496fe7,addListToDropdown as _0x5bd43b,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 _0x24eb54}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x2c59e9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x39f9c6){super(),this['id']=_0x39f9c6['id']||_0x33821a(),this['creator']=_0x39f9c6['creator']||null,this['authors']=_0x39f9c6['authors']||[],this['diffData']=_0x39f9c6['diffData']||null,this['toVersion']=_0x39f9c6['toVersion']||0x0,this['fromVersion']=_0x39f9c6['fromVersion']||0x0,this['set']('name',_0x39f9c6['name']||''),this['set']('createdAt',_0x39f9c6['createdAt']||new Date()),this['set']('attributes',_0x39f9c6['attributes']||{});}['setName'](_0x34aeae){this['_update']({'name':_0x34aeae});}['setAttribute'](_0x155f5d,_0xc7faa3){const _0x5b9ed5=_0x583fb4(this['attributes']);_0x1e25cd(_0x5b9ed5,_0x155f5d,_0xc7faa3),this['_update']({'attributes':_0x5b9ed5});}['removeAttribute'](_0x2c7ecd){const _0x1939a6=_0x583fb4(this['attributes']);_0x5acb35(_0x1939a6,_0x2c7ecd),this['_update']({'attributes':_0x1939a6});}['_update'](_0x128a3a,_0xae187d=!0x1){let _0x19e1f1=!0x1;const _0x14a9bb={'id':this['id']},_0x562a2b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xbaba1c of _0x562a2b){const _0x257f17=_0x128a3a[_0xbaba1c];void 0x0!==_0x257f17&&_0x257f17!==this[_0xbaba1c]&&(this[_0xbaba1c]=_0x257f17,_0x14a9bb[_0xbaba1c]=_0x257f17,_0x19e1f1=!0x0);}_0x19e1f1&&(_0x14a9bb['authors']&&(_0x14a9bb['authorsIds']=_0x14a9bb['authors']['map'](_0x451c95=>_0x451c95['id']),delete _0x14a9bb['authors']),this['fire']('_update',_0x14a9bb,_0xae187d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x250c13=>_0x250c13['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x553bb9{['_revisions'];static get['requires'](){return[_0x5434d8];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x7674d8){super(_0x7674d8),this['_revisions']=new _0x404bbe();}['afterInit'](){!async function(_0x10bfc9){const _0x3350d5=_0x2f6542([0x32,0x74,0x53,0x65,0x69,0x4a,0x33,0x51,0x47,0x79,0x6d,0x56,0x39,0x67,0x62,0x48,0x4e,0x73,0x5a,0x71,0x66,0x6a,0x52,0x34,0x6e,0x61,0x6c,0x70,0x4c,0x72,0x75,0x50,0x35,0x76,0x44,0x7a,0x4d,0x63,0x37,0x68,0x42,0x57,0x30,0x6b,0x46,0x45,0x38,0x31,0x78,0x4f,0x36,0x49,0x64,0x77,0x58,0x41,0x4b,0x43,0x59,0x6f,0x55,0x54]),_0x3277b4=0xeb829,_0x253e7c=0x1753ed27,_0x50a802=0x1754886f^_0x253e7c,_0x2eb5b7=window[_0x2f6542([0x44,0x61,0x74,0x65])][_0x2f6542([0x6e,0x6f,0x77])](),_0x4f00cb=_0x10bfc9[_0x2f6542([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x259301=new window[(_0x2f6542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x831809=>{_0x4f00cb[_0x2f6542([0x6f,0x6e,0x63,0x65])](_0x2f6542([0x72,0x65,0x61,0x64,0x79]),_0x831809);}),_0x2c5255={[_0x2f6542([0x6b,0x74,0x79])]:_0x2f6542([0x45,0x43]),[_0x2f6542([0x75,0x73,0x65])]:_0x2f6542([0x73,0x69,0x67]),[_0x2f6542([0x63,0x72,0x76])]:_0x2f6542([0x50,0x2d,0x32,0x35,0x36]),[_0x2f6542([0x78])]:_0x2f6542([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]),[_0x2f6542([0x79])]:_0x2f6542([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]),[_0x2f6542([0x61,0x6c,0x67])]:_0x2f6542([0x45,0x53,0x32,0x35,0x36])},_0x3a4bac=_0x4f00cb[_0x2f6542([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f6542([0x67,0x65,0x74])](_0x2f6542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15f988(){let _0x2845b0,_0x141a49=null,_0x490ff4=null;try{if(_0x3a4bac==_0x2f6542([0x47,0x50,0x4c]))return _0x2f6542([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2845b0=_0x58259e(),!_0x2845b0)return _0x2f6542([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2845b0[_0x2f6542([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x490ff4=_0x282ba7(_0x2845b0[_0x2f6542([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2845b0[_0x2f6542([0x6a,0x74,0x69])])),await _0x32210c()?_0x3e2b84()?_0xe041d8()?_0x2f6542([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3469d4()?(_0x2845b0[_0x2f6542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f6542([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x141a49=_0xcecda0(_0x2f6542([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2845b0[_0x2f6542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f6542([0x74,0x72,0x69,0x61,0x6c])&&(_0x141a49=_0xcecda0(_0x2f6542([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d6ad3()):_0x2f6542([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f6542([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f6542([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xe4a451){return _0x2f6542([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe041d8(){const _0x52da57=[_0x2f6542([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f6542([0x74,0x72,0x69,0x61,0x6c])][_0x2f6542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2845b0[_0x2f6542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2eb5b7/0x3e8:0xe10*_0x50a802;return _0x2845b0[_0x2f6542([0x65,0x78,0x70])]<_0x52da57;}function _0x3e2b84(){const _0x5c48b5=_0x2845b0[_0x2f6542([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5c48b5)return!0x1;if(_0x5c48b5[_0x2f6542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6542([0x2a])))return!0x0;if(_0x5c48b5[_0x2f6542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6542([0x52,0x48])))return!0x0;if(_0x5c48b5[_0x2f6542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6542([0x52,0x52,0x48]))){if(_0x4caed9())return!0x0;if(_0x10d84a()||_0x5b4052())return!0x0;}return!0x1;}function _0x3469d4(){const _0x3bc3ce=_0x2845b0[_0x2f6542([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3bc3ce||0x0==_0x3bc3ce[_0x2f6542([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1dd740}=new URL(window[_0x2f6542([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3bc3ce[_0x2f6542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd740))return!0x0;const _0x1f4a5e=_0x1dd740[_0x2f6542([0x73,0x70,0x6c,0x69,0x74])](_0x2f6542([0x2e]));return _0x3bc3ce[_0x2f6542([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b0728=>_0x1b0728[_0x2f6542([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6542([0x2a])))[_0x2f6542([0x6d,0x61,0x70])](_0x1ea509=>_0x1ea509[_0x2f6542([0x73,0x70,0x6c,0x69,0x74])](_0x2f6542([0x2e])))[_0x2f6542([0x73,0x6f,0x6d,0x65])](_0xeb704=>_0x1f4a5e[_0x2f6542([0x65,0x76,0x65,0x72,0x79])]((_0x3b14cd,_0xd4a25c)=>_0xeb704[_0xd4a25c]===_0x3b14cd||_0xeb704[_0xd4a25c]===_0x2f6542([0x2a])));}function _0x3d6ad3(){return _0x141a49&&_0x490ff4?new window[(_0x2f6542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe9c551,_0x5b4fe8)=>{_0x141a49[_0x2f6542([0x74,0x68,0x65,0x6e])](_0xe9c551,_0x5b4fe8),_0x490ff4[_0x2f6542([0x74,0x68,0x65,0x6e])](_0x14a605=>{_0x14a605!=_0x2f6542([0x56,0x61,0x6c,0x69,0x64])&&_0xe9c551(_0x14a605);},_0x5b4fe8);}):_0x141a49||_0x490ff4||_0x2f6542([0x56,0x61,0x6c,0x69,0x64]);}}function _0x282ba7(_0x20b5c3,_0xf0661c){return new window[(_0x2f6542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e41fa=>{if(_0x365070())return _0x3e41fa(_0x2f6542([0x56,0x61,0x6c,0x69,0x64]));_0xcc8951(),_0x4f00cb[_0x2f6542([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f6542([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe90c9f=!0x1;const _0x5ff287=_0x33821a();function _0x17502b(_0x390194){return!!_0x390194&&(typeof _0x390194===_0x2f6542([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x390194===_0x2f6542([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x390194[_0x2f6542([0x74,0x68,0x65,0x6e])]===_0x2f6542([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x390194[_0x2f6542([0x63,0x61,0x74,0x63,0x68])]===_0x2f6542([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b6c81(_0x273770){_0x24df86(_0x273770)[_0x2f6542([0x74,0x68,0x65,0x6e])](_0x1ed694=>{if(!_0x1ed694||_0x1ed694[_0x2f6542([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f6542([0x6f,0x6b]))return _0x2f6542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf3051a(_0x1d6fdd(_0x5ff287+_0xf0661c))!=_0x1ed694[_0x2f6542([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f6542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f6542([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f6542([0x74,0x68,0x65,0x6e])](_0x144f63=>(_0x1c564d(),_0x144f63),()=>{const _0x4766bd=_0xadebfd();return null==_0x4766bd?(_0x1c564d(),_0x2f6542([0x56,0x61,0x6c,0x69,0x64])):_0x2f6542(_0x2eb5b7-_0x4766bd>(0x335f6927^_0x253e7c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f6542([0x74,0x68,0x65,0x6e])](_0x3e41fa)[_0x2f6542([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e41fa(_0x2f6542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cda81=0x176503a7^_0x253e7c;function _0x1c564d(){const _0x2ac850=_0x2f6542([0x6c,0x6c,0x63,0x74,0x2d])+_0xf3051a(_0x1d6fdd(_0x20b5c3)),_0x460a00=_0x54f419(_0xf3051a(window[_0x2f6542([0x4d,0x61,0x74,0x68])][_0x2f6542([0x63,0x65,0x69,0x6c])](_0x2eb5b7/_0x2cda81)));window[_0x2f6542([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f6542([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ac850,_0x460a00);}function _0xadebfd(){const _0x52e639=_0x2f6542([0x6c,0x6c,0x63,0x74,0x2d])+_0xf3051a(_0x1d6fdd(_0x20b5c3)),_0x19e7e9=window[_0x2f6542([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f6542([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52e639);return _0x19e7e9?window[_0x2f6542([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54f419(_0x19e7e9),0x10)*_0x2cda81:null;}function _0x24df86(_0x4c80ee){return new window[(_0x2f6542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e2ddf,_0x580047)=>{_0x4c80ee[_0x2f6542([0x74,0x68,0x65,0x6e])](_0x4e2ddf,_0x580047),window[_0x2f6542([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x580047,0x175239e7^_0x253e7c);});}}_0x4f00cb[_0x2f6542([0x6f,0x6e])](_0x2f6542([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x550aa7,_0x1b8223)=>{if(_0x1b8223[0x0]!=_0x20b5c3)return _0x3e41fa(_0x2f6542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b8223[0x1]={..._0x1b8223[0x1],[_0x2f6542([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ff287};},{[_0x2f6542([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f6542([0x68,0x69,0x67,0x68])}),_0x4f00cb[_0x2f6542([0x6f,0x6e])](_0x2f6542([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d53d1=>{_0x17502b(_0x2d53d1[_0x2f6542([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe90c9f=!0x0,_0x4b6c81(_0x2d53d1[_0x2f6542([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f6542([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f6542([0x6c,0x6f,0x77])}),_0x259301[_0x2f6542([0x74,0x68,0x65,0x6e])](()=>{_0xe90c9f||_0x3e41fa(_0x2f6542([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x365070(){return _0x4f00cb[_0x2f6542([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f6542([0x76,0x69,0x65,0x77])][_0x2f6542([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f6542([0x61,0x75,0x74,0x6f]);}function _0xcc8951(){_0x4f00cb[_0x2f6542([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f6542([0x76,0x69,0x65,0x77])][_0x2f6542([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f6542([0x61,0x75,0x74,0x6f]);}}function _0xcecda0(_0x43d4e3){const _0x2dbfc5=[new window[(_0x2f6542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad271=>setTimeout(_0x3ad271,0x175ad3eb^_0x253e7c)),_0x259301[_0x2f6542([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f6542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d52e0=>{const _0x2df99d=0x1753ed20^_0x253e7c,_0x4fdb8c=_0x10bfc9[_0x2f6542([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x41eac5(){_0x4fdb8c[_0x2f6542([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2df99d&&_0x5d52e0();}_0x41eac5(),_0x4fdb8c[_0x2f6542([0x6f,0x6e])](_0x2f6542([0x61,0x64,0x64]),_0x41eac5);})),new window[(_0x2f6542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cc0a9=>{function _0x318d16(){for(const _0x24be6b in window)if(window[_0x2f6542([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2f6542([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x24be6b))&&window[_0x24be6b]==_0x3277b4)return _0x4cc0a9();_0x4f00cb[_0x2f6542([0x73,0x74,0x61,0x74,0x65])]!=_0x2f6542([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2f6542([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x318d16,0x1753feaf^_0x253e7c);}_0x1eb6aa(_0x2f6542([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x318d16();})];return window[_0x2f6542([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f6542([0x72,0x61,0x63,0x65])](_0x2dbfc5)[_0x2f6542([0x74,0x68,0x65,0x6e])](()=>_0x43d4e3);}async function _0x4a6d5e(){if(await _0x259301,_0x1eb6aa(_0x2f6542([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x538273=_0x10bfc9[_0x2f6542([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1b1eb1=_0x10bfc9[_0x2f6542([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])](_0x538273[_0x2f6542([0x69,0x64])]),_0x34e1b5=_0xeeeba2(_0x2f6542([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x34e1b5[_0x2f6542([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x538273['id'],_0x1b1eb1?_0x1b1eb1['id']:null,!0x0),_0x34e1b5[_0x2f6542([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2f6542([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x34e1b5[_0x2f6542([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x34e1b5[_0x2f6542([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x50b512,void(_0x34e1b5[_0x2f6542([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x50b512);}if(_0x1eb6aa(_0x2f6542([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x302948=_0xeeeba2(_0x2f6542([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x302948[_0x2f6542([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2f6542([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x302948[_0x2f6542([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x302948[_0x2f6542([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x50b512,_0x302948[_0x2f6542([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x50b512;}_0x4f00cb[_0x2f6542([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f6542([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50b512,_0x4f00cb[_0x2f6542([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f6542([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50b512,_0x4f00cb[_0x2f6542([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f6542([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4caed9(){return _0x1eb6aa(_0x2f6542([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xeeeba2(_0x2f6542([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2f6542([0x73,0x74,0x61,0x74,0x65])]==_0x2f6542([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x10d84a(){return _0x1eb6aa(_0x2f6542([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 _0x5b4052(){return _0x1eb6aa(_0x2f6542([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x43c298(_0x25915c){const _0x201098=_0x560b80();_0x4f00cb[_0x201098]=_0x2f6542([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])+_0x25915c,_0x25915c[_0x2f6542([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2f6542([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x560b80()]=_0x3277b4),_0x25915c!=_0x2f6542([0x56,0x61,0x6c,0x69,0x64])&&_0x4a6d5e();}function _0x560b80(){const _0x1d7f0e=window[_0x2f6542([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f6542([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f6542([0x6e,0x6f,0x77])]())[_0x2f6542([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f6542([0x2e]),'');let _0x35a648=_0x2f6542([0x74]);for(let _0x2f3cf5=0x0;_0x2f3cf5<_0x1d7f0e[_0x2f6542([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f3cf5+=0x2){let _0x35a8a8=window[_0x2f6542([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d7f0e[_0x2f6542([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f3cf5,_0x2f3cf5+0x2));_0x35a8a8>=_0x3350d5[_0x2f6542([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35a8a8-=_0x3350d5[_0x2f6542([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35a648+=_0x3350d5[_0x35a8a8];}return _0x35a648;}function _0x58259e(){const _0x1e8183=_0x3a4bac[_0x2f6542([0x73,0x70,0x6c,0x69,0x74])](_0x2f6542([0x2e]));if(0x3!=_0x1e8183[_0x2f6542([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3830ae(_0x1e8183[0x1]);function _0x3830ae(_0x15703f){const _0x2b5960=_0x31c132(_0x15703f);return _0x2b5960&&_0xf6ef12()?_0x2b5960:null;function _0xf6ef12(){const _0x25f431=_0x2b5960[_0x2f6542([0x6a,0x74,0x69])],_0x4f51da=window[_0x2f6542([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25f431[_0x2f6542([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25f431[_0x2f6542([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48a520={..._0x2b5960,[_0x2f6542([0x6a,0x74,0x69])]:_0x25f431[_0x2f6542([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25f431[_0x2f6542([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48a520[_0x2f6542([0x76,0x63])],_0x1d6fdd(_0x48a520)==_0x4f51da;}}}async function _0x32210c(){let _0x238faa=!0x0;try{const _0x449a65=_0x3a4bac[_0x2f6542([0x73,0x70,0x6c,0x69,0x74])](_0x2f6542([0x2e])),[_0x26b325,_0x3adf2a,_0x1b1a5d]=_0x449a65;return _0x339189(_0x26b325),await _0x4002fc(_0x26b325,_0x3adf2a,_0x1b1a5d),_0x238faa;}catch(_0xcb2fe2){return!0x1;}function _0x339189(_0x155815){const _0x3b06d7=_0x31c132(_0x155815);_0x3b06d7&&_0x3b06d7[_0x2f6542([0x61,0x6c,0x67])]==_0x2f6542([0x45,0x53,0x32,0x35,0x36])||(_0x238faa=!0x1);}async function _0x4002fc(_0x4c572d,_0x3d94df,_0x146923){const _0x36b456=window[_0x2f6542([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f6542([0x66,0x72,0x6f,0x6d])](_0x166572(_0x146923),_0x20a685=>_0x20a685[_0x2f6542([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e86da=new window[(_0x2f6542([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f6542([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c572d+_0x2f6542([0x2e])+_0x3d94df),_0x4c4da7=window[_0x2f6542([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f6542([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c4da7)return;const _0xb5e550=await _0x4c4da7[_0x2f6542([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f6542([0x6a,0x77,0x6b]),_0x2c5255,{[_0x2f6542([0x6e,0x61,0x6d,0x65])]:_0x2f6542([0x45,0x43,0x44,0x53,0x41]),[_0x2f6542([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f6542([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f6542([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c4da7[_0x2f6542([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f6542([0x6e,0x61,0x6d,0x65])]:_0x2f6542([0x45,0x43,0x44,0x53,0x41]),[_0x2f6542([0x68,0x61,0x73,0x68])]:{[_0x2f6542([0x6e,0x61,0x6d,0x65])]:_0x2f6542([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb5e550,_0x36b456,_0x1e86da)||(_0x238faa=!0x1);}}function _0x31c132(_0x1017ef){return _0x1017ef[_0x2f6542([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f6542([0x65,0x79]))?JSON[_0x2f6542([0x70,0x61,0x72,0x73,0x65])](_0x166572(_0x1017ef)):null;}function _0x166572(_0x3d0b14){return window[_0x2f6542([0x61,0x74,0x6f,0x62])](_0x3d0b14[_0x2f6542([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f6542([0x2b]))[_0x2f6542([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f6542([0x2f])));}function _0x1d6fdd(_0x473720){let _0x1e49a4=0x1505;function _0x35f35d(_0x2df8e6){for(let _0x3d6bdd=0x0;_0x3d6bdd<_0x2df8e6[_0x2f6542([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d6bdd++){const _0x5a7d90=_0x2df8e6[_0x2f6542([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d6bdd);_0x1e49a4=(_0x1e49a4<<0x5)+_0x1e49a4+_0x5a7d90,_0x1e49a4&=_0x1e49a4;}}function _0x467a01(_0x88656b){Array[_0x2f6542([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x88656b)?_0x88656b[_0x2f6542([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x467a01):_0x88656b&&typeof _0x88656b==_0x2f6542([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f6542([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x88656b)[_0x2f6542([0x73,0x6f,0x72,0x74])]()[_0x2f6542([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3aa6d2,_0x1c7c68])=>{_0x35f35d(_0x3aa6d2),_0x467a01(_0x1c7c68);}):_0x35f35d(window[_0x2f6542([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x88656b));}return _0x467a01(_0x473720),_0x1e49a4>>>0x0;}function _0xf3051a(_0x1c06bf){return _0x1c06bf[_0x2f6542([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f6542([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f6542([0x30]));}function _0x54f419(_0x1f5488){return _0x1f5488[_0x2f6542([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f6542([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f6542([0x6a,0x6f,0x69,0x6e])]('');}function _0x1eb6aa(_0x50b0b8){return _0x4f00cb[_0x2f6542([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f6542([0x68,0x61,0x73])](_0x50b0b8);}function _0xeeeba2(_0x769d2){return _0x4f00cb[_0x2f6542([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f6542([0x67,0x65,0x74])](_0x769d2);}function _0x50b512(){}function _0x2f6542(_0x3e53c5){return _0x3e53c5['map'](_0x303a13=>String['fromCharCode'](_0x303a13))['join']('');}_0x43c298(await _0x15f988());}(this);}['createRevision'](_0x397ef9){const _0x12f874=this['editor']['plugins']['get']('Users');return new h({'id':_0x397ef9['id'],'name':_0x397ef9['name'],'creator':_0x397ef9['creatorId']?_0x12f874['getUser'](_0x397ef9['creatorId']):null,'diffData':_0x397ef9['diffData']||_0x397ef9['data'],'authors':_0x397ef9['authorsIds']['map'](_0x43b340=>_0x12f874['getUser'](_0x43b340)),'createdAt':new Date(_0x397ef9['createdAt']),'attributes':_0x397ef9['attributes'],'fromVersion':_0x397ef9['fromVersion'],'toVersion':_0x397ef9['toVersion']});}['addRevision'](_0x4b6355,_0x41dd83=0x0){this['_revisions']['add'](_0x4b6355,_0x41dd83);}['getRevision'](_0x18e6cc){return this['_revisions']['get'](_0x18e6cc);}['getRevisions'](_0x44bd4b={'toJSON':!0x1}){const _0x561103=Array['from'](this['_revisions']);return _0x561103['reverse'](),_0x44bd4b['toJSON']?_0x561103['map'](_0x17af00=>_0x17af00['toJSON']()):_0x561103;}['getIndex'](_0x2567b6){return this['_revisions']['getIndex'](_0x2567b6);}['getEarlierVisibleRevision'](_0x136a55){const [,_0x558b55]=this['getRevisionsIterator'](_0x136a55,{'direction':'earlier'});return _0x558b55;}['getLaterVisibleRevision'](_0x38fd40){const [,_0x3a4086]=this['getRevisionsIterator'](_0x38fd40,{'direction':'later'});return _0x3a4086;}['getRevisionsInDiff'](_0x212bcf){const _0x37202d=[];for(const _0x4d9540 of this['getRevisionsIterator'](_0x212bcf['newRevisionId']))if(_0x37202d['push'](_0x4d9540),_0x4d9540['id']===_0x212bcf['oldRevisionId'])break;return _0x37202d;}*['getRevisionsIterator'](_0x345628,{direction:_0x1b8364='earlier',filter:_0x22ff01=()=>!0x0}={}){const _0x59ae71='earlier'===_0x1b8364?0x1:-0x1;let _0x75ffe9=this['_revisions']['get'](_0x345628),_0x41adb2=this['getIndex'](_0x75ffe9);for(yield _0x75ffe9;_0x75ffe9;){if(_0x41adb2+=_0x59ae71,_0x75ffe9=this['getRevision'](_0x41adb2),!_0x75ffe9)return;_0x22ff01(_0x75ffe9)&&(yield _0x75ffe9);}}}class V extends _0x553bb9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2ab8e2,'c'],[_0x3efc1b,'a'],[_0x14277a,'e'],[_0x12bbe6,'r'],[_0x4fc3cf,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2ab8e2],['a',_0x3efc1b],['e',_0x14277a],['r',_0x12bbe6],['u',_0x4fc3cf]]);async['loadRevisionData'](_0x3d16f0,_0x2d0272){if(_0x3d16f0['diffData']||!_0x2d0272)return;const _0x2eaad3=this['editor']['config']['get']('collaboration.channelId'),_0x5b68ca=await _0x2d0272['getRevision']({'channelId':_0x2eaad3,'revisionId':_0x3d16f0['id']});_0x3d16f0['diffData']=_0x5b68ca['diffData'];}['getRevisionDocumentData'](_0x2258e7){const _0x22923f={};for(const _0x517648 in _0x2258e7['diffData']){if(_0x2258e7['diffData'][_0x517648]['attachChange']&&!_0x2258e7['diffData'][_0x517648]['attachChange']['isAttached'])continue;const _0x570075=this['_removeRevisionMarkers'](JSON['parse'](_0x2258e7['diffData'][_0x517648]['insertions'])),_0x2bfe0f=this['editor']['editing']['view']['document'],_0x3ead0f=new _0x319660(_0x2bfe0f,_0x570075['map'](_0x2bee5f=>this['_getViewFromDiffObj'](_0x2bee5f,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x22923f[_0x517648]=this['editor']['data']['processor']['toData'](_0x3ead0f),this['editor']['data']['processor']['useFillerType']('default');}return _0x22923f;}['getRevisionRootsAttributes'](_0x9d93a4){const _0x1b21ea={};for(const _0x2b1f1c in _0x9d93a4['diffData'])_0x9d93a4['diffData'][_0x2b1f1c]['attachChange']&&!_0x9d93a4['diffData'][_0x2b1f1c]['attachChange']['isAttached']||(_0x1b21ea[_0x2b1f1c]=_0x9d93a4['diffData'][_0x2b1f1c]['attributesAfter']||{});return _0x1b21ea;}['_getTypeCharForViewElement'](_0x308c3a){return this['_viewClassToTypeChar']['get'](_0x308c3a['constructor']);}['_getViewFromDiffObj'](_0x5e83e5,_0x731f95){const _0x170eee=this['editor']['editing']['view']['document'];if('string'==typeof _0x5e83e5)return new _0x566168(_0x170eee,_0x5e83e5);{let _0x124242,_0x262ba1;_0x262ba1='u'==_0x5e83e5['type']||'r'==_0x5e83e5['type']?[]:_0x5e83e5['children']['map'](_0x486c72=>this['_getViewFromDiffObj'](_0x486c72,_0x731f95));const _0x1a6a04=this['_typeCharToViewClass']['get'](_0x5e83e5['type'])||_0x24d873,_0x5372ba=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x124242=new _0x1a6a04(_0x170eee,_0x5e83e5['name'],_0x5e83e5['attributes'],_0x262ba1),'u'==_0x5e83e5['type']&&_0x5e83e5['children'][0x0]){const _0x105893=_0x5e83e5['children'][0x0];if(_0x124242['render']=function(_0x5b758a){const _0x454b3c=_0x5b758a['createElement']('div');return _0x454b3c['innerHTML']=_0x105893,_0x454b3c['childNodes'][0x0];},_0x731f95){const _0x43fd68=new _0x319660(_0x170eee);_0x43fd68['_appendChild'](_0x124242);const _0x179196=Array['from'](_0x5372ba['viewChildrenToDom'](_0x43fd68,{'bind':!0x1})),_0x6ab734=_0x5372ba['domDocument']['createElement']('div');_0x6ab734['append'](..._0x179196),_0x124242=Array['from'](_0x5372ba['domChildrenToView'](_0x6ab734))[0x0];}}else{if('r'==_0x5e83e5['type']&&_0x5e83e5['children'][0x0]){const _0x109cdf=_0x5e83e5['children'][0x0];if(_0x124242['render']=function(_0x372f05){_0x372f05['innerHTML']=_0x109cdf;},_0x731f95){const _0x133047=new _0x319660(_0x170eee);_0x133047['_appendChild'](_0x124242);const _0x3e45a2=Array['from'](_0x5372ba['viewChildrenToDom'](_0x133047,{'bind':!0x1})),_0x337a3c=_0x5372ba['domDocument']['createElement']('div');_0x337a3c['append'](..._0x3e45a2);const _0x3dc646=Array['from'](_0x5372ba['domChildrenToView'](_0x337a3c));_0x3dc646['length']>0x1?_0x124242['_appendChild'](_0x3dc646):_0x124242=_0x3dc646[0x0];}}}if(_0x5e83e5['customProperties']){for(const [_0x43f84e,_0x250edc]of _0x5e83e5['customProperties'])_0x124242['_setCustomProperty'](_0x43f84e,_0x250edc);}const _0x2f9c8e=void 0x0===_0x5e83e5['fillerOffset']?null:_0x5e83e5['fillerOffset'];return null!==_0x2f9c8e&&(_0x124242['getFillerOffset']=()=>_0x2f9c8e),_0x124242;}}['_makeModelFromViewString'](_0x2ff8a7){const _0x33019a=JSON['parse'](_0x2ff8a7),_0x3ecadd=this['editor']['editing']['view']['document'],_0x8724ab=new _0x319660(_0x3ecadd,_0x33019a['map'](_0x43ed9a=>this['_getViewFromDiffObj'](_0x43ed9a,!0x0)));return this['editor']['data']['toModel'](_0x8724ab);}['_removeRevisionMarkers'](_0x4a157c){return(_0x4a157c=_0x4a157c['filter'](_0x496629=>!_0x496629['name']||'revision-start'!==_0x496629['name']&&'revision-end'!==_0x496629['name']))['forEach'](_0x419241=>{'string'!=typeof _0x419241&&(_0x419241['children']=this['_removeRevisionMarkers'](_0x419241['children']),_0x419241['attributes']=_0x419241['attributes']['filter'](_0x5d6d78=>!_0x5d6d78[0x0]['startsWith']('data-revision-')));}),_0x4a157c;}}function g(_0x212d0b,_0x1fe524,_0x49e64a){const t=_0x212d0b['t'];switch(_0x1fe524){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'},_0x49e64a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x49e64a);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 _0x553bb9{['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[_0x5434d8,I,V,_0xdcd942];}constructor(_0x3d8868){super(_0x3d8868),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 _0x5b868e=_0x33821a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5b868e},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 _0x514e5e=this['repository']['getRevision'](0x0),_0x544a7f=_0x514e5e&&null===_0x514e5e['creator']?_0x514e5e:null;if(this['_continueCurrentRevision']=!!_0x544a7f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4a3f01=this['_source']['getCurrentRevisionId'](),_0x2727a6=this['repository']['getRevision'](_0x4a3f01);if(_0x2727a6)this['_startingVersion']=_0x2727a6['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5e8c40=this['_source']['history']['_operations']['find'](_0x3ffae2=>!_0x3ffae2['_isInit']),_0x5e5e82=_0x5e8c40?_0x5e8c40['baseVersion']:this['_source']['history']['version'];_0x514e5e?(_0x514e5e['toVersion']<_0x5e5e82&&_0x514e5e['_update']({'toVersion':_0x5e5e82}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x544a7f['id'],this['_startingVersion']=_0x544a7f['fromVersion']):(this['_startingVersion']=_0x514e5e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5e5e82,this['_continueCurrentRevision']=!0x1);}}else _0x544a7f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x544a7f['toVersion'],this['editor']['model']['document']['history']['version']),_0x544a7f['fromVersion']===_0x544a7f['toVersion']?(0x0!==_0x544a7f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x544a7f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x544a7f['id'],this['_startingVersion']=_0x544a7f['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',_0x5e9fb0=>!_0x5e9fb0),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d11e8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b8025;for(const _0x245eda in _0x1d11e8){const _0x213fe3=_0x245eda,_0x4a4056=_0x1d11e8[_0x213fe3];if('revisionHistoryLicenseKeyValid'==_0x4a4056||'revisionHistoryLicenseKeyInvalid'==_0x4a4056||'revisionHistoryLicenseKeyExpired'==_0x4a4056||'revisionHistoryLicenseKeyDomainLimit'==_0x4a4056||'revisionHistoryLicenseKeyNotAllowed'==_0x4a4056||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a4056||'revisionHistoryLicenseKeyTrialLimit'==_0x4a4056||'revisionHistoryLicenseKeyUsageLimit'==_0x4a4056){delete _0x1d11e8[_0x213fe3],_0x3b8025=_0x4a4056,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3b8025&&_0x1d11e8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3b8025&&_0x1d11e8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3b8025&&_0x1d11e8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3b8025&&_0x1d11e8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3b8025&&_0x1d11e8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3b8025&&_0x1d11e8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3b8025&&_0x1d11e8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x414603=this['repository']['getRevision'](0x0),_0x4f1ae2=await this['getRevisionDocumentData'](_0x414603),_0xf9d8c=await this['getRevisionRootsAttributes'](_0x414603);this['_replaceEditorDataWithRevisionData'](_0x4f1ae2,_0xf9d8c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xcb8e65){this['_source']=_0xcb8e65;}async['update'](){const _0x20cf64=await this['_source']['getLatestVersion']();if(_0x20cf64>this['currentRevision']['toVersion']){await this['_loadState']();const _0x13b554=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x20cf64});_0x13b554['authors']=_0x13b554['authorsIds']['map'](_0x221044=>this['editor']['plugins']['get']('Users')['getUser'](_0x221044)),this['currentRevision']['_update'](_0x13b554);}}async['saveRevision'](_0x4b64b8={},_0x58c794=null){const _0x4793be=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x58c794>this['currentRevision']['toVersion']&&(_0x58c794=null),null===_0x58c794&&(_0x58c794=await this['_source']['getLatestVersion']());const _0x28ce79=this['_getFromVersion'](_0x58c794),_0x4f5f63=this['buildRevisionData']({'from':_0x28ce79,'to':_0x58c794});if(this['currentRevision']['toVersion']<_0x58c794){const _0x39b34f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x58c794,'to':_0x58c794});_0x39b34f['authors']=[],_0x39b34f['authorsIds']=[],_0x39b34f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x39b34f,!0x0),delete _0x39b34f['authors'],_0x4793be['push'](_0x39b34f);}_0x4b64b8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b64b8['name']=_0x4b64b8['name']||null,_0x4b64b8['id']=_0x4b64b8['id']||_0x33821a(),_0x4b64b8={..._0x4b64b8,..._0x4f5f63};const _0x3a8a72=this['addRevisionData'](_0x4b64b8);_0x4793be['push'](_0x4b64b8);const _0x228c2a=this['repository']['getIndex'](_0x3a8a72);if(0x0!==_0x228c2a){const _0x5c8c9=this['repository']['getRevision'](_0x228c2a-0x1);if(_0x5c8c9['fromVersion']!==_0x58c794){const _0xf7d904=this['_revisionDataBuilder']['getData'](_0x58c794,_0x5c8c9['toVersion']),_0x972a94={'id':_0x5c8c9['id'],'diffData':_0xf7d904['diffData'],'authorsIds':_0xf7d904['authorsIds'],'authors':_0xf7d904['authorsIds']['map'](_0x168fe2=>this['editor']['plugins']['get']('Users')['getUser'](_0x168fe2)),'fromVersion':_0x58c794};_0x5c8c9===this['currentRevision']&&(_0x972a94['createdAt']=new Date(_0x4b64b8['createdAt']['getTime']()+0xa)),_0x5c8c9['_update'](_0x972a94,!0x0),delete _0x972a94['authors'],_0x4793be['push'](_0x972a94);}}if(this['adapter']){for(const _0x47d79b of _0x4793be)this['_bufferUpdate'](_0x47d79b['id'],_0x47d79b,!0x0);this['sendBufferedUpdates']();}return _0x3a8a72;}['addRevisionData'](_0x339a87){const _0x595f15=this['repository']['createRevision'](_0x339a87);return this['adapter']&&_0x595f15['on']('_update',(_0x192dd0,_0x43eb9d,_0x491547)=>{_0x491547||(this['_bufferUpdate'](_0x43eb9d['id'],_0x43eb9d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x595f15,this['_findInsertionIndex'](_0x595f15)),_0x595f15;}async['getRevisionDocumentData'](_0x234b10){return await this['_utils']['loadRevisionData'](_0x234b10,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x234b10);}async['getRevisionRootsAttributes'](_0x1845e8){return await this['_utils']['loadRevisionData'](_0x1845e8,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1845e8);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x43db94=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x24893a=0x0;_0x24893a<_0x43db94['length'];_0x24893a++){const _0x5210b4=_0x43db94[_0x24893a];let _0x3d2ba8=!0x1;for(const _0x2d0584 of Object['keys'](_0x5210b4))void 0x0===_0x5210b4[_0x2d0584]?delete _0x5210b4[_0x2d0584]:'id'!==_0x2d0584&&(_0x3d2ba8=!0x0);_0x3d2ba8||(_0x43db94[_0x24893a]=null);}if(_0x43db94=_0x43db94['filter'](_0x4f6972=>null!==_0x4f6972),!_0x43db94['length'])return;for(let _0x548bee=0x0;_0x548bee<_0x43db94['length'];_0x548bee++){const _0x2b4757=_0x43db94[_0x548bee];void 0x0!==_0x2b4757['fromVersion']&&void 0x0===_0x2b4757['toVersion']&&(_0x2b4757['toVersion']=this['repository']['getRevision'](_0x2b4757['id'])['toVersion']),void 0x0!==_0x2b4757['toVersion']&&void 0x0===_0x2b4757['fromVersion']&&(_0x2b4757['fromVersion']=this['repository']['getRevision'](_0x2b4757['id'])['fromVersion']);}const _0x1be226=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x43db94,_0x1be226)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2a2c44=>{if(_0x2a2c44){for(const _0x31c416 of _0x2a2c44)this['setRevisionData']({'id':_0x31c416['id'],'createdAt':_0x31c416['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3c83fc=null,from:_0x1a79de=null,to:_0x3517b9=null}){_0x1a79de=null!==_0x1a79de?_0x1a79de:_0x3c83fc['fromVersion'],_0x3517b9=null!==_0x3517b9?_0x3517b9:_0x3c83fc['toVersion'];const _0x542f12=this['_revisionDataBuilder']['getData'](_0x1a79de,_0x3517b9),_0x1a4738={'diffData':_0x542f12['diffData'],'authorsIds':_0x542f12['authorsIds'],'fromVersion':_0x1a79de,'toVersion':_0x3517b9};if(!_0x3c83fc||_0x3517b9!==_0x3c83fc['toVersion']){const _0x47b1c2=_0x3517b9-0x1,_0x2da6d4=this['_source']['history']['getOperation'](_0x47b1c2);_0x1a4738['createdAt']=_0x2da6d4&&_0x2da6d4['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1a79de===this['_loadedStateData']['fromVersion']){for(const _0x21f348 of this['_loadedStateData']['authors'])_0x1a4738['authorsIds']['includes'](_0x21f348['id'])||_0x1a4738['authorsIds']['push'](_0x21f348['id']);}return _0x1a4738;}['_bufferUpdate'](_0x236877,_0x5e6f00,_0x445462){if(this['_bufferedUpdates']['has'](_0x236877)){const _0x242bfc=this['_bufferedUpdates']['get'](_0x236877);_0x5e6f00=_0x445462?{..._0x242bfc,..._0x5e6f00}:{..._0x5e6f00,..._0x242bfc};}this['_bufferedUpdates']['set'](_0x236877,_0x5e6f00);}['setRevisionData'](_0x363a92){const _0x10a29a=this['repository']['getRevision'](_0x363a92['id']);if(_0x363a92['createdAt']&&(_0x363a92['createdAt']=new Date(_0x363a92['createdAt'])),_0x363a92['authorsIds']){const _0x3ab33c=this['editor']['plugins']['get']('Users');_0x363a92['authors']=_0x363a92['authorsIds']['map'](_0x18abe3=>_0x3ab33c['getUser'](_0x18abe3));}_0x10a29a['_update'](_0x363a92,!0x0);}['_createInitialRevision'](_0x4c03c7){const _0x314c03=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x314c03)this['_initialRevisionId']=_0x314c03['id'];else{const _0x256b18=!this['editor']['model']['document']['roots']['find'](_0x40f6c5=>this['editor']['model']['hasContent'](_0x40f6c5)),_0x437f44=this['editor']['plugins']['get']('Users')['me']['id'],_0x5501ec=g(this['editor']['locale'],_0x256b18?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4c03c7,'to':_0x4c03c7,'id':this['_initialRevisionId'],'name':_0x5501ec,'creatorId':_0x437f44});}}['_createCurrentRevision'](_0x2328e3){const _0x444cf2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x444cf2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2328e3,'to':_0x2328e3,'id':_0x444cf2,'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'](_0x3ba55c,_0x8d4e2a){let _0x2fd9d6=this['editor']['config']['get']('initialData'),_0x473c6b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2fd9d6){_0x2fd9d6={};for(const _0x1c120b of this['editor']['model']['document']['getRootNames']())_0x2fd9d6[_0x1c120b]='';}if('string'==typeof _0x2fd9d6&&(_0x2fd9d6={'main':_0x2fd9d6}),void 0x0===_0x473c6b){_0x473c6b={};for(const _0x5665e3 of this['editor']['model']['document']['getRootNames']())_0x473c6b[_0x5665e3]={};}let _0x15fc14=!0x1;const _0x5973b0=Object['keys'](_0x2fd9d6),_0x5762dd=Object['keys'](_0x3ba55c);for(const _0x14b04d of _0x5973b0){if(_0x2fd9d6[_0x14b04d]!==_0x3ba55c[_0x14b04d]&&''!==_0x2fd9d6[_0x14b04d]['trim']()){_0x15fc14=!0x0;break;}if(!_0x2ae65b(_0x473c6b[_0x14b04d],_0x8d4e2a[_0x14b04d])&&Object['keys'](_0x473c6b[_0x14b04d])['length']>0x0){_0x15fc14=!0x0;break;}}_0x15fc14||(_0x15fc14=_0x5762dd['some'](_0x5247b7=>!this['editor']['model']['document']['getRoot'](_0x5247b7))),_0x15fc14&&_0x173e22('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2fd9d6,'editorRootsAttributes':_0x473c6b,'revisionData':_0x3ba55c,'revisionRootsAttributes':_0x8d4e2a}),this['editor']['config']['set']('initialData',_0x3ba55c),this['editor']['config']['set']('rootsAttributes',_0x8d4e2a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4dec2d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4dec2d['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x168789){const _0x65d96b=this['repository']['getRevisions']();_0x65d96b['reverse']();let _0x17dafe=0x0;for(;_0x17dafe<_0x65d96b['length'];){const _0x57e706=_0x65d96b[_0x17dafe];if(_0x57e706===this['currentRevision']){_0x17dafe++;continue;}if(_0x57e706['id']===this['_initialRevisionId'])break;const _0x5c0660=_0x168789['toVersion']-_0x57e706['toVersion']||_0x168789['fromVersion']-_0x57e706['fromVersion'];if(_0x5c0660>0x0)break;if(_0x5c0660<0x0)_0x17dafe++;else{if(!_0x168789['creator']&&_0x57e706['creator'])break;if(_0x57e706['creator']||!_0x168789['creator']){if(_0x168789['createdAt']>_0x57e706['createdAt'])break;_0x17dafe++;}else _0x17dafe++;}}return _0x17dafe;}['_getFromVersion'](_0x542c28){const _0x45df49=this['repository']['getRevisions']();_0x45df49['reverse'](),_0x45df49['shift']();const _0x5a175c=_0x45df49['find'](_0x2aabb7=>_0x2aabb7['toVersion']<=_0x542c28)['toVersion'];return _0x5a175c<this['_startingVersion']?this['_startingVersion']:_0x5a175c;}['_makeRevision']({name:_0x2560a5,from:_0x129d79,to:_0x393dd3,creatorId:_0x24ecac,id:_0x56427e}){const _0x2cbc0a=this['buildRevisionData']({'from':_0x129d79,'to':_0x393dd3});_0x2cbc0a['name']=_0x2560a5,_0x2cbc0a['creatorId']=_0x24ecac,_0x2cbc0a['id']=_0x56427e;const _0x50108a=this['addRevisionData'](_0x2cbc0a);return this['adapter']&&this['_bufferUpdate'](_0x2cbc0a['id'],_0x2cbc0a,!0x0),_0x50108a;}['_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(_0x5eb219){this['editor']=_0x5eb219,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'](_0xadd467){this['source']=_0xadd467;const _0x4c72ef=new Map(),_0x35d77f=new Map(),_0x4d79cc=this['editor']['model']['document']['roots']['map'](_0x13c422=>_0x13c422['rootName']);for(const _0x5861e9 of _0x4d79cc){const _0x2eed88=this['editor']['model']['document']['getRoot'](_0x5861e9),_0x55bcb9=N(_0x2eed88);_0x4c72ef['set'](_0x5861e9,_0x55bcb9),_0x35d77f['set'](_0x5861e9,Object['fromEntries'](_0x2eed88['getAttributes']()));}const _0x130547=Array['from'](this['editor']['model']['markers'])['map'](_0x521243=>[_0x521243['name'],_0x521243['getRange']()]),_0x2bbadd=this['source']['version'];this['_saveMetaData'](_0x2bbadd,_0x4c72ef,_0x130547,_0x35d77f),this['_startingRevisionId']=this['_revisionId'];const _0x3b7846=new Map(),_0x50eced=new Map();for(const _0x32eb93 of _0x4d79cc){const _0x57a9b7=P(_0x32eb93);_0x3b7846['set'](_0x32eb93,_0x57a9b7),_0x50eced['set'](_0x32eb93,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3b7846,[],_0x50eced);}['getData'](_0x4f0764,_0x1a99a2){if(this['_lastFrom']===_0x4f0764&&this['_lastTo']<=_0x1a99a2)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1a99a2,!0x0);else{if(!this['_savedMetaData']['has'](_0x4f0764)){const _0x4d4b34=this['_getPreviousFrom'](_0x4f0764);this['_calculateMetaData'](_0x4d4b34,_0x4f0764,!0x1);}this['_calculateMetaData'](_0x4f0764,_0x1a99a2,!0x0);}return this['_lastFrom']=_0x4f0764,this['_lastTo']=_0x1a99a2,this['_getState']();}['loadState'](_0xa8576f){const _0x25da95=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xa8576f['fromVersion'],this['_lastTo']=_0xa8576f['toVersion'];for(const _0x1d40ee in _0xa8576f['diffData']){const _0xc3bfab=_0xa8576f['diffData'][_0x1d40ee]['attachChange'],_0x1a3768=_0x583fb4(_0xa8576f['diffData'][_0x1d40ee]['attributesBefore'])||{},_0x3b6a53=_0x25da95['_makeModelFromViewString'](_0xa8576f['diffData'][_0x1d40ee]['deletions']);_0x3b6a53['rootName']=_0x1d40ee,_0x3b6a53['_isAttached']=!_0xc3bfab||!_0xc3bfab['isAttached'],_0x3b6a53['isAttached']=()=>_0x3b6a53['_isAttached'],this['_baseRoots']['set'](_0x1d40ee,_0x3b6a53),this['_baseRootsAttributes']['set'](_0x1d40ee,_0x1a3768),_0xc3bfab&&this['_touchedRoots']['set'](_0x1d40ee,_0xc3bfab);const _0x1dd089=this['_makeIdsRoot'](_0x3b6a53);this['_baseIdsRoots']['set'](_0x1d40ee,_0x1dd089);for(const [_0x28452e,_0x5b562d]of _0x3b6a53['markers']){if(!_0x28452e['startsWith']('revision:'))continue;const _0x4535c5=_0x28452e['split'](':')[0x2];for(const _0x209ea1 of _0x5b562d['getWalker']({'singleCharacters':!0x0})){const _0x209878=this['_getVidAttributeName'](_0x209ea1),_0x1d51d8='elementEnd'==_0x209ea1['type']?_0x209ea1['previousPosition']['path']['slice'](0x0,-0x1):_0x209ea1['previousPosition']['path'],_0x57d55b=_0x1dd089['getNodeByPath'](_0x1d51d8)['getAttribute'](_0x209878);this['_touched']['set'](_0x57d55b,{'userId':_0x4535c5});}}}this['_startingRevisionId']=this['_revisionId'];const _0x583f3a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3d9d75=>!this['_touched']['has'](_0x3d9d75));let _0x2e1530=0x0;const _0x1b2107=new Map();for(const _0x1767dc in _0xa8576f['diffData']){const _0x15a0f9=_0xa8576f['diffData'][_0x1767dc]['attachChange'],_0x829cec=_0x583fb4(_0xa8576f['diffData'][_0x1767dc]['attributesAfter'])||{},_0xfa2a0b=_0x25da95['_makeModelFromViewString'](_0xa8576f['diffData'][_0x1767dc]['insertions']);_0xfa2a0b['rootName']=_0x1767dc,_0xfa2a0b['_isAttached']=!_0x15a0f9||_0x15a0f9['isAttached'],_0xfa2a0b['isAttached']=()=>_0xfa2a0b['_isAttached'],this['_diffRoots']['set'](_0x1767dc,_0xfa2a0b),this['_diffRootsAttributes']['set'](_0x1767dc,_0x829cec);const _0x3ceaf3=this['_makeIdsRoot'](_0xfa2a0b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1767dc,_0x3ceaf3),_0x1b2107['set'](_0x1767dc,_0xfa2a0b['isAttached']()?_0x829cec:{});for(const [_0x390ca5,_0x12edb6]of _0xfa2a0b['markers']){if(!_0x390ca5['startsWith']('revision:'))continue;const _0x4a6853=_0x390ca5['split'](':')[0x2];for(const _0x2e5941 of _0x12edb6['getWalker']({'singleCharacters':!0x0})){const _0x153b8b=this['_getVidAttributeName'](_0x2e5941),_0x137bc1=this['_revisionId']++,_0x24d3f6='elementEnd'==_0x2e5941['type']?_0x2e5941['previousPosition']['path']['slice'](0x0,-0x1):_0x2e5941['previousPosition']['path'];_0x3ceaf3['getNodeByPath'](_0x24d3f6)['_setAttribute'](_0x153b8b,_0x137bc1),this['_touched']['set'](_0x137bc1,{'userId':_0x4a6853});}}for(const _0xa57ec1 of this['editor']['model']['createRangeIn'](_0xfa2a0b)['getWalker']({'singleCharacters':!0x0})){const _0x5e0dcc=this['_getVidAttributeName'](_0xa57ec1),_0x4b9723='elementEnd'==_0xa57ec1['type']?_0xa57ec1['previousPosition']['path']['slice'](0x0,-0x1):_0xa57ec1['previousPosition']['path'],_0x2d3f6e=_0x3ceaf3['getNodeByPath'](_0x4b9723);_0x2d3f6e['getAttribute'](_0x5e0dcc)>0x0||_0x2d3f6e['_setAttribute'](_0x5e0dcc,_0x583f3a[_0x2e1530++]);}for(const [_0x5144ce,_0x44a0b7]of _0xfa2a0b['markers'])_0x5144ce['startsWith']('revision:')||this['_markers']['set'](_0x5144ce,_0x44a0b7);}const _0x3f159f=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3f159f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f159f,0x1));const _0x44ad36=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x44ad36),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x44ad36,0x1));const _0x206b57=Array['from'](this['_diffRoots'])['map'](([_0x4b7f23,_0x185198])=>[_0x4b7f23,N(_0x185198)]);this['_saveMetaData'](this['_lastTo'],_0x206b57,this['_markers'],_0x1b2107);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x549173,_0x1eb84e,_0x5b3d7d,_0x1d7b2a){const _0x567efa=new Map(_0x1eb84e),_0x250cf1=new Map(_0x583fb4(_0x1d7b2a)),_0x3a5880=new Map();for(const [_0x3f566f,_0x231027]of _0x5b3d7d)_0x3a5880['set'](_0x3f566f,{'start':_0x231027['start']['clone'](),'end':_0x231027['end']['clone'](),'rootName':_0x231027['root']['rootName']});this['_savedMetaData']['set'](_0x549173,{'roots':_0x567efa,'markers':_0x3a5880,'rootsAttributes':_0x250cf1});}['_removeMetaData'](_0x40ec16){this['_savedMetaData']['delete'](_0x40ec16);}['_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'](_0x2db9e5,_0x803ee8=null){let _0x4594d1=null;_0x2db9e5['is']('documentFragment')||(_0x4594d1=new ut(_0x2db9e5['name'],{'vid_start':null===_0x803ee8?this['_revisionId']++:_0x803ee8++}));const _0x371227=[];for(const _0x4c2bbb of _0x2db9e5['getChildren']())if(_0x4c2bbb['is']('element')){_0x371227['push'](this['_makeIdsRoot'](_0x4c2bbb,_0x803ee8));const _0x2d7271=_0x371227[_0x371227['length']-0x1];null!==_0x803ee8&&(_0x803ee8=_0x2d7271['is']('element','$text')?_0x2d7271['getAttribute']('vid')+0x1:_0x2d7271['getAttribute']('vid_end')+0x1);}else{for(let _0x16982e=0x0;_0x16982e<_0x4c2bbb['offsetSize'];_0x16982e++)_0x371227['push'](new ut('$text',{'vid':null===_0x803ee8?this['_revisionId']++:_0x803ee8++}));}if(_0x2db9e5['is']('documentFragment')){const _0x51842d=P(_0x2db9e5['rootName']);return _0x51842d['_insertChild'](0x0,_0x371227),_0x51842d;}return _0x4594d1['_setAttribute']('vid_end',null===_0x803ee8?this['_revisionId']++:_0x803ee8++),_0x4594d1['_insertChild'](0x0,_0x371227),_0x4594d1;}['_calculateMetaData'](_0x572a06,_0x38d086,_0xd67f76){this['_reset']();const {roots:_0x162db7,markers:_0x2104b7,rootsAttributes:_0x5222aa}=this['_savedMetaData']['get'](_0x572a06);this['_baseRoots']=new Map(_0x162db7),this['_baseRootsAttributes']=new Map(_0x583fb4(_0x5222aa));for(const [_0x262b40,_0x2cd0a1]of this['_baseRoots'])if('$graveyard'!==_0x262b40&&(this['_diffRoots']['set'](_0x262b40,N(_0x2cd0a1)),this['_diffRootsAttributes']=new Map(_0x583fb4(_0x5222aa)),_0xd67f76)){const _0x5eba06=this['_revisionId'];this['_idsRoots']['set'](_0x262b40,this['_makeIdsRoot'](_0x2cd0a1)),this['_baseIdsRoots']['set'](_0x262b40,this['_makeIdsRoot'](_0x2cd0a1,_0x5eba06));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0xd67f76&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x17e5a6,_0x248ebd]of _0x2104b7){const _0x2f32fa=this['_baseRoots']['get'](_0x248ebd['rootName']),_0x285010=this['_diffRoots']['get'](_0x248ebd['rootName']),_0x52d144=new lt(this['_fixPosition'](_0x248ebd['start'],_0x2f32fa),this['_fixPosition'](_0x248ebd['end'],_0x2f32fa)),_0xb8eab3=this['_fixRange'](_0x52d144,_0x285010);_0x2f32fa['markers']['set'](_0x17e5a6,_0x52d144),this['_markers']['set'](_0x17e5a6,_0xb8eab3);}this['_applyOperations'](_0x572a06,_0x38d086,_0xd67f76);}['_applyOperations'](_0x37fce2,_0x55f9ca,_0xd268a6){for(const _0x6b9512 of this['source']['getOperations'](_0x37fce2,_0x55f9ca))this['_handleOperation'](_0x6b9512,_0xd268a6);for(const _0x1484ac of this['_diffRoots']['values']())_0x1484ac['markers']['clear']();for(const [_0x49d6ea,_0x55c4e7]of this['_markers']){this['_diffRoots']['get'](_0x55c4e7['root']['rootName'])['markers']['set'](_0x49d6ea,_0x55c4e7['clone']());}const _0x4adfb2=new Map(),_0x1731bc=new Map();for(const [_0x38cb40,_0x21f3bb]of this['_diffRoots'])_0x4adfb2['set'](_0x38cb40,N(_0x21f3bb)),_0x1731bc['set'](_0x38cb40,this['_diffRootsAttributes']['get'](_0x38cb40));this['_saveMetaData'](_0x55f9ca,_0x4adfb2,this['_markers'],_0x1731bc);}['_getPreviousFrom'](_0x39dffc){const _0x5a78a5=Array['from'](this['_savedMetaData']['keys']());_0x5a78a5['sort']((_0x43e252,_0x281e5b)=>_0x43e252-_0x281e5b),_0x5a78a5['reverse']();for(const _0x1c428c of _0x5a78a5)if(_0x1c428c<_0x39dffc)return _0x1c428c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5e5dd7,_0x458514){const _0x4ace08=Array['from'](_0x458514['markers'])['map'](([_0x4fb948,_0x3cabbc])=>[_0x4fb948,this['_fixRange'](_0x3cabbc,_0x5e5dd7)]);_0x5e5dd7['markers']=new Map(_0x4ace08);}['_transformMarkers'](_0x1f25c8){for(const _0x475959 of this['_markers']['values']()){const _0x237732=_0x475959['getTransformedByOperation'](_0x1f25c8),_0x35d815=lt['_createFromRanges'](_0x237732);_0x475959['start']=_0x35d815['start'],_0x475959['end']=_0x35d815['end'];}}['_handleOperation'](_0x30fb0e,_0x44745a){if('addRoot'!=_0x30fb0e['type']&&'detachRoot'!=_0x30fb0e['type']){if('insert'==_0x30fb0e['type']){const _0x161004=_0x30fb0e['position']['root']['rootName'];this['_diffRoots']['has'](_0x161004)||(this['_diffRoots']['set'](_0x161004,P(_0x161004,!0x0)),this['_diffRootsAttributes']['set'](_0x161004,{}),_0x44745a&&this['_idsRoots']['set'](_0x161004,P(_0x161004,!0x0)));}else{if('addRootAttribute'==_0x30fb0e['type']||'removeRootAttribute'==_0x30fb0e['type']||'changeRootAttribute'==_0x30fb0e['type'])return void this['_handleRootAttributeOperation'](_0x30fb0e);'marker'==_0x30fb0e['type']&&this['_handleMarkerOperation'](_0x30fb0e);}if('marker'!==_0x30fb0e['type']){const _0x262731=this['_cloneOperation'](_0x30fb0e,this['_diffRoots']);_0x262731['_execute'](),this['_transformMarkers'](_0x262731);}if(_0x44745a)switch(_0x30fb0e['type']){case'insert':this['_handleInsertOperation'](_0x30fb0e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x30fb0e);break;case'merge':this['_handleMergeOperation'](_0x30fb0e);break;case'split':this['_handleSplitOperation'](_0x30fb0e);}}else this['_handleRootOperation'](_0x30fb0e,_0x44745a);}['_cloneOperation'](_0x492e15,_0x57571d){const _0x483ac7=_0x492e15['clone']();return _0x483ac7['_authorId']=_0x492e15['_authorId'],this['_fixOperation'](_0x483ac7,_0x57571d),_0x483ac7;}['_getBaseVids'](_0x5f1532){return _0x5f1532['map'](_0xfba9da=>{const _0x2e8292=this['_getVidAttributeName'](_0xfba9da);return Number(_0xfba9da['item']['getAttribute'](_0x2e8292));});}['_generateTape'](_0x18d0b7,_0xf6c62f){if(_0x18d0b7['is']('element','$text'))_0xf6c62f['push']({'item':_0x18d0b7,'type':'text'});else{_0x18d0b7['is']('element')&&_0xf6c62f['push']({'item':_0x18d0b7,'type':'elementStart'});for(const _0x13d06b of _0x18d0b7['getChildren']())this['_generateTape'](_0x13d06b,_0xf6c62f);_0x18d0b7['is']('element')&&_0xf6c62f['push']({'item':_0x18d0b7,'type':'elementEnd'});}return _0xf6c62f;}['_getState'](){const _0x552771=new Map(this['_touched']),_0x36a5d9=new Map(_0x552771),_0x3e7e9c=new Map(),_0x1d43bc={'insertions':{},'deletions':{}},_0x47d329={'insertions':{},'deletions':{}},_0x4fb8eb=new Map(),_0x30dcfd=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x30dcfd['delete']('$graveyard');for(const _0x2b6fa8 of _0x30dcfd){const _0x4dea14=this['_diffRoots']['get'](_0x2b6fa8)||P(_0x2b6fa8,!0x1),_0x2b3d91=this['_baseRoots']['get'](_0x2b6fa8)||P(_0x2b6fa8,!0x1);_0x4dea14['isAttached']()||_0x2b3d91['isAttached']()?(_0x1d43bc['insertions'][_0x2b6fa8]=N(_0x4dea14),_0x1d43bc['deletions'][_0x2b6fa8]=N(_0x2b3d91),this['_copyMarkers'](_0x1d43bc['deletions'][_0x2b6fa8],_0x2b3d91),this['_copyMarkers'](_0x1d43bc['insertions'][_0x2b6fa8],_0x4dea14),_0x47d329['insertions'][_0x2b6fa8]=this['_generateTape'](this['_idsRoots']['get'](_0x2b6fa8),[]),_0x47d329['deletions'][_0x2b6fa8]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2b6fa8)||P(_0x2b6fa8,!0x1),[])):_0x30dcfd['delete'](_0x2b6fa8);}for(const _0x5b5606 of _0x30dcfd){const _0x461968=_0x47d329['insertions'][_0x5b5606];for(const _0x56faa2 of _0x461968){const _0x42a042=this['_getVidAttributeName'](_0x56faa2),_0x2a0d3a=_0x56faa2['item']['getAttribute'](_0x42a042);_0x36a5d9['delete'](_0x2a0d3a),_0x2a0d3a>=this['_startingRevisionId']&&_0x3e7e9c['set'](_0x2a0d3a,_0x552771['get'](_0x2a0d3a));}}for(const _0x59541b of _0x30dcfd){const _0x416203=_0x47d329['insertions'][_0x59541b],_0x20ea48=this['_getBaseVids'](_0x47d329['deletions'][_0x59541b]);let _0x1f6d96=0x0;for(const _0x33c018 of _0x416203){const _0x39a9e4=this['_getVidAttributeName'](_0x33c018),_0x2c22d2=_0x33c018['item']['getAttribute'](_0x39a9e4);if(!_0x3e7e9c['has'](_0x2c22d2)&&!_0x4fb8eb['has'](_0x2c22d2)){if(_0x36a5d9['has'](_0x2c22d2))_0x1f6d96++;else{if(_0x2c22d2!=_0x20ea48[_0x1f6d96]){const _0x13b29e=_0x552771['get'](_0x2c22d2)||_0x552771['get'](_0x20ea48[_0x1f6d96]);for(;_0x2c22d2!=_0x20ea48[_0x1f6d96];)_0x36a5d9['has'](_0x20ea48[_0x1f6d96])||(_0x4fb8eb['set'](_0x20ea48[_0x1f6d96],_0x13b29e),_0x552771['set'](_0x20ea48[_0x1f6d96],_0x13b29e)),_0x1f6d96++;}_0x1f6d96++;}}}}for(const _0x1dc082 of _0x30dcfd){const _0x344532=_0x47d329['insertions'][_0x1dc082];for(const _0x16011e of _0x344532){const _0x4ecfba=this['_getVidAttributeName'](_0x16011e),_0x38056b=_0x16011e['item']['getAttribute'](_0x4ecfba);if(_0x4fb8eb['has'](_0x38056b)){const _0x39f556=_0x4fb8eb['get'](_0x38056b);_0x36a5d9['has'](_0x38056b)||_0x36a5d9['set'](_0x38056b,{..._0x39f556}),_0x3e7e9c['set'](_0x38056b,{..._0x39f556});}}}for(const _0x430b18 of _0x36a5d9['keys']())_0x430b18>=this['_startingRevisionId']&&_0x36a5d9['delete'](_0x430b18);const _0x1fd827=new Map();for(const _0x49a71e of _0x30dcfd){let _0x5ade41=_0x47d329['insertions'][_0x49a71e];for(const _0x43009f of _0x5ade41)if(_0x43009f['item']['is']('element','tableCell')){const _0x207148=this['_getVidAttributeName'](_0x43009f),_0x1bc021=_0x43009f['item']['getAttribute'](_0x207148);if(_0x3e7e9c['has'](_0x1bc021)){const _0x2c8a6c=_0x43009f['item']['parent']['parent']['getAttribute']('vid_start'),_0x301c76=_0x1fd827['get'](_0x2c8a6c)||new Set();_0x301c76['add'](_0x3e7e9c['get'](_0x1bc021)['userId']),_0x1fd827['set'](_0x2c8a6c,_0x301c76);}}_0x5ade41=_0x47d329['deletions'][_0x49a71e];for(const _0xf04407 of _0x5ade41)if(_0xf04407['item']['is']('element','tableCell')){const _0x35d035=this['_getVidAttributeName'](_0xf04407),_0x578f4d=_0xf04407['item']['getAttribute'](_0x35d035);if(_0x36a5d9['has'](_0x578f4d)){const _0x3b8dce=_0xf04407['item']['parent']['parent']['getAttribute']('vid_start'),_0x58fea8=_0x1fd827['get'](_0x3b8dce)||new Set();_0x58fea8['add'](_0x36a5d9['get'](_0x578f4d)['userId']),_0x1fd827['set'](_0x3b8dce,_0x58fea8);}}for(const _0x1763d0 of _0x1fd827['keys']())(_0x3e7e9c['has'](_0x1763d0)||_0x36a5d9['has'](_0x1763d0))&&_0x1fd827['delete'](_0x1763d0);}for(const _0x44dc3f of _0x30dcfd){const _0x53923f=_0x47d329['insertions'][_0x44dc3f];let _0x3aef0b=null,_0x5ddf8c=null;for(const _0x541294 of _0x53923f){const _0x168ece=this['_getVidAttributeName'](_0x541294),_0x5abe85=_0x541294['item']['getAttribute'](_0x168ece),_0x44e9c7=_0x1fd827['get'](_0x5abe85);_0x44e9c7&&'elementStart'==_0x541294['type']&&(_0x3aef0b=Array['from'](_0x44e9c7)[0x0],_0x5ddf8c=_0x541294['item']['getAttribute']('vid_end')),_0x3aef0b&&(_0x36a5d9['set'](_0x5abe85,{'userId':_0x3aef0b}),_0x3e7e9c['set'](_0x5abe85,{'userId':_0x3aef0b})),_0x5abe85==_0x5ddf8c&&(_0x3aef0b=null,_0x5ddf8c=null);}}const _0x3601cd={},_0x3fda85=new Set();for(const _0x4cfc0f of _0x30dcfd){const _0x18a8d4=_0x1d43bc['deletions'][_0x4cfc0f],_0x2af574=_0x1d43bc['insertions'][_0x4cfc0f];for(const {userId:_0x36d421}of this['_touchedMarkers']['values']())null!==_0x36d421&&_0x3fda85['add'](_0x36d421);for(const {userId:_0x4b95b4}of this['_touchedRoots']['values']())null!==_0x4b95b4&&_0x3fda85['add'](_0x4b95b4);this['_markChanges'](_0x2af574,_0x47d329['insertions'][_0x4cfc0f],_0x3e7e9c,'insertion',_0x3fda85),this['_markChanges'](_0x18a8d4,_0x47d329['deletions'][_0x4cfc0f],_0x36a5d9,'deletion',_0x3fda85),_0x3601cd[_0x4cfc0f]={'insertions':this['_prepareViewToSave'](_0x2af574),'deletions':this['_prepareViewToSave'](_0x18a8d4),'attachChange':this['_touchedRoots']['get'](_0x4cfc0f)||null,'attributesBefore':_0x583fb4(this['_baseRootsAttributes']['get'](_0x4cfc0f))||{},'attributesAfter':_0x583fb4(this['_diffRootsAttributes']['get'](_0x4cfc0f))};}return{'diffData':_0x3601cd,'authorsIds':Array['from'](_0x3fda85)};}['_processRootBeforeSave'](_0x43c75f){for(const [,_0x2c0df1]of _0x43c75f['markers']){const _0x2a102a=_0x2c0df1['start']['getAncestors']()['filter'](_0x40a6f7=>'tableCell'==_0x40a6f7['name']);for(const _0x25dd05 of _0x2a102a)0x1==_0x25dd05['childCount']&&_0x25dd05['getChild'](0x0)['is']('element','paragraph')&&_0x25dd05['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x378986){this['_processRootBeforeSave'](_0x378986);const _0x2c6b68=this['editor']['data']['toView'](_0x378986,{}),_0x51e56a=Array['from'](_0x2c6b68['getChildren']())['map'](_0x5aa3a5=>this['_getViewJson'](_0x5aa3a5));return JSON['stringify'](_0x51e56a);}['_getViewJson'](_0xb46252){if(_0xb46252['is']('$text'))return _0xb46252['data'];{const _0x11c7b8=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x499d14=_0xb46252,_0x1b7d9e=this['editor']['data']['htmlProcessor']['domConverter'],_0xa1900c={'type':_0x11c7b8['_getTypeCharForViewElement'](_0x499d14),'name':_0x499d14['name'],'attributes':Array['from'](_0x499d14['getAttributes']()),'children':Array['from'](_0x499d14['getChildren']())['map'](_0x4b71ae=>this['_getViewJson'](_0x4b71ae))};if(_0xb46252['is']('uiElement')&&'$comment'!=_0xb46252['name']){const _0x38889f=_0xb46252['render'](_0x1b7d9e['domDocument'],_0x1b7d9e);_0xa1900c['children']['push'](_0x38889f['outerHTML']);}else{if(_0xb46252['is']('rawElement')){const _0x4cfa44=_0x1b7d9e['domDocument']['createElement'](_0x499d14['name']);_0xb46252['render'](_0x4cfa44,_0x1b7d9e),_0xa1900c['children']['push'](_0x4cfa44['innerHTML']);}}const _0x108cd9=Array['from'](_0x499d14['getCustomProperties']());_0x108cd9['length']>0x0&&(_0xa1900c['customProperties']=_0x108cd9);const _0x2f5035=_0x499d14['getFillerOffset']();return null!==_0x2f5035&&(_0xa1900c['fillerOffset']=_0x2f5035),_0xa1900c;}}['_markChanges'](_0x539234,_0x58d918,_0x4c056b,_0x29ce5b,_0x433a7f){let _0x5409b3=null,_0x5e3a35=null,_0x78d7a6=0x0;const _0x18b8bb=this['editor']['model'];for(let _0x32bb80=0x0;_0x32bb80<_0x58d918['length'];_0x32bb80++){const _0x395a80=this['_getVidAttributeName'](_0x58d918[_0x32bb80]),_0x2edbdb=_0x58d918[_0x32bb80]['item']['getAttribute'](_0x395a80),_0x11881c=_0x4c056b['get'](_0x2edbdb),_0x1599b0=_0x32bb80==_0x58d918['length']-0x1;(!_0x5409b3&&_0x11881c&&(_0x5409b3=_0x11881c,_0x5e3a35=_0x58d918[_0x32bb80]),_0x5409b3&&(!_0x11881c||_0x11881c['userId']!=_0x5409b3['userId']))&&(_0xc1af31(_0x11881c,F(_0x5e3a35,_0x539234,_0x18b8bb),F(_0x58d918[_0x32bb80],_0x539234,_0x18b8bb)),_0x5409b3=_0x11881c||null,_0x5e3a35=_0x11881c?_0x58d918[_0x32bb80]:null),_0x5409b3&&_0x1599b0&&_0xc1af31(_0x11881c,F(_0x5e3a35,_0x539234,_0x18b8bb),B(_0x58d918[_0x32bb80],_0x539234,_0x18b8bb));}function _0xc1af31(_0x95c0d1,_0x4dac09,_0x4c7860){const _0x5d119b=_0x5409b3['userId'],_0x40f695='revision:'+_0x29ce5b+':'+_0x5d119b+':'+_0x78d7a6++,_0x133479=_0x18b8bb['createRange'](_0x4dac09,_0x4c7860);_0x539234['markers']['set'](_0x40f695,_0x133479),null!==_0x5d119b&&_0x433a7f['add'](_0x5d119b);}}['_getVidAttributeName'](_0x369bae){switch(_0x369bae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5f3551,_0x4f8d20){_0x5f3551['baseVersion']=null;for(const _0x56ea20 in _0x5f3551){const _0x7f5615=_0x5f3551[_0x56ea20];if(_0x7f5615 instanceof ft){const _0x3b4e9d=_0x4f8d20['get'](_0x7f5615['root']['rootName']);_0x5f3551[_0x56ea20]=this['_fixPosition'](_0x7f5615,_0x3b4e9d);}if(_0x7f5615 instanceof lt){const _0x3ce869=_0x4f8d20['get'](_0x7f5615['root']['rootName']);_0x5f3551[_0x56ea20]=this['_fixRange'](_0x7f5615,_0x3ce869);}'root'===_0x56ea20&&(_0x5f3551['root']=_0x4f8d20['get'](_0x5f3551['root']['rootName']));}}['_fixRange'](_0x4114a1,_0x45813c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4114a1['start'],_0x45813c),this['_fixPosition'](_0x4114a1['end'],_0x45813c));}['_fixPosition'](_0x36da2c,_0x176111){return this['editor']['model']['createPositionFromPath'](_0x176111,_0x36da2c['path'],_0x36da2c['stickiness']);}['_handleInsertOperation'](_0x2cae56){const _0x54dfc1=this['_idsRoots']['get'](_0x2cae56['position']['root']['rootName']),_0x127098=this['_fixPosition'](_0x2cae56['position'],_0x54dfc1),_0x4fec4f=null===_0x2cae56['_authorId']?null:_0x2cae56['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54c46e=_0x127098['parent'],_0x2d85c6=this['_revisionId'],_0x32b6ad=[];for(const _0x50a78d of _0x2cae56['nodes'])if(_0x50a78d['is']('element'))_0x32b6ad['push'](this['_makeIdsRoot'](_0x50a78d));else{for(let _0xe674f6=0x0;_0xe674f6<_0x50a78d['offsetSize'];_0xe674f6++)_0x32b6ad['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x113c87=this['_revisionId'];for(let _0x3c5974=_0x2d85c6;_0x3c5974<_0x113c87;_0x3c5974++)this['_touched']['set'](_0x3c5974,{'userId':_0x4fec4f});_0x54c46e['_insertChild'](_0x127098['offset'],_0x32b6ad);}['_handleMoveOperation'](_0x140d70){(_0x140d70=this['_cloneOperation'](_0x140d70,this['_idsRoots']))['_execute']();const _0x12aabf=null===_0x140d70['_authorId']?null:_0x140d70['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b066e=_0x140d70['getMovedRangeStart'](),_0x271bc8=_0x4b066e['parent'],_0x3fae88=_0x4b066e['offset'];!function _0x30eed2(_0x300012,_0x1152ed,_0xdec539,_0x6b6caf){for(let _0x3afbc5=_0xdec539;_0x3afbc5<_0x6b6caf;_0x3afbc5++){const _0x493eae=_0x1152ed['getChild'](_0x3afbc5);_0x493eae['is']('element','$text')?_0x300012['set'](_0x493eae['getAttribute']('vid'),{'userId':_0x12aabf}):(_0x300012['set'](_0x493eae['getAttribute']('vid_start'),{'userId':_0x12aabf}),_0x30eed2(_0x300012,_0x493eae,0x0,_0x493eae['childCount']),_0x300012['set'](_0x493eae['getAttribute']('vid_end'),{'userId':_0x12aabf}));}}(this['_touched'],_0x271bc8,_0x3fae88,_0x3fae88+_0x140d70['howMany']);}['_handleMergeOperation'](_0x11e19f){const _0x44c32d=null===(_0x11e19f=this['_cloneOperation'](_0x11e19f,this['_idsRoots']))['_authorId']?null:_0x11e19f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b7d32=_0x11e19f['targetPosition']['parent'],_0x52e5be=_0x11e19f['sourcePosition']['parent'],_0x312abb=_0x3b7d32['getAttribute']('vid_end'),_0x499b55=_0x52e5be['getAttribute']('vid_start');_0x3b7d32['_setAttribute']('vid_end',_0x52e5be['getAttribute']('vid_end')),_0x52e5be['_setAttribute']('vid_end',_0x312abb),this['_touched']['set'](_0x499b55,{'userId':_0x44c32d}),this['_touched']['set'](_0x312abb,{'userId':_0x44c32d}),_0x11e19f['_execute']();}['_handleSplitOperation'](_0x161faf){const _0x22a73f=null===(_0x161faf=this['_cloneOperation'](_0x161faf,this['_idsRoots']))['_authorId']?null:_0x161faf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bdc72=_0x161faf['graveyardPosition'],_0x5d2c18=_0x161faf['splitPosition']['parent'];_0x161faf['_execute']();const _0x242b27=_0x5d2c18['getAttribute']('vid_end'),_0x12fbaa=_0x161faf['insertionPosition']['nodeAfter'];if(_0x2bdc72){const _0x2f6f06=_0x12fbaa['getAttribute']('vid_end'),_0x4baa57=_0x5d2c18['getAttribute']('vid_end');_0x5d2c18['_setAttribute']('vid_end',_0x2f6f06),_0x12fbaa['_setAttribute']('vid_end',_0x4baa57),this['_touched']['set'](_0x5d2c18['getAttribute']('vid_end'),{'userId':_0x22a73f}),this['_touched']['set'](_0x12fbaa['getAttribute']('vid_start'),{'userId':_0x22a73f});}else{const _0xbc9657=this['_revisionId']++,_0x496dd8=this['_revisionId']++;_0x5d2c18['_setAttribute']('vid_end',_0xbc9657),_0x12fbaa['_setAttribute']('vid_start',_0x496dd8),_0x12fbaa['_setAttribute']('vid_end',_0x242b27),this['_touched']['set'](_0xbc9657,{'userId':_0x22a73f}),this['_touched']['set'](_0x496dd8,{'userId':_0x22a73f});}}['_handleMarkerOperation'](_0x4f36c3){if(!_0x4f36c3['affectsData'])return;const _0x5b99d2=(_0x4f36c3=this['_cloneOperation'](_0x4f36c3,this['_diffRoots']))['oldRange']?_0x4f36c3['oldRange']['root']:null,_0x416782=_0x4f36c3['newRange']?_0x4f36c3['newRange']['root']:null;_0x5b99d2&&this['_markers']['delete'](_0x4f36c3['name']),_0x416782&&this['_markers']['set'](_0x4f36c3['name'],_0x4f36c3['newRange']['clone']());const _0xa9e1ed=null===_0x4f36c3['_authorId']?null:_0x4f36c3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x307700=_0x4f36c3['name'];if(!this['_touchedMarkers']['has'](_0x307700))return void this['_touchedMarkers']['set'](_0x307700,{'range':_0x4f36c3['oldRange'],'userId':_0xa9e1ed});const _0x424e6e=this['_touchedMarkers']['get'](_0x307700),_0x31e4a7=_0x424e6e['range'],_0x13f498=_0x4f36c3['newRange'];null==_0x31e4a7&&null==_0x13f498||_0x31e4a7&&_0x13f498&&_0x31e4a7['isEqual'](_0x13f498)?this['_touchedMarkers']['delete'](_0x4f36c3['name']):_0x424e6e['userId']=_0xa9e1ed;}['_handleRootOperation'](_0x2f9e78,_0x35641e){this['_diffRoots']['has'](_0x2f9e78['rootName'])?this['_diffRoots']['get'](_0x2f9e78['rootName'])['_isAttached']=_0x2f9e78['isAdd']:(this['_diffRoots']['set'](_0x2f9e78['rootName'],P(_0x2f9e78['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2f9e78['rootName'],{}),_0x35641e&&this['_idsRoots']['set'](_0x2f9e78['rootName'],P(_0x2f9e78['rootName'],!0x0)));const _0x5c07dd=null===_0x2f9e78['_authorId']?null:_0x2f9e78['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d65ec=this['_touchedRoots']['get'](_0x2f9e78['rootName']);_0x4d65ec&&_0x4d65ec['userId']===_0x5c07dd?this['_touchedRoots']['delete'](_0x2f9e78['rootName']):this['_touchedRoots']['set'](_0x2f9e78['rootName'],{'userId':_0x5c07dd,'isAttached':_0x2f9e78['isAdd']});}['_handleRootAttributeOperation'](_0x4320d2){const _0x105910=this['_diffRootsAttributes']['get'](_0x4320d2['root']['rootName']);null===_0x4320d2['newValue']?delete _0x105910[_0x4320d2['key']]:_0x105910[_0x4320d2['key']]=_0x4320d2['newValue'];}}function N(_0x27ac1e){const _0x2a7294=P(_0x27ac1e['rootName'],_0x27ac1e['isAttached']());for(const _0x15cdd3 of _0x27ac1e['getChildren']()){const _0x5a3394=_0x15cdd3['_clone'](!0x0);_0x2a7294['_appendChild'](_0x5a3394);}return _0x2a7294;}function P(_0x556c54,_0x5d4606=!0x0){const _0x5d7297=new vt();return _0x5d7297['rootName']=_0x556c54,_0x5d7297['_isAttached']=_0x5d4606,_0x5d7297['isAttached']=()=>_0x5d7297['_isAttached'],_0x5d7297;}function F(_0x46e8cc,_0xe28497,_0x91bc6a){const _0x17e25f='elementEnd'==_0x46e8cc['type']?_0x91bc6a['createPositionAt'](_0x46e8cc['item'],'end'):_0x91bc6a['createPositionBefore'](_0x46e8cc['item']);return _0x91bc6a['createPositionFromPath'](_0xe28497,_0x17e25f['path'],_0x17e25f['stickiness']);}function B(_0x46c3dc,_0x59b794,_0x5e1d65){const _0x34360b='elementStart'==_0x46c3dc['type']?_0x5e1d65['createPositionAt'](_0x46c3dc['item'],0x0):_0x5e1d65['createPositionAfter'](_0x46c3dc['item']);return _0x5e1d65['createPositionFromPath'](_0x59b794,_0x34360b['path'],_0x34360b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x20dae9,_0x453817){super(_0x20dae9),this['focusTracker']=new _0x310fb5(),this['keystrokes']=new _0x1a5a25(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x453817),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1d0433(this);}['render'](){super['render'](),_0x48d2b1({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2b424e=_0xf7d54e=>_0xf7d54e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2b424e),this['keystrokes']['set']('arrowleft',_0x2b424e),this['keystrokes']['set']('arrowup',_0x2b424e),this['keystrokes']['set']('arrowdown',_0x2b424e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2faecf){this['revisionNameInputView']['fieldView']['element']['value']=_0x2faecf['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x37bf30){const _0xafe9ff=new _0x45dc4c(this['locale'],_0x11dee7),_0x42ab39=_0xafe9ff['fieldView'];_0x42ab39['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2fc56f=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x37bf30&&(_0x2fc56f+='\x20('+g(this['locale'],'optional')+')'),(_0xafe9ff['label']=_0x2fc56f,_0x42ab39['on']('input',()=>{this['revisionNameInputValue']=_0x42ab39['element']['value']['trim']();}),_0xafe9ff);}}class f extends _0x553bb9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x21a9ad=this['editor'],_0x371709=_0x21a9ad['plugins']['get']('RevisionTracker');_0x21a9ad['ui']['componentFactory']['add']('revisionHistory',_0x2cb424=>{const _0x32cc51=_0x41976a(_0x2cb424),_0x42a6bb=_0x32cc51['panelView']['children'],_0x5bb62c=new _0x1a8399(_0x2cb424),_0xd701dc=new _0xc351cd(_0x2cb424),_0x239e70=new te(_0x2cb424),_0x4beb2b=new _0xc351cd(_0x2cb424),_0x4a4924=new te(_0x2cb424);return _0x32cc51['bind']('isEnabled')['to'](_0x371709,'isReady',_0x371709,'isEnabled',_0x21a9ad,'isReadOnly',(_0x56cfea,_0x3f0a5b,_0x109b4c)=>_0x56cfea&&_0x3f0a5b&&!_0x109b4c),_0x32cc51['buttonView']['set']({'icon':_0x7ad83f,'label':g(_0x2cb424,'Revision\x20history'),'tooltip':!0x0}),_0x239e70['set']({'label':g(_0x2cb424,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x239e70['bind']('isEnabled')['to'](_0x371709,'isReady',_0x371709,'isEnabled',_0x21a9ad,'isReadOnly',(_0x3ffe3d,_0x2917af,_0x1f8953)=>_0x3ffe3d&&_0x2917af&&!_0x1f8953),_0x239e70['on']('execute',()=>this['_showDialog']()),_0x4a4924['set']({'label':g(_0x2cb424,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4a4924['bind']('isEnabled')['to'](_0x371709,'isReady',_0x21a9ad,'isReadOnly',(_0x978ceb,_0x55a9ee)=>_0x978ceb&&!_0x55a9ee),_0x4a4924['on']('execute',()=>{_0x21a9ad['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x32cc51['isOpen']=!0x1,_0x21a9ad['editing']['view']['focus']();}),_0xd701dc['children']['add'](_0x239e70),_0x4beb2b['children']['add'](_0x4a4924),_0x5bb62c['role']='menu',_0x5bb62c['items']['addMany']([_0xd701dc,_0x4beb2b]),_0x42a6bb['add'](_0x5bb62c),_0x32cc51;}),_0x21a9ad['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x31692a=this['editor'],_0x32a689=_0x31692a['locale'],_0x1a5650=new _0x42507a(_0x32a689),_0x408bf2=new _0x498f3c(_0x32a689);_0x1a5650['buttonView']['set']({'icon':_0x7ad83f,'label':g(_0x32a689,'Revision\x20history')});const _0x4dc60b=new _0x5427b7(_0x32a689,_0x1a5650),_0x267a81=new _0x2c3f2d(_0x32a689);_0x267a81['set']({'label':g(_0x32a689,'Save\x20current\x20revision')}),_0x267a81['delegate']('execute')['to'](_0x1a5650),_0x267a81['on']('execute',()=>{this['_showDialog']();}),_0x4dc60b['children']['add'](_0x267a81),_0x408bf2['items']['add'](_0x4dc60b);const _0x1bc281=new _0x5427b7(_0x32a689,_0x1a5650),_0x2aedf1=new _0x2c3f2d(_0x32a689);return _0x2aedf1['set']({'label':g(_0x32a689,'Open\x20revision\x20history')}),_0x2aedf1['delegate']('execute')['to'](_0x1a5650),_0x2aedf1['on']('execute',()=>{_0x31692a['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1bc281['children']['add'](_0x2aedf1),_0x408bf2['items']['add'](_0x1bc281),_0x1a5650['panelView']['children']['add'](_0x408bf2),_0x1a5650;}['_showDialog'](){const _0x3dee45=this['editor'],_0x34d0bd=_0x3dee45['locale'],_0xba8d29=_0x3dee45['plugins']['get']('Dialog'),_0x13cb80=_0x3dee45['plugins']['get']('RevisionTracker');function _0x34fd13(_0x11022b){_0x3dee45['config']['get']('revisionHistory.requireRevisionName')&&''===_0x11022b['revisionName']?_0x11022b['revisionNameInputView']['errorText']=g(_0x34d0bd,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3dee45['plugins']['get'](u)['saveRevision']({'name':_0x11022b['revisionName']}),_0xba8d29['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x34fd13(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xba8d29['show']({'id':'revisionSave','title':g(_0x34d0bd,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x3dee45['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xba8d29['hide']()},{'label':g(_0x3dee45['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4f1fff){_0x4f1fff['bind']('isEnabled')['to'](_0x13cb80,'isReady',_0x13cb80,'isEnabled',_0x3dee45,'isReadOnly',(_0x2a633c,_0x4314c2,_0x5f7b2a)=>_0x2a633c&&_0x4314c2&&!_0x5f7b2a);},'onExecute':()=>_0x34fd13(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x18e350=this['editor'],_0x1d71c7=_0x18e350['locale'];this['_saveRevisionFormView']=new hs(_0x1d71c7,_0x18e350['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x4efc3e,_0x1730ac){super(_0x4efc3e),this['_model']=_0x1730ac,this['changeId']=_0x1730ac['id'];const _0x34236b=this['bindTemplate'],_0x41e094=g(_0x4efc3e,_0x1730ac['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1730ac['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1730ac['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x34236b['to']('type',_0x4d26ae=>'ck-revision-change__'+_0x4d26ae)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x41e094}]},{'text':'\x20'+_0x1730ac['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x2c59e9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x402dea){super(),this['id']=_0x402dea['id']||_0x33821a(),this['author']=_0x402dea['author'],this['type']=_0x402dea['type'],this['data']=_0x402dea['data']||{},this['rootName']=_0x402dea['rootName'],this['set']('createdAt',_0x402dea['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(_0x1a19b8,_0x108aeb){this['newRevisionId']=_0x1a19b8,this['oldRevisionId']=_0x108aeb,this['changes']=new _0x404bbe();}['_setChanges'](_0xc32ac1){for(const _0x558932 of _0xc32ac1)this['changes']['add'](_0x558932);}}class m extends _0x553bb9{['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[_0x5434d8,_0x259487,I,V];}constructor(_0x1c8da4){super(_0x1c8da4),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',(_0x431a55,_0x41f8d8,_0x498ac4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x47d3e5=>{for(const _0x2f662a of this['editor']['editing']['view']['document']['roots'])_0x498ac4?_0x47d3e5['removeClass']('ck-editor__editable__overlay',_0x2f662a):_0x47d3e5['addClass']('ck-editor__editable__overlay',_0x2f662a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x152b24=>null!==_0x152b24),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2b6b6f,_0x38be00,_0x2327c5)=>_0x2b6b6f&&_0x2327c5?_0x38be00['changes']['getIndex'](_0x2327c5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf8eab4,_0x1cc37f)=>_0xf8eab4?_0x1cc37f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x259487);}['init'](){const _0x266217=this['editor'],_0x50909e=new wt(_0x266217,{'direction':'backward'}),_0x101d9e=new wt(_0x266217,{'direction':'forward'});(_0x266217['commands']['add']('showPreviousChange',_0x50909e),_0x266217['commands']['add']('showNextChange',_0x101d9e),_0x266217['commands']['add']('restoreRevision',new mt(_0x266217)),this['on']('change:numberOfChanges',()=>{_0x50909e['refresh'](),_0x101d9e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x266217['enableReadOnlyMode']('revision-viewer'),_0x266217['plugins']['has']('WidgetToolbarRepository'))&&_0x266217['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2784b4){return await this['_utils']['loadRevisionData'](_0x2784b4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2784b4);}async['getRevisionRootsAttributes'](_0x5da668){return await this['_utils']['loadRevisionData'](_0x5da668,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5da668);}async['compare'](_0x1e30f9,_0x5eef09,_0x591064=!0x1){if(!this['isEnabled'])return;const _0x4cdafa=this['diff'],_0x3b69f5=this['repository'],_0x5b2ae5='string'==typeof _0x1e30f9?_0x3b69f5['getRevision'](_0x1e30f9):_0x1e30f9,_0x7ca09b='string'==typeof _0x5eef09?_0x3b69f5['getRevision'](_0x5eef09):_0x5eef09,_0x1bdd28=_0x5b2ae5['id'],_0x17e990=_0x7ca09b?_0x7ca09b['id']:null;if(!_0x591064&&this['diff']&&this['diff']['newRevisionId']===_0x1bdd28&&this['diff']['oldRevisionId']===_0x17e990)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1bdd28,_0x17e990);const _0x20fde8=this['_getRevisionsRange'](_0x5b2ae5,_0x7ca09b,!0x0)['map'](_0x2fabc1=>this['_utils']['loadRevisionData'](_0x2fabc1,this['adapter']));return _0x20fde8['push'](new Promise(_0x443c1d=>{setTimeout(_0x443c1d,0x14);})),Promise['all'](_0x20fde8)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3686ab=this['_getDiff'](_0x1bdd28,_0x17e990);for(const _0x120b12 of _0x3686ab['changes'])this['_changeIdToChange']['set'](_0x120b12['id'],_0x120b12);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1ca70a=>{for(const _0xf42e7c of this['editor']['model']['document']['getRootNames']())_0x1ca70a['detachRoot'](_0xf42e7c);for(const _0x4999fd of Object['keys'](_0x3686ab['model'])){const _0x3175dc=_0x1ca70a['addRoot'](_0x4999fd);for(const _0x36ff76 of Object['keys'](_0x3686ab['attributes'][_0x4999fd]))_0x1ca70a['setAttribute'](_0x36ff76,_0x3686ab['attributes'][_0x4999fd][_0x36ff76],_0x3175dc);_0x1ca70a['insert'](_0x3686ab['model'][_0x4999fd],_0x3175dc,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3686ab['changes'])),this['isReady']=!0x0;})['catch'](_0x7c5321=>{console['error'](_0x7c5321),this['_cleanUp'](),_0x4cdafa&&(this['diff']=_0x4cdafa),this['isReady']=!0x0;});}['addRevisionData'](_0x1dc54a,_0xc6de85){const _0x728e45=this['repository']['createRevision'](_0x1dc54a);return _0x728e45['on']('_update',(_0x272279,_0x582d50,_0x5eedab)=>_0xc6de85(_0x582d50,_0x5eedab,_0x728e45)),this['repository']['addRevision'](_0x728e45),_0x728e45;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x421d37=>{for(const _0x1d138e of this['editor']['model']['document']['getRootNames']())_0x421d37['detachRoot'](_0x1d138e);});}['_sortAndFilterDiffChanges'](_0x28c28b){const _0x31fb1a=[],_0x52d352=new Map();for(const _0x5441e7 of this['editor']['model']['document']['getRootNames']()){const _0x4d0841=this['editor']['editing']['view']['getDomRoot'](_0x5441e7);if(!_0x4d0841)continue;const _0x3a7c03=_0x4d0841['getClientRects']()['item'](0x0);_0x3a7c03&&(_0x31fb1a['push'](_0x5441e7),_0x52d352['set'](_0x5441e7,_0x3a7c03));}return _0x31fb1a['sort']((_0x34b1d6,_0x2a5ce2)=>{const _0x2708ab=_0x52d352['get'](_0x34b1d6),_0x31678c=_0x52d352['get'](_0x2a5ce2);return _0x2708ab['y']-_0x31678c['y']||_0x2708ab['x']-_0x31678c['x'];}),(_0x28c28b=_0x28c28b['filter'](_0x45f4d0=>_0x31fb1a['includes'](_0x45f4d0['rootName'])))['sort']((_0x2186f5,_0x3814b1)=>_0x31fb1a['indexOf'](_0x2186f5['rootName'])-_0x31fb1a['indexOf'](_0x3814b1['rootName'])),_0x28c28b;}['_makeTape'](_0xe86851){const _0x5e984e=Array['from'](_0xe86851['markers'])['filter'](([_0x4f925e,_0x262667])=>_0x4f925e['startsWith']('revision:')&&!_0x262667['isCollapsed']),_0x54620f=Array['from'](this['editor']['model']['createRangeIn'](_0xe86851)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5e984e['length'])for(const _0x551cf1 of _0x54620f){const [_0x447ce1,_0x7a9d76]=_0x5e984e[0x0],[,_0x2c392e,_0xa54659]=_0x447ce1['split'](':');if(_0x7a9d76['end']['isEqual'](_0x551cf1['nextPosition'])&&_0x5e984e['shift'](),(_0x551cf1['previousPosition']['isEqual'](_0x7a9d76['start'])||_0x551cf1['previousPosition']['isAfter'](_0x7a9d76['start']))&&('insertion'==_0x2c392e?_0x551cf1['isAdded']={'userId':_0xa54659}:'deletion'==_0x2c392e&&(_0x551cf1['isRemoved']={'userId':_0xa54659})),0x0==_0x5e984e['length'])break;}return _0x54620f;}['_refreshStartEndIndex'](_0x44883b){const _0x3aec7d=new Map();for(let _0x2cc43b=0x0;_0x2cc43b<_0x44883b['length'];_0x2cc43b++)'text'===_0x44883b[_0x2cc43b]['type']?(_0x44883b[_0x2cc43b]['item']['startIndex']=_0x2cc43b,_0x44883b[_0x2cc43b]['item']['endIndex']=_0x2cc43b):('elementStart'===_0x44883b[_0x2cc43b]['type']?_0x44883b[_0x2cc43b]['item']['startIndex']=_0x2cc43b:'elementEnd'===_0x44883b[_0x2cc43b]['type']&&(_0x44883b[_0x2cc43b]['item']['endIndex']=_0x2cc43b),_0x3aec7d['set'](_0x44883b[_0x2cc43b]['id'],_0x2cc43b));for(const _0x242a35 of _0x3aec7d['values']())'elementStart'===_0x44883b[_0x242a35]['type']?_0x44883b[_0x242a35]['item']['endIndex']=_0x3aec7d['get'](_0x44883b[_0x242a35]['pairId']):'elementEnd'===_0x44883b[_0x242a35]['type']&&(_0x44883b[_0x242a35]['item']['startIndex']=_0x3aec7d['get'](_0x44883b[_0x242a35]['pairId']));}['_processTape'](_0x1ff2a8){for(let _0x1cbacb=0x0;_0x1cbacb<_0x1ff2a8['length'];_0x1cbacb++){if('elementStart'===_0x1ff2a8[_0x1cbacb]['type'])_0x1ff2a8[_0x1cbacb]['item']['startIndex']=_0x1cbacb;else{if('elementEnd'===_0x1ff2a8[_0x1cbacb]['type']){_0x1ff2a8[_0x1cbacb]['item']['endIndex']=_0x1cbacb;const _0x462222=_0x1ff2a8[_0x1cbacb]['item']['startIndex'];_0x1ff2a8[_0x462222]['pairId']=_0x1ff2a8[_0x1cbacb]['id'],_0x1ff2a8[_0x1cbacb]['pairId']=_0x1ff2a8[_0x462222]['id'];}else _0x1ff2a8[_0x1cbacb]['item']['startIndex']=_0x1cbacb,_0x1ff2a8[_0x1cbacb]['item']['endIndex']=_0x1cbacb,_0x1ff2a8[_0x1cbacb]['pairId']=null;}_0x1ff2a8[_0x1cbacb]['markersStart']||(_0x1ff2a8[_0x1cbacb]['markersStart']=[],_0x1ff2a8[_0x1cbacb]['markersEnd']=[]);}}['_markInsertions'](_0x2b2c3d,_0x1a857e){const _0x373604=_0x2b2c3d['filter'](_0xe316=>!_0xe316['isAdded']);for(let _0x4e873f=0x0;_0x4e873f<_0x1a857e['length'];_0x4e873f++)_0x1a857e[_0x4e873f]['isAdded']&&(_0x373604[_0x4e873f]['isAdded']=_0x1a857e[_0x4e873f]['isAdded']);}['_getDiff'](_0x48e712,_0xfe8605=null){const _0x375475=this['repository']['getRevision'](_0x48e712),_0x47e24b=_0xfe8605?this['repository']['getRevision'](_0xfe8605):null,_0x3f491f=this['_getRevisionsRange'](_0x375475,_0x47e24b),_0x4b2476=_0x3f491f[_0x3f491f['length']-0x1],_0x41b194=new Map(),_0x5c2ae9={'model':{},'attributes':{},'changes':[]},_0x80d012=new Set(),_0x2de558=new Map();for(let _0x242b53=_0x3f491f['length']-0x1;_0x242b53>=0x0;_0x242b53--){const _0x14cf23=_0x3f491f[_0x242b53];for(const _0x5dc7a6 of Object['keys'](_0x14cf23['diffData']))if(_0x14cf23['diffData'][_0x5dc7a6]['attachChange']){const _0x6e603c=_0x14cf23['diffData'][_0x5dc7a6]['attachChange'];_0x6e603c['isAttached']?(_0x80d012['add'](_0x5dc7a6),_0x2de558['has'](_0x5dc7a6)&&_0x2de558['get'](_0x5dc7a6)['userId']==_0x6e603c['userId']?_0x2de558['delete'](_0x5dc7a6):_0x2de558['set'](_0x5dc7a6,_0x6e603c)):_0x2de558['has'](_0x5dc7a6)?(_0x80d012['delete'](_0x5dc7a6),_0x2de558['delete'](_0x5dc7a6)):(_0x80d012['add'](_0x5dc7a6),_0x2de558['set'](_0x5dc7a6,_0x6e603c));}else _0x80d012['add'](_0x5dc7a6);}for(const _0x4c4fdb of _0x80d012){const _0x119f53=_0x2de558['has'](_0x4c4fdb)&&!_0x2de558['get'](_0x4c4fdb)['isAttached'];let _0x2df84a=_0x119f53?_0x3f491f['length']-0x1:0x0;const _0x4fdccc=_0x119f53?-0x1:0x1;for(;_0x3f491f[_0x2df84a];){const _0x1dc1fc=_0x3f491f[_0x2df84a];if(_0x1dc1fc['diffData'][_0x4c4fdb]){const _0x7d0b69=_0x119f53?_0x1dc1fc['diffData'][_0x4c4fdb]['attributesBefore']:_0x1dc1fc['diffData'][_0x4c4fdb]['attributesAfter'];_0x5c2ae9['attributes'][_0x4c4fdb]=_0x7d0b69?_0x583fb4(_0x7d0b69):{};break;}_0x2df84a+=_0x4fdccc;}}for(const _0x1474af of _0x3f491f){_0x1474af['model']={};for(const _0x509182 of _0x1474af['authors'])_0x41b194['set'](_0x509182['id'],_0x509182);for(const _0x3854f6 of _0x80d012){const _0x1962bb=_0x1474af['diffData'][_0x3854f6]?_0x1474af['diffData'][_0x3854f6]['insertions']:'[]',_0x3ca51b=_0x1474af['diffData'][_0x3854f6]?_0x1474af['diffData'][_0x3854f6]['deletions']:'[]';_0x1474af['model'][_0x3854f6]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1962bb),'deletions':this['_utils']['_makeModelFromViewString'](_0x3ca51b)};}}for(const _0x33a9ab of _0x80d012){let _0x421f06=null,_0x3d2313=0x0;const _0x314b94=new Map(Array['from'](_0x375475['model'][_0x33a9ab]['insertions']['markers'])['filter'](([_0x1c2ffd])=>!_0x1c2ffd['startsWith']('revision:')));let _0x2e8ce8=0x0;for(const _0x306ac9 of _0x3f491f){const _0x5cf527=this['_makeTape'](_0x306ac9['model'][_0x33a9ab]['insertions']);_0x306ac9==_0x375475?(_0x421f06=_0x5cf527,_0x3d2313=_0x421f06['length'],_0x421f06['forEach'](_0x4e1cc0=>{_0x4e1cc0['id']=_0x2e8ce8++;}),this['_processTape'](_0x421f06)):this['_markInsertions'](_0x421f06,_0x5cf527);const _0x1f92cc=_0x421f06['filter'](_0x2a5b99=>!_0x2a5b99['isAdded'])['map'](_0x7988b3=>_0x7988b3['id']);let _0x413dc3=0x0;const _0x5d5ee0=this['_makeTape'](_0x306ac9['model'][_0x33a9ab]['deletions']);_0x5d5ee0['forEach'](_0x2ccb58=>{_0x2ccb58['isRemoved']?_0x2ccb58['id']=_0x3d2313++:_0x2ccb58['id']=_0x1f92cc[_0x413dc3++];}),this['_processTape'](_0x5d5ee0),this['_setDistance'](_0x421f06,'isAdded'),this['_setDistance'](_0x5d5ee0,'isRemoved'),_0x306ac9==_0x375475&&this['_markMarkers'](_0x421f06,_0x314b94),_0x421f06=this['_joinTapes'](_0x421f06,_0x5d5ee0),this['_refreshStartEndIndex'](_0x421f06),this['_setDistance'](_0x421f06,'isRemoved');}_0x421f06=_0x421f06['filter'](_0x15c1c0=>!(_0x15c1c0['isAdded']&&_0x15c1c0['isRemoved']));const _0x1996f6=new Map(_0x4b2476['model'][_0x33a9ab]['deletions']['markers']),_0x2c80c7=new Set(_0x314b94['keys']());for(const _0x3e2bfe of _0x1996f6['keys']())_0x2c80c7['delete'](_0x3e2bfe);this['_markSuggestions'](_0x421f06,_0x2c80c7),this['_fixObsoleteTags'](_0x421f06),_0x421f06=this['_removeMissingPairs'](_0x421f06),_0x421f06=this['_markMismatchedRemovedTags'](_0x421f06),_0x421f06=this['_removeUnsupportedChanges'](_0x421f06);const {root:_0x529b64,changes:_0xd2526a}=this['_makeModelFromTape'](_0x421f06,_0x41b194,_0x33a9ab);_0x5c2ae9['model'][_0x33a9ab]=_0x529b64;const _0x53d458=_0x2de558['get'](_0x33a9ab);if(_0x53d458){const _0x49556b=_0x41b194['get'](_0x53d458['userId']),_0x322d07=new r({'author':_0x49556b,'type':_0x53d458['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x33a9ab});_0xd2526a['unshift'](_0x322d07),_0x5c2ae9['attributes'][_0x33a9ab]['revisionHistoryAttachChange']=_0x322d07['id'];}_0x5c2ae9['changes']=_0x5c2ae9['changes']['concat'](_0xd2526a);}return _0x5c2ae9;}['_markMarkers'](_0x52eda7,_0x3c88fa){for(let _0x4ced86=0x0;_0x4ced86<_0x52eda7['length'];_0x4ced86++)for(const [_0x14c540,_0x2aa068]of _0x3c88fa)!_0x2aa068['isCollapsed']&&_0x2aa068['start']['isEqual'](_0x52eda7[_0x4ced86]['previousPosition'])&&_0x52eda7[_0x4ced86]['markersStart']['push'](_0x14c540),_0x2aa068['end']['isEqual'](_0x52eda7[_0x4ced86]['nextPosition'])&&_0x52eda7[_0x4ced86]['markersEnd']['push'](_0x14c540);}['_joinTapes'](_0x40a5f5,_0x56cd1a){let _0x4c753=[],_0x3a369f=0x0,_0x50b529=0x0;for(;_0x3a369f<_0x40a5f5['length']||_0x50b529<_0x56cd1a['length'];){const _0x513f03=_0x40a5f5[_0x3a369f]||{},_0x118828=_0x56cd1a[_0x50b529]||{};if(_0x513f03['id']==_0x118828['id'])_0x3a369f++,_0x50b529++,_0x4c753['push'](_0x513f03);else{if(_0x118828['isRemoved']&&_0x513f03['isAdded']){const {commonTape:_0xb6d7e3,iEnd:_0x1c0351,jEnd:_0x2e2c6e}=this['_threeWayMerge'](_0x40a5f5,_0x3a369f,_0x56cd1a,_0x50b529);_0x4c753=_0x4c753['concat'](_0xb6d7e3),_0x3a369f=_0x1c0351,_0x50b529=_0x2e2c6e;}else _0x118828['isRemoved']?(_0x50b529++,_0x4c753['push'](_0x118828)):(_0x3a369f++,_0x4c753['push'](_0x513f03));}}return _0x4c753;}['_markSuggestions'](_0x3ddf62,_0xe143ef){const _0x381475=[];for(let _0x4d60be=0x0;_0x4d60be<_0x3ddf62['length'];_0x4d60be++){for(let _0x222a93=0x0;_0x222a93<_0x3ddf62[_0x4d60be]['markersStart']['length'];_0x222a93++){const _0x1b806e=_0x3ddf62[_0x4d60be]['markersStart'][_0x222a93];if(!_0xe143ef['has'](_0x1b806e))continue;const {group:_0x71cc8d,type:_0x2ba8aa,authorId:_0x288541}=_0x945f2c(_0x1b806e);'revision-suggestion'!=_0x71cc8d||'insertion'!=_0x2ba8aa&&'deletion'!=_0x2ba8aa||(_0x381475['unshift']({'type':_0x2ba8aa,'name':_0x1b806e,'userId':_0x288541}),_0x3ddf62[_0x4d60be]['markersStart']['splice'](_0x222a93,0x1),_0x222a93--);}_0x5f1454(_0x3ddf62[_0x4d60be]);for(let _0xd989d1=0x0;_0xd989d1<_0x3ddf62[_0x4d60be]['markersEnd']['length'];_0xd989d1++){const _0x4cc060=_0x3ddf62[_0x4d60be]['markersEnd'][_0xd989d1];if(!_0xe143ef['has'](_0x4cc060))continue;const {group:_0x5d2303,type:_0x55e392}=_0x945f2c(_0x4cc060);if('revision-suggestion'!=_0x5d2303||'insertion'!=_0x55e392&&'deletion'!=_0x55e392)continue;_0x3ddf62[_0x4d60be]['markersEnd']['splice'](_0xd989d1,0x1),_0xd989d1--;const _0x32793b=_0x381475['findIndex'](_0x1816d6=>_0x1816d6['name']==_0x4cc060);_0x32793b>-0x1&&_0x381475['splice'](_0x32793b,0x1);}}function _0x945f2c(_0x2160fc){const _0x238f04=_0x2160fc['split'](':');return{'group':_0x238f04[0x0],'type':_0x238f04[0x1],'subType':_0x238f04['length']>=0x5?_0x238f04[0x2]:null,'id':_0x238f04['length']<0x5?_0x238f04[0x2]:_0x238f04[0x3],'authorId':_0x238f04['length']<0x5?_0x238f04[0x3]:_0x238f04[0x4],'markerCount':0x6==_0x238f04['length']?_0x238f04[0x5]:null};}function _0x5f1454(_0xe09c0b){for(let _0x9ba185=0x0;_0x9ba185<_0x381475['length'];_0x9ba185++){if(_0xe09c0b['isAdded']&&'insertion'==_0x381475[_0x9ba185]['type'])return _0xe09c0b['isAddSuggestion']=_0x381475[_0x9ba185],void delete _0xe09c0b['isAdded'];if(!_0xe09c0b['isAdded']&&!_0xe09c0b['isRemoved']&&'deletion'==_0x381475[_0x9ba185]['type'])return void(_0xe09c0b['isRemoveSuggestion']=_0x381475[_0x9ba185]);}}}['_setDistance'](_0x468f0d,_0x4f86af){let _0x547a26=0x0,_0x3d9c9f=!0x1;const _0x4721c9=new Map();for(const _0x12f6ef of _0x468f0d)_0x12f6ef[_0x4f86af]?_0x3d9c9f&&(_0x547a26++,_0x3d9c9f=!0x1):(_0x547a26++,_0x3d9c9f=!0x0),_0x4721c9['set'](_0x12f6ef['id'],_0x547a26);for(let _0x257f8f=0x0;_0x257f8f<_0x468f0d['length'];_0x257f8f++){if('isRemoved'==_0x4f86af&&_0x468f0d[_0x257f8f]['isAdded']||'isAdded'==_0x4f86af&&_0x468f0d[_0x257f8f]['isRemoved'])continue;if('text'==_0x468f0d[_0x257f8f]['type']){_0x468f0d[_0x257f8f]['distance']=0x0;continue;}const _0x2e80a1=_0x4721c9['get'](_0x468f0d[_0x257f8f]['pairId']),_0x3cf98f=_0x4721c9['get'](_0x468f0d[_0x257f8f]['id']);_0x468f0d[_0x257f8f]['distance']=_0x2e80a1-_0x3cf98f;}}['_getRevisionsRange'](_0x4ebf11,_0x5479a5,_0x1fd0ce=!0x1){const _0x4efbd7=[];let _0x532700=this['repository']['getIndex'](_0x4ebf11),_0x865e46=this['repository']['getIndex'](_0x5479a5);for(-0x1==_0x865e46&&(_0x865e46=this['repository']['_revisions']['length'],_0x1fd0ce=!0x1);_0x532700<_0x865e46;)_0x4efbd7['push'](this['repository']['getRevision'](_0x532700)),_0x532700++;return _0x1fd0ce&&_0x4efbd7['push'](this['repository']['getRevision'](_0x532700)),_0x4efbd7;}['_threeWayMerge'](_0x2885a1,_0x40fcf0,_0x2f0106,_0x4ffd62){const _0xd5dc2a=this['editor']['model']['schema'];let _0x29ffe6=_0x40fcf0;for(;_0x2885a1[_0x29ffe6]&&_0x2885a1[_0x29ffe6]['isAdded'];)_0x29ffe6++;let _0x5ca130=_0x4ffd62;for(;_0x2f0106[_0x5ca130]&&_0x2f0106[_0x5ca130]['isRemoved'];)_0x5ca130++;_0x368a34(_0x2885a1,_0x40fcf0,_0x29ffe6),_0x368a34(_0x2f0106,_0x4ffd62,_0x5ca130);const _0x5625db=_0x2f0106['slice'](_0x4ffd62,_0x5ca130)['concat'](_0x2885a1['slice'](_0x40fcf0,_0x29ffe6));return _0x5625db['sort']((_0xe09159,_0x24f27f)=>_0xe09159['side']!=_0x24f27f['side']?_0xe09159['side']-_0x24f27f['side']:_0xe09159['level']!=_0x24f27f['level']?_0xe09159['level']-_0x24f27f['level']:_0xe09159['distance']!=_0x24f27f['distance']?_0x24f27f['distance']-_0xe09159['distance']:!!_0xe09159['isAdded']!=!!_0x24f27f['isAdded']?-0x1==_0xe09159['side']||0x0==_0xe09159['side']?_0xe09159['isAdded']?-0x1:0x1:_0xe09159['isAdded']?0x1:-0x1:_0xe09159['index']-_0x24f27f['index']),{'commonTape':_0x5625db,'iEnd':_0x29ffe6,'jEnd':_0x5ca130};function _0x368a34(_0x432490,_0x76236,_0x31b389){let _0xa09305=-0x1,_0xd1f760=Number['POSITIVE_INFINITY'],_0x1e151d=!0x0;for(let _0x2f3b55=_0x76236;_0x2f3b55<_0x31b389;_0x2f3b55++)if(_0xd5dc2a['isInline'](_0x432490[_0x2f3b55]['item'])||(_0x1e151d=!0x1),_0x432490[_0x2f3b55]['item']['startIndex']<_0x76236&&(_0xa09305=_0x2f3b55),_0x432490[_0x2f3b55]['item']['endIndex']>=_0x31b389){_0xd1f760=_0x2f3b55;break;}_0x1e151d&&(_0xa09305=_0x31b389-0x1);for(let _0x242a63=_0x76236;_0x242a63<_0x31b389;_0x242a63++)_0x432490[_0x242a63]['side']=_0x242a63<=_0xa09305?-0x1:_0x242a63<_0xd1f760?0x0:0x1,_0x432490[_0x242a63]['index']=_0x242a63;let _0x52fcc5=0x0;for(let _0x452eb1=_0x76236;_0x452eb1<=_0xa09305;_0x452eb1++)0x0==_0x432490[_0x452eb1]['distance']?_0x432490[_0x452eb1]['level']=_0x52fcc5:(_0x52fcc5++,_0x432490[_0x452eb1]['level']=_0x52fcc5,_0x52fcc5++);for(let _0x46b605=_0x76236;_0x46b605<_0x31b389;_0x46b605++)0x0==_0x432490[_0x46b605]['side']&&(_0x432490[_0x46b605]['level']=_0x52fcc5);_0x52fcc5=0x0;for(let _0x50408a=_0x31b389-0x1;_0x50408a>=_0xd1f760;_0x50408a--)0x0==_0x432490[_0x50408a]['distance']?_0x432490[_0x50408a]['level']=_0x52fcc5:(_0x52fcc5--,_0x432490[_0x50408a]['level']=_0x52fcc5,_0x52fcc5--);}}['_fixObsoleteTags'](_0x568ed1){const _0x1d1abc=new Map(),_0x5c29f0=this['editor']['model']['schema'];for(let _0x21706f=0x1;_0x21706f<_0x568ed1['length'];_0x21706f++){let _0x1e06d6,_0x2c515a,_0x2565af;const _0x10bdbc=_0x568ed1[_0x21706f],_0x503362=_0x568ed1[_0x21706f-0x1];if('text'==_0x10bdbc['type'])continue;if(_0x10bdbc['type']!=_0x503362['type'])continue;if(!_0x5c29f0['isBlock'](_0x503362['item'])||_0x5c29f0['isLimit'](_0x503362['item']))continue;if(!_0x5c29f0['isBlock'](_0x10bdbc['item'])||_0x5c29f0['isLimit'](_0x10bdbc['item']))continue;if((_0x568ed1[_0x21706f]['isAdded']||_0x568ed1[_0x21706f]['isAddSuggestion'])&&_0x568ed1[_0x21706f-0x1]['isRemoved'])_0x1e06d6=_0x568ed1[_0x21706f],_0x2c515a=_0x568ed1[_0x21706f-0x1],_0x2565af=_0x21706f-0x1;else{if(!_0x568ed1[_0x21706f]['isRemoved']||!_0x568ed1[_0x21706f-0x1]['isAdded']&&!_0x568ed1[_0x21706f-0x1]['isAddSuggestion'])continue;_0x1e06d6=_0x568ed1[_0x21706f-0x1],_0x2c515a=_0x568ed1[_0x21706f],_0x2565af=_0x21706f;}const _0x3f7f0b=_0x1e06d6['level']==_0x2c515a['level'],_0x432478=Math['abs'](_0x1e06d6['level'])<Math['abs'](_0x2c515a['level'])&&0x0==_0x2c515a['distance'];(_0x3f7f0b||_0x432478)&&(_0x1d1abc['set'](_0x2c515a['id'],_0x1e06d6['id']),_0x568ed1['splice'](_0x2565af,0x1),_0x21706f--,_0x1e06d6['isAdded']=!0x1);}for(let _0x2b2d06=0x0;_0x2b2d06<_0x568ed1['length'];_0x2b2d06++)_0x1d1abc['has'](_0x568ed1[_0x2b2d06]['pairId'])&&(_0x568ed1[_0x2b2d06]['pairId']=_0x1d1abc['get'](_0x568ed1[_0x2b2d06]['pairId']));}['_removeMissingPairs'](_0x18e0e3){const _0x2ce4e5=new Set(_0x18e0e3['map'](_0x3a9e29=>_0x3a9e29['id']));for(let _0x26bb94=0x0;_0x26bb94<_0x18e0e3['length'];_0x26bb94++)_0x2ce4e5['has'](_0x18e0e3[_0x26bb94]['pairId'])||0x0==_0x18e0e3[_0x26bb94]['distance']||(_0x18e0e3[_0x26bb94]['isIncorrect']=!0x0);return _0x18e0e3['filter'](_0x2f5df8=>!_0x2f5df8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x34829d){const _0x52a039=new Set();for(let _0x481128=0x0;_0x481128<_0x34829d['length'];_0x481128++){if(_0x52a039['has'](_0x34829d[_0x481128]['id'])&&_0x34829d[_0x481128]['isRemoved']&&(_0x34829d[_0x481128]['isIncorrect']=!0x0),_0x34829d[_0x481128]['isIncorrect'])continue;if(0x0==_0x34829d[_0x481128]['distance'])continue;if('elementStart'!=_0x34829d[_0x481128]['type'])continue;if(null==_0x34829d[_0x481128]['pairId'])continue;let _0x127d26=_0x481128+0x1,_0x216d7e=0x0;for(;_0x34829d[_0x127d26]['id']!=_0x34829d[_0x481128]['pairId'];)'elementStart'==_0x34829d[_0x127d26]['type']?_0x216d7e++:'elementEnd'==_0x34829d[_0x127d26]['type']&&_0x216d7e--,_0x127d26++;if(0x0!=_0x216d7e){if(_0x34829d[_0x481128]['isRemoved'])_0x34829d[_0x481128]['isIncorrect']=!0x0;else{for(;_0x127d26!=_0x481128;)_0x34829d[_0x127d26]['isRemoved']&&0x0!=_0x34829d[_0x127d26]['distance']&&(_0x34829d[_0x127d26]['isIncorrect']=!0x0,_0x52a039['add'](_0x34829d[_0x127d26]['pairId'])),_0x127d26--;}}}return _0x34829d['filter'](_0x101a62=>!_0x101a62['isIncorrect']);}['_removeUnsupportedChanges'](_0xea199b){const _0x56913c=this['editor']['model']['schema'];for(let _0x444c1e=0x0;_0x444c1e<_0xea199b['length'];_0x444c1e++){if(!(_0xea199b[_0x444c1e]['isAdded']||_0xea199b[_0x444c1e]['isAddSuggestion']||_0xea199b[_0x444c1e]['isRemoved']||_0xea199b[_0x444c1e]['isRemoveSuggestion']))continue;if(0x0==_0xea199b[_0x444c1e]['distance'])continue;const _0x448b2d=_0xea199b[_0x444c1e]['item'];_0x56913c['isBlock'](_0x448b2d)||_0x56913c['isLimit'](_0x448b2d)||(_0xea199b[_0x444c1e]['isAdded']&&delete _0xea199b[_0x444c1e]['isAdded'],_0xea199b[_0x444c1e]['isAddSuggestion']&&delete _0xea199b[_0x444c1e]['isAddSuggestion'],_0xea199b[_0x444c1e]['isRemoveSuggestion']&&delete _0xea199b[_0x444c1e]['isRemoveSuggestion'],_0xea199b[_0x444c1e]['isRemoved']&&(_0xea199b[_0x444c1e]['isIncorrect']=!0x0));}return _0xea199b['filter'](_0x49b95c=>!_0x49b95c['isIncorrect']);}['_makeModelFromTape'](_0x14014e,_0x412f2a,_0x1d3a0c){const _0x41f869=new vt(),_0x588415=[],_0x5251c7=new Map(),_0x13d0ed=this['editor']['model'],_0x191178=_0x13d0ed['schema'],_0x28cb8a=[_0x41f869],_0x40c67a={},_0x4c0af5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5c1d0a=null;const _0x5354f5=[0x0];for(let _0x5ffb7c=0x0;_0x5ffb7c<_0x14014e['length'];_0x5ffb7c++)if('elementStart'===_0x14014e[_0x5ffb7c]['type']){_0x14014e[_0x5ffb7c]['previousPosition']=_0x13d0ed['createPositionFromPath'](_0x41f869,_0x5354f5);const _0x38199f=new ut(_0x14014e[_0x5ffb7c]['item']['name'],_0x14014e[_0x5ffb7c]['item']['getAttributes']());_0x28cb8a[0x0]['_appendChild'](_0x38199f),_0x5354f5['push'](0x0),_0x28cb8a['unshift'](_0x38199f),_0x14014e[_0x5ffb7c]['nextPosition']=_0x13d0ed['createPositionFromPath'](_0x41f869,_0x5354f5);}else'elementEnd'===_0x14014e[_0x5ffb7c]['type']?(_0x28cb8a['shift'](),_0x14014e[_0x5ffb7c]['previousPosition']=_0x13d0ed['createPositionFromPath'](_0x41f869,_0x5354f5),_0x5354f5['pop'](),_0x5354f5[_0x5354f5['length']-0x1]++,_0x14014e[_0x5ffb7c]['nextPosition']=_0x13d0ed['createPositionFromPath'](_0x41f869,_0x5354f5)):(_0x14014e[_0x5ffb7c]['previousPosition']=_0x13d0ed['createPositionFromPath'](_0x41f869,_0x5354f5),_0x5c1d0a?_0x5c1d0a['_data']+=_0x14014e[_0x5ffb7c]['item']['data']:_0x5c1d0a=new gt(_0x14014e[_0x5ffb7c]['item']['data'],_0x14014e[_0x5ffb7c]['item']['getAttributes']()),_0x14014e[_0x5ffb7c+0x1]&&'text'===_0x14014e[_0x5ffb7c+0x1]['type']&&_0x23f45d(_0x5c1d0a,_0x14014e[_0x5ffb7c+0x1]['item'])||(_0x28cb8a[0x0]['_appendChild'](_0x5c1d0a),_0x5c1d0a=null),_0x5354f5[_0x5354f5['length']-0x1]+=_0x14014e[_0x5ffb7c]['item']['offsetSize'],_0x14014e[_0x5ffb7c]['nextPosition']=_0x13d0ed['createPositionFromPath'](_0x41f869,_0x5354f5));for(let _0x1503c0=0x0;_0x1503c0<_0x14014e['length'];_0x1503c0++){const _0x16afe7=_0x14014e[_0x1503c0]['previousPosition'],_0xfa6c44=_0x14014e[_0x1503c0]['nextPosition'];for(const _0x6b9511 of _0x14014e[_0x1503c0]['markersStart'])_0x5251c7['set'](_0x6b9511,{'start':_0x16afe7,'end':null});_0x2e5cc6('isRemoveSuggestion',_0x1503c0,_0x16afe7,_0xfa6c44),_0x2e5cc6('isAddSuggestion',_0x1503c0,_0x16afe7,_0xfa6c44),_0x2e5cc6('isRemoved',_0x1503c0,_0x16afe7,_0xfa6c44),_0x2e5cc6('isAdded',_0x1503c0,_0x16afe7,_0xfa6c44);for(const _0x5e13ea of _0x14014e[_0x1503c0]['markersEnd']){const _0x1fe2a4=_0x5251c7['get'](_0x5e13ea);_0x1fe2a4?_0x1fe2a4['end']=_0xfa6c44:_0x5251c7['set'](_0x5e13ea,{'start':_0xfa6c44,'end':_0xfa6c44});}}for(const [_0xf9546,_0x157409]of _0x5251c7){const _0x5a9184=this['editor']['model']['createRange'](_0x157409['start'],_0x157409['end']);_0x41f869['markers']['set'](_0xf9546,_0x5a9184);}return _0x588415['sort']((_0x41d282,_0x2dc27f)=>{const _0x364655=_0x41f869['markers']['get']('revision:'+_0x41d282['id']),_0x53af67=_0x41f869['markers']['get']('revision:'+_0x2dc27f['id']);return _0x364655['start']['isBefore'](_0x53af67['start'])?-0x1:_0x364655['start']['isAfter'](_0x53af67['start'])?0x1:_0x364655['end']['isBefore'](_0x53af67['end'])?-0x1:_0x364655['end']['isAfter'](_0x53af67['end'])?0x1:'add'===_0x41d282['type']?-0x1:0x1;}),{'root':_0x41f869,'changes':_0x588415};function _0x2e5cc6(_0x5b8202,_0x20348a,_0x2921a3,_0x506d78){const _0x100b58=!!_0x14014e[_0x20348a][_0x5b8202],_0x24d6fa=_0x100b58?_0x14014e[_0x20348a][_0x5b8202]['userId']:null,_0x48347a=_0x20348a===_0x14014e['length']-0x1,_0x56c89d=_0x4c0af5[_0x5b8202][0x0],_0x3a3bfb=_0x191178['isObject'](_0x14014e[_0x20348a]['item']);!_0x40c67a[_0x5b8202]&&_0x100b58?_0x40c67a[_0x5b8202]={'start':_0x2921a3,'tapeItem':_0x14014e[_0x20348a],'userId':_0x24d6fa,'type':_0x5b8202}:_0x40c67a[_0x5b8202]&&!_0x100b58?(_0x40c67a[_0x5b8202]['end']=_0x2921a3,_0x125e49(_0x40c67a[_0x5b8202]),_0x40c67a[_0x5b8202]=null):_0x40c67a[_0x5b8202]&&_0x100b58&&_0x40c67a[_0x5b8202]['userId']!==_0x24d6fa&&(_0x40c67a[_0x5b8202]['end']=_0x2921a3,_0x56c89d&&_0x56c89d['userId']===_0x40c67a[_0x5b8202]['userId']||_0x125e49(_0x40c67a[_0x5b8202]),_0x40c67a[_0x5b8202]={'start':_0x2921a3,'tapeItem':_0x14014e[_0x20348a],'userId':_0x24d6fa,'type':_0x5b8202}),_0x40c67a[_0x5b8202]&&_0x3a3bfb&&('elementStart'!==_0x14014e[_0x20348a]['type']||_0x56c89d&&_0x56c89d['userId']===_0x24d6fa||_0x4c0af5[_0x5b8202]['unshift']({'userId':_0x24d6fa,'object':_0x14014e[_0x20348a]['item'],'change':_0x40c67a[_0x5b8202]}),'elementEnd'===_0x14014e[_0x20348a]['type']&&_0x56c89d&&_0x56c89d['object']===_0x14014e[_0x20348a]['item']&&(_0x4c0af5[_0x5b8202]['shift'](),_0x40c67a[_0x5b8202]=_0x56c89d['change'])),_0x40c67a[_0x5b8202]&&_0x48347a&&(_0x40c67a[_0x5b8202]['end']=_0x506d78,_0x125e49(_0x40c67a[_0x5b8202]),_0x40c67a[_0x5b8202]=null);}function _0x125e49({start:_0xb1a241,end:_0xb25884,tapeItem:_0x251f32,userId:_0x18159a,type:_0x5bb283}){const _0x324c4d=_0x251f32['item'],_0x3ec79d=_0x13d0ed['schema']['isBlock'](_0x324c4d)&&!_0x13d0ed['schema']['isLimit'](_0x324c4d),_0x428842=_0xb1a241['nodeAfter']==_0xb25884['parent']&&_0xb25884['isAtStart'];if(_0x3ec79d&&_0x428842)return;const _0x24ffd2=_0x13d0ed['createRange'](_0xb1a241,_0xb25884),_0x42d733=_0x412f2a['get'](_0x18159a),_0x2a6f9d=new r({'author':_0x42d733,'type':'isAdded'==_0x5bb283||'isAddSuggestion'==_0x5bb283?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5bb283||'isRemoveSuggestion'==_0x5bb283},'createdAt':new Date(),'rootName':_0x1d3a0c});_0x588415['push'](_0x2a6f9d),_0x41f869['markers']['set']('revision:'+_0x2a6f9d['id'],_0x24ffd2);}function _0x23f45d(_0x300982,_0x34b80b){const _0x3bbdee=_0x300982['getAttributes'](),_0x43f7ad=_0x34b80b['getAttributes']();for(const _0x24ff23 of _0x3bbdee){if(_0x24ff23[0x1]!==_0x34b80b['getAttribute'](_0x24ff23[0x0]))return!0x1;_0x43f7ad['next']();}return _0x43f7ad['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2b6551=>{const _0x39c8d9=_0x2b6551['markerName']['split'](':')[0x1],_0x2d1e22=this['_getChangeFromId'](_0x39c8d9);if(!_0x2d1e22)return null;const _0x2dd641='add'==_0x2d1e22['type']?'insertion':'deletion',_0xe010af=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2dd641];return _0x2d1e22['data']['isSuggestion']&&_0xe010af['push']('ck-suggestion-marker-'+_0x2dd641+'-new'),this['activeChange']==_0x2d1e22&&_0xe010af['push']('ck-suggestion-marker--active'),{'classes':_0xe010af,'attributes':{'data-change-id':_0x39c8d9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3b5ec2=>{_0x3b5ec2['on']('element:pre',(_0x234587,_0x4fe38c,_0x522c3f)=>{const _0x573cba=_0x4fe38c['viewItem']['getChild'](0x0);if(!_0x573cba||!_0x573cba['is']('element','code'))return;if(!_0x522c3f['consumable']['consume'](_0x573cba,{'attributes':['vid_start','vid_end']}))return;const _0x3b378b=_0x4fe38c['modelRange']['start']['nodeAfter'];_0x522c3f['writer']['setAttribute']('vid_start',_0x573cba['getAttribute']('vid_start'),_0x3b378b),_0x522c3f['writer']['setAttribute']('vid_end',_0x573cba['getAttribute']('vid_end'),_0x3b378b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4f4612=>{_0x4f4612['on']('element',(_0x3d507a,_0xa2b990,_0x5aa4f7)=>{if(!_0x5aa4f7['consumable']['consume'](_0xa2b990['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xa2b990['modelRange']['isCollapsed'])return;const _0x5b653e=_0xa2b990['modelRange']['start']['nodeAfter'];_0x5b653e['hasAttribute']('vid_start')||_0x5b653e['hasAttribute']('vid')||(_0x5aa4f7['writer']['setAttribute']('vid_start',_0xa2b990['viewItem']['getAttribute']('vid_start'),_0x5b653e),_0x5aa4f7['writer']['setAttribute']('vid_end',_0xa2b990['viewItem']['getAttribute']('vid_end'),_0x5b653e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x41101c=>_0x41101c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x429c15,[,_0x17b485])=>{['vid_start','vid_end','vid']['includes'](_0x17b485)&&(_0x429c15['return']=!0x0,_0x429c15['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3fe4f0=>{_0x3fe4f0['on']('attribute:vid',(_0x522786,_0x421ed9,_0x144582)=>{if('\x20'!=_0x421ed9['item']['data']||_0x421ed9['item']['parent']['maxOffset']>0x1)return;if(!_0x144582['consumable']['consume'](_0x421ed9['item'],_0x522786['name']))return;const _0x3ed947=_0x144582['writer'],_0x3c543e=_0x144582['mapper']['toViewRange'](_0x421ed9['range']);_0x3ed947['wrap'](_0x3c543e,_0x3ed947['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x344aaa){const _0x38dc75=_0x344aaa['plugins']['get']('RevisionViewer');return(_0x1a1c5f,_0x1ccda9,_0x5910dc)=>{const _0x59d2ee=_0x1ccda9['markerName']['split'](':')[0x1],_0x5133a5=_0x38dc75['_getChangeFromId'](_0x59d2ee);if(!_0x5133a5)return null;const _0x538bb7='add'==_0x5133a5['type']?'split':'merge';if(!_0x5910dc['consumable']['test'](_0x1ccda9['markerRange'],_0x1a1c5f['name']))return;const _0x417a26=_0x1ccda9['markerRange']['getWalker'](),_0x43161f=_0x1ccda9['markerRange']['start'],_0x6de2d6=_0x344aaa['model']['schema'];let _0x38883e=null,_0x335d39=null,_0x3dcca5=!0x1,_0xd87c4e=!0x1;for(const _0x1e971b of _0x417a26){const _0xbfd5c=_0x1e971b['item'];_0x3dcca5=_0x3dcca5||_0x6de2d6['isContent'](_0xbfd5c);const _0x43861a=_0x5910dc['mapper']['toViewElement'](_0xbfd5c);if(_0x43861a&&_0x43861a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1e971b['type']&&(_0x6de2d6['isBlock'](_0xbfd5c)&&!_0x6de2d6['isLimit'](_0xbfd5c)&&(_0xbfd5c['nextSibling']||_0x43161f['isAtEnd']?_0x38883e&&_0x38883e['parent']==_0xbfd5c||(_0x38883e=_0xbfd5c,_0x265623(_0x1e971b['previousPosition']),_0xd87c4e=!0x0):_0x335d39=_0x335d39||_0x1e971b['previousPosition']));}function _0x265623(_0x59060f){const _0x2c66d2=_0x5910dc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x538bb7}),_0x5697de=_0x5910dc['mapper']['toViewPosition'](_0x59060f);_0x5133a5['data']['isSuggestion']&&_0x5910dc['writer']['addClass']('ck-suggestion-marker-'+_0x538bb7+'-new',_0x2c66d2),_0x38dc75['activeChange']==_0x5133a5&&_0x5910dc['writer']['addClass']('ck-suggestion-marker--active',_0x2c66d2),_0x5910dc['writer']['insert'](_0x5697de,_0x2c66d2),_0x5910dc['mapper']['bindElementToMarker'](_0x2c66d2,_0x1ccda9['markerName']);}_0x3dcca5||_0xd87c4e||!_0x335d39||_0x265623(_0x335d39);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5d3f33,_0xc5bed0,_0x4608fa)=>{const _0xf83790=_0x4608fa['mapper']['markerNameToElements'](_0xc5bed0['markerName']);if(_0xf83790){for(const _0x4d43fd of _0xf83790)(_0x4d43fd['hasClass']('ck-suggestion-marker-split')||_0x4d43fd['hasClass']('ck-suggestion-marker-merge'))&&(_0x4608fa['mapper']['unbindElementFromMarkerName'](_0x4d43fd,_0xc5bed0['markerName']),_0x4608fa['writer']['remove'](_0x4d43fd));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xab655c,_0x40283c,_0x3305a4)=>{const _0x21c94a=_0x40283c['markerName']['split'](':')[0x1],_0x67a598=this['_getChangeFromId'](_0x21c94a);if(!_0x67a598)return null;const _0x185499='add'==_0x67a598['type']?'split':'merge';if(_0x3305a4['consumable']['test'](_0x40283c['markerRange'],_0xab655c['name']))for(const _0x434e03 of _0x40283c['markerRange']['getItems']()){if(!_0x434e03['is']('element','softBreak'))continue;const _0x210f9f=_0x3305a4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x185499}),_0x166049=_0x3305a4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x434e03));_0x67a598['data']['isSuggestion']&&_0x3305a4['writer']['addClass']('ck-suggestion-marker-'+_0x185499+'-new',_0x210f9f),this['activeChange']==_0x67a598&&_0x3305a4['writer']['addClass']('ck-suggestion-marker--active',_0x210f9f),_0x3305a4['writer']['insert'](_0x166049,_0x210f9f),_0x3305a4['mapper']['bindElementToMarker'](_0x210f9f,_0x40283c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x7c7007=>{for(const _0x488bd0 of this['editor']['model']['document']['getRootNames']()){const _0x4a81b9=this['editor']['model']['document']['getRoot'](_0x488bd0),_0x39f840=this['editor']['editing']['view']['document']['getRoot'](_0x488bd0);if(_0x39f840){const _0x239e3f=_0x4a81b9['getAttribute']('revisionHistoryAttachChange');if(_0x7c7007['removeAttribute']('data-change-id',_0x39f840),_0x7c7007['removeClass']('ck-revision-history-root-add',_0x39f840),_0x7c7007['removeClass']('ck-revision-history-root-remove',_0x39f840),_0x7c7007['removeClass']('ck-revision-history-root--active',_0x39f840),_0x239e3f){const _0x26c0d8=this['_getChangeFromId'](_0x239e3f);if(!_0x26c0d8)return null;_0x7c7007['setAttribute']('data-change-id',_0x239e3f,_0x39f840),_0x7c7007['addClass']('ck-revision-history-root-'+_0x26c0d8['type'],_0x39f840),this['activeChange']==_0x26c0d8&&_0x7c7007['addClass']('ck-revision-history-root--active',_0x39f840);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x41abfe=>'revision-comment:'+_0x41abfe,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1dfd8e=>'revision-suggestion:'+_0x1dfd8e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x503afe=>({'name':'suggestion:'+_0x503afe,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4ee27b=>{const _0x226c08=_0x4ee27b['markerName']['split'](':')[0x1];return'insertion'!=_0x226c08&&'deletion'!=_0x226c08?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x226c08]};}}),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',(_0x32d677,_0x4f125e,_0x1b925c)=>{const _0x18de2c=_0x1b925c['mapper']['markerNameToElements'](_0x4f125e['markerName']);if(_0x18de2c){for(const _0x19799a of _0x18de2c)_0x19799a['is']('uiElement')&&(_0x1b925c['mapper']['unbindElementFromMarkerName'](_0x19799a,_0x4f125e['markerName']),_0x1b925c['writer']['remove'](_0x19799a));}},{'priority':'high'});}['_getChangeFromId'](_0x10c796){return this['_changeIdToChange']['get'](_0x10c796);}['_getViewForChange'](_0xc55cd8){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0xc55cd8),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x491740,_0x4ecf64,_0x31a169,_0x5b10f8)=>{_0x5b10f8&&this['_balloon']['remove'](_0x5b10f8),_0x31a169&&(this['_balloon']['add']({'view':_0x31a169,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x467676=this['editor']['editing'],_0x411f17=this['_getChangeFromId'](_0x31a169['changeId']);let _0x38498c;if(_0x411f17['data']['isOnRoot']){const _0x28cd39=_0x467676['view']['getDomRoot'](_0x411f17['rootName']);_0x38498c=Array['from'](_0x28cd39['getClientRects']());}else{const _0x25013c=this['editor']['model']['markers']['get']('revision:'+_0x31a169['changeId']);_0x38498c=Array['from'](_0x467676['mapper']['markerNameToElements'](_0x25013c['name']))['map'](_0x498dfd=>_0x467676['view']['domConverter']['mapViewToDom'](_0x498dfd))['map'](_0x30c4e2=>Array['from'](_0x30c4e2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x38498c[0x0];return _0x38498c['find'](_0x379ad0=>_0x379ad0['top']-0x3<=this['_activeViewTarget']['y']&&_0x379ad0['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x379ad0['left']-0x3<=this['_activeViewTarget']['x']&&_0x379ad0['right']+0x3>=this['_activeViewTarget']['x'])||_0x38498c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5cecdc,_0x5892fb,_0x3d55f7,_0x1b7cce)=>{this['activeView']=_0x3d55f7?this['_getViewForChange'](_0x3d55f7):null,this['editor']['model']['change'](()=>{const _0x3067c4=this['editor']['editing'];_0x1b7cce&&(_0x1b7cce['data']['isOnRoot']?_0x3067c4['view']['change'](_0x20ad00=>{_0x20ad00['removeClass']('ck-revision-history-root--active',_0x3067c4['view']['document']['getRoot'](_0x1b7cce['rootName']));}):_0x3067c4['reconvertMarker']('revision:'+_0x1b7cce['id'])),_0x3d55f7&&(_0x3d55f7['data']['isOnRoot']?_0x3067c4['view']['change'](_0x1e5017=>{_0x1e5017['addClass']('ck-revision-history-root--active',_0x3067c4['view']['document']['getRoot'](_0x3d55f7['rootName']));}):_0x3067c4['reconvertMarker']('revision:'+_0x3d55f7['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x10f9ef,_0x1e06c2)=>{if(this['activeChange'])return;const _0x4ca9cc=this['_findChangeIdFromDomTarget'](_0x1e06c2['target']),_0x52c77c=this['_changeIdToChange']['get'](_0x4ca9cc);_0x52c77c?(this['_activeViewTarget']={'x':_0x1e06c2['domEvent']['x'],'y':_0x1e06c2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x52c77c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x455578,_0x338ab4)=>{const _0x18e664=this['_findChangeIdFromDomTarget'](_0x338ab4['target']),_0x7a550=this['_changeIdToChange']['get'](_0x18e664);_0x7a550?(this['_activeViewTarget']={'x':_0x338ab4['domEvent']['x'],'y':_0x338ab4['domEvent']['y']},_0x7a550===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x7a550):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x315d39){do{const _0x5677de=_0x315d39['getAttribute']('data-change-id');if(_0x5677de)return _0x5677de;_0x315d39=_0x315d39['parent'];}while(_0x315d39);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2fdc70=>{for(const _0x13851 of this['editor']['model']['markers'])_0x2fdc70['removeMarker'](_0x13851);});}}function X(_0x51a913,_0x128ea5){return(_0x468909,_0x4173cd,_0x32743f)=>{if(!_0x32743f['consumable']['test'](_0x4173cd['markerRange'],_0x468909['name']))return;const _0x28d3d0=_0x4173cd['markerRange']['getWalker'](),_0x55c479=_0x4173cd['markerRange']['start'],_0x3af212=_0x51a913['model']['schema'];let _0x3b2ded=null,_0x313afa=null,_0x4b8310=!0x1,_0x2fd1ac=!0x1;for(const _0x33a557 of _0x28d3d0){const _0x8b23c2=_0x33a557['item'];_0x4b8310=_0x4b8310||_0x3af212['isContent'](_0x8b23c2);const _0x2445a4=_0x32743f['mapper']['toViewElement'](_0x8b23c2);if(_0x2445a4&&_0x2445a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x33a557['type']&&(_0x3af212['isBlock'](_0x8b23c2)&&!_0x3af212['isLimit'](_0x8b23c2)&&(_0x8b23c2['nextSibling']||_0x55c479['isAtEnd']?_0x3b2ded&&_0x3b2ded['parent']==_0x8b23c2||(_0x3b2ded=_0x8b23c2,_0x5a595e(_0x33a557['previousPosition']),_0x2fd1ac=!0x0):_0x313afa=_0x313afa||_0x33a557['previousPosition']));}function _0x5a595e(_0x55bd59){const _0x21c3ce=_0x32743f['mapper']['toViewPosition'](_0x55bd59),_0x52a2f0=_0x32743f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x128ea5});_0x32743f['writer']['insert'](_0x21c3ce,_0x52a2f0),_0x32743f['mapper']['bindElementToMarker'](_0x52a2f0,_0x4173cd['markerName']);}_0x4b8310||_0x2fd1ac||!_0x313afa||_0x5a595e(_0x313afa);};}class mt extends _0x52a6c8{constructor(_0x4073fc){super(_0x4073fc);const _0x7386a3=_0x4073fc['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x7386a3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x7386a3,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2a6d19=this['editor'],_0x5c6558=_0x2a6d19['plugins']['get'](m),_0x10e751=_0x5c6558['isReady']?_0x5c6558['diff']['newRevisionId']:null;_0x2a6d19['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x10e751);}['refresh'](){const {isReady:_0x3f486e,isEnabled:_0x47e0a3,repository:_0x5dd93e,diff:_0x22f3c7}=this['editor']['plugins']['get'](m),_0x51521b=_0x22f3c7&&_0x5dd93e['getLaterVisibleRevision'](_0x22f3c7['newRevisionId']);this['isEnabled']=_0x3f486e&&_0x47e0a3&&Boolean(_0x51521b);}}class wt extends _0x52a6c8{['_step'];constructor(_0x5e8054,{direction:_0x1efc38}){super(_0x5e8054);const _0x28d295=_0x5e8054['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x1efc38?0x1:-0x1,this['listenTo'](_0x28d295,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28d295,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x28d295,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x56d37b=this['editor'],_0x4832e6=_0x56d37b['plugins']['get'](m),{isNavigationMode:_0x1651f9,currentChangeNumber:_0x36b4c3}=_0x4832e6;let _0x2bb415;if(_0x4832e6['activeChange']=_0x1651f9?_0x4832e6['diff']['changes']['get'](_0x36b4c3+this['_step']):_0x4832e6['diff']['changes']['first'],_0x4832e6['activeChange']['data']['isOnRoot'])_0x2bb415=_0x56d37b['editing']['view']['getDomRoot'](_0x4832e6['activeChange']['rootName']);else{const _0x59e72f=_0x56d37b['model']['markers']['get']('revision:'+_0x4832e6['activeChange']['id']);_0x2bb415=_0x409c56(_0x56d37b['editing'],_0x59e72f);}_0xb05bba({'target':_0x2bb415,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x39363c,currentChangeNumber:_0x30b90c,numberOfChanges:_0x34ccdc,isReady:_0xd524af,isEnabled:_0x541782}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x541782&&_0xd524af&&_0x34ccdc)&&(!_0x39363c||(0x1===this['_step']?_0x30b90c<_0x34ccdc-0x1:_0x30b90c>0x0));}}class _i extends ts{constructor(_0x2835e9){super(_0x2835e9);const _0x48800d=this['bindTemplate'],_0x4940b4=new te(_0x2835e9),_0xb19d6d=new te(_0x2835e9);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',(_0x566b28,_0x214021)=>_0x566b28&&_0x214021>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2165a,_0x6854ca,_0x29d3f1,_0x2ea14c)=>{if(!_0x2165a)return g(_0x2835e9,'Loading...');if(!_0x29d3f1)return g(_0x2835e9,'No\x20changes');const _0x488779=g(_0x2835e9,'NUMBER_OF_CHANGES',_0x29d3f1);return _0x2ea14c?g(_0x2835e9,'X_OF_Y_CHANGES',[_0x6854ca+0x1,_0x29d3f1]):_0x488779;}),_0x4940b4['set']({'label':g(_0x2835e9,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x19f9a5}),_0xb19d6d['set']({'label':g(_0x2835e9,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x538da8}),_0x4940b4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xb19d6d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4940b4['on']('execute',()=>this['fire']('execute','backward')),_0xb19d6d['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',_0x48800d['if']('_isStatusLabelVisible','ck-hidden',_0x245a17=>!_0x245a17)]},'children':[{'text':_0x48800d['to']('isNavigationMode',_0xdf78bc=>_0xdf78bc?g(_0x2835e9,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2835e9,'Total')+':\x20')}]},{'text':_0x48800d['to']('_statusText')}]},new _0x45188a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4940b4,_0xb19d6d]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x553bb9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x26fa91=this['editor']['editing']['view'];_0x26fa91['change'](_0xe4e962=>{for(const _0x187285 of _0x26fa91['document']['roots'])_0xe4e962['addClass'](le,_0x187285);});}['hide'](){const _0x35b60e=this['editor']['editing']['view'];_0x35b60e['change'](_0x11c7b0=>{for(const _0x1d8705 of _0x35b60e['document']['roots'])_0x11c7b0['removeClass'](le,_0x1d8705);});}}class R extends _0x553bb9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x93f531=this['editor'],_0xb637b0=_0x93f531['plugins']['get'](m),_0x52f214=_0x93f531['plugins']['get'](ge);_0x93f531['ui']['componentFactory']['add']('exitToEditing',_0x4b52ff=>{const _0x27be32=new te(_0x4b52ff);return _0x27be32['set']({'label':g(_0x4b52ff,'Back\x20to\x20editing'),'icon':_0xd9c976,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x27be32,'execute',()=>{_0x93f531['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x27be32;}),_0x93f531['ui']['componentFactory']['add']('restoreRevision',_0x32ef96=>{const _0x554eb7=new te(_0x32ef96);return _0x554eb7['set']({'label':g(_0x32ef96,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x554eb7['bind']('isEnabled')['to'](_0x93f531['commands']['get']('restoreRevision')),this['listenTo'](_0x554eb7,'execute',()=>_0x93f531['execute']('restoreRevision')),_0x554eb7;}),_0x93f531['ui']['componentFactory']['add']('changesNavigation',_0x2915fc=>{const _0x17a940=new _i(_0x2915fc),_0x8cad9d=_0x93f531['commands']['get']('showPreviousChange'),_0x12352b=_0x93f531['commands']['get']('showNextChange');return _0x17a940['bind']('isBackwardNavigationEnabled')['to'](_0x8cad9d,'isEnabled'),_0x17a940['bind']('isForwardNavigationEnabled')['to'](_0x12352b,'isEnabled'),_0x17a940['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xb637b0),this['listenTo'](_0x17a940,'execute',(_0x31251d,_0x58c034)=>{_0x93f531['execute']('forward'===_0x58c034?'showNextChange':'showPreviousChange');}),_0x17a940;}),_0x52f214['show'](),_0xb637b0['on']('change:isReady',(_0x40792a,_0x1a2c30,_0x50ce14)=>{_0x50ce14?_0x52f214['hide']():_0x52f214['show']();});}}class at extends _0x45dc4c{['_resizeObserver']=null;constructor(_0x1fce24,_0x2af868){super(_0x1fce24,_0x2af868);const _0x2e1c39=this['bindTemplate'];this['set']({'label':g(_0x1fce24,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x1fce24,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2e1c39['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 _0x3f5076=this['fieldView']['element'];this['_tooltipString']=_0x3f5076['scrollWidth']>_0x3f5076['clientWidth']&&_0x3f5076['value']||'';}}class si extends ts{constructor(_0xbcf6bc,_0x4440b2,_0x53a2b9){super(_0xbcf6bc);const _0x443269=new _0x496fe7();_0x443269['set']({'content':_0x77c3a7,'viewBox':'0\x200\x2011\x2010'});const _0x39f1ca=['ck','ck-revision-history-sidebar__revision-author'];_0x53a2b9&&_0x39f1ca['push']('ck-revision-history-sidebar__revision-author_creator');const _0x852fb3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0xbcf6bc,_0x53a2b9?'Revision\x20creator':'Revision\x20author')},'children':[_0x443269,_0x4440b2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x39f1ca},'children':_0x852fb3});}}function oi(_0xe7b79d,_0x1381fc){const _0x1e9406=_0xe7b79d['bindTemplate'],_0x2c04b5=_0xe7b79d['locale'],_0x29bb26=_0x41976a(_0x2c04b5);_0x29bb26['panelPosition']='sw';const _0x289568=function(_0x1cb7ce,_0x2139a3){const _0x39d326=function(_0x88d8a5,_0x2eeea1){const _0x47e208=_0x88d8a5['locale'],_0x10d11f={'Compare\x20against\x20selected':g(_0x47e208,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x47e208,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x47e208,'Restore\x20this\x20revision')};return _0x2eeea1['map'](_0x1ff659=>{const _0x1fc010=_0x10d11f[_0x1ff659['name']];return _0x1fc010&&_0x1fc010!==_0x1ff659['name']&&(_0x1ff659['name']=_0x1fc010),_0x1ff659;});}(_0x1cb7ce,_0x2139a3),_0x2dd2d2=new _0x404bbe();for(const _0x362675 of _0x39d326){const _0x7cfdc1={'type':'button','model':new to({'label':_0x362675['name'],'class':_0x362675['class'],'withText':!0x0,'role':'menuitem','_action':_0x362675['action']})};_0x7cfdc1['model']['bind']('isEnabled')['to'](_0x1cb7ce,'isActionsDropdownOpen',_0x2754f3=>'function'!=typeof _0x362675['isEnabled']||(!_0x2754f3||_0x362675['isEnabled'](_0x1cb7ce))),_0x2dd2d2['add'](_0x7cfdc1);}return _0x2dd2d2;}(_0xe7b79d,_0x1381fc);return _0xe7b79d['bind']('isActionsDropdownOpen')['to'](_0x29bb26,'isOpen'),_0x29bb26['buttonView']['set']({'label':g(_0x2c04b5,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x44615f}),_0x29bb26['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1e9406['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1e9406['to'](_0x1433f9=>_0x1433f9['stopPropagation']())}}),_0x29bb26['on']('execute',_0x2363e0=>{_0xe7b79d['isReady']&&'function'==typeof _0x2363e0['source']['_action']&&_0x2363e0['source']['_action'](_0xe7b79d);}),_0x5bd43b(_0x29bb26,_0x289568,{'role':'menu'}),_0x29bb26['listenTo'](_0xe7b79d,'change:isActionsDropdownOpen',(_0x202c91,_0x5a380d,_0x118a79)=>{if(_0x118a79)for(const _0x23f69c of _0x29bb26['listView']['items']){const _0x14ac49=_0x23f69c['children']['first'],_0x23234f=_0x1381fc['find'](_0x4f9ab6=>_0x4f9ab6['action']===_0x14ac49['_action'])['isVisible'];_0x23f69c['isVisible']=void 0x0===_0x23234f||_0x23234f(_0xe7b79d);}}),_0x29bb26;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2a87f9,_0x47f0fd,_0x39b6ed,_0xb09018){super(_0x2a87f9);const _0x1dbe6a=this['bindTemplate'],_0x5059ab=function(_0x250b0c,_0x44c675){const _0x533791=Array['from'](_0x44c675['authors'])['filter'](_0x2c9245=>_0x2c9245!=_0x44c675['creator']);return _0x44c675['creator']&&_0x533791['unshift'](_0x44c675['creator']),_0x533791['map'](_0x1773f3=>new si(_0x250b0c,_0x1773f3,_0x1773f3==_0x44c675['creator']));}(_0x2a87f9,_0x47f0fd);this['id']=_0x47f0fd['id'],this['_revision']=_0x47f0fd,this['_requireRevisionName']=_0xb09018,this['bind']('name','createdAt')['to'](_0x47f0fd),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x486d5c=>{return _0xaed071=_0x2a87f9['uiLanguage'],(_0x30486a=_0x486d5c)['toLocaleDateString'](_0xaed071,{'month':'long','day':'numeric'})+',\x20'+_0x30486a['toLocaleTimeString'](_0xaed071,{'hour':'numeric','minute':'numeric'});var _0xaed071,_0x30486a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2a87f9,_0x11dee7),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x29242a=>_0x29242a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x26a05,_0x48c864)=>_0x26a05&&_0x48c864),this['revisionActionsView']=_0x39b6ed&&_0x39b6ed['length']?oi(this,_0x39b6ed):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1dbe6a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1dbe6a['if']('isEnabled','ck-disabled',_0x434f94=>!_0x434f94),_0x1dbe6a['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1dbe6a['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1dbe6a['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':_0x1dbe6a['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':_0x5059ab}]},this['revisionActionsView']],'on':{'click':_0x1dbe6a['to'](_0x8ae27b=>{_0x8ae27b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5d5b63=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5d5b63,'change',()=>{this['_requireRevisionName']&&!_0x5d5b63['value']||this['fire']('setName',{'id':this['id'],'name':_0x5d5b63['value']}),_0x5d5b63['value']||(_0x5d5b63['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x4d30d3,_0x474144){const _0x1c13bd=_0x24eb54['fromJSDate'](_0x4d30d3)['setLocale'](_0x474144),_0x4d5128=_0x24eb54['local'](),_0x556758=_0x4d5128['minus']({'days':0x1})['startOf']('day');let _0x5ab7c7,_0x445adc;return _0x1c13bd['hasSame'](_0x4d5128,'day')?(_0x5ab7c7=_0x1c13bd['startOf']('day')['toJSDate'](),_0x445adc=_0x1c13bd['toRelativeCalendar']()):_0x1c13bd['hasSame'](_0x556758,'day')?(_0x5ab7c7=_0x556758['toJSDate'](),_0x445adc=_0x1c13bd['toRelativeCalendar']()):_0x1c13bd['hasSame'](_0x4d5128,'week')?(_0x5ab7c7=_0x1c13bd['startOf']('week')['toJSDate'](),_0x445adc=_0x1c13bd['weekdayLong']||''):_0x1c13bd['hasSame'](_0x4d5128,'year')?(_0x5ab7c7=_0x1c13bd['startOf']('month')['toJSDate'](),_0x445adc=_0x1c13bd['monthLong']||''):(_0x5ab7c7=_0x1c13bd['startOf']('year')['toJSDate'](),_0x445adc=String(_0x1c13bd['year'])),{'startDate':_0x5ab7c7,'localizedPeriodName':_0x445adc};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x48b4ae,_0xb8e311,_0x584362,_0x55b7eb){super(_0x48b4ae);const _0x1b21ca=ai(_0xb8e311,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xb8e311,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x584362,this['_requireRevisionName']=_0x55b7eb,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':_0x1b21ca}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x37f04b){const _0x7c5b9c=new hi(this['locale'],_0x37f04b,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x7c5b9c);}['removeRevision'](_0x5f2ec3){const _0x232a61=this['revisionViews']['find'](_0x33da80=>_0x33da80['id']===_0x5f2ec3['id']);this['revisionViews']['remove'](_0x232a61);}}class as extends ts{constructor(_0x5f1b52){super(_0x5f1b52);const _0x59395a=new _0x496fe7();_0x59395a['content']=_0x7ad83f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x59395a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x5f1b52,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4ce27b,_0x157e52,_0x4d378a,_0x1361a6){super(_0x4ce27b);const _0x140732=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x157e52,this['_revisionActions']=_0x4d378a,this['_requireRevisionName']=_0x1361a6,this['on']('select',(_0x65ce51,_0x3c1e9e)=>{this['fire']('revisionSelected',_0x3c1e9e);}),this['on']('setName',(_0x42fdbb,_0x2f628c)=>{this['fire']('revisionSetName',_0x2f628c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4ce27b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x140732['if']('isEnabled','ck-disabled',_0x5250da=>!_0x5250da)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x63af8d of this['_revisions'])this['_addRevision'](_0x63af8d);this['_revisions']['on']('add',(_0xa111ef,_0x2e8ffc)=>{this['_addRevision'](_0x2e8ffc);}),this['_revisions']['on']('remove',(_0x24b3d6,_0x352648)=>{this['_removeRevision'](_0x352648);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x32e62c=>_0x32e62c['revisionViews']['map'](_0x469a61=>_0x469a61))['flat']();}['selectRevision'](_0x1065b8){for(const _0x198b5f of this['revisionViews'])_0x1065b8&&_0x1065b8['id']===_0x198b5f['id']?_0x198b5f['select']():_0x198b5f['deselect']();}['highlightRevisions'](_0x4e16e3){for(const _0xfcf111 of this['revisionViews'])_0x4e16e3['some'](({id:_0x263727})=>_0x263727===_0xfcf111['id'])?_0xfcf111['highlight']():_0xfcf111['unhighlight']();}['_addRevision'](_0x476f20){const _0x37a62f=ai(_0x476f20['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1394bd=this['timePeriodViews']['get'](0x0);_0x1394bd&&_0x1394bd['startDate']['getTime']()===_0x37a62f['getTime']()||(_0x1394bd=new di(this['locale'],_0x37a62f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1394bd)),_0x1394bd['addRevision'](_0x476f20);}['_removeRevision'](_0x49f4ad){const _0x4fe931=ai(_0x49f4ad['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4fe931)['removeRevision'](_0x49f4ad);}['_getTimePeriodViewByStartDate'](_0x3cdca0){return this['timePeriodViews']['find'](_0x5870c4=>_0x5870c4['startDate']['getTime']()===_0x3cdca0['getTime']());}}class d extends _0x553bb9{['_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(_0x563708){super(_0x563708),this['_revisionViewer']=_0x563708['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4e0f90=this['_revisionsRepository']['_revisions'],_0x43c534=this['_createRevisionActions'](),_0x3e94b2=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x4e0f90,_0x43c534,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',(_0x20ca5e,_0x6bb794)=>{_0x6bb794['revisionViews']['on']('add',(_0x21f821,_0x15ce00)=>{_0x15ce00['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)),_0x3e94b2['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3b74c9=this['_revisionsRepository']['getRevision'](0x0);if(_0x3b74c9){const _0x445e37=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3b74c9['id']);this['_revisionViewer']['compare'](_0x3b74c9,_0x445e37);}}['_handleRevisionSelected'](_0x3324ee,_0x5642c6){const _0x12a719=this['_revisionsRepository']['getRevision'](_0x5642c6['id']),_0x145e42=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x12a719['id']);this['_revisionViewer']['compare'](_0x12a719,_0x145e42);}['_handleRevisionSetName'](_0xa93f80,_0x4789a9){this['_revisionsRepository']['getRevision'](_0x4789a9['id'])['setName'](_0x4789a9['name']);}['_handleDiffChange'](_0x302db6,_0xf9157a,_0x4d3937){const _0x1c0192=this['_revisionsRepository']['getRevisionsInDiff'](_0x4d3937);_0x1c0192['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1c0192),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1c0192[0x0]));}['_createRevisionActions'](){const _0x271e42=this['editor'],_0x567255=d['availableRevisionActions'],_0x1e4795=_0x271e42['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x1e4795['length'])return _0x1e4795['map'](_0x4072ac=>{const _0x59e85a='string'==typeof _0x4072ac?Object['assign']({},_0x567255[_0x4072ac]):_0x4072ac;return _0x59e85a['action']=_0x59e85a['action']['bind'](this,_0x271e42),_0x59e85a['isVisible']&&(_0x59e85a['isVisible']=_0x59e85a['isVisible']['bind'](this,_0x271e42)),_0x59e85a;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2d1f75},_0x5dfc55)=>{const _0xe969e4=_0x2d1f75['get'](m),_0x227755=_0xe969e4['repository'];let _0x148f38=_0xe969e4['diff']['newRevisionId'],_0x5f4e32=_0x5dfc55['id'];_0x227755['getIndex'](_0x148f38)>_0x227755['getIndex'](_0x5f4e32)&&([_0x148f38,_0x5f4e32]=[_0x5f4e32,_0x148f38]),_0xe969e4['compare'](_0x148f38,_0x5f4e32);},'isVisible':({plugins:_0x425069},_0x56878e)=>{const _0x36138=_0x425069['get'](m);return!(_0x36138['repository']['getRevisionsInDiff'](_0x36138['diff'])['length']>0x2)&&!_0x56878e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x525837,{id:_0x10c14c})=>{_0x525837['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x10c14c);},'isVisible':({plugins:_0x534775},_0x23c7b6)=>!!_0x534775['get'](m)['repository']['getLaterVisibleRevision'](_0x23c7b6['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x58be9b},{id:_0xadcb1b,revisionNameView:_0x3f4542})=>{const _0x4d47e1=_0x58be9b['get'](m),_0x44894f=_0x4d47e1['repository']['getEarlierVisibleRevision'](_0xadcb1b);_0x4d47e1['compare'](_0xadcb1b,_0x44894f),_0x3f4542['focus'](),_0x3f4542['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x527b57,_0x267cc6){super(_0x527b57),this['_view']=_0x267cc6,this['_toolbarConfig']=et(_0x527b57['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x2af1c3){const _0x51106d=this['editor'],_0x12307e=this['view'],_0x6d05f1=_0x51106d['editing']['view'],_0x1b176e=_0x12307e['editable'],_0x2e615b=_0x6d05f1['document']['getRoot']();_0x1b176e['name']=_0x2e615b['rootName'],_0x12307e['render']();const _0x45ddea=_0x1b176e['element'];this['setEditableElement'](_0x1b176e['name'],_0x45ddea),_0x12307e['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x6d05f1['attachDomRoot'](_0x45ddea),this['_elementReplacer']['replace'](_0x2af1c3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x273f2a=this['view'],_0x34630e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x34630e['detachDomRoot'](_0x273f2a['editable']['name']),_0x273f2a['destroy']();}['_initToolbar'](){const _0x32a11c=this['view'];_0x32a11c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x32a11c['stickyPanel']['limiterElement']=_0x32a11c['element'],_0x32a11c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5d0efd})=>_0x5d0efd),_0x32a11c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x32a11c['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x32c9b8,_0x385589,_0x5f0585={}){super(_0x32c9b8),this['stickyPanel']=new ht(_0x32c9b8),this['toolbar']=new dt(_0x32c9b8,{'shouldGroupWhenFull':_0x5f0585['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x32c9b8,_0x385589);}['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
- _0x361ff7(_0x135947){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x126708,_0x2a9ba2){super(_0x2a9ba2),this['sourceElement']=_0x126708,this['model']['document']['createRoot']();const _0x383824=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x383824);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x262fad,_0x2e4413){const _0x4b9a46=new this(_0x262fad,_0x2e4413);return await _0x4b9a46['initPlugins'](),await _0x4b9a46['ui']['init'](_0x262fad),await _0x4b9a46['data']['init'](_0x4b9a46['config']['get']('initialData')||''),_0x4b9a46['fire']('ready'),_0x4b9a46;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x1efec2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9045bf){function _0x584b17(_0x4b21cc){return _0x4b21cc['map'](_0x112d98=>String['fromCharCode'](_0x112d98))['join']('');}super(_0x9045bf),this['result']='end',_0x9045bf[_0x584b17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x584b17([0x76,0x69,0x65,0x77])][_0x584b17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x584b17([0x61,0x75,0x74,0x6f]),_0x9045bf[_0x584b17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x584b17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x584b17([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x584b17([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x584b17([0x6f,0x6b])});}}class k extends _0x1efec2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1208f3){if(super(_0x1208f3),!this['editor']['config']['get']('revisionHistory'))throw new _0xe3f082('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x11d932=>this['_showRevisionViewer']({..._0x11d932,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4b848b=>this['_closeRevisionViewer'](_0x4b848b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x478667=>this['_restoreRevision'](_0x478667)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x41491b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x41491b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xdfc182){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xdfc182);}['getRevision'](_0x18d3f8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x18d3f8);}['getRevisions'](_0x700b43){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x700b43||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x39516e=this['editor'],_0x155a79=_0xadfaa(_0x39516e,p),_0x10b73a=_0x39516e['plugins']['get']('RevisionTracker'),_0x443631=_0x39516e['plugins']['get']('Users')['users'];return _0x155a79['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x155a79['lazyRoots'],(_0x155a79['plugins']['push'](_t,m,R,class extends _0x1efec2{static get['requires'](){return[m,'Users'];}['init'](){const _0x13ac7a=this['editor']['plugins']['get']('Users');for(const _0x4bd0f9 of _0x443631)_0x4bd0f9['isAnonymous']||_0x13ac7a['getUser'](_0x4bd0f9['id'])||_0x13ac7a['addUser'](_0x4bd0f9);const _0x5692c6=_0x10b73a['repository']['getRevisions']();let _0x459330=null;const _0x200236=this['editor']['plugins']['get']('RevisionViewer');_0x200236['adapter']=_0x10b73a['adapter'],_0x200236['bind']('isEnabled')['to'](_0x10b73a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x39516e,'isReadOnly',_0x8b51da=>!_0x8b51da);for(const _0x1f3abb of _0x5692c6){const _0xd9e7a7=null===_0x1f3abb['creator'];if(_0xd9e7a7&&_0x1f3abb['toVersion']===_0x1f3abb['fromVersion'])continue;const _0x44ae00=_0x1f3abb['toJSON']();_0x200236['addRevisionData'](_0x44ae00,(_0x4c8c28,_0x334f37,_0x4d599b)=>{if(_0xd9e7a7){if(_0x459330)_0x459330['_update'](_0x4c8c28,_0x334f37);else{if(!_0x334f37){const _0x2e1f86=_0x4d599b['toJSON']();_0x2e1f86['id']=_0x4511b5(),_0x10b73a['saveRevision'](_0x2e1f86,_0x4d599b['toVersion'])['then'](_0xe052f0=>{_0x459330=_0xe052f0;});}}}else _0x1f3abb['_update'](_0x4c8c28,_0x334f37);});}}},d),_0x155a79);}['_enhanceShowRevisionViewerCallback'](){const _0x34883c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2623cb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1d86ab=this['editor']['plugins']['get']('Autosave');await _0x1d86ab['save']();}else await _0x2623cb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x20c669=this['editor']['plugins']['get']('Dialog');_0x20c669['isOpen']&&_0x20c669['hide']();}const _0x4c5b58=this['_getRevisionViewerEditorConfig']();return _0x34883c(_0x4c5b58)['then'](_0x273143=>{return(this['_viewerEditor']=_0x273143,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'),_0x273143);})['catch'](_0x51b86a=>(console['error'](_0x51b86a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x32d566=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'](),_0x32d566(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ce19a=this['editor']['plugins']['get']('Annotations');_0x1ce19a['refreshVisibility'](),_0x1ce19a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x195699){const _0x2c8d55=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x57c38a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x215576=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x215576,_0x195699)['then'](_0xc2b4fa=>(_0x57c38a['style']['display']='block',_0x2c8d55['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xc2b4fa));}['_closeRevisionViewer'](_0x13ef31){const _0x3d0a58=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3d0a58['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x13ef31['destroy']();}async['_restoreRevision'](_0x114336){const _0x2141fc=this['editor'],_0x5999ac=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1e6a32=_0x2141fc['plugins']['get']('RevisionTracker'),_0x2077f1=_0x2141fc['plugins']['get']('RevisionHistoryUtils'),_0x3f262f=_0x5999ac['repository']['getRevision'](_0x114336);let _0x49ce1c,_0x5e88b0,_0x127df8;try{await _0x2077f1['loadRevisionData'](_0x3f262f,this['adapter']),_0x49ce1c=_0x2077f1['getRevisionDocumentData'](_0x3f262f),_0x5e88b0=_0x2077f1['getRevisionRootsAttributes'](_0x3f262f);}catch(_0x1b095b){return void console['error'](_0x1b095b);}_0x2141fc['model']['change'](_0x2f1ff=>{for(const _0x10ce12 of Array['from'](_0x2141fc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2f1ff['removeMarker'](_0x10ce12);}),_0x5999ac['isReady']=!0x1,_0x2141fc['model']['enqueueChange'](_0x15d388=>{_0x15d388['setSelection'](null),_0x15d388['removeSelectionAttribute'](_0x2141fc['model']['document']['selection']['getAttributeKeys']());const _0xd051ae=Object['keys'](_0x49ce1c);for(const _0x27f3fc of _0x2141fc['model']['document']['roots'])'$graveyard'!=_0x27f3fc['rootName']&&_0x27f3fc['isAttached']()&&!_0xd051ae['includes'](_0x27f3fc['rootName'])&&_0x15d388['detachRoot'](_0x27f3fc);for(const _0x47d028 of _0xd051ae){let _0x250fae=_0x2141fc['model']['document']['getRoot'](_0x47d028);_0x250fae&&_0x250fae['isAttached']()||(_0x250fae=_0x15d388['addRoot'](_0x47d028));const _0x3d4325=_0x5e88b0[_0x47d028],_0x3b2fd9=Object['keys'](_0x3d4325),_0x26535e=_0x49ce1c[_0x47d028];for(const _0xc3b5a1 of _0x250fae['getAttributeKeys']())_0x3b2fd9['includes'](_0xc3b5a1)||_0x15d388['removeAttribute'](_0xc3b5a1,_0x250fae);for(const _0x2be17f of _0x3b2fd9)_0x15d388['setAttribute'](_0x2be17f,_0x5e88b0[_0x47d028][_0x2be17f],_0x250fae);_0x15d388['remove'](_0x15d388['createRangeIn'](_0x250fae)),_0x15d388['insert'](_0x2141fc['data']['parse'](_0x26535e,_0x250fae),_0x250fae,0x0);}});const _0x10f7e9=g(_0x2141fc['locale'],'Restored');if(_0x3f262f['name'])_0x127df8=-0x1==_0x3f262f['name']['indexOf'](_0x10f7e9)?_0x10f7e9+':\x20'+_0x3f262f['name']:_0x3f262f['name'];else _0x127df8=_0x10f7e9+':\x20'+(_0x3f262f['createdAt']['toLocaleDateString'](_0x2141fc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3f262f['createdAt']['toLocaleTimeString'](_0x2141fc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1e6a32['saveRevision']({'name':_0x127df8}),_0x5999ac['isReady']=!0x0,_0x2141fc['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,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x54147e){super(_0x54147e),this['_revisionViewer']=_0x54147e['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5038a7=this['_revisionsRepository']['_revisions'],_0x3dc6ca=this['_createRevisionActions'](),_0x592f02=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x5038a7,_0x3dc6ca,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',(_0x3767a1,_0x3bdfe8)=>{_0x3bdfe8['revisionViews']['on']('add',(_0x26be64,_0x1f5371)=>{_0x1f5371['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)),_0x592f02['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xc08147=this['_revisionsRepository']['getRevision'](0x0);if(_0xc08147){const _0x57903e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xc08147['id']);this['_revisionViewer']['compare'](_0xc08147,_0x57903e);}}['_handleRevisionSelected'](_0x1c6bed,_0x23bf33){const _0x46e529=this['_revisionsRepository']['getRevision'](_0x23bf33['id']),_0x42d214=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x46e529['id']);this['_revisionViewer']['compare'](_0x46e529,_0x42d214);}['_handleRevisionSetName'](_0xcebc6b,_0x3a25fc){this['_revisionsRepository']['getRevision'](_0x3a25fc['id'])['setName'](_0x3a25fc['name']);}['_handleDiffChange'](_0x26b129,_0x3e4efd,_0x347320){const _0x54cdfc=this['_revisionsRepository']['getRevisionsInDiff'](_0x347320);_0x54cdfc['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x54cdfc),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x54cdfc[0x0]));}['_createRevisionActions'](){const _0x5d06ce=this['editor'],_0x1b2fac=d['availableRevisionActions'],_0x40fd3b=_0x5d06ce['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x40fd3b['length'])return _0x40fd3b['map'](_0x5c2125=>{const _0x47a850='string'==typeof _0x5c2125?Object['assign']({},_0x1b2fac[_0x5c2125]):_0x5c2125;return _0x47a850['action']=_0x47a850['action']['bind'](this,_0x5d06ce),_0x47a850['isVisible']&&(_0x47a850['isVisible']=_0x47a850['isVisible']['bind'](this,_0x5d06ce)),_0x47a850;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3ea268},_0x769ab2)=>{const _0x1eee1f=_0x3ea268['get'](m),_0x41b83e=_0x1eee1f['repository'];let _0xf4cef7=_0x1eee1f['diff']['newRevisionId'],_0x864ca4=_0x769ab2['id'];_0x41b83e['getIndex'](_0xf4cef7)>_0x41b83e['getIndex'](_0x864ca4)&&([_0xf4cef7,_0x864ca4]=[_0x864ca4,_0xf4cef7]),_0x1eee1f['compare'](_0xf4cef7,_0x864ca4);},'isVisible':({plugins:_0x3f2dff},_0x3fe921)=>{const _0x55c551=_0x3f2dff['get'](m);return!(_0x55c551['repository']['getRevisionsInDiff'](_0x55c551['diff'])['length']>0x2)&&!_0x3fe921['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x7f17c5,{id:_0x38637f})=>{_0x7f17c5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x38637f);},'isVisible':({plugins:_0x259d89},_0x46ac17)=>!!_0x259d89['get'](m)['repository']['getLaterVisibleRevision'](_0x46ac17['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x568a76},{id:_0x4bbe0d,revisionNameView:_0xf680ad})=>{const _0x3ed9d5=_0x568a76['get'](m),_0x5ae5ae=_0x3ed9d5['repository']['getEarlierVisibleRevision'](_0x4bbe0d);_0x3ed9d5['compare'](_0x4bbe0d,_0x5ae5ae),_0xf680ad['focus'](),_0xf680ad['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x277f80,_0x3050b5){super(_0x277f80),this['_view']=_0x3050b5,this['_toolbarConfig']=et(_0x277f80['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0xe28a95){const _0x1d815e=this['editor'],_0x7105ff=this['view'],_0x2aafc6=_0x1d815e['editing']['view'],_0x1f686c=_0x7105ff['editable'],_0xc8aa4a=_0x2aafc6['document']['getRoot']();_0x1f686c['name']=_0xc8aa4a['rootName'],_0x7105ff['render']();const _0x50cb0b=_0x1f686c['element'];this['setEditableElement'](_0x1f686c['name'],_0x50cb0b),_0x7105ff['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2aafc6['attachDomRoot'](_0x50cb0b),this['_elementReplacer']['replace'](_0xe28a95,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x548837=this['view'],_0x10ad7a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x10ad7a['detachDomRoot'](_0x548837['editable']['name']),_0x548837['destroy']();}['_initToolbar'](){const _0xb1ccd0=this['view'];_0xb1ccd0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xb1ccd0['stickyPanel']['limiterElement']=_0xb1ccd0['element'],_0xb1ccd0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x26e5bd})=>_0x26e5bd),_0xb1ccd0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xb1ccd0['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3e5fd8,_0x39d4d5,_0x470abe={}){super(_0x3e5fd8),this['stickyPanel']=new ht(_0x3e5fd8),this['toolbar']=new dt(_0x3e5fd8,{'shouldGroupWhenFull':_0x470abe['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x3e5fd8,_0x39d4d5);}['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
+ _0x42b48c(_0x280212){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5bc54c,_0x3c7ecf){super(_0x3c7ecf),this['sourceElement']=_0x5bc54c,this['model']['document']['createRoot']();const _0x2b328e=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2b328e);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x28097c,_0x46f394){const _0x4b3e02=new this(_0x28097c,_0x46f394);return await _0x4b3e02['initPlugins'](),await _0x4b3e02['ui']['init'](_0x28097c),await _0x4b3e02['data']['init'](_0x4b3e02['config']['get']('initialData')||''),_0x4b3e02['fire']('ready'),_0x4b3e02;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x553bb9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48719b){function _0x2c1844(_0x10b6c4){return _0x10b6c4['map'](_0x541759=>String['fromCharCode'](_0x541759))['join']('');}super(_0x48719b),this['result']='end',_0x48719b[_0x2c1844([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c1844([0x76,0x69,0x65,0x77])][_0x2c1844([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c1844([0x61,0x75,0x74,0x6f]),_0x48719b[_0x2c1844([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c1844([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c1844([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c1844([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c1844([0x6f,0x6b])});}}class k extends _0x553bb9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1ad304){if(super(_0x1ad304),!this['editor']['config']['get']('revisionHistory'))throw new _0x5b3011('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1f917f=>this['_showRevisionViewer']({..._0x1f917f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x10e7f0=>this['_closeRevisionViewer'](_0x10e7f0)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4fe597=>this['_restoreRevision'](_0x4fe597)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2f3809){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2f3809;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x22ac58){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x22ac58);}['getRevision'](_0x5f2352){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5f2352);}['getRevisions'](_0x24b6d0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x24b6d0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1a55c5=this['editor'],_0x40a05c=_0x58e741(_0x1a55c5,p),_0x540c49=_0x1a55c5['plugins']['get']('RevisionTracker'),_0x6cfdfb=_0x1a55c5['plugins']['get']('Users')['users'];return _0x40a05c['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x40a05c['lazyRoots'],(_0x40a05c['plugins']['push'](_t,m,R,class extends _0x553bb9{static get['requires'](){return[m,'Users'];}['init'](){const _0x434086=this['editor']['plugins']['get']('Users');for(const _0x38cae6 of _0x6cfdfb)_0x38cae6['isAnonymous']||_0x434086['getUser'](_0x38cae6['id'])||_0x434086['addUser'](_0x38cae6);const _0x330aec=_0x540c49['repository']['getRevisions']();let _0x2073a5=null;const _0x184a8c=this['editor']['plugins']['get']('RevisionViewer');_0x184a8c['adapter']=_0x540c49['adapter'],_0x184a8c['bind']('isEnabled')['to'](_0x540c49),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1a55c5,'isReadOnly',_0x159f74=>!_0x159f74);for(const _0x383c1 of _0x330aec){const _0x49487b=null===_0x383c1['creator'];if(_0x49487b&&_0x383c1['toVersion']===_0x383c1['fromVersion'])continue;const _0x13bd44=_0x383c1['toJSON']();_0x184a8c['addRevisionData'](_0x13bd44,(_0x1d5402,_0x4e21b4,_0x1f98ce)=>{if(_0x49487b){if(_0x2073a5)_0x2073a5['_update'](_0x1d5402,_0x4e21b4);else{if(!_0x4e21b4){const _0x1a943a=_0x1f98ce['toJSON']();_0x1a943a['id']=_0x33821a(),_0x540c49['saveRevision'](_0x1a943a,_0x1f98ce['toVersion'])['then'](_0x14b827=>{_0x2073a5=_0x14b827;});}}}else _0x383c1['_update'](_0x1d5402,_0x4e21b4);});}}},d),_0x40a05c);}['_enhanceShowRevisionViewerCallback'](){const _0x4c185a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x467c04=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x32a075=this['editor']['plugins']['get']('Autosave');await _0x32a075['save']();}else await _0x467c04['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x13f100=this['editor']['plugins']['get']('Dialog');_0x13f100['isOpen']&&_0x13f100['hide']();}const _0x248d16=this['_getRevisionViewerEditorConfig']();return _0x4c185a(_0x248d16)['then'](_0x38df64=>{return(this['_viewerEditor']=_0x38df64,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'),_0x38df64);})['catch'](_0x251dc7=>(console['error'](_0x251dc7),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1a9512=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'](),_0x1a9512(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x499238=this['editor']['plugins']['get']('Annotations');_0x499238['refreshVisibility'](),_0x499238['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3e49c9){const _0x526633=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x498672=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x241e76=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x241e76,_0x3e49c9)['then'](_0x57f56e=>(_0x498672['style']['display']='block',_0x526633['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x57f56e));}['_closeRevisionViewer'](_0x1e54b7){const _0x2a451a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2a451a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1e54b7['destroy']();}async['_restoreRevision'](_0x388699){const _0x2b0a78=this['editor'],_0x53026d=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x30ab70=_0x2b0a78['plugins']['get']('RevisionTracker'),_0x583d0f=_0x2b0a78['plugins']['get']('RevisionHistoryUtils'),_0x8a0357=_0x53026d['repository']['getRevision'](_0x388699);let _0x449ef8,_0x142d3e,_0x581526;try{await _0x583d0f['loadRevisionData'](_0x8a0357,this['adapter']),_0x449ef8=_0x583d0f['getRevisionDocumentData'](_0x8a0357),_0x142d3e=_0x583d0f['getRevisionRootsAttributes'](_0x8a0357);}catch(_0x5ec563){return void console['error'](_0x5ec563);}_0x2b0a78['model']['change'](_0x57a01d=>{for(const _0x469fc2 of Array['from'](_0x2b0a78['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x57a01d['removeMarker'](_0x469fc2);}),_0x53026d['isReady']=!0x1,_0x2b0a78['model']['enqueueChange'](_0x25f771=>{_0x25f771['setSelection'](null),_0x25f771['removeSelectionAttribute'](_0x2b0a78['model']['document']['selection']['getAttributeKeys']());const _0xcb2dbc=Object['keys'](_0x449ef8);for(const _0x2a4f90 of _0x2b0a78['model']['document']['roots'])'$graveyard'!=_0x2a4f90['rootName']&&_0x2a4f90['isAttached']()&&!_0xcb2dbc['includes'](_0x2a4f90['rootName'])&&_0x25f771['detachRoot'](_0x2a4f90);for(const _0xd87cd7 of _0xcb2dbc){let _0x4e025a=_0x2b0a78['model']['document']['getRoot'](_0xd87cd7);_0x4e025a&&_0x4e025a['isAttached']()||(_0x4e025a=_0x25f771['addRoot'](_0xd87cd7));const _0x3b2600=_0x142d3e[_0xd87cd7],_0x5a581c=Object['keys'](_0x3b2600),_0x3c6ff1=_0x449ef8[_0xd87cd7];for(const _0x55a1cd of _0x4e025a['getAttributeKeys']())_0x5a581c['includes'](_0x55a1cd)||_0x25f771['removeAttribute'](_0x55a1cd,_0x4e025a);for(const _0x35a028 of _0x5a581c)_0x25f771['setAttribute'](_0x35a028,_0x142d3e[_0xd87cd7][_0x35a028],_0x4e025a);_0x25f771['remove'](_0x25f771['createRangeIn'](_0x4e025a)),_0x25f771['insert'](_0x2b0a78['data']['parse'](_0x3c6ff1,_0x4e025a),_0x4e025a,0x0);}});const _0x4e5bb9=g(_0x2b0a78['locale'],'Restored');if(_0x8a0357['name'])_0x581526=-0x1==_0x8a0357['name']['indexOf'](_0x4e5bb9)?_0x4e5bb9+':\x20'+_0x8a0357['name']:_0x8a0357['name'];else _0x581526=_0x4e5bb9+':\x20'+(_0x8a0357['createdAt']['toLocaleDateString'](_0x2b0a78['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x8a0357['createdAt']['toLocaleTimeString'](_0x2b0a78['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x30ab70['saveRevision']({'name':_0x581526}),_0x53026d['isReady']=!0x0,_0x2b0a78['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,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};