@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250618.0 → 0.0.0-nightly-20250619.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 +7 -7
- package/package.json +11 -11
- package/src/revisionsrepository.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x389b52(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x473b65){super(),this['id']=_0x473b65['id']||_0x280b09(),this['creator']=_0x473b65['creator']||null,this['authors']=_0x473b65['authors']||[],this['diffData']=_0x473b65['diffData']||null,this['toVersion']=_0x473b65['toVersion']||0x0,this['fromVersion']=_0x473b65['fromVersion']||0x0,this['set']('name',_0x473b65['name']||''),this['set']('createdAt',_0x473b65['createdAt']||new Date()),this['set']('attributes',_0x473b65['attributes']||{});}['setName'](_0x44b1ff){this['_update']({'name':_0x44b1ff});}['setAttribute'](_0x40b2b7,_0x1332de){const _0x169cf0=_0x55a8fc(this['attributes']);_0x3dc319(_0x169cf0,_0x40b2b7,_0x1332de),this['_update']({'attributes':_0x169cf0});}['removeAttribute'](_0x171ede){const _0x32445b=_0x55a8fc(this['attributes']);_0x2dd7b4(_0x32445b,_0x171ede),this['_update']({'attributes':_0x32445b});}['_update'](_0x268abd,_0x4cdfff=!0x1){let _0x4abbd7=!0x1;const _0x530756={'id':this['id']},_0x3b9ee7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2de086 of _0x3b9ee7){const _0x3f7673=_0x268abd[_0x2de086];void 0x0!==_0x3f7673&&_0x3f7673!==this[_0x2de086]&&(this[_0x2de086]=_0x3f7673,_0x530756[_0x2de086]=_0x3f7673,_0x4abbd7=!0x0);}_0x4abbd7&&(_0x530756['authors']&&(_0x530756['authorsIds']=_0x530756['authors']['map'](_0x548154=>_0x548154['id']),delete _0x530756['authors']),this['fire']('_update',_0x530756,_0x4cdfff));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1e81c0=>_0x1e81c0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2613d1{['_revisions'];static get['requires'](){return[_0x25b15e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x224d3b){super(_0x224d3b),this['_revisions']=new _0x44d325();}['afterInit'](){!async function(_0x1fcb17){const _0x474322=_0x350d8a([0x73,0x6f,0x67,0x77,0x55,0x42,0x61,0x62,0x59,0x58,0x39,0x41,0x5a,0x47,0x78,0x65,0x7a,0x75,0x35,0x4a,0x52,0x43,0x6d,0x34,0x44,0x72,0x4e,0x79,0x74,0x37,0x48,0x76,0x63,0x32,0x31,0x6c,0x33,0x4d,0x36,0x57,0x30,0x69,0x71,0x46,0x50,0x54,0x68,0x4f,0x4b,0x66,0x64,0x70,0x4c,0x49,0x6e,0x38,0x51,0x6a,0x6b,0x53,0x45,0x56]),_0x34776e=0xeb829,_0x5dfb0d=0x1eeb658f,_0x3e2e9d=0x1eec0e97^_0x5dfb0d,_0x468119=window[_0x350d8a([0x44,0x61,0x74,0x65])][_0x350d8a([0x6e,0x6f,0x77])](),_0x4cbee4=_0x1fcb17[_0x350d8a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x206f20=new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23b262=>{_0x4cbee4[_0x350d8a([0x6f,0x6e,0x63,0x65])](_0x350d8a([0x72,0x65,0x61,0x64,0x79]),_0x23b262);}),_0x159f07={[_0x350d8a([0x6b,0x74,0x79])]:_0x350d8a([0x45,0x43]),[_0x350d8a([0x75,0x73,0x65])]:_0x350d8a([0x73,0x69,0x67]),[_0x350d8a([0x63,0x72,0x76])]:_0x350d8a([0x50,0x2d,0x32,0x35,0x36]),[_0x350d8a([0x78])]:_0x350d8a([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]),[_0x350d8a([0x79])]:_0x350d8a([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]),[_0x350d8a([0x61,0x6c,0x67])]:_0x350d8a([0x45,0x53,0x32,0x35,0x36])},_0x74960d=_0x4cbee4[_0x350d8a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x350d8a([0x67,0x65,0x74])](_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c11ef(){let _0x9d90bf,_0x541cae=null,_0xfd62bb=null;try{if(_0x74960d==_0x350d8a([0x47,0x50,0x4c]))return _0x350d8a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9d90bf=_0x28d4f5(),!_0x9d90bf)return _0x350d8a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9d90bf[_0x350d8a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfd62bb=_0x48f5c1(_0x9d90bf[_0x350d8a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9d90bf[_0x350d8a([0x6a,0x74,0x69])])),await _0x46bc6d()?_0x2d02a3()?_0x36da9a()?_0x350d8a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35af8d()?(_0x9d90bf[_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x350d8a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x541cae=_0x55e9ee(_0x350d8a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9d90bf[_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x350d8a([0x74,0x72,0x69,0x61,0x6c])&&(_0x541cae=_0x55e9ee(_0x350d8a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7efbd0()):_0x350d8a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x350d8a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x350d8a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x350d8a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36da9a(){const _0x212320=[_0x350d8a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x350d8a([0x74,0x72,0x69,0x61,0x6c])][_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9d90bf[_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x468119/0x3e8:0xe10*_0x3e2e9d;return _0x9d90bf[_0x350d8a([0x65,0x78,0x70])]<_0x212320;}function _0x2d02a3(){const _0x492fb7=_0x9d90bf[_0x350d8a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x492fb7)return!0x1;if(_0x492fb7[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350d8a([0x2a])))return!0x0;if(_0x492fb7[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350d8a([0x52,0x48])))return!0x0;if(_0x492fb7[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350d8a([0x52,0x52,0x48]))){if(_0x5448ed())return!0x0;if(_0x4ba60()||_0x3b40fb())return!0x0;}return!0x1;}function _0x35af8d(){const _0x2f33d8=_0x9d90bf[_0x350d8a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f33d8||0x0==_0x2f33d8[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x363884}=new URL(window[_0x350d8a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f33d8[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363884))return!0x0;const _0x2dfed5=_0x363884[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])](_0x350d8a([0x2e]));return _0x2f33d8[_0x350d8a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x476dd2=>_0x476dd2[_0x350d8a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350d8a([0x2a])))[_0x350d8a([0x6d,0x61,0x70])](_0x39d468=>_0x39d468[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])](_0x350d8a([0x2e])))[_0x350d8a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a44b7=>_0x1a44b7[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2dfed5[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x350d8a([0x6d,0x61,0x70])](_0x56f168=>Array(_0x2dfed5[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56f168[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x350d8a([0x66,0x69,0x6c,0x6c])](_0x56f168[0x0]===_0x350d8a([0x2a])?_0x350d8a([0x2a]):'')[_0x350d8a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56f168))[_0x350d8a([0x73,0x6f,0x6d,0x65])](_0x57cf08=>_0x2dfed5[_0x350d8a([0x65,0x76,0x65,0x72,0x79])]((_0x411bd3,_0x6456ac)=>_0x57cf08[_0x6456ac]===_0x411bd3||_0x57cf08[_0x6456ac]===_0x350d8a([0x2a])));}function _0x7efbd0(){return _0x541cae&&_0xfd62bb?new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ceb3f,_0x1829ee)=>{_0x541cae[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x4ceb3f,_0x1829ee),_0xfd62bb[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x3b3d7b=>{_0x3b3d7b!=_0x350d8a([0x56,0x61,0x6c,0x69,0x64])&&_0x4ceb3f(_0x3b3d7b);},_0x1829ee);}):_0x541cae||_0xfd62bb||_0x350d8a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48f5c1(_0x108eab,_0x5e732a){return new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5017a7=>{if(_0x5bdca0())return _0x5017a7(_0x350d8a([0x56,0x61,0x6c,0x69,0x64]));_0x5dfca0(),_0x4cbee4[_0x350d8a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x350d8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32ca6a=!0x1;const _0x3f2610=_0x280b09();function _0x22c3ea(_0x4388bc){return!!_0x4388bc&&(typeof _0x4388bc===_0x350d8a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4388bc===_0x350d8a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4388bc[_0x350d8a([0x74,0x68,0x65,0x6e])]===_0x350d8a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4388bc[_0x350d8a([0x63,0x61,0x74,0x63,0x68])]===_0x350d8a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x63fcff(_0x140d9e){_0x2cab30(_0x140d9e)[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x883db5=>{if(!_0x883db5||_0x883db5[_0x350d8a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x350d8a([0x6f,0x6b]))return _0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e6e5(_0x52f9d5(_0x3f2610+_0x5e732a))!=_0x883db5[_0x350d8a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x350d8a([0x56,0x61,0x6c,0x69,0x64]);})[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x3dcd80=>(_0x1cbe7f(),_0x3dcd80),()=>{const _0x2e1260=_0x55f96c();return null==_0x2e1260?(_0x1cbe7f(),_0x350d8a([0x56,0x61,0x6c,0x69,0x64])):_0x350d8a(_0x468119-_0x2e1260>(0x3ae7e18f^_0x5dfb0d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x350d8a([0x74,0x68,0x65,0x6e])](_0x5017a7)[_0x350d8a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5017a7(_0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5724c6=0x1edd8b0f^_0x5dfb0d;function _0x1cbe7f(){const _0x530705=_0x350d8a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e6e5(_0x52f9d5(_0x108eab)),_0x468298=_0x328b63(_0x5e6e5(window[_0x350d8a([0x4d,0x61,0x74,0x68])][_0x350d8a([0x63,0x65,0x69,0x6c])](_0x468119/_0x5724c6)));window[_0x350d8a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x350d8a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x530705,_0x468298);}function _0x55f96c(){const _0x56f0ed=_0x350d8a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e6e5(_0x52f9d5(_0x108eab)),_0xc30844=window[_0x350d8a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x350d8a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56f0ed);return _0xc30844?window[_0x350d8a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x328b63(_0xc30844),0x10)*_0x5724c6:null;}function _0x2cab30(_0x1997aa){return new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed6934,_0x5b0420)=>{_0x1997aa[_0x350d8a([0x74,0x68,0x65,0x6e])](_0xed6934,_0x5b0420),window[_0x350d8a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b0420,0x1eeab14f^_0x5dfb0d);});}}_0x4cbee4[_0x350d8a([0x6f,0x6e])](_0x350d8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x358e8f,_0x356dba)=>{if(_0x356dba[0x0]!=_0x108eab)return _0x5017a7(_0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x356dba[0x1]={..._0x356dba[0x1],[_0x350d8a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f2610};},{[_0x350d8a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x350d8a([0x68,0x69,0x67,0x68])}),_0x4cbee4[_0x350d8a([0x6f,0x6e])](_0x350d8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2416d9=>{_0x22c3ea(_0x2416d9[_0x350d8a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32ca6a=!0x0,_0x63fcff(_0x2416d9[_0x350d8a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x350d8a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x350d8a([0x6c,0x6f,0x77])}),_0x206f20[_0x350d8a([0x74,0x68,0x65,0x6e])](()=>{_0x32ca6a||_0x5017a7(_0x350d8a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bdca0(){return _0x4cbee4[_0x350d8a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x350d8a([0x76,0x69,0x65,0x77])][_0x350d8a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x350d8a([0x61,0x75,0x74,0x6f]);}function _0x5dfca0(){_0x4cbee4[_0x350d8a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x350d8a([0x76,0x69,0x65,0x77])][_0x350d8a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x350d8a([0x61,0x75,0x74,0x6f]);}}function _0x55e9ee(_0x1c7fe5){const _0x5ea16e=[new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbea9f=>setTimeout(_0xbea9f,0x1ee25b43^_0x5dfb0d)),_0x206f20[_0x350d8a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f466=>{const _0x4ca1b9=0x1eeb6588^_0x5dfb0d,_0x4c1765=_0x1fcb17[_0x350d8a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x12f5eb(){_0x4c1765[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4ca1b9&&_0x20f466();}_0x12f5eb(),_0x4c1765[_0x350d8a([0x6f,0x6e])](_0x350d8a([0x61,0x64,0x64]),_0x12f5eb);})),new window[(_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d3b04=>{function _0x34249b(){for(const _0x39a409 in window)if(window[_0x350d8a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x350d8a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x39a409))&&window[_0x39a409]==_0x34776e)return _0x4d3b04();_0x4cbee4[_0x350d8a([0x73,0x74,0x61,0x74,0x65])]!=_0x350d8a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x350d8a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34249b,0x1eeb7607^_0x5dfb0d);}_0x1239aa(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x34249b();})];return window[_0x350d8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x350d8a([0x72,0x61,0x63,0x65])](_0x5ea16e)[_0x350d8a([0x74,0x68,0x65,0x6e])](()=>_0x1c7fe5);}async function _0x47b659(){if(await _0x206f20,_0x1239aa(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x10b00a=_0x1fcb17[_0x350d8a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x690e68=_0x1fcb17[_0x350d8a([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])](_0x10b00a[_0x350d8a([0x69,0x64])]),_0x53e767=_0x1304ed(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x53e767[_0x350d8a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x10b00a['id'],_0x690e68?_0x690e68['id']:null,!0x0),_0x53e767[_0x350d8a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x350d8a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x53e767[_0x350d8a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x53e767[_0x350d8a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x48d5dd,void(_0x53e767[_0x350d8a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x48d5dd);}if(_0x1239aa(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2ef7cf=_0x1304ed(_0x350d8a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2ef7cf[_0x350d8a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x350d8a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2ef7cf[_0x350d8a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2ef7cf[_0x350d8a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x48d5dd,_0x2ef7cf[_0x350d8a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x48d5dd;}_0x4cbee4[_0x350d8a([0x6d,0x6f,0x64,0x65,0x6c])][_0x350d8a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48d5dd,_0x4cbee4[_0x350d8a([0x6d,0x6f,0x64,0x65,0x6c])][_0x350d8a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48d5dd,_0x4cbee4[_0x350d8a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x350d8a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5448ed(){return _0x1239aa(_0x350d8a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1304ed(_0x350d8a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x350d8a([0x73,0x74,0x61,0x74,0x65])]==_0x350d8a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ba60(){return _0x1239aa(_0x350d8a([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 _0x3b40fb(){return _0x1239aa(_0x350d8a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x735423(_0xdcbac){const _0x473612=_0x359bcd();_0x4cbee4[_0x473612]=_0x350d8a([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])+_0xdcbac,_0xdcbac[_0x350d8a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x350d8a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x359bcd()]=_0x34776e),_0xdcbac!=_0x350d8a([0x56,0x61,0x6c,0x69,0x64])&&_0x47b659();}function _0x359bcd(){const _0x459420=window[_0x350d8a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x350d8a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x350d8a([0x6e,0x6f,0x77])]())[_0x350d8a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x350d8a([0x2e]),'');let _0x342284=_0x350d8a([0x73]);for(let _0x550205=0x0;_0x550205<_0x459420[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x550205+=0x2){let _0x36eb4b=window[_0x350d8a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x459420[_0x350d8a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x550205,_0x550205+0x2));_0x36eb4b>=_0x474322[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36eb4b-=_0x474322[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x342284+=_0x474322[_0x36eb4b];}return _0x342284;}function _0x28d4f5(){const _0xc52dcd=_0x74960d[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])](_0x350d8a([0x2e]));if(0x3!=_0xc52dcd[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5154d1(_0xc52dcd[0x1]);function _0x5154d1(_0x279c69){const _0x388ec5=_0x4f0c67(_0x279c69);return _0x388ec5&&_0x1680ae()?_0x388ec5:null;function _0x1680ae(){const _0x2cac26=_0x388ec5[_0x350d8a([0x6a,0x74,0x69])],_0x3a7600=window[_0x350d8a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cac26[_0x350d8a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cac26[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x520e82={..._0x388ec5,[_0x350d8a([0x6a,0x74,0x69])]:_0x2cac26[_0x350d8a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2cac26[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x520e82[_0x350d8a([0x76,0x63])],_0x52f9d5(_0x520e82)==_0x3a7600;}}}async function _0x46bc6d(){let _0x1b42f3=!0x0;try{const _0x42cbdb=_0x74960d[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])](_0x350d8a([0x2e])),[_0x77b92e,_0x194eb8,_0xc2d5db]=_0x42cbdb;return _0x22ff1e(_0x77b92e),await _0x1ad357(_0x77b92e,_0x194eb8,_0xc2d5db),_0x1b42f3;}catch{return!0x1;}function _0x22ff1e(_0x1364d7){const _0xef4c41=_0x4f0c67(_0x1364d7);_0xef4c41&&_0xef4c41[_0x350d8a([0x61,0x6c,0x67])]==_0x350d8a([0x45,0x53,0x32,0x35,0x36])||(_0x1b42f3=!0x1);}async function _0x1ad357(_0x1d6648,_0x44aa88,_0x133c81){const _0x292dab=window[_0x350d8a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x350d8a([0x66,0x72,0x6f,0x6d])](_0x1cb052(_0x133c81),_0x2a3f5a=>_0x2a3f5a[_0x350d8a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ccda4=new window[(_0x350d8a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x350d8a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d6648+_0x350d8a([0x2e])+_0x44aa88),_0xfa6e7f=window[_0x350d8a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x350d8a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xfa6e7f)return;const _0x27c934=await _0xfa6e7f[_0x350d8a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x350d8a([0x6a,0x77,0x6b]),_0x159f07,{[_0x350d8a([0x6e,0x61,0x6d,0x65])]:_0x350d8a([0x45,0x43,0x44,0x53,0x41]),[_0x350d8a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x350d8a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x350d8a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xfa6e7f[_0x350d8a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x350d8a([0x6e,0x61,0x6d,0x65])]:_0x350d8a([0x45,0x43,0x44,0x53,0x41]),[_0x350d8a([0x68,0x61,0x73,0x68])]:{[_0x350d8a([0x6e,0x61,0x6d,0x65])]:_0x350d8a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27c934,_0x292dab,_0x5ccda4)||(_0x1b42f3=!0x1);}}function _0x4f0c67(_0x325f4f){return _0x325f4f[_0x350d8a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x350d8a([0x65,0x79]))?JSON[_0x350d8a([0x70,0x61,0x72,0x73,0x65])](_0x1cb052(_0x325f4f)):null;}function _0x1cb052(_0xecf722){return window[_0x350d8a([0x61,0x74,0x6f,0x62])](_0xecf722[_0x350d8a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x350d8a([0x2b]))[_0x350d8a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x350d8a([0x2f])));}function _0x52f9d5(_0x484d89){let _0x18cfa2=0x1505;function _0x23de6e(_0x236f29){for(let _0x324ddf=0x0;_0x324ddf<_0x236f29[_0x350d8a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x324ddf++){const _0x275930=_0x236f29[_0x350d8a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x324ddf);_0x18cfa2=(_0x18cfa2<<0x5)+_0x18cfa2+_0x275930,_0x18cfa2&=_0x18cfa2;}}function _0x59be58(_0x209757){Array[_0x350d8a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x209757)?_0x209757[_0x350d8a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59be58):_0x209757&&typeof _0x209757==_0x350d8a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x350d8a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x209757)[_0x350d8a([0x73,0x6f,0x72,0x74])]()[_0x350d8a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x508556,_0x15a70a])=>{_0x23de6e(_0x508556),_0x59be58(_0x15a70a);}):_0x23de6e(window[_0x350d8a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x209757));}return _0x59be58(_0x484d89),_0x18cfa2>>>0x0;}function _0x5e6e5(_0x590c7d){return _0x590c7d[_0x350d8a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x350d8a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x350d8a([0x30]));}function _0x328b63(_0x504f7d){return _0x504f7d[_0x350d8a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x350d8a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x350d8a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1239aa(_0x1ebd34){return _0x4cbee4[_0x350d8a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x350d8a([0x68,0x61,0x73])](_0x1ebd34);}function _0x1304ed(_0xdbe23d){return _0x4cbee4[_0x350d8a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x350d8a([0x67,0x65,0x74])](_0xdbe23d);}function _0x48d5dd(){}function _0x350d8a(_0x196eb0){return _0x196eb0['map'](_0x3db5a0=>String['fromCharCode'](_0x3db5a0))['join']('');}_0x735423(await _0x2c11ef());}(this);}['createRevision'](_0x253d55){const _0x10327d=this['editor']['plugins']['get']('Users');return new I({'id':_0x253d55['id'],'name':_0x253d55['name'],'creator':_0x253d55['creatorId']?_0x10327d['getUser'](_0x253d55['creatorId']):null,'diffData':_0x253d55['diffData']||_0x253d55['data'],'authors':_0x253d55['authorsIds']['map'](_0xb9eb15=>_0x10327d['getUser'](_0xb9eb15)),'createdAt':new Date(_0x253d55['createdAt']),'attributes':_0x253d55['attributes'],'fromVersion':_0x253d55['fromVersion'],'toVersion':_0x253d55['toVersion']});}['addRevision'](_0x1d040d,_0x13c2ea=0x0){this['_revisions']['add'](_0x1d040d,_0x13c2ea);}['getRevision'](_0x30cdda){return this['_revisions']['get'](_0x30cdda);}['getRevisions'](_0x251657={'toJSON':!0x1}){const _0x3315ab=Array['from'](this['_revisions']);return _0x3315ab['reverse'](),_0x251657['toJSON']?_0x3315ab['map'](_0x3a8f06=>_0x3a8f06['toJSON']()):_0x3315ab;}['getIndex'](_0x2c5add){return this['_revisions']['getIndex'](_0x2c5add);}['getEarlierVisibleRevision'](_0x39a243){const [,_0x32cae0]=this['getRevisionsIterator'](_0x39a243,{'direction':'earlier'});return _0x32cae0;}['getLaterVisibleRevision'](_0x326678){const [,_0x46af7b]=this['getRevisionsIterator'](_0x326678,{'direction':'later'});return _0x46af7b;}['getRevisionsInDiff'](_0x4cbd29){const _0x2dc43b=[];for(const _0x5c1e09 of this['getRevisionsIterator'](_0x4cbd29['newRevisionId']))if(_0x2dc43b['push'](_0x5c1e09),_0x5c1e09['id']===_0x4cbd29['oldRevisionId'])break;return _0x2dc43b;}*['getRevisionsIterator'](_0x13d4f9,{direction:_0x39e2d9='earlier',filter:_0x4e99e9=()=>!0x0}={}){const _0x30dba9='earlier'===_0x39e2d9?0x1:-0x1;let _0x345311=this['_revisions']['get'](_0x13d4f9),_0x45d211=this['getIndex'](_0x345311);for(yield _0x345311;_0x345311;){if(_0x45d211+=_0x30dba9,_0x345311=this['getRevision'](_0x45d211),!_0x345311)return;_0x4e99e9(_0x345311)&&(yield _0x345311);}}}class $ extends _0x2613d1{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x396dfb,'c'],[_0x450d8b,'a'],[_0x3c3b3a,'e'],[_0x2769aa,'r'],[_0x2be263,'u']]);['_typeCharToViewClass']=new Map([['c',_0x396dfb],['a',_0x450d8b],['e',_0x3c3b3a],['r',_0x2769aa],['u',_0x2be263]]);async['loadRevisionData'](_0x458c6e,_0x2ff016){if(_0x458c6e['diffData']||!_0x2ff016)return;const _0x1f44c0=this['editor']['config']['get']('collaboration.channelId'),_0x5bf99e=await _0x2ff016['getRevision']({'channelId':_0x1f44c0,'revisionId':_0x458c6e['id']});_0x458c6e['diffData']=_0x5bf99e['diffData'];}['getRevisionDocumentData'](_0x1f84cc){const _0x51dc94={};for(const _0x205f34 in _0x1f84cc['diffData']){if(_0x1f84cc['diffData'][_0x205f34]['attachChange']&&!_0x1f84cc['diffData'][_0x205f34]['attachChange']['isAttached'])continue;const _0x12359a=this['_removeRevisionMarkers'](JSON['parse'](_0x1f84cc['diffData'][_0x205f34]['insertions'])),_0x5d15f4=this['editor']['editing']['view']['document'],_0x4d00d0=new _0x534e16(_0x5d15f4,_0x12359a['map'](_0x5072f8=>this['_getViewFromDiffObj'](_0x5072f8,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x51dc94[_0x205f34]=this['editor']['data']['processor']['toData'](_0x4d00d0),this['editor']['data']['processor']['useFillerType']('default');}return _0x51dc94;}['getRevisionRootsAttributes'](_0x45f8b8){const _0x3b0c97={};for(const _0x41cb84 in _0x45f8b8['diffData'])_0x45f8b8['diffData'][_0x41cb84]['attachChange']&&!_0x45f8b8['diffData'][_0x41cb84]['attachChange']['isAttached']||(_0x3b0c97[_0x41cb84]=_0x45f8b8['diffData'][_0x41cb84]['attributesAfter']||{});return _0x3b0c97;}['_getTypeCharForViewElement'](_0x44c440){return this['_viewClassToTypeChar']['get'](_0x44c440['constructor']);}['_getViewFromDiffObj'](_0xab991c,_0x400881){const _0x18206a=this['editor']['editing']['view']['document'];if('string'==typeof _0xab991c)return new _0x149209(_0x18206a,_0xab991c);{let _0x1cfce8,_0x52e375;_0x52e375='u'==_0xab991c['type']||'r'==_0xab991c['type']?[]:_0xab991c['children']['map'](_0x48f27d=>this['_getViewFromDiffObj'](_0x48f27d,_0x400881));const _0x9611f7=this['_typeCharToViewClass']['get'](_0xab991c['type'])||_0x3ca579,_0x5498fe=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1cfce8=new _0x9611f7(_0x18206a,_0xab991c['name'],_0xab991c['attributes'],_0x52e375),'u'==_0xab991c['type']&&_0xab991c['children'][0x0]){const _0x4eccb4=_0xab991c['children'][0x0];if(_0x1cfce8['render']=function(_0x14ff6f){const _0x3e356a=_0x14ff6f['createElement']('div');return _0x3e356a['innerHTML']=_0x4eccb4,_0x3e356a['childNodes'][0x0];},_0x400881){const _0x2485fe=new _0x534e16(_0x18206a);_0x2485fe['_appendChild'](_0x1cfce8);const _0x2f0011=Array['from'](_0x5498fe['viewChildrenToDom'](_0x2485fe,{'bind':!0x1})),_0x14efe2=_0x5498fe['domDocument']['createElement']('div');_0x14efe2['append'](..._0x2f0011),_0x1cfce8=Array['from'](_0x5498fe['domChildrenToView'](_0x14efe2))[0x0];}}else{if('r'==_0xab991c['type']&&_0xab991c['children'][0x0]){const _0x284769=_0xab991c['children'][0x0];if(_0x1cfce8['render']=function(_0x132fd9){_0x132fd9['innerHTML']=_0x284769;},_0x400881){const _0x412c33=new _0x534e16(_0x18206a);_0x412c33['_appendChild'](_0x1cfce8);const _0x2a1273=Array['from'](_0x5498fe['viewChildrenToDom'](_0x412c33,{'bind':!0x1})),_0xdf02d4=_0x5498fe['domDocument']['createElement']('div');_0xdf02d4['append'](..._0x2a1273);const _0xcd0fe0=Array['from'](_0x5498fe['domChildrenToView'](_0xdf02d4));_0xcd0fe0['length']>0x1?_0x1cfce8['_appendChild'](_0xcd0fe0):_0x1cfce8=_0xcd0fe0[0x0];}}}if(_0xab991c['customProperties']){for(const [_0x1db9c6,_0x4cbe83]of _0xab991c['customProperties'])_0x1cfce8['_setCustomProperty'](_0x1db9c6,_0x4cbe83);}const _0x543906=void 0x0===_0xab991c['fillerOffset']?null:_0xab991c['fillerOffset'];return null!==_0x543906&&(_0x1cfce8['getFillerOffset']=()=>_0x543906),_0x1cfce8;}}['_makeModelFromViewString'](_0x5f5be9){const _0x3a98ef=JSON['parse'](_0x5f5be9),_0x574d21=this['editor']['editing']['view']['document'],_0x10ca3f=new _0x534e16(_0x574d21,_0x3a98ef['map'](_0x518483=>this['_getViewFromDiffObj'](_0x518483,!0x0)));return this['editor']['data']['toModel'](_0x10ca3f);}['_removeRevisionMarkers'](_0x47234c){return(_0x47234c=_0x47234c['filter'](_0x4e290a=>!_0x4e290a['name']||'revision-start'!==_0x4e290a['name']&&'revision-end'!==_0x4e290a['name']))['forEach'](_0x54adc1=>{'string'!=typeof _0x54adc1&&(_0x54adc1['children']=this['_removeRevisionMarkers'](_0x54adc1['children']),_0x54adc1['attributes']=_0x54adc1['attributes']['filter'](_0x47117a=>!_0x47117a[0x0]['startsWith']('data-revision-')));}),_0x47234c;}}function R(_0x40fa81,_0x56a676,_0x36db43){const t=_0x40fa81['t'];switch(_0x56a676){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'},_0x36db43);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x36db43);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x2613d1{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x25b15e,S,$,_0x29745e];}constructor(_0x208d7a){super(_0x208d7a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x12b52a=_0x280b09();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x12b52a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x58150a=this['repository']['getRevision'](0x0),_0x341fa6=_0x58150a&&null===_0x58150a['creator']?_0x58150a:null;if(this['_continueCurrentRevision']=!!_0x341fa6&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4cf16e=this['_source']['getCurrentRevisionId'](),_0x2f22fb=this['repository']['getRevision'](_0x4cf16e);if(_0x2f22fb)this['_startingVersion']=_0x2f22fb['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5561ae=this['_source']['history']['_operations']['find'](_0x1a8271=>!_0x1a8271['_isInit']),_0x310dcf=_0x5561ae?_0x5561ae['baseVersion']:this['_source']['history']['version'];_0x58150a?(_0x58150a['toVersion']<_0x310dcf&&_0x58150a['_update']({'toVersion':_0x310dcf}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x341fa6['id'],this['_startingVersion']=_0x341fa6['fromVersion']):(this['_startingVersion']=_0x58150a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x310dcf,this['_continueCurrentRevision']=!0x1);}}else _0x341fa6&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x341fa6['toVersion'],this['editor']['model']['document']['history']['version']),_0x341fa6['fromVersion']===_0x341fa6['toVersion']?(0x0!==_0x341fa6['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x341fa6['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x341fa6['id'],this['_startingVersion']=_0x341fa6['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',_0x483228=>!_0x483228),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5bddcf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x504032;for(const _0x27cba1 in _0x5bddcf){const _0x1cc2a4=_0x27cba1,_0x10c840=_0x5bddcf[_0x1cc2a4];if('revisionHistoryLicenseKeyValid'==_0x10c840||'revisionHistoryLicenseKeyInvalid'==_0x10c840||'revisionHistoryLicenseKeyExpired'==_0x10c840||'revisionHistoryLicenseKeyDomainLimit'==_0x10c840||'revisionHistoryLicenseKeyNotAllowed'==_0x10c840||'revisionHistoryLicenseKeyEvaluationLimit'==_0x10c840||'revisionHistoryLicenseKeyTrialLimit'==_0x10c840||'revisionHistoryLicenseKeyUsageLimit'==_0x10c840){delete _0x5bddcf[_0x1cc2a4],_0x504032=_0x10c840,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x504032&&_0x5bddcf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x504032&&_0x5bddcf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x504032&&_0x5bddcf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x504032&&_0x5bddcf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x504032&&_0x5bddcf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x504032&&_0x5bddcf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x504032&&_0x5bddcf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x492804=this['repository']['getRevision'](0x0),_0xaa107f=await this['getRevisionDocumentData'](_0x492804),_0x40baa7=await this['getRevisionRootsAttributes'](_0x492804);this['_replaceEditorDataWithRevisionData'](_0xaa107f,_0x40baa7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x22fd64){this['_source']=_0x22fd64;}async['update'](){const _0x37aa8e=await this['_source']['getLatestVersion']();if(_0x37aa8e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x25cd59=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x37aa8e});_0x25cd59['authors']=_0x25cd59['authorsIds']['map'](_0x188db7=>this['editor']['plugins']['get']('Users')['getUser'](_0x188db7)),this['currentRevision']['_update'](_0x25cd59);}}async['saveRevision'](_0x4dab9f={},_0x1712ba=null){const _0x31c474=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1712ba>this['currentRevision']['toVersion']&&(_0x1712ba=null),null===_0x1712ba&&(_0x1712ba=await this['_source']['getLatestVersion']());const _0x278d53=this['_getFromVersion'](_0x1712ba),_0x37026f=this['buildRevisionData']({'from':_0x278d53,'to':_0x1712ba});if(this['currentRevision']['toVersion']<_0x1712ba){const _0x121714=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1712ba,'to':_0x1712ba});_0x121714['authors']=[],_0x121714['authorsIds']=[],_0x121714['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x121714,!0x0),delete _0x121714['authors'],_0x31c474['push'](_0x121714);}_0x4dab9f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4dab9f['name']=_0x4dab9f['name']||null,_0x4dab9f['id']=_0x4dab9f['id']||_0x280b09(),_0x4dab9f={..._0x4dab9f,..._0x37026f};const _0x455f3e=this['addRevisionData'](_0x4dab9f);_0x31c474['push'](_0x4dab9f);const _0x23b0f6=this['repository']['getIndex'](_0x455f3e);if(0x0!==_0x23b0f6){const _0x28f2ac=this['repository']['getRevision'](_0x23b0f6-0x1);if(_0x28f2ac['fromVersion']!==_0x1712ba){const _0x4fb2c6=this['_revisionDataBuilder']['getData'](_0x1712ba,_0x28f2ac['toVersion']),_0x48983d={'id':_0x28f2ac['id'],'diffData':_0x4fb2c6['diffData'],'authorsIds':_0x4fb2c6['authorsIds'],'authors':_0x4fb2c6['authorsIds']['map'](_0x8b83f7=>this['editor']['plugins']['get']('Users')['getUser'](_0x8b83f7)),'fromVersion':_0x1712ba};_0x28f2ac===this['currentRevision']&&(_0x48983d['createdAt']=new Date(_0x4dab9f['createdAt']['getTime']()+0xa)),_0x28f2ac['_update'](_0x48983d,!0x0),delete _0x48983d['authors'],_0x31c474['push'](_0x48983d);}}if(this['adapter']){for(const _0x1cd17f of _0x31c474)this['_bufferUpdate'](_0x1cd17f['id'],_0x1cd17f,!0x0);this['sendBufferedUpdates']();}return _0x455f3e;}['addRevisionData'](_0x4c0668){const _0x19661b=this['repository']['createRevision'](_0x4c0668);return this['adapter']&&_0x19661b['on']('_update',(_0x430121,_0x24be04,_0x532e8d)=>{_0x532e8d||(this['_bufferUpdate'](_0x24be04['id'],_0x24be04,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x19661b,this['_findInsertionIndex'](_0x19661b)),_0x19661b;}async['getRevisionDocumentData'](_0x1bcc53){return await this['_utils']['loadRevisionData'](_0x1bcc53,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1bcc53);}async['getRevisionRootsAttributes'](_0x55b9e4){return await this['_utils']['loadRevisionData'](_0x55b9e4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x55b9e4);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1ef210=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xe0492b=0x0;_0xe0492b<_0x1ef210['length'];_0xe0492b++){const _0x575b67=_0x1ef210[_0xe0492b];let _0x1e40dd=!0x1;for(const _0x5586df of Object['keys'](_0x575b67))void 0x0===_0x575b67[_0x5586df]?delete _0x575b67[_0x5586df]:'id'!==_0x5586df&&(_0x1e40dd=!0x0);_0x1e40dd||(_0x1ef210[_0xe0492b]=null);}if(_0x1ef210=_0x1ef210['filter'](_0xc4044c=>null!==_0xc4044c),!_0x1ef210['length'])return;for(let _0x2d6168=0x0;_0x2d6168<_0x1ef210['length'];_0x2d6168++){const _0x95f478=_0x1ef210[_0x2d6168];void 0x0!==_0x95f478['fromVersion']&&void 0x0===_0x95f478['toVersion']&&(_0x95f478['toVersion']=this['repository']['getRevision'](_0x95f478['id'])['toVersion']),void 0x0!==_0x95f478['toVersion']&&void 0x0===_0x95f478['fromVersion']&&(_0x95f478['fromVersion']=this['repository']['getRevision'](_0x95f478['id'])['fromVersion']);}const _0x3f94e9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1ef210,_0x3f94e9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x448088=>{if(_0x448088){for(const _0x590a41 of _0x448088)this['setRevisionData']({'id':_0x590a41['id'],'createdAt':_0x590a41['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x7613ae=null,from:_0x12b191=null,to:_0x1531f5=null}){_0x12b191=null!==_0x12b191?_0x12b191:_0x7613ae['fromVersion'],_0x1531f5=null!==_0x1531f5?_0x1531f5:_0x7613ae['toVersion'];const _0x3e1142=this['_revisionDataBuilder']['getData'](_0x12b191,_0x1531f5),_0x33dfd2={'diffData':_0x3e1142['diffData'],'authorsIds':_0x3e1142['authorsIds'],'fromVersion':_0x12b191,'toVersion':_0x1531f5};if(!_0x7613ae||_0x1531f5!==_0x7613ae['toVersion']){const _0x172cb0=_0x1531f5-0x1,_0x1852ac=this['_source']['history']['getOperation'](_0x172cb0);_0x33dfd2['createdAt']=_0x1852ac&&_0x1852ac['createdAt']||new Date();}if(this['_loadedStateData']&&_0x12b191===this['_loadedStateData']['fromVersion']){for(const _0x286a25 of this['_loadedStateData']['authors'])_0x33dfd2['authorsIds']['includes'](_0x286a25['id'])||_0x33dfd2['authorsIds']['push'](_0x286a25['id']);}return _0x33dfd2;}['_bufferUpdate'](_0x4bd4d8,_0x65e431,_0x5d97b5){if(this['_bufferedUpdates']['has'](_0x4bd4d8)){const _0x5a0a10=this['_bufferedUpdates']['get'](_0x4bd4d8);_0x65e431=_0x5d97b5?{..._0x5a0a10,..._0x65e431}:{..._0x65e431,..._0x5a0a10};}this['_bufferedUpdates']['set'](_0x4bd4d8,_0x65e431);}['setRevisionData'](_0x2afb43){const _0x4d5716=this['repository']['getRevision'](_0x2afb43['id']);if(_0x2afb43['createdAt']&&(_0x2afb43['createdAt']=new Date(_0x2afb43['createdAt'])),_0x2afb43['authorsIds']){const _0x19704a=this['editor']['plugins']['get']('Users');_0x2afb43['authors']=_0x2afb43['authorsIds']['map'](_0x35a539=>_0x19704a['getUser'](_0x35a539));}_0x4d5716['_update'](_0x2afb43,!0x0);}['_createInitialRevision'](_0x191be3){const _0x1fc28f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1fc28f)this['_initialRevisionId']=_0x1fc28f['id'];else{const _0x4bff8e=!this['editor']['model']['document']['roots']['find'](_0x35d117=>this['editor']['model']['hasContent'](_0x35d117)),_0x49567e=this['editor']['plugins']['get']('Users')['me']['id'],_0x193e8a=R(this['editor']['locale'],_0x4bff8e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x191be3,'to':_0x191be3,'id':this['_initialRevisionId'],'name':_0x193e8a,'creatorId':_0x49567e});}}['_createCurrentRevision'](_0x2d51b3){const _0xafa5ea=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xafa5ea),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2d51b3,'to':_0x2d51b3,'id':_0xafa5ea,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x32da16,_0x11a24a){let _0x5ced8a=this['editor']['config']['get']('initialData'),_0x1db02d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5ced8a){_0x5ced8a={};for(const _0x469339 of this['editor']['model']['document']['getRootNames']())_0x5ced8a[_0x469339]='';}if('string'==typeof _0x5ced8a&&(_0x5ced8a={'main':_0x5ced8a}),void 0x0===_0x1db02d){_0x1db02d={};for(const _0x3cd446 of this['editor']['model']['document']['getRootNames']())_0x1db02d[_0x3cd446]={};}let _0x2b8a42=!0x1;const _0x35154b=Object['keys'](_0x5ced8a),_0x5717aa=Object['keys'](_0x32da16);for(const _0x1b732c of _0x35154b){if(_0x5ced8a[_0x1b732c]!==_0x32da16[_0x1b732c]&&''!==_0x5ced8a[_0x1b732c]['trim']()){_0x2b8a42=!0x0;break;}if(!_0x15acd1(_0x1db02d[_0x1b732c],_0x11a24a[_0x1b732c])&&Object['keys'](_0x1db02d[_0x1b732c])['length']>0x0){_0x2b8a42=!0x0;break;}}_0x2b8a42||(_0x2b8a42=_0x5717aa['some'](_0x336172=>!this['editor']['model']['document']['getRoot'](_0x336172))),_0x2b8a42&&_0x1d6023('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5ced8a,'editorRootsAttributes':_0x1db02d,'revisionData':_0x32da16,'revisionRootsAttributes':_0x11a24a}),this['editor']['config']['set']('initialData',_0x32da16),this['editor']['config']['set']('rootsAttributes',_0x11a24a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2c3de1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2c3de1['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x58ac07){const _0x139fac=this['repository']['getRevisions']();_0x139fac['reverse']();let _0x3b82cc=0x0;for(;_0x3b82cc<_0x139fac['length'];){const _0x459db3=_0x139fac[_0x3b82cc];if(_0x459db3===this['currentRevision']){_0x3b82cc++;continue;}if(_0x459db3['id']===this['_initialRevisionId'])break;const _0x4eb0ad=_0x58ac07['toVersion']-_0x459db3['toVersion']||_0x58ac07['fromVersion']-_0x459db3['fromVersion'];if(_0x4eb0ad>0x0)break;if(_0x4eb0ad<0x0)_0x3b82cc++;else{if(!_0x58ac07['creator']&&_0x459db3['creator'])break;if(_0x459db3['creator']||!_0x58ac07['creator']){if(_0x58ac07['createdAt']>_0x459db3['createdAt'])break;_0x3b82cc++;}else _0x3b82cc++;}}return _0x3b82cc;}['_getFromVersion'](_0x30bb8d){const _0x114f19=this['repository']['getRevisions']();_0x114f19['reverse'](),_0x114f19['shift']();const _0x586f6b=_0x114f19['find'](_0x541a27=>_0x541a27['toVersion']<=_0x30bb8d)['toVersion'];return _0x586f6b<this['_startingVersion']?this['_startingVersion']:_0x586f6b;}['_makeRevision']({name:_0x4b89c0,from:_0x5b4817,to:_0x14a7fe,creatorId:_0x13a7ac,id:_0x4e5ead}){const _0x45f9b2=this['buildRevisionData']({'from':_0x5b4817,'to':_0x14a7fe});_0x45f9b2['name']=_0x4b89c0,_0x45f9b2['creatorId']=_0x13a7ac,_0x45f9b2['id']=_0x4e5ead;const _0x413a41=this['addRevisionData'](_0x45f9b2);return this['adapter']&&this['_bufferUpdate'](_0x45f9b2['id'],_0x45f9b2,!0x0),_0x413a41;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2c2a41){this['editor']=_0x2c2a41,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'](_0x44eb87){this['source']=_0x44eb87;const _0x39f7aa=new Map(),_0x319c82=new Map(),_0x1930b8=this['editor']['model']['document']['roots']['map'](_0x1858de=>_0x1858de['rootName']);for(const _0x3729b7 of _0x1930b8){const _0x3bd409=this['editor']['model']['document']['getRoot'](_0x3729b7),_0x216065=x(_0x3bd409);_0x39f7aa['set'](_0x3729b7,_0x216065),_0x319c82['set'](_0x3729b7,Object['fromEntries'](_0x3bd409['getAttributes']()));}const _0x25a4ba=Array['from'](this['editor']['model']['markers'])['map'](_0x4e1e69=>[_0x4e1e69['name'],_0x4e1e69['getRange']()]),_0x1b7a86=this['source']['version'];this['_saveMetaData'](_0x1b7a86,_0x39f7aa,_0x25a4ba,_0x319c82),this['_startingRevisionId']=this['_revisionId'];const _0x29c1db=new Map(),_0x183edf=new Map();for(const _0x57686f of _0x1930b8){const _0x412973=N(_0x57686f);_0x29c1db['set'](_0x57686f,_0x412973),_0x183edf['set'](_0x57686f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x29c1db,[],_0x183edf);}['getData'](_0x1fa72f,_0x209e27){if(this['_lastFrom']===_0x1fa72f&&this['_lastTo']<=_0x209e27)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x209e27,!0x0);else{if(!this['_savedMetaData']['has'](_0x1fa72f)){const _0x39eece=this['_getPreviousFrom'](_0x1fa72f);this['_calculateMetaData'](_0x39eece,_0x1fa72f,!0x1);}this['_calculateMetaData'](_0x1fa72f,_0x209e27,!0x0);}return this['_lastFrom']=_0x1fa72f,this['_lastTo']=_0x209e27,this['_getState']();}['loadState'](_0x57df7a){const _0x4c6dd1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x57df7a['fromVersion'],this['_lastTo']=_0x57df7a['toVersion'];for(const _0x2abfe1 in _0x57df7a['diffData']){const _0xaaf31e=_0x57df7a['diffData'][_0x2abfe1]['attachChange'],_0x903019=_0x55a8fc(_0x57df7a['diffData'][_0x2abfe1]['attributesBefore'])||{},_0x4731a2=_0x4c6dd1['_makeModelFromViewString'](_0x57df7a['diffData'][_0x2abfe1]['deletions']);_0x4731a2['rootName']=_0x2abfe1,_0x4731a2['_isAttached']=!_0xaaf31e||!_0xaaf31e['isAttached'],_0x4731a2['isAttached']=()=>_0x4731a2['_isAttached'],this['_baseRoots']['set'](_0x2abfe1,_0x4731a2),this['_baseRootsAttributes']['set'](_0x2abfe1,_0x903019),_0xaaf31e&&this['_touchedRoots']['set'](_0x2abfe1,_0xaaf31e);const _0x4c9dfa=this['_makeIdsRoot'](_0x4731a2);this['_baseIdsRoots']['set'](_0x2abfe1,_0x4c9dfa);for(const [_0x41147f,_0x9b6281]of _0x4731a2['markers']){if(!_0x41147f['startsWith']('revision:'))continue;const _0x345e26=_0x41147f['split'](':')[0x2];for(const _0x1f83af of _0x9b6281['getWalker']({'singleCharacters':!0x0})){const _0x44c08f=this['_getVidAttributeName'](_0x1f83af),_0xa7ba36='elementEnd'==_0x1f83af['type']?_0x1f83af['previousPosition']['path']['slice'](0x0,-0x1):_0x1f83af['previousPosition']['path'],_0x24bb19=_0x4c9dfa['getNodeByPath'](_0xa7ba36)['getAttribute'](_0x44c08f);this['_touched']['set'](_0x24bb19,{'userId':_0x345e26});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4e1ee8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x164218=>!this['_touched']['has'](_0x164218));let _0x23e10a=0x0;const _0x49e1a3=new Map();for(const _0x420fd5 in _0x57df7a['diffData']){const _0x30cf72=_0x57df7a['diffData'][_0x420fd5]['attachChange'],_0x1bb8e1=_0x55a8fc(_0x57df7a['diffData'][_0x420fd5]['attributesAfter'])||{},_0x22bcb4=_0x4c6dd1['_makeModelFromViewString'](_0x57df7a['diffData'][_0x420fd5]['insertions']);_0x22bcb4['rootName']=_0x420fd5,_0x22bcb4['_isAttached']=!_0x30cf72||_0x30cf72['isAttached'],_0x22bcb4['isAttached']=()=>_0x22bcb4['_isAttached'],this['_diffRoots']['set'](_0x420fd5,_0x22bcb4),this['_diffRootsAttributes']['set'](_0x420fd5,_0x1bb8e1);const _0x35b542=this['_makeIdsRoot'](_0x22bcb4,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x420fd5,_0x35b542),_0x49e1a3['set'](_0x420fd5,_0x22bcb4['isAttached']()?_0x1bb8e1:{});for(const [_0x41fda9,_0x607ff1]of _0x22bcb4['markers']){if(!_0x41fda9['startsWith']('revision:'))continue;const _0xa5d053=_0x41fda9['split'](':')[0x2];for(const _0x220962 of _0x607ff1['getWalker']({'singleCharacters':!0x0})){const _0x291b65=this['_getVidAttributeName'](_0x220962),_0x476673=this['_revisionId']++,_0x4a8d63='elementEnd'==_0x220962['type']?_0x220962['previousPosition']['path']['slice'](0x0,-0x1):_0x220962['previousPosition']['path'];_0x35b542['getNodeByPath'](_0x4a8d63)['_setAttribute'](_0x291b65,_0x476673),this['_touched']['set'](_0x476673,{'userId':_0xa5d053});}}for(const _0x353194 of this['editor']['model']['createRangeIn'](_0x22bcb4)['getWalker']({'singleCharacters':!0x0})){const _0x16c636=this['_getVidAttributeName'](_0x353194),_0x12e49c='elementEnd'==_0x353194['type']?_0x353194['previousPosition']['path']['slice'](0x0,-0x1):_0x353194['previousPosition']['path'],_0x833e2a=_0x35b542['getNodeByPath'](_0x12e49c);_0x833e2a['getAttribute'](_0x16c636)>0x0||_0x833e2a['_setAttribute'](_0x16c636,_0x4e1ee8[_0x23e10a++]);}for(const [_0x32684c,_0x3a9fab]of _0x22bcb4['markers'])_0x32684c['startsWith']('revision:')||this['_markers']['set'](_0x32684c,_0x3a9fab);}const _0x206e1c=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x206e1c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x206e1c,0x1));const _0x127d1b=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x127d1b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x127d1b,0x1));const _0x31ffb1=Array['from'](this['_diffRoots'])['map'](([_0x2acf24,_0x1857af])=>[_0x2acf24,x(_0x1857af)]);this['_saveMetaData'](this['_lastTo'],_0x31ffb1,this['_markers'],_0x49e1a3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x291035,_0x54c243,_0x41e952,_0x4db6e7){const _0x53f42e=new Map(_0x54c243),_0x408854=new Map(_0x55a8fc(_0x4db6e7)),_0x37f941=new Map();for(const [_0x54dae8,_0xebdf08]of _0x41e952)_0x37f941['set'](_0x54dae8,{'start':_0xebdf08['start']['clone'](),'end':_0xebdf08['end']['clone'](),'rootName':_0xebdf08['root']['rootName']});this['_savedMetaData']['set'](_0x291035,{'roots':_0x53f42e,'markers':_0x37f941,'rootsAttributes':_0x408854});}['_removeMetaData'](_0x5c3dab){this['_savedMetaData']['delete'](_0x5c3dab);}['_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'](_0x293f1e,_0x1a829c=null){let _0xf01a8e=null;_0x293f1e['is']('documentFragment')||(_0xf01a8e=new _0x1b3786(_0x293f1e['name'],{'vid_start':null===_0x1a829c?this['_revisionId']++:_0x1a829c++}));const _0x1f4644=[];for(const _0x2f822f of _0x293f1e['getChildren']())if(_0x2f822f['is']('element')){_0x1f4644['push'](this['_makeIdsRoot'](_0x2f822f,_0x1a829c));const _0x2cccdb=_0x1f4644[_0x1f4644['length']-0x1];null!==_0x1a829c&&(_0x1a829c=_0x2cccdb['is']('element','$text')?_0x2cccdb['getAttribute']('vid')+0x1:_0x2cccdb['getAttribute']('vid_end')+0x1);}else{for(let _0x4c3643=0x0;_0x4c3643<_0x2f822f['offsetSize'];_0x4c3643++)_0x1f4644['push'](new _0x1b3786('$text',{'vid':null===_0x1a829c?this['_revisionId']++:_0x1a829c++}));}if(_0x293f1e['is']('documentFragment')){const _0x4359e4=N(_0x293f1e['rootName']);return _0x4359e4['_insertChild'](0x0,_0x1f4644),_0x4359e4;}return _0xf01a8e['_setAttribute']('vid_end',null===_0x1a829c?this['_revisionId']++:_0x1a829c++),_0xf01a8e['_insertChild'](0x0,_0x1f4644),_0xf01a8e;}['_calculateMetaData'](_0x2d2a9b,_0x48b28b,_0xf3ac8){this['_reset']();const {roots:_0x143f71,markers:_0x451f65,rootsAttributes:_0xd0c544}=this['_savedMetaData']['get'](_0x2d2a9b);this['_baseRoots']=new Map(_0x143f71),this['_baseRootsAttributes']=new Map(_0x55a8fc(_0xd0c544));for(const [_0x5b1256,_0x2610de]of this['_baseRoots'])if('$graveyard'!==_0x5b1256&&(this['_diffRoots']['set'](_0x5b1256,x(_0x2610de)),this['_diffRootsAttributes']=new Map(_0x55a8fc(_0xd0c544)),_0xf3ac8)){const _0x2a98d9=this['_revisionId'];this['_idsRoots']['set'](_0x5b1256,this['_makeIdsRoot'](_0x2610de)),this['_baseIdsRoots']['set'](_0x5b1256,this['_makeIdsRoot'](_0x2610de,_0x2a98d9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0xf3ac8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x57890e,_0x4efada]of _0x451f65){const _0x48eff0=this['_baseRoots']['get'](_0x4efada['rootName']),_0x42cad9=this['_diffRoots']['get'](_0x4efada['rootName']),_0xffc4a8=new _0x54a9c4(this['_fixPosition'](_0x4efada['start'],_0x48eff0),this['_fixPosition'](_0x4efada['end'],_0x48eff0)),_0x59e4c7=this['_fixRange'](_0xffc4a8,_0x42cad9);_0x48eff0['markers']['set'](_0x57890e,_0xffc4a8),this['_markers']['set'](_0x57890e,_0x59e4c7);}this['_applyOperations'](_0x2d2a9b,_0x48b28b,_0xf3ac8);}['_applyOperations'](_0xe7a294,_0x510b49,_0x5c5486){for(const _0x42e622 of this['source']['getOperations'](_0xe7a294,_0x510b49))this['_handleOperation'](_0x42e622,_0x5c5486);for(const _0x4cd6eb of this['_diffRoots']['values']())_0x4cd6eb['markers']['clear']();for(const [_0x97d9d9,_0x2ac6b8]of this['_markers']){this['_diffRoots']['get'](_0x2ac6b8['root']['rootName'])['markers']['set'](_0x97d9d9,_0x2ac6b8['clone']());}const _0x47917c=new Map(),_0x4e34c5=new Map();for(const [_0x541521,_0x4ca773]of this['_diffRoots'])_0x47917c['set'](_0x541521,x(_0x4ca773)),_0x4e34c5['set'](_0x541521,this['_diffRootsAttributes']['get'](_0x541521));this['_saveMetaData'](_0x510b49,_0x47917c,this['_markers'],_0x4e34c5);}['_getPreviousFrom'](_0xf3b370){const _0x56461f=Array['from'](this['_savedMetaData']['keys']());_0x56461f['sort']((_0x51d9ce,_0x2fcffa)=>_0x51d9ce-_0x2fcffa),_0x56461f['reverse']();for(const _0x28316c of _0x56461f)if(_0x28316c<_0xf3b370)return _0x28316c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x13fa16,_0x40bbd2){const _0x46dd18=Array['from'](_0x40bbd2['markers'])['map'](([_0x23c93c,_0x84ad16])=>[_0x23c93c,this['_fixRange'](_0x84ad16,_0x13fa16)]);_0x13fa16['markers']=new Map(_0x46dd18);}['_transformMarkers'](_0x1d489c){for(const _0x4e6132 of this['_markers']['values']()){const _0xc453fb=_0x4e6132['getTransformedByOperation'](_0x1d489c),_0x18755b=_0x54a9c4['_createFromRanges'](_0xc453fb);_0x4e6132['start']=_0x18755b['start'],_0x4e6132['end']=_0x18755b['end'];}}['_handleOperation'](_0x15567d,_0x158a8a){if('addRoot'!=_0x15567d['type']&&'detachRoot'!=_0x15567d['type']){if('insert'==_0x15567d['type']){const _0x411923=_0x15567d['position']['root']['rootName'];this['_diffRoots']['has'](_0x411923)||(this['_diffRoots']['set'](_0x411923,N(_0x411923,!0x0)),this['_diffRootsAttributes']['set'](_0x411923,{}),_0x158a8a&&this['_idsRoots']['set'](_0x411923,N(_0x411923,!0x0)));}else{if('addRootAttribute'==_0x15567d['type']||'removeRootAttribute'==_0x15567d['type']||'changeRootAttribute'==_0x15567d['type'])return void this['_handleRootAttributeOperation'](_0x15567d);'marker'==_0x15567d['type']&&this['_handleMarkerOperation'](_0x15567d);}if('marker'!==_0x15567d['type']){const _0x1bc985=this['_cloneOperation'](_0x15567d,this['_diffRoots']);_0x1bc985['_execute'](),this['_transformMarkers'](_0x1bc985);}if(_0x158a8a)switch(_0x15567d['type']){case'insert':this['_handleInsertOperation'](_0x15567d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x15567d);break;case'merge':this['_handleMergeOperation'](_0x15567d);break;case'split':this['_handleSplitOperation'](_0x15567d);}}else this['_handleRootOperation'](_0x15567d,_0x158a8a);}['_cloneOperation'](_0xb3e62c,_0x122b94){const _0x167fdc=_0xb3e62c['clone']();return _0x167fdc['_authorId']=_0xb3e62c['_authorId'],this['_fixOperation'](_0x167fdc,_0x122b94),_0x167fdc;}['_getBaseVids'](_0x317b3b){return _0x317b3b['map'](_0x35991e=>{const _0x438c89=this['_getVidAttributeName'](_0x35991e);return Number(_0x35991e['item']['getAttribute'](_0x438c89));});}['_generateTape'](_0x50e265,_0x17f0d0){if(_0x50e265['is']('element','$text'))_0x17f0d0['push']({'item':_0x50e265,'type':'text'});else{_0x50e265['is']('element')&&_0x17f0d0['push']({'item':_0x50e265,'type':'elementStart'});for(const _0x5d8576 of _0x50e265['getChildren']())this['_generateTape'](_0x5d8576,_0x17f0d0);_0x50e265['is']('element')&&_0x17f0d0['push']({'item':_0x50e265,'type':'elementEnd'});}return _0x17f0d0;}['_getState'](){const _0x5d89d4=new Map(this['_touched']),_0x2a2204=new Map(_0x5d89d4),_0xb0f064=new Map(),_0x1993f0={'insertions':{},'deletions':{}},_0x5a1fb5={'insertions':{},'deletions':{}},_0x2a0185=new Map(),_0x7e8216=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x7e8216['delete']('$graveyard');for(const _0x1a4e55 of _0x7e8216){const _0x5b1903=this['_diffRoots']['get'](_0x1a4e55)||N(_0x1a4e55,!0x1),_0xbea32e=this['_baseRoots']['get'](_0x1a4e55)||N(_0x1a4e55,!0x1);_0x5b1903['isAttached']()||_0xbea32e['isAttached']()?(_0x1993f0['insertions'][_0x1a4e55]=x(_0x5b1903),_0x1993f0['deletions'][_0x1a4e55]=x(_0xbea32e),this['_copyMarkers'](_0x1993f0['deletions'][_0x1a4e55],_0xbea32e),this['_copyMarkers'](_0x1993f0['insertions'][_0x1a4e55],_0x5b1903),_0x5a1fb5['insertions'][_0x1a4e55]=this['_generateTape'](this['_idsRoots']['get'](_0x1a4e55),[]),_0x5a1fb5['deletions'][_0x1a4e55]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1a4e55)||N(_0x1a4e55,!0x1),[])):_0x7e8216['delete'](_0x1a4e55);}for(const _0xad63e6 of _0x7e8216){const _0x579625=_0x5a1fb5['insertions'][_0xad63e6];for(const _0x554593 of _0x579625){const _0x3c3e04=this['_getVidAttributeName'](_0x554593),_0x2294c8=_0x554593['item']['getAttribute'](_0x3c3e04);_0x2a2204['delete'](_0x2294c8),_0x2294c8>=this['_startingRevisionId']&&_0xb0f064['set'](_0x2294c8,_0x5d89d4['get'](_0x2294c8));}}for(const _0x5ea7de of _0x7e8216){const _0x5e9fea=_0x5a1fb5['insertions'][_0x5ea7de],_0x1b7713=this['_getBaseVids'](_0x5a1fb5['deletions'][_0x5ea7de]);let _0x46e259=0x0;for(const _0x1abf54 of _0x5e9fea){const _0x318a24=this['_getVidAttributeName'](_0x1abf54),_0x5cd86e=_0x1abf54['item']['getAttribute'](_0x318a24);if(!_0xb0f064['has'](_0x5cd86e)&&!_0x2a0185['has'](_0x5cd86e)){if(_0x2a2204['has'](_0x5cd86e))_0x46e259++;else{if(_0x5cd86e!=_0x1b7713[_0x46e259]){const _0x548e47=_0x5d89d4['get'](_0x5cd86e)||_0x5d89d4['get'](_0x1b7713[_0x46e259]);for(;_0x5cd86e!=_0x1b7713[_0x46e259];)_0x2a2204['has'](_0x1b7713[_0x46e259])||(_0x2a0185['set'](_0x1b7713[_0x46e259],_0x548e47),_0x5d89d4['set'](_0x1b7713[_0x46e259],_0x548e47)),_0x46e259++;}_0x46e259++;}}}}for(const _0x299c20 of _0x7e8216){const _0x341acd=_0x5a1fb5['insertions'][_0x299c20];for(const _0x4fe45a of _0x341acd){const _0x52f682=this['_getVidAttributeName'](_0x4fe45a),_0x11419f=_0x4fe45a['item']['getAttribute'](_0x52f682);if(_0x2a0185['has'](_0x11419f)){const _0x309e9f=_0x2a0185['get'](_0x11419f);_0x2a2204['has'](_0x11419f)||_0x2a2204['set'](_0x11419f,{..._0x309e9f}),_0xb0f064['set'](_0x11419f,{..._0x309e9f});}}}for(const _0xdd327 of _0x2a2204['keys']())_0xdd327>=this['_startingRevisionId']&&_0x2a2204['delete'](_0xdd327);const _0x5b9331=new Map();for(const _0x3692a4 of _0x7e8216){let _0x43f77d=_0x5a1fb5['insertions'][_0x3692a4];for(const _0x5959e4 of _0x43f77d)if(_0x5959e4['item']['is']('element','tableCell')){const _0x5dbabc=this['_getVidAttributeName'](_0x5959e4),_0x4f1d61=_0x5959e4['item']['getAttribute'](_0x5dbabc);if(_0xb0f064['has'](_0x4f1d61)){const _0x4da683=_0x5959e4['item']['parent']['parent']['getAttribute']('vid_start'),_0x9998d7=_0x5b9331['get'](_0x4da683)||new Set();_0x9998d7['add'](_0xb0f064['get'](_0x4f1d61)['userId']),_0x5b9331['set'](_0x4da683,_0x9998d7);}}_0x43f77d=_0x5a1fb5['deletions'][_0x3692a4];for(const _0x1a74c8 of _0x43f77d)if(_0x1a74c8['item']['is']('element','tableCell')){const _0x5ada45=this['_getVidAttributeName'](_0x1a74c8),_0x2d9edd=_0x1a74c8['item']['getAttribute'](_0x5ada45);if(_0x2a2204['has'](_0x2d9edd)){const _0x5c05e6=_0x1a74c8['item']['parent']['parent']['getAttribute']('vid_start'),_0x55b5c8=_0x5b9331['get'](_0x5c05e6)||new Set();_0x55b5c8['add'](_0x2a2204['get'](_0x2d9edd)['userId']),_0x5b9331['set'](_0x5c05e6,_0x55b5c8);}}for(const _0xbaff83 of _0x5b9331['keys']())(_0xb0f064['has'](_0xbaff83)||_0x2a2204['has'](_0xbaff83))&&_0x5b9331['delete'](_0xbaff83);}for(const _0x3c2599 of _0x7e8216){const _0xc9439b=_0x5a1fb5['insertions'][_0x3c2599];let _0x5903d5=null,_0x5765ca=null;for(const _0x121770 of _0xc9439b){const _0xad69cb=this['_getVidAttributeName'](_0x121770),_0x18eb77=_0x121770['item']['getAttribute'](_0xad69cb),_0x55e249=_0x5b9331['get'](_0x18eb77);_0x55e249&&'elementStart'==_0x121770['type']&&(_0x5903d5=Array['from'](_0x55e249)[0x0],_0x5765ca=_0x121770['item']['getAttribute']('vid_end')),_0x5903d5&&(_0x2a2204['set'](_0x18eb77,{'userId':_0x5903d5}),_0xb0f064['set'](_0x18eb77,{'userId':_0x5903d5})),_0x18eb77==_0x5765ca&&(_0x5903d5=null,_0x5765ca=null);}}const _0xe5a428={},_0x3aabd1=new Set();for(const _0x1318a3 of _0x7e8216){const _0x474587=_0x1993f0['deletions'][_0x1318a3],_0x1cf729=_0x1993f0['insertions'][_0x1318a3];for(const {userId:_0x5d9397}of this['_touchedMarkers']['values']())null!==_0x5d9397&&_0x3aabd1['add'](_0x5d9397);for(const {userId:_0x47a0d9}of this['_touchedRoots']['values']())null!==_0x47a0d9&&_0x3aabd1['add'](_0x47a0d9);this['_markChanges'](_0x1cf729,_0x5a1fb5['insertions'][_0x1318a3],_0xb0f064,'insertion',_0x3aabd1),this['_markChanges'](_0x474587,_0x5a1fb5['deletions'][_0x1318a3],_0x2a2204,'deletion',_0x3aabd1),_0xe5a428[_0x1318a3]={'insertions':this['_prepareViewToSave'](_0x1cf729),'deletions':this['_prepareViewToSave'](_0x474587),'attachChange':this['_touchedRoots']['get'](_0x1318a3)||null,'attributesBefore':_0x55a8fc(this['_baseRootsAttributes']['get'](_0x1318a3))||{},'attributesAfter':_0x55a8fc(this['_diffRootsAttributes']['get'](_0x1318a3))};}return{'diffData':_0xe5a428,'authorsIds':Array['from'](_0x3aabd1)};}['_processRootBeforeSave'](_0x1ea6f7){for(const [,_0x44c6b8]of _0x1ea6f7['markers']){const _0x356239=_0x44c6b8['start']['getAncestors']()['filter'](_0xbadfa3=>'tableCell'==_0xbadfa3['name']);for(const _0x2043af of _0x356239)0x1==_0x2043af['childCount']&&_0x2043af['getChild'](0x0)['is']('element','paragraph')&&_0x2043af['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x36e71c){this['_processRootBeforeSave'](_0x36e71c);const _0xa574c1=this['editor']['data']['toView'](_0x36e71c,{}),_0x4489a8=Array['from'](_0xa574c1['getChildren']())['map'](_0x258e7c=>this['_getViewJson'](_0x258e7c));return JSON['stringify'](_0x4489a8);}['_getViewJson'](_0x10dad5){if(_0x10dad5['is']('$text'))return _0x10dad5['data'];{const _0x530b47=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3e1784=_0x10dad5,_0x2cf59a=this['editor']['data']['htmlProcessor']['domConverter'],_0x442c01={'type':_0x530b47['_getTypeCharForViewElement'](_0x3e1784),'name':_0x3e1784['name'],'attributes':Array['from'](_0x3e1784['getAttributes']()),'children':Array['from'](_0x3e1784['getChildren']())['map'](_0x29c53d=>this['_getViewJson'](_0x29c53d))};if(_0x10dad5['is']('uiElement')&&'$comment'!=_0x10dad5['name']){const _0xbbfd7e=_0x10dad5['render'](_0x2cf59a['domDocument'],_0x2cf59a);_0x442c01['children']['push'](_0xbbfd7e['outerHTML']);}else{if(_0x10dad5['is']('rawElement')){const _0x37e138=_0x2cf59a['domDocument']['createElement'](_0x3e1784['name']);_0x10dad5['render'](_0x37e138,_0x2cf59a),_0x442c01['children']['push'](_0x37e138['innerHTML']);}}const _0x2185bd=Array['from'](_0x3e1784['getCustomProperties']());_0x2185bd['length']>0x0&&(_0x442c01['customProperties']=_0x2185bd);const _0x59f49a=_0x3e1784['getFillerOffset']();return null!==_0x59f49a&&(_0x442c01['fillerOffset']=_0x59f49a),_0x442c01;}}['_markChanges'](_0x4fdaf7,_0x26d459,_0x28af8c,_0x127c93,_0x311353){let _0x19e278=null,_0x2d1d59=null,_0x19a419=0x0;const _0x43a38a=this['editor']['model'];for(let _0x59dcd1=0x0;_0x59dcd1<_0x26d459['length'];_0x59dcd1++){const _0x7e2358=this['_getVidAttributeName'](_0x26d459[_0x59dcd1]),_0x5b3a3a=_0x26d459[_0x59dcd1]['item']['getAttribute'](_0x7e2358),_0x8f67ad=_0x28af8c['get'](_0x5b3a3a),_0x4a93a6=_0x59dcd1==_0x26d459['length']-0x1;(!_0x19e278&&_0x8f67ad&&(_0x19e278=_0x8f67ad,_0x2d1d59=_0x26d459[_0x59dcd1]),_0x19e278&&(!_0x8f67ad||_0x8f67ad['userId']!=_0x19e278['userId']))&&(_0x438723(_0x8f67ad,P(_0x2d1d59,_0x4fdaf7,_0x43a38a),P(_0x26d459[_0x59dcd1],_0x4fdaf7,_0x43a38a)),_0x19e278=_0x8f67ad||null,_0x2d1d59=_0x8f67ad?_0x26d459[_0x59dcd1]:null),_0x19e278&&_0x4a93a6&&_0x438723(_0x8f67ad,P(_0x2d1d59,_0x4fdaf7,_0x43a38a),V(_0x26d459[_0x59dcd1],_0x4fdaf7,_0x43a38a));}function _0x438723(_0x5af942,_0x3afa7a,_0x1b62b0){const _0x8e2cb3=_0x19e278['userId'],_0xee2f67='revision:'+_0x127c93+':'+_0x8e2cb3+':'+_0x19a419++,_0x108538=_0x43a38a['createRange'](_0x3afa7a,_0x1b62b0);_0x4fdaf7['markers']['set'](_0xee2f67,_0x108538),null!==_0x8e2cb3&&_0x311353['add'](_0x8e2cb3);}}['_getVidAttributeName'](_0x1a56b8){switch(_0x1a56b8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x32a907,_0x177926){_0x32a907['baseVersion']=null;for(const _0x430454 in _0x32a907){const _0x471b54=_0x32a907[_0x430454];if(_0x471b54 instanceof _0x2a9a1e){const _0x159006=_0x177926['get'](_0x471b54['root']['rootName']);_0x32a907[_0x430454]=this['_fixPosition'](_0x471b54,_0x159006);}if(_0x471b54 instanceof _0x54a9c4){const _0x1c7cbd=_0x177926['get'](_0x471b54['root']['rootName']);_0x32a907[_0x430454]=this['_fixRange'](_0x471b54,_0x1c7cbd);}'root'===_0x430454&&(_0x32a907['root']=_0x177926['get'](_0x32a907['root']['rootName']));}}['_fixRange'](_0x59090c,_0x28aa42){return this['editor']['model']['createRange'](this['_fixPosition'](_0x59090c['start'],_0x28aa42),this['_fixPosition'](_0x59090c['end'],_0x28aa42));}['_fixPosition'](_0x51b4bb,_0x3cd230){return this['editor']['model']['createPositionFromPath'](_0x3cd230,_0x51b4bb['path'],_0x51b4bb['stickiness']);}['_handleInsertOperation'](_0x5259a1){const _0x54708a=this['_idsRoots']['get'](_0x5259a1['position']['root']['rootName']),_0x29fa81=this['_fixPosition'](_0x5259a1['position'],_0x54708a),_0x546b64=null===_0x5259a1['_authorId']?null:_0x5259a1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e7771=_0x29fa81['parent'],_0x26c127=this['_revisionId'],_0x423de3=[];for(const _0x3adab4 of _0x5259a1['nodes'])if(_0x3adab4['is']('element'))_0x423de3['push'](this['_makeIdsRoot'](_0x3adab4));else{for(let _0x274569=0x0;_0x274569<_0x3adab4['offsetSize'];_0x274569++)_0x423de3['push'](new _0x1b3786('$text',{'vid':this['_revisionId']++}));}const _0x3c5fdf=this['_revisionId'];for(let _0x545399=_0x26c127;_0x545399<_0x3c5fdf;_0x545399++)this['_touched']['set'](_0x545399,{'userId':_0x546b64});_0x4e7771['_insertChild'](_0x29fa81['offset'],_0x423de3);}['_handleMoveOperation'](_0x1929b6){(_0x1929b6=this['_cloneOperation'](_0x1929b6,this['_idsRoots']))['_execute']();const _0xd3af60=null===_0x1929b6['_authorId']?null:_0x1929b6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ce7cc=_0x1929b6['getMovedRangeStart'](),_0x3cf0e5=_0x2ce7cc['parent'],_0x2ba9e2=_0x2ce7cc['offset'];!function _0x44f707(_0x26080d,_0x1fc5d0,_0x3cfb58,_0x2c77e6){for(let _0x5cf8ac=_0x3cfb58;_0x5cf8ac<_0x2c77e6;_0x5cf8ac++){const _0x556947=_0x1fc5d0['getChild'](_0x5cf8ac);_0x556947['is']('element','$text')?_0x26080d['set'](_0x556947['getAttribute']('vid'),{'userId':_0xd3af60}):(_0x26080d['set'](_0x556947['getAttribute']('vid_start'),{'userId':_0xd3af60}),_0x44f707(_0x26080d,_0x556947,0x0,_0x556947['childCount']),_0x26080d['set'](_0x556947['getAttribute']('vid_end'),{'userId':_0xd3af60}));}}(this['_touched'],_0x3cf0e5,_0x2ba9e2,_0x2ba9e2+_0x1929b6['howMany']);}['_handleMergeOperation'](_0x4feabc){const _0x21fe04=null===(_0x4feabc=this['_cloneOperation'](_0x4feabc,this['_idsRoots']))['_authorId']?null:_0x4feabc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47420a=_0x4feabc['targetPosition']['parent'],_0x5580a6=_0x4feabc['sourcePosition']['parent'],_0x16330f=_0x47420a['getAttribute']('vid_end'),_0x3203bd=_0x5580a6['getAttribute']('vid_start');_0x47420a['_setAttribute']('vid_end',_0x5580a6['getAttribute']('vid_end')),_0x5580a6['_setAttribute']('vid_end',_0x16330f),this['_touched']['set'](_0x3203bd,{'userId':_0x21fe04}),this['_touched']['set'](_0x16330f,{'userId':_0x21fe04}),_0x4feabc['_execute']();}['_handleSplitOperation'](_0x431907){const _0x296f14=null===(_0x431907=this['_cloneOperation'](_0x431907,this['_idsRoots']))['_authorId']?null:_0x431907['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d7c9d=_0x431907['graveyardPosition'],_0x57df2f=_0x431907['splitPosition']['parent'];_0x431907['_execute']();const _0x214be6=_0x57df2f['getAttribute']('vid_end'),_0x4c06a2=_0x431907['insertionPosition']['nodeAfter'];if(_0x3d7c9d){const _0x36c765=_0x4c06a2['getAttribute']('vid_end'),_0x355573=_0x57df2f['getAttribute']('vid_end');_0x57df2f['_setAttribute']('vid_end',_0x36c765),_0x4c06a2['_setAttribute']('vid_end',_0x355573),this['_touched']['set'](_0x57df2f['getAttribute']('vid_end'),{'userId':_0x296f14}),this['_touched']['set'](_0x4c06a2['getAttribute']('vid_start'),{'userId':_0x296f14});}else{const _0xd4a484=this['_revisionId']++,_0x4da34f=this['_revisionId']++;_0x57df2f['_setAttribute']('vid_end',_0xd4a484),_0x4c06a2['_setAttribute']('vid_start',_0x4da34f),_0x4c06a2['_setAttribute']('vid_end',_0x214be6),this['_touched']['set'](_0xd4a484,{'userId':_0x296f14}),this['_touched']['set'](_0x4da34f,{'userId':_0x296f14});}}['_handleMarkerOperation'](_0x2bd883){if(!_0x2bd883['affectsData'])return;const _0x2d420b=(_0x2bd883=this['_cloneOperation'](_0x2bd883,this['_diffRoots']))['oldRange']?_0x2bd883['oldRange']['root']:null,_0x5f08ec=_0x2bd883['newRange']?_0x2bd883['newRange']['root']:null;_0x2d420b&&this['_markers']['delete'](_0x2bd883['name']),_0x5f08ec&&this['_markers']['set'](_0x2bd883['name'],_0x2bd883['newRange']['clone']());const _0x4506e9=null===_0x2bd883['_authorId']?null:_0x2bd883['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5686b7=_0x2bd883['name'];if(!this['_touchedMarkers']['has'](_0x5686b7))return void this['_touchedMarkers']['set'](_0x5686b7,{'range':_0x2bd883['oldRange'],'userId':_0x4506e9});const _0x4d7838=this['_touchedMarkers']['get'](_0x5686b7),_0x5583e1=_0x4d7838['range'],_0x31be10=_0x2bd883['newRange'];null==_0x5583e1&&null==_0x31be10||_0x5583e1&&_0x31be10&&_0x5583e1['isEqual'](_0x31be10)?this['_touchedMarkers']['delete'](_0x2bd883['name']):_0x4d7838['userId']=_0x4506e9;}['_handleRootOperation'](_0x22e10b,_0x1de504){this['_diffRoots']['has'](_0x22e10b['rootName'])?this['_diffRoots']['get'](_0x22e10b['rootName'])['_isAttached']=_0x22e10b['isAdd']:(this['_diffRoots']['set'](_0x22e10b['rootName'],N(_0x22e10b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x22e10b['rootName'],{}),_0x1de504&&this['_idsRoots']['set'](_0x22e10b['rootName'],N(_0x22e10b['rootName'],!0x0)));const _0x4fa8f9=null===_0x22e10b['_authorId']?null:_0x22e10b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b0dc8=this['_touchedRoots']['get'](_0x22e10b['rootName']);_0x5b0dc8&&_0x5b0dc8['userId']===_0x4fa8f9?this['_touchedRoots']['delete'](_0x22e10b['rootName']):this['_touchedRoots']['set'](_0x22e10b['rootName'],{'userId':_0x4fa8f9,'isAttached':_0x22e10b['isAdd']});}['_handleRootAttributeOperation'](_0x5f6bee){const _0x148350=this['_diffRootsAttributes']['get'](_0x5f6bee['root']['rootName']);null===_0x5f6bee['newValue']?delete _0x148350[_0x5f6bee['key']]:_0x148350[_0x5f6bee['key']]=_0x5f6bee['newValue'];}}function x(_0x50f0bb){const _0x4004dd=N(_0x50f0bb['rootName'],_0x50f0bb['isAttached']());for(const _0x3e8561 of _0x50f0bb['getChildren']()){const _0x216567=_0x3e8561['_clone'](!0x0);_0x4004dd['_appendChild'](_0x216567);}return _0x4004dd;}function N(_0x5e0405,_0x47f51b=!0x0){const _0x49b19a=new _0x3dd335();return _0x49b19a['rootName']=_0x5e0405,_0x49b19a['_isAttached']=_0x47f51b,_0x49b19a['isAttached']=()=>_0x49b19a['_isAttached'],_0x49b19a;}function P(_0x24e6c3,_0x3ecaec,_0x22f7b5){const _0x5919c6='elementEnd'==_0x24e6c3['type']?_0x22f7b5['createPositionAt'](_0x24e6c3['item'],'end'):_0x22f7b5['createPositionBefore'](_0x24e6c3['item']);return _0x22f7b5['createPositionFromPath'](_0x3ecaec,_0x5919c6['path'],_0x5919c6['stickiness']);}function V(_0x252efb,_0x441634,_0x2c5f42){const _0xbdfbe9='elementStart'==_0x252efb['type']?_0x2c5f42['createPositionAt'](_0x252efb['item'],0x0):_0x2c5f42['createPositionAfter'](_0x252efb['item']);return _0x2c5f42['createPositionFromPath'](_0x441634,_0xbdfbe9['path'],_0xbdfbe9['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x389b52(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x279144){super(),this['id']=_0x279144['id']||_0x280b09(),this['author']=_0x279144['author'],this['type']=_0x279144['type'],this['data']=_0x279144['data']||{},this['rootName']=_0x279144['rootName'],this['set']('createdAt',_0x279144['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4e61dc,_0x27fc2b){this['newRevisionId']=_0x4e61dc,this['oldRevisionId']=_0x27fc2b,this['changes']=new _0x44d325();}['_setChanges'](_0x1acbd3){for(const _0x387bfb of _0x1acbd3)this['changes']['add'](_0x387bfb);}}class l extends _0x2613d1{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x25b15e,_0x45a7c2,S,$];}constructor(_0x58e691){super(_0x58e691),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x31240d,_0x5c2e9a,_0x530c33)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x114b65=>{for(const _0x1d9532 of this['editor']['editing']['view']['document']['roots'])_0x530c33?_0x114b65['removeClass']('ck-editor__editable__overlay',_0x1d9532):_0x114b65['addClass']('ck-editor__editable__overlay',_0x1d9532);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4144b9=>null!==_0x4144b9),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x15a2a2,_0x2fcddf,_0x4d710a)=>_0x15a2a2&&_0x4d710a?_0x2fcddf['changes']['getIndex'](_0x4d710a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2a434f,_0x457d2f)=>_0x2a434f?_0x457d2f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x45a7c2);}['init'](){const _0x522146=this['editor'],_0x52e326=new rt(_0x522146,{'direction':'backward'}),_0xf9e560=new rt(_0x522146,{'direction':'forward'});(_0x522146['commands']['add']('showPreviousChange',_0x52e326),_0x522146['commands']['add']('showNextChange',_0xf9e560),_0x522146['commands']['add']('restoreRevision',new nt(_0x522146)),this['on']('change:numberOfChanges',()=>{_0x52e326['refresh'](),_0xf9e560['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x522146['enableReadOnlyMode']('revision-viewer'),_0x522146['plugins']['has']('WidgetToolbarRepository'))&&_0x522146['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x40b0d6){return await this['_utils']['loadRevisionData'](_0x40b0d6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x40b0d6);}async['getRevisionRootsAttributes'](_0x5b0c7a){return await this['_utils']['loadRevisionData'](_0x5b0c7a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5b0c7a);}async['compare'](_0xc5368e,_0x7606f5,_0x53f38e=!0x1){if(!this['isEnabled'])return;const _0x396038=this['diff'],_0x580814=this['repository'],_0x122fd2='string'==typeof _0xc5368e?_0x580814['getRevision'](_0xc5368e):_0xc5368e,_0x250eec='string'==typeof _0x7606f5?_0x580814['getRevision'](_0x7606f5):_0x7606f5,_0x480182=_0x122fd2['id'],_0x16da5d=_0x250eec?_0x250eec['id']:null;if(!_0x53f38e&&this['diff']&&this['diff']['newRevisionId']===_0x480182&&this['diff']['oldRevisionId']===_0x16da5d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x480182,_0x16da5d);const _0xe51f68=this['_getRevisionsRange'](_0x122fd2,_0x250eec,!0x0)['map'](_0x535552=>this['_utils']['loadRevisionData'](_0x535552,this['adapter']));return _0xe51f68['push'](new Promise(_0x232039=>{setTimeout(_0x232039,0x14);})),Promise['all'](_0xe51f68)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1efbbf=this['_getDiff'](_0x480182,_0x16da5d);for(const _0x48d1ba of _0x1efbbf['changes'])this['_changeIdToChange']['set'](_0x48d1ba['id'],_0x48d1ba);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1d9710=>{for(const _0x4c0ac1 of this['editor']['model']['document']['getRootNames']())_0x1d9710['detachRoot'](_0x4c0ac1);for(const _0x165a56 of Object['keys'](_0x1efbbf['model'])){const _0x47723a=_0x1d9710['addRoot'](_0x165a56);for(const _0x3cef17 of Object['keys'](_0x1efbbf['attributes'][_0x165a56]))_0x1d9710['setAttribute'](_0x3cef17,_0x1efbbf['attributes'][_0x165a56][_0x3cef17],_0x47723a);_0x1d9710['insert'](_0x1efbbf['model'][_0x165a56],_0x47723a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1efbbf['changes'])),this['isReady']=!0x0;})['catch'](_0x2fda5c=>{console['error'](_0x2fda5c),this['_cleanUp'](),_0x396038&&(this['diff']=_0x396038),this['isReady']=!0x0;});}['addRevisionData'](_0x49651a,_0x40678d){const _0x438acb=this['repository']['createRevision'](_0x49651a);return _0x438acb['on']('_update',(_0x695996,_0x348cf0,_0x33acb1)=>_0x40678d(_0x348cf0,_0x33acb1,_0x438acb)),this['repository']['addRevision'](_0x438acb),_0x438acb;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5a7cef=>{for(const _0x12847c of this['editor']['model']['document']['getRootNames']())_0x5a7cef['detachRoot'](_0x12847c);});}['_sortAndFilterDiffChanges'](_0x593236){const _0x2b47d7=[],_0xa3490e=new Map();for(const _0x246272 of this['editor']['model']['document']['getRootNames']()){const _0xb88089=this['editor']['editing']['view']['getDomRoot'](_0x246272);if(!_0xb88089)continue;const _0x1b8214=_0xb88089['getClientRects']()['item'](0x0);_0x1b8214&&(_0x2b47d7['push'](_0x246272),_0xa3490e['set'](_0x246272,_0x1b8214));}return _0x2b47d7['sort']((_0x598048,_0x5d262b)=>{const _0x3a4b3d=_0xa3490e['get'](_0x598048),_0x15e82b=_0xa3490e['get'](_0x5d262b);return _0x3a4b3d['y']-_0x15e82b['y']||_0x3a4b3d['x']-_0x15e82b['x'];}),(_0x593236=_0x593236['filter'](_0x3acce6=>_0x2b47d7['includes'](_0x3acce6['rootName'])))['sort']((_0x372ff5,_0x4a3651)=>_0x2b47d7['indexOf'](_0x372ff5['rootName'])-_0x2b47d7['indexOf'](_0x4a3651['rootName'])),_0x593236;}['_makeTape'](_0x8b06b2){const _0x11d744=Array['from'](_0x8b06b2['markers'])['filter'](([_0x13e2a9,_0x3aac18])=>_0x13e2a9['startsWith']('revision:')&&!_0x3aac18['isCollapsed']),_0x54cf4c=Array['from'](this['editor']['model']['createRangeIn'](_0x8b06b2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x11d744['length'])for(const _0x56e7fe of _0x54cf4c){const [_0x48cd4e,_0x18fb68]=_0x11d744[0x0],[,_0x3e7902,_0x5160bc]=_0x48cd4e['split'](':');if(_0x18fb68['end']['isEqual'](_0x56e7fe['nextPosition'])&&_0x11d744['shift'](),(_0x56e7fe['previousPosition']['isEqual'](_0x18fb68['start'])||_0x56e7fe['previousPosition']['isAfter'](_0x18fb68['start']))&&('insertion'==_0x3e7902?_0x56e7fe['isAdded']={'userId':_0x5160bc}:'deletion'==_0x3e7902&&(_0x56e7fe['isRemoved']={'userId':_0x5160bc})),0x0==_0x11d744['length'])break;}return _0x54cf4c;}['_refreshStartEndIndex'](_0x5f91c){const _0x5f08fc=new Map();for(let _0x1603cf=0x0;_0x1603cf<_0x5f91c['length'];_0x1603cf++)'text'===_0x5f91c[_0x1603cf]['type']?(_0x5f91c[_0x1603cf]['item']['startIndex']=_0x1603cf,_0x5f91c[_0x1603cf]['item']['endIndex']=_0x1603cf):('elementStart'===_0x5f91c[_0x1603cf]['type']?_0x5f91c[_0x1603cf]['item']['startIndex']=_0x1603cf:'elementEnd'===_0x5f91c[_0x1603cf]['type']&&(_0x5f91c[_0x1603cf]['item']['endIndex']=_0x1603cf),_0x5f08fc['set'](_0x5f91c[_0x1603cf]['id'],_0x1603cf));for(const _0x3f6fb1 of _0x5f08fc['values']())'elementStart'===_0x5f91c[_0x3f6fb1]['type']?_0x5f91c[_0x3f6fb1]['item']['endIndex']=_0x5f08fc['get'](_0x5f91c[_0x3f6fb1]['pairId']):'elementEnd'===_0x5f91c[_0x3f6fb1]['type']&&(_0x5f91c[_0x3f6fb1]['item']['startIndex']=_0x5f08fc['get'](_0x5f91c[_0x3f6fb1]['pairId']));}['_processTape'](_0x1a768c){for(let _0x3622d3=0x0;_0x3622d3<_0x1a768c['length'];_0x3622d3++){if('elementStart'===_0x1a768c[_0x3622d3]['type'])_0x1a768c[_0x3622d3]['item']['startIndex']=_0x3622d3;else{if('elementEnd'===_0x1a768c[_0x3622d3]['type']){_0x1a768c[_0x3622d3]['item']['endIndex']=_0x3622d3;const _0x26e277=_0x1a768c[_0x3622d3]['item']['startIndex'];_0x1a768c[_0x26e277]['pairId']=_0x1a768c[_0x3622d3]['id'],_0x1a768c[_0x3622d3]['pairId']=_0x1a768c[_0x26e277]['id'];}else _0x1a768c[_0x3622d3]['item']['startIndex']=_0x3622d3,_0x1a768c[_0x3622d3]['item']['endIndex']=_0x3622d3,_0x1a768c[_0x3622d3]['pairId']=null;}_0x1a768c[_0x3622d3]['markersStart']||(_0x1a768c[_0x3622d3]['markersStart']=[],_0x1a768c[_0x3622d3]['markersEnd']=[]);}}['_markInsertions'](_0x5e4a7a,_0xa39fcf){const _0x6d824f=_0x5e4a7a['filter'](_0x44dc3c=>!_0x44dc3c['isAdded']);for(let _0x29e54c=0x0;_0x29e54c<_0xa39fcf['length'];_0x29e54c++)_0xa39fcf[_0x29e54c]['isAdded']&&(_0x6d824f[_0x29e54c]['isAdded']=_0xa39fcf[_0x29e54c]['isAdded']);}['_getDiff'](_0x2cda80,_0x2c5429=null){const _0x5782e9=this['repository']['getRevision'](_0x2cda80),_0x4252e7=_0x2c5429?this['repository']['getRevision'](_0x2c5429):null,_0x5efe14=this['_getRevisionsRange'](_0x5782e9,_0x4252e7),_0x1368ec=_0x5efe14[_0x5efe14['length']-0x1],_0x309976=new Map(),_0x3aeaba={'model':{},'attributes':{},'changes':[]},_0x3e9939=new Set(),_0x2fbc5b=new Map();for(let _0x4432d9=_0x5efe14['length']-0x1;_0x4432d9>=0x0;_0x4432d9--){const _0x36e2c1=_0x5efe14[_0x4432d9];for(const _0x455cfd of Object['keys'](_0x36e2c1['diffData']))if(_0x36e2c1['diffData'][_0x455cfd]['attachChange']){const _0x5d4498=_0x36e2c1['diffData'][_0x455cfd]['attachChange'];_0x5d4498['isAttached']?(_0x3e9939['add'](_0x455cfd),_0x2fbc5b['has'](_0x455cfd)&&_0x2fbc5b['get'](_0x455cfd)['userId']==_0x5d4498['userId']?_0x2fbc5b['delete'](_0x455cfd):_0x2fbc5b['set'](_0x455cfd,_0x5d4498)):_0x2fbc5b['has'](_0x455cfd)?(_0x3e9939['delete'](_0x455cfd),_0x2fbc5b['delete'](_0x455cfd)):(_0x3e9939['add'](_0x455cfd),_0x2fbc5b['set'](_0x455cfd,_0x5d4498));}else _0x3e9939['add'](_0x455cfd);}for(const _0x18203c of _0x3e9939){const _0x2b8385=_0x2fbc5b['has'](_0x18203c)&&!_0x2fbc5b['get'](_0x18203c)['isAttached'];let _0x1ff088=_0x2b8385?_0x5efe14['length']-0x1:0x0;const _0x228df9=_0x2b8385?-0x1:0x1;for(;_0x5efe14[_0x1ff088];){const _0x4b214c=_0x5efe14[_0x1ff088];if(_0x4b214c['diffData'][_0x18203c]){const _0x14c13a=_0x2b8385?_0x4b214c['diffData'][_0x18203c]['attributesBefore']:_0x4b214c['diffData'][_0x18203c]['attributesAfter'];_0x3aeaba['attributes'][_0x18203c]=_0x14c13a?_0x55a8fc(_0x14c13a):{};break;}_0x1ff088+=_0x228df9;}}for(const _0x3df797 of _0x5efe14){_0x3df797['model']={};for(const _0x46bb30 of _0x3df797['authors'])_0x309976['set'](_0x46bb30['id'],_0x46bb30);for(const _0x1d87ab of _0x3e9939){const _0x392ad4=_0x3df797['diffData'][_0x1d87ab]?_0x3df797['diffData'][_0x1d87ab]['insertions']:'[]',_0x365e15=_0x3df797['diffData'][_0x1d87ab]?_0x3df797['diffData'][_0x1d87ab]['deletions']:'[]';_0x3df797['model'][_0x1d87ab]={'insertions':this['_utils']['_makeModelFromViewString'](_0x392ad4),'deletions':this['_utils']['_makeModelFromViewString'](_0x365e15)};}}for(const _0x3d66e6 of _0x3e9939){let _0x2a2815=null,_0x4ab5ba=0x0;const _0x46c52b=new Map(Array['from'](_0x5782e9['model'][_0x3d66e6]['insertions']['markers'])['filter'](([_0x1ceefc])=>!_0x1ceefc['startsWith']('revision:')));let _0x4a9612=0x0;for(const _0x3e8885 of _0x5efe14){const _0x4fb4f1=this['_makeTape'](_0x3e8885['model'][_0x3d66e6]['insertions']);_0x3e8885==_0x5782e9?(_0x2a2815=_0x4fb4f1,_0x4ab5ba=_0x2a2815['length'],_0x2a2815['forEach'](_0x2473ed=>{_0x2473ed['id']=_0x4a9612++;}),this['_processTape'](_0x2a2815)):this['_markInsertions'](_0x2a2815,_0x4fb4f1);const _0xd53f37=_0x2a2815['filter'](_0x3b9687=>!_0x3b9687['isAdded'])['map'](_0x305ef3=>_0x305ef3['id']);let _0x3d25a2=0x0;const _0x579f52=this['_makeTape'](_0x3e8885['model'][_0x3d66e6]['deletions']);_0x579f52['forEach'](_0x2724b6=>{_0x2724b6['isRemoved']?_0x2724b6['id']=_0x4ab5ba++:_0x2724b6['id']=_0xd53f37[_0x3d25a2++];}),this['_processTape'](_0x579f52),this['_setDistance'](_0x2a2815,'isAdded'),this['_setDistance'](_0x579f52,'isRemoved'),_0x3e8885==_0x5782e9&&this['_markMarkers'](_0x2a2815,_0x46c52b),_0x2a2815=this['_joinTapes'](_0x2a2815,_0x579f52),this['_refreshStartEndIndex'](_0x2a2815),this['_setDistance'](_0x2a2815,'isRemoved');}_0x2a2815=_0x2a2815['filter'](_0x19e0fe=>!(_0x19e0fe['isAdded']&&_0x19e0fe['isRemoved']));const _0x5b53d9=new Map(_0x1368ec['model'][_0x3d66e6]['deletions']['markers']),_0x48c5f0=new Set(_0x46c52b['keys']());for(const _0x53d402 of _0x5b53d9['keys']())_0x48c5f0['delete'](_0x53d402);this['_markSuggestions'](_0x2a2815,_0x48c5f0),this['_fixObsoleteTags'](_0x2a2815),_0x2a2815=this['_removeMissingPairs'](_0x2a2815),_0x2a2815=this['_markMismatchedRemovedTags'](_0x2a2815),_0x2a2815=this['_removeUnsupportedChanges'](_0x2a2815);const {root:_0x46796b,changes:_0x4b06d5}=this['_makeModelFromTape'](_0x2a2815,_0x309976,_0x3d66e6);_0x3aeaba['model'][_0x3d66e6]=_0x46796b;const _0x47a559=_0x2fbc5b['get'](_0x3d66e6);if(_0x47a559){const _0x27cec6=_0x309976['get'](_0x47a559['userId']),_0xd7ad8c=new G({'author':_0x27cec6,'type':_0x47a559['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3d66e6});_0x4b06d5['unshift'](_0xd7ad8c),_0x3aeaba['attributes'][_0x3d66e6]['revisionHistoryAttachChange']=_0xd7ad8c['id'];}_0x3aeaba['changes']=_0x3aeaba['changes']['concat'](_0x4b06d5);}return _0x3aeaba;}['_markMarkers'](_0x30855d,_0x5ca704){for(let _0xcb5d09=0x0;_0xcb5d09<_0x30855d['length'];_0xcb5d09++)for(const [_0x3584b1,_0x329756]of _0x5ca704)!_0x329756['isCollapsed']&&_0x329756['start']['isEqual'](_0x30855d[_0xcb5d09]['previousPosition'])&&_0x30855d[_0xcb5d09]['markersStart']['push'](_0x3584b1),_0x329756['end']['isEqual'](_0x30855d[_0xcb5d09]['nextPosition'])&&_0x30855d[_0xcb5d09]['markersEnd']['push'](_0x3584b1);}['_joinTapes'](_0x54c51b,_0x68d40a){let _0x37643a=[],_0x30f220=0x0,_0x556003=0x0;for(;_0x30f220<_0x54c51b['length']||_0x556003<_0x68d40a['length'];){const _0xbc01d9=_0x54c51b[_0x30f220]||{},_0x579a14=_0x68d40a[_0x556003]||{};if(_0xbc01d9['id']==_0x579a14['id'])_0x30f220++,_0x556003++,_0x37643a['push'](_0xbc01d9);else{if(_0x579a14['isRemoved']&&_0xbc01d9['isAdded']){const {commonTape:_0x16b67a,iEnd:_0x5ad4ba,jEnd:_0x3bdd55}=this['_threeWayMerge'](_0x54c51b,_0x30f220,_0x68d40a,_0x556003);_0x37643a=_0x37643a['concat'](_0x16b67a),_0x30f220=_0x5ad4ba,_0x556003=_0x3bdd55;}else _0x579a14['isRemoved']?(_0x556003++,_0x37643a['push'](_0x579a14)):(_0x30f220++,_0x37643a['push'](_0xbc01d9));}}return _0x37643a;}['_markSuggestions'](_0x1e9ac4,_0x576ee5){const _0x1f3fdd=[];for(let _0x59b5e1=0x0;_0x59b5e1<_0x1e9ac4['length'];_0x59b5e1++){for(let _0x471e29=0x0;_0x471e29<_0x1e9ac4[_0x59b5e1]['markersStart']['length'];_0x471e29++){const _0x432fb2=_0x1e9ac4[_0x59b5e1]['markersStart'][_0x471e29];if(!_0x576ee5['has'](_0x432fb2))continue;const {group:_0x57f314,type:_0xaf314,authorId:_0x5a368a}=_0x14cf1d(_0x432fb2);'revision-suggestion'!=_0x57f314||'insertion'!=_0xaf314&&'deletion'!=_0xaf314||(_0x1f3fdd['unshift']({'type':_0xaf314,'name':_0x432fb2,'userId':_0x5a368a}),_0x1e9ac4[_0x59b5e1]['markersStart']['splice'](_0x471e29,0x1),_0x471e29--);}_0x844b58(_0x1e9ac4[_0x59b5e1]);for(let _0x249b7d=0x0;_0x249b7d<_0x1e9ac4[_0x59b5e1]['markersEnd']['length'];_0x249b7d++){const _0x688246=_0x1e9ac4[_0x59b5e1]['markersEnd'][_0x249b7d];if(!_0x576ee5['has'](_0x688246))continue;const {group:_0x36f1c5,type:_0x260d1f}=_0x14cf1d(_0x688246);if('revision-suggestion'!=_0x36f1c5||'insertion'!=_0x260d1f&&'deletion'!=_0x260d1f)continue;_0x1e9ac4[_0x59b5e1]['markersEnd']['splice'](_0x249b7d,0x1),_0x249b7d--;const _0x3ac270=_0x1f3fdd['findIndex'](_0x537c14=>_0x537c14['name']==_0x688246);_0x3ac270>-0x1&&_0x1f3fdd['splice'](_0x3ac270,0x1);}}function _0x14cf1d(_0x301e90){const _0x40cfc6=_0x301e90['split'](':');return{'group':_0x40cfc6[0x0],'type':_0x40cfc6[0x1],'subType':_0x40cfc6['length']>=0x5?_0x40cfc6[0x2]:null,'id':_0x40cfc6['length']<0x5?_0x40cfc6[0x2]:_0x40cfc6[0x3],'authorId':_0x40cfc6['length']<0x5?_0x40cfc6[0x3]:_0x40cfc6[0x4],'markerCount':0x6==_0x40cfc6['length']?_0x40cfc6[0x5]:null};}function _0x844b58(_0x4481bb){for(let _0x1439c1=0x0;_0x1439c1<_0x1f3fdd['length'];_0x1439c1++){if(_0x4481bb['isAdded']&&'insertion'==_0x1f3fdd[_0x1439c1]['type']&&_0x4481bb['isAdded']['userId']==_0x1f3fdd[_0x1439c1]['userId'])return _0x4481bb['isAddSuggestion']=_0x1f3fdd[_0x1439c1],void delete _0x4481bb['isAdded'];if(!_0x4481bb['isAdded']&&!_0x4481bb['isRemoved']&&'deletion'==_0x1f3fdd[_0x1439c1]['type'])return void(_0x4481bb['isRemoveSuggestion']=_0x1f3fdd[_0x1439c1]);}}}['_setDistance'](_0x367038,_0x3058df){let _0x2c5920=0x0,_0x360920=!0x1;const _0x4e02fc=new Map();for(const _0x46760d of _0x367038)_0x46760d[_0x3058df]?_0x360920&&(_0x2c5920++,_0x360920=!0x1):(_0x2c5920++,_0x360920=!0x0),_0x4e02fc['set'](_0x46760d['id'],_0x2c5920);for(let _0x409169=0x0;_0x409169<_0x367038['length'];_0x409169++){if('isRemoved'==_0x3058df&&_0x367038[_0x409169]['isAdded']||'isAdded'==_0x3058df&&_0x367038[_0x409169]['isRemoved'])continue;if('text'==_0x367038[_0x409169]['type']){_0x367038[_0x409169]['distance']=0x0;continue;}const _0x47a3f7=_0x4e02fc['get'](_0x367038[_0x409169]['pairId']),_0x1c2d40=_0x4e02fc['get'](_0x367038[_0x409169]['id']);_0x367038[_0x409169]['distance']=_0x47a3f7-_0x1c2d40;}}['_getRevisionsRange'](_0x320788,_0x4b7235,_0x279efb=!0x1){const _0x22c19b=[];let _0x41b6b4=this['repository']['getIndex'](_0x320788),_0x407bf4=this['repository']['getIndex'](_0x4b7235);for(-0x1==_0x407bf4&&(_0x407bf4=this['repository']['_revisions']['length'],_0x279efb=!0x1);_0x41b6b4<_0x407bf4;)_0x22c19b['push'](this['repository']['getRevision'](_0x41b6b4)),_0x41b6b4++;return _0x279efb&&_0x22c19b['push'](this['repository']['getRevision'](_0x41b6b4)),_0x22c19b;}['_threeWayMerge'](_0x2f89ae,_0x46cea8,_0x73e567,_0xcfd9a7){const _0xbd02e3=this['editor']['model']['schema'];let _0x25fa92=_0x46cea8;for(;_0x2f89ae[_0x25fa92]&&_0x2f89ae[_0x25fa92]['isAdded'];)_0x25fa92++;let _0x1e26f7=_0xcfd9a7;for(;_0x73e567[_0x1e26f7]&&_0x73e567[_0x1e26f7]['isRemoved'];)_0x1e26f7++;_0x176825(_0x2f89ae,_0x46cea8,_0x25fa92),_0x176825(_0x73e567,_0xcfd9a7,_0x1e26f7);const _0x2a099b=_0x73e567['slice'](_0xcfd9a7,_0x1e26f7)['concat'](_0x2f89ae['slice'](_0x46cea8,_0x25fa92));return _0x2a099b['sort']((_0x35a007,_0x1083fe)=>_0x35a007['side']!=_0x1083fe['side']?_0x35a007['side']-_0x1083fe['side']:_0x35a007['level']!=_0x1083fe['level']?_0x35a007['level']-_0x1083fe['level']:_0x35a007['distance']!=_0x1083fe['distance']?_0x1083fe['distance']-_0x35a007['distance']:!!_0x35a007['isAdded']!=!!_0x1083fe['isAdded']?-0x1==_0x35a007['side']||0x0==_0x35a007['side']?_0x35a007['isAdded']?-0x1:0x1:_0x35a007['isAdded']?0x1:-0x1:_0x35a007['index']-_0x1083fe['index']),{'commonTape':_0x2a099b,'iEnd':_0x25fa92,'jEnd':_0x1e26f7};function _0x176825(_0x58e6b0,_0x145bf4,_0x45475a){let _0x3b1f68=-0x1,_0x3b0795=Number['POSITIVE_INFINITY'],_0x422dfe=!0x0;for(let _0x38dbd9=_0x145bf4;_0x38dbd9<_0x45475a;_0x38dbd9++)if(_0xbd02e3['isInline'](_0x58e6b0[_0x38dbd9]['item'])||(_0x422dfe=!0x1),_0x58e6b0[_0x38dbd9]['item']['startIndex']<_0x145bf4&&(_0x3b1f68=_0x38dbd9),_0x58e6b0[_0x38dbd9]['item']['endIndex']>=_0x45475a){_0x3b0795=_0x38dbd9;break;}_0x422dfe&&(_0x3b1f68=_0x45475a-0x1);for(let _0x465a18=_0x145bf4;_0x465a18<_0x45475a;_0x465a18++)_0x58e6b0[_0x465a18]['side']=_0x465a18<=_0x3b1f68?-0x1:_0x465a18<_0x3b0795?0x0:0x1,_0x58e6b0[_0x465a18]['index']=_0x465a18;let _0x1feccb=0x0;for(let _0x3328f1=_0x145bf4;_0x3328f1<=_0x3b1f68;_0x3328f1++)0x0==_0x58e6b0[_0x3328f1]['distance']?_0x58e6b0[_0x3328f1]['level']=_0x1feccb:(_0x1feccb++,_0x58e6b0[_0x3328f1]['level']=_0x1feccb,_0x1feccb++);for(let _0x3a3875=_0x145bf4;_0x3a3875<_0x45475a;_0x3a3875++)0x0==_0x58e6b0[_0x3a3875]['side']&&(_0x58e6b0[_0x3a3875]['level']=_0x1feccb);_0x1feccb=0x0;for(let _0x499517=_0x45475a-0x1;_0x499517>=_0x3b0795;_0x499517--)0x0==_0x58e6b0[_0x499517]['distance']?_0x58e6b0[_0x499517]['level']=_0x1feccb:(_0x1feccb--,_0x58e6b0[_0x499517]['level']=_0x1feccb,_0x1feccb--);}}['_fixObsoleteTags'](_0x36a3d5){const _0x31bdd1=new Map(),_0x31b21f=this['editor']['model']['schema'];for(let _0x47c784=0x1;_0x47c784<_0x36a3d5['length'];_0x47c784++){let _0x354587,_0xa8d9c0,_0x4a2346;const _0x22b8ee=_0x36a3d5[_0x47c784],_0x148e3e=_0x36a3d5[_0x47c784-0x1];if('text'==_0x22b8ee['type'])continue;if(_0x22b8ee['type']!=_0x148e3e['type'])continue;if(!_0x31b21f['isBlock'](_0x148e3e['item'])||_0x31b21f['isLimit'](_0x148e3e['item']))continue;if(!_0x31b21f['isBlock'](_0x22b8ee['item'])||_0x31b21f['isLimit'](_0x22b8ee['item']))continue;if((_0x36a3d5[_0x47c784]['isAdded']||_0x36a3d5[_0x47c784]['isAddSuggestion'])&&_0x36a3d5[_0x47c784-0x1]['isRemoved'])_0x354587=_0x36a3d5[_0x47c784],_0xa8d9c0=_0x36a3d5[_0x47c784-0x1],_0x4a2346=_0x47c784-0x1;else{if(!_0x36a3d5[_0x47c784]['isRemoved']||!_0x36a3d5[_0x47c784-0x1]['isAdded']&&!_0x36a3d5[_0x47c784-0x1]['isAddSuggestion'])continue;_0x354587=_0x36a3d5[_0x47c784-0x1],_0xa8d9c0=_0x36a3d5[_0x47c784],_0x4a2346=_0x47c784;}const _0x383922=_0x354587['level']==_0xa8d9c0['level'],_0x11fb4d=Math['abs'](_0x354587['level'])<Math['abs'](_0xa8d9c0['level'])&&0x0==_0xa8d9c0['distance'];(_0x383922||_0x11fb4d)&&(_0x31bdd1['set'](_0xa8d9c0['id'],_0x354587['id']),_0x36a3d5['splice'](_0x4a2346,0x1),_0x47c784--,_0x354587['isAdded']=!0x1);}for(let _0x1b1eae=0x0;_0x1b1eae<_0x36a3d5['length'];_0x1b1eae++)_0x31bdd1['has'](_0x36a3d5[_0x1b1eae]['pairId'])&&(_0x36a3d5[_0x1b1eae]['pairId']=_0x31bdd1['get'](_0x36a3d5[_0x1b1eae]['pairId']));}['_removeMissingPairs'](_0x4a3491){const _0x2896c7=new Set(_0x4a3491['map'](_0x3f548a=>_0x3f548a['id']));for(let _0x41a66f=0x0;_0x41a66f<_0x4a3491['length'];_0x41a66f++)_0x2896c7['has'](_0x4a3491[_0x41a66f]['pairId'])||0x0==_0x4a3491[_0x41a66f]['distance']||(_0x4a3491[_0x41a66f]['isIncorrect']=!0x0);return _0x4a3491['filter'](_0x372b2=>!_0x372b2['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2ee135){const _0x5f2473=new Set();for(let _0x453601=0x0;_0x453601<_0x2ee135['length'];_0x453601++){if(_0x5f2473['has'](_0x2ee135[_0x453601]['id'])&&_0x2ee135[_0x453601]['isRemoved']&&(_0x2ee135[_0x453601]['isIncorrect']=!0x0),_0x2ee135[_0x453601]['isIncorrect'])continue;if(0x0==_0x2ee135[_0x453601]['distance'])continue;if('elementStart'!=_0x2ee135[_0x453601]['type'])continue;if(null==_0x2ee135[_0x453601]['pairId'])continue;let _0x541d41=_0x453601+0x1,_0x15bc51=0x0;for(;_0x2ee135[_0x541d41]['id']!=_0x2ee135[_0x453601]['pairId'];)'elementStart'==_0x2ee135[_0x541d41]['type']?_0x15bc51++:'elementEnd'==_0x2ee135[_0x541d41]['type']&&_0x15bc51--,_0x541d41++;if(0x0!=_0x15bc51){if(_0x2ee135[_0x453601]['isRemoved'])_0x2ee135[_0x453601]['isIncorrect']=!0x0;else{for(;_0x541d41!=_0x453601;)_0x2ee135[_0x541d41]['isRemoved']&&0x0!=_0x2ee135[_0x541d41]['distance']&&(_0x2ee135[_0x541d41]['isIncorrect']=!0x0,_0x5f2473['add'](_0x2ee135[_0x541d41]['pairId'])),_0x541d41--;}}}return _0x2ee135['filter'](_0x38576d=>!_0x38576d['isIncorrect']);}['_removeUnsupportedChanges'](_0x11c2db){const _0x3c1434=this['editor']['model']['schema'];for(let _0x1fc038=0x0;_0x1fc038<_0x11c2db['length'];_0x1fc038++){if(!(_0x11c2db[_0x1fc038]['isAdded']||_0x11c2db[_0x1fc038]['isAddSuggestion']||_0x11c2db[_0x1fc038]['isRemoved']||_0x11c2db[_0x1fc038]['isRemoveSuggestion']))continue;if(0x0==_0x11c2db[_0x1fc038]['distance'])continue;const _0xdd7183=_0x11c2db[_0x1fc038]['item'];_0x3c1434['isBlock'](_0xdd7183)||_0x3c1434['isLimit'](_0xdd7183)||(_0x11c2db[_0x1fc038]['isAdded']&&delete _0x11c2db[_0x1fc038]['isAdded'],_0x11c2db[_0x1fc038]['isAddSuggestion']&&delete _0x11c2db[_0x1fc038]['isAddSuggestion'],_0x11c2db[_0x1fc038]['isRemoveSuggestion']&&delete _0x11c2db[_0x1fc038]['isRemoveSuggestion'],_0x11c2db[_0x1fc038]['isRemoved']&&(_0x11c2db[_0x1fc038]['isIncorrect']=!0x0));}return _0x11c2db['filter'](_0x74cfbd=>!_0x74cfbd['isIncorrect']);}['_makeModelFromTape'](_0x28abfd,_0x2090db,_0xf63ae7){const _0x1bb742=new _0x3dd335(),_0x4790e1=[],_0x5ea791=new Map(),_0x2c3549=this['editor']['model'],_0x1cb17c=_0x2c3549['schema'],_0x4775e1=[_0x1bb742],_0x2dfd1a={},_0x3ba9dd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2e39b9=null;const _0x2d7ca3=[0x0];for(let _0x56af83=0x0;_0x56af83<_0x28abfd['length'];_0x56af83++)if('elementStart'===_0x28abfd[_0x56af83]['type']){_0x28abfd[_0x56af83]['previousPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3);const _0x5df8d4=new _0x1b3786(_0x28abfd[_0x56af83]['item']['name'],_0x28abfd[_0x56af83]['item']['getAttributes']());_0x4775e1[0x0]['_appendChild'](_0x5df8d4),_0x2d7ca3['push'](0x0),_0x4775e1['unshift'](_0x5df8d4),_0x28abfd[_0x56af83]['nextPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3);}else'elementEnd'===_0x28abfd[_0x56af83]['type']?(_0x4775e1['shift'](),_0x28abfd[_0x56af83]['previousPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3),_0x2d7ca3['pop'](),_0x2d7ca3[_0x2d7ca3['length']-0x1]++,_0x28abfd[_0x56af83]['nextPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3)):(_0x28abfd[_0x56af83]['previousPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3),_0x2e39b9?_0x2e39b9['_data']+=_0x28abfd[_0x56af83]['item']['data']:_0x2e39b9=new _0x6ac09e(_0x28abfd[_0x56af83]['item']['data'],_0x28abfd[_0x56af83]['item']['getAttributes']()),_0x28abfd[_0x56af83+0x1]&&'text'===_0x28abfd[_0x56af83+0x1]['type']&&_0x5d6577(_0x2e39b9,_0x28abfd[_0x56af83+0x1]['item'])||(_0x4775e1[0x0]['_appendChild'](_0x2e39b9),_0x2e39b9=null),_0x2d7ca3[_0x2d7ca3['length']-0x1]+=_0x28abfd[_0x56af83]['item']['offsetSize'],_0x28abfd[_0x56af83]['nextPosition']=_0x2c3549['createPositionFromPath'](_0x1bb742,_0x2d7ca3));for(let _0x336b78=0x0;_0x336b78<_0x28abfd['length'];_0x336b78++){const _0x218242=_0x28abfd[_0x336b78]['previousPosition'],_0x5f0373=_0x28abfd[_0x336b78]['nextPosition'];for(const _0x1a8fc6 of _0x28abfd[_0x336b78]['markersStart'])_0x5ea791['set'](_0x1a8fc6,{'start':_0x218242,'end':null});_0x326173('isRemoveSuggestion',_0x336b78,_0x218242,_0x5f0373),_0x326173('isAddSuggestion',_0x336b78,_0x218242,_0x5f0373),_0x326173('isRemoved',_0x336b78,_0x218242,_0x5f0373),_0x326173('isAdded',_0x336b78,_0x218242,_0x5f0373);for(const _0x3c0818 of _0x28abfd[_0x336b78]['markersEnd']){const _0x1e7e62=_0x5ea791['get'](_0x3c0818);_0x1e7e62?_0x1e7e62['end']=_0x5f0373:_0x5ea791['set'](_0x3c0818,{'start':_0x5f0373,'end':_0x5f0373});}}for(const [_0x2e10a1,_0x5caba6]of _0x5ea791){const _0x1b1519=this['editor']['model']['createRange'](_0x5caba6['start'],_0x5caba6['end']);_0x1bb742['markers']['set'](_0x2e10a1,_0x1b1519);}return _0x4790e1['sort']((_0x3a4eda,_0x30777d)=>{const _0x512e36=_0x1bb742['markers']['get']('revision:'+_0x3a4eda['id']),_0x48ca6e=_0x1bb742['markers']['get']('revision:'+_0x30777d['id']);return _0x512e36['start']['isBefore'](_0x48ca6e['start'])?-0x1:_0x512e36['start']['isAfter'](_0x48ca6e['start'])?0x1:_0x512e36['end']['isBefore'](_0x48ca6e['end'])?-0x1:_0x512e36['end']['isAfter'](_0x48ca6e['end'])?0x1:'add'===_0x3a4eda['type']?-0x1:0x1;}),{'root':_0x1bb742,'changes':_0x4790e1};function _0x326173(_0x221462,_0x36361a,_0x1942e6,_0x5dce60){const _0x45bf84=!!_0x28abfd[_0x36361a][_0x221462],_0x5e839d=_0x45bf84?_0x28abfd[_0x36361a][_0x221462]['userId']:null,_0x219648=_0x36361a===_0x28abfd['length']-0x1,_0x39ac89=_0x3ba9dd[_0x221462][0x0],_0x1b8333=_0x1cb17c['isObject'](_0x28abfd[_0x36361a]['item']);!_0x2dfd1a[_0x221462]&&_0x45bf84?_0x2dfd1a[_0x221462]={'start':_0x1942e6,'tapeItem':_0x28abfd[_0x36361a],'userId':_0x5e839d,'type':_0x221462}:_0x2dfd1a[_0x221462]&&!_0x45bf84?(_0x2dfd1a[_0x221462]['end']=_0x1942e6,_0x3ce239(_0x2dfd1a[_0x221462]),_0x2dfd1a[_0x221462]=null):_0x2dfd1a[_0x221462]&&_0x45bf84&&_0x2dfd1a[_0x221462]['userId']!==_0x5e839d&&(_0x2dfd1a[_0x221462]['end']=_0x1942e6,_0x39ac89&&_0x39ac89['userId']===_0x2dfd1a[_0x221462]['userId']||_0x3ce239(_0x2dfd1a[_0x221462]),_0x2dfd1a[_0x221462]={'start':_0x1942e6,'tapeItem':_0x28abfd[_0x36361a],'userId':_0x5e839d,'type':_0x221462}),_0x2dfd1a[_0x221462]&&_0x1b8333&&('elementStart'!==_0x28abfd[_0x36361a]['type']||_0x39ac89&&_0x39ac89['userId']===_0x5e839d||_0x3ba9dd[_0x221462]['unshift']({'userId':_0x5e839d,'object':_0x28abfd[_0x36361a]['item'],'change':_0x2dfd1a[_0x221462]}),'elementEnd'===_0x28abfd[_0x36361a]['type']&&_0x39ac89&&_0x39ac89['object']===_0x28abfd[_0x36361a]['item']&&(_0x3ba9dd[_0x221462]['shift'](),_0x2dfd1a[_0x221462]=_0x39ac89['change'])),_0x2dfd1a[_0x221462]&&_0x219648&&(_0x2dfd1a[_0x221462]['end']=_0x5dce60,_0x3ce239(_0x2dfd1a[_0x221462]),_0x2dfd1a[_0x221462]=null);}function _0x3ce239({start:_0x556310,end:_0x4e5052,tapeItem:_0xe6fd77,userId:_0x20b6e9,type:_0x2c2881}){const _0x5cead4=_0xe6fd77['item'],_0x313d36=_0x2c3549['schema']['isBlock'](_0x5cead4)&&!_0x2c3549['schema']['isLimit'](_0x5cead4),_0x2c5061=_0x556310['nodeAfter']==_0x4e5052['parent']&&_0x4e5052['isAtStart'];if(_0x313d36&&_0x2c5061)return;const _0x32fda7=_0x2c3549['createRange'](_0x556310,_0x4e5052),_0x4d87de=_0x2090db['get'](_0x20b6e9),_0x3748e2=new G({'author':_0x4d87de,'type':'isAdded'==_0x2c2881||'isAddSuggestion'==_0x2c2881?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2c2881||'isRemoveSuggestion'==_0x2c2881},'createdAt':new Date(),'rootName':_0xf63ae7});_0x4790e1['push'](_0x3748e2),_0x1bb742['markers']['set']('revision:'+_0x3748e2['id'],_0x32fda7);}function _0x5d6577(_0x1730df,_0x4f3e3f){const _0x23d45b=_0x1730df['getAttributes'](),_0x27c339=_0x4f3e3f['getAttributes']();for(const _0x3120bd of _0x23d45b){if(_0x3120bd[0x1]!==_0x4f3e3f['getAttribute'](_0x3120bd[0x0]))return!0x1;_0x27c339['next']();}return _0x27c339['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x41ee0=>{const _0x20a9f7=_0x41ee0['markerName']['split'](':')[0x1],_0x5685ed=this['_getChangeFromId'](_0x20a9f7);if(!_0x5685ed)return null;const _0x46af7c='add'==_0x5685ed['type']?'insertion':'deletion',_0x599602=['ck-suggestion-marker','ck-suggestion-marker-'+_0x46af7c];return _0x5685ed['data']['isSuggestion']&&_0x599602['push']('ck-suggestion-marker-'+_0x46af7c+'-new'),this['activeChange']==_0x5685ed&&_0x599602['push']('ck-suggestion-marker--active'),{'classes':_0x599602,'attributes':{'data-change-id':_0x20a9f7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x12d2c9=>{_0x12d2c9['on']('element:pre',(_0x57ea0f,_0x21494a,_0x55ff7a)=>{const _0x20e324=_0x21494a['viewItem']['getChild'](0x0);if(!_0x20e324||!_0x20e324['is']('element','code'))return;if(!_0x55ff7a['consumable']['consume'](_0x20e324,{'attributes':['vid_start','vid_end']}))return;const _0x5ac751=_0x21494a['modelRange']['start']['nodeAfter'];_0x55ff7a['writer']['setAttribute']('vid_start',_0x20e324['getAttribute']('vid_start'),_0x5ac751),_0x55ff7a['writer']['setAttribute']('vid_end',_0x20e324['getAttribute']('vid_end'),_0x5ac751);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x411339=>{_0x411339['on']('element',(_0x1a9366,_0x5620fd,_0x5b2c2f)=>{if(!_0x5b2c2f['consumable']['consume'](_0x5620fd['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5620fd['modelRange']['isCollapsed'])return;const _0x33546b=_0x5620fd['modelRange']['start']['nodeAfter'];_0x33546b['hasAttribute']('vid_start')||_0x33546b['hasAttribute']('vid')||(_0x5b2c2f['writer']['setAttribute']('vid_start',_0x5620fd['viewItem']['getAttribute']('vid_start'),_0x33546b),_0x5b2c2f['writer']['setAttribute']('vid_end',_0x5620fd['viewItem']['getAttribute']('vid_end'),_0x33546b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x267e8c=>_0x267e8c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x17ff96,[,_0x25e6d8])=>{['vid_start','vid_end','vid']['includes'](_0x25e6d8)&&(_0x17ff96['return']=!0x0,_0x17ff96['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xedabec=>{_0xedabec['on']('attribute:vid',(_0x57c768,_0x16e2d8,_0x597ce2)=>{if('\x20'!=_0x16e2d8['item']['data']||_0x16e2d8['item']['parent']['maxOffset']>0x1)return;if(!_0x597ce2['consumable']['consume'](_0x16e2d8['item'],_0x57c768['name']))return;const _0x279d0a=_0x597ce2['writer'],_0x586810=_0x597ce2['mapper']['toViewRange'](_0x16e2d8['range']);_0x279d0a['wrap'](_0x586810,_0x279d0a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x153d70){const _0x65a1fb=_0x153d70['plugins']['get']('RevisionViewer');return(_0x524e7d,_0x30aa6c,_0x430fff)=>{const _0x378d97=_0x30aa6c['markerName']['split'](':')[0x1],_0x384b90=_0x65a1fb['_getChangeFromId'](_0x378d97);if(!_0x384b90)return null;const _0x50079f='add'==_0x384b90['type']?'split':'merge';if(!_0x430fff['consumable']['test'](_0x30aa6c['markerRange'],_0x524e7d['name']))return;const _0x39892e=_0x30aa6c['markerRange']['getWalker'](),_0x1739fb=_0x30aa6c['markerRange']['start'],_0x4c6ea8=_0x153d70['model']['schema'];let _0x2d8790=null,_0x182289=null,_0x1703d4=!0x1,_0x572b45=!0x1;for(const _0x56e2f0 of _0x39892e){const _0x1b8704=_0x56e2f0['item'];_0x1703d4=_0x1703d4||_0x4c6ea8['isContent'](_0x1b8704);const _0x55bdfc=_0x430fff['mapper']['toViewElement'](_0x1b8704);if(_0x55bdfc&&_0x55bdfc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56e2f0['type']&&(_0x4c6ea8['isBlock'](_0x1b8704)&&!_0x4c6ea8['isLimit'](_0x1b8704)&&(_0x1b8704['nextSibling']||_0x1739fb['isAtEnd']?_0x2d8790&&_0x2d8790['parent']==_0x1b8704||(_0x2d8790=_0x1b8704,_0x456161(_0x56e2f0['previousPosition']),_0x572b45=!0x0):_0x182289=_0x182289||_0x56e2f0['previousPosition']));}function _0x456161(_0x33bd85){const _0x352148=_0x430fff['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50079f}),_0x57b0e7=_0x430fff['mapper']['toViewPosition'](_0x33bd85);_0x384b90['data']['isSuggestion']&&_0x430fff['writer']['addClass']('ck-suggestion-marker-'+_0x50079f+'-new',_0x352148),_0x65a1fb['activeChange']==_0x384b90&&_0x430fff['writer']['addClass']('ck-suggestion-marker--active',_0x352148),_0x430fff['writer']['insert'](_0x57b0e7,_0x352148),_0x430fff['mapper']['bindElementToMarker'](_0x352148,_0x30aa6c['markerName']);}_0x1703d4||_0x572b45||!_0x182289||_0x456161(_0x182289);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x349431,_0x256ab3,_0x5454c3)=>{const _0x412edc=_0x5454c3['mapper']['markerNameToElements'](_0x256ab3['markerName']);if(_0x412edc){for(const _0xd32b51 of _0x412edc)(_0xd32b51['hasClass']('ck-suggestion-marker-split')||_0xd32b51['hasClass']('ck-suggestion-marker-merge'))&&(_0x5454c3['mapper']['unbindElementFromMarkerName'](_0xd32b51,_0x256ab3['markerName']),_0x5454c3['writer']['remove'](_0xd32b51));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x37a1a9,_0x36a6f8,_0x2d2d71)=>{const _0x546c11=_0x36a6f8['markerName']['split'](':')[0x1],_0x1f858f=this['_getChangeFromId'](_0x546c11);if(!_0x1f858f)return null;const _0x569bb2='add'==_0x1f858f['type']?'split':'merge';if(_0x2d2d71['consumable']['test'](_0x36a6f8['markerRange'],_0x37a1a9['name']))for(const _0x26fe0a of _0x36a6f8['markerRange']['getItems']()){if(!_0x26fe0a['is']('element','softBreak'))continue;const _0x5c029f=_0x2d2d71['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x569bb2}),_0x3a4949=_0x2d2d71['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x26fe0a));_0x1f858f['data']['isSuggestion']&&_0x2d2d71['writer']['addClass']('ck-suggestion-marker-'+_0x569bb2+'-new',_0x5c029f),this['activeChange']==_0x1f858f&&_0x2d2d71['writer']['addClass']('ck-suggestion-marker--active',_0x5c029f),_0x2d2d71['writer']['insert'](_0x3a4949,_0x5c029f),_0x2d2d71['mapper']['bindElementToMarker'](_0x5c029f,_0x36a6f8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2a9ed5=>{for(const _0x9f50c2 of this['editor']['model']['document']['getRootNames']()){const _0xe1d7b2=this['editor']['model']['document']['getRoot'](_0x9f50c2),_0x517536=this['editor']['editing']['view']['document']['getRoot'](_0x9f50c2);if(_0x517536){const _0x150f6b=_0xe1d7b2['getAttribute']('revisionHistoryAttachChange');if(_0x2a9ed5['removeAttribute']('data-change-id',_0x517536),_0x2a9ed5['removeClass']('ck-revision-history-root-add',_0x517536),_0x2a9ed5['removeClass']('ck-revision-history-root-remove',_0x517536),_0x2a9ed5['removeClass']('ck-revision-history-root--active',_0x517536),_0x150f6b){const _0x42628e=this['_getChangeFromId'](_0x150f6b);if(!_0x42628e)return null;_0x2a9ed5['setAttribute']('data-change-id',_0x150f6b,_0x517536),_0x2a9ed5['addClass']('ck-revision-history-root-'+_0x42628e['type'],_0x517536),this['activeChange']==_0x42628e&&_0x2a9ed5['addClass']('ck-revision-history-root--active',_0x517536);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x403909=>'revision-comment:'+_0x403909,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4c90d1=>'revision-suggestion:'+_0x4c90d1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x38fd65=>({'name':'suggestion:'+_0x38fd65,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x927df7=>{const _0x553e11=_0x927df7['markerName']['split'](':')[0x1];return'insertion'!=_0x553e11&&'deletion'!=_0x553e11?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x553e11]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x57bc6b,_0x43d3e2,_0x43c452)=>{const _0x8c5b4d=_0x43c452['mapper']['markerNameToElements'](_0x43d3e2['markerName']);if(_0x8c5b4d){for(const _0x1cd2bf of _0x8c5b4d)_0x1cd2bf['is']('uiElement')&&(_0x43c452['mapper']['unbindElementFromMarkerName'](_0x1cd2bf,_0x43d3e2['markerName']),_0x43c452['writer']['remove'](_0x1cd2bf));}},{'priority':'high'});}['_getChangeFromId'](_0x3e23a2){return this['_changeIdToChange']['get'](_0x3e23a2);}['_getViewForChange'](_0x281c85){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x281c85),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x541ec1,_0x4f9ecb,_0x2125bb,_0x2f98f4)=>{_0x2f98f4&&this['_balloon']['remove'](_0x2f98f4),_0x2125bb&&(this['_balloon']['add']({'view':_0x2125bb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x366736=this['editor']['editing'],_0x3c0864=this['_getChangeFromId'](_0x2125bb['changeId']);let _0x4ee771;if(_0x3c0864['data']['isOnRoot']){const _0x114bac=_0x366736['view']['getDomRoot'](_0x3c0864['rootName']);_0x4ee771=Array['from'](_0x114bac['getClientRects']());}else{const _0x4f48de=this['editor']['model']['markers']['get']('revision:'+_0x2125bb['changeId']);_0x4ee771=Array['from'](_0x366736['mapper']['markerNameToElements'](_0x4f48de['name']))['map'](_0x1581ea=>_0x366736['view']['domConverter']['mapViewToDom'](_0x1581ea))['map'](_0x58c8df=>Array['from'](_0x58c8df['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4ee771[0x0];return _0x4ee771['find'](_0x113e4e=>_0x113e4e['top']-0x3<=this['_activeViewTarget']['y']&&_0x113e4e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x113e4e['left']-0x3<=this['_activeViewTarget']['x']&&_0x113e4e['right']+0x3>=this['_activeViewTarget']['x'])||_0x4ee771[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x28cba3,_0x4325c9,_0x54d777,_0x4dcd67)=>{this['activeView']=_0x54d777?this['_getViewForChange'](_0x54d777):null,this['editor']['model']['change'](()=>{const _0xe4c76c=this['editor']['editing'];_0x4dcd67&&(_0x4dcd67['data']['isOnRoot']?_0xe4c76c['view']['change'](_0x4207fd=>{_0x4207fd['removeClass']('ck-revision-history-root--active',_0xe4c76c['view']['document']['getRoot'](_0x4dcd67['rootName']));}):_0xe4c76c['reconvertMarker']('revision:'+_0x4dcd67['id'])),_0x54d777&&(_0x54d777['data']['isOnRoot']?_0xe4c76c['view']['change'](_0x2b50d9=>{_0x2b50d9['addClass']('ck-revision-history-root--active',_0xe4c76c['view']['document']['getRoot'](_0x54d777['rootName']));}):_0xe4c76c['reconvertMarker']('revision:'+_0x54d777['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x120c33,_0x23ddc8)=>{if(this['activeChange'])return;const _0x2c9bc2=this['_findChangeIdFromDomTarget'](_0x23ddc8['target']),_0x1b32ab=this['_changeIdToChange']['get'](_0x2c9bc2);_0x1b32ab?(this['_activeViewTarget']={'x':_0x23ddc8['domEvent']['x'],'y':_0x23ddc8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1b32ab)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x18f5aa,_0xa079f4)=>{const _0x5b0494=this['_findChangeIdFromDomTarget'](_0xa079f4['target']),_0x9246dc=this['_changeIdToChange']['get'](_0x5b0494);_0x9246dc?(this['_activeViewTarget']={'x':_0xa079f4['domEvent']['x'],'y':_0xa079f4['domEvent']['y']},_0x9246dc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x9246dc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d537a){do{const _0x24df98=_0x1d537a['getAttribute']('data-change-id');if(_0x24df98)return _0x24df98;_0x1d537a=_0x1d537a['parent'];}while(_0x1d537a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1f2060=>{for(const _0x142ccd of this['editor']['model']['markers'])_0x1f2060['removeMarker'](_0x142ccd);});}}function Q(_0xca215b,_0x323476){return(_0x25e393,_0x9123d0,_0x14f69f)=>{if(!_0x14f69f['consumable']['test'](_0x9123d0['markerRange'],_0x25e393['name']))return;const _0x12d33f=_0x9123d0['markerRange']['getWalker'](),_0x5b6b34=_0x9123d0['markerRange']['start'],_0x3c4005=_0xca215b['model']['schema'];let _0x6f7ebd=null,_0x2e613d=null,_0x18f95e=!0x1,_0xc6c171=!0x1;for(const _0x412618 of _0x12d33f){const _0x501905=_0x412618['item'];_0x18f95e=_0x18f95e||_0x3c4005['isContent'](_0x501905);const _0x15306e=_0x14f69f['mapper']['toViewElement'](_0x501905);if(_0x15306e&&_0x15306e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x412618['type']&&(_0x3c4005['isBlock'](_0x501905)&&!_0x3c4005['isLimit'](_0x501905)&&(_0x501905['nextSibling']||_0x5b6b34['isAtEnd']?_0x6f7ebd&&_0x6f7ebd['parent']==_0x501905||(_0x6f7ebd=_0x501905,_0x4850d2(_0x412618['previousPosition']),_0xc6c171=!0x0):_0x2e613d=_0x2e613d||_0x412618['previousPosition']));}function _0x4850d2(_0x22a70e){const _0x29cc46=_0x14f69f['mapper']['toViewPosition'](_0x22a70e),_0x1915c3=_0x14f69f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x323476});_0x14f69f['writer']['insert'](_0x29cc46,_0x1915c3),_0x14f69f['mapper']['bindElementToMarker'](_0x1915c3,_0x9123d0['markerName']);}_0x18f95e||_0xc6c171||!_0x2e613d||_0x4850d2(_0x2e613d);};}class nt extends _0x22d940{constructor(_0x35aed5){super(_0x35aed5);const _0x4a1264=_0x35aed5['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4a1264,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4a1264,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2126c5=this['editor'],_0x471815=_0x2126c5['plugins']['get'](l),_0x11ec69=_0x471815['isReady']?_0x471815['diff']['newRevisionId']:null;_0x2126c5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x11ec69);}['refresh'](){const {isReady:_0xbb0026,isEnabled:_0x4a641a,repository:_0x2f5e05,diff:_0x4a6bbc}=this['editor']['plugins']['get'](l),_0x49881f=_0x4a6bbc&&_0x2f5e05['getLaterVisibleRevision'](_0x4a6bbc['newRevisionId']);this['isEnabled']=_0xbb0026&&_0x4a641a&&Boolean(_0x49881f);}}class rt extends _0x22d940{['_step'];constructor(_0x399cc0,{direction:_0x5c9ba6}){super(_0x399cc0);const _0x354f58=_0x399cc0['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x5c9ba6?0x1:-0x1,this['listenTo'](_0x354f58,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x354f58,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x354f58,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2de549=this['editor'],_0x484099=_0x2de549['plugins']['get'](l),{isNavigationMode:_0x4eaf94,currentChangeNumber:_0x27725e}=_0x484099;let _0x264479;if(_0x484099['activeChange']=_0x4eaf94?_0x484099['diff']['changes']['get'](_0x27725e+this['_step']):_0x484099['diff']['changes']['first'],_0x484099['activeChange']['data']['isOnRoot'])_0x264479=_0x2de549['editing']['view']['getDomRoot'](_0x484099['activeChange']['rootName']);else{const _0x7cb558=_0x2de549['model']['markers']['get']('revision:'+_0x484099['activeChange']['id']);_0x264479=_0x201b04(_0x2de549['editing'],_0x7cb558);}_0x100974({'target':_0x264479,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4257fb,currentChangeNumber:_0x49a694,numberOfChanges:_0xaae9fe,isReady:_0x3f6e75,isEnabled:_0x18e9de}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x18e9de&&_0x3f6e75&&_0xaae9fe)&&(!_0x4257fb||(0x1===this['_step']?_0x49a694<_0xaae9fe-0x1:_0x49a694>0x0));}}class Ri extends _0x515a02{constructor(_0x4aa680){super(_0x4aa680);const _0x39a964=this['bindTemplate'],_0xf49fe1=new _0x5f0d38(_0x4aa680),_0x1b8831=new _0x5f0d38(_0x4aa680);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',(_0xd0ce61,_0x10f89d)=>_0xd0ce61&&_0x10f89d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x48950d,_0x3cbb88,_0x53e62b,_0x30c2b5)=>{if(!_0x48950d)return R(_0x4aa680,'Loading...');if(!_0x53e62b)return R(_0x4aa680,'No\x20changes');const _0x3861b2=R(_0x4aa680,'NUMBER_OF_CHANGES',_0x53e62b);return _0x30c2b5?R(_0x4aa680,'X_OF_Y_CHANGES',[_0x3cbb88+0x1,_0x53e62b]):_0x3861b2;}),_0xf49fe1['set']({'label':R(_0x4aa680,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3373fb}),_0x1b8831['set']({'label':R(_0x4aa680,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x282b42}),_0xf49fe1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1b8831['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xf49fe1['on']('execute',()=>this['fire']('execute','backward')),_0x1b8831['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',_0x39a964['if']('_isStatusLabelVisible','ck-hidden',_0x54e318=>!_0x54e318)]},'children':[{'text':_0x39a964['to']('isNavigationMode',_0x51e843=>_0x51e843?R(_0x4aa680,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4aa680,'Total')+':\x20')}]},{'text':_0x39a964['to']('_statusText')}]},new _0x10326d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xf49fe1,_0x1b8831]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x2613d1{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x16cc7f=this['editor']['editing']['view'];_0x16cc7f['change'](_0x3e7a32=>{for(const _0x58e7f5 of _0x16cc7f['document']['roots'])_0x3e7a32['addClass'](ge,_0x58e7f5);});}['hide'](){const _0x5cb98c=this['editor']['editing']['view'];_0x5cb98c['change'](_0x126b71=>{for(const _0x4dbc13 of _0x5cb98c['document']['roots'])_0x126b71['removeClass'](ge,_0x4dbc13);});}}class u extends _0x2613d1{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x56795a=this['editor'],_0x2ebfec=_0x56795a['plugins']['get'](l),_0x421f00=_0x56795a['plugins']['get'](ji);_0x56795a['ui']['componentFactory']['add']('exitToEditing',_0x268db9=>{const _0x4a95b9=new _0x5f0d38(_0x268db9);return _0x4a95b9['set']({'label':R(_0x268db9,'Back\x20to\x20editing'),'icon':_0x5ecd83,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4a95b9,'execute',()=>{_0x56795a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4a95b9;}),_0x56795a['ui']['componentFactory']['add']('restoreRevision',_0x59df95=>{const _0x2e043d=new _0x5f0d38(_0x59df95);return _0x2e043d['set']({'label':R(_0x59df95,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2e043d['bind']('isEnabled')['to'](_0x56795a['commands']['get']('restoreRevision')),this['listenTo'](_0x2e043d,'execute',()=>_0x56795a['execute']('restoreRevision')),_0x2e043d;}),_0x56795a['ui']['componentFactory']['add']('changesNavigation',_0x15a8e6=>{const _0xf7e425=new Ri(_0x15a8e6),_0x153d3b=_0x56795a['commands']['get']('showPreviousChange'),_0x46703f=_0x56795a['commands']['get']('showNextChange');return _0xf7e425['bind']('isBackwardNavigationEnabled')['to'](_0x153d3b,'isEnabled'),_0xf7e425['bind']('isForwardNavigationEnabled')['to'](_0x46703f,'isEnabled'),_0xf7e425['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2ebfec),this['listenTo'](_0xf7e425,'execute',(_0x3f78fe,_0x14d92b)=>{_0x56795a['execute']('forward'===_0x14d92b?'showNextChange':'showPreviousChange');}),_0xf7e425;}),_0x421f00['show'](),_0x2ebfec['on']('change:isReady',(_0x5b5249,_0x3e531e,_0x5b7030)=>{_0x5b7030?_0x421f00['hide']():_0x421f00['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x44a39c,_0x41e71b){super(_0x44a39c,_0x41e71b);const _0x4b400d=this['bindTemplate'];this['set']({'label':R(_0x44a39c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x44a39c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4b400d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2aa88d=this['fieldView']['element'];this['_tooltipString']=_0x2aa88d['scrollWidth']>_0x2aa88d['clientWidth']&&_0x2aa88d['value']||'';}}class ni extends _0x515a02{constructor(_0x20891b,_0x95666b,_0x48e3bf){super(_0x20891b);const _0x3928c0=new _0x753fee();_0x3928c0['set']({'content':_0x3e744d,'viewBox':'0\x200\x2011\x2010'});const _0xfdc364=['ck','ck-revision-history-sidebar__revision-author'];_0x48e3bf&&_0xfdc364['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4ff3b9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x20891b,_0x48e3bf?'Revision\x20creator':'Revision\x20author')},'children':[_0x3928c0,_0x95666b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xfdc364},'children':_0x4ff3b9});}}function ci(_0x1d7d4c,_0x1ef548){const _0x59d47f=_0x1d7d4c['bindTemplate'],_0x14cc9f=_0x1d7d4c['locale'],_0x4cbb8d=_0x1d18c2(_0x14cc9f);_0x4cbb8d['panelPosition']='sw';const _0x55cb65=function(_0x2257b7,_0xe5b45f){const _0x2baf1e=function(_0x261b38,_0x14b815){const _0x39c343=_0x261b38['locale'],_0x3d86ee={'Compare\x20against\x20selected':R(_0x39c343,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x39c343,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x39c343,'Restore\x20this\x20revision')};return _0x14b815['map'](_0x3ad0f1=>{const _0x1f5a28=_0x3d86ee[_0x3ad0f1['name']];return _0x1f5a28&&_0x1f5a28!==_0x3ad0f1['name']&&(_0x3ad0f1['name']=_0x1f5a28),_0x3ad0f1;});}(_0x2257b7,_0xe5b45f),_0x34f8a9=new _0x44d325();for(const _0x25a5bd of _0x2baf1e){const _0x51ebb2={'type':'button','model':new to({'label':_0x25a5bd['name'],'class':_0x25a5bd['class'],'withText':!0x0,'role':'menuitem','_action':_0x25a5bd['action']})};_0x51ebb2['model']['bind']('isEnabled')['to'](_0x2257b7,'isActionsDropdownOpen',_0x14c3a4=>'function'!=typeof _0x25a5bd['isEnabled']||(!_0x14c3a4||_0x25a5bd['isEnabled'](_0x2257b7))),_0x34f8a9['add'](_0x51ebb2);}return _0x34f8a9;}(_0x1d7d4c,_0x1ef548);return _0x1d7d4c['bind']('isActionsDropdownOpen')['to'](_0x4cbb8d,'isOpen'),_0x4cbb8d['buttonView']['set']({'label':R(_0x14cc9f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x384d3b}),_0x4cbb8d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x59d47f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x59d47f['to'](_0x1043f9=>_0x1043f9['stopPropagation']())}}),_0x4cbb8d['on']('execute',_0x4cbe76=>{_0x1d7d4c['isReady']&&'function'==typeof _0x4cbe76['source']['_action']&&_0x4cbe76['source']['_action'](_0x1d7d4c);}),_0x27a0f2(_0x4cbb8d,_0x55cb65,{'role':'menu'}),_0x4cbb8d['listenTo'](_0x1d7d4c,'change:isActionsDropdownOpen',(_0x2ec122,_0x4d5eb8,_0x1f8bee)=>{if(_0x1f8bee)for(const _0x53ce9a of _0x4cbb8d['listView']['items']){const _0xccb61d=_0x53ce9a['children']['first'],_0x58d62f=_0x1ef548['find'](_0x512aab=>_0x512aab['action']===_0xccb61d['_action'])['isVisible'];_0x53ce9a['isVisible']=void 0x0===_0x58d62f||_0x58d62f(_0x1d7d4c);}}),_0x4cbb8d;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x4cf817,uid as _0x2e3833,Collection as _0x582366,logWarning as _0x4a5fa7,FocusTracker as _0x5a66a4,KeystrokeHandler as _0x502a61,scrollViewportToShowTarget as _0x93ca32,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x5b405a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x54a4cf,set as _0x186274,unset as _0xa62119,isEqual as _0x2c2075}from'es-toolkit/compat';import{Plugin as _0x206761,PendingActions as _0x433f80,Command as _0x9b7732,ElementApiMixin as _0x6da969,Editor as _0x1dbe48}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x332373,getMarkerDomElement as _0x4a4dd7,ConfirmMixin as _0x4094e4,sanitizeEditorConfig as _0x44a695}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x174479,ViewAttributeElement as _0x48751a,ViewEmptyElement as _0x25aa12,ViewRawElement as _0x53f5b3,ViewUIElement as _0x552fbb,ViewDocumentFragment as _0x119f0d,ViewText as _0xf2d502,ViewElement as _0x1c5ce9,ModelElement as _0x52ff73,ModelRange as _0x29c26e,ModelPosition as _0x2daffe,ModelDocumentFragment as _0x59ddab,ModelText as _0x46b396}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0xc29cc8,IconChevronUp as _0x44f5fd,IconChevronDown as _0x53eab1,IconUndo as _0x34e4bb,IconUser as _0x1932fe,IconThreeVerticalDots as _0x5212b9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x287489,View as _0x536e3a,submitHandler as _0x189d84,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x89cc31,ListView as _0x397152,ListItemView as _0xd75d51,ButtonView as _0x3e37e6,MenuBarMenuView as _0x1d58da,MenuBarMenuListView as _0x12ddb1,MenuBarMenuListItemView as _0x535895,MenuBarMenuListItemButtonView as _0x423573,ContextualBalloon as _0x570008,ToolbarSeparatorView as _0x2abaea,IconView as _0x1ddfa7,addListToDropdown as _0x33b4f0,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x33b40b,StickyPanelView as _0x3897ce,ToolbarView as _0x3dce5b,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2e5824}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4cf817(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4b497d){super(),this['id']=_0x4b497d['id']||_0x2e3833(),this['creator']=_0x4b497d['creator']||null,this['authors']=_0x4b497d['authors']||[],this['diffData']=_0x4b497d['diffData']||null,this['toVersion']=_0x4b497d['toVersion']||0x0,this['fromVersion']=_0x4b497d['fromVersion']||0x0,this['set']('name',_0x4b497d['name']||''),this['set']('createdAt',_0x4b497d['createdAt']||new Date()),this['set']('attributes',_0x4b497d['attributes']||{});}['setName'](_0x9787fe){this['_update']({'name':_0x9787fe});}['setAttribute'](_0x54a4e8,_0x107218){const _0x471720=_0x54a4cf(this['attributes']);_0x186274(_0x471720,_0x54a4e8,_0x107218),this['_update']({'attributes':_0x471720});}['removeAttribute'](_0x1b4657){const _0x17b12b=_0x54a4cf(this['attributes']);_0xa62119(_0x17b12b,_0x1b4657),this['_update']({'attributes':_0x17b12b});}['_update'](_0x2cc416,_0x57e5c3=!0x1){let _0xac3700=!0x1;const _0x56ec62={'id':this['id']},_0x46be2a=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2472c4 of _0x46be2a){const _0x302fb4=_0x2cc416[_0x2472c4];void 0x0!==_0x302fb4&&_0x302fb4!==this[_0x2472c4]&&(this[_0x2472c4]=_0x302fb4,_0x56ec62[_0x2472c4]=_0x302fb4,_0xac3700=!0x0);}_0xac3700&&(_0x56ec62['authors']&&(_0x56ec62['authorsIds']=_0x56ec62['authors']['map'](_0x531af8=>_0x531af8['id']),delete _0x56ec62['authors']),this['fire']('_update',_0x56ec62,_0x57e5c3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1d1684=>_0x1d1684['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x206761{['_revisions'];static get['requires'](){return[_0x332373];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3597f0){super(_0x3597f0),this['_revisions']=new _0x582366();}['afterInit'](){!async function(_0x6409cb){const _0x5160f7=_0x4360f9([0x75,0x78,0x58,0x59,0x6a,0x4e,0x6d,0x76,0x7a,0x62,0x4a,0x6b,0x38,0x44,0x6e,0x32,0x47,0x43,0x5a,0x64,0x49,0x34,0x66,0x55,0x51,0x36,0x42,0x61,0x68,0x67,0x30,0x45,0x73,0x4d,0x48,0x54,0x39,0x53,0x52,0x31,0x72,0x33,0x63,0x37,0x41,0x4b,0x4f,0x35,0x77,0x65,0x6f,0x79,0x74,0x70,0x69,0x4c,0x71,0x56,0x57,0x46,0x50,0x6c]),_0x29d381=0xeb829,_0xd0b275=0x2ded7313,_0x40f095=0x2dea1823^_0xd0b275,_0xad49f0=window[_0x4360f9([0x44,0x61,0x74,0x65])][_0x4360f9([0x6e,0x6f,0x77])](),_0x31d645=_0x6409cb[_0x4360f9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x486031=new window[(_0x4360f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d6bdd=>{_0x31d645[_0x4360f9([0x6f,0x6e,0x63,0x65])](_0x4360f9([0x72,0x65,0x61,0x64,0x79]),_0x4d6bdd);}),_0x3f281a={[_0x4360f9([0x6b,0x74,0x79])]:_0x4360f9([0x45,0x43]),[_0x4360f9([0x75,0x73,0x65])]:_0x4360f9([0x73,0x69,0x67]),[_0x4360f9([0x63,0x72,0x76])]:_0x4360f9([0x50,0x2d,0x32,0x35,0x36]),[_0x4360f9([0x78])]:_0x4360f9([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]),[_0x4360f9([0x79])]:_0x4360f9([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]),[_0x4360f9([0x61,0x6c,0x67])]:_0x4360f9([0x45,0x53,0x32,0x35,0x36])},_0x3f3ab8=_0x31d645[_0x4360f9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4360f9([0x67,0x65,0x74])](_0x4360f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b56d4(){let _0x3c7871,_0x5ccdda=null,_0x213532=null;try{if(_0x3f3ab8==_0x4360f9([0x47,0x50,0x4c]))return _0x4360f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c7871=_0x4c2c1d(),!_0x3c7871)return _0x4360f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c7871[_0x4360f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x213532=_0x3ff5c7(_0x3c7871[_0x4360f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c7871[_0x4360f9([0x6a,0x74,0x69])])),await _0x5d404a()?_0x56320d()?_0x5651f4()?_0x4360f9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x174d8a()?(_0x3c7871[_0x4360f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4360f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ccdda=_0x144ff3(_0x4360f9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c7871[_0x4360f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4360f9([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ccdda=_0x144ff3(_0x4360f9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2aac22()):_0x4360f9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4360f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4360f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4360f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5651f4(){const _0x2f181e=[_0x4360f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4360f9([0x74,0x72,0x69,0x61,0x6c])][_0x4360f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c7871[_0x4360f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xad49f0/0x3e8:0xe10*_0x40f095;return _0x3c7871[_0x4360f9([0x65,0x78,0x70])]<_0x2f181e;}function _0x56320d(){const _0x4c3355=_0x3c7871[_0x4360f9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4c3355)return!0x1;if(_0x4c3355[_0x4360f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4360f9([0x2a])))return!0x0;if(_0x4c3355[_0x4360f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4360f9([0x52,0x48])))return!0x0;if(_0x4c3355[_0x4360f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4360f9([0x52,0x52,0x48]))){if(_0x311463())return!0x0;if(_0x5e32b9()||_0x37c010())return!0x0;}return!0x1;}function _0x174d8a(){const _0x5e15b7=_0x3c7871[_0x4360f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e15b7||0x0==_0x5e15b7[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb64f92}=new URL(window[_0x4360f9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e15b7[_0x4360f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb64f92))return!0x0;const _0x3ef4fc=_0xb64f92[_0x4360f9([0x73,0x70,0x6c,0x69,0x74])](_0x4360f9([0x2e]));return _0x5e15b7[_0x4360f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2603d8=>_0x2603d8[_0x4360f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4360f9([0x2a])))[_0x4360f9([0x6d,0x61,0x70])](_0x452444=>_0x452444[_0x4360f9([0x73,0x70,0x6c,0x69,0x74])](_0x4360f9([0x2e])))[_0x4360f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5903c9=>_0x5903c9[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ef4fc[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4360f9([0x6d,0x61,0x70])](_0xc73e39=>Array(_0x3ef4fc[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc73e39[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4360f9([0x66,0x69,0x6c,0x6c])](_0xc73e39[0x0]===_0x4360f9([0x2a])?_0x4360f9([0x2a]):'')[_0x4360f9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc73e39))[_0x4360f9([0x73,0x6f,0x6d,0x65])](_0x2cf639=>_0x3ef4fc[_0x4360f9([0x65,0x76,0x65,0x72,0x79])]((_0x4cacbb,_0x17bc62)=>_0x2cf639[_0x17bc62]===_0x4cacbb||_0x2cf639[_0x17bc62]===_0x4360f9([0x2a])));}function _0x2aac22(){return _0x5ccdda&&_0x213532?new window[(_0x4360f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47abf4,_0x24b96c)=>{_0x5ccdda[_0x4360f9([0x74,0x68,0x65,0x6e])](_0x47abf4,_0x24b96c),_0x213532[_0x4360f9([0x74,0x68,0x65,0x6e])](_0x2c900f=>{_0x2c900f!=_0x4360f9([0x56,0x61,0x6c,0x69,0x64])&&_0x47abf4(_0x2c900f);},_0x24b96c);}):_0x5ccdda||_0x213532||_0x4360f9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ff5c7(_0x105053,_0x126c65){return new window[(_0x4360f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cfee5=>{if(_0x4d9adc())return _0x5cfee5(_0x4360f9([0x56,0x61,0x6c,0x69,0x64]));_0x259351(),_0x31d645[_0x4360f9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4360f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xfe7dff=!0x1;const _0xef7a9c=_0x2e3833();function _0x7b3b24(_0x360f8c){return!!_0x360f8c&&(typeof _0x360f8c===_0x4360f9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x360f8c===_0x4360f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x360f8c[_0x4360f9([0x74,0x68,0x65,0x6e])]===_0x4360f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x360f8c[_0x4360f9([0x63,0x61,0x74,0x63,0x68])]===_0x4360f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf5c6e0(_0x431ca8){_0x2300a3(_0x431ca8)[_0x4360f9([0x74,0x68,0x65,0x6e])](_0x2c3fd6=>{if(!_0x2c3fd6||_0x2c3fd6[_0x4360f9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4360f9([0x6f,0x6b]))return _0x4360f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9f3617(_0x125358(_0xef7a9c+_0x126c65))!=_0x2c3fd6[_0x4360f9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4360f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4360f9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4360f9([0x74,0x68,0x65,0x6e])](_0x233ed2=>(_0x25b13f(),_0x233ed2),()=>{const _0x266412=_0x5f4880();return null==_0x266412?(_0x25b13f(),_0x4360f9([0x56,0x61,0x6c,0x69,0x64])):_0x4360f9(_0xad49f0-_0x266412>(0x9e1f713^_0xd0b275)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4360f9([0x74,0x68,0x65,0x6e])](_0x5cfee5)[_0x4360f9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cfee5(_0x4360f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa7caa2=0x2ddb9d93^_0xd0b275;function _0x25b13f(){const _0x510a88=_0x4360f9([0x6c,0x6c,0x63,0x74,0x2d])+_0x9f3617(_0x125358(_0x105053)),_0x3a1fad=_0x4e8337(_0x9f3617(window[_0x4360f9([0x4d,0x61,0x74,0x68])][_0x4360f9([0x63,0x65,0x69,0x6c])](_0xad49f0/_0xa7caa2)));window[_0x4360f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4360f9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x510a88,_0x3a1fad);}function _0x5f4880(){const _0x5196c2=_0x4360f9([0x6c,0x6c,0x63,0x74,0x2d])+_0x9f3617(_0x125358(_0x105053)),_0x4c7349=window[_0x4360f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4360f9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5196c2);return _0x4c7349?window[_0x4360f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e8337(_0x4c7349),0x10)*_0xa7caa2:null;}function _0x2300a3(_0x216f00){return new window[(_0x4360f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x593395,_0x346fdf)=>{_0x216f00[_0x4360f9([0x74,0x68,0x65,0x6e])](_0x593395,_0x346fdf),window[_0x4360f9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x346fdf,0x2deca7d3^_0xd0b275);});}}_0x31d645[_0x4360f9([0x6f,0x6e])](_0x4360f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf075ec,_0x79582d)=>{if(_0x79582d[0x0]!=_0x105053)return _0x5cfee5(_0x4360f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x79582d[0x1]={..._0x79582d[0x1],[_0x4360f9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xef7a9c};},{[_0x4360f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4360f9([0x68,0x69,0x67,0x68])}),_0x31d645[_0x4360f9([0x6f,0x6e])](_0x4360f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf45fce=>{_0x7b3b24(_0xf45fce[_0x4360f9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xfe7dff=!0x0,_0xf5c6e0(_0xf45fce[_0x4360f9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4360f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4360f9([0x6c,0x6f,0x77])}),_0x486031[_0x4360f9([0x74,0x68,0x65,0x6e])](()=>{_0xfe7dff||_0x5cfee5(_0x4360f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d9adc(){return _0x31d645[_0x4360f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4360f9([0x76,0x69,0x65,0x77])][_0x4360f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4360f9([0x61,0x75,0x74,0x6f]);}function _0x259351(){_0x31d645[_0x4360f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4360f9([0x76,0x69,0x65,0x77])][_0x4360f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4360f9([0x61,0x75,0x74,0x6f]);}}function _0x144ff3(_0x3e3ff1){const _0x4fd4e0=[new window[(_0x4360f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c6482=>setTimeout(_0x3c6482,0x2de44ddf^_0xd0b275)),_0x486031[_0x4360f9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4360f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7a9bb3=>{const _0xc091fd=0x2ded7314^_0xd0b275,_0x557b89=_0x6409cb[_0x4360f9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x37e19d(){_0x557b89[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xc091fd&&_0x7a9bb3();}_0x37e19d(),_0x557b89[_0x4360f9([0x6f,0x6e])](_0x4360f9([0x61,0x64,0x64]),_0x37e19d);})),new window[(_0x4360f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45e56c=>{function _0x4d5fa9(){for(const _0x5a5a34 in window)if(window[_0x4360f9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4360f9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5a5a34))&&window[_0x5a5a34]==_0x29d381)return _0x45e56c();_0x31d645[_0x4360f9([0x73,0x74,0x61,0x74,0x65])]!=_0x4360f9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4360f9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d5fa9,0x2ded609b^_0xd0b275);}_0x21d0ca(_0x4360f9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4d5fa9();})];return window[_0x4360f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4360f9([0x72,0x61,0x63,0x65])](_0x4fd4e0)[_0x4360f9([0x74,0x68,0x65,0x6e])](()=>_0x3e3ff1);}async function _0x38ae77(){if(await _0x486031,_0x21d0ca(_0x4360f9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x634472=_0x6409cb[_0x4360f9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x455cbf=_0x6409cb[_0x4360f9([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])](_0x634472[_0x4360f9([0x69,0x64])]),_0x22322e=_0x4d1d64(_0x4360f9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x22322e[_0x4360f9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x634472['id'],_0x455cbf?_0x455cbf['id']:null,!0x0),_0x22322e[_0x4360f9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4360f9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x22322e[_0x4360f9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x22322e[_0x4360f9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4e37a2,void(_0x22322e[_0x4360f9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4e37a2);}if(_0x21d0ca(_0x4360f9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3d03fe=_0x4d1d64(_0x4360f9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3d03fe[_0x4360f9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4360f9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3d03fe[_0x4360f9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3d03fe[_0x4360f9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4e37a2,_0x3d03fe[_0x4360f9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4e37a2;}_0x31d645[_0x4360f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4360f9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e37a2,_0x31d645[_0x4360f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4360f9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e37a2,_0x31d645[_0x4360f9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4360f9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x311463(){return _0x21d0ca(_0x4360f9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d1d64(_0x4360f9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4360f9([0x73,0x74,0x61,0x74,0x65])]==_0x4360f9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5e32b9(){return _0x21d0ca(_0x4360f9([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 _0x37c010(){return _0x21d0ca(_0x4360f9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x464433(_0x4252b3){const _0x30b763=_0xc66303();_0x31d645[_0x30b763]=_0x4360f9([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])+_0x4252b3,_0x4252b3[_0x4360f9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4360f9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xc66303()]=_0x29d381),_0x4252b3!=_0x4360f9([0x56,0x61,0x6c,0x69,0x64])&&_0x38ae77();}function _0xc66303(){const _0x2a9304=window[_0x4360f9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4360f9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4360f9([0x6e,0x6f,0x77])]())[_0x4360f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4360f9([0x2e]),'');let _0xa615f=_0x4360f9([0x75]);for(let _0x29bfc8=0x0;_0x29bfc8<_0x2a9304[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29bfc8+=0x2){let _0x45f3cc=window[_0x4360f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a9304[_0x4360f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29bfc8,_0x29bfc8+0x2));_0x45f3cc>=_0x5160f7[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45f3cc-=_0x5160f7[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa615f+=_0x5160f7[_0x45f3cc];}return _0xa615f;}function _0x4c2c1d(){const _0x468405=_0x3f3ab8[_0x4360f9([0x73,0x70,0x6c,0x69,0x74])](_0x4360f9([0x2e]));if(0x3!=_0x468405[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x345bb9(_0x468405[0x1]);function _0x345bb9(_0x1f0f7f){const _0x3a3ba9=_0x427758(_0x1f0f7f);return _0x3a3ba9&&_0x34066c()?_0x3a3ba9:null;function _0x34066c(){const _0x32e367=_0x3a3ba9[_0x4360f9([0x6a,0x74,0x69])],_0xcbde16=window[_0x4360f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32e367[_0x4360f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32e367[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdff1={..._0x3a3ba9,[_0x4360f9([0x6a,0x74,0x69])]:_0x32e367[_0x4360f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32e367[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdff1[_0x4360f9([0x76,0x63])],_0x125358(_0xdff1)==_0xcbde16;}}}async function _0x5d404a(){let _0x4adb8c=!0x0;try{const _0x15d866=_0x3f3ab8[_0x4360f9([0x73,0x70,0x6c,0x69,0x74])](_0x4360f9([0x2e])),[_0xfa2a45,_0x3f9c63,_0x3fb6cc]=_0x15d866;return _0x9a1b1(_0xfa2a45),await _0x36d0b8(_0xfa2a45,_0x3f9c63,_0x3fb6cc),_0x4adb8c;}catch{return!0x1;}function _0x9a1b1(_0x379e2d){const _0x478d6b=_0x427758(_0x379e2d);_0x478d6b&&_0x478d6b[_0x4360f9([0x61,0x6c,0x67])]==_0x4360f9([0x45,0x53,0x32,0x35,0x36])||(_0x4adb8c=!0x1);}async function _0x36d0b8(_0x4aaa0f,_0x1b79e7,_0x3f6177){const _0x145098=window[_0x4360f9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4360f9([0x66,0x72,0x6f,0x6d])](_0x5242e7(_0x3f6177),_0x13d67d=>_0x13d67d[_0x4360f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x196653=new window[(_0x4360f9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4360f9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4aaa0f+_0x4360f9([0x2e])+_0x1b79e7),_0x3faa28=window[_0x4360f9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4360f9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3faa28)return;const _0x563957=await _0x3faa28[_0x4360f9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4360f9([0x6a,0x77,0x6b]),_0x3f281a,{[_0x4360f9([0x6e,0x61,0x6d,0x65])]:_0x4360f9([0x45,0x43,0x44,0x53,0x41]),[_0x4360f9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4360f9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4360f9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3faa28[_0x4360f9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4360f9([0x6e,0x61,0x6d,0x65])]:_0x4360f9([0x45,0x43,0x44,0x53,0x41]),[_0x4360f9([0x68,0x61,0x73,0x68])]:{[_0x4360f9([0x6e,0x61,0x6d,0x65])]:_0x4360f9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x563957,_0x145098,_0x196653)||(_0x4adb8c=!0x1);}}function _0x427758(_0xb0985e){return _0xb0985e[_0x4360f9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4360f9([0x65,0x79]))?JSON[_0x4360f9([0x70,0x61,0x72,0x73,0x65])](_0x5242e7(_0xb0985e)):null;}function _0x5242e7(_0x398d5c){return window[_0x4360f9([0x61,0x74,0x6f,0x62])](_0x398d5c[_0x4360f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4360f9([0x2b]))[_0x4360f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4360f9([0x2f])));}function _0x125358(_0x42fa42){let _0x4b3b8c=0x1505;function _0xce230c(_0x3e1196){for(let _0x472294=0x0;_0x472294<_0x3e1196[_0x4360f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x472294++){const _0x18d576=_0x3e1196[_0x4360f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x472294);_0x4b3b8c=(_0x4b3b8c<<0x5)+_0x4b3b8c+_0x18d576,_0x4b3b8c&=_0x4b3b8c;}}function _0x511cba(_0x22e3d9){Array[_0x4360f9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22e3d9)?_0x22e3d9[_0x4360f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x511cba):_0x22e3d9&&typeof _0x22e3d9==_0x4360f9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4360f9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22e3d9)[_0x4360f9([0x73,0x6f,0x72,0x74])]()[_0x4360f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1302b8,_0x5d261a])=>{_0xce230c(_0x1302b8),_0x511cba(_0x5d261a);}):_0xce230c(window[_0x4360f9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22e3d9));}return _0x511cba(_0x42fa42),_0x4b3b8c>>>0x0;}function _0x9f3617(_0x599c51){return _0x599c51[_0x4360f9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4360f9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4360f9([0x30]));}function _0x4e8337(_0x2c13ca){return _0x2c13ca[_0x4360f9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4360f9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4360f9([0x6a,0x6f,0x69,0x6e])]('');}function _0x21d0ca(_0x46c676){return _0x31d645[_0x4360f9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4360f9([0x68,0x61,0x73])](_0x46c676);}function _0x4d1d64(_0x555b7d){return _0x31d645[_0x4360f9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4360f9([0x67,0x65,0x74])](_0x555b7d);}function _0x4e37a2(){}function _0x4360f9(_0x49b731){return _0x49b731['map'](_0x5aeee8=>String['fromCharCode'](_0x5aeee8))['join']('');}_0x464433(await _0x3b56d4());}(this);}['createRevision'](_0xcc48db){const _0x18bb55=this['editor']['plugins']['get']('Users');return new I({'id':_0xcc48db['id'],'name':_0xcc48db['name'],'creator':_0xcc48db['creatorId']?_0x18bb55['getUser'](_0xcc48db['creatorId']):null,'diffData':_0xcc48db['diffData']||_0xcc48db['data'],'authors':_0xcc48db['authorsIds']['map'](_0x3f88ca=>_0x18bb55['getUser'](_0x3f88ca)),'createdAt':new Date(_0xcc48db['createdAt']),'attributes':_0xcc48db['attributes'],'fromVersion':_0xcc48db['fromVersion'],'toVersion':_0xcc48db['toVersion']});}['addRevision'](_0x4b1c17,_0x854981=0x0){this['_revisions']['add'](_0x4b1c17,_0x854981);}['getRevision'](_0x2f14b6){return this['_revisions']['get'](_0x2f14b6);}['getRevisions'](_0x3ea529={'toJSON':!0x1}){const _0x5f6278=Array['from'](this['_revisions']);return _0x5f6278['reverse'](),_0x3ea529['toJSON']?_0x5f6278['map'](_0x37bd83=>_0x37bd83['toJSON']()):_0x5f6278;}['getIndex'](_0x52f022){return this['_revisions']['getIndex'](_0x52f022);}['getEarlierVisibleRevision'](_0x54ec90){const [,_0x2665ad]=this['getRevisionsIterator'](_0x54ec90,{'direction':'earlier'});return _0x2665ad;}['getLaterVisibleRevision'](_0x3ca1a4){const [,_0x784f34]=this['getRevisionsIterator'](_0x3ca1a4,{'direction':'later'});return _0x784f34;}['getRevisionsInDiff'](_0x54e728){const _0x1d7984=[];for(const _0x25736f of this['getRevisionsIterator'](_0x54e728['newRevisionId']))if(_0x1d7984['push'](_0x25736f),_0x25736f['id']===_0x54e728['oldRevisionId'])break;return _0x1d7984;}*['getRevisionsIterator'](_0x317bca,{direction:_0x4535fa='earlier',filter:_0x45be5c=()=>!0x0}={}){const _0x59f79b='earlier'===_0x4535fa?0x1:-0x1;let _0x37a40e=this['_revisions']['get'](_0x317bca),_0x42e947=this['getIndex'](_0x37a40e);for(yield _0x37a40e;_0x37a40e;){if(_0x42e947+=_0x59f79b,_0x37a40e=this['getRevision'](_0x42e947),!_0x37a40e)return;_0x45be5c(_0x37a40e)&&(yield _0x37a40e);}}}class $ extends _0x206761{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x174479,'c'],[_0x48751a,'a'],[_0x25aa12,'e'],[_0x53f5b3,'r'],[_0x552fbb,'u']]);['_typeCharToViewClass']=new Map([['c',_0x174479],['a',_0x48751a],['e',_0x25aa12],['r',_0x53f5b3],['u',_0x552fbb]]);async['loadRevisionData'](_0x31687c,_0x410db1){if(_0x31687c['diffData']||!_0x410db1)return;const _0x3e3833=this['editor']['config']['get']('collaboration.channelId'),_0x6579ea=await _0x410db1['getRevision']({'channelId':_0x3e3833,'revisionId':_0x31687c['id']});_0x31687c['diffData']=_0x6579ea['diffData'];}['getRevisionDocumentData'](_0x4e5627){const _0xf71bcd={};for(const _0x29a1b8 in _0x4e5627['diffData']){if(_0x4e5627['diffData'][_0x29a1b8]['attachChange']&&!_0x4e5627['diffData'][_0x29a1b8]['attachChange']['isAttached'])continue;const _0x264f8b=this['_removeRevisionMarkers'](JSON['parse'](_0x4e5627['diffData'][_0x29a1b8]['insertions'])),_0x2e8bff=this['editor']['editing']['view']['document'],_0x5cc601=new _0x119f0d(_0x2e8bff,_0x264f8b['map'](_0x421461=>this['_getViewFromDiffObj'](_0x421461,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xf71bcd[_0x29a1b8]=this['editor']['data']['processor']['toData'](_0x5cc601),this['editor']['data']['processor']['useFillerType']('default');}return _0xf71bcd;}['getRevisionRootsAttributes'](_0x15d4ec){const _0x305d3b={};for(const _0x1fa8be in _0x15d4ec['diffData'])_0x15d4ec['diffData'][_0x1fa8be]['attachChange']&&!_0x15d4ec['diffData'][_0x1fa8be]['attachChange']['isAttached']||(_0x305d3b[_0x1fa8be]=_0x15d4ec['diffData'][_0x1fa8be]['attributesAfter']||{});return _0x305d3b;}['_getTypeCharForViewElement'](_0x35ca30){return this['_viewClassToTypeChar']['get'](_0x35ca30['constructor']);}['_getViewFromDiffObj'](_0x21ab8b,_0x229267){const _0xc3ab00=this['editor']['editing']['view']['document'];if('string'==typeof _0x21ab8b)return new _0xf2d502(_0xc3ab00,_0x21ab8b);{let _0x5ca704,_0x193cd3;_0x193cd3='u'==_0x21ab8b['type']||'r'==_0x21ab8b['type']?[]:_0x21ab8b['children']['map'](_0x1449fb=>this['_getViewFromDiffObj'](_0x1449fb,_0x229267));const _0x38d170=this['_typeCharToViewClass']['get'](_0x21ab8b['type'])||_0x1c5ce9,_0x4302fb=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5ca704=new _0x38d170(_0xc3ab00,_0x21ab8b['name'],_0x21ab8b['attributes'],_0x193cd3),'u'==_0x21ab8b['type']&&_0x21ab8b['children'][0x0]){const _0x1043c1=_0x21ab8b['children'][0x0];if(_0x5ca704['render']=function(_0x51c2fb){const _0x5d2bd7=_0x51c2fb['createElement']('div');return _0x5d2bd7['innerHTML']=_0x1043c1,_0x5d2bd7['childNodes'][0x0];},_0x229267){const _0x195123=new _0x119f0d(_0xc3ab00);_0x195123['_appendChild'](_0x5ca704);const _0xd41997=Array['from'](_0x4302fb['viewChildrenToDom'](_0x195123,{'bind':!0x1})),_0x213bef=_0x4302fb['domDocument']['createElement']('div');_0x213bef['append'](..._0xd41997),_0x5ca704=Array['from'](_0x4302fb['domChildrenToView'](_0x213bef))[0x0];}}else{if('r'==_0x21ab8b['type']&&_0x21ab8b['children'][0x0]){const _0xc9abad=_0x21ab8b['children'][0x0];if(_0x5ca704['render']=function(_0x2b9295){_0x2b9295['innerHTML']=_0xc9abad;},_0x229267){const _0x384604=new _0x119f0d(_0xc3ab00);_0x384604['_appendChild'](_0x5ca704);const _0x292e82=Array['from'](_0x4302fb['viewChildrenToDom'](_0x384604,{'bind':!0x1})),_0x2d6ac7=_0x4302fb['domDocument']['createElement']('div');_0x2d6ac7['append'](..._0x292e82);const _0x1318f3=Array['from'](_0x4302fb['domChildrenToView'](_0x2d6ac7));_0x1318f3['length']>0x1?_0x5ca704['_appendChild'](_0x1318f3):_0x5ca704=_0x1318f3[0x0];}}}if(_0x21ab8b['customProperties']){for(const [_0x190f26,_0x5268ed]of _0x21ab8b['customProperties'])_0x5ca704['_setCustomProperty'](_0x190f26,_0x5268ed);}const _0x303686=void 0x0===_0x21ab8b['fillerOffset']?null:_0x21ab8b['fillerOffset'];return null!==_0x303686&&(_0x5ca704['getFillerOffset']=()=>_0x303686),_0x5ca704;}}['_makeModelFromViewString'](_0x1097a5){const _0x4f190a=JSON['parse'](_0x1097a5),_0x1156b0=this['editor']['editing']['view']['document'],_0x3ffb95=new _0x119f0d(_0x1156b0,_0x4f190a['map'](_0x310880=>this['_getViewFromDiffObj'](_0x310880,!0x0)));return this['editor']['data']['toModel'](_0x3ffb95);}['_removeRevisionMarkers'](_0x38fb1f){return(_0x38fb1f=_0x38fb1f['filter'](_0x5e1d63=>!_0x5e1d63['name']||'revision-start'!==_0x5e1d63['name']&&'revision-end'!==_0x5e1d63['name']))['forEach'](_0x4a4c4d=>{'string'!=typeof _0x4a4c4d&&(_0x4a4c4d['children']=this['_removeRevisionMarkers'](_0x4a4c4d['children']),_0x4a4c4d['attributes']=_0x4a4c4d['attributes']['filter'](_0x5d2a75=>!_0x5d2a75[0x0]['startsWith']('data-revision-')));}),_0x38fb1f;}}function R(_0x5eba2e,_0x4bf02c,_0x5c6075){const t=_0x5eba2e['t'];switch(_0x4bf02c){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'},_0x5c6075);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5c6075);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x206761{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x332373,S,$,_0x433f80];}constructor(_0x250dc9){super(_0x250dc9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5076eb=_0x2e3833();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5076eb},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3a57d6=this['repository']['getRevision'](0x0),_0xf32d12=_0x3a57d6&&null===_0x3a57d6['creator']?_0x3a57d6:null;if(this['_continueCurrentRevision']=!!_0xf32d12&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3fe928=this['_source']['getCurrentRevisionId'](),_0x12b095=this['repository']['getRevision'](_0x3fe928);if(_0x12b095)this['_startingVersion']=_0x12b095['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x304c59=this['_source']['history']['_operations']['find'](_0x223dd2=>!_0x223dd2['_isInit']),_0x6a9b58=_0x304c59?_0x304c59['baseVersion']:this['_source']['history']['version'];_0x3a57d6?(_0x3a57d6['toVersion']<_0x6a9b58&&_0x3a57d6['_update']({'toVersion':_0x6a9b58}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xf32d12['id'],this['_startingVersion']=_0xf32d12['fromVersion']):(this['_startingVersion']=_0x3a57d6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x6a9b58,this['_continueCurrentRevision']=!0x1);}}else _0xf32d12&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xf32d12['toVersion'],this['editor']['model']['document']['history']['version']),_0xf32d12['fromVersion']===_0xf32d12['toVersion']?(0x0!==_0xf32d12['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xf32d12['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xf32d12['id'],this['_startingVersion']=_0xf32d12['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',_0x3e5359=>!_0x3e5359),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e5397=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x565409;for(const _0x81a039 in _0x4e5397){const _0x260054=_0x81a039,_0x20c3a5=_0x4e5397[_0x260054];if('revisionHistoryLicenseKeyValid'==_0x20c3a5||'revisionHistoryLicenseKeyInvalid'==_0x20c3a5||'revisionHistoryLicenseKeyExpired'==_0x20c3a5||'revisionHistoryLicenseKeyDomainLimit'==_0x20c3a5||'revisionHistoryLicenseKeyNotAllowed'==_0x20c3a5||'revisionHistoryLicenseKeyEvaluationLimit'==_0x20c3a5||'revisionHistoryLicenseKeyTrialLimit'==_0x20c3a5||'revisionHistoryLicenseKeyUsageLimit'==_0x20c3a5){delete _0x4e5397[_0x260054],_0x565409=_0x20c3a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x565409&&_0x4e5397['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x565409&&_0x4e5397['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x565409&&_0x4e5397['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x565409&&_0x4e5397['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x565409&&_0x4e5397['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x565409&&_0x4e5397['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x565409&&_0x4e5397['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x23e220=this['repository']['getRevision'](0x0),_0x492975=await this['getRevisionDocumentData'](_0x23e220),_0x19296=await this['getRevisionRootsAttributes'](_0x23e220);this['_replaceEditorDataWithRevisionData'](_0x492975,_0x19296);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3e238d){this['_source']=_0x3e238d;}async['update'](){const _0x50fadf=await this['_source']['getLatestVersion']();if(_0x50fadf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5e43a6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x50fadf});_0x5e43a6['authors']=_0x5e43a6['authorsIds']['map'](_0x45c772=>this['editor']['plugins']['get']('Users')['getUser'](_0x45c772)),this['currentRevision']['_update'](_0x5e43a6);}}async['saveRevision'](_0x2b8b90={},_0x2d29f8=null){const _0x4354d6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2d29f8>this['currentRevision']['toVersion']&&(_0x2d29f8=null),null===_0x2d29f8&&(_0x2d29f8=await this['_source']['getLatestVersion']());const _0x1ee2ea=this['_getFromVersion'](_0x2d29f8),_0x3129fb=this['buildRevisionData']({'from':_0x1ee2ea,'to':_0x2d29f8});if(this['currentRevision']['toVersion']<_0x2d29f8){const _0x2e1a6c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2d29f8,'to':_0x2d29f8});_0x2e1a6c['authors']=[],_0x2e1a6c['authorsIds']=[],_0x2e1a6c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2e1a6c,!0x0),delete _0x2e1a6c['authors'],_0x4354d6['push'](_0x2e1a6c);}_0x2b8b90['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2b8b90['name']=_0x2b8b90['name']||null,_0x2b8b90['id']=_0x2b8b90['id']||_0x2e3833(),_0x2b8b90={..._0x2b8b90,..._0x3129fb};const _0x3f27bb=this['addRevisionData'](_0x2b8b90);_0x4354d6['push'](_0x2b8b90);const _0x4f4cf5=this['repository']['getIndex'](_0x3f27bb);if(0x0!==_0x4f4cf5){const _0x1ff993=this['repository']['getRevision'](_0x4f4cf5-0x1);if(_0x1ff993['fromVersion']!==_0x2d29f8){const _0xb115e6=this['_revisionDataBuilder']['getData'](_0x2d29f8,_0x1ff993['toVersion']),_0x39f943={'id':_0x1ff993['id'],'diffData':_0xb115e6['diffData'],'authorsIds':_0xb115e6['authorsIds'],'authors':_0xb115e6['authorsIds']['map'](_0x1b9df2=>this['editor']['plugins']['get']('Users')['getUser'](_0x1b9df2)),'fromVersion':_0x2d29f8};_0x1ff993===this['currentRevision']&&(_0x39f943['createdAt']=new Date(_0x2b8b90['createdAt']['getTime']()+0xa)),_0x1ff993['_update'](_0x39f943,!0x0),delete _0x39f943['authors'],_0x4354d6['push'](_0x39f943);}}if(this['adapter']){for(const _0xb3a41e of _0x4354d6)this['_bufferUpdate'](_0xb3a41e['id'],_0xb3a41e,!0x0);this['sendBufferedUpdates']();}return _0x3f27bb;}['addRevisionData'](_0x5dbfda){const _0x42b850=this['repository']['createRevision'](_0x5dbfda);return this['adapter']&&_0x42b850['on']('_update',(_0x1b9b26,_0x1c64e6,_0x25aedd)=>{_0x25aedd||(this['_bufferUpdate'](_0x1c64e6['id'],_0x1c64e6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x42b850,this['_findInsertionIndex'](_0x42b850)),_0x42b850;}async['getRevisionDocumentData'](_0x5acb82){return await this['_utils']['loadRevisionData'](_0x5acb82,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5acb82);}async['getRevisionRootsAttributes'](_0x2bfd3a){return await this['_utils']['loadRevisionData'](_0x2bfd3a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2bfd3a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4f99e0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4d7ab8=0x0;_0x4d7ab8<_0x4f99e0['length'];_0x4d7ab8++){const _0x4299f3=_0x4f99e0[_0x4d7ab8];let _0x20ab9d=!0x1;for(const _0x482d3b of Object['keys'](_0x4299f3))void 0x0===_0x4299f3[_0x482d3b]?delete _0x4299f3[_0x482d3b]:'id'!==_0x482d3b&&(_0x20ab9d=!0x0);_0x20ab9d||(_0x4f99e0[_0x4d7ab8]=null);}if(_0x4f99e0=_0x4f99e0['filter'](_0x213a7b=>null!==_0x213a7b),!_0x4f99e0['length'])return;for(let _0x29a850=0x0;_0x29a850<_0x4f99e0['length'];_0x29a850++){const _0x1beb87=_0x4f99e0[_0x29a850];void 0x0!==_0x1beb87['fromVersion']&&void 0x0===_0x1beb87['toVersion']&&(_0x1beb87['toVersion']=this['repository']['getRevision'](_0x1beb87['id'])['toVersion']),void 0x0!==_0x1beb87['toVersion']&&void 0x0===_0x1beb87['fromVersion']&&(_0x1beb87['fromVersion']=this['repository']['getRevision'](_0x1beb87['id'])['fromVersion']);}const _0x46b571=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4f99e0,_0x46b571)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x302001=>{if(_0x302001){for(const _0x148753 of _0x302001)this['setRevisionData']({'id':_0x148753['id'],'createdAt':_0x148753['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x6fd3dc=null,from:_0x3713cf=null,to:_0x1547ee=null}){_0x3713cf=null!==_0x3713cf?_0x3713cf:_0x6fd3dc['fromVersion'],_0x1547ee=null!==_0x1547ee?_0x1547ee:_0x6fd3dc['toVersion'];const _0x33cdbd=this['_revisionDataBuilder']['getData'](_0x3713cf,_0x1547ee),_0x19a0c9={'diffData':_0x33cdbd['diffData'],'authorsIds':_0x33cdbd['authorsIds'],'fromVersion':_0x3713cf,'toVersion':_0x1547ee};if(!_0x6fd3dc||_0x1547ee!==_0x6fd3dc['toVersion']){const _0x31445f=_0x1547ee-0x1,_0x280caf=this['_source']['history']['getOperation'](_0x31445f);_0x19a0c9['createdAt']=_0x280caf&&_0x280caf['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3713cf===this['_loadedStateData']['fromVersion']){for(const _0x3651ed of this['_loadedStateData']['authors'])_0x19a0c9['authorsIds']['includes'](_0x3651ed['id'])||_0x19a0c9['authorsIds']['push'](_0x3651ed['id']);}return _0x19a0c9;}['_bufferUpdate'](_0x58c2e4,_0x44e289,_0x506128){if(this['_bufferedUpdates']['has'](_0x58c2e4)){const _0x4fc107=this['_bufferedUpdates']['get'](_0x58c2e4);_0x44e289=_0x506128?{..._0x4fc107,..._0x44e289}:{..._0x44e289,..._0x4fc107};}this['_bufferedUpdates']['set'](_0x58c2e4,_0x44e289);}['setRevisionData'](_0x574791){const _0x2c2bc4=this['repository']['getRevision'](_0x574791['id']);if(_0x574791['createdAt']&&(_0x574791['createdAt']=new Date(_0x574791['createdAt'])),_0x574791['authorsIds']){const _0x4d0632=this['editor']['plugins']['get']('Users');_0x574791['authors']=_0x574791['authorsIds']['map'](_0x530b21=>_0x4d0632['getUser'](_0x530b21));}_0x2c2bc4['_update'](_0x574791,!0x0);}['_createInitialRevision'](_0x1e62f5){const _0x348367=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x348367)this['_initialRevisionId']=_0x348367['id'];else{const _0x43040d=!this['editor']['model']['document']['roots']['find'](_0x5b0592=>this['editor']['model']['hasContent'](_0x5b0592)),_0x46bc16=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a3cf0=R(this['editor']['locale'],_0x43040d?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1e62f5,'to':_0x1e62f5,'id':this['_initialRevisionId'],'name':_0x3a3cf0,'creatorId':_0x46bc16});}}['_createCurrentRevision'](_0x529f25){const _0x2ef940=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2ef940),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x529f25,'to':_0x529f25,'id':_0x2ef940,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x2578e5,_0x3ea0e9){let _0x11317b=this['editor']['config']['get']('initialData'),_0x4de34d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x11317b){_0x11317b={};for(const _0x1a6595 of this['editor']['model']['document']['getRootNames']())_0x11317b[_0x1a6595]='';}if('string'==typeof _0x11317b&&(_0x11317b={'main':_0x11317b}),void 0x0===_0x4de34d){_0x4de34d={};for(const _0xddfa41 of this['editor']['model']['document']['getRootNames']())_0x4de34d[_0xddfa41]={};}let _0x2f7391=!0x1;const _0x1bac9a=Object['keys'](_0x11317b),_0x47cabd=Object['keys'](_0x2578e5);for(const _0x4337d0 of _0x1bac9a){if(_0x11317b[_0x4337d0]!==_0x2578e5[_0x4337d0]&&''!==_0x11317b[_0x4337d0]['trim']()){_0x2f7391=!0x0;break;}if(!_0x2c2075(_0x4de34d[_0x4337d0],_0x3ea0e9[_0x4337d0])&&Object['keys'](_0x4de34d[_0x4337d0])['length']>0x0){_0x2f7391=!0x0;break;}}_0x2f7391||(_0x2f7391=_0x47cabd['some'](_0x4673ef=>!this['editor']['model']['document']['getRoot'](_0x4673ef))),_0x2f7391&&_0x4a5fa7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x11317b,'editorRootsAttributes':_0x4de34d,'revisionData':_0x2578e5,'revisionRootsAttributes':_0x3ea0e9}),this['editor']['config']['set']('initialData',_0x2578e5),this['editor']['config']['set']('rootsAttributes',_0x3ea0e9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4242ac=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4242ac['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4d8ab1){const _0x4e12d6=this['repository']['getRevisions']();_0x4e12d6['reverse']();let _0x4044fa=0x0;for(;_0x4044fa<_0x4e12d6['length'];){const _0x44aa0d=_0x4e12d6[_0x4044fa];if(_0x44aa0d===this['currentRevision']){_0x4044fa++;continue;}if(_0x44aa0d['id']===this['_initialRevisionId'])break;const _0x393671=_0x4d8ab1['toVersion']-_0x44aa0d['toVersion']||_0x4d8ab1['fromVersion']-_0x44aa0d['fromVersion'];if(_0x393671>0x0)break;if(_0x393671<0x0)_0x4044fa++;else{if(!_0x4d8ab1['creator']&&_0x44aa0d['creator'])break;if(_0x44aa0d['creator']||!_0x4d8ab1['creator']){if(_0x4d8ab1['createdAt']>_0x44aa0d['createdAt'])break;_0x4044fa++;}else _0x4044fa++;}}return _0x4044fa;}['_getFromVersion'](_0x6a0c22){const _0x197217=this['repository']['getRevisions']();_0x197217['reverse'](),_0x197217['shift']();const _0x2c6035=_0x197217['find'](_0x3af5d6=>_0x3af5d6['toVersion']<=_0x6a0c22)['toVersion'];return _0x2c6035<this['_startingVersion']?this['_startingVersion']:_0x2c6035;}['_makeRevision']({name:_0x43638e,from:_0x3b9fcf,to:_0x524cc5,creatorId:_0x16cacf,id:_0x14c4ea}){const _0x202a45=this['buildRevisionData']({'from':_0x3b9fcf,'to':_0x524cc5});_0x202a45['name']=_0x43638e,_0x202a45['creatorId']=_0x16cacf,_0x202a45['id']=_0x14c4ea;const _0x285a73=this['addRevisionData'](_0x202a45);return this['adapter']&&this['_bufferUpdate'](_0x202a45['id'],_0x202a45,!0x0),_0x285a73;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x42c9a9){this['editor']=_0x42c9a9,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'](_0x3554cf){this['source']=_0x3554cf;const _0x23b5cd=new Map(),_0xb9443b=new Map(),_0x58557a=this['editor']['model']['document']['roots']['map'](_0x43b879=>_0x43b879['rootName']);for(const _0x123dfa of _0x58557a){const _0x2b346c=this['editor']['model']['document']['getRoot'](_0x123dfa),_0x3e6e66=x(_0x2b346c);_0x23b5cd['set'](_0x123dfa,_0x3e6e66),_0xb9443b['set'](_0x123dfa,Object['fromEntries'](_0x2b346c['getAttributes']()));}const _0x3567bd=Array['from'](this['editor']['model']['markers'])['map'](_0x4d9689=>[_0x4d9689['name'],_0x4d9689['getRange']()]),_0x276fbc=this['source']['version'];this['_saveMetaData'](_0x276fbc,_0x23b5cd,_0x3567bd,_0xb9443b),this['_startingRevisionId']=this['_revisionId'];const _0x36afa5=new Map(),_0x4681cf=new Map();for(const _0x2fe9b7 of _0x58557a){const _0x14c44a=N(_0x2fe9b7);_0x36afa5['set'](_0x2fe9b7,_0x14c44a),_0x4681cf['set'](_0x2fe9b7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x36afa5,[],_0x4681cf);}['getData'](_0x3113d1,_0x367683){if(this['_lastFrom']===_0x3113d1&&this['_lastTo']<=_0x367683)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x367683,!0x0);else{if(!this['_savedMetaData']['has'](_0x3113d1)){const _0x2eb813=this['_getPreviousFrom'](_0x3113d1);this['_calculateMetaData'](_0x2eb813,_0x3113d1,!0x1);}this['_calculateMetaData'](_0x3113d1,_0x367683,!0x0);}return this['_lastFrom']=_0x3113d1,this['_lastTo']=_0x367683,this['_getState']();}['loadState'](_0x27b085){const _0x4a169e=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x27b085['fromVersion'],this['_lastTo']=_0x27b085['toVersion'];for(const _0x1c902c in _0x27b085['diffData']){const _0x1266e7=_0x27b085['diffData'][_0x1c902c]['attachChange'],_0x390798=_0x54a4cf(_0x27b085['diffData'][_0x1c902c]['attributesBefore'])||{},_0x2cf41d=_0x4a169e['_makeModelFromViewString'](_0x27b085['diffData'][_0x1c902c]['deletions']);_0x2cf41d['rootName']=_0x1c902c,_0x2cf41d['_isAttached']=!_0x1266e7||!_0x1266e7['isAttached'],_0x2cf41d['isAttached']=()=>_0x2cf41d['_isAttached'],this['_baseRoots']['set'](_0x1c902c,_0x2cf41d),this['_baseRootsAttributes']['set'](_0x1c902c,_0x390798),_0x1266e7&&this['_touchedRoots']['set'](_0x1c902c,_0x1266e7);const _0x25666e=this['_makeIdsRoot'](_0x2cf41d);this['_baseIdsRoots']['set'](_0x1c902c,_0x25666e);for(const [_0x1223e8,_0x12402b]of _0x2cf41d['markers']){if(!_0x1223e8['startsWith']('revision:'))continue;const _0x10925e=_0x1223e8['split'](':')[0x2];for(const _0x14099b of _0x12402b['getWalker']({'singleCharacters':!0x0})){const _0x2d87e3=this['_getVidAttributeName'](_0x14099b),_0x278cd5='elementEnd'==_0x14099b['type']?_0x14099b['previousPosition']['path']['slice'](0x0,-0x1):_0x14099b['previousPosition']['path'],_0x4463f4=_0x25666e['getNodeByPath'](_0x278cd5)['getAttribute'](_0x2d87e3);this['_touched']['set'](_0x4463f4,{'userId':_0x10925e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x508a0d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x39e12b=>!this['_touched']['has'](_0x39e12b));let _0x7f2aca=0x0;const _0x527bde=new Map();for(const _0x5a7904 in _0x27b085['diffData']){const _0x50db7f=_0x27b085['diffData'][_0x5a7904]['attachChange'],_0x52af03=_0x54a4cf(_0x27b085['diffData'][_0x5a7904]['attributesAfter'])||{},_0x2121d0=_0x4a169e['_makeModelFromViewString'](_0x27b085['diffData'][_0x5a7904]['insertions']);_0x2121d0['rootName']=_0x5a7904,_0x2121d0['_isAttached']=!_0x50db7f||_0x50db7f['isAttached'],_0x2121d0['isAttached']=()=>_0x2121d0['_isAttached'],this['_diffRoots']['set'](_0x5a7904,_0x2121d0),this['_diffRootsAttributes']['set'](_0x5a7904,_0x52af03);const _0x5de91d=this['_makeIdsRoot'](_0x2121d0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5a7904,_0x5de91d),_0x527bde['set'](_0x5a7904,_0x2121d0['isAttached']()?_0x52af03:{});for(const [_0x4c717d,_0x266a40]of _0x2121d0['markers']){if(!_0x4c717d['startsWith']('revision:'))continue;const _0x381c86=_0x4c717d['split'](':')[0x2];for(const _0x1f4d9d of _0x266a40['getWalker']({'singleCharacters':!0x0})){const _0x469629=this['_getVidAttributeName'](_0x1f4d9d),_0x5eaf95=this['_revisionId']++,_0x442cd2='elementEnd'==_0x1f4d9d['type']?_0x1f4d9d['previousPosition']['path']['slice'](0x0,-0x1):_0x1f4d9d['previousPosition']['path'];_0x5de91d['getNodeByPath'](_0x442cd2)['_setAttribute'](_0x469629,_0x5eaf95),this['_touched']['set'](_0x5eaf95,{'userId':_0x381c86});}}for(const _0x8894ab of this['editor']['model']['createRangeIn'](_0x2121d0)['getWalker']({'singleCharacters':!0x0})){const _0x36ae88=this['_getVidAttributeName'](_0x8894ab),_0x59faf8='elementEnd'==_0x8894ab['type']?_0x8894ab['previousPosition']['path']['slice'](0x0,-0x1):_0x8894ab['previousPosition']['path'],_0x2a97fe=_0x5de91d['getNodeByPath'](_0x59faf8);_0x2a97fe['getAttribute'](_0x36ae88)>0x0||_0x2a97fe['_setAttribute'](_0x36ae88,_0x508a0d[_0x7f2aca++]);}for(const [_0x50cb00,_0x245384]of _0x2121d0['markers'])_0x50cb00['startsWith']('revision:')||this['_markers']['set'](_0x50cb00,_0x245384);}const _0x4147bc=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4147bc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4147bc,0x1));const _0x356784=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x356784),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x356784,0x1));const _0x3db502=Array['from'](this['_diffRoots'])['map'](([_0x41ec39,_0x3a0a89])=>[_0x41ec39,x(_0x3a0a89)]);this['_saveMetaData'](this['_lastTo'],_0x3db502,this['_markers'],_0x527bde);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d2819,_0x44e899,_0x131364,_0x2bf224){const _0x3a076a=new Map(_0x44e899),_0x249176=new Map(_0x54a4cf(_0x2bf224)),_0x1bd5c2=new Map();for(const [_0x5a4c58,_0x4aa217]of _0x131364)_0x1bd5c2['set'](_0x5a4c58,{'start':_0x4aa217['start']['clone'](),'end':_0x4aa217['end']['clone'](),'rootName':_0x4aa217['root']['rootName']});this['_savedMetaData']['set'](_0x4d2819,{'roots':_0x3a076a,'markers':_0x1bd5c2,'rootsAttributes':_0x249176});}['_removeMetaData'](_0x8a3901){this['_savedMetaData']['delete'](_0x8a3901);}['_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'](_0x1ab7fd,_0x18ab3a=null){let _0xc9c7a1=null;_0x1ab7fd['is']('documentFragment')||(_0xc9c7a1=new _0x52ff73(_0x1ab7fd['name'],{'vid_start':null===_0x18ab3a?this['_revisionId']++:_0x18ab3a++}));const _0x4bd872=[];for(const _0xa7a196 of _0x1ab7fd['getChildren']())if(_0xa7a196['is']('element')){_0x4bd872['push'](this['_makeIdsRoot'](_0xa7a196,_0x18ab3a));const _0x1ef59a=_0x4bd872[_0x4bd872['length']-0x1];null!==_0x18ab3a&&(_0x18ab3a=_0x1ef59a['is']('element','$text')?_0x1ef59a['getAttribute']('vid')+0x1:_0x1ef59a['getAttribute']('vid_end')+0x1);}else{for(let _0x456840=0x0;_0x456840<_0xa7a196['offsetSize'];_0x456840++)_0x4bd872['push'](new _0x52ff73('$text',{'vid':null===_0x18ab3a?this['_revisionId']++:_0x18ab3a++}));}if(_0x1ab7fd['is']('documentFragment')){const _0x2b13f1=N(_0x1ab7fd['rootName']);return _0x2b13f1['_insertChild'](0x0,_0x4bd872),_0x2b13f1;}return _0xc9c7a1['_setAttribute']('vid_end',null===_0x18ab3a?this['_revisionId']++:_0x18ab3a++),_0xc9c7a1['_insertChild'](0x0,_0x4bd872),_0xc9c7a1;}['_calculateMetaData'](_0x352274,_0x5d1775,_0x47f9ac){this['_reset']();const {roots:_0x21e68a,markers:_0x2326ac,rootsAttributes:_0x244b01}=this['_savedMetaData']['get'](_0x352274);this['_baseRoots']=new Map(_0x21e68a),this['_baseRootsAttributes']=new Map(_0x54a4cf(_0x244b01));for(const [_0x104d70,_0x58f2c0]of this['_baseRoots'])if('$graveyard'!==_0x104d70&&(this['_diffRoots']['set'](_0x104d70,x(_0x58f2c0)),this['_diffRootsAttributes']=new Map(_0x54a4cf(_0x244b01)),_0x47f9ac)){const _0x3e7dfe=this['_revisionId'];this['_idsRoots']['set'](_0x104d70,this['_makeIdsRoot'](_0x58f2c0)),this['_baseIdsRoots']['set'](_0x104d70,this['_makeIdsRoot'](_0x58f2c0,_0x3e7dfe));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x47f9ac&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1b37d3,_0x85ee01]of _0x2326ac){const _0x1305d4=this['_baseRoots']['get'](_0x85ee01['rootName']),_0x4594ab=this['_diffRoots']['get'](_0x85ee01['rootName']),_0x18dbe7=new _0x29c26e(this['_fixPosition'](_0x85ee01['start'],_0x1305d4),this['_fixPosition'](_0x85ee01['end'],_0x1305d4)),_0x23e58b=this['_fixRange'](_0x18dbe7,_0x4594ab);_0x1305d4['markers']['set'](_0x1b37d3,_0x18dbe7),this['_markers']['set'](_0x1b37d3,_0x23e58b);}this['_applyOperations'](_0x352274,_0x5d1775,_0x47f9ac);}['_applyOperations'](_0x12b3d,_0x4ae7d2,_0xffe0fb){for(const _0x2d7b76 of this['source']['getOperations'](_0x12b3d,_0x4ae7d2))this['_handleOperation'](_0x2d7b76,_0xffe0fb);for(const _0x2afc9a of this['_diffRoots']['values']())_0x2afc9a['markers']['clear']();for(const [_0x8802ee,_0x108c4c]of this['_markers']){this['_diffRoots']['get'](_0x108c4c['root']['rootName'])['markers']['set'](_0x8802ee,_0x108c4c['clone']());}const _0x5581df=new Map(),_0x42fc58=new Map();for(const [_0x4d1816,_0x5496fb]of this['_diffRoots'])_0x5581df['set'](_0x4d1816,x(_0x5496fb)),_0x42fc58['set'](_0x4d1816,this['_diffRootsAttributes']['get'](_0x4d1816));this['_saveMetaData'](_0x4ae7d2,_0x5581df,this['_markers'],_0x42fc58);}['_getPreviousFrom'](_0x3ae6da){const _0x518f18=Array['from'](this['_savedMetaData']['keys']());_0x518f18['sort']((_0x2f3db2,_0x2a3f42)=>_0x2f3db2-_0x2a3f42),_0x518f18['reverse']();for(const _0x137946 of _0x518f18)if(_0x137946<_0x3ae6da)return _0x137946;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x49c6db,_0x5a5180){const _0x30283c=Array['from'](_0x5a5180['markers'])['map'](([_0x43002b,_0x4e5ad6])=>[_0x43002b,this['_fixRange'](_0x4e5ad6,_0x49c6db)]);_0x49c6db['markers']=new Map(_0x30283c);}['_transformMarkers'](_0x1199c0){for(const _0x47b3ce of this['_markers']['values']()){const _0x2df4a4=_0x47b3ce['getTransformedByOperation'](_0x1199c0),_0x19f267=_0x29c26e['_createFromRanges'](_0x2df4a4);_0x47b3ce['start']=_0x19f267['start'],_0x47b3ce['end']=_0x19f267['end'];}}['_handleOperation'](_0x26418d,_0x1a586d){if('addRoot'!=_0x26418d['type']&&'detachRoot'!=_0x26418d['type']){if('insert'==_0x26418d['type']){const _0x5dffce=_0x26418d['position']['root']['rootName'];this['_diffRoots']['has'](_0x5dffce)||(this['_diffRoots']['set'](_0x5dffce,N(_0x5dffce,!0x0)),this['_diffRootsAttributes']['set'](_0x5dffce,{}),_0x1a586d&&this['_idsRoots']['set'](_0x5dffce,N(_0x5dffce,!0x0)));}else{if('addRootAttribute'==_0x26418d['type']||'removeRootAttribute'==_0x26418d['type']||'changeRootAttribute'==_0x26418d['type'])return void this['_handleRootAttributeOperation'](_0x26418d);'marker'==_0x26418d['type']&&this['_handleMarkerOperation'](_0x26418d);}if('marker'!==_0x26418d['type']){const _0x18a5c8=this['_cloneOperation'](_0x26418d,this['_diffRoots']);_0x18a5c8['_execute'](),this['_transformMarkers'](_0x18a5c8);}if(_0x1a586d)switch(_0x26418d['type']){case'insert':this['_handleInsertOperation'](_0x26418d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x26418d);break;case'merge':this['_handleMergeOperation'](_0x26418d);break;case'split':this['_handleSplitOperation'](_0x26418d);}}else this['_handleRootOperation'](_0x26418d,_0x1a586d);}['_cloneOperation'](_0x33abee,_0x4ea09c){const _0x6b6166=_0x33abee['clone']();return _0x6b6166['_authorId']=_0x33abee['_authorId'],this['_fixOperation'](_0x6b6166,_0x4ea09c),_0x6b6166;}['_getBaseVids'](_0x251684){return _0x251684['map'](_0x891880=>{const _0x32ceae=this['_getVidAttributeName'](_0x891880);return Number(_0x891880['item']['getAttribute'](_0x32ceae));});}['_generateTape'](_0x7a8afb,_0x4c593f){if(_0x7a8afb['is']('element','$text'))_0x4c593f['push']({'item':_0x7a8afb,'type':'text'});else{_0x7a8afb['is']('element')&&_0x4c593f['push']({'item':_0x7a8afb,'type':'elementStart'});for(const _0x3d9a11 of _0x7a8afb['getChildren']())this['_generateTape'](_0x3d9a11,_0x4c593f);_0x7a8afb['is']('element')&&_0x4c593f['push']({'item':_0x7a8afb,'type':'elementEnd'});}return _0x4c593f;}['_getState'](){const _0xfebcc7=new Map(this['_touched']),_0x1e2f35=new Map(_0xfebcc7),_0x17fd96=new Map(),_0x509c79={'insertions':{},'deletions':{}},_0x18d60c={'insertions':{},'deletions':{}},_0x414a84=new Map(),_0x1cffd0=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1cffd0['delete']('$graveyard');for(const _0x593a99 of _0x1cffd0){const _0x446b2f=this['_diffRoots']['get'](_0x593a99)||N(_0x593a99,!0x1),_0x365bbe=this['_baseRoots']['get'](_0x593a99)||N(_0x593a99,!0x1);_0x446b2f['isAttached']()||_0x365bbe['isAttached']()?(_0x509c79['insertions'][_0x593a99]=x(_0x446b2f),_0x509c79['deletions'][_0x593a99]=x(_0x365bbe),this['_copyMarkers'](_0x509c79['deletions'][_0x593a99],_0x365bbe),this['_copyMarkers'](_0x509c79['insertions'][_0x593a99],_0x446b2f),_0x18d60c['insertions'][_0x593a99]=this['_generateTape'](this['_idsRoots']['get'](_0x593a99),[]),_0x18d60c['deletions'][_0x593a99]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x593a99)||N(_0x593a99,!0x1),[])):_0x1cffd0['delete'](_0x593a99);}for(const _0x3dee02 of _0x1cffd0){const _0x1aebac=_0x18d60c['insertions'][_0x3dee02];for(const _0x39421b of _0x1aebac){const _0x3896f1=this['_getVidAttributeName'](_0x39421b),_0xdb4f63=_0x39421b['item']['getAttribute'](_0x3896f1);_0x1e2f35['delete'](_0xdb4f63),_0xdb4f63>=this['_startingRevisionId']&&_0x17fd96['set'](_0xdb4f63,_0xfebcc7['get'](_0xdb4f63));}}for(const _0x3c8d62 of _0x1cffd0){const _0x153b97=_0x18d60c['insertions'][_0x3c8d62],_0x9e6567=this['_getBaseVids'](_0x18d60c['deletions'][_0x3c8d62]);let _0x49328b=0x0;for(const _0x492d59 of _0x153b97){const _0x51d9fc=this['_getVidAttributeName'](_0x492d59),_0x2f87de=_0x492d59['item']['getAttribute'](_0x51d9fc);if(!_0x17fd96['has'](_0x2f87de)&&!_0x414a84['has'](_0x2f87de)){if(_0x1e2f35['has'](_0x2f87de))_0x49328b++;else{if(_0x2f87de!=_0x9e6567[_0x49328b]){const _0x8f847e=_0xfebcc7['get'](_0x2f87de)||_0xfebcc7['get'](_0x9e6567[_0x49328b]);for(;_0x2f87de!=_0x9e6567[_0x49328b];)_0x1e2f35['has'](_0x9e6567[_0x49328b])||(_0x414a84['set'](_0x9e6567[_0x49328b],_0x8f847e),_0xfebcc7['set'](_0x9e6567[_0x49328b],_0x8f847e)),_0x49328b++;}_0x49328b++;}}}}for(const _0x5aac3c of _0x1cffd0){const _0x10510a=_0x18d60c['insertions'][_0x5aac3c];for(const _0x508032 of _0x10510a){const _0xe992b8=this['_getVidAttributeName'](_0x508032),_0x21ad62=_0x508032['item']['getAttribute'](_0xe992b8);if(_0x414a84['has'](_0x21ad62)){const _0x252c0f=_0x414a84['get'](_0x21ad62);_0x1e2f35['has'](_0x21ad62)||_0x1e2f35['set'](_0x21ad62,{..._0x252c0f}),_0x17fd96['set'](_0x21ad62,{..._0x252c0f});}}}for(const _0x4b36bd of _0x1e2f35['keys']())_0x4b36bd>=this['_startingRevisionId']&&_0x1e2f35['delete'](_0x4b36bd);const _0x2666d8=new Map();for(const _0x71a03 of _0x1cffd0){let _0x3c8423=_0x18d60c['insertions'][_0x71a03];for(const _0x398492 of _0x3c8423)if(_0x398492['item']['is']('element','tableCell')){const _0x51ffe5=this['_getVidAttributeName'](_0x398492),_0x25fe22=_0x398492['item']['getAttribute'](_0x51ffe5);if(_0x17fd96['has'](_0x25fe22)){const _0x23debb=_0x398492['item']['parent']['parent']['getAttribute']('vid_start'),_0x4bfbae=_0x2666d8['get'](_0x23debb)||new Set();_0x4bfbae['add'](_0x17fd96['get'](_0x25fe22)['userId']),_0x2666d8['set'](_0x23debb,_0x4bfbae);}}_0x3c8423=_0x18d60c['deletions'][_0x71a03];for(const _0x5cc6d9 of _0x3c8423)if(_0x5cc6d9['item']['is']('element','tableCell')){const _0x3db44e=this['_getVidAttributeName'](_0x5cc6d9),_0x2d8297=_0x5cc6d9['item']['getAttribute'](_0x3db44e);if(_0x1e2f35['has'](_0x2d8297)){const _0x247a9f=_0x5cc6d9['item']['parent']['parent']['getAttribute']('vid_start'),_0x3e20da=_0x2666d8['get'](_0x247a9f)||new Set();_0x3e20da['add'](_0x1e2f35['get'](_0x2d8297)['userId']),_0x2666d8['set'](_0x247a9f,_0x3e20da);}}for(const _0x11ea48 of _0x2666d8['keys']())(_0x17fd96['has'](_0x11ea48)||_0x1e2f35['has'](_0x11ea48))&&_0x2666d8['delete'](_0x11ea48);}for(const _0x17fa21 of _0x1cffd0){const _0x18163d=_0x18d60c['insertions'][_0x17fa21];let _0xd1a1a2=null,_0x1c8d16=null;for(const _0x5f3ce1 of _0x18163d){const _0x9d91ed=this['_getVidAttributeName'](_0x5f3ce1),_0x31c890=_0x5f3ce1['item']['getAttribute'](_0x9d91ed),_0xa72eea=_0x2666d8['get'](_0x31c890);_0xa72eea&&'elementStart'==_0x5f3ce1['type']&&(_0xd1a1a2=Array['from'](_0xa72eea)[0x0],_0x1c8d16=_0x5f3ce1['item']['getAttribute']('vid_end')),_0xd1a1a2&&(_0x1e2f35['set'](_0x31c890,{'userId':_0xd1a1a2}),_0x17fd96['set'](_0x31c890,{'userId':_0xd1a1a2})),_0x31c890==_0x1c8d16&&(_0xd1a1a2=null,_0x1c8d16=null);}}const _0x844249={},_0x45fc6f=new Set();for(const _0x366154 of _0x1cffd0){const _0x4bb0c7=_0x509c79['deletions'][_0x366154],_0x213f95=_0x509c79['insertions'][_0x366154];for(const {userId:_0x5818b7}of this['_touchedMarkers']['values']())null!==_0x5818b7&&_0x45fc6f['add'](_0x5818b7);for(const {userId:_0x4bb67a}of this['_touchedRoots']['values']())null!==_0x4bb67a&&_0x45fc6f['add'](_0x4bb67a);this['_markChanges'](_0x213f95,_0x18d60c['insertions'][_0x366154],_0x17fd96,'insertion',_0x45fc6f),this['_markChanges'](_0x4bb0c7,_0x18d60c['deletions'][_0x366154],_0x1e2f35,'deletion',_0x45fc6f),_0x844249[_0x366154]={'insertions':this['_prepareViewToSave'](_0x213f95),'deletions':this['_prepareViewToSave'](_0x4bb0c7),'attachChange':this['_touchedRoots']['get'](_0x366154)||null,'attributesBefore':_0x54a4cf(this['_baseRootsAttributes']['get'](_0x366154))||{},'attributesAfter':_0x54a4cf(this['_diffRootsAttributes']['get'](_0x366154))};}return{'diffData':_0x844249,'authorsIds':Array['from'](_0x45fc6f)};}['_processRootBeforeSave'](_0x3e6647){for(const [,_0x4f8e8a]of _0x3e6647['markers']){const _0x62c6c1=_0x4f8e8a['start']['getAncestors']()['filter'](_0x58d9f3=>'tableCell'==_0x58d9f3['name']);for(const _0x404d24 of _0x62c6c1)0x1==_0x404d24['childCount']&&_0x404d24['getChild'](0x0)['is']('element','paragraph')&&_0x404d24['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x132d34){this['_processRootBeforeSave'](_0x132d34);const _0x32181c=this['editor']['data']['toView'](_0x132d34,{}),_0x57be27=Array['from'](_0x32181c['getChildren']())['map'](_0x566f8c=>this['_getViewJson'](_0x566f8c));return JSON['stringify'](_0x57be27);}['_getViewJson'](_0x494c46){if(_0x494c46['is']('$text'))return _0x494c46['data'];{const _0x58aed7=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1b97c9=_0x494c46,_0x2f9f2d=this['editor']['data']['htmlProcessor']['domConverter'],_0x436830={'type':_0x58aed7['_getTypeCharForViewElement'](_0x1b97c9),'name':_0x1b97c9['name'],'attributes':Array['from'](_0x1b97c9['getAttributes']()),'children':Array['from'](_0x1b97c9['getChildren']())['map'](_0x5b1291=>this['_getViewJson'](_0x5b1291))};if(_0x494c46['is']('uiElement')&&'$comment'!=_0x494c46['name']){const _0x2f3de1=_0x494c46['render'](_0x2f9f2d['domDocument'],_0x2f9f2d);_0x436830['children']['push'](_0x2f3de1['outerHTML']);}else{if(_0x494c46['is']('rawElement')){const _0x4952d0=_0x2f9f2d['domDocument']['createElement'](_0x1b97c9['name']);_0x494c46['render'](_0x4952d0,_0x2f9f2d),_0x436830['children']['push'](_0x4952d0['innerHTML']);}}const _0x24fe6d=Array['from'](_0x1b97c9['getCustomProperties']());_0x24fe6d['length']>0x0&&(_0x436830['customProperties']=_0x24fe6d);const _0x1f4a2c=_0x1b97c9['getFillerOffset']();return null!==_0x1f4a2c&&(_0x436830['fillerOffset']=_0x1f4a2c),_0x436830;}}['_markChanges'](_0x27bbdd,_0x24a08e,_0x5a810d,_0x501acd,_0x5ed221){let _0x1586f7=null,_0x2a5cf2=null,_0x4e577d=0x0;const _0x3a08d2=this['editor']['model'];for(let _0x54d110=0x0;_0x54d110<_0x24a08e['length'];_0x54d110++){const _0x4614c6=this['_getVidAttributeName'](_0x24a08e[_0x54d110]),_0x61228f=_0x24a08e[_0x54d110]['item']['getAttribute'](_0x4614c6),_0x3de985=_0x5a810d['get'](_0x61228f),_0x4457c4=_0x54d110==_0x24a08e['length']-0x1;(!_0x1586f7&&_0x3de985&&(_0x1586f7=_0x3de985,_0x2a5cf2=_0x24a08e[_0x54d110]),_0x1586f7&&(!_0x3de985||_0x3de985['userId']!=_0x1586f7['userId']))&&(_0x205b9a(_0x3de985,P(_0x2a5cf2,_0x27bbdd,_0x3a08d2),P(_0x24a08e[_0x54d110],_0x27bbdd,_0x3a08d2)),_0x1586f7=_0x3de985||null,_0x2a5cf2=_0x3de985?_0x24a08e[_0x54d110]:null),_0x1586f7&&_0x4457c4&&_0x205b9a(_0x3de985,P(_0x2a5cf2,_0x27bbdd,_0x3a08d2),V(_0x24a08e[_0x54d110],_0x27bbdd,_0x3a08d2));}function _0x205b9a(_0x403a49,_0x59ce0d,_0x43fae8){const _0x2d4504=_0x1586f7['userId'],_0x3928b2='revision:'+_0x501acd+':'+_0x2d4504+':'+_0x4e577d++,_0x3b1d23=_0x3a08d2['createRange'](_0x59ce0d,_0x43fae8);_0x27bbdd['markers']['set'](_0x3928b2,_0x3b1d23),null!==_0x2d4504&&_0x5ed221['add'](_0x2d4504);}}['_getVidAttributeName'](_0xefd2fe){switch(_0xefd2fe['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x200849,_0x5712f8){_0x200849['baseVersion']=null;for(const _0xa5cf67 in _0x200849){const _0xcb1d2f=_0x200849[_0xa5cf67];if(_0xcb1d2f instanceof _0x2daffe){const _0x5623e6=_0x5712f8['get'](_0xcb1d2f['root']['rootName']);_0x200849[_0xa5cf67]=this['_fixPosition'](_0xcb1d2f,_0x5623e6);}if(_0xcb1d2f instanceof _0x29c26e){const _0x29bf01=_0x5712f8['get'](_0xcb1d2f['root']['rootName']);_0x200849[_0xa5cf67]=this['_fixRange'](_0xcb1d2f,_0x29bf01);}'root'===_0xa5cf67&&(_0x200849['root']=_0x5712f8['get'](_0x200849['root']['rootName']));}}['_fixRange'](_0x14c279,_0x140bc3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x14c279['start'],_0x140bc3),this['_fixPosition'](_0x14c279['end'],_0x140bc3));}['_fixPosition'](_0xc3dae0,_0x3ab7ce){return this['editor']['model']['createPositionFromPath'](_0x3ab7ce,_0xc3dae0['path'],_0xc3dae0['stickiness']);}['_handleInsertOperation'](_0x2fe48c){const _0x3ce719=this['_idsRoots']['get'](_0x2fe48c['position']['root']['rootName']),_0x592ca7=this['_fixPosition'](_0x2fe48c['position'],_0x3ce719),_0x171e3a=null===_0x2fe48c['_authorId']?null:_0x2fe48c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40e404=_0x592ca7['parent'],_0x2ad04d=this['_revisionId'],_0x23e708=[];for(const _0x5c3951 of _0x2fe48c['nodes'])if(_0x5c3951['is']('element'))_0x23e708['push'](this['_makeIdsRoot'](_0x5c3951));else{for(let _0x55d2b8=0x0;_0x55d2b8<_0x5c3951['offsetSize'];_0x55d2b8++)_0x23e708['push'](new _0x52ff73('$text',{'vid':this['_revisionId']++}));}const _0x4b0ca3=this['_revisionId'];for(let _0x17cee7=_0x2ad04d;_0x17cee7<_0x4b0ca3;_0x17cee7++)this['_touched']['set'](_0x17cee7,{'userId':_0x171e3a});_0x40e404['_insertChild'](_0x592ca7['offset'],_0x23e708);}['_handleMoveOperation'](_0x236718){(_0x236718=this['_cloneOperation'](_0x236718,this['_idsRoots']))['_execute']();const _0x51ac49=null===_0x236718['_authorId']?null:_0x236718['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36c9fc=_0x236718['getMovedRangeStart'](),_0x7788ab=_0x36c9fc['parent'],_0x57627b=_0x36c9fc['offset'];!function _0x57af08(_0x2214d7,_0x44de37,_0x2cd26b,_0x23f9d3){for(let _0x5a6821=_0x2cd26b;_0x5a6821<_0x23f9d3;_0x5a6821++){const _0x1c701d=_0x44de37['getChild'](_0x5a6821);_0x1c701d['is']('element','$text')?_0x2214d7['set'](_0x1c701d['getAttribute']('vid'),{'userId':_0x51ac49}):(_0x2214d7['set'](_0x1c701d['getAttribute']('vid_start'),{'userId':_0x51ac49}),_0x57af08(_0x2214d7,_0x1c701d,0x0,_0x1c701d['childCount']),_0x2214d7['set'](_0x1c701d['getAttribute']('vid_end'),{'userId':_0x51ac49}));}}(this['_touched'],_0x7788ab,_0x57627b,_0x57627b+_0x236718['howMany']);}['_handleMergeOperation'](_0x5c27e8){const _0x441926=null===(_0x5c27e8=this['_cloneOperation'](_0x5c27e8,this['_idsRoots']))['_authorId']?null:_0x5c27e8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x56ad2a=_0x5c27e8['targetPosition']['parent'],_0x45fb0f=_0x5c27e8['sourcePosition']['parent'],_0x3cf368=_0x56ad2a['getAttribute']('vid_end'),_0x46bf0b=_0x45fb0f['getAttribute']('vid_start');_0x56ad2a['_setAttribute']('vid_end',_0x45fb0f['getAttribute']('vid_end')),_0x45fb0f['_setAttribute']('vid_end',_0x3cf368),this['_touched']['set'](_0x46bf0b,{'userId':_0x441926}),this['_touched']['set'](_0x3cf368,{'userId':_0x441926}),_0x5c27e8['_execute']();}['_handleSplitOperation'](_0x18ff09){const _0x286297=null===(_0x18ff09=this['_cloneOperation'](_0x18ff09,this['_idsRoots']))['_authorId']?null:_0x18ff09['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7b6775=_0x18ff09['graveyardPosition'],_0x53095d=_0x18ff09['splitPosition']['parent'];_0x18ff09['_execute']();const _0x39bd99=_0x53095d['getAttribute']('vid_end'),_0x13f94a=_0x18ff09['insertionPosition']['nodeAfter'];if(_0x7b6775){const _0x315a76=_0x13f94a['getAttribute']('vid_end'),_0x572d43=_0x53095d['getAttribute']('vid_end');_0x53095d['_setAttribute']('vid_end',_0x315a76),_0x13f94a['_setAttribute']('vid_end',_0x572d43),this['_touched']['set'](_0x53095d['getAttribute']('vid_end'),{'userId':_0x286297}),this['_touched']['set'](_0x13f94a['getAttribute']('vid_start'),{'userId':_0x286297});}else{const _0x12ea6e=this['_revisionId']++,_0x2800cf=this['_revisionId']++;_0x53095d['_setAttribute']('vid_end',_0x12ea6e),_0x13f94a['_setAttribute']('vid_start',_0x2800cf),_0x13f94a['_setAttribute']('vid_end',_0x39bd99),this['_touched']['set'](_0x12ea6e,{'userId':_0x286297}),this['_touched']['set'](_0x2800cf,{'userId':_0x286297});}}['_handleMarkerOperation'](_0x399b29){if(!_0x399b29['affectsData'])return;const _0x196b87=(_0x399b29=this['_cloneOperation'](_0x399b29,this['_diffRoots']))['oldRange']?_0x399b29['oldRange']['root']:null,_0x2766ae=_0x399b29['newRange']?_0x399b29['newRange']['root']:null;_0x196b87&&this['_markers']['delete'](_0x399b29['name']),_0x2766ae&&this['_markers']['set'](_0x399b29['name'],_0x399b29['newRange']['clone']());const _0x5e7c8e=null===_0x399b29['_authorId']?null:_0x399b29['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4cd452=_0x399b29['name'];if(!this['_touchedMarkers']['has'](_0x4cd452))return void this['_touchedMarkers']['set'](_0x4cd452,{'range':_0x399b29['oldRange'],'userId':_0x5e7c8e});const _0x128b12=this['_touchedMarkers']['get'](_0x4cd452),_0x1214d5=_0x128b12['range'],_0xa254ee=_0x399b29['newRange'];null==_0x1214d5&&null==_0xa254ee||_0x1214d5&&_0xa254ee&&_0x1214d5['isEqual'](_0xa254ee)?this['_touchedMarkers']['delete'](_0x399b29['name']):_0x128b12['userId']=_0x5e7c8e;}['_handleRootOperation'](_0x1ef2c4,_0x5a101c){this['_diffRoots']['has'](_0x1ef2c4['rootName'])?this['_diffRoots']['get'](_0x1ef2c4['rootName'])['_isAttached']=_0x1ef2c4['isAdd']:(this['_diffRoots']['set'](_0x1ef2c4['rootName'],N(_0x1ef2c4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1ef2c4['rootName'],{}),_0x5a101c&&this['_idsRoots']['set'](_0x1ef2c4['rootName'],N(_0x1ef2c4['rootName'],!0x0)));const _0x5dbe8b=null===_0x1ef2c4['_authorId']?null:_0x1ef2c4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x188b62=this['_touchedRoots']['get'](_0x1ef2c4['rootName']);_0x188b62&&_0x188b62['userId']===_0x5dbe8b?this['_touchedRoots']['delete'](_0x1ef2c4['rootName']):this['_touchedRoots']['set'](_0x1ef2c4['rootName'],{'userId':_0x5dbe8b,'isAttached':_0x1ef2c4['isAdd']});}['_handleRootAttributeOperation'](_0x118b0c){const _0x2208de=this['_diffRootsAttributes']['get'](_0x118b0c['root']['rootName']);null===_0x118b0c['newValue']?delete _0x2208de[_0x118b0c['key']]:_0x2208de[_0x118b0c['key']]=_0x118b0c['newValue'];}}function x(_0x2bec50){const _0x56f684=N(_0x2bec50['rootName'],_0x2bec50['isAttached']());for(const _0x5ea7fb of _0x2bec50['getChildren']()){const _0x1ace53=_0x5ea7fb['_clone'](!0x0);_0x56f684['_appendChild'](_0x1ace53);}return _0x56f684;}function N(_0x274666,_0x34a2d5=!0x0){const _0x40134b=new _0x59ddab();return _0x40134b['rootName']=_0x274666,_0x40134b['_isAttached']=_0x34a2d5,_0x40134b['isAttached']=()=>_0x40134b['_isAttached'],_0x40134b;}function P(_0x28ad40,_0x346949,_0x2b7c5d){const _0x2f3712='elementEnd'==_0x28ad40['type']?_0x2b7c5d['createPositionAt'](_0x28ad40['item'],'end'):_0x2b7c5d['createPositionBefore'](_0x28ad40['item']);return _0x2b7c5d['createPositionFromPath'](_0x346949,_0x2f3712['path'],_0x2f3712['stickiness']);}function V(_0x5c09db,_0x4f9330,_0x1d81d6){const _0x51b168='elementStart'==_0x5c09db['type']?_0x1d81d6['createPositionAt'](_0x5c09db['item'],0x0):_0x1d81d6['createPositionAfter'](_0x5c09db['item']);return _0x1d81d6['createPositionFromPath'](_0x4f9330,_0x51b168['path'],_0x51b168['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x287489(_0x536e3a){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2b1604,_0x363abc){super(_0x2b1604),this['focusTracker']=new _0x5a66a4(),this['keystrokes']=new _0x502a61(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x363abc),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x189d84({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2f82dc=_0x4f8d3a=>_0x4f8d3a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2f82dc),this['keystrokes']['set']('arrowleft',_0x2f82dc),this['keystrokes']['set']('arrowup',_0x2f82dc),this['keystrokes']['set']('arrowdown',_0x2f82dc);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x362c35){this['revisionNameInputView']['fieldView']['element']['value']=_0x362c35['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xda6dde){const _0x779ab4=new et(this['locale'],ti),_0x29abe9=_0x779ab4['fieldView'];_0x29abe9['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x28fc01=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0xda6dde&&(_0x28fc01+='\x20('+R(this['locale'],'optional')+')'),(_0x779ab4['label']=_0x28fc01,_0x29abe9['on']('input',()=>{this['revisionNameInputValue']=_0x29abe9['element']['value']['trim']();}),_0x779ab4);}}class v extends _0x206761{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x3080c5=this['editor'],_0x1d1e76=_0x3080c5['plugins']['get']('RevisionTracker');_0x3080c5['ui']['componentFactory']['add']('revisionHistory',_0x32a883=>{const _0x332308=_0x89cc31(_0x32a883),_0x38612f=_0x332308['panelView']['children'],_0xc6dc1=new _0x397152(_0x32a883),_0x1ecfb1=new _0xd75d51(_0x32a883),_0x11b8f0=new _0x3e37e6(_0x32a883),_0x523311=new _0xd75d51(_0x32a883),_0x3ae0f5=new _0x3e37e6(_0x32a883);return _0x332308['bind']('isEnabled')['to'](_0x1d1e76,'isReady',_0x1d1e76,'isEnabled',_0x3080c5,'isReadOnly',(_0x556116,_0x5089da,_0x5d0e54)=>_0x556116&&_0x5089da&&!_0x5d0e54),_0x332308['buttonView']['set']({'icon':_0xc29cc8,'label':R(_0x32a883,'Revision\x20history'),'tooltip':!0x0}),_0x11b8f0['set']({'label':R(_0x32a883,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x11b8f0['bind']('isEnabled')['to'](_0x1d1e76,'isReady',_0x1d1e76,'isEnabled',_0x3080c5,'isReadOnly',(_0x25ace4,_0xbd0b8b,_0x22eec4)=>_0x25ace4&&_0xbd0b8b&&!_0x22eec4),_0x11b8f0['on']('execute',()=>this['_showDialog']()),_0x3ae0f5['set']({'label':R(_0x32a883,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3ae0f5['bind']('isEnabled')['to'](_0x1d1e76,'isReady',_0x3080c5,'isReadOnly',(_0x5d500d,_0x3c75b7)=>_0x5d500d&&!_0x3c75b7),_0x3ae0f5['on']('execute',()=>{_0x3080c5['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x332308['isOpen']=!0x1,_0x3080c5['editing']['view']['focus']();}),_0x1ecfb1['children']['add'](_0x11b8f0),_0x523311['children']['add'](_0x3ae0f5),_0xc6dc1['role']='menu',_0xc6dc1['items']['addMany']([_0x1ecfb1,_0x523311]),_0x38612f['add'](_0xc6dc1),_0x332308;}),_0x3080c5['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3b5c89=this['editor'],_0x5e335d=_0x3b5c89['locale'],_0x55d131=new _0x1d58da(_0x5e335d),_0x36df00=new _0x12ddb1(_0x5e335d);_0x55d131['buttonView']['set']({'icon':_0xc29cc8,'label':R(_0x5e335d,'Revision\x20history')});const _0x5641b3=new _0x535895(_0x5e335d,_0x55d131),_0x2e7f67=new _0x423573(_0x5e335d);_0x2e7f67['set']({'label':R(_0x5e335d,'Save\x20current\x20revision')}),_0x2e7f67['delegate']('execute')['to'](_0x55d131),_0x2e7f67['on']('execute',()=>{this['_showDialog']();}),_0x5641b3['children']['add'](_0x2e7f67),_0x36df00['items']['add'](_0x5641b3);const _0x43bfde=new _0x535895(_0x5e335d,_0x55d131),_0xd56eb3=new _0x423573(_0x5e335d);return _0xd56eb3['set']({'label':R(_0x5e335d,'Open\x20revision\x20history')}),_0xd56eb3['delegate']('execute')['to'](_0x55d131),_0xd56eb3['on']('execute',()=>{_0x3b5c89['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x43bfde['children']['add'](_0xd56eb3),_0x36df00['items']['add'](_0x43bfde),_0x55d131['panelView']['children']['add'](_0x36df00),_0x55d131;}['_showDialog'](){const _0x2040d1=this['editor'],_0x113739=_0x2040d1['locale'],_0x324682=_0x2040d1['plugins']['get']('Dialog'),_0x753e0=_0x2040d1['plugins']['get']('RevisionTracker');function _0x492c1f(_0x40c0a0){_0x2040d1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x40c0a0['revisionName']?_0x40c0a0['revisionNameInputView']['errorText']=R(_0x113739,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2040d1['plugins']['get'](h)['saveRevision']({'name':_0x40c0a0['revisionName']}),_0x324682['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x492c1f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x324682['show']({'id':'revisionSave','title':R(_0x113739,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2040d1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x324682['hide']()},{'label':R(_0x2040d1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x520c49){_0x520c49['bind']('isEnabled')['to'](_0x753e0,'isReady',_0x753e0,'isEnabled',_0x2040d1,'isReadOnly',(_0x56513a,_0x332fe0,_0x4da425)=>_0x56513a&&_0x332fe0&&!_0x4da425);},'onExecute':()=>_0x492c1f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3baeb9=this['editor'],_0x5b68a7=_0x3baeb9['locale'];this['_saveRevisionFormView']=new me(_0x5b68a7,_0x3baeb9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x536e3a{['changeId'];['_model'];constructor(_0x529400,_0x405483){super(_0x529400),this['_model']=_0x405483,this['changeId']=_0x405483['id'];const _0x1e5afb=this['bindTemplate'],_0x27e5f2=R(_0x529400,_0x405483['data']['isSuggestion']?'Suggested\x20by':'add'==_0x405483['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x405483['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1e5afb['to']('type',_0x5666a2=>'ck-revision-change__'+_0x5666a2)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x27e5f2}]},{'text':'\x20'+_0x405483['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4cf817(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x50b0a5){super(),this['id']=_0x50b0a5['id']||_0x2e3833(),this['author']=_0x50b0a5['author'],this['type']=_0x50b0a5['type'],this['data']=_0x50b0a5['data']||{},this['rootName']=_0x50b0a5['rootName'],this['set']('createdAt',_0x50b0a5['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5c39f5,_0xc73b41){this['newRevisionId']=_0x5c39f5,this['oldRevisionId']=_0xc73b41,this['changes']=new _0x582366();}['_setChanges'](_0x1839ba){for(const _0x24816a of _0x1839ba)this['changes']['add'](_0x24816a);}}class l extends _0x206761{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x332373,_0x570008,S,$];}constructor(_0x4a1165){super(_0x4a1165),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4dbe39,_0x30398f,_0xf34ebc)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xfed1c4=>{for(const _0x46f354 of this['editor']['editing']['view']['document']['roots'])_0xf34ebc?_0xfed1c4['removeClass']('ck-editor__editable__overlay',_0x46f354):_0xfed1c4['addClass']('ck-editor__editable__overlay',_0x46f354);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x22ed25=>null!==_0x22ed25),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5af1d2,_0x29ccf0,_0x5a80aa)=>_0x5af1d2&&_0x5a80aa?_0x29ccf0['changes']['getIndex'](_0x5a80aa):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3e64e4,_0x19e185)=>_0x3e64e4?_0x19e185['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x570008);}['init'](){const _0x352a00=this['editor'],_0x7eefa5=new rt(_0x352a00,{'direction':'backward'}),_0x445ef3=new rt(_0x352a00,{'direction':'forward'});(_0x352a00['commands']['add']('showPreviousChange',_0x7eefa5),_0x352a00['commands']['add']('showNextChange',_0x445ef3),_0x352a00['commands']['add']('restoreRevision',new nt(_0x352a00)),this['on']('change:numberOfChanges',()=>{_0x7eefa5['refresh'](),_0x445ef3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x352a00['enableReadOnlyMode']('revision-viewer'),_0x352a00['plugins']['has']('WidgetToolbarRepository'))&&_0x352a00['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x435718){return await this['_utils']['loadRevisionData'](_0x435718,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x435718);}async['getRevisionRootsAttributes'](_0x548be8){return await this['_utils']['loadRevisionData'](_0x548be8,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x548be8);}async['compare'](_0x3bda15,_0x35dfe0,_0x3855de=!0x1){if(!this['isEnabled'])return;const _0x595fba=this['diff'],_0x4722c9=this['repository'],_0x47b92c='string'==typeof _0x3bda15?_0x4722c9['getRevision'](_0x3bda15):_0x3bda15,_0x555c1b='string'==typeof _0x35dfe0?_0x4722c9['getRevision'](_0x35dfe0):_0x35dfe0,_0x5f107e=_0x47b92c['id'],_0x32f9e7=_0x555c1b?_0x555c1b['id']:null;if(!_0x3855de&&this['diff']&&this['diff']['newRevisionId']===_0x5f107e&&this['diff']['oldRevisionId']===_0x32f9e7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x5f107e,_0x32f9e7);const _0x14714d=this['_getRevisionsRange'](_0x47b92c,_0x555c1b,!0x0)['map'](_0x8e2ed=>this['_utils']['loadRevisionData'](_0x8e2ed,this['adapter']));return _0x14714d['push'](new Promise(_0x347764=>{setTimeout(_0x347764,0x14);})),Promise['all'](_0x14714d)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40bc58=this['_getDiff'](_0x5f107e,_0x32f9e7);for(const _0x2d2b99 of _0x40bc58['changes'])this['_changeIdToChange']['set'](_0x2d2b99['id'],_0x2d2b99);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x59faba=>{for(const _0x495d1a of this['editor']['model']['document']['getRootNames']())_0x59faba['detachRoot'](_0x495d1a);for(const _0xe5c5c8 of Object['keys'](_0x40bc58['model'])){const _0x1ff220=_0x59faba['addRoot'](_0xe5c5c8);for(const _0x840905 of Object['keys'](_0x40bc58['attributes'][_0xe5c5c8]))_0x59faba['setAttribute'](_0x840905,_0x40bc58['attributes'][_0xe5c5c8][_0x840905],_0x1ff220);_0x59faba['insert'](_0x40bc58['model'][_0xe5c5c8],_0x1ff220,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40bc58['changes'])),this['isReady']=!0x0;})['catch'](_0xa00630=>{console['error'](_0xa00630),this['_cleanUp'](),_0x595fba&&(this['diff']=_0x595fba),this['isReady']=!0x0;});}['addRevisionData'](_0x4ec228,_0x539ebd){const _0x3f4001=this['repository']['createRevision'](_0x4ec228);return _0x3f4001['on']('_update',(_0x527639,_0x3cf797,_0x21b002)=>_0x539ebd(_0x3cf797,_0x21b002,_0x3f4001)),this['repository']['addRevision'](_0x3f4001),_0x3f4001;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x135a7e=>{for(const _0xb650b3 of this['editor']['model']['document']['getRootNames']())_0x135a7e['detachRoot'](_0xb650b3);});}['_sortAndFilterDiffChanges'](_0x4dc1fe){const _0x3ffeab=[],_0x207392=new Map();for(const _0x280186 of this['editor']['model']['document']['getRootNames']()){const _0x4869bd=this['editor']['editing']['view']['getDomRoot'](_0x280186);if(!_0x4869bd)continue;const _0x3fc272=_0x4869bd['getClientRects']()['item'](0x0);_0x3fc272&&(_0x3ffeab['push'](_0x280186),_0x207392['set'](_0x280186,_0x3fc272));}return _0x3ffeab['sort']((_0x37753f,_0x23537e)=>{const _0x1a19dc=_0x207392['get'](_0x37753f),_0x56e600=_0x207392['get'](_0x23537e);return _0x1a19dc['y']-_0x56e600['y']||_0x1a19dc['x']-_0x56e600['x'];}),(_0x4dc1fe=_0x4dc1fe['filter'](_0x4a715f=>_0x3ffeab['includes'](_0x4a715f['rootName'])))['sort']((_0x41b887,_0x6cea94)=>_0x3ffeab['indexOf'](_0x41b887['rootName'])-_0x3ffeab['indexOf'](_0x6cea94['rootName'])),_0x4dc1fe;}['_makeTape'](_0x417e68){const _0x594789=Array['from'](_0x417e68['markers'])['filter'](([_0x4d35c7,_0x12a0e3])=>_0x4d35c7['startsWith']('revision:')&&!_0x12a0e3['isCollapsed']),_0x3b3a71=Array['from'](this['editor']['model']['createRangeIn'](_0x417e68)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x594789['length'])for(const _0x3e68b0 of _0x3b3a71){const [_0x2745d0,_0x41e195]=_0x594789[0x0],[,_0x434ce7,_0x12748d]=_0x2745d0['split'](':');if(_0x41e195['end']['isEqual'](_0x3e68b0['nextPosition'])&&_0x594789['shift'](),(_0x3e68b0['previousPosition']['isEqual'](_0x41e195['start'])||_0x3e68b0['previousPosition']['isAfter'](_0x41e195['start']))&&('insertion'==_0x434ce7?_0x3e68b0['isAdded']={'userId':_0x12748d}:'deletion'==_0x434ce7&&(_0x3e68b0['isRemoved']={'userId':_0x12748d})),0x0==_0x594789['length'])break;}return _0x3b3a71;}['_refreshStartEndIndex'](_0x1e8cda){const _0x409f99=new Map();for(let _0x1fb5f1=0x0;_0x1fb5f1<_0x1e8cda['length'];_0x1fb5f1++)'text'===_0x1e8cda[_0x1fb5f1]['type']?(_0x1e8cda[_0x1fb5f1]['item']['startIndex']=_0x1fb5f1,_0x1e8cda[_0x1fb5f1]['item']['endIndex']=_0x1fb5f1):('elementStart'===_0x1e8cda[_0x1fb5f1]['type']?_0x1e8cda[_0x1fb5f1]['item']['startIndex']=_0x1fb5f1:'elementEnd'===_0x1e8cda[_0x1fb5f1]['type']&&(_0x1e8cda[_0x1fb5f1]['item']['endIndex']=_0x1fb5f1),_0x409f99['set'](_0x1e8cda[_0x1fb5f1]['id'],_0x1fb5f1));for(const _0x1077f1 of _0x409f99['values']())'elementStart'===_0x1e8cda[_0x1077f1]['type']?_0x1e8cda[_0x1077f1]['item']['endIndex']=_0x409f99['get'](_0x1e8cda[_0x1077f1]['pairId']):'elementEnd'===_0x1e8cda[_0x1077f1]['type']&&(_0x1e8cda[_0x1077f1]['item']['startIndex']=_0x409f99['get'](_0x1e8cda[_0x1077f1]['pairId']));}['_processTape'](_0x51b527){for(let _0x1184b2=0x0;_0x1184b2<_0x51b527['length'];_0x1184b2++){if('elementStart'===_0x51b527[_0x1184b2]['type'])_0x51b527[_0x1184b2]['item']['startIndex']=_0x1184b2;else{if('elementEnd'===_0x51b527[_0x1184b2]['type']){_0x51b527[_0x1184b2]['item']['endIndex']=_0x1184b2;const _0x5cda16=_0x51b527[_0x1184b2]['item']['startIndex'];_0x51b527[_0x5cda16]['pairId']=_0x51b527[_0x1184b2]['id'],_0x51b527[_0x1184b2]['pairId']=_0x51b527[_0x5cda16]['id'];}else _0x51b527[_0x1184b2]['item']['startIndex']=_0x1184b2,_0x51b527[_0x1184b2]['item']['endIndex']=_0x1184b2,_0x51b527[_0x1184b2]['pairId']=null;}_0x51b527[_0x1184b2]['markersStart']||(_0x51b527[_0x1184b2]['markersStart']=[],_0x51b527[_0x1184b2]['markersEnd']=[]);}}['_markInsertions'](_0x161a2d,_0x523ce8){const _0x379421=_0x161a2d['filter'](_0x54f0a4=>!_0x54f0a4['isAdded']);for(let _0x53afe7=0x0;_0x53afe7<_0x523ce8['length'];_0x53afe7++)_0x523ce8[_0x53afe7]['isAdded']&&(_0x379421[_0x53afe7]['isAdded']=_0x523ce8[_0x53afe7]['isAdded']);}['_getDiff'](_0x1f63d1,_0x5381e4=null){const _0x3766ee=this['repository']['getRevision'](_0x1f63d1),_0x14dec2=_0x5381e4?this['repository']['getRevision'](_0x5381e4):null,_0x94e3c1=this['_getRevisionsRange'](_0x3766ee,_0x14dec2),_0x204e55=_0x94e3c1[_0x94e3c1['length']-0x1],_0x1162ae=new Map(),_0x5c9da9={'model':{},'attributes':{},'changes':[]},_0x567c9f=new Set(),_0x203473=new Map();for(let _0xc852d7=_0x94e3c1['length']-0x1;_0xc852d7>=0x0;_0xc852d7--){const _0x4b19a0=_0x94e3c1[_0xc852d7];for(const _0x4416ba of Object['keys'](_0x4b19a0['diffData']))if(_0x4b19a0['diffData'][_0x4416ba]['attachChange']){const _0xbf20a3=_0x4b19a0['diffData'][_0x4416ba]['attachChange'];_0xbf20a3['isAttached']?(_0x567c9f['add'](_0x4416ba),_0x203473['has'](_0x4416ba)&&_0x203473['get'](_0x4416ba)['userId']==_0xbf20a3['userId']?_0x203473['delete'](_0x4416ba):_0x203473['set'](_0x4416ba,_0xbf20a3)):_0x203473['has'](_0x4416ba)?(_0x567c9f['delete'](_0x4416ba),_0x203473['delete'](_0x4416ba)):(_0x567c9f['add'](_0x4416ba),_0x203473['set'](_0x4416ba,_0xbf20a3));}else _0x567c9f['add'](_0x4416ba);}for(const _0x339582 of _0x567c9f){const _0x1c6551=_0x203473['has'](_0x339582)&&!_0x203473['get'](_0x339582)['isAttached'];let _0xd8dca6=_0x1c6551?_0x94e3c1['length']-0x1:0x0;const _0x226980=_0x1c6551?-0x1:0x1;for(;_0x94e3c1[_0xd8dca6];){const _0x4921cc=_0x94e3c1[_0xd8dca6];if(_0x4921cc['diffData'][_0x339582]){const _0x56bc10=_0x1c6551?_0x4921cc['diffData'][_0x339582]['attributesBefore']:_0x4921cc['diffData'][_0x339582]['attributesAfter'];_0x5c9da9['attributes'][_0x339582]=_0x56bc10?_0x54a4cf(_0x56bc10):{};break;}_0xd8dca6+=_0x226980;}}for(const _0x47a931 of _0x94e3c1){_0x47a931['model']={};for(const _0x63e2e9 of _0x47a931['authors'])_0x1162ae['set'](_0x63e2e9['id'],_0x63e2e9);for(const _0x16d469 of _0x567c9f){const _0x350ac4=_0x47a931['diffData'][_0x16d469]?_0x47a931['diffData'][_0x16d469]['insertions']:'[]',_0xe92386=_0x47a931['diffData'][_0x16d469]?_0x47a931['diffData'][_0x16d469]['deletions']:'[]';_0x47a931['model'][_0x16d469]={'insertions':this['_utils']['_makeModelFromViewString'](_0x350ac4),'deletions':this['_utils']['_makeModelFromViewString'](_0xe92386)};}}for(const _0x46c31d of _0x567c9f){let _0xe0332b=null,_0x45c5e2=0x0;const _0x19c916=new Map(Array['from'](_0x3766ee['model'][_0x46c31d]['insertions']['markers'])['filter'](([_0x1a8b88])=>!_0x1a8b88['startsWith']('revision:')));let _0x5be76c=0x0;for(const _0x3b7cb6 of _0x94e3c1){const _0x183625=this['_makeTape'](_0x3b7cb6['model'][_0x46c31d]['insertions']);_0x3b7cb6==_0x3766ee?(_0xe0332b=_0x183625,_0x45c5e2=_0xe0332b['length'],_0xe0332b['forEach'](_0x15ee1c=>{_0x15ee1c['id']=_0x5be76c++;}),this['_processTape'](_0xe0332b)):this['_markInsertions'](_0xe0332b,_0x183625);const _0x373eca=_0xe0332b['filter'](_0x14dbd2=>!_0x14dbd2['isAdded'])['map'](_0x290a99=>_0x290a99['id']);let _0x174e14=0x0;const _0x30d84f=this['_makeTape'](_0x3b7cb6['model'][_0x46c31d]['deletions']);_0x30d84f['forEach'](_0x189809=>{_0x189809['isRemoved']?_0x189809['id']=_0x45c5e2++:_0x189809['id']=_0x373eca[_0x174e14++];}),this['_processTape'](_0x30d84f),this['_setDistance'](_0xe0332b,'isAdded'),this['_setDistance'](_0x30d84f,'isRemoved'),_0x3b7cb6==_0x3766ee&&this['_markMarkers'](_0xe0332b,_0x19c916),_0xe0332b=this['_joinTapes'](_0xe0332b,_0x30d84f),this['_refreshStartEndIndex'](_0xe0332b),this['_setDistance'](_0xe0332b,'isRemoved');}_0xe0332b=_0xe0332b['filter'](_0x4a583d=>!(_0x4a583d['isAdded']&&_0x4a583d['isRemoved']));const _0x126154=new Map(_0x204e55['model'][_0x46c31d]['deletions']['markers']),_0x261d20=new Set(_0x19c916['keys']());for(const _0x2f8220 of _0x126154['keys']())_0x261d20['delete'](_0x2f8220);this['_markSuggestions'](_0xe0332b,_0x261d20),this['_fixObsoleteTags'](_0xe0332b),_0xe0332b=this['_removeMissingPairs'](_0xe0332b),_0xe0332b=this['_markMismatchedRemovedTags'](_0xe0332b),_0xe0332b=this['_removeUnsupportedChanges'](_0xe0332b);const {root:_0x4731ac,changes:_0x347d47}=this['_makeModelFromTape'](_0xe0332b,_0x1162ae,_0x46c31d);_0x5c9da9['model'][_0x46c31d]=_0x4731ac;const _0x23cd90=_0x203473['get'](_0x46c31d);if(_0x23cd90){const _0xe6524c=_0x1162ae['get'](_0x23cd90['userId']),_0x663556=new G({'author':_0xe6524c,'type':_0x23cd90['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x46c31d});_0x347d47['unshift'](_0x663556),_0x5c9da9['attributes'][_0x46c31d]['revisionHistoryAttachChange']=_0x663556['id'];}_0x5c9da9['changes']=_0x5c9da9['changes']['concat'](_0x347d47);}return _0x5c9da9;}['_markMarkers'](_0x32f20c,_0x1270b3){for(let _0x377416=0x0;_0x377416<_0x32f20c['length'];_0x377416++)for(const [_0x124a9d,_0x2e012a]of _0x1270b3)!_0x2e012a['isCollapsed']&&_0x2e012a['start']['isEqual'](_0x32f20c[_0x377416]['previousPosition'])&&_0x32f20c[_0x377416]['markersStart']['push'](_0x124a9d),_0x2e012a['end']['isEqual'](_0x32f20c[_0x377416]['nextPosition'])&&_0x32f20c[_0x377416]['markersEnd']['push'](_0x124a9d);}['_joinTapes'](_0x1e1f78,_0x2e68f0){let _0x31bf3e=[],_0x1a5e63=0x0,_0x28c6a7=0x0;for(;_0x1a5e63<_0x1e1f78['length']||_0x28c6a7<_0x2e68f0['length'];){const _0x3ea645=_0x1e1f78[_0x1a5e63]||{},_0x3c84fd=_0x2e68f0[_0x28c6a7]||{};if(_0x3ea645['id']==_0x3c84fd['id'])_0x1a5e63++,_0x28c6a7++,_0x31bf3e['push'](_0x3ea645);else{if(_0x3c84fd['isRemoved']&&_0x3ea645['isAdded']){const {commonTape:_0x449490,iEnd:_0x20f712,jEnd:_0x17d68c}=this['_threeWayMerge'](_0x1e1f78,_0x1a5e63,_0x2e68f0,_0x28c6a7);_0x31bf3e=_0x31bf3e['concat'](_0x449490),_0x1a5e63=_0x20f712,_0x28c6a7=_0x17d68c;}else _0x3c84fd['isRemoved']?(_0x28c6a7++,_0x31bf3e['push'](_0x3c84fd)):(_0x1a5e63++,_0x31bf3e['push'](_0x3ea645));}}return _0x31bf3e;}['_markSuggestions'](_0x27c062,_0x3e4eec){const _0x3529c1=[];for(let _0x167371=0x0;_0x167371<_0x27c062['length'];_0x167371++){for(let _0x12b4e6=0x0;_0x12b4e6<_0x27c062[_0x167371]['markersStart']['length'];_0x12b4e6++){const _0x56af52=_0x27c062[_0x167371]['markersStart'][_0x12b4e6];if(!_0x3e4eec['has'](_0x56af52))continue;const {group:_0x597796,type:_0x42cca6,authorId:_0x235321}=_0x4c6433(_0x56af52);'revision-suggestion'!=_0x597796||'insertion'!=_0x42cca6&&'deletion'!=_0x42cca6||(_0x3529c1['unshift']({'type':_0x42cca6,'name':_0x56af52,'userId':_0x235321}),_0x27c062[_0x167371]['markersStart']['splice'](_0x12b4e6,0x1),_0x12b4e6--);}_0x5b31ea(_0x27c062[_0x167371]);for(let _0x3e027e=0x0;_0x3e027e<_0x27c062[_0x167371]['markersEnd']['length'];_0x3e027e++){const _0x5021df=_0x27c062[_0x167371]['markersEnd'][_0x3e027e];if(!_0x3e4eec['has'](_0x5021df))continue;const {group:_0x636cd5,type:_0x28415d}=_0x4c6433(_0x5021df);if('revision-suggestion'!=_0x636cd5||'insertion'!=_0x28415d&&'deletion'!=_0x28415d)continue;_0x27c062[_0x167371]['markersEnd']['splice'](_0x3e027e,0x1),_0x3e027e--;const _0x39194c=_0x3529c1['findIndex'](_0x1fc27a=>_0x1fc27a['name']==_0x5021df);_0x39194c>-0x1&&_0x3529c1['splice'](_0x39194c,0x1);}}function _0x4c6433(_0x2c7723){const _0x107cdf=_0x2c7723['split'](':');return{'group':_0x107cdf[0x0],'type':_0x107cdf[0x1],'subType':_0x107cdf['length']>=0x5?_0x107cdf[0x2]:null,'id':_0x107cdf['length']<0x5?_0x107cdf[0x2]:_0x107cdf[0x3],'authorId':_0x107cdf['length']<0x5?_0x107cdf[0x3]:_0x107cdf[0x4],'markerCount':0x6==_0x107cdf['length']?_0x107cdf[0x5]:null};}function _0x5b31ea(_0xa5978b){for(let _0x4c2a12=0x0;_0x4c2a12<_0x3529c1['length'];_0x4c2a12++){if(_0xa5978b['isAdded']&&'insertion'==_0x3529c1[_0x4c2a12]['type']&&_0xa5978b['isAdded']['userId']==_0x3529c1[_0x4c2a12]['userId'])return _0xa5978b['isAddSuggestion']=_0x3529c1[_0x4c2a12],void delete _0xa5978b['isAdded'];if(!_0xa5978b['isAdded']&&!_0xa5978b['isRemoved']&&'deletion'==_0x3529c1[_0x4c2a12]['type'])return void(_0xa5978b['isRemoveSuggestion']=_0x3529c1[_0x4c2a12]);}}}['_setDistance'](_0x52b512,_0x2c11d0){let _0x2f5275=0x0,_0x138e48=!0x1;const _0x253212=new Map();for(const _0x12c223 of _0x52b512)_0x12c223[_0x2c11d0]?_0x138e48&&(_0x2f5275++,_0x138e48=!0x1):(_0x2f5275++,_0x138e48=!0x0),_0x253212['set'](_0x12c223['id'],_0x2f5275);for(let _0x3376f5=0x0;_0x3376f5<_0x52b512['length'];_0x3376f5++){if('isRemoved'==_0x2c11d0&&_0x52b512[_0x3376f5]['isAdded']||'isAdded'==_0x2c11d0&&_0x52b512[_0x3376f5]['isRemoved'])continue;if('text'==_0x52b512[_0x3376f5]['type']){_0x52b512[_0x3376f5]['distance']=0x0;continue;}const _0x2e7b7f=_0x253212['get'](_0x52b512[_0x3376f5]['pairId']),_0x117090=_0x253212['get'](_0x52b512[_0x3376f5]['id']);_0x52b512[_0x3376f5]['distance']=_0x2e7b7f-_0x117090;}}['_getRevisionsRange'](_0xf63cf9,_0x4e45e0,_0x53dfa9=!0x1){const _0x34eb5f=[];let _0x2157c7=this['repository']['getIndex'](_0xf63cf9),_0x328f9c=this['repository']['getIndex'](_0x4e45e0);for(-0x1==_0x328f9c&&(_0x328f9c=this['repository']['_revisions']['length'],_0x53dfa9=!0x1);_0x2157c7<_0x328f9c;)_0x34eb5f['push'](this['repository']['getRevision'](_0x2157c7)),_0x2157c7++;return _0x53dfa9&&_0x34eb5f['push'](this['repository']['getRevision'](_0x2157c7)),_0x34eb5f;}['_threeWayMerge'](_0x4aba3d,_0x4f29d1,_0x1cf4c2,_0x1ecf78){const _0x1ff365=this['editor']['model']['schema'];let _0x51e48c=_0x4f29d1;for(;_0x4aba3d[_0x51e48c]&&_0x4aba3d[_0x51e48c]['isAdded'];)_0x51e48c++;let _0x10864e=_0x1ecf78;for(;_0x1cf4c2[_0x10864e]&&_0x1cf4c2[_0x10864e]['isRemoved'];)_0x10864e++;_0x1725e3(_0x4aba3d,_0x4f29d1,_0x51e48c),_0x1725e3(_0x1cf4c2,_0x1ecf78,_0x10864e);const _0x18e3f7=_0x1cf4c2['slice'](_0x1ecf78,_0x10864e)['concat'](_0x4aba3d['slice'](_0x4f29d1,_0x51e48c));return _0x18e3f7['sort']((_0x3866a6,_0x350cb0)=>_0x3866a6['side']!=_0x350cb0['side']?_0x3866a6['side']-_0x350cb0['side']:_0x3866a6['level']!=_0x350cb0['level']?_0x3866a6['level']-_0x350cb0['level']:_0x3866a6['distance']!=_0x350cb0['distance']?_0x350cb0['distance']-_0x3866a6['distance']:!!_0x3866a6['isAdded']!=!!_0x350cb0['isAdded']?-0x1==_0x3866a6['side']||0x0==_0x3866a6['side']?_0x3866a6['isAdded']?-0x1:0x1:_0x3866a6['isAdded']?0x1:-0x1:_0x3866a6['index']-_0x350cb0['index']),{'commonTape':_0x18e3f7,'iEnd':_0x51e48c,'jEnd':_0x10864e};function _0x1725e3(_0x1392f0,_0x2bb5f5,_0x55c4ba){let _0x3da3e5=-0x1,_0x27624f=Number['POSITIVE_INFINITY'],_0x14cc77=!0x0;for(let _0x597000=_0x2bb5f5;_0x597000<_0x55c4ba;_0x597000++)if(_0x1ff365['isInline'](_0x1392f0[_0x597000]['item'])||(_0x14cc77=!0x1),_0x1392f0[_0x597000]['item']['startIndex']<_0x2bb5f5&&(_0x3da3e5=_0x597000),_0x1392f0[_0x597000]['item']['endIndex']>=_0x55c4ba){_0x27624f=_0x597000;break;}_0x14cc77&&(_0x3da3e5=_0x55c4ba-0x1);for(let _0x5033fb=_0x2bb5f5;_0x5033fb<_0x55c4ba;_0x5033fb++)_0x1392f0[_0x5033fb]['side']=_0x5033fb<=_0x3da3e5?-0x1:_0x5033fb<_0x27624f?0x0:0x1,_0x1392f0[_0x5033fb]['index']=_0x5033fb;let _0xb74f35=0x0;for(let _0x3dec14=_0x2bb5f5;_0x3dec14<=_0x3da3e5;_0x3dec14++)0x0==_0x1392f0[_0x3dec14]['distance']?_0x1392f0[_0x3dec14]['level']=_0xb74f35:(_0xb74f35++,_0x1392f0[_0x3dec14]['level']=_0xb74f35,_0xb74f35++);for(let _0xa63c72=_0x2bb5f5;_0xa63c72<_0x55c4ba;_0xa63c72++)0x0==_0x1392f0[_0xa63c72]['side']&&(_0x1392f0[_0xa63c72]['level']=_0xb74f35);_0xb74f35=0x0;for(let _0x1ad720=_0x55c4ba-0x1;_0x1ad720>=_0x27624f;_0x1ad720--)0x0==_0x1392f0[_0x1ad720]['distance']?_0x1392f0[_0x1ad720]['level']=_0xb74f35:(_0xb74f35--,_0x1392f0[_0x1ad720]['level']=_0xb74f35,_0xb74f35--);}}['_fixObsoleteTags'](_0x171191){const _0x53cc14=new Map(),_0x24e428=this['editor']['model']['schema'];for(let _0x3f0429=0x1;_0x3f0429<_0x171191['length'];_0x3f0429++){let _0x955de,_0x38cfa3,_0x3726fc;const _0x3ec559=_0x171191[_0x3f0429],_0x28d1ad=_0x171191[_0x3f0429-0x1];if('text'==_0x3ec559['type'])continue;if(_0x3ec559['type']!=_0x28d1ad['type'])continue;if(!_0x24e428['isBlock'](_0x28d1ad['item'])||_0x24e428['isLimit'](_0x28d1ad['item']))continue;if(!_0x24e428['isBlock'](_0x3ec559['item'])||_0x24e428['isLimit'](_0x3ec559['item']))continue;if((_0x171191[_0x3f0429]['isAdded']||_0x171191[_0x3f0429]['isAddSuggestion'])&&_0x171191[_0x3f0429-0x1]['isRemoved'])_0x955de=_0x171191[_0x3f0429],_0x38cfa3=_0x171191[_0x3f0429-0x1],_0x3726fc=_0x3f0429-0x1;else{if(!_0x171191[_0x3f0429]['isRemoved']||!_0x171191[_0x3f0429-0x1]['isAdded']&&!_0x171191[_0x3f0429-0x1]['isAddSuggestion'])continue;_0x955de=_0x171191[_0x3f0429-0x1],_0x38cfa3=_0x171191[_0x3f0429],_0x3726fc=_0x3f0429;}const _0x1d6f65=_0x955de['level']==_0x38cfa3['level'],_0xd0016b=Math['abs'](_0x955de['level'])<Math['abs'](_0x38cfa3['level'])&&0x0==_0x38cfa3['distance'];(_0x1d6f65||_0xd0016b)&&(_0x53cc14['set'](_0x38cfa3['id'],_0x955de['id']),_0x171191['splice'](_0x3726fc,0x1),_0x3f0429--,_0x955de['isAdded']=!0x1);}for(let _0x3ba7c6=0x0;_0x3ba7c6<_0x171191['length'];_0x3ba7c6++)_0x53cc14['has'](_0x171191[_0x3ba7c6]['pairId'])&&(_0x171191[_0x3ba7c6]['pairId']=_0x53cc14['get'](_0x171191[_0x3ba7c6]['pairId']));}['_removeMissingPairs'](_0x1fdc5a){const _0x2b821e=new Set(_0x1fdc5a['map'](_0x141882=>_0x141882['id']));for(let _0x1cc242=0x0;_0x1cc242<_0x1fdc5a['length'];_0x1cc242++)_0x2b821e['has'](_0x1fdc5a[_0x1cc242]['pairId'])||0x0==_0x1fdc5a[_0x1cc242]['distance']||(_0x1fdc5a[_0x1cc242]['isIncorrect']=!0x0);return _0x1fdc5a['filter'](_0x315e73=>!_0x315e73['isIncorrect']);}['_markMismatchedRemovedTags'](_0x548181){const _0x44312f=new Set();for(let _0x565ee4=0x0;_0x565ee4<_0x548181['length'];_0x565ee4++){if(_0x44312f['has'](_0x548181[_0x565ee4]['id'])&&_0x548181[_0x565ee4]['isRemoved']&&(_0x548181[_0x565ee4]['isIncorrect']=!0x0),_0x548181[_0x565ee4]['isIncorrect'])continue;if(0x0==_0x548181[_0x565ee4]['distance'])continue;if('elementStart'!=_0x548181[_0x565ee4]['type'])continue;if(null==_0x548181[_0x565ee4]['pairId'])continue;let _0x1cc011=_0x565ee4+0x1,_0x3c62c5=0x0;for(;_0x548181[_0x1cc011]['id']!=_0x548181[_0x565ee4]['pairId'];)'elementStart'==_0x548181[_0x1cc011]['type']?_0x3c62c5++:'elementEnd'==_0x548181[_0x1cc011]['type']&&_0x3c62c5--,_0x1cc011++;if(0x0!=_0x3c62c5){if(_0x548181[_0x565ee4]['isRemoved'])_0x548181[_0x565ee4]['isIncorrect']=!0x0;else{for(;_0x1cc011!=_0x565ee4;)_0x548181[_0x1cc011]['isRemoved']&&0x0!=_0x548181[_0x1cc011]['distance']&&(_0x548181[_0x1cc011]['isIncorrect']=!0x0,_0x44312f['add'](_0x548181[_0x1cc011]['pairId'])),_0x1cc011--;}}}return _0x548181['filter'](_0x49bccc=>!_0x49bccc['isIncorrect']);}['_removeUnsupportedChanges'](_0x356194){const _0xab49b=this['editor']['model']['schema'];for(let _0x213167=0x0;_0x213167<_0x356194['length'];_0x213167++){if(!(_0x356194[_0x213167]['isAdded']||_0x356194[_0x213167]['isAddSuggestion']||_0x356194[_0x213167]['isRemoved']||_0x356194[_0x213167]['isRemoveSuggestion']))continue;if(0x0==_0x356194[_0x213167]['distance'])continue;const _0x2e9a29=_0x356194[_0x213167]['item'];_0xab49b['isBlock'](_0x2e9a29)||_0xab49b['isLimit'](_0x2e9a29)||(_0x356194[_0x213167]['isAdded']&&delete _0x356194[_0x213167]['isAdded'],_0x356194[_0x213167]['isAddSuggestion']&&delete _0x356194[_0x213167]['isAddSuggestion'],_0x356194[_0x213167]['isRemoveSuggestion']&&delete _0x356194[_0x213167]['isRemoveSuggestion'],_0x356194[_0x213167]['isRemoved']&&(_0x356194[_0x213167]['isIncorrect']=!0x0));}return _0x356194['filter'](_0x4ca7f6=>!_0x4ca7f6['isIncorrect']);}['_makeModelFromTape'](_0x177c71,_0x1512da,_0x2fe89e){const _0x5849cc=new _0x59ddab(),_0x39ad16=[],_0x419e3c=new Map(),_0x25f59d=this['editor']['model'],_0x441d6a=_0x25f59d['schema'],_0x139b60=[_0x5849cc],_0x5b10bd={},_0x3a4dba={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x39b33e=null;const _0x5b3944=[0x0];for(let _0x1fb16f=0x0;_0x1fb16f<_0x177c71['length'];_0x1fb16f++)if('elementStart'===_0x177c71[_0x1fb16f]['type']){_0x177c71[_0x1fb16f]['previousPosition']=_0x25f59d['createPositionFromPath'](_0x5849cc,_0x5b3944);const _0x3fbb41=new _0x52ff73(_0x177c71[_0x1fb16f]['item']['name'],_0x177c71[_0x1fb16f]['item']['getAttributes']());_0x139b60[0x0]['_appendChild'](_0x3fbb41),_0x5b3944['push'](0x0),_0x139b60['unshift'](_0x3fbb41),_0x177c71[_0x1fb16f]['nextPosition']=_0x25f59d['createPositionFromPath'](_0x5849cc,_0x5b3944);}else'elementEnd'===_0x177c71[_0x1fb16f]['type']?(_0x139b60['shift'](),_0x177c71[_0x1fb16f]['previousPosition']=_0x25f59d['createPositionFromPath'](_0x5849cc,_0x5b3944),_0x5b3944['pop'](),_0x5b3944[_0x5b3944['length']-0x1]++,_0x177c71[_0x1fb16f]['nextPosition']=_0x25f59d['createPositionFromPath'](_0x5849cc,_0x5b3944)):(_0x177c71[_0x1fb16f]['previousPosition']=_0x25f59d['createPositionFromPath'](_0x5849cc,_0x5b3944),_0x39b33e?_0x39b33e['_data']+=_0x177c71[_0x1fb16f]['item']['data']:_0x39b33e=new _0x46b396(_0x177c71[_0x1fb16f]['item']['data'],_0x177c71[_0x1fb16f]['item']['getAttributes']()),_0x177c71[_0x1fb16f+0x1]&&'text'===_0x177c71[_0x1fb16f+0x1]['type']&&_0x1c3f33(_0x39b33e,_0x177c71[_0x1fb16f+0x1]['item'])||(_0x139b60[0x0]['_appendChild'](_0x39b33e),_0x39b33e=null),_0x5b3944[_0x5b3944['length']-0x1]+=_0x177c71[_0x1fb16f]['item']['offsetSize'],_0x177c71[_0x1fb16f]['nextPosition']=_0x25f59d['createPositionFromPath'](_0x5849cc,_0x5b3944));for(let _0x3602ec=0x0;_0x3602ec<_0x177c71['length'];_0x3602ec++){const _0x4c6866=_0x177c71[_0x3602ec]['previousPosition'],_0x1bfc94=_0x177c71[_0x3602ec]['nextPosition'];for(const _0x2b207f of _0x177c71[_0x3602ec]['markersStart'])_0x419e3c['set'](_0x2b207f,{'start':_0x4c6866,'end':null});_0x256288('isRemoveSuggestion',_0x3602ec,_0x4c6866,_0x1bfc94),_0x256288('isAddSuggestion',_0x3602ec,_0x4c6866,_0x1bfc94),_0x256288('isRemoved',_0x3602ec,_0x4c6866,_0x1bfc94),_0x256288('isAdded',_0x3602ec,_0x4c6866,_0x1bfc94);for(const _0x2b2ef1 of _0x177c71[_0x3602ec]['markersEnd']){const _0x389cc7=_0x419e3c['get'](_0x2b2ef1);_0x389cc7?_0x389cc7['end']=_0x1bfc94:_0x419e3c['set'](_0x2b2ef1,{'start':_0x1bfc94,'end':_0x1bfc94});}}for(const [_0x4eb08c,_0xe779d6]of _0x419e3c){const _0x450756=this['editor']['model']['createRange'](_0xe779d6['start'],_0xe779d6['end']);_0x5849cc['markers']['set'](_0x4eb08c,_0x450756);}return _0x39ad16['sort']((_0x209441,_0x38fb8b)=>{const _0x1e64ca=_0x5849cc['markers']['get']('revision:'+_0x209441['id']),_0x225c59=_0x5849cc['markers']['get']('revision:'+_0x38fb8b['id']);return _0x1e64ca['start']['isBefore'](_0x225c59['start'])?-0x1:_0x1e64ca['start']['isAfter'](_0x225c59['start'])?0x1:_0x1e64ca['end']['isBefore'](_0x225c59['end'])?-0x1:_0x1e64ca['end']['isAfter'](_0x225c59['end'])?0x1:'add'===_0x209441['type']?-0x1:0x1;}),{'root':_0x5849cc,'changes':_0x39ad16};function _0x256288(_0x4dc26d,_0x2d3308,_0x56bd77,_0x159d58){const _0x46475f=!!_0x177c71[_0x2d3308][_0x4dc26d],_0x60c309=_0x46475f?_0x177c71[_0x2d3308][_0x4dc26d]['userId']:null,_0x59291d=_0x2d3308===_0x177c71['length']-0x1,_0x25a630=_0x3a4dba[_0x4dc26d][0x0],_0xcfc727=_0x441d6a['isObject'](_0x177c71[_0x2d3308]['item']);!_0x5b10bd[_0x4dc26d]&&_0x46475f?_0x5b10bd[_0x4dc26d]={'start':_0x56bd77,'tapeItem':_0x177c71[_0x2d3308],'userId':_0x60c309,'type':_0x4dc26d}:_0x5b10bd[_0x4dc26d]&&!_0x46475f?(_0x5b10bd[_0x4dc26d]['end']=_0x56bd77,_0x376f14(_0x5b10bd[_0x4dc26d]),_0x5b10bd[_0x4dc26d]=null):_0x5b10bd[_0x4dc26d]&&_0x46475f&&_0x5b10bd[_0x4dc26d]['userId']!==_0x60c309&&(_0x5b10bd[_0x4dc26d]['end']=_0x56bd77,_0x25a630&&_0x25a630['userId']===_0x5b10bd[_0x4dc26d]['userId']||_0x376f14(_0x5b10bd[_0x4dc26d]),_0x5b10bd[_0x4dc26d]={'start':_0x56bd77,'tapeItem':_0x177c71[_0x2d3308],'userId':_0x60c309,'type':_0x4dc26d}),_0x5b10bd[_0x4dc26d]&&_0xcfc727&&('elementStart'!==_0x177c71[_0x2d3308]['type']||_0x25a630&&_0x25a630['userId']===_0x60c309||_0x3a4dba[_0x4dc26d]['unshift']({'userId':_0x60c309,'object':_0x177c71[_0x2d3308]['item'],'change':_0x5b10bd[_0x4dc26d]}),'elementEnd'===_0x177c71[_0x2d3308]['type']&&_0x25a630&&_0x25a630['object']===_0x177c71[_0x2d3308]['item']&&(_0x3a4dba[_0x4dc26d]['shift'](),_0x5b10bd[_0x4dc26d]=_0x25a630['change'])),_0x5b10bd[_0x4dc26d]&&_0x59291d&&(_0x5b10bd[_0x4dc26d]['end']=_0x159d58,_0x376f14(_0x5b10bd[_0x4dc26d]),_0x5b10bd[_0x4dc26d]=null);}function _0x376f14({start:_0x4dc3b7,end:_0x29b2e4,tapeItem:_0x1bd95a,userId:_0x510565,type:_0x3bb6f3}){const _0x1e3c81=_0x1bd95a['item'],_0xd40c09=_0x25f59d['schema']['isBlock'](_0x1e3c81)&&!_0x25f59d['schema']['isLimit'](_0x1e3c81),_0x30abd8=_0x4dc3b7['nodeAfter']==_0x29b2e4['parent']&&_0x29b2e4['isAtStart'];if(_0xd40c09&&_0x30abd8)return;const _0x13cf48=_0x25f59d['createRange'](_0x4dc3b7,_0x29b2e4),_0x1230dd=_0x1512da['get'](_0x510565),_0x3d04df=new G({'author':_0x1230dd,'type':'isAdded'==_0x3bb6f3||'isAddSuggestion'==_0x3bb6f3?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3bb6f3||'isRemoveSuggestion'==_0x3bb6f3},'createdAt':new Date(),'rootName':_0x2fe89e});_0x39ad16['push'](_0x3d04df),_0x5849cc['markers']['set']('revision:'+_0x3d04df['id'],_0x13cf48);}function _0x1c3f33(_0x2bd862,_0x3a35fe){const _0xba6b55=_0x2bd862['getAttributes'](),_0x459311=_0x3a35fe['getAttributes']();for(const _0x553091 of _0xba6b55){if(_0x553091[0x1]!==_0x3a35fe['getAttribute'](_0x553091[0x0]))return!0x1;_0x459311['next']();}return _0x459311['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3fe7a9=>{const _0x35fa4a=_0x3fe7a9['markerName']['split'](':')[0x1],_0x292692=this['_getChangeFromId'](_0x35fa4a);if(!_0x292692)return null;const _0x40fcf6='add'==_0x292692['type']?'insertion':'deletion',_0x516b69=['ck-suggestion-marker','ck-suggestion-marker-'+_0x40fcf6];return _0x292692['data']['isSuggestion']&&_0x516b69['push']('ck-suggestion-marker-'+_0x40fcf6+'-new'),this['activeChange']==_0x292692&&_0x516b69['push']('ck-suggestion-marker--active'),{'classes':_0x516b69,'attributes':{'data-change-id':_0x35fa4a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1d9a96=>{_0x1d9a96['on']('element:pre',(_0x22d640,_0x1854ca,_0x2972b2)=>{const _0x344025=_0x1854ca['viewItem']['getChild'](0x0);if(!_0x344025||!_0x344025['is']('element','code'))return;if(!_0x2972b2['consumable']['consume'](_0x344025,{'attributes':['vid_start','vid_end']}))return;const _0x3aec00=_0x1854ca['modelRange']['start']['nodeAfter'];_0x2972b2['writer']['setAttribute']('vid_start',_0x344025['getAttribute']('vid_start'),_0x3aec00),_0x2972b2['writer']['setAttribute']('vid_end',_0x344025['getAttribute']('vid_end'),_0x3aec00);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2b2f4=>{_0x2b2f4['on']('element',(_0x498ab7,_0x47d1a4,_0x5c75ae)=>{if(!_0x5c75ae['consumable']['consume'](_0x47d1a4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x47d1a4['modelRange']['isCollapsed'])return;const _0x222b23=_0x47d1a4['modelRange']['start']['nodeAfter'];_0x222b23['hasAttribute']('vid_start')||_0x222b23['hasAttribute']('vid')||(_0x5c75ae['writer']['setAttribute']('vid_start',_0x47d1a4['viewItem']['getAttribute']('vid_start'),_0x222b23),_0x5c75ae['writer']['setAttribute']('vid_end',_0x47d1a4['viewItem']['getAttribute']('vid_end'),_0x222b23));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x72caef=>_0x72caef['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x425156,[,_0x1d343c])=>{['vid_start','vid_end','vid']['includes'](_0x1d343c)&&(_0x425156['return']=!0x0,_0x425156['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2ab0f7=>{_0x2ab0f7['on']('attribute:vid',(_0x53a066,_0x5418ac,_0x24f978)=>{if('\x20'!=_0x5418ac['item']['data']||_0x5418ac['item']['parent']['maxOffset']>0x1)return;if(!_0x24f978['consumable']['consume'](_0x5418ac['item'],_0x53a066['name']))return;const _0x14c8c8=_0x24f978['writer'],_0x944efa=_0x24f978['mapper']['toViewRange'](_0x5418ac['range']);_0x14c8c8['wrap'](_0x944efa,_0x14c8c8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4e1401){const _0x5572e3=_0x4e1401['plugins']['get']('RevisionViewer');return(_0x11c998,_0xf265c5,_0x181ca4)=>{const _0x559979=_0xf265c5['markerName']['split'](':')[0x1],_0x70b2f9=_0x5572e3['_getChangeFromId'](_0x559979);if(!_0x70b2f9)return null;const _0x39e530='add'==_0x70b2f9['type']?'split':'merge';if(!_0x181ca4['consumable']['test'](_0xf265c5['markerRange'],_0x11c998['name']))return;const _0x319951=_0xf265c5['markerRange']['getWalker'](),_0x351c04=_0xf265c5['markerRange']['start'],_0x371b6e=_0x4e1401['model']['schema'];let _0x75e84c=null,_0x141033=null,_0x2f32da=!0x1,_0x5124e0=!0x1;for(const _0x3d2bef of _0x319951){const _0x4cc17d=_0x3d2bef['item'];_0x2f32da=_0x2f32da||_0x371b6e['isContent'](_0x4cc17d);const _0x58e0e8=_0x181ca4['mapper']['toViewElement'](_0x4cc17d);if(_0x58e0e8&&_0x58e0e8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d2bef['type']&&(_0x371b6e['isBlock'](_0x4cc17d)&&!_0x371b6e['isLimit'](_0x4cc17d)&&(_0x4cc17d['nextSibling']||_0x351c04['isAtEnd']?_0x75e84c&&_0x75e84c['parent']==_0x4cc17d||(_0x75e84c=_0x4cc17d,_0x267577(_0x3d2bef['previousPosition']),_0x5124e0=!0x0):_0x141033=_0x141033||_0x3d2bef['previousPosition']));}function _0x267577(_0x496e63){const _0x2c6857=_0x181ca4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39e530}),_0x7a1228=_0x181ca4['mapper']['toViewPosition'](_0x496e63);_0x70b2f9['data']['isSuggestion']&&_0x181ca4['writer']['addClass']('ck-suggestion-marker-'+_0x39e530+'-new',_0x2c6857),_0x5572e3['activeChange']==_0x70b2f9&&_0x181ca4['writer']['addClass']('ck-suggestion-marker--active',_0x2c6857),_0x181ca4['writer']['insert'](_0x7a1228,_0x2c6857),_0x181ca4['mapper']['bindElementToMarker'](_0x2c6857,_0xf265c5['markerName']);}_0x2f32da||_0x5124e0||!_0x141033||_0x267577(_0x141033);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x20cd19,_0x2881c4,_0x6e8ea4)=>{const _0x49e46e=_0x6e8ea4['mapper']['markerNameToElements'](_0x2881c4['markerName']);if(_0x49e46e){for(const _0x2e2816 of _0x49e46e)(_0x2e2816['hasClass']('ck-suggestion-marker-split')||_0x2e2816['hasClass']('ck-suggestion-marker-merge'))&&(_0x6e8ea4['mapper']['unbindElementFromMarkerName'](_0x2e2816,_0x2881c4['markerName']),_0x6e8ea4['writer']['remove'](_0x2e2816));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x17140f,_0x2c20ca,_0x15f598)=>{const _0x2ad8e5=_0x2c20ca['markerName']['split'](':')[0x1],_0x44060c=this['_getChangeFromId'](_0x2ad8e5);if(!_0x44060c)return null;const _0x33f36e='add'==_0x44060c['type']?'split':'merge';if(_0x15f598['consumable']['test'](_0x2c20ca['markerRange'],_0x17140f['name']))for(const _0x67796d of _0x2c20ca['markerRange']['getItems']()){if(!_0x67796d['is']('element','softBreak'))continue;const _0x2d7897=_0x15f598['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33f36e}),_0x384251=_0x15f598['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x67796d));_0x44060c['data']['isSuggestion']&&_0x15f598['writer']['addClass']('ck-suggestion-marker-'+_0x33f36e+'-new',_0x2d7897),this['activeChange']==_0x44060c&&_0x15f598['writer']['addClass']('ck-suggestion-marker--active',_0x2d7897),_0x15f598['writer']['insert'](_0x384251,_0x2d7897),_0x15f598['mapper']['bindElementToMarker'](_0x2d7897,_0x2c20ca['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x9995f4=>{for(const _0x4a3a31 of this['editor']['model']['document']['getRootNames']()){const _0x818d2e=this['editor']['model']['document']['getRoot'](_0x4a3a31),_0x1ea2b5=this['editor']['editing']['view']['document']['getRoot'](_0x4a3a31);if(_0x1ea2b5){const _0x103b36=_0x818d2e['getAttribute']('revisionHistoryAttachChange');if(_0x9995f4['removeAttribute']('data-change-id',_0x1ea2b5),_0x9995f4['removeClass']('ck-revision-history-root-add',_0x1ea2b5),_0x9995f4['removeClass']('ck-revision-history-root-remove',_0x1ea2b5),_0x9995f4['removeClass']('ck-revision-history-root--active',_0x1ea2b5),_0x103b36){const _0x4c6600=this['_getChangeFromId'](_0x103b36);if(!_0x4c6600)return null;_0x9995f4['setAttribute']('data-change-id',_0x103b36,_0x1ea2b5),_0x9995f4['addClass']('ck-revision-history-root-'+_0x4c6600['type'],_0x1ea2b5),this['activeChange']==_0x4c6600&&_0x9995f4['addClass']('ck-revision-history-root--active',_0x1ea2b5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x49fb17=>'revision-comment:'+_0x49fb17,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xeda634=>'revision-suggestion:'+_0xeda634,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1aae29=>({'name':'suggestion:'+_0x1aae29,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x163733=>{const _0x142965=_0x163733['markerName']['split'](':')[0x1];return'insertion'!=_0x142965&&'deletion'!=_0x142965?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x142965]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3b9766,_0x3012b6,_0x2059f8)=>{const _0x5b68ff=_0x2059f8['mapper']['markerNameToElements'](_0x3012b6['markerName']);if(_0x5b68ff){for(const _0x5cc7f1 of _0x5b68ff)_0x5cc7f1['is']('uiElement')&&(_0x2059f8['mapper']['unbindElementFromMarkerName'](_0x5cc7f1,_0x3012b6['markerName']),_0x2059f8['writer']['remove'](_0x5cc7f1));}},{'priority':'high'});}['_getChangeFromId'](_0x98bddd){return this['_changeIdToChange']['get'](_0x98bddd);}['_getViewForChange'](_0x27e81b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x27e81b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4c20eb,_0x594ec5,_0x2089fc,_0x5bfb56)=>{_0x5bfb56&&this['_balloon']['remove'](_0x5bfb56),_0x2089fc&&(this['_balloon']['add']({'view':_0x2089fc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x54f598=this['editor']['editing'],_0x331db8=this['_getChangeFromId'](_0x2089fc['changeId']);let _0x3197d0;if(_0x331db8['data']['isOnRoot']){const _0x2b4b69=_0x54f598['view']['getDomRoot'](_0x331db8['rootName']);_0x3197d0=Array['from'](_0x2b4b69['getClientRects']());}else{const _0x1c2899=this['editor']['model']['markers']['get']('revision:'+_0x2089fc['changeId']);_0x3197d0=Array['from'](_0x54f598['mapper']['markerNameToElements'](_0x1c2899['name']))['map'](_0x5e5600=>_0x54f598['view']['domConverter']['mapViewToDom'](_0x5e5600))['map'](_0x29e148=>Array['from'](_0x29e148['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3197d0[0x0];return _0x3197d0['find'](_0x573ebd=>_0x573ebd['top']-0x3<=this['_activeViewTarget']['y']&&_0x573ebd['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x573ebd['left']-0x3<=this['_activeViewTarget']['x']&&_0x573ebd['right']+0x3>=this['_activeViewTarget']['x'])||_0x3197d0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3fd293,_0x535156,_0x23d7cb,_0x45a3a9)=>{this['activeView']=_0x23d7cb?this['_getViewForChange'](_0x23d7cb):null,this['editor']['model']['change'](()=>{const _0x3adcff=this['editor']['editing'];_0x45a3a9&&(_0x45a3a9['data']['isOnRoot']?_0x3adcff['view']['change'](_0x1e91da=>{_0x1e91da['removeClass']('ck-revision-history-root--active',_0x3adcff['view']['document']['getRoot'](_0x45a3a9['rootName']));}):_0x3adcff['reconvertMarker']('revision:'+_0x45a3a9['id'])),_0x23d7cb&&(_0x23d7cb['data']['isOnRoot']?_0x3adcff['view']['change'](_0x31c3cd=>{_0x31c3cd['addClass']('ck-revision-history-root--active',_0x3adcff['view']['document']['getRoot'](_0x23d7cb['rootName']));}):_0x3adcff['reconvertMarker']('revision:'+_0x23d7cb['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2be3cb,_0x161876)=>{if(this['activeChange'])return;const _0x226aa2=this['_findChangeIdFromDomTarget'](_0x161876['target']),_0x401aa2=this['_changeIdToChange']['get'](_0x226aa2);_0x401aa2?(this['_activeViewTarget']={'x':_0x161876['domEvent']['x'],'y':_0x161876['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x401aa2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1873b1,_0x35a8a9)=>{const _0x4b2aec=this['_findChangeIdFromDomTarget'](_0x35a8a9['target']),_0x5a2d3a=this['_changeIdToChange']['get'](_0x4b2aec);_0x5a2d3a?(this['_activeViewTarget']={'x':_0x35a8a9['domEvent']['x'],'y':_0x35a8a9['domEvent']['y']},_0x5a2d3a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5a2d3a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d8e8d){do{const _0x46df09=_0x1d8e8d['getAttribute']('data-change-id');if(_0x46df09)return _0x46df09;_0x1d8e8d=_0x1d8e8d['parent'];}while(_0x1d8e8d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x28ef1f=>{for(const _0x179621 of this['editor']['model']['markers'])_0x28ef1f['removeMarker'](_0x179621);});}}function Q(_0x24da79,_0x2d5a45){return(_0x38a986,_0x3fe3ab,_0x25ec13)=>{if(!_0x25ec13['consumable']['test'](_0x3fe3ab['markerRange'],_0x38a986['name']))return;const _0x5bd6b3=_0x3fe3ab['markerRange']['getWalker'](),_0x5e6cc0=_0x3fe3ab['markerRange']['start'],_0x56b7c4=_0x24da79['model']['schema'];let _0xba0206=null,_0x251d02=null,_0xa3f20e=!0x1,_0x17429e=!0x1;for(const _0x2d4425 of _0x5bd6b3){const _0x97c493=_0x2d4425['item'];_0xa3f20e=_0xa3f20e||_0x56b7c4['isContent'](_0x97c493);const _0x181248=_0x25ec13['mapper']['toViewElement'](_0x97c493);if(_0x181248&&_0x181248['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d4425['type']&&(_0x56b7c4['isBlock'](_0x97c493)&&!_0x56b7c4['isLimit'](_0x97c493)&&(_0x97c493['nextSibling']||_0x5e6cc0['isAtEnd']?_0xba0206&&_0xba0206['parent']==_0x97c493||(_0xba0206=_0x97c493,_0x22b315(_0x2d4425['previousPosition']),_0x17429e=!0x0):_0x251d02=_0x251d02||_0x2d4425['previousPosition']));}function _0x22b315(_0x22abec){const _0x2d9968=_0x25ec13['mapper']['toViewPosition'](_0x22abec),_0x5048f3=_0x25ec13['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2d5a45});_0x25ec13['writer']['insert'](_0x2d9968,_0x5048f3),_0x25ec13['mapper']['bindElementToMarker'](_0x5048f3,_0x3fe3ab['markerName']);}_0xa3f20e||_0x17429e||!_0x251d02||_0x22b315(_0x251d02);};}class nt extends _0x9b7732{constructor(_0x4322a6){super(_0x4322a6);const _0x22bd49=_0x4322a6['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x22bd49,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x22bd49,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x479b20=this['editor'],_0x291c79=_0x479b20['plugins']['get'](l),_0x1ccb07=_0x291c79['isReady']?_0x291c79['diff']['newRevisionId']:null;_0x479b20['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1ccb07);}['refresh'](){const {isReady:_0x18a4c7,isEnabled:_0x16e2ef,repository:_0x512968,diff:_0x270c19}=this['editor']['plugins']['get'](l),_0x5993ad=_0x270c19&&_0x512968['getLaterVisibleRevision'](_0x270c19['newRevisionId']);this['isEnabled']=_0x18a4c7&&_0x16e2ef&&Boolean(_0x5993ad);}}class rt extends _0x9b7732{['_step'];constructor(_0x593666,{direction:_0x110b86}){super(_0x593666);const _0x3fb4d5=_0x593666['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x110b86?0x1:-0x1,this['listenTo'](_0x3fb4d5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3fb4d5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3fb4d5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x333086=this['editor'],_0x34cff0=_0x333086['plugins']['get'](l),{isNavigationMode:_0x37b71a,currentChangeNumber:_0x35869f}=_0x34cff0;let _0x45ced8;if(_0x34cff0['activeChange']=_0x37b71a?_0x34cff0['diff']['changes']['get'](_0x35869f+this['_step']):_0x34cff0['diff']['changes']['first'],_0x34cff0['activeChange']['data']['isOnRoot'])_0x45ced8=_0x333086['editing']['view']['getDomRoot'](_0x34cff0['activeChange']['rootName']);else{const _0x1a8d37=_0x333086['model']['markers']['get']('revision:'+_0x34cff0['activeChange']['id']);_0x45ced8=_0x4a4dd7(_0x333086['editing'],_0x1a8d37);}_0x93ca32({'target':_0x45ced8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x40553f,currentChangeNumber:_0x4731bc,numberOfChanges:_0x5d4173,isReady:_0x29b7d0,isEnabled:_0x3f728a}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3f728a&&_0x29b7d0&&_0x5d4173)&&(!_0x40553f||(0x1===this['_step']?_0x4731bc<_0x5d4173-0x1:_0x4731bc>0x0));}}class Ri extends _0x536e3a{constructor(_0x134cdf){super(_0x134cdf);const _0x404954=this['bindTemplate'],_0x3fce2e=new _0x3e37e6(_0x134cdf),_0x505f1b=new _0x3e37e6(_0x134cdf);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',(_0x2d15b9,_0x3d6acd)=>_0x2d15b9&&_0x3d6acd>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3c58af,_0x2e58d2,_0x27995e,_0x3f9bf9)=>{if(!_0x3c58af)return R(_0x134cdf,'Loading...');if(!_0x27995e)return R(_0x134cdf,'No\x20changes');const _0x39574b=R(_0x134cdf,'NUMBER_OF_CHANGES',_0x27995e);return _0x3f9bf9?R(_0x134cdf,'X_OF_Y_CHANGES',[_0x2e58d2+0x1,_0x27995e]):_0x39574b;}),_0x3fce2e['set']({'label':R(_0x134cdf,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x44f5fd}),_0x505f1b['set']({'label':R(_0x134cdf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x53eab1}),_0x3fce2e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x505f1b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3fce2e['on']('execute',()=>this['fire']('execute','backward')),_0x505f1b['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',_0x404954['if']('_isStatusLabelVisible','ck-hidden',_0x5a5863=>!_0x5a5863)]},'children':[{'text':_0x404954['to']('isNavigationMode',_0x2aa4b9=>_0x2aa4b9?R(_0x134cdf,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x134cdf,'Total')+':\x20')}]},{'text':_0x404954['to']('_statusText')}]},new _0x2abaea(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3fce2e,_0x505f1b]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x206761{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x82c3db=this['editor']['editing']['view'];_0x82c3db['change'](_0x5e7692=>{for(const _0x3e24d3 of _0x82c3db['document']['roots'])_0x5e7692['addClass'](ge,_0x3e24d3);});}['hide'](){const _0xd2eab1=this['editor']['editing']['view'];_0xd2eab1['change'](_0x1baecb=>{for(const _0x4bb793 of _0xd2eab1['document']['roots'])_0x1baecb['removeClass'](ge,_0x4bb793);});}}class u extends _0x206761{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x46e782=this['editor'],_0x43668f=_0x46e782['plugins']['get'](l),_0x584503=_0x46e782['plugins']['get'](ji);_0x46e782['ui']['componentFactory']['add']('exitToEditing',_0x5aaba8=>{const _0x148b7c=new _0x3e37e6(_0x5aaba8);return _0x148b7c['set']({'label':R(_0x5aaba8,'Back\x20to\x20editing'),'icon':_0x34e4bb,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x148b7c,'execute',()=>{_0x46e782['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x148b7c;}),_0x46e782['ui']['componentFactory']['add']('restoreRevision',_0x5648cb=>{const _0x3bc1c5=new _0x3e37e6(_0x5648cb);return _0x3bc1c5['set']({'label':R(_0x5648cb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3bc1c5['bind']('isEnabled')['to'](_0x46e782['commands']['get']('restoreRevision')),this['listenTo'](_0x3bc1c5,'execute',()=>_0x46e782['execute']('restoreRevision')),_0x3bc1c5;}),_0x46e782['ui']['componentFactory']['add']('changesNavigation',_0x5517f8=>{const _0x176fbc=new Ri(_0x5517f8),_0x3cb6de=_0x46e782['commands']['get']('showPreviousChange'),_0x23c898=_0x46e782['commands']['get']('showNextChange');return _0x176fbc['bind']('isBackwardNavigationEnabled')['to'](_0x3cb6de,'isEnabled'),_0x176fbc['bind']('isForwardNavigationEnabled')['to'](_0x23c898,'isEnabled'),_0x176fbc['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x43668f),this['listenTo'](_0x176fbc,'execute',(_0x268769,_0x1d0ba0)=>{_0x46e782['execute']('forward'===_0x1d0ba0?'showNextChange':'showPreviousChange');}),_0x176fbc;}),_0x584503['show'](),_0x43668f['on']('change:isReady',(_0xfa5dae,_0x9bd375,_0x19987d)=>{_0x19987d?_0x584503['hide']():_0x584503['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x1f89fe,_0x364516){super(_0x1f89fe,_0x364516);const _0x1c96c8=this['bindTemplate'];this['set']({'label':R(_0x1f89fe,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x1f89fe,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1c96c8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x340bd2=this['fieldView']['element'];this['_tooltipString']=_0x340bd2['scrollWidth']>_0x340bd2['clientWidth']&&_0x340bd2['value']||'';}}class ni extends _0x536e3a{constructor(_0x29fce1,_0x6206a6,_0x4e5629){super(_0x29fce1);const _0x456c43=new _0x1ddfa7();_0x456c43['set']({'content':_0x1932fe,'viewBox':'0\x200\x2011\x2010'});const _0x2b3cbc=['ck','ck-revision-history-sidebar__revision-author'];_0x4e5629&&_0x2b3cbc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3cd875=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x29fce1,_0x4e5629?'Revision\x20creator':'Revision\x20author')},'children':[_0x456c43,_0x6206a6['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2b3cbc},'children':_0x3cd875});}}function ci(_0x2ce0b2,_0x45275a){const _0x3312f0=_0x2ce0b2['bindTemplate'],_0x26f030=_0x2ce0b2['locale'],_0x2b4a1c=_0x89cc31(_0x26f030);_0x2b4a1c['panelPosition']='sw';const _0x39acd0=function(_0x4a77c2,_0x36bad5){const _0x13ae99=function(_0x6d6e5,_0xf628eb){const _0x4415cd=_0x6d6e5['locale'],_0x288abc={'Compare\x20against\x20selected':R(_0x4415cd,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4415cd,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4415cd,'Restore\x20this\x20revision')};return _0xf628eb['map'](_0x14fc15=>{const _0x192406=_0x288abc[_0x14fc15['name']];return _0x192406&&_0x192406!==_0x14fc15['name']&&(_0x14fc15['name']=_0x192406),_0x14fc15;});}(_0x4a77c2,_0x36bad5),_0x4e0663=new _0x582366();for(const _0x20f5c9 of _0x13ae99){const _0xf5c7db={'type':'button','model':new to({'label':_0x20f5c9['name'],'class':_0x20f5c9['class'],'withText':!0x0,'role':'menuitem','_action':_0x20f5c9['action']})};_0xf5c7db['model']['bind']('isEnabled')['to'](_0x4a77c2,'isActionsDropdownOpen',_0x46172a=>'function'!=typeof _0x20f5c9['isEnabled']||(!_0x46172a||_0x20f5c9['isEnabled'](_0x4a77c2))),_0x4e0663['add'](_0xf5c7db);}return _0x4e0663;}(_0x2ce0b2,_0x45275a);return _0x2ce0b2['bind']('isActionsDropdownOpen')['to'](_0x2b4a1c,'isOpen'),_0x2b4a1c['buttonView']['set']({'label':R(_0x26f030,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5212b9}),_0x2b4a1c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3312f0['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3312f0['to'](_0xde050c=>_0xde050c['stopPropagation']())}}),_0x2b4a1c['on']('execute',_0x26295b=>{_0x2ce0b2['isReady']&&'function'==typeof _0x26295b['source']['_action']&&_0x26295b['source']['_action'](_0x2ce0b2);}),_0x33b4f0(_0x2b4a1c,_0x39acd0,{'role':'menu'}),_0x2b4a1c['listenTo'](_0x2ce0b2,'change:isActionsDropdownOpen',(_0x4ca510,_0x386583,_0x3635cf)=>{if(_0x3635cf)for(const _0x5370c3 of _0x2b4a1c['listView']['items']){const _0x5f2c92=_0x5370c3['children']['first'],_0x58ba1c=_0x45275a['find'](_0x5e259d=>_0x5e259d['action']===_0x5f2c92['_action'])['isVisible'];_0x5370c3['isVisible']=void 0x0===_0x58ba1c||_0x58ba1c(_0x2ce0b2);}}),_0x2b4a1c;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x4094e4(_0x536e3a){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x16772e,_0x3bbe06,_0x3590f8,_0x2cbd1b){super(_0x16772e);const _0x16e60c=this['bindTemplate'],_0x2d1e20=function(_0xc7518,_0x38cfd8){const _0x5aad1c=Array['from'](_0x38cfd8['authors'])['filter'](_0x3c8a47=>_0x3c8a47!=_0x38cfd8['creator']);return _0x38cfd8['creator']&&_0x5aad1c['unshift'](_0x38cfd8['creator']),_0x5aad1c['map'](_0x2d9284=>new ni(_0xc7518,_0x2d9284,_0x2d9284==_0x38cfd8['creator']));}(_0x16772e,_0x3bbe06);this['id']=_0x3bbe06['id'],this['_revision']=_0x3bbe06,this['_requireRevisionName']=_0x2cbd1b,this['bind']('name','createdAt')['to'](_0x3bbe06),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x511670=>{return _0x257899=_0x16772e['uiLanguage'],(_0x498067=_0x511670)['toLocaleDateString'](_0x257899,{'month':'long','day':'numeric'})+',\x20'+_0x498067['toLocaleTimeString'](_0x257899,{'hour':'numeric','minute':'numeric'});var _0x257899,_0x498067;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x16772e,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xa935c6=>_0xa935c6||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x35f570,_0x119d06)=>_0x35f570&&_0x119d06),this['revisionActionsView']=_0x3590f8&&_0x3590f8['length']?ci(this,_0x3590f8):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x16e60c['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x16e60c['if']('isEnabled','ck-disabled',_0x19642c=>!_0x19642c),_0x16e60c['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x16e60c['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x16e60c['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':_0x16e60c['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':_0x2d1e20}]},this['revisionActionsView']],'on':{'click':_0x16e60c['to'](_0x597569=>{_0x597569['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5b9554=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5b9554,'change',()=>{this['_requireRevisionName']&&!_0x5b9554['value']||this['fire']('setName',{'id':this['id'],'name':_0x5b9554['value']}),_0x5b9554['value']||(_0x5b9554['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x45b7cd,_0x153b29){const _0x4f2c04=_0x2e5824['fromJSDate'](_0x45b7cd)['setLocale'](_0x153b29),_0x2721f0=_0x2e5824['local'](),_0x2c8ee8=_0x2721f0['minus']({'days':0x1})['startOf']('day');let _0xe2a225,_0x2e7108;return _0x4f2c04['hasSame'](_0x2721f0,'day')?(_0xe2a225=_0x4f2c04['startOf']('day')['toJSDate'](),_0x2e7108=_0x4f2c04['toRelativeCalendar']()):_0x4f2c04['hasSame'](_0x2c8ee8,'day')?(_0xe2a225=_0x2c8ee8['toJSDate'](),_0x2e7108=_0x4f2c04['toRelativeCalendar']()):_0x4f2c04['hasSame'](_0x2721f0,'week')?(_0xe2a225=_0x4f2c04['startOf']('week')['toJSDate'](),_0x2e7108=_0x4f2c04['weekdayLong']||''):_0x4f2c04['hasSame'](_0x2721f0,'year')?(_0xe2a225=_0x4f2c04['startOf']('month')['toJSDate'](),_0x2e7108=_0x4f2c04['monthLong']||''):(_0xe2a225=_0x4f2c04['startOf']('year')['toJSDate'](),_0x2e7108=String(_0x4f2c04['year'])),{'startDate':_0xe2a225,'localizedPeriodName':_0x2e7108};}class bi extends _0x536e3a{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1a6b06,_0x2879ed,_0xcdb5fa,_0x5c5eaa){super(_0x1a6b06);const _0x1f2b30=li(_0x2879ed,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2879ed,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xcdb5fa,this['_requireRevisionName']=_0x5c5eaa,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':_0x1f2b30}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x30ee43){const _0x20d9d3=new _i(this['locale'],_0x30ee43,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x20d9d3);}['removeRevision'](_0x3466fa){const _0x1c001f=this['revisionViews']['find'](_0x21353f=>_0x21353f['id']===_0x3466fa['id']);this['revisionViews']['remove'](_0x1c001f);}}class fi extends _0x536e3a{constructor(_0x17f0f8){super(_0x17f0f8);const _0x582b51=new _0x1ddfa7();_0x582b51['content']=_0xc29cc8,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x582b51,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x17f0f8,'Revision\x20history')]}]});}}class di extends _0x536e3a{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x42fed8,_0x6a8323,_0x48b0eb,_0x2b05c3){super(_0x42fed8);const _0x244557=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x6a8323,this['_revisionActions']=_0x48b0eb,this['_requireRevisionName']=_0x2b05c3,this['on']('select',(_0x2d059f,_0x174d2b)=>{this['fire']('revisionSelected',_0x174d2b);}),this['on']('setName',(_0x363634,_0xbaee83)=>{this['fire']('revisionSetName',_0xbaee83);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x42fed8),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x244557['if']('isEnabled','ck-disabled',_0x413a89=>!_0x413a89)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x198fc8 of this['_revisions'])this['_addRevision'](_0x198fc8);this['_revisions']['on']('add',(_0x172091,_0x33035a)=>{this['_addRevision'](_0x33035a);}),this['_revisions']['on']('remove',(_0x3fd2a2,_0x1fb70b)=>{this['_removeRevision'](_0x1fb70b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1be627=>_0x1be627['revisionViews']['map'](_0x2bac07=>_0x2bac07))['flat']();}['selectRevision'](_0x59edf3){for(const _0x2ecbfb of this['revisionViews'])_0x59edf3&&_0x59edf3['id']===_0x2ecbfb['id']?_0x2ecbfb['select']():_0x2ecbfb['deselect']();}['highlightRevisions'](_0x3b5795){for(const _0x5f1661 of this['revisionViews'])_0x3b5795['some'](({id:_0x1b2411})=>_0x1b2411===_0x5f1661['id'])?_0x5f1661['highlight']():_0x5f1661['unhighlight']();}['_addRevision'](_0x1e75c5){const _0x332517=li(_0x1e75c5['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3c2cba=this['timePeriodViews']['get'](0x0);_0x3c2cba&&_0x3c2cba['startDate']['getTime']()===_0x332517['getTime']()||(_0x3c2cba=new bi(this['locale'],_0x332517,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3c2cba)),_0x3c2cba['addRevision'](_0x1e75c5);}['_removeRevision'](_0x208061){const _0x5a1f1c=li(_0x208061['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5a1f1c)['removeRevision'](_0x208061);}['_getTimePeriodViewByStartDate'](_0x1fcca2){return this['timePeriodViews']['find'](_0x84ac78=>_0x84ac78['startDate']['getTime']()===_0x1fcca2['getTime']());}}class f extends _0x206761{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x43bbf9(_0x3807fb){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x160dd4,_0x4d71ad){super(_0x4d71ad),this['sourceElement']=_0x160dd4,this['model']['document']['createRoot']();const _0x1dd0f6=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1dd0f6);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1dc2a3,_0xdadfb){const _0x167aab=new this(_0x1dc2a3,_0xdadfb);return await _0x167aab['initPlugins'](),await _0x167aab['ui']['init'](_0x1dc2a3),await _0x167aab['data']['init'](_0x167aab['config']['get']('initialData')||''),_0x167aab['fire']('ready'),_0x167aab;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x2613d1{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52ece1){function _0x3e605b(_0x5d29d0){return _0x5d29d0['map'](_0x29608f=>String['fromCharCode'](_0x29608f))['join']('');}super(_0x52ece1),this['result']='end',_0x52ece1[_0x3e605b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e605b([0x76,0x69,0x65,0x77])][_0x3e605b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e605b([0x61,0x75,0x74,0x6f]),_0x52ece1[_0x3e605b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3e605b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e605b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3e605b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3e605b([0x6f,0x6b])});}}class ct extends _0x2613d1{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x47a200){if(super(_0x47a200),!this['editor']['config']['get']('revisionHistory'))throw new _0x490905('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4e4c88=>this['_showRevisionViewer']({..._0x4e4c88,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x8ca1e=>this['_closeRevisionViewer'](_0x8ca1e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4581b1=>this['_restoreRevision'](_0x4581b1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x20a0f5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x20a0f5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x9c6dbc){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x9c6dbc);}['getRevision'](_0x269148){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x269148);}['getRevisions'](_0x26abcf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x26abcf||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1a806f=this['editor'],_0xfcc540=_0x443e12(_0x1a806f,d),_0x39a439=_0x1a806f['plugins']['get']('RevisionTracker'),_0x52d669=_0x1a806f['plugins']['get']('Users')['users'];return _0xfcc540['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xfcc540['lazyRoots'],(_0xfcc540['plugins']['push'](ht,l,u,class extends _0x2613d1{static get['requires'](){return[l,'Users'];}['init'](){const _0x121de7=this['editor']['plugins']['get']('Users');for(const _0x50a20c of _0x52d669)_0x50a20c['isAnonymous']||_0x121de7['getUser'](_0x50a20c['id'])||_0x121de7['addUser'](_0x50a20c);const _0x59173f=_0x39a439['repository']['getRevisions']();let _0x3b78f0=null;const _0x542938=this['editor']['plugins']['get']('RevisionViewer');_0x542938['adapter']=_0x39a439['adapter'],_0x542938['bind']('isEnabled')['to'](_0x39a439),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1a806f,'isReadOnly',_0x535fda=>!_0x535fda);for(const _0x1313e9 of _0x59173f){const _0x14e20f=null===_0x1313e9['creator'];if(_0x14e20f&&_0x1313e9['toVersion']===_0x1313e9['fromVersion'])continue;const _0x7e8007=_0x1313e9['toJSON']();_0x542938['addRevisionData'](_0x7e8007,(_0x15a4e3,_0x3c24f1,_0x5445fe)=>{if(_0x14e20f){if(_0x3b78f0)_0x3b78f0['_update'](_0x15a4e3,_0x3c24f1);else{if(!_0x3c24f1){const _0x1c2eac=_0x5445fe['toJSON']();_0x1c2eac['id']=_0x280b09(),_0x39a439['saveRevision'](_0x1c2eac,_0x5445fe['toVersion'])['then'](_0x19935f=>{_0x3b78f0=_0x19935f;});}}}else _0x1313e9['_update'](_0x15a4e3,_0x3c24f1);});}}},f),_0xfcc540);}['_enhanceShowRevisionViewerCallback'](){const _0x374325=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4d72c6=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1abe80=this['editor']['plugins']['get']('Autosave');await _0x1abe80['save']();}else await _0x4d72c6['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x539c2b=this['editor']['plugins']['get']('Dialog');_0x539c2b['isOpen']&&_0x539c2b['hide']();}const _0x4f6738=this['_getRevisionViewerEditorConfig']();return _0x374325(_0x4f6738)['then'](_0x2bb900=>{return(this['_viewerEditor']=_0x2bb900,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x2bb900);})['catch'](_0x41aec0=>(console['error'](_0x41aec0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1e3a53=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1e3a53(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x382741=this['editor']['plugins']['get']('Annotations');_0x382741['refreshVisibility'](),_0x382741['refreshPositioning']();}})));}['_showRevisionViewer'](_0x94d5ba){const _0x350694=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1cf0af=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2cd69f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x2cd69f,_0x94d5ba)['then'](_0x234024=>(_0x1cf0af['style']['display']='block',_0x350694['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x234024));}['_closeRevisionViewer'](_0x27d954){const _0x6fef2c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x6fef2c['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x27d954['destroy']();}async['_restoreRevision'](_0x1f1418){const _0x54641b=this['editor'],_0x41673c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x46e186=_0x54641b['plugins']['get']('RevisionTracker'),_0xb0f5ab=_0x54641b['plugins']['get']('RevisionHistoryUtils'),_0x2e8319=_0x41673c['repository']['getRevision'](_0x1f1418);let _0x1eb074,_0x4fb538,_0x3c50a1;try{await _0xb0f5ab['loadRevisionData'](_0x2e8319,this['adapter']),_0x1eb074=_0xb0f5ab['getRevisionDocumentData'](_0x2e8319),_0x4fb538=_0xb0f5ab['getRevisionRootsAttributes'](_0x2e8319);}catch(_0x2845bd){return void console['error'](_0x2845bd);}_0x54641b['model']['change'](_0xf2e0f1=>{for(const _0x2dfced of Array['from'](_0x54641b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xf2e0f1['removeMarker'](_0x2dfced);}),_0x41673c['isReady']=!0x1,_0x54641b['model']['enqueueChange'](_0x481233=>{_0x481233['setSelection'](null),_0x481233['removeSelectionAttribute'](_0x54641b['model']['document']['selection']['getAttributeKeys']());const _0x163bd9=Object['keys'](_0x1eb074);for(const _0xdc452c of _0x54641b['model']['document']['roots'])'$graveyard'!=_0xdc452c['rootName']&&_0xdc452c['isAttached']()&&!_0x163bd9['includes'](_0xdc452c['rootName'])&&_0x481233['detachRoot'](_0xdc452c);for(const _0x515613 of _0x163bd9){let _0x1b40c0=_0x54641b['model']['document']['getRoot'](_0x515613);_0x1b40c0&&_0x1b40c0['isAttached']()||(_0x1b40c0=_0x481233['addRoot'](_0x515613));const _0x38a55f=_0x4fb538[_0x515613],_0x5bb3ec=Object['keys'](_0x38a55f),_0x5478d1=_0x1eb074[_0x515613];for(const _0x47ef85 of _0x1b40c0['getAttributeKeys']())_0x5bb3ec['includes'](_0x47ef85)||_0x481233['removeAttribute'](_0x47ef85,_0x1b40c0);for(const _0x26b2f3 of _0x5bb3ec)_0x481233['setAttribute'](_0x26b2f3,_0x4fb538[_0x515613][_0x26b2f3],_0x1b40c0);_0x481233['remove'](_0x481233['createRangeIn'](_0x1b40c0)),_0x481233['insert'](_0x54641b['data']['parse'](_0x5478d1,_0x1b40c0),_0x1b40c0,0x0);}});const _0x2aab1a=R(_0x54641b['locale'],'Restored');if(_0x2e8319['name'])_0x3c50a1=-0x1==_0x2e8319['name']['indexOf'](_0x2aab1a)?_0x2aab1a+':\x20'+_0x2e8319['name']:_0x2e8319['name'];else _0x3c50a1=_0x2aab1a+':\x20'+(_0x2e8319['createdAt']['toLocaleDateString'](_0x54641b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2e8319['createdAt']['toLocaleTimeString'](_0x54641b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x46e186['saveRevision']({'name':_0x3c50a1}),_0x41673c['isReady']=!0x0,_0x54641b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x373fe0){super(_0x373fe0),this['_revisionViewer']=_0x373fe0['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4cfba3=this['_revisionsRepository']['_revisions'],_0x3cbc5f=this['_createRevisionActions'](),_0x354901=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x4cfba3,_0x3cbc5f,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',(_0x2c3b68,_0x57d0dc)=>{_0x57d0dc['revisionViews']['on']('add',(_0x579051,_0x4cfe53)=>{_0x4cfe53['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)),_0x354901['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x578d68=this['_revisionsRepository']['getRevision'](0x0);if(_0x578d68){const _0x22a740=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x578d68['id']);this['_revisionViewer']['compare'](_0x578d68,_0x22a740);}}['_handleRevisionSelected'](_0x47a07b,_0xf2a3ee){const _0x4d7f1c=this['_revisionsRepository']['getRevision'](_0xf2a3ee['id']),_0x48aa3e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4d7f1c['id']);this['_revisionViewer']['compare'](_0x4d7f1c,_0x48aa3e);}['_handleRevisionSetName'](_0x57fb68,_0x305dcd){this['_revisionsRepository']['getRevision'](_0x305dcd['id'])['setName'](_0x305dcd['name']);}['_handleDiffChange'](_0x2d2c79,_0x17b883,_0x53e980){const _0x48e9b8=this['_revisionsRepository']['getRevisionsInDiff'](_0x53e980);_0x48e9b8['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x48e9b8),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x48e9b8[0x0]));}['_createRevisionActions'](){const _0x3010d4=this['editor'],_0x2dd5f6=f['availableRevisionActions'],_0x4fed3e=_0x3010d4['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x4fed3e['length'])return _0x4fed3e['map'](_0x3c3c8a=>{const _0x2618b0='string'==typeof _0x3c3c8a?Object['assign']({},_0x2dd5f6[_0x3c3c8a]):_0x3c3c8a;return _0x2618b0['action']=_0x2618b0['action']['bind'](this,_0x3010d4),_0x2618b0['isVisible']&&(_0x2618b0['isVisible']=_0x2618b0['isVisible']['bind'](this,_0x3010d4)),_0x2618b0;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x403e16},_0x2c3bfe)=>{const _0x49fc6b=_0x403e16['get'](l),_0x131dfe=_0x49fc6b['repository'];let _0xa23d25=_0x49fc6b['diff']['newRevisionId'],_0x1558a4=_0x2c3bfe['id'];_0x131dfe['getIndex'](_0xa23d25)>_0x131dfe['getIndex'](_0x1558a4)&&([_0xa23d25,_0x1558a4]=[_0x1558a4,_0xa23d25]),_0x49fc6b['compare'](_0xa23d25,_0x1558a4);},'isVisible':({plugins:_0x2f43bd},_0x45bbc5)=>{const _0x3dd933=_0x2f43bd['get'](l);return!(_0x3dd933['repository']['getRevisionsInDiff'](_0x3dd933['diff'])['length']>0x2)&&!_0x45bbc5['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xe003d7,{id:_0x2583ec})=>{_0xe003d7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2583ec);},'isVisible':({plugins:_0x4d7b4b},_0x3f44f0)=>!!_0x4d7b4b['get'](l)['repository']['getLaterVisibleRevision'](_0x3f44f0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x443e60},{id:_0x2cfae0,revisionNameView:_0x3dffed})=>{const _0x56dce7=_0x443e60['get'](l),_0x3f510e=_0x56dce7['repository']['getEarlierVisibleRevision'](_0x2cfae0);_0x56dce7['compare'](_0x2cfae0,_0x3f510e),_0x3dffed['focus'](),_0x3dffed['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1c4f8a,_0x5447ab){super(_0x1c4f8a),this['_view']=_0x5447ab,this['_toolbarConfig']=st(_0x1c4f8a['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x40aa60){const _0x579bd6=this['editor'],_0x5f45d7=this['view'],_0x593d5b=_0x579bd6['editing']['view'],_0x57f4b9=_0x5f45d7['editable'],_0x9b657a=_0x593d5b['document']['getRoot']();_0x57f4b9['name']=_0x9b657a['rootName'],_0x5f45d7['render']();const _0x33284b=_0x57f4b9['element'];this['setEditableElement'](_0x57f4b9['name'],_0x33284b),_0x5f45d7['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x593d5b['attachDomRoot'](_0x33284b),this['_elementReplacer']['replace'](_0x40aa60,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x584bda=this['view'],_0x254a10=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x254a10['detachDomRoot'](_0x584bda['editable']['name']),_0x584bda['destroy']();}['_initToolbar'](){const _0x395855=this['view'];_0x395855['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x395855['stickyPanel']['limiterElement']=_0x395855['element'],_0x395855['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x24992c})=>_0x24992c),_0x395855['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x395855['toolbar']);}}class ii extends _0x33b40b{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x25ffcc,_0x305de9,_0xa7fd28={}){super(_0x25ffcc),this['stickyPanel']=new _0x3897ce(_0x25ffcc),this['toolbar']=new _0x3dce5b(_0x25ffcc,{'shouldGroupWhenFull':_0xa7fd28['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x25ffcc,_0x305de9);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x6da969(_0x1dbe48){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3696ca,_0x2b88fb){super(_0x2b88fb),this['sourceElement']=_0x3696ca,this['model']['document']['createRoot']();const _0x64fbd0=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x64fbd0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x14a97a,_0x33424c){const _0x5c59ca=new this(_0x14a97a,_0x33424c);return await _0x5c59ca['initPlugins'](),await _0x5c59ca['ui']['init'](_0x14a97a),await _0x5c59ca['data']['init'](_0x5c59ca['config']['get']('initialData')||''),_0x5c59ca['fire']('ready'),_0x5c59ca;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x206761{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4550e5){function _0x540028(_0x27ba56){return _0x27ba56['map'](_0xb59f94=>String['fromCharCode'](_0xb59f94))['join']('');}super(_0x4550e5),this['result']='end',_0x4550e5[_0x540028([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x540028([0x76,0x69,0x65,0x77])][_0x540028([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x540028([0x61,0x75,0x74,0x6f]),_0x4550e5[_0x540028([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x540028([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x540028([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x540028([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x540028([0x6f,0x6b])});}}class ct extends _0x206761{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x1e5b6e){if(super(_0x1e5b6e),!this['editor']['config']['get']('revisionHistory'))throw new _0x5b405a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x48d676=>this['_showRevisionViewer']({..._0x48d676,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2576d4=>this['_closeRevisionViewer'](_0x2576d4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3c1d9c=>this['_restoreRevision'](_0x3c1d9c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x21f716){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x21f716;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5ef302){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5ef302);}['getRevision'](_0x5c09f6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5c09f6);}['getRevisions'](_0x32f8ea){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x32f8ea||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2b6cab=this['editor'],_0x4b0545=_0x44a695(_0x2b6cab,d),_0x269a13=_0x2b6cab['plugins']['get']('RevisionTracker'),_0x10a190=_0x2b6cab['plugins']['get']('Users')['users'];return _0x4b0545['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4b0545['lazyRoots'],(_0x4b0545['plugins']['push'](ht,l,u,class extends _0x206761{static get['requires'](){return[l,'Users'];}['init'](){const _0x4d58cb=this['editor']['plugins']['get']('Users');for(const _0x3a63dd of _0x10a190)_0x3a63dd['isAnonymous']||_0x4d58cb['getUser'](_0x3a63dd['id'])||_0x4d58cb['addUser'](_0x3a63dd);const _0x19ca3e=_0x269a13['repository']['getRevisions']();let _0x373f88=null;const _0x54fc97=this['editor']['plugins']['get']('RevisionViewer');_0x54fc97['adapter']=_0x269a13['adapter'],_0x54fc97['bind']('isEnabled')['to'](_0x269a13),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2b6cab,'isReadOnly',_0x331f83=>!_0x331f83);for(const _0x41ff01 of _0x19ca3e){const _0x3b7ff2=null===_0x41ff01['creator'];if(_0x3b7ff2&&_0x41ff01['toVersion']===_0x41ff01['fromVersion'])continue;const _0x427bad=_0x41ff01['toJSON']();_0x54fc97['addRevisionData'](_0x427bad,(_0x4a73bf,_0x4c428b,_0x26c358)=>{if(_0x3b7ff2){if(_0x373f88)_0x373f88['_update'](_0x4a73bf,_0x4c428b);else{if(!_0x4c428b){const _0x442c33=_0x26c358['toJSON']();_0x442c33['id']=_0x2e3833(),_0x269a13['saveRevision'](_0x442c33,_0x26c358['toVersion'])['then'](_0x42edfe=>{_0x373f88=_0x42edfe;});}}}else _0x41ff01['_update'](_0x4a73bf,_0x4c428b);});}}},f),_0x4b0545);}['_enhanceShowRevisionViewerCallback'](){const _0x2219cf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2ada4f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x14dd2d=this['editor']['plugins']['get']('Autosave');await _0x14dd2d['save']();}else await _0x2ada4f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xf65272=this['editor']['plugins']['get']('Dialog');_0xf65272['isOpen']&&_0xf65272['hide']();}const _0x234d90=this['_getRevisionViewerEditorConfig']();return _0x2219cf(_0x234d90)['then'](_0x4c06d8=>{return(this['_viewerEditor']=_0x4c06d8,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4c06d8);})['catch'](_0xc4c823=>(console['error'](_0xc4c823),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5dd833=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5dd833(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x435da7=this['editor']['plugins']['get']('Annotations');_0x435da7['refreshVisibility'](),_0x435da7['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3d4741){const _0x109322=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xc84416=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xf3df8b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0xf3df8b,_0x3d4741)['then'](_0x3454fc=>(_0xc84416['style']['display']='block',_0x109322['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3454fc));}['_closeRevisionViewer'](_0x185c45){const _0x1a4f22=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1a4f22['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x185c45['destroy']();}async['_restoreRevision'](_0x1b8bb1){const _0x14bcc5=this['editor'],_0x2702b9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x136b9c=_0x14bcc5['plugins']['get']('RevisionTracker'),_0x316bd0=_0x14bcc5['plugins']['get']('RevisionHistoryUtils'),_0x2a52b2=_0x2702b9['repository']['getRevision'](_0x1b8bb1);let _0x2f448a,_0x115a04,_0x17e4cc;try{await _0x316bd0['loadRevisionData'](_0x2a52b2,this['adapter']),_0x2f448a=_0x316bd0['getRevisionDocumentData'](_0x2a52b2),_0x115a04=_0x316bd0['getRevisionRootsAttributes'](_0x2a52b2);}catch(_0x4813d1){return void console['error'](_0x4813d1);}_0x14bcc5['model']['change'](_0x18656b=>{for(const _0x169fc6 of Array['from'](_0x14bcc5['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x18656b['removeMarker'](_0x169fc6);}),_0x2702b9['isReady']=!0x1,_0x14bcc5['model']['enqueueChange'](_0x3e72ce=>{_0x3e72ce['setSelection'](null),_0x3e72ce['removeSelectionAttribute'](_0x14bcc5['model']['document']['selection']['getAttributeKeys']());const _0x1da7a8=Object['keys'](_0x2f448a);for(const _0x1be676 of _0x14bcc5['model']['document']['roots'])'$graveyard'!=_0x1be676['rootName']&&_0x1be676['isAttached']()&&!_0x1da7a8['includes'](_0x1be676['rootName'])&&_0x3e72ce['detachRoot'](_0x1be676);for(const _0x5adea3 of _0x1da7a8){let _0x18b743=_0x14bcc5['model']['document']['getRoot'](_0x5adea3);_0x18b743&&_0x18b743['isAttached']()||(_0x18b743=_0x3e72ce['addRoot'](_0x5adea3));const _0x490e69=_0x115a04[_0x5adea3],_0x58e5f5=Object['keys'](_0x490e69),_0x361c53=_0x2f448a[_0x5adea3];for(const _0xb20aa3 of _0x18b743['getAttributeKeys']())_0x58e5f5['includes'](_0xb20aa3)||_0x3e72ce['removeAttribute'](_0xb20aa3,_0x18b743);for(const _0x4c5cdd of _0x58e5f5)_0x3e72ce['setAttribute'](_0x4c5cdd,_0x115a04[_0x5adea3][_0x4c5cdd],_0x18b743);_0x3e72ce['remove'](_0x3e72ce['createRangeIn'](_0x18b743)),_0x3e72ce['insert'](_0x14bcc5['data']['parse'](_0x361c53,_0x18b743),_0x18b743,0x0);}});const _0x54516d=R(_0x14bcc5['locale'],'Restored');if(_0x2a52b2['name'])_0x17e4cc=-0x1==_0x2a52b2['name']['indexOf'](_0x54516d)?_0x54516d+':\x20'+_0x2a52b2['name']:_0x2a52b2['name'];else _0x17e4cc=_0x54516d+':\x20'+(_0x2a52b2['createdAt']['toLocaleDateString'](_0x14bcc5['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2a52b2['createdAt']['toLocaleTimeString'](_0x14bcc5['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x136b9c['saveRevision']({'name':_0x17e4cc}),_0x2702b9['isReady']=!0x0,_0x14bcc5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|