@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250220.0 → 0.0.0-nightly-next-20250221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +11 -11
- package/src/revisionsrepository.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x54bf85(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2fe931){super(),this['id']=_0x2fe931['id']||_0x16b583(),this['creator']=_0x2fe931['creator']||null,this['authors']=_0x2fe931['authors']||[],this['diffData']=_0x2fe931['diffData']||null,this['toVersion']=_0x2fe931['toVersion']||0x0,this['fromVersion']=_0x2fe931['fromVersion']||0x0,this['set']('name',_0x2fe931['name']||''),this['set']('createdAt',_0x2fe931['createdAt']||new Date()),this['set']('attributes',_0x2fe931['attributes']||{});}['setName'](_0x2a2df6){this['_update']({'name':_0x2a2df6});}['setAttribute'](_0x8416d,_0x42a671){const _0x47d8b8=_0x2ce503(this['attributes']);_0x422d75(_0x47d8b8,_0x8416d,_0x42a671),this['_update']({'attributes':_0x47d8b8});}['removeAttribute'](_0x3cfac7){const _0x335965=_0x2ce503(this['attributes']);_0x33005b(_0x335965,_0x3cfac7),this['_update']({'attributes':_0x335965});}['_update'](_0x13404e,_0x479d7e=!0x1){let _0x4a8810=!0x1;const _0x38da99={'id':this['id']},_0x1b2654=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x403d05 of _0x1b2654){const _0xd3a7f5=_0x13404e[_0x403d05];void 0x0!==_0xd3a7f5&&_0xd3a7f5!==this[_0x403d05]&&(this[_0x403d05]=_0xd3a7f5,_0x38da99[_0x403d05]=_0xd3a7f5,_0x4a8810=!0x0);}_0x4a8810&&(_0x38da99['authors']&&(_0x38da99['authorsIds']=_0x38da99['authors']['map'](_0xc83e9f=>_0xc83e9f['id']),delete _0x38da99['authors']),this['fire']('_update',_0x38da99,_0x479d7e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4e7aac=>_0x4e7aac['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5842cf{['_revisions'];static get['requires'](){return[_0x541130];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xf01cf5){super(_0xf01cf5),this['_revisions']=new _0x4f201e();}['afterInit'](){!async function(_0x276e7f){const _0x70bf85=_0x810442([0x68,0x50,0x46,0x30,0x62,0x33,0x73,0x37,0x56,0x51,0x43,0x6c,0x44,0x41,0x78,0x64,0x69,0x59,0x7a,0x6b,0x70,0x71,0x79,0x54,0x49,0x76,0x4c,0x5a,0x6a,0x4a,0x61,0x77,0x35,0x57,0x66,0x55,0x4f,0x63,0x38,0x53,0x36,0x6d,0x75,0x4b,0x39,0x65,0x67,0x52,0x72,0x6e,0x32,0x47,0x48,0x4e,0x6f,0x31,0x74,0x58,0x42,0x4d,0x45,0x34]),_0xe06b14=0xeb829,_0x60e33e=0x1140ea5c,_0x389935=0x11478a54^_0x60e33e,_0x1b528d=window[_0x810442([0x44,0x61,0x74,0x65])][_0x810442([0x6e,0x6f,0x77])](),_0x35ed39=_0x276e7f[_0x810442([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cb70d=new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf7eb7c=>{_0x35ed39[_0x810442([0x6f,0x6e,0x63,0x65])](_0x810442([0x72,0x65,0x61,0x64,0x79]),_0xf7eb7c);}),_0x26999b={[_0x810442([0x6b,0x74,0x79])]:_0x810442([0x45,0x43]),[_0x810442([0x75,0x73,0x65])]:_0x810442([0x73,0x69,0x67]),[_0x810442([0x63,0x72,0x76])]:_0x810442([0x50,0x2d,0x32,0x35,0x36]),[_0x810442([0x78])]:_0x810442([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]),[_0x810442([0x79])]:_0x810442([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]),[_0x810442([0x61,0x6c,0x67])]:_0x810442([0x45,0x53,0x32,0x35,0x36])},_0x5c29e1=_0x35ed39[_0x810442([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x810442([0x67,0x65,0x74])](_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5be888(){let _0x351b9e,_0x1c3d9e=null,_0xe0adcd=null;try{if(_0x5c29e1==_0x810442([0x47,0x50,0x4c]))return _0x810442([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x351b9e=_0x3e9b17(),!_0x351b9e)return _0x810442([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x351b9e[_0x810442([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe0adcd=_0x293b04(_0x351b9e[_0x810442([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x351b9e[_0x810442([0x6a,0x74,0x69])])),await _0x4b94c7()?_0x1a6847()?_0x422d0d()?_0x810442([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x347ed0()?(_0x351b9e[_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x810442([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c3d9e=_0x33b0db(_0x810442([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x351b9e[_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x810442([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c3d9e=_0x33b0db(_0x810442([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x497c57()):_0x810442([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x810442([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x810442([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1747e4){return _0x810442([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x422d0d(){const _0x22d7db=[_0x810442([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x810442([0x74,0x72,0x69,0x61,0x6c])][_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351b9e[_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b528d/0x3e8:0xe10*_0x389935;return _0x351b9e[_0x810442([0x65,0x78,0x70])]<_0x22d7db;}function _0x1a6847(){const _0x941ee8=_0x351b9e[_0x810442([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x941ee8)return!0x1;if(_0x941ee8[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x810442([0x2a])))return!0x0;if(_0x941ee8[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x810442([0x52,0x48])))return!0x0;if(_0x941ee8[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x810442([0x52,0x52,0x48]))){if(_0x5f321e())return!0x0;if(_0x467c53()||_0x3d4d04())return!0x0;}return!0x1;}function _0x347ed0(){const _0x5497af=_0x351b9e[_0x810442([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5497af||0x0==_0x5497af[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c9a20}=new URL(window[_0x810442([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5497af[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9a20))return!0x0;const _0x6de84c=_0x2c9a20[_0x810442([0x73,0x70,0x6c,0x69,0x74])](_0x810442([0x2e]));return _0x5497af[_0x810442([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfde345=>_0xfde345[_0x810442([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x810442([0x2a])))[_0x810442([0x6d,0x61,0x70])](_0x44800f=>_0x44800f[_0x810442([0x73,0x70,0x6c,0x69,0x74])](_0x810442([0x2e])))[_0x810442([0x73,0x6f,0x6d,0x65])](_0xe6030a=>_0x6de84c[_0x810442([0x65,0x76,0x65,0x72,0x79])]((_0x227d09,_0x39d523)=>_0xe6030a[_0x39d523]===_0x227d09||_0xe6030a[_0x39d523]===_0x810442([0x2a])));}function _0x497c57(){return _0x1c3d9e&&_0xe0adcd?new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4803d1,_0x188ca9)=>{_0x1c3d9e[_0x810442([0x74,0x68,0x65,0x6e])](_0x4803d1,_0x188ca9),_0xe0adcd[_0x810442([0x74,0x68,0x65,0x6e])](_0x36120c=>{_0x36120c!=_0x810442([0x56,0x61,0x6c,0x69,0x64])&&_0x4803d1(_0x36120c);},_0x188ca9);}):_0x1c3d9e||_0xe0adcd||_0x810442([0x56,0x61,0x6c,0x69,0x64]);}}function _0x293b04(_0x39a5f0,_0x3797e5){return new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x202448=>{if(_0x414a58())return _0x202448(_0x810442([0x56,0x61,0x6c,0x69,0x64]));_0x4353c0(),_0x35ed39[_0x810442([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x810442([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a9571=!0x1;const _0x40508f=_0x16b583();function _0x1a2ef6(_0x17aa17){return!!_0x17aa17&&(typeof _0x17aa17===_0x810442([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17aa17===_0x810442([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17aa17[_0x810442([0x74,0x68,0x65,0x6e])]===_0x810442([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17aa17[_0x810442([0x63,0x61,0x74,0x63,0x68])]===_0x810442([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30d973(_0x3af656){_0x286ea4(_0x3af656)[_0x810442([0x74,0x68,0x65,0x6e])](_0x27b0d1=>{if(!_0x27b0d1||_0x27b0d1[_0x810442([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x810442([0x6f,0x6b]))return _0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52f97b(_0x2ce8fe(_0x40508f+_0x3797e5))!=_0x27b0d1[_0x810442([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x810442([0x56,0x61,0x6c,0x69,0x64]);})[_0x810442([0x74,0x68,0x65,0x6e])](_0x4d70f0=>(_0x25cd49(),_0x4d70f0),()=>{const _0x440264=_0xab6cf9();return null==_0x440264?(_0x25cd49(),_0x810442([0x56,0x61,0x6c,0x69,0x64])):_0x810442(_0x1b528d-_0x440264>(0x354c6e5c^_0x60e33e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x810442([0x74,0x68,0x65,0x6e])](_0x202448)[_0x810442([0x63,0x61,0x74,0x63,0x68])](()=>{_0x202448(_0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e3e94=0x117604dc^_0x60e33e;function _0x25cd49(){const _0x5d1326=_0x810442([0x6c,0x6c,0x63,0x74,0x2d])+_0x52f97b(_0x2ce8fe(_0x39a5f0)),_0x20a178=_0x599c2d(_0x52f97b(window[_0x810442([0x4d,0x61,0x74,0x68])][_0x810442([0x63,0x65,0x69,0x6c])](_0x1b528d/_0x2e3e94)));window[_0x810442([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x810442([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d1326,_0x20a178);}function _0xab6cf9(){const _0x383187=_0x810442([0x6c,0x6c,0x63,0x74,0x2d])+_0x52f97b(_0x2ce8fe(_0x39a5f0)),_0x2a67cf=window[_0x810442([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x810442([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x383187);return _0x2a67cf?window[_0x810442([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x599c2d(_0x2a67cf),0x10)*_0x2e3e94:null;}function _0x286ea4(_0x4c6975){return new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35a9e1,_0x581b4c)=>{_0x4c6975[_0x810442([0x74,0x68,0x65,0x6e])](_0x35a9e1,_0x581b4c),window[_0x810442([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x581b4c,0x11413e9c^_0x60e33e);});}}_0x35ed39[_0x810442([0x6f,0x6e])](_0x810442([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd11448,_0x4bb658)=>{if(_0x4bb658[0x0]!=_0x39a5f0)return _0x202448(_0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4bb658[0x1]={..._0x4bb658[0x1],[_0x810442([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40508f};},{[_0x810442([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x810442([0x68,0x69,0x67,0x68])}),_0x35ed39[_0x810442([0x6f,0x6e])](_0x810442([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d6891=>{_0x1a2ef6(_0x1d6891[_0x810442([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a9571=!0x0,_0x30d973(_0x1d6891[_0x810442([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x810442([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x810442([0x6c,0x6f,0x77])}),_0x1cb70d[_0x810442([0x74,0x68,0x65,0x6e])](()=>{_0x2a9571||_0x202448(_0x810442([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x414a58(){return _0x35ed39[_0x810442([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x810442([0x76,0x69,0x65,0x77])][_0x810442([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x810442([0x61,0x75,0x74,0x6f]);}function _0x4353c0(){_0x35ed39[_0x810442([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x810442([0x76,0x69,0x65,0x77])][_0x810442([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x810442([0x61,0x75,0x74,0x6f]);}}function _0x33b0db(_0x23f7db){const _0x1c6b29=[new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48a271=>setTimeout(_0x48a271,0x1149d490^_0x60e33e)),_0x1cb70d[_0x810442([0x74,0x68,0x65,0x6e])](()=>new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29cf30=>{const _0x4e206c=0x1140ea5b^_0x60e33e,_0x4fa57f=_0x276e7f[_0x810442([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x11a9f6(){_0x4fa57f[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4e206c&&_0x29cf30();}_0x11a9f6(),_0x4fa57f[_0x810442([0x6f,0x6e])](_0x810442([0x61,0x64,0x64]),_0x11a9f6);})),new window[(_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f4f93=>{function _0xe91ec5(){for(const _0x1fe4b4 in window)if(window[_0x810442([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x810442([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1fe4b4))&&window[_0x1fe4b4]==_0xe06b14)return _0x1f4f93();_0x35ed39[_0x810442([0x73,0x74,0x61,0x74,0x65])]!=_0x810442([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x810442([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe91ec5,0x1140f9d4^_0x60e33e);}_0xb3b090(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xe91ec5();})];return window[_0x810442([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x810442([0x72,0x61,0x63,0x65])](_0x1c6b29)[_0x810442([0x74,0x68,0x65,0x6e])](()=>_0x23f7db);}async function _0x44db49(){if(await _0x1cb70d,_0xb3b090(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4edc5e=_0x276e7f[_0x810442([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xa29a54=_0x276e7f[_0x810442([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])](_0x4edc5e[_0x810442([0x69,0x64])]),_0x54dfb9=_0xbc4521(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x54dfb9[_0x810442([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4edc5e['id'],_0xa29a54?_0xa29a54['id']:null,!0x0),_0x54dfb9[_0x810442([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x810442([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x54dfb9[_0x810442([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x54dfb9[_0x810442([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x970055,void(_0x54dfb9[_0x810442([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x970055);}if(_0xb3b090(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x9a1bc0=_0xbc4521(_0x810442([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x9a1bc0[_0x810442([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x810442([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x9a1bc0[_0x810442([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x9a1bc0[_0x810442([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x970055,_0x9a1bc0[_0x810442([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x970055;}_0x35ed39[_0x810442([0x6d,0x6f,0x64,0x65,0x6c])][_0x810442([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x970055,_0x35ed39[_0x810442([0x6d,0x6f,0x64,0x65,0x6c])][_0x810442([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x970055,_0x35ed39[_0x810442([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x810442([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f321e(){return _0xb3b090(_0x810442([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xbc4521(_0x810442([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x810442([0x73,0x74,0x61,0x74,0x65])]==_0x810442([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x467c53(){return _0xb3b090(_0x810442([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 _0x3d4d04(){return _0xb3b090(_0x810442([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x58f2a8(_0x2aa1cc){const _0x1294b4=_0x2d7696();_0x35ed39[_0x1294b4]=_0x810442([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])+_0x2aa1cc,_0x2aa1cc[_0x810442([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x810442([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2d7696()]=_0xe06b14),_0x2aa1cc!=_0x810442([0x56,0x61,0x6c,0x69,0x64])&&_0x44db49();}function _0x2d7696(){const _0x2a4a9d=window[_0x810442([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x810442([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x810442([0x6e,0x6f,0x77])]())[_0x810442([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x810442([0x2e]),'');let _0x24d3b3=_0x810442([0x68]);for(let _0x29e8d5=0x0;_0x29e8d5<_0x2a4a9d[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29e8d5+=0x2){let _0x16a014=window[_0x810442([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a4a9d[_0x810442([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29e8d5,_0x29e8d5+0x2));_0x16a014>=_0x70bf85[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16a014-=_0x70bf85[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24d3b3+=_0x70bf85[_0x16a014];}return _0x24d3b3;}function _0x3e9b17(){const _0x478fd0=_0x5c29e1[_0x810442([0x73,0x70,0x6c,0x69,0x74])](_0x810442([0x2e]));if(0x3!=_0x478fd0[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x297207(_0x478fd0[0x1]);function _0x297207(_0x3cfa3f){const _0x358c93=_0x1dcfbf(_0x3cfa3f);return _0x358c93&&_0x114cca()?_0x358c93:null;function _0x114cca(){const _0x5c0161=_0x358c93[_0x810442([0x6a,0x74,0x69])],_0x41cb59=window[_0x810442([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c0161[_0x810442([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c0161[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a4fa7={..._0x358c93,[_0x810442([0x6a,0x74,0x69])]:_0x5c0161[_0x810442([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c0161[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a4fa7[_0x810442([0x76,0x63])],_0x2ce8fe(_0x1a4fa7)==_0x41cb59;}}}async function _0x4b94c7(){let _0xb1aa55=!0x0;try{const _0x19ef81=_0x5c29e1[_0x810442([0x73,0x70,0x6c,0x69,0x74])](_0x810442([0x2e])),[_0x2e372d,_0x20b216,_0x22a5ca]=_0x19ef81;return _0x59f7c7(_0x2e372d),await _0x4c3708(_0x2e372d,_0x20b216,_0x22a5ca),_0xb1aa55;}catch(_0x3f8593){return!0x1;}function _0x59f7c7(_0x225354){const _0x1d5b5c=_0x1dcfbf(_0x225354);_0x1d5b5c&&_0x1d5b5c[_0x810442([0x61,0x6c,0x67])]==_0x810442([0x45,0x53,0x32,0x35,0x36])||(_0xb1aa55=!0x1);}async function _0x4c3708(_0x45ad3c,_0x3612db,_0x1ccbf2){const _0x498beb=window[_0x810442([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x810442([0x66,0x72,0x6f,0x6d])](_0x4c68d5(_0x1ccbf2),_0x38072e=>_0x38072e[_0x810442([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x973d5b=new window[(_0x810442([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x810442([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45ad3c+_0x810442([0x2e])+_0x3612db),_0x37236b=window[_0x810442([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x810442([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37236b)return;const _0x393c92=await _0x37236b[_0x810442([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x810442([0x6a,0x77,0x6b]),_0x26999b,{[_0x810442([0x6e,0x61,0x6d,0x65])]:_0x810442([0x45,0x43,0x44,0x53,0x41]),[_0x810442([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x810442([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x810442([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37236b[_0x810442([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x810442([0x6e,0x61,0x6d,0x65])]:_0x810442([0x45,0x43,0x44,0x53,0x41]),[_0x810442([0x68,0x61,0x73,0x68])]:{[_0x810442([0x6e,0x61,0x6d,0x65])]:_0x810442([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x393c92,_0x498beb,_0x973d5b)||(_0xb1aa55=!0x1);}}function _0x1dcfbf(_0xe37682){return _0xe37682[_0x810442([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x810442([0x65,0x79]))?JSON[_0x810442([0x70,0x61,0x72,0x73,0x65])](_0x4c68d5(_0xe37682)):null;}function _0x4c68d5(_0x4cb6b8){return window[_0x810442([0x61,0x74,0x6f,0x62])](_0x4cb6b8[_0x810442([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x810442([0x2b]))[_0x810442([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x810442([0x2f])));}function _0x2ce8fe(_0x4b18c8){let _0x58e439=0x1505;function _0x56a238(_0x325ece){for(let _0x1e3cb7=0x0;_0x1e3cb7<_0x325ece[_0x810442([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e3cb7++){const _0x775be8=_0x325ece[_0x810442([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e3cb7);_0x58e439=(_0x58e439<<0x5)+_0x58e439+_0x775be8,_0x58e439&=_0x58e439;}}function _0x2566c4(_0x425c6b){Array[_0x810442([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x425c6b)?_0x425c6b[_0x810442([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2566c4):_0x425c6b&&typeof _0x425c6b==_0x810442([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x810442([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x425c6b)[_0x810442([0x73,0x6f,0x72,0x74])]()[_0x810442([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x597e39,_0xb92097])=>{_0x56a238(_0x597e39),_0x2566c4(_0xb92097);}):_0x56a238(window[_0x810442([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x425c6b));}return _0x2566c4(_0x4b18c8),_0x58e439>>>0x0;}function _0x52f97b(_0x4c5554){return _0x4c5554[_0x810442([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x810442([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x810442([0x30]));}function _0x599c2d(_0x25548a){return _0x25548a[_0x810442([0x73,0x70,0x6c,0x69,0x74])]('')[_0x810442([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x810442([0x6a,0x6f,0x69,0x6e])]('');}function _0xb3b090(_0x4ff5fb){return _0x35ed39[_0x810442([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x810442([0x68,0x61,0x73])](_0x4ff5fb);}function _0xbc4521(_0x24c180){return _0x35ed39[_0x810442([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x810442([0x67,0x65,0x74])](_0x24c180);}function _0x970055(){}function _0x810442(_0x4ecc3f){return _0x4ecc3f['map'](_0x427064=>String['fromCharCode'](_0x427064))['join']('');}_0x58f2a8(await _0x5be888());}(this);}['createRevision'](_0x28dcae){const _0x6dbf02=this['editor']['plugins']['get']('Users');return new h({'id':_0x28dcae['id'],'name':_0x28dcae['name'],'creator':_0x28dcae['creatorId']?_0x6dbf02['getUser'](_0x28dcae['creatorId']):null,'diffData':_0x28dcae['diffData']||_0x28dcae['data'],'authors':_0x28dcae['authorsIds']['map'](_0x1dab76=>_0x6dbf02['getUser'](_0x1dab76)),'createdAt':new Date(_0x28dcae['createdAt']),'attributes':_0x28dcae['attributes'],'fromVersion':_0x28dcae['fromVersion'],'toVersion':_0x28dcae['toVersion']});}['addRevision'](_0x50f483,_0x19892e=0x0){this['_revisions']['add'](_0x50f483,_0x19892e);}['getRevision'](_0x2b0dee){return this['_revisions']['get'](_0x2b0dee);}['getRevisions'](_0x13fa36={'toJSON':!0x1}){const _0x4eeace=Array['from'](this['_revisions']);return _0x4eeace['reverse'](),_0x13fa36['toJSON']?_0x4eeace['map'](_0x51a216=>_0x51a216['toJSON']()):_0x4eeace;}['getIndex'](_0x287540){return this['_revisions']['getIndex'](_0x287540);}['getEarlierVisibleRevision'](_0x46d7d0){const [,_0x387f6b]=this['getRevisionsIterator'](_0x46d7d0,{'direction':'earlier'});return _0x387f6b;}['getLaterVisibleRevision'](_0x18b485){const [,_0x215815]=this['getRevisionsIterator'](_0x18b485,{'direction':'later'});return _0x215815;}['getRevisionsInDiff'](_0x4f8ace){const _0x3d216a=[];for(const _0x6ec05 of this['getRevisionsIterator'](_0x4f8ace['newRevisionId']))if(_0x3d216a['push'](_0x6ec05),_0x6ec05['id']===_0x4f8ace['oldRevisionId'])break;return _0x3d216a;}*['getRevisionsIterator'](_0x41bec2,{direction:_0x8054da='earlier',filter:_0x257150=()=>!0x0}={}){const _0x40833f='earlier'===_0x8054da?0x1:-0x1;let _0xc12842=this['_revisions']['get'](_0x41bec2),_0x4fba39=this['getIndex'](_0xc12842);for(yield _0xc12842;_0xc12842;){if(_0x4fba39+=_0x40833f,_0xc12842=this['getRevision'](_0x4fba39),!_0xc12842)return;_0x257150(_0xc12842)&&(yield _0xc12842);}}}function m(_0x2276cc,_0x3bbfdd,_0xf16c59){const t=_0x2276cc['t'];switch(_0x3bbfdd){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'},_0xf16c59);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xf16c59);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x5bdcfb,'a':_0x4fd1c3,'e':_0x5c769b,'r':_0x4788b1,'u':_0x53c8a2};class u extends _0x5842cf{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x541130,j,_0x5f24e2];}constructor(_0x8821de){super(_0x8821de),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3bd8d9=_0x16b583();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3bd8d9},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x50afd6=this['repository']['getRevision'](0x0),_0x216d1d=_0x50afd6&&null===_0x50afd6['creator']?_0x50afd6:null;if(this['_continueCurrentRevision']=!!_0x216d1d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x492d69=this['_source']['getCurrentRevisionId'](),_0x1bba8a=this['repository']['getRevision'](_0x492d69);if(_0x1bba8a)this['_startingVersion']=_0x1bba8a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5126c9=this['_source']['history']['_operations']['find'](_0x88c714=>!_0x88c714['_isInit']),_0x31eab3=_0x5126c9?_0x5126c9['baseVersion']:this['_source']['history']['version'];_0x50afd6?(_0x50afd6['toVersion']<_0x31eab3&&_0x50afd6['_update']({'toVersion':_0x31eab3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x216d1d['id'],this['_startingVersion']=_0x216d1d['fromVersion']):(this['_startingVersion']=_0x50afd6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x31eab3,this['_continueCurrentRevision']=!0x1);}}else _0x216d1d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x216d1d['toVersion'],this['editor']['model']['document']['history']['version']),_0x216d1d['fromVersion']===_0x216d1d['toVersion']?(0x0!==_0x216d1d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x216d1d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x216d1d['id'],this['_startingVersion']=_0x216d1d['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',_0x542423=>!_0x542423),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x279ce4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa210d3;for(const _0x18772c in _0x279ce4){const _0x4fed89=_0x18772c,_0x4b5098=_0x279ce4[_0x4fed89];if('revisionHistoryLicenseKeyValid'==_0x4b5098||'revisionHistoryLicenseKeyInvalid'==_0x4b5098||'revisionHistoryLicenseKeyExpired'==_0x4b5098||'revisionHistoryLicenseKeyDomainLimit'==_0x4b5098||'revisionHistoryLicenseKeyNotAllowed'==_0x4b5098||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b5098||'revisionHistoryLicenseKeyTrialLimit'==_0x4b5098||'revisionHistoryLicenseKeyUsageLimit'==_0x4b5098){delete _0x279ce4[_0x4fed89],_0xa210d3=_0x4b5098,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xa210d3&&_0x279ce4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xa210d3&&_0x279ce4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xa210d3&&_0x279ce4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xa210d3&&_0x279ce4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xa210d3&&_0x279ce4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xa210d3&&_0x279ce4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xa210d3&&_0x279ce4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x50869c=this['repository']['getRevision'](0x0),_0x269c63=await this['getRevisionDocumentData'](_0x50869c),_0x1ee77f=await this['getRevisionRootsAttributes'](_0x50869c);this['_replaceEditorDataWithRevisionData'](_0x269c63,_0x1ee77f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x55635c){this['_source']=_0x55635c;}async['update'](){const _0x5006cc=await this['_source']['getLatestVersion']();if(_0x5006cc>this['currentRevision']['toVersion']){await this['_loadState']();const _0x23751c=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5006cc});_0x23751c['authors']=_0x23751c['authorsIds']['map'](_0x406136=>this['editor']['plugins']['get']('Users')['getUser'](_0x406136)),this['currentRevision']['_update'](_0x23751c);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x549598={},_0xca9172=null){const _0x5ed61e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xca9172>this['currentRevision']['toVersion']&&(_0xca9172=null),null===_0xca9172&&(_0xca9172=await this['_source']['getLatestVersion']());const _0x404dcd=this['_getFromVersion'](_0xca9172),_0x54d3b4=this['buildRevisionData']({'from':_0x404dcd,'to':_0xca9172});if(this['currentRevision']['toVersion']<_0xca9172){const _0x4f23e6=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xca9172,'to':_0xca9172});_0x4f23e6['authors']=[],_0x4f23e6['authorsIds']=[],_0x4f23e6['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4f23e6,!0x0),delete _0x4f23e6['authors'],_0x5ed61e['push'](_0x4f23e6);}_0x549598['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x549598['name']=_0x549598['name']||null,_0x549598['id']=_0x549598['id']||_0x16b583(),_0x549598={..._0x549598,..._0x54d3b4};const _0xb05c7d=this['addRevisionData'](_0x549598);_0x5ed61e['push'](_0x549598);const _0x47f09f=this['repository']['getIndex'](_0xb05c7d);if(0x0!==_0x47f09f){const _0x29969f=this['repository']['getRevision'](_0x47f09f-0x1);if(_0x29969f['fromVersion']!==_0xca9172){const _0x16db71=this['_revisionDataBuilder']['getData'](_0xca9172,_0x29969f['toVersion']),_0x28b35a={'id':_0x29969f['id'],'diffData':_0x16db71['diffData'],'authorsIds':_0x16db71['authorsIds'],'authors':_0x16db71['authorsIds']['map'](_0x4e95e5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e95e5)),'fromVersion':_0xca9172};_0x29969f===this['currentRevision']&&(_0x28b35a['createdAt']=new Date(_0x549598['createdAt']['getTime']()+0xa)),_0x29969f['_update'](_0x28b35a,!0x0),delete _0x28b35a['authors'],_0x5ed61e['push'](_0x28b35a);}}if(this['adapter']){for(const _0x41380e of _0x5ed61e)this['_bufferUpdate'](_0x41380e['id'],_0x41380e,!0x0);this['sendBufferedUpdates']();}return _0xb05c7d;}['addRevisionData'](_0x2e7b60){const _0x521e4f=this['repository']['createRevision'](_0x2e7b60);return this['adapter']&&_0x521e4f['on']('_update',(_0x4f288e,_0x598d01,_0x3c9a1d)=>{_0x3c9a1d||(this['_bufferUpdate'](_0x598d01['id'],_0x598d01,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x521e4f,this['_findInsertionIndex'](_0x521e4f)),_0x521e4f;}async['getRevisionDocumentData'](_0x67d735){await this['_loadRevisionData'](_0x67d735);const _0x5d98e3={};for(const _0x18c230 in _0x67d735['diffData']){if(_0x67d735['diffData'][_0x18c230]['attachChange']&&!_0x67d735['diffData'][_0x18c230]['attachChange']['isAttached'])continue;const _0x1ae186=this['_removeRevisionMarkers'](JSON['parse'](_0x67d735['diffData'][_0x18c230]['insertions'])),_0x114137=this['editor']['editing']['view']['document'],_0x42d37d=new _0x5706e6(_0x114137,_0x1ae186['map'](_0x157fe9=>P(_0x157fe9,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x5d98e3[_0x18c230]=this['editor']['data']['processor']['toData'](_0x42d37d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5d98e3;}async['getRevisionRootsAttributes'](_0x477531){await this['_loadRevisionData'](_0x477531);const _0xa0eb92={};for(const _0x244ecf in _0x477531['diffData'])_0x477531['diffData'][_0x244ecf]['attachChange']&&!_0x477531['diffData'][_0x244ecf]['attachChange']['isAttached']||(_0xa0eb92[_0x244ecf]=_0x477531['diffData'][_0x244ecf]['attributesAfter']||{});return _0xa0eb92;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x56f146=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1be138=0x0;_0x1be138<_0x56f146['length'];_0x1be138++){const _0x4403e0=_0x56f146[_0x1be138];let _0xb59939=!0x1;for(const _0x188924 of Object['keys'](_0x4403e0))void 0x0===_0x4403e0[_0x188924]?delete _0x4403e0[_0x188924]:'id'!==_0x188924&&(_0xb59939=!0x0);_0xb59939||(_0x56f146[_0x1be138]=null);}if(_0x56f146=_0x56f146['filter'](_0x188c09=>null!==_0x188c09),!_0x56f146['length'])return;for(let _0x33cd7c=0x0;_0x33cd7c<_0x56f146['length'];_0x33cd7c++){const _0x1a5fe6=_0x56f146[_0x33cd7c];void 0x0!==_0x1a5fe6['fromVersion']&&void 0x0===_0x1a5fe6['toVersion']&&(_0x1a5fe6['toVersion']=this['repository']['getRevision'](_0x1a5fe6['id'])['toVersion']),void 0x0!==_0x1a5fe6['toVersion']&&void 0x0===_0x1a5fe6['fromVersion']&&(_0x1a5fe6['fromVersion']=this['repository']['getRevision'](_0x1a5fe6['id'])['fromVersion']);}const _0x55cae4=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x56f146,_0x55cae4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x13dda2=>{if(_0x13dda2){for(const _0x17f3fa of _0x13dda2)this['setRevisionData']({'id':_0x17f3fa['id'],'createdAt':_0x17f3fa['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1fd575,_0x23f1b7){let _0x4a6fd5=this['editor']['config']['get']('initialData'),_0x465c19=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4a6fd5){_0x4a6fd5={};for(const _0x3a1fef of this['editor']['model']['document']['getRootNames']())_0x4a6fd5[_0x3a1fef]='';}if('string'==typeof _0x4a6fd5&&(_0x4a6fd5={'main':_0x4a6fd5}),void 0x0===_0x465c19){_0x465c19={};for(const _0x48eb35 of this['editor']['model']['document']['getRootNames']())_0x465c19[_0x48eb35]={};}let _0x43dee8=!0x1;const _0x474e30=Object['keys'](_0x4a6fd5),_0x36c014=Object['keys'](_0x1fd575);for(const _0x2c9776 of _0x474e30){if(_0x4a6fd5[_0x2c9776]!==_0x1fd575[_0x2c9776]&&''!==_0x4a6fd5[_0x2c9776]['trim']()){_0x43dee8=!0x0;break;}if(!_0x4a3260(_0x465c19[_0x2c9776],_0x23f1b7[_0x2c9776])&&Object['keys'](_0x465c19[_0x2c9776])['length']>0x0){_0x43dee8=!0x0;break;}}_0x43dee8||(_0x43dee8=_0x36c014['some'](_0x4d0727=>!this['editor']['model']['document']['getRoot'](_0x4d0727))),_0x43dee8&&_0x21988e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4a6fd5,'editorRootsAttributes':_0x465c19,'revisionData':_0x1fd575,'revisionRootsAttributes':_0x23f1b7}),this['editor']['config']['set']('initialData',_0x1fd575),this['editor']['config']['set']('rootsAttributes',_0x23f1b7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3ea627=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3ea627['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x6b8a79){const _0x307216=this['repository']['getRevisions']();_0x307216['reverse']();let _0x366023=0x0;for(;_0x366023<_0x307216['length'];){const _0x1f9ceb=_0x307216[_0x366023];if(_0x1f9ceb===this['currentRevision']){_0x366023++;continue;}if(_0x1f9ceb['id']===this['_initialRevisionId'])break;const _0x586279=_0x6b8a79['toVersion']-_0x1f9ceb['toVersion']||_0x6b8a79['fromVersion']-_0x1f9ceb['fromVersion'];if(_0x586279>0x0)break;if(_0x586279<0x0)_0x366023++;else{if(!_0x6b8a79['creator']&&_0x1f9ceb['creator'])break;if(_0x1f9ceb['creator']||!_0x6b8a79['creator']){if(_0x6b8a79['createdAt']>_0x1f9ceb['createdAt'])break;_0x366023++;}else _0x366023++;}}return _0x366023;}['setRevisionData'](_0x3a9e32){const _0x1379c6=this['repository']['getRevision'](_0x3a9e32['id']);if(_0x3a9e32['createdAt']&&(_0x3a9e32['createdAt']=new Date(_0x3a9e32['createdAt'])),_0x3a9e32['authorsIds']){const _0x2b6f26=this['editor']['plugins']['get']('Users');_0x3a9e32['authors']=_0x3a9e32['authorsIds']['map'](_0x51cf5d=>_0x2b6f26['getUser'](_0x51cf5d));}_0x1379c6['_update'](_0x3a9e32,!0x0);}['buildRevisionData']({revision:_0x5bd9e7=null,from:_0x587c3c=null,to:_0x3629d6=null}){_0x587c3c=null!==_0x587c3c?_0x587c3c:_0x5bd9e7['fromVersion'],_0x3629d6=null!==_0x3629d6?_0x3629d6:_0x5bd9e7['toVersion'];const _0xbb3199=this['_revisionDataBuilder']['getData'](_0x587c3c,_0x3629d6),_0xf56b4c={'diffData':_0xbb3199['diffData'],'authorsIds':_0xbb3199['authorsIds'],'fromVersion':_0x587c3c,'toVersion':_0x3629d6};if(!_0x5bd9e7||_0x3629d6!==_0x5bd9e7['toVersion']){const _0x5cbe93=_0x3629d6-0x1,_0x251b7a=this['_source']['history']['getOperation'](_0x5cbe93);_0xf56b4c['createdAt']=_0x251b7a&&_0x251b7a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x587c3c===this['_loadedStateData']['fromVersion']){for(const _0x47d9cc of this['_loadedStateData']['authors'])_0xf56b4c['authorsIds']['includes'](_0x47d9cc['id'])||_0xf56b4c['authorsIds']['push'](_0x47d9cc['id']);}return _0xf56b4c;}['_loadRevisionData'](_0xcef2bd){if(!_0xcef2bd||_0xcef2bd['diffData'])return Promise['resolve']();{const _0x410315=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x410315,'revisionId':_0xcef2bd['id']})['then'](_0x870d63=>{_0xcef2bd['diffData']=_0x870d63['diffData'];});}}['_bufferUpdate'](_0x187f52,_0x27663c,_0x40f1f3){if(this['_bufferedUpdates']['has'](_0x187f52)){const _0x551f7a=this['_bufferedUpdates']['get'](_0x187f52);_0x27663c=_0x40f1f3?{..._0x551f7a,..._0x27663c}:{..._0x27663c,..._0x551f7a};}this['_bufferedUpdates']['set'](_0x187f52,_0x27663c);}['_getFromVersion'](_0x3866e8){const _0x1d652=this['repository']['getRevisions']();_0x1d652['reverse'](),_0x1d652['shift']();const _0x125a4e=_0x1d652['find'](_0x394f6e=>_0x394f6e['toVersion']<=_0x3866e8)['toVersion'];return _0x125a4e<this['_startingVersion']?this['_startingVersion']:_0x125a4e;}['_createInitialRevision'](_0x2eab2c){const _0x15a068=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x15a068)this['_initialRevisionId']=_0x15a068['id'];else{const _0xf74c26=!this['editor']['model']['document']['roots']['find'](_0xc37e33=>this['editor']['model']['hasContent'](_0xc37e33)),_0x44c40c=this['editor']['plugins']['get']('Users')['me']['id'],_0x43115b=m(this['editor']['locale'],_0xf74c26?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2eab2c,'to':_0x2eab2c,'id':this['_initialRevisionId'],'name':_0x43115b,'creatorId':_0x44c40c});}}['_createCurrentRevision'](_0x473b27){const _0x3bd8ad=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3bd8ad),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x473b27,'to':_0x473b27,'id':_0x3bd8ad,'name':'','creatorId':null}));}['_makeRevision']({name:_0xf276af,from:_0x2e8b9a,to:_0x5dd29d,creatorId:_0x523bfa,id:_0x31c112}){const _0x564fa1=this['buildRevisionData']({'from':_0x2e8b9a,'to':_0x5dd29d});_0x564fa1['name']=_0xf276af,_0x564fa1['creatorId']=_0x523bfa,_0x564fa1['id']=_0x31c112;const _0x25ff1a=this['addRevisionData'](_0x564fa1);return this['adapter']&&this['_bufferUpdate'](_0x564fa1['id'],_0x564fa1,!0x0),_0x25ff1a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x513c77){return(_0x513c77=_0x513c77['filter'](_0x27d722=>!_0x27d722['name']||'revision-start'!==_0x27d722['name']&&'revision-end'!==_0x27d722['name']))['forEach'](_0x5b9ab7=>{'string'!=typeof _0x5b9ab7&&(_0x5b9ab7['children']=this['_removeRevisionMarkers'](_0x5b9ab7['children']),_0x5b9ab7['attributes']=_0x5b9ab7['attributes']['filter'](_0x12eeb5=>!_0x12eeb5[0x0]['startsWith']('data-revision-')));}),_0x513c77;}}function P(_0x25a88b,_0x3920c2){const _0x3724b4=_0x3920c2['editing']['view']['document'];if('string'==typeof _0x25a88b)return new _0x5da6d8(_0x3724b4,_0x25a88b);{const _0x5b1787=_0x25a88b['children']['map'](_0x17ae5b=>P(_0x17ae5b,_0x3920c2));return new(E[_0x25a88b['type']]||_0x4ef47b)(_0x3724b4,_0x25a88b['name'],_0x25a88b['attributes'],_0x5b1787);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x22cb44){this['editor']=_0x22cb44,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'](_0x39f30e){this['source']=_0x39f30e;const _0x5ee575=new Map(),_0x49a592=new Map(),_0x38b400=this['editor']['model']['document']['roots']['map'](_0x49bbee=>_0x49bbee['rootName']);for(const _0x8d2cd2 of _0x38b400){const _0x117272=this['editor']['model']['document']['getRoot'](_0x8d2cd2),_0x13293c=T(_0x117272);_0x5ee575['set'](_0x8d2cd2,_0x13293c),_0x49a592['set'](_0x8d2cd2,Object['fromEntries'](_0x117272['getAttributes']()));}const _0x45c4b4=Array['from'](this['editor']['model']['markers'])['map'](_0x292f0e=>[_0x292f0e['name'],_0x292f0e['getRange']()]),_0x541e75=this['source']['version'];this['_saveMetaData'](_0x541e75,_0x5ee575,_0x45c4b4,_0x49a592),this['_startingRevisionId']=this['_revisionId'];const _0x17c15f=new Map(),_0x17bdc8=new Map();for(const _0x3be5c1 of _0x38b400){const _0x13c029=F(_0x3be5c1);_0x17c15f['set'](_0x3be5c1,_0x13c029),_0x17bdc8['set'](_0x3be5c1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x17c15f,[],_0x17bdc8);}['getData'](_0x35c1e3,_0x428d26){if(this['_lastFrom']===_0x35c1e3&&this['_lastTo']<=_0x428d26)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x428d26,!0x0);else{if(!this['_savedMetaData']['has'](_0x35c1e3)){const _0xcd236a=this['_getPreviousFrom'](_0x35c1e3);this['_calculateMetaData'](_0xcd236a,_0x35c1e3,!0x1);}this['_calculateMetaData'](_0x35c1e3,_0x428d26,!0x0);}return this['_lastFrom']=_0x35c1e3,this['_lastTo']=_0x428d26,this['_getState']();}['loadState'](_0x5b6ccf){this['_reset'](),this['_lastFrom']=_0x5b6ccf['fromVersion'],this['_lastTo']=_0x5b6ccf['toVersion'];for(const _0x53ecca in _0x5b6ccf['diffData']){const _0x4674be=_0x5b6ccf['diffData'][_0x53ecca]['attachChange'],_0x372010=_0x2ce503(_0x5b6ccf['diffData'][_0x53ecca]['attributesBefore'])||{},_0x168868=this['_makeModelFromViewString'](_0x5b6ccf['diffData'][_0x53ecca]['deletions']);_0x168868['rootName']=_0x53ecca,_0x168868['_isAttached']=!_0x4674be||!_0x4674be['isAttached'],_0x168868['isAttached']=()=>_0x168868['_isAttached'],this['_baseRoots']['set'](_0x53ecca,_0x168868),this['_baseRootsAttributes']['set'](_0x53ecca,_0x372010),_0x4674be&&this['_touchedRoots']['set'](_0x53ecca,_0x4674be);const _0x271c71=this['_makeIdsRoot'](_0x168868);this['_baseIdsRoots']['set'](_0x53ecca,_0x271c71);for(const [_0x25e887,_0x3f3fd7]of _0x168868['markers']){if(!_0x25e887['startsWith']('revision:'))continue;const _0x136d5d=_0x25e887['split'](':')[0x2];for(const _0x214b38 of _0x3f3fd7['getWalker']({'singleCharacters':!0x0})){const _0x359647=this['_getVidAttributeName'](_0x214b38),_0x41f19b='elementEnd'==_0x214b38['type']?_0x214b38['previousPosition']['path']['slice'](0x0,-0x1):_0x214b38['previousPosition']['path'],_0x504765=_0x271c71['getNodeByPath'](_0x41f19b)['getAttribute'](_0x359647);this['_touched']['set'](_0x504765,{'userId':_0x136d5d});}}}this['_startingRevisionId']=this['_revisionId'];const _0xcc1e45=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x59a28c=>!this['_touched']['has'](_0x59a28c));let _0xf16862=0x0;const _0x1ee9ea=new Map();for(const _0x44d634 in _0x5b6ccf['diffData']){const _0x3f7760=_0x5b6ccf['diffData'][_0x44d634]['attachChange'],_0x590aaa=_0x2ce503(_0x5b6ccf['diffData'][_0x44d634]['attributesAfter'])||{},_0x3f31e3=this['_makeModelFromViewString'](_0x5b6ccf['diffData'][_0x44d634]['insertions']);_0x3f31e3['rootName']=_0x44d634,_0x3f31e3['_isAttached']=!_0x3f7760||_0x3f7760['isAttached'],_0x3f31e3['isAttached']=()=>_0x3f31e3['_isAttached'],this['_diffRoots']['set'](_0x44d634,_0x3f31e3),this['_diffRootsAttributes']['set'](_0x44d634,_0x590aaa);const _0x1022c9=this['_makeIdsRoot'](_0x3f31e3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x44d634,_0x1022c9),_0x1ee9ea['set'](_0x44d634,_0x3f31e3['isAttached']()?_0x590aaa:{});for(const [_0x128c32,_0x5c2887]of _0x3f31e3['markers']){if(!_0x128c32['startsWith']('revision:'))continue;const _0x4d28da=_0x128c32['split'](':')[0x2];for(const _0x63243 of _0x5c2887['getWalker']({'singleCharacters':!0x0})){const _0x1fef94=this['_getVidAttributeName'](_0x63243),_0x3e698e=this['_revisionId']++,_0x45e741='elementEnd'==_0x63243['type']?_0x63243['previousPosition']['path']['slice'](0x0,-0x1):_0x63243['previousPosition']['path'];_0x1022c9['getNodeByPath'](_0x45e741)['_setAttribute'](_0x1fef94,_0x3e698e),this['_touched']['set'](_0x3e698e,{'userId':_0x4d28da});}}for(const _0x2f963c of this['editor']['model']['createRangeIn'](_0x3f31e3)['getWalker']({'singleCharacters':!0x0})){const _0x280c63=this['_getVidAttributeName'](_0x2f963c),_0x197d92='elementEnd'==_0x2f963c['type']?_0x2f963c['previousPosition']['path']['slice'](0x0,-0x1):_0x2f963c['previousPosition']['path'],_0x2fc1db=_0x1022c9['getNodeByPath'](_0x197d92);_0x2fc1db['getAttribute'](_0x280c63)>0x0||_0x2fc1db['_setAttribute'](_0x280c63,_0xcc1e45[_0xf16862++]);}for(const [_0x334624,_0x108acc]of _0x3f31e3['markers'])_0x334624['startsWith']('revision:')||this['_markers']['set'](_0x334624,_0x108acc);}const _0x341818=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x341818),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x341818,0x1));const _0x1612b4=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1612b4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1612b4,0x1));const _0x584f1c=Array['from'](this['_diffRoots'])['map'](([_0xe4a7b2,_0x35ebd8])=>[_0xe4a7b2,T(_0x35ebd8)]);this['_saveMetaData'](this['_lastTo'],_0x584f1c,this['_markers'],_0x1ee9ea);}['_makeModelFromViewString'](_0x2fd916){const _0x4a2ecc=JSON['parse'](_0x2fd916),_0x47cc52=this['editor']['editing']['view']['document'],_0xe56bb8=new _0x5706e6(_0x47cc52,_0x4a2ecc['map'](_0x558951=>P(_0x558951,this['editor'])));return this['editor']['data']['toModel'](_0xe56bb8);}['_saveMetaData'](_0x1efd9d,_0x265483,_0x51e5eb,_0x34de31){const _0x539824=new Map(_0x265483),_0x16f87d=new Map(_0x2ce503(_0x34de31)),_0x3c7141=new Map();for(const [_0x1ddf43,_0x367f74]of _0x51e5eb)_0x3c7141['set'](_0x1ddf43,{'start':_0x367f74['start']['clone'](),'end':_0x367f74['end']['clone'](),'rootName':_0x367f74['root']['rootName']});this['_savedMetaData']['set'](_0x1efd9d,{'roots':_0x539824,'markers':_0x3c7141,'rootsAttributes':_0x16f87d});}['_removeMetaData'](_0xece554){this['_savedMetaData']['delete'](_0xece554);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x45caab,_0x3bdfad=null){let _0x276687=null;_0x45caab['is']('documentFragment')||(_0x276687=new ut(_0x45caab['name'],{'vid_start':null===_0x3bdfad?this['_revisionId']++:_0x3bdfad++}));const _0x4e5ee5=[];for(const _0xcfa53a of _0x45caab['getChildren']())if(_0xcfa53a['is']('element')){_0x4e5ee5['push'](this['_makeIdsRoot'](_0xcfa53a,_0x3bdfad));const _0x5c4334=_0x4e5ee5[_0x4e5ee5['length']-0x1];null!==_0x3bdfad&&(_0x3bdfad=_0x5c4334['is']('element','$text')?_0x5c4334['getAttribute']('vid')+0x1:_0x5c4334['getAttribute']('vid_end')+0x1);}else{for(let _0x4840da=0x0;_0x4840da<_0xcfa53a['offsetSize'];_0x4840da++)_0x4e5ee5['push'](new ut('$text',{'vid':null===_0x3bdfad?this['_revisionId']++:_0x3bdfad++}));}if(_0x45caab['is']('documentFragment')){const _0x4018ac=F(_0x45caab['rootName']);return _0x4018ac['_insertChild'](0x0,_0x4e5ee5),_0x4018ac;}return _0x276687['_setAttribute']('vid_end',null===_0x3bdfad?this['_revisionId']++:_0x3bdfad++),_0x276687['_insertChild'](0x0,_0x4e5ee5),_0x276687;}['_calculateMetaData'](_0x3dc01c,_0x1fcf8c,_0x350529){this['_reset']();const {roots:_0xcd3f0f,markers:_0x14ea93,rootsAttributes:_0x166d66}=this['_savedMetaData']['get'](_0x3dc01c);this['_baseRoots']=new Map(_0xcd3f0f),this['_baseRootsAttributes']=new Map(_0x2ce503(_0x166d66));for(const [_0x530de4,_0x5f9c86]of this['_baseRoots'])if('$graveyard'!==_0x530de4&&(this['_diffRoots']['set'](_0x530de4,T(_0x5f9c86)),this['_diffRootsAttributes']=new Map(_0x2ce503(_0x166d66)),_0x350529)){const _0x34c249=this['_revisionId'];this['_idsRoots']['set'](_0x530de4,this['_makeIdsRoot'](_0x5f9c86)),this['_baseIdsRoots']['set'](_0x530de4,this['_makeIdsRoot'](_0x5f9c86,_0x34c249));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x350529&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3b1049,_0x214591]of _0x14ea93){const _0x19712=this['_baseRoots']['get'](_0x214591['rootName']),_0x11a4f0=this['_diffRoots']['get'](_0x214591['rootName']),_0x45b470=new ft(this['_fixPosition'](_0x214591['start'],_0x19712),this['_fixPosition'](_0x214591['end'],_0x19712)),_0x25f99a=this['_fixRange'](_0x45b470,_0x11a4f0);_0x19712['markers']['set'](_0x3b1049,_0x45b470),this['_markers']['set'](_0x3b1049,_0x25f99a);}this['_applyOperations'](_0x3dc01c,_0x1fcf8c,_0x350529);}['_applyOperations'](_0x5b9981,_0x163a84,_0x5cddba){for(const _0xaf72c of this['source']['getOperations'](_0x5b9981,_0x163a84))this['_handleOperation'](_0xaf72c,_0x5cddba);for(const _0x2b3964 of this['_diffRoots']['values']())_0x2b3964['markers']['clear']();for(const [_0x182fb0,_0x39c955]of this['_markers']){this['_diffRoots']['get'](_0x39c955['root']['rootName'])['markers']['set'](_0x182fb0,_0x39c955['clone']());}const _0x35797e=new Map(),_0x14fcdc=new Map();for(const [_0x269e00,_0xba0936]of this['_diffRoots'])_0x35797e['set'](_0x269e00,T(_0xba0936)),_0x14fcdc['set'](_0x269e00,this['_diffRootsAttributes']['get'](_0x269e00));this['_saveMetaData'](_0x163a84,_0x35797e,this['_markers'],_0x14fcdc);}['_getPreviousFrom'](_0x20d3e2){const _0xdefaed=Array['from'](this['_savedMetaData']['keys']());_0xdefaed['sort']((_0x330eec,_0x500591)=>_0x330eec-_0x500591),_0xdefaed['reverse']();for(const _0x1a1f19 of _0xdefaed)if(_0x1a1f19<_0x20d3e2)return _0x1a1f19;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2bbf41,_0x48e90d){const _0x58f8ea=Array['from'](_0x48e90d['markers'])['map'](([_0xbc3421,_0x2f17d0])=>[_0xbc3421,this['_fixRange'](_0x2f17d0,_0x2bbf41)]);_0x2bbf41['markers']=new Map(_0x58f8ea);}['_transformMarkers'](_0x3c9144){for(const _0x436e5c of this['_markers']['values']()){const _0x3d74f0=_0x436e5c['getTransformedByOperation'](_0x3c9144),_0x1b59de=ft['_createFromRanges'](_0x3d74f0);_0x436e5c['start']=_0x1b59de['start'],_0x436e5c['end']=_0x1b59de['end'];}}['_handleOperation'](_0x11be14,_0x51ffb8){if('addRoot'!=_0x11be14['type']&&'detachRoot'!=_0x11be14['type']){if('insert'==_0x11be14['type']){const _0x5295f9=_0x11be14['position']['root']['rootName'];this['_diffRoots']['has'](_0x5295f9)||(this['_diffRoots']['set'](_0x5295f9,F(_0x5295f9,!0x0)),this['_diffRootsAttributes']['set'](_0x5295f9,{}),_0x51ffb8&&this['_idsRoots']['set'](_0x5295f9,F(_0x5295f9,!0x0)));}else{if('addRootAttribute'==_0x11be14['type']||'removeRootAttribute'==_0x11be14['type']||'changeRootAttribute'==_0x11be14['type'])return void this['_handleRootAttributeOperation'](_0x11be14);'marker'==_0x11be14['type']&&this['_handleMarkerOperation'](_0x11be14);}if('marker'!==_0x11be14['type']){const _0xc56c50=this['_cloneOperation'](_0x11be14,this['_diffRoots']);_0xc56c50['_execute'](),this['_transformMarkers'](_0xc56c50);}if(_0x51ffb8)switch(_0x11be14['type']){case'insert':this['_handleInsertOperation'](_0x11be14);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x11be14);break;case'merge':this['_handleMergeOperation'](_0x11be14);break;case'split':this['_handleSplitOperation'](_0x11be14);}}else this['_handleRootOperation'](_0x11be14,_0x51ffb8);}['_cloneOperation'](_0x3bdc2b,_0xf93be8){const _0x350cd9=_0x3bdc2b['clone']();return _0x350cd9['_authorId']=_0x3bdc2b['_authorId'],this['_fixOperation'](_0x350cd9,_0xf93be8),_0x350cd9;}['_getBaseVids'](_0x304bc7){return _0x304bc7['map'](_0x5ea095=>{const _0x125143=this['_getVidAttributeName'](_0x5ea095);return Number(_0x5ea095['item']['getAttribute'](_0x125143));});}['_generateTape'](_0x58f5c0,_0x2e355c){if(_0x58f5c0['is']('element','$text'))_0x2e355c['push']({'item':_0x58f5c0,'type':'text'});else{_0x58f5c0['is']('element')&&_0x2e355c['push']({'item':_0x58f5c0,'type':'elementStart'});for(const _0x42d2e6 of _0x58f5c0['getChildren']())this['_generateTape'](_0x42d2e6,_0x2e355c);_0x58f5c0['is']('element')&&_0x2e355c['push']({'item':_0x58f5c0,'type':'elementEnd'});}return _0x2e355c;}['_getState'](){const _0x566bd5=new Map(this['_touched']),_0x4aaead=new Map(_0x566bd5),_0x585fb8=new Map(),_0xe0c338={'insertions':{},'deletions':{}},_0x42c9ab={'insertions':{},'deletions':{}},_0x35fa8a=new Map(),_0x2567c8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2567c8['delete']('$graveyard');for(const _0x545095 of _0x2567c8){const _0x3c8ab6=this['_diffRoots']['get'](_0x545095)||F(_0x545095,!0x1),_0x52c31b=this['_baseRoots']['get'](_0x545095)||F(_0x545095,!0x1);_0x3c8ab6['isAttached']()||_0x52c31b['isAttached']()?(_0xe0c338['insertions'][_0x545095]=T(_0x3c8ab6),_0xe0c338['deletions'][_0x545095]=T(_0x52c31b),this['_copyMarkers'](_0xe0c338['deletions'][_0x545095],_0x52c31b),this['_copyMarkers'](_0xe0c338['insertions'][_0x545095],_0x3c8ab6),_0x42c9ab['insertions'][_0x545095]=this['_generateTape'](this['_idsRoots']['get'](_0x545095),[]),_0x42c9ab['deletions'][_0x545095]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x545095)||F(_0x545095,!0x1),[])):_0x2567c8['delete'](_0x545095);}for(const _0x527469 of _0x2567c8){const _0x4d3fd5=_0x42c9ab['insertions'][_0x527469];for(const _0x325985 of _0x4d3fd5){const _0x3460dd=this['_getVidAttributeName'](_0x325985),_0x5f1d8c=_0x325985['item']['getAttribute'](_0x3460dd);_0x4aaead['delete'](_0x5f1d8c),_0x5f1d8c>=this['_startingRevisionId']&&_0x585fb8['set'](_0x5f1d8c,_0x566bd5['get'](_0x5f1d8c));}}for(const _0x465630 of _0x2567c8){const _0x1d8241=_0x42c9ab['insertions'][_0x465630],_0x494a25=this['_getBaseVids'](_0x42c9ab['deletions'][_0x465630]);let _0xb1fba4=0x0;for(const _0x456758 of _0x1d8241){const _0x2a315b=this['_getVidAttributeName'](_0x456758),_0x305283=_0x456758['item']['getAttribute'](_0x2a315b);if(!_0x585fb8['has'](_0x305283)&&!_0x35fa8a['has'](_0x305283)){if(_0x4aaead['has'](_0x305283))_0xb1fba4++;else{if(_0x305283!=_0x494a25[_0xb1fba4]){const _0x5c4b4b=_0x566bd5['get'](_0x305283)||_0x566bd5['get'](_0x494a25[_0xb1fba4]);for(;_0x305283!=_0x494a25[_0xb1fba4];)_0x4aaead['has'](_0x494a25[_0xb1fba4])||(_0x35fa8a['set'](_0x494a25[_0xb1fba4],_0x5c4b4b),_0x566bd5['set'](_0x494a25[_0xb1fba4],_0x5c4b4b)),_0xb1fba4++;}_0xb1fba4++;}}}}for(const _0x4ce5c4 of _0x2567c8){const _0x10dbd6=_0x42c9ab['insertions'][_0x4ce5c4];for(const _0x1bccac of _0x10dbd6){const _0x12e5a5=this['_getVidAttributeName'](_0x1bccac),_0x1fcb28=_0x1bccac['item']['getAttribute'](_0x12e5a5);if(_0x35fa8a['has'](_0x1fcb28)){const _0x5d803e=_0x35fa8a['get'](_0x1fcb28);_0x4aaead['has'](_0x1fcb28)||_0x4aaead['set'](_0x1fcb28,{..._0x5d803e}),_0x585fb8['set'](_0x1fcb28,{..._0x5d803e});}}}for(const _0x3f4cfa of _0x4aaead['keys']())_0x3f4cfa>=this['_startingRevisionId']&&_0x4aaead['delete'](_0x3f4cfa);const _0x4be531=new Map();for(const _0x293afd of _0x2567c8){let _0x774433=_0x42c9ab['insertions'][_0x293afd];for(const _0x47790f of _0x774433)if(_0x47790f['item']['is']('element','tableCell')){const _0x570ecd=this['_getVidAttributeName'](_0x47790f),_0xdeab8a=_0x47790f['item']['getAttribute'](_0x570ecd);if(_0x585fb8['has'](_0xdeab8a)){const _0x41aac5=_0x47790f['item']['parent']['parent']['getAttribute']('vid_start'),_0x56f3a5=_0x4be531['get'](_0x41aac5)||new Set();_0x56f3a5['add'](_0x585fb8['get'](_0xdeab8a)['userId']),_0x4be531['set'](_0x41aac5,_0x56f3a5);}}_0x774433=_0x42c9ab['deletions'][_0x293afd];for(const _0x1fe897 of _0x774433)if(_0x1fe897['item']['is']('element','tableCell')){const _0x2c601b=this['_getVidAttributeName'](_0x1fe897),_0x389474=_0x1fe897['item']['getAttribute'](_0x2c601b);if(_0x4aaead['has'](_0x389474)){const _0x1b7f57=_0x1fe897['item']['parent']['parent']['getAttribute']('vid_start'),_0x462e8f=_0x4be531['get'](_0x1b7f57)||new Set();_0x462e8f['add'](_0x4aaead['get'](_0x389474)['userId']),_0x4be531['set'](_0x1b7f57,_0x462e8f);}}for(const _0x407ed3 of _0x4be531['keys']())(_0x585fb8['has'](_0x407ed3)||_0x4aaead['has'](_0x407ed3))&&_0x4be531['delete'](_0x407ed3);}for(const _0x2376f1 of _0x2567c8){const _0x4b80bb=_0x42c9ab['insertions'][_0x2376f1];let _0x1dd9fb=null,_0x190cc1=null;for(const _0x2325c2 of _0x4b80bb){const _0x362505=this['_getVidAttributeName'](_0x2325c2),_0x5aec82=_0x2325c2['item']['getAttribute'](_0x362505),_0x8ccba3=_0x4be531['get'](_0x5aec82);_0x8ccba3&&'elementStart'==_0x2325c2['type']&&(_0x1dd9fb=Array['from'](_0x8ccba3)[0x0],_0x190cc1=_0x2325c2['item']['getAttribute']('vid_end')),_0x1dd9fb&&(_0x4aaead['set'](_0x5aec82,{'userId':_0x1dd9fb}),_0x585fb8['set'](_0x5aec82,{'userId':_0x1dd9fb})),_0x5aec82==_0x190cc1&&(_0x1dd9fb=null,_0x190cc1=null);}}const _0x3fc807={},_0x3be2bd=new Set();for(const _0x473230 of _0x2567c8){const _0x311e01=_0xe0c338['deletions'][_0x473230],_0x5e822c=_0xe0c338['insertions'][_0x473230];for(const {userId:_0x4e900f}of this['_touchedMarkers']['values']())null!==_0x4e900f&&_0x3be2bd['add'](_0x4e900f);for(const {userId:_0x205a7c}of this['_touchedRoots']['values']())null!==_0x205a7c&&_0x3be2bd['add'](_0x205a7c);this['_markChanges'](_0x5e822c,_0x42c9ab['insertions'][_0x473230],_0x585fb8,'insertion',_0x3be2bd),this['_markChanges'](_0x311e01,_0x42c9ab['deletions'][_0x473230],_0x4aaead,'deletion',_0x3be2bd),_0x3fc807[_0x473230]={'insertions':this['_prepareViewToSave'](_0x5e822c),'deletions':this['_prepareViewToSave'](_0x311e01),'attachChange':this['_touchedRoots']['get'](_0x473230)||null,'attributesBefore':_0x2ce503(this['_baseRootsAttributes']['get'](_0x473230))||{},'attributesAfter':_0x2ce503(this['_diffRootsAttributes']['get'](_0x473230))};}return{'diffData':_0x3fc807,'authorsIds':Array['from'](_0x3be2bd)};}['_processRootBeforeSave'](_0x2cc081){for(const [,_0x3f9f38]of _0x2cc081['markers']){const _0x3a53e1=_0x3f9f38['start']['getAncestors']()['filter'](_0x2d10d0=>'tableCell'==_0x2d10d0['name']);for(const _0xa26539 of _0x3a53e1)0x1==_0xa26539['childCount']&&_0xa26539['getChild'](0x0)['is']('element','paragraph')&&_0xa26539['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5eccee){this['_processRootBeforeSave'](_0x5eccee);const _0x2af276=this['editor']['data']['toView'](_0x5eccee,{}),_0x41bf6b=Array['from'](_0x2af276['getChildren']())['map'](_0x4c858d=>this['_getViewJson'](_0x4c858d));return JSON['stringify'](_0x41bf6b);}['_getViewJson'](_0x137a79){if(_0x137a79['is']('$text'))return _0x137a79['data'];{const _0x253186=_0x137a79;return{'type':Object['keys'](E)['find'](_0x3e1a3c=>_0x137a79 instanceof E[_0x3e1a3c]),'name':_0x253186['name'],'attributes':Array['from'](_0x253186['getAttributes']()),'children':Array['from'](_0x253186['getChildren']())['map'](_0x51e21d=>this['_getViewJson'](_0x51e21d))};}}['_markChanges'](_0x4fb247,_0x4f929f,_0x3c2e10,_0x4b9438,_0x1f3876){let _0x29ff77=null,_0xc820cf=null,_0x34e680=0x0;const _0x28c279=this['editor']['model'];for(let _0x307084=0x0;_0x307084<_0x4f929f['length'];_0x307084++){const _0x266e67=this['_getVidAttributeName'](_0x4f929f[_0x307084]),_0x329e65=_0x4f929f[_0x307084]['item']['getAttribute'](_0x266e67),_0xc79675=_0x3c2e10['get'](_0x329e65),_0x171916=_0x307084==_0x4f929f['length']-0x1;(!_0x29ff77&&_0xc79675&&(_0x29ff77=_0xc79675,_0xc820cf=_0x4f929f[_0x307084]),_0x29ff77&&(!_0xc79675||_0xc79675['userId']!=_0x29ff77['userId']))&&(_0x3e202c(_0xc79675,B(_0xc820cf,_0x4fb247,_0x28c279),B(_0x4f929f[_0x307084],_0x4fb247,_0x28c279)),_0x29ff77=_0xc79675||null,_0xc820cf=_0xc79675?_0x4f929f[_0x307084]:null),_0x29ff77&&_0x171916&&_0x3e202c(_0xc79675,B(_0xc820cf,_0x4fb247,_0x28c279),J(_0x4f929f[_0x307084],_0x4fb247,_0x28c279));}function _0x3e202c(_0x479cb6,_0x1504e9,_0x2742e0){const _0x1fa28a=_0x29ff77['userId'],_0x3a593c='revision:'+_0x4b9438+':'+_0x1fa28a+':'+_0x34e680++,_0x510144=_0x28c279['createRange'](_0x1504e9,_0x2742e0);_0x4fb247['markers']['set'](_0x3a593c,_0x510144),null!==_0x1fa28a&&_0x1f3876['add'](_0x1fa28a);}}['_getVidAttributeName'](_0x308f22){switch(_0x308f22['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x29a530,_0x427403){_0x29a530['baseVersion']=null;for(const _0x4eb272 in _0x29a530){const _0x47515a=_0x29a530[_0x4eb272];if(_0x47515a instanceof vt){const _0x393834=_0x427403['get'](_0x47515a['root']['rootName']);_0x29a530[_0x4eb272]=this['_fixPosition'](_0x47515a,_0x393834);}if(_0x47515a instanceof ft){const _0x525a15=_0x427403['get'](_0x47515a['root']['rootName']);_0x29a530[_0x4eb272]=this['_fixRange'](_0x47515a,_0x525a15);}'root'===_0x4eb272&&(_0x29a530['root']=_0x427403['get'](_0x29a530['root']['rootName']));}}['_fixRange'](_0x290007,_0x9be59d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x290007['start'],_0x9be59d),this['_fixPosition'](_0x290007['end'],_0x9be59d));}['_fixPosition'](_0x396a4d,_0x369e4a){return this['editor']['model']['createPositionFromPath'](_0x369e4a,_0x396a4d['path'],_0x396a4d['stickiness']);}['_handleInsertOperation'](_0x224282){const _0x3b32a3=this['_idsRoots']['get'](_0x224282['position']['root']['rootName']),_0x590428=this['_fixPosition'](_0x224282['position'],_0x3b32a3),_0x140d2a=null===_0x224282['_authorId']?null:_0x224282['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56e516=_0x590428['parent'],_0x3c799d=this['_revisionId'],_0xb486d1=[];for(const _0x16aa49 of _0x224282['nodes'])if(_0x16aa49['is']('element'))_0xb486d1['push'](this['_makeIdsRoot'](_0x16aa49));else{for(let _0x1f38ba=0x0;_0x1f38ba<_0x16aa49['offsetSize'];_0x1f38ba++)_0xb486d1['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x264b7e=this['_revisionId'];for(let _0x4a007f=_0x3c799d;_0x4a007f<_0x264b7e;_0x4a007f++)this['_touched']['set'](_0x4a007f,{'userId':_0x140d2a});_0x56e516['_insertChild'](_0x590428['offset'],_0xb486d1);}['_handleMoveOperation'](_0xb46c6c){(_0xb46c6c=this['_cloneOperation'](_0xb46c6c,this['_idsRoots']))['_execute']();const _0x4643f5=null===_0xb46c6c['_authorId']?null:_0xb46c6c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x250c6a=_0xb46c6c['getMovedRangeStart'](),_0x39cabe=_0x250c6a['parent'],_0x1b668b=_0x250c6a['offset'];!function _0x37fa99(_0x469281,_0x59a3b2,_0x2e7c13,_0x54b12f){for(let _0xe7fb11=_0x2e7c13;_0xe7fb11<_0x54b12f;_0xe7fb11++){const _0x1c020a=_0x59a3b2['getChild'](_0xe7fb11);_0x1c020a['is']('element','$text')?_0x469281['set'](_0x1c020a['getAttribute']('vid'),{'userId':_0x4643f5}):(_0x469281['set'](_0x1c020a['getAttribute']('vid_start'),{'userId':_0x4643f5}),_0x37fa99(_0x469281,_0x1c020a,0x0,_0x1c020a['childCount']),_0x469281['set'](_0x1c020a['getAttribute']('vid_end'),{'userId':_0x4643f5}));}}(this['_touched'],_0x39cabe,_0x1b668b,_0x1b668b+_0xb46c6c['howMany']);}['_handleMergeOperation'](_0x530a7d){const _0x17b55d=null===(_0x530a7d=this['_cloneOperation'](_0x530a7d,this['_idsRoots']))['_authorId']?null:_0x530a7d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x35170f=_0x530a7d['targetPosition']['parent'],_0x494b27=_0x530a7d['sourcePosition']['parent'],_0x1fc8ad=_0x35170f['getAttribute']('vid_end'),_0x562901=_0x494b27['getAttribute']('vid_start');_0x35170f['_setAttribute']('vid_end',_0x494b27['getAttribute']('vid_end')),_0x494b27['_setAttribute']('vid_end',_0x1fc8ad),this['_touched']['set'](_0x562901,{'userId':_0x17b55d}),this['_touched']['set'](_0x1fc8ad,{'userId':_0x17b55d}),_0x530a7d['_execute']();}['_handleSplitOperation'](_0x440392){const _0x1f1006=null===(_0x440392=this['_cloneOperation'](_0x440392,this['_idsRoots']))['_authorId']?null:_0x440392['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x187078=_0x440392['graveyardPosition'],_0x4475b8=_0x440392['splitPosition']['parent'];_0x440392['_execute']();const _0x4aa745=_0x4475b8['getAttribute']('vid_end'),_0x104f6e=_0x440392['insertionPosition']['nodeAfter'];if(_0x187078){const _0x336518=_0x104f6e['getAttribute']('vid_end'),_0x2e90ad=_0x4475b8['getAttribute']('vid_end');_0x4475b8['_setAttribute']('vid_end',_0x336518),_0x104f6e['_setAttribute']('vid_end',_0x2e90ad),this['_touched']['set'](_0x4475b8['getAttribute']('vid_end'),{'userId':_0x1f1006}),this['_touched']['set'](_0x104f6e['getAttribute']('vid_start'),{'userId':_0x1f1006});}else{const _0x14e8c1=this['_revisionId']++,_0xe00b90=this['_revisionId']++;_0x4475b8['_setAttribute']('vid_end',_0x14e8c1),_0x104f6e['_setAttribute']('vid_start',_0xe00b90),_0x104f6e['_setAttribute']('vid_end',_0x4aa745),this['_touched']['set'](_0x14e8c1,{'userId':_0x1f1006}),this['_touched']['set'](_0xe00b90,{'userId':_0x1f1006});}}['_handleMarkerOperation'](_0x1d2558){if(!_0x1d2558['affectsData'])return;const _0x182efc=(_0x1d2558=this['_cloneOperation'](_0x1d2558,this['_diffRoots']))['oldRange']?_0x1d2558['oldRange']['root']:null,_0x525034=_0x1d2558['newRange']?_0x1d2558['newRange']['root']:null;_0x182efc&&this['_markers']['delete'](_0x1d2558['name']),_0x525034&&this['_markers']['set'](_0x1d2558['name'],_0x1d2558['newRange']['clone']());const _0x965d2e=null===_0x1d2558['_authorId']?null:_0x1d2558['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56d0a4=_0x1d2558['name'];if(!this['_touchedMarkers']['has'](_0x56d0a4))return void this['_touchedMarkers']['set'](_0x56d0a4,{'range':_0x1d2558['oldRange'],'userId':_0x965d2e});const _0x15ce24=this['_touchedMarkers']['get'](_0x56d0a4),_0x3194d8=_0x15ce24['range'],_0x24cf52=_0x1d2558['newRange'];null==_0x3194d8&&null==_0x24cf52||_0x3194d8&&_0x24cf52&&_0x3194d8['isEqual'](_0x24cf52)?this['_touchedMarkers']['delete'](_0x1d2558['name']):_0x15ce24['userId']=_0x965d2e;}['_handleRootOperation'](_0x326c27,_0x49e9d0){this['_diffRoots']['has'](_0x326c27['rootName'])?this['_diffRoots']['get'](_0x326c27['rootName'])['_isAttached']=_0x326c27['isAdd']:(this['_diffRoots']['set'](_0x326c27['rootName'],F(_0x326c27['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x326c27['rootName'],{}),_0x49e9d0&&this['_idsRoots']['set'](_0x326c27['rootName'],F(_0x326c27['rootName'],!0x0)));const _0x202ea4=null===_0x326c27['_authorId']?null:_0x326c27['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e4b87=this['_touchedRoots']['get'](_0x326c27['rootName']);_0x1e4b87&&_0x1e4b87['userId']===_0x202ea4?this['_touchedRoots']['delete'](_0x326c27['rootName']):this['_touchedRoots']['set'](_0x326c27['rootName'],{'userId':_0x202ea4,'isAttached':_0x326c27['isAdd']});}['_handleRootAttributeOperation'](_0x5b48e9){const _0x4c062b=this['_diffRootsAttributes']['get'](_0x5b48e9['root']['rootName']);null===_0x5b48e9['newValue']?delete _0x4c062b[_0x5b48e9['key']]:_0x4c062b[_0x5b48e9['key']]=_0x5b48e9['newValue'];}}function T(_0x851ba6){const _0x5282ac=F(_0x851ba6['rootName'],_0x851ba6['isAttached']());for(const _0x551ca3 of _0x851ba6['getChildren']()){const _0x2b93c0=_0x551ca3['_clone'](!0x0);_0x5282ac['_appendChild'](_0x2b93c0);}return _0x5282ac;}function F(_0x3c26ec,_0x4ace7e=!0x0){const _0x529bb2=new gt();return _0x529bb2['rootName']=_0x3c26ec,_0x529bb2['_isAttached']=_0x4ace7e,_0x529bb2['isAttached']=()=>_0x529bb2['_isAttached'],_0x529bb2;}function B(_0x241466,_0x4641cd,_0x2f0b44){const _0x3aa9d9='elementEnd'==_0x241466['type']?_0x2f0b44['createPositionAt'](_0x241466['item'],'end'):_0x2f0b44['createPositionBefore'](_0x241466['item']);return _0x2f0b44['createPositionFromPath'](_0x4641cd,_0x3aa9d9['path'],_0x3aa9d9['stickiness']);}function J(_0xe12cf8,_0x4c257b,_0x1098bb){const _0x2a5725='elementStart'==_0xe12cf8['type']?_0x1098bb['createPositionAt'](_0xe12cf8['item'],0x0):_0x1098bb['createPositionAfter'](_0xe12cf8['item']);return _0x1098bb['createPositionFromPath'](_0x4c257b,_0x2a5725['path'],_0x2a5725['stickiness']);}class hs extends _0x26db05{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x754e6f,_0x2c6dcc){super(_0x754e6f),this['focusTracker']=new _0x17acf7(),this['keystrokes']=new _0x18933e(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c6dcc),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2b4ea3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1d87c4=_0x5f53a9=>_0x5f53a9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1d87c4),this['keystrokes']['set']('arrowleft',_0x1d87c4),this['keystrokes']['set']('arrowup',_0x1d87c4),this['keystrokes']['set']('arrowdown',_0x1d87c4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3051d1){this['revisionNameInputView']['fieldView']['element']['value']=_0x3051d1['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x297f1f){const _0x4e9d76=new at(this['locale'],ti),_0x40a319=_0x4e9d76['fieldView'];_0x40a319['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x23ce74=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x297f1f&&(_0x23ce74+='\x20('+m(this['locale'],'optional')+')'),(_0x4e9d76['label']=_0x23ce74,_0x40a319['on']('input',()=>{this['revisionNameInputValue']=_0x40a319['element']['value']['trim']();}),_0x4e9d76);}}class f extends _0x5842cf{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2aa50d=this['editor'],_0x4c7338=_0x2aa50d['plugins']['get']('RevisionTracker');_0x2aa50d['ui']['componentFactory']['add']('revisionHistory',_0x20f3e1=>{const _0x46556c=_0x37a4b1(_0x20f3e1),_0x5ae9bd=_0x46556c['panelView']['children'],_0x49ae98=new _0x4ea422(_0x20f3e1),_0x4cdef8=new te(_0x20f3e1),_0x3de155=new _0x3471d7(_0x20f3e1),_0x461056=new te(_0x20f3e1),_0x1b7dca=new _0x3471d7(_0x20f3e1);return _0x46556c['bind']('isEnabled')['to'](_0x4c7338,'isReady',_0x4c7338,'isEnabled',_0x2aa50d,'isReadOnly',(_0x2ffbb7,_0xac30cb,_0x2280c3)=>_0x2ffbb7&&_0xac30cb&&!_0x2280c3),_0x46556c['buttonView']['set']({'icon':_0x582502,'label':m(_0x20f3e1,'Revision\x20history'),'tooltip':!0x0}),_0x3de155['set']({'label':m(_0x20f3e1,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3de155['bind']('isEnabled')['to'](_0x4c7338,'isReady',_0x4c7338,'isEnabled',_0x2aa50d,'isReadOnly',(_0x358b56,_0x2b9f81,_0x1a682a)=>_0x358b56&&_0x2b9f81&&!_0x1a682a),_0x3de155['on']('execute',()=>this['_showDialog']()),_0x1b7dca['set']({'label':m(_0x20f3e1,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1b7dca['bind']('isEnabled')['to'](_0x4c7338,'isReady',_0x2aa50d,'isReadOnly',(_0x18824e,_0x2b092e)=>_0x18824e&&!_0x2b092e),_0x1b7dca['on']('execute',()=>{_0x2aa50d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x46556c['isOpen']=!0x1,_0x2aa50d['editing']['view']['focus']();}),_0x4cdef8['children']['add'](_0x3de155),_0x461056['children']['add'](_0x1b7dca),_0x49ae98['role']='menu',_0x49ae98['items']['addMany']([_0x4cdef8,_0x461056]),_0x5ae9bd['add'](_0x49ae98),_0x46556c;}),_0x2aa50d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x516520=this['editor'],_0x521eab=_0x516520['locale'],_0x4f9582=new _0x5a78ec(_0x521eab),_0x2f0b97=new _0x2d08e1(_0x521eab);_0x4f9582['buttonView']['set']({'icon':_0x582502,'label':m(_0x521eab,'Revision\x20history')});const _0x199f54=new _0x190d73(_0x521eab,_0x4f9582),_0x27f5fe=new _0x2470d3(_0x521eab);_0x27f5fe['set']({'label':m(_0x521eab,'Save\x20current\x20revision')}),_0x27f5fe['delegate']('execute')['to'](_0x4f9582),_0x27f5fe['on']('execute',()=>{this['_showDialog']();}),_0x199f54['children']['add'](_0x27f5fe),_0x2f0b97['items']['add'](_0x199f54);const _0x1d1273=new _0x190d73(_0x521eab,_0x4f9582),_0x5d8c71=new _0x2470d3(_0x521eab);return _0x5d8c71['set']({'label':m(_0x521eab,'Open\x20revision\x20history')}),_0x5d8c71['delegate']('execute')['to'](_0x4f9582),_0x5d8c71['on']('execute',()=>{_0x516520['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1d1273['children']['add'](_0x5d8c71),_0x2f0b97['items']['add'](_0x1d1273),_0x4f9582['panelView']['children']['add'](_0x2f0b97),_0x4f9582;}['_showDialog'](){const _0x283b2f=this['editor'],_0x561567=_0x283b2f['locale'],_0x28cc9b=_0x283b2f['plugins']['get']('Dialog'),_0x25ac5a=_0x283b2f['plugins']['get']('RevisionTracker');function _0x41d0f2(_0x5d633b){_0x283b2f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5d633b['revisionName']?_0x5d633b['revisionNameInputView']['errorText']=m(_0x561567,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x283b2f['plugins']['get'](u)['saveRevision']({'name':_0x5d633b['revisionName']}),_0x28cc9b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x41d0f2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x28cc9b['show']({'id':'revisionSave','title':m(_0x561567,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x283b2f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x28cc9b['hide']()},{'label':m(_0x283b2f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x744900){_0x744900['bind']('isEnabled')['to'](_0x25ac5a,'isReady',_0x25ac5a,'isEnabled',_0x283b2f,'isReadOnly',(_0x8fbb2e,_0xd9703e,_0x3e7b9)=>_0x8fbb2e&&_0xd9703e&&!_0x3e7b9);},'onExecute':()=>_0x41d0f2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x179d60=this['editor'],_0x21baf0=_0x179d60['locale'];this['_saveRevisionFormView']=new hs(_0x21baf0,_0x179d60['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x26db05{['changeId'];['_model'];constructor(_0x5148e7,_0x3becb8){super(_0x5148e7),this['_model']=_0x3becb8,this['changeId']=_0x3becb8['id'];const _0x5a2b66=this['bindTemplate'],_0x4c4cf2=m(_0x5148e7,_0x3becb8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3becb8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3becb8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5a2b66['to']('type',_0xd74b72=>'ck-revision-change__'+_0xd74b72)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4c4cf2}]},{'text':'\x20'+_0x3becb8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x54bf85(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2f8876){super(),this['id']=_0x2f8876['id']||_0x16b583(),this['author']=_0x2f8876['author'],this['type']=_0x2f8876['type'],this['data']=_0x2f8876['data']||{},this['rootName']=_0x2f8876['rootName'],this['set']('createdAt',_0x2f8876['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1af846,_0x55aabc){this['newRevisionId']=_0x1af846,this['oldRevisionId']=_0x55aabc,this['changes']=new _0x4f201e();}['_setChanges'](_0x95c5e6){for(const _0x520bea of _0x95c5e6)this['changes']['add'](_0x520bea);}}const Y={'c':_0x5bdcfb,'a':_0x4fd1c3,'e':_0x5c769b,'r':_0x4788b1,'u':_0x53c8a2};class d extends _0x5842cf{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x541130,_0x561ee1,j];}constructor(_0x1356c9){super(_0x1356c9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4a8883,_0x355bbf,_0x230a84)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x151daf=>{for(const _0x16b424 of this['editor']['editing']['view']['document']['roots'])_0x230a84?_0x151daf['removeClass']('ck-editor__editable__overlay',_0x16b424):_0x151daf['addClass']('ck-editor__editable__overlay',_0x16b424);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x394a4f=>null!==_0x394a4f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x336b51,_0x2659d6,_0x2adca2)=>_0x336b51&&_0x2adca2?_0x2659d6['changes']['getIndex'](_0x2adca2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1bb79a,_0x40a1c2)=>_0x1bb79a?_0x40a1c2['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x561ee1);}['init'](){const _0x2556f1=this['editor'],_0x134a68=new yt(_0x2556f1,{'direction':'backward'}),_0x3fdae4=new yt(_0x2556f1,{'direction':'forward'});(_0x2556f1['commands']['add']('showPreviousChange',_0x134a68),_0x2556f1['commands']['add']('showNextChange',_0x3fdae4),_0x2556f1['commands']['add']('restoreRevision',new _t(_0x2556f1)),this['on']('change:numberOfChanges',()=>{_0x134a68['refresh'](),_0x3fdae4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2556f1['enableReadOnlyMode']('revision-viewer'),_0x2556f1['plugins']['has']('WidgetToolbarRepository'))&&_0x2556f1['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x31164a){await this['loadRevisionData'](_0x31164a);const _0x279af1={};for(const _0xd1e189 in _0x31164a['diffData']){if(_0x31164a['diffData'][_0xd1e189]['attachChange']&&!_0x31164a['diffData'][_0xd1e189]['attachChange']['isAttached'])continue;const _0x32055f=this['_removeRevisionMarkers'](JSON['parse'](_0x31164a['diffData'][_0xd1e189]['insertions'])),_0x12a67b=this['editor']['editing']['view']['document'],_0x34152b=new _0x5706e6(_0x12a67b,_0x32055f['map'](_0x39a64e=>this['_getViewObj'](_0x39a64e)));this['editor']['data']['processor']['useFillerType']('marked'),_0x279af1[_0xd1e189]=this['editor']['data']['processor']['toData'](_0x34152b),this['editor']['data']['processor']['useFillerType']('default');}return _0x279af1;}async['getRevisionRootsAttributes'](_0x51fe79){await this['loadRevisionData'](_0x51fe79);const _0x2eb8fa={};for(const _0x4db202 in _0x51fe79['diffData'])_0x51fe79['diffData'][_0x4db202]['attachChange']&&!_0x51fe79['diffData'][_0x4db202]['attachChange']['isAttached']||(_0x2eb8fa[_0x4db202]=_0x51fe79['diffData'][_0x4db202]['attributesAfter']||{});return _0x2eb8fa;}['_removeRevisionMarkers'](_0x6ae655){return(_0x6ae655=_0x6ae655['filter'](_0x4f9c69=>!_0x4f9c69['name']||'revision-start'!==_0x4f9c69['name']&&'revision-end'!==_0x4f9c69['name']))['forEach'](_0x513272=>{'string'!=typeof _0x513272&&(_0x513272['children']=this['_removeRevisionMarkers'](_0x513272['children']),_0x513272['attributes']=_0x513272['attributes']['filter'](_0xf69a7b=>!_0xf69a7b[0x0]['startsWith']('data-revision-')));}),_0x6ae655;}async['compare'](_0x191e0e,_0x190f1a,_0x1c65d4=!0x1){if(!this['isEnabled'])return;const _0x37da97=this['diff'],_0x593a6d=this['repository'],_0x383c84='string'==typeof _0x191e0e?_0x593a6d['getRevision'](_0x191e0e):_0x191e0e,_0x557af4='string'==typeof _0x190f1a?_0x593a6d['getRevision'](_0x190f1a):_0x190f1a,_0x258d7a=_0x383c84['id'],_0x5b8231=_0x557af4?_0x557af4['id']:null;if(!_0x1c65d4&&this['diff']&&this['diff']['newRevisionId']===_0x258d7a&&this['diff']['oldRevisionId']===_0x5b8231)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x258d7a,_0x5b8231);const _0x4709eb=this['_getRevisionsRange'](_0x383c84,_0x557af4,!0x0)['map'](_0x52605d=>this['loadRevisionData'](_0x52605d));return _0x4709eb['push'](new Promise(_0x1cd10d=>{setTimeout(_0x1cd10d,0x14);})),Promise['all'](_0x4709eb)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3ab247=this['_getDiff'](_0x258d7a,_0x5b8231);for(const _0x39fd00 of _0x3ab247['changes'])this['_changeIdToChange']['set'](_0x39fd00['id'],_0x39fd00);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x49e21a=>{for(const _0x3bae21 of this['editor']['model']['document']['getRootNames']())_0x49e21a['detachRoot'](_0x3bae21);for(const _0x3b20c8 of Object['keys'](_0x3ab247['model'])){const _0x2fd3cb=_0x49e21a['addRoot'](_0x3b20c8);for(const _0x121a54 of Object['keys'](_0x3ab247['attributes'][_0x3b20c8]))_0x49e21a['setAttribute'](_0x121a54,_0x3ab247['attributes'][_0x3b20c8][_0x121a54],_0x2fd3cb);_0x49e21a['insert'](_0x3ab247['model'][_0x3b20c8],_0x2fd3cb,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3ab247['changes'])),this['isReady']=!0x0;})['catch'](_0x40ed2b=>{console['error'](_0x40ed2b),this['_cleanUp'](),_0x37da97&&(this['diff']=_0x37da97),this['isReady']=!0x0;});}['addRevisionData'](_0x2786eb,_0x210878){const _0x5e66f0=this['repository']['createRevision'](_0x2786eb);return _0x5e66f0['on']('_update',(_0x14d00a,_0x1b40f6,_0x312b35)=>_0x210878(_0x1b40f6,_0x312b35,_0x5e66f0)),this['repository']['addRevision'](_0x5e66f0),_0x5e66f0;}['loadRevisionData'](_0x2ca2a2){if(!_0x2ca2a2||_0x2ca2a2['diffData'])return Promise['resolve']();{const _0x475fc6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x475fc6,'revisionId':_0x2ca2a2['id']})['then'](_0x150589=>{_0x2ca2a2['_update']({'diffData':_0x150589['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x25a241=>{for(const _0x2563fa of this['editor']['model']['document']['getRootNames']())_0x25a241['detachRoot'](_0x2563fa);});}['_sortAndFilterDiffChanges'](_0x3a0ea5){const _0x47686b=[],_0x146ef6=new Map();for(const _0x1905f0 of this['editor']['model']['document']['getRootNames']()){const _0x2d78fa=this['editor']['editing']['view']['getDomRoot'](_0x1905f0);if(!_0x2d78fa)continue;const _0x4bbb03=_0x2d78fa['getClientRects']()['item'](0x0);_0x4bbb03&&(_0x47686b['push'](_0x1905f0),_0x146ef6['set'](_0x1905f0,_0x4bbb03));}return _0x47686b['sort']((_0xfda7b6,_0xcfb88)=>{const _0x39881d=_0x146ef6['get'](_0xfda7b6),_0x4a3c97=_0x146ef6['get'](_0xcfb88);return _0x39881d['y']-_0x4a3c97['y']||_0x39881d['x']-_0x4a3c97['x'];}),(_0x3a0ea5=_0x3a0ea5['filter'](_0x26a754=>_0x47686b['includes'](_0x26a754['rootName'])))['sort']((_0x3830fc,_0x8b7bcb)=>_0x47686b['indexOf'](_0x3830fc['rootName'])-_0x47686b['indexOf'](_0x8b7bcb['rootName'])),_0x3a0ea5;}['_makeTape'](_0xd742a5){const _0x19be91=Array['from'](_0xd742a5['markers'])['filter'](([_0x25e665,_0x396ce5])=>_0x25e665['startsWith']('revision:')&&!_0x396ce5['isCollapsed']),_0xf5e165=Array['from'](this['editor']['model']['createRangeIn'](_0xd742a5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x19be91['length'])for(const _0x56735a of _0xf5e165){const [_0x49fc25,_0x48600d]=_0x19be91[0x0],[,_0x94dc5e,_0x1e865d]=_0x49fc25['split'](':');if(_0x48600d['end']['isEqual'](_0x56735a['nextPosition'])&&_0x19be91['shift'](),(_0x56735a['previousPosition']['isEqual'](_0x48600d['start'])||_0x56735a['previousPosition']['isAfter'](_0x48600d['start']))&&('insertion'==_0x94dc5e?_0x56735a['isAdded']={'userId':_0x1e865d}:'deletion'==_0x94dc5e&&(_0x56735a['isRemoved']={'userId':_0x1e865d})),0x0==_0x19be91['length'])break;}return _0xf5e165;}['_refreshStartEndIndex'](_0x4ce56a){const _0x1e0d67=new Map();for(let _0x515a9c=0x0;_0x515a9c<_0x4ce56a['length'];_0x515a9c++)'text'===_0x4ce56a[_0x515a9c]['type']?(_0x4ce56a[_0x515a9c]['item']['startIndex']=_0x515a9c,_0x4ce56a[_0x515a9c]['item']['endIndex']=_0x515a9c):('elementStart'===_0x4ce56a[_0x515a9c]['type']?_0x4ce56a[_0x515a9c]['item']['startIndex']=_0x515a9c:'elementEnd'===_0x4ce56a[_0x515a9c]['type']&&(_0x4ce56a[_0x515a9c]['item']['endIndex']=_0x515a9c),_0x1e0d67['set'](_0x4ce56a[_0x515a9c]['id'],_0x515a9c));for(const _0x41ed08 of _0x1e0d67['values']())'elementStart'===_0x4ce56a[_0x41ed08]['type']?_0x4ce56a[_0x41ed08]['item']['endIndex']=_0x1e0d67['get'](_0x4ce56a[_0x41ed08]['pairId']):'elementEnd'===_0x4ce56a[_0x41ed08]['type']&&(_0x4ce56a[_0x41ed08]['item']['startIndex']=_0x1e0d67['get'](_0x4ce56a[_0x41ed08]['pairId']));}['_processTape'](_0x2e7f66){for(let _0x389dcb=0x0;_0x389dcb<_0x2e7f66['length'];_0x389dcb++){if('elementStart'===_0x2e7f66[_0x389dcb]['type'])_0x2e7f66[_0x389dcb]['item']['startIndex']=_0x389dcb;else{if('elementEnd'===_0x2e7f66[_0x389dcb]['type']){_0x2e7f66[_0x389dcb]['item']['endIndex']=_0x389dcb;const _0x36836b=_0x2e7f66[_0x389dcb]['item']['startIndex'];_0x2e7f66[_0x36836b]['pairId']=_0x2e7f66[_0x389dcb]['id'],_0x2e7f66[_0x389dcb]['pairId']=_0x2e7f66[_0x36836b]['id'];}else _0x2e7f66[_0x389dcb]['item']['startIndex']=_0x389dcb,_0x2e7f66[_0x389dcb]['item']['endIndex']=_0x389dcb,_0x2e7f66[_0x389dcb]['pairId']=null;}_0x2e7f66[_0x389dcb]['markersStart']||(_0x2e7f66[_0x389dcb]['markersStart']=[],_0x2e7f66[_0x389dcb]['markersEnd']=[]);}}['_markInsertions'](_0x4dc57d,_0x2ba330){const _0x585d26=_0x4dc57d['filter'](_0x4e2928=>!_0x4e2928['isAdded']);for(let _0x2821a3=0x0;_0x2821a3<_0x2ba330['length'];_0x2821a3++)_0x2ba330[_0x2821a3]['isAdded']&&(_0x585d26[_0x2821a3]['isAdded']=_0x2ba330[_0x2821a3]['isAdded']);}['_makeModelFromViewString'](_0x537975){const _0x2de2c1=JSON['parse'](_0x537975),_0x536120=this['editor']['editing']['view']['document'],_0x2927e9=new _0x5706e6(_0x536120,_0x2de2c1['map'](_0x182a3f=>this['_getViewObj'](_0x182a3f)));return this['editor']['data']['toModel'](_0x2927e9);}['_getViewObj'](_0x356c67){const _0x485ee9=this['editor']['editing']['view']['document'];if('string'==typeof _0x356c67)return new _0x5da6d8(_0x485ee9,_0x356c67);{const _0x2eab68=_0x356c67['children']['map'](_0x508861=>this['_getViewObj'](_0x508861));return new(Y[_0x356c67['type']]||_0x4ef47b)(_0x485ee9,_0x356c67['name'],_0x356c67['attributes'],_0x2eab68);}}['_getDiff'](_0x34a2aa,_0x47d426=null){const _0x184368=this['repository']['getRevision'](_0x34a2aa),_0x5d0591=_0x47d426?this['repository']['getRevision'](_0x47d426):null,_0x114091=this['_getRevisionsRange'](_0x184368,_0x5d0591),_0x36a56f=_0x114091[_0x114091['length']-0x1],_0x34e4ef=new Map(),_0x46f9d4={'model':{},'attributes':{},'changes':[]},_0x55498d=new Set(),_0xcfb043=new Map();for(let _0x3ccc94=_0x114091['length']-0x1;_0x3ccc94>=0x0;_0x3ccc94--){const _0x78ceed=_0x114091[_0x3ccc94];for(const _0x160c99 of Object['keys'](_0x78ceed['diffData']))if(_0x78ceed['diffData'][_0x160c99]['attachChange']){const _0x2b7637=_0x78ceed['diffData'][_0x160c99]['attachChange'];_0x2b7637['isAttached']?(_0x55498d['add'](_0x160c99),_0xcfb043['has'](_0x160c99)&&_0xcfb043['get'](_0x160c99)['userId']==_0x2b7637['userId']?_0xcfb043['delete'](_0x160c99):_0xcfb043['set'](_0x160c99,_0x2b7637)):_0xcfb043['has'](_0x160c99)?(_0x55498d['delete'](_0x160c99),_0xcfb043['delete'](_0x160c99)):(_0x55498d['add'](_0x160c99),_0xcfb043['set'](_0x160c99,_0x2b7637));}else _0x55498d['add'](_0x160c99);}for(const _0x25d972 of _0x55498d){const _0x565b16=_0xcfb043['has'](_0x25d972)&&!_0xcfb043['get'](_0x25d972)['isAttached'];let _0x454574=_0x565b16?_0x114091['length']-0x1:0x0;const _0x32f11b=_0x565b16?-0x1:0x1;for(;_0x114091[_0x454574];){const _0x1fd215=_0x114091[_0x454574];if(_0x1fd215['diffData'][_0x25d972]){const _0x7bd842=_0x565b16?_0x1fd215['diffData'][_0x25d972]['attributesBefore']:_0x1fd215['diffData'][_0x25d972]['attributesAfter'];_0x46f9d4['attributes'][_0x25d972]=_0x7bd842?_0x2ce503(_0x7bd842):{};break;}_0x454574+=_0x32f11b;}}for(const _0x5cdb40 of _0x114091){_0x5cdb40['model']={};for(const _0x38a4a4 of _0x5cdb40['authors'])_0x34e4ef['set'](_0x38a4a4['id'],_0x38a4a4);for(const _0x3d52ee of _0x55498d){const _0x402f5e=_0x5cdb40['diffData'][_0x3d52ee]?_0x5cdb40['diffData'][_0x3d52ee]['insertions']:'[]',_0x3dd0ec=_0x5cdb40['diffData'][_0x3d52ee]?_0x5cdb40['diffData'][_0x3d52ee]['deletions']:'[]';_0x5cdb40['model'][_0x3d52ee]={'insertions':this['_makeModelFromViewString'](_0x402f5e),'deletions':this['_makeModelFromViewString'](_0x3dd0ec)};}}for(const _0xc2aadc of _0x55498d){let _0x3b782f=null,_0xde821b=0x0;const _0x18b115=new Map(Array['from'](_0x184368['model'][_0xc2aadc]['insertions']['markers'])['filter'](([_0x5c572e])=>!_0x5c572e['startsWith']('revision:')));let _0x18fde0=0x0;for(const _0x5cc04e of _0x114091){const _0x4cfa11=this['_makeTape'](_0x5cc04e['model'][_0xc2aadc]['insertions']);_0x5cc04e==_0x184368?(_0x3b782f=_0x4cfa11,_0xde821b=_0x3b782f['length'],_0x3b782f['forEach'](_0x58ef90=>{_0x58ef90['id']=_0x18fde0++;}),this['_processTape'](_0x3b782f)):this['_markInsertions'](_0x3b782f,_0x4cfa11);const _0xd7e885=_0x3b782f['filter'](_0x550330=>!_0x550330['isAdded'])['map'](_0x3eb13b=>_0x3eb13b['id']);let _0x7fee41=0x0;const _0x4165fd=this['_makeTape'](_0x5cc04e['model'][_0xc2aadc]['deletions']);_0x4165fd['forEach'](_0x141eba=>{_0x141eba['isRemoved']?_0x141eba['id']=_0xde821b++:_0x141eba['id']=_0xd7e885[_0x7fee41++];}),this['_processTape'](_0x4165fd),this['_setDistance'](_0x3b782f,'isAdded'),this['_setDistance'](_0x4165fd,'isRemoved'),_0x5cc04e==_0x184368&&this['_markMarkers'](_0x3b782f,_0x18b115),_0x3b782f=this['_joinTapes'](_0x3b782f,_0x4165fd),this['_refreshStartEndIndex'](_0x3b782f),this['_setDistance'](_0x3b782f,'isRemoved');}_0x3b782f=_0x3b782f['filter'](_0x3a7776=>!(_0x3a7776['isAdded']&&_0x3a7776['isRemoved']));const _0x2e4901=new Map(_0x36a56f['model'][_0xc2aadc]['deletions']['markers']),_0x5a4b5d=new Set(_0x18b115['keys']());for(const _0x26dc19 of _0x2e4901['keys']())_0x5a4b5d['delete'](_0x26dc19);this['_markSuggestions'](_0x3b782f,_0x5a4b5d),this['_fixObsoleteTags'](_0x3b782f),_0x3b782f=this['_removeMissingPairs'](_0x3b782f),_0x3b782f=this['_markMismatchedRemovedTags'](_0x3b782f),_0x3b782f=this['_removeUnsupportedChanges'](_0x3b782f);const {root:_0x143076,changes:_0x29642b}=this['_makeModelFromTape'](_0x3b782f,_0x34e4ef,_0xc2aadc);_0x46f9d4['model'][_0xc2aadc]=_0x143076;const _0x589552=_0xcfb043['get'](_0xc2aadc);if(_0x589552){const _0x3d3e32=_0x34e4ef['get'](_0x589552['userId']),_0x48e76d=new r({'author':_0x3d3e32,'type':_0x589552['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xc2aadc});_0x29642b['unshift'](_0x48e76d),_0x46f9d4['attributes'][_0xc2aadc]['revisionHistoryAttachChange']=_0x48e76d['id'];}_0x46f9d4['changes']=_0x46f9d4['changes']['concat'](_0x29642b);}return _0x46f9d4;}['_markMarkers'](_0x417baa,_0x25993a){for(let _0x3df58b=0x0;_0x3df58b<_0x417baa['length'];_0x3df58b++)for(const [_0x2ac4f8,_0x57913a]of _0x25993a)_0x57913a['start']['isEqual'](_0x417baa[_0x3df58b]['previousPosition'])&&_0x417baa[_0x3df58b]['markersStart']['push'](_0x2ac4f8),_0x57913a['end']['isEqual'](_0x417baa[_0x3df58b]['nextPosition'])&&_0x417baa[_0x3df58b]['markersEnd']['push'](_0x2ac4f8);}['_joinTapes'](_0x123d08,_0x5132af){let _0x25dee4=[],_0x3a0c6d=0x0,_0x429648=0x0;for(;_0x3a0c6d<_0x123d08['length']||_0x429648<_0x5132af['length'];){const _0x3a1318=_0x123d08[_0x3a0c6d]||{},_0xd98e2c=_0x5132af[_0x429648]||{};if(_0x3a1318['id']==_0xd98e2c['id'])_0x3a0c6d++,_0x429648++,_0x25dee4['push'](_0x3a1318);else{if(_0xd98e2c['isRemoved']&&_0x3a1318['isAdded']){const {commonTape:_0x2f206b,iEnd:_0x51234c,jEnd:_0xf703d6}=this['_threeWayMerge'](_0x123d08,_0x3a0c6d,_0x5132af,_0x429648);_0x25dee4=_0x25dee4['concat'](_0x2f206b),_0x3a0c6d=_0x51234c,_0x429648=_0xf703d6;}else _0xd98e2c['isRemoved']?(_0x429648++,_0x25dee4['push'](_0xd98e2c)):(_0x3a0c6d++,_0x25dee4['push'](_0x3a1318));}}return _0x25dee4;}['_markSuggestions'](_0xf1431f,_0x52578e){const _0x2e32d3=[];for(let _0x128f19=0x0;_0x128f19<_0xf1431f['length'];_0x128f19++){for(let _0x1bb7e7=0x0;_0x1bb7e7<_0xf1431f[_0x128f19]['markersStart']['length'];_0x1bb7e7++){const _0x32d663=_0xf1431f[_0x128f19]['markersStart'][_0x1bb7e7];if(!_0x52578e['has'](_0x32d663))continue;const {group:_0x2eb477,type:_0x379c08,authorId:_0xedc35a}=_0xdc6fa6(_0x32d663);'revision-suggestion'!=_0x2eb477||'insertion'!=_0x379c08&&'deletion'!=_0x379c08||(_0x2e32d3['unshift']({'type':_0x379c08,'name':_0x32d663,'userId':_0xedc35a}),_0xf1431f[_0x128f19]['markersStart']['splice'](_0x1bb7e7,0x1),_0x1bb7e7--);}_0x536c34(_0xf1431f[_0x128f19]);for(let _0xa5a3ff=0x0;_0xa5a3ff<_0xf1431f[_0x128f19]['markersEnd']['length'];_0xa5a3ff++){const _0x5d585f=_0xf1431f[_0x128f19]['markersEnd'][_0xa5a3ff];if(!_0x52578e['has'](_0x5d585f))continue;const {group:_0x4c4b07,type:_0xd8118b}=_0xdc6fa6(_0x5d585f);if('revision-suggestion'!=_0x4c4b07||'insertion'!=_0xd8118b&&'deletion'!=_0xd8118b)continue;_0xf1431f[_0x128f19]['markersEnd']['splice'](_0xa5a3ff,0x1),_0xa5a3ff--;const _0x71e5f4=_0x2e32d3['findIndex'](_0x151d15=>_0x151d15['name']==_0x5d585f);_0x71e5f4>-0x1&&_0x2e32d3['splice'](_0x71e5f4,0x1);}}function _0xdc6fa6(_0x17107c){const _0x48ca14=_0x17107c['split'](':');return{'group':_0x48ca14[0x0],'type':_0x48ca14[0x1],'subType':_0x48ca14['length']>=0x5?_0x48ca14[0x2]:null,'id':_0x48ca14['length']<0x5?_0x48ca14[0x2]:_0x48ca14[0x3],'authorId':_0x48ca14['length']<0x5?_0x48ca14[0x3]:_0x48ca14[0x4],'markerCount':0x6==_0x48ca14['length']?_0x48ca14[0x5]:null};}function _0x536c34(_0x5dbba0){for(let _0xf80a43=0x0;_0xf80a43<_0x2e32d3['length'];_0xf80a43++){if(_0x5dbba0['isAdded']&&'insertion'==_0x2e32d3[_0xf80a43]['type'])return _0x5dbba0['isAddSuggestion']=_0x2e32d3[_0xf80a43],void delete _0x5dbba0['isAdded'];if(!_0x5dbba0['isAdded']&&!_0x5dbba0['isRemoved']&&'deletion'==_0x2e32d3[_0xf80a43]['type'])return void(_0x5dbba0['isRemoveSuggestion']=_0x2e32d3[_0xf80a43]);}}}['_setDistance'](_0x46a4c9,_0x48edf0){let _0x4ab201=0x0,_0x193d3f=!0x1;const _0x139f6d=new Map();for(const _0x2d8482 of _0x46a4c9)_0x2d8482[_0x48edf0]?_0x193d3f&&(_0x4ab201++,_0x193d3f=!0x1):(_0x4ab201++,_0x193d3f=!0x0),_0x139f6d['set'](_0x2d8482['id'],_0x4ab201);for(let _0xa666db=0x0;_0xa666db<_0x46a4c9['length'];_0xa666db++){if('isRemoved'==_0x48edf0&&_0x46a4c9[_0xa666db]['isAdded']||'isAdded'==_0x48edf0&&_0x46a4c9[_0xa666db]['isRemoved'])continue;if('text'==_0x46a4c9[_0xa666db]['type']){_0x46a4c9[_0xa666db]['distance']=0x0;continue;}const _0x5f2a1e=_0x139f6d['get'](_0x46a4c9[_0xa666db]['pairId']),_0x4f937e=_0x139f6d['get'](_0x46a4c9[_0xa666db]['id']);_0x46a4c9[_0xa666db]['distance']=_0x5f2a1e-_0x4f937e;}}['_getRevisionsRange'](_0x5bf96d,_0x3cf98b,_0x4c57f0=!0x1){const _0x42267d=[];let _0x383ed7=this['repository']['getIndex'](_0x5bf96d),_0x2096fb=this['repository']['getIndex'](_0x3cf98b);for(-0x1==_0x2096fb&&(_0x2096fb=this['repository']['_revisions']['length'],_0x4c57f0=!0x1);_0x383ed7<_0x2096fb;)_0x42267d['push'](this['repository']['getRevision'](_0x383ed7)),_0x383ed7++;return _0x4c57f0&&_0x42267d['push'](this['repository']['getRevision'](_0x383ed7)),_0x42267d;}['_threeWayMerge'](_0x4d9a61,_0x1d4810,_0x44ce8b,_0x42cf10){const _0x36a40e=this['editor']['model']['schema'];let _0x160449=_0x1d4810;for(;_0x4d9a61[_0x160449]&&_0x4d9a61[_0x160449]['isAdded'];)_0x160449++;let _0x4f6a46=_0x42cf10;for(;_0x44ce8b[_0x4f6a46]&&_0x44ce8b[_0x4f6a46]['isRemoved'];)_0x4f6a46++;_0x5288d6(_0x4d9a61,_0x1d4810,_0x160449),_0x5288d6(_0x44ce8b,_0x42cf10,_0x4f6a46);const _0x3f5f28=_0x44ce8b['slice'](_0x42cf10,_0x4f6a46)['concat'](_0x4d9a61['slice'](_0x1d4810,_0x160449));return _0x3f5f28['sort']((_0x4e6de3,_0x56a6ac)=>_0x4e6de3['side']!=_0x56a6ac['side']?_0x4e6de3['side']-_0x56a6ac['side']:_0x4e6de3['level']!=_0x56a6ac['level']?_0x4e6de3['level']-_0x56a6ac['level']:_0x4e6de3['distance']!=_0x56a6ac['distance']?_0x56a6ac['distance']-_0x4e6de3['distance']:!!_0x4e6de3['isAdded']!=!!_0x56a6ac['isAdded']?-0x1==_0x4e6de3['side']||0x0==_0x4e6de3['side']?_0x4e6de3['isAdded']?-0x1:0x1:_0x4e6de3['isAdded']?0x1:-0x1:_0x4e6de3['index']-_0x56a6ac['index']),{'commonTape':_0x3f5f28,'iEnd':_0x160449,'jEnd':_0x4f6a46};function _0x5288d6(_0x85e0b6,_0x48365e,_0x13beee){let _0x33eb24=-0x1,_0x199050=Number['POSITIVE_INFINITY'],_0x531f38=!0x0;for(let _0x2ada2d=_0x48365e;_0x2ada2d<_0x13beee;_0x2ada2d++)if(_0x36a40e['isInline'](_0x85e0b6[_0x2ada2d]['item'])||(_0x531f38=!0x1),_0x85e0b6[_0x2ada2d]['item']['startIndex']<_0x48365e&&(_0x33eb24=_0x2ada2d),_0x85e0b6[_0x2ada2d]['item']['endIndex']>=_0x13beee){_0x199050=_0x2ada2d;break;}_0x531f38&&(_0x33eb24=_0x13beee-0x1);for(let _0x4b7bf2=_0x48365e;_0x4b7bf2<_0x13beee;_0x4b7bf2++)_0x85e0b6[_0x4b7bf2]['side']=_0x4b7bf2<=_0x33eb24?-0x1:_0x4b7bf2<_0x199050?0x0:0x1,_0x85e0b6[_0x4b7bf2]['index']=_0x4b7bf2;let _0x4e8330=0x0;for(let _0x38a8f5=_0x48365e;_0x38a8f5<=_0x33eb24;_0x38a8f5++)0x0==_0x85e0b6[_0x38a8f5]['distance']?_0x85e0b6[_0x38a8f5]['level']=_0x4e8330:(_0x4e8330++,_0x85e0b6[_0x38a8f5]['level']=_0x4e8330,_0x4e8330++);for(let _0x4eba42=_0x48365e;_0x4eba42<_0x13beee;_0x4eba42++)0x0==_0x85e0b6[_0x4eba42]['side']&&(_0x85e0b6[_0x4eba42]['level']=_0x4e8330);_0x4e8330=0x0;for(let _0x318537=_0x13beee-0x1;_0x318537>=_0x199050;_0x318537--)0x0==_0x85e0b6[_0x318537]['distance']?_0x85e0b6[_0x318537]['level']=_0x4e8330:(_0x4e8330--,_0x85e0b6[_0x318537]['level']=_0x4e8330,_0x4e8330--);}}['_fixObsoleteTags'](_0x22ea2d){const _0x5cb83c=new Map(),_0x33e0f6=this['editor']['model']['schema'];for(let _0x4f6a97=0x1;_0x4f6a97<_0x22ea2d['length'];_0x4f6a97++){let _0x298c08,_0x4811ab,_0x434955;const _0x5db0c3=_0x22ea2d[_0x4f6a97],_0x26ed12=_0x22ea2d[_0x4f6a97-0x1];if('text'==_0x5db0c3['type'])continue;if(_0x5db0c3['type']!=_0x26ed12['type'])continue;if(!_0x33e0f6['isBlock'](_0x26ed12['item'])||_0x33e0f6['isLimit'](_0x26ed12['item']))continue;if(!_0x33e0f6['isBlock'](_0x5db0c3['item'])||_0x33e0f6['isLimit'](_0x5db0c3['item']))continue;if((_0x22ea2d[_0x4f6a97]['isAdded']||_0x22ea2d[_0x4f6a97]['isAddSuggestion'])&&_0x22ea2d[_0x4f6a97-0x1]['isRemoved'])_0x298c08=_0x22ea2d[_0x4f6a97],_0x4811ab=_0x22ea2d[_0x4f6a97-0x1],_0x434955=_0x4f6a97-0x1;else{if(!_0x22ea2d[_0x4f6a97]['isRemoved']||!_0x22ea2d[_0x4f6a97-0x1]['isAdded']&&!_0x22ea2d[_0x4f6a97-0x1]['isAddSuggestion'])continue;_0x298c08=_0x22ea2d[_0x4f6a97-0x1],_0x4811ab=_0x22ea2d[_0x4f6a97],_0x434955=_0x4f6a97;}const _0x38df84=_0x298c08['level']==_0x4811ab['level'],_0xa3e0ab=Math['abs'](_0x298c08['level'])<Math['abs'](_0x4811ab['level'])&&0x0==_0x4811ab['distance'];(_0x38df84||_0xa3e0ab)&&(_0x5cb83c['set'](_0x4811ab['id'],_0x298c08['id']),_0x22ea2d['splice'](_0x434955,0x1),_0x4f6a97--,_0x298c08['isAdded']=!0x1);}for(let _0xf23856=0x0;_0xf23856<_0x22ea2d['length'];_0xf23856++)_0x5cb83c['has'](_0x22ea2d[_0xf23856]['pairId'])&&(_0x22ea2d[_0xf23856]['pairId']=_0x5cb83c['get'](_0x22ea2d[_0xf23856]['pairId']));}['_removeMissingPairs'](_0x213839){const _0x3afa6c=new Set(_0x213839['map'](_0x4a8ce9=>_0x4a8ce9['id']));for(let _0x8ca994=0x0;_0x8ca994<_0x213839['length'];_0x8ca994++)_0x3afa6c['has'](_0x213839[_0x8ca994]['pairId'])||0x0==_0x213839[_0x8ca994]['distance']||(_0x213839[_0x8ca994]['isIncorrect']=!0x0);return _0x213839['filter'](_0x5ebdb5=>!_0x5ebdb5['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1332d7){const _0x535b24=new Set();for(let _0x766c7d=0x0;_0x766c7d<_0x1332d7['length'];_0x766c7d++){if(_0x535b24['has'](_0x1332d7[_0x766c7d]['id'])&&_0x1332d7[_0x766c7d]['isRemoved']&&(_0x1332d7[_0x766c7d]['isIncorrect']=!0x0),_0x1332d7[_0x766c7d]['isIncorrect'])continue;if(0x0==_0x1332d7[_0x766c7d]['distance'])continue;if('elementStart'!=_0x1332d7[_0x766c7d]['type'])continue;if(null==_0x1332d7[_0x766c7d]['pairId'])continue;let _0x4f8f5b=_0x766c7d+0x1,_0x3993e1=0x0;for(;_0x1332d7[_0x4f8f5b]['id']!=_0x1332d7[_0x766c7d]['pairId'];)'elementStart'==_0x1332d7[_0x4f8f5b]['type']?_0x3993e1++:'elementEnd'==_0x1332d7[_0x4f8f5b]['type']&&_0x3993e1--,_0x4f8f5b++;if(0x0!=_0x3993e1){if(_0x1332d7[_0x766c7d]['isRemoved'])_0x1332d7[_0x766c7d]['isIncorrect']=!0x0;else{for(;_0x4f8f5b!=_0x766c7d;)_0x1332d7[_0x4f8f5b]['isRemoved']&&0x0!=_0x1332d7[_0x4f8f5b]['distance']&&(_0x1332d7[_0x4f8f5b]['isIncorrect']=!0x0,_0x535b24['add'](_0x1332d7[_0x4f8f5b]['pairId'])),_0x4f8f5b--;}}}return _0x1332d7['filter'](_0x393ba8=>!_0x393ba8['isIncorrect']);}['_removeUnsupportedChanges'](_0x5675d7){const _0x22837b=this['editor']['model']['schema'];for(let _0x549ff4=0x0;_0x549ff4<_0x5675d7['length'];_0x549ff4++){if(!(_0x5675d7[_0x549ff4]['isAdded']||_0x5675d7[_0x549ff4]['isAddSuggestion']||_0x5675d7[_0x549ff4]['isRemoved']||_0x5675d7[_0x549ff4]['isRemoveSuggestion']))continue;if(0x0==_0x5675d7[_0x549ff4]['distance'])continue;const _0x3a4638=_0x5675d7[_0x549ff4]['item'];_0x22837b['isBlock'](_0x3a4638)||_0x22837b['isLimit'](_0x3a4638)||(_0x5675d7[_0x549ff4]['isAdded']&&delete _0x5675d7[_0x549ff4]['isAdded'],_0x5675d7[_0x549ff4]['isAddSuggestion']&&delete _0x5675d7[_0x549ff4]['isAddSuggestion'],_0x5675d7[_0x549ff4]['isRemoveSuggestion']&&delete _0x5675d7[_0x549ff4]['isRemoveSuggestion'],_0x5675d7[_0x549ff4]['isRemoved']&&(_0x5675d7[_0x549ff4]['isIncorrect']=!0x0));}return _0x5675d7['filter'](_0x34b58d=>!_0x34b58d['isIncorrect']);}['_makeModelFromTape'](_0x3fc186,_0x40f96d,_0x1a3beb){const _0xd4d2b7=new gt(),_0x5e4d6b=[],_0x39ffd8=new Map(),_0x5e1091=this['editor']['model'],_0x49000b=_0x5e1091['schema'],_0x43b563=[_0xd4d2b7],_0x41f54b={},_0x4ee6ea={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x113921=null;const _0x3bbf67=[0x0];for(let _0x22deca=0x0;_0x22deca<_0x3fc186['length'];_0x22deca++)if('elementStart'===_0x3fc186[_0x22deca]['type']){_0x3fc186[_0x22deca]['previousPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67);const _0x5d3bde=new ut(_0x3fc186[_0x22deca]['item']['name'],_0x3fc186[_0x22deca]['item']['getAttributes']());_0x43b563[0x0]['_appendChild'](_0x5d3bde),_0x3bbf67['push'](0x0),_0x43b563['unshift'](_0x5d3bde),_0x3fc186[_0x22deca]['nextPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67);}else'elementEnd'===_0x3fc186[_0x22deca]['type']?(_0x43b563['shift'](),_0x3fc186[_0x22deca]['previousPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67),_0x3bbf67['pop'](),_0x3bbf67[_0x3bbf67['length']-0x1]++,_0x3fc186[_0x22deca]['nextPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67)):(_0x3fc186[_0x22deca]['previousPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67),_0x113921?_0x113921['_data']+=_0x3fc186[_0x22deca]['item']['data']:_0x113921=new wt(_0x3fc186[_0x22deca]['item']['data'],_0x3fc186[_0x22deca]['item']['getAttributes']()),_0x3fc186[_0x22deca+0x1]&&'text'===_0x3fc186[_0x22deca+0x1]['type']&&_0x54dcd1(_0x113921,_0x3fc186[_0x22deca+0x1]['item'])||(_0x43b563[0x0]['_appendChild'](_0x113921),_0x113921=null),_0x3bbf67[_0x3bbf67['length']-0x1]+=_0x3fc186[_0x22deca]['item']['offsetSize'],_0x3fc186[_0x22deca]['nextPosition']=_0x5e1091['createPositionFromPath'](_0xd4d2b7,_0x3bbf67));for(let _0x2a473f=0x0;_0x2a473f<_0x3fc186['length'];_0x2a473f++){const _0x772e37=_0x3fc186[_0x2a473f]['previousPosition'],_0x28f26b=_0x3fc186[_0x2a473f]['nextPosition'];for(const _0x2a6351 of _0x3fc186[_0x2a473f]['markersStart'])_0x39ffd8['set'](_0x2a6351,{'start':_0x772e37,'end':null});_0x3f0ce2('isRemoveSuggestion',_0x2a473f,_0x772e37,_0x28f26b),_0x3f0ce2('isAddSuggestion',_0x2a473f,_0x772e37,_0x28f26b),_0x3f0ce2('isRemoved',_0x2a473f,_0x772e37,_0x28f26b),_0x3f0ce2('isAdded',_0x2a473f,_0x772e37,_0x28f26b);for(const _0xb53026 of _0x3fc186[_0x2a473f]['markersEnd']){_0x39ffd8['get'](_0xb53026)['end']=_0x28f26b;}}for(const [_0x5ad20e,_0x2bf1a5]of _0x39ffd8){const _0xe1945c=this['editor']['model']['createRange'](_0x2bf1a5['start'],_0x2bf1a5['end']);_0xd4d2b7['markers']['set'](_0x5ad20e,_0xe1945c);}return _0x5e4d6b['sort']((_0x46fd24,_0x500506)=>{const _0x322b8b=_0xd4d2b7['markers']['get']('revision:'+_0x46fd24['id']),_0xe30ef0=_0xd4d2b7['markers']['get']('revision:'+_0x500506['id']);return _0x322b8b['start']['isBefore'](_0xe30ef0['start'])?-0x1:_0x322b8b['start']['isAfter'](_0xe30ef0['start'])?0x1:_0x322b8b['end']['isBefore'](_0xe30ef0['end'])?-0x1:_0x322b8b['end']['isAfter'](_0xe30ef0['end'])?0x1:'add'===_0x46fd24['type']?-0x1:0x1;}),{'root':_0xd4d2b7,'changes':_0x5e4d6b};function _0x3f0ce2(_0x1b7218,_0x5b5467,_0x195f08,_0x1f20ed){const _0x434b62=!!_0x3fc186[_0x5b5467][_0x1b7218],_0x4664c8=_0x434b62?_0x3fc186[_0x5b5467][_0x1b7218]['userId']:null,_0x10530e=_0x5b5467===_0x3fc186['length']-0x1,_0x42ba2a=_0x4ee6ea[_0x1b7218][0x0],_0x4a1150=_0x49000b['isObject'](_0x3fc186[_0x5b5467]['item']);!_0x41f54b[_0x1b7218]&&_0x434b62?_0x41f54b[_0x1b7218]={'start':_0x195f08,'tapeItem':_0x3fc186[_0x5b5467],'userId':_0x4664c8,'type':_0x1b7218}:_0x41f54b[_0x1b7218]&&!_0x434b62?(_0x41f54b[_0x1b7218]['end']=_0x195f08,_0x5a0ec7(_0x41f54b[_0x1b7218]),_0x41f54b[_0x1b7218]=null):_0x41f54b[_0x1b7218]&&_0x434b62&&_0x41f54b[_0x1b7218]['userId']!==_0x4664c8&&(_0x41f54b[_0x1b7218]['end']=_0x195f08,_0x42ba2a&&_0x42ba2a['userId']===_0x41f54b[_0x1b7218]['userId']||_0x5a0ec7(_0x41f54b[_0x1b7218]),_0x41f54b[_0x1b7218]={'start':_0x195f08,'tapeItem':_0x3fc186[_0x5b5467],'userId':_0x4664c8,'type':_0x1b7218}),_0x41f54b[_0x1b7218]&&_0x4a1150&&('elementStart'!==_0x3fc186[_0x5b5467]['type']||_0x42ba2a&&_0x42ba2a['userId']===_0x4664c8||_0x4ee6ea[_0x1b7218]['unshift']({'userId':_0x4664c8,'object':_0x3fc186[_0x5b5467]['item'],'change':_0x41f54b[_0x1b7218]}),'elementEnd'===_0x3fc186[_0x5b5467]['type']&&_0x42ba2a&&_0x42ba2a['object']===_0x3fc186[_0x5b5467]['item']&&(_0x4ee6ea[_0x1b7218]['shift'](),_0x41f54b[_0x1b7218]=_0x42ba2a['change'])),_0x41f54b[_0x1b7218]&&_0x10530e&&(_0x41f54b[_0x1b7218]['end']=_0x1f20ed,_0x5a0ec7(_0x41f54b[_0x1b7218]),_0x41f54b[_0x1b7218]=null);}function _0x5a0ec7({start:_0x1d5482,end:_0x36fa5b,tapeItem:_0x50057f,userId:_0x3ffc1c,type:_0x304662}){const _0x596d7a=_0x50057f['item'],_0x23ea79=_0x5e1091['schema']['isBlock'](_0x596d7a)&&!_0x5e1091['schema']['isLimit'](_0x596d7a),_0x3ad62e=_0x1d5482['nodeAfter']==_0x36fa5b['parent']&&_0x36fa5b['isAtStart'];if(_0x23ea79&&_0x3ad62e)return;const _0x44f1a5=_0x5e1091['createRange'](_0x1d5482,_0x36fa5b),_0x12266d=_0x40f96d['get'](_0x3ffc1c),_0x287115=new r({'author':_0x12266d,'type':'isAdded'==_0x304662||'isAddSuggestion'==_0x304662?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x304662||'isRemoveSuggestion'==_0x304662},'createdAt':new Date(),'rootName':_0x1a3beb});_0x5e4d6b['push'](_0x287115),_0xd4d2b7['markers']['set']('revision:'+_0x287115['id'],_0x44f1a5);}function _0x54dcd1(_0xfb7c1b,_0x2e5733){const _0x2b3779=_0xfb7c1b['getAttributes'](),_0x42fd7e=_0x2e5733['getAttributes']();for(const _0x245fae of _0x2b3779){if(_0x245fae[0x1]!==_0x2e5733['getAttribute'](_0x245fae[0x0]))return!0x1;_0x42fd7e['next']();}return _0x42fd7e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5cb51c=>{const _0x1c19a1=_0x5cb51c['markerName']['split'](':')[0x1],_0x5432e2=this['_getChangeFromId'](_0x1c19a1);if(!_0x5432e2)return null;const _0x1ff27b='add'==_0x5432e2['type']?'insertion':'deletion',_0x24e9e7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1ff27b];return _0x5432e2['data']['isSuggestion']&&_0x24e9e7['push']('ck-suggestion-marker-'+_0x1ff27b+'-new'),this['activeChange']==_0x5432e2&&_0x24e9e7['push']('ck-suggestion-marker--active'),{'classes':_0x24e9e7,'attributes':{'data-change-id':_0x1c19a1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x55b30d=>{_0x55b30d['on']('element:pre',(_0x337bcf,_0x5f1356,_0x248e54)=>{const _0x309fc2=_0x5f1356['viewItem']['getChild'](0x0);if(!_0x309fc2||!_0x309fc2['is']('element','code'))return;if(!_0x248e54['consumable']['consume'](_0x309fc2,{'attributes':['vid_start','vid_end']}))return;const _0x2e92ef=_0x5f1356['modelRange']['start']['nodeAfter'];_0x248e54['writer']['setAttribute']('vid_start',_0x309fc2['getAttribute']('vid_start'),_0x2e92ef),_0x248e54['writer']['setAttribute']('vid_end',_0x309fc2['getAttribute']('vid_end'),_0x2e92ef);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x57cc5d=>{_0x57cc5d['on']('element',(_0x5ce7a8,_0x2b491a,_0x38803d)=>{if(!_0x38803d['consumable']['consume'](_0x2b491a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2b491a['modelRange']['isCollapsed'])return;const _0x4d9d93=_0x2b491a['modelRange']['start']['nodeAfter'];_0x4d9d93['hasAttribute']('vid_start')||_0x4d9d93['hasAttribute']('vid')||(_0x38803d['writer']['setAttribute']('vid_start',_0x2b491a['viewItem']['getAttribute']('vid_start'),_0x4d9d93),_0x38803d['writer']['setAttribute']('vid_end',_0x2b491a['viewItem']['getAttribute']('vid_end'),_0x4d9d93));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xccd77b=>_0xccd77b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xa5b286,[,_0x206562])=>{['vid_start','vid_end','vid']['includes'](_0x206562)&&(_0xa5b286['return']=!0x0,_0xa5b286['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x200240=>{_0x200240['on']('attribute:vid',(_0x1e587d,_0x4bf1bf,_0x971568)=>{if('\x20'!=_0x4bf1bf['item']['data']||_0x4bf1bf['item']['parent']['maxOffset']>0x1)return;if(!_0x971568['consumable']['consume'](_0x4bf1bf['item'],_0x1e587d['name']))return;const _0x4ba194=_0x971568['writer'],_0x242ad8=_0x971568['mapper']['toViewRange'](_0x4bf1bf['range']);_0x4ba194['wrap'](_0x242ad8,_0x4ba194['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x292ddb){const _0x3c7694=_0x292ddb['plugins']['get']('RevisionViewer');return(_0x28bed7,_0xe6362a,_0x3da81b)=>{const _0xf74a2d=_0xe6362a['markerName']['split'](':')[0x1],_0x5e67d5=_0x3c7694['_getChangeFromId'](_0xf74a2d);if(!_0x5e67d5)return null;const _0x573075='add'==_0x5e67d5['type']?'split':'merge';if(!_0x3da81b['consumable']['test'](_0xe6362a['markerRange'],_0x28bed7['name']))return;const _0x28637a=_0xe6362a['markerRange']['getWalker'](),_0x306049=_0xe6362a['markerRange']['start'],_0x48ca87=_0x292ddb['model']['schema'];let _0x49f2de=null,_0x2a292b=null,_0x1dd2ef=!0x1,_0x48e9b6=!0x1;for(const _0x46aed8 of _0x28637a){const _0x194f73=_0x46aed8['item'];_0x1dd2ef=_0x1dd2ef||_0x48ca87['isContent'](_0x194f73);const _0x56cbd6=_0x3da81b['mapper']['toViewElement'](_0x194f73);if(_0x56cbd6&&_0x56cbd6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46aed8['type']&&(_0x48ca87['isBlock'](_0x194f73)&&!_0x48ca87['isLimit'](_0x194f73)&&(_0x194f73['nextSibling']||_0x306049['isAtEnd']?_0x49f2de&&_0x49f2de['parent']==_0x194f73||(_0x49f2de=_0x194f73,_0x169d29(_0x46aed8['previousPosition']),_0x48e9b6=!0x0):_0x2a292b=_0x2a292b||_0x46aed8['previousPosition']));}function _0x169d29(_0x33da2f){const _0x12fef5=_0x3da81b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x573075}),_0x3b0c43=_0x3da81b['mapper']['toViewPosition'](_0x33da2f);_0x5e67d5['data']['isSuggestion']&&_0x3da81b['writer']['addClass']('ck-suggestion-marker-'+_0x573075+'-new',_0x12fef5),_0x3c7694['activeChange']==_0x5e67d5&&_0x3da81b['writer']['addClass']('ck-suggestion-marker--active',_0x12fef5),_0x3da81b['writer']['insert'](_0x3b0c43,_0x12fef5),_0x3da81b['mapper']['bindElementToMarker'](_0x12fef5,_0xe6362a['markerName']);}_0x1dd2ef||_0x48e9b6||!_0x2a292b||_0x169d29(_0x2a292b);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5ba0c2,_0x4d04b5,_0x4f09ee)=>{const _0x30ace2=_0x4f09ee['mapper']['markerNameToElements'](_0x4d04b5['markerName']);if(_0x30ace2){for(const _0x4f3168 of _0x30ace2)(_0x4f3168['hasClass']('ck-suggestion-marker-split')||_0x4f3168['hasClass']('ck-suggestion-marker-merge'))&&(_0x4f09ee['mapper']['unbindElementFromMarkerName'](_0x4f3168,_0x4d04b5['markerName']),_0x4f09ee['writer']['remove'](_0x4f3168));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x168b50,_0x511439,_0x545205)=>{const _0x52013d=_0x511439['markerName']['split'](':')[0x1],_0x3b0115=this['_getChangeFromId'](_0x52013d);if(!_0x3b0115)return null;const _0x2bc3d5='add'==_0x3b0115['type']?'split':'merge';if(_0x545205['consumable']['test'](_0x511439['markerRange'],_0x168b50['name']))for(const _0x150ef0 of _0x511439['markerRange']['getItems']()){if(!_0x150ef0['is']('element','softBreak'))continue;const _0x284ec7=_0x545205['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2bc3d5}),_0x34ada5=_0x545205['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x150ef0));_0x3b0115['data']['isSuggestion']&&_0x545205['writer']['addClass']('ck-suggestion-marker-'+_0x2bc3d5+'-new',_0x284ec7),this['activeChange']==_0x3b0115&&_0x545205['writer']['addClass']('ck-suggestion-marker--active',_0x284ec7),_0x545205['writer']['insert'](_0x34ada5,_0x284ec7),_0x545205['mapper']['bindElementToMarker'](_0x284ec7,_0x511439['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4d80a1=>{for(const _0x424dfd of this['editor']['model']['document']['getRootNames']()){const _0x2411c6=this['editor']['model']['document']['getRoot'](_0x424dfd),_0x432da5=this['editor']['editing']['view']['document']['getRoot'](_0x424dfd);if(_0x432da5){const _0x180a3c=_0x2411c6['getAttribute']('revisionHistoryAttachChange');if(_0x4d80a1['removeAttribute']('data-change-id',_0x432da5),_0x4d80a1['removeClass']('ck-revision-history-root-add',_0x432da5),_0x4d80a1['removeClass']('ck-revision-history-root-remove',_0x432da5),_0x4d80a1['removeClass']('ck-revision-history-root--active',_0x432da5),_0x180a3c){const _0x1e8521=this['_getChangeFromId'](_0x180a3c);if(!_0x1e8521)return null;_0x4d80a1['setAttribute']('data-change-id',_0x180a3c,_0x432da5),_0x4d80a1['addClass']('ck-revision-history-root-'+_0x1e8521['type'],_0x432da5),this['activeChange']==_0x1e8521&&_0x4d80a1['addClass']('ck-revision-history-root--active',_0x432da5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xab9aac=>'revision-comment:'+_0xab9aac,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x26fe15=>'revision-suggestion:'+_0x26fe15,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x54cbb8=>({'name':'suggestion:'+_0x54cbb8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x43eec9=>{const _0xe74935=_0x43eec9['markerName']['split'](':')[0x1];return'insertion'!=_0xe74935&&'deletion'!=_0xe74935?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xe74935]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x264d1e,_0xda0ed9,_0x296a74)=>{const _0xb652e5=_0x296a74['mapper']['markerNameToElements'](_0xda0ed9['markerName']);if(_0xb652e5){for(const _0x263eb6 of _0xb652e5)_0x263eb6['is']('uiElement')&&(_0x296a74['mapper']['unbindElementFromMarkerName'](_0x263eb6,_0xda0ed9['markerName']),_0x296a74['writer']['remove'](_0x263eb6));}},{'priority':'high'});}['_getChangeFromId'](_0xd08887){return this['_changeIdToChange']['get'](_0xd08887);}['_getViewForChange'](_0x12b704){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x12b704),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x74c5e9,_0x80de1f,_0x4e3c77,_0x52a41d)=>{_0x52a41d&&this['_balloon']['remove'](_0x52a41d),_0x4e3c77&&(this['_balloon']['add']({'view':_0x4e3c77,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x301fe4=this['editor']['editing'],_0x39e37d=this['_getChangeFromId'](_0x4e3c77['changeId']);let _0x4fdef8;if(_0x39e37d['data']['isOnRoot']){const _0x537cd2=_0x301fe4['view']['getDomRoot'](_0x39e37d['rootName']);_0x4fdef8=Array['from'](_0x537cd2['getClientRects']());}else{const _0x541469=this['editor']['model']['markers']['get']('revision:'+_0x4e3c77['changeId']);_0x4fdef8=Array['from'](_0x301fe4['mapper']['markerNameToElements'](_0x541469['name']))['map'](_0x39dad0=>_0x301fe4['view']['domConverter']['mapViewToDom'](_0x39dad0))['map'](_0x2a6202=>Array['from'](_0x2a6202['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4fdef8[0x0];return _0x4fdef8['find'](_0x267a59=>_0x267a59['top']-0x3<=this['_activeViewTarget']['y']&&_0x267a59['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x267a59['left']-0x3<=this['_activeViewTarget']['x']&&_0x267a59['right']+0x3>=this['_activeViewTarget']['x'])||_0x4fdef8[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4c7426,_0xa88e86,_0x4c135f,_0x4f9a99)=>{this['activeView']=_0x4c135f?this['_getViewForChange'](_0x4c135f):null,this['editor']['model']['change'](()=>{const _0x71935=this['editor']['editing'];_0x4f9a99&&(_0x4f9a99['data']['isOnRoot']?_0x71935['view']['change'](_0x4b9b99=>{_0x4b9b99['removeClass']('ck-revision-history-root--active',_0x71935['view']['document']['getRoot'](_0x4f9a99['rootName']));}):_0x71935['reconvertMarker']('revision:'+_0x4f9a99['id'])),_0x4c135f&&(_0x4c135f['data']['isOnRoot']?_0x71935['view']['change'](_0x3f6d5a=>{_0x3f6d5a['addClass']('ck-revision-history-root--active',_0x71935['view']['document']['getRoot'](_0x4c135f['rootName']));}):_0x71935['reconvertMarker']('revision:'+_0x4c135f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x300710,_0x2501a7)=>{if(this['activeChange'])return;const _0x533ec6=this['_findChangeIdFromDomTarget'](_0x2501a7['target']),_0xf24c1b=this['_changeIdToChange']['get'](_0x533ec6);_0xf24c1b?(this['_activeViewTarget']={'x':_0x2501a7['domEvent']['x'],'y':_0x2501a7['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xf24c1b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x124024,_0xe8a009)=>{const _0x29814b=this['_findChangeIdFromDomTarget'](_0xe8a009['target']),_0x1d1312=this['_changeIdToChange']['get'](_0x29814b);_0x1d1312?(this['_activeViewTarget']={'x':_0xe8a009['domEvent']['x'],'y':_0xe8a009['domEvent']['y']},_0x1d1312===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1d1312):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1c4924){do{const _0x16222e=_0x1c4924['getAttribute']('data-change-id');if(_0x16222e)return _0x16222e;_0x1c4924=_0x1c4924['parent'];}while(_0x1c4924);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x50ff90=>{for(const _0x46231c of this['editor']['model']['markers'])_0x50ff90['removeMarker'](_0x46231c);});}}function Z(_0x43d220,_0x1205ce){return(_0x1edce0,_0xa6734,_0x119337)=>{if(!_0x119337['consumable']['test'](_0xa6734['markerRange'],_0x1edce0['name']))return;const _0x203387=_0xa6734['markerRange']['getWalker'](),_0x15f7e4=_0xa6734['markerRange']['start'],_0xcb516c=_0x43d220['model']['schema'];let _0x5c9b57=null,_0x3b77eb=null,_0x39cb62=!0x1,_0x443e99=!0x1;for(const _0x5aeb92 of _0x203387){const _0x56850b=_0x5aeb92['item'];_0x39cb62=_0x39cb62||_0xcb516c['isContent'](_0x56850b);const _0x24e465=_0x119337['mapper']['toViewElement'](_0x56850b);if(_0x24e465&&_0x24e465['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5aeb92['type']&&(_0xcb516c['isBlock'](_0x56850b)&&!_0xcb516c['isLimit'](_0x56850b)&&(_0x56850b['nextSibling']||_0x15f7e4['isAtEnd']?_0x5c9b57&&_0x5c9b57['parent']==_0x56850b||(_0x5c9b57=_0x56850b,_0xef179d(_0x5aeb92['previousPosition']),_0x443e99=!0x0):_0x3b77eb=_0x3b77eb||_0x5aeb92['previousPosition']));}function _0xef179d(_0xcac4b4){const _0x4a39f0=_0x119337['mapper']['toViewPosition'](_0xcac4b4),_0x881fbd=_0x119337['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1205ce});_0x119337['writer']['insert'](_0x4a39f0,_0x881fbd),_0x119337['mapper']['bindElementToMarker'](_0x881fbd,_0xa6734['markerName']);}_0x39cb62||_0x443e99||!_0x3b77eb||_0xef179d(_0x3b77eb);};}class _t extends _0x5b5bd8{constructor(_0x545ce3){super(_0x545ce3);const _0x59ffb2=_0x545ce3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x59ffb2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x59ffb2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x42dde2=this['editor'],_0x1153a9=_0x42dde2['plugins']['get'](d),_0x2c5eed=_0x1153a9['isReady']?_0x1153a9['diff']['newRevisionId']:null;_0x42dde2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c5eed);}['refresh'](){const {isReady:_0x1206cf,isEnabled:_0x1d7cc2,repository:_0x9809c,diff:_0x4c360d}=this['editor']['plugins']['get'](d),_0x2e88b6=_0x4c360d&&_0x9809c['getLaterVisibleRevision'](_0x4c360d['newRevisionId']);this['isEnabled']=_0x1206cf&&_0x1d7cc2&&Boolean(_0x2e88b6);}}class yt extends _0x5b5bd8{['_step'];constructor(_0x2215e5,{direction:_0x4e6d16}){super(_0x2215e5);const _0x50f053=_0x2215e5['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4e6d16?0x1:-0x1,this['listenTo'](_0x50f053,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x50f053,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x50f053,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x21c898=this['editor'],_0x404310=_0x21c898['plugins']['get'](d),{isNavigationMode:_0x5dad65,currentChangeNumber:_0x4c9eab}=_0x404310;let _0x5074f9;if(_0x404310['activeChange']=_0x5dad65?_0x404310['diff']['changes']['get'](_0x4c9eab+this['_step']):_0x404310['diff']['changes']['first'],_0x404310['activeChange']['data']['isOnRoot'])_0x5074f9=_0x21c898['editing']['view']['getDomRoot'](_0x404310['activeChange']['rootName']);else{const _0x165b4e=_0x21c898['model']['markers']['get']('revision:'+_0x404310['activeChange']['id']);_0x5074f9=_0x437ff3(_0x21c898['editing'],_0x165b4e);}_0x3fe1e4({'target':_0x5074f9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x23b153,currentChangeNumber:_0x16efc7,numberOfChanges:_0x77cbe4,isReady:_0x2e9b56,isEnabled:_0x2f5136}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2f5136&&_0x2e9b56&&_0x77cbe4)&&(!_0x23b153||(0x1===this['_step']?_0x16efc7<_0x77cbe4-0x1:_0x16efc7>0x0));}}class _i extends _0x26db05{constructor(_0x3408b5){super(_0x3408b5);const _0x583eaa=this['bindTemplate'],_0x21fe30=new _0x3471d7(_0x3408b5),_0x232327=new _0x3471d7(_0x3408b5);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',(_0x11a743,_0x1e049d)=>_0x11a743&&_0x1e049d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x392bf8,_0x49385e,_0x2125cc,_0x3c2e6b)=>{if(!_0x392bf8)return m(_0x3408b5,'Loading...');if(!_0x2125cc)return m(_0x3408b5,'No\x20changes');const _0x5dd4c8=m(_0x3408b5,'NUMBER_OF_CHANGES',_0x2125cc);return _0x3c2e6b?m(_0x3408b5,'X_OF_Y_CHANGES',[_0x49385e+0x1,_0x2125cc]):_0x5dd4c8;}),_0x21fe30['set']({'label':m(_0x3408b5,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x599e2d}),_0x232327['set']({'label':m(_0x3408b5,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1252dd}),_0x21fe30['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x232327['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x21fe30['on']('execute',()=>this['fire']('execute','backward')),_0x232327['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',_0x583eaa['if']('_isStatusLabelVisible','ck-hidden',_0x2f5232=>!_0x2f5232)]},'children':[{'text':_0x583eaa['to']('isNavigationMode',_0x52d88d=>_0x52d88d?m(_0x3408b5,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3408b5,'Total')+':\x20')}]},{'text':_0x583eaa['to']('_statusText')}]},new _0x189078(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x21fe30,_0x232327]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5842cf{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2d22aa=this['editor']['editing']['view'];_0x2d22aa['change'](_0x1bef90=>{for(const _0x582f2d of _0x2d22aa['document']['roots'])_0x1bef90['addClass'](ce,_0x582f2d);});}['hide'](){const _0x406421=this['editor']['editing']['view'];_0x406421['change'](_0x1863d4=>{for(const _0x26cbbf of _0x406421['document']['roots'])_0x1863d4['removeClass'](ce,_0x26cbbf);});}}class w extends _0x5842cf{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x23e98d=this['editor'],_0x2ae83f=_0x23e98d['plugins']['get'](d),_0x555312=_0x23e98d['plugins']['get'](le);_0x23e98d['ui']['componentFactory']['add']('exitToEditing',_0x1f5946=>{const _0x311975=new _0x3471d7(_0x1f5946);return _0x311975['set']({'label':m(_0x1f5946,'Back\x20to\x20editing'),'icon':_0x516331,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x311975,'execute',()=>{_0x23e98d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x311975;}),_0x23e98d['ui']['componentFactory']['add']('restoreRevision',_0x1871a9=>{const _0x4f2bd2=new _0x3471d7(_0x1871a9);return _0x4f2bd2['set']({'label':m(_0x1871a9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4f2bd2['bind']('isEnabled')['to'](_0x23e98d['commands']['get']('restoreRevision')),this['listenTo'](_0x4f2bd2,'execute',()=>_0x23e98d['execute']('restoreRevision')),_0x4f2bd2;}),_0x23e98d['ui']['componentFactory']['add']('changesNavigation',_0x1602f9=>{const _0x250a76=new _i(_0x1602f9),_0x37a073=_0x23e98d['commands']['get']('showPreviousChange'),_0x38a3f2=_0x23e98d['commands']['get']('showNextChange');return _0x250a76['bind']('isBackwardNavigationEnabled')['to'](_0x37a073,'isEnabled'),_0x250a76['bind']('isForwardNavigationEnabled')['to'](_0x38a3f2,'isEnabled'),_0x250a76['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2ae83f),this['listenTo'](_0x250a76,'execute',(_0x2b180,_0x250de9)=>{_0x23e98d['execute']('forward'===_0x250de9?'showNextChange':'showPreviousChange');}),_0x250a76;}),_0x555312['show'](),_0x2ae83f['on']('change:isReady',(_0x431330,_0x493e3e,_0x21927a)=>{_0x21927a?_0x555312['hide']():_0x555312['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x2fdbda,_0x3457e7){super(_0x2fdbda,_0x3457e7);const _0x281a1e=this['bindTemplate'];this['set']({'label':m(_0x2fdbda,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2fdbda,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x281a1e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x52dc82=this['fieldView']['element'];this['_tooltipString']=_0x52dc82['scrollWidth']>_0x52dc82['clientWidth']&&_0x52dc82['value']||'';}}class oi extends _0x26db05{constructor(_0x10e785,_0xd3a45,_0x550139){super(_0x10e785);const _0x99d3fd=new _0x1d07ef();_0x99d3fd['set']({'content':_0x325b2e,'viewBox':'0\x200\x2011\x2010'});const _0x196ef8=['ck','ck-revision-history-sidebar__revision-author'];_0x550139&&_0x196ef8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2310e4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x10e785,_0x550139?'Revision\x20creator':'Revision\x20author')},'children':[_0x99d3fd,_0xd3a45['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x196ef8},'children':_0x2310e4});}}function ni(_0x153b42,_0x59925d){const _0x2f8568=_0x153b42['bindTemplate'],_0x3fcdab=_0x153b42['locale'],_0x3255b1=_0x37a4b1(_0x3fcdab);_0x3255b1['panelPosition']='sw';const _0x1dbb20=function(_0x4dd36e,_0x2d710a){const _0x3d7652=function(_0x34613a,_0x289c13){const _0x1bea22=_0x34613a['locale'],_0x521718={'Compare\x20against\x20selected':m(_0x1bea22,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1bea22,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1bea22,'Restore\x20this\x20revision')};return _0x289c13['map'](_0x158178=>{const _0x218331=_0x521718[_0x158178['name']];return _0x218331&&_0x218331!==_0x158178['name']&&(_0x158178['name']=_0x218331),_0x158178;});}(_0x4dd36e,_0x2d710a),_0x218207=new _0x4f201e();for(const _0x23628e of _0x3d7652){const _0x4084bb={'type':'button','model':new to({'label':_0x23628e['name'],'class':_0x23628e['class'],'withText':!0x0,'role':'menuitem','_action':_0x23628e['action']})};_0x4084bb['model']['bind']('isEnabled')['to'](_0x4dd36e,'isActionsDropdownOpen',_0x55e0df=>'function'!=typeof _0x23628e['isEnabled']||(!_0x55e0df||_0x23628e['isEnabled'](_0x4dd36e))),_0x218207['add'](_0x4084bb);}return _0x218207;}(_0x153b42,_0x59925d);return _0x153b42['bind']('isActionsDropdownOpen')['to'](_0x3255b1,'isOpen'),_0x3255b1['buttonView']['set']({'label':m(_0x3fcdab,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xf07bba}),_0x3255b1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2f8568['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2f8568['to'](_0x1acbdc=>_0x1acbdc['stopPropagation']())}}),_0x3255b1['on']('execute',_0x2d581a=>{_0x153b42['isReady']&&'function'==typeof _0x2d581a['source']['_action']&&_0x2d581a['source']['_action'](_0x153b42);}),_0x454c84(_0x3255b1,_0x1dbb20,{'role':'menu'}),_0x3255b1['listenTo'](_0x153b42,'change:isActionsDropdownOpen',(_0x18d1cb,_0x1697de,_0x5383e7)=>{if(_0x5383e7)for(const _0x506357 of _0x3255b1['listView']['items']){const _0x573be2=_0x506357['children']['first'],_0x5703d1=_0x59925d['find'](_0x16185b=>_0x16185b['action']===_0x573be2['_action'])['isVisible'];_0x506357['isVisible']=void 0x0===_0x5703d1||_0x5703d1(_0x153b42);}}),_0x3255b1;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x57183e,uid as _0xc88e79,Collection as _0x316ce2,logWarning as _0x5de4e6,FocusTracker as _0x1e6b74,KeystrokeHandler as _0x51ec3d,scrollViewportToShowTarget as _0x4616bc,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x973de2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5b09a8,set as _0x2e7a0f,unset as _0x354115,isEqual as _0x217dfd}from'es-toolkit/compat';import{Plugin as _0x15a41a,PendingActions as _0x1fe681,Command as _0x36aae4,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x14ccaa,getMarkerDomElement as _0x173f60,ConfirmMixin as _0x58a203,sanitizeEditorConfig as _0x56d1fd}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x50994c,Element as ut,Range as ft,ViewUIElement as _0x16c039,ViewRawElement as _0x3219e8,ViewEmptyElement as _0x4e1795,ViewAttributeElement as _0x2cc6e8,ViewContainerElement as _0x204c83,Position as vt,ViewText as _0x4c49e5,ViewElement as _0x3ab808,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0xe4f57,IconChevronUp as _0x378756,IconChevronDown as _0x4593b4,IconUndo as _0x48d0e1,IconUser as _0x112fe5,IconThreeVerticalDots as _0x208eb8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x18cf46,injectCssTransitionDisabler as ts,submitHandler as _0x413970,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x2cc8a3,ListView as _0x5055c7,ListItemView as te,ButtonView as _0x38e8b4,MenuBarMenuView as _0xed1a66,MenuBarMenuListView as _0x13f158,MenuBarMenuListItemView as _0x1f8008,MenuBarMenuListItemButtonView as _0x59f95c,ContextualBalloon as _0x236cd8,ToolbarSeparatorView as _0xdaec5e,IconView as _0x298fb4,addListToDropdown as _0x40b77b,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x537d06}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x57183e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xb9880d){super(),this['id']=_0xb9880d['id']||_0xc88e79(),this['creator']=_0xb9880d['creator']||null,this['authors']=_0xb9880d['authors']||[],this['diffData']=_0xb9880d['diffData']||null,this['toVersion']=_0xb9880d['toVersion']||0x0,this['fromVersion']=_0xb9880d['fromVersion']||0x0,this['set']('name',_0xb9880d['name']||''),this['set']('createdAt',_0xb9880d['createdAt']||new Date()),this['set']('attributes',_0xb9880d['attributes']||{});}['setName'](_0x18bb7f){this['_update']({'name':_0x18bb7f});}['setAttribute'](_0x4f377e,_0x40fe61){const _0x3d3200=_0x5b09a8(this['attributes']);_0x2e7a0f(_0x3d3200,_0x4f377e,_0x40fe61),this['_update']({'attributes':_0x3d3200});}['removeAttribute'](_0x312863){const _0x344c47=_0x5b09a8(this['attributes']);_0x354115(_0x344c47,_0x312863),this['_update']({'attributes':_0x344c47});}['_update'](_0x2e62dc,_0x55fe18=!0x1){let _0x3fd363=!0x1;const _0x20ad32={'id':this['id']},_0x3f5107=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x31582b of _0x3f5107){const _0x269ca0=_0x2e62dc[_0x31582b];void 0x0!==_0x269ca0&&_0x269ca0!==this[_0x31582b]&&(this[_0x31582b]=_0x269ca0,_0x20ad32[_0x31582b]=_0x269ca0,_0x3fd363=!0x0);}_0x3fd363&&(_0x20ad32['authors']&&(_0x20ad32['authorsIds']=_0x20ad32['authors']['map'](_0x1a60f5=>_0x1a60f5['id']),delete _0x20ad32['authors']),this['fire']('_update',_0x20ad32,_0x55fe18));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xcf7dc=>_0xcf7dc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x15a41a{['_revisions'];static get['requires'](){return[_0x14ccaa];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xeba369){super(_0xeba369),this['_revisions']=new _0x316ce2();}['afterInit'](){!async function(_0x181881){const _0x25ecb8=_0x2107f3([0x66,0x4e,0x53,0x74,0x49,0x4d,0x52,0x50,0x75,0x7a,0x77,0x46,0x32,0x6c,0x68,0x6e,0x79,0x4b,0x62,0x37,0x39,0x54,0x59,0x69,0x78,0x55,0x30,0x36,0x51,0x61,0x5a,0x64,0x71,0x76,0x33,0x58,0x72,0x47,0x56,0x44,0x34,0x42,0x45,0x70,0x4a,0x31,0x6f,0x67,0x65,0x43,0x57,0x4f,0x41,0x6b,0x38,0x48,0x35,0x6a,0x4c,0x63,0x73,0x6d]),_0x4d66c4=0xeb829,_0x76400=0x4050e032,_0xd9fe9a=0x40578012^_0x76400,_0x4966ec=window[_0x2107f3([0x44,0x61,0x74,0x65])][_0x2107f3([0x6e,0x6f,0x77])](),_0x78faa6=_0x181881[_0x2107f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x49da79=new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13165b=>{_0x78faa6[_0x2107f3([0x6f,0x6e,0x63,0x65])](_0x2107f3([0x72,0x65,0x61,0x64,0x79]),_0x13165b);}),_0x107db5={[_0x2107f3([0x6b,0x74,0x79])]:_0x2107f3([0x45,0x43]),[_0x2107f3([0x75,0x73,0x65])]:_0x2107f3([0x73,0x69,0x67]),[_0x2107f3([0x63,0x72,0x76])]:_0x2107f3([0x50,0x2d,0x32,0x35,0x36]),[_0x2107f3([0x78])]:_0x2107f3([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]),[_0x2107f3([0x79])]:_0x2107f3([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]),[_0x2107f3([0x61,0x6c,0x67])]:_0x2107f3([0x45,0x53,0x32,0x35,0x36])},_0x4c92cc=_0x78faa6[_0x2107f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2107f3([0x67,0x65,0x74])](_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2f75c3(){let _0x1d5f59,_0x2fd1df=null,_0x5e1452=null;try{if(_0x4c92cc==_0x2107f3([0x47,0x50,0x4c]))return _0x2107f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d5f59=_0x2eb2f8(),!_0x1d5f59)return _0x2107f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d5f59[_0x2107f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e1452=_0x35737d(_0x1d5f59[_0x2107f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d5f59[_0x2107f3([0x6a,0x74,0x69])])),await _0x308084()?_0x3c886f()?_0x360d75()?_0x2107f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x272fd8()?(_0x1d5f59[_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2107f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fd1df=_0x247a55(_0x2107f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d5f59[_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2107f3([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fd1df=_0x247a55(_0x2107f3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x735ad()):_0x2107f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2107f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2107f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x21c472){return _0x2107f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x360d75(){const _0x190f46=[_0x2107f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2107f3([0x74,0x72,0x69,0x61,0x6c])][_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5f59[_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4966ec/0x3e8:0xe10*_0xd9fe9a;return _0x1d5f59[_0x2107f3([0x65,0x78,0x70])]<_0x190f46;}function _0x3c886f(){const _0x3b1660=_0x1d5f59[_0x2107f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3b1660)return!0x1;if(_0x3b1660[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2107f3([0x2a])))return!0x0;if(_0x3b1660[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2107f3([0x52,0x48])))return!0x0;if(_0x3b1660[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2107f3([0x52,0x52,0x48]))){if(_0x1e80a5())return!0x0;if(_0x169f34()||_0x3420dc())return!0x0;}return!0x1;}function _0x272fd8(){const _0x44e41b=_0x1d5f59[_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44e41b||0x0==_0x44e41b[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49ea34}=new URL(window[_0x2107f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x44e41b[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49ea34))return!0x0;const _0xee73fb=_0x49ea34[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])](_0x2107f3([0x2e]));return _0x44e41b[_0x2107f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24376a=>_0x24376a[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2107f3([0x2a])))[_0x2107f3([0x6d,0x61,0x70])](_0x10e53d=>_0x10e53d[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])](_0x2107f3([0x2e])))[_0x2107f3([0x73,0x6f,0x6d,0x65])](_0x1c0800=>_0xee73fb[_0x2107f3([0x65,0x76,0x65,0x72,0x79])]((_0x1331a6,_0x5c4b76)=>_0x1c0800[_0x5c4b76]===_0x1331a6||_0x1c0800[_0x5c4b76]===_0x2107f3([0x2a])));}function _0x735ad(){return _0x2fd1df&&_0x5e1452?new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cff1c,_0x5e3e2b)=>{_0x2fd1df[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x3cff1c,_0x5e3e2b),_0x5e1452[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x36a663=>{_0x36a663!=_0x2107f3([0x56,0x61,0x6c,0x69,0x64])&&_0x3cff1c(_0x36a663);},_0x5e3e2b);}):_0x2fd1df||_0x5e1452||_0x2107f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35737d(_0x34bb1b,_0x506d42){return new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f9749=>{if(_0x537c14())return _0x4f9749(_0x2107f3([0x56,0x61,0x6c,0x69,0x64]));_0x4fc2f7(),_0x78faa6[_0x2107f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2107f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f1687=!0x1;const _0x12088c=_0xc88e79();function _0x5fad78(_0x168b51){return!!_0x168b51&&(typeof _0x168b51===_0x2107f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x168b51===_0x2107f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x168b51[_0x2107f3([0x74,0x68,0x65,0x6e])]===_0x2107f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x168b51[_0x2107f3([0x63,0x61,0x74,0x63,0x68])]===_0x2107f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x35cd23(_0x556339){_0x77e595(_0x556339)[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x2796b4=>{if(!_0x2796b4||_0x2796b4[_0x2107f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2107f3([0x6f,0x6b]))return _0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x187a71(_0x2e813c(_0x12088c+_0x506d42))!=_0x2796b4[_0x2107f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2107f3([0x56,0x61,0x6c,0x69,0x64]);})[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x5c6f7f=>(_0x4e4670(),_0x5c6f7f),()=>{const _0x322604=_0x51cc74();return null==_0x322604?(_0x4e4670(),_0x2107f3([0x56,0x61,0x6c,0x69,0x64])):_0x2107f3(_0x4966ec-_0x322604>(0x645c6432^_0x76400)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x4f9749)[_0x2107f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f9749(_0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31322b=0x40660eb2^_0x76400;function _0x4e4670(){const _0x114c87=_0x2107f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x187a71(_0x2e813c(_0x34bb1b)),_0x9e5b3b=_0x174b68(_0x187a71(window[_0x2107f3([0x4d,0x61,0x74,0x68])][_0x2107f3([0x63,0x65,0x69,0x6c])](_0x4966ec/_0x31322b)));window[_0x2107f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2107f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x114c87,_0x9e5b3b);}function _0x51cc74(){const _0x13c59e=_0x2107f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x187a71(_0x2e813c(_0x34bb1b)),_0x2c8a97=window[_0x2107f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2107f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13c59e);return _0x2c8a97?window[_0x2107f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x174b68(_0x2c8a97),0x10)*_0x31322b:null;}function _0x77e595(_0x7ef26c){return new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x319e37,_0x193169)=>{_0x7ef26c[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x319e37,_0x193169),window[_0x2107f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x193169,0x405134f2^_0x76400);});}}_0x78faa6[_0x2107f3([0x6f,0x6e])](_0x2107f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x428b31,_0x26fec5)=>{if(_0x26fec5[0x0]!=_0x34bb1b)return _0x4f9749(_0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26fec5[0x1]={..._0x26fec5[0x1],[_0x2107f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12088c};},{[_0x2107f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2107f3([0x68,0x69,0x67,0x68])}),_0x78faa6[_0x2107f3([0x6f,0x6e])](_0x2107f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d1b4f=>{_0x5fad78(_0x1d1b4f[_0x2107f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f1687=!0x0,_0x35cd23(_0x1d1b4f[_0x2107f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2107f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2107f3([0x6c,0x6f,0x77])}),_0x49da79[_0x2107f3([0x74,0x68,0x65,0x6e])](()=>{_0x3f1687||_0x4f9749(_0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x537c14(){return _0x78faa6[_0x2107f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2107f3([0x76,0x69,0x65,0x77])][_0x2107f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2107f3([0x61,0x75,0x74,0x6f]);}function _0x4fc2f7(){_0x78faa6[_0x2107f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2107f3([0x76,0x69,0x65,0x77])][_0x2107f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2107f3([0x61,0x75,0x74,0x6f]);}}function _0x247a55(_0x1e68ff){const _0xbe0ab9=[new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df30c=>setTimeout(_0x3df30c,0x4059defe^_0x76400)),_0x49da79[_0x2107f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bd970=>{const _0x3d7356=0x4050e035^_0x76400,_0x115aa3=_0x181881[_0x2107f3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x12e9fc(){_0x115aa3[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3d7356&&_0x1bd970();}_0x12e9fc(),_0x115aa3[_0x2107f3([0x6f,0x6e])](_0x2107f3([0x61,0x64,0x64]),_0x12e9fc);})),new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525cb3=>{function _0x589937(){for(const _0x345a30 in window)if(window[_0x2107f3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2107f3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x345a30))&&window[_0x345a30]==_0x4d66c4)return _0x525cb3();_0x78faa6[_0x2107f3([0x73,0x74,0x61,0x74,0x65])]!=_0x2107f3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2107f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x589937,0x4050f3ba^_0x76400);}_0x5bfd2d(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x589937();})];return window[_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2107f3([0x72,0x61,0x63,0x65])](_0xbe0ab9)[_0x2107f3([0x74,0x68,0x65,0x6e])](()=>_0x1e68ff);}async function _0x28e65d(){if(await _0x49da79,_0x5bfd2d(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x45b744=_0x181881[_0x2107f3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3d40d2=_0x181881[_0x2107f3([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])](_0x45b744[_0x2107f3([0x69,0x64])]),_0x3dd7ad=_0x3e9238(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3dd7ad[_0x2107f3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x45b744['id'],_0x3d40d2?_0x3d40d2['id']:null,!0x0),_0x3dd7ad[_0x2107f3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2107f3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3dd7ad[_0x2107f3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3dd7ad[_0x2107f3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2a04c7,void(_0x3dd7ad[_0x2107f3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2a04c7);}if(_0x5bfd2d(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x41de93=_0x3e9238(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x41de93[_0x2107f3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2107f3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x41de93[_0x2107f3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x41de93[_0x2107f3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2a04c7,_0x41de93[_0x2107f3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2a04c7;}_0x78faa6[_0x2107f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2107f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a04c7,_0x78faa6[_0x2107f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2107f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a04c7,_0x78faa6[_0x2107f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2107f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e80a5(){return _0x5bfd2d(_0x2107f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e9238(_0x2107f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2107f3([0x73,0x74,0x61,0x74,0x65])]==_0x2107f3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x169f34(){return _0x5bfd2d(_0x2107f3([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 _0x3420dc(){return _0x5bfd2d(_0x2107f3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x296f09(_0x539d52){const _0x3a5b54=_0x243f57();_0x78faa6[_0x3a5b54]=_0x2107f3([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])+_0x539d52,_0x539d52[_0x2107f3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2107f3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x243f57()]=_0x4d66c4),_0x539d52!=_0x2107f3([0x56,0x61,0x6c,0x69,0x64])&&_0x28e65d();}function _0x243f57(){const _0x2b29b8=window[_0x2107f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2107f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2107f3([0x6e,0x6f,0x77])]())[_0x2107f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2107f3([0x2e]),'');let _0x5568d6=_0x2107f3([0x66]);for(let _0x124338=0x0;_0x124338<_0x2b29b8[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x124338+=0x2){let _0x281b50=window[_0x2107f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b29b8[_0x2107f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x124338,_0x124338+0x2));_0x281b50>=_0x25ecb8[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x281b50-=_0x25ecb8[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5568d6+=_0x25ecb8[_0x281b50];}return _0x5568d6;}function _0x2eb2f8(){const _0x86c5cc=_0x4c92cc[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])](_0x2107f3([0x2e]));if(0x3!=_0x86c5cc[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5dd9b5(_0x86c5cc[0x1]);function _0x5dd9b5(_0x5e7bd5){const _0x3a7443=_0x3de8a9(_0x5e7bd5);return _0x3a7443&&_0x4c8009()?_0x3a7443:null;function _0x4c8009(){const _0x24044f=_0x3a7443[_0x2107f3([0x6a,0x74,0x69])],_0x4590eb=window[_0x2107f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24044f[_0x2107f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24044f[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a3fe8={..._0x3a7443,[_0x2107f3([0x6a,0x74,0x69])]:_0x24044f[_0x2107f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24044f[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a3fe8[_0x2107f3([0x76,0x63])],_0x2e813c(_0x4a3fe8)==_0x4590eb;}}}async function _0x308084(){let _0x5663ae=!0x0;try{const _0x20e7d4=_0x4c92cc[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])](_0x2107f3([0x2e])),[_0x3174d5,_0x75fa92,_0x53df75]=_0x20e7d4;return _0x44d918(_0x3174d5),await _0x192afe(_0x3174d5,_0x75fa92,_0x53df75),_0x5663ae;}catch(_0x4cf4ce){return!0x1;}function _0x44d918(_0x1cc55a){const _0x174a3a=_0x3de8a9(_0x1cc55a);_0x174a3a&&_0x174a3a[_0x2107f3([0x61,0x6c,0x67])]==_0x2107f3([0x45,0x53,0x32,0x35,0x36])||(_0x5663ae=!0x1);}async function _0x192afe(_0x15adc0,_0xfbfaa8,_0x2a7361){const _0x40c53b=window[_0x2107f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2107f3([0x66,0x72,0x6f,0x6d])](_0x79cdea(_0x2a7361),_0x8c1adb=>_0x8c1adb[_0x2107f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23e742=new window[(_0x2107f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2107f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15adc0+_0x2107f3([0x2e])+_0xfbfaa8),_0x57a5ca=window[_0x2107f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2107f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57a5ca)return;const _0xe654c6=await _0x57a5ca[_0x2107f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2107f3([0x6a,0x77,0x6b]),_0x107db5,{[_0x2107f3([0x6e,0x61,0x6d,0x65])]:_0x2107f3([0x45,0x43,0x44,0x53,0x41]),[_0x2107f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2107f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2107f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57a5ca[_0x2107f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2107f3([0x6e,0x61,0x6d,0x65])]:_0x2107f3([0x45,0x43,0x44,0x53,0x41]),[_0x2107f3([0x68,0x61,0x73,0x68])]:{[_0x2107f3([0x6e,0x61,0x6d,0x65])]:_0x2107f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe654c6,_0x40c53b,_0x23e742)||(_0x5663ae=!0x1);}}function _0x3de8a9(_0x3b0914){return _0x3b0914[_0x2107f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2107f3([0x65,0x79]))?JSON[_0x2107f3([0x70,0x61,0x72,0x73,0x65])](_0x79cdea(_0x3b0914)):null;}function _0x79cdea(_0x400bda){return window[_0x2107f3([0x61,0x74,0x6f,0x62])](_0x400bda[_0x2107f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2107f3([0x2b]))[_0x2107f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2107f3([0x2f])));}function _0x2e813c(_0x445467){let _0x312c1b=0x1505;function _0x5ca4a5(_0x10bfd1){for(let _0x563eb3=0x0;_0x563eb3<_0x10bfd1[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x563eb3++){const _0x52be63=_0x10bfd1[_0x2107f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x563eb3);_0x312c1b=(_0x312c1b<<0x5)+_0x312c1b+_0x52be63,_0x312c1b&=_0x312c1b;}}function _0x5c0d0a(_0x401725){Array[_0x2107f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x401725)?_0x401725[_0x2107f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c0d0a):_0x401725&&typeof _0x401725==_0x2107f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2107f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x401725)[_0x2107f3([0x73,0x6f,0x72,0x74])]()[_0x2107f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5158d6,_0x54126f])=>{_0x5ca4a5(_0x5158d6),_0x5c0d0a(_0x54126f);}):_0x5ca4a5(window[_0x2107f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x401725));}return _0x5c0d0a(_0x445467),_0x312c1b>>>0x0;}function _0x187a71(_0x4f307e){return _0x4f307e[_0x2107f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2107f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2107f3([0x30]));}function _0x174b68(_0x1be251){return _0x1be251[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2107f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2107f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bfd2d(_0x42e160){return _0x78faa6[_0x2107f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2107f3([0x68,0x61,0x73])](_0x42e160);}function _0x3e9238(_0x59fea2){return _0x78faa6[_0x2107f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2107f3([0x67,0x65,0x74])](_0x59fea2);}function _0x2a04c7(){}function _0x2107f3(_0x1e166a){return _0x1e166a['map'](_0x7f9a6b=>String['fromCharCode'](_0x7f9a6b))['join']('');}_0x296f09(await _0x2f75c3());}(this);}['createRevision'](_0x1df03d){const _0x333c2f=this['editor']['plugins']['get']('Users');return new h({'id':_0x1df03d['id'],'name':_0x1df03d['name'],'creator':_0x1df03d['creatorId']?_0x333c2f['getUser'](_0x1df03d['creatorId']):null,'diffData':_0x1df03d['diffData']||_0x1df03d['data'],'authors':_0x1df03d['authorsIds']['map'](_0x567684=>_0x333c2f['getUser'](_0x567684)),'createdAt':new Date(_0x1df03d['createdAt']),'attributes':_0x1df03d['attributes'],'fromVersion':_0x1df03d['fromVersion'],'toVersion':_0x1df03d['toVersion']});}['addRevision'](_0x22f8e5,_0x22f4f0=0x0){this['_revisions']['add'](_0x22f8e5,_0x22f4f0);}['getRevision'](_0x3e8ae0){return this['_revisions']['get'](_0x3e8ae0);}['getRevisions'](_0x590535={'toJSON':!0x1}){const _0x655b86=Array['from'](this['_revisions']);return _0x655b86['reverse'](),_0x590535['toJSON']?_0x655b86['map'](_0x527ba1=>_0x527ba1['toJSON']()):_0x655b86;}['getIndex'](_0x44d2d9){return this['_revisions']['getIndex'](_0x44d2d9);}['getEarlierVisibleRevision'](_0x455ef6){const [,_0x278e72]=this['getRevisionsIterator'](_0x455ef6,{'direction':'earlier'});return _0x278e72;}['getLaterVisibleRevision'](_0x4d5f50){const [,_0x28dd74]=this['getRevisionsIterator'](_0x4d5f50,{'direction':'later'});return _0x28dd74;}['getRevisionsInDiff'](_0x36cb1b){const _0x14ab2c=[];for(const _0x261092 of this['getRevisionsIterator'](_0x36cb1b['newRevisionId']))if(_0x14ab2c['push'](_0x261092),_0x261092['id']===_0x36cb1b['oldRevisionId'])break;return _0x14ab2c;}*['getRevisionsIterator'](_0x42c1a1,{direction:_0x210a92='earlier',filter:_0x5a0dc2=()=>!0x0}={}){const _0x571f2a='earlier'===_0x210a92?0x1:-0x1;let _0x439477=this['_revisions']['get'](_0x42c1a1),_0x3a7add=this['getIndex'](_0x439477);for(yield _0x439477;_0x439477;){if(_0x3a7add+=_0x571f2a,_0x439477=this['getRevision'](_0x3a7add),!_0x439477)return;_0x5a0dc2(_0x439477)&&(yield _0x439477);}}}function m(_0x4e5296,_0x36d5a2,_0xa694f){const t=_0x4e5296['t'];switch(_0x36d5a2){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'},_0xa694f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xa694f);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x204c83,'a':_0x2cc6e8,'e':_0x4e1795,'r':_0x3219e8,'u':_0x16c039};class u extends _0x15a41a{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x14ccaa,j,_0x1fe681];}constructor(_0x12375b){super(_0x12375b),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4cd6d5=_0xc88e79();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4cd6d5},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3ea217=this['repository']['getRevision'](0x0),_0x209a11=_0x3ea217&&null===_0x3ea217['creator']?_0x3ea217:null;if(this['_continueCurrentRevision']=!!_0x209a11&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x315a7f=this['_source']['getCurrentRevisionId'](),_0x5d06b3=this['repository']['getRevision'](_0x315a7f);if(_0x5d06b3)this['_startingVersion']=_0x5d06b3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x57de30=this['_source']['history']['_operations']['find'](_0x5227b1=>!_0x5227b1['_isInit']),_0x10544e=_0x57de30?_0x57de30['baseVersion']:this['_source']['history']['version'];_0x3ea217?(_0x3ea217['toVersion']<_0x10544e&&_0x3ea217['_update']({'toVersion':_0x10544e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x209a11['id'],this['_startingVersion']=_0x209a11['fromVersion']):(this['_startingVersion']=_0x3ea217['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x10544e,this['_continueCurrentRevision']=!0x1);}}else _0x209a11&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x209a11['toVersion'],this['editor']['model']['document']['history']['version']),_0x209a11['fromVersion']===_0x209a11['toVersion']?(0x0!==_0x209a11['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x209a11['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x209a11['id'],this['_startingVersion']=_0x209a11['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',_0x252575=>!_0x252575),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x51c799=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x835eb9;for(const _0x365d80 in _0x51c799){const _0x13f563=_0x365d80,_0x2fc88a=_0x51c799[_0x13f563];if('revisionHistoryLicenseKeyValid'==_0x2fc88a||'revisionHistoryLicenseKeyInvalid'==_0x2fc88a||'revisionHistoryLicenseKeyExpired'==_0x2fc88a||'revisionHistoryLicenseKeyDomainLimit'==_0x2fc88a||'revisionHistoryLicenseKeyNotAllowed'==_0x2fc88a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2fc88a||'revisionHistoryLicenseKeyTrialLimit'==_0x2fc88a||'revisionHistoryLicenseKeyUsageLimit'==_0x2fc88a){delete _0x51c799[_0x13f563],_0x835eb9=_0x2fc88a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x835eb9&&_0x51c799['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x835eb9&&_0x51c799['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x835eb9&&_0x51c799['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x835eb9&&_0x51c799['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x835eb9&&_0x51c799['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x835eb9&&_0x51c799['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x835eb9&&_0x51c799['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2823bf=this['repository']['getRevision'](0x0),_0x52a5d7=await this['getRevisionDocumentData'](_0x2823bf),_0x2e9bd6=await this['getRevisionRootsAttributes'](_0x2823bf);this['_replaceEditorDataWithRevisionData'](_0x52a5d7,_0x2e9bd6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3279a6){this['_source']=_0x3279a6;}async['update'](){const _0x13659b=await this['_source']['getLatestVersion']();if(_0x13659b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3d36bf=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x13659b});_0x3d36bf['authors']=_0x3d36bf['authorsIds']['map'](_0x557956=>this['editor']['plugins']['get']('Users')['getUser'](_0x557956)),this['currentRevision']['_update'](_0x3d36bf);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x28892c={},_0x2a82d0=null){const _0x2d08d6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2a82d0>this['currentRevision']['toVersion']&&(_0x2a82d0=null),null===_0x2a82d0&&(_0x2a82d0=await this['_source']['getLatestVersion']());const _0x1ec18d=this['_getFromVersion'](_0x2a82d0),_0x49ab96=this['buildRevisionData']({'from':_0x1ec18d,'to':_0x2a82d0});if(this['currentRevision']['toVersion']<_0x2a82d0){const _0xe1d666=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2a82d0,'to':_0x2a82d0});_0xe1d666['authors']=[],_0xe1d666['authorsIds']=[],_0xe1d666['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xe1d666,!0x0),delete _0xe1d666['authors'],_0x2d08d6['push'](_0xe1d666);}_0x28892c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x28892c['name']=_0x28892c['name']||null,_0x28892c['id']=_0x28892c['id']||_0xc88e79(),_0x28892c={..._0x28892c,..._0x49ab96};const _0xf1890d=this['addRevisionData'](_0x28892c);_0x2d08d6['push'](_0x28892c);const _0x586143=this['repository']['getIndex'](_0xf1890d);if(0x0!==_0x586143){const _0x12c226=this['repository']['getRevision'](_0x586143-0x1);if(_0x12c226['fromVersion']!==_0x2a82d0){const _0x459756=this['_revisionDataBuilder']['getData'](_0x2a82d0,_0x12c226['toVersion']),_0x41c6e7={'id':_0x12c226['id'],'diffData':_0x459756['diffData'],'authorsIds':_0x459756['authorsIds'],'authors':_0x459756['authorsIds']['map'](_0x3b3e9c=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b3e9c)),'fromVersion':_0x2a82d0};_0x12c226===this['currentRevision']&&(_0x41c6e7['createdAt']=new Date(_0x28892c['createdAt']['getTime']()+0xa)),_0x12c226['_update'](_0x41c6e7,!0x0),delete _0x41c6e7['authors'],_0x2d08d6['push'](_0x41c6e7);}}if(this['adapter']){for(const _0x2dc8ef of _0x2d08d6)this['_bufferUpdate'](_0x2dc8ef['id'],_0x2dc8ef,!0x0);this['sendBufferedUpdates']();}return _0xf1890d;}['addRevisionData'](_0x286ef5){const _0x37fd43=this['repository']['createRevision'](_0x286ef5);return this['adapter']&&_0x37fd43['on']('_update',(_0x437e6f,_0xac18e4,_0x3bc1b9)=>{_0x3bc1b9||(this['_bufferUpdate'](_0xac18e4['id'],_0xac18e4,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x37fd43,this['_findInsertionIndex'](_0x37fd43)),_0x37fd43;}async['getRevisionDocumentData'](_0x135909){await this['_loadRevisionData'](_0x135909);const _0x3f54e7={};for(const _0x284b21 in _0x135909['diffData']){if(_0x135909['diffData'][_0x284b21]['attachChange']&&!_0x135909['diffData'][_0x284b21]['attachChange']['isAttached'])continue;const _0x852ac6=this['_removeRevisionMarkers'](JSON['parse'](_0x135909['diffData'][_0x284b21]['insertions'])),_0x24ecea=this['editor']['editing']['view']['document'],_0x232130=new _0x50994c(_0x24ecea,_0x852ac6['map'](_0x3747d8=>P(_0x3747d8,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3f54e7[_0x284b21]=this['editor']['data']['processor']['toData'](_0x232130),this['editor']['data']['processor']['useFillerType']('default');}return _0x3f54e7;}async['getRevisionRootsAttributes'](_0x55521c){await this['_loadRevisionData'](_0x55521c);const _0x1f307a={};for(const _0x442f5c in _0x55521c['diffData'])_0x55521c['diffData'][_0x442f5c]['attachChange']&&!_0x55521c['diffData'][_0x442f5c]['attachChange']['isAttached']||(_0x1f307a[_0x442f5c]=_0x55521c['diffData'][_0x442f5c]['attributesAfter']||{});return _0x1f307a;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4ba1e9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x359dfd=0x0;_0x359dfd<_0x4ba1e9['length'];_0x359dfd++){const _0x59d3d1=_0x4ba1e9[_0x359dfd];let _0x3f1916=!0x1;for(const _0x3422d3 of Object['keys'](_0x59d3d1))void 0x0===_0x59d3d1[_0x3422d3]?delete _0x59d3d1[_0x3422d3]:'id'!==_0x3422d3&&(_0x3f1916=!0x0);_0x3f1916||(_0x4ba1e9[_0x359dfd]=null);}if(_0x4ba1e9=_0x4ba1e9['filter'](_0x45fdce=>null!==_0x45fdce),!_0x4ba1e9['length'])return;for(let _0x1fe850=0x0;_0x1fe850<_0x4ba1e9['length'];_0x1fe850++){const _0x1dcebf=_0x4ba1e9[_0x1fe850];void 0x0!==_0x1dcebf['fromVersion']&&void 0x0===_0x1dcebf['toVersion']&&(_0x1dcebf['toVersion']=this['repository']['getRevision'](_0x1dcebf['id'])['toVersion']),void 0x0!==_0x1dcebf['toVersion']&&void 0x0===_0x1dcebf['fromVersion']&&(_0x1dcebf['fromVersion']=this['repository']['getRevision'](_0x1dcebf['id'])['fromVersion']);}const _0x46246c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4ba1e9,_0x46246c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1bdbb6=>{if(_0x1bdbb6){for(const _0x516d85 of _0x1bdbb6)this['setRevisionData']({'id':_0x516d85['id'],'createdAt':_0x516d85['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xf5237f,_0x2999ec){let _0xb2e9d5=this['editor']['config']['get']('initialData'),_0x1a502b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xb2e9d5){_0xb2e9d5={};for(const _0x56114a of this['editor']['model']['document']['getRootNames']())_0xb2e9d5[_0x56114a]='';}if('string'==typeof _0xb2e9d5&&(_0xb2e9d5={'main':_0xb2e9d5}),void 0x0===_0x1a502b){_0x1a502b={};for(const _0x9ab7e0 of this['editor']['model']['document']['getRootNames']())_0x1a502b[_0x9ab7e0]={};}let _0x2202a2=!0x1;const _0x4ffb78=Object['keys'](_0xb2e9d5),_0x46a637=Object['keys'](_0xf5237f);for(const _0x44f74a of _0x4ffb78){if(_0xb2e9d5[_0x44f74a]!==_0xf5237f[_0x44f74a]&&''!==_0xb2e9d5[_0x44f74a]['trim']()){_0x2202a2=!0x0;break;}if(!_0x217dfd(_0x1a502b[_0x44f74a],_0x2999ec[_0x44f74a])&&Object['keys'](_0x1a502b[_0x44f74a])['length']>0x0){_0x2202a2=!0x0;break;}}_0x2202a2||(_0x2202a2=_0x46a637['some'](_0x328b3f=>!this['editor']['model']['document']['getRoot'](_0x328b3f))),_0x2202a2&&_0x5de4e6('editor-initial-data-replaced-with-revision-data',{'editorData':_0xb2e9d5,'editorRootsAttributes':_0x1a502b,'revisionData':_0xf5237f,'revisionRootsAttributes':_0x2999ec}),this['editor']['config']['set']('initialData',_0xf5237f),this['editor']['config']['set']('rootsAttributes',_0x2999ec);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x36e5f1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x36e5f1['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3bb573){const _0x337967=this['repository']['getRevisions']();_0x337967['reverse']();let _0xe71601=0x0;for(;_0xe71601<_0x337967['length'];){const _0x4fce98=_0x337967[_0xe71601];if(_0x4fce98===this['currentRevision']){_0xe71601++;continue;}if(_0x4fce98['id']===this['_initialRevisionId'])break;const _0x491a3c=_0x3bb573['toVersion']-_0x4fce98['toVersion']||_0x3bb573['fromVersion']-_0x4fce98['fromVersion'];if(_0x491a3c>0x0)break;if(_0x491a3c<0x0)_0xe71601++;else{if(!_0x3bb573['creator']&&_0x4fce98['creator'])break;if(_0x4fce98['creator']||!_0x3bb573['creator']){if(_0x3bb573['createdAt']>_0x4fce98['createdAt'])break;_0xe71601++;}else _0xe71601++;}}return _0xe71601;}['setRevisionData'](_0x231273){const _0x1786b0=this['repository']['getRevision'](_0x231273['id']);if(_0x231273['createdAt']&&(_0x231273['createdAt']=new Date(_0x231273['createdAt'])),_0x231273['authorsIds']){const _0x1d6e4f=this['editor']['plugins']['get']('Users');_0x231273['authors']=_0x231273['authorsIds']['map'](_0x597140=>_0x1d6e4f['getUser'](_0x597140));}_0x1786b0['_update'](_0x231273,!0x0);}['buildRevisionData']({revision:_0x2eecf6=null,from:_0x19696f=null,to:_0x42d11c=null}){_0x19696f=null!==_0x19696f?_0x19696f:_0x2eecf6['fromVersion'],_0x42d11c=null!==_0x42d11c?_0x42d11c:_0x2eecf6['toVersion'];const _0x387fbc=this['_revisionDataBuilder']['getData'](_0x19696f,_0x42d11c),_0x4b92ec={'diffData':_0x387fbc['diffData'],'authorsIds':_0x387fbc['authorsIds'],'fromVersion':_0x19696f,'toVersion':_0x42d11c};if(!_0x2eecf6||_0x42d11c!==_0x2eecf6['toVersion']){const _0x2f309c=_0x42d11c-0x1,_0x3c487f=this['_source']['history']['getOperation'](_0x2f309c);_0x4b92ec['createdAt']=_0x3c487f&&_0x3c487f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x19696f===this['_loadedStateData']['fromVersion']){for(const _0x2a805f of this['_loadedStateData']['authors'])_0x4b92ec['authorsIds']['includes'](_0x2a805f['id'])||_0x4b92ec['authorsIds']['push'](_0x2a805f['id']);}return _0x4b92ec;}['_loadRevisionData'](_0x2b3df7){if(!_0x2b3df7||_0x2b3df7['diffData'])return Promise['resolve']();{const _0x35c176=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x35c176,'revisionId':_0x2b3df7['id']})['then'](_0x5797b2=>{_0x2b3df7['diffData']=_0x5797b2['diffData'];});}}['_bufferUpdate'](_0x5124ac,_0xdd4e51,_0x1acfed){if(this['_bufferedUpdates']['has'](_0x5124ac)){const _0x414ed8=this['_bufferedUpdates']['get'](_0x5124ac);_0xdd4e51=_0x1acfed?{..._0x414ed8,..._0xdd4e51}:{..._0xdd4e51,..._0x414ed8};}this['_bufferedUpdates']['set'](_0x5124ac,_0xdd4e51);}['_getFromVersion'](_0x2ad8ce){const _0x163aa9=this['repository']['getRevisions']();_0x163aa9['reverse'](),_0x163aa9['shift']();const _0x5f0a9a=_0x163aa9['find'](_0x18c59b=>_0x18c59b['toVersion']<=_0x2ad8ce)['toVersion'];return _0x5f0a9a<this['_startingVersion']?this['_startingVersion']:_0x5f0a9a;}['_createInitialRevision'](_0x3d6880){const _0x275646=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x275646)this['_initialRevisionId']=_0x275646['id'];else{const _0x567bcb=!this['editor']['model']['document']['roots']['find'](_0x21f420=>this['editor']['model']['hasContent'](_0x21f420)),_0x5aa75f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f6916=m(this['editor']['locale'],_0x567bcb?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d6880,'to':_0x3d6880,'id':this['_initialRevisionId'],'name':_0x2f6916,'creatorId':_0x5aa75f});}}['_createCurrentRevision'](_0x1cacd2){const _0x2eb5c6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2eb5c6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1cacd2,'to':_0x1cacd2,'id':_0x2eb5c6,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4a9b82,from:_0x5114ea,to:_0x4a505b,creatorId:_0x577df4,id:_0x431490}){const _0x4e8c1f=this['buildRevisionData']({'from':_0x5114ea,'to':_0x4a505b});_0x4e8c1f['name']=_0x4a9b82,_0x4e8c1f['creatorId']=_0x577df4,_0x4e8c1f['id']=_0x431490;const _0x3ce656=this['addRevisionData'](_0x4e8c1f);return this['adapter']&&this['_bufferUpdate'](_0x4e8c1f['id'],_0x4e8c1f,!0x0),_0x3ce656;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2d0c42){return(_0x2d0c42=_0x2d0c42['filter'](_0x3227b4=>!_0x3227b4['name']||'revision-start'!==_0x3227b4['name']&&'revision-end'!==_0x3227b4['name']))['forEach'](_0x3ff14f=>{'string'!=typeof _0x3ff14f&&(_0x3ff14f['children']=this['_removeRevisionMarkers'](_0x3ff14f['children']),_0x3ff14f['attributes']=_0x3ff14f['attributes']['filter'](_0x595339=>!_0x595339[0x0]['startsWith']('data-revision-')));}),_0x2d0c42;}}function P(_0x1ec663,_0x572a25){const _0x150929=_0x572a25['editing']['view']['document'];if('string'==typeof _0x1ec663)return new _0x4c49e5(_0x150929,_0x1ec663);{const _0xb2465d=_0x1ec663['children']['map'](_0x2bf11d=>P(_0x2bf11d,_0x572a25));return new(E[_0x1ec663['type']]||_0x3ab808)(_0x150929,_0x1ec663['name'],_0x1ec663['attributes'],_0xb2465d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5776b8){this['editor']=_0x5776b8,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'](_0x5a84d1){this['source']=_0x5a84d1;const _0x31e36b=new Map(),_0x436402=new Map(),_0x150fed=this['editor']['model']['document']['roots']['map'](_0x3287fc=>_0x3287fc['rootName']);for(const _0x2a6aad of _0x150fed){const _0x3c8ddc=this['editor']['model']['document']['getRoot'](_0x2a6aad),_0x578cc9=T(_0x3c8ddc);_0x31e36b['set'](_0x2a6aad,_0x578cc9),_0x436402['set'](_0x2a6aad,Object['fromEntries'](_0x3c8ddc['getAttributes']()));}const _0x6bf6bb=Array['from'](this['editor']['model']['markers'])['map'](_0x590f3d=>[_0x590f3d['name'],_0x590f3d['getRange']()]),_0x235042=this['source']['version'];this['_saveMetaData'](_0x235042,_0x31e36b,_0x6bf6bb,_0x436402),this['_startingRevisionId']=this['_revisionId'];const _0x415357=new Map(),_0x5ee07f=new Map();for(const _0x15a069 of _0x150fed){const _0x1461ac=F(_0x15a069);_0x415357['set'](_0x15a069,_0x1461ac),_0x5ee07f['set'](_0x15a069,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x415357,[],_0x5ee07f);}['getData'](_0x1cb8de,_0xcb04b0){if(this['_lastFrom']===_0x1cb8de&&this['_lastTo']<=_0xcb04b0)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xcb04b0,!0x0);else{if(!this['_savedMetaData']['has'](_0x1cb8de)){const _0x34f398=this['_getPreviousFrom'](_0x1cb8de);this['_calculateMetaData'](_0x34f398,_0x1cb8de,!0x1);}this['_calculateMetaData'](_0x1cb8de,_0xcb04b0,!0x0);}return this['_lastFrom']=_0x1cb8de,this['_lastTo']=_0xcb04b0,this['_getState']();}['loadState'](_0x55d798){this['_reset'](),this['_lastFrom']=_0x55d798['fromVersion'],this['_lastTo']=_0x55d798['toVersion'];for(const _0x4f5677 in _0x55d798['diffData']){const _0x511004=_0x55d798['diffData'][_0x4f5677]['attachChange'],_0x5970c5=_0x5b09a8(_0x55d798['diffData'][_0x4f5677]['attributesBefore'])||{},_0x108547=this['_makeModelFromViewString'](_0x55d798['diffData'][_0x4f5677]['deletions']);_0x108547['rootName']=_0x4f5677,_0x108547['_isAttached']=!_0x511004||!_0x511004['isAttached'],_0x108547['isAttached']=()=>_0x108547['_isAttached'],this['_baseRoots']['set'](_0x4f5677,_0x108547),this['_baseRootsAttributes']['set'](_0x4f5677,_0x5970c5),_0x511004&&this['_touchedRoots']['set'](_0x4f5677,_0x511004);const _0x4dd051=this['_makeIdsRoot'](_0x108547);this['_baseIdsRoots']['set'](_0x4f5677,_0x4dd051);for(const [_0x10797d,_0x131fa1]of _0x108547['markers']){if(!_0x10797d['startsWith']('revision:'))continue;const _0x2c5d08=_0x10797d['split'](':')[0x2];for(const _0x243aca of _0x131fa1['getWalker']({'singleCharacters':!0x0})){const _0x55ef6c=this['_getVidAttributeName'](_0x243aca),_0x4c879b='elementEnd'==_0x243aca['type']?_0x243aca['previousPosition']['path']['slice'](0x0,-0x1):_0x243aca['previousPosition']['path'],_0x96c4c9=_0x4dd051['getNodeByPath'](_0x4c879b)['getAttribute'](_0x55ef6c);this['_touched']['set'](_0x96c4c9,{'userId':_0x2c5d08});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3a9212=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x21962d=>!this['_touched']['has'](_0x21962d));let _0x3d2e91=0x0;const _0x2f8c49=new Map();for(const _0x5039fa in _0x55d798['diffData']){const _0x46b7d2=_0x55d798['diffData'][_0x5039fa]['attachChange'],_0x5066c1=_0x5b09a8(_0x55d798['diffData'][_0x5039fa]['attributesAfter'])||{},_0x105a48=this['_makeModelFromViewString'](_0x55d798['diffData'][_0x5039fa]['insertions']);_0x105a48['rootName']=_0x5039fa,_0x105a48['_isAttached']=!_0x46b7d2||_0x46b7d2['isAttached'],_0x105a48['isAttached']=()=>_0x105a48['_isAttached'],this['_diffRoots']['set'](_0x5039fa,_0x105a48),this['_diffRootsAttributes']['set'](_0x5039fa,_0x5066c1);const _0x125125=this['_makeIdsRoot'](_0x105a48,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5039fa,_0x125125),_0x2f8c49['set'](_0x5039fa,_0x105a48['isAttached']()?_0x5066c1:{});for(const [_0x4e4f94,_0x2da4d8]of _0x105a48['markers']){if(!_0x4e4f94['startsWith']('revision:'))continue;const _0x5dbcff=_0x4e4f94['split'](':')[0x2];for(const _0x149f9d of _0x2da4d8['getWalker']({'singleCharacters':!0x0})){const _0x8dc316=this['_getVidAttributeName'](_0x149f9d),_0x5d18cd=this['_revisionId']++,_0x3d6abb='elementEnd'==_0x149f9d['type']?_0x149f9d['previousPosition']['path']['slice'](0x0,-0x1):_0x149f9d['previousPosition']['path'];_0x125125['getNodeByPath'](_0x3d6abb)['_setAttribute'](_0x8dc316,_0x5d18cd),this['_touched']['set'](_0x5d18cd,{'userId':_0x5dbcff});}}for(const _0x1192cd of this['editor']['model']['createRangeIn'](_0x105a48)['getWalker']({'singleCharacters':!0x0})){const _0x48bc76=this['_getVidAttributeName'](_0x1192cd),_0x578c37='elementEnd'==_0x1192cd['type']?_0x1192cd['previousPosition']['path']['slice'](0x0,-0x1):_0x1192cd['previousPosition']['path'],_0x2f9bf0=_0x125125['getNodeByPath'](_0x578c37);_0x2f9bf0['getAttribute'](_0x48bc76)>0x0||_0x2f9bf0['_setAttribute'](_0x48bc76,_0x3a9212[_0x3d2e91++]);}for(const [_0x1f59c2,_0x7bd26]of _0x105a48['markers'])_0x1f59c2['startsWith']('revision:')||this['_markers']['set'](_0x1f59c2,_0x7bd26);}const _0x323382=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x323382),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x323382,0x1));const _0x1ccbd3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1ccbd3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ccbd3,0x1));const _0x4a982d=Array['from'](this['_diffRoots'])['map'](([_0x15c0e4,_0x2ca400])=>[_0x15c0e4,T(_0x2ca400)]);this['_saveMetaData'](this['_lastTo'],_0x4a982d,this['_markers'],_0x2f8c49);}['_makeModelFromViewString'](_0x30d1ce){const _0x4377ad=JSON['parse'](_0x30d1ce),_0x16cfe1=this['editor']['editing']['view']['document'],_0x4a15a0=new _0x50994c(_0x16cfe1,_0x4377ad['map'](_0x58acc2=>P(_0x58acc2,this['editor'])));return this['editor']['data']['toModel'](_0x4a15a0);}['_saveMetaData'](_0x164dfd,_0x1241af,_0x5d7ae5,_0x5212a4){const _0x27d10c=new Map(_0x1241af),_0x4f3dc6=new Map(_0x5b09a8(_0x5212a4)),_0x3eb3c6=new Map();for(const [_0x4099e7,_0x2a206d]of _0x5d7ae5)_0x3eb3c6['set'](_0x4099e7,{'start':_0x2a206d['start']['clone'](),'end':_0x2a206d['end']['clone'](),'rootName':_0x2a206d['root']['rootName']});this['_savedMetaData']['set'](_0x164dfd,{'roots':_0x27d10c,'markers':_0x3eb3c6,'rootsAttributes':_0x4f3dc6});}['_removeMetaData'](_0x398738){this['_savedMetaData']['delete'](_0x398738);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x56183b,_0x367218=null){let _0x424023=null;_0x56183b['is']('documentFragment')||(_0x424023=new ut(_0x56183b['name'],{'vid_start':null===_0x367218?this['_revisionId']++:_0x367218++}));const _0x3a8cfb=[];for(const _0x15148a of _0x56183b['getChildren']())if(_0x15148a['is']('element')){_0x3a8cfb['push'](this['_makeIdsRoot'](_0x15148a,_0x367218));const _0x238de6=_0x3a8cfb[_0x3a8cfb['length']-0x1];null!==_0x367218&&(_0x367218=_0x238de6['is']('element','$text')?_0x238de6['getAttribute']('vid')+0x1:_0x238de6['getAttribute']('vid_end')+0x1);}else{for(let _0x4d1540=0x0;_0x4d1540<_0x15148a['offsetSize'];_0x4d1540++)_0x3a8cfb['push'](new ut('$text',{'vid':null===_0x367218?this['_revisionId']++:_0x367218++}));}if(_0x56183b['is']('documentFragment')){const _0x2aa660=F(_0x56183b['rootName']);return _0x2aa660['_insertChild'](0x0,_0x3a8cfb),_0x2aa660;}return _0x424023['_setAttribute']('vid_end',null===_0x367218?this['_revisionId']++:_0x367218++),_0x424023['_insertChild'](0x0,_0x3a8cfb),_0x424023;}['_calculateMetaData'](_0x4bbbbb,_0x2cc7db,_0x125abd){this['_reset']();const {roots:_0x3e8f3c,markers:_0x1d586e,rootsAttributes:_0x2a2561}=this['_savedMetaData']['get'](_0x4bbbbb);this['_baseRoots']=new Map(_0x3e8f3c),this['_baseRootsAttributes']=new Map(_0x5b09a8(_0x2a2561));for(const [_0x4e8a26,_0x2bbecd]of this['_baseRoots'])if('$graveyard'!==_0x4e8a26&&(this['_diffRoots']['set'](_0x4e8a26,T(_0x2bbecd)),this['_diffRootsAttributes']=new Map(_0x5b09a8(_0x2a2561)),_0x125abd)){const _0x4abb25=this['_revisionId'];this['_idsRoots']['set'](_0x4e8a26,this['_makeIdsRoot'](_0x2bbecd)),this['_baseIdsRoots']['set'](_0x4e8a26,this['_makeIdsRoot'](_0x2bbecd,_0x4abb25));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x125abd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4c6277,_0x774e14]of _0x1d586e){const _0x332e38=this['_baseRoots']['get'](_0x774e14['rootName']),_0x207987=this['_diffRoots']['get'](_0x774e14['rootName']),_0x25fba9=new ft(this['_fixPosition'](_0x774e14['start'],_0x332e38),this['_fixPosition'](_0x774e14['end'],_0x332e38)),_0x4017b8=this['_fixRange'](_0x25fba9,_0x207987);_0x332e38['markers']['set'](_0x4c6277,_0x25fba9),this['_markers']['set'](_0x4c6277,_0x4017b8);}this['_applyOperations'](_0x4bbbbb,_0x2cc7db,_0x125abd);}['_applyOperations'](_0x35c398,_0x1e3b78,_0x530f54){for(const _0x477d46 of this['source']['getOperations'](_0x35c398,_0x1e3b78))this['_handleOperation'](_0x477d46,_0x530f54);for(const _0x1a605a of this['_diffRoots']['values']())_0x1a605a['markers']['clear']();for(const [_0x531ffc,_0x440d3a]of this['_markers']){this['_diffRoots']['get'](_0x440d3a['root']['rootName'])['markers']['set'](_0x531ffc,_0x440d3a['clone']());}const _0x1d9cca=new Map(),_0x3285ab=new Map();for(const [_0x8fc73f,_0x129e7a]of this['_diffRoots'])_0x1d9cca['set'](_0x8fc73f,T(_0x129e7a)),_0x3285ab['set'](_0x8fc73f,this['_diffRootsAttributes']['get'](_0x8fc73f));this['_saveMetaData'](_0x1e3b78,_0x1d9cca,this['_markers'],_0x3285ab);}['_getPreviousFrom'](_0xf392dc){const _0x323995=Array['from'](this['_savedMetaData']['keys']());_0x323995['sort']((_0x36613d,_0x2bce69)=>_0x36613d-_0x2bce69),_0x323995['reverse']();for(const _0x4f06e9 of _0x323995)if(_0x4f06e9<_0xf392dc)return _0x4f06e9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2e581c,_0x189c09){const _0x26fe68=Array['from'](_0x189c09['markers'])['map'](([_0x4d3f70,_0x3423ef])=>[_0x4d3f70,this['_fixRange'](_0x3423ef,_0x2e581c)]);_0x2e581c['markers']=new Map(_0x26fe68);}['_transformMarkers'](_0x5a8ae3){for(const _0x59cdfd of this['_markers']['values']()){const _0x1f2d01=_0x59cdfd['getTransformedByOperation'](_0x5a8ae3),_0x109dbe=ft['_createFromRanges'](_0x1f2d01);_0x59cdfd['start']=_0x109dbe['start'],_0x59cdfd['end']=_0x109dbe['end'];}}['_handleOperation'](_0x4df417,_0x90a267){if('addRoot'!=_0x4df417['type']&&'detachRoot'!=_0x4df417['type']){if('insert'==_0x4df417['type']){const _0x49a118=_0x4df417['position']['root']['rootName'];this['_diffRoots']['has'](_0x49a118)||(this['_diffRoots']['set'](_0x49a118,F(_0x49a118,!0x0)),this['_diffRootsAttributes']['set'](_0x49a118,{}),_0x90a267&&this['_idsRoots']['set'](_0x49a118,F(_0x49a118,!0x0)));}else{if('addRootAttribute'==_0x4df417['type']||'removeRootAttribute'==_0x4df417['type']||'changeRootAttribute'==_0x4df417['type'])return void this['_handleRootAttributeOperation'](_0x4df417);'marker'==_0x4df417['type']&&this['_handleMarkerOperation'](_0x4df417);}if('marker'!==_0x4df417['type']){const _0x4fc165=this['_cloneOperation'](_0x4df417,this['_diffRoots']);_0x4fc165['_execute'](),this['_transformMarkers'](_0x4fc165);}if(_0x90a267)switch(_0x4df417['type']){case'insert':this['_handleInsertOperation'](_0x4df417);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4df417);break;case'merge':this['_handleMergeOperation'](_0x4df417);break;case'split':this['_handleSplitOperation'](_0x4df417);}}else this['_handleRootOperation'](_0x4df417,_0x90a267);}['_cloneOperation'](_0x1275a9,_0x3fef5d){const _0x2fce05=_0x1275a9['clone']();return _0x2fce05['_authorId']=_0x1275a9['_authorId'],this['_fixOperation'](_0x2fce05,_0x3fef5d),_0x2fce05;}['_getBaseVids'](_0x45244c){return _0x45244c['map'](_0x2a64de=>{const _0x588f6e=this['_getVidAttributeName'](_0x2a64de);return Number(_0x2a64de['item']['getAttribute'](_0x588f6e));});}['_generateTape'](_0x22bfd2,_0x5b73d8){if(_0x22bfd2['is']('element','$text'))_0x5b73d8['push']({'item':_0x22bfd2,'type':'text'});else{_0x22bfd2['is']('element')&&_0x5b73d8['push']({'item':_0x22bfd2,'type':'elementStart'});for(const _0x441f7c of _0x22bfd2['getChildren']())this['_generateTape'](_0x441f7c,_0x5b73d8);_0x22bfd2['is']('element')&&_0x5b73d8['push']({'item':_0x22bfd2,'type':'elementEnd'});}return _0x5b73d8;}['_getState'](){const _0x2c5d5f=new Map(this['_touched']),_0x325c61=new Map(_0x2c5d5f),_0xa03176=new Map(),_0x286c1d={'insertions':{},'deletions':{}},_0x2f28f9={'insertions':{},'deletions':{}},_0x25b920=new Map(),_0x325a93=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x325a93['delete']('$graveyard');for(const _0xabefeb of _0x325a93){const _0x15805e=this['_diffRoots']['get'](_0xabefeb)||F(_0xabefeb,!0x1),_0x224e6e=this['_baseRoots']['get'](_0xabefeb)||F(_0xabefeb,!0x1);_0x15805e['isAttached']()||_0x224e6e['isAttached']()?(_0x286c1d['insertions'][_0xabefeb]=T(_0x15805e),_0x286c1d['deletions'][_0xabefeb]=T(_0x224e6e),this['_copyMarkers'](_0x286c1d['deletions'][_0xabefeb],_0x224e6e),this['_copyMarkers'](_0x286c1d['insertions'][_0xabefeb],_0x15805e),_0x2f28f9['insertions'][_0xabefeb]=this['_generateTape'](this['_idsRoots']['get'](_0xabefeb),[]),_0x2f28f9['deletions'][_0xabefeb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xabefeb)||F(_0xabefeb,!0x1),[])):_0x325a93['delete'](_0xabefeb);}for(const _0x5210f0 of _0x325a93){const _0x3376ea=_0x2f28f9['insertions'][_0x5210f0];for(const _0x53d2d5 of _0x3376ea){const _0x504e3e=this['_getVidAttributeName'](_0x53d2d5),_0x3684b4=_0x53d2d5['item']['getAttribute'](_0x504e3e);_0x325c61['delete'](_0x3684b4),_0x3684b4>=this['_startingRevisionId']&&_0xa03176['set'](_0x3684b4,_0x2c5d5f['get'](_0x3684b4));}}for(const _0x3b786e of _0x325a93){const _0x501810=_0x2f28f9['insertions'][_0x3b786e],_0x258744=this['_getBaseVids'](_0x2f28f9['deletions'][_0x3b786e]);let _0x1b2710=0x0;for(const _0xac94e6 of _0x501810){const _0x4d9633=this['_getVidAttributeName'](_0xac94e6),_0x329bf3=_0xac94e6['item']['getAttribute'](_0x4d9633);if(!_0xa03176['has'](_0x329bf3)&&!_0x25b920['has'](_0x329bf3)){if(_0x325c61['has'](_0x329bf3))_0x1b2710++;else{if(_0x329bf3!=_0x258744[_0x1b2710]){const _0xa3256c=_0x2c5d5f['get'](_0x329bf3)||_0x2c5d5f['get'](_0x258744[_0x1b2710]);for(;_0x329bf3!=_0x258744[_0x1b2710];)_0x325c61['has'](_0x258744[_0x1b2710])||(_0x25b920['set'](_0x258744[_0x1b2710],_0xa3256c),_0x2c5d5f['set'](_0x258744[_0x1b2710],_0xa3256c)),_0x1b2710++;}_0x1b2710++;}}}}for(const _0x869a2f of _0x325a93){const _0x3deb5f=_0x2f28f9['insertions'][_0x869a2f];for(const _0x197cf4 of _0x3deb5f){const _0x5870a4=this['_getVidAttributeName'](_0x197cf4),_0xb53b72=_0x197cf4['item']['getAttribute'](_0x5870a4);if(_0x25b920['has'](_0xb53b72)){const _0x168096=_0x25b920['get'](_0xb53b72);_0x325c61['has'](_0xb53b72)||_0x325c61['set'](_0xb53b72,{..._0x168096}),_0xa03176['set'](_0xb53b72,{..._0x168096});}}}for(const _0x47418d of _0x325c61['keys']())_0x47418d>=this['_startingRevisionId']&&_0x325c61['delete'](_0x47418d);const _0x11af97=new Map();for(const _0xefe847 of _0x325a93){let _0x592299=_0x2f28f9['insertions'][_0xefe847];for(const _0x3fb4b5 of _0x592299)if(_0x3fb4b5['item']['is']('element','tableCell')){const _0x843ee7=this['_getVidAttributeName'](_0x3fb4b5),_0xed8993=_0x3fb4b5['item']['getAttribute'](_0x843ee7);if(_0xa03176['has'](_0xed8993)){const _0x120ba8=_0x3fb4b5['item']['parent']['parent']['getAttribute']('vid_start'),_0x320078=_0x11af97['get'](_0x120ba8)||new Set();_0x320078['add'](_0xa03176['get'](_0xed8993)['userId']),_0x11af97['set'](_0x120ba8,_0x320078);}}_0x592299=_0x2f28f9['deletions'][_0xefe847];for(const _0x5bf1e2 of _0x592299)if(_0x5bf1e2['item']['is']('element','tableCell')){const _0x28f144=this['_getVidAttributeName'](_0x5bf1e2),_0x2d154c=_0x5bf1e2['item']['getAttribute'](_0x28f144);if(_0x325c61['has'](_0x2d154c)){const _0x54fe6a=_0x5bf1e2['item']['parent']['parent']['getAttribute']('vid_start'),_0x384af5=_0x11af97['get'](_0x54fe6a)||new Set();_0x384af5['add'](_0x325c61['get'](_0x2d154c)['userId']),_0x11af97['set'](_0x54fe6a,_0x384af5);}}for(const _0x5107d5 of _0x11af97['keys']())(_0xa03176['has'](_0x5107d5)||_0x325c61['has'](_0x5107d5))&&_0x11af97['delete'](_0x5107d5);}for(const _0x41f609 of _0x325a93){const _0x2b4bbf=_0x2f28f9['insertions'][_0x41f609];let _0x24e705=null,_0x573425=null;for(const _0x31f10b of _0x2b4bbf){const _0x28eb19=this['_getVidAttributeName'](_0x31f10b),_0x9aa57f=_0x31f10b['item']['getAttribute'](_0x28eb19),_0x4bed4d=_0x11af97['get'](_0x9aa57f);_0x4bed4d&&'elementStart'==_0x31f10b['type']&&(_0x24e705=Array['from'](_0x4bed4d)[0x0],_0x573425=_0x31f10b['item']['getAttribute']('vid_end')),_0x24e705&&(_0x325c61['set'](_0x9aa57f,{'userId':_0x24e705}),_0xa03176['set'](_0x9aa57f,{'userId':_0x24e705})),_0x9aa57f==_0x573425&&(_0x24e705=null,_0x573425=null);}}const _0x13cdea={},_0x226087=new Set();for(const _0x3e2885 of _0x325a93){const _0x441e5a=_0x286c1d['deletions'][_0x3e2885],_0x2b8c41=_0x286c1d['insertions'][_0x3e2885];for(const {userId:_0x517014}of this['_touchedMarkers']['values']())null!==_0x517014&&_0x226087['add'](_0x517014);for(const {userId:_0x139ae1}of this['_touchedRoots']['values']())null!==_0x139ae1&&_0x226087['add'](_0x139ae1);this['_markChanges'](_0x2b8c41,_0x2f28f9['insertions'][_0x3e2885],_0xa03176,'insertion',_0x226087),this['_markChanges'](_0x441e5a,_0x2f28f9['deletions'][_0x3e2885],_0x325c61,'deletion',_0x226087),_0x13cdea[_0x3e2885]={'insertions':this['_prepareViewToSave'](_0x2b8c41),'deletions':this['_prepareViewToSave'](_0x441e5a),'attachChange':this['_touchedRoots']['get'](_0x3e2885)||null,'attributesBefore':_0x5b09a8(this['_baseRootsAttributes']['get'](_0x3e2885))||{},'attributesAfter':_0x5b09a8(this['_diffRootsAttributes']['get'](_0x3e2885))};}return{'diffData':_0x13cdea,'authorsIds':Array['from'](_0x226087)};}['_processRootBeforeSave'](_0x115135){for(const [,_0x3248ec]of _0x115135['markers']){const _0x4804ef=_0x3248ec['start']['getAncestors']()['filter'](_0x28dbe1=>'tableCell'==_0x28dbe1['name']);for(const _0x4d5b92 of _0x4804ef)0x1==_0x4d5b92['childCount']&&_0x4d5b92['getChild'](0x0)['is']('element','paragraph')&&_0x4d5b92['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x505285){this['_processRootBeforeSave'](_0x505285);const _0x484778=this['editor']['data']['toView'](_0x505285,{}),_0x7c64c6=Array['from'](_0x484778['getChildren']())['map'](_0x1a7a3d=>this['_getViewJson'](_0x1a7a3d));return JSON['stringify'](_0x7c64c6);}['_getViewJson'](_0x446b82){if(_0x446b82['is']('$text'))return _0x446b82['data'];{const _0x2bef27=_0x446b82;return{'type':Object['keys'](E)['find'](_0x584636=>_0x446b82 instanceof E[_0x584636]),'name':_0x2bef27['name'],'attributes':Array['from'](_0x2bef27['getAttributes']()),'children':Array['from'](_0x2bef27['getChildren']())['map'](_0x2f5fe7=>this['_getViewJson'](_0x2f5fe7))};}}['_markChanges'](_0xd3e26f,_0x5655bb,_0xb4222f,_0x26296a,_0x51a0f9){let _0x144dd6=null,_0x415188=null,_0x1b45af=0x0;const _0x48f7cf=this['editor']['model'];for(let _0x400aa8=0x0;_0x400aa8<_0x5655bb['length'];_0x400aa8++){const _0x5d6a55=this['_getVidAttributeName'](_0x5655bb[_0x400aa8]),_0x3cafb4=_0x5655bb[_0x400aa8]['item']['getAttribute'](_0x5d6a55),_0x567857=_0xb4222f['get'](_0x3cafb4),_0x5416af=_0x400aa8==_0x5655bb['length']-0x1;(!_0x144dd6&&_0x567857&&(_0x144dd6=_0x567857,_0x415188=_0x5655bb[_0x400aa8]),_0x144dd6&&(!_0x567857||_0x567857['userId']!=_0x144dd6['userId']))&&(_0x1f2664(_0x567857,B(_0x415188,_0xd3e26f,_0x48f7cf),B(_0x5655bb[_0x400aa8],_0xd3e26f,_0x48f7cf)),_0x144dd6=_0x567857||null,_0x415188=_0x567857?_0x5655bb[_0x400aa8]:null),_0x144dd6&&_0x5416af&&_0x1f2664(_0x567857,B(_0x415188,_0xd3e26f,_0x48f7cf),J(_0x5655bb[_0x400aa8],_0xd3e26f,_0x48f7cf));}function _0x1f2664(_0x43fb83,_0x5932ea,_0x4d9c49){const _0x4212cd=_0x144dd6['userId'],_0x5d2c01='revision:'+_0x26296a+':'+_0x4212cd+':'+_0x1b45af++,_0x406277=_0x48f7cf['createRange'](_0x5932ea,_0x4d9c49);_0xd3e26f['markers']['set'](_0x5d2c01,_0x406277),null!==_0x4212cd&&_0x51a0f9['add'](_0x4212cd);}}['_getVidAttributeName'](_0x6cb1f8){switch(_0x6cb1f8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1f73b2,_0x275203){_0x1f73b2['baseVersion']=null;for(const _0x3c2dfc in _0x1f73b2){const _0x218bfe=_0x1f73b2[_0x3c2dfc];if(_0x218bfe instanceof vt){const _0x29a5ff=_0x275203['get'](_0x218bfe['root']['rootName']);_0x1f73b2[_0x3c2dfc]=this['_fixPosition'](_0x218bfe,_0x29a5ff);}if(_0x218bfe instanceof ft){const _0x5bca19=_0x275203['get'](_0x218bfe['root']['rootName']);_0x1f73b2[_0x3c2dfc]=this['_fixRange'](_0x218bfe,_0x5bca19);}'root'===_0x3c2dfc&&(_0x1f73b2['root']=_0x275203['get'](_0x1f73b2['root']['rootName']));}}['_fixRange'](_0x391112,_0x1c87b2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x391112['start'],_0x1c87b2),this['_fixPosition'](_0x391112['end'],_0x1c87b2));}['_fixPosition'](_0xe3f0c2,_0x4d596e){return this['editor']['model']['createPositionFromPath'](_0x4d596e,_0xe3f0c2['path'],_0xe3f0c2['stickiness']);}['_handleInsertOperation'](_0x209975){const _0x2f9796=this['_idsRoots']['get'](_0x209975['position']['root']['rootName']),_0x1beb86=this['_fixPosition'](_0x209975['position'],_0x2f9796),_0x228884=null===_0x209975['_authorId']?null:_0x209975['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15a818=_0x1beb86['parent'],_0x49027c=this['_revisionId'],_0x517463=[];for(const _0x39bf6b of _0x209975['nodes'])if(_0x39bf6b['is']('element'))_0x517463['push'](this['_makeIdsRoot'](_0x39bf6b));else{for(let _0x10d47e=0x0;_0x10d47e<_0x39bf6b['offsetSize'];_0x10d47e++)_0x517463['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x5047e1=this['_revisionId'];for(let _0x324cdb=_0x49027c;_0x324cdb<_0x5047e1;_0x324cdb++)this['_touched']['set'](_0x324cdb,{'userId':_0x228884});_0x15a818['_insertChild'](_0x1beb86['offset'],_0x517463);}['_handleMoveOperation'](_0x52ce83){(_0x52ce83=this['_cloneOperation'](_0x52ce83,this['_idsRoots']))['_execute']();const _0x399f62=null===_0x52ce83['_authorId']?null:_0x52ce83['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x360e6d=_0x52ce83['getMovedRangeStart'](),_0x42a98b=_0x360e6d['parent'],_0x11ba05=_0x360e6d['offset'];!function _0x473845(_0x59fcc6,_0x22d1c1,_0x4009e0,_0x3ec735){for(let _0x1d5ed8=_0x4009e0;_0x1d5ed8<_0x3ec735;_0x1d5ed8++){const _0x45af5a=_0x22d1c1['getChild'](_0x1d5ed8);_0x45af5a['is']('element','$text')?_0x59fcc6['set'](_0x45af5a['getAttribute']('vid'),{'userId':_0x399f62}):(_0x59fcc6['set'](_0x45af5a['getAttribute']('vid_start'),{'userId':_0x399f62}),_0x473845(_0x59fcc6,_0x45af5a,0x0,_0x45af5a['childCount']),_0x59fcc6['set'](_0x45af5a['getAttribute']('vid_end'),{'userId':_0x399f62}));}}(this['_touched'],_0x42a98b,_0x11ba05,_0x11ba05+_0x52ce83['howMany']);}['_handleMergeOperation'](_0x3c0b97){const _0x5f2d7f=null===(_0x3c0b97=this['_cloneOperation'](_0x3c0b97,this['_idsRoots']))['_authorId']?null:_0x3c0b97['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54de97=_0x3c0b97['targetPosition']['parent'],_0x379203=_0x3c0b97['sourcePosition']['parent'],_0x4be76b=_0x54de97['getAttribute']('vid_end'),_0x58749b=_0x379203['getAttribute']('vid_start');_0x54de97['_setAttribute']('vid_end',_0x379203['getAttribute']('vid_end')),_0x379203['_setAttribute']('vid_end',_0x4be76b),this['_touched']['set'](_0x58749b,{'userId':_0x5f2d7f}),this['_touched']['set'](_0x4be76b,{'userId':_0x5f2d7f}),_0x3c0b97['_execute']();}['_handleSplitOperation'](_0x4f8808){const _0x446b7a=null===(_0x4f8808=this['_cloneOperation'](_0x4f8808,this['_idsRoots']))['_authorId']?null:_0x4f8808['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d3602=_0x4f8808['graveyardPosition'],_0x2eee3f=_0x4f8808['splitPosition']['parent'];_0x4f8808['_execute']();const _0x3833ab=_0x2eee3f['getAttribute']('vid_end'),_0x5e6ebf=_0x4f8808['insertionPosition']['nodeAfter'];if(_0x4d3602){const _0x8b760c=_0x5e6ebf['getAttribute']('vid_end'),_0x3722c7=_0x2eee3f['getAttribute']('vid_end');_0x2eee3f['_setAttribute']('vid_end',_0x8b760c),_0x5e6ebf['_setAttribute']('vid_end',_0x3722c7),this['_touched']['set'](_0x2eee3f['getAttribute']('vid_end'),{'userId':_0x446b7a}),this['_touched']['set'](_0x5e6ebf['getAttribute']('vid_start'),{'userId':_0x446b7a});}else{const _0x376fa5=this['_revisionId']++,_0x40071b=this['_revisionId']++;_0x2eee3f['_setAttribute']('vid_end',_0x376fa5),_0x5e6ebf['_setAttribute']('vid_start',_0x40071b),_0x5e6ebf['_setAttribute']('vid_end',_0x3833ab),this['_touched']['set'](_0x376fa5,{'userId':_0x446b7a}),this['_touched']['set'](_0x40071b,{'userId':_0x446b7a});}}['_handleMarkerOperation'](_0x25f7d9){if(!_0x25f7d9['affectsData'])return;const _0x2a33d1=(_0x25f7d9=this['_cloneOperation'](_0x25f7d9,this['_diffRoots']))['oldRange']?_0x25f7d9['oldRange']['root']:null,_0x161abc=_0x25f7d9['newRange']?_0x25f7d9['newRange']['root']:null;_0x2a33d1&&this['_markers']['delete'](_0x25f7d9['name']),_0x161abc&&this['_markers']['set'](_0x25f7d9['name'],_0x25f7d9['newRange']['clone']());const _0x438044=null===_0x25f7d9['_authorId']?null:_0x25f7d9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x265c63=_0x25f7d9['name'];if(!this['_touchedMarkers']['has'](_0x265c63))return void this['_touchedMarkers']['set'](_0x265c63,{'range':_0x25f7d9['oldRange'],'userId':_0x438044});const _0x291184=this['_touchedMarkers']['get'](_0x265c63),_0x2e4148=_0x291184['range'],_0x579b59=_0x25f7d9['newRange'];null==_0x2e4148&&null==_0x579b59||_0x2e4148&&_0x579b59&&_0x2e4148['isEqual'](_0x579b59)?this['_touchedMarkers']['delete'](_0x25f7d9['name']):_0x291184['userId']=_0x438044;}['_handleRootOperation'](_0x5c273a,_0x2faa22){this['_diffRoots']['has'](_0x5c273a['rootName'])?this['_diffRoots']['get'](_0x5c273a['rootName'])['_isAttached']=_0x5c273a['isAdd']:(this['_diffRoots']['set'](_0x5c273a['rootName'],F(_0x5c273a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5c273a['rootName'],{}),_0x2faa22&&this['_idsRoots']['set'](_0x5c273a['rootName'],F(_0x5c273a['rootName'],!0x0)));const _0x43f45c=null===_0x5c273a['_authorId']?null:_0x5c273a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22cab6=this['_touchedRoots']['get'](_0x5c273a['rootName']);_0x22cab6&&_0x22cab6['userId']===_0x43f45c?this['_touchedRoots']['delete'](_0x5c273a['rootName']):this['_touchedRoots']['set'](_0x5c273a['rootName'],{'userId':_0x43f45c,'isAttached':_0x5c273a['isAdd']});}['_handleRootAttributeOperation'](_0x1240bf){const _0x203cb6=this['_diffRootsAttributes']['get'](_0x1240bf['root']['rootName']);null===_0x1240bf['newValue']?delete _0x203cb6[_0x1240bf['key']]:_0x203cb6[_0x1240bf['key']]=_0x1240bf['newValue'];}}function T(_0x718d7c){const _0x57d8f5=F(_0x718d7c['rootName'],_0x718d7c['isAttached']());for(const _0x1bf393 of _0x718d7c['getChildren']()){const _0x3822bd=_0x1bf393['_clone'](!0x0);_0x57d8f5['_appendChild'](_0x3822bd);}return _0x57d8f5;}function F(_0xfa5a8a,_0x120e2a=!0x0){const _0x16ca66=new gt();return _0x16ca66['rootName']=_0xfa5a8a,_0x16ca66['_isAttached']=_0x120e2a,_0x16ca66['isAttached']=()=>_0x16ca66['_isAttached'],_0x16ca66;}function B(_0x53d466,_0x509ab1,_0x256e13){const _0x3cdd85='elementEnd'==_0x53d466['type']?_0x256e13['createPositionAt'](_0x53d466['item'],'end'):_0x256e13['createPositionBefore'](_0x53d466['item']);return _0x256e13['createPositionFromPath'](_0x509ab1,_0x3cdd85['path'],_0x3cdd85['stickiness']);}function J(_0x2a4658,_0x26440b,_0x2ae3b2){const _0x120efa='elementStart'==_0x2a4658['type']?_0x2ae3b2['createPositionAt'](_0x2a4658['item'],0x0):_0x2ae3b2['createPositionAfter'](_0x2a4658['item']);return _0x2ae3b2['createPositionFromPath'](_0x26440b,_0x120efa['path'],_0x120efa['stickiness']);}class hs extends _0x18cf46{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x30f37c,_0x1c34dd){super(_0x30f37c),this['focusTracker']=new _0x1e6b74(),this['keystrokes']=new _0x51ec3d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1c34dd),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x413970({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5699df=_0x510185=>_0x510185['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5699df),this['keystrokes']['set']('arrowleft',_0x5699df),this['keystrokes']['set']('arrowup',_0x5699df),this['keystrokes']['set']('arrowdown',_0x5699df);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x10a529){this['revisionNameInputView']['fieldView']['element']['value']=_0x10a529['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x58bfde){const _0x33f0e2=new at(this['locale'],ti),_0x3b2cf7=_0x33f0e2['fieldView'];_0x3b2cf7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1c915c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x58bfde&&(_0x1c915c+='\x20('+m(this['locale'],'optional')+')'),(_0x33f0e2['label']=_0x1c915c,_0x3b2cf7['on']('input',()=>{this['revisionNameInputValue']=_0x3b2cf7['element']['value']['trim']();}),_0x33f0e2);}}class f extends _0x15a41a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4832b2=this['editor'],_0x2e58c0=_0x4832b2['plugins']['get']('RevisionTracker');_0x4832b2['ui']['componentFactory']['add']('revisionHistory',_0xe3dfa0=>{const _0x6275cf=_0x2cc8a3(_0xe3dfa0),_0x9c3864=_0x6275cf['panelView']['children'],_0x464313=new _0x5055c7(_0xe3dfa0),_0x33d5d2=new te(_0xe3dfa0),_0x4086dd=new _0x38e8b4(_0xe3dfa0),_0x4d6f7b=new te(_0xe3dfa0),_0x2c6780=new _0x38e8b4(_0xe3dfa0);return _0x6275cf['bind']('isEnabled')['to'](_0x2e58c0,'isReady',_0x2e58c0,'isEnabled',_0x4832b2,'isReadOnly',(_0x2b97b1,_0xb69007,_0x24e9f4)=>_0x2b97b1&&_0xb69007&&!_0x24e9f4),_0x6275cf['buttonView']['set']({'icon':_0xe4f57,'label':m(_0xe3dfa0,'Revision\x20history'),'tooltip':!0x0}),_0x4086dd['set']({'label':m(_0xe3dfa0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4086dd['bind']('isEnabled')['to'](_0x2e58c0,'isReady',_0x2e58c0,'isEnabled',_0x4832b2,'isReadOnly',(_0x5b69fc,_0x1f9308,_0x87fdbf)=>_0x5b69fc&&_0x1f9308&&!_0x87fdbf),_0x4086dd['on']('execute',()=>this['_showDialog']()),_0x2c6780['set']({'label':m(_0xe3dfa0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2c6780['bind']('isEnabled')['to'](_0x2e58c0,'isReady',_0x4832b2,'isReadOnly',(_0x3ff540,_0x99655f)=>_0x3ff540&&!_0x99655f),_0x2c6780['on']('execute',()=>{_0x4832b2['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x6275cf['isOpen']=!0x1,_0x4832b2['editing']['view']['focus']();}),_0x33d5d2['children']['add'](_0x4086dd),_0x4d6f7b['children']['add'](_0x2c6780),_0x464313['role']='menu',_0x464313['items']['addMany']([_0x33d5d2,_0x4d6f7b]),_0x9c3864['add'](_0x464313),_0x6275cf;}),_0x4832b2['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3eb207=this['editor'],_0x3cc061=_0x3eb207['locale'],_0x480b38=new _0xed1a66(_0x3cc061),_0x1af5a2=new _0x13f158(_0x3cc061);_0x480b38['buttonView']['set']({'icon':_0xe4f57,'label':m(_0x3cc061,'Revision\x20history')});const _0x4d97c9=new _0x1f8008(_0x3cc061,_0x480b38),_0xb7e82c=new _0x59f95c(_0x3cc061);_0xb7e82c['set']({'label':m(_0x3cc061,'Save\x20current\x20revision')}),_0xb7e82c['delegate']('execute')['to'](_0x480b38),_0xb7e82c['on']('execute',()=>{this['_showDialog']();}),_0x4d97c9['children']['add'](_0xb7e82c),_0x1af5a2['items']['add'](_0x4d97c9);const _0x51da58=new _0x1f8008(_0x3cc061,_0x480b38),_0x18b395=new _0x59f95c(_0x3cc061);return _0x18b395['set']({'label':m(_0x3cc061,'Open\x20revision\x20history')}),_0x18b395['delegate']('execute')['to'](_0x480b38),_0x18b395['on']('execute',()=>{_0x3eb207['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x51da58['children']['add'](_0x18b395),_0x1af5a2['items']['add'](_0x51da58),_0x480b38['panelView']['children']['add'](_0x1af5a2),_0x480b38;}['_showDialog'](){const _0x2163a5=this['editor'],_0x1613a9=_0x2163a5['locale'],_0x1fb2d3=_0x2163a5['plugins']['get']('Dialog'),_0x17cca6=_0x2163a5['plugins']['get']('RevisionTracker');function _0xfe23c8(_0x10d379){_0x2163a5['config']['get']('revisionHistory.requireRevisionName')&&''===_0x10d379['revisionName']?_0x10d379['revisionNameInputView']['errorText']=m(_0x1613a9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2163a5['plugins']['get'](u)['saveRevision']({'name':_0x10d379['revisionName']}),_0x1fb2d3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xfe23c8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1fb2d3['show']({'id':'revisionSave','title':m(_0x1613a9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2163a5['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1fb2d3['hide']()},{'label':m(_0x2163a5['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x560a68){_0x560a68['bind']('isEnabled')['to'](_0x17cca6,'isReady',_0x17cca6,'isEnabled',_0x2163a5,'isReadOnly',(_0x1d64a1,_0x52d24b,_0x2fb55c)=>_0x1d64a1&&_0x52d24b&&!_0x2fb55c);},'onExecute':()=>_0xfe23c8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3a6162=this['editor'],_0x5e697a=_0x3a6162['locale'];this['_saveRevisionFormView']=new hs(_0x5e697a,_0x3a6162['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x18cf46{['changeId'];['_model'];constructor(_0x19a627,_0x2ceb2b){super(_0x19a627),this['_model']=_0x2ceb2b,this['changeId']=_0x2ceb2b['id'];const _0x54c431=this['bindTemplate'],_0xccaca8=m(_0x19a627,_0x2ceb2b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2ceb2b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2ceb2b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x54c431['to']('type',_0x18f6db=>'ck-revision-change__'+_0x18f6db)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xccaca8}]},{'text':'\x20'+_0x2ceb2b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x57183e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x56b1d9){super(),this['id']=_0x56b1d9['id']||_0xc88e79(),this['author']=_0x56b1d9['author'],this['type']=_0x56b1d9['type'],this['data']=_0x56b1d9['data']||{},this['rootName']=_0x56b1d9['rootName'],this['set']('createdAt',_0x56b1d9['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x580d1b,_0x5bba0f){this['newRevisionId']=_0x580d1b,this['oldRevisionId']=_0x5bba0f,this['changes']=new _0x316ce2();}['_setChanges'](_0x3c9fd4){for(const _0x45f545 of _0x3c9fd4)this['changes']['add'](_0x45f545);}}const Y={'c':_0x204c83,'a':_0x2cc6e8,'e':_0x4e1795,'r':_0x3219e8,'u':_0x16c039};class d extends _0x15a41a{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x14ccaa,_0x236cd8,j];}constructor(_0x5a14f4){super(_0x5a14f4),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5cb955,_0x427175,_0x30b265)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xb64667=>{for(const _0x9a3312 of this['editor']['editing']['view']['document']['roots'])_0x30b265?_0xb64667['removeClass']('ck-editor__editable__overlay',_0x9a3312):_0xb64667['addClass']('ck-editor__editable__overlay',_0x9a3312);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2769b5=>null!==_0x2769b5),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x400c6f,_0x3fbef5,_0x42b7a9)=>_0x400c6f&&_0x42b7a9?_0x3fbef5['changes']['getIndex'](_0x42b7a9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x459845,_0x43db71)=>_0x459845?_0x43db71['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x236cd8);}['init'](){const _0x15903c=this['editor'],_0x563568=new yt(_0x15903c,{'direction':'backward'}),_0x518449=new yt(_0x15903c,{'direction':'forward'});(_0x15903c['commands']['add']('showPreviousChange',_0x563568),_0x15903c['commands']['add']('showNextChange',_0x518449),_0x15903c['commands']['add']('restoreRevision',new _t(_0x15903c)),this['on']('change:numberOfChanges',()=>{_0x563568['refresh'](),_0x518449['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x15903c['enableReadOnlyMode']('revision-viewer'),_0x15903c['plugins']['has']('WidgetToolbarRepository'))&&_0x15903c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x414c63){await this['loadRevisionData'](_0x414c63);const _0x38ff8f={};for(const _0x2f4fb9 in _0x414c63['diffData']){if(_0x414c63['diffData'][_0x2f4fb9]['attachChange']&&!_0x414c63['diffData'][_0x2f4fb9]['attachChange']['isAttached'])continue;const _0x17dbb4=this['_removeRevisionMarkers'](JSON['parse'](_0x414c63['diffData'][_0x2f4fb9]['insertions'])),_0x1b4035=this['editor']['editing']['view']['document'],_0x408a85=new _0x50994c(_0x1b4035,_0x17dbb4['map'](_0x262770=>this['_getViewObj'](_0x262770)));this['editor']['data']['processor']['useFillerType']('marked'),_0x38ff8f[_0x2f4fb9]=this['editor']['data']['processor']['toData'](_0x408a85),this['editor']['data']['processor']['useFillerType']('default');}return _0x38ff8f;}async['getRevisionRootsAttributes'](_0x71877c){await this['loadRevisionData'](_0x71877c);const _0x566364={};for(const _0x18ef6d in _0x71877c['diffData'])_0x71877c['diffData'][_0x18ef6d]['attachChange']&&!_0x71877c['diffData'][_0x18ef6d]['attachChange']['isAttached']||(_0x566364[_0x18ef6d]=_0x71877c['diffData'][_0x18ef6d]['attributesAfter']||{});return _0x566364;}['_removeRevisionMarkers'](_0x55931d){return(_0x55931d=_0x55931d['filter'](_0x456e8f=>!_0x456e8f['name']||'revision-start'!==_0x456e8f['name']&&'revision-end'!==_0x456e8f['name']))['forEach'](_0x5cc025=>{'string'!=typeof _0x5cc025&&(_0x5cc025['children']=this['_removeRevisionMarkers'](_0x5cc025['children']),_0x5cc025['attributes']=_0x5cc025['attributes']['filter'](_0x4382ef=>!_0x4382ef[0x0]['startsWith']('data-revision-')));}),_0x55931d;}async['compare'](_0x574198,_0xc801d0,_0x1cdbd0=!0x1){if(!this['isEnabled'])return;const _0x1fae94=this['diff'],_0xc91960=this['repository'],_0x4c5035='string'==typeof _0x574198?_0xc91960['getRevision'](_0x574198):_0x574198,_0x18e5e6='string'==typeof _0xc801d0?_0xc91960['getRevision'](_0xc801d0):_0xc801d0,_0x1ec59c=_0x4c5035['id'],_0x1a63b8=_0x18e5e6?_0x18e5e6['id']:null;if(!_0x1cdbd0&&this['diff']&&this['diff']['newRevisionId']===_0x1ec59c&&this['diff']['oldRevisionId']===_0x1a63b8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1ec59c,_0x1a63b8);const _0xd78774=this['_getRevisionsRange'](_0x4c5035,_0x18e5e6,!0x0)['map'](_0x1e53d4=>this['loadRevisionData'](_0x1e53d4));return _0xd78774['push'](new Promise(_0x2b687d=>{setTimeout(_0x2b687d,0x14);})),Promise['all'](_0xd78774)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x137378=this['_getDiff'](_0x1ec59c,_0x1a63b8);for(const _0x171a02 of _0x137378['changes'])this['_changeIdToChange']['set'](_0x171a02['id'],_0x171a02);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x46d3e5=>{for(const _0x2587d5 of this['editor']['model']['document']['getRootNames']())_0x46d3e5['detachRoot'](_0x2587d5);for(const _0x496aa3 of Object['keys'](_0x137378['model'])){const _0x885a7c=_0x46d3e5['addRoot'](_0x496aa3);for(const _0x197add of Object['keys'](_0x137378['attributes'][_0x496aa3]))_0x46d3e5['setAttribute'](_0x197add,_0x137378['attributes'][_0x496aa3][_0x197add],_0x885a7c);_0x46d3e5['insert'](_0x137378['model'][_0x496aa3],_0x885a7c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x137378['changes'])),this['isReady']=!0x0;})['catch'](_0x509e1c=>{console['error'](_0x509e1c),this['_cleanUp'](),_0x1fae94&&(this['diff']=_0x1fae94),this['isReady']=!0x0;});}['addRevisionData'](_0x55e4cc,_0x391de2){const _0x43725f=this['repository']['createRevision'](_0x55e4cc);return _0x43725f['on']('_update',(_0x22bd60,_0x186d9d,_0x2d3083)=>_0x391de2(_0x186d9d,_0x2d3083,_0x43725f)),this['repository']['addRevision'](_0x43725f),_0x43725f;}['loadRevisionData'](_0x8ef0c6){if(!_0x8ef0c6||_0x8ef0c6['diffData'])return Promise['resolve']();{const _0x13ed29=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x13ed29,'revisionId':_0x8ef0c6['id']})['then'](_0x582db6=>{_0x8ef0c6['_update']({'diffData':_0x582db6['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x26543b=>{for(const _0xeb0c0a of this['editor']['model']['document']['getRootNames']())_0x26543b['detachRoot'](_0xeb0c0a);});}['_sortAndFilterDiffChanges'](_0xe1409b){const _0x466c40=[],_0x1481c6=new Map();for(const _0x34b449 of this['editor']['model']['document']['getRootNames']()){const _0x1eb45b=this['editor']['editing']['view']['getDomRoot'](_0x34b449);if(!_0x1eb45b)continue;const _0x4184b0=_0x1eb45b['getClientRects']()['item'](0x0);_0x4184b0&&(_0x466c40['push'](_0x34b449),_0x1481c6['set'](_0x34b449,_0x4184b0));}return _0x466c40['sort']((_0x1fe1f6,_0xf3f305)=>{const _0x28bb68=_0x1481c6['get'](_0x1fe1f6),_0x1ece95=_0x1481c6['get'](_0xf3f305);return _0x28bb68['y']-_0x1ece95['y']||_0x28bb68['x']-_0x1ece95['x'];}),(_0xe1409b=_0xe1409b['filter'](_0xafc3be=>_0x466c40['includes'](_0xafc3be['rootName'])))['sort']((_0x98a2cd,_0x5e1d62)=>_0x466c40['indexOf'](_0x98a2cd['rootName'])-_0x466c40['indexOf'](_0x5e1d62['rootName'])),_0xe1409b;}['_makeTape'](_0x4a153c){const _0x74b2ad=Array['from'](_0x4a153c['markers'])['filter'](([_0x4833e3,_0x4a7f6f])=>_0x4833e3['startsWith']('revision:')&&!_0x4a7f6f['isCollapsed']),_0x2fa621=Array['from'](this['editor']['model']['createRangeIn'](_0x4a153c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x74b2ad['length'])for(const _0x40ab4f of _0x2fa621){const [_0x5963ab,_0x3f2558]=_0x74b2ad[0x0],[,_0x18df59,_0x221465]=_0x5963ab['split'](':');if(_0x3f2558['end']['isEqual'](_0x40ab4f['nextPosition'])&&_0x74b2ad['shift'](),(_0x40ab4f['previousPosition']['isEqual'](_0x3f2558['start'])||_0x40ab4f['previousPosition']['isAfter'](_0x3f2558['start']))&&('insertion'==_0x18df59?_0x40ab4f['isAdded']={'userId':_0x221465}:'deletion'==_0x18df59&&(_0x40ab4f['isRemoved']={'userId':_0x221465})),0x0==_0x74b2ad['length'])break;}return _0x2fa621;}['_refreshStartEndIndex'](_0x2e290c){const _0x3b44a3=new Map();for(let _0x28d577=0x0;_0x28d577<_0x2e290c['length'];_0x28d577++)'text'===_0x2e290c[_0x28d577]['type']?(_0x2e290c[_0x28d577]['item']['startIndex']=_0x28d577,_0x2e290c[_0x28d577]['item']['endIndex']=_0x28d577):('elementStart'===_0x2e290c[_0x28d577]['type']?_0x2e290c[_0x28d577]['item']['startIndex']=_0x28d577:'elementEnd'===_0x2e290c[_0x28d577]['type']&&(_0x2e290c[_0x28d577]['item']['endIndex']=_0x28d577),_0x3b44a3['set'](_0x2e290c[_0x28d577]['id'],_0x28d577));for(const _0x65e35d of _0x3b44a3['values']())'elementStart'===_0x2e290c[_0x65e35d]['type']?_0x2e290c[_0x65e35d]['item']['endIndex']=_0x3b44a3['get'](_0x2e290c[_0x65e35d]['pairId']):'elementEnd'===_0x2e290c[_0x65e35d]['type']&&(_0x2e290c[_0x65e35d]['item']['startIndex']=_0x3b44a3['get'](_0x2e290c[_0x65e35d]['pairId']));}['_processTape'](_0x123b27){for(let _0x4245ad=0x0;_0x4245ad<_0x123b27['length'];_0x4245ad++){if('elementStart'===_0x123b27[_0x4245ad]['type'])_0x123b27[_0x4245ad]['item']['startIndex']=_0x4245ad;else{if('elementEnd'===_0x123b27[_0x4245ad]['type']){_0x123b27[_0x4245ad]['item']['endIndex']=_0x4245ad;const _0x399598=_0x123b27[_0x4245ad]['item']['startIndex'];_0x123b27[_0x399598]['pairId']=_0x123b27[_0x4245ad]['id'],_0x123b27[_0x4245ad]['pairId']=_0x123b27[_0x399598]['id'];}else _0x123b27[_0x4245ad]['item']['startIndex']=_0x4245ad,_0x123b27[_0x4245ad]['item']['endIndex']=_0x4245ad,_0x123b27[_0x4245ad]['pairId']=null;}_0x123b27[_0x4245ad]['markersStart']||(_0x123b27[_0x4245ad]['markersStart']=[],_0x123b27[_0x4245ad]['markersEnd']=[]);}}['_markInsertions'](_0x551c97,_0x231fe9){const _0xae05f3=_0x551c97['filter'](_0xd592e=>!_0xd592e['isAdded']);for(let _0x1451e0=0x0;_0x1451e0<_0x231fe9['length'];_0x1451e0++)_0x231fe9[_0x1451e0]['isAdded']&&(_0xae05f3[_0x1451e0]['isAdded']=_0x231fe9[_0x1451e0]['isAdded']);}['_makeModelFromViewString'](_0x3b306d){const _0x3b598a=JSON['parse'](_0x3b306d),_0x1f1cfe=this['editor']['editing']['view']['document'],_0x32a971=new _0x50994c(_0x1f1cfe,_0x3b598a['map'](_0x4bd80a=>this['_getViewObj'](_0x4bd80a)));return this['editor']['data']['toModel'](_0x32a971);}['_getViewObj'](_0xd76f38){const _0x5bd9a8=this['editor']['editing']['view']['document'];if('string'==typeof _0xd76f38)return new _0x4c49e5(_0x5bd9a8,_0xd76f38);{const _0x262ce4=_0xd76f38['children']['map'](_0x4647f4=>this['_getViewObj'](_0x4647f4));return new(Y[_0xd76f38['type']]||_0x3ab808)(_0x5bd9a8,_0xd76f38['name'],_0xd76f38['attributes'],_0x262ce4);}}['_getDiff'](_0xdaaf9d,_0x5d01e5=null){const _0x49991a=this['repository']['getRevision'](_0xdaaf9d),_0x184f4b=_0x5d01e5?this['repository']['getRevision'](_0x5d01e5):null,_0xf898ae=this['_getRevisionsRange'](_0x49991a,_0x184f4b),_0x20401c=_0xf898ae[_0xf898ae['length']-0x1],_0x3c8bee=new Map(),_0x32113f={'model':{},'attributes':{},'changes':[]},_0x329e2c=new Set(),_0x3d31b4=new Map();for(let _0x6a4e98=_0xf898ae['length']-0x1;_0x6a4e98>=0x0;_0x6a4e98--){const _0x686f2e=_0xf898ae[_0x6a4e98];for(const _0x782132 of Object['keys'](_0x686f2e['diffData']))if(_0x686f2e['diffData'][_0x782132]['attachChange']){const _0x54ca55=_0x686f2e['diffData'][_0x782132]['attachChange'];_0x54ca55['isAttached']?(_0x329e2c['add'](_0x782132),_0x3d31b4['has'](_0x782132)&&_0x3d31b4['get'](_0x782132)['userId']==_0x54ca55['userId']?_0x3d31b4['delete'](_0x782132):_0x3d31b4['set'](_0x782132,_0x54ca55)):_0x3d31b4['has'](_0x782132)?(_0x329e2c['delete'](_0x782132),_0x3d31b4['delete'](_0x782132)):(_0x329e2c['add'](_0x782132),_0x3d31b4['set'](_0x782132,_0x54ca55));}else _0x329e2c['add'](_0x782132);}for(const _0x1d475c of _0x329e2c){const _0x4e4c0a=_0x3d31b4['has'](_0x1d475c)&&!_0x3d31b4['get'](_0x1d475c)['isAttached'];let _0x3e3e12=_0x4e4c0a?_0xf898ae['length']-0x1:0x0;const _0x440090=_0x4e4c0a?-0x1:0x1;for(;_0xf898ae[_0x3e3e12];){const _0x281649=_0xf898ae[_0x3e3e12];if(_0x281649['diffData'][_0x1d475c]){const _0x23e049=_0x4e4c0a?_0x281649['diffData'][_0x1d475c]['attributesBefore']:_0x281649['diffData'][_0x1d475c]['attributesAfter'];_0x32113f['attributes'][_0x1d475c]=_0x23e049?_0x5b09a8(_0x23e049):{};break;}_0x3e3e12+=_0x440090;}}for(const _0x51a8b9 of _0xf898ae){_0x51a8b9['model']={};for(const _0x219d7e of _0x51a8b9['authors'])_0x3c8bee['set'](_0x219d7e['id'],_0x219d7e);for(const _0x5cb781 of _0x329e2c){const _0x37374=_0x51a8b9['diffData'][_0x5cb781]?_0x51a8b9['diffData'][_0x5cb781]['insertions']:'[]',_0x5512ad=_0x51a8b9['diffData'][_0x5cb781]?_0x51a8b9['diffData'][_0x5cb781]['deletions']:'[]';_0x51a8b9['model'][_0x5cb781]={'insertions':this['_makeModelFromViewString'](_0x37374),'deletions':this['_makeModelFromViewString'](_0x5512ad)};}}for(const _0x50a5cd of _0x329e2c){let _0xf07419=null,_0x49744d=0x0;const _0x1dc1b5=new Map(Array['from'](_0x49991a['model'][_0x50a5cd]['insertions']['markers'])['filter'](([_0x54c5b0])=>!_0x54c5b0['startsWith']('revision:')));let _0x41df2e=0x0;for(const _0x5a1ae5 of _0xf898ae){const _0x5b7742=this['_makeTape'](_0x5a1ae5['model'][_0x50a5cd]['insertions']);_0x5a1ae5==_0x49991a?(_0xf07419=_0x5b7742,_0x49744d=_0xf07419['length'],_0xf07419['forEach'](_0x2072f9=>{_0x2072f9['id']=_0x41df2e++;}),this['_processTape'](_0xf07419)):this['_markInsertions'](_0xf07419,_0x5b7742);const _0x977506=_0xf07419['filter'](_0x36bfb2=>!_0x36bfb2['isAdded'])['map'](_0x634f35=>_0x634f35['id']);let _0x1afc2d=0x0;const _0x2fe4fc=this['_makeTape'](_0x5a1ae5['model'][_0x50a5cd]['deletions']);_0x2fe4fc['forEach'](_0x15e1de=>{_0x15e1de['isRemoved']?_0x15e1de['id']=_0x49744d++:_0x15e1de['id']=_0x977506[_0x1afc2d++];}),this['_processTape'](_0x2fe4fc),this['_setDistance'](_0xf07419,'isAdded'),this['_setDistance'](_0x2fe4fc,'isRemoved'),_0x5a1ae5==_0x49991a&&this['_markMarkers'](_0xf07419,_0x1dc1b5),_0xf07419=this['_joinTapes'](_0xf07419,_0x2fe4fc),this['_refreshStartEndIndex'](_0xf07419),this['_setDistance'](_0xf07419,'isRemoved');}_0xf07419=_0xf07419['filter'](_0x5df18a=>!(_0x5df18a['isAdded']&&_0x5df18a['isRemoved']));const _0x3c5e74=new Map(_0x20401c['model'][_0x50a5cd]['deletions']['markers']),_0x317dc7=new Set(_0x1dc1b5['keys']());for(const _0xbda610 of _0x3c5e74['keys']())_0x317dc7['delete'](_0xbda610);this['_markSuggestions'](_0xf07419,_0x317dc7),this['_fixObsoleteTags'](_0xf07419),_0xf07419=this['_removeMissingPairs'](_0xf07419),_0xf07419=this['_markMismatchedRemovedTags'](_0xf07419),_0xf07419=this['_removeUnsupportedChanges'](_0xf07419);const {root:_0x2d26d8,changes:_0x4e95fc}=this['_makeModelFromTape'](_0xf07419,_0x3c8bee,_0x50a5cd);_0x32113f['model'][_0x50a5cd]=_0x2d26d8;const _0x267fbf=_0x3d31b4['get'](_0x50a5cd);if(_0x267fbf){const _0x5c2fd7=_0x3c8bee['get'](_0x267fbf['userId']),_0x2aaece=new r({'author':_0x5c2fd7,'type':_0x267fbf['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x50a5cd});_0x4e95fc['unshift'](_0x2aaece),_0x32113f['attributes'][_0x50a5cd]['revisionHistoryAttachChange']=_0x2aaece['id'];}_0x32113f['changes']=_0x32113f['changes']['concat'](_0x4e95fc);}return _0x32113f;}['_markMarkers'](_0x184416,_0x3dc1b2){for(let _0x4e6cbe=0x0;_0x4e6cbe<_0x184416['length'];_0x4e6cbe++)for(const [_0x47b2d8,_0x50765e]of _0x3dc1b2)_0x50765e['start']['isEqual'](_0x184416[_0x4e6cbe]['previousPosition'])&&_0x184416[_0x4e6cbe]['markersStart']['push'](_0x47b2d8),_0x50765e['end']['isEqual'](_0x184416[_0x4e6cbe]['nextPosition'])&&_0x184416[_0x4e6cbe]['markersEnd']['push'](_0x47b2d8);}['_joinTapes'](_0x553461,_0x25d602){let _0x143374=[],_0x25e865=0x0,_0x368295=0x0;for(;_0x25e865<_0x553461['length']||_0x368295<_0x25d602['length'];){const _0x332364=_0x553461[_0x25e865]||{},_0x1c7e27=_0x25d602[_0x368295]||{};if(_0x332364['id']==_0x1c7e27['id'])_0x25e865++,_0x368295++,_0x143374['push'](_0x332364);else{if(_0x1c7e27['isRemoved']&&_0x332364['isAdded']){const {commonTape:_0x4ebafd,iEnd:_0x493fb3,jEnd:_0x277c94}=this['_threeWayMerge'](_0x553461,_0x25e865,_0x25d602,_0x368295);_0x143374=_0x143374['concat'](_0x4ebafd),_0x25e865=_0x493fb3,_0x368295=_0x277c94;}else _0x1c7e27['isRemoved']?(_0x368295++,_0x143374['push'](_0x1c7e27)):(_0x25e865++,_0x143374['push'](_0x332364));}}return _0x143374;}['_markSuggestions'](_0x1d2f1b,_0x1eee79){const _0x299e44=[];for(let _0x3cbafc=0x0;_0x3cbafc<_0x1d2f1b['length'];_0x3cbafc++){for(let _0x320e37=0x0;_0x320e37<_0x1d2f1b[_0x3cbafc]['markersStart']['length'];_0x320e37++){const _0x1f7371=_0x1d2f1b[_0x3cbafc]['markersStart'][_0x320e37];if(!_0x1eee79['has'](_0x1f7371))continue;const {group:_0x576345,type:_0x4b4e82,authorId:_0x4f50c9}=_0x261962(_0x1f7371);'revision-suggestion'!=_0x576345||'insertion'!=_0x4b4e82&&'deletion'!=_0x4b4e82||(_0x299e44['unshift']({'type':_0x4b4e82,'name':_0x1f7371,'userId':_0x4f50c9}),_0x1d2f1b[_0x3cbafc]['markersStart']['splice'](_0x320e37,0x1),_0x320e37--);}_0x4d8e9a(_0x1d2f1b[_0x3cbafc]);for(let _0x7918a0=0x0;_0x7918a0<_0x1d2f1b[_0x3cbafc]['markersEnd']['length'];_0x7918a0++){const _0x72837c=_0x1d2f1b[_0x3cbafc]['markersEnd'][_0x7918a0];if(!_0x1eee79['has'](_0x72837c))continue;const {group:_0x5efd1f,type:_0x3e63a3}=_0x261962(_0x72837c);if('revision-suggestion'!=_0x5efd1f||'insertion'!=_0x3e63a3&&'deletion'!=_0x3e63a3)continue;_0x1d2f1b[_0x3cbafc]['markersEnd']['splice'](_0x7918a0,0x1),_0x7918a0--;const _0x5bba53=_0x299e44['findIndex'](_0x18e473=>_0x18e473['name']==_0x72837c);_0x5bba53>-0x1&&_0x299e44['splice'](_0x5bba53,0x1);}}function _0x261962(_0x2f88e9){const _0x2fbad3=_0x2f88e9['split'](':');return{'group':_0x2fbad3[0x0],'type':_0x2fbad3[0x1],'subType':_0x2fbad3['length']>=0x5?_0x2fbad3[0x2]:null,'id':_0x2fbad3['length']<0x5?_0x2fbad3[0x2]:_0x2fbad3[0x3],'authorId':_0x2fbad3['length']<0x5?_0x2fbad3[0x3]:_0x2fbad3[0x4],'markerCount':0x6==_0x2fbad3['length']?_0x2fbad3[0x5]:null};}function _0x4d8e9a(_0x19b989){for(let _0x29f3a8=0x0;_0x29f3a8<_0x299e44['length'];_0x29f3a8++){if(_0x19b989['isAdded']&&'insertion'==_0x299e44[_0x29f3a8]['type'])return _0x19b989['isAddSuggestion']=_0x299e44[_0x29f3a8],void delete _0x19b989['isAdded'];if(!_0x19b989['isAdded']&&!_0x19b989['isRemoved']&&'deletion'==_0x299e44[_0x29f3a8]['type'])return void(_0x19b989['isRemoveSuggestion']=_0x299e44[_0x29f3a8]);}}}['_setDistance'](_0x175a41,_0x103faf){let _0x163ac0=0x0,_0x57ccfb=!0x1;const _0x34be55=new Map();for(const _0x246d0c of _0x175a41)_0x246d0c[_0x103faf]?_0x57ccfb&&(_0x163ac0++,_0x57ccfb=!0x1):(_0x163ac0++,_0x57ccfb=!0x0),_0x34be55['set'](_0x246d0c['id'],_0x163ac0);for(let _0x14fa96=0x0;_0x14fa96<_0x175a41['length'];_0x14fa96++){if('isRemoved'==_0x103faf&&_0x175a41[_0x14fa96]['isAdded']||'isAdded'==_0x103faf&&_0x175a41[_0x14fa96]['isRemoved'])continue;if('text'==_0x175a41[_0x14fa96]['type']){_0x175a41[_0x14fa96]['distance']=0x0;continue;}const _0x27e7ed=_0x34be55['get'](_0x175a41[_0x14fa96]['pairId']),_0x4165e8=_0x34be55['get'](_0x175a41[_0x14fa96]['id']);_0x175a41[_0x14fa96]['distance']=_0x27e7ed-_0x4165e8;}}['_getRevisionsRange'](_0x5b3fbd,_0x15b1b7,_0x353c22=!0x1){const _0x3da583=[];let _0x135530=this['repository']['getIndex'](_0x5b3fbd),_0x4c2d99=this['repository']['getIndex'](_0x15b1b7);for(-0x1==_0x4c2d99&&(_0x4c2d99=this['repository']['_revisions']['length'],_0x353c22=!0x1);_0x135530<_0x4c2d99;)_0x3da583['push'](this['repository']['getRevision'](_0x135530)),_0x135530++;return _0x353c22&&_0x3da583['push'](this['repository']['getRevision'](_0x135530)),_0x3da583;}['_threeWayMerge'](_0x40e0e5,_0x5b88e6,_0x2d22b0,_0x24fb35){const _0x33e9e1=this['editor']['model']['schema'];let _0xb6a513=_0x5b88e6;for(;_0x40e0e5[_0xb6a513]&&_0x40e0e5[_0xb6a513]['isAdded'];)_0xb6a513++;let _0x4bd3df=_0x24fb35;for(;_0x2d22b0[_0x4bd3df]&&_0x2d22b0[_0x4bd3df]['isRemoved'];)_0x4bd3df++;_0x508a26(_0x40e0e5,_0x5b88e6,_0xb6a513),_0x508a26(_0x2d22b0,_0x24fb35,_0x4bd3df);const _0x45b3d5=_0x2d22b0['slice'](_0x24fb35,_0x4bd3df)['concat'](_0x40e0e5['slice'](_0x5b88e6,_0xb6a513));return _0x45b3d5['sort']((_0x1ab5b4,_0xa74d79)=>_0x1ab5b4['side']!=_0xa74d79['side']?_0x1ab5b4['side']-_0xa74d79['side']:_0x1ab5b4['level']!=_0xa74d79['level']?_0x1ab5b4['level']-_0xa74d79['level']:_0x1ab5b4['distance']!=_0xa74d79['distance']?_0xa74d79['distance']-_0x1ab5b4['distance']:!!_0x1ab5b4['isAdded']!=!!_0xa74d79['isAdded']?-0x1==_0x1ab5b4['side']||0x0==_0x1ab5b4['side']?_0x1ab5b4['isAdded']?-0x1:0x1:_0x1ab5b4['isAdded']?0x1:-0x1:_0x1ab5b4['index']-_0xa74d79['index']),{'commonTape':_0x45b3d5,'iEnd':_0xb6a513,'jEnd':_0x4bd3df};function _0x508a26(_0x584c33,_0x505ff7,_0x4cb3a9){let _0x273e64=-0x1,_0x3726c3=Number['POSITIVE_INFINITY'],_0x3de484=!0x0;for(let _0x244cc1=_0x505ff7;_0x244cc1<_0x4cb3a9;_0x244cc1++)if(_0x33e9e1['isInline'](_0x584c33[_0x244cc1]['item'])||(_0x3de484=!0x1),_0x584c33[_0x244cc1]['item']['startIndex']<_0x505ff7&&(_0x273e64=_0x244cc1),_0x584c33[_0x244cc1]['item']['endIndex']>=_0x4cb3a9){_0x3726c3=_0x244cc1;break;}_0x3de484&&(_0x273e64=_0x4cb3a9-0x1);for(let _0x24dbd2=_0x505ff7;_0x24dbd2<_0x4cb3a9;_0x24dbd2++)_0x584c33[_0x24dbd2]['side']=_0x24dbd2<=_0x273e64?-0x1:_0x24dbd2<_0x3726c3?0x0:0x1,_0x584c33[_0x24dbd2]['index']=_0x24dbd2;let _0x540fb7=0x0;for(let _0x561ad2=_0x505ff7;_0x561ad2<=_0x273e64;_0x561ad2++)0x0==_0x584c33[_0x561ad2]['distance']?_0x584c33[_0x561ad2]['level']=_0x540fb7:(_0x540fb7++,_0x584c33[_0x561ad2]['level']=_0x540fb7,_0x540fb7++);for(let _0x1f5ad7=_0x505ff7;_0x1f5ad7<_0x4cb3a9;_0x1f5ad7++)0x0==_0x584c33[_0x1f5ad7]['side']&&(_0x584c33[_0x1f5ad7]['level']=_0x540fb7);_0x540fb7=0x0;for(let _0x16438d=_0x4cb3a9-0x1;_0x16438d>=_0x3726c3;_0x16438d--)0x0==_0x584c33[_0x16438d]['distance']?_0x584c33[_0x16438d]['level']=_0x540fb7:(_0x540fb7--,_0x584c33[_0x16438d]['level']=_0x540fb7,_0x540fb7--);}}['_fixObsoleteTags'](_0x3b942f){const _0x25d9b4=new Map(),_0x495753=this['editor']['model']['schema'];for(let _0x4ae438=0x1;_0x4ae438<_0x3b942f['length'];_0x4ae438++){let _0x3af8df,_0x5670f8,_0x449c84;const _0x5d137f=_0x3b942f[_0x4ae438],_0x481fd2=_0x3b942f[_0x4ae438-0x1];if('text'==_0x5d137f['type'])continue;if(_0x5d137f['type']!=_0x481fd2['type'])continue;if(!_0x495753['isBlock'](_0x481fd2['item'])||_0x495753['isLimit'](_0x481fd2['item']))continue;if(!_0x495753['isBlock'](_0x5d137f['item'])||_0x495753['isLimit'](_0x5d137f['item']))continue;if((_0x3b942f[_0x4ae438]['isAdded']||_0x3b942f[_0x4ae438]['isAddSuggestion'])&&_0x3b942f[_0x4ae438-0x1]['isRemoved'])_0x3af8df=_0x3b942f[_0x4ae438],_0x5670f8=_0x3b942f[_0x4ae438-0x1],_0x449c84=_0x4ae438-0x1;else{if(!_0x3b942f[_0x4ae438]['isRemoved']||!_0x3b942f[_0x4ae438-0x1]['isAdded']&&!_0x3b942f[_0x4ae438-0x1]['isAddSuggestion'])continue;_0x3af8df=_0x3b942f[_0x4ae438-0x1],_0x5670f8=_0x3b942f[_0x4ae438],_0x449c84=_0x4ae438;}const _0x3d2454=_0x3af8df['level']==_0x5670f8['level'],_0x995c8e=Math['abs'](_0x3af8df['level'])<Math['abs'](_0x5670f8['level'])&&0x0==_0x5670f8['distance'];(_0x3d2454||_0x995c8e)&&(_0x25d9b4['set'](_0x5670f8['id'],_0x3af8df['id']),_0x3b942f['splice'](_0x449c84,0x1),_0x4ae438--,_0x3af8df['isAdded']=!0x1);}for(let _0xfdaa15=0x0;_0xfdaa15<_0x3b942f['length'];_0xfdaa15++)_0x25d9b4['has'](_0x3b942f[_0xfdaa15]['pairId'])&&(_0x3b942f[_0xfdaa15]['pairId']=_0x25d9b4['get'](_0x3b942f[_0xfdaa15]['pairId']));}['_removeMissingPairs'](_0x319596){const _0x236cc8=new Set(_0x319596['map'](_0x548626=>_0x548626['id']));for(let _0x584847=0x0;_0x584847<_0x319596['length'];_0x584847++)_0x236cc8['has'](_0x319596[_0x584847]['pairId'])||0x0==_0x319596[_0x584847]['distance']||(_0x319596[_0x584847]['isIncorrect']=!0x0);return _0x319596['filter'](_0x293848=>!_0x293848['isIncorrect']);}['_markMismatchedRemovedTags'](_0x40967e){const _0x274d37=new Set();for(let _0x80a27c=0x0;_0x80a27c<_0x40967e['length'];_0x80a27c++){if(_0x274d37['has'](_0x40967e[_0x80a27c]['id'])&&_0x40967e[_0x80a27c]['isRemoved']&&(_0x40967e[_0x80a27c]['isIncorrect']=!0x0),_0x40967e[_0x80a27c]['isIncorrect'])continue;if(0x0==_0x40967e[_0x80a27c]['distance'])continue;if('elementStart'!=_0x40967e[_0x80a27c]['type'])continue;if(null==_0x40967e[_0x80a27c]['pairId'])continue;let _0xc52e29=_0x80a27c+0x1,_0x24594d=0x0;for(;_0x40967e[_0xc52e29]['id']!=_0x40967e[_0x80a27c]['pairId'];)'elementStart'==_0x40967e[_0xc52e29]['type']?_0x24594d++:'elementEnd'==_0x40967e[_0xc52e29]['type']&&_0x24594d--,_0xc52e29++;if(0x0!=_0x24594d){if(_0x40967e[_0x80a27c]['isRemoved'])_0x40967e[_0x80a27c]['isIncorrect']=!0x0;else{for(;_0xc52e29!=_0x80a27c;)_0x40967e[_0xc52e29]['isRemoved']&&0x0!=_0x40967e[_0xc52e29]['distance']&&(_0x40967e[_0xc52e29]['isIncorrect']=!0x0,_0x274d37['add'](_0x40967e[_0xc52e29]['pairId'])),_0xc52e29--;}}}return _0x40967e['filter'](_0x22e472=>!_0x22e472['isIncorrect']);}['_removeUnsupportedChanges'](_0x1c221f){const _0x11ab1e=this['editor']['model']['schema'];for(let _0x7bbf04=0x0;_0x7bbf04<_0x1c221f['length'];_0x7bbf04++){if(!(_0x1c221f[_0x7bbf04]['isAdded']||_0x1c221f[_0x7bbf04]['isAddSuggestion']||_0x1c221f[_0x7bbf04]['isRemoved']||_0x1c221f[_0x7bbf04]['isRemoveSuggestion']))continue;if(0x0==_0x1c221f[_0x7bbf04]['distance'])continue;const _0x4b2a8a=_0x1c221f[_0x7bbf04]['item'];_0x11ab1e['isBlock'](_0x4b2a8a)||_0x11ab1e['isLimit'](_0x4b2a8a)||(_0x1c221f[_0x7bbf04]['isAdded']&&delete _0x1c221f[_0x7bbf04]['isAdded'],_0x1c221f[_0x7bbf04]['isAddSuggestion']&&delete _0x1c221f[_0x7bbf04]['isAddSuggestion'],_0x1c221f[_0x7bbf04]['isRemoveSuggestion']&&delete _0x1c221f[_0x7bbf04]['isRemoveSuggestion'],_0x1c221f[_0x7bbf04]['isRemoved']&&(_0x1c221f[_0x7bbf04]['isIncorrect']=!0x0));}return _0x1c221f['filter'](_0x23e062=>!_0x23e062['isIncorrect']);}['_makeModelFromTape'](_0x5aad5a,_0x2e1c1d,_0x41fbd2){const _0x4163bb=new gt(),_0x35b673=[],_0x410205=new Map(),_0x5dbe16=this['editor']['model'],_0x5f3afe=_0x5dbe16['schema'],_0x5dea98=[_0x4163bb],_0x4db4b1={},_0x2a44bb={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5ccb88=null;const _0x37aec7=[0x0];for(let _0x17b008=0x0;_0x17b008<_0x5aad5a['length'];_0x17b008++)if('elementStart'===_0x5aad5a[_0x17b008]['type']){_0x5aad5a[_0x17b008]['previousPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7);const _0x4f86df=new ut(_0x5aad5a[_0x17b008]['item']['name'],_0x5aad5a[_0x17b008]['item']['getAttributes']());_0x5dea98[0x0]['_appendChild'](_0x4f86df),_0x37aec7['push'](0x0),_0x5dea98['unshift'](_0x4f86df),_0x5aad5a[_0x17b008]['nextPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7);}else'elementEnd'===_0x5aad5a[_0x17b008]['type']?(_0x5dea98['shift'](),_0x5aad5a[_0x17b008]['previousPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7),_0x37aec7['pop'](),_0x37aec7[_0x37aec7['length']-0x1]++,_0x5aad5a[_0x17b008]['nextPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7)):(_0x5aad5a[_0x17b008]['previousPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7),_0x5ccb88?_0x5ccb88['_data']+=_0x5aad5a[_0x17b008]['item']['data']:_0x5ccb88=new wt(_0x5aad5a[_0x17b008]['item']['data'],_0x5aad5a[_0x17b008]['item']['getAttributes']()),_0x5aad5a[_0x17b008+0x1]&&'text'===_0x5aad5a[_0x17b008+0x1]['type']&&_0x34c056(_0x5ccb88,_0x5aad5a[_0x17b008+0x1]['item'])||(_0x5dea98[0x0]['_appendChild'](_0x5ccb88),_0x5ccb88=null),_0x37aec7[_0x37aec7['length']-0x1]+=_0x5aad5a[_0x17b008]['item']['offsetSize'],_0x5aad5a[_0x17b008]['nextPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7));for(let _0x13ad2e=0x0;_0x13ad2e<_0x5aad5a['length'];_0x13ad2e++){const _0x21d158=_0x5aad5a[_0x13ad2e]['previousPosition'],_0x438b98=_0x5aad5a[_0x13ad2e]['nextPosition'];for(const _0x284503 of _0x5aad5a[_0x13ad2e]['markersStart'])_0x410205['set'](_0x284503,{'start':_0x21d158,'end':null});_0x57a78f('isRemoveSuggestion',_0x13ad2e,_0x21d158,_0x438b98),_0x57a78f('isAddSuggestion',_0x13ad2e,_0x21d158,_0x438b98),_0x57a78f('isRemoved',_0x13ad2e,_0x21d158,_0x438b98),_0x57a78f('isAdded',_0x13ad2e,_0x21d158,_0x438b98);for(const _0x332ea2 of _0x5aad5a[_0x13ad2e]['markersEnd']){_0x410205['get'](_0x332ea2)['end']=_0x438b98;}}for(const [_0x5acc79,_0x576901]of _0x410205){const _0xcfb0f0=this['editor']['model']['createRange'](_0x576901['start'],_0x576901['end']);_0x4163bb['markers']['set'](_0x5acc79,_0xcfb0f0);}return _0x35b673['sort']((_0x2d25e1,_0x3ab507)=>{const _0xd58703=_0x4163bb['markers']['get']('revision:'+_0x2d25e1['id']),_0x16f9fb=_0x4163bb['markers']['get']('revision:'+_0x3ab507['id']);return _0xd58703['start']['isBefore'](_0x16f9fb['start'])?-0x1:_0xd58703['start']['isAfter'](_0x16f9fb['start'])?0x1:_0xd58703['end']['isBefore'](_0x16f9fb['end'])?-0x1:_0xd58703['end']['isAfter'](_0x16f9fb['end'])?0x1:'add'===_0x2d25e1['type']?-0x1:0x1;}),{'root':_0x4163bb,'changes':_0x35b673};function _0x57a78f(_0x4c8304,_0x3088d6,_0x407d01,_0x548ed5){const _0x3f3cea=!!_0x5aad5a[_0x3088d6][_0x4c8304],_0x53177b=_0x3f3cea?_0x5aad5a[_0x3088d6][_0x4c8304]['userId']:null,_0x4469ff=_0x3088d6===_0x5aad5a['length']-0x1,_0x5c2d50=_0x2a44bb[_0x4c8304][0x0],_0x535bc1=_0x5f3afe['isObject'](_0x5aad5a[_0x3088d6]['item']);!_0x4db4b1[_0x4c8304]&&_0x3f3cea?_0x4db4b1[_0x4c8304]={'start':_0x407d01,'tapeItem':_0x5aad5a[_0x3088d6],'userId':_0x53177b,'type':_0x4c8304}:_0x4db4b1[_0x4c8304]&&!_0x3f3cea?(_0x4db4b1[_0x4c8304]['end']=_0x407d01,_0x192c81(_0x4db4b1[_0x4c8304]),_0x4db4b1[_0x4c8304]=null):_0x4db4b1[_0x4c8304]&&_0x3f3cea&&_0x4db4b1[_0x4c8304]['userId']!==_0x53177b&&(_0x4db4b1[_0x4c8304]['end']=_0x407d01,_0x5c2d50&&_0x5c2d50['userId']===_0x4db4b1[_0x4c8304]['userId']||_0x192c81(_0x4db4b1[_0x4c8304]),_0x4db4b1[_0x4c8304]={'start':_0x407d01,'tapeItem':_0x5aad5a[_0x3088d6],'userId':_0x53177b,'type':_0x4c8304}),_0x4db4b1[_0x4c8304]&&_0x535bc1&&('elementStart'!==_0x5aad5a[_0x3088d6]['type']||_0x5c2d50&&_0x5c2d50['userId']===_0x53177b||_0x2a44bb[_0x4c8304]['unshift']({'userId':_0x53177b,'object':_0x5aad5a[_0x3088d6]['item'],'change':_0x4db4b1[_0x4c8304]}),'elementEnd'===_0x5aad5a[_0x3088d6]['type']&&_0x5c2d50&&_0x5c2d50['object']===_0x5aad5a[_0x3088d6]['item']&&(_0x2a44bb[_0x4c8304]['shift'](),_0x4db4b1[_0x4c8304]=_0x5c2d50['change'])),_0x4db4b1[_0x4c8304]&&_0x4469ff&&(_0x4db4b1[_0x4c8304]['end']=_0x548ed5,_0x192c81(_0x4db4b1[_0x4c8304]),_0x4db4b1[_0x4c8304]=null);}function _0x192c81({start:_0x421a88,end:_0x44e282,tapeItem:_0x536aaf,userId:_0x5e392d,type:_0x4b3c21}){const _0xa54d73=_0x536aaf['item'],_0xe269fd=_0x5dbe16['schema']['isBlock'](_0xa54d73)&&!_0x5dbe16['schema']['isLimit'](_0xa54d73),_0x4711cb=_0x421a88['nodeAfter']==_0x44e282['parent']&&_0x44e282['isAtStart'];if(_0xe269fd&&_0x4711cb)return;const _0x141999=_0x5dbe16['createRange'](_0x421a88,_0x44e282),_0x28bfd0=_0x2e1c1d['get'](_0x5e392d),_0x1bcf86=new r({'author':_0x28bfd0,'type':'isAdded'==_0x4b3c21||'isAddSuggestion'==_0x4b3c21?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4b3c21||'isRemoveSuggestion'==_0x4b3c21},'createdAt':new Date(),'rootName':_0x41fbd2});_0x35b673['push'](_0x1bcf86),_0x4163bb['markers']['set']('revision:'+_0x1bcf86['id'],_0x141999);}function _0x34c056(_0x2e7b72,_0x547c7f){const _0x2c8a73=_0x2e7b72['getAttributes'](),_0x72905b=_0x547c7f['getAttributes']();for(const _0x8a41dc of _0x2c8a73){if(_0x8a41dc[0x1]!==_0x547c7f['getAttribute'](_0x8a41dc[0x0]))return!0x1;_0x72905b['next']();}return _0x72905b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x465b79=>{const _0x16463b=_0x465b79['markerName']['split'](':')[0x1],_0xf78ea7=this['_getChangeFromId'](_0x16463b);if(!_0xf78ea7)return null;const _0x4bb92d='add'==_0xf78ea7['type']?'insertion':'deletion',_0x4c4d8c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4bb92d];return _0xf78ea7['data']['isSuggestion']&&_0x4c4d8c['push']('ck-suggestion-marker-'+_0x4bb92d+'-new'),this['activeChange']==_0xf78ea7&&_0x4c4d8c['push']('ck-suggestion-marker--active'),{'classes':_0x4c4d8c,'attributes':{'data-change-id':_0x16463b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5f75db=>{_0x5f75db['on']('element:pre',(_0x374cdd,_0x56cfc0,_0x4e94f5)=>{const _0x50b423=_0x56cfc0['viewItem']['getChild'](0x0);if(!_0x50b423||!_0x50b423['is']('element','code'))return;if(!_0x4e94f5['consumable']['consume'](_0x50b423,{'attributes':['vid_start','vid_end']}))return;const _0x1abe8f=_0x56cfc0['modelRange']['start']['nodeAfter'];_0x4e94f5['writer']['setAttribute']('vid_start',_0x50b423['getAttribute']('vid_start'),_0x1abe8f),_0x4e94f5['writer']['setAttribute']('vid_end',_0x50b423['getAttribute']('vid_end'),_0x1abe8f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x24e1f0=>{_0x24e1f0['on']('element',(_0x1a5397,_0x734d10,_0x2e2299)=>{if(!_0x2e2299['consumable']['consume'](_0x734d10['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x734d10['modelRange']['isCollapsed'])return;const _0x35b3a9=_0x734d10['modelRange']['start']['nodeAfter'];_0x35b3a9['hasAttribute']('vid_start')||_0x35b3a9['hasAttribute']('vid')||(_0x2e2299['writer']['setAttribute']('vid_start',_0x734d10['viewItem']['getAttribute']('vid_start'),_0x35b3a9),_0x2e2299['writer']['setAttribute']('vid_end',_0x734d10['viewItem']['getAttribute']('vid_end'),_0x35b3a9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x9a00ae=>_0x9a00ae['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4d473a,[,_0x2723b9])=>{['vid_start','vid_end','vid']['includes'](_0x2723b9)&&(_0x4d473a['return']=!0x0,_0x4d473a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xe07954=>{_0xe07954['on']('attribute:vid',(_0x857702,_0x12a8cc,_0x559ad9)=>{if('\x20'!=_0x12a8cc['item']['data']||_0x12a8cc['item']['parent']['maxOffset']>0x1)return;if(!_0x559ad9['consumable']['consume'](_0x12a8cc['item'],_0x857702['name']))return;const _0xfdffdf=_0x559ad9['writer'],_0x2aff90=_0x559ad9['mapper']['toViewRange'](_0x12a8cc['range']);_0xfdffdf['wrap'](_0x2aff90,_0xfdffdf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x261e75){const _0x7dfef5=_0x261e75['plugins']['get']('RevisionViewer');return(_0x535c56,_0x546b4f,_0xc032dd)=>{const _0x90b6d5=_0x546b4f['markerName']['split'](':')[0x1],_0x54eb85=_0x7dfef5['_getChangeFromId'](_0x90b6d5);if(!_0x54eb85)return null;const _0x5e6ce0='add'==_0x54eb85['type']?'split':'merge';if(!_0xc032dd['consumable']['test'](_0x546b4f['markerRange'],_0x535c56['name']))return;const _0x5350bb=_0x546b4f['markerRange']['getWalker'](),_0x336443=_0x546b4f['markerRange']['start'],_0x45699e=_0x261e75['model']['schema'];let _0x4554d0=null,_0x335d36=null,_0x5757cb=!0x1,_0x5b7b03=!0x1;for(const _0x8ca724 of _0x5350bb){const _0x59f4e0=_0x8ca724['item'];_0x5757cb=_0x5757cb||_0x45699e['isContent'](_0x59f4e0);const _0x1330b2=_0xc032dd['mapper']['toViewElement'](_0x59f4e0);if(_0x1330b2&&_0x1330b2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x8ca724['type']&&(_0x45699e['isBlock'](_0x59f4e0)&&!_0x45699e['isLimit'](_0x59f4e0)&&(_0x59f4e0['nextSibling']||_0x336443['isAtEnd']?_0x4554d0&&_0x4554d0['parent']==_0x59f4e0||(_0x4554d0=_0x59f4e0,_0x198fd4(_0x8ca724['previousPosition']),_0x5b7b03=!0x0):_0x335d36=_0x335d36||_0x8ca724['previousPosition']));}function _0x198fd4(_0x4c396f){const _0x1a6c0d=_0xc032dd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e6ce0}),_0x2ae574=_0xc032dd['mapper']['toViewPosition'](_0x4c396f);_0x54eb85['data']['isSuggestion']&&_0xc032dd['writer']['addClass']('ck-suggestion-marker-'+_0x5e6ce0+'-new',_0x1a6c0d),_0x7dfef5['activeChange']==_0x54eb85&&_0xc032dd['writer']['addClass']('ck-suggestion-marker--active',_0x1a6c0d),_0xc032dd['writer']['insert'](_0x2ae574,_0x1a6c0d),_0xc032dd['mapper']['bindElementToMarker'](_0x1a6c0d,_0x546b4f['markerName']);}_0x5757cb||_0x5b7b03||!_0x335d36||_0x198fd4(_0x335d36);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x13f401,_0x26db63,_0x5e7b4b)=>{const _0x26e9a5=_0x5e7b4b['mapper']['markerNameToElements'](_0x26db63['markerName']);if(_0x26e9a5){for(const _0x8fecb5 of _0x26e9a5)(_0x8fecb5['hasClass']('ck-suggestion-marker-split')||_0x8fecb5['hasClass']('ck-suggestion-marker-merge'))&&(_0x5e7b4b['mapper']['unbindElementFromMarkerName'](_0x8fecb5,_0x26db63['markerName']),_0x5e7b4b['writer']['remove'](_0x8fecb5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x44ab63,_0x4ca1eb,_0x258af3)=>{const _0x4f6513=_0x4ca1eb['markerName']['split'](':')[0x1],_0x3ed54e=this['_getChangeFromId'](_0x4f6513);if(!_0x3ed54e)return null;const _0x5b69e5='add'==_0x3ed54e['type']?'split':'merge';if(_0x258af3['consumable']['test'](_0x4ca1eb['markerRange'],_0x44ab63['name']))for(const _0x432fb1 of _0x4ca1eb['markerRange']['getItems']()){if(!_0x432fb1['is']('element','softBreak'))continue;const _0x141e77=_0x258af3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b69e5}),_0x4b4c97=_0x258af3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x432fb1));_0x3ed54e['data']['isSuggestion']&&_0x258af3['writer']['addClass']('ck-suggestion-marker-'+_0x5b69e5+'-new',_0x141e77),this['activeChange']==_0x3ed54e&&_0x258af3['writer']['addClass']('ck-suggestion-marker--active',_0x141e77),_0x258af3['writer']['insert'](_0x4b4c97,_0x141e77),_0x258af3['mapper']['bindElementToMarker'](_0x141e77,_0x4ca1eb['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x888248=>{for(const _0x526911 of this['editor']['model']['document']['getRootNames']()){const _0x1508e3=this['editor']['model']['document']['getRoot'](_0x526911),_0x87ade0=this['editor']['editing']['view']['document']['getRoot'](_0x526911);if(_0x87ade0){const _0x5c0064=_0x1508e3['getAttribute']('revisionHistoryAttachChange');if(_0x888248['removeAttribute']('data-change-id',_0x87ade0),_0x888248['removeClass']('ck-revision-history-root-add',_0x87ade0),_0x888248['removeClass']('ck-revision-history-root-remove',_0x87ade0),_0x888248['removeClass']('ck-revision-history-root--active',_0x87ade0),_0x5c0064){const _0x389b5d=this['_getChangeFromId'](_0x5c0064);if(!_0x389b5d)return null;_0x888248['setAttribute']('data-change-id',_0x5c0064,_0x87ade0),_0x888248['addClass']('ck-revision-history-root-'+_0x389b5d['type'],_0x87ade0),this['activeChange']==_0x389b5d&&_0x888248['addClass']('ck-revision-history-root--active',_0x87ade0);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x27dac9=>'revision-comment:'+_0x27dac9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xfe9736=>'revision-suggestion:'+_0xfe9736,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3abd14=>({'name':'suggestion:'+_0x3abd14,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x48cba0=>{const _0x3323a0=_0x48cba0['markerName']['split'](':')[0x1];return'insertion'!=_0x3323a0&&'deletion'!=_0x3323a0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3323a0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x44aa5d,_0x3d2206,_0x422e89)=>{const _0x33eb32=_0x422e89['mapper']['markerNameToElements'](_0x3d2206['markerName']);if(_0x33eb32){for(const _0x16f4fd of _0x33eb32)_0x16f4fd['is']('uiElement')&&(_0x422e89['mapper']['unbindElementFromMarkerName'](_0x16f4fd,_0x3d2206['markerName']),_0x422e89['writer']['remove'](_0x16f4fd));}},{'priority':'high'});}['_getChangeFromId'](_0x125bcb){return this['_changeIdToChange']['get'](_0x125bcb);}['_getViewForChange'](_0x49c663){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x49c663),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x9e1392,_0x35a77,_0x2902da,_0x463aae)=>{_0x463aae&&this['_balloon']['remove'](_0x463aae),_0x2902da&&(this['_balloon']['add']({'view':_0x2902da,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x214448=this['editor']['editing'],_0x17047b=this['_getChangeFromId'](_0x2902da['changeId']);let _0xf2672f;if(_0x17047b['data']['isOnRoot']){const _0xfda0bc=_0x214448['view']['getDomRoot'](_0x17047b['rootName']);_0xf2672f=Array['from'](_0xfda0bc['getClientRects']());}else{const _0x3f1621=this['editor']['model']['markers']['get']('revision:'+_0x2902da['changeId']);_0xf2672f=Array['from'](_0x214448['mapper']['markerNameToElements'](_0x3f1621['name']))['map'](_0x42b4a0=>_0x214448['view']['domConverter']['mapViewToDom'](_0x42b4a0))['map'](_0xaadea2=>Array['from'](_0xaadea2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xf2672f[0x0];return _0xf2672f['find'](_0x4d3f52=>_0x4d3f52['top']-0x3<=this['_activeViewTarget']['y']&&_0x4d3f52['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4d3f52['left']-0x3<=this['_activeViewTarget']['x']&&_0x4d3f52['right']+0x3>=this['_activeViewTarget']['x'])||_0xf2672f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x58167f,_0x103356,_0x458dfa,_0x1cce7c)=>{this['activeView']=_0x458dfa?this['_getViewForChange'](_0x458dfa):null,this['editor']['model']['change'](()=>{const _0x20d8af=this['editor']['editing'];_0x1cce7c&&(_0x1cce7c['data']['isOnRoot']?_0x20d8af['view']['change'](_0x48145e=>{_0x48145e['removeClass']('ck-revision-history-root--active',_0x20d8af['view']['document']['getRoot'](_0x1cce7c['rootName']));}):_0x20d8af['reconvertMarker']('revision:'+_0x1cce7c['id'])),_0x458dfa&&(_0x458dfa['data']['isOnRoot']?_0x20d8af['view']['change'](_0x1a32d6=>{_0x1a32d6['addClass']('ck-revision-history-root--active',_0x20d8af['view']['document']['getRoot'](_0x458dfa['rootName']));}):_0x20d8af['reconvertMarker']('revision:'+_0x458dfa['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x16231b,_0x3a01f1)=>{if(this['activeChange'])return;const _0x4754e8=this['_findChangeIdFromDomTarget'](_0x3a01f1['target']),_0x129ca7=this['_changeIdToChange']['get'](_0x4754e8);_0x129ca7?(this['_activeViewTarget']={'x':_0x3a01f1['domEvent']['x'],'y':_0x3a01f1['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x129ca7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x211594,_0x30f4b8)=>{const _0x3d72fa=this['_findChangeIdFromDomTarget'](_0x30f4b8['target']),_0x240162=this['_changeIdToChange']['get'](_0x3d72fa);_0x240162?(this['_activeViewTarget']={'x':_0x30f4b8['domEvent']['x'],'y':_0x30f4b8['domEvent']['y']},_0x240162===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x240162):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x52aa5d){do{const _0x3731b9=_0x52aa5d['getAttribute']('data-change-id');if(_0x3731b9)return _0x3731b9;_0x52aa5d=_0x52aa5d['parent'];}while(_0x52aa5d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5dbc48=>{for(const _0x5e44e8 of this['editor']['model']['markers'])_0x5dbc48['removeMarker'](_0x5e44e8);});}}function Z(_0x82d5f,_0x290b8b){return(_0x5adb0b,_0x3acdaf,_0x4e6338)=>{if(!_0x4e6338['consumable']['test'](_0x3acdaf['markerRange'],_0x5adb0b['name']))return;const _0x23588e=_0x3acdaf['markerRange']['getWalker'](),_0x536062=_0x3acdaf['markerRange']['start'],_0x3b7872=_0x82d5f['model']['schema'];let _0x1ce922=null,_0x5515b1=null,_0x2fe262=!0x1,_0x433e16=!0x1;for(const _0x17045c of _0x23588e){const _0x231510=_0x17045c['item'];_0x2fe262=_0x2fe262||_0x3b7872['isContent'](_0x231510);const _0x54a8e8=_0x4e6338['mapper']['toViewElement'](_0x231510);if(_0x54a8e8&&_0x54a8e8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17045c['type']&&(_0x3b7872['isBlock'](_0x231510)&&!_0x3b7872['isLimit'](_0x231510)&&(_0x231510['nextSibling']||_0x536062['isAtEnd']?_0x1ce922&&_0x1ce922['parent']==_0x231510||(_0x1ce922=_0x231510,_0x4c623d(_0x17045c['previousPosition']),_0x433e16=!0x0):_0x5515b1=_0x5515b1||_0x17045c['previousPosition']));}function _0x4c623d(_0x12bc92){const _0x398b2a=_0x4e6338['mapper']['toViewPosition'](_0x12bc92),_0x5d2c75=_0x4e6338['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x290b8b});_0x4e6338['writer']['insert'](_0x398b2a,_0x5d2c75),_0x4e6338['mapper']['bindElementToMarker'](_0x5d2c75,_0x3acdaf['markerName']);}_0x2fe262||_0x433e16||!_0x5515b1||_0x4c623d(_0x5515b1);};}class _t extends _0x36aae4{constructor(_0x1a79d8){super(_0x1a79d8);const _0x28769f=_0x1a79d8['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x28769f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28769f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3bb93f=this['editor'],_0x5d4f63=_0x3bb93f['plugins']['get'](d),_0x28a5ca=_0x5d4f63['isReady']?_0x5d4f63['diff']['newRevisionId']:null;_0x3bb93f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x28a5ca);}['refresh'](){const {isReady:_0x109742,isEnabled:_0x163e37,repository:_0x12c6d3,diff:_0x265a1a}=this['editor']['plugins']['get'](d),_0x46a20c=_0x265a1a&&_0x12c6d3['getLaterVisibleRevision'](_0x265a1a['newRevisionId']);this['isEnabled']=_0x109742&&_0x163e37&&Boolean(_0x46a20c);}}class yt extends _0x36aae4{['_step'];constructor(_0x596097,{direction:_0x3d8a8e}){super(_0x596097);const _0x57a30c=_0x596097['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3d8a8e?0x1:-0x1,this['listenTo'](_0x57a30c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x57a30c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x57a30c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2fbe91=this['editor'],_0x50599c=_0x2fbe91['plugins']['get'](d),{isNavigationMode:_0x3a11e9,currentChangeNumber:_0x146544}=_0x50599c;let _0x3bd224;if(_0x50599c['activeChange']=_0x3a11e9?_0x50599c['diff']['changes']['get'](_0x146544+this['_step']):_0x50599c['diff']['changes']['first'],_0x50599c['activeChange']['data']['isOnRoot'])_0x3bd224=_0x2fbe91['editing']['view']['getDomRoot'](_0x50599c['activeChange']['rootName']);else{const _0x311c92=_0x2fbe91['model']['markers']['get']('revision:'+_0x50599c['activeChange']['id']);_0x3bd224=_0x173f60(_0x2fbe91['editing'],_0x311c92);}_0x4616bc({'target':_0x3bd224,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4e84d0,currentChangeNumber:_0x24f3a9,numberOfChanges:_0x31df5d,isReady:_0x2a9456,isEnabled:_0x32917f}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x32917f&&_0x2a9456&&_0x31df5d)&&(!_0x4e84d0||(0x1===this['_step']?_0x24f3a9<_0x31df5d-0x1:_0x24f3a9>0x0));}}class _i extends _0x18cf46{constructor(_0x35984d){super(_0x35984d);const _0x55486f=this['bindTemplate'],_0x473717=new _0x38e8b4(_0x35984d),_0x1b8c7c=new _0x38e8b4(_0x35984d);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',(_0x35858b,_0x20c2dc)=>_0x35858b&&_0x20c2dc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x41a1d7,_0x527464,_0x349eb8,_0x1fdeb2)=>{if(!_0x41a1d7)return m(_0x35984d,'Loading...');if(!_0x349eb8)return m(_0x35984d,'No\x20changes');const _0x21ff6b=m(_0x35984d,'NUMBER_OF_CHANGES',_0x349eb8);return _0x1fdeb2?m(_0x35984d,'X_OF_Y_CHANGES',[_0x527464+0x1,_0x349eb8]):_0x21ff6b;}),_0x473717['set']({'label':m(_0x35984d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x378756}),_0x1b8c7c['set']({'label':m(_0x35984d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4593b4}),_0x473717['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1b8c7c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x473717['on']('execute',()=>this['fire']('execute','backward')),_0x1b8c7c['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',_0x55486f['if']('_isStatusLabelVisible','ck-hidden',_0x1048a4=>!_0x1048a4)]},'children':[{'text':_0x55486f['to']('isNavigationMode',_0x574297=>_0x574297?m(_0x35984d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x35984d,'Total')+':\x20')}]},{'text':_0x55486f['to']('_statusText')}]},new _0xdaec5e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x473717,_0x1b8c7c]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x15a41a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x47eca1=this['editor']['editing']['view'];_0x47eca1['change'](_0xd0c828=>{for(const _0x133259 of _0x47eca1['document']['roots'])_0xd0c828['addClass'](ce,_0x133259);});}['hide'](){const _0x144d35=this['editor']['editing']['view'];_0x144d35['change'](_0x4feb92=>{for(const _0x218aff of _0x144d35['document']['roots'])_0x4feb92['removeClass'](ce,_0x218aff);});}}class w extends _0x15a41a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x2efadf=this['editor'],_0x3f2c68=_0x2efadf['plugins']['get'](d),_0x1acba7=_0x2efadf['plugins']['get'](le);_0x2efadf['ui']['componentFactory']['add']('exitToEditing',_0x916b45=>{const _0x63d42f=new _0x38e8b4(_0x916b45);return _0x63d42f['set']({'label':m(_0x916b45,'Back\x20to\x20editing'),'icon':_0x48d0e1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x63d42f,'execute',()=>{_0x2efadf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x63d42f;}),_0x2efadf['ui']['componentFactory']['add']('restoreRevision',_0x234c5f=>{const _0xf7fdd1=new _0x38e8b4(_0x234c5f);return _0xf7fdd1['set']({'label':m(_0x234c5f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xf7fdd1['bind']('isEnabled')['to'](_0x2efadf['commands']['get']('restoreRevision')),this['listenTo'](_0xf7fdd1,'execute',()=>_0x2efadf['execute']('restoreRevision')),_0xf7fdd1;}),_0x2efadf['ui']['componentFactory']['add']('changesNavigation',_0x2a0e6e=>{const _0x4682fd=new _i(_0x2a0e6e),_0xdc5bc4=_0x2efadf['commands']['get']('showPreviousChange'),_0x34a549=_0x2efadf['commands']['get']('showNextChange');return _0x4682fd['bind']('isBackwardNavigationEnabled')['to'](_0xdc5bc4,'isEnabled'),_0x4682fd['bind']('isForwardNavigationEnabled')['to'](_0x34a549,'isEnabled'),_0x4682fd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3f2c68),this['listenTo'](_0x4682fd,'execute',(_0x1d8142,_0xfac168)=>{_0x2efadf['execute']('forward'===_0xfac168?'showNextChange':'showPreviousChange');}),_0x4682fd;}),_0x1acba7['show'](),_0x3f2c68['on']('change:isReady',(_0x4f33be,_0xf95e1a,_0x3e3fc5)=>{_0x3e3fc5?_0x1acba7['hide']():_0x1acba7['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x4257cf,_0x28133e){super(_0x4257cf,_0x28133e);const _0x120a21=this['bindTemplate'];this['set']({'label':m(_0x4257cf,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4257cf,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x120a21['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x506cc5=this['fieldView']['element'];this['_tooltipString']=_0x506cc5['scrollWidth']>_0x506cc5['clientWidth']&&_0x506cc5['value']||'';}}class oi extends _0x18cf46{constructor(_0x3f2a6f,_0x160651,_0x1213c5){super(_0x3f2a6f);const _0x16cf8b=new _0x298fb4();_0x16cf8b['set']({'content':_0x112fe5,'viewBox':'0\x200\x2011\x2010'});const _0x4e62ea=['ck','ck-revision-history-sidebar__revision-author'];_0x1213c5&&_0x4e62ea['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4e5b8b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x3f2a6f,_0x1213c5?'Revision\x20creator':'Revision\x20author')},'children':[_0x16cf8b,_0x160651['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4e62ea},'children':_0x4e5b8b});}}function ni(_0x3a7981,_0x1bf12a){const _0x4b6e75=_0x3a7981['bindTemplate'],_0x5443f5=_0x3a7981['locale'],_0x1cb7b5=_0x2cc8a3(_0x5443f5);_0x1cb7b5['panelPosition']='sw';const _0x351c50=function(_0x18509d,_0x1d71ec){const _0x2c1693=function(_0x5654f6,_0x3353c0){const _0x2ce424=_0x5654f6['locale'],_0x3c2153={'Compare\x20against\x20selected':m(_0x2ce424,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2ce424,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2ce424,'Restore\x20this\x20revision')};return _0x3353c0['map'](_0x8b1a2=>{const _0x56ba6d=_0x3c2153[_0x8b1a2['name']];return _0x56ba6d&&_0x56ba6d!==_0x8b1a2['name']&&(_0x8b1a2['name']=_0x56ba6d),_0x8b1a2;});}(_0x18509d,_0x1d71ec),_0x49ea3e=new _0x316ce2();for(const _0x5b1be5 of _0x2c1693){const _0x4e5422={'type':'button','model':new to({'label':_0x5b1be5['name'],'class':_0x5b1be5['class'],'withText':!0x0,'role':'menuitem','_action':_0x5b1be5['action']})};_0x4e5422['model']['bind']('isEnabled')['to'](_0x18509d,'isActionsDropdownOpen',_0x46df34=>'function'!=typeof _0x5b1be5['isEnabled']||(!_0x46df34||_0x5b1be5['isEnabled'](_0x18509d))),_0x49ea3e['add'](_0x4e5422);}return _0x49ea3e;}(_0x3a7981,_0x1bf12a);return _0x3a7981['bind']('isActionsDropdownOpen')['to'](_0x1cb7b5,'isOpen'),_0x1cb7b5['buttonView']['set']({'label':m(_0x5443f5,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x208eb8}),_0x1cb7b5['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4b6e75['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4b6e75['to'](_0x34c4c0=>_0x34c4c0['stopPropagation']())}}),_0x1cb7b5['on']('execute',_0x4bd93a=>{_0x3a7981['isReady']&&'function'==typeof _0x4bd93a['source']['_action']&&_0x4bd93a['source']['_action'](_0x3a7981);}),_0x40b77b(_0x1cb7b5,_0x351c50,{'role':'menu'}),_0x1cb7b5['listenTo'](_0x3a7981,'change:isActionsDropdownOpen',(_0x251664,_0x7e35fe,_0x5ef9e6)=>{if(_0x5ef9e6)for(const _0x114da1 of _0x1cb7b5['listView']['items']){const _0x1d60ee=_0x114da1['children']['first'],_0x12a388=_0x1bf12a['find'](_0x29d5d8=>_0x29d5d8['action']===_0x1d60ee['_action'])['isVisible'];_0x114da1['isVisible']=void 0x0===_0x12a388||_0x12a388(_0x3a7981);}}),_0x1cb7b5;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x58a203(_0x18cf46){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2cbe1a,_0x1528ed,_0x330f97,_0x3f8a93){super(_0x2cbe1a);const _0x101a50=this['bindTemplate'],_0x109881=function(_0x3e4435,_0x5bba7d){const _0x27bb8c=Array['from'](_0x5bba7d['authors'])['filter'](_0x16a406=>_0x16a406!=_0x5bba7d['creator']);return _0x5bba7d['creator']&&_0x27bb8c['unshift'](_0x5bba7d['creator']),_0x27bb8c['map'](_0x45ecac=>new oi(_0x3e4435,_0x45ecac,_0x45ecac==_0x5bba7d['creator']));}(_0x2cbe1a,_0x1528ed);this['id']=_0x1528ed['id'],this['_revision']=_0x1528ed,this['_requireRevisionName']=_0x3f8a93,this['bind']('name','createdAt')['to'](_0x1528ed),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x158a0e=>{return _0x138a94=_0x2cbe1a['uiLanguage'],(_0x3372f9=_0x158a0e)['toLocaleDateString'](_0x138a94,{'month':'long','day':'numeric'})+',\x20'+_0x3372f9['toLocaleTimeString'](_0x138a94,{'hour':'numeric','minute':'numeric'});var _0x138a94,_0x3372f9;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x2cbe1a,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x7d4177=>_0x7d4177||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4bfb75,_0x47f62c)=>_0x4bfb75&&_0x47f62c),this['revisionActionsView']=_0x330f97&&_0x330f97['length']?ni(this,_0x330f97):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x101a50['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x101a50['if']('isEnabled','ck-disabled',_0xa8ead1=>!_0xa8ead1),_0x101a50['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x101a50['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x101a50['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':_0x101a50['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':_0x109881}]},this['revisionActionsView']],'on':{'click':_0x101a50['to'](_0x14523f=>{_0x14523f['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4a55ea=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4a55ea,'change',()=>{this['_requireRevisionName']&&!_0x4a55ea['value']||this['fire']('setName',{'id':this['id'],'name':_0x4a55ea['value']}),_0x4a55ea['value']||(_0x4a55ea['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x5e6ccc,_0x38147d){const _0x19e0fe=_0x537d06['fromJSDate'](_0x5e6ccc)['setLocale'](_0x38147d),_0x1cc0ed=_0x537d06['local'](),_0x53a4f0=_0x1cc0ed['minus']({'days':0x1})['startOf']('day');let _0x589dab,_0x3fd453;return _0x19e0fe['hasSame'](_0x1cc0ed,'day')?(_0x589dab=_0x19e0fe['startOf']('day')['toJSDate'](),_0x3fd453=_0x19e0fe['toRelativeCalendar']()):_0x19e0fe['hasSame'](_0x53a4f0,'day')?(_0x589dab=_0x53a4f0['toJSDate'](),_0x3fd453=_0x19e0fe['toRelativeCalendar']()):_0x19e0fe['hasSame'](_0x1cc0ed,'week')?(_0x589dab=_0x19e0fe['startOf']('week')['toJSDate'](),_0x3fd453=_0x19e0fe['weekdayLong']||''):_0x19e0fe['hasSame'](_0x1cc0ed,'year')?(_0x589dab=_0x19e0fe['startOf']('month')['toJSDate'](),_0x3fd453=_0x19e0fe['monthLong']||''):(_0x589dab=_0x19e0fe['startOf']('year')['toJSDate'](),_0x3fd453=String(_0x19e0fe['year'])),{'startDate':_0x589dab,'localizedPeriodName':_0x3fd453};}class mi extends _0x18cf46{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3f50ba,_0x1a1111,_0x11baeb,_0x5a40b1){super(_0x3f50ba);const _0xfc4ed0=vi(_0x1a1111,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1a1111,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x11baeb,this['_requireRevisionName']=_0x5a40b1,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':_0xfc4ed0}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x27392a){const _0x521648=new ai(this['locale'],_0x27392a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x521648);}['removeRevision'](_0x5e6d97){const _0x179407=this['revisionViews']['find'](_0x4b2690=>_0x4b2690['id']===_0x5e6d97['id']);this['revisionViews']['remove'](_0x179407);}}class is extends _0x18cf46{constructor(_0x47684b){super(_0x47684b);const _0x4dc77c=new _0x298fb4();_0x4dc77c['content']=_0xe4f57,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4dc77c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x47684b,'Revision\x20history')]}]});}}class di extends _0x18cf46{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x25ca71,_0x576263,_0x1af5b9,_0x143338){super(_0x25ca71);const _0x3cb768=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x576263,this['_revisionActions']=_0x1af5b9,this['_requireRevisionName']=_0x143338,this['on']('select',(_0xbaaaba,_0x40ed9f)=>{this['fire']('revisionSelected',_0x40ed9f);}),this['on']('setName',(_0x399026,_0xedbb3e)=>{this['fire']('revisionSetName',_0xedbb3e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x25ca71),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3cb768['if']('isEnabled','ck-disabled',_0x3b8078=>!_0x3b8078)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xaab39e of this['_revisions'])this['_addRevision'](_0xaab39e);this['_revisions']['on']('add',(_0x4cf218,_0x22eee4)=>{this['_addRevision'](_0x22eee4);}),this['_revisions']['on']('remove',(_0x3cfdc1,_0x365596)=>{this['_removeRevision'](_0x365596);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3c22f2=>_0x3c22f2['revisionViews']['map'](_0x2822a6=>_0x2822a6))['flat']();}['selectRevision'](_0x512091){for(const _0x540a2b of this['revisionViews'])_0x512091&&_0x512091['id']===_0x540a2b['id']?_0x540a2b['select']():_0x540a2b['deselect']();}['highlightRevisions'](_0x5e39ce){for(const _0x33bd94 of this['revisionViews'])_0x5e39ce['some'](({id:_0x35f45a})=>_0x35f45a===_0x33bd94['id'])?_0x33bd94['highlight']():_0x33bd94['unhighlight']();}['_addRevision'](_0x534026){const _0x40ad7c=vi(_0x534026['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2ccc66=this['timePeriodViews']['get'](0x0);_0x2ccc66&&_0x2ccc66['startDate']['getTime']()===_0x40ad7c['getTime']()||(_0x2ccc66=new mi(this['locale'],_0x40ad7c,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2ccc66)),_0x2ccc66['addRevision'](_0x534026);}['_removeRevision'](_0x76a3ab){const _0x4c4d4d=vi(_0x76a3ab['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4c4d4d)['removeRevision'](_0x76a3ab);}['_getTimePeriodViewByStartDate'](_0xe876dd){return this['timePeriodViews']['find'](_0x131665=>_0x131665['startDate']['getTime']()===_0xe876dd['getTime']());}}class g extends _0x15a41a{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x54607a,_0x2d6d4a){super(_0x2d6d4a),this['sourceElement']=_0x54607a,this['model']['document']['createRoot']();const _0x4c2b93=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x4c2b93);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3c6f5f,_0x15e514){const _0x1bd0f8=new this(_0x3c6f5f,_0x15e514);return await _0x1bd0f8['initPlugins'](),await _0x1bd0f8['ui']['init'](_0x3c6f5f),await _0x1bd0f8['data']['init'](_0x1bd0f8['config']['get']('initialData')||''),_0x1bd0f8['fire']('ready'),_0x1bd0f8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x5842cf{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23bd9d){function _0xf5ac5f(_0x32f370){return _0x32f370['map'](_0x276d05=>String['fromCharCode'](_0x276d05))['join']('');}super(_0x23bd9d),this['result']='end',_0x23bd9d[_0xf5ac5f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf5ac5f([0x76,0x69,0x65,0x77])][_0xf5ac5f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf5ac5f([0x61,0x75,0x74,0x6f]),_0x23bd9d[_0xf5ac5f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xf5ac5f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf5ac5f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xf5ac5f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xf5ac5f([0x6f,0x6b])});}}class k extends _0x5842cf{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2843f1){if(super(_0x2843f1),!this['editor']['config']['get']('revisionHistory'))throw new _0x4ea387('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1b893d=>this['_showRevisionViewer']({..._0x1b893d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x662d81=>this['_closeRevisionViewer'](_0x662d81)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4ce1cb=>this['_restoreRevision'](_0x4ce1cb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5ad001){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5ad001;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2da1d7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2da1d7);}['getRevision'](_0x1f2cb6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1f2cb6);}['getRevisions'](_0x81949){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x81949||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5d0b22=this['editor'],_0x916317=_0x5a0792(_0x5d0b22,p),_0xe18ac1=_0x5d0b22['plugins']['get']('RevisionTracker'),_0x53d03e=_0x5d0b22['plugins']['get']('Users')['users'];return _0x916317['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x916317['lazyRoots'],(_0x916317['plugins']['push'](Rt,d,w,class extends _0x5842cf{static get['requires'](){return[d,'Users'];}['init'](){const _0x2d2a66=this['editor']['plugins']['get']('Users');for(const _0x1d50fa of _0x53d03e)_0x1d50fa['isAnonymous']||_0x2d2a66['getUser'](_0x1d50fa['id'])||_0x2d2a66['addUser'](_0x1d50fa);const _0xecba90=_0xe18ac1['repository']['getRevisions']();let _0x4ba312=null;const _0x1e732c=this['editor']['plugins']['get']('RevisionViewer');_0x1e732c['adapter']=_0xe18ac1['adapter'],_0x1e732c['bind']('isEnabled')['to'](_0xe18ac1),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5d0b22,'isReadOnly',_0x468231=>!_0x468231);for(const _0x19b4a0 of _0xecba90){const _0x1a700a=null===_0x19b4a0['creator'];if(_0x1a700a&&_0x19b4a0['toVersion']===_0x19b4a0['fromVersion'])continue;const _0xa8fcb0=_0x19b4a0['toJSON']();_0x1e732c['addRevisionData'](_0xa8fcb0,(_0x4016cd,_0x5d432d,_0x335571)=>{if(_0x1a700a){if(_0x4ba312)_0x4ba312['_update'](_0x4016cd,_0x5d432d);else{if(!_0x5d432d){const _0x47f4db=_0x335571['toJSON']();_0x47f4db['id']=_0x16b583(),_0xe18ac1['saveRevision'](_0x47f4db,_0x335571['toVersion'])['then'](_0x37b5cf=>{_0x4ba312=_0x37b5cf;});}}}else _0x19b4a0['_update'](_0x4016cd,_0x5d432d);});}}},g),_0x916317);}['_enhanceShowRevisionViewerCallback'](){const _0x112fab=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x6ce2a8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x32c07b=this['editor']['plugins']['get']('Autosave');await _0x32c07b['save']();}else await _0x6ce2a8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x53b080=this['editor']['plugins']['get']('Dialog');_0x53b080['isOpen']&&_0x53b080['hide']();}const _0x389c77=this['_getRevisionViewerEditorConfig']();return _0x112fab(_0x389c77)['then'](_0x3697ae=>{return(this['_viewerEditor']=_0x3697ae,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3697ae;})['catch'](_0x224f4e=>(console['error'](_0x224f4e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x522b6e=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x522b6e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3d8b77=this['editor']['plugins']['get']('Annotations');_0x3d8b77['refreshVisibility'](),_0x3d8b77['refreshPositioning']();}})));}['_showRevisionViewer'](_0x58618e){const _0x441c21=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe78966=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x40f1a5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x40f1a5,_0x58618e)['then'](_0x52deb1=>(_0xe78966['style']['display']='block',_0x441c21['style']['display']='none',_0x52deb1));}['_closeRevisionViewer'](_0x530647){const _0x1337c2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1337c2['style']['display']='',_0x530647['destroy']();}async['_restoreRevision'](_0x99df8a){const _0x3ec23e=this['editor'],_0x3836aa=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x51bdc9=_0x3ec23e['plugins']['get']('RevisionTracker'),_0x5e6210=_0x3836aa['repository']['getRevision'](_0x99df8a);let _0xbc4d7c,_0x4e73aa,_0x26f9b9;try{_0xbc4d7c=await _0x3836aa['getRevisionData'](_0x5e6210),_0x4e73aa=await _0x3836aa['getRevisionRootsAttributes'](_0x5e6210);}catch(_0x49ba40){return void console['error'](_0x49ba40);}_0x3ec23e['model']['change'](_0x1004c2=>{for(const _0x1e3b4e of Array['from'](_0x3ec23e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1004c2['removeMarker'](_0x1e3b4e);}),_0x3836aa['isReady']=!0x1,_0x3ec23e['model']['enqueueChange'](_0x533c40=>{_0x533c40['setSelection'](null),_0x533c40['removeSelectionAttribute'](_0x3ec23e['model']['document']['selection']['getAttributeKeys']());const _0x356681=Object['keys'](_0xbc4d7c);for(const _0x5cafff of _0x3ec23e['model']['document']['roots'])'$graveyard'!=_0x5cafff['rootName']&&_0x5cafff['isAttached']()&&!_0x356681['includes'](_0x5cafff['rootName'])&&_0x533c40['detachRoot'](_0x5cafff);for(const _0x11a1d3 of _0x356681){let _0x3b2d8b=_0x3ec23e['model']['document']['getRoot'](_0x11a1d3);_0x3b2d8b&&_0x3b2d8b['isAttached']()||(_0x3b2d8b=_0x533c40['addRoot'](_0x11a1d3));const _0xf8eaae=_0x4e73aa[_0x11a1d3],_0x2b59c9=Object['keys'](_0xf8eaae),_0x593d06=_0xbc4d7c[_0x11a1d3];for(const _0x56c26f of _0x3b2d8b['getAttributeKeys']())_0x2b59c9['includes'](_0x56c26f)||_0x533c40['removeAttribute'](_0x56c26f,_0x3b2d8b);for(const _0x489390 of _0x2b59c9)_0x533c40['setAttribute'](_0x489390,_0x4e73aa[_0x11a1d3][_0x489390],_0x3b2d8b);_0x533c40['remove'](_0x533c40['createRangeIn'](_0x3b2d8b)),_0x533c40['insert'](_0x3ec23e['data']['parse'](_0x593d06,_0x3b2d8b),_0x3b2d8b,0x0);}});const _0x52d716=m(_0x3ec23e['locale'],'Restored');if(_0x5e6210['name'])_0x26f9b9=-0x1==_0x5e6210['name']['indexOf'](_0x52d716)?_0x52d716+':\x20'+_0x5e6210['name']:_0x5e6210['name'];else _0x26f9b9=_0x52d716+':\x20'+(_0x5e6210['createdAt']['toLocaleDateString'](_0x3ec23e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5e6210['createdAt']['toLocaleTimeString'](_0x3ec23e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x51bdc9['saveRevision']({'name':_0x26f9b9}),_0x3836aa['isReady']=!0x0,_0x3ec23e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x580d20){super(_0x580d20),this['_revisionViewer']=_0x580d20['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2eb254=this['_revisionsRepository']['_revisions'],_0x4242ce=this['_createRevisionActions'](),_0x465ebd=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2eb254,_0x4242ce,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',(_0x4e37c9,_0x533e42)=>{_0x533e42['revisionViews']['on']('add',(_0x29fda1,_0x533880)=>{_0x533880['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)),_0x465ebd['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4dc721=this['_revisionsRepository']['getRevision'](0x0);if(_0x4dc721){const _0x164746=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4dc721['id']);this['_revisionViewer']['compare'](_0x4dc721,_0x164746);}}['_handleRevisionSelected'](_0x345e3e,_0x4aeac5){const _0x2590dc=this['_revisionsRepository']['getRevision'](_0x4aeac5['id']),_0x4e57f9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2590dc['id']);this['_revisionViewer']['compare'](_0x2590dc,_0x4e57f9);}['_handleRevisionSetName'](_0x553aa8,_0x135186){this['_revisionsRepository']['getRevision'](_0x135186['id'])['setName'](_0x135186['name']);}['_handleDiffChange'](_0x1f7d7b,_0xa346a1,_0x2f2478){const _0x3abe3e=this['_revisionsRepository']['getRevisionsInDiff'](_0x2f2478);_0x3abe3e['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3abe3e),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3abe3e[0x0]));}['_createRevisionActions'](){const _0x2f27cf=this['editor'],_0x3cea64=g['availableRevisionActions'],_0x2dcfcc=_0x2f27cf['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2dcfcc['length'])return _0x2dcfcc['map'](_0x3d9d0e=>{const _0x4a1969='string'==typeof _0x3d9d0e?Object['assign']({},_0x3cea64[_0x3d9d0e]):_0x3d9d0e;return _0x4a1969['action']=_0x4a1969['action']['bind'](this,_0x2f27cf),_0x4a1969['isVisible']&&(_0x4a1969['isVisible']=_0x4a1969['isVisible']['bind'](this,_0x2f27cf)),_0x4a1969;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4c7d96},_0x2f46e9)=>{const _0x5c9b14=_0x4c7d96['get'](d),_0x399216=_0x5c9b14['repository'];let _0x3fa52b=_0x5c9b14['diff']['newRevisionId'],_0x176031=_0x2f46e9['id'];_0x399216['getIndex'](_0x3fa52b)>_0x399216['getIndex'](_0x176031)&&([_0x3fa52b,_0x176031]=[_0x176031,_0x3fa52b]),_0x5c9b14['compare'](_0x3fa52b,_0x176031);},'isVisible':({plugins:_0x15cfd4},_0x4f4686)=>{const _0x1caa47=_0x15cfd4['get'](d);return!(_0x1caa47['repository']['getRevisionsInDiff'](_0x1caa47['diff'])['length']>0x2)&&!_0x4f4686['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x9bcf14,{id:_0x3a54e0})=>{_0x9bcf14['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a54e0);},'isVisible':({plugins:_0x24ed78},_0x21513d)=>!!_0x24ed78['get'](d)['repository']['getLaterVisibleRevision'](_0x21513d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x51ec21},{id:_0x2f7834,revisionNameView:_0x2cd22d})=>{const _0x1cea29=_0x51ec21['get'](d),_0x36c3dc=_0x1cea29['repository']['getEarlierVisibleRevision'](_0x2f7834);_0x1cea29['compare'](_0x2f7834,_0x36c3dc),_0x2cd22d['focus'](),_0x2cd22d['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x542ae8,_0x10d541){super(_0x542ae8),this['_view']=_0x10d541,this['_toolbarConfig']=ot(_0x542ae8['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2dffb0){const _0x39678b=this['editor'],_0x26bc0a=this['view'],_0x5608e6=_0x39678b['editing']['view'],_0x5c827a=_0x26bc0a['editable'],_0x1be20b=_0x5608e6['document']['getRoot']();_0x5c827a['name']=_0x1be20b['rootName'],_0x26bc0a['render']();const _0x5f3518=_0x5c827a['element'];this['setEditableElement'](_0x5c827a['name'],_0x5f3518),_0x26bc0a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5608e6['attachDomRoot'](_0x5f3518),this['_elementReplacer']['replace'](_0x2dffb0,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x115b52=this['view'],_0x4dbf0e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4dbf0e['detachDomRoot'](_0x115b52['editable']['name']),_0x115b52['destroy']();}['_initToolbar'](){const _0x463c20=this['view'];_0x463c20['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x463c20['stickyPanel']['limiterElement']=_0x463c20['element'],_0x463c20['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x56078c})=>_0x56078c),_0x463c20['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x463c20['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3460a2,_0x531ac7,_0x2b5eb1={}){super(_0x3460a2),this['stickyPanel']=new lt(_0x3460a2),this['toolbar']=new nt(_0x3460a2,{'shouldGroupWhenFull':_0x2b5eb1['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x3460a2,_0x531ac7);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5d9360,_0x3d0d67){super(_0x3d0d67),this['sourceElement']=_0x5d9360,this['model']['document']['createRoot']();const _0x2c7749=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2c7749);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1a792e,_0x155cdd){const _0x499d1b=new this(_0x1a792e,_0x155cdd);return await _0x499d1b['initPlugins'](),await _0x499d1b['ui']['init'](_0x1a792e),await _0x499d1b['data']['init'](_0x499d1b['config']['get']('initialData')||''),_0x499d1b['fire']('ready'),_0x499d1b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x15a41a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1786ec){function _0x47e9a3(_0x122e95){return _0x122e95['map'](_0x5783f4=>String['fromCharCode'](_0x5783f4))['join']('');}super(_0x1786ec),this['result']='end',_0x1786ec[_0x47e9a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47e9a3([0x76,0x69,0x65,0x77])][_0x47e9a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47e9a3([0x61,0x75,0x74,0x6f]),_0x1786ec[_0x47e9a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x47e9a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47e9a3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x47e9a3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x47e9a3([0x6f,0x6b])});}}class k extends _0x15a41a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4ddb72){if(super(_0x4ddb72),!this['editor']['config']['get']('revisionHistory'))throw new _0x973de2('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4006de=>this['_showRevisionViewer']({..._0x4006de,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x198f70=>this['_closeRevisionViewer'](_0x198f70)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x9a5261=>this['_restoreRevision'](_0x9a5261)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x28492a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x28492a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5d0814){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5d0814);}['getRevision'](_0x3598bc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3598bc);}['getRevisions'](_0x241473){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x241473||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x9f57c8=this['editor'],_0x2cc2ef=_0x56d1fd(_0x9f57c8,p),_0x1e149d=_0x9f57c8['plugins']['get']('RevisionTracker'),_0xd25521=_0x9f57c8['plugins']['get']('Users')['users'];return _0x2cc2ef['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2cc2ef['lazyRoots'],(_0x2cc2ef['plugins']['push'](Rt,d,w,class extends _0x15a41a{static get['requires'](){return[d,'Users'];}['init'](){const _0x2fd79a=this['editor']['plugins']['get']('Users');for(const _0x4246e6 of _0xd25521)_0x4246e6['isAnonymous']||_0x2fd79a['getUser'](_0x4246e6['id'])||_0x2fd79a['addUser'](_0x4246e6);const _0x5b21d3=_0x1e149d['repository']['getRevisions']();let _0x509030=null;const _0x1b1ce6=this['editor']['plugins']['get']('RevisionViewer');_0x1b1ce6['adapter']=_0x1e149d['adapter'],_0x1b1ce6['bind']('isEnabled')['to'](_0x1e149d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x9f57c8,'isReadOnly',_0x55acf6=>!_0x55acf6);for(const _0x4f750f of _0x5b21d3){const _0x4ad76a=null===_0x4f750f['creator'];if(_0x4ad76a&&_0x4f750f['toVersion']===_0x4f750f['fromVersion'])continue;const _0x1db56f=_0x4f750f['toJSON']();_0x1b1ce6['addRevisionData'](_0x1db56f,(_0x519375,_0x2cb044,_0x3f6681)=>{if(_0x4ad76a){if(_0x509030)_0x509030['_update'](_0x519375,_0x2cb044);else{if(!_0x2cb044){const _0x2bdad7=_0x3f6681['toJSON']();_0x2bdad7['id']=_0xc88e79(),_0x1e149d['saveRevision'](_0x2bdad7,_0x3f6681['toVersion'])['then'](_0x36eca4=>{_0x509030=_0x36eca4;});}}}else _0x4f750f['_update'](_0x519375,_0x2cb044);});}}},g),_0x2cc2ef);}['_enhanceShowRevisionViewerCallback'](){const _0x4373df=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x481998=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xd79061=this['editor']['plugins']['get']('Autosave');await _0xd79061['save']();}else await _0x481998['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x336b49=this['editor']['plugins']['get']('Dialog');_0x336b49['isOpen']&&_0x336b49['hide']();}const _0x4b12ea=this['_getRevisionViewerEditorConfig']();return _0x4373df(_0x4b12ea)['then'](_0x2ac331=>{return(this['_viewerEditor']=_0x2ac331,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2ac331;})['catch'](_0x2f2b02=>(console['error'](_0x2f2b02),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x52c714=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x52c714(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xfbbb02=this['editor']['plugins']['get']('Annotations');_0xfbbb02['refreshVisibility'](),_0xfbbb02['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3c9532){const _0x225409=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x321de7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x452343=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x452343,_0x3c9532)['then'](_0x126662=>(_0x321de7['style']['display']='block',_0x225409['style']['display']='none',_0x126662));}['_closeRevisionViewer'](_0xa9e918){const _0x3cd7d2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3cd7d2['style']['display']='',_0xa9e918['destroy']();}async['_restoreRevision'](_0x180d40){const _0x1915af=this['editor'],_0x30d806=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x54a1ff=_0x1915af['plugins']['get']('RevisionTracker'),_0x41601b=_0x30d806['repository']['getRevision'](_0x180d40);let _0x5ab1e9,_0x15b896,_0x458290;try{_0x5ab1e9=await _0x30d806['getRevisionData'](_0x41601b),_0x15b896=await _0x30d806['getRevisionRootsAttributes'](_0x41601b);}catch(_0x562f07){return void console['error'](_0x562f07);}_0x1915af['model']['change'](_0x42eeb7=>{for(const _0x24479f of Array['from'](_0x1915af['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x42eeb7['removeMarker'](_0x24479f);}),_0x30d806['isReady']=!0x1,_0x1915af['model']['enqueueChange'](_0x59f6e6=>{_0x59f6e6['setSelection'](null),_0x59f6e6['removeSelectionAttribute'](_0x1915af['model']['document']['selection']['getAttributeKeys']());const _0x1e08cb=Object['keys'](_0x5ab1e9);for(const _0x375413 of _0x1915af['model']['document']['roots'])'$graveyard'!=_0x375413['rootName']&&_0x375413['isAttached']()&&!_0x1e08cb['includes'](_0x375413['rootName'])&&_0x59f6e6['detachRoot'](_0x375413);for(const _0x53bd25 of _0x1e08cb){let _0x3992e6=_0x1915af['model']['document']['getRoot'](_0x53bd25);_0x3992e6&&_0x3992e6['isAttached']()||(_0x3992e6=_0x59f6e6['addRoot'](_0x53bd25));const _0x38709a=_0x15b896[_0x53bd25],_0x5cbe1d=Object['keys'](_0x38709a),_0x137673=_0x5ab1e9[_0x53bd25];for(const _0x42e18e of _0x3992e6['getAttributeKeys']())_0x5cbe1d['includes'](_0x42e18e)||_0x59f6e6['removeAttribute'](_0x42e18e,_0x3992e6);for(const _0x45083f of _0x5cbe1d)_0x59f6e6['setAttribute'](_0x45083f,_0x15b896[_0x53bd25][_0x45083f],_0x3992e6);_0x59f6e6['remove'](_0x59f6e6['createRangeIn'](_0x3992e6)),_0x59f6e6['insert'](_0x1915af['data']['parse'](_0x137673,_0x3992e6),_0x3992e6,0x0);}});const _0x4fb294=m(_0x1915af['locale'],'Restored');if(_0x41601b['name'])_0x458290=-0x1==_0x41601b['name']['indexOf'](_0x4fb294)?_0x4fb294+':\x20'+_0x41601b['name']:_0x41601b['name'];else _0x458290=_0x4fb294+':\x20'+(_0x41601b['createdAt']['toLocaleDateString'](_0x1915af['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x41601b['createdAt']['toLocaleTimeString'](_0x1915af['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x54a1ff['saveRevision']({'name':_0x458290}),_0x30d806['isReady']=!0x0,_0x1915af['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|