@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250316.0 → 0.0.0-nightly-20250317.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 _0x4b2841,uid as _0x663c6b,Collection as _0x2c3527,logWarning as _0x41b40d,FocusTracker as _0x1fbac0,KeystrokeHandler as _0x4a481f,scrollViewportToShowTarget as _0x53c173,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x11f306}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x24b58c,set as _0x440189,unset as _0x5b0888,isEqual as _0x40af19}from'es-toolkit/compat';import{Plugin as _0x41e048,PendingActions as _0x3062d1,Command as _0x1bc561,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1b8d32,getMarkerDomElement as _0x665250,ConfirmMixin as _0xdffbcd,sanitizeEditorConfig as _0x52e263}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1c7ac7,Element as ut,Range as ft,ViewUIElement as _0x1409e8,ViewRawElement as _0x3274f3,ViewEmptyElement as _0x2b610f,ViewAttributeElement as _0x1a2d2b,ViewContainerElement as _0x11aa29,Position as vt,ViewText as _0x4a50ef,ViewElement as _0x4fb45b,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x24e1d6,IconChevronUp as _0x4e8941,IconChevronDown as _0x243940,IconUndo as _0x51d06c,IconUser as _0x2ab0e8,IconThreeVerticalDots as _0x4c20c0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x423d80,injectCssTransitionDisabler as ts,submitHandler as _0x189d32,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x4b0e6a,ListView as _0x1371fb,ListItemView as te,ButtonView as _0x4f8d34,MenuBarMenuView as _0x1c964b,MenuBarMenuListView as _0x417ef7,MenuBarMenuListItemView as _0x189cf9,MenuBarMenuListItemButtonView as _0x35e62e,ContextualBalloon as _0x1b3f42,ToolbarSeparatorView as _0x1edbaa,IconView as _0x261fed,addListToDropdown as _0x2cf456,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 _0x3a0f57}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x4b2841(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x12c13f){super(),this['id']=_0x12c13f['id']||_0x663c6b(),this['creator']=_0x12c13f['creator']||null,this['authors']=_0x12c13f['authors']||[],this['diffData']=_0x12c13f['diffData']||null,this['toVersion']=_0x12c13f['toVersion']||0x0,this['fromVersion']=_0x12c13f['fromVersion']||0x0,this['set']('name',_0x12c13f['name']||''),this['set']('createdAt',_0x12c13f['createdAt']||new Date()),this['set']('attributes',_0x12c13f['attributes']||{});}['setName'](_0x49db7c){this['_update']({'name':_0x49db7c});}['setAttribute'](_0x8bf4a7,_0x87df08){const _0x2f79b2=_0x24b58c(this['attributes']);_0x440189(_0x2f79b2,_0x8bf4a7,_0x87df08),this['_update']({'attributes':_0x2f79b2});}['removeAttribute'](_0x246e47){const _0xe8cbaf=_0x24b58c(this['attributes']);_0x5b0888(_0xe8cbaf,_0x246e47),this['_update']({'attributes':_0xe8cbaf});}['_update'](_0x5bd72c,_0x125115=!0x1){let _0x44e7cb=!0x1;const _0x3b494c={'id':this['id']},_0x5922bf=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2316d8 of _0x5922bf){const _0x1a3cf2=_0x5bd72c[_0x2316d8];void 0x0!==_0x1a3cf2&&_0x1a3cf2!==this[_0x2316d8]&&(this[_0x2316d8]=_0x1a3cf2,_0x3b494c[_0x2316d8]=_0x1a3cf2,_0x44e7cb=!0x0);}_0x44e7cb&&(_0x3b494c['authors']&&(_0x3b494c['authorsIds']=_0x3b494c['authors']['map'](_0x52588d=>_0x52588d['id']),delete _0x3b494c['authors']),this['fire']('_update',_0x3b494c,_0x125115));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4f6ca6=>_0x4f6ca6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x41e048{['_revisions'];static get['requires'](){return[_0x1b8d32];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x210764){super(_0x210764),this['_revisions']=new _0x2c3527();}['afterInit'](){!async function(_0x2149e4){const _0x427a41=_0x4d40c6([0x6f,0x31,0x4e,0x75,0x41,0x58,0x57,0x6a,0x70,0x33,0x65,0x67,0x76,0x69,0x34,0x35,0x45,0x43,0x44,0x73,0x36,0x5a,0x6b,0x55,0x50,0x39,0x68,0x78,0x32,0x59,0x4d,0x47,0x42,0x63,0x66,0x6c,0x4c,0x49,0x53,0x48,0x64,0x38,0x4a,0x52,0x72,0x37,0x46,0x77,0x6d,0x4f,0x74,0x30,0x79,0x62,0x6e,0x61,0x56,0x4b,0x51,0x54,0x71,0x7a]),_0x54ec88=0xeb829,_0x23126e=0x78a6f959,_0x5ae875=0x78a19b11^_0x23126e,_0x53a5f2=window[_0x4d40c6([0x44,0x61,0x74,0x65])][_0x4d40c6([0x6e,0x6f,0x77])](),_0x49bc23=_0x2149e4[_0x4d40c6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3de308=new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59ccae=>{_0x49bc23[_0x4d40c6([0x6f,0x6e,0x63,0x65])](_0x4d40c6([0x72,0x65,0x61,0x64,0x79]),_0x59ccae);}),_0x2dddaa={[_0x4d40c6([0x6b,0x74,0x79])]:_0x4d40c6([0x45,0x43]),[_0x4d40c6([0x75,0x73,0x65])]:_0x4d40c6([0x73,0x69,0x67]),[_0x4d40c6([0x63,0x72,0x76])]:_0x4d40c6([0x50,0x2d,0x32,0x35,0x36]),[_0x4d40c6([0x78])]:_0x4d40c6([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]),[_0x4d40c6([0x79])]:_0x4d40c6([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]),[_0x4d40c6([0x61,0x6c,0x67])]:_0x4d40c6([0x45,0x53,0x32,0x35,0x36])},_0xb7a8dc=_0x49bc23[_0x4d40c6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d40c6([0x67,0x65,0x74])](_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cb213(){let _0x42dda8,_0x5e76f0=null,_0x5326bf=null;try{if(_0xb7a8dc==_0x4d40c6([0x47,0x50,0x4c]))return _0x4d40c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42dda8=_0x3f2fbb(),!_0x42dda8)return _0x4d40c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42dda8[_0x4d40c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5326bf=_0x2d38bb(_0x42dda8[_0x4d40c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42dda8[_0x4d40c6([0x6a,0x74,0x69])])),await _0x1a6371()?_0x38567b()?_0x1c9c36()?_0x4d40c6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f309e()?(_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d40c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e76f0=_0x3581c0(_0x4d40c6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d40c6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e76f0=_0x3581c0(_0x4d40c6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26a737()):_0x4d40c6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d40c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d40c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xb9e44){return _0x4d40c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c9c36(){const _0x2e6f90=[_0x4d40c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d40c6([0x74,0x72,0x69,0x61,0x6c])][_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53a5f2/0x3e8:0xe10*_0x5ae875;return _0x42dda8[_0x4d40c6([0x65,0x78,0x70])]<_0x2e6f90;}function _0x38567b(){const _0x2fac54=_0x42dda8[_0x4d40c6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2fac54)return!0x1;if(_0x2fac54[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x2a])))return!0x0;if(_0x2fac54[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x52,0x48])))return!0x0;if(_0x2fac54[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x52,0x52,0x48]))){if(_0x5263e())return!0x0;if(_0x11bc39()||_0x4e3d39())return!0x0;}return!0x1;}function _0x4f309e(){const _0xc6fd35=_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc6fd35||0x0==_0xc6fd35[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42694c}=new URL(window[_0x4d40c6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc6fd35[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42694c))return!0x0;const _0x41b5c7=_0x42694c[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e]));return _0xc6fd35[_0x4d40c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x549282=>_0x549282[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x2a])))[_0x4d40c6([0x6d,0x61,0x70])](_0x47fb46=>_0x47fb46[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e])))[_0x4d40c6([0x73,0x6f,0x6d,0x65])](_0x266e65=>_0x41b5c7[_0x4d40c6([0x65,0x76,0x65,0x72,0x79])]((_0x25cbe0,_0x1ec7d2)=>_0x266e65[_0x1ec7d2]===_0x25cbe0||_0x266e65[_0x1ec7d2]===_0x4d40c6([0x2a])));}function _0x26a737(){return _0x5e76f0&&_0x5326bf?new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x408c11,_0x2ca0c4)=>{_0x5e76f0[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x408c11,_0x2ca0c4),_0x5326bf[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x743b08=>{_0x743b08!=_0x4d40c6([0x56,0x61,0x6c,0x69,0x64])&&_0x408c11(_0x743b08);},_0x2ca0c4);}):_0x5e76f0||_0x5326bf||_0x4d40c6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d38bb(_0xa01b2b,_0x13e147){return new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b1b6=>{if(_0x97fcb())return _0x11b1b6(_0x4d40c6([0x56,0x61,0x6c,0x69,0x64]));_0x27307a(),_0x49bc23[_0x4d40c6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d40c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47bbe4=!0x1;const _0x2ca7b2=_0x663c6b();function _0x38cd13(_0xbf93d6){return!!_0xbf93d6&&(typeof _0xbf93d6===_0x4d40c6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xbf93d6===_0x4d40c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xbf93d6[_0x4d40c6([0x74,0x68,0x65,0x6e])]===_0x4d40c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xbf93d6[_0x4d40c6([0x63,0x61,0x74,0x63,0x68])]===_0x4d40c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x137d4d(_0x200010){_0x5b454a(_0x200010)[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x2fc197=>{if(!_0x2fc197||_0x2fc197[_0x4d40c6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d40c6([0x6f,0x6b]))return _0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44618a(_0xf31c82(_0x2ca7b2+_0x13e147))!=_0x2fc197[_0x4d40c6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d40c6([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x331e0c=>(_0x5d3d21(),_0x331e0c),()=>{const _0x57d451=_0x4559cb();return null==_0x57d451?(_0x5d3d21(),_0x4d40c6([0x56,0x61,0x6c,0x69,0x64])):_0x4d40c6(_0x53a5f2-_0x57d451>(0x5caa7d59^_0x23126e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x11b1b6)[_0x4d40c6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11b1b6(_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bb56e=0x789017d9^_0x23126e;function _0x5d3d21(){const _0x2a9962=_0x4d40c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x44618a(_0xf31c82(_0xa01b2b)),_0x9f2304=_0x551551(_0x44618a(window[_0x4d40c6([0x4d,0x61,0x74,0x68])][_0x4d40c6([0x63,0x65,0x69,0x6c])](_0x53a5f2/_0x3bb56e)));window[_0x4d40c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d40c6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a9962,_0x9f2304);}function _0x4559cb(){const _0x5332f6=_0x4d40c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x44618a(_0xf31c82(_0xa01b2b)),_0x5e8882=window[_0x4d40c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d40c6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5332f6);return _0x5e8882?window[_0x4d40c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x551551(_0x5e8882),0x10)*_0x3bb56e:null;}function _0x5b454a(_0x1756a5){return new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fe77f,_0x5de544)=>{_0x1756a5[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x1fe77f,_0x5de544),window[_0x4d40c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5de544,0x78a72d99^_0x23126e);});}}_0x49bc23[_0x4d40c6([0x6f,0x6e])](_0x4d40c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x464265,_0x3646ed)=>{if(_0x3646ed[0x0]!=_0xa01b2b)return _0x11b1b6(_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3646ed[0x1]={..._0x3646ed[0x1],[_0x4d40c6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ca7b2};},{[_0x4d40c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d40c6([0x68,0x69,0x67,0x68])}),_0x49bc23[_0x4d40c6([0x6f,0x6e])](_0x4d40c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe7632b=>{_0x38cd13(_0xe7632b[_0x4d40c6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47bbe4=!0x0,_0x137d4d(_0xe7632b[_0x4d40c6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d40c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d40c6([0x6c,0x6f,0x77])}),_0x3de308[_0x4d40c6([0x74,0x68,0x65,0x6e])](()=>{_0x47bbe4||_0x11b1b6(_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x97fcb(){return _0x49bc23[_0x4d40c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d40c6([0x76,0x69,0x65,0x77])][_0x4d40c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d40c6([0x61,0x75,0x74,0x6f]);}function _0x27307a(){_0x49bc23[_0x4d40c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d40c6([0x76,0x69,0x65,0x77])][_0x4d40c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d40c6([0x61,0x75,0x74,0x6f]);}}function _0x3581c0(_0x1376a7){const _0x1216f3=[new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21e22f=>setTimeout(_0x21e22f,0x78afc795^_0x23126e)),_0x3de308[_0x4d40c6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ddf04=>{const _0x2d4428=0x78a6f95e^_0x23126e,_0x7d88fb=_0x2149e4[_0x4d40c6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x391fe1(){_0x7d88fb[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d4428&&_0x3ddf04();}_0x391fe1(),_0x7d88fb[_0x4d40c6([0x6f,0x6e])](_0x4d40c6([0x61,0x64,0x64]),_0x391fe1);})),new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4885d1=>{function _0x22c033(){for(const _0xb8e524 in window)if(window[_0x4d40c6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4d40c6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb8e524))&&window[_0xb8e524]==_0x54ec88)return _0x4885d1();_0x49bc23[_0x4d40c6([0x73,0x74,0x61,0x74,0x65])]!=_0x4d40c6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4d40c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22c033,0x78a6ead1^_0x23126e);}_0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x22c033();})];return window[_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d40c6([0x72,0x61,0x63,0x65])](_0x1216f3)[_0x4d40c6([0x74,0x68,0x65,0x6e])](()=>_0x1376a7);}async function _0x596cc7(){if(await _0x3de308,_0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x504a48=_0x2149e4[_0x4d40c6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x136b6c=_0x2149e4[_0x4d40c6([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])](_0x504a48[_0x4d40c6([0x69,0x64])]),_0x1b3a79=_0x44bca4(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1b3a79[_0x4d40c6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x504a48['id'],_0x136b6c?_0x136b6c['id']:null,!0x0),_0x1b3a79[_0x4d40c6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1b3a79[_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1b3a79[_0x4d40c6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x21f096,void(_0x1b3a79[_0x4d40c6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x21f096);}if(_0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1da737=_0x44bca4(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1da737[_0x4d40c6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1da737[_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1da737[_0x4d40c6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x21f096,_0x1da737[_0x4d40c6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x21f096;}_0x49bc23[_0x4d40c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d40c6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21f096,_0x49bc23[_0x4d40c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d40c6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21f096,_0x49bc23[_0x4d40c6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d40c6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5263e(){return _0x50ec97(_0x4d40c6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x44bca4(_0x4d40c6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d40c6([0x73,0x74,0x61,0x74,0x65])]==_0x4d40c6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11bc39(){return _0x50ec97(_0x4d40c6([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 _0x4e3d39(){return _0x50ec97(_0x4d40c6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x423d83(_0x38f92e){const _0x33ce7e=_0x219dfb();_0x49bc23[_0x33ce7e]=_0x4d40c6([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])+_0x38f92e,_0x38f92e[_0x4d40c6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4d40c6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x219dfb()]=_0x54ec88),_0x38f92e!=_0x4d40c6([0x56,0x61,0x6c,0x69,0x64])&&_0x596cc7();}function _0x219dfb(){const _0x38e638=window[_0x4d40c6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d40c6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d40c6([0x6e,0x6f,0x77])]())[_0x4d40c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d40c6([0x2e]),'');let _0x90e5a5=_0x4d40c6([0x6f]);for(let _0x4b3251=0x0;_0x4b3251<_0x38e638[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b3251+=0x2){let _0x13c289=window[_0x4d40c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38e638[_0x4d40c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b3251,_0x4b3251+0x2));_0x13c289>=_0x427a41[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13c289-=_0x427a41[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x90e5a5+=_0x427a41[_0x13c289];}return _0x90e5a5;}function _0x3f2fbb(){const _0x29d377=_0xb7a8dc[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e]));if(0x3!=_0x29d377[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa760eb(_0x29d377[0x1]);function _0xa760eb(_0x26b7cd){const _0x1f0efc=_0x55923a(_0x26b7cd);return _0x1f0efc&&_0x24ff5d()?_0x1f0efc:null;function _0x24ff5d(){const _0x2fc340=_0x1f0efc[_0x4d40c6([0x6a,0x74,0x69])],_0x5bd37f=window[_0x4d40c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fc340[_0x4d40c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fc340[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46a3ff={..._0x1f0efc,[_0x4d40c6([0x6a,0x74,0x69])]:_0x2fc340[_0x4d40c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2fc340[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46a3ff[_0x4d40c6([0x76,0x63])],_0xf31c82(_0x46a3ff)==_0x5bd37f;}}}async function _0x1a6371(){let _0x5a6d92=!0x0;try{const _0xfae856=_0xb7a8dc[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e])),[_0x28b0c2,_0xc26057,_0x524c1a]=_0xfae856;return _0x23bd5d(_0x28b0c2),await _0x2f21ff(_0x28b0c2,_0xc26057,_0x524c1a),_0x5a6d92;}catch(_0xf38693){return!0x1;}function _0x23bd5d(_0x435bcf){const _0x31619d=_0x55923a(_0x435bcf);_0x31619d&&_0x31619d[_0x4d40c6([0x61,0x6c,0x67])]==_0x4d40c6([0x45,0x53,0x32,0x35,0x36])||(_0x5a6d92=!0x1);}async function _0x2f21ff(_0x104d4c,_0x560694,_0x597f7e){const _0x24997a=window[_0x4d40c6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d40c6([0x66,0x72,0x6f,0x6d])](_0x48be21(_0x597f7e),_0x2da3a7=>_0x2da3a7[_0x4d40c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3907a0=new window[(_0x4d40c6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d40c6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x104d4c+_0x4d40c6([0x2e])+_0x560694),_0x23801a=window[_0x4d40c6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d40c6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23801a)return;const _0x1d0e25=await _0x23801a[_0x4d40c6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d40c6([0x6a,0x77,0x6b]),_0x2dddaa,{[_0x4d40c6([0x6e,0x61,0x6d,0x65])]:_0x4d40c6([0x45,0x43,0x44,0x53,0x41]),[_0x4d40c6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d40c6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d40c6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23801a[_0x4d40c6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d40c6([0x6e,0x61,0x6d,0x65])]:_0x4d40c6([0x45,0x43,0x44,0x53,0x41]),[_0x4d40c6([0x68,0x61,0x73,0x68])]:{[_0x4d40c6([0x6e,0x61,0x6d,0x65])]:_0x4d40c6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d0e25,_0x24997a,_0x3907a0)||(_0x5a6d92=!0x1);}}function _0x55923a(_0x10a879){return _0x10a879[_0x4d40c6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d40c6([0x65,0x79]))?JSON[_0x4d40c6([0x70,0x61,0x72,0x73,0x65])](_0x48be21(_0x10a879)):null;}function _0x48be21(_0x2accdd){return window[_0x4d40c6([0x61,0x74,0x6f,0x62])](_0x2accdd[_0x4d40c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d40c6([0x2b]))[_0x4d40c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d40c6([0x2f])));}function _0xf31c82(_0x1a4a9c){let _0x3c1810=0x1505;function _0x182120(_0x48e41b){for(let _0x322499=0x0;_0x322499<_0x48e41b[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x322499++){const _0xa9dea5=_0x48e41b[_0x4d40c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x322499);_0x3c1810=(_0x3c1810<<0x5)+_0x3c1810+_0xa9dea5,_0x3c1810&=_0x3c1810;}}function _0x416e2b(_0x5c668b){Array[_0x4d40c6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c668b)?_0x5c668b[_0x4d40c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x416e2b):_0x5c668b&&typeof _0x5c668b==_0x4d40c6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d40c6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c668b)[_0x4d40c6([0x73,0x6f,0x72,0x74])]()[_0x4d40c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6a792c,_0x31a97b])=>{_0x182120(_0x6a792c),_0x416e2b(_0x31a97b);}):_0x182120(window[_0x4d40c6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c668b));}return _0x416e2b(_0x1a4a9c),_0x3c1810>>>0x0;}function _0x44618a(_0x9c088d){return _0x9c088d[_0x4d40c6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d40c6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d40c6([0x30]));}function _0x551551(_0x40900b){return _0x40900b[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d40c6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d40c6([0x6a,0x6f,0x69,0x6e])]('');}function _0x50ec97(_0x3f4ee9){return _0x49bc23[_0x4d40c6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d40c6([0x68,0x61,0x73])](_0x3f4ee9);}function _0x44bca4(_0x143e4e){return _0x49bc23[_0x4d40c6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d40c6([0x67,0x65,0x74])](_0x143e4e);}function _0x21f096(){}function _0x4d40c6(_0x9b5ad5){return _0x9b5ad5['map'](_0x516a69=>String['fromCharCode'](_0x516a69))['join']('');}_0x423d83(await _0x3cb213());}(this);}['createRevision'](_0x25a0e5){const _0x2a086c=this['editor']['plugins']['get']('Users');return new h({'id':_0x25a0e5['id'],'name':_0x25a0e5['name'],'creator':_0x25a0e5['creatorId']?_0x2a086c['getUser'](_0x25a0e5['creatorId']):null,'diffData':_0x25a0e5['diffData']||_0x25a0e5['data'],'authors':_0x25a0e5['authorsIds']['map'](_0x2450a3=>_0x2a086c['getUser'](_0x2450a3)),'createdAt':new Date(_0x25a0e5['createdAt']),'attributes':_0x25a0e5['attributes'],'fromVersion':_0x25a0e5['fromVersion'],'toVersion':_0x25a0e5['toVersion']});}['addRevision'](_0x5f212a,_0x23a4b1=0x0){this['_revisions']['add'](_0x5f212a,_0x23a4b1);}['getRevision'](_0x192544){return this['_revisions']['get'](_0x192544);}['getRevisions'](_0x5ee8f1={'toJSON':!0x1}){const _0x5e0cb9=Array['from'](this['_revisions']);return _0x5e0cb9['reverse'](),_0x5ee8f1['toJSON']?_0x5e0cb9['map'](_0x3aedb3=>_0x3aedb3['toJSON']()):_0x5e0cb9;}['getIndex'](_0x1d8a05){return this['_revisions']['getIndex'](_0x1d8a05);}['getEarlierVisibleRevision'](_0x1b0123){const [,_0xf7a868]=this['getRevisionsIterator'](_0x1b0123,{'direction':'earlier'});return _0xf7a868;}['getLaterVisibleRevision'](_0x5b670b){const [,_0x346e14]=this['getRevisionsIterator'](_0x5b670b,{'direction':'later'});return _0x346e14;}['getRevisionsInDiff'](_0x3b4df0){const _0x13d34c=[];for(const _0x59f834 of this['getRevisionsIterator'](_0x3b4df0['newRevisionId']))if(_0x13d34c['push'](_0x59f834),_0x59f834['id']===_0x3b4df0['oldRevisionId'])break;return _0x13d34c;}*['getRevisionsIterator'](_0x3a4227,{direction:_0x37b434='earlier',filter:_0x4874fc=()=>!0x0}={}){const _0x42ef2b='earlier'===_0x37b434?0x1:-0x1;let _0x3048d1=this['_revisions']['get'](_0x3a4227),_0x1b4a0c=this['getIndex'](_0x3048d1);for(yield _0x3048d1;_0x3048d1;){if(_0x1b4a0c+=_0x42ef2b,_0x3048d1=this['getRevision'](_0x1b4a0c),!_0x3048d1)return;_0x4874fc(_0x3048d1)&&(yield _0x3048d1);}}}function m(_0x20dcaa,_0x520ede,_0x2dafbc){const t=_0x20dcaa['t'];switch(_0x520ede){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'},_0x2dafbc);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2dafbc);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':_0x11aa29,'a':_0x1a2d2b,'e':_0x2b610f,'r':_0x3274f3,'u':_0x1409e8};class u extends _0x41e048{['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[_0x1b8d32,j,_0x3062d1];}constructor(_0x40c1b0){super(_0x40c1b0),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 _0x2fbd0c=_0x663c6b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2fbd0c},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 _0x15f969=this['repository']['getRevision'](0x0),_0x46adf5=_0x15f969&&null===_0x15f969['creator']?_0x15f969:null;if(this['_continueCurrentRevision']=!!_0x46adf5&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1b26c4=this['_source']['getCurrentRevisionId'](),_0x5dd64d=this['repository']['getRevision'](_0x1b26c4);if(_0x5dd64d)this['_startingVersion']=_0x5dd64d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x29fc9d=this['_source']['history']['_operations']['find'](_0x3937e6=>!_0x3937e6['_isInit']),_0xa411f3=_0x29fc9d?_0x29fc9d['baseVersion']:this['_source']['history']['version'];_0x15f969?(_0x15f969['toVersion']<_0xa411f3&&_0x15f969['_update']({'toVersion':_0xa411f3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46adf5['id'],this['_startingVersion']=_0x46adf5['fromVersion']):(this['_startingVersion']=_0x15f969['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xa411f3,this['_continueCurrentRevision']=!0x1);}}else _0x46adf5&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46adf5['toVersion'],this['editor']['model']['document']['history']['version']),_0x46adf5['fromVersion']===_0x46adf5['toVersion']?(0x0!==_0x46adf5['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46adf5['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46adf5['id'],this['_startingVersion']=_0x46adf5['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',_0x5e4157=>!_0x5e4157),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x539600=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x425ede;for(const _0x32e441 in _0x539600){const _0x226865=_0x32e441,_0x474f03=_0x539600[_0x226865];if('revisionHistoryLicenseKeyValid'==_0x474f03||'revisionHistoryLicenseKeyInvalid'==_0x474f03||'revisionHistoryLicenseKeyExpired'==_0x474f03||'revisionHistoryLicenseKeyDomainLimit'==_0x474f03||'revisionHistoryLicenseKeyNotAllowed'==_0x474f03||'revisionHistoryLicenseKeyEvaluationLimit'==_0x474f03||'revisionHistoryLicenseKeyTrialLimit'==_0x474f03||'revisionHistoryLicenseKeyUsageLimit'==_0x474f03){delete _0x539600[_0x226865],_0x425ede=_0x474f03,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x425ede&&_0x539600['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x425ede&&_0x539600['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x425ede&&_0x539600['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x425ede&&_0x539600['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x425ede&&_0x539600['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x425ede&&_0x539600['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x425ede&&_0x539600['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x36f332=this['repository']['getRevision'](0x0),_0xc44e2b=await this['getRevisionDocumentData'](_0x36f332),_0x31102a=await this['getRevisionRootsAttributes'](_0x36f332);this['_replaceEditorDataWithRevisionData'](_0xc44e2b,_0x31102a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x538827){this['_source']=_0x538827;}async['update'](){const _0x341b9c=await this['_source']['getLatestVersion']();if(_0x341b9c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2a8b57=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x341b9c});_0x2a8b57['authors']=_0x2a8b57['authorsIds']['map'](_0x7da4c8=>this['editor']['plugins']['get']('Users')['getUser'](_0x7da4c8)),this['currentRevision']['_update'](_0x2a8b57);}}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'](_0x2d350b={},_0x3d3a07=null){const _0x5489ae=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3d3a07>this['currentRevision']['toVersion']&&(_0x3d3a07=null),null===_0x3d3a07&&(_0x3d3a07=await this['_source']['getLatestVersion']());const _0x3264b4=this['_getFromVersion'](_0x3d3a07),_0x2dddc5=this['buildRevisionData']({'from':_0x3264b4,'to':_0x3d3a07});if(this['currentRevision']['toVersion']<_0x3d3a07){const _0x5dfd52=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3d3a07,'to':_0x3d3a07});_0x5dfd52['authors']=[],_0x5dfd52['authorsIds']=[],_0x5dfd52['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5dfd52,!0x0),delete _0x5dfd52['authors'],_0x5489ae['push'](_0x5dfd52);}_0x2d350b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d350b['name']=_0x2d350b['name']||null,_0x2d350b['id']=_0x2d350b['id']||_0x663c6b(),_0x2d350b={..._0x2d350b,..._0x2dddc5};const _0xcd950=this['addRevisionData'](_0x2d350b);_0x5489ae['push'](_0x2d350b);const _0xbf94a6=this['repository']['getIndex'](_0xcd950);if(0x0!==_0xbf94a6){const _0x3dc37f=this['repository']['getRevision'](_0xbf94a6-0x1);if(_0x3dc37f['fromVersion']!==_0x3d3a07){const _0x3ea63d=this['_revisionDataBuilder']['getData'](_0x3d3a07,_0x3dc37f['toVersion']),_0x248ffd={'id':_0x3dc37f['id'],'diffData':_0x3ea63d['diffData'],'authorsIds':_0x3ea63d['authorsIds'],'authors':_0x3ea63d['authorsIds']['map'](_0x2bd879=>this['editor']['plugins']['get']('Users')['getUser'](_0x2bd879)),'fromVersion':_0x3d3a07};_0x3dc37f===this['currentRevision']&&(_0x248ffd['createdAt']=new Date(_0x2d350b['createdAt']['getTime']()+0xa)),_0x3dc37f['_update'](_0x248ffd,!0x0),delete _0x248ffd['authors'],_0x5489ae['push'](_0x248ffd);}}if(this['adapter']){for(const _0x23b13d of _0x5489ae)this['_bufferUpdate'](_0x23b13d['id'],_0x23b13d,!0x0);this['sendBufferedUpdates']();}return _0xcd950;}['addRevisionData'](_0x4f9895){const _0x58aec5=this['repository']['createRevision'](_0x4f9895);return this['adapter']&&_0x58aec5['on']('_update',(_0x229d76,_0x2ac683,_0x548fae)=>{_0x548fae||(this['_bufferUpdate'](_0x2ac683['id'],_0x2ac683,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x58aec5,this['_findInsertionIndex'](_0x58aec5)),_0x58aec5;}async['getRevisionDocumentData'](_0x4d260c){await this['_loadRevisionData'](_0x4d260c);const _0xb03948={};for(const _0x522d5d in _0x4d260c['diffData']){if(_0x4d260c['diffData'][_0x522d5d]['attachChange']&&!_0x4d260c['diffData'][_0x522d5d]['attachChange']['isAttached'])continue;const _0xf3d9a5=this['_removeRevisionMarkers'](JSON['parse'](_0x4d260c['diffData'][_0x522d5d]['insertions'])),_0x2beea3=this['editor']['editing']['view']['document'],_0x2c822d=new _0x1c7ac7(_0x2beea3,_0xf3d9a5['map'](_0x497b95=>P(_0x497b95,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xb03948[_0x522d5d]=this['editor']['data']['processor']['toData'](_0x2c822d),this['editor']['data']['processor']['useFillerType']('default');}return _0xb03948;}async['getRevisionRootsAttributes'](_0x3a127d){await this['_loadRevisionData'](_0x3a127d);const _0x51b831={};for(const _0x498d1e in _0x3a127d['diffData'])_0x3a127d['diffData'][_0x498d1e]['attachChange']&&!_0x3a127d['diffData'][_0x498d1e]['attachChange']['isAttached']||(_0x51b831[_0x498d1e]=_0x3a127d['diffData'][_0x498d1e]['attributesAfter']||{});return _0x51b831;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1fbf64=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3feb15=0x0;_0x3feb15<_0x1fbf64['length'];_0x3feb15++){const _0x350918=_0x1fbf64[_0x3feb15];let _0x485dd5=!0x1;for(const _0x277275 of Object['keys'](_0x350918))void 0x0===_0x350918[_0x277275]?delete _0x350918[_0x277275]:'id'!==_0x277275&&(_0x485dd5=!0x0);_0x485dd5||(_0x1fbf64[_0x3feb15]=null);}if(_0x1fbf64=_0x1fbf64['filter'](_0x557aea=>null!==_0x557aea),!_0x1fbf64['length'])return;for(let _0x956303=0x0;_0x956303<_0x1fbf64['length'];_0x956303++){const _0x17116a=_0x1fbf64[_0x956303];void 0x0!==_0x17116a['fromVersion']&&void 0x0===_0x17116a['toVersion']&&(_0x17116a['toVersion']=this['repository']['getRevision'](_0x17116a['id'])['toVersion']),void 0x0!==_0x17116a['toVersion']&&void 0x0===_0x17116a['fromVersion']&&(_0x17116a['fromVersion']=this['repository']['getRevision'](_0x17116a['id'])['fromVersion']);}const _0x5bfca2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1fbf64,_0x5bfca2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x34d5e1=>{if(_0x34d5e1){for(const _0x1e9585 of _0x34d5e1)this['setRevisionData']({'id':_0x1e9585['id'],'createdAt':_0x1e9585['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x539d89,_0xed85bd){let _0x5599f5=this['editor']['config']['get']('initialData'),_0x55c5a6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5599f5){_0x5599f5={};for(const _0x368540 of this['editor']['model']['document']['getRootNames']())_0x5599f5[_0x368540]='';}if('string'==typeof _0x5599f5&&(_0x5599f5={'main':_0x5599f5}),void 0x0===_0x55c5a6){_0x55c5a6={};for(const _0x2b3823 of this['editor']['model']['document']['getRootNames']())_0x55c5a6[_0x2b3823]={};}let _0x4352aa=!0x1;const _0x37f6c0=Object['keys'](_0x5599f5),_0x23b5c0=Object['keys'](_0x539d89);for(const _0x1952c0 of _0x37f6c0){if(_0x5599f5[_0x1952c0]!==_0x539d89[_0x1952c0]&&''!==_0x5599f5[_0x1952c0]['trim']()){_0x4352aa=!0x0;break;}if(!_0x40af19(_0x55c5a6[_0x1952c0],_0xed85bd[_0x1952c0])&&Object['keys'](_0x55c5a6[_0x1952c0])['length']>0x0){_0x4352aa=!0x0;break;}}_0x4352aa||(_0x4352aa=_0x23b5c0['some'](_0x1a3251=>!this['editor']['model']['document']['getRoot'](_0x1a3251))),_0x4352aa&&_0x41b40d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5599f5,'editorRootsAttributes':_0x55c5a6,'revisionData':_0x539d89,'revisionRootsAttributes':_0xed85bd}),this['editor']['config']['set']('initialData',_0x539d89),this['editor']['config']['set']('rootsAttributes',_0xed85bd);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x145f6c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x145f6c['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x37316c){const _0x29a365=this['repository']['getRevisions']();_0x29a365['reverse']();let _0x71be53=0x0;for(;_0x71be53<_0x29a365['length'];){const _0x8c6287=_0x29a365[_0x71be53];if(_0x8c6287===this['currentRevision']){_0x71be53++;continue;}if(_0x8c6287['id']===this['_initialRevisionId'])break;const _0x4d19e2=_0x37316c['toVersion']-_0x8c6287['toVersion']||_0x37316c['fromVersion']-_0x8c6287['fromVersion'];if(_0x4d19e2>0x0)break;if(_0x4d19e2<0x0)_0x71be53++;else{if(!_0x37316c['creator']&&_0x8c6287['creator'])break;if(_0x8c6287['creator']||!_0x37316c['creator']){if(_0x37316c['createdAt']>_0x8c6287['createdAt'])break;_0x71be53++;}else _0x71be53++;}}return _0x71be53;}['setRevisionData'](_0xfadf64){const _0x4c6243=this['repository']['getRevision'](_0xfadf64['id']);if(_0xfadf64['createdAt']&&(_0xfadf64['createdAt']=new Date(_0xfadf64['createdAt'])),_0xfadf64['authorsIds']){const _0x52c59b=this['editor']['plugins']['get']('Users');_0xfadf64['authors']=_0xfadf64['authorsIds']['map'](_0x527605=>_0x52c59b['getUser'](_0x527605));}_0x4c6243['_update'](_0xfadf64,!0x0);}['buildRevisionData']({revision:_0x306ca8=null,from:_0x2fe281=null,to:_0x4fa385=null}){_0x2fe281=null!==_0x2fe281?_0x2fe281:_0x306ca8['fromVersion'],_0x4fa385=null!==_0x4fa385?_0x4fa385:_0x306ca8['toVersion'];const _0xe63d43=this['_revisionDataBuilder']['getData'](_0x2fe281,_0x4fa385),_0x115e50={'diffData':_0xe63d43['diffData'],'authorsIds':_0xe63d43['authorsIds'],'fromVersion':_0x2fe281,'toVersion':_0x4fa385};if(!_0x306ca8||_0x4fa385!==_0x306ca8['toVersion']){const _0x4c1cc2=_0x4fa385-0x1,_0x4aeafb=this['_source']['history']['getOperation'](_0x4c1cc2);_0x115e50['createdAt']=_0x4aeafb&&_0x4aeafb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2fe281===this['_loadedStateData']['fromVersion']){for(const _0x2ffbb0 of this['_loadedStateData']['authors'])_0x115e50['authorsIds']['includes'](_0x2ffbb0['id'])||_0x115e50['authorsIds']['push'](_0x2ffbb0['id']);}return _0x115e50;}['_loadRevisionData'](_0x2e99b0){if(!_0x2e99b0||_0x2e99b0['diffData'])return Promise['resolve']();{const _0x46c0ce=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x46c0ce,'revisionId':_0x2e99b0['id']})['then'](_0x16e2c3=>{_0x2e99b0['diffData']=_0x16e2c3['diffData'];});}}['_bufferUpdate'](_0x4f974c,_0x368e53,_0x545100){if(this['_bufferedUpdates']['has'](_0x4f974c)){const _0x2cc5b1=this['_bufferedUpdates']['get'](_0x4f974c);_0x368e53=_0x545100?{..._0x2cc5b1,..._0x368e53}:{..._0x368e53,..._0x2cc5b1};}this['_bufferedUpdates']['set'](_0x4f974c,_0x368e53);}['_getFromVersion'](_0x32f027){const _0x1996df=this['repository']['getRevisions']();_0x1996df['reverse'](),_0x1996df['shift']();const _0xf06700=_0x1996df['find'](_0x3afd32=>_0x3afd32['toVersion']<=_0x32f027)['toVersion'];return _0xf06700<this['_startingVersion']?this['_startingVersion']:_0xf06700;}['_createInitialRevision'](_0x24b593){const _0x54dee9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x54dee9)this['_initialRevisionId']=_0x54dee9['id'];else{const _0x54fd52=!this['editor']['model']['document']['roots']['find'](_0x2d1e2b=>this['editor']['model']['hasContent'](_0x2d1e2b)),_0x14e1b6=this['editor']['plugins']['get']('Users')['me']['id'],_0x24cb10=m(this['editor']['locale'],_0x54fd52?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x24b593,'to':_0x24b593,'id':this['_initialRevisionId'],'name':_0x24cb10,'creatorId':_0x14e1b6});}}['_createCurrentRevision'](_0x36492e){const _0x115ae8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x115ae8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x36492e,'to':_0x36492e,'id':_0x115ae8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x33795f,from:_0x452e69,to:_0x118713,creatorId:_0x1b3cf2,id:_0x43e7af}){const _0x18d20b=this['buildRevisionData']({'from':_0x452e69,'to':_0x118713});_0x18d20b['name']=_0x33795f,_0x18d20b['creatorId']=_0x1b3cf2,_0x18d20b['id']=_0x43e7af;const _0x5915e0=this['addRevisionData'](_0x18d20b);return this['adapter']&&this['_bufferUpdate'](_0x18d20b['id'],_0x18d20b,!0x0),_0x5915e0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x417834){return(_0x417834=_0x417834['filter'](_0x380836=>!_0x380836['name']||'revision-start'!==_0x380836['name']&&'revision-end'!==_0x380836['name']))['forEach'](_0x308085=>{'string'!=typeof _0x308085&&(_0x308085['children']=this['_removeRevisionMarkers'](_0x308085['children']),_0x308085['attributes']=_0x308085['attributes']['filter'](_0xd90845=>!_0xd90845[0x0]['startsWith']('data-revision-')));}),_0x417834;}}function P(_0x4d10f0,_0x1f7dba){const _0x325fd3=_0x1f7dba['editing']['view']['document'];if('string'==typeof _0x4d10f0)return new _0x4a50ef(_0x325fd3,_0x4d10f0);{const _0x4b6a50=_0x4d10f0['children']['map'](_0x2bfa03=>P(_0x2bfa03,_0x1f7dba));return new(E[_0x4d10f0['type']]||_0x4fb45b)(_0x325fd3,_0x4d10f0['name'],_0x4d10f0['attributes'],_0x4b6a50);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x99b57b){this['editor']=_0x99b57b,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'](_0x5de896){this['source']=_0x5de896;const _0x59f9b4=new Map(),_0x93c862=new Map(),_0x5b5d4f=this['editor']['model']['document']['roots']['map'](_0x48f7a9=>_0x48f7a9['rootName']);for(const _0x549e49 of _0x5b5d4f){const _0x2de457=this['editor']['model']['document']['getRoot'](_0x549e49),_0x585a73=T(_0x2de457);_0x59f9b4['set'](_0x549e49,_0x585a73),_0x93c862['set'](_0x549e49,Object['fromEntries'](_0x2de457['getAttributes']()));}const _0x1f6f39=Array['from'](this['editor']['model']['markers'])['map'](_0x44521a=>[_0x44521a['name'],_0x44521a['getRange']()]),_0x6018cf=this['source']['version'];this['_saveMetaData'](_0x6018cf,_0x59f9b4,_0x1f6f39,_0x93c862),this['_startingRevisionId']=this['_revisionId'];const _0x2ba2d5=new Map(),_0x8ba856=new Map();for(const _0x4ed886 of _0x5b5d4f){const _0x23af53=F(_0x4ed886);_0x2ba2d5['set'](_0x4ed886,_0x23af53),_0x8ba856['set'](_0x4ed886,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2ba2d5,[],_0x8ba856);}['getData'](_0x9490b3,_0x3b5acd){if(this['_lastFrom']===_0x9490b3&&this['_lastTo']<=_0x3b5acd)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3b5acd,!0x0);else{if(!this['_savedMetaData']['has'](_0x9490b3)){const _0x1cf3ef=this['_getPreviousFrom'](_0x9490b3);this['_calculateMetaData'](_0x1cf3ef,_0x9490b3,!0x1);}this['_calculateMetaData'](_0x9490b3,_0x3b5acd,!0x0);}return this['_lastFrom']=_0x9490b3,this['_lastTo']=_0x3b5acd,this['_getState']();}['loadState'](_0xc4a94e){this['_reset'](),this['_lastFrom']=_0xc4a94e['fromVersion'],this['_lastTo']=_0xc4a94e['toVersion'];for(const _0x107e62 in _0xc4a94e['diffData']){const _0x1f00a9=_0xc4a94e['diffData'][_0x107e62]['attachChange'],_0x1a8e5d=_0x24b58c(_0xc4a94e['diffData'][_0x107e62]['attributesBefore'])||{},_0x2774b9=this['_makeModelFromViewString'](_0xc4a94e['diffData'][_0x107e62]['deletions']);_0x2774b9['rootName']=_0x107e62,_0x2774b9['_isAttached']=!_0x1f00a9||!_0x1f00a9['isAttached'],_0x2774b9['isAttached']=()=>_0x2774b9['_isAttached'],this['_baseRoots']['set'](_0x107e62,_0x2774b9),this['_baseRootsAttributes']['set'](_0x107e62,_0x1a8e5d),_0x1f00a9&&this['_touchedRoots']['set'](_0x107e62,_0x1f00a9);const _0x47108b=this['_makeIdsRoot'](_0x2774b9);this['_baseIdsRoots']['set'](_0x107e62,_0x47108b);for(const [_0x536784,_0x476f66]of _0x2774b9['markers']){if(!_0x536784['startsWith']('revision:'))continue;const _0x1fd137=_0x536784['split'](':')[0x2];for(const _0x3e3dd4 of _0x476f66['getWalker']({'singleCharacters':!0x0})){const _0x29f696=this['_getVidAttributeName'](_0x3e3dd4),_0x436ce6='elementEnd'==_0x3e3dd4['type']?_0x3e3dd4['previousPosition']['path']['slice'](0x0,-0x1):_0x3e3dd4['previousPosition']['path'],_0xb42ba0=_0x47108b['getNodeByPath'](_0x436ce6)['getAttribute'](_0x29f696);this['_touched']['set'](_0xb42ba0,{'userId':_0x1fd137});}}}this['_startingRevisionId']=this['_revisionId'];const _0x201537=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x12f4b4=>!this['_touched']['has'](_0x12f4b4));let _0x30f0b8=0x0;const _0xf232d9=new Map();for(const _0x16f7ea in _0xc4a94e['diffData']){const _0x13b6a0=_0xc4a94e['diffData'][_0x16f7ea]['attachChange'],_0x747a2a=_0x24b58c(_0xc4a94e['diffData'][_0x16f7ea]['attributesAfter'])||{},_0x4e0d1b=this['_makeModelFromViewString'](_0xc4a94e['diffData'][_0x16f7ea]['insertions']);_0x4e0d1b['rootName']=_0x16f7ea,_0x4e0d1b['_isAttached']=!_0x13b6a0||_0x13b6a0['isAttached'],_0x4e0d1b['isAttached']=()=>_0x4e0d1b['_isAttached'],this['_diffRoots']['set'](_0x16f7ea,_0x4e0d1b),this['_diffRootsAttributes']['set'](_0x16f7ea,_0x747a2a);const _0x4daae6=this['_makeIdsRoot'](_0x4e0d1b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x16f7ea,_0x4daae6),_0xf232d9['set'](_0x16f7ea,_0x4e0d1b['isAttached']()?_0x747a2a:{});for(const [_0x375133,_0x2ffa45]of _0x4e0d1b['markers']){if(!_0x375133['startsWith']('revision:'))continue;const _0x44c3b3=_0x375133['split'](':')[0x2];for(const _0x4a7ebc of _0x2ffa45['getWalker']({'singleCharacters':!0x0})){const _0x11f556=this['_getVidAttributeName'](_0x4a7ebc),_0x1063f5=this['_revisionId']++,_0x50866b='elementEnd'==_0x4a7ebc['type']?_0x4a7ebc['previousPosition']['path']['slice'](0x0,-0x1):_0x4a7ebc['previousPosition']['path'];_0x4daae6['getNodeByPath'](_0x50866b)['_setAttribute'](_0x11f556,_0x1063f5),this['_touched']['set'](_0x1063f5,{'userId':_0x44c3b3});}}for(const _0x15d3a8 of this['editor']['model']['createRangeIn'](_0x4e0d1b)['getWalker']({'singleCharacters':!0x0})){const _0x5b2298=this['_getVidAttributeName'](_0x15d3a8),_0x2a731b='elementEnd'==_0x15d3a8['type']?_0x15d3a8['previousPosition']['path']['slice'](0x0,-0x1):_0x15d3a8['previousPosition']['path'],_0x5a8c39=_0x4daae6['getNodeByPath'](_0x2a731b);_0x5a8c39['getAttribute'](_0x5b2298)>0x0||_0x5a8c39['_setAttribute'](_0x5b2298,_0x201537[_0x30f0b8++]);}for(const [_0x2cc9bb,_0x2aab0f]of _0x4e0d1b['markers'])_0x2cc9bb['startsWith']('revision:')||this['_markers']['set'](_0x2cc9bb,_0x2aab0f);}const _0x5a2f70=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5a2f70),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5a2f70,0x1));const _0x1006c8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1006c8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1006c8,0x1));const _0x36cc9b=Array['from'](this['_diffRoots'])['map'](([_0x5084f4,_0x90545c])=>[_0x5084f4,T(_0x90545c)]);this['_saveMetaData'](this['_lastTo'],_0x36cc9b,this['_markers'],_0xf232d9);}['_makeModelFromViewString'](_0x1b1885){const _0x54cec9=JSON['parse'](_0x1b1885),_0x157508=this['editor']['editing']['view']['document'],_0x5935b9=new _0x1c7ac7(_0x157508,_0x54cec9['map'](_0x259b63=>P(_0x259b63,this['editor'])));return this['editor']['data']['toModel'](_0x5935b9);}['_saveMetaData'](_0x4116d6,_0xfc27da,_0x529fbe,_0x1416c4){const _0x5cc64f=new Map(_0xfc27da),_0x5930e8=new Map(_0x24b58c(_0x1416c4)),_0x43ed4e=new Map();for(const [_0x2dcba0,_0x46e592]of _0x529fbe)_0x43ed4e['set'](_0x2dcba0,{'start':_0x46e592['start']['clone'](),'end':_0x46e592['end']['clone'](),'rootName':_0x46e592['root']['rootName']});this['_savedMetaData']['set'](_0x4116d6,{'roots':_0x5cc64f,'markers':_0x43ed4e,'rootsAttributes':_0x5930e8});}['_removeMetaData'](_0x16032c){this['_savedMetaData']['delete'](_0x16032c);}['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'](_0x4d75b1,_0x11f98d=null){let _0x4f167f=null;_0x4d75b1['is']('documentFragment')||(_0x4f167f=new ut(_0x4d75b1['name'],{'vid_start':null===_0x11f98d?this['_revisionId']++:_0x11f98d++}));const _0x4a878f=[];for(const _0x3915a3 of _0x4d75b1['getChildren']())if(_0x3915a3['is']('element')){_0x4a878f['push'](this['_makeIdsRoot'](_0x3915a3,_0x11f98d));const _0x442765=_0x4a878f[_0x4a878f['length']-0x1];null!==_0x11f98d&&(_0x11f98d=_0x442765['is']('element','$text')?_0x442765['getAttribute']('vid')+0x1:_0x442765['getAttribute']('vid_end')+0x1);}else{for(let _0x28567d=0x0;_0x28567d<_0x3915a3['offsetSize'];_0x28567d++)_0x4a878f['push'](new ut('$text',{'vid':null===_0x11f98d?this['_revisionId']++:_0x11f98d++}));}if(_0x4d75b1['is']('documentFragment')){const _0x14e407=F(_0x4d75b1['rootName']);return _0x14e407['_insertChild'](0x0,_0x4a878f),_0x14e407;}return _0x4f167f['_setAttribute']('vid_end',null===_0x11f98d?this['_revisionId']++:_0x11f98d++),_0x4f167f['_insertChild'](0x0,_0x4a878f),_0x4f167f;}['_calculateMetaData'](_0x4ebb34,_0x505146,_0x244f29){this['_reset']();const {roots:_0x4d48c0,markers:_0x377190,rootsAttributes:_0x980b20}=this['_savedMetaData']['get'](_0x4ebb34);this['_baseRoots']=new Map(_0x4d48c0),this['_baseRootsAttributes']=new Map(_0x24b58c(_0x980b20));for(const [_0x2ce593,_0x37ab55]of this['_baseRoots'])if('$graveyard'!==_0x2ce593&&(this['_diffRoots']['set'](_0x2ce593,T(_0x37ab55)),this['_diffRootsAttributes']=new Map(_0x24b58c(_0x980b20)),_0x244f29)){const _0x534f4c=this['_revisionId'];this['_idsRoots']['set'](_0x2ce593,this['_makeIdsRoot'](_0x37ab55)),this['_baseIdsRoots']['set'](_0x2ce593,this['_makeIdsRoot'](_0x37ab55,_0x534f4c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x244f29&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1f6656,_0x4776d9]of _0x377190){const _0x3d3271=this['_baseRoots']['get'](_0x4776d9['rootName']),_0x4b7112=this['_diffRoots']['get'](_0x4776d9['rootName']),_0x4ec2fc=new ft(this['_fixPosition'](_0x4776d9['start'],_0x3d3271),this['_fixPosition'](_0x4776d9['end'],_0x3d3271)),_0x355ac6=this['_fixRange'](_0x4ec2fc,_0x4b7112);_0x3d3271['markers']['set'](_0x1f6656,_0x4ec2fc),this['_markers']['set'](_0x1f6656,_0x355ac6);}this['_applyOperations'](_0x4ebb34,_0x505146,_0x244f29);}['_applyOperations'](_0x54e575,_0x39787c,_0x1f1869){for(const _0x3609b8 of this['source']['getOperations'](_0x54e575,_0x39787c))this['_handleOperation'](_0x3609b8,_0x1f1869);for(const _0x3d0a3b of this['_diffRoots']['values']())_0x3d0a3b['markers']['clear']();for(const [_0x54c978,_0x50fdb2]of this['_markers']){this['_diffRoots']['get'](_0x50fdb2['root']['rootName'])['markers']['set'](_0x54c978,_0x50fdb2['clone']());}const _0x415717=new Map(),_0x34cfa9=new Map();for(const [_0x50ce7e,_0x52e311]of this['_diffRoots'])_0x415717['set'](_0x50ce7e,T(_0x52e311)),_0x34cfa9['set'](_0x50ce7e,this['_diffRootsAttributes']['get'](_0x50ce7e));this['_saveMetaData'](_0x39787c,_0x415717,this['_markers'],_0x34cfa9);}['_getPreviousFrom'](_0x12191b){const _0xa8e40=Array['from'](this['_savedMetaData']['keys']());_0xa8e40['sort']((_0x17d3f0,_0x5beda5)=>_0x17d3f0-_0x5beda5),_0xa8e40['reverse']();for(const _0x19fb2a of _0xa8e40)if(_0x19fb2a<_0x12191b)return _0x19fb2a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x46d0cb,_0x4280d3){const _0x28b405=Array['from'](_0x4280d3['markers'])['map'](([_0x2846d9,_0x2f461d])=>[_0x2846d9,this['_fixRange'](_0x2f461d,_0x46d0cb)]);_0x46d0cb['markers']=new Map(_0x28b405);}['_transformMarkers'](_0x368aff){for(const _0x4fa56d of this['_markers']['values']()){const _0x315d56=_0x4fa56d['getTransformedByOperation'](_0x368aff),_0x1507bd=ft['_createFromRanges'](_0x315d56);_0x4fa56d['start']=_0x1507bd['start'],_0x4fa56d['end']=_0x1507bd['end'];}}['_handleOperation'](_0x20060d,_0xf86f77){if('addRoot'!=_0x20060d['type']&&'detachRoot'!=_0x20060d['type']){if('insert'==_0x20060d['type']){const _0x4510dc=_0x20060d['position']['root']['rootName'];this['_diffRoots']['has'](_0x4510dc)||(this['_diffRoots']['set'](_0x4510dc,F(_0x4510dc,!0x0)),this['_diffRootsAttributes']['set'](_0x4510dc,{}),_0xf86f77&&this['_idsRoots']['set'](_0x4510dc,F(_0x4510dc,!0x0)));}else{if('addRootAttribute'==_0x20060d['type']||'removeRootAttribute'==_0x20060d['type']||'changeRootAttribute'==_0x20060d['type'])return void this['_handleRootAttributeOperation'](_0x20060d);'marker'==_0x20060d['type']&&this['_handleMarkerOperation'](_0x20060d);}if('marker'!==_0x20060d['type']){const _0x1aa57f=this['_cloneOperation'](_0x20060d,this['_diffRoots']);_0x1aa57f['_execute'](),this['_transformMarkers'](_0x1aa57f);}if(_0xf86f77)switch(_0x20060d['type']){case'insert':this['_handleInsertOperation'](_0x20060d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x20060d);break;case'merge':this['_handleMergeOperation'](_0x20060d);break;case'split':this['_handleSplitOperation'](_0x20060d);}}else this['_handleRootOperation'](_0x20060d,_0xf86f77);}['_cloneOperation'](_0x3e9355,_0xeb9566){const _0x180c24=_0x3e9355['clone']();return _0x180c24['_authorId']=_0x3e9355['_authorId'],this['_fixOperation'](_0x180c24,_0xeb9566),_0x180c24;}['_getBaseVids'](_0x397d74){return _0x397d74['map'](_0x475c23=>{const _0x22c0b3=this['_getVidAttributeName'](_0x475c23);return Number(_0x475c23['item']['getAttribute'](_0x22c0b3));});}['_generateTape'](_0x139497,_0x8e71df){if(_0x139497['is']('element','$text'))_0x8e71df['push']({'item':_0x139497,'type':'text'});else{_0x139497['is']('element')&&_0x8e71df['push']({'item':_0x139497,'type':'elementStart'});for(const _0x446e70 of _0x139497['getChildren']())this['_generateTape'](_0x446e70,_0x8e71df);_0x139497['is']('element')&&_0x8e71df['push']({'item':_0x139497,'type':'elementEnd'});}return _0x8e71df;}['_getState'](){const _0x1e0897=new Map(this['_touched']),_0x12ccc2=new Map(_0x1e0897),_0x2864ec=new Map(),_0x4fbd80={'insertions':{},'deletions':{}},_0x23d280={'insertions':{},'deletions':{}},_0x5edbed=new Map(),_0x1388a5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1388a5['delete']('$graveyard');for(const _0x49efa5 of _0x1388a5){const _0x43b357=this['_diffRoots']['get'](_0x49efa5)||F(_0x49efa5,!0x1),_0x5e75d5=this['_baseRoots']['get'](_0x49efa5)||F(_0x49efa5,!0x1);_0x43b357['isAttached']()||_0x5e75d5['isAttached']()?(_0x4fbd80['insertions'][_0x49efa5]=T(_0x43b357),_0x4fbd80['deletions'][_0x49efa5]=T(_0x5e75d5),this['_copyMarkers'](_0x4fbd80['deletions'][_0x49efa5],_0x5e75d5),this['_copyMarkers'](_0x4fbd80['insertions'][_0x49efa5],_0x43b357),_0x23d280['insertions'][_0x49efa5]=this['_generateTape'](this['_idsRoots']['get'](_0x49efa5),[]),_0x23d280['deletions'][_0x49efa5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x49efa5)||F(_0x49efa5,!0x1),[])):_0x1388a5['delete'](_0x49efa5);}for(const _0x875b5d of _0x1388a5){const _0x5f05d9=_0x23d280['insertions'][_0x875b5d];for(const _0x11df6c of _0x5f05d9){const _0x3e64b9=this['_getVidAttributeName'](_0x11df6c),_0x2a9d6b=_0x11df6c['item']['getAttribute'](_0x3e64b9);_0x12ccc2['delete'](_0x2a9d6b),_0x2a9d6b>=this['_startingRevisionId']&&_0x2864ec['set'](_0x2a9d6b,_0x1e0897['get'](_0x2a9d6b));}}for(const _0x2cf653 of _0x1388a5){const _0x5547ae=_0x23d280['insertions'][_0x2cf653],_0x162b40=this['_getBaseVids'](_0x23d280['deletions'][_0x2cf653]);let _0x48778d=0x0;for(const _0x1e2428 of _0x5547ae){const _0x409da6=this['_getVidAttributeName'](_0x1e2428),_0x2dfbe1=_0x1e2428['item']['getAttribute'](_0x409da6);if(!_0x2864ec['has'](_0x2dfbe1)&&!_0x5edbed['has'](_0x2dfbe1)){if(_0x12ccc2['has'](_0x2dfbe1))_0x48778d++;else{if(_0x2dfbe1!=_0x162b40[_0x48778d]){const _0x3cdda7=_0x1e0897['get'](_0x2dfbe1)||_0x1e0897['get'](_0x162b40[_0x48778d]);for(;_0x2dfbe1!=_0x162b40[_0x48778d];)_0x12ccc2['has'](_0x162b40[_0x48778d])||(_0x5edbed['set'](_0x162b40[_0x48778d],_0x3cdda7),_0x1e0897['set'](_0x162b40[_0x48778d],_0x3cdda7)),_0x48778d++;}_0x48778d++;}}}}for(const _0x370538 of _0x1388a5){const _0x3f8c46=_0x23d280['insertions'][_0x370538];for(const _0x53397f of _0x3f8c46){const _0x2cbedb=this['_getVidAttributeName'](_0x53397f),_0x2ed601=_0x53397f['item']['getAttribute'](_0x2cbedb);if(_0x5edbed['has'](_0x2ed601)){const _0x31aefd=_0x5edbed['get'](_0x2ed601);_0x12ccc2['has'](_0x2ed601)||_0x12ccc2['set'](_0x2ed601,{..._0x31aefd}),_0x2864ec['set'](_0x2ed601,{..._0x31aefd});}}}for(const _0x1938ee of _0x12ccc2['keys']())_0x1938ee>=this['_startingRevisionId']&&_0x12ccc2['delete'](_0x1938ee);const _0x53827d=new Map();for(const _0x1c8031 of _0x1388a5){let _0x15adbc=_0x23d280['insertions'][_0x1c8031];for(const _0x10c3a8 of _0x15adbc)if(_0x10c3a8['item']['is']('element','tableCell')){const _0x2b9dfa=this['_getVidAttributeName'](_0x10c3a8),_0x8cc722=_0x10c3a8['item']['getAttribute'](_0x2b9dfa);if(_0x2864ec['has'](_0x8cc722)){const _0x49373a=_0x10c3a8['item']['parent']['parent']['getAttribute']('vid_start'),_0x33a72d=_0x53827d['get'](_0x49373a)||new Set();_0x33a72d['add'](_0x2864ec['get'](_0x8cc722)['userId']),_0x53827d['set'](_0x49373a,_0x33a72d);}}_0x15adbc=_0x23d280['deletions'][_0x1c8031];for(const _0x476c2c of _0x15adbc)if(_0x476c2c['item']['is']('element','tableCell')){const _0x358316=this['_getVidAttributeName'](_0x476c2c),_0x187e8b=_0x476c2c['item']['getAttribute'](_0x358316);if(_0x12ccc2['has'](_0x187e8b)){const _0x5b612f=_0x476c2c['item']['parent']['parent']['getAttribute']('vid_start'),_0xd8f3cb=_0x53827d['get'](_0x5b612f)||new Set();_0xd8f3cb['add'](_0x12ccc2['get'](_0x187e8b)['userId']),_0x53827d['set'](_0x5b612f,_0xd8f3cb);}}for(const _0x2cdbda of _0x53827d['keys']())(_0x2864ec['has'](_0x2cdbda)||_0x12ccc2['has'](_0x2cdbda))&&_0x53827d['delete'](_0x2cdbda);}for(const _0xea8aa9 of _0x1388a5){const _0x29eaa3=_0x23d280['insertions'][_0xea8aa9];let _0x4f849d=null,_0x13be86=null;for(const _0xd0a01e of _0x29eaa3){const _0x20d003=this['_getVidAttributeName'](_0xd0a01e),_0x46114c=_0xd0a01e['item']['getAttribute'](_0x20d003),_0x382949=_0x53827d['get'](_0x46114c);_0x382949&&'elementStart'==_0xd0a01e['type']&&(_0x4f849d=Array['from'](_0x382949)[0x0],_0x13be86=_0xd0a01e['item']['getAttribute']('vid_end')),_0x4f849d&&(_0x12ccc2['set'](_0x46114c,{'userId':_0x4f849d}),_0x2864ec['set'](_0x46114c,{'userId':_0x4f849d})),_0x46114c==_0x13be86&&(_0x4f849d=null,_0x13be86=null);}}const _0x58d79e={},_0x296d77=new Set();for(const _0x5b397f of _0x1388a5){const _0x405b56=_0x4fbd80['deletions'][_0x5b397f],_0xb1ccf9=_0x4fbd80['insertions'][_0x5b397f];for(const {userId:_0x72e24a}of this['_touchedMarkers']['values']())null!==_0x72e24a&&_0x296d77['add'](_0x72e24a);for(const {userId:_0x45d304}of this['_touchedRoots']['values']())null!==_0x45d304&&_0x296d77['add'](_0x45d304);this['_markChanges'](_0xb1ccf9,_0x23d280['insertions'][_0x5b397f],_0x2864ec,'insertion',_0x296d77),this['_markChanges'](_0x405b56,_0x23d280['deletions'][_0x5b397f],_0x12ccc2,'deletion',_0x296d77),_0x58d79e[_0x5b397f]={'insertions':this['_prepareViewToSave'](_0xb1ccf9),'deletions':this['_prepareViewToSave'](_0x405b56),'attachChange':this['_touchedRoots']['get'](_0x5b397f)||null,'attributesBefore':_0x24b58c(this['_baseRootsAttributes']['get'](_0x5b397f))||{},'attributesAfter':_0x24b58c(this['_diffRootsAttributes']['get'](_0x5b397f))};}return{'diffData':_0x58d79e,'authorsIds':Array['from'](_0x296d77)};}['_processRootBeforeSave'](_0x4225dd){for(const [,_0x45618d]of _0x4225dd['markers']){const _0x259826=_0x45618d['start']['getAncestors']()['filter'](_0x409b64=>'tableCell'==_0x409b64['name']);for(const _0x5387f9 of _0x259826)0x1==_0x5387f9['childCount']&&_0x5387f9['getChild'](0x0)['is']('element','paragraph')&&_0x5387f9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x17d421){this['_processRootBeforeSave'](_0x17d421);const _0x16ac5f=this['editor']['data']['toView'](_0x17d421,{}),_0x59320f=Array['from'](_0x16ac5f['getChildren']())['map'](_0x22de35=>this['_getViewJson'](_0x22de35));return JSON['stringify'](_0x59320f);}['_getViewJson'](_0x4fda62){if(_0x4fda62['is']('$text'))return _0x4fda62['data'];{const _0x5ec5a6=_0x4fda62;return{'type':Object['keys'](E)['find'](_0x45045a=>_0x4fda62 instanceof E[_0x45045a]),'name':_0x5ec5a6['name'],'attributes':Array['from'](_0x5ec5a6['getAttributes']()),'children':Array['from'](_0x5ec5a6['getChildren']())['map'](_0x574ef9=>this['_getViewJson'](_0x574ef9))};}}['_markChanges'](_0x4b64df,_0x2b4986,_0x3417fe,_0x3d3be7,_0x2f1a59){let _0x29c041=null,_0x2977a4=null,_0x22a384=0x0;const _0x150d06=this['editor']['model'];for(let _0x43b9b6=0x0;_0x43b9b6<_0x2b4986['length'];_0x43b9b6++){const _0x45114a=this['_getVidAttributeName'](_0x2b4986[_0x43b9b6]),_0x25451d=_0x2b4986[_0x43b9b6]['item']['getAttribute'](_0x45114a),_0x484111=_0x3417fe['get'](_0x25451d),_0x22604d=_0x43b9b6==_0x2b4986['length']-0x1;(!_0x29c041&&_0x484111&&(_0x29c041=_0x484111,_0x2977a4=_0x2b4986[_0x43b9b6]),_0x29c041&&(!_0x484111||_0x484111['userId']!=_0x29c041['userId']))&&(_0x5f3722(_0x484111,B(_0x2977a4,_0x4b64df,_0x150d06),B(_0x2b4986[_0x43b9b6],_0x4b64df,_0x150d06)),_0x29c041=_0x484111||null,_0x2977a4=_0x484111?_0x2b4986[_0x43b9b6]:null),_0x29c041&&_0x22604d&&_0x5f3722(_0x484111,B(_0x2977a4,_0x4b64df,_0x150d06),J(_0x2b4986[_0x43b9b6],_0x4b64df,_0x150d06));}function _0x5f3722(_0x5e3beb,_0xfa4898,_0x251b14){const _0x45aefe=_0x29c041['userId'],_0x546eb5='revision:'+_0x3d3be7+':'+_0x45aefe+':'+_0x22a384++,_0xe5816a=_0x150d06['createRange'](_0xfa4898,_0x251b14);_0x4b64df['markers']['set'](_0x546eb5,_0xe5816a),null!==_0x45aefe&&_0x2f1a59['add'](_0x45aefe);}}['_getVidAttributeName'](_0x4e02ca){switch(_0x4e02ca['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x7799d9,_0x3d6758){_0x7799d9['baseVersion']=null;for(const _0x5a05a1 in _0x7799d9){const _0x4c4e66=_0x7799d9[_0x5a05a1];if(_0x4c4e66 instanceof vt){const _0x5ecd1b=_0x3d6758['get'](_0x4c4e66['root']['rootName']);_0x7799d9[_0x5a05a1]=this['_fixPosition'](_0x4c4e66,_0x5ecd1b);}if(_0x4c4e66 instanceof ft){const _0x10532d=_0x3d6758['get'](_0x4c4e66['root']['rootName']);_0x7799d9[_0x5a05a1]=this['_fixRange'](_0x4c4e66,_0x10532d);}'root'===_0x5a05a1&&(_0x7799d9['root']=_0x3d6758['get'](_0x7799d9['root']['rootName']));}}['_fixRange'](_0x1dcf49,_0x435465){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1dcf49['start'],_0x435465),this['_fixPosition'](_0x1dcf49['end'],_0x435465));}['_fixPosition'](_0xe13511,_0x1c2d3c){return this['editor']['model']['createPositionFromPath'](_0x1c2d3c,_0xe13511['path'],_0xe13511['stickiness']);}['_handleInsertOperation'](_0x53e939){const _0x1923e9=this['_idsRoots']['get'](_0x53e939['position']['root']['rootName']),_0x3436f9=this['_fixPosition'](_0x53e939['position'],_0x1923e9),_0x59dde6=null===_0x53e939['_authorId']?null:_0x53e939['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x496d7e=_0x3436f9['parent'],_0x1d4bbe=this['_revisionId'],_0x391ad3=[];for(const _0x36223e of _0x53e939['nodes'])if(_0x36223e['is']('element'))_0x391ad3['push'](this['_makeIdsRoot'](_0x36223e));else{for(let _0x18b96e=0x0;_0x18b96e<_0x36223e['offsetSize'];_0x18b96e++)_0x391ad3['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4b64c7=this['_revisionId'];for(let _0x3af842=_0x1d4bbe;_0x3af842<_0x4b64c7;_0x3af842++)this['_touched']['set'](_0x3af842,{'userId':_0x59dde6});_0x496d7e['_insertChild'](_0x3436f9['offset'],_0x391ad3);}['_handleMoveOperation'](_0x3ffda6){(_0x3ffda6=this['_cloneOperation'](_0x3ffda6,this['_idsRoots']))['_execute']();const _0x3f0a6f=null===_0x3ffda6['_authorId']?null:_0x3ffda6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c9a7e=_0x3ffda6['getMovedRangeStart'](),_0x564431=_0x4c9a7e['parent'],_0x214ac1=_0x4c9a7e['offset'];!function _0x48d493(_0x593223,_0x4d73b9,_0x96676e,_0x476445){for(let _0x1aa7b1=_0x96676e;_0x1aa7b1<_0x476445;_0x1aa7b1++){const _0x739fc7=_0x4d73b9['getChild'](_0x1aa7b1);_0x739fc7['is']('element','$text')?_0x593223['set'](_0x739fc7['getAttribute']('vid'),{'userId':_0x3f0a6f}):(_0x593223['set'](_0x739fc7['getAttribute']('vid_start'),{'userId':_0x3f0a6f}),_0x48d493(_0x593223,_0x739fc7,0x0,_0x739fc7['childCount']),_0x593223['set'](_0x739fc7['getAttribute']('vid_end'),{'userId':_0x3f0a6f}));}}(this['_touched'],_0x564431,_0x214ac1,_0x214ac1+_0x3ffda6['howMany']);}['_handleMergeOperation'](_0x38cd42){const _0x55b01c=null===(_0x38cd42=this['_cloneOperation'](_0x38cd42,this['_idsRoots']))['_authorId']?null:_0x38cd42['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a8b5e=_0x38cd42['targetPosition']['parent'],_0x325e14=_0x38cd42['sourcePosition']['parent'],_0x401214=_0x5a8b5e['getAttribute']('vid_end'),_0x2d2a80=_0x325e14['getAttribute']('vid_start');_0x5a8b5e['_setAttribute']('vid_end',_0x325e14['getAttribute']('vid_end')),_0x325e14['_setAttribute']('vid_end',_0x401214),this['_touched']['set'](_0x2d2a80,{'userId':_0x55b01c}),this['_touched']['set'](_0x401214,{'userId':_0x55b01c}),_0x38cd42['_execute']();}['_handleSplitOperation'](_0x160fe8){const _0x37ce6a=null===(_0x160fe8=this['_cloneOperation'](_0x160fe8,this['_idsRoots']))['_authorId']?null:_0x160fe8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4baf96=_0x160fe8['graveyardPosition'],_0x5db90a=_0x160fe8['splitPosition']['parent'];_0x160fe8['_execute']();const _0x3bc55d=_0x5db90a['getAttribute']('vid_end'),_0x49afe4=_0x160fe8['insertionPosition']['nodeAfter'];if(_0x4baf96){const _0x1283a3=_0x49afe4['getAttribute']('vid_end'),_0x18e7b7=_0x5db90a['getAttribute']('vid_end');_0x5db90a['_setAttribute']('vid_end',_0x1283a3),_0x49afe4['_setAttribute']('vid_end',_0x18e7b7),this['_touched']['set'](_0x5db90a['getAttribute']('vid_end'),{'userId':_0x37ce6a}),this['_touched']['set'](_0x49afe4['getAttribute']('vid_start'),{'userId':_0x37ce6a});}else{const _0x1b10f3=this['_revisionId']++,_0x48edfc=this['_revisionId']++;_0x5db90a['_setAttribute']('vid_end',_0x1b10f3),_0x49afe4['_setAttribute']('vid_start',_0x48edfc),_0x49afe4['_setAttribute']('vid_end',_0x3bc55d),this['_touched']['set'](_0x1b10f3,{'userId':_0x37ce6a}),this['_touched']['set'](_0x48edfc,{'userId':_0x37ce6a});}}['_handleMarkerOperation'](_0x1bf915){if(!_0x1bf915['affectsData'])return;const _0x3eaa08=(_0x1bf915=this['_cloneOperation'](_0x1bf915,this['_diffRoots']))['oldRange']?_0x1bf915['oldRange']['root']:null,_0x4d2a62=_0x1bf915['newRange']?_0x1bf915['newRange']['root']:null;_0x3eaa08&&this['_markers']['delete'](_0x1bf915['name']),_0x4d2a62&&this['_markers']['set'](_0x1bf915['name'],_0x1bf915['newRange']['clone']());const _0x576591=null===_0x1bf915['_authorId']?null:_0x1bf915['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x340904=_0x1bf915['name'];if(!this['_touchedMarkers']['has'](_0x340904))return void this['_touchedMarkers']['set'](_0x340904,{'range':_0x1bf915['oldRange'],'userId':_0x576591});const _0x2ec2bf=this['_touchedMarkers']['get'](_0x340904),_0xc9c16c=_0x2ec2bf['range'],_0x5e8381=_0x1bf915['newRange'];null==_0xc9c16c&&null==_0x5e8381||_0xc9c16c&&_0x5e8381&&_0xc9c16c['isEqual'](_0x5e8381)?this['_touchedMarkers']['delete'](_0x1bf915['name']):_0x2ec2bf['userId']=_0x576591;}['_handleRootOperation'](_0x327462,_0x10cd09){this['_diffRoots']['has'](_0x327462['rootName'])?this['_diffRoots']['get'](_0x327462['rootName'])['_isAttached']=_0x327462['isAdd']:(this['_diffRoots']['set'](_0x327462['rootName'],F(_0x327462['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x327462['rootName'],{}),_0x10cd09&&this['_idsRoots']['set'](_0x327462['rootName'],F(_0x327462['rootName'],!0x0)));const _0x5dc4d2=null===_0x327462['_authorId']?null:_0x327462['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c370e=this['_touchedRoots']['get'](_0x327462['rootName']);_0x5c370e&&_0x5c370e['userId']===_0x5dc4d2?this['_touchedRoots']['delete'](_0x327462['rootName']):this['_touchedRoots']['set'](_0x327462['rootName'],{'userId':_0x5dc4d2,'isAttached':_0x327462['isAdd']});}['_handleRootAttributeOperation'](_0x19a549){const _0x1698a2=this['_diffRootsAttributes']['get'](_0x19a549['root']['rootName']);null===_0x19a549['newValue']?delete _0x1698a2[_0x19a549['key']]:_0x1698a2[_0x19a549['key']]=_0x19a549['newValue'];}}function T(_0x22c9fb){const _0x524b66=F(_0x22c9fb['rootName'],_0x22c9fb['isAttached']());for(const _0x1d3d36 of _0x22c9fb['getChildren']()){const _0x1710b6=_0x1d3d36['_clone'](!0x0);_0x524b66['_appendChild'](_0x1710b6);}return _0x524b66;}function F(_0x59d1a2,_0x226059=!0x0){const _0x28268a=new gt();return _0x28268a['rootName']=_0x59d1a2,_0x28268a['_isAttached']=_0x226059,_0x28268a['isAttached']=()=>_0x28268a['_isAttached'],_0x28268a;}function B(_0x56cdd1,_0x218a89,_0x698a08){const _0x307b30='elementEnd'==_0x56cdd1['type']?_0x698a08['createPositionAt'](_0x56cdd1['item'],'end'):_0x698a08['createPositionBefore'](_0x56cdd1['item']);return _0x698a08['createPositionFromPath'](_0x218a89,_0x307b30['path'],_0x307b30['stickiness']);}function J(_0x2eabcf,_0x5bb3d9,_0x2ab9bc){const _0x34ce23='elementStart'==_0x2eabcf['type']?_0x2ab9bc['createPositionAt'](_0x2eabcf['item'],0x0):_0x2ab9bc['createPositionAfter'](_0x2eabcf['item']);return _0x2ab9bc['createPositionFromPath'](_0x5bb3d9,_0x34ce23['path'],_0x34ce23['stickiness']);}class os extends _0x423d80{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x56c531,_0x15e280){super(_0x56c531),this['focusTracker']=new _0x1fbac0(),this['keystrokes']=new _0x4a481f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x15e280),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'](),_0x189d32({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3e561d=_0x3e75d1=>_0x3e75d1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3e561d),this['keystrokes']['set']('arrowleft',_0x3e561d),this['keystrokes']['set']('arrowup',_0x3e561d),this['keystrokes']['set']('arrowdown',_0x3e561d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x23702f){this['revisionNameInputView']['fieldView']['element']['value']=_0x23702f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x405d50){const _0x410544=new at(this['locale'],ti),_0x583299=_0x410544['fieldView'];_0x583299['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1591c5=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x405d50&&(_0x1591c5+='\x20('+m(this['locale'],'optional')+')'),(_0x410544['label']=_0x1591c5,_0x583299['on']('input',()=>{this['revisionNameInputValue']=_0x583299['element']['value']['trim']();}),_0x410544);}}class f extends _0x41e048{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x296c81=this['editor'],_0x465ed7=_0x296c81['plugins']['get']('RevisionTracker');_0x296c81['ui']['componentFactory']['add']('revisionHistory',_0xfc7a73=>{const _0x1048db=_0x4b0e6a(_0xfc7a73),_0x592af1=_0x1048db['panelView']['children'],_0xeb16e2=new _0x1371fb(_0xfc7a73),_0x5c7acf=new te(_0xfc7a73),_0x18a077=new _0x4f8d34(_0xfc7a73),_0x4009a4=new te(_0xfc7a73),_0x1e31bb=new _0x4f8d34(_0xfc7a73);return _0x1048db['bind']('isEnabled')['to'](_0x465ed7,'isReady',_0x465ed7,'isEnabled',_0x296c81,'isReadOnly',(_0x5dcfca,_0x448de4,_0x3df604)=>_0x5dcfca&&_0x448de4&&!_0x3df604),_0x1048db['buttonView']['set']({'icon':_0x24e1d6,'label':m(_0xfc7a73,'Revision\x20history'),'tooltip':!0x0}),_0x18a077['set']({'label':m(_0xfc7a73,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x18a077['bind']('isEnabled')['to'](_0x465ed7,'isReady',_0x465ed7,'isEnabled',_0x296c81,'isReadOnly',(_0xc2a230,_0x143ac0,_0x2ef3d7)=>_0xc2a230&&_0x143ac0&&!_0x2ef3d7),_0x18a077['on']('execute',()=>this['_showDialog']()),_0x1e31bb['set']({'label':m(_0xfc7a73,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1e31bb['bind']('isEnabled')['to'](_0x465ed7,'isReady',_0x296c81,'isReadOnly',(_0xab2c83,_0x48e4bd)=>_0xab2c83&&!_0x48e4bd),_0x1e31bb['on']('execute',()=>{_0x296c81['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1048db['isOpen']=!0x1,_0x296c81['editing']['view']['focus']();}),_0x5c7acf['children']['add'](_0x18a077),_0x4009a4['children']['add'](_0x1e31bb),_0xeb16e2['role']='menu',_0xeb16e2['items']['addMany']([_0x5c7acf,_0x4009a4]),_0x592af1['add'](_0xeb16e2),_0x1048db;}),_0x296c81['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xc17672=this['editor'],_0x16f2cb=_0xc17672['locale'],_0xd2b38a=new _0x1c964b(_0x16f2cb),_0x5196a6=new _0x417ef7(_0x16f2cb);_0xd2b38a['buttonView']['set']({'icon':_0x24e1d6,'label':m(_0x16f2cb,'Revision\x20history')});const _0xa4e320=new _0x189cf9(_0x16f2cb,_0xd2b38a),_0x51b420=new _0x35e62e(_0x16f2cb);_0x51b420['set']({'label':m(_0x16f2cb,'Save\x20current\x20revision')}),_0x51b420['delegate']('execute')['to'](_0xd2b38a),_0x51b420['on']('execute',()=>{this['_showDialog']();}),_0xa4e320['children']['add'](_0x51b420),_0x5196a6['items']['add'](_0xa4e320);const _0x25e170=new _0x189cf9(_0x16f2cb,_0xd2b38a),_0x5df4c9=new _0x35e62e(_0x16f2cb);return _0x5df4c9['set']({'label':m(_0x16f2cb,'Open\x20revision\x20history')}),_0x5df4c9['delegate']('execute')['to'](_0xd2b38a),_0x5df4c9['on']('execute',()=>{_0xc17672['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x25e170['children']['add'](_0x5df4c9),_0x5196a6['items']['add'](_0x25e170),_0xd2b38a['panelView']['children']['add'](_0x5196a6),_0xd2b38a;}['_showDialog'](){const _0x42cb4f=this['editor'],_0xc24800=_0x42cb4f['locale'],_0x556ae9=_0x42cb4f['plugins']['get']('Dialog'),_0x1698f0=_0x42cb4f['plugins']['get']('RevisionTracker');function _0x3e4817(_0x2139d5){_0x42cb4f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2139d5['revisionName']?_0x2139d5['revisionNameInputView']['errorText']=m(_0xc24800,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x42cb4f['plugins']['get'](u)['saveRevision']({'name':_0x2139d5['revisionName']}),_0x556ae9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3e4817(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x556ae9['show']({'id':'revisionSave','title':m(_0xc24800,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x42cb4f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x556ae9['hide']()},{'label':m(_0x42cb4f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1ce404){_0x1ce404['bind']('isEnabled')['to'](_0x1698f0,'isReady',_0x1698f0,'isEnabled',_0x42cb4f,'isReadOnly',(_0x2eb489,_0x51ac45,_0x3c49d4)=>_0x2eb489&&_0x51ac45&&!_0x3c49d4);},'onExecute':()=>_0x3e4817(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x27ff52=this['editor'],_0x2cba12=_0x27ff52['locale'];this['_saveRevisionFormView']=new os(_0x2cba12,_0x27ff52['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x423d80{['changeId'];['_model'];constructor(_0x36596f,_0xd3b390){super(_0x36596f),this['_model']=_0xd3b390,this['changeId']=_0xd3b390['id'];const _0x402342=this['bindTemplate'],_0x136b8e=m(_0x36596f,_0xd3b390['data']['isSuggestion']?'Suggested\x20by':'add'==_0xd3b390['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xd3b390['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x402342['to']('type',_0x4c7ab4=>'ck-revision-change__'+_0x4c7ab4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x136b8e}]},{'text':'\x20'+_0xd3b390['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x4b2841(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x501ed9){super(),this['id']=_0x501ed9['id']||_0x663c6b(),this['author']=_0x501ed9['author'],this['type']=_0x501ed9['type'],this['data']=_0x501ed9['data']||{},this['rootName']=_0x501ed9['rootName'],this['set']('createdAt',_0x501ed9['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(_0x5aedbc,_0x4de110){this['newRevisionId']=_0x5aedbc,this['oldRevisionId']=_0x4de110,this['changes']=new _0x2c3527();}['_setChanges'](_0x410f92){for(const _0x567246 of _0x410f92)this['changes']['add'](_0x567246);}}const Y={'c':_0x11aa29,'a':_0x1a2d2b,'e':_0x2b610f,'r':_0x3274f3,'u':_0x1409e8};class d extends _0x41e048{['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[_0x1b8d32,_0x1b3f42,j];}constructor(_0x13b5ea){super(_0x13b5ea),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',(_0x329691,_0x1c18b0,_0x4acde8)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x772ee7=>{for(const _0x39442e of this['editor']['editing']['view']['document']['roots'])_0x4acde8?_0x772ee7['removeClass']('ck-editor__editable__overlay',_0x39442e):_0x772ee7['addClass']('ck-editor__editable__overlay',_0x39442e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x16277b=>null!==_0x16277b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x7b1994,_0x1d240d,_0x49b1b9)=>_0x7b1994&&_0x49b1b9?_0x1d240d['changes']['getIndex'](_0x49b1b9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1f7d9e,_0x31bfab)=>_0x1f7d9e?_0x31bfab['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1b3f42);}['init'](){const _0xdd1d50=this['editor'],_0x4c6066=new yt(_0xdd1d50,{'direction':'backward'}),_0x15ccc3=new yt(_0xdd1d50,{'direction':'forward'});(_0xdd1d50['commands']['add']('showPreviousChange',_0x4c6066),_0xdd1d50['commands']['add']('showNextChange',_0x15ccc3),_0xdd1d50['commands']['add']('restoreRevision',new _t(_0xdd1d50)),this['on']('change:numberOfChanges',()=>{_0x4c6066['refresh'](),_0x15ccc3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xdd1d50['enableReadOnlyMode']('revision-viewer'),_0xdd1d50['plugins']['has']('WidgetToolbarRepository'))&&_0xdd1d50['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x56cce3){await this['loadRevisionData'](_0x56cce3);const _0x2fdd6c={};for(const _0x1d0f1a in _0x56cce3['diffData']){if(_0x56cce3['diffData'][_0x1d0f1a]['attachChange']&&!_0x56cce3['diffData'][_0x1d0f1a]['attachChange']['isAttached'])continue;const _0x3292c5=this['_removeRevisionMarkers'](JSON['parse'](_0x56cce3['diffData'][_0x1d0f1a]['insertions'])),_0x260198=this['editor']['editing']['view']['document'],_0x3e36dd=new _0x1c7ac7(_0x260198,_0x3292c5['map'](_0x47f032=>this['_getViewObj'](_0x47f032)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2fdd6c[_0x1d0f1a]=this['editor']['data']['processor']['toData'](_0x3e36dd),this['editor']['data']['processor']['useFillerType']('default');}return _0x2fdd6c;}async['getRevisionRootsAttributes'](_0x458da4){await this['loadRevisionData'](_0x458da4);const _0x3c5a15={};for(const _0x4d111c in _0x458da4['diffData'])_0x458da4['diffData'][_0x4d111c]['attachChange']&&!_0x458da4['diffData'][_0x4d111c]['attachChange']['isAttached']||(_0x3c5a15[_0x4d111c]=_0x458da4['diffData'][_0x4d111c]['attributesAfter']||{});return _0x3c5a15;}['_removeRevisionMarkers'](_0x1dfeab){return(_0x1dfeab=_0x1dfeab['filter'](_0x352a0b=>!_0x352a0b['name']||'revision-start'!==_0x352a0b['name']&&'revision-end'!==_0x352a0b['name']))['forEach'](_0x4b9dec=>{'string'!=typeof _0x4b9dec&&(_0x4b9dec['children']=this['_removeRevisionMarkers'](_0x4b9dec['children']),_0x4b9dec['attributes']=_0x4b9dec['attributes']['filter'](_0x50c5d4=>!_0x50c5d4[0x0]['startsWith']('data-revision-')));}),_0x1dfeab;}async['compare'](_0x41fa2f,_0x3b7a90,_0x16b895=!0x1){if(!this['isEnabled'])return;const _0xe21807=this['diff'],_0x4dd010=this['repository'],_0x1aa649='string'==typeof _0x41fa2f?_0x4dd010['getRevision'](_0x41fa2f):_0x41fa2f,_0x3b1289='string'==typeof _0x3b7a90?_0x4dd010['getRevision'](_0x3b7a90):_0x3b7a90,_0x5046f5=_0x1aa649['id'],_0x3e5109=_0x3b1289?_0x3b1289['id']:null;if(!_0x16b895&&this['diff']&&this['diff']['newRevisionId']===_0x5046f5&&this['diff']['oldRevisionId']===_0x3e5109)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5046f5,_0x3e5109);const _0x1b980f=this['_getRevisionsRange'](_0x1aa649,_0x3b1289,!0x0)['map'](_0xeb0417=>this['loadRevisionData'](_0xeb0417));return _0x1b980f['push'](new Promise(_0x4cc93a=>{setTimeout(_0x4cc93a,0x14);})),Promise['all'](_0x1b980f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4f3264=this['_getDiff'](_0x5046f5,_0x3e5109);for(const _0x5d5b08 of _0x4f3264['changes'])this['_changeIdToChange']['set'](_0x5d5b08['id'],_0x5d5b08);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5734db=>{for(const _0x2ed458 of this['editor']['model']['document']['getRootNames']())_0x5734db['detachRoot'](_0x2ed458);for(const _0x2afc3d of Object['keys'](_0x4f3264['model'])){const _0x26ba98=_0x5734db['addRoot'](_0x2afc3d);for(const _0x20c42d of Object['keys'](_0x4f3264['attributes'][_0x2afc3d]))_0x5734db['setAttribute'](_0x20c42d,_0x4f3264['attributes'][_0x2afc3d][_0x20c42d],_0x26ba98);_0x5734db['insert'](_0x4f3264['model'][_0x2afc3d],_0x26ba98,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4f3264['changes'])),this['isReady']=!0x0;})['catch'](_0x1a762e=>{console['error'](_0x1a762e),this['_cleanUp'](),_0xe21807&&(this['diff']=_0xe21807),this['isReady']=!0x0;});}['addRevisionData'](_0x4dd61b,_0x1f01a4){const _0x2801b6=this['repository']['createRevision'](_0x4dd61b);return _0x2801b6['on']('_update',(_0x56b985,_0x860c05,_0x48d0dd)=>_0x1f01a4(_0x860c05,_0x48d0dd,_0x2801b6)),this['repository']['addRevision'](_0x2801b6),_0x2801b6;}['loadRevisionData'](_0xa07c3b){if(!_0xa07c3b||_0xa07c3b['diffData'])return Promise['resolve']();{const _0x77df76=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x77df76,'revisionId':_0xa07c3b['id']})['then'](_0x2b9a7f=>{_0xa07c3b['_update']({'diffData':_0x2b9a7f['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},_0x2951ac=>{for(const _0x34a62f of this['editor']['model']['document']['getRootNames']())_0x2951ac['detachRoot'](_0x34a62f);});}['_sortAndFilterDiffChanges'](_0x284b2e){const _0x16ee77=[],_0x5403bd=new Map();for(const _0x15a208 of this['editor']['model']['document']['getRootNames']()){const _0x3c1278=this['editor']['editing']['view']['getDomRoot'](_0x15a208);if(!_0x3c1278)continue;const _0x231165=_0x3c1278['getClientRects']()['item'](0x0);_0x231165&&(_0x16ee77['push'](_0x15a208),_0x5403bd['set'](_0x15a208,_0x231165));}return _0x16ee77['sort']((_0x2e1142,_0x225c84)=>{const _0x21fda0=_0x5403bd['get'](_0x2e1142),_0x4b50c1=_0x5403bd['get'](_0x225c84);return _0x21fda0['y']-_0x4b50c1['y']||_0x21fda0['x']-_0x4b50c1['x'];}),(_0x284b2e=_0x284b2e['filter'](_0x218095=>_0x16ee77['includes'](_0x218095['rootName'])))['sort']((_0x4aedc5,_0x2cb74c)=>_0x16ee77['indexOf'](_0x4aedc5['rootName'])-_0x16ee77['indexOf'](_0x2cb74c['rootName'])),_0x284b2e;}['_makeTape'](_0x5ac567){const _0x4e4cc2=Array['from'](_0x5ac567['markers'])['filter'](([_0x4460a6,_0x59a26e])=>_0x4460a6['startsWith']('revision:')&&!_0x59a26e['isCollapsed']),_0x37dd74=Array['from'](this['editor']['model']['createRangeIn'](_0x5ac567)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4e4cc2['length'])for(const _0xbe844a of _0x37dd74){const [_0x50cb99,_0x2c9bea]=_0x4e4cc2[0x0],[,_0x1a8fc6,_0xbfc237]=_0x50cb99['split'](':');if(_0x2c9bea['end']['isEqual'](_0xbe844a['nextPosition'])&&_0x4e4cc2['shift'](),(_0xbe844a['previousPosition']['isEqual'](_0x2c9bea['start'])||_0xbe844a['previousPosition']['isAfter'](_0x2c9bea['start']))&&('insertion'==_0x1a8fc6?_0xbe844a['isAdded']={'userId':_0xbfc237}:'deletion'==_0x1a8fc6&&(_0xbe844a['isRemoved']={'userId':_0xbfc237})),0x0==_0x4e4cc2['length'])break;}return _0x37dd74;}['_refreshStartEndIndex'](_0xc4ca79){const _0xbd3b9f=new Map();for(let _0x229b1c=0x0;_0x229b1c<_0xc4ca79['length'];_0x229b1c++)'text'===_0xc4ca79[_0x229b1c]['type']?(_0xc4ca79[_0x229b1c]['item']['startIndex']=_0x229b1c,_0xc4ca79[_0x229b1c]['item']['endIndex']=_0x229b1c):('elementStart'===_0xc4ca79[_0x229b1c]['type']?_0xc4ca79[_0x229b1c]['item']['startIndex']=_0x229b1c:'elementEnd'===_0xc4ca79[_0x229b1c]['type']&&(_0xc4ca79[_0x229b1c]['item']['endIndex']=_0x229b1c),_0xbd3b9f['set'](_0xc4ca79[_0x229b1c]['id'],_0x229b1c));for(const _0x388db1 of _0xbd3b9f['values']())'elementStart'===_0xc4ca79[_0x388db1]['type']?_0xc4ca79[_0x388db1]['item']['endIndex']=_0xbd3b9f['get'](_0xc4ca79[_0x388db1]['pairId']):'elementEnd'===_0xc4ca79[_0x388db1]['type']&&(_0xc4ca79[_0x388db1]['item']['startIndex']=_0xbd3b9f['get'](_0xc4ca79[_0x388db1]['pairId']));}['_processTape'](_0x422575){for(let _0x1c5f97=0x0;_0x1c5f97<_0x422575['length'];_0x1c5f97++){if('elementStart'===_0x422575[_0x1c5f97]['type'])_0x422575[_0x1c5f97]['item']['startIndex']=_0x1c5f97;else{if('elementEnd'===_0x422575[_0x1c5f97]['type']){_0x422575[_0x1c5f97]['item']['endIndex']=_0x1c5f97;const _0x7d46b7=_0x422575[_0x1c5f97]['item']['startIndex'];_0x422575[_0x7d46b7]['pairId']=_0x422575[_0x1c5f97]['id'],_0x422575[_0x1c5f97]['pairId']=_0x422575[_0x7d46b7]['id'];}else _0x422575[_0x1c5f97]['item']['startIndex']=_0x1c5f97,_0x422575[_0x1c5f97]['item']['endIndex']=_0x1c5f97,_0x422575[_0x1c5f97]['pairId']=null;}_0x422575[_0x1c5f97]['markersStart']||(_0x422575[_0x1c5f97]['markersStart']=[],_0x422575[_0x1c5f97]['markersEnd']=[]);}}['_markInsertions'](_0x18f8ea,_0x55cd6e){const _0x2b2005=_0x18f8ea['filter'](_0x3513c0=>!_0x3513c0['isAdded']);for(let _0x26a78e=0x0;_0x26a78e<_0x55cd6e['length'];_0x26a78e++)_0x55cd6e[_0x26a78e]['isAdded']&&(_0x2b2005[_0x26a78e]['isAdded']=_0x55cd6e[_0x26a78e]['isAdded']);}['_makeModelFromViewString'](_0x4e50b9){const _0x58f34e=JSON['parse'](_0x4e50b9),_0x5845cd=this['editor']['editing']['view']['document'],_0x287d88=new _0x1c7ac7(_0x5845cd,_0x58f34e['map'](_0x351490=>this['_getViewObj'](_0x351490)));return this['editor']['data']['toModel'](_0x287d88);}['_getViewObj'](_0x4ff84c){const _0x458bb5=this['editor']['editing']['view']['document'];if('string'==typeof _0x4ff84c)return new _0x4a50ef(_0x458bb5,_0x4ff84c);{const _0x206252=_0x4ff84c['children']['map'](_0x4ea2f6=>this['_getViewObj'](_0x4ea2f6));return new(Y[_0x4ff84c['type']]||_0x4fb45b)(_0x458bb5,_0x4ff84c['name'],_0x4ff84c['attributes'],_0x206252);}}['_getDiff'](_0x20926d,_0x1d4b11=null){const _0x332279=this['repository']['getRevision'](_0x20926d),_0xc35953=_0x1d4b11?this['repository']['getRevision'](_0x1d4b11):null,_0x56977b=this['_getRevisionsRange'](_0x332279,_0xc35953),_0x2fb16a=_0x56977b[_0x56977b['length']-0x1],_0x1b4955=new Map(),_0x38c3df={'model':{},'attributes':{},'changes':[]},_0x18800e=new Set(),_0x4389e8=new Map();for(let _0x1c06b9=_0x56977b['length']-0x1;_0x1c06b9>=0x0;_0x1c06b9--){const _0x2b1822=_0x56977b[_0x1c06b9];for(const _0x946ddf of Object['keys'](_0x2b1822['diffData']))if(_0x2b1822['diffData'][_0x946ddf]['attachChange']){const _0x17cd1c=_0x2b1822['diffData'][_0x946ddf]['attachChange'];_0x17cd1c['isAttached']?(_0x18800e['add'](_0x946ddf),_0x4389e8['has'](_0x946ddf)&&_0x4389e8['get'](_0x946ddf)['userId']==_0x17cd1c['userId']?_0x4389e8['delete'](_0x946ddf):_0x4389e8['set'](_0x946ddf,_0x17cd1c)):_0x4389e8['has'](_0x946ddf)?(_0x18800e['delete'](_0x946ddf),_0x4389e8['delete'](_0x946ddf)):(_0x18800e['add'](_0x946ddf),_0x4389e8['set'](_0x946ddf,_0x17cd1c));}else _0x18800e['add'](_0x946ddf);}for(const _0x35f2f3 of _0x18800e){const _0x18a7df=_0x4389e8['has'](_0x35f2f3)&&!_0x4389e8['get'](_0x35f2f3)['isAttached'];let _0x1381f7=_0x18a7df?_0x56977b['length']-0x1:0x0;const _0x117f56=_0x18a7df?-0x1:0x1;for(;_0x56977b[_0x1381f7];){const _0x151e79=_0x56977b[_0x1381f7];if(_0x151e79['diffData'][_0x35f2f3]){const _0x2889f6=_0x18a7df?_0x151e79['diffData'][_0x35f2f3]['attributesBefore']:_0x151e79['diffData'][_0x35f2f3]['attributesAfter'];_0x38c3df['attributes'][_0x35f2f3]=_0x2889f6?_0x24b58c(_0x2889f6):{};break;}_0x1381f7+=_0x117f56;}}for(const _0x2c8bc9 of _0x56977b){_0x2c8bc9['model']={};for(const _0xc7daa0 of _0x2c8bc9['authors'])_0x1b4955['set'](_0xc7daa0['id'],_0xc7daa0);for(const _0x392b7d of _0x18800e){const _0x1661c6=_0x2c8bc9['diffData'][_0x392b7d]?_0x2c8bc9['diffData'][_0x392b7d]['insertions']:'[]',_0x27fe94=_0x2c8bc9['diffData'][_0x392b7d]?_0x2c8bc9['diffData'][_0x392b7d]['deletions']:'[]';_0x2c8bc9['model'][_0x392b7d]={'insertions':this['_makeModelFromViewString'](_0x1661c6),'deletions':this['_makeModelFromViewString'](_0x27fe94)};}}for(const _0x32ed6b of _0x18800e){let _0x502509=null,_0x5123c7=0x0;const _0xbb63c9=new Map(Array['from'](_0x332279['model'][_0x32ed6b]['insertions']['markers'])['filter'](([_0xca7bd7])=>!_0xca7bd7['startsWith']('revision:')));let _0x31aa6d=0x0;for(const _0x30e87c of _0x56977b){const _0x4e8dfb=this['_makeTape'](_0x30e87c['model'][_0x32ed6b]['insertions']);_0x30e87c==_0x332279?(_0x502509=_0x4e8dfb,_0x5123c7=_0x502509['length'],_0x502509['forEach'](_0x30a028=>{_0x30a028['id']=_0x31aa6d++;}),this['_processTape'](_0x502509)):this['_markInsertions'](_0x502509,_0x4e8dfb);const _0x37b244=_0x502509['filter'](_0x370b12=>!_0x370b12['isAdded'])['map'](_0x3dd27e=>_0x3dd27e['id']);let _0x4d47eb=0x0;const _0x1d21a8=this['_makeTape'](_0x30e87c['model'][_0x32ed6b]['deletions']);_0x1d21a8['forEach'](_0x380fd5=>{_0x380fd5['isRemoved']?_0x380fd5['id']=_0x5123c7++:_0x380fd5['id']=_0x37b244[_0x4d47eb++];}),this['_processTape'](_0x1d21a8),this['_setDistance'](_0x502509,'isAdded'),this['_setDistance'](_0x1d21a8,'isRemoved'),_0x30e87c==_0x332279&&this['_markMarkers'](_0x502509,_0xbb63c9),_0x502509=this['_joinTapes'](_0x502509,_0x1d21a8),this['_refreshStartEndIndex'](_0x502509),this['_setDistance'](_0x502509,'isRemoved');}_0x502509=_0x502509['filter'](_0x589fc1=>!(_0x589fc1['isAdded']&&_0x589fc1['isRemoved']));const _0x4c06a8=new Map(_0x2fb16a['model'][_0x32ed6b]['deletions']['markers']),_0x1547a1=new Set(_0xbb63c9['keys']());for(const _0x407b7e of _0x4c06a8['keys']())_0x1547a1['delete'](_0x407b7e);this['_markSuggestions'](_0x502509,_0x1547a1),this['_fixObsoleteTags'](_0x502509),_0x502509=this['_removeMissingPairs'](_0x502509),_0x502509=this['_markMismatchedRemovedTags'](_0x502509),_0x502509=this['_removeUnsupportedChanges'](_0x502509);const {root:_0x560f3a,changes:_0x214dd8}=this['_makeModelFromTape'](_0x502509,_0x1b4955,_0x32ed6b);_0x38c3df['model'][_0x32ed6b]=_0x560f3a;const _0xa54eb9=_0x4389e8['get'](_0x32ed6b);if(_0xa54eb9){const _0x2f0ff9=_0x1b4955['get'](_0xa54eb9['userId']),_0x299532=new r({'author':_0x2f0ff9,'type':_0xa54eb9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x32ed6b});_0x214dd8['unshift'](_0x299532),_0x38c3df['attributes'][_0x32ed6b]['revisionHistoryAttachChange']=_0x299532['id'];}_0x38c3df['changes']=_0x38c3df['changes']['concat'](_0x214dd8);}return _0x38c3df;}['_markMarkers'](_0x40a950,_0x4fcf62){for(let _0x4c17ec=0x0;_0x4c17ec<_0x40a950['length'];_0x4c17ec++)for(const [_0x246d2b,_0x1223ed]of _0x4fcf62)_0x1223ed['start']['isEqual'](_0x40a950[_0x4c17ec]['previousPosition'])&&_0x40a950[_0x4c17ec]['markersStart']['push'](_0x246d2b),_0x1223ed['end']['isEqual'](_0x40a950[_0x4c17ec]['nextPosition'])&&_0x40a950[_0x4c17ec]['markersEnd']['push'](_0x246d2b);}['_joinTapes'](_0x40b70c,_0x44df68){let _0x31d7ea=[],_0x2aeb51=0x0,_0x28ce4a=0x0;for(;_0x2aeb51<_0x40b70c['length']||_0x28ce4a<_0x44df68['length'];){const _0x3464fe=_0x40b70c[_0x2aeb51]||{},_0x8c8865=_0x44df68[_0x28ce4a]||{};if(_0x3464fe['id']==_0x8c8865['id'])_0x2aeb51++,_0x28ce4a++,_0x31d7ea['push'](_0x3464fe);else{if(_0x8c8865['isRemoved']&&_0x3464fe['isAdded']){const {commonTape:_0x41aac5,iEnd:_0x2b777c,jEnd:_0x9a9155}=this['_threeWayMerge'](_0x40b70c,_0x2aeb51,_0x44df68,_0x28ce4a);_0x31d7ea=_0x31d7ea['concat'](_0x41aac5),_0x2aeb51=_0x2b777c,_0x28ce4a=_0x9a9155;}else _0x8c8865['isRemoved']?(_0x28ce4a++,_0x31d7ea['push'](_0x8c8865)):(_0x2aeb51++,_0x31d7ea['push'](_0x3464fe));}}return _0x31d7ea;}['_markSuggestions'](_0x500847,_0x299689){const _0x15921d=[];for(let _0x45e404=0x0;_0x45e404<_0x500847['length'];_0x45e404++){for(let _0x2c4d79=0x0;_0x2c4d79<_0x500847[_0x45e404]['markersStart']['length'];_0x2c4d79++){const _0xf8fac=_0x500847[_0x45e404]['markersStart'][_0x2c4d79];if(!_0x299689['has'](_0xf8fac))continue;const {group:_0x27abe4,type:_0x4fd6be,authorId:_0x1c6680}=_0x140f1d(_0xf8fac);'revision-suggestion'!=_0x27abe4||'insertion'!=_0x4fd6be&&'deletion'!=_0x4fd6be||(_0x15921d['unshift']({'type':_0x4fd6be,'name':_0xf8fac,'userId':_0x1c6680}),_0x500847[_0x45e404]['markersStart']['splice'](_0x2c4d79,0x1),_0x2c4d79--);}_0x2acbf1(_0x500847[_0x45e404]);for(let _0x34b317=0x0;_0x34b317<_0x500847[_0x45e404]['markersEnd']['length'];_0x34b317++){const _0x8d3716=_0x500847[_0x45e404]['markersEnd'][_0x34b317];if(!_0x299689['has'](_0x8d3716))continue;const {group:_0x1bb510,type:_0x55ac61}=_0x140f1d(_0x8d3716);if('revision-suggestion'!=_0x1bb510||'insertion'!=_0x55ac61&&'deletion'!=_0x55ac61)continue;_0x500847[_0x45e404]['markersEnd']['splice'](_0x34b317,0x1),_0x34b317--;const _0x1a027c=_0x15921d['findIndex'](_0x9b010e=>_0x9b010e['name']==_0x8d3716);_0x1a027c>-0x1&&_0x15921d['splice'](_0x1a027c,0x1);}}function _0x140f1d(_0x363f58){const _0x4bb47b=_0x363f58['split'](':');return{'group':_0x4bb47b[0x0],'type':_0x4bb47b[0x1],'subType':_0x4bb47b['length']>=0x5?_0x4bb47b[0x2]:null,'id':_0x4bb47b['length']<0x5?_0x4bb47b[0x2]:_0x4bb47b[0x3],'authorId':_0x4bb47b['length']<0x5?_0x4bb47b[0x3]:_0x4bb47b[0x4],'markerCount':0x6==_0x4bb47b['length']?_0x4bb47b[0x5]:null};}function _0x2acbf1(_0x4ae669){for(let _0x32a34c=0x0;_0x32a34c<_0x15921d['length'];_0x32a34c++){if(_0x4ae669['isAdded']&&'insertion'==_0x15921d[_0x32a34c]['type'])return _0x4ae669['isAddSuggestion']=_0x15921d[_0x32a34c],void delete _0x4ae669['isAdded'];if(!_0x4ae669['isAdded']&&!_0x4ae669['isRemoved']&&'deletion'==_0x15921d[_0x32a34c]['type'])return void(_0x4ae669['isRemoveSuggestion']=_0x15921d[_0x32a34c]);}}}['_setDistance'](_0x20ff4c,_0x585e59){let _0x4a2ac0=0x0,_0x18315f=!0x1;const _0x532ee4=new Map();for(const _0x2dd7d1 of _0x20ff4c)_0x2dd7d1[_0x585e59]?_0x18315f&&(_0x4a2ac0++,_0x18315f=!0x1):(_0x4a2ac0++,_0x18315f=!0x0),_0x532ee4['set'](_0x2dd7d1['id'],_0x4a2ac0);for(let _0x5ebe1d=0x0;_0x5ebe1d<_0x20ff4c['length'];_0x5ebe1d++){if('isRemoved'==_0x585e59&&_0x20ff4c[_0x5ebe1d]['isAdded']||'isAdded'==_0x585e59&&_0x20ff4c[_0x5ebe1d]['isRemoved'])continue;if('text'==_0x20ff4c[_0x5ebe1d]['type']){_0x20ff4c[_0x5ebe1d]['distance']=0x0;continue;}const _0x51ed97=_0x532ee4['get'](_0x20ff4c[_0x5ebe1d]['pairId']),_0x2bf35a=_0x532ee4['get'](_0x20ff4c[_0x5ebe1d]['id']);_0x20ff4c[_0x5ebe1d]['distance']=_0x51ed97-_0x2bf35a;}}['_getRevisionsRange'](_0x330e34,_0xbc57c4,_0x30a5f5=!0x1){const _0x37914d=[];let _0x287713=this['repository']['getIndex'](_0x330e34),_0x5f13c5=this['repository']['getIndex'](_0xbc57c4);for(-0x1==_0x5f13c5&&(_0x5f13c5=this['repository']['_revisions']['length'],_0x30a5f5=!0x1);_0x287713<_0x5f13c5;)_0x37914d['push'](this['repository']['getRevision'](_0x287713)),_0x287713++;return _0x30a5f5&&_0x37914d['push'](this['repository']['getRevision'](_0x287713)),_0x37914d;}['_threeWayMerge'](_0x3e82c4,_0x1994df,_0x5de276,_0x3f1d17){const _0x3f66f8=this['editor']['model']['schema'];let _0x17e14=_0x1994df;for(;_0x3e82c4[_0x17e14]&&_0x3e82c4[_0x17e14]['isAdded'];)_0x17e14++;let _0x180fcb=_0x3f1d17;for(;_0x5de276[_0x180fcb]&&_0x5de276[_0x180fcb]['isRemoved'];)_0x180fcb++;_0x4f5cfd(_0x3e82c4,_0x1994df,_0x17e14),_0x4f5cfd(_0x5de276,_0x3f1d17,_0x180fcb);const _0x3506bd=_0x5de276['slice'](_0x3f1d17,_0x180fcb)['concat'](_0x3e82c4['slice'](_0x1994df,_0x17e14));return _0x3506bd['sort']((_0xaa3fee,_0x56210c)=>_0xaa3fee['side']!=_0x56210c['side']?_0xaa3fee['side']-_0x56210c['side']:_0xaa3fee['level']!=_0x56210c['level']?_0xaa3fee['level']-_0x56210c['level']:_0xaa3fee['distance']!=_0x56210c['distance']?_0x56210c['distance']-_0xaa3fee['distance']:!!_0xaa3fee['isAdded']!=!!_0x56210c['isAdded']?-0x1==_0xaa3fee['side']||0x0==_0xaa3fee['side']?_0xaa3fee['isAdded']?-0x1:0x1:_0xaa3fee['isAdded']?0x1:-0x1:_0xaa3fee['index']-_0x56210c['index']),{'commonTape':_0x3506bd,'iEnd':_0x17e14,'jEnd':_0x180fcb};function _0x4f5cfd(_0x793845,_0x5ed45e,_0x388d29){let _0x362f67=-0x1,_0x675831=Number['POSITIVE_INFINITY'],_0x1a5fba=!0x0;for(let _0x510451=_0x5ed45e;_0x510451<_0x388d29;_0x510451++)if(_0x3f66f8['isInline'](_0x793845[_0x510451]['item'])||(_0x1a5fba=!0x1),_0x793845[_0x510451]['item']['startIndex']<_0x5ed45e&&(_0x362f67=_0x510451),_0x793845[_0x510451]['item']['endIndex']>=_0x388d29){_0x675831=_0x510451;break;}_0x1a5fba&&(_0x362f67=_0x388d29-0x1);for(let _0x436258=_0x5ed45e;_0x436258<_0x388d29;_0x436258++)_0x793845[_0x436258]['side']=_0x436258<=_0x362f67?-0x1:_0x436258<_0x675831?0x0:0x1,_0x793845[_0x436258]['index']=_0x436258;let _0x570cc2=0x0;for(let _0x288a23=_0x5ed45e;_0x288a23<=_0x362f67;_0x288a23++)0x0==_0x793845[_0x288a23]['distance']?_0x793845[_0x288a23]['level']=_0x570cc2:(_0x570cc2++,_0x793845[_0x288a23]['level']=_0x570cc2,_0x570cc2++);for(let _0x45621f=_0x5ed45e;_0x45621f<_0x388d29;_0x45621f++)0x0==_0x793845[_0x45621f]['side']&&(_0x793845[_0x45621f]['level']=_0x570cc2);_0x570cc2=0x0;for(let _0x3600e5=_0x388d29-0x1;_0x3600e5>=_0x675831;_0x3600e5--)0x0==_0x793845[_0x3600e5]['distance']?_0x793845[_0x3600e5]['level']=_0x570cc2:(_0x570cc2--,_0x793845[_0x3600e5]['level']=_0x570cc2,_0x570cc2--);}}['_fixObsoleteTags'](_0x52960f){const _0x38197f=new Map(),_0x58a65a=this['editor']['model']['schema'];for(let _0x4d41fb=0x1;_0x4d41fb<_0x52960f['length'];_0x4d41fb++){let _0x22d8c1,_0x5c9f06,_0x17ea8d;const _0x2d960d=_0x52960f[_0x4d41fb],_0x4ce197=_0x52960f[_0x4d41fb-0x1];if('text'==_0x2d960d['type'])continue;if(_0x2d960d['type']!=_0x4ce197['type'])continue;if(!_0x58a65a['isBlock'](_0x4ce197['item'])||_0x58a65a['isLimit'](_0x4ce197['item']))continue;if(!_0x58a65a['isBlock'](_0x2d960d['item'])||_0x58a65a['isLimit'](_0x2d960d['item']))continue;if((_0x52960f[_0x4d41fb]['isAdded']||_0x52960f[_0x4d41fb]['isAddSuggestion'])&&_0x52960f[_0x4d41fb-0x1]['isRemoved'])_0x22d8c1=_0x52960f[_0x4d41fb],_0x5c9f06=_0x52960f[_0x4d41fb-0x1],_0x17ea8d=_0x4d41fb-0x1;else{if(!_0x52960f[_0x4d41fb]['isRemoved']||!_0x52960f[_0x4d41fb-0x1]['isAdded']&&!_0x52960f[_0x4d41fb-0x1]['isAddSuggestion'])continue;_0x22d8c1=_0x52960f[_0x4d41fb-0x1],_0x5c9f06=_0x52960f[_0x4d41fb],_0x17ea8d=_0x4d41fb;}const _0x316783=_0x22d8c1['level']==_0x5c9f06['level'],_0x36cf60=Math['abs'](_0x22d8c1['level'])<Math['abs'](_0x5c9f06['level'])&&0x0==_0x5c9f06['distance'];(_0x316783||_0x36cf60)&&(_0x38197f['set'](_0x5c9f06['id'],_0x22d8c1['id']),_0x52960f['splice'](_0x17ea8d,0x1),_0x4d41fb--,_0x22d8c1['isAdded']=!0x1);}for(let _0x3de565=0x0;_0x3de565<_0x52960f['length'];_0x3de565++)_0x38197f['has'](_0x52960f[_0x3de565]['pairId'])&&(_0x52960f[_0x3de565]['pairId']=_0x38197f['get'](_0x52960f[_0x3de565]['pairId']));}['_removeMissingPairs'](_0x3a28b5){const _0x49fc2a=new Set(_0x3a28b5['map'](_0x2781ff=>_0x2781ff['id']));for(let _0x87b4a7=0x0;_0x87b4a7<_0x3a28b5['length'];_0x87b4a7++)_0x49fc2a['has'](_0x3a28b5[_0x87b4a7]['pairId'])||0x0==_0x3a28b5[_0x87b4a7]['distance']||(_0x3a28b5[_0x87b4a7]['isIncorrect']=!0x0);return _0x3a28b5['filter'](_0x366f0d=>!_0x366f0d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x46c0ed){const _0x5dd04a=new Set();for(let _0x89cd96=0x0;_0x89cd96<_0x46c0ed['length'];_0x89cd96++){if(_0x5dd04a['has'](_0x46c0ed[_0x89cd96]['id'])&&_0x46c0ed[_0x89cd96]['isRemoved']&&(_0x46c0ed[_0x89cd96]['isIncorrect']=!0x0),_0x46c0ed[_0x89cd96]['isIncorrect'])continue;if(0x0==_0x46c0ed[_0x89cd96]['distance'])continue;if('elementStart'!=_0x46c0ed[_0x89cd96]['type'])continue;if(null==_0x46c0ed[_0x89cd96]['pairId'])continue;let _0x59fd9c=_0x89cd96+0x1,_0x556780=0x0;for(;_0x46c0ed[_0x59fd9c]['id']!=_0x46c0ed[_0x89cd96]['pairId'];)'elementStart'==_0x46c0ed[_0x59fd9c]['type']?_0x556780++:'elementEnd'==_0x46c0ed[_0x59fd9c]['type']&&_0x556780--,_0x59fd9c++;if(0x0!=_0x556780){if(_0x46c0ed[_0x89cd96]['isRemoved'])_0x46c0ed[_0x89cd96]['isIncorrect']=!0x0;else{for(;_0x59fd9c!=_0x89cd96;)_0x46c0ed[_0x59fd9c]['isRemoved']&&0x0!=_0x46c0ed[_0x59fd9c]['distance']&&(_0x46c0ed[_0x59fd9c]['isIncorrect']=!0x0,_0x5dd04a['add'](_0x46c0ed[_0x59fd9c]['pairId'])),_0x59fd9c--;}}}return _0x46c0ed['filter'](_0x50be5b=>!_0x50be5b['isIncorrect']);}['_removeUnsupportedChanges'](_0x28d7f1){const _0xed52dd=this['editor']['model']['schema'];for(let _0x5648fd=0x0;_0x5648fd<_0x28d7f1['length'];_0x5648fd++){if(!(_0x28d7f1[_0x5648fd]['isAdded']||_0x28d7f1[_0x5648fd]['isAddSuggestion']||_0x28d7f1[_0x5648fd]['isRemoved']||_0x28d7f1[_0x5648fd]['isRemoveSuggestion']))continue;if(0x0==_0x28d7f1[_0x5648fd]['distance'])continue;const _0x3229f3=_0x28d7f1[_0x5648fd]['item'];_0xed52dd['isBlock'](_0x3229f3)||_0xed52dd['isLimit'](_0x3229f3)||(_0x28d7f1[_0x5648fd]['isAdded']&&delete _0x28d7f1[_0x5648fd]['isAdded'],_0x28d7f1[_0x5648fd]['isAddSuggestion']&&delete _0x28d7f1[_0x5648fd]['isAddSuggestion'],_0x28d7f1[_0x5648fd]['isRemoveSuggestion']&&delete _0x28d7f1[_0x5648fd]['isRemoveSuggestion'],_0x28d7f1[_0x5648fd]['isRemoved']&&(_0x28d7f1[_0x5648fd]['isIncorrect']=!0x0));}return _0x28d7f1['filter'](_0x406761=>!_0x406761['isIncorrect']);}['_makeModelFromTape'](_0x4cbe25,_0x800919,_0x22adb0){const _0x46781f=new gt(),_0x1d772e=[],_0x225417=new Map(),_0x24f2e5=this['editor']['model'],_0x436970=_0x24f2e5['schema'],_0x35674c=[_0x46781f],_0x1f3f43={},_0x962dfd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5eed29=null;const _0xc92de0=[0x0];for(let _0x5be2d3=0x0;_0x5be2d3<_0x4cbe25['length'];_0x5be2d3++)if('elementStart'===_0x4cbe25[_0x5be2d3]['type']){_0x4cbe25[_0x5be2d3]['previousPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0);const _0x170672=new ut(_0x4cbe25[_0x5be2d3]['item']['name'],_0x4cbe25[_0x5be2d3]['item']['getAttributes']());_0x35674c[0x0]['_appendChild'](_0x170672),_0xc92de0['push'](0x0),_0x35674c['unshift'](_0x170672),_0x4cbe25[_0x5be2d3]['nextPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0);}else'elementEnd'===_0x4cbe25[_0x5be2d3]['type']?(_0x35674c['shift'](),_0x4cbe25[_0x5be2d3]['previousPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0),_0xc92de0['pop'](),_0xc92de0[_0xc92de0['length']-0x1]++,_0x4cbe25[_0x5be2d3]['nextPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0)):(_0x4cbe25[_0x5be2d3]['previousPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0),_0x5eed29?_0x5eed29['_data']+=_0x4cbe25[_0x5be2d3]['item']['data']:_0x5eed29=new wt(_0x4cbe25[_0x5be2d3]['item']['data'],_0x4cbe25[_0x5be2d3]['item']['getAttributes']()),_0x4cbe25[_0x5be2d3+0x1]&&'text'===_0x4cbe25[_0x5be2d3+0x1]['type']&&_0x4124e6(_0x5eed29,_0x4cbe25[_0x5be2d3+0x1]['item'])||(_0x35674c[0x0]['_appendChild'](_0x5eed29),_0x5eed29=null),_0xc92de0[_0xc92de0['length']-0x1]+=_0x4cbe25[_0x5be2d3]['item']['offsetSize'],_0x4cbe25[_0x5be2d3]['nextPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0));for(let _0x3cc2f4=0x0;_0x3cc2f4<_0x4cbe25['length'];_0x3cc2f4++){const _0x17c63c=_0x4cbe25[_0x3cc2f4]['previousPosition'],_0x3331bf=_0x4cbe25[_0x3cc2f4]['nextPosition'];for(const _0x4b995c of _0x4cbe25[_0x3cc2f4]['markersStart'])_0x225417['set'](_0x4b995c,{'start':_0x17c63c,'end':null});_0x14c747('isRemoveSuggestion',_0x3cc2f4,_0x17c63c,_0x3331bf),_0x14c747('isAddSuggestion',_0x3cc2f4,_0x17c63c,_0x3331bf),_0x14c747('isRemoved',_0x3cc2f4,_0x17c63c,_0x3331bf),_0x14c747('isAdded',_0x3cc2f4,_0x17c63c,_0x3331bf);for(const _0x2f9006 of _0x4cbe25[_0x3cc2f4]['markersEnd']){_0x225417['get'](_0x2f9006)['end']=_0x3331bf;}}for(const [_0x239587,_0x43bd17]of _0x225417){const _0x4b01b2=this['editor']['model']['createRange'](_0x43bd17['start'],_0x43bd17['end']);_0x46781f['markers']['set'](_0x239587,_0x4b01b2);}return _0x1d772e['sort']((_0x4f6bb4,_0x213f91)=>{const _0xad3915=_0x46781f['markers']['get']('revision:'+_0x4f6bb4['id']),_0x53a1d9=_0x46781f['markers']['get']('revision:'+_0x213f91['id']);return _0xad3915['start']['isBefore'](_0x53a1d9['start'])?-0x1:_0xad3915['start']['isAfter'](_0x53a1d9['start'])?0x1:_0xad3915['end']['isBefore'](_0x53a1d9['end'])?-0x1:_0xad3915['end']['isAfter'](_0x53a1d9['end'])?0x1:'add'===_0x4f6bb4['type']?-0x1:0x1;}),{'root':_0x46781f,'changes':_0x1d772e};function _0x14c747(_0xf203ea,_0x2f6499,_0x4a74e8,_0x6f89e9){const _0x6def4=!!_0x4cbe25[_0x2f6499][_0xf203ea],_0x349fa7=_0x6def4?_0x4cbe25[_0x2f6499][_0xf203ea]['userId']:null,_0x4f63d1=_0x2f6499===_0x4cbe25['length']-0x1,_0x40de26=_0x962dfd[_0xf203ea][0x0],_0x2fd3f6=_0x436970['isObject'](_0x4cbe25[_0x2f6499]['item']);!_0x1f3f43[_0xf203ea]&&_0x6def4?_0x1f3f43[_0xf203ea]={'start':_0x4a74e8,'tapeItem':_0x4cbe25[_0x2f6499],'userId':_0x349fa7,'type':_0xf203ea}:_0x1f3f43[_0xf203ea]&&!_0x6def4?(_0x1f3f43[_0xf203ea]['end']=_0x4a74e8,_0x3804d8(_0x1f3f43[_0xf203ea]),_0x1f3f43[_0xf203ea]=null):_0x1f3f43[_0xf203ea]&&_0x6def4&&_0x1f3f43[_0xf203ea]['userId']!==_0x349fa7&&(_0x1f3f43[_0xf203ea]['end']=_0x4a74e8,_0x40de26&&_0x40de26['userId']===_0x1f3f43[_0xf203ea]['userId']||_0x3804d8(_0x1f3f43[_0xf203ea]),_0x1f3f43[_0xf203ea]={'start':_0x4a74e8,'tapeItem':_0x4cbe25[_0x2f6499],'userId':_0x349fa7,'type':_0xf203ea}),_0x1f3f43[_0xf203ea]&&_0x2fd3f6&&('elementStart'!==_0x4cbe25[_0x2f6499]['type']||_0x40de26&&_0x40de26['userId']===_0x349fa7||_0x962dfd[_0xf203ea]['unshift']({'userId':_0x349fa7,'object':_0x4cbe25[_0x2f6499]['item'],'change':_0x1f3f43[_0xf203ea]}),'elementEnd'===_0x4cbe25[_0x2f6499]['type']&&_0x40de26&&_0x40de26['object']===_0x4cbe25[_0x2f6499]['item']&&(_0x962dfd[_0xf203ea]['shift'](),_0x1f3f43[_0xf203ea]=_0x40de26['change'])),_0x1f3f43[_0xf203ea]&&_0x4f63d1&&(_0x1f3f43[_0xf203ea]['end']=_0x6f89e9,_0x3804d8(_0x1f3f43[_0xf203ea]),_0x1f3f43[_0xf203ea]=null);}function _0x3804d8({start:_0x51d081,end:_0x48849f,tapeItem:_0x57fab8,userId:_0x328a4c,type:_0x12afdf}){const _0x26125e=_0x57fab8['item'],_0x4d70d0=_0x24f2e5['schema']['isBlock'](_0x26125e)&&!_0x24f2e5['schema']['isLimit'](_0x26125e),_0x266b4e=_0x51d081['nodeAfter']==_0x48849f['parent']&&_0x48849f['isAtStart'];if(_0x4d70d0&&_0x266b4e)return;const _0x1da226=_0x24f2e5['createRange'](_0x51d081,_0x48849f),_0x17ff47=_0x800919['get'](_0x328a4c),_0x61ca4f=new r({'author':_0x17ff47,'type':'isAdded'==_0x12afdf||'isAddSuggestion'==_0x12afdf?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x12afdf||'isRemoveSuggestion'==_0x12afdf},'createdAt':new Date(),'rootName':_0x22adb0});_0x1d772e['push'](_0x61ca4f),_0x46781f['markers']['set']('revision:'+_0x61ca4f['id'],_0x1da226);}function _0x4124e6(_0x24f7dd,_0x1c8cf1){const _0xa39ba0=_0x24f7dd['getAttributes'](),_0x58bf4c=_0x1c8cf1['getAttributes']();for(const _0x4707c3 of _0xa39ba0){if(_0x4707c3[0x1]!==_0x1c8cf1['getAttribute'](_0x4707c3[0x0]))return!0x1;_0x58bf4c['next']();}return _0x58bf4c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x13e7a6=>{const _0x599695=_0x13e7a6['markerName']['split'](':')[0x1],_0x4326f4=this['_getChangeFromId'](_0x599695);if(!_0x4326f4)return null;const _0x4e49a4='add'==_0x4326f4['type']?'insertion':'deletion',_0x32259e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4e49a4];return _0x4326f4['data']['isSuggestion']&&_0x32259e['push']('ck-suggestion-marker-'+_0x4e49a4+'-new'),this['activeChange']==_0x4326f4&&_0x32259e['push']('ck-suggestion-marker--active'),{'classes':_0x32259e,'attributes':{'data-change-id':_0x599695}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1d449e=>{_0x1d449e['on']('element:pre',(_0x1d2329,_0x5a4795,_0x2c2c8c)=>{const _0x345d62=_0x5a4795['viewItem']['getChild'](0x0);if(!_0x345d62||!_0x345d62['is']('element','code'))return;if(!_0x2c2c8c['consumable']['consume'](_0x345d62,{'attributes':['vid_start','vid_end']}))return;const _0x2636ff=_0x5a4795['modelRange']['start']['nodeAfter'];_0x2c2c8c['writer']['setAttribute']('vid_start',_0x345d62['getAttribute']('vid_start'),_0x2636ff),_0x2c2c8c['writer']['setAttribute']('vid_end',_0x345d62['getAttribute']('vid_end'),_0x2636ff);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x41b5a2=>{_0x41b5a2['on']('element',(_0x34aef4,_0x3ec4f3,_0x133177)=>{if(!_0x133177['consumable']['consume'](_0x3ec4f3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ec4f3['modelRange']['isCollapsed'])return;const _0x5968d7=_0x3ec4f3['modelRange']['start']['nodeAfter'];_0x5968d7['hasAttribute']('vid_start')||_0x5968d7['hasAttribute']('vid')||(_0x133177['writer']['setAttribute']('vid_start',_0x3ec4f3['viewItem']['getAttribute']('vid_start'),_0x5968d7),_0x133177['writer']['setAttribute']('vid_end',_0x3ec4f3['viewItem']['getAttribute']('vid_end'),_0x5968d7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1a1d0e=>_0x1a1d0e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40b660,[,_0x522211])=>{['vid_start','vid_end','vid']['includes'](_0x522211)&&(_0x40b660['return']=!0x0,_0x40b660['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x129c58=>{_0x129c58['on']('attribute:vid',(_0x5d7d93,_0x2796a1,_0x4377f3)=>{if('\x20'!=_0x2796a1['item']['data']||_0x2796a1['item']['parent']['maxOffset']>0x1)return;if(!_0x4377f3['consumable']['consume'](_0x2796a1['item'],_0x5d7d93['name']))return;const _0x2c3f05=_0x4377f3['writer'],_0x2ef8ac=_0x4377f3['mapper']['toViewRange'](_0x2796a1['range']);_0x2c3f05['wrap'](_0x2ef8ac,_0x2c3f05['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x28edd5){const _0x5d997a=_0x28edd5['plugins']['get']('RevisionViewer');return(_0xa17e5b,_0x4173b0,_0x4a97d8)=>{const _0x5292d6=_0x4173b0['markerName']['split'](':')[0x1],_0x1067de=_0x5d997a['_getChangeFromId'](_0x5292d6);if(!_0x1067de)return null;const _0xcc1be7='add'==_0x1067de['type']?'split':'merge';if(!_0x4a97d8['consumable']['test'](_0x4173b0['markerRange'],_0xa17e5b['name']))return;const _0x18cc34=_0x4173b0['markerRange']['getWalker'](),_0x8cfe02=_0x4173b0['markerRange']['start'],_0x455bf9=_0x28edd5['model']['schema'];let _0xc011c7=null,_0x48527a=null,_0x423265=!0x1,_0x3cd8c3=!0x1;for(const _0x543589 of _0x18cc34){const _0x147cc8=_0x543589['item'];_0x423265=_0x423265||_0x455bf9['isContent'](_0x147cc8);const _0x437d67=_0x4a97d8['mapper']['toViewElement'](_0x147cc8);if(_0x437d67&&_0x437d67['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x543589['type']&&(_0x455bf9['isBlock'](_0x147cc8)&&!_0x455bf9['isLimit'](_0x147cc8)&&(_0x147cc8['nextSibling']||_0x8cfe02['isAtEnd']?_0xc011c7&&_0xc011c7['parent']==_0x147cc8||(_0xc011c7=_0x147cc8,_0x4119b6(_0x543589['previousPosition']),_0x3cd8c3=!0x0):_0x48527a=_0x48527a||_0x543589['previousPosition']));}function _0x4119b6(_0x1c94e7){const _0x3d9086=_0x4a97d8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcc1be7}),_0x1997b7=_0x4a97d8['mapper']['toViewPosition'](_0x1c94e7);_0x1067de['data']['isSuggestion']&&_0x4a97d8['writer']['addClass']('ck-suggestion-marker-'+_0xcc1be7+'-new',_0x3d9086),_0x5d997a['activeChange']==_0x1067de&&_0x4a97d8['writer']['addClass']('ck-suggestion-marker--active',_0x3d9086),_0x4a97d8['writer']['insert'](_0x1997b7,_0x3d9086),_0x4a97d8['mapper']['bindElementToMarker'](_0x3d9086,_0x4173b0['markerName']);}_0x423265||_0x3cd8c3||!_0x48527a||_0x4119b6(_0x48527a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2c9a87,_0x323865,_0x29359f)=>{const _0x283cb1=_0x29359f['mapper']['markerNameToElements'](_0x323865['markerName']);if(_0x283cb1){for(const _0x46fb99 of _0x283cb1)(_0x46fb99['hasClass']('ck-suggestion-marker-split')||_0x46fb99['hasClass']('ck-suggestion-marker-merge'))&&(_0x29359f['mapper']['unbindElementFromMarkerName'](_0x46fb99,_0x323865['markerName']),_0x29359f['writer']['remove'](_0x46fb99));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3af290,_0x351367,_0xd99224)=>{const _0xb2765a=_0x351367['markerName']['split'](':')[0x1],_0x2e485d=this['_getChangeFromId'](_0xb2765a);if(!_0x2e485d)return null;const _0x11bcc4='add'==_0x2e485d['type']?'split':'merge';if(_0xd99224['consumable']['test'](_0x351367['markerRange'],_0x3af290['name']))for(const _0x2429a0 of _0x351367['markerRange']['getItems']()){if(!_0x2429a0['is']('element','softBreak'))continue;const _0x29f801=_0xd99224['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11bcc4}),_0x214c8e=_0xd99224['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2429a0));_0x2e485d['data']['isSuggestion']&&_0xd99224['writer']['addClass']('ck-suggestion-marker-'+_0x11bcc4+'-new',_0x29f801),this['activeChange']==_0x2e485d&&_0xd99224['writer']['addClass']('ck-suggestion-marker--active',_0x29f801),_0xd99224['writer']['insert'](_0x214c8e,_0x29f801),_0xd99224['mapper']['bindElementToMarker'](_0x29f801,_0x351367['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x251691=>{for(const _0x3a8ab9 of this['editor']['model']['document']['getRootNames']()){const _0x5a9e1d=this['editor']['model']['document']['getRoot'](_0x3a8ab9),_0x5991a7=this['editor']['editing']['view']['document']['getRoot'](_0x3a8ab9);if(_0x5991a7){const _0x59b30a=_0x5a9e1d['getAttribute']('revisionHistoryAttachChange');if(_0x251691['removeAttribute']('data-change-id',_0x5991a7),_0x251691['removeClass']('ck-revision-history-root-add',_0x5991a7),_0x251691['removeClass']('ck-revision-history-root-remove',_0x5991a7),_0x251691['removeClass']('ck-revision-history-root--active',_0x5991a7),_0x59b30a){const _0x2c214a=this['_getChangeFromId'](_0x59b30a);if(!_0x2c214a)return null;_0x251691['setAttribute']('data-change-id',_0x59b30a,_0x5991a7),_0x251691['addClass']('ck-revision-history-root-'+_0x2c214a['type'],_0x5991a7),this['activeChange']==_0x2c214a&&_0x251691['addClass']('ck-revision-history-root--active',_0x5991a7);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xc4248=>'revision-comment:'+_0xc4248,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x904908=>'revision-suggestion:'+_0x904908,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x9dc647=>({'name':'suggestion:'+_0x9dc647,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xcc2ddf=>{const _0x52a7e2=_0xcc2ddf['markerName']['split'](':')[0x1];return'insertion'!=_0x52a7e2&&'deletion'!=_0x52a7e2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x52a7e2]};}}),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',(_0xf7df67,_0x9ec0e,_0x5806e4)=>{const _0x24231d=_0x5806e4['mapper']['markerNameToElements'](_0x9ec0e['markerName']);if(_0x24231d){for(const _0x226420 of _0x24231d)_0x226420['is']('uiElement')&&(_0x5806e4['mapper']['unbindElementFromMarkerName'](_0x226420,_0x9ec0e['markerName']),_0x5806e4['writer']['remove'](_0x226420));}},{'priority':'high'});}['_getChangeFromId'](_0x3c254c){return this['_changeIdToChange']['get'](_0x3c254c);}['_getViewForChange'](_0x2ed854){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x2ed854),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x208027,_0x56ce22,_0x16f488,_0x58adf2)=>{_0x58adf2&&this['_balloon']['remove'](_0x58adf2),_0x16f488&&(this['_balloon']['add']({'view':_0x16f488,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xa20f59=this['editor']['editing'],_0x9b62d7=this['_getChangeFromId'](_0x16f488['changeId']);let _0x458dda;if(_0x9b62d7['data']['isOnRoot']){const _0x465de7=_0xa20f59['view']['getDomRoot'](_0x9b62d7['rootName']);_0x458dda=Array['from'](_0x465de7['getClientRects']());}else{const _0x1f6845=this['editor']['model']['markers']['get']('revision:'+_0x16f488['changeId']);_0x458dda=Array['from'](_0xa20f59['mapper']['markerNameToElements'](_0x1f6845['name']))['map'](_0x5f2090=>_0xa20f59['view']['domConverter']['mapViewToDom'](_0x5f2090))['map'](_0x4e9aef=>Array['from'](_0x4e9aef['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x458dda[0x0];return _0x458dda['find'](_0x3fe77a=>_0x3fe77a['top']-0x3<=this['_activeViewTarget']['y']&&_0x3fe77a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3fe77a['left']-0x3<=this['_activeViewTarget']['x']&&_0x3fe77a['right']+0x3>=this['_activeViewTarget']['x'])||_0x458dda[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x55a78c,_0x528826,_0x786f22,_0x2e1c00)=>{this['activeView']=_0x786f22?this['_getViewForChange'](_0x786f22):null,this['editor']['model']['change'](()=>{const _0x683b79=this['editor']['editing'];_0x2e1c00&&(_0x2e1c00['data']['isOnRoot']?_0x683b79['view']['change'](_0x4d7cd7=>{_0x4d7cd7['removeClass']('ck-revision-history-root--active',_0x683b79['view']['document']['getRoot'](_0x2e1c00['rootName']));}):_0x683b79['reconvertMarker']('revision:'+_0x2e1c00['id'])),_0x786f22&&(_0x786f22['data']['isOnRoot']?_0x683b79['view']['change'](_0x1f66e7=>{_0x1f66e7['addClass']('ck-revision-history-root--active',_0x683b79['view']['document']['getRoot'](_0x786f22['rootName']));}):_0x683b79['reconvertMarker']('revision:'+_0x786f22['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3225c2,_0x7d2698)=>{if(this['activeChange'])return;const _0x5b9511=this['_findChangeIdFromDomTarget'](_0x7d2698['target']),_0x16e1c1=this['_changeIdToChange']['get'](_0x5b9511);_0x16e1c1?(this['_activeViewTarget']={'x':_0x7d2698['domEvent']['x'],'y':_0x7d2698['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x16e1c1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x102e8b,_0x87e911)=>{const _0x2e8338=this['_findChangeIdFromDomTarget'](_0x87e911['target']),_0xc9a3ae=this['_changeIdToChange']['get'](_0x2e8338);_0xc9a3ae?(this['_activeViewTarget']={'x':_0x87e911['domEvent']['x'],'y':_0x87e911['domEvent']['y']},_0xc9a3ae===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xc9a3ae):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5dc0bb){do{const _0x2e2e0b=_0x5dc0bb['getAttribute']('data-change-id');if(_0x2e2e0b)return _0x2e2e0b;_0x5dc0bb=_0x5dc0bb['parent'];}while(_0x5dc0bb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x37db50=>{for(const _0xb13f81 of this['editor']['model']['markers'])_0x37db50['removeMarker'](_0xb13f81);});}}function Z(_0x243502,_0x5792ee){return(_0x52da8a,_0x27ad29,_0x5e7af8)=>{if(!_0x5e7af8['consumable']['test'](_0x27ad29['markerRange'],_0x52da8a['name']))return;const _0x38341c=_0x27ad29['markerRange']['getWalker'](),_0x9e8d6=_0x27ad29['markerRange']['start'],_0x136899=_0x243502['model']['schema'];let _0x49ce7d=null,_0x9cd922=null,_0x40f083=!0x1,_0x42c921=!0x1;for(const _0x19d67b of _0x38341c){const _0x1d0c2b=_0x19d67b['item'];_0x40f083=_0x40f083||_0x136899['isContent'](_0x1d0c2b);const _0x56c19e=_0x5e7af8['mapper']['toViewElement'](_0x1d0c2b);if(_0x56c19e&&_0x56c19e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x19d67b['type']&&(_0x136899['isBlock'](_0x1d0c2b)&&!_0x136899['isLimit'](_0x1d0c2b)&&(_0x1d0c2b['nextSibling']||_0x9e8d6['isAtEnd']?_0x49ce7d&&_0x49ce7d['parent']==_0x1d0c2b||(_0x49ce7d=_0x1d0c2b,_0xb4bdf(_0x19d67b['previousPosition']),_0x42c921=!0x0):_0x9cd922=_0x9cd922||_0x19d67b['previousPosition']));}function _0xb4bdf(_0x4ae5a2){const _0x1eab63=_0x5e7af8['mapper']['toViewPosition'](_0x4ae5a2),_0x41355a=_0x5e7af8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5792ee});_0x5e7af8['writer']['insert'](_0x1eab63,_0x41355a),_0x5e7af8['mapper']['bindElementToMarker'](_0x41355a,_0x27ad29['markerName']);}_0x40f083||_0x42c921||!_0x9cd922||_0xb4bdf(_0x9cd922);};}class _t extends _0x1bc561{constructor(_0x382e80){super(_0x382e80);const _0x570739=_0x382e80['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x570739,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x570739,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x14f5a1=this['editor'],_0x4c8204=_0x14f5a1['plugins']['get'](d),_0x14438b=_0x4c8204['isReady']?_0x4c8204['diff']['newRevisionId']:null;_0x14f5a1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x14438b);}['refresh'](){const {isReady:_0x9b4263,isEnabled:_0x3db13d,repository:_0x436c1c,diff:_0x45ba50}=this['editor']['plugins']['get'](d),_0x16a045=_0x45ba50&&_0x436c1c['getLaterVisibleRevision'](_0x45ba50['newRevisionId']);this['isEnabled']=_0x9b4263&&_0x3db13d&&Boolean(_0x16a045);}}class yt extends _0x1bc561{['_step'];constructor(_0x42d12f,{direction:_0x4ff2d6}){super(_0x42d12f);const _0x194bb1=_0x42d12f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4ff2d6?0x1:-0x1,this['listenTo'](_0x194bb1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x194bb1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x194bb1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5d4a36=this['editor'],_0x494e6b=_0x5d4a36['plugins']['get'](d),{isNavigationMode:_0x458a9e,currentChangeNumber:_0x5274c5}=_0x494e6b;let _0x4e6150;if(_0x494e6b['activeChange']=_0x458a9e?_0x494e6b['diff']['changes']['get'](_0x5274c5+this['_step']):_0x494e6b['diff']['changes']['first'],_0x494e6b['activeChange']['data']['isOnRoot'])_0x4e6150=_0x5d4a36['editing']['view']['getDomRoot'](_0x494e6b['activeChange']['rootName']);else{const _0x1b07df=_0x5d4a36['model']['markers']['get']('revision:'+_0x494e6b['activeChange']['id']);_0x4e6150=_0x665250(_0x5d4a36['editing'],_0x1b07df);}_0x53c173({'target':_0x4e6150,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x20971e,currentChangeNumber:_0x572f9b,numberOfChanges:_0x192e7d,isReady:_0x43b6aa,isEnabled:_0x2cb1cc}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2cb1cc&&_0x43b6aa&&_0x192e7d)&&(!_0x20971e||(0x1===this['_step']?_0x572f9b<_0x192e7d-0x1:_0x572f9b>0x0));}}class _i extends _0x423d80{constructor(_0x3047c2){super(_0x3047c2);const _0x180fb1=this['bindTemplate'],_0x165720=new _0x4f8d34(_0x3047c2),_0x4c3a6c=new _0x4f8d34(_0x3047c2);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',(_0x4e942e,_0x13445e)=>_0x4e942e&&_0x13445e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x321362,_0x267c5b,_0x2fedb2,_0x50d8fb)=>{if(!_0x321362)return m(_0x3047c2,'Loading...');if(!_0x2fedb2)return m(_0x3047c2,'No\x20changes');const _0x346174=m(_0x3047c2,'NUMBER_OF_CHANGES',_0x2fedb2);return _0x50d8fb?m(_0x3047c2,'X_OF_Y_CHANGES',[_0x267c5b+0x1,_0x2fedb2]):_0x346174;}),_0x165720['set']({'label':m(_0x3047c2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4e8941}),_0x4c3a6c['set']({'label':m(_0x3047c2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x243940}),_0x165720['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4c3a6c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x165720['on']('execute',()=>this['fire']('execute','backward')),_0x4c3a6c['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',_0x180fb1['if']('_isStatusLabelVisible','ck-hidden',_0x13205c=>!_0x13205c)]},'children':[{'text':_0x180fb1['to']('isNavigationMode',_0x13ec88=>_0x13ec88?m(_0x3047c2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3047c2,'Total')+':\x20')}]},{'text':_0x180fb1['to']('_statusText')}]},new _0x1edbaa(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x165720,_0x4c3a6c]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x41e048{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x21b10f=this['editor']['editing']['view'];_0x21b10f['change'](_0x2e785b=>{for(const _0x2261d8 of _0x21b10f['document']['roots'])_0x2e785b['addClass'](ce,_0x2261d8);});}['hide'](){const _0x1f8bb1=this['editor']['editing']['view'];_0x1f8bb1['change'](_0x16f85b=>{for(const _0x40368e of _0x1f8bb1['document']['roots'])_0x16f85b['removeClass'](ce,_0x40368e);});}}class w extends _0x41e048{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x599f86=this['editor'],_0x3cf255=_0x599f86['plugins']['get'](d),_0x538e4e=_0x599f86['plugins']['get'](le);_0x599f86['ui']['componentFactory']['add']('exitToEditing',_0x2e2bad=>{const _0x58fc25=new _0x4f8d34(_0x2e2bad);return _0x58fc25['set']({'label':m(_0x2e2bad,'Back\x20to\x20editing'),'icon':_0x51d06c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x58fc25,'execute',()=>{_0x599f86['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x58fc25;}),_0x599f86['ui']['componentFactory']['add']('restoreRevision',_0x5df9d9=>{const _0x6eb0e1=new _0x4f8d34(_0x5df9d9);return _0x6eb0e1['set']({'label':m(_0x5df9d9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x6eb0e1['bind']('isEnabled')['to'](_0x599f86['commands']['get']('restoreRevision')),this['listenTo'](_0x6eb0e1,'execute',()=>_0x599f86['execute']('restoreRevision')),_0x6eb0e1;}),_0x599f86['ui']['componentFactory']['add']('changesNavigation',_0x1b9889=>{const _0x51bb0e=new _i(_0x1b9889),_0xe54015=_0x599f86['commands']['get']('showPreviousChange'),_0x1ffc70=_0x599f86['commands']['get']('showNextChange');return _0x51bb0e['bind']('isBackwardNavigationEnabled')['to'](_0xe54015,'isEnabled'),_0x51bb0e['bind']('isForwardNavigationEnabled')['to'](_0x1ffc70,'isEnabled'),_0x51bb0e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3cf255),this['listenTo'](_0x51bb0e,'execute',(_0x3d9500,_0x30e1c8)=>{_0x599f86['execute']('forward'===_0x30e1c8?'showNextChange':'showPreviousChange');}),_0x51bb0e;}),_0x538e4e['show'](),_0x3cf255['on']('change:isReady',(_0x1219fe,_0x23a109,_0x3730e4)=>{_0x3730e4?_0x538e4e['hide']():_0x538e4e['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x70f427,_0x3f2cc2){super(_0x70f427,_0x3f2cc2);const _0x549e64=this['bindTemplate'];this['set']({'label':m(_0x70f427,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x70f427,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x549e64['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 _0x5b10d6=this['fieldView']['element'];this['_tooltipString']=_0x5b10d6['scrollWidth']>_0x5b10d6['clientWidth']&&_0x5b10d6['value']||'';}}class oi extends _0x423d80{constructor(_0x179420,_0x326407,_0x293f85){super(_0x179420);const _0x31f828=new _0x261fed();_0x31f828['set']({'content':_0x2ab0e8,'viewBox':'0\x200\x2011\x2010'});const _0x4642aa=['ck','ck-revision-history-sidebar__revision-author'];_0x293f85&&_0x4642aa['push']('ck-revision-history-sidebar__revision-author_creator');const _0x587e9d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x179420,_0x293f85?'Revision\x20creator':'Revision\x20author')},'children':[_0x31f828,_0x326407['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4642aa},'children':_0x587e9d});}}function ni(_0x3fd00f,_0x38f148){const _0x2e0d61=_0x3fd00f['bindTemplate'],_0x36fb86=_0x3fd00f['locale'],_0x491875=_0x4b0e6a(_0x36fb86);_0x491875['panelPosition']='sw';const _0x3c2abd=function(_0x4c3286,_0x4891f8){const _0x2b0b12=function(_0x5686fb,_0x185aae){const _0x55950e=_0x5686fb['locale'],_0x28aa0a={'Compare\x20against\x20selected':m(_0x55950e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x55950e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x55950e,'Restore\x20this\x20revision')};return _0x185aae['map'](_0x347b0c=>{const _0x193127=_0x28aa0a[_0x347b0c['name']];return _0x193127&&_0x193127!==_0x347b0c['name']&&(_0x347b0c['name']=_0x193127),_0x347b0c;});}(_0x4c3286,_0x4891f8),_0x1a3748=new _0x2c3527();for(const _0x3223d4 of _0x2b0b12){const _0x2cc03a={'type':'button','model':new to({'label':_0x3223d4['name'],'class':_0x3223d4['class'],'withText':!0x0,'role':'menuitem','_action':_0x3223d4['action']})};_0x2cc03a['model']['bind']('isEnabled')['to'](_0x4c3286,'isActionsDropdownOpen',_0x5157f3=>'function'!=typeof _0x3223d4['isEnabled']||(!_0x5157f3||_0x3223d4['isEnabled'](_0x4c3286))),_0x1a3748['add'](_0x2cc03a);}return _0x1a3748;}(_0x3fd00f,_0x38f148);return _0x3fd00f['bind']('isActionsDropdownOpen')['to'](_0x491875,'isOpen'),_0x491875['buttonView']['set']({'label':m(_0x36fb86,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4c20c0}),_0x491875['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2e0d61['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2e0d61['to'](_0x1a78e1=>_0x1a78e1['stopPropagation']())}}),_0x491875['on']('execute',_0x42bfe5=>{_0x3fd00f['isReady']&&'function'==typeof _0x42bfe5['source']['_action']&&_0x42bfe5['source']['_action'](_0x3fd00f);}),_0x2cf456(_0x491875,_0x3c2abd,{'role':'menu'}),_0x491875['listenTo'](_0x3fd00f,'change:isActionsDropdownOpen',(_0x50f76f,_0x8e44be,_0x28f2f7)=>{if(_0x28f2f7)for(const _0x546835 of _0x491875['listView']['items']){const _0x556fb3=_0x546835['children']['first'],_0x1f7311=_0x38f148['find'](_0x1afd59=>_0x1afd59['action']===_0x556fb3['_action'])['isVisible'];_0x546835['isVisible']=void 0x0===_0x1f7311||_0x1f7311(_0x3fd00f);}}),_0x491875;}class ai extends/* #__PURE__ -- @preserve */
26
- _0xdffbcd(_0x423d80){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x6205e6,_0x49929d,_0x20191d,_0x36581f){super(_0x6205e6);const _0x5d4ae8=this['bindTemplate'],_0x1ed976=function(_0x237f68,_0x33ffa2){const _0x23d558=Array['from'](_0x33ffa2['authors'])['filter'](_0x49f0e4=>_0x49f0e4!=_0x33ffa2['creator']);return _0x33ffa2['creator']&&_0x23d558['unshift'](_0x33ffa2['creator']),_0x23d558['map'](_0xbcaa03=>new oi(_0x237f68,_0xbcaa03,_0xbcaa03==_0x33ffa2['creator']));}(_0x6205e6,_0x49929d);this['id']=_0x49929d['id'],this['_revision']=_0x49929d,this['_requireRevisionName']=_0x36581f,this['bind']('name','createdAt')['to'](_0x49929d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x185ad8=>{return _0x148ac7=_0x6205e6['uiLanguage'],(_0x166a1d=_0x185ad8)['toLocaleDateString'](_0x148ac7,{'month':'long','day':'numeric'})+',\x20'+_0x166a1d['toLocaleTimeString'](_0x148ac7,{'hour':'numeric','minute':'numeric'});var _0x148ac7,_0x166a1d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x6205e6,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4cd3af=>_0x4cd3af||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x282d9f,_0x2b99de)=>_0x282d9f&&_0x2b99de),this['revisionActionsView']=_0x20191d&&_0x20191d['length']?ni(this,_0x20191d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d4ae8['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d4ae8['if']('isEnabled','ck-disabled',_0xfd3f5e=>!_0xfd3f5e),_0x5d4ae8['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d4ae8['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d4ae8['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':_0x5d4ae8['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':_0x1ed976}]},this['revisionActionsView']],'on':{'click':_0x5d4ae8['to'](_0x1c3f42=>{_0x1c3f42['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x263967=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x263967,'change',()=>{this['_requireRevisionName']&&!_0x263967['value']||this['fire']('setName',{'id':this['id'],'name':_0x263967['value']}),_0x263967['value']||(_0x263967['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(_0x109962,_0x90ea97){const _0x239b64=_0x3a0f57['fromJSDate'](_0x109962)['setLocale'](_0x90ea97),_0x4c9369=_0x3a0f57['local'](),_0x98215d=_0x4c9369['minus']({'days':0x1})['startOf']('day');let _0x3bc289,_0x22faca;return _0x239b64['hasSame'](_0x4c9369,'day')?(_0x3bc289=_0x239b64['startOf']('day')['toJSDate'](),_0x22faca=_0x239b64['toRelativeCalendar']()):_0x239b64['hasSame'](_0x98215d,'day')?(_0x3bc289=_0x98215d['toJSDate'](),_0x22faca=_0x239b64['toRelativeCalendar']()):_0x239b64['hasSame'](_0x4c9369,'week')?(_0x3bc289=_0x239b64['startOf']('week')['toJSDate'](),_0x22faca=_0x239b64['weekdayLong']||''):_0x239b64['hasSame'](_0x4c9369,'year')?(_0x3bc289=_0x239b64['startOf']('month')['toJSDate'](),_0x22faca=_0x239b64['monthLong']||''):(_0x3bc289=_0x239b64['startOf']('year')['toJSDate'](),_0x22faca=String(_0x239b64['year'])),{'startDate':_0x3bc289,'localizedPeriodName':_0x22faca};}class mi extends _0x423d80{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5e3a3a,_0x155be6,_0x3431e0,_0xa958b5){super(_0x5e3a3a);const _0x7384e0=vi(_0x155be6,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x155be6,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3431e0,this['_requireRevisionName']=_0xa958b5,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':_0x7384e0}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x328654){const _0x392295=new ai(this['locale'],_0x328654,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x392295);}['removeRevision'](_0x18f8dd){const _0x4b5f73=this['revisionViews']['find'](_0x404d22=>_0x404d22['id']===_0x18f8dd['id']);this['revisionViews']['remove'](_0x4b5f73);}}class as extends _0x423d80{constructor(_0x5c6a44){super(_0x5c6a44);const _0x3ba063=new _0x261fed();_0x3ba063['content']=_0x24e1d6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3ba063,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5c6a44,'Revision\x20history')]}]});}}class di extends _0x423d80{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x52b8a6,_0x74b05e,_0x23d38b,_0x9f6e59){super(_0x52b8a6);const _0x17aba1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x74b05e,this['_revisionActions']=_0x23d38b,this['_requireRevisionName']=_0x9f6e59,this['on']('select',(_0x4f2d2f,_0x5a7cf1)=>{this['fire']('revisionSelected',_0x5a7cf1);}),this['on']('setName',(_0x58908a,_0x1dc9d1)=>{this['fire']('revisionSetName',_0x1dc9d1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x52b8a6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x17aba1['if']('isEnabled','ck-disabled',_0x58685a=>!_0x58685a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4d2007 of this['_revisions'])this['_addRevision'](_0x4d2007);this['_revisions']['on']('add',(_0x301acc,_0x27f477)=>{this['_addRevision'](_0x27f477);}),this['_revisions']['on']('remove',(_0x5b1c01,_0x3f599c)=>{this['_removeRevision'](_0x3f599c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3e36cb=>_0x3e36cb['revisionViews']['map'](_0x3690aa=>_0x3690aa))['flat']();}['selectRevision'](_0x3d2484){for(const _0x4cabfc of this['revisionViews'])_0x3d2484&&_0x3d2484['id']===_0x4cabfc['id']?_0x4cabfc['select']():_0x4cabfc['deselect']();}['highlightRevisions'](_0x329d54){for(const _0x3270b7 of this['revisionViews'])_0x329d54['some'](({id:_0x22b1b9})=>_0x22b1b9===_0x3270b7['id'])?_0x3270b7['highlight']():_0x3270b7['unhighlight']();}['_addRevision'](_0x2dc074){const _0x27d029=vi(_0x2dc074['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36acbf=this['timePeriodViews']['get'](0x0);_0x36acbf&&_0x36acbf['startDate']['getTime']()===_0x27d029['getTime']()||(_0x36acbf=new mi(this['locale'],_0x27d029,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36acbf)),_0x36acbf['addRevision'](_0x2dc074);}['_removeRevision'](_0x59d952){const _0x401622=vi(_0x59d952['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x401622)['removeRevision'](_0x59d952);}['_getTimePeriodViewByStartDate'](_0x929eb){return this['timePeriodViews']['find'](_0x6aa7c8=>_0x6aa7c8['startDate']['getTime']()===_0x929eb['getTime']());}}class g extends _0x41e048{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4116db,uid as _0x2444de,Collection as _0xd62129,logWarning as _0x55e73f,FocusTracker as _0x4ac0e5,KeystrokeHandler as _0x4e6c4f,scrollViewportToShowTarget as _0x3e6950,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x460288}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x554cb7,set as _0x35dd8b,unset as _0x33c43d,isEqual as _0x56d046}from'es-toolkit/compat';import{Plugin as _0x1cb4d9,PendingActions as _0x57a5ac,Command as _0x4996f3,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4f4638,getMarkerDomElement as _0x44e281,ConfirmMixin as _0x4bacfa,sanitizeEditorConfig as _0x2a06ca}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5bdaa9,Element as ut,Range as ft,ViewUIElement as _0x30b6b4,ViewRawElement as _0x100ce8,ViewEmptyElement as _0x293013,ViewAttributeElement as _0x1847f8,ViewContainerElement as _0x474f23,Position as vt,ViewText as _0xa66c6,ViewElement as _0x1d9fc4,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x157b93,IconChevronUp as _0x2d5040,IconChevronDown as _0x2ba79f,IconUndo as _0x13e911,IconUser as _0x531c1e,IconThreeVerticalDots as _0x451385}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2e6edd,injectCssTransitionDisabler as ts,submitHandler as _0x24f35c,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x35729b,ListView as _0x59f615,ListItemView as te,ButtonView as _0x2dd9e5,MenuBarMenuView as _0x283a03,MenuBarMenuListView as _0x14d625,MenuBarMenuListItemView as _0x2f80d0,MenuBarMenuListItemButtonView as _0x11bc93,ContextualBalloon as _0x4f26cc,ToolbarSeparatorView as _0x23ab73,IconView as _0x2df071,addListToDropdown as _0x6d559f,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 _0xa5d9b4}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x4116db(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x165a64){super(),this['id']=_0x165a64['id']||_0x2444de(),this['creator']=_0x165a64['creator']||null,this['authors']=_0x165a64['authors']||[],this['diffData']=_0x165a64['diffData']||null,this['toVersion']=_0x165a64['toVersion']||0x0,this['fromVersion']=_0x165a64['fromVersion']||0x0,this['set']('name',_0x165a64['name']||''),this['set']('createdAt',_0x165a64['createdAt']||new Date()),this['set']('attributes',_0x165a64['attributes']||{});}['setName'](_0x35b503){this['_update']({'name':_0x35b503});}['setAttribute'](_0x5ce7a4,_0x2b99ca){const _0x3fd6bc=_0x554cb7(this['attributes']);_0x35dd8b(_0x3fd6bc,_0x5ce7a4,_0x2b99ca),this['_update']({'attributes':_0x3fd6bc});}['removeAttribute'](_0x38afe2){const _0x254fdc=_0x554cb7(this['attributes']);_0x33c43d(_0x254fdc,_0x38afe2),this['_update']({'attributes':_0x254fdc});}['_update'](_0x1c07f3,_0x41749e=!0x1){let _0x3caa89=!0x1;const _0x1e378e={'id':this['id']},_0x23abdc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1f77d3 of _0x23abdc){const _0x5769ce=_0x1c07f3[_0x1f77d3];void 0x0!==_0x5769ce&&_0x5769ce!==this[_0x1f77d3]&&(this[_0x1f77d3]=_0x5769ce,_0x1e378e[_0x1f77d3]=_0x5769ce,_0x3caa89=!0x0);}_0x3caa89&&(_0x1e378e['authors']&&(_0x1e378e['authorsIds']=_0x1e378e['authors']['map'](_0x47d272=>_0x47d272['id']),delete _0x1e378e['authors']),this['fire']('_update',_0x1e378e,_0x41749e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x47e2c5=>_0x47e2c5['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1cb4d9{['_revisions'];static get['requires'](){return[_0x4f4638];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xe7e8c8){super(_0xe7e8c8),this['_revisions']=new _0xd62129();}['afterInit'](){!async function(_0x419df4){const _0x2329cc=_0x2a0182([0x33,0x46,0x74,0x37,0x51,0x45,0x34,0x44,0x4f,0x6d,0x47,0x58,0x7a,0x49,0x76,0x59,0x79,0x35,0x48,0x6a,0x4a,0x4b,0x64,0x6f,0x43,0x62,0x75,0x38,0x71,0x6b,0x61,0x5a,0x53,0x78,0x6c,0x68,0x65,0x63,0x4d,0x77,0x4e,0x54,0x39,0x42,0x55,0x66,0x70,0x41,0x52,0x32,0x72,0x67,0x56,0x30,0x4c,0x69,0x6e,0x31,0x57,0x73,0x50,0x36]),_0x4b8520=0xeb829,_0x29cd97=0x537735d4,_0x1c2d3e=0x537057b4^_0x29cd97,_0x530569=window[_0x2a0182([0x44,0x61,0x74,0x65])][_0x2a0182([0x6e,0x6f,0x77])](),_0x3a8bf3=_0x419df4[_0x2a0182([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x517af6=new window[(_0x2a0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cbe79=>{_0x3a8bf3[_0x2a0182([0x6f,0x6e,0x63,0x65])](_0x2a0182([0x72,0x65,0x61,0x64,0x79]),_0x2cbe79);}),_0x8fd835={[_0x2a0182([0x6b,0x74,0x79])]:_0x2a0182([0x45,0x43]),[_0x2a0182([0x75,0x73,0x65])]:_0x2a0182([0x73,0x69,0x67]),[_0x2a0182([0x63,0x72,0x76])]:_0x2a0182([0x50,0x2d,0x32,0x35,0x36]),[_0x2a0182([0x78])]:_0x2a0182([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]),[_0x2a0182([0x79])]:_0x2a0182([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]),[_0x2a0182([0x61,0x6c,0x67])]:_0x2a0182([0x45,0x53,0x32,0x35,0x36])},_0x364f9f=_0x3a8bf3[_0x2a0182([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2a0182([0x67,0x65,0x74])](_0x2a0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35da46(){let _0x19b682,_0x400efc=null,_0x1a0006=null;try{if(_0x364f9f==_0x2a0182([0x47,0x50,0x4c]))return _0x2a0182([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19b682=_0x1f34e1(),!_0x19b682)return _0x2a0182([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19b682[_0x2a0182([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a0006=_0x1fd6a7(_0x19b682[_0x2a0182([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19b682[_0x2a0182([0x6a,0x74,0x69])])),await _0x29bae7()?_0xc64ffa()?_0x519edb()?_0x2a0182([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a26fb()?(_0x19b682[_0x2a0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a0182([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x400efc=_0x52703a(_0x2a0182([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19b682[_0x2a0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a0182([0x74,0x72,0x69,0x61,0x6c])&&(_0x400efc=_0x52703a(_0x2a0182([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16d62f()):_0x2a0182([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2a0182([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2a0182([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5853ed){return _0x2a0182([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x519edb(){const _0x2e1dec=[_0x2a0182([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2a0182([0x74,0x72,0x69,0x61,0x6c])][_0x2a0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b682[_0x2a0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x530569/0x3e8:0xe10*_0x1c2d3e;return _0x19b682[_0x2a0182([0x65,0x78,0x70])]<_0x2e1dec;}function _0xc64ffa(){const _0x18f8fa=_0x19b682[_0x2a0182([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x18f8fa)return!0x1;if(_0x18f8fa[_0x2a0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a0182([0x2a])))return!0x0;if(_0x18f8fa[_0x2a0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a0182([0x52,0x48])))return!0x0;if(_0x18f8fa[_0x2a0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a0182([0x52,0x52,0x48]))){if(_0xd250d1())return!0x0;if(_0x2c69f3()||_0x40f057())return!0x0;}return!0x1;}function _0x1a26fb(){const _0x75baa5=_0x19b682[_0x2a0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x75baa5||0x0==_0x75baa5[_0x2a0182([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16ef5e}=new URL(window[_0x2a0182([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x75baa5[_0x2a0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16ef5e))return!0x0;const _0x37a379=_0x16ef5e[_0x2a0182([0x73,0x70,0x6c,0x69,0x74])](_0x2a0182([0x2e]));return _0x75baa5[_0x2a0182([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f859f=>_0x4f859f[_0x2a0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a0182([0x2a])))[_0x2a0182([0x6d,0x61,0x70])](_0x30b9a5=>_0x30b9a5[_0x2a0182([0x73,0x70,0x6c,0x69,0x74])](_0x2a0182([0x2e])))[_0x2a0182([0x73,0x6f,0x6d,0x65])](_0x36041f=>_0x37a379[_0x2a0182([0x65,0x76,0x65,0x72,0x79])]((_0x2db36e,_0x449b82)=>_0x36041f[_0x449b82]===_0x2db36e||_0x36041f[_0x449b82]===_0x2a0182([0x2a])));}function _0x16d62f(){return _0x400efc&&_0x1a0006?new window[(_0x2a0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50f635,_0x26ae97)=>{_0x400efc[_0x2a0182([0x74,0x68,0x65,0x6e])](_0x50f635,_0x26ae97),_0x1a0006[_0x2a0182([0x74,0x68,0x65,0x6e])](_0xe4f7a3=>{_0xe4f7a3!=_0x2a0182([0x56,0x61,0x6c,0x69,0x64])&&_0x50f635(_0xe4f7a3);},_0x26ae97);}):_0x400efc||_0x1a0006||_0x2a0182([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fd6a7(_0x301947,_0x17f1cc){return new window[(_0x2a0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cab18=>{if(_0x4365bb())return _0x4cab18(_0x2a0182([0x56,0x61,0x6c,0x69,0x64]));_0x133e37(),_0x3a8bf3[_0x2a0182([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2a0182([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1655c5=!0x1;const _0x5c4462=_0x2444de();function _0x36b932(_0x1ecac7){return!!_0x1ecac7&&(typeof _0x1ecac7===_0x2a0182([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ecac7===_0x2a0182([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ecac7[_0x2a0182([0x74,0x68,0x65,0x6e])]===_0x2a0182([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ecac7[_0x2a0182([0x63,0x61,0x74,0x63,0x68])]===_0x2a0182([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x112f27(_0x25e8c2){_0x5d78c6(_0x25e8c2)[_0x2a0182([0x74,0x68,0x65,0x6e])](_0x3c1ba8=>{if(!_0x3c1ba8||_0x3c1ba8[_0x2a0182([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2a0182([0x6f,0x6b]))return _0x2a0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49c7ce(_0x4c7051(_0x5c4462+_0x17f1cc))!=_0x3c1ba8[_0x2a0182([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2a0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2a0182([0x56,0x61,0x6c,0x69,0x64]);})[_0x2a0182([0x74,0x68,0x65,0x6e])](_0x1cddc5=>(_0x27e49b(),_0x1cddc5),()=>{const _0x4e6f64=_0x1a7306();return null==_0x4e6f64?(_0x27e49b(),_0x2a0182([0x56,0x61,0x6c,0x69,0x64])):_0x2a0182(_0x530569-_0x4e6f64>(0x777bb1d4^_0x29cd97)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2a0182([0x74,0x68,0x65,0x6e])](_0x4cab18)[_0x2a0182([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cab18(_0x2a0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb4acb1=0x5341db54^_0x29cd97;function _0x27e49b(){const _0x3d327d=_0x2a0182([0x6c,0x6c,0x63,0x74,0x2d])+_0x49c7ce(_0x4c7051(_0x301947)),_0x3e43bb=_0x5458e4(_0x49c7ce(window[_0x2a0182([0x4d,0x61,0x74,0x68])][_0x2a0182([0x63,0x65,0x69,0x6c])](_0x530569/_0xb4acb1)));window[_0x2a0182([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a0182([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d327d,_0x3e43bb);}function _0x1a7306(){const _0x518e73=_0x2a0182([0x6c,0x6c,0x63,0x74,0x2d])+_0x49c7ce(_0x4c7051(_0x301947)),_0x2302b9=window[_0x2a0182([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a0182([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x518e73);return _0x2302b9?window[_0x2a0182([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5458e4(_0x2302b9),0x10)*_0xb4acb1:null;}function _0x5d78c6(_0xdda8df){return new window[(_0x2a0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e56e7,_0x2cbc9e)=>{_0xdda8df[_0x2a0182([0x74,0x68,0x65,0x6e])](_0x3e56e7,_0x2cbc9e),window[_0x2a0182([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2cbc9e,0x5376e114^_0x29cd97);});}}_0x3a8bf3[_0x2a0182([0x6f,0x6e])](_0x2a0182([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f5199,_0x2bf9a0)=>{if(_0x2bf9a0[0x0]!=_0x301947)return _0x4cab18(_0x2a0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2bf9a0[0x1]={..._0x2bf9a0[0x1],[_0x2a0182([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c4462};},{[_0x2a0182([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a0182([0x68,0x69,0x67,0x68])}),_0x3a8bf3[_0x2a0182([0x6f,0x6e])](_0x2a0182([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c7972=>{_0x36b932(_0x2c7972[_0x2a0182([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1655c5=!0x0,_0x112f27(_0x2c7972[_0x2a0182([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2a0182([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a0182([0x6c,0x6f,0x77])}),_0x517af6[_0x2a0182([0x74,0x68,0x65,0x6e])](()=>{_0x1655c5||_0x4cab18(_0x2a0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4365bb(){return _0x3a8bf3[_0x2a0182([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a0182([0x76,0x69,0x65,0x77])][_0x2a0182([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2a0182([0x61,0x75,0x74,0x6f]);}function _0x133e37(){_0x3a8bf3[_0x2a0182([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a0182([0x76,0x69,0x65,0x77])][_0x2a0182([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a0182([0x61,0x75,0x74,0x6f]);}}function _0x52703a(_0x4d3737){const _0x1883ae=[new window[(_0x2a0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bb3fd=>setTimeout(_0x4bb3fd,0x537e0b18^_0x29cd97)),_0x517af6[_0x2a0182([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2a0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x276e80=>{const _0x2d0e9d=0x537735d3^_0x29cd97,_0x20fbff=_0x419df4[_0x2a0182([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x24829b(){_0x20fbff[_0x2a0182([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d0e9d&&_0x276e80();}_0x24829b(),_0x20fbff[_0x2a0182([0x6f,0x6e])](_0x2a0182([0x61,0x64,0x64]),_0x24829b);})),new window[(_0x2a0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x190d79=>{function _0x4ad7f4(){for(const _0x59eb33 in window)if(window[_0x2a0182([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2a0182([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x59eb33))&&window[_0x59eb33]==_0x4b8520)return _0x190d79();_0x3a8bf3[_0x2a0182([0x73,0x74,0x61,0x74,0x65])]!=_0x2a0182([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2a0182([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ad7f4,0x5377265c^_0x29cd97);}_0x2a656f(_0x2a0182([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4ad7f4();})];return window[_0x2a0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a0182([0x72,0x61,0x63,0x65])](_0x1883ae)[_0x2a0182([0x74,0x68,0x65,0x6e])](()=>_0x4d3737);}async function _0x10d2e9(){if(await _0x517af6,_0x2a656f(_0x2a0182([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x18fefb=_0x419df4[_0x2a0182([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x6a59ed=_0x419df4[_0x2a0182([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])](_0x18fefb[_0x2a0182([0x69,0x64])]),_0x5b0905=_0xd0187(_0x2a0182([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5b0905[_0x2a0182([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x18fefb['id'],_0x6a59ed?_0x6a59ed['id']:null,!0x0),_0x5b0905[_0x2a0182([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2a0182([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5b0905[_0x2a0182([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5b0905[_0x2a0182([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1b25c5,void(_0x5b0905[_0x2a0182([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1b25c5);}if(_0x2a656f(_0x2a0182([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x171f16=_0xd0187(_0x2a0182([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x171f16[_0x2a0182([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2a0182([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x171f16[_0x2a0182([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x171f16[_0x2a0182([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1b25c5,_0x171f16[_0x2a0182([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1b25c5;}_0x3a8bf3[_0x2a0182([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a0182([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b25c5,_0x3a8bf3[_0x2a0182([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a0182([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b25c5,_0x3a8bf3[_0x2a0182([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2a0182([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd250d1(){return _0x2a656f(_0x2a0182([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xd0187(_0x2a0182([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2a0182([0x73,0x74,0x61,0x74,0x65])]==_0x2a0182([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2c69f3(){return _0x2a656f(_0x2a0182([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 _0x40f057(){return _0x2a656f(_0x2a0182([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x12d302(_0x58b8c8){const _0x28d2fb=_0x1f179d();_0x3a8bf3[_0x28d2fb]=_0x2a0182([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])+_0x58b8c8,_0x58b8c8[_0x2a0182([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2a0182([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1f179d()]=_0x4b8520),_0x58b8c8!=_0x2a0182([0x56,0x61,0x6c,0x69,0x64])&&_0x10d2e9();}function _0x1f179d(){const _0x42fba9=window[_0x2a0182([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2a0182([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2a0182([0x6e,0x6f,0x77])]())[_0x2a0182([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2a0182([0x2e]),'');let _0xa604a1=_0x2a0182([0x46]);for(let _0x39edb7=0x0;_0x39edb7<_0x42fba9[_0x2a0182([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39edb7+=0x2){let _0x2cc027=window[_0x2a0182([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42fba9[_0x2a0182([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39edb7,_0x39edb7+0x2));_0x2cc027>=_0x2329cc[_0x2a0182([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2cc027-=_0x2329cc[_0x2a0182([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa604a1+=_0x2329cc[_0x2cc027];}return _0xa604a1;}function _0x1f34e1(){const _0x4d0fc7=_0x364f9f[_0x2a0182([0x73,0x70,0x6c,0x69,0x74])](_0x2a0182([0x2e]));if(0x3!=_0x4d0fc7[_0x2a0182([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c7641(_0x4d0fc7[0x1]);function _0x2c7641(_0x1e546a){const _0x492fc9=_0x5f1914(_0x1e546a);return _0x492fc9&&_0x5e8336()?_0x492fc9:null;function _0x5e8336(){const _0x1c2548=_0x492fc9[_0x2a0182([0x6a,0x74,0x69])],_0x56e788=window[_0x2a0182([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c2548[_0x2a0182([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c2548[_0x2a0182([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22b1ea={..._0x492fc9,[_0x2a0182([0x6a,0x74,0x69])]:_0x1c2548[_0x2a0182([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c2548[_0x2a0182([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22b1ea[_0x2a0182([0x76,0x63])],_0x4c7051(_0x22b1ea)==_0x56e788;}}}async function _0x29bae7(){let _0x57d550=!0x0;try{const _0x50f269=_0x364f9f[_0x2a0182([0x73,0x70,0x6c,0x69,0x74])](_0x2a0182([0x2e])),[_0x2b395f,_0x10876e,_0x4b9f0b]=_0x50f269;return _0x46f2f5(_0x2b395f),await _0x1e5530(_0x2b395f,_0x10876e,_0x4b9f0b),_0x57d550;}catch(_0x53b0ce){return!0x1;}function _0x46f2f5(_0x1a6226){const _0x80c927=_0x5f1914(_0x1a6226);_0x80c927&&_0x80c927[_0x2a0182([0x61,0x6c,0x67])]==_0x2a0182([0x45,0x53,0x32,0x35,0x36])||(_0x57d550=!0x1);}async function _0x1e5530(_0x355659,_0x26d2df,_0x4c121c){const _0x56ef01=window[_0x2a0182([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2a0182([0x66,0x72,0x6f,0x6d])](_0x692c6c(_0x4c121c),_0x5ce710=>_0x5ce710[_0x2a0182([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdcccd8=new window[(_0x2a0182([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2a0182([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x355659+_0x2a0182([0x2e])+_0x26d2df),_0x1ac1e8=window[_0x2a0182([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2a0182([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ac1e8)return;const _0x343e32=await _0x1ac1e8[_0x2a0182([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2a0182([0x6a,0x77,0x6b]),_0x8fd835,{[_0x2a0182([0x6e,0x61,0x6d,0x65])]:_0x2a0182([0x45,0x43,0x44,0x53,0x41]),[_0x2a0182([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2a0182([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2a0182([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ac1e8[_0x2a0182([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2a0182([0x6e,0x61,0x6d,0x65])]:_0x2a0182([0x45,0x43,0x44,0x53,0x41]),[_0x2a0182([0x68,0x61,0x73,0x68])]:{[_0x2a0182([0x6e,0x61,0x6d,0x65])]:_0x2a0182([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x343e32,_0x56ef01,_0xdcccd8)||(_0x57d550=!0x1);}}function _0x5f1914(_0x438525){return _0x438525[_0x2a0182([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2a0182([0x65,0x79]))?JSON[_0x2a0182([0x70,0x61,0x72,0x73,0x65])](_0x692c6c(_0x438525)):null;}function _0x692c6c(_0x2b9f75){return window[_0x2a0182([0x61,0x74,0x6f,0x62])](_0x2b9f75[_0x2a0182([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2a0182([0x2b]))[_0x2a0182([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2a0182([0x2f])));}function _0x4c7051(_0x239738){let _0x42ddb3=0x1505;function _0x2d6c24(_0x4588bb){for(let _0x1848a1=0x0;_0x1848a1<_0x4588bb[_0x2a0182([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1848a1++){const _0xb5c9b1=_0x4588bb[_0x2a0182([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1848a1);_0x42ddb3=(_0x42ddb3<<0x5)+_0x42ddb3+_0xb5c9b1,_0x42ddb3&=_0x42ddb3;}}function _0xf2d98e(_0x414053){Array[_0x2a0182([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x414053)?_0x414053[_0x2a0182([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf2d98e):_0x414053&&typeof _0x414053==_0x2a0182([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2a0182([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x414053)[_0x2a0182([0x73,0x6f,0x72,0x74])]()[_0x2a0182([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bc373,_0x51aaa2])=>{_0x2d6c24(_0x5bc373),_0xf2d98e(_0x51aaa2);}):_0x2d6c24(window[_0x2a0182([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x414053));}return _0xf2d98e(_0x239738),_0x42ddb3>>>0x0;}function _0x49c7ce(_0x138e48){return _0x138e48[_0x2a0182([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2a0182([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2a0182([0x30]));}function _0x5458e4(_0x1c0d02){return _0x1c0d02[_0x2a0182([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2a0182([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2a0182([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a656f(_0x350478){return _0x3a8bf3[_0x2a0182([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2a0182([0x68,0x61,0x73])](_0x350478);}function _0xd0187(_0xf92df1){return _0x3a8bf3[_0x2a0182([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2a0182([0x67,0x65,0x74])](_0xf92df1);}function _0x1b25c5(){}function _0x2a0182(_0x824396){return _0x824396['map'](_0x536903=>String['fromCharCode'](_0x536903))['join']('');}_0x12d302(await _0x35da46());}(this);}['createRevision'](_0x544a92){const _0x4240cc=this['editor']['plugins']['get']('Users');return new h({'id':_0x544a92['id'],'name':_0x544a92['name'],'creator':_0x544a92['creatorId']?_0x4240cc['getUser'](_0x544a92['creatorId']):null,'diffData':_0x544a92['diffData']||_0x544a92['data'],'authors':_0x544a92['authorsIds']['map'](_0x4cbdbb=>_0x4240cc['getUser'](_0x4cbdbb)),'createdAt':new Date(_0x544a92['createdAt']),'attributes':_0x544a92['attributes'],'fromVersion':_0x544a92['fromVersion'],'toVersion':_0x544a92['toVersion']});}['addRevision'](_0xea566e,_0x3b97ad=0x0){this['_revisions']['add'](_0xea566e,_0x3b97ad);}['getRevision'](_0x27a237){return this['_revisions']['get'](_0x27a237);}['getRevisions'](_0x51a681={'toJSON':!0x1}){const _0x5c4374=Array['from'](this['_revisions']);return _0x5c4374['reverse'](),_0x51a681['toJSON']?_0x5c4374['map'](_0x3086db=>_0x3086db['toJSON']()):_0x5c4374;}['getIndex'](_0x22bf4a){return this['_revisions']['getIndex'](_0x22bf4a);}['getEarlierVisibleRevision'](_0x32a440){const [,_0x204d20]=this['getRevisionsIterator'](_0x32a440,{'direction':'earlier'});return _0x204d20;}['getLaterVisibleRevision'](_0x96923b){const [,_0x346ac3]=this['getRevisionsIterator'](_0x96923b,{'direction':'later'});return _0x346ac3;}['getRevisionsInDiff'](_0x2c69b8){const _0x1c50ae=[];for(const _0x197222 of this['getRevisionsIterator'](_0x2c69b8['newRevisionId']))if(_0x1c50ae['push'](_0x197222),_0x197222['id']===_0x2c69b8['oldRevisionId'])break;return _0x1c50ae;}*['getRevisionsIterator'](_0x245b57,{direction:_0x1b3e8a='earlier',filter:_0x5bd264=()=>!0x0}={}){const _0xbcd489='earlier'===_0x1b3e8a?0x1:-0x1;let _0x52f9e0=this['_revisions']['get'](_0x245b57),_0xfdf86b=this['getIndex'](_0x52f9e0);for(yield _0x52f9e0;_0x52f9e0;){if(_0xfdf86b+=_0xbcd489,_0x52f9e0=this['getRevision'](_0xfdf86b),!_0x52f9e0)return;_0x5bd264(_0x52f9e0)&&(yield _0x52f9e0);}}}function m(_0x2f36f5,_0x32b83f,_0x201628){const t=_0x2f36f5['t'];switch(_0x32b83f){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'},_0x201628);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x201628);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':_0x474f23,'a':_0x1847f8,'e':_0x293013,'r':_0x100ce8,'u':_0x30b6b4};class u extends _0x1cb4d9{['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[_0x4f4638,j,_0x57a5ac];}constructor(_0x3d3efb){super(_0x3d3efb),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 _0x481af1=_0x2444de();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x481af1},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 _0x39f7f4=this['repository']['getRevision'](0x0),_0x864bde=_0x39f7f4&&null===_0x39f7f4['creator']?_0x39f7f4:null;if(this['_continueCurrentRevision']=!!_0x864bde&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5f0ce3=this['_source']['getCurrentRevisionId'](),_0x5154f0=this['repository']['getRevision'](_0x5f0ce3);if(_0x5154f0)this['_startingVersion']=_0x5154f0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3b746a=this['_source']['history']['_operations']['find'](_0x2a9eb3=>!_0x2a9eb3['_isInit']),_0x58bbe9=_0x3b746a?_0x3b746a['baseVersion']:this['_source']['history']['version'];_0x39f7f4?(_0x39f7f4['toVersion']<_0x58bbe9&&_0x39f7f4['_update']({'toVersion':_0x58bbe9}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x864bde['id'],this['_startingVersion']=_0x864bde['fromVersion']):(this['_startingVersion']=_0x39f7f4['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x58bbe9,this['_continueCurrentRevision']=!0x1);}}else _0x864bde&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x864bde['toVersion'],this['editor']['model']['document']['history']['version']),_0x864bde['fromVersion']===_0x864bde['toVersion']?(0x0!==_0x864bde['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x864bde['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x864bde['id'],this['_startingVersion']=_0x864bde['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',_0x565b8f=>!_0x565b8f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4af262=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11bc69;for(const _0x2a7da0 in _0x4af262){const _0x419ea8=_0x2a7da0,_0x57da6d=_0x4af262[_0x419ea8];if('revisionHistoryLicenseKeyValid'==_0x57da6d||'revisionHistoryLicenseKeyInvalid'==_0x57da6d||'revisionHistoryLicenseKeyExpired'==_0x57da6d||'revisionHistoryLicenseKeyDomainLimit'==_0x57da6d||'revisionHistoryLicenseKeyNotAllowed'==_0x57da6d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x57da6d||'revisionHistoryLicenseKeyTrialLimit'==_0x57da6d||'revisionHistoryLicenseKeyUsageLimit'==_0x57da6d){delete _0x4af262[_0x419ea8],_0x11bc69=_0x57da6d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x11bc69&&_0x4af262['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x11bc69&&_0x4af262['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x11bc69&&_0x4af262['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x11bc69&&_0x4af262['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x11bc69&&_0x4af262['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x11bc69&&_0x4af262['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x11bc69&&_0x4af262['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x13982a=this['repository']['getRevision'](0x0),_0x1e3e21=await this['getRevisionDocumentData'](_0x13982a),_0x4e1efd=await this['getRevisionRootsAttributes'](_0x13982a);this['_replaceEditorDataWithRevisionData'](_0x1e3e21,_0x4e1efd);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x53e145){this['_source']=_0x53e145;}async['update'](){const _0x57d31b=await this['_source']['getLatestVersion']();if(_0x57d31b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x49ff3b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x57d31b});_0x49ff3b['authors']=_0x49ff3b['authorsIds']['map'](_0x244bb5=>this['editor']['plugins']['get']('Users')['getUser'](_0x244bb5)),this['currentRevision']['_update'](_0x49ff3b);}}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'](_0x2a2b1a={},_0x526c7a=null){const _0x4a0159=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x526c7a>this['currentRevision']['toVersion']&&(_0x526c7a=null),null===_0x526c7a&&(_0x526c7a=await this['_source']['getLatestVersion']());const _0xe37348=this['_getFromVersion'](_0x526c7a),_0x3739ae=this['buildRevisionData']({'from':_0xe37348,'to':_0x526c7a});if(this['currentRevision']['toVersion']<_0x526c7a){const _0x334094=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x526c7a,'to':_0x526c7a});_0x334094['authors']=[],_0x334094['authorsIds']=[],_0x334094['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x334094,!0x0),delete _0x334094['authors'],_0x4a0159['push'](_0x334094);}_0x2a2b1a['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a2b1a['name']=_0x2a2b1a['name']||null,_0x2a2b1a['id']=_0x2a2b1a['id']||_0x2444de(),_0x2a2b1a={..._0x2a2b1a,..._0x3739ae};const _0x2d3a25=this['addRevisionData'](_0x2a2b1a);_0x4a0159['push'](_0x2a2b1a);const _0x1ac50d=this['repository']['getIndex'](_0x2d3a25);if(0x0!==_0x1ac50d){const _0xd033f5=this['repository']['getRevision'](_0x1ac50d-0x1);if(_0xd033f5['fromVersion']!==_0x526c7a){const _0x290a6e=this['_revisionDataBuilder']['getData'](_0x526c7a,_0xd033f5['toVersion']),_0x54e274={'id':_0xd033f5['id'],'diffData':_0x290a6e['diffData'],'authorsIds':_0x290a6e['authorsIds'],'authors':_0x290a6e['authorsIds']['map'](_0x7c8495=>this['editor']['plugins']['get']('Users')['getUser'](_0x7c8495)),'fromVersion':_0x526c7a};_0xd033f5===this['currentRevision']&&(_0x54e274['createdAt']=new Date(_0x2a2b1a['createdAt']['getTime']()+0xa)),_0xd033f5['_update'](_0x54e274,!0x0),delete _0x54e274['authors'],_0x4a0159['push'](_0x54e274);}}if(this['adapter']){for(const _0x570d59 of _0x4a0159)this['_bufferUpdate'](_0x570d59['id'],_0x570d59,!0x0);this['sendBufferedUpdates']();}return _0x2d3a25;}['addRevisionData'](_0x59be66){const _0x58795d=this['repository']['createRevision'](_0x59be66);return this['adapter']&&_0x58795d['on']('_update',(_0x12757b,_0x2f7c2f,_0x438e42)=>{_0x438e42||(this['_bufferUpdate'](_0x2f7c2f['id'],_0x2f7c2f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x58795d,this['_findInsertionIndex'](_0x58795d)),_0x58795d;}async['getRevisionDocumentData'](_0x29bf00){await this['_loadRevisionData'](_0x29bf00);const _0x3437d1={};for(const _0x14869e in _0x29bf00['diffData']){if(_0x29bf00['diffData'][_0x14869e]['attachChange']&&!_0x29bf00['diffData'][_0x14869e]['attachChange']['isAttached'])continue;const _0x710217=this['_removeRevisionMarkers'](JSON['parse'](_0x29bf00['diffData'][_0x14869e]['insertions'])),_0x32d39a=this['editor']['editing']['view']['document'],_0x352efb=new _0x5bdaa9(_0x32d39a,_0x710217['map'](_0x2f3dc3=>P(_0x2f3dc3,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3437d1[_0x14869e]=this['editor']['data']['processor']['toData'](_0x352efb),this['editor']['data']['processor']['useFillerType']('default');}return _0x3437d1;}async['getRevisionRootsAttributes'](_0x3bc5a8){await this['_loadRevisionData'](_0x3bc5a8);const _0x4b61f8={};for(const _0x9ad5d1 in _0x3bc5a8['diffData'])_0x3bc5a8['diffData'][_0x9ad5d1]['attachChange']&&!_0x3bc5a8['diffData'][_0x9ad5d1]['attachChange']['isAttached']||(_0x4b61f8[_0x9ad5d1]=_0x3bc5a8['diffData'][_0x9ad5d1]['attributesAfter']||{});return _0x4b61f8;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x349f06=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x50f406=0x0;_0x50f406<_0x349f06['length'];_0x50f406++){const _0x233f28=_0x349f06[_0x50f406];let _0x4468b7=!0x1;for(const _0x16c3c8 of Object['keys'](_0x233f28))void 0x0===_0x233f28[_0x16c3c8]?delete _0x233f28[_0x16c3c8]:'id'!==_0x16c3c8&&(_0x4468b7=!0x0);_0x4468b7||(_0x349f06[_0x50f406]=null);}if(_0x349f06=_0x349f06['filter'](_0x508d6d=>null!==_0x508d6d),!_0x349f06['length'])return;for(let _0x4bceee=0x0;_0x4bceee<_0x349f06['length'];_0x4bceee++){const _0x520d8e=_0x349f06[_0x4bceee];void 0x0!==_0x520d8e['fromVersion']&&void 0x0===_0x520d8e['toVersion']&&(_0x520d8e['toVersion']=this['repository']['getRevision'](_0x520d8e['id'])['toVersion']),void 0x0!==_0x520d8e['toVersion']&&void 0x0===_0x520d8e['fromVersion']&&(_0x520d8e['fromVersion']=this['repository']['getRevision'](_0x520d8e['id'])['fromVersion']);}const _0x1740ab=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x349f06,_0x1740ab)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x339746=>{if(_0x339746){for(const _0xeedd4c of _0x339746)this['setRevisionData']({'id':_0xeedd4c['id'],'createdAt':_0xeedd4c['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1e62c7,_0x375362){let _0x1d6f34=this['editor']['config']['get']('initialData'),_0x3dc157=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1d6f34){_0x1d6f34={};for(const _0x4bf183 of this['editor']['model']['document']['getRootNames']())_0x1d6f34[_0x4bf183]='';}if('string'==typeof _0x1d6f34&&(_0x1d6f34={'main':_0x1d6f34}),void 0x0===_0x3dc157){_0x3dc157={};for(const _0x32b166 of this['editor']['model']['document']['getRootNames']())_0x3dc157[_0x32b166]={};}let _0x150741=!0x1;const _0xa6027b=Object['keys'](_0x1d6f34),_0x2f9e80=Object['keys'](_0x1e62c7);for(const _0x4451e9 of _0xa6027b){if(_0x1d6f34[_0x4451e9]!==_0x1e62c7[_0x4451e9]&&''!==_0x1d6f34[_0x4451e9]['trim']()){_0x150741=!0x0;break;}if(!_0x56d046(_0x3dc157[_0x4451e9],_0x375362[_0x4451e9])&&Object['keys'](_0x3dc157[_0x4451e9])['length']>0x0){_0x150741=!0x0;break;}}_0x150741||(_0x150741=_0x2f9e80['some'](_0xf4d59e=>!this['editor']['model']['document']['getRoot'](_0xf4d59e))),_0x150741&&_0x55e73f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1d6f34,'editorRootsAttributes':_0x3dc157,'revisionData':_0x1e62c7,'revisionRootsAttributes':_0x375362}),this['editor']['config']['set']('initialData',_0x1e62c7),this['editor']['config']['set']('rootsAttributes',_0x375362);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x151a37=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x151a37['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x217ab6){const _0x445acb=this['repository']['getRevisions']();_0x445acb['reverse']();let _0x279969=0x0;for(;_0x279969<_0x445acb['length'];){const _0x3d96e5=_0x445acb[_0x279969];if(_0x3d96e5===this['currentRevision']){_0x279969++;continue;}if(_0x3d96e5['id']===this['_initialRevisionId'])break;const _0xf5c265=_0x217ab6['toVersion']-_0x3d96e5['toVersion']||_0x217ab6['fromVersion']-_0x3d96e5['fromVersion'];if(_0xf5c265>0x0)break;if(_0xf5c265<0x0)_0x279969++;else{if(!_0x217ab6['creator']&&_0x3d96e5['creator'])break;if(_0x3d96e5['creator']||!_0x217ab6['creator']){if(_0x217ab6['createdAt']>_0x3d96e5['createdAt'])break;_0x279969++;}else _0x279969++;}}return _0x279969;}['setRevisionData'](_0xdb24c6){const _0x55c543=this['repository']['getRevision'](_0xdb24c6['id']);if(_0xdb24c6['createdAt']&&(_0xdb24c6['createdAt']=new Date(_0xdb24c6['createdAt'])),_0xdb24c6['authorsIds']){const _0x40b0bb=this['editor']['plugins']['get']('Users');_0xdb24c6['authors']=_0xdb24c6['authorsIds']['map'](_0x22948c=>_0x40b0bb['getUser'](_0x22948c));}_0x55c543['_update'](_0xdb24c6,!0x0);}['buildRevisionData']({revision:_0x16d9d1=null,from:_0x2afe56=null,to:_0x431fed=null}){_0x2afe56=null!==_0x2afe56?_0x2afe56:_0x16d9d1['fromVersion'],_0x431fed=null!==_0x431fed?_0x431fed:_0x16d9d1['toVersion'];const _0x424d30=this['_revisionDataBuilder']['getData'](_0x2afe56,_0x431fed),_0x513fd5={'diffData':_0x424d30['diffData'],'authorsIds':_0x424d30['authorsIds'],'fromVersion':_0x2afe56,'toVersion':_0x431fed};if(!_0x16d9d1||_0x431fed!==_0x16d9d1['toVersion']){const _0x37ab8c=_0x431fed-0x1,_0x3f8c0a=this['_source']['history']['getOperation'](_0x37ab8c);_0x513fd5['createdAt']=_0x3f8c0a&&_0x3f8c0a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2afe56===this['_loadedStateData']['fromVersion']){for(const _0x4b96bc of this['_loadedStateData']['authors'])_0x513fd5['authorsIds']['includes'](_0x4b96bc['id'])||_0x513fd5['authorsIds']['push'](_0x4b96bc['id']);}return _0x513fd5;}['_loadRevisionData'](_0x457c4b){if(!_0x457c4b||_0x457c4b['diffData'])return Promise['resolve']();{const _0x33f924=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x33f924,'revisionId':_0x457c4b['id']})['then'](_0x5c3179=>{_0x457c4b['diffData']=_0x5c3179['diffData'];});}}['_bufferUpdate'](_0x4d5b70,_0x2f38fe,_0x3e64cd){if(this['_bufferedUpdates']['has'](_0x4d5b70)){const _0x447671=this['_bufferedUpdates']['get'](_0x4d5b70);_0x2f38fe=_0x3e64cd?{..._0x447671,..._0x2f38fe}:{..._0x2f38fe,..._0x447671};}this['_bufferedUpdates']['set'](_0x4d5b70,_0x2f38fe);}['_getFromVersion'](_0x5ec4b6){const _0x22e722=this['repository']['getRevisions']();_0x22e722['reverse'](),_0x22e722['shift']();const _0x4d178e=_0x22e722['find'](_0x55ce15=>_0x55ce15['toVersion']<=_0x5ec4b6)['toVersion'];return _0x4d178e<this['_startingVersion']?this['_startingVersion']:_0x4d178e;}['_createInitialRevision'](_0xd9f156){const _0x328d0a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x328d0a)this['_initialRevisionId']=_0x328d0a['id'];else{const _0x57d060=!this['editor']['model']['document']['roots']['find'](_0x51bfd2=>this['editor']['model']['hasContent'](_0x51bfd2)),_0x5b322d=this['editor']['plugins']['get']('Users')['me']['id'],_0x171070=m(this['editor']['locale'],_0x57d060?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xd9f156,'to':_0xd9f156,'id':this['_initialRevisionId'],'name':_0x171070,'creatorId':_0x5b322d});}}['_createCurrentRevision'](_0x5176ae){const _0x5cf512=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5cf512),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5176ae,'to':_0x5176ae,'id':_0x5cf512,'name':'','creatorId':null}));}['_makeRevision']({name:_0x12fe54,from:_0x38cd0d,to:_0x4a3995,creatorId:_0x16132d,id:_0x47d065}){const _0xce9f36=this['buildRevisionData']({'from':_0x38cd0d,'to':_0x4a3995});_0xce9f36['name']=_0x12fe54,_0xce9f36['creatorId']=_0x16132d,_0xce9f36['id']=_0x47d065;const _0x4b8f4a=this['addRevisionData'](_0xce9f36);return this['adapter']&&this['_bufferUpdate'](_0xce9f36['id'],_0xce9f36,!0x0),_0x4b8f4a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x27d973){return(_0x27d973=_0x27d973['filter'](_0x4e7e90=>!_0x4e7e90['name']||'revision-start'!==_0x4e7e90['name']&&'revision-end'!==_0x4e7e90['name']))['forEach'](_0x22d9f1=>{'string'!=typeof _0x22d9f1&&(_0x22d9f1['children']=this['_removeRevisionMarkers'](_0x22d9f1['children']),_0x22d9f1['attributes']=_0x22d9f1['attributes']['filter'](_0x59eb9c=>!_0x59eb9c[0x0]['startsWith']('data-revision-')));}),_0x27d973;}}function P(_0x595bc5,_0x58f1b8){const _0x518139=_0x58f1b8['editing']['view']['document'];if('string'==typeof _0x595bc5)return new _0xa66c6(_0x518139,_0x595bc5);{const _0x3ba75e=_0x595bc5['children']['map'](_0x49dd28=>P(_0x49dd28,_0x58f1b8));return new(E[_0x595bc5['type']]||_0x1d9fc4)(_0x518139,_0x595bc5['name'],_0x595bc5['attributes'],_0x3ba75e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x6bad1c){this['editor']=_0x6bad1c,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'](_0x2361fd){this['source']=_0x2361fd;const _0x39d32c=new Map(),_0x38d19b=new Map(),_0x1c5303=this['editor']['model']['document']['roots']['map'](_0x1f15b4=>_0x1f15b4['rootName']);for(const _0x3298dd of _0x1c5303){const _0x4955e0=this['editor']['model']['document']['getRoot'](_0x3298dd),_0x1ee70c=T(_0x4955e0);_0x39d32c['set'](_0x3298dd,_0x1ee70c),_0x38d19b['set'](_0x3298dd,Object['fromEntries'](_0x4955e0['getAttributes']()));}const _0x3fbbbf=Array['from'](this['editor']['model']['markers'])['map'](_0x22177a=>[_0x22177a['name'],_0x22177a['getRange']()]),_0x308b7d=this['source']['version'];this['_saveMetaData'](_0x308b7d,_0x39d32c,_0x3fbbbf,_0x38d19b),this['_startingRevisionId']=this['_revisionId'];const _0x328afb=new Map(),_0x465bac=new Map();for(const _0x7f710 of _0x1c5303){const _0x4b1dc4=F(_0x7f710);_0x328afb['set'](_0x7f710,_0x4b1dc4),_0x465bac['set'](_0x7f710,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x328afb,[],_0x465bac);}['getData'](_0x2e0e1e,_0x42dab9){if(this['_lastFrom']===_0x2e0e1e&&this['_lastTo']<=_0x42dab9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x42dab9,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e0e1e)){const _0x4cd7a1=this['_getPreviousFrom'](_0x2e0e1e);this['_calculateMetaData'](_0x4cd7a1,_0x2e0e1e,!0x1);}this['_calculateMetaData'](_0x2e0e1e,_0x42dab9,!0x0);}return this['_lastFrom']=_0x2e0e1e,this['_lastTo']=_0x42dab9,this['_getState']();}['loadState'](_0x28219a){this['_reset'](),this['_lastFrom']=_0x28219a['fromVersion'],this['_lastTo']=_0x28219a['toVersion'];for(const _0x2665df in _0x28219a['diffData']){const _0x5ef54a=_0x28219a['diffData'][_0x2665df]['attachChange'],_0x2a516d=_0x554cb7(_0x28219a['diffData'][_0x2665df]['attributesBefore'])||{},_0x209854=this['_makeModelFromViewString'](_0x28219a['diffData'][_0x2665df]['deletions']);_0x209854['rootName']=_0x2665df,_0x209854['_isAttached']=!_0x5ef54a||!_0x5ef54a['isAttached'],_0x209854['isAttached']=()=>_0x209854['_isAttached'],this['_baseRoots']['set'](_0x2665df,_0x209854),this['_baseRootsAttributes']['set'](_0x2665df,_0x2a516d),_0x5ef54a&&this['_touchedRoots']['set'](_0x2665df,_0x5ef54a);const _0x2b391c=this['_makeIdsRoot'](_0x209854);this['_baseIdsRoots']['set'](_0x2665df,_0x2b391c);for(const [_0x13a908,_0x32ee97]of _0x209854['markers']){if(!_0x13a908['startsWith']('revision:'))continue;const _0x3ffbf3=_0x13a908['split'](':')[0x2];for(const _0x2f64dd of _0x32ee97['getWalker']({'singleCharacters':!0x0})){const _0x55651e=this['_getVidAttributeName'](_0x2f64dd),_0x5f141f='elementEnd'==_0x2f64dd['type']?_0x2f64dd['previousPosition']['path']['slice'](0x0,-0x1):_0x2f64dd['previousPosition']['path'],_0x4f54a2=_0x2b391c['getNodeByPath'](_0x5f141f)['getAttribute'](_0x55651e);this['_touched']['set'](_0x4f54a2,{'userId':_0x3ffbf3});}}}this['_startingRevisionId']=this['_revisionId'];const _0x110d3b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1fc91e=>!this['_touched']['has'](_0x1fc91e));let _0x514323=0x0;const _0x558a82=new Map();for(const _0x2c3435 in _0x28219a['diffData']){const _0x4a4eeb=_0x28219a['diffData'][_0x2c3435]['attachChange'],_0x54d4f0=_0x554cb7(_0x28219a['diffData'][_0x2c3435]['attributesAfter'])||{},_0x156c01=this['_makeModelFromViewString'](_0x28219a['diffData'][_0x2c3435]['insertions']);_0x156c01['rootName']=_0x2c3435,_0x156c01['_isAttached']=!_0x4a4eeb||_0x4a4eeb['isAttached'],_0x156c01['isAttached']=()=>_0x156c01['_isAttached'],this['_diffRoots']['set'](_0x2c3435,_0x156c01),this['_diffRootsAttributes']['set'](_0x2c3435,_0x54d4f0);const _0x3b9ee7=this['_makeIdsRoot'](_0x156c01,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2c3435,_0x3b9ee7),_0x558a82['set'](_0x2c3435,_0x156c01['isAttached']()?_0x54d4f0:{});for(const [_0x5cf128,_0x2230d9]of _0x156c01['markers']){if(!_0x5cf128['startsWith']('revision:'))continue;const _0x380451=_0x5cf128['split'](':')[0x2];for(const _0x56131a of _0x2230d9['getWalker']({'singleCharacters':!0x0})){const _0x1d349b=this['_getVidAttributeName'](_0x56131a),_0x294788=this['_revisionId']++,_0x4b6fb0='elementEnd'==_0x56131a['type']?_0x56131a['previousPosition']['path']['slice'](0x0,-0x1):_0x56131a['previousPosition']['path'];_0x3b9ee7['getNodeByPath'](_0x4b6fb0)['_setAttribute'](_0x1d349b,_0x294788),this['_touched']['set'](_0x294788,{'userId':_0x380451});}}for(const _0x68330b of this['editor']['model']['createRangeIn'](_0x156c01)['getWalker']({'singleCharacters':!0x0})){const _0x159dd6=this['_getVidAttributeName'](_0x68330b),_0x206834='elementEnd'==_0x68330b['type']?_0x68330b['previousPosition']['path']['slice'](0x0,-0x1):_0x68330b['previousPosition']['path'],_0x1a95af=_0x3b9ee7['getNodeByPath'](_0x206834);_0x1a95af['getAttribute'](_0x159dd6)>0x0||_0x1a95af['_setAttribute'](_0x159dd6,_0x110d3b[_0x514323++]);}for(const [_0xa75c86,_0x1b5aac]of _0x156c01['markers'])_0xa75c86['startsWith']('revision:')||this['_markers']['set'](_0xa75c86,_0x1b5aac);}const _0x5c5b12=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5c5b12),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c5b12,0x1));const _0x223d69=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x223d69),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x223d69,0x1));const _0x44db07=Array['from'](this['_diffRoots'])['map'](([_0x5c1146,_0x1b9aea])=>[_0x5c1146,T(_0x1b9aea)]);this['_saveMetaData'](this['_lastTo'],_0x44db07,this['_markers'],_0x558a82);}['_makeModelFromViewString'](_0x4ce4c2){const _0xcd513=JSON['parse'](_0x4ce4c2),_0x4fab24=this['editor']['editing']['view']['document'],_0x225872=new _0x5bdaa9(_0x4fab24,_0xcd513['map'](_0x31e78b=>P(_0x31e78b,this['editor'])));return this['editor']['data']['toModel'](_0x225872);}['_saveMetaData'](_0x35ee9b,_0x156ca7,_0x1b4e7d,_0x44609b){const _0x170bed=new Map(_0x156ca7),_0x78cd1e=new Map(_0x554cb7(_0x44609b)),_0x37386a=new Map();for(const [_0x20576a,_0x244a72]of _0x1b4e7d)_0x37386a['set'](_0x20576a,{'start':_0x244a72['start']['clone'](),'end':_0x244a72['end']['clone'](),'rootName':_0x244a72['root']['rootName']});this['_savedMetaData']['set'](_0x35ee9b,{'roots':_0x170bed,'markers':_0x37386a,'rootsAttributes':_0x78cd1e});}['_removeMetaData'](_0x44df12){this['_savedMetaData']['delete'](_0x44df12);}['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'](_0xd86074,_0x7d5f2d=null){let _0x15f0e4=null;_0xd86074['is']('documentFragment')||(_0x15f0e4=new ut(_0xd86074['name'],{'vid_start':null===_0x7d5f2d?this['_revisionId']++:_0x7d5f2d++}));const _0x29dd7a=[];for(const _0x297601 of _0xd86074['getChildren']())if(_0x297601['is']('element')){_0x29dd7a['push'](this['_makeIdsRoot'](_0x297601,_0x7d5f2d));const _0x1a8c61=_0x29dd7a[_0x29dd7a['length']-0x1];null!==_0x7d5f2d&&(_0x7d5f2d=_0x1a8c61['is']('element','$text')?_0x1a8c61['getAttribute']('vid')+0x1:_0x1a8c61['getAttribute']('vid_end')+0x1);}else{for(let _0x2a35b7=0x0;_0x2a35b7<_0x297601['offsetSize'];_0x2a35b7++)_0x29dd7a['push'](new ut('$text',{'vid':null===_0x7d5f2d?this['_revisionId']++:_0x7d5f2d++}));}if(_0xd86074['is']('documentFragment')){const _0x2c00c2=F(_0xd86074['rootName']);return _0x2c00c2['_insertChild'](0x0,_0x29dd7a),_0x2c00c2;}return _0x15f0e4['_setAttribute']('vid_end',null===_0x7d5f2d?this['_revisionId']++:_0x7d5f2d++),_0x15f0e4['_insertChild'](0x0,_0x29dd7a),_0x15f0e4;}['_calculateMetaData'](_0x461c03,_0x4a416d,_0x24500e){this['_reset']();const {roots:_0x2045b4,markers:_0x85d8f,rootsAttributes:_0x101ba2}=this['_savedMetaData']['get'](_0x461c03);this['_baseRoots']=new Map(_0x2045b4),this['_baseRootsAttributes']=new Map(_0x554cb7(_0x101ba2));for(const [_0x4f6b65,_0x2512fd]of this['_baseRoots'])if('$graveyard'!==_0x4f6b65&&(this['_diffRoots']['set'](_0x4f6b65,T(_0x2512fd)),this['_diffRootsAttributes']=new Map(_0x554cb7(_0x101ba2)),_0x24500e)){const _0x459f01=this['_revisionId'];this['_idsRoots']['set'](_0x4f6b65,this['_makeIdsRoot'](_0x2512fd)),this['_baseIdsRoots']['set'](_0x4f6b65,this['_makeIdsRoot'](_0x2512fd,_0x459f01));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x24500e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x48cf18,_0x1529e7]of _0x85d8f){const _0x39d088=this['_baseRoots']['get'](_0x1529e7['rootName']),_0x3f4b26=this['_diffRoots']['get'](_0x1529e7['rootName']),_0x1283ac=new ft(this['_fixPosition'](_0x1529e7['start'],_0x39d088),this['_fixPosition'](_0x1529e7['end'],_0x39d088)),_0x1e4af9=this['_fixRange'](_0x1283ac,_0x3f4b26);_0x39d088['markers']['set'](_0x48cf18,_0x1283ac),this['_markers']['set'](_0x48cf18,_0x1e4af9);}this['_applyOperations'](_0x461c03,_0x4a416d,_0x24500e);}['_applyOperations'](_0x52ad2a,_0x7a592f,_0x130961){for(const _0x342707 of this['source']['getOperations'](_0x52ad2a,_0x7a592f))this['_handleOperation'](_0x342707,_0x130961);for(const _0x49c4c6 of this['_diffRoots']['values']())_0x49c4c6['markers']['clear']();for(const [_0x713f69,_0x468e8b]of this['_markers']){this['_diffRoots']['get'](_0x468e8b['root']['rootName'])['markers']['set'](_0x713f69,_0x468e8b['clone']());}const _0x2ff582=new Map(),_0x42ec00=new Map();for(const [_0x5b2df3,_0x5ba48f]of this['_diffRoots'])_0x2ff582['set'](_0x5b2df3,T(_0x5ba48f)),_0x42ec00['set'](_0x5b2df3,this['_diffRootsAttributes']['get'](_0x5b2df3));this['_saveMetaData'](_0x7a592f,_0x2ff582,this['_markers'],_0x42ec00);}['_getPreviousFrom'](_0xee985b){const _0x39a9b1=Array['from'](this['_savedMetaData']['keys']());_0x39a9b1['sort']((_0x57f937,_0x27adc9)=>_0x57f937-_0x27adc9),_0x39a9b1['reverse']();for(const _0x34e538 of _0x39a9b1)if(_0x34e538<_0xee985b)return _0x34e538;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x424cea,_0x57e12c){const _0x285dff=Array['from'](_0x57e12c['markers'])['map'](([_0x56d159,_0x556222])=>[_0x56d159,this['_fixRange'](_0x556222,_0x424cea)]);_0x424cea['markers']=new Map(_0x285dff);}['_transformMarkers'](_0x43ffd6){for(const _0x12a11f of this['_markers']['values']()){const _0x1f4243=_0x12a11f['getTransformedByOperation'](_0x43ffd6),_0x295717=ft['_createFromRanges'](_0x1f4243);_0x12a11f['start']=_0x295717['start'],_0x12a11f['end']=_0x295717['end'];}}['_handleOperation'](_0x3929a8,_0x3f1a0c){if('addRoot'!=_0x3929a8['type']&&'detachRoot'!=_0x3929a8['type']){if('insert'==_0x3929a8['type']){const _0x4622b3=_0x3929a8['position']['root']['rootName'];this['_diffRoots']['has'](_0x4622b3)||(this['_diffRoots']['set'](_0x4622b3,F(_0x4622b3,!0x0)),this['_diffRootsAttributes']['set'](_0x4622b3,{}),_0x3f1a0c&&this['_idsRoots']['set'](_0x4622b3,F(_0x4622b3,!0x0)));}else{if('addRootAttribute'==_0x3929a8['type']||'removeRootAttribute'==_0x3929a8['type']||'changeRootAttribute'==_0x3929a8['type'])return void this['_handleRootAttributeOperation'](_0x3929a8);'marker'==_0x3929a8['type']&&this['_handleMarkerOperation'](_0x3929a8);}if('marker'!==_0x3929a8['type']){const _0x257518=this['_cloneOperation'](_0x3929a8,this['_diffRoots']);_0x257518['_execute'](),this['_transformMarkers'](_0x257518);}if(_0x3f1a0c)switch(_0x3929a8['type']){case'insert':this['_handleInsertOperation'](_0x3929a8);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3929a8);break;case'merge':this['_handleMergeOperation'](_0x3929a8);break;case'split':this['_handleSplitOperation'](_0x3929a8);}}else this['_handleRootOperation'](_0x3929a8,_0x3f1a0c);}['_cloneOperation'](_0x53b25a,_0x4e1954){const _0x37a54a=_0x53b25a['clone']();return _0x37a54a['_authorId']=_0x53b25a['_authorId'],this['_fixOperation'](_0x37a54a,_0x4e1954),_0x37a54a;}['_getBaseVids'](_0x535699){return _0x535699['map'](_0x424674=>{const _0x2c4da6=this['_getVidAttributeName'](_0x424674);return Number(_0x424674['item']['getAttribute'](_0x2c4da6));});}['_generateTape'](_0x1e4a18,_0x37ba0d){if(_0x1e4a18['is']('element','$text'))_0x37ba0d['push']({'item':_0x1e4a18,'type':'text'});else{_0x1e4a18['is']('element')&&_0x37ba0d['push']({'item':_0x1e4a18,'type':'elementStart'});for(const _0x4a6395 of _0x1e4a18['getChildren']())this['_generateTape'](_0x4a6395,_0x37ba0d);_0x1e4a18['is']('element')&&_0x37ba0d['push']({'item':_0x1e4a18,'type':'elementEnd'});}return _0x37ba0d;}['_getState'](){const _0x195f8e=new Map(this['_touched']),_0x40417f=new Map(_0x195f8e),_0x561430=new Map(),_0x465028={'insertions':{},'deletions':{}},_0x94ca04={'insertions':{},'deletions':{}},_0x4bbeeb=new Map(),_0x3d91b3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d91b3['delete']('$graveyard');for(const _0x23a526 of _0x3d91b3){const _0x482b52=this['_diffRoots']['get'](_0x23a526)||F(_0x23a526,!0x1),_0x151009=this['_baseRoots']['get'](_0x23a526)||F(_0x23a526,!0x1);_0x482b52['isAttached']()||_0x151009['isAttached']()?(_0x465028['insertions'][_0x23a526]=T(_0x482b52),_0x465028['deletions'][_0x23a526]=T(_0x151009),this['_copyMarkers'](_0x465028['deletions'][_0x23a526],_0x151009),this['_copyMarkers'](_0x465028['insertions'][_0x23a526],_0x482b52),_0x94ca04['insertions'][_0x23a526]=this['_generateTape'](this['_idsRoots']['get'](_0x23a526),[]),_0x94ca04['deletions'][_0x23a526]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x23a526)||F(_0x23a526,!0x1),[])):_0x3d91b3['delete'](_0x23a526);}for(const _0x5e3a7a of _0x3d91b3){const _0x479407=_0x94ca04['insertions'][_0x5e3a7a];for(const _0x3f995e of _0x479407){const _0x518959=this['_getVidAttributeName'](_0x3f995e),_0x233bba=_0x3f995e['item']['getAttribute'](_0x518959);_0x40417f['delete'](_0x233bba),_0x233bba>=this['_startingRevisionId']&&_0x561430['set'](_0x233bba,_0x195f8e['get'](_0x233bba));}}for(const _0x2b1567 of _0x3d91b3){const _0x2c7252=_0x94ca04['insertions'][_0x2b1567],_0x2a894e=this['_getBaseVids'](_0x94ca04['deletions'][_0x2b1567]);let _0x2fc330=0x0;for(const _0x3b30bc of _0x2c7252){const _0x3f0244=this['_getVidAttributeName'](_0x3b30bc),_0x1bb1ff=_0x3b30bc['item']['getAttribute'](_0x3f0244);if(!_0x561430['has'](_0x1bb1ff)&&!_0x4bbeeb['has'](_0x1bb1ff)){if(_0x40417f['has'](_0x1bb1ff))_0x2fc330++;else{if(_0x1bb1ff!=_0x2a894e[_0x2fc330]){const _0x30706c=_0x195f8e['get'](_0x1bb1ff)||_0x195f8e['get'](_0x2a894e[_0x2fc330]);for(;_0x1bb1ff!=_0x2a894e[_0x2fc330];)_0x40417f['has'](_0x2a894e[_0x2fc330])||(_0x4bbeeb['set'](_0x2a894e[_0x2fc330],_0x30706c),_0x195f8e['set'](_0x2a894e[_0x2fc330],_0x30706c)),_0x2fc330++;}_0x2fc330++;}}}}for(const _0x3a20b4 of _0x3d91b3){const _0x220e55=_0x94ca04['insertions'][_0x3a20b4];for(const _0x53bee6 of _0x220e55){const _0x47c538=this['_getVidAttributeName'](_0x53bee6),_0x1181d6=_0x53bee6['item']['getAttribute'](_0x47c538);if(_0x4bbeeb['has'](_0x1181d6)){const _0x33d31f=_0x4bbeeb['get'](_0x1181d6);_0x40417f['has'](_0x1181d6)||_0x40417f['set'](_0x1181d6,{..._0x33d31f}),_0x561430['set'](_0x1181d6,{..._0x33d31f});}}}for(const _0x47415f of _0x40417f['keys']())_0x47415f>=this['_startingRevisionId']&&_0x40417f['delete'](_0x47415f);const _0xb02464=new Map();for(const _0x1ae03b of _0x3d91b3){let _0x205189=_0x94ca04['insertions'][_0x1ae03b];for(const _0x4c21f5 of _0x205189)if(_0x4c21f5['item']['is']('element','tableCell')){const _0x57ce1b=this['_getVidAttributeName'](_0x4c21f5),_0x483c81=_0x4c21f5['item']['getAttribute'](_0x57ce1b);if(_0x561430['has'](_0x483c81)){const _0x32af95=_0x4c21f5['item']['parent']['parent']['getAttribute']('vid_start'),_0x3c1815=_0xb02464['get'](_0x32af95)||new Set();_0x3c1815['add'](_0x561430['get'](_0x483c81)['userId']),_0xb02464['set'](_0x32af95,_0x3c1815);}}_0x205189=_0x94ca04['deletions'][_0x1ae03b];for(const _0x3127d2 of _0x205189)if(_0x3127d2['item']['is']('element','tableCell')){const _0x5010b3=this['_getVidAttributeName'](_0x3127d2),_0x16b89f=_0x3127d2['item']['getAttribute'](_0x5010b3);if(_0x40417f['has'](_0x16b89f)){const _0x11295c=_0x3127d2['item']['parent']['parent']['getAttribute']('vid_start'),_0x2396a7=_0xb02464['get'](_0x11295c)||new Set();_0x2396a7['add'](_0x40417f['get'](_0x16b89f)['userId']),_0xb02464['set'](_0x11295c,_0x2396a7);}}for(const _0x5efb94 of _0xb02464['keys']())(_0x561430['has'](_0x5efb94)||_0x40417f['has'](_0x5efb94))&&_0xb02464['delete'](_0x5efb94);}for(const _0x2aeb4d of _0x3d91b3){const _0x7e0360=_0x94ca04['insertions'][_0x2aeb4d];let _0x1e3059=null,_0x298342=null;for(const _0x1899ba of _0x7e0360){const _0x104d2e=this['_getVidAttributeName'](_0x1899ba),_0x3b45e8=_0x1899ba['item']['getAttribute'](_0x104d2e),_0x599ca5=_0xb02464['get'](_0x3b45e8);_0x599ca5&&'elementStart'==_0x1899ba['type']&&(_0x1e3059=Array['from'](_0x599ca5)[0x0],_0x298342=_0x1899ba['item']['getAttribute']('vid_end')),_0x1e3059&&(_0x40417f['set'](_0x3b45e8,{'userId':_0x1e3059}),_0x561430['set'](_0x3b45e8,{'userId':_0x1e3059})),_0x3b45e8==_0x298342&&(_0x1e3059=null,_0x298342=null);}}const _0xde7ad0={},_0x526821=new Set();for(const _0x44db25 of _0x3d91b3){const _0x3e5343=_0x465028['deletions'][_0x44db25],_0x408cdb=_0x465028['insertions'][_0x44db25];for(const {userId:_0x413627}of this['_touchedMarkers']['values']())null!==_0x413627&&_0x526821['add'](_0x413627);for(const {userId:_0x2733da}of this['_touchedRoots']['values']())null!==_0x2733da&&_0x526821['add'](_0x2733da);this['_markChanges'](_0x408cdb,_0x94ca04['insertions'][_0x44db25],_0x561430,'insertion',_0x526821),this['_markChanges'](_0x3e5343,_0x94ca04['deletions'][_0x44db25],_0x40417f,'deletion',_0x526821),_0xde7ad0[_0x44db25]={'insertions':this['_prepareViewToSave'](_0x408cdb),'deletions':this['_prepareViewToSave'](_0x3e5343),'attachChange':this['_touchedRoots']['get'](_0x44db25)||null,'attributesBefore':_0x554cb7(this['_baseRootsAttributes']['get'](_0x44db25))||{},'attributesAfter':_0x554cb7(this['_diffRootsAttributes']['get'](_0x44db25))};}return{'diffData':_0xde7ad0,'authorsIds':Array['from'](_0x526821)};}['_processRootBeforeSave'](_0x5adf0f){for(const [,_0x5ba6be]of _0x5adf0f['markers']){const _0xbb382b=_0x5ba6be['start']['getAncestors']()['filter'](_0xd8a107=>'tableCell'==_0xd8a107['name']);for(const _0x21fae6 of _0xbb382b)0x1==_0x21fae6['childCount']&&_0x21fae6['getChild'](0x0)['is']('element','paragraph')&&_0x21fae6['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x7a80){this['_processRootBeforeSave'](_0x7a80);const _0x517f58=this['editor']['data']['toView'](_0x7a80,{}),_0x1083aa=Array['from'](_0x517f58['getChildren']())['map'](_0x184e16=>this['_getViewJson'](_0x184e16));return JSON['stringify'](_0x1083aa);}['_getViewJson'](_0x41653d){if(_0x41653d['is']('$text'))return _0x41653d['data'];{const _0x16bc76=_0x41653d;return{'type':Object['keys'](E)['find'](_0x3118dd=>_0x41653d instanceof E[_0x3118dd]),'name':_0x16bc76['name'],'attributes':Array['from'](_0x16bc76['getAttributes']()),'children':Array['from'](_0x16bc76['getChildren']())['map'](_0x13944d=>this['_getViewJson'](_0x13944d))};}}['_markChanges'](_0x13e072,_0x39f690,_0xc3e61f,_0x3225c5,_0x45caee){let _0x14e46c=null,_0x231713=null,_0x28fcdb=0x0;const _0x3eb480=this['editor']['model'];for(let _0x1d918f=0x0;_0x1d918f<_0x39f690['length'];_0x1d918f++){const _0x383ead=this['_getVidAttributeName'](_0x39f690[_0x1d918f]),_0xe82626=_0x39f690[_0x1d918f]['item']['getAttribute'](_0x383ead),_0xd55ef7=_0xc3e61f['get'](_0xe82626),_0x182db0=_0x1d918f==_0x39f690['length']-0x1;(!_0x14e46c&&_0xd55ef7&&(_0x14e46c=_0xd55ef7,_0x231713=_0x39f690[_0x1d918f]),_0x14e46c&&(!_0xd55ef7||_0xd55ef7['userId']!=_0x14e46c['userId']))&&(_0x23fd1a(_0xd55ef7,B(_0x231713,_0x13e072,_0x3eb480),B(_0x39f690[_0x1d918f],_0x13e072,_0x3eb480)),_0x14e46c=_0xd55ef7||null,_0x231713=_0xd55ef7?_0x39f690[_0x1d918f]:null),_0x14e46c&&_0x182db0&&_0x23fd1a(_0xd55ef7,B(_0x231713,_0x13e072,_0x3eb480),J(_0x39f690[_0x1d918f],_0x13e072,_0x3eb480));}function _0x23fd1a(_0x259d04,_0x5d7b08,_0x23bf6d){const _0x16e45f=_0x14e46c['userId'],_0x18aa4f='revision:'+_0x3225c5+':'+_0x16e45f+':'+_0x28fcdb++,_0x33e5c9=_0x3eb480['createRange'](_0x5d7b08,_0x23bf6d);_0x13e072['markers']['set'](_0x18aa4f,_0x33e5c9),null!==_0x16e45f&&_0x45caee['add'](_0x16e45f);}}['_getVidAttributeName'](_0x8a1ae1){switch(_0x8a1ae1['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x532dc0,_0x4f2995){_0x532dc0['baseVersion']=null;for(const _0xfdf8cf in _0x532dc0){const _0x185d6d=_0x532dc0[_0xfdf8cf];if(_0x185d6d instanceof vt){const _0x4b2c88=_0x4f2995['get'](_0x185d6d['root']['rootName']);_0x532dc0[_0xfdf8cf]=this['_fixPosition'](_0x185d6d,_0x4b2c88);}if(_0x185d6d instanceof ft){const _0x149398=_0x4f2995['get'](_0x185d6d['root']['rootName']);_0x532dc0[_0xfdf8cf]=this['_fixRange'](_0x185d6d,_0x149398);}'root'===_0xfdf8cf&&(_0x532dc0['root']=_0x4f2995['get'](_0x532dc0['root']['rootName']));}}['_fixRange'](_0x2a3007,_0x33b62c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2a3007['start'],_0x33b62c),this['_fixPosition'](_0x2a3007['end'],_0x33b62c));}['_fixPosition'](_0x41e3b3,_0x38f4d4){return this['editor']['model']['createPositionFromPath'](_0x38f4d4,_0x41e3b3['path'],_0x41e3b3['stickiness']);}['_handleInsertOperation'](_0x35ad9b){const _0x410423=this['_idsRoots']['get'](_0x35ad9b['position']['root']['rootName']),_0xcf0d86=this['_fixPosition'](_0x35ad9b['position'],_0x410423),_0xd08245=null===_0x35ad9b['_authorId']?null:_0x35ad9b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5715eb=_0xcf0d86['parent'],_0x24079d=this['_revisionId'],_0x2d6dfd=[];for(const _0x16e645 of _0x35ad9b['nodes'])if(_0x16e645['is']('element'))_0x2d6dfd['push'](this['_makeIdsRoot'](_0x16e645));else{for(let _0x562911=0x0;_0x562911<_0x16e645['offsetSize'];_0x562911++)_0x2d6dfd['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0xfecb0e=this['_revisionId'];for(let _0x2f1236=_0x24079d;_0x2f1236<_0xfecb0e;_0x2f1236++)this['_touched']['set'](_0x2f1236,{'userId':_0xd08245});_0x5715eb['_insertChild'](_0xcf0d86['offset'],_0x2d6dfd);}['_handleMoveOperation'](_0x225c38){(_0x225c38=this['_cloneOperation'](_0x225c38,this['_idsRoots']))['_execute']();const _0x4c9a57=null===_0x225c38['_authorId']?null:_0x225c38['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2374e1=_0x225c38['getMovedRangeStart'](),_0x185f6e=_0x2374e1['parent'],_0x642a9e=_0x2374e1['offset'];!function _0x3975f8(_0x177682,_0x521720,_0x20dcbc,_0x4d80fc){for(let _0x436c02=_0x20dcbc;_0x436c02<_0x4d80fc;_0x436c02++){const _0x244d12=_0x521720['getChild'](_0x436c02);_0x244d12['is']('element','$text')?_0x177682['set'](_0x244d12['getAttribute']('vid'),{'userId':_0x4c9a57}):(_0x177682['set'](_0x244d12['getAttribute']('vid_start'),{'userId':_0x4c9a57}),_0x3975f8(_0x177682,_0x244d12,0x0,_0x244d12['childCount']),_0x177682['set'](_0x244d12['getAttribute']('vid_end'),{'userId':_0x4c9a57}));}}(this['_touched'],_0x185f6e,_0x642a9e,_0x642a9e+_0x225c38['howMany']);}['_handleMergeOperation'](_0x2cc98c){const _0xefb5f6=null===(_0x2cc98c=this['_cloneOperation'](_0x2cc98c,this['_idsRoots']))['_authorId']?null:_0x2cc98c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x151ece=_0x2cc98c['targetPosition']['parent'],_0x1a20b8=_0x2cc98c['sourcePosition']['parent'],_0x4342df=_0x151ece['getAttribute']('vid_end'),_0x243e22=_0x1a20b8['getAttribute']('vid_start');_0x151ece['_setAttribute']('vid_end',_0x1a20b8['getAttribute']('vid_end')),_0x1a20b8['_setAttribute']('vid_end',_0x4342df),this['_touched']['set'](_0x243e22,{'userId':_0xefb5f6}),this['_touched']['set'](_0x4342df,{'userId':_0xefb5f6}),_0x2cc98c['_execute']();}['_handleSplitOperation'](_0xfe3193){const _0x5980af=null===(_0xfe3193=this['_cloneOperation'](_0xfe3193,this['_idsRoots']))['_authorId']?null:_0xfe3193['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5dd29a=_0xfe3193['graveyardPosition'],_0x5cdd58=_0xfe3193['splitPosition']['parent'];_0xfe3193['_execute']();const _0x25d8a8=_0x5cdd58['getAttribute']('vid_end'),_0x5d249b=_0xfe3193['insertionPosition']['nodeAfter'];if(_0x5dd29a){const _0x3d7cd9=_0x5d249b['getAttribute']('vid_end'),_0x6d10c2=_0x5cdd58['getAttribute']('vid_end');_0x5cdd58['_setAttribute']('vid_end',_0x3d7cd9),_0x5d249b['_setAttribute']('vid_end',_0x6d10c2),this['_touched']['set'](_0x5cdd58['getAttribute']('vid_end'),{'userId':_0x5980af}),this['_touched']['set'](_0x5d249b['getAttribute']('vid_start'),{'userId':_0x5980af});}else{const _0x46bc2e=this['_revisionId']++,_0x5cb148=this['_revisionId']++;_0x5cdd58['_setAttribute']('vid_end',_0x46bc2e),_0x5d249b['_setAttribute']('vid_start',_0x5cb148),_0x5d249b['_setAttribute']('vid_end',_0x25d8a8),this['_touched']['set'](_0x46bc2e,{'userId':_0x5980af}),this['_touched']['set'](_0x5cb148,{'userId':_0x5980af});}}['_handleMarkerOperation'](_0xb7307b){if(!_0xb7307b['affectsData'])return;const _0x495b1e=(_0xb7307b=this['_cloneOperation'](_0xb7307b,this['_diffRoots']))['oldRange']?_0xb7307b['oldRange']['root']:null,_0x73ff87=_0xb7307b['newRange']?_0xb7307b['newRange']['root']:null;_0x495b1e&&this['_markers']['delete'](_0xb7307b['name']),_0x73ff87&&this['_markers']['set'](_0xb7307b['name'],_0xb7307b['newRange']['clone']());const _0x2bed49=null===_0xb7307b['_authorId']?null:_0xb7307b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2730f7=_0xb7307b['name'];if(!this['_touchedMarkers']['has'](_0x2730f7))return void this['_touchedMarkers']['set'](_0x2730f7,{'range':_0xb7307b['oldRange'],'userId':_0x2bed49});const _0x513c0e=this['_touchedMarkers']['get'](_0x2730f7),_0x591e02=_0x513c0e['range'],_0x2cb1b9=_0xb7307b['newRange'];null==_0x591e02&&null==_0x2cb1b9||_0x591e02&&_0x2cb1b9&&_0x591e02['isEqual'](_0x2cb1b9)?this['_touchedMarkers']['delete'](_0xb7307b['name']):_0x513c0e['userId']=_0x2bed49;}['_handleRootOperation'](_0x41f4bc,_0xe104d0){this['_diffRoots']['has'](_0x41f4bc['rootName'])?this['_diffRoots']['get'](_0x41f4bc['rootName'])['_isAttached']=_0x41f4bc['isAdd']:(this['_diffRoots']['set'](_0x41f4bc['rootName'],F(_0x41f4bc['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x41f4bc['rootName'],{}),_0xe104d0&&this['_idsRoots']['set'](_0x41f4bc['rootName'],F(_0x41f4bc['rootName'],!0x0)));const _0x58808b=null===_0x41f4bc['_authorId']?null:_0x41f4bc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x45aee6=this['_touchedRoots']['get'](_0x41f4bc['rootName']);_0x45aee6&&_0x45aee6['userId']===_0x58808b?this['_touchedRoots']['delete'](_0x41f4bc['rootName']):this['_touchedRoots']['set'](_0x41f4bc['rootName'],{'userId':_0x58808b,'isAttached':_0x41f4bc['isAdd']});}['_handleRootAttributeOperation'](_0x208d97){const _0x27b817=this['_diffRootsAttributes']['get'](_0x208d97['root']['rootName']);null===_0x208d97['newValue']?delete _0x27b817[_0x208d97['key']]:_0x27b817[_0x208d97['key']]=_0x208d97['newValue'];}}function T(_0x2cf7e2){const _0x3ffff1=F(_0x2cf7e2['rootName'],_0x2cf7e2['isAttached']());for(const _0x3a2ab2 of _0x2cf7e2['getChildren']()){const _0xb1dcb0=_0x3a2ab2['_clone'](!0x0);_0x3ffff1['_appendChild'](_0xb1dcb0);}return _0x3ffff1;}function F(_0x50f76c,_0x196e1c=!0x0){const _0x52b22a=new gt();return _0x52b22a['rootName']=_0x50f76c,_0x52b22a['_isAttached']=_0x196e1c,_0x52b22a['isAttached']=()=>_0x52b22a['_isAttached'],_0x52b22a;}function B(_0x4ff8c9,_0x349a45,_0x2087d7){const _0x3e5ff4='elementEnd'==_0x4ff8c9['type']?_0x2087d7['createPositionAt'](_0x4ff8c9['item'],'end'):_0x2087d7['createPositionBefore'](_0x4ff8c9['item']);return _0x2087d7['createPositionFromPath'](_0x349a45,_0x3e5ff4['path'],_0x3e5ff4['stickiness']);}function J(_0x42cf62,_0x172822,_0x4c311a){const _0x3eacf2='elementStart'==_0x42cf62['type']?_0x4c311a['createPositionAt'](_0x42cf62['item'],0x0):_0x4c311a['createPositionAfter'](_0x42cf62['item']);return _0x4c311a['createPositionFromPath'](_0x172822,_0x3eacf2['path'],_0x3eacf2['stickiness']);}class os extends _0x2e6edd{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3ebd00,_0x4ad333){super(_0x3ebd00),this['focusTracker']=new _0x4ac0e5(),this['keystrokes']=new _0x4e6c4f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4ad333),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'](),_0x24f35c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x8a5048=_0x2d62c6=>_0x2d62c6['stopPropagation']();this['keystrokes']['set']('arrowright',_0x8a5048),this['keystrokes']['set']('arrowleft',_0x8a5048),this['keystrokes']['set']('arrowup',_0x8a5048),this['keystrokes']['set']('arrowdown',_0x8a5048);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1ec365){this['revisionNameInputView']['fieldView']['element']['value']=_0x1ec365['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5bbe20){const _0x19a4f4=new at(this['locale'],ti),_0x4c3232=_0x19a4f4['fieldView'];_0x4c3232['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5652df=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5bbe20&&(_0x5652df+='\x20('+m(this['locale'],'optional')+')'),(_0x19a4f4['label']=_0x5652df,_0x4c3232['on']('input',()=>{this['revisionNameInputValue']=_0x4c3232['element']['value']['trim']();}),_0x19a4f4);}}class f extends _0x1cb4d9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4a39df=this['editor'],_0x1aba1e=_0x4a39df['plugins']['get']('RevisionTracker');_0x4a39df['ui']['componentFactory']['add']('revisionHistory',_0xa6c910=>{const _0x578cdd=_0x35729b(_0xa6c910),_0x518859=_0x578cdd['panelView']['children'],_0xbf23b2=new _0x59f615(_0xa6c910),_0xa20042=new te(_0xa6c910),_0x382a6d=new _0x2dd9e5(_0xa6c910),_0x27f30a=new te(_0xa6c910),_0x56fe1b=new _0x2dd9e5(_0xa6c910);return _0x578cdd['bind']('isEnabled')['to'](_0x1aba1e,'isReady',_0x1aba1e,'isEnabled',_0x4a39df,'isReadOnly',(_0xdf3b98,_0x2decfb,_0x4d475f)=>_0xdf3b98&&_0x2decfb&&!_0x4d475f),_0x578cdd['buttonView']['set']({'icon':_0x157b93,'label':m(_0xa6c910,'Revision\x20history'),'tooltip':!0x0}),_0x382a6d['set']({'label':m(_0xa6c910,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x382a6d['bind']('isEnabled')['to'](_0x1aba1e,'isReady',_0x1aba1e,'isEnabled',_0x4a39df,'isReadOnly',(_0xb2d50d,_0x5a34ba,_0x5d031c)=>_0xb2d50d&&_0x5a34ba&&!_0x5d031c),_0x382a6d['on']('execute',()=>this['_showDialog']()),_0x56fe1b['set']({'label':m(_0xa6c910,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x56fe1b['bind']('isEnabled')['to'](_0x1aba1e,'isReady',_0x4a39df,'isReadOnly',(_0x1532cd,_0x1f519b)=>_0x1532cd&&!_0x1f519b),_0x56fe1b['on']('execute',()=>{_0x4a39df['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x578cdd['isOpen']=!0x1,_0x4a39df['editing']['view']['focus']();}),_0xa20042['children']['add'](_0x382a6d),_0x27f30a['children']['add'](_0x56fe1b),_0xbf23b2['role']='menu',_0xbf23b2['items']['addMany']([_0xa20042,_0x27f30a]),_0x518859['add'](_0xbf23b2),_0x578cdd;}),_0x4a39df['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x58a14f=this['editor'],_0x3038bd=_0x58a14f['locale'],_0xaff93f=new _0x283a03(_0x3038bd),_0x39ec8c=new _0x14d625(_0x3038bd);_0xaff93f['buttonView']['set']({'icon':_0x157b93,'label':m(_0x3038bd,'Revision\x20history')});const _0x5f33f5=new _0x2f80d0(_0x3038bd,_0xaff93f),_0x511ff0=new _0x11bc93(_0x3038bd);_0x511ff0['set']({'label':m(_0x3038bd,'Save\x20current\x20revision')}),_0x511ff0['delegate']('execute')['to'](_0xaff93f),_0x511ff0['on']('execute',()=>{this['_showDialog']();}),_0x5f33f5['children']['add'](_0x511ff0),_0x39ec8c['items']['add'](_0x5f33f5);const _0x2da27c=new _0x2f80d0(_0x3038bd,_0xaff93f),_0xb1ad6=new _0x11bc93(_0x3038bd);return _0xb1ad6['set']({'label':m(_0x3038bd,'Open\x20revision\x20history')}),_0xb1ad6['delegate']('execute')['to'](_0xaff93f),_0xb1ad6['on']('execute',()=>{_0x58a14f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2da27c['children']['add'](_0xb1ad6),_0x39ec8c['items']['add'](_0x2da27c),_0xaff93f['panelView']['children']['add'](_0x39ec8c),_0xaff93f;}['_showDialog'](){const _0x3244c4=this['editor'],_0x26338f=_0x3244c4['locale'],_0x16a520=_0x3244c4['plugins']['get']('Dialog'),_0xcf90e2=_0x3244c4['plugins']['get']('RevisionTracker');function _0x5cec89(_0x28eb28){_0x3244c4['config']['get']('revisionHistory.requireRevisionName')&&''===_0x28eb28['revisionName']?_0x28eb28['revisionNameInputView']['errorText']=m(_0x26338f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3244c4['plugins']['get'](u)['saveRevision']({'name':_0x28eb28['revisionName']}),_0x16a520['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5cec89(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x16a520['show']({'id':'revisionSave','title':m(_0x26338f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x3244c4['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x16a520['hide']()},{'label':m(_0x3244c4['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x587e5c){_0x587e5c['bind']('isEnabled')['to'](_0xcf90e2,'isReady',_0xcf90e2,'isEnabled',_0x3244c4,'isReadOnly',(_0x56a3ab,_0x3a5eaa,_0x1967bf)=>_0x56a3ab&&_0x3a5eaa&&!_0x1967bf);},'onExecute':()=>_0x5cec89(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x53f92c=this['editor'],_0x527d8b=_0x53f92c['locale'];this['_saveRevisionFormView']=new os(_0x527d8b,_0x53f92c['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x2e6edd{['changeId'];['_model'];constructor(_0x57d278,_0x11d35c){super(_0x57d278),this['_model']=_0x11d35c,this['changeId']=_0x11d35c['id'];const _0x5c329d=this['bindTemplate'],_0x2a9f39=m(_0x57d278,_0x11d35c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x11d35c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x11d35c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5c329d['to']('type',_0x5ca2ed=>'ck-revision-change__'+_0x5ca2ed)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2a9f39}]},{'text':'\x20'+_0x11d35c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4116db(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5c7418){super(),this['id']=_0x5c7418['id']||_0x2444de(),this['author']=_0x5c7418['author'],this['type']=_0x5c7418['type'],this['data']=_0x5c7418['data']||{},this['rootName']=_0x5c7418['rootName'],this['set']('createdAt',_0x5c7418['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(_0x3f3af9,_0x4bcd64){this['newRevisionId']=_0x3f3af9,this['oldRevisionId']=_0x4bcd64,this['changes']=new _0xd62129();}['_setChanges'](_0x36aec3){for(const _0x10c6f3 of _0x36aec3)this['changes']['add'](_0x10c6f3);}}const Y={'c':_0x474f23,'a':_0x1847f8,'e':_0x293013,'r':_0x100ce8,'u':_0x30b6b4};class d extends _0x1cb4d9{['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[_0x4f4638,_0x4f26cc,j];}constructor(_0x184c53){super(_0x184c53),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',(_0x460ea1,_0x1ca0e0,_0x7ef27c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4160d0=>{for(const _0x1a4664 of this['editor']['editing']['view']['document']['roots'])_0x7ef27c?_0x4160d0['removeClass']('ck-editor__editable__overlay',_0x1a4664):_0x4160d0['addClass']('ck-editor__editable__overlay',_0x1a4664);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x7f5e48=>null!==_0x7f5e48),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x139396,_0x1277a1,_0x55faf1)=>_0x139396&&_0x55faf1?_0x1277a1['changes']['getIndex'](_0x55faf1):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x10f239,_0x3dc9a6)=>_0x10f239?_0x3dc9a6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4f26cc);}['init'](){const _0x2d75c4=this['editor'],_0xb0f2f4=new yt(_0x2d75c4,{'direction':'backward'}),_0x367f9c=new yt(_0x2d75c4,{'direction':'forward'});(_0x2d75c4['commands']['add']('showPreviousChange',_0xb0f2f4),_0x2d75c4['commands']['add']('showNextChange',_0x367f9c),_0x2d75c4['commands']['add']('restoreRevision',new _t(_0x2d75c4)),this['on']('change:numberOfChanges',()=>{_0xb0f2f4['refresh'](),_0x367f9c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2d75c4['enableReadOnlyMode']('revision-viewer'),_0x2d75c4['plugins']['has']('WidgetToolbarRepository'))&&_0x2d75c4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x55a2ee){await this['loadRevisionData'](_0x55a2ee);const _0x433a07={};for(const _0x14b519 in _0x55a2ee['diffData']){if(_0x55a2ee['diffData'][_0x14b519]['attachChange']&&!_0x55a2ee['diffData'][_0x14b519]['attachChange']['isAttached'])continue;const _0x30c1d0=this['_removeRevisionMarkers'](JSON['parse'](_0x55a2ee['diffData'][_0x14b519]['insertions'])),_0x243bd6=this['editor']['editing']['view']['document'],_0x70543d=new _0x5bdaa9(_0x243bd6,_0x30c1d0['map'](_0x34f96b=>this['_getViewObj'](_0x34f96b)));this['editor']['data']['processor']['useFillerType']('marked'),_0x433a07[_0x14b519]=this['editor']['data']['processor']['toData'](_0x70543d),this['editor']['data']['processor']['useFillerType']('default');}return _0x433a07;}async['getRevisionRootsAttributes'](_0x4c49cc){await this['loadRevisionData'](_0x4c49cc);const _0x55bb91={};for(const _0x5ef38 in _0x4c49cc['diffData'])_0x4c49cc['diffData'][_0x5ef38]['attachChange']&&!_0x4c49cc['diffData'][_0x5ef38]['attachChange']['isAttached']||(_0x55bb91[_0x5ef38]=_0x4c49cc['diffData'][_0x5ef38]['attributesAfter']||{});return _0x55bb91;}['_removeRevisionMarkers'](_0x495d06){return(_0x495d06=_0x495d06['filter'](_0x4ee59d=>!_0x4ee59d['name']||'revision-start'!==_0x4ee59d['name']&&'revision-end'!==_0x4ee59d['name']))['forEach'](_0x5ec2b7=>{'string'!=typeof _0x5ec2b7&&(_0x5ec2b7['children']=this['_removeRevisionMarkers'](_0x5ec2b7['children']),_0x5ec2b7['attributes']=_0x5ec2b7['attributes']['filter'](_0x504456=>!_0x504456[0x0]['startsWith']('data-revision-')));}),_0x495d06;}async['compare'](_0xb0d021,_0x5bc0d6,_0x2365a6=!0x1){if(!this['isEnabled'])return;const _0x516d4c=this['diff'],_0x40611f=this['repository'],_0x4c70d3='string'==typeof _0xb0d021?_0x40611f['getRevision'](_0xb0d021):_0xb0d021,_0x2697b4='string'==typeof _0x5bc0d6?_0x40611f['getRevision'](_0x5bc0d6):_0x5bc0d6,_0x3a6fd7=_0x4c70d3['id'],_0x514415=_0x2697b4?_0x2697b4['id']:null;if(!_0x2365a6&&this['diff']&&this['diff']['newRevisionId']===_0x3a6fd7&&this['diff']['oldRevisionId']===_0x514415)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3a6fd7,_0x514415);const _0x2b46c9=this['_getRevisionsRange'](_0x4c70d3,_0x2697b4,!0x0)['map'](_0x252be9=>this['loadRevisionData'](_0x252be9));return _0x2b46c9['push'](new Promise(_0xb9f6f4=>{setTimeout(_0xb9f6f4,0x14);})),Promise['all'](_0x2b46c9)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x22f550=this['_getDiff'](_0x3a6fd7,_0x514415);for(const _0x3ca09a of _0x22f550['changes'])this['_changeIdToChange']['set'](_0x3ca09a['id'],_0x3ca09a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x118f00=>{for(const _0x2a9335 of this['editor']['model']['document']['getRootNames']())_0x118f00['detachRoot'](_0x2a9335);for(const _0x3b7d22 of Object['keys'](_0x22f550['model'])){const _0x22ea1f=_0x118f00['addRoot'](_0x3b7d22);for(const _0x32911a of Object['keys'](_0x22f550['attributes'][_0x3b7d22]))_0x118f00['setAttribute'](_0x32911a,_0x22f550['attributes'][_0x3b7d22][_0x32911a],_0x22ea1f);_0x118f00['insert'](_0x22f550['model'][_0x3b7d22],_0x22ea1f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x22f550['changes'])),this['isReady']=!0x0;})['catch'](_0x4cf889=>{console['error'](_0x4cf889),this['_cleanUp'](),_0x516d4c&&(this['diff']=_0x516d4c),this['isReady']=!0x0;});}['addRevisionData'](_0x556d68,_0x3b2968){const _0x550e96=this['repository']['createRevision'](_0x556d68);return _0x550e96['on']('_update',(_0x5ecb27,_0x35bbeb,_0x489c79)=>_0x3b2968(_0x35bbeb,_0x489c79,_0x550e96)),this['repository']['addRevision'](_0x550e96),_0x550e96;}['loadRevisionData'](_0x32a904){if(!_0x32a904||_0x32a904['diffData'])return Promise['resolve']();{const _0x58b2b9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x58b2b9,'revisionId':_0x32a904['id']})['then'](_0x17d78d=>{_0x32a904['_update']({'diffData':_0x17d78d['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},_0x56f136=>{for(const _0x5b0e23 of this['editor']['model']['document']['getRootNames']())_0x56f136['detachRoot'](_0x5b0e23);});}['_sortAndFilterDiffChanges'](_0x2860e2){const _0x14ee94=[],_0x259ff2=new Map();for(const _0x367fec of this['editor']['model']['document']['getRootNames']()){const _0x579a3d=this['editor']['editing']['view']['getDomRoot'](_0x367fec);if(!_0x579a3d)continue;const _0x5c0e4b=_0x579a3d['getClientRects']()['item'](0x0);_0x5c0e4b&&(_0x14ee94['push'](_0x367fec),_0x259ff2['set'](_0x367fec,_0x5c0e4b));}return _0x14ee94['sort']((_0x29b162,_0x3185f0)=>{const _0x39916b=_0x259ff2['get'](_0x29b162),_0x6503df=_0x259ff2['get'](_0x3185f0);return _0x39916b['y']-_0x6503df['y']||_0x39916b['x']-_0x6503df['x'];}),(_0x2860e2=_0x2860e2['filter'](_0x1e4700=>_0x14ee94['includes'](_0x1e4700['rootName'])))['sort']((_0x12ebdc,_0x270107)=>_0x14ee94['indexOf'](_0x12ebdc['rootName'])-_0x14ee94['indexOf'](_0x270107['rootName'])),_0x2860e2;}['_makeTape'](_0x415ac9){const _0x5344f0=Array['from'](_0x415ac9['markers'])['filter'](([_0x11f865,_0x2b27d5])=>_0x11f865['startsWith']('revision:')&&!_0x2b27d5['isCollapsed']),_0x634ade=Array['from'](this['editor']['model']['createRangeIn'](_0x415ac9)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5344f0['length'])for(const _0x424022 of _0x634ade){const [_0x3afc70,_0x4a2501]=_0x5344f0[0x0],[,_0x250d2f,_0x17f18e]=_0x3afc70['split'](':');if(_0x4a2501['end']['isEqual'](_0x424022['nextPosition'])&&_0x5344f0['shift'](),(_0x424022['previousPosition']['isEqual'](_0x4a2501['start'])||_0x424022['previousPosition']['isAfter'](_0x4a2501['start']))&&('insertion'==_0x250d2f?_0x424022['isAdded']={'userId':_0x17f18e}:'deletion'==_0x250d2f&&(_0x424022['isRemoved']={'userId':_0x17f18e})),0x0==_0x5344f0['length'])break;}return _0x634ade;}['_refreshStartEndIndex'](_0x30e82a){const _0x31c2f2=new Map();for(let _0x643820=0x0;_0x643820<_0x30e82a['length'];_0x643820++)'text'===_0x30e82a[_0x643820]['type']?(_0x30e82a[_0x643820]['item']['startIndex']=_0x643820,_0x30e82a[_0x643820]['item']['endIndex']=_0x643820):('elementStart'===_0x30e82a[_0x643820]['type']?_0x30e82a[_0x643820]['item']['startIndex']=_0x643820:'elementEnd'===_0x30e82a[_0x643820]['type']&&(_0x30e82a[_0x643820]['item']['endIndex']=_0x643820),_0x31c2f2['set'](_0x30e82a[_0x643820]['id'],_0x643820));for(const _0x32530b of _0x31c2f2['values']())'elementStart'===_0x30e82a[_0x32530b]['type']?_0x30e82a[_0x32530b]['item']['endIndex']=_0x31c2f2['get'](_0x30e82a[_0x32530b]['pairId']):'elementEnd'===_0x30e82a[_0x32530b]['type']&&(_0x30e82a[_0x32530b]['item']['startIndex']=_0x31c2f2['get'](_0x30e82a[_0x32530b]['pairId']));}['_processTape'](_0x199ee7){for(let _0x545bbb=0x0;_0x545bbb<_0x199ee7['length'];_0x545bbb++){if('elementStart'===_0x199ee7[_0x545bbb]['type'])_0x199ee7[_0x545bbb]['item']['startIndex']=_0x545bbb;else{if('elementEnd'===_0x199ee7[_0x545bbb]['type']){_0x199ee7[_0x545bbb]['item']['endIndex']=_0x545bbb;const _0x1c0cff=_0x199ee7[_0x545bbb]['item']['startIndex'];_0x199ee7[_0x1c0cff]['pairId']=_0x199ee7[_0x545bbb]['id'],_0x199ee7[_0x545bbb]['pairId']=_0x199ee7[_0x1c0cff]['id'];}else _0x199ee7[_0x545bbb]['item']['startIndex']=_0x545bbb,_0x199ee7[_0x545bbb]['item']['endIndex']=_0x545bbb,_0x199ee7[_0x545bbb]['pairId']=null;}_0x199ee7[_0x545bbb]['markersStart']||(_0x199ee7[_0x545bbb]['markersStart']=[],_0x199ee7[_0x545bbb]['markersEnd']=[]);}}['_markInsertions'](_0x2feb7b,_0x4eaef4){const _0x20f230=_0x2feb7b['filter'](_0x328a4d=>!_0x328a4d['isAdded']);for(let _0x2b7e25=0x0;_0x2b7e25<_0x4eaef4['length'];_0x2b7e25++)_0x4eaef4[_0x2b7e25]['isAdded']&&(_0x20f230[_0x2b7e25]['isAdded']=_0x4eaef4[_0x2b7e25]['isAdded']);}['_makeModelFromViewString'](_0x28b723){const _0xf557fd=JSON['parse'](_0x28b723),_0x3e0017=this['editor']['editing']['view']['document'],_0x36ec3b=new _0x5bdaa9(_0x3e0017,_0xf557fd['map'](_0xf95ced=>this['_getViewObj'](_0xf95ced)));return this['editor']['data']['toModel'](_0x36ec3b);}['_getViewObj'](_0x242ccd){const _0x102d97=this['editor']['editing']['view']['document'];if('string'==typeof _0x242ccd)return new _0xa66c6(_0x102d97,_0x242ccd);{const _0xb248f9=_0x242ccd['children']['map'](_0x2beff8=>this['_getViewObj'](_0x2beff8));return new(Y[_0x242ccd['type']]||_0x1d9fc4)(_0x102d97,_0x242ccd['name'],_0x242ccd['attributes'],_0xb248f9);}}['_getDiff'](_0x47a04a,_0x430a93=null){const _0x262243=this['repository']['getRevision'](_0x47a04a),_0x19355e=_0x430a93?this['repository']['getRevision'](_0x430a93):null,_0x513495=this['_getRevisionsRange'](_0x262243,_0x19355e),_0xd22686=_0x513495[_0x513495['length']-0x1],_0x441aab=new Map(),_0x1dbe5e={'model':{},'attributes':{},'changes':[]},_0x4c63fb=new Set(),_0x133e88=new Map();for(let _0x35645d=_0x513495['length']-0x1;_0x35645d>=0x0;_0x35645d--){const _0x1cc545=_0x513495[_0x35645d];for(const _0x322281 of Object['keys'](_0x1cc545['diffData']))if(_0x1cc545['diffData'][_0x322281]['attachChange']){const _0x35e3c5=_0x1cc545['diffData'][_0x322281]['attachChange'];_0x35e3c5['isAttached']?(_0x4c63fb['add'](_0x322281),_0x133e88['has'](_0x322281)&&_0x133e88['get'](_0x322281)['userId']==_0x35e3c5['userId']?_0x133e88['delete'](_0x322281):_0x133e88['set'](_0x322281,_0x35e3c5)):_0x133e88['has'](_0x322281)?(_0x4c63fb['delete'](_0x322281),_0x133e88['delete'](_0x322281)):(_0x4c63fb['add'](_0x322281),_0x133e88['set'](_0x322281,_0x35e3c5));}else _0x4c63fb['add'](_0x322281);}for(const _0x123693 of _0x4c63fb){const _0x2c737d=_0x133e88['has'](_0x123693)&&!_0x133e88['get'](_0x123693)['isAttached'];let _0x386a7c=_0x2c737d?_0x513495['length']-0x1:0x0;const _0x42661a=_0x2c737d?-0x1:0x1;for(;_0x513495[_0x386a7c];){const _0x59c8bf=_0x513495[_0x386a7c];if(_0x59c8bf['diffData'][_0x123693]){const _0xe3d51e=_0x2c737d?_0x59c8bf['diffData'][_0x123693]['attributesBefore']:_0x59c8bf['diffData'][_0x123693]['attributesAfter'];_0x1dbe5e['attributes'][_0x123693]=_0xe3d51e?_0x554cb7(_0xe3d51e):{};break;}_0x386a7c+=_0x42661a;}}for(const _0x14ef49 of _0x513495){_0x14ef49['model']={};for(const _0x32ebef of _0x14ef49['authors'])_0x441aab['set'](_0x32ebef['id'],_0x32ebef);for(const _0x12002b of _0x4c63fb){const _0x30f53c=_0x14ef49['diffData'][_0x12002b]?_0x14ef49['diffData'][_0x12002b]['insertions']:'[]',_0x1f637c=_0x14ef49['diffData'][_0x12002b]?_0x14ef49['diffData'][_0x12002b]['deletions']:'[]';_0x14ef49['model'][_0x12002b]={'insertions':this['_makeModelFromViewString'](_0x30f53c),'deletions':this['_makeModelFromViewString'](_0x1f637c)};}}for(const _0xfeae44 of _0x4c63fb){let _0x364b57=null,_0x39d9bd=0x0;const _0x192078=new Map(Array['from'](_0x262243['model'][_0xfeae44]['insertions']['markers'])['filter'](([_0x1151f2])=>!_0x1151f2['startsWith']('revision:')));let _0x531cb6=0x0;for(const _0xbc5c75 of _0x513495){const _0x8cb51c=this['_makeTape'](_0xbc5c75['model'][_0xfeae44]['insertions']);_0xbc5c75==_0x262243?(_0x364b57=_0x8cb51c,_0x39d9bd=_0x364b57['length'],_0x364b57['forEach'](_0x9b8869=>{_0x9b8869['id']=_0x531cb6++;}),this['_processTape'](_0x364b57)):this['_markInsertions'](_0x364b57,_0x8cb51c);const _0xa0ebe1=_0x364b57['filter'](_0x2f3258=>!_0x2f3258['isAdded'])['map'](_0x42d9a7=>_0x42d9a7['id']);let _0x28dc22=0x0;const _0x2a0287=this['_makeTape'](_0xbc5c75['model'][_0xfeae44]['deletions']);_0x2a0287['forEach'](_0x2ac570=>{_0x2ac570['isRemoved']?_0x2ac570['id']=_0x39d9bd++:_0x2ac570['id']=_0xa0ebe1[_0x28dc22++];}),this['_processTape'](_0x2a0287),this['_setDistance'](_0x364b57,'isAdded'),this['_setDistance'](_0x2a0287,'isRemoved'),_0xbc5c75==_0x262243&&this['_markMarkers'](_0x364b57,_0x192078),_0x364b57=this['_joinTapes'](_0x364b57,_0x2a0287),this['_refreshStartEndIndex'](_0x364b57),this['_setDistance'](_0x364b57,'isRemoved');}_0x364b57=_0x364b57['filter'](_0x563f68=>!(_0x563f68['isAdded']&&_0x563f68['isRemoved']));const _0x4c0ed1=new Map(_0xd22686['model'][_0xfeae44]['deletions']['markers']),_0x344513=new Set(_0x192078['keys']());for(const _0x2da3c1 of _0x4c0ed1['keys']())_0x344513['delete'](_0x2da3c1);this['_markSuggestions'](_0x364b57,_0x344513),this['_fixObsoleteTags'](_0x364b57),_0x364b57=this['_removeMissingPairs'](_0x364b57),_0x364b57=this['_markMismatchedRemovedTags'](_0x364b57),_0x364b57=this['_removeUnsupportedChanges'](_0x364b57);const {root:_0x380248,changes:_0x1a24bf}=this['_makeModelFromTape'](_0x364b57,_0x441aab,_0xfeae44);_0x1dbe5e['model'][_0xfeae44]=_0x380248;const _0x3758b2=_0x133e88['get'](_0xfeae44);if(_0x3758b2){const _0x37620b=_0x441aab['get'](_0x3758b2['userId']),_0xcd07d8=new r({'author':_0x37620b,'type':_0x3758b2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xfeae44});_0x1a24bf['unshift'](_0xcd07d8),_0x1dbe5e['attributes'][_0xfeae44]['revisionHistoryAttachChange']=_0xcd07d8['id'];}_0x1dbe5e['changes']=_0x1dbe5e['changes']['concat'](_0x1a24bf);}return _0x1dbe5e;}['_markMarkers'](_0xdeeab3,_0xde87ee){for(let _0x482d82=0x0;_0x482d82<_0xdeeab3['length'];_0x482d82++)for(const [_0x16214e,_0x232ad0]of _0xde87ee)_0x232ad0['start']['isEqual'](_0xdeeab3[_0x482d82]['previousPosition'])&&_0xdeeab3[_0x482d82]['markersStart']['push'](_0x16214e),_0x232ad0['end']['isEqual'](_0xdeeab3[_0x482d82]['nextPosition'])&&_0xdeeab3[_0x482d82]['markersEnd']['push'](_0x16214e);}['_joinTapes'](_0x568977,_0x599b08){let _0x32281c=[],_0x265ab4=0x0,_0x2bd5f9=0x0;for(;_0x265ab4<_0x568977['length']||_0x2bd5f9<_0x599b08['length'];){const _0x10a7b1=_0x568977[_0x265ab4]||{},_0x2696c0=_0x599b08[_0x2bd5f9]||{};if(_0x10a7b1['id']==_0x2696c0['id'])_0x265ab4++,_0x2bd5f9++,_0x32281c['push'](_0x10a7b1);else{if(_0x2696c0['isRemoved']&&_0x10a7b1['isAdded']){const {commonTape:_0x228224,iEnd:_0x12e59a,jEnd:_0x55ce46}=this['_threeWayMerge'](_0x568977,_0x265ab4,_0x599b08,_0x2bd5f9);_0x32281c=_0x32281c['concat'](_0x228224),_0x265ab4=_0x12e59a,_0x2bd5f9=_0x55ce46;}else _0x2696c0['isRemoved']?(_0x2bd5f9++,_0x32281c['push'](_0x2696c0)):(_0x265ab4++,_0x32281c['push'](_0x10a7b1));}}return _0x32281c;}['_markSuggestions'](_0x5edbc8,_0x3ae5f2){const _0x3880b6=[];for(let _0x126648=0x0;_0x126648<_0x5edbc8['length'];_0x126648++){for(let _0x31de7e=0x0;_0x31de7e<_0x5edbc8[_0x126648]['markersStart']['length'];_0x31de7e++){const _0x21cec9=_0x5edbc8[_0x126648]['markersStart'][_0x31de7e];if(!_0x3ae5f2['has'](_0x21cec9))continue;const {group:_0x4932b8,type:_0x5c627b,authorId:_0x4cb1bd}=_0x4ef04a(_0x21cec9);'revision-suggestion'!=_0x4932b8||'insertion'!=_0x5c627b&&'deletion'!=_0x5c627b||(_0x3880b6['unshift']({'type':_0x5c627b,'name':_0x21cec9,'userId':_0x4cb1bd}),_0x5edbc8[_0x126648]['markersStart']['splice'](_0x31de7e,0x1),_0x31de7e--);}_0x4f0bfd(_0x5edbc8[_0x126648]);for(let _0x1eff16=0x0;_0x1eff16<_0x5edbc8[_0x126648]['markersEnd']['length'];_0x1eff16++){const _0x16e8bb=_0x5edbc8[_0x126648]['markersEnd'][_0x1eff16];if(!_0x3ae5f2['has'](_0x16e8bb))continue;const {group:_0x2b19fa,type:_0x267bac}=_0x4ef04a(_0x16e8bb);if('revision-suggestion'!=_0x2b19fa||'insertion'!=_0x267bac&&'deletion'!=_0x267bac)continue;_0x5edbc8[_0x126648]['markersEnd']['splice'](_0x1eff16,0x1),_0x1eff16--;const _0x1db933=_0x3880b6['findIndex'](_0x3c190f=>_0x3c190f['name']==_0x16e8bb);_0x1db933>-0x1&&_0x3880b6['splice'](_0x1db933,0x1);}}function _0x4ef04a(_0x1a6d1c){const _0x43e445=_0x1a6d1c['split'](':');return{'group':_0x43e445[0x0],'type':_0x43e445[0x1],'subType':_0x43e445['length']>=0x5?_0x43e445[0x2]:null,'id':_0x43e445['length']<0x5?_0x43e445[0x2]:_0x43e445[0x3],'authorId':_0x43e445['length']<0x5?_0x43e445[0x3]:_0x43e445[0x4],'markerCount':0x6==_0x43e445['length']?_0x43e445[0x5]:null};}function _0x4f0bfd(_0x28cca6){for(let _0x223207=0x0;_0x223207<_0x3880b6['length'];_0x223207++){if(_0x28cca6['isAdded']&&'insertion'==_0x3880b6[_0x223207]['type'])return _0x28cca6['isAddSuggestion']=_0x3880b6[_0x223207],void delete _0x28cca6['isAdded'];if(!_0x28cca6['isAdded']&&!_0x28cca6['isRemoved']&&'deletion'==_0x3880b6[_0x223207]['type'])return void(_0x28cca6['isRemoveSuggestion']=_0x3880b6[_0x223207]);}}}['_setDistance'](_0x4463a1,_0xc3d14f){let _0x114b45=0x0,_0x296436=!0x1;const _0x21c495=new Map();for(const _0x3275d6 of _0x4463a1)_0x3275d6[_0xc3d14f]?_0x296436&&(_0x114b45++,_0x296436=!0x1):(_0x114b45++,_0x296436=!0x0),_0x21c495['set'](_0x3275d6['id'],_0x114b45);for(let _0x1e7509=0x0;_0x1e7509<_0x4463a1['length'];_0x1e7509++){if('isRemoved'==_0xc3d14f&&_0x4463a1[_0x1e7509]['isAdded']||'isAdded'==_0xc3d14f&&_0x4463a1[_0x1e7509]['isRemoved'])continue;if('text'==_0x4463a1[_0x1e7509]['type']){_0x4463a1[_0x1e7509]['distance']=0x0;continue;}const _0x37e689=_0x21c495['get'](_0x4463a1[_0x1e7509]['pairId']),_0x451b64=_0x21c495['get'](_0x4463a1[_0x1e7509]['id']);_0x4463a1[_0x1e7509]['distance']=_0x37e689-_0x451b64;}}['_getRevisionsRange'](_0x36070f,_0xb02aca,_0x4673b1=!0x1){const _0x3219c3=[];let _0xeff4a6=this['repository']['getIndex'](_0x36070f),_0x168710=this['repository']['getIndex'](_0xb02aca);for(-0x1==_0x168710&&(_0x168710=this['repository']['_revisions']['length'],_0x4673b1=!0x1);_0xeff4a6<_0x168710;)_0x3219c3['push'](this['repository']['getRevision'](_0xeff4a6)),_0xeff4a6++;return _0x4673b1&&_0x3219c3['push'](this['repository']['getRevision'](_0xeff4a6)),_0x3219c3;}['_threeWayMerge'](_0x1a4e6e,_0x2a36e9,_0x3ce101,_0x31b809){const _0x1d670e=this['editor']['model']['schema'];let _0x18418e=_0x2a36e9;for(;_0x1a4e6e[_0x18418e]&&_0x1a4e6e[_0x18418e]['isAdded'];)_0x18418e++;let _0xc4fbde=_0x31b809;for(;_0x3ce101[_0xc4fbde]&&_0x3ce101[_0xc4fbde]['isRemoved'];)_0xc4fbde++;_0x4107a(_0x1a4e6e,_0x2a36e9,_0x18418e),_0x4107a(_0x3ce101,_0x31b809,_0xc4fbde);const _0x5eddc8=_0x3ce101['slice'](_0x31b809,_0xc4fbde)['concat'](_0x1a4e6e['slice'](_0x2a36e9,_0x18418e));return _0x5eddc8['sort']((_0x2e971a,_0x39fe2a)=>_0x2e971a['side']!=_0x39fe2a['side']?_0x2e971a['side']-_0x39fe2a['side']:_0x2e971a['level']!=_0x39fe2a['level']?_0x2e971a['level']-_0x39fe2a['level']:_0x2e971a['distance']!=_0x39fe2a['distance']?_0x39fe2a['distance']-_0x2e971a['distance']:!!_0x2e971a['isAdded']!=!!_0x39fe2a['isAdded']?-0x1==_0x2e971a['side']||0x0==_0x2e971a['side']?_0x2e971a['isAdded']?-0x1:0x1:_0x2e971a['isAdded']?0x1:-0x1:_0x2e971a['index']-_0x39fe2a['index']),{'commonTape':_0x5eddc8,'iEnd':_0x18418e,'jEnd':_0xc4fbde};function _0x4107a(_0x5c3046,_0x291fb5,_0x55273b){let _0x15fc6a=-0x1,_0x158836=Number['POSITIVE_INFINITY'],_0x45d95c=!0x0;for(let _0x19569a=_0x291fb5;_0x19569a<_0x55273b;_0x19569a++)if(_0x1d670e['isInline'](_0x5c3046[_0x19569a]['item'])||(_0x45d95c=!0x1),_0x5c3046[_0x19569a]['item']['startIndex']<_0x291fb5&&(_0x15fc6a=_0x19569a),_0x5c3046[_0x19569a]['item']['endIndex']>=_0x55273b){_0x158836=_0x19569a;break;}_0x45d95c&&(_0x15fc6a=_0x55273b-0x1);for(let _0x4d4508=_0x291fb5;_0x4d4508<_0x55273b;_0x4d4508++)_0x5c3046[_0x4d4508]['side']=_0x4d4508<=_0x15fc6a?-0x1:_0x4d4508<_0x158836?0x0:0x1,_0x5c3046[_0x4d4508]['index']=_0x4d4508;let _0x4505fb=0x0;for(let _0xad36a6=_0x291fb5;_0xad36a6<=_0x15fc6a;_0xad36a6++)0x0==_0x5c3046[_0xad36a6]['distance']?_0x5c3046[_0xad36a6]['level']=_0x4505fb:(_0x4505fb++,_0x5c3046[_0xad36a6]['level']=_0x4505fb,_0x4505fb++);for(let _0x3fbdee=_0x291fb5;_0x3fbdee<_0x55273b;_0x3fbdee++)0x0==_0x5c3046[_0x3fbdee]['side']&&(_0x5c3046[_0x3fbdee]['level']=_0x4505fb);_0x4505fb=0x0;for(let _0x567540=_0x55273b-0x1;_0x567540>=_0x158836;_0x567540--)0x0==_0x5c3046[_0x567540]['distance']?_0x5c3046[_0x567540]['level']=_0x4505fb:(_0x4505fb--,_0x5c3046[_0x567540]['level']=_0x4505fb,_0x4505fb--);}}['_fixObsoleteTags'](_0x448f1a){const _0x87afee=new Map(),_0x1c43b5=this['editor']['model']['schema'];for(let _0x494bae=0x1;_0x494bae<_0x448f1a['length'];_0x494bae++){let _0x3961f3,_0x2f1c00,_0x5a9d8c;const _0x357180=_0x448f1a[_0x494bae],_0x531361=_0x448f1a[_0x494bae-0x1];if('text'==_0x357180['type'])continue;if(_0x357180['type']!=_0x531361['type'])continue;if(!_0x1c43b5['isBlock'](_0x531361['item'])||_0x1c43b5['isLimit'](_0x531361['item']))continue;if(!_0x1c43b5['isBlock'](_0x357180['item'])||_0x1c43b5['isLimit'](_0x357180['item']))continue;if((_0x448f1a[_0x494bae]['isAdded']||_0x448f1a[_0x494bae]['isAddSuggestion'])&&_0x448f1a[_0x494bae-0x1]['isRemoved'])_0x3961f3=_0x448f1a[_0x494bae],_0x2f1c00=_0x448f1a[_0x494bae-0x1],_0x5a9d8c=_0x494bae-0x1;else{if(!_0x448f1a[_0x494bae]['isRemoved']||!_0x448f1a[_0x494bae-0x1]['isAdded']&&!_0x448f1a[_0x494bae-0x1]['isAddSuggestion'])continue;_0x3961f3=_0x448f1a[_0x494bae-0x1],_0x2f1c00=_0x448f1a[_0x494bae],_0x5a9d8c=_0x494bae;}const _0x2c7d60=_0x3961f3['level']==_0x2f1c00['level'],_0x1ff15c=Math['abs'](_0x3961f3['level'])<Math['abs'](_0x2f1c00['level'])&&0x0==_0x2f1c00['distance'];(_0x2c7d60||_0x1ff15c)&&(_0x87afee['set'](_0x2f1c00['id'],_0x3961f3['id']),_0x448f1a['splice'](_0x5a9d8c,0x1),_0x494bae--,_0x3961f3['isAdded']=!0x1);}for(let _0x47556f=0x0;_0x47556f<_0x448f1a['length'];_0x47556f++)_0x87afee['has'](_0x448f1a[_0x47556f]['pairId'])&&(_0x448f1a[_0x47556f]['pairId']=_0x87afee['get'](_0x448f1a[_0x47556f]['pairId']));}['_removeMissingPairs'](_0x413de6){const _0x5304f1=new Set(_0x413de6['map'](_0x50c156=>_0x50c156['id']));for(let _0xd25c1c=0x0;_0xd25c1c<_0x413de6['length'];_0xd25c1c++)_0x5304f1['has'](_0x413de6[_0xd25c1c]['pairId'])||0x0==_0x413de6[_0xd25c1c]['distance']||(_0x413de6[_0xd25c1c]['isIncorrect']=!0x0);return _0x413de6['filter'](_0x374b18=>!_0x374b18['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3ef915){const _0x38fac7=new Set();for(let _0x139467=0x0;_0x139467<_0x3ef915['length'];_0x139467++){if(_0x38fac7['has'](_0x3ef915[_0x139467]['id'])&&_0x3ef915[_0x139467]['isRemoved']&&(_0x3ef915[_0x139467]['isIncorrect']=!0x0),_0x3ef915[_0x139467]['isIncorrect'])continue;if(0x0==_0x3ef915[_0x139467]['distance'])continue;if('elementStart'!=_0x3ef915[_0x139467]['type'])continue;if(null==_0x3ef915[_0x139467]['pairId'])continue;let _0x3c7104=_0x139467+0x1,_0x56db38=0x0;for(;_0x3ef915[_0x3c7104]['id']!=_0x3ef915[_0x139467]['pairId'];)'elementStart'==_0x3ef915[_0x3c7104]['type']?_0x56db38++:'elementEnd'==_0x3ef915[_0x3c7104]['type']&&_0x56db38--,_0x3c7104++;if(0x0!=_0x56db38){if(_0x3ef915[_0x139467]['isRemoved'])_0x3ef915[_0x139467]['isIncorrect']=!0x0;else{for(;_0x3c7104!=_0x139467;)_0x3ef915[_0x3c7104]['isRemoved']&&0x0!=_0x3ef915[_0x3c7104]['distance']&&(_0x3ef915[_0x3c7104]['isIncorrect']=!0x0,_0x38fac7['add'](_0x3ef915[_0x3c7104]['pairId'])),_0x3c7104--;}}}return _0x3ef915['filter'](_0x1eb2e8=>!_0x1eb2e8['isIncorrect']);}['_removeUnsupportedChanges'](_0x24d555){const _0x10b4ce=this['editor']['model']['schema'];for(let _0x5c15b5=0x0;_0x5c15b5<_0x24d555['length'];_0x5c15b5++){if(!(_0x24d555[_0x5c15b5]['isAdded']||_0x24d555[_0x5c15b5]['isAddSuggestion']||_0x24d555[_0x5c15b5]['isRemoved']||_0x24d555[_0x5c15b5]['isRemoveSuggestion']))continue;if(0x0==_0x24d555[_0x5c15b5]['distance'])continue;const _0xce6ad5=_0x24d555[_0x5c15b5]['item'];_0x10b4ce['isBlock'](_0xce6ad5)||_0x10b4ce['isLimit'](_0xce6ad5)||(_0x24d555[_0x5c15b5]['isAdded']&&delete _0x24d555[_0x5c15b5]['isAdded'],_0x24d555[_0x5c15b5]['isAddSuggestion']&&delete _0x24d555[_0x5c15b5]['isAddSuggestion'],_0x24d555[_0x5c15b5]['isRemoveSuggestion']&&delete _0x24d555[_0x5c15b5]['isRemoveSuggestion'],_0x24d555[_0x5c15b5]['isRemoved']&&(_0x24d555[_0x5c15b5]['isIncorrect']=!0x0));}return _0x24d555['filter'](_0x2ffc6a=>!_0x2ffc6a['isIncorrect']);}['_makeModelFromTape'](_0x162065,_0x1bd4ff,_0x1c330d){const _0x21b465=new gt(),_0x3d9a72=[],_0x38c2dc=new Map(),_0x42e6d3=this['editor']['model'],_0x26f9f1=_0x42e6d3['schema'],_0x283697=[_0x21b465],_0x1b2373={},_0x58d862={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2af52d=null;const _0x5436a7=[0x0];for(let _0x49d103=0x0;_0x49d103<_0x162065['length'];_0x49d103++)if('elementStart'===_0x162065[_0x49d103]['type']){_0x162065[_0x49d103]['previousPosition']=_0x42e6d3['createPositionFromPath'](_0x21b465,_0x5436a7);const _0x43a0fa=new ut(_0x162065[_0x49d103]['item']['name'],_0x162065[_0x49d103]['item']['getAttributes']());_0x283697[0x0]['_appendChild'](_0x43a0fa),_0x5436a7['push'](0x0),_0x283697['unshift'](_0x43a0fa),_0x162065[_0x49d103]['nextPosition']=_0x42e6d3['createPositionFromPath'](_0x21b465,_0x5436a7);}else'elementEnd'===_0x162065[_0x49d103]['type']?(_0x283697['shift'](),_0x162065[_0x49d103]['previousPosition']=_0x42e6d3['createPositionFromPath'](_0x21b465,_0x5436a7),_0x5436a7['pop'](),_0x5436a7[_0x5436a7['length']-0x1]++,_0x162065[_0x49d103]['nextPosition']=_0x42e6d3['createPositionFromPath'](_0x21b465,_0x5436a7)):(_0x162065[_0x49d103]['previousPosition']=_0x42e6d3['createPositionFromPath'](_0x21b465,_0x5436a7),_0x2af52d?_0x2af52d['_data']+=_0x162065[_0x49d103]['item']['data']:_0x2af52d=new wt(_0x162065[_0x49d103]['item']['data'],_0x162065[_0x49d103]['item']['getAttributes']()),_0x162065[_0x49d103+0x1]&&'text'===_0x162065[_0x49d103+0x1]['type']&&_0x351477(_0x2af52d,_0x162065[_0x49d103+0x1]['item'])||(_0x283697[0x0]['_appendChild'](_0x2af52d),_0x2af52d=null),_0x5436a7[_0x5436a7['length']-0x1]+=_0x162065[_0x49d103]['item']['offsetSize'],_0x162065[_0x49d103]['nextPosition']=_0x42e6d3['createPositionFromPath'](_0x21b465,_0x5436a7));for(let _0x48e61a=0x0;_0x48e61a<_0x162065['length'];_0x48e61a++){const _0x55cdef=_0x162065[_0x48e61a]['previousPosition'],_0x4ada45=_0x162065[_0x48e61a]['nextPosition'];for(const _0x3871e1 of _0x162065[_0x48e61a]['markersStart'])_0x38c2dc['set'](_0x3871e1,{'start':_0x55cdef,'end':null});_0x3c8cc1('isRemoveSuggestion',_0x48e61a,_0x55cdef,_0x4ada45),_0x3c8cc1('isAddSuggestion',_0x48e61a,_0x55cdef,_0x4ada45),_0x3c8cc1('isRemoved',_0x48e61a,_0x55cdef,_0x4ada45),_0x3c8cc1('isAdded',_0x48e61a,_0x55cdef,_0x4ada45);for(const _0x431a36 of _0x162065[_0x48e61a]['markersEnd']){_0x38c2dc['get'](_0x431a36)['end']=_0x4ada45;}}for(const [_0x33b7e0,_0x54d992]of _0x38c2dc){const _0x5059cf=this['editor']['model']['createRange'](_0x54d992['start'],_0x54d992['end']);_0x21b465['markers']['set'](_0x33b7e0,_0x5059cf);}return _0x3d9a72['sort']((_0x663cb5,_0xf223d2)=>{const _0x8faab8=_0x21b465['markers']['get']('revision:'+_0x663cb5['id']),_0xe0669=_0x21b465['markers']['get']('revision:'+_0xf223d2['id']);return _0x8faab8['start']['isBefore'](_0xe0669['start'])?-0x1:_0x8faab8['start']['isAfter'](_0xe0669['start'])?0x1:_0x8faab8['end']['isBefore'](_0xe0669['end'])?-0x1:_0x8faab8['end']['isAfter'](_0xe0669['end'])?0x1:'add'===_0x663cb5['type']?-0x1:0x1;}),{'root':_0x21b465,'changes':_0x3d9a72};function _0x3c8cc1(_0x5d9214,_0x5636b4,_0x442ee6,_0x1ffc9a){const _0x41c7c2=!!_0x162065[_0x5636b4][_0x5d9214],_0x393b74=_0x41c7c2?_0x162065[_0x5636b4][_0x5d9214]['userId']:null,_0x3cf4c0=_0x5636b4===_0x162065['length']-0x1,_0x532d3f=_0x58d862[_0x5d9214][0x0],_0x6fda85=_0x26f9f1['isObject'](_0x162065[_0x5636b4]['item']);!_0x1b2373[_0x5d9214]&&_0x41c7c2?_0x1b2373[_0x5d9214]={'start':_0x442ee6,'tapeItem':_0x162065[_0x5636b4],'userId':_0x393b74,'type':_0x5d9214}:_0x1b2373[_0x5d9214]&&!_0x41c7c2?(_0x1b2373[_0x5d9214]['end']=_0x442ee6,_0x35f04b(_0x1b2373[_0x5d9214]),_0x1b2373[_0x5d9214]=null):_0x1b2373[_0x5d9214]&&_0x41c7c2&&_0x1b2373[_0x5d9214]['userId']!==_0x393b74&&(_0x1b2373[_0x5d9214]['end']=_0x442ee6,_0x532d3f&&_0x532d3f['userId']===_0x1b2373[_0x5d9214]['userId']||_0x35f04b(_0x1b2373[_0x5d9214]),_0x1b2373[_0x5d9214]={'start':_0x442ee6,'tapeItem':_0x162065[_0x5636b4],'userId':_0x393b74,'type':_0x5d9214}),_0x1b2373[_0x5d9214]&&_0x6fda85&&('elementStart'!==_0x162065[_0x5636b4]['type']||_0x532d3f&&_0x532d3f['userId']===_0x393b74||_0x58d862[_0x5d9214]['unshift']({'userId':_0x393b74,'object':_0x162065[_0x5636b4]['item'],'change':_0x1b2373[_0x5d9214]}),'elementEnd'===_0x162065[_0x5636b4]['type']&&_0x532d3f&&_0x532d3f['object']===_0x162065[_0x5636b4]['item']&&(_0x58d862[_0x5d9214]['shift'](),_0x1b2373[_0x5d9214]=_0x532d3f['change'])),_0x1b2373[_0x5d9214]&&_0x3cf4c0&&(_0x1b2373[_0x5d9214]['end']=_0x1ffc9a,_0x35f04b(_0x1b2373[_0x5d9214]),_0x1b2373[_0x5d9214]=null);}function _0x35f04b({start:_0x44b5d3,end:_0x1989c4,tapeItem:_0x5d75a3,userId:_0x358676,type:_0xd3d5db}){const _0x58a89f=_0x5d75a3['item'],_0x36b433=_0x42e6d3['schema']['isBlock'](_0x58a89f)&&!_0x42e6d3['schema']['isLimit'](_0x58a89f),_0x111d72=_0x44b5d3['nodeAfter']==_0x1989c4['parent']&&_0x1989c4['isAtStart'];if(_0x36b433&&_0x111d72)return;const _0x33381c=_0x42e6d3['createRange'](_0x44b5d3,_0x1989c4),_0x2dfe24=_0x1bd4ff['get'](_0x358676),_0x413a30=new r({'author':_0x2dfe24,'type':'isAdded'==_0xd3d5db||'isAddSuggestion'==_0xd3d5db?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xd3d5db||'isRemoveSuggestion'==_0xd3d5db},'createdAt':new Date(),'rootName':_0x1c330d});_0x3d9a72['push'](_0x413a30),_0x21b465['markers']['set']('revision:'+_0x413a30['id'],_0x33381c);}function _0x351477(_0x957cb9,_0x438275){const _0x1a6772=_0x957cb9['getAttributes'](),_0x2705cd=_0x438275['getAttributes']();for(const _0x4d700c of _0x1a6772){if(_0x4d700c[0x1]!==_0x438275['getAttribute'](_0x4d700c[0x0]))return!0x1;_0x2705cd['next']();}return _0x2705cd['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4782e8=>{const _0x11d115=_0x4782e8['markerName']['split'](':')[0x1],_0x32ddb1=this['_getChangeFromId'](_0x11d115);if(!_0x32ddb1)return null;const _0x2ccecb='add'==_0x32ddb1['type']?'insertion':'deletion',_0x56e638=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2ccecb];return _0x32ddb1['data']['isSuggestion']&&_0x56e638['push']('ck-suggestion-marker-'+_0x2ccecb+'-new'),this['activeChange']==_0x32ddb1&&_0x56e638['push']('ck-suggestion-marker--active'),{'classes':_0x56e638,'attributes':{'data-change-id':_0x11d115}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3e7d34=>{_0x3e7d34['on']('element:pre',(_0x1e45a4,_0x278109,_0x5eb0c5)=>{const _0x19d4d7=_0x278109['viewItem']['getChild'](0x0);if(!_0x19d4d7||!_0x19d4d7['is']('element','code'))return;if(!_0x5eb0c5['consumable']['consume'](_0x19d4d7,{'attributes':['vid_start','vid_end']}))return;const _0x4edb5c=_0x278109['modelRange']['start']['nodeAfter'];_0x5eb0c5['writer']['setAttribute']('vid_start',_0x19d4d7['getAttribute']('vid_start'),_0x4edb5c),_0x5eb0c5['writer']['setAttribute']('vid_end',_0x19d4d7['getAttribute']('vid_end'),_0x4edb5c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5b3dfd=>{_0x5b3dfd['on']('element',(_0xd83d3b,_0x29b42b,_0x2316ef)=>{if(!_0x2316ef['consumable']['consume'](_0x29b42b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x29b42b['modelRange']['isCollapsed'])return;const _0x5d6bfe=_0x29b42b['modelRange']['start']['nodeAfter'];_0x5d6bfe['hasAttribute']('vid_start')||_0x5d6bfe['hasAttribute']('vid')||(_0x2316ef['writer']['setAttribute']('vid_start',_0x29b42b['viewItem']['getAttribute']('vid_start'),_0x5d6bfe),_0x2316ef['writer']['setAttribute']('vid_end',_0x29b42b['viewItem']['getAttribute']('vid_end'),_0x5d6bfe));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3a5dca=>_0x3a5dca['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4a97e4,[,_0x1b7d7b])=>{['vid_start','vid_end','vid']['includes'](_0x1b7d7b)&&(_0x4a97e4['return']=!0x0,_0x4a97e4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4b7d43=>{_0x4b7d43['on']('attribute:vid',(_0x24dc92,_0x5cca70,_0x2ecf8d)=>{if('\x20'!=_0x5cca70['item']['data']||_0x5cca70['item']['parent']['maxOffset']>0x1)return;if(!_0x2ecf8d['consumable']['consume'](_0x5cca70['item'],_0x24dc92['name']))return;const _0x33d71c=_0x2ecf8d['writer'],_0x5ccb16=_0x2ecf8d['mapper']['toViewRange'](_0x5cca70['range']);_0x33d71c['wrap'](_0x5ccb16,_0x33d71c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x8fd7f7){const _0x3b017d=_0x8fd7f7['plugins']['get']('RevisionViewer');return(_0x213fa0,_0x1e8d59,_0x17ca13)=>{const _0x416d01=_0x1e8d59['markerName']['split'](':')[0x1],_0x2d8bbd=_0x3b017d['_getChangeFromId'](_0x416d01);if(!_0x2d8bbd)return null;const _0xf8b014='add'==_0x2d8bbd['type']?'split':'merge';if(!_0x17ca13['consumable']['test'](_0x1e8d59['markerRange'],_0x213fa0['name']))return;const _0x1bb7c1=_0x1e8d59['markerRange']['getWalker'](),_0x41d2c8=_0x1e8d59['markerRange']['start'],_0x37638f=_0x8fd7f7['model']['schema'];let _0x24fb15=null,_0x51dca8=null,_0x227fbf=!0x1,_0x205fc2=!0x1;for(const _0x1db8dc of _0x1bb7c1){const _0x55dc01=_0x1db8dc['item'];_0x227fbf=_0x227fbf||_0x37638f['isContent'](_0x55dc01);const _0x4bca40=_0x17ca13['mapper']['toViewElement'](_0x55dc01);if(_0x4bca40&&_0x4bca40['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1db8dc['type']&&(_0x37638f['isBlock'](_0x55dc01)&&!_0x37638f['isLimit'](_0x55dc01)&&(_0x55dc01['nextSibling']||_0x41d2c8['isAtEnd']?_0x24fb15&&_0x24fb15['parent']==_0x55dc01||(_0x24fb15=_0x55dc01,_0x5dc136(_0x1db8dc['previousPosition']),_0x205fc2=!0x0):_0x51dca8=_0x51dca8||_0x1db8dc['previousPosition']));}function _0x5dc136(_0x11a713){const _0x17084e=_0x17ca13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf8b014}),_0x1b4525=_0x17ca13['mapper']['toViewPosition'](_0x11a713);_0x2d8bbd['data']['isSuggestion']&&_0x17ca13['writer']['addClass']('ck-suggestion-marker-'+_0xf8b014+'-new',_0x17084e),_0x3b017d['activeChange']==_0x2d8bbd&&_0x17ca13['writer']['addClass']('ck-suggestion-marker--active',_0x17084e),_0x17ca13['writer']['insert'](_0x1b4525,_0x17084e),_0x17ca13['mapper']['bindElementToMarker'](_0x17084e,_0x1e8d59['markerName']);}_0x227fbf||_0x205fc2||!_0x51dca8||_0x5dc136(_0x51dca8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x48f46f,_0x38f2f4,_0xd39469)=>{const _0x1f313c=_0xd39469['mapper']['markerNameToElements'](_0x38f2f4['markerName']);if(_0x1f313c){for(const _0x43cf07 of _0x1f313c)(_0x43cf07['hasClass']('ck-suggestion-marker-split')||_0x43cf07['hasClass']('ck-suggestion-marker-merge'))&&(_0xd39469['mapper']['unbindElementFromMarkerName'](_0x43cf07,_0x38f2f4['markerName']),_0xd39469['writer']['remove'](_0x43cf07));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x386214,_0x440860,_0x428a93)=>{const _0x456778=_0x440860['markerName']['split'](':')[0x1],_0x13ad77=this['_getChangeFromId'](_0x456778);if(!_0x13ad77)return null;const _0x595cbf='add'==_0x13ad77['type']?'split':'merge';if(_0x428a93['consumable']['test'](_0x440860['markerRange'],_0x386214['name']))for(const _0x15ba73 of _0x440860['markerRange']['getItems']()){if(!_0x15ba73['is']('element','softBreak'))continue;const _0x5c058=_0x428a93['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x595cbf}),_0x45c362=_0x428a93['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x15ba73));_0x13ad77['data']['isSuggestion']&&_0x428a93['writer']['addClass']('ck-suggestion-marker-'+_0x595cbf+'-new',_0x5c058),this['activeChange']==_0x13ad77&&_0x428a93['writer']['addClass']('ck-suggestion-marker--active',_0x5c058),_0x428a93['writer']['insert'](_0x45c362,_0x5c058),_0x428a93['mapper']['bindElementToMarker'](_0x5c058,_0x440860['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x45c808=>{for(const _0x583880 of this['editor']['model']['document']['getRootNames']()){const _0x3adb05=this['editor']['model']['document']['getRoot'](_0x583880),_0x34ec85=this['editor']['editing']['view']['document']['getRoot'](_0x583880);if(_0x34ec85){const _0x279c88=_0x3adb05['getAttribute']('revisionHistoryAttachChange');if(_0x45c808['removeAttribute']('data-change-id',_0x34ec85),_0x45c808['removeClass']('ck-revision-history-root-add',_0x34ec85),_0x45c808['removeClass']('ck-revision-history-root-remove',_0x34ec85),_0x45c808['removeClass']('ck-revision-history-root--active',_0x34ec85),_0x279c88){const _0x1f66f1=this['_getChangeFromId'](_0x279c88);if(!_0x1f66f1)return null;_0x45c808['setAttribute']('data-change-id',_0x279c88,_0x34ec85),_0x45c808['addClass']('ck-revision-history-root-'+_0x1f66f1['type'],_0x34ec85),this['activeChange']==_0x1f66f1&&_0x45c808['addClass']('ck-revision-history-root--active',_0x34ec85);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x584b69=>'revision-comment:'+_0x584b69,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3c8f53=>'revision-suggestion:'+_0x3c8f53,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x225f67=>({'name':'suggestion:'+_0x225f67,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x422132=>{const _0x4f9f79=_0x422132['markerName']['split'](':')[0x1];return'insertion'!=_0x4f9f79&&'deletion'!=_0x4f9f79?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4f9f79]};}}),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',(_0x137150,_0x414a93,_0x2b4843)=>{const _0x4abe32=_0x2b4843['mapper']['markerNameToElements'](_0x414a93['markerName']);if(_0x4abe32){for(const _0x4d86f1 of _0x4abe32)_0x4d86f1['is']('uiElement')&&(_0x2b4843['mapper']['unbindElementFromMarkerName'](_0x4d86f1,_0x414a93['markerName']),_0x2b4843['writer']['remove'](_0x4d86f1));}},{'priority':'high'});}['_getChangeFromId'](_0x50882b){return this['_changeIdToChange']['get'](_0x50882b);}['_getViewForChange'](_0x5c02ce){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5c02ce),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4691d0,_0x109f50,_0x2b64f7,_0x377340)=>{_0x377340&&this['_balloon']['remove'](_0x377340),_0x2b64f7&&(this['_balloon']['add']({'view':_0x2b64f7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x17c524=this['editor']['editing'],_0x12dd9c=this['_getChangeFromId'](_0x2b64f7['changeId']);let _0x4dfbee;if(_0x12dd9c['data']['isOnRoot']){const _0x55ed65=_0x17c524['view']['getDomRoot'](_0x12dd9c['rootName']);_0x4dfbee=Array['from'](_0x55ed65['getClientRects']());}else{const _0x11dc57=this['editor']['model']['markers']['get']('revision:'+_0x2b64f7['changeId']);_0x4dfbee=Array['from'](_0x17c524['mapper']['markerNameToElements'](_0x11dc57['name']))['map'](_0x46f88a=>_0x17c524['view']['domConverter']['mapViewToDom'](_0x46f88a))['map'](_0x598e6a=>Array['from'](_0x598e6a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4dfbee[0x0];return _0x4dfbee['find'](_0x4ab266=>_0x4ab266['top']-0x3<=this['_activeViewTarget']['y']&&_0x4ab266['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4ab266['left']-0x3<=this['_activeViewTarget']['x']&&_0x4ab266['right']+0x3>=this['_activeViewTarget']['x'])||_0x4dfbee[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3f56bb,_0x36ab8a,_0x23f1f0,_0x25905f)=>{this['activeView']=_0x23f1f0?this['_getViewForChange'](_0x23f1f0):null,this['editor']['model']['change'](()=>{const _0x3bdac5=this['editor']['editing'];_0x25905f&&(_0x25905f['data']['isOnRoot']?_0x3bdac5['view']['change'](_0xbfe92f=>{_0xbfe92f['removeClass']('ck-revision-history-root--active',_0x3bdac5['view']['document']['getRoot'](_0x25905f['rootName']));}):_0x3bdac5['reconvertMarker']('revision:'+_0x25905f['id'])),_0x23f1f0&&(_0x23f1f0['data']['isOnRoot']?_0x3bdac5['view']['change'](_0x5d6037=>{_0x5d6037['addClass']('ck-revision-history-root--active',_0x3bdac5['view']['document']['getRoot'](_0x23f1f0['rootName']));}):_0x3bdac5['reconvertMarker']('revision:'+_0x23f1f0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1365cb,_0x4d044e)=>{if(this['activeChange'])return;const _0x24ae0a=this['_findChangeIdFromDomTarget'](_0x4d044e['target']),_0x25891d=this['_changeIdToChange']['get'](_0x24ae0a);_0x25891d?(this['_activeViewTarget']={'x':_0x4d044e['domEvent']['x'],'y':_0x4d044e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x25891d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1eabaf,_0x296801)=>{const _0x1d5ce6=this['_findChangeIdFromDomTarget'](_0x296801['target']),_0x303f6a=this['_changeIdToChange']['get'](_0x1d5ce6);_0x303f6a?(this['_activeViewTarget']={'x':_0x296801['domEvent']['x'],'y':_0x296801['domEvent']['y']},_0x303f6a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x303f6a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3583a4){do{const _0x29f4f5=_0x3583a4['getAttribute']('data-change-id');if(_0x29f4f5)return _0x29f4f5;_0x3583a4=_0x3583a4['parent'];}while(_0x3583a4);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4fdc7a=>{for(const _0x58161f of this['editor']['model']['markers'])_0x4fdc7a['removeMarker'](_0x58161f);});}}function Z(_0x4b9374,_0x1c1772){return(_0x534a47,_0x2909ae,_0x2b2b1b)=>{if(!_0x2b2b1b['consumable']['test'](_0x2909ae['markerRange'],_0x534a47['name']))return;const _0x21b3d3=_0x2909ae['markerRange']['getWalker'](),_0x4bffe6=_0x2909ae['markerRange']['start'],_0x50cb24=_0x4b9374['model']['schema'];let _0x5703ff=null,_0x668ad9=null,_0x29ce43=!0x1,_0x138413=!0x1;for(const _0x5033c1 of _0x21b3d3){const _0x4b2d26=_0x5033c1['item'];_0x29ce43=_0x29ce43||_0x50cb24['isContent'](_0x4b2d26);const _0x2335fe=_0x2b2b1b['mapper']['toViewElement'](_0x4b2d26);if(_0x2335fe&&_0x2335fe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5033c1['type']&&(_0x50cb24['isBlock'](_0x4b2d26)&&!_0x50cb24['isLimit'](_0x4b2d26)&&(_0x4b2d26['nextSibling']||_0x4bffe6['isAtEnd']?_0x5703ff&&_0x5703ff['parent']==_0x4b2d26||(_0x5703ff=_0x4b2d26,_0x4740ae(_0x5033c1['previousPosition']),_0x138413=!0x0):_0x668ad9=_0x668ad9||_0x5033c1['previousPosition']));}function _0x4740ae(_0x249a3a){const _0x5146bc=_0x2b2b1b['mapper']['toViewPosition'](_0x249a3a),_0x260acd=_0x2b2b1b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1c1772});_0x2b2b1b['writer']['insert'](_0x5146bc,_0x260acd),_0x2b2b1b['mapper']['bindElementToMarker'](_0x260acd,_0x2909ae['markerName']);}_0x29ce43||_0x138413||!_0x668ad9||_0x4740ae(_0x668ad9);};}class _t extends _0x4996f3{constructor(_0x86ff02){super(_0x86ff02);const _0x21bb8b=_0x86ff02['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x21bb8b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x21bb8b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x313e96=this['editor'],_0x3e79d8=_0x313e96['plugins']['get'](d),_0x4a71b8=_0x3e79d8['isReady']?_0x3e79d8['diff']['newRevisionId']:null;_0x313e96['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4a71b8);}['refresh'](){const {isReady:_0x247eeb,isEnabled:_0x34de62,repository:_0x2cdf98,diff:_0x4d1d87}=this['editor']['plugins']['get'](d),_0x4b9f61=_0x4d1d87&&_0x2cdf98['getLaterVisibleRevision'](_0x4d1d87['newRevisionId']);this['isEnabled']=_0x247eeb&&_0x34de62&&Boolean(_0x4b9f61);}}class yt extends _0x4996f3{['_step'];constructor(_0x5a346a,{direction:_0x548eff}){super(_0x5a346a);const _0x4dacb9=_0x5a346a['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x548eff?0x1:-0x1,this['listenTo'](_0x4dacb9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4dacb9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4dacb9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x15a709=this['editor'],_0x2d4173=_0x15a709['plugins']['get'](d),{isNavigationMode:_0x4429ee,currentChangeNumber:_0x9de71}=_0x2d4173;let _0x2334f8;if(_0x2d4173['activeChange']=_0x4429ee?_0x2d4173['diff']['changes']['get'](_0x9de71+this['_step']):_0x2d4173['diff']['changes']['first'],_0x2d4173['activeChange']['data']['isOnRoot'])_0x2334f8=_0x15a709['editing']['view']['getDomRoot'](_0x2d4173['activeChange']['rootName']);else{const _0x2b5444=_0x15a709['model']['markers']['get']('revision:'+_0x2d4173['activeChange']['id']);_0x2334f8=_0x44e281(_0x15a709['editing'],_0x2b5444);}_0x3e6950({'target':_0x2334f8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x217152,currentChangeNumber:_0x5e7941,numberOfChanges:_0xa4d2d,isReady:_0x4496bf,isEnabled:_0x5a85db}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5a85db&&_0x4496bf&&_0xa4d2d)&&(!_0x217152||(0x1===this['_step']?_0x5e7941<_0xa4d2d-0x1:_0x5e7941>0x0));}}class _i extends _0x2e6edd{constructor(_0x27cf15){super(_0x27cf15);const _0x1ec4a2=this['bindTemplate'],_0x16cc2a=new _0x2dd9e5(_0x27cf15),_0x8d8c02=new _0x2dd9e5(_0x27cf15);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',(_0xfc0900,_0x466c36)=>_0xfc0900&&_0x466c36>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x339e17,_0x5d0e86,_0x443cfc,_0x40113a)=>{if(!_0x339e17)return m(_0x27cf15,'Loading...');if(!_0x443cfc)return m(_0x27cf15,'No\x20changes');const _0x39d0fc=m(_0x27cf15,'NUMBER_OF_CHANGES',_0x443cfc);return _0x40113a?m(_0x27cf15,'X_OF_Y_CHANGES',[_0x5d0e86+0x1,_0x443cfc]):_0x39d0fc;}),_0x16cc2a['set']({'label':m(_0x27cf15,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2d5040}),_0x8d8c02['set']({'label':m(_0x27cf15,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2ba79f}),_0x16cc2a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x8d8c02['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x16cc2a['on']('execute',()=>this['fire']('execute','backward')),_0x8d8c02['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',_0x1ec4a2['if']('_isStatusLabelVisible','ck-hidden',_0x2d9218=>!_0x2d9218)]},'children':[{'text':_0x1ec4a2['to']('isNavigationMode',_0x2e5094=>_0x2e5094?m(_0x27cf15,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x27cf15,'Total')+':\x20')}]},{'text':_0x1ec4a2['to']('_statusText')}]},new _0x23ab73(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x16cc2a,_0x8d8c02]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x1cb4d9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x19fd59=this['editor']['editing']['view'];_0x19fd59['change'](_0x2bbe16=>{for(const _0x41bc54 of _0x19fd59['document']['roots'])_0x2bbe16['addClass'](ce,_0x41bc54);});}['hide'](){const _0x2ec543=this['editor']['editing']['view'];_0x2ec543['change'](_0x158336=>{for(const _0x336345 of _0x2ec543['document']['roots'])_0x158336['removeClass'](ce,_0x336345);});}}class w extends _0x1cb4d9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x56c206=this['editor'],_0x3a325a=_0x56c206['plugins']['get'](d),_0x3f31c3=_0x56c206['plugins']['get'](le);_0x56c206['ui']['componentFactory']['add']('exitToEditing',_0x53d2bd=>{const _0xb3c17=new _0x2dd9e5(_0x53d2bd);return _0xb3c17['set']({'label':m(_0x53d2bd,'Back\x20to\x20editing'),'icon':_0x13e911,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xb3c17,'execute',()=>{_0x56c206['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xb3c17;}),_0x56c206['ui']['componentFactory']['add']('restoreRevision',_0xc85711=>{const _0x3f6f48=new _0x2dd9e5(_0xc85711);return _0x3f6f48['set']({'label':m(_0xc85711,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3f6f48['bind']('isEnabled')['to'](_0x56c206['commands']['get']('restoreRevision')),this['listenTo'](_0x3f6f48,'execute',()=>_0x56c206['execute']('restoreRevision')),_0x3f6f48;}),_0x56c206['ui']['componentFactory']['add']('changesNavigation',_0x4d1866=>{const _0x4db9a1=new _i(_0x4d1866),_0x27871f=_0x56c206['commands']['get']('showPreviousChange'),_0x3811c2=_0x56c206['commands']['get']('showNextChange');return _0x4db9a1['bind']('isBackwardNavigationEnabled')['to'](_0x27871f,'isEnabled'),_0x4db9a1['bind']('isForwardNavigationEnabled')['to'](_0x3811c2,'isEnabled'),_0x4db9a1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3a325a),this['listenTo'](_0x4db9a1,'execute',(_0x21c85d,_0x13732e)=>{_0x56c206['execute']('forward'===_0x13732e?'showNextChange':'showPreviousChange');}),_0x4db9a1;}),_0x3f31c3['show'](),_0x3a325a['on']('change:isReady',(_0x2648f7,_0x4d065e,_0x48e9e1)=>{_0x48e9e1?_0x3f31c3['hide']():_0x3f31c3['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0xb552b2,_0x54f4c4){super(_0xb552b2,_0x54f4c4);const _0x432595=this['bindTemplate'];this['set']({'label':m(_0xb552b2,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0xb552b2,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x432595['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 _0xc55390=this['fieldView']['element'];this['_tooltipString']=_0xc55390['scrollWidth']>_0xc55390['clientWidth']&&_0xc55390['value']||'';}}class oi extends _0x2e6edd{constructor(_0x3773ec,_0x3c4822,_0xf30b3){super(_0x3773ec);const _0x4a3dd0=new _0x2df071();_0x4a3dd0['set']({'content':_0x531c1e,'viewBox':'0\x200\x2011\x2010'});const _0x61ac7e=['ck','ck-revision-history-sidebar__revision-author'];_0xf30b3&&_0x61ac7e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x145103=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x3773ec,_0xf30b3?'Revision\x20creator':'Revision\x20author')},'children':[_0x4a3dd0,_0x3c4822['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x61ac7e},'children':_0x145103});}}function ni(_0x13de7c,_0x5af325){const _0x4c32bf=_0x13de7c['bindTemplate'],_0x23592e=_0x13de7c['locale'],_0x496294=_0x35729b(_0x23592e);_0x496294['panelPosition']='sw';const _0x582f79=function(_0x474146,_0x299264){const _0x4eb477=function(_0x7416a4,_0x36a402){const _0x42f431=_0x7416a4['locale'],_0x369c60={'Compare\x20against\x20selected':m(_0x42f431,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x42f431,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x42f431,'Restore\x20this\x20revision')};return _0x36a402['map'](_0x17ae3e=>{const _0xf32295=_0x369c60[_0x17ae3e['name']];return _0xf32295&&_0xf32295!==_0x17ae3e['name']&&(_0x17ae3e['name']=_0xf32295),_0x17ae3e;});}(_0x474146,_0x299264),_0x284207=new _0xd62129();for(const _0x212cac of _0x4eb477){const _0x3e4101={'type':'button','model':new to({'label':_0x212cac['name'],'class':_0x212cac['class'],'withText':!0x0,'role':'menuitem','_action':_0x212cac['action']})};_0x3e4101['model']['bind']('isEnabled')['to'](_0x474146,'isActionsDropdownOpen',_0x1489ab=>'function'!=typeof _0x212cac['isEnabled']||(!_0x1489ab||_0x212cac['isEnabled'](_0x474146))),_0x284207['add'](_0x3e4101);}return _0x284207;}(_0x13de7c,_0x5af325);return _0x13de7c['bind']('isActionsDropdownOpen')['to'](_0x496294,'isOpen'),_0x496294['buttonView']['set']({'label':m(_0x23592e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x451385}),_0x496294['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4c32bf['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4c32bf['to'](_0x3d8f19=>_0x3d8f19['stopPropagation']())}}),_0x496294['on']('execute',_0x41f813=>{_0x13de7c['isReady']&&'function'==typeof _0x41f813['source']['_action']&&_0x41f813['source']['_action'](_0x13de7c);}),_0x6d559f(_0x496294,_0x582f79,{'role':'menu'}),_0x496294['listenTo'](_0x13de7c,'change:isActionsDropdownOpen',(_0x179687,_0x1c42b4,_0x340092)=>{if(_0x340092)for(const _0x26e467 of _0x496294['listView']['items']){const _0x3e8e6a=_0x26e467['children']['first'],_0x1e686e=_0x5af325['find'](_0xda5bef=>_0xda5bef['action']===_0x3e8e6a['_action'])['isVisible'];_0x26e467['isVisible']=void 0x0===_0x1e686e||_0x1e686e(_0x13de7c);}}),_0x496294;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x4bacfa(_0x2e6edd){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x311c93,_0x3567bd,_0x1021a3,_0x28fd21){super(_0x311c93);const _0x41e401=this['bindTemplate'],_0x263048=function(_0x4b776e,_0x38f639){const _0x1e0f00=Array['from'](_0x38f639['authors'])['filter'](_0x41dae5=>_0x41dae5!=_0x38f639['creator']);return _0x38f639['creator']&&_0x1e0f00['unshift'](_0x38f639['creator']),_0x1e0f00['map'](_0x4fd559=>new oi(_0x4b776e,_0x4fd559,_0x4fd559==_0x38f639['creator']));}(_0x311c93,_0x3567bd);this['id']=_0x3567bd['id'],this['_revision']=_0x3567bd,this['_requireRevisionName']=_0x28fd21,this['bind']('name','createdAt')['to'](_0x3567bd),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3ff5a4=>{return _0x4d2ee1=_0x311c93['uiLanguage'],(_0x42c553=_0x3ff5a4)['toLocaleDateString'](_0x4d2ee1,{'month':'long','day':'numeric'})+',\x20'+_0x42c553['toLocaleTimeString'](_0x4d2ee1,{'hour':'numeric','minute':'numeric'});var _0x4d2ee1,_0x42c553;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x311c93,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5b90d2=>_0x5b90d2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4acc34,_0x193277)=>_0x4acc34&&_0x193277),this['revisionActionsView']=_0x1021a3&&_0x1021a3['length']?ni(this,_0x1021a3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x41e401['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x41e401['if']('isEnabled','ck-disabled',_0x2501bd=>!_0x2501bd),_0x41e401['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x41e401['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x41e401['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':_0x41e401['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':_0x263048}]},this['revisionActionsView']],'on':{'click':_0x41e401['to'](_0x4ffd44=>{_0x4ffd44['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5ba578=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5ba578,'change',()=>{this['_requireRevisionName']&&!_0x5ba578['value']||this['fire']('setName',{'id':this['id'],'name':_0x5ba578['value']}),_0x5ba578['value']||(_0x5ba578['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(_0x512a1a,_0x2dedaa){const _0x46f2ae=_0xa5d9b4['fromJSDate'](_0x512a1a)['setLocale'](_0x2dedaa),_0xb29dbe=_0xa5d9b4['local'](),_0x2b5f22=_0xb29dbe['minus']({'days':0x1})['startOf']('day');let _0x1c3b6f,_0x1b8f25;return _0x46f2ae['hasSame'](_0xb29dbe,'day')?(_0x1c3b6f=_0x46f2ae['startOf']('day')['toJSDate'](),_0x1b8f25=_0x46f2ae['toRelativeCalendar']()):_0x46f2ae['hasSame'](_0x2b5f22,'day')?(_0x1c3b6f=_0x2b5f22['toJSDate'](),_0x1b8f25=_0x46f2ae['toRelativeCalendar']()):_0x46f2ae['hasSame'](_0xb29dbe,'week')?(_0x1c3b6f=_0x46f2ae['startOf']('week')['toJSDate'](),_0x1b8f25=_0x46f2ae['weekdayLong']||''):_0x46f2ae['hasSame'](_0xb29dbe,'year')?(_0x1c3b6f=_0x46f2ae['startOf']('month')['toJSDate'](),_0x1b8f25=_0x46f2ae['monthLong']||''):(_0x1c3b6f=_0x46f2ae['startOf']('year')['toJSDate'](),_0x1b8f25=String(_0x46f2ae['year'])),{'startDate':_0x1c3b6f,'localizedPeriodName':_0x1b8f25};}class mi extends _0x2e6edd{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x20e099,_0x59c210,_0x288184,_0x84b06a){super(_0x20e099);const _0x374151=vi(_0x59c210,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x59c210,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x288184,this['_requireRevisionName']=_0x84b06a,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':_0x374151}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x46fdb0){const _0x351d75=new ai(this['locale'],_0x46fdb0,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x351d75);}['removeRevision'](_0x4e052b){const _0x140985=this['revisionViews']['find'](_0x18246b=>_0x18246b['id']===_0x4e052b['id']);this['revisionViews']['remove'](_0x140985);}}class as extends _0x2e6edd{constructor(_0x824169){super(_0x824169);const _0x50fc09=new _0x2df071();_0x50fc09['content']=_0x157b93,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x50fc09,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x824169,'Revision\x20history')]}]});}}class di extends _0x2e6edd{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3f88d9,_0x4737e3,_0x5a3140,_0x2ade3b){super(_0x3f88d9);const _0x5617ea=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4737e3,this['_revisionActions']=_0x5a3140,this['_requireRevisionName']=_0x2ade3b,this['on']('select',(_0x318523,_0x44e814)=>{this['fire']('revisionSelected',_0x44e814);}),this['on']('setName',(_0x3fa286,_0x54415d)=>{this['fire']('revisionSetName',_0x54415d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3f88d9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5617ea['if']('isEnabled','ck-disabled',_0x3b6c2e=>!_0x3b6c2e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x30fd37 of this['_revisions'])this['_addRevision'](_0x30fd37);this['_revisions']['on']('add',(_0x1ce0ca,_0x44f95d)=>{this['_addRevision'](_0x44f95d);}),this['_revisions']['on']('remove',(_0xb83772,_0x2ae472)=>{this['_removeRevision'](_0x2ae472);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2f574a=>_0x2f574a['revisionViews']['map'](_0xcd1127=>_0xcd1127))['flat']();}['selectRevision'](_0x38503f){for(const _0x5c5807 of this['revisionViews'])_0x38503f&&_0x38503f['id']===_0x5c5807['id']?_0x5c5807['select']():_0x5c5807['deselect']();}['highlightRevisions'](_0x230c94){for(const _0x586574 of this['revisionViews'])_0x230c94['some'](({id:_0xb99fac})=>_0xb99fac===_0x586574['id'])?_0x586574['highlight']():_0x586574['unhighlight']();}['_addRevision'](_0x2f3e26){const _0x1acb44=vi(_0x2f3e26['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x381e1b=this['timePeriodViews']['get'](0x0);_0x381e1b&&_0x381e1b['startDate']['getTime']()===_0x1acb44['getTime']()||(_0x381e1b=new mi(this['locale'],_0x1acb44,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x381e1b)),_0x381e1b['addRevision'](_0x2f3e26);}['_removeRevision'](_0x3ffa42){const _0x348204=vi(_0x3ffa42['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x348204)['removeRevision'](_0x3ffa42);}['_getTimePeriodViewByStartDate'](_0x14421e){return this['timePeriodViews']['find'](_0xe3c9c3=>_0xe3c9c3['startDate']['getTime']()===_0x14421e['getTime']());}}class g extends _0x1cb4d9{['_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(_0x18df7d){super(_0x18df7d),this['_revisionViewer']=_0x18df7d['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x109311=this['_revisionsRepository']['_revisions'],_0x47b4cd=this['_createRevisionActions'](),_0x4cdcb7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x109311,_0x47b4cd,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',(_0x3bf4d9,_0x7df416)=>{_0x7df416['revisionViews']['on']('add',(_0x3e959a,_0x4ad2bb)=>{_0x4ad2bb['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)),_0x4cdcb7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3a664f=this['_revisionsRepository']['getRevision'](0x0);if(_0x3a664f){const _0x3368a4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3a664f['id']);this['_revisionViewer']['compare'](_0x3a664f,_0x3368a4);}}['_handleRevisionSelected'](_0x2d9a1c,_0x5922ba){const _0xa67545=this['_revisionsRepository']['getRevision'](_0x5922ba['id']),_0x432091=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa67545['id']);this['_revisionViewer']['compare'](_0xa67545,_0x432091);}['_handleRevisionSetName'](_0x3d5422,_0xabcac3){this['_revisionsRepository']['getRevision'](_0xabcac3['id'])['setName'](_0xabcac3['name']);}['_handleDiffChange'](_0x27351e,_0x20a4d6,_0x2039ac){const _0x2a0e27=this['_revisionsRepository']['getRevisionsInDiff'](_0x2039ac);_0x2a0e27['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2a0e27),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2a0e27[0x0]));}['_createRevisionActions'](){const _0x4fc56f=this['editor'],_0x21a2d4=g['availableRevisionActions'],_0xb99161=_0x4fc56f['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0xb99161['length'])return _0xb99161['map'](_0x205cc0=>{const _0x1f5704='string'==typeof _0x205cc0?Object['assign']({},_0x21a2d4[_0x205cc0]):_0x205cc0;return _0x1f5704['action']=_0x1f5704['action']['bind'](this,_0x4fc56f),_0x1f5704['isVisible']&&(_0x1f5704['isVisible']=_0x1f5704['isVisible']['bind'](this,_0x4fc56f)),_0x1f5704;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xcd550},_0x1ea0d4)=>{const _0x4ec534=_0xcd550['get'](d),_0x2ddc0b=_0x4ec534['repository'];let _0x1a646b=_0x4ec534['diff']['newRevisionId'],_0x54fd3e=_0x1ea0d4['id'];_0x2ddc0b['getIndex'](_0x1a646b)>_0x2ddc0b['getIndex'](_0x54fd3e)&&([_0x1a646b,_0x54fd3e]=[_0x54fd3e,_0x1a646b]),_0x4ec534['compare'](_0x1a646b,_0x54fd3e);},'isVisible':({plugins:_0x4f8121},_0xe5b749)=>{const _0x411c0d=_0x4f8121['get'](d);return!(_0x411c0d['repository']['getRevisionsInDiff'](_0x411c0d['diff'])['length']>0x2)&&!_0xe5b749['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x12cb33,{id:_0x8857a8})=>{_0x12cb33['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x8857a8);},'isVisible':({plugins:_0x2338af},_0x40e0e0)=>!!_0x2338af['get'](d)['repository']['getLaterVisibleRevision'](_0x40e0e0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x579814},{id:_0x459192,revisionNameView:_0x2919db})=>{const _0xf166a5=_0x579814['get'](d),_0x2ea806=_0xf166a5['repository']['getEarlierVisibleRevision'](_0x459192);_0xf166a5['compare'](_0x459192,_0x2ea806),_0x2919db['focus'](),_0x2919db['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5adcdb,_0xf5abad){super(_0x5adcdb),this['_view']=_0xf5abad,this['_toolbarConfig']=ot(_0x5adcdb['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x459cfd){const _0x3db711=this['editor'],_0x54c4d2=this['view'],_0xbc6742=_0x3db711['editing']['view'],_0x265da0=_0x54c4d2['editable'],_0x27bcd8=_0xbc6742['document']['getRoot']();_0x265da0['name']=_0x27bcd8['rootName'],_0x54c4d2['render']();const _0x142fe6=_0x265da0['element'];this['setEditableElement'](_0x265da0['name'],_0x142fe6),_0x54c4d2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xbc6742['attachDomRoot'](_0x142fe6),this['_elementReplacer']['replace'](_0x459cfd,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4f6346=this['view'],_0x1128ce=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1128ce['detachDomRoot'](_0x4f6346['editable']['name']),_0x4f6346['destroy']();}['_initToolbar'](){const _0x59f7ab=this['view'];_0x59f7ab['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x59f7ab['stickyPanel']['limiterElement']=_0x59f7ab['element'],_0x59f7ab['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4b3d52})=>_0x4b3d52),_0x59f7ab['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x59f7ab['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x752bd9,_0x21abac,_0x282a34={}){super(_0x752bd9),this['stickyPanel']=new lt(_0x752bd9),this['toolbar']=new nt(_0x752bd9,{'shouldGroupWhenFull':_0x282a34['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x752bd9,_0x21abac);}['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(_0x14842b,_0x5ce50c){super(_0x5ce50c),this['sourceElement']=_0x14842b,this['model']['document']['createRoot']();const _0x12082c=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x12082c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xbcdfaa,_0x270194){const _0x4adac9=new this(_0xbcdfaa,_0x270194);return await _0x4adac9['initPlugins'](),await _0x4adac9['ui']['init'](_0xbcdfaa),await _0x4adac9['data']['init'](_0x4adac9['config']['get']('initialData')||''),_0x4adac9['fire']('ready'),_0x4adac9;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x41e048{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19755b){function _0x424a99(_0x56c573){return _0x56c573['map'](_0x5151d8=>String['fromCharCode'](_0x5151d8))['join']('');}super(_0x19755b),this['result']='end',_0x19755b[_0x424a99([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x424a99([0x76,0x69,0x65,0x77])][_0x424a99([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x424a99([0x61,0x75,0x74,0x6f]),_0x19755b[_0x424a99([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x424a99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x424a99([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x424a99([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x424a99([0x6f,0x6b])});}}class k extends _0x41e048{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x214376){if(super(_0x214376),!this['editor']['config']['get']('revisionHistory'))throw new _0x11f306('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1bc933=>this['_showRevisionViewer']({..._0x1bc933,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x273996=>this['_closeRevisionViewer'](_0x273996)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3a9ff6=>this['_restoreRevision'](_0x3a9ff6)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x11d286){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x11d286;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2b2fa1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2b2fa1);}['getRevision'](_0x2d898f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2d898f);}['getRevisions'](_0x2f2312){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2f2312||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3d5cbc=this['editor'],_0x44ccea=_0x52e263(_0x3d5cbc,p),_0x335ab3=_0x3d5cbc['plugins']['get']('RevisionTracker'),_0x3775ec=_0x3d5cbc['plugins']['get']('Users')['users'];return _0x44ccea['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x44ccea['lazyRoots'],(_0x44ccea['plugins']['push'](Rt,d,w,class extends _0x41e048{static get['requires'](){return[d,'Users'];}['init'](){const _0x37df92=this['editor']['plugins']['get']('Users');for(const _0x371344 of _0x3775ec)_0x371344['isAnonymous']||_0x37df92['getUser'](_0x371344['id'])||_0x37df92['addUser'](_0x371344);const _0x10b6ee=_0x335ab3['repository']['getRevisions']();let _0x174fd7=null;const _0x49a69f=this['editor']['plugins']['get']('RevisionViewer');_0x49a69f['adapter']=_0x335ab3['adapter'],_0x49a69f['bind']('isEnabled')['to'](_0x335ab3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3d5cbc,'isReadOnly',_0x129f54=>!_0x129f54);for(const _0xd3e77d of _0x10b6ee){const _0x207bf4=null===_0xd3e77d['creator'];if(_0x207bf4&&_0xd3e77d['toVersion']===_0xd3e77d['fromVersion'])continue;const _0x2718d9=_0xd3e77d['toJSON']();_0x49a69f['addRevisionData'](_0x2718d9,(_0x379da4,_0x39a97e,_0x507250)=>{if(_0x207bf4){if(_0x174fd7)_0x174fd7['_update'](_0x379da4,_0x39a97e);else{if(!_0x39a97e){const _0x2c54ef=_0x507250['toJSON']();_0x2c54ef['id']=_0x663c6b(),_0x335ab3['saveRevision'](_0x2c54ef,_0x507250['toVersion'])['then'](_0x33b8f8=>{_0x174fd7=_0x33b8f8;});}}}else _0xd3e77d['_update'](_0x379da4,_0x39a97e);});}}},g),_0x44ccea);}['_enhanceShowRevisionViewerCallback'](){const _0x21f833=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3c8c64=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x36331a=this['editor']['plugins']['get']('Autosave');await _0x36331a['save']();}else await _0x3c8c64['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xc0e43=this['editor']['plugins']['get']('Dialog');_0xc0e43['isOpen']&&_0xc0e43['hide']();}const _0x2ce7b1=this['_getRevisionViewerEditorConfig']();return _0x21f833(_0x2ce7b1)['then'](_0x377c11=>{return(this['_viewerEditor']=_0x377c11,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x377c11;})['catch'](_0x77adf=>(console['error'](_0x77adf),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x55cbc6=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'](),_0x55cbc6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5d9b0b=this['editor']['plugins']['get']('Annotations');_0x5d9b0b['refreshVisibility'](),_0x5d9b0b['refreshPositioning']();}})));}['_showRevisionViewer'](_0xc5e0e){const _0x2a8794=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x374fbc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x37c40c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x37c40c,_0xc5e0e)['then'](_0x109e22=>(_0x374fbc['style']['display']='block',_0x2a8794['style']['display']='none',_0x109e22));}['_closeRevisionViewer'](_0x5c307b){const _0x4c441d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4c441d['style']['display']='',_0x5c307b['destroy']();}async['_restoreRevision'](_0x580bcd){const _0x55eb69=this['editor'],_0x18f954=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1f7cf8=_0x55eb69['plugins']['get']('RevisionTracker'),_0x22e30b=_0x18f954['repository']['getRevision'](_0x580bcd);let _0x587621,_0x3de206,_0x3f19ec;try{_0x587621=await _0x18f954['getRevisionData'](_0x22e30b),_0x3de206=await _0x18f954['getRevisionRootsAttributes'](_0x22e30b);}catch(_0x489eb4){return void console['error'](_0x489eb4);}_0x55eb69['model']['change'](_0x5d1c96=>{for(const _0x33e089 of Array['from'](_0x55eb69['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5d1c96['removeMarker'](_0x33e089);}),_0x18f954['isReady']=!0x1,_0x55eb69['model']['enqueueChange'](_0x12be92=>{_0x12be92['setSelection'](null),_0x12be92['removeSelectionAttribute'](_0x55eb69['model']['document']['selection']['getAttributeKeys']());const _0x3dc51d=Object['keys'](_0x587621);for(const _0x2e6f41 of _0x55eb69['model']['document']['roots'])'$graveyard'!=_0x2e6f41['rootName']&&_0x2e6f41['isAttached']()&&!_0x3dc51d['includes'](_0x2e6f41['rootName'])&&_0x12be92['detachRoot'](_0x2e6f41);for(const _0x322faf of _0x3dc51d){let _0x4c52b4=_0x55eb69['model']['document']['getRoot'](_0x322faf);_0x4c52b4&&_0x4c52b4['isAttached']()||(_0x4c52b4=_0x12be92['addRoot'](_0x322faf));const _0x448505=_0x3de206[_0x322faf],_0x347adb=Object['keys'](_0x448505),_0x3300ef=_0x587621[_0x322faf];for(const _0x1b1eaa of _0x4c52b4['getAttributeKeys']())_0x347adb['includes'](_0x1b1eaa)||_0x12be92['removeAttribute'](_0x1b1eaa,_0x4c52b4);for(const _0x13e4f3 of _0x347adb)_0x12be92['setAttribute'](_0x13e4f3,_0x3de206[_0x322faf][_0x13e4f3],_0x4c52b4);_0x12be92['remove'](_0x12be92['createRangeIn'](_0x4c52b4)),_0x12be92['insert'](_0x55eb69['data']['parse'](_0x3300ef,_0x4c52b4),_0x4c52b4,0x0);}});const _0x9fccb0=m(_0x55eb69['locale'],'Restored');if(_0x22e30b['name'])_0x3f19ec=-0x1==_0x22e30b['name']['indexOf'](_0x9fccb0)?_0x9fccb0+':\x20'+_0x22e30b['name']:_0x22e30b['name'];else _0x3f19ec=_0x9fccb0+':\x20'+(_0x22e30b['createdAt']['toLocaleDateString'](_0x55eb69['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x22e30b['createdAt']['toLocaleTimeString'](_0x55eb69['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1f7cf8['saveRevision']({'name':_0x3f19ec}),_0x18f954['isReady']=!0x0,_0x55eb69['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
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5af072){super(_0x5af072),this['_revisionViewer']=_0x5af072['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x352ebd=this['_revisionsRepository']['_revisions'],_0x1abd77=this['_createRevisionActions'](),_0x1984ca=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x352ebd,_0x1abd77,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',(_0x245416,_0x16470a)=>{_0x16470a['revisionViews']['on']('add',(_0x49faf6,_0x5de1a3)=>{_0x5de1a3['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)),_0x1984ca['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5b1b44=this['_revisionsRepository']['getRevision'](0x0);if(_0x5b1b44){const _0x4602e6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5b1b44['id']);this['_revisionViewer']['compare'](_0x5b1b44,_0x4602e6);}}['_handleRevisionSelected'](_0xebe786,_0x6c10b){const _0x4e267=this['_revisionsRepository']['getRevision'](_0x6c10b['id']),_0x2bf11a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4e267['id']);this['_revisionViewer']['compare'](_0x4e267,_0x2bf11a);}['_handleRevisionSetName'](_0x2a2cee,_0x19f064){this['_revisionsRepository']['getRevision'](_0x19f064['id'])['setName'](_0x19f064['name']);}['_handleDiffChange'](_0x5a3bb2,_0x3ad43f,_0x51ce99){const _0x5b7628=this['_revisionsRepository']['getRevisionsInDiff'](_0x51ce99);_0x5b7628['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5b7628),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5b7628[0x0]));}['_createRevisionActions'](){const _0x41577a=this['editor'],_0x192728=g['availableRevisionActions'],_0x1cfb7d=_0x41577a['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1cfb7d['length'])return _0x1cfb7d['map'](_0x2a8f41=>{const _0x1f024b='string'==typeof _0x2a8f41?Object['assign']({},_0x192728[_0x2a8f41]):_0x2a8f41;return _0x1f024b['action']=_0x1f024b['action']['bind'](this,_0x41577a),_0x1f024b['isVisible']&&(_0x1f024b['isVisible']=_0x1f024b['isVisible']['bind'](this,_0x41577a)),_0x1f024b;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5a914f},_0x14adca)=>{const _0x2e07e9=_0x5a914f['get'](d),_0x3ddac9=_0x2e07e9['repository'];let _0x5ed063=_0x2e07e9['diff']['newRevisionId'],_0x30ede=_0x14adca['id'];_0x3ddac9['getIndex'](_0x5ed063)>_0x3ddac9['getIndex'](_0x30ede)&&([_0x5ed063,_0x30ede]=[_0x30ede,_0x5ed063]),_0x2e07e9['compare'](_0x5ed063,_0x30ede);},'isVisible':({plugins:_0x559ad1},_0x3f97a4)=>{const _0x17b156=_0x559ad1['get'](d);return!(_0x17b156['repository']['getRevisionsInDiff'](_0x17b156['diff'])['length']>0x2)&&!_0x3f97a4['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x584492,{id:_0x5e4917})=>{_0x584492['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5e4917);},'isVisible':({plugins:_0x2dcc73},_0x22a359)=>!!_0x2dcc73['get'](d)['repository']['getLaterVisibleRevision'](_0x22a359['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4fd1b9},{id:_0x804aa,revisionNameView:_0xa2f0b2})=>{const _0x4e9d3d=_0x4fd1b9['get'](d),_0x2a62b0=_0x4e9d3d['repository']['getEarlierVisibleRevision'](_0x804aa);_0x4e9d3d['compare'](_0x804aa,_0x2a62b0),_0xa2f0b2['focus'](),_0xa2f0b2['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x510fcc,_0x590cce){super(_0x510fcc),this['_view']=_0x590cce,this['_toolbarConfig']=ot(_0x510fcc['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1d6065){const _0x107d8e=this['editor'],_0x577c26=this['view'],_0x293f76=_0x107d8e['editing']['view'],_0xfdf310=_0x577c26['editable'],_0x451118=_0x293f76['document']['getRoot']();_0xfdf310['name']=_0x451118['rootName'],_0x577c26['render']();const _0x3d96f4=_0xfdf310['element'];this['setEditableElement'](_0xfdf310['name'],_0x3d96f4),_0x577c26['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x293f76['attachDomRoot'](_0x3d96f4),this['_elementReplacer']['replace'](_0x1d6065,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x34e1e6=this['view'],_0x1d8808=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1d8808['detachDomRoot'](_0x34e1e6['editable']['name']),_0x34e1e6['destroy']();}['_initToolbar'](){const _0x32f291=this['view'];_0x32f291['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x32f291['stickyPanel']['limiterElement']=_0x32f291['element'],_0x32f291['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xf683ac})=>_0xf683ac),_0x32f291['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x32f291['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x568f71,_0x3fa740,_0x6dc71d={}){super(_0x568f71),this['stickyPanel']=new lt(_0x568f71),this['toolbar']=new nt(_0x568f71,{'shouldGroupWhenFull':_0x6dc71d['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x568f71,_0x3fa740);}['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(_0xeab9a,_0xbbcfae){super(_0xbbcfae),this['sourceElement']=_0xeab9a,this['model']['document']['createRoot']();const _0x452414=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x452414);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x284a87,_0x5d8fc6){const _0xe314b1=new this(_0x284a87,_0x5d8fc6);return await _0xe314b1['initPlugins'](),await _0xe314b1['ui']['init'](_0x284a87),await _0xe314b1['data']['init'](_0xe314b1['config']['get']('initialData')||''),_0xe314b1['fire']('ready'),_0xe314b1;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x1cb4d9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x395dc0){function _0x2e8d7e(_0x465054){return _0x465054['map'](_0x2c5a20=>String['fromCharCode'](_0x2c5a20))['join']('');}super(_0x395dc0),this['result']='end',_0x395dc0[_0x2e8d7e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e8d7e([0x76,0x69,0x65,0x77])][_0x2e8d7e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e8d7e([0x61,0x75,0x74,0x6f]),_0x395dc0[_0x2e8d7e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2e8d7e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e8d7e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2e8d7e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2e8d7e([0x6f,0x6b])});}}class k extends _0x1cb4d9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x49a46f){if(super(_0x49a46f),!this['editor']['config']['get']('revisionHistory'))throw new _0x460288('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2ae519=>this['_showRevisionViewer']({..._0x2ae519,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x216a9=>this['_closeRevisionViewer'](_0x216a9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x11fe75=>this['_restoreRevision'](_0x11fe75)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2b7c92){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2b7c92;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x11ab90){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x11ab90);}['getRevision'](_0x551e3c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x551e3c);}['getRevisions'](_0x35c710){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x35c710||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x7c1244=this['editor'],_0x478a09=_0x2a06ca(_0x7c1244,p),_0x1d21b5=_0x7c1244['plugins']['get']('RevisionTracker'),_0x57f742=_0x7c1244['plugins']['get']('Users')['users'];return _0x478a09['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x478a09['lazyRoots'],(_0x478a09['plugins']['push'](Rt,d,w,class extends _0x1cb4d9{static get['requires'](){return[d,'Users'];}['init'](){const _0x4f9bb5=this['editor']['plugins']['get']('Users');for(const _0x1ed1f5 of _0x57f742)_0x1ed1f5['isAnonymous']||_0x4f9bb5['getUser'](_0x1ed1f5['id'])||_0x4f9bb5['addUser'](_0x1ed1f5);const _0xc6cc7a=_0x1d21b5['repository']['getRevisions']();let _0x39efbd=null;const _0x224054=this['editor']['plugins']['get']('RevisionViewer');_0x224054['adapter']=_0x1d21b5['adapter'],_0x224054['bind']('isEnabled')['to'](_0x1d21b5),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x7c1244,'isReadOnly',_0x5d2067=>!_0x5d2067);for(const _0x3913ba of _0xc6cc7a){const _0x16d9ea=null===_0x3913ba['creator'];if(_0x16d9ea&&_0x3913ba['toVersion']===_0x3913ba['fromVersion'])continue;const _0x5bb696=_0x3913ba['toJSON']();_0x224054['addRevisionData'](_0x5bb696,(_0x27886e,_0x2a62c1,_0x208261)=>{if(_0x16d9ea){if(_0x39efbd)_0x39efbd['_update'](_0x27886e,_0x2a62c1);else{if(!_0x2a62c1){const _0x2377d8=_0x208261['toJSON']();_0x2377d8['id']=_0x2444de(),_0x1d21b5['saveRevision'](_0x2377d8,_0x208261['toVersion'])['then'](_0x51b6b5=>{_0x39efbd=_0x51b6b5;});}}}else _0x3913ba['_update'](_0x27886e,_0x2a62c1);});}}},g),_0x478a09);}['_enhanceShowRevisionViewerCallback'](){const _0x349fc8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x223021=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2edfd3=this['editor']['plugins']['get']('Autosave');await _0x2edfd3['save']();}else await _0x223021['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2df17b=this['editor']['plugins']['get']('Dialog');_0x2df17b['isOpen']&&_0x2df17b['hide']();}const _0x24d15e=this['_getRevisionViewerEditorConfig']();return _0x349fc8(_0x24d15e)['then'](_0x20c165=>{return(this['_viewerEditor']=_0x20c165,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x20c165;})['catch'](_0x26b98e=>(console['error'](_0x26b98e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2b2bbe=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'](),_0x2b2bbe(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x47f92f=this['editor']['plugins']['get']('Annotations');_0x47f92f['refreshVisibility'](),_0x47f92f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x11193d){const _0x387e5d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x13b6f3=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x256cf0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x256cf0,_0x11193d)['then'](_0xd5a9fc=>(_0x13b6f3['style']['display']='block',_0x387e5d['style']['display']='none',_0xd5a9fc));}['_closeRevisionViewer'](_0x3365c2){const _0xb930c2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xb930c2['style']['display']='',_0x3365c2['destroy']();}async['_restoreRevision'](_0x48ead7){const _0x584da3=this['editor'],_0x212d62=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2b6db2=_0x584da3['plugins']['get']('RevisionTracker'),_0x241474=_0x212d62['repository']['getRevision'](_0x48ead7);let _0x401b3d,_0x278593,_0xa99ef9;try{_0x401b3d=await _0x212d62['getRevisionData'](_0x241474),_0x278593=await _0x212d62['getRevisionRootsAttributes'](_0x241474);}catch(_0x499005){return void console['error'](_0x499005);}_0x584da3['model']['change'](_0x11cc63=>{for(const _0x468795 of Array['from'](_0x584da3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x11cc63['removeMarker'](_0x468795);}),_0x212d62['isReady']=!0x1,_0x584da3['model']['enqueueChange'](_0x3ddc96=>{_0x3ddc96['setSelection'](null),_0x3ddc96['removeSelectionAttribute'](_0x584da3['model']['document']['selection']['getAttributeKeys']());const _0x4246f4=Object['keys'](_0x401b3d);for(const _0xab9184 of _0x584da3['model']['document']['roots'])'$graveyard'!=_0xab9184['rootName']&&_0xab9184['isAttached']()&&!_0x4246f4['includes'](_0xab9184['rootName'])&&_0x3ddc96['detachRoot'](_0xab9184);for(const _0x358c46 of _0x4246f4){let _0x300280=_0x584da3['model']['document']['getRoot'](_0x358c46);_0x300280&&_0x300280['isAttached']()||(_0x300280=_0x3ddc96['addRoot'](_0x358c46));const _0x4902af=_0x278593[_0x358c46],_0x2a9259=Object['keys'](_0x4902af),_0x237340=_0x401b3d[_0x358c46];for(const _0x47a123 of _0x300280['getAttributeKeys']())_0x2a9259['includes'](_0x47a123)||_0x3ddc96['removeAttribute'](_0x47a123,_0x300280);for(const _0x1900c5 of _0x2a9259)_0x3ddc96['setAttribute'](_0x1900c5,_0x278593[_0x358c46][_0x1900c5],_0x300280);_0x3ddc96['remove'](_0x3ddc96['createRangeIn'](_0x300280)),_0x3ddc96['insert'](_0x584da3['data']['parse'](_0x237340,_0x300280),_0x300280,0x0);}});const _0x3c0393=m(_0x584da3['locale'],'Restored');if(_0x241474['name'])_0xa99ef9=-0x1==_0x241474['name']['indexOf'](_0x3c0393)?_0x3c0393+':\x20'+_0x241474['name']:_0x241474['name'];else _0xa99ef9=_0x3c0393+':\x20'+(_0x241474['createdAt']['toLocaleDateString'](_0x584da3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x241474['createdAt']['toLocaleTimeString'](_0x584da3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2b6db2['saveRevision']({'name':_0xa99ef9}),_0x212d62['isReady']=!0x0,_0x584da3['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};