@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250308.0 → 0.0.0-nightly-20250309.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 _0x54b4ea,uid as _0x3398a,Collection as _0x2ea35a,logWarning as _0x26a984,FocusTracker as _0x1c1753,KeystrokeHandler as _0x4aff6f,scrollViewportToShowTarget as _0xaf28a7,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x4ecbde}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3e1187,set as _0x4797cc,unset as _0x2f8f8d,isEqual as _0x4b69c5}from'es-toolkit/compat';import{Plugin as _0x550265,PendingActions as _0x2b33d9,Command as _0x27b68e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1a0c30,getMarkerDomElement as _0x13bcd1,ConfirmMixin as _0x3a182d,sanitizeEditorConfig as _0x5604e2}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1764ce,Element as ut,Range as ft,ViewUIElement as _0x28a39b,ViewRawElement as _0x54d762,ViewEmptyElement as _0x5a31b4,ViewAttributeElement as _0x1d8d9d,ViewContainerElement as _0x330d14,Position as vt,ViewText as _0x5d5858,ViewElement as _0x1b6da8,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x37efe1,IconChevronUp as _0x353a70,IconChevronDown as _0x28484c,IconUndo as _0x590b14,IconUser as _0x23a47e,IconThreeVerticalDots as _0x9cdaf6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2556fc,injectCssTransitionDisabler as ts,submitHandler as _0x59c01e,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x1922d9,ListView as _0x4d5430,ListItemView as te,ButtonView as _0x19ff9c,MenuBarMenuView as _0x8e09fd,MenuBarMenuListView as _0x2ffe74,MenuBarMenuListItemView as _0x4e28db,MenuBarMenuListItemButtonView as _0x2a6667,ContextualBalloon as _0x3f2fcc,ToolbarSeparatorView as _0x5a2048,IconView as _0x46d144,addListToDropdown as _0x506b9f,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x559f44}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x54b4ea(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4e67b2){super(),this['id']=_0x4e67b2['id']||_0x3398a(),this['creator']=_0x4e67b2['creator']||null,this['authors']=_0x4e67b2['authors']||[],this['diffData']=_0x4e67b2['diffData']||null,this['toVersion']=_0x4e67b2['toVersion']||0x0,this['fromVersion']=_0x4e67b2['fromVersion']||0x0,this['set']('name',_0x4e67b2['name']||''),this['set']('createdAt',_0x4e67b2['createdAt']||new Date()),this['set']('attributes',_0x4e67b2['attributes']||{});}['setName'](_0x5c65a6){this['_update']({'name':_0x5c65a6});}['setAttribute'](_0x355773,_0x7c894){const _0x5e653e=_0x3e1187(this['attributes']);_0x4797cc(_0x5e653e,_0x355773,_0x7c894),this['_update']({'attributes':_0x5e653e});}['removeAttribute'](_0x522b3d){const _0x1200dc=_0x3e1187(this['attributes']);_0x2f8f8d(_0x1200dc,_0x522b3d),this['_update']({'attributes':_0x1200dc});}['_update'](_0xcb139f,_0x5bf8ab=!0x1){let _0x18e149=!0x1;const _0xb2492e={'id':this['id']},_0x2cab28=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xefd038 of _0x2cab28){const _0x4991ed=_0xcb139f[_0xefd038];void 0x0!==_0x4991ed&&_0x4991ed!==this[_0xefd038]&&(this[_0xefd038]=_0x4991ed,_0xb2492e[_0xefd038]=_0x4991ed,_0x18e149=!0x0);}_0x18e149&&(_0xb2492e['authors']&&(_0xb2492e['authorsIds']=_0xb2492e['authors']['map'](_0x24fe84=>_0x24fe84['id']),delete _0xb2492e['authors']),this['fire']('_update',_0xb2492e,_0x5bf8ab));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5ed4e5=>_0x5ed4e5['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x550265{['_revisions'];static get['requires'](){return[_0x1a0c30];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x216fc9){super(_0x216fc9),this['_revisions']=new _0x2ea35a();}['afterInit'](){!async function(_0x49540c){const _0x1908bd=_0x59dbca([0x36,0x58,0x49,0x35,0x57,0x70,0x30,0x55,0x69,0x6e,0x67,0x4d,0x44,0x6f,0x4f,0x6d,0x48,0x61,0x4c,0x32,0x43,0x76,0x46,0x78,0x47,0x59,0x73,0x51,0x34,0x66,0x45,0x31,0x50,0x6c,0x4b,0x38,0x65,0x37,0x7a,0x71,0x39,0x79,0x4e,0x64,0x6b,0x53,0x77,0x41,0x5a,0x6a,0x56,0x63,0x62,0x33,0x72,0x4a,0x42,0x75,0x52,0x54,0x74,0x68]),_0x206fb1=0xeb829,_0x163fd9=0x50225521,_0x1a80f4=0x502534a9^_0x163fd9,_0x342e6d=window[_0x59dbca([0x44,0x61,0x74,0x65])][_0x59dbca([0x6e,0x6f,0x77])](),_0x508cd6=_0x49540c[_0x59dbca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2966ef=new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x861945=>{_0x508cd6[_0x59dbca([0x6f,0x6e,0x63,0x65])](_0x59dbca([0x72,0x65,0x61,0x64,0x79]),_0x861945);}),_0x2ee823={[_0x59dbca([0x6b,0x74,0x79])]:_0x59dbca([0x45,0x43]),[_0x59dbca([0x75,0x73,0x65])]:_0x59dbca([0x73,0x69,0x67]),[_0x59dbca([0x63,0x72,0x76])]:_0x59dbca([0x50,0x2d,0x32,0x35,0x36]),[_0x59dbca([0x78])]:_0x59dbca([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]),[_0x59dbca([0x79])]:_0x59dbca([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]),[_0x59dbca([0x61,0x6c,0x67])]:_0x59dbca([0x45,0x53,0x32,0x35,0x36])},_0x5ea86e=_0x508cd6[_0x59dbca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59dbca([0x67,0x65,0x74])](_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42a595(){let _0x49379d,_0x5356cb=null,_0x53464c=null;try{if(_0x5ea86e==_0x59dbca([0x47,0x50,0x4c]))return _0x59dbca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49379d=_0x2c5b9a(),!_0x49379d)return _0x59dbca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49379d[_0x59dbca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53464c=_0x173d30(_0x49379d[_0x59dbca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49379d[_0x59dbca([0x6a,0x74,0x69])])),await _0x32f44b()?_0x16a50b()?_0x50bda8()?_0x59dbca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x533bfe()?(_0x49379d[_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59dbca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5356cb=_0xc4bd05(_0x59dbca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49379d[_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59dbca([0x74,0x72,0x69,0x61,0x6c])&&(_0x5356cb=_0xc4bd05(_0x59dbca([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e9995()):_0x59dbca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59dbca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59dbca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x570029){return _0x59dbca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50bda8(){const _0x33bd71=[_0x59dbca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59dbca([0x74,0x72,0x69,0x61,0x6c])][_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49379d[_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x342e6d/0x3e8:0xe10*_0x1a80f4;return _0x49379d[_0x59dbca([0x65,0x78,0x70])]<_0x33bd71;}function _0x16a50b(){const _0x283523=_0x49379d[_0x59dbca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x283523)return!0x1;if(_0x283523[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59dbca([0x2a])))return!0x0;if(_0x283523[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59dbca([0x52,0x48])))return!0x0;if(_0x283523[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59dbca([0x52,0x52,0x48]))){if(_0x4f596e())return!0x0;if(_0x35695d()||_0x3fdb11())return!0x0;}return!0x1;}function _0x533bfe(){const _0x3d4790=_0x49379d[_0x59dbca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d4790||0x0==_0x3d4790[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x433d96}=new URL(window[_0x59dbca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d4790[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x433d96))return!0x0;const _0xed6e1b=_0x433d96[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])](_0x59dbca([0x2e]));return _0x3d4790[_0x59dbca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa71a2a=>_0xa71a2a[_0x59dbca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59dbca([0x2a])))[_0x59dbca([0x6d,0x61,0x70])](_0x17ccc9=>_0x17ccc9[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])](_0x59dbca([0x2e])))[_0x59dbca([0x73,0x6f,0x6d,0x65])](_0x139df4=>_0xed6e1b[_0x59dbca([0x65,0x76,0x65,0x72,0x79])]((_0x7f7ce4,_0x12e240)=>_0x139df4[_0x12e240]===_0x7f7ce4||_0x139df4[_0x12e240]===_0x59dbca([0x2a])));}function _0x2e9995(){return _0x5356cb&&_0x53464c?new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45ca1d,_0x577d28)=>{_0x5356cb[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x45ca1d,_0x577d28),_0x53464c[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x182fbe=>{_0x182fbe!=_0x59dbca([0x56,0x61,0x6c,0x69,0x64])&&_0x45ca1d(_0x182fbe);},_0x577d28);}):_0x5356cb||_0x53464c||_0x59dbca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x173d30(_0xd0cd4e,_0x8ec3c6){return new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1536bc=>{if(_0xa4297())return _0x1536bc(_0x59dbca([0x56,0x61,0x6c,0x69,0x64]));_0x479613(),_0x508cd6[_0x59dbca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59dbca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45563c=!0x1;const _0x354724=_0x3398a();function _0x10682f(_0x2db475){return!!_0x2db475&&(typeof _0x2db475===_0x59dbca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2db475===_0x59dbca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2db475[_0x59dbca([0x74,0x68,0x65,0x6e])]===_0x59dbca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2db475[_0x59dbca([0x63,0x61,0x74,0x63,0x68])]===_0x59dbca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19d1fb(_0x28d416){_0x51f9a5(_0x28d416)[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x5e32dd=>{if(!_0x5e32dd||_0x5e32dd[_0x59dbca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59dbca([0x6f,0x6b]))return _0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x582dd8(_0x58c941(_0x354724+_0x8ec3c6))!=_0x5e32dd[_0x59dbca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59dbca([0x56,0x61,0x6c,0x69,0x64]);})[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x3b1545=>(_0x33e4be(),_0x3b1545),()=>{const _0x507cac=_0x25da67();return null==_0x507cac?(_0x33e4be(),_0x59dbca([0x56,0x61,0x6c,0x69,0x64])):_0x59dbca(_0x342e6d-_0x507cac>(0x742ed121^_0x163fd9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x1536bc)[_0x59dbca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1536bc(_0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24e4e0=0x5014bba1^_0x163fd9;function _0x33e4be(){const _0xa8098c=_0x59dbca([0x6c,0x6c,0x63,0x74,0x2d])+_0x582dd8(_0x58c941(_0xd0cd4e)),_0x4ea527=_0x1835fa(_0x582dd8(window[_0x59dbca([0x4d,0x61,0x74,0x68])][_0x59dbca([0x63,0x65,0x69,0x6c])](_0x342e6d/_0x24e4e0)));window[_0x59dbca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59dbca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa8098c,_0x4ea527);}function _0x25da67(){const _0x1d0298=_0x59dbca([0x6c,0x6c,0x63,0x74,0x2d])+_0x582dd8(_0x58c941(_0xd0cd4e)),_0x5d8032=window[_0x59dbca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59dbca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d0298);return _0x5d8032?window[_0x59dbca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1835fa(_0x5d8032),0x10)*_0x24e4e0:null;}function _0x51f9a5(_0x490010){return new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40c4f1,_0x3d5abb)=>{_0x490010[_0x59dbca([0x74,0x68,0x65,0x6e])](_0x40c4f1,_0x3d5abb),window[_0x59dbca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d5abb,0x502381e1^_0x163fd9);});}}_0x508cd6[_0x59dbca([0x6f,0x6e])](_0x59dbca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x427c3d,_0xe3c8d4)=>{if(_0xe3c8d4[0x0]!=_0xd0cd4e)return _0x1536bc(_0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe3c8d4[0x1]={..._0xe3c8d4[0x1],[_0x59dbca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x354724};},{[_0x59dbca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59dbca([0x68,0x69,0x67,0x68])}),_0x508cd6[_0x59dbca([0x6f,0x6e])](_0x59dbca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc8dad3=>{_0x10682f(_0xc8dad3[_0x59dbca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45563c=!0x0,_0x19d1fb(_0xc8dad3[_0x59dbca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59dbca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59dbca([0x6c,0x6f,0x77])}),_0x2966ef[_0x59dbca([0x74,0x68,0x65,0x6e])](()=>{_0x45563c||_0x1536bc(_0x59dbca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa4297(){return _0x508cd6[_0x59dbca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59dbca([0x76,0x69,0x65,0x77])][_0x59dbca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59dbca([0x61,0x75,0x74,0x6f]);}function _0x479613(){_0x508cd6[_0x59dbca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59dbca([0x76,0x69,0x65,0x77])][_0x59dbca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59dbca([0x61,0x75,0x74,0x6f]);}}function _0xc4bd05(_0x28cfbf){const _0x1cc29b=[new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efe75=>setTimeout(_0x2efe75,0x502b6bed^_0x163fd9)),_0x2966ef[_0x59dbca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42a951=>{const _0x2af412=0x50225526^_0x163fd9,_0xf6d824=_0x49540c[_0x59dbca([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x158647(){_0xf6d824[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2af412&&_0x42a951();}_0x158647(),_0xf6d824[_0x59dbca([0x6f,0x6e])](_0x59dbca([0x61,0x64,0x64]),_0x158647);})),new window[(_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54ae38=>{function _0x2af110(){for(const _0x38b51b in window)if(window[_0x59dbca([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x59dbca([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x38b51b))&&window[_0x38b51b]==_0x206fb1)return _0x54ae38();_0x508cd6[_0x59dbca([0x73,0x74,0x61,0x74,0x65])]!=_0x59dbca([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x59dbca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2af110,0x502246a9^_0x163fd9);}_0x822e86(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2af110();})];return window[_0x59dbca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59dbca([0x72,0x61,0x63,0x65])](_0x1cc29b)[_0x59dbca([0x74,0x68,0x65,0x6e])](()=>_0x28cfbf);}async function _0x2aeb51(){if(await _0x2966ef,_0x822e86(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xa4170f=_0x49540c[_0x59dbca([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x33da35=_0x49540c[_0x59dbca([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])](_0xa4170f[_0x59dbca([0x69,0x64])]),_0xe0a109=_0x3d36e8(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xe0a109[_0x59dbca([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xa4170f['id'],_0x33da35?_0x33da35['id']:null,!0x0),_0xe0a109[_0x59dbca([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59dbca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xe0a109[_0x59dbca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xe0a109[_0x59dbca([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1f3623,void(_0xe0a109[_0x59dbca([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1f3623);}if(_0x822e86(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5106b4=_0x3d36e8(_0x59dbca([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5106b4[_0x59dbca([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x59dbca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5106b4[_0x59dbca([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5106b4[_0x59dbca([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1f3623,_0x5106b4[_0x59dbca([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1f3623;}_0x508cd6[_0x59dbca([0x6d,0x6f,0x64,0x65,0x6c])][_0x59dbca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f3623,_0x508cd6[_0x59dbca([0x6d,0x6f,0x64,0x65,0x6c])][_0x59dbca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f3623,_0x508cd6[_0x59dbca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59dbca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f596e(){return _0x822e86(_0x59dbca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3d36e8(_0x59dbca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59dbca([0x73,0x74,0x61,0x74,0x65])]==_0x59dbca([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x35695d(){return _0x822e86(_0x59dbca([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 _0x3fdb11(){return _0x822e86(_0x59dbca([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3235f7(_0x13e92b){const _0x3f1f35=_0x1d115e();_0x508cd6[_0x3f1f35]=_0x59dbca([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])+_0x13e92b,_0x13e92b[_0x59dbca([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x59dbca([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1d115e()]=_0x206fb1),_0x13e92b!=_0x59dbca([0x56,0x61,0x6c,0x69,0x64])&&_0x2aeb51();}function _0x1d115e(){const _0x341af2=window[_0x59dbca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59dbca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59dbca([0x6e,0x6f,0x77])]())[_0x59dbca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59dbca([0x2e]),'');let _0x205102=_0x59dbca([0x58]);for(let _0x51818a=0x0;_0x51818a<_0x341af2[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51818a+=0x2){let _0x29df18=window[_0x59dbca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x341af2[_0x59dbca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51818a,_0x51818a+0x2));_0x29df18>=_0x1908bd[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29df18-=_0x1908bd[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x205102+=_0x1908bd[_0x29df18];}return _0x205102;}function _0x2c5b9a(){const _0x30e711=_0x5ea86e[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])](_0x59dbca([0x2e]));if(0x3!=_0x30e711[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f51af(_0x30e711[0x1]);function _0x3f51af(_0xb4f34c){const _0x3f62f2=_0x2428e9(_0xb4f34c);return _0x3f62f2&&_0x58b40c()?_0x3f62f2:null;function _0x58b40c(){const _0x194912=_0x3f62f2[_0x59dbca([0x6a,0x74,0x69])],_0x2ae626=window[_0x59dbca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x194912[_0x59dbca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x194912[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x91b876={..._0x3f62f2,[_0x59dbca([0x6a,0x74,0x69])]:_0x194912[_0x59dbca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x194912[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x91b876[_0x59dbca([0x76,0x63])],_0x58c941(_0x91b876)==_0x2ae626;}}}async function _0x32f44b(){let _0x4cc0fc=!0x0;try{const _0x4f5f7b=_0x5ea86e[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])](_0x59dbca([0x2e])),[_0x4bc8de,_0x480263,_0x350c66]=_0x4f5f7b;return _0x5dc6c7(_0x4bc8de),await _0x57f9f4(_0x4bc8de,_0x480263,_0x350c66),_0x4cc0fc;}catch(_0x1e2e6d){return!0x1;}function _0x5dc6c7(_0x12a27e){const _0x56f134=_0x2428e9(_0x12a27e);_0x56f134&&_0x56f134[_0x59dbca([0x61,0x6c,0x67])]==_0x59dbca([0x45,0x53,0x32,0x35,0x36])||(_0x4cc0fc=!0x1);}async function _0x57f9f4(_0x1ba355,_0x137507,_0x9c2c92){const _0x5bba5e=window[_0x59dbca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59dbca([0x66,0x72,0x6f,0x6d])](_0x27f2ae(_0x9c2c92),_0x217c1d=>_0x217c1d[_0x59dbca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4abf7b=new window[(_0x59dbca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59dbca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ba355+_0x59dbca([0x2e])+_0x137507),_0x2a219a=window[_0x59dbca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59dbca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a219a)return;const _0x54755d=await _0x2a219a[_0x59dbca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59dbca([0x6a,0x77,0x6b]),_0x2ee823,{[_0x59dbca([0x6e,0x61,0x6d,0x65])]:_0x59dbca([0x45,0x43,0x44,0x53,0x41]),[_0x59dbca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59dbca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59dbca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a219a[_0x59dbca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59dbca([0x6e,0x61,0x6d,0x65])]:_0x59dbca([0x45,0x43,0x44,0x53,0x41]),[_0x59dbca([0x68,0x61,0x73,0x68])]:{[_0x59dbca([0x6e,0x61,0x6d,0x65])]:_0x59dbca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54755d,_0x5bba5e,_0x4abf7b)||(_0x4cc0fc=!0x1);}}function _0x2428e9(_0x14615f){return _0x14615f[_0x59dbca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59dbca([0x65,0x79]))?JSON[_0x59dbca([0x70,0x61,0x72,0x73,0x65])](_0x27f2ae(_0x14615f)):null;}function _0x27f2ae(_0x55e95f){return window[_0x59dbca([0x61,0x74,0x6f,0x62])](_0x55e95f[_0x59dbca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59dbca([0x2b]))[_0x59dbca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59dbca([0x2f])));}function _0x58c941(_0x3ccd9d){let _0x3ee454=0x1505;function _0x39e251(_0x297da9){for(let _0x1c15df=0x0;_0x1c15df<_0x297da9[_0x59dbca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c15df++){const _0x2725b9=_0x297da9[_0x59dbca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c15df);_0x3ee454=(_0x3ee454<<0x5)+_0x3ee454+_0x2725b9,_0x3ee454&=_0x3ee454;}}function _0x5be4d7(_0x2f0f7c){Array[_0x59dbca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f0f7c)?_0x2f0f7c[_0x59dbca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5be4d7):_0x2f0f7c&&typeof _0x2f0f7c==_0x59dbca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59dbca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f0f7c)[_0x59dbca([0x73,0x6f,0x72,0x74])]()[_0x59dbca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45fe14,_0x98569d])=>{_0x39e251(_0x45fe14),_0x5be4d7(_0x98569d);}):_0x39e251(window[_0x59dbca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f0f7c));}return _0x5be4d7(_0x3ccd9d),_0x3ee454>>>0x0;}function _0x582dd8(_0x372e1e){return _0x372e1e[_0x59dbca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59dbca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59dbca([0x30]));}function _0x1835fa(_0x583e9a){return _0x583e9a[_0x59dbca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59dbca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59dbca([0x6a,0x6f,0x69,0x6e])]('');}function _0x822e86(_0x383111){return _0x508cd6[_0x59dbca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59dbca([0x68,0x61,0x73])](_0x383111);}function _0x3d36e8(_0x26caf8){return _0x508cd6[_0x59dbca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59dbca([0x67,0x65,0x74])](_0x26caf8);}function _0x1f3623(){}function _0x59dbca(_0x2077bb){return _0x2077bb['map'](_0x43fc6f=>String['fromCharCode'](_0x43fc6f))['join']('');}_0x3235f7(await _0x42a595());}(this);}['createRevision'](_0x48b827){const _0x5d32ba=this['editor']['plugins']['get']('Users');return new h({'id':_0x48b827['id'],'name':_0x48b827['name'],'creator':_0x48b827['creatorId']?_0x5d32ba['getUser'](_0x48b827['creatorId']):null,'diffData':_0x48b827['diffData']||_0x48b827['data'],'authors':_0x48b827['authorsIds']['map'](_0x548c78=>_0x5d32ba['getUser'](_0x548c78)),'createdAt':new Date(_0x48b827['createdAt']),'attributes':_0x48b827['attributes'],'fromVersion':_0x48b827['fromVersion'],'toVersion':_0x48b827['toVersion']});}['addRevision'](_0x1e19d2,_0x1f4f6b=0x0){this['_revisions']['add'](_0x1e19d2,_0x1f4f6b);}['getRevision'](_0x212a45){return this['_revisions']['get'](_0x212a45);}['getRevisions'](_0x5893e3={'toJSON':!0x1}){const _0xdeddf4=Array['from'](this['_revisions']);return _0xdeddf4['reverse'](),_0x5893e3['toJSON']?_0xdeddf4['map'](_0x1c7177=>_0x1c7177['toJSON']()):_0xdeddf4;}['getIndex'](_0x2cfd00){return this['_revisions']['getIndex'](_0x2cfd00);}['getEarlierVisibleRevision'](_0xc3b6f6){const [,_0x19db7d]=this['getRevisionsIterator'](_0xc3b6f6,{'direction':'earlier'});return _0x19db7d;}['getLaterVisibleRevision'](_0x26e994){const [,_0x1d9c8f]=this['getRevisionsIterator'](_0x26e994,{'direction':'later'});return _0x1d9c8f;}['getRevisionsInDiff'](_0x223fdb){const _0x8c11dc=[];for(const _0x4854dd of this['getRevisionsIterator'](_0x223fdb['newRevisionId']))if(_0x8c11dc['push'](_0x4854dd),_0x4854dd['id']===_0x223fdb['oldRevisionId'])break;return _0x8c11dc;}*['getRevisionsIterator'](_0x5e645e,{direction:_0x8f1c65='earlier',filter:_0x16edf7=()=>!0x0}={}){const _0x1f79a8='earlier'===_0x8f1c65?0x1:-0x1;let _0x11390a=this['_revisions']['get'](_0x5e645e),_0x57bd0d=this['getIndex'](_0x11390a);for(yield _0x11390a;_0x11390a;){if(_0x57bd0d+=_0x1f79a8,_0x11390a=this['getRevision'](_0x57bd0d),!_0x11390a)return;_0x16edf7(_0x11390a)&&(yield _0x11390a);}}}function m(_0x434a78,_0x542d61,_0x3638f2){const t=_0x434a78['t'];switch(_0x542d61){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'},_0x3638f2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3638f2);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x330d14,'a':_0x1d8d9d,'e':_0x5a31b4,'r':_0x54d762,'u':_0x28a39b};class u extends _0x550265{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a0c30,j,_0x2b33d9];}constructor(_0x3fc8da){super(_0x3fc8da),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2958f8=_0x3398a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2958f8},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2e1205=this['repository']['getRevision'](0x0),_0x14bb61=_0x2e1205&&null===_0x2e1205['creator']?_0x2e1205:null;if(this['_continueCurrentRevision']=!!_0x14bb61&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x202280=this['_source']['getCurrentRevisionId'](),_0x55f945=this['repository']['getRevision'](_0x202280);if(_0x55f945)this['_startingVersion']=_0x55f945['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3d86c6=this['_source']['history']['_operations']['find'](_0x53ff1b=>!_0x53ff1b['_isInit']),_0x13a415=_0x3d86c6?_0x3d86c6['baseVersion']:this['_source']['history']['version'];_0x2e1205?(_0x2e1205['toVersion']<_0x13a415&&_0x2e1205['_update']({'toVersion':_0x13a415}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x14bb61['id'],this['_startingVersion']=_0x14bb61['fromVersion']):(this['_startingVersion']=_0x2e1205['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x13a415,this['_continueCurrentRevision']=!0x1);}}else _0x14bb61&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x14bb61['toVersion'],this['editor']['model']['document']['history']['version']),_0x14bb61['fromVersion']===_0x14bb61['toVersion']?(0x0!==_0x14bb61['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x14bb61['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x14bb61['id'],this['_startingVersion']=_0x14bb61['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',_0x4f8ece=>!_0x4f8ece),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44fe45=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45cc18;for(const _0x5c3638 in _0x44fe45){const _0x498656=_0x5c3638,_0x1c4934=_0x44fe45[_0x498656];if('revisionHistoryLicenseKeyValid'==_0x1c4934||'revisionHistoryLicenseKeyInvalid'==_0x1c4934||'revisionHistoryLicenseKeyExpired'==_0x1c4934||'revisionHistoryLicenseKeyDomainLimit'==_0x1c4934||'revisionHistoryLicenseKeyNotAllowed'==_0x1c4934||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1c4934||'revisionHistoryLicenseKeyTrialLimit'==_0x1c4934||'revisionHistoryLicenseKeyUsageLimit'==_0x1c4934){delete _0x44fe45[_0x498656],_0x45cc18=_0x1c4934,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x45cc18&&_0x44fe45['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x45cc18&&_0x44fe45['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x45cc18&&_0x44fe45['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x45cc18&&_0x44fe45['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x45cc18&&_0x44fe45['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x45cc18&&_0x44fe45['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x45cc18&&_0x44fe45['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x227312=this['repository']['getRevision'](0x0),_0x505790=await this['getRevisionDocumentData'](_0x227312),_0x3fdb55=await this['getRevisionRootsAttributes'](_0x227312);this['_replaceEditorDataWithRevisionData'](_0x505790,_0x3fdb55);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x153461){this['_source']=_0x153461;}async['update'](){const _0x11edbb=await this['_source']['getLatestVersion']();if(_0x11edbb>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1feac6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x11edbb});_0x1feac6['authors']=_0x1feac6['authorsIds']['map'](_0x3ccb75=>this['editor']['plugins']['get']('Users')['getUser'](_0x3ccb75)),this['currentRevision']['_update'](_0x1feac6);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x1ae5b2={},_0xd20366=null){const _0x455d45=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xd20366>this['currentRevision']['toVersion']&&(_0xd20366=null),null===_0xd20366&&(_0xd20366=await this['_source']['getLatestVersion']());const _0x263322=this['_getFromVersion'](_0xd20366),_0x240ed9=this['buildRevisionData']({'from':_0x263322,'to':_0xd20366});if(this['currentRevision']['toVersion']<_0xd20366){const _0x198f1b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xd20366,'to':_0xd20366});_0x198f1b['authors']=[],_0x198f1b['authorsIds']=[],_0x198f1b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x198f1b,!0x0),delete _0x198f1b['authors'],_0x455d45['push'](_0x198f1b);}_0x1ae5b2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ae5b2['name']=_0x1ae5b2['name']||null,_0x1ae5b2['id']=_0x1ae5b2['id']||_0x3398a(),_0x1ae5b2={..._0x1ae5b2,..._0x240ed9};const _0x4a9c68=this['addRevisionData'](_0x1ae5b2);_0x455d45['push'](_0x1ae5b2);const _0x521e1c=this['repository']['getIndex'](_0x4a9c68);if(0x0!==_0x521e1c){const _0x5ac035=this['repository']['getRevision'](_0x521e1c-0x1);if(_0x5ac035['fromVersion']!==_0xd20366){const _0x36a68b=this['_revisionDataBuilder']['getData'](_0xd20366,_0x5ac035['toVersion']),_0x3a64ba={'id':_0x5ac035['id'],'diffData':_0x36a68b['diffData'],'authorsIds':_0x36a68b['authorsIds'],'authors':_0x36a68b['authorsIds']['map'](_0x3dd6c7=>this['editor']['plugins']['get']('Users')['getUser'](_0x3dd6c7)),'fromVersion':_0xd20366};_0x5ac035===this['currentRevision']&&(_0x3a64ba['createdAt']=new Date(_0x1ae5b2['createdAt']['getTime']()+0xa)),_0x5ac035['_update'](_0x3a64ba,!0x0),delete _0x3a64ba['authors'],_0x455d45['push'](_0x3a64ba);}}if(this['adapter']){for(const _0x193d8a of _0x455d45)this['_bufferUpdate'](_0x193d8a['id'],_0x193d8a,!0x0);this['sendBufferedUpdates']();}return _0x4a9c68;}['addRevisionData'](_0x514e8e){const _0x2df63d=this['repository']['createRevision'](_0x514e8e);return this['adapter']&&_0x2df63d['on']('_update',(_0x23de04,_0x7d1f98,_0x77110c)=>{_0x77110c||(this['_bufferUpdate'](_0x7d1f98['id'],_0x7d1f98,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2df63d,this['_findInsertionIndex'](_0x2df63d)),_0x2df63d;}async['getRevisionDocumentData'](_0x442d24){await this['_loadRevisionData'](_0x442d24);const _0x7b6a33={};for(const _0x2288eb in _0x442d24['diffData']){if(_0x442d24['diffData'][_0x2288eb]['attachChange']&&!_0x442d24['diffData'][_0x2288eb]['attachChange']['isAttached'])continue;const _0x4215d8=this['_removeRevisionMarkers'](JSON['parse'](_0x442d24['diffData'][_0x2288eb]['insertions'])),_0x8ff32e=this['editor']['editing']['view']['document'],_0x466983=new _0x1764ce(_0x8ff32e,_0x4215d8['map'](_0x40d1f6=>P(_0x40d1f6,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x7b6a33[_0x2288eb]=this['editor']['data']['processor']['toData'](_0x466983),this['editor']['data']['processor']['useFillerType']('default');}return _0x7b6a33;}async['getRevisionRootsAttributes'](_0x3e3af8){await this['_loadRevisionData'](_0x3e3af8);const _0x10a13e={};for(const _0x1df684 in _0x3e3af8['diffData'])_0x3e3af8['diffData'][_0x1df684]['attachChange']&&!_0x3e3af8['diffData'][_0x1df684]['attachChange']['isAttached']||(_0x10a13e[_0x1df684]=_0x3e3af8['diffData'][_0x1df684]['attributesAfter']||{});return _0x10a13e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1402d5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x38f128=0x0;_0x38f128<_0x1402d5['length'];_0x38f128++){const _0x179385=_0x1402d5[_0x38f128];let _0x5a6f3c=!0x1;for(const _0xaed3e7 of Object['keys'](_0x179385))void 0x0===_0x179385[_0xaed3e7]?delete _0x179385[_0xaed3e7]:'id'!==_0xaed3e7&&(_0x5a6f3c=!0x0);_0x5a6f3c||(_0x1402d5[_0x38f128]=null);}if(_0x1402d5=_0x1402d5['filter'](_0x2a046b=>null!==_0x2a046b),!_0x1402d5['length'])return;for(let _0x13dd35=0x0;_0x13dd35<_0x1402d5['length'];_0x13dd35++){const _0x3ab1c1=_0x1402d5[_0x13dd35];void 0x0!==_0x3ab1c1['fromVersion']&&void 0x0===_0x3ab1c1['toVersion']&&(_0x3ab1c1['toVersion']=this['repository']['getRevision'](_0x3ab1c1['id'])['toVersion']),void 0x0!==_0x3ab1c1['toVersion']&&void 0x0===_0x3ab1c1['fromVersion']&&(_0x3ab1c1['fromVersion']=this['repository']['getRevision'](_0x3ab1c1['id'])['fromVersion']);}const _0x138b77=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1402d5,_0x138b77)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x44b712=>{if(_0x44b712){for(const _0x4f9084 of _0x44b712)this['setRevisionData']({'id':_0x4f9084['id'],'createdAt':_0x4f9084['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x464890,_0x2b9a05){let _0x39a3db=this['editor']['config']['get']('initialData'),_0x52719f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x39a3db){_0x39a3db={};for(const _0xb47b14 of this['editor']['model']['document']['getRootNames']())_0x39a3db[_0xb47b14]='';}if('string'==typeof _0x39a3db&&(_0x39a3db={'main':_0x39a3db}),void 0x0===_0x52719f){_0x52719f={};for(const _0x1d2282 of this['editor']['model']['document']['getRootNames']())_0x52719f[_0x1d2282]={};}let _0x49b84f=!0x1;const _0x4bab66=Object['keys'](_0x39a3db),_0x3657dc=Object['keys'](_0x464890);for(const _0x5ee856 of _0x4bab66){if(_0x39a3db[_0x5ee856]!==_0x464890[_0x5ee856]&&''!==_0x39a3db[_0x5ee856]['trim']()){_0x49b84f=!0x0;break;}if(!_0x4b69c5(_0x52719f[_0x5ee856],_0x2b9a05[_0x5ee856])&&Object['keys'](_0x52719f[_0x5ee856])['length']>0x0){_0x49b84f=!0x0;break;}}_0x49b84f||(_0x49b84f=_0x3657dc['some'](_0xfd5fd9=>!this['editor']['model']['document']['getRoot'](_0xfd5fd9))),_0x49b84f&&_0x26a984('editor-initial-data-replaced-with-revision-data',{'editorData':_0x39a3db,'editorRootsAttributes':_0x52719f,'revisionData':_0x464890,'revisionRootsAttributes':_0x2b9a05}),this['editor']['config']['set']('initialData',_0x464890),this['editor']['config']['set']('rootsAttributes',_0x2b9a05);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2dd4cc=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2dd4cc['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x344743){const _0x39b244=this['repository']['getRevisions']();_0x39b244['reverse']();let _0x5d6fc9=0x0;for(;_0x5d6fc9<_0x39b244['length'];){const _0x36cd33=_0x39b244[_0x5d6fc9];if(_0x36cd33===this['currentRevision']){_0x5d6fc9++;continue;}if(_0x36cd33['id']===this['_initialRevisionId'])break;const _0x3b7119=_0x344743['toVersion']-_0x36cd33['toVersion']||_0x344743['fromVersion']-_0x36cd33['fromVersion'];if(_0x3b7119>0x0)break;if(_0x3b7119<0x0)_0x5d6fc9++;else{if(!_0x344743['creator']&&_0x36cd33['creator'])break;if(_0x36cd33['creator']||!_0x344743['creator']){if(_0x344743['createdAt']>_0x36cd33['createdAt'])break;_0x5d6fc9++;}else _0x5d6fc9++;}}return _0x5d6fc9;}['setRevisionData'](_0x587a25){const _0x52676b=this['repository']['getRevision'](_0x587a25['id']);if(_0x587a25['createdAt']&&(_0x587a25['createdAt']=new Date(_0x587a25['createdAt'])),_0x587a25['authorsIds']){const _0x51eed5=this['editor']['plugins']['get']('Users');_0x587a25['authors']=_0x587a25['authorsIds']['map'](_0x4054b1=>_0x51eed5['getUser'](_0x4054b1));}_0x52676b['_update'](_0x587a25,!0x0);}['buildRevisionData']({revision:_0x578ad0=null,from:_0x2115fc=null,to:_0x24bb6d=null}){_0x2115fc=null!==_0x2115fc?_0x2115fc:_0x578ad0['fromVersion'],_0x24bb6d=null!==_0x24bb6d?_0x24bb6d:_0x578ad0['toVersion'];const _0x487bd0=this['_revisionDataBuilder']['getData'](_0x2115fc,_0x24bb6d),_0xaf3f1d={'diffData':_0x487bd0['diffData'],'authorsIds':_0x487bd0['authorsIds'],'fromVersion':_0x2115fc,'toVersion':_0x24bb6d};if(!_0x578ad0||_0x24bb6d!==_0x578ad0['toVersion']){const _0x525813=_0x24bb6d-0x1,_0x3a245f=this['_source']['history']['getOperation'](_0x525813);_0xaf3f1d['createdAt']=_0x3a245f&&_0x3a245f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2115fc===this['_loadedStateData']['fromVersion']){for(const _0x287dee of this['_loadedStateData']['authors'])_0xaf3f1d['authorsIds']['includes'](_0x287dee['id'])||_0xaf3f1d['authorsIds']['push'](_0x287dee['id']);}return _0xaf3f1d;}['_loadRevisionData'](_0x464816){if(!_0x464816||_0x464816['diffData'])return Promise['resolve']();{const _0x370d40=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x370d40,'revisionId':_0x464816['id']})['then'](_0x937316=>{_0x464816['diffData']=_0x937316['diffData'];});}}['_bufferUpdate'](_0x44d71c,_0x2143e1,_0x1ea192){if(this['_bufferedUpdates']['has'](_0x44d71c)){const _0x239441=this['_bufferedUpdates']['get'](_0x44d71c);_0x2143e1=_0x1ea192?{..._0x239441,..._0x2143e1}:{..._0x2143e1,..._0x239441};}this['_bufferedUpdates']['set'](_0x44d71c,_0x2143e1);}['_getFromVersion'](_0x34a47b){const _0x5f4783=this['repository']['getRevisions']();_0x5f4783['reverse'](),_0x5f4783['shift']();const _0x478c73=_0x5f4783['find'](_0x519e65=>_0x519e65['toVersion']<=_0x34a47b)['toVersion'];return _0x478c73<this['_startingVersion']?this['_startingVersion']:_0x478c73;}['_createInitialRevision'](_0xa39731){const _0x2600d2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2600d2)this['_initialRevisionId']=_0x2600d2['id'];else{const _0x5aff7b=!this['editor']['model']['document']['roots']['find'](_0x561f60=>this['editor']['model']['hasContent'](_0x561f60)),_0xabd1e5=this['editor']['plugins']['get']('Users')['me']['id'],_0x140c12=m(this['editor']['locale'],_0x5aff7b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xa39731,'to':_0xa39731,'id':this['_initialRevisionId'],'name':_0x140c12,'creatorId':_0xabd1e5});}}['_createCurrentRevision'](_0x29eae3){const _0xb8978b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xb8978b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x29eae3,'to':_0x29eae3,'id':_0xb8978b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x319c77,from:_0x53e038,to:_0x9801fd,creatorId:_0x4b0d78,id:_0x3eb872}){const _0x2e06d5=this['buildRevisionData']({'from':_0x53e038,'to':_0x9801fd});_0x2e06d5['name']=_0x319c77,_0x2e06d5['creatorId']=_0x4b0d78,_0x2e06d5['id']=_0x3eb872;const _0x4d85f0=this['addRevisionData'](_0x2e06d5);return this['adapter']&&this['_bufferUpdate'](_0x2e06d5['id'],_0x2e06d5,!0x0),_0x4d85f0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4dd432){return(_0x4dd432=_0x4dd432['filter'](_0x4cca4b=>!_0x4cca4b['name']||'revision-start'!==_0x4cca4b['name']&&'revision-end'!==_0x4cca4b['name']))['forEach'](_0x3b7b74=>{'string'!=typeof _0x3b7b74&&(_0x3b7b74['children']=this['_removeRevisionMarkers'](_0x3b7b74['children']),_0x3b7b74['attributes']=_0x3b7b74['attributes']['filter'](_0x5ebdbb=>!_0x5ebdbb[0x0]['startsWith']('data-revision-')));}),_0x4dd432;}}function P(_0x28e010,_0x18beae){const _0x328943=_0x18beae['editing']['view']['document'];if('string'==typeof _0x28e010)return new _0x5d5858(_0x328943,_0x28e010);{const _0xce4c09=_0x28e010['children']['map'](_0x172d02=>P(_0x172d02,_0x18beae));return new(E[_0x28e010['type']]||_0x1b6da8)(_0x328943,_0x28e010['name'],_0x28e010['attributes'],_0xce4c09);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xf87ff6){this['editor']=_0xf87ff6,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'](_0x379c05){this['source']=_0x379c05;const _0x139d3d=new Map(),_0x2f6dfb=new Map(),_0x5ec93f=this['editor']['model']['document']['roots']['map'](_0x244f3d=>_0x244f3d['rootName']);for(const _0x47eba2 of _0x5ec93f){const _0x293a30=this['editor']['model']['document']['getRoot'](_0x47eba2),_0x3cddd7=T(_0x293a30);_0x139d3d['set'](_0x47eba2,_0x3cddd7),_0x2f6dfb['set'](_0x47eba2,Object['fromEntries'](_0x293a30['getAttributes']()));}const _0x8578c=Array['from'](this['editor']['model']['markers'])['map'](_0x303b53=>[_0x303b53['name'],_0x303b53['getRange']()]),_0x1b7d98=this['source']['version'];this['_saveMetaData'](_0x1b7d98,_0x139d3d,_0x8578c,_0x2f6dfb),this['_startingRevisionId']=this['_revisionId'];const _0x13b5cc=new Map(),_0x49b014=new Map();for(const _0x7faec9 of _0x5ec93f){const _0x4eeef0=F(_0x7faec9);_0x13b5cc['set'](_0x7faec9,_0x4eeef0),_0x49b014['set'](_0x7faec9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x13b5cc,[],_0x49b014);}['getData'](_0x22b784,_0x510077){if(this['_lastFrom']===_0x22b784&&this['_lastTo']<=_0x510077)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x510077,!0x0);else{if(!this['_savedMetaData']['has'](_0x22b784)){const _0x4d1b7=this['_getPreviousFrom'](_0x22b784);this['_calculateMetaData'](_0x4d1b7,_0x22b784,!0x1);}this['_calculateMetaData'](_0x22b784,_0x510077,!0x0);}return this['_lastFrom']=_0x22b784,this['_lastTo']=_0x510077,this['_getState']();}['loadState'](_0x79a78){this['_reset'](),this['_lastFrom']=_0x79a78['fromVersion'],this['_lastTo']=_0x79a78['toVersion'];for(const _0x530a2d in _0x79a78['diffData']){const _0x967f57=_0x79a78['diffData'][_0x530a2d]['attachChange'],_0x2f73cc=_0x3e1187(_0x79a78['diffData'][_0x530a2d]['attributesBefore'])||{},_0x483ea5=this['_makeModelFromViewString'](_0x79a78['diffData'][_0x530a2d]['deletions']);_0x483ea5['rootName']=_0x530a2d,_0x483ea5['_isAttached']=!_0x967f57||!_0x967f57['isAttached'],_0x483ea5['isAttached']=()=>_0x483ea5['_isAttached'],this['_baseRoots']['set'](_0x530a2d,_0x483ea5),this['_baseRootsAttributes']['set'](_0x530a2d,_0x2f73cc),_0x967f57&&this['_touchedRoots']['set'](_0x530a2d,_0x967f57);const _0x49ab3a=this['_makeIdsRoot'](_0x483ea5);this['_baseIdsRoots']['set'](_0x530a2d,_0x49ab3a);for(const [_0x15ca05,_0xcb0e2b]of _0x483ea5['markers']){if(!_0x15ca05['startsWith']('revision:'))continue;const _0x2f3724=_0x15ca05['split'](':')[0x2];for(const _0x223fe5 of _0xcb0e2b['getWalker']({'singleCharacters':!0x0})){const _0x1b789c=this['_getVidAttributeName'](_0x223fe5),_0xae56f8='elementEnd'==_0x223fe5['type']?_0x223fe5['previousPosition']['path']['slice'](0x0,-0x1):_0x223fe5['previousPosition']['path'],_0x4c6a7d=_0x49ab3a['getNodeByPath'](_0xae56f8)['getAttribute'](_0x1b789c);this['_touched']['set'](_0x4c6a7d,{'userId':_0x2f3724});}}}this['_startingRevisionId']=this['_revisionId'];const _0x109d76=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xb0fdea=>!this['_touched']['has'](_0xb0fdea));let _0x3741fb=0x0;const _0x2a69b3=new Map();for(const _0x279d40 in _0x79a78['diffData']){const _0x2f1c03=_0x79a78['diffData'][_0x279d40]['attachChange'],_0x34e32d=_0x3e1187(_0x79a78['diffData'][_0x279d40]['attributesAfter'])||{},_0x42f479=this['_makeModelFromViewString'](_0x79a78['diffData'][_0x279d40]['insertions']);_0x42f479['rootName']=_0x279d40,_0x42f479['_isAttached']=!_0x2f1c03||_0x2f1c03['isAttached'],_0x42f479['isAttached']=()=>_0x42f479['_isAttached'],this['_diffRoots']['set'](_0x279d40,_0x42f479),this['_diffRootsAttributes']['set'](_0x279d40,_0x34e32d);const _0x1b0619=this['_makeIdsRoot'](_0x42f479,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x279d40,_0x1b0619),_0x2a69b3['set'](_0x279d40,_0x42f479['isAttached']()?_0x34e32d:{});for(const [_0x5b604d,_0x298746]of _0x42f479['markers']){if(!_0x5b604d['startsWith']('revision:'))continue;const _0x3b4c8e=_0x5b604d['split'](':')[0x2];for(const _0x1fc9b3 of _0x298746['getWalker']({'singleCharacters':!0x0})){const _0x557dfd=this['_getVidAttributeName'](_0x1fc9b3),_0x529a33=this['_revisionId']++,_0x4f4a99='elementEnd'==_0x1fc9b3['type']?_0x1fc9b3['previousPosition']['path']['slice'](0x0,-0x1):_0x1fc9b3['previousPosition']['path'];_0x1b0619['getNodeByPath'](_0x4f4a99)['_setAttribute'](_0x557dfd,_0x529a33),this['_touched']['set'](_0x529a33,{'userId':_0x3b4c8e});}}for(const _0x152fac of this['editor']['model']['createRangeIn'](_0x42f479)['getWalker']({'singleCharacters':!0x0})){const _0x4dd143=this['_getVidAttributeName'](_0x152fac),_0x542c12='elementEnd'==_0x152fac['type']?_0x152fac['previousPosition']['path']['slice'](0x0,-0x1):_0x152fac['previousPosition']['path'],_0x498cde=_0x1b0619['getNodeByPath'](_0x542c12);_0x498cde['getAttribute'](_0x4dd143)>0x0||_0x498cde['_setAttribute'](_0x4dd143,_0x109d76[_0x3741fb++]);}for(const [_0x48db0b,_0x2d3f6d]of _0x42f479['markers'])_0x48db0b['startsWith']('revision:')||this['_markers']['set'](_0x48db0b,_0x2d3f6d);}const _0x3aa3a3=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3aa3a3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3aa3a3,0x1));const _0x36bdca=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x36bdca),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x36bdca,0x1));const _0x316701=Array['from'](this['_diffRoots'])['map'](([_0x14f6ea,_0x1d2369])=>[_0x14f6ea,T(_0x1d2369)]);this['_saveMetaData'](this['_lastTo'],_0x316701,this['_markers'],_0x2a69b3);}['_makeModelFromViewString'](_0x43be22){const _0x57c308=JSON['parse'](_0x43be22),_0x3fbad5=this['editor']['editing']['view']['document'],_0x50cdba=new _0x1764ce(_0x3fbad5,_0x57c308['map'](_0x46c031=>P(_0x46c031,this['editor'])));return this['editor']['data']['toModel'](_0x50cdba);}['_saveMetaData'](_0x2b464f,_0x1016bf,_0x4bc6ea,_0x33447b){const _0x54ff41=new Map(_0x1016bf),_0x52a6a8=new Map(_0x3e1187(_0x33447b)),_0x56ebcf=new Map();for(const [_0x14adbb,_0x3e50c7]of _0x4bc6ea)_0x56ebcf['set'](_0x14adbb,{'start':_0x3e50c7['start']['clone'](),'end':_0x3e50c7['end']['clone'](),'rootName':_0x3e50c7['root']['rootName']});this['_savedMetaData']['set'](_0x2b464f,{'roots':_0x54ff41,'markers':_0x56ebcf,'rootsAttributes':_0x52a6a8});}['_removeMetaData'](_0x1faa5e){this['_savedMetaData']['delete'](_0x1faa5e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4cd69e,_0x15cd22=null){let _0x578c8c=null;_0x4cd69e['is']('documentFragment')||(_0x578c8c=new ut(_0x4cd69e['name'],{'vid_start':null===_0x15cd22?this['_revisionId']++:_0x15cd22++}));const _0xc482c=[];for(const _0x41f6f1 of _0x4cd69e['getChildren']())if(_0x41f6f1['is']('element')){_0xc482c['push'](this['_makeIdsRoot'](_0x41f6f1,_0x15cd22));const _0x5bda4a=_0xc482c[_0xc482c['length']-0x1];null!==_0x15cd22&&(_0x15cd22=_0x5bda4a['is']('element','$text')?_0x5bda4a['getAttribute']('vid')+0x1:_0x5bda4a['getAttribute']('vid_end')+0x1);}else{for(let _0x20a669=0x0;_0x20a669<_0x41f6f1['offsetSize'];_0x20a669++)_0xc482c['push'](new ut('$text',{'vid':null===_0x15cd22?this['_revisionId']++:_0x15cd22++}));}if(_0x4cd69e['is']('documentFragment')){const _0x16a6ed=F(_0x4cd69e['rootName']);return _0x16a6ed['_insertChild'](0x0,_0xc482c),_0x16a6ed;}return _0x578c8c['_setAttribute']('vid_end',null===_0x15cd22?this['_revisionId']++:_0x15cd22++),_0x578c8c['_insertChild'](0x0,_0xc482c),_0x578c8c;}['_calculateMetaData'](_0x37fad3,_0x24f218,_0x7d3820){this['_reset']();const {roots:_0xf154f3,markers:_0x5d88d7,rootsAttributes:_0x4a7c40}=this['_savedMetaData']['get'](_0x37fad3);this['_baseRoots']=new Map(_0xf154f3),this['_baseRootsAttributes']=new Map(_0x3e1187(_0x4a7c40));for(const [_0xa3cf53,_0xe14429]of this['_baseRoots'])if('$graveyard'!==_0xa3cf53&&(this['_diffRoots']['set'](_0xa3cf53,T(_0xe14429)),this['_diffRootsAttributes']=new Map(_0x3e1187(_0x4a7c40)),_0x7d3820)){const _0x4fdcc4=this['_revisionId'];this['_idsRoots']['set'](_0xa3cf53,this['_makeIdsRoot'](_0xe14429)),this['_baseIdsRoots']['set'](_0xa3cf53,this['_makeIdsRoot'](_0xe14429,_0x4fdcc4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x7d3820&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3f1b13,_0x45a987]of _0x5d88d7){const _0x657637=this['_baseRoots']['get'](_0x45a987['rootName']),_0x133e6e=this['_diffRoots']['get'](_0x45a987['rootName']),_0x10be8c=new ft(this['_fixPosition'](_0x45a987['start'],_0x657637),this['_fixPosition'](_0x45a987['end'],_0x657637)),_0x598648=this['_fixRange'](_0x10be8c,_0x133e6e);_0x657637['markers']['set'](_0x3f1b13,_0x10be8c),this['_markers']['set'](_0x3f1b13,_0x598648);}this['_applyOperations'](_0x37fad3,_0x24f218,_0x7d3820);}['_applyOperations'](_0x5e0f43,_0xeb7874,_0x45c9b2){for(const _0x19fb2e of this['source']['getOperations'](_0x5e0f43,_0xeb7874))this['_handleOperation'](_0x19fb2e,_0x45c9b2);for(const _0x279add of this['_diffRoots']['values']())_0x279add['markers']['clear']();for(const [_0x1d2103,_0x526efd]of this['_markers']){this['_diffRoots']['get'](_0x526efd['root']['rootName'])['markers']['set'](_0x1d2103,_0x526efd['clone']());}const _0x2e4927=new Map(),_0x44b9d1=new Map();for(const [_0x5a8ab7,_0x1942e5]of this['_diffRoots'])_0x2e4927['set'](_0x5a8ab7,T(_0x1942e5)),_0x44b9d1['set'](_0x5a8ab7,this['_diffRootsAttributes']['get'](_0x5a8ab7));this['_saveMetaData'](_0xeb7874,_0x2e4927,this['_markers'],_0x44b9d1);}['_getPreviousFrom'](_0x3129af){const _0x44fe89=Array['from'](this['_savedMetaData']['keys']());_0x44fe89['sort']((_0x3f2752,_0x48a35f)=>_0x3f2752-_0x48a35f),_0x44fe89['reverse']();for(const _0x585e58 of _0x44fe89)if(_0x585e58<_0x3129af)return _0x585e58;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x58f5f3,_0x16bd8e){const _0x389dd0=Array['from'](_0x16bd8e['markers'])['map'](([_0x4088b6,_0x153af6])=>[_0x4088b6,this['_fixRange'](_0x153af6,_0x58f5f3)]);_0x58f5f3['markers']=new Map(_0x389dd0);}['_transformMarkers'](_0x1242c3){for(const _0x4b1023 of this['_markers']['values']()){const _0x33acb4=_0x4b1023['getTransformedByOperation'](_0x1242c3),_0x270ecb=ft['_createFromRanges'](_0x33acb4);_0x4b1023['start']=_0x270ecb['start'],_0x4b1023['end']=_0x270ecb['end'];}}['_handleOperation'](_0x2927e5,_0x3e0339){if('addRoot'!=_0x2927e5['type']&&'detachRoot'!=_0x2927e5['type']){if('insert'==_0x2927e5['type']){const _0x190557=_0x2927e5['position']['root']['rootName'];this['_diffRoots']['has'](_0x190557)||(this['_diffRoots']['set'](_0x190557,F(_0x190557,!0x0)),this['_diffRootsAttributes']['set'](_0x190557,{}),_0x3e0339&&this['_idsRoots']['set'](_0x190557,F(_0x190557,!0x0)));}else{if('addRootAttribute'==_0x2927e5['type']||'removeRootAttribute'==_0x2927e5['type']||'changeRootAttribute'==_0x2927e5['type'])return void this['_handleRootAttributeOperation'](_0x2927e5);'marker'==_0x2927e5['type']&&this['_handleMarkerOperation'](_0x2927e5);}if('marker'!==_0x2927e5['type']){const _0x278b55=this['_cloneOperation'](_0x2927e5,this['_diffRoots']);_0x278b55['_execute'](),this['_transformMarkers'](_0x278b55);}if(_0x3e0339)switch(_0x2927e5['type']){case'insert':this['_handleInsertOperation'](_0x2927e5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2927e5);break;case'merge':this['_handleMergeOperation'](_0x2927e5);break;case'split':this['_handleSplitOperation'](_0x2927e5);}}else this['_handleRootOperation'](_0x2927e5,_0x3e0339);}['_cloneOperation'](_0x9a5770,_0x2212ff){const _0xf84ae9=_0x9a5770['clone']();return _0xf84ae9['_authorId']=_0x9a5770['_authorId'],this['_fixOperation'](_0xf84ae9,_0x2212ff),_0xf84ae9;}['_getBaseVids'](_0x561499){return _0x561499['map'](_0xfd3b87=>{const _0x3d5fb2=this['_getVidAttributeName'](_0xfd3b87);return Number(_0xfd3b87['item']['getAttribute'](_0x3d5fb2));});}['_generateTape'](_0x503126,_0x1c62be){if(_0x503126['is']('element','$text'))_0x1c62be['push']({'item':_0x503126,'type':'text'});else{_0x503126['is']('element')&&_0x1c62be['push']({'item':_0x503126,'type':'elementStart'});for(const _0x5c34f9 of _0x503126['getChildren']())this['_generateTape'](_0x5c34f9,_0x1c62be);_0x503126['is']('element')&&_0x1c62be['push']({'item':_0x503126,'type':'elementEnd'});}return _0x1c62be;}['_getState'](){const _0x1845fb=new Map(this['_touched']),_0x434771=new Map(_0x1845fb),_0x37f685=new Map(),_0x5b7440={'insertions':{},'deletions':{}},_0x4a4331={'insertions':{},'deletions':{}},_0x1e213e=new Map(),_0x236e67=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x236e67['delete']('$graveyard');for(const _0x447f8f of _0x236e67){const _0x4365dd=this['_diffRoots']['get'](_0x447f8f)||F(_0x447f8f,!0x1),_0x14f021=this['_baseRoots']['get'](_0x447f8f)||F(_0x447f8f,!0x1);_0x4365dd['isAttached']()||_0x14f021['isAttached']()?(_0x5b7440['insertions'][_0x447f8f]=T(_0x4365dd),_0x5b7440['deletions'][_0x447f8f]=T(_0x14f021),this['_copyMarkers'](_0x5b7440['deletions'][_0x447f8f],_0x14f021),this['_copyMarkers'](_0x5b7440['insertions'][_0x447f8f],_0x4365dd),_0x4a4331['insertions'][_0x447f8f]=this['_generateTape'](this['_idsRoots']['get'](_0x447f8f),[]),_0x4a4331['deletions'][_0x447f8f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x447f8f)||F(_0x447f8f,!0x1),[])):_0x236e67['delete'](_0x447f8f);}for(const _0x1aa9bb of _0x236e67){const _0x1325ba=_0x4a4331['insertions'][_0x1aa9bb];for(const _0x21462d of _0x1325ba){const _0xd92fe9=this['_getVidAttributeName'](_0x21462d),_0x508429=_0x21462d['item']['getAttribute'](_0xd92fe9);_0x434771['delete'](_0x508429),_0x508429>=this['_startingRevisionId']&&_0x37f685['set'](_0x508429,_0x1845fb['get'](_0x508429));}}for(const _0x13e700 of _0x236e67){const _0x4e1d40=_0x4a4331['insertions'][_0x13e700],_0xd595c6=this['_getBaseVids'](_0x4a4331['deletions'][_0x13e700]);let _0x3d8756=0x0;for(const _0x354907 of _0x4e1d40){const _0x1684eb=this['_getVidAttributeName'](_0x354907),_0x20b227=_0x354907['item']['getAttribute'](_0x1684eb);if(!_0x37f685['has'](_0x20b227)&&!_0x1e213e['has'](_0x20b227)){if(_0x434771['has'](_0x20b227))_0x3d8756++;else{if(_0x20b227!=_0xd595c6[_0x3d8756]){const _0x23a0c0=_0x1845fb['get'](_0x20b227)||_0x1845fb['get'](_0xd595c6[_0x3d8756]);for(;_0x20b227!=_0xd595c6[_0x3d8756];)_0x434771['has'](_0xd595c6[_0x3d8756])||(_0x1e213e['set'](_0xd595c6[_0x3d8756],_0x23a0c0),_0x1845fb['set'](_0xd595c6[_0x3d8756],_0x23a0c0)),_0x3d8756++;}_0x3d8756++;}}}}for(const _0x52c1a0 of _0x236e67){const _0x449df1=_0x4a4331['insertions'][_0x52c1a0];for(const _0x224718 of _0x449df1){const _0x5bfe50=this['_getVidAttributeName'](_0x224718),_0x207223=_0x224718['item']['getAttribute'](_0x5bfe50);if(_0x1e213e['has'](_0x207223)){const _0x26f3f1=_0x1e213e['get'](_0x207223);_0x434771['has'](_0x207223)||_0x434771['set'](_0x207223,{..._0x26f3f1}),_0x37f685['set'](_0x207223,{..._0x26f3f1});}}}for(const _0x3403ef of _0x434771['keys']())_0x3403ef>=this['_startingRevisionId']&&_0x434771['delete'](_0x3403ef);const _0x4dbf15=new Map();for(const _0x1c4ce6 of _0x236e67){let _0x19eef0=_0x4a4331['insertions'][_0x1c4ce6];for(const _0x4f6a64 of _0x19eef0)if(_0x4f6a64['item']['is']('element','tableCell')){const _0x507296=this['_getVidAttributeName'](_0x4f6a64),_0x12a2c3=_0x4f6a64['item']['getAttribute'](_0x507296);if(_0x37f685['has'](_0x12a2c3)){const _0x7d291b=_0x4f6a64['item']['parent']['parent']['getAttribute']('vid_start'),_0x21645a=_0x4dbf15['get'](_0x7d291b)||new Set();_0x21645a['add'](_0x37f685['get'](_0x12a2c3)['userId']),_0x4dbf15['set'](_0x7d291b,_0x21645a);}}_0x19eef0=_0x4a4331['deletions'][_0x1c4ce6];for(const _0x5ef3b0 of _0x19eef0)if(_0x5ef3b0['item']['is']('element','tableCell')){const _0xcbbbbf=this['_getVidAttributeName'](_0x5ef3b0),_0x3cf763=_0x5ef3b0['item']['getAttribute'](_0xcbbbbf);if(_0x434771['has'](_0x3cf763)){const _0x320a26=_0x5ef3b0['item']['parent']['parent']['getAttribute']('vid_start'),_0x5610f3=_0x4dbf15['get'](_0x320a26)||new Set();_0x5610f3['add'](_0x434771['get'](_0x3cf763)['userId']),_0x4dbf15['set'](_0x320a26,_0x5610f3);}}for(const _0x3cafb0 of _0x4dbf15['keys']())(_0x37f685['has'](_0x3cafb0)||_0x434771['has'](_0x3cafb0))&&_0x4dbf15['delete'](_0x3cafb0);}for(const _0x55076e of _0x236e67){const _0x297995=_0x4a4331['insertions'][_0x55076e];let _0x3749bd=null,_0x38aac1=null;for(const _0x2bf0ed of _0x297995){const _0x3d7895=this['_getVidAttributeName'](_0x2bf0ed),_0x56c799=_0x2bf0ed['item']['getAttribute'](_0x3d7895),_0x5dcea2=_0x4dbf15['get'](_0x56c799);_0x5dcea2&&'elementStart'==_0x2bf0ed['type']&&(_0x3749bd=Array['from'](_0x5dcea2)[0x0],_0x38aac1=_0x2bf0ed['item']['getAttribute']('vid_end')),_0x3749bd&&(_0x434771['set'](_0x56c799,{'userId':_0x3749bd}),_0x37f685['set'](_0x56c799,{'userId':_0x3749bd})),_0x56c799==_0x38aac1&&(_0x3749bd=null,_0x38aac1=null);}}const _0x27fb7a={},_0x1e43cc=new Set();for(const _0x5b0e48 of _0x236e67){const _0x3d8233=_0x5b7440['deletions'][_0x5b0e48],_0x3d12cf=_0x5b7440['insertions'][_0x5b0e48];for(const {userId:_0x4a2144}of this['_touchedMarkers']['values']())null!==_0x4a2144&&_0x1e43cc['add'](_0x4a2144);for(const {userId:_0x128b90}of this['_touchedRoots']['values']())null!==_0x128b90&&_0x1e43cc['add'](_0x128b90);this['_markChanges'](_0x3d12cf,_0x4a4331['insertions'][_0x5b0e48],_0x37f685,'insertion',_0x1e43cc),this['_markChanges'](_0x3d8233,_0x4a4331['deletions'][_0x5b0e48],_0x434771,'deletion',_0x1e43cc),_0x27fb7a[_0x5b0e48]={'insertions':this['_prepareViewToSave'](_0x3d12cf),'deletions':this['_prepareViewToSave'](_0x3d8233),'attachChange':this['_touchedRoots']['get'](_0x5b0e48)||null,'attributesBefore':_0x3e1187(this['_baseRootsAttributes']['get'](_0x5b0e48))||{},'attributesAfter':_0x3e1187(this['_diffRootsAttributes']['get'](_0x5b0e48))};}return{'diffData':_0x27fb7a,'authorsIds':Array['from'](_0x1e43cc)};}['_processRootBeforeSave'](_0xc97726){for(const [,_0x44b5ff]of _0xc97726['markers']){const _0x4fb5b2=_0x44b5ff['start']['getAncestors']()['filter'](_0x113f73=>'tableCell'==_0x113f73['name']);for(const _0x43230f of _0x4fb5b2)0x1==_0x43230f['childCount']&&_0x43230f['getChild'](0x0)['is']('element','paragraph')&&_0x43230f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xd07894){this['_processRootBeforeSave'](_0xd07894);const _0x5ae705=this['editor']['data']['toView'](_0xd07894,{}),_0x27c537=Array['from'](_0x5ae705['getChildren']())['map'](_0x212b6e=>this['_getViewJson'](_0x212b6e));return JSON['stringify'](_0x27c537);}['_getViewJson'](_0x4c7f40){if(_0x4c7f40['is']('$text'))return _0x4c7f40['data'];{const _0x506248=_0x4c7f40;return{'type':Object['keys'](E)['find'](_0x5bb773=>_0x4c7f40 instanceof E[_0x5bb773]),'name':_0x506248['name'],'attributes':Array['from'](_0x506248['getAttributes']()),'children':Array['from'](_0x506248['getChildren']())['map'](_0x40f991=>this['_getViewJson'](_0x40f991))};}}['_markChanges'](_0x18d713,_0x470229,_0x1e1af0,_0x3e2ca7,_0x4de62e){let _0x2d974e=null,_0xa80b53=null,_0x18511d=0x0;const _0x293df8=this['editor']['model'];for(let _0x4eb383=0x0;_0x4eb383<_0x470229['length'];_0x4eb383++){const _0x3d9d5b=this['_getVidAttributeName'](_0x470229[_0x4eb383]),_0x242d65=_0x470229[_0x4eb383]['item']['getAttribute'](_0x3d9d5b),_0x54b8b6=_0x1e1af0['get'](_0x242d65),_0x1b8893=_0x4eb383==_0x470229['length']-0x1;(!_0x2d974e&&_0x54b8b6&&(_0x2d974e=_0x54b8b6,_0xa80b53=_0x470229[_0x4eb383]),_0x2d974e&&(!_0x54b8b6||_0x54b8b6['userId']!=_0x2d974e['userId']))&&(_0x3a895f(_0x54b8b6,B(_0xa80b53,_0x18d713,_0x293df8),B(_0x470229[_0x4eb383],_0x18d713,_0x293df8)),_0x2d974e=_0x54b8b6||null,_0xa80b53=_0x54b8b6?_0x470229[_0x4eb383]:null),_0x2d974e&&_0x1b8893&&_0x3a895f(_0x54b8b6,B(_0xa80b53,_0x18d713,_0x293df8),J(_0x470229[_0x4eb383],_0x18d713,_0x293df8));}function _0x3a895f(_0x11ed08,_0x558102,_0x28f645){const _0x5d6ab5=_0x2d974e['userId'],_0x3b614d='revision:'+_0x3e2ca7+':'+_0x5d6ab5+':'+_0x18511d++,_0x4df094=_0x293df8['createRange'](_0x558102,_0x28f645);_0x18d713['markers']['set'](_0x3b614d,_0x4df094),null!==_0x5d6ab5&&_0x4de62e['add'](_0x5d6ab5);}}['_getVidAttributeName'](_0x2a915b){switch(_0x2a915b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3ade32,_0x27bc6c){_0x3ade32['baseVersion']=null;for(const _0x2f1205 in _0x3ade32){const _0x267e7d=_0x3ade32[_0x2f1205];if(_0x267e7d instanceof vt){const _0x1dcf34=_0x27bc6c['get'](_0x267e7d['root']['rootName']);_0x3ade32[_0x2f1205]=this['_fixPosition'](_0x267e7d,_0x1dcf34);}if(_0x267e7d instanceof ft){const _0x4001a7=_0x27bc6c['get'](_0x267e7d['root']['rootName']);_0x3ade32[_0x2f1205]=this['_fixRange'](_0x267e7d,_0x4001a7);}'root'===_0x2f1205&&(_0x3ade32['root']=_0x27bc6c['get'](_0x3ade32['root']['rootName']));}}['_fixRange'](_0x52f830,_0x25c441){return this['editor']['model']['createRange'](this['_fixPosition'](_0x52f830['start'],_0x25c441),this['_fixPosition'](_0x52f830['end'],_0x25c441));}['_fixPosition'](_0x16981e,_0x130e89){return this['editor']['model']['createPositionFromPath'](_0x130e89,_0x16981e['path'],_0x16981e['stickiness']);}['_handleInsertOperation'](_0x1fddf6){const _0x4e0c3a=this['_idsRoots']['get'](_0x1fddf6['position']['root']['rootName']),_0x4c5062=this['_fixPosition'](_0x1fddf6['position'],_0x4e0c3a),_0x4d09ef=null===_0x1fddf6['_authorId']?null:_0x1fddf6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x31357e=_0x4c5062['parent'],_0x5b1229=this['_revisionId'],_0x4b6d02=[];for(const _0x1ff6f6 of _0x1fddf6['nodes'])if(_0x1ff6f6['is']('element'))_0x4b6d02['push'](this['_makeIdsRoot'](_0x1ff6f6));else{for(let _0x4f88ca=0x0;_0x4f88ca<_0x1ff6f6['offsetSize'];_0x4f88ca++)_0x4b6d02['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xd4eef6=this['_revisionId'];for(let _0x806263=_0x5b1229;_0x806263<_0xd4eef6;_0x806263++)this['_touched']['set'](_0x806263,{'userId':_0x4d09ef});_0x31357e['_insertChild'](_0x4c5062['offset'],_0x4b6d02);}['_handleMoveOperation'](_0x2daac4){(_0x2daac4=this['_cloneOperation'](_0x2daac4,this['_idsRoots']))['_execute']();const _0x58f879=null===_0x2daac4['_authorId']?null:_0x2daac4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6e4370=_0x2daac4['getMovedRangeStart'](),_0x498e6a=_0x6e4370['parent'],_0x1d0b87=_0x6e4370['offset'];!function _0x49081b(_0x47254c,_0x1fd358,_0x62aef0,_0x28e3ed){for(let _0x5bda57=_0x62aef0;_0x5bda57<_0x28e3ed;_0x5bda57++){const _0x42af89=_0x1fd358['getChild'](_0x5bda57);_0x42af89['is']('element','$text')?_0x47254c['set'](_0x42af89['getAttribute']('vid'),{'userId':_0x58f879}):(_0x47254c['set'](_0x42af89['getAttribute']('vid_start'),{'userId':_0x58f879}),_0x49081b(_0x47254c,_0x42af89,0x0,_0x42af89['childCount']),_0x47254c['set'](_0x42af89['getAttribute']('vid_end'),{'userId':_0x58f879}));}}(this['_touched'],_0x498e6a,_0x1d0b87,_0x1d0b87+_0x2daac4['howMany']);}['_handleMergeOperation'](_0x2fe750){const _0x4675a1=null===(_0x2fe750=this['_cloneOperation'](_0x2fe750,this['_idsRoots']))['_authorId']?null:_0x2fe750['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18adbb=_0x2fe750['targetPosition']['parent'],_0x5abcba=_0x2fe750['sourcePosition']['parent'],_0x419386=_0x18adbb['getAttribute']('vid_end'),_0x4d2c61=_0x5abcba['getAttribute']('vid_start');_0x18adbb['_setAttribute']('vid_end',_0x5abcba['getAttribute']('vid_end')),_0x5abcba['_setAttribute']('vid_end',_0x419386),this['_touched']['set'](_0x4d2c61,{'userId':_0x4675a1}),this['_touched']['set'](_0x419386,{'userId':_0x4675a1}),_0x2fe750['_execute']();}['_handleSplitOperation'](_0x7cb451){const _0x5edf4a=null===(_0x7cb451=this['_cloneOperation'](_0x7cb451,this['_idsRoots']))['_authorId']?null:_0x7cb451['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c0e25=_0x7cb451['graveyardPosition'],_0x5c3594=_0x7cb451['splitPosition']['parent'];_0x7cb451['_execute']();const _0x51dc56=_0x5c3594['getAttribute']('vid_end'),_0x115698=_0x7cb451['insertionPosition']['nodeAfter'];if(_0x2c0e25){const _0x4ffb71=_0x115698['getAttribute']('vid_end'),_0x5c8c81=_0x5c3594['getAttribute']('vid_end');_0x5c3594['_setAttribute']('vid_end',_0x4ffb71),_0x115698['_setAttribute']('vid_end',_0x5c8c81),this['_touched']['set'](_0x5c3594['getAttribute']('vid_end'),{'userId':_0x5edf4a}),this['_touched']['set'](_0x115698['getAttribute']('vid_start'),{'userId':_0x5edf4a});}else{const _0xa1256b=this['_revisionId']++,_0x4ee06e=this['_revisionId']++;_0x5c3594['_setAttribute']('vid_end',_0xa1256b),_0x115698['_setAttribute']('vid_start',_0x4ee06e),_0x115698['_setAttribute']('vid_end',_0x51dc56),this['_touched']['set'](_0xa1256b,{'userId':_0x5edf4a}),this['_touched']['set'](_0x4ee06e,{'userId':_0x5edf4a});}}['_handleMarkerOperation'](_0x567594){if(!_0x567594['affectsData'])return;const _0x4d4dc2=(_0x567594=this['_cloneOperation'](_0x567594,this['_diffRoots']))['oldRange']?_0x567594['oldRange']['root']:null,_0x298afe=_0x567594['newRange']?_0x567594['newRange']['root']:null;_0x4d4dc2&&this['_markers']['delete'](_0x567594['name']),_0x298afe&&this['_markers']['set'](_0x567594['name'],_0x567594['newRange']['clone']());const _0x14a83a=null===_0x567594['_authorId']?null:_0x567594['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22ffcd=_0x567594['name'];if(!this['_touchedMarkers']['has'](_0x22ffcd))return void this['_touchedMarkers']['set'](_0x22ffcd,{'range':_0x567594['oldRange'],'userId':_0x14a83a});const _0x12551b=this['_touchedMarkers']['get'](_0x22ffcd),_0x40b5a4=_0x12551b['range'],_0xa53405=_0x567594['newRange'];null==_0x40b5a4&&null==_0xa53405||_0x40b5a4&&_0xa53405&&_0x40b5a4['isEqual'](_0xa53405)?this['_touchedMarkers']['delete'](_0x567594['name']):_0x12551b['userId']=_0x14a83a;}['_handleRootOperation'](_0x1cbcaa,_0x51dcb6){this['_diffRoots']['has'](_0x1cbcaa['rootName'])?this['_diffRoots']['get'](_0x1cbcaa['rootName'])['_isAttached']=_0x1cbcaa['isAdd']:(this['_diffRoots']['set'](_0x1cbcaa['rootName'],F(_0x1cbcaa['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1cbcaa['rootName'],{}),_0x51dcb6&&this['_idsRoots']['set'](_0x1cbcaa['rootName'],F(_0x1cbcaa['rootName'],!0x0)));const _0x1a7dfe=null===_0x1cbcaa['_authorId']?null:_0x1cbcaa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10a199=this['_touchedRoots']['get'](_0x1cbcaa['rootName']);_0x10a199&&_0x10a199['userId']===_0x1a7dfe?this['_touchedRoots']['delete'](_0x1cbcaa['rootName']):this['_touchedRoots']['set'](_0x1cbcaa['rootName'],{'userId':_0x1a7dfe,'isAttached':_0x1cbcaa['isAdd']});}['_handleRootAttributeOperation'](_0x34551a){const _0x1b4161=this['_diffRootsAttributes']['get'](_0x34551a['root']['rootName']);null===_0x34551a['newValue']?delete _0x1b4161[_0x34551a['key']]:_0x1b4161[_0x34551a['key']]=_0x34551a['newValue'];}}function T(_0x312e41){const _0x2abfb1=F(_0x312e41['rootName'],_0x312e41['isAttached']());for(const _0x1e00d7 of _0x312e41['getChildren']()){const _0x573af1=_0x1e00d7['_clone'](!0x0);_0x2abfb1['_appendChild'](_0x573af1);}return _0x2abfb1;}function F(_0x32fb8f,_0x5e24db=!0x0){const _0x423ed2=new gt();return _0x423ed2['rootName']=_0x32fb8f,_0x423ed2['_isAttached']=_0x5e24db,_0x423ed2['isAttached']=()=>_0x423ed2['_isAttached'],_0x423ed2;}function B(_0x131461,_0xba037a,_0xa89c71){const _0x52d1b5='elementEnd'==_0x131461['type']?_0xa89c71['createPositionAt'](_0x131461['item'],'end'):_0xa89c71['createPositionBefore'](_0x131461['item']);return _0xa89c71['createPositionFromPath'](_0xba037a,_0x52d1b5['path'],_0x52d1b5['stickiness']);}function J(_0x3fcd5e,_0x3fad87,_0x2da2f9){const _0x52e89b='elementStart'==_0x3fcd5e['type']?_0x2da2f9['createPositionAt'](_0x3fcd5e['item'],0x0):_0x2da2f9['createPositionAfter'](_0x3fcd5e['item']);return _0x2da2f9['createPositionFromPath'](_0x3fad87,_0x52e89b['path'],_0x52e89b['stickiness']);}class os extends _0x2556fc{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4685f2,_0x50e1e0){super(_0x4685f2),this['focusTracker']=new _0x1c1753(),this['keystrokes']=new _0x4aff6f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x50e1e0),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x59c01e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4f4722=_0x396143=>_0x396143['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4f4722),this['keystrokes']['set']('arrowleft',_0x4f4722),this['keystrokes']['set']('arrowup',_0x4f4722),this['keystrokes']['set']('arrowdown',_0x4f4722);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x44e4ca){this['revisionNameInputView']['fieldView']['element']['value']=_0x44e4ca['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x43ffb4){const _0x294288=new at(this['locale'],ti),_0x3dbcb3=_0x294288['fieldView'];_0x3dbcb3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4a9ca4=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x43ffb4&&(_0x4a9ca4+='\x20('+m(this['locale'],'optional')+')'),(_0x294288['label']=_0x4a9ca4,_0x3dbcb3['on']('input',()=>{this['revisionNameInputValue']=_0x3dbcb3['element']['value']['trim']();}),_0x294288);}}class f extends _0x550265{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5d9f01=this['editor'],_0xa49952=_0x5d9f01['plugins']['get']('RevisionTracker');_0x5d9f01['ui']['componentFactory']['add']('revisionHistory',_0x108aec=>{const _0x1f6847=_0x1922d9(_0x108aec),_0x62ce13=_0x1f6847['panelView']['children'],_0x2baa9d=new _0x4d5430(_0x108aec),_0xfd941a=new te(_0x108aec),_0x1ca57f=new _0x19ff9c(_0x108aec),_0x2c36bc=new te(_0x108aec),_0x16c591=new _0x19ff9c(_0x108aec);return _0x1f6847['bind']('isEnabled')['to'](_0xa49952,'isReady',_0xa49952,'isEnabled',_0x5d9f01,'isReadOnly',(_0x202b5c,_0x58b253,_0x20299e)=>_0x202b5c&&_0x58b253&&!_0x20299e),_0x1f6847['buttonView']['set']({'icon':_0x37efe1,'label':m(_0x108aec,'Revision\x20history'),'tooltip':!0x0}),_0x1ca57f['set']({'label':m(_0x108aec,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ca57f['bind']('isEnabled')['to'](_0xa49952,'isReady',_0xa49952,'isEnabled',_0x5d9f01,'isReadOnly',(_0x4116a5,_0x448453,_0x2978a6)=>_0x4116a5&&_0x448453&&!_0x2978a6),_0x1ca57f['on']('execute',()=>this['_showDialog']()),_0x16c591['set']({'label':m(_0x108aec,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x16c591['bind']('isEnabled')['to'](_0xa49952,'isReady',_0x5d9f01,'isReadOnly',(_0x3105ed,_0xbc2018)=>_0x3105ed&&!_0xbc2018),_0x16c591['on']('execute',()=>{_0x5d9f01['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1f6847['isOpen']=!0x1,_0x5d9f01['editing']['view']['focus']();}),_0xfd941a['children']['add'](_0x1ca57f),_0x2c36bc['children']['add'](_0x16c591),_0x2baa9d['role']='menu',_0x2baa9d['items']['addMany']([_0xfd941a,_0x2c36bc]),_0x62ce13['add'](_0x2baa9d),_0x1f6847;}),_0x5d9f01['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xf8c925=this['editor'],_0x160e07=_0xf8c925['locale'],_0x363223=new _0x8e09fd(_0x160e07),_0x8cdaf9=new _0x2ffe74(_0x160e07);_0x363223['buttonView']['set']({'icon':_0x37efe1,'label':m(_0x160e07,'Revision\x20history')});const _0x1af02a=new _0x4e28db(_0x160e07,_0x363223),_0x5711d4=new _0x2a6667(_0x160e07);_0x5711d4['set']({'label':m(_0x160e07,'Save\x20current\x20revision')}),_0x5711d4['delegate']('execute')['to'](_0x363223),_0x5711d4['on']('execute',()=>{this['_showDialog']();}),_0x1af02a['children']['add'](_0x5711d4),_0x8cdaf9['items']['add'](_0x1af02a);const _0x10854a=new _0x4e28db(_0x160e07,_0x363223),_0x1cc5ea=new _0x2a6667(_0x160e07);return _0x1cc5ea['set']({'label':m(_0x160e07,'Open\x20revision\x20history')}),_0x1cc5ea['delegate']('execute')['to'](_0x363223),_0x1cc5ea['on']('execute',()=>{_0xf8c925['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x10854a['children']['add'](_0x1cc5ea),_0x8cdaf9['items']['add'](_0x10854a),_0x363223['panelView']['children']['add'](_0x8cdaf9),_0x363223;}['_showDialog'](){const _0x35593e=this['editor'],_0x547be8=_0x35593e['locale'],_0x1f633a=_0x35593e['plugins']['get']('Dialog'),_0x3ed745=_0x35593e['plugins']['get']('RevisionTracker');function _0x222964(_0x65de14){_0x35593e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x65de14['revisionName']?_0x65de14['revisionNameInputView']['errorText']=m(_0x547be8,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x35593e['plugins']['get'](u)['saveRevision']({'name':_0x65de14['revisionName']}),_0x1f633a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x222964(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1f633a['show']({'id':'revisionSave','title':m(_0x547be8,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x35593e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1f633a['hide']()},{'label':m(_0x35593e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x43dfcf){_0x43dfcf['bind']('isEnabled')['to'](_0x3ed745,'isReady',_0x3ed745,'isEnabled',_0x35593e,'isReadOnly',(_0xa33fbb,_0x1868dd,_0x2e1b98)=>_0xa33fbb&&_0x1868dd&&!_0x2e1b98);},'onExecute':()=>_0x222964(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2facd0=this['editor'],_0x38f575=_0x2facd0['locale'];this['_saveRevisionFormView']=new os(_0x38f575,_0x2facd0['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x2556fc{['changeId'];['_model'];constructor(_0x10c56b,_0x5d8d59){super(_0x10c56b),this['_model']=_0x5d8d59,this['changeId']=_0x5d8d59['id'];const _0x314bb9=this['bindTemplate'],_0x932c2e=m(_0x10c56b,_0x5d8d59['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5d8d59['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5d8d59['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x314bb9['to']('type',_0x54bcb2=>'ck-revision-change__'+_0x54bcb2)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x932c2e}]},{'text':'\x20'+_0x5d8d59['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x54b4ea(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x22a8a1){super(),this['id']=_0x22a8a1['id']||_0x3398a(),this['author']=_0x22a8a1['author'],this['type']=_0x22a8a1['type'],this['data']=_0x22a8a1['data']||{},this['rootName']=_0x22a8a1['rootName'],this['set']('createdAt',_0x22a8a1['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(_0xf1b263,_0x509a7c){this['newRevisionId']=_0xf1b263,this['oldRevisionId']=_0x509a7c,this['changes']=new _0x2ea35a();}['_setChanges'](_0x1e8500){for(const _0x2b5ecb of _0x1e8500)this['changes']['add'](_0x2b5ecb);}}const Y={'c':_0x330d14,'a':_0x1d8d9d,'e':_0x5a31b4,'r':_0x54d762,'u':_0x28a39b};class d extends _0x550265{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a0c30,_0x3f2fcc,j];}constructor(_0x515b3a){super(_0x515b3a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4a9463,_0x17071c,_0x5cbbce)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5199fb=>{for(const _0x57558d of this['editor']['editing']['view']['document']['roots'])_0x5cbbce?_0x5199fb['removeClass']('ck-editor__editable__overlay',_0x57558d):_0x5199fb['addClass']('ck-editor__editable__overlay',_0x57558d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1efcbc=>null!==_0x1efcbc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5b93ce,_0xf3bbe0,_0x487b73)=>_0x5b93ce&&_0x487b73?_0xf3bbe0['changes']['getIndex'](_0x487b73):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x577455,_0x1c1dc7)=>_0x577455?_0x1c1dc7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3f2fcc);}['init'](){const _0x4a5328=this['editor'],_0x202de8=new yt(_0x4a5328,{'direction':'backward'}),_0x5e7d86=new yt(_0x4a5328,{'direction':'forward'});(_0x4a5328['commands']['add']('showPreviousChange',_0x202de8),_0x4a5328['commands']['add']('showNextChange',_0x5e7d86),_0x4a5328['commands']['add']('restoreRevision',new _t(_0x4a5328)),this['on']('change:numberOfChanges',()=>{_0x202de8['refresh'](),_0x5e7d86['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4a5328['enableReadOnlyMode']('revision-viewer'),_0x4a5328['plugins']['has']('WidgetToolbarRepository'))&&_0x4a5328['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x39a287){await this['loadRevisionData'](_0x39a287);const _0x3c3c49={};for(const _0xccf515 in _0x39a287['diffData']){if(_0x39a287['diffData'][_0xccf515]['attachChange']&&!_0x39a287['diffData'][_0xccf515]['attachChange']['isAttached'])continue;const _0x4aee1c=this['_removeRevisionMarkers'](JSON['parse'](_0x39a287['diffData'][_0xccf515]['insertions'])),_0x8e9e70=this['editor']['editing']['view']['document'],_0x35ad84=new _0x1764ce(_0x8e9e70,_0x4aee1c['map'](_0xba52cf=>this['_getViewObj'](_0xba52cf)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c3c49[_0xccf515]=this['editor']['data']['processor']['toData'](_0x35ad84),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c3c49;}async['getRevisionRootsAttributes'](_0x5ed935){await this['loadRevisionData'](_0x5ed935);const _0x52847a={};for(const _0x27fe5f in _0x5ed935['diffData'])_0x5ed935['diffData'][_0x27fe5f]['attachChange']&&!_0x5ed935['diffData'][_0x27fe5f]['attachChange']['isAttached']||(_0x52847a[_0x27fe5f]=_0x5ed935['diffData'][_0x27fe5f]['attributesAfter']||{});return _0x52847a;}['_removeRevisionMarkers'](_0xb727c5){return(_0xb727c5=_0xb727c5['filter'](_0x1e02e3=>!_0x1e02e3['name']||'revision-start'!==_0x1e02e3['name']&&'revision-end'!==_0x1e02e3['name']))['forEach'](_0x41169c=>{'string'!=typeof _0x41169c&&(_0x41169c['children']=this['_removeRevisionMarkers'](_0x41169c['children']),_0x41169c['attributes']=_0x41169c['attributes']['filter'](_0x5432f7=>!_0x5432f7[0x0]['startsWith']('data-revision-')));}),_0xb727c5;}async['compare'](_0x447f41,_0x4f92de,_0x515321=!0x1){if(!this['isEnabled'])return;const _0x324f78=this['diff'],_0x532549=this['repository'],_0x2f5ae8='string'==typeof _0x447f41?_0x532549['getRevision'](_0x447f41):_0x447f41,_0x285ce0='string'==typeof _0x4f92de?_0x532549['getRevision'](_0x4f92de):_0x4f92de,_0x2f807=_0x2f5ae8['id'],_0x3e4a76=_0x285ce0?_0x285ce0['id']:null;if(!_0x515321&&this['diff']&&this['diff']['newRevisionId']===_0x2f807&&this['diff']['oldRevisionId']===_0x3e4a76)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x2f807,_0x3e4a76);const _0x24ac9b=this['_getRevisionsRange'](_0x2f5ae8,_0x285ce0,!0x0)['map'](_0x1080a5=>this['loadRevisionData'](_0x1080a5));return _0x24ac9b['push'](new Promise(_0x493420=>{setTimeout(_0x493420,0x14);})),Promise['all'](_0x24ac9b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x30833e=this['_getDiff'](_0x2f807,_0x3e4a76);for(const _0x18ee60 of _0x30833e['changes'])this['_changeIdToChange']['set'](_0x18ee60['id'],_0x18ee60);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x467e96=>{for(const _0x4e02cf of this['editor']['model']['document']['getRootNames']())_0x467e96['detachRoot'](_0x4e02cf);for(const _0x251bdb of Object['keys'](_0x30833e['model'])){const _0x211f99=_0x467e96['addRoot'](_0x251bdb);for(const _0x2f2b69 of Object['keys'](_0x30833e['attributes'][_0x251bdb]))_0x467e96['setAttribute'](_0x2f2b69,_0x30833e['attributes'][_0x251bdb][_0x2f2b69],_0x211f99);_0x467e96['insert'](_0x30833e['model'][_0x251bdb],_0x211f99,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x30833e['changes'])),this['isReady']=!0x0;})['catch'](_0xa8c2fb=>{console['error'](_0xa8c2fb),this['_cleanUp'](),_0x324f78&&(this['diff']=_0x324f78),this['isReady']=!0x0;});}['addRevisionData'](_0x512da5,_0x3bdbaf){const _0x14eb84=this['repository']['createRevision'](_0x512da5);return _0x14eb84['on']('_update',(_0x47c039,_0x3291f3,_0xd3a1b9)=>_0x3bdbaf(_0x3291f3,_0xd3a1b9,_0x14eb84)),this['repository']['addRevision'](_0x14eb84),_0x14eb84;}['loadRevisionData'](_0x232f51){if(!_0x232f51||_0x232f51['diffData'])return Promise['resolve']();{const _0x349917=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x349917,'revisionId':_0x232f51['id']})['then'](_0x27a3b5=>{_0x232f51['_update']({'diffData':_0x27a3b5['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2f7147=>{for(const _0xf8d6b5 of this['editor']['model']['document']['getRootNames']())_0x2f7147['detachRoot'](_0xf8d6b5);});}['_sortAndFilterDiffChanges'](_0x4b1ad4){const _0x9e4a1f=[],_0x37660b=new Map();for(const _0x614d69 of this['editor']['model']['document']['getRootNames']()){const _0x38be96=this['editor']['editing']['view']['getDomRoot'](_0x614d69);if(!_0x38be96)continue;const _0x56daf8=_0x38be96['getClientRects']()['item'](0x0);_0x56daf8&&(_0x9e4a1f['push'](_0x614d69),_0x37660b['set'](_0x614d69,_0x56daf8));}return _0x9e4a1f['sort']((_0x47bca5,_0x248d6c)=>{const _0x52fdad=_0x37660b['get'](_0x47bca5),_0x1fb27e=_0x37660b['get'](_0x248d6c);return _0x52fdad['y']-_0x1fb27e['y']||_0x52fdad['x']-_0x1fb27e['x'];}),(_0x4b1ad4=_0x4b1ad4['filter'](_0x198dd8=>_0x9e4a1f['includes'](_0x198dd8['rootName'])))['sort']((_0x2c9291,_0x1b4ff5)=>_0x9e4a1f['indexOf'](_0x2c9291['rootName'])-_0x9e4a1f['indexOf'](_0x1b4ff5['rootName'])),_0x4b1ad4;}['_makeTape'](_0x1cba1f){const _0x4939f9=Array['from'](_0x1cba1f['markers'])['filter'](([_0x68009e,_0x3c4f5e])=>_0x68009e['startsWith']('revision:')&&!_0x3c4f5e['isCollapsed']),_0x1b3ca1=Array['from'](this['editor']['model']['createRangeIn'](_0x1cba1f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4939f9['length'])for(const _0x145b51 of _0x1b3ca1){const [_0x4b2597,_0x302642]=_0x4939f9[0x0],[,_0x52e36d,_0x4d7f63]=_0x4b2597['split'](':');if(_0x302642['end']['isEqual'](_0x145b51['nextPosition'])&&_0x4939f9['shift'](),(_0x145b51['previousPosition']['isEqual'](_0x302642['start'])||_0x145b51['previousPosition']['isAfter'](_0x302642['start']))&&('insertion'==_0x52e36d?_0x145b51['isAdded']={'userId':_0x4d7f63}:'deletion'==_0x52e36d&&(_0x145b51['isRemoved']={'userId':_0x4d7f63})),0x0==_0x4939f9['length'])break;}return _0x1b3ca1;}['_refreshStartEndIndex'](_0x1ce42a){const _0x3835e5=new Map();for(let _0x156726=0x0;_0x156726<_0x1ce42a['length'];_0x156726++)'text'===_0x1ce42a[_0x156726]['type']?(_0x1ce42a[_0x156726]['item']['startIndex']=_0x156726,_0x1ce42a[_0x156726]['item']['endIndex']=_0x156726):('elementStart'===_0x1ce42a[_0x156726]['type']?_0x1ce42a[_0x156726]['item']['startIndex']=_0x156726:'elementEnd'===_0x1ce42a[_0x156726]['type']&&(_0x1ce42a[_0x156726]['item']['endIndex']=_0x156726),_0x3835e5['set'](_0x1ce42a[_0x156726]['id'],_0x156726));for(const _0x383e67 of _0x3835e5['values']())'elementStart'===_0x1ce42a[_0x383e67]['type']?_0x1ce42a[_0x383e67]['item']['endIndex']=_0x3835e5['get'](_0x1ce42a[_0x383e67]['pairId']):'elementEnd'===_0x1ce42a[_0x383e67]['type']&&(_0x1ce42a[_0x383e67]['item']['startIndex']=_0x3835e5['get'](_0x1ce42a[_0x383e67]['pairId']));}['_processTape'](_0x2a47f2){for(let _0x4ad4e8=0x0;_0x4ad4e8<_0x2a47f2['length'];_0x4ad4e8++){if('elementStart'===_0x2a47f2[_0x4ad4e8]['type'])_0x2a47f2[_0x4ad4e8]['item']['startIndex']=_0x4ad4e8;else{if('elementEnd'===_0x2a47f2[_0x4ad4e8]['type']){_0x2a47f2[_0x4ad4e8]['item']['endIndex']=_0x4ad4e8;const _0x13b9fb=_0x2a47f2[_0x4ad4e8]['item']['startIndex'];_0x2a47f2[_0x13b9fb]['pairId']=_0x2a47f2[_0x4ad4e8]['id'],_0x2a47f2[_0x4ad4e8]['pairId']=_0x2a47f2[_0x13b9fb]['id'];}else _0x2a47f2[_0x4ad4e8]['item']['startIndex']=_0x4ad4e8,_0x2a47f2[_0x4ad4e8]['item']['endIndex']=_0x4ad4e8,_0x2a47f2[_0x4ad4e8]['pairId']=null;}_0x2a47f2[_0x4ad4e8]['markersStart']||(_0x2a47f2[_0x4ad4e8]['markersStart']=[],_0x2a47f2[_0x4ad4e8]['markersEnd']=[]);}}['_markInsertions'](_0x5f55ad,_0x4d4ebf){const _0x3c1bf4=_0x5f55ad['filter'](_0x1bc065=>!_0x1bc065['isAdded']);for(let _0x1b82a1=0x0;_0x1b82a1<_0x4d4ebf['length'];_0x1b82a1++)_0x4d4ebf[_0x1b82a1]['isAdded']&&(_0x3c1bf4[_0x1b82a1]['isAdded']=_0x4d4ebf[_0x1b82a1]['isAdded']);}['_makeModelFromViewString'](_0x5f021d){const _0x206d99=JSON['parse'](_0x5f021d),_0x462dd0=this['editor']['editing']['view']['document'],_0x275abe=new _0x1764ce(_0x462dd0,_0x206d99['map'](_0x3efc08=>this['_getViewObj'](_0x3efc08)));return this['editor']['data']['toModel'](_0x275abe);}['_getViewObj'](_0x58a00b){const _0x2d2f66=this['editor']['editing']['view']['document'];if('string'==typeof _0x58a00b)return new _0x5d5858(_0x2d2f66,_0x58a00b);{const _0x33c38d=_0x58a00b['children']['map'](_0x48507a=>this['_getViewObj'](_0x48507a));return new(Y[_0x58a00b['type']]||_0x1b6da8)(_0x2d2f66,_0x58a00b['name'],_0x58a00b['attributes'],_0x33c38d);}}['_getDiff'](_0xc6b001,_0x49bfd8=null){const _0x3f6578=this['repository']['getRevision'](_0xc6b001),_0x32f0fa=_0x49bfd8?this['repository']['getRevision'](_0x49bfd8):null,_0x34bb78=this['_getRevisionsRange'](_0x3f6578,_0x32f0fa),_0x3ece75=_0x34bb78[_0x34bb78['length']-0x1],_0x26624a=new Map(),_0x258db1={'model':{},'attributes':{},'changes':[]},_0x13a43c=new Set(),_0x39a8ad=new Map();for(let _0x4a6432=_0x34bb78['length']-0x1;_0x4a6432>=0x0;_0x4a6432--){const _0x3e7707=_0x34bb78[_0x4a6432];for(const _0x887838 of Object['keys'](_0x3e7707['diffData']))if(_0x3e7707['diffData'][_0x887838]['attachChange']){const _0x4de1f0=_0x3e7707['diffData'][_0x887838]['attachChange'];_0x4de1f0['isAttached']?(_0x13a43c['add'](_0x887838),_0x39a8ad['has'](_0x887838)&&_0x39a8ad['get'](_0x887838)['userId']==_0x4de1f0['userId']?_0x39a8ad['delete'](_0x887838):_0x39a8ad['set'](_0x887838,_0x4de1f0)):_0x39a8ad['has'](_0x887838)?(_0x13a43c['delete'](_0x887838),_0x39a8ad['delete'](_0x887838)):(_0x13a43c['add'](_0x887838),_0x39a8ad['set'](_0x887838,_0x4de1f0));}else _0x13a43c['add'](_0x887838);}for(const _0x1e7406 of _0x13a43c){const _0x3b1ff7=_0x39a8ad['has'](_0x1e7406)&&!_0x39a8ad['get'](_0x1e7406)['isAttached'];let _0x1af615=_0x3b1ff7?_0x34bb78['length']-0x1:0x0;const _0x120035=_0x3b1ff7?-0x1:0x1;for(;_0x34bb78[_0x1af615];){const _0x2538b4=_0x34bb78[_0x1af615];if(_0x2538b4['diffData'][_0x1e7406]){const _0x4a73af=_0x3b1ff7?_0x2538b4['diffData'][_0x1e7406]['attributesBefore']:_0x2538b4['diffData'][_0x1e7406]['attributesAfter'];_0x258db1['attributes'][_0x1e7406]=_0x4a73af?_0x3e1187(_0x4a73af):{};break;}_0x1af615+=_0x120035;}}for(const _0x2425b6 of _0x34bb78){_0x2425b6['model']={};for(const _0x561662 of _0x2425b6['authors'])_0x26624a['set'](_0x561662['id'],_0x561662);for(const _0x39947e of _0x13a43c){const _0x957de6=_0x2425b6['diffData'][_0x39947e]?_0x2425b6['diffData'][_0x39947e]['insertions']:'[]',_0x371392=_0x2425b6['diffData'][_0x39947e]?_0x2425b6['diffData'][_0x39947e]['deletions']:'[]';_0x2425b6['model'][_0x39947e]={'insertions':this['_makeModelFromViewString'](_0x957de6),'deletions':this['_makeModelFromViewString'](_0x371392)};}}for(const _0x4916fc of _0x13a43c){let _0x19255f=null,_0x527cdb=0x0;const _0x4a765c=new Map(Array['from'](_0x3f6578['model'][_0x4916fc]['insertions']['markers'])['filter'](([_0x232721])=>!_0x232721['startsWith']('revision:')));let _0xebef25=0x0;for(const _0x504117 of _0x34bb78){const _0x359c61=this['_makeTape'](_0x504117['model'][_0x4916fc]['insertions']);_0x504117==_0x3f6578?(_0x19255f=_0x359c61,_0x527cdb=_0x19255f['length'],_0x19255f['forEach'](_0x2be188=>{_0x2be188['id']=_0xebef25++;}),this['_processTape'](_0x19255f)):this['_markInsertions'](_0x19255f,_0x359c61);const _0x2c19fe=_0x19255f['filter'](_0x219449=>!_0x219449['isAdded'])['map'](_0xd060f8=>_0xd060f8['id']);let _0x4cf02e=0x0;const _0x5a426b=this['_makeTape'](_0x504117['model'][_0x4916fc]['deletions']);_0x5a426b['forEach'](_0x3fe27e=>{_0x3fe27e['isRemoved']?_0x3fe27e['id']=_0x527cdb++:_0x3fe27e['id']=_0x2c19fe[_0x4cf02e++];}),this['_processTape'](_0x5a426b),this['_setDistance'](_0x19255f,'isAdded'),this['_setDistance'](_0x5a426b,'isRemoved'),_0x504117==_0x3f6578&&this['_markMarkers'](_0x19255f,_0x4a765c),_0x19255f=this['_joinTapes'](_0x19255f,_0x5a426b),this['_refreshStartEndIndex'](_0x19255f),this['_setDistance'](_0x19255f,'isRemoved');}_0x19255f=_0x19255f['filter'](_0x55209a=>!(_0x55209a['isAdded']&&_0x55209a['isRemoved']));const _0x242e37=new Map(_0x3ece75['model'][_0x4916fc]['deletions']['markers']),_0x598650=new Set(_0x4a765c['keys']());for(const _0x1204f7 of _0x242e37['keys']())_0x598650['delete'](_0x1204f7);this['_markSuggestions'](_0x19255f,_0x598650),this['_fixObsoleteTags'](_0x19255f),_0x19255f=this['_removeMissingPairs'](_0x19255f),_0x19255f=this['_markMismatchedRemovedTags'](_0x19255f),_0x19255f=this['_removeUnsupportedChanges'](_0x19255f);const {root:_0x9a89a3,changes:_0x61de51}=this['_makeModelFromTape'](_0x19255f,_0x26624a,_0x4916fc);_0x258db1['model'][_0x4916fc]=_0x9a89a3;const _0x11e107=_0x39a8ad['get'](_0x4916fc);if(_0x11e107){const _0x3cf4e8=_0x26624a['get'](_0x11e107['userId']),_0x448037=new r({'author':_0x3cf4e8,'type':_0x11e107['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4916fc});_0x61de51['unshift'](_0x448037),_0x258db1['attributes'][_0x4916fc]['revisionHistoryAttachChange']=_0x448037['id'];}_0x258db1['changes']=_0x258db1['changes']['concat'](_0x61de51);}return _0x258db1;}['_markMarkers'](_0x2923a6,_0x1fcdbe){for(let _0x3fa24a=0x0;_0x3fa24a<_0x2923a6['length'];_0x3fa24a++)for(const [_0xd68fed,_0x174cea]of _0x1fcdbe)_0x174cea['start']['isEqual'](_0x2923a6[_0x3fa24a]['previousPosition'])&&_0x2923a6[_0x3fa24a]['markersStart']['push'](_0xd68fed),_0x174cea['end']['isEqual'](_0x2923a6[_0x3fa24a]['nextPosition'])&&_0x2923a6[_0x3fa24a]['markersEnd']['push'](_0xd68fed);}['_joinTapes'](_0xaf88e7,_0x3b258e){let _0x52ba9c=[],_0x10b461=0x0,_0x5c6fb9=0x0;for(;_0x10b461<_0xaf88e7['length']||_0x5c6fb9<_0x3b258e['length'];){const _0x6153b9=_0xaf88e7[_0x10b461]||{},_0x2c0675=_0x3b258e[_0x5c6fb9]||{};if(_0x6153b9['id']==_0x2c0675['id'])_0x10b461++,_0x5c6fb9++,_0x52ba9c['push'](_0x6153b9);else{if(_0x2c0675['isRemoved']&&_0x6153b9['isAdded']){const {commonTape:_0x12fad7,iEnd:_0x4adda7,jEnd:_0x11c025}=this['_threeWayMerge'](_0xaf88e7,_0x10b461,_0x3b258e,_0x5c6fb9);_0x52ba9c=_0x52ba9c['concat'](_0x12fad7),_0x10b461=_0x4adda7,_0x5c6fb9=_0x11c025;}else _0x2c0675['isRemoved']?(_0x5c6fb9++,_0x52ba9c['push'](_0x2c0675)):(_0x10b461++,_0x52ba9c['push'](_0x6153b9));}}return _0x52ba9c;}['_markSuggestions'](_0x40c582,_0x2d2e93){const _0x42be72=[];for(let _0x349d3c=0x0;_0x349d3c<_0x40c582['length'];_0x349d3c++){for(let _0x46ff09=0x0;_0x46ff09<_0x40c582[_0x349d3c]['markersStart']['length'];_0x46ff09++){const _0x4e6534=_0x40c582[_0x349d3c]['markersStart'][_0x46ff09];if(!_0x2d2e93['has'](_0x4e6534))continue;const {group:_0x206424,type:_0x51bcb4,authorId:_0xc962dd}=_0xbbd753(_0x4e6534);'revision-suggestion'!=_0x206424||'insertion'!=_0x51bcb4&&'deletion'!=_0x51bcb4||(_0x42be72['unshift']({'type':_0x51bcb4,'name':_0x4e6534,'userId':_0xc962dd}),_0x40c582[_0x349d3c]['markersStart']['splice'](_0x46ff09,0x1),_0x46ff09--);}_0x4d6536(_0x40c582[_0x349d3c]);for(let _0x1a03a5=0x0;_0x1a03a5<_0x40c582[_0x349d3c]['markersEnd']['length'];_0x1a03a5++){const _0x2df919=_0x40c582[_0x349d3c]['markersEnd'][_0x1a03a5];if(!_0x2d2e93['has'](_0x2df919))continue;const {group:_0x3a6a61,type:_0x1648c0}=_0xbbd753(_0x2df919);if('revision-suggestion'!=_0x3a6a61||'insertion'!=_0x1648c0&&'deletion'!=_0x1648c0)continue;_0x40c582[_0x349d3c]['markersEnd']['splice'](_0x1a03a5,0x1),_0x1a03a5--;const _0xc8808=_0x42be72['findIndex'](_0x4ed428=>_0x4ed428['name']==_0x2df919);_0xc8808>-0x1&&_0x42be72['splice'](_0xc8808,0x1);}}function _0xbbd753(_0x121b43){const _0x566255=_0x121b43['split'](':');return{'group':_0x566255[0x0],'type':_0x566255[0x1],'subType':_0x566255['length']>=0x5?_0x566255[0x2]:null,'id':_0x566255['length']<0x5?_0x566255[0x2]:_0x566255[0x3],'authorId':_0x566255['length']<0x5?_0x566255[0x3]:_0x566255[0x4],'markerCount':0x6==_0x566255['length']?_0x566255[0x5]:null};}function _0x4d6536(_0x464055){for(let _0x5998ed=0x0;_0x5998ed<_0x42be72['length'];_0x5998ed++){if(_0x464055['isAdded']&&'insertion'==_0x42be72[_0x5998ed]['type'])return _0x464055['isAddSuggestion']=_0x42be72[_0x5998ed],void delete _0x464055['isAdded'];if(!_0x464055['isAdded']&&!_0x464055['isRemoved']&&'deletion'==_0x42be72[_0x5998ed]['type'])return void(_0x464055['isRemoveSuggestion']=_0x42be72[_0x5998ed]);}}}['_setDistance'](_0x46490c,_0x1d6403){let _0x4f6b6b=0x0,_0x5f15df=!0x1;const _0x3099fe=new Map();for(const _0x1c71aa of _0x46490c)_0x1c71aa[_0x1d6403]?_0x5f15df&&(_0x4f6b6b++,_0x5f15df=!0x1):(_0x4f6b6b++,_0x5f15df=!0x0),_0x3099fe['set'](_0x1c71aa['id'],_0x4f6b6b);for(let _0x316427=0x0;_0x316427<_0x46490c['length'];_0x316427++){if('isRemoved'==_0x1d6403&&_0x46490c[_0x316427]['isAdded']||'isAdded'==_0x1d6403&&_0x46490c[_0x316427]['isRemoved'])continue;if('text'==_0x46490c[_0x316427]['type']){_0x46490c[_0x316427]['distance']=0x0;continue;}const _0x259b86=_0x3099fe['get'](_0x46490c[_0x316427]['pairId']),_0xe82aa3=_0x3099fe['get'](_0x46490c[_0x316427]['id']);_0x46490c[_0x316427]['distance']=_0x259b86-_0xe82aa3;}}['_getRevisionsRange'](_0xbf5777,_0x410a86,_0x39001e=!0x1){const _0x11da1f=[];let _0x246434=this['repository']['getIndex'](_0xbf5777),_0x3e6e42=this['repository']['getIndex'](_0x410a86);for(-0x1==_0x3e6e42&&(_0x3e6e42=this['repository']['_revisions']['length'],_0x39001e=!0x1);_0x246434<_0x3e6e42;)_0x11da1f['push'](this['repository']['getRevision'](_0x246434)),_0x246434++;return _0x39001e&&_0x11da1f['push'](this['repository']['getRevision'](_0x246434)),_0x11da1f;}['_threeWayMerge'](_0x2c4c2e,_0x31716a,_0x33de91,_0x3e7ad0){const _0x5cc62f=this['editor']['model']['schema'];let _0x132d1e=_0x31716a;for(;_0x2c4c2e[_0x132d1e]&&_0x2c4c2e[_0x132d1e]['isAdded'];)_0x132d1e++;let _0x224c24=_0x3e7ad0;for(;_0x33de91[_0x224c24]&&_0x33de91[_0x224c24]['isRemoved'];)_0x224c24++;_0x205bec(_0x2c4c2e,_0x31716a,_0x132d1e),_0x205bec(_0x33de91,_0x3e7ad0,_0x224c24);const _0x532399=_0x33de91['slice'](_0x3e7ad0,_0x224c24)['concat'](_0x2c4c2e['slice'](_0x31716a,_0x132d1e));return _0x532399['sort']((_0xb5a03a,_0x1efecc)=>_0xb5a03a['side']!=_0x1efecc['side']?_0xb5a03a['side']-_0x1efecc['side']:_0xb5a03a['level']!=_0x1efecc['level']?_0xb5a03a['level']-_0x1efecc['level']:_0xb5a03a['distance']!=_0x1efecc['distance']?_0x1efecc['distance']-_0xb5a03a['distance']:!!_0xb5a03a['isAdded']!=!!_0x1efecc['isAdded']?-0x1==_0xb5a03a['side']||0x0==_0xb5a03a['side']?_0xb5a03a['isAdded']?-0x1:0x1:_0xb5a03a['isAdded']?0x1:-0x1:_0xb5a03a['index']-_0x1efecc['index']),{'commonTape':_0x532399,'iEnd':_0x132d1e,'jEnd':_0x224c24};function _0x205bec(_0x1157f6,_0x43658b,_0x36f2ad){let _0x55f003=-0x1,_0x34e955=Number['POSITIVE_INFINITY'],_0x368d6f=!0x0;for(let _0x4a844f=_0x43658b;_0x4a844f<_0x36f2ad;_0x4a844f++)if(_0x5cc62f['isInline'](_0x1157f6[_0x4a844f]['item'])||(_0x368d6f=!0x1),_0x1157f6[_0x4a844f]['item']['startIndex']<_0x43658b&&(_0x55f003=_0x4a844f),_0x1157f6[_0x4a844f]['item']['endIndex']>=_0x36f2ad){_0x34e955=_0x4a844f;break;}_0x368d6f&&(_0x55f003=_0x36f2ad-0x1);for(let _0x5a0d8e=_0x43658b;_0x5a0d8e<_0x36f2ad;_0x5a0d8e++)_0x1157f6[_0x5a0d8e]['side']=_0x5a0d8e<=_0x55f003?-0x1:_0x5a0d8e<_0x34e955?0x0:0x1,_0x1157f6[_0x5a0d8e]['index']=_0x5a0d8e;let _0x461016=0x0;for(let _0x1cadf7=_0x43658b;_0x1cadf7<=_0x55f003;_0x1cadf7++)0x0==_0x1157f6[_0x1cadf7]['distance']?_0x1157f6[_0x1cadf7]['level']=_0x461016:(_0x461016++,_0x1157f6[_0x1cadf7]['level']=_0x461016,_0x461016++);for(let _0x2afa41=_0x43658b;_0x2afa41<_0x36f2ad;_0x2afa41++)0x0==_0x1157f6[_0x2afa41]['side']&&(_0x1157f6[_0x2afa41]['level']=_0x461016);_0x461016=0x0;for(let _0x46bf6b=_0x36f2ad-0x1;_0x46bf6b>=_0x34e955;_0x46bf6b--)0x0==_0x1157f6[_0x46bf6b]['distance']?_0x1157f6[_0x46bf6b]['level']=_0x461016:(_0x461016--,_0x1157f6[_0x46bf6b]['level']=_0x461016,_0x461016--);}}['_fixObsoleteTags'](_0x31b35e){const _0x4cffcd=new Map(),_0x4a275f=this['editor']['model']['schema'];for(let _0x677375=0x1;_0x677375<_0x31b35e['length'];_0x677375++){let _0x2e4de1,_0x24f9e1,_0x3161b1;const _0x2883cc=_0x31b35e[_0x677375],_0x5beaaf=_0x31b35e[_0x677375-0x1];if('text'==_0x2883cc['type'])continue;if(_0x2883cc['type']!=_0x5beaaf['type'])continue;if(!_0x4a275f['isBlock'](_0x5beaaf['item'])||_0x4a275f['isLimit'](_0x5beaaf['item']))continue;if(!_0x4a275f['isBlock'](_0x2883cc['item'])||_0x4a275f['isLimit'](_0x2883cc['item']))continue;if((_0x31b35e[_0x677375]['isAdded']||_0x31b35e[_0x677375]['isAddSuggestion'])&&_0x31b35e[_0x677375-0x1]['isRemoved'])_0x2e4de1=_0x31b35e[_0x677375],_0x24f9e1=_0x31b35e[_0x677375-0x1],_0x3161b1=_0x677375-0x1;else{if(!_0x31b35e[_0x677375]['isRemoved']||!_0x31b35e[_0x677375-0x1]['isAdded']&&!_0x31b35e[_0x677375-0x1]['isAddSuggestion'])continue;_0x2e4de1=_0x31b35e[_0x677375-0x1],_0x24f9e1=_0x31b35e[_0x677375],_0x3161b1=_0x677375;}const _0x25c7da=_0x2e4de1['level']==_0x24f9e1['level'],_0x5c56a6=Math['abs'](_0x2e4de1['level'])<Math['abs'](_0x24f9e1['level'])&&0x0==_0x24f9e1['distance'];(_0x25c7da||_0x5c56a6)&&(_0x4cffcd['set'](_0x24f9e1['id'],_0x2e4de1['id']),_0x31b35e['splice'](_0x3161b1,0x1),_0x677375--,_0x2e4de1['isAdded']=!0x1);}for(let _0x5c6353=0x0;_0x5c6353<_0x31b35e['length'];_0x5c6353++)_0x4cffcd['has'](_0x31b35e[_0x5c6353]['pairId'])&&(_0x31b35e[_0x5c6353]['pairId']=_0x4cffcd['get'](_0x31b35e[_0x5c6353]['pairId']));}['_removeMissingPairs'](_0x1fe5d5){const _0xc38410=new Set(_0x1fe5d5['map'](_0x17631b=>_0x17631b['id']));for(let _0x114be=0x0;_0x114be<_0x1fe5d5['length'];_0x114be++)_0xc38410['has'](_0x1fe5d5[_0x114be]['pairId'])||0x0==_0x1fe5d5[_0x114be]['distance']||(_0x1fe5d5[_0x114be]['isIncorrect']=!0x0);return _0x1fe5d5['filter'](_0x562dfa=>!_0x562dfa['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1df4c8){const _0x2eeb0e=new Set();for(let _0x576c10=0x0;_0x576c10<_0x1df4c8['length'];_0x576c10++){if(_0x2eeb0e['has'](_0x1df4c8[_0x576c10]['id'])&&_0x1df4c8[_0x576c10]['isRemoved']&&(_0x1df4c8[_0x576c10]['isIncorrect']=!0x0),_0x1df4c8[_0x576c10]['isIncorrect'])continue;if(0x0==_0x1df4c8[_0x576c10]['distance'])continue;if('elementStart'!=_0x1df4c8[_0x576c10]['type'])continue;if(null==_0x1df4c8[_0x576c10]['pairId'])continue;let _0x4e4066=_0x576c10+0x1,_0x10dfd6=0x0;for(;_0x1df4c8[_0x4e4066]['id']!=_0x1df4c8[_0x576c10]['pairId'];)'elementStart'==_0x1df4c8[_0x4e4066]['type']?_0x10dfd6++:'elementEnd'==_0x1df4c8[_0x4e4066]['type']&&_0x10dfd6--,_0x4e4066++;if(0x0!=_0x10dfd6){if(_0x1df4c8[_0x576c10]['isRemoved'])_0x1df4c8[_0x576c10]['isIncorrect']=!0x0;else{for(;_0x4e4066!=_0x576c10;)_0x1df4c8[_0x4e4066]['isRemoved']&&0x0!=_0x1df4c8[_0x4e4066]['distance']&&(_0x1df4c8[_0x4e4066]['isIncorrect']=!0x0,_0x2eeb0e['add'](_0x1df4c8[_0x4e4066]['pairId'])),_0x4e4066--;}}}return _0x1df4c8['filter'](_0x8f85f=>!_0x8f85f['isIncorrect']);}['_removeUnsupportedChanges'](_0x127b47){const _0x37191e=this['editor']['model']['schema'];for(let _0x4660d9=0x0;_0x4660d9<_0x127b47['length'];_0x4660d9++){if(!(_0x127b47[_0x4660d9]['isAdded']||_0x127b47[_0x4660d9]['isAddSuggestion']||_0x127b47[_0x4660d9]['isRemoved']||_0x127b47[_0x4660d9]['isRemoveSuggestion']))continue;if(0x0==_0x127b47[_0x4660d9]['distance'])continue;const _0x166bb8=_0x127b47[_0x4660d9]['item'];_0x37191e['isBlock'](_0x166bb8)||_0x37191e['isLimit'](_0x166bb8)||(_0x127b47[_0x4660d9]['isAdded']&&delete _0x127b47[_0x4660d9]['isAdded'],_0x127b47[_0x4660d9]['isAddSuggestion']&&delete _0x127b47[_0x4660d9]['isAddSuggestion'],_0x127b47[_0x4660d9]['isRemoveSuggestion']&&delete _0x127b47[_0x4660d9]['isRemoveSuggestion'],_0x127b47[_0x4660d9]['isRemoved']&&(_0x127b47[_0x4660d9]['isIncorrect']=!0x0));}return _0x127b47['filter'](_0x2bf2b9=>!_0x2bf2b9['isIncorrect']);}['_makeModelFromTape'](_0x471642,_0x2ab6a9,_0x147994){const _0x278abc=new gt(),_0x263fce=[],_0x1a8dac=new Map(),_0x3380b6=this['editor']['model'],_0x323b18=_0x3380b6['schema'],_0xab1b04=[_0x278abc],_0x23da25={},_0x189db1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x286b0f=null;const _0x5838f2=[0x0];for(let _0x308aa9=0x0;_0x308aa9<_0x471642['length'];_0x308aa9++)if('elementStart'===_0x471642[_0x308aa9]['type']){_0x471642[_0x308aa9]['previousPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2);const _0x3965f6=new ut(_0x471642[_0x308aa9]['item']['name'],_0x471642[_0x308aa9]['item']['getAttributes']());_0xab1b04[0x0]['_appendChild'](_0x3965f6),_0x5838f2['push'](0x0),_0xab1b04['unshift'](_0x3965f6),_0x471642[_0x308aa9]['nextPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2);}else'elementEnd'===_0x471642[_0x308aa9]['type']?(_0xab1b04['shift'](),_0x471642[_0x308aa9]['previousPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2),_0x5838f2['pop'](),_0x5838f2[_0x5838f2['length']-0x1]++,_0x471642[_0x308aa9]['nextPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2)):(_0x471642[_0x308aa9]['previousPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2),_0x286b0f?_0x286b0f['_data']+=_0x471642[_0x308aa9]['item']['data']:_0x286b0f=new wt(_0x471642[_0x308aa9]['item']['data'],_0x471642[_0x308aa9]['item']['getAttributes']()),_0x471642[_0x308aa9+0x1]&&'text'===_0x471642[_0x308aa9+0x1]['type']&&_0x2e865b(_0x286b0f,_0x471642[_0x308aa9+0x1]['item'])||(_0xab1b04[0x0]['_appendChild'](_0x286b0f),_0x286b0f=null),_0x5838f2[_0x5838f2['length']-0x1]+=_0x471642[_0x308aa9]['item']['offsetSize'],_0x471642[_0x308aa9]['nextPosition']=_0x3380b6['createPositionFromPath'](_0x278abc,_0x5838f2));for(let _0x220c25=0x0;_0x220c25<_0x471642['length'];_0x220c25++){const _0x6069a6=_0x471642[_0x220c25]['previousPosition'],_0x53dc35=_0x471642[_0x220c25]['nextPosition'];for(const _0x1c8a7e of _0x471642[_0x220c25]['markersStart'])_0x1a8dac['set'](_0x1c8a7e,{'start':_0x6069a6,'end':null});_0x438cf5('isRemoveSuggestion',_0x220c25,_0x6069a6,_0x53dc35),_0x438cf5('isAddSuggestion',_0x220c25,_0x6069a6,_0x53dc35),_0x438cf5('isRemoved',_0x220c25,_0x6069a6,_0x53dc35),_0x438cf5('isAdded',_0x220c25,_0x6069a6,_0x53dc35);for(const _0x4048bf of _0x471642[_0x220c25]['markersEnd']){_0x1a8dac['get'](_0x4048bf)['end']=_0x53dc35;}}for(const [_0x163a03,_0x2e1581]of _0x1a8dac){const _0x411d1a=this['editor']['model']['createRange'](_0x2e1581['start'],_0x2e1581['end']);_0x278abc['markers']['set'](_0x163a03,_0x411d1a);}return _0x263fce['sort']((_0x595911,_0x4fe6b0)=>{const _0x3f31d6=_0x278abc['markers']['get']('revision:'+_0x595911['id']),_0x58989e=_0x278abc['markers']['get']('revision:'+_0x4fe6b0['id']);return _0x3f31d6['start']['isBefore'](_0x58989e['start'])?-0x1:_0x3f31d6['start']['isAfter'](_0x58989e['start'])?0x1:_0x3f31d6['end']['isBefore'](_0x58989e['end'])?-0x1:_0x3f31d6['end']['isAfter'](_0x58989e['end'])?0x1:'add'===_0x595911['type']?-0x1:0x1;}),{'root':_0x278abc,'changes':_0x263fce};function _0x438cf5(_0x6782e1,_0x4a549a,_0x2fa2ff,_0x4d18b1){const _0x1ec137=!!_0x471642[_0x4a549a][_0x6782e1],_0x224d40=_0x1ec137?_0x471642[_0x4a549a][_0x6782e1]['userId']:null,_0x506b3f=_0x4a549a===_0x471642['length']-0x1,_0x43ad14=_0x189db1[_0x6782e1][0x0],_0x467c26=_0x323b18['isObject'](_0x471642[_0x4a549a]['item']);!_0x23da25[_0x6782e1]&&_0x1ec137?_0x23da25[_0x6782e1]={'start':_0x2fa2ff,'tapeItem':_0x471642[_0x4a549a],'userId':_0x224d40,'type':_0x6782e1}:_0x23da25[_0x6782e1]&&!_0x1ec137?(_0x23da25[_0x6782e1]['end']=_0x2fa2ff,_0x5c1b7b(_0x23da25[_0x6782e1]),_0x23da25[_0x6782e1]=null):_0x23da25[_0x6782e1]&&_0x1ec137&&_0x23da25[_0x6782e1]['userId']!==_0x224d40&&(_0x23da25[_0x6782e1]['end']=_0x2fa2ff,_0x43ad14&&_0x43ad14['userId']===_0x23da25[_0x6782e1]['userId']||_0x5c1b7b(_0x23da25[_0x6782e1]),_0x23da25[_0x6782e1]={'start':_0x2fa2ff,'tapeItem':_0x471642[_0x4a549a],'userId':_0x224d40,'type':_0x6782e1}),_0x23da25[_0x6782e1]&&_0x467c26&&('elementStart'!==_0x471642[_0x4a549a]['type']||_0x43ad14&&_0x43ad14['userId']===_0x224d40||_0x189db1[_0x6782e1]['unshift']({'userId':_0x224d40,'object':_0x471642[_0x4a549a]['item'],'change':_0x23da25[_0x6782e1]}),'elementEnd'===_0x471642[_0x4a549a]['type']&&_0x43ad14&&_0x43ad14['object']===_0x471642[_0x4a549a]['item']&&(_0x189db1[_0x6782e1]['shift'](),_0x23da25[_0x6782e1]=_0x43ad14['change'])),_0x23da25[_0x6782e1]&&_0x506b3f&&(_0x23da25[_0x6782e1]['end']=_0x4d18b1,_0x5c1b7b(_0x23da25[_0x6782e1]),_0x23da25[_0x6782e1]=null);}function _0x5c1b7b({start:_0x1329cb,end:_0x291d41,tapeItem:_0x1519aa,userId:_0xd4287e,type:_0x13c9fd}){const _0x2b6aa3=_0x1519aa['item'],_0x18c991=_0x3380b6['schema']['isBlock'](_0x2b6aa3)&&!_0x3380b6['schema']['isLimit'](_0x2b6aa3),_0x13e0b6=_0x1329cb['nodeAfter']==_0x291d41['parent']&&_0x291d41['isAtStart'];if(_0x18c991&&_0x13e0b6)return;const _0x3b0b82=_0x3380b6['createRange'](_0x1329cb,_0x291d41),_0x1cb09f=_0x2ab6a9['get'](_0xd4287e),_0x4444ad=new r({'author':_0x1cb09f,'type':'isAdded'==_0x13c9fd||'isAddSuggestion'==_0x13c9fd?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x13c9fd||'isRemoveSuggestion'==_0x13c9fd},'createdAt':new Date(),'rootName':_0x147994});_0x263fce['push'](_0x4444ad),_0x278abc['markers']['set']('revision:'+_0x4444ad['id'],_0x3b0b82);}function _0x2e865b(_0xe6c0c,_0x27f480){const _0x5ac698=_0xe6c0c['getAttributes'](),_0x2cfd1b=_0x27f480['getAttributes']();for(const _0x505122 of _0x5ac698){if(_0x505122[0x1]!==_0x27f480['getAttribute'](_0x505122[0x0]))return!0x1;_0x2cfd1b['next']();}return _0x2cfd1b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3cd74d=>{const _0x2852ea=_0x3cd74d['markerName']['split'](':')[0x1],_0x3ff1e3=this['_getChangeFromId'](_0x2852ea);if(!_0x3ff1e3)return null;const _0x15b472='add'==_0x3ff1e3['type']?'insertion':'deletion',_0x5c77d9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x15b472];return _0x3ff1e3['data']['isSuggestion']&&_0x5c77d9['push']('ck-suggestion-marker-'+_0x15b472+'-new'),this['activeChange']==_0x3ff1e3&&_0x5c77d9['push']('ck-suggestion-marker--active'),{'classes':_0x5c77d9,'attributes':{'data-change-id':_0x2852ea}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x22605c=>{_0x22605c['on']('element:pre',(_0x21f015,_0x3eb4fc,_0x10fd7d)=>{const _0x28e2ff=_0x3eb4fc['viewItem']['getChild'](0x0);if(!_0x28e2ff||!_0x28e2ff['is']('element','code'))return;if(!_0x10fd7d['consumable']['consume'](_0x28e2ff,{'attributes':['vid_start','vid_end']}))return;const _0x4e107e=_0x3eb4fc['modelRange']['start']['nodeAfter'];_0x10fd7d['writer']['setAttribute']('vid_start',_0x28e2ff['getAttribute']('vid_start'),_0x4e107e),_0x10fd7d['writer']['setAttribute']('vid_end',_0x28e2ff['getAttribute']('vid_end'),_0x4e107e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4454df=>{_0x4454df['on']('element',(_0x36cc4a,_0x3415f6,_0x5d708e)=>{if(!_0x5d708e['consumable']['consume'](_0x3415f6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3415f6['modelRange']['isCollapsed'])return;const _0x493d82=_0x3415f6['modelRange']['start']['nodeAfter'];_0x493d82['hasAttribute']('vid_start')||_0x493d82['hasAttribute']('vid')||(_0x5d708e['writer']['setAttribute']('vid_start',_0x3415f6['viewItem']['getAttribute']('vid_start'),_0x493d82),_0x5d708e['writer']['setAttribute']('vid_end',_0x3415f6['viewItem']['getAttribute']('vid_end'),_0x493d82));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x46bf8c=>_0x46bf8c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe9dcf1,[,_0x425015])=>{['vid_start','vid_end','vid']['includes'](_0x425015)&&(_0xe9dcf1['return']=!0x0,_0xe9dcf1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3f887c=>{_0x3f887c['on']('attribute:vid',(_0x3c5d82,_0x4080c4,_0x2fdb81)=>{if('\x20'!=_0x4080c4['item']['data']||_0x4080c4['item']['parent']['maxOffset']>0x1)return;if(!_0x2fdb81['consumable']['consume'](_0x4080c4['item'],_0x3c5d82['name']))return;const _0x1350c3=_0x2fdb81['writer'],_0x3b0b5c=_0x2fdb81['mapper']['toViewRange'](_0x4080c4['range']);_0x1350c3['wrap'](_0x3b0b5c,_0x1350c3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3e10e1){const _0x3980d9=_0x3e10e1['plugins']['get']('RevisionViewer');return(_0x153a8e,_0x35fa0d,_0x21441e)=>{const _0x1f17fe=_0x35fa0d['markerName']['split'](':')[0x1],_0x592527=_0x3980d9['_getChangeFromId'](_0x1f17fe);if(!_0x592527)return null;const _0x310d80='add'==_0x592527['type']?'split':'merge';if(!_0x21441e['consumable']['test'](_0x35fa0d['markerRange'],_0x153a8e['name']))return;const _0x56ab5c=_0x35fa0d['markerRange']['getWalker'](),_0x3f290f=_0x35fa0d['markerRange']['start'],_0x358b8d=_0x3e10e1['model']['schema'];let _0x5d802e=null,_0x21b927=null,_0x2e3cee=!0x1,_0x5677b4=!0x1;for(const _0x23b05d of _0x56ab5c){const _0x340b50=_0x23b05d['item'];_0x2e3cee=_0x2e3cee||_0x358b8d['isContent'](_0x340b50);const _0x5dde86=_0x21441e['mapper']['toViewElement'](_0x340b50);if(_0x5dde86&&_0x5dde86['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23b05d['type']&&(_0x358b8d['isBlock'](_0x340b50)&&!_0x358b8d['isLimit'](_0x340b50)&&(_0x340b50['nextSibling']||_0x3f290f['isAtEnd']?_0x5d802e&&_0x5d802e['parent']==_0x340b50||(_0x5d802e=_0x340b50,_0xff9cd9(_0x23b05d['previousPosition']),_0x5677b4=!0x0):_0x21b927=_0x21b927||_0x23b05d['previousPosition']));}function _0xff9cd9(_0x5db73d){const _0x20b2ea=_0x21441e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x310d80}),_0x5f488e=_0x21441e['mapper']['toViewPosition'](_0x5db73d);_0x592527['data']['isSuggestion']&&_0x21441e['writer']['addClass']('ck-suggestion-marker-'+_0x310d80+'-new',_0x20b2ea),_0x3980d9['activeChange']==_0x592527&&_0x21441e['writer']['addClass']('ck-suggestion-marker--active',_0x20b2ea),_0x21441e['writer']['insert'](_0x5f488e,_0x20b2ea),_0x21441e['mapper']['bindElementToMarker'](_0x20b2ea,_0x35fa0d['markerName']);}_0x2e3cee||_0x5677b4||!_0x21b927||_0xff9cd9(_0x21b927);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5a3db7,_0x3853ac,_0x15d804)=>{const _0x2c3980=_0x15d804['mapper']['markerNameToElements'](_0x3853ac['markerName']);if(_0x2c3980){for(const _0x5d7970 of _0x2c3980)(_0x5d7970['hasClass']('ck-suggestion-marker-split')||_0x5d7970['hasClass']('ck-suggestion-marker-merge'))&&(_0x15d804['mapper']['unbindElementFromMarkerName'](_0x5d7970,_0x3853ac['markerName']),_0x15d804['writer']['remove'](_0x5d7970));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5c48f6,_0x1e5efa,_0x54af85)=>{const _0x26cae6=_0x1e5efa['markerName']['split'](':')[0x1],_0x17afb9=this['_getChangeFromId'](_0x26cae6);if(!_0x17afb9)return null;const _0x565516='add'==_0x17afb9['type']?'split':'merge';if(_0x54af85['consumable']['test'](_0x1e5efa['markerRange'],_0x5c48f6['name']))for(const _0x34895c of _0x1e5efa['markerRange']['getItems']()){if(!_0x34895c['is']('element','softBreak'))continue;const _0x260ec8=_0x54af85['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x565516}),_0x401696=_0x54af85['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x34895c));_0x17afb9['data']['isSuggestion']&&_0x54af85['writer']['addClass']('ck-suggestion-marker-'+_0x565516+'-new',_0x260ec8),this['activeChange']==_0x17afb9&&_0x54af85['writer']['addClass']('ck-suggestion-marker--active',_0x260ec8),_0x54af85['writer']['insert'](_0x401696,_0x260ec8),_0x54af85['mapper']['bindElementToMarker'](_0x260ec8,_0x1e5efa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1f8dc7=>{for(const _0x255782 of this['editor']['model']['document']['getRootNames']()){const _0x47e7b3=this['editor']['model']['document']['getRoot'](_0x255782),_0x20553a=this['editor']['editing']['view']['document']['getRoot'](_0x255782);if(_0x20553a){const _0x48eaaf=_0x47e7b3['getAttribute']('revisionHistoryAttachChange');if(_0x1f8dc7['removeAttribute']('data-change-id',_0x20553a),_0x1f8dc7['removeClass']('ck-revision-history-root-add',_0x20553a),_0x1f8dc7['removeClass']('ck-revision-history-root-remove',_0x20553a),_0x1f8dc7['removeClass']('ck-revision-history-root--active',_0x20553a),_0x48eaaf){const _0x4993ad=this['_getChangeFromId'](_0x48eaaf);if(!_0x4993ad)return null;_0x1f8dc7['setAttribute']('data-change-id',_0x48eaaf,_0x20553a),_0x1f8dc7['addClass']('ck-revision-history-root-'+_0x4993ad['type'],_0x20553a),this['activeChange']==_0x4993ad&&_0x1f8dc7['addClass']('ck-revision-history-root--active',_0x20553a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x267865=>'revision-comment:'+_0x267865,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x15f43b=>'revision-suggestion:'+_0x15f43b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3246c2=>({'name':'suggestion:'+_0x3246c2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x275639=>{const _0x46c859=_0x275639['markerName']['split'](':')[0x1];return'insertion'!=_0x46c859&&'deletion'!=_0x46c859?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x46c859]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x222630,_0x40159a,_0x1b1b00)=>{const _0x3efe50=_0x1b1b00['mapper']['markerNameToElements'](_0x40159a['markerName']);if(_0x3efe50){for(const _0x5aeb46 of _0x3efe50)_0x5aeb46['is']('uiElement')&&(_0x1b1b00['mapper']['unbindElementFromMarkerName'](_0x5aeb46,_0x40159a['markerName']),_0x1b1b00['writer']['remove'](_0x5aeb46));}},{'priority':'high'});}['_getChangeFromId'](_0x49ea7c){return this['_changeIdToChange']['get'](_0x49ea7c);}['_getViewForChange'](_0x1337ee){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1337ee),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x312a2c,_0x471fc6,_0x9c226b,_0x359738)=>{_0x359738&&this['_balloon']['remove'](_0x359738),_0x9c226b&&(this['_balloon']['add']({'view':_0x9c226b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x13a2fb=this['editor']['editing'],_0x4d0bbc=this['_getChangeFromId'](_0x9c226b['changeId']);let _0x8b3625;if(_0x4d0bbc['data']['isOnRoot']){const _0x54f4c8=_0x13a2fb['view']['getDomRoot'](_0x4d0bbc['rootName']);_0x8b3625=Array['from'](_0x54f4c8['getClientRects']());}else{const _0x37aff1=this['editor']['model']['markers']['get']('revision:'+_0x9c226b['changeId']);_0x8b3625=Array['from'](_0x13a2fb['mapper']['markerNameToElements'](_0x37aff1['name']))['map'](_0x30a658=>_0x13a2fb['view']['domConverter']['mapViewToDom'](_0x30a658))['map'](_0x29e3c6=>Array['from'](_0x29e3c6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x8b3625[0x0];return _0x8b3625['find'](_0x607b05=>_0x607b05['top']-0x3<=this['_activeViewTarget']['y']&&_0x607b05['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x607b05['left']-0x3<=this['_activeViewTarget']['x']&&_0x607b05['right']+0x3>=this['_activeViewTarget']['x'])||_0x8b3625[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5bfd11,_0x259587,_0x519451,_0x4275e6)=>{this['activeView']=_0x519451?this['_getViewForChange'](_0x519451):null,this['editor']['model']['change'](()=>{const _0x550e42=this['editor']['editing'];_0x4275e6&&(_0x4275e6['data']['isOnRoot']?_0x550e42['view']['change'](_0x24657c=>{_0x24657c['removeClass']('ck-revision-history-root--active',_0x550e42['view']['document']['getRoot'](_0x4275e6['rootName']));}):_0x550e42['reconvertMarker']('revision:'+_0x4275e6['id'])),_0x519451&&(_0x519451['data']['isOnRoot']?_0x550e42['view']['change'](_0x120f8c=>{_0x120f8c['addClass']('ck-revision-history-root--active',_0x550e42['view']['document']['getRoot'](_0x519451['rootName']));}):_0x550e42['reconvertMarker']('revision:'+_0x519451['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xfb7f79,_0x270cb7)=>{if(this['activeChange'])return;const _0x22be99=this['_findChangeIdFromDomTarget'](_0x270cb7['target']),_0x50d152=this['_changeIdToChange']['get'](_0x22be99);_0x50d152?(this['_activeViewTarget']={'x':_0x270cb7['domEvent']['x'],'y':_0x270cb7['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x50d152)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1de11d,_0xd5b616)=>{const _0x3d2855=this['_findChangeIdFromDomTarget'](_0xd5b616['target']),_0x44a4f6=this['_changeIdToChange']['get'](_0x3d2855);_0x44a4f6?(this['_activeViewTarget']={'x':_0xd5b616['domEvent']['x'],'y':_0xd5b616['domEvent']['y']},_0x44a4f6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x44a4f6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x11c869){do{const _0x1edf13=_0x11c869['getAttribute']('data-change-id');if(_0x1edf13)return _0x1edf13;_0x11c869=_0x11c869['parent'];}while(_0x11c869);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x47da2c=>{for(const _0x11db2b of this['editor']['model']['markers'])_0x47da2c['removeMarker'](_0x11db2b);});}}function Z(_0x406021,_0x1e240b){return(_0x67f2a3,_0x503369,_0x3eef49)=>{if(!_0x3eef49['consumable']['test'](_0x503369['markerRange'],_0x67f2a3['name']))return;const _0xf65389=_0x503369['markerRange']['getWalker'](),_0x3ce79c=_0x503369['markerRange']['start'],_0x4c60f3=_0x406021['model']['schema'];let _0x4dece2=null,_0x2a880a=null,_0x279236=!0x1,_0x742c68=!0x1;for(const _0x23adfc of _0xf65389){const _0x10ecaf=_0x23adfc['item'];_0x279236=_0x279236||_0x4c60f3['isContent'](_0x10ecaf);const _0xf5f1f1=_0x3eef49['mapper']['toViewElement'](_0x10ecaf);if(_0xf5f1f1&&_0xf5f1f1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23adfc['type']&&(_0x4c60f3['isBlock'](_0x10ecaf)&&!_0x4c60f3['isLimit'](_0x10ecaf)&&(_0x10ecaf['nextSibling']||_0x3ce79c['isAtEnd']?_0x4dece2&&_0x4dece2['parent']==_0x10ecaf||(_0x4dece2=_0x10ecaf,_0x219116(_0x23adfc['previousPosition']),_0x742c68=!0x0):_0x2a880a=_0x2a880a||_0x23adfc['previousPosition']));}function _0x219116(_0x3b904d){const _0x467c6e=_0x3eef49['mapper']['toViewPosition'](_0x3b904d),_0x12d481=_0x3eef49['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1e240b});_0x3eef49['writer']['insert'](_0x467c6e,_0x12d481),_0x3eef49['mapper']['bindElementToMarker'](_0x12d481,_0x503369['markerName']);}_0x279236||_0x742c68||!_0x2a880a||_0x219116(_0x2a880a);};}class _t extends _0x27b68e{constructor(_0x591971){super(_0x591971);const _0x12b505=_0x591971['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x12b505,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x12b505,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x321291=this['editor'],_0xae5d1b=_0x321291['plugins']['get'](d),_0x57d92d=_0xae5d1b['isReady']?_0xae5d1b['diff']['newRevisionId']:null;_0x321291['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x57d92d);}['refresh'](){const {isReady:_0x43d2bc,isEnabled:_0x33b20e,repository:_0x307bb1,diff:_0x3c3ca0}=this['editor']['plugins']['get'](d),_0x266644=_0x3c3ca0&&_0x307bb1['getLaterVisibleRevision'](_0x3c3ca0['newRevisionId']);this['isEnabled']=_0x43d2bc&&_0x33b20e&&Boolean(_0x266644);}}class yt extends _0x27b68e{['_step'];constructor(_0x115670,{direction:_0x248890}){super(_0x115670);const _0x122403=_0x115670['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x248890?0x1:-0x1,this['listenTo'](_0x122403,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x122403,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x122403,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x406f75=this['editor'],_0x163216=_0x406f75['plugins']['get'](d),{isNavigationMode:_0x53a79d,currentChangeNumber:_0x5d0a54}=_0x163216;let _0x1da9e8;if(_0x163216['activeChange']=_0x53a79d?_0x163216['diff']['changes']['get'](_0x5d0a54+this['_step']):_0x163216['diff']['changes']['first'],_0x163216['activeChange']['data']['isOnRoot'])_0x1da9e8=_0x406f75['editing']['view']['getDomRoot'](_0x163216['activeChange']['rootName']);else{const _0xae7ed3=_0x406f75['model']['markers']['get']('revision:'+_0x163216['activeChange']['id']);_0x1da9e8=_0x13bcd1(_0x406f75['editing'],_0xae7ed3);}_0xaf28a7({'target':_0x1da9e8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2661a5,currentChangeNumber:_0x2f629a,numberOfChanges:_0x8d79d8,isReady:_0x3f6d3d,isEnabled:_0x2a9598}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2a9598&&_0x3f6d3d&&_0x8d79d8)&&(!_0x2661a5||(0x1===this['_step']?_0x2f629a<_0x8d79d8-0x1:_0x2f629a>0x0));}}class li extends _0x2556fc{constructor(_0x48054c){super(_0x48054c);const _0x160f4f=this['bindTemplate'],_0x1f1901=new _0x19ff9c(_0x48054c),_0x520cf8=new _0x19ff9c(_0x48054c);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',(_0x4efae3,_0x40afe7)=>_0x4efae3&&_0x40afe7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x19735b,_0x4bb3c0,_0x21a1d4,_0x2c9430)=>{if(!_0x19735b)return m(_0x48054c,'Loading...');if(!_0x21a1d4)return m(_0x48054c,'No\x20changes');const _0xaa26eb=m(_0x48054c,'NUMBER_OF_CHANGES',_0x21a1d4);return _0x2c9430?m(_0x48054c,'X_OF_Y_CHANGES',[_0x4bb3c0+0x1,_0x21a1d4]):_0xaa26eb;}),_0x1f1901['set']({'label':m(_0x48054c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x353a70}),_0x520cf8['set']({'label':m(_0x48054c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x28484c}),_0x1f1901['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x520cf8['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1f1901['on']('execute',()=>this['fire']('execute','backward')),_0x520cf8['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',_0x160f4f['if']('_isStatusLabelVisible','ck-hidden',_0x281938=>!_0x281938)]},'children':[{'text':_0x160f4f['to']('isNavigationMode',_0x4951e2=>_0x4951e2?m(_0x48054c,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x48054c,'Total')+':\x20')}]},{'text':_0x160f4f['to']('_statusText')}]},new _0x5a2048(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1f1901,_0x520cf8]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x550265{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x31f07e=this['editor']['editing']['view'];_0x31f07e['change'](_0x21f1f0=>{for(const _0x58d843 of _0x31f07e['document']['roots'])_0x21f1f0['addClass'](ce,_0x58d843);});}['hide'](){const _0x5a2c21=this['editor']['editing']['view'];_0x5a2c21['change'](_0x587b83=>{for(const _0x172114 of _0x5a2c21['document']['roots'])_0x587b83['removeClass'](ce,_0x172114);});}}class w extends _0x550265{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x34ca1f=this['editor'],_0x366ca4=_0x34ca1f['plugins']['get'](d),_0x399658=_0x34ca1f['plugins']['get'](le);_0x34ca1f['ui']['componentFactory']['add']('exitToEditing',_0x1da1ca=>{const _0x35ab42=new _0x19ff9c(_0x1da1ca);return _0x35ab42['set']({'label':m(_0x1da1ca,'Back\x20to\x20editing'),'icon':_0x590b14,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x35ab42,'execute',()=>{_0x34ca1f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x35ab42;}),_0x34ca1f['ui']['componentFactory']['add']('restoreRevision',_0x3ff880=>{const _0x4e5f89=new _0x19ff9c(_0x3ff880);return _0x4e5f89['set']({'label':m(_0x3ff880,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e5f89['bind']('isEnabled')['to'](_0x34ca1f['commands']['get']('restoreRevision')),this['listenTo'](_0x4e5f89,'execute',()=>_0x34ca1f['execute']('restoreRevision')),_0x4e5f89;}),_0x34ca1f['ui']['componentFactory']['add']('changesNavigation',_0x2c8c51=>{const _0x50332d=new li(_0x2c8c51),_0x7da4c4=_0x34ca1f['commands']['get']('showPreviousChange'),_0xa671fc=_0x34ca1f['commands']['get']('showNextChange');return _0x50332d['bind']('isBackwardNavigationEnabled')['to'](_0x7da4c4,'isEnabled'),_0x50332d['bind']('isForwardNavigationEnabled')['to'](_0xa671fc,'isEnabled'),_0x50332d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x366ca4),this['listenTo'](_0x50332d,'execute',(_0x34a284,_0x4928b8)=>{_0x34ca1f['execute']('forward'===_0x4928b8?'showNextChange':'showPreviousChange');}),_0x50332d;}),_0x399658['show'](),_0x366ca4['on']('change:isReady',(_0x44d034,_0x2f2ccd,_0x872f8b)=>{_0x872f8b?_0x399658['hide']():_0x399658['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x4d953c,_0x42fa82){super(_0x4d953c,_0x42fa82);const _0x55e28f=this['bindTemplate'];this['set']({'label':m(_0x4d953c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4d953c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x55e28f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x47a291=this['fieldView']['element'];this['_tooltipString']=_0x47a291['scrollWidth']>_0x47a291['clientWidth']&&_0x47a291['value']||'';}}class oi extends _0x2556fc{constructor(_0x5336d0,_0x42f323,_0x267dab){super(_0x5336d0);const _0x2714f6=new _0x46d144();_0x2714f6['set']({'content':_0x23a47e,'viewBox':'0\x200\x2011\x2010'});const _0x376500=['ck','ck-revision-history-sidebar__revision-author'];_0x267dab&&_0x376500['push']('ck-revision-history-sidebar__revision-author_creator');const _0x18901b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5336d0,_0x267dab?'Revision\x20creator':'Revision\x20author')},'children':[_0x2714f6,_0x42f323['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x376500},'children':_0x18901b});}}function ni(_0x1cf170,_0x14316e){const _0x165349=_0x1cf170['bindTemplate'],_0x19bca1=_0x1cf170['locale'],_0x487e9c=_0x1922d9(_0x19bca1);_0x487e9c['panelPosition']='sw';const _0x257880=function(_0x5ea07b,_0x3a2aa0){const _0x591a0e=function(_0x24aab6,_0x360240){const _0x4f8978=_0x24aab6['locale'],_0x2ccc0e={'Compare\x20against\x20selected':m(_0x4f8978,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4f8978,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4f8978,'Restore\x20this\x20revision')};return _0x360240['map'](_0x2af4c7=>{const _0x39663b=_0x2ccc0e[_0x2af4c7['name']];return _0x39663b&&_0x39663b!==_0x2af4c7['name']&&(_0x2af4c7['name']=_0x39663b),_0x2af4c7;});}(_0x5ea07b,_0x3a2aa0),_0x33e471=new _0x2ea35a();for(const _0xd8203f of _0x591a0e){const _0xf75fa={'type':'button','model':new to({'label':_0xd8203f['name'],'class':_0xd8203f['class'],'withText':!0x0,'role':'menuitem','_action':_0xd8203f['action']})};_0xf75fa['model']['bind']('isEnabled')['to'](_0x5ea07b,'isActionsDropdownOpen',_0x5040c9=>'function'!=typeof _0xd8203f['isEnabled']||(!_0x5040c9||_0xd8203f['isEnabled'](_0x5ea07b))),_0x33e471['add'](_0xf75fa);}return _0x33e471;}(_0x1cf170,_0x14316e);return _0x1cf170['bind']('isActionsDropdownOpen')['to'](_0x487e9c,'isOpen'),_0x487e9c['buttonView']['set']({'label':m(_0x19bca1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x9cdaf6}),_0x487e9c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x165349['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x165349['to'](_0x4df9e3=>_0x4df9e3['stopPropagation']())}}),_0x487e9c['on']('execute',_0x6ddeb2=>{_0x1cf170['isReady']&&'function'==typeof _0x6ddeb2['source']['_action']&&_0x6ddeb2['source']['_action'](_0x1cf170);}),_0x506b9f(_0x487e9c,_0x257880,{'role':'menu'}),_0x487e9c['listenTo'](_0x1cf170,'change:isActionsDropdownOpen',(_0x57ac49,_0x59857b,_0x5889bf)=>{if(_0x5889bf)for(const _0x20cb96 of _0x487e9c['listView']['items']){const _0xbe49fc=_0x20cb96['children']['first'],_0x405e0e=_0x14316e['find'](_0x5ae32a=>_0x5ae32a['action']===_0xbe49fc['_action'])['isVisible'];_0x20cb96['isVisible']=void 0x0===_0x405e0e||_0x405e0e(_0x1cf170);}}),_0x487e9c;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x3a182d(_0x2556fc){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x385dc6,_0x200e19,_0x4d6fed,_0x2fe1b9){super(_0x385dc6);const _0x10dd8f=this['bindTemplate'],_0x2962d9=function(_0x2bc13f,_0xa4f7a3){const _0x4849d1=Array['from'](_0xa4f7a3['authors'])['filter'](_0x544be0=>_0x544be0!=_0xa4f7a3['creator']);return _0xa4f7a3['creator']&&_0x4849d1['unshift'](_0xa4f7a3['creator']),_0x4849d1['map'](_0x12a8ed=>new oi(_0x2bc13f,_0x12a8ed,_0x12a8ed==_0xa4f7a3['creator']));}(_0x385dc6,_0x200e19);this['id']=_0x200e19['id'],this['_revision']=_0x200e19,this['_requireRevisionName']=_0x2fe1b9,this['bind']('name','createdAt')['to'](_0x200e19),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2dabe2=>{return _0x24f5df=_0x385dc6['uiLanguage'],(_0x276909=_0x2dabe2)['toLocaleDateString'](_0x24f5df,{'month':'long','day':'numeric'})+',\x20'+_0x276909['toLocaleTimeString'](_0x24f5df,{'hour':'numeric','minute':'numeric'});var _0x24f5df,_0x276909;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x385dc6,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4ce11a=>_0x4ce11a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x86c6b3,_0x33c7c9)=>_0x86c6b3&&_0x33c7c9),this['revisionActionsView']=_0x4d6fed&&_0x4d6fed['length']?ni(this,_0x4d6fed):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x10dd8f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x10dd8f['if']('isEnabled','ck-disabled',_0x5b9452=>!_0x5b9452),_0x10dd8f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x10dd8f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x10dd8f['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':_0x10dd8f['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':_0x2962d9}]},this['revisionActionsView']],'on':{'click':_0x10dd8f['to'](_0x2914ba=>{_0x2914ba['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x376a14=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x376a14,'change',()=>{this['_requireRevisionName']&&!_0x376a14['value']||this['fire']('setName',{'id':this['id'],'name':_0x376a14['value']}),_0x376a14['value']||(_0x376a14['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3416c4,_0x25d4f3){const _0x5208a9=_0x559f44['fromJSDate'](_0x3416c4)['setLocale'](_0x25d4f3),_0x26a680=_0x559f44['local'](),_0x37a2cb=_0x26a680['minus']({'days':0x1})['startOf']('day');let _0x46f48c,_0x16bbe2;return _0x5208a9['hasSame'](_0x26a680,'day')?(_0x46f48c=_0x5208a9['startOf']('day')['toJSDate'](),_0x16bbe2=_0x5208a9['toRelativeCalendar']()):_0x5208a9['hasSame'](_0x37a2cb,'day')?(_0x46f48c=_0x37a2cb['toJSDate'](),_0x16bbe2=_0x5208a9['toRelativeCalendar']()):_0x5208a9['hasSame'](_0x26a680,'week')?(_0x46f48c=_0x5208a9['startOf']('week')['toJSDate'](),_0x16bbe2=_0x5208a9['weekdayLong']||''):_0x5208a9['hasSame'](_0x26a680,'year')?(_0x46f48c=_0x5208a9['startOf']('month')['toJSDate'](),_0x16bbe2=_0x5208a9['monthLong']||''):(_0x46f48c=_0x5208a9['startOf']('year')['toJSDate'](),_0x16bbe2=String(_0x5208a9['year'])),{'startDate':_0x46f48c,'localizedPeriodName':_0x16bbe2};}class _i extends _0x2556fc{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2e6b04,_0x329043,_0x2892df,_0x36757e){super(_0x2e6b04);const _0x28c680=mi(_0x329043,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x329043,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2892df,this['_requireRevisionName']=_0x36757e,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':_0x28c680}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x241234){const _0x13fd61=new ai(this['locale'],_0x241234,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x13fd61);}['removeRevision'](_0x139b1c){const _0x4cb99a=this['revisionViews']['find'](_0x499c6f=>_0x499c6f['id']===_0x139b1c['id']);this['revisionViews']['remove'](_0x4cb99a);}}class as extends _0x2556fc{constructor(_0x5024d7){super(_0x5024d7);const _0x31cf1c=new _0x46d144();_0x31cf1c['content']=_0x37efe1,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x31cf1c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5024d7,'Revision\x20history')]}]});}}class vi extends _0x2556fc{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3ac541,_0x1ca9db,_0x3f5eb0,_0x5f264e){super(_0x3ac541);const _0x2698a0=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1ca9db,this['_revisionActions']=_0x3f5eb0,this['_requireRevisionName']=_0x5f264e,this['on']('select',(_0x11a13f,_0x47a494)=>{this['fire']('revisionSelected',_0x47a494);}),this['on']('setName',(_0x52674f,_0x145a14)=>{this['fire']('revisionSetName',_0x145a14);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3ac541),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2698a0['if']('isEnabled','ck-disabled',_0x532b3d=>!_0x532b3d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x306645 of this['_revisions'])this['_addRevision'](_0x306645);this['_revisions']['on']('add',(_0xfeb8c1,_0x568f86)=>{this['_addRevision'](_0x568f86);}),this['_revisions']['on']('remove',(_0x3220db,_0x4f64d9)=>{this['_removeRevision'](_0x4f64d9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x141660=>_0x141660['revisionViews']['map'](_0x4e0d76=>_0x4e0d76))['flat']();}['selectRevision'](_0x187a3a){for(const _0x19889e of this['revisionViews'])_0x187a3a&&_0x187a3a['id']===_0x19889e['id']?_0x19889e['select']():_0x19889e['deselect']();}['highlightRevisions'](_0x5d1987){for(const _0x48e844 of this['revisionViews'])_0x5d1987['some'](({id:_0x14f7a6})=>_0x14f7a6===_0x48e844['id'])?_0x48e844['highlight']():_0x48e844['unhighlight']();}['_addRevision'](_0x4195bb){const _0x25cc52=mi(_0x4195bb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5711fc=this['timePeriodViews']['get'](0x0);_0x5711fc&&_0x5711fc['startDate']['getTime']()===_0x25cc52['getTime']()||(_0x5711fc=new _i(this['locale'],_0x25cc52,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5711fc)),_0x5711fc['addRevision'](_0x4195bb);}['_removeRevision'](_0x2c78f0){const _0x5a015a=mi(_0x2c78f0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5a015a)['removeRevision'](_0x2c78f0);}['_getTimePeriodViewByStartDate'](_0x650dee){return this['timePeriodViews']['find'](_0x43748f=>_0x43748f['startDate']['getTime']()===_0x650dee['getTime']());}}class g extends _0x550265{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x40dcb4,uid as _0x1916c0,Collection as _0x3c6e40,logWarning as _0x2f4f67,FocusTracker as _0x99741a,KeystrokeHandler as _0x243516,scrollViewportToShowTarget as _0x437d98,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x2159a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x7494e5,set as _0x178db5,unset as _0x38bb2f,isEqual as _0x1e33ae}from'es-toolkit/compat';import{Plugin as _0x657f6f,PendingActions as _0x26dbef,Command as _0xb699a1,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x54c8db,getMarkerDomElement as _0x54c68b,ConfirmMixin as ti,sanitizeEditorConfig as _0x49f976}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x42c523,Element as ut,Range as ft,ViewUIElement as _0x486d16,ViewRawElement as _0x333e25,ViewEmptyElement as _0x24a98b,ViewAttributeElement as _0x287f2b,ViewContainerElement as _0x1523ca,Position as vt,ViewText as _0x39cc50,ViewElement as _0x1e70bc,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3f127c,IconChevronUp as _0xf1e0bd,IconChevronDown as _0x533264,IconUndo as _0x28f7d6,IconUser as _0x53afc8,IconThreeVerticalDots as _0x50c83d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x407e11,submitHandler as _0x3c3987,LabeledFieldView as _0x4f90d2,createLabeledInputText as _0x1a5665,createDropdown as _0xabbbe1,ListView as _0x2f8ba0,ListItemView as _0x493811,ButtonView as te,MenuBarMenuView as _0x2f28bb,MenuBarMenuListView as _0x3ed85c,MenuBarMenuListItemView as _0x8bb199,MenuBarMenuListItemButtonView as _0x4160e3,ContextualBalloon as _0x431a50,ToolbarSeparatorView as _0x4fe4cd,IconView as _0xc8a0bd,addListToDropdown as _0x3fbca8,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x498060}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x40dcb4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x24bd27){super(),this['id']=_0x24bd27['id']||_0x1916c0(),this['creator']=_0x24bd27['creator']||null,this['authors']=_0x24bd27['authors']||[],this['diffData']=_0x24bd27['diffData']||null,this['toVersion']=_0x24bd27['toVersion']||0x0,this['fromVersion']=_0x24bd27['fromVersion']||0x0,this['set']('name',_0x24bd27['name']||''),this['set']('createdAt',_0x24bd27['createdAt']||new Date()),this['set']('attributes',_0x24bd27['attributes']||{});}['setName'](_0x19dee4){this['_update']({'name':_0x19dee4});}['setAttribute'](_0x40284b,_0x44ab04){const _0x253881=_0x7494e5(this['attributes']);_0x178db5(_0x253881,_0x40284b,_0x44ab04),this['_update']({'attributes':_0x253881});}['removeAttribute'](_0x8d9ce5){const _0x478fb7=_0x7494e5(this['attributes']);_0x38bb2f(_0x478fb7,_0x8d9ce5),this['_update']({'attributes':_0x478fb7});}['_update'](_0x44cdba,_0x30f48b=!0x1){let _0x4af3a2=!0x1;const _0x3cd844={'id':this['id']},_0x5228ad=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x35e986 of _0x5228ad){const _0x542f76=_0x44cdba[_0x35e986];void 0x0!==_0x542f76&&_0x542f76!==this[_0x35e986]&&(this[_0x35e986]=_0x542f76,_0x3cd844[_0x35e986]=_0x542f76,_0x4af3a2=!0x0);}_0x4af3a2&&(_0x3cd844['authors']&&(_0x3cd844['authorsIds']=_0x3cd844['authors']['map'](_0xce5cdd=>_0xce5cdd['id']),delete _0x3cd844['authors']),this['fire']('_update',_0x3cd844,_0x30f48b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5d2eb8=>_0x5d2eb8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x657f6f{['_revisions'];static get['requires'](){return[_0x54c8db];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5649f6){super(_0x5649f6),this['_revisions']=new _0x3c6e40();}['afterInit'](){!async function(_0x2ffb4d){const _0x185cc6=_0x3b61eb([0x64,0x4c,0x4e,0x46,0x39,0x34,0x4a,0x6d,0x43,0x70,0x38,0x45,0x49,0x54,0x35,0x78,0x76,0x33,0x68,0x58,0x62,0x75,0x6f,0x50,0x51,0x71,0x67,0x7a,0x44,0x36,0x37,0x31,0x6a,0x59,0x6c,0x4d,0x6e,0x66,0x30,0x53,0x65,0x41,0x52,0x47,0x55,0x61,0x32,0x63,0x4f,0x4b,0x77,0x56,0x6b,0x48,0x74,0x5a,0x73,0x57,0x79,0x72,0x69,0x42]),_0x551ca9=0xeb829,_0x24b18c=0x396c8159,_0x23b3f1=0x396be0f9^_0x24b18c,_0x3b3a99=window[_0x3b61eb([0x44,0x61,0x74,0x65])][_0x3b61eb([0x6e,0x6f,0x77])](),_0x226912=_0x2ffb4d[_0x3b61eb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x229bd3=new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56e467=>{_0x226912[_0x3b61eb([0x6f,0x6e,0x63,0x65])](_0x3b61eb([0x72,0x65,0x61,0x64,0x79]),_0x56e467);}),_0x316ce5={[_0x3b61eb([0x6b,0x74,0x79])]:_0x3b61eb([0x45,0x43]),[_0x3b61eb([0x75,0x73,0x65])]:_0x3b61eb([0x73,0x69,0x67]),[_0x3b61eb([0x63,0x72,0x76])]:_0x3b61eb([0x50,0x2d,0x32,0x35,0x36]),[_0x3b61eb([0x78])]:_0x3b61eb([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]),[_0x3b61eb([0x79])]:_0x3b61eb([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]),[_0x3b61eb([0x61,0x6c,0x67])]:_0x3b61eb([0x45,0x53,0x32,0x35,0x36])},_0x24f5c8=_0x226912[_0x3b61eb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b61eb([0x67,0x65,0x74])](_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c5a2f(){let _0x91027e,_0x2877c2=null,_0x289175=null;try{if(_0x24f5c8==_0x3b61eb([0x47,0x50,0x4c]))return _0x3b61eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x91027e=_0x57274f(),!_0x91027e)return _0x3b61eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x91027e[_0x3b61eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x289175=_0x3161b4(_0x91027e[_0x3b61eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x91027e[_0x3b61eb([0x6a,0x74,0x69])])),await _0x55d88f()?_0x45f06e()?_0x481159()?_0x3b61eb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2beaed()?(_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b61eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2877c2=_0x569e87(_0x3b61eb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b61eb([0x74,0x72,0x69,0x61,0x6c])&&(_0x2877c2=_0x569e87(_0x3b61eb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x381793()):_0x3b61eb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b61eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b61eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x42ed17){return _0x3b61eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x481159(){const _0x2e25c0=[_0x3b61eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b61eb([0x74,0x72,0x69,0x61,0x6c])][_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b3a99/0x3e8:0xe10*_0x23b3f1;return _0x91027e[_0x3b61eb([0x65,0x78,0x70])]<_0x2e25c0;}function _0x45f06e(){const _0x17dbf7=_0x91027e[_0x3b61eb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x17dbf7)return!0x1;if(_0x17dbf7[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x2a])))return!0x0;if(_0x17dbf7[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x52,0x48])))return!0x0;if(_0x17dbf7[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x52,0x52,0x48]))){if(_0x303d0a())return!0x0;if(_0x141662()||_0x16c9ce())return!0x0;}return!0x1;}function _0x2beaed(){const _0x24f630=_0x91027e[_0x3b61eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24f630||0x0==_0x24f630[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ca0e4}=new URL(window[_0x3b61eb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24f630[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ca0e4))return!0x0;const _0x5e5923=_0x1ca0e4[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e]));return _0x24f630[_0x3b61eb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b3a5c=>_0x3b3a5c[_0x3b61eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b61eb([0x2a])))[_0x3b61eb([0x6d,0x61,0x70])](_0xcfc9d7=>_0xcfc9d7[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e])))[_0x3b61eb([0x73,0x6f,0x6d,0x65])](_0x41d514=>_0x5e5923[_0x3b61eb([0x65,0x76,0x65,0x72,0x79])]((_0xc8caf3,_0x55b82a)=>_0x41d514[_0x55b82a]===_0xc8caf3||_0x41d514[_0x55b82a]===_0x3b61eb([0x2a])));}function _0x381793(){return _0x2877c2&&_0x289175?new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x194f01,_0x2ab87b)=>{_0x2877c2[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x194f01,_0x2ab87b),_0x289175[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x549f33=>{_0x549f33!=_0x3b61eb([0x56,0x61,0x6c,0x69,0x64])&&_0x194f01(_0x549f33);},_0x2ab87b);}):_0x2877c2||_0x289175||_0x3b61eb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3161b4(_0x5c654c,_0x3375ba){return new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271208=>{if(_0x5bddeb())return _0x271208(_0x3b61eb([0x56,0x61,0x6c,0x69,0x64]));_0x585819(),_0x226912[_0x3b61eb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b61eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ebb9d=!0x1;const _0x490fd5=_0x1916c0();function _0x104565(_0x4430b0){return!!_0x4430b0&&(typeof _0x4430b0===_0x3b61eb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4430b0===_0x3b61eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4430b0[_0x3b61eb([0x74,0x68,0x65,0x6e])]===_0x3b61eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4430b0[_0x3b61eb([0x63,0x61,0x74,0x63,0x68])]===_0x3b61eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28b304(_0xfdda5){_0x8d6f34(_0xfdda5)[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x27b85f=>{if(!_0x27b85f||_0x27b85f[_0x3b61eb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b61eb([0x6f,0x6b]))return _0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27717a(_0x26e325(_0x490fd5+_0x3375ba))!=_0x27b85f[_0x3b61eb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b61eb([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x519699=>(_0x5c705b(),_0x519699),()=>{const _0x4c0683=_0x44bef9();return null==_0x4c0683?(_0x5c705b(),_0x3b61eb([0x56,0x61,0x6c,0x69,0x64])):_0x3b61eb(_0x3b3a99-_0x4c0683>(0x1d600559^_0x24b18c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x271208)[_0x3b61eb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x271208(_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47370e=0x395a6fd9^_0x24b18c;function _0x5c705b(){const _0x5757ad=_0x3b61eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x27717a(_0x26e325(_0x5c654c)),_0x51878d=_0x513022(_0x27717a(window[_0x3b61eb([0x4d,0x61,0x74,0x68])][_0x3b61eb([0x63,0x65,0x69,0x6c])](_0x3b3a99/_0x47370e)));window[_0x3b61eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b61eb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5757ad,_0x51878d);}function _0x44bef9(){const _0x328246=_0x3b61eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x27717a(_0x26e325(_0x5c654c)),_0x2362bd=window[_0x3b61eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b61eb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x328246);return _0x2362bd?window[_0x3b61eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513022(_0x2362bd),0x10)*_0x47370e:null;}function _0x8d6f34(_0x2c8a75){return new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406865,_0x744f87)=>{_0x2c8a75[_0x3b61eb([0x74,0x68,0x65,0x6e])](_0x406865,_0x744f87),window[_0x3b61eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x744f87,0x396d5599^_0x24b18c);});}}_0x226912[_0x3b61eb([0x6f,0x6e])](_0x3b61eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b3ba7,_0x3f45aa)=>{if(_0x3f45aa[0x0]!=_0x5c654c)return _0x271208(_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f45aa[0x1]={..._0x3f45aa[0x1],[_0x3b61eb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x490fd5};},{[_0x3b61eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b61eb([0x68,0x69,0x67,0x68])}),_0x226912[_0x3b61eb([0x6f,0x6e])](_0x3b61eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c6086=>{_0x104565(_0x3c6086[_0x3b61eb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ebb9d=!0x0,_0x28b304(_0x3c6086[_0x3b61eb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b61eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b61eb([0x6c,0x6f,0x77])}),_0x229bd3[_0x3b61eb([0x74,0x68,0x65,0x6e])](()=>{_0x4ebb9d||_0x271208(_0x3b61eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bddeb(){return _0x226912[_0x3b61eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b61eb([0x76,0x69,0x65,0x77])][_0x3b61eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b61eb([0x61,0x75,0x74,0x6f]);}function _0x585819(){_0x226912[_0x3b61eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b61eb([0x76,0x69,0x65,0x77])][_0x3b61eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b61eb([0x61,0x75,0x74,0x6f]);}}function _0x569e87(_0x2f4a85){const _0x237871=[new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dc5c3=>setTimeout(_0x3dc5c3,0x3965bf95^_0x24b18c)),_0x229bd3[_0x3b61eb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35dd70=>{const _0x35fb77=0x396c815e^_0x24b18c,_0x438b39=_0x2ffb4d[_0x3b61eb([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3bc670(){_0x438b39[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35fb77&&_0x35dd70();}_0x3bc670(),_0x438b39[_0x3b61eb([0x6f,0x6e])](_0x3b61eb([0x61,0x64,0x64]),_0x3bc670);})),new window[(_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdf2188=>{function _0x2bd679(){for(const _0x1a3744 in window)if(window[_0x3b61eb([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3b61eb([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1a3744))&&window[_0x1a3744]==_0x551ca9)return _0xdf2188();_0x226912[_0x3b61eb([0x73,0x74,0x61,0x74,0x65])]!=_0x3b61eb([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3b61eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bd679,0x396c92d1^_0x24b18c);}_0x355ba2(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2bd679();})];return window[_0x3b61eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b61eb([0x72,0x61,0x63,0x65])](_0x237871)[_0x3b61eb([0x74,0x68,0x65,0x6e])](()=>_0x2f4a85);}async function _0x5ed59c(){if(await _0x229bd3,_0x355ba2(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x381893=_0x2ffb4d[_0x3b61eb([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x18ec8e=_0x2ffb4d[_0x3b61eb([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])](_0x381893[_0x3b61eb([0x69,0x64])]),_0x27e3f3=_0x38d00e(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x27e3f3[_0x3b61eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x381893['id'],_0x18ec8e?_0x18ec8e['id']:null,!0x0),_0x27e3f3[_0x3b61eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x27e3f3[_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x27e3f3[_0x3b61eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x8ad599,void(_0x27e3f3[_0x3b61eb([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x8ad599);}if(_0x355ba2(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x36044d=_0x38d00e(_0x3b61eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x36044d[_0x3b61eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x36044d[_0x3b61eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x36044d[_0x3b61eb([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x8ad599,_0x36044d[_0x3b61eb([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x8ad599;}_0x226912[_0x3b61eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b61eb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8ad599,_0x226912[_0x3b61eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b61eb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8ad599,_0x226912[_0x3b61eb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b61eb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x303d0a(){return _0x355ba2(_0x3b61eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x38d00e(_0x3b61eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b61eb([0x73,0x74,0x61,0x74,0x65])]==_0x3b61eb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x141662(){return _0x355ba2(_0x3b61eb([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 _0x16c9ce(){return _0x355ba2(_0x3b61eb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x485754(_0xaa8efc){const _0x2e3c4d=_0x257473();_0x226912[_0x2e3c4d]=_0x3b61eb([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])+_0xaa8efc,_0xaa8efc[_0x3b61eb([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3b61eb([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x257473()]=_0x551ca9),_0xaa8efc!=_0x3b61eb([0x56,0x61,0x6c,0x69,0x64])&&_0x5ed59c();}function _0x257473(){const _0x5ba080=window[_0x3b61eb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b61eb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b61eb([0x6e,0x6f,0x77])]())[_0x3b61eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b61eb([0x2e]),'');let _0x132c84=_0x3b61eb([0x64]);for(let _0x4d580c=0x0;_0x4d580c<_0x5ba080[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d580c+=0x2){let _0x33fa7c=window[_0x3b61eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ba080[_0x3b61eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d580c,_0x4d580c+0x2));_0x33fa7c>=_0x185cc6[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33fa7c-=_0x185cc6[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x132c84+=_0x185cc6[_0x33fa7c];}return _0x132c84;}function _0x57274f(){const _0xfc39f=_0x24f5c8[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e]));if(0x3!=_0xfc39f[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34f385(_0xfc39f[0x1]);function _0x34f385(_0x1481ce){const _0x3b8eea=_0x214a75(_0x1481ce);return _0x3b8eea&&_0x4f6d7f()?_0x3b8eea:null;function _0x4f6d7f(){const _0xebcb0f=_0x3b8eea[_0x3b61eb([0x6a,0x74,0x69])],_0x2984f9=window[_0x3b61eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xebcb0f[_0x3b61eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xebcb0f[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f6885={..._0x3b8eea,[_0x3b61eb([0x6a,0x74,0x69])]:_0xebcb0f[_0x3b61eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xebcb0f[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f6885[_0x3b61eb([0x76,0x63])],_0x26e325(_0x2f6885)==_0x2984f9;}}}async function _0x55d88f(){let _0x21a94e=!0x0;try{const _0x5a8238=_0x24f5c8[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])](_0x3b61eb([0x2e])),[_0x59716b,_0xfdf7b5,_0x596ca9]=_0x5a8238;return _0x517a15(_0x59716b),await _0x488d82(_0x59716b,_0xfdf7b5,_0x596ca9),_0x21a94e;}catch(_0x529acd){return!0x1;}function _0x517a15(_0x20df35){const _0x130d73=_0x214a75(_0x20df35);_0x130d73&&_0x130d73[_0x3b61eb([0x61,0x6c,0x67])]==_0x3b61eb([0x45,0x53,0x32,0x35,0x36])||(_0x21a94e=!0x1);}async function _0x488d82(_0x4280b3,_0x26f855,_0x262857){const _0x1c2200=window[_0x3b61eb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b61eb([0x66,0x72,0x6f,0x6d])](_0x5815cd(_0x262857),_0x135dda=>_0x135dda[_0x3b61eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10ce19=new window[(_0x3b61eb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b61eb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4280b3+_0x3b61eb([0x2e])+_0x26f855),_0x472661=window[_0x3b61eb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b61eb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x472661)return;const _0x2aa4f7=await _0x472661[_0x3b61eb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b61eb([0x6a,0x77,0x6b]),_0x316ce5,{[_0x3b61eb([0x6e,0x61,0x6d,0x65])]:_0x3b61eb([0x45,0x43,0x44,0x53,0x41]),[_0x3b61eb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b61eb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b61eb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x472661[_0x3b61eb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b61eb([0x6e,0x61,0x6d,0x65])]:_0x3b61eb([0x45,0x43,0x44,0x53,0x41]),[_0x3b61eb([0x68,0x61,0x73,0x68])]:{[_0x3b61eb([0x6e,0x61,0x6d,0x65])]:_0x3b61eb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2aa4f7,_0x1c2200,_0x10ce19)||(_0x21a94e=!0x1);}}function _0x214a75(_0x12a6a8){return _0x12a6a8[_0x3b61eb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b61eb([0x65,0x79]))?JSON[_0x3b61eb([0x70,0x61,0x72,0x73,0x65])](_0x5815cd(_0x12a6a8)):null;}function _0x5815cd(_0x4e70f7){return window[_0x3b61eb([0x61,0x74,0x6f,0x62])](_0x4e70f7[_0x3b61eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b61eb([0x2b]))[_0x3b61eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b61eb([0x2f])));}function _0x26e325(_0x3e9008){let _0x3f37a2=0x1505;function _0x3a04ae(_0x279e85){for(let _0x2f38c0=0x0;_0x2f38c0<_0x279e85[_0x3b61eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f38c0++){const _0x26c1e4=_0x279e85[_0x3b61eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f38c0);_0x3f37a2=(_0x3f37a2<<0x5)+_0x3f37a2+_0x26c1e4,_0x3f37a2&=_0x3f37a2;}}function _0x5c1b96(_0x1bca83){Array[_0x3b61eb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bca83)?_0x1bca83[_0x3b61eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c1b96):_0x1bca83&&typeof _0x1bca83==_0x3b61eb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b61eb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bca83)[_0x3b61eb([0x73,0x6f,0x72,0x74])]()[_0x3b61eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37cfc6,_0x333a5a])=>{_0x3a04ae(_0x37cfc6),_0x5c1b96(_0x333a5a);}):_0x3a04ae(window[_0x3b61eb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bca83));}return _0x5c1b96(_0x3e9008),_0x3f37a2>>>0x0;}function _0x27717a(_0x110f22){return _0x110f22[_0x3b61eb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b61eb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b61eb([0x30]));}function _0x513022(_0x901ac4){return _0x901ac4[_0x3b61eb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b61eb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b61eb([0x6a,0x6f,0x69,0x6e])]('');}function _0x355ba2(_0xf0eda5){return _0x226912[_0x3b61eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b61eb([0x68,0x61,0x73])](_0xf0eda5);}function _0x38d00e(_0x6c0573){return _0x226912[_0x3b61eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b61eb([0x67,0x65,0x74])](_0x6c0573);}function _0x8ad599(){}function _0x3b61eb(_0x4188ea){return _0x4188ea['map'](_0x37deb2=>String['fromCharCode'](_0x37deb2))['join']('');}_0x485754(await _0x4c5a2f());}(this);}['createRevision'](_0x14960e){const _0x58d661=this['editor']['plugins']['get']('Users');return new h({'id':_0x14960e['id'],'name':_0x14960e['name'],'creator':_0x14960e['creatorId']?_0x58d661['getUser'](_0x14960e['creatorId']):null,'diffData':_0x14960e['diffData']||_0x14960e['data'],'authors':_0x14960e['authorsIds']['map'](_0x5dd0d9=>_0x58d661['getUser'](_0x5dd0d9)),'createdAt':new Date(_0x14960e['createdAt']),'attributes':_0x14960e['attributes'],'fromVersion':_0x14960e['fromVersion'],'toVersion':_0x14960e['toVersion']});}['addRevision'](_0x2edbc,_0x3c620d=0x0){this['_revisions']['add'](_0x2edbc,_0x3c620d);}['getRevision'](_0x39f3e0){return this['_revisions']['get'](_0x39f3e0);}['getRevisions'](_0x4903b9={'toJSON':!0x1}){const _0x47f71c=Array['from'](this['_revisions']);return _0x47f71c['reverse'](),_0x4903b9['toJSON']?_0x47f71c['map'](_0x33d01c=>_0x33d01c['toJSON']()):_0x47f71c;}['getIndex'](_0x49365e){return this['_revisions']['getIndex'](_0x49365e);}['getEarlierVisibleRevision'](_0x4f4487){const [,_0x54c28d]=this['getRevisionsIterator'](_0x4f4487,{'direction':'earlier'});return _0x54c28d;}['getLaterVisibleRevision'](_0x16f169){const [,_0x48d63f]=this['getRevisionsIterator'](_0x16f169,{'direction':'later'});return _0x48d63f;}['getRevisionsInDiff'](_0x4de9db){const _0x550de5=[];for(const _0x5c5998 of this['getRevisionsIterator'](_0x4de9db['newRevisionId']))if(_0x550de5['push'](_0x5c5998),_0x5c5998['id']===_0x4de9db['oldRevisionId'])break;return _0x550de5;}*['getRevisionsIterator'](_0x3cf004,{direction:_0x51d83d='earlier',filter:_0x1c613c=()=>!0x0}={}){const _0x599ea9='earlier'===_0x51d83d?0x1:-0x1;let _0x3d1118=this['_revisions']['get'](_0x3cf004),_0xa0cdbc=this['getIndex'](_0x3d1118);for(yield _0x3d1118;_0x3d1118;){if(_0xa0cdbc+=_0x599ea9,_0x3d1118=this['getRevision'](_0xa0cdbc),!_0x3d1118)return;_0x1c613c(_0x3d1118)&&(yield _0x3d1118);}}}function m(_0x27170c,_0x10eb55,_0x4ee914){const t=_0x27170c['t'];switch(_0x10eb55){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'},_0x4ee914);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ee914);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x1523ca,'a':_0x287f2b,'e':_0x24a98b,'r':_0x333e25,'u':_0x486d16};class u extends _0x657f6f{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x54c8db,j,_0x26dbef];}constructor(_0x40a8fe){super(_0x40a8fe),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x522d11=_0x1916c0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x522d11},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4b3b1d=this['repository']['getRevision'](0x0),_0x300d1a=_0x4b3b1d&&null===_0x4b3b1d['creator']?_0x4b3b1d:null;if(this['_continueCurrentRevision']=!!_0x300d1a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4b9ebc=this['_source']['getCurrentRevisionId'](),_0x3058c7=this['repository']['getRevision'](_0x4b9ebc);if(_0x3058c7)this['_startingVersion']=_0x3058c7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x51f8ee=this['_source']['history']['_operations']['find'](_0x506710=>!_0x506710['_isInit']),_0x1a9734=_0x51f8ee?_0x51f8ee['baseVersion']:this['_source']['history']['version'];_0x4b3b1d?(_0x4b3b1d['toVersion']<_0x1a9734&&_0x4b3b1d['_update']({'toVersion':_0x1a9734}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x300d1a['id'],this['_startingVersion']=_0x300d1a['fromVersion']):(this['_startingVersion']=_0x4b3b1d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1a9734,this['_continueCurrentRevision']=!0x1);}}else _0x300d1a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x300d1a['toVersion'],this['editor']['model']['document']['history']['version']),_0x300d1a['fromVersion']===_0x300d1a['toVersion']?(0x0!==_0x300d1a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x300d1a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x300d1a['id'],this['_startingVersion']=_0x300d1a['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',_0x445bdd=>!_0x445bdd),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x289634=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x487ecb;for(const _0x1b547b in _0x289634){const _0x1c2b26=_0x1b547b,_0x104c6b=_0x289634[_0x1c2b26];if('revisionHistoryLicenseKeyValid'==_0x104c6b||'revisionHistoryLicenseKeyInvalid'==_0x104c6b||'revisionHistoryLicenseKeyExpired'==_0x104c6b||'revisionHistoryLicenseKeyDomainLimit'==_0x104c6b||'revisionHistoryLicenseKeyNotAllowed'==_0x104c6b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x104c6b||'revisionHistoryLicenseKeyTrialLimit'==_0x104c6b||'revisionHistoryLicenseKeyUsageLimit'==_0x104c6b){delete _0x289634[_0x1c2b26],_0x487ecb=_0x104c6b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x487ecb&&_0x289634['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x487ecb&&_0x289634['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x487ecb&&_0x289634['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x487ecb&&_0x289634['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x487ecb&&_0x289634['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x487ecb&&_0x289634['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x487ecb&&_0x289634['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1d8007=this['repository']['getRevision'](0x0),_0x3dd8ea=await this['getRevisionDocumentData'](_0x1d8007),_0x143af3=await this['getRevisionRootsAttributes'](_0x1d8007);this['_replaceEditorDataWithRevisionData'](_0x3dd8ea,_0x143af3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1857e4){this['_source']=_0x1857e4;}async['update'](){const _0x5e1155=await this['_source']['getLatestVersion']();if(_0x5e1155>this['currentRevision']['toVersion']){await this['_loadState']();const _0xce00a8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5e1155});_0xce00a8['authors']=_0xce00a8['authorsIds']['map'](_0x35b287=>this['editor']['plugins']['get']('Users')['getUser'](_0x35b287)),this['currentRevision']['_update'](_0xce00a8);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0xcbc496={},_0x2fb9f9=null){const _0x1d5e67=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2fb9f9>this['currentRevision']['toVersion']&&(_0x2fb9f9=null),null===_0x2fb9f9&&(_0x2fb9f9=await this['_source']['getLatestVersion']());const _0x156d9e=this['_getFromVersion'](_0x2fb9f9),_0x39cc13=this['buildRevisionData']({'from':_0x156d9e,'to':_0x2fb9f9});if(this['currentRevision']['toVersion']<_0x2fb9f9){const _0x25ddb5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2fb9f9,'to':_0x2fb9f9});_0x25ddb5['authors']=[],_0x25ddb5['authorsIds']=[],_0x25ddb5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x25ddb5,!0x0),delete _0x25ddb5['authors'],_0x1d5e67['push'](_0x25ddb5);}_0xcbc496['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xcbc496['name']=_0xcbc496['name']||null,_0xcbc496['id']=_0xcbc496['id']||_0x1916c0(),_0xcbc496={..._0xcbc496,..._0x39cc13};const _0x56ccea=this['addRevisionData'](_0xcbc496);_0x1d5e67['push'](_0xcbc496);const _0x19bdd4=this['repository']['getIndex'](_0x56ccea);if(0x0!==_0x19bdd4){const _0x36f95d=this['repository']['getRevision'](_0x19bdd4-0x1);if(_0x36f95d['fromVersion']!==_0x2fb9f9){const _0x5bf0ea=this['_revisionDataBuilder']['getData'](_0x2fb9f9,_0x36f95d['toVersion']),_0x33f4dc={'id':_0x36f95d['id'],'diffData':_0x5bf0ea['diffData'],'authorsIds':_0x5bf0ea['authorsIds'],'authors':_0x5bf0ea['authorsIds']['map'](_0xcaccdb=>this['editor']['plugins']['get']('Users')['getUser'](_0xcaccdb)),'fromVersion':_0x2fb9f9};_0x36f95d===this['currentRevision']&&(_0x33f4dc['createdAt']=new Date(_0xcbc496['createdAt']['getTime']()+0xa)),_0x36f95d['_update'](_0x33f4dc,!0x0),delete _0x33f4dc['authors'],_0x1d5e67['push'](_0x33f4dc);}}if(this['adapter']){for(const _0x17677d of _0x1d5e67)this['_bufferUpdate'](_0x17677d['id'],_0x17677d,!0x0);this['sendBufferedUpdates']();}return _0x56ccea;}['addRevisionData'](_0x297005){const _0x547916=this['repository']['createRevision'](_0x297005);return this['adapter']&&_0x547916['on']('_update',(_0x4f5522,_0x388bca,_0x44faa0)=>{_0x44faa0||(this['_bufferUpdate'](_0x388bca['id'],_0x388bca,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x547916,this['_findInsertionIndex'](_0x547916)),_0x547916;}async['getRevisionDocumentData'](_0x2dca0b){await this['_loadRevisionData'](_0x2dca0b);const _0x3c97b0={};for(const _0x1c689c in _0x2dca0b['diffData']){if(_0x2dca0b['diffData'][_0x1c689c]['attachChange']&&!_0x2dca0b['diffData'][_0x1c689c]['attachChange']['isAttached'])continue;const _0x101efc=this['_removeRevisionMarkers'](JSON['parse'](_0x2dca0b['diffData'][_0x1c689c]['insertions'])),_0x1685c7=this['editor']['editing']['view']['document'],_0x326018=new _0x42c523(_0x1685c7,_0x101efc['map'](_0x1cfbb4=>P(_0x1cfbb4,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c97b0[_0x1c689c]=this['editor']['data']['processor']['toData'](_0x326018),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c97b0;}async['getRevisionRootsAttributes'](_0x168cbb){await this['_loadRevisionData'](_0x168cbb);const _0x4c6d72={};for(const _0x49a5bf in _0x168cbb['diffData'])_0x168cbb['diffData'][_0x49a5bf]['attachChange']&&!_0x168cbb['diffData'][_0x49a5bf]['attachChange']['isAttached']||(_0x4c6d72[_0x49a5bf]=_0x168cbb['diffData'][_0x49a5bf]['attributesAfter']||{});return _0x4c6d72;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x476086=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4dd868=0x0;_0x4dd868<_0x476086['length'];_0x4dd868++){const _0x131a30=_0x476086[_0x4dd868];let _0x28a62c=!0x1;for(const _0x3b900b of Object['keys'](_0x131a30))void 0x0===_0x131a30[_0x3b900b]?delete _0x131a30[_0x3b900b]:'id'!==_0x3b900b&&(_0x28a62c=!0x0);_0x28a62c||(_0x476086[_0x4dd868]=null);}if(_0x476086=_0x476086['filter'](_0x3d6331=>null!==_0x3d6331),!_0x476086['length'])return;for(let _0x51d2f3=0x0;_0x51d2f3<_0x476086['length'];_0x51d2f3++){const _0x1e43f1=_0x476086[_0x51d2f3];void 0x0!==_0x1e43f1['fromVersion']&&void 0x0===_0x1e43f1['toVersion']&&(_0x1e43f1['toVersion']=this['repository']['getRevision'](_0x1e43f1['id'])['toVersion']),void 0x0!==_0x1e43f1['toVersion']&&void 0x0===_0x1e43f1['fromVersion']&&(_0x1e43f1['fromVersion']=this['repository']['getRevision'](_0x1e43f1['id'])['fromVersion']);}const _0x48f15d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x476086,_0x48f15d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x8b8c28=>{if(_0x8b8c28){for(const _0x42a4cf of _0x8b8c28)this['setRevisionData']({'id':_0x42a4cf['id'],'createdAt':_0x42a4cf['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x83e33b,_0x3bc21c){let _0x58d723=this['editor']['config']['get']('initialData'),_0x103176=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x58d723){_0x58d723={};for(const _0x458eab of this['editor']['model']['document']['getRootNames']())_0x58d723[_0x458eab]='';}if('string'==typeof _0x58d723&&(_0x58d723={'main':_0x58d723}),void 0x0===_0x103176){_0x103176={};for(const _0x5d7f88 of this['editor']['model']['document']['getRootNames']())_0x103176[_0x5d7f88]={};}let _0xe8705c=!0x1;const _0x230fc5=Object['keys'](_0x58d723),_0xdeb4e7=Object['keys'](_0x83e33b);for(const _0x2ede7a of _0x230fc5){if(_0x58d723[_0x2ede7a]!==_0x83e33b[_0x2ede7a]&&''!==_0x58d723[_0x2ede7a]['trim']()){_0xe8705c=!0x0;break;}if(!_0x1e33ae(_0x103176[_0x2ede7a],_0x3bc21c[_0x2ede7a])&&Object['keys'](_0x103176[_0x2ede7a])['length']>0x0){_0xe8705c=!0x0;break;}}_0xe8705c||(_0xe8705c=_0xdeb4e7['some'](_0x358eb0=>!this['editor']['model']['document']['getRoot'](_0x358eb0))),_0xe8705c&&_0x2f4f67('editor-initial-data-replaced-with-revision-data',{'editorData':_0x58d723,'editorRootsAttributes':_0x103176,'revisionData':_0x83e33b,'revisionRootsAttributes':_0x3bc21c}),this['editor']['config']['set']('initialData',_0x83e33b),this['editor']['config']['set']('rootsAttributes',_0x3bc21c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x36f928=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x36f928['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x28ee74){const _0x3694e6=this['repository']['getRevisions']();_0x3694e6['reverse']();let _0x2c5950=0x0;for(;_0x2c5950<_0x3694e6['length'];){const _0x1e74c8=_0x3694e6[_0x2c5950];if(_0x1e74c8===this['currentRevision']){_0x2c5950++;continue;}if(_0x1e74c8['id']===this['_initialRevisionId'])break;const _0x1c31c2=_0x28ee74['toVersion']-_0x1e74c8['toVersion']||_0x28ee74['fromVersion']-_0x1e74c8['fromVersion'];if(_0x1c31c2>0x0)break;if(_0x1c31c2<0x0)_0x2c5950++;else{if(!_0x28ee74['creator']&&_0x1e74c8['creator'])break;if(_0x1e74c8['creator']||!_0x28ee74['creator']){if(_0x28ee74['createdAt']>_0x1e74c8['createdAt'])break;_0x2c5950++;}else _0x2c5950++;}}return _0x2c5950;}['setRevisionData'](_0x46ad35){const _0x4c1b20=this['repository']['getRevision'](_0x46ad35['id']);if(_0x46ad35['createdAt']&&(_0x46ad35['createdAt']=new Date(_0x46ad35['createdAt'])),_0x46ad35['authorsIds']){const _0x28ebfc=this['editor']['plugins']['get']('Users');_0x46ad35['authors']=_0x46ad35['authorsIds']['map'](_0x53a43d=>_0x28ebfc['getUser'](_0x53a43d));}_0x4c1b20['_update'](_0x46ad35,!0x0);}['buildRevisionData']({revision:_0x96d7cc=null,from:_0x2797f4=null,to:_0x5b000f=null}){_0x2797f4=null!==_0x2797f4?_0x2797f4:_0x96d7cc['fromVersion'],_0x5b000f=null!==_0x5b000f?_0x5b000f:_0x96d7cc['toVersion'];const _0x19c76a=this['_revisionDataBuilder']['getData'](_0x2797f4,_0x5b000f),_0xb6c5e6={'diffData':_0x19c76a['diffData'],'authorsIds':_0x19c76a['authorsIds'],'fromVersion':_0x2797f4,'toVersion':_0x5b000f};if(!_0x96d7cc||_0x5b000f!==_0x96d7cc['toVersion']){const _0x4388c3=_0x5b000f-0x1,_0x59d8c0=this['_source']['history']['getOperation'](_0x4388c3);_0xb6c5e6['createdAt']=_0x59d8c0&&_0x59d8c0['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2797f4===this['_loadedStateData']['fromVersion']){for(const _0x2316db of this['_loadedStateData']['authors'])_0xb6c5e6['authorsIds']['includes'](_0x2316db['id'])||_0xb6c5e6['authorsIds']['push'](_0x2316db['id']);}return _0xb6c5e6;}['_loadRevisionData'](_0x556248){if(!_0x556248||_0x556248['diffData'])return Promise['resolve']();{const _0x299f8f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x299f8f,'revisionId':_0x556248['id']})['then'](_0x1b18a5=>{_0x556248['diffData']=_0x1b18a5['diffData'];});}}['_bufferUpdate'](_0x4764ea,_0x356790,_0x514283){if(this['_bufferedUpdates']['has'](_0x4764ea)){const _0xc72b78=this['_bufferedUpdates']['get'](_0x4764ea);_0x356790=_0x514283?{..._0xc72b78,..._0x356790}:{..._0x356790,..._0xc72b78};}this['_bufferedUpdates']['set'](_0x4764ea,_0x356790);}['_getFromVersion'](_0x11762c){const _0x1d1555=this['repository']['getRevisions']();_0x1d1555['reverse'](),_0x1d1555['shift']();const _0x2671e2=_0x1d1555['find'](_0x21a0a4=>_0x21a0a4['toVersion']<=_0x11762c)['toVersion'];return _0x2671e2<this['_startingVersion']?this['_startingVersion']:_0x2671e2;}['_createInitialRevision'](_0x265d84){const _0x13b799=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x13b799)this['_initialRevisionId']=_0x13b799['id'];else{const _0x3345bc=!this['editor']['model']['document']['roots']['find'](_0x1e9225=>this['editor']['model']['hasContent'](_0x1e9225)),_0x50ea35=this['editor']['plugins']['get']('Users')['me']['id'],_0x1df5cf=m(this['editor']['locale'],_0x3345bc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x265d84,'to':_0x265d84,'id':this['_initialRevisionId'],'name':_0x1df5cf,'creatorId':_0x50ea35});}}['_createCurrentRevision'](_0x1d8444){const _0x3cf838=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3cf838),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1d8444,'to':_0x1d8444,'id':_0x3cf838,'name':'','creatorId':null}));}['_makeRevision']({name:_0xb3e9cc,from:_0xfd048f,to:_0x1cd926,creatorId:_0x571823,id:_0x5d7128}){const _0x2f301f=this['buildRevisionData']({'from':_0xfd048f,'to':_0x1cd926});_0x2f301f['name']=_0xb3e9cc,_0x2f301f['creatorId']=_0x571823,_0x2f301f['id']=_0x5d7128;const _0x4f900e=this['addRevisionData'](_0x2f301f);return this['adapter']&&this['_bufferUpdate'](_0x2f301f['id'],_0x2f301f,!0x0),_0x4f900e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4769ee){return(_0x4769ee=_0x4769ee['filter'](_0x5e1477=>!_0x5e1477['name']||'revision-start'!==_0x5e1477['name']&&'revision-end'!==_0x5e1477['name']))['forEach'](_0xb0f8eb=>{'string'!=typeof _0xb0f8eb&&(_0xb0f8eb['children']=this['_removeRevisionMarkers'](_0xb0f8eb['children']),_0xb0f8eb['attributes']=_0xb0f8eb['attributes']['filter'](_0x195a4d=>!_0x195a4d[0x0]['startsWith']('data-revision-')));}),_0x4769ee;}}function P(_0x3fa631,_0x26c461){const _0x1b30c7=_0x26c461['editing']['view']['document'];if('string'==typeof _0x3fa631)return new _0x39cc50(_0x1b30c7,_0x3fa631);{const _0x4b865e=_0x3fa631['children']['map'](_0xd879d8=>P(_0xd879d8,_0x26c461));return new(E[_0x3fa631['type']]||_0x1e70bc)(_0x1b30c7,_0x3fa631['name'],_0x3fa631['attributes'],_0x4b865e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xc6f697){this['editor']=_0xc6f697,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'](_0x5a716b){this['source']=_0x5a716b;const _0x436df6=new Map(),_0x12c728=new Map(),_0x5cabac=this['editor']['model']['document']['roots']['map'](_0xb435c0=>_0xb435c0['rootName']);for(const _0x115a23 of _0x5cabac){const _0x3bda51=this['editor']['model']['document']['getRoot'](_0x115a23),_0x7154da=T(_0x3bda51);_0x436df6['set'](_0x115a23,_0x7154da),_0x12c728['set'](_0x115a23,Object['fromEntries'](_0x3bda51['getAttributes']()));}const _0x3ad175=Array['from'](this['editor']['model']['markers'])['map'](_0x476756=>[_0x476756['name'],_0x476756['getRange']()]),_0x107aaf=this['source']['version'];this['_saveMetaData'](_0x107aaf,_0x436df6,_0x3ad175,_0x12c728),this['_startingRevisionId']=this['_revisionId'];const _0x1f5df5=new Map(),_0x138e91=new Map();for(const _0x3cff7a of _0x5cabac){const _0x49ae81=F(_0x3cff7a);_0x1f5df5['set'](_0x3cff7a,_0x49ae81),_0x138e91['set'](_0x3cff7a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1f5df5,[],_0x138e91);}['getData'](_0x2fe3ce,_0x1cfdc6){if(this['_lastFrom']===_0x2fe3ce&&this['_lastTo']<=_0x1cfdc6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1cfdc6,!0x0);else{if(!this['_savedMetaData']['has'](_0x2fe3ce)){const _0x1daac3=this['_getPreviousFrom'](_0x2fe3ce);this['_calculateMetaData'](_0x1daac3,_0x2fe3ce,!0x1);}this['_calculateMetaData'](_0x2fe3ce,_0x1cfdc6,!0x0);}return this['_lastFrom']=_0x2fe3ce,this['_lastTo']=_0x1cfdc6,this['_getState']();}['loadState'](_0x222c2d){this['_reset'](),this['_lastFrom']=_0x222c2d['fromVersion'],this['_lastTo']=_0x222c2d['toVersion'];for(const _0x5b0d59 in _0x222c2d['diffData']){const _0x30c35c=_0x222c2d['diffData'][_0x5b0d59]['attachChange'],_0x51e772=_0x7494e5(_0x222c2d['diffData'][_0x5b0d59]['attributesBefore'])||{},_0x1aa4ba=this['_makeModelFromViewString'](_0x222c2d['diffData'][_0x5b0d59]['deletions']);_0x1aa4ba['rootName']=_0x5b0d59,_0x1aa4ba['_isAttached']=!_0x30c35c||!_0x30c35c['isAttached'],_0x1aa4ba['isAttached']=()=>_0x1aa4ba['_isAttached'],this['_baseRoots']['set'](_0x5b0d59,_0x1aa4ba),this['_baseRootsAttributes']['set'](_0x5b0d59,_0x51e772),_0x30c35c&&this['_touchedRoots']['set'](_0x5b0d59,_0x30c35c);const _0x506af4=this['_makeIdsRoot'](_0x1aa4ba);this['_baseIdsRoots']['set'](_0x5b0d59,_0x506af4);for(const [_0x2240fc,_0x410ac7]of _0x1aa4ba['markers']){if(!_0x2240fc['startsWith']('revision:'))continue;const _0x1ae12f=_0x2240fc['split'](':')[0x2];for(const _0x3998e7 of _0x410ac7['getWalker']({'singleCharacters':!0x0})){const _0x133f0b=this['_getVidAttributeName'](_0x3998e7),_0x5eccc5='elementEnd'==_0x3998e7['type']?_0x3998e7['previousPosition']['path']['slice'](0x0,-0x1):_0x3998e7['previousPosition']['path'],_0x42d647=_0x506af4['getNodeByPath'](_0x5eccc5)['getAttribute'](_0x133f0b);this['_touched']['set'](_0x42d647,{'userId':_0x1ae12f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x26af0b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4d628c=>!this['_touched']['has'](_0x4d628c));let _0x13428c=0x0;const _0x1cf96b=new Map();for(const _0x359d2f in _0x222c2d['diffData']){const _0x3c4fd3=_0x222c2d['diffData'][_0x359d2f]['attachChange'],_0x3324e4=_0x7494e5(_0x222c2d['diffData'][_0x359d2f]['attributesAfter'])||{},_0x1b3e67=this['_makeModelFromViewString'](_0x222c2d['diffData'][_0x359d2f]['insertions']);_0x1b3e67['rootName']=_0x359d2f,_0x1b3e67['_isAttached']=!_0x3c4fd3||_0x3c4fd3['isAttached'],_0x1b3e67['isAttached']=()=>_0x1b3e67['_isAttached'],this['_diffRoots']['set'](_0x359d2f,_0x1b3e67),this['_diffRootsAttributes']['set'](_0x359d2f,_0x3324e4);const _0x2986b2=this['_makeIdsRoot'](_0x1b3e67,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x359d2f,_0x2986b2),_0x1cf96b['set'](_0x359d2f,_0x1b3e67['isAttached']()?_0x3324e4:{});for(const [_0x7dcb1b,_0x318aa1]of _0x1b3e67['markers']){if(!_0x7dcb1b['startsWith']('revision:'))continue;const _0x69a76b=_0x7dcb1b['split'](':')[0x2];for(const _0x4ed330 of _0x318aa1['getWalker']({'singleCharacters':!0x0})){const _0x48ea19=this['_getVidAttributeName'](_0x4ed330),_0x580743=this['_revisionId']++,_0x4b1ff1='elementEnd'==_0x4ed330['type']?_0x4ed330['previousPosition']['path']['slice'](0x0,-0x1):_0x4ed330['previousPosition']['path'];_0x2986b2['getNodeByPath'](_0x4b1ff1)['_setAttribute'](_0x48ea19,_0x580743),this['_touched']['set'](_0x580743,{'userId':_0x69a76b});}}for(const _0x1dad44 of this['editor']['model']['createRangeIn'](_0x1b3e67)['getWalker']({'singleCharacters':!0x0})){const _0x15c82c=this['_getVidAttributeName'](_0x1dad44),_0x14d997='elementEnd'==_0x1dad44['type']?_0x1dad44['previousPosition']['path']['slice'](0x0,-0x1):_0x1dad44['previousPosition']['path'],_0x1e926f=_0x2986b2['getNodeByPath'](_0x14d997);_0x1e926f['getAttribute'](_0x15c82c)>0x0||_0x1e926f['_setAttribute'](_0x15c82c,_0x26af0b[_0x13428c++]);}for(const [_0x3d8ae9,_0x173389]of _0x1b3e67['markers'])_0x3d8ae9['startsWith']('revision:')||this['_markers']['set'](_0x3d8ae9,_0x173389);}const _0x3d2f17=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3d2f17),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3d2f17,0x1));const _0xc88af9=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xc88af9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc88af9,0x1));const _0x5cd046=Array['from'](this['_diffRoots'])['map'](([_0x4e0080,_0x16b120])=>[_0x4e0080,T(_0x16b120)]);this['_saveMetaData'](this['_lastTo'],_0x5cd046,this['_markers'],_0x1cf96b);}['_makeModelFromViewString'](_0x352530){const _0x192f1c=JSON['parse'](_0x352530),_0x493928=this['editor']['editing']['view']['document'],_0xe938ef=new _0x42c523(_0x493928,_0x192f1c['map'](_0x1b6d66=>P(_0x1b6d66,this['editor'])));return this['editor']['data']['toModel'](_0xe938ef);}['_saveMetaData'](_0x5282e5,_0x423b8c,_0x26d5fa,_0x189fe2){const _0x56df79=new Map(_0x423b8c),_0x488612=new Map(_0x7494e5(_0x189fe2)),_0xb808af=new Map();for(const [_0x1db198,_0x39dba5]of _0x26d5fa)_0xb808af['set'](_0x1db198,{'start':_0x39dba5['start']['clone'](),'end':_0x39dba5['end']['clone'](),'rootName':_0x39dba5['root']['rootName']});this['_savedMetaData']['set'](_0x5282e5,{'roots':_0x56df79,'markers':_0xb808af,'rootsAttributes':_0x488612});}['_removeMetaData'](_0x5c3e61){this['_savedMetaData']['delete'](_0x5c3e61);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4f252d,_0x1a8b83=null){let _0x429e40=null;_0x4f252d['is']('documentFragment')||(_0x429e40=new ut(_0x4f252d['name'],{'vid_start':null===_0x1a8b83?this['_revisionId']++:_0x1a8b83++}));const _0xc84167=[];for(const _0x2b4bdb of _0x4f252d['getChildren']())if(_0x2b4bdb['is']('element')){_0xc84167['push'](this['_makeIdsRoot'](_0x2b4bdb,_0x1a8b83));const _0x17349f=_0xc84167[_0xc84167['length']-0x1];null!==_0x1a8b83&&(_0x1a8b83=_0x17349f['is']('element','$text')?_0x17349f['getAttribute']('vid')+0x1:_0x17349f['getAttribute']('vid_end')+0x1);}else{for(let _0x4a522a=0x0;_0x4a522a<_0x2b4bdb['offsetSize'];_0x4a522a++)_0xc84167['push'](new ut('$text',{'vid':null===_0x1a8b83?this['_revisionId']++:_0x1a8b83++}));}if(_0x4f252d['is']('documentFragment')){const _0x528e83=F(_0x4f252d['rootName']);return _0x528e83['_insertChild'](0x0,_0xc84167),_0x528e83;}return _0x429e40['_setAttribute']('vid_end',null===_0x1a8b83?this['_revisionId']++:_0x1a8b83++),_0x429e40['_insertChild'](0x0,_0xc84167),_0x429e40;}['_calculateMetaData'](_0x5d745f,_0x103740,_0x2b6a11){this['_reset']();const {roots:_0x980c55,markers:_0x8fc7bd,rootsAttributes:_0xca1b8c}=this['_savedMetaData']['get'](_0x5d745f);this['_baseRoots']=new Map(_0x980c55),this['_baseRootsAttributes']=new Map(_0x7494e5(_0xca1b8c));for(const [_0x3934ea,_0x2798d7]of this['_baseRoots'])if('$graveyard'!==_0x3934ea&&(this['_diffRoots']['set'](_0x3934ea,T(_0x2798d7)),this['_diffRootsAttributes']=new Map(_0x7494e5(_0xca1b8c)),_0x2b6a11)){const _0x487970=this['_revisionId'];this['_idsRoots']['set'](_0x3934ea,this['_makeIdsRoot'](_0x2798d7)),this['_baseIdsRoots']['set'](_0x3934ea,this['_makeIdsRoot'](_0x2798d7,_0x487970));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2b6a11&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x53332a,_0x3a7f35]of _0x8fc7bd){const _0x484d8d=this['_baseRoots']['get'](_0x3a7f35['rootName']),_0x291da1=this['_diffRoots']['get'](_0x3a7f35['rootName']),_0x3b4969=new ft(this['_fixPosition'](_0x3a7f35['start'],_0x484d8d),this['_fixPosition'](_0x3a7f35['end'],_0x484d8d)),_0x5ad8aa=this['_fixRange'](_0x3b4969,_0x291da1);_0x484d8d['markers']['set'](_0x53332a,_0x3b4969),this['_markers']['set'](_0x53332a,_0x5ad8aa);}this['_applyOperations'](_0x5d745f,_0x103740,_0x2b6a11);}['_applyOperations'](_0x35c45d,_0x219011,_0x4290db){for(const _0x31ac3e of this['source']['getOperations'](_0x35c45d,_0x219011))this['_handleOperation'](_0x31ac3e,_0x4290db);for(const _0x40b590 of this['_diffRoots']['values']())_0x40b590['markers']['clear']();for(const [_0x359b5d,_0x468c3e]of this['_markers']){this['_diffRoots']['get'](_0x468c3e['root']['rootName'])['markers']['set'](_0x359b5d,_0x468c3e['clone']());}const _0x4a03d1=new Map(),_0x580c1a=new Map();for(const [_0x1ceda9,_0x208b5f]of this['_diffRoots'])_0x4a03d1['set'](_0x1ceda9,T(_0x208b5f)),_0x580c1a['set'](_0x1ceda9,this['_diffRootsAttributes']['get'](_0x1ceda9));this['_saveMetaData'](_0x219011,_0x4a03d1,this['_markers'],_0x580c1a);}['_getPreviousFrom'](_0x1c1a2e){const _0x771ea=Array['from'](this['_savedMetaData']['keys']());_0x771ea['sort']((_0x208d72,_0x28c998)=>_0x208d72-_0x28c998),_0x771ea['reverse']();for(const _0x1b5c75 of _0x771ea)if(_0x1b5c75<_0x1c1a2e)return _0x1b5c75;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x160bc4,_0x3798f1){const _0x570565=Array['from'](_0x3798f1['markers'])['map'](([_0x129032,_0x59a208])=>[_0x129032,this['_fixRange'](_0x59a208,_0x160bc4)]);_0x160bc4['markers']=new Map(_0x570565);}['_transformMarkers'](_0x48ad88){for(const _0x2be322 of this['_markers']['values']()){const _0x17b47a=_0x2be322['getTransformedByOperation'](_0x48ad88),_0x40ca1e=ft['_createFromRanges'](_0x17b47a);_0x2be322['start']=_0x40ca1e['start'],_0x2be322['end']=_0x40ca1e['end'];}}['_handleOperation'](_0x36d24b,_0x2eb3b9){if('addRoot'!=_0x36d24b['type']&&'detachRoot'!=_0x36d24b['type']){if('insert'==_0x36d24b['type']){const _0x4178d3=_0x36d24b['position']['root']['rootName'];this['_diffRoots']['has'](_0x4178d3)||(this['_diffRoots']['set'](_0x4178d3,F(_0x4178d3,!0x0)),this['_diffRootsAttributes']['set'](_0x4178d3,{}),_0x2eb3b9&&this['_idsRoots']['set'](_0x4178d3,F(_0x4178d3,!0x0)));}else{if('addRootAttribute'==_0x36d24b['type']||'removeRootAttribute'==_0x36d24b['type']||'changeRootAttribute'==_0x36d24b['type'])return void this['_handleRootAttributeOperation'](_0x36d24b);'marker'==_0x36d24b['type']&&this['_handleMarkerOperation'](_0x36d24b);}if('marker'!==_0x36d24b['type']){const _0x33129a=this['_cloneOperation'](_0x36d24b,this['_diffRoots']);_0x33129a['_execute'](),this['_transformMarkers'](_0x33129a);}if(_0x2eb3b9)switch(_0x36d24b['type']){case'insert':this['_handleInsertOperation'](_0x36d24b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x36d24b);break;case'merge':this['_handleMergeOperation'](_0x36d24b);break;case'split':this['_handleSplitOperation'](_0x36d24b);}}else this['_handleRootOperation'](_0x36d24b,_0x2eb3b9);}['_cloneOperation'](_0x44340c,_0x2f5223){const _0x4cdd59=_0x44340c['clone']();return _0x4cdd59['_authorId']=_0x44340c['_authorId'],this['_fixOperation'](_0x4cdd59,_0x2f5223),_0x4cdd59;}['_getBaseVids'](_0x7ad7a7){return _0x7ad7a7['map'](_0x716531=>{const _0x375f89=this['_getVidAttributeName'](_0x716531);return Number(_0x716531['item']['getAttribute'](_0x375f89));});}['_generateTape'](_0x22943e,_0x537dc9){if(_0x22943e['is']('element','$text'))_0x537dc9['push']({'item':_0x22943e,'type':'text'});else{_0x22943e['is']('element')&&_0x537dc9['push']({'item':_0x22943e,'type':'elementStart'});for(const _0x284378 of _0x22943e['getChildren']())this['_generateTape'](_0x284378,_0x537dc9);_0x22943e['is']('element')&&_0x537dc9['push']({'item':_0x22943e,'type':'elementEnd'});}return _0x537dc9;}['_getState'](){const _0x37b38d=new Map(this['_touched']),_0x4f1196=new Map(_0x37b38d),_0x55ebc5=new Map(),_0x26a2e7={'insertions':{},'deletions':{}},_0x1e68ad={'insertions':{},'deletions':{}},_0x2d4b36=new Map(),_0x1467ee=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1467ee['delete']('$graveyard');for(const _0x187d84 of _0x1467ee){const _0x171e3e=this['_diffRoots']['get'](_0x187d84)||F(_0x187d84,!0x1),_0x33ed05=this['_baseRoots']['get'](_0x187d84)||F(_0x187d84,!0x1);_0x171e3e['isAttached']()||_0x33ed05['isAttached']()?(_0x26a2e7['insertions'][_0x187d84]=T(_0x171e3e),_0x26a2e7['deletions'][_0x187d84]=T(_0x33ed05),this['_copyMarkers'](_0x26a2e7['deletions'][_0x187d84],_0x33ed05),this['_copyMarkers'](_0x26a2e7['insertions'][_0x187d84],_0x171e3e),_0x1e68ad['insertions'][_0x187d84]=this['_generateTape'](this['_idsRoots']['get'](_0x187d84),[]),_0x1e68ad['deletions'][_0x187d84]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x187d84)||F(_0x187d84,!0x1),[])):_0x1467ee['delete'](_0x187d84);}for(const _0x3a62bd of _0x1467ee){const _0x1999f6=_0x1e68ad['insertions'][_0x3a62bd];for(const _0x10307b of _0x1999f6){const _0x32f113=this['_getVidAttributeName'](_0x10307b),_0x29eb4f=_0x10307b['item']['getAttribute'](_0x32f113);_0x4f1196['delete'](_0x29eb4f),_0x29eb4f>=this['_startingRevisionId']&&_0x55ebc5['set'](_0x29eb4f,_0x37b38d['get'](_0x29eb4f));}}for(const _0x1071b2 of _0x1467ee){const _0x16d755=_0x1e68ad['insertions'][_0x1071b2],_0x8e5904=this['_getBaseVids'](_0x1e68ad['deletions'][_0x1071b2]);let _0x3ed0bf=0x0;for(const _0x22bb30 of _0x16d755){const _0x45fe24=this['_getVidAttributeName'](_0x22bb30),_0x3835a8=_0x22bb30['item']['getAttribute'](_0x45fe24);if(!_0x55ebc5['has'](_0x3835a8)&&!_0x2d4b36['has'](_0x3835a8)){if(_0x4f1196['has'](_0x3835a8))_0x3ed0bf++;else{if(_0x3835a8!=_0x8e5904[_0x3ed0bf]){const _0x3b6305=_0x37b38d['get'](_0x3835a8)||_0x37b38d['get'](_0x8e5904[_0x3ed0bf]);for(;_0x3835a8!=_0x8e5904[_0x3ed0bf];)_0x4f1196['has'](_0x8e5904[_0x3ed0bf])||(_0x2d4b36['set'](_0x8e5904[_0x3ed0bf],_0x3b6305),_0x37b38d['set'](_0x8e5904[_0x3ed0bf],_0x3b6305)),_0x3ed0bf++;}_0x3ed0bf++;}}}}for(const _0x4eb32b of _0x1467ee){const _0xe46e52=_0x1e68ad['insertions'][_0x4eb32b];for(const _0x5d2ac8 of _0xe46e52){const _0x35f8c1=this['_getVidAttributeName'](_0x5d2ac8),_0x3eafe8=_0x5d2ac8['item']['getAttribute'](_0x35f8c1);if(_0x2d4b36['has'](_0x3eafe8)){const _0x59e292=_0x2d4b36['get'](_0x3eafe8);_0x4f1196['has'](_0x3eafe8)||_0x4f1196['set'](_0x3eafe8,{..._0x59e292}),_0x55ebc5['set'](_0x3eafe8,{..._0x59e292});}}}for(const _0x38ae2c of _0x4f1196['keys']())_0x38ae2c>=this['_startingRevisionId']&&_0x4f1196['delete'](_0x38ae2c);const _0x5b244e=new Map();for(const _0x42d077 of _0x1467ee){let _0x192e69=_0x1e68ad['insertions'][_0x42d077];for(const _0x37e594 of _0x192e69)if(_0x37e594['item']['is']('element','tableCell')){const _0x5d77ae=this['_getVidAttributeName'](_0x37e594),_0x21fa94=_0x37e594['item']['getAttribute'](_0x5d77ae);if(_0x55ebc5['has'](_0x21fa94)){const _0x25b59a=_0x37e594['item']['parent']['parent']['getAttribute']('vid_start'),_0x4aa4a3=_0x5b244e['get'](_0x25b59a)||new Set();_0x4aa4a3['add'](_0x55ebc5['get'](_0x21fa94)['userId']),_0x5b244e['set'](_0x25b59a,_0x4aa4a3);}}_0x192e69=_0x1e68ad['deletions'][_0x42d077];for(const _0x577997 of _0x192e69)if(_0x577997['item']['is']('element','tableCell')){const _0xf6a1c3=this['_getVidAttributeName'](_0x577997),_0x6e5c85=_0x577997['item']['getAttribute'](_0xf6a1c3);if(_0x4f1196['has'](_0x6e5c85)){const _0x5e03c3=_0x577997['item']['parent']['parent']['getAttribute']('vid_start'),_0x1344db=_0x5b244e['get'](_0x5e03c3)||new Set();_0x1344db['add'](_0x4f1196['get'](_0x6e5c85)['userId']),_0x5b244e['set'](_0x5e03c3,_0x1344db);}}for(const _0x109f69 of _0x5b244e['keys']())(_0x55ebc5['has'](_0x109f69)||_0x4f1196['has'](_0x109f69))&&_0x5b244e['delete'](_0x109f69);}for(const _0x5bffbb of _0x1467ee){const _0x1193dc=_0x1e68ad['insertions'][_0x5bffbb];let _0x2da643=null,_0x58b06d=null;for(const _0x244bbe of _0x1193dc){const _0x396c8c=this['_getVidAttributeName'](_0x244bbe),_0x2d98eb=_0x244bbe['item']['getAttribute'](_0x396c8c),_0x2c7953=_0x5b244e['get'](_0x2d98eb);_0x2c7953&&'elementStart'==_0x244bbe['type']&&(_0x2da643=Array['from'](_0x2c7953)[0x0],_0x58b06d=_0x244bbe['item']['getAttribute']('vid_end')),_0x2da643&&(_0x4f1196['set'](_0x2d98eb,{'userId':_0x2da643}),_0x55ebc5['set'](_0x2d98eb,{'userId':_0x2da643})),_0x2d98eb==_0x58b06d&&(_0x2da643=null,_0x58b06d=null);}}const _0x42d1ee={},_0x3a5f29=new Set();for(const _0x5f3dcf of _0x1467ee){const _0x32c934=_0x26a2e7['deletions'][_0x5f3dcf],_0x2103c4=_0x26a2e7['insertions'][_0x5f3dcf];for(const {userId:_0x496fa9}of this['_touchedMarkers']['values']())null!==_0x496fa9&&_0x3a5f29['add'](_0x496fa9);for(const {userId:_0x2800a0}of this['_touchedRoots']['values']())null!==_0x2800a0&&_0x3a5f29['add'](_0x2800a0);this['_markChanges'](_0x2103c4,_0x1e68ad['insertions'][_0x5f3dcf],_0x55ebc5,'insertion',_0x3a5f29),this['_markChanges'](_0x32c934,_0x1e68ad['deletions'][_0x5f3dcf],_0x4f1196,'deletion',_0x3a5f29),_0x42d1ee[_0x5f3dcf]={'insertions':this['_prepareViewToSave'](_0x2103c4),'deletions':this['_prepareViewToSave'](_0x32c934),'attachChange':this['_touchedRoots']['get'](_0x5f3dcf)||null,'attributesBefore':_0x7494e5(this['_baseRootsAttributes']['get'](_0x5f3dcf))||{},'attributesAfter':_0x7494e5(this['_diffRootsAttributes']['get'](_0x5f3dcf))};}return{'diffData':_0x42d1ee,'authorsIds':Array['from'](_0x3a5f29)};}['_processRootBeforeSave'](_0x3bf7b4){for(const [,_0xc5aca8]of _0x3bf7b4['markers']){const _0x2a815a=_0xc5aca8['start']['getAncestors']()['filter'](_0x1c2fa8=>'tableCell'==_0x1c2fa8['name']);for(const _0xcc47f4 of _0x2a815a)0x1==_0xcc47f4['childCount']&&_0xcc47f4['getChild'](0x0)['is']('element','paragraph')&&_0xcc47f4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x469fd3){this['_processRootBeforeSave'](_0x469fd3);const _0x265f06=this['editor']['data']['toView'](_0x469fd3,{}),_0x5b7336=Array['from'](_0x265f06['getChildren']())['map'](_0x388518=>this['_getViewJson'](_0x388518));return JSON['stringify'](_0x5b7336);}['_getViewJson'](_0x1b7c21){if(_0x1b7c21['is']('$text'))return _0x1b7c21['data'];{const _0xc415c2=_0x1b7c21;return{'type':Object['keys'](E)['find'](_0x145eac=>_0x1b7c21 instanceof E[_0x145eac]),'name':_0xc415c2['name'],'attributes':Array['from'](_0xc415c2['getAttributes']()),'children':Array['from'](_0xc415c2['getChildren']())['map'](_0x131fcd=>this['_getViewJson'](_0x131fcd))};}}['_markChanges'](_0x4be8eb,_0x280fdf,_0x141101,_0x3fd663,_0x198319){let _0x12c655=null,_0x546ba5=null,_0x3c6451=0x0;const _0x14cba9=this['editor']['model'];for(let _0x7f6c61=0x0;_0x7f6c61<_0x280fdf['length'];_0x7f6c61++){const _0x162e9e=this['_getVidAttributeName'](_0x280fdf[_0x7f6c61]),_0x459864=_0x280fdf[_0x7f6c61]['item']['getAttribute'](_0x162e9e),_0x76d257=_0x141101['get'](_0x459864),_0x28df9f=_0x7f6c61==_0x280fdf['length']-0x1;(!_0x12c655&&_0x76d257&&(_0x12c655=_0x76d257,_0x546ba5=_0x280fdf[_0x7f6c61]),_0x12c655&&(!_0x76d257||_0x76d257['userId']!=_0x12c655['userId']))&&(_0x251de2(_0x76d257,B(_0x546ba5,_0x4be8eb,_0x14cba9),B(_0x280fdf[_0x7f6c61],_0x4be8eb,_0x14cba9)),_0x12c655=_0x76d257||null,_0x546ba5=_0x76d257?_0x280fdf[_0x7f6c61]:null),_0x12c655&&_0x28df9f&&_0x251de2(_0x76d257,B(_0x546ba5,_0x4be8eb,_0x14cba9),J(_0x280fdf[_0x7f6c61],_0x4be8eb,_0x14cba9));}function _0x251de2(_0x5be0f9,_0x184107,_0x1919c6){const _0x57c235=_0x12c655['userId'],_0x27987e='revision:'+_0x3fd663+':'+_0x57c235+':'+_0x3c6451++,_0x6b6e8c=_0x14cba9['createRange'](_0x184107,_0x1919c6);_0x4be8eb['markers']['set'](_0x27987e,_0x6b6e8c),null!==_0x57c235&&_0x198319['add'](_0x57c235);}}['_getVidAttributeName'](_0x273051){switch(_0x273051['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x8ed2f6,_0x2206a6){_0x8ed2f6['baseVersion']=null;for(const _0x1ed0e0 in _0x8ed2f6){const _0x4bd9d2=_0x8ed2f6[_0x1ed0e0];if(_0x4bd9d2 instanceof vt){const _0x29b636=_0x2206a6['get'](_0x4bd9d2['root']['rootName']);_0x8ed2f6[_0x1ed0e0]=this['_fixPosition'](_0x4bd9d2,_0x29b636);}if(_0x4bd9d2 instanceof ft){const _0x3d4644=_0x2206a6['get'](_0x4bd9d2['root']['rootName']);_0x8ed2f6[_0x1ed0e0]=this['_fixRange'](_0x4bd9d2,_0x3d4644);}'root'===_0x1ed0e0&&(_0x8ed2f6['root']=_0x2206a6['get'](_0x8ed2f6['root']['rootName']));}}['_fixRange'](_0x4b45ab,_0x4f75d7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4b45ab['start'],_0x4f75d7),this['_fixPosition'](_0x4b45ab['end'],_0x4f75d7));}['_fixPosition'](_0x86c923,_0x382a96){return this['editor']['model']['createPositionFromPath'](_0x382a96,_0x86c923['path'],_0x86c923['stickiness']);}['_handleInsertOperation'](_0x1af2c2){const _0x41e3ba=this['_idsRoots']['get'](_0x1af2c2['position']['root']['rootName']),_0x856675=this['_fixPosition'](_0x1af2c2['position'],_0x41e3ba),_0x2cdecb=null===_0x1af2c2['_authorId']?null:_0x1af2c2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41e100=_0x856675['parent'],_0x4b7be0=this['_revisionId'],_0x27c83d=[];for(const _0x42dd15 of _0x1af2c2['nodes'])if(_0x42dd15['is']('element'))_0x27c83d['push'](this['_makeIdsRoot'](_0x42dd15));else{for(let _0x27d904=0x0;_0x27d904<_0x42dd15['offsetSize'];_0x27d904++)_0x27c83d['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3d4aef=this['_revisionId'];for(let _0x4d20e6=_0x4b7be0;_0x4d20e6<_0x3d4aef;_0x4d20e6++)this['_touched']['set'](_0x4d20e6,{'userId':_0x2cdecb});_0x41e100['_insertChild'](_0x856675['offset'],_0x27c83d);}['_handleMoveOperation'](_0x2f2aa9){(_0x2f2aa9=this['_cloneOperation'](_0x2f2aa9,this['_idsRoots']))['_execute']();const _0x340c53=null===_0x2f2aa9['_authorId']?null:_0x2f2aa9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3076f0=_0x2f2aa9['getMovedRangeStart'](),_0x2e68b4=_0x3076f0['parent'],_0x4c758f=_0x3076f0['offset'];!function _0x2af333(_0x14bb82,_0x5e51af,_0x13dfb8,_0x10882c){for(let _0x38232f=_0x13dfb8;_0x38232f<_0x10882c;_0x38232f++){const _0x2eab43=_0x5e51af['getChild'](_0x38232f);_0x2eab43['is']('element','$text')?_0x14bb82['set'](_0x2eab43['getAttribute']('vid'),{'userId':_0x340c53}):(_0x14bb82['set'](_0x2eab43['getAttribute']('vid_start'),{'userId':_0x340c53}),_0x2af333(_0x14bb82,_0x2eab43,0x0,_0x2eab43['childCount']),_0x14bb82['set'](_0x2eab43['getAttribute']('vid_end'),{'userId':_0x340c53}));}}(this['_touched'],_0x2e68b4,_0x4c758f,_0x4c758f+_0x2f2aa9['howMany']);}['_handleMergeOperation'](_0x234b60){const _0x39f723=null===(_0x234b60=this['_cloneOperation'](_0x234b60,this['_idsRoots']))['_authorId']?null:_0x234b60['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28c4a2=_0x234b60['targetPosition']['parent'],_0x421729=_0x234b60['sourcePosition']['parent'],_0x322d5e=_0x28c4a2['getAttribute']('vid_end'),_0x49ae72=_0x421729['getAttribute']('vid_start');_0x28c4a2['_setAttribute']('vid_end',_0x421729['getAttribute']('vid_end')),_0x421729['_setAttribute']('vid_end',_0x322d5e),this['_touched']['set'](_0x49ae72,{'userId':_0x39f723}),this['_touched']['set'](_0x322d5e,{'userId':_0x39f723}),_0x234b60['_execute']();}['_handleSplitOperation'](_0x486fcb){const _0x5577c0=null===(_0x486fcb=this['_cloneOperation'](_0x486fcb,this['_idsRoots']))['_authorId']?null:_0x486fcb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x467ea3=_0x486fcb['graveyardPosition'],_0x3e3e22=_0x486fcb['splitPosition']['parent'];_0x486fcb['_execute']();const _0x215e4f=_0x3e3e22['getAttribute']('vid_end'),_0x3848db=_0x486fcb['insertionPosition']['nodeAfter'];if(_0x467ea3){const _0x414d69=_0x3848db['getAttribute']('vid_end'),_0x349fa9=_0x3e3e22['getAttribute']('vid_end');_0x3e3e22['_setAttribute']('vid_end',_0x414d69),_0x3848db['_setAttribute']('vid_end',_0x349fa9),this['_touched']['set'](_0x3e3e22['getAttribute']('vid_end'),{'userId':_0x5577c0}),this['_touched']['set'](_0x3848db['getAttribute']('vid_start'),{'userId':_0x5577c0});}else{const _0x28fe7b=this['_revisionId']++,_0x3673fd=this['_revisionId']++;_0x3e3e22['_setAttribute']('vid_end',_0x28fe7b),_0x3848db['_setAttribute']('vid_start',_0x3673fd),_0x3848db['_setAttribute']('vid_end',_0x215e4f),this['_touched']['set'](_0x28fe7b,{'userId':_0x5577c0}),this['_touched']['set'](_0x3673fd,{'userId':_0x5577c0});}}['_handleMarkerOperation'](_0x5a82d4){if(!_0x5a82d4['affectsData'])return;const _0x3945f2=(_0x5a82d4=this['_cloneOperation'](_0x5a82d4,this['_diffRoots']))['oldRange']?_0x5a82d4['oldRange']['root']:null,_0x128e4f=_0x5a82d4['newRange']?_0x5a82d4['newRange']['root']:null;_0x3945f2&&this['_markers']['delete'](_0x5a82d4['name']),_0x128e4f&&this['_markers']['set'](_0x5a82d4['name'],_0x5a82d4['newRange']['clone']());const _0x4a61e5=null===_0x5a82d4['_authorId']?null:_0x5a82d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51c9b7=_0x5a82d4['name'];if(!this['_touchedMarkers']['has'](_0x51c9b7))return void this['_touchedMarkers']['set'](_0x51c9b7,{'range':_0x5a82d4['oldRange'],'userId':_0x4a61e5});const _0x29e483=this['_touchedMarkers']['get'](_0x51c9b7),_0x4afc62=_0x29e483['range'],_0x4f54fb=_0x5a82d4['newRange'];null==_0x4afc62&&null==_0x4f54fb||_0x4afc62&&_0x4f54fb&&_0x4afc62['isEqual'](_0x4f54fb)?this['_touchedMarkers']['delete'](_0x5a82d4['name']):_0x29e483['userId']=_0x4a61e5;}['_handleRootOperation'](_0x1e09cb,_0x2f6c54){this['_diffRoots']['has'](_0x1e09cb['rootName'])?this['_diffRoots']['get'](_0x1e09cb['rootName'])['_isAttached']=_0x1e09cb['isAdd']:(this['_diffRoots']['set'](_0x1e09cb['rootName'],F(_0x1e09cb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1e09cb['rootName'],{}),_0x2f6c54&&this['_idsRoots']['set'](_0x1e09cb['rootName'],F(_0x1e09cb['rootName'],!0x0)));const _0x22681b=null===_0x1e09cb['_authorId']?null:_0x1e09cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d1ab3=this['_touchedRoots']['get'](_0x1e09cb['rootName']);_0x4d1ab3&&_0x4d1ab3['userId']===_0x22681b?this['_touchedRoots']['delete'](_0x1e09cb['rootName']):this['_touchedRoots']['set'](_0x1e09cb['rootName'],{'userId':_0x22681b,'isAttached':_0x1e09cb['isAdd']});}['_handleRootAttributeOperation'](_0x3fe07d){const _0x3b2322=this['_diffRootsAttributes']['get'](_0x3fe07d['root']['rootName']);null===_0x3fe07d['newValue']?delete _0x3b2322[_0x3fe07d['key']]:_0x3b2322[_0x3fe07d['key']]=_0x3fe07d['newValue'];}}function T(_0x61015a){const _0x368d35=F(_0x61015a['rootName'],_0x61015a['isAttached']());for(const _0x3acf8d of _0x61015a['getChildren']()){const _0x5aa493=_0x3acf8d['_clone'](!0x0);_0x368d35['_appendChild'](_0x5aa493);}return _0x368d35;}function F(_0x2ca2b2,_0xa086cd=!0x0){const _0x3afb59=new gt();return _0x3afb59['rootName']=_0x2ca2b2,_0x3afb59['_isAttached']=_0xa086cd,_0x3afb59['isAttached']=()=>_0x3afb59['_isAttached'],_0x3afb59;}function B(_0x597610,_0x48593a,_0x4331c0){const _0x4a04dd='elementEnd'==_0x597610['type']?_0x4331c0['createPositionAt'](_0x597610['item'],'end'):_0x4331c0['createPositionBefore'](_0x597610['item']);return _0x4331c0['createPositionFromPath'](_0x48593a,_0x4a04dd['path'],_0x4a04dd['stickiness']);}function J(_0x2ccbdb,_0x45f8b6,_0x39534c){const _0x336e6d='elementStart'==_0x2ccbdb['type']?_0x39534c['createPositionAt'](_0x2ccbdb['item'],0x0):_0x39534c['createPositionAfter'](_0x2ccbdb['item']);return _0x39534c['createPositionFromPath'](_0x45f8b6,_0x336e6d['path'],_0x336e6d['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x31e7c1,_0x1a2bb4){super(_0x31e7c1),this['focusTracker']=new _0x99741a(),this['keystrokes']=new _0x243516(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1a2bb4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x407e11(this);}['render'](){super['render'](),_0x3c3987({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x24f07d=_0xcb9831=>_0xcb9831['stopPropagation']();this['keystrokes']['set']('arrowright',_0x24f07d),this['keystrokes']['set']('arrowleft',_0x24f07d),this['keystrokes']['set']('arrowup',_0x24f07d),this['keystrokes']['set']('arrowdown',_0x24f07d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x366929){this['revisionNameInputView']['fieldView']['element']['value']=_0x366929['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x57281d){const _0x2e3ba6=new _0x4f90d2(this['locale'],_0x1a5665),_0x464865=_0x2e3ba6['fieldView'];_0x464865['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1bd404=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x57281d&&(_0x1bd404+='\x20('+m(this['locale'],'optional')+')'),(_0x2e3ba6['label']=_0x1bd404,_0x464865['on']('input',()=>{this['revisionNameInputValue']=_0x464865['element']['value']['trim']();}),_0x2e3ba6);}}class f extends _0x657f6f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x34895c=this['editor'],_0x1bea14=_0x34895c['plugins']['get']('RevisionTracker');_0x34895c['ui']['componentFactory']['add']('revisionHistory',_0xffd878=>{const _0x1ee0d6=_0xabbbe1(_0xffd878),_0x316072=_0x1ee0d6['panelView']['children'],_0x178dfe=new _0x2f8ba0(_0xffd878),_0x401057=new _0x493811(_0xffd878),_0x3eabb5=new te(_0xffd878),_0x19f386=new _0x493811(_0xffd878),_0x29726b=new te(_0xffd878);return _0x1ee0d6['bind']('isEnabled')['to'](_0x1bea14,'isReady',_0x1bea14,'isEnabled',_0x34895c,'isReadOnly',(_0x5bb957,_0x59374f,_0x466a6b)=>_0x5bb957&&_0x59374f&&!_0x466a6b),_0x1ee0d6['buttonView']['set']({'icon':_0x3f127c,'label':m(_0xffd878,'Revision\x20history'),'tooltip':!0x0}),_0x3eabb5['set']({'label':m(_0xffd878,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3eabb5['bind']('isEnabled')['to'](_0x1bea14,'isReady',_0x1bea14,'isEnabled',_0x34895c,'isReadOnly',(_0x96ab80,_0x3efa1a,_0x551a3a)=>_0x96ab80&&_0x3efa1a&&!_0x551a3a),_0x3eabb5['on']('execute',()=>this['_showDialog']()),_0x29726b['set']({'label':m(_0xffd878,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x29726b['bind']('isEnabled')['to'](_0x1bea14,'isReady',_0x34895c,'isReadOnly',(_0x50440e,_0x4d7a93)=>_0x50440e&&!_0x4d7a93),_0x29726b['on']('execute',()=>{_0x34895c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1ee0d6['isOpen']=!0x1,_0x34895c['editing']['view']['focus']();}),_0x401057['children']['add'](_0x3eabb5),_0x19f386['children']['add'](_0x29726b),_0x178dfe['role']='menu',_0x178dfe['items']['addMany']([_0x401057,_0x19f386]),_0x316072['add'](_0x178dfe),_0x1ee0d6;}),_0x34895c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x13ba25=this['editor'],_0x49d624=_0x13ba25['locale'],_0xae0ec7=new _0x2f28bb(_0x49d624),_0x540f90=new _0x3ed85c(_0x49d624);_0xae0ec7['buttonView']['set']({'icon':_0x3f127c,'label':m(_0x49d624,'Revision\x20history')});const _0x1ff0af=new _0x8bb199(_0x49d624,_0xae0ec7),_0x15016e=new _0x4160e3(_0x49d624);_0x15016e['set']({'label':m(_0x49d624,'Save\x20current\x20revision')}),_0x15016e['delegate']('execute')['to'](_0xae0ec7),_0x15016e['on']('execute',()=>{this['_showDialog']();}),_0x1ff0af['children']['add'](_0x15016e),_0x540f90['items']['add'](_0x1ff0af);const _0x1ce26d=new _0x8bb199(_0x49d624,_0xae0ec7),_0x4b4a77=new _0x4160e3(_0x49d624);return _0x4b4a77['set']({'label':m(_0x49d624,'Open\x20revision\x20history')}),_0x4b4a77['delegate']('execute')['to'](_0xae0ec7),_0x4b4a77['on']('execute',()=>{_0x13ba25['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1ce26d['children']['add'](_0x4b4a77),_0x540f90['items']['add'](_0x1ce26d),_0xae0ec7['panelView']['children']['add'](_0x540f90),_0xae0ec7;}['_showDialog'](){const _0x134ccc=this['editor'],_0x2d10af=_0x134ccc['locale'],_0x279269=_0x134ccc['plugins']['get']('Dialog'),_0x32971f=_0x134ccc['plugins']['get']('RevisionTracker');function _0x5cf6c0(_0x546c8f){_0x134ccc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x546c8f['revisionName']?_0x546c8f['revisionNameInputView']['errorText']=m(_0x2d10af,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x134ccc['plugins']['get'](u)['saveRevision']({'name':_0x546c8f['revisionName']}),_0x279269['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5cf6c0(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x279269['show']({'id':'revisionSave','title':m(_0x2d10af,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x134ccc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x279269['hide']()},{'label':m(_0x134ccc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4d9778){_0x4d9778['bind']('isEnabled')['to'](_0x32971f,'isReady',_0x32971f,'isEnabled',_0x134ccc,'isReadOnly',(_0x16778f,_0x364837,_0x561d6d)=>_0x16778f&&_0x364837&&!_0x561d6d);},'onExecute':()=>_0x5cf6c0(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xbd2c90=this['editor'],_0x5af08e=_0xbd2c90['locale'];this['_saveRevisionFormView']=new hs(_0x5af08e,_0xbd2c90['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x3251fe,_0x365a97){super(_0x3251fe),this['_model']=_0x365a97,this['changeId']=_0x365a97['id'];const _0x33554e=this['bindTemplate'],_0x24dbd3=m(_0x3251fe,_0x365a97['data']['isSuggestion']?'Suggested\x20by':'add'==_0x365a97['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x365a97['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x33554e['to']('type',_0x4aaaad=>'ck-revision-change__'+_0x4aaaad)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x24dbd3}]},{'text':'\x20'+_0x365a97['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x40dcb4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5f39a1){super(),this['id']=_0x5f39a1['id']||_0x1916c0(),this['author']=_0x5f39a1['author'],this['type']=_0x5f39a1['type'],this['data']=_0x5f39a1['data']||{},this['rootName']=_0x5f39a1['rootName'],this['set']('createdAt',_0x5f39a1['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(_0x1207b0,_0x32d019){this['newRevisionId']=_0x1207b0,this['oldRevisionId']=_0x32d019,this['changes']=new _0x3c6e40();}['_setChanges'](_0x29424d){for(const _0xfc22b0 of _0x29424d)this['changes']['add'](_0xfc22b0);}}const Y={'c':_0x1523ca,'a':_0x287f2b,'e':_0x24a98b,'r':_0x333e25,'u':_0x486d16};class d extends _0x657f6f{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x54c8db,_0x431a50,j];}constructor(_0x5c5b68){super(_0x5c5b68),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x15d391,_0x175a61,_0xd664c4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x198557=>{for(const _0x5c4db4 of this['editor']['editing']['view']['document']['roots'])_0xd664c4?_0x198557['removeClass']('ck-editor__editable__overlay',_0x5c4db4):_0x198557['addClass']('ck-editor__editable__overlay',_0x5c4db4);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x495545=>null!==_0x495545),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4aa6ed,_0xa7ef69,_0x565b89)=>_0x4aa6ed&&_0x565b89?_0xa7ef69['changes']['getIndex'](_0x565b89):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4bb494,_0x33418f)=>_0x4bb494?_0x33418f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x431a50);}['init'](){const _0x562d86=this['editor'],_0x46bea7=new _t(_0x562d86,{'direction':'backward'}),_0x1db7c9=new _t(_0x562d86,{'direction':'forward'});(_0x562d86['commands']['add']('showPreviousChange',_0x46bea7),_0x562d86['commands']['add']('showNextChange',_0x1db7c9),_0x562d86['commands']['add']('restoreRevision',new wt(_0x562d86)),this['on']('change:numberOfChanges',()=>{_0x46bea7['refresh'](),_0x1db7c9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x562d86['enableReadOnlyMode']('revision-viewer'),_0x562d86['plugins']['has']('WidgetToolbarRepository'))&&_0x562d86['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x163a52){await this['loadRevisionData'](_0x163a52);const _0x35288b={};for(const _0x21fc3c in _0x163a52['diffData']){if(_0x163a52['diffData'][_0x21fc3c]['attachChange']&&!_0x163a52['diffData'][_0x21fc3c]['attachChange']['isAttached'])continue;const _0x568894=this['_removeRevisionMarkers'](JSON['parse'](_0x163a52['diffData'][_0x21fc3c]['insertions'])),_0xf977e6=this['editor']['editing']['view']['document'],_0x36ce24=new _0x42c523(_0xf977e6,_0x568894['map'](_0x2372b9=>this['_getViewObj'](_0x2372b9)));this['editor']['data']['processor']['useFillerType']('marked'),_0x35288b[_0x21fc3c]=this['editor']['data']['processor']['toData'](_0x36ce24),this['editor']['data']['processor']['useFillerType']('default');}return _0x35288b;}async['getRevisionRootsAttributes'](_0x2d5e68){await this['loadRevisionData'](_0x2d5e68);const _0x2697c1={};for(const _0x14ed57 in _0x2d5e68['diffData'])_0x2d5e68['diffData'][_0x14ed57]['attachChange']&&!_0x2d5e68['diffData'][_0x14ed57]['attachChange']['isAttached']||(_0x2697c1[_0x14ed57]=_0x2d5e68['diffData'][_0x14ed57]['attributesAfter']||{});return _0x2697c1;}['_removeRevisionMarkers'](_0x45a696){return(_0x45a696=_0x45a696['filter'](_0x33af7c=>!_0x33af7c['name']||'revision-start'!==_0x33af7c['name']&&'revision-end'!==_0x33af7c['name']))['forEach'](_0x3245b8=>{'string'!=typeof _0x3245b8&&(_0x3245b8['children']=this['_removeRevisionMarkers'](_0x3245b8['children']),_0x3245b8['attributes']=_0x3245b8['attributes']['filter'](_0x2c0138=>!_0x2c0138[0x0]['startsWith']('data-revision-')));}),_0x45a696;}async['compare'](_0x160d5b,_0x115ea7,_0x55b3bf=!0x1){if(!this['isEnabled'])return;const _0x5275d9=this['diff'],_0x385762=this['repository'],_0x142f02='string'==typeof _0x160d5b?_0x385762['getRevision'](_0x160d5b):_0x160d5b,_0x411fb9='string'==typeof _0x115ea7?_0x385762['getRevision'](_0x115ea7):_0x115ea7,_0x55d32f=_0x142f02['id'],_0x72264f=_0x411fb9?_0x411fb9['id']:null;if(!_0x55b3bf&&this['diff']&&this['diff']['newRevisionId']===_0x55d32f&&this['diff']['oldRevisionId']===_0x72264f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x55d32f,_0x72264f);const _0x1c8fdf=this['_getRevisionsRange'](_0x142f02,_0x411fb9,!0x0)['map'](_0x2cf2e2=>this['loadRevisionData'](_0x2cf2e2));return _0x1c8fdf['push'](new Promise(_0x3d56ff=>{setTimeout(_0x3d56ff,0x14);})),Promise['all'](_0x1c8fdf)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3222a2=this['_getDiff'](_0x55d32f,_0x72264f);for(const _0x40162c of _0x3222a2['changes'])this['_changeIdToChange']['set'](_0x40162c['id'],_0x40162c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x9bac83=>{for(const _0x1036a4 of this['editor']['model']['document']['getRootNames']())_0x9bac83['detachRoot'](_0x1036a4);for(const _0x4e462d of Object['keys'](_0x3222a2['model'])){const _0x19fa0e=_0x9bac83['addRoot'](_0x4e462d);for(const _0x1805e8 of Object['keys'](_0x3222a2['attributes'][_0x4e462d]))_0x9bac83['setAttribute'](_0x1805e8,_0x3222a2['attributes'][_0x4e462d][_0x1805e8],_0x19fa0e);_0x9bac83['insert'](_0x3222a2['model'][_0x4e462d],_0x19fa0e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3222a2['changes'])),this['isReady']=!0x0;})['catch'](_0x57e440=>{console['error'](_0x57e440),this['_cleanUp'](),_0x5275d9&&(this['diff']=_0x5275d9),this['isReady']=!0x0;});}['addRevisionData'](_0x20d8b5,_0x481a92){const _0xa0adf5=this['repository']['createRevision'](_0x20d8b5);return _0xa0adf5['on']('_update',(_0x1e1879,_0x4c456e,_0x4fd453)=>_0x481a92(_0x4c456e,_0x4fd453,_0xa0adf5)),this['repository']['addRevision'](_0xa0adf5),_0xa0adf5;}['loadRevisionData'](_0x291fd3){if(!_0x291fd3||_0x291fd3['diffData'])return Promise['resolve']();{const _0x3c866f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3c866f,'revisionId':_0x291fd3['id']})['then'](_0x503cbb=>{_0x291fd3['_update']({'diffData':_0x503cbb['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5132a9=>{for(const _0x3ac5d9 of this['editor']['model']['document']['getRootNames']())_0x5132a9['detachRoot'](_0x3ac5d9);});}['_sortAndFilterDiffChanges'](_0x992f3){const _0x591a4a=[],_0x2c5a35=new Map();for(const _0x18af65 of this['editor']['model']['document']['getRootNames']()){const _0x2527b7=this['editor']['editing']['view']['getDomRoot'](_0x18af65);if(!_0x2527b7)continue;const _0x2b1597=_0x2527b7['getClientRects']()['item'](0x0);_0x2b1597&&(_0x591a4a['push'](_0x18af65),_0x2c5a35['set'](_0x18af65,_0x2b1597));}return _0x591a4a['sort']((_0x14a90f,_0x2b607d)=>{const _0x4babc6=_0x2c5a35['get'](_0x14a90f),_0x13340d=_0x2c5a35['get'](_0x2b607d);return _0x4babc6['y']-_0x13340d['y']||_0x4babc6['x']-_0x13340d['x'];}),(_0x992f3=_0x992f3['filter'](_0x446d64=>_0x591a4a['includes'](_0x446d64['rootName'])))['sort']((_0xaebfc2,_0x330728)=>_0x591a4a['indexOf'](_0xaebfc2['rootName'])-_0x591a4a['indexOf'](_0x330728['rootName'])),_0x992f3;}['_makeTape'](_0x14fd67){const _0x20394f=Array['from'](_0x14fd67['markers'])['filter'](([_0x43167f,_0x404863])=>_0x43167f['startsWith']('revision:')&&!_0x404863['isCollapsed']),_0x24be0f=Array['from'](this['editor']['model']['createRangeIn'](_0x14fd67)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x20394f['length'])for(const _0x462240 of _0x24be0f){const [_0x48d7c8,_0x58857a]=_0x20394f[0x0],[,_0x31cc22,_0x56f7e3]=_0x48d7c8['split'](':');if(_0x58857a['end']['isEqual'](_0x462240['nextPosition'])&&_0x20394f['shift'](),(_0x462240['previousPosition']['isEqual'](_0x58857a['start'])||_0x462240['previousPosition']['isAfter'](_0x58857a['start']))&&('insertion'==_0x31cc22?_0x462240['isAdded']={'userId':_0x56f7e3}:'deletion'==_0x31cc22&&(_0x462240['isRemoved']={'userId':_0x56f7e3})),0x0==_0x20394f['length'])break;}return _0x24be0f;}['_refreshStartEndIndex'](_0x3bde7c){const _0x22a3a1=new Map();for(let _0x315015=0x0;_0x315015<_0x3bde7c['length'];_0x315015++)'text'===_0x3bde7c[_0x315015]['type']?(_0x3bde7c[_0x315015]['item']['startIndex']=_0x315015,_0x3bde7c[_0x315015]['item']['endIndex']=_0x315015):('elementStart'===_0x3bde7c[_0x315015]['type']?_0x3bde7c[_0x315015]['item']['startIndex']=_0x315015:'elementEnd'===_0x3bde7c[_0x315015]['type']&&(_0x3bde7c[_0x315015]['item']['endIndex']=_0x315015),_0x22a3a1['set'](_0x3bde7c[_0x315015]['id'],_0x315015));for(const _0x5e024d of _0x22a3a1['values']())'elementStart'===_0x3bde7c[_0x5e024d]['type']?_0x3bde7c[_0x5e024d]['item']['endIndex']=_0x22a3a1['get'](_0x3bde7c[_0x5e024d]['pairId']):'elementEnd'===_0x3bde7c[_0x5e024d]['type']&&(_0x3bde7c[_0x5e024d]['item']['startIndex']=_0x22a3a1['get'](_0x3bde7c[_0x5e024d]['pairId']));}['_processTape'](_0x1387ca){for(let _0x2fc3dd=0x0;_0x2fc3dd<_0x1387ca['length'];_0x2fc3dd++){if('elementStart'===_0x1387ca[_0x2fc3dd]['type'])_0x1387ca[_0x2fc3dd]['item']['startIndex']=_0x2fc3dd;else{if('elementEnd'===_0x1387ca[_0x2fc3dd]['type']){_0x1387ca[_0x2fc3dd]['item']['endIndex']=_0x2fc3dd;const _0x5dad1b=_0x1387ca[_0x2fc3dd]['item']['startIndex'];_0x1387ca[_0x5dad1b]['pairId']=_0x1387ca[_0x2fc3dd]['id'],_0x1387ca[_0x2fc3dd]['pairId']=_0x1387ca[_0x5dad1b]['id'];}else _0x1387ca[_0x2fc3dd]['item']['startIndex']=_0x2fc3dd,_0x1387ca[_0x2fc3dd]['item']['endIndex']=_0x2fc3dd,_0x1387ca[_0x2fc3dd]['pairId']=null;}_0x1387ca[_0x2fc3dd]['markersStart']||(_0x1387ca[_0x2fc3dd]['markersStart']=[],_0x1387ca[_0x2fc3dd]['markersEnd']=[]);}}['_markInsertions'](_0x237477,_0xa7c2f9){const _0x49774e=_0x237477['filter'](_0xd6fa89=>!_0xd6fa89['isAdded']);for(let _0xbda576=0x0;_0xbda576<_0xa7c2f9['length'];_0xbda576++)_0xa7c2f9[_0xbda576]['isAdded']&&(_0x49774e[_0xbda576]['isAdded']=_0xa7c2f9[_0xbda576]['isAdded']);}['_makeModelFromViewString'](_0x489d33){const _0x390707=JSON['parse'](_0x489d33),_0x4251c2=this['editor']['editing']['view']['document'],_0x201585=new _0x42c523(_0x4251c2,_0x390707['map'](_0x5297df=>this['_getViewObj'](_0x5297df)));return this['editor']['data']['toModel'](_0x201585);}['_getViewObj'](_0x4e7e6a){const _0x2f0873=this['editor']['editing']['view']['document'];if('string'==typeof _0x4e7e6a)return new _0x39cc50(_0x2f0873,_0x4e7e6a);{const _0x4f3935=_0x4e7e6a['children']['map'](_0x4283d4=>this['_getViewObj'](_0x4283d4));return new(Y[_0x4e7e6a['type']]||_0x1e70bc)(_0x2f0873,_0x4e7e6a['name'],_0x4e7e6a['attributes'],_0x4f3935);}}['_getDiff'](_0x46ff85,_0x41ec5d=null){const _0x189d6c=this['repository']['getRevision'](_0x46ff85),_0x32e220=_0x41ec5d?this['repository']['getRevision'](_0x41ec5d):null,_0x421ac5=this['_getRevisionsRange'](_0x189d6c,_0x32e220),_0x919671=_0x421ac5[_0x421ac5['length']-0x1],_0x396718=new Map(),_0x48f199={'model':{},'attributes':{},'changes':[]},_0x907305=new Set(),_0x4ae5bb=new Map();for(let _0x362ad5=_0x421ac5['length']-0x1;_0x362ad5>=0x0;_0x362ad5--){const _0x58b38a=_0x421ac5[_0x362ad5];for(const _0x1a663a of Object['keys'](_0x58b38a['diffData']))if(_0x58b38a['diffData'][_0x1a663a]['attachChange']){const _0x26e06b=_0x58b38a['diffData'][_0x1a663a]['attachChange'];_0x26e06b['isAttached']?(_0x907305['add'](_0x1a663a),_0x4ae5bb['has'](_0x1a663a)&&_0x4ae5bb['get'](_0x1a663a)['userId']==_0x26e06b['userId']?_0x4ae5bb['delete'](_0x1a663a):_0x4ae5bb['set'](_0x1a663a,_0x26e06b)):_0x4ae5bb['has'](_0x1a663a)?(_0x907305['delete'](_0x1a663a),_0x4ae5bb['delete'](_0x1a663a)):(_0x907305['add'](_0x1a663a),_0x4ae5bb['set'](_0x1a663a,_0x26e06b));}else _0x907305['add'](_0x1a663a);}for(const _0x533727 of _0x907305){const _0x49296e=_0x4ae5bb['has'](_0x533727)&&!_0x4ae5bb['get'](_0x533727)['isAttached'];let _0x25b595=_0x49296e?_0x421ac5['length']-0x1:0x0;const _0x74e46a=_0x49296e?-0x1:0x1;for(;_0x421ac5[_0x25b595];){const _0x3030b3=_0x421ac5[_0x25b595];if(_0x3030b3['diffData'][_0x533727]){const _0x4dede2=_0x49296e?_0x3030b3['diffData'][_0x533727]['attributesBefore']:_0x3030b3['diffData'][_0x533727]['attributesAfter'];_0x48f199['attributes'][_0x533727]=_0x4dede2?_0x7494e5(_0x4dede2):{};break;}_0x25b595+=_0x74e46a;}}for(const _0x22efa5 of _0x421ac5){_0x22efa5['model']={};for(const _0x4866a6 of _0x22efa5['authors'])_0x396718['set'](_0x4866a6['id'],_0x4866a6);for(const _0x996d15 of _0x907305){const _0x9585c6=_0x22efa5['diffData'][_0x996d15]?_0x22efa5['diffData'][_0x996d15]['insertions']:'[]',_0x2faabc=_0x22efa5['diffData'][_0x996d15]?_0x22efa5['diffData'][_0x996d15]['deletions']:'[]';_0x22efa5['model'][_0x996d15]={'insertions':this['_makeModelFromViewString'](_0x9585c6),'deletions':this['_makeModelFromViewString'](_0x2faabc)};}}for(const _0x2fb85c of _0x907305){let _0x5a6134=null,_0x4aeb18=0x0;const _0x429801=new Map(Array['from'](_0x189d6c['model'][_0x2fb85c]['insertions']['markers'])['filter'](([_0x4370f8])=>!_0x4370f8['startsWith']('revision:')));let _0x582db7=0x0;for(const _0x504e1b of _0x421ac5){const _0x401020=this['_makeTape'](_0x504e1b['model'][_0x2fb85c]['insertions']);_0x504e1b==_0x189d6c?(_0x5a6134=_0x401020,_0x4aeb18=_0x5a6134['length'],_0x5a6134['forEach'](_0x58b2c8=>{_0x58b2c8['id']=_0x582db7++;}),this['_processTape'](_0x5a6134)):this['_markInsertions'](_0x5a6134,_0x401020);const _0x111f96=_0x5a6134['filter'](_0x544dc1=>!_0x544dc1['isAdded'])['map'](_0x2d3ea0=>_0x2d3ea0['id']);let _0x5c35b2=0x0;const _0x578a65=this['_makeTape'](_0x504e1b['model'][_0x2fb85c]['deletions']);_0x578a65['forEach'](_0x3d5387=>{_0x3d5387['isRemoved']?_0x3d5387['id']=_0x4aeb18++:_0x3d5387['id']=_0x111f96[_0x5c35b2++];}),this['_processTape'](_0x578a65),this['_setDistance'](_0x5a6134,'isAdded'),this['_setDistance'](_0x578a65,'isRemoved'),_0x504e1b==_0x189d6c&&this['_markMarkers'](_0x5a6134,_0x429801),_0x5a6134=this['_joinTapes'](_0x5a6134,_0x578a65),this['_refreshStartEndIndex'](_0x5a6134),this['_setDistance'](_0x5a6134,'isRemoved');}_0x5a6134=_0x5a6134['filter'](_0x5c959c=>!(_0x5c959c['isAdded']&&_0x5c959c['isRemoved']));const _0x3ca659=new Map(_0x919671['model'][_0x2fb85c]['deletions']['markers']),_0xb96cf9=new Set(_0x429801['keys']());for(const _0x3fe412 of _0x3ca659['keys']())_0xb96cf9['delete'](_0x3fe412);this['_markSuggestions'](_0x5a6134,_0xb96cf9),this['_fixObsoleteTags'](_0x5a6134),_0x5a6134=this['_removeMissingPairs'](_0x5a6134),_0x5a6134=this['_markMismatchedRemovedTags'](_0x5a6134),_0x5a6134=this['_removeUnsupportedChanges'](_0x5a6134);const {root:_0x9d388f,changes:_0x446e41}=this['_makeModelFromTape'](_0x5a6134,_0x396718,_0x2fb85c);_0x48f199['model'][_0x2fb85c]=_0x9d388f;const _0x46b34a=_0x4ae5bb['get'](_0x2fb85c);if(_0x46b34a){const _0x57e817=_0x396718['get'](_0x46b34a['userId']),_0x14fcbd=new r({'author':_0x57e817,'type':_0x46b34a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2fb85c});_0x446e41['unshift'](_0x14fcbd),_0x48f199['attributes'][_0x2fb85c]['revisionHistoryAttachChange']=_0x14fcbd['id'];}_0x48f199['changes']=_0x48f199['changes']['concat'](_0x446e41);}return _0x48f199;}['_markMarkers'](_0x11c5d1,_0x301fc5){for(let _0x5df2b6=0x0;_0x5df2b6<_0x11c5d1['length'];_0x5df2b6++)for(const [_0x56e7aa,_0x19fffd]of _0x301fc5)_0x19fffd['start']['isEqual'](_0x11c5d1[_0x5df2b6]['previousPosition'])&&_0x11c5d1[_0x5df2b6]['markersStart']['push'](_0x56e7aa),_0x19fffd['end']['isEqual'](_0x11c5d1[_0x5df2b6]['nextPosition'])&&_0x11c5d1[_0x5df2b6]['markersEnd']['push'](_0x56e7aa);}['_joinTapes'](_0x41c691,_0x35c22f){let _0x21f849=[],_0x152341=0x0,_0x20768a=0x0;for(;_0x152341<_0x41c691['length']||_0x20768a<_0x35c22f['length'];){const _0x385155=_0x41c691[_0x152341]||{},_0x373b63=_0x35c22f[_0x20768a]||{};if(_0x385155['id']==_0x373b63['id'])_0x152341++,_0x20768a++,_0x21f849['push'](_0x385155);else{if(_0x373b63['isRemoved']&&_0x385155['isAdded']){const {commonTape:_0x36e43a,iEnd:_0x3ce047,jEnd:_0x2172c7}=this['_threeWayMerge'](_0x41c691,_0x152341,_0x35c22f,_0x20768a);_0x21f849=_0x21f849['concat'](_0x36e43a),_0x152341=_0x3ce047,_0x20768a=_0x2172c7;}else _0x373b63['isRemoved']?(_0x20768a++,_0x21f849['push'](_0x373b63)):(_0x152341++,_0x21f849['push'](_0x385155));}}return _0x21f849;}['_markSuggestions'](_0x4f6a03,_0x18a984){const _0x475e20=[];for(let _0x2283a6=0x0;_0x2283a6<_0x4f6a03['length'];_0x2283a6++){for(let _0x3c9898=0x0;_0x3c9898<_0x4f6a03[_0x2283a6]['markersStart']['length'];_0x3c9898++){const _0x548edf=_0x4f6a03[_0x2283a6]['markersStart'][_0x3c9898];if(!_0x18a984['has'](_0x548edf))continue;const {group:_0x4de553,type:_0x1fc557,authorId:_0x439451}=_0x16ab64(_0x548edf);'revision-suggestion'!=_0x4de553||'insertion'!=_0x1fc557&&'deletion'!=_0x1fc557||(_0x475e20['unshift']({'type':_0x1fc557,'name':_0x548edf,'userId':_0x439451}),_0x4f6a03[_0x2283a6]['markersStart']['splice'](_0x3c9898,0x1),_0x3c9898--);}_0x3f39fd(_0x4f6a03[_0x2283a6]);for(let _0x3ceb1f=0x0;_0x3ceb1f<_0x4f6a03[_0x2283a6]['markersEnd']['length'];_0x3ceb1f++){const _0x308cb7=_0x4f6a03[_0x2283a6]['markersEnd'][_0x3ceb1f];if(!_0x18a984['has'](_0x308cb7))continue;const {group:_0xbef35a,type:_0x2b151e}=_0x16ab64(_0x308cb7);if('revision-suggestion'!=_0xbef35a||'insertion'!=_0x2b151e&&'deletion'!=_0x2b151e)continue;_0x4f6a03[_0x2283a6]['markersEnd']['splice'](_0x3ceb1f,0x1),_0x3ceb1f--;const _0x104067=_0x475e20['findIndex'](_0x4fd630=>_0x4fd630['name']==_0x308cb7);_0x104067>-0x1&&_0x475e20['splice'](_0x104067,0x1);}}function _0x16ab64(_0x2a2d5b){const _0xf07ca5=_0x2a2d5b['split'](':');return{'group':_0xf07ca5[0x0],'type':_0xf07ca5[0x1],'subType':_0xf07ca5['length']>=0x5?_0xf07ca5[0x2]:null,'id':_0xf07ca5['length']<0x5?_0xf07ca5[0x2]:_0xf07ca5[0x3],'authorId':_0xf07ca5['length']<0x5?_0xf07ca5[0x3]:_0xf07ca5[0x4],'markerCount':0x6==_0xf07ca5['length']?_0xf07ca5[0x5]:null};}function _0x3f39fd(_0x2ebe47){for(let _0x16d274=0x0;_0x16d274<_0x475e20['length'];_0x16d274++){if(_0x2ebe47['isAdded']&&'insertion'==_0x475e20[_0x16d274]['type'])return _0x2ebe47['isAddSuggestion']=_0x475e20[_0x16d274],void delete _0x2ebe47['isAdded'];if(!_0x2ebe47['isAdded']&&!_0x2ebe47['isRemoved']&&'deletion'==_0x475e20[_0x16d274]['type'])return void(_0x2ebe47['isRemoveSuggestion']=_0x475e20[_0x16d274]);}}}['_setDistance'](_0x516f08,_0x2696b8){let _0x57a4fe=0x0,_0x260333=!0x1;const _0xdfd7ab=new Map();for(const _0x3e141e of _0x516f08)_0x3e141e[_0x2696b8]?_0x260333&&(_0x57a4fe++,_0x260333=!0x1):(_0x57a4fe++,_0x260333=!0x0),_0xdfd7ab['set'](_0x3e141e['id'],_0x57a4fe);for(let _0x4ba251=0x0;_0x4ba251<_0x516f08['length'];_0x4ba251++){if('isRemoved'==_0x2696b8&&_0x516f08[_0x4ba251]['isAdded']||'isAdded'==_0x2696b8&&_0x516f08[_0x4ba251]['isRemoved'])continue;if('text'==_0x516f08[_0x4ba251]['type']){_0x516f08[_0x4ba251]['distance']=0x0;continue;}const _0x32b557=_0xdfd7ab['get'](_0x516f08[_0x4ba251]['pairId']),_0x273582=_0xdfd7ab['get'](_0x516f08[_0x4ba251]['id']);_0x516f08[_0x4ba251]['distance']=_0x32b557-_0x273582;}}['_getRevisionsRange'](_0x49ed49,_0x5eafe8,_0x5cff8b=!0x1){const _0x4f1c0a=[];let _0x6d8370=this['repository']['getIndex'](_0x49ed49),_0xd6aa9c=this['repository']['getIndex'](_0x5eafe8);for(-0x1==_0xd6aa9c&&(_0xd6aa9c=this['repository']['_revisions']['length'],_0x5cff8b=!0x1);_0x6d8370<_0xd6aa9c;)_0x4f1c0a['push'](this['repository']['getRevision'](_0x6d8370)),_0x6d8370++;return _0x5cff8b&&_0x4f1c0a['push'](this['repository']['getRevision'](_0x6d8370)),_0x4f1c0a;}['_threeWayMerge'](_0x14b47e,_0x2f8b3b,_0x1de197,_0x34fa62){const _0x275e34=this['editor']['model']['schema'];let _0x806cd1=_0x2f8b3b;for(;_0x14b47e[_0x806cd1]&&_0x14b47e[_0x806cd1]['isAdded'];)_0x806cd1++;let _0x2ca0c2=_0x34fa62;for(;_0x1de197[_0x2ca0c2]&&_0x1de197[_0x2ca0c2]['isRemoved'];)_0x2ca0c2++;_0x566cb1(_0x14b47e,_0x2f8b3b,_0x806cd1),_0x566cb1(_0x1de197,_0x34fa62,_0x2ca0c2);const _0x50a4e5=_0x1de197['slice'](_0x34fa62,_0x2ca0c2)['concat'](_0x14b47e['slice'](_0x2f8b3b,_0x806cd1));return _0x50a4e5['sort']((_0x2bf6e3,_0x11641d)=>_0x2bf6e3['side']!=_0x11641d['side']?_0x2bf6e3['side']-_0x11641d['side']:_0x2bf6e3['level']!=_0x11641d['level']?_0x2bf6e3['level']-_0x11641d['level']:_0x2bf6e3['distance']!=_0x11641d['distance']?_0x11641d['distance']-_0x2bf6e3['distance']:!!_0x2bf6e3['isAdded']!=!!_0x11641d['isAdded']?-0x1==_0x2bf6e3['side']||0x0==_0x2bf6e3['side']?_0x2bf6e3['isAdded']?-0x1:0x1:_0x2bf6e3['isAdded']?0x1:-0x1:_0x2bf6e3['index']-_0x11641d['index']),{'commonTape':_0x50a4e5,'iEnd':_0x806cd1,'jEnd':_0x2ca0c2};function _0x566cb1(_0x476105,_0x1094cd,_0x3d10bc){let _0x4479b6=-0x1,_0x53b3b9=Number['POSITIVE_INFINITY'],_0x2c360d=!0x0;for(let _0x53ce53=_0x1094cd;_0x53ce53<_0x3d10bc;_0x53ce53++)if(_0x275e34['isInline'](_0x476105[_0x53ce53]['item'])||(_0x2c360d=!0x1),_0x476105[_0x53ce53]['item']['startIndex']<_0x1094cd&&(_0x4479b6=_0x53ce53),_0x476105[_0x53ce53]['item']['endIndex']>=_0x3d10bc){_0x53b3b9=_0x53ce53;break;}_0x2c360d&&(_0x4479b6=_0x3d10bc-0x1);for(let _0x27ddc9=_0x1094cd;_0x27ddc9<_0x3d10bc;_0x27ddc9++)_0x476105[_0x27ddc9]['side']=_0x27ddc9<=_0x4479b6?-0x1:_0x27ddc9<_0x53b3b9?0x0:0x1,_0x476105[_0x27ddc9]['index']=_0x27ddc9;let _0x10f175=0x0;for(let _0x555c07=_0x1094cd;_0x555c07<=_0x4479b6;_0x555c07++)0x0==_0x476105[_0x555c07]['distance']?_0x476105[_0x555c07]['level']=_0x10f175:(_0x10f175++,_0x476105[_0x555c07]['level']=_0x10f175,_0x10f175++);for(let _0x3546c3=_0x1094cd;_0x3546c3<_0x3d10bc;_0x3546c3++)0x0==_0x476105[_0x3546c3]['side']&&(_0x476105[_0x3546c3]['level']=_0x10f175);_0x10f175=0x0;for(let _0x8ddea5=_0x3d10bc-0x1;_0x8ddea5>=_0x53b3b9;_0x8ddea5--)0x0==_0x476105[_0x8ddea5]['distance']?_0x476105[_0x8ddea5]['level']=_0x10f175:(_0x10f175--,_0x476105[_0x8ddea5]['level']=_0x10f175,_0x10f175--);}}['_fixObsoleteTags'](_0x4be9ca){const _0x1c57da=new Map(),_0x27e699=this['editor']['model']['schema'];for(let _0x3bad2b=0x1;_0x3bad2b<_0x4be9ca['length'];_0x3bad2b++){let _0x2202aa,_0x1ba0d6,_0x11e22c;const _0x4135d4=_0x4be9ca[_0x3bad2b],_0x2962e1=_0x4be9ca[_0x3bad2b-0x1];if('text'==_0x4135d4['type'])continue;if(_0x4135d4['type']!=_0x2962e1['type'])continue;if(!_0x27e699['isBlock'](_0x2962e1['item'])||_0x27e699['isLimit'](_0x2962e1['item']))continue;if(!_0x27e699['isBlock'](_0x4135d4['item'])||_0x27e699['isLimit'](_0x4135d4['item']))continue;if((_0x4be9ca[_0x3bad2b]['isAdded']||_0x4be9ca[_0x3bad2b]['isAddSuggestion'])&&_0x4be9ca[_0x3bad2b-0x1]['isRemoved'])_0x2202aa=_0x4be9ca[_0x3bad2b],_0x1ba0d6=_0x4be9ca[_0x3bad2b-0x1],_0x11e22c=_0x3bad2b-0x1;else{if(!_0x4be9ca[_0x3bad2b]['isRemoved']||!_0x4be9ca[_0x3bad2b-0x1]['isAdded']&&!_0x4be9ca[_0x3bad2b-0x1]['isAddSuggestion'])continue;_0x2202aa=_0x4be9ca[_0x3bad2b-0x1],_0x1ba0d6=_0x4be9ca[_0x3bad2b],_0x11e22c=_0x3bad2b;}const _0x263c82=_0x2202aa['level']==_0x1ba0d6['level'],_0xad4142=Math['abs'](_0x2202aa['level'])<Math['abs'](_0x1ba0d6['level'])&&0x0==_0x1ba0d6['distance'];(_0x263c82||_0xad4142)&&(_0x1c57da['set'](_0x1ba0d6['id'],_0x2202aa['id']),_0x4be9ca['splice'](_0x11e22c,0x1),_0x3bad2b--,_0x2202aa['isAdded']=!0x1);}for(let _0x5731b2=0x0;_0x5731b2<_0x4be9ca['length'];_0x5731b2++)_0x1c57da['has'](_0x4be9ca[_0x5731b2]['pairId'])&&(_0x4be9ca[_0x5731b2]['pairId']=_0x1c57da['get'](_0x4be9ca[_0x5731b2]['pairId']));}['_removeMissingPairs'](_0x4813fa){const _0x3a545d=new Set(_0x4813fa['map'](_0x2fd4cd=>_0x2fd4cd['id']));for(let _0x5cc56a=0x0;_0x5cc56a<_0x4813fa['length'];_0x5cc56a++)_0x3a545d['has'](_0x4813fa[_0x5cc56a]['pairId'])||0x0==_0x4813fa[_0x5cc56a]['distance']||(_0x4813fa[_0x5cc56a]['isIncorrect']=!0x0);return _0x4813fa['filter'](_0x5d2a2a=>!_0x5d2a2a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x23134f){const _0x394ae8=new Set();for(let _0x7fb241=0x0;_0x7fb241<_0x23134f['length'];_0x7fb241++){if(_0x394ae8['has'](_0x23134f[_0x7fb241]['id'])&&_0x23134f[_0x7fb241]['isRemoved']&&(_0x23134f[_0x7fb241]['isIncorrect']=!0x0),_0x23134f[_0x7fb241]['isIncorrect'])continue;if(0x0==_0x23134f[_0x7fb241]['distance'])continue;if('elementStart'!=_0x23134f[_0x7fb241]['type'])continue;if(null==_0x23134f[_0x7fb241]['pairId'])continue;let _0x87440f=_0x7fb241+0x1,_0x4426a3=0x0;for(;_0x23134f[_0x87440f]['id']!=_0x23134f[_0x7fb241]['pairId'];)'elementStart'==_0x23134f[_0x87440f]['type']?_0x4426a3++:'elementEnd'==_0x23134f[_0x87440f]['type']&&_0x4426a3--,_0x87440f++;if(0x0!=_0x4426a3){if(_0x23134f[_0x7fb241]['isRemoved'])_0x23134f[_0x7fb241]['isIncorrect']=!0x0;else{for(;_0x87440f!=_0x7fb241;)_0x23134f[_0x87440f]['isRemoved']&&0x0!=_0x23134f[_0x87440f]['distance']&&(_0x23134f[_0x87440f]['isIncorrect']=!0x0,_0x394ae8['add'](_0x23134f[_0x87440f]['pairId'])),_0x87440f--;}}}return _0x23134f['filter'](_0x2a3471=>!_0x2a3471['isIncorrect']);}['_removeUnsupportedChanges'](_0x14a467){const _0x1089d7=this['editor']['model']['schema'];for(let _0x2850d4=0x0;_0x2850d4<_0x14a467['length'];_0x2850d4++){if(!(_0x14a467[_0x2850d4]['isAdded']||_0x14a467[_0x2850d4]['isAddSuggestion']||_0x14a467[_0x2850d4]['isRemoved']||_0x14a467[_0x2850d4]['isRemoveSuggestion']))continue;if(0x0==_0x14a467[_0x2850d4]['distance'])continue;const _0x4a30b9=_0x14a467[_0x2850d4]['item'];_0x1089d7['isBlock'](_0x4a30b9)||_0x1089d7['isLimit'](_0x4a30b9)||(_0x14a467[_0x2850d4]['isAdded']&&delete _0x14a467[_0x2850d4]['isAdded'],_0x14a467[_0x2850d4]['isAddSuggestion']&&delete _0x14a467[_0x2850d4]['isAddSuggestion'],_0x14a467[_0x2850d4]['isRemoveSuggestion']&&delete _0x14a467[_0x2850d4]['isRemoveSuggestion'],_0x14a467[_0x2850d4]['isRemoved']&&(_0x14a467[_0x2850d4]['isIncorrect']=!0x0));}return _0x14a467['filter'](_0x44e1a1=>!_0x44e1a1['isIncorrect']);}['_makeModelFromTape'](_0x2db77d,_0x2d083d,_0x59ca9d){const _0x41af87=new gt(),_0x5ea960=[],_0x4d8685=new Map(),_0x56fa44=this['editor']['model'],_0x47266a=_0x56fa44['schema'],_0x1d0054=[_0x41af87],_0xf3722f={},_0x5ab81a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3a4a06=null;const _0x56147c=[0x0];for(let _0x1ff51b=0x0;_0x1ff51b<_0x2db77d['length'];_0x1ff51b++)if('elementStart'===_0x2db77d[_0x1ff51b]['type']){_0x2db77d[_0x1ff51b]['previousPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c);const _0xa54c1a=new ut(_0x2db77d[_0x1ff51b]['item']['name'],_0x2db77d[_0x1ff51b]['item']['getAttributes']());_0x1d0054[0x0]['_appendChild'](_0xa54c1a),_0x56147c['push'](0x0),_0x1d0054['unshift'](_0xa54c1a),_0x2db77d[_0x1ff51b]['nextPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c);}else'elementEnd'===_0x2db77d[_0x1ff51b]['type']?(_0x1d0054['shift'](),_0x2db77d[_0x1ff51b]['previousPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c),_0x56147c['pop'](),_0x56147c[_0x56147c['length']-0x1]++,_0x2db77d[_0x1ff51b]['nextPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c)):(_0x2db77d[_0x1ff51b]['previousPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c),_0x3a4a06?_0x3a4a06['_data']+=_0x2db77d[_0x1ff51b]['item']['data']:_0x3a4a06=new mt(_0x2db77d[_0x1ff51b]['item']['data'],_0x2db77d[_0x1ff51b]['item']['getAttributes']()),_0x2db77d[_0x1ff51b+0x1]&&'text'===_0x2db77d[_0x1ff51b+0x1]['type']&&_0x690d53(_0x3a4a06,_0x2db77d[_0x1ff51b+0x1]['item'])||(_0x1d0054[0x0]['_appendChild'](_0x3a4a06),_0x3a4a06=null),_0x56147c[_0x56147c['length']-0x1]+=_0x2db77d[_0x1ff51b]['item']['offsetSize'],_0x2db77d[_0x1ff51b]['nextPosition']=_0x56fa44['createPositionFromPath'](_0x41af87,_0x56147c));for(let _0x4bc5d2=0x0;_0x4bc5d2<_0x2db77d['length'];_0x4bc5d2++){const _0x25afb5=_0x2db77d[_0x4bc5d2]['previousPosition'],_0x491ebc=_0x2db77d[_0x4bc5d2]['nextPosition'];for(const _0x325022 of _0x2db77d[_0x4bc5d2]['markersStart'])_0x4d8685['set'](_0x325022,{'start':_0x25afb5,'end':null});_0x4c207b('isRemoveSuggestion',_0x4bc5d2,_0x25afb5,_0x491ebc),_0x4c207b('isAddSuggestion',_0x4bc5d2,_0x25afb5,_0x491ebc),_0x4c207b('isRemoved',_0x4bc5d2,_0x25afb5,_0x491ebc),_0x4c207b('isAdded',_0x4bc5d2,_0x25afb5,_0x491ebc);for(const _0x30ea6e of _0x2db77d[_0x4bc5d2]['markersEnd']){_0x4d8685['get'](_0x30ea6e)['end']=_0x491ebc;}}for(const [_0x25d10f,_0x4d8f4c]of _0x4d8685){const _0x484d30=this['editor']['model']['createRange'](_0x4d8f4c['start'],_0x4d8f4c['end']);_0x41af87['markers']['set'](_0x25d10f,_0x484d30);}return _0x5ea960['sort']((_0x5abfaf,_0xdf5fce)=>{const _0x23026b=_0x41af87['markers']['get']('revision:'+_0x5abfaf['id']),_0x50c5d4=_0x41af87['markers']['get']('revision:'+_0xdf5fce['id']);return _0x23026b['start']['isBefore'](_0x50c5d4['start'])?-0x1:_0x23026b['start']['isAfter'](_0x50c5d4['start'])?0x1:_0x23026b['end']['isBefore'](_0x50c5d4['end'])?-0x1:_0x23026b['end']['isAfter'](_0x50c5d4['end'])?0x1:'add'===_0x5abfaf['type']?-0x1:0x1;}),{'root':_0x41af87,'changes':_0x5ea960};function _0x4c207b(_0x68ba0,_0x456988,_0x2bf92a,_0x65b265){const _0x3045fe=!!_0x2db77d[_0x456988][_0x68ba0],_0x8aa62c=_0x3045fe?_0x2db77d[_0x456988][_0x68ba0]['userId']:null,_0x3a6e85=_0x456988===_0x2db77d['length']-0x1,_0x52fedd=_0x5ab81a[_0x68ba0][0x0],_0x406b88=_0x47266a['isObject'](_0x2db77d[_0x456988]['item']);!_0xf3722f[_0x68ba0]&&_0x3045fe?_0xf3722f[_0x68ba0]={'start':_0x2bf92a,'tapeItem':_0x2db77d[_0x456988],'userId':_0x8aa62c,'type':_0x68ba0}:_0xf3722f[_0x68ba0]&&!_0x3045fe?(_0xf3722f[_0x68ba0]['end']=_0x2bf92a,_0x2f6335(_0xf3722f[_0x68ba0]),_0xf3722f[_0x68ba0]=null):_0xf3722f[_0x68ba0]&&_0x3045fe&&_0xf3722f[_0x68ba0]['userId']!==_0x8aa62c&&(_0xf3722f[_0x68ba0]['end']=_0x2bf92a,_0x52fedd&&_0x52fedd['userId']===_0xf3722f[_0x68ba0]['userId']||_0x2f6335(_0xf3722f[_0x68ba0]),_0xf3722f[_0x68ba0]={'start':_0x2bf92a,'tapeItem':_0x2db77d[_0x456988],'userId':_0x8aa62c,'type':_0x68ba0}),_0xf3722f[_0x68ba0]&&_0x406b88&&('elementStart'!==_0x2db77d[_0x456988]['type']||_0x52fedd&&_0x52fedd['userId']===_0x8aa62c||_0x5ab81a[_0x68ba0]['unshift']({'userId':_0x8aa62c,'object':_0x2db77d[_0x456988]['item'],'change':_0xf3722f[_0x68ba0]}),'elementEnd'===_0x2db77d[_0x456988]['type']&&_0x52fedd&&_0x52fedd['object']===_0x2db77d[_0x456988]['item']&&(_0x5ab81a[_0x68ba0]['shift'](),_0xf3722f[_0x68ba0]=_0x52fedd['change'])),_0xf3722f[_0x68ba0]&&_0x3a6e85&&(_0xf3722f[_0x68ba0]['end']=_0x65b265,_0x2f6335(_0xf3722f[_0x68ba0]),_0xf3722f[_0x68ba0]=null);}function _0x2f6335({start:_0x1986ca,end:_0x30830a,tapeItem:_0x2ca5f4,userId:_0x287456,type:_0x14f34a}){const _0x27a115=_0x2ca5f4['item'],_0x2d307b=_0x56fa44['schema']['isBlock'](_0x27a115)&&!_0x56fa44['schema']['isLimit'](_0x27a115),_0x2324eb=_0x1986ca['nodeAfter']==_0x30830a['parent']&&_0x30830a['isAtStart'];if(_0x2d307b&&_0x2324eb)return;const _0x19dc46=_0x56fa44['createRange'](_0x1986ca,_0x30830a),_0x1f70f1=_0x2d083d['get'](_0x287456),_0x57f0da=new r({'author':_0x1f70f1,'type':'isAdded'==_0x14f34a||'isAddSuggestion'==_0x14f34a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x14f34a||'isRemoveSuggestion'==_0x14f34a},'createdAt':new Date(),'rootName':_0x59ca9d});_0x5ea960['push'](_0x57f0da),_0x41af87['markers']['set']('revision:'+_0x57f0da['id'],_0x19dc46);}function _0x690d53(_0x42078b,_0x462b64){const _0x4806be=_0x42078b['getAttributes'](),_0x3ccf1d=_0x462b64['getAttributes']();for(const _0x224dd3 of _0x4806be){if(_0x224dd3[0x1]!==_0x462b64['getAttribute'](_0x224dd3[0x0]))return!0x1;_0x3ccf1d['next']();}return _0x3ccf1d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5c4a46=>{const _0x15724e=_0x5c4a46['markerName']['split'](':')[0x1],_0x1414e0=this['_getChangeFromId'](_0x15724e);if(!_0x1414e0)return null;const _0x3f785b='add'==_0x1414e0['type']?'insertion':'deletion',_0x5bea66=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3f785b];return _0x1414e0['data']['isSuggestion']&&_0x5bea66['push']('ck-suggestion-marker-'+_0x3f785b+'-new'),this['activeChange']==_0x1414e0&&_0x5bea66['push']('ck-suggestion-marker--active'),{'classes':_0x5bea66,'attributes':{'data-change-id':_0x15724e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e3da8=>{_0x5e3da8['on']('element:pre',(_0x4f20e3,_0x2b2ef7,_0x929ebc)=>{const _0x5ac293=_0x2b2ef7['viewItem']['getChild'](0x0);if(!_0x5ac293||!_0x5ac293['is']('element','code'))return;if(!_0x929ebc['consumable']['consume'](_0x5ac293,{'attributes':['vid_start','vid_end']}))return;const _0x3243d0=_0x2b2ef7['modelRange']['start']['nodeAfter'];_0x929ebc['writer']['setAttribute']('vid_start',_0x5ac293['getAttribute']('vid_start'),_0x3243d0),_0x929ebc['writer']['setAttribute']('vid_end',_0x5ac293['getAttribute']('vid_end'),_0x3243d0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x95fa95=>{_0x95fa95['on']('element',(_0x3a1945,_0x3ad58b,_0x1047b7)=>{if(!_0x1047b7['consumable']['consume'](_0x3ad58b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ad58b['modelRange']['isCollapsed'])return;const _0x4e8270=_0x3ad58b['modelRange']['start']['nodeAfter'];_0x4e8270['hasAttribute']('vid_start')||_0x4e8270['hasAttribute']('vid')||(_0x1047b7['writer']['setAttribute']('vid_start',_0x3ad58b['viewItem']['getAttribute']('vid_start'),_0x4e8270),_0x1047b7['writer']['setAttribute']('vid_end',_0x3ad58b['viewItem']['getAttribute']('vid_end'),_0x4e8270));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x11659d=>_0x11659d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3fb7eb,[,_0x5656e3])=>{['vid_start','vid_end','vid']['includes'](_0x5656e3)&&(_0x3fb7eb['return']=!0x0,_0x3fb7eb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1a083c=>{_0x1a083c['on']('attribute:vid',(_0x59cf76,_0x298bf5,_0x571bf2)=>{if('\x20'!=_0x298bf5['item']['data']||_0x298bf5['item']['parent']['maxOffset']>0x1)return;if(!_0x571bf2['consumable']['consume'](_0x298bf5['item'],_0x59cf76['name']))return;const _0x5ea26f=_0x571bf2['writer'],_0x4ee99e=_0x571bf2['mapper']['toViewRange'](_0x298bf5['range']);_0x5ea26f['wrap'](_0x4ee99e,_0x5ea26f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x101105){const _0x5133a5=_0x101105['plugins']['get']('RevisionViewer');return(_0x480532,_0x161f2e,_0x7ed922)=>{const _0x25bbaa=_0x161f2e['markerName']['split'](':')[0x1],_0xe83398=_0x5133a5['_getChangeFromId'](_0x25bbaa);if(!_0xe83398)return null;const _0x4db226='add'==_0xe83398['type']?'split':'merge';if(!_0x7ed922['consumable']['test'](_0x161f2e['markerRange'],_0x480532['name']))return;const _0x203ab1=_0x161f2e['markerRange']['getWalker'](),_0x238694=_0x161f2e['markerRange']['start'],_0x5ec547=_0x101105['model']['schema'];let _0x5f1fd3=null,_0x591109=null,_0x60bf41=!0x1,_0x3f94cf=!0x1;for(const _0xbabf60 of _0x203ab1){const _0x3c7230=_0xbabf60['item'];_0x60bf41=_0x60bf41||_0x5ec547['isContent'](_0x3c7230);const _0x165565=_0x7ed922['mapper']['toViewElement'](_0x3c7230);if(_0x165565&&_0x165565['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbabf60['type']&&(_0x5ec547['isBlock'](_0x3c7230)&&!_0x5ec547['isLimit'](_0x3c7230)&&(_0x3c7230['nextSibling']||_0x238694['isAtEnd']?_0x5f1fd3&&_0x5f1fd3['parent']==_0x3c7230||(_0x5f1fd3=_0x3c7230,_0x4b8e62(_0xbabf60['previousPosition']),_0x3f94cf=!0x0):_0x591109=_0x591109||_0xbabf60['previousPosition']));}function _0x4b8e62(_0xb0ce39){const _0x4aedc0=_0x7ed922['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4db226}),_0x5b28dd=_0x7ed922['mapper']['toViewPosition'](_0xb0ce39);_0xe83398['data']['isSuggestion']&&_0x7ed922['writer']['addClass']('ck-suggestion-marker-'+_0x4db226+'-new',_0x4aedc0),_0x5133a5['activeChange']==_0xe83398&&_0x7ed922['writer']['addClass']('ck-suggestion-marker--active',_0x4aedc0),_0x7ed922['writer']['insert'](_0x5b28dd,_0x4aedc0),_0x7ed922['mapper']['bindElementToMarker'](_0x4aedc0,_0x161f2e['markerName']);}_0x60bf41||_0x3f94cf||!_0x591109||_0x4b8e62(_0x591109);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x30078e,_0x159090,_0x42924d)=>{const _0x1f0725=_0x42924d['mapper']['markerNameToElements'](_0x159090['markerName']);if(_0x1f0725){for(const _0x4a0174 of _0x1f0725)(_0x4a0174['hasClass']('ck-suggestion-marker-split')||_0x4a0174['hasClass']('ck-suggestion-marker-merge'))&&(_0x42924d['mapper']['unbindElementFromMarkerName'](_0x4a0174,_0x159090['markerName']),_0x42924d['writer']['remove'](_0x4a0174));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x211c98,_0x3b8214,_0x3c317f)=>{const _0x1b2943=_0x3b8214['markerName']['split'](':')[0x1],_0x1fbb4d=this['_getChangeFromId'](_0x1b2943);if(!_0x1fbb4d)return null;const _0x4b1bc7='add'==_0x1fbb4d['type']?'split':'merge';if(_0x3c317f['consumable']['test'](_0x3b8214['markerRange'],_0x211c98['name']))for(const _0x2f7c2d of _0x3b8214['markerRange']['getItems']()){if(!_0x2f7c2d['is']('element','softBreak'))continue;const _0x5f2b0d=_0x3c317f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b1bc7}),_0x49eb3e=_0x3c317f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2f7c2d));_0x1fbb4d['data']['isSuggestion']&&_0x3c317f['writer']['addClass']('ck-suggestion-marker-'+_0x4b1bc7+'-new',_0x5f2b0d),this['activeChange']==_0x1fbb4d&&_0x3c317f['writer']['addClass']('ck-suggestion-marker--active',_0x5f2b0d),_0x3c317f['writer']['insert'](_0x49eb3e,_0x5f2b0d),_0x3c317f['mapper']['bindElementToMarker'](_0x5f2b0d,_0x3b8214['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1f13ea=>{for(const _0x3e821c of this['editor']['model']['document']['getRootNames']()){const _0xd9e242=this['editor']['model']['document']['getRoot'](_0x3e821c),_0x5e507c=this['editor']['editing']['view']['document']['getRoot'](_0x3e821c);if(_0x5e507c){const _0x666792=_0xd9e242['getAttribute']('revisionHistoryAttachChange');if(_0x1f13ea['removeAttribute']('data-change-id',_0x5e507c),_0x1f13ea['removeClass']('ck-revision-history-root-add',_0x5e507c),_0x1f13ea['removeClass']('ck-revision-history-root-remove',_0x5e507c),_0x1f13ea['removeClass']('ck-revision-history-root--active',_0x5e507c),_0x666792){const _0xf8bc2b=this['_getChangeFromId'](_0x666792);if(!_0xf8bc2b)return null;_0x1f13ea['setAttribute']('data-change-id',_0x666792,_0x5e507c),_0x1f13ea['addClass']('ck-revision-history-root-'+_0xf8bc2b['type'],_0x5e507c),this['activeChange']==_0xf8bc2b&&_0x1f13ea['addClass']('ck-revision-history-root--active',_0x5e507c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x31e3aa=>'revision-comment:'+_0x31e3aa,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5235fa=>'revision-suggestion:'+_0x5235fa,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x840779=>({'name':'suggestion:'+_0x840779,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x403a5e=>{const _0x5e3670=_0x403a5e['markerName']['split'](':')[0x1];return'insertion'!=_0x5e3670&&'deletion'!=_0x5e3670?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5e3670]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x164edb,_0x1ada71,_0x163fa7)=>{const _0xa6780e=_0x163fa7['mapper']['markerNameToElements'](_0x1ada71['markerName']);if(_0xa6780e){for(const _0x2c46df of _0xa6780e)_0x2c46df['is']('uiElement')&&(_0x163fa7['mapper']['unbindElementFromMarkerName'](_0x2c46df,_0x1ada71['markerName']),_0x163fa7['writer']['remove'](_0x2c46df));}},{'priority':'high'});}['_getChangeFromId'](_0x39b031){return this['_changeIdToChange']['get'](_0x39b031);}['_getViewForChange'](_0x572003){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x572003),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x18ab7e,_0x520f49,_0x5e1d17,_0xbb5406)=>{_0xbb5406&&this['_balloon']['remove'](_0xbb5406),_0x5e1d17&&(this['_balloon']['add']({'view':_0x5e1d17,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x49b891=this['editor']['editing'],_0x35d144=this['_getChangeFromId'](_0x5e1d17['changeId']);let _0x185fc0;if(_0x35d144['data']['isOnRoot']){const _0x210d8f=_0x49b891['view']['getDomRoot'](_0x35d144['rootName']);_0x185fc0=Array['from'](_0x210d8f['getClientRects']());}else{const _0x4ac919=this['editor']['model']['markers']['get']('revision:'+_0x5e1d17['changeId']);_0x185fc0=Array['from'](_0x49b891['mapper']['markerNameToElements'](_0x4ac919['name']))['map'](_0x3b2463=>_0x49b891['view']['domConverter']['mapViewToDom'](_0x3b2463))['map'](_0x6020ed=>Array['from'](_0x6020ed['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x185fc0[0x0];return _0x185fc0['find'](_0x192210=>_0x192210['top']-0x3<=this['_activeViewTarget']['y']&&_0x192210['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x192210['left']-0x3<=this['_activeViewTarget']['x']&&_0x192210['right']+0x3>=this['_activeViewTarget']['x'])||_0x185fc0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x366b30,_0x1f58ca,_0xfd0500,_0x2fbb08)=>{this['activeView']=_0xfd0500?this['_getViewForChange'](_0xfd0500):null,this['editor']['model']['change'](()=>{const _0x4cf1dd=this['editor']['editing'];_0x2fbb08&&(_0x2fbb08['data']['isOnRoot']?_0x4cf1dd['view']['change'](_0x5937e1=>{_0x5937e1['removeClass']('ck-revision-history-root--active',_0x4cf1dd['view']['document']['getRoot'](_0x2fbb08['rootName']));}):_0x4cf1dd['reconvertMarker']('revision:'+_0x2fbb08['id'])),_0xfd0500&&(_0xfd0500['data']['isOnRoot']?_0x4cf1dd['view']['change'](_0x16b579=>{_0x16b579['addClass']('ck-revision-history-root--active',_0x4cf1dd['view']['document']['getRoot'](_0xfd0500['rootName']));}):_0x4cf1dd['reconvertMarker']('revision:'+_0xfd0500['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1cb482,_0x413dc0)=>{if(this['activeChange'])return;const _0x36a068=this['_findChangeIdFromDomTarget'](_0x413dc0['target']),_0xbfd41c=this['_changeIdToChange']['get'](_0x36a068);_0xbfd41c?(this['_activeViewTarget']={'x':_0x413dc0['domEvent']['x'],'y':_0x413dc0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xbfd41c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1dfdd4,_0x49691d)=>{const _0x543fed=this['_findChangeIdFromDomTarget'](_0x49691d['target']),_0x27fcb4=this['_changeIdToChange']['get'](_0x543fed);_0x27fcb4?(this['_activeViewTarget']={'x':_0x49691d['domEvent']['x'],'y':_0x49691d['domEvent']['y']},_0x27fcb4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x27fcb4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x360e4f){do{const _0x4c98ce=_0x360e4f['getAttribute']('data-change-id');if(_0x4c98ce)return _0x4c98ce;_0x360e4f=_0x360e4f['parent'];}while(_0x360e4f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1c5ca3=>{for(const _0x1a14e0 of this['editor']['model']['markers'])_0x1c5ca3['removeMarker'](_0x1a14e0);});}}function Z(_0x433b78,_0x1b335b){return(_0x4e5cab,_0x3e97dd,_0x5e5c00)=>{if(!_0x5e5c00['consumable']['test'](_0x3e97dd['markerRange'],_0x4e5cab['name']))return;const _0x54bf46=_0x3e97dd['markerRange']['getWalker'](),_0x221cac=_0x3e97dd['markerRange']['start'],_0x45fa0a=_0x433b78['model']['schema'];let _0x3eeca7=null,_0x3c12ae=null,_0x275772=!0x1,_0x31c065=!0x1;for(const _0x2eb3b5 of _0x54bf46){const _0x162865=_0x2eb3b5['item'];_0x275772=_0x275772||_0x45fa0a['isContent'](_0x162865);const _0x46a2fa=_0x5e5c00['mapper']['toViewElement'](_0x162865);if(_0x46a2fa&&_0x46a2fa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2eb3b5['type']&&(_0x45fa0a['isBlock'](_0x162865)&&!_0x45fa0a['isLimit'](_0x162865)&&(_0x162865['nextSibling']||_0x221cac['isAtEnd']?_0x3eeca7&&_0x3eeca7['parent']==_0x162865||(_0x3eeca7=_0x162865,_0x3613d2(_0x2eb3b5['previousPosition']),_0x31c065=!0x0):_0x3c12ae=_0x3c12ae||_0x2eb3b5['previousPosition']));}function _0x3613d2(_0x2511c7){const _0x4434b9=_0x5e5c00['mapper']['toViewPosition'](_0x2511c7),_0x2841c9=_0x5e5c00['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1b335b});_0x5e5c00['writer']['insert'](_0x4434b9,_0x2841c9),_0x5e5c00['mapper']['bindElementToMarker'](_0x2841c9,_0x3e97dd['markerName']);}_0x275772||_0x31c065||!_0x3c12ae||_0x3613d2(_0x3c12ae);};}class wt extends _0xb699a1{constructor(_0x5d94d5){super(_0x5d94d5);const _0x10df61=_0x5d94d5['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x10df61,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10df61,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2ef014=this['editor'],_0xde929c=_0x2ef014['plugins']['get'](d),_0x572f6e=_0xde929c['isReady']?_0xde929c['diff']['newRevisionId']:null;_0x2ef014['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x572f6e);}['refresh'](){const {isReady:_0x281119,isEnabled:_0x4f232f,repository:_0x510e04,diff:_0x2bd317}=this['editor']['plugins']['get'](d),_0x39edb5=_0x2bd317&&_0x510e04['getLaterVisibleRevision'](_0x2bd317['newRevisionId']);this['isEnabled']=_0x281119&&_0x4f232f&&Boolean(_0x39edb5);}}class _t extends _0xb699a1{['_step'];constructor(_0x3de1a9,{direction:_0x424362}){super(_0x3de1a9);const _0x296e90=_0x3de1a9['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x424362?0x1:-0x1,this['listenTo'](_0x296e90,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x296e90,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x296e90,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x31e8e7=this['editor'],_0x562a4e=_0x31e8e7['plugins']['get'](d),{isNavigationMode:_0x935e9c,currentChangeNumber:_0x577d4f}=_0x562a4e;let _0x53ec07;if(_0x562a4e['activeChange']=_0x935e9c?_0x562a4e['diff']['changes']['get'](_0x577d4f+this['_step']):_0x562a4e['diff']['changes']['first'],_0x562a4e['activeChange']['data']['isOnRoot'])_0x53ec07=_0x31e8e7['editing']['view']['getDomRoot'](_0x562a4e['activeChange']['rootName']);else{const _0x5d5259=_0x31e8e7['model']['markers']['get']('revision:'+_0x562a4e['activeChange']['id']);_0x53ec07=_0x54c68b(_0x31e8e7['editing'],_0x5d5259);}_0x437d98({'target':_0x53ec07,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x15bb8e,currentChangeNumber:_0x155259,numberOfChanges:_0x52a596,isReady:_0x3f9a43,isEnabled:_0x1a0a33}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1a0a33&&_0x3f9a43&&_0x52a596)&&(!_0x15bb8e||(0x1===this['_step']?_0x155259<_0x52a596-0x1:_0x155259>0x0));}}class di extends ts{constructor(_0x94356d){super(_0x94356d);const _0x19609b=this['bindTemplate'],_0x12546f=new te(_0x94356d),_0x229b8b=new te(_0x94356d);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',(_0x51225b,_0x2db920)=>_0x51225b&&_0x2db920>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x189484,_0x473e2d,_0x37f523,_0x44cf90)=>{if(!_0x189484)return m(_0x94356d,'Loading...');if(!_0x37f523)return m(_0x94356d,'No\x20changes');const _0x55b355=m(_0x94356d,'NUMBER_OF_CHANGES',_0x37f523);return _0x44cf90?m(_0x94356d,'X_OF_Y_CHANGES',[_0x473e2d+0x1,_0x37f523]):_0x55b355;}),_0x12546f['set']({'label':m(_0x94356d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xf1e0bd}),_0x229b8b['set']({'label':m(_0x94356d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x533264}),_0x12546f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x229b8b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x12546f['on']('execute',()=>this['fire']('execute','backward')),_0x229b8b['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',_0x19609b['if']('_isStatusLabelVisible','ck-hidden',_0x48f79e=>!_0x48f79e)]},'children':[{'text':_0x19609b['to']('isNavigationMode',_0x503fbb=>_0x503fbb?m(_0x94356d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x94356d,'Total')+':\x20')}]},{'text':_0x19609b['to']('_statusText')}]},new _0x4fe4cd(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x12546f,_0x229b8b]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x657f6f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x500616=this['editor']['editing']['view'];_0x500616['change'](_0x4518b4=>{for(const _0x10fded of _0x500616['document']['roots'])_0x4518b4['addClass'](le,_0x10fded);});}['hide'](){const _0x283aaf=this['editor']['editing']['view'];_0x283aaf['change'](_0x4d0474=>{for(const _0x38911d of _0x283aaf['document']['roots'])_0x4d0474['removeClass'](le,_0x38911d);});}}class w extends _0x657f6f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x301276=this['editor'],_0x4ea0c2=_0x301276['plugins']['get'](d),_0x7a393=_0x301276['plugins']['get'](de);_0x301276['ui']['componentFactory']['add']('exitToEditing',_0x2813ed=>{const _0x2eaecc=new te(_0x2813ed);return _0x2eaecc['set']({'label':m(_0x2813ed,'Back\x20to\x20editing'),'icon':_0x28f7d6,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2eaecc,'execute',()=>{_0x301276['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2eaecc;}),_0x301276['ui']['componentFactory']['add']('restoreRevision',_0x56e355=>{const _0x2378bc=new te(_0x56e355);return _0x2378bc['set']({'label':m(_0x56e355,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2378bc['bind']('isEnabled')['to'](_0x301276['commands']['get']('restoreRevision')),this['listenTo'](_0x2378bc,'execute',()=>_0x301276['execute']('restoreRevision')),_0x2378bc;}),_0x301276['ui']['componentFactory']['add']('changesNavigation',_0x3395d0=>{const _0x54c7ec=new di(_0x3395d0),_0x40ac89=_0x301276['commands']['get']('showPreviousChange'),_0x3c6e5e=_0x301276['commands']['get']('showNextChange');return _0x54c7ec['bind']('isBackwardNavigationEnabled')['to'](_0x40ac89,'isEnabled'),_0x54c7ec['bind']('isForwardNavigationEnabled')['to'](_0x3c6e5e,'isEnabled'),_0x54c7ec['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4ea0c2),this['listenTo'](_0x54c7ec,'execute',(_0xb56233,_0x515812)=>{_0x301276['execute']('forward'===_0x515812?'showNextChange':'showPreviousChange');}),_0x54c7ec;}),_0x7a393['show'](),_0x4ea0c2['on']('change:isReady',(_0x75a648,_0x18524d,_0x4d0c82)=>{_0x4d0c82?_0x7a393['hide']():_0x7a393['show']();});}}class pt extends _0x4f90d2{['_resizeObserver']=null;constructor(_0x509fc7,_0x39bc8e){super(_0x509fc7,_0x39bc8e);const _0x5d9cab=this['bindTemplate'];this['set']({'label':m(_0x509fc7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x509fc7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5d9cab['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3f156a=this['fieldView']['element'];this['_tooltipString']=_0x3f156a['scrollWidth']>_0x3f156a['clientWidth']&&_0x3f156a['value']||'';}}class si extends ts{constructor(_0x4fc03a,_0x5fc88f,_0x12837a){super(_0x4fc03a);const _0x3a2a5e=new _0xc8a0bd();_0x3a2a5e['set']({'content':_0x53afc8,'viewBox':'0\x200\x2011\x2010'});const _0x4ee7e5=['ck','ck-revision-history-sidebar__revision-author'];_0x12837a&&_0x4ee7e5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3c247d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4fc03a,_0x12837a?'Revision\x20creator':'Revision\x20author')},'children':[_0x3a2a5e,_0x5fc88f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4ee7e5},'children':_0x3c247d});}}function oi(_0x4a34c8,_0x499f12){const _0x575d29=_0x4a34c8['bindTemplate'],_0x126f96=_0x4a34c8['locale'],_0x108143=_0xabbbe1(_0x126f96);_0x108143['panelPosition']='sw';const _0x22c31b=function(_0x485083,_0x21f3d8){const _0x495c79=function(_0x126b52,_0x11e122){const _0x26baf3=_0x126b52['locale'],_0xe58ed7={'Compare\x20against\x20selected':m(_0x26baf3,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x26baf3,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x26baf3,'Restore\x20this\x20revision')};return _0x11e122['map'](_0x2430ba=>{const _0x50256d=_0xe58ed7[_0x2430ba['name']];return _0x50256d&&_0x50256d!==_0x2430ba['name']&&(_0x2430ba['name']=_0x50256d),_0x2430ba;});}(_0x485083,_0x21f3d8),_0x207679=new _0x3c6e40();for(const _0x85b1d8 of _0x495c79){const _0x2b2e04={'type':'button','model':new to({'label':_0x85b1d8['name'],'class':_0x85b1d8['class'],'withText':!0x0,'role':'menuitem','_action':_0x85b1d8['action']})};_0x2b2e04['model']['bind']('isEnabled')['to'](_0x485083,'isActionsDropdownOpen',_0x381a46=>'function'!=typeof _0x85b1d8['isEnabled']||(!_0x381a46||_0x85b1d8['isEnabled'](_0x485083))),_0x207679['add'](_0x2b2e04);}return _0x207679;}(_0x4a34c8,_0x499f12);return _0x4a34c8['bind']('isActionsDropdownOpen')['to'](_0x108143,'isOpen'),_0x108143['buttonView']['set']({'label':m(_0x126f96,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x50c83d}),_0x108143['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x575d29['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x575d29['to'](_0x4d8823=>_0x4d8823['stopPropagation']())}}),_0x108143['on']('execute',_0x2d52dc=>{_0x4a34c8['isReady']&&'function'==typeof _0x2d52dc['source']['_action']&&_0x2d52dc['source']['_action'](_0x4a34c8);}),_0x3fbca8(_0x108143,_0x22c31b,{'role':'menu'}),_0x108143['listenTo'](_0x4a34c8,'change:isActionsDropdownOpen',(_0x4573f7,_0x5ea9f7,_0x64a1e3)=>{if(_0x64a1e3)for(const _0x3e399f of _0x108143['listView']['items']){const _0x352a45=_0x3e399f['children']['first'],_0x1fb66a=_0x499f12['find'](_0x4d0f27=>_0x4d0f27['action']===_0x352a45['_action'])['isVisible'];_0x3e399f['isVisible']=void 0x0===_0x1fb66a||_0x1fb66a(_0x4a34c8);}}),_0x108143;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x284627,_0x572e68,_0x189613,_0x29d9d2){super(_0x284627);const _0x3cd554=this['bindTemplate'],_0x391b82=function(_0x1fe6eb,_0x20c386){const _0x2c8f24=Array['from'](_0x20c386['authors'])['filter'](_0x241e41=>_0x241e41!=_0x20c386['creator']);return _0x20c386['creator']&&_0x2c8f24['unshift'](_0x20c386['creator']),_0x2c8f24['map'](_0x55fa4c=>new si(_0x1fe6eb,_0x55fa4c,_0x55fa4c==_0x20c386['creator']));}(_0x284627,_0x572e68);this['id']=_0x572e68['id'],this['_revision']=_0x572e68,this['_requireRevisionName']=_0x29d9d2,this['bind']('name','createdAt')['to'](_0x572e68),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x345974=>{return _0x17fbbc=_0x284627['uiLanguage'],(_0x122c5e=_0x345974)['toLocaleDateString'](_0x17fbbc,{'month':'long','day':'numeric'})+',\x20'+_0x122c5e['toLocaleTimeString'](_0x17fbbc,{'hour':'numeric','minute':'numeric'});var _0x17fbbc,_0x122c5e;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x284627,_0x1a5665),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xc6b511=>_0xc6b511||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x480cd2,_0x5df452)=>_0x480cd2&&_0x5df452),this['revisionActionsView']=_0x189613&&_0x189613['length']?oi(this,_0x189613):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3cd554['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3cd554['if']('isEnabled','ck-disabled',_0x259adf=>!_0x259adf),_0x3cd554['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3cd554['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3cd554['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':_0x3cd554['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':_0x391b82}]},this['revisionActionsView']],'on':{'click':_0x3cd554['to'](_0x18d0be=>{_0x18d0be['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x534146=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x534146,'change',()=>{this['_requireRevisionName']&&!_0x534146['value']||this['fire']('setName',{'id':this['id'],'name':_0x534146['value']}),_0x534146['value']||(_0x534146['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x1f9874,_0x23dded){const _0x58912f=_0x498060['fromJSDate'](_0x1f9874)['setLocale'](_0x23dded),_0x5dc636=_0x498060['local'](),_0x9e71eb=_0x5dc636['minus']({'days':0x1})['startOf']('day');let _0x2aa92a,_0x1d596f;return _0x58912f['hasSame'](_0x5dc636,'day')?(_0x2aa92a=_0x58912f['startOf']('day')['toJSDate'](),_0x1d596f=_0x58912f['toRelativeCalendar']()):_0x58912f['hasSame'](_0x9e71eb,'day')?(_0x2aa92a=_0x9e71eb['toJSDate'](),_0x1d596f=_0x58912f['toRelativeCalendar']()):_0x58912f['hasSame'](_0x5dc636,'week')?(_0x2aa92a=_0x58912f['startOf']('week')['toJSDate'](),_0x1d596f=_0x58912f['weekdayLong']||''):_0x58912f['hasSame'](_0x5dc636,'year')?(_0x2aa92a=_0x58912f['startOf']('month')['toJSDate'](),_0x1d596f=_0x58912f['monthLong']||''):(_0x2aa92a=_0x58912f['startOf']('year')['toJSDate'](),_0x1d596f=String(_0x58912f['year'])),{'startDate':_0x2aa92a,'localizedPeriodName':_0x1d596f};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2c155d,_0x27ee81,_0x20180f,_0x2087a5){super(_0x2c155d);const _0x503c0f=vi(_0x27ee81,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x27ee81,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x20180f,this['_requireRevisionName']=_0x2087a5,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':_0x503c0f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x307fdf){const _0x639729=new hi(this['locale'],_0x307fdf,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x639729);}['removeRevision'](_0x548a4c){const _0x5ecdff=this['revisionViews']['find'](_0xe85698=>_0xe85698['id']===_0x548a4c['id']);this['revisionViews']['remove'](_0x5ecdff);}}class as extends ts{constructor(_0x5e4857){super(_0x5e4857);const _0x4711ac=new _0xc8a0bd();_0x4711ac['content']=_0x3f127c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4711ac,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5e4857,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3e7950,_0x2b7123,_0x5a0206,_0x22d73f){super(_0x3e7950);const _0x2c2d12=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2b7123,this['_revisionActions']=_0x5a0206,this['_requireRevisionName']=_0x22d73f,this['on']('select',(_0x47de07,_0x3fb1f9)=>{this['fire']('revisionSelected',_0x3fb1f9);}),this['on']('setName',(_0x520804,_0x58167a)=>{this['fire']('revisionSetName',_0x58167a);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3e7950),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2c2d12['if']('isEnabled','ck-disabled',_0x960214=>!_0x960214)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x54be41 of this['_revisions'])this['_addRevision'](_0x54be41);this['_revisions']['on']('add',(_0x30dc4e,_0x5b2351)=>{this['_addRevision'](_0x5b2351);}),this['_revisions']['on']('remove',(_0x2577e6,_0x26baf5)=>{this['_removeRevision'](_0x26baf5);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1a1984=>_0x1a1984['revisionViews']['map'](_0xd449ae=>_0xd449ae))['flat']();}['selectRevision'](_0x5bf0ee){for(const _0x4e8e0e of this['revisionViews'])_0x5bf0ee&&_0x5bf0ee['id']===_0x4e8e0e['id']?_0x4e8e0e['select']():_0x4e8e0e['deselect']();}['highlightRevisions'](_0x4a1819){for(const _0x14c694 of this['revisionViews'])_0x4a1819['some'](({id:_0x58f84c})=>_0x58f84c===_0x14c694['id'])?_0x14c694['highlight']():_0x14c694['unhighlight']();}['_addRevision'](_0x574dec){const _0x5ff716=vi(_0x574dec['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4df3c4=this['timePeriodViews']['get'](0x0);_0x4df3c4&&_0x4df3c4['startDate']['getTime']()===_0x5ff716['getTime']()||(_0x4df3c4=new mi(this['locale'],_0x5ff716,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4df3c4)),_0x4df3c4['addRevision'](_0x574dec);}['_removeRevision'](_0x3492ac){const _0xb14171=vi(_0x3492ac['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xb14171)['removeRevision'](_0x3492ac);}['_getTimePeriodViewByStartDate'](_0x29f9a6){return this['timePeriodViews']['find'](_0x52b3a7=>_0x52b3a7['startDate']['getTime']()===_0x29f9a6['getTime']());}}class g extends _0x657f6f{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5d0ca1){super(_0x5d0ca1),this['_revisionViewer']=_0x5d0ca1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x166dad=this['_revisionsRepository']['_revisions'],_0x24338c=this['_createRevisionActions'](),_0x2f9950=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x166dad,_0x24338c,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',(_0x90d86d,_0x553c03)=>{_0x553c03['revisionViews']['on']('add',(_0x19dceb,_0x32274b)=>{_0x32274b['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)),_0x2f9950['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x272ec0=this['_revisionsRepository']['getRevision'](0x0);if(_0x272ec0){const _0x14ebc5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x272ec0['id']);this['_revisionViewer']['compare'](_0x272ec0,_0x14ebc5);}}['_handleRevisionSelected'](_0xaf79a8,_0x4f14d3){const _0x481970=this['_revisionsRepository']['getRevision'](_0x4f14d3['id']),_0xc2b092=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x481970['id']);this['_revisionViewer']['compare'](_0x481970,_0xc2b092);}['_handleRevisionSetName'](_0x34550d,_0x25dd90){this['_revisionsRepository']['getRevision'](_0x25dd90['id'])['setName'](_0x25dd90['name']);}['_handleDiffChange'](_0x4be283,_0x25566b,_0x43b2f9){const _0xfa89cc=this['_revisionsRepository']['getRevisionsInDiff'](_0x43b2f9);_0xfa89cc['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xfa89cc),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xfa89cc[0x0]));}['_createRevisionActions'](){const _0x56fe24=this['editor'],_0x331c54=g['availableRevisionActions'],_0x5199b5=_0x56fe24['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5199b5['length'])return _0x5199b5['map'](_0x373695=>{const _0x1a6237='string'==typeof _0x373695?Object['assign']({},_0x331c54[_0x373695]):_0x373695;return _0x1a6237['action']=_0x1a6237['action']['bind'](this,_0x56fe24),_0x1a6237['isVisible']&&(_0x1a6237['isVisible']=_0x1a6237['isVisible']['bind'](this,_0x56fe24)),_0x1a6237;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1b370d},_0x4d59e2)=>{const _0x300929=_0x1b370d['get'](d),_0x46fb89=_0x300929['repository'];let _0x4b0230=_0x300929['diff']['newRevisionId'],_0x339bf7=_0x4d59e2['id'];_0x46fb89['getIndex'](_0x4b0230)>_0x46fb89['getIndex'](_0x339bf7)&&([_0x4b0230,_0x339bf7]=[_0x339bf7,_0x4b0230]),_0x300929['compare'](_0x4b0230,_0x339bf7);},'isVisible':({plugins:_0x25c8b6},_0x507135)=>{const _0x12392d=_0x25c8b6['get'](d);return!(_0x12392d['repository']['getRevisionsInDiff'](_0x12392d['diff'])['length']>0x2)&&!_0x507135['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xa22d66,{id:_0x2c0f81})=>{_0xa22d66['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c0f81);},'isVisible':({plugins:_0x5060fd},_0x48d9e1)=>!!_0x5060fd['get'](d)['repository']['getLaterVisibleRevision'](_0x48d9e1['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4220eb},{id:_0x3d7bf9,revisionNameView:_0x3a9b97})=>{const _0x346b78=_0x4220eb['get'](d),_0x119e10=_0x346b78['repository']['getEarlierVisibleRevision'](_0x3d7bf9);_0x346b78['compare'](_0x3d7bf9,_0x119e10),_0x3a9b97['focus'](),_0x3a9b97['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x57755e,_0x217c1c){super(_0x57755e),this['_view']=_0x217c1c,this['_toolbarConfig']=ot(_0x57755e['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1777ad){const _0x3127ef=this['editor'],_0x2dc315=this['view'],_0x5bef1d=_0x3127ef['editing']['view'],_0x25d472=_0x2dc315['editable'],_0x5d8e44=_0x5bef1d['document']['getRoot']();_0x25d472['name']=_0x5d8e44['rootName'],_0x2dc315['render']();const _0x458ac4=_0x25d472['element'];this['setEditableElement'](_0x25d472['name'],_0x458ac4),_0x2dc315['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5bef1d['attachDomRoot'](_0x458ac4),this['_elementReplacer']['replace'](_0x1777ad,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x29a1eb=this['view'],_0x4a2c77=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4a2c77['detachDomRoot'](_0x29a1eb['editable']['name']),_0x29a1eb['destroy']();}['_initToolbar'](){const _0x501cb7=this['view'];_0x501cb7['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x501cb7['stickyPanel']['limiterElement']=_0x501cb7['element'],_0x501cb7['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xc28ccb})=>_0xc28ccb),_0x501cb7['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x501cb7['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xbb8189,_0x5e2a1f,_0x56a3a5={}){super(_0xbb8189),this['stickyPanel']=new lt(_0xbb8189),this['toolbar']=new nt(_0xbb8189,{'shouldGroupWhenFull':_0x56a3a5['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0xbb8189,_0x5e2a1f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x40426c,_0x376f49){super(_0x376f49),this['sourceElement']=_0x40426c,this['model']['document']['createRoot']();const _0x2d8ba1=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2d8ba1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x35b660,_0x2d08dc){const _0x3a062b=new this(_0x35b660,_0x2d08dc);return await _0x3a062b['initPlugins'](),await _0x3a062b['ui']['init'](_0x35b660),await _0x3a062b['data']['init'](_0x3a062b['config']['get']('initialData')||''),_0x3a062b['fire']('ready'),_0x3a062b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x550265{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x156d24){function _0x5cf4eb(_0x3ae7d4){return _0x3ae7d4['map'](_0x1e1dad=>String['fromCharCode'](_0x1e1dad))['join']('');}super(_0x156d24),this['result']='end',_0x156d24[_0x5cf4eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cf4eb([0x76,0x69,0x65,0x77])][_0x5cf4eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cf4eb([0x61,0x75,0x74,0x6f]),_0x156d24[_0x5cf4eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5cf4eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cf4eb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5cf4eb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5cf4eb([0x6f,0x6b])});}}class k extends _0x550265{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x5756a8){if(super(_0x5756a8),!this['editor']['config']['get']('revisionHistory'))throw new _0x4ecbde('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x560da8=>this['_showRevisionViewer']({..._0x560da8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x420602=>this['_closeRevisionViewer'](_0x420602)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x42b9c2=>this['_restoreRevision'](_0x42b9c2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xc1b1ae){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xc1b1ae;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x206e93){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x206e93);}['getRevision'](_0x2602d3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2602d3);}['getRevisions'](_0x41243c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x41243c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x423f2b=this['editor'],_0x366be0=_0x5604e2(_0x423f2b,p),_0x14c058=_0x423f2b['plugins']['get']('RevisionTracker'),_0x19f186=_0x423f2b['plugins']['get']('Users')['users'];return _0x366be0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x366be0['lazyRoots'],(_0x366be0['plugins']['push'](Rt,d,w,class extends _0x550265{static get['requires'](){return[d,'Users'];}['init'](){const _0x90ddc2=this['editor']['plugins']['get']('Users');for(const _0x1e2179 of _0x19f186)_0x1e2179['isAnonymous']||_0x90ddc2['getUser'](_0x1e2179['id'])||_0x90ddc2['addUser'](_0x1e2179);const _0x4156e5=_0x14c058['repository']['getRevisions']();let _0x201816=null;const _0x2aa84f=this['editor']['plugins']['get']('RevisionViewer');_0x2aa84f['adapter']=_0x14c058['adapter'],_0x2aa84f['bind']('isEnabled')['to'](_0x14c058),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x423f2b,'isReadOnly',_0xe71361=>!_0xe71361);for(const _0x5514cc of _0x4156e5){const _0x387810=null===_0x5514cc['creator'];if(_0x387810&&_0x5514cc['toVersion']===_0x5514cc['fromVersion'])continue;const _0x25c775=_0x5514cc['toJSON']();_0x2aa84f['addRevisionData'](_0x25c775,(_0x5c1e47,_0x171d95,_0x4ae5fc)=>{if(_0x387810){if(_0x201816)_0x201816['_update'](_0x5c1e47,_0x171d95);else{if(!_0x171d95){const _0x3de58a=_0x4ae5fc['toJSON']();_0x3de58a['id']=_0x3398a(),_0x14c058['saveRevision'](_0x3de58a,_0x4ae5fc['toVersion'])['then'](_0xad8dcc=>{_0x201816=_0xad8dcc;});}}}else _0x5514cc['_update'](_0x5c1e47,_0x171d95);});}}},g),_0x366be0);}['_enhanceShowRevisionViewerCallback'](){const _0x4e07c9=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d8e42=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x377ecc=this['editor']['plugins']['get']('Autosave');await _0x377ecc['save']();}else await _0x5d8e42['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x176032=this['editor']['plugins']['get']('Dialog');_0x176032['isOpen']&&_0x176032['hide']();}const _0x13a232=this['_getRevisionViewerEditorConfig']();return _0x4e07c9(_0x13a232)['then'](_0x4856e1=>{return(this['_viewerEditor']=_0x4856e1,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4856e1;})['catch'](_0x3c80a3=>(console['error'](_0x3c80a3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2509f0=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2509f0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x18d236=this['editor']['plugins']['get']('Annotations');_0x18d236['refreshVisibility'](),_0x18d236['refreshPositioning']();}})));}['_showRevisionViewer'](_0x399abe){const _0x5b2ec2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x55c267=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2bcb72=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2bcb72,_0x399abe)['then'](_0x5d5776=>(_0x55c267['style']['display']='block',_0x5b2ec2['style']['display']='none',_0x5d5776));}['_closeRevisionViewer'](_0x30ccd0){const _0x34d73e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x34d73e['style']['display']='',_0x30ccd0['destroy']();}async['_restoreRevision'](_0x399bb6){const _0x450ea9=this['editor'],_0x1579b9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2db957=_0x450ea9['plugins']['get']('RevisionTracker'),_0x5ed5d3=_0x1579b9['repository']['getRevision'](_0x399bb6);let _0x20499d,_0x4e2f0c,_0x5266ca;try{_0x20499d=await _0x1579b9['getRevisionData'](_0x5ed5d3),_0x4e2f0c=await _0x1579b9['getRevisionRootsAttributes'](_0x5ed5d3);}catch(_0x796720){return void console['error'](_0x796720);}_0x450ea9['model']['change'](_0x5b5fc1=>{for(const _0x3307ef of Array['from'](_0x450ea9['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5b5fc1['removeMarker'](_0x3307ef);}),_0x1579b9['isReady']=!0x1,_0x450ea9['model']['enqueueChange'](_0x535f6f=>{_0x535f6f['setSelection'](null),_0x535f6f['removeSelectionAttribute'](_0x450ea9['model']['document']['selection']['getAttributeKeys']());const _0xb49db6=Object['keys'](_0x20499d);for(const _0xe9ea71 of _0x450ea9['model']['document']['roots'])'$graveyard'!=_0xe9ea71['rootName']&&_0xe9ea71['isAttached']()&&!_0xb49db6['includes'](_0xe9ea71['rootName'])&&_0x535f6f['detachRoot'](_0xe9ea71);for(const _0x3a9c3e of _0xb49db6){let _0x4e9940=_0x450ea9['model']['document']['getRoot'](_0x3a9c3e);_0x4e9940&&_0x4e9940['isAttached']()||(_0x4e9940=_0x535f6f['addRoot'](_0x3a9c3e));const _0x5663a3=_0x4e2f0c[_0x3a9c3e],_0x3de27e=Object['keys'](_0x5663a3),_0x44cbc2=_0x20499d[_0x3a9c3e];for(const _0x241dae of _0x4e9940['getAttributeKeys']())_0x3de27e['includes'](_0x241dae)||_0x535f6f['removeAttribute'](_0x241dae,_0x4e9940);for(const _0x46b14c of _0x3de27e)_0x535f6f['setAttribute'](_0x46b14c,_0x4e2f0c[_0x3a9c3e][_0x46b14c],_0x4e9940);_0x535f6f['remove'](_0x535f6f['createRangeIn'](_0x4e9940)),_0x535f6f['insert'](_0x450ea9['data']['parse'](_0x44cbc2,_0x4e9940),_0x4e9940,0x0);}});const _0x3b9e43=m(_0x450ea9['locale'],'Restored');if(_0x5ed5d3['name'])_0x5266ca=-0x1==_0x5ed5d3['name']['indexOf'](_0x3b9e43)?_0x3b9e43+':\x20'+_0x5ed5d3['name']:_0x5ed5d3['name'];else _0x5266ca=_0x3b9e43+':\x20'+(_0x5ed5d3['createdAt']['toLocaleDateString'](_0x450ea9['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5ed5d3['createdAt']['toLocaleTimeString'](_0x450ea9['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2db957['saveRevision']({'name':_0x5266ca}),_0x1579b9['isReady']=!0x0,_0x450ea9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0xa21753){super(_0xa21753),this['_revisionViewer']=_0xa21753['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x30a5fd=this['_revisionsRepository']['_revisions'],_0x240487=this['_createRevisionActions'](),_0x8ae0be=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x30a5fd,_0x240487,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',(_0x56e6ec,_0x243f11)=>{_0x243f11['revisionViews']['on']('add',(_0x1f5e69,_0x166ec4)=>{_0x166ec4['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)),_0x8ae0be['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x331e19=this['_revisionsRepository']['getRevision'](0x0);if(_0x331e19){const _0x43f46e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x331e19['id']);this['_revisionViewer']['compare'](_0x331e19,_0x43f46e);}}['_handleRevisionSelected'](_0x29289a,_0x1e5f2e){const _0x5b9e88=this['_revisionsRepository']['getRevision'](_0x1e5f2e['id']),_0x34e499=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5b9e88['id']);this['_revisionViewer']['compare'](_0x5b9e88,_0x34e499);}['_handleRevisionSetName'](_0x5487cc,_0x6f1ea9){this['_revisionsRepository']['getRevision'](_0x6f1ea9['id'])['setName'](_0x6f1ea9['name']);}['_handleDiffChange'](_0x99404,_0x21c55d,_0x1e5c45){const _0x4b0457=this['_revisionsRepository']['getRevisionsInDiff'](_0x1e5c45);_0x4b0457['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4b0457),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4b0457[0x0]));}['_createRevisionActions'](){const _0x5c2f83=this['editor'],_0xfcf64b=g['availableRevisionActions'],_0x3049ad=_0x5c2f83['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x3049ad['length'])return _0x3049ad['map'](_0x5503d5=>{const _0x13b33f='string'==typeof _0x5503d5?Object['assign']({},_0xfcf64b[_0x5503d5]):_0x5503d5;return _0x13b33f['action']=_0x13b33f['action']['bind'](this,_0x5c2f83),_0x13b33f['isVisible']&&(_0x13b33f['isVisible']=_0x13b33f['isVisible']['bind'](this,_0x5c2f83)),_0x13b33f;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2c5785},_0x3a48d1)=>{const _0x143e57=_0x2c5785['get'](d),_0xcf6a=_0x143e57['repository'];let _0x57f8b0=_0x143e57['diff']['newRevisionId'],_0x5c6f8f=_0x3a48d1['id'];_0xcf6a['getIndex'](_0x57f8b0)>_0xcf6a['getIndex'](_0x5c6f8f)&&([_0x57f8b0,_0x5c6f8f]=[_0x5c6f8f,_0x57f8b0]),_0x143e57['compare'](_0x57f8b0,_0x5c6f8f);},'isVisible':({plugins:_0x12bbd8},_0x166c02)=>{const _0x1e88f2=_0x12bbd8['get'](d);return!(_0x1e88f2['repository']['getRevisionsInDiff'](_0x1e88f2['diff'])['length']>0x2)&&!_0x166c02['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1a2310,{id:_0x5c69ba})=>{_0x1a2310['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5c69ba);},'isVisible':({plugins:_0x5023dd},_0x282feb)=>!!_0x5023dd['get'](d)['repository']['getLaterVisibleRevision'](_0x282feb['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1df9df},{id:_0x1ab6dc,revisionNameView:_0x4550b4})=>{const _0x4c3bfb=_0x1df9df['get'](d),_0x2d018b=_0x4c3bfb['repository']['getEarlierVisibleRevision'](_0x1ab6dc);_0x4c3bfb['compare'](_0x1ab6dc,_0x2d018b),_0x4550b4['focus'](),_0x4550b4['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x108cfc,_0x5d39da){super(_0x108cfc),this['_view']=_0x5d39da,this['_toolbarConfig']=ot(_0x108cfc['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1a1e4f){const _0x1b7284=this['editor'],_0x410d75=this['view'],_0x359099=_0x1b7284['editing']['view'],_0x2b20db=_0x410d75['editable'],_0x5203d1=_0x359099['document']['getRoot']();_0x2b20db['name']=_0x5203d1['rootName'],_0x410d75['render']();const _0x1493ee=_0x2b20db['element'];this['setEditableElement'](_0x2b20db['name'],_0x1493ee),_0x410d75['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x359099['attachDomRoot'](_0x1493ee),this['_elementReplacer']['replace'](_0x1a1e4f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3a70ee=this['view'],_0x388b8b=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x388b8b['detachDomRoot'](_0x3a70ee['editable']['name']),_0x3a70ee['destroy']();}['_initToolbar'](){const _0x13aa5d=this['view'];_0x13aa5d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x13aa5d['stickyPanel']['limiterElement']=_0x13aa5d['element'],_0x13aa5d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4a8186})=>_0x4a8186),_0x13aa5d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x13aa5d['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2111a5,_0x22b18f,_0x151943={}){super(_0x2111a5),this['stickyPanel']=new lt(_0x2111a5),this['toolbar']=new nt(_0x2111a5,{'shouldGroupWhenFull':_0x151943['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2111a5,_0x22b18f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x495bad,_0x219f1c){super(_0x219f1c),this['sourceElement']=_0x495bad,this['model']['document']['createRoot']();const _0x40ad29=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x40ad29);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4aa87d,_0x4e4446){const _0x2481cd=new this(_0x4aa87d,_0x4e4446);return await _0x2481cd['initPlugins'](),await _0x2481cd['ui']['init'](_0x4aa87d),await _0x2481cd['data']['init'](_0x2481cd['config']['get']('initialData')||''),_0x2481cd['fire']('ready'),_0x2481cd;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x657f6f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a6714){function _0x15f77b(_0x2860fc){return _0x2860fc['map'](_0x64b0d3=>String['fromCharCode'](_0x64b0d3))['join']('');}super(_0x5a6714),this['result']='end',_0x5a6714[_0x15f77b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15f77b([0x76,0x69,0x65,0x77])][_0x15f77b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15f77b([0x61,0x75,0x74,0x6f]),_0x5a6714[_0x15f77b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x15f77b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15f77b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x15f77b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x15f77b([0x6f,0x6b])});}}class k extends _0x657f6f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xb3d427){if(super(_0xb3d427),!this['editor']['config']['get']('revisionHistory'))throw new _0x2159a5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xc349d1=>this['_showRevisionViewer']({..._0xc349d1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x345d79=>this['_closeRevisionViewer'](_0x345d79)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xcc0f78=>this['_restoreRevision'](_0xcc0f78)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x51879b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x51879b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5d095f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5d095f);}['getRevision'](_0x5d9587){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5d9587);}['getRevisions'](_0x402329){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x402329||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x15abc7=this['editor'],_0x4e9707=_0x49f976(_0x15abc7,p),_0x533b04=_0x15abc7['plugins']['get']('RevisionTracker'),_0x4e37c1=_0x15abc7['plugins']['get']('Users')['users'];return _0x4e9707['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4e9707['lazyRoots'],(_0x4e9707['plugins']['push'](bt,d,w,class extends _0x657f6f{static get['requires'](){return[d,'Users'];}['init'](){const _0x21c4a8=this['editor']['plugins']['get']('Users');for(const _0x11cc18 of _0x4e37c1)_0x11cc18['isAnonymous']||_0x21c4a8['getUser'](_0x11cc18['id'])||_0x21c4a8['addUser'](_0x11cc18);const _0x54f5d4=_0x533b04['repository']['getRevisions']();let _0x5d8fc2=null;const _0x41b1f1=this['editor']['plugins']['get']('RevisionViewer');_0x41b1f1['adapter']=_0x533b04['adapter'],_0x41b1f1['bind']('isEnabled')['to'](_0x533b04),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x15abc7,'isReadOnly',_0x24f503=>!_0x24f503);for(const _0x1e33f7 of _0x54f5d4){const _0x45bdad=null===_0x1e33f7['creator'];if(_0x45bdad&&_0x1e33f7['toVersion']===_0x1e33f7['fromVersion'])continue;const _0x3d6ee7=_0x1e33f7['toJSON']();_0x41b1f1['addRevisionData'](_0x3d6ee7,(_0x57c450,_0x5b9efd,_0x5a1181)=>{if(_0x45bdad){if(_0x5d8fc2)_0x5d8fc2['_update'](_0x57c450,_0x5b9efd);else{if(!_0x5b9efd){const _0x2e3e57=_0x5a1181['toJSON']();_0x2e3e57['id']=_0x1916c0(),_0x533b04['saveRevision'](_0x2e3e57,_0x5a1181['toVersion'])['then'](_0x5487a7=>{_0x5d8fc2=_0x5487a7;});}}}else _0x1e33f7['_update'](_0x57c450,_0x5b9efd);});}}},g),_0x4e9707);}['_enhanceShowRevisionViewerCallback'](){const _0x4acd20=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5ca2f1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x67c255=this['editor']['plugins']['get']('Autosave');await _0x67c255['save']();}else await _0x5ca2f1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4589cf=this['editor']['plugins']['get']('Dialog');_0x4589cf['isOpen']&&_0x4589cf['hide']();}const _0x19a588=this['_getRevisionViewerEditorConfig']();return _0x4acd20(_0x19a588)['then'](_0x301596=>{return(this['_viewerEditor']=_0x301596,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x301596;})['catch'](_0x18400d=>(console['error'](_0x18400d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x326f46=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x326f46(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ce2cc=this['editor']['plugins']['get']('Annotations');_0x1ce2cc['refreshVisibility'](),_0x1ce2cc['refreshPositioning']();}})));}['_showRevisionViewer'](_0x52ce99){const _0x224715=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x43dfa6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xac9335=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xac9335,_0x52ce99)['then'](_0x28ede8=>(_0x43dfa6['style']['display']='block',_0x224715['style']['display']='none',_0x28ede8));}['_closeRevisionViewer'](_0x3f4217){const _0x45c649=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x45c649['style']['display']='',_0x3f4217['destroy']();}async['_restoreRevision'](_0x229e39){const _0x4e2559=this['editor'],_0x58206e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3a5029=_0x4e2559['plugins']['get']('RevisionTracker'),_0x3cf4b7=_0x58206e['repository']['getRevision'](_0x229e39);let _0x7aa299,_0x237d1c,_0x3b0073;try{_0x7aa299=await _0x58206e['getRevisionData'](_0x3cf4b7),_0x237d1c=await _0x58206e['getRevisionRootsAttributes'](_0x3cf4b7);}catch(_0x230899){return void console['error'](_0x230899);}_0x4e2559['model']['change'](_0x4e6eb3=>{for(const _0x7ed547 of Array['from'](_0x4e2559['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4e6eb3['removeMarker'](_0x7ed547);}),_0x58206e['isReady']=!0x1,_0x4e2559['model']['enqueueChange'](_0x382a24=>{_0x382a24['setSelection'](null),_0x382a24['removeSelectionAttribute'](_0x4e2559['model']['document']['selection']['getAttributeKeys']());const _0x57811c=Object['keys'](_0x7aa299);for(const _0x42eceb of _0x4e2559['model']['document']['roots'])'$graveyard'!=_0x42eceb['rootName']&&_0x42eceb['isAttached']()&&!_0x57811c['includes'](_0x42eceb['rootName'])&&_0x382a24['detachRoot'](_0x42eceb);for(const _0x54731b of _0x57811c){let _0x55a4b8=_0x4e2559['model']['document']['getRoot'](_0x54731b);_0x55a4b8&&_0x55a4b8['isAttached']()||(_0x55a4b8=_0x382a24['addRoot'](_0x54731b));const _0x980b80=_0x237d1c[_0x54731b],_0x330d52=Object['keys'](_0x980b80),_0x4f4316=_0x7aa299[_0x54731b];for(const _0x6ca00f of _0x55a4b8['getAttributeKeys']())_0x330d52['includes'](_0x6ca00f)||_0x382a24['removeAttribute'](_0x6ca00f,_0x55a4b8);for(const _0x2a9205 of _0x330d52)_0x382a24['setAttribute'](_0x2a9205,_0x237d1c[_0x54731b][_0x2a9205],_0x55a4b8);_0x382a24['remove'](_0x382a24['createRangeIn'](_0x55a4b8)),_0x382a24['insert'](_0x4e2559['data']['parse'](_0x4f4316,_0x55a4b8),_0x55a4b8,0x0);}});const _0x44c17d=m(_0x4e2559['locale'],'Restored');if(_0x3cf4b7['name'])_0x3b0073=-0x1==_0x3cf4b7['name']['indexOf'](_0x44c17d)?_0x44c17d+':\x20'+_0x3cf4b7['name']:_0x3cf4b7['name'];else _0x3b0073=_0x44c17d+':\x20'+(_0x3cf4b7['createdAt']['toLocaleDateString'](_0x4e2559['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3cf4b7['createdAt']['toLocaleTimeString'](_0x4e2559['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3a5029['saveRevision']({'name':_0x3b0073}),_0x58206e['isReady']=!0x0,_0x4e2559['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};