@ckeditor/ckeditor5-revision-history 45.1.0-alpha.6 → 45.1.0-alpha.7
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 +11 -11
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisionview.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/changesnavigationview.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
|
-
_0x1a0236(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2c36aa){super(),this['id']=_0x2c36aa['id']||_0x335623(),this['creator']=_0x2c36aa['creator']||null,this['authors']=_0x2c36aa['authors']||[],this['diffData']=_0x2c36aa['diffData']||null,this['toVersion']=_0x2c36aa['toVersion']||0x0,this['fromVersion']=_0x2c36aa['fromVersion']||0x0,this['set']('name',_0x2c36aa['name']||''),this['set']('createdAt',_0x2c36aa['createdAt']||new Date()),this['set']('attributes',_0x2c36aa['attributes']||{});}['setName'](_0x1a6298){this['_update']({'name':_0x1a6298});}['setAttribute'](_0x3fb2e6,_0xc02ce9){const _0x1614f1=_0x25c995(this['attributes']);_0x18567d(_0x1614f1,_0x3fb2e6,_0xc02ce9),this['_update']({'attributes':_0x1614f1});}['removeAttribute'](_0xc6948c){const _0x29c86b=_0x25c995(this['attributes']);_0x23a879(_0x29c86b,_0xc6948c),this['_update']({'attributes':_0x29c86b});}['_update'](_0x3fa65b,_0x419545=!0x1){let _0x20136b=!0x1;const _0x3c6d17={'id':this['id']},_0x484e6c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x7e0c7e of _0x484e6c){const _0x13736d=_0x3fa65b[_0x7e0c7e];void 0x0!==_0x13736d&&_0x13736d!==this[_0x7e0c7e]&&(this[_0x7e0c7e]=_0x13736d,_0x3c6d17[_0x7e0c7e]=_0x13736d,_0x20136b=!0x0);}_0x20136b&&(_0x3c6d17['authors']&&(_0x3c6d17['authorsIds']=_0x3c6d17['authors']['map'](_0x260c50=>_0x260c50['id']),delete _0x3c6d17['authors']),this['fire']('_update',_0x3c6d17,_0x419545));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5d0612=>_0x5d0612['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x215f3d{['_revisions'];static get['requires'](){return[_0x1efa5c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x18abe6){super(_0x18abe6),this['_revisions']=new _0x3b3f60();}['afterInit'](){!async function(_0x14594b){const _0x4afd28=_0x386b0c([0x5a,0x72,0x6e,0x54,0x74,0x32,0x62,0x6f,0x48,0x51,0x30,0x56,0x71,0x67,0x33,0x7a,0x73,0x44,0x69,0x46,0x53,0x64,0x45,0x77,0x6c,0x39,0x57,0x4a,0x4c,0x4d,0x43,0x68,0x34,0x6d,0x58,0x4f,0x6a,0x50,0x31,0x78,0x61,0x4e,0x59,0x70,0x47,0x41,0x55,0x75,0x79,0x49,0x35,0x65,0x36,0x4b,0x66,0x63,0x6b,0x42,0x38,0x76,0x37,0x52]),_0x180735=0xeb829,_0xaf5918=0x36bc9b11,_0x473f43=0x36bbfca9^_0xaf5918,_0x8ffc35=window[_0x386b0c([0x44,0x61,0x74,0x65])][_0x386b0c([0x6e,0x6f,0x77])](),_0x34fec8=_0x14594b[_0x386b0c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2735fb=new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42a4f1=>{_0x34fec8[_0x386b0c([0x6f,0x6e,0x63,0x65])](_0x386b0c([0x72,0x65,0x61,0x64,0x79]),_0x42a4f1);}),_0x70747d={[_0x386b0c([0x6b,0x74,0x79])]:_0x386b0c([0x45,0x43]),[_0x386b0c([0x75,0x73,0x65])]:_0x386b0c([0x73,0x69,0x67]),[_0x386b0c([0x63,0x72,0x76])]:_0x386b0c([0x50,0x2d,0x32,0x35,0x36]),[_0x386b0c([0x78])]:_0x386b0c([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]),[_0x386b0c([0x79])]:_0x386b0c([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]),[_0x386b0c([0x61,0x6c,0x67])]:_0x386b0c([0x45,0x53,0x32,0x35,0x36])},_0x38d1c7=_0x34fec8[_0x386b0c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x386b0c([0x67,0x65,0x74])](_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x267c78(){let _0x58ef18,_0x980717=null,_0x565d62=null;try{if(_0x38d1c7==_0x386b0c([0x47,0x50,0x4c]))return _0x386b0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58ef18=_0x315cba(),!_0x58ef18)return _0x386b0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58ef18[_0x386b0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x565d62=_0x4e8268(_0x58ef18[_0x386b0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58ef18[_0x386b0c([0x6a,0x74,0x69])])),await _0x36be25()?_0x13ec46()?_0x3554a0()?_0x386b0c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5caf85()?(_0x58ef18[_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x386b0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x980717=_0x31fd7a(_0x386b0c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58ef18[_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x386b0c([0x74,0x72,0x69,0x61,0x6c])&&(_0x980717=_0x31fd7a(_0x386b0c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25af09()):_0x386b0c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x386b0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x386b0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2623a6){return _0x386b0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3554a0(){const _0x364077=[_0x386b0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x386b0c([0x74,0x72,0x69,0x61,0x6c])][_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58ef18[_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x8ffc35/0x3e8:0xe10*_0x473f43;return _0x58ef18[_0x386b0c([0x65,0x78,0x70])]<_0x364077;}function _0x13ec46(){const _0x10046c=_0x58ef18[_0x386b0c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x10046c)return!0x1;if(_0x10046c[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b0c([0x2a])))return!0x0;if(_0x10046c[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b0c([0x52,0x48])))return!0x0;if(_0x10046c[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b0c([0x52,0x52,0x48]))){if(_0x1ea812())return!0x0;if(_0x7480d()||_0x394e0b())return!0x0;}return!0x1;}function _0x5caf85(){const _0x2717bb=_0x58ef18[_0x386b0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2717bb||0x0==_0x2717bb[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x360d1a}=new URL(window[_0x386b0c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2717bb[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x360d1a))return!0x0;const _0x3c9ed5=_0x360d1a[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])](_0x386b0c([0x2e]));return _0x2717bb[_0x386b0c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2531e2=>_0x2531e2[_0x386b0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b0c([0x2a])))[_0x386b0c([0x6d,0x61,0x70])](_0x3790f4=>_0x3790f4[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])](_0x386b0c([0x2e])))[_0x386b0c([0x73,0x6f,0x6d,0x65])](_0x4cabbd=>_0x3c9ed5[_0x386b0c([0x65,0x76,0x65,0x72,0x79])]((_0x135999,_0x35acaa)=>_0x4cabbd[_0x35acaa]===_0x135999||_0x4cabbd[_0x35acaa]===_0x386b0c([0x2a])));}function _0x25af09(){return _0x980717&&_0x565d62?new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48e0bb,_0x4ec57d)=>{_0x980717[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x48e0bb,_0x4ec57d),_0x565d62[_0x386b0c([0x74,0x68,0x65,0x6e])](_0xe1b56c=>{_0xe1b56c!=_0x386b0c([0x56,0x61,0x6c,0x69,0x64])&&_0x48e0bb(_0xe1b56c);},_0x4ec57d);}):_0x980717||_0x565d62||_0x386b0c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e8268(_0x5212a1,_0x4740ee){return new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2461cb=>{if(_0x300537())return _0x2461cb(_0x386b0c([0x56,0x61,0x6c,0x69,0x64]));_0x844af7(),_0x34fec8[_0x386b0c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x386b0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x289002=!0x1;const _0xc719a1=_0x335623();function _0x2a4e92(_0x10aa75){return!!_0x10aa75&&(typeof _0x10aa75===_0x386b0c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10aa75===_0x386b0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10aa75[_0x386b0c([0x74,0x68,0x65,0x6e])]===_0x386b0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10aa75[_0x386b0c([0x63,0x61,0x74,0x63,0x68])]===_0x386b0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52fae6(_0x4ed1eb){_0x527fc8(_0x4ed1eb)[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x56cb36=>{if(!_0x56cb36||_0x56cb36[_0x386b0c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x386b0c([0x6f,0x6b]))return _0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd12c68(_0x1ea4a9(_0xc719a1+_0x4740ee))!=_0x56cb36[_0x386b0c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x386b0c([0x56,0x61,0x6c,0x69,0x64]);})[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x4720ca=>(_0x16ee47(),_0x4720ca),()=>{const _0x3d4424=_0x2c9021();return null==_0x3d4424?(_0x16ee47(),_0x386b0c([0x56,0x61,0x6c,0x69,0x64])):_0x386b0c(_0x8ffc35-_0x3d4424>(0x12b01f11^_0xaf5918)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x2461cb)[_0x386b0c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2461cb(_0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bbe7f=0x368a7591^_0xaf5918;function _0x16ee47(){const _0x23d18e=_0x386b0c([0x6c,0x6c,0x63,0x74,0x2d])+_0xd12c68(_0x1ea4a9(_0x5212a1)),_0x2a20d9=_0x3735fb(_0xd12c68(window[_0x386b0c([0x4d,0x61,0x74,0x68])][_0x386b0c([0x63,0x65,0x69,0x6c])](_0x8ffc35/_0x1bbe7f)));window[_0x386b0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x386b0c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23d18e,_0x2a20d9);}function _0x2c9021(){const _0x3df395=_0x386b0c([0x6c,0x6c,0x63,0x74,0x2d])+_0xd12c68(_0x1ea4a9(_0x5212a1)),_0x470684=window[_0x386b0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x386b0c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3df395);return _0x470684?window[_0x386b0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3735fb(_0x470684),0x10)*_0x1bbe7f:null;}function _0x527fc8(_0x24a231){return new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21a8fc,_0x117e27)=>{_0x24a231[_0x386b0c([0x74,0x68,0x65,0x6e])](_0x21a8fc,_0x117e27),window[_0x386b0c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x117e27,0x36bd4fd1^_0xaf5918);});}}_0x34fec8[_0x386b0c([0x6f,0x6e])](_0x386b0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x91ddc1,_0x1aae29)=>{if(_0x1aae29[0x0]!=_0x5212a1)return _0x2461cb(_0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1aae29[0x1]={..._0x1aae29[0x1],[_0x386b0c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc719a1};},{[_0x386b0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x386b0c([0x68,0x69,0x67,0x68])}),_0x34fec8[_0x386b0c([0x6f,0x6e])](_0x386b0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10a55a=>{_0x2a4e92(_0x10a55a[_0x386b0c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x289002=!0x0,_0x52fae6(_0x10a55a[_0x386b0c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x386b0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x386b0c([0x6c,0x6f,0x77])}),_0x2735fb[_0x386b0c([0x74,0x68,0x65,0x6e])](()=>{_0x289002||_0x2461cb(_0x386b0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x300537(){return _0x34fec8[_0x386b0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x386b0c([0x76,0x69,0x65,0x77])][_0x386b0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x386b0c([0x61,0x75,0x74,0x6f]);}function _0x844af7(){_0x34fec8[_0x386b0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x386b0c([0x76,0x69,0x65,0x77])][_0x386b0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x386b0c([0x61,0x75,0x74,0x6f]);}}function _0x31fd7a(_0x3e053a){const _0x516652=[new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a4b3c=>setTimeout(_0x3a4b3c,0x36b5a5dd^_0xaf5918)),_0x2735fb[_0x386b0c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b8da3=>{const _0xd2b6ca=0x36bc9b16^_0xaf5918,_0x3ccb9e=_0x14594b[_0x386b0c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2d57dc(){_0x3ccb9e[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xd2b6ca&&_0x1b8da3();}_0x2d57dc(),_0x3ccb9e[_0x386b0c([0x6f,0x6e])](_0x386b0c([0x61,0x64,0x64]),_0x2d57dc);})),new window[(_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55d044=>{function _0x468511(){for(const _0x1de420 in window)if(window[_0x386b0c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x386b0c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1de420))&&window[_0x1de420]==_0x180735)return _0x55d044();_0x34fec8[_0x386b0c([0x73,0x74,0x61,0x74,0x65])]!=_0x386b0c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x386b0c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x468511,0x36bc8899^_0xaf5918);}_0x27fccc(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x468511();})];return window[_0x386b0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x386b0c([0x72,0x61,0x63,0x65])](_0x516652)[_0x386b0c([0x74,0x68,0x65,0x6e])](()=>_0x3e053a);}async function _0xbbbdc2(){if(await _0x2735fb,_0x27fccc(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x21c26b=_0x14594b[_0x386b0c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x490ffd=_0x14594b[_0x386b0c([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])](_0x21c26b[_0x386b0c([0x69,0x64])]),_0xe42292=_0xf349fe(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xe42292[_0x386b0c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x21c26b['id'],_0x490ffd?_0x490ffd['id']:null,!0x0),_0xe42292[_0x386b0c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x386b0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xe42292[_0x386b0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xe42292[_0x386b0c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x13664a,void(_0xe42292[_0x386b0c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x13664a);}if(_0x27fccc(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x465a3c=_0xf349fe(_0x386b0c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x465a3c[_0x386b0c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x386b0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x465a3c[_0x386b0c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x465a3c[_0x386b0c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x13664a,_0x465a3c[_0x386b0c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x13664a;}_0x34fec8[_0x386b0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x386b0c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13664a,_0x34fec8[_0x386b0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x386b0c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13664a,_0x34fec8[_0x386b0c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x386b0c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ea812(){return _0x27fccc(_0x386b0c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xf349fe(_0x386b0c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x386b0c([0x73,0x74,0x61,0x74,0x65])]==_0x386b0c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x7480d(){return _0x27fccc(_0x386b0c([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 _0x394e0b(){return _0x27fccc(_0x386b0c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x81db4(_0x16246f){const _0xa34784=_0x25e0e0();_0x34fec8[_0xa34784]=_0x386b0c([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])+_0x16246f,_0x16246f[_0x386b0c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x386b0c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x25e0e0()]=_0x180735),_0x16246f!=_0x386b0c([0x56,0x61,0x6c,0x69,0x64])&&_0xbbbdc2();}function _0x25e0e0(){const _0x3ed3c1=window[_0x386b0c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x386b0c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x386b0c([0x6e,0x6f,0x77])]())[_0x386b0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x386b0c([0x2e]),'');let _0x683b8f=_0x386b0c([0x5a]);for(let _0x595a47=0x0;_0x595a47<_0x3ed3c1[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x595a47+=0x2){let _0x1a2fda=window[_0x386b0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ed3c1[_0x386b0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x595a47,_0x595a47+0x2));_0x1a2fda>=_0x4afd28[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a2fda-=_0x4afd28[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x683b8f+=_0x4afd28[_0x1a2fda];}return _0x683b8f;}function _0x315cba(){const _0x21c5d7=_0x38d1c7[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])](_0x386b0c([0x2e]));if(0x3!=_0x21c5d7[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b85e6(_0x21c5d7[0x1]);function _0x2b85e6(_0xef9f6d){const _0x5f0c3d=_0x5b28ab(_0xef9f6d);return _0x5f0c3d&&_0x4c3b4b()?_0x5f0c3d:null;function _0x4c3b4b(){const _0x5b133e=_0x5f0c3d[_0x386b0c([0x6a,0x74,0x69])],_0x34d961=window[_0x386b0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b133e[_0x386b0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b133e[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x121d48={..._0x5f0c3d,[_0x386b0c([0x6a,0x74,0x69])]:_0x5b133e[_0x386b0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b133e[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x121d48[_0x386b0c([0x76,0x63])],_0x1ea4a9(_0x121d48)==_0x34d961;}}}async function _0x36be25(){let _0x11be14=!0x0;try{const _0x10c688=_0x38d1c7[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])](_0x386b0c([0x2e])),[_0x7be484,_0xc5eca1,_0x44859d]=_0x10c688;return _0x2b1c99(_0x7be484),await _0x13a158(_0x7be484,_0xc5eca1,_0x44859d),_0x11be14;}catch(_0x2c7327){return!0x1;}function _0x2b1c99(_0x36be5e){const _0x372f46=_0x5b28ab(_0x36be5e);_0x372f46&&_0x372f46[_0x386b0c([0x61,0x6c,0x67])]==_0x386b0c([0x45,0x53,0x32,0x35,0x36])||(_0x11be14=!0x1);}async function _0x13a158(_0x5f2801,_0x284adc,_0x54404e){const _0xae9a33=window[_0x386b0c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x386b0c([0x66,0x72,0x6f,0x6d])](_0x4429b6(_0x54404e),_0x38bb35=>_0x38bb35[_0x386b0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55f15b=new window[(_0x386b0c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x386b0c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5f2801+_0x386b0c([0x2e])+_0x284adc),_0x24bd32=window[_0x386b0c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x386b0c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24bd32)return;const _0xd52f4c=await _0x24bd32[_0x386b0c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x386b0c([0x6a,0x77,0x6b]),_0x70747d,{[_0x386b0c([0x6e,0x61,0x6d,0x65])]:_0x386b0c([0x45,0x43,0x44,0x53,0x41]),[_0x386b0c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x386b0c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x386b0c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24bd32[_0x386b0c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x386b0c([0x6e,0x61,0x6d,0x65])]:_0x386b0c([0x45,0x43,0x44,0x53,0x41]),[_0x386b0c([0x68,0x61,0x73,0x68])]:{[_0x386b0c([0x6e,0x61,0x6d,0x65])]:_0x386b0c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd52f4c,_0xae9a33,_0x55f15b)||(_0x11be14=!0x1);}}function _0x5b28ab(_0x149da5){return _0x149da5[_0x386b0c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x386b0c([0x65,0x79]))?JSON[_0x386b0c([0x70,0x61,0x72,0x73,0x65])](_0x4429b6(_0x149da5)):null;}function _0x4429b6(_0x540ffb){return window[_0x386b0c([0x61,0x74,0x6f,0x62])](_0x540ffb[_0x386b0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x386b0c([0x2b]))[_0x386b0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x386b0c([0x2f])));}function _0x1ea4a9(_0x519ab2){let _0x35d539=0x1505;function _0xce56f3(_0x463ebe){for(let _0x7dd36f=0x0;_0x7dd36f<_0x463ebe[_0x386b0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7dd36f++){const _0x19d306=_0x463ebe[_0x386b0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7dd36f);_0x35d539=(_0x35d539<<0x5)+_0x35d539+_0x19d306,_0x35d539&=_0x35d539;}}function _0x28826e(_0x371cd0){Array[_0x386b0c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x371cd0)?_0x371cd0[_0x386b0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28826e):_0x371cd0&&typeof _0x371cd0==_0x386b0c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x386b0c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x371cd0)[_0x386b0c([0x73,0x6f,0x72,0x74])]()[_0x386b0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24d509,_0x4bfb37])=>{_0xce56f3(_0x24d509),_0x28826e(_0x4bfb37);}):_0xce56f3(window[_0x386b0c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x371cd0));}return _0x28826e(_0x519ab2),_0x35d539>>>0x0;}function _0xd12c68(_0x4dc006){return _0x4dc006[_0x386b0c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x386b0c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x386b0c([0x30]));}function _0x3735fb(_0x5c08b4){return _0x5c08b4[_0x386b0c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x386b0c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x386b0c([0x6a,0x6f,0x69,0x6e])]('');}function _0x27fccc(_0x415c8a){return _0x34fec8[_0x386b0c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x386b0c([0x68,0x61,0x73])](_0x415c8a);}function _0xf349fe(_0x43ad45){return _0x34fec8[_0x386b0c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x386b0c([0x67,0x65,0x74])](_0x43ad45);}function _0x13664a(){}function _0x386b0c(_0x5ac132){return _0x5ac132['map'](_0xd79ad6=>String['fromCharCode'](_0xd79ad6))['join']('');}_0x81db4(await _0x267c78());}(this);}['createRevision'](_0x11fd7e){const _0x51b820=this['editor']['plugins']['get']('Users');return new h({'id':_0x11fd7e['id'],'name':_0x11fd7e['name'],'creator':_0x11fd7e['creatorId']?_0x51b820['getUser'](_0x11fd7e['creatorId']):null,'diffData':_0x11fd7e['diffData']||_0x11fd7e['data'],'authors':_0x11fd7e['authorsIds']['map'](_0x1b2875=>_0x51b820['getUser'](_0x1b2875)),'createdAt':new Date(_0x11fd7e['createdAt']),'attributes':_0x11fd7e['attributes'],'fromVersion':_0x11fd7e['fromVersion'],'toVersion':_0x11fd7e['toVersion']});}['addRevision'](_0x22b97b,_0xc4e0e5=0x0){this['_revisions']['add'](_0x22b97b,_0xc4e0e5);}['getRevision'](_0x5b2994){return this['_revisions']['get'](_0x5b2994);}['getRevisions'](_0x5a275f={'toJSON':!0x1}){const _0x2e7e72=Array['from'](this['_revisions']);return _0x2e7e72['reverse'](),_0x5a275f['toJSON']?_0x2e7e72['map'](_0x533dfa=>_0x533dfa['toJSON']()):_0x2e7e72;}['getIndex'](_0x50c824){return this['_revisions']['getIndex'](_0x50c824);}['getEarlierVisibleRevision'](_0x57ac9a){const [,_0x106c52]=this['getRevisionsIterator'](_0x57ac9a,{'direction':'earlier'});return _0x106c52;}['getLaterVisibleRevision'](_0x1ce793){const [,_0x3c01fe]=this['getRevisionsIterator'](_0x1ce793,{'direction':'later'});return _0x3c01fe;}['getRevisionsInDiff'](_0x1cea82){const _0x1f420c=[];for(const _0x2eec60 of this['getRevisionsIterator'](_0x1cea82['newRevisionId']))if(_0x1f420c['push'](_0x2eec60),_0x2eec60['id']===_0x1cea82['oldRevisionId'])break;return _0x1f420c;}*['getRevisionsIterator'](_0x38b6a5,{direction:_0x1aa24a='earlier',filter:_0x38193c=()=>!0x0}={}){const _0xc0b25b='earlier'===_0x1aa24a?0x1:-0x1;let _0xb1ddad=this['_revisions']['get'](_0x38b6a5),_0x4e3f8e=this['getIndex'](_0xb1ddad);for(yield _0xb1ddad;_0xb1ddad;){if(_0x4e3f8e+=_0xc0b25b,_0xb1ddad=this['getRevision'](_0x4e3f8e),!_0xb1ddad)return;_0x38193c(_0xb1ddad)&&(yield _0xb1ddad);}}}class V extends _0x215f3d{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x15f24b,'c'],[_0x5946e2,'a'],[_0x2065b8,'e'],[_0x501869,'r'],[_0x4a6e43,'u']]);['_typeCharToViewClass']=new Map([['c',_0x15f24b],['a',_0x5946e2],['e',_0x2065b8],['r',_0x501869],['u',_0x4a6e43]]);async['loadRevisionData'](_0x32e951,_0x1c1dd8){if(_0x32e951['diffData']||!_0x1c1dd8)return;const _0x35f2a7=this['editor']['config']['get']('collaboration.channelId'),_0x2c8619=await _0x1c1dd8['getRevision']({'channelId':_0x35f2a7,'revisionId':_0x32e951['id']});_0x32e951['diffData']=_0x2c8619['diffData'];}['getRevisionDocumentData'](_0x311cc6){const _0x2a98ef={};for(const _0x2deda3 in _0x311cc6['diffData']){if(_0x311cc6['diffData'][_0x2deda3]['attachChange']&&!_0x311cc6['diffData'][_0x2deda3]['attachChange']['isAttached'])continue;const _0x51da3b=this['_removeRevisionMarkers'](JSON['parse'](_0x311cc6['diffData'][_0x2deda3]['insertions'])),_0x1623fb=this['editor']['editing']['view']['document'],_0x47012a=new _0x12e64f(_0x1623fb,_0x51da3b['map'](_0x3f061c=>this['_getViewFromDiffObj'](_0x3f061c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2a98ef[_0x2deda3]=this['editor']['data']['processor']['toData'](_0x47012a),this['editor']['data']['processor']['useFillerType']('default');}return _0x2a98ef;}['getRevisionRootsAttributes'](_0x4fc66a){const _0x5c5b9d={};for(const _0x491059 in _0x4fc66a['diffData'])_0x4fc66a['diffData'][_0x491059]['attachChange']&&!_0x4fc66a['diffData'][_0x491059]['attachChange']['isAttached']||(_0x5c5b9d[_0x491059]=_0x4fc66a['diffData'][_0x491059]['attributesAfter']||{});return _0x5c5b9d;}['_getTypeCharForViewElement'](_0x5aca2f){return this['_viewClassToTypeChar']['get'](_0x5aca2f['constructor']);}['_getViewFromDiffObj'](_0x4af402,_0x209e36){const _0x580b1a=this['editor']['editing']['view']['document'];if('string'==typeof _0x4af402)return new _0x2e1387(_0x580b1a,_0x4af402);{let _0x301726,_0x398728;_0x398728='u'==_0x4af402['type']||'r'==_0x4af402['type']?[]:_0x4af402['children']['map'](_0x47f511=>this['_getViewFromDiffObj'](_0x47f511,_0x209e36));const _0xb412b=this['_typeCharToViewClass']['get'](_0x4af402['type'])||_0x204b8d,_0x282a70=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x301726=new _0xb412b(_0x580b1a,_0x4af402['name'],_0x4af402['attributes'],_0x398728),'u'==_0x4af402['type']&&_0x4af402['children'][0x0]){const _0x2da4ab=_0x4af402['children'][0x0];if(_0x301726['render']=function(_0x5e6ba5){const _0x5200a9=_0x5e6ba5['createElement']('div');return _0x5200a9['innerHTML']=_0x2da4ab,_0x5200a9['childNodes'][0x0];},_0x209e36){const _0x1a3057=new _0x12e64f(_0x580b1a);_0x1a3057['_appendChild'](_0x301726);const _0x14f837=Array['from'](_0x282a70['viewChildrenToDom'](_0x1a3057,{'bind':!0x1})),_0x5c3ccb=_0x282a70['domDocument']['createElement']('div');_0x5c3ccb['append'](..._0x14f837),_0x301726=Array['from'](_0x282a70['domChildrenToView'](_0x5c3ccb))[0x0];}}else{if('r'==_0x4af402['type']&&_0x4af402['children'][0x0]){const _0x20acc6=_0x4af402['children'][0x0];if(_0x301726['render']=function(_0x153aae){_0x153aae['innerHTML']=_0x20acc6;},_0x209e36){const _0xa62ac6=new _0x12e64f(_0x580b1a);_0xa62ac6['_appendChild'](_0x301726);const _0x49a9dd=Array['from'](_0x282a70['viewChildrenToDom'](_0xa62ac6,{'bind':!0x1})),_0x4ff72c=_0x282a70['domDocument']['createElement']('div');_0x4ff72c['append'](..._0x49a9dd);const _0x30c2b=Array['from'](_0x282a70['domChildrenToView'](_0x4ff72c));_0x30c2b['length']>0x1?_0x301726['_appendChild'](_0x30c2b):_0x301726=_0x30c2b[0x0];}}}if(_0x4af402['customProperties']){for(const [_0x147073,_0xa81481]of _0x4af402['customProperties'])_0x301726['_setCustomProperty'](_0x147073,_0xa81481);}const _0x132715=void 0x0===_0x4af402['fillerOffset']?null:_0x4af402['fillerOffset'];return null!==_0x132715&&(_0x301726['getFillerOffset']=()=>_0x132715),_0x301726;}}['_makeModelFromViewString'](_0xae7999){const _0x2b9f29=JSON['parse'](_0xae7999),_0x18043b=this['editor']['editing']['view']['document'],_0x58fcc0=new _0x12e64f(_0x18043b,_0x2b9f29['map'](_0x5ceb40=>this['_getViewFromDiffObj'](_0x5ceb40,!0x0)));return this['editor']['data']['toModel'](_0x58fcc0);}['_removeRevisionMarkers'](_0x4aaa89){return(_0x4aaa89=_0x4aaa89['filter'](_0xe65fad=>!_0xe65fad['name']||'revision-start'!==_0xe65fad['name']&&'revision-end'!==_0xe65fad['name']))['forEach'](_0x4edcb7=>{'string'!=typeof _0x4edcb7&&(_0x4edcb7['children']=this['_removeRevisionMarkers'](_0x4edcb7['children']),_0x4edcb7['attributes']=_0x4edcb7['attributes']['filter'](_0x295ac1=>!_0x295ac1[0x0]['startsWith']('data-revision-')));}),_0x4aaa89;}}function g(_0x2aea13,_0x59cff8,_0x5a1029){const t=_0x2aea13['t'];switch(_0x59cff8){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'},_0x5a1029);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a1029);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x215f3d{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1efa5c,I,V,_0x23f0a8];}constructor(_0x477aea){super(_0x477aea),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2bb52a=_0x335623();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2bb52a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xe362ff=this['repository']['getRevision'](0x0),_0x3149ef=_0xe362ff&&null===_0xe362ff['creator']?_0xe362ff:null;if(this['_continueCurrentRevision']=!!_0x3149ef&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x573a0c=this['_source']['getCurrentRevisionId'](),_0x58f01c=this['repository']['getRevision'](_0x573a0c);if(_0x58f01c)this['_startingVersion']=_0x58f01c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x518c15=this['_source']['history']['_operations']['find'](_0x545472=>!_0x545472['_isInit']),_0x2ec8c4=_0x518c15?_0x518c15['baseVersion']:this['_source']['history']['version'];_0xe362ff?(_0xe362ff['toVersion']<_0x2ec8c4&&_0xe362ff['_update']({'toVersion':_0x2ec8c4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3149ef['id'],this['_startingVersion']=_0x3149ef['fromVersion']):(this['_startingVersion']=_0xe362ff['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ec8c4,this['_continueCurrentRevision']=!0x1);}}else _0x3149ef&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3149ef['toVersion'],this['editor']['model']['document']['history']['version']),_0x3149ef['fromVersion']===_0x3149ef['toVersion']?(0x0!==_0x3149ef['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3149ef['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3149ef['id'],this['_startingVersion']=_0x3149ef['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',_0x1637b0=>!_0x1637b0),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ef8b7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4957b9;for(const _0x31545e in _0x1ef8b7){const _0x28e1a4=_0x31545e,_0x5ed9e4=_0x1ef8b7[_0x28e1a4];if('revisionHistoryLicenseKeyValid'==_0x5ed9e4||'revisionHistoryLicenseKeyInvalid'==_0x5ed9e4||'revisionHistoryLicenseKeyExpired'==_0x5ed9e4||'revisionHistoryLicenseKeyDomainLimit'==_0x5ed9e4||'revisionHistoryLicenseKeyNotAllowed'==_0x5ed9e4||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5ed9e4||'revisionHistoryLicenseKeyTrialLimit'==_0x5ed9e4||'revisionHistoryLicenseKeyUsageLimit'==_0x5ed9e4){delete _0x1ef8b7[_0x28e1a4],_0x4957b9=_0x5ed9e4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4957b9&&_0x1ef8b7['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1291a7=this['repository']['getRevision'](0x0),_0x27d2c2=await this['getRevisionDocumentData'](_0x1291a7),_0x11cd41=await this['getRevisionRootsAttributes'](_0x1291a7);this['_replaceEditorDataWithRevisionData'](_0x27d2c2,_0x11cd41);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x517a5d){this['_source']=_0x517a5d;}async['update'](){const _0x15a05b=await this['_source']['getLatestVersion']();if(_0x15a05b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x36fce2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x15a05b});_0x36fce2['authors']=_0x36fce2['authorsIds']['map'](_0x1392d3=>this['editor']['plugins']['get']('Users')['getUser'](_0x1392d3)),this['currentRevision']['_update'](_0x36fce2);}}async['saveRevision'](_0x2afc6e={},_0x18d4d0=null){const _0xc66a54=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x18d4d0>this['currentRevision']['toVersion']&&(_0x18d4d0=null),null===_0x18d4d0&&(_0x18d4d0=await this['_source']['getLatestVersion']());const _0x457953=this['_getFromVersion'](_0x18d4d0),_0x12470d=this['buildRevisionData']({'from':_0x457953,'to':_0x18d4d0});if(this['currentRevision']['toVersion']<_0x18d4d0){const _0x23b956=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x18d4d0,'to':_0x18d4d0});_0x23b956['authors']=[],_0x23b956['authorsIds']=[],_0x23b956['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x23b956,!0x0),delete _0x23b956['authors'],_0xc66a54['push'](_0x23b956);}_0x2afc6e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2afc6e['name']=_0x2afc6e['name']||null,_0x2afc6e['id']=_0x2afc6e['id']||_0x335623(),_0x2afc6e={..._0x2afc6e,..._0x12470d};const _0x597ba8=this['addRevisionData'](_0x2afc6e);_0xc66a54['push'](_0x2afc6e);const _0x7fc491=this['repository']['getIndex'](_0x597ba8);if(0x0!==_0x7fc491){const _0x508861=this['repository']['getRevision'](_0x7fc491-0x1);if(_0x508861['fromVersion']!==_0x18d4d0){const _0x255559=this['_revisionDataBuilder']['getData'](_0x18d4d0,_0x508861['toVersion']),_0x295919={'id':_0x508861['id'],'diffData':_0x255559['diffData'],'authorsIds':_0x255559['authorsIds'],'authors':_0x255559['authorsIds']['map'](_0x1d5ec1=>this['editor']['plugins']['get']('Users')['getUser'](_0x1d5ec1)),'fromVersion':_0x18d4d0};_0x508861===this['currentRevision']&&(_0x295919['createdAt']=new Date(_0x2afc6e['createdAt']['getTime']()+0xa)),_0x508861['_update'](_0x295919,!0x0),delete _0x295919['authors'],_0xc66a54['push'](_0x295919);}}if(this['adapter']){for(const _0x1114f8 of _0xc66a54)this['_bufferUpdate'](_0x1114f8['id'],_0x1114f8,!0x0);this['sendBufferedUpdates']();}return _0x597ba8;}['addRevisionData'](_0x2f7885){const _0x51bc38=this['repository']['createRevision'](_0x2f7885);return this['adapter']&&_0x51bc38['on']('_update',(_0x1ebe60,_0x59e2e0,_0x3bb40d)=>{_0x3bb40d||(this['_bufferUpdate'](_0x59e2e0['id'],_0x59e2e0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x51bc38,this['_findInsertionIndex'](_0x51bc38)),_0x51bc38;}async['getRevisionDocumentData'](_0x3e2942){return await this['_utils']['loadRevisionData'](_0x3e2942,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3e2942);}async['getRevisionRootsAttributes'](_0x224d7b){return await this['_utils']['loadRevisionData'](_0x224d7b,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x224d7b);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4545b8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x31ab4f=0x0;_0x31ab4f<_0x4545b8['length'];_0x31ab4f++){const _0x4af8ef=_0x4545b8[_0x31ab4f];let _0x35b950=!0x1;for(const _0x2dc392 of Object['keys'](_0x4af8ef))void 0x0===_0x4af8ef[_0x2dc392]?delete _0x4af8ef[_0x2dc392]:'id'!==_0x2dc392&&(_0x35b950=!0x0);_0x35b950||(_0x4545b8[_0x31ab4f]=null);}if(_0x4545b8=_0x4545b8['filter'](_0x5962e4=>null!==_0x5962e4),!_0x4545b8['length'])return;for(let _0x5e3da6=0x0;_0x5e3da6<_0x4545b8['length'];_0x5e3da6++){const _0x3b568e=_0x4545b8[_0x5e3da6];void 0x0!==_0x3b568e['fromVersion']&&void 0x0===_0x3b568e['toVersion']&&(_0x3b568e['toVersion']=this['repository']['getRevision'](_0x3b568e['id'])['toVersion']),void 0x0!==_0x3b568e['toVersion']&&void 0x0===_0x3b568e['fromVersion']&&(_0x3b568e['fromVersion']=this['repository']['getRevision'](_0x3b568e['id'])['fromVersion']);}const _0x53c2de=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4545b8,_0x53c2de)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2e34dd=>{if(_0x2e34dd){for(const _0x170eb8 of _0x2e34dd)this['setRevisionData']({'id':_0x170eb8['id'],'createdAt':_0x170eb8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x10de7e=null,from:_0x1e6efa=null,to:_0x55e1fd=null}){_0x1e6efa=null!==_0x1e6efa?_0x1e6efa:_0x10de7e['fromVersion'],_0x55e1fd=null!==_0x55e1fd?_0x55e1fd:_0x10de7e['toVersion'];const _0x14a586=this['_revisionDataBuilder']['getData'](_0x1e6efa,_0x55e1fd),_0x5ad0c2={'diffData':_0x14a586['diffData'],'authorsIds':_0x14a586['authorsIds'],'fromVersion':_0x1e6efa,'toVersion':_0x55e1fd};if(!_0x10de7e||_0x55e1fd!==_0x10de7e['toVersion']){const _0x110d72=_0x55e1fd-0x1,_0x353bba=this['_source']['history']['getOperation'](_0x110d72);_0x5ad0c2['createdAt']=_0x353bba&&_0x353bba['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1e6efa===this['_loadedStateData']['fromVersion']){for(const _0x49ec15 of this['_loadedStateData']['authors'])_0x5ad0c2['authorsIds']['includes'](_0x49ec15['id'])||_0x5ad0c2['authorsIds']['push'](_0x49ec15['id']);}return _0x5ad0c2;}['_bufferUpdate'](_0x33ec95,_0x1facdb,_0x4864a7){if(this['_bufferedUpdates']['has'](_0x33ec95)){const _0x4234f6=this['_bufferedUpdates']['get'](_0x33ec95);_0x1facdb=_0x4864a7?{..._0x4234f6,..._0x1facdb}:{..._0x1facdb,..._0x4234f6};}this['_bufferedUpdates']['set'](_0x33ec95,_0x1facdb);}['setRevisionData'](_0x284cf0){const _0x54bf8b=this['repository']['getRevision'](_0x284cf0['id']);if(_0x284cf0['createdAt']&&(_0x284cf0['createdAt']=new Date(_0x284cf0['createdAt'])),_0x284cf0['authorsIds']){const _0xa67d99=this['editor']['plugins']['get']('Users');_0x284cf0['authors']=_0x284cf0['authorsIds']['map'](_0xb3b1d9=>_0xa67d99['getUser'](_0xb3b1d9));}_0x54bf8b['_update'](_0x284cf0,!0x0);}['_createInitialRevision'](_0x411a19){const _0x440078=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x440078)this['_initialRevisionId']=_0x440078['id'];else{const _0x52df6a=!this['editor']['model']['document']['roots']['find'](_0x861855=>this['editor']['model']['hasContent'](_0x861855)),_0x5d8871=this['editor']['plugins']['get']('Users')['me']['id'],_0x56f9c1=g(this['editor']['locale'],_0x52df6a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x411a19,'to':_0x411a19,'id':this['_initialRevisionId'],'name':_0x56f9c1,'creatorId':_0x5d8871});}}['_createCurrentRevision'](_0x3b2b60){const _0x8e36eb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x8e36eb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3b2b60,'to':_0x3b2b60,'id':_0x8e36eb,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x1bcdc8,_0x37f80c){let _0x4555cb=this['editor']['config']['get']('initialData'),_0x5a23d5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4555cb){_0x4555cb={};for(const _0x558216 of this['editor']['model']['document']['getRootNames']())_0x4555cb[_0x558216]='';}if('string'==typeof _0x4555cb&&(_0x4555cb={'main':_0x4555cb}),void 0x0===_0x5a23d5){_0x5a23d5={};for(const _0x3926c6 of this['editor']['model']['document']['getRootNames']())_0x5a23d5[_0x3926c6]={};}let _0x57a604=!0x1;const _0x43e347=Object['keys'](_0x4555cb),_0x8b3aa5=Object['keys'](_0x1bcdc8);for(const _0x2cf1ba of _0x43e347){if(_0x4555cb[_0x2cf1ba]!==_0x1bcdc8[_0x2cf1ba]&&''!==_0x4555cb[_0x2cf1ba]['trim']()){_0x57a604=!0x0;break;}if(!_0xf42df9(_0x5a23d5[_0x2cf1ba],_0x37f80c[_0x2cf1ba])&&Object['keys'](_0x5a23d5[_0x2cf1ba])['length']>0x0){_0x57a604=!0x0;break;}}_0x57a604||(_0x57a604=_0x8b3aa5['some'](_0x4acd88=>!this['editor']['model']['document']['getRoot'](_0x4acd88))),_0x57a604&&_0x223dbb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4555cb,'editorRootsAttributes':_0x5a23d5,'revisionData':_0x1bcdc8,'revisionRootsAttributes':_0x37f80c}),this['editor']['config']['set']('initialData',_0x1bcdc8),this['editor']['config']['set']('rootsAttributes',_0x37f80c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x12d69b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x12d69b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xa87917){const _0x56203a=this['repository']['getRevisions']();_0x56203a['reverse']();let _0x193483=0x0;for(;_0x193483<_0x56203a['length'];){const _0x523058=_0x56203a[_0x193483];if(_0x523058===this['currentRevision']){_0x193483++;continue;}if(_0x523058['id']===this['_initialRevisionId'])break;const _0x3255e8=_0xa87917['toVersion']-_0x523058['toVersion']||_0xa87917['fromVersion']-_0x523058['fromVersion'];if(_0x3255e8>0x0)break;if(_0x3255e8<0x0)_0x193483++;else{if(!_0xa87917['creator']&&_0x523058['creator'])break;if(_0x523058['creator']||!_0xa87917['creator']){if(_0xa87917['createdAt']>_0x523058['createdAt'])break;_0x193483++;}else _0x193483++;}}return _0x193483;}['_getFromVersion'](_0xed989e){const _0x157b1a=this['repository']['getRevisions']();_0x157b1a['reverse'](),_0x157b1a['shift']();const _0x9cd9a4=_0x157b1a['find'](_0x58318c=>_0x58318c['toVersion']<=_0xed989e)['toVersion'];return _0x9cd9a4<this['_startingVersion']?this['_startingVersion']:_0x9cd9a4;}['_makeRevision']({name:_0x10290b,from:_0x29d036,to:_0x24d72d,creatorId:_0xaf2fb9,id:_0x4726f2}){const _0x4df6b4=this['buildRevisionData']({'from':_0x29d036,'to':_0x24d72d});_0x4df6b4['name']=_0x10290b,_0x4df6b4['creatorId']=_0xaf2fb9,_0x4df6b4['id']=_0x4726f2;const _0xed83c2=this['addRevisionData'](_0x4df6b4);return this['adapter']&&this['_bufferUpdate'](_0x4df6b4['id'],_0x4df6b4,!0x0),_0xed83c2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4c04fa){this['editor']=_0x4c04fa,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'](_0x5120cb){this['source']=_0x5120cb;const _0xc04b3d=new Map(),_0x1126db=new Map(),_0x1c773a=this['editor']['model']['document']['roots']['map'](_0x25edd6=>_0x25edd6['rootName']);for(const _0x34a53f of _0x1c773a){const _0x323e56=this['editor']['model']['document']['getRoot'](_0x34a53f),_0x3cffb7=N(_0x323e56);_0xc04b3d['set'](_0x34a53f,_0x3cffb7),_0x1126db['set'](_0x34a53f,Object['fromEntries'](_0x323e56['getAttributes']()));}const _0x5079b3=Array['from'](this['editor']['model']['markers'])['map'](_0x49502d=>[_0x49502d['name'],_0x49502d['getRange']()]),_0x3c92c2=this['source']['version'];this['_saveMetaData'](_0x3c92c2,_0xc04b3d,_0x5079b3,_0x1126db),this['_startingRevisionId']=this['_revisionId'];const _0x6ba6e=new Map(),_0x23dbe5=new Map();for(const _0x5e2131 of _0x1c773a){const _0xaa6ce2=P(_0x5e2131);_0x6ba6e['set'](_0x5e2131,_0xaa6ce2),_0x23dbe5['set'](_0x5e2131,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x6ba6e,[],_0x23dbe5);}['getData'](_0x28902c,_0x2fe3fe){if(this['_lastFrom']===_0x28902c&&this['_lastTo']<=_0x2fe3fe)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2fe3fe,!0x0);else{if(!this['_savedMetaData']['has'](_0x28902c)){const _0x25893a=this['_getPreviousFrom'](_0x28902c);this['_calculateMetaData'](_0x25893a,_0x28902c,!0x1);}this['_calculateMetaData'](_0x28902c,_0x2fe3fe,!0x0);}return this['_lastFrom']=_0x28902c,this['_lastTo']=_0x2fe3fe,this['_getState']();}['loadState'](_0x1179ca){const _0x1a8346=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1179ca['fromVersion'],this['_lastTo']=_0x1179ca['toVersion'];for(const _0x73737 in _0x1179ca['diffData']){const _0x5b0269=_0x1179ca['diffData'][_0x73737]['attachChange'],_0x3a3656=_0x25c995(_0x1179ca['diffData'][_0x73737]['attributesBefore'])||{},_0x3abb0f=_0x1a8346['_makeModelFromViewString'](_0x1179ca['diffData'][_0x73737]['deletions']);_0x3abb0f['rootName']=_0x73737,_0x3abb0f['_isAttached']=!_0x5b0269||!_0x5b0269['isAttached'],_0x3abb0f['isAttached']=()=>_0x3abb0f['_isAttached'],this['_baseRoots']['set'](_0x73737,_0x3abb0f),this['_baseRootsAttributes']['set'](_0x73737,_0x3a3656),_0x5b0269&&this['_touchedRoots']['set'](_0x73737,_0x5b0269);const _0x2691c0=this['_makeIdsRoot'](_0x3abb0f);this['_baseIdsRoots']['set'](_0x73737,_0x2691c0);for(const [_0x5d4685,_0x2fef9b]of _0x3abb0f['markers']){if(!_0x5d4685['startsWith']('revision:'))continue;const _0x1e7141=_0x5d4685['split'](':')[0x2];for(const _0x45f5fa of _0x2fef9b['getWalker']({'singleCharacters':!0x0})){const _0x452f6c=this['_getVidAttributeName'](_0x45f5fa),_0x15d8e6='elementEnd'==_0x45f5fa['type']?_0x45f5fa['previousPosition']['path']['slice'](0x0,-0x1):_0x45f5fa['previousPosition']['path'],_0x5c6f0d=_0x2691c0['getNodeByPath'](_0x15d8e6)['getAttribute'](_0x452f6c);this['_touched']['set'](_0x5c6f0d,{'userId':_0x1e7141});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4ac088=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x551f63=>!this['_touched']['has'](_0x551f63));let _0xdf3893=0x0;const _0x387b01=new Map();for(const _0x599360 in _0x1179ca['diffData']){const _0x3c19a3=_0x1179ca['diffData'][_0x599360]['attachChange'],_0x21e6ec=_0x25c995(_0x1179ca['diffData'][_0x599360]['attributesAfter'])||{},_0x38ca7f=_0x1a8346['_makeModelFromViewString'](_0x1179ca['diffData'][_0x599360]['insertions']);_0x38ca7f['rootName']=_0x599360,_0x38ca7f['_isAttached']=!_0x3c19a3||_0x3c19a3['isAttached'],_0x38ca7f['isAttached']=()=>_0x38ca7f['_isAttached'],this['_diffRoots']['set'](_0x599360,_0x38ca7f),this['_diffRootsAttributes']['set'](_0x599360,_0x21e6ec);const _0x5a73ac=this['_makeIdsRoot'](_0x38ca7f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x599360,_0x5a73ac),_0x387b01['set'](_0x599360,_0x38ca7f['isAttached']()?_0x21e6ec:{});for(const [_0x358dad,_0x4e88e1]of _0x38ca7f['markers']){if(!_0x358dad['startsWith']('revision:'))continue;const _0x388827=_0x358dad['split'](':')[0x2];for(const _0x4e6ee7 of _0x4e88e1['getWalker']({'singleCharacters':!0x0})){const _0x33fa1b=this['_getVidAttributeName'](_0x4e6ee7),_0x16b1bf=this['_revisionId']++,_0x4f710f='elementEnd'==_0x4e6ee7['type']?_0x4e6ee7['previousPosition']['path']['slice'](0x0,-0x1):_0x4e6ee7['previousPosition']['path'];_0x5a73ac['getNodeByPath'](_0x4f710f)['_setAttribute'](_0x33fa1b,_0x16b1bf),this['_touched']['set'](_0x16b1bf,{'userId':_0x388827});}}for(const _0x2bbb20 of this['editor']['model']['createRangeIn'](_0x38ca7f)['getWalker']({'singleCharacters':!0x0})){const _0x458ba9=this['_getVidAttributeName'](_0x2bbb20),_0x2900fb='elementEnd'==_0x2bbb20['type']?_0x2bbb20['previousPosition']['path']['slice'](0x0,-0x1):_0x2bbb20['previousPosition']['path'],_0x2e9a18=_0x5a73ac['getNodeByPath'](_0x2900fb);_0x2e9a18['getAttribute'](_0x458ba9)>0x0||_0x2e9a18['_setAttribute'](_0x458ba9,_0x4ac088[_0xdf3893++]);}for(const [_0x4bd67,_0x5335cf]of _0x38ca7f['markers'])_0x4bd67['startsWith']('revision:')||this['_markers']['set'](_0x4bd67,_0x5335cf);}const _0x4bf626=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4bf626),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4bf626,0x1));const _0x32c9aa=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x32c9aa),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x32c9aa,0x1));const _0x34a0f6=Array['from'](this['_diffRoots'])['map'](([_0x344654,_0x2d4cd1])=>[_0x344654,N(_0x2d4cd1)]);this['_saveMetaData'](this['_lastTo'],_0x34a0f6,this['_markers'],_0x387b01);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1e984e,_0xefeb57,_0x390152,_0x482da2){const _0x32f7c3=new Map(_0xefeb57),_0x5e75f4=new Map(_0x25c995(_0x482da2)),_0x4772b3=new Map();for(const [_0x3436cc,_0x5f5685]of _0x390152)_0x4772b3['set'](_0x3436cc,{'start':_0x5f5685['start']['clone'](),'end':_0x5f5685['end']['clone'](),'rootName':_0x5f5685['root']['rootName']});this['_savedMetaData']['set'](_0x1e984e,{'roots':_0x32f7c3,'markers':_0x4772b3,'rootsAttributes':_0x5e75f4});}['_removeMetaData'](_0x2229f6){this['_savedMetaData']['delete'](_0x2229f6);}['_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'](_0x4f99ab,_0x9e87d3=null){let _0x3d76b9=null;_0x4f99ab['is']('documentFragment')||(_0x3d76b9=new ut(_0x4f99ab['name'],{'vid_start':null===_0x9e87d3?this['_revisionId']++:_0x9e87d3++}));const _0x2efa4c=[];for(const _0x12fbad of _0x4f99ab['getChildren']())if(_0x12fbad['is']('element')){_0x2efa4c['push'](this['_makeIdsRoot'](_0x12fbad,_0x9e87d3));const _0xb652=_0x2efa4c[_0x2efa4c['length']-0x1];null!==_0x9e87d3&&(_0x9e87d3=_0xb652['is']('element','$text')?_0xb652['getAttribute']('vid')+0x1:_0xb652['getAttribute']('vid_end')+0x1);}else{for(let _0x170b52=0x0;_0x170b52<_0x12fbad['offsetSize'];_0x170b52++)_0x2efa4c['push'](new ut('$text',{'vid':null===_0x9e87d3?this['_revisionId']++:_0x9e87d3++}));}if(_0x4f99ab['is']('documentFragment')){const _0x13966c=P(_0x4f99ab['rootName']);return _0x13966c['_insertChild'](0x0,_0x2efa4c),_0x13966c;}return _0x3d76b9['_setAttribute']('vid_end',null===_0x9e87d3?this['_revisionId']++:_0x9e87d3++),_0x3d76b9['_insertChild'](0x0,_0x2efa4c),_0x3d76b9;}['_calculateMetaData'](_0x2abfc6,_0xcd5ef1,_0x1b164f){this['_reset']();const {roots:_0xea737f,markers:_0xf50550,rootsAttributes:_0x3e6f14}=this['_savedMetaData']['get'](_0x2abfc6);this['_baseRoots']=new Map(_0xea737f),this['_baseRootsAttributes']=new Map(_0x25c995(_0x3e6f14));for(const [_0x2af116,_0x37706c]of this['_baseRoots'])if('$graveyard'!==_0x2af116&&(this['_diffRoots']['set'](_0x2af116,N(_0x37706c)),this['_diffRootsAttributes']=new Map(_0x25c995(_0x3e6f14)),_0x1b164f)){const _0x2011dc=this['_revisionId'];this['_idsRoots']['set'](_0x2af116,this['_makeIdsRoot'](_0x37706c)),this['_baseIdsRoots']['set'](_0x2af116,this['_makeIdsRoot'](_0x37706c,_0x2011dc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x1b164f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x38e2e5,_0x3d1390]of _0xf50550){const _0xe60c6c=this['_baseRoots']['get'](_0x3d1390['rootName']),_0x5bfda3=this['_diffRoots']['get'](_0x3d1390['rootName']),_0x5b8dc5=new lt(this['_fixPosition'](_0x3d1390['start'],_0xe60c6c),this['_fixPosition'](_0x3d1390['end'],_0xe60c6c)),_0xc9ed2e=this['_fixRange'](_0x5b8dc5,_0x5bfda3);_0xe60c6c['markers']['set'](_0x38e2e5,_0x5b8dc5),this['_markers']['set'](_0x38e2e5,_0xc9ed2e);}this['_applyOperations'](_0x2abfc6,_0xcd5ef1,_0x1b164f);}['_applyOperations'](_0x22fb97,_0x4b83e0,_0x3cfddc){for(const _0x5989eb of this['source']['getOperations'](_0x22fb97,_0x4b83e0))this['_handleOperation'](_0x5989eb,_0x3cfddc);for(const _0x5c868c of this['_diffRoots']['values']())_0x5c868c['markers']['clear']();for(const [_0x5eb9d1,_0x24d1f6]of this['_markers']){this['_diffRoots']['get'](_0x24d1f6['root']['rootName'])['markers']['set'](_0x5eb9d1,_0x24d1f6['clone']());}const _0x273477=new Map(),_0x24c3d5=new Map();for(const [_0x3cd6f,_0x3becf5]of this['_diffRoots'])_0x273477['set'](_0x3cd6f,N(_0x3becf5)),_0x24c3d5['set'](_0x3cd6f,this['_diffRootsAttributes']['get'](_0x3cd6f));this['_saveMetaData'](_0x4b83e0,_0x273477,this['_markers'],_0x24c3d5);}['_getPreviousFrom'](_0x154033){const _0x5401cf=Array['from'](this['_savedMetaData']['keys']());_0x5401cf['sort']((_0x42b91b,_0x403ccf)=>_0x42b91b-_0x403ccf),_0x5401cf['reverse']();for(const _0x178476 of _0x5401cf)if(_0x178476<_0x154033)return _0x178476;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3abc87,_0x1ec519){const _0x1fc907=Array['from'](_0x1ec519['markers'])['map'](([_0x18e322,_0x51bc2e])=>[_0x18e322,this['_fixRange'](_0x51bc2e,_0x3abc87)]);_0x3abc87['markers']=new Map(_0x1fc907);}['_transformMarkers'](_0x3eab88){for(const _0xba8b0b of this['_markers']['values']()){const _0x1850bd=_0xba8b0b['getTransformedByOperation'](_0x3eab88),_0x233d72=lt['_createFromRanges'](_0x1850bd);_0xba8b0b['start']=_0x233d72['start'],_0xba8b0b['end']=_0x233d72['end'];}}['_handleOperation'](_0x13f00c,_0x285104){if('addRoot'!=_0x13f00c['type']&&'detachRoot'!=_0x13f00c['type']){if('insert'==_0x13f00c['type']){const _0x12a8a8=_0x13f00c['position']['root']['rootName'];this['_diffRoots']['has'](_0x12a8a8)||(this['_diffRoots']['set'](_0x12a8a8,P(_0x12a8a8,!0x0)),this['_diffRootsAttributes']['set'](_0x12a8a8,{}),_0x285104&&this['_idsRoots']['set'](_0x12a8a8,P(_0x12a8a8,!0x0)));}else{if('addRootAttribute'==_0x13f00c['type']||'removeRootAttribute'==_0x13f00c['type']||'changeRootAttribute'==_0x13f00c['type'])return void this['_handleRootAttributeOperation'](_0x13f00c);'marker'==_0x13f00c['type']&&this['_handleMarkerOperation'](_0x13f00c);}if('marker'!==_0x13f00c['type']){const _0x66bcf=this['_cloneOperation'](_0x13f00c,this['_diffRoots']);_0x66bcf['_execute'](),this['_transformMarkers'](_0x66bcf);}if(_0x285104)switch(_0x13f00c['type']){case'insert':this['_handleInsertOperation'](_0x13f00c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x13f00c);break;case'merge':this['_handleMergeOperation'](_0x13f00c);break;case'split':this['_handleSplitOperation'](_0x13f00c);}}else this['_handleRootOperation'](_0x13f00c,_0x285104);}['_cloneOperation'](_0x47c126,_0x14aca0){const _0x3725da=_0x47c126['clone']();return _0x3725da['_authorId']=_0x47c126['_authorId'],this['_fixOperation'](_0x3725da,_0x14aca0),_0x3725da;}['_getBaseVids'](_0x109ba9){return _0x109ba9['map'](_0x2cc91d=>{const _0x644a53=this['_getVidAttributeName'](_0x2cc91d);return Number(_0x2cc91d['item']['getAttribute'](_0x644a53));});}['_generateTape'](_0x46fea3,_0x12680d){if(_0x46fea3['is']('element','$text'))_0x12680d['push']({'item':_0x46fea3,'type':'text'});else{_0x46fea3['is']('element')&&_0x12680d['push']({'item':_0x46fea3,'type':'elementStart'});for(const _0x4adbe3 of _0x46fea3['getChildren']())this['_generateTape'](_0x4adbe3,_0x12680d);_0x46fea3['is']('element')&&_0x12680d['push']({'item':_0x46fea3,'type':'elementEnd'});}return _0x12680d;}['_getState'](){const _0x354dc7=new Map(this['_touched']),_0x47144c=new Map(_0x354dc7),_0x464adf=new Map(),_0x13f58e={'insertions':{},'deletions':{}},_0x538d61={'insertions':{},'deletions':{}},_0x3973ff=new Map(),_0x505d5e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x505d5e['delete']('$graveyard');for(const _0x4087f8 of _0x505d5e){const _0x33aa2a=this['_diffRoots']['get'](_0x4087f8)||P(_0x4087f8,!0x1),_0xb17227=this['_baseRoots']['get'](_0x4087f8)||P(_0x4087f8,!0x1);_0x33aa2a['isAttached']()||_0xb17227['isAttached']()?(_0x13f58e['insertions'][_0x4087f8]=N(_0x33aa2a),_0x13f58e['deletions'][_0x4087f8]=N(_0xb17227),this['_copyMarkers'](_0x13f58e['deletions'][_0x4087f8],_0xb17227),this['_copyMarkers'](_0x13f58e['insertions'][_0x4087f8],_0x33aa2a),_0x538d61['insertions'][_0x4087f8]=this['_generateTape'](this['_idsRoots']['get'](_0x4087f8),[]),_0x538d61['deletions'][_0x4087f8]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4087f8)||P(_0x4087f8,!0x1),[])):_0x505d5e['delete'](_0x4087f8);}for(const _0x275d40 of _0x505d5e){const _0x24c96b=_0x538d61['insertions'][_0x275d40];for(const _0x578276 of _0x24c96b){const _0x42567a=this['_getVidAttributeName'](_0x578276),_0x3abb74=_0x578276['item']['getAttribute'](_0x42567a);_0x47144c['delete'](_0x3abb74),_0x3abb74>=this['_startingRevisionId']&&_0x464adf['set'](_0x3abb74,_0x354dc7['get'](_0x3abb74));}}for(const _0x3d2ee7 of _0x505d5e){const _0x2fa0a3=_0x538d61['insertions'][_0x3d2ee7],_0x24e41f=this['_getBaseVids'](_0x538d61['deletions'][_0x3d2ee7]);let _0xe18952=0x0;for(const _0x3da0fc of _0x2fa0a3){const _0x586cf1=this['_getVidAttributeName'](_0x3da0fc),_0x3ff1e9=_0x3da0fc['item']['getAttribute'](_0x586cf1);if(!_0x464adf['has'](_0x3ff1e9)&&!_0x3973ff['has'](_0x3ff1e9)){if(_0x47144c['has'](_0x3ff1e9))_0xe18952++;else{if(_0x3ff1e9!=_0x24e41f[_0xe18952]){const _0x3ccf81=_0x354dc7['get'](_0x3ff1e9)||_0x354dc7['get'](_0x24e41f[_0xe18952]);for(;_0x3ff1e9!=_0x24e41f[_0xe18952];)_0x47144c['has'](_0x24e41f[_0xe18952])||(_0x3973ff['set'](_0x24e41f[_0xe18952],_0x3ccf81),_0x354dc7['set'](_0x24e41f[_0xe18952],_0x3ccf81)),_0xe18952++;}_0xe18952++;}}}}for(const _0x2c23ba of _0x505d5e){const _0x2f8e78=_0x538d61['insertions'][_0x2c23ba];for(const _0x58c871 of _0x2f8e78){const _0x39ce01=this['_getVidAttributeName'](_0x58c871),_0x3635f0=_0x58c871['item']['getAttribute'](_0x39ce01);if(_0x3973ff['has'](_0x3635f0)){const _0x41af37=_0x3973ff['get'](_0x3635f0);_0x47144c['has'](_0x3635f0)||_0x47144c['set'](_0x3635f0,{..._0x41af37}),_0x464adf['set'](_0x3635f0,{..._0x41af37});}}}for(const _0x19d768 of _0x47144c['keys']())_0x19d768>=this['_startingRevisionId']&&_0x47144c['delete'](_0x19d768);const _0x3d3078=new Map();for(const _0x599b7e of _0x505d5e){let _0x1723d9=_0x538d61['insertions'][_0x599b7e];for(const _0x3e4a1f of _0x1723d9)if(_0x3e4a1f['item']['is']('element','tableCell')){const _0x2156d7=this['_getVidAttributeName'](_0x3e4a1f),_0x3e7dd9=_0x3e4a1f['item']['getAttribute'](_0x2156d7);if(_0x464adf['has'](_0x3e7dd9)){const _0x3f4ed1=_0x3e4a1f['item']['parent']['parent']['getAttribute']('vid_start'),_0x3aaff5=_0x3d3078['get'](_0x3f4ed1)||new Set();_0x3aaff5['add'](_0x464adf['get'](_0x3e7dd9)['userId']),_0x3d3078['set'](_0x3f4ed1,_0x3aaff5);}}_0x1723d9=_0x538d61['deletions'][_0x599b7e];for(const _0x1507c4 of _0x1723d9)if(_0x1507c4['item']['is']('element','tableCell')){const _0x23ec8d=this['_getVidAttributeName'](_0x1507c4),_0x465afe=_0x1507c4['item']['getAttribute'](_0x23ec8d);if(_0x47144c['has'](_0x465afe)){const _0x130d09=_0x1507c4['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ac467=_0x3d3078['get'](_0x130d09)||new Set();_0x4ac467['add'](_0x47144c['get'](_0x465afe)['userId']),_0x3d3078['set'](_0x130d09,_0x4ac467);}}for(const _0x4d7dca of _0x3d3078['keys']())(_0x464adf['has'](_0x4d7dca)||_0x47144c['has'](_0x4d7dca))&&_0x3d3078['delete'](_0x4d7dca);}for(const _0x334894 of _0x505d5e){const _0x45e9ef=_0x538d61['insertions'][_0x334894];let _0x369ef8=null,_0x72ce2d=null;for(const _0x8df839 of _0x45e9ef){const _0x45c1f0=this['_getVidAttributeName'](_0x8df839),_0x9a0bbe=_0x8df839['item']['getAttribute'](_0x45c1f0),_0x3794cb=_0x3d3078['get'](_0x9a0bbe);_0x3794cb&&'elementStart'==_0x8df839['type']&&(_0x369ef8=Array['from'](_0x3794cb)[0x0],_0x72ce2d=_0x8df839['item']['getAttribute']('vid_end')),_0x369ef8&&(_0x47144c['set'](_0x9a0bbe,{'userId':_0x369ef8}),_0x464adf['set'](_0x9a0bbe,{'userId':_0x369ef8})),_0x9a0bbe==_0x72ce2d&&(_0x369ef8=null,_0x72ce2d=null);}}const _0x4ef524={},_0xab38a5=new Set();for(const _0xf53f51 of _0x505d5e){const _0x30600d=_0x13f58e['deletions'][_0xf53f51],_0xb764f7=_0x13f58e['insertions'][_0xf53f51];for(const {userId:_0x521f89}of this['_touchedMarkers']['values']())null!==_0x521f89&&_0xab38a5['add'](_0x521f89);for(const {userId:_0xde5afc}of this['_touchedRoots']['values']())null!==_0xde5afc&&_0xab38a5['add'](_0xde5afc);this['_markChanges'](_0xb764f7,_0x538d61['insertions'][_0xf53f51],_0x464adf,'insertion',_0xab38a5),this['_markChanges'](_0x30600d,_0x538d61['deletions'][_0xf53f51],_0x47144c,'deletion',_0xab38a5),_0x4ef524[_0xf53f51]={'insertions':this['_prepareViewToSave'](_0xb764f7),'deletions':this['_prepareViewToSave'](_0x30600d),'attachChange':this['_touchedRoots']['get'](_0xf53f51)||null,'attributesBefore':_0x25c995(this['_baseRootsAttributes']['get'](_0xf53f51))||{},'attributesAfter':_0x25c995(this['_diffRootsAttributes']['get'](_0xf53f51))};}return{'diffData':_0x4ef524,'authorsIds':Array['from'](_0xab38a5)};}['_processRootBeforeSave'](_0x1d9ced){for(const [,_0x4f0624]of _0x1d9ced['markers']){const _0x19febb=_0x4f0624['start']['getAncestors']()['filter'](_0x4917d3=>'tableCell'==_0x4917d3['name']);for(const _0x48204f of _0x19febb)0x1==_0x48204f['childCount']&&_0x48204f['getChild'](0x0)['is']('element','paragraph')&&_0x48204f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xf5712){this['_processRootBeforeSave'](_0xf5712);const _0x4e06df=this['editor']['data']['toView'](_0xf5712,{}),_0x2a201c=Array['from'](_0x4e06df['getChildren']())['map'](_0x5792ed=>this['_getViewJson'](_0x5792ed));return JSON['stringify'](_0x2a201c);}['_getViewJson'](_0x41900e){if(_0x41900e['is']('$text'))return _0x41900e['data'];{const _0x520b47=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4fba9b=_0x41900e,_0x28647b=this['editor']['data']['htmlProcessor']['domConverter'],_0x30a975={'type':_0x520b47['_getTypeCharForViewElement'](_0x4fba9b),'name':_0x4fba9b['name'],'attributes':Array['from'](_0x4fba9b['getAttributes']()),'children':Array['from'](_0x4fba9b['getChildren']())['map'](_0x18ff13=>this['_getViewJson'](_0x18ff13))};if(_0x41900e['is']('uiElement')&&'$comment'!=_0x41900e['name']){const _0x404899=_0x41900e['render'](_0x28647b['domDocument'],_0x28647b);_0x30a975['children']['push'](_0x404899['outerHTML']);}else{if(_0x41900e['is']('rawElement')){const _0x2cae44=_0x28647b['domDocument']['createElement'](_0x4fba9b['name']);_0x41900e['render'](_0x2cae44,_0x28647b),_0x30a975['children']['push'](_0x2cae44['innerHTML']);}}const _0x355988=Array['from'](_0x4fba9b['getCustomProperties']());_0x355988['length']>0x0&&(_0x30a975['customProperties']=_0x355988);const _0x40d6b2=_0x4fba9b['getFillerOffset']();return null!==_0x40d6b2&&(_0x30a975['fillerOffset']=_0x40d6b2),_0x30a975;}}['_markChanges'](_0x10ef42,_0x5500ab,_0x5d4ded,_0x46f5d3,_0x37c1f2){let _0x3b17e1=null,_0x15c1d8=null,_0x292228=0x0;const _0x2d0ad8=this['editor']['model'];for(let _0x241c03=0x0;_0x241c03<_0x5500ab['length'];_0x241c03++){const _0x4f37a2=this['_getVidAttributeName'](_0x5500ab[_0x241c03]),_0x2c434d=_0x5500ab[_0x241c03]['item']['getAttribute'](_0x4f37a2),_0x106d43=_0x5d4ded['get'](_0x2c434d),_0x49bf25=_0x241c03==_0x5500ab['length']-0x1;(!_0x3b17e1&&_0x106d43&&(_0x3b17e1=_0x106d43,_0x15c1d8=_0x5500ab[_0x241c03]),_0x3b17e1&&(!_0x106d43||_0x106d43['userId']!=_0x3b17e1['userId']))&&(_0x2fbec5(_0x106d43,F(_0x15c1d8,_0x10ef42,_0x2d0ad8),F(_0x5500ab[_0x241c03],_0x10ef42,_0x2d0ad8)),_0x3b17e1=_0x106d43||null,_0x15c1d8=_0x106d43?_0x5500ab[_0x241c03]:null),_0x3b17e1&&_0x49bf25&&_0x2fbec5(_0x106d43,F(_0x15c1d8,_0x10ef42,_0x2d0ad8),B(_0x5500ab[_0x241c03],_0x10ef42,_0x2d0ad8));}function _0x2fbec5(_0x1b6153,_0xe05ac3,_0x100a92){const _0x2effbc=_0x3b17e1['userId'],_0x5da5f2='revision:'+_0x46f5d3+':'+_0x2effbc+':'+_0x292228++,_0x3d05e9=_0x2d0ad8['createRange'](_0xe05ac3,_0x100a92);_0x10ef42['markers']['set'](_0x5da5f2,_0x3d05e9),null!==_0x2effbc&&_0x37c1f2['add'](_0x2effbc);}}['_getVidAttributeName'](_0xfc135f){switch(_0xfc135f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4b8fb4,_0x4cbac9){_0x4b8fb4['baseVersion']=null;for(const _0x2fbbe0 in _0x4b8fb4){const _0x4b5d0a=_0x4b8fb4[_0x2fbbe0];if(_0x4b5d0a instanceof ft){const _0x49c01f=_0x4cbac9['get'](_0x4b5d0a['root']['rootName']);_0x4b8fb4[_0x2fbbe0]=this['_fixPosition'](_0x4b5d0a,_0x49c01f);}if(_0x4b5d0a instanceof lt){const _0x36a329=_0x4cbac9['get'](_0x4b5d0a['root']['rootName']);_0x4b8fb4[_0x2fbbe0]=this['_fixRange'](_0x4b5d0a,_0x36a329);}'root'===_0x2fbbe0&&(_0x4b8fb4['root']=_0x4cbac9['get'](_0x4b8fb4['root']['rootName']));}}['_fixRange'](_0x16d3e0,_0x2ceb92){return this['editor']['model']['createRange'](this['_fixPosition'](_0x16d3e0['start'],_0x2ceb92),this['_fixPosition'](_0x16d3e0['end'],_0x2ceb92));}['_fixPosition'](_0x2a3412,_0x2b6b51){return this['editor']['model']['createPositionFromPath'](_0x2b6b51,_0x2a3412['path'],_0x2a3412['stickiness']);}['_handleInsertOperation'](_0x1f3263){const _0x33c76e=this['_idsRoots']['get'](_0x1f3263['position']['root']['rootName']),_0x2125f0=this['_fixPosition'](_0x1f3263['position'],_0x33c76e),_0x578857=null===_0x1f3263['_authorId']?null:_0x1f3263['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29f67f=_0x2125f0['parent'],_0x504074=this['_revisionId'],_0x3d40bf=[];for(const _0x3926ae of _0x1f3263['nodes'])if(_0x3926ae['is']('element'))_0x3d40bf['push'](this['_makeIdsRoot'](_0x3926ae));else{for(let _0x2003c2=0x0;_0x2003c2<_0x3926ae['offsetSize'];_0x2003c2++)_0x3d40bf['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x39dc8a=this['_revisionId'];for(let _0x206df5=_0x504074;_0x206df5<_0x39dc8a;_0x206df5++)this['_touched']['set'](_0x206df5,{'userId':_0x578857});_0x29f67f['_insertChild'](_0x2125f0['offset'],_0x3d40bf);}['_handleMoveOperation'](_0x42fb48){(_0x42fb48=this['_cloneOperation'](_0x42fb48,this['_idsRoots']))['_execute']();const _0x409576=null===_0x42fb48['_authorId']?null:_0x42fb48['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41ad12=_0x42fb48['getMovedRangeStart'](),_0x138513=_0x41ad12['parent'],_0x39af18=_0x41ad12['offset'];!function _0x4f49bb(_0x4bad2a,_0x48b6ef,_0xe7f4d,_0x2a4194){for(let _0x9bc8f6=_0xe7f4d;_0x9bc8f6<_0x2a4194;_0x9bc8f6++){const _0x146e81=_0x48b6ef['getChild'](_0x9bc8f6);_0x146e81['is']('element','$text')?_0x4bad2a['set'](_0x146e81['getAttribute']('vid'),{'userId':_0x409576}):(_0x4bad2a['set'](_0x146e81['getAttribute']('vid_start'),{'userId':_0x409576}),_0x4f49bb(_0x4bad2a,_0x146e81,0x0,_0x146e81['childCount']),_0x4bad2a['set'](_0x146e81['getAttribute']('vid_end'),{'userId':_0x409576}));}}(this['_touched'],_0x138513,_0x39af18,_0x39af18+_0x42fb48['howMany']);}['_handleMergeOperation'](_0x478f9a){const _0x5c34e4=null===(_0x478f9a=this['_cloneOperation'](_0x478f9a,this['_idsRoots']))['_authorId']?null:_0x478f9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x501d5d=_0x478f9a['targetPosition']['parent'],_0x11c400=_0x478f9a['sourcePosition']['parent'],_0x4c16ea=_0x501d5d['getAttribute']('vid_end'),_0x41448e=_0x11c400['getAttribute']('vid_start');_0x501d5d['_setAttribute']('vid_end',_0x11c400['getAttribute']('vid_end')),_0x11c400['_setAttribute']('vid_end',_0x4c16ea),this['_touched']['set'](_0x41448e,{'userId':_0x5c34e4}),this['_touched']['set'](_0x4c16ea,{'userId':_0x5c34e4}),_0x478f9a['_execute']();}['_handleSplitOperation'](_0x15da8b){const _0x137c93=null===(_0x15da8b=this['_cloneOperation'](_0x15da8b,this['_idsRoots']))['_authorId']?null:_0x15da8b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17bb4f=_0x15da8b['graveyardPosition'],_0xf48711=_0x15da8b['splitPosition']['parent'];_0x15da8b['_execute']();const _0x44a56e=_0xf48711['getAttribute']('vid_end'),_0x489215=_0x15da8b['insertionPosition']['nodeAfter'];if(_0x17bb4f){const _0x1b4a88=_0x489215['getAttribute']('vid_end'),_0x363f11=_0xf48711['getAttribute']('vid_end');_0xf48711['_setAttribute']('vid_end',_0x1b4a88),_0x489215['_setAttribute']('vid_end',_0x363f11),this['_touched']['set'](_0xf48711['getAttribute']('vid_end'),{'userId':_0x137c93}),this['_touched']['set'](_0x489215['getAttribute']('vid_start'),{'userId':_0x137c93});}else{const _0x5a878e=this['_revisionId']++,_0x41b7cb=this['_revisionId']++;_0xf48711['_setAttribute']('vid_end',_0x5a878e),_0x489215['_setAttribute']('vid_start',_0x41b7cb),_0x489215['_setAttribute']('vid_end',_0x44a56e),this['_touched']['set'](_0x5a878e,{'userId':_0x137c93}),this['_touched']['set'](_0x41b7cb,{'userId':_0x137c93});}}['_handleMarkerOperation'](_0x3b1254){if(!_0x3b1254['affectsData'])return;const _0x5a8866=(_0x3b1254=this['_cloneOperation'](_0x3b1254,this['_diffRoots']))['oldRange']?_0x3b1254['oldRange']['root']:null,_0xc04de4=_0x3b1254['newRange']?_0x3b1254['newRange']['root']:null;_0x5a8866&&this['_markers']['delete'](_0x3b1254['name']),_0xc04de4&&this['_markers']['set'](_0x3b1254['name'],_0x3b1254['newRange']['clone']());const _0x2a4534=null===_0x3b1254['_authorId']?null:_0x3b1254['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32a439=_0x3b1254['name'];if(!this['_touchedMarkers']['has'](_0x32a439))return void this['_touchedMarkers']['set'](_0x32a439,{'range':_0x3b1254['oldRange'],'userId':_0x2a4534});const _0x1460eb=this['_touchedMarkers']['get'](_0x32a439),_0x3fde65=_0x1460eb['range'],_0x3e7911=_0x3b1254['newRange'];null==_0x3fde65&&null==_0x3e7911||_0x3fde65&&_0x3e7911&&_0x3fde65['isEqual'](_0x3e7911)?this['_touchedMarkers']['delete'](_0x3b1254['name']):_0x1460eb['userId']=_0x2a4534;}['_handleRootOperation'](_0x316c4f,_0x5a8e93){this['_diffRoots']['has'](_0x316c4f['rootName'])?this['_diffRoots']['get'](_0x316c4f['rootName'])['_isAttached']=_0x316c4f['isAdd']:(this['_diffRoots']['set'](_0x316c4f['rootName'],P(_0x316c4f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x316c4f['rootName'],{}),_0x5a8e93&&this['_idsRoots']['set'](_0x316c4f['rootName'],P(_0x316c4f['rootName'],!0x0)));const _0x201e72=null===_0x316c4f['_authorId']?null:_0x316c4f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ce410=this['_touchedRoots']['get'](_0x316c4f['rootName']);_0x4ce410&&_0x4ce410['userId']===_0x201e72?this['_touchedRoots']['delete'](_0x316c4f['rootName']):this['_touchedRoots']['set'](_0x316c4f['rootName'],{'userId':_0x201e72,'isAttached':_0x316c4f['isAdd']});}['_handleRootAttributeOperation'](_0x4a5d27){const _0x2924f4=this['_diffRootsAttributes']['get'](_0x4a5d27['root']['rootName']);null===_0x4a5d27['newValue']?delete _0x2924f4[_0x4a5d27['key']]:_0x2924f4[_0x4a5d27['key']]=_0x4a5d27['newValue'];}}function N(_0x116dec){const _0x4ca5f8=P(_0x116dec['rootName'],_0x116dec['isAttached']());for(const _0x334958 of _0x116dec['getChildren']()){const _0x2a7659=_0x334958['_clone'](!0x0);_0x4ca5f8['_appendChild'](_0x2a7659);}return _0x4ca5f8;}function P(_0x5e38e9,_0x43d658=!0x0){const _0x9a54c9=new vt();return _0x9a54c9['rootName']=_0x5e38e9,_0x9a54c9['_isAttached']=_0x43d658,_0x9a54c9['isAttached']=()=>_0x9a54c9['_isAttached'],_0x9a54c9;}function F(_0x2babcc,_0x3a22c5,_0x5e7f94){const _0x2c308e='elementEnd'==_0x2babcc['type']?_0x5e7f94['createPositionAt'](_0x2babcc['item'],'end'):_0x5e7f94['createPositionBefore'](_0x2babcc['item']);return _0x5e7f94['createPositionFromPath'](_0x3a22c5,_0x2c308e['path'],_0x2c308e['stickiness']);}function B(_0x3ef295,_0x79ba40,_0x1651dc){const _0x38a995='elementStart'==_0x3ef295['type']?_0x1651dc['createPositionAt'](_0x3ef295['item'],0x0):_0x1651dc['createPositionAfter'](_0x3ef295['item']);return _0x1651dc['createPositionFromPath'](_0x79ba40,_0x38a995['path'],_0x38a995['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1bcd9d,_0x171027){super(_0x1bcd9d),this['focusTracker']=new _0x3d5f91(),this['keystrokes']=new _0x583348(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x171027),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x25b1f2(this);}['render'](){super['render'](),_0x50411b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3d4464=_0x3376bb=>_0x3376bb['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3d4464),this['keystrokes']['set']('arrowleft',_0x3d4464),this['keystrokes']['set']('arrowup',_0x3d4464),this['keystrokes']['set']('arrowdown',_0x3d4464);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x59cb39){this['revisionNameInputView']['fieldView']['element']['value']=_0x59cb39['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x24b823){const _0x72ba45=new _0x53f8a9(this['locale'],_0x33ff0f),_0x5c4374=_0x72ba45['fieldView'];_0x5c4374['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x37bb55=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x24b823&&(_0x37bb55+='\x20('+g(this['locale'],'optional')+')'),(_0x72ba45['label']=_0x37bb55,_0x5c4374['on']('input',()=>{this['revisionNameInputValue']=_0x5c4374['element']['value']['trim']();}),_0x72ba45);}}class f extends _0x215f3d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x119e27=this['editor'],_0x1b06b5=_0x119e27['plugins']['get']('RevisionTracker');_0x119e27['ui']['componentFactory']['add']('revisionHistory',_0x184c84=>{const _0x49468e=_0x41d57a(_0x184c84),_0x28288a=_0x49468e['panelView']['children'],_0x1649b5=new _0x21eec4(_0x184c84),_0x1252c9=new _0xbcd986(_0x184c84),_0x9a6a8=new te(_0x184c84),_0x2abaa9=new _0xbcd986(_0x184c84),_0x1e1645=new te(_0x184c84);return _0x49468e['bind']('isEnabled')['to'](_0x1b06b5,'isReady',_0x1b06b5,'isEnabled',_0x119e27,'isReadOnly',(_0x5c29f6,_0x1fa5a2,_0x3af306)=>_0x5c29f6&&_0x1fa5a2&&!_0x3af306),_0x49468e['buttonView']['set']({'icon':_0x14d782,'label':g(_0x184c84,'Revision\x20history'),'tooltip':!0x0}),_0x9a6a8['set']({'label':g(_0x184c84,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x9a6a8['bind']('isEnabled')['to'](_0x1b06b5,'isReady',_0x1b06b5,'isEnabled',_0x119e27,'isReadOnly',(_0x47a5cc,_0x1c48e7,_0xe84d24)=>_0x47a5cc&&_0x1c48e7&&!_0xe84d24),_0x9a6a8['on']('execute',()=>this['_showDialog']()),_0x1e1645['set']({'label':g(_0x184c84,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1e1645['bind']('isEnabled')['to'](_0x1b06b5,'isReady',_0x119e27,'isReadOnly',(_0x42a621,_0x513d39)=>_0x42a621&&!_0x513d39),_0x1e1645['on']('execute',()=>{_0x119e27['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x49468e['isOpen']=!0x1,_0x119e27['editing']['view']['focus']();}),_0x1252c9['children']['add'](_0x9a6a8),_0x2abaa9['children']['add'](_0x1e1645),_0x1649b5['role']='menu',_0x1649b5['items']['addMany']([_0x1252c9,_0x2abaa9]),_0x28288a['add'](_0x1649b5),_0x49468e;}),_0x119e27['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x282ad5=this['editor'],_0x26ac4b=_0x282ad5['locale'],_0x5da082=new _0x3cb039(_0x26ac4b),_0x3e3268=new _0x34a253(_0x26ac4b);_0x5da082['buttonView']['set']({'icon':_0x14d782,'label':g(_0x26ac4b,'Revision\x20history')});const _0x16057b=new _0x4b57e6(_0x26ac4b,_0x5da082),_0x365ff8=new _0x51584f(_0x26ac4b);_0x365ff8['set']({'label':g(_0x26ac4b,'Save\x20current\x20revision')}),_0x365ff8['delegate']('execute')['to'](_0x5da082),_0x365ff8['on']('execute',()=>{this['_showDialog']();}),_0x16057b['children']['add'](_0x365ff8),_0x3e3268['items']['add'](_0x16057b);const _0x5b2859=new _0x4b57e6(_0x26ac4b,_0x5da082),_0x3ec97f=new _0x51584f(_0x26ac4b);return _0x3ec97f['set']({'label':g(_0x26ac4b,'Open\x20revision\x20history')}),_0x3ec97f['delegate']('execute')['to'](_0x5da082),_0x3ec97f['on']('execute',()=>{_0x282ad5['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5b2859['children']['add'](_0x3ec97f),_0x3e3268['items']['add'](_0x5b2859),_0x5da082['panelView']['children']['add'](_0x3e3268),_0x5da082;}['_showDialog'](){const _0x4a6d86=this['editor'],_0x305005=_0x4a6d86['locale'],_0x10305c=_0x4a6d86['plugins']['get']('Dialog'),_0x2cc5b6=_0x4a6d86['plugins']['get']('RevisionTracker');function _0x3c7004(_0x18a622){_0x4a6d86['config']['get']('revisionHistory.requireRevisionName')&&''===_0x18a622['revisionName']?_0x18a622['revisionNameInputView']['errorText']=g(_0x305005,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4a6d86['plugins']['get'](u)['saveRevision']({'name':_0x18a622['revisionName']}),_0x10305c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3c7004(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x10305c['show']({'id':'revisionSave','title':g(_0x305005,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4a6d86['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x10305c['hide']()},{'label':g(_0x4a6d86['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4b0b12){_0x4b0b12['bind']('isEnabled')['to'](_0x2cc5b6,'isReady',_0x2cc5b6,'isEnabled',_0x4a6d86,'isReadOnly',(_0x27937f,_0x5c1373,_0x23d2db)=>_0x27937f&&_0x5c1373&&!_0x23d2db);},'onExecute':()=>_0x3c7004(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1c0e5f=this['editor'],_0x552dae=_0x1c0e5f['locale'];this['_saveRevisionFormView']=new hs(_0x552dae,_0x1c0e5f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x45c588,_0x530daf){super(_0x45c588),this['_model']=_0x530daf,this['changeId']=_0x530daf['id'];const _0x425495=this['bindTemplate'],_0x59ac6b=g(_0x45c588,_0x530daf['data']['isSuggestion']?'Suggested\x20by':'add'==_0x530daf['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x530daf['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x425495['to']('type',_0x478871=>'ck-revision-change__'+_0x478871)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x59ac6b}]},{'text':'\x20'+_0x530daf['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1a0236(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5bdb4b){super(),this['id']=_0x5bdb4b['id']||_0x335623(),this['author']=_0x5bdb4b['author'],this['type']=_0x5bdb4b['type'],this['data']=_0x5bdb4b['data']||{},this['rootName']=_0x5bdb4b['rootName'],this['set']('createdAt',_0x5bdb4b['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x25b89d,_0x1bad84){this['newRevisionId']=_0x25b89d,this['oldRevisionId']=_0x1bad84,this['changes']=new _0x3b3f60();}['_setChanges'](_0x429355){for(const _0x14184b of _0x429355)this['changes']['add'](_0x14184b);}}class m extends _0x215f3d{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1efa5c,_0x5401b0,I,V];}constructor(_0x443bf7){super(_0x443bf7),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x542954,_0x4ec691,_0x17921f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x41c03c=>{for(const _0x418215 of this['editor']['editing']['view']['document']['roots'])_0x17921f?_0x41c03c['removeClass']('ck-editor__editable__overlay',_0x418215):_0x41c03c['addClass']('ck-editor__editable__overlay',_0x418215);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x11f3b0=>null!==_0x11f3b0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2d7d9e,_0x44febb,_0x2427d3)=>_0x2d7d9e&&_0x2427d3?_0x44febb['changes']['getIndex'](_0x2427d3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x554932,_0x23621d)=>_0x554932?_0x23621d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5401b0);}['init'](){const _0x32bcf4=this['editor'],_0xc560fd=new wt(_0x32bcf4,{'direction':'backward'}),_0x4c84d6=new wt(_0x32bcf4,{'direction':'forward'});(_0x32bcf4['commands']['add']('showPreviousChange',_0xc560fd),_0x32bcf4['commands']['add']('showNextChange',_0x4c84d6),_0x32bcf4['commands']['add']('restoreRevision',new mt(_0x32bcf4)),this['on']('change:numberOfChanges',()=>{_0xc560fd['refresh'](),_0x4c84d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x32bcf4['enableReadOnlyMode']('revision-viewer'),_0x32bcf4['plugins']['has']('WidgetToolbarRepository'))&&_0x32bcf4['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x279240){return await this['_utils']['loadRevisionData'](_0x279240,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x279240);}async['getRevisionRootsAttributes'](_0x14deba){return await this['_utils']['loadRevisionData'](_0x14deba,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x14deba);}async['compare'](_0x5c1b04,_0x146707,_0xc993b1=!0x1){if(!this['isEnabled'])return;const _0x3c15eb=this['diff'],_0x1291d0=this['repository'],_0x21638a='string'==typeof _0x5c1b04?_0x1291d0['getRevision'](_0x5c1b04):_0x5c1b04,_0x5ce675='string'==typeof _0x146707?_0x1291d0['getRevision'](_0x146707):_0x146707,_0x3d9f53=_0x21638a['id'],_0x367cda=_0x5ce675?_0x5ce675['id']:null;if(!_0xc993b1&&this['diff']&&this['diff']['newRevisionId']===_0x3d9f53&&this['diff']['oldRevisionId']===_0x367cda)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3d9f53,_0x367cda);const _0xc81f89=this['_getRevisionsRange'](_0x21638a,_0x5ce675,!0x0)['map'](_0x2be2a3=>this['_utils']['loadRevisionData'](_0x2be2a3,this['adapter']));return _0xc81f89['push'](new Promise(_0x4c52d4=>{setTimeout(_0x4c52d4,0x14);})),Promise['all'](_0xc81f89)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x617663=this['_getDiff'](_0x3d9f53,_0x367cda);for(const _0x511edb of _0x617663['changes'])this['_changeIdToChange']['set'](_0x511edb['id'],_0x511edb);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xfecebc=>{for(const _0x171f5a of this['editor']['model']['document']['getRootNames']())_0xfecebc['detachRoot'](_0x171f5a);for(const _0x4c8bc1 of Object['keys'](_0x617663['model'])){const _0x3396ac=_0xfecebc['addRoot'](_0x4c8bc1);for(const _0x37b119 of Object['keys'](_0x617663['attributes'][_0x4c8bc1]))_0xfecebc['setAttribute'](_0x37b119,_0x617663['attributes'][_0x4c8bc1][_0x37b119],_0x3396ac);_0xfecebc['insert'](_0x617663['model'][_0x4c8bc1],_0x3396ac,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x617663['changes'])),this['isReady']=!0x0;})['catch'](_0x365081=>{console['error'](_0x365081),this['_cleanUp'](),_0x3c15eb&&(this['diff']=_0x3c15eb),this['isReady']=!0x0;});}['addRevisionData'](_0x5e7c5d,_0x55d9d9){const _0x486019=this['repository']['createRevision'](_0x5e7c5d);return _0x486019['on']('_update',(_0x32a0e4,_0x188abe,_0x47f203)=>_0x55d9d9(_0x188abe,_0x47f203,_0x486019)),this['repository']['addRevision'](_0x486019),_0x486019;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1701c5=>{for(const _0x4052a5 of this['editor']['model']['document']['getRootNames']())_0x1701c5['detachRoot'](_0x4052a5);});}['_sortAndFilterDiffChanges'](_0x16cc85){const _0x15e873=[],_0x2e57c3=new Map();for(const _0x261f62 of this['editor']['model']['document']['getRootNames']()){const _0x1bffe2=this['editor']['editing']['view']['getDomRoot'](_0x261f62);if(!_0x1bffe2)continue;const _0x1c055f=_0x1bffe2['getClientRects']()['item'](0x0);_0x1c055f&&(_0x15e873['push'](_0x261f62),_0x2e57c3['set'](_0x261f62,_0x1c055f));}return _0x15e873['sort']((_0x45ae13,_0x235637)=>{const _0x3d407a=_0x2e57c3['get'](_0x45ae13),_0x3c39c2=_0x2e57c3['get'](_0x235637);return _0x3d407a['y']-_0x3c39c2['y']||_0x3d407a['x']-_0x3c39c2['x'];}),(_0x16cc85=_0x16cc85['filter'](_0xadf6ef=>_0x15e873['includes'](_0xadf6ef['rootName'])))['sort']((_0x498e59,_0x24a189)=>_0x15e873['indexOf'](_0x498e59['rootName'])-_0x15e873['indexOf'](_0x24a189['rootName'])),_0x16cc85;}['_makeTape'](_0x220416){const _0x55f052=Array['from'](_0x220416['markers'])['filter'](([_0x1f28a5,_0xb92cd2])=>_0x1f28a5['startsWith']('revision:')&&!_0xb92cd2['isCollapsed']),_0x2d5451=Array['from'](this['editor']['model']['createRangeIn'](_0x220416)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x55f052['length'])for(const _0x48007e of _0x2d5451){const [_0x3efb83,_0x47d4b1]=_0x55f052[0x0],[,_0x45ca6a,_0x159c04]=_0x3efb83['split'](':');if(_0x47d4b1['end']['isEqual'](_0x48007e['nextPosition'])&&_0x55f052['shift'](),(_0x48007e['previousPosition']['isEqual'](_0x47d4b1['start'])||_0x48007e['previousPosition']['isAfter'](_0x47d4b1['start']))&&('insertion'==_0x45ca6a?_0x48007e['isAdded']={'userId':_0x159c04}:'deletion'==_0x45ca6a&&(_0x48007e['isRemoved']={'userId':_0x159c04})),0x0==_0x55f052['length'])break;}return _0x2d5451;}['_refreshStartEndIndex'](_0x23fadd){const _0x1c3b25=new Map();for(let _0x2f165c=0x0;_0x2f165c<_0x23fadd['length'];_0x2f165c++)'text'===_0x23fadd[_0x2f165c]['type']?(_0x23fadd[_0x2f165c]['item']['startIndex']=_0x2f165c,_0x23fadd[_0x2f165c]['item']['endIndex']=_0x2f165c):('elementStart'===_0x23fadd[_0x2f165c]['type']?_0x23fadd[_0x2f165c]['item']['startIndex']=_0x2f165c:'elementEnd'===_0x23fadd[_0x2f165c]['type']&&(_0x23fadd[_0x2f165c]['item']['endIndex']=_0x2f165c),_0x1c3b25['set'](_0x23fadd[_0x2f165c]['id'],_0x2f165c));for(const _0x4d7f99 of _0x1c3b25['values']())'elementStart'===_0x23fadd[_0x4d7f99]['type']?_0x23fadd[_0x4d7f99]['item']['endIndex']=_0x1c3b25['get'](_0x23fadd[_0x4d7f99]['pairId']):'elementEnd'===_0x23fadd[_0x4d7f99]['type']&&(_0x23fadd[_0x4d7f99]['item']['startIndex']=_0x1c3b25['get'](_0x23fadd[_0x4d7f99]['pairId']));}['_processTape'](_0x3acb9d){for(let _0x1f40b0=0x0;_0x1f40b0<_0x3acb9d['length'];_0x1f40b0++){if('elementStart'===_0x3acb9d[_0x1f40b0]['type'])_0x3acb9d[_0x1f40b0]['item']['startIndex']=_0x1f40b0;else{if('elementEnd'===_0x3acb9d[_0x1f40b0]['type']){_0x3acb9d[_0x1f40b0]['item']['endIndex']=_0x1f40b0;const _0x252c79=_0x3acb9d[_0x1f40b0]['item']['startIndex'];_0x3acb9d[_0x252c79]['pairId']=_0x3acb9d[_0x1f40b0]['id'],_0x3acb9d[_0x1f40b0]['pairId']=_0x3acb9d[_0x252c79]['id'];}else _0x3acb9d[_0x1f40b0]['item']['startIndex']=_0x1f40b0,_0x3acb9d[_0x1f40b0]['item']['endIndex']=_0x1f40b0,_0x3acb9d[_0x1f40b0]['pairId']=null;}_0x3acb9d[_0x1f40b0]['markersStart']||(_0x3acb9d[_0x1f40b0]['markersStart']=[],_0x3acb9d[_0x1f40b0]['markersEnd']=[]);}}['_markInsertions'](_0x3f7efe,_0x153b37){const _0x42904d=_0x3f7efe['filter'](_0x534754=>!_0x534754['isAdded']);for(let _0x27f049=0x0;_0x27f049<_0x153b37['length'];_0x27f049++)_0x153b37[_0x27f049]['isAdded']&&(_0x42904d[_0x27f049]['isAdded']=_0x153b37[_0x27f049]['isAdded']);}['_getDiff'](_0x20a7e3,_0x3f37f1=null){const _0x46052c=this['repository']['getRevision'](_0x20a7e3),_0x297299=_0x3f37f1?this['repository']['getRevision'](_0x3f37f1):null,_0x174451=this['_getRevisionsRange'](_0x46052c,_0x297299),_0x44d5c2=_0x174451[_0x174451['length']-0x1],_0x17eb88=new Map(),_0x569d30={'model':{},'attributes':{},'changes':[]},_0x4c32d1=new Set(),_0x5f5a77=new Map();for(let _0x5d1bb9=_0x174451['length']-0x1;_0x5d1bb9>=0x0;_0x5d1bb9--){const _0x3f8a63=_0x174451[_0x5d1bb9];for(const _0x50f849 of Object['keys'](_0x3f8a63['diffData']))if(_0x3f8a63['diffData'][_0x50f849]['attachChange']){const _0x27baa4=_0x3f8a63['diffData'][_0x50f849]['attachChange'];_0x27baa4['isAttached']?(_0x4c32d1['add'](_0x50f849),_0x5f5a77['has'](_0x50f849)&&_0x5f5a77['get'](_0x50f849)['userId']==_0x27baa4['userId']?_0x5f5a77['delete'](_0x50f849):_0x5f5a77['set'](_0x50f849,_0x27baa4)):_0x5f5a77['has'](_0x50f849)?(_0x4c32d1['delete'](_0x50f849),_0x5f5a77['delete'](_0x50f849)):(_0x4c32d1['add'](_0x50f849),_0x5f5a77['set'](_0x50f849,_0x27baa4));}else _0x4c32d1['add'](_0x50f849);}for(const _0x386b65 of _0x4c32d1){const _0x3626bd=_0x5f5a77['has'](_0x386b65)&&!_0x5f5a77['get'](_0x386b65)['isAttached'];let _0x5592df=_0x3626bd?_0x174451['length']-0x1:0x0;const _0x373434=_0x3626bd?-0x1:0x1;for(;_0x174451[_0x5592df];){const _0xded708=_0x174451[_0x5592df];if(_0xded708['diffData'][_0x386b65]){const _0x555f19=_0x3626bd?_0xded708['diffData'][_0x386b65]['attributesBefore']:_0xded708['diffData'][_0x386b65]['attributesAfter'];_0x569d30['attributes'][_0x386b65]=_0x555f19?_0x25c995(_0x555f19):{};break;}_0x5592df+=_0x373434;}}for(const _0x216f91 of _0x174451){_0x216f91['model']={};for(const _0x597d31 of _0x216f91['authors'])_0x17eb88['set'](_0x597d31['id'],_0x597d31);for(const _0x8def27 of _0x4c32d1){const _0x37fd15=_0x216f91['diffData'][_0x8def27]?_0x216f91['diffData'][_0x8def27]['insertions']:'[]',_0x5d830f=_0x216f91['diffData'][_0x8def27]?_0x216f91['diffData'][_0x8def27]['deletions']:'[]';_0x216f91['model'][_0x8def27]={'insertions':this['_utils']['_makeModelFromViewString'](_0x37fd15),'deletions':this['_utils']['_makeModelFromViewString'](_0x5d830f)};}}for(const _0x51bcbb of _0x4c32d1){let _0x52044e=null,_0x2d6bbc=0x0;const _0x279280=new Map(Array['from'](_0x46052c['model'][_0x51bcbb]['insertions']['markers'])['filter'](([_0x32f771])=>!_0x32f771['startsWith']('revision:')));let _0x41c4be=0x0;for(const _0x54f702 of _0x174451){const _0x1a8f65=this['_makeTape'](_0x54f702['model'][_0x51bcbb]['insertions']);_0x54f702==_0x46052c?(_0x52044e=_0x1a8f65,_0x2d6bbc=_0x52044e['length'],_0x52044e['forEach'](_0x4a12a6=>{_0x4a12a6['id']=_0x41c4be++;}),this['_processTape'](_0x52044e)):this['_markInsertions'](_0x52044e,_0x1a8f65);const _0x366672=_0x52044e['filter'](_0x2e3c3b=>!_0x2e3c3b['isAdded'])['map'](_0x14a510=>_0x14a510['id']);let _0x338849=0x0;const _0x3fafc3=this['_makeTape'](_0x54f702['model'][_0x51bcbb]['deletions']);_0x3fafc3['forEach'](_0x1aab1c=>{_0x1aab1c['isRemoved']?_0x1aab1c['id']=_0x2d6bbc++:_0x1aab1c['id']=_0x366672[_0x338849++];}),this['_processTape'](_0x3fafc3),this['_setDistance'](_0x52044e,'isAdded'),this['_setDistance'](_0x3fafc3,'isRemoved'),_0x54f702==_0x46052c&&this['_markMarkers'](_0x52044e,_0x279280),_0x52044e=this['_joinTapes'](_0x52044e,_0x3fafc3),this['_refreshStartEndIndex'](_0x52044e),this['_setDistance'](_0x52044e,'isRemoved');}_0x52044e=_0x52044e['filter'](_0x254598=>!(_0x254598['isAdded']&&_0x254598['isRemoved']));const _0xfe8330=new Map(_0x44d5c2['model'][_0x51bcbb]['deletions']['markers']),_0x10efb2=new Set(_0x279280['keys']());for(const _0x14a15e of _0xfe8330['keys']())_0x10efb2['delete'](_0x14a15e);this['_markSuggestions'](_0x52044e,_0x10efb2),this['_fixObsoleteTags'](_0x52044e),_0x52044e=this['_removeMissingPairs'](_0x52044e),_0x52044e=this['_markMismatchedRemovedTags'](_0x52044e),_0x52044e=this['_removeUnsupportedChanges'](_0x52044e);const {root:_0x2d1eb7,changes:_0x409eef}=this['_makeModelFromTape'](_0x52044e,_0x17eb88,_0x51bcbb);_0x569d30['model'][_0x51bcbb]=_0x2d1eb7;const _0x25baf9=_0x5f5a77['get'](_0x51bcbb);if(_0x25baf9){const _0x48bae6=_0x17eb88['get'](_0x25baf9['userId']),_0x208a02=new r({'author':_0x48bae6,'type':_0x25baf9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x51bcbb});_0x409eef['unshift'](_0x208a02),_0x569d30['attributes'][_0x51bcbb]['revisionHistoryAttachChange']=_0x208a02['id'];}_0x569d30['changes']=_0x569d30['changes']['concat'](_0x409eef);}return _0x569d30;}['_markMarkers'](_0x175951,_0x3b2d6a){for(let _0x309841=0x0;_0x309841<_0x175951['length'];_0x309841++)for(const [_0x245ced,_0x690b02]of _0x3b2d6a)!_0x690b02['isCollapsed']&&_0x690b02['start']['isEqual'](_0x175951[_0x309841]['previousPosition'])&&_0x175951[_0x309841]['markersStart']['push'](_0x245ced),_0x690b02['end']['isEqual'](_0x175951[_0x309841]['nextPosition'])&&_0x175951[_0x309841]['markersEnd']['push'](_0x245ced);}['_joinTapes'](_0x52cbb4,_0x27e696){let _0x1a0c9e=[],_0x261f6e=0x0,_0x537444=0x0;for(;_0x261f6e<_0x52cbb4['length']||_0x537444<_0x27e696['length'];){const _0x4316e9=_0x52cbb4[_0x261f6e]||{},_0x5607af=_0x27e696[_0x537444]||{};if(_0x4316e9['id']==_0x5607af['id'])_0x261f6e++,_0x537444++,_0x1a0c9e['push'](_0x4316e9);else{if(_0x5607af['isRemoved']&&_0x4316e9['isAdded']){const {commonTape:_0x51d01c,iEnd:_0x2376b8,jEnd:_0x4d9671}=this['_threeWayMerge'](_0x52cbb4,_0x261f6e,_0x27e696,_0x537444);_0x1a0c9e=_0x1a0c9e['concat'](_0x51d01c),_0x261f6e=_0x2376b8,_0x537444=_0x4d9671;}else _0x5607af['isRemoved']?(_0x537444++,_0x1a0c9e['push'](_0x5607af)):(_0x261f6e++,_0x1a0c9e['push'](_0x4316e9));}}return _0x1a0c9e;}['_markSuggestions'](_0x2e2369,_0x198ba7){const _0x3e1470=[];for(let _0x3ccf89=0x0;_0x3ccf89<_0x2e2369['length'];_0x3ccf89++){for(let _0x3391b0=0x0;_0x3391b0<_0x2e2369[_0x3ccf89]['markersStart']['length'];_0x3391b0++){const _0x2a2bb8=_0x2e2369[_0x3ccf89]['markersStart'][_0x3391b0];if(!_0x198ba7['has'](_0x2a2bb8))continue;const {group:_0x449865,type:_0x959440,authorId:_0x4e951f}=_0x8d6776(_0x2a2bb8);'revision-suggestion'!=_0x449865||'insertion'!=_0x959440&&'deletion'!=_0x959440||(_0x3e1470['unshift']({'type':_0x959440,'name':_0x2a2bb8,'userId':_0x4e951f}),_0x2e2369[_0x3ccf89]['markersStart']['splice'](_0x3391b0,0x1),_0x3391b0--);}_0x25e76d(_0x2e2369[_0x3ccf89]);for(let _0xce2bce=0x0;_0xce2bce<_0x2e2369[_0x3ccf89]['markersEnd']['length'];_0xce2bce++){const _0x137c0f=_0x2e2369[_0x3ccf89]['markersEnd'][_0xce2bce];if(!_0x198ba7['has'](_0x137c0f))continue;const {group:_0x4eb838,type:_0x1d4cf0}=_0x8d6776(_0x137c0f);if('revision-suggestion'!=_0x4eb838||'insertion'!=_0x1d4cf0&&'deletion'!=_0x1d4cf0)continue;_0x2e2369[_0x3ccf89]['markersEnd']['splice'](_0xce2bce,0x1),_0xce2bce--;const _0x1cf932=_0x3e1470['findIndex'](_0xbe8092=>_0xbe8092['name']==_0x137c0f);_0x1cf932>-0x1&&_0x3e1470['splice'](_0x1cf932,0x1);}}function _0x8d6776(_0x595bad){const _0x217b93=_0x595bad['split'](':');return{'group':_0x217b93[0x0],'type':_0x217b93[0x1],'subType':_0x217b93['length']>=0x5?_0x217b93[0x2]:null,'id':_0x217b93['length']<0x5?_0x217b93[0x2]:_0x217b93[0x3],'authorId':_0x217b93['length']<0x5?_0x217b93[0x3]:_0x217b93[0x4],'markerCount':0x6==_0x217b93['length']?_0x217b93[0x5]:null};}function _0x25e76d(_0x264148){for(let _0x2929cd=0x0;_0x2929cd<_0x3e1470['length'];_0x2929cd++){if(_0x264148['isAdded']&&'insertion'==_0x3e1470[_0x2929cd]['type'])return _0x264148['isAddSuggestion']=_0x3e1470[_0x2929cd],void delete _0x264148['isAdded'];if(!_0x264148['isAdded']&&!_0x264148['isRemoved']&&'deletion'==_0x3e1470[_0x2929cd]['type'])return void(_0x264148['isRemoveSuggestion']=_0x3e1470[_0x2929cd]);}}}['_setDistance'](_0x2e3f78,_0x27aad1){let _0xc3be9c=0x0,_0x13d4f0=!0x1;const _0x279b08=new Map();for(const _0x381e96 of _0x2e3f78)_0x381e96[_0x27aad1]?_0x13d4f0&&(_0xc3be9c++,_0x13d4f0=!0x1):(_0xc3be9c++,_0x13d4f0=!0x0),_0x279b08['set'](_0x381e96['id'],_0xc3be9c);for(let _0x460fd6=0x0;_0x460fd6<_0x2e3f78['length'];_0x460fd6++){if('isRemoved'==_0x27aad1&&_0x2e3f78[_0x460fd6]['isAdded']||'isAdded'==_0x27aad1&&_0x2e3f78[_0x460fd6]['isRemoved'])continue;if('text'==_0x2e3f78[_0x460fd6]['type']){_0x2e3f78[_0x460fd6]['distance']=0x0;continue;}const _0x370a27=_0x279b08['get'](_0x2e3f78[_0x460fd6]['pairId']),_0x3f1cbf=_0x279b08['get'](_0x2e3f78[_0x460fd6]['id']);_0x2e3f78[_0x460fd6]['distance']=_0x370a27-_0x3f1cbf;}}['_getRevisionsRange'](_0x5f5dc6,_0x1164f9,_0x1e0295=!0x1){const _0x2cb1a9=[];let _0x1a6813=this['repository']['getIndex'](_0x5f5dc6),_0x2d3e4d=this['repository']['getIndex'](_0x1164f9);for(-0x1==_0x2d3e4d&&(_0x2d3e4d=this['repository']['_revisions']['length'],_0x1e0295=!0x1);_0x1a6813<_0x2d3e4d;)_0x2cb1a9['push'](this['repository']['getRevision'](_0x1a6813)),_0x1a6813++;return _0x1e0295&&_0x2cb1a9['push'](this['repository']['getRevision'](_0x1a6813)),_0x2cb1a9;}['_threeWayMerge'](_0xdef9f6,_0x4225e3,_0x2fac45,_0x4ca110){const _0x1480c3=this['editor']['model']['schema'];let _0x29f207=_0x4225e3;for(;_0xdef9f6[_0x29f207]&&_0xdef9f6[_0x29f207]['isAdded'];)_0x29f207++;let _0x371d05=_0x4ca110;for(;_0x2fac45[_0x371d05]&&_0x2fac45[_0x371d05]['isRemoved'];)_0x371d05++;_0x6faf4(_0xdef9f6,_0x4225e3,_0x29f207),_0x6faf4(_0x2fac45,_0x4ca110,_0x371d05);const _0x5ca918=_0x2fac45['slice'](_0x4ca110,_0x371d05)['concat'](_0xdef9f6['slice'](_0x4225e3,_0x29f207));return _0x5ca918['sort']((_0x5b5bae,_0x47d3d6)=>_0x5b5bae['side']!=_0x47d3d6['side']?_0x5b5bae['side']-_0x47d3d6['side']:_0x5b5bae['level']!=_0x47d3d6['level']?_0x5b5bae['level']-_0x47d3d6['level']:_0x5b5bae['distance']!=_0x47d3d6['distance']?_0x47d3d6['distance']-_0x5b5bae['distance']:!!_0x5b5bae['isAdded']!=!!_0x47d3d6['isAdded']?-0x1==_0x5b5bae['side']||0x0==_0x5b5bae['side']?_0x5b5bae['isAdded']?-0x1:0x1:_0x5b5bae['isAdded']?0x1:-0x1:_0x5b5bae['index']-_0x47d3d6['index']),{'commonTape':_0x5ca918,'iEnd':_0x29f207,'jEnd':_0x371d05};function _0x6faf4(_0x54ed29,_0x2fbc66,_0x5ef6c7){let _0xba47b=-0x1,_0x57e9db=Number['POSITIVE_INFINITY'],_0x1f6ac0=!0x0;for(let _0x51ad29=_0x2fbc66;_0x51ad29<_0x5ef6c7;_0x51ad29++)if(_0x1480c3['isInline'](_0x54ed29[_0x51ad29]['item'])||(_0x1f6ac0=!0x1),_0x54ed29[_0x51ad29]['item']['startIndex']<_0x2fbc66&&(_0xba47b=_0x51ad29),_0x54ed29[_0x51ad29]['item']['endIndex']>=_0x5ef6c7){_0x57e9db=_0x51ad29;break;}_0x1f6ac0&&(_0xba47b=_0x5ef6c7-0x1);for(let _0xf0f2b6=_0x2fbc66;_0xf0f2b6<_0x5ef6c7;_0xf0f2b6++)_0x54ed29[_0xf0f2b6]['side']=_0xf0f2b6<=_0xba47b?-0x1:_0xf0f2b6<_0x57e9db?0x0:0x1,_0x54ed29[_0xf0f2b6]['index']=_0xf0f2b6;let _0x526fa8=0x0;for(let _0x3922b7=_0x2fbc66;_0x3922b7<=_0xba47b;_0x3922b7++)0x0==_0x54ed29[_0x3922b7]['distance']?_0x54ed29[_0x3922b7]['level']=_0x526fa8:(_0x526fa8++,_0x54ed29[_0x3922b7]['level']=_0x526fa8,_0x526fa8++);for(let _0x989a4=_0x2fbc66;_0x989a4<_0x5ef6c7;_0x989a4++)0x0==_0x54ed29[_0x989a4]['side']&&(_0x54ed29[_0x989a4]['level']=_0x526fa8);_0x526fa8=0x0;for(let _0x416e80=_0x5ef6c7-0x1;_0x416e80>=_0x57e9db;_0x416e80--)0x0==_0x54ed29[_0x416e80]['distance']?_0x54ed29[_0x416e80]['level']=_0x526fa8:(_0x526fa8--,_0x54ed29[_0x416e80]['level']=_0x526fa8,_0x526fa8--);}}['_fixObsoleteTags'](_0x5c0dab){const _0x2fe606=new Map(),_0x463155=this['editor']['model']['schema'];for(let _0x4036c9=0x1;_0x4036c9<_0x5c0dab['length'];_0x4036c9++){let _0xf7173e,_0x483493,_0x2b76d8;const _0x29822f=_0x5c0dab[_0x4036c9],_0x34ca7a=_0x5c0dab[_0x4036c9-0x1];if('text'==_0x29822f['type'])continue;if(_0x29822f['type']!=_0x34ca7a['type'])continue;if(!_0x463155['isBlock'](_0x34ca7a['item'])||_0x463155['isLimit'](_0x34ca7a['item']))continue;if(!_0x463155['isBlock'](_0x29822f['item'])||_0x463155['isLimit'](_0x29822f['item']))continue;if((_0x5c0dab[_0x4036c9]['isAdded']||_0x5c0dab[_0x4036c9]['isAddSuggestion'])&&_0x5c0dab[_0x4036c9-0x1]['isRemoved'])_0xf7173e=_0x5c0dab[_0x4036c9],_0x483493=_0x5c0dab[_0x4036c9-0x1],_0x2b76d8=_0x4036c9-0x1;else{if(!_0x5c0dab[_0x4036c9]['isRemoved']||!_0x5c0dab[_0x4036c9-0x1]['isAdded']&&!_0x5c0dab[_0x4036c9-0x1]['isAddSuggestion'])continue;_0xf7173e=_0x5c0dab[_0x4036c9-0x1],_0x483493=_0x5c0dab[_0x4036c9],_0x2b76d8=_0x4036c9;}const _0xf2bc27=_0xf7173e['level']==_0x483493['level'],_0x905b52=Math['abs'](_0xf7173e['level'])<Math['abs'](_0x483493['level'])&&0x0==_0x483493['distance'];(_0xf2bc27||_0x905b52)&&(_0x2fe606['set'](_0x483493['id'],_0xf7173e['id']),_0x5c0dab['splice'](_0x2b76d8,0x1),_0x4036c9--,_0xf7173e['isAdded']=!0x1);}for(let _0x101115=0x0;_0x101115<_0x5c0dab['length'];_0x101115++)_0x2fe606['has'](_0x5c0dab[_0x101115]['pairId'])&&(_0x5c0dab[_0x101115]['pairId']=_0x2fe606['get'](_0x5c0dab[_0x101115]['pairId']));}['_removeMissingPairs'](_0x40595e){const _0x22c3cf=new Set(_0x40595e['map'](_0x3a933c=>_0x3a933c['id']));for(let _0x46a835=0x0;_0x46a835<_0x40595e['length'];_0x46a835++)_0x22c3cf['has'](_0x40595e[_0x46a835]['pairId'])||0x0==_0x40595e[_0x46a835]['distance']||(_0x40595e[_0x46a835]['isIncorrect']=!0x0);return _0x40595e['filter'](_0x4c8193=>!_0x4c8193['isIncorrect']);}['_markMismatchedRemovedTags'](_0x335b92){const _0x151e88=new Set();for(let _0x55a7d0=0x0;_0x55a7d0<_0x335b92['length'];_0x55a7d0++){if(_0x151e88['has'](_0x335b92[_0x55a7d0]['id'])&&_0x335b92[_0x55a7d0]['isRemoved']&&(_0x335b92[_0x55a7d0]['isIncorrect']=!0x0),_0x335b92[_0x55a7d0]['isIncorrect'])continue;if(0x0==_0x335b92[_0x55a7d0]['distance'])continue;if('elementStart'!=_0x335b92[_0x55a7d0]['type'])continue;if(null==_0x335b92[_0x55a7d0]['pairId'])continue;let _0x1e8664=_0x55a7d0+0x1,_0x4c86e2=0x0;for(;_0x335b92[_0x1e8664]['id']!=_0x335b92[_0x55a7d0]['pairId'];)'elementStart'==_0x335b92[_0x1e8664]['type']?_0x4c86e2++:'elementEnd'==_0x335b92[_0x1e8664]['type']&&_0x4c86e2--,_0x1e8664++;if(0x0!=_0x4c86e2){if(_0x335b92[_0x55a7d0]['isRemoved'])_0x335b92[_0x55a7d0]['isIncorrect']=!0x0;else{for(;_0x1e8664!=_0x55a7d0;)_0x335b92[_0x1e8664]['isRemoved']&&0x0!=_0x335b92[_0x1e8664]['distance']&&(_0x335b92[_0x1e8664]['isIncorrect']=!0x0,_0x151e88['add'](_0x335b92[_0x1e8664]['pairId'])),_0x1e8664--;}}}return _0x335b92['filter'](_0x11eec9=>!_0x11eec9['isIncorrect']);}['_removeUnsupportedChanges'](_0x132981){const _0x5ad288=this['editor']['model']['schema'];for(let _0x2a6267=0x0;_0x2a6267<_0x132981['length'];_0x2a6267++){if(!(_0x132981[_0x2a6267]['isAdded']||_0x132981[_0x2a6267]['isAddSuggestion']||_0x132981[_0x2a6267]['isRemoved']||_0x132981[_0x2a6267]['isRemoveSuggestion']))continue;if(0x0==_0x132981[_0x2a6267]['distance'])continue;const _0x327a47=_0x132981[_0x2a6267]['item'];_0x5ad288['isBlock'](_0x327a47)||_0x5ad288['isLimit'](_0x327a47)||(_0x132981[_0x2a6267]['isAdded']&&delete _0x132981[_0x2a6267]['isAdded'],_0x132981[_0x2a6267]['isAddSuggestion']&&delete _0x132981[_0x2a6267]['isAddSuggestion'],_0x132981[_0x2a6267]['isRemoveSuggestion']&&delete _0x132981[_0x2a6267]['isRemoveSuggestion'],_0x132981[_0x2a6267]['isRemoved']&&(_0x132981[_0x2a6267]['isIncorrect']=!0x0));}return _0x132981['filter'](_0x3cb6ad=>!_0x3cb6ad['isIncorrect']);}['_makeModelFromTape'](_0x4a118c,_0x2cab0a,_0x26ee84){const _0x30aba6=new vt(),_0x546c22=[],_0x5bb673=new Map(),_0x3ce2c7=this['editor']['model'],_0x189feb=_0x3ce2c7['schema'],_0x1720fb=[_0x30aba6],_0x25e388={},_0x4150f9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xe706d3=null;const _0x34cac6=[0x0];for(let _0x47bcec=0x0;_0x47bcec<_0x4a118c['length'];_0x47bcec++)if('elementStart'===_0x4a118c[_0x47bcec]['type']){_0x4a118c[_0x47bcec]['previousPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6);const _0x5459e3=new ut(_0x4a118c[_0x47bcec]['item']['name'],_0x4a118c[_0x47bcec]['item']['getAttributes']());_0x1720fb[0x0]['_appendChild'](_0x5459e3),_0x34cac6['push'](0x0),_0x1720fb['unshift'](_0x5459e3),_0x4a118c[_0x47bcec]['nextPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6);}else'elementEnd'===_0x4a118c[_0x47bcec]['type']?(_0x1720fb['shift'](),_0x4a118c[_0x47bcec]['previousPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6),_0x34cac6['pop'](),_0x34cac6[_0x34cac6['length']-0x1]++,_0x4a118c[_0x47bcec]['nextPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6)):(_0x4a118c[_0x47bcec]['previousPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6),_0xe706d3?_0xe706d3['_data']+=_0x4a118c[_0x47bcec]['item']['data']:_0xe706d3=new gt(_0x4a118c[_0x47bcec]['item']['data'],_0x4a118c[_0x47bcec]['item']['getAttributes']()),_0x4a118c[_0x47bcec+0x1]&&'text'===_0x4a118c[_0x47bcec+0x1]['type']&&_0x34df15(_0xe706d3,_0x4a118c[_0x47bcec+0x1]['item'])||(_0x1720fb[0x0]['_appendChild'](_0xe706d3),_0xe706d3=null),_0x34cac6[_0x34cac6['length']-0x1]+=_0x4a118c[_0x47bcec]['item']['offsetSize'],_0x4a118c[_0x47bcec]['nextPosition']=_0x3ce2c7['createPositionFromPath'](_0x30aba6,_0x34cac6));for(let _0x43bd6a=0x0;_0x43bd6a<_0x4a118c['length'];_0x43bd6a++){const _0x2b2fd9=_0x4a118c[_0x43bd6a]['previousPosition'],_0x22006b=_0x4a118c[_0x43bd6a]['nextPosition'];for(const _0x47f61d of _0x4a118c[_0x43bd6a]['markersStart'])_0x5bb673['set'](_0x47f61d,{'start':_0x2b2fd9,'end':null});_0x380397('isRemoveSuggestion',_0x43bd6a,_0x2b2fd9,_0x22006b),_0x380397('isAddSuggestion',_0x43bd6a,_0x2b2fd9,_0x22006b),_0x380397('isRemoved',_0x43bd6a,_0x2b2fd9,_0x22006b),_0x380397('isAdded',_0x43bd6a,_0x2b2fd9,_0x22006b);for(const _0x422179 of _0x4a118c[_0x43bd6a]['markersEnd']){const _0x12702f=_0x5bb673['get'](_0x422179);_0x12702f?_0x12702f['end']=_0x22006b:_0x5bb673['set'](_0x422179,{'start':_0x22006b,'end':_0x22006b});}}for(const [_0x50f586,_0x2e3949]of _0x5bb673){const _0x2d7f9b=this['editor']['model']['createRange'](_0x2e3949['start'],_0x2e3949['end']);_0x30aba6['markers']['set'](_0x50f586,_0x2d7f9b);}return _0x546c22['sort']((_0x2d81d9,_0x5a126f)=>{const _0x528a5e=_0x30aba6['markers']['get']('revision:'+_0x2d81d9['id']),_0x3e7beb=_0x30aba6['markers']['get']('revision:'+_0x5a126f['id']);return _0x528a5e['start']['isBefore'](_0x3e7beb['start'])?-0x1:_0x528a5e['start']['isAfter'](_0x3e7beb['start'])?0x1:_0x528a5e['end']['isBefore'](_0x3e7beb['end'])?-0x1:_0x528a5e['end']['isAfter'](_0x3e7beb['end'])?0x1:'add'===_0x2d81d9['type']?-0x1:0x1;}),{'root':_0x30aba6,'changes':_0x546c22};function _0x380397(_0x8e8a34,_0x24267c,_0x44b92e,_0x512336){const _0x529406=!!_0x4a118c[_0x24267c][_0x8e8a34],_0x17c700=_0x529406?_0x4a118c[_0x24267c][_0x8e8a34]['userId']:null,_0x154c97=_0x24267c===_0x4a118c['length']-0x1,_0x192811=_0x4150f9[_0x8e8a34][0x0],_0x34def0=_0x189feb['isObject'](_0x4a118c[_0x24267c]['item']);!_0x25e388[_0x8e8a34]&&_0x529406?_0x25e388[_0x8e8a34]={'start':_0x44b92e,'tapeItem':_0x4a118c[_0x24267c],'userId':_0x17c700,'type':_0x8e8a34}:_0x25e388[_0x8e8a34]&&!_0x529406?(_0x25e388[_0x8e8a34]['end']=_0x44b92e,_0x2114bf(_0x25e388[_0x8e8a34]),_0x25e388[_0x8e8a34]=null):_0x25e388[_0x8e8a34]&&_0x529406&&_0x25e388[_0x8e8a34]['userId']!==_0x17c700&&(_0x25e388[_0x8e8a34]['end']=_0x44b92e,_0x192811&&_0x192811['userId']===_0x25e388[_0x8e8a34]['userId']||_0x2114bf(_0x25e388[_0x8e8a34]),_0x25e388[_0x8e8a34]={'start':_0x44b92e,'tapeItem':_0x4a118c[_0x24267c],'userId':_0x17c700,'type':_0x8e8a34}),_0x25e388[_0x8e8a34]&&_0x34def0&&('elementStart'!==_0x4a118c[_0x24267c]['type']||_0x192811&&_0x192811['userId']===_0x17c700||_0x4150f9[_0x8e8a34]['unshift']({'userId':_0x17c700,'object':_0x4a118c[_0x24267c]['item'],'change':_0x25e388[_0x8e8a34]}),'elementEnd'===_0x4a118c[_0x24267c]['type']&&_0x192811&&_0x192811['object']===_0x4a118c[_0x24267c]['item']&&(_0x4150f9[_0x8e8a34]['shift'](),_0x25e388[_0x8e8a34]=_0x192811['change'])),_0x25e388[_0x8e8a34]&&_0x154c97&&(_0x25e388[_0x8e8a34]['end']=_0x512336,_0x2114bf(_0x25e388[_0x8e8a34]),_0x25e388[_0x8e8a34]=null);}function _0x2114bf({start:_0x22bae4,end:_0x4ac3ba,tapeItem:_0x3b16c5,userId:_0x2cf8ad,type:_0x42a602}){const _0x2e34e2=_0x3b16c5['item'],_0x529e95=_0x3ce2c7['schema']['isBlock'](_0x2e34e2)&&!_0x3ce2c7['schema']['isLimit'](_0x2e34e2),_0x504938=_0x22bae4['nodeAfter']==_0x4ac3ba['parent']&&_0x4ac3ba['isAtStart'];if(_0x529e95&&_0x504938)return;const _0x4ad0ba=_0x3ce2c7['createRange'](_0x22bae4,_0x4ac3ba),_0x4c0c3d=_0x2cab0a['get'](_0x2cf8ad),_0x4e1177=new r({'author':_0x4c0c3d,'type':'isAdded'==_0x42a602||'isAddSuggestion'==_0x42a602?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x42a602||'isRemoveSuggestion'==_0x42a602},'createdAt':new Date(),'rootName':_0x26ee84});_0x546c22['push'](_0x4e1177),_0x30aba6['markers']['set']('revision:'+_0x4e1177['id'],_0x4ad0ba);}function _0x34df15(_0x3339df,_0x330719){const _0x553e27=_0x3339df['getAttributes'](),_0x421b56=_0x330719['getAttributes']();for(const _0x2fdc11 of _0x553e27){if(_0x2fdc11[0x1]!==_0x330719['getAttribute'](_0x2fdc11[0x0]))return!0x1;_0x421b56['next']();}return _0x421b56['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x253e3b=>{const _0x1338ef=_0x253e3b['markerName']['split'](':')[0x1],_0xd88bf5=this['_getChangeFromId'](_0x1338ef);if(!_0xd88bf5)return null;const _0x415ca9='add'==_0xd88bf5['type']?'insertion':'deletion',_0x4e6f96=['ck-suggestion-marker','ck-suggestion-marker-'+_0x415ca9];return _0xd88bf5['data']['isSuggestion']&&_0x4e6f96['push']('ck-suggestion-marker-'+_0x415ca9+'-new'),this['activeChange']==_0xd88bf5&&_0x4e6f96['push']('ck-suggestion-marker--active'),{'classes':_0x4e6f96,'attributes':{'data-change-id':_0x1338ef}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x49482c=>{_0x49482c['on']('element:pre',(_0x3a98e5,_0x376003,_0x3f8d9a)=>{const _0x12fb35=_0x376003['viewItem']['getChild'](0x0);if(!_0x12fb35||!_0x12fb35['is']('element','code'))return;if(!_0x3f8d9a['consumable']['consume'](_0x12fb35,{'attributes':['vid_start','vid_end']}))return;const _0x1a8164=_0x376003['modelRange']['start']['nodeAfter'];_0x3f8d9a['writer']['setAttribute']('vid_start',_0x12fb35['getAttribute']('vid_start'),_0x1a8164),_0x3f8d9a['writer']['setAttribute']('vid_end',_0x12fb35['getAttribute']('vid_end'),_0x1a8164);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x289e63=>{_0x289e63['on']('element',(_0x30d5d1,_0x11db2d,_0x4e1c78)=>{if(!_0x4e1c78['consumable']['consume'](_0x11db2d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x11db2d['modelRange']['isCollapsed'])return;const _0x1017dc=_0x11db2d['modelRange']['start']['nodeAfter'];_0x1017dc['hasAttribute']('vid_start')||_0x1017dc['hasAttribute']('vid')||(_0x4e1c78['writer']['setAttribute']('vid_start',_0x11db2d['viewItem']['getAttribute']('vid_start'),_0x1017dc),_0x4e1c78['writer']['setAttribute']('vid_end',_0x11db2d['viewItem']['getAttribute']('vid_end'),_0x1017dc));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x123810=>_0x123810['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x16cad1,[,_0x142b37])=>{['vid_start','vid_end','vid']['includes'](_0x142b37)&&(_0x16cad1['return']=!0x0,_0x16cad1['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xdbdae5=>{_0xdbdae5['on']('attribute:vid',(_0x2e6096,_0x54f0f9,_0x10ecee)=>{if('\x20'!=_0x54f0f9['item']['data']||_0x54f0f9['item']['parent']['maxOffset']>0x1)return;if(!_0x10ecee['consumable']['consume'](_0x54f0f9['item'],_0x2e6096['name']))return;const _0x1f674d=_0x10ecee['writer'],_0x350c24=_0x10ecee['mapper']['toViewRange'](_0x54f0f9['range']);_0x1f674d['wrap'](_0x350c24,_0x1f674d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x153ffd){const _0x5d06eb=_0x153ffd['plugins']['get']('RevisionViewer');return(_0xfc29cb,_0x28f332,_0x4615a0)=>{const _0x5e2473=_0x28f332['markerName']['split'](':')[0x1],_0x32f487=_0x5d06eb['_getChangeFromId'](_0x5e2473);if(!_0x32f487)return null;const _0xb503ad='add'==_0x32f487['type']?'split':'merge';if(!_0x4615a0['consumable']['test'](_0x28f332['markerRange'],_0xfc29cb['name']))return;const _0x5cd5a8=_0x28f332['markerRange']['getWalker'](),_0x43020f=_0x28f332['markerRange']['start'],_0x2e52a7=_0x153ffd['model']['schema'];let _0x1b8f73=null,_0x287c8d=null,_0x31665f=!0x1,_0x73c3f6=!0x1;for(const _0x4a4b0c of _0x5cd5a8){const _0x4327da=_0x4a4b0c['item'];_0x31665f=_0x31665f||_0x2e52a7['isContent'](_0x4327da);const _0x3f399d=_0x4615a0['mapper']['toViewElement'](_0x4327da);if(_0x3f399d&&_0x3f399d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a4b0c['type']&&(_0x2e52a7['isBlock'](_0x4327da)&&!_0x2e52a7['isLimit'](_0x4327da)&&(_0x4327da['nextSibling']||_0x43020f['isAtEnd']?_0x1b8f73&&_0x1b8f73['parent']==_0x4327da||(_0x1b8f73=_0x4327da,_0x5b2296(_0x4a4b0c['previousPosition']),_0x73c3f6=!0x0):_0x287c8d=_0x287c8d||_0x4a4b0c['previousPosition']));}function _0x5b2296(_0x1abc6a){const _0x2dbde6=_0x4615a0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb503ad}),_0xf38e9c=_0x4615a0['mapper']['toViewPosition'](_0x1abc6a);_0x32f487['data']['isSuggestion']&&_0x4615a0['writer']['addClass']('ck-suggestion-marker-'+_0xb503ad+'-new',_0x2dbde6),_0x5d06eb['activeChange']==_0x32f487&&_0x4615a0['writer']['addClass']('ck-suggestion-marker--active',_0x2dbde6),_0x4615a0['writer']['insert'](_0xf38e9c,_0x2dbde6),_0x4615a0['mapper']['bindElementToMarker'](_0x2dbde6,_0x28f332['markerName']);}_0x31665f||_0x73c3f6||!_0x287c8d||_0x5b2296(_0x287c8d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x15174c,_0x16a14c,_0x363a54)=>{const _0x108f5f=_0x363a54['mapper']['markerNameToElements'](_0x16a14c['markerName']);if(_0x108f5f){for(const _0x503142 of _0x108f5f)(_0x503142['hasClass']('ck-suggestion-marker-split')||_0x503142['hasClass']('ck-suggestion-marker-merge'))&&(_0x363a54['mapper']['unbindElementFromMarkerName'](_0x503142,_0x16a14c['markerName']),_0x363a54['writer']['remove'](_0x503142));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1a2b58,_0x4892bb,_0x2c5d2f)=>{const _0x504202=_0x4892bb['markerName']['split'](':')[0x1],_0x42c0af=this['_getChangeFromId'](_0x504202);if(!_0x42c0af)return null;const _0x5fc982='add'==_0x42c0af['type']?'split':'merge';if(_0x2c5d2f['consumable']['test'](_0x4892bb['markerRange'],_0x1a2b58['name']))for(const _0x4e416d of _0x4892bb['markerRange']['getItems']()){if(!_0x4e416d['is']('element','softBreak'))continue;const _0xbc7042=_0x2c5d2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5fc982}),_0x185e73=_0x2c5d2f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4e416d));_0x42c0af['data']['isSuggestion']&&_0x2c5d2f['writer']['addClass']('ck-suggestion-marker-'+_0x5fc982+'-new',_0xbc7042),this['activeChange']==_0x42c0af&&_0x2c5d2f['writer']['addClass']('ck-suggestion-marker--active',_0xbc7042),_0x2c5d2f['writer']['insert'](_0x185e73,_0xbc7042),_0x2c5d2f['mapper']['bindElementToMarker'](_0xbc7042,_0x4892bb['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1caf1a=>{for(const _0x2cf07c of this['editor']['model']['document']['getRootNames']()){const _0x2aca9a=this['editor']['model']['document']['getRoot'](_0x2cf07c),_0x128998=this['editor']['editing']['view']['document']['getRoot'](_0x2cf07c);if(_0x128998){const _0x59ac6a=_0x2aca9a['getAttribute']('revisionHistoryAttachChange');if(_0x1caf1a['removeAttribute']('data-change-id',_0x128998),_0x1caf1a['removeClass']('ck-revision-history-root-add',_0x128998),_0x1caf1a['removeClass']('ck-revision-history-root-remove',_0x128998),_0x1caf1a['removeClass']('ck-revision-history-root--active',_0x128998),_0x59ac6a){const _0xbf9699=this['_getChangeFromId'](_0x59ac6a);if(!_0xbf9699)return null;_0x1caf1a['setAttribute']('data-change-id',_0x59ac6a,_0x128998),_0x1caf1a['addClass']('ck-revision-history-root-'+_0xbf9699['type'],_0x128998),this['activeChange']==_0xbf9699&&_0x1caf1a['addClass']('ck-revision-history-root--active',_0x128998);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3bc41b=>'revision-comment:'+_0x3bc41b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xdf1611=>'revision-suggestion:'+_0xdf1611,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x52beb7=>({'name':'suggestion:'+_0x52beb7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1b9b1f=>{const _0x1685b3=_0x1b9b1f['markerName']['split'](':')[0x1];return'insertion'!=_0x1685b3&&'deletion'!=_0x1685b3?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1685b3]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x57fb81,_0x30effa,_0x34f326)=>{const _0x5277a6=_0x34f326['mapper']['markerNameToElements'](_0x30effa['markerName']);if(_0x5277a6){for(const _0x209dbc of _0x5277a6)_0x209dbc['is']('uiElement')&&(_0x34f326['mapper']['unbindElementFromMarkerName'](_0x209dbc,_0x30effa['markerName']),_0x34f326['writer']['remove'](_0x209dbc));}},{'priority':'high'});}['_getChangeFromId'](_0x2220eb){return this['_changeIdToChange']['get'](_0x2220eb);}['_getViewForChange'](_0x5429a6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5429a6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5e0962,_0xe4f77c,_0x346c4f,_0x2f4619)=>{_0x2f4619&&this['_balloon']['remove'](_0x2f4619),_0x346c4f&&(this['_balloon']['add']({'view':_0x346c4f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2bf01c=this['editor']['editing'],_0x2a69d3=this['_getChangeFromId'](_0x346c4f['changeId']);let _0x5ba45a;if(_0x2a69d3['data']['isOnRoot']){const _0x46b9fd=_0x2bf01c['view']['getDomRoot'](_0x2a69d3['rootName']);_0x5ba45a=Array['from'](_0x46b9fd['getClientRects']());}else{const _0x279f07=this['editor']['model']['markers']['get']('revision:'+_0x346c4f['changeId']);_0x5ba45a=Array['from'](_0x2bf01c['mapper']['markerNameToElements'](_0x279f07['name']))['map'](_0x10b914=>_0x2bf01c['view']['domConverter']['mapViewToDom'](_0x10b914))['map'](_0x46a6cc=>Array['from'](_0x46a6cc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5ba45a[0x0];return _0x5ba45a['find'](_0x983814=>_0x983814['top']-0x3<=this['_activeViewTarget']['y']&&_0x983814['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x983814['left']-0x3<=this['_activeViewTarget']['x']&&_0x983814['right']+0x3>=this['_activeViewTarget']['x'])||_0x5ba45a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xecb74f,_0x99d789,_0x33a802,_0x1aa5e6)=>{this['activeView']=_0x33a802?this['_getViewForChange'](_0x33a802):null,this['editor']['model']['change'](()=>{const _0x1a1dfc=this['editor']['editing'];_0x1aa5e6&&(_0x1aa5e6['data']['isOnRoot']?_0x1a1dfc['view']['change'](_0x596388=>{_0x596388['removeClass']('ck-revision-history-root--active',_0x1a1dfc['view']['document']['getRoot'](_0x1aa5e6['rootName']));}):_0x1a1dfc['reconvertMarker']('revision:'+_0x1aa5e6['id'])),_0x33a802&&(_0x33a802['data']['isOnRoot']?_0x1a1dfc['view']['change'](_0x1fd2b0=>{_0x1fd2b0['addClass']('ck-revision-history-root--active',_0x1a1dfc['view']['document']['getRoot'](_0x33a802['rootName']));}):_0x1a1dfc['reconvertMarker']('revision:'+_0x33a802['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x59634a,_0x573c8a)=>{if(this['activeChange'])return;const _0x518df7=this['_findChangeIdFromDomTarget'](_0x573c8a['target']),_0x357b7d=this['_changeIdToChange']['get'](_0x518df7);_0x357b7d?(this['_activeViewTarget']={'x':_0x573c8a['domEvent']['x'],'y':_0x573c8a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x357b7d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x135bc5,_0x2503ff)=>{const _0x760a80=this['_findChangeIdFromDomTarget'](_0x2503ff['target']),_0x5607e3=this['_changeIdToChange']['get'](_0x760a80);_0x5607e3?(this['_activeViewTarget']={'x':_0x2503ff['domEvent']['x'],'y':_0x2503ff['domEvent']['y']},_0x5607e3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5607e3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x584f50){do{const _0x3b1322=_0x584f50['getAttribute']('data-change-id');if(_0x3b1322)return _0x3b1322;_0x584f50=_0x584f50['parent'];}while(_0x584f50);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x50d6c6=>{for(const _0x413a77 of this['editor']['model']['markers'])_0x50d6c6['removeMarker'](_0x413a77);});}}function X(_0x476962,_0x41432b){return(_0x189a40,_0x21bcf0,_0x16e814)=>{if(!_0x16e814['consumable']['test'](_0x21bcf0['markerRange'],_0x189a40['name']))return;const _0x253303=_0x21bcf0['markerRange']['getWalker'](),_0x536c75=_0x21bcf0['markerRange']['start'],_0x1d1149=_0x476962['model']['schema'];let _0x3f0fa5=null,_0x1fcdec=null,_0x53b069=!0x1,_0x597dde=!0x1;for(const _0x2ed082 of _0x253303){const _0x1f559d=_0x2ed082['item'];_0x53b069=_0x53b069||_0x1d1149['isContent'](_0x1f559d);const _0x14d91d=_0x16e814['mapper']['toViewElement'](_0x1f559d);if(_0x14d91d&&_0x14d91d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2ed082['type']&&(_0x1d1149['isBlock'](_0x1f559d)&&!_0x1d1149['isLimit'](_0x1f559d)&&(_0x1f559d['nextSibling']||_0x536c75['isAtEnd']?_0x3f0fa5&&_0x3f0fa5['parent']==_0x1f559d||(_0x3f0fa5=_0x1f559d,_0x59cebd(_0x2ed082['previousPosition']),_0x597dde=!0x0):_0x1fcdec=_0x1fcdec||_0x2ed082['previousPosition']));}function _0x59cebd(_0x214af3){const _0x410fb9=_0x16e814['mapper']['toViewPosition'](_0x214af3),_0x2316c0=_0x16e814['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x41432b});_0x16e814['writer']['insert'](_0x410fb9,_0x2316c0),_0x16e814['mapper']['bindElementToMarker'](_0x2316c0,_0x21bcf0['markerName']);}_0x53b069||_0x597dde||!_0x1fcdec||_0x59cebd(_0x1fcdec);};}class mt extends _0x209300{constructor(_0x148142){super(_0x148142);const _0xaefba7=_0x148142['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0xaefba7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xaefba7,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x18aba6=this['editor'],_0x2b1a91=_0x18aba6['plugins']['get'](m),_0x25d4f6=_0x2b1a91['isReady']?_0x2b1a91['diff']['newRevisionId']:null;_0x18aba6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x25d4f6);}['refresh'](){const {isReady:_0x225d48,isEnabled:_0x1c74c2,repository:_0x51662e,diff:_0x58b2d6}=this['editor']['plugins']['get'](m),_0x5dc396=_0x58b2d6&&_0x51662e['getLaterVisibleRevision'](_0x58b2d6['newRevisionId']);this['isEnabled']=_0x225d48&&_0x1c74c2&&Boolean(_0x5dc396);}}class wt extends _0x209300{['_step'];constructor(_0x29c5d4,{direction:_0x4662bf}){super(_0x29c5d4);const _0x262bc9=_0x29c5d4['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4662bf?0x1:-0x1,this['listenTo'](_0x262bc9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x262bc9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x262bc9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1b423c=this['editor'],_0x22b18c=_0x1b423c['plugins']['get'](m),{isNavigationMode:_0x5b0976,currentChangeNumber:_0xc3c2aa}=_0x22b18c;let _0x53f1d8;if(_0x22b18c['activeChange']=_0x5b0976?_0x22b18c['diff']['changes']['get'](_0xc3c2aa+this['_step']):_0x22b18c['diff']['changes']['first'],_0x22b18c['activeChange']['data']['isOnRoot'])_0x53f1d8=_0x1b423c['editing']['view']['getDomRoot'](_0x22b18c['activeChange']['rootName']);else{const _0x39317d=_0x1b423c['model']['markers']['get']('revision:'+_0x22b18c['activeChange']['id']);_0x53f1d8=_0x1a9bee(_0x1b423c['editing'],_0x39317d);}_0x2b83d3({'target':_0x53f1d8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x56bef2,currentChangeNumber:_0x464245,numberOfChanges:_0x1bb179,isReady:_0x4233e9,isEnabled:_0x26bff1}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x26bff1&&_0x4233e9&&_0x1bb179)&&(!_0x56bef2||(0x1===this['_step']?_0x464245<_0x1bb179-0x1:_0x464245>0x0));}}class li extends ts{constructor(_0x3a0239){super(_0x3a0239);const _0x242d7f=this['bindTemplate'],_0x186097=new te(_0x3a0239),_0xb922c7=new te(_0x3a0239);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',(_0x276e02,_0x39d3c9)=>_0x276e02&&_0x39d3c9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x485d4c,_0x4881ee,_0x1eddbd,_0x17a0ac)=>{if(!_0x485d4c)return g(_0x3a0239,'Loading...');if(!_0x1eddbd)return g(_0x3a0239,'No\x20changes');const _0xa7707a=g(_0x3a0239,'NUMBER_OF_CHANGES',_0x1eddbd);return _0x17a0ac?g(_0x3a0239,'X_OF_Y_CHANGES',[_0x4881ee+0x1,_0x1eddbd]):_0xa7707a;}),_0x186097['set']({'label':g(_0x3a0239,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x314266}),_0xb922c7['set']({'label':g(_0x3a0239,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1ae486}),_0x186097['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xb922c7['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x186097['on']('execute',()=>this['fire']('execute','backward')),_0xb922c7['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',_0x242d7f['if']('_isStatusLabelVisible','ck-hidden',_0x3e7539=>!_0x3e7539)]},'children':[{'text':_0x242d7f['to']('isNavigationMode',_0xf22d5c=>_0xf22d5c?g(_0x3a0239,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3a0239,'Total')+':\x20')}]},{'text':_0x242d7f['to']('_statusText')}]},new _0x49f084(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x186097,_0xb922c7]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x215f3d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x37471e=this['editor']['editing']['view'];_0x37471e['change'](_0x4a1572=>{for(const _0x315402 of _0x37471e['document']['roots'])_0x4a1572['addClass'](le,_0x315402);});}['hide'](){const _0x5ee7db=this['editor']['editing']['view'];_0x5ee7db['change'](_0x453b54=>{for(const _0xe36358 of _0x5ee7db['document']['roots'])_0x453b54['removeClass'](le,_0xe36358);});}}class R extends _0x215f3d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x31d7e3=this['editor'],_0x5d474e=_0x31d7e3['plugins']['get'](m),_0x2badda=_0x31d7e3['plugins']['get'](ge);_0x31d7e3['ui']['componentFactory']['add']('exitToEditing',_0x15c24c=>{const _0x4cbd2f=new te(_0x15c24c);return _0x4cbd2f['set']({'label':g(_0x15c24c,'Back\x20to\x20editing'),'icon':_0x1a92ae,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4cbd2f,'execute',()=>{_0x31d7e3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4cbd2f;}),_0x31d7e3['ui']['componentFactory']['add']('restoreRevision',_0x5df51c=>{const _0x19d1e4=new te(_0x5df51c);return _0x19d1e4['set']({'label':g(_0x5df51c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x19d1e4['bind']('isEnabled')['to'](_0x31d7e3['commands']['get']('restoreRevision')),this['listenTo'](_0x19d1e4,'execute',()=>_0x31d7e3['execute']('restoreRevision')),_0x19d1e4;}),_0x31d7e3['ui']['componentFactory']['add']('changesNavigation',_0x4dcd74=>{const _0x27bf6c=new li(_0x4dcd74),_0x1c1e33=_0x31d7e3['commands']['get']('showPreviousChange'),_0x568bb3=_0x31d7e3['commands']['get']('showNextChange');return _0x27bf6c['bind']('isBackwardNavigationEnabled')['to'](_0x1c1e33,'isEnabled'),_0x27bf6c['bind']('isForwardNavigationEnabled')['to'](_0x568bb3,'isEnabled'),_0x27bf6c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5d474e),this['listenTo'](_0x27bf6c,'execute',(_0x5b48b6,_0x208e73)=>{_0x31d7e3['execute']('forward'===_0x208e73?'showNextChange':'showPreviousChange');}),_0x27bf6c;}),_0x2badda['show'](),_0x5d474e['on']('change:isReady',(_0x5a5883,_0x18bf31,_0x55f504)=>{_0x55f504?_0x2badda['hide']():_0x2badda['show']();});}}class at extends _0x53f8a9{['_resizeObserver']=null;constructor(_0x427673,_0x356113){super(_0x427673,_0x356113);const _0x327939=this['bindTemplate'];this['set']({'label':g(_0x427673,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x427673,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x327939['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4e3a4c=this['fieldView']['element'];this['_tooltipString']=_0x4e3a4c['scrollWidth']>_0x4e3a4c['clientWidth']&&_0x4e3a4c['value']||'';}}class oi extends ts{constructor(_0x56bc1d,_0xb43b6c,_0xf7cc27){super(_0x56bc1d);const _0x5afac8=new _0x4d07d2();_0x5afac8['set']({'content':_0xcd8008,'viewBox':'0\x200\x2011\x2010'});const _0x330a9b=['ck','ck-revision-history-sidebar__revision-author'];_0xf7cc27&&_0x330a9b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5347e7=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x56bc1d,_0xf7cc27?'Revision\x20creator':'Revision\x20author')},'children':[_0x5afac8,_0xb43b6c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x330a9b},'children':_0x5347e7});}}function ai(_0x41062a,_0xd318fb){const _0x5c291b=_0x41062a['bindTemplate'],_0x339987=_0x41062a['locale'],_0x2a579e=_0x41d57a(_0x339987);_0x2a579e['panelPosition']='sw';const _0x547932=function(_0x58c3f7,_0x32a392){const _0x5bc5a5=function(_0x36ba59,_0x1eef44){const _0x1c40b8=_0x36ba59['locale'],_0x4fe729={'Compare\x20against\x20selected':g(_0x1c40b8,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x1c40b8,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x1c40b8,'Restore\x20this\x20revision')};return _0x1eef44['map'](_0x13e099=>{const _0x66efd=_0x4fe729[_0x13e099['name']];return _0x66efd&&_0x66efd!==_0x13e099['name']&&(_0x13e099['name']=_0x66efd),_0x13e099;});}(_0x58c3f7,_0x32a392),_0x3bf32e=new _0x3b3f60();for(const _0xa58a08 of _0x5bc5a5){const _0x1573bc={'type':'button','model':new to({'label':_0xa58a08['name'],'class':_0xa58a08['class'],'withText':!0x0,'role':'menuitem','_action':_0xa58a08['action']})};_0x1573bc['model']['bind']('isEnabled')['to'](_0x58c3f7,'isActionsDropdownOpen',_0x70cb65=>'function'!=typeof _0xa58a08['isEnabled']||(!_0x70cb65||_0xa58a08['isEnabled'](_0x58c3f7))),_0x3bf32e['add'](_0x1573bc);}return _0x3bf32e;}(_0x41062a,_0xd318fb);return _0x41062a['bind']('isActionsDropdownOpen')['to'](_0x2a579e,'isOpen'),_0x2a579e['buttonView']['set']({'label':g(_0x339987,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57e1b8}),_0x2a579e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5c291b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5c291b['to'](_0x1b68d3=>_0x1b68d3['stopPropagation']())}}),_0x2a579e['on']('execute',_0xcc8977=>{_0x41062a['isReady']&&'function'==typeof _0xcc8977['source']['_action']&&_0xcc8977['source']['_action'](_0x41062a);}),_0x31792c(_0x2a579e,_0x547932,{'role':'menu'}),_0x2a579e['listenTo'](_0x41062a,'change:isActionsDropdownOpen',(_0x4c62a1,_0x4d98e4,_0x264dc0)=>{if(_0x264dc0)for(const _0x5207fd of _0x2a579e['listView']['items']){const _0x45b32d=_0x5207fd['children']['first'],_0x14b045=_0xd318fb['find'](_0x4d34cc=>_0x4d34cc['action']===_0x45b32d['_action'])['isVisible'];_0x5207fd['isVisible']=void 0x0===_0x14b045||_0x14b045(_0x41062a);}}),_0x2a579e;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0xdd73f1,uid as _0x5506ef,Collection as _0x209800,logWarning as _0x5b5bc4,FocusTracker as _0x569311,KeystrokeHandler as _0x516a4b,scrollViewportToShowTarget as _0x339ba7,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x721083}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x142d8e,set as _0x228da3,unset as _0x181d75,isEqual as _0x3694b4}from'es-toolkit/compat';import{Plugin as _0x182a76,PendingActions as _0x4565f9,Command as _0x1077a9,ElementApiMixin as _0x3bc3c8,Editor as _0x4e3d6f}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1d8624,getMarkerDomElement as _0x30e2ee,ConfirmMixin as ti,sanitizeEditorConfig as _0xaf0580}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x50aeac,ViewAttributeElement as _0x52e116,ViewEmptyElement as _0x2d6642,ViewRawElement as _0xce89f5,ViewUIElement as _0xb0a182,ViewDocumentFragment as _0x4e28c4,ViewText as _0x419a6d,ViewElement as _0x3acea2,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1a1928,IconChevronUp as _0x536ede,IconChevronDown as _0x59eb7b,IconUndo as _0x50697b,IconUser as _0x4bb680,IconThreeVerticalDots as _0x14da53}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x42f75d,submitHandler as _0x302b6d,LabeledFieldView as _0x2d5e4b,createLabeledInputText as _0x20057c,createDropdown as _0x5f2998,ListView as _0x5a1930,ListItemView as _0x55135c,ButtonView as te,MenuBarMenuView as _0x652bb6,MenuBarMenuListView as _0x4d4d53,MenuBarMenuListItemView as _0x1dc259,MenuBarMenuListItemButtonView as _0x130592,ContextualBalloon as _0x5a230b,ToolbarSeparatorView as _0x5f2e3d,IconView as _0x39bf5a,addListToDropdown as _0x6d6d3d,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2d6b1d}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xdd73f1(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x53885d){super(),this['id']=_0x53885d['id']||_0x5506ef(),this['creator']=_0x53885d['creator']||null,this['authors']=_0x53885d['authors']||[],this['diffData']=_0x53885d['diffData']||null,this['toVersion']=_0x53885d['toVersion']||0x0,this['fromVersion']=_0x53885d['fromVersion']||0x0,this['set']('name',_0x53885d['name']||''),this['set']('createdAt',_0x53885d['createdAt']||new Date()),this['set']('attributes',_0x53885d['attributes']||{});}['setName'](_0xa86ab1){this['_update']({'name':_0xa86ab1});}['setAttribute'](_0x5f37f1,_0x124cee){const _0x407683=_0x142d8e(this['attributes']);_0x228da3(_0x407683,_0x5f37f1,_0x124cee),this['_update']({'attributes':_0x407683});}['removeAttribute'](_0x1f867c){const _0x53c531=_0x142d8e(this['attributes']);_0x181d75(_0x53c531,_0x1f867c),this['_update']({'attributes':_0x53c531});}['_update'](_0x453592,_0x3a9c55=!0x1){let _0x973ee3=!0x1;const _0x273851={'id':this['id']},_0xb3d19=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x134db0 of _0xb3d19){const _0x109d53=_0x453592[_0x134db0];void 0x0!==_0x109d53&&_0x109d53!==this[_0x134db0]&&(this[_0x134db0]=_0x109d53,_0x273851[_0x134db0]=_0x109d53,_0x973ee3=!0x0);}_0x973ee3&&(_0x273851['authors']&&(_0x273851['authorsIds']=_0x273851['authors']['map'](_0x529f11=>_0x529f11['id']),delete _0x273851['authors']),this['fire']('_update',_0x273851,_0x3a9c55));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x57ae29=>_0x57ae29['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x182a76{['_revisions'];static get['requires'](){return[_0x1d8624];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x115f42){super(_0x115f42),this['_revisions']=new _0x209800();}['afterInit'](){!async function(_0x47ff16){const _0x3521af=_0x1ad8c9([0x7a,0x4f,0x43,0x37,0x66,0x73,0x4e,0x50,0x31,0x58,0x69,0x54,0x77,0x36,0x76,0x30,0x74,0x64,0x67,0x53,0x55,0x59,0x6f,0x78,0x39,0x6b,0x41,0x32,0x35,0x42,0x63,0x44,0x6a,0x72,0x4d,0x75,0x46,0x38,0x65,0x79,0x70,0x33,0x56,0x62,0x49,0x48,0x57,0x6e,0x71,0x4b,0x4a,0x47,0x4c,0x5a,0x52,0x45,0x51,0x6c,0x61,0x68,0x6d,0x34]),_0x17f173=0xeb829,_0x48b9e9=0x59609bd4,_0x303c1c=0x5967fc04^_0x48b9e9,_0x106d55=window[_0x1ad8c9([0x44,0x61,0x74,0x65])][_0x1ad8c9([0x6e,0x6f,0x77])](),_0x252bcc=_0x47ff16[_0x1ad8c9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfd8dc4=new window[(_0x1ad8c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x544aef=>{_0x252bcc[_0x1ad8c9([0x6f,0x6e,0x63,0x65])](_0x1ad8c9([0x72,0x65,0x61,0x64,0x79]),_0x544aef);}),_0x534cb7={[_0x1ad8c9([0x6b,0x74,0x79])]:_0x1ad8c9([0x45,0x43]),[_0x1ad8c9([0x75,0x73,0x65])]:_0x1ad8c9([0x73,0x69,0x67]),[_0x1ad8c9([0x63,0x72,0x76])]:_0x1ad8c9([0x50,0x2d,0x32,0x35,0x36]),[_0x1ad8c9([0x78])]:_0x1ad8c9([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]),[_0x1ad8c9([0x79])]:_0x1ad8c9([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]),[_0x1ad8c9([0x61,0x6c,0x67])]:_0x1ad8c9([0x45,0x53,0x32,0x35,0x36])},_0x2a9e48=_0x252bcc[_0x1ad8c9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ad8c9([0x67,0x65,0x74])](_0x1ad8c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbe06ba(){let _0x5b2275,_0x2e93d6=null,_0x122fbc=null;try{if(_0x2a9e48==_0x1ad8c9([0x47,0x50,0x4c]))return _0x1ad8c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b2275=_0x5bc2e5(),!_0x5b2275)return _0x1ad8c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b2275[_0x1ad8c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x122fbc=_0x112eec(_0x5b2275[_0x1ad8c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b2275[_0x1ad8c9([0x6a,0x74,0x69])])),await _0x12b432()?_0x1a721f()?_0x102d66()?_0x1ad8c9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x595dda()?(_0x5b2275[_0x1ad8c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ad8c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e93d6=_0x30acf2(_0x1ad8c9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b2275[_0x1ad8c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ad8c9([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e93d6=_0x30acf2(_0x1ad8c9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x231213()):_0x1ad8c9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ad8c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ad8c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xe3df19){return _0x1ad8c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x102d66(){const _0x21223b=[_0x1ad8c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ad8c9([0x74,0x72,0x69,0x61,0x6c])][_0x1ad8c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b2275[_0x1ad8c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x106d55/0x3e8:0xe10*_0x303c1c;return _0x5b2275[_0x1ad8c9([0x65,0x78,0x70])]<_0x21223b;}function _0x1a721f(){const _0x44eac9=_0x5b2275[_0x1ad8c9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x44eac9)return!0x1;if(_0x44eac9[_0x1ad8c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad8c9([0x2a])))return!0x0;if(_0x44eac9[_0x1ad8c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad8c9([0x52,0x48])))return!0x0;if(_0x44eac9[_0x1ad8c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad8c9([0x52,0x52,0x48]))){if(_0x43ff1a())return!0x0;if(_0x48f17a()||_0x114bb7())return!0x0;}return!0x1;}function _0x595dda(){const _0x167f33=_0x5b2275[_0x1ad8c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x167f33||0x0==_0x167f33[_0x1ad8c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f4c3f}=new URL(window[_0x1ad8c9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x167f33[_0x1ad8c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f4c3f))return!0x0;const _0x347770=_0x3f4c3f[_0x1ad8c9([0x73,0x70,0x6c,0x69,0x74])](_0x1ad8c9([0x2e]));return _0x167f33[_0x1ad8c9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f457f=>_0x2f457f[_0x1ad8c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad8c9([0x2a])))[_0x1ad8c9([0x6d,0x61,0x70])](_0x23c940=>_0x23c940[_0x1ad8c9([0x73,0x70,0x6c,0x69,0x74])](_0x1ad8c9([0x2e])))[_0x1ad8c9([0x73,0x6f,0x6d,0x65])](_0x17b348=>_0x347770[_0x1ad8c9([0x65,0x76,0x65,0x72,0x79])]((_0x5e27bf,_0x30ed62)=>_0x17b348[_0x30ed62]===_0x5e27bf||_0x17b348[_0x30ed62]===_0x1ad8c9([0x2a])));}function _0x231213(){return _0x2e93d6&&_0x122fbc?new window[(_0x1ad8c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1749df,_0x10ed78)=>{_0x2e93d6[_0x1ad8c9([0x74,0x68,0x65,0x6e])](_0x1749df,_0x10ed78),_0x122fbc[_0x1ad8c9([0x74,0x68,0x65,0x6e])](_0x22c812=>{_0x22c812!=_0x1ad8c9([0x56,0x61,0x6c,0x69,0x64])&&_0x1749df(_0x22c812);},_0x10ed78);}):_0x2e93d6||_0x122fbc||_0x1ad8c9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x112eec(_0x57a8cb,_0x272dbf){return new window[(_0x1ad8c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39e819=>{if(_0x3649a4())return _0x39e819(_0x1ad8c9([0x56,0x61,0x6c,0x69,0x64]));_0x2cb90b(),_0x252bcc[_0x1ad8c9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ad8c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1df0f0=!0x1;const _0x433cff=_0x5506ef();function _0x11bca1(_0x317550){return!!_0x317550&&(typeof _0x317550===_0x1ad8c9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x317550===_0x1ad8c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x317550[_0x1ad8c9([0x74,0x68,0x65,0x6e])]===_0x1ad8c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x317550[_0x1ad8c9([0x63,0x61,0x74,0x63,0x68])]===_0x1ad8c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1038f0(_0x22da03){_0x6131d6(_0x22da03)[_0x1ad8c9([0x74,0x68,0x65,0x6e])](_0x5c4478=>{if(!_0x5c4478||_0x5c4478[_0x1ad8c9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ad8c9([0x6f,0x6b]))return _0x1ad8c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe1994e(_0x551373(_0x433cff+_0x272dbf))!=_0x5c4478[_0x1ad8c9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ad8c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ad8c9([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ad8c9([0x74,0x68,0x65,0x6e])](_0x494b0f=>(_0x30aa85(),_0x494b0f),()=>{const _0x479ee5=_0x2e13e2();return null==_0x479ee5?(_0x30aa85(),_0x1ad8c9([0x56,0x61,0x6c,0x69,0x64])):_0x1ad8c9(_0x106d55-_0x479ee5>(0x7d6c1fd4^_0x48b9e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ad8c9([0x74,0x68,0x65,0x6e])](_0x39e819)[_0x1ad8c9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39e819(_0x1ad8c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x527e7e=0x59567554^_0x48b9e9;function _0x30aa85(){const _0x171a5e=_0x1ad8c9([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1994e(_0x551373(_0x57a8cb)),_0x129d3a=_0x26a5de(_0xe1994e(window[_0x1ad8c9([0x4d,0x61,0x74,0x68])][_0x1ad8c9([0x63,0x65,0x69,0x6c])](_0x106d55/_0x527e7e)));window[_0x1ad8c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ad8c9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171a5e,_0x129d3a);}function _0x2e13e2(){const _0x429a2a=_0x1ad8c9([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1994e(_0x551373(_0x57a8cb)),_0x2e3c37=window[_0x1ad8c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ad8c9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x429a2a);return _0x2e3c37?window[_0x1ad8c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26a5de(_0x2e3c37),0x10)*_0x527e7e:null;}function _0x6131d6(_0x23c645){return new window[(_0x1ad8c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1727be,_0x4685fc)=>{_0x23c645[_0x1ad8c9([0x74,0x68,0x65,0x6e])](_0x1727be,_0x4685fc),window[_0x1ad8c9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4685fc,0x59614f14^_0x48b9e9);});}}_0x252bcc[_0x1ad8c9([0x6f,0x6e])](_0x1ad8c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c49e4,_0x539965)=>{if(_0x539965[0x0]!=_0x57a8cb)return _0x39e819(_0x1ad8c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x539965[0x1]={..._0x539965[0x1],[_0x1ad8c9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x433cff};},{[_0x1ad8c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ad8c9([0x68,0x69,0x67,0x68])}),_0x252bcc[_0x1ad8c9([0x6f,0x6e])](_0x1ad8c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d5993=>{_0x11bca1(_0x2d5993[_0x1ad8c9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1df0f0=!0x0,_0x1038f0(_0x2d5993[_0x1ad8c9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ad8c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ad8c9([0x6c,0x6f,0x77])}),_0xfd8dc4[_0x1ad8c9([0x74,0x68,0x65,0x6e])](()=>{_0x1df0f0||_0x39e819(_0x1ad8c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3649a4(){return _0x252bcc[_0x1ad8c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ad8c9([0x76,0x69,0x65,0x77])][_0x1ad8c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ad8c9([0x61,0x75,0x74,0x6f]);}function _0x2cb90b(){_0x252bcc[_0x1ad8c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ad8c9([0x76,0x69,0x65,0x77])][_0x1ad8c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ad8c9([0x61,0x75,0x74,0x6f]);}}function _0x30acf2(_0x131995){const _0xc0f758=[new window[(_0x1ad8c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4adf53=>setTimeout(_0x4adf53,0x5969a518^_0x48b9e9)),_0xfd8dc4[_0x1ad8c9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ad8c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x122266=>{const _0x3c0e38=0x59609bd3^_0x48b9e9,_0x20d896=_0x47ff16[_0x1ad8c9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x404e60(){_0x20d896[_0x1ad8c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3c0e38&&_0x122266();}_0x404e60(),_0x20d896[_0x1ad8c9([0x6f,0x6e])](_0x1ad8c9([0x61,0x64,0x64]),_0x404e60);})),new window[(_0x1ad8c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3769ce=>{function _0x4de01d(){for(const _0x358222 in window)if(window[_0x1ad8c9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1ad8c9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x358222))&&window[_0x358222]==_0x17f173)return _0x3769ce();_0x252bcc[_0x1ad8c9([0x73,0x74,0x61,0x74,0x65])]!=_0x1ad8c9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1ad8c9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4de01d,0x5960885c^_0x48b9e9);}_0x20682a(_0x1ad8c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4de01d();})];return window[_0x1ad8c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ad8c9([0x72,0x61,0x63,0x65])](_0xc0f758)[_0x1ad8c9([0x74,0x68,0x65,0x6e])](()=>_0x131995);}async function _0x43f469(){if(await _0xfd8dc4,_0x20682a(_0x1ad8c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3dfbc5=_0x47ff16[_0x1ad8c9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3ff00e=_0x47ff16[_0x1ad8c9([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])](_0x3dfbc5[_0x1ad8c9([0x69,0x64])]),_0xd779ca=_0x467f21(_0x1ad8c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xd779ca[_0x1ad8c9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3dfbc5['id'],_0x3ff00e?_0x3ff00e['id']:null,!0x0),_0xd779ca[_0x1ad8c9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ad8c9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xd779ca[_0x1ad8c9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xd779ca[_0x1ad8c9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x301bfb,void(_0xd779ca[_0x1ad8c9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x301bfb);}if(_0x20682a(_0x1ad8c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4c93c1=_0x467f21(_0x1ad8c9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4c93c1[_0x1ad8c9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ad8c9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4c93c1[_0x1ad8c9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4c93c1[_0x1ad8c9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x301bfb,_0x4c93c1[_0x1ad8c9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x301bfb;}_0x252bcc[_0x1ad8c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ad8c9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x301bfb,_0x252bcc[_0x1ad8c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ad8c9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x301bfb,_0x252bcc[_0x1ad8c9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ad8c9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43ff1a(){return _0x20682a(_0x1ad8c9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x467f21(_0x1ad8c9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ad8c9([0x73,0x74,0x61,0x74,0x65])]==_0x1ad8c9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x48f17a(){return _0x20682a(_0x1ad8c9([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 _0x114bb7(){return _0x20682a(_0x1ad8c9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x42fa45(_0x59716d){const _0x3b39ce=_0x499c9d();_0x252bcc[_0x3b39ce]=_0x1ad8c9([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])+_0x59716d,_0x59716d[_0x1ad8c9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1ad8c9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x499c9d()]=_0x17f173),_0x59716d!=_0x1ad8c9([0x56,0x61,0x6c,0x69,0x64])&&_0x43f469();}function _0x499c9d(){const _0x4a32dd=window[_0x1ad8c9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ad8c9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ad8c9([0x6e,0x6f,0x77])]())[_0x1ad8c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ad8c9([0x2e]),'');let _0x3e2c2f=_0x1ad8c9([0x7a]);for(let _0x28118f=0x0;_0x28118f<_0x4a32dd[_0x1ad8c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28118f+=0x2){let _0x9ebc9e=window[_0x1ad8c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a32dd[_0x1ad8c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28118f,_0x28118f+0x2));_0x9ebc9e>=_0x3521af[_0x1ad8c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9ebc9e-=_0x3521af[_0x1ad8c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e2c2f+=_0x3521af[_0x9ebc9e];}return _0x3e2c2f;}function _0x5bc2e5(){const _0x10d922=_0x2a9e48[_0x1ad8c9([0x73,0x70,0x6c,0x69,0x74])](_0x1ad8c9([0x2e]));if(0x3!=_0x10d922[_0x1ad8c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37654d(_0x10d922[0x1]);function _0x37654d(_0x1ed479){const _0x304024=_0x1e4dc5(_0x1ed479);return _0x304024&&_0x4dc3df()?_0x304024:null;function _0x4dc3df(){const _0x113b05=_0x304024[_0x1ad8c9([0x6a,0x74,0x69])],_0x18bd4b=window[_0x1ad8c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x113b05[_0x1ad8c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x113b05[_0x1ad8c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d5ad7={..._0x304024,[_0x1ad8c9([0x6a,0x74,0x69])]:_0x113b05[_0x1ad8c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x113b05[_0x1ad8c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d5ad7[_0x1ad8c9([0x76,0x63])],_0x551373(_0x3d5ad7)==_0x18bd4b;}}}async function _0x12b432(){let _0xeb7b38=!0x0;try{const _0x2e88f8=_0x2a9e48[_0x1ad8c9([0x73,0x70,0x6c,0x69,0x74])](_0x1ad8c9([0x2e])),[_0x1309d0,_0x1f265a,_0x1d647c]=_0x2e88f8;return _0x460672(_0x1309d0),await _0xd6aa9e(_0x1309d0,_0x1f265a,_0x1d647c),_0xeb7b38;}catch(_0x58a6e7){return!0x1;}function _0x460672(_0x4ca957){const _0x1b368b=_0x1e4dc5(_0x4ca957);_0x1b368b&&_0x1b368b[_0x1ad8c9([0x61,0x6c,0x67])]==_0x1ad8c9([0x45,0x53,0x32,0x35,0x36])||(_0xeb7b38=!0x1);}async function _0xd6aa9e(_0x7cffa8,_0x5ccf0e,_0x4e74c3){const _0x1ebf56=window[_0x1ad8c9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ad8c9([0x66,0x72,0x6f,0x6d])](_0x549d28(_0x4e74c3),_0x53cd4e=>_0x53cd4e[_0x1ad8c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3be10a=new window[(_0x1ad8c9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ad8c9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7cffa8+_0x1ad8c9([0x2e])+_0x5ccf0e),_0x126e59=window[_0x1ad8c9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ad8c9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x126e59)return;const _0x303d41=await _0x126e59[_0x1ad8c9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ad8c9([0x6a,0x77,0x6b]),_0x534cb7,{[_0x1ad8c9([0x6e,0x61,0x6d,0x65])]:_0x1ad8c9([0x45,0x43,0x44,0x53,0x41]),[_0x1ad8c9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ad8c9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ad8c9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x126e59[_0x1ad8c9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ad8c9([0x6e,0x61,0x6d,0x65])]:_0x1ad8c9([0x45,0x43,0x44,0x53,0x41]),[_0x1ad8c9([0x68,0x61,0x73,0x68])]:{[_0x1ad8c9([0x6e,0x61,0x6d,0x65])]:_0x1ad8c9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x303d41,_0x1ebf56,_0x3be10a)||(_0xeb7b38=!0x1);}}function _0x1e4dc5(_0x13ba0c){return _0x13ba0c[_0x1ad8c9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ad8c9([0x65,0x79]))?JSON[_0x1ad8c9([0x70,0x61,0x72,0x73,0x65])](_0x549d28(_0x13ba0c)):null;}function _0x549d28(_0x28383a){return window[_0x1ad8c9([0x61,0x74,0x6f,0x62])](_0x28383a[_0x1ad8c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ad8c9([0x2b]))[_0x1ad8c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ad8c9([0x2f])));}function _0x551373(_0x1a20c7){let _0x41bac4=0x1505;function _0x390bbc(_0x5745cb){for(let _0x939803=0x0;_0x939803<_0x5745cb[_0x1ad8c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x939803++){const _0x2e6ca1=_0x5745cb[_0x1ad8c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x939803);_0x41bac4=(_0x41bac4<<0x5)+_0x41bac4+_0x2e6ca1,_0x41bac4&=_0x41bac4;}}function _0x25a5a8(_0x454c9d){Array[_0x1ad8c9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x454c9d)?_0x454c9d[_0x1ad8c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25a5a8):_0x454c9d&&typeof _0x454c9d==_0x1ad8c9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ad8c9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x454c9d)[_0x1ad8c9([0x73,0x6f,0x72,0x74])]()[_0x1ad8c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a77ba,_0x399cdd])=>{_0x390bbc(_0x4a77ba),_0x25a5a8(_0x399cdd);}):_0x390bbc(window[_0x1ad8c9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x454c9d));}return _0x25a5a8(_0x1a20c7),_0x41bac4>>>0x0;}function _0xe1994e(_0x383c61){return _0x383c61[_0x1ad8c9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ad8c9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ad8c9([0x30]));}function _0x26a5de(_0x1545df){return _0x1545df[_0x1ad8c9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ad8c9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ad8c9([0x6a,0x6f,0x69,0x6e])]('');}function _0x20682a(_0x1f0230){return _0x252bcc[_0x1ad8c9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ad8c9([0x68,0x61,0x73])](_0x1f0230);}function _0x467f21(_0xf7675c){return _0x252bcc[_0x1ad8c9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ad8c9([0x67,0x65,0x74])](_0xf7675c);}function _0x301bfb(){}function _0x1ad8c9(_0x25469b){return _0x25469b['map'](_0x498ddc=>String['fromCharCode'](_0x498ddc))['join']('');}_0x42fa45(await _0xbe06ba());}(this);}['createRevision'](_0x42a55f){const _0x1f88c8=this['editor']['plugins']['get']('Users');return new h({'id':_0x42a55f['id'],'name':_0x42a55f['name'],'creator':_0x42a55f['creatorId']?_0x1f88c8['getUser'](_0x42a55f['creatorId']):null,'diffData':_0x42a55f['diffData']||_0x42a55f['data'],'authors':_0x42a55f['authorsIds']['map'](_0x54a0ef=>_0x1f88c8['getUser'](_0x54a0ef)),'createdAt':new Date(_0x42a55f['createdAt']),'attributes':_0x42a55f['attributes'],'fromVersion':_0x42a55f['fromVersion'],'toVersion':_0x42a55f['toVersion']});}['addRevision'](_0xa640c3,_0x2f3530=0x0){this['_revisions']['add'](_0xa640c3,_0x2f3530);}['getRevision'](_0x49543b){return this['_revisions']['get'](_0x49543b);}['getRevisions'](_0x488c7c={'toJSON':!0x1}){const _0x968f32=Array['from'](this['_revisions']);return _0x968f32['reverse'](),_0x488c7c['toJSON']?_0x968f32['map'](_0x543db6=>_0x543db6['toJSON']()):_0x968f32;}['getIndex'](_0x22dd2b){return this['_revisions']['getIndex'](_0x22dd2b);}['getEarlierVisibleRevision'](_0x167b71){const [,_0x19dd9c]=this['getRevisionsIterator'](_0x167b71,{'direction':'earlier'});return _0x19dd9c;}['getLaterVisibleRevision'](_0x1f5280){const [,_0x59ce11]=this['getRevisionsIterator'](_0x1f5280,{'direction':'later'});return _0x59ce11;}['getRevisionsInDiff'](_0x5b351b){const _0x19d8a1=[];for(const _0x1e68e2 of this['getRevisionsIterator'](_0x5b351b['newRevisionId']))if(_0x19d8a1['push'](_0x1e68e2),_0x1e68e2['id']===_0x5b351b['oldRevisionId'])break;return _0x19d8a1;}*['getRevisionsIterator'](_0x470868,{direction:_0xc7a84c='earlier',filter:_0x51bfe9=()=>!0x0}={}){const _0x56d4f6='earlier'===_0xc7a84c?0x1:-0x1;let _0x4acc17=this['_revisions']['get'](_0x470868),_0x4787a5=this['getIndex'](_0x4acc17);for(yield _0x4acc17;_0x4acc17;){if(_0x4787a5+=_0x56d4f6,_0x4acc17=this['getRevision'](_0x4787a5),!_0x4acc17)return;_0x51bfe9(_0x4acc17)&&(yield _0x4acc17);}}}class V extends _0x182a76{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x50aeac,'c'],[_0x52e116,'a'],[_0x2d6642,'e'],[_0xce89f5,'r'],[_0xb0a182,'u']]);['_typeCharToViewClass']=new Map([['c',_0x50aeac],['a',_0x52e116],['e',_0x2d6642],['r',_0xce89f5],['u',_0xb0a182]]);async['loadRevisionData'](_0x30b4fb,_0x509ca1){if(_0x30b4fb['diffData']||!_0x509ca1)return;const _0x339100=this['editor']['config']['get']('collaboration.channelId'),_0x46f9f5=await _0x509ca1['getRevision']({'channelId':_0x339100,'revisionId':_0x30b4fb['id']});_0x30b4fb['diffData']=_0x46f9f5['diffData'];}['getRevisionDocumentData'](_0x33d019){const _0x5ca99b={};for(const _0x5ba487 in _0x33d019['diffData']){if(_0x33d019['diffData'][_0x5ba487]['attachChange']&&!_0x33d019['diffData'][_0x5ba487]['attachChange']['isAttached'])continue;const _0x426a31=this['_removeRevisionMarkers'](JSON['parse'](_0x33d019['diffData'][_0x5ba487]['insertions'])),_0x132276=this['editor']['editing']['view']['document'],_0x55f3d2=new _0x4e28c4(_0x132276,_0x426a31['map'](_0x5750a7=>this['_getViewFromDiffObj'](_0x5750a7,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5ca99b[_0x5ba487]=this['editor']['data']['processor']['toData'](_0x55f3d2),this['editor']['data']['processor']['useFillerType']('default');}return _0x5ca99b;}['getRevisionRootsAttributes'](_0x2dc9d7){const _0x1c537c={};for(const _0x34a147 in _0x2dc9d7['diffData'])_0x2dc9d7['diffData'][_0x34a147]['attachChange']&&!_0x2dc9d7['diffData'][_0x34a147]['attachChange']['isAttached']||(_0x1c537c[_0x34a147]=_0x2dc9d7['diffData'][_0x34a147]['attributesAfter']||{});return _0x1c537c;}['_getTypeCharForViewElement'](_0x510d99){return this['_viewClassToTypeChar']['get'](_0x510d99['constructor']);}['_getViewFromDiffObj'](_0x751b34,_0x37a370){const _0x13aee9=this['editor']['editing']['view']['document'];if('string'==typeof _0x751b34)return new _0x419a6d(_0x13aee9,_0x751b34);{let _0x55c820,_0x5f2224;_0x5f2224='u'==_0x751b34['type']||'r'==_0x751b34['type']?[]:_0x751b34['children']['map'](_0x447b99=>this['_getViewFromDiffObj'](_0x447b99,_0x37a370));const _0x2f5605=this['_typeCharToViewClass']['get'](_0x751b34['type'])||_0x3acea2,_0xaeac4a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x55c820=new _0x2f5605(_0x13aee9,_0x751b34['name'],_0x751b34['attributes'],_0x5f2224),'u'==_0x751b34['type']&&_0x751b34['children'][0x0]){const _0xaf1f18=_0x751b34['children'][0x0];if(_0x55c820['render']=function(_0x43d8f4){const _0x5bd3bf=_0x43d8f4['createElement']('div');return _0x5bd3bf['innerHTML']=_0xaf1f18,_0x5bd3bf['childNodes'][0x0];},_0x37a370){const _0x2ffeee=new _0x4e28c4(_0x13aee9);_0x2ffeee['_appendChild'](_0x55c820);const _0x24965b=Array['from'](_0xaeac4a['viewChildrenToDom'](_0x2ffeee,{'bind':!0x1})),_0x1f95c6=_0xaeac4a['domDocument']['createElement']('div');_0x1f95c6['append'](..._0x24965b),_0x55c820=Array['from'](_0xaeac4a['domChildrenToView'](_0x1f95c6))[0x0];}}else{if('r'==_0x751b34['type']&&_0x751b34['children'][0x0]){const _0xde1321=_0x751b34['children'][0x0];if(_0x55c820['render']=function(_0x2956aa){_0x2956aa['innerHTML']=_0xde1321;},_0x37a370){const _0x3f4e14=new _0x4e28c4(_0x13aee9);_0x3f4e14['_appendChild'](_0x55c820);const _0xdb2749=Array['from'](_0xaeac4a['viewChildrenToDom'](_0x3f4e14,{'bind':!0x1})),_0x569a40=_0xaeac4a['domDocument']['createElement']('div');_0x569a40['append'](..._0xdb2749);const _0x4ccb49=Array['from'](_0xaeac4a['domChildrenToView'](_0x569a40));_0x4ccb49['length']>0x1?_0x55c820['_appendChild'](_0x4ccb49):_0x55c820=_0x4ccb49[0x0];}}}if(_0x751b34['customProperties']){for(const [_0x236cd6,_0x4fd657]of _0x751b34['customProperties'])_0x55c820['_setCustomProperty'](_0x236cd6,_0x4fd657);}const _0x30d324=void 0x0===_0x751b34['fillerOffset']?null:_0x751b34['fillerOffset'];return null!==_0x30d324&&(_0x55c820['getFillerOffset']=()=>_0x30d324),_0x55c820;}}['_makeModelFromViewString'](_0x1c92b0){const _0x2be520=JSON['parse'](_0x1c92b0),_0xfc53c1=this['editor']['editing']['view']['document'],_0x520fd8=new _0x4e28c4(_0xfc53c1,_0x2be520['map'](_0x56aa5c=>this['_getViewFromDiffObj'](_0x56aa5c,!0x0)));return this['editor']['data']['toModel'](_0x520fd8);}['_removeRevisionMarkers'](_0x243724){return(_0x243724=_0x243724['filter'](_0xd2aa9=>!_0xd2aa9['name']||'revision-start'!==_0xd2aa9['name']&&'revision-end'!==_0xd2aa9['name']))['forEach'](_0x14d7cc=>{'string'!=typeof _0x14d7cc&&(_0x14d7cc['children']=this['_removeRevisionMarkers'](_0x14d7cc['children']),_0x14d7cc['attributes']=_0x14d7cc['attributes']['filter'](_0x3042cd=>!_0x3042cd[0x0]['startsWith']('data-revision-')));}),_0x243724;}}function g(_0x44c353,_0x3db4c6,_0x1c78de){const t=_0x44c353['t'];switch(_0x3db4c6){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'},_0x1c78de);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1c78de);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x182a76{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1d8624,I,V,_0x4565f9];}constructor(_0x45b821){super(_0x45b821),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x41799e=_0x5506ef();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x41799e},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x367954=this['repository']['getRevision'](0x0),_0xa6d999=_0x367954&&null===_0x367954['creator']?_0x367954:null;if(this['_continueCurrentRevision']=!!_0xa6d999&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x57ad7b=this['_source']['getCurrentRevisionId'](),_0xd24651=this['repository']['getRevision'](_0x57ad7b);if(_0xd24651)this['_startingVersion']=_0xd24651['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3230f9=this['_source']['history']['_operations']['find'](_0x431984=>!_0x431984['_isInit']),_0x4a1da4=_0x3230f9?_0x3230f9['baseVersion']:this['_source']['history']['version'];_0x367954?(_0x367954['toVersion']<_0x4a1da4&&_0x367954['_update']({'toVersion':_0x4a1da4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xa6d999['id'],this['_startingVersion']=_0xa6d999['fromVersion']):(this['_startingVersion']=_0x367954['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4a1da4,this['_continueCurrentRevision']=!0x1);}}else _0xa6d999&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xa6d999['toVersion'],this['editor']['model']['document']['history']['version']),_0xa6d999['fromVersion']===_0xa6d999['toVersion']?(0x0!==_0xa6d999['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xa6d999['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xa6d999['id'],this['_startingVersion']=_0xa6d999['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',_0x5375c3=>!_0x5375c3),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d7824=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c924c;for(const _0x3a1b9c in _0x5d7824){const _0x6f04bf=_0x3a1b9c,_0x43294f=_0x5d7824[_0x6f04bf];if('revisionHistoryLicenseKeyValid'==_0x43294f||'revisionHistoryLicenseKeyInvalid'==_0x43294f||'revisionHistoryLicenseKeyExpired'==_0x43294f||'revisionHistoryLicenseKeyDomainLimit'==_0x43294f||'revisionHistoryLicenseKeyNotAllowed'==_0x43294f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x43294f||'revisionHistoryLicenseKeyTrialLimit'==_0x43294f||'revisionHistoryLicenseKeyUsageLimit'==_0x43294f){delete _0x5d7824[_0x6f04bf],_0x4c924c=_0x43294f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4c924c&&_0x5d7824['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4c924c&&_0x5d7824['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4c924c&&_0x5d7824['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4c924c&&_0x5d7824['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c924c&&_0x5d7824['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4c924c&&_0x5d7824['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4c924c&&_0x5d7824['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x58b533=this['repository']['getRevision'](0x0),_0x1eddb7=await this['getRevisionDocumentData'](_0x58b533),_0x557293=await this['getRevisionRootsAttributes'](_0x58b533);this['_replaceEditorDataWithRevisionData'](_0x1eddb7,_0x557293);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x17471e){this['_source']=_0x17471e;}async['update'](){const _0x21af8e=await this['_source']['getLatestVersion']();if(_0x21af8e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x51003b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x21af8e});_0x51003b['authors']=_0x51003b['authorsIds']['map'](_0x4a29e5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4a29e5)),this['currentRevision']['_update'](_0x51003b);}}async['saveRevision'](_0x5e6d5e={},_0x6cd989=null){const _0x3af500=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x6cd989>this['currentRevision']['toVersion']&&(_0x6cd989=null),null===_0x6cd989&&(_0x6cd989=await this['_source']['getLatestVersion']());const _0x3756ba=this['_getFromVersion'](_0x6cd989),_0x1caf67=this['buildRevisionData']({'from':_0x3756ba,'to':_0x6cd989});if(this['currentRevision']['toVersion']<_0x6cd989){const _0x240c63=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x6cd989,'to':_0x6cd989});_0x240c63['authors']=[],_0x240c63['authorsIds']=[],_0x240c63['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x240c63,!0x0),delete _0x240c63['authors'],_0x3af500['push'](_0x240c63);}_0x5e6d5e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5e6d5e['name']=_0x5e6d5e['name']||null,_0x5e6d5e['id']=_0x5e6d5e['id']||_0x5506ef(),_0x5e6d5e={..._0x5e6d5e,..._0x1caf67};const _0x510868=this['addRevisionData'](_0x5e6d5e);_0x3af500['push'](_0x5e6d5e);const _0x4b5937=this['repository']['getIndex'](_0x510868);if(0x0!==_0x4b5937){const _0x2e093c=this['repository']['getRevision'](_0x4b5937-0x1);if(_0x2e093c['fromVersion']!==_0x6cd989){const _0x6a9ba1=this['_revisionDataBuilder']['getData'](_0x6cd989,_0x2e093c['toVersion']),_0x7d2c0d={'id':_0x2e093c['id'],'diffData':_0x6a9ba1['diffData'],'authorsIds':_0x6a9ba1['authorsIds'],'authors':_0x6a9ba1['authorsIds']['map'](_0x1ba13f=>this['editor']['plugins']['get']('Users')['getUser'](_0x1ba13f)),'fromVersion':_0x6cd989};_0x2e093c===this['currentRevision']&&(_0x7d2c0d['createdAt']=new Date(_0x5e6d5e['createdAt']['getTime']()+0xa)),_0x2e093c['_update'](_0x7d2c0d,!0x0),delete _0x7d2c0d['authors'],_0x3af500['push'](_0x7d2c0d);}}if(this['adapter']){for(const _0x1998f6 of _0x3af500)this['_bufferUpdate'](_0x1998f6['id'],_0x1998f6,!0x0);this['sendBufferedUpdates']();}return _0x510868;}['addRevisionData'](_0x30a21e){const _0xedbde2=this['repository']['createRevision'](_0x30a21e);return this['adapter']&&_0xedbde2['on']('_update',(_0x26f9d8,_0x44fa4b,_0x28c851)=>{_0x28c851||(this['_bufferUpdate'](_0x44fa4b['id'],_0x44fa4b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xedbde2,this['_findInsertionIndex'](_0xedbde2)),_0xedbde2;}async['getRevisionDocumentData'](_0x2fb02d){return await this['_utils']['loadRevisionData'](_0x2fb02d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2fb02d);}async['getRevisionRootsAttributes'](_0x36e64f){return await this['_utils']['loadRevisionData'](_0x36e64f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x36e64f);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2f22c3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x18fbbc=0x0;_0x18fbbc<_0x2f22c3['length'];_0x18fbbc++){const _0x3fc3f1=_0x2f22c3[_0x18fbbc];let _0x4ff97a=!0x1;for(const _0x29c488 of Object['keys'](_0x3fc3f1))void 0x0===_0x3fc3f1[_0x29c488]?delete _0x3fc3f1[_0x29c488]:'id'!==_0x29c488&&(_0x4ff97a=!0x0);_0x4ff97a||(_0x2f22c3[_0x18fbbc]=null);}if(_0x2f22c3=_0x2f22c3['filter'](_0x545474=>null!==_0x545474),!_0x2f22c3['length'])return;for(let _0x3155e7=0x0;_0x3155e7<_0x2f22c3['length'];_0x3155e7++){const _0x509edf=_0x2f22c3[_0x3155e7];void 0x0!==_0x509edf['fromVersion']&&void 0x0===_0x509edf['toVersion']&&(_0x509edf['toVersion']=this['repository']['getRevision'](_0x509edf['id'])['toVersion']),void 0x0!==_0x509edf['toVersion']&&void 0x0===_0x509edf['fromVersion']&&(_0x509edf['fromVersion']=this['repository']['getRevision'](_0x509edf['id'])['fromVersion']);}const _0x2da1ed=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2f22c3,_0x2da1ed)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1d308e=>{if(_0x1d308e){for(const _0x2f8c64 of _0x1d308e)this['setRevisionData']({'id':_0x2f8c64['id'],'createdAt':_0x2f8c64['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1544a7=null,from:_0x2398a1=null,to:_0x406e95=null}){_0x2398a1=null!==_0x2398a1?_0x2398a1:_0x1544a7['fromVersion'],_0x406e95=null!==_0x406e95?_0x406e95:_0x1544a7['toVersion'];const _0x2ffb58=this['_revisionDataBuilder']['getData'](_0x2398a1,_0x406e95),_0x1926e3={'diffData':_0x2ffb58['diffData'],'authorsIds':_0x2ffb58['authorsIds'],'fromVersion':_0x2398a1,'toVersion':_0x406e95};if(!_0x1544a7||_0x406e95!==_0x1544a7['toVersion']){const _0x5473ca=_0x406e95-0x1,_0x4f7819=this['_source']['history']['getOperation'](_0x5473ca);_0x1926e3['createdAt']=_0x4f7819&&_0x4f7819['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2398a1===this['_loadedStateData']['fromVersion']){for(const _0x26afd5 of this['_loadedStateData']['authors'])_0x1926e3['authorsIds']['includes'](_0x26afd5['id'])||_0x1926e3['authorsIds']['push'](_0x26afd5['id']);}return _0x1926e3;}['_bufferUpdate'](_0x4cb8cf,_0x25a9ed,_0x33a9cd){if(this['_bufferedUpdates']['has'](_0x4cb8cf)){const _0x2f2048=this['_bufferedUpdates']['get'](_0x4cb8cf);_0x25a9ed=_0x33a9cd?{..._0x2f2048,..._0x25a9ed}:{..._0x25a9ed,..._0x2f2048};}this['_bufferedUpdates']['set'](_0x4cb8cf,_0x25a9ed);}['setRevisionData'](_0x51dccd){const _0x24d06d=this['repository']['getRevision'](_0x51dccd['id']);if(_0x51dccd['createdAt']&&(_0x51dccd['createdAt']=new Date(_0x51dccd['createdAt'])),_0x51dccd['authorsIds']){const _0x75b0bd=this['editor']['plugins']['get']('Users');_0x51dccd['authors']=_0x51dccd['authorsIds']['map'](_0x6a8e78=>_0x75b0bd['getUser'](_0x6a8e78));}_0x24d06d['_update'](_0x51dccd,!0x0);}['_createInitialRevision'](_0x5e1b7b){const _0x4499c0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4499c0)this['_initialRevisionId']=_0x4499c0['id'];else{const _0x26ee79=!this['editor']['model']['document']['roots']['find'](_0x2b9845=>this['editor']['model']['hasContent'](_0x2b9845)),_0x128170=this['editor']['plugins']['get']('Users')['me']['id'],_0x49c856=g(this['editor']['locale'],_0x26ee79?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5e1b7b,'to':_0x5e1b7b,'id':this['_initialRevisionId'],'name':_0x49c856,'creatorId':_0x128170});}}['_createCurrentRevision'](_0x36e747){const _0xbbd103=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xbbd103),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x36e747,'to':_0x36e747,'id':_0xbbd103,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x175763,_0x4a17cc){let _0x9c0754=this['editor']['config']['get']('initialData'),_0x103056=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x9c0754){_0x9c0754={};for(const _0x271047 of this['editor']['model']['document']['getRootNames']())_0x9c0754[_0x271047]='';}if('string'==typeof _0x9c0754&&(_0x9c0754={'main':_0x9c0754}),void 0x0===_0x103056){_0x103056={};for(const _0x35f3ea of this['editor']['model']['document']['getRootNames']())_0x103056[_0x35f3ea]={};}let _0x271293=!0x1;const _0x481f8e=Object['keys'](_0x9c0754),_0x3319f3=Object['keys'](_0x175763);for(const _0x413762 of _0x481f8e){if(_0x9c0754[_0x413762]!==_0x175763[_0x413762]&&''!==_0x9c0754[_0x413762]['trim']()){_0x271293=!0x0;break;}if(!_0x3694b4(_0x103056[_0x413762],_0x4a17cc[_0x413762])&&Object['keys'](_0x103056[_0x413762])['length']>0x0){_0x271293=!0x0;break;}}_0x271293||(_0x271293=_0x3319f3['some'](_0x38ea0d=>!this['editor']['model']['document']['getRoot'](_0x38ea0d))),_0x271293&&_0x5b5bc4('editor-initial-data-replaced-with-revision-data',{'editorData':_0x9c0754,'editorRootsAttributes':_0x103056,'revisionData':_0x175763,'revisionRootsAttributes':_0x4a17cc}),this['editor']['config']['set']('initialData',_0x175763),this['editor']['config']['set']('rootsAttributes',_0x4a17cc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3c80ec=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3c80ec['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x21706c){const _0x143f43=this['repository']['getRevisions']();_0x143f43['reverse']();let _0x3721bd=0x0;for(;_0x3721bd<_0x143f43['length'];){const _0x232db9=_0x143f43[_0x3721bd];if(_0x232db9===this['currentRevision']){_0x3721bd++;continue;}if(_0x232db9['id']===this['_initialRevisionId'])break;const _0xcf2421=_0x21706c['toVersion']-_0x232db9['toVersion']||_0x21706c['fromVersion']-_0x232db9['fromVersion'];if(_0xcf2421>0x0)break;if(_0xcf2421<0x0)_0x3721bd++;else{if(!_0x21706c['creator']&&_0x232db9['creator'])break;if(_0x232db9['creator']||!_0x21706c['creator']){if(_0x21706c['createdAt']>_0x232db9['createdAt'])break;_0x3721bd++;}else _0x3721bd++;}}return _0x3721bd;}['_getFromVersion'](_0x2a247e){const _0x565c9c=this['repository']['getRevisions']();_0x565c9c['reverse'](),_0x565c9c['shift']();const _0x334cd4=_0x565c9c['find'](_0xeb356e=>_0xeb356e['toVersion']<=_0x2a247e)['toVersion'];return _0x334cd4<this['_startingVersion']?this['_startingVersion']:_0x334cd4;}['_makeRevision']({name:_0x24b38f,from:_0x1d9e45,to:_0x47a039,creatorId:_0x138a90,id:_0x369efb}){const _0x16a5d3=this['buildRevisionData']({'from':_0x1d9e45,'to':_0x47a039});_0x16a5d3['name']=_0x24b38f,_0x16a5d3['creatorId']=_0x138a90,_0x16a5d3['id']=_0x369efb;const _0x52c9c8=this['addRevisionData'](_0x16a5d3);return this['adapter']&&this['_bufferUpdate'](_0x16a5d3['id'],_0x16a5d3,!0x0),_0x52c9c8;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4eda71){this['editor']=_0x4eda71,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'](_0x11dec9){this['source']=_0x11dec9;const _0x285421=new Map(),_0x5a39ea=new Map(),_0x450116=this['editor']['model']['document']['roots']['map'](_0x2b6089=>_0x2b6089['rootName']);for(const _0x2d4abb of _0x450116){const _0x1bd95c=this['editor']['model']['document']['getRoot'](_0x2d4abb),_0x2eef9c=N(_0x1bd95c);_0x285421['set'](_0x2d4abb,_0x2eef9c),_0x5a39ea['set'](_0x2d4abb,Object['fromEntries'](_0x1bd95c['getAttributes']()));}const _0x480366=Array['from'](this['editor']['model']['markers'])['map'](_0x584078=>[_0x584078['name'],_0x584078['getRange']()]),_0x45d18f=this['source']['version'];this['_saveMetaData'](_0x45d18f,_0x285421,_0x480366,_0x5a39ea),this['_startingRevisionId']=this['_revisionId'];const _0x10f763=new Map(),_0x3ceeec=new Map();for(const _0x312489 of _0x450116){const _0x332285=P(_0x312489);_0x10f763['set'](_0x312489,_0x332285),_0x3ceeec['set'](_0x312489,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x10f763,[],_0x3ceeec);}['getData'](_0x1f072f,_0xf1bae7){if(this['_lastFrom']===_0x1f072f&&this['_lastTo']<=_0xf1bae7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xf1bae7,!0x0);else{if(!this['_savedMetaData']['has'](_0x1f072f)){const _0x92adc8=this['_getPreviousFrom'](_0x1f072f);this['_calculateMetaData'](_0x92adc8,_0x1f072f,!0x1);}this['_calculateMetaData'](_0x1f072f,_0xf1bae7,!0x0);}return this['_lastFrom']=_0x1f072f,this['_lastTo']=_0xf1bae7,this['_getState']();}['loadState'](_0x2a7706){const _0x39298a=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2a7706['fromVersion'],this['_lastTo']=_0x2a7706['toVersion'];for(const _0x118840 in _0x2a7706['diffData']){const _0x35801d=_0x2a7706['diffData'][_0x118840]['attachChange'],_0x5d6980=_0x142d8e(_0x2a7706['diffData'][_0x118840]['attributesBefore'])||{},_0x13d30b=_0x39298a['_makeModelFromViewString'](_0x2a7706['diffData'][_0x118840]['deletions']);_0x13d30b['rootName']=_0x118840,_0x13d30b['_isAttached']=!_0x35801d||!_0x35801d['isAttached'],_0x13d30b['isAttached']=()=>_0x13d30b['_isAttached'],this['_baseRoots']['set'](_0x118840,_0x13d30b),this['_baseRootsAttributes']['set'](_0x118840,_0x5d6980),_0x35801d&&this['_touchedRoots']['set'](_0x118840,_0x35801d);const _0x73568d=this['_makeIdsRoot'](_0x13d30b);this['_baseIdsRoots']['set'](_0x118840,_0x73568d);for(const [_0x53f09c,_0x4c58c2]of _0x13d30b['markers']){if(!_0x53f09c['startsWith']('revision:'))continue;const _0x5a7b1e=_0x53f09c['split'](':')[0x2];for(const _0x3d8952 of _0x4c58c2['getWalker']({'singleCharacters':!0x0})){const _0x59cfc9=this['_getVidAttributeName'](_0x3d8952),_0x4a421f='elementEnd'==_0x3d8952['type']?_0x3d8952['previousPosition']['path']['slice'](0x0,-0x1):_0x3d8952['previousPosition']['path'],_0x59477e=_0x73568d['getNodeByPath'](_0x4a421f)['getAttribute'](_0x59cfc9);this['_touched']['set'](_0x59477e,{'userId':_0x5a7b1e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x505781=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3e68fa=>!this['_touched']['has'](_0x3e68fa));let _0x194d81=0x0;const _0x5abcda=new Map();for(const _0x5782da in _0x2a7706['diffData']){const _0x358643=_0x2a7706['diffData'][_0x5782da]['attachChange'],_0x2903a0=_0x142d8e(_0x2a7706['diffData'][_0x5782da]['attributesAfter'])||{},_0x41008c=_0x39298a['_makeModelFromViewString'](_0x2a7706['diffData'][_0x5782da]['insertions']);_0x41008c['rootName']=_0x5782da,_0x41008c['_isAttached']=!_0x358643||_0x358643['isAttached'],_0x41008c['isAttached']=()=>_0x41008c['_isAttached'],this['_diffRoots']['set'](_0x5782da,_0x41008c),this['_diffRootsAttributes']['set'](_0x5782da,_0x2903a0);const _0x223034=this['_makeIdsRoot'](_0x41008c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5782da,_0x223034),_0x5abcda['set'](_0x5782da,_0x41008c['isAttached']()?_0x2903a0:{});for(const [_0x34790f,_0x57c157]of _0x41008c['markers']){if(!_0x34790f['startsWith']('revision:'))continue;const _0xe28b91=_0x34790f['split'](':')[0x2];for(const _0x38e0b2 of _0x57c157['getWalker']({'singleCharacters':!0x0})){const _0x120f9a=this['_getVidAttributeName'](_0x38e0b2),_0x34e059=this['_revisionId']++,_0xac64a1='elementEnd'==_0x38e0b2['type']?_0x38e0b2['previousPosition']['path']['slice'](0x0,-0x1):_0x38e0b2['previousPosition']['path'];_0x223034['getNodeByPath'](_0xac64a1)['_setAttribute'](_0x120f9a,_0x34e059),this['_touched']['set'](_0x34e059,{'userId':_0xe28b91});}}for(const _0x5c7bad of this['editor']['model']['createRangeIn'](_0x41008c)['getWalker']({'singleCharacters':!0x0})){const _0x1b7bb3=this['_getVidAttributeName'](_0x5c7bad),_0x2403c9='elementEnd'==_0x5c7bad['type']?_0x5c7bad['previousPosition']['path']['slice'](0x0,-0x1):_0x5c7bad['previousPosition']['path'],_0x3c6f08=_0x223034['getNodeByPath'](_0x2403c9);_0x3c6f08['getAttribute'](_0x1b7bb3)>0x0||_0x3c6f08['_setAttribute'](_0x1b7bb3,_0x505781[_0x194d81++]);}for(const [_0x58f864,_0xf05d1f]of _0x41008c['markers'])_0x58f864['startsWith']('revision:')||this['_markers']['set'](_0x58f864,_0xf05d1f);}const _0x3d0afe=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3d0afe),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3d0afe,0x1));const _0x3fb558=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3fb558),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3fb558,0x1));const _0x29e127=Array['from'](this['_diffRoots'])['map'](([_0x15bd81,_0x4504fd])=>[_0x15bd81,N(_0x4504fd)]);this['_saveMetaData'](this['_lastTo'],_0x29e127,this['_markers'],_0x5abcda);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5ac3d3,_0x319264,_0xfe14b0,_0x318242){const _0x23b0c4=new Map(_0x319264),_0x51fb81=new Map(_0x142d8e(_0x318242)),_0x8176fc=new Map();for(const [_0x45bddc,_0x3ed664]of _0xfe14b0)_0x8176fc['set'](_0x45bddc,{'start':_0x3ed664['start']['clone'](),'end':_0x3ed664['end']['clone'](),'rootName':_0x3ed664['root']['rootName']});this['_savedMetaData']['set'](_0x5ac3d3,{'roots':_0x23b0c4,'markers':_0x8176fc,'rootsAttributes':_0x51fb81});}['_removeMetaData'](_0x25884e){this['_savedMetaData']['delete'](_0x25884e);}['_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'](_0x3dd6eb,_0x2f901a=null){let _0x5275e7=null;_0x3dd6eb['is']('documentFragment')||(_0x5275e7=new ut(_0x3dd6eb['name'],{'vid_start':null===_0x2f901a?this['_revisionId']++:_0x2f901a++}));const _0x309dd8=[];for(const _0x569c23 of _0x3dd6eb['getChildren']())if(_0x569c23['is']('element')){_0x309dd8['push'](this['_makeIdsRoot'](_0x569c23,_0x2f901a));const _0x4ec91a=_0x309dd8[_0x309dd8['length']-0x1];null!==_0x2f901a&&(_0x2f901a=_0x4ec91a['is']('element','$text')?_0x4ec91a['getAttribute']('vid')+0x1:_0x4ec91a['getAttribute']('vid_end')+0x1);}else{for(let _0x319e62=0x0;_0x319e62<_0x569c23['offsetSize'];_0x319e62++)_0x309dd8['push'](new ut('$text',{'vid':null===_0x2f901a?this['_revisionId']++:_0x2f901a++}));}if(_0x3dd6eb['is']('documentFragment')){const _0x4a6ec5=P(_0x3dd6eb['rootName']);return _0x4a6ec5['_insertChild'](0x0,_0x309dd8),_0x4a6ec5;}return _0x5275e7['_setAttribute']('vid_end',null===_0x2f901a?this['_revisionId']++:_0x2f901a++),_0x5275e7['_insertChild'](0x0,_0x309dd8),_0x5275e7;}['_calculateMetaData'](_0x552d74,_0x409d1c,_0x433423){this['_reset']();const {roots:_0x390d86,markers:_0x619370,rootsAttributes:_0x817186}=this['_savedMetaData']['get'](_0x552d74);this['_baseRoots']=new Map(_0x390d86),this['_baseRootsAttributes']=new Map(_0x142d8e(_0x817186));for(const [_0x491bc2,_0x1b7690]of this['_baseRoots'])if('$graveyard'!==_0x491bc2&&(this['_diffRoots']['set'](_0x491bc2,N(_0x1b7690)),this['_diffRootsAttributes']=new Map(_0x142d8e(_0x817186)),_0x433423)){const _0x11c042=this['_revisionId'];this['_idsRoots']['set'](_0x491bc2,this['_makeIdsRoot'](_0x1b7690)),this['_baseIdsRoots']['set'](_0x491bc2,this['_makeIdsRoot'](_0x1b7690,_0x11c042));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x433423&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4d1951,_0x534389]of _0x619370){const _0x1d1f99=this['_baseRoots']['get'](_0x534389['rootName']),_0x488d57=this['_diffRoots']['get'](_0x534389['rootName']),_0x42b640=new lt(this['_fixPosition'](_0x534389['start'],_0x1d1f99),this['_fixPosition'](_0x534389['end'],_0x1d1f99)),_0x3c691d=this['_fixRange'](_0x42b640,_0x488d57);_0x1d1f99['markers']['set'](_0x4d1951,_0x42b640),this['_markers']['set'](_0x4d1951,_0x3c691d);}this['_applyOperations'](_0x552d74,_0x409d1c,_0x433423);}['_applyOperations'](_0x5d1c72,_0xa49282,_0x56e4a4){for(const _0x11aa9c of this['source']['getOperations'](_0x5d1c72,_0xa49282))this['_handleOperation'](_0x11aa9c,_0x56e4a4);for(const _0x3f68fb of this['_diffRoots']['values']())_0x3f68fb['markers']['clear']();for(const [_0x1f036a,_0x524287]of this['_markers']){this['_diffRoots']['get'](_0x524287['root']['rootName'])['markers']['set'](_0x1f036a,_0x524287['clone']());}const _0x47f082=new Map(),_0x2fa589=new Map();for(const [_0x475769,_0x19aafe]of this['_diffRoots'])_0x47f082['set'](_0x475769,N(_0x19aafe)),_0x2fa589['set'](_0x475769,this['_diffRootsAttributes']['get'](_0x475769));this['_saveMetaData'](_0xa49282,_0x47f082,this['_markers'],_0x2fa589);}['_getPreviousFrom'](_0xf0c9d9){const _0x2a2f0c=Array['from'](this['_savedMetaData']['keys']());_0x2a2f0c['sort']((_0x5e4a39,_0x38e6b4)=>_0x5e4a39-_0x38e6b4),_0x2a2f0c['reverse']();for(const _0x4d8de6 of _0x2a2f0c)if(_0x4d8de6<_0xf0c9d9)return _0x4d8de6;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2db86c,_0x30a4c8){const _0x2a4c0c=Array['from'](_0x30a4c8['markers'])['map'](([_0x1aa12c,_0x254083])=>[_0x1aa12c,this['_fixRange'](_0x254083,_0x2db86c)]);_0x2db86c['markers']=new Map(_0x2a4c0c);}['_transformMarkers'](_0x917641){for(const _0x46c4e3 of this['_markers']['values']()){const _0x4669e8=_0x46c4e3['getTransformedByOperation'](_0x917641),_0x25cc39=lt['_createFromRanges'](_0x4669e8);_0x46c4e3['start']=_0x25cc39['start'],_0x46c4e3['end']=_0x25cc39['end'];}}['_handleOperation'](_0x1cc285,_0x1d7c30){if('addRoot'!=_0x1cc285['type']&&'detachRoot'!=_0x1cc285['type']){if('insert'==_0x1cc285['type']){const _0x20aaa1=_0x1cc285['position']['root']['rootName'];this['_diffRoots']['has'](_0x20aaa1)||(this['_diffRoots']['set'](_0x20aaa1,P(_0x20aaa1,!0x0)),this['_diffRootsAttributes']['set'](_0x20aaa1,{}),_0x1d7c30&&this['_idsRoots']['set'](_0x20aaa1,P(_0x20aaa1,!0x0)));}else{if('addRootAttribute'==_0x1cc285['type']||'removeRootAttribute'==_0x1cc285['type']||'changeRootAttribute'==_0x1cc285['type'])return void this['_handleRootAttributeOperation'](_0x1cc285);'marker'==_0x1cc285['type']&&this['_handleMarkerOperation'](_0x1cc285);}if('marker'!==_0x1cc285['type']){const _0x5ea4f5=this['_cloneOperation'](_0x1cc285,this['_diffRoots']);_0x5ea4f5['_execute'](),this['_transformMarkers'](_0x5ea4f5);}if(_0x1d7c30)switch(_0x1cc285['type']){case'insert':this['_handleInsertOperation'](_0x1cc285);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1cc285);break;case'merge':this['_handleMergeOperation'](_0x1cc285);break;case'split':this['_handleSplitOperation'](_0x1cc285);}}else this['_handleRootOperation'](_0x1cc285,_0x1d7c30);}['_cloneOperation'](_0x18866b,_0x3cb903){const _0x1a973c=_0x18866b['clone']();return _0x1a973c['_authorId']=_0x18866b['_authorId'],this['_fixOperation'](_0x1a973c,_0x3cb903),_0x1a973c;}['_getBaseVids'](_0x29e38c){return _0x29e38c['map'](_0x19a2cf=>{const _0x21dd93=this['_getVidAttributeName'](_0x19a2cf);return Number(_0x19a2cf['item']['getAttribute'](_0x21dd93));});}['_generateTape'](_0x59752c,_0x2dda8b){if(_0x59752c['is']('element','$text'))_0x2dda8b['push']({'item':_0x59752c,'type':'text'});else{_0x59752c['is']('element')&&_0x2dda8b['push']({'item':_0x59752c,'type':'elementStart'});for(const _0xdf1aff of _0x59752c['getChildren']())this['_generateTape'](_0xdf1aff,_0x2dda8b);_0x59752c['is']('element')&&_0x2dda8b['push']({'item':_0x59752c,'type':'elementEnd'});}return _0x2dda8b;}['_getState'](){const _0x1fc830=new Map(this['_touched']),_0x5201ac=new Map(_0x1fc830),_0x245730=new Map(),_0x5d68f3={'insertions':{},'deletions':{}},_0x454ebe={'insertions':{},'deletions':{}},_0x4bac7b=new Map(),_0x10a3d5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x10a3d5['delete']('$graveyard');for(const _0x19564f of _0x10a3d5){const _0x3df842=this['_diffRoots']['get'](_0x19564f)||P(_0x19564f,!0x1),_0x3fb703=this['_baseRoots']['get'](_0x19564f)||P(_0x19564f,!0x1);_0x3df842['isAttached']()||_0x3fb703['isAttached']()?(_0x5d68f3['insertions'][_0x19564f]=N(_0x3df842),_0x5d68f3['deletions'][_0x19564f]=N(_0x3fb703),this['_copyMarkers'](_0x5d68f3['deletions'][_0x19564f],_0x3fb703),this['_copyMarkers'](_0x5d68f3['insertions'][_0x19564f],_0x3df842),_0x454ebe['insertions'][_0x19564f]=this['_generateTape'](this['_idsRoots']['get'](_0x19564f),[]),_0x454ebe['deletions'][_0x19564f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x19564f)||P(_0x19564f,!0x1),[])):_0x10a3d5['delete'](_0x19564f);}for(const _0x139ad3 of _0x10a3d5){const _0x484c41=_0x454ebe['insertions'][_0x139ad3];for(const _0x468e29 of _0x484c41){const _0x280bfe=this['_getVidAttributeName'](_0x468e29),_0x1ae6d9=_0x468e29['item']['getAttribute'](_0x280bfe);_0x5201ac['delete'](_0x1ae6d9),_0x1ae6d9>=this['_startingRevisionId']&&_0x245730['set'](_0x1ae6d9,_0x1fc830['get'](_0x1ae6d9));}}for(const _0x264af8 of _0x10a3d5){const _0x4a7371=_0x454ebe['insertions'][_0x264af8],_0xa77299=this['_getBaseVids'](_0x454ebe['deletions'][_0x264af8]);let _0x136796=0x0;for(const _0x34e597 of _0x4a7371){const _0x51cc5d=this['_getVidAttributeName'](_0x34e597),_0x289c3f=_0x34e597['item']['getAttribute'](_0x51cc5d);if(!_0x245730['has'](_0x289c3f)&&!_0x4bac7b['has'](_0x289c3f)){if(_0x5201ac['has'](_0x289c3f))_0x136796++;else{if(_0x289c3f!=_0xa77299[_0x136796]){const _0x1657b4=_0x1fc830['get'](_0x289c3f)||_0x1fc830['get'](_0xa77299[_0x136796]);for(;_0x289c3f!=_0xa77299[_0x136796];)_0x5201ac['has'](_0xa77299[_0x136796])||(_0x4bac7b['set'](_0xa77299[_0x136796],_0x1657b4),_0x1fc830['set'](_0xa77299[_0x136796],_0x1657b4)),_0x136796++;}_0x136796++;}}}}for(const _0x45a7ce of _0x10a3d5){const _0x5a1261=_0x454ebe['insertions'][_0x45a7ce];for(const _0x3a6625 of _0x5a1261){const _0x10308d=this['_getVidAttributeName'](_0x3a6625),_0x402848=_0x3a6625['item']['getAttribute'](_0x10308d);if(_0x4bac7b['has'](_0x402848)){const _0x38de89=_0x4bac7b['get'](_0x402848);_0x5201ac['has'](_0x402848)||_0x5201ac['set'](_0x402848,{..._0x38de89}),_0x245730['set'](_0x402848,{..._0x38de89});}}}for(const _0x1d375b of _0x5201ac['keys']())_0x1d375b>=this['_startingRevisionId']&&_0x5201ac['delete'](_0x1d375b);const _0x1a0fc8=new Map();for(const _0x5b5503 of _0x10a3d5){let _0x14b63b=_0x454ebe['insertions'][_0x5b5503];for(const _0x125019 of _0x14b63b)if(_0x125019['item']['is']('element','tableCell')){const _0x1b97db=this['_getVidAttributeName'](_0x125019),_0x40a4b=_0x125019['item']['getAttribute'](_0x1b97db);if(_0x245730['has'](_0x40a4b)){const _0x3f41a7=_0x125019['item']['parent']['parent']['getAttribute']('vid_start'),_0x2e8c22=_0x1a0fc8['get'](_0x3f41a7)||new Set();_0x2e8c22['add'](_0x245730['get'](_0x40a4b)['userId']),_0x1a0fc8['set'](_0x3f41a7,_0x2e8c22);}}_0x14b63b=_0x454ebe['deletions'][_0x5b5503];for(const _0x4fbe8b of _0x14b63b)if(_0x4fbe8b['item']['is']('element','tableCell')){const _0x46b97a=this['_getVidAttributeName'](_0x4fbe8b),_0x212180=_0x4fbe8b['item']['getAttribute'](_0x46b97a);if(_0x5201ac['has'](_0x212180)){const _0x20bc01=_0x4fbe8b['item']['parent']['parent']['getAttribute']('vid_start'),_0x199521=_0x1a0fc8['get'](_0x20bc01)||new Set();_0x199521['add'](_0x5201ac['get'](_0x212180)['userId']),_0x1a0fc8['set'](_0x20bc01,_0x199521);}}for(const _0x21cc8c of _0x1a0fc8['keys']())(_0x245730['has'](_0x21cc8c)||_0x5201ac['has'](_0x21cc8c))&&_0x1a0fc8['delete'](_0x21cc8c);}for(const _0xfc4e46 of _0x10a3d5){const _0x2464bf=_0x454ebe['insertions'][_0xfc4e46];let _0x38d4f8=null,_0x18ad59=null;for(const _0x4b5127 of _0x2464bf){const _0x2c4daf=this['_getVidAttributeName'](_0x4b5127),_0x4a8a51=_0x4b5127['item']['getAttribute'](_0x2c4daf),_0x255bef=_0x1a0fc8['get'](_0x4a8a51);_0x255bef&&'elementStart'==_0x4b5127['type']&&(_0x38d4f8=Array['from'](_0x255bef)[0x0],_0x18ad59=_0x4b5127['item']['getAttribute']('vid_end')),_0x38d4f8&&(_0x5201ac['set'](_0x4a8a51,{'userId':_0x38d4f8}),_0x245730['set'](_0x4a8a51,{'userId':_0x38d4f8})),_0x4a8a51==_0x18ad59&&(_0x38d4f8=null,_0x18ad59=null);}}const _0x1ae9e4={},_0x479010=new Set();for(const _0x27f0ca of _0x10a3d5){const _0x245793=_0x5d68f3['deletions'][_0x27f0ca],_0x184e1d=_0x5d68f3['insertions'][_0x27f0ca];for(const {userId:_0x575724}of this['_touchedMarkers']['values']())null!==_0x575724&&_0x479010['add'](_0x575724);for(const {userId:_0x5c3ef7}of this['_touchedRoots']['values']())null!==_0x5c3ef7&&_0x479010['add'](_0x5c3ef7);this['_markChanges'](_0x184e1d,_0x454ebe['insertions'][_0x27f0ca],_0x245730,'insertion',_0x479010),this['_markChanges'](_0x245793,_0x454ebe['deletions'][_0x27f0ca],_0x5201ac,'deletion',_0x479010),_0x1ae9e4[_0x27f0ca]={'insertions':this['_prepareViewToSave'](_0x184e1d),'deletions':this['_prepareViewToSave'](_0x245793),'attachChange':this['_touchedRoots']['get'](_0x27f0ca)||null,'attributesBefore':_0x142d8e(this['_baseRootsAttributes']['get'](_0x27f0ca))||{},'attributesAfter':_0x142d8e(this['_diffRootsAttributes']['get'](_0x27f0ca))};}return{'diffData':_0x1ae9e4,'authorsIds':Array['from'](_0x479010)};}['_processRootBeforeSave'](_0x5366fd){for(const [,_0x18d0c7]of _0x5366fd['markers']){const _0x3b2db8=_0x18d0c7['start']['getAncestors']()['filter'](_0x20b28b=>'tableCell'==_0x20b28b['name']);for(const _0x150b60 of _0x3b2db8)0x1==_0x150b60['childCount']&&_0x150b60['getChild'](0x0)['is']('element','paragraph')&&_0x150b60['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x31e039){this['_processRootBeforeSave'](_0x31e039);const _0x3e7119=this['editor']['data']['toView'](_0x31e039,{}),_0xdb1cfa=Array['from'](_0x3e7119['getChildren']())['map'](_0x1f4556=>this['_getViewJson'](_0x1f4556));return JSON['stringify'](_0xdb1cfa);}['_getViewJson'](_0x1a3956){if(_0x1a3956['is']('$text'))return _0x1a3956['data'];{const _0x14f75f=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4e25dc=_0x1a3956,_0x40d9da=this['editor']['data']['htmlProcessor']['domConverter'],_0x5927b7={'type':_0x14f75f['_getTypeCharForViewElement'](_0x4e25dc),'name':_0x4e25dc['name'],'attributes':Array['from'](_0x4e25dc['getAttributes']()),'children':Array['from'](_0x4e25dc['getChildren']())['map'](_0x447089=>this['_getViewJson'](_0x447089))};if(_0x1a3956['is']('uiElement')&&'$comment'!=_0x1a3956['name']){const _0x18f04c=_0x1a3956['render'](_0x40d9da['domDocument'],_0x40d9da);_0x5927b7['children']['push'](_0x18f04c['outerHTML']);}else{if(_0x1a3956['is']('rawElement')){const _0x3d7f7e=_0x40d9da['domDocument']['createElement'](_0x4e25dc['name']);_0x1a3956['render'](_0x3d7f7e,_0x40d9da),_0x5927b7['children']['push'](_0x3d7f7e['innerHTML']);}}const _0x5976d2=Array['from'](_0x4e25dc['getCustomProperties']());_0x5976d2['length']>0x0&&(_0x5927b7['customProperties']=_0x5976d2);const _0x48f84f=_0x4e25dc['getFillerOffset']();return null!==_0x48f84f&&(_0x5927b7['fillerOffset']=_0x48f84f),_0x5927b7;}}['_markChanges'](_0x60c82f,_0x3fdaf3,_0x10c674,_0x536353,_0x4d7512){let _0x313dfd=null,_0x5f3d5f=null,_0x232acc=0x0;const _0x5992fc=this['editor']['model'];for(let _0x5911cb=0x0;_0x5911cb<_0x3fdaf3['length'];_0x5911cb++){const _0x321198=this['_getVidAttributeName'](_0x3fdaf3[_0x5911cb]),_0x158bee=_0x3fdaf3[_0x5911cb]['item']['getAttribute'](_0x321198),_0x5ddbdb=_0x10c674['get'](_0x158bee),_0x1d3159=_0x5911cb==_0x3fdaf3['length']-0x1;(!_0x313dfd&&_0x5ddbdb&&(_0x313dfd=_0x5ddbdb,_0x5f3d5f=_0x3fdaf3[_0x5911cb]),_0x313dfd&&(!_0x5ddbdb||_0x5ddbdb['userId']!=_0x313dfd['userId']))&&(_0x48a7ce(_0x5ddbdb,F(_0x5f3d5f,_0x60c82f,_0x5992fc),F(_0x3fdaf3[_0x5911cb],_0x60c82f,_0x5992fc)),_0x313dfd=_0x5ddbdb||null,_0x5f3d5f=_0x5ddbdb?_0x3fdaf3[_0x5911cb]:null),_0x313dfd&&_0x1d3159&&_0x48a7ce(_0x5ddbdb,F(_0x5f3d5f,_0x60c82f,_0x5992fc),B(_0x3fdaf3[_0x5911cb],_0x60c82f,_0x5992fc));}function _0x48a7ce(_0x38b432,_0x1e8f1b,_0x1947c0){const _0x4a5a85=_0x313dfd['userId'],_0x141c77='revision:'+_0x536353+':'+_0x4a5a85+':'+_0x232acc++,_0x2015d2=_0x5992fc['createRange'](_0x1e8f1b,_0x1947c0);_0x60c82f['markers']['set'](_0x141c77,_0x2015d2),null!==_0x4a5a85&&_0x4d7512['add'](_0x4a5a85);}}['_getVidAttributeName'](_0x142f97){switch(_0x142f97['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5527f3,_0x1bc68f){_0x5527f3['baseVersion']=null;for(const _0x38f506 in _0x5527f3){const _0x3913b9=_0x5527f3[_0x38f506];if(_0x3913b9 instanceof ft){const _0x40e548=_0x1bc68f['get'](_0x3913b9['root']['rootName']);_0x5527f3[_0x38f506]=this['_fixPosition'](_0x3913b9,_0x40e548);}if(_0x3913b9 instanceof lt){const _0x4917d7=_0x1bc68f['get'](_0x3913b9['root']['rootName']);_0x5527f3[_0x38f506]=this['_fixRange'](_0x3913b9,_0x4917d7);}'root'===_0x38f506&&(_0x5527f3['root']=_0x1bc68f['get'](_0x5527f3['root']['rootName']));}}['_fixRange'](_0x332db8,_0x529156){return this['editor']['model']['createRange'](this['_fixPosition'](_0x332db8['start'],_0x529156),this['_fixPosition'](_0x332db8['end'],_0x529156));}['_fixPosition'](_0x36b275,_0x20965a){return this['editor']['model']['createPositionFromPath'](_0x20965a,_0x36b275['path'],_0x36b275['stickiness']);}['_handleInsertOperation'](_0x4698ab){const _0x4db9d1=this['_idsRoots']['get'](_0x4698ab['position']['root']['rootName']),_0x19fb2b=this['_fixPosition'](_0x4698ab['position'],_0x4db9d1),_0x26bc57=null===_0x4698ab['_authorId']?null:_0x4698ab['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x804d73=_0x19fb2b['parent'],_0x255787=this['_revisionId'],_0x1af3de=[];for(const _0x15526a of _0x4698ab['nodes'])if(_0x15526a['is']('element'))_0x1af3de['push'](this['_makeIdsRoot'](_0x15526a));else{for(let _0x2f7c57=0x0;_0x2f7c57<_0x15526a['offsetSize'];_0x2f7c57++)_0x1af3de['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1118f6=this['_revisionId'];for(let _0x5493c9=_0x255787;_0x5493c9<_0x1118f6;_0x5493c9++)this['_touched']['set'](_0x5493c9,{'userId':_0x26bc57});_0x804d73['_insertChild'](_0x19fb2b['offset'],_0x1af3de);}['_handleMoveOperation'](_0x19a357){(_0x19a357=this['_cloneOperation'](_0x19a357,this['_idsRoots']))['_execute']();const _0x732b9f=null===_0x19a357['_authorId']?null:_0x19a357['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b8ac0=_0x19a357['getMovedRangeStart'](),_0x4e3450=_0x2b8ac0['parent'],_0xb3a465=_0x2b8ac0['offset'];!function _0x53df43(_0x561e3f,_0x29f06c,_0x38673,_0x459f35){for(let _0x3dbff1=_0x38673;_0x3dbff1<_0x459f35;_0x3dbff1++){const _0x2e3f63=_0x29f06c['getChild'](_0x3dbff1);_0x2e3f63['is']('element','$text')?_0x561e3f['set'](_0x2e3f63['getAttribute']('vid'),{'userId':_0x732b9f}):(_0x561e3f['set'](_0x2e3f63['getAttribute']('vid_start'),{'userId':_0x732b9f}),_0x53df43(_0x561e3f,_0x2e3f63,0x0,_0x2e3f63['childCount']),_0x561e3f['set'](_0x2e3f63['getAttribute']('vid_end'),{'userId':_0x732b9f}));}}(this['_touched'],_0x4e3450,_0xb3a465,_0xb3a465+_0x19a357['howMany']);}['_handleMergeOperation'](_0x332071){const _0x5a5e81=null===(_0x332071=this['_cloneOperation'](_0x332071,this['_idsRoots']))['_authorId']?null:_0x332071['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f1475=_0x332071['targetPosition']['parent'],_0x534898=_0x332071['sourcePosition']['parent'],_0x12b99e=_0x1f1475['getAttribute']('vid_end'),_0x36b4b7=_0x534898['getAttribute']('vid_start');_0x1f1475['_setAttribute']('vid_end',_0x534898['getAttribute']('vid_end')),_0x534898['_setAttribute']('vid_end',_0x12b99e),this['_touched']['set'](_0x36b4b7,{'userId':_0x5a5e81}),this['_touched']['set'](_0x12b99e,{'userId':_0x5a5e81}),_0x332071['_execute']();}['_handleSplitOperation'](_0x46fab6){const _0x5e317a=null===(_0x46fab6=this['_cloneOperation'](_0x46fab6,this['_idsRoots']))['_authorId']?null:_0x46fab6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c7b59=_0x46fab6['graveyardPosition'],_0x3c4f5d=_0x46fab6['splitPosition']['parent'];_0x46fab6['_execute']();const _0x562af1=_0x3c4f5d['getAttribute']('vid_end'),_0x1a696c=_0x46fab6['insertionPosition']['nodeAfter'];if(_0x2c7b59){const _0x116167=_0x1a696c['getAttribute']('vid_end'),_0x494c98=_0x3c4f5d['getAttribute']('vid_end');_0x3c4f5d['_setAttribute']('vid_end',_0x116167),_0x1a696c['_setAttribute']('vid_end',_0x494c98),this['_touched']['set'](_0x3c4f5d['getAttribute']('vid_end'),{'userId':_0x5e317a}),this['_touched']['set'](_0x1a696c['getAttribute']('vid_start'),{'userId':_0x5e317a});}else{const _0x7dcc05=this['_revisionId']++,_0x123aee=this['_revisionId']++;_0x3c4f5d['_setAttribute']('vid_end',_0x7dcc05),_0x1a696c['_setAttribute']('vid_start',_0x123aee),_0x1a696c['_setAttribute']('vid_end',_0x562af1),this['_touched']['set'](_0x7dcc05,{'userId':_0x5e317a}),this['_touched']['set'](_0x123aee,{'userId':_0x5e317a});}}['_handleMarkerOperation'](_0x23d28d){if(!_0x23d28d['affectsData'])return;const _0x1c445a=(_0x23d28d=this['_cloneOperation'](_0x23d28d,this['_diffRoots']))['oldRange']?_0x23d28d['oldRange']['root']:null,_0x37d4c2=_0x23d28d['newRange']?_0x23d28d['newRange']['root']:null;_0x1c445a&&this['_markers']['delete'](_0x23d28d['name']),_0x37d4c2&&this['_markers']['set'](_0x23d28d['name'],_0x23d28d['newRange']['clone']());const _0x2ac589=null===_0x23d28d['_authorId']?null:_0x23d28d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37c5e6=_0x23d28d['name'];if(!this['_touchedMarkers']['has'](_0x37c5e6))return void this['_touchedMarkers']['set'](_0x37c5e6,{'range':_0x23d28d['oldRange'],'userId':_0x2ac589});const _0x2a77dd=this['_touchedMarkers']['get'](_0x37c5e6),_0x589de4=_0x2a77dd['range'],_0x39a05e=_0x23d28d['newRange'];null==_0x589de4&&null==_0x39a05e||_0x589de4&&_0x39a05e&&_0x589de4['isEqual'](_0x39a05e)?this['_touchedMarkers']['delete'](_0x23d28d['name']):_0x2a77dd['userId']=_0x2ac589;}['_handleRootOperation'](_0xd45c00,_0x452b5e){this['_diffRoots']['has'](_0xd45c00['rootName'])?this['_diffRoots']['get'](_0xd45c00['rootName'])['_isAttached']=_0xd45c00['isAdd']:(this['_diffRoots']['set'](_0xd45c00['rootName'],P(_0xd45c00['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xd45c00['rootName'],{}),_0x452b5e&&this['_idsRoots']['set'](_0xd45c00['rootName'],P(_0xd45c00['rootName'],!0x0)));const _0x5b0a1f=null===_0xd45c00['_authorId']?null:_0xd45c00['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44c455=this['_touchedRoots']['get'](_0xd45c00['rootName']);_0x44c455&&_0x44c455['userId']===_0x5b0a1f?this['_touchedRoots']['delete'](_0xd45c00['rootName']):this['_touchedRoots']['set'](_0xd45c00['rootName'],{'userId':_0x5b0a1f,'isAttached':_0xd45c00['isAdd']});}['_handleRootAttributeOperation'](_0x1a92a2){const _0x15ac6e=this['_diffRootsAttributes']['get'](_0x1a92a2['root']['rootName']);null===_0x1a92a2['newValue']?delete _0x15ac6e[_0x1a92a2['key']]:_0x15ac6e[_0x1a92a2['key']]=_0x1a92a2['newValue'];}}function N(_0x29c431){const _0xad8c8c=P(_0x29c431['rootName'],_0x29c431['isAttached']());for(const _0x25c44d of _0x29c431['getChildren']()){const _0x41d1bf=_0x25c44d['_clone'](!0x0);_0xad8c8c['_appendChild'](_0x41d1bf);}return _0xad8c8c;}function P(_0x392a31,_0x4d9f97=!0x0){const _0x2b1d9d=new vt();return _0x2b1d9d['rootName']=_0x392a31,_0x2b1d9d['_isAttached']=_0x4d9f97,_0x2b1d9d['isAttached']=()=>_0x2b1d9d['_isAttached'],_0x2b1d9d;}function F(_0x55b23b,_0x1dfd14,_0x337429){const _0x38cf36='elementEnd'==_0x55b23b['type']?_0x337429['createPositionAt'](_0x55b23b['item'],'end'):_0x337429['createPositionBefore'](_0x55b23b['item']);return _0x337429['createPositionFromPath'](_0x1dfd14,_0x38cf36['path'],_0x38cf36['stickiness']);}function B(_0x3bafca,_0x138119,_0xb8a185){const _0x5ec17d='elementStart'==_0x3bafca['type']?_0xb8a185['createPositionAt'](_0x3bafca['item'],0x0):_0xb8a185['createPositionAfter'](_0x3bafca['item']);return _0xb8a185['createPositionFromPath'](_0x138119,_0x5ec17d['path'],_0x5ec17d['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2aaa1d,_0x5127ed){super(_0x2aaa1d),this['focusTracker']=new _0x569311(),this['keystrokes']=new _0x516a4b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5127ed),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x42f75d(this);}['render'](){super['render'](),_0x302b6d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2af754=_0x1ff1db=>_0x1ff1db['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2af754),this['keystrokes']['set']('arrowleft',_0x2af754),this['keystrokes']['set']('arrowup',_0x2af754),this['keystrokes']['set']('arrowdown',_0x2af754);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4c7a79){this['revisionNameInputView']['fieldView']['element']['value']=_0x4c7a79['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xd2bba9){const _0xed180b=new _0x2d5e4b(this['locale'],_0x20057c),_0x47f883=_0xed180b['fieldView'];_0x47f883['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3f1ef9=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0xd2bba9&&(_0x3f1ef9+='\x20('+g(this['locale'],'optional')+')'),(_0xed180b['label']=_0x3f1ef9,_0x47f883['on']('input',()=>{this['revisionNameInputValue']=_0x47f883['element']['value']['trim']();}),_0xed180b);}}class f extends _0x182a76{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1be8fb=this['editor'],_0x2b803e=_0x1be8fb['plugins']['get']('RevisionTracker');_0x1be8fb['ui']['componentFactory']['add']('revisionHistory',_0x509599=>{const _0x3d3a=_0x5f2998(_0x509599),_0x1e0273=_0x3d3a['panelView']['children'],_0x7753c5=new _0x5a1930(_0x509599),_0x1091ae=new _0x55135c(_0x509599),_0x64057e=new te(_0x509599),_0x49ddfc=new _0x55135c(_0x509599),_0x1d01c0=new te(_0x509599);return _0x3d3a['bind']('isEnabled')['to'](_0x2b803e,'isReady',_0x2b803e,'isEnabled',_0x1be8fb,'isReadOnly',(_0x35c34a,_0x2d5961,_0x16d4dd)=>_0x35c34a&&_0x2d5961&&!_0x16d4dd),_0x3d3a['buttonView']['set']({'icon':_0x1a1928,'label':g(_0x509599,'Revision\x20history'),'tooltip':!0x0}),_0x64057e['set']({'label':g(_0x509599,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x64057e['bind']('isEnabled')['to'](_0x2b803e,'isReady',_0x2b803e,'isEnabled',_0x1be8fb,'isReadOnly',(_0x3fbc31,_0x46fdac,_0x266aff)=>_0x3fbc31&&_0x46fdac&&!_0x266aff),_0x64057e['on']('execute',()=>this['_showDialog']()),_0x1d01c0['set']({'label':g(_0x509599,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1d01c0['bind']('isEnabled')['to'](_0x2b803e,'isReady',_0x1be8fb,'isReadOnly',(_0x81a1e2,_0x193bb9)=>_0x81a1e2&&!_0x193bb9),_0x1d01c0['on']('execute',()=>{_0x1be8fb['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3d3a['isOpen']=!0x1,_0x1be8fb['editing']['view']['focus']();}),_0x1091ae['children']['add'](_0x64057e),_0x49ddfc['children']['add'](_0x1d01c0),_0x7753c5['role']='menu',_0x7753c5['items']['addMany']([_0x1091ae,_0x49ddfc]),_0x1e0273['add'](_0x7753c5),_0x3d3a;}),_0x1be8fb['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x434023=this['editor'],_0x12e4b3=_0x434023['locale'],_0x2882b7=new _0x652bb6(_0x12e4b3),_0x4a13b4=new _0x4d4d53(_0x12e4b3);_0x2882b7['buttonView']['set']({'icon':_0x1a1928,'label':g(_0x12e4b3,'Revision\x20history')});const _0x183a53=new _0x1dc259(_0x12e4b3,_0x2882b7),_0x11f538=new _0x130592(_0x12e4b3);_0x11f538['set']({'label':g(_0x12e4b3,'Save\x20current\x20revision')}),_0x11f538['delegate']('execute')['to'](_0x2882b7),_0x11f538['on']('execute',()=>{this['_showDialog']();}),_0x183a53['children']['add'](_0x11f538),_0x4a13b4['items']['add'](_0x183a53);const _0x580324=new _0x1dc259(_0x12e4b3,_0x2882b7),_0x258d97=new _0x130592(_0x12e4b3);return _0x258d97['set']({'label':g(_0x12e4b3,'Open\x20revision\x20history')}),_0x258d97['delegate']('execute')['to'](_0x2882b7),_0x258d97['on']('execute',()=>{_0x434023['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x580324['children']['add'](_0x258d97),_0x4a13b4['items']['add'](_0x580324),_0x2882b7['panelView']['children']['add'](_0x4a13b4),_0x2882b7;}['_showDialog'](){const _0x4b2ec7=this['editor'],_0x3f300c=_0x4b2ec7['locale'],_0xb7c31b=_0x4b2ec7['plugins']['get']('Dialog'),_0x2324ab=_0x4b2ec7['plugins']['get']('RevisionTracker');function _0x139e26(_0x4035df){_0x4b2ec7['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4035df['revisionName']?_0x4035df['revisionNameInputView']['errorText']=g(_0x3f300c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4b2ec7['plugins']['get'](u)['saveRevision']({'name':_0x4035df['revisionName']}),_0xb7c31b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x139e26(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xb7c31b['show']({'id':'revisionSave','title':g(_0x3f300c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4b2ec7['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xb7c31b['hide']()},{'label':g(_0x4b2ec7['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x53f359){_0x53f359['bind']('isEnabled')['to'](_0x2324ab,'isReady',_0x2324ab,'isEnabled',_0x4b2ec7,'isReadOnly',(_0x455129,_0x4d82e1,_0x4299d)=>_0x455129&&_0x4d82e1&&!_0x4299d);},'onExecute':()=>_0x139e26(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xad8ae2=this['editor'],_0x2fe598=_0xad8ae2['locale'];this['_saveRevisionFormView']=new hs(_0x2fe598,_0xad8ae2['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x443b24,_0x468e0e){super(_0x443b24),this['_model']=_0x468e0e,this['changeId']=_0x468e0e['id'];const _0x3ec16a=this['bindTemplate'],_0x2ec7e8=g(_0x443b24,_0x468e0e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x468e0e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x468e0e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3ec16a['to']('type',_0x3b3d92=>'ck-revision-change__'+_0x3b3d92)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2ec7e8}]},{'text':'\x20'+_0x468e0e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xdd73f1(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3a14ca){super(),this['id']=_0x3a14ca['id']||_0x5506ef(),this['author']=_0x3a14ca['author'],this['type']=_0x3a14ca['type'],this['data']=_0x3a14ca['data']||{},this['rootName']=_0x3a14ca['rootName'],this['set']('createdAt',_0x3a14ca['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xa260fc,_0x3c6ba3){this['newRevisionId']=_0xa260fc,this['oldRevisionId']=_0x3c6ba3,this['changes']=new _0x209800();}['_setChanges'](_0x4f6784){for(const _0xaea5e6 of _0x4f6784)this['changes']['add'](_0xaea5e6);}}class m extends _0x182a76{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1d8624,_0x5a230b,I,V];}constructor(_0x4e9d15){super(_0x4e9d15),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2d5a70,_0x157569,_0x456f74)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x12c7be=>{for(const _0x54f2b1 of this['editor']['editing']['view']['document']['roots'])_0x456f74?_0x12c7be['removeClass']('ck-editor__editable__overlay',_0x54f2b1):_0x12c7be['addClass']('ck-editor__editable__overlay',_0x54f2b1);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1a0af5=>null!==_0x1a0af5),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4b505,_0x421c52,_0xf17de8)=>_0x4b505&&_0xf17de8?_0x421c52['changes']['getIndex'](_0xf17de8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x557335,_0x19e224)=>_0x557335?_0x19e224['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5a230b);}['init'](){const _0x110e27=this['editor'],_0x2b08d1=new wt(_0x110e27,{'direction':'backward'}),_0x584117=new wt(_0x110e27,{'direction':'forward'});(_0x110e27['commands']['add']('showPreviousChange',_0x2b08d1),_0x110e27['commands']['add']('showNextChange',_0x584117),_0x110e27['commands']['add']('restoreRevision',new mt(_0x110e27)),this['on']('change:numberOfChanges',()=>{_0x2b08d1['refresh'](),_0x584117['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x110e27['enableReadOnlyMode']('revision-viewer'),_0x110e27['plugins']['has']('WidgetToolbarRepository'))&&_0x110e27['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3a0d6e){return await this['_utils']['loadRevisionData'](_0x3a0d6e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3a0d6e);}async['getRevisionRootsAttributes'](_0x3eb2aa){return await this['_utils']['loadRevisionData'](_0x3eb2aa,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3eb2aa);}async['compare'](_0x4d0d28,_0x2458cd,_0xbf2979=!0x1){if(!this['isEnabled'])return;const _0x449911=this['diff'],_0x11772e=this['repository'],_0x24a869='string'==typeof _0x4d0d28?_0x11772e['getRevision'](_0x4d0d28):_0x4d0d28,_0x2241d8='string'==typeof _0x2458cd?_0x11772e['getRevision'](_0x2458cd):_0x2458cd,_0xae31df=_0x24a869['id'],_0x5c9d56=_0x2241d8?_0x2241d8['id']:null;if(!_0xbf2979&&this['diff']&&this['diff']['newRevisionId']===_0xae31df&&this['diff']['oldRevisionId']===_0x5c9d56)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xae31df,_0x5c9d56);const _0x22b480=this['_getRevisionsRange'](_0x24a869,_0x2241d8,!0x0)['map'](_0x250c51=>this['_utils']['loadRevisionData'](_0x250c51,this['adapter']));return _0x22b480['push'](new Promise(_0x22f309=>{setTimeout(_0x22f309,0x14);})),Promise['all'](_0x22b480)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4fec4a=this['_getDiff'](_0xae31df,_0x5c9d56);for(const _0x364719 of _0x4fec4a['changes'])this['_changeIdToChange']['set'](_0x364719['id'],_0x364719);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xcd0bd=>{for(const _0x47ebd7 of this['editor']['model']['document']['getRootNames']())_0xcd0bd['detachRoot'](_0x47ebd7);for(const _0x18bec8 of Object['keys'](_0x4fec4a['model'])){const _0x37f50a=_0xcd0bd['addRoot'](_0x18bec8);for(const _0x5749f6 of Object['keys'](_0x4fec4a['attributes'][_0x18bec8]))_0xcd0bd['setAttribute'](_0x5749f6,_0x4fec4a['attributes'][_0x18bec8][_0x5749f6],_0x37f50a);_0xcd0bd['insert'](_0x4fec4a['model'][_0x18bec8],_0x37f50a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4fec4a['changes'])),this['isReady']=!0x0;})['catch'](_0x598f65=>{console['error'](_0x598f65),this['_cleanUp'](),_0x449911&&(this['diff']=_0x449911),this['isReady']=!0x0;});}['addRevisionData'](_0x438d3a,_0x48930e){const _0x161254=this['repository']['createRevision'](_0x438d3a);return _0x161254['on']('_update',(_0x15bb69,_0x300565,_0x56fac3)=>_0x48930e(_0x300565,_0x56fac3,_0x161254)),this['repository']['addRevision'](_0x161254),_0x161254;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x407ecb=>{for(const _0x211f5d of this['editor']['model']['document']['getRootNames']())_0x407ecb['detachRoot'](_0x211f5d);});}['_sortAndFilterDiffChanges'](_0x274eec){const _0x4d6493=[],_0x1a659c=new Map();for(const _0x1057ea of this['editor']['model']['document']['getRootNames']()){const _0x36c05e=this['editor']['editing']['view']['getDomRoot'](_0x1057ea);if(!_0x36c05e)continue;const _0xd2fee3=_0x36c05e['getClientRects']()['item'](0x0);_0xd2fee3&&(_0x4d6493['push'](_0x1057ea),_0x1a659c['set'](_0x1057ea,_0xd2fee3));}return _0x4d6493['sort']((_0x3f7846,_0x3d43a0)=>{const _0x3409d8=_0x1a659c['get'](_0x3f7846),_0x33f319=_0x1a659c['get'](_0x3d43a0);return _0x3409d8['y']-_0x33f319['y']||_0x3409d8['x']-_0x33f319['x'];}),(_0x274eec=_0x274eec['filter'](_0x2cf3e4=>_0x4d6493['includes'](_0x2cf3e4['rootName'])))['sort']((_0x2ef9d4,_0x51347b)=>_0x4d6493['indexOf'](_0x2ef9d4['rootName'])-_0x4d6493['indexOf'](_0x51347b['rootName'])),_0x274eec;}['_makeTape'](_0x292239){const _0x1ab8d7=Array['from'](_0x292239['markers'])['filter'](([_0x1b815a,_0x1b82bf])=>_0x1b815a['startsWith']('revision:')&&!_0x1b82bf['isCollapsed']),_0x2fa1f7=Array['from'](this['editor']['model']['createRangeIn'](_0x292239)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1ab8d7['length'])for(const _0x478d4d of _0x2fa1f7){const [_0x1f5c28,_0x4f81e3]=_0x1ab8d7[0x0],[,_0x2f3ec5,_0x88c23]=_0x1f5c28['split'](':');if(_0x4f81e3['end']['isEqual'](_0x478d4d['nextPosition'])&&_0x1ab8d7['shift'](),(_0x478d4d['previousPosition']['isEqual'](_0x4f81e3['start'])||_0x478d4d['previousPosition']['isAfter'](_0x4f81e3['start']))&&('insertion'==_0x2f3ec5?_0x478d4d['isAdded']={'userId':_0x88c23}:'deletion'==_0x2f3ec5&&(_0x478d4d['isRemoved']={'userId':_0x88c23})),0x0==_0x1ab8d7['length'])break;}return _0x2fa1f7;}['_refreshStartEndIndex'](_0xf2465d){const _0x13316a=new Map();for(let _0x40b56a=0x0;_0x40b56a<_0xf2465d['length'];_0x40b56a++)'text'===_0xf2465d[_0x40b56a]['type']?(_0xf2465d[_0x40b56a]['item']['startIndex']=_0x40b56a,_0xf2465d[_0x40b56a]['item']['endIndex']=_0x40b56a):('elementStart'===_0xf2465d[_0x40b56a]['type']?_0xf2465d[_0x40b56a]['item']['startIndex']=_0x40b56a:'elementEnd'===_0xf2465d[_0x40b56a]['type']&&(_0xf2465d[_0x40b56a]['item']['endIndex']=_0x40b56a),_0x13316a['set'](_0xf2465d[_0x40b56a]['id'],_0x40b56a));for(const _0x43056a of _0x13316a['values']())'elementStart'===_0xf2465d[_0x43056a]['type']?_0xf2465d[_0x43056a]['item']['endIndex']=_0x13316a['get'](_0xf2465d[_0x43056a]['pairId']):'elementEnd'===_0xf2465d[_0x43056a]['type']&&(_0xf2465d[_0x43056a]['item']['startIndex']=_0x13316a['get'](_0xf2465d[_0x43056a]['pairId']));}['_processTape'](_0x594c1a){for(let _0x3e0241=0x0;_0x3e0241<_0x594c1a['length'];_0x3e0241++){if('elementStart'===_0x594c1a[_0x3e0241]['type'])_0x594c1a[_0x3e0241]['item']['startIndex']=_0x3e0241;else{if('elementEnd'===_0x594c1a[_0x3e0241]['type']){_0x594c1a[_0x3e0241]['item']['endIndex']=_0x3e0241;const _0x2e157b=_0x594c1a[_0x3e0241]['item']['startIndex'];_0x594c1a[_0x2e157b]['pairId']=_0x594c1a[_0x3e0241]['id'],_0x594c1a[_0x3e0241]['pairId']=_0x594c1a[_0x2e157b]['id'];}else _0x594c1a[_0x3e0241]['item']['startIndex']=_0x3e0241,_0x594c1a[_0x3e0241]['item']['endIndex']=_0x3e0241,_0x594c1a[_0x3e0241]['pairId']=null;}_0x594c1a[_0x3e0241]['markersStart']||(_0x594c1a[_0x3e0241]['markersStart']=[],_0x594c1a[_0x3e0241]['markersEnd']=[]);}}['_markInsertions'](_0x1d3e33,_0x4a415a){const _0x539021=_0x1d3e33['filter'](_0x285faa=>!_0x285faa['isAdded']);for(let _0x4786e8=0x0;_0x4786e8<_0x4a415a['length'];_0x4786e8++)_0x4a415a[_0x4786e8]['isAdded']&&(_0x539021[_0x4786e8]['isAdded']=_0x4a415a[_0x4786e8]['isAdded']);}['_getDiff'](_0x4be202,_0x36db00=null){const _0x1c9fbd=this['repository']['getRevision'](_0x4be202),_0x8ae487=_0x36db00?this['repository']['getRevision'](_0x36db00):null,_0x21d668=this['_getRevisionsRange'](_0x1c9fbd,_0x8ae487),_0x263380=_0x21d668[_0x21d668['length']-0x1],_0x491c31=new Map(),_0x2a3d3={'model':{},'attributes':{},'changes':[]},_0x92df3=new Set(),_0x4b1c44=new Map();for(let _0x2aa30b=_0x21d668['length']-0x1;_0x2aa30b>=0x0;_0x2aa30b--){const _0x1e0aa9=_0x21d668[_0x2aa30b];for(const _0x513ee3 of Object['keys'](_0x1e0aa9['diffData']))if(_0x1e0aa9['diffData'][_0x513ee3]['attachChange']){const _0x3582db=_0x1e0aa9['diffData'][_0x513ee3]['attachChange'];_0x3582db['isAttached']?(_0x92df3['add'](_0x513ee3),_0x4b1c44['has'](_0x513ee3)&&_0x4b1c44['get'](_0x513ee3)['userId']==_0x3582db['userId']?_0x4b1c44['delete'](_0x513ee3):_0x4b1c44['set'](_0x513ee3,_0x3582db)):_0x4b1c44['has'](_0x513ee3)?(_0x92df3['delete'](_0x513ee3),_0x4b1c44['delete'](_0x513ee3)):(_0x92df3['add'](_0x513ee3),_0x4b1c44['set'](_0x513ee3,_0x3582db));}else _0x92df3['add'](_0x513ee3);}for(const _0x59cd05 of _0x92df3){const _0x467479=_0x4b1c44['has'](_0x59cd05)&&!_0x4b1c44['get'](_0x59cd05)['isAttached'];let _0x528931=_0x467479?_0x21d668['length']-0x1:0x0;const _0x1dc820=_0x467479?-0x1:0x1;for(;_0x21d668[_0x528931];){const _0x49d885=_0x21d668[_0x528931];if(_0x49d885['diffData'][_0x59cd05]){const _0x250b06=_0x467479?_0x49d885['diffData'][_0x59cd05]['attributesBefore']:_0x49d885['diffData'][_0x59cd05]['attributesAfter'];_0x2a3d3['attributes'][_0x59cd05]=_0x250b06?_0x142d8e(_0x250b06):{};break;}_0x528931+=_0x1dc820;}}for(const _0x4f9922 of _0x21d668){_0x4f9922['model']={};for(const _0x509235 of _0x4f9922['authors'])_0x491c31['set'](_0x509235['id'],_0x509235);for(const _0x5d084c of _0x92df3){const _0x58c5a1=_0x4f9922['diffData'][_0x5d084c]?_0x4f9922['diffData'][_0x5d084c]['insertions']:'[]',_0x27baeb=_0x4f9922['diffData'][_0x5d084c]?_0x4f9922['diffData'][_0x5d084c]['deletions']:'[]';_0x4f9922['model'][_0x5d084c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x58c5a1),'deletions':this['_utils']['_makeModelFromViewString'](_0x27baeb)};}}for(const _0x4683db of _0x92df3){let _0x574013=null,_0x3d999e=0x0;const _0x8f2ac0=new Map(Array['from'](_0x1c9fbd['model'][_0x4683db]['insertions']['markers'])['filter'](([_0x2d979c])=>!_0x2d979c['startsWith']('revision:')));let _0xf0bf5a=0x0;for(const _0x4599a0 of _0x21d668){const _0x33a6ce=this['_makeTape'](_0x4599a0['model'][_0x4683db]['insertions']);_0x4599a0==_0x1c9fbd?(_0x574013=_0x33a6ce,_0x3d999e=_0x574013['length'],_0x574013['forEach'](_0x162bdb=>{_0x162bdb['id']=_0xf0bf5a++;}),this['_processTape'](_0x574013)):this['_markInsertions'](_0x574013,_0x33a6ce);const _0x432140=_0x574013['filter'](_0x582f32=>!_0x582f32['isAdded'])['map'](_0x3489a6=>_0x3489a6['id']);let _0x324104=0x0;const _0x471d59=this['_makeTape'](_0x4599a0['model'][_0x4683db]['deletions']);_0x471d59['forEach'](_0xf79fe1=>{_0xf79fe1['isRemoved']?_0xf79fe1['id']=_0x3d999e++:_0xf79fe1['id']=_0x432140[_0x324104++];}),this['_processTape'](_0x471d59),this['_setDistance'](_0x574013,'isAdded'),this['_setDistance'](_0x471d59,'isRemoved'),_0x4599a0==_0x1c9fbd&&this['_markMarkers'](_0x574013,_0x8f2ac0),_0x574013=this['_joinTapes'](_0x574013,_0x471d59),this['_refreshStartEndIndex'](_0x574013),this['_setDistance'](_0x574013,'isRemoved');}_0x574013=_0x574013['filter'](_0x4ee62c=>!(_0x4ee62c['isAdded']&&_0x4ee62c['isRemoved']));const _0xa354b3=new Map(_0x263380['model'][_0x4683db]['deletions']['markers']),_0x5c753b=new Set(_0x8f2ac0['keys']());for(const _0x4a979f of _0xa354b3['keys']())_0x5c753b['delete'](_0x4a979f);this['_markSuggestions'](_0x574013,_0x5c753b),this['_fixObsoleteTags'](_0x574013),_0x574013=this['_removeMissingPairs'](_0x574013),_0x574013=this['_markMismatchedRemovedTags'](_0x574013),_0x574013=this['_removeUnsupportedChanges'](_0x574013);const {root:_0x5369b0,changes:_0x134227}=this['_makeModelFromTape'](_0x574013,_0x491c31,_0x4683db);_0x2a3d3['model'][_0x4683db]=_0x5369b0;const _0x1aa443=_0x4b1c44['get'](_0x4683db);if(_0x1aa443){const _0x12005c=_0x491c31['get'](_0x1aa443['userId']),_0x1bf78f=new r({'author':_0x12005c,'type':_0x1aa443['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4683db});_0x134227['unshift'](_0x1bf78f),_0x2a3d3['attributes'][_0x4683db]['revisionHistoryAttachChange']=_0x1bf78f['id'];}_0x2a3d3['changes']=_0x2a3d3['changes']['concat'](_0x134227);}return _0x2a3d3;}['_markMarkers'](_0x290463,_0x5dc51a){for(let _0x5ca68e=0x0;_0x5ca68e<_0x290463['length'];_0x5ca68e++)for(const [_0x585cf1,_0xccb878]of _0x5dc51a)!_0xccb878['isCollapsed']&&_0xccb878['start']['isEqual'](_0x290463[_0x5ca68e]['previousPosition'])&&_0x290463[_0x5ca68e]['markersStart']['push'](_0x585cf1),_0xccb878['end']['isEqual'](_0x290463[_0x5ca68e]['nextPosition'])&&_0x290463[_0x5ca68e]['markersEnd']['push'](_0x585cf1);}['_joinTapes'](_0x4b06cb,_0x586907){let _0x1f6663=[],_0x404a12=0x0,_0x34bb9c=0x0;for(;_0x404a12<_0x4b06cb['length']||_0x34bb9c<_0x586907['length'];){const _0x501d56=_0x4b06cb[_0x404a12]||{},_0x575adb=_0x586907[_0x34bb9c]||{};if(_0x501d56['id']==_0x575adb['id'])_0x404a12++,_0x34bb9c++,_0x1f6663['push'](_0x501d56);else{if(_0x575adb['isRemoved']&&_0x501d56['isAdded']){const {commonTape:_0x2f9676,iEnd:_0x46a76f,jEnd:_0x2b1393}=this['_threeWayMerge'](_0x4b06cb,_0x404a12,_0x586907,_0x34bb9c);_0x1f6663=_0x1f6663['concat'](_0x2f9676),_0x404a12=_0x46a76f,_0x34bb9c=_0x2b1393;}else _0x575adb['isRemoved']?(_0x34bb9c++,_0x1f6663['push'](_0x575adb)):(_0x404a12++,_0x1f6663['push'](_0x501d56));}}return _0x1f6663;}['_markSuggestions'](_0x438e51,_0x1f4ebe){const _0x1c0cf5=[];for(let _0x5a7625=0x0;_0x5a7625<_0x438e51['length'];_0x5a7625++){for(let _0x57d9f3=0x0;_0x57d9f3<_0x438e51[_0x5a7625]['markersStart']['length'];_0x57d9f3++){const _0x10538b=_0x438e51[_0x5a7625]['markersStart'][_0x57d9f3];if(!_0x1f4ebe['has'](_0x10538b))continue;const {group:_0x4e8664,type:_0x5c89a0,authorId:_0x6051aa}=_0x143aa8(_0x10538b);'revision-suggestion'!=_0x4e8664||'insertion'!=_0x5c89a0&&'deletion'!=_0x5c89a0||(_0x1c0cf5['unshift']({'type':_0x5c89a0,'name':_0x10538b,'userId':_0x6051aa}),_0x438e51[_0x5a7625]['markersStart']['splice'](_0x57d9f3,0x1),_0x57d9f3--);}_0x15baa8(_0x438e51[_0x5a7625]);for(let _0x5154d8=0x0;_0x5154d8<_0x438e51[_0x5a7625]['markersEnd']['length'];_0x5154d8++){const _0x563345=_0x438e51[_0x5a7625]['markersEnd'][_0x5154d8];if(!_0x1f4ebe['has'](_0x563345))continue;const {group:_0x1bdb40,type:_0x8bb290}=_0x143aa8(_0x563345);if('revision-suggestion'!=_0x1bdb40||'insertion'!=_0x8bb290&&'deletion'!=_0x8bb290)continue;_0x438e51[_0x5a7625]['markersEnd']['splice'](_0x5154d8,0x1),_0x5154d8--;const _0x5c2efd=_0x1c0cf5['findIndex'](_0x5d45a8=>_0x5d45a8['name']==_0x563345);_0x5c2efd>-0x1&&_0x1c0cf5['splice'](_0x5c2efd,0x1);}}function _0x143aa8(_0x47fc11){const _0x142e5d=_0x47fc11['split'](':');return{'group':_0x142e5d[0x0],'type':_0x142e5d[0x1],'subType':_0x142e5d['length']>=0x5?_0x142e5d[0x2]:null,'id':_0x142e5d['length']<0x5?_0x142e5d[0x2]:_0x142e5d[0x3],'authorId':_0x142e5d['length']<0x5?_0x142e5d[0x3]:_0x142e5d[0x4],'markerCount':0x6==_0x142e5d['length']?_0x142e5d[0x5]:null};}function _0x15baa8(_0xe08ed9){for(let _0x137fa4=0x0;_0x137fa4<_0x1c0cf5['length'];_0x137fa4++){if(_0xe08ed9['isAdded']&&'insertion'==_0x1c0cf5[_0x137fa4]['type'])return _0xe08ed9['isAddSuggestion']=_0x1c0cf5[_0x137fa4],void delete _0xe08ed9['isAdded'];if(!_0xe08ed9['isAdded']&&!_0xe08ed9['isRemoved']&&'deletion'==_0x1c0cf5[_0x137fa4]['type'])return void(_0xe08ed9['isRemoveSuggestion']=_0x1c0cf5[_0x137fa4]);}}}['_setDistance'](_0x2c5ed8,_0x37a28f){let _0x32990f=0x0,_0x96b06b=!0x1;const _0x16157d=new Map();for(const _0x411d3b of _0x2c5ed8)_0x411d3b[_0x37a28f]?_0x96b06b&&(_0x32990f++,_0x96b06b=!0x1):(_0x32990f++,_0x96b06b=!0x0),_0x16157d['set'](_0x411d3b['id'],_0x32990f);for(let _0x385e8d=0x0;_0x385e8d<_0x2c5ed8['length'];_0x385e8d++){if('isRemoved'==_0x37a28f&&_0x2c5ed8[_0x385e8d]['isAdded']||'isAdded'==_0x37a28f&&_0x2c5ed8[_0x385e8d]['isRemoved'])continue;if('text'==_0x2c5ed8[_0x385e8d]['type']){_0x2c5ed8[_0x385e8d]['distance']=0x0;continue;}const _0x41a5d5=_0x16157d['get'](_0x2c5ed8[_0x385e8d]['pairId']),_0x4924d6=_0x16157d['get'](_0x2c5ed8[_0x385e8d]['id']);_0x2c5ed8[_0x385e8d]['distance']=_0x41a5d5-_0x4924d6;}}['_getRevisionsRange'](_0x1186ed,_0x58a029,_0x174c02=!0x1){const _0x58b2f0=[];let _0x3977ef=this['repository']['getIndex'](_0x1186ed),_0x336c99=this['repository']['getIndex'](_0x58a029);for(-0x1==_0x336c99&&(_0x336c99=this['repository']['_revisions']['length'],_0x174c02=!0x1);_0x3977ef<_0x336c99;)_0x58b2f0['push'](this['repository']['getRevision'](_0x3977ef)),_0x3977ef++;return _0x174c02&&_0x58b2f0['push'](this['repository']['getRevision'](_0x3977ef)),_0x58b2f0;}['_threeWayMerge'](_0xc3c62e,_0x16c4cc,_0x1be469,_0x4d5e68){const _0x46bb5f=this['editor']['model']['schema'];let _0x196d9a=_0x16c4cc;for(;_0xc3c62e[_0x196d9a]&&_0xc3c62e[_0x196d9a]['isAdded'];)_0x196d9a++;let _0x2b1680=_0x4d5e68;for(;_0x1be469[_0x2b1680]&&_0x1be469[_0x2b1680]['isRemoved'];)_0x2b1680++;_0x2313a2(_0xc3c62e,_0x16c4cc,_0x196d9a),_0x2313a2(_0x1be469,_0x4d5e68,_0x2b1680);const _0x136850=_0x1be469['slice'](_0x4d5e68,_0x2b1680)['concat'](_0xc3c62e['slice'](_0x16c4cc,_0x196d9a));return _0x136850['sort']((_0x4eea13,_0x55e33e)=>_0x4eea13['side']!=_0x55e33e['side']?_0x4eea13['side']-_0x55e33e['side']:_0x4eea13['level']!=_0x55e33e['level']?_0x4eea13['level']-_0x55e33e['level']:_0x4eea13['distance']!=_0x55e33e['distance']?_0x55e33e['distance']-_0x4eea13['distance']:!!_0x4eea13['isAdded']!=!!_0x55e33e['isAdded']?-0x1==_0x4eea13['side']||0x0==_0x4eea13['side']?_0x4eea13['isAdded']?-0x1:0x1:_0x4eea13['isAdded']?0x1:-0x1:_0x4eea13['index']-_0x55e33e['index']),{'commonTape':_0x136850,'iEnd':_0x196d9a,'jEnd':_0x2b1680};function _0x2313a2(_0x391c16,_0x2202b2,_0x1e5b12){let _0x2b19f1=-0x1,_0x3e0ca2=Number['POSITIVE_INFINITY'],_0x3c889c=!0x0;for(let _0x26ae77=_0x2202b2;_0x26ae77<_0x1e5b12;_0x26ae77++)if(_0x46bb5f['isInline'](_0x391c16[_0x26ae77]['item'])||(_0x3c889c=!0x1),_0x391c16[_0x26ae77]['item']['startIndex']<_0x2202b2&&(_0x2b19f1=_0x26ae77),_0x391c16[_0x26ae77]['item']['endIndex']>=_0x1e5b12){_0x3e0ca2=_0x26ae77;break;}_0x3c889c&&(_0x2b19f1=_0x1e5b12-0x1);for(let _0x4bb953=_0x2202b2;_0x4bb953<_0x1e5b12;_0x4bb953++)_0x391c16[_0x4bb953]['side']=_0x4bb953<=_0x2b19f1?-0x1:_0x4bb953<_0x3e0ca2?0x0:0x1,_0x391c16[_0x4bb953]['index']=_0x4bb953;let _0x219583=0x0;for(let _0x231cac=_0x2202b2;_0x231cac<=_0x2b19f1;_0x231cac++)0x0==_0x391c16[_0x231cac]['distance']?_0x391c16[_0x231cac]['level']=_0x219583:(_0x219583++,_0x391c16[_0x231cac]['level']=_0x219583,_0x219583++);for(let _0x4a56a8=_0x2202b2;_0x4a56a8<_0x1e5b12;_0x4a56a8++)0x0==_0x391c16[_0x4a56a8]['side']&&(_0x391c16[_0x4a56a8]['level']=_0x219583);_0x219583=0x0;for(let _0xfa2628=_0x1e5b12-0x1;_0xfa2628>=_0x3e0ca2;_0xfa2628--)0x0==_0x391c16[_0xfa2628]['distance']?_0x391c16[_0xfa2628]['level']=_0x219583:(_0x219583--,_0x391c16[_0xfa2628]['level']=_0x219583,_0x219583--);}}['_fixObsoleteTags'](_0x3b64cf){const _0xa16bf6=new Map(),_0x1fb6d3=this['editor']['model']['schema'];for(let _0x22b0a5=0x1;_0x22b0a5<_0x3b64cf['length'];_0x22b0a5++){let _0xeeb6e3,_0xa0def,_0xffb457;const _0x302328=_0x3b64cf[_0x22b0a5],_0x3d3790=_0x3b64cf[_0x22b0a5-0x1];if('text'==_0x302328['type'])continue;if(_0x302328['type']!=_0x3d3790['type'])continue;if(!_0x1fb6d3['isBlock'](_0x3d3790['item'])||_0x1fb6d3['isLimit'](_0x3d3790['item']))continue;if(!_0x1fb6d3['isBlock'](_0x302328['item'])||_0x1fb6d3['isLimit'](_0x302328['item']))continue;if((_0x3b64cf[_0x22b0a5]['isAdded']||_0x3b64cf[_0x22b0a5]['isAddSuggestion'])&&_0x3b64cf[_0x22b0a5-0x1]['isRemoved'])_0xeeb6e3=_0x3b64cf[_0x22b0a5],_0xa0def=_0x3b64cf[_0x22b0a5-0x1],_0xffb457=_0x22b0a5-0x1;else{if(!_0x3b64cf[_0x22b0a5]['isRemoved']||!_0x3b64cf[_0x22b0a5-0x1]['isAdded']&&!_0x3b64cf[_0x22b0a5-0x1]['isAddSuggestion'])continue;_0xeeb6e3=_0x3b64cf[_0x22b0a5-0x1],_0xa0def=_0x3b64cf[_0x22b0a5],_0xffb457=_0x22b0a5;}const _0x940abd=_0xeeb6e3['level']==_0xa0def['level'],_0x4e6103=Math['abs'](_0xeeb6e3['level'])<Math['abs'](_0xa0def['level'])&&0x0==_0xa0def['distance'];(_0x940abd||_0x4e6103)&&(_0xa16bf6['set'](_0xa0def['id'],_0xeeb6e3['id']),_0x3b64cf['splice'](_0xffb457,0x1),_0x22b0a5--,_0xeeb6e3['isAdded']=!0x1);}for(let _0x60636f=0x0;_0x60636f<_0x3b64cf['length'];_0x60636f++)_0xa16bf6['has'](_0x3b64cf[_0x60636f]['pairId'])&&(_0x3b64cf[_0x60636f]['pairId']=_0xa16bf6['get'](_0x3b64cf[_0x60636f]['pairId']));}['_removeMissingPairs'](_0x59aa01){const _0xd7d5c4=new Set(_0x59aa01['map'](_0x11fdc8=>_0x11fdc8['id']));for(let _0x1b43e7=0x0;_0x1b43e7<_0x59aa01['length'];_0x1b43e7++)_0xd7d5c4['has'](_0x59aa01[_0x1b43e7]['pairId'])||0x0==_0x59aa01[_0x1b43e7]['distance']||(_0x59aa01[_0x1b43e7]['isIncorrect']=!0x0);return _0x59aa01['filter'](_0x278df1=>!_0x278df1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x50f236){const _0x435ef5=new Set();for(let _0x194bd2=0x0;_0x194bd2<_0x50f236['length'];_0x194bd2++){if(_0x435ef5['has'](_0x50f236[_0x194bd2]['id'])&&_0x50f236[_0x194bd2]['isRemoved']&&(_0x50f236[_0x194bd2]['isIncorrect']=!0x0),_0x50f236[_0x194bd2]['isIncorrect'])continue;if(0x0==_0x50f236[_0x194bd2]['distance'])continue;if('elementStart'!=_0x50f236[_0x194bd2]['type'])continue;if(null==_0x50f236[_0x194bd2]['pairId'])continue;let _0x23558d=_0x194bd2+0x1,_0x5b6645=0x0;for(;_0x50f236[_0x23558d]['id']!=_0x50f236[_0x194bd2]['pairId'];)'elementStart'==_0x50f236[_0x23558d]['type']?_0x5b6645++:'elementEnd'==_0x50f236[_0x23558d]['type']&&_0x5b6645--,_0x23558d++;if(0x0!=_0x5b6645){if(_0x50f236[_0x194bd2]['isRemoved'])_0x50f236[_0x194bd2]['isIncorrect']=!0x0;else{for(;_0x23558d!=_0x194bd2;)_0x50f236[_0x23558d]['isRemoved']&&0x0!=_0x50f236[_0x23558d]['distance']&&(_0x50f236[_0x23558d]['isIncorrect']=!0x0,_0x435ef5['add'](_0x50f236[_0x23558d]['pairId'])),_0x23558d--;}}}return _0x50f236['filter'](_0x17e931=>!_0x17e931['isIncorrect']);}['_removeUnsupportedChanges'](_0x33b922){const _0x216388=this['editor']['model']['schema'];for(let _0x4cc660=0x0;_0x4cc660<_0x33b922['length'];_0x4cc660++){if(!(_0x33b922[_0x4cc660]['isAdded']||_0x33b922[_0x4cc660]['isAddSuggestion']||_0x33b922[_0x4cc660]['isRemoved']||_0x33b922[_0x4cc660]['isRemoveSuggestion']))continue;if(0x0==_0x33b922[_0x4cc660]['distance'])continue;const _0x917249=_0x33b922[_0x4cc660]['item'];_0x216388['isBlock'](_0x917249)||_0x216388['isLimit'](_0x917249)||(_0x33b922[_0x4cc660]['isAdded']&&delete _0x33b922[_0x4cc660]['isAdded'],_0x33b922[_0x4cc660]['isAddSuggestion']&&delete _0x33b922[_0x4cc660]['isAddSuggestion'],_0x33b922[_0x4cc660]['isRemoveSuggestion']&&delete _0x33b922[_0x4cc660]['isRemoveSuggestion'],_0x33b922[_0x4cc660]['isRemoved']&&(_0x33b922[_0x4cc660]['isIncorrect']=!0x0));}return _0x33b922['filter'](_0x2ed88b=>!_0x2ed88b['isIncorrect']);}['_makeModelFromTape'](_0x227535,_0xe11785,_0x1d5f02){const _0x34c856=new vt(),_0x9c6f01=[],_0x13e25d=new Map(),_0x54c240=this['editor']['model'],_0x1dfd53=_0x54c240['schema'],_0x2ac223=[_0x34c856],_0x35c7b0={},_0x39ced0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2f22fd=null;const _0x4384f7=[0x0];for(let _0x20a3ce=0x0;_0x20a3ce<_0x227535['length'];_0x20a3ce++)if('elementStart'===_0x227535[_0x20a3ce]['type']){_0x227535[_0x20a3ce]['previousPosition']=_0x54c240['createPositionFromPath'](_0x34c856,_0x4384f7);const _0x399e53=new ut(_0x227535[_0x20a3ce]['item']['name'],_0x227535[_0x20a3ce]['item']['getAttributes']());_0x2ac223[0x0]['_appendChild'](_0x399e53),_0x4384f7['push'](0x0),_0x2ac223['unshift'](_0x399e53),_0x227535[_0x20a3ce]['nextPosition']=_0x54c240['createPositionFromPath'](_0x34c856,_0x4384f7);}else'elementEnd'===_0x227535[_0x20a3ce]['type']?(_0x2ac223['shift'](),_0x227535[_0x20a3ce]['previousPosition']=_0x54c240['createPositionFromPath'](_0x34c856,_0x4384f7),_0x4384f7['pop'](),_0x4384f7[_0x4384f7['length']-0x1]++,_0x227535[_0x20a3ce]['nextPosition']=_0x54c240['createPositionFromPath'](_0x34c856,_0x4384f7)):(_0x227535[_0x20a3ce]['previousPosition']=_0x54c240['createPositionFromPath'](_0x34c856,_0x4384f7),_0x2f22fd?_0x2f22fd['_data']+=_0x227535[_0x20a3ce]['item']['data']:_0x2f22fd=new gt(_0x227535[_0x20a3ce]['item']['data'],_0x227535[_0x20a3ce]['item']['getAttributes']()),_0x227535[_0x20a3ce+0x1]&&'text'===_0x227535[_0x20a3ce+0x1]['type']&&_0x404dac(_0x2f22fd,_0x227535[_0x20a3ce+0x1]['item'])||(_0x2ac223[0x0]['_appendChild'](_0x2f22fd),_0x2f22fd=null),_0x4384f7[_0x4384f7['length']-0x1]+=_0x227535[_0x20a3ce]['item']['offsetSize'],_0x227535[_0x20a3ce]['nextPosition']=_0x54c240['createPositionFromPath'](_0x34c856,_0x4384f7));for(let _0x5449de=0x0;_0x5449de<_0x227535['length'];_0x5449de++){const _0x58b64e=_0x227535[_0x5449de]['previousPosition'],_0x5c693f=_0x227535[_0x5449de]['nextPosition'];for(const _0x32513a of _0x227535[_0x5449de]['markersStart'])_0x13e25d['set'](_0x32513a,{'start':_0x58b64e,'end':null});_0x182727('isRemoveSuggestion',_0x5449de,_0x58b64e,_0x5c693f),_0x182727('isAddSuggestion',_0x5449de,_0x58b64e,_0x5c693f),_0x182727('isRemoved',_0x5449de,_0x58b64e,_0x5c693f),_0x182727('isAdded',_0x5449de,_0x58b64e,_0x5c693f);for(const _0x3215aa of _0x227535[_0x5449de]['markersEnd']){const _0x535fd1=_0x13e25d['get'](_0x3215aa);_0x535fd1?_0x535fd1['end']=_0x5c693f:_0x13e25d['set'](_0x3215aa,{'start':_0x5c693f,'end':_0x5c693f});}}for(const [_0x51f7bf,_0xdfb478]of _0x13e25d){const _0x153254=this['editor']['model']['createRange'](_0xdfb478['start'],_0xdfb478['end']);_0x34c856['markers']['set'](_0x51f7bf,_0x153254);}return _0x9c6f01['sort']((_0x5d9c19,_0x323a6b)=>{const _0x382ed7=_0x34c856['markers']['get']('revision:'+_0x5d9c19['id']),_0x1f14ff=_0x34c856['markers']['get']('revision:'+_0x323a6b['id']);return _0x382ed7['start']['isBefore'](_0x1f14ff['start'])?-0x1:_0x382ed7['start']['isAfter'](_0x1f14ff['start'])?0x1:_0x382ed7['end']['isBefore'](_0x1f14ff['end'])?-0x1:_0x382ed7['end']['isAfter'](_0x1f14ff['end'])?0x1:'add'===_0x5d9c19['type']?-0x1:0x1;}),{'root':_0x34c856,'changes':_0x9c6f01};function _0x182727(_0x44515a,_0x229a25,_0x417b5e,_0x5812f7){const _0x231cf9=!!_0x227535[_0x229a25][_0x44515a],_0x52111b=_0x231cf9?_0x227535[_0x229a25][_0x44515a]['userId']:null,_0x21529f=_0x229a25===_0x227535['length']-0x1,_0x14f07f=_0x39ced0[_0x44515a][0x0],_0x55a667=_0x1dfd53['isObject'](_0x227535[_0x229a25]['item']);!_0x35c7b0[_0x44515a]&&_0x231cf9?_0x35c7b0[_0x44515a]={'start':_0x417b5e,'tapeItem':_0x227535[_0x229a25],'userId':_0x52111b,'type':_0x44515a}:_0x35c7b0[_0x44515a]&&!_0x231cf9?(_0x35c7b0[_0x44515a]['end']=_0x417b5e,_0x2627c3(_0x35c7b0[_0x44515a]),_0x35c7b0[_0x44515a]=null):_0x35c7b0[_0x44515a]&&_0x231cf9&&_0x35c7b0[_0x44515a]['userId']!==_0x52111b&&(_0x35c7b0[_0x44515a]['end']=_0x417b5e,_0x14f07f&&_0x14f07f['userId']===_0x35c7b0[_0x44515a]['userId']||_0x2627c3(_0x35c7b0[_0x44515a]),_0x35c7b0[_0x44515a]={'start':_0x417b5e,'tapeItem':_0x227535[_0x229a25],'userId':_0x52111b,'type':_0x44515a}),_0x35c7b0[_0x44515a]&&_0x55a667&&('elementStart'!==_0x227535[_0x229a25]['type']||_0x14f07f&&_0x14f07f['userId']===_0x52111b||_0x39ced0[_0x44515a]['unshift']({'userId':_0x52111b,'object':_0x227535[_0x229a25]['item'],'change':_0x35c7b0[_0x44515a]}),'elementEnd'===_0x227535[_0x229a25]['type']&&_0x14f07f&&_0x14f07f['object']===_0x227535[_0x229a25]['item']&&(_0x39ced0[_0x44515a]['shift'](),_0x35c7b0[_0x44515a]=_0x14f07f['change'])),_0x35c7b0[_0x44515a]&&_0x21529f&&(_0x35c7b0[_0x44515a]['end']=_0x5812f7,_0x2627c3(_0x35c7b0[_0x44515a]),_0x35c7b0[_0x44515a]=null);}function _0x2627c3({start:_0x2b49a9,end:_0x21c4b5,tapeItem:_0x1a5f19,userId:_0x131ef2,type:_0x5b8202}){const _0xbbbf70=_0x1a5f19['item'],_0x513b28=_0x54c240['schema']['isBlock'](_0xbbbf70)&&!_0x54c240['schema']['isLimit'](_0xbbbf70),_0x29f4ae=_0x2b49a9['nodeAfter']==_0x21c4b5['parent']&&_0x21c4b5['isAtStart'];if(_0x513b28&&_0x29f4ae)return;const _0x1b1117=_0x54c240['createRange'](_0x2b49a9,_0x21c4b5),_0x55c054=_0xe11785['get'](_0x131ef2),_0x41735c=new r({'author':_0x55c054,'type':'isAdded'==_0x5b8202||'isAddSuggestion'==_0x5b8202?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5b8202||'isRemoveSuggestion'==_0x5b8202},'createdAt':new Date(),'rootName':_0x1d5f02});_0x9c6f01['push'](_0x41735c),_0x34c856['markers']['set']('revision:'+_0x41735c['id'],_0x1b1117);}function _0x404dac(_0x493554,_0x3bdce2){const _0x26ab6f=_0x493554['getAttributes'](),_0x6043af=_0x3bdce2['getAttributes']();for(const _0x5034dd of _0x26ab6f){if(_0x5034dd[0x1]!==_0x3bdce2['getAttribute'](_0x5034dd[0x0]))return!0x1;_0x6043af['next']();}return _0x6043af['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x331c77=>{const _0x381891=_0x331c77['markerName']['split'](':')[0x1],_0xfb3679=this['_getChangeFromId'](_0x381891);if(!_0xfb3679)return null;const _0x29be28='add'==_0xfb3679['type']?'insertion':'deletion',_0x4cfc8f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x29be28];return _0xfb3679['data']['isSuggestion']&&_0x4cfc8f['push']('ck-suggestion-marker-'+_0x29be28+'-new'),this['activeChange']==_0xfb3679&&_0x4cfc8f['push']('ck-suggestion-marker--active'),{'classes':_0x4cfc8f,'attributes':{'data-change-id':_0x381891}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3b79d4=>{_0x3b79d4['on']('element:pre',(_0x5d798e,_0x423e07,_0xb956a3)=>{const _0x3f63c9=_0x423e07['viewItem']['getChild'](0x0);if(!_0x3f63c9||!_0x3f63c9['is']('element','code'))return;if(!_0xb956a3['consumable']['consume'](_0x3f63c9,{'attributes':['vid_start','vid_end']}))return;const _0x3edb4a=_0x423e07['modelRange']['start']['nodeAfter'];_0xb956a3['writer']['setAttribute']('vid_start',_0x3f63c9['getAttribute']('vid_start'),_0x3edb4a),_0xb956a3['writer']['setAttribute']('vid_end',_0x3f63c9['getAttribute']('vid_end'),_0x3edb4a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2b28ff=>{_0x2b28ff['on']('element',(_0x39185f,_0x2bdad8,_0x2fd2ce)=>{if(!_0x2fd2ce['consumable']['consume'](_0x2bdad8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2bdad8['modelRange']['isCollapsed'])return;const _0x4819ca=_0x2bdad8['modelRange']['start']['nodeAfter'];_0x4819ca['hasAttribute']('vid_start')||_0x4819ca['hasAttribute']('vid')||(_0x2fd2ce['writer']['setAttribute']('vid_start',_0x2bdad8['viewItem']['getAttribute']('vid_start'),_0x4819ca),_0x2fd2ce['writer']['setAttribute']('vid_end',_0x2bdad8['viewItem']['getAttribute']('vid_end'),_0x4819ca));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x51ea66=>_0x51ea66['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x153cbc,[,_0x57e1c3])=>{['vid_start','vid_end','vid']['includes'](_0x57e1c3)&&(_0x153cbc['return']=!0x0,_0x153cbc['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x96fddf=>{_0x96fddf['on']('attribute:vid',(_0x5da8d5,_0x33ad24,_0x3ac16e)=>{if('\x20'!=_0x33ad24['item']['data']||_0x33ad24['item']['parent']['maxOffset']>0x1)return;if(!_0x3ac16e['consumable']['consume'](_0x33ad24['item'],_0x5da8d5['name']))return;const _0x4ad574=_0x3ac16e['writer'],_0xb85c0a=_0x3ac16e['mapper']['toViewRange'](_0x33ad24['range']);_0x4ad574['wrap'](_0xb85c0a,_0x4ad574['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x28997c){const _0x59bb59=_0x28997c['plugins']['get']('RevisionViewer');return(_0x159710,_0xb5934a,_0x353681)=>{const _0x3a2ba7=_0xb5934a['markerName']['split'](':')[0x1],_0x355909=_0x59bb59['_getChangeFromId'](_0x3a2ba7);if(!_0x355909)return null;const _0x3cf3a5='add'==_0x355909['type']?'split':'merge';if(!_0x353681['consumable']['test'](_0xb5934a['markerRange'],_0x159710['name']))return;const _0x38ac19=_0xb5934a['markerRange']['getWalker'](),_0x55df71=_0xb5934a['markerRange']['start'],_0x33ffb8=_0x28997c['model']['schema'];let _0x485b16=null,_0x2ac045=null,_0xccbb9e=!0x1,_0x1caa0e=!0x1;for(const _0x291d5a of _0x38ac19){const _0xa2a0cb=_0x291d5a['item'];_0xccbb9e=_0xccbb9e||_0x33ffb8['isContent'](_0xa2a0cb);const _0xab85d1=_0x353681['mapper']['toViewElement'](_0xa2a0cb);if(_0xab85d1&&_0xab85d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x291d5a['type']&&(_0x33ffb8['isBlock'](_0xa2a0cb)&&!_0x33ffb8['isLimit'](_0xa2a0cb)&&(_0xa2a0cb['nextSibling']||_0x55df71['isAtEnd']?_0x485b16&&_0x485b16['parent']==_0xa2a0cb||(_0x485b16=_0xa2a0cb,_0x567773(_0x291d5a['previousPosition']),_0x1caa0e=!0x0):_0x2ac045=_0x2ac045||_0x291d5a['previousPosition']));}function _0x567773(_0x1b4bf8){const _0x5b6732=_0x353681['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3cf3a5}),_0x8862f7=_0x353681['mapper']['toViewPosition'](_0x1b4bf8);_0x355909['data']['isSuggestion']&&_0x353681['writer']['addClass']('ck-suggestion-marker-'+_0x3cf3a5+'-new',_0x5b6732),_0x59bb59['activeChange']==_0x355909&&_0x353681['writer']['addClass']('ck-suggestion-marker--active',_0x5b6732),_0x353681['writer']['insert'](_0x8862f7,_0x5b6732),_0x353681['mapper']['bindElementToMarker'](_0x5b6732,_0xb5934a['markerName']);}_0xccbb9e||_0x1caa0e||!_0x2ac045||_0x567773(_0x2ac045);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5a3dcd,_0x47cd9a,_0x28bd43)=>{const _0x28052b=_0x28bd43['mapper']['markerNameToElements'](_0x47cd9a['markerName']);if(_0x28052b){for(const _0xb13a6a of _0x28052b)(_0xb13a6a['hasClass']('ck-suggestion-marker-split')||_0xb13a6a['hasClass']('ck-suggestion-marker-merge'))&&(_0x28bd43['mapper']['unbindElementFromMarkerName'](_0xb13a6a,_0x47cd9a['markerName']),_0x28bd43['writer']['remove'](_0xb13a6a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3408fd,_0x96d12f,_0x50406e)=>{const _0x37405b=_0x96d12f['markerName']['split'](':')[0x1],_0xae0754=this['_getChangeFromId'](_0x37405b);if(!_0xae0754)return null;const _0x3533d7='add'==_0xae0754['type']?'split':'merge';if(_0x50406e['consumable']['test'](_0x96d12f['markerRange'],_0x3408fd['name']))for(const _0x127395 of _0x96d12f['markerRange']['getItems']()){if(!_0x127395['is']('element','softBreak'))continue;const _0x38778c=_0x50406e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3533d7}),_0x5b208f=_0x50406e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x127395));_0xae0754['data']['isSuggestion']&&_0x50406e['writer']['addClass']('ck-suggestion-marker-'+_0x3533d7+'-new',_0x38778c),this['activeChange']==_0xae0754&&_0x50406e['writer']['addClass']('ck-suggestion-marker--active',_0x38778c),_0x50406e['writer']['insert'](_0x5b208f,_0x38778c),_0x50406e['mapper']['bindElementToMarker'](_0x38778c,_0x96d12f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x36e5cd=>{for(const _0x51ab66 of this['editor']['model']['document']['getRootNames']()){const _0x591a01=this['editor']['model']['document']['getRoot'](_0x51ab66),_0x4cc36e=this['editor']['editing']['view']['document']['getRoot'](_0x51ab66);if(_0x4cc36e){const _0x298f05=_0x591a01['getAttribute']('revisionHistoryAttachChange');if(_0x36e5cd['removeAttribute']('data-change-id',_0x4cc36e),_0x36e5cd['removeClass']('ck-revision-history-root-add',_0x4cc36e),_0x36e5cd['removeClass']('ck-revision-history-root-remove',_0x4cc36e),_0x36e5cd['removeClass']('ck-revision-history-root--active',_0x4cc36e),_0x298f05){const _0x4aa794=this['_getChangeFromId'](_0x298f05);if(!_0x4aa794)return null;_0x36e5cd['setAttribute']('data-change-id',_0x298f05,_0x4cc36e),_0x36e5cd['addClass']('ck-revision-history-root-'+_0x4aa794['type'],_0x4cc36e),this['activeChange']==_0x4aa794&&_0x36e5cd['addClass']('ck-revision-history-root--active',_0x4cc36e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x33e1a6=>'revision-comment:'+_0x33e1a6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x55faf9=>'revision-suggestion:'+_0x55faf9,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x475a44=>({'name':'suggestion:'+_0x475a44,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x32db55=>{const _0x538975=_0x32db55['markerName']['split'](':')[0x1];return'insertion'!=_0x538975&&'deletion'!=_0x538975?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x538975]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x332daf,_0x3cd0d6,_0x3be6d5)=>{const _0x509fc0=_0x3be6d5['mapper']['markerNameToElements'](_0x3cd0d6['markerName']);if(_0x509fc0){for(const _0x55dc2b of _0x509fc0)_0x55dc2b['is']('uiElement')&&(_0x3be6d5['mapper']['unbindElementFromMarkerName'](_0x55dc2b,_0x3cd0d6['markerName']),_0x3be6d5['writer']['remove'](_0x55dc2b));}},{'priority':'high'});}['_getChangeFromId'](_0x3f6b90){return this['_changeIdToChange']['get'](_0x3f6b90);}['_getViewForChange'](_0x5bb19f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5bb19f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4018fa,_0x1d0def,_0x5a80c7,_0x5caca7)=>{_0x5caca7&&this['_balloon']['remove'](_0x5caca7),_0x5a80c7&&(this['_balloon']['add']({'view':_0x5a80c7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x23bf30=this['editor']['editing'],_0x4af97d=this['_getChangeFromId'](_0x5a80c7['changeId']);let _0x1cc0b3;if(_0x4af97d['data']['isOnRoot']){const _0x1c2114=_0x23bf30['view']['getDomRoot'](_0x4af97d['rootName']);_0x1cc0b3=Array['from'](_0x1c2114['getClientRects']());}else{const _0x263c38=this['editor']['model']['markers']['get']('revision:'+_0x5a80c7['changeId']);_0x1cc0b3=Array['from'](_0x23bf30['mapper']['markerNameToElements'](_0x263c38['name']))['map'](_0x290da8=>_0x23bf30['view']['domConverter']['mapViewToDom'](_0x290da8))['map'](_0x2d6dc6=>Array['from'](_0x2d6dc6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1cc0b3[0x0];return _0x1cc0b3['find'](_0x1360a6=>_0x1360a6['top']-0x3<=this['_activeViewTarget']['y']&&_0x1360a6['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1360a6['left']-0x3<=this['_activeViewTarget']['x']&&_0x1360a6['right']+0x3>=this['_activeViewTarget']['x'])||_0x1cc0b3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x238834,_0x229743,_0x107393,_0x2aafd0)=>{this['activeView']=_0x107393?this['_getViewForChange'](_0x107393):null,this['editor']['model']['change'](()=>{const _0x553c40=this['editor']['editing'];_0x2aafd0&&(_0x2aafd0['data']['isOnRoot']?_0x553c40['view']['change'](_0x1365f0=>{_0x1365f0['removeClass']('ck-revision-history-root--active',_0x553c40['view']['document']['getRoot'](_0x2aafd0['rootName']));}):_0x553c40['reconvertMarker']('revision:'+_0x2aafd0['id'])),_0x107393&&(_0x107393['data']['isOnRoot']?_0x553c40['view']['change'](_0x4e01bd=>{_0x4e01bd['addClass']('ck-revision-history-root--active',_0x553c40['view']['document']['getRoot'](_0x107393['rootName']));}):_0x553c40['reconvertMarker']('revision:'+_0x107393['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5c276b,_0x77617e)=>{if(this['activeChange'])return;const _0x3dcf30=this['_findChangeIdFromDomTarget'](_0x77617e['target']),_0x5362d0=this['_changeIdToChange']['get'](_0x3dcf30);_0x5362d0?(this['_activeViewTarget']={'x':_0x77617e['domEvent']['x'],'y':_0x77617e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5362d0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x8aecd2,_0x78c965)=>{const _0x3892cd=this['_findChangeIdFromDomTarget'](_0x78c965['target']),_0xd33809=this['_changeIdToChange']['get'](_0x3892cd);_0xd33809?(this['_activeViewTarget']={'x':_0x78c965['domEvent']['x'],'y':_0x78c965['domEvent']['y']},_0xd33809===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xd33809):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x38a78e){do{const _0x4aefba=_0x38a78e['getAttribute']('data-change-id');if(_0x4aefba)return _0x4aefba;_0x38a78e=_0x38a78e['parent'];}while(_0x38a78e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x9729e3=>{for(const _0x56c7d1 of this['editor']['model']['markers'])_0x9729e3['removeMarker'](_0x56c7d1);});}}function X(_0x2e5b23,_0x2e89ac){return(_0x52e134,_0x29a702,_0x201a40)=>{if(!_0x201a40['consumable']['test'](_0x29a702['markerRange'],_0x52e134['name']))return;const _0xf02624=_0x29a702['markerRange']['getWalker'](),_0x27bc06=_0x29a702['markerRange']['start'],_0x3d7844=_0x2e5b23['model']['schema'];let _0x2dbf82=null,_0xd7e8bd=null,_0x1fdf6d=!0x1,_0x39ca24=!0x1;for(const _0x3a1545 of _0xf02624){const _0x3c88fc=_0x3a1545['item'];_0x1fdf6d=_0x1fdf6d||_0x3d7844['isContent'](_0x3c88fc);const _0x568c8f=_0x201a40['mapper']['toViewElement'](_0x3c88fc);if(_0x568c8f&&_0x568c8f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a1545['type']&&(_0x3d7844['isBlock'](_0x3c88fc)&&!_0x3d7844['isLimit'](_0x3c88fc)&&(_0x3c88fc['nextSibling']||_0x27bc06['isAtEnd']?_0x2dbf82&&_0x2dbf82['parent']==_0x3c88fc||(_0x2dbf82=_0x3c88fc,_0x798836(_0x3a1545['previousPosition']),_0x39ca24=!0x0):_0xd7e8bd=_0xd7e8bd||_0x3a1545['previousPosition']));}function _0x798836(_0x46e002){const _0x2a2804=_0x201a40['mapper']['toViewPosition'](_0x46e002),_0x155f39=_0x201a40['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2e89ac});_0x201a40['writer']['insert'](_0x2a2804,_0x155f39),_0x201a40['mapper']['bindElementToMarker'](_0x155f39,_0x29a702['markerName']);}_0x1fdf6d||_0x39ca24||!_0xd7e8bd||_0x798836(_0xd7e8bd);};}class mt extends _0x1077a9{constructor(_0x9ff442){super(_0x9ff442);const _0x374415=_0x9ff442['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x374415,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x374415,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xe3061b=this['editor'],_0x1eb7aa=_0xe3061b['plugins']['get'](m),_0x3c6f18=_0x1eb7aa['isReady']?_0x1eb7aa['diff']['newRevisionId']:null;_0xe3061b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3c6f18);}['refresh'](){const {isReady:_0xd342b7,isEnabled:_0x511fcc,repository:_0x10c5c9,diff:_0xac13db}=this['editor']['plugins']['get'](m),_0x54d1ea=_0xac13db&&_0x10c5c9['getLaterVisibleRevision'](_0xac13db['newRevisionId']);this['isEnabled']=_0xd342b7&&_0x511fcc&&Boolean(_0x54d1ea);}}class wt extends _0x1077a9{['_step'];constructor(_0x105df2,{direction:_0x24c9a3}){super(_0x105df2);const _0x25c46b=_0x105df2['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x24c9a3?0x1:-0x1,this['listenTo'](_0x25c46b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25c46b,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x25c46b,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x44a492=this['editor'],_0x462410=_0x44a492['plugins']['get'](m),{isNavigationMode:_0x197388,currentChangeNumber:_0x297036}=_0x462410;let _0x1f0f32;if(_0x462410['activeChange']=_0x197388?_0x462410['diff']['changes']['get'](_0x297036+this['_step']):_0x462410['diff']['changes']['first'],_0x462410['activeChange']['data']['isOnRoot'])_0x1f0f32=_0x44a492['editing']['view']['getDomRoot'](_0x462410['activeChange']['rootName']);else{const _0x4ae43e=_0x44a492['model']['markers']['get']('revision:'+_0x462410['activeChange']['id']);_0x1f0f32=_0x30e2ee(_0x44a492['editing'],_0x4ae43e);}_0x339ba7({'target':_0x1f0f32,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2c987b,currentChangeNumber:_0x3260cb,numberOfChanges:_0x52b8a0,isReady:_0x30082f,isEnabled:_0x111f2c}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x111f2c&&_0x30082f&&_0x52b8a0)&&(!_0x2c987b||(0x1===this['_step']?_0x3260cb<_0x52b8a0-0x1:_0x3260cb>0x0));}}class _i extends ts{constructor(_0x3818e7){super(_0x3818e7);const _0x28e6cb=this['bindTemplate'],_0x56b480=new te(_0x3818e7),_0x2e6ddd=new te(_0x3818e7);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',(_0x1aeb55,_0x4294c)=>_0x1aeb55&&_0x4294c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4540ad,_0x1876d2,_0x5573d7,_0x4dc002)=>{if(!_0x4540ad)return g(_0x3818e7,'Loading...');if(!_0x5573d7)return g(_0x3818e7,'No\x20changes');const _0x52926e=g(_0x3818e7,'NUMBER_OF_CHANGES',_0x5573d7);return _0x4dc002?g(_0x3818e7,'X_OF_Y_CHANGES',[_0x1876d2+0x1,_0x5573d7]):_0x52926e;}),_0x56b480['set']({'label':g(_0x3818e7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x536ede}),_0x2e6ddd['set']({'label':g(_0x3818e7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x59eb7b}),_0x56b480['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2e6ddd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x56b480['on']('execute',()=>this['fire']('execute','backward')),_0x2e6ddd['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',_0x28e6cb['if']('_isStatusLabelVisible','ck-hidden',_0x2a5766=>!_0x2a5766)]},'children':[{'text':_0x28e6cb['to']('isNavigationMode',_0x146863=>_0x146863?g(_0x3818e7,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3818e7,'Total')+':\x20')}]},{'text':_0x28e6cb['to']('_statusText')}]},new _0x5f2e3d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x56b480,_0x2e6ddd]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x182a76{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x56139a=this['editor']['editing']['view'];_0x56139a['change'](_0x532e90=>{for(const _0xcb9f6f of _0x56139a['document']['roots'])_0x532e90['addClass'](le,_0xcb9f6f);});}['hide'](){const _0x45c04b=this['editor']['editing']['view'];_0x45c04b['change'](_0xaaf916=>{for(const _0x1a924e of _0x45c04b['document']['roots'])_0xaaf916['removeClass'](le,_0x1a924e);});}}class R extends _0x182a76{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x1cd32f=this['editor'],_0x55de0f=_0x1cd32f['plugins']['get'](m),_0x3a4a32=_0x1cd32f['plugins']['get'](ge);_0x1cd32f['ui']['componentFactory']['add']('exitToEditing',_0x5e18e0=>{const _0x3efd04=new te(_0x5e18e0);return _0x3efd04['set']({'label':g(_0x5e18e0,'Back\x20to\x20editing'),'icon':_0x50697b,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3efd04,'execute',()=>{_0x1cd32f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3efd04;}),_0x1cd32f['ui']['componentFactory']['add']('restoreRevision',_0x1ce965=>{const _0x49f8dd=new te(_0x1ce965);return _0x49f8dd['set']({'label':g(_0x1ce965,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x49f8dd['bind']('isEnabled')['to'](_0x1cd32f['commands']['get']('restoreRevision')),this['listenTo'](_0x49f8dd,'execute',()=>_0x1cd32f['execute']('restoreRevision')),_0x49f8dd;}),_0x1cd32f['ui']['componentFactory']['add']('changesNavigation',_0x2c8ab5=>{const _0x4189b0=new _i(_0x2c8ab5),_0xc29198=_0x1cd32f['commands']['get']('showPreviousChange'),_0x108302=_0x1cd32f['commands']['get']('showNextChange');return _0x4189b0['bind']('isBackwardNavigationEnabled')['to'](_0xc29198,'isEnabled'),_0x4189b0['bind']('isForwardNavigationEnabled')['to'](_0x108302,'isEnabled'),_0x4189b0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x55de0f),this['listenTo'](_0x4189b0,'execute',(_0x1d8f3a,_0x463033)=>{_0x1cd32f['execute']('forward'===_0x463033?'showNextChange':'showPreviousChange');}),_0x4189b0;}),_0x3a4a32['show'](),_0x55de0f['on']('change:isReady',(_0x202ece,_0x219170,_0x5e4328)=>{_0x5e4328?_0x3a4a32['hide']():_0x3a4a32['show']();});}}class at extends _0x2d5e4b{['_resizeObserver']=null;constructor(_0x108c4c,_0x2f266a){super(_0x108c4c,_0x2f266a);const _0x3e767d=this['bindTemplate'];this['set']({'label':g(_0x108c4c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x108c4c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3e767d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4a87fd=this['fieldView']['element'];this['_tooltipString']=_0x4a87fd['scrollWidth']>_0x4a87fd['clientWidth']&&_0x4a87fd['value']||'';}}class si extends ts{constructor(_0x10f6ee,_0x1373e1,_0x420a94){super(_0x10f6ee);const _0x2a25a1=new _0x39bf5a();_0x2a25a1['set']({'content':_0x4bb680,'viewBox':'0\x200\x2011\x2010'});const _0x477a74=['ck','ck-revision-history-sidebar__revision-author'];_0x420a94&&_0x477a74['push']('ck-revision-history-sidebar__revision-author_creator');const _0x401295=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x10f6ee,_0x420a94?'Revision\x20creator':'Revision\x20author')},'children':[_0x2a25a1,_0x1373e1['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x477a74},'children':_0x401295});}}function oi(_0x277e0b,_0x127569){const _0x374060=_0x277e0b['bindTemplate'],_0x47a4a9=_0x277e0b['locale'],_0x299f42=_0x5f2998(_0x47a4a9);_0x299f42['panelPosition']='sw';const _0x3626ea=function(_0x462833,_0x4d1fd2){const _0x51409c=function(_0x58653c,_0x3ef443){const _0x564a48=_0x58653c['locale'],_0x38bccf={'Compare\x20against\x20selected':g(_0x564a48,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x564a48,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x564a48,'Restore\x20this\x20revision')};return _0x3ef443['map'](_0x2d117f=>{const _0x196759=_0x38bccf[_0x2d117f['name']];return _0x196759&&_0x196759!==_0x2d117f['name']&&(_0x2d117f['name']=_0x196759),_0x2d117f;});}(_0x462833,_0x4d1fd2),_0x3cc189=new _0x209800();for(const _0x59fe03 of _0x51409c){const _0x2e755a={'type':'button','model':new to({'label':_0x59fe03['name'],'class':_0x59fe03['class'],'withText':!0x0,'role':'menuitem','_action':_0x59fe03['action']})};_0x2e755a['model']['bind']('isEnabled')['to'](_0x462833,'isActionsDropdownOpen',_0x274fbe=>'function'!=typeof _0x59fe03['isEnabled']||(!_0x274fbe||_0x59fe03['isEnabled'](_0x462833))),_0x3cc189['add'](_0x2e755a);}return _0x3cc189;}(_0x277e0b,_0x127569);return _0x277e0b['bind']('isActionsDropdownOpen')['to'](_0x299f42,'isOpen'),_0x299f42['buttonView']['set']({'label':g(_0x47a4a9,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x14da53}),_0x299f42['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x374060['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x374060['to'](_0x23f348=>_0x23f348['stopPropagation']())}}),_0x299f42['on']('execute',_0x4bc681=>{_0x277e0b['isReady']&&'function'==typeof _0x4bc681['source']['_action']&&_0x4bc681['source']['_action'](_0x277e0b);}),_0x6d6d3d(_0x299f42,_0x3626ea,{'role':'menu'}),_0x299f42['listenTo'](_0x277e0b,'change:isActionsDropdownOpen',(_0x72fcc8,_0x7ac17a,_0x7d523d)=>{if(_0x7d523d)for(const _0x5f272e of _0x299f42['listView']['items']){const _0x3938e7=_0x5f272e['children']['first'],_0x285e8d=_0x127569['find'](_0x53b97b=>_0x53b97b['action']===_0x3938e7['_action'])['isVisible'];_0x5f272e['isVisible']=void 0x0===_0x285e8d||_0x285e8d(_0x277e0b);}}),_0x299f42;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1aaa2f,_0x54cacd,_0x41381d,_0x939bef){super(_0x1aaa2f);const _0xe71a4f=this['bindTemplate'],_0x42258f=function(_0x5dbbf0,_0x59ae47){const _0x486819=Array['from'](_0x59ae47['authors'])['filter'](_0x9e75ab=>_0x9e75ab!=_0x59ae47['creator']);return _0x59ae47['creator']&&_0x486819['unshift'](_0x59ae47['creator']),_0x486819['map'](_0x29aa9e=>new si(_0x5dbbf0,_0x29aa9e,_0x29aa9e==_0x59ae47['creator']));}(_0x1aaa2f,_0x54cacd);this['id']=_0x54cacd['id'],this['_revision']=_0x54cacd,this['_requireRevisionName']=_0x939bef,this['bind']('name','createdAt')['to'](_0x54cacd),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2529d7=>{return _0xa2d971=_0x1aaa2f['uiLanguage'],(_0x19585b=_0x2529d7)['toLocaleDateString'](_0xa2d971,{'month':'long','day':'numeric'})+',\x20'+_0x19585b['toLocaleTimeString'](_0xa2d971,{'hour':'numeric','minute':'numeric'});var _0xa2d971,_0x19585b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x1aaa2f,_0x20057c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1056d0=>_0x1056d0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1f6934,_0x4d8690)=>_0x1f6934&&_0x4d8690),this['revisionActionsView']=_0x41381d&&_0x41381d['length']?oi(this,_0x41381d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xe71a4f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xe71a4f['if']('isEnabled','ck-disabled',_0x4fbed1=>!_0x4fbed1),_0xe71a4f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xe71a4f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xe71a4f['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':_0xe71a4f['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':_0x42258f}]},this['revisionActionsView']],'on':{'click':_0xe71a4f['to'](_0x10c93d=>{_0x10c93d['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x294c20=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x294c20,'change',()=>{this['_requireRevisionName']&&!_0x294c20['value']||this['fire']('setName',{'id':this['id'],'name':_0x294c20['value']}),_0x294c20['value']||(_0x294c20['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x42bd9a,_0x31753d){const _0x94db32=_0x2d6b1d['fromJSDate'](_0x42bd9a)['setLocale'](_0x31753d),_0x3bf622=_0x2d6b1d['local'](),_0x6261bd=_0x3bf622['minus']({'days':0x1})['startOf']('day');let _0x1e4a6c,_0x1c7e78;return _0x94db32['hasSame'](_0x3bf622,'day')?(_0x1e4a6c=_0x94db32['startOf']('day')['toJSDate'](),_0x1c7e78=_0x94db32['toRelativeCalendar']()):_0x94db32['hasSame'](_0x6261bd,'day')?(_0x1e4a6c=_0x6261bd['toJSDate'](),_0x1c7e78=_0x94db32['toRelativeCalendar']()):_0x94db32['hasSame'](_0x3bf622,'week')?(_0x1e4a6c=_0x94db32['startOf']('week')['toJSDate'](),_0x1c7e78=_0x94db32['weekdayLong']||''):_0x94db32['hasSame'](_0x3bf622,'year')?(_0x1e4a6c=_0x94db32['startOf']('month')['toJSDate'](),_0x1c7e78=_0x94db32['monthLong']||''):(_0x1e4a6c=_0x94db32['startOf']('year')['toJSDate'](),_0x1c7e78=String(_0x94db32['year'])),{'startDate':_0x1e4a6c,'localizedPeriodName':_0x1c7e78};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2695db,_0x28f166,_0x14000a,_0x3988ca){super(_0x2695db);const _0x592929=ai(_0x28f166,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x28f166,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x14000a,this['_requireRevisionName']=_0x3988ca,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':_0x592929}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x341077){const _0x37eff9=new hi(this['locale'],_0x341077,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x37eff9);}['removeRevision'](_0x196ca1){const _0x5eebbe=this['revisionViews']['find'](_0x50e2c8=>_0x50e2c8['id']===_0x196ca1['id']);this['revisionViews']['remove'](_0x5eebbe);}}class as extends ts{constructor(_0x4dfe46){super(_0x4dfe46);const _0x2958a4=new _0x39bf5a();_0x2958a4['content']=_0x1a1928,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2958a4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x4dfe46,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x20b027,_0x568a26,_0x4030df,_0x423d54){super(_0x20b027);const _0x2144f3=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x568a26,this['_revisionActions']=_0x4030df,this['_requireRevisionName']=_0x423d54,this['on']('select',(_0x11d1d0,_0x11db54)=>{this['fire']('revisionSelected',_0x11db54);}),this['on']('setName',(_0x200999,_0x53ea51)=>{this['fire']('revisionSetName',_0x53ea51);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x20b027),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2144f3['if']('isEnabled','ck-disabled',_0x310563=>!_0x310563)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x306123 of this['_revisions'])this['_addRevision'](_0x306123);this['_revisions']['on']('add',(_0x509d58,_0x49f60d)=>{this['_addRevision'](_0x49f60d);}),this['_revisions']['on']('remove',(_0x5f285c,_0x1410a5)=>{this['_removeRevision'](_0x1410a5);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x32a8be=>_0x32a8be['revisionViews']['map'](_0x26c17f=>_0x26c17f))['flat']();}['selectRevision'](_0x4507ca){for(const _0x3ad552 of this['revisionViews'])_0x4507ca&&_0x4507ca['id']===_0x3ad552['id']?_0x3ad552['select']():_0x3ad552['deselect']();}['highlightRevisions'](_0x1bb533){for(const _0x16432f of this['revisionViews'])_0x1bb533['some'](({id:_0x178bf5})=>_0x178bf5===_0x16432f['id'])?_0x16432f['highlight']():_0x16432f['unhighlight']();}['_addRevision'](_0x3725b6){const _0x527906=ai(_0x3725b6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x433f6b=this['timePeriodViews']['get'](0x0);_0x433f6b&&_0x433f6b['startDate']['getTime']()===_0x527906['getTime']()||(_0x433f6b=new di(this['locale'],_0x527906,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x433f6b)),_0x433f6b['addRevision'](_0x3725b6);}['_removeRevision'](_0x109042){const _0x16e627=ai(_0x109042['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x16e627)['removeRevision'](_0x109042);}['_getTimePeriodViewByStartDate'](_0x83a014){return this['timePeriodViews']['find'](_0x369764=>_0x369764['startDate']['getTime']()===_0x83a014['getTime']());}}class d extends _0x182a76{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x33a608(_0x180b1b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x44cbef,_0x14de9c){super(_0x14de9c),this['sourceElement']=_0x44cbef,this['model']['document']['createRoot']();const _0x476c92=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x476c92);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1984c4,_0x2c1841){const _0x30d9ea=new this(_0x1984c4,_0x2c1841);return await _0x30d9ea['initPlugins'](),await _0x30d9ea['ui']['init'](_0x1984c4),await _0x30d9ea['data']['init'](_0x30d9ea['config']['get']('initialData')||''),_0x30d9ea['fire']('ready'),_0x30d9ea;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x215f3d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x990472){function _0x553106(_0x4df8a0){return _0x4df8a0['map'](_0x3116dd=>String['fromCharCode'](_0x3116dd))['join']('');}super(_0x990472),this['result']='end',_0x990472[_0x553106([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x553106([0x76,0x69,0x65,0x77])][_0x553106([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x553106([0x61,0x75,0x74,0x6f]),_0x990472[_0x553106([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x553106([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x553106([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x553106([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x553106([0x6f,0x6b])});}}class k extends _0x215f3d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2289bb){if(super(_0x2289bb),!this['editor']['config']['get']('revisionHistory'))throw new _0x382e41('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x45131a=>this['_showRevisionViewer']({..._0x45131a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4c32e5=>this['_closeRevisionViewer'](_0x4c32e5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xa147=>this['_restoreRevision'](_0xa147)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x36e6c2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x36e6c2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2eb2c7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2eb2c7);}['getRevision'](_0x117dec){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x117dec);}['getRevisions'](_0x34f763){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x34f763||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x808730=this['editor'],_0x499083=_0x16f0f7(_0x808730,p),_0x4eef47=_0x808730['plugins']['get']('RevisionTracker'),_0x171348=_0x808730['plugins']['get']('Users')['users'];return _0x499083['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x499083['lazyRoots'],(_0x499083['plugins']['push'](_t,m,R,class extends _0x215f3d{static get['requires'](){return[m,'Users'];}['init'](){const _0x5e1539=this['editor']['plugins']['get']('Users');for(const _0x465378 of _0x171348)_0x465378['isAnonymous']||_0x5e1539['getUser'](_0x465378['id'])||_0x5e1539['addUser'](_0x465378);const _0x499a82=_0x4eef47['repository']['getRevisions']();let _0x59eb44=null;const _0xd9801f=this['editor']['plugins']['get']('RevisionViewer');_0xd9801f['adapter']=_0x4eef47['adapter'],_0xd9801f['bind']('isEnabled')['to'](_0x4eef47),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x808730,'isReadOnly',_0x537acf=>!_0x537acf);for(const _0x1ba452 of _0x499a82){const _0x592dcf=null===_0x1ba452['creator'];if(_0x592dcf&&_0x1ba452['toVersion']===_0x1ba452['fromVersion'])continue;const _0x1328d7=_0x1ba452['toJSON']();_0xd9801f['addRevisionData'](_0x1328d7,(_0x3b9f68,_0x54b2ae,_0x4e243b)=>{if(_0x592dcf){if(_0x59eb44)_0x59eb44['_update'](_0x3b9f68,_0x54b2ae);else{if(!_0x54b2ae){const _0x14e003=_0x4e243b['toJSON']();_0x14e003['id']=_0x335623(),_0x4eef47['saveRevision'](_0x14e003,_0x4e243b['toVersion'])['then'](_0x16be2f=>{_0x59eb44=_0x16be2f;});}}}else _0x1ba452['_update'](_0x3b9f68,_0x54b2ae);});}}},d),_0x499083);}['_enhanceShowRevisionViewerCallback'](){const _0x166b4b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x49dfa7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x16768f=this['editor']['plugins']['get']('Autosave');await _0x16768f['save']();}else await _0x49dfa7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4f0ecd=this['editor']['plugins']['get']('Dialog');_0x4f0ecd['isOpen']&&_0x4f0ecd['hide']();}const _0x315f2d=this['_getRevisionViewerEditorConfig']();return _0x166b4b(_0x315f2d)['then'](_0x4d1443=>{return(this['_viewerEditor']=_0x4d1443,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4d1443);})['catch'](_0x85e347=>(console['error'](_0x85e347),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xce0e77=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xce0e77(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3b8e37=this['editor']['plugins']['get']('Annotations');_0x3b8e37['refreshVisibility'](),_0x3b8e37['refreshPositioning']();}})));}['_showRevisionViewer'](_0x151442){const _0x3e548d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x156fa8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1c816a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1c816a,_0x151442)['then'](_0x2b43f8=>(_0x156fa8['style']['display']='block',_0x3e548d['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2b43f8));}['_closeRevisionViewer'](_0x301e89){const _0x75a4f8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x75a4f8['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x301e89['destroy']();}async['_restoreRevision'](_0x400692){const _0x350725=this['editor'],_0x398ae6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x21e80e=_0x350725['plugins']['get']('RevisionTracker'),_0x4c5370=_0x350725['plugins']['get']('RevisionHistoryUtils'),_0x4b3df4=_0x398ae6['repository']['getRevision'](_0x400692);let _0x50efb2,_0x5978f8,_0x544035;try{await _0x4c5370['loadRevisionData'](_0x4b3df4,this['adapter']),_0x50efb2=_0x4c5370['getRevisionDocumentData'](_0x4b3df4),_0x5978f8=_0x4c5370['getRevisionRootsAttributes'](_0x4b3df4);}catch(_0x578d26){return void console['error'](_0x578d26);}_0x350725['model']['change'](_0x3b1792=>{for(const _0x28d86c of Array['from'](_0x350725['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3b1792['removeMarker'](_0x28d86c);}),_0x398ae6['isReady']=!0x1,_0x350725['model']['enqueueChange'](_0x19b597=>{_0x19b597['setSelection'](null),_0x19b597['removeSelectionAttribute'](_0x350725['model']['document']['selection']['getAttributeKeys']());const _0x518e0d=Object['keys'](_0x50efb2);for(const _0x440edf of _0x350725['model']['document']['roots'])'$graveyard'!=_0x440edf['rootName']&&_0x440edf['isAttached']()&&!_0x518e0d['includes'](_0x440edf['rootName'])&&_0x19b597['detachRoot'](_0x440edf);for(const _0x397b65 of _0x518e0d){let _0x2f8b72=_0x350725['model']['document']['getRoot'](_0x397b65);_0x2f8b72&&_0x2f8b72['isAttached']()||(_0x2f8b72=_0x19b597['addRoot'](_0x397b65));const _0x1dbd51=_0x5978f8[_0x397b65],_0x4b5f27=Object['keys'](_0x1dbd51),_0x1bdb6f=_0x50efb2[_0x397b65];for(const _0x5d57cb of _0x2f8b72['getAttributeKeys']())_0x4b5f27['includes'](_0x5d57cb)||_0x19b597['removeAttribute'](_0x5d57cb,_0x2f8b72);for(const _0x146618 of _0x4b5f27)_0x19b597['setAttribute'](_0x146618,_0x5978f8[_0x397b65][_0x146618],_0x2f8b72);_0x19b597['remove'](_0x19b597['createRangeIn'](_0x2f8b72)),_0x19b597['insert'](_0x350725['data']['parse'](_0x1bdb6f,_0x2f8b72),_0x2f8b72,0x0);}});const _0x4d3fdf=g(_0x350725['locale'],'Restored');if(_0x4b3df4['name'])_0x544035=-0x1==_0x4b3df4['name']['indexOf'](_0x4d3fdf)?_0x4d3fdf+':\x20'+_0x4b3df4['name']:_0x4b3df4['name'];else _0x544035=_0x4d3fdf+':\x20'+(_0x4b3df4['createdAt']['toLocaleDateString'](_0x350725['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4b3df4['createdAt']['toLocaleTimeString'](_0x350725['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x21e80e['saveRevision']({'name':_0x544035}),_0x398ae6['isReady']=!0x0,_0x350725['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x2f55a1){super(_0x2f55a1),this['_revisionViewer']=_0x2f55a1['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xc5d36f=this['_revisionsRepository']['_revisions'],_0x44b94c=this['_createRevisionActions'](),_0x34a9cb=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0xc5d36f,_0x44b94c,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',(_0x3add46,_0x37e365)=>{_0x37e365['revisionViews']['on']('add',(_0x205a7a,_0x643960)=>{_0x643960['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)),_0x34a9cb['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x53f5b2=this['_revisionsRepository']['getRevision'](0x0);if(_0x53f5b2){const _0x58d22a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x53f5b2['id']);this['_revisionViewer']['compare'](_0x53f5b2,_0x58d22a);}}['_handleRevisionSelected'](_0x5b8b36,_0x2f927a){const _0x297bb5=this['_revisionsRepository']['getRevision'](_0x2f927a['id']),_0x48eda0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x297bb5['id']);this['_revisionViewer']['compare'](_0x297bb5,_0x48eda0);}['_handleRevisionSetName'](_0x1da97a,_0x37709a){this['_revisionsRepository']['getRevision'](_0x37709a['id'])['setName'](_0x37709a['name']);}['_handleDiffChange'](_0x14d06f,_0x162703,_0x408bc8){const _0x3e3a36=this['_revisionsRepository']['getRevisionsInDiff'](_0x408bc8);_0x3e3a36['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3e3a36),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3e3a36[0x0]));}['_createRevisionActions'](){const _0x3be5ba=this['editor'],_0x442dd4=d['availableRevisionActions'],_0x3130c0=_0x3be5ba['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3130c0['length'])return _0x3130c0['map'](_0x191888=>{const _0x3936f3='string'==typeof _0x191888?Object['assign']({},_0x442dd4[_0x191888]):_0x191888;return _0x3936f3['action']=_0x3936f3['action']['bind'](this,_0x3be5ba),_0x3936f3['isVisible']&&(_0x3936f3['isVisible']=_0x3936f3['isVisible']['bind'](this,_0x3be5ba)),_0x3936f3;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x34f0f2},_0x238f65)=>{const _0x359f1e=_0x34f0f2['get'](m),_0x50272e=_0x359f1e['repository'];let _0x4ab330=_0x359f1e['diff']['newRevisionId'],_0x1e0d2f=_0x238f65['id'];_0x50272e['getIndex'](_0x4ab330)>_0x50272e['getIndex'](_0x1e0d2f)&&([_0x4ab330,_0x1e0d2f]=[_0x1e0d2f,_0x4ab330]),_0x359f1e['compare'](_0x4ab330,_0x1e0d2f);},'isVisible':({plugins:_0x108847},_0x2e5821)=>{const _0x1157c3=_0x108847['get'](m);return!(_0x1157c3['repository']['getRevisionsInDiff'](_0x1157c3['diff'])['length']>0x2)&&!_0x2e5821['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x38eb94,{id:_0x1533b7})=>{_0x38eb94['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1533b7);},'isVisible':({plugins:_0x48939e},_0x487ac4)=>!!_0x48939e['get'](m)['repository']['getLaterVisibleRevision'](_0x487ac4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2d745d},{id:_0x5eb8a8,revisionNameView:_0x35d9eb})=>{const _0x1e5331=_0x2d745d['get'](m),_0x17cb63=_0x1e5331['repository']['getEarlierVisibleRevision'](_0x5eb8a8);_0x1e5331['compare'](_0x5eb8a8,_0x17cb63),_0x35d9eb['focus'](),_0x35d9eb['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x8d9f1,_0x56ab80){super(_0x8d9f1),this['_view']=_0x56ab80,this['_toolbarConfig']=et(_0x8d9f1['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x1fb613){const _0x1198d3=this['editor'],_0x55c6bb=this['view'],_0x5ceb2f=_0x1198d3['editing']['view'],_0x92e69d=_0x55c6bb['editable'],_0x151221=_0x5ceb2f['document']['getRoot']();_0x92e69d['name']=_0x151221['rootName'],_0x55c6bb['render']();const _0x11ae2a=_0x92e69d['element'];this['setEditableElement'](_0x92e69d['name'],_0x11ae2a),_0x55c6bb['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5ceb2f['attachDomRoot'](_0x11ae2a),this['_elementReplacer']['replace'](_0x1fb613,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x428c1b=this['view'],_0x2a9e1e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2a9e1e['detachDomRoot'](_0x428c1b['editable']['name']),_0x428c1b['destroy']();}['_initToolbar'](){const _0x5c16e8=this['view'];_0x5c16e8['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5c16e8['stickyPanel']['limiterElement']=_0x5c16e8['element'],_0x5c16e8['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5ab062})=>_0x5ab062),_0x5c16e8['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5c16e8['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4e28d0,_0x3b3d85,_0x5e234b={}){super(_0x4e28d0),this['stickyPanel']=new ht(_0x4e28d0),this['toolbar']=new dt(_0x4e28d0,{'shouldGroupWhenFull':_0x5e234b['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x4e28d0,_0x3b3d85);}['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
|
+
_0x3bc3c8(_0x4e3d6f){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1b9e46,_0x307dd4){super(_0x307dd4),this['sourceElement']=_0x1b9e46,this['model']['document']['createRoot']();const _0x4c3107=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4c3107);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x20c54c,_0x5324b2){const _0x367a5c=new this(_0x20c54c,_0x5324b2);return await _0x367a5c['initPlugins'](),await _0x367a5c['ui']['init'](_0x20c54c),await _0x367a5c['data']['init'](_0x367a5c['config']['get']('initialData')||''),_0x367a5c['fire']('ready'),_0x367a5c;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x182a76{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b9088){function _0x3f054e(_0x2e427a){return _0x2e427a['map'](_0x29fc69=>String['fromCharCode'](_0x29fc69))['join']('');}super(_0x3b9088),this['result']='end',_0x3b9088[_0x3f054e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f054e([0x76,0x69,0x65,0x77])][_0x3f054e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f054e([0x61,0x75,0x74,0x6f]),_0x3b9088[_0x3f054e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3f054e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f054e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3f054e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3f054e([0x6f,0x6b])});}}class k extends _0x182a76{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x5a4df2){if(super(_0x5a4df2),!this['editor']['config']['get']('revisionHistory'))throw new _0x721083('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x151c51=>this['_showRevisionViewer']({..._0x151c51,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x45f0a1=>this['_closeRevisionViewer'](_0x45f0a1)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x50e8f5=>this['_restoreRevision'](_0x50e8f5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x34c0ff){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x34c0ff;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3cc030){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3cc030);}['getRevision'](_0x3d602b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3d602b);}['getRevisions'](_0x1432f2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1432f2||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x596070=this['editor'],_0x2f9c70=_0xaf0580(_0x596070,p),_0x302b85=_0x596070['plugins']['get']('RevisionTracker'),_0x49fc63=_0x596070['plugins']['get']('Users')['users'];return _0x2f9c70['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2f9c70['lazyRoots'],(_0x2f9c70['plugins']['push'](_t,m,R,class extends _0x182a76{static get['requires'](){return[m,'Users'];}['init'](){const _0x2a71f5=this['editor']['plugins']['get']('Users');for(const _0x51e204 of _0x49fc63)_0x51e204['isAnonymous']||_0x2a71f5['getUser'](_0x51e204['id'])||_0x2a71f5['addUser'](_0x51e204);const _0x14489d=_0x302b85['repository']['getRevisions']();let _0x2e5af4=null;const _0x62c426=this['editor']['plugins']['get']('RevisionViewer');_0x62c426['adapter']=_0x302b85['adapter'],_0x62c426['bind']('isEnabled')['to'](_0x302b85),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x596070,'isReadOnly',_0x5696e5=>!_0x5696e5);for(const _0x3990d2 of _0x14489d){const _0x5d7c48=null===_0x3990d2['creator'];if(_0x5d7c48&&_0x3990d2['toVersion']===_0x3990d2['fromVersion'])continue;const _0x4ed970=_0x3990d2['toJSON']();_0x62c426['addRevisionData'](_0x4ed970,(_0x549418,_0x14aa7a,_0x3e9076)=>{if(_0x5d7c48){if(_0x2e5af4)_0x2e5af4['_update'](_0x549418,_0x14aa7a);else{if(!_0x14aa7a){const _0x893642=_0x3e9076['toJSON']();_0x893642['id']=_0x5506ef(),_0x302b85['saveRevision'](_0x893642,_0x3e9076['toVersion'])['then'](_0xcc017f=>{_0x2e5af4=_0xcc017f;});}}}else _0x3990d2['_update'](_0x549418,_0x14aa7a);});}}},d),_0x2f9c70);}['_enhanceShowRevisionViewerCallback'](){const _0x5478e2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3af72e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2a0fdd=this['editor']['plugins']['get']('Autosave');await _0x2a0fdd['save']();}else await _0x3af72e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x18ff2f=this['editor']['plugins']['get']('Dialog');_0x18ff2f['isOpen']&&_0x18ff2f['hide']();}const _0x28ae25=this['_getRevisionViewerEditorConfig']();return _0x5478e2(_0x28ae25)['then'](_0x386492=>{return(this['_viewerEditor']=_0x386492,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x386492);})['catch'](_0x11a734=>(console['error'](_0x11a734),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x517ce3=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x517ce3(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x28d962=this['editor']['plugins']['get']('Annotations');_0x28d962['refreshVisibility'](),_0x28d962['refreshPositioning']();}})));}['_showRevisionViewer'](_0x265ae4){const _0x563bd2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4b35ee=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x221a45=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x221a45,_0x265ae4)['then'](_0x47b587=>(_0x4b35ee['style']['display']='block',_0x563bd2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x47b587));}['_closeRevisionViewer'](_0x38da41){const _0x328892=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x328892['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x38da41['destroy']();}async['_restoreRevision'](_0x850944){const _0x452817=this['editor'],_0x53dd0e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4ffb10=_0x452817['plugins']['get']('RevisionTracker'),_0x151efc=_0x452817['plugins']['get']('RevisionHistoryUtils'),_0x3067a9=_0x53dd0e['repository']['getRevision'](_0x850944);let _0x1b4007,_0x446715,_0x5702eb;try{await _0x151efc['loadRevisionData'](_0x3067a9,this['adapter']),_0x1b4007=_0x151efc['getRevisionDocumentData'](_0x3067a9),_0x446715=_0x151efc['getRevisionRootsAttributes'](_0x3067a9);}catch(_0x4425a3){return void console['error'](_0x4425a3);}_0x452817['model']['change'](_0x5461dd=>{for(const _0x29999b of Array['from'](_0x452817['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5461dd['removeMarker'](_0x29999b);}),_0x53dd0e['isReady']=!0x1,_0x452817['model']['enqueueChange'](_0xbaf376=>{_0xbaf376['setSelection'](null),_0xbaf376['removeSelectionAttribute'](_0x452817['model']['document']['selection']['getAttributeKeys']());const _0x10088e=Object['keys'](_0x1b4007);for(const _0x22c6b6 of _0x452817['model']['document']['roots'])'$graveyard'!=_0x22c6b6['rootName']&&_0x22c6b6['isAttached']()&&!_0x10088e['includes'](_0x22c6b6['rootName'])&&_0xbaf376['detachRoot'](_0x22c6b6);for(const _0x170892 of _0x10088e){let _0x4623b5=_0x452817['model']['document']['getRoot'](_0x170892);_0x4623b5&&_0x4623b5['isAttached']()||(_0x4623b5=_0xbaf376['addRoot'](_0x170892));const _0x5775f9=_0x446715[_0x170892],_0x57fa51=Object['keys'](_0x5775f9),_0x58317c=_0x1b4007[_0x170892];for(const _0x1cc0a1 of _0x4623b5['getAttributeKeys']())_0x57fa51['includes'](_0x1cc0a1)||_0xbaf376['removeAttribute'](_0x1cc0a1,_0x4623b5);for(const _0x189af7 of _0x57fa51)_0xbaf376['setAttribute'](_0x189af7,_0x446715[_0x170892][_0x189af7],_0x4623b5);_0xbaf376['remove'](_0xbaf376['createRangeIn'](_0x4623b5)),_0xbaf376['insert'](_0x452817['data']['parse'](_0x58317c,_0x4623b5),_0x4623b5,0x0);}});const _0x359c17=g(_0x452817['locale'],'Restored');if(_0x3067a9['name'])_0x5702eb=-0x1==_0x3067a9['name']['indexOf'](_0x359c17)?_0x359c17+':\x20'+_0x3067a9['name']:_0x3067a9['name'];else _0x5702eb=_0x359c17+':\x20'+(_0x3067a9['createdAt']['toLocaleDateString'](_0x452817['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3067a9['createdAt']['toLocaleTimeString'](_0x452817['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4ffb10['saveRevision']({'name':_0x5702eb}),_0x53dd0e['isReady']=!0x0,_0x452817['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|