@ckeditor/ckeditor5-revision-history 47.1.0-alpha.0 → 47.1.0-alpha.1
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 +7 -7
- package/package.json +12 -12
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.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,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x2a6632(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x12818c){super(),this['id']=_0x12818c['id']||_0x506dfc(),this['creator']=_0x12818c['creator']||null,this['authors']=_0x12818c['authors']||[],this['diffData']=_0x12818c['diffData']||null,this['toVersion']=_0x12818c['toVersion']||0x0,this['fromVersion']=_0x12818c['fromVersion']||0x0,this['set']('name',_0x12818c['name']||''),this['set']('createdAt',_0x12818c['createdAt']||new Date()),this['set']('attributes',_0x12818c['attributes']||{});}['setName'](_0x5ea931){this['_update']({'name':_0x5ea931});}['setAttribute'](_0x10fc1b,_0x6c286f){const _0x18a772=_0x2b1973(this['attributes']);_0x114070(_0x18a772,_0x10fc1b,_0x6c286f),this['_update']({'attributes':_0x18a772});}['removeAttribute'](_0x423bbb){const _0x2b334c=_0x2b1973(this['attributes']);_0x51ddb3(_0x2b334c,_0x423bbb),this['_update']({'attributes':_0x2b334c});}['_update'](_0x4cf318,_0x2972e4=!0x1){let _0x130127=!0x1;const _0x437827={'id':this['id']},_0x370dc2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a0e4e of _0x370dc2){const _0x4969f9=_0x4cf318[_0x5a0e4e];void 0x0!==_0x4969f9&&_0x4969f9!==this[_0x5a0e4e]&&(this[_0x5a0e4e]=_0x4969f9,_0x437827[_0x5a0e4e]=_0x4969f9,_0x130127=!0x0);}_0x130127&&(_0x437827['authors']&&(_0x437827['authorsIds']=_0x437827['authors']['map'](_0x2ca8e6=>_0x2ca8e6['id']),delete _0x437827['authors']),this['fire']('_update',_0x437827,_0x2972e4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xe7e6d4=>_0xe7e6d4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x30489c{['_revisions'];static get['requires'](){return[_0x9482fc];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x12fb5c){super(_0x12fb5c),this['_revisions']=new _0x379dd0();}['afterInit'](){!async function(_0x1aa914){const _0xf141d3=_0x564b22([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x490bf6=0xeb829,_0x4d759d=0x7374585f,_0x13897e=0x73732e77^_0x4d759d,_0x226d4e=window[_0x564b22([0x44,0x61,0x74,0x65])][_0x564b22([0x6e,0x6f,0x77])](),_0x518938=_0x1aa914[_0x564b22([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x147bec=new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36dd2b=>{_0x518938[_0x564b22([0x6f,0x6e,0x63,0x65])](_0x564b22([0x72,0x65,0x61,0x64,0x79]),_0x36dd2b);}),_0x5a5676={[_0x564b22([0x6b,0x74,0x79])]:_0x564b22([0x45,0x43]),[_0x564b22([0x75,0x73,0x65])]:_0x564b22([0x73,0x69,0x67]),[_0x564b22([0x63,0x72,0x76])]:_0x564b22([0x50,0x2d,0x32,0x35,0x36]),[_0x564b22([0x78])]:_0x564b22([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]),[_0x564b22([0x79])]:_0x564b22([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]),[_0x564b22([0x61,0x6c,0x67])]:_0x564b22([0x45,0x53,0x32,0x35,0x36])},_0x778802=_0x518938[_0x564b22([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x564b22([0x67,0x65,0x74])](_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22289c(){let _0x54fa8f,_0x2947e8=null,_0x14a9a5=null;try{if(_0x778802==_0x564b22([0x47,0x50,0x4c]))return _0x564b22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54fa8f=_0x563c7f(),!_0x54fa8f)return _0x564b22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54fa8f[_0x564b22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14a9a5=_0x23ea2b(_0x54fa8f[_0x564b22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54fa8f[_0x564b22([0x6a,0x74,0x69])])),await _0x3489f7()?_0x36955d()?_0x3ae3fe()?_0x564b22([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x380a86()?(_0x54fa8f[_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x564b22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2947e8=_0x320bbb(_0x564b22([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x54fa8f[_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x564b22([0x74,0x72,0x69,0x61,0x6c])&&(_0x2947e8=_0x320bbb(_0x564b22([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56d3d7()):_0x564b22([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x564b22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x564b22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x564b22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ae3fe(){const _0x535cf9=[_0x564b22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x564b22([0x74,0x72,0x69,0x61,0x6c])][_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54fa8f[_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x226d4e/0x3e8:0xe10*_0x13897e;return _0x54fa8f[_0x564b22([0x65,0x78,0x70])]<_0x535cf9;}function _0x36955d(){const _0x957d=_0x54fa8f[_0x564b22([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x957d)return!0x1;if(_0x957d[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564b22([0x2a])))return!0x0;if(_0x957d[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564b22([0x52,0x48])))return!0x0;if(_0x957d[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564b22([0x52,0x52,0x48]))){if(_0x22a41f())return!0x0;if(_0x41e250()||_0x163950())return!0x0;}return!0x1;}function _0x380a86(){const _0x230869=_0x54fa8f[_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x230869||0x0==_0x230869[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dd5e5}=new URL(window[_0x564b22([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x230869[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dd5e5))return!0x0;const _0x43f8ef=_0x5dd5e5[_0x564b22([0x73,0x70,0x6c,0x69,0x74])](_0x564b22([0x2e]));return _0x230869[_0x564b22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18eb04=>_0x18eb04[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564b22([0x2a])))[_0x564b22([0x6d,0x61,0x70])](_0x2491ac=>_0x2491ac[_0x564b22([0x73,0x70,0x6c,0x69,0x74])](_0x564b22([0x2e])))[_0x564b22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28c65c=>_0x28c65c[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x43f8ef[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x564b22([0x6d,0x61,0x70])](_0x3b972d=>Array(_0x43f8ef[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b972d[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x564b22([0x66,0x69,0x6c,0x6c])](_0x3b972d[0x0]===_0x564b22([0x2a])?_0x564b22([0x2a]):'')[_0x564b22([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b972d))[_0x564b22([0x73,0x6f,0x6d,0x65])](_0x13c8c1=>_0x43f8ef[_0x564b22([0x65,0x76,0x65,0x72,0x79])]((_0x20b95e,_0x435f26)=>_0x13c8c1[_0x435f26]===_0x20b95e||_0x13c8c1[_0x435f26]===_0x564b22([0x2a])));}function _0x56d3d7(){return _0x2947e8&&_0x14a9a5?new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24d0c0,_0x4c6dfd)=>{_0x2947e8[_0x564b22([0x74,0x68,0x65,0x6e])](_0x24d0c0,_0x4c6dfd),_0x14a9a5[_0x564b22([0x74,0x68,0x65,0x6e])](_0xb0cc9=>{_0xb0cc9!=_0x564b22([0x56,0x61,0x6c,0x69,0x64])&&_0x24d0c0(_0xb0cc9);},_0x4c6dfd);}):_0x2947e8||_0x14a9a5||_0x564b22([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23ea2b(_0xfc3b3c,_0x51d4df){return new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x563432=>{if(_0x4bc4ef())return _0x563432(_0x564b22([0x56,0x61,0x6c,0x69,0x64]));_0x16b5f4(),_0x518938[_0x564b22([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x564b22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cc373=!0x1;const _0x3a20d5=_0x506dfc();function _0x2c55d0(_0x4253e7){return!!_0x4253e7&&(typeof _0x4253e7===_0x564b22([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4253e7===_0x564b22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4253e7[_0x564b22([0x74,0x68,0x65,0x6e])]===_0x564b22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4253e7[_0x564b22([0x63,0x61,0x74,0x63,0x68])]===_0x564b22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a61ba(_0x268bba){_0x5ecd63(_0x268bba)[_0x564b22([0x74,0x68,0x65,0x6e])](_0xeb832c=>{if(!_0xeb832c||_0xeb832c[_0x564b22([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x564b22([0x6f,0x6b]))return _0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x353c73(_0x75afc4(_0x3a20d5+_0x51d4df))!=_0xeb832c[_0x564b22([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x564b22([0x56,0x61,0x6c,0x69,0x64]);})[_0x564b22([0x74,0x68,0x65,0x6e])](_0x310a0e=>(_0xec9f4c(),_0x310a0e),()=>{const _0x25ac2c=_0x23b21c();return null==_0x25ac2c?(_0xec9f4c(),_0x564b22([0x56,0x61,0x6c,0x69,0x64])):_0x564b22(_0x226d4e-_0x25ac2c>(0x5778dc5f^_0x4d759d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x564b22([0x74,0x68,0x65,0x6e])](_0x563432)[_0x564b22([0x63,0x61,0x74,0x63,0x68])](()=>{_0x563432(_0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16af6d=0x7342b6df^_0x4d759d;function _0xec9f4c(){const _0x5c8157=_0x564b22([0x6c,0x6c,0x63,0x74,0x2d])+_0x353c73(_0x75afc4(_0xfc3b3c)),_0x4d6d40=_0xc1f73d(_0x353c73(window[_0x564b22([0x4d,0x61,0x74,0x68])][_0x564b22([0x63,0x65,0x69,0x6c])](_0x226d4e/_0x16af6d)));window[_0x564b22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x564b22([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c8157,_0x4d6d40);}function _0x23b21c(){const _0x595ea7=_0x564b22([0x6c,0x6c,0x63,0x74,0x2d])+_0x353c73(_0x75afc4(_0xfc3b3c)),_0x57d7c4=window[_0x564b22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x564b22([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x595ea7);return _0x57d7c4?window[_0x564b22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc1f73d(_0x57d7c4),0x10)*_0x16af6d:null;}function _0x5ecd63(_0x735985){return new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40719a,_0x2c724a)=>{_0x735985[_0x564b22([0x74,0x68,0x65,0x6e])](_0x40719a,_0x2c724a),window[_0x564b22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c724a,0x73758c9f^_0x4d759d);});}}_0x518938[_0x564b22([0x6f,0x6e])](_0x564b22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26d07b,_0x10281c)=>{if(_0x10281c[0x0]!=_0xfc3b3c)return _0x563432(_0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10281c[0x1]={..._0x10281c[0x1],[_0x564b22([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a20d5};},{[_0x564b22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x564b22([0x68,0x69,0x67,0x68])}),_0x518938[_0x564b22([0x6f,0x6e])](_0x564b22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1711cb=>{_0x2c55d0(_0x1711cb[_0x564b22([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cc373=!0x0,_0x2a61ba(_0x1711cb[_0x564b22([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x564b22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x564b22([0x6c,0x6f,0x77])}),_0x147bec[_0x564b22([0x74,0x68,0x65,0x6e])](()=>{_0x1cc373||_0x563432(_0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4bc4ef(){return _0x518938[_0x564b22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x564b22([0x76,0x69,0x65,0x77])][_0x564b22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x564b22([0x61,0x75,0x74,0x6f]);}function _0x16b5f4(){_0x518938[_0x564b22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x564b22([0x76,0x69,0x65,0x77])][_0x564b22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x564b22([0x61,0x75,0x74,0x6f]);}}function _0x320bbb(_0x5b243d){const _0x4658bc=[new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f06c=>setTimeout(_0x36f06c,0x737d6693^_0x4d759d)),_0x147bec[_0x564b22([0x74,0x68,0x65,0x6e])](()=>new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22811d=>{const _0x19c7ff=0x73745858^_0x4d759d,_0x5bf382=_0x1aa914[_0x564b22([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x414688(){_0x5bf382[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x19c7ff&&_0x22811d();}_0x414688(),_0x5bf382[_0x564b22([0x6f,0x6e])](_0x564b22([0x61,0x64,0x64]),_0x414688);})),new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c4ce=>{function _0x401a48(){for(const _0x2b94d9 in window)if(window[_0x564b22([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x564b22([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2b94d9))&&window[_0x2b94d9]==_0x490bf6)return _0x32c4ce();_0x518938[_0x564b22([0x73,0x74,0x61,0x74,0x65])]!=_0x564b22([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x564b22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x401a48,0x73744bd7^_0x4d759d);}_0x18ac40(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x401a48();})];return window[_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x564b22([0x72,0x61,0x63,0x65])](_0x4658bc)[_0x564b22([0x74,0x68,0x65,0x6e])](()=>_0x5b243d);}async function _0x3f2aed(){if(await _0x147bec,_0x18ac40(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3489ee=_0x1aa914[_0x564b22([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2f9c1c=_0x1aa914[_0x564b22([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])](_0x3489ee[_0x564b22([0x69,0x64])]),_0x2fc18a=_0x307740(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2fc18a[_0x564b22([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3489ee['id'],_0x2f9c1c?_0x2f9c1c['id']:null,!0x0),_0x2fc18a[_0x564b22([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x564b22([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2fc18a[_0x564b22([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2fc18a[_0x564b22([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1106bc,void(_0x2fc18a[_0x564b22([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1106bc);}if(_0x18ac40(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5084d2=_0x307740(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5084d2[_0x564b22([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x564b22([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5084d2[_0x564b22([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5084d2[_0x564b22([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1106bc,_0x5084d2[_0x564b22([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1106bc;}_0x518938[_0x564b22([0x6d,0x6f,0x64,0x65,0x6c])][_0x564b22([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1106bc,_0x518938[_0x564b22([0x6d,0x6f,0x64,0x65,0x6c])][_0x564b22([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1106bc,_0x518938[_0x564b22([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x564b22([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22a41f(){return _0x18ac40(_0x564b22([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x307740(_0x564b22([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x564b22([0x73,0x74,0x61,0x74,0x65])]==_0x564b22([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x41e250(){return _0x18ac40(_0x564b22([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 _0x163950(){return _0x18ac40(_0x564b22([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa2fe7a(_0x33b8aa){const _0x2517bb=_0x16554f();_0x518938[_0x2517bb]=_0x564b22([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])+_0x33b8aa,_0x33b8aa[_0x564b22([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x564b22([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x16554f()]=_0x490bf6),_0x33b8aa!=_0x564b22([0x56,0x61,0x6c,0x69,0x64])&&_0x3f2aed();}function _0x16554f(){const _0x111d64=window[_0x564b22([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x564b22([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x564b22([0x6e,0x6f,0x77])]())[_0x564b22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x564b22([0x2e]),'');let _0x5f3ea4=_0x564b22([0x73]);for(let _0x314a2a=0x0;_0x314a2a<_0x111d64[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x314a2a+=0x2){let _0x5d58a5=window[_0x564b22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x111d64[_0x564b22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x314a2a,_0x314a2a+0x2));_0x5d58a5>=_0xf141d3[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d58a5-=_0xf141d3[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f3ea4+=_0xf141d3[_0x5d58a5];}return _0x5f3ea4;}function _0x563c7f(){const _0x5dcc17=_0x778802[_0x564b22([0x73,0x70,0x6c,0x69,0x74])](_0x564b22([0x2e]));if(0x3!=_0x5dcc17[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29b9(_0x5dcc17[0x1]);function _0x29b9(_0x105579){const _0x4d0ea2=_0x5d26d2(_0x105579);return _0x4d0ea2&&_0x2f8ddb()?_0x4d0ea2:null;function _0x2f8ddb(){const _0xad8cf2=_0x4d0ea2[_0x564b22([0x6a,0x74,0x69])],_0x3d328a=window[_0x564b22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xad8cf2[_0x564b22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xad8cf2[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a4a78={..._0x4d0ea2,[_0x564b22([0x6a,0x74,0x69])]:_0xad8cf2[_0x564b22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xad8cf2[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a4a78[_0x564b22([0x76,0x63])],_0x75afc4(_0x1a4a78)==_0x3d328a;}}}async function _0x3489f7(){let _0x20a3fb=!0x0;try{const _0x1e4bc5=_0x778802[_0x564b22([0x73,0x70,0x6c,0x69,0x74])](_0x564b22([0x2e])),[_0x1a03a6,_0x21c6e3,_0x1fc6e0]=_0x1e4bc5;return _0x224b22(_0x1a03a6),await _0x21e383(_0x1a03a6,_0x21c6e3,_0x1fc6e0),_0x20a3fb;}catch{return!0x1;}function _0x224b22(_0x107208){const _0x22943c=_0x5d26d2(_0x107208);_0x22943c&&_0x22943c[_0x564b22([0x61,0x6c,0x67])]==_0x564b22([0x45,0x53,0x32,0x35,0x36])||(_0x20a3fb=!0x1);}async function _0x21e383(_0x3ce6a5,_0x4f6442,_0x313973){const _0x44809d=window[_0x564b22([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x564b22([0x66,0x72,0x6f,0x6d])](_0x4a91cb(_0x313973),_0x17ad4c=>_0x17ad4c[_0x564b22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x334f12=new window[(_0x564b22([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x564b22([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ce6a5+_0x564b22([0x2e])+_0x4f6442),_0x3aa5f8=window[_0x564b22([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x564b22([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3aa5f8)return;const _0x5640fc=await _0x3aa5f8[_0x564b22([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x564b22([0x6a,0x77,0x6b]),_0x5a5676,{[_0x564b22([0x6e,0x61,0x6d,0x65])]:_0x564b22([0x45,0x43,0x44,0x53,0x41]),[_0x564b22([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x564b22([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x564b22([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3aa5f8[_0x564b22([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x564b22([0x6e,0x61,0x6d,0x65])]:_0x564b22([0x45,0x43,0x44,0x53,0x41]),[_0x564b22([0x68,0x61,0x73,0x68])]:{[_0x564b22([0x6e,0x61,0x6d,0x65])]:_0x564b22([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5640fc,_0x44809d,_0x334f12)||(_0x20a3fb=!0x1);}}function _0x5d26d2(_0x3f091e){return _0x3f091e[_0x564b22([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x564b22([0x65,0x79]))?JSON[_0x564b22([0x70,0x61,0x72,0x73,0x65])](_0x4a91cb(_0x3f091e)):null;}function _0x4a91cb(_0x36dcd7){return window[_0x564b22([0x61,0x74,0x6f,0x62])](_0x36dcd7[_0x564b22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x564b22([0x2b]))[_0x564b22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x564b22([0x2f])));}function _0x75afc4(_0x32958e){let _0x32c43e=0x1505;function _0x344ee3(_0x3e6c14){for(let _0xe4a921=0x0;_0xe4a921<_0x3e6c14[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe4a921++){const _0x5f57e5=_0x3e6c14[_0x564b22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe4a921);_0x32c43e=(_0x32c43e<<0x5)+_0x32c43e+_0x5f57e5,_0x32c43e&=_0x32c43e;}}function _0x25d909(_0x58bd63){Array[_0x564b22([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58bd63)?_0x58bd63[_0x564b22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25d909):_0x58bd63&&typeof _0x58bd63==_0x564b22([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x564b22([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58bd63)[_0x564b22([0x73,0x6f,0x72,0x74])]()[_0x564b22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a073c,_0x5b6b90])=>{_0x344ee3(_0x2a073c),_0x25d909(_0x5b6b90);}):_0x344ee3(window[_0x564b22([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58bd63));}return _0x25d909(_0x32958e),_0x32c43e>>>0x0;}function _0x353c73(_0x37a2cf){return _0x37a2cf[_0x564b22([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x564b22([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x564b22([0x30]));}function _0xc1f73d(_0x67641f){return _0x67641f[_0x564b22([0x73,0x70,0x6c,0x69,0x74])]('')[_0x564b22([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x564b22([0x6a,0x6f,0x69,0x6e])]('');}function _0x18ac40(_0x28dd38){return _0x518938[_0x564b22([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x564b22([0x68,0x61,0x73])](_0x28dd38);}function _0x307740(_0xf3d3fa){return _0x518938[_0x564b22([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x564b22([0x67,0x65,0x74])](_0xf3d3fa);}function _0x1106bc(){}function _0x564b22(_0x17e829){return _0x17e829['map'](_0x34f1b5=>String['fromCharCode'](_0x34f1b5))['join']('');}_0xa2fe7a(await _0x22289c());}(this);}['createRevision'](_0x4ce81){const _0x441666=this['editor']['plugins']['get']('Users');return new I({'id':_0x4ce81['id'],'name':_0x4ce81['name'],'creator':_0x4ce81['creatorId']?_0x441666['getUser'](_0x4ce81['creatorId']):null,'diffData':_0x4ce81['diffData']||_0x4ce81['data'],'authors':_0x4ce81['authorsIds']['map'](_0x45fb4b=>_0x441666['getUser'](_0x45fb4b)),'createdAt':new Date(_0x4ce81['createdAt']),'attributes':_0x4ce81['attributes'],'fromVersion':_0x4ce81['fromVersion'],'toVersion':_0x4ce81['toVersion']});}['addRevision'](_0x2505c8,_0xd04bf4=0x0){this['_revisions']['add'](_0x2505c8,_0xd04bf4);}['getRevision'](_0x2f21bd){return this['_revisions']['get'](_0x2f21bd);}['getRevisions'](_0x31b770={'toJSON':!0x1}){const _0x368c29=Array['from'](this['_revisions']);return _0x368c29['reverse'](),_0x31b770['toJSON']?_0x368c29['map'](_0x73a0ad=>_0x73a0ad['toJSON']()):_0x368c29;}['getIndex'](_0x4e3a50){return this['_revisions']['getIndex'](_0x4e3a50);}['getEarlierVisibleRevision'](_0x35b147){const [,_0x5dce91]=this['getRevisionsIterator'](_0x35b147,{'direction':'earlier'});return _0x5dce91;}['getLaterVisibleRevision'](_0x21cb42){const [,_0x221dfd]=this['getRevisionsIterator'](_0x21cb42,{'direction':'later'});return _0x221dfd;}['getRevisionsInDiff'](_0xa61871){const _0x550d2b=[];for(const _0x3193a7 of this['getRevisionsIterator'](_0xa61871['newRevisionId']))if(_0x550d2b['push'](_0x3193a7),_0x3193a7['id']===_0xa61871['oldRevisionId'])break;return _0x550d2b;}*['getRevisionsIterator'](_0x429148,{direction:_0x43b1f2='earlier',filter:_0x51bb77=()=>!0x0}={}){const _0x56fba9='earlier'===_0x43b1f2?0x1:-0x1;let _0x5b1e6c=this['_revisions']['get'](_0x429148),_0x469a9f=this['getIndex'](_0x5b1e6c);for(yield _0x5b1e6c;_0x5b1e6c;){if(_0x469a9f+=_0x56fba9,_0x5b1e6c=this['getRevision'](_0x469a9f),!_0x5b1e6c)return;_0x51bb77(_0x5b1e6c)&&(yield _0x5b1e6c);}}}class $ extends _0x30489c{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x543914,'c'],[_0x42a777,'a'],[_0x223628,'e'],[_0x70c8d6,'r'],[_0x5f8ef4,'u']]);['_typeCharToViewClass']=new Map([['c',_0x543914],['a',_0x42a777],['e',_0x223628],['r',_0x70c8d6],['u',_0x5f8ef4]]);async['loadRevisionData'](_0x29db4f,_0x33d0ab){if(_0x29db4f['diffData']||!_0x33d0ab)return;const _0x42704e=this['editor']['config']['get']('collaboration.channelId'),_0x266aeb=await _0x33d0ab['getRevision']({'channelId':_0x42704e,'revisionId':_0x29db4f['id']});_0x29db4f['diffData']=_0x266aeb['diffData'];}['getRevisionDocumentData'](_0x3edbfd){const _0x5c3f82={};for(const _0x2b280c in _0x3edbfd['diffData']){if(_0x3edbfd['diffData'][_0x2b280c]['attachChange']&&!_0x3edbfd['diffData'][_0x2b280c]['attachChange']['isAttached'])continue;const _0x2a5cf9=this['_removeRevisionMarkers'](JSON['parse'](_0x3edbfd['diffData'][_0x2b280c]['insertions'])),_0x5d330b=this['editor']['editing']['view']['document'],_0x869e92=new _0xa6ba10(_0x5d330b,_0x2a5cf9['map'](_0x1c1a6=>this['_getViewFromDiffObj'](_0x1c1a6,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5c3f82[_0x2b280c]=this['editor']['data']['processor']['toData'](_0x869e92),this['editor']['data']['processor']['useFillerType']('default');}return _0x5c3f82;}['getRevisionRootsAttributes'](_0x4819f9){const _0x291735={};for(const _0x5bb930 in _0x4819f9['diffData'])_0x4819f9['diffData'][_0x5bb930]['attachChange']&&!_0x4819f9['diffData'][_0x5bb930]['attachChange']['isAttached']||(_0x291735[_0x5bb930]=_0x4819f9['diffData'][_0x5bb930]['attributesAfter']||{});return _0x291735;}['_getTypeCharForViewElement'](_0x29f472){return this['_viewClassToTypeChar']['get'](_0x29f472['constructor']);}['_getViewFromDiffObj'](_0x1f63c0,_0x4dfc47){const _0x4e4782=this['editor']['editing']['view']['document'];if('string'==typeof _0x1f63c0)return new _0x41cee8(_0x4e4782,_0x1f63c0);{let _0x24accf,_0x17aa84;_0x17aa84='u'==_0x1f63c0['type']||'r'==_0x1f63c0['type']?[]:_0x1f63c0['children']['map'](_0x2adea8=>this['_getViewFromDiffObj'](_0x2adea8,_0x4dfc47));const _0x5d60f7=this['_typeCharToViewClass']['get'](_0x1f63c0['type'])||_0x1ccf8b,_0x5e8dc6=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x24accf=new _0x5d60f7(_0x4e4782,_0x1f63c0['name'],_0x1f63c0['attributes'],_0x17aa84),'u'==_0x1f63c0['type']&&_0x1f63c0['children'][0x0]){const _0x362f9e=_0x1f63c0['children'][0x0];if(_0x24accf['render']=function(_0x4536e5){const _0x37603a=_0x4536e5['createElement']('div');return _0x37603a['innerHTML']=_0x362f9e,_0x37603a['childNodes'][0x0];},_0x4dfc47){const _0x338d0c=new _0xa6ba10(_0x4e4782);_0x338d0c['_appendChild'](_0x24accf);const _0xeb6d52=Array['from'](_0x5e8dc6['viewChildrenToDom'](_0x338d0c,{'bind':!0x1})),_0x4e588f=_0x5e8dc6['domDocument']['createElement']('div');_0x4e588f['append'](..._0xeb6d52),_0x24accf=Array['from'](_0x5e8dc6['domChildrenToView'](_0x4e588f))[0x0];}}else{if('r'==_0x1f63c0['type']&&_0x1f63c0['children'][0x0]){const _0x2a54ee=_0x1f63c0['children'][0x0];if(_0x24accf['render']=function(_0x2a4776){_0x2a4776['innerHTML']=_0x2a54ee;},_0x4dfc47){const _0x237505=new _0xa6ba10(_0x4e4782);_0x237505['_appendChild'](_0x24accf);const _0x3eec89=Array['from'](_0x5e8dc6['viewChildrenToDom'](_0x237505,{'bind':!0x1})),_0x2a9e6a=_0x5e8dc6['domDocument']['createElement']('div');_0x2a9e6a['append'](..._0x3eec89);const _0x4b80f6=Array['from'](_0x5e8dc6['domChildrenToView'](_0x2a9e6a));_0x4b80f6['length']>0x1?_0x24accf['_appendChild'](_0x4b80f6):_0x24accf=_0x4b80f6[0x0];}}}if(_0x1f63c0['customProperties']){for(const [_0x494121,_0x5d6773]of _0x1f63c0['customProperties'])_0x24accf['_setCustomProperty'](_0x494121,_0x5d6773);}const _0x5326b2=void 0x0===_0x1f63c0['fillerOffset']?null:_0x1f63c0['fillerOffset'];return null!==_0x5326b2&&(_0x24accf['getFillerOffset']=()=>_0x5326b2),_0x24accf;}}['_makeModelFromViewString'](_0x5ddb93){const _0x52d385=JSON['parse'](_0x5ddb93),_0x3467cd=this['editor']['editing']['view']['document'],_0x4bc505=new _0xa6ba10(_0x3467cd,_0x52d385['map'](_0x1f79f6=>this['_getViewFromDiffObj'](_0x1f79f6,!0x0)));return this['editor']['data']['toModel'](_0x4bc505);}['_removeRevisionMarkers'](_0x4b29b7){return(_0x4b29b7=_0x4b29b7['filter'](_0x10fb90=>!_0x10fb90['name']||'revision-start'!==_0x10fb90['name']&&'revision-end'!==_0x10fb90['name']))['forEach'](_0x5a2c09=>{'string'!=typeof _0x5a2c09&&(_0x5a2c09['children']=this['_removeRevisionMarkers'](_0x5a2c09['children']),_0x5a2c09['attributes']=_0x5a2c09['attributes']['filter'](_0x212c7b=>!_0x212c7b[0x0]['startsWith']('data-revision-')));}),_0x4b29b7;}}function m(_0x3e4f18,_0x270623,_0x267e49){const t=_0x3e4f18['t'];switch(_0x270623){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'},_0x267e49);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x267e49);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 h extends _0x30489c{['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[_0x9482fc,S,$,_0x177daa];}constructor(_0x3b58f1){super(_0x3b58f1),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x302747=_0x506dfc();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x302747},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 _0x378543=this['repository']['getRevision'](0x0),_0x409a6c=_0x378543&&null===_0x378543['creator']?_0x378543:null;if(this['_continueCurrentRevision']=!!_0x409a6c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x7cb39c=this['_source']['getCurrentRevisionId'](),_0x3144e8=this['repository']['getRevision'](_0x7cb39c);if(_0x3144e8)this['_startingVersion']=_0x3144e8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x241d26=this['_source']['history']['_operations']['find'](_0x3e26fb=>!_0x3e26fb['_isInit']),_0x20d62b=_0x241d26?_0x241d26['baseVersion']:this['_source']['history']['version'];_0x378543?(_0x378543['toVersion']<_0x20d62b&&_0x378543['_update']({'toVersion':_0x20d62b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x409a6c['id'],this['_startingVersion']=_0x409a6c['fromVersion']):(this['_startingVersion']=_0x378543['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x20d62b,this['_continueCurrentRevision']=!0x1);}}else _0x409a6c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x409a6c['toVersion'],this['editor']['model']['document']['history']['version']),_0x409a6c['fromVersion']===_0x409a6c['toVersion']?(0x0!==_0x409a6c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x409a6c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x409a6c['id'],this['_startingVersion']=_0x409a6c['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',_0x54c798=>!_0x54c798),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5efb7e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2fe694;for(const _0xa5fca6 in _0x5efb7e){const _0xdaff57=_0xa5fca6,_0x12286f=_0x5efb7e[_0xdaff57];if('revisionHistoryLicenseKeyValid'==_0x12286f||'revisionHistoryLicenseKeyInvalid'==_0x12286f||'revisionHistoryLicenseKeyExpired'==_0x12286f||'revisionHistoryLicenseKeyDomainLimit'==_0x12286f||'revisionHistoryLicenseKeyNotAllowed'==_0x12286f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x12286f||'revisionHistoryLicenseKeyTrialLimit'==_0x12286f||'revisionHistoryLicenseKeyUsageLimit'==_0x12286f){delete _0x5efb7e[_0xdaff57],_0x2fe694=_0x12286f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2fe694&&_0x5efb7e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2fe694&&_0x5efb7e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2fe694&&_0x5efb7e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2fe694&&_0x5efb7e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2fe694&&_0x5efb7e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2fe694&&_0x5efb7e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2fe694&&_0x5efb7e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2dea11=this['repository']['getRevision'](0x0),_0x5f2b02=await this['getRevisionDocumentData'](_0x2dea11),_0x1af5bb=await this['getRevisionRootsAttributes'](_0x2dea11);this['_replaceEditorDataWithRevisionData'](_0x5f2b02,_0x1af5bb);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xbe1de9){this['_source']=_0xbe1de9;}async['update'](){const _0x2f5486=await this['_source']['getLatestVersion']();if(_0x2f5486>this['currentRevision']['toVersion']){await this['_loadState']();const _0x573cbc=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2f5486});_0x573cbc['authors']=_0x573cbc['authorsIds']['map'](_0x4884a1=>this['editor']['plugins']['get']('Users')['getUser'](_0x4884a1)),this['currentRevision']['_update'](_0x573cbc);}}async['saveRevision'](_0x53c258={},_0x151479=null){const _0x1139da=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x151479>this['currentRevision']['toVersion']&&(_0x151479=null),null===_0x151479&&(_0x151479=await this['_source']['getLatestVersion']());const _0x2f5f21=this['_getFromVersion'](_0x151479),_0x4b2ea1=this['buildRevisionData']({'from':_0x2f5f21,'to':_0x151479});if(this['currentRevision']['toVersion']<_0x151479){const _0x565724=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x151479,'to':_0x151479});_0x565724['authors']=[],_0x565724['authorsIds']=[],_0x565724['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x565724,!0x0),delete _0x565724['authors'],_0x1139da['push'](_0x565724);}_0x53c258['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x53c258['name']=_0x53c258['name']||null,_0x53c258['id']=_0x53c258['id']||_0x506dfc(),_0x53c258={..._0x53c258,..._0x4b2ea1};const _0x2a6dea=this['addRevisionData'](_0x53c258);_0x1139da['push'](_0x53c258);const _0x38328e=this['repository']['getIndex'](_0x2a6dea);if(0x0!==_0x38328e){const _0xa94f08=this['repository']['getRevision'](_0x38328e-0x1);if(_0xa94f08['fromVersion']!==_0x151479){const _0x2bede8=this['_revisionDataBuilder']['getData'](_0x151479,_0xa94f08['toVersion']),_0x530344={'id':_0xa94f08['id'],'diffData':_0x2bede8['diffData'],'authorsIds':_0x2bede8['authorsIds'],'authors':_0x2bede8['authorsIds']['map'](_0x5967c4=>this['editor']['plugins']['get']('Users')['getUser'](_0x5967c4)),'fromVersion':_0x151479};_0xa94f08===this['currentRevision']&&(_0x530344['createdAt']=new Date(_0x53c258['createdAt']['getTime']()+0xa)),_0xa94f08['_update'](_0x530344,!0x0),delete _0x530344['authors'],_0x1139da['push'](_0x530344);}}if(this['adapter']){for(const _0x27c192 of _0x1139da)this['_bufferUpdate'](_0x27c192['id'],_0x27c192,!0x0);this['sendBufferedUpdates']();}return _0x2a6dea;}['addRevisionData'](_0x1b62e8){const _0x8a639b=this['repository']['createRevision'](_0x1b62e8);return this['adapter']&&_0x8a639b['on']('_update',(_0x40c3bd,_0x4167cb,_0x244563)=>{_0x244563||(this['_bufferUpdate'](_0x4167cb['id'],_0x4167cb,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x8a639b,this['_findInsertionIndex'](_0x8a639b)),_0x8a639b;}async['getRevisionDocumentData'](_0x2160c4){return await this['_utils']['loadRevisionData'](_0x2160c4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2160c4);}async['getRevisionRootsAttributes'](_0x4c63e2){return await this['_utils']['loadRevisionData'](_0x4c63e2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4c63e2);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x450ee2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5b3bd4=0x0;_0x5b3bd4<_0x450ee2['length'];_0x5b3bd4++){const _0x41169d=_0x450ee2[_0x5b3bd4];let _0x304d47=!0x1;for(const _0x170784 of Object['keys'](_0x41169d))void 0x0===_0x41169d[_0x170784]?delete _0x41169d[_0x170784]:'id'!==_0x170784&&(_0x304d47=!0x0);_0x304d47||(_0x450ee2[_0x5b3bd4]=null);}if(_0x450ee2=_0x450ee2['filter'](_0xc8fb25=>null!==_0xc8fb25),!_0x450ee2['length'])return;for(let _0x135931=0x0;_0x135931<_0x450ee2['length'];_0x135931++){const _0x4af40a=_0x450ee2[_0x135931];void 0x0!==_0x4af40a['fromVersion']&&void 0x0===_0x4af40a['toVersion']&&(_0x4af40a['toVersion']=this['repository']['getRevision'](_0x4af40a['id'])['toVersion']),void 0x0!==_0x4af40a['toVersion']&&void 0x0===_0x4af40a['fromVersion']&&(_0x4af40a['fromVersion']=this['repository']['getRevision'](_0x4af40a['id'])['fromVersion']);}const _0x13d1ea=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x450ee2,_0x13d1ea)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xa01aa3=>{if(_0xa01aa3){for(const _0x510016 of _0xa01aa3)this['setRevisionData']({'id':_0x510016['id'],'createdAt':_0x510016['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4a304e=null,from:_0x4fe122=null,to:_0x224524=null}){_0x4fe122=null!==_0x4fe122?_0x4fe122:_0x4a304e['fromVersion'],_0x224524=null!==_0x224524?_0x224524:_0x4a304e['toVersion'];const _0x5b8d67=this['_revisionDataBuilder']['getData'](_0x4fe122,_0x224524),_0x48aaf0={'diffData':_0x5b8d67['diffData'],'authorsIds':_0x5b8d67['authorsIds'],'fromVersion':_0x4fe122,'toVersion':_0x224524};if(!_0x4a304e||_0x224524!==_0x4a304e['toVersion']){const _0x330eb0=_0x224524-0x1,_0x22659a=this['_source']['history']['getOperation'](_0x330eb0);_0x48aaf0['createdAt']=_0x22659a&&_0x22659a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4fe122===this['_loadedStateData']['fromVersion']){for(const _0x17b480 of this['_loadedStateData']['authors'])_0x48aaf0['authorsIds']['includes'](_0x17b480['id'])||_0x48aaf0['authorsIds']['push'](_0x17b480['id']);}return _0x48aaf0;}['_bufferUpdate'](_0x4630bb,_0x1f2f2d,_0x31d362){if(this['_bufferedUpdates']['has'](_0x4630bb)){const _0x5e2c80=this['_bufferedUpdates']['get'](_0x4630bb);_0x1f2f2d=_0x31d362?{..._0x5e2c80,..._0x1f2f2d}:{..._0x1f2f2d,..._0x5e2c80};}this['_bufferedUpdates']['set'](_0x4630bb,_0x1f2f2d);}['setRevisionData'](_0x4c28ad){const _0x3495cf=this['repository']['getRevision'](_0x4c28ad['id']);if(_0x4c28ad['createdAt']&&(_0x4c28ad['createdAt']=new Date(_0x4c28ad['createdAt'])),_0x4c28ad['authorsIds']){const _0x335cfd=this['editor']['plugins']['get']('Users');_0x4c28ad['authors']=_0x4c28ad['authorsIds']['map'](_0x143526=>_0x335cfd['getUser'](_0x143526));}_0x3495cf['_update'](_0x4c28ad,!0x0);}['_createInitialRevision'](_0x3c1e24){const _0x1ae19b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1ae19b)this['_initialRevisionId']=_0x1ae19b['id'];else{const _0xd4581c=!this['editor']['model']['document']['roots']['find'](_0x52568e=>this['editor']['model']['hasContent'](_0x52568e)),_0x2ba037=this['editor']['plugins']['get']('Users')['me']['id'],_0x4de131=m(this['editor']['locale'],_0xd4581c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3c1e24,'to':_0x3c1e24,'id':this['_initialRevisionId'],'name':_0x4de131,'creatorId':_0x2ba037});}}['_createCurrentRevision'](_0x5a29e5){const _0x4cdf87=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4cdf87),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5a29e5,'to':_0x5a29e5,'id':_0x4cdf87,'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'](_0x3e1f32,_0x5ade8d){let _0x48972d=this['editor']['config']['get']('initialData'),_0x51beae=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48972d){_0x48972d={};for(const _0x1a23b9 of this['editor']['model']['document']['getRootNames']())_0x48972d[_0x1a23b9]='';}if('string'==typeof _0x48972d&&(_0x48972d={'main':_0x48972d}),void 0x0===_0x51beae){_0x51beae={};for(const _0x543f94 of this['editor']['model']['document']['getRootNames']())_0x51beae[_0x543f94]={};}let _0x1238d8=!0x1;const _0x17080a=Object['keys'](_0x48972d),_0x5bea13=Object['keys'](_0x3e1f32);for(const _0x5f5547 of _0x17080a){if(_0x48972d[_0x5f5547]!==_0x3e1f32[_0x5f5547]&&''!==_0x48972d[_0x5f5547]['trim']()){_0x1238d8=!0x0;break;}if(!_0x4a9e9c(_0x51beae[_0x5f5547],_0x5ade8d[_0x5f5547])&&Object['keys'](_0x51beae[_0x5f5547])['length']>0x0){_0x1238d8=!0x0;break;}}_0x1238d8||(_0x1238d8=_0x5bea13['some'](_0x401210=>!this['editor']['model']['document']['getRoot'](_0x401210))),_0x1238d8&&_0x3d0d05('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48972d,'editorRootsAttributes':_0x51beae,'revisionData':_0x3e1f32,'revisionRootsAttributes':_0x5ade8d}),this['editor']['config']['set']('initialData',_0x3e1f32),this['editor']['config']['set']('rootsAttributes',_0x5ade8d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x7e49a2=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x7e49a2['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x32c4df){const _0x229017=this['repository']['getRevisions']();_0x229017['reverse']();let _0x4f4e76=0x0;for(;_0x4f4e76<_0x229017['length'];){const _0x763ae4=_0x229017[_0x4f4e76];if(_0x763ae4===this['currentRevision']){_0x4f4e76++;continue;}if(_0x763ae4['id']===this['_initialRevisionId'])break;const _0x430915=_0x32c4df['toVersion']-_0x763ae4['toVersion']||_0x32c4df['fromVersion']-_0x763ae4['fromVersion'];if(_0x430915>0x0)break;if(_0x430915<0x0)_0x4f4e76++;else{if(!_0x32c4df['creator']&&_0x763ae4['creator'])break;if(_0x763ae4['creator']||!_0x32c4df['creator']){if(_0x32c4df['createdAt']>_0x763ae4['createdAt'])break;_0x4f4e76++;}else _0x4f4e76++;}}return _0x4f4e76;}['_getFromVersion'](_0x1455cd){const _0x247839=this['repository']['getRevisions']();_0x247839['reverse'](),_0x247839['shift']();const _0x23bbf9=_0x247839['find'](_0x1f97a4=>_0x1f97a4['toVersion']<=_0x1455cd)['toVersion'];return _0x23bbf9<this['_startingVersion']?this['_startingVersion']:_0x23bbf9;}['_makeRevision']({name:_0x7f5da,from:_0x30b9f4,to:_0x2cbec,creatorId:_0xf3fab0,id:_0x298790}){const _0x20b8dd=this['buildRevisionData']({'from':_0x30b9f4,'to':_0x2cbec});_0x20b8dd['name']=_0x7f5da,_0x20b8dd['creatorId']=_0xf3fab0,_0x20b8dd['id']=_0x298790;const _0xc7f7d7=this['addRevisionData'](_0x20b8dd);return this['adapter']&&this['_bufferUpdate'](_0x20b8dd['id'],_0x20b8dd,!0x0),_0xc7f7d7;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x56485d){this['editor']=_0x56485d,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'](_0x32c738){this['source']=_0x32c738;const _0xf873ae=new Map(),_0x3e8494=new Map(),_0x3c5729=this['editor']['model']['document']['roots']['map'](_0x52d4c6=>_0x52d4c6['rootName']);for(const _0x347394 of _0x3c5729){const _0x3496f4=this['editor']['model']['document']['getRoot'](_0x347394),_0x959024=x(_0x3496f4);_0xf873ae['set'](_0x347394,_0x959024),_0x3e8494['set'](_0x347394,Object['fromEntries'](_0x3496f4['getAttributes']()));}const _0x2bf085=Array['from'](this['editor']['model']['markers'])['map'](_0x3f845a=>[_0x3f845a['name'],_0x3f845a['getRange']()]),_0x5c218e=this['source']['version'];this['_saveMetaData'](_0x5c218e,_0xf873ae,_0x2bf085,_0x3e8494),this['_startingRevisionId']=this['_revisionId'];const _0x5949ec=new Map(),_0x58fb77=new Map();for(const _0x3f6115 of _0x3c5729){const _0x86b8c3=N(_0x3f6115);_0x5949ec['set'](_0x3f6115,_0x86b8c3),_0x58fb77['set'](_0x3f6115,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5949ec,[],_0x58fb77);}['getData'](_0x222541,_0x8c805d){if(this['_lastFrom']===_0x222541&&this['_lastTo']<=_0x8c805d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x8c805d,!0x0);else{if(!this['_savedMetaData']['has'](_0x222541)){const _0x404bd9=this['_getPreviousFrom'](_0x222541);this['_calculateMetaData'](_0x404bd9,_0x222541,!0x1);}this['_calculateMetaData'](_0x222541,_0x8c805d,!0x0);}return this['_lastFrom']=_0x222541,this['_lastTo']=_0x8c805d,this['_getState']();}['loadState'](_0x3fe561){if(!this['_savedMetaData']['has'](_0x3fe561['fromVersion'])){const _0x978ac1=this['_getPreviousFrom'](_0x3fe561['fromVersion']);this['_calculateMetaData'](_0x978ac1,_0x3fe561['fromVersion'],!0x1);}this['_calculateMetaData'](_0x3fe561['fromVersion'],_0x3fe561['toVersion'],!0x1);const _0x15f89f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3fe561['fromVersion'],this['_lastTo']=_0x3fe561['toVersion'];for(const _0x11f239 in _0x3fe561['diffData']){const _0x9a3c77=_0x3fe561['diffData'][_0x11f239]['attachChange'],_0x4be334=_0x2b1973(_0x3fe561['diffData'][_0x11f239]['attributesBefore'])||{},_0x67d84f=_0x15f89f['_makeModelFromViewString'](_0x3fe561['diffData'][_0x11f239]['deletions']);_0x67d84f['rootName']=_0x11f239,_0x67d84f['_isAttached']=!_0x9a3c77||!_0x9a3c77['isAttached'],_0x67d84f['isAttached']=()=>_0x67d84f['_isAttached'],this['_baseRoots']['set'](_0x11f239,_0x67d84f),this['_baseRootsAttributes']['set'](_0x11f239,_0x4be334),_0x9a3c77&&this['_touchedRoots']['set'](_0x11f239,_0x9a3c77);const _0x18b691=this['_makeIdsRoot'](_0x67d84f);this['_baseIdsRoots']['set'](_0x11f239,_0x18b691);for(const [_0x5cd186,_0x2cffa7]of _0x67d84f['markers']){if(!_0x5cd186['startsWith']('revision:'))continue;const _0x1127b6=_0x5cd186['split'](':')[0x2];for(const _0x48301e of _0x2cffa7['getWalker']({'singleCharacters':!0x0})){const _0x491ce0=this['_getVidAttributeName'](_0x48301e),_0x57b518='elementEnd'==_0x48301e['type']?_0x48301e['previousPosition']['path']['slice'](0x0,-0x1):_0x48301e['previousPosition']['path'],_0x1f6e95=_0x18b691['getNodeByPath'](_0x57b518)['getAttribute'](_0x491ce0);this['_touched']['set'](_0x1f6e95,{'userId':_0x1127b6});}_0x67d84f['markers']['delete'](_0x5cd186);}}this['_startingRevisionId']=this['_revisionId'];const _0x272e34=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x51b279=>!this['_touched']['has'](_0x51b279));let _0x1a0c55=0x0;const _0x104ccb=new Map();for(const _0x5c1c4a in _0x3fe561['diffData']){const _0xda5d8b=_0x3fe561['diffData'][_0x5c1c4a]['attachChange'],_0x269ba1=_0x2b1973(_0x3fe561['diffData'][_0x5c1c4a]['attributesAfter'])||{},_0xae959=_0x15f89f['_makeModelFromViewString'](_0x3fe561['diffData'][_0x5c1c4a]['insertions']);_0xae959['rootName']=_0x5c1c4a,_0xae959['_isAttached']=!_0xda5d8b||_0xda5d8b['isAttached'],_0xae959['isAttached']=()=>_0xae959['_isAttached'],this['_diffRoots']['set'](_0x5c1c4a,_0xae959),this['_diffRootsAttributes']['set'](_0x5c1c4a,_0x269ba1);const _0xd5467e=this['_makeIdsRoot'](_0xae959,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5c1c4a,_0xd5467e),_0x104ccb['set'](_0x5c1c4a,_0xae959['isAttached']()?_0x269ba1:{});for(const [_0x2ef94a,_0x1927f1]of _0xae959['markers']){if(!_0x2ef94a['startsWith']('revision:'))continue;const _0xfe11b1=_0x2ef94a['split'](':')[0x2];for(const _0x49bf58 of _0x1927f1['getWalker']({'singleCharacters':!0x0})){const _0x4b6ece=this['_getVidAttributeName'](_0x49bf58),_0x333bb9=this['_revisionId']++,_0x417fa0='elementEnd'==_0x49bf58['type']?_0x49bf58['previousPosition']['path']['slice'](0x0,-0x1):_0x49bf58['previousPosition']['path'];_0xd5467e['getNodeByPath'](_0x417fa0)['_setAttribute'](_0x4b6ece,_0x333bb9),this['_touched']['set'](_0x333bb9,{'userId':_0xfe11b1});}_0xae959['markers']['delete'](_0x2ef94a);}for(const _0x2b6219 of this['editor']['model']['createRangeIn'](_0xae959)['getWalker']({'singleCharacters':!0x0})){const _0xcebbc9=this['_getVidAttributeName'](_0x2b6219),_0x52f754='elementEnd'==_0x2b6219['type']?_0x2b6219['previousPosition']['path']['slice'](0x0,-0x1):_0x2b6219['previousPosition']['path'],_0x2000cf=_0xd5467e['getNodeByPath'](_0x52f754);_0x2000cf['getAttribute'](_0xcebbc9)>0x0||_0x2000cf['_setAttribute'](_0xcebbc9,_0x272e34[_0x1a0c55++]);}for(const [_0x21afa5,_0x26f83d]of _0xae959['markers'])_0x21afa5['startsWith']('revision:')||this['_markers']['set'](_0x21afa5,_0x26f83d);}const {roots:_0x545f46}=this['_savedMetaData']['get'](_0x3fe561['fromVersion']),{roots:_0x1bf286}=this['_savedMetaData']['get'](_0x3fe561['toVersion']),_0x29558f=x(_0x545f46['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x29558f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29558f,Number['NEGATIVE_INFINITY']));const _0x13c2c2=x(_0x1bf286['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x13c2c2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13c2c2));const _0x9abcba=Array['from'](this['_diffRoots'])['map'](([_0x2cb9d6,_0x2f397c])=>[_0x2cb9d6,x(_0x2f397c)]);this['_saveMetaData'](this['_lastTo'],_0x9abcba,this['_markers'],_0x104ccb);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x42aeae,_0x54e046,_0x31d1d1,_0x4f9303){const _0x50cbb7=new Map(_0x54e046),_0x165e91=new Map(_0x2b1973(_0x4f9303)),_0x3dd5af=new Map();for(const [_0x429442,_0xe08259]of _0x31d1d1)_0x3dd5af['set'](_0x429442,{'start':_0xe08259['start']['clone'](),'end':_0xe08259['end']['clone'](),'rootName':_0xe08259['root']['rootName']});this['_savedMetaData']['set'](_0x42aeae,{'roots':_0x50cbb7,'markers':_0x3dd5af,'rootsAttributes':_0x165e91});}['_removeMetaData'](_0x2c4f9d){this['_savedMetaData']['delete'](_0x2c4f9d);}['_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'](_0x29d750,_0x533bb8=null){let _0x2890cd=null;_0x29d750['is']('documentFragment')||(_0x2890cd=new _0x236395(_0x29d750['name'],{'vid_start':null===_0x533bb8?this['_revisionId']++:_0x533bb8++}));const _0x3efe75=[];for(const _0x41f00e of _0x29d750['getChildren']())if(_0x41f00e['is']('element')){_0x3efe75['push'](this['_makeIdsRoot'](_0x41f00e,_0x533bb8));const _0x4add81=_0x3efe75[_0x3efe75['length']-0x1];null!==_0x533bb8&&(_0x533bb8=_0x4add81['is']('element','$text')?_0x4add81['getAttribute']('vid')+0x1:_0x4add81['getAttribute']('vid_end')+0x1);}else{for(let _0x472a7e=0x0;_0x472a7e<_0x41f00e['offsetSize'];_0x472a7e++)_0x3efe75['push'](new _0x236395('$text',{'vid':null===_0x533bb8?this['_revisionId']++:_0x533bb8++}));}if(_0x29d750['is']('documentFragment')){const _0x37a918=N(_0x29d750['rootName']);return _0x37a918['_insertChild'](0x0,_0x3efe75),_0x37a918;}return _0x2890cd['_setAttribute']('vid_end',null===_0x533bb8?this['_revisionId']++:_0x533bb8++),_0x2890cd['_insertChild'](0x0,_0x3efe75),_0x2890cd;}['_calculateMetaData'](_0x40635f,_0x3485d9,_0x14ac3c){this['_reset']();const {roots:_0x4b61e1,markers:_0x38edfb,rootsAttributes:_0xa11558}=this['_savedMetaData']['get'](_0x40635f);this['_baseRoots']=new Map(_0x4b61e1),this['_baseRootsAttributes']=new Map(_0x2b1973(_0xa11558));for(const [_0x2a5ecd,_0x2328f0]of this['_baseRoots'])if('$graveyard'!==_0x2a5ecd&&(this['_diffRoots']['set'](_0x2a5ecd,x(_0x2328f0)),this['_diffRootsAttributes']=new Map(_0x2b1973(_0xa11558)),_0x14ac3c)){const _0x322c49=this['_revisionId'];this['_idsRoots']['set'](_0x2a5ecd,this['_makeIdsRoot'](_0x2328f0)),this['_baseIdsRoots']['set'](_0x2a5ecd,this['_makeIdsRoot'](_0x2328f0,_0x322c49));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x14ac3c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1525b1,_0x47dd38]of _0x38edfb){const _0x59758b=this['_baseRoots']['get'](_0x47dd38['rootName']),_0x5ee52c=this['_diffRoots']['get'](_0x47dd38['rootName']),_0x114be8=new _0x9392bd(this['_fixPosition'](_0x47dd38['start'],_0x59758b),this['_fixPosition'](_0x47dd38['end'],_0x59758b)),_0x59c2d7=this['_fixRange'](_0x114be8,_0x5ee52c);_0x59758b['markers']['set'](_0x1525b1,_0x114be8),this['_markers']['set'](_0x1525b1,_0x59c2d7);}this['_applyOperations'](_0x40635f,_0x3485d9,_0x14ac3c);}['_applyOperations'](_0x195eda,_0x278276,_0x27a81d){for(const _0x1741a3 of this['source']['getOperations'](_0x195eda,_0x278276))this['_handleOperation'](_0x1741a3,_0x27a81d);for(const _0xa3435d of this['_diffRoots']['values']())_0xa3435d['markers']['clear']();for(const [_0x540f56,_0x9adc44]of this['_markers']){this['_diffRoots']['get'](_0x9adc44['root']['rootName'])['markers']['set'](_0x540f56,_0x9adc44['clone']());}const _0x35357a=new Map(),_0x5cd96a=new Map();for(const [_0xaf83b3,_0x49d12e]of this['_diffRoots'])_0x35357a['set'](_0xaf83b3,x(_0x49d12e)),_0x5cd96a['set'](_0xaf83b3,this['_diffRootsAttributes']['get'](_0xaf83b3));this['_saveMetaData'](_0x278276,_0x35357a,this['_markers'],_0x5cd96a);}['_getPreviousFrom'](_0x31e879){const _0x2c5ea8=Array['from'](this['_savedMetaData']['keys']());_0x2c5ea8['sort']((_0x18133b,_0x3cc843)=>_0x18133b-_0x3cc843),_0x2c5ea8['reverse']();for(const _0x157940 of _0x2c5ea8)if(_0x157940<_0x31e879)return _0x157940;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x476258,_0x5793c2){const _0x41aa43=Array['from'](_0x5793c2['markers'])['map'](([_0x150a3a,_0x554599])=>[_0x150a3a,this['_fixRange'](_0x554599,_0x476258)]);_0x476258['markers']=new Map(_0x41aa43);}['_transformMarkers'](_0x2b889e){for(const _0x108e40 of this['_markers']['values']()){const _0x50d881=_0x108e40['getTransformedByOperation'](_0x2b889e),_0x1a741b=_0x9392bd['_createFromRanges'](_0x50d881);_0x108e40['start']=_0x1a741b['start'],_0x108e40['end']=_0x1a741b['end'];}}['_handleOperation'](_0x330b4c,_0x172b74){if('addRoot'!=_0x330b4c['type']&&'detachRoot'!=_0x330b4c['type']){if('insert'==_0x330b4c['type']){const _0x437137=_0x330b4c['position']['root']['rootName'];this['_diffRoots']['has'](_0x437137)||(this['_diffRoots']['set'](_0x437137,N(_0x437137,!0x0)),this['_diffRootsAttributes']['set'](_0x437137,{}),_0x172b74&&this['_idsRoots']['set'](_0x437137,N(_0x437137,!0x0)));}else{if('addRootAttribute'==_0x330b4c['type']||'removeRootAttribute'==_0x330b4c['type']||'changeRootAttribute'==_0x330b4c['type'])return void this['_handleRootAttributeOperation'](_0x330b4c);'marker'==_0x330b4c['type']&&this['_handleMarkerOperation'](_0x330b4c);}if('marker'!==_0x330b4c['type']){const _0x3b47d0=this['_cloneOperation'](_0x330b4c,this['_diffRoots']);_0x3b47d0['_execute'](),this['_transformMarkers'](_0x3b47d0);}if(_0x172b74)switch(_0x330b4c['type']){case'insert':this['_handleInsertOperation'](_0x330b4c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x330b4c);break;case'merge':this['_handleMergeOperation'](_0x330b4c);break;case'split':this['_handleSplitOperation'](_0x330b4c);}}else this['_handleRootOperation'](_0x330b4c,_0x172b74);}['_cloneOperation'](_0xef32a6,_0x4c0be8){const _0x1294d1=_0xef32a6['clone']();return _0x1294d1['_authorId']=_0xef32a6['_authorId'],this['_fixOperation'](_0x1294d1,_0x4c0be8),_0x1294d1;}['_getBaseVids'](_0x1b63dd){return _0x1b63dd['map'](_0xc9239a=>{const _0x169c54=this['_getVidAttributeName'](_0xc9239a);return Number(_0xc9239a['item']['getAttribute'](_0x169c54));});}['_generateTape'](_0x2e87bb,_0x25488f){if(_0x2e87bb['is']('element','$text'))_0x25488f['push']({'item':_0x2e87bb,'type':'text'});else{_0x2e87bb['is']('element')&&_0x25488f['push']({'item':_0x2e87bb,'type':'elementStart'});for(const _0x584921 of _0x2e87bb['getChildren']())this['_generateTape'](_0x584921,_0x25488f);_0x2e87bb['is']('element')&&_0x25488f['push']({'item':_0x2e87bb,'type':'elementEnd'});}return _0x25488f;}['_getState'](){const _0x6bd9f5=new Map(this['_touched']),_0x4a8f52=new Map(_0x6bd9f5),_0x92ff40=new Map(),_0x20ffa6={'insertions':{},'deletions':{}},_0x4091c3={'insertions':{},'deletions':{}},_0x41d388=new Map(),_0x580f02=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x580f02['delete']('$graveyard');for(const _0x4f5500 of _0x580f02){const _0x47e63b=this['_diffRoots']['get'](_0x4f5500)||N(_0x4f5500,!0x1),_0x46e79b=this['_baseRoots']['get'](_0x4f5500)||N(_0x4f5500,!0x1);_0x47e63b['isAttached']()||_0x46e79b['isAttached']()?(_0x20ffa6['insertions'][_0x4f5500]=x(_0x47e63b),_0x20ffa6['deletions'][_0x4f5500]=x(_0x46e79b),this['_copyMarkers'](_0x20ffa6['deletions'][_0x4f5500],_0x46e79b),this['_copyMarkers'](_0x20ffa6['insertions'][_0x4f5500],_0x47e63b),_0x4091c3['insertions'][_0x4f5500]=this['_generateTape'](this['_idsRoots']['get'](_0x4f5500),[]),_0x4091c3['deletions'][_0x4f5500]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4f5500)||N(_0x4f5500,!0x1),[])):_0x580f02['delete'](_0x4f5500);}for(const _0x3c1210 of _0x580f02){const _0x48c554=_0x4091c3['insertions'][_0x3c1210];for(const _0x4941ce of _0x48c554){const _0x452dc2=this['_getVidAttributeName'](_0x4941ce),_0x1293d0=_0x4941ce['item']['getAttribute'](_0x452dc2);_0x4a8f52['delete'](_0x1293d0),_0x1293d0>=this['_startingRevisionId']&&_0x92ff40['set'](_0x1293d0,_0x6bd9f5['get'](_0x1293d0));}}for(const _0x422b53 of _0x580f02){const _0xe1986b=_0x4091c3['insertions'][_0x422b53],_0x51b145=this['_getBaseVids'](_0x4091c3['deletions'][_0x422b53]);let _0x1045f6=0x0;for(const _0x2f801c of _0xe1986b){const _0xc6eb86=this['_getVidAttributeName'](_0x2f801c),_0x217608=_0x2f801c['item']['getAttribute'](_0xc6eb86);if(!_0x92ff40['has'](_0x217608)&&!_0x41d388['has'](_0x217608)){if(_0x4a8f52['has'](_0x217608))_0x1045f6++;else{if(_0x217608!=_0x51b145[_0x1045f6]){const _0x4327a2=_0x6bd9f5['get'](_0x217608)||_0x6bd9f5['get'](_0x51b145[_0x1045f6]);for(;_0x217608!=_0x51b145[_0x1045f6];)_0x4a8f52['has'](_0x51b145[_0x1045f6])||(_0x41d388['set'](_0x51b145[_0x1045f6],_0x4327a2),_0x6bd9f5['set'](_0x51b145[_0x1045f6],_0x4327a2)),_0x1045f6++;}_0x1045f6++;}}}}for(const _0xd1af18 of _0x580f02){const _0x3aeb42=_0x4091c3['insertions'][_0xd1af18];for(const _0x3e8958 of _0x3aeb42){const _0x54a2d2=this['_getVidAttributeName'](_0x3e8958),_0x40ab08=_0x3e8958['item']['getAttribute'](_0x54a2d2);if(_0x41d388['has'](_0x40ab08)){const _0x45b27f=_0x41d388['get'](_0x40ab08);_0x4a8f52['has'](_0x40ab08)||_0x4a8f52['set'](_0x40ab08,{..._0x45b27f}),_0x92ff40['set'](_0x40ab08,{..._0x45b27f});}}}for(const _0x3342ba of _0x4a8f52['keys']())_0x3342ba>=this['_startingRevisionId']&&_0x4a8f52['delete'](_0x3342ba);const _0x436626=new Map();for(const _0x158ac8 of _0x580f02){let _0x29ed63=_0x4091c3['insertions'][_0x158ac8];for(const _0x3d35fb of _0x29ed63)if(_0x3d35fb['item']['is']('element','tableCell')){const _0x5329ae=this['_getVidAttributeName'](_0x3d35fb),_0x230210=_0x3d35fb['item']['getAttribute'](_0x5329ae);if(_0x92ff40['has'](_0x230210)){const _0x4c0ad0=_0x3d35fb['item']['parent']['parent']['getAttribute']('vid_start'),_0x74b52f=_0x436626['get'](_0x4c0ad0)||new Set();_0x74b52f['add'](_0x92ff40['get'](_0x230210)['userId']),_0x436626['set'](_0x4c0ad0,_0x74b52f);}}_0x29ed63=_0x4091c3['deletions'][_0x158ac8];for(const _0x1fdd49 of _0x29ed63)if(_0x1fdd49['item']['is']('element','tableCell')){const _0x4bcb8b=this['_getVidAttributeName'](_0x1fdd49),_0x31bb63=_0x1fdd49['item']['getAttribute'](_0x4bcb8b);if(_0x4a8f52['has'](_0x31bb63)){const _0x37dc60=_0x1fdd49['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f2747=_0x436626['get'](_0x37dc60)||new Set();_0x4f2747['add'](_0x4a8f52['get'](_0x31bb63)['userId']),_0x436626['set'](_0x37dc60,_0x4f2747);}}for(const _0x1ceac5 of _0x436626['keys']())(_0x92ff40['has'](_0x1ceac5)||_0x4a8f52['has'](_0x1ceac5))&&_0x436626['delete'](_0x1ceac5);}for(const _0x5589ce of _0x580f02){const _0x1f7afd=_0x4091c3['insertions'][_0x5589ce];let _0x2113dd=null,_0x260f76=null;for(const _0x2eef88 of _0x1f7afd){const _0x1e7e85=this['_getVidAttributeName'](_0x2eef88),_0x3576af=_0x2eef88['item']['getAttribute'](_0x1e7e85),_0x3d01ff=_0x436626['get'](_0x3576af);_0x3d01ff&&'elementStart'==_0x2eef88['type']&&(_0x2113dd=Array['from'](_0x3d01ff)[0x0],_0x260f76=_0x2eef88['item']['getAttribute']('vid_end')),_0x2113dd&&(_0x4a8f52['set'](_0x3576af,{'userId':_0x2113dd}),_0x92ff40['set'](_0x3576af,{'userId':_0x2113dd})),_0x3576af==_0x260f76&&(_0x2113dd=null,_0x260f76=null);}}const _0x2d1a02={},_0x2ac56b=new Set();for(const _0x14300b of _0x580f02){const _0x290bc9=_0x20ffa6['deletions'][_0x14300b],_0x429026=_0x20ffa6['insertions'][_0x14300b];for(const {userId:_0xf30cfc}of this['_touchedMarkers']['values']())null!==_0xf30cfc&&_0x2ac56b['add'](_0xf30cfc);for(const {userId:_0x5cb06a}of this['_touchedRoots']['values']())null!==_0x5cb06a&&_0x2ac56b['add'](_0x5cb06a);this['_markChanges'](_0x429026,_0x4091c3['insertions'][_0x14300b],_0x92ff40,'insertion',_0x2ac56b),this['_markChanges'](_0x290bc9,_0x4091c3['deletions'][_0x14300b],_0x4a8f52,'deletion',_0x2ac56b),_0x2d1a02[_0x14300b]={'insertions':this['_prepareViewToSave'](_0x429026),'deletions':this['_prepareViewToSave'](_0x290bc9),'attachChange':this['_touchedRoots']['get'](_0x14300b)||null,'attributesBefore':_0x2b1973(this['_baseRootsAttributes']['get'](_0x14300b))||{},'attributesAfter':_0x2b1973(this['_diffRootsAttributes']['get'](_0x14300b))};}return{'diffData':_0x2d1a02,'authorsIds':Array['from'](_0x2ac56b)};}['_processRootBeforeSave'](_0x45f89e){for(const [,_0x46ec64]of _0x45f89e['markers']){const _0x30e4db=_0x46ec64['start']['getAncestors']()['filter'](_0x50d744=>'tableCell'==_0x50d744['name']);for(const _0x318714 of _0x30e4db)0x1==_0x318714['childCount']&&_0x318714['getChild'](0x0)['is']('element','paragraph')&&_0x318714['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x18f49f){this['_processRootBeforeSave'](_0x18f49f);const _0xe5afcf=this['editor']['data']['toView'](_0x18f49f,{}),_0x296e9e=Array['from'](_0xe5afcf['getChildren']())['map'](_0x1f3359=>this['_getViewJson'](_0x1f3359));return JSON['stringify'](_0x296e9e);}['_getViewJson'](_0x49e127){if(_0x49e127['is']('$text'))return _0x49e127['data'];{const _0x29e045=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2f716b=_0x49e127,_0x197bcf=this['editor']['data']['htmlProcessor']['domConverter'],_0x4b414b={'type':_0x29e045['_getTypeCharForViewElement'](_0x2f716b),'name':_0x2f716b['name'],'attributes':Array['from'](_0x2f716b['getAttributes']()),'children':Array['from'](_0x2f716b['getChildren']())['map'](_0x262bda=>this['_getViewJson'](_0x262bda))};if(_0x49e127['is']('uiElement')&&'$comment'!=_0x49e127['name']){const _0x2c13bb=_0x49e127['render'](_0x197bcf['domDocument'],_0x197bcf);_0x4b414b['children']['push'](_0x2c13bb['outerHTML']);}else{if(_0x49e127['is']('rawElement')){const _0x476156=_0x197bcf['domDocument']['createElement'](_0x2f716b['name']);_0x49e127['render'](_0x476156,_0x197bcf),_0x4b414b['children']['push'](_0x476156['innerHTML']);}}const _0x507bdf=Array['from'](_0x2f716b['getCustomProperties']());_0x507bdf['length']>0x0&&(_0x4b414b['customProperties']=_0x507bdf);const _0xbc2318=_0x2f716b['getFillerOffset']();return null!==_0xbc2318&&(_0x4b414b['fillerOffset']=_0xbc2318),_0x4b414b;}}['_markChanges'](_0x1f8b3a,_0x488dd0,_0x3f78fe,_0x4ac2e2,_0x578ac1){let _0x518fef=null,_0x1e9261=null,_0x508e14=0x0;const _0x446abf=this['editor']['model'];for(let _0x36fdbf=0x0;_0x36fdbf<_0x488dd0['length'];_0x36fdbf++){const _0x487a4c=this['_getVidAttributeName'](_0x488dd0[_0x36fdbf]),_0x13a525=_0x488dd0[_0x36fdbf]['item']['getAttribute'](_0x487a4c),_0x45821f=_0x3f78fe['get'](_0x13a525),_0x3b2821=_0x36fdbf==_0x488dd0['length']-0x1;(!_0x518fef&&_0x45821f&&(_0x518fef=_0x45821f,_0x1e9261=_0x488dd0[_0x36fdbf]),_0x518fef&&(!_0x45821f||_0x45821f['userId']!=_0x518fef['userId']))&&(_0x4e1a10(_0x45821f,P(_0x1e9261,_0x1f8b3a,_0x446abf),P(_0x488dd0[_0x36fdbf],_0x1f8b3a,_0x446abf)),_0x518fef=_0x45821f||null,_0x1e9261=_0x45821f?_0x488dd0[_0x36fdbf]:null),_0x518fef&&_0x3b2821&&_0x4e1a10(_0x45821f,P(_0x1e9261,_0x1f8b3a,_0x446abf),V(_0x488dd0[_0x36fdbf],_0x1f8b3a,_0x446abf));}function _0x4e1a10(_0x5bc49b,_0x57eb28,_0x1ede33){const _0x12abe7=_0x518fef['userId'],_0x3986c2='revision:'+_0x4ac2e2+':'+_0x12abe7+':'+_0x508e14++,_0x57a336=_0x446abf['createRange'](_0x57eb28,_0x1ede33);_0x1f8b3a['markers']['set'](_0x3986c2,_0x57a336),null!==_0x12abe7&&_0x578ac1['add'](_0x12abe7);}}['_getVidAttributeName'](_0x2d6620){switch(_0x2d6620['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3b32f4,_0x27e0f7){_0x3b32f4['baseVersion']=null;for(const _0x3c33eb in _0x3b32f4){const _0x9d7a91=_0x3b32f4[_0x3c33eb];if(_0x9d7a91 instanceof _0xa02f8d){const _0x49fc86=_0x27e0f7['get'](_0x9d7a91['root']['rootName']);_0x3b32f4[_0x3c33eb]=this['_fixPosition'](_0x9d7a91,_0x49fc86);}if(_0x9d7a91 instanceof _0x9392bd){const _0x23fc13=_0x27e0f7['get'](_0x9d7a91['root']['rootName']);_0x3b32f4[_0x3c33eb]=this['_fixRange'](_0x9d7a91,_0x23fc13);}'root'===_0x3c33eb&&(_0x3b32f4['root']=_0x27e0f7['get'](_0x3b32f4['root']['rootName']));}}['_fixRange'](_0x54b4e7,_0x1cb00b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x54b4e7['start'],_0x1cb00b),this['_fixPosition'](_0x54b4e7['end'],_0x1cb00b));}['_fixPosition'](_0x271496,_0x29f2c2){return this['editor']['model']['createPositionFromPath'](_0x29f2c2,_0x271496['path'],_0x271496['stickiness']);}['_handleInsertOperation'](_0x428fc7){const _0x27874a=this['_idsRoots']['get'](_0x428fc7['position']['root']['rootName']),_0xdac7b0=this['_fixPosition'](_0x428fc7['position'],_0x27874a),_0x27e13b=null===_0x428fc7['_authorId']?null:_0x428fc7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36a1ed=_0xdac7b0['parent'],_0x59be00=this['_revisionId'],_0x16395f=[];for(const _0x39c721 of _0x428fc7['nodes'])if(_0x39c721['is']('element'))_0x16395f['push'](this['_makeIdsRoot'](_0x39c721));else{for(let _0x56322=0x0;_0x56322<_0x39c721['offsetSize'];_0x56322++)_0x16395f['push'](new _0x236395('$text',{'vid':this['_revisionId']++}));}const _0x1342d0=this['_revisionId'];for(let _0xc6208=_0x59be00;_0xc6208<_0x1342d0;_0xc6208++)this['_touched']['set'](_0xc6208,{'userId':_0x27e13b});_0x36a1ed['_insertChild'](_0xdac7b0['offset'],_0x16395f);}['_handleMoveOperation'](_0x5628e2){(_0x5628e2=this['_cloneOperation'](_0x5628e2,this['_idsRoots']))['_execute']();const _0x4e8c9f=null===_0x5628e2['_authorId']?null:_0x5628e2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x280b08=_0x5628e2['getMovedRangeStart'](),_0x5bf7eb=_0x280b08['parent'],_0xa5710b=_0x280b08['offset'];!function _0x112338(_0x14cec0,_0x55e7f4,_0x5ec1d5,_0x2584d4){for(let _0x4f76b0=_0x5ec1d5;_0x4f76b0<_0x2584d4;_0x4f76b0++){const _0xa4b2d3=_0x55e7f4['getChild'](_0x4f76b0);_0xa4b2d3['is']('element','$text')?_0x14cec0['set'](_0xa4b2d3['getAttribute']('vid'),{'userId':_0x4e8c9f}):(_0x14cec0['set'](_0xa4b2d3['getAttribute']('vid_start'),{'userId':_0x4e8c9f}),_0x112338(_0x14cec0,_0xa4b2d3,0x0,_0xa4b2d3['childCount']),_0x14cec0['set'](_0xa4b2d3['getAttribute']('vid_end'),{'userId':_0x4e8c9f}));}}(this['_touched'],_0x5bf7eb,_0xa5710b,_0xa5710b+_0x5628e2['howMany']);}['_handleMergeOperation'](_0x21ff95){const _0x5db895=null===(_0x21ff95=this['_cloneOperation'](_0x21ff95,this['_idsRoots']))['_authorId']?null:_0x21ff95['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a2e3f=_0x21ff95['targetPosition']['parent'],_0x15f9e1=_0x21ff95['sourcePosition']['parent'],_0x11d8f0=_0x5a2e3f['getAttribute']('vid_end'),_0x420152=_0x15f9e1['getAttribute']('vid_start');_0x5a2e3f['_setAttribute']('vid_end',_0x15f9e1['getAttribute']('vid_end')),_0x15f9e1['_setAttribute']('vid_end',_0x11d8f0),this['_touched']['set'](_0x420152,{'userId':_0x5db895}),this['_touched']['set'](_0x11d8f0,{'userId':_0x5db895}),_0x21ff95['_execute']();}['_handleSplitOperation'](_0x44c900){const _0x5dd293=null===(_0x44c900=this['_cloneOperation'](_0x44c900,this['_idsRoots']))['_authorId']?null:_0x44c900['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x545fd9=_0x44c900['graveyardPosition'],_0x2c1cf3=_0x44c900['splitPosition']['parent'];_0x44c900['_execute']();const _0x49fb25=_0x2c1cf3['getAttribute']('vid_end'),_0x412359=_0x44c900['insertionPosition']['nodeAfter'];if(_0x545fd9){const _0x30aa77=_0x412359['getAttribute']('vid_end'),_0x54def5=_0x2c1cf3['getAttribute']('vid_end');_0x2c1cf3['_setAttribute']('vid_end',_0x30aa77),_0x412359['_setAttribute']('vid_end',_0x54def5),this['_touched']['set'](_0x2c1cf3['getAttribute']('vid_end'),{'userId':_0x5dd293}),this['_touched']['set'](_0x412359['getAttribute']('vid_start'),{'userId':_0x5dd293});}else{const _0x1ca845=this['_revisionId']++,_0x4b7cea=this['_revisionId']++;_0x2c1cf3['_setAttribute']('vid_end',_0x1ca845),_0x412359['_setAttribute']('vid_start',_0x4b7cea),_0x412359['_setAttribute']('vid_end',_0x49fb25),this['_touched']['set'](_0x1ca845,{'userId':_0x5dd293}),this['_touched']['set'](_0x4b7cea,{'userId':_0x5dd293});}}['_handleMarkerOperation'](_0x265831){if(!_0x265831['affectsData'])return;const _0x3fafac=(_0x265831=this['_cloneOperation'](_0x265831,this['_diffRoots']))['oldRange']?_0x265831['oldRange']['root']:null,_0x3f0066=_0x265831['newRange']?_0x265831['newRange']['root']:null;_0x3fafac&&this['_markers']['delete'](_0x265831['name']),_0x3f0066&&this['_markers']['set'](_0x265831['name'],_0x265831['newRange']['clone']());const _0x413a41=null===_0x265831['_authorId']?null:_0x265831['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17bcb0=_0x265831['name'];if(!this['_touchedMarkers']['has'](_0x17bcb0))return void this['_touchedMarkers']['set'](_0x17bcb0,{'range':_0x265831['oldRange'],'userId':_0x413a41});const _0x139c82=this['_touchedMarkers']['get'](_0x17bcb0),_0x1a86ae=_0x139c82['range'],_0x512da5=_0x265831['newRange'];null==_0x1a86ae&&null==_0x512da5||_0x1a86ae&&_0x512da5&&_0x1a86ae['isEqual'](_0x512da5)?this['_touchedMarkers']['delete'](_0x265831['name']):_0x139c82['userId']=_0x413a41;}['_handleRootOperation'](_0x4ec607,_0x1e5a9a){this['_diffRoots']['has'](_0x4ec607['rootName'])?this['_diffRoots']['get'](_0x4ec607['rootName'])['_isAttached']=_0x4ec607['isAdd']:(this['_diffRoots']['set'](_0x4ec607['rootName'],N(_0x4ec607['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4ec607['rootName'],{}),_0x1e5a9a&&this['_idsRoots']['set'](_0x4ec607['rootName'],N(_0x4ec607['rootName'],!0x0)));const _0x11ba63=null===_0x4ec607['_authorId']?null:_0x4ec607['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5560d0=this['_touchedRoots']['get'](_0x4ec607['rootName']);_0x5560d0&&_0x5560d0['userId']===_0x11ba63?this['_touchedRoots']['delete'](_0x4ec607['rootName']):this['_touchedRoots']['set'](_0x4ec607['rootName'],{'userId':_0x11ba63,'isAttached':_0x4ec607['isAdd']});}['_handleRootAttributeOperation'](_0x359ec6){const _0x13a2a5=this['_diffRootsAttributes']['get'](_0x359ec6['root']['rootName']);null===_0x359ec6['newValue']?delete _0x13a2a5[_0x359ec6['key']]:_0x13a2a5[_0x359ec6['key']]=_0x359ec6['newValue'];}}function x(_0x394d66){const _0x91bde3=N(_0x394d66['rootName'],_0x394d66['isAttached']());for(const _0x3cf86f of _0x394d66['getChildren']()){const _0x9142c7=_0x3cf86f['_clone'](!0x0);_0x91bde3['_appendChild'](_0x9142c7);}return _0x91bde3;}function N(_0x47ac87,_0x5d4aef=!0x0){const _0xd81a90=new _0x416f4f();return _0xd81a90['rootName']=_0x47ac87,_0xd81a90['_isAttached']=_0x5d4aef,_0xd81a90['isAttached']=()=>_0xd81a90['_isAttached'],_0xd81a90;}function P(_0x243747,_0x2113a7,_0x3be34b){const _0x387ff7='elementEnd'==_0x243747['type']?_0x3be34b['createPositionAt'](_0x243747['item'],'end'):_0x3be34b['createPositionBefore'](_0x243747['item']);return _0x3be34b['createPositionFromPath'](_0x2113a7,_0x387ff7['path'],_0x387ff7['stickiness']);}function V(_0x467b32,_0x2bd5af,_0x1b813c){const _0x8ac811='elementStart'==_0x467b32['type']?_0x1b813c['createPositionAt'](_0x467b32['item'],0x0):_0x1b813c['createPositionAfter'](_0x467b32['item']);return _0x1b813c['createPositionFromPath'](_0x2bd5af,_0x8ac811['path'],_0x8ac811['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x2a6632(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x28aa68){super(),this['id']=_0x28aa68['id']||_0x506dfc(),this['author']=_0x28aa68['author'],this['type']=_0x28aa68['type'],this['data']=_0x28aa68['data']||{},this['rootName']=_0x28aa68['rootName'],this['set']('createdAt',_0x28aa68['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x52724e,_0x46dd3a){this['newRevisionId']=_0x52724e,this['oldRevisionId']=_0x46dd3a,this['changes']=new _0x379dd0();}['_setChanges'](_0xcc7ca5){for(const _0x21b0b5 of _0xcc7ca5)this['changes']['add'](_0x21b0b5);}}class u extends _0x30489c{['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[_0x9482fc,_0x190eaa,S,$];}constructor(_0x213b91){super(_0x213b91),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',(_0x276107,_0x2f26b7,_0x489428)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x32b4ff=>{for(const _0x4222c3 of this['editor']['editing']['view']['document']['roots'])_0x489428?_0x32b4ff['removeClass']('ck-editor__editable__overlay',_0x4222c3):_0x32b4ff['addClass']('ck-editor__editable__overlay',_0x4222c3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x286247=>null!==_0x286247),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4971d7,_0x382dc0,_0x412549)=>_0x4971d7&&_0x412549?_0x382dc0['changes']['getIndex'](_0x412549):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x453082,_0x515bda)=>_0x453082?_0x515bda['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x190eaa);}['init'](){const _0x45fb2e=this['editor'],_0x1cfb36=new rt(_0x45fb2e,{'direction':'backward'}),_0x5316d6=new rt(_0x45fb2e,{'direction':'forward'});(_0x45fb2e['commands']['add']('showPreviousChange',_0x1cfb36),_0x45fb2e['commands']['add']('showNextChange',_0x5316d6),_0x45fb2e['commands']['add']('restoreRevision',new nt(_0x45fb2e)),this['on']('change:numberOfChanges',()=>{_0x1cfb36['refresh'](),_0x5316d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x45fb2e['enableReadOnlyMode']('revision-viewer'),_0x45fb2e['plugins']['has']('WidgetToolbarRepository'))&&_0x45fb2e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5263db){return await this['_utils']['loadRevisionData'](_0x5263db,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5263db);}async['getRevisionRootsAttributes'](_0x155b15){return await this['_utils']['loadRevisionData'](_0x155b15,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x155b15);}async['compare'](_0x30367e,_0x285573,_0x5c0879=!0x1){if(!this['isEnabled'])return;const _0x47cef1=this['diff'],_0x5b77c3=this['repository'],_0x2a791c='string'==typeof _0x30367e?_0x5b77c3['getRevision'](_0x30367e):_0x30367e,_0xf32a36='string'==typeof _0x285573?_0x5b77c3['getRevision'](_0x285573):_0x285573,_0x1731b3=_0x2a791c['id'],_0x622f2b=_0xf32a36?_0xf32a36['id']:null;if(!_0x5c0879&&this['diff']&&this['diff']['newRevisionId']===_0x1731b3&&this['diff']['oldRevisionId']===_0x622f2b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1731b3,_0x622f2b);const _0x1eee59=this['_getRevisionsRange'](_0x2a791c,_0xf32a36,!0x0)['map'](_0x11b637=>this['_utils']['loadRevisionData'](_0x11b637,this['adapter']));return _0x1eee59['push'](new Promise(_0x2fb3ac=>{setTimeout(_0x2fb3ac,0x14);})),Promise['all'](_0x1eee59)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1a2010=this['_getDiff'](_0x1731b3,_0x622f2b);for(const _0x3edb03 of _0x1a2010['changes'])this['_changeIdToChange']['set'](_0x3edb03['id'],_0x3edb03);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x57b1a2=>{for(const _0xba3f6f of this['editor']['model']['document']['getRootNames']())_0x57b1a2['detachRoot'](_0xba3f6f);for(const _0x42d575 of Object['keys'](_0x1a2010['model'])){const _0x4f1e32=_0x57b1a2['addRoot'](_0x42d575);for(const _0x2f7de8 of Object['keys'](_0x1a2010['attributes'][_0x42d575]))_0x57b1a2['setAttribute'](_0x2f7de8,_0x1a2010['attributes'][_0x42d575][_0x2f7de8],_0x4f1e32);_0x57b1a2['insert'](_0x1a2010['model'][_0x42d575],_0x4f1e32,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1a2010['changes'])),this['isReady']=!0x0;})['catch'](_0x251df=>{console['error'](_0x251df),this['_cleanUp'](),_0x47cef1&&(this['diff']=_0x47cef1),this['isReady']=!0x0;});}['addRevisionData'](_0x49adf5,_0x4620c1){const _0xdf49f5=this['repository']['createRevision'](_0x49adf5);return _0xdf49f5['on']('_update',(_0x2674e5,_0x3cd0c2,_0x324c51)=>_0x4620c1(_0x3cd0c2,_0x324c51,_0xdf49f5)),this['repository']['addRevision'](_0xdf49f5),_0xdf49f5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x450ba2=>{for(const _0x2dee8f of this['editor']['model']['document']['getRootNames']())_0x450ba2['detachRoot'](_0x2dee8f);});}['_sortAndFilterDiffChanges'](_0x4f8361){const _0x488bcf=[],_0x23d6d3=new Map();for(const _0x59d110 of this['editor']['model']['document']['getRootNames']()){const _0x389d6c=this['editor']['editing']['view']['getDomRoot'](_0x59d110);if(!_0x389d6c)continue;const _0x26f364=_0x389d6c['getClientRects']()['item'](0x0);_0x26f364&&(_0x488bcf['push'](_0x59d110),_0x23d6d3['set'](_0x59d110,_0x26f364));}return _0x488bcf['sort']((_0x420804,_0x546185)=>{const _0x160d51=_0x23d6d3['get'](_0x420804),_0x5c8a96=_0x23d6d3['get'](_0x546185);return _0x160d51['y']-_0x5c8a96['y']||_0x160d51['x']-_0x5c8a96['x'];}),(_0x4f8361=_0x4f8361['filter'](_0x5b0bfb=>_0x488bcf['includes'](_0x5b0bfb['rootName'])))['sort']((_0x3c07c7,_0x397aa8)=>_0x488bcf['indexOf'](_0x3c07c7['rootName'])-_0x488bcf['indexOf'](_0x397aa8['rootName'])),_0x4f8361;}['_makeTape'](_0x52adf7){const _0x5668b9=Array['from'](_0x52adf7['markers'])['filter'](([_0xb78674,_0x367637])=>_0xb78674['startsWith']('revision:')&&!_0x367637['isCollapsed']),_0x1e43aa=Array['from'](this['editor']['model']['createRangeIn'](_0x52adf7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5668b9['length'])for(const _0x192594 of _0x1e43aa){const [_0x302885,_0x13e641]=_0x5668b9[0x0],[,_0x23762b,_0x479555]=_0x302885['split'](':');if(_0x13e641['end']['isEqual'](_0x192594['nextPosition'])&&_0x5668b9['shift'](),(_0x192594['previousPosition']['isEqual'](_0x13e641['start'])||_0x192594['previousPosition']['isAfter'](_0x13e641['start']))&&('insertion'==_0x23762b?_0x192594['isAdded']={'userId':_0x479555}:'deletion'==_0x23762b&&(_0x192594['isRemoved']={'userId':_0x479555})),0x0==_0x5668b9['length'])break;}return _0x1e43aa;}['_refreshStartEndIndex'](_0x5e8f04){const _0x30df36=new Map();for(let _0x3216c5=0x0;_0x3216c5<_0x5e8f04['length'];_0x3216c5++)'text'===_0x5e8f04[_0x3216c5]['type']?(_0x5e8f04[_0x3216c5]['item']['startIndex']=_0x3216c5,_0x5e8f04[_0x3216c5]['item']['endIndex']=_0x3216c5):('elementStart'===_0x5e8f04[_0x3216c5]['type']?_0x5e8f04[_0x3216c5]['item']['startIndex']=_0x3216c5:'elementEnd'===_0x5e8f04[_0x3216c5]['type']&&(_0x5e8f04[_0x3216c5]['item']['endIndex']=_0x3216c5),_0x30df36['set'](_0x5e8f04[_0x3216c5]['id'],_0x3216c5));for(const _0x5a9dc3 of _0x30df36['values']())'elementStart'===_0x5e8f04[_0x5a9dc3]['type']?_0x5e8f04[_0x5a9dc3]['item']['endIndex']=_0x30df36['get'](_0x5e8f04[_0x5a9dc3]['pairId']):'elementEnd'===_0x5e8f04[_0x5a9dc3]['type']&&(_0x5e8f04[_0x5a9dc3]['item']['startIndex']=_0x30df36['get'](_0x5e8f04[_0x5a9dc3]['pairId']));}['_processTape'](_0x578f3d){for(let _0xbc29ef=0x0;_0xbc29ef<_0x578f3d['length'];_0xbc29ef++){if('elementStart'===_0x578f3d[_0xbc29ef]['type'])_0x578f3d[_0xbc29ef]['item']['startIndex']=_0xbc29ef;else{if('elementEnd'===_0x578f3d[_0xbc29ef]['type']){_0x578f3d[_0xbc29ef]['item']['endIndex']=_0xbc29ef;const _0x2473d0=_0x578f3d[_0xbc29ef]['item']['startIndex'];_0x578f3d[_0x2473d0]['pairId']=_0x578f3d[_0xbc29ef]['id'],_0x578f3d[_0xbc29ef]['pairId']=_0x578f3d[_0x2473d0]['id'];}else _0x578f3d[_0xbc29ef]['item']['startIndex']=_0xbc29ef,_0x578f3d[_0xbc29ef]['item']['endIndex']=_0xbc29ef,_0x578f3d[_0xbc29ef]['pairId']=null;}_0x578f3d[_0xbc29ef]['markersStart']||(_0x578f3d[_0xbc29ef]['markersStart']=[],_0x578f3d[_0xbc29ef]['markersEnd']=[]);}}['_markInsertions'](_0x20cf5f,_0x4403df){const _0x28ec9b=_0x20cf5f['filter'](_0x3a344a=>!_0x3a344a['isAdded']);for(let _0x27188d=0x0;_0x27188d<_0x4403df['length'];_0x27188d++)_0x4403df[_0x27188d]['isAdded']&&(_0x28ec9b[_0x27188d]['isAdded']=_0x4403df[_0x27188d]['isAdded']);}['_getDiff'](_0x3315b7,_0x51339b=null){const _0x2df979=this['repository']['getRevision'](_0x3315b7),_0x2b22bf=_0x51339b?this['repository']['getRevision'](_0x51339b):null,_0x33f6e1=this['_getRevisionsRange'](_0x2df979,_0x2b22bf),_0x313ec2=_0x33f6e1[_0x33f6e1['length']-0x1],_0x29cfc6=new Map(),_0x3831f0={'model':{},'attributes':{},'changes':[]},_0x1acee7=new Set(),_0x5f57e9=new Map();for(let _0x4ab03f=_0x33f6e1['length']-0x1;_0x4ab03f>=0x0;_0x4ab03f--){const _0x59fa94=_0x33f6e1[_0x4ab03f];for(const _0x7b059e of Object['keys'](_0x59fa94['diffData']))if(_0x59fa94['diffData'][_0x7b059e]['attachChange']){const _0x5435e6=_0x59fa94['diffData'][_0x7b059e]['attachChange'];_0x5435e6['isAttached']?(_0x1acee7['add'](_0x7b059e),_0x5f57e9['has'](_0x7b059e)&&_0x5f57e9['get'](_0x7b059e)['userId']==_0x5435e6['userId']?_0x5f57e9['delete'](_0x7b059e):_0x5f57e9['set'](_0x7b059e,_0x5435e6)):_0x5f57e9['has'](_0x7b059e)?(_0x1acee7['delete'](_0x7b059e),_0x5f57e9['delete'](_0x7b059e)):(_0x1acee7['add'](_0x7b059e),_0x5f57e9['set'](_0x7b059e,_0x5435e6));}else _0x1acee7['add'](_0x7b059e);}for(const _0x2c6f78 of _0x1acee7){const _0x383aca=_0x5f57e9['has'](_0x2c6f78)&&!_0x5f57e9['get'](_0x2c6f78)['isAttached'];let _0x57f699=_0x383aca?_0x33f6e1['length']-0x1:0x0;const _0x1b164c=_0x383aca?-0x1:0x1;for(;_0x33f6e1[_0x57f699];){const _0x2f5c98=_0x33f6e1[_0x57f699];if(_0x2f5c98['diffData'][_0x2c6f78]){const _0x15be44=_0x383aca?_0x2f5c98['diffData'][_0x2c6f78]['attributesBefore']:_0x2f5c98['diffData'][_0x2c6f78]['attributesAfter'];_0x3831f0['attributes'][_0x2c6f78]=_0x15be44?_0x2b1973(_0x15be44):{};break;}_0x57f699+=_0x1b164c;}}for(const _0x572d79 of _0x33f6e1){_0x572d79['model']={};for(const _0x46c11b of _0x572d79['authors'])_0x29cfc6['set'](_0x46c11b['id'],_0x46c11b);for(const _0x100386 of _0x1acee7){const _0x5d67e6=_0x572d79['diffData'][_0x100386]?_0x572d79['diffData'][_0x100386]['insertions']:'[]',_0x51f1ae=_0x572d79['diffData'][_0x100386]?_0x572d79['diffData'][_0x100386]['deletions']:'[]';_0x572d79['model'][_0x100386]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5d67e6),'deletions':this['_utils']['_makeModelFromViewString'](_0x51f1ae)};}}for(const _0x413f8c of _0x1acee7){let _0x5aa994=null,_0x331bdb=0x0;const _0x584699=new Map(Array['from'](_0x2df979['model'][_0x413f8c]['insertions']['markers'])['filter'](([_0x36217a])=>!_0x36217a['startsWith']('revision:')));let _0x4c10b6=0x0;for(const _0x3fa4eb of _0x33f6e1){const _0x16b507=this['_makeTape'](_0x3fa4eb['model'][_0x413f8c]['insertions']);_0x3fa4eb==_0x2df979?(_0x5aa994=_0x16b507,_0x331bdb=_0x5aa994['length'],_0x5aa994['forEach'](_0x4cfc8f=>{_0x4cfc8f['id']=_0x4c10b6++;}),this['_processTape'](_0x5aa994)):this['_markInsertions'](_0x5aa994,_0x16b507);const _0x12b373=_0x5aa994['filter'](_0x200b8f=>!_0x200b8f['isAdded'])['map'](_0x11c7a3=>_0x11c7a3['id']);let _0x238c88=0x0;const _0x102b8c=this['_makeTape'](_0x3fa4eb['model'][_0x413f8c]['deletions']);_0x102b8c['forEach'](_0x5cecc5=>{_0x5cecc5['isRemoved']?_0x5cecc5['id']=_0x331bdb++:_0x5cecc5['id']=_0x12b373[_0x238c88++];}),this['_processTape'](_0x102b8c),this['_setDistance'](_0x5aa994,'isAdded'),this['_setDistance'](_0x102b8c,'isRemoved'),_0x3fa4eb==_0x2df979&&this['_markMarkers'](_0x5aa994,_0x584699),_0x5aa994=this['_joinTapes'](_0x5aa994,_0x102b8c),this['_refreshStartEndIndex'](_0x5aa994),this['_setDistance'](_0x5aa994,'isRemoved');}_0x5aa994=_0x5aa994['filter'](_0x617ca6=>!(_0x617ca6['isAdded']&&_0x617ca6['isRemoved']));const _0xc40123=new Map(_0x313ec2['model'][_0x413f8c]['deletions']['markers']),_0x24dcf8=new Set(_0x584699['keys']());for(const _0xd4088f of _0xc40123['keys']())_0x24dcf8['delete'](_0xd4088f);this['_markSuggestions'](_0x5aa994,_0x24dcf8),this['_fixObsoleteTags'](_0x5aa994),_0x5aa994=this['_removeMissingPairs'](_0x5aa994),_0x5aa994=this['_markMismatchedRemovedTags'](_0x5aa994),_0x5aa994=this['_removeUnsupportedChanges'](_0x5aa994);const {root:_0x5a57b8,changes:_0x345f72}=this['_makeModelFromTape'](_0x5aa994,_0x29cfc6,_0x413f8c);_0x3831f0['model'][_0x413f8c]=_0x5a57b8;const _0x4fda6e=_0x5f57e9['get'](_0x413f8c);if(_0x4fda6e){const _0x186cd8=_0x29cfc6['get'](_0x4fda6e['userId']),_0x5f1518=new G({'author':_0x186cd8,'type':_0x4fda6e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x413f8c});_0x345f72['unshift'](_0x5f1518),_0x3831f0['attributes'][_0x413f8c]['revisionHistoryAttachChange']=_0x5f1518['id'];}_0x3831f0['changes']=_0x3831f0['changes']['concat'](_0x345f72);}return _0x3831f0;}['_markMarkers'](_0x2d28cb,_0x45fbc2){for(let _0x1a7a81=0x0;_0x1a7a81<_0x2d28cb['length'];_0x1a7a81++)for(const [_0x40d31d,_0x1aa90b]of _0x45fbc2)!_0x1aa90b['isCollapsed']&&_0x1aa90b['start']['isEqual'](_0x2d28cb[_0x1a7a81]['previousPosition'])&&_0x2d28cb[_0x1a7a81]['markersStart']['push'](_0x40d31d),_0x1aa90b['end']['isEqual'](_0x2d28cb[_0x1a7a81]['nextPosition'])&&_0x2d28cb[_0x1a7a81]['markersEnd']['push'](_0x40d31d);}['_joinTapes'](_0x27cd6d,_0x5e59c5){let _0x5145cf=[],_0x4c82ae=0x0,_0x44ab6d=0x0;for(;_0x4c82ae<_0x27cd6d['length']||_0x44ab6d<_0x5e59c5['length'];){const _0x2ce9a0=_0x27cd6d[_0x4c82ae]||{},_0x335f94=_0x5e59c5[_0x44ab6d]||{};if(_0x2ce9a0['id']==_0x335f94['id'])_0x4c82ae++,_0x44ab6d++,_0x5145cf['push'](_0x2ce9a0);else{if(_0x335f94['isRemoved']&&_0x2ce9a0['isAdded']){const {commonTape:_0x4d82da,iEnd:_0x749e90,jEnd:_0x16a466}=this['_threeWayMerge'](_0x27cd6d,_0x4c82ae,_0x5e59c5,_0x44ab6d);_0x5145cf=_0x5145cf['concat'](_0x4d82da),_0x4c82ae=_0x749e90,_0x44ab6d=_0x16a466;}else _0x335f94['isRemoved']?(_0x44ab6d++,_0x5145cf['push'](_0x335f94)):(_0x4c82ae++,_0x5145cf['push'](_0x2ce9a0));}}return _0x5145cf;}['_markSuggestions'](_0x2a6b54,_0x42acee){const _0x1f7337=[];for(let _0x1e950d=0x0;_0x1e950d<_0x2a6b54['length'];_0x1e950d++){for(let _0x282ec5=0x0;_0x282ec5<_0x2a6b54[_0x1e950d]['markersStart']['length'];_0x282ec5++){const _0x12b7cf=_0x2a6b54[_0x1e950d]['markersStart'][_0x282ec5];if(!_0x42acee['has'](_0x12b7cf))continue;const {group:_0x576bf2,type:_0x9e65e0,authorId:_0x508357}=_0x592327(_0x12b7cf);'revision-suggestion'!=_0x576bf2||'insertion'!=_0x9e65e0&&'deletion'!=_0x9e65e0||(_0x1f7337['unshift']({'type':_0x9e65e0,'name':_0x12b7cf,'userId':_0x508357}),_0x2a6b54[_0x1e950d]['markersStart']['splice'](_0x282ec5,0x1),_0x282ec5--);}_0x322a82(_0x2a6b54[_0x1e950d]);for(let _0x4f947e=0x0;_0x4f947e<_0x2a6b54[_0x1e950d]['markersEnd']['length'];_0x4f947e++){const _0x1d3976=_0x2a6b54[_0x1e950d]['markersEnd'][_0x4f947e];if(!_0x42acee['has'](_0x1d3976))continue;const {group:_0x500947,type:_0x2b263a}=_0x592327(_0x1d3976);if('revision-suggestion'!=_0x500947||'insertion'!=_0x2b263a&&'deletion'!=_0x2b263a)continue;_0x2a6b54[_0x1e950d]['markersEnd']['splice'](_0x4f947e,0x1),_0x4f947e--;const _0x595c25=_0x1f7337['findIndex'](_0x51226d=>_0x51226d['name']==_0x1d3976);_0x595c25>-0x1&&_0x1f7337['splice'](_0x595c25,0x1);}}function _0x592327(_0x569c26){const _0x56320b=_0x569c26['split'](':');return{'group':_0x56320b[0x0],'type':_0x56320b[0x1],'subType':_0x56320b['length']>=0x5?_0x56320b[0x2]:null,'id':_0x56320b['length']<0x5?_0x56320b[0x2]:_0x56320b[0x3],'authorId':_0x56320b['length']<0x5?_0x56320b[0x3]:_0x56320b[0x4],'markerCount':0x6==_0x56320b['length']?_0x56320b[0x5]:null};}function _0x322a82(_0xe0ff1d){for(let _0x5a5abb=0x0;_0x5a5abb<_0x1f7337['length'];_0x5a5abb++){if(_0xe0ff1d['isAdded']&&'insertion'==_0x1f7337[_0x5a5abb]['type']&&_0xe0ff1d['isAdded']['userId']==_0x1f7337[_0x5a5abb]['userId'])return _0xe0ff1d['isAddSuggestion']=_0x1f7337[_0x5a5abb],void delete _0xe0ff1d['isAdded'];if(!_0xe0ff1d['isAdded']&&!_0xe0ff1d['isRemoved']&&'deletion'==_0x1f7337[_0x5a5abb]['type'])return void(_0xe0ff1d['isRemoveSuggestion']=_0x1f7337[_0x5a5abb]);}}}['_setDistance'](_0xf6191e,_0x406c87){let _0x2338b4=0x0,_0x358d98=!0x1;const _0xdb3a6c=new Map();for(const _0x32e54d of _0xf6191e)_0x32e54d[_0x406c87]?_0x358d98&&(_0x2338b4++,_0x358d98=!0x1):(_0x2338b4++,_0x358d98=!0x0),_0xdb3a6c['set'](_0x32e54d['id'],_0x2338b4);for(let _0x58d662=0x0;_0x58d662<_0xf6191e['length'];_0x58d662++){if('isRemoved'==_0x406c87&&_0xf6191e[_0x58d662]['isAdded']||'isAdded'==_0x406c87&&_0xf6191e[_0x58d662]['isRemoved'])continue;if('text'==_0xf6191e[_0x58d662]['type']){_0xf6191e[_0x58d662]['distance']=0x0;continue;}const _0x5c2916=_0xdb3a6c['get'](_0xf6191e[_0x58d662]['pairId']),_0x2ddfce=_0xdb3a6c['get'](_0xf6191e[_0x58d662]['id']);_0xf6191e[_0x58d662]['distance']=_0x5c2916-_0x2ddfce;}}['_getRevisionsRange'](_0x55d14d,_0x9cff72,_0x3ed648=!0x1){const _0x5384e8=[];let _0x1ded7b=this['repository']['getIndex'](_0x55d14d),_0x13805f=this['repository']['getIndex'](_0x9cff72);for(-0x1==_0x13805f&&(_0x13805f=this['repository']['_revisions']['length'],_0x3ed648=!0x1);_0x1ded7b<_0x13805f;)_0x5384e8['push'](this['repository']['getRevision'](_0x1ded7b)),_0x1ded7b++;return _0x3ed648&&_0x5384e8['push'](this['repository']['getRevision'](_0x1ded7b)),_0x5384e8;}['_threeWayMerge'](_0x2dd29f,_0xa4844b,_0x428a36,_0x58ff2c){const _0x427ac1=this['editor']['model']['schema'];let _0x43c6d4=_0xa4844b;for(;_0x2dd29f[_0x43c6d4]&&_0x2dd29f[_0x43c6d4]['isAdded'];)_0x43c6d4++;let _0x20dc6d=_0x58ff2c;for(;_0x428a36[_0x20dc6d]&&_0x428a36[_0x20dc6d]['isRemoved'];)_0x20dc6d++;_0x403de7(_0x2dd29f,_0xa4844b,_0x43c6d4),_0x403de7(_0x428a36,_0x58ff2c,_0x20dc6d);const _0x765063=_0x428a36['slice'](_0x58ff2c,_0x20dc6d)['concat'](_0x2dd29f['slice'](_0xa4844b,_0x43c6d4));return _0x765063['sort']((_0x3b3571,_0x3b9722)=>_0x3b3571['side']!=_0x3b9722['side']?_0x3b3571['side']-_0x3b9722['side']:_0x3b3571['level']!=_0x3b9722['level']?_0x3b3571['level']-_0x3b9722['level']:_0x3b3571['distance']!=_0x3b9722['distance']?_0x3b9722['distance']-_0x3b3571['distance']:!!_0x3b3571['isAdded']!=!!_0x3b9722['isAdded']?-0x1==_0x3b3571['side']||0x0==_0x3b3571['side']?_0x3b3571['isAdded']?-0x1:0x1:_0x3b3571['isAdded']?0x1:-0x1:_0x3b3571['index']-_0x3b9722['index']),{'commonTape':_0x765063,'iEnd':_0x43c6d4,'jEnd':_0x20dc6d};function _0x403de7(_0x8fc43e,_0x49c551,_0x151bf2){let _0x23c997=-0x1,_0x16d8bd=Number['POSITIVE_INFINITY'],_0x170caf=!0x0;for(let _0x46ac2f=_0x49c551;_0x46ac2f<_0x151bf2;_0x46ac2f++)if(_0x427ac1['isInline'](_0x8fc43e[_0x46ac2f]['item'])||(_0x170caf=!0x1),_0x8fc43e[_0x46ac2f]['item']['startIndex']<_0x49c551&&(_0x23c997=_0x46ac2f),_0x8fc43e[_0x46ac2f]['item']['endIndex']>=_0x151bf2){_0x16d8bd=_0x46ac2f;break;}_0x170caf&&(_0x23c997=_0x151bf2-0x1);for(let _0x306814=_0x49c551;_0x306814<_0x151bf2;_0x306814++)_0x8fc43e[_0x306814]['side']=_0x306814<=_0x23c997?-0x1:_0x306814<_0x16d8bd?0x0:0x1,_0x8fc43e[_0x306814]['index']=_0x306814;let _0x4d8764=0x0;for(let _0x322545=_0x49c551;_0x322545<=_0x23c997;_0x322545++)0x0==_0x8fc43e[_0x322545]['distance']?_0x8fc43e[_0x322545]['level']=_0x4d8764:(_0x4d8764++,_0x8fc43e[_0x322545]['level']=_0x4d8764,_0x4d8764++);for(let _0xdacd34=_0x49c551;_0xdacd34<_0x151bf2;_0xdacd34++)0x0==_0x8fc43e[_0xdacd34]['side']&&(_0x8fc43e[_0xdacd34]['level']=_0x4d8764);_0x4d8764=0x0;for(let _0x4380eb=_0x151bf2-0x1;_0x4380eb>=_0x16d8bd;_0x4380eb--)0x0==_0x8fc43e[_0x4380eb]['distance']?_0x8fc43e[_0x4380eb]['level']=_0x4d8764:(_0x4d8764--,_0x8fc43e[_0x4380eb]['level']=_0x4d8764,_0x4d8764--);}}['_fixObsoleteTags'](_0x48f711){const _0x254af3=new Map(),_0x5dddb8=this['editor']['model']['schema'];for(let _0x4a47de=0x1;_0x4a47de<_0x48f711['length'];_0x4a47de++){let _0x2618e0,_0x38f2f7,_0x9c13dc;const _0x3ec237=_0x48f711[_0x4a47de],_0x117e78=_0x48f711[_0x4a47de-0x1];if('text'==_0x3ec237['type'])continue;if(_0x3ec237['type']!=_0x117e78['type'])continue;if(!_0x5dddb8['isBlock'](_0x117e78['item'])||_0x5dddb8['isLimit'](_0x117e78['item']))continue;if(!_0x5dddb8['isBlock'](_0x3ec237['item'])||_0x5dddb8['isLimit'](_0x3ec237['item']))continue;if((_0x48f711[_0x4a47de]['isAdded']||_0x48f711[_0x4a47de]['isAddSuggestion'])&&_0x48f711[_0x4a47de-0x1]['isRemoved'])_0x2618e0=_0x48f711[_0x4a47de],_0x38f2f7=_0x48f711[_0x4a47de-0x1],_0x9c13dc=_0x4a47de-0x1;else{if(!_0x48f711[_0x4a47de]['isRemoved']||!_0x48f711[_0x4a47de-0x1]['isAdded']&&!_0x48f711[_0x4a47de-0x1]['isAddSuggestion'])continue;_0x2618e0=_0x48f711[_0x4a47de-0x1],_0x38f2f7=_0x48f711[_0x4a47de],_0x9c13dc=_0x4a47de;}const _0x82c48d=_0x2618e0['level']==_0x38f2f7['level'],_0x3f4feb=Math['abs'](_0x2618e0['level'])<Math['abs'](_0x38f2f7['level'])&&0x0==_0x38f2f7['distance'];(_0x82c48d||_0x3f4feb)&&(_0x254af3['set'](_0x38f2f7['id'],_0x2618e0['id']),_0x48f711['splice'](_0x9c13dc,0x1),_0x4a47de--,_0x2618e0['isAdded']=!0x1);}for(let _0x594d62=0x0;_0x594d62<_0x48f711['length'];_0x594d62++)_0x254af3['has'](_0x48f711[_0x594d62]['pairId'])&&(_0x48f711[_0x594d62]['pairId']=_0x254af3['get'](_0x48f711[_0x594d62]['pairId']));}['_removeMissingPairs'](_0x5e5c1d){const _0x43fb84=new Set(_0x5e5c1d['map'](_0x4c05dd=>_0x4c05dd['id']));for(let _0x2b0c2f=0x0;_0x2b0c2f<_0x5e5c1d['length'];_0x2b0c2f++)_0x43fb84['has'](_0x5e5c1d[_0x2b0c2f]['pairId'])||0x0==_0x5e5c1d[_0x2b0c2f]['distance']||(_0x5e5c1d[_0x2b0c2f]['isIncorrect']=!0x0);return _0x5e5c1d['filter'](_0x333b40=>!_0x333b40['isIncorrect']);}['_markMismatchedRemovedTags'](_0x10ed36){const _0x2841a4=new Set();for(let _0x5750c1=0x0;_0x5750c1<_0x10ed36['length'];_0x5750c1++){if(_0x2841a4['has'](_0x10ed36[_0x5750c1]['id'])&&_0x10ed36[_0x5750c1]['isRemoved']&&(_0x10ed36[_0x5750c1]['isIncorrect']=!0x0),_0x10ed36[_0x5750c1]['isIncorrect'])continue;if(0x0==_0x10ed36[_0x5750c1]['distance'])continue;if('elementStart'!=_0x10ed36[_0x5750c1]['type'])continue;if(null==_0x10ed36[_0x5750c1]['pairId'])continue;let _0x3c0aa4=_0x5750c1+0x1,_0x5c88a5=0x0;for(;_0x10ed36[_0x3c0aa4]['id']!=_0x10ed36[_0x5750c1]['pairId'];)'elementStart'==_0x10ed36[_0x3c0aa4]['type']?_0x5c88a5++:'elementEnd'==_0x10ed36[_0x3c0aa4]['type']&&_0x5c88a5--,_0x3c0aa4++;if(0x0!=_0x5c88a5){if(_0x10ed36[_0x5750c1]['isRemoved'])_0x10ed36[_0x5750c1]['isIncorrect']=!0x0;else{for(;_0x3c0aa4!=_0x5750c1;)_0x10ed36[_0x3c0aa4]['isRemoved']&&0x0!=_0x10ed36[_0x3c0aa4]['distance']&&(_0x10ed36[_0x3c0aa4]['isIncorrect']=!0x0,_0x2841a4['add'](_0x10ed36[_0x3c0aa4]['pairId'])),_0x3c0aa4--;}}}return _0x10ed36['filter'](_0x3d70c8=>!_0x3d70c8['isIncorrect']);}['_removeUnsupportedChanges'](_0xe7904a){const _0x591a6d=this['editor']['model']['schema'];for(let _0x11e389=0x0;_0x11e389<_0xe7904a['length'];_0x11e389++){if(!(_0xe7904a[_0x11e389]['isAdded']||_0xe7904a[_0x11e389]['isAddSuggestion']||_0xe7904a[_0x11e389]['isRemoved']||_0xe7904a[_0x11e389]['isRemoveSuggestion']))continue;if(0x0==_0xe7904a[_0x11e389]['distance'])continue;const _0x4bb855=_0xe7904a[_0x11e389]['item'];_0x591a6d['isBlock'](_0x4bb855)||_0x591a6d['isLimit'](_0x4bb855)||(_0xe7904a[_0x11e389]['isAdded']&&delete _0xe7904a[_0x11e389]['isAdded'],_0xe7904a[_0x11e389]['isAddSuggestion']&&delete _0xe7904a[_0x11e389]['isAddSuggestion'],_0xe7904a[_0x11e389]['isRemoveSuggestion']&&delete _0xe7904a[_0x11e389]['isRemoveSuggestion'],_0xe7904a[_0x11e389]['isRemoved']&&(_0xe7904a[_0x11e389]['isIncorrect']=!0x0));}return _0xe7904a['filter'](_0x425ffc=>!_0x425ffc['isIncorrect']);}['_makeModelFromTape'](_0x9e231a,_0x421af7,_0x18de5f){const _0x42dece=new _0x416f4f(),_0xc5ff76=[],_0x1f7c61=new Map(),_0x573966=this['editor']['model'],_0x418879=_0x573966['schema'],_0x4b6b5e=[_0x42dece],_0xc29777={},_0x3b1bee={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x380260=null;const _0x5eac13=[0x0];for(let _0x46d924=0x0;_0x46d924<_0x9e231a['length'];_0x46d924++)if('elementStart'===_0x9e231a[_0x46d924]['type']){_0x9e231a[_0x46d924]['previousPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13);const _0x13e23b=new _0x236395(_0x9e231a[_0x46d924]['item']['name'],_0x9e231a[_0x46d924]['item']['getAttributes']());_0x4b6b5e[0x0]['_appendChild'](_0x13e23b),_0x5eac13['push'](0x0),_0x4b6b5e['unshift'](_0x13e23b),_0x9e231a[_0x46d924]['nextPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13);}else'elementEnd'===_0x9e231a[_0x46d924]['type']?(_0x4b6b5e['shift'](),_0x9e231a[_0x46d924]['previousPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13),_0x5eac13['pop'](),_0x5eac13[_0x5eac13['length']-0x1]++,_0x9e231a[_0x46d924]['nextPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13)):(_0x9e231a[_0x46d924]['previousPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13),_0x380260?_0x380260['_data']+=_0x9e231a[_0x46d924]['item']['data']:_0x380260=new _0x5fe234(_0x9e231a[_0x46d924]['item']['data'],_0x9e231a[_0x46d924]['item']['getAttributes']()),_0x9e231a[_0x46d924+0x1]&&'text'===_0x9e231a[_0x46d924+0x1]['type']&&_0x37b2d4(_0x380260,_0x9e231a[_0x46d924+0x1]['item'])||(_0x4b6b5e[0x0]['_appendChild'](_0x380260),_0x380260=null),_0x5eac13[_0x5eac13['length']-0x1]+=_0x9e231a[_0x46d924]['item']['offsetSize'],_0x9e231a[_0x46d924]['nextPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13));for(let _0x51e71b=0x0;_0x51e71b<_0x9e231a['length'];_0x51e71b++){const _0x270a80=_0x9e231a[_0x51e71b]['previousPosition'],_0x2faf65=_0x9e231a[_0x51e71b]['nextPosition'];for(const _0x4013c2 of _0x9e231a[_0x51e71b]['markersStart'])_0x1f7c61['set'](_0x4013c2,{'start':_0x270a80,'end':null});_0x4f328f('isRemoveSuggestion',_0x51e71b,_0x270a80,_0x2faf65),_0x4f328f('isAddSuggestion',_0x51e71b,_0x270a80,_0x2faf65),_0x4f328f('isRemoved',_0x51e71b,_0x270a80,_0x2faf65),_0x4f328f('isAdded',_0x51e71b,_0x270a80,_0x2faf65);for(const _0x1575fb of _0x9e231a[_0x51e71b]['markersEnd']){const _0x44b0f7=_0x1f7c61['get'](_0x1575fb);_0x44b0f7?_0x44b0f7['end']=_0x2faf65:_0x1f7c61['set'](_0x1575fb,{'start':_0x2faf65,'end':_0x2faf65});}}for(const [_0x16efb6,_0x4e7d12]of _0x1f7c61){const _0x4b9fda=this['editor']['model']['createRange'](_0x4e7d12['start'],_0x4e7d12['end']);_0x42dece['markers']['set'](_0x16efb6,_0x4b9fda);}return _0xc5ff76['sort']((_0xb0be19,_0x1be82e)=>{const _0x550f3b=_0x42dece['markers']['get']('revision:'+_0xb0be19['id']),_0x380b89=_0x42dece['markers']['get']('revision:'+_0x1be82e['id']);return _0x550f3b['start']['isBefore'](_0x380b89['start'])?-0x1:_0x550f3b['start']['isAfter'](_0x380b89['start'])?0x1:_0x550f3b['end']['isBefore'](_0x380b89['end'])?-0x1:_0x550f3b['end']['isAfter'](_0x380b89['end'])?0x1:'add'===_0xb0be19['type']?-0x1:0x1;}),{'root':_0x42dece,'changes':_0xc5ff76};function _0x4f328f(_0x44a6b7,_0x1d23d2,_0x47ef5a,_0x3a6721){const _0x29df56=!!_0x9e231a[_0x1d23d2][_0x44a6b7],_0x251ef5=_0x29df56?_0x9e231a[_0x1d23d2][_0x44a6b7]['userId']:null,_0x4d799f=_0x1d23d2===_0x9e231a['length']-0x1,_0x5d6399=_0x3b1bee[_0x44a6b7][0x0],_0xeb14bc=_0x418879['isObject'](_0x9e231a[_0x1d23d2]['item']);!_0xc29777[_0x44a6b7]&&_0x29df56?_0xc29777[_0x44a6b7]={'start':_0x47ef5a,'tapeItem':_0x9e231a[_0x1d23d2],'userId':_0x251ef5,'type':_0x44a6b7}:_0xc29777[_0x44a6b7]&&!_0x29df56?(_0xc29777[_0x44a6b7]['end']=_0x47ef5a,_0x5a7905(_0xc29777[_0x44a6b7]),_0xc29777[_0x44a6b7]=null):_0xc29777[_0x44a6b7]&&_0x29df56&&_0xc29777[_0x44a6b7]['userId']!==_0x251ef5&&(_0xc29777[_0x44a6b7]['end']=_0x47ef5a,_0x5d6399&&_0x5d6399['userId']===_0xc29777[_0x44a6b7]['userId']||_0x5a7905(_0xc29777[_0x44a6b7]),_0xc29777[_0x44a6b7]={'start':_0x47ef5a,'tapeItem':_0x9e231a[_0x1d23d2],'userId':_0x251ef5,'type':_0x44a6b7}),_0xc29777[_0x44a6b7]&&_0xeb14bc&&('elementStart'!==_0x9e231a[_0x1d23d2]['type']||_0x5d6399&&_0x5d6399['userId']===_0x251ef5||_0x3b1bee[_0x44a6b7]['unshift']({'userId':_0x251ef5,'object':_0x9e231a[_0x1d23d2]['item'],'change':_0xc29777[_0x44a6b7]}),'elementEnd'===_0x9e231a[_0x1d23d2]['type']&&_0x5d6399&&_0x5d6399['object']===_0x9e231a[_0x1d23d2]['item']&&(_0x3b1bee[_0x44a6b7]['shift'](),_0xc29777[_0x44a6b7]=_0x5d6399['change'])),_0xc29777[_0x44a6b7]&&_0x4d799f&&(_0xc29777[_0x44a6b7]['end']=_0x3a6721,_0x5a7905(_0xc29777[_0x44a6b7]),_0xc29777[_0x44a6b7]=null);}function _0x5a7905({start:_0x2a2513,end:_0x28527d,tapeItem:_0x5520cb,userId:_0x3681f4,type:_0x212e1d}){const _0xee8811=_0x5520cb['item'],_0x5c3e58=_0x573966['schema']['isBlock'](_0xee8811)&&!_0x573966['schema']['isLimit'](_0xee8811),_0x3cece2=_0x2a2513['nodeAfter']==_0x28527d['parent']&&_0x28527d['isAtStart'];if(_0x5c3e58&&_0x3cece2)return;const _0x480ab2=_0x573966['createRange'](_0x2a2513,_0x28527d),_0x38f8c6=_0x421af7['get'](_0x3681f4),_0x467dcb=new G({'author':_0x38f8c6,'type':'isAdded'==_0x212e1d||'isAddSuggestion'==_0x212e1d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x212e1d||'isRemoveSuggestion'==_0x212e1d},'createdAt':new Date(),'rootName':_0x18de5f});_0xc5ff76['push'](_0x467dcb),_0x42dece['markers']['set']('revision:'+_0x467dcb['id'],_0x480ab2);}function _0x37b2d4(_0xe39653,_0x48dd4d){const _0x5b3c43=_0xe39653['getAttributes'](),_0xaff9dd=_0x48dd4d['getAttributes']();for(const _0x39a464 of _0x5b3c43){if(_0x39a464[0x1]!==_0x48dd4d['getAttribute'](_0x39a464[0x0]))return!0x1;_0xaff9dd['next']();}return _0xaff9dd['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x40a937=>{const _0x2edcc9=_0x40a937['markerName']['split'](':')[0x1],_0x26fb8e=this['_getChangeFromId'](_0x2edcc9);if(!_0x26fb8e)return null;const _0x39b187='add'==_0x26fb8e['type']?'insertion':'deletion',_0xcbe146=['ck-suggestion-marker','ck-suggestion-marker-'+_0x39b187];return _0x26fb8e['data']['isSuggestion']&&_0xcbe146['push']('ck-suggestion-marker-'+_0x39b187+'-new'),this['activeChange']==_0x26fb8e&&_0xcbe146['push']('ck-suggestion-marker--active'),{'classes':_0xcbe146,'attributes':{'data-change-id':_0x2edcc9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5572f1=>{_0x5572f1['on']('element:pre',(_0x2d29b7,_0x17e32d,_0x21d20f)=>{const _0x1ae01a=_0x17e32d['viewItem']['getChild'](0x0);if(!_0x1ae01a||!_0x1ae01a['is']('element','code'))return;if(!_0x21d20f['consumable']['consume'](_0x1ae01a,{'attributes':['vid_start','vid_end']}))return;const _0x2a0d46=_0x17e32d['modelRange']['start']['nodeAfter'];_0x21d20f['writer']['setAttribute']('vid_start',_0x1ae01a['getAttribute']('vid_start'),_0x2a0d46),_0x21d20f['writer']['setAttribute']('vid_end',_0x1ae01a['getAttribute']('vid_end'),_0x2a0d46);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x7bd16d=>{_0x7bd16d['on']('element',(_0x18d641,_0x1842e6,_0x3e8862)=>{if(!_0x3e8862['consumable']['consume'](_0x1842e6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1842e6['modelRange']['isCollapsed'])return;const _0x576b41=_0x1842e6['modelRange']['start']['nodeAfter'];_0x576b41['hasAttribute']('vid_start')||_0x576b41['hasAttribute']('vid')||(_0x3e8862['writer']['setAttribute']('vid_start',_0x1842e6['viewItem']['getAttribute']('vid_start'),_0x576b41),_0x3e8862['writer']['setAttribute']('vid_end',_0x1842e6['viewItem']['getAttribute']('vid_end'),_0x576b41));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2924d9=>_0x2924d9['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x389402,[,_0x39ebbf])=>{['vid_start','vid_end','vid']['includes'](_0x39ebbf)&&(_0x389402['return']=!0x0,_0x389402['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x536232=>{_0x536232['on']('attribute:vid',(_0x1a29e0,_0x32d72a,_0x48d22a)=>{if('\x20'!=_0x32d72a['item']['data']||_0x32d72a['item']['parent']['maxOffset']>0x1)return;if(!_0x48d22a['consumable']['consume'](_0x32d72a['item'],_0x1a29e0['name']))return;const _0x1454ef=_0x48d22a['writer'],_0x3887dc=_0x48d22a['mapper']['toViewRange'](_0x32d72a['range']);_0x1454ef['wrap'](_0x3887dc,_0x1454ef['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x52230f){const _0x19ddbc=_0x52230f['plugins']['get']('RevisionViewer');return(_0x3aac80,_0x5f4fbd,_0x3d15f8)=>{const _0x2293d6=_0x5f4fbd['markerName']['split'](':')[0x1],_0xf57d11=_0x19ddbc['_getChangeFromId'](_0x2293d6);if(!_0xf57d11)return null;const _0x45117b='add'==_0xf57d11['type']?'split':'merge';if(!_0x3d15f8['consumable']['test'](_0x5f4fbd['markerRange'],_0x3aac80['name']))return;const _0x46e74f=_0x5f4fbd['markerRange']['getWalker'](),_0x4b5e71=_0x5f4fbd['markerRange']['start'],_0x36a41b=_0x52230f['model']['schema'];let _0xff71ec=null,_0x510501=null,_0x27cd46=!0x1,_0x365ef1=!0x1;for(const _0x4e31c3 of _0x46e74f){const _0x506840=_0x4e31c3['item'];_0x27cd46=_0x27cd46||_0x36a41b['isContent'](_0x506840);const _0x4902b7=_0x3d15f8['mapper']['toViewElement'](_0x506840);if(_0x4902b7&&_0x4902b7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e31c3['type']&&(_0x36a41b['isBlock'](_0x506840)&&!_0x36a41b['isLimit'](_0x506840)&&(_0x506840['nextSibling']||_0x4b5e71['isAtEnd']?_0xff71ec&&_0xff71ec['parent']==_0x506840||(_0xff71ec=_0x506840,_0x400d55(_0x4e31c3['previousPosition']),_0x365ef1=!0x0):_0x510501=_0x510501||_0x4e31c3['previousPosition']));}function _0x400d55(_0x4bc48b){const _0x457679=_0x3d15f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45117b}),_0x44c4ab=_0x3d15f8['mapper']['toViewPosition'](_0x4bc48b);_0xf57d11['data']['isSuggestion']&&_0x3d15f8['writer']['addClass']('ck-suggestion-marker-'+_0x45117b+'-new',_0x457679),_0x19ddbc['activeChange']==_0xf57d11&&_0x3d15f8['writer']['addClass']('ck-suggestion-marker--active',_0x457679),_0x3d15f8['writer']['insert'](_0x44c4ab,_0x457679),_0x3d15f8['mapper']['bindElementToMarker'](_0x457679,_0x5f4fbd['markerName']);}_0x27cd46||_0x365ef1||!_0x510501||_0x400d55(_0x510501);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1a4c6b,_0x27b4f2,_0xb105e8)=>{const _0x581503=_0xb105e8['mapper']['markerNameToElements'](_0x27b4f2['markerName']);if(_0x581503){for(const _0x5b96c0 of _0x581503)(_0x5b96c0['hasClass']('ck-suggestion-marker-split')||_0x5b96c0['hasClass']('ck-suggestion-marker-merge'))&&(_0xb105e8['mapper']['unbindElementFromMarkerName'](_0x5b96c0,_0x27b4f2['markerName']),_0xb105e8['writer']['remove'](_0x5b96c0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x521490,_0x11923a,_0x476c01)=>{const _0x5eb63f=_0x11923a['markerName']['split'](':')[0x1],_0x559c62=this['_getChangeFromId'](_0x5eb63f);if(!_0x559c62)return null;const _0x5b386c='add'==_0x559c62['type']?'split':'merge';if(_0x476c01['consumable']['test'](_0x11923a['markerRange'],_0x521490['name']))for(const _0x288f20 of _0x11923a['markerRange']['getItems']()){if(!_0x288f20['is']('element','softBreak'))continue;const _0x2b1f89=_0x476c01['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b386c}),_0x400fad=_0x476c01['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x288f20));_0x559c62['data']['isSuggestion']&&_0x476c01['writer']['addClass']('ck-suggestion-marker-'+_0x5b386c+'-new',_0x2b1f89),this['activeChange']==_0x559c62&&_0x476c01['writer']['addClass']('ck-suggestion-marker--active',_0x2b1f89),_0x476c01['writer']['insert'](_0x400fad,_0x2b1f89),_0x476c01['mapper']['bindElementToMarker'](_0x2b1f89,_0x11923a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x10cdc8=>{for(const _0x1984b7 of this['editor']['model']['document']['getRootNames']()){const _0x11568f=this['editor']['model']['document']['getRoot'](_0x1984b7),_0x25c76f=this['editor']['editing']['view']['document']['getRoot'](_0x1984b7);if(_0x25c76f){const _0x4b9b42=_0x11568f['getAttribute']('revisionHistoryAttachChange');if(_0x10cdc8['removeAttribute']('data-change-id',_0x25c76f),_0x10cdc8['removeClass']('ck-revision-history-root-add',_0x25c76f),_0x10cdc8['removeClass']('ck-revision-history-root-remove',_0x25c76f),_0x10cdc8['removeClass']('ck-revision-history-root--active',_0x25c76f),_0x4b9b42){const _0x2d7d2c=this['_getChangeFromId'](_0x4b9b42);if(!_0x2d7d2c)return null;_0x10cdc8['setAttribute']('data-change-id',_0x4b9b42,_0x25c76f),_0x10cdc8['addClass']('ck-revision-history-root-'+_0x2d7d2c['type'],_0x25c76f),this['activeChange']==_0x2d7d2c&&_0x10cdc8['addClass']('ck-revision-history-root--active',_0x25c76f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2f242d=>'revision-comment:'+_0x2f242d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x20a318=>'revision-suggestion:'+_0x20a318,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x500c1f=>({'name':'suggestion:'+_0x500c1f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3fb715=>{const _0x262415=_0x3fb715['markerName']['split'](':')[0x1];return'insertion'!=_0x262415&&'deletion'!=_0x262415?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x262415]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xe2c89f,_0xf28b93,_0x31bfde)=>{const _0x11dadc=_0x31bfde['mapper']['markerNameToElements'](_0xf28b93['markerName']);if(_0x11dadc){for(const _0xe6f396 of _0x11dadc)_0xe6f396['is']('uiElement')&&(_0x31bfde['mapper']['unbindElementFromMarkerName'](_0xe6f396,_0xf28b93['markerName']),_0x31bfde['writer']['remove'](_0xe6f396));}},{'priority':'high'});}['_getChangeFromId'](_0x1fc2a7){return this['_changeIdToChange']['get'](_0x1fc2a7);}['_getViewForChange'](_0x3b3cdc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3b3cdc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1812f4,_0x4a6cdc,_0x3dd5cc,_0x3bf009)=>{_0x3bf009&&this['_balloon']['remove'](_0x3bf009),_0x3dd5cc&&(this['_balloon']['add']({'view':_0x3dd5cc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4a7933=this['editor']['editing'],_0x400af4=this['_getChangeFromId'](_0x3dd5cc['changeId']);let _0xf24a38;if(_0x400af4['data']['isOnRoot']){const _0x8c139a=_0x4a7933['view']['getDomRoot'](_0x400af4['rootName']);_0xf24a38=Array['from'](_0x8c139a['getClientRects']());}else{const _0x595f7d=this['editor']['model']['markers']['get']('revision:'+_0x3dd5cc['changeId']);_0xf24a38=Array['from'](_0x4a7933['mapper']['markerNameToElements'](_0x595f7d['name']))['map'](_0x35b6c4=>_0x4a7933['view']['domConverter']['mapViewToDom'](_0x35b6c4))['map'](_0x2c8853=>Array['from'](_0x2c8853['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xf24a38[0x0];return _0xf24a38['find'](_0x2ad370=>_0x2ad370['top']-0x3<=this['_activeViewTarget']['y']&&_0x2ad370['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2ad370['left']-0x3<=this['_activeViewTarget']['x']&&_0x2ad370['right']+0x3>=this['_activeViewTarget']['x'])||_0xf24a38[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3bf8fd,_0x4c60e8,_0x57787b,_0x5c5e60)=>{this['activeView']=_0x57787b?this['_getViewForChange'](_0x57787b):null,this['editor']['model']['change'](()=>{const _0x5df0ae=this['editor']['editing'];_0x5c5e60&&(_0x5c5e60['data']['isOnRoot']?_0x5df0ae['view']['change'](_0x5d9f7d=>{_0x5d9f7d['removeClass']('ck-revision-history-root--active',_0x5df0ae['view']['document']['getRoot'](_0x5c5e60['rootName']));}):_0x5df0ae['reconvertMarker']('revision:'+_0x5c5e60['id'])),_0x57787b&&(_0x57787b['data']['isOnRoot']?_0x5df0ae['view']['change'](_0x32fd70=>{_0x32fd70['addClass']('ck-revision-history-root--active',_0x5df0ae['view']['document']['getRoot'](_0x57787b['rootName']));}):_0x5df0ae['reconvertMarker']('revision:'+_0x57787b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x575740,_0x1b71ca)=>{if(this['activeChange'])return;const _0x2fbee7=this['_findChangeIdFromDomTarget'](_0x1b71ca['target']),_0x25ad6f=this['_changeIdToChange']['get'](_0x2fbee7);_0x25ad6f?(this['_activeViewTarget']={'x':_0x1b71ca['domEvent']['x'],'y':_0x1b71ca['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x25ad6f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x39c5f,_0x4ec595)=>{const _0x441930=this['_findChangeIdFromDomTarget'](_0x4ec595['target']),_0x18a8a0=this['_changeIdToChange']['get'](_0x441930);_0x18a8a0?(this['_activeViewTarget']={'x':_0x4ec595['domEvent']['x'],'y':_0x4ec595['domEvent']['y']},_0x18a8a0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x18a8a0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x46a465){do{const _0x18d04d=_0x46a465['getAttribute']('data-change-id');if(_0x18d04d)return _0x18d04d;_0x46a465=_0x46a465['parent'];}while(_0x46a465);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4a7561=>{for(const _0x53cce7 of this['editor']['model']['markers'])_0x4a7561['removeMarker'](_0x53cce7);});}}function Q(_0x27f294,_0x3a39d7){return(_0x12411f,_0x5eb567,_0x32e6c9)=>{if(!_0x32e6c9['consumable']['test'](_0x5eb567['markerRange'],_0x12411f['name']))return;const _0x3824c9=_0x5eb567['markerRange']['getWalker'](),_0x4e5b82=_0x5eb567['markerRange']['start'],_0xb804e2=_0x27f294['model']['schema'];let _0x2ffffb=null,_0x4247c8=null,_0x28e5e2=!0x1,_0x2ae952=!0x1;for(const _0x59a5fe of _0x3824c9){const _0x5394e9=_0x59a5fe['item'];_0x28e5e2=_0x28e5e2||_0xb804e2['isContent'](_0x5394e9);const _0x98530a=_0x32e6c9['mapper']['toViewElement'](_0x5394e9);if(_0x98530a&&_0x98530a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x59a5fe['type']&&(_0xb804e2['isBlock'](_0x5394e9)&&!_0xb804e2['isLimit'](_0x5394e9)&&(_0x5394e9['nextSibling']||_0x4e5b82['isAtEnd']?_0x2ffffb&&_0x2ffffb['parent']==_0x5394e9||(_0x2ffffb=_0x5394e9,_0x5a8428(_0x59a5fe['previousPosition']),_0x2ae952=!0x0):_0x4247c8=_0x4247c8||_0x59a5fe['previousPosition']));}function _0x5a8428(_0x19c820){const _0x53cced=_0x32e6c9['mapper']['toViewPosition'](_0x19c820),_0x264ae5=_0x32e6c9['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3a39d7});_0x32e6c9['writer']['insert'](_0x53cced,_0x264ae5),_0x32e6c9['mapper']['bindElementToMarker'](_0x264ae5,_0x5eb567['markerName']);}_0x28e5e2||_0x2ae952||!_0x4247c8||_0x5a8428(_0x4247c8);};}class nt extends _0x3068ad{constructor(_0x17a139){super(_0x17a139);const _0x12570e=_0x17a139['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x12570e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x12570e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x490846=this['editor'],_0x4ea986=_0x490846['plugins']['get'](u),_0x286e39=_0x4ea986['isReady']?_0x4ea986['diff']['newRevisionId']:null;_0x490846['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x286e39);}['refresh'](){const {isReady:_0x1652d8,isEnabled:_0xc76a2e,repository:_0xa7feca,diff:_0xe8e249}=this['editor']['plugins']['get'](u),_0x143792=_0xe8e249&&_0xa7feca['getLaterVisibleRevision'](_0xe8e249['newRevisionId']);this['isEnabled']=_0x1652d8&&_0xc76a2e&&Boolean(_0x143792);}}class rt extends _0x3068ad{['_step'];constructor(_0x564a3f,{direction:_0x571262}){super(_0x564a3f);const _0x5ead75=_0x564a3f['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x571262?0x1:-0x1,this['listenTo'](_0x5ead75,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ead75,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5ead75,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1837ba=this['editor'],_0x23fc6c=_0x1837ba['plugins']['get'](u),{isNavigationMode:_0x3fb2da,currentChangeNumber:_0x71c80b}=_0x23fc6c;let _0x1809a4;if(_0x23fc6c['activeChange']=_0x3fb2da?_0x23fc6c['diff']['changes']['get'](_0x71c80b+this['_step']):_0x23fc6c['diff']['changes']['first'],_0x23fc6c['activeChange']['data']['isOnRoot'])_0x1809a4=_0x1837ba['editing']['view']['getDomRoot'](_0x23fc6c['activeChange']['rootName']);else{const _0x1109bf=_0x1837ba['model']['markers']['get']('revision:'+_0x23fc6c['activeChange']['id']);_0x1809a4=_0x54852a(_0x1837ba['editing'],_0x1109bf);}_0x32b079({'target':_0x1809a4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1c4bd9,currentChangeNumber:_0x102561,numberOfChanges:_0x3c250c,isReady:_0x57ac42,isEnabled:_0x33b90e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x33b90e&&_0x57ac42&&_0x3c250c)&&(!_0x1c4bd9||(0x1===this['_step']?_0x102561<_0x3c250c-0x1:_0x102561>0x0));}}class Ri extends _0x171a1e{constructor(_0x1cfc37){super(_0x1cfc37);const _0x23e029=this['bindTemplate'],_0x58af86=new _0x2f07f1(_0x1cfc37),_0x48817b=new _0x2f07f1(_0x1cfc37);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',(_0x205549,_0x2274df)=>_0x205549&&_0x2274df>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2da7de,_0x7c28e0,_0x45120e,_0xf2286e)=>{if(!_0x2da7de)return m(_0x1cfc37,'Loading...');if(!_0x45120e)return m(_0x1cfc37,'No\x20changes');const _0x535525=m(_0x1cfc37,'NUMBER_OF_CHANGES',_0x45120e);return _0xf2286e?m(_0x1cfc37,'X_OF_Y_CHANGES',[_0x7c28e0+0x1,_0x45120e]):_0x535525;}),_0x58af86['set']({'label':m(_0x1cfc37,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x42f1c3}),_0x48817b['set']({'label':m(_0x1cfc37,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2114d9}),_0x58af86['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x48817b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x58af86['on']('execute',()=>this['fire']('execute','backward')),_0x48817b['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',_0x23e029['if']('_isStatusLabelVisible','ck-hidden',_0x2312b2=>!_0x2312b2)]},'children':[{'text':_0x23e029['to']('isNavigationMode',_0x5760ca=>_0x5760ca?m(_0x1cfc37,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1cfc37,'Total')+':\x20')}]},{'text':_0x23e029['to']('_statusText')}]},new _0xa1dda6(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x58af86,_0x48817b]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x30489c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2a9091=this['editor']['editing']['view'];_0x2a9091['change'](_0xc020a3=>{for(const _0x45dcf1 of _0x2a9091['document']['roots'])_0xc020a3['addClass'](ge,_0x45dcf1);});}['hide'](){const _0x2fbce1=this['editor']['editing']['view'];_0x2fbce1['change'](_0x23e252=>{for(const _0x4d64fb of _0x2fbce1['document']['roots'])_0x23e252['removeClass'](ge,_0x4d64fb);});}}class v extends _0x30489c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x50b1b5=this['editor'],_0x39bc16=_0x50b1b5['plugins']['get'](u),_0x2672d0=_0x50b1b5['plugins']['get'](ji);_0x50b1b5['ui']['componentFactory']['add']('exitToEditing',_0x532233=>{const _0x539135=new _0x2f07f1(_0x532233);return _0x539135['set']({'label':m(_0x532233,'Back\x20to\x20editing'),'icon':_0xa73157,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x539135,'execute',()=>{_0x50b1b5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x539135;}),_0x50b1b5['ui']['componentFactory']['add']('restoreRevision',_0x4a4b92=>{const _0x364d5c=new _0x2f07f1(_0x4a4b92);return _0x364d5c['set']({'label':m(_0x4a4b92,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x364d5c['bind']('isEnabled')['to'](_0x50b1b5['commands']['get']('restoreRevision')),this['listenTo'](_0x364d5c,'execute',()=>_0x50b1b5['execute']('restoreRevision')),_0x364d5c;}),_0x50b1b5['ui']['componentFactory']['add']('changesNavigation',_0xcaa4c4=>{const _0x59be78=new Ri(_0xcaa4c4),_0x1a45d1=_0x50b1b5['commands']['get']('showPreviousChange'),_0x2c03b7=_0x50b1b5['commands']['get']('showNextChange');return _0x59be78['bind']('isBackwardNavigationEnabled')['to'](_0x1a45d1,'isEnabled'),_0x59be78['bind']('isForwardNavigationEnabled')['to'](_0x2c03b7,'isEnabled'),_0x59be78['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39bc16),this['listenTo'](_0x59be78,'execute',(_0x44eff7,_0x32cc52)=>{_0x50b1b5['execute']('forward'===_0x32cc52?'showNextChange':'showPreviousChange');}),_0x59be78;}),_0x2672d0['show'](),_0x39bc16['on']('change:isReady',(_0x171b5d,_0x581d53,_0x3752b5)=>{_0x3752b5?_0x2672d0['hide']():_0x2672d0['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x48e31d,_0x2e9fc6){super(_0x48e31d,_0x2e9fc6);const _0x11c91a=this['bindTemplate'];this['set']({'label':m(_0x48e31d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x48e31d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x11c91a['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3b47c8=this['fieldView']['element'];this['_tooltipString']=_0x3b47c8['scrollWidth']>_0x3b47c8['clientWidth']&&_0x3b47c8['value']||'';}}class ni extends _0x171a1e{constructor(_0x1d92b5,_0x236ddd,_0x5ad73e){super(_0x1d92b5);const _0x57ca7e=new _0x28b393();_0x57ca7e['set']({'content':_0x16bbae,'viewBox':'0\x200\x2011\x2010'});const _0x20edd5=['ck','ck-revision-history-sidebar__revision-author'];_0x5ad73e&&_0x20edd5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1754bd=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1d92b5,_0x5ad73e?'Revision\x20creator':'Revision\x20author')},'children':[_0x57ca7e,_0x236ddd['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x20edd5},'children':_0x1754bd});}}function ai(_0x2535e7,_0x17a747){const _0x24ebbb=_0x2535e7['bindTemplate'],_0x569656=_0x2535e7['locale'],_0x4217a7=_0x2bc12f(_0x569656);_0x4217a7['panelPosition']='sw';const _0xbdbb8b=function(_0x17b2cc,_0x487ef3){const _0x5285cd=function(_0x55c3aa,_0x6f341a){const _0x19498c=_0x55c3aa['locale'],_0x109958={'Compare\x20against\x20selected':m(_0x19498c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x19498c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x19498c,'Restore\x20this\x20revision')};return _0x6f341a['map'](_0x5de0bd=>{const _0x563e97=_0x109958[_0x5de0bd['name']];return _0x563e97&&_0x563e97!==_0x5de0bd['name']&&(_0x5de0bd['name']=_0x563e97),_0x5de0bd;});}(_0x17b2cc,_0x487ef3),_0x115d35=new _0x379dd0();for(const _0x1f7f56 of _0x5285cd){const _0x535cbe={'type':'button','model':new to({'label':_0x1f7f56['name'],'class':_0x1f7f56['class'],'withText':!0x0,'role':'menuitem','_action':_0x1f7f56['action']})};_0x535cbe['model']['bind']('isEnabled')['to'](_0x17b2cc,'isActionsDropdownOpen',_0x5e1db5=>'function'!=typeof _0x1f7f56['isEnabled']||(!_0x5e1db5||_0x1f7f56['isEnabled'](_0x17b2cc))),_0x115d35['add'](_0x535cbe);}return _0x115d35;}(_0x2535e7,_0x17a747);return _0x2535e7['bind']('isActionsDropdownOpen')['to'](_0x4217a7,'isOpen'),_0x4217a7['buttonView']['set']({'label':m(_0x569656,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2cc398}),_0x4217a7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x24ebbb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x24ebbb['to'](_0x151106=>_0x151106['stopPropagation']())}}),_0x4217a7['on']('execute',_0x3ba788=>{_0x2535e7['isReady']&&'function'==typeof _0x3ba788['source']['_action']&&_0x3ba788['source']['_action'](_0x2535e7);}),_0x4403f9(_0x4217a7,_0xbdbb8b,{'role':'menu'}),_0x4217a7['listenTo'](_0x2535e7,'change:isActionsDropdownOpen',(_0x481d29,_0x3390e1,_0x486cad)=>{if(_0x486cad)for(const _0x425d07 of _0x4217a7['listView']['items']){const _0x23586f=_0x425d07['children']['first'],_0x5af540=_0x17a747['find'](_0x35da3f=>_0x35da3f['action']===_0x23586f['_action'])['isVisible'];_0x425d07['isVisible']=void 0x0===_0x5af540||_0x5af540(_0x2535e7);}}),_0x4217a7;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x28c99b,uid as _0x544ff4,Collection as _0x292637,logWarning as _0x2cfa54,FocusTracker as _0x5edae5,KeystrokeHandler as _0x354688,scrollViewportToShowTarget as _0x5e079d,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x23ee96}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xb2db8,set as _0x12995c,unset as _0x3cfb12,isEqual as _0x5dda21}from'es-toolkit/compat';import{Plugin as _0x437c77,PendingActions as _0x18f35f,Command as _0x5de004,ElementApiMixin as _0x1e9f0a,Editor as _0x3e40f0}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xefcee4,getMarkerDomElement as _0x52f960,ConfirmMixin as _0x138897,sanitizeEditorConfig as _0x254a4b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x1cd95f,ViewAttributeElement as _0x3dc87d,ViewEmptyElement as _0x5a0fb5,ViewRawElement as _0x1be34a,ViewUIElement as _0x112304,ViewDocumentFragment as _0x22f85d,ViewText as _0x42fd7f,ViewElement as _0x37bbf5,ModelElement as _0x467cfa,ModelRange as _0x49d459,ModelPosition as _0x2c240b,ModelDocumentFragment as _0xbdee0c,ModelText as _0x264685}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3dc43c,IconChevronUp as _0x56df88,IconChevronDown as _0x5c12f5,IconUndo as _0x550877,IconUser as _0x2f748d,IconThreeVerticalDots as _0x59f83a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x3560c6,View as _0x2a78ea,submitHandler as _0x301d30,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x2676c3,ListView as _0x15824c,ListItemView as _0x3054ac,ButtonView as _0x4c4445,MenuBarMenuView as _0x34fd27,MenuBarMenuListView as _0x2ddecd,MenuBarMenuListItemView as _0x456bf8,MenuBarMenuListItemButtonView as _0x590fd1,ContextualBalloon as _0x2cef43,ToolbarSeparatorView as _0x5d1747,IconView as _0x42ea15,addListToDropdown as _0x4e23b7,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x55e167,StickyPanelView as _0x768968,ToolbarView as _0x44ce47,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x43cb4d}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28c99b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xa88248){super(),this['id']=_0xa88248['id']||_0x544ff4(),this['creator']=_0xa88248['creator']||null,this['authors']=_0xa88248['authors']||[],this['diffData']=_0xa88248['diffData']||null,this['toVersion']=_0xa88248['toVersion']||0x0,this['fromVersion']=_0xa88248['fromVersion']||0x0,this['set']('name',_0xa88248['name']||''),this['set']('createdAt',_0xa88248['createdAt']||new Date()),this['set']('attributes',_0xa88248['attributes']||{});}['setName'](_0x28e64b){this['_update']({'name':_0x28e64b});}['setAttribute'](_0x13e43,_0x1fb33a){const _0x21df6b=_0xb2db8(this['attributes']);_0x12995c(_0x21df6b,_0x13e43,_0x1fb33a),this['_update']({'attributes':_0x21df6b});}['removeAttribute'](_0x504994){const _0x2134ce=_0xb2db8(this['attributes']);_0x3cfb12(_0x2134ce,_0x504994),this['_update']({'attributes':_0x2134ce});}['_update'](_0x1a6c77,_0x491f26=!0x1){let _0x997eb1=!0x1;const _0x96c45b={'id':this['id']},_0x5b4966=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x55bab6 of _0x5b4966){const _0x55ea4c=_0x1a6c77[_0x55bab6];void 0x0!==_0x55ea4c&&_0x55ea4c!==this[_0x55bab6]&&(this[_0x55bab6]=_0x55ea4c,_0x96c45b[_0x55bab6]=_0x55ea4c,_0x997eb1=!0x0);}_0x997eb1&&(_0x96c45b['authors']&&(_0x96c45b['authorsIds']=_0x96c45b['authors']['map'](_0x18a3ce=>_0x18a3ce['id']),delete _0x96c45b['authors']),this['fire']('_update',_0x96c45b,_0x491f26));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x539140=>_0x539140['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x437c77{['_revisions'];static get['requires'](){return[_0xefcee4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3a066f){super(_0x3a066f),this['_revisions']=new _0x292637();}['afterInit'](){!async function(_0xcf1f01){const _0x3a4a8f=_0x5b61ac([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0xfac78=0xeb829,_0x49d6f0=0x7374585f,_0x47156f=0x73732e1f^_0x49d6f0,_0x32b2f0=window[_0x5b61ac([0x44,0x61,0x74,0x65])][_0x5b61ac([0x6e,0x6f,0x77])](),_0x230987=_0xcf1f01[_0x5b61ac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48048e=new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df739=>{_0x230987[_0x5b61ac([0x6f,0x6e,0x63,0x65])](_0x5b61ac([0x72,0x65,0x61,0x64,0x79]),_0x3df739);}),_0x5734e4={[_0x5b61ac([0x6b,0x74,0x79])]:_0x5b61ac([0x45,0x43]),[_0x5b61ac([0x75,0x73,0x65])]:_0x5b61ac([0x73,0x69,0x67]),[_0x5b61ac([0x63,0x72,0x76])]:_0x5b61ac([0x50,0x2d,0x32,0x35,0x36]),[_0x5b61ac([0x78])]:_0x5b61ac([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]),[_0x5b61ac([0x79])]:_0x5b61ac([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]),[_0x5b61ac([0x61,0x6c,0x67])]:_0x5b61ac([0x45,0x53,0x32,0x35,0x36])},_0x217849=_0x230987[_0x5b61ac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b61ac([0x67,0x65,0x74])](_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5af966(){let _0x49ecb0,_0x334eae=null,_0x4ae4a4=null;try{if(_0x217849==_0x5b61ac([0x47,0x50,0x4c]))return _0x5b61ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49ecb0=_0x4248d8(),!_0x49ecb0)return _0x5b61ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49ecb0[_0x5b61ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ae4a4=_0x1e9132(_0x49ecb0[_0x5b61ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49ecb0[_0x5b61ac([0x6a,0x74,0x69])])),await _0x301c9d()?_0x2e7339()?_0x458e63()?_0x5b61ac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53b077()?(_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b61ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x334eae=_0x32adc0(_0x5b61ac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b61ac([0x74,0x72,0x69,0x61,0x6c])&&(_0x334eae=_0x32adc0(_0x5b61ac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ab9b4()):_0x5b61ac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b61ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b61ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b61ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x458e63(){const _0x35165d=[_0x5b61ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b61ac([0x74,0x72,0x69,0x61,0x6c])][_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32b2f0/0x3e8:0xe10*_0x47156f;return _0x49ecb0[_0x5b61ac([0x65,0x78,0x70])]<_0x35165d;}function _0x2e7339(){const _0x54e42c=_0x49ecb0[_0x5b61ac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x54e42c)return!0x1;if(_0x54e42c[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x2a])))return!0x0;if(_0x54e42c[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x52,0x48])))return!0x0;if(_0x54e42c[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x52,0x52,0x48]))){if(_0x41bc26())return!0x0;if(_0x1ee0bd()||_0x167f98())return!0x0;}return!0x1;}function _0x53b077(){const _0x204807=_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x204807||0x0==_0x204807[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x96e4d8}=new URL(window[_0x5b61ac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x204807[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96e4d8))return!0x0;const _0x10f571=_0x96e4d8[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e]));return _0x204807[_0x5b61ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x134569=>_0x134569[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x2a])))[_0x5b61ac([0x6d,0x61,0x70])](_0x298b9e=>_0x298b9e[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e])))[_0x5b61ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e7de4=>_0x2e7de4[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10f571[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b61ac([0x6d,0x61,0x70])](_0x12f0b3=>Array(_0x10f571[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12f0b3[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b61ac([0x66,0x69,0x6c,0x6c])](_0x12f0b3[0x0]===_0x5b61ac([0x2a])?_0x5b61ac([0x2a]):'')[_0x5b61ac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12f0b3))[_0x5b61ac([0x73,0x6f,0x6d,0x65])](_0x1f53d1=>_0x10f571[_0x5b61ac([0x65,0x76,0x65,0x72,0x79])]((_0x5a5a59,_0x59b6fa)=>_0x1f53d1[_0x59b6fa]===_0x5a5a59||_0x1f53d1[_0x59b6fa]===_0x5b61ac([0x2a])));}function _0x1ab9b4(){return _0x334eae&&_0x4ae4a4?new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50b8ad,_0x28a57b)=>{_0x334eae[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x50b8ad,_0x28a57b),_0x4ae4a4[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x3a0cd0=>{_0x3a0cd0!=_0x5b61ac([0x56,0x61,0x6c,0x69,0x64])&&_0x50b8ad(_0x3a0cd0);},_0x28a57b);}):_0x334eae||_0x4ae4a4||_0x5b61ac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e9132(_0x1a041c,_0x2ad16b){return new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c17c1=>{if(_0x2702c8())return _0x4c17c1(_0x5b61ac([0x56,0x61,0x6c,0x69,0x64]));_0x13afba(),_0x230987[_0x5b61ac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b61ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19d003=!0x1;const _0x23444b=_0x544ff4();function _0x44e310(_0x1e4a66){return!!_0x1e4a66&&(typeof _0x1e4a66===_0x5b61ac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e4a66===_0x5b61ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e4a66[_0x5b61ac([0x74,0x68,0x65,0x6e])]===_0x5b61ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e4a66[_0x5b61ac([0x63,0x61,0x74,0x63,0x68])]===_0x5b61ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c51af(_0x2663b2){_0x192b2e(_0x2663b2)[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x230c78=>{if(!_0x230c78||_0x230c78[_0x5b61ac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b61ac([0x6f,0x6b]))return _0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37d05b(_0x260938(_0x23444b+_0x2ad16b))!=_0x230c78[_0x5b61ac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b61ac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x3791e9=>(_0x5d25bb(),_0x3791e9),()=>{const _0x4daf76=_0x34b422();return null==_0x4daf76?(_0x5d25bb(),_0x5b61ac([0x56,0x61,0x6c,0x69,0x64])):_0x5b61ac(_0x32b2f0-_0x4daf76>(0x5778dc5f^_0x49d6f0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x4c17c1)[_0x5b61ac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c17c1(_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24769a=0x7342b6df^_0x49d6f0;function _0x5d25bb(){const _0x4ee71=_0x5b61ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x37d05b(_0x260938(_0x1a041c)),_0x3fd6da=_0x1e54e5(_0x37d05b(window[_0x5b61ac([0x4d,0x61,0x74,0x68])][_0x5b61ac([0x63,0x65,0x69,0x6c])](_0x32b2f0/_0x24769a)));window[_0x5b61ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b61ac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ee71,_0x3fd6da);}function _0x34b422(){const _0x43aa1d=_0x5b61ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x37d05b(_0x260938(_0x1a041c)),_0x44d157=window[_0x5b61ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b61ac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43aa1d);return _0x44d157?window[_0x5b61ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e54e5(_0x44d157),0x10)*_0x24769a:null;}function _0x192b2e(_0x5b575c){return new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5275a1,_0x477767)=>{_0x5b575c[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x5275a1,_0x477767),window[_0x5b61ac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x477767,0x73758c9f^_0x49d6f0);});}}_0x230987[_0x5b61ac([0x6f,0x6e])](_0x5b61ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcf4ad5,_0x2f68f7)=>{if(_0x2f68f7[0x0]!=_0x1a041c)return _0x4c17c1(_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f68f7[0x1]={..._0x2f68f7[0x1],[_0x5b61ac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23444b};},{[_0x5b61ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b61ac([0x68,0x69,0x67,0x68])}),_0x230987[_0x5b61ac([0x6f,0x6e])](_0x5b61ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39959f=>{_0x44e310(_0x39959f[_0x5b61ac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19d003=!0x0,_0x3c51af(_0x39959f[_0x5b61ac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b61ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b61ac([0x6c,0x6f,0x77])}),_0x48048e[_0x5b61ac([0x74,0x68,0x65,0x6e])](()=>{_0x19d003||_0x4c17c1(_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2702c8(){return _0x230987[_0x5b61ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b61ac([0x76,0x69,0x65,0x77])][_0x5b61ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b61ac([0x61,0x75,0x74,0x6f]);}function _0x13afba(){_0x230987[_0x5b61ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b61ac([0x76,0x69,0x65,0x77])][_0x5b61ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b61ac([0x61,0x75,0x74,0x6f]);}}function _0x32adc0(_0x54f4d0){const _0x4051c7=[new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4090a7=>setTimeout(_0x4090a7,0x737d6693^_0x49d6f0)),_0x48048e[_0x5b61ac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310c5b=>{const _0x467555=0x73745858^_0x49d6f0,_0x279989=_0xcf1f01[_0x5b61ac([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x38fa60(){_0x279989[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x467555&&_0x310c5b();}_0x38fa60(),_0x279989[_0x5b61ac([0x6f,0x6e])](_0x5b61ac([0x61,0x64,0x64]),_0x38fa60);})),new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b522a=>{function _0x244df7(){for(const _0x4e24b8 in window)if(window[_0x5b61ac([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5b61ac([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e24b8))&&window[_0x4e24b8]==_0xfac78)return _0x4b522a();_0x230987[_0x5b61ac([0x73,0x74,0x61,0x74,0x65])]!=_0x5b61ac([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5b61ac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x244df7,0x73744bd7^_0x49d6f0);}_0x2c7814(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x244df7();})];return window[_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b61ac([0x72,0x61,0x63,0x65])](_0x4051c7)[_0x5b61ac([0x74,0x68,0x65,0x6e])](()=>_0x54f4d0);}async function _0x3b6cd3(){if(await _0x48048e,_0x2c7814(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2af876=_0xcf1f01[_0x5b61ac([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x32e1a5=_0xcf1f01[_0x5b61ac([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])](_0x2af876[_0x5b61ac([0x69,0x64])]),_0x44d9ac=_0x29bc7c(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x44d9ac[_0x5b61ac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2af876['id'],_0x32e1a5?_0x32e1a5['id']:null,!0x0),_0x44d9ac[_0x5b61ac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x44d9ac[_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x44d9ac[_0x5b61ac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2088e3,void(_0x44d9ac[_0x5b61ac([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2088e3);}if(_0x2c7814(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1bf90b=_0x29bc7c(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1bf90b[_0x5b61ac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bf90b[_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bf90b[_0x5b61ac([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2088e3,_0x1bf90b[_0x5b61ac([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2088e3;}_0x230987[_0x5b61ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b61ac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2088e3,_0x230987[_0x5b61ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b61ac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2088e3,_0x230987[_0x5b61ac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b61ac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41bc26(){return _0x2c7814(_0x5b61ac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29bc7c(_0x5b61ac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5b61ac([0x73,0x74,0x61,0x74,0x65])]==_0x5b61ac([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ee0bd(){return _0x2c7814(_0x5b61ac([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 _0x167f98(){return _0x2c7814(_0x5b61ac([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x16307d(_0x51a133){const _0xeb0963=_0x1a2323();_0x230987[_0xeb0963]=_0x5b61ac([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])+_0x51a133,_0x51a133[_0x5b61ac([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5b61ac([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1a2323()]=_0xfac78),_0x51a133!=_0x5b61ac([0x56,0x61,0x6c,0x69,0x64])&&_0x3b6cd3();}function _0x1a2323(){const _0x2e0ef5=window[_0x5b61ac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b61ac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b61ac([0x6e,0x6f,0x77])]())[_0x5b61ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b61ac([0x2e]),'');let _0x3bc178=_0x5b61ac([0x73]);for(let _0x32004c=0x0;_0x32004c<_0x2e0ef5[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32004c+=0x2){let _0x528025=window[_0x5b61ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e0ef5[_0x5b61ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32004c,_0x32004c+0x2));_0x528025>=_0x3a4a8f[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x528025-=_0x3a4a8f[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bc178+=_0x3a4a8f[_0x528025];}return _0x3bc178;}function _0x4248d8(){const _0xdecaf9=_0x217849[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e]));if(0x3!=_0xdecaf9[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x736e09(_0xdecaf9[0x1]);function _0x736e09(_0x1b1217){const _0x38ddaf=_0xc3d67e(_0x1b1217);return _0x38ddaf&&_0x28eb15()?_0x38ddaf:null;function _0x28eb15(){const _0x198537=_0x38ddaf[_0x5b61ac([0x6a,0x74,0x69])],_0xa77e5a=window[_0x5b61ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x198537[_0x5b61ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x198537[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b10cb={..._0x38ddaf,[_0x5b61ac([0x6a,0x74,0x69])]:_0x198537[_0x5b61ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x198537[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b10cb[_0x5b61ac([0x76,0x63])],_0x260938(_0x3b10cb)==_0xa77e5a;}}}async function _0x301c9d(){let _0x13c5e4=!0x0;try{const _0x42ccaf=_0x217849[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e])),[_0x1e14ff,_0x5b5163,_0x4444dd]=_0x42ccaf;return _0x3288d1(_0x1e14ff),await _0x243bf5(_0x1e14ff,_0x5b5163,_0x4444dd),_0x13c5e4;}catch{return!0x1;}function _0x3288d1(_0x39a319){const _0x9fb708=_0xc3d67e(_0x39a319);_0x9fb708&&_0x9fb708[_0x5b61ac([0x61,0x6c,0x67])]==_0x5b61ac([0x45,0x53,0x32,0x35,0x36])||(_0x13c5e4=!0x1);}async function _0x243bf5(_0x4fdd15,_0x180492,_0x534839){const _0x139ba1=window[_0x5b61ac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b61ac([0x66,0x72,0x6f,0x6d])](_0x75e524(_0x534839),_0x51816f=>_0x51816f[_0x5b61ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3dc42b=new window[(_0x5b61ac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b61ac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fdd15+_0x5b61ac([0x2e])+_0x180492),_0x13eec7=window[_0x5b61ac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b61ac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13eec7)return;const _0x428b9d=await _0x13eec7[_0x5b61ac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b61ac([0x6a,0x77,0x6b]),_0x5734e4,{[_0x5b61ac([0x6e,0x61,0x6d,0x65])]:_0x5b61ac([0x45,0x43,0x44,0x53,0x41]),[_0x5b61ac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b61ac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b61ac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13eec7[_0x5b61ac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b61ac([0x6e,0x61,0x6d,0x65])]:_0x5b61ac([0x45,0x43,0x44,0x53,0x41]),[_0x5b61ac([0x68,0x61,0x73,0x68])]:{[_0x5b61ac([0x6e,0x61,0x6d,0x65])]:_0x5b61ac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x428b9d,_0x139ba1,_0x3dc42b)||(_0x13c5e4=!0x1);}}function _0xc3d67e(_0x47a197){return _0x47a197[_0x5b61ac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b61ac([0x65,0x79]))?JSON[_0x5b61ac([0x70,0x61,0x72,0x73,0x65])](_0x75e524(_0x47a197)):null;}function _0x75e524(_0x4380ce){return window[_0x5b61ac([0x61,0x74,0x6f,0x62])](_0x4380ce[_0x5b61ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b61ac([0x2b]))[_0x5b61ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b61ac([0x2f])));}function _0x260938(_0x57547c){let _0x47ba1c=0x1505;function _0x19c70d(_0x496332){for(let _0x12ffe1=0x0;_0x12ffe1<_0x496332[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12ffe1++){const _0x1b2d5a=_0x496332[_0x5b61ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12ffe1);_0x47ba1c=(_0x47ba1c<<0x5)+_0x47ba1c+_0x1b2d5a,_0x47ba1c&=_0x47ba1c;}}function _0x901e80(_0x93d7c3){Array[_0x5b61ac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x93d7c3)?_0x93d7c3[_0x5b61ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x901e80):_0x93d7c3&&typeof _0x93d7c3==_0x5b61ac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b61ac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x93d7c3)[_0x5b61ac([0x73,0x6f,0x72,0x74])]()[_0x5b61ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3afc67,_0x28d29f])=>{_0x19c70d(_0x3afc67),_0x901e80(_0x28d29f);}):_0x19c70d(window[_0x5b61ac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x93d7c3));}return _0x901e80(_0x57547c),_0x47ba1c>>>0x0;}function _0x37d05b(_0x1874f1){return _0x1874f1[_0x5b61ac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b61ac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b61ac([0x30]));}function _0x1e54e5(_0x198001){return _0x198001[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b61ac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b61ac([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c7814(_0xb1bd4c){return _0x230987[_0x5b61ac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b61ac([0x68,0x61,0x73])](_0xb1bd4c);}function _0x29bc7c(_0x42f4c3){return _0x230987[_0x5b61ac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b61ac([0x67,0x65,0x74])](_0x42f4c3);}function _0x2088e3(){}function _0x5b61ac(_0x580b5f){return _0x580b5f['map'](_0x1b188f=>String['fromCharCode'](_0x1b188f))['join']('');}_0x16307d(await _0x5af966());}(this);}['createRevision'](_0x1d3051){const _0x20dc94=this['editor']['plugins']['get']('Users');return new I({'id':_0x1d3051['id'],'name':_0x1d3051['name'],'creator':_0x1d3051['creatorId']?_0x20dc94['getUser'](_0x1d3051['creatorId']):null,'diffData':_0x1d3051['diffData']||_0x1d3051['data'],'authors':_0x1d3051['authorsIds']['map'](_0x51c9e3=>_0x20dc94['getUser'](_0x51c9e3)),'createdAt':new Date(_0x1d3051['createdAt']),'attributes':_0x1d3051['attributes'],'fromVersion':_0x1d3051['fromVersion'],'toVersion':_0x1d3051['toVersion']});}['addRevision'](_0x5cc33a,_0x175721=0x0){this['_revisions']['add'](_0x5cc33a,_0x175721);}['getRevision'](_0x41aed3){return this['_revisions']['get'](_0x41aed3);}['getRevisions'](_0x21df83={'toJSON':!0x1}){const _0x2c92e8=Array['from'](this['_revisions']);return _0x2c92e8['reverse'](),_0x21df83['toJSON']?_0x2c92e8['map'](_0x2d2057=>_0x2d2057['toJSON']()):_0x2c92e8;}['getIndex'](_0x40a962){return this['_revisions']['getIndex'](_0x40a962);}['getEarlierVisibleRevision'](_0x296932){const [,_0x1ba690]=this['getRevisionsIterator'](_0x296932,{'direction':'earlier'});return _0x1ba690;}['getLaterVisibleRevision'](_0xc0c1f3){const [,_0x2afaf8]=this['getRevisionsIterator'](_0xc0c1f3,{'direction':'later'});return _0x2afaf8;}['getRevisionsInDiff'](_0x5e6ccb){const _0xf6eff9=[];for(const _0x2fa6b0 of this['getRevisionsIterator'](_0x5e6ccb['newRevisionId']))if(_0xf6eff9['push'](_0x2fa6b0),_0x2fa6b0['id']===_0x5e6ccb['oldRevisionId'])break;return _0xf6eff9;}*['getRevisionsIterator'](_0x78bb72,{direction:_0xc0c3ff='earlier',filter:_0x502871=()=>!0x0}={}){const _0x2aab6b='earlier'===_0xc0c3ff?0x1:-0x1;let _0x46b9d7=this['_revisions']['get'](_0x78bb72),_0x425f9c=this['getIndex'](_0x46b9d7);for(yield _0x46b9d7;_0x46b9d7;){if(_0x425f9c+=_0x2aab6b,_0x46b9d7=this['getRevision'](_0x425f9c),!_0x46b9d7)return;_0x502871(_0x46b9d7)&&(yield _0x46b9d7);}}}class $ extends _0x437c77{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1cd95f,'c'],[_0x3dc87d,'a'],[_0x5a0fb5,'e'],[_0x1be34a,'r'],[_0x112304,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1cd95f],['a',_0x3dc87d],['e',_0x5a0fb5],['r',_0x1be34a],['u',_0x112304]]);async['loadRevisionData'](_0xe0a461,_0x55e4c5){if(_0xe0a461['diffData']||!_0x55e4c5)return;const _0x3c7052=this['editor']['config']['get']('collaboration.channelId'),_0x365499=await _0x55e4c5['getRevision']({'channelId':_0x3c7052,'revisionId':_0xe0a461['id']});_0xe0a461['diffData']=_0x365499['diffData'];}['getRevisionDocumentData'](_0x41f780){const _0x219a26={};for(const _0x479481 in _0x41f780['diffData']){if(_0x41f780['diffData'][_0x479481]['attachChange']&&!_0x41f780['diffData'][_0x479481]['attachChange']['isAttached'])continue;const _0x23a54f=this['_removeRevisionMarkers'](JSON['parse'](_0x41f780['diffData'][_0x479481]['insertions'])),_0x11aa52=this['editor']['editing']['view']['document'],_0x3e81f3=new _0x22f85d(_0x11aa52,_0x23a54f['map'](_0x42f01d=>this['_getViewFromDiffObj'](_0x42f01d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x219a26[_0x479481]=this['editor']['data']['processor']['toData'](_0x3e81f3),this['editor']['data']['processor']['useFillerType']('default');}return _0x219a26;}['getRevisionRootsAttributes'](_0x2844f5){const _0x298b8d={};for(const _0x2f7391 in _0x2844f5['diffData'])_0x2844f5['diffData'][_0x2f7391]['attachChange']&&!_0x2844f5['diffData'][_0x2f7391]['attachChange']['isAttached']||(_0x298b8d[_0x2f7391]=_0x2844f5['diffData'][_0x2f7391]['attributesAfter']||{});return _0x298b8d;}['_getTypeCharForViewElement'](_0x2836f9){return this['_viewClassToTypeChar']['get'](_0x2836f9['constructor']);}['_getViewFromDiffObj'](_0x24412d,_0x2310fe){const _0x2eeff2=this['editor']['editing']['view']['document'];if('string'==typeof _0x24412d)return new _0x42fd7f(_0x2eeff2,_0x24412d);{let _0x1702e8,_0x2d91fe;_0x2d91fe='u'==_0x24412d['type']||'r'==_0x24412d['type']?[]:_0x24412d['children']['map'](_0xa32fc6=>this['_getViewFromDiffObj'](_0xa32fc6,_0x2310fe));const _0x7c1036=this['_typeCharToViewClass']['get'](_0x24412d['type'])||_0x37bbf5,_0x2c4de5=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1702e8=new _0x7c1036(_0x2eeff2,_0x24412d['name'],_0x24412d['attributes'],_0x2d91fe),'u'==_0x24412d['type']&&_0x24412d['children'][0x0]){const _0x2e4d3c=_0x24412d['children'][0x0];if(_0x1702e8['render']=function(_0x3c3aa4){const _0x4c4a74=_0x3c3aa4['createElement']('div');return _0x4c4a74['innerHTML']=_0x2e4d3c,_0x4c4a74['childNodes'][0x0];},_0x2310fe){const _0x4c11cc=new _0x22f85d(_0x2eeff2);_0x4c11cc['_appendChild'](_0x1702e8);const _0x555995=Array['from'](_0x2c4de5['viewChildrenToDom'](_0x4c11cc,{'bind':!0x1})),_0x1e0656=_0x2c4de5['domDocument']['createElement']('div');_0x1e0656['append'](..._0x555995),_0x1702e8=Array['from'](_0x2c4de5['domChildrenToView'](_0x1e0656))[0x0];}}else{if('r'==_0x24412d['type']&&_0x24412d['children'][0x0]){const _0x2a9466=_0x24412d['children'][0x0];if(_0x1702e8['render']=function(_0x3fbe9d){_0x3fbe9d['innerHTML']=_0x2a9466;},_0x2310fe){const _0x5bd722=new _0x22f85d(_0x2eeff2);_0x5bd722['_appendChild'](_0x1702e8);const _0x5ec8c0=Array['from'](_0x2c4de5['viewChildrenToDom'](_0x5bd722,{'bind':!0x1})),_0x140f90=_0x2c4de5['domDocument']['createElement']('div');_0x140f90['append'](..._0x5ec8c0);const _0x348168=Array['from'](_0x2c4de5['domChildrenToView'](_0x140f90));_0x348168['length']>0x1?_0x1702e8['_appendChild'](_0x348168):_0x1702e8=_0x348168[0x0];}}}if(_0x24412d['customProperties']){for(const [_0x3996c2,_0x33dd11]of _0x24412d['customProperties'])_0x1702e8['_setCustomProperty'](_0x3996c2,_0x33dd11);}const _0x3dcd4a=void 0x0===_0x24412d['fillerOffset']?null:_0x24412d['fillerOffset'];return null!==_0x3dcd4a&&(_0x1702e8['getFillerOffset']=()=>_0x3dcd4a),_0x1702e8;}}['_makeModelFromViewString'](_0x443297){const _0x1a7da4=JSON['parse'](_0x443297),_0x279f8a=this['editor']['editing']['view']['document'],_0x23b71b=new _0x22f85d(_0x279f8a,_0x1a7da4['map'](_0x1d7e7e=>this['_getViewFromDiffObj'](_0x1d7e7e,!0x0)));return this['editor']['data']['toModel'](_0x23b71b);}['_removeRevisionMarkers'](_0x198c07){return(_0x198c07=_0x198c07['filter'](_0x4bc68a=>!_0x4bc68a['name']||'revision-start'!==_0x4bc68a['name']&&'revision-end'!==_0x4bc68a['name']))['forEach'](_0x230dfd=>{'string'!=typeof _0x230dfd&&(_0x230dfd['children']=this['_removeRevisionMarkers'](_0x230dfd['children']),_0x230dfd['attributes']=_0x230dfd['attributes']['filter'](_0x3673f0=>!_0x3673f0[0x0]['startsWith']('data-revision-')));}),_0x198c07;}}function m(_0x2c7c9c,_0x163ae8,_0x5bd642){const t=_0x2c7c9c['t'];switch(_0x163ae8){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'},_0x5bd642);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5bd642);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 h extends _0x437c77{['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[_0xefcee4,S,$,_0x18f35f];}constructor(_0x138ff2){super(_0x138ff2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5ce6e6=_0x544ff4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5ce6e6},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 _0x2fe9ca=this['repository']['getRevision'](0x0),_0x4a9b17=_0x2fe9ca&&null===_0x2fe9ca['creator']?_0x2fe9ca:null;if(this['_continueCurrentRevision']=!!_0x4a9b17&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5a6ed4=this['_source']['getCurrentRevisionId'](),_0x56aa8f=this['repository']['getRevision'](_0x5a6ed4);if(_0x56aa8f)this['_startingVersion']=_0x56aa8f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xf01adf=this['_source']['history']['_operations']['find'](_0x22df86=>!_0x22df86['_isInit']),_0x1d43f3=_0xf01adf?_0xf01adf['baseVersion']:this['_source']['history']['version'];_0x2fe9ca?(_0x2fe9ca['toVersion']<_0x1d43f3&&_0x2fe9ca['_update']({'toVersion':_0x1d43f3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4a9b17['id'],this['_startingVersion']=_0x4a9b17['fromVersion']):(this['_startingVersion']=_0x2fe9ca['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1d43f3,this['_continueCurrentRevision']=!0x1);}}else _0x4a9b17&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4a9b17['toVersion'],this['editor']['model']['document']['history']['version']),_0x4a9b17['fromVersion']===_0x4a9b17['toVersion']?(0x0!==_0x4a9b17['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a9b17['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a9b17['id'],this['_startingVersion']=_0x4a9b17['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',_0x13c496=>!_0x13c496),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x213305=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5040b1;for(const _0x2c7f65 in _0x213305){const _0x1d93a2=_0x2c7f65,_0x233c84=_0x213305[_0x1d93a2];if('revisionHistoryLicenseKeyValid'==_0x233c84||'revisionHistoryLicenseKeyInvalid'==_0x233c84||'revisionHistoryLicenseKeyExpired'==_0x233c84||'revisionHistoryLicenseKeyDomainLimit'==_0x233c84||'revisionHistoryLicenseKeyNotAllowed'==_0x233c84||'revisionHistoryLicenseKeyEvaluationLimit'==_0x233c84||'revisionHistoryLicenseKeyTrialLimit'==_0x233c84||'revisionHistoryLicenseKeyUsageLimit'==_0x233c84){delete _0x213305[_0x1d93a2],_0x5040b1=_0x233c84,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5040b1&&_0x213305['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5040b1&&_0x213305['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5040b1&&_0x213305['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5040b1&&_0x213305['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5040b1&&_0x213305['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5040b1&&_0x213305['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5040b1&&_0x213305['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x58b8f1=this['repository']['getRevision'](0x0),_0xdce86f=await this['getRevisionDocumentData'](_0x58b8f1),_0x560bef=await this['getRevisionRootsAttributes'](_0x58b8f1);this['_replaceEditorDataWithRevisionData'](_0xdce86f,_0x560bef);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x446deb){this['_source']=_0x446deb;}async['update'](){const _0x2a9da9=await this['_source']['getLatestVersion']();if(_0x2a9da9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2ea115=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2a9da9});_0x2ea115['authors']=_0x2ea115['authorsIds']['map'](_0x44fad9=>this['editor']['plugins']['get']('Users')['getUser'](_0x44fad9)),this['currentRevision']['_update'](_0x2ea115);}}async['saveRevision'](_0x582952={},_0x1a3497=null){const _0x3622df=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1a3497>this['currentRevision']['toVersion']&&(_0x1a3497=null),null===_0x1a3497&&(_0x1a3497=await this['_source']['getLatestVersion']());const _0x25bc1c=this['_getFromVersion'](_0x1a3497),_0x33f234=this['buildRevisionData']({'from':_0x25bc1c,'to':_0x1a3497});if(this['currentRevision']['toVersion']<_0x1a3497){const _0xbaee8b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1a3497,'to':_0x1a3497});_0xbaee8b['authors']=[],_0xbaee8b['authorsIds']=[],_0xbaee8b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xbaee8b,!0x0),delete _0xbaee8b['authors'],_0x3622df['push'](_0xbaee8b);}_0x582952['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x582952['name']=_0x582952['name']||null,_0x582952['id']=_0x582952['id']||_0x544ff4(),_0x582952={..._0x582952,..._0x33f234};const _0x33df49=this['addRevisionData'](_0x582952);_0x3622df['push'](_0x582952);const _0x4b8f16=this['repository']['getIndex'](_0x33df49);if(0x0!==_0x4b8f16){const _0x2d56cd=this['repository']['getRevision'](_0x4b8f16-0x1);if(_0x2d56cd['fromVersion']!==_0x1a3497){const _0x5b62b4=this['_revisionDataBuilder']['getData'](_0x1a3497,_0x2d56cd['toVersion']),_0x119a8a={'id':_0x2d56cd['id'],'diffData':_0x5b62b4['diffData'],'authorsIds':_0x5b62b4['authorsIds'],'authors':_0x5b62b4['authorsIds']['map'](_0x574f23=>this['editor']['plugins']['get']('Users')['getUser'](_0x574f23)),'fromVersion':_0x1a3497};_0x2d56cd===this['currentRevision']&&(_0x119a8a['createdAt']=new Date(_0x582952['createdAt']['getTime']()+0xa)),_0x2d56cd['_update'](_0x119a8a,!0x0),delete _0x119a8a['authors'],_0x3622df['push'](_0x119a8a);}}if(this['adapter']){for(const _0x4897c4 of _0x3622df)this['_bufferUpdate'](_0x4897c4['id'],_0x4897c4,!0x0);this['sendBufferedUpdates']();}return _0x33df49;}['addRevisionData'](_0x5e00ac){const _0x9f37c0=this['repository']['createRevision'](_0x5e00ac);return this['adapter']&&_0x9f37c0['on']('_update',(_0x299ac4,_0x174c90,_0x43c6fe)=>{_0x43c6fe||(this['_bufferUpdate'](_0x174c90['id'],_0x174c90,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x9f37c0,this['_findInsertionIndex'](_0x9f37c0)),_0x9f37c0;}async['getRevisionDocumentData'](_0x31a065){return await this['_utils']['loadRevisionData'](_0x31a065,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x31a065);}async['getRevisionRootsAttributes'](_0xe0b94){return await this['_utils']['loadRevisionData'](_0xe0b94,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xe0b94);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5e189f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x339e08=0x0;_0x339e08<_0x5e189f['length'];_0x339e08++){const _0x1fb1e1=_0x5e189f[_0x339e08];let _0xa18a53=!0x1;for(const _0x2403fd of Object['keys'](_0x1fb1e1))void 0x0===_0x1fb1e1[_0x2403fd]?delete _0x1fb1e1[_0x2403fd]:'id'!==_0x2403fd&&(_0xa18a53=!0x0);_0xa18a53||(_0x5e189f[_0x339e08]=null);}if(_0x5e189f=_0x5e189f['filter'](_0x47082f=>null!==_0x47082f),!_0x5e189f['length'])return;for(let _0x125caf=0x0;_0x125caf<_0x5e189f['length'];_0x125caf++){const _0x3db0dc=_0x5e189f[_0x125caf];void 0x0!==_0x3db0dc['fromVersion']&&void 0x0===_0x3db0dc['toVersion']&&(_0x3db0dc['toVersion']=this['repository']['getRevision'](_0x3db0dc['id'])['toVersion']),void 0x0!==_0x3db0dc['toVersion']&&void 0x0===_0x3db0dc['fromVersion']&&(_0x3db0dc['fromVersion']=this['repository']['getRevision'](_0x3db0dc['id'])['fromVersion']);}const _0x517182=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5e189f,_0x517182)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2b7a78=>{if(_0x2b7a78){for(const _0x22b228 of _0x2b7a78)this['setRevisionData']({'id':_0x22b228['id'],'createdAt':_0x22b228['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x40ca56=null,from:_0x297848=null,to:_0x157ad5=null}){_0x297848=null!==_0x297848?_0x297848:_0x40ca56['fromVersion'],_0x157ad5=null!==_0x157ad5?_0x157ad5:_0x40ca56['toVersion'];const _0x3906ef=this['_revisionDataBuilder']['getData'](_0x297848,_0x157ad5),_0xa49523={'diffData':_0x3906ef['diffData'],'authorsIds':_0x3906ef['authorsIds'],'fromVersion':_0x297848,'toVersion':_0x157ad5};if(!_0x40ca56||_0x157ad5!==_0x40ca56['toVersion']){const _0x344306=_0x157ad5-0x1,_0x2658b7=this['_source']['history']['getOperation'](_0x344306);_0xa49523['createdAt']=_0x2658b7&&_0x2658b7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x297848===this['_loadedStateData']['fromVersion']){for(const _0x4cf7ba of this['_loadedStateData']['authors'])_0xa49523['authorsIds']['includes'](_0x4cf7ba['id'])||_0xa49523['authorsIds']['push'](_0x4cf7ba['id']);}return _0xa49523;}['_bufferUpdate'](_0x49262f,_0x164523,_0x31141a){if(this['_bufferedUpdates']['has'](_0x49262f)){const _0x40b962=this['_bufferedUpdates']['get'](_0x49262f);_0x164523=_0x31141a?{..._0x40b962,..._0x164523}:{..._0x164523,..._0x40b962};}this['_bufferedUpdates']['set'](_0x49262f,_0x164523);}['setRevisionData'](_0x460148){const _0x4f47c3=this['repository']['getRevision'](_0x460148['id']);if(_0x460148['createdAt']&&(_0x460148['createdAt']=new Date(_0x460148['createdAt'])),_0x460148['authorsIds']){const _0x32f3ea=this['editor']['plugins']['get']('Users');_0x460148['authors']=_0x460148['authorsIds']['map'](_0x595be1=>_0x32f3ea['getUser'](_0x595be1));}_0x4f47c3['_update'](_0x460148,!0x0);}['_createInitialRevision'](_0x5504f4){const _0xa087be=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xa087be)this['_initialRevisionId']=_0xa087be['id'];else{const _0x2a53fa=!this['editor']['model']['document']['roots']['find'](_0x368e9c=>this['editor']['model']['hasContent'](_0x368e9c)),_0x10bbb9=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f649e=m(this['editor']['locale'],_0x2a53fa?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5504f4,'to':_0x5504f4,'id':this['_initialRevisionId'],'name':_0x1f649e,'creatorId':_0x10bbb9});}}['_createCurrentRevision'](_0x2c45ee){const _0x1f930f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1f930f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2c45ee,'to':_0x2c45ee,'id':_0x1f930f,'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'](_0x5d7662,_0x5c25a8){let _0x41bb2a=this['editor']['config']['get']('initialData'),_0x291cea=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x41bb2a){_0x41bb2a={};for(const _0x44bf3d of this['editor']['model']['document']['getRootNames']())_0x41bb2a[_0x44bf3d]='';}if('string'==typeof _0x41bb2a&&(_0x41bb2a={'main':_0x41bb2a}),void 0x0===_0x291cea){_0x291cea={};for(const _0x1612e1 of this['editor']['model']['document']['getRootNames']())_0x291cea[_0x1612e1]={};}let _0x21bb97=!0x1;const _0x2e6367=Object['keys'](_0x41bb2a),_0x340b9f=Object['keys'](_0x5d7662);for(const _0x3d7fd9 of _0x2e6367){if(_0x41bb2a[_0x3d7fd9]!==_0x5d7662[_0x3d7fd9]&&''!==_0x41bb2a[_0x3d7fd9]['trim']()){_0x21bb97=!0x0;break;}if(!_0x5dda21(_0x291cea[_0x3d7fd9],_0x5c25a8[_0x3d7fd9])&&Object['keys'](_0x291cea[_0x3d7fd9])['length']>0x0){_0x21bb97=!0x0;break;}}_0x21bb97||(_0x21bb97=_0x340b9f['some'](_0x4fe587=>!this['editor']['model']['document']['getRoot'](_0x4fe587))),_0x21bb97&&_0x2cfa54('editor-initial-data-replaced-with-revision-data',{'editorData':_0x41bb2a,'editorRootsAttributes':_0x291cea,'revisionData':_0x5d7662,'revisionRootsAttributes':_0x5c25a8}),this['editor']['config']['set']('initialData',_0x5d7662),this['editor']['config']['set']('rootsAttributes',_0x5c25a8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5a21bf=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5a21bf['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x96248a){const _0xb25e69=this['repository']['getRevisions']();_0xb25e69['reverse']();let _0x5740b1=0x0;for(;_0x5740b1<_0xb25e69['length'];){const _0xa070e9=_0xb25e69[_0x5740b1];if(_0xa070e9===this['currentRevision']){_0x5740b1++;continue;}if(_0xa070e9['id']===this['_initialRevisionId'])break;const _0x274eb6=_0x96248a['toVersion']-_0xa070e9['toVersion']||_0x96248a['fromVersion']-_0xa070e9['fromVersion'];if(_0x274eb6>0x0)break;if(_0x274eb6<0x0)_0x5740b1++;else{if(!_0x96248a['creator']&&_0xa070e9['creator'])break;if(_0xa070e9['creator']||!_0x96248a['creator']){if(_0x96248a['createdAt']>_0xa070e9['createdAt'])break;_0x5740b1++;}else _0x5740b1++;}}return _0x5740b1;}['_getFromVersion'](_0x18084f){const _0x58aa3f=this['repository']['getRevisions']();_0x58aa3f['reverse'](),_0x58aa3f['shift']();const _0x16ef5b=_0x58aa3f['find'](_0x6b8964=>_0x6b8964['toVersion']<=_0x18084f)['toVersion'];return _0x16ef5b<this['_startingVersion']?this['_startingVersion']:_0x16ef5b;}['_makeRevision']({name:_0x434a8d,from:_0x4246c6,to:_0x42bcb7,creatorId:_0x36ec78,id:_0x133501}){const _0x5e15d3=this['buildRevisionData']({'from':_0x4246c6,'to':_0x42bcb7});_0x5e15d3['name']=_0x434a8d,_0x5e15d3['creatorId']=_0x36ec78,_0x5e15d3['id']=_0x133501;const _0x43370f=this['addRevisionData'](_0x5e15d3);return this['adapter']&&this['_bufferUpdate'](_0x5e15d3['id'],_0x5e15d3,!0x0),_0x43370f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x6af6d){this['editor']=_0x6af6d,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'](_0x4afb47){this['source']=_0x4afb47;const _0x893aa9=new Map(),_0x1ed9b8=new Map(),_0x36bff5=this['editor']['model']['document']['roots']['map'](_0x203dca=>_0x203dca['rootName']);for(const _0x17e94a of _0x36bff5){const _0x369e9b=this['editor']['model']['document']['getRoot'](_0x17e94a),_0x428335=x(_0x369e9b);_0x893aa9['set'](_0x17e94a,_0x428335),_0x1ed9b8['set'](_0x17e94a,Object['fromEntries'](_0x369e9b['getAttributes']()));}const _0x10cd4e=Array['from'](this['editor']['model']['markers'])['map'](_0x18ffed=>[_0x18ffed['name'],_0x18ffed['getRange']()]),_0x3956ee=this['source']['version'];this['_saveMetaData'](_0x3956ee,_0x893aa9,_0x10cd4e,_0x1ed9b8),this['_startingRevisionId']=this['_revisionId'];const _0xd143d0=new Map(),_0x28409f=new Map();for(const _0x3939a4 of _0x36bff5){const _0x25a592=N(_0x3939a4);_0xd143d0['set'](_0x3939a4,_0x25a592),_0x28409f['set'](_0x3939a4,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xd143d0,[],_0x28409f);}['getData'](_0x572351,_0x2f2e6c){if(this['_lastFrom']===_0x572351&&this['_lastTo']<=_0x2f2e6c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2f2e6c,!0x0);else{if(!this['_savedMetaData']['has'](_0x572351)){const _0x44db0e=this['_getPreviousFrom'](_0x572351);this['_calculateMetaData'](_0x44db0e,_0x572351,!0x1);}this['_calculateMetaData'](_0x572351,_0x2f2e6c,!0x0);}return this['_lastFrom']=_0x572351,this['_lastTo']=_0x2f2e6c,this['_getState']();}['loadState'](_0xd8c6af){if(!this['_savedMetaData']['has'](_0xd8c6af['fromVersion'])){const _0x583d0c=this['_getPreviousFrom'](_0xd8c6af['fromVersion']);this['_calculateMetaData'](_0x583d0c,_0xd8c6af['fromVersion'],!0x1);}this['_calculateMetaData'](_0xd8c6af['fromVersion'],_0xd8c6af['toVersion'],!0x1);const _0x539630=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xd8c6af['fromVersion'],this['_lastTo']=_0xd8c6af['toVersion'];for(const _0x2e9a18 in _0xd8c6af['diffData']){const _0x359ed8=_0xd8c6af['diffData'][_0x2e9a18]['attachChange'],_0x4d860e=_0xb2db8(_0xd8c6af['diffData'][_0x2e9a18]['attributesBefore'])||{},_0x5e92f2=_0x539630['_makeModelFromViewString'](_0xd8c6af['diffData'][_0x2e9a18]['deletions']);_0x5e92f2['rootName']=_0x2e9a18,_0x5e92f2['_isAttached']=!_0x359ed8||!_0x359ed8['isAttached'],_0x5e92f2['isAttached']=()=>_0x5e92f2['_isAttached'],this['_baseRoots']['set'](_0x2e9a18,_0x5e92f2),this['_baseRootsAttributes']['set'](_0x2e9a18,_0x4d860e),_0x359ed8&&this['_touchedRoots']['set'](_0x2e9a18,_0x359ed8);const _0x233188=this['_makeIdsRoot'](_0x5e92f2);this['_baseIdsRoots']['set'](_0x2e9a18,_0x233188);for(const [_0x401e3c,_0x94e9b2]of _0x5e92f2['markers']){if(!_0x401e3c['startsWith']('revision:'))continue;const _0x55ae45=_0x401e3c['split'](':')[0x2];for(const _0x20396f of _0x94e9b2['getWalker']({'singleCharacters':!0x0})){const _0x16185d=this['_getVidAttributeName'](_0x20396f),_0x44524c='elementEnd'==_0x20396f['type']?_0x20396f['previousPosition']['path']['slice'](0x0,-0x1):_0x20396f['previousPosition']['path'],_0x8e2a44=_0x233188['getNodeByPath'](_0x44524c)['getAttribute'](_0x16185d);this['_touched']['set'](_0x8e2a44,{'userId':_0x55ae45});}_0x5e92f2['markers']['delete'](_0x401e3c);}}this['_startingRevisionId']=this['_revisionId'];const _0x2b9a10=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4e9578=>!this['_touched']['has'](_0x4e9578));let _0x3dd06b=0x0;const _0x43da76=new Map();for(const _0x3776c4 in _0xd8c6af['diffData']){const _0x3428db=_0xd8c6af['diffData'][_0x3776c4]['attachChange'],_0x2c8702=_0xb2db8(_0xd8c6af['diffData'][_0x3776c4]['attributesAfter'])||{},_0x1075f3=_0x539630['_makeModelFromViewString'](_0xd8c6af['diffData'][_0x3776c4]['insertions']);_0x1075f3['rootName']=_0x3776c4,_0x1075f3['_isAttached']=!_0x3428db||_0x3428db['isAttached'],_0x1075f3['isAttached']=()=>_0x1075f3['_isAttached'],this['_diffRoots']['set'](_0x3776c4,_0x1075f3),this['_diffRootsAttributes']['set'](_0x3776c4,_0x2c8702);const _0x172a25=this['_makeIdsRoot'](_0x1075f3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3776c4,_0x172a25),_0x43da76['set'](_0x3776c4,_0x1075f3['isAttached']()?_0x2c8702:{});for(const [_0x1c2826,_0x577c68]of _0x1075f3['markers']){if(!_0x1c2826['startsWith']('revision:'))continue;const _0x279001=_0x1c2826['split'](':')[0x2];for(const _0x4935e3 of _0x577c68['getWalker']({'singleCharacters':!0x0})){const _0x1663fe=this['_getVidAttributeName'](_0x4935e3),_0x3f7f29=this['_revisionId']++,_0x17ce0f='elementEnd'==_0x4935e3['type']?_0x4935e3['previousPosition']['path']['slice'](0x0,-0x1):_0x4935e3['previousPosition']['path'];_0x172a25['getNodeByPath'](_0x17ce0f)['_setAttribute'](_0x1663fe,_0x3f7f29),this['_touched']['set'](_0x3f7f29,{'userId':_0x279001});}_0x1075f3['markers']['delete'](_0x1c2826);}for(const _0x9ccfd5 of this['editor']['model']['createRangeIn'](_0x1075f3)['getWalker']({'singleCharacters':!0x0})){const _0x557d30=this['_getVidAttributeName'](_0x9ccfd5),_0xd3d65f='elementEnd'==_0x9ccfd5['type']?_0x9ccfd5['previousPosition']['path']['slice'](0x0,-0x1):_0x9ccfd5['previousPosition']['path'],_0x341365=_0x172a25['getNodeByPath'](_0xd3d65f);_0x341365['getAttribute'](_0x557d30)>0x0||_0x341365['_setAttribute'](_0x557d30,_0x2b9a10[_0x3dd06b++]);}for(const [_0x1abb51,_0x481ca5]of _0x1075f3['markers'])_0x1abb51['startsWith']('revision:')||this['_markers']['set'](_0x1abb51,_0x481ca5);}const {roots:_0xeaa4c5}=this['_savedMetaData']['get'](_0xd8c6af['fromVersion']),{roots:_0x5d3f92}=this['_savedMetaData']['get'](_0xd8c6af['toVersion']),_0x2f64ca=x(_0xeaa4c5['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2f64ca),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2f64ca,Number['NEGATIVE_INFINITY']));const _0x4e9608=x(_0x5d3f92['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x4e9608),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4e9608));const _0x342df7=Array['from'](this['_diffRoots'])['map'](([_0x11c64d,_0x22f555])=>[_0x11c64d,x(_0x22f555)]);this['_saveMetaData'](this['_lastTo'],_0x342df7,this['_markers'],_0x43da76);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5d0f05,_0x3d7199,_0x4ea3d6,_0x344245){const _0x12e205=new Map(_0x3d7199),_0x2c0b97=new Map(_0xb2db8(_0x344245)),_0x4d470f=new Map();for(const [_0x3dfa41,_0x38e46e]of _0x4ea3d6)_0x4d470f['set'](_0x3dfa41,{'start':_0x38e46e['start']['clone'](),'end':_0x38e46e['end']['clone'](),'rootName':_0x38e46e['root']['rootName']});this['_savedMetaData']['set'](_0x5d0f05,{'roots':_0x12e205,'markers':_0x4d470f,'rootsAttributes':_0x2c0b97});}['_removeMetaData'](_0xa8caad){this['_savedMetaData']['delete'](_0xa8caad);}['_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'](_0x2d3081,_0x127f82=null){let _0x1399aa=null;_0x2d3081['is']('documentFragment')||(_0x1399aa=new _0x467cfa(_0x2d3081['name'],{'vid_start':null===_0x127f82?this['_revisionId']++:_0x127f82++}));const _0x2391f5=[];for(const _0x2a2d81 of _0x2d3081['getChildren']())if(_0x2a2d81['is']('element')){_0x2391f5['push'](this['_makeIdsRoot'](_0x2a2d81,_0x127f82));const _0x1115af=_0x2391f5[_0x2391f5['length']-0x1];null!==_0x127f82&&(_0x127f82=_0x1115af['is']('element','$text')?_0x1115af['getAttribute']('vid')+0x1:_0x1115af['getAttribute']('vid_end')+0x1);}else{for(let _0x43e84f=0x0;_0x43e84f<_0x2a2d81['offsetSize'];_0x43e84f++)_0x2391f5['push'](new _0x467cfa('$text',{'vid':null===_0x127f82?this['_revisionId']++:_0x127f82++}));}if(_0x2d3081['is']('documentFragment')){const _0x5ec32a=N(_0x2d3081['rootName']);return _0x5ec32a['_insertChild'](0x0,_0x2391f5),_0x5ec32a;}return _0x1399aa['_setAttribute']('vid_end',null===_0x127f82?this['_revisionId']++:_0x127f82++),_0x1399aa['_insertChild'](0x0,_0x2391f5),_0x1399aa;}['_calculateMetaData'](_0x3d57b8,_0x19dd42,_0x13f87a){this['_reset']();const {roots:_0x4aa8c2,markers:_0x313e48,rootsAttributes:_0x4e97dc}=this['_savedMetaData']['get'](_0x3d57b8);this['_baseRoots']=new Map(_0x4aa8c2),this['_baseRootsAttributes']=new Map(_0xb2db8(_0x4e97dc));for(const [_0x3aa41c,_0x51b038]of this['_baseRoots'])if('$graveyard'!==_0x3aa41c&&(this['_diffRoots']['set'](_0x3aa41c,x(_0x51b038)),this['_diffRootsAttributes']=new Map(_0xb2db8(_0x4e97dc)),_0x13f87a)){const _0x11ac14=this['_revisionId'];this['_idsRoots']['set'](_0x3aa41c,this['_makeIdsRoot'](_0x51b038)),this['_baseIdsRoots']['set'](_0x3aa41c,this['_makeIdsRoot'](_0x51b038,_0x11ac14));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x13f87a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x35fcd9,_0x3f31a5]of _0x313e48){const _0x1ed5d6=this['_baseRoots']['get'](_0x3f31a5['rootName']),_0x4cbfa6=this['_diffRoots']['get'](_0x3f31a5['rootName']),_0x1e7964=new _0x49d459(this['_fixPosition'](_0x3f31a5['start'],_0x1ed5d6),this['_fixPosition'](_0x3f31a5['end'],_0x1ed5d6)),_0x3b4f3d=this['_fixRange'](_0x1e7964,_0x4cbfa6);_0x1ed5d6['markers']['set'](_0x35fcd9,_0x1e7964),this['_markers']['set'](_0x35fcd9,_0x3b4f3d);}this['_applyOperations'](_0x3d57b8,_0x19dd42,_0x13f87a);}['_applyOperations'](_0x4dc448,_0x3c4eca,_0x1856e2){for(const _0x1d9120 of this['source']['getOperations'](_0x4dc448,_0x3c4eca))this['_handleOperation'](_0x1d9120,_0x1856e2);for(const _0x5d3e41 of this['_diffRoots']['values']())_0x5d3e41['markers']['clear']();for(const [_0x4e8862,_0x3fc430]of this['_markers']){this['_diffRoots']['get'](_0x3fc430['root']['rootName'])['markers']['set'](_0x4e8862,_0x3fc430['clone']());}const _0x265474=new Map(),_0x58ee4e=new Map();for(const [_0x1fd9e1,_0x16bb86]of this['_diffRoots'])_0x265474['set'](_0x1fd9e1,x(_0x16bb86)),_0x58ee4e['set'](_0x1fd9e1,this['_diffRootsAttributes']['get'](_0x1fd9e1));this['_saveMetaData'](_0x3c4eca,_0x265474,this['_markers'],_0x58ee4e);}['_getPreviousFrom'](_0x5dac21){const _0x271830=Array['from'](this['_savedMetaData']['keys']());_0x271830['sort']((_0x495a94,_0x56dfe4)=>_0x495a94-_0x56dfe4),_0x271830['reverse']();for(const _0x261324 of _0x271830)if(_0x261324<_0x5dac21)return _0x261324;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x17f5ea,_0x54844e){const _0x275b92=Array['from'](_0x54844e['markers'])['map'](([_0x1604a2,_0x46f3e9])=>[_0x1604a2,this['_fixRange'](_0x46f3e9,_0x17f5ea)]);_0x17f5ea['markers']=new Map(_0x275b92);}['_transformMarkers'](_0x15ac29){for(const _0x36a2bc of this['_markers']['values']()){const _0x24f797=_0x36a2bc['getTransformedByOperation'](_0x15ac29),_0x560558=_0x49d459['_createFromRanges'](_0x24f797);_0x36a2bc['start']=_0x560558['start'],_0x36a2bc['end']=_0x560558['end'];}}['_handleOperation'](_0x47050c,_0x1e1f27){if('addRoot'!=_0x47050c['type']&&'detachRoot'!=_0x47050c['type']){if('insert'==_0x47050c['type']){const _0x1ab114=_0x47050c['position']['root']['rootName'];this['_diffRoots']['has'](_0x1ab114)||(this['_diffRoots']['set'](_0x1ab114,N(_0x1ab114,!0x0)),this['_diffRootsAttributes']['set'](_0x1ab114,{}),_0x1e1f27&&this['_idsRoots']['set'](_0x1ab114,N(_0x1ab114,!0x0)));}else{if('addRootAttribute'==_0x47050c['type']||'removeRootAttribute'==_0x47050c['type']||'changeRootAttribute'==_0x47050c['type'])return void this['_handleRootAttributeOperation'](_0x47050c);'marker'==_0x47050c['type']&&this['_handleMarkerOperation'](_0x47050c);}if('marker'!==_0x47050c['type']){const _0x4067ec=this['_cloneOperation'](_0x47050c,this['_diffRoots']);_0x4067ec['_execute'](),this['_transformMarkers'](_0x4067ec);}if(_0x1e1f27)switch(_0x47050c['type']){case'insert':this['_handleInsertOperation'](_0x47050c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x47050c);break;case'merge':this['_handleMergeOperation'](_0x47050c);break;case'split':this['_handleSplitOperation'](_0x47050c);}}else this['_handleRootOperation'](_0x47050c,_0x1e1f27);}['_cloneOperation'](_0x4eb5b2,_0x5e9dce){const _0xf1ea58=_0x4eb5b2['clone']();return _0xf1ea58['_authorId']=_0x4eb5b2['_authorId'],this['_fixOperation'](_0xf1ea58,_0x5e9dce),_0xf1ea58;}['_getBaseVids'](_0x416dc1){return _0x416dc1['map'](_0x2b856d=>{const _0x2eb7ee=this['_getVidAttributeName'](_0x2b856d);return Number(_0x2b856d['item']['getAttribute'](_0x2eb7ee));});}['_generateTape'](_0x2b0a70,_0x1ed70c){if(_0x2b0a70['is']('element','$text'))_0x1ed70c['push']({'item':_0x2b0a70,'type':'text'});else{_0x2b0a70['is']('element')&&_0x1ed70c['push']({'item':_0x2b0a70,'type':'elementStart'});for(const _0x59edf4 of _0x2b0a70['getChildren']())this['_generateTape'](_0x59edf4,_0x1ed70c);_0x2b0a70['is']('element')&&_0x1ed70c['push']({'item':_0x2b0a70,'type':'elementEnd'});}return _0x1ed70c;}['_getState'](){const _0x5603a8=new Map(this['_touched']),_0x3a3f74=new Map(_0x5603a8),_0x2aba9d=new Map(),_0x282038={'insertions':{},'deletions':{}},_0x2ac367={'insertions':{},'deletions':{}},_0x5142e8=new Map(),_0x31b95a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x31b95a['delete']('$graveyard');for(const _0x59b618 of _0x31b95a){const _0x47340b=this['_diffRoots']['get'](_0x59b618)||N(_0x59b618,!0x1),_0x5134bc=this['_baseRoots']['get'](_0x59b618)||N(_0x59b618,!0x1);_0x47340b['isAttached']()||_0x5134bc['isAttached']()?(_0x282038['insertions'][_0x59b618]=x(_0x47340b),_0x282038['deletions'][_0x59b618]=x(_0x5134bc),this['_copyMarkers'](_0x282038['deletions'][_0x59b618],_0x5134bc),this['_copyMarkers'](_0x282038['insertions'][_0x59b618],_0x47340b),_0x2ac367['insertions'][_0x59b618]=this['_generateTape'](this['_idsRoots']['get'](_0x59b618),[]),_0x2ac367['deletions'][_0x59b618]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x59b618)||N(_0x59b618,!0x1),[])):_0x31b95a['delete'](_0x59b618);}for(const _0x2fefaa of _0x31b95a){const _0x3815e8=_0x2ac367['insertions'][_0x2fefaa];for(const _0x1fb3b6 of _0x3815e8){const _0x21e1d7=this['_getVidAttributeName'](_0x1fb3b6),_0x874cee=_0x1fb3b6['item']['getAttribute'](_0x21e1d7);_0x3a3f74['delete'](_0x874cee),_0x874cee>=this['_startingRevisionId']&&_0x2aba9d['set'](_0x874cee,_0x5603a8['get'](_0x874cee));}}for(const _0x2d066d of _0x31b95a){const _0x142707=_0x2ac367['insertions'][_0x2d066d],_0x5a1307=this['_getBaseVids'](_0x2ac367['deletions'][_0x2d066d]);let _0xdaf644=0x0;for(const _0x3f1aca of _0x142707){const _0x36a06c=this['_getVidAttributeName'](_0x3f1aca),_0x563e56=_0x3f1aca['item']['getAttribute'](_0x36a06c);if(!_0x2aba9d['has'](_0x563e56)&&!_0x5142e8['has'](_0x563e56)){if(_0x3a3f74['has'](_0x563e56))_0xdaf644++;else{if(_0x563e56!=_0x5a1307[_0xdaf644]){const _0x1a3738=_0x5603a8['get'](_0x563e56)||_0x5603a8['get'](_0x5a1307[_0xdaf644]);for(;_0x563e56!=_0x5a1307[_0xdaf644];)_0x3a3f74['has'](_0x5a1307[_0xdaf644])||(_0x5142e8['set'](_0x5a1307[_0xdaf644],_0x1a3738),_0x5603a8['set'](_0x5a1307[_0xdaf644],_0x1a3738)),_0xdaf644++;}_0xdaf644++;}}}}for(const _0x514189 of _0x31b95a){const _0x361552=_0x2ac367['insertions'][_0x514189];for(const _0x5bd466 of _0x361552){const _0x115f6b=this['_getVidAttributeName'](_0x5bd466),_0x8d198e=_0x5bd466['item']['getAttribute'](_0x115f6b);if(_0x5142e8['has'](_0x8d198e)){const _0x2df03e=_0x5142e8['get'](_0x8d198e);_0x3a3f74['has'](_0x8d198e)||_0x3a3f74['set'](_0x8d198e,{..._0x2df03e}),_0x2aba9d['set'](_0x8d198e,{..._0x2df03e});}}}for(const _0x417401 of _0x3a3f74['keys']())_0x417401>=this['_startingRevisionId']&&_0x3a3f74['delete'](_0x417401);const _0x4c9906=new Map();for(const _0x92b46d of _0x31b95a){let _0x2c11a7=_0x2ac367['insertions'][_0x92b46d];for(const _0x2b4a29 of _0x2c11a7)if(_0x2b4a29['item']['is']('element','tableCell')){const _0x4e67ad=this['_getVidAttributeName'](_0x2b4a29),_0x15adc1=_0x2b4a29['item']['getAttribute'](_0x4e67ad);if(_0x2aba9d['has'](_0x15adc1)){const _0x4ac459=_0x2b4a29['item']['parent']['parent']['getAttribute']('vid_start'),_0x5395e0=_0x4c9906['get'](_0x4ac459)||new Set();_0x5395e0['add'](_0x2aba9d['get'](_0x15adc1)['userId']),_0x4c9906['set'](_0x4ac459,_0x5395e0);}}_0x2c11a7=_0x2ac367['deletions'][_0x92b46d];for(const _0x5e2d16 of _0x2c11a7)if(_0x5e2d16['item']['is']('element','tableCell')){const _0x3c99b4=this['_getVidAttributeName'](_0x5e2d16),_0x5a94fd=_0x5e2d16['item']['getAttribute'](_0x3c99b4);if(_0x3a3f74['has'](_0x5a94fd)){const _0x3db419=_0x5e2d16['item']['parent']['parent']['getAttribute']('vid_start'),_0x1cddb5=_0x4c9906['get'](_0x3db419)||new Set();_0x1cddb5['add'](_0x3a3f74['get'](_0x5a94fd)['userId']),_0x4c9906['set'](_0x3db419,_0x1cddb5);}}for(const _0x316091 of _0x4c9906['keys']())(_0x2aba9d['has'](_0x316091)||_0x3a3f74['has'](_0x316091))&&_0x4c9906['delete'](_0x316091);}for(const _0x31a0d8 of _0x31b95a){const _0x6478d=_0x2ac367['insertions'][_0x31a0d8];let _0x357eaf=null,_0x441d6e=null;for(const _0x3741eb of _0x6478d){const _0x2ab52b=this['_getVidAttributeName'](_0x3741eb),_0xf964b6=_0x3741eb['item']['getAttribute'](_0x2ab52b),_0x232ba3=_0x4c9906['get'](_0xf964b6);_0x232ba3&&'elementStart'==_0x3741eb['type']&&(_0x357eaf=Array['from'](_0x232ba3)[0x0],_0x441d6e=_0x3741eb['item']['getAttribute']('vid_end')),_0x357eaf&&(_0x3a3f74['set'](_0xf964b6,{'userId':_0x357eaf}),_0x2aba9d['set'](_0xf964b6,{'userId':_0x357eaf})),_0xf964b6==_0x441d6e&&(_0x357eaf=null,_0x441d6e=null);}}const _0x457005={},_0x3cb76c=new Set();for(const _0x2dc393 of _0x31b95a){const _0x1ff38d=_0x282038['deletions'][_0x2dc393],_0x4af6fd=_0x282038['insertions'][_0x2dc393];for(const {userId:_0x52e0b0}of this['_touchedMarkers']['values']())null!==_0x52e0b0&&_0x3cb76c['add'](_0x52e0b0);for(const {userId:_0x3aa528}of this['_touchedRoots']['values']())null!==_0x3aa528&&_0x3cb76c['add'](_0x3aa528);this['_markChanges'](_0x4af6fd,_0x2ac367['insertions'][_0x2dc393],_0x2aba9d,'insertion',_0x3cb76c),this['_markChanges'](_0x1ff38d,_0x2ac367['deletions'][_0x2dc393],_0x3a3f74,'deletion',_0x3cb76c),_0x457005[_0x2dc393]={'insertions':this['_prepareViewToSave'](_0x4af6fd),'deletions':this['_prepareViewToSave'](_0x1ff38d),'attachChange':this['_touchedRoots']['get'](_0x2dc393)||null,'attributesBefore':_0xb2db8(this['_baseRootsAttributes']['get'](_0x2dc393))||{},'attributesAfter':_0xb2db8(this['_diffRootsAttributes']['get'](_0x2dc393))};}return{'diffData':_0x457005,'authorsIds':Array['from'](_0x3cb76c)};}['_processRootBeforeSave'](_0x1e4eb9){for(const [,_0x28f85]of _0x1e4eb9['markers']){const _0x1338b9=_0x28f85['start']['getAncestors']()['filter'](_0x451c72=>'tableCell'==_0x451c72['name']);for(const _0xcb45a7 of _0x1338b9)0x1==_0xcb45a7['childCount']&&_0xcb45a7['getChild'](0x0)['is']('element','paragraph')&&_0xcb45a7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5f1e1b){this['_processRootBeforeSave'](_0x5f1e1b);const _0x5532b5=this['editor']['data']['toView'](_0x5f1e1b,{}),_0x5753db=Array['from'](_0x5532b5['getChildren']())['map'](_0x59ed68=>this['_getViewJson'](_0x59ed68));return JSON['stringify'](_0x5753db);}['_getViewJson'](_0x1fa7ba){if(_0x1fa7ba['is']('$text'))return _0x1fa7ba['data'];{const _0x112a5a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x475504=_0x1fa7ba,_0x3d1715=this['editor']['data']['htmlProcessor']['domConverter'],_0x3ff295={'type':_0x112a5a['_getTypeCharForViewElement'](_0x475504),'name':_0x475504['name'],'attributes':Array['from'](_0x475504['getAttributes']()),'children':Array['from'](_0x475504['getChildren']())['map'](_0x5cd0b0=>this['_getViewJson'](_0x5cd0b0))};if(_0x1fa7ba['is']('uiElement')&&'$comment'!=_0x1fa7ba['name']){const _0x458a1a=_0x1fa7ba['render'](_0x3d1715['domDocument'],_0x3d1715);_0x3ff295['children']['push'](_0x458a1a['outerHTML']);}else{if(_0x1fa7ba['is']('rawElement')){const _0x18e752=_0x3d1715['domDocument']['createElement'](_0x475504['name']);_0x1fa7ba['render'](_0x18e752,_0x3d1715),_0x3ff295['children']['push'](_0x18e752['innerHTML']);}}const _0x172d75=Array['from'](_0x475504['getCustomProperties']());_0x172d75['length']>0x0&&(_0x3ff295['customProperties']=_0x172d75);const _0x1f2135=_0x475504['getFillerOffset']();return null!==_0x1f2135&&(_0x3ff295['fillerOffset']=_0x1f2135),_0x3ff295;}}['_markChanges'](_0x596a41,_0x4170d1,_0x5c40b3,_0x3a9c82,_0x165273){let _0x40f476=null,_0x7e5fc4=null,_0x13935c=0x0;const _0x246f7a=this['editor']['model'];for(let _0x4fcf91=0x0;_0x4fcf91<_0x4170d1['length'];_0x4fcf91++){const _0x5839c3=this['_getVidAttributeName'](_0x4170d1[_0x4fcf91]),_0x5370b2=_0x4170d1[_0x4fcf91]['item']['getAttribute'](_0x5839c3),_0x517fc0=_0x5c40b3['get'](_0x5370b2),_0x4c420b=_0x4fcf91==_0x4170d1['length']-0x1;(!_0x40f476&&_0x517fc0&&(_0x40f476=_0x517fc0,_0x7e5fc4=_0x4170d1[_0x4fcf91]),_0x40f476&&(!_0x517fc0||_0x517fc0['userId']!=_0x40f476['userId']))&&(_0x5de8ea(_0x517fc0,P(_0x7e5fc4,_0x596a41,_0x246f7a),P(_0x4170d1[_0x4fcf91],_0x596a41,_0x246f7a)),_0x40f476=_0x517fc0||null,_0x7e5fc4=_0x517fc0?_0x4170d1[_0x4fcf91]:null),_0x40f476&&_0x4c420b&&_0x5de8ea(_0x517fc0,P(_0x7e5fc4,_0x596a41,_0x246f7a),V(_0x4170d1[_0x4fcf91],_0x596a41,_0x246f7a));}function _0x5de8ea(_0x17924d,_0x3931b3,_0xb4b9cb){const _0x34a649=_0x40f476['userId'],_0x1e1433='revision:'+_0x3a9c82+':'+_0x34a649+':'+_0x13935c++,_0x2e584d=_0x246f7a['createRange'](_0x3931b3,_0xb4b9cb);_0x596a41['markers']['set'](_0x1e1433,_0x2e584d),null!==_0x34a649&&_0x165273['add'](_0x34a649);}}['_getVidAttributeName'](_0x3843cd){switch(_0x3843cd['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2a1c1c,_0x81f87e){_0x2a1c1c['baseVersion']=null;for(const _0x535b6f in _0x2a1c1c){const _0x4f3749=_0x2a1c1c[_0x535b6f];if(_0x4f3749 instanceof _0x2c240b){const _0x12cecd=_0x81f87e['get'](_0x4f3749['root']['rootName']);_0x2a1c1c[_0x535b6f]=this['_fixPosition'](_0x4f3749,_0x12cecd);}if(_0x4f3749 instanceof _0x49d459){const _0x4be2c9=_0x81f87e['get'](_0x4f3749['root']['rootName']);_0x2a1c1c[_0x535b6f]=this['_fixRange'](_0x4f3749,_0x4be2c9);}'root'===_0x535b6f&&(_0x2a1c1c['root']=_0x81f87e['get'](_0x2a1c1c['root']['rootName']));}}['_fixRange'](_0x2be69e,_0x1238b3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2be69e['start'],_0x1238b3),this['_fixPosition'](_0x2be69e['end'],_0x1238b3));}['_fixPosition'](_0x5b384f,_0x358590){return this['editor']['model']['createPositionFromPath'](_0x358590,_0x5b384f['path'],_0x5b384f['stickiness']);}['_handleInsertOperation'](_0x2ee3d4){const _0x3a9382=this['_idsRoots']['get'](_0x2ee3d4['position']['root']['rootName']),_0x4f8201=this['_fixPosition'](_0x2ee3d4['position'],_0x3a9382),_0x56561e=null===_0x2ee3d4['_authorId']?null:_0x2ee3d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x459d3c=_0x4f8201['parent'],_0x5762b7=this['_revisionId'],_0x1c3fcc=[];for(const _0x155237 of _0x2ee3d4['nodes'])if(_0x155237['is']('element'))_0x1c3fcc['push'](this['_makeIdsRoot'](_0x155237));else{for(let _0x3a8e7c=0x0;_0x3a8e7c<_0x155237['offsetSize'];_0x3a8e7c++)_0x1c3fcc['push'](new _0x467cfa('$text',{'vid':this['_revisionId']++}));}const _0x42e529=this['_revisionId'];for(let _0x4b9b8a=_0x5762b7;_0x4b9b8a<_0x42e529;_0x4b9b8a++)this['_touched']['set'](_0x4b9b8a,{'userId':_0x56561e});_0x459d3c['_insertChild'](_0x4f8201['offset'],_0x1c3fcc);}['_handleMoveOperation'](_0x3732c4){(_0x3732c4=this['_cloneOperation'](_0x3732c4,this['_idsRoots']))['_execute']();const _0xa5bbf4=null===_0x3732c4['_authorId']?null:_0x3732c4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x111c57=_0x3732c4['getMovedRangeStart'](),_0x3d9bb2=_0x111c57['parent'],_0x464a82=_0x111c57['offset'];!function _0x4bdacb(_0x53e3f3,_0x181fc9,_0x2e3489,_0x4a3af0){for(let _0x36d592=_0x2e3489;_0x36d592<_0x4a3af0;_0x36d592++){const _0x5e78ef=_0x181fc9['getChild'](_0x36d592);_0x5e78ef['is']('element','$text')?_0x53e3f3['set'](_0x5e78ef['getAttribute']('vid'),{'userId':_0xa5bbf4}):(_0x53e3f3['set'](_0x5e78ef['getAttribute']('vid_start'),{'userId':_0xa5bbf4}),_0x4bdacb(_0x53e3f3,_0x5e78ef,0x0,_0x5e78ef['childCount']),_0x53e3f3['set'](_0x5e78ef['getAttribute']('vid_end'),{'userId':_0xa5bbf4}));}}(this['_touched'],_0x3d9bb2,_0x464a82,_0x464a82+_0x3732c4['howMany']);}['_handleMergeOperation'](_0x28da61){const _0x36620d=null===(_0x28da61=this['_cloneOperation'](_0x28da61,this['_idsRoots']))['_authorId']?null:_0x28da61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x421f15=_0x28da61['targetPosition']['parent'],_0x5ed35e=_0x28da61['sourcePosition']['parent'],_0x27173f=_0x421f15['getAttribute']('vid_end'),_0x1cf939=_0x5ed35e['getAttribute']('vid_start');_0x421f15['_setAttribute']('vid_end',_0x5ed35e['getAttribute']('vid_end')),_0x5ed35e['_setAttribute']('vid_end',_0x27173f),this['_touched']['set'](_0x1cf939,{'userId':_0x36620d}),this['_touched']['set'](_0x27173f,{'userId':_0x36620d}),_0x28da61['_execute']();}['_handleSplitOperation'](_0x3e83c9){const _0x304df7=null===(_0x3e83c9=this['_cloneOperation'](_0x3e83c9,this['_idsRoots']))['_authorId']?null:_0x3e83c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11b609=_0x3e83c9['graveyardPosition'],_0x134dbe=_0x3e83c9['splitPosition']['parent'];_0x3e83c9['_execute']();const _0x5d3bce=_0x134dbe['getAttribute']('vid_end'),_0xbf2ff0=_0x3e83c9['insertionPosition']['nodeAfter'];if(_0x11b609){const _0x22463c=_0xbf2ff0['getAttribute']('vid_end'),_0x5141aa=_0x134dbe['getAttribute']('vid_end');_0x134dbe['_setAttribute']('vid_end',_0x22463c),_0xbf2ff0['_setAttribute']('vid_end',_0x5141aa),this['_touched']['set'](_0x134dbe['getAttribute']('vid_end'),{'userId':_0x304df7}),this['_touched']['set'](_0xbf2ff0['getAttribute']('vid_start'),{'userId':_0x304df7});}else{const _0x49ca2a=this['_revisionId']++,_0x281e53=this['_revisionId']++;_0x134dbe['_setAttribute']('vid_end',_0x49ca2a),_0xbf2ff0['_setAttribute']('vid_start',_0x281e53),_0xbf2ff0['_setAttribute']('vid_end',_0x5d3bce),this['_touched']['set'](_0x49ca2a,{'userId':_0x304df7}),this['_touched']['set'](_0x281e53,{'userId':_0x304df7});}}['_handleMarkerOperation'](_0x46c57d){if(!_0x46c57d['affectsData'])return;const _0x55260b=(_0x46c57d=this['_cloneOperation'](_0x46c57d,this['_diffRoots']))['oldRange']?_0x46c57d['oldRange']['root']:null,_0x4a2e30=_0x46c57d['newRange']?_0x46c57d['newRange']['root']:null;_0x55260b&&this['_markers']['delete'](_0x46c57d['name']),_0x4a2e30&&this['_markers']['set'](_0x46c57d['name'],_0x46c57d['newRange']['clone']());const _0x41ea5b=null===_0x46c57d['_authorId']?null:_0x46c57d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd4055f=_0x46c57d['name'];if(!this['_touchedMarkers']['has'](_0xd4055f))return void this['_touchedMarkers']['set'](_0xd4055f,{'range':_0x46c57d['oldRange'],'userId':_0x41ea5b});const _0x2f19bb=this['_touchedMarkers']['get'](_0xd4055f),_0x520fc1=_0x2f19bb['range'],_0x4408fb=_0x46c57d['newRange'];null==_0x520fc1&&null==_0x4408fb||_0x520fc1&&_0x4408fb&&_0x520fc1['isEqual'](_0x4408fb)?this['_touchedMarkers']['delete'](_0x46c57d['name']):_0x2f19bb['userId']=_0x41ea5b;}['_handleRootOperation'](_0x2d2d00,_0x17928d){this['_diffRoots']['has'](_0x2d2d00['rootName'])?this['_diffRoots']['get'](_0x2d2d00['rootName'])['_isAttached']=_0x2d2d00['isAdd']:(this['_diffRoots']['set'](_0x2d2d00['rootName'],N(_0x2d2d00['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d2d00['rootName'],{}),_0x17928d&&this['_idsRoots']['set'](_0x2d2d00['rootName'],N(_0x2d2d00['rootName'],!0x0)));const _0xd19021=null===_0x2d2d00['_authorId']?null:_0x2d2d00['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ac2c5=this['_touchedRoots']['get'](_0x2d2d00['rootName']);_0x3ac2c5&&_0x3ac2c5['userId']===_0xd19021?this['_touchedRoots']['delete'](_0x2d2d00['rootName']):this['_touchedRoots']['set'](_0x2d2d00['rootName'],{'userId':_0xd19021,'isAttached':_0x2d2d00['isAdd']});}['_handleRootAttributeOperation'](_0x59a673){const _0x4c0b48=this['_diffRootsAttributes']['get'](_0x59a673['root']['rootName']);null===_0x59a673['newValue']?delete _0x4c0b48[_0x59a673['key']]:_0x4c0b48[_0x59a673['key']]=_0x59a673['newValue'];}}function x(_0x328bb7){const _0x204cf3=N(_0x328bb7['rootName'],_0x328bb7['isAttached']());for(const _0x28a515 of _0x328bb7['getChildren']()){const _0x3d73dd=_0x28a515['_clone'](!0x0);_0x204cf3['_appendChild'](_0x3d73dd);}return _0x204cf3;}function N(_0x39bdee,_0xa090a2=!0x0){const _0x4a89f4=new _0xbdee0c();return _0x4a89f4['rootName']=_0x39bdee,_0x4a89f4['_isAttached']=_0xa090a2,_0x4a89f4['isAttached']=()=>_0x4a89f4['_isAttached'],_0x4a89f4;}function P(_0x2ab7d2,_0xcab69a,_0x585827){const _0x126f4a='elementEnd'==_0x2ab7d2['type']?_0x585827['createPositionAt'](_0x2ab7d2['item'],'end'):_0x585827['createPositionBefore'](_0x2ab7d2['item']);return _0x585827['createPositionFromPath'](_0xcab69a,_0x126f4a['path'],_0x126f4a['stickiness']);}function V(_0x490e15,_0xcab05e,_0x57bc24){const _0x2d69a7='elementStart'==_0x490e15['type']?_0x57bc24['createPositionAt'](_0x490e15['item'],0x0):_0x57bc24['createPositionAfter'](_0x490e15['item']);return _0x57bc24['createPositionFromPath'](_0xcab05e,_0x2d69a7['path'],_0x2d69a7['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3560c6(_0x2a78ea){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x34f944,_0x3d6d93){super(_0x34f944),this['focusTracker']=new _0x5edae5(),this['keystrokes']=new _0x354688(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3d6d93),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x301d30({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x13f522=_0x247a89=>_0x247a89['stopPropagation']();this['keystrokes']['set']('arrowright',_0x13f522),this['keystrokes']['set']('arrowleft',_0x13f522),this['keystrokes']['set']('arrowup',_0x13f522),this['keystrokes']['set']('arrowdown',_0x13f522);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x173959){this['revisionNameInputView']['fieldView']['element']['value']=_0x173959['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x12e2d4){const _0x22d1a7=new et(this['locale'],ti),_0xa1bd49=_0x22d1a7['fieldView'];_0xa1bd49['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2f45f6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x12e2d4&&(_0x2f45f6+='\x20('+m(this['locale'],'optional')+')'),(_0x22d1a7['label']=_0x2f45f6,_0xa1bd49['on']('input',()=>{this['revisionNameInputValue']=_0xa1bd49['element']['value']['trim']();}),_0x22d1a7);}}class l extends _0x437c77{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1e1f54=this['editor'],_0x4c5501=_0x1e1f54['plugins']['get']('RevisionTracker');_0x1e1f54['ui']['componentFactory']['add']('revisionHistory',_0x752226=>{const _0x17466d=_0x2676c3(_0x752226),_0x53b20d=_0x17466d['panelView']['children'],_0x4a796b=new _0x15824c(_0x752226),_0x2b3304=new _0x3054ac(_0x752226),_0x1fe766=new _0x4c4445(_0x752226),_0x52cc8a=new _0x3054ac(_0x752226),_0x2a502=new _0x4c4445(_0x752226);return _0x17466d['bind']('isEnabled')['to'](_0x4c5501,'isReady',_0x4c5501,'isEnabled',_0x1e1f54,'isReadOnly',(_0x3d1636,_0x47953c,_0x12e0d1)=>_0x3d1636&&_0x47953c&&!_0x12e0d1),_0x17466d['buttonView']['set']({'icon':_0x3dc43c,'label':m(_0x752226,'Revision\x20history'),'tooltip':!0x0}),_0x1fe766['set']({'label':m(_0x752226,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1fe766['bind']('isEnabled')['to'](_0x4c5501,'isReady',_0x4c5501,'isEnabled',_0x1e1f54,'isReadOnly',(_0x1db874,_0x513d3f,_0x383c93)=>_0x1db874&&_0x513d3f&&!_0x383c93),_0x1fe766['on']('execute',()=>this['_showDialog']()),_0x2a502['set']({'label':m(_0x752226,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2a502['bind']('isEnabled')['to'](_0x4c5501,'isReady',_0x1e1f54,'isReadOnly',(_0x2c4f17,_0x463213)=>_0x2c4f17&&!_0x463213),_0x2a502['on']('execute',()=>{_0x1e1f54['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x17466d['isOpen']=!0x1,_0x1e1f54['editing']['view']['focus']();}),_0x2b3304['children']['add'](_0x1fe766),_0x52cc8a['children']['add'](_0x2a502),_0x4a796b['role']='menu',_0x4a796b['items']['addMany']([_0x2b3304,_0x52cc8a]),_0x53b20d['add'](_0x4a796b),_0x17466d;}),_0x1e1f54['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x320da7=this['editor'],_0x49d3fd=_0x320da7['locale'],_0x4b716b=new _0x34fd27(_0x49d3fd),_0x1cf9c0=new _0x2ddecd(_0x49d3fd);_0x4b716b['buttonView']['set']({'icon':_0x3dc43c,'label':m(_0x49d3fd,'Revision\x20history')});const _0x2b3c8d=new _0x456bf8(_0x49d3fd,_0x4b716b),_0xec7e2a=new _0x590fd1(_0x49d3fd);_0xec7e2a['set']({'label':m(_0x49d3fd,'Save\x20current\x20revision')}),_0xec7e2a['delegate']('execute')['to'](_0x4b716b),_0xec7e2a['on']('execute',()=>{this['_showDialog']();}),_0x2b3c8d['children']['add'](_0xec7e2a),_0x1cf9c0['items']['add'](_0x2b3c8d);const _0x5f12f3=new _0x456bf8(_0x49d3fd,_0x4b716b),_0x236955=new _0x590fd1(_0x49d3fd);return _0x236955['set']({'label':m(_0x49d3fd,'Open\x20revision\x20history')}),_0x236955['delegate']('execute')['to'](_0x4b716b),_0x236955['on']('execute',()=>{_0x320da7['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5f12f3['children']['add'](_0x236955),_0x1cf9c0['items']['add'](_0x5f12f3),_0x4b716b['panelView']['children']['add'](_0x1cf9c0),_0x4b716b;}['_showDialog'](){const _0x4cd3ce=this['editor'],_0x315e0c=_0x4cd3ce['locale'],_0x4d1e98=_0x4cd3ce['plugins']['get']('Dialog'),_0x18f2f2=_0x4cd3ce['plugins']['get']('RevisionTracker');function _0xe2e24b(_0x4d29a6){_0x4cd3ce['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4d29a6['revisionName']?_0x4d29a6['revisionNameInputView']['errorText']=m(_0x315e0c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4cd3ce['plugins']['get'](h)['saveRevision']({'name':_0x4d29a6['revisionName']}),_0x4d1e98['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xe2e24b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4d1e98['show']({'id':'revisionSave','title':m(_0x315e0c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4cd3ce['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4d1e98['hide']()},{'label':m(_0x4cd3ce['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x322b8c){_0x322b8c['bind']('isEnabled')['to'](_0x18f2f2,'isReady',_0x18f2f2,'isEnabled',_0x4cd3ce,'isReadOnly',(_0x593749,_0x33ba7e,_0x519a67)=>_0x593749&&_0x33ba7e&&!_0x519a67);},'onExecute':()=>_0xe2e24b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3e593f=this['editor'],_0x4248c8=_0x3e593f['locale'];this['_saveRevisionFormView']=new me(_0x4248c8,_0x3e593f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2a78ea{['changeId'];['_model'];constructor(_0x19f265,_0x47d4af){super(_0x19f265),this['_model']=_0x47d4af,this['changeId']=_0x47d4af['id'];const _0x82a973=this['bindTemplate'],_0x162929=m(_0x19f265,_0x47d4af['data']['isSuggestion']?'Suggested\x20by':'add'==_0x47d4af['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x47d4af['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x82a973['to']('type',_0x71e44b=>'ck-revision-change__'+_0x71e44b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x162929}]},{'text':'\x20'+_0x47d4af['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x28c99b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x435d17){super(),this['id']=_0x435d17['id']||_0x544ff4(),this['author']=_0x435d17['author'],this['type']=_0x435d17['type'],this['data']=_0x435d17['data']||{},this['rootName']=_0x435d17['rootName'],this['set']('createdAt',_0x435d17['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x11462f,_0x21a2d7){this['newRevisionId']=_0x11462f,this['oldRevisionId']=_0x21a2d7,this['changes']=new _0x292637();}['_setChanges'](_0x1e1825){for(const _0x146039 of _0x1e1825)this['changes']['add'](_0x146039);}}class u extends _0x437c77{['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[_0xefcee4,_0x2cef43,S,$];}constructor(_0x1ad5ad){super(_0x1ad5ad),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',(_0x57e819,_0x1b6ba2,_0x55e098)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x129db4=>{for(const _0x157236 of this['editor']['editing']['view']['document']['roots'])_0x55e098?_0x129db4['removeClass']('ck-editor__editable__overlay',_0x157236):_0x129db4['addClass']('ck-editor__editable__overlay',_0x157236);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x504c68=>null!==_0x504c68),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x836109,_0x5414da,_0x4cf085)=>_0x836109&&_0x4cf085?_0x5414da['changes']['getIndex'](_0x4cf085):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x58c8c4,_0x590b24)=>_0x58c8c4?_0x590b24['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2cef43);}['init'](){const _0x5b546b=this['editor'],_0x253451=new rt(_0x5b546b,{'direction':'backward'}),_0x16e0fa=new rt(_0x5b546b,{'direction':'forward'});(_0x5b546b['commands']['add']('showPreviousChange',_0x253451),_0x5b546b['commands']['add']('showNextChange',_0x16e0fa),_0x5b546b['commands']['add']('restoreRevision',new nt(_0x5b546b)),this['on']('change:numberOfChanges',()=>{_0x253451['refresh'](),_0x16e0fa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b546b['enableReadOnlyMode']('revision-viewer'),_0x5b546b['plugins']['has']('WidgetToolbarRepository'))&&_0x5b546b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1c815c){return await this['_utils']['loadRevisionData'](_0x1c815c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1c815c);}async['getRevisionRootsAttributes'](_0x97793c){return await this['_utils']['loadRevisionData'](_0x97793c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x97793c);}async['compare'](_0x5a4e92,_0x181d8f,_0x39b6de=!0x1){if(!this['isEnabled'])return;const _0x224551=this['diff'],_0x4531aa=this['repository'],_0x4a2260='string'==typeof _0x5a4e92?_0x4531aa['getRevision'](_0x5a4e92):_0x5a4e92,_0x4b9f93='string'==typeof _0x181d8f?_0x4531aa['getRevision'](_0x181d8f):_0x181d8f,_0x1479f1=_0x4a2260['id'],_0x5d99a8=_0x4b9f93?_0x4b9f93['id']:null;if(!_0x39b6de&&this['diff']&&this['diff']['newRevisionId']===_0x1479f1&&this['diff']['oldRevisionId']===_0x5d99a8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1479f1,_0x5d99a8);const _0x4afea=this['_getRevisionsRange'](_0x4a2260,_0x4b9f93,!0x0)['map'](_0x180a3b=>this['_utils']['loadRevisionData'](_0x180a3b,this['adapter']));return _0x4afea['push'](new Promise(_0x53afec=>{setTimeout(_0x53afec,0x14);})),Promise['all'](_0x4afea)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1a1a46=this['_getDiff'](_0x1479f1,_0x5d99a8);for(const _0x3b09b3 of _0x1a1a46['changes'])this['_changeIdToChange']['set'](_0x3b09b3['id'],_0x3b09b3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x65d402=>{for(const _0x2cb955 of this['editor']['model']['document']['getRootNames']())_0x65d402['detachRoot'](_0x2cb955);for(const _0x58cea9 of Object['keys'](_0x1a1a46['model'])){const _0xce1475=_0x65d402['addRoot'](_0x58cea9);for(const _0x448827 of Object['keys'](_0x1a1a46['attributes'][_0x58cea9]))_0x65d402['setAttribute'](_0x448827,_0x1a1a46['attributes'][_0x58cea9][_0x448827],_0xce1475);_0x65d402['insert'](_0x1a1a46['model'][_0x58cea9],_0xce1475,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1a1a46['changes'])),this['isReady']=!0x0;})['catch'](_0x2d0743=>{console['error'](_0x2d0743),this['_cleanUp'](),_0x224551&&(this['diff']=_0x224551),this['isReady']=!0x0;});}['addRevisionData'](_0x3b671c,_0x41d47e){const _0x192ff6=this['repository']['createRevision'](_0x3b671c);return _0x192ff6['on']('_update',(_0x388f93,_0x10e44d,_0x2d8e49)=>_0x41d47e(_0x10e44d,_0x2d8e49,_0x192ff6)),this['repository']['addRevision'](_0x192ff6),_0x192ff6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e7ddd=>{for(const _0x276ef4 of this['editor']['model']['document']['getRootNames']())_0x3e7ddd['detachRoot'](_0x276ef4);});}['_sortAndFilterDiffChanges'](_0x2d44f8){const _0x2ee0b0=[],_0x12d0eb=new Map();for(const _0x5ed638 of this['editor']['model']['document']['getRootNames']()){const _0x12f16d=this['editor']['editing']['view']['getDomRoot'](_0x5ed638);if(!_0x12f16d)continue;const _0x3eb18c=_0x12f16d['getClientRects']()['item'](0x0);_0x3eb18c&&(_0x2ee0b0['push'](_0x5ed638),_0x12d0eb['set'](_0x5ed638,_0x3eb18c));}return _0x2ee0b0['sort']((_0x50cfcd,_0x429035)=>{const _0x43f7e9=_0x12d0eb['get'](_0x50cfcd),_0x497914=_0x12d0eb['get'](_0x429035);return _0x43f7e9['y']-_0x497914['y']||_0x43f7e9['x']-_0x497914['x'];}),(_0x2d44f8=_0x2d44f8['filter'](_0x43c442=>_0x2ee0b0['includes'](_0x43c442['rootName'])))['sort']((_0x4f66ce,_0x14e7ab)=>_0x2ee0b0['indexOf'](_0x4f66ce['rootName'])-_0x2ee0b0['indexOf'](_0x14e7ab['rootName'])),_0x2d44f8;}['_makeTape'](_0x5f3604){const _0x51c2ef=Array['from'](_0x5f3604['markers'])['filter'](([_0x382c6f,_0xfa03a2])=>_0x382c6f['startsWith']('revision:')&&!_0xfa03a2['isCollapsed']),_0x3e9ffa=Array['from'](this['editor']['model']['createRangeIn'](_0x5f3604)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x51c2ef['length'])for(const _0xcf906c of _0x3e9ffa){const [_0x2cdc4a,_0x316cc9]=_0x51c2ef[0x0],[,_0x2f28a8,_0x45ac15]=_0x2cdc4a['split'](':');if(_0x316cc9['end']['isEqual'](_0xcf906c['nextPosition'])&&_0x51c2ef['shift'](),(_0xcf906c['previousPosition']['isEqual'](_0x316cc9['start'])||_0xcf906c['previousPosition']['isAfter'](_0x316cc9['start']))&&('insertion'==_0x2f28a8?_0xcf906c['isAdded']={'userId':_0x45ac15}:'deletion'==_0x2f28a8&&(_0xcf906c['isRemoved']={'userId':_0x45ac15})),0x0==_0x51c2ef['length'])break;}return _0x3e9ffa;}['_refreshStartEndIndex'](_0x30077b){const _0x511f9f=new Map();for(let _0x274ebe=0x0;_0x274ebe<_0x30077b['length'];_0x274ebe++)'text'===_0x30077b[_0x274ebe]['type']?(_0x30077b[_0x274ebe]['item']['startIndex']=_0x274ebe,_0x30077b[_0x274ebe]['item']['endIndex']=_0x274ebe):('elementStart'===_0x30077b[_0x274ebe]['type']?_0x30077b[_0x274ebe]['item']['startIndex']=_0x274ebe:'elementEnd'===_0x30077b[_0x274ebe]['type']&&(_0x30077b[_0x274ebe]['item']['endIndex']=_0x274ebe),_0x511f9f['set'](_0x30077b[_0x274ebe]['id'],_0x274ebe));for(const _0x1dfd49 of _0x511f9f['values']())'elementStart'===_0x30077b[_0x1dfd49]['type']?_0x30077b[_0x1dfd49]['item']['endIndex']=_0x511f9f['get'](_0x30077b[_0x1dfd49]['pairId']):'elementEnd'===_0x30077b[_0x1dfd49]['type']&&(_0x30077b[_0x1dfd49]['item']['startIndex']=_0x511f9f['get'](_0x30077b[_0x1dfd49]['pairId']));}['_processTape'](_0x5aae72){for(let _0x52b495=0x0;_0x52b495<_0x5aae72['length'];_0x52b495++){if('elementStart'===_0x5aae72[_0x52b495]['type'])_0x5aae72[_0x52b495]['item']['startIndex']=_0x52b495;else{if('elementEnd'===_0x5aae72[_0x52b495]['type']){_0x5aae72[_0x52b495]['item']['endIndex']=_0x52b495;const _0x582675=_0x5aae72[_0x52b495]['item']['startIndex'];_0x5aae72[_0x582675]['pairId']=_0x5aae72[_0x52b495]['id'],_0x5aae72[_0x52b495]['pairId']=_0x5aae72[_0x582675]['id'];}else _0x5aae72[_0x52b495]['item']['startIndex']=_0x52b495,_0x5aae72[_0x52b495]['item']['endIndex']=_0x52b495,_0x5aae72[_0x52b495]['pairId']=null;}_0x5aae72[_0x52b495]['markersStart']||(_0x5aae72[_0x52b495]['markersStart']=[],_0x5aae72[_0x52b495]['markersEnd']=[]);}}['_markInsertions'](_0x59d751,_0x27620f){const _0x103aeb=_0x59d751['filter'](_0x4877b5=>!_0x4877b5['isAdded']);for(let _0x276ae0=0x0;_0x276ae0<_0x27620f['length'];_0x276ae0++)_0x27620f[_0x276ae0]['isAdded']&&(_0x103aeb[_0x276ae0]['isAdded']=_0x27620f[_0x276ae0]['isAdded']);}['_getDiff'](_0x400512,_0x14c1f5=null){const _0x2147b3=this['repository']['getRevision'](_0x400512),_0x19d1f3=_0x14c1f5?this['repository']['getRevision'](_0x14c1f5):null,_0x2c1a5a=this['_getRevisionsRange'](_0x2147b3,_0x19d1f3),_0x8965e2=_0x2c1a5a[_0x2c1a5a['length']-0x1],_0x5af15f=new Map(),_0x4fa546={'model':{},'attributes':{},'changes':[]},_0x1f53a7=new Set(),_0x7a7a45=new Map();for(let _0x2c9b47=_0x2c1a5a['length']-0x1;_0x2c9b47>=0x0;_0x2c9b47--){const _0x2e033f=_0x2c1a5a[_0x2c9b47];for(const _0x5ac442 of Object['keys'](_0x2e033f['diffData']))if(_0x2e033f['diffData'][_0x5ac442]['attachChange']){const _0x96842f=_0x2e033f['diffData'][_0x5ac442]['attachChange'];_0x96842f['isAttached']?(_0x1f53a7['add'](_0x5ac442),_0x7a7a45['has'](_0x5ac442)&&_0x7a7a45['get'](_0x5ac442)['userId']==_0x96842f['userId']?_0x7a7a45['delete'](_0x5ac442):_0x7a7a45['set'](_0x5ac442,_0x96842f)):_0x7a7a45['has'](_0x5ac442)?(_0x1f53a7['delete'](_0x5ac442),_0x7a7a45['delete'](_0x5ac442)):(_0x1f53a7['add'](_0x5ac442),_0x7a7a45['set'](_0x5ac442,_0x96842f));}else _0x1f53a7['add'](_0x5ac442);}for(const _0x3698f1 of _0x1f53a7){const _0x40244a=_0x7a7a45['has'](_0x3698f1)&&!_0x7a7a45['get'](_0x3698f1)['isAttached'];let _0x235bcd=_0x40244a?_0x2c1a5a['length']-0x1:0x0;const _0x1bf926=_0x40244a?-0x1:0x1;for(;_0x2c1a5a[_0x235bcd];){const _0x580a61=_0x2c1a5a[_0x235bcd];if(_0x580a61['diffData'][_0x3698f1]){const _0x36e0a4=_0x40244a?_0x580a61['diffData'][_0x3698f1]['attributesBefore']:_0x580a61['diffData'][_0x3698f1]['attributesAfter'];_0x4fa546['attributes'][_0x3698f1]=_0x36e0a4?_0xb2db8(_0x36e0a4):{};break;}_0x235bcd+=_0x1bf926;}}for(const _0x3cdf51 of _0x2c1a5a){_0x3cdf51['model']={};for(const _0x48fcda of _0x3cdf51['authors'])_0x5af15f['set'](_0x48fcda['id'],_0x48fcda);for(const _0x1dc347 of _0x1f53a7){const _0x4ca729=_0x3cdf51['diffData'][_0x1dc347]?_0x3cdf51['diffData'][_0x1dc347]['insertions']:'[]',_0x46af23=_0x3cdf51['diffData'][_0x1dc347]?_0x3cdf51['diffData'][_0x1dc347]['deletions']:'[]';_0x3cdf51['model'][_0x1dc347]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4ca729),'deletions':this['_utils']['_makeModelFromViewString'](_0x46af23)};}}for(const _0x18ee2b of _0x1f53a7){let _0x3d50c6=null,_0x39fd93=0x0;const _0x299d7f=new Map(Array['from'](_0x2147b3['model'][_0x18ee2b]['insertions']['markers'])['filter'](([_0xb0efd2])=>!_0xb0efd2['startsWith']('revision:')));let _0x16b01b=0x0;for(const _0x5169ec of _0x2c1a5a){const _0x3466c9=this['_makeTape'](_0x5169ec['model'][_0x18ee2b]['insertions']);_0x5169ec==_0x2147b3?(_0x3d50c6=_0x3466c9,_0x39fd93=_0x3d50c6['length'],_0x3d50c6['forEach'](_0x55c307=>{_0x55c307['id']=_0x16b01b++;}),this['_processTape'](_0x3d50c6)):this['_markInsertions'](_0x3d50c6,_0x3466c9);const _0x361515=_0x3d50c6['filter'](_0x4c4090=>!_0x4c4090['isAdded'])['map'](_0x54f842=>_0x54f842['id']);let _0x372bda=0x0;const _0x3eb5e0=this['_makeTape'](_0x5169ec['model'][_0x18ee2b]['deletions']);_0x3eb5e0['forEach'](_0x2807e4=>{_0x2807e4['isRemoved']?_0x2807e4['id']=_0x39fd93++:_0x2807e4['id']=_0x361515[_0x372bda++];}),this['_processTape'](_0x3eb5e0),this['_setDistance'](_0x3d50c6,'isAdded'),this['_setDistance'](_0x3eb5e0,'isRemoved'),_0x5169ec==_0x2147b3&&this['_markMarkers'](_0x3d50c6,_0x299d7f),_0x3d50c6=this['_joinTapes'](_0x3d50c6,_0x3eb5e0),this['_refreshStartEndIndex'](_0x3d50c6),this['_setDistance'](_0x3d50c6,'isRemoved');}_0x3d50c6=_0x3d50c6['filter'](_0x1ecfb3=>!(_0x1ecfb3['isAdded']&&_0x1ecfb3['isRemoved']));const _0x5562e7=new Map(_0x8965e2['model'][_0x18ee2b]['deletions']['markers']),_0x1fb962=new Set(_0x299d7f['keys']());for(const _0x860d5d of _0x5562e7['keys']())_0x1fb962['delete'](_0x860d5d);this['_markSuggestions'](_0x3d50c6,_0x1fb962),this['_fixObsoleteTags'](_0x3d50c6),_0x3d50c6=this['_removeMissingPairs'](_0x3d50c6),_0x3d50c6=this['_markMismatchedRemovedTags'](_0x3d50c6),_0x3d50c6=this['_removeUnsupportedChanges'](_0x3d50c6);const {root:_0x3a58a2,changes:_0x5967b5}=this['_makeModelFromTape'](_0x3d50c6,_0x5af15f,_0x18ee2b);_0x4fa546['model'][_0x18ee2b]=_0x3a58a2;const _0x1de2d5=_0x7a7a45['get'](_0x18ee2b);if(_0x1de2d5){const _0x548cad=_0x5af15f['get'](_0x1de2d5['userId']),_0xef6535=new G({'author':_0x548cad,'type':_0x1de2d5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x18ee2b});_0x5967b5['unshift'](_0xef6535),_0x4fa546['attributes'][_0x18ee2b]['revisionHistoryAttachChange']=_0xef6535['id'];}_0x4fa546['changes']=_0x4fa546['changes']['concat'](_0x5967b5);}return _0x4fa546;}['_markMarkers'](_0x10d503,_0x11041a){for(let _0x505aa4=0x0;_0x505aa4<_0x10d503['length'];_0x505aa4++)for(const [_0xb8fe5,_0x336c7d]of _0x11041a)!_0x336c7d['isCollapsed']&&_0x336c7d['start']['isEqual'](_0x10d503[_0x505aa4]['previousPosition'])&&_0x10d503[_0x505aa4]['markersStart']['push'](_0xb8fe5),_0x336c7d['end']['isEqual'](_0x10d503[_0x505aa4]['nextPosition'])&&_0x10d503[_0x505aa4]['markersEnd']['push'](_0xb8fe5);}['_joinTapes'](_0x205d03,_0xfcc39c){let _0x59ba49=[],_0x16ac16=0x0,_0x806341=0x0;for(;_0x16ac16<_0x205d03['length']||_0x806341<_0xfcc39c['length'];){const _0x2a7a51=_0x205d03[_0x16ac16]||{},_0x5d2fc8=_0xfcc39c[_0x806341]||{};if(_0x2a7a51['id']==_0x5d2fc8['id'])_0x16ac16++,_0x806341++,_0x59ba49['push'](_0x2a7a51);else{if(_0x5d2fc8['isRemoved']&&_0x2a7a51['isAdded']){const {commonTape:_0x3d7444,iEnd:_0x241cd7,jEnd:_0x36ae43}=this['_threeWayMerge'](_0x205d03,_0x16ac16,_0xfcc39c,_0x806341);_0x59ba49=_0x59ba49['concat'](_0x3d7444),_0x16ac16=_0x241cd7,_0x806341=_0x36ae43;}else _0x5d2fc8['isRemoved']?(_0x806341++,_0x59ba49['push'](_0x5d2fc8)):(_0x16ac16++,_0x59ba49['push'](_0x2a7a51));}}return _0x59ba49;}['_markSuggestions'](_0x50577f,_0x268a93){const _0x4e678d=[];for(let _0x1f7aff=0x0;_0x1f7aff<_0x50577f['length'];_0x1f7aff++){for(let _0x467bae=0x0;_0x467bae<_0x50577f[_0x1f7aff]['markersStart']['length'];_0x467bae++){const _0x13bedf=_0x50577f[_0x1f7aff]['markersStart'][_0x467bae];if(!_0x268a93['has'](_0x13bedf))continue;const {group:_0x15f6bc,type:_0x31c41c,authorId:_0x3dbcc0}=_0x4d552c(_0x13bedf);'revision-suggestion'!=_0x15f6bc||'insertion'!=_0x31c41c&&'deletion'!=_0x31c41c||(_0x4e678d['unshift']({'type':_0x31c41c,'name':_0x13bedf,'userId':_0x3dbcc0}),_0x50577f[_0x1f7aff]['markersStart']['splice'](_0x467bae,0x1),_0x467bae--);}_0x1f5876(_0x50577f[_0x1f7aff]);for(let _0x1a0e9b=0x0;_0x1a0e9b<_0x50577f[_0x1f7aff]['markersEnd']['length'];_0x1a0e9b++){const _0x5f44b5=_0x50577f[_0x1f7aff]['markersEnd'][_0x1a0e9b];if(!_0x268a93['has'](_0x5f44b5))continue;const {group:_0x453d43,type:_0x6cd776}=_0x4d552c(_0x5f44b5);if('revision-suggestion'!=_0x453d43||'insertion'!=_0x6cd776&&'deletion'!=_0x6cd776)continue;_0x50577f[_0x1f7aff]['markersEnd']['splice'](_0x1a0e9b,0x1),_0x1a0e9b--;const _0x561177=_0x4e678d['findIndex'](_0x15c11e=>_0x15c11e['name']==_0x5f44b5);_0x561177>-0x1&&_0x4e678d['splice'](_0x561177,0x1);}}function _0x4d552c(_0x32e539){const _0x3d39ea=_0x32e539['split'](':');return{'group':_0x3d39ea[0x0],'type':_0x3d39ea[0x1],'subType':_0x3d39ea['length']>=0x5?_0x3d39ea[0x2]:null,'id':_0x3d39ea['length']<0x5?_0x3d39ea[0x2]:_0x3d39ea[0x3],'authorId':_0x3d39ea['length']<0x5?_0x3d39ea[0x3]:_0x3d39ea[0x4],'markerCount':0x6==_0x3d39ea['length']?_0x3d39ea[0x5]:null};}function _0x1f5876(_0x76f88){for(let _0xeeb342=0x0;_0xeeb342<_0x4e678d['length'];_0xeeb342++){if(_0x76f88['isAdded']&&'insertion'==_0x4e678d[_0xeeb342]['type']&&_0x76f88['isAdded']['userId']==_0x4e678d[_0xeeb342]['userId'])return _0x76f88['isAddSuggestion']=_0x4e678d[_0xeeb342],void delete _0x76f88['isAdded'];if(!_0x76f88['isAdded']&&!_0x76f88['isRemoved']&&'deletion'==_0x4e678d[_0xeeb342]['type'])return void(_0x76f88['isRemoveSuggestion']=_0x4e678d[_0xeeb342]);}}}['_setDistance'](_0x3efe0a,_0xee920b){let _0xe681ba=0x0,_0xe8bbee=!0x1;const _0x31fa23=new Map();for(const _0x2e7600 of _0x3efe0a)_0x2e7600[_0xee920b]?_0xe8bbee&&(_0xe681ba++,_0xe8bbee=!0x1):(_0xe681ba++,_0xe8bbee=!0x0),_0x31fa23['set'](_0x2e7600['id'],_0xe681ba);for(let _0x3f40ae=0x0;_0x3f40ae<_0x3efe0a['length'];_0x3f40ae++){if('isRemoved'==_0xee920b&&_0x3efe0a[_0x3f40ae]['isAdded']||'isAdded'==_0xee920b&&_0x3efe0a[_0x3f40ae]['isRemoved'])continue;if('text'==_0x3efe0a[_0x3f40ae]['type']){_0x3efe0a[_0x3f40ae]['distance']=0x0;continue;}const _0x20f474=_0x31fa23['get'](_0x3efe0a[_0x3f40ae]['pairId']),_0x41b2e1=_0x31fa23['get'](_0x3efe0a[_0x3f40ae]['id']);_0x3efe0a[_0x3f40ae]['distance']=_0x20f474-_0x41b2e1;}}['_getRevisionsRange'](_0x84bc0c,_0x566186,_0x875f20=!0x1){const _0x133226=[];let _0x109488=this['repository']['getIndex'](_0x84bc0c),_0x33293f=this['repository']['getIndex'](_0x566186);for(-0x1==_0x33293f&&(_0x33293f=this['repository']['_revisions']['length'],_0x875f20=!0x1);_0x109488<_0x33293f;)_0x133226['push'](this['repository']['getRevision'](_0x109488)),_0x109488++;return _0x875f20&&_0x133226['push'](this['repository']['getRevision'](_0x109488)),_0x133226;}['_threeWayMerge'](_0x3b9d6b,_0x4debc6,_0x2b9abd,_0x273429){const _0xb3baed=this['editor']['model']['schema'];let _0x4ee79e=_0x4debc6;for(;_0x3b9d6b[_0x4ee79e]&&_0x3b9d6b[_0x4ee79e]['isAdded'];)_0x4ee79e++;let _0x99b55e=_0x273429;for(;_0x2b9abd[_0x99b55e]&&_0x2b9abd[_0x99b55e]['isRemoved'];)_0x99b55e++;_0x20107b(_0x3b9d6b,_0x4debc6,_0x4ee79e),_0x20107b(_0x2b9abd,_0x273429,_0x99b55e);const _0x1cd5c8=_0x2b9abd['slice'](_0x273429,_0x99b55e)['concat'](_0x3b9d6b['slice'](_0x4debc6,_0x4ee79e));return _0x1cd5c8['sort']((_0x42c423,_0x526407)=>_0x42c423['side']!=_0x526407['side']?_0x42c423['side']-_0x526407['side']:_0x42c423['level']!=_0x526407['level']?_0x42c423['level']-_0x526407['level']:_0x42c423['distance']!=_0x526407['distance']?_0x526407['distance']-_0x42c423['distance']:!!_0x42c423['isAdded']!=!!_0x526407['isAdded']?-0x1==_0x42c423['side']||0x0==_0x42c423['side']?_0x42c423['isAdded']?-0x1:0x1:_0x42c423['isAdded']?0x1:-0x1:_0x42c423['index']-_0x526407['index']),{'commonTape':_0x1cd5c8,'iEnd':_0x4ee79e,'jEnd':_0x99b55e};function _0x20107b(_0x2df9c9,_0x6e397,_0x1da958){let _0x2178a7=-0x1,_0x323253=Number['POSITIVE_INFINITY'],_0x598eae=!0x0;for(let _0xcddd54=_0x6e397;_0xcddd54<_0x1da958;_0xcddd54++)if(_0xb3baed['isInline'](_0x2df9c9[_0xcddd54]['item'])||(_0x598eae=!0x1),_0x2df9c9[_0xcddd54]['item']['startIndex']<_0x6e397&&(_0x2178a7=_0xcddd54),_0x2df9c9[_0xcddd54]['item']['endIndex']>=_0x1da958){_0x323253=_0xcddd54;break;}_0x598eae&&(_0x2178a7=_0x1da958-0x1);for(let _0x14fb80=_0x6e397;_0x14fb80<_0x1da958;_0x14fb80++)_0x2df9c9[_0x14fb80]['side']=_0x14fb80<=_0x2178a7?-0x1:_0x14fb80<_0x323253?0x0:0x1,_0x2df9c9[_0x14fb80]['index']=_0x14fb80;let _0x21d0e8=0x0;for(let _0x1acd04=_0x6e397;_0x1acd04<=_0x2178a7;_0x1acd04++)0x0==_0x2df9c9[_0x1acd04]['distance']?_0x2df9c9[_0x1acd04]['level']=_0x21d0e8:(_0x21d0e8++,_0x2df9c9[_0x1acd04]['level']=_0x21d0e8,_0x21d0e8++);for(let _0x23df5b=_0x6e397;_0x23df5b<_0x1da958;_0x23df5b++)0x0==_0x2df9c9[_0x23df5b]['side']&&(_0x2df9c9[_0x23df5b]['level']=_0x21d0e8);_0x21d0e8=0x0;for(let _0x40e926=_0x1da958-0x1;_0x40e926>=_0x323253;_0x40e926--)0x0==_0x2df9c9[_0x40e926]['distance']?_0x2df9c9[_0x40e926]['level']=_0x21d0e8:(_0x21d0e8--,_0x2df9c9[_0x40e926]['level']=_0x21d0e8,_0x21d0e8--);}}['_fixObsoleteTags'](_0x454b71){const _0x366d77=new Map(),_0x23280b=this['editor']['model']['schema'];for(let _0x1a3d02=0x1;_0x1a3d02<_0x454b71['length'];_0x1a3d02++){let _0x384a60,_0x8f7ab8,_0x4520a3;const _0x599e3d=_0x454b71[_0x1a3d02],_0x36e02c=_0x454b71[_0x1a3d02-0x1];if('text'==_0x599e3d['type'])continue;if(_0x599e3d['type']!=_0x36e02c['type'])continue;if(!_0x23280b['isBlock'](_0x36e02c['item'])||_0x23280b['isLimit'](_0x36e02c['item']))continue;if(!_0x23280b['isBlock'](_0x599e3d['item'])||_0x23280b['isLimit'](_0x599e3d['item']))continue;if((_0x454b71[_0x1a3d02]['isAdded']||_0x454b71[_0x1a3d02]['isAddSuggestion'])&&_0x454b71[_0x1a3d02-0x1]['isRemoved'])_0x384a60=_0x454b71[_0x1a3d02],_0x8f7ab8=_0x454b71[_0x1a3d02-0x1],_0x4520a3=_0x1a3d02-0x1;else{if(!_0x454b71[_0x1a3d02]['isRemoved']||!_0x454b71[_0x1a3d02-0x1]['isAdded']&&!_0x454b71[_0x1a3d02-0x1]['isAddSuggestion'])continue;_0x384a60=_0x454b71[_0x1a3d02-0x1],_0x8f7ab8=_0x454b71[_0x1a3d02],_0x4520a3=_0x1a3d02;}const _0x1ccf06=_0x384a60['level']==_0x8f7ab8['level'],_0x15c691=Math['abs'](_0x384a60['level'])<Math['abs'](_0x8f7ab8['level'])&&0x0==_0x8f7ab8['distance'];(_0x1ccf06||_0x15c691)&&(_0x366d77['set'](_0x8f7ab8['id'],_0x384a60['id']),_0x454b71['splice'](_0x4520a3,0x1),_0x1a3d02--,_0x384a60['isAdded']=!0x1);}for(let _0x362c94=0x0;_0x362c94<_0x454b71['length'];_0x362c94++)_0x366d77['has'](_0x454b71[_0x362c94]['pairId'])&&(_0x454b71[_0x362c94]['pairId']=_0x366d77['get'](_0x454b71[_0x362c94]['pairId']));}['_removeMissingPairs'](_0x30e13b){const _0x2e83f5=new Set(_0x30e13b['map'](_0x5bcdd7=>_0x5bcdd7['id']));for(let _0x2be597=0x0;_0x2be597<_0x30e13b['length'];_0x2be597++)_0x2e83f5['has'](_0x30e13b[_0x2be597]['pairId'])||0x0==_0x30e13b[_0x2be597]['distance']||(_0x30e13b[_0x2be597]['isIncorrect']=!0x0);return _0x30e13b['filter'](_0x2695da=>!_0x2695da['isIncorrect']);}['_markMismatchedRemovedTags'](_0xd5ac81){const _0x59833e=new Set();for(let _0xc9d1c3=0x0;_0xc9d1c3<_0xd5ac81['length'];_0xc9d1c3++){if(_0x59833e['has'](_0xd5ac81[_0xc9d1c3]['id'])&&_0xd5ac81[_0xc9d1c3]['isRemoved']&&(_0xd5ac81[_0xc9d1c3]['isIncorrect']=!0x0),_0xd5ac81[_0xc9d1c3]['isIncorrect'])continue;if(0x0==_0xd5ac81[_0xc9d1c3]['distance'])continue;if('elementStart'!=_0xd5ac81[_0xc9d1c3]['type'])continue;if(null==_0xd5ac81[_0xc9d1c3]['pairId'])continue;let _0x40848d=_0xc9d1c3+0x1,_0x646544=0x0;for(;_0xd5ac81[_0x40848d]['id']!=_0xd5ac81[_0xc9d1c3]['pairId'];)'elementStart'==_0xd5ac81[_0x40848d]['type']?_0x646544++:'elementEnd'==_0xd5ac81[_0x40848d]['type']&&_0x646544--,_0x40848d++;if(0x0!=_0x646544){if(_0xd5ac81[_0xc9d1c3]['isRemoved'])_0xd5ac81[_0xc9d1c3]['isIncorrect']=!0x0;else{for(;_0x40848d!=_0xc9d1c3;)_0xd5ac81[_0x40848d]['isRemoved']&&0x0!=_0xd5ac81[_0x40848d]['distance']&&(_0xd5ac81[_0x40848d]['isIncorrect']=!0x0,_0x59833e['add'](_0xd5ac81[_0x40848d]['pairId'])),_0x40848d--;}}}return _0xd5ac81['filter'](_0x2fdae0=>!_0x2fdae0['isIncorrect']);}['_removeUnsupportedChanges'](_0x70dfd2){const _0x567ece=this['editor']['model']['schema'];for(let _0x5e4767=0x0;_0x5e4767<_0x70dfd2['length'];_0x5e4767++){if(!(_0x70dfd2[_0x5e4767]['isAdded']||_0x70dfd2[_0x5e4767]['isAddSuggestion']||_0x70dfd2[_0x5e4767]['isRemoved']||_0x70dfd2[_0x5e4767]['isRemoveSuggestion']))continue;if(0x0==_0x70dfd2[_0x5e4767]['distance'])continue;const _0x1ab118=_0x70dfd2[_0x5e4767]['item'];_0x567ece['isBlock'](_0x1ab118)||_0x567ece['isLimit'](_0x1ab118)||(_0x70dfd2[_0x5e4767]['isAdded']&&delete _0x70dfd2[_0x5e4767]['isAdded'],_0x70dfd2[_0x5e4767]['isAddSuggestion']&&delete _0x70dfd2[_0x5e4767]['isAddSuggestion'],_0x70dfd2[_0x5e4767]['isRemoveSuggestion']&&delete _0x70dfd2[_0x5e4767]['isRemoveSuggestion'],_0x70dfd2[_0x5e4767]['isRemoved']&&(_0x70dfd2[_0x5e4767]['isIncorrect']=!0x0));}return _0x70dfd2['filter'](_0x1a64ad=>!_0x1a64ad['isIncorrect']);}['_makeModelFromTape'](_0x5ea1d6,_0x52d4c9,_0x1e852c){const _0x3fb637=new _0xbdee0c(),_0x2bce41=[],_0x5eb30f=new Map(),_0x3798ab=this['editor']['model'],_0xb873ae=_0x3798ab['schema'],_0x4513c5=[_0x3fb637],_0xfb5684={},_0x22d80e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x49f461=null;const _0x4f4df6=[0x0];for(let _0x475d17=0x0;_0x475d17<_0x5ea1d6['length'];_0x475d17++)if('elementStart'===_0x5ea1d6[_0x475d17]['type']){_0x5ea1d6[_0x475d17]['previousPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6);const _0xd72d06=new _0x467cfa(_0x5ea1d6[_0x475d17]['item']['name'],_0x5ea1d6[_0x475d17]['item']['getAttributes']());_0x4513c5[0x0]['_appendChild'](_0xd72d06),_0x4f4df6['push'](0x0),_0x4513c5['unshift'](_0xd72d06),_0x5ea1d6[_0x475d17]['nextPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6);}else'elementEnd'===_0x5ea1d6[_0x475d17]['type']?(_0x4513c5['shift'](),_0x5ea1d6[_0x475d17]['previousPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6),_0x4f4df6['pop'](),_0x4f4df6[_0x4f4df6['length']-0x1]++,_0x5ea1d6[_0x475d17]['nextPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6)):(_0x5ea1d6[_0x475d17]['previousPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6),_0x49f461?_0x49f461['_data']+=_0x5ea1d6[_0x475d17]['item']['data']:_0x49f461=new _0x264685(_0x5ea1d6[_0x475d17]['item']['data'],_0x5ea1d6[_0x475d17]['item']['getAttributes']()),_0x5ea1d6[_0x475d17+0x1]&&'text'===_0x5ea1d6[_0x475d17+0x1]['type']&&_0x3a4e0a(_0x49f461,_0x5ea1d6[_0x475d17+0x1]['item'])||(_0x4513c5[0x0]['_appendChild'](_0x49f461),_0x49f461=null),_0x4f4df6[_0x4f4df6['length']-0x1]+=_0x5ea1d6[_0x475d17]['item']['offsetSize'],_0x5ea1d6[_0x475d17]['nextPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6));for(let _0x2774a4=0x0;_0x2774a4<_0x5ea1d6['length'];_0x2774a4++){const _0x7c8cf0=_0x5ea1d6[_0x2774a4]['previousPosition'],_0x3e661d=_0x5ea1d6[_0x2774a4]['nextPosition'];for(const _0x46cf23 of _0x5ea1d6[_0x2774a4]['markersStart'])_0x5eb30f['set'](_0x46cf23,{'start':_0x7c8cf0,'end':null});_0x1b78fe('isRemoveSuggestion',_0x2774a4,_0x7c8cf0,_0x3e661d),_0x1b78fe('isAddSuggestion',_0x2774a4,_0x7c8cf0,_0x3e661d),_0x1b78fe('isRemoved',_0x2774a4,_0x7c8cf0,_0x3e661d),_0x1b78fe('isAdded',_0x2774a4,_0x7c8cf0,_0x3e661d);for(const _0x4569b7 of _0x5ea1d6[_0x2774a4]['markersEnd']){const _0x565e0a=_0x5eb30f['get'](_0x4569b7);_0x565e0a?_0x565e0a['end']=_0x3e661d:_0x5eb30f['set'](_0x4569b7,{'start':_0x3e661d,'end':_0x3e661d});}}for(const [_0x28b0db,_0x5f032c]of _0x5eb30f){const _0x1ed12e=this['editor']['model']['createRange'](_0x5f032c['start'],_0x5f032c['end']);_0x3fb637['markers']['set'](_0x28b0db,_0x1ed12e);}return _0x2bce41['sort']((_0x13945b,_0x446128)=>{const _0x184761=_0x3fb637['markers']['get']('revision:'+_0x13945b['id']),_0x3c9f1e=_0x3fb637['markers']['get']('revision:'+_0x446128['id']);return _0x184761['start']['isBefore'](_0x3c9f1e['start'])?-0x1:_0x184761['start']['isAfter'](_0x3c9f1e['start'])?0x1:_0x184761['end']['isBefore'](_0x3c9f1e['end'])?-0x1:_0x184761['end']['isAfter'](_0x3c9f1e['end'])?0x1:'add'===_0x13945b['type']?-0x1:0x1;}),{'root':_0x3fb637,'changes':_0x2bce41};function _0x1b78fe(_0x5599f1,_0x5a3d84,_0x27c519,_0x2df7c5){const _0xe7d89f=!!_0x5ea1d6[_0x5a3d84][_0x5599f1],_0x1d6648=_0xe7d89f?_0x5ea1d6[_0x5a3d84][_0x5599f1]['userId']:null,_0x2edfbb=_0x5a3d84===_0x5ea1d6['length']-0x1,_0xa9154d=_0x22d80e[_0x5599f1][0x0],_0x4299a2=_0xb873ae['isObject'](_0x5ea1d6[_0x5a3d84]['item']);!_0xfb5684[_0x5599f1]&&_0xe7d89f?_0xfb5684[_0x5599f1]={'start':_0x27c519,'tapeItem':_0x5ea1d6[_0x5a3d84],'userId':_0x1d6648,'type':_0x5599f1}:_0xfb5684[_0x5599f1]&&!_0xe7d89f?(_0xfb5684[_0x5599f1]['end']=_0x27c519,_0x3418d5(_0xfb5684[_0x5599f1]),_0xfb5684[_0x5599f1]=null):_0xfb5684[_0x5599f1]&&_0xe7d89f&&_0xfb5684[_0x5599f1]['userId']!==_0x1d6648&&(_0xfb5684[_0x5599f1]['end']=_0x27c519,_0xa9154d&&_0xa9154d['userId']===_0xfb5684[_0x5599f1]['userId']||_0x3418d5(_0xfb5684[_0x5599f1]),_0xfb5684[_0x5599f1]={'start':_0x27c519,'tapeItem':_0x5ea1d6[_0x5a3d84],'userId':_0x1d6648,'type':_0x5599f1}),_0xfb5684[_0x5599f1]&&_0x4299a2&&('elementStart'!==_0x5ea1d6[_0x5a3d84]['type']||_0xa9154d&&_0xa9154d['userId']===_0x1d6648||_0x22d80e[_0x5599f1]['unshift']({'userId':_0x1d6648,'object':_0x5ea1d6[_0x5a3d84]['item'],'change':_0xfb5684[_0x5599f1]}),'elementEnd'===_0x5ea1d6[_0x5a3d84]['type']&&_0xa9154d&&_0xa9154d['object']===_0x5ea1d6[_0x5a3d84]['item']&&(_0x22d80e[_0x5599f1]['shift'](),_0xfb5684[_0x5599f1]=_0xa9154d['change'])),_0xfb5684[_0x5599f1]&&_0x2edfbb&&(_0xfb5684[_0x5599f1]['end']=_0x2df7c5,_0x3418d5(_0xfb5684[_0x5599f1]),_0xfb5684[_0x5599f1]=null);}function _0x3418d5({start:_0x122635,end:_0x26b4d4,tapeItem:_0x1ef2da,userId:_0x65657a,type:_0x72b92e}){const _0x194a97=_0x1ef2da['item'],_0x18e904=_0x3798ab['schema']['isBlock'](_0x194a97)&&!_0x3798ab['schema']['isLimit'](_0x194a97),_0x51ef18=_0x122635['nodeAfter']==_0x26b4d4['parent']&&_0x26b4d4['isAtStart'];if(_0x18e904&&_0x51ef18)return;const _0x572a48=_0x3798ab['createRange'](_0x122635,_0x26b4d4),_0x493b5b=_0x52d4c9['get'](_0x65657a),_0x5bdca4=new G({'author':_0x493b5b,'type':'isAdded'==_0x72b92e||'isAddSuggestion'==_0x72b92e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x72b92e||'isRemoveSuggestion'==_0x72b92e},'createdAt':new Date(),'rootName':_0x1e852c});_0x2bce41['push'](_0x5bdca4),_0x3fb637['markers']['set']('revision:'+_0x5bdca4['id'],_0x572a48);}function _0x3a4e0a(_0xcfd17b,_0x4dcd7b){const _0x4404cd=_0xcfd17b['getAttributes'](),_0x1cdb3b=_0x4dcd7b['getAttributes']();for(const _0x53849f of _0x4404cd){if(_0x53849f[0x1]!==_0x4dcd7b['getAttribute'](_0x53849f[0x0]))return!0x1;_0x1cdb3b['next']();}return _0x1cdb3b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x422e86=>{const _0x1051c7=_0x422e86['markerName']['split'](':')[0x1],_0x22f713=this['_getChangeFromId'](_0x1051c7);if(!_0x22f713)return null;const _0x1097a7='add'==_0x22f713['type']?'insertion':'deletion',_0x199c42=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1097a7];return _0x22f713['data']['isSuggestion']&&_0x199c42['push']('ck-suggestion-marker-'+_0x1097a7+'-new'),this['activeChange']==_0x22f713&&_0x199c42['push']('ck-suggestion-marker--active'),{'classes':_0x199c42,'attributes':{'data-change-id':_0x1051c7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28b910=>{_0x28b910['on']('element:pre',(_0x1ad7b7,_0x541951,_0x58741e)=>{const _0x45cbbb=_0x541951['viewItem']['getChild'](0x0);if(!_0x45cbbb||!_0x45cbbb['is']('element','code'))return;if(!_0x58741e['consumable']['consume'](_0x45cbbb,{'attributes':['vid_start','vid_end']}))return;const _0x41786a=_0x541951['modelRange']['start']['nodeAfter'];_0x58741e['writer']['setAttribute']('vid_start',_0x45cbbb['getAttribute']('vid_start'),_0x41786a),_0x58741e['writer']['setAttribute']('vid_end',_0x45cbbb['getAttribute']('vid_end'),_0x41786a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x566410=>{_0x566410['on']('element',(_0x394f53,_0x5b5a68,_0x5a43ec)=>{if(!_0x5a43ec['consumable']['consume'](_0x5b5a68['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5b5a68['modelRange']['isCollapsed'])return;const _0x1630e8=_0x5b5a68['modelRange']['start']['nodeAfter'];_0x1630e8['hasAttribute']('vid_start')||_0x1630e8['hasAttribute']('vid')||(_0x5a43ec['writer']['setAttribute']('vid_start',_0x5b5a68['viewItem']['getAttribute']('vid_start'),_0x1630e8),_0x5a43ec['writer']['setAttribute']('vid_end',_0x5b5a68['viewItem']['getAttribute']('vid_end'),_0x1630e8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5878db=>_0x5878db['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x53f272,[,_0x150e81])=>{['vid_start','vid_end','vid']['includes'](_0x150e81)&&(_0x53f272['return']=!0x0,_0x53f272['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x529d46=>{_0x529d46['on']('attribute:vid',(_0x49ae53,_0x400d5a,_0x468410)=>{if('\x20'!=_0x400d5a['item']['data']||_0x400d5a['item']['parent']['maxOffset']>0x1)return;if(!_0x468410['consumable']['consume'](_0x400d5a['item'],_0x49ae53['name']))return;const _0x5c242c=_0x468410['writer'],_0x14450f=_0x468410['mapper']['toViewRange'](_0x400d5a['range']);_0x5c242c['wrap'](_0x14450f,_0x5c242c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5c06bd){const _0xcaabaf=_0x5c06bd['plugins']['get']('RevisionViewer');return(_0x2d4e09,_0xb1fc12,_0x1a90de)=>{const _0x543464=_0xb1fc12['markerName']['split'](':')[0x1],_0x2f03ef=_0xcaabaf['_getChangeFromId'](_0x543464);if(!_0x2f03ef)return null;const _0x3a75be='add'==_0x2f03ef['type']?'split':'merge';if(!_0x1a90de['consumable']['test'](_0xb1fc12['markerRange'],_0x2d4e09['name']))return;const _0x5bf3d0=_0xb1fc12['markerRange']['getWalker'](),_0x2bbb90=_0xb1fc12['markerRange']['start'],_0x2215aa=_0x5c06bd['model']['schema'];let _0x2fb578=null,_0x22e065=null,_0x58831c=!0x1,_0x9570c8=!0x1;for(const _0x58631d of _0x5bf3d0){const _0x1f3aa9=_0x58631d['item'];_0x58831c=_0x58831c||_0x2215aa['isContent'](_0x1f3aa9);const _0x352809=_0x1a90de['mapper']['toViewElement'](_0x1f3aa9);if(_0x352809&&_0x352809['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58631d['type']&&(_0x2215aa['isBlock'](_0x1f3aa9)&&!_0x2215aa['isLimit'](_0x1f3aa9)&&(_0x1f3aa9['nextSibling']||_0x2bbb90['isAtEnd']?_0x2fb578&&_0x2fb578['parent']==_0x1f3aa9||(_0x2fb578=_0x1f3aa9,_0x38ddff(_0x58631d['previousPosition']),_0x9570c8=!0x0):_0x22e065=_0x22e065||_0x58631d['previousPosition']));}function _0x38ddff(_0x6a2b5b){const _0x1bc6f8=_0x1a90de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a75be}),_0x1037b5=_0x1a90de['mapper']['toViewPosition'](_0x6a2b5b);_0x2f03ef['data']['isSuggestion']&&_0x1a90de['writer']['addClass']('ck-suggestion-marker-'+_0x3a75be+'-new',_0x1bc6f8),_0xcaabaf['activeChange']==_0x2f03ef&&_0x1a90de['writer']['addClass']('ck-suggestion-marker--active',_0x1bc6f8),_0x1a90de['writer']['insert'](_0x1037b5,_0x1bc6f8),_0x1a90de['mapper']['bindElementToMarker'](_0x1bc6f8,_0xb1fc12['markerName']);}_0x58831c||_0x9570c8||!_0x22e065||_0x38ddff(_0x22e065);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x19a9f9,_0x531dcc,_0x3ff1e2)=>{const _0x1b3ffc=_0x3ff1e2['mapper']['markerNameToElements'](_0x531dcc['markerName']);if(_0x1b3ffc){for(const _0x5d5491 of _0x1b3ffc)(_0x5d5491['hasClass']('ck-suggestion-marker-split')||_0x5d5491['hasClass']('ck-suggestion-marker-merge'))&&(_0x3ff1e2['mapper']['unbindElementFromMarkerName'](_0x5d5491,_0x531dcc['markerName']),_0x3ff1e2['writer']['remove'](_0x5d5491));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x36bc99,_0x506642,_0x5aa601)=>{const _0x5b5d13=_0x506642['markerName']['split'](':')[0x1],_0x157b5f=this['_getChangeFromId'](_0x5b5d13);if(!_0x157b5f)return null;const _0x18999b='add'==_0x157b5f['type']?'split':'merge';if(_0x5aa601['consumable']['test'](_0x506642['markerRange'],_0x36bc99['name']))for(const _0x18865b of _0x506642['markerRange']['getItems']()){if(!_0x18865b['is']('element','softBreak'))continue;const _0x4275d0=_0x5aa601['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18999b}),_0x13e13a=_0x5aa601['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x18865b));_0x157b5f['data']['isSuggestion']&&_0x5aa601['writer']['addClass']('ck-suggestion-marker-'+_0x18999b+'-new',_0x4275d0),this['activeChange']==_0x157b5f&&_0x5aa601['writer']['addClass']('ck-suggestion-marker--active',_0x4275d0),_0x5aa601['writer']['insert'](_0x13e13a,_0x4275d0),_0x5aa601['mapper']['bindElementToMarker'](_0x4275d0,_0x506642['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x12b9dc=>{for(const _0x56372f of this['editor']['model']['document']['getRootNames']()){const _0x4e399a=this['editor']['model']['document']['getRoot'](_0x56372f),_0x1473bb=this['editor']['editing']['view']['document']['getRoot'](_0x56372f);if(_0x1473bb){const _0x19f61b=_0x4e399a['getAttribute']('revisionHistoryAttachChange');if(_0x12b9dc['removeAttribute']('data-change-id',_0x1473bb),_0x12b9dc['removeClass']('ck-revision-history-root-add',_0x1473bb),_0x12b9dc['removeClass']('ck-revision-history-root-remove',_0x1473bb),_0x12b9dc['removeClass']('ck-revision-history-root--active',_0x1473bb),_0x19f61b){const _0x3e06fa=this['_getChangeFromId'](_0x19f61b);if(!_0x3e06fa)return null;_0x12b9dc['setAttribute']('data-change-id',_0x19f61b,_0x1473bb),_0x12b9dc['addClass']('ck-revision-history-root-'+_0x3e06fa['type'],_0x1473bb),this['activeChange']==_0x3e06fa&&_0x12b9dc['addClass']('ck-revision-history-root--active',_0x1473bb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xb9c371=>'revision-comment:'+_0xb9c371,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5e00c9=>'revision-suggestion:'+_0x5e00c9,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3873ca=>({'name':'suggestion:'+_0x3873ca,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x6fb370=>{const _0x1f5a01=_0x6fb370['markerName']['split'](':')[0x1];return'insertion'!=_0x1f5a01&&'deletion'!=_0x1f5a01?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1f5a01]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3a023d,_0x22581e,_0x3109b0)=>{const _0x45ebc0=_0x3109b0['mapper']['markerNameToElements'](_0x22581e['markerName']);if(_0x45ebc0){for(const _0x5d1663 of _0x45ebc0)_0x5d1663['is']('uiElement')&&(_0x3109b0['mapper']['unbindElementFromMarkerName'](_0x5d1663,_0x22581e['markerName']),_0x3109b0['writer']['remove'](_0x5d1663));}},{'priority':'high'});}['_getChangeFromId'](_0x20a8af){return this['_changeIdToChange']['get'](_0x20a8af);}['_getViewForChange'](_0x20ab06){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x20ab06),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x57d2d4,_0x2bab9e,_0x55471a,_0x4e3863)=>{_0x4e3863&&this['_balloon']['remove'](_0x4e3863),_0x55471a&&(this['_balloon']['add']({'view':_0x55471a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x37e4c4=this['editor']['editing'],_0x30b582=this['_getChangeFromId'](_0x55471a['changeId']);let _0x1604bb;if(_0x30b582['data']['isOnRoot']){const _0x419f25=_0x37e4c4['view']['getDomRoot'](_0x30b582['rootName']);_0x1604bb=Array['from'](_0x419f25['getClientRects']());}else{const _0xd457e5=this['editor']['model']['markers']['get']('revision:'+_0x55471a['changeId']);_0x1604bb=Array['from'](_0x37e4c4['mapper']['markerNameToElements'](_0xd457e5['name']))['map'](_0x44a75d=>_0x37e4c4['view']['domConverter']['mapViewToDom'](_0x44a75d))['map'](_0x4c94b9=>Array['from'](_0x4c94b9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1604bb[0x0];return _0x1604bb['find'](_0x311403=>_0x311403['top']-0x3<=this['_activeViewTarget']['y']&&_0x311403['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x311403['left']-0x3<=this['_activeViewTarget']['x']&&_0x311403['right']+0x3>=this['_activeViewTarget']['x'])||_0x1604bb[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4e557f,_0x34f07a,_0x10c743,_0x1af2a7)=>{this['activeView']=_0x10c743?this['_getViewForChange'](_0x10c743):null,this['editor']['model']['change'](()=>{const _0x21b592=this['editor']['editing'];_0x1af2a7&&(_0x1af2a7['data']['isOnRoot']?_0x21b592['view']['change'](_0x23c4b0=>{_0x23c4b0['removeClass']('ck-revision-history-root--active',_0x21b592['view']['document']['getRoot'](_0x1af2a7['rootName']));}):_0x21b592['reconvertMarker']('revision:'+_0x1af2a7['id'])),_0x10c743&&(_0x10c743['data']['isOnRoot']?_0x21b592['view']['change'](_0xa11b6a=>{_0xa11b6a['addClass']('ck-revision-history-root--active',_0x21b592['view']['document']['getRoot'](_0x10c743['rootName']));}):_0x21b592['reconvertMarker']('revision:'+_0x10c743['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x32accf,_0x5f3fc6)=>{if(this['activeChange'])return;const _0x5ab964=this['_findChangeIdFromDomTarget'](_0x5f3fc6['target']),_0x5f5490=this['_changeIdToChange']['get'](_0x5ab964);_0x5f5490?(this['_activeViewTarget']={'x':_0x5f3fc6['domEvent']['x'],'y':_0x5f3fc6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5f5490)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x110472,_0x20377b)=>{const _0x15ef0b=this['_findChangeIdFromDomTarget'](_0x20377b['target']),_0x61044f=this['_changeIdToChange']['get'](_0x15ef0b);_0x61044f?(this['_activeViewTarget']={'x':_0x20377b['domEvent']['x'],'y':_0x20377b['domEvent']['y']},_0x61044f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x61044f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x27607b){do{const _0x543cae=_0x27607b['getAttribute']('data-change-id');if(_0x543cae)return _0x543cae;_0x27607b=_0x27607b['parent'];}while(_0x27607b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xec5c17=>{for(const _0x367802 of this['editor']['model']['markers'])_0xec5c17['removeMarker'](_0x367802);});}}function Q(_0x2ef051,_0x1c974b){return(_0x502743,_0x5dcf58,_0x28b27b)=>{if(!_0x28b27b['consumable']['test'](_0x5dcf58['markerRange'],_0x502743['name']))return;const _0x12cfab=_0x5dcf58['markerRange']['getWalker'](),_0x3ef369=_0x5dcf58['markerRange']['start'],_0x2e614b=_0x2ef051['model']['schema'];let _0xa4fba8=null,_0x3c47c4=null,_0xed70b=!0x1,_0x3b3c1f=!0x1;for(const _0x3c72e0 of _0x12cfab){const _0x22b4a8=_0x3c72e0['item'];_0xed70b=_0xed70b||_0x2e614b['isContent'](_0x22b4a8);const _0x52d158=_0x28b27b['mapper']['toViewElement'](_0x22b4a8);if(_0x52d158&&_0x52d158['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c72e0['type']&&(_0x2e614b['isBlock'](_0x22b4a8)&&!_0x2e614b['isLimit'](_0x22b4a8)&&(_0x22b4a8['nextSibling']||_0x3ef369['isAtEnd']?_0xa4fba8&&_0xa4fba8['parent']==_0x22b4a8||(_0xa4fba8=_0x22b4a8,_0x39898c(_0x3c72e0['previousPosition']),_0x3b3c1f=!0x0):_0x3c47c4=_0x3c47c4||_0x3c72e0['previousPosition']));}function _0x39898c(_0x152b4c){const _0x3e7970=_0x28b27b['mapper']['toViewPosition'](_0x152b4c),_0x2bb70c=_0x28b27b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1c974b});_0x28b27b['writer']['insert'](_0x3e7970,_0x2bb70c),_0x28b27b['mapper']['bindElementToMarker'](_0x2bb70c,_0x5dcf58['markerName']);}_0xed70b||_0x3b3c1f||!_0x3c47c4||_0x39898c(_0x3c47c4);};}class nt extends _0x5de004{constructor(_0x376bef){super(_0x376bef);const _0x2bb832=_0x376bef['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x2bb832,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2bb832,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x13f39e=this['editor'],_0x10e8b2=_0x13f39e['plugins']['get'](u),_0x4f0054=_0x10e8b2['isReady']?_0x10e8b2['diff']['newRevisionId']:null;_0x13f39e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4f0054);}['refresh'](){const {isReady:_0x30befe,isEnabled:_0x328985,repository:_0x5a4a07,diff:_0x490211}=this['editor']['plugins']['get'](u),_0x186376=_0x490211&&_0x5a4a07['getLaterVisibleRevision'](_0x490211['newRevisionId']);this['isEnabled']=_0x30befe&&_0x328985&&Boolean(_0x186376);}}class rt extends _0x5de004{['_step'];constructor(_0x247fa6,{direction:_0x3f8b0a}){super(_0x247fa6);const _0x473dfe=_0x247fa6['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x3f8b0a?0x1:-0x1,this['listenTo'](_0x473dfe,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x473dfe,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x473dfe,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1ddc52=this['editor'],_0x29ee6d=_0x1ddc52['plugins']['get'](u),{isNavigationMode:_0x23f0ec,currentChangeNumber:_0x2e5e48}=_0x29ee6d;let _0x271b7b;if(_0x29ee6d['activeChange']=_0x23f0ec?_0x29ee6d['diff']['changes']['get'](_0x2e5e48+this['_step']):_0x29ee6d['diff']['changes']['first'],_0x29ee6d['activeChange']['data']['isOnRoot'])_0x271b7b=_0x1ddc52['editing']['view']['getDomRoot'](_0x29ee6d['activeChange']['rootName']);else{const _0x1fd76a=_0x1ddc52['model']['markers']['get']('revision:'+_0x29ee6d['activeChange']['id']);_0x271b7b=_0x52f960(_0x1ddc52['editing'],_0x1fd76a);}_0x5e079d({'target':_0x271b7b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x17d498,currentChangeNumber:_0x369ab,numberOfChanges:_0x2bfd93,isReady:_0x3825fc,isEnabled:_0x2b0bdd}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x2b0bdd&&_0x3825fc&&_0x2bfd93)&&(!_0x17d498||(0x1===this['_step']?_0x369ab<_0x2bfd93-0x1:_0x369ab>0x0));}}class fi extends _0x2a78ea{constructor(_0x4f4af7){super(_0x4f4af7);const _0x2310d1=this['bindTemplate'],_0xc7251c=new _0x4c4445(_0x4f4af7),_0x23ecd6=new _0x4c4445(_0x4f4af7);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',(_0x49cb25,_0xff1673)=>_0x49cb25&&_0xff1673>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x214b3d,_0x4ea9a8,_0x28c56d,_0x26758b)=>{if(!_0x214b3d)return m(_0x4f4af7,'Loading...');if(!_0x28c56d)return m(_0x4f4af7,'No\x20changes');const _0x3f1793=m(_0x4f4af7,'NUMBER_OF_CHANGES',_0x28c56d);return _0x26758b?m(_0x4f4af7,'X_OF_Y_CHANGES',[_0x4ea9a8+0x1,_0x28c56d]):_0x3f1793;}),_0xc7251c['set']({'label':m(_0x4f4af7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x56df88}),_0x23ecd6['set']({'label':m(_0x4f4af7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5c12f5}),_0xc7251c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x23ecd6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xc7251c['on']('execute',()=>this['fire']('execute','backward')),_0x23ecd6['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',_0x2310d1['if']('_isStatusLabelVisible','ck-hidden',_0x180197=>!_0x180197)]},'children':[{'text':_0x2310d1['to']('isNavigationMode',_0x375dfb=>_0x375dfb?m(_0x4f4af7,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4f4af7,'Total')+':\x20')}]},{'text':_0x2310d1['to']('_statusText')}]},new _0x5d1747(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xc7251c,_0x23ecd6]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x437c77{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x305b08=this['editor']['editing']['view'];_0x305b08['change'](_0x5d1290=>{for(const _0x571db4 of _0x305b08['document']['roots'])_0x5d1290['addClass'](ge,_0x571db4);});}['hide'](){const _0x5d1117=this['editor']['editing']['view'];_0x5d1117['change'](_0x477320=>{for(const _0x469aa5 of _0x5d1117['document']['roots'])_0x477320['removeClass'](ge,_0x469aa5);});}}class v extends _0x437c77{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,bi];}['init'](){const _0x2ab7ad=this['editor'],_0x2f0e38=_0x2ab7ad['plugins']['get'](u),_0x21f1f3=_0x2ab7ad['plugins']['get'](bi);_0x2ab7ad['ui']['componentFactory']['add']('exitToEditing',_0x17c705=>{const _0xeeb543=new _0x4c4445(_0x17c705);return _0xeeb543['set']({'label':m(_0x17c705,'Back\x20to\x20editing'),'icon':_0x550877,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xeeb543,'execute',()=>{_0x2ab7ad['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xeeb543;}),_0x2ab7ad['ui']['componentFactory']['add']('restoreRevision',_0x367537=>{const _0x1667b4=new _0x4c4445(_0x367537);return _0x1667b4['set']({'label':m(_0x367537,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1667b4['bind']('isEnabled')['to'](_0x2ab7ad['commands']['get']('restoreRevision')),this['listenTo'](_0x1667b4,'execute',()=>_0x2ab7ad['execute']('restoreRevision')),_0x1667b4;}),_0x2ab7ad['ui']['componentFactory']['add']('changesNavigation',_0x22c854=>{const _0xd06eff=new fi(_0x22c854),_0x32f27c=_0x2ab7ad['commands']['get']('showPreviousChange'),_0xbcca17=_0x2ab7ad['commands']['get']('showNextChange');return _0xd06eff['bind']('isBackwardNavigationEnabled')['to'](_0x32f27c,'isEnabled'),_0xd06eff['bind']('isForwardNavigationEnabled')['to'](_0xbcca17,'isEnabled'),_0xd06eff['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2f0e38),this['listenTo'](_0xd06eff,'execute',(_0x3fe282,_0x46e134)=>{_0x2ab7ad['execute']('forward'===_0x46e134?'showNextChange':'showPreviousChange');}),_0xd06eff;}),_0x21f1f3['show'](),_0x2f0e38['on']('change:isReady',(_0x26e7b7,_0x4620bc,_0x347019)=>{_0x347019?_0x21f1f3['hide']():_0x21f1f3['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5eb65e,_0x553ea2){super(_0x5eb65e,_0x553ea2);const _0x3596df=this['bindTemplate'];this['set']({'label':m(_0x5eb65e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5eb65e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3596df['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x44ab20=this['fieldView']['element'];this['_tooltipString']=_0x44ab20['scrollWidth']>_0x44ab20['clientWidth']&&_0x44ab20['value']||'';}}class ni extends _0x2a78ea{constructor(_0x4c7214,_0x23ce09,_0x5f25e5){super(_0x4c7214);const _0x30d988=new _0x42ea15();_0x30d988['set']({'content':_0x2f748d,'viewBox':'0\x200\x2011\x2010'});const _0x591145=['ck','ck-revision-history-sidebar__revision-author'];_0x5f25e5&&_0x591145['push']('ck-revision-history-sidebar__revision-author_creator');const _0x224210=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4c7214,_0x5f25e5?'Revision\x20creator':'Revision\x20author')},'children':[_0x30d988,_0x23ce09['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x591145},'children':_0x224210});}}function ai(_0x2b1f16,_0x51e6cd){const _0x184f33=_0x2b1f16['bindTemplate'],_0x168d33=_0x2b1f16['locale'],_0x574ee9=_0x2676c3(_0x168d33);_0x574ee9['panelPosition']='sw';const _0x473fbb=function(_0x1f1c89,_0x431851){const _0x324132=function(_0x3aeac4,_0x897fe1){const _0x4de48e=_0x3aeac4['locale'],_0x403985={'Compare\x20against\x20selected':m(_0x4de48e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4de48e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4de48e,'Restore\x20this\x20revision')};return _0x897fe1['map'](_0x344d8a=>{const _0x2a7dfe=_0x403985[_0x344d8a['name']];return _0x2a7dfe&&_0x2a7dfe!==_0x344d8a['name']&&(_0x344d8a['name']=_0x2a7dfe),_0x344d8a;});}(_0x1f1c89,_0x431851),_0xccff19=new _0x292637();for(const _0xb65d12 of _0x324132){const _0x3a2fc9={'type':'button','model':new to({'label':_0xb65d12['name'],'class':_0xb65d12['class'],'withText':!0x0,'role':'menuitem','_action':_0xb65d12['action']})};_0x3a2fc9['model']['bind']('isEnabled')['to'](_0x1f1c89,'isActionsDropdownOpen',_0x2b8683=>'function'!=typeof _0xb65d12['isEnabled']||(!_0x2b8683||_0xb65d12['isEnabled'](_0x1f1c89))),_0xccff19['add'](_0x3a2fc9);}return _0xccff19;}(_0x2b1f16,_0x51e6cd);return _0x2b1f16['bind']('isActionsDropdownOpen')['to'](_0x574ee9,'isOpen'),_0x574ee9['buttonView']['set']({'label':m(_0x168d33,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x59f83a}),_0x574ee9['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x184f33['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x184f33['to'](_0x516cab=>_0x516cab['stopPropagation']())}}),_0x574ee9['on']('execute',_0x484da7=>{_0x2b1f16['isReady']&&'function'==typeof _0x484da7['source']['_action']&&_0x484da7['source']['_action'](_0x2b1f16);}),_0x4e23b7(_0x574ee9,_0x473fbb,{'role':'menu'}),_0x574ee9['listenTo'](_0x2b1f16,'change:isActionsDropdownOpen',(_0x11f586,_0xe63ed5,_0x30a1e2)=>{if(_0x30a1e2)for(const _0x517a8c of _0x574ee9['listView']['items']){const _0x342d5f=_0x517a8c['children']['first'],_0x2c4329=_0x51e6cd['find'](_0x1e4e77=>_0x1e4e77['action']===_0x342d5f['_action'])['isVisible'];_0x517a8c['isVisible']=void 0x0===_0x2c4329||_0x2c4329(_0x2b1f16);}}),_0x574ee9;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x138897(_0x2a78ea){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2a0b68,_0x434a60,_0xe9339f,_0x5cec7c){super(_0x2a0b68);const _0x5d79c7=this['bindTemplate'],_0x4cadb9=function(_0x3cf6d3,_0x342251){const _0x2f9b04=Array['from'](_0x342251['authors'])['filter'](_0x133997=>_0x133997!=_0x342251['creator']);return _0x342251['creator']&&_0x2f9b04['unshift'](_0x342251['creator']),_0x2f9b04['map'](_0xe7edb0=>new ni(_0x3cf6d3,_0xe7edb0,_0xe7edb0==_0x342251['creator']));}(_0x2a0b68,_0x434a60);this['id']=_0x434a60['id'],this['_revision']=_0x434a60,this['_requireRevisionName']=_0x5cec7c,this['bind']('name','createdAt')['to'](_0x434a60),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x59c2d2=>{return _0x1e0913=_0x2a0b68['uiLanguage'],(_0x40063d=_0x59c2d2)['toLocaleDateString'](_0x1e0913,{'month':'long','day':'numeric'})+',\x20'+_0x40063d['toLocaleTimeString'](_0x1e0913,{'hour':'numeric','minute':'numeric'});var _0x1e0913,_0x40063d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x2a0b68,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1ba89f=>_0x1ba89f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2d812f,_0x4aee30)=>_0x2d812f&&_0x4aee30),this['revisionActionsView']=_0xe9339f&&_0xe9339f['length']?ai(this,_0xe9339f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d79c7['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d79c7['if']('isEnabled','ck-disabled',_0x2d8c2d=>!_0x2d8c2d),_0x5d79c7['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d79c7['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d79c7['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':_0x5d79c7['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':_0x4cadb9}]},this['revisionActionsView']],'on':{'click':_0x5d79c7['to'](_0x5cf21e=>{_0x5cf21e['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x502d29=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x502d29,'change',()=>{this['_requireRevisionName']&&!_0x502d29['value']||this['fire']('setName',{'id':this['id'],'name':_0x502d29['value']}),_0x502d29['value']||(_0x502d29['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x5532e6,_0x158aa7){const _0x463f48=_0x43cb4d['fromJSDate'](_0x5532e6)['setLocale'](_0x158aa7),_0x427d9f=_0x43cb4d['local'](),_0x50db42=_0x427d9f['minus']({'days':0x1})['startOf']('day');let _0x209229,_0x24bd65;return _0x463f48['hasSame'](_0x427d9f,'day')?(_0x209229=_0x463f48['startOf']('day')['toJSDate'](),_0x24bd65=_0x463f48['toRelativeCalendar']()):_0x463f48['hasSame'](_0x50db42,'day')?(_0x209229=_0x50db42['toJSDate'](),_0x24bd65=_0x463f48['toRelativeCalendar']()):_0x463f48['hasSame'](_0x427d9f,'week')?(_0x209229=_0x463f48['startOf']('week')['toJSDate'](),_0x24bd65=_0x463f48['weekdayLong']||''):_0x463f48['hasSame'](_0x427d9f,'year')?(_0x209229=_0x463f48['startOf']('month')['toJSDate'](),_0x24bd65=_0x463f48['monthLong']||''):(_0x209229=_0x463f48['startOf']('year')['toJSDate'](),_0x24bd65=String(_0x463f48['year'])),{'startDate':_0x209229,'localizedPeriodName':_0x24bd65};}class ji extends _0x2a78ea{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x448a14,_0xc71a11,_0x1d74f5,_0x3b3062){super(_0x448a14);const _0x61af0c=ki(_0xc71a11,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xc71a11,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1d74f5,this['_requireRevisionName']=_0x3b3062,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':_0x61af0c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x32ea05){const _0x58856f=new _i(this['locale'],_0x32ea05,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x58856f);}['removeRevision'](_0x4c8c1f){const _0x4db215=this['revisionViews']['find'](_0x468cf8=>_0x468cf8['id']===_0x4c8c1f['id']);this['revisionViews']['remove'](_0x4db215);}}class Ni extends _0x2a78ea{constructor(_0x554259){super(_0x554259);const _0x411ff7=new _0x42ea15();_0x411ff7['content']=_0x3dc43c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x411ff7,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x554259,'Revision\x20history')]}]});}}class Ri extends _0x2a78ea{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x50af7c,_0x5caaf2,_0x46b98d,_0x452787){super(_0x50af7c);const _0xc559d4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5caaf2,this['_revisionActions']=_0x46b98d,this['_requireRevisionName']=_0x452787,this['on']('select',(_0x177180,_0x1ef203)=>{this['fire']('revisionSelected',_0x1ef203);}),this['on']('setName',(_0x32276b,_0x4c3ecc)=>{this['fire']('revisionSetName',_0x4c3ecc);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x50af7c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xc559d4['if']('isEnabled','ck-disabled',_0x44cc8a=>!_0x44cc8a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x259bb9 of this['_revisions'])this['_addRevision'](_0x259bb9);this['_revisions']['on']('add',(_0x3bb4be,_0x3b30a2)=>{this['_addRevision'](_0x3b30a2);}),this['_revisions']['on']('remove',(_0x946e97,_0xe2a145)=>{this['_removeRevision'](_0xe2a145);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x15853b=>_0x15853b['revisionViews']['map'](_0x421ac7=>_0x421ac7))['flat']();}['selectRevision'](_0x447a2e){for(const _0x14b803 of this['revisionViews'])_0x447a2e&&_0x447a2e['id']===_0x14b803['id']?_0x14b803['select']():_0x14b803['deselect']();}['highlightRevisions'](_0xd1d079){for(const _0x1155aa of this['revisionViews'])_0xd1d079['some'](({id:_0x3a739e})=>_0x3a739e===_0x1155aa['id'])?_0x1155aa['highlight']():_0x1155aa['unhighlight']();}['_addRevision'](_0x3f0f7b){const _0x306c32=ki(_0x3f0f7b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5e6f9a=this['timePeriodViews']['get'](0x0);_0x5e6f9a&&_0x5e6f9a['startDate']['getTime']()===_0x306c32['getTime']()||(_0x5e6f9a=new ji(this['locale'],_0x306c32,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5e6f9a)),_0x5e6f9a['addRevision'](_0x3f0f7b);}['_removeRevision'](_0x384f3a){const _0x48214c=ki(_0x384f3a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x48214c)['removeRevision'](_0x384f3a);}['_getTimePeriodViewByStartDate'](_0x4a3659){return this['timePeriodViews']['find'](_0x43a5f6=>_0x43a5f6['startDate']['getTime']()===_0x4a3659['getTime']());}}class d extends _0x437c77{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(
|
|
30
|
-
_0x17b6f3(_0x36b6af){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3ca6dc,_0x254363){super(_0x254363),this['sourceElement']=_0x3ca6dc,this['model']['document']['createRoot']();const _0x3196ff=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3196ff);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2828f0,_0x2ddc96){const _0x4f0cbb=new this(_0x2828f0,_0x2ddc96);return await _0x4f0cbb['initPlugins'](),await _0x4f0cbb['ui']['init'](_0x2828f0),await _0x4f0cbb['data']['init'](_0x4f0cbb['config']['get']('initialData')||''),_0x4f0cbb['fire']('ready'),_0x4f0cbb;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x30489c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e17bb){function _0x18b3f7(_0xab712b){return _0xab712b['map'](_0x69a397=>String['fromCharCode'](_0x69a397))['join']('');}super(_0x2e17bb),this['result']='end',_0x2e17bb[_0x18b3f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18b3f7([0x76,0x69,0x65,0x77])][_0x18b3f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18b3f7([0x61,0x75,0x74,0x6f]),_0x2e17bb[_0x18b3f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x18b3f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18b3f7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x18b3f7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x18b3f7([0x6f,0x6b])});}}class ct extends _0x30489c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x4ef1bf){if(super(_0x4ef1bf),!this['editor']['config']['get']('revisionHistory'))throw new _0x1dc26f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2a89b2=>this['_showRevisionViewer']({..._0x2a89b2,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5e7cb9=>this['_closeRevisionViewer'](_0x5e7cb9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2bc5b8=>this['_restoreRevision'](_0x2bc5b8)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x13730f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x13730f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1f1852){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1f1852);}['getRevision'](_0x597f6b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x597f6b);}['getRevisions'](_0x15295d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x15295d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x20f5af=this['editor'],_0x1fa220=_0x5f47aa(_0x20f5af,p),_0x31addd=_0x20f5af['plugins']['get']('RevisionTracker'),_0x598046=_0x20f5af['plugins']['get']('Users')['users'];return _0x1fa220['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1fa220['lazyRoots'],(_0x1fa220['plugins']['push'](ht,u,v,class extends _0x30489c{static get['requires'](){return[u,'Users'];}['init'](){const _0x5ef61d=this['editor']['plugins']['get']('Users');for(const _0x10f1df of _0x598046)_0x10f1df['isAnonymous']||_0x5ef61d['getUser'](_0x10f1df['id'])||_0x5ef61d['addUser'](_0x10f1df);const _0xf061aa=_0x31addd['repository']['getRevisions']();let _0x5ecc0a=null;const _0x57c49c=this['editor']['plugins']['get']('RevisionViewer');_0x57c49c['adapter']=_0x31addd['adapter'],_0x57c49c['bind']('isEnabled')['to'](_0x31addd),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x20f5af,'isReadOnly',_0xfd3fc6=>!_0xfd3fc6);for(const _0x5f4f55 of _0xf061aa){const _0x224980=null===_0x5f4f55['creator'];if(_0x224980&&_0x5f4f55['toVersion']===_0x5f4f55['fromVersion'])continue;const _0x490fb9=_0x5f4f55['toJSON']();_0x57c49c['addRevisionData'](_0x490fb9,(_0x60d19d,_0x5a4e2a,_0x14afac)=>{if(_0x224980){if(_0x5ecc0a)_0x5ecc0a['_update'](_0x60d19d,_0x5a4e2a);else{if(!_0x5a4e2a){const _0x38d11b=_0x14afac['toJSON']();_0x38d11b['id']=_0x506dfc(),_0x31addd['saveRevision'](_0x38d11b,_0x14afac['toVersion'])['then'](_0xf60afe=>{_0x5ecc0a=_0xf60afe;});}}}else _0x5f4f55['_update'](_0x60d19d,_0x5a4e2a);});}}},d),_0x1fa220);}['_enhanceShowRevisionViewerCallback'](){const _0x2971b1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x40c0d8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x24048e=this['editor']['plugins']['get']('Autosave');await _0x24048e['save']();}else await _0x40c0d8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x592e9c=this['editor']['plugins']['get']('Dialog');_0x592e9c['isOpen']&&_0x592e9c['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x51624a=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2e8104 of _0x51624a)_0x2e8104['class']=_0x2e8104['class']?_0x2e8104['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x1afa43=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1afa43&&_0x1afa43['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x26ec6a=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x26ec6a&&_0x26ec6a['setAttribute']('tabindex','-1');}}const _0x22e665=this['_getRevisionViewerEditorConfig']();return _0x2971b1(_0x22e665)['then'](_0x54018f=>{return(this['_viewerEditor']=_0x54018f,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'),_0x54018f);})['catch'](_0x44a22e=>(console['error'](_0x44a22e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3eaaf6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x5a56ff=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x167ca7 of _0x5a56ff)_0x167ca7['class']='ck-tab-panel_disabled'===_0x167ca7['class']?'':_0x167ca7['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x524b64=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x524b64&&_0x524b64['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x178375=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x178375&&_0x178375['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3eaaf6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3f7178=this['editor']['plugins']['get']('Annotations');_0x3f7178['refreshVisibility'](),_0x3f7178['refreshPositioning']();}});});}['_showRevisionViewer'](_0xd6266d){const _0x1cbd3c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1d03f0=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xf89ccc=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0xf89ccc,_0xd6266d)['then'](_0x15da5c=>(_0x1d03f0['style']['display']='block',_0x1cbd3c['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x15da5c));}['_closeRevisionViewer'](_0x348d64){const _0x4bdd8b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4bdd8b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x348d64['destroy']();}async['_restoreRevision'](_0xc848c1){const _0x27120c=this['editor'],_0xacd13c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5f0e24=_0x27120c['plugins']['get']('RevisionTracker'),_0x53c8a9=_0x27120c['plugins']['get']('RevisionHistoryUtils'),_0x3b1561=_0xacd13c['repository']['getRevision'](_0xc848c1);let _0x385bfc,_0x4f8d2f,_0x51e269;try{await _0x53c8a9['loadRevisionData'](_0x3b1561,this['adapter']),_0x385bfc=_0x53c8a9['getRevisionDocumentData'](_0x3b1561),_0x4f8d2f=_0x53c8a9['getRevisionRootsAttributes'](_0x3b1561);}catch(_0x3fb6be){return void console['error'](_0x3fb6be);}_0x27120c['model']['change'](_0x4ba7e=>{for(const _0x5150de of Array['from'](_0x27120c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4ba7e['removeMarker'](_0x5150de);}),_0xacd13c['isReady']=!0x1,_0x27120c['model']['enqueueChange'](_0x285714=>{_0x285714['setSelection'](null),_0x285714['removeSelectionAttribute'](_0x27120c['model']['document']['selection']['getAttributeKeys']());const _0x3ca21f=Object['keys'](_0x385bfc);for(const _0x5bb8b6 of _0x27120c['model']['document']['roots'])'$graveyard'!=_0x5bb8b6['rootName']&&_0x5bb8b6['isAttached']()&&!_0x3ca21f['includes'](_0x5bb8b6['rootName'])&&_0x285714['detachRoot'](_0x5bb8b6);for(const _0x4273f2 of _0x3ca21f){let _0x3eba55=_0x27120c['model']['document']['getRoot'](_0x4273f2);_0x3eba55&&_0x3eba55['isAttached']()||(_0x3eba55=_0x285714['addRoot'](_0x4273f2));const _0x5e4514=_0x4f8d2f[_0x4273f2],_0x16715b=Object['keys'](_0x5e4514),_0x71c344=_0x385bfc[_0x4273f2];for(const _0x28621d of _0x3eba55['getAttributeKeys']())_0x16715b['includes'](_0x28621d)||_0x285714['removeAttribute'](_0x28621d,_0x3eba55);for(const _0x28db53 of _0x16715b)_0x285714['setAttribute'](_0x28db53,_0x4f8d2f[_0x4273f2][_0x28db53],_0x3eba55);_0x285714['remove'](_0x285714['createRangeIn'](_0x3eba55)),_0x285714['insert'](_0x27120c['data']['parse'](_0x71c344,_0x3eba55),_0x3eba55,0x0);}});const _0x1109d3=m(_0x27120c['locale'],'Restored');if(_0x3b1561['name'])_0x51e269=-0x1==_0x3b1561['name']['indexOf'](_0x1109d3)?_0x1109d3+':\x20'+_0x3b1561['name']:_0x3b1561['name'];else _0x51e269=_0x1109d3+':\x20'+(_0x3b1561['createdAt']['toLocaleDateString'](_0x27120c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3b1561['createdAt']['toLocaleTimeString'](_0x27120c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5f0e24['saveRevision']({'name':_0x51e269}),_0xacd13c['isReady']=!0x0,_0x27120c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0xb60078){super(_0xb60078),this['_revisionViewer']=_0xb60078['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x13fd46=this['_revisionsRepository']['_revisions'],_0x57d470=this['_createRevisionActions'](),_0x139657=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x13fd46,_0x57d470,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',(_0x348318,_0x1e2761)=>{_0x1e2761['revisionViews']['on']('add',(_0x3c2f78,_0x43a6c5)=>{_0x43a6c5['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)),_0x139657['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4a62d0=this['_revisionsRepository']['getRevision'](0x0);if(_0x4a62d0){const _0x388d86=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4a62d0['id']);this['_revisionViewer']['compare'](_0x4a62d0,_0x388d86);}}['_handleRevisionSelected'](_0x3c4d09,_0x4d9918){const _0x2eb019=this['_revisionsRepository']['getRevision'](_0x4d9918['id']),_0x19d9c8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2eb019['id']);this['_revisionViewer']['compare'](_0x2eb019,_0x19d9c8);}['_handleRevisionSetName'](_0x16e416,_0x3c134f){this['_revisionsRepository']['getRevision'](_0x3c134f['id'])['setName'](_0x3c134f['name']);}['_handleDiffChange'](_0x42c5a0,_0x337b01,_0x582094){const _0x4086ff=this['_revisionsRepository']['getRevisionsInDiff'](_0x582094);_0x4086ff['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4086ff),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4086ff[0x0]));}['_createRevisionActions'](){const _0x5556ec=this['editor'],_0xed3227=d['availableRevisionActions'],_0x5ba298=_0x5556ec['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5ba298['length'])return _0x5ba298['map'](_0x5a9011=>{const _0x37e176='string'==typeof _0x5a9011?Object['assign']({},_0xed3227[_0x5a9011]):_0x5a9011;return _0x37e176['action']=_0x37e176['action']['bind'](this,_0x5556ec),_0x37e176['isVisible']&&(_0x37e176['isVisible']=_0x37e176['isVisible']['bind'](this,_0x5556ec)),_0x37e176;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xe8fd6c},_0x443516)=>{const _0x3dc998=_0xe8fd6c['get'](u),_0x43a698=_0x3dc998['repository'];let _0x3d092e=_0x3dc998['diff']['newRevisionId'],_0x305dad=_0x443516['id'];_0x43a698['getIndex'](_0x3d092e)>_0x43a698['getIndex'](_0x305dad)&&([_0x3d092e,_0x305dad]=[_0x305dad,_0x3d092e]),_0x3dc998['compare'](_0x3d092e,_0x305dad);},'isVisible':({plugins:_0x451106},_0x19ba0b)=>{const _0x4da8f5=_0x451106['get'](u);return!(_0x4da8f5['repository']['getRevisionsInDiff'](_0x4da8f5['diff'])['length']>0x2)&&!_0x19ba0b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x478ef4,{id:_0x4fee06})=>{_0x478ef4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4fee06);},'isVisible':({plugins:_0x568729},_0x34cd54)=>!!_0x568729['get'](u)['repository']['getLaterVisibleRevision'](_0x34cd54['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xb93727},{id:_0x4d2ca1,revisionNameView:_0x21573b})=>{const _0x5684f7=_0xb93727['get'](u),_0x245613=_0x5684f7['repository']['getEarlierVisibleRevision'](_0x4d2ca1);_0x5684f7['compare'](_0x4d2ca1,_0x245613),_0x21573b['focus'](),_0x21573b['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4d049b,_0x49525e){super(_0x4d049b),this['_view']=_0x49525e,this['_toolbarConfig']=st(_0x4d049b['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x3f6a86){const _0x511a21=this['editor'],_0x1d7746=this['view'],_0x2b32f7=_0x511a21['editing']['view'],_0x3581e8=_0x1d7746['editable'],_0x1d31f0=_0x2b32f7['document']['getRoot']();_0x3581e8['name']=_0x1d31f0['rootName'],_0x1d7746['render']();const _0x465d83=_0x3581e8['element'];this['setEditableElement'](_0x3581e8['name'],_0x465d83),_0x1d7746['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2b32f7['attachDomRoot'](_0x465d83),this['_elementReplacer']['replace'](_0x3f6a86,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1752d2=this['view'],_0x16b25c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x16b25c['detachDomRoot'](_0x1752d2['editable']['name']),_0x1752d2['destroy']();}['_initToolbar'](){const _0xeafae2=this['view'];_0xeafae2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xeafae2['stickyPanel']['limiterElement']=_0xeafae2['element'],_0xeafae2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2a8e0d})=>_0x2a8e0d),_0xeafae2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xeafae2['toolbar']);}}class ii extends _0x55e167{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4187c3,_0x33ab9d,_0x28d691={}){super(_0x4187c3),this['stickyPanel']=new _0x768968(_0x4187c3),this['toolbar']=new _0x44ce47(_0x4187c3,{'shouldGroupWhenFull':_0x28d691['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x4187c3,_0x33ab9d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1e9f0a(_0x3e40f0){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x18d565,_0x28adf3){super(_0x28adf3),this['sourceElement']=_0x18d565,this['model']['document']['createRoot']();const _0x12e27f=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x12e27f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3b1948,_0x1e1b3a){const _0x507606=new this(_0x3b1948,_0x1e1b3a);return await _0x507606['initPlugins'](),await _0x507606['ui']['init'](_0x3b1948),await _0x507606['data']['init'](_0x507606['config']['get']('initialData')||''),_0x507606['fire']('ready'),_0x507606;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x437c77{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d71d4){function _0x4eb7de(_0x1c31db){return _0x1c31db['map'](_0x524c68=>String['fromCharCode'](_0x524c68))['join']('');}super(_0x1d71d4),this['result']='end',_0x1d71d4[_0x4eb7de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eb7de([0x76,0x69,0x65,0x77])][_0x4eb7de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4eb7de([0x61,0x75,0x74,0x6f]),_0x1d71d4[_0x4eb7de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4eb7de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4eb7de([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4eb7de([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4eb7de([0x6f,0x6b])});}}class ct extends _0x437c77{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x49bb37){if(super(_0x49bb37),!this['editor']['config']['get']('revisionHistory'))throw new _0x23ee96('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xc2e3f=>this['_showRevisionViewer']({..._0xc2e3f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x365e8b=>this['_closeRevisionViewer'](_0x365e8b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3bf194=>this['_restoreRevision'](_0x3bf194)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x116ba6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x116ba6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3be854){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3be854);}['getRevision'](_0x33a8db){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x33a8db);}['getRevisions'](_0x462d9b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x462d9b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1e34bb=this['editor'],_0x178558=_0x254a4b(_0x1e34bb,p),_0x4a2de8=_0x1e34bb['plugins']['get']('RevisionTracker'),_0x45e785=_0x1e34bb['plugins']['get']('Users')['users'];return _0x178558['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x178558['lazyRoots'],(_0x178558['plugins']['push'](ht,u,v,class extends _0x437c77{static get['requires'](){return[u,'Users'];}['init'](){const _0x3c0ffa=this['editor']['plugins']['get']('Users');for(const _0x31a2af of _0x45e785)_0x31a2af['isAnonymous']||_0x3c0ffa['getUser'](_0x31a2af['id'])||_0x3c0ffa['addUser'](_0x31a2af);const _0xdbe6dd=_0x4a2de8['repository']['getRevisions']();let _0x57deba=null;const _0x4190df=this['editor']['plugins']['get']('RevisionViewer');_0x4190df['adapter']=_0x4a2de8['adapter'],_0x4190df['bind']('isEnabled')['to'](_0x4a2de8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1e34bb,'isReadOnly',_0x21b153=>!_0x21b153);for(const _0x346ccc of _0xdbe6dd){const _0x308724=null===_0x346ccc['creator'];if(_0x308724&&_0x346ccc['toVersion']===_0x346ccc['fromVersion'])continue;const _0x14ad4b=_0x346ccc['toJSON']();_0x4190df['addRevisionData'](_0x14ad4b,(_0x410891,_0x3840cf,_0x22511c)=>{if(_0x308724){if(_0x57deba)_0x57deba['_update'](_0x410891,_0x3840cf);else{if(!_0x3840cf){const _0x1aa30d=_0x22511c['toJSON']();_0x1aa30d['id']=_0x544ff4(),_0x4a2de8['saveRevision'](_0x1aa30d,_0x22511c['toVersion'])['then'](_0xd18015=>{_0x57deba=_0xd18015;});}}}else _0x346ccc['_update'](_0x410891,_0x3840cf);});}}},d),_0x178558);}['_enhanceShowRevisionViewerCallback'](){const _0x1941fe=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d120b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x58df77=this['editor']['plugins']['get']('Autosave');await _0x58df77['save']();}else await _0x5d120b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x16a4a2=this['editor']['plugins']['get']('Dialog');_0x16a4a2['isOpen']&&_0x16a4a2['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x495f2d=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x57a765 of _0x495f2d)_0x57a765['class']=_0x57a765['class']?_0x57a765['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x189405=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x189405&&_0x189405['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x66d7d0=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x66d7d0&&_0x66d7d0['setAttribute']('tabindex','-1');}}const _0x304830=this['_getRevisionViewerEditorConfig']();return _0x1941fe(_0x304830)['then'](_0x5f011a=>{return(this['_viewerEditor']=_0x5f011a,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'),_0x5f011a);})['catch'](_0x251f9f=>(console['error'](_0x251f9f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4d9a4f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x3d6f89=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x55ba6c of _0x3d6f89)_0x55ba6c['class']='ck-tab-panel_disabled'===_0x55ba6c['class']?'':_0x55ba6c['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x88c8da=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x88c8da&&_0x88c8da['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3bebd4=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3bebd4&&_0x3bebd4['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4d9a4f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x12d68d=this['editor']['plugins']['get']('Annotations');_0x12d68d['refreshVisibility'](),_0x12d68d['refreshPositioning']();}});});}['_showRevisionViewer'](_0x53880a){const _0x3e7d4b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1c4820=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x12e118=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x12e118,_0x53880a)['then'](_0x184db7=>(_0x1c4820['style']['display']='block',_0x3e7d4b['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x184db7));}['_closeRevisionViewer'](_0x3b5e3e){const _0x5041fb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5041fb['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3b5e3e['destroy']();}async['_restoreRevision'](_0x3707d4){const _0x2f51bf=this['editor'],_0x3312b5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xcaa060=_0x2f51bf['plugins']['get']('RevisionTracker'),_0x973a5f=_0x2f51bf['plugins']['get']('RevisionHistoryUtils'),_0x3ecc04=_0x3312b5['repository']['getRevision'](_0x3707d4);let _0x2aa4c0,_0x19b3f1,_0x473ebd;try{await _0x973a5f['loadRevisionData'](_0x3ecc04,this['adapter']),_0x2aa4c0=_0x973a5f['getRevisionDocumentData'](_0x3ecc04),_0x19b3f1=_0x973a5f['getRevisionRootsAttributes'](_0x3ecc04);}catch(_0x4b8ffe){return void console['error'](_0x4b8ffe);}_0x2f51bf['model']['change'](_0x422ad7=>{for(const _0x485cb3 of Array['from'](_0x2f51bf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x422ad7['removeMarker'](_0x485cb3);}),_0x3312b5['isReady']=!0x1,_0x2f51bf['model']['enqueueChange'](_0x258905=>{_0x258905['setSelection'](null),_0x258905['removeSelectionAttribute'](_0x2f51bf['model']['document']['selection']['getAttributeKeys']());const _0x319238=Object['keys'](_0x2aa4c0);for(const _0xa55688 of _0x2f51bf['model']['document']['roots'])'$graveyard'!=_0xa55688['rootName']&&_0xa55688['isAttached']()&&!_0x319238['includes'](_0xa55688['rootName'])&&_0x258905['detachRoot'](_0xa55688);for(const _0x415fa5 of _0x319238){let _0x3acead=_0x2f51bf['model']['document']['getRoot'](_0x415fa5);_0x3acead&&_0x3acead['isAttached']()||(_0x3acead=_0x258905['addRoot'](_0x415fa5));const _0x4326c3=_0x19b3f1[_0x415fa5],_0x296453=Object['keys'](_0x4326c3),_0x61672b=_0x2aa4c0[_0x415fa5];for(const _0x4d412f of _0x3acead['getAttributeKeys']())_0x296453['includes'](_0x4d412f)||_0x258905['removeAttribute'](_0x4d412f,_0x3acead);for(const _0x1c24cd of _0x296453)_0x258905['setAttribute'](_0x1c24cd,_0x19b3f1[_0x415fa5][_0x1c24cd],_0x3acead);_0x258905['remove'](_0x258905['createRangeIn'](_0x3acead)),_0x258905['insert'](_0x2f51bf['data']['parse'](_0x61672b,_0x3acead),_0x3acead,0x0);}});const _0x51be27=m(_0x2f51bf['locale'],'Restored');if(_0x3ecc04['name'])_0x473ebd=-0x1==_0x3ecc04['name']['indexOf'](_0x51be27)?_0x51be27+':\x20'+_0x3ecc04['name']:_0x3ecc04['name'];else _0x473ebd=_0x51be27+':\x20'+(_0x3ecc04['createdAt']['toLocaleDateString'](_0x2f51bf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3ecc04['createdAt']['toLocaleTimeString'](_0x2f51bf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xcaa060['saveRevision']({'name':_0x473ebd}),_0x3312b5['isReady']=!0x0,_0x2f51bf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|