@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241224.0 → 0.0.0-nightly-20241226.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/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +8 -8
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x679c3b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xfa7365){super(),this['id']=_0xfa7365['id']||_0x5b7893(),this['creator']=_0xfa7365['creator']||null,this['authors']=_0xfa7365['authors']||[],this['diffData']=_0xfa7365['diffData']||null,this['toVersion']=_0xfa7365['toVersion']||0x0,this['fromVersion']=_0xfa7365['fromVersion']||0x0,this['set']('name',_0xfa7365['name']||''),this['set']('createdAt',_0xfa7365['createdAt']||new Date()),this['set']('attributes',_0xfa7365['attributes']||{});}['setName'](_0x1798a7){this['_update']({'name':_0x1798a7});}['setAttribute'](_0x50f9a9,_0x4a1a98){const _0x420914=_0x11841a(this['attributes']);_0x597a12(_0x420914,_0x50f9a9,_0x4a1a98),this['_update']({'attributes':_0x420914});}['removeAttribute'](_0x2ddd98){const _0x3fd697=_0x11841a(this['attributes']);_0x586e8f(_0x3fd697,_0x2ddd98),this['_update']({'attributes':_0x3fd697});}['_update'](_0x443b49,_0x5e8670=!0x1){let _0x15015b=!0x1;const _0x16dd0a={'id':this['id']},_0x331b08=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3e09fc of _0x331b08){const _0x12e008=_0x443b49[_0x3e09fc];void 0x0!==_0x12e008&&_0x12e008!==this[_0x3e09fc]&&(this[_0x3e09fc]=_0x12e008,_0x16dd0a[_0x3e09fc]=_0x12e008,_0x15015b=!0x0);}_0x15015b&&(_0x16dd0a['authors']&&(_0x16dd0a['authorsIds']=_0x16dd0a['authors']['map'](_0x2dfe25=>_0x2dfe25['id']),delete _0x16dd0a['authors']),this['fire']('_update',_0x16dd0a,_0x5e8670));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x33f245=>_0x33f245['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x481e5f{['_revisions'];static get['requires'](){return[_0x432bf0];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5a57d7){super(_0x5a57d7),this['_revisions']=new _0x37e5f1();}['afterInit'](){!async function(_0x2d954a){const _0x59529f=_0x4857f8([0x34,0x59,0x6d,0x52,0x41,0x42,0x51,0x76,0x73,0x64,0x4d,0x6e,0x38,0x30,0x50,0x6f,0x54,0x49,0x32,0x77,0x39,0x6c,0x4f,0x66,0x7a,0x69,0x37,0x61,0x4c,0x4a,0x48,0x35,0x45,0x79,0x4b,0x6b,0x65,0x46,0x63,0x72,0x67,0x70,0x57,0x58,0x75,0x47,0x31,0x43,0x78,0x5a,0x68,0x33,0x53,0x6a,0x4e,0x36,0x71,0x55,0x56,0x74,0x44,0x62]),_0x2514da=0xeb829,_0x30f61f=0x402e26b2,_0x29104f=0x40297c2a^_0x30f61f,_0x354fc5=window[_0x4857f8([0x44,0x61,0x74,0x65])][_0x4857f8([0x6e,0x6f,0x77])](),_0x5c7df9=_0x2d954a[_0x4857f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a7be7=new window[(_0x4857f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337c03=>{_0x5c7df9[_0x4857f8([0x6f,0x6e,0x63,0x65])](_0x4857f8([0x72,0x65,0x61,0x64,0x79]),_0x337c03);}),_0x4bf83f={[_0x4857f8([0x6b,0x74,0x79])]:_0x4857f8([0x45,0x43]),[_0x4857f8([0x75,0x73,0x65])]:_0x4857f8([0x73,0x69,0x67]),[_0x4857f8([0x63,0x72,0x76])]:_0x4857f8([0x50,0x2d,0x32,0x35,0x36]),[_0x4857f8([0x78])]:_0x4857f8([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]),[_0x4857f8([0x79])]:_0x4857f8([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]),[_0x4857f8([0x61,0x6c,0x67])]:_0x4857f8([0x45,0x53,0x32,0x35,0x36])},_0x357957=_0x5c7df9[_0x4857f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4857f8([0x67,0x65,0x74])](_0x4857f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e42a2(){let _0x15560c,_0x5d1d05=null,_0x480e7f=null;try{if(_0x357957==_0x4857f8([0x47,0x50,0x4c]))return _0x4857f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15560c=_0x54800c(),!_0x15560c)return _0x4857f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15560c[_0x4857f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x480e7f=_0x403b50(_0x15560c[_0x4857f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15560c[_0x4857f8([0x6a,0x74,0x69])])),await _0x3d60e5()?_0x3bcfbd()?_0x55b712()?_0x4857f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e6165()?(_0x15560c[_0x4857f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4857f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d1d05=_0x1a5f8e(_0x4857f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15560c[_0x4857f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4857f8([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d1d05=_0x1a5f8e(_0x4857f8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x15560c[_0x4857f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4857f8([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x5d1d05=_0x1a5f8e(_0x4857f8([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1251a0()):_0x4857f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4857f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4857f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xcb7315){return _0x4857f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55b712(){const _0x5c210b=[_0x4857f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4857f8([0x74,0x72,0x69,0x61,0x6c])][_0x4857f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15560c[_0x4857f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x354fc5/0x3e8:0xe10*_0x29104f;return _0x15560c[_0x4857f8([0x65,0x78,0x70])]<_0x5c210b;}function _0x3bcfbd(){const _0x98a7d4=_0x15560c[_0x4857f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x98a7d4)return!0x1;if(_0x98a7d4[_0x4857f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4857f8([0x2a])))return!0x0;if(_0x98a7d4[_0x4857f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4857f8([0x52,0x48])))return!0x0;if(_0x98a7d4[_0x4857f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4857f8([0x52,0x52,0x48]))){if(_0x51bc1c())return!0x0;if(_0x4cde8d()||_0x361a4e())return!0x0;}return!0x1;}function _0x1e6165(){const _0x2603fa=_0x15560c[_0x4857f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2603fa||0x0==_0x2603fa[_0x4857f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x510393}=new URL(window[_0x4857f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2603fa[_0x4857f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x510393))return!0x0;const _0x23028e=_0x510393[_0x4857f8([0x73,0x70,0x6c,0x69,0x74])](_0x4857f8([0x2e]));return _0x2603fa[_0x4857f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46c01b=>_0x46c01b[_0x4857f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4857f8([0x2a])))[_0x4857f8([0x6d,0x61,0x70])](_0x8f2df=>_0x8f2df[_0x4857f8([0x73,0x70,0x6c,0x69,0x74])](_0x4857f8([0x2e])))[_0x4857f8([0x73,0x6f,0x6d,0x65])](_0x24f9c1=>_0x23028e[_0x4857f8([0x65,0x76,0x65,0x72,0x79])]((_0x552479,_0x1a206d)=>_0x24f9c1[_0x1a206d]===_0x552479||_0x24f9c1[_0x1a206d]===_0x4857f8([0x2a])));}function _0x1251a0(){return _0x5d1d05&&_0x480e7f?new window[(_0x4857f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f507b,_0x25d598)=>{_0x5d1d05[_0x4857f8([0x74,0x68,0x65,0x6e])](_0x4f507b,_0x25d598),_0x480e7f[_0x4857f8([0x74,0x68,0x65,0x6e])](_0x4c6d7a=>{_0x4c6d7a!=_0x4857f8([0x56,0x61,0x6c,0x69,0x64])&&_0x4f507b(_0x4c6d7a);},_0x25d598);}):_0x5d1d05||_0x480e7f||_0x4857f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x403b50(_0x31c87c,_0x5741d9){return new window[(_0x4857f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ec453=>{if(_0x5cf6aa())return _0x4ec453(_0x4857f8([0x56,0x61,0x6c,0x69,0x64]));_0x2ff682(),_0x5c7df9[_0x4857f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4857f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4db4c9=!0x1;const _0x4cf754=_0x5b7893();function _0xa4977b(_0x5cf513){return!!_0x5cf513&&(typeof _0x5cf513===_0x4857f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cf513===_0x4857f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cf513[_0x4857f8([0x74,0x68,0x65,0x6e])]===_0x4857f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cf513[_0x4857f8([0x63,0x61,0x74,0x63,0x68])]===_0x4857f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x292e83(_0xf471db){_0x2f4440(_0xf471db)[_0x4857f8([0x74,0x68,0x65,0x6e])](_0x1bb156=>{if(!_0x1bb156||_0x1bb156[_0x4857f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4857f8([0x6f,0x6b]))return _0x4857f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x58e082(_0x18acd2(_0x4cf754+_0x5741d9))!=_0x1bb156[_0x4857f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4857f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4857f8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4857f8([0x74,0x68,0x65,0x6e])](_0x3b6276=>(_0x4c05f6(),_0x3b6276),()=>{const _0x23c6fc=_0x27c825();return null==_0x23c6fc?(_0x4c05f6(),_0x4857f8([0x56,0x61,0x6c,0x69,0x64])):_0x4857f8(_0x354fc5-_0x23c6fc>(0x6422a2b2^_0x30f61f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4857f8([0x74,0x68,0x65,0x6e])](_0x4ec453)[_0x4857f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ec453(_0x4857f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x551468=0x4018c832^_0x30f61f;function _0x4c05f6(){const _0x230944=_0x4857f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x58e082(_0x18acd2(_0x31c87c)),_0x382b1f=_0x111aa6(_0x58e082(window[_0x4857f8([0x4d,0x61,0x74,0x68])][_0x4857f8([0x63,0x65,0x69,0x6c])](_0x354fc5/_0x551468)));window[_0x4857f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4857f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x230944,_0x382b1f);}function _0x27c825(){const _0x2f02b8=_0x4857f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x58e082(_0x18acd2(_0x31c87c)),_0x2b5a37=window[_0x4857f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4857f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f02b8);return _0x2b5a37?window[_0x4857f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x111aa6(_0x2b5a37),0x10)*_0x551468:null;}function _0x2f4440(_0x560527){return new window[(_0x4857f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9a7ccf,_0x362292)=>{_0x560527[_0x4857f8([0x74,0x68,0x65,0x6e])](_0x9a7ccf,_0x362292),window[_0x4857f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x362292,0x402ff272^_0x30f61f);});}}_0x5c7df9[_0x4857f8([0x6f,0x6e])](_0x4857f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f91a2,_0x437abc)=>{if(_0x437abc[0x0]!=_0x31c87c)return _0x4ec453(_0x4857f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x437abc[0x1]={..._0x437abc[0x1],[_0x4857f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cf754};},{[_0x4857f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4857f8([0x68,0x69,0x67,0x68])}),_0x5c7df9[_0x4857f8([0x6f,0x6e])](_0x4857f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x65e80c=>{_0xa4977b(_0x65e80c[_0x4857f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4db4c9=!0x0,_0x292e83(_0x65e80c[_0x4857f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4857f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4857f8([0x6c,0x6f,0x77])}),_0x4a7be7[_0x4857f8([0x74,0x68,0x65,0x6e])](()=>{_0x4db4c9||_0x4ec453(_0x4857f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cf6aa(){return _0x5c7df9[_0x4857f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4857f8([0x76,0x69,0x65,0x77])][_0x4857f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4857f8([0x61,0x75,0x74,0x6f]);}function _0x2ff682(){_0x5c7df9[_0x4857f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4857f8([0x76,0x69,0x65,0x77])][_0x4857f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4857f8([0x61,0x75,0x74,0x6f]);}}function _0x1a5f8e(_0xb8fad4){const _0x3bfef3=[new window[(_0x4857f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7382cf=>setTimeout(_0x7382cf,0x4027187e^_0x30f61f)),_0x4a7be7[_0x4857f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4857f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc548c1=>{const _0x5b8fc9=0x402e26b5^_0x30f61f,_0x130690=_0x2d954a[_0x4857f8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1b37e2(){_0x130690[_0x4857f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5b8fc9&&_0xc548c1();}_0x1b37e2(),_0x130690[_0x4857f8([0x6f,0x6e])](_0x4857f8([0x61,0x64,0x64]),_0x1b37e2);})),new window[(_0x4857f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12b51c=>{function _0x4e8603(){for(const _0x82d41a in window)if(window[_0x4857f8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4857f8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x82d41a))&&window[_0x82d41a]==_0x2514da)return _0x12b51c();_0x5c7df9[_0x4857f8([0x73,0x74,0x61,0x74,0x65])]!=_0x4857f8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4857f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e8603,0x402e353a^_0x30f61f);}_0x26dbda(_0x4857f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4e8603();})];return window[_0x4857f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4857f8([0x72,0x61,0x63,0x65])](_0x3bfef3)[_0x4857f8([0x74,0x68,0x65,0x6e])](()=>_0xb8fad4);}async function _0x1f1796(){if(await _0x4a7be7,_0x26dbda(_0x4857f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b2288=_0x2d954a[_0x4857f8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x59dd9b=_0x2d954a[_0x4857f8([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])](_0x1b2288[_0x4857f8([0x69,0x64])]),_0xd68397=_0x420ea5(_0x4857f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xd68397[_0x4857f8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b2288['id'],_0x59dd9b?_0x59dd9b['id']:null,!0x0),_0xd68397[_0x4857f8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4857f8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xd68397[_0x4857f8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xd68397[_0x4857f8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3db8c1,void(_0xd68397[_0x4857f8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3db8c1);}if(_0x26dbda(_0x4857f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x244bad=_0x420ea5(_0x4857f8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x244bad[_0x4857f8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4857f8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x244bad[_0x4857f8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x244bad[_0x4857f8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3db8c1,_0x244bad[_0x4857f8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3db8c1;}_0x5c7df9[_0x4857f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4857f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3db8c1,_0x5c7df9[_0x4857f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4857f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3db8c1,_0x5c7df9[_0x4857f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4857f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51bc1c(){return _0x26dbda(_0x4857f8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x420ea5(_0x4857f8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4857f8([0x73,0x74,0x61,0x74,0x65])]==_0x4857f8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4cde8d(){return _0x26dbda(_0x4857f8([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 _0x361a4e(){return _0x26dbda(_0x4857f8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x312bb1(_0x30632f){const _0x88beae=_0x241fa3();_0x5c7df9[_0x88beae]=_0x4857f8([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])+_0x30632f,_0x30632f[_0x4857f8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4857f8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x241fa3()]=_0x2514da),_0x30632f!=_0x4857f8([0x56,0x61,0x6c,0x69,0x64])&&_0x1f1796();}function _0x241fa3(){const _0x52d1cb=window[_0x4857f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4857f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4857f8([0x6e,0x6f,0x77])]())[_0x4857f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4857f8([0x2e]),'');let _0x4bd8b7=_0x4857f8([0x59]);for(let _0x86398b=0x0;_0x86398b<_0x52d1cb[_0x4857f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x86398b+=0x2){let _0x10d269=window[_0x4857f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52d1cb[_0x4857f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x86398b,_0x86398b+0x2));_0x10d269>=_0x59529f[_0x4857f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10d269-=_0x59529f[_0x4857f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bd8b7+=_0x59529f[_0x10d269];}return _0x4bd8b7;}function _0x54800c(){const _0x2d2cd3=_0x357957[_0x4857f8([0x73,0x70,0x6c,0x69,0x74])](_0x4857f8([0x2e]));if(0x3!=_0x2d2cd3[_0x4857f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39a93e(_0x2d2cd3[0x1]);function _0x39a93e(_0xb1df53){const _0x206a26=_0x19294e(_0xb1df53);return _0x206a26&&_0x26366d()?_0x206a26:null;function _0x26366d(){const _0xd8b9c4=_0x206a26[_0x4857f8([0x6a,0x74,0x69])],_0x4ace41=window[_0x4857f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd8b9c4[_0x4857f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd8b9c4[_0x4857f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x341dbb={..._0x206a26,[_0x4857f8([0x6a,0x74,0x69])]:_0xd8b9c4[_0x4857f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xd8b9c4[_0x4857f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x341dbb[_0x4857f8([0x76,0x63])],_0x18acd2(_0x341dbb)==_0x4ace41;}}}async function _0x3d60e5(){let _0x2c2fef=!0x0;try{const _0x140d64=_0x357957[_0x4857f8([0x73,0x70,0x6c,0x69,0x74])](_0x4857f8([0x2e])),[_0x872714,_0x3a08ef,_0x2ec1b6]=_0x140d64;return _0x2f4b8d(_0x872714),await _0x7622b0(_0x872714,_0x3a08ef,_0x2ec1b6),_0x2c2fef;}catch(_0x280a49){return!0x1;}function _0x2f4b8d(_0x2ae7d1){const _0x9a5d=_0x19294e(_0x2ae7d1);_0x9a5d&&_0x9a5d[_0x4857f8([0x61,0x6c,0x67])]==_0x4857f8([0x45,0x53,0x32,0x35,0x36])||(_0x2c2fef=!0x1);}async function _0x7622b0(_0x10c450,_0xbbc5a7,_0x24f5cc){const _0x69e9e0=window[_0x4857f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4857f8([0x66,0x72,0x6f,0x6d])](_0x29358e(_0x24f5cc),_0x5c2034=>_0x5c2034[_0x4857f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9ec957=new window[(_0x4857f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4857f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10c450+_0x4857f8([0x2e])+_0xbbc5a7),_0x10f278=window[_0x4857f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4857f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10f278)return;const _0x273872=await _0x10f278[_0x4857f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4857f8([0x6a,0x77,0x6b]),_0x4bf83f,{[_0x4857f8([0x6e,0x61,0x6d,0x65])]:_0x4857f8([0x45,0x43,0x44,0x53,0x41]),[_0x4857f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4857f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4857f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10f278[_0x4857f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4857f8([0x6e,0x61,0x6d,0x65])]:_0x4857f8([0x45,0x43,0x44,0x53,0x41]),[_0x4857f8([0x68,0x61,0x73,0x68])]:{[_0x4857f8([0x6e,0x61,0x6d,0x65])]:_0x4857f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x273872,_0x69e9e0,_0x9ec957)||(_0x2c2fef=!0x1);}}function _0x19294e(_0xc36f8){return _0xc36f8[_0x4857f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4857f8([0x65,0x79]))?JSON[_0x4857f8([0x70,0x61,0x72,0x73,0x65])](_0x29358e(_0xc36f8)):null;}function _0x29358e(_0x1a3870){return window[_0x4857f8([0x61,0x74,0x6f,0x62])](_0x1a3870[_0x4857f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4857f8([0x2b]))[_0x4857f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4857f8([0x2f])));}function _0x18acd2(_0x7cde53){let _0x551d02=0x1505;function _0x8b5299(_0x419dcd){for(let _0x1d4b68=0x0;_0x1d4b68<_0x419dcd[_0x4857f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d4b68++){const _0x1792a0=_0x419dcd[_0x4857f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d4b68);_0x551d02=(_0x551d02<<0x5)+_0x551d02+_0x1792a0,_0x551d02&=_0x551d02;}}function _0x23d7d2(_0x5dce98){Array[_0x4857f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5dce98)?_0x5dce98[_0x4857f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23d7d2):_0x5dce98&&typeof _0x5dce98==_0x4857f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4857f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5dce98)[_0x4857f8([0x73,0x6f,0x72,0x74])]()[_0x4857f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c52a2,_0x16d748])=>{_0x8b5299(_0x5c52a2),_0x23d7d2(_0x16d748);}):_0x8b5299(window[_0x4857f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5dce98));}return _0x23d7d2(_0x7cde53),_0x551d02>>>0x0;}function _0x58e082(_0x4540e2){return _0x4540e2[_0x4857f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4857f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4857f8([0x30]));}function _0x111aa6(_0x2642d1){return _0x2642d1[_0x4857f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4857f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4857f8([0x6a,0x6f,0x69,0x6e])]('');}function _0x26dbda(_0x5483c4){return _0x5c7df9[_0x4857f8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4857f8([0x68,0x61,0x73])](_0x5483c4);}function _0x420ea5(_0x336735){return _0x5c7df9[_0x4857f8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4857f8([0x67,0x65,0x74])](_0x336735);}function _0x3db8c1(){}function _0x4857f8(_0x2a6491){return _0x2a6491['map'](_0xf5602f=>String['fromCharCode'](_0xf5602f))['join']('');}_0x312bb1(await _0x4e42a2());}(this);}['createRevision'](_0x50fe82){const _0x213845=this['editor']['plugins']['get']('Users');return new a({'id':_0x50fe82['id'],'name':_0x50fe82['name'],'creator':_0x50fe82['creatorId']?_0x213845['getUser'](_0x50fe82['creatorId']):null,'diffData':_0x50fe82['diffData']||_0x50fe82['data'],'authors':_0x50fe82['authorsIds']['map'](_0x1bea96=>_0x213845['getUser'](_0x1bea96)),'createdAt':new Date(_0x50fe82['createdAt']),'attributes':_0x50fe82['attributes'],'fromVersion':_0x50fe82['fromVersion'],'toVersion':_0x50fe82['toVersion']});}['addRevision'](_0x515fae,_0x13383c=0x0){this['_revisions']['add'](_0x515fae,_0x13383c);}['getRevision'](_0xe24581){return this['_revisions']['get'](_0xe24581);}['getRevisions'](_0x3e414e={'toJSON':!0x1}){const _0x4f6f72=Array['from'](this['_revisions']);return _0x4f6f72['reverse'](),_0x3e414e['toJSON']?_0x4f6f72['map'](_0x88104c=>_0x88104c['toJSON']()):_0x4f6f72;}['getIndex'](_0xe149cd){return this['_revisions']['getIndex'](_0xe149cd);}['getEarlierVisibleRevision'](_0x5002af){const [,_0x324983]=this['getRevisionsIterator'](_0x5002af,{'direction':'earlier'});return _0x324983;}['getLaterVisibleRevision'](_0x55786c){const [,_0x30ea91]=this['getRevisionsIterator'](_0x55786c,{'direction':'later'});return _0x30ea91;}['getRevisionsInDiff'](_0x20accf){const _0x388c7a=[];for(const _0x5165af of this['getRevisionsIterator'](_0x20accf['newRevisionId']))if(_0x388c7a['push'](_0x5165af),_0x5165af['id']===_0x20accf['oldRevisionId'])break;return _0x388c7a;}*['getRevisionsIterator'](_0x5155dc,{direction:_0x50fce8='earlier',filter:_0x36fceb=()=>!0x0}={}){const _0x2ed65a='earlier'===_0x50fce8?0x1:-0x1;let _0x4d3aed=this['_revisions']['get'](_0x5155dc),_0x5d3472=this['getIndex'](_0x4d3aed);for(yield _0x4d3aed;_0x4d3aed;){if(_0x5d3472+=_0x2ed65a,_0x4d3aed=this['getRevision'](_0x5d3472),!_0x4d3aed)return;_0x36fceb(_0x4d3aed)&&(yield _0x4d3aed);}}}function R(_0x566667,_0x3fd78f,_0x3e92a9){const t=_0x566667['t'];switch(_0x3fd78f){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'},_0x3e92a9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3e92a9);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 C={'c':_0x50146d,'a':_0x213e47,'e':_0x1eac51,'r':_0x77196e,'u':_0x5351fa};class l extends _0x481e5f{['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[_0x432bf0,j,_0x1c99a6];}constructor(_0x4bc8b4){super(_0x4bc8b4),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4566c8=_0x5b7893();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4566c8},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 _0x1ff1b5=this['repository']['getRevision'](0x0),_0x1dc8b2=_0x1ff1b5&&null===_0x1ff1b5['creator']?_0x1ff1b5:null;if(this['_continueCurrentRevision']=!!_0x1dc8b2&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x339df4=this['_source']['getCurrentRevisionId'](),_0x241063=this['repository']['getRevision'](_0x339df4);if(_0x241063)this['_startingVersion']=_0x241063['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5f0297=this['_source']['history']['_operations']['find'](_0x1c5cbd=>!_0x1c5cbd['_isInit']),_0x4d66df=_0x5f0297?_0x5f0297['baseVersion']:this['_source']['history']['version'];_0x1ff1b5?(_0x1ff1b5['toVersion']<_0x4d66df&&_0x1ff1b5['_update']({'toVersion':_0x4d66df}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1dc8b2['id'],this['_startingVersion']=_0x1dc8b2['fromVersion']):(this['_startingVersion']=_0x1ff1b5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4d66df,this['_continueCurrentRevision']=!0x1);}}else _0x1dc8b2&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1dc8b2['toVersion'],this['editor']['model']['document']['history']['version']),_0x1dc8b2['fromVersion']===_0x1dc8b2['toVersion']?(0x0!==_0x1dc8b2['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1dc8b2['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1dc8b2['id'],this['_startingVersion']=_0x1dc8b2['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',_0x1cbfbb=>!_0x1cbfbb),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d1215=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x50d45e;for(const _0x27710c in _0x1d1215){const _0x41af26=_0x27710c,_0xbadcc8=_0x1d1215[_0x41af26];if('revisionHistoryLicenseKeyValid'==_0xbadcc8||'revisionHistoryLicenseKeyInvalid'==_0xbadcc8||'revisionHistoryLicenseKeyExpired'==_0xbadcc8||'revisionHistoryLicenseKeyDomainLimit'==_0xbadcc8||'revisionHistoryLicenseKeyNotAllowed'==_0xbadcc8||'revisionHistoryLicenseKeyEvaluationLimit'==_0xbadcc8||'revisionHistoryLicenseKeyTrialLimit'==_0xbadcc8||'revisionHistoryLicenseKeyDevelopmentLimit'==_0xbadcc8||'revisionHistoryLicenseKeyUsageLimit'==_0xbadcc8){delete _0x1d1215[_0x41af26],_0x50d45e=_0xbadcc8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x50d45e&&_0x1d1215['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x50d45e&&_0x1d1215['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x50d45e&&_0x1d1215['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x50d45e&&_0x1d1215['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x50d45e&&_0x1d1215['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x50d45e&&_0x1d1215['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x50d45e&&_0x1d1215['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x50d45e&&_0x1d1215['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2fc9b0=this['repository']['getRevision'](0x0),_0x127e6b=await this['getRevisionDocumentData'](_0x2fc9b0),_0x4b95ea=await this['getRevisionRootsAttributes'](_0x2fc9b0);this['_replaceEditorDataWithRevisionData'](_0x127e6b,_0x4b95ea);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2c24a9){this['_source']=_0x2c24a9;}async['update'](){const _0x14d56a=await this['_source']['getLatestVersion']();if(_0x14d56a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4ff42e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x14d56a});_0x4ff42e['authors']=_0x4ff42e['authorsIds']['map'](_0x943caa=>this['editor']['plugins']['get']('Users')['getUser'](_0x943caa)),this['currentRevision']['_update'](_0x4ff42e);}}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'](_0x56003f={},_0x559ceb=null){const _0x2fb365=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x559ceb>this['currentRevision']['toVersion']&&(_0x559ceb=null),null===_0x559ceb&&(_0x559ceb=await this['_source']['getLatestVersion']());const _0x453308=this['_getFromVersion'](_0x559ceb),_0x2ad617=this['buildRevisionData']({'from':_0x453308,'to':_0x559ceb});if(this['currentRevision']['toVersion']<_0x559ceb){const _0x52a97e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x559ceb,'to':_0x559ceb});_0x52a97e['authors']=[],_0x52a97e['authorsIds']=[],_0x52a97e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x52a97e,!0x0),delete _0x52a97e['authors'],_0x2fb365['push'](_0x52a97e);}_0x56003f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x56003f['name']=_0x56003f['name']||null,_0x56003f['id']=_0x56003f['id']||_0x5b7893(),_0x56003f={..._0x56003f,..._0x2ad617};const _0x1e87ee=this['addRevisionData'](_0x56003f);_0x2fb365['push'](_0x56003f);const _0x4c7691=this['repository']['getIndex'](_0x1e87ee);if(0x0!==_0x4c7691){const _0x1c39f4=this['repository']['getRevision'](_0x4c7691-0x1);if(_0x1c39f4['fromVersion']!==_0x559ceb){const _0x234dd4=this['_revisionDataBuilder']['getData'](_0x559ceb,_0x1c39f4['toVersion']),_0xe2dd8c={'id':_0x1c39f4['id'],'diffData':_0x234dd4['diffData'],'authorsIds':_0x234dd4['authorsIds'],'authors':_0x234dd4['authorsIds']['map'](_0xaadccd=>this['editor']['plugins']['get']('Users')['getUser'](_0xaadccd)),'fromVersion':_0x559ceb};_0x1c39f4===this['currentRevision']&&(_0xe2dd8c['createdAt']=new Date(_0x56003f['createdAt']['getTime']()+0xa)),_0x1c39f4['_update'](_0xe2dd8c,!0x0),delete _0xe2dd8c['authors'],_0x2fb365['push'](_0xe2dd8c);}}if(this['adapter']){for(const _0x22d8d9 of _0x2fb365)this['_bufferUpdate'](_0x22d8d9['id'],_0x22d8d9,!0x0);this['sendBufferedUpdates']();}return _0x1e87ee;}['addRevisionData'](_0x519909){const _0x1f2751=this['repository']['createRevision'](_0x519909);return this['adapter']&&_0x1f2751['on']('_update',(_0x38790b,_0x284e28,_0x20bc27)=>{_0x20bc27||(this['_bufferUpdate'](_0x284e28['id'],_0x284e28,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1f2751,this['_findInsertionIndex'](_0x1f2751)),_0x1f2751;}async['getRevisionDocumentData'](_0x124316){await this['_loadRevisionData'](_0x124316);const _0x5ea98d={};for(const _0x184051 in _0x124316['diffData']){if(_0x124316['diffData'][_0x184051]['attachChange']&&!_0x124316['diffData'][_0x184051]['attachChange']['isAttached'])continue;const _0xb8cfef=this['_removeRevisionMarkers'](JSON['parse'](_0x124316['diffData'][_0x184051]['insertions'])),_0x282f93=this['editor']['editing']['view']['document'],_0x1c21e3=new _0x5f58a1(_0x282f93,_0xb8cfef['map'](_0x30f8de=>V(_0x30f8de,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x5ea98d[_0x184051]=this['editor']['data']['processor']['toData'](_0x1c21e3),this['editor']['data']['processor']['useFillerType']('default');}return _0x5ea98d;}async['getRevisionRootsAttributes'](_0x3ae75a){await this['_loadRevisionData'](_0x3ae75a);const _0x1bc4bf={};for(const _0x7f316d in _0x3ae75a['diffData'])_0x3ae75a['diffData'][_0x7f316d]['attachChange']&&!_0x3ae75a['diffData'][_0x7f316d]['attachChange']['isAttached']||(_0x1bc4bf[_0x7f316d]=_0x3ae75a['diffData'][_0x7f316d]['attributesAfter']||{});return _0x1bc4bf;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x47333b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x323b06=0x0;_0x323b06<_0x47333b['length'];_0x323b06++){const _0xbf7ced=_0x47333b[_0x323b06];let _0x40f0a3=!0x1;for(const _0x1d9b5f of Object['keys'](_0xbf7ced))void 0x0===_0xbf7ced[_0x1d9b5f]?delete _0xbf7ced[_0x1d9b5f]:'id'!==_0x1d9b5f&&(_0x40f0a3=!0x0);_0x40f0a3||(_0x47333b[_0x323b06]=null);}if(_0x47333b=_0x47333b['filter'](_0x53631c=>null!==_0x53631c),!_0x47333b['length'])return;for(let _0x223a92=0x0;_0x223a92<_0x47333b['length'];_0x223a92++){const _0x3d316f=_0x47333b[_0x223a92];void 0x0!==_0x3d316f['fromVersion']&&void 0x0===_0x3d316f['toVersion']&&(_0x3d316f['toVersion']=this['repository']['getRevision'](_0x3d316f['id'])['toVersion']),void 0x0!==_0x3d316f['toVersion']&&void 0x0===_0x3d316f['fromVersion']&&(_0x3d316f['fromVersion']=this['repository']['getRevision'](_0x3d316f['id'])['fromVersion']);}const _0x1a3ab9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x47333b,_0x1a3ab9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x41da3e=>{if(_0x41da3e){for(const _0x2b4779 of _0x41da3e)this['setRevisionData']({'id':_0x2b4779['id'],'createdAt':_0x2b4779['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x39b4bd,_0x562924){let _0x1956f5=this['editor']['config']['get']('initialData'),_0x21f05f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1956f5){_0x1956f5={};for(const _0x42dfd2 of this['editor']['model']['document']['getRootNames']())_0x1956f5[_0x42dfd2]='';}if('string'==typeof _0x1956f5&&(_0x1956f5={'main':_0x1956f5}),void 0x0===_0x21f05f){_0x21f05f={};for(const _0x349442 of this['editor']['model']['document']['getRootNames']())_0x21f05f[_0x349442]={};}let _0xaf0226=!0x1;const _0xfe466d=Object['keys'](_0x1956f5),_0x310fe5=Object['keys'](_0x39b4bd);for(const _0x5ea041 of _0xfe466d){if(_0x1956f5[_0x5ea041]!==_0x39b4bd[_0x5ea041]&&''!==_0x1956f5[_0x5ea041]['trim']()){_0xaf0226=!0x0;break;}if(!_0xf2f846(_0x21f05f[_0x5ea041],_0x562924[_0x5ea041])&&Object['keys'](_0x21f05f[_0x5ea041])['length']>0x0){_0xaf0226=!0x0;break;}}_0xaf0226||(_0xaf0226=_0x310fe5['some'](_0x541a77=>!this['editor']['model']['document']['getRoot'](_0x541a77))),_0xaf0226&&_0x16f374('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1956f5,'editorRootsAttributes':_0x21f05f,'revisionData':_0x39b4bd,'revisionRootsAttributes':_0x562924}),this['editor']['config']['set']('initialData',_0x39b4bd),this['editor']['config']['set']('rootsAttributes',_0x562924);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x33399f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x33399f['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2aff91){const _0x589a47=this['repository']['getRevisions']();_0x589a47['reverse']();let _0x33031d=0x0;for(;_0x33031d<_0x589a47['length'];){const _0x49466e=_0x589a47[_0x33031d];if(_0x49466e===this['currentRevision']){_0x33031d++;continue;}if(_0x49466e['id']===this['_initialRevisionId'])break;const _0x15a2cf=_0x2aff91['toVersion']-_0x49466e['toVersion']||_0x2aff91['fromVersion']-_0x49466e['fromVersion'];if(_0x15a2cf>0x0)break;if(_0x15a2cf<0x0)_0x33031d++;else{if(!_0x2aff91['creator']&&_0x49466e['creator'])break;if(_0x49466e['creator']||!_0x2aff91['creator']){if(_0x2aff91['createdAt']>_0x49466e['createdAt'])break;_0x33031d++;}else _0x33031d++;}}return _0x33031d;}['setRevisionData'](_0x4199f3){const _0x3b5a96=this['repository']['getRevision'](_0x4199f3['id']);if(_0x4199f3['createdAt']&&(_0x4199f3['createdAt']=new Date(_0x4199f3['createdAt'])),_0x4199f3['authorsIds']){const _0x1ae61b=this['editor']['plugins']['get']('Users');_0x4199f3['authors']=_0x4199f3['authorsIds']['map'](_0x5cc19b=>_0x1ae61b['getUser'](_0x5cc19b));}_0x3b5a96['_update'](_0x4199f3,!0x0);}['buildRevisionData']({revision:_0x2b95e5=null,from:_0x34f259=null,to:_0x14d0ee=null}){_0x34f259=null!==_0x34f259?_0x34f259:_0x2b95e5['fromVersion'],_0x14d0ee=null!==_0x14d0ee?_0x14d0ee:_0x2b95e5['toVersion'];const _0x59d11c=this['_revisionDataBuilder']['getData'](_0x34f259,_0x14d0ee),_0x5c885e={'diffData':_0x59d11c['diffData'],'authorsIds':_0x59d11c['authorsIds'],'fromVersion':_0x34f259,'toVersion':_0x14d0ee};if(!_0x2b95e5||_0x14d0ee!==_0x2b95e5['toVersion']){const _0x5b383c=_0x14d0ee-0x1,_0x5376b9=this['_source']['history']['getOperation'](_0x5b383c);_0x5c885e['createdAt']=_0x5376b9&&_0x5376b9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x34f259===this['_loadedStateData']['fromVersion']){for(const _0x45ace6 of this['_loadedStateData']['authors'])_0x5c885e['authorsIds']['includes'](_0x45ace6['id'])||_0x5c885e['authorsIds']['push'](_0x45ace6['id']);}return _0x5c885e;}['_loadRevisionData'](_0xcfad8c){if(!_0xcfad8c||_0xcfad8c['diffData'])return Promise['resolve']();{const _0x183305=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x183305,'revisionId':_0xcfad8c['id']})['then'](_0x28c9b2=>{_0xcfad8c['diffData']=_0x28c9b2['diffData'];});}}['_bufferUpdate'](_0x5abdc0,_0x576784,_0x2a5614){if(this['_bufferedUpdates']['has'](_0x5abdc0)){const _0x1f5701=this['_bufferedUpdates']['get'](_0x5abdc0);_0x576784=_0x2a5614?{..._0x1f5701,..._0x576784}:{..._0x576784,..._0x1f5701};}this['_bufferedUpdates']['set'](_0x5abdc0,_0x576784);}['_getFromVersion'](_0x4be193){const _0x1f55cf=this['repository']['getRevisions']();_0x1f55cf['reverse'](),_0x1f55cf['shift']();const _0x147e7d=_0x1f55cf['find'](_0x52b0da=>_0x52b0da['toVersion']<=_0x4be193)['toVersion'];return _0x147e7d<this['_startingVersion']?this['_startingVersion']:_0x147e7d;}['_createInitialRevision'](_0x59497a){const _0x51c96c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x51c96c)this['_initialRevisionId']=_0x51c96c['id'];else{const _0x5892dc=!this['editor']['model']['document']['roots']['find'](_0x47ab54=>this['editor']['model']['hasContent'](_0x47ab54)),_0x47b772=this['editor']['plugins']['get']('Users')['me']['id'],_0x594144=R(this['editor']['locale'],_0x5892dc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x59497a,'to':_0x59497a,'id':this['_initialRevisionId'],'name':_0x594144,'creatorId':_0x47b772});}}['_createCurrentRevision'](_0x444f90){const _0x3bfd1a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3bfd1a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x444f90,'to':_0x444f90,'id':_0x3bfd1a,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1b2a60,from:_0xc276d6,to:_0x568696,creatorId:_0x4a6257,id:_0x577314}){const _0x4ac7c0=this['buildRevisionData']({'from':_0xc276d6,'to':_0x568696});_0x4ac7c0['name']=_0x1b2a60,_0x4ac7c0['creatorId']=_0x4a6257,_0x4ac7c0['id']=_0x577314;const _0x38029a=this['addRevisionData'](_0x4ac7c0);return this['adapter']&&this['_bufferUpdate'](_0x4ac7c0['id'],_0x4ac7c0,!0x0),_0x38029a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x215ce2){return(_0x215ce2=_0x215ce2['filter'](_0x3ee9d6=>!_0x3ee9d6['name']||'revision-start'!==_0x3ee9d6['name']&&'revision-end'!==_0x3ee9d6['name']))['forEach'](_0x550353=>{'string'!=typeof _0x550353&&(_0x550353['children']=this['_removeRevisionMarkers'](_0x550353['children']),_0x550353['attributes']=_0x550353['attributes']['filter'](_0x2a0cd1=>!_0x2a0cd1[0x0]['startsWith']('data-revision-')));}),_0x215ce2;}}function V(_0x53c6e1,_0x5b16a4){const _0x27bc29=_0x5b16a4['editing']['view']['document'];if('string'==typeof _0x53c6e1)return new _0x12498c(_0x27bc29,_0x53c6e1);{const _0x2b1035=_0x53c6e1['children']['map'](_0x9522aa=>V(_0x9522aa,_0x5b16a4));return new(C[_0x53c6e1['type']]||_0x3afd73)(_0x27bc29,_0x53c6e1['name'],_0x53c6e1['attributes'],_0x2b1035);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x107ea6){this['editor']=_0x107ea6,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'](_0x4784b6){this['source']=_0x4784b6;const _0x334e6c=new Map(),_0x5c0c30=new Map(),_0x3e276e=this['editor']['model']['document']['roots']['map'](_0x1ee402=>_0x1ee402['rootName']);for(const _0xa31416 of _0x3e276e){const _0x3ccb38=this['editor']['model']['document']['getRoot'](_0xa31416),_0x29c8b2=F(_0x3ccb38);_0x334e6c['set'](_0xa31416,_0x29c8b2),_0x5c0c30['set'](_0xa31416,Object['fromEntries'](_0x3ccb38['getAttributes']()));}const _0x229315=Array['from'](this['editor']['model']['markers'])['map'](_0x4f97cd=>[_0x4f97cd['name'],_0x4f97cd['getRange']()]),_0x20fc63=this['source']['version'];this['_saveMetaData'](_0x20fc63,_0x334e6c,_0x229315,_0x5c0c30),this['_startingRevisionId']=this['_revisionId'];const _0x1a7a9a=new Map(),_0x243d96=new Map();for(const _0x3734c1 of _0x3e276e){const _0xa069f4=B(_0x3734c1);_0x1a7a9a['set'](_0x3734c1,_0xa069f4),_0x243d96['set'](_0x3734c1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1a7a9a,[],_0x243d96);}['getData'](_0x5a2ebb,_0x39b6bb){if(this['_lastFrom']===_0x5a2ebb&&this['_lastTo']<=_0x39b6bb)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x39b6bb,!0x0);else{if(!this['_savedMetaData']['has'](_0x5a2ebb)){const _0x4050d3=this['_getPreviousFrom'](_0x5a2ebb);this['_calculateMetaData'](_0x4050d3,_0x5a2ebb,!0x1);}this['_calculateMetaData'](_0x5a2ebb,_0x39b6bb,!0x0);}return this['_lastFrom']=_0x5a2ebb,this['_lastTo']=_0x39b6bb,this['_getState']();}['loadState'](_0x549a23){this['_reset'](),this['_lastFrom']=_0x549a23['fromVersion'],this['_lastTo']=_0x549a23['toVersion'];for(const _0xe4348c in _0x549a23['diffData']){const _0x58f1de=_0x549a23['diffData'][_0xe4348c]['attachChange'],_0x2f860b=_0x11841a(_0x549a23['diffData'][_0xe4348c]['attributesBefore'])||{},_0x8266ea=this['_makeModelFromViewString'](_0x549a23['diffData'][_0xe4348c]['deletions']);_0x8266ea['rootName']=_0xe4348c,_0x8266ea['_isAttached']=!_0x58f1de||!_0x58f1de['isAttached'],_0x8266ea['isAttached']=()=>_0x8266ea['_isAttached'],this['_baseRoots']['set'](_0xe4348c,_0x8266ea),this['_baseRootsAttributes']['set'](_0xe4348c,_0x2f860b),_0x58f1de&&this['_touchedRoots']['set'](_0xe4348c,_0x58f1de);const _0x226c34=this['_makeIdsRoot'](_0x8266ea);this['_baseIdsRoots']['set'](_0xe4348c,_0x226c34);for(const [_0x2fb13e,_0x1f518e]of _0x8266ea['markers']){if(!_0x2fb13e['startsWith']('revision:'))continue;const _0x51d9fc=_0x2fb13e['split'](':')[0x2];for(const _0x5c8130 of _0x1f518e['getWalker']({'singleCharacters':!0x0})){const _0x48e59d=this['_getVidAttributeName'](_0x5c8130),_0x3e7601='elementEnd'==_0x5c8130['type']?_0x5c8130['previousPosition']['path']['slice'](0x0,-0x1):_0x5c8130['previousPosition']['path'],_0x5a0dbd=_0x226c34['getNodeByPath'](_0x3e7601)['getAttribute'](_0x48e59d);this['_touched']['set'](_0x5a0dbd,{'userId':_0x51d9fc});}}}this['_startingRevisionId']=this['_revisionId'];const _0x89fc6d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x45a726=>!this['_touched']['has'](_0x45a726));let _0x5b2bf5=0x0;const _0x2228fb=new Map();for(const _0x1ebdd3 in _0x549a23['diffData']){const _0x50f6dc=_0x549a23['diffData'][_0x1ebdd3]['attachChange'],_0x20f0b6=_0x11841a(_0x549a23['diffData'][_0x1ebdd3]['attributesAfter'])||{},_0x1c31eb=this['_makeModelFromViewString'](_0x549a23['diffData'][_0x1ebdd3]['insertions']);_0x1c31eb['rootName']=_0x1ebdd3,_0x1c31eb['_isAttached']=!_0x50f6dc||_0x50f6dc['isAttached'],_0x1c31eb['isAttached']=()=>_0x1c31eb['_isAttached'],this['_diffRoots']['set'](_0x1ebdd3,_0x1c31eb),this['_diffRootsAttributes']['set'](_0x1ebdd3,_0x20f0b6);const _0x2442b7=this['_makeIdsRoot'](_0x1c31eb,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1ebdd3,_0x2442b7),_0x2228fb['set'](_0x1ebdd3,_0x1c31eb['isAttached']()?_0x20f0b6:{});for(const [_0x14cefe,_0x902b8e]of _0x1c31eb['markers']){if(!_0x14cefe['startsWith']('revision:'))continue;const _0x5204cd=_0x14cefe['split'](':')[0x2];for(const _0x1d8119 of _0x902b8e['getWalker']({'singleCharacters':!0x0})){const _0x3106a1=this['_getVidAttributeName'](_0x1d8119),_0x33706e=this['_revisionId']++,_0x127d24='elementEnd'==_0x1d8119['type']?_0x1d8119['previousPosition']['path']['slice'](0x0,-0x1):_0x1d8119['previousPosition']['path'];_0x2442b7['getNodeByPath'](_0x127d24)['_setAttribute'](_0x3106a1,_0x33706e),this['_touched']['set'](_0x33706e,{'userId':_0x5204cd});}}for(const _0x4f82b8 of this['editor']['model']['createRangeIn'](_0x1c31eb)['getWalker']({'singleCharacters':!0x0})){const _0x4ffb8b=this['_getVidAttributeName'](_0x4f82b8),_0x214f69='elementEnd'==_0x4f82b8['type']?_0x4f82b8['previousPosition']['path']['slice'](0x0,-0x1):_0x4f82b8['previousPosition']['path'],_0x1215d1=_0x2442b7['getNodeByPath'](_0x214f69);_0x1215d1['getAttribute'](_0x4ffb8b)>0x0||_0x1215d1['_setAttribute'](_0x4ffb8b,_0x89fc6d[_0x5b2bf5++]);}for(const [_0x17cf45,_0x280758]of _0x1c31eb['markers'])_0x17cf45['startsWith']('revision:')||this['_markers']['set'](_0x17cf45,_0x280758);}const _0x382ed1=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x382ed1),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x382ed1,0x1));const _0x1c41c2=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1c41c2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1c41c2,0x1));const _0x2612b2=Array['from'](this['_diffRoots'])['map'](([_0x2522a7,_0x15276c])=>[_0x2522a7,F(_0x15276c)]);this['_saveMetaData'](this['_lastTo'],_0x2612b2,this['_markers'],_0x2228fb);}['_makeModelFromViewString'](_0x57ab35){const _0x1672b6=JSON['parse'](_0x57ab35),_0xd3b0a3=this['editor']['editing']['view']['document'],_0xd5c161=new _0x5f58a1(_0xd3b0a3,_0x1672b6['map'](_0x251ecf=>V(_0x251ecf,this['editor'])));return this['editor']['data']['toModel'](_0xd5c161);}['_saveMetaData'](_0xa48922,_0x1c4e10,_0x5d38fd,_0xbe65de){const _0xf1d496=new Map(_0x1c4e10),_0x26a773=new Map(_0x11841a(_0xbe65de)),_0x5b32a5=new Map();for(const [_0x264878,_0x2582bd]of _0x5d38fd)_0x5b32a5['set'](_0x264878,{'start':_0x2582bd['start']['clone'](),'end':_0x2582bd['end']['clone'](),'rootName':_0x2582bd['root']['rootName']});this['_savedMetaData']['set'](_0xa48922,{'roots':_0xf1d496,'markers':_0x5b32a5,'rootsAttributes':_0x26a773});}['_removeMetaData'](_0x5a61ed){this['_savedMetaData']['delete'](_0x5a61ed);}['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'](_0x2e6830,_0x4b7e43=null){let _0x363aeb=null;_0x2e6830['is']('documentFragment')||(_0x363aeb=new ft(_0x2e6830['name'],{'vid_start':null===_0x4b7e43?this['_revisionId']++:_0x4b7e43++}));const _0x159d02=[];for(const _0x4c4bad of _0x2e6830['getChildren']())if(_0x4c4bad['is']('element')){_0x159d02['push'](this['_makeIdsRoot'](_0x4c4bad,_0x4b7e43));const _0x2d0094=_0x159d02[_0x159d02['length']-0x1];null!==_0x4b7e43&&(_0x4b7e43=_0x2d0094['is']('element','$text')?_0x2d0094['getAttribute']('vid')+0x1:_0x2d0094['getAttribute']('vid_end')+0x1);}else{for(let _0x12dd49=0x0;_0x12dd49<_0x4c4bad['offsetSize'];_0x12dd49++)_0x159d02['push'](new ft('$text',{'vid':null===_0x4b7e43?this['_revisionId']++:_0x4b7e43++}));}if(_0x2e6830['is']('documentFragment')){const _0x29ce3b=B(_0x2e6830['rootName']);return _0x29ce3b['_insertChild'](0x0,_0x159d02),_0x29ce3b;}return _0x363aeb['_setAttribute']('vid_end',null===_0x4b7e43?this['_revisionId']++:_0x4b7e43++),_0x363aeb['_insertChild'](0x0,_0x159d02),_0x363aeb;}['_calculateMetaData'](_0x1904b2,_0x58875e,_0x559e7f){this['_reset']();const {roots:_0x80fb2d,markers:_0xc81182,rootsAttributes:_0x130c21}=this['_savedMetaData']['get'](_0x1904b2);this['_baseRoots']=new Map(_0x80fb2d),this['_baseRootsAttributes']=new Map(_0x11841a(_0x130c21));for(const [_0x284a2e,_0x4d3404]of this['_baseRoots'])if('$graveyard'!==_0x284a2e&&(this['_diffRoots']['set'](_0x284a2e,F(_0x4d3404)),this['_diffRootsAttributes']=new Map(_0x11841a(_0x130c21)),_0x559e7f)){const _0x506d04=this['_revisionId'];this['_idsRoots']['set'](_0x284a2e,this['_makeIdsRoot'](_0x4d3404)),this['_baseIdsRoots']['set'](_0x284a2e,this['_makeIdsRoot'](_0x4d3404,_0x506d04));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x559e7f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x132c60,_0x3fec41]of _0xc81182){const _0x86c812=this['_baseRoots']['get'](_0x3fec41['rootName']),_0x3fd2a2=this['_diffRoots']['get'](_0x3fec41['rootName']),_0x10943e=new vt(this['_fixPosition'](_0x3fec41['start'],_0x86c812),this['_fixPosition'](_0x3fec41['end'],_0x86c812)),_0x6802f0=this['_fixRange'](_0x10943e,_0x3fd2a2);_0x86c812['markers']['set'](_0x132c60,_0x10943e),this['_markers']['set'](_0x132c60,_0x6802f0);}this['_applyOperations'](_0x1904b2,_0x58875e,_0x559e7f);}['_applyOperations'](_0x2ad59b,_0x5abb98,_0x26632f){for(const _0x70933c of this['source']['getOperations'](_0x2ad59b,_0x5abb98))this['_handleOperation'](_0x70933c,_0x26632f);for(const _0xfa6058 of this['_diffRoots']['values']())_0xfa6058['markers']['clear']();for(const [_0xaab95e,_0x5793fb]of this['_markers']){this['_diffRoots']['get'](_0x5793fb['root']['rootName'])['markers']['set'](_0xaab95e,_0x5793fb['clone']());}const _0x3e8105=new Map(),_0x58fdbb=new Map();for(const [_0x1c9853,_0xf6bcef]of this['_diffRoots'])_0x3e8105['set'](_0x1c9853,F(_0xf6bcef)),_0x58fdbb['set'](_0x1c9853,this['_diffRootsAttributes']['get'](_0x1c9853));this['_saveMetaData'](_0x5abb98,_0x3e8105,this['_markers'],_0x58fdbb);}['_getPreviousFrom'](_0x262729){const _0xeeb5b0=Array['from'](this['_savedMetaData']['keys']());_0xeeb5b0['sort']((_0x1994d3,_0x4efa06)=>_0x1994d3-_0x4efa06),_0xeeb5b0['reverse']();for(const _0x599bde of _0xeeb5b0)if(_0x599bde<_0x262729)return _0x599bde;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x24b730,_0x2215c0){const _0x4b2327=Array['from'](_0x2215c0['markers'])['map'](([_0x18c31b,_0x247b64])=>[_0x18c31b,this['_fixRange'](_0x247b64,_0x24b730)]);_0x24b730['markers']=new Map(_0x4b2327);}['_transformMarkers'](_0x5dd8fa){for(const _0x44815f of this['_markers']['values']()){const _0x3c2448=_0x44815f['getTransformedByOperation'](_0x5dd8fa),_0x3920e0=vt['_createFromRanges'](_0x3c2448);_0x44815f['start']=_0x3920e0['start'],_0x44815f['end']=_0x3920e0['end'];}}['_handleOperation'](_0x5d96d7,_0x4fcf9d){if('addRoot'!=_0x5d96d7['type']&&'detachRoot'!=_0x5d96d7['type']){if('insert'==_0x5d96d7['type']){const _0x29a5a8=_0x5d96d7['position']['root']['rootName'];this['_diffRoots']['has'](_0x29a5a8)||(this['_diffRoots']['set'](_0x29a5a8,B(_0x29a5a8,!0x0)),this['_diffRootsAttributes']['set'](_0x29a5a8,{}),_0x4fcf9d&&this['_idsRoots']['set'](_0x29a5a8,B(_0x29a5a8,!0x0)));}else{if('addRootAttribute'==_0x5d96d7['type']||'removeRootAttribute'==_0x5d96d7['type']||'changeRootAttribute'==_0x5d96d7['type'])return void this['_handleRootAttributeOperation'](_0x5d96d7);'marker'==_0x5d96d7['type']&&this['_handleMarkerOperation'](_0x5d96d7);}if('marker'!==_0x5d96d7['type']){const _0x1a4129=this['_cloneOperation'](_0x5d96d7,this['_diffRoots']);_0x1a4129['_execute'](),this['_transformMarkers'](_0x1a4129);}if(_0x4fcf9d)switch(_0x5d96d7['type']){case'insert':this['_handleInsertOperation'](_0x5d96d7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5d96d7);break;case'merge':this['_handleMergeOperation'](_0x5d96d7);break;case'split':this['_handleSplitOperation'](_0x5d96d7);}}else this['_handleRootOperation'](_0x5d96d7,_0x4fcf9d);}['_cloneOperation'](_0x4c1a3a,_0x38eec1){const _0x24a97a=_0x4c1a3a['clone']();return _0x24a97a['_authorId']=_0x4c1a3a['_authorId'],this['_fixOperation'](_0x24a97a,_0x38eec1),_0x24a97a;}['_getBaseVids'](_0x683eef){return _0x683eef['map'](_0x330107=>{const _0x3c6e30=this['_getVidAttributeName'](_0x330107);return Number(_0x330107['item']['getAttribute'](_0x3c6e30));});}['_generateTape'](_0x27999b,_0x52961f){if(_0x27999b['is']('element','$text'))_0x52961f['push']({'item':_0x27999b,'type':'text'});else{_0x27999b['is']('element')&&_0x52961f['push']({'item':_0x27999b,'type':'elementStart'});for(const _0x534a86 of _0x27999b['getChildren']())this['_generateTape'](_0x534a86,_0x52961f);_0x27999b['is']('element')&&_0x52961f['push']({'item':_0x27999b,'type':'elementEnd'});}return _0x52961f;}['_getState'](){const _0x22e8b0=new Map(this['_touched']),_0x215aca=new Map(_0x22e8b0),_0x53e44c=new Map(),_0x3a1e3a={'insertions':{},'deletions':{}},_0x213a16={'insertions':{},'deletions':{}},_0x4bb601=new Map(),_0x1aa755=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1aa755['delete']('$graveyard');for(const _0x4b97d2 of _0x1aa755){const _0x3ce515=this['_diffRoots']['get'](_0x4b97d2)||B(_0x4b97d2,!0x1),_0x1b98d4=this['_baseRoots']['get'](_0x4b97d2)||B(_0x4b97d2,!0x1);_0x3ce515['isAttached']()||_0x1b98d4['isAttached']()?(_0x3a1e3a['insertions'][_0x4b97d2]=F(_0x3ce515),_0x3a1e3a['deletions'][_0x4b97d2]=F(_0x1b98d4),this['_copyMarkers'](_0x3a1e3a['deletions'][_0x4b97d2],_0x1b98d4),this['_copyMarkers'](_0x3a1e3a['insertions'][_0x4b97d2],_0x3ce515),_0x213a16['insertions'][_0x4b97d2]=this['_generateTape'](this['_idsRoots']['get'](_0x4b97d2),[]),_0x213a16['deletions'][_0x4b97d2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4b97d2)||B(_0x4b97d2,!0x1),[])):_0x1aa755['delete'](_0x4b97d2);}for(const _0x120002 of _0x1aa755){const _0x4dc23a=_0x213a16['insertions'][_0x120002];for(const _0x5d961c of _0x4dc23a){const _0x5437af=this['_getVidAttributeName'](_0x5d961c),_0x566176=_0x5d961c['item']['getAttribute'](_0x5437af);_0x215aca['delete'](_0x566176),_0x566176>=this['_startingRevisionId']&&_0x53e44c['set'](_0x566176,_0x22e8b0['get'](_0x566176));}}for(const _0x223bfe of _0x1aa755){const _0x43ee27=_0x213a16['insertions'][_0x223bfe],_0x258f71=this['_getBaseVids'](_0x213a16['deletions'][_0x223bfe]);let _0x5a1875=0x0;for(const _0x52c397 of _0x43ee27){const _0x3aa557=this['_getVidAttributeName'](_0x52c397),_0x1bf469=_0x52c397['item']['getAttribute'](_0x3aa557);if(!_0x53e44c['has'](_0x1bf469)&&!_0x4bb601['has'](_0x1bf469)){if(_0x215aca['has'](_0x1bf469))_0x5a1875++;else{if(_0x1bf469!=_0x258f71[_0x5a1875]){const _0x140d45=_0x22e8b0['get'](_0x1bf469)||_0x22e8b0['get'](_0x258f71[_0x5a1875]);for(;_0x1bf469!=_0x258f71[_0x5a1875];)_0x215aca['has'](_0x258f71[_0x5a1875])||(_0x4bb601['set'](_0x258f71[_0x5a1875],_0x140d45),_0x22e8b0['set'](_0x258f71[_0x5a1875],_0x140d45)),_0x5a1875++;}_0x5a1875++;}}}}for(const _0x3485c3 of _0x1aa755){const _0x3c1708=_0x213a16['insertions'][_0x3485c3];for(const _0x1fc081 of _0x3c1708){const _0x20bc80=this['_getVidAttributeName'](_0x1fc081),_0x59a582=_0x1fc081['item']['getAttribute'](_0x20bc80);if(_0x4bb601['has'](_0x59a582)){const _0x4fd8b1=_0x4bb601['get'](_0x59a582);_0x215aca['has'](_0x59a582)||_0x215aca['set'](_0x59a582,{..._0x4fd8b1}),_0x53e44c['set'](_0x59a582,{..._0x4fd8b1});}}}for(const _0x2f5a8f of _0x215aca['keys']())_0x2f5a8f>=this['_startingRevisionId']&&_0x215aca['delete'](_0x2f5a8f);const _0x245256=new Map();for(const _0x5377dc of _0x1aa755){let _0xc88035=_0x213a16['insertions'][_0x5377dc];for(const _0x122745 of _0xc88035)if(_0x122745['item']['is']('element','tableCell')){const _0x3aa952=this['_getVidAttributeName'](_0x122745),_0x420dce=_0x122745['item']['getAttribute'](_0x3aa952);if(_0x53e44c['has'](_0x420dce)){const _0x58d291=_0x122745['item']['parent']['parent']['getAttribute']('vid_start'),_0x5a0420=_0x245256['get'](_0x58d291)||new Set();_0x5a0420['add'](_0x53e44c['get'](_0x420dce)['userId']),_0x245256['set'](_0x58d291,_0x5a0420);}}_0xc88035=_0x213a16['deletions'][_0x5377dc];for(const _0x5b7305 of _0xc88035)if(_0x5b7305['item']['is']('element','tableCell')){const _0x1248ad=this['_getVidAttributeName'](_0x5b7305),_0x57c03d=_0x5b7305['item']['getAttribute'](_0x1248ad);if(_0x215aca['has'](_0x57c03d)){const _0x117b30=_0x5b7305['item']['parent']['parent']['getAttribute']('vid_start'),_0x5492f2=_0x245256['get'](_0x117b30)||new Set();_0x5492f2['add'](_0x215aca['get'](_0x57c03d)['userId']),_0x245256['set'](_0x117b30,_0x5492f2);}}for(const _0x2e4bd2 of _0x245256['keys']())(_0x53e44c['has'](_0x2e4bd2)||_0x215aca['has'](_0x2e4bd2))&&_0x245256['delete'](_0x2e4bd2);}for(const _0xc0a59a of _0x1aa755){const _0x171ccc=_0x213a16['insertions'][_0xc0a59a];let _0x5c3d08=null,_0xd2aa99=null;for(const _0x49120a of _0x171ccc){const _0x108ea8=this['_getVidAttributeName'](_0x49120a),_0x332fbc=_0x49120a['item']['getAttribute'](_0x108ea8),_0x2b08ec=_0x245256['get'](_0x332fbc);_0x2b08ec&&'elementStart'==_0x49120a['type']&&(_0x5c3d08=Array['from'](_0x2b08ec)[0x0],_0xd2aa99=_0x49120a['item']['getAttribute']('vid_end')),_0x5c3d08&&(_0x215aca['set'](_0x332fbc,{'userId':_0x5c3d08}),_0x53e44c['set'](_0x332fbc,{'userId':_0x5c3d08})),_0x332fbc==_0xd2aa99&&(_0x5c3d08=null,_0xd2aa99=null);}}const _0x306d71={},_0x4b19c0=new Set();for(const _0x517df8 of _0x1aa755){const _0x719810=_0x3a1e3a['deletions'][_0x517df8],_0x164c23=_0x3a1e3a['insertions'][_0x517df8];for(const {userId:_0x8d2adc}of this['_touchedMarkers']['values']())null!==_0x8d2adc&&_0x4b19c0['add'](_0x8d2adc);for(const {userId:_0x3e137a}of this['_touchedRoots']['values']())null!==_0x3e137a&&_0x4b19c0['add'](_0x3e137a);this['_markChanges'](_0x164c23,_0x213a16['insertions'][_0x517df8],_0x53e44c,'insertion',_0x4b19c0),this['_markChanges'](_0x719810,_0x213a16['deletions'][_0x517df8],_0x215aca,'deletion',_0x4b19c0),_0x306d71[_0x517df8]={'insertions':this['_prepareViewToSave'](_0x164c23),'deletions':this['_prepareViewToSave'](_0x719810),'attachChange':this['_touchedRoots']['get'](_0x517df8)||null,'attributesBefore':_0x11841a(this['_baseRootsAttributes']['get'](_0x517df8))||{},'attributesAfter':_0x11841a(this['_diffRootsAttributes']['get'](_0x517df8))};}return{'diffData':_0x306d71,'authorsIds':Array['from'](_0x4b19c0)};}['_processRootBeforeSave'](_0x395060){for(const [,_0x151178]of _0x395060['markers']){const _0x1567e2=_0x151178['start']['getAncestors']()['filter'](_0x102a79=>'tableCell'==_0x102a79['name']);for(const _0x4eb0cf of _0x1567e2)0x1==_0x4eb0cf['childCount']&&_0x4eb0cf['getChild'](0x0)['is']('element','paragraph')&&_0x4eb0cf['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x263e83){this['_processRootBeforeSave'](_0x263e83);const _0x57f618=this['editor']['data']['toView'](_0x263e83,{}),_0x4e7936=Array['from'](_0x57f618['getChildren']())['map'](_0x3d9807=>this['_getViewJson'](_0x3d9807));return JSON['stringify'](_0x4e7936);}['_getViewJson'](_0xeb0e4b){if(_0xeb0e4b['is']('$text'))return _0xeb0e4b['data'];{const _0x48380f=_0xeb0e4b;return{'type':Object['keys'](C)['find'](_0x3e775d=>_0xeb0e4b instanceof C[_0x3e775d]),'name':_0x48380f['name'],'attributes':Array['from'](_0x48380f['getAttributes']()),'children':Array['from'](_0x48380f['getChildren']())['map'](_0x40c626=>this['_getViewJson'](_0x40c626))};}}['_markChanges'](_0x50a40f,_0x155422,_0x51c474,_0xcabdce,_0x1f10cf){let _0x4f998b=null,_0x174250=null,_0x2248fe=0x0;const _0x29e20e=this['editor']['model'];for(let _0x2ce8aa=0x0;_0x2ce8aa<_0x155422['length'];_0x2ce8aa++){const _0x4b15d5=this['_getVidAttributeName'](_0x155422[_0x2ce8aa]),_0x24500c=_0x155422[_0x2ce8aa]['item']['getAttribute'](_0x4b15d5),_0x5ce40e=_0x51c474['get'](_0x24500c),_0x44f04d=_0x2ce8aa==_0x155422['length']-0x1;(!_0x4f998b&&_0x5ce40e&&(_0x4f998b=_0x5ce40e,_0x174250=_0x155422[_0x2ce8aa]),_0x4f998b&&(!_0x5ce40e||_0x5ce40e['userId']!=_0x4f998b['userId']))&&(_0x3f1dea(_0x5ce40e,J(_0x174250,_0x50a40f,_0x29e20e),J(_0x155422[_0x2ce8aa],_0x50a40f,_0x29e20e)),_0x4f998b=_0x5ce40e||null,_0x174250=_0x5ce40e?_0x155422[_0x2ce8aa]:null),_0x4f998b&&_0x44f04d&&_0x3f1dea(_0x5ce40e,J(_0x174250,_0x50a40f,_0x29e20e),q(_0x155422[_0x2ce8aa],_0x50a40f,_0x29e20e));}function _0x3f1dea(_0x38973d,_0x1f5caf,_0x3849b0){const _0x148d28=_0x4f998b['userId'],_0x24be0c='revision:'+_0xcabdce+':'+_0x148d28+':'+_0x2248fe++,_0x2b3b56=_0x29e20e['createRange'](_0x1f5caf,_0x3849b0);_0x50a40f['markers']['set'](_0x24be0c,_0x2b3b56),null!==_0x148d28&&_0x1f10cf['add'](_0x148d28);}}['_getVidAttributeName'](_0x2fd192){switch(_0x2fd192['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xb3d8a7,_0x5c2128){_0xb3d8a7['baseVersion']=null;for(const _0x2857d6 in _0xb3d8a7){const _0xff58b2=_0xb3d8a7[_0x2857d6];if(_0xff58b2 instanceof gt){const _0x515847=_0x5c2128['get'](_0xff58b2['root']['rootName']);_0xb3d8a7[_0x2857d6]=this['_fixPosition'](_0xff58b2,_0x515847);}if(_0xff58b2 instanceof vt){const _0x524b54=_0x5c2128['get'](_0xff58b2['root']['rootName']);_0xb3d8a7[_0x2857d6]=this['_fixRange'](_0xff58b2,_0x524b54);}'root'===_0x2857d6&&(_0xb3d8a7['root']=_0x5c2128['get'](_0xb3d8a7['root']['rootName']));}}['_fixRange'](_0x277eec,_0x1ea7e4){return this['editor']['model']['createRange'](this['_fixPosition'](_0x277eec['start'],_0x1ea7e4),this['_fixPosition'](_0x277eec['end'],_0x1ea7e4));}['_fixPosition'](_0x3675e9,_0x4a3db9){return this['editor']['model']['createPositionFromPath'](_0x4a3db9,_0x3675e9['path'],_0x3675e9['stickiness']);}['_handleInsertOperation'](_0x1fa81e){const _0x3652c3=this['_idsRoots']['get'](_0x1fa81e['position']['root']['rootName']),_0x5daa6b=this['_fixPosition'](_0x1fa81e['position'],_0x3652c3),_0x5da28e=null===_0x1fa81e['_authorId']?null:_0x1fa81e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23f259=_0x5daa6b['parent'],_0x38a005=this['_revisionId'],_0x99d5b8=[];for(const _0x311078 of _0x1fa81e['nodes'])if(_0x311078['is']('element'))_0x99d5b8['push'](this['_makeIdsRoot'](_0x311078));else{for(let _0xe1c989=0x0;_0xe1c989<_0x311078['offsetSize'];_0xe1c989++)_0x99d5b8['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2a3a7e=this['_revisionId'];for(let _0x29db14=_0x38a005;_0x29db14<_0x2a3a7e;_0x29db14++)this['_touched']['set'](_0x29db14,{'userId':_0x5da28e});_0x23f259['_insertChild'](_0x5daa6b['offset'],_0x99d5b8);}['_handleMoveOperation'](_0x1fbfdb){(_0x1fbfdb=this['_cloneOperation'](_0x1fbfdb,this['_idsRoots']))['_execute']();const _0x4f96ce=null===_0x1fbfdb['_authorId']?null:_0x1fbfdb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ec67a=_0x1fbfdb['getMovedRangeStart'](),_0x687095=_0x5ec67a['parent'],_0x22e1eb=_0x5ec67a['offset'];!function _0x2dd48d(_0x1f4cfc,_0x39dd52,_0x1d6f90,_0x184c6f){for(let _0x15a098=_0x1d6f90;_0x15a098<_0x184c6f;_0x15a098++){const _0xe5a4d=_0x39dd52['getChild'](_0x15a098);_0xe5a4d['is']('element','$text')?_0x1f4cfc['set'](_0xe5a4d['getAttribute']('vid'),{'userId':_0x4f96ce}):(_0x1f4cfc['set'](_0xe5a4d['getAttribute']('vid_start'),{'userId':_0x4f96ce}),_0x2dd48d(_0x1f4cfc,_0xe5a4d,0x0,_0xe5a4d['childCount']),_0x1f4cfc['set'](_0xe5a4d['getAttribute']('vid_end'),{'userId':_0x4f96ce}));}}(this['_touched'],_0x687095,_0x22e1eb,_0x22e1eb+_0x1fbfdb['howMany']);}['_handleMergeOperation'](_0x504811){const _0x3ab200=null===(_0x504811=this['_cloneOperation'](_0x504811,this['_idsRoots']))['_authorId']?null:_0x504811['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17f888=_0x504811['targetPosition']['parent'],_0x9cec61=_0x504811['sourcePosition']['parent'],_0x58f893=_0x17f888['getAttribute']('vid_end'),_0x1c9b19=_0x9cec61['getAttribute']('vid_start');_0x17f888['_setAttribute']('vid_end',_0x9cec61['getAttribute']('vid_end')),_0x9cec61['_setAttribute']('vid_end',_0x58f893),this['_touched']['set'](_0x1c9b19,{'userId':_0x3ab200}),this['_touched']['set'](_0x58f893,{'userId':_0x3ab200}),_0x504811['_execute']();}['_handleSplitOperation'](_0x1f6b95){const _0x193d93=null===(_0x1f6b95=this['_cloneOperation'](_0x1f6b95,this['_idsRoots']))['_authorId']?null:_0x1f6b95['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x82ef97=_0x1f6b95['graveyardPosition'],_0x24144a=_0x1f6b95['splitPosition']['parent'];_0x1f6b95['_execute']();const _0x5c26cb=_0x24144a['getAttribute']('vid_end'),_0xeb22fd=_0x1f6b95['insertionPosition']['nodeAfter'];if(_0x82ef97){const _0x35a349=_0xeb22fd['getAttribute']('vid_end'),_0x5bef01=_0x24144a['getAttribute']('vid_end');_0x24144a['_setAttribute']('vid_end',_0x35a349),_0xeb22fd['_setAttribute']('vid_end',_0x5bef01),this['_touched']['set'](_0x24144a['getAttribute']('vid_end'),{'userId':_0x193d93}),this['_touched']['set'](_0xeb22fd['getAttribute']('vid_start'),{'userId':_0x193d93});}else{const _0x5a4403=this['_revisionId']++,_0x2abf6e=this['_revisionId']++;_0x24144a['_setAttribute']('vid_end',_0x5a4403),_0xeb22fd['_setAttribute']('vid_start',_0x2abf6e),_0xeb22fd['_setAttribute']('vid_end',_0x5c26cb),this['_touched']['set'](_0x5a4403,{'userId':_0x193d93}),this['_touched']['set'](_0x2abf6e,{'userId':_0x193d93});}}['_handleMarkerOperation'](_0x47b3d7){if(!_0x47b3d7['affectsData'])return;const _0xde2a71=(_0x47b3d7=this['_cloneOperation'](_0x47b3d7,this['_diffRoots']))['oldRange']?_0x47b3d7['oldRange']['root']:null,_0x26cfa0=_0x47b3d7['newRange']?_0x47b3d7['newRange']['root']:null;_0xde2a71&&this['_markers']['delete'](_0x47b3d7['name']),_0x26cfa0&&this['_markers']['set'](_0x47b3d7['name'],_0x47b3d7['newRange']['clone']());const _0x5ea3df=null===_0x47b3d7['_authorId']?null:_0x47b3d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x254944=_0x47b3d7['name'];if(!this['_touchedMarkers']['has'](_0x254944))return void this['_touchedMarkers']['set'](_0x254944,{'range':_0x47b3d7['oldRange'],'userId':_0x5ea3df});const _0x2e2d6b=this['_touchedMarkers']['get'](_0x254944),_0x99072f=_0x2e2d6b['range'],_0x3d9789=_0x47b3d7['newRange'];null==_0x99072f&&null==_0x3d9789||_0x99072f&&_0x3d9789&&_0x99072f['isEqual'](_0x3d9789)?this['_touchedMarkers']['delete'](_0x47b3d7['name']):_0x2e2d6b['userId']=_0x5ea3df;}['_handleRootOperation'](_0x5d90f9,_0x1355e0){this['_diffRoots']['has'](_0x5d90f9['rootName'])?this['_diffRoots']['get'](_0x5d90f9['rootName'])['_isAttached']=_0x5d90f9['isAdd']:(this['_diffRoots']['set'](_0x5d90f9['rootName'],B(_0x5d90f9['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5d90f9['rootName'],{}),_0x1355e0&&this['_idsRoots']['set'](_0x5d90f9['rootName'],B(_0x5d90f9['rootName'],!0x0)));const _0x486f50=null===_0x5d90f9['_authorId']?null:_0x5d90f9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d0fe4=this['_touchedRoots']['get'](_0x5d90f9['rootName']);_0x3d0fe4&&_0x3d0fe4['userId']===_0x486f50?this['_touchedRoots']['delete'](_0x5d90f9['rootName']):this['_touchedRoots']['set'](_0x5d90f9['rootName'],{'userId':_0x486f50,'isAttached':_0x5d90f9['isAdd']});}['_handleRootAttributeOperation'](_0x4e77d8){const _0x5992cb=this['_diffRootsAttributes']['get'](_0x4e77d8['root']['rootName']);null===_0x4e77d8['newValue']?delete _0x5992cb[_0x4e77d8['key']]:_0x5992cb[_0x4e77d8['key']]=_0x4e77d8['newValue'];}}function F(_0x4f6bb3){const _0x4af13b=B(_0x4f6bb3['rootName'],_0x4f6bb3['isAttached']());for(const _0x2e0f2d of _0x4f6bb3['getChildren']()){const _0x1fbbe1=_0x2e0f2d['_clone'](!0x0);_0x4af13b['_appendChild'](_0x1fbbe1);}return _0x4af13b;}function B(_0x2f0064,_0x2c707a=!0x0){const _0x1fa9a6=new mt();return _0x1fa9a6['rootName']=_0x2f0064,_0x1fa9a6['_isAttached']=_0x2c707a,_0x1fa9a6['isAttached']=()=>_0x1fa9a6['_isAttached'],_0x1fa9a6;}function J(_0xa0e80a,_0x1638e7,_0x121dca){const _0x4724a0='elementEnd'==_0xa0e80a['type']?_0x121dca['createPositionAt'](_0xa0e80a['item'],'end'):_0x121dca['createPositionBefore'](_0xa0e80a['item']);return _0x121dca['createPositionFromPath'](_0x1638e7,_0x4724a0['path'],_0x4724a0['stickiness']);}function q(_0x39d191,_0x2e4015,_0x2a472c){const _0x17637a='elementStart'==_0x39d191['type']?_0x2a472c['createPositionAt'](_0x39d191['item'],0x0):_0x2a472c['createPositionAfter'](_0x39d191['item']);return _0x2a472c['createPositionFromPath'](_0x2e4015,_0x17637a['path'],_0x17637a['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x32a394,_0x57229b){super(_0x32a394),this['focusTracker']=new _0x15eda9(),this['keystrokes']=new _0x462cd7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x57229b),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1bee5e(this);}['render'](){super['render'](),_0x59ba01({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2ca053=_0x5256e4=>_0x5256e4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2ca053),this['keystrokes']['set']('arrowleft',_0x2ca053),this['keystrokes']['set']('arrowup',_0x2ca053),this['keystrokes']['set']('arrowdown',_0x2ca053);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x541ae9){this['revisionNameInputView']['fieldView']['element']['value']=_0x541ae9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x16911e){const _0x1c6a05=new _0x2135de(this['locale'],_0x29341b),_0x1474ce=_0x1c6a05['fieldView'];_0x1474ce['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1c7b1b=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x16911e&&(_0x1c7b1b+='\x20('+R(this['locale'],'optional')+')'),(_0x1c6a05['label']=_0x1c7b1b,_0x1474ce['on']('input',()=>{this['revisionNameInputValue']=_0x1474ce['element']['value']['trim']();}),_0x1c6a05);}}class u extends _0x481e5f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2ea3ab=this['editor'],_0x4c3ea7=_0x2ea3ab['plugins']['get']('RevisionTracker');_0x2ea3ab['ui']['componentFactory']['add']('revisionHistory',_0x1de3d3=>{const _0x186794=_0x48d8c8(_0x1de3d3),_0x407e1b=_0x186794['panelView']['children'],_0x459ba5=new _0x1c47e9(_0x1de3d3),_0x436a66=new _0x2685ee(_0x1de3d3),_0x24be09=new te(_0x1de3d3),_0x1d3acd=new _0x2685ee(_0x1de3d3),_0x31d3a4=new te(_0x1de3d3);return _0x186794['bind']('isEnabled')['to'](_0x4c3ea7,'isReady',_0x4c3ea7,'isEnabled',_0x2ea3ab,'isReadOnly',(_0x23814c,_0x35c626,_0x3ced39)=>_0x23814c&&_0x35c626&&!_0x3ced39),_0x186794['buttonView']['set']({'icon':_0x25076a['history'],'label':R(_0x1de3d3,'Revision\x20history'),'tooltip':!0x0}),_0x24be09['set']({'label':R(_0x1de3d3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x24be09['bind']('isEnabled')['to'](_0x4c3ea7,'isReady',_0x4c3ea7,'isEnabled',_0x2ea3ab,'isReadOnly',(_0x4bf288,_0x3b3793,_0x2cd929)=>_0x4bf288&&_0x3b3793&&!_0x2cd929),_0x24be09['on']('execute',()=>this['_showDialog']()),_0x31d3a4['set']({'label':R(_0x1de3d3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x31d3a4['bind']('isEnabled')['to'](_0x4c3ea7,'isReady',_0x2ea3ab,'isReadOnly',(_0x36f5a4,_0x5303fc)=>_0x36f5a4&&!_0x5303fc),_0x31d3a4['on']('execute',()=>{_0x2ea3ab['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x186794['isOpen']=!0x1,_0x2ea3ab['editing']['view']['focus']();}),_0x436a66['children']['add'](_0x24be09),_0x1d3acd['children']['add'](_0x31d3a4),_0x459ba5['role']='menu',_0x459ba5['items']['addMany']([_0x436a66,_0x1d3acd]),_0x407e1b['add'](_0x459ba5),_0x186794;}),_0x2ea3ab['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x28dbf3=this['editor'],_0x25f8fa=_0x28dbf3['locale'],_0x567394=new _0x1167f9(_0x25f8fa),_0x360326=new _0x2cdf0b(_0x25f8fa);_0x567394['buttonView']['set']({'icon':_0x25076a['history'],'label':R(_0x25f8fa,'Revision\x20history')});const _0x3f11f4=new _0x87a887(_0x25f8fa,_0x567394),_0x18f799=new _0x3c39dd(_0x25f8fa);_0x18f799['set']({'label':R(_0x25f8fa,'Save\x20current\x20revision')}),_0x18f799['delegate']('execute')['to'](_0x567394),_0x18f799['on']('execute',()=>{this['_showDialog']();}),_0x3f11f4['children']['add'](_0x18f799),_0x360326['items']['add'](_0x3f11f4);const _0x8c4356=new _0x87a887(_0x25f8fa,_0x567394),_0x493881=new _0x3c39dd(_0x25f8fa);return _0x493881['set']({'label':R(_0x25f8fa,'Open\x20revision\x20history')}),_0x493881['delegate']('execute')['to'](_0x567394),_0x493881['on']('execute',()=>{_0x28dbf3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x8c4356['children']['add'](_0x493881),_0x360326['items']['add'](_0x8c4356),_0x567394['panelView']['children']['add'](_0x360326),_0x567394;}['_showDialog'](){const _0x242b69=this['editor'],_0x58e943=_0x242b69['locale'],_0x5496a8=_0x242b69['plugins']['get']('Dialog'),_0x1b3aff=_0x242b69['plugins']['get']('RevisionTracker');function _0x349f8b(_0x15e5c4){_0x242b69['config']['get']('revisionHistory.requireRevisionName')&&''===_0x15e5c4['revisionName']?_0x15e5c4['revisionNameInputView']['errorText']=R(_0x58e943,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x242b69['plugins']['get'](l)['saveRevision']({'name':_0x15e5c4['revisionName']}),_0x5496a8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x349f8b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5496a8['show']({'id':'revisionSave','title':R(_0x58e943,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x242b69['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5496a8['hide']()},{'label':R(_0x242b69['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3968d8){_0x3968d8['bind']('isEnabled')['to'](_0x1b3aff,'isReady',_0x1b3aff,'isEnabled',_0x242b69,'isReadOnly',(_0x326fcb,_0x1066bf,_0x105207)=>_0x326fcb&&_0x1066bf&&!_0x105207);},'onExecute':()=>_0x349f8b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x30c320=this['editor'],_0x4d10d0=_0x30c320['locale'];this['_saveRevisionFormView']=new hs(_0x4d10d0,_0x30c320['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x230839,_0x468bf7){super(_0x230839),this['_model']=_0x468bf7,this['changeId']=_0x468bf7['id'];const _0x34121c=this['bindTemplate'],_0x37a215=R(_0x230839,_0x468bf7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x468bf7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x468bf7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x34121c['to']('type',_0x3168bf=>'ck-revision-change__'+_0x3168bf)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x37a215}]},{'text':'\x20'+_0x468bf7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x679c3b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x28d884){super(),this['id']=_0x28d884['id']||_0x5b7893(),this['author']=_0x28d884['author'],this['type']=_0x28d884['type'],this['data']=_0x28d884['data']||{},this['rootName']=_0x28d884['rootName'],this['set']('createdAt',_0x28d884['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x360fad,_0x431016){this['newRevisionId']=_0x360fad,this['oldRevisionId']=_0x431016,this['changes']=new _0x37e5f1();}['_setChanges'](_0xa5fa89){for(const _0x77f4e2 of _0xa5fa89)this['changes']['add'](_0x77f4e2);}}const Z={'c':_0x50146d,'a':_0x213e47,'e':_0x1eac51,'r':_0x77196e,'u':_0x5351fa};class d extends _0x481e5f{['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[_0x432bf0,_0x7368e5,j];}constructor(_0x121839){super(_0x121839),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',(_0x5c44be,_0x3a548a,_0x16186f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x46bae1=>{for(const _0x1e8ede of this['editor']['editing']['view']['document']['roots'])_0x16186f?_0x46bae1['removeClass']('ck-editor__editable__overlay',_0x1e8ede):_0x46bae1['addClass']('ck-editor__editable__overlay',_0x1e8ede);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4a5264=>null!==_0x4a5264),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2e0d94,_0x5cb991,_0x3b0504)=>_0x2e0d94&&_0x3b0504?_0x5cb991['changes']['getIndex'](_0x3b0504):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5a446e,_0x552ef4)=>_0x5a446e?_0x552ef4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x7368e5);}['init'](){const _0x1c133e=this['editor'],_0x2c42b2=new yt(_0x1c133e,{'direction':'backward'}),_0x3f51a5=new yt(_0x1c133e,{'direction':'forward'});(_0x1c133e['commands']['add']('showPreviousChange',_0x2c42b2),_0x1c133e['commands']['add']('showNextChange',_0x3f51a5),_0x1c133e['commands']['add']('restoreRevision',new _t(_0x1c133e)),this['on']('change:numberOfChanges',()=>{_0x2c42b2['refresh'](),_0x3f51a5['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1c133e['enableReadOnlyMode']('revision-viewer'),_0x1c133e['plugins']['has']('WidgetToolbarRepository'))&&_0x1c133e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2ac6b9){await this['loadRevisionData'](_0x2ac6b9);const _0x27bf50={};for(const _0x3d6a00 in _0x2ac6b9['diffData']){if(_0x2ac6b9['diffData'][_0x3d6a00]['attachChange']&&!_0x2ac6b9['diffData'][_0x3d6a00]['attachChange']['isAttached'])continue;const _0x5747de=this['_removeRevisionMarkers'](JSON['parse'](_0x2ac6b9['diffData'][_0x3d6a00]['insertions'])),_0x27b5b2=this['editor']['editing']['view']['document'],_0x5372cd=new _0x5f58a1(_0x27b5b2,_0x5747de['map'](_0x2514a5=>this['_getViewObj'](_0x2514a5)));this['editor']['data']['processor']['useFillerType']('marked'),_0x27bf50[_0x3d6a00]=this['editor']['data']['processor']['toData'](_0x5372cd),this['editor']['data']['processor']['useFillerType']('default');}return _0x27bf50;}async['getRevisionRootsAttributes'](_0x536db2){await this['loadRevisionData'](_0x536db2);const _0x47fb14={};for(const _0x577c06 in _0x536db2['diffData'])_0x536db2['diffData'][_0x577c06]['attachChange']&&!_0x536db2['diffData'][_0x577c06]['attachChange']['isAttached']||(_0x47fb14[_0x577c06]=_0x536db2['diffData'][_0x577c06]['attributesAfter']||{});return _0x47fb14;}['_removeRevisionMarkers'](_0x18b043){return(_0x18b043=_0x18b043['filter'](_0x4faa3c=>!_0x4faa3c['name']||'revision-start'!==_0x4faa3c['name']&&'revision-end'!==_0x4faa3c['name']))['forEach'](_0x2d2671=>{'string'!=typeof _0x2d2671&&(_0x2d2671['children']=this['_removeRevisionMarkers'](_0x2d2671['children']),_0x2d2671['attributes']=_0x2d2671['attributes']['filter'](_0x3fbf1a=>!_0x3fbf1a[0x0]['startsWith']('data-revision-')));}),_0x18b043;}async['compare'](_0x5de746,_0x25ee8c,_0xcfefb4=!0x1){if(!this['isEnabled'])return;const _0xfa7a29=this['diff'],_0x1a3218=this['repository'],_0x52aba0='string'==typeof _0x5de746?_0x1a3218['getRevision'](_0x5de746):_0x5de746,_0x1069bd='string'==typeof _0x25ee8c?_0x1a3218['getRevision'](_0x25ee8c):_0x25ee8c,_0x2d3057=_0x52aba0['id'],_0xfcc2e5=_0x1069bd?_0x1069bd['id']:null;if(!_0xcfefb4&&this['diff']&&this['diff']['newRevisionId']===_0x2d3057&&this['diff']['oldRevisionId']===_0xfcc2e5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2d3057,_0xfcc2e5);const _0x163392=this['_getRevisionsRange'](_0x52aba0,_0x1069bd,!0x0)['map'](_0x21a264=>this['loadRevisionData'](_0x21a264));return _0x163392['push'](new Promise(_0x51ced1=>{setTimeout(_0x51ced1,0x14);})),Promise['all'](_0x163392)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1e40c1=this['_getDiff'](_0x2d3057,_0xfcc2e5);for(const _0x2a17fc of _0x1e40c1['changes'])this['_changeIdToChange']['set'](_0x2a17fc['id'],_0x2a17fc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x54d3b7=>{for(const _0x28f242 of this['editor']['model']['document']['getRootNames']())_0x54d3b7['detachRoot'](_0x28f242);for(const _0x124462 of Object['keys'](_0x1e40c1['model'])){const _0x59cdd9=_0x54d3b7['addRoot'](_0x124462);for(const _0x2d5d73 of Object['keys'](_0x1e40c1['attributes'][_0x124462]))_0x54d3b7['setAttribute'](_0x2d5d73,_0x1e40c1['attributes'][_0x124462][_0x2d5d73],_0x59cdd9);_0x54d3b7['insert'](_0x1e40c1['model'][_0x124462],_0x59cdd9,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1e40c1['changes'])),this['isReady']=!0x0;})['catch'](_0x2b6e58=>{console['error'](_0x2b6e58),this['_cleanUp'](),_0xfa7a29&&(this['diff']=_0xfa7a29),this['isReady']=!0x0;});}['addRevisionData'](_0x5e3d71,_0x98b6e6){const _0x495593=this['repository']['createRevision'](_0x5e3d71);return _0x495593['on']('_update',(_0x3506bb,_0x1290ff,_0x34849a)=>_0x98b6e6(_0x1290ff,_0x34849a,_0x495593)),this['repository']['addRevision'](_0x495593),_0x495593;}['loadRevisionData'](_0x54b22d){if(!_0x54b22d||_0x54b22d['diffData'])return Promise['resolve']();{const _0x3b4b44=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3b4b44,'revisionId':_0x54b22d['id']})['then'](_0x3c1206=>{_0x54b22d['_update']({'diffData':_0x3c1206['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},_0x384fe8=>{for(const _0x21660d of this['editor']['model']['document']['getRootNames']())_0x384fe8['detachRoot'](_0x21660d);});}['_sortAndFilterDiffChanges'](_0x3db324){const _0x3b83d1=[],_0x5b9e69=new Map();for(const _0x533941 of this['editor']['model']['document']['getRootNames']()){const _0x55470c=this['editor']['editing']['view']['getDomRoot'](_0x533941);if(!_0x55470c)continue;const _0x31abad=_0x55470c['getClientRects']()['item'](0x0);_0x31abad&&(_0x3b83d1['push'](_0x533941),_0x5b9e69['set'](_0x533941,_0x31abad));}return _0x3b83d1['sort']((_0x55466d,_0x3b2f1a)=>{const _0x20c9ac=_0x5b9e69['get'](_0x55466d),_0x4c1ad2=_0x5b9e69['get'](_0x3b2f1a);return _0x20c9ac['y']-_0x4c1ad2['y']||_0x20c9ac['x']-_0x4c1ad2['x'];}),(_0x3db324=_0x3db324['filter'](_0xb4fe32=>_0x3b83d1['includes'](_0xb4fe32['rootName'])))['sort']((_0x48b057,_0x359020)=>_0x3b83d1['indexOf'](_0x48b057['rootName'])-_0x3b83d1['indexOf'](_0x359020['rootName'])),_0x3db324;}['_makeTape'](_0x118bb1){const _0x2a3cf5=Array['from'](_0x118bb1['markers'])['filter'](([_0x6c15c2,_0x25240d])=>_0x6c15c2['startsWith']('revision:')&&!_0x25240d['isCollapsed']),_0x2e520b=Array['from'](this['editor']['model']['createRangeIn'](_0x118bb1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2a3cf5['length'])for(const _0x19ab20 of _0x2e520b){const [_0x249498,_0x4e6d9b]=_0x2a3cf5[0x0],[,_0x331bb6,_0x718658]=_0x249498['split'](':');if(_0x4e6d9b['end']['isEqual'](_0x19ab20['nextPosition'])&&_0x2a3cf5['shift'](),(_0x19ab20['previousPosition']['isEqual'](_0x4e6d9b['start'])||_0x19ab20['previousPosition']['isAfter'](_0x4e6d9b['start']))&&('insertion'==_0x331bb6?_0x19ab20['isAdded']={'userId':_0x718658}:'deletion'==_0x331bb6&&(_0x19ab20['isRemoved']={'userId':_0x718658})),0x0==_0x2a3cf5['length'])break;}return _0x2e520b;}['_refreshStartEndIndex'](_0x1bbfb3){const _0x16e111=new Map();for(let _0x36a784=0x0;_0x36a784<_0x1bbfb3['length'];_0x36a784++)'text'===_0x1bbfb3[_0x36a784]['type']?(_0x1bbfb3[_0x36a784]['item']['startIndex']=_0x36a784,_0x1bbfb3[_0x36a784]['item']['endIndex']=_0x36a784):('elementStart'===_0x1bbfb3[_0x36a784]['type']?_0x1bbfb3[_0x36a784]['item']['startIndex']=_0x36a784:'elementEnd'===_0x1bbfb3[_0x36a784]['type']&&(_0x1bbfb3[_0x36a784]['item']['endIndex']=_0x36a784),_0x16e111['set'](_0x1bbfb3[_0x36a784]['id'],_0x36a784));for(const _0x496c05 of _0x16e111['values']())'elementStart'===_0x1bbfb3[_0x496c05]['type']?_0x1bbfb3[_0x496c05]['item']['endIndex']=_0x16e111['get'](_0x1bbfb3[_0x496c05]['pairId']):'elementEnd'===_0x1bbfb3[_0x496c05]['type']&&(_0x1bbfb3[_0x496c05]['item']['startIndex']=_0x16e111['get'](_0x1bbfb3[_0x496c05]['pairId']));}['_processTape'](_0x4a8cbc){for(let _0x14637d=0x0;_0x14637d<_0x4a8cbc['length'];_0x14637d++){if('elementStart'===_0x4a8cbc[_0x14637d]['type'])_0x4a8cbc[_0x14637d]['item']['startIndex']=_0x14637d;else{if('elementEnd'===_0x4a8cbc[_0x14637d]['type']){_0x4a8cbc[_0x14637d]['item']['endIndex']=_0x14637d;const _0x514145=_0x4a8cbc[_0x14637d]['item']['startIndex'];_0x4a8cbc[_0x514145]['pairId']=_0x4a8cbc[_0x14637d]['id'],_0x4a8cbc[_0x14637d]['pairId']=_0x4a8cbc[_0x514145]['id'];}else _0x4a8cbc[_0x14637d]['item']['startIndex']=_0x14637d,_0x4a8cbc[_0x14637d]['item']['endIndex']=_0x14637d,_0x4a8cbc[_0x14637d]['pairId']=null;}_0x4a8cbc[_0x14637d]['markersStart']||(_0x4a8cbc[_0x14637d]['markersStart']=[],_0x4a8cbc[_0x14637d]['markersEnd']=[]);}}['_markInsertions'](_0xc54849,_0x5e17cd){const _0x4b249f=_0xc54849['filter'](_0x294536=>!_0x294536['isAdded']);for(let _0xf73278=0x0;_0xf73278<_0x5e17cd['length'];_0xf73278++)_0x5e17cd[_0xf73278]['isAdded']&&(_0x4b249f[_0xf73278]['isAdded']=_0x5e17cd[_0xf73278]['isAdded']);}['_makeModelFromViewString'](_0x4a5b8c){const _0x4eb172=JSON['parse'](_0x4a5b8c),_0x9d3c66=this['editor']['editing']['view']['document'],_0x1f2967=new _0x5f58a1(_0x9d3c66,_0x4eb172['map'](_0x5a62c1=>this['_getViewObj'](_0x5a62c1)));return this['editor']['data']['toModel'](_0x1f2967);}['_getViewObj'](_0x4573fb){const _0x523602=this['editor']['editing']['view']['document'];if('string'==typeof _0x4573fb)return new _0x12498c(_0x523602,_0x4573fb);{const _0x1ca9a5=_0x4573fb['children']['map'](_0x255956=>this['_getViewObj'](_0x255956));return new(Z[_0x4573fb['type']]||_0x3afd73)(_0x523602,_0x4573fb['name'],_0x4573fb['attributes'],_0x1ca9a5);}}['_getDiff'](_0x27e92b,_0x7a5d59=null){const _0x51c4ab=this['repository']['getRevision'](_0x27e92b),_0x12f1eb=_0x7a5d59?this['repository']['getRevision'](_0x7a5d59):null,_0x4fada6=this['_getRevisionsRange'](_0x51c4ab,_0x12f1eb),_0x260180=_0x4fada6[_0x4fada6['length']-0x1],_0x2205b7=new Map(),_0x36a05d={'model':{},'attributes':{},'changes':[]},_0x260f3a=new Set(),_0x2fd60b=new Map();for(let _0x53d4c2=_0x4fada6['length']-0x1;_0x53d4c2>=0x0;_0x53d4c2--){const _0xe73091=_0x4fada6[_0x53d4c2];for(const _0x4fe21e of Object['keys'](_0xe73091['diffData']))if(_0xe73091['diffData'][_0x4fe21e]['attachChange']){const _0x43bf3e=_0xe73091['diffData'][_0x4fe21e]['attachChange'];_0x43bf3e['isAttached']?(_0x260f3a['add'](_0x4fe21e),_0x2fd60b['has'](_0x4fe21e)&&_0x2fd60b['get'](_0x4fe21e)['userId']==_0x43bf3e['userId']?_0x2fd60b['delete'](_0x4fe21e):_0x2fd60b['set'](_0x4fe21e,_0x43bf3e)):_0x2fd60b['has'](_0x4fe21e)?(_0x260f3a['delete'](_0x4fe21e),_0x2fd60b['delete'](_0x4fe21e)):(_0x260f3a['add'](_0x4fe21e),_0x2fd60b['set'](_0x4fe21e,_0x43bf3e));}else _0x260f3a['add'](_0x4fe21e);}for(const _0x427647 of _0x260f3a){const _0x1616fa=_0x2fd60b['has'](_0x427647)&&!_0x2fd60b['get'](_0x427647)['isAttached'];let _0x4f06ef=_0x1616fa?_0x4fada6['length']-0x1:0x0;const _0x5b7d6c=_0x1616fa?-0x1:0x1;for(;_0x4fada6[_0x4f06ef];){const _0x3688cf=_0x4fada6[_0x4f06ef];if(_0x3688cf['diffData'][_0x427647]){const _0x42cb77=_0x1616fa?_0x3688cf['diffData'][_0x427647]['attributesBefore']:_0x3688cf['diffData'][_0x427647]['attributesAfter'];_0x36a05d['attributes'][_0x427647]=_0x42cb77?_0x11841a(_0x42cb77):{};break;}_0x4f06ef+=_0x5b7d6c;}}for(const _0x193a15 of _0x4fada6){_0x193a15['model']={};for(const _0x2c355c of _0x193a15['authors'])_0x2205b7['set'](_0x2c355c['id'],_0x2c355c);for(const _0x23d171 of _0x260f3a){const _0x5238c9=_0x193a15['diffData'][_0x23d171]?_0x193a15['diffData'][_0x23d171]['insertions']:'[]',_0x22b306=_0x193a15['diffData'][_0x23d171]?_0x193a15['diffData'][_0x23d171]['deletions']:'[]';_0x193a15['model'][_0x23d171]={'insertions':this['_makeModelFromViewString'](_0x5238c9),'deletions':this['_makeModelFromViewString'](_0x22b306)};}}for(const _0x536986 of _0x260f3a){let _0x496e73=null,_0xd18602=0x0;const _0x5b3e37=new Map(Array['from'](_0x51c4ab['model'][_0x536986]['insertions']['markers'])['filter'](([_0x57eb88])=>!_0x57eb88['startsWith']('revision:')));let _0x54cda8=0x0;for(const _0xd7dba9 of _0x4fada6){const _0x3b4467=this['_makeTape'](_0xd7dba9['model'][_0x536986]['insertions']);_0xd7dba9==_0x51c4ab?(_0x496e73=_0x3b4467,_0xd18602=_0x496e73['length'],_0x496e73['forEach'](_0x19a456=>{_0x19a456['id']=_0x54cda8++;}),this['_processTape'](_0x496e73)):this['_markInsertions'](_0x496e73,_0x3b4467);const _0xf0b00=_0x496e73['filter'](_0x4931ec=>!_0x4931ec['isAdded'])['map'](_0xdd9fff=>_0xdd9fff['id']);let _0x2a0e4a=0x0;const _0x58a05e=this['_makeTape'](_0xd7dba9['model'][_0x536986]['deletions']);_0x58a05e['forEach'](_0xc07cad=>{_0xc07cad['isRemoved']?_0xc07cad['id']=_0xd18602++:_0xc07cad['id']=_0xf0b00[_0x2a0e4a++];}),this['_processTape'](_0x58a05e),this['_setDistance'](_0x496e73,'isAdded'),this['_setDistance'](_0x58a05e,'isRemoved'),_0xd7dba9==_0x51c4ab&&this['_markMarkers'](_0x496e73,_0x5b3e37),_0x496e73=this['_joinTapes'](_0x496e73,_0x58a05e),this['_refreshStartEndIndex'](_0x496e73),this['_setDistance'](_0x496e73,'isRemoved');}_0x496e73=_0x496e73['filter'](_0x43913f=>!(_0x43913f['isAdded']&&_0x43913f['isRemoved']));const _0x387a3b=new Map(_0x260180['model'][_0x536986]['deletions']['markers']),_0x3ebb2=new Set(_0x5b3e37['keys']());for(const _0x1d4971 of _0x387a3b['keys']())_0x3ebb2['delete'](_0x1d4971);this['_markSuggestions'](_0x496e73,_0x3ebb2),this['_fixObsoleteTags'](_0x496e73),_0x496e73=this['_removeMissingPairs'](_0x496e73),_0x496e73=this['_markMismatchedRemovedTags'](_0x496e73),_0x496e73=this['_removeUnsupportedChanges'](_0x496e73);const {root:_0x195911,changes:_0x4e3d15}=this['_makeModelFromTape'](_0x496e73,_0x2205b7,_0x536986);_0x36a05d['model'][_0x536986]=_0x195911;const _0x17fbed=_0x2fd60b['get'](_0x536986);if(_0x17fbed){const _0x20f610=_0x2205b7['get'](_0x17fbed['userId']),_0x28cedf=new r({'author':_0x20f610,'type':_0x17fbed['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x536986});_0x4e3d15['unshift'](_0x28cedf),_0x36a05d['attributes'][_0x536986]['revisionHistoryAttachChange']=_0x28cedf['id'];}_0x36a05d['changes']=_0x36a05d['changes']['concat'](_0x4e3d15);}return _0x36a05d;}['_markMarkers'](_0x119223,_0x3f84b0){for(let _0x3d19fc=0x0;_0x3d19fc<_0x119223['length'];_0x3d19fc++)for(const [_0x5c689b,_0x52d1cd]of _0x3f84b0)_0x52d1cd['start']['isEqual'](_0x119223[_0x3d19fc]['previousPosition'])&&_0x119223[_0x3d19fc]['markersStart']['push'](_0x5c689b),_0x52d1cd['end']['isEqual'](_0x119223[_0x3d19fc]['nextPosition'])&&_0x119223[_0x3d19fc]['markersEnd']['push'](_0x5c689b);}['_joinTapes'](_0x59368a,_0x699928){let _0x2ff8d3=[],_0x4542a9=0x0,_0x472639=0x0;for(;_0x4542a9<_0x59368a['length']||_0x472639<_0x699928['length'];){const _0x5685c9=_0x59368a[_0x4542a9]||{},_0x4db13f=_0x699928[_0x472639]||{};if(_0x5685c9['id']==_0x4db13f['id'])_0x4542a9++,_0x472639++,_0x2ff8d3['push'](_0x5685c9);else{if(_0x4db13f['isRemoved']&&_0x5685c9['isAdded']){const {commonTape:_0x302e61,iEnd:_0x4c8288,jEnd:_0x5ebd0f}=this['_threeWayMerge'](_0x59368a,_0x4542a9,_0x699928,_0x472639);_0x2ff8d3=_0x2ff8d3['concat'](_0x302e61),_0x4542a9=_0x4c8288,_0x472639=_0x5ebd0f;}else _0x4db13f['isRemoved']?(_0x472639++,_0x2ff8d3['push'](_0x4db13f)):(_0x4542a9++,_0x2ff8d3['push'](_0x5685c9));}}return _0x2ff8d3;}['_markSuggestions'](_0x2e991c,_0x4fc60a){const _0x13a2c7=[];for(let _0x6b67ca=0x0;_0x6b67ca<_0x2e991c['length'];_0x6b67ca++){for(let _0x45d6a7=0x0;_0x45d6a7<_0x2e991c[_0x6b67ca]['markersStart']['length'];_0x45d6a7++){const _0x3b3dfe=_0x2e991c[_0x6b67ca]['markersStart'][_0x45d6a7];if(!_0x4fc60a['has'](_0x3b3dfe))continue;const {group:_0x266b73,type:_0x25a2f1,authorId:_0x25680e}=_0x186ec8(_0x3b3dfe);'revision-suggestion'!=_0x266b73||'insertion'!=_0x25a2f1&&'deletion'!=_0x25a2f1||(_0x13a2c7['unshift']({'type':_0x25a2f1,'name':_0x3b3dfe,'userId':_0x25680e}),_0x2e991c[_0x6b67ca]['markersStart']['splice'](_0x45d6a7,0x1),_0x45d6a7--);}_0x3b46db(_0x2e991c[_0x6b67ca]);for(let _0x55a7f5=0x0;_0x55a7f5<_0x2e991c[_0x6b67ca]['markersEnd']['length'];_0x55a7f5++){const _0x2cdb7f=_0x2e991c[_0x6b67ca]['markersEnd'][_0x55a7f5];if(!_0x4fc60a['has'](_0x2cdb7f))continue;const {group:_0x229f07,type:_0xfcf0a1}=_0x186ec8(_0x2cdb7f);if('revision-suggestion'!=_0x229f07||'insertion'!=_0xfcf0a1&&'deletion'!=_0xfcf0a1)continue;_0x2e991c[_0x6b67ca]['markersEnd']['splice'](_0x55a7f5,0x1),_0x55a7f5--;const _0x5819ea=_0x13a2c7['findIndex'](_0x39cd32=>_0x39cd32['name']==_0x2cdb7f);_0x5819ea>-0x1&&_0x13a2c7['splice'](_0x5819ea,0x1);}}function _0x186ec8(_0x68043f){const _0x2915c0=_0x68043f['split'](':');return{'group':_0x2915c0[0x0],'type':_0x2915c0[0x1],'subType':_0x2915c0['length']>=0x5?_0x2915c0[0x2]:null,'id':_0x2915c0['length']<0x5?_0x2915c0[0x2]:_0x2915c0[0x3],'authorId':_0x2915c0['length']<0x5?_0x2915c0[0x3]:_0x2915c0[0x4],'markerCount':0x6==_0x2915c0['length']?_0x2915c0[0x5]:null};}function _0x3b46db(_0x331316){for(let _0x28da95=0x0;_0x28da95<_0x13a2c7['length'];_0x28da95++){if(_0x331316['isAdded']&&'insertion'==_0x13a2c7[_0x28da95]['type'])return _0x331316['isAddSuggestion']=_0x13a2c7[_0x28da95],void delete _0x331316['isAdded'];if(!_0x331316['isAdded']&&!_0x331316['isRemoved']&&'deletion'==_0x13a2c7[_0x28da95]['type'])return void(_0x331316['isRemoveSuggestion']=_0x13a2c7[_0x28da95]);}}}['_setDistance'](_0x45977f,_0x5066de){let _0x228e48=0x0,_0x3d1bc7=!0x1;const _0x2f1e2c=new Map();for(const _0x43f90c of _0x45977f)_0x43f90c[_0x5066de]?_0x3d1bc7&&(_0x228e48++,_0x3d1bc7=!0x1):(_0x228e48++,_0x3d1bc7=!0x0),_0x2f1e2c['set'](_0x43f90c['id'],_0x228e48);for(let _0x2bd942=0x0;_0x2bd942<_0x45977f['length'];_0x2bd942++){if('isRemoved'==_0x5066de&&_0x45977f[_0x2bd942]['isAdded']||'isAdded'==_0x5066de&&_0x45977f[_0x2bd942]['isRemoved'])continue;if('text'==_0x45977f[_0x2bd942]['type']){_0x45977f[_0x2bd942]['distance']=0x0;continue;}const _0x4ab541=_0x2f1e2c['get'](_0x45977f[_0x2bd942]['pairId']),_0x5a9f9d=_0x2f1e2c['get'](_0x45977f[_0x2bd942]['id']);_0x45977f[_0x2bd942]['distance']=_0x4ab541-_0x5a9f9d;}}['_getRevisionsRange'](_0x192360,_0x1a1f4a,_0x5045c9=!0x1){const _0x273134=[];let _0x55891a=this['repository']['getIndex'](_0x192360),_0x5679f6=this['repository']['getIndex'](_0x1a1f4a);for(-0x1==_0x5679f6&&(_0x5679f6=this['repository']['_revisions']['length'],_0x5045c9=!0x1);_0x55891a<_0x5679f6;)_0x273134['push'](this['repository']['getRevision'](_0x55891a)),_0x55891a++;return _0x5045c9&&_0x273134['push'](this['repository']['getRevision'](_0x55891a)),_0x273134;}['_threeWayMerge'](_0x3e2e2e,_0x2cf0e6,_0x4d50ea,_0x2f3616){const _0x263c73=this['editor']['model']['schema'];let _0x51f615=_0x2cf0e6;for(;_0x3e2e2e[_0x51f615]&&_0x3e2e2e[_0x51f615]['isAdded'];)_0x51f615++;let _0x3467e6=_0x2f3616;for(;_0x4d50ea[_0x3467e6]&&_0x4d50ea[_0x3467e6]['isRemoved'];)_0x3467e6++;_0x26135a(_0x3e2e2e,_0x2cf0e6,_0x51f615),_0x26135a(_0x4d50ea,_0x2f3616,_0x3467e6);const _0x44d085=_0x4d50ea['slice'](_0x2f3616,_0x3467e6)['concat'](_0x3e2e2e['slice'](_0x2cf0e6,_0x51f615));return _0x44d085['sort']((_0x44af91,_0x56ba5f)=>_0x44af91['side']!=_0x56ba5f['side']?_0x44af91['side']-_0x56ba5f['side']:_0x44af91['level']!=_0x56ba5f['level']?_0x44af91['level']-_0x56ba5f['level']:_0x44af91['distance']!=_0x56ba5f['distance']?_0x56ba5f['distance']-_0x44af91['distance']:!!_0x44af91['isAdded']!=!!_0x56ba5f['isAdded']?-0x1==_0x44af91['side']||0x0==_0x44af91['side']?_0x44af91['isAdded']?-0x1:0x1:_0x44af91['isAdded']?0x1:-0x1:_0x44af91['index']-_0x56ba5f['index']),{'commonTape':_0x44d085,'iEnd':_0x51f615,'jEnd':_0x3467e6};function _0x26135a(_0x19a2c3,_0x35d8e8,_0xce57c6){let _0x36cab1=-0x1,_0x4401b2=Number['POSITIVE_INFINITY'],_0x1e918b=!0x0;for(let _0x128baa=_0x35d8e8;_0x128baa<_0xce57c6;_0x128baa++)if(_0x263c73['isInline'](_0x19a2c3[_0x128baa]['item'])||(_0x1e918b=!0x1),_0x19a2c3[_0x128baa]['item']['startIndex']<_0x35d8e8&&(_0x36cab1=_0x128baa),_0x19a2c3[_0x128baa]['item']['endIndex']>=_0xce57c6){_0x4401b2=_0x128baa;break;}_0x1e918b&&(_0x36cab1=_0xce57c6-0x1);for(let _0x1e2e2c=_0x35d8e8;_0x1e2e2c<_0xce57c6;_0x1e2e2c++)_0x19a2c3[_0x1e2e2c]['side']=_0x1e2e2c<=_0x36cab1?-0x1:_0x1e2e2c<_0x4401b2?0x0:0x1,_0x19a2c3[_0x1e2e2c]['index']=_0x1e2e2c;let _0x3a7421=0x0;for(let _0x1c2a87=_0x35d8e8;_0x1c2a87<=_0x36cab1;_0x1c2a87++)0x0==_0x19a2c3[_0x1c2a87]['distance']?_0x19a2c3[_0x1c2a87]['level']=_0x3a7421:(_0x3a7421++,_0x19a2c3[_0x1c2a87]['level']=_0x3a7421,_0x3a7421++);for(let _0x4503e8=_0x35d8e8;_0x4503e8<_0xce57c6;_0x4503e8++)0x0==_0x19a2c3[_0x4503e8]['side']&&(_0x19a2c3[_0x4503e8]['level']=_0x3a7421);_0x3a7421=0x0;for(let _0x3124b3=_0xce57c6-0x1;_0x3124b3>=_0x4401b2;_0x3124b3--)0x0==_0x19a2c3[_0x3124b3]['distance']?_0x19a2c3[_0x3124b3]['level']=_0x3a7421:(_0x3a7421--,_0x19a2c3[_0x3124b3]['level']=_0x3a7421,_0x3a7421--);}}['_fixObsoleteTags'](_0x529721){const _0x56ea36=new Map(),_0x2574e3=this['editor']['model']['schema'];for(let _0x4928b1=0x1;_0x4928b1<_0x529721['length'];_0x4928b1++){let _0x2f84b8,_0x313bc4,_0x4ed0d1;const _0x4c60cd=_0x529721[_0x4928b1],_0x5e92f1=_0x529721[_0x4928b1-0x1];if('text'==_0x4c60cd['type'])continue;if(_0x4c60cd['type']!=_0x5e92f1['type'])continue;if(!_0x2574e3['isBlock'](_0x5e92f1['item'])||_0x2574e3['isLimit'](_0x5e92f1['item']))continue;if(!_0x2574e3['isBlock'](_0x4c60cd['item'])||_0x2574e3['isLimit'](_0x4c60cd['item']))continue;if((_0x529721[_0x4928b1]['isAdded']||_0x529721[_0x4928b1]['isAddSuggestion'])&&_0x529721[_0x4928b1-0x1]['isRemoved'])_0x2f84b8=_0x529721[_0x4928b1],_0x313bc4=_0x529721[_0x4928b1-0x1],_0x4ed0d1=_0x4928b1-0x1;else{if(!_0x529721[_0x4928b1]['isRemoved']||!_0x529721[_0x4928b1-0x1]['isAdded']&&!_0x529721[_0x4928b1-0x1]['isAddSuggestion'])continue;_0x2f84b8=_0x529721[_0x4928b1-0x1],_0x313bc4=_0x529721[_0x4928b1],_0x4ed0d1=_0x4928b1;}const _0x5c2208=_0x2f84b8['level']==_0x313bc4['level'],_0x2b2b68=Math['abs'](_0x2f84b8['level'])<Math['abs'](_0x313bc4['level'])&&0x0==_0x313bc4['distance'];(_0x5c2208||_0x2b2b68)&&(_0x56ea36['set'](_0x313bc4['id'],_0x2f84b8['id']),_0x529721['splice'](_0x4ed0d1,0x1),_0x4928b1--,_0x2f84b8['isAdded']=!0x1);}for(let _0x47d10d=0x0;_0x47d10d<_0x529721['length'];_0x47d10d++)_0x56ea36['has'](_0x529721[_0x47d10d]['pairId'])&&(_0x529721[_0x47d10d]['pairId']=_0x56ea36['get'](_0x529721[_0x47d10d]['pairId']));}['_removeMissingPairs'](_0x42ae8e){const _0x2d64c0=new Set(_0x42ae8e['map'](_0x316e64=>_0x316e64['id']));for(let _0x287b82=0x0;_0x287b82<_0x42ae8e['length'];_0x287b82++)_0x2d64c0['has'](_0x42ae8e[_0x287b82]['pairId'])||0x0==_0x42ae8e[_0x287b82]['distance']||(_0x42ae8e[_0x287b82]['isIncorrect']=!0x0);return _0x42ae8e['filter'](_0x3b8e05=>!_0x3b8e05['isIncorrect']);}['_markMismatchedRemovedTags'](_0x945a46){const _0x3a8246=new Set();for(let _0x7bc56c=0x0;_0x7bc56c<_0x945a46['length'];_0x7bc56c++){if(_0x3a8246['has'](_0x945a46[_0x7bc56c]['id'])&&_0x945a46[_0x7bc56c]['isRemoved']&&(_0x945a46[_0x7bc56c]['isIncorrect']=!0x0),_0x945a46[_0x7bc56c]['isIncorrect'])continue;if(0x0==_0x945a46[_0x7bc56c]['distance'])continue;if('elementStart'!=_0x945a46[_0x7bc56c]['type'])continue;if(null==_0x945a46[_0x7bc56c]['pairId'])continue;let _0x4671d0=_0x7bc56c+0x1,_0x2ca606=0x0;for(;_0x945a46[_0x4671d0]['id']!=_0x945a46[_0x7bc56c]['pairId'];)'elementStart'==_0x945a46[_0x4671d0]['type']?_0x2ca606++:'elementEnd'==_0x945a46[_0x4671d0]['type']&&_0x2ca606--,_0x4671d0++;if(0x0!=_0x2ca606){if(_0x945a46[_0x7bc56c]['isRemoved'])_0x945a46[_0x7bc56c]['isIncorrect']=!0x0;else{for(;_0x4671d0!=_0x7bc56c;)_0x945a46[_0x4671d0]['isRemoved']&&0x0!=_0x945a46[_0x4671d0]['distance']&&(_0x945a46[_0x4671d0]['isIncorrect']=!0x0,_0x3a8246['add'](_0x945a46[_0x4671d0]['pairId'])),_0x4671d0--;}}}return _0x945a46['filter'](_0x41caac=>!_0x41caac['isIncorrect']);}['_removeUnsupportedChanges'](_0x5bdee0){const _0x4db23f=this['editor']['model']['schema'];for(let _0x3cd951=0x0;_0x3cd951<_0x5bdee0['length'];_0x3cd951++){if(!(_0x5bdee0[_0x3cd951]['isAdded']||_0x5bdee0[_0x3cd951]['isAddSuggestion']||_0x5bdee0[_0x3cd951]['isRemoved']||_0x5bdee0[_0x3cd951]['isRemoveSuggestion']))continue;if(0x0==_0x5bdee0[_0x3cd951]['distance'])continue;const _0x775000=_0x5bdee0[_0x3cd951]['item'];_0x4db23f['isBlock'](_0x775000)||_0x4db23f['isLimit'](_0x775000)||(_0x5bdee0[_0x3cd951]['isAdded']&&delete _0x5bdee0[_0x3cd951]['isAdded'],_0x5bdee0[_0x3cd951]['isAddSuggestion']&&delete _0x5bdee0[_0x3cd951]['isAddSuggestion'],_0x5bdee0[_0x3cd951]['isRemoveSuggestion']&&delete _0x5bdee0[_0x3cd951]['isRemoveSuggestion'],_0x5bdee0[_0x3cd951]['isRemoved']&&(_0x5bdee0[_0x3cd951]['isIncorrect']=!0x0));}return _0x5bdee0['filter'](_0x4479f6=>!_0x4479f6['isIncorrect']);}['_makeModelFromTape'](_0x421c09,_0x1f8265,_0x241f3a){const _0x1c785d=new mt(),_0x58498b=[],_0x432bc9=new Map(),_0x576f6d=this['editor']['model'],_0x2eba02=_0x576f6d['schema'],_0x272efd=[_0x1c785d],_0x217ddb={},_0x2077ff={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x27faa5=null;const _0x47b7e6=[0x0];for(let _0x3d159a=0x0;_0x3d159a<_0x421c09['length'];_0x3d159a++)if('elementStart'===_0x421c09[_0x3d159a]['type']){_0x421c09[_0x3d159a]['previousPosition']=_0x576f6d['createPositionFromPath'](_0x1c785d,_0x47b7e6);const _0x1ac2c5=new ft(_0x421c09[_0x3d159a]['item']['name'],_0x421c09[_0x3d159a]['item']['getAttributes']());_0x272efd[0x0]['_appendChild'](_0x1ac2c5),_0x47b7e6['push'](0x0),_0x272efd['unshift'](_0x1ac2c5),_0x421c09[_0x3d159a]['nextPosition']=_0x576f6d['createPositionFromPath'](_0x1c785d,_0x47b7e6);}else'elementEnd'===_0x421c09[_0x3d159a]['type']?(_0x272efd['shift'](),_0x421c09[_0x3d159a]['previousPosition']=_0x576f6d['createPositionFromPath'](_0x1c785d,_0x47b7e6),_0x47b7e6['pop'](),_0x47b7e6[_0x47b7e6['length']-0x1]++,_0x421c09[_0x3d159a]['nextPosition']=_0x576f6d['createPositionFromPath'](_0x1c785d,_0x47b7e6)):(_0x421c09[_0x3d159a]['previousPosition']=_0x576f6d['createPositionFromPath'](_0x1c785d,_0x47b7e6),_0x27faa5?_0x27faa5['_data']+=_0x421c09[_0x3d159a]['item']['data']:_0x27faa5=new wt(_0x421c09[_0x3d159a]['item']['data'],_0x421c09[_0x3d159a]['item']['getAttributes']()),_0x421c09[_0x3d159a+0x1]&&'text'===_0x421c09[_0x3d159a+0x1]['type']&&_0x9ccbe6(_0x27faa5,_0x421c09[_0x3d159a+0x1]['item'])||(_0x272efd[0x0]['_appendChild'](_0x27faa5),_0x27faa5=null),_0x47b7e6[_0x47b7e6['length']-0x1]+=_0x421c09[_0x3d159a]['item']['offsetSize'],_0x421c09[_0x3d159a]['nextPosition']=_0x576f6d['createPositionFromPath'](_0x1c785d,_0x47b7e6));for(let _0x70b4ff=0x0;_0x70b4ff<_0x421c09['length'];_0x70b4ff++){const _0xa74010=_0x421c09[_0x70b4ff]['previousPosition'],_0x2f093d=_0x421c09[_0x70b4ff]['nextPosition'];for(const _0x1f79b9 of _0x421c09[_0x70b4ff]['markersStart'])_0x432bc9['set'](_0x1f79b9,{'start':_0xa74010,'end':null});_0x2857f4('isRemoveSuggestion',_0x70b4ff,_0xa74010,_0x2f093d),_0x2857f4('isAddSuggestion',_0x70b4ff,_0xa74010,_0x2f093d),_0x2857f4('isRemoved',_0x70b4ff,_0xa74010,_0x2f093d),_0x2857f4('isAdded',_0x70b4ff,_0xa74010,_0x2f093d);for(const _0x4dc28e of _0x421c09[_0x70b4ff]['markersEnd']){_0x432bc9['get'](_0x4dc28e)['end']=_0x2f093d;}}for(const [_0x5d73fb,_0x36d0a9]of _0x432bc9){const _0x2054a4=this['editor']['model']['createRange'](_0x36d0a9['start'],_0x36d0a9['end']);_0x1c785d['markers']['set'](_0x5d73fb,_0x2054a4);}return _0x58498b['sort']((_0x5d7a9f,_0x48b0f1)=>{const _0x4fd03a=_0x1c785d['markers']['get']('revision:'+_0x5d7a9f['id']),_0x4e299c=_0x1c785d['markers']['get']('revision:'+_0x48b0f1['id']);return _0x4fd03a['start']['isBefore'](_0x4e299c['start'])?-0x1:_0x4fd03a['start']['isAfter'](_0x4e299c['start'])?0x1:_0x4fd03a['end']['isBefore'](_0x4e299c['end'])?-0x1:_0x4fd03a['end']['isAfter'](_0x4e299c['end'])?0x1:'add'===_0x5d7a9f['type']?-0x1:0x1;}),{'root':_0x1c785d,'changes':_0x58498b};function _0x2857f4(_0x3134bf,_0x26824d,_0x22a1e7,_0x30d508){const _0x4600ef=!!_0x421c09[_0x26824d][_0x3134bf],_0x5793f2=_0x4600ef?_0x421c09[_0x26824d][_0x3134bf]['userId']:null,_0x172314=_0x26824d===_0x421c09['length']-0x1,_0x544970=_0x2077ff[_0x3134bf][0x0],_0x2b23ca=_0x2eba02['isObject'](_0x421c09[_0x26824d]['item']);!_0x217ddb[_0x3134bf]&&_0x4600ef?_0x217ddb[_0x3134bf]={'start':_0x22a1e7,'tapeItem':_0x421c09[_0x26824d],'userId':_0x5793f2,'type':_0x3134bf}:_0x217ddb[_0x3134bf]&&!_0x4600ef?(_0x217ddb[_0x3134bf]['end']=_0x22a1e7,_0x3a90b2(_0x217ddb[_0x3134bf]),_0x217ddb[_0x3134bf]=null):_0x217ddb[_0x3134bf]&&_0x4600ef&&_0x217ddb[_0x3134bf]['userId']!==_0x5793f2&&(_0x217ddb[_0x3134bf]['end']=_0x22a1e7,_0x544970&&_0x544970['userId']===_0x217ddb[_0x3134bf]['userId']||_0x3a90b2(_0x217ddb[_0x3134bf]),_0x217ddb[_0x3134bf]={'start':_0x22a1e7,'tapeItem':_0x421c09[_0x26824d],'userId':_0x5793f2,'type':_0x3134bf}),_0x217ddb[_0x3134bf]&&_0x2b23ca&&('elementStart'!==_0x421c09[_0x26824d]['type']||_0x544970&&_0x544970['userId']===_0x5793f2||_0x2077ff[_0x3134bf]['unshift']({'userId':_0x5793f2,'object':_0x421c09[_0x26824d]['item'],'change':_0x217ddb[_0x3134bf]}),'elementEnd'===_0x421c09[_0x26824d]['type']&&_0x544970&&_0x544970['object']===_0x421c09[_0x26824d]['item']&&(_0x2077ff[_0x3134bf]['shift'](),_0x217ddb[_0x3134bf]=_0x544970['change'])),_0x217ddb[_0x3134bf]&&_0x172314&&(_0x217ddb[_0x3134bf]['end']=_0x30d508,_0x3a90b2(_0x217ddb[_0x3134bf]),_0x217ddb[_0x3134bf]=null);}function _0x3a90b2({start:_0x20262c,end:_0x300f23,tapeItem:_0x10ad18,userId:_0x357efb,type:_0x2f23e8}){const _0x259fbc=_0x10ad18['item'],_0x3ddb6b=_0x576f6d['schema']['isBlock'](_0x259fbc)&&!_0x576f6d['schema']['isLimit'](_0x259fbc),_0x16c678=_0x20262c['nodeAfter']==_0x300f23['parent']&&_0x300f23['isAtStart'];if(_0x3ddb6b&&_0x16c678)return;const _0x3970fe=_0x576f6d['createRange'](_0x20262c,_0x300f23),_0x5625af=_0x1f8265['get'](_0x357efb),_0xd3ba40=new r({'author':_0x5625af,'type':'isAdded'==_0x2f23e8||'isAddSuggestion'==_0x2f23e8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2f23e8||'isRemoveSuggestion'==_0x2f23e8},'createdAt':new Date(),'rootName':_0x241f3a});_0x58498b['push'](_0xd3ba40),_0x1c785d['markers']['set']('revision:'+_0xd3ba40['id'],_0x3970fe);}function _0x9ccbe6(_0xce98ef,_0x1165d6){const _0x43fc2e=_0xce98ef['getAttributes'](),_0x1127d8=_0x1165d6['getAttributes']();for(const _0x34b286 of _0x43fc2e){if(_0x34b286[0x1]!==_0x1165d6['getAttribute'](_0x34b286[0x0]))return!0x1;_0x1127d8['next']();}return _0x1127d8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1daa88=>{const _0x203ba9=_0x1daa88['markerName']['split'](':')[0x1],_0x4d5e0e=this['_getChangeFromId'](_0x203ba9);if(!_0x4d5e0e)return null;const _0x349335='add'==_0x4d5e0e['type']?'insertion':'deletion',_0x4f116d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x349335];return _0x4d5e0e['data']['isSuggestion']&&_0x4f116d['push']('ck-suggestion-marker-'+_0x349335+'-new'),this['activeChange']==_0x4d5e0e&&_0x4f116d['push']('ck-suggestion-marker--active'),{'classes':_0x4f116d,'attributes':{'data-change-id':_0x203ba9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xf12751=>{_0xf12751['on']('element:pre',(_0x5c9053,_0x2f67f8,_0x38f025)=>{const _0x1b21bb=_0x2f67f8['viewItem']['getChild'](0x0);if(!_0x1b21bb||!_0x1b21bb['is']('element','code'))return;if(!_0x38f025['consumable']['consume'](_0x1b21bb,{'attributes':['vid_start','vid_end']}))return;const _0x198435=_0x2f67f8['modelRange']['start']['nodeAfter'];_0x38f025['writer']['setAttribute']('vid_start',_0x1b21bb['getAttribute']('vid_start'),_0x198435),_0x38f025['writer']['setAttribute']('vid_end',_0x1b21bb['getAttribute']('vid_end'),_0x198435);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3c62b3=>{_0x3c62b3['on']('element',(_0x21ab28,_0xe16143,_0x2dfaab)=>{if(!_0x2dfaab['consumable']['consume'](_0xe16143['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xe16143['modelRange']['isCollapsed'])return;const _0x627cd9=_0xe16143['modelRange']['start']['nodeAfter'];_0x627cd9['hasAttribute']('vid_start')||_0x627cd9['hasAttribute']('vid')||(_0x2dfaab['writer']['setAttribute']('vid_start',_0xe16143['viewItem']['getAttribute']('vid_start'),_0x627cd9),_0x2dfaab['writer']['setAttribute']('vid_end',_0xe16143['viewItem']['getAttribute']('vid_end'),_0x627cd9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xe9a36c=>_0xe9a36c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3e2963,[,_0x27d235])=>{['vid_start','vid_end','vid']['includes'](_0x27d235)&&(_0x3e2963['return']=!0x0,_0x3e2963['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x419960=>{_0x419960['on']('attribute:vid',(_0x4e65c2,_0x3295c7,_0x533c9d)=>{if('\x20'!=_0x3295c7['item']['data']||_0x3295c7['item']['parent']['maxOffset']>0x1)return;if(!_0x533c9d['consumable']['consume'](_0x3295c7['item'],_0x4e65c2['name']))return;const _0x53e848=_0x533c9d['writer'],_0x5065f1=_0x533c9d['mapper']['toViewRange'](_0x3295c7['range']);_0x53e848['wrap'](_0x5065f1,_0x53e848['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xf33eda){const _0x16d019=_0xf33eda['plugins']['get']('RevisionViewer');return(_0x18af40,_0x209ef3,_0x388a34)=>{const _0x29a0b4=_0x209ef3['markerName']['split'](':')[0x1],_0x50808c=_0x16d019['_getChangeFromId'](_0x29a0b4);if(!_0x50808c)return null;const _0x24d1c2='add'==_0x50808c['type']?'split':'merge';if(!_0x388a34['consumable']['test'](_0x209ef3['markerRange'],_0x18af40['name']))return;const _0xdff5f2=_0x209ef3['markerRange']['getWalker'](),_0x31f325=_0x209ef3['markerRange']['start'],_0x4cccea=_0xf33eda['model']['schema'];let _0xbb1419=null,_0x275d09=null,_0x1c1209=!0x1,_0x524228=!0x1;for(const _0x1ea740 of _0xdff5f2){const _0x2dbc99=_0x1ea740['item'];_0x1c1209=_0x1c1209||_0x4cccea['isContent'](_0x2dbc99);const _0x1a8d30=_0x388a34['mapper']['toViewElement'](_0x2dbc99);if(_0x1a8d30&&_0x1a8d30['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ea740['type']&&(_0x4cccea['isBlock'](_0x2dbc99)&&!_0x4cccea['isLimit'](_0x2dbc99)&&(_0x2dbc99['nextSibling']||_0x31f325['isAtEnd']?_0xbb1419&&_0xbb1419['parent']==_0x2dbc99||(_0xbb1419=_0x2dbc99,_0x4612ce(_0x1ea740['previousPosition']),_0x524228=!0x0):_0x275d09=_0x275d09||_0x1ea740['previousPosition']));}function _0x4612ce(_0x1af16c){const _0x3b35d5=_0x388a34['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x24d1c2}),_0x90d80a=_0x388a34['mapper']['toViewPosition'](_0x1af16c);_0x50808c['data']['isSuggestion']&&_0x388a34['writer']['addClass']('ck-suggestion-marker-'+_0x24d1c2+'-new',_0x3b35d5),_0x16d019['activeChange']==_0x50808c&&_0x388a34['writer']['addClass']('ck-suggestion-marker--active',_0x3b35d5),_0x388a34['writer']['insert'](_0x90d80a,_0x3b35d5),_0x388a34['mapper']['bindElementToMarker'](_0x3b35d5,_0x209ef3['markerName']);}_0x1c1209||_0x524228||!_0x275d09||_0x4612ce(_0x275d09);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x6f4919,_0x1d2035,_0x3aac15)=>{const _0xb731a1=_0x3aac15['mapper']['markerNameToElements'](_0x1d2035['markerName']);if(_0xb731a1){for(const _0x4ee46a of _0xb731a1)(_0x4ee46a['hasClass']('ck-suggestion-marker-split')||_0x4ee46a['hasClass']('ck-suggestion-marker-merge'))&&(_0x3aac15['mapper']['unbindElementFromMarkerName'](_0x4ee46a,_0x1d2035['markerName']),_0x3aac15['writer']['remove'](_0x4ee46a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5f2e77,_0x5d4ecf,_0x58c149)=>{const _0x594dc2=_0x5d4ecf['markerName']['split'](':')[0x1],_0x395df1=this['_getChangeFromId'](_0x594dc2);if(!_0x395df1)return null;const _0x408c4e='add'==_0x395df1['type']?'split':'merge';if(_0x58c149['consumable']['test'](_0x5d4ecf['markerRange'],_0x5f2e77['name']))for(const _0x896cad of _0x5d4ecf['markerRange']['getItems']()){if(!_0x896cad['is']('element','softBreak'))continue;const _0x5bf83f=_0x58c149['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x408c4e}),_0x31c79e=_0x58c149['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x896cad));_0x395df1['data']['isSuggestion']&&_0x58c149['writer']['addClass']('ck-suggestion-marker-'+_0x408c4e+'-new',_0x5bf83f),this['activeChange']==_0x395df1&&_0x58c149['writer']['addClass']('ck-suggestion-marker--active',_0x5bf83f),_0x58c149['writer']['insert'](_0x31c79e,_0x5bf83f),_0x58c149['mapper']['bindElementToMarker'](_0x5bf83f,_0x5d4ecf['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5ebab7=>{for(const _0x2bc48d of this['editor']['model']['document']['getRootNames']()){const _0x23017e=this['editor']['model']['document']['getRoot'](_0x2bc48d),_0x15a5a5=this['editor']['editing']['view']['document']['getRoot'](_0x2bc48d);if(_0x15a5a5){const _0x5964ac=_0x23017e['getAttribute']('revisionHistoryAttachChange');if(_0x5ebab7['removeAttribute']('data-change-id',_0x15a5a5),_0x5ebab7['removeClass']('ck-revision-history-root-add',_0x15a5a5),_0x5ebab7['removeClass']('ck-revision-history-root-remove',_0x15a5a5),_0x5ebab7['removeClass']('ck-revision-history-root--active',_0x15a5a5),_0x5964ac){const _0x174eba=this['_getChangeFromId'](_0x5964ac);if(!_0x174eba)return null;_0x5ebab7['setAttribute']('data-change-id',_0x5964ac,_0x15a5a5),_0x5ebab7['addClass']('ck-revision-history-root-'+_0x174eba['type'],_0x15a5a5),this['activeChange']==_0x174eba&&_0x5ebab7['addClass']('ck-revision-history-root--active',_0x15a5a5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4dfbf4=>'revision-comment:'+_0x4dfbf4,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5d134c=>'revision-suggestion:'+_0x5d134c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xeb17d0=>({'name':'suggestion:'+_0xeb17d0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x46f14d=>{const _0x22c1f2=_0x46f14d['markerName']['split'](':')[0x1];return'insertion'!=_0x22c1f2&&'deletion'!=_0x22c1f2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x22c1f2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x18299f,_0x47e87f,_0x278f18)=>{const _0x248ab2=_0x278f18['mapper']['markerNameToElements'](_0x47e87f['markerName']);if(_0x248ab2){for(const _0x4b4c56 of _0x248ab2)_0x4b4c56['is']('uiElement')&&(_0x278f18['mapper']['unbindElementFromMarkerName'](_0x4b4c56,_0x47e87f['markerName']),_0x278f18['writer']['remove'](_0x4b4c56));}},{'priority':'high'});}['_getChangeFromId'](_0x158b61){return this['_changeIdToChange']['get'](_0x158b61);}['_getViewForChange'](_0x222774){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x222774),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1d043f,_0x49f16d,_0x458d08,_0x2ab744)=>{_0x2ab744&&this['_balloon']['remove'](_0x2ab744),_0x458d08&&(this['_balloon']['add']({'view':_0x458d08,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3e7677=this['editor']['editing'],_0x3a6cf7=this['_getChangeFromId'](_0x458d08['changeId']);let _0x9db36b;if(_0x3a6cf7['data']['isOnRoot']){const _0x346486=_0x3e7677['view']['getDomRoot'](_0x3a6cf7['rootName']);_0x9db36b=Array['from'](_0x346486['getClientRects']());}else{const _0x52b46a=this['editor']['model']['markers']['get']('revision:'+_0x458d08['changeId']);_0x9db36b=Array['from'](_0x3e7677['mapper']['markerNameToElements'](_0x52b46a['name']))['map'](_0x3df39e=>_0x3e7677['view']['domConverter']['mapViewToDom'](_0x3df39e))['map'](_0x41692e=>Array['from'](_0x41692e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x9db36b[0x0];return _0x9db36b['find'](_0x31f6c9=>_0x31f6c9['top']-0x3<=this['_activeViewTarget']['y']&&_0x31f6c9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x31f6c9['left']-0x3<=this['_activeViewTarget']['x']&&_0x31f6c9['right']+0x3>=this['_activeViewTarget']['x'])||_0x9db36b[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3cedd1,_0x4f5c1a,_0x464dc3,_0x33ccae)=>{this['activeView']=_0x464dc3?this['_getViewForChange'](_0x464dc3):null,this['editor']['model']['change'](()=>{const _0x10c64a=this['editor']['editing'];_0x33ccae&&(_0x33ccae['data']['isOnRoot']?_0x10c64a['view']['change'](_0x46c88a=>{_0x46c88a['removeClass']('ck-revision-history-root--active',_0x10c64a['view']['document']['getRoot'](_0x33ccae['rootName']));}):_0x10c64a['reconvertMarker']('revision:'+_0x33ccae['id'])),_0x464dc3&&(_0x464dc3['data']['isOnRoot']?_0x10c64a['view']['change'](_0x553b33=>{_0x553b33['addClass']('ck-revision-history-root--active',_0x10c64a['view']['document']['getRoot'](_0x464dc3['rootName']));}):_0x10c64a['reconvertMarker']('revision:'+_0x464dc3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x25e2b6,_0x215896)=>{if(this['activeChange'])return;const _0x51ba2c=this['_findChangeIdFromDomTarget'](_0x215896['target']),_0x22c70d=this['_changeIdToChange']['get'](_0x51ba2c);_0x22c70d?(this['_activeViewTarget']={'x':_0x215896['domEvent']['x'],'y':_0x215896['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x22c70d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x337566,_0x35c82e)=>{const _0x21f05e=this['_findChangeIdFromDomTarget'](_0x35c82e['target']),_0x55ae2b=this['_changeIdToChange']['get'](_0x21f05e);_0x55ae2b?(this['_activeViewTarget']={'x':_0x35c82e['domEvent']['x'],'y':_0x35c82e['domEvent']['y']},_0x55ae2b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x55ae2b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2d70f7){do{const _0x8125ed=_0x2d70f7['getAttribute']('data-change-id');if(_0x8125ed)return _0x8125ed;_0x2d70f7=_0x2d70f7['parent'];}while(_0x2d70f7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xeb353=>{for(const _0x31a2ad of this['editor']['model']['markers'])_0xeb353['removeMarker'](_0x31a2ad);});}}function tt(_0x2df943,_0x2b353a){return(_0x269f33,_0x3b1d6f,_0xe2853b)=>{if(!_0xe2853b['consumable']['test'](_0x3b1d6f['markerRange'],_0x269f33['name']))return;const _0x416b2d=_0x3b1d6f['markerRange']['getWalker'](),_0x5df63d=_0x3b1d6f['markerRange']['start'],_0x3a8ff4=_0x2df943['model']['schema'];let _0x117560=null,_0xf7cab9=null,_0x5e1f4c=!0x1,_0x41df7e=!0x1;for(const _0x41167c of _0x416b2d){const _0x29732e=_0x41167c['item'];_0x5e1f4c=_0x5e1f4c||_0x3a8ff4['isContent'](_0x29732e);const _0x43b0c4=_0xe2853b['mapper']['toViewElement'](_0x29732e);if(_0x43b0c4&&_0x43b0c4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41167c['type']&&(_0x3a8ff4['isBlock'](_0x29732e)&&!_0x3a8ff4['isLimit'](_0x29732e)&&(_0x29732e['nextSibling']||_0x5df63d['isAtEnd']?_0x117560&&_0x117560['parent']==_0x29732e||(_0x117560=_0x29732e,_0x3fe47f(_0x41167c['previousPosition']),_0x41df7e=!0x0):_0xf7cab9=_0xf7cab9||_0x41167c['previousPosition']));}function _0x3fe47f(_0x3a6849){const _0x202d79=_0xe2853b['mapper']['toViewPosition'](_0x3a6849),_0x4bddf6=_0xe2853b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b353a});_0xe2853b['writer']['insert'](_0x202d79,_0x4bddf6),_0xe2853b['mapper']['bindElementToMarker'](_0x4bddf6,_0x3b1d6f['markerName']);}_0x5e1f4c||_0x41df7e||!_0xf7cab9||_0x3fe47f(_0xf7cab9);};}class _t extends _0x5105a7{constructor(_0x32db25){super(_0x32db25);const _0x19898e=_0x32db25['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x19898e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x19898e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1e53f0=this['editor'],_0x1aac10=_0x1e53f0['plugins']['get'](d),_0x128622=_0x1aac10['isReady']?_0x1aac10['diff']['newRevisionId']:null;_0x1e53f0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x128622);}['refresh'](){const {isReady:_0x44e605,isEnabled:_0xced3c,repository:_0x2909aa,diff:_0x41709c}=this['editor']['plugins']['get'](d),_0x86bfd3=_0x41709c&&_0x2909aa['getLaterVisibleRevision'](_0x41709c['newRevisionId']);this['isEnabled']=_0x44e605&&_0xced3c&&Boolean(_0x86bfd3);}}class yt extends _0x5105a7{['_step'];constructor(_0x2ae2c4,{direction:_0x42daad}){super(_0x2ae2c4);const _0x18fb56=_0x2ae2c4['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x42daad?0x1:-0x1,this['listenTo'](_0x18fb56,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x18fb56,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x18fb56,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xeebcd6=this['editor'],_0x35ca6c=_0xeebcd6['plugins']['get'](d),{isNavigationMode:_0x1f7877,currentChangeNumber:_0x149173}=_0x35ca6c;let _0x17b66b;if(_0x35ca6c['activeChange']=_0x1f7877?_0x35ca6c['diff']['changes']['get'](_0x149173+this['_step']):_0x35ca6c['diff']['changes']['first'],_0x35ca6c['activeChange']['data']['isOnRoot'])_0x17b66b=_0xeebcd6['editing']['view']['getDomRoot'](_0x35ca6c['activeChange']['rootName']);else{const _0x3ab077=_0xeebcd6['model']['markers']['get']('revision:'+_0x35ca6c['activeChange']['id']);_0x17b66b=_0x268bd5(_0xeebcd6['editing'],_0x3ab077);}_0x30924f({'target':_0x17b66b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x23e749,currentChangeNumber:_0x37dbfd,numberOfChanges:_0x494f2f,isReady:_0x16c60b,isEnabled:_0x412add}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x412add&&_0x16c60b&&_0x494f2f)&&(!_0x23e749||(0x1===this['_step']?_0x37dbfd<_0x494f2f-0x1:_0x37dbfd>0x0));}}class di extends ts{constructor(_0x2fc1ed){super(_0x2fc1ed);const _0x540ef6=this['bindTemplate'],_0xc5f5c8=new te(_0x2fc1ed),_0x564a68=new te(_0x2fc1ed);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',(_0x43cb63,_0xb6f8d1)=>_0x43cb63&&_0xb6f8d1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2fc322,_0xf821c2,_0x497856,_0x404fb4)=>{if(!_0x2fc322)return R(_0x2fc1ed,'Loading...');if(!_0x497856)return R(_0x2fc1ed,'No\x20changes');const _0x59642c=R(_0x2fc1ed,'NUMBER_OF_CHANGES',_0x497856);return _0x404fb4?R(_0x2fc1ed,'X_OF_Y_CHANGES',[_0xf821c2+0x1,_0x497856]):_0x59642c;}),_0xc5f5c8['set']({'label':R(_0x2fc1ed,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x564a68['set']({'label':R(_0x2fc1ed,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0xc5f5c8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x564a68['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xc5f5c8['on']('execute',()=>this['fire']('execute','backward')),_0x564a68['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',_0x540ef6['if']('_isStatusLabelVisible','ck-hidden',_0x19db62=>!_0x19db62)]},'children':[{'text':_0x540ef6['to']('isNavigationMode',_0x5c346a=>_0x5c346a?R(_0x2fc1ed,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2fc1ed,'Total')+':\x20')}]},{'text':_0x540ef6['to']('_statusText')}]},new _0xebe5d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xc5f5c8,_0x564a68]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x481e5f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x542fe2=this['editor']['editing']['view'];_0x542fe2['change'](_0xe7c04=>{for(const _0x285abf of _0x542fe2['document']['roots'])_0xe7c04['addClass'](le,_0x285abf);});}['hide'](){const _0x5db6fc=this['editor']['editing']['view'];_0x5db6fc['change'](_0x1be733=>{for(const _0x2f1ebc of _0x5db6fc['document']['roots'])_0x1be733['removeClass'](le,_0x2f1ebc);});}}class m extends _0x481e5f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1421ad=this['editor'],_0x2f289f=_0x1421ad['plugins']['get'](d),_0x1bc825=_0x1421ad['plugins']['get'](ge);_0x1421ad['ui']['componentFactory']['add']('exitToEditing',_0x39729b=>{const _0x36ba3e=new te(_0x39729b);return _0x36ba3e['set']({'label':R(_0x39729b,'Back\x20to\x20editing'),'icon':_0x25076a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x36ba3e,'execute',()=>{_0x1421ad['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x36ba3e;}),_0x1421ad['ui']['componentFactory']['add']('restoreRevision',_0x5bd9f9=>{const _0x4ba9ad=new te(_0x5bd9f9);return _0x4ba9ad['set']({'label':R(_0x5bd9f9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ba9ad['bind']('isEnabled')['to'](_0x1421ad['commands']['get']('restoreRevision')),this['listenTo'](_0x4ba9ad,'execute',()=>_0x1421ad['execute']('restoreRevision')),_0x4ba9ad;}),_0x1421ad['ui']['componentFactory']['add']('changesNavigation',_0x1e16fb=>{const _0x1097d6=new di(_0x1e16fb),_0x27b319=_0x1421ad['commands']['get']('showPreviousChange'),_0x226856=_0x1421ad['commands']['get']('showNextChange');return _0x1097d6['bind']('isBackwardNavigationEnabled')['to'](_0x27b319,'isEnabled'),_0x1097d6['bind']('isForwardNavigationEnabled')['to'](_0x226856,'isEnabled'),_0x1097d6['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2f289f),this['listenTo'](_0x1097d6,'execute',(_0xbdea89,_0x141da0)=>{_0x1421ad['execute']('forward'===_0x141da0?'showNextChange':'showPreviousChange');}),_0x1097d6;}),_0x1bc825['show'](),_0x2f289f['on']('change:isReady',(_0x8eb0b,_0x656de8,_0x18e8a4)=>{_0x18e8a4?_0x1bc825['hide']():_0x1bc825['show']();});}}class pt extends _0x2135de{['_resizeObserver']=null;constructor(_0x67756f,_0x4c6bf3){super(_0x67756f,_0x4c6bf3);const _0xb920b5=this['bindTemplate'];this['set']({'label':R(_0x67756f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x67756f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xb920b5['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2aa952=this['fieldView']['element'];this['_tooltipString']=_0x2aa952['scrollWidth']>_0x2aa952['clientWidth']&&_0x2aa952['value']||'';}}class oi extends ts{constructor(_0x5c0580,_0x23612c,_0x4746ab){super(_0x5c0580);const _0x312f8d=new _0x21834f();_0x312f8d['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x3304e5=['ck','ck-revision-history-sidebar__revision-author'];_0x4746ab&&_0x3304e5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x11af82=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x5c0580,_0x4746ab?'Revision\x20creator':'Revision\x20author')},'children':[_0x312f8d,_0x23612c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3304e5},'children':_0x11af82});}}function ai(_0x322f89,_0x3248ba){const _0x214930=_0x322f89['bindTemplate'],_0x54839d=_0x322f89['locale'],_0x251348=_0x48d8c8(_0x54839d);_0x251348['panelPosition']='sw';const _0x27a003=function(_0x3007c3,_0xa6e559){const _0x29b27c=function(_0x24242b,_0x1f8aaa){const _0x707713=_0x24242b['locale'],_0x37d4d={'Compare\x20against\x20selected':R(_0x707713,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x707713,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x707713,'Restore\x20this\x20revision')};return _0x1f8aaa['map'](_0x20b3b8=>{const _0x2f7c63=_0x37d4d[_0x20b3b8['name']];return _0x2f7c63&&_0x2f7c63!==_0x20b3b8['name']&&(_0x20b3b8['name']=_0x2f7c63),_0x20b3b8;});}(_0x3007c3,_0xa6e559),_0xbeaa1=new _0x37e5f1();for(const _0x498939 of _0x29b27c){const _0x4b26cb={'type':'button','model':new _0x4e2a6d({'label':_0x498939['name'],'class':_0x498939['class'],'withText':!0x0,'role':'menuitem','_action':_0x498939['action']})};_0x4b26cb['model']['bind']('isEnabled')['to'](_0x3007c3,'isActionsDropdownOpen',_0x1a7a12=>'function'!=typeof _0x498939['isEnabled']||(!_0x1a7a12||_0x498939['isEnabled'](_0x3007c3))),_0xbeaa1['add'](_0x4b26cb);}return _0xbeaa1;}(_0x322f89,_0x3248ba);return _0x322f89['bind']('isActionsDropdownOpen')['to'](_0x251348,'isOpen'),_0x251348['buttonView']['set']({'label':R(_0x54839d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x25076a['threeVerticalDots']}),_0x251348['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x214930['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x214930['to'](_0x17aead=>_0x17aead['stopPropagation']())}}),_0x251348['on']('execute',_0x182b59=>{_0x322f89['isReady']&&'function'==typeof _0x182b59['source']['_action']&&_0x182b59['source']['_action'](_0x322f89);}),to(_0x251348,_0x27a003,{'role':'menu'}),_0x251348['listenTo'](_0x322f89,'change:isActionsDropdownOpen',(_0x1ffc66,_0x20014f,_0x52120e)=>{if(_0x52120e)for(const _0x15be5c of _0x251348['listView']['items']){const _0x347b31=_0x15be5c['children']['first'],_0x430e14=_0x3248ba['find'](_0x22b247=>_0x22b247['action']===_0x347b31['_action'])['isVisible'];_0x15be5c['isVisible']=void 0x0===_0x430e14||_0x430e14(_0x322f89);}}),_0x251348;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x3f9eee,uid as _0xe7cf66,Collection as _0x1833d0,logWarning as _0x4adffa,FocusTracker as _0x362396,KeystrokeHandler as _0x464106,scrollViewportToShowTarget as _0x56f3c7,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x2dd5b8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x31f663,set as _0x242e77,unset as _0x480b2b,isEqual as _0x344dca}from'lodash-es';import{Plugin as _0x1be25d,PendingActions as _0x3f2b91,icons as _0x5f15d8,Command as _0xb5c857,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5dae67,getMarkerDomElement as _0x1b4d9f,ConfirmMixin as _0x1d00e1,sanitizeEditorConfig as _0x2bacaf}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x274950,ViewText as _0x43567a,ViewElement as _0x3d18c0,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x177dd9,ViewAttributeElement as _0x11edbf,ViewEmptyElement as _0x4cc4c1,ViewRawElement as _0x19c81d,ViewUIElement as _0x3afc04,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x5671f8,injectCssTransitionDisabler as ts,submitHandler as _0x5af36e,LabeledFieldView as at,createLabeledInputText as _0x11a751,createDropdown as _0x40d335,ListView as te,ListItemView as _0x3773d9,ButtonView as _0x5df855,MenuBarMenuView as _0x4827c9,MenuBarMenuListView as _0x2d71b1,MenuBarMenuListItemView as _0x2bc4aa,MenuBarMenuListItemButtonView as _0x30e1db,ContextualBalloon as _0x58072f,ToolbarSeparatorView as _0x143a44,IconView as _0x46e106,addListToDropdown as _0x22ca03,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x583a3e}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3f9eee(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x32ad66){super(),this['id']=_0x32ad66['id']||_0xe7cf66(),this['creator']=_0x32ad66['creator']||null,this['authors']=_0x32ad66['authors']||[],this['diffData']=_0x32ad66['diffData']||null,this['toVersion']=_0x32ad66['toVersion']||0x0,this['fromVersion']=_0x32ad66['fromVersion']||0x0,this['set']('name',_0x32ad66['name']||''),this['set']('createdAt',_0x32ad66['createdAt']||new Date()),this['set']('attributes',_0x32ad66['attributes']||{});}['setName'](_0x140468){this['_update']({'name':_0x140468});}['setAttribute'](_0xe2dc89,_0x4acc7d){const _0x2b1c44=_0x31f663(this['attributes']);_0x242e77(_0x2b1c44,_0xe2dc89,_0x4acc7d),this['_update']({'attributes':_0x2b1c44});}['removeAttribute'](_0x4b1c47){const _0x2ca111=_0x31f663(this['attributes']);_0x480b2b(_0x2ca111,_0x4b1c47),this['_update']({'attributes':_0x2ca111});}['_update'](_0x42780f,_0x13ff3e=!0x1){let _0x4cb521=!0x1;const _0x37c11f={'id':this['id']},_0x22c2ea=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x22ae83 of _0x22c2ea){const _0xf3475b=_0x42780f[_0x22ae83];void 0x0!==_0xf3475b&&_0xf3475b!==this[_0x22ae83]&&(this[_0x22ae83]=_0xf3475b,_0x37c11f[_0x22ae83]=_0xf3475b,_0x4cb521=!0x0);}_0x4cb521&&(_0x37c11f['authors']&&(_0x37c11f['authorsIds']=_0x37c11f['authors']['map'](_0x39b748=>_0x39b748['id']),delete _0x37c11f['authors']),this['fire']('_update',_0x37c11f,_0x13ff3e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x57787d=>_0x57787d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1be25d{['_revisions'];static get['requires'](){return[_0x5dae67];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x18dede){super(_0x18dede),this['_revisions']=new _0x1833d0();}['afterInit'](){!async function(_0x4c21bd){const _0x55c0ba=_0x54dd86([0x75,0x38,0x71,0x67,0x37,0x70,0x30,0x48,0x66,0x69,0x49,0x50,0x51,0x59,0x44,0x76,0x4e,0x64,0x73,0x74,0x4d,0x6b,0x45,0x33,0x55,0x61,0x78,0x6e,0x53,0x6a,0x46,0x79,0x32,0x7a,0x72,0x57,0x56,0x4b,0x4f,0x6f,0x52,0x6d,0x63,0x62,0x47,0x42,0x5a,0x54,0x4a,0x58,0x77,0x41,0x4c,0x65,0x31,0x43,0x34,0x68,0x36,0x6c,0x39,0x35]),_0x202679=0xeb829,_0x4cb696=0x71267253,_0x4cee58=0x7121289b^_0x4cb696,_0x2138d3=window[_0x54dd86([0x44,0x61,0x74,0x65])][_0x54dd86([0x6e,0x6f,0x77])](),_0x70413e=_0x4c21bd[_0x54dd86([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1449e4=new window[(_0x54dd86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36d74b=>{_0x70413e[_0x54dd86([0x6f,0x6e,0x63,0x65])](_0x54dd86([0x72,0x65,0x61,0x64,0x79]),_0x36d74b);}),_0x16617a={[_0x54dd86([0x6b,0x74,0x79])]:_0x54dd86([0x45,0x43]),[_0x54dd86([0x75,0x73,0x65])]:_0x54dd86([0x73,0x69,0x67]),[_0x54dd86([0x63,0x72,0x76])]:_0x54dd86([0x50,0x2d,0x32,0x35,0x36]),[_0x54dd86([0x78])]:_0x54dd86([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]),[_0x54dd86([0x79])]:_0x54dd86([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]),[_0x54dd86([0x61,0x6c,0x67])]:_0x54dd86([0x45,0x53,0x32,0x35,0x36])},_0x333710=_0x70413e[_0x54dd86([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54dd86([0x67,0x65,0x74])](_0x54dd86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2567bd(){let _0x1331bf,_0x381ca7=null,_0x43eb14=null;try{if(_0x333710==_0x54dd86([0x47,0x50,0x4c]))return _0x54dd86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1331bf=_0x5d8c51(),!_0x1331bf)return _0x54dd86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1331bf[_0x54dd86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43eb14=_0x59a0ec(_0x1331bf[_0x54dd86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1331bf[_0x54dd86([0x6a,0x74,0x69])])),await _0x3a8e2b()?_0x306ebc()?_0x2c3195()?_0x54dd86([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1db9b5()?(_0x1331bf[_0x54dd86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54dd86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x381ca7=_0x3eaac3(_0x54dd86([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1331bf[_0x54dd86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54dd86([0x74,0x72,0x69,0x61,0x6c])&&(_0x381ca7=_0x3eaac3(_0x54dd86([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1331bf[_0x54dd86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54dd86([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x381ca7=_0x3eaac3(_0x54dd86([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc49dea()):_0x54dd86([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54dd86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54dd86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x435427){return _0x54dd86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c3195(){const _0x14bba2=[_0x54dd86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54dd86([0x74,0x72,0x69,0x61,0x6c])][_0x54dd86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1331bf[_0x54dd86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2138d3/0x3e8:0xe10*_0x4cee58;return _0x1331bf[_0x54dd86([0x65,0x78,0x70])]<_0x14bba2;}function _0x306ebc(){const _0x5a25d1=_0x1331bf[_0x54dd86([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5a25d1)return!0x1;if(_0x5a25d1[_0x54dd86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dd86([0x2a])))return!0x0;if(_0x5a25d1[_0x54dd86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dd86([0x52,0x48])))return!0x0;if(_0x5a25d1[_0x54dd86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dd86([0x52,0x52,0x48]))){if(_0x3ffc26())return!0x0;if(_0x4eac89()||_0x21a4dc())return!0x0;}return!0x1;}function _0x1db9b5(){const _0x89f2bc=_0x1331bf[_0x54dd86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x89f2bc||0x0==_0x89f2bc[_0x54dd86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9dfea7}=new URL(window[_0x54dd86([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x89f2bc[_0x54dd86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9dfea7))return!0x0;const _0x4ba4b6=_0x9dfea7[_0x54dd86([0x73,0x70,0x6c,0x69,0x74])](_0x54dd86([0x2e]));return _0x89f2bc[_0x54dd86([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x66b28d=>_0x66b28d[_0x54dd86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dd86([0x2a])))[_0x54dd86([0x6d,0x61,0x70])](_0x3bb547=>_0x3bb547[_0x54dd86([0x73,0x70,0x6c,0x69,0x74])](_0x54dd86([0x2e])))[_0x54dd86([0x73,0x6f,0x6d,0x65])](_0x3415cc=>_0x4ba4b6[_0x54dd86([0x65,0x76,0x65,0x72,0x79])]((_0x24b118,_0x278d69)=>_0x3415cc[_0x278d69]===_0x24b118||_0x3415cc[_0x278d69]===_0x54dd86([0x2a])));}function _0xc49dea(){return _0x381ca7&&_0x43eb14?new window[(_0x54dd86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x212d1e,_0x44365c)=>{_0x381ca7[_0x54dd86([0x74,0x68,0x65,0x6e])](_0x212d1e,_0x44365c),_0x43eb14[_0x54dd86([0x74,0x68,0x65,0x6e])](_0x4cffac=>{_0x4cffac!=_0x54dd86([0x56,0x61,0x6c,0x69,0x64])&&_0x212d1e(_0x4cffac);},_0x44365c);}):_0x381ca7||_0x43eb14||_0x54dd86([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59a0ec(_0x5cbd68,_0x4d3952){return new window[(_0x54dd86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ddd7d=>{if(_0x4840a3())return _0x3ddd7d(_0x54dd86([0x56,0x61,0x6c,0x69,0x64]));_0xfd3f4f(),_0x70413e[_0x54dd86([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54dd86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20f2b0=!0x1;const _0x35c1ce=_0xe7cf66();function _0x5e9040(_0x424d27){return!!_0x424d27&&(typeof _0x424d27===_0x54dd86([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x424d27===_0x54dd86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x424d27[_0x54dd86([0x74,0x68,0x65,0x6e])]===_0x54dd86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x424d27[_0x54dd86([0x63,0x61,0x74,0x63,0x68])]===_0x54dd86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x15388b(_0x3f2b92){_0x47de5e(_0x3f2b92)[_0x54dd86([0x74,0x68,0x65,0x6e])](_0x10d245=>{if(!_0x10d245||_0x10d245[_0x54dd86([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54dd86([0x6f,0x6b]))return _0x54dd86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4471b7(_0x59ecd9(_0x35c1ce+_0x4d3952))!=_0x10d245[_0x54dd86([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54dd86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54dd86([0x56,0x61,0x6c,0x69,0x64]);})[_0x54dd86([0x74,0x68,0x65,0x6e])](_0x146e04=>(_0x3e5dfe(),_0x146e04),()=>{const _0x24efa6=_0x263ef0();return null==_0x24efa6?(_0x3e5dfe(),_0x54dd86([0x56,0x61,0x6c,0x69,0x64])):_0x54dd86(_0x2138d3-_0x24efa6>(0x552af653^_0x4cb696)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54dd86([0x74,0x68,0x65,0x6e])](_0x3ddd7d)[_0x54dd86([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ddd7d(_0x54dd86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1934f4=0x71109cd3^_0x4cb696;function _0x3e5dfe(){const _0x61d47f=_0x54dd86([0x6c,0x6c,0x63,0x74,0x2d])+_0x4471b7(_0x59ecd9(_0x5cbd68)),_0x2152db=_0x218cb8(_0x4471b7(window[_0x54dd86([0x4d,0x61,0x74,0x68])][_0x54dd86([0x63,0x65,0x69,0x6c])](_0x2138d3/_0x1934f4)));window[_0x54dd86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54dd86([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x61d47f,_0x2152db);}function _0x263ef0(){const _0x382a03=_0x54dd86([0x6c,0x6c,0x63,0x74,0x2d])+_0x4471b7(_0x59ecd9(_0x5cbd68)),_0x2cb983=window[_0x54dd86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54dd86([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x382a03);return _0x2cb983?window[_0x54dd86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x218cb8(_0x2cb983),0x10)*_0x1934f4:null;}function _0x47de5e(_0x3a73c0){return new window[(_0x54dd86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50989f,_0x1d9a60)=>{_0x3a73c0[_0x54dd86([0x74,0x68,0x65,0x6e])](_0x50989f,_0x1d9a60),window[_0x54dd86([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d9a60,0x7127a693^_0x4cb696);});}}_0x70413e[_0x54dd86([0x6f,0x6e])](_0x54dd86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x220690,_0x12019f)=>{if(_0x12019f[0x0]!=_0x5cbd68)return _0x3ddd7d(_0x54dd86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12019f[0x1]={..._0x12019f[0x1],[_0x54dd86([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35c1ce};},{[_0x54dd86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54dd86([0x68,0x69,0x67,0x68])}),_0x70413e[_0x54dd86([0x6f,0x6e])](_0x54dd86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x150bd9=>{_0x5e9040(_0x150bd9[_0x54dd86([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20f2b0=!0x0,_0x15388b(_0x150bd9[_0x54dd86([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54dd86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54dd86([0x6c,0x6f,0x77])}),_0x1449e4[_0x54dd86([0x74,0x68,0x65,0x6e])](()=>{_0x20f2b0||_0x3ddd7d(_0x54dd86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4840a3(){return _0x70413e[_0x54dd86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54dd86([0x76,0x69,0x65,0x77])][_0x54dd86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54dd86([0x61,0x75,0x74,0x6f]);}function _0xfd3f4f(){_0x70413e[_0x54dd86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54dd86([0x76,0x69,0x65,0x77])][_0x54dd86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54dd86([0x61,0x75,0x74,0x6f]);}}function _0x3eaac3(_0x38b758){const _0x1e9987=[new window[(_0x54dd86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x564375=>setTimeout(_0x564375,0x712f4c9f^_0x4cb696)),_0x1449e4[_0x54dd86([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54dd86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b05a6=>{const _0x376f60=0x71267254^_0x4cb696,_0x53c109=_0x4c21bd[_0x54dd86([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x34c170(){_0x53c109[_0x54dd86([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x376f60&&_0x5b05a6();}_0x34c170(),_0x53c109[_0x54dd86([0x6f,0x6e])](_0x54dd86([0x61,0x64,0x64]),_0x34c170);})),new window[(_0x54dd86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x508b70=>{function _0x951093(){for(const _0x318a2d in window)if(window[_0x54dd86([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x54dd86([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x318a2d))&&window[_0x318a2d]==_0x202679)return _0x508b70();_0x70413e[_0x54dd86([0x73,0x74,0x61,0x74,0x65])]!=_0x54dd86([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x54dd86([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x951093,0x712661db^_0x4cb696);}_0x44d04(_0x54dd86([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x951093();})];return window[_0x54dd86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54dd86([0x72,0x61,0x63,0x65])](_0x1e9987)[_0x54dd86([0x74,0x68,0x65,0x6e])](()=>_0x38b758);}async function _0x55c72a(){if(await _0x1449e4,_0x44d04(_0x54dd86([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b059b=_0x4c21bd[_0x54dd86([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5c3388=_0x4c21bd[_0x54dd86([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])](_0x1b059b[_0x54dd86([0x69,0x64])]),_0x22e475=_0x3eebe4(_0x54dd86([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x22e475[_0x54dd86([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b059b['id'],_0x5c3388?_0x5c3388['id']:null,!0x0),_0x22e475[_0x54dd86([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x54dd86([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x22e475[_0x54dd86([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x22e475[_0x54dd86([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x22e5e8,void(_0x22e475[_0x54dd86([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x22e5e8);}if(_0x44d04(_0x54dd86([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5b70a0=_0x3eebe4(_0x54dd86([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5b70a0[_0x54dd86([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x54dd86([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5b70a0[_0x54dd86([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5b70a0[_0x54dd86([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x22e5e8,_0x5b70a0[_0x54dd86([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x22e5e8;}_0x70413e[_0x54dd86([0x6d,0x6f,0x64,0x65,0x6c])][_0x54dd86([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22e5e8,_0x70413e[_0x54dd86([0x6d,0x6f,0x64,0x65,0x6c])][_0x54dd86([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22e5e8,_0x70413e[_0x54dd86([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54dd86([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ffc26(){return _0x44d04(_0x54dd86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3eebe4(_0x54dd86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x54dd86([0x73,0x74,0x61,0x74,0x65])]==_0x54dd86([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4eac89(){return _0x44d04(_0x54dd86([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 _0x21a4dc(){return _0x44d04(_0x54dd86([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x53b287(_0x56c1fe){const _0x201f91=_0xf26e7e();_0x70413e[_0x201f91]=_0x54dd86([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])+_0x56c1fe,_0x56c1fe[_0x54dd86([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x54dd86([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf26e7e()]=_0x202679),_0x56c1fe!=_0x54dd86([0x56,0x61,0x6c,0x69,0x64])&&_0x55c72a();}function _0xf26e7e(){const _0x243758=window[_0x54dd86([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54dd86([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54dd86([0x6e,0x6f,0x77])]())[_0x54dd86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54dd86([0x2e]),'');let _0xf7e63f=_0x54dd86([0x75]);for(let _0x1b4f05=0x0;_0x1b4f05<_0x243758[_0x54dd86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b4f05+=0x2){let _0x1121b3=window[_0x54dd86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x243758[_0x54dd86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b4f05,_0x1b4f05+0x2));_0x1121b3>=_0x55c0ba[_0x54dd86([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1121b3-=_0x55c0ba[_0x54dd86([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf7e63f+=_0x55c0ba[_0x1121b3];}return _0xf7e63f;}function _0x5d8c51(){const _0x1c7b0c=_0x333710[_0x54dd86([0x73,0x70,0x6c,0x69,0x74])](_0x54dd86([0x2e]));if(0x3!=_0x1c7b0c[_0x54dd86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ae28d(_0x1c7b0c[0x1]);function _0x1ae28d(_0x250c31){const _0x4545c2=_0x77e76a(_0x250c31);return _0x4545c2&&_0x2466a7()?_0x4545c2:null;function _0x2466a7(){const _0x1d7417=_0x4545c2[_0x54dd86([0x6a,0x74,0x69])],_0x43819d=window[_0x54dd86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d7417[_0x54dd86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d7417[_0x54dd86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b51b7={..._0x4545c2,[_0x54dd86([0x6a,0x74,0x69])]:_0x1d7417[_0x54dd86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d7417[_0x54dd86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b51b7[_0x54dd86([0x76,0x63])],_0x59ecd9(_0x2b51b7)==_0x43819d;}}}async function _0x3a8e2b(){let _0x5d8884=!0x0;try{const _0x50e97e=_0x333710[_0x54dd86([0x73,0x70,0x6c,0x69,0x74])](_0x54dd86([0x2e])),[_0xa5391f,_0x4e3c56,_0x5861cc]=_0x50e97e;return _0x1394ab(_0xa5391f),await _0x4a6043(_0xa5391f,_0x4e3c56,_0x5861cc),_0x5d8884;}catch(_0x1af786){return!0x1;}function _0x1394ab(_0x226ee0){const _0x4df9d5=_0x77e76a(_0x226ee0);_0x4df9d5&&_0x4df9d5[_0x54dd86([0x61,0x6c,0x67])]==_0x54dd86([0x45,0x53,0x32,0x35,0x36])||(_0x5d8884=!0x1);}async function _0x4a6043(_0x1ed57d,_0x4c711e,_0x42ac7c){const _0x1a2760=window[_0x54dd86([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54dd86([0x66,0x72,0x6f,0x6d])](_0x4a5d25(_0x42ac7c),_0x2258ff=>_0x2258ff[_0x54dd86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x535050=new window[(_0x54dd86([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54dd86([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ed57d+_0x54dd86([0x2e])+_0x4c711e),_0x16869f=window[_0x54dd86([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54dd86([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16869f)return;const _0x3d4a6b=await _0x16869f[_0x54dd86([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54dd86([0x6a,0x77,0x6b]),_0x16617a,{[_0x54dd86([0x6e,0x61,0x6d,0x65])]:_0x54dd86([0x45,0x43,0x44,0x53,0x41]),[_0x54dd86([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54dd86([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54dd86([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16869f[_0x54dd86([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54dd86([0x6e,0x61,0x6d,0x65])]:_0x54dd86([0x45,0x43,0x44,0x53,0x41]),[_0x54dd86([0x68,0x61,0x73,0x68])]:{[_0x54dd86([0x6e,0x61,0x6d,0x65])]:_0x54dd86([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d4a6b,_0x1a2760,_0x535050)||(_0x5d8884=!0x1);}}function _0x77e76a(_0x3515ad){return _0x3515ad[_0x54dd86([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54dd86([0x65,0x79]))?JSON[_0x54dd86([0x70,0x61,0x72,0x73,0x65])](_0x4a5d25(_0x3515ad)):null;}function _0x4a5d25(_0x502293){return window[_0x54dd86([0x61,0x74,0x6f,0x62])](_0x502293[_0x54dd86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54dd86([0x2b]))[_0x54dd86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54dd86([0x2f])));}function _0x59ecd9(_0x137b4c){let _0x22372e=0x1505;function _0xeeb16a(_0x58cd38){for(let _0x4badb3=0x0;_0x4badb3<_0x58cd38[_0x54dd86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4badb3++){const _0x373772=_0x58cd38[_0x54dd86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4badb3);_0x22372e=(_0x22372e<<0x5)+_0x22372e+_0x373772,_0x22372e&=_0x22372e;}}function _0x5c9ec3(_0x4ce219){Array[_0x54dd86([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ce219)?_0x4ce219[_0x54dd86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c9ec3):_0x4ce219&&typeof _0x4ce219==_0x54dd86([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54dd86([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ce219)[_0x54dd86([0x73,0x6f,0x72,0x74])]()[_0x54dd86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25984b,_0x30a47a])=>{_0xeeb16a(_0x25984b),_0x5c9ec3(_0x30a47a);}):_0xeeb16a(window[_0x54dd86([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ce219));}return _0x5c9ec3(_0x137b4c),_0x22372e>>>0x0;}function _0x4471b7(_0x40ef97){return _0x40ef97[_0x54dd86([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54dd86([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54dd86([0x30]));}function _0x218cb8(_0x28834d){return _0x28834d[_0x54dd86([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54dd86([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54dd86([0x6a,0x6f,0x69,0x6e])]('');}function _0x44d04(_0x2c589a){return _0x70413e[_0x54dd86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54dd86([0x68,0x61,0x73])](_0x2c589a);}function _0x3eebe4(_0x466ffb){return _0x70413e[_0x54dd86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54dd86([0x67,0x65,0x74])](_0x466ffb);}function _0x22e5e8(){}function _0x54dd86(_0x1dd62c){return _0x1dd62c['map'](_0xe5d8a6=>String['fromCharCode'](_0xe5d8a6))['join']('');}_0x53b287(await _0x2567bd());}(this);}['createRevision'](_0x26918a){const _0x383b43=this['editor']['plugins']['get']('Users');return new a({'id':_0x26918a['id'],'name':_0x26918a['name'],'creator':_0x26918a['creatorId']?_0x383b43['getUser'](_0x26918a['creatorId']):null,'diffData':_0x26918a['diffData']||_0x26918a['data'],'authors':_0x26918a['authorsIds']['map'](_0x54b9e0=>_0x383b43['getUser'](_0x54b9e0)),'createdAt':new Date(_0x26918a['createdAt']),'attributes':_0x26918a['attributes'],'fromVersion':_0x26918a['fromVersion'],'toVersion':_0x26918a['toVersion']});}['addRevision'](_0x4a169a,_0x102beb=0x0){this['_revisions']['add'](_0x4a169a,_0x102beb);}['getRevision'](_0x27dd2f){return this['_revisions']['get'](_0x27dd2f);}['getRevisions'](_0x12d7d3={'toJSON':!0x1}){const _0x1b3d6b=Array['from'](this['_revisions']);return _0x1b3d6b['reverse'](),_0x12d7d3['toJSON']?_0x1b3d6b['map'](_0x443c9e=>_0x443c9e['toJSON']()):_0x1b3d6b;}['getIndex'](_0x3e27c2){return this['_revisions']['getIndex'](_0x3e27c2);}['getEarlierVisibleRevision'](_0x2ab22b){const [,_0x3fc4b0]=this['getRevisionsIterator'](_0x2ab22b,{'direction':'earlier'});return _0x3fc4b0;}['getLaterVisibleRevision'](_0x49285d){const [,_0x85656]=this['getRevisionsIterator'](_0x49285d,{'direction':'later'});return _0x85656;}['getRevisionsInDiff'](_0x3a6d91){const _0x1427b0=[];for(const _0x19614c of this['getRevisionsIterator'](_0x3a6d91['newRevisionId']))if(_0x1427b0['push'](_0x19614c),_0x19614c['id']===_0x3a6d91['oldRevisionId'])break;return _0x1427b0;}*['getRevisionsIterator'](_0x4f2df3,{direction:_0x3f4ff2='earlier',filter:_0x2c826a=()=>!0x0}={}){const _0x5485e3='earlier'===_0x3f4ff2?0x1:-0x1;let _0x36707d=this['_revisions']['get'](_0x4f2df3),_0x4a678f=this['getIndex'](_0x36707d);for(yield _0x36707d;_0x36707d;){if(_0x4a678f+=_0x5485e3,_0x36707d=this['getRevision'](_0x4a678f),!_0x36707d)return;_0x2c826a(_0x36707d)&&(yield _0x36707d);}}}function R(_0x2b4e45,_0x449340,_0x29adf7){const t=_0x2b4e45['t'];switch(_0x449340){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'},_0x29adf7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x29adf7);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 C={'c':_0x177dd9,'a':_0x11edbf,'e':_0x4cc4c1,'r':_0x19c81d,'u':_0x3afc04};class l extends _0x1be25d{['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[_0x5dae67,j,_0x3f2b91];}constructor(_0x85206f){super(_0x85206f),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x9c9e82=_0xe7cf66();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x9c9e82},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 _0x30f34=this['repository']['getRevision'](0x0),_0x4f1dd3=_0x30f34&&null===_0x30f34['creator']?_0x30f34:null;if(this['_continueCurrentRevision']=!!_0x4f1dd3&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x448f9b=this['_source']['getCurrentRevisionId'](),_0x3e4018=this['repository']['getRevision'](_0x448f9b);if(_0x3e4018)this['_startingVersion']=_0x3e4018['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x54b838=this['_source']['history']['_operations']['find'](_0x32a85d=>!_0x32a85d['_isInit']),_0x1acb79=_0x54b838?_0x54b838['baseVersion']:this['_source']['history']['version'];_0x30f34?(_0x30f34['toVersion']<_0x1acb79&&_0x30f34['_update']({'toVersion':_0x1acb79}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4f1dd3['id'],this['_startingVersion']=_0x4f1dd3['fromVersion']):(this['_startingVersion']=_0x30f34['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1acb79,this['_continueCurrentRevision']=!0x1);}}else _0x4f1dd3&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4f1dd3['toVersion'],this['editor']['model']['document']['history']['version']),_0x4f1dd3['fromVersion']===_0x4f1dd3['toVersion']?(0x0!==_0x4f1dd3['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4f1dd3['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4f1dd3['id'],this['_startingVersion']=_0x4f1dd3['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',_0x4155b5=>!_0x4155b5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2a041e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29f466;for(const _0x29bd2b in _0x2a041e){const _0xc948ce=_0x29bd2b,_0x367480=_0x2a041e[_0xc948ce];if('revisionHistoryLicenseKeyValid'==_0x367480||'revisionHistoryLicenseKeyInvalid'==_0x367480||'revisionHistoryLicenseKeyExpired'==_0x367480||'revisionHistoryLicenseKeyDomainLimit'==_0x367480||'revisionHistoryLicenseKeyNotAllowed'==_0x367480||'revisionHistoryLicenseKeyEvaluationLimit'==_0x367480||'revisionHistoryLicenseKeyTrialLimit'==_0x367480||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x367480||'revisionHistoryLicenseKeyUsageLimit'==_0x367480){delete _0x2a041e[_0xc948ce],_0x29f466=_0x367480,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x29f466&&_0x2a041e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x29f466&&_0x2a041e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x29f466&&_0x2a041e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x29f466&&_0x2a041e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x29f466&&_0x2a041e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x29f466&&_0x2a041e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x29f466&&_0x2a041e['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x29f466&&_0x2a041e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3c56f9=this['repository']['getRevision'](0x0),_0xd340d4=await this['getRevisionDocumentData'](_0x3c56f9),_0x29d846=await this['getRevisionRootsAttributes'](_0x3c56f9);this['_replaceEditorDataWithRevisionData'](_0xd340d4,_0x29d846);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x394a52){this['_source']=_0x394a52;}async['update'](){const _0x408288=await this['_source']['getLatestVersion']();if(_0x408288>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2a51b8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x408288});_0x2a51b8['authors']=_0x2a51b8['authorsIds']['map'](_0x44cbf8=>this['editor']['plugins']['get']('Users')['getUser'](_0x44cbf8)),this['currentRevision']['_update'](_0x2a51b8);}}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'](_0x8e4116={},_0x23c459=null){const _0x2743c7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x23c459>this['currentRevision']['toVersion']&&(_0x23c459=null),null===_0x23c459&&(_0x23c459=await this['_source']['getLatestVersion']());const _0xc55200=this['_getFromVersion'](_0x23c459),_0x381dfe=this['buildRevisionData']({'from':_0xc55200,'to':_0x23c459});if(this['currentRevision']['toVersion']<_0x23c459){const _0x1ae799=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x23c459,'to':_0x23c459});_0x1ae799['authors']=[],_0x1ae799['authorsIds']=[],_0x1ae799['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1ae799,!0x0),delete _0x1ae799['authors'],_0x2743c7['push'](_0x1ae799);}_0x8e4116['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x8e4116['name']=_0x8e4116['name']||null,_0x8e4116['id']=_0x8e4116['id']||_0xe7cf66(),_0x8e4116={..._0x8e4116,..._0x381dfe};const _0x2c2b3c=this['addRevisionData'](_0x8e4116);_0x2743c7['push'](_0x8e4116);const _0x17f5c1=this['repository']['getIndex'](_0x2c2b3c);if(0x0!==_0x17f5c1){const _0x28dd53=this['repository']['getRevision'](_0x17f5c1-0x1);if(_0x28dd53['fromVersion']!==_0x23c459){const _0x1247ab=this['_revisionDataBuilder']['getData'](_0x23c459,_0x28dd53['toVersion']),_0x2aff65={'id':_0x28dd53['id'],'diffData':_0x1247ab['diffData'],'authorsIds':_0x1247ab['authorsIds'],'authors':_0x1247ab['authorsIds']['map'](_0x3cde8f=>this['editor']['plugins']['get']('Users')['getUser'](_0x3cde8f)),'fromVersion':_0x23c459};_0x28dd53===this['currentRevision']&&(_0x2aff65['createdAt']=new Date(_0x8e4116['createdAt']['getTime']()+0xa)),_0x28dd53['_update'](_0x2aff65,!0x0),delete _0x2aff65['authors'],_0x2743c7['push'](_0x2aff65);}}if(this['adapter']){for(const _0x594f1c of _0x2743c7)this['_bufferUpdate'](_0x594f1c['id'],_0x594f1c,!0x0);this['sendBufferedUpdates']();}return _0x2c2b3c;}['addRevisionData'](_0x3cb15a){const _0x540b89=this['repository']['createRevision'](_0x3cb15a);return this['adapter']&&_0x540b89['on']('_update',(_0x23f740,_0x50932a,_0x4a65bb)=>{_0x4a65bb||(this['_bufferUpdate'](_0x50932a['id'],_0x50932a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x540b89,this['_findInsertionIndex'](_0x540b89)),_0x540b89;}async['getRevisionDocumentData'](_0x12b952){await this['_loadRevisionData'](_0x12b952);const _0x623de4={};for(const _0x50e71f in _0x12b952['diffData']){if(_0x12b952['diffData'][_0x50e71f]['attachChange']&&!_0x12b952['diffData'][_0x50e71f]['attachChange']['isAttached'])continue;const _0x37357c=this['_removeRevisionMarkers'](JSON['parse'](_0x12b952['diffData'][_0x50e71f]['insertions'])),_0x32d143=this['editor']['editing']['view']['document'],_0xb1d444=new _0x274950(_0x32d143,_0x37357c['map'](_0xe0a96d=>V(_0xe0a96d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x623de4[_0x50e71f]=this['editor']['data']['processor']['toData'](_0xb1d444),this['editor']['data']['processor']['useFillerType']('default');}return _0x623de4;}async['getRevisionRootsAttributes'](_0x41504f){await this['_loadRevisionData'](_0x41504f);const _0x3272dc={};for(const _0x4b3334 in _0x41504f['diffData'])_0x41504f['diffData'][_0x4b3334]['attachChange']&&!_0x41504f['diffData'][_0x4b3334]['attachChange']['isAttached']||(_0x3272dc[_0x4b3334]=_0x41504f['diffData'][_0x4b3334]['attributesAfter']||{});return _0x3272dc;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1477e4=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1d7a71=0x0;_0x1d7a71<_0x1477e4['length'];_0x1d7a71++){const _0x37af4b=_0x1477e4[_0x1d7a71];let _0x3070dd=!0x1;for(const _0x2c8d2d of Object['keys'](_0x37af4b))void 0x0===_0x37af4b[_0x2c8d2d]?delete _0x37af4b[_0x2c8d2d]:'id'!==_0x2c8d2d&&(_0x3070dd=!0x0);_0x3070dd||(_0x1477e4[_0x1d7a71]=null);}if(_0x1477e4=_0x1477e4['filter'](_0x4dede8=>null!==_0x4dede8),!_0x1477e4['length'])return;for(let _0x345726=0x0;_0x345726<_0x1477e4['length'];_0x345726++){const _0x5ea30a=_0x1477e4[_0x345726];void 0x0!==_0x5ea30a['fromVersion']&&void 0x0===_0x5ea30a['toVersion']&&(_0x5ea30a['toVersion']=this['repository']['getRevision'](_0x5ea30a['id'])['toVersion']),void 0x0!==_0x5ea30a['toVersion']&&void 0x0===_0x5ea30a['fromVersion']&&(_0x5ea30a['fromVersion']=this['repository']['getRevision'](_0x5ea30a['id'])['fromVersion']);}const _0x10c6a9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1477e4,_0x10c6a9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x382e88=>{if(_0x382e88){for(const _0x5c3b41 of _0x382e88)this['setRevisionData']({'id':_0x5c3b41['id'],'createdAt':_0x5c3b41['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x11be55,_0x136540){let _0xfec5fa=this['editor']['config']['get']('initialData'),_0x3c9c37=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xfec5fa){_0xfec5fa={};for(const _0x513ca3 of this['editor']['model']['document']['getRootNames']())_0xfec5fa[_0x513ca3]='';}if('string'==typeof _0xfec5fa&&(_0xfec5fa={'main':_0xfec5fa}),void 0x0===_0x3c9c37){_0x3c9c37={};for(const _0x1a8cb5 of this['editor']['model']['document']['getRootNames']())_0x3c9c37[_0x1a8cb5]={};}let _0x4a5c23=!0x1;const _0x335b8c=Object['keys'](_0xfec5fa),_0x417f4b=Object['keys'](_0x11be55);for(const _0xef1cd9 of _0x335b8c){if(_0xfec5fa[_0xef1cd9]!==_0x11be55[_0xef1cd9]&&''!==_0xfec5fa[_0xef1cd9]['trim']()){_0x4a5c23=!0x0;break;}if(!_0x344dca(_0x3c9c37[_0xef1cd9],_0x136540[_0xef1cd9])&&Object['keys'](_0x3c9c37[_0xef1cd9])['length']>0x0){_0x4a5c23=!0x0;break;}}_0x4a5c23||(_0x4a5c23=_0x417f4b['some'](_0x41cf69=>!this['editor']['model']['document']['getRoot'](_0x41cf69))),_0x4a5c23&&_0x4adffa('editor-initial-data-replaced-with-revision-data',{'editorData':_0xfec5fa,'editorRootsAttributes':_0x3c9c37,'revisionData':_0x11be55,'revisionRootsAttributes':_0x136540}),this['editor']['config']['set']('initialData',_0x11be55),this['editor']['config']['set']('rootsAttributes',_0x136540);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x893bac=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x893bac['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x40e6ce){const _0x405ebe=this['repository']['getRevisions']();_0x405ebe['reverse']();let _0x1a9013=0x0;for(;_0x1a9013<_0x405ebe['length'];){const _0x537ce4=_0x405ebe[_0x1a9013];if(_0x537ce4===this['currentRevision']){_0x1a9013++;continue;}if(_0x537ce4['id']===this['_initialRevisionId'])break;const _0x20b664=_0x40e6ce['toVersion']-_0x537ce4['toVersion']||_0x40e6ce['fromVersion']-_0x537ce4['fromVersion'];if(_0x20b664>0x0)break;if(_0x20b664<0x0)_0x1a9013++;else{if(!_0x40e6ce['creator']&&_0x537ce4['creator'])break;if(_0x537ce4['creator']||!_0x40e6ce['creator']){if(_0x40e6ce['createdAt']>_0x537ce4['createdAt'])break;_0x1a9013++;}else _0x1a9013++;}}return _0x1a9013;}['setRevisionData'](_0x1c4a1c){const _0x90c872=this['repository']['getRevision'](_0x1c4a1c['id']);if(_0x1c4a1c['createdAt']&&(_0x1c4a1c['createdAt']=new Date(_0x1c4a1c['createdAt'])),_0x1c4a1c['authorsIds']){const _0x52d1b8=this['editor']['plugins']['get']('Users');_0x1c4a1c['authors']=_0x1c4a1c['authorsIds']['map'](_0x3a4eb4=>_0x52d1b8['getUser'](_0x3a4eb4));}_0x90c872['_update'](_0x1c4a1c,!0x0);}['buildRevisionData']({revision:_0x4c3afc=null,from:_0x3863db=null,to:_0x316612=null}){_0x3863db=null!==_0x3863db?_0x3863db:_0x4c3afc['fromVersion'],_0x316612=null!==_0x316612?_0x316612:_0x4c3afc['toVersion'];const _0x1a430e=this['_revisionDataBuilder']['getData'](_0x3863db,_0x316612),_0x4e0a5f={'diffData':_0x1a430e['diffData'],'authorsIds':_0x1a430e['authorsIds'],'fromVersion':_0x3863db,'toVersion':_0x316612};if(!_0x4c3afc||_0x316612!==_0x4c3afc['toVersion']){const _0x4d16b4=_0x316612-0x1,_0x53ccb5=this['_source']['history']['getOperation'](_0x4d16b4);_0x4e0a5f['createdAt']=_0x53ccb5&&_0x53ccb5['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3863db===this['_loadedStateData']['fromVersion']){for(const _0x15f325 of this['_loadedStateData']['authors'])_0x4e0a5f['authorsIds']['includes'](_0x15f325['id'])||_0x4e0a5f['authorsIds']['push'](_0x15f325['id']);}return _0x4e0a5f;}['_loadRevisionData'](_0x1a315b){if(!_0x1a315b||_0x1a315b['diffData'])return Promise['resolve']();{const _0x37cd05=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x37cd05,'revisionId':_0x1a315b['id']})['then'](_0x82f71f=>{_0x1a315b['diffData']=_0x82f71f['diffData'];});}}['_bufferUpdate'](_0x3c5562,_0xf39539,_0x334b24){if(this['_bufferedUpdates']['has'](_0x3c5562)){const _0x2d5206=this['_bufferedUpdates']['get'](_0x3c5562);_0xf39539=_0x334b24?{..._0x2d5206,..._0xf39539}:{..._0xf39539,..._0x2d5206};}this['_bufferedUpdates']['set'](_0x3c5562,_0xf39539);}['_getFromVersion'](_0x395434){const _0x358ad9=this['repository']['getRevisions']();_0x358ad9['reverse'](),_0x358ad9['shift']();const _0x585b1c=_0x358ad9['find'](_0x31668e=>_0x31668e['toVersion']<=_0x395434)['toVersion'];return _0x585b1c<this['_startingVersion']?this['_startingVersion']:_0x585b1c;}['_createInitialRevision'](_0x189307){const _0x67c948=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x67c948)this['_initialRevisionId']=_0x67c948['id'];else{const _0x525d60=!this['editor']['model']['document']['roots']['find'](_0x4bf428=>this['editor']['model']['hasContent'](_0x4bf428)),_0x317e35=this['editor']['plugins']['get']('Users')['me']['id'],_0x40edb3=R(this['editor']['locale'],_0x525d60?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x189307,'to':_0x189307,'id':this['_initialRevisionId'],'name':_0x40edb3,'creatorId':_0x317e35});}}['_createCurrentRevision'](_0x2a1665){const _0x378222=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x378222),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2a1665,'to':_0x2a1665,'id':_0x378222,'name':'','creatorId':null}));}['_makeRevision']({name:_0x20ba54,from:_0x2fed60,to:_0x116ff6,creatorId:_0x1fc5fb,id:_0x46dd0a}){const _0x538bce=this['buildRevisionData']({'from':_0x2fed60,'to':_0x116ff6});_0x538bce['name']=_0x20ba54,_0x538bce['creatorId']=_0x1fc5fb,_0x538bce['id']=_0x46dd0a;const _0x465c1=this['addRevisionData'](_0x538bce);return this['adapter']&&this['_bufferUpdate'](_0x538bce['id'],_0x538bce,!0x0),_0x465c1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x35a68e){return(_0x35a68e=_0x35a68e['filter'](_0x363539=>!_0x363539['name']||'revision-start'!==_0x363539['name']&&'revision-end'!==_0x363539['name']))['forEach'](_0x5d9106=>{'string'!=typeof _0x5d9106&&(_0x5d9106['children']=this['_removeRevisionMarkers'](_0x5d9106['children']),_0x5d9106['attributes']=_0x5d9106['attributes']['filter'](_0x4c26d9=>!_0x4c26d9[0x0]['startsWith']('data-revision-')));}),_0x35a68e;}}function V(_0x135427,_0x4500b8){const _0x3e7ba5=_0x4500b8['editing']['view']['document'];if('string'==typeof _0x135427)return new _0x43567a(_0x3e7ba5,_0x135427);{const _0x4dcc92=_0x135427['children']['map'](_0xb5f1a2=>V(_0xb5f1a2,_0x4500b8));return new(C[_0x135427['type']]||_0x3d18c0)(_0x3e7ba5,_0x135427['name'],_0x135427['attributes'],_0x4dcc92);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1748df){this['editor']=_0x1748df,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'](_0x5a9895){this['source']=_0x5a9895;const _0x545282=new Map(),_0x5d52d7=new Map(),_0x316983=this['editor']['model']['document']['roots']['map'](_0x214fb0=>_0x214fb0['rootName']);for(const _0x2c98ae of _0x316983){const _0x50601b=this['editor']['model']['document']['getRoot'](_0x2c98ae),_0x1a927c=F(_0x50601b);_0x545282['set'](_0x2c98ae,_0x1a927c),_0x5d52d7['set'](_0x2c98ae,Object['fromEntries'](_0x50601b['getAttributes']()));}const _0xc666a1=Array['from'](this['editor']['model']['markers'])['map'](_0x2ff24f=>[_0x2ff24f['name'],_0x2ff24f['getRange']()]),_0x572356=this['source']['version'];this['_saveMetaData'](_0x572356,_0x545282,_0xc666a1,_0x5d52d7),this['_startingRevisionId']=this['_revisionId'];const _0x1495f3=new Map(),_0x473637=new Map();for(const _0x1d3ffa of _0x316983){const _0x47ac4c=B(_0x1d3ffa);_0x1495f3['set'](_0x1d3ffa,_0x47ac4c),_0x473637['set'](_0x1d3ffa,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1495f3,[],_0x473637);}['getData'](_0x468b72,_0x44a03e){if(this['_lastFrom']===_0x468b72&&this['_lastTo']<=_0x44a03e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x44a03e,!0x0);else{if(!this['_savedMetaData']['has'](_0x468b72)){const _0x18d14a=this['_getPreviousFrom'](_0x468b72);this['_calculateMetaData'](_0x18d14a,_0x468b72,!0x1);}this['_calculateMetaData'](_0x468b72,_0x44a03e,!0x0);}return this['_lastFrom']=_0x468b72,this['_lastTo']=_0x44a03e,this['_getState']();}['loadState'](_0x43db2a){this['_reset'](),this['_lastFrom']=_0x43db2a['fromVersion'],this['_lastTo']=_0x43db2a['toVersion'];for(const _0x40cee7 in _0x43db2a['diffData']){const _0x1f3eb6=_0x43db2a['diffData'][_0x40cee7]['attachChange'],_0x2bd051=_0x31f663(_0x43db2a['diffData'][_0x40cee7]['attributesBefore'])||{},_0x43cfb4=this['_makeModelFromViewString'](_0x43db2a['diffData'][_0x40cee7]['deletions']);_0x43cfb4['rootName']=_0x40cee7,_0x43cfb4['_isAttached']=!_0x1f3eb6||!_0x1f3eb6['isAttached'],_0x43cfb4['isAttached']=()=>_0x43cfb4['_isAttached'],this['_baseRoots']['set'](_0x40cee7,_0x43cfb4),this['_baseRootsAttributes']['set'](_0x40cee7,_0x2bd051),_0x1f3eb6&&this['_touchedRoots']['set'](_0x40cee7,_0x1f3eb6);const _0x25b3fc=this['_makeIdsRoot'](_0x43cfb4);this['_baseIdsRoots']['set'](_0x40cee7,_0x25b3fc);for(const [_0x104c28,_0x34e82e]of _0x43cfb4['markers']){if(!_0x104c28['startsWith']('revision:'))continue;const _0x16c1a6=_0x104c28['split'](':')[0x2];for(const _0x10eb70 of _0x34e82e['getWalker']({'singleCharacters':!0x0})){const _0x193e70=this['_getVidAttributeName'](_0x10eb70),_0x4098f7='elementEnd'==_0x10eb70['type']?_0x10eb70['previousPosition']['path']['slice'](0x0,-0x1):_0x10eb70['previousPosition']['path'],_0x1b136d=_0x25b3fc['getNodeByPath'](_0x4098f7)['getAttribute'](_0x193e70);this['_touched']['set'](_0x1b136d,{'userId':_0x16c1a6});}}}this['_startingRevisionId']=this['_revisionId'];const _0x42f0ee=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5b6528=>!this['_touched']['has'](_0x5b6528));let _0x575fb7=0x0;const _0x325c5e=new Map();for(const _0x1d6476 in _0x43db2a['diffData']){const _0x164c6a=_0x43db2a['diffData'][_0x1d6476]['attachChange'],_0x453804=_0x31f663(_0x43db2a['diffData'][_0x1d6476]['attributesAfter'])||{},_0x1bf317=this['_makeModelFromViewString'](_0x43db2a['diffData'][_0x1d6476]['insertions']);_0x1bf317['rootName']=_0x1d6476,_0x1bf317['_isAttached']=!_0x164c6a||_0x164c6a['isAttached'],_0x1bf317['isAttached']=()=>_0x1bf317['_isAttached'],this['_diffRoots']['set'](_0x1d6476,_0x1bf317),this['_diffRootsAttributes']['set'](_0x1d6476,_0x453804);const _0x576a33=this['_makeIdsRoot'](_0x1bf317,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1d6476,_0x576a33),_0x325c5e['set'](_0x1d6476,_0x1bf317['isAttached']()?_0x453804:{});for(const [_0x401a2b,_0x71e775]of _0x1bf317['markers']){if(!_0x401a2b['startsWith']('revision:'))continue;const _0x4e29a8=_0x401a2b['split'](':')[0x2];for(const _0x38152a of _0x71e775['getWalker']({'singleCharacters':!0x0})){const _0x1db2a5=this['_getVidAttributeName'](_0x38152a),_0x59cae4=this['_revisionId']++,_0x5a828a='elementEnd'==_0x38152a['type']?_0x38152a['previousPosition']['path']['slice'](0x0,-0x1):_0x38152a['previousPosition']['path'];_0x576a33['getNodeByPath'](_0x5a828a)['_setAttribute'](_0x1db2a5,_0x59cae4),this['_touched']['set'](_0x59cae4,{'userId':_0x4e29a8});}}for(const _0xbec258 of this['editor']['model']['createRangeIn'](_0x1bf317)['getWalker']({'singleCharacters':!0x0})){const _0x5233d6=this['_getVidAttributeName'](_0xbec258),_0x2613d4='elementEnd'==_0xbec258['type']?_0xbec258['previousPosition']['path']['slice'](0x0,-0x1):_0xbec258['previousPosition']['path'],_0x50cd0c=_0x576a33['getNodeByPath'](_0x2613d4);_0x50cd0c['getAttribute'](_0x5233d6)>0x0||_0x50cd0c['_setAttribute'](_0x5233d6,_0x42f0ee[_0x575fb7++]);}for(const [_0x33189d,_0x66ed00]of _0x1bf317['markers'])_0x33189d['startsWith']('revision:')||this['_markers']['set'](_0x33189d,_0x66ed00);}const _0x407ca2=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x407ca2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x407ca2,0x1));const _0x2bfeb2=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2bfeb2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2bfeb2,0x1));const _0x41f5c3=Array['from'](this['_diffRoots'])['map'](([_0x412794,_0x3b796c])=>[_0x412794,F(_0x3b796c)]);this['_saveMetaData'](this['_lastTo'],_0x41f5c3,this['_markers'],_0x325c5e);}['_makeModelFromViewString'](_0x1aadb6){const _0xcd51b9=JSON['parse'](_0x1aadb6),_0x461987=this['editor']['editing']['view']['document'],_0x491266=new _0x274950(_0x461987,_0xcd51b9['map'](_0x17bde9=>V(_0x17bde9,this['editor'])));return this['editor']['data']['toModel'](_0x491266);}['_saveMetaData'](_0x241dcc,_0x336ef9,_0xdb35b5,_0x209879){const _0x1df87d=new Map(_0x336ef9),_0x1a4cf3=new Map(_0x31f663(_0x209879)),_0x2cf4eb=new Map();for(const [_0x76330d,_0xcaf8ed]of _0xdb35b5)_0x2cf4eb['set'](_0x76330d,{'start':_0xcaf8ed['start']['clone'](),'end':_0xcaf8ed['end']['clone'](),'rootName':_0xcaf8ed['root']['rootName']});this['_savedMetaData']['set'](_0x241dcc,{'roots':_0x1df87d,'markers':_0x2cf4eb,'rootsAttributes':_0x1a4cf3});}['_removeMetaData'](_0x1e56da){this['_savedMetaData']['delete'](_0x1e56da);}['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'](_0x24ea61,_0x118097=null){let _0x3fcec8=null;_0x24ea61['is']('documentFragment')||(_0x3fcec8=new ft(_0x24ea61['name'],{'vid_start':null===_0x118097?this['_revisionId']++:_0x118097++}));const _0x5bce04=[];for(const _0x45ed1b of _0x24ea61['getChildren']())if(_0x45ed1b['is']('element')){_0x5bce04['push'](this['_makeIdsRoot'](_0x45ed1b,_0x118097));const _0xc3e5a=_0x5bce04[_0x5bce04['length']-0x1];null!==_0x118097&&(_0x118097=_0xc3e5a['is']('element','$text')?_0xc3e5a['getAttribute']('vid')+0x1:_0xc3e5a['getAttribute']('vid_end')+0x1);}else{for(let _0x1e6820=0x0;_0x1e6820<_0x45ed1b['offsetSize'];_0x1e6820++)_0x5bce04['push'](new ft('$text',{'vid':null===_0x118097?this['_revisionId']++:_0x118097++}));}if(_0x24ea61['is']('documentFragment')){const _0x1f3cbb=B(_0x24ea61['rootName']);return _0x1f3cbb['_insertChild'](0x0,_0x5bce04),_0x1f3cbb;}return _0x3fcec8['_setAttribute']('vid_end',null===_0x118097?this['_revisionId']++:_0x118097++),_0x3fcec8['_insertChild'](0x0,_0x5bce04),_0x3fcec8;}['_calculateMetaData'](_0x5eacd3,_0x768b83,_0x3ae235){this['_reset']();const {roots:_0x1ac0b6,markers:_0x3f4896,rootsAttributes:_0x3b0470}=this['_savedMetaData']['get'](_0x5eacd3);this['_baseRoots']=new Map(_0x1ac0b6),this['_baseRootsAttributes']=new Map(_0x31f663(_0x3b0470));for(const [_0x1c509c,_0x453764]of this['_baseRoots'])if('$graveyard'!==_0x1c509c&&(this['_diffRoots']['set'](_0x1c509c,F(_0x453764)),this['_diffRootsAttributes']=new Map(_0x31f663(_0x3b0470)),_0x3ae235)){const _0x27e796=this['_revisionId'];this['_idsRoots']['set'](_0x1c509c,this['_makeIdsRoot'](_0x453764)),this['_baseIdsRoots']['set'](_0x1c509c,this['_makeIdsRoot'](_0x453764,_0x27e796));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3ae235&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4ac316,_0x3c5216]of _0x3f4896){const _0x4d0634=this['_baseRoots']['get'](_0x3c5216['rootName']),_0x578b5b=this['_diffRoots']['get'](_0x3c5216['rootName']),_0x287b92=new vt(this['_fixPosition'](_0x3c5216['start'],_0x4d0634),this['_fixPosition'](_0x3c5216['end'],_0x4d0634)),_0x48d884=this['_fixRange'](_0x287b92,_0x578b5b);_0x4d0634['markers']['set'](_0x4ac316,_0x287b92),this['_markers']['set'](_0x4ac316,_0x48d884);}this['_applyOperations'](_0x5eacd3,_0x768b83,_0x3ae235);}['_applyOperations'](_0x50bf39,_0x50d459,_0x3053c3){for(const _0x166918 of this['source']['getOperations'](_0x50bf39,_0x50d459))this['_handleOperation'](_0x166918,_0x3053c3);for(const _0x1455c3 of this['_diffRoots']['values']())_0x1455c3['markers']['clear']();for(const [_0x516524,_0x3a06be]of this['_markers']){this['_diffRoots']['get'](_0x3a06be['root']['rootName'])['markers']['set'](_0x516524,_0x3a06be['clone']());}const _0x5479cd=new Map(),_0x478f78=new Map();for(const [_0x3c805a,_0x3a8d51]of this['_diffRoots'])_0x5479cd['set'](_0x3c805a,F(_0x3a8d51)),_0x478f78['set'](_0x3c805a,this['_diffRootsAttributes']['get'](_0x3c805a));this['_saveMetaData'](_0x50d459,_0x5479cd,this['_markers'],_0x478f78);}['_getPreviousFrom'](_0x18c793){const _0xb8035a=Array['from'](this['_savedMetaData']['keys']());_0xb8035a['sort']((_0xf19111,_0x31359c)=>_0xf19111-_0x31359c),_0xb8035a['reverse']();for(const _0x5741fb of _0xb8035a)if(_0x5741fb<_0x18c793)return _0x5741fb;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xefb982,_0x2886c9){const _0xc4823d=Array['from'](_0x2886c9['markers'])['map'](([_0x26b7a2,_0x5e21af])=>[_0x26b7a2,this['_fixRange'](_0x5e21af,_0xefb982)]);_0xefb982['markers']=new Map(_0xc4823d);}['_transformMarkers'](_0x3ad22d){for(const _0x2da385 of this['_markers']['values']()){const _0x51a5c7=_0x2da385['getTransformedByOperation'](_0x3ad22d),_0x37f1fd=vt['_createFromRanges'](_0x51a5c7);_0x2da385['start']=_0x37f1fd['start'],_0x2da385['end']=_0x37f1fd['end'];}}['_handleOperation'](_0xd14f88,_0x522dcd){if('addRoot'!=_0xd14f88['type']&&'detachRoot'!=_0xd14f88['type']){if('insert'==_0xd14f88['type']){const _0x14ec0f=_0xd14f88['position']['root']['rootName'];this['_diffRoots']['has'](_0x14ec0f)||(this['_diffRoots']['set'](_0x14ec0f,B(_0x14ec0f,!0x0)),this['_diffRootsAttributes']['set'](_0x14ec0f,{}),_0x522dcd&&this['_idsRoots']['set'](_0x14ec0f,B(_0x14ec0f,!0x0)));}else{if('addRootAttribute'==_0xd14f88['type']||'removeRootAttribute'==_0xd14f88['type']||'changeRootAttribute'==_0xd14f88['type'])return void this['_handleRootAttributeOperation'](_0xd14f88);'marker'==_0xd14f88['type']&&this['_handleMarkerOperation'](_0xd14f88);}if('marker'!==_0xd14f88['type']){const _0x2c7461=this['_cloneOperation'](_0xd14f88,this['_diffRoots']);_0x2c7461['_execute'](),this['_transformMarkers'](_0x2c7461);}if(_0x522dcd)switch(_0xd14f88['type']){case'insert':this['_handleInsertOperation'](_0xd14f88);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xd14f88);break;case'merge':this['_handleMergeOperation'](_0xd14f88);break;case'split':this['_handleSplitOperation'](_0xd14f88);}}else this['_handleRootOperation'](_0xd14f88,_0x522dcd);}['_cloneOperation'](_0x7dcd7d,_0x9aed71){const _0x59a435=_0x7dcd7d['clone']();return _0x59a435['_authorId']=_0x7dcd7d['_authorId'],this['_fixOperation'](_0x59a435,_0x9aed71),_0x59a435;}['_getBaseVids'](_0x4d3490){return _0x4d3490['map'](_0x44f221=>{const _0x202ee3=this['_getVidAttributeName'](_0x44f221);return Number(_0x44f221['item']['getAttribute'](_0x202ee3));});}['_generateTape'](_0x4fc8b9,_0xa371b){if(_0x4fc8b9['is']('element','$text'))_0xa371b['push']({'item':_0x4fc8b9,'type':'text'});else{_0x4fc8b9['is']('element')&&_0xa371b['push']({'item':_0x4fc8b9,'type':'elementStart'});for(const _0x3a2a00 of _0x4fc8b9['getChildren']())this['_generateTape'](_0x3a2a00,_0xa371b);_0x4fc8b9['is']('element')&&_0xa371b['push']({'item':_0x4fc8b9,'type':'elementEnd'});}return _0xa371b;}['_getState'](){const _0x2fcdda=new Map(this['_touched']),_0x2379e3=new Map(_0x2fcdda),_0x55a87f=new Map(),_0x1a3bb2={'insertions':{},'deletions':{}},_0x29de6a={'insertions':{},'deletions':{}},_0x19f8f9=new Map(),_0x126293=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x126293['delete']('$graveyard');for(const _0x217d26 of _0x126293){const _0x48e7de=this['_diffRoots']['get'](_0x217d26)||B(_0x217d26,!0x1),_0x277c2a=this['_baseRoots']['get'](_0x217d26)||B(_0x217d26,!0x1);_0x48e7de['isAttached']()||_0x277c2a['isAttached']()?(_0x1a3bb2['insertions'][_0x217d26]=F(_0x48e7de),_0x1a3bb2['deletions'][_0x217d26]=F(_0x277c2a),this['_copyMarkers'](_0x1a3bb2['deletions'][_0x217d26],_0x277c2a),this['_copyMarkers'](_0x1a3bb2['insertions'][_0x217d26],_0x48e7de),_0x29de6a['insertions'][_0x217d26]=this['_generateTape'](this['_idsRoots']['get'](_0x217d26),[]),_0x29de6a['deletions'][_0x217d26]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x217d26)||B(_0x217d26,!0x1),[])):_0x126293['delete'](_0x217d26);}for(const _0x1bf89d of _0x126293){const _0x69ae73=_0x29de6a['insertions'][_0x1bf89d];for(const _0x2e3f8a of _0x69ae73){const _0x26de02=this['_getVidAttributeName'](_0x2e3f8a),_0x16da55=_0x2e3f8a['item']['getAttribute'](_0x26de02);_0x2379e3['delete'](_0x16da55),_0x16da55>=this['_startingRevisionId']&&_0x55a87f['set'](_0x16da55,_0x2fcdda['get'](_0x16da55));}}for(const _0x1ca215 of _0x126293){const _0x47e82a=_0x29de6a['insertions'][_0x1ca215],_0x9dd95f=this['_getBaseVids'](_0x29de6a['deletions'][_0x1ca215]);let _0x5d4aa0=0x0;for(const _0x2c038b of _0x47e82a){const _0x1a44fb=this['_getVidAttributeName'](_0x2c038b),_0xf67acd=_0x2c038b['item']['getAttribute'](_0x1a44fb);if(!_0x55a87f['has'](_0xf67acd)&&!_0x19f8f9['has'](_0xf67acd)){if(_0x2379e3['has'](_0xf67acd))_0x5d4aa0++;else{if(_0xf67acd!=_0x9dd95f[_0x5d4aa0]){const _0x3bad75=_0x2fcdda['get'](_0xf67acd)||_0x2fcdda['get'](_0x9dd95f[_0x5d4aa0]);for(;_0xf67acd!=_0x9dd95f[_0x5d4aa0];)_0x2379e3['has'](_0x9dd95f[_0x5d4aa0])||(_0x19f8f9['set'](_0x9dd95f[_0x5d4aa0],_0x3bad75),_0x2fcdda['set'](_0x9dd95f[_0x5d4aa0],_0x3bad75)),_0x5d4aa0++;}_0x5d4aa0++;}}}}for(const _0x9e2a74 of _0x126293){const _0x4eb677=_0x29de6a['insertions'][_0x9e2a74];for(const _0xd51be0 of _0x4eb677){const _0x3124a1=this['_getVidAttributeName'](_0xd51be0),_0xf88fd4=_0xd51be0['item']['getAttribute'](_0x3124a1);if(_0x19f8f9['has'](_0xf88fd4)){const _0x2d7030=_0x19f8f9['get'](_0xf88fd4);_0x2379e3['has'](_0xf88fd4)||_0x2379e3['set'](_0xf88fd4,{..._0x2d7030}),_0x55a87f['set'](_0xf88fd4,{..._0x2d7030});}}}for(const _0xaea38b of _0x2379e3['keys']())_0xaea38b>=this['_startingRevisionId']&&_0x2379e3['delete'](_0xaea38b);const _0x3f6951=new Map();for(const _0x171976 of _0x126293){let _0x4192f7=_0x29de6a['insertions'][_0x171976];for(const _0x44b6ac of _0x4192f7)if(_0x44b6ac['item']['is']('element','tableCell')){const _0x56bf32=this['_getVidAttributeName'](_0x44b6ac),_0x5cbd14=_0x44b6ac['item']['getAttribute'](_0x56bf32);if(_0x55a87f['has'](_0x5cbd14)){const _0x22de02=_0x44b6ac['item']['parent']['parent']['getAttribute']('vid_start'),_0x516afa=_0x3f6951['get'](_0x22de02)||new Set();_0x516afa['add'](_0x55a87f['get'](_0x5cbd14)['userId']),_0x3f6951['set'](_0x22de02,_0x516afa);}}_0x4192f7=_0x29de6a['deletions'][_0x171976];for(const _0x68a9ac of _0x4192f7)if(_0x68a9ac['item']['is']('element','tableCell')){const _0x59baf1=this['_getVidAttributeName'](_0x68a9ac),_0x33dfb8=_0x68a9ac['item']['getAttribute'](_0x59baf1);if(_0x2379e3['has'](_0x33dfb8)){const _0x1f284c=_0x68a9ac['item']['parent']['parent']['getAttribute']('vid_start'),_0x416145=_0x3f6951['get'](_0x1f284c)||new Set();_0x416145['add'](_0x2379e3['get'](_0x33dfb8)['userId']),_0x3f6951['set'](_0x1f284c,_0x416145);}}for(const _0x40c413 of _0x3f6951['keys']())(_0x55a87f['has'](_0x40c413)||_0x2379e3['has'](_0x40c413))&&_0x3f6951['delete'](_0x40c413);}for(const _0x1fe1ad of _0x126293){const _0x437e9f=_0x29de6a['insertions'][_0x1fe1ad];let _0x3d1f0e=null,_0x50110e=null;for(const _0x504691 of _0x437e9f){const _0x4c85ce=this['_getVidAttributeName'](_0x504691),_0x45f231=_0x504691['item']['getAttribute'](_0x4c85ce),_0x124c81=_0x3f6951['get'](_0x45f231);_0x124c81&&'elementStart'==_0x504691['type']&&(_0x3d1f0e=Array['from'](_0x124c81)[0x0],_0x50110e=_0x504691['item']['getAttribute']('vid_end')),_0x3d1f0e&&(_0x2379e3['set'](_0x45f231,{'userId':_0x3d1f0e}),_0x55a87f['set'](_0x45f231,{'userId':_0x3d1f0e})),_0x45f231==_0x50110e&&(_0x3d1f0e=null,_0x50110e=null);}}const _0x519bbf={},_0x4525c1=new Set();for(const _0x7a87e5 of _0x126293){const _0x348500=_0x1a3bb2['deletions'][_0x7a87e5],_0xf2781c=_0x1a3bb2['insertions'][_0x7a87e5];for(const {userId:_0x42033e}of this['_touchedMarkers']['values']())null!==_0x42033e&&_0x4525c1['add'](_0x42033e);for(const {userId:_0x588933}of this['_touchedRoots']['values']())null!==_0x588933&&_0x4525c1['add'](_0x588933);this['_markChanges'](_0xf2781c,_0x29de6a['insertions'][_0x7a87e5],_0x55a87f,'insertion',_0x4525c1),this['_markChanges'](_0x348500,_0x29de6a['deletions'][_0x7a87e5],_0x2379e3,'deletion',_0x4525c1),_0x519bbf[_0x7a87e5]={'insertions':this['_prepareViewToSave'](_0xf2781c),'deletions':this['_prepareViewToSave'](_0x348500),'attachChange':this['_touchedRoots']['get'](_0x7a87e5)||null,'attributesBefore':_0x31f663(this['_baseRootsAttributes']['get'](_0x7a87e5))||{},'attributesAfter':_0x31f663(this['_diffRootsAttributes']['get'](_0x7a87e5))};}return{'diffData':_0x519bbf,'authorsIds':Array['from'](_0x4525c1)};}['_processRootBeforeSave'](_0x1e84d7){for(const [,_0x7d946e]of _0x1e84d7['markers']){const _0x291084=_0x7d946e['start']['getAncestors']()['filter'](_0x56fb44=>'tableCell'==_0x56fb44['name']);for(const _0x37ce45 of _0x291084)0x1==_0x37ce45['childCount']&&_0x37ce45['getChild'](0x0)['is']('element','paragraph')&&_0x37ce45['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x251ead){this['_processRootBeforeSave'](_0x251ead);const _0x111117=this['editor']['data']['toView'](_0x251ead,{}),_0x3a0e09=Array['from'](_0x111117['getChildren']())['map'](_0x199dc5=>this['_getViewJson'](_0x199dc5));return JSON['stringify'](_0x3a0e09);}['_getViewJson'](_0x3740b7){if(_0x3740b7['is']('$text'))return _0x3740b7['data'];{const _0x1e1f22=_0x3740b7;return{'type':Object['keys'](C)['find'](_0x314f2e=>_0x3740b7 instanceof C[_0x314f2e]),'name':_0x1e1f22['name'],'attributes':Array['from'](_0x1e1f22['getAttributes']()),'children':Array['from'](_0x1e1f22['getChildren']())['map'](_0x4fcc46=>this['_getViewJson'](_0x4fcc46))};}}['_markChanges'](_0x490d32,_0x1ac574,_0x429930,_0xfce390,_0x1625b2){let _0x40b7d3=null,_0x542f59=null,_0x2c4791=0x0;const _0x1cf1b2=this['editor']['model'];for(let _0x36f53b=0x0;_0x36f53b<_0x1ac574['length'];_0x36f53b++){const _0x2c23ce=this['_getVidAttributeName'](_0x1ac574[_0x36f53b]),_0x24048b=_0x1ac574[_0x36f53b]['item']['getAttribute'](_0x2c23ce),_0x27cb8a=_0x429930['get'](_0x24048b),_0x140f7d=_0x36f53b==_0x1ac574['length']-0x1;(!_0x40b7d3&&_0x27cb8a&&(_0x40b7d3=_0x27cb8a,_0x542f59=_0x1ac574[_0x36f53b]),_0x40b7d3&&(!_0x27cb8a||_0x27cb8a['userId']!=_0x40b7d3['userId']))&&(_0x4635f8(_0x27cb8a,J(_0x542f59,_0x490d32,_0x1cf1b2),J(_0x1ac574[_0x36f53b],_0x490d32,_0x1cf1b2)),_0x40b7d3=_0x27cb8a||null,_0x542f59=_0x27cb8a?_0x1ac574[_0x36f53b]:null),_0x40b7d3&&_0x140f7d&&_0x4635f8(_0x27cb8a,J(_0x542f59,_0x490d32,_0x1cf1b2),q(_0x1ac574[_0x36f53b],_0x490d32,_0x1cf1b2));}function _0x4635f8(_0x5a22c4,_0xbc8448,_0xa63a1){const _0x54be74=_0x40b7d3['userId'],_0x3c2b8e='revision:'+_0xfce390+':'+_0x54be74+':'+_0x2c4791++,_0x3e8e1d=_0x1cf1b2['createRange'](_0xbc8448,_0xa63a1);_0x490d32['markers']['set'](_0x3c2b8e,_0x3e8e1d),null!==_0x54be74&&_0x1625b2['add'](_0x54be74);}}['_getVidAttributeName'](_0x3839a3){switch(_0x3839a3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x328955,_0x37efaf){_0x328955['baseVersion']=null;for(const _0x198cab in _0x328955){const _0x211ffa=_0x328955[_0x198cab];if(_0x211ffa instanceof gt){const _0x35d275=_0x37efaf['get'](_0x211ffa['root']['rootName']);_0x328955[_0x198cab]=this['_fixPosition'](_0x211ffa,_0x35d275);}if(_0x211ffa instanceof vt){const _0xe38ea4=_0x37efaf['get'](_0x211ffa['root']['rootName']);_0x328955[_0x198cab]=this['_fixRange'](_0x211ffa,_0xe38ea4);}'root'===_0x198cab&&(_0x328955['root']=_0x37efaf['get'](_0x328955['root']['rootName']));}}['_fixRange'](_0x3577d9,_0x2ee895){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3577d9['start'],_0x2ee895),this['_fixPosition'](_0x3577d9['end'],_0x2ee895));}['_fixPosition'](_0x4fceaa,_0x289202){return this['editor']['model']['createPositionFromPath'](_0x289202,_0x4fceaa['path'],_0x4fceaa['stickiness']);}['_handleInsertOperation'](_0x405dfd){const _0x145e5d=this['_idsRoots']['get'](_0x405dfd['position']['root']['rootName']),_0x3b6119=this['_fixPosition'](_0x405dfd['position'],_0x145e5d),_0x47a756=null===_0x405dfd['_authorId']?null:_0x405dfd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ad900=_0x3b6119['parent'],_0x90364d=this['_revisionId'],_0x3fa7e2=[];for(const _0x15e493 of _0x405dfd['nodes'])if(_0x15e493['is']('element'))_0x3fa7e2['push'](this['_makeIdsRoot'](_0x15e493));else{for(let _0x55ad28=0x0;_0x55ad28<_0x15e493['offsetSize'];_0x55ad28++)_0x3fa7e2['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5585c1=this['_revisionId'];for(let _0x328a13=_0x90364d;_0x328a13<_0x5585c1;_0x328a13++)this['_touched']['set'](_0x328a13,{'userId':_0x47a756});_0x3ad900['_insertChild'](_0x3b6119['offset'],_0x3fa7e2);}['_handleMoveOperation'](_0x17b708){(_0x17b708=this['_cloneOperation'](_0x17b708,this['_idsRoots']))['_execute']();const _0x24dde9=null===_0x17b708['_authorId']?null:_0x17b708['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x91a9ac=_0x17b708['getMovedRangeStart'](),_0x56ff77=_0x91a9ac['parent'],_0x43f790=_0x91a9ac['offset'];!function _0x22fa32(_0x212c31,_0x530e15,_0xba5fbe,_0x27117a){for(let _0x2d6bab=_0xba5fbe;_0x2d6bab<_0x27117a;_0x2d6bab++){const _0x46b135=_0x530e15['getChild'](_0x2d6bab);_0x46b135['is']('element','$text')?_0x212c31['set'](_0x46b135['getAttribute']('vid'),{'userId':_0x24dde9}):(_0x212c31['set'](_0x46b135['getAttribute']('vid_start'),{'userId':_0x24dde9}),_0x22fa32(_0x212c31,_0x46b135,0x0,_0x46b135['childCount']),_0x212c31['set'](_0x46b135['getAttribute']('vid_end'),{'userId':_0x24dde9}));}}(this['_touched'],_0x56ff77,_0x43f790,_0x43f790+_0x17b708['howMany']);}['_handleMergeOperation'](_0x7f0eb5){const _0x46612f=null===(_0x7f0eb5=this['_cloneOperation'](_0x7f0eb5,this['_idsRoots']))['_authorId']?null:_0x7f0eb5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a41eb=_0x7f0eb5['targetPosition']['parent'],_0x5b3f54=_0x7f0eb5['sourcePosition']['parent'],_0x3629ca=_0x3a41eb['getAttribute']('vid_end'),_0x32b6c8=_0x5b3f54['getAttribute']('vid_start');_0x3a41eb['_setAttribute']('vid_end',_0x5b3f54['getAttribute']('vid_end')),_0x5b3f54['_setAttribute']('vid_end',_0x3629ca),this['_touched']['set'](_0x32b6c8,{'userId':_0x46612f}),this['_touched']['set'](_0x3629ca,{'userId':_0x46612f}),_0x7f0eb5['_execute']();}['_handleSplitOperation'](_0x7a4409){const _0x577b95=null===(_0x7a4409=this['_cloneOperation'](_0x7a4409,this['_idsRoots']))['_authorId']?null:_0x7a4409['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe98776=_0x7a4409['graveyardPosition'],_0x777d94=_0x7a4409['splitPosition']['parent'];_0x7a4409['_execute']();const _0x2c7ce3=_0x777d94['getAttribute']('vid_end'),_0x1cb59a=_0x7a4409['insertionPosition']['nodeAfter'];if(_0xe98776){const _0xd19d8a=_0x1cb59a['getAttribute']('vid_end'),_0x113a84=_0x777d94['getAttribute']('vid_end');_0x777d94['_setAttribute']('vid_end',_0xd19d8a),_0x1cb59a['_setAttribute']('vid_end',_0x113a84),this['_touched']['set'](_0x777d94['getAttribute']('vid_end'),{'userId':_0x577b95}),this['_touched']['set'](_0x1cb59a['getAttribute']('vid_start'),{'userId':_0x577b95});}else{const _0x1d767b=this['_revisionId']++,_0x257045=this['_revisionId']++;_0x777d94['_setAttribute']('vid_end',_0x1d767b),_0x1cb59a['_setAttribute']('vid_start',_0x257045),_0x1cb59a['_setAttribute']('vid_end',_0x2c7ce3),this['_touched']['set'](_0x1d767b,{'userId':_0x577b95}),this['_touched']['set'](_0x257045,{'userId':_0x577b95});}}['_handleMarkerOperation'](_0x367137){if(!_0x367137['affectsData'])return;const _0x66609e=(_0x367137=this['_cloneOperation'](_0x367137,this['_diffRoots']))['oldRange']?_0x367137['oldRange']['root']:null,_0x3e32b2=_0x367137['newRange']?_0x367137['newRange']['root']:null;_0x66609e&&this['_markers']['delete'](_0x367137['name']),_0x3e32b2&&this['_markers']['set'](_0x367137['name'],_0x367137['newRange']['clone']());const _0x5c86be=null===_0x367137['_authorId']?null:_0x367137['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x291581=_0x367137['name'];if(!this['_touchedMarkers']['has'](_0x291581))return void this['_touchedMarkers']['set'](_0x291581,{'range':_0x367137['oldRange'],'userId':_0x5c86be});const _0x2506a4=this['_touchedMarkers']['get'](_0x291581),_0x3382f1=_0x2506a4['range'],_0x14ca9e=_0x367137['newRange'];null==_0x3382f1&&null==_0x14ca9e||_0x3382f1&&_0x14ca9e&&_0x3382f1['isEqual'](_0x14ca9e)?this['_touchedMarkers']['delete'](_0x367137['name']):_0x2506a4['userId']=_0x5c86be;}['_handleRootOperation'](_0x36789c,_0x1f5c6c){this['_diffRoots']['has'](_0x36789c['rootName'])?this['_diffRoots']['get'](_0x36789c['rootName'])['_isAttached']=_0x36789c['isAdd']:(this['_diffRoots']['set'](_0x36789c['rootName'],B(_0x36789c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x36789c['rootName'],{}),_0x1f5c6c&&this['_idsRoots']['set'](_0x36789c['rootName'],B(_0x36789c['rootName'],!0x0)));const _0x4e7885=null===_0x36789c['_authorId']?null:_0x36789c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1113be=this['_touchedRoots']['get'](_0x36789c['rootName']);_0x1113be&&_0x1113be['userId']===_0x4e7885?this['_touchedRoots']['delete'](_0x36789c['rootName']):this['_touchedRoots']['set'](_0x36789c['rootName'],{'userId':_0x4e7885,'isAttached':_0x36789c['isAdd']});}['_handleRootAttributeOperation'](_0x398cff){const _0x68ffaf=this['_diffRootsAttributes']['get'](_0x398cff['root']['rootName']);null===_0x398cff['newValue']?delete _0x68ffaf[_0x398cff['key']]:_0x68ffaf[_0x398cff['key']]=_0x398cff['newValue'];}}function F(_0x29f150){const _0x4789da=B(_0x29f150['rootName'],_0x29f150['isAttached']());for(const _0x2eca6d of _0x29f150['getChildren']()){const _0x418c2e=_0x2eca6d['_clone'](!0x0);_0x4789da['_appendChild'](_0x418c2e);}return _0x4789da;}function B(_0x4d3a9a,_0x105482=!0x0){const _0x19843d=new wt();return _0x19843d['rootName']=_0x4d3a9a,_0x19843d['_isAttached']=_0x105482,_0x19843d['isAttached']=()=>_0x19843d['_isAttached'],_0x19843d;}function J(_0xe46801,_0x587ac0,_0x5c45a9){const _0x12986c='elementEnd'==_0xe46801['type']?_0x5c45a9['createPositionAt'](_0xe46801['item'],'end'):_0x5c45a9['createPositionBefore'](_0xe46801['item']);return _0x5c45a9['createPositionFromPath'](_0x587ac0,_0x12986c['path'],_0x12986c['stickiness']);}function q(_0x3f0875,_0x12a58c,_0x30594b){const _0x235024='elementStart'==_0x3f0875['type']?_0x30594b['createPositionAt'](_0x3f0875['item'],0x0):_0x30594b['createPositionAfter'](_0x3f0875['item']);return _0x30594b['createPositionFromPath'](_0x12a58c,_0x235024['path'],_0x235024['stickiness']);}class ns extends _0x5671f8{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1d0e0c,_0x37a383){super(_0x1d0e0c),this['focusTracker']=new _0x362396(),this['keystrokes']=new _0x464106(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x37a383),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'](),_0x5af36e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x494eaa=_0x131faf=>_0x131faf['stopPropagation']();this['keystrokes']['set']('arrowright',_0x494eaa),this['keystrokes']['set']('arrowleft',_0x494eaa),this['keystrokes']['set']('arrowup',_0x494eaa),this['keystrokes']['set']('arrowdown',_0x494eaa);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x26b5c3){this['revisionNameInputView']['fieldView']['element']['value']=_0x26b5c3['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5820bb){const _0x12c0d1=new at(this['locale'],_0x11a751),_0x15acc6=_0x12c0d1['fieldView'];_0x15acc6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x459e9f=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5820bb&&(_0x459e9f+='\x20('+R(this['locale'],'optional')+')'),(_0x12c0d1['label']=_0x459e9f,_0x15acc6['on']('input',()=>{this['revisionNameInputValue']=_0x15acc6['element']['value']['trim']();}),_0x12c0d1);}}class u extends _0x1be25d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x48be8c=this['editor'],_0x15dc01=_0x48be8c['plugins']['get']('RevisionTracker');_0x48be8c['ui']['componentFactory']['add']('revisionHistory',_0x1f7935=>{const _0x4c0f4f=_0x40d335(_0x1f7935),_0x2b82de=_0x4c0f4f['panelView']['children'],_0x58be42=new te(_0x1f7935),_0xf10d85=new _0x3773d9(_0x1f7935),_0x5f516c=new _0x5df855(_0x1f7935),_0x51136b=new _0x3773d9(_0x1f7935),_0x41f84d=new _0x5df855(_0x1f7935);return _0x4c0f4f['bind']('isEnabled')['to'](_0x15dc01,'isReady',_0x15dc01,'isEnabled',_0x48be8c,'isReadOnly',(_0x53fa43,_0x2d4276,_0x3bf74b)=>_0x53fa43&&_0x2d4276&&!_0x3bf74b),_0x4c0f4f['buttonView']['set']({'icon':_0x5f15d8['history'],'label':R(_0x1f7935,'Revision\x20history'),'tooltip':!0x0}),_0x5f516c['set']({'label':R(_0x1f7935,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5f516c['bind']('isEnabled')['to'](_0x15dc01,'isReady',_0x15dc01,'isEnabled',_0x48be8c,'isReadOnly',(_0x245a60,_0x5b131a,_0x4de28a)=>_0x245a60&&_0x5b131a&&!_0x4de28a),_0x5f516c['on']('execute',()=>this['_showDialog']()),_0x41f84d['set']({'label':R(_0x1f7935,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x41f84d['bind']('isEnabled')['to'](_0x15dc01,'isReady',_0x48be8c,'isReadOnly',(_0x794c13,_0xc9fba4)=>_0x794c13&&!_0xc9fba4),_0x41f84d['on']('execute',()=>{_0x48be8c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4c0f4f['isOpen']=!0x1,_0x48be8c['editing']['view']['focus']();}),_0xf10d85['children']['add'](_0x5f516c),_0x51136b['children']['add'](_0x41f84d),_0x58be42['role']='menu',_0x58be42['items']['addMany']([_0xf10d85,_0x51136b]),_0x2b82de['add'](_0x58be42),_0x4c0f4f;}),_0x48be8c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x33225=this['editor'],_0x504111=_0x33225['locale'],_0x233937=new _0x4827c9(_0x504111),_0x50295f=new _0x2d71b1(_0x504111);_0x233937['buttonView']['set']({'icon':_0x5f15d8['history'],'label':R(_0x504111,'Revision\x20history')});const _0x5f0f78=new _0x2bc4aa(_0x504111,_0x233937),_0x5f5297=new _0x30e1db(_0x504111);_0x5f5297['set']({'label':R(_0x504111,'Save\x20current\x20revision')}),_0x5f5297['delegate']('execute')['to'](_0x233937),_0x5f5297['on']('execute',()=>{this['_showDialog']();}),_0x5f0f78['children']['add'](_0x5f5297),_0x50295f['items']['add'](_0x5f0f78);const _0xddfed3=new _0x2bc4aa(_0x504111,_0x233937),_0x34014c=new _0x30e1db(_0x504111);return _0x34014c['set']({'label':R(_0x504111,'Open\x20revision\x20history')}),_0x34014c['delegate']('execute')['to'](_0x233937),_0x34014c['on']('execute',()=>{_0x33225['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xddfed3['children']['add'](_0x34014c),_0x50295f['items']['add'](_0xddfed3),_0x233937['panelView']['children']['add'](_0x50295f),_0x233937;}['_showDialog'](){const _0x32da38=this['editor'],_0x40d1c9=_0x32da38['locale'],_0x4c31af=_0x32da38['plugins']['get']('Dialog'),_0x4ba9ec=_0x32da38['plugins']['get']('RevisionTracker');function _0x367922(_0xad91c7){_0x32da38['config']['get']('revisionHistory.requireRevisionName')&&''===_0xad91c7['revisionName']?_0xad91c7['revisionNameInputView']['errorText']=R(_0x40d1c9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x32da38['plugins']['get'](l)['saveRevision']({'name':_0xad91c7['revisionName']}),_0x4c31af['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x367922(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4c31af['show']({'id':'revisionSave','title':R(_0x40d1c9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x32da38['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4c31af['hide']()},{'label':R(_0x32da38['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x27e07e){_0x27e07e['bind']('isEnabled')['to'](_0x4ba9ec,'isReady',_0x4ba9ec,'isEnabled',_0x32da38,'isReadOnly',(_0x3a635f,_0x288f10,_0x33bfe2)=>_0x3a635f&&_0x288f10&&!_0x33bfe2);},'onExecute':()=>_0x367922(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4be46c=this['editor'],_0x523012=_0x4be46c['locale'];this['_saveRevisionFormView']=new ns(_0x523012,_0x4be46c['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x5671f8{['changeId'];['_model'];constructor(_0x29cf22,_0x34821e){super(_0x29cf22),this['_model']=_0x34821e,this['changeId']=_0x34821e['id'];const _0x3c892e=this['bindTemplate'],_0x3fa76b=R(_0x29cf22,_0x34821e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x34821e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x34821e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3c892e['to']('type',_0x2ce11e=>'ck-revision-change__'+_0x2ce11e)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3fa76b}]},{'text':'\x20'+_0x34821e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3f9eee(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x143755){super(),this['id']=_0x143755['id']||_0xe7cf66(),this['author']=_0x143755['author'],this['type']=_0x143755['type'],this['data']=_0x143755['data']||{},this['rootName']=_0x143755['rootName'],this['set']('createdAt',_0x143755['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x197915,_0xb8b1d0){this['newRevisionId']=_0x197915,this['oldRevisionId']=_0xb8b1d0,this['changes']=new _0x1833d0();}['_setChanges'](_0x307167){for(const _0x103bf4 of _0x307167)this['changes']['add'](_0x103bf4);}}const Z={'c':_0x177dd9,'a':_0x11edbf,'e':_0x4cc4c1,'r':_0x19c81d,'u':_0x3afc04};class d extends _0x1be25d{['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[_0x5dae67,_0x58072f,j];}constructor(_0x3b9938){super(_0x3b9938),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',(_0x57c1d4,_0x34a359,_0x579105)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4ca1ad=>{for(const _0x3393dc of this['editor']['editing']['view']['document']['roots'])_0x579105?_0x4ca1ad['removeClass']('ck-editor__editable__overlay',_0x3393dc):_0x4ca1ad['addClass']('ck-editor__editable__overlay',_0x3393dc);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x44fe2f=>null!==_0x44fe2f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x44fb26,_0x23dacd,_0x4c0344)=>_0x44fb26&&_0x4c0344?_0x23dacd['changes']['getIndex'](_0x4c0344):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1028a9,_0xc59b6f)=>_0x1028a9?_0xc59b6f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x58072f);}['init'](){const _0x3418cd=this['editor'],_0x230570=new bt(_0x3418cd,{'direction':'backward'}),_0x143882=new bt(_0x3418cd,{'direction':'forward'});(_0x3418cd['commands']['add']('showPreviousChange',_0x230570),_0x3418cd['commands']['add']('showNextChange',_0x143882),_0x3418cd['commands']['add']('restoreRevision',new yt(_0x3418cd)),this['on']('change:numberOfChanges',()=>{_0x230570['refresh'](),_0x143882['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3418cd['enableReadOnlyMode']('revision-viewer'),_0x3418cd['plugins']['has']('WidgetToolbarRepository'))&&_0x3418cd['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x447034){await this['loadRevisionData'](_0x447034);const _0x1c4329={};for(const _0x58967b in _0x447034['diffData']){if(_0x447034['diffData'][_0x58967b]['attachChange']&&!_0x447034['diffData'][_0x58967b]['attachChange']['isAttached'])continue;const _0xdfae43=this['_removeRevisionMarkers'](JSON['parse'](_0x447034['diffData'][_0x58967b]['insertions'])),_0x440fdc=this['editor']['editing']['view']['document'],_0x2274c0=new _0x274950(_0x440fdc,_0xdfae43['map'](_0x1ad654=>this['_getViewObj'](_0x1ad654)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c4329[_0x58967b]=this['editor']['data']['processor']['toData'](_0x2274c0),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c4329;}async['getRevisionRootsAttributes'](_0x434037){await this['loadRevisionData'](_0x434037);const _0x102b10={};for(const _0x7ce1ff in _0x434037['diffData'])_0x434037['diffData'][_0x7ce1ff]['attachChange']&&!_0x434037['diffData'][_0x7ce1ff]['attachChange']['isAttached']||(_0x102b10[_0x7ce1ff]=_0x434037['diffData'][_0x7ce1ff]['attributesAfter']||{});return _0x102b10;}['_removeRevisionMarkers'](_0x2fb322){return(_0x2fb322=_0x2fb322['filter'](_0x3068e8=>!_0x3068e8['name']||'revision-start'!==_0x3068e8['name']&&'revision-end'!==_0x3068e8['name']))['forEach'](_0x59c2ad=>{'string'!=typeof _0x59c2ad&&(_0x59c2ad['children']=this['_removeRevisionMarkers'](_0x59c2ad['children']),_0x59c2ad['attributes']=_0x59c2ad['attributes']['filter'](_0x271edb=>!_0x271edb[0x0]['startsWith']('data-revision-')));}),_0x2fb322;}async['compare'](_0x24a3ef,_0x33cb10,_0x67dab0=!0x1){if(!this['isEnabled'])return;const _0x37fbc8=this['diff'],_0x1f9ddd=this['repository'],_0x581715='string'==typeof _0x24a3ef?_0x1f9ddd['getRevision'](_0x24a3ef):_0x24a3ef,_0x2c4889='string'==typeof _0x33cb10?_0x1f9ddd['getRevision'](_0x33cb10):_0x33cb10,_0x4cff11=_0x581715['id'],_0x5379ce=_0x2c4889?_0x2c4889['id']:null;if(!_0x67dab0&&this['diff']&&this['diff']['newRevisionId']===_0x4cff11&&this['diff']['oldRevisionId']===_0x5379ce)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4cff11,_0x5379ce);const _0x3d85a7=this['_getRevisionsRange'](_0x581715,_0x2c4889,!0x0)['map'](_0x2438ad=>this['loadRevisionData'](_0x2438ad));return _0x3d85a7['push'](new Promise(_0x3fa68f=>{setTimeout(_0x3fa68f,0x14);})),Promise['all'](_0x3d85a7)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x34df4c=this['_getDiff'](_0x4cff11,_0x5379ce);for(const _0x14fac1 of _0x34df4c['changes'])this['_changeIdToChange']['set'](_0x14fac1['id'],_0x14fac1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xbd60e8=>{for(const _0x29c052 of this['editor']['model']['document']['getRootNames']())_0xbd60e8['detachRoot'](_0x29c052);for(const _0x4f7f71 of Object['keys'](_0x34df4c['model'])){const _0x4fb3d0=_0xbd60e8['addRoot'](_0x4f7f71);for(const _0x8f11c1 of Object['keys'](_0x34df4c['attributes'][_0x4f7f71]))_0xbd60e8['setAttribute'](_0x8f11c1,_0x34df4c['attributes'][_0x4f7f71][_0x8f11c1],_0x4fb3d0);_0xbd60e8['insert'](_0x34df4c['model'][_0x4f7f71],_0x4fb3d0,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x34df4c['changes'])),this['isReady']=!0x0;})['catch'](_0x63dde6=>{console['error'](_0x63dde6),this['_cleanUp'](),_0x37fbc8&&(this['diff']=_0x37fbc8),this['isReady']=!0x0;});}['addRevisionData'](_0x2b85c8,_0x443420){const _0xf084=this['repository']['createRevision'](_0x2b85c8);return _0xf084['on']('_update',(_0xe36e09,_0x523c55,_0x23faed)=>_0x443420(_0x523c55,_0x23faed,_0xf084)),this['repository']['addRevision'](_0xf084),_0xf084;}['loadRevisionData'](_0x508ad4){if(!_0x508ad4||_0x508ad4['diffData'])return Promise['resolve']();{const _0x1baf49=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1baf49,'revisionId':_0x508ad4['id']})['then'](_0x25280d=>{_0x508ad4['_update']({'diffData':_0x25280d['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},_0x472a8c=>{for(const _0x59bf08 of this['editor']['model']['document']['getRootNames']())_0x472a8c['detachRoot'](_0x59bf08);});}['_sortAndFilterDiffChanges'](_0x4f7a33){const _0x136a15=[],_0x561771=new Map();for(const _0x2af11d of this['editor']['model']['document']['getRootNames']()){const _0x22614b=this['editor']['editing']['view']['getDomRoot'](_0x2af11d);if(!_0x22614b)continue;const _0x3d88f3=_0x22614b['getClientRects']()['item'](0x0);_0x3d88f3&&(_0x136a15['push'](_0x2af11d),_0x561771['set'](_0x2af11d,_0x3d88f3));}return _0x136a15['sort']((_0x248a27,_0x33afb5)=>{const _0x2e478e=_0x561771['get'](_0x248a27),_0x47ee1c=_0x561771['get'](_0x33afb5);return _0x2e478e['y']-_0x47ee1c['y']||_0x2e478e['x']-_0x47ee1c['x'];}),(_0x4f7a33=_0x4f7a33['filter'](_0x1b537c=>_0x136a15['includes'](_0x1b537c['rootName'])))['sort']((_0x5c5200,_0x1e3dba)=>_0x136a15['indexOf'](_0x5c5200['rootName'])-_0x136a15['indexOf'](_0x1e3dba['rootName'])),_0x4f7a33;}['_makeTape'](_0xded9f3){const _0x4d1e60=Array['from'](_0xded9f3['markers'])['filter'](([_0x18e15e,_0x44baf2])=>_0x18e15e['startsWith']('revision:')&&!_0x44baf2['isCollapsed']),_0x55b0a4=Array['from'](this['editor']['model']['createRangeIn'](_0xded9f3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4d1e60['length'])for(const _0x20639a of _0x55b0a4){const [_0x15de4f,_0x4b764e]=_0x4d1e60[0x0],[,_0x4005a6,_0x2a3a49]=_0x15de4f['split'](':');if(_0x4b764e['end']['isEqual'](_0x20639a['nextPosition'])&&_0x4d1e60['shift'](),(_0x20639a['previousPosition']['isEqual'](_0x4b764e['start'])||_0x20639a['previousPosition']['isAfter'](_0x4b764e['start']))&&('insertion'==_0x4005a6?_0x20639a['isAdded']={'userId':_0x2a3a49}:'deletion'==_0x4005a6&&(_0x20639a['isRemoved']={'userId':_0x2a3a49})),0x0==_0x4d1e60['length'])break;}return _0x55b0a4;}['_refreshStartEndIndex'](_0x36981c){const _0x11e342=new Map();for(let _0x280f43=0x0;_0x280f43<_0x36981c['length'];_0x280f43++)'text'===_0x36981c[_0x280f43]['type']?(_0x36981c[_0x280f43]['item']['startIndex']=_0x280f43,_0x36981c[_0x280f43]['item']['endIndex']=_0x280f43):('elementStart'===_0x36981c[_0x280f43]['type']?_0x36981c[_0x280f43]['item']['startIndex']=_0x280f43:'elementEnd'===_0x36981c[_0x280f43]['type']&&(_0x36981c[_0x280f43]['item']['endIndex']=_0x280f43),_0x11e342['set'](_0x36981c[_0x280f43]['id'],_0x280f43));for(const _0x45f4e0 of _0x11e342['values']())'elementStart'===_0x36981c[_0x45f4e0]['type']?_0x36981c[_0x45f4e0]['item']['endIndex']=_0x11e342['get'](_0x36981c[_0x45f4e0]['pairId']):'elementEnd'===_0x36981c[_0x45f4e0]['type']&&(_0x36981c[_0x45f4e0]['item']['startIndex']=_0x11e342['get'](_0x36981c[_0x45f4e0]['pairId']));}['_processTape'](_0x3c8de0){for(let _0xb86593=0x0;_0xb86593<_0x3c8de0['length'];_0xb86593++){if('elementStart'===_0x3c8de0[_0xb86593]['type'])_0x3c8de0[_0xb86593]['item']['startIndex']=_0xb86593;else{if('elementEnd'===_0x3c8de0[_0xb86593]['type']){_0x3c8de0[_0xb86593]['item']['endIndex']=_0xb86593;const _0x2b3163=_0x3c8de0[_0xb86593]['item']['startIndex'];_0x3c8de0[_0x2b3163]['pairId']=_0x3c8de0[_0xb86593]['id'],_0x3c8de0[_0xb86593]['pairId']=_0x3c8de0[_0x2b3163]['id'];}else _0x3c8de0[_0xb86593]['item']['startIndex']=_0xb86593,_0x3c8de0[_0xb86593]['item']['endIndex']=_0xb86593,_0x3c8de0[_0xb86593]['pairId']=null;}_0x3c8de0[_0xb86593]['markersStart']||(_0x3c8de0[_0xb86593]['markersStart']=[],_0x3c8de0[_0xb86593]['markersEnd']=[]);}}['_markInsertions'](_0x37e2f6,_0x264185){const _0x2dce80=_0x37e2f6['filter'](_0x5a71fb=>!_0x5a71fb['isAdded']);for(let _0x2daaa0=0x0;_0x2daaa0<_0x264185['length'];_0x2daaa0++)_0x264185[_0x2daaa0]['isAdded']&&(_0x2dce80[_0x2daaa0]['isAdded']=_0x264185[_0x2daaa0]['isAdded']);}['_makeModelFromViewString'](_0x273149){const _0x38bec7=JSON['parse'](_0x273149),_0xcfdc4a=this['editor']['editing']['view']['document'],_0x16c211=new _0x274950(_0xcfdc4a,_0x38bec7['map'](_0xf69463=>this['_getViewObj'](_0xf69463)));return this['editor']['data']['toModel'](_0x16c211);}['_getViewObj'](_0x5abcaf){const _0x1b161e=this['editor']['editing']['view']['document'];if('string'==typeof _0x5abcaf)return new _0x43567a(_0x1b161e,_0x5abcaf);{const _0x4021b3=_0x5abcaf['children']['map'](_0x2ecf0c=>this['_getViewObj'](_0x2ecf0c));return new(Z[_0x5abcaf['type']]||_0x3d18c0)(_0x1b161e,_0x5abcaf['name'],_0x5abcaf['attributes'],_0x4021b3);}}['_getDiff'](_0x3a3782,_0x1f9855=null){const _0x549b6d=this['repository']['getRevision'](_0x3a3782),_0x2e5d44=_0x1f9855?this['repository']['getRevision'](_0x1f9855):null,_0x219134=this['_getRevisionsRange'](_0x549b6d,_0x2e5d44),_0x1dd877=_0x219134[_0x219134['length']-0x1],_0x4609c3=new Map(),_0x469cc2={'model':{},'attributes':{},'changes':[]},_0x2fa091=new Set(),_0x1c4f13=new Map();for(let _0x3c0d68=_0x219134['length']-0x1;_0x3c0d68>=0x0;_0x3c0d68--){const _0x55a1f2=_0x219134[_0x3c0d68];for(const _0x542776 of Object['keys'](_0x55a1f2['diffData']))if(_0x55a1f2['diffData'][_0x542776]['attachChange']){const _0x1d3fbf=_0x55a1f2['diffData'][_0x542776]['attachChange'];_0x1d3fbf['isAttached']?(_0x2fa091['add'](_0x542776),_0x1c4f13['has'](_0x542776)&&_0x1c4f13['get'](_0x542776)['userId']==_0x1d3fbf['userId']?_0x1c4f13['delete'](_0x542776):_0x1c4f13['set'](_0x542776,_0x1d3fbf)):_0x1c4f13['has'](_0x542776)?(_0x2fa091['delete'](_0x542776),_0x1c4f13['delete'](_0x542776)):(_0x2fa091['add'](_0x542776),_0x1c4f13['set'](_0x542776,_0x1d3fbf));}else _0x2fa091['add'](_0x542776);}for(const _0x236c45 of _0x2fa091){const _0x549410=_0x1c4f13['has'](_0x236c45)&&!_0x1c4f13['get'](_0x236c45)['isAttached'];let _0x3ce9e0=_0x549410?_0x219134['length']-0x1:0x0;const _0x1d7ba8=_0x549410?-0x1:0x1;for(;_0x219134[_0x3ce9e0];){const _0x5c44fe=_0x219134[_0x3ce9e0];if(_0x5c44fe['diffData'][_0x236c45]){const _0x2b53b0=_0x549410?_0x5c44fe['diffData'][_0x236c45]['attributesBefore']:_0x5c44fe['diffData'][_0x236c45]['attributesAfter'];_0x469cc2['attributes'][_0x236c45]=_0x2b53b0?_0x31f663(_0x2b53b0):{};break;}_0x3ce9e0+=_0x1d7ba8;}}for(const _0xe4c0f7 of _0x219134){_0xe4c0f7['model']={};for(const _0x50f761 of _0xe4c0f7['authors'])_0x4609c3['set'](_0x50f761['id'],_0x50f761);for(const _0x7c1f38 of _0x2fa091){const _0x354e8b=_0xe4c0f7['diffData'][_0x7c1f38]?_0xe4c0f7['diffData'][_0x7c1f38]['insertions']:'[]',_0x18e319=_0xe4c0f7['diffData'][_0x7c1f38]?_0xe4c0f7['diffData'][_0x7c1f38]['deletions']:'[]';_0xe4c0f7['model'][_0x7c1f38]={'insertions':this['_makeModelFromViewString'](_0x354e8b),'deletions':this['_makeModelFromViewString'](_0x18e319)};}}for(const _0x4e720b of _0x2fa091){let _0x202c5d=null,_0x17de37=0x0;const _0x4c5a31=new Map(Array['from'](_0x549b6d['model'][_0x4e720b]['insertions']['markers'])['filter'](([_0x5d09f7])=>!_0x5d09f7['startsWith']('revision:')));let _0x3b5688=0x0;for(const _0x531c25 of _0x219134){const _0x514516=this['_makeTape'](_0x531c25['model'][_0x4e720b]['insertions']);_0x531c25==_0x549b6d?(_0x202c5d=_0x514516,_0x17de37=_0x202c5d['length'],_0x202c5d['forEach'](_0x384a57=>{_0x384a57['id']=_0x3b5688++;}),this['_processTape'](_0x202c5d)):this['_markInsertions'](_0x202c5d,_0x514516);const _0x43a474=_0x202c5d['filter'](_0x3b1c95=>!_0x3b1c95['isAdded'])['map'](_0x58fe41=>_0x58fe41['id']);let _0x5e88a2=0x0;const _0x5d61aa=this['_makeTape'](_0x531c25['model'][_0x4e720b]['deletions']);_0x5d61aa['forEach'](_0x4011d4=>{_0x4011d4['isRemoved']?_0x4011d4['id']=_0x17de37++:_0x4011d4['id']=_0x43a474[_0x5e88a2++];}),this['_processTape'](_0x5d61aa),this['_setDistance'](_0x202c5d,'isAdded'),this['_setDistance'](_0x5d61aa,'isRemoved'),_0x531c25==_0x549b6d&&this['_markMarkers'](_0x202c5d,_0x4c5a31),_0x202c5d=this['_joinTapes'](_0x202c5d,_0x5d61aa),this['_refreshStartEndIndex'](_0x202c5d),this['_setDistance'](_0x202c5d,'isRemoved');}_0x202c5d=_0x202c5d['filter'](_0x17780a=>!(_0x17780a['isAdded']&&_0x17780a['isRemoved']));const _0x28f07b=new Map(_0x1dd877['model'][_0x4e720b]['deletions']['markers']),_0x5392a6=new Set(_0x4c5a31['keys']());for(const _0x2dbd5a of _0x28f07b['keys']())_0x5392a6['delete'](_0x2dbd5a);this['_markSuggestions'](_0x202c5d,_0x5392a6),this['_fixObsoleteTags'](_0x202c5d),_0x202c5d=this['_removeMissingPairs'](_0x202c5d),_0x202c5d=this['_markMismatchedRemovedTags'](_0x202c5d),_0x202c5d=this['_removeUnsupportedChanges'](_0x202c5d);const {root:_0x47e85e,changes:_0x5597ee}=this['_makeModelFromTape'](_0x202c5d,_0x4609c3,_0x4e720b);_0x469cc2['model'][_0x4e720b]=_0x47e85e;const _0x2feaf9=_0x1c4f13['get'](_0x4e720b);if(_0x2feaf9){const _0x55d5fd=_0x4609c3['get'](_0x2feaf9['userId']),_0x128223=new r({'author':_0x55d5fd,'type':_0x2feaf9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4e720b});_0x5597ee['unshift'](_0x128223),_0x469cc2['attributes'][_0x4e720b]['revisionHistoryAttachChange']=_0x128223['id'];}_0x469cc2['changes']=_0x469cc2['changes']['concat'](_0x5597ee);}return _0x469cc2;}['_markMarkers'](_0x17931f,_0x1e45e9){for(let _0xb9ef14=0x0;_0xb9ef14<_0x17931f['length'];_0xb9ef14++)for(const [_0x194c1e,_0x3e1a31]of _0x1e45e9)_0x3e1a31['start']['isEqual'](_0x17931f[_0xb9ef14]['previousPosition'])&&_0x17931f[_0xb9ef14]['markersStart']['push'](_0x194c1e),_0x3e1a31['end']['isEqual'](_0x17931f[_0xb9ef14]['nextPosition'])&&_0x17931f[_0xb9ef14]['markersEnd']['push'](_0x194c1e);}['_joinTapes'](_0x29e16c,_0x1070a3){let _0x58c7f0=[],_0x172fb3=0x0,_0x4e7514=0x0;for(;_0x172fb3<_0x29e16c['length']||_0x4e7514<_0x1070a3['length'];){const _0x38960f=_0x29e16c[_0x172fb3]||{},_0x3a856f=_0x1070a3[_0x4e7514]||{};if(_0x38960f['id']==_0x3a856f['id'])_0x172fb3++,_0x4e7514++,_0x58c7f0['push'](_0x38960f);else{if(_0x3a856f['isRemoved']&&_0x38960f['isAdded']){const {commonTape:_0x5f209e,iEnd:_0x343993,jEnd:_0x421b33}=this['_threeWayMerge'](_0x29e16c,_0x172fb3,_0x1070a3,_0x4e7514);_0x58c7f0=_0x58c7f0['concat'](_0x5f209e),_0x172fb3=_0x343993,_0x4e7514=_0x421b33;}else _0x3a856f['isRemoved']?(_0x4e7514++,_0x58c7f0['push'](_0x3a856f)):(_0x172fb3++,_0x58c7f0['push'](_0x38960f));}}return _0x58c7f0;}['_markSuggestions'](_0x5c405f,_0x22141d){const _0x1a14c8=[];for(let _0xa7d4cb=0x0;_0xa7d4cb<_0x5c405f['length'];_0xa7d4cb++){for(let _0x4f8a95=0x0;_0x4f8a95<_0x5c405f[_0xa7d4cb]['markersStart']['length'];_0x4f8a95++){const _0x3e8305=_0x5c405f[_0xa7d4cb]['markersStart'][_0x4f8a95];if(!_0x22141d['has'](_0x3e8305))continue;const {group:_0x1fb8bc,type:_0x109bc6,authorId:_0xf53ce4}=_0x1910ac(_0x3e8305);'revision-suggestion'!=_0x1fb8bc||'insertion'!=_0x109bc6&&'deletion'!=_0x109bc6||(_0x1a14c8['unshift']({'type':_0x109bc6,'name':_0x3e8305,'userId':_0xf53ce4}),_0x5c405f[_0xa7d4cb]['markersStart']['splice'](_0x4f8a95,0x1),_0x4f8a95--);}_0x2b85ca(_0x5c405f[_0xa7d4cb]);for(let _0x16d36e=0x0;_0x16d36e<_0x5c405f[_0xa7d4cb]['markersEnd']['length'];_0x16d36e++){const _0x221c6d=_0x5c405f[_0xa7d4cb]['markersEnd'][_0x16d36e];if(!_0x22141d['has'](_0x221c6d))continue;const {group:_0x578340,type:_0x1bffd6}=_0x1910ac(_0x221c6d);if('revision-suggestion'!=_0x578340||'insertion'!=_0x1bffd6&&'deletion'!=_0x1bffd6)continue;_0x5c405f[_0xa7d4cb]['markersEnd']['splice'](_0x16d36e,0x1),_0x16d36e--;const _0xebe324=_0x1a14c8['findIndex'](_0x4cc6ee=>_0x4cc6ee['name']==_0x221c6d);_0xebe324>-0x1&&_0x1a14c8['splice'](_0xebe324,0x1);}}function _0x1910ac(_0x1369b1){const _0x44b70d=_0x1369b1['split'](':');return{'group':_0x44b70d[0x0],'type':_0x44b70d[0x1],'subType':_0x44b70d['length']>=0x5?_0x44b70d[0x2]:null,'id':_0x44b70d['length']<0x5?_0x44b70d[0x2]:_0x44b70d[0x3],'authorId':_0x44b70d['length']<0x5?_0x44b70d[0x3]:_0x44b70d[0x4],'markerCount':0x6==_0x44b70d['length']?_0x44b70d[0x5]:null};}function _0x2b85ca(_0x2b226c){for(let _0x38efde=0x0;_0x38efde<_0x1a14c8['length'];_0x38efde++){if(_0x2b226c['isAdded']&&'insertion'==_0x1a14c8[_0x38efde]['type'])return _0x2b226c['isAddSuggestion']=_0x1a14c8[_0x38efde],void delete _0x2b226c['isAdded'];if(!_0x2b226c['isAdded']&&!_0x2b226c['isRemoved']&&'deletion'==_0x1a14c8[_0x38efde]['type'])return void(_0x2b226c['isRemoveSuggestion']=_0x1a14c8[_0x38efde]);}}}['_setDistance'](_0x4b50c6,_0xda2188){let _0x4fc60d=0x0,_0x59f7fe=!0x1;const _0x2c7625=new Map();for(const _0x4e7552 of _0x4b50c6)_0x4e7552[_0xda2188]?_0x59f7fe&&(_0x4fc60d++,_0x59f7fe=!0x1):(_0x4fc60d++,_0x59f7fe=!0x0),_0x2c7625['set'](_0x4e7552['id'],_0x4fc60d);for(let _0x36fcc1=0x0;_0x36fcc1<_0x4b50c6['length'];_0x36fcc1++){if('isRemoved'==_0xda2188&&_0x4b50c6[_0x36fcc1]['isAdded']||'isAdded'==_0xda2188&&_0x4b50c6[_0x36fcc1]['isRemoved'])continue;if('text'==_0x4b50c6[_0x36fcc1]['type']){_0x4b50c6[_0x36fcc1]['distance']=0x0;continue;}const _0xb6ad2=_0x2c7625['get'](_0x4b50c6[_0x36fcc1]['pairId']),_0x33a747=_0x2c7625['get'](_0x4b50c6[_0x36fcc1]['id']);_0x4b50c6[_0x36fcc1]['distance']=_0xb6ad2-_0x33a747;}}['_getRevisionsRange'](_0x862a1,_0x30cf06,_0x58b86d=!0x1){const _0xd4c6e6=[];let _0x25ac61=this['repository']['getIndex'](_0x862a1),_0x2744c4=this['repository']['getIndex'](_0x30cf06);for(-0x1==_0x2744c4&&(_0x2744c4=this['repository']['_revisions']['length'],_0x58b86d=!0x1);_0x25ac61<_0x2744c4;)_0xd4c6e6['push'](this['repository']['getRevision'](_0x25ac61)),_0x25ac61++;return _0x58b86d&&_0xd4c6e6['push'](this['repository']['getRevision'](_0x25ac61)),_0xd4c6e6;}['_threeWayMerge'](_0x4f8bbc,_0x2c9d35,_0x2d4fc7,_0x483bb6){const _0x298f19=this['editor']['model']['schema'];let _0x47f0ed=_0x2c9d35;for(;_0x4f8bbc[_0x47f0ed]&&_0x4f8bbc[_0x47f0ed]['isAdded'];)_0x47f0ed++;let _0x2af421=_0x483bb6;for(;_0x2d4fc7[_0x2af421]&&_0x2d4fc7[_0x2af421]['isRemoved'];)_0x2af421++;_0x5a50fa(_0x4f8bbc,_0x2c9d35,_0x47f0ed),_0x5a50fa(_0x2d4fc7,_0x483bb6,_0x2af421);const _0x35ada8=_0x2d4fc7['slice'](_0x483bb6,_0x2af421)['concat'](_0x4f8bbc['slice'](_0x2c9d35,_0x47f0ed));return _0x35ada8['sort']((_0x4e2b05,_0x3130b0)=>_0x4e2b05['side']!=_0x3130b0['side']?_0x4e2b05['side']-_0x3130b0['side']:_0x4e2b05['level']!=_0x3130b0['level']?_0x4e2b05['level']-_0x3130b0['level']:_0x4e2b05['distance']!=_0x3130b0['distance']?_0x3130b0['distance']-_0x4e2b05['distance']:!!_0x4e2b05['isAdded']!=!!_0x3130b0['isAdded']?-0x1==_0x4e2b05['side']||0x0==_0x4e2b05['side']?_0x4e2b05['isAdded']?-0x1:0x1:_0x4e2b05['isAdded']?0x1:-0x1:_0x4e2b05['index']-_0x3130b0['index']),{'commonTape':_0x35ada8,'iEnd':_0x47f0ed,'jEnd':_0x2af421};function _0x5a50fa(_0x22ab69,_0xbae70,_0x46b22f){let _0x4c8eb0=-0x1,_0x52d6d6=Number['POSITIVE_INFINITY'],_0x1e502f=!0x0;for(let _0x574cf0=_0xbae70;_0x574cf0<_0x46b22f;_0x574cf0++)if(_0x298f19['isInline'](_0x22ab69[_0x574cf0]['item'])||(_0x1e502f=!0x1),_0x22ab69[_0x574cf0]['item']['startIndex']<_0xbae70&&(_0x4c8eb0=_0x574cf0),_0x22ab69[_0x574cf0]['item']['endIndex']>=_0x46b22f){_0x52d6d6=_0x574cf0;break;}_0x1e502f&&(_0x4c8eb0=_0x46b22f-0x1);for(let _0x367cc3=_0xbae70;_0x367cc3<_0x46b22f;_0x367cc3++)_0x22ab69[_0x367cc3]['side']=_0x367cc3<=_0x4c8eb0?-0x1:_0x367cc3<_0x52d6d6?0x0:0x1,_0x22ab69[_0x367cc3]['index']=_0x367cc3;let _0x17398a=0x0;for(let _0x16018e=_0xbae70;_0x16018e<=_0x4c8eb0;_0x16018e++)0x0==_0x22ab69[_0x16018e]['distance']?_0x22ab69[_0x16018e]['level']=_0x17398a:(_0x17398a++,_0x22ab69[_0x16018e]['level']=_0x17398a,_0x17398a++);for(let _0x90d1c7=_0xbae70;_0x90d1c7<_0x46b22f;_0x90d1c7++)0x0==_0x22ab69[_0x90d1c7]['side']&&(_0x22ab69[_0x90d1c7]['level']=_0x17398a);_0x17398a=0x0;for(let _0x2c1451=_0x46b22f-0x1;_0x2c1451>=_0x52d6d6;_0x2c1451--)0x0==_0x22ab69[_0x2c1451]['distance']?_0x22ab69[_0x2c1451]['level']=_0x17398a:(_0x17398a--,_0x22ab69[_0x2c1451]['level']=_0x17398a,_0x17398a--);}}['_fixObsoleteTags'](_0x1ae764){const _0xc0b8b8=new Map(),_0x6f8099=this['editor']['model']['schema'];for(let _0x2f1f01=0x1;_0x2f1f01<_0x1ae764['length'];_0x2f1f01++){let _0x472dd7,_0x19ac9b,_0x107df8;const _0xda2e05=_0x1ae764[_0x2f1f01],_0x46bdcf=_0x1ae764[_0x2f1f01-0x1];if('text'==_0xda2e05['type'])continue;if(_0xda2e05['type']!=_0x46bdcf['type'])continue;if(!_0x6f8099['isBlock'](_0x46bdcf['item'])||_0x6f8099['isLimit'](_0x46bdcf['item']))continue;if(!_0x6f8099['isBlock'](_0xda2e05['item'])||_0x6f8099['isLimit'](_0xda2e05['item']))continue;if((_0x1ae764[_0x2f1f01]['isAdded']||_0x1ae764[_0x2f1f01]['isAddSuggestion'])&&_0x1ae764[_0x2f1f01-0x1]['isRemoved'])_0x472dd7=_0x1ae764[_0x2f1f01],_0x19ac9b=_0x1ae764[_0x2f1f01-0x1],_0x107df8=_0x2f1f01-0x1;else{if(!_0x1ae764[_0x2f1f01]['isRemoved']||!_0x1ae764[_0x2f1f01-0x1]['isAdded']&&!_0x1ae764[_0x2f1f01-0x1]['isAddSuggestion'])continue;_0x472dd7=_0x1ae764[_0x2f1f01-0x1],_0x19ac9b=_0x1ae764[_0x2f1f01],_0x107df8=_0x2f1f01;}const _0x1c8367=_0x472dd7['level']==_0x19ac9b['level'],_0x50d83e=Math['abs'](_0x472dd7['level'])<Math['abs'](_0x19ac9b['level'])&&0x0==_0x19ac9b['distance'];(_0x1c8367||_0x50d83e)&&(_0xc0b8b8['set'](_0x19ac9b['id'],_0x472dd7['id']),_0x1ae764['splice'](_0x107df8,0x1),_0x2f1f01--,_0x472dd7['isAdded']=!0x1);}for(let _0x3da937=0x0;_0x3da937<_0x1ae764['length'];_0x3da937++)_0xc0b8b8['has'](_0x1ae764[_0x3da937]['pairId'])&&(_0x1ae764[_0x3da937]['pairId']=_0xc0b8b8['get'](_0x1ae764[_0x3da937]['pairId']));}['_removeMissingPairs'](_0x4c6e7e){const _0x2d89a9=new Set(_0x4c6e7e['map'](_0xc3e0be=>_0xc3e0be['id']));for(let _0x1461c5=0x0;_0x1461c5<_0x4c6e7e['length'];_0x1461c5++)_0x2d89a9['has'](_0x4c6e7e[_0x1461c5]['pairId'])||0x0==_0x4c6e7e[_0x1461c5]['distance']||(_0x4c6e7e[_0x1461c5]['isIncorrect']=!0x0);return _0x4c6e7e['filter'](_0x358ff8=>!_0x358ff8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4106b6){const _0x4fb931=new Set();for(let _0x26ae9c=0x0;_0x26ae9c<_0x4106b6['length'];_0x26ae9c++){if(_0x4fb931['has'](_0x4106b6[_0x26ae9c]['id'])&&_0x4106b6[_0x26ae9c]['isRemoved']&&(_0x4106b6[_0x26ae9c]['isIncorrect']=!0x0),_0x4106b6[_0x26ae9c]['isIncorrect'])continue;if(0x0==_0x4106b6[_0x26ae9c]['distance'])continue;if('elementStart'!=_0x4106b6[_0x26ae9c]['type'])continue;if(null==_0x4106b6[_0x26ae9c]['pairId'])continue;let _0x2968e3=_0x26ae9c+0x1,_0x21b0c5=0x0;for(;_0x4106b6[_0x2968e3]['id']!=_0x4106b6[_0x26ae9c]['pairId'];)'elementStart'==_0x4106b6[_0x2968e3]['type']?_0x21b0c5++:'elementEnd'==_0x4106b6[_0x2968e3]['type']&&_0x21b0c5--,_0x2968e3++;if(0x0!=_0x21b0c5){if(_0x4106b6[_0x26ae9c]['isRemoved'])_0x4106b6[_0x26ae9c]['isIncorrect']=!0x0;else{for(;_0x2968e3!=_0x26ae9c;)_0x4106b6[_0x2968e3]['isRemoved']&&0x0!=_0x4106b6[_0x2968e3]['distance']&&(_0x4106b6[_0x2968e3]['isIncorrect']=!0x0,_0x4fb931['add'](_0x4106b6[_0x2968e3]['pairId'])),_0x2968e3--;}}}return _0x4106b6['filter'](_0x1af7f1=>!_0x1af7f1['isIncorrect']);}['_removeUnsupportedChanges'](_0x21cac2){const _0x179ec0=this['editor']['model']['schema'];for(let _0x5bb822=0x0;_0x5bb822<_0x21cac2['length'];_0x5bb822++){if(!(_0x21cac2[_0x5bb822]['isAdded']||_0x21cac2[_0x5bb822]['isAddSuggestion']||_0x21cac2[_0x5bb822]['isRemoved']||_0x21cac2[_0x5bb822]['isRemoveSuggestion']))continue;if(0x0==_0x21cac2[_0x5bb822]['distance'])continue;const _0x3d6cc8=_0x21cac2[_0x5bb822]['item'];_0x179ec0['isBlock'](_0x3d6cc8)||_0x179ec0['isLimit'](_0x3d6cc8)||(_0x21cac2[_0x5bb822]['isAdded']&&delete _0x21cac2[_0x5bb822]['isAdded'],_0x21cac2[_0x5bb822]['isAddSuggestion']&&delete _0x21cac2[_0x5bb822]['isAddSuggestion'],_0x21cac2[_0x5bb822]['isRemoveSuggestion']&&delete _0x21cac2[_0x5bb822]['isRemoveSuggestion'],_0x21cac2[_0x5bb822]['isRemoved']&&(_0x21cac2[_0x5bb822]['isIncorrect']=!0x0));}return _0x21cac2['filter'](_0x22e5bb=>!_0x22e5bb['isIncorrect']);}['_makeModelFromTape'](_0x3facee,_0x150883,_0x1e8bcb){const _0x46dc6b=new wt(),_0x17d38d=[],_0x3d20b7=new Map(),_0x56a1dd=this['editor']['model'],_0x6ae1e3=_0x56a1dd['schema'],_0x2e0808=[_0x46dc6b],_0x48bd3e={},_0xd057b4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x26ee2a=null;const _0x8592c8=[0x0];for(let _0x54c9b0=0x0;_0x54c9b0<_0x3facee['length'];_0x54c9b0++)if('elementStart'===_0x3facee[_0x54c9b0]['type']){_0x3facee[_0x54c9b0]['previousPosition']=_0x56a1dd['createPositionFromPath'](_0x46dc6b,_0x8592c8);const _0x5e9a9c=new ft(_0x3facee[_0x54c9b0]['item']['name'],_0x3facee[_0x54c9b0]['item']['getAttributes']());_0x2e0808[0x0]['_appendChild'](_0x5e9a9c),_0x8592c8['push'](0x0),_0x2e0808['unshift'](_0x5e9a9c),_0x3facee[_0x54c9b0]['nextPosition']=_0x56a1dd['createPositionFromPath'](_0x46dc6b,_0x8592c8);}else'elementEnd'===_0x3facee[_0x54c9b0]['type']?(_0x2e0808['shift'](),_0x3facee[_0x54c9b0]['previousPosition']=_0x56a1dd['createPositionFromPath'](_0x46dc6b,_0x8592c8),_0x8592c8['pop'](),_0x8592c8[_0x8592c8['length']-0x1]++,_0x3facee[_0x54c9b0]['nextPosition']=_0x56a1dd['createPositionFromPath'](_0x46dc6b,_0x8592c8)):(_0x3facee[_0x54c9b0]['previousPosition']=_0x56a1dd['createPositionFromPath'](_0x46dc6b,_0x8592c8),_0x26ee2a?_0x26ee2a['_data']+=_0x3facee[_0x54c9b0]['item']['data']:_0x26ee2a=new _t(_0x3facee[_0x54c9b0]['item']['data'],_0x3facee[_0x54c9b0]['item']['getAttributes']()),_0x3facee[_0x54c9b0+0x1]&&'text'===_0x3facee[_0x54c9b0+0x1]['type']&&_0x57d06f(_0x26ee2a,_0x3facee[_0x54c9b0+0x1]['item'])||(_0x2e0808[0x0]['_appendChild'](_0x26ee2a),_0x26ee2a=null),_0x8592c8[_0x8592c8['length']-0x1]+=_0x3facee[_0x54c9b0]['item']['offsetSize'],_0x3facee[_0x54c9b0]['nextPosition']=_0x56a1dd['createPositionFromPath'](_0x46dc6b,_0x8592c8));for(let _0x1c2a1b=0x0;_0x1c2a1b<_0x3facee['length'];_0x1c2a1b++){const _0x302a13=_0x3facee[_0x1c2a1b]['previousPosition'],_0x1405ae=_0x3facee[_0x1c2a1b]['nextPosition'];for(const _0x34e2dc of _0x3facee[_0x1c2a1b]['markersStart'])_0x3d20b7['set'](_0x34e2dc,{'start':_0x302a13,'end':null});_0x53d4ee('isRemoveSuggestion',_0x1c2a1b,_0x302a13,_0x1405ae),_0x53d4ee('isAddSuggestion',_0x1c2a1b,_0x302a13,_0x1405ae),_0x53d4ee('isRemoved',_0x1c2a1b,_0x302a13,_0x1405ae),_0x53d4ee('isAdded',_0x1c2a1b,_0x302a13,_0x1405ae);for(const _0x2bd7c4 of _0x3facee[_0x1c2a1b]['markersEnd']){_0x3d20b7['get'](_0x2bd7c4)['end']=_0x1405ae;}}for(const [_0x48d97f,_0x1f03ae]of _0x3d20b7){const _0x1546df=this['editor']['model']['createRange'](_0x1f03ae['start'],_0x1f03ae['end']);_0x46dc6b['markers']['set'](_0x48d97f,_0x1546df);}return _0x17d38d['sort']((_0x19b965,_0x533859)=>{const _0x1e919c=_0x46dc6b['markers']['get']('revision:'+_0x19b965['id']),_0x505801=_0x46dc6b['markers']['get']('revision:'+_0x533859['id']);return _0x1e919c['start']['isBefore'](_0x505801['start'])?-0x1:_0x1e919c['start']['isAfter'](_0x505801['start'])?0x1:_0x1e919c['end']['isBefore'](_0x505801['end'])?-0x1:_0x1e919c['end']['isAfter'](_0x505801['end'])?0x1:'add'===_0x19b965['type']?-0x1:0x1;}),{'root':_0x46dc6b,'changes':_0x17d38d};function _0x53d4ee(_0x17be67,_0x498bce,_0x399bed,_0x5a8060){const _0x265e99=!!_0x3facee[_0x498bce][_0x17be67],_0x3d669b=_0x265e99?_0x3facee[_0x498bce][_0x17be67]['userId']:null,_0x2419d5=_0x498bce===_0x3facee['length']-0x1,_0x2cd3c1=_0xd057b4[_0x17be67][0x0],_0x3ff94b=_0x6ae1e3['isObject'](_0x3facee[_0x498bce]['item']);!_0x48bd3e[_0x17be67]&&_0x265e99?_0x48bd3e[_0x17be67]={'start':_0x399bed,'tapeItem':_0x3facee[_0x498bce],'userId':_0x3d669b,'type':_0x17be67}:_0x48bd3e[_0x17be67]&&!_0x265e99?(_0x48bd3e[_0x17be67]['end']=_0x399bed,_0x4ac2ab(_0x48bd3e[_0x17be67]),_0x48bd3e[_0x17be67]=null):_0x48bd3e[_0x17be67]&&_0x265e99&&_0x48bd3e[_0x17be67]['userId']!==_0x3d669b&&(_0x48bd3e[_0x17be67]['end']=_0x399bed,_0x2cd3c1&&_0x2cd3c1['userId']===_0x48bd3e[_0x17be67]['userId']||_0x4ac2ab(_0x48bd3e[_0x17be67]),_0x48bd3e[_0x17be67]={'start':_0x399bed,'tapeItem':_0x3facee[_0x498bce],'userId':_0x3d669b,'type':_0x17be67}),_0x48bd3e[_0x17be67]&&_0x3ff94b&&('elementStart'!==_0x3facee[_0x498bce]['type']||_0x2cd3c1&&_0x2cd3c1['userId']===_0x3d669b||_0xd057b4[_0x17be67]['unshift']({'userId':_0x3d669b,'object':_0x3facee[_0x498bce]['item'],'change':_0x48bd3e[_0x17be67]}),'elementEnd'===_0x3facee[_0x498bce]['type']&&_0x2cd3c1&&_0x2cd3c1['object']===_0x3facee[_0x498bce]['item']&&(_0xd057b4[_0x17be67]['shift'](),_0x48bd3e[_0x17be67]=_0x2cd3c1['change'])),_0x48bd3e[_0x17be67]&&_0x2419d5&&(_0x48bd3e[_0x17be67]['end']=_0x5a8060,_0x4ac2ab(_0x48bd3e[_0x17be67]),_0x48bd3e[_0x17be67]=null);}function _0x4ac2ab({start:_0x36b0de,end:_0x1e74ed,tapeItem:_0x227327,userId:_0x332880,type:_0x30eda4}){const _0x39eb12=_0x227327['item'],_0x2f64c0=_0x56a1dd['schema']['isBlock'](_0x39eb12)&&!_0x56a1dd['schema']['isLimit'](_0x39eb12),_0x39fe50=_0x36b0de['nodeAfter']==_0x1e74ed['parent']&&_0x1e74ed['isAtStart'];if(_0x2f64c0&&_0x39fe50)return;const _0x1da7da=_0x56a1dd['createRange'](_0x36b0de,_0x1e74ed),_0x48eb8d=_0x150883['get'](_0x332880),_0x37267d=new r({'author':_0x48eb8d,'type':'isAdded'==_0x30eda4||'isAddSuggestion'==_0x30eda4?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x30eda4||'isRemoveSuggestion'==_0x30eda4},'createdAt':new Date(),'rootName':_0x1e8bcb});_0x17d38d['push'](_0x37267d),_0x46dc6b['markers']['set']('revision:'+_0x37267d['id'],_0x1da7da);}function _0x57d06f(_0x36c73a,_0x540dfc){const _0x33266c=_0x36c73a['getAttributes'](),_0x11784d=_0x540dfc['getAttributes']();for(const _0x4740dd of _0x33266c){if(_0x4740dd[0x1]!==_0x540dfc['getAttribute'](_0x4740dd[0x0]))return!0x1;_0x11784d['next']();}return _0x11784d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3f29d=>{const _0x120a4c=_0x3f29d['markerName']['split'](':')[0x1],_0x4b429d=this['_getChangeFromId'](_0x120a4c);if(!_0x4b429d)return null;const _0x4a7a48='add'==_0x4b429d['type']?'insertion':'deletion',_0x118e38=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4a7a48];return _0x4b429d['data']['isSuggestion']&&_0x118e38['push']('ck-suggestion-marker-'+_0x4a7a48+'-new'),this['activeChange']==_0x4b429d&&_0x118e38['push']('ck-suggestion-marker--active'),{'classes':_0x118e38,'attributes':{'data-change-id':_0x120a4c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x46ca84=>{_0x46ca84['on']('element:pre',(_0x236964,_0x1e0320,_0x4bcd8c)=>{const _0x397961=_0x1e0320['viewItem']['getChild'](0x0);if(!_0x397961||!_0x397961['is']('element','code'))return;if(!_0x4bcd8c['consumable']['consume'](_0x397961,{'attributes':['vid_start','vid_end']}))return;const _0x503d02=_0x1e0320['modelRange']['start']['nodeAfter'];_0x4bcd8c['writer']['setAttribute']('vid_start',_0x397961['getAttribute']('vid_start'),_0x503d02),_0x4bcd8c['writer']['setAttribute']('vid_end',_0x397961['getAttribute']('vid_end'),_0x503d02);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x34fe79=>{_0x34fe79['on']('element',(_0x49f43a,_0x23bf5e,_0x14d7d5)=>{if(!_0x14d7d5['consumable']['consume'](_0x23bf5e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x23bf5e['modelRange']['isCollapsed'])return;const _0x590f97=_0x23bf5e['modelRange']['start']['nodeAfter'];_0x590f97['hasAttribute']('vid_start')||_0x590f97['hasAttribute']('vid')||(_0x14d7d5['writer']['setAttribute']('vid_start',_0x23bf5e['viewItem']['getAttribute']('vid_start'),_0x590f97),_0x14d7d5['writer']['setAttribute']('vid_end',_0x23bf5e['viewItem']['getAttribute']('vid_end'),_0x590f97));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xff59bf=>_0xff59bf['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x31ef80,[,_0x43397a])=>{['vid_start','vid_end','vid']['includes'](_0x43397a)&&(_0x31ef80['return']=!0x0,_0x31ef80['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4e5359=>{_0x4e5359['on']('attribute:vid',(_0x49f90f,_0x468d24,_0x5c3843)=>{if('\x20'!=_0x468d24['item']['data']||_0x468d24['item']['parent']['maxOffset']>0x1)return;if(!_0x5c3843['consumable']['consume'](_0x468d24['item'],_0x49f90f['name']))return;const _0x3fca15=_0x5c3843['writer'],_0x15f018=_0x5c3843['mapper']['toViewRange'](_0x468d24['range']);_0x3fca15['wrap'](_0x15f018,_0x3fca15['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x8ba126){const _0x132bab=_0x8ba126['plugins']['get']('RevisionViewer');return(_0x24e820,_0x9bed69,_0x28993f)=>{const _0x5853aa=_0x9bed69['markerName']['split'](':')[0x1],_0x1b055f=_0x132bab['_getChangeFromId'](_0x5853aa);if(!_0x1b055f)return null;const _0xc1aeb0='add'==_0x1b055f['type']?'split':'merge';if(!_0x28993f['consumable']['test'](_0x9bed69['markerRange'],_0x24e820['name']))return;const _0x385571=_0x9bed69['markerRange']['getWalker'](),_0x1a91d6=_0x9bed69['markerRange']['start'],_0x23e34e=_0x8ba126['model']['schema'];let _0x5618e9=null,_0x57390f=null,_0xe74c11=!0x1,_0xd3e598=!0x1;for(const _0x540a9f of _0x385571){const _0x5f08e1=_0x540a9f['item'];_0xe74c11=_0xe74c11||_0x23e34e['isContent'](_0x5f08e1);const _0x3a16bd=_0x28993f['mapper']['toViewElement'](_0x5f08e1);if(_0x3a16bd&&_0x3a16bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x540a9f['type']&&(_0x23e34e['isBlock'](_0x5f08e1)&&!_0x23e34e['isLimit'](_0x5f08e1)&&(_0x5f08e1['nextSibling']||_0x1a91d6['isAtEnd']?_0x5618e9&&_0x5618e9['parent']==_0x5f08e1||(_0x5618e9=_0x5f08e1,_0x27b31f(_0x540a9f['previousPosition']),_0xd3e598=!0x0):_0x57390f=_0x57390f||_0x540a9f['previousPosition']));}function _0x27b31f(_0x5dbfae){const _0x43d3d3=_0x28993f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc1aeb0}),_0x4dae35=_0x28993f['mapper']['toViewPosition'](_0x5dbfae);_0x1b055f['data']['isSuggestion']&&_0x28993f['writer']['addClass']('ck-suggestion-marker-'+_0xc1aeb0+'-new',_0x43d3d3),_0x132bab['activeChange']==_0x1b055f&&_0x28993f['writer']['addClass']('ck-suggestion-marker--active',_0x43d3d3),_0x28993f['writer']['insert'](_0x4dae35,_0x43d3d3),_0x28993f['mapper']['bindElementToMarker'](_0x43d3d3,_0x9bed69['markerName']);}_0xe74c11||_0xd3e598||!_0x57390f||_0x27b31f(_0x57390f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x310aa1,_0x5c7eb6,_0x5013fc)=>{const _0x17d6a1=_0x5013fc['mapper']['markerNameToElements'](_0x5c7eb6['markerName']);if(_0x17d6a1){for(const _0x148837 of _0x17d6a1)(_0x148837['hasClass']('ck-suggestion-marker-split')||_0x148837['hasClass']('ck-suggestion-marker-merge'))&&(_0x5013fc['mapper']['unbindElementFromMarkerName'](_0x148837,_0x5c7eb6['markerName']),_0x5013fc['writer']['remove'](_0x148837));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x384cbb,_0x2878dc,_0x34aba4)=>{const _0x55c351=_0x2878dc['markerName']['split'](':')[0x1],_0x4b154c=this['_getChangeFromId'](_0x55c351);if(!_0x4b154c)return null;const _0x3b1402='add'==_0x4b154c['type']?'split':'merge';if(_0x34aba4['consumable']['test'](_0x2878dc['markerRange'],_0x384cbb['name']))for(const _0x177b72 of _0x2878dc['markerRange']['getItems']()){if(!_0x177b72['is']('element','softBreak'))continue;const _0x51eda6=_0x34aba4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b1402}),_0x18393e=_0x34aba4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x177b72));_0x4b154c['data']['isSuggestion']&&_0x34aba4['writer']['addClass']('ck-suggestion-marker-'+_0x3b1402+'-new',_0x51eda6),this['activeChange']==_0x4b154c&&_0x34aba4['writer']['addClass']('ck-suggestion-marker--active',_0x51eda6),_0x34aba4['writer']['insert'](_0x18393e,_0x51eda6),_0x34aba4['mapper']['bindElementToMarker'](_0x51eda6,_0x2878dc['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x46f661=>{for(const _0x30af6d of this['editor']['model']['document']['getRootNames']()){const _0x37619b=this['editor']['model']['document']['getRoot'](_0x30af6d),_0x740ef6=this['editor']['editing']['view']['document']['getRoot'](_0x30af6d);if(_0x740ef6){const _0x480a1e=_0x37619b['getAttribute']('revisionHistoryAttachChange');if(_0x46f661['removeAttribute']('data-change-id',_0x740ef6),_0x46f661['removeClass']('ck-revision-history-root-add',_0x740ef6),_0x46f661['removeClass']('ck-revision-history-root-remove',_0x740ef6),_0x46f661['removeClass']('ck-revision-history-root--active',_0x740ef6),_0x480a1e){const _0x375892=this['_getChangeFromId'](_0x480a1e);if(!_0x375892)return null;_0x46f661['setAttribute']('data-change-id',_0x480a1e,_0x740ef6),_0x46f661['addClass']('ck-revision-history-root-'+_0x375892['type'],_0x740ef6),this['activeChange']==_0x375892&&_0x46f661['addClass']('ck-revision-history-root--active',_0x740ef6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x411a11=>'revision-comment:'+_0x411a11,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x46112d=>'revision-suggestion:'+_0x46112d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3afff5=>({'name':'suggestion:'+_0x3afff5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x20dd94=>{const _0x50c4c7=_0x20dd94['markerName']['split'](':')[0x1];return'insertion'!=_0x50c4c7&&'deletion'!=_0x50c4c7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x50c4c7]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x24df38,_0x55a009,_0x2013e0)=>{const _0x43096a=_0x2013e0['mapper']['markerNameToElements'](_0x55a009['markerName']);if(_0x43096a){for(const _0x100076 of _0x43096a)_0x100076['is']('uiElement')&&(_0x2013e0['mapper']['unbindElementFromMarkerName'](_0x100076,_0x55a009['markerName']),_0x2013e0['writer']['remove'](_0x100076));}},{'priority':'high'});}['_getChangeFromId'](_0x33f90a){return this['_changeIdToChange']['get'](_0x33f90a);}['_getViewForChange'](_0x2fe882){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x2fe882),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xe2be2e,_0x16ba33,_0x32b13f,_0x3ce6ec)=>{_0x3ce6ec&&this['_balloon']['remove'](_0x3ce6ec),_0x32b13f&&(this['_balloon']['add']({'view':_0x32b13f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xd387df=this['editor']['editing'],_0x1ad32d=this['_getChangeFromId'](_0x32b13f['changeId']);let _0x433a70;if(_0x1ad32d['data']['isOnRoot']){const _0x18fc31=_0xd387df['view']['getDomRoot'](_0x1ad32d['rootName']);_0x433a70=Array['from'](_0x18fc31['getClientRects']());}else{const _0x510aac=this['editor']['model']['markers']['get']('revision:'+_0x32b13f['changeId']);_0x433a70=Array['from'](_0xd387df['mapper']['markerNameToElements'](_0x510aac['name']))['map'](_0x581aee=>_0xd387df['view']['domConverter']['mapViewToDom'](_0x581aee))['map'](_0x16483b=>Array['from'](_0x16483b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x433a70[0x0];return _0x433a70['find'](_0x331280=>_0x331280['top']-0x3<=this['_activeViewTarget']['y']&&_0x331280['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x331280['left']-0x3<=this['_activeViewTarget']['x']&&_0x331280['right']+0x3>=this['_activeViewTarget']['x'])||_0x433a70[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x48e6bc,_0x45c162,_0x481caa,_0x2c214a)=>{this['activeView']=_0x481caa?this['_getViewForChange'](_0x481caa):null,this['editor']['model']['change'](()=>{const _0x26d54d=this['editor']['editing'];_0x2c214a&&(_0x2c214a['data']['isOnRoot']?_0x26d54d['view']['change'](_0x5807af=>{_0x5807af['removeClass']('ck-revision-history-root--active',_0x26d54d['view']['document']['getRoot'](_0x2c214a['rootName']));}):_0x26d54d['reconvertMarker']('revision:'+_0x2c214a['id'])),_0x481caa&&(_0x481caa['data']['isOnRoot']?_0x26d54d['view']['change'](_0x327218=>{_0x327218['addClass']('ck-revision-history-root--active',_0x26d54d['view']['document']['getRoot'](_0x481caa['rootName']));}):_0x26d54d['reconvertMarker']('revision:'+_0x481caa['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xd5f81a,_0x33f201)=>{if(this['activeChange'])return;const _0x5a3213=this['_findChangeIdFromDomTarget'](_0x33f201['target']),_0x1092d2=this['_changeIdToChange']['get'](_0x5a3213);_0x1092d2?(this['_activeViewTarget']={'x':_0x33f201['domEvent']['x'],'y':_0x33f201['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1092d2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x28ef4f,_0x3e2940)=>{const _0x13d0e6=this['_findChangeIdFromDomTarget'](_0x3e2940['target']),_0x3edd44=this['_changeIdToChange']['get'](_0x13d0e6);_0x3edd44?(this['_activeViewTarget']={'x':_0x3e2940['domEvent']['x'],'y':_0x3e2940['domEvent']['y']},_0x3edd44===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3edd44):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xd410d0){do{const _0x3b9d4b=_0xd410d0['getAttribute']('data-change-id');if(_0x3b9d4b)return _0x3b9d4b;_0xd410d0=_0xd410d0['parent'];}while(_0xd410d0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x9b0a9a=>{for(const _0x170489 of this['editor']['model']['markers'])_0x9b0a9a['removeMarker'](_0x170489);});}}function tt(_0x58e5d7,_0x1a3169){return(_0x3dc752,_0x50e0ed,_0x5c6b8f)=>{if(!_0x5c6b8f['consumable']['test'](_0x50e0ed['markerRange'],_0x3dc752['name']))return;const _0x4a52db=_0x50e0ed['markerRange']['getWalker'](),_0x1b90e8=_0x50e0ed['markerRange']['start'],_0x314620=_0x58e5d7['model']['schema'];let _0x52abe8=null,_0x59e13b=null,_0x4c511f=!0x1,_0x516831=!0x1;for(const _0xf7649d of _0x4a52db){const _0x571ee6=_0xf7649d['item'];_0x4c511f=_0x4c511f||_0x314620['isContent'](_0x571ee6);const _0x26d748=_0x5c6b8f['mapper']['toViewElement'](_0x571ee6);if(_0x26d748&&_0x26d748['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xf7649d['type']&&(_0x314620['isBlock'](_0x571ee6)&&!_0x314620['isLimit'](_0x571ee6)&&(_0x571ee6['nextSibling']||_0x1b90e8['isAtEnd']?_0x52abe8&&_0x52abe8['parent']==_0x571ee6||(_0x52abe8=_0x571ee6,_0x1ded96(_0xf7649d['previousPosition']),_0x516831=!0x0):_0x59e13b=_0x59e13b||_0xf7649d['previousPosition']));}function _0x1ded96(_0x788e8d){const _0x58fae6=_0x5c6b8f['mapper']['toViewPosition'](_0x788e8d),_0xb06ea5=_0x5c6b8f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1a3169});_0x5c6b8f['writer']['insert'](_0x58fae6,_0xb06ea5),_0x5c6b8f['mapper']['bindElementToMarker'](_0xb06ea5,_0x50e0ed['markerName']);}_0x4c511f||_0x516831||!_0x59e13b||_0x1ded96(_0x59e13b);};}class yt extends _0xb5c857{constructor(_0x273fe9){super(_0x273fe9);const _0x4a8231=_0x273fe9['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4a8231,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4a8231,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4d3267=this['editor'],_0x3d8447=_0x4d3267['plugins']['get'](d),_0xc67d93=_0x3d8447['isReady']?_0x3d8447['diff']['newRevisionId']:null;_0x4d3267['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xc67d93);}['refresh'](){const {isReady:_0x3f584a,isEnabled:_0x52532c,repository:_0x58eaf9,diff:_0x48c41e}=this['editor']['plugins']['get'](d),_0x23d6fe=_0x48c41e&&_0x58eaf9['getLaterVisibleRevision'](_0x48c41e['newRevisionId']);this['isEnabled']=_0x3f584a&&_0x52532c&&Boolean(_0x23d6fe);}}class bt extends _0xb5c857{['_step'];constructor(_0xf89795,{direction:_0x22f45a}){super(_0xf89795);const _0x5e6005=_0xf89795['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x22f45a?0x1:-0x1,this['listenTo'](_0x5e6005,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5e6005,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5e6005,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x14f7cc=this['editor'],_0x29f42e=_0x14f7cc['plugins']['get'](d),{isNavigationMode:_0x399abc,currentChangeNumber:_0x543f89}=_0x29f42e;let _0x3939cc;if(_0x29f42e['activeChange']=_0x399abc?_0x29f42e['diff']['changes']['get'](_0x543f89+this['_step']):_0x29f42e['diff']['changes']['first'],_0x29f42e['activeChange']['data']['isOnRoot'])_0x3939cc=_0x14f7cc['editing']['view']['getDomRoot'](_0x29f42e['activeChange']['rootName']);else{const _0x218215=_0x14f7cc['model']['markers']['get']('revision:'+_0x29f42e['activeChange']['id']);_0x3939cc=_0x1b4d9f(_0x14f7cc['editing'],_0x218215);}_0x56f3c7({'target':_0x3939cc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x30d635,currentChangeNumber:_0x27e5f1,numberOfChanges:_0x3905d3,isReady:_0x58e4d4,isEnabled:_0x478e41}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x478e41&&_0x58e4d4&&_0x3905d3)&&(!_0x30d635||(0x1===this['_step']?_0x27e5f1<_0x3905d3-0x1:_0x27e5f1>0x0));}}class di extends _0x5671f8{constructor(_0x4b3494){super(_0x4b3494);const _0xc76627=this['bindTemplate'],_0x544c34=new _0x5df855(_0x4b3494),_0x4aca68=new _0x5df855(_0x4b3494);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',(_0xf6d57c,_0x522671)=>_0xf6d57c&&_0x522671>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x136b5c,_0x289fc0,_0x2ebc18,_0x4ed63b)=>{if(!_0x136b5c)return R(_0x4b3494,'Loading...');if(!_0x2ebc18)return R(_0x4b3494,'No\x20changes');const _0x4c6b63=R(_0x4b3494,'NUMBER_OF_CHANGES',_0x2ebc18);return _0x4ed63b?R(_0x4b3494,'X_OF_Y_CHANGES',[_0x289fc0+0x1,_0x2ebc18]):_0x4c6b63;}),_0x544c34['set']({'label':R(_0x4b3494,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x4aca68['set']({'label':R(_0x4b3494,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x544c34['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4aca68['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x544c34['on']('execute',()=>this['fire']('execute','backward')),_0x4aca68['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',_0xc76627['if']('_isStatusLabelVisible','ck-hidden',_0x2f8fb4=>!_0x2f8fb4)]},'children':[{'text':_0xc76627['to']('isNavigationMode',_0x5e4906=>_0x5e4906?R(_0x4b3494,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4b3494,'Total')+':\x20')}]},{'text':_0xc76627['to']('_statusText')}]},new _0x143a44(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x544c34,_0x4aca68]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x1be25d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5c6083=this['editor']['editing']['view'];_0x5c6083['change'](_0x263b94=>{for(const _0x23af3f of _0x5c6083['document']['roots'])_0x263b94['addClass'](ce,_0x23af3f);});}['hide'](){const _0x3f9076=this['editor']['editing']['view'];_0x3f9076['change'](_0x4bcbfd=>{for(const _0x11cf90 of _0x3f9076['document']['roots'])_0x4bcbfd['removeClass'](ce,_0x11cf90);});}}class m extends _0x1be25d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x6536a4=this['editor'],_0x37ed80=_0x6536a4['plugins']['get'](d),_0x39e844=_0x6536a4['plugins']['get'](ae);_0x6536a4['ui']['componentFactory']['add']('exitToEditing',_0x1b1d59=>{const _0x1a8579=new _0x5df855(_0x1b1d59);return _0x1a8579['set']({'label':R(_0x1b1d59,'Back\x20to\x20editing'),'icon':_0x5f15d8['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1a8579,'execute',()=>{_0x6536a4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1a8579;}),_0x6536a4['ui']['componentFactory']['add']('restoreRevision',_0x5cf13d=>{const _0x5ab25f=new _0x5df855(_0x5cf13d);return _0x5ab25f['set']({'label':R(_0x5cf13d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5ab25f['bind']('isEnabled')['to'](_0x6536a4['commands']['get']('restoreRevision')),this['listenTo'](_0x5ab25f,'execute',()=>_0x6536a4['execute']('restoreRevision')),_0x5ab25f;}),_0x6536a4['ui']['componentFactory']['add']('changesNavigation',_0x5cec7d=>{const _0x3a95a0=new di(_0x5cec7d),_0x272ee6=_0x6536a4['commands']['get']('showPreviousChange'),_0x509ee4=_0x6536a4['commands']['get']('showNextChange');return _0x3a95a0['bind']('isBackwardNavigationEnabled')['to'](_0x272ee6,'isEnabled'),_0x3a95a0['bind']('isForwardNavigationEnabled')['to'](_0x509ee4,'isEnabled'),_0x3a95a0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x37ed80),this['listenTo'](_0x3a95a0,'execute',(_0x5d2ebf,_0x2687d0)=>{_0x6536a4['execute']('forward'===_0x2687d0?'showNextChange':'showPreviousChange');}),_0x3a95a0;}),_0x39e844['show'](),_0x37ed80['on']('change:isReady',(_0x44a180,_0x17f8b6,_0x31a245)=>{_0x31a245?_0x39e844['hide']():_0x39e844['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0xd00795,_0x1ed9ed){super(_0xd00795,_0x1ed9ed);const _0x210e90=this['bindTemplate'];this['set']({'label':R(_0xd00795,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xd00795,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x210e90['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 _0x2c6691=this['fieldView']['element'];this['_tooltipString']=_0x2c6691['scrollWidth']>_0x2c6691['clientWidth']&&_0x2c6691['value']||'';}}class ti extends _0x5671f8{constructor(_0x3db458,_0x1b0736,_0x3cad8e){super(_0x3db458);const _0x168832=new _0x46e106();_0x168832['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x398461=['ck','ck-revision-history-sidebar__revision-author'];_0x3cad8e&&_0x398461['push']('ck-revision-history-sidebar__revision-author_creator');const _0x423979=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3db458,_0x3cad8e?'Revision\x20creator':'Revision\x20author')},'children':[_0x168832,_0x1b0736['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x398461},'children':_0x423979});}}function ni(_0x3f0c12,_0x815fbe){const _0x344ac4=_0x3f0c12['bindTemplate'],_0x36d4ca=_0x3f0c12['locale'],_0x1cfbc0=_0x40d335(_0x36d4ca);_0x1cfbc0['panelPosition']='sw';const _0x441abb=function(_0x1e90c7,_0x598efa){const _0x5052aa=function(_0x4f7b2d,_0x4daa24){const _0x58c426=_0x4f7b2d['locale'],_0xb0b268={'Compare\x20against\x20selected':R(_0x58c426,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x58c426,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x58c426,'Restore\x20this\x20revision')};return _0x4daa24['map'](_0x547963=>{const _0x28470a=_0xb0b268[_0x547963['name']];return _0x28470a&&_0x28470a!==_0x547963['name']&&(_0x547963['name']=_0x28470a),_0x547963;});}(_0x1e90c7,_0x598efa),_0x521905=new _0x1833d0();for(const _0x152d4b of _0x5052aa){const _0x1fd00a={'type':'button','model':new to({'label':_0x152d4b['name'],'class':_0x152d4b['class'],'withText':!0x0,'role':'menuitem','_action':_0x152d4b['action']})};_0x1fd00a['model']['bind']('isEnabled')['to'](_0x1e90c7,'isActionsDropdownOpen',_0x13e6ed=>'function'!=typeof _0x152d4b['isEnabled']||(!_0x13e6ed||_0x152d4b['isEnabled'](_0x1e90c7))),_0x521905['add'](_0x1fd00a);}return _0x521905;}(_0x3f0c12,_0x815fbe);return _0x3f0c12['bind']('isActionsDropdownOpen')['to'](_0x1cfbc0,'isOpen'),_0x1cfbc0['buttonView']['set']({'label':R(_0x36d4ca,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5f15d8['threeVerticalDots']}),_0x1cfbc0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x344ac4['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x344ac4['to'](_0x509a5b=>_0x509a5b['stopPropagation']())}}),_0x1cfbc0['on']('execute',_0x1cbb72=>{_0x3f0c12['isReady']&&'function'==typeof _0x1cbb72['source']['_action']&&_0x1cbb72['source']['_action'](_0x3f0c12);}),_0x22ca03(_0x1cfbc0,_0x441abb,{'role':'menu'}),_0x1cfbc0['listenTo'](_0x3f0c12,'change:isActionsDropdownOpen',(_0xeded79,_0x1b4b3c,_0x2367e1)=>{if(_0x2367e1)for(const _0x597676 of _0x1cfbc0['listView']['items']){const _0xd709ed=_0x597676['children']['first'],_0x11e023=_0x815fbe['find'](_0x58541f=>_0x58541f['action']===_0xd709ed['_action'])['isVisible'];_0x597676['isVisible']=void 0x0===_0x11e023||_0x11e023(_0x3f0c12);}}),_0x1cfbc0;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1d00e1(_0x5671f8){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4a1a96,_0x4e2857,_0x46ef5c,_0x3da980){super(_0x4a1a96);const _0x32db3f=this['bindTemplate'],_0x1b8741=function(_0x1a4c5f,_0x3b1eb8){const _0x1220d6=Array['from'](_0x3b1eb8['authors'])['filter'](_0x124be6=>_0x124be6!=_0x3b1eb8['creator']);return _0x3b1eb8['creator']&&_0x1220d6['unshift'](_0x3b1eb8['creator']),_0x1220d6['map'](_0x3ebd54=>new ti(_0x1a4c5f,_0x3ebd54,_0x3ebd54==_0x3b1eb8['creator']));}(_0x4a1a96,_0x4e2857);this['id']=_0x4e2857['id'],this['_revision']=_0x4e2857,this['_requireRevisionName']=_0x3da980,this['bind']('name','createdAt')['to'](_0x4e2857),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x277e82=>{return _0x423390=_0x4a1a96['uiLanguage'],(_0x4f2768=_0x277e82)['toLocaleDateString'](_0x423390,{'month':'long','day':'numeric'})+',\x20'+_0x4f2768['toLocaleTimeString'](_0x423390,{'hour':'numeric','minute':'numeric'});var _0x423390,_0x4f2768;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x4a1a96,_0x11a751),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4a0f4c=>_0x4a0f4c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x21fcb2,_0x206f88)=>_0x21fcb2&&_0x206f88),this['revisionActionsView']=_0x46ef5c&&_0x46ef5c['length']?ni(this,_0x46ef5c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x32db3f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x32db3f['if']('isEnabled','ck-disabled',_0x192db6=>!_0x192db6),_0x32db3f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x32db3f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x32db3f['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':_0x32db3f['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':_0x1b8741}]},this['revisionActionsView']],'on':{'click':_0x32db3f['to'](_0x2c8d81=>{_0x2c8d81['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5b4742=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5b4742,'change',()=>{this['_requireRevisionName']&&!_0x5b4742['value']||this['fire']('setName',{'id':this['id'],'name':_0x5b4742['value']}),_0x5b4742['value']||(_0x5b4742['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x42a5c1,_0x446d11){const _0x486d44=_0x583a3e['fromJSDate'](_0x42a5c1)['setLocale'](_0x446d11),_0x3bcd54=_0x583a3e['local'](),_0x3b7541=_0x3bcd54['minus']({'days':0x1})['startOf']('day');let _0x572e3b,_0x45e103;return _0x486d44['hasSame'](_0x3bcd54,'day')?(_0x572e3b=_0x486d44['startOf']('day')['toJSDate'](),_0x45e103=_0x486d44['toRelativeCalendar']()):_0x486d44['hasSame'](_0x3b7541,'day')?(_0x572e3b=_0x3b7541['toJSDate'](),_0x45e103=_0x486d44['toRelativeCalendar']()):_0x486d44['hasSame'](_0x3bcd54,'week')?(_0x572e3b=_0x486d44['startOf']('week')['toJSDate'](),_0x45e103=_0x486d44['weekdayLong']||''):_0x486d44['hasSame'](_0x3bcd54,'year')?(_0x572e3b=_0x486d44['startOf']('month')['toJSDate'](),_0x45e103=_0x486d44['monthLong']||''):(_0x572e3b=_0x486d44['startOf']('year')['toJSDate'](),_0x45e103=String(_0x486d44['year'])),{'startDate':_0x572e3b,'localizedPeriodName':_0x45e103};}class vi extends _0x5671f8{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1f4759,_0x4f7468,_0x40dfd9,_0x3eb048){super(_0x1f4759);const _0x445067=mi(_0x4f7468,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4f7468,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x40dfd9,this['_requireRevisionName']=_0x3eb048,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':_0x445067}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4822f1){const _0x41b747=new ai(this['locale'],_0x4822f1,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x41b747);}['removeRevision'](_0x9771a0){const _0x2ad766=this['revisionViews']['find'](_0x52e349=>_0x52e349['id']===_0x9771a0['id']);this['revisionViews']['remove'](_0x2ad766);}}class as extends _0x5671f8{constructor(_0xb6304c){super(_0xb6304c);const _0x19a76e=new _0x46e106();_0x19a76e['content']=_0x5f15d8['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x19a76e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xb6304c,'Revision\x20history')]}]});}}class li extends _0x5671f8{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d0797,_0x2d0b82,_0x34d8a8,_0xed16bd){super(_0x3d0797);const _0x3637ed=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2d0b82,this['_revisionActions']=_0x34d8a8,this['_requireRevisionName']=_0xed16bd,this['on']('select',(_0x47a442,_0x2401fe)=>{this['fire']('revisionSelected',_0x2401fe);}),this['on']('setName',(_0xc1c24,_0x5ec8c1)=>{this['fire']('revisionSetName',_0x5ec8c1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3d0797),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3637ed['if']('isEnabled','ck-disabled',_0x39118b=>!_0x39118b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x199f7d of this['_revisions'])this['_addRevision'](_0x199f7d);this['_revisions']['on']('add',(_0x14b9dd,_0x459afe)=>{this['_addRevision'](_0x459afe);}),this['_revisions']['on']('remove',(_0x2e3864,_0x14f2f4)=>{this['_removeRevision'](_0x14f2f4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x225b09=>_0x225b09['revisionViews']['map'](_0x2c794e=>_0x2c794e))['flat']();}['selectRevision'](_0x4798ee){for(const _0x3526a4 of this['revisionViews'])_0x4798ee&&_0x4798ee['id']===_0x3526a4['id']?_0x3526a4['select']():_0x3526a4['deselect']();}['highlightRevisions'](_0x5ccbe6){for(const _0x1763c1 of this['revisionViews'])_0x5ccbe6['some'](({id:_0x137b43})=>_0x137b43===_0x1763c1['id'])?_0x1763c1['highlight']():_0x1763c1['unhighlight']();}['_addRevision'](_0x16ad72){const _0x1d932b=mi(_0x16ad72['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x12813e=this['timePeriodViews']['get'](0x0);_0x12813e&&_0x12813e['startDate']['getTime']()===_0x1d932b['getTime']()||(_0x12813e=new vi(this['locale'],_0x1d932b,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x12813e)),_0x12813e['addRevision'](_0x16ad72);}['_removeRevision'](_0x4cf983){const _0x2beffb=mi(_0x4cf983['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2beffb)['removeRevision'](_0x4cf983);}['_getTimePeriodViewByStartDate'](_0x52d0e7){return this['timePeriodViews']['find'](_0x4c8912=>_0x4c8912['startDate']['getTime']()===_0x52d0e7['getTime']());}}class g extends _0x1be25d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x108dae,_0x9fe8a7){super(_0x9fe8a7),this['sourceElement']=_0x108dae,this['model']['document']['createRoot']();const _0x2560f0=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x2560f0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x259cca,_0x46ad0e){const _0x547c73=new this(_0x259cca,_0x46ad0e);return await _0x547c73['initPlugins'](),await _0x547c73['ui']['init'](_0x259cca),await _0x547c73['data']['init'](_0x547c73['config']['get']('initialData')||''),_0x547c73['fire']('ready'),_0x547c73;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x481e5f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31a5df){function _0x34393e(_0x54b566){return _0x54b566['map'](_0xa0569=>String['fromCharCode'](_0xa0569))['join']('');}super(_0x31a5df),this['result']='end',_0x31a5df[_0x34393e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34393e([0x76,0x69,0x65,0x77])][_0x34393e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34393e([0x61,0x75,0x74,0x6f]),_0x31a5df[_0x34393e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x34393e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34393e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x34393e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x34393e([0x6f,0x6b])});}}class H extends _0x481e5f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xfb29ad){if(super(_0xfb29ad),!this['editor']['config']['get']('revisionHistory'))throw new _0x69c6d1('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x249ad1=>this['_showRevisionViewer']({..._0x249ad1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x8f8f2a=>this['_closeRevisionViewer'](_0x8f8f2a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x13659a=>this['_restoreRevision'](_0x13659a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2a981c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2a981c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1bab66){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1bab66);}['getRevision'](_0x8eccff){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x8eccff);}['getRevisions'](_0x93081c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x93081c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x27aa65=this['editor'],_0x502cc3=_0x2f5274(_0x27aa65,p),_0x4f6705=_0x27aa65['plugins']['get']('RevisionTracker'),_0x1f73a0=_0x27aa65['plugins']['get']('Users')['users'];return _0x502cc3['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x502cc3['lazyRoots'],(_0x502cc3['plugins']['push'](k,d,m,class extends _0x481e5f{static get['requires'](){return[d,'Users'];}['init'](){const _0x33c9ce=this['editor']['plugins']['get']('Users');for(const _0xb1e00d of _0x1f73a0)_0xb1e00d['isAnonymous']||_0x33c9ce['getUser'](_0xb1e00d['id'])||_0x33c9ce['addUser'](_0xb1e00d);const _0x57d354=_0x4f6705['repository']['getRevisions']();let _0xb4e93d=null;const _0x36aacb=this['editor']['plugins']['get']('RevisionViewer');_0x36aacb['adapter']=_0x4f6705['adapter'],_0x36aacb['bind']('isEnabled')['to'](_0x4f6705),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x27aa65,'isReadOnly',_0x26dbf9=>!_0x26dbf9);for(const _0x206af2 of _0x57d354){const _0xa802ae=null===_0x206af2['creator'];if(_0xa802ae&&_0x206af2['toVersion']===_0x206af2['fromVersion'])continue;const _0x1e75ea=_0x206af2['toJSON']();_0x36aacb['addRevisionData'](_0x1e75ea,(_0x4343c9,_0x32c8dd,_0x3189fd)=>{if(_0xa802ae){if(_0xb4e93d)_0xb4e93d['_update'](_0x4343c9,_0x32c8dd);else{if(!_0x32c8dd){const _0x2923eb=_0x3189fd['toJSON']();_0x2923eb['id']=_0x5b7893(),_0x4f6705['saveRevision'](_0x2923eb,_0x3189fd['toVersion'])['then'](_0x292ea6=>{_0xb4e93d=_0x292ea6;});}}}else _0x206af2['_update'](_0x4343c9,_0x32c8dd);});}}},g),_0x502cc3);}['_enhanceShowRevisionViewerCallback'](){const _0x5e74fc=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x50136a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xf299d=this['editor']['plugins']['get']('Autosave');await _0xf299d['save']();}else await _0x50136a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x254501=this['editor']['plugins']['get']('Dialog');_0x254501['isOpen']&&_0x254501['hide']();}const _0x771015=this['_getRevisionViewerEditorConfig']();return _0x5e74fc(_0x771015)['then'](_0x14eaba=>{return(this['_viewerEditor']=_0x14eaba,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x14eaba;})['catch'](_0x1c8273=>(console['error'](_0x1c8273),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xc6f775=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'](),_0xc6f775(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4b31cc=this['editor']['plugins']['get']('Annotations');_0x4b31cc['refreshVisibility'](),_0x4b31cc['refreshPositioning']();}})));}['_showRevisionViewer'](_0x51037c){const _0x29b17f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2b82c5=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x599b23=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x599b23,_0x51037c)['then'](_0x1167ab=>(_0x2b82c5['style']['display']='block',_0x29b17f['style']['display']='none',_0x1167ab));}['_closeRevisionViewer'](_0x5e3fa1){const _0x1fe930=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1fe930['style']['display']='',_0x5e3fa1['destroy']();}async['_restoreRevision'](_0xfeadd4){const _0x519ef1=this['editor'],_0x581acd=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x392701=_0x519ef1['plugins']['get']('RevisionTracker'),_0x43d57c=_0x581acd['repository']['getRevision'](_0xfeadd4);let _0x4b5bc4,_0x1063b2,_0x55e2ec;try{_0x4b5bc4=await _0x581acd['getRevisionData'](_0x43d57c),_0x1063b2=await _0x581acd['getRevisionRootsAttributes'](_0x43d57c);}catch(_0x2f9681){return void console['error'](_0x2f9681);}_0x519ef1['model']['change'](_0x5a6eee=>{for(const _0x107d9b of Array['from'](_0x519ef1['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5a6eee['removeMarker'](_0x107d9b);}),_0x581acd['isReady']=!0x1,_0x519ef1['model']['enqueueChange'](_0x5423bf=>{_0x5423bf['setSelection'](null),_0x5423bf['removeSelectionAttribute'](_0x519ef1['model']['document']['selection']['getAttributeKeys']());const _0x2debc2=Object['keys'](_0x4b5bc4);for(const _0x3de2c7 of _0x519ef1['model']['document']['roots'])'$graveyard'!=_0x3de2c7['rootName']&&_0x3de2c7['isAttached']()&&!_0x2debc2['includes'](_0x3de2c7['rootName'])&&_0x5423bf['detachRoot'](_0x3de2c7);for(const _0x5800b9 of _0x2debc2){let _0x56f5b1=_0x519ef1['model']['document']['getRoot'](_0x5800b9);_0x56f5b1&&_0x56f5b1['isAttached']()||(_0x56f5b1=_0x5423bf['addRoot'](_0x5800b9));const _0x10ad0a=_0x1063b2[_0x5800b9],_0x57a991=Object['keys'](_0x10ad0a),_0x25d243=_0x4b5bc4[_0x5800b9];for(const _0x583906 of _0x56f5b1['getAttributeKeys']())_0x57a991['includes'](_0x583906)||_0x5423bf['removeAttribute'](_0x583906,_0x56f5b1);for(const _0x2b8d52 of _0x57a991)_0x5423bf['setAttribute'](_0x2b8d52,_0x1063b2[_0x5800b9][_0x2b8d52],_0x56f5b1);_0x5423bf['remove'](_0x5423bf['createRangeIn'](_0x56f5b1)),_0x5423bf['insert'](_0x519ef1['data']['parse'](_0x25d243,_0x56f5b1),_0x56f5b1,0x0);}});const _0x3f9413=R(_0x519ef1['locale'],'Restored');if(_0x43d57c['name'])_0x55e2ec=-0x1==_0x43d57c['name']['indexOf'](_0x3f9413)?_0x3f9413+':\x20'+_0x43d57c['name']:_0x43d57c['name'];else _0x55e2ec=_0x3f9413+':\x20'+(_0x43d57c['createdAt']['toLocaleDateString'](_0x519ef1['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x43d57c['createdAt']['toLocaleTimeString'](_0x519ef1['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x392701['saveRevision']({'name':_0x55e2ec}),_0x581acd['isReady']=!0x0,_0x519ef1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0xd7d7fb){super(_0xd7d7fb),this['_revisionViewer']=_0xd7d7fb['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x509cd2=this['_revisionsRepository']['_revisions'],_0x5750cf=this['_createRevisionActions'](),_0x108a65=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x509cd2,_0x5750cf,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',(_0x5c0313,_0x2af81b)=>{_0x2af81b['revisionViews']['on']('add',(_0x527ec6,_0x5b7a72)=>{_0x5b7a72['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)),_0x108a65['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x162260=this['_revisionsRepository']['getRevision'](0x0);if(_0x162260){const _0x23f377=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x162260['id']);this['_revisionViewer']['compare'](_0x162260,_0x23f377);}}['_handleRevisionSelected'](_0x64e134,_0xe099cc){const _0x2ba344=this['_revisionsRepository']['getRevision'](_0xe099cc['id']),_0x37cca9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2ba344['id']);this['_revisionViewer']['compare'](_0x2ba344,_0x37cca9);}['_handleRevisionSetName'](_0x32b5a2,_0xc90d51){this['_revisionsRepository']['getRevision'](_0xc90d51['id'])['setName'](_0xc90d51['name']);}['_handleDiffChange'](_0x23d552,_0x2b71c5,_0x5ad293){const _0x5176ae=this['_revisionsRepository']['getRevisionsInDiff'](_0x5ad293);_0x5176ae['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5176ae),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5176ae[0x0]));}['_createRevisionActions'](){const _0x148cd8=this['editor'],_0x5038db=g['availableRevisionActions'],_0x1d3a36=_0x148cd8['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1d3a36['length'])return _0x1d3a36['map'](_0x2ae0a5=>{const _0x45e58e='string'==typeof _0x2ae0a5?Object['assign']({},_0x5038db[_0x2ae0a5]):_0x2ae0a5;return _0x45e58e['action']=_0x45e58e['action']['bind'](this,_0x148cd8),_0x45e58e['isVisible']&&(_0x45e58e['isVisible']=_0x45e58e['isVisible']['bind'](this,_0x148cd8)),_0x45e58e;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x870701},_0x533561)=>{const _0x21c22c=_0x870701['get'](d),_0x35f05f=_0x21c22c['repository'];let _0x30aa04=_0x21c22c['diff']['newRevisionId'],_0x26268b=_0x533561['id'];_0x35f05f['getIndex'](_0x30aa04)>_0x35f05f['getIndex'](_0x26268b)&&([_0x30aa04,_0x26268b]=[_0x26268b,_0x30aa04]),_0x21c22c['compare'](_0x30aa04,_0x26268b);},'isVisible':({plugins:_0x5daa7c},_0x1fe03e)=>{const _0x126b54=_0x5daa7c['get'](d);return!(_0x126b54['repository']['getRevisionsInDiff'](_0x126b54['diff'])['length']>0x2)&&!_0x1fe03e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2d453d,{id:_0x1d2d14})=>{_0x2d453d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1d2d14);},'isVisible':({plugins:_0x41ff03},_0x245cd2)=>!!_0x41ff03['get'](d)['repository']['getLaterVisibleRevision'](_0x245cd2['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3d94c7},{id:_0x2de35a,revisionNameView:_0x4a0633})=>{const _0x4dcee8=_0x3d94c7['get'](d),_0x30a79c=_0x4dcee8['repository']['getEarlierVisibleRevision'](_0x2de35a);_0x4dcee8['compare'](_0x2de35a,_0x30a79c),_0x4a0633['focus'](),_0x4a0633['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x9a5ab9,_0x4d6e97){super(_0x9a5ab9),this['_view']=_0x4d6e97,this['_toolbarConfig']=ht(_0x9a5ab9['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0xcb82f){const _0x3aa305=this['editor'],_0x3d8718=this['view'],_0x173197=_0x3aa305['editing']['view'],_0x313f34=_0x3d8718['editable'],_0x59d4f4=_0x173197['document']['getRoot']();_0x313f34['name']=_0x59d4f4['rootName'],_0x3d8718['render']();const _0x2b4f6b=_0x313f34['element'];this['setEditableElement'](_0x313f34['name'],_0x2b4f6b),_0x3d8718['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x173197['attachDomRoot'](_0x2b4f6b),this['_elementReplacer']['replace'](_0xcb82f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x117caa=this['view'],_0x234772=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x234772['detachDomRoot'](_0x117caa['editable']['name']),_0x117caa['destroy']();}['_initToolbar'](){const _0x4dbad5=this['view'];_0x4dbad5['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4dbad5['stickyPanel']['limiterElement']=_0x4dbad5['element'],_0x4dbad5['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xf698bd})=>_0xf698bd),_0x4dbad5['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4dbad5['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x260d67,_0xac2b43,_0x364a42={}){super(_0x260d67),this['stickyPanel']=new lt(_0x260d67),this['toolbar']=new nt(_0x260d67,{'shouldGroupWhenFull':_0x364a42['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x260d67,_0xac2b43);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xf0e4e9,_0x345c07){super(_0x345c07),this['sourceElement']=_0xf0e4e9,this['model']['document']['createRoot']();const _0x378853=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x378853);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x83d584,_0x3739c4){const _0x3d1448=new this(_0x83d584,_0x3739c4);return await _0x3d1448['initPlugins'](),await _0x3d1448['ui']['init'](_0x83d584),await _0x3d1448['data']['init'](_0x3d1448['config']['get']('initialData')||''),_0x3d1448['fire']('ready'),_0x3d1448;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x1be25d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f895d){function _0x2b312c(_0x146518){return _0x146518['map'](_0x349511=>String['fromCharCode'](_0x349511))['join']('');}super(_0x4f895d),this['result']='end',_0x4f895d[_0x2b312c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b312c([0x76,0x69,0x65,0x77])][_0x2b312c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b312c([0x61,0x75,0x74,0x6f]),_0x4f895d[_0x2b312c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2b312c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b312c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2b312c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2b312c([0x6f,0x6b])});}}class H extends _0x1be25d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x39b059){if(super(_0x39b059),!this['editor']['config']['get']('revisionHistory'))throw new _0x2dd5b8('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1c9b54=>this['_showRevisionViewer']({..._0x1c9b54,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1d4fce=>this['_closeRevisionViewer'](_0x1d4fce)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5bd5e1=>this['_restoreRevision'](_0x5bd5e1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4f9cbe){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4f9cbe;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x28e6f9){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x28e6f9);}['getRevision'](_0x543806){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x543806);}['getRevisions'](_0x685f3b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x685f3b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xf06f88=this['editor'],_0x578259=_0x2bacaf(_0xf06f88,p),_0xe7be99=_0xf06f88['plugins']['get']('RevisionTracker'),_0x2cacfa=_0xf06f88['plugins']['get']('Users')['users'];return _0x578259['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x578259['lazyRoots'],(_0x578259['plugins']['push'](k,d,m,class extends _0x1be25d{static get['requires'](){return[d,'Users'];}['init'](){const _0x1ec87a=this['editor']['plugins']['get']('Users');for(const _0xb5d22c of _0x2cacfa)_0xb5d22c['isAnonymous']||_0x1ec87a['getUser'](_0xb5d22c['id'])||_0x1ec87a['addUser'](_0xb5d22c);const _0x44cf5b=_0xe7be99['repository']['getRevisions']();let _0x23c5a1=null;const _0x3b1609=this['editor']['plugins']['get']('RevisionViewer');_0x3b1609['adapter']=_0xe7be99['adapter'],_0x3b1609['bind']('isEnabled')['to'](_0xe7be99),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xf06f88,'isReadOnly',_0x73ab48=>!_0x73ab48);for(const _0x501713 of _0x44cf5b){const _0x2dbbe0=null===_0x501713['creator'];if(_0x2dbbe0&&_0x501713['toVersion']===_0x501713['fromVersion'])continue;const _0x412159=_0x501713['toJSON']();_0x3b1609['addRevisionData'](_0x412159,(_0x53db85,_0x564cdd,_0x138c9a)=>{if(_0x2dbbe0){if(_0x23c5a1)_0x23c5a1['_update'](_0x53db85,_0x564cdd);else{if(!_0x564cdd){const _0x192e75=_0x138c9a['toJSON']();_0x192e75['id']=_0xe7cf66(),_0xe7be99['saveRevision'](_0x192e75,_0x138c9a['toVersion'])['then'](_0x5cdb24=>{_0x23c5a1=_0x5cdb24;});}}}else _0x501713['_update'](_0x53db85,_0x564cdd);});}}},g),_0x578259);}['_enhanceShowRevisionViewerCallback'](){const _0x34bfa1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x100e0f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3428f5=this['editor']['plugins']['get']('Autosave');await _0x3428f5['save']();}else await _0x100e0f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1d75bf=this['editor']['plugins']['get']('Dialog');_0x1d75bf['isOpen']&&_0x1d75bf['hide']();}const _0xf1a720=this['_getRevisionViewerEditorConfig']();return _0x34bfa1(_0xf1a720)['then'](_0xfa7447=>{return(this['_viewerEditor']=_0xfa7447,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xfa7447;})['catch'](_0x25f028=>(console['error'](_0x25f028),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x6db364=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'](),_0x6db364(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4befbd=this['editor']['plugins']['get']('Annotations');_0x4befbd['refreshVisibility'](),_0x4befbd['refreshPositioning']();}})));}['_showRevisionViewer'](_0x24ae05){const _0x2a7a8f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x24830d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5b13fb=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5b13fb,_0x24ae05)['then'](_0x4627ec=>(_0x24830d['style']['display']='block',_0x2a7a8f['style']['display']='none',_0x4627ec));}['_closeRevisionViewer'](_0x4b8a11){const _0x5815ab=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5815ab['style']['display']='',_0x4b8a11['destroy']();}async['_restoreRevision'](_0x216555){const _0x45c7ec=this['editor'],_0x4bef55=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x17a6e2=_0x45c7ec['plugins']['get']('RevisionTracker'),_0x3580d5=_0x4bef55['repository']['getRevision'](_0x216555);let _0x1ee1dd,_0x1438c7,_0x39aa0c;try{_0x1ee1dd=await _0x4bef55['getRevisionData'](_0x3580d5),_0x1438c7=await _0x4bef55['getRevisionRootsAttributes'](_0x3580d5);}catch(_0x3c0390){return void console['error'](_0x3c0390);}_0x45c7ec['model']['change'](_0x3d948f=>{for(const _0x2dbbb8 of Array['from'](_0x45c7ec['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3d948f['removeMarker'](_0x2dbbb8);}),_0x4bef55['isReady']=!0x1,_0x45c7ec['model']['enqueueChange'](_0x33f9a8=>{_0x33f9a8['setSelection'](null),_0x33f9a8['removeSelectionAttribute'](_0x45c7ec['model']['document']['selection']['getAttributeKeys']());const _0x16139b=Object['keys'](_0x1ee1dd);for(const _0xa32e52 of _0x45c7ec['model']['document']['roots'])'$graveyard'!=_0xa32e52['rootName']&&_0xa32e52['isAttached']()&&!_0x16139b['includes'](_0xa32e52['rootName'])&&_0x33f9a8['detachRoot'](_0xa32e52);for(const _0x23e3e9 of _0x16139b){let _0x2b9a0f=_0x45c7ec['model']['document']['getRoot'](_0x23e3e9);_0x2b9a0f&&_0x2b9a0f['isAttached']()||(_0x2b9a0f=_0x33f9a8['addRoot'](_0x23e3e9));const _0x1e71e1=_0x1438c7[_0x23e3e9],_0xa59014=Object['keys'](_0x1e71e1),_0x2ca85e=_0x1ee1dd[_0x23e3e9];for(const _0x396e39 of _0x2b9a0f['getAttributeKeys']())_0xa59014['includes'](_0x396e39)||_0x33f9a8['removeAttribute'](_0x396e39,_0x2b9a0f);for(const _0x5eb4c1 of _0xa59014)_0x33f9a8['setAttribute'](_0x5eb4c1,_0x1438c7[_0x23e3e9][_0x5eb4c1],_0x2b9a0f);_0x33f9a8['remove'](_0x33f9a8['createRangeIn'](_0x2b9a0f)),_0x33f9a8['insert'](_0x45c7ec['data']['parse'](_0x2ca85e,_0x2b9a0f),_0x2b9a0f,0x0);}});const _0x30324d=R(_0x45c7ec['locale'],'Restored');if(_0x3580d5['name'])_0x39aa0c=-0x1==_0x3580d5['name']['indexOf'](_0x30324d)?_0x30324d+':\x20'+_0x3580d5['name']:_0x3580d5['name'];else _0x39aa0c=_0x30324d+':\x20'+(_0x3580d5['createdAt']['toLocaleDateString'](_0x45c7ec['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3580d5['createdAt']['toLocaleTimeString'](_0x45c7ec['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x17a6e2['saveRevision']({'name':_0x39aa0c}),_0x4bef55['isReady']=!0x0,_0x45c7ec['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|