@ckeditor/ckeditor5-revision-history 46.0.0-alpha.7 → 46.0.0-alpha.8
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/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x409714(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x7ebd15){super(),this['id']=_0x7ebd15['id']||_0x36f224(),this['creator']=_0x7ebd15['creator']||null,this['authors']=_0x7ebd15['authors']||[],this['diffData']=_0x7ebd15['diffData']||null,this['toVersion']=_0x7ebd15['toVersion']||0x0,this['fromVersion']=_0x7ebd15['fromVersion']||0x0,this['set']('name',_0x7ebd15['name']||''),this['set']('createdAt',_0x7ebd15['createdAt']||new Date()),this['set']('attributes',_0x7ebd15['attributes']||{});}['setName'](_0x490fcf){this['_update']({'name':_0x490fcf});}['setAttribute'](_0x40922e,_0xb25187){const _0x44435a=_0x477256(this['attributes']);_0x38d64e(_0x44435a,_0x40922e,_0xb25187),this['_update']({'attributes':_0x44435a});}['removeAttribute'](_0x38f9e6){const _0x5a81f1=_0x477256(this['attributes']);_0x2bfd17(_0x5a81f1,_0x38f9e6),this['_update']({'attributes':_0x5a81f1});}['_update'](_0x5518ed,_0xcc07cf=!0x1){let _0x394c57=!0x1;const _0x47afdd={'id':this['id']},_0x75e70d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4963bf of _0x75e70d){const _0x20b2f9=_0x5518ed[_0x4963bf];void 0x0!==_0x20b2f9&&_0x20b2f9!==this[_0x4963bf]&&(this[_0x4963bf]=_0x20b2f9,_0x47afdd[_0x4963bf]=_0x20b2f9,_0x394c57=!0x0);}_0x394c57&&(_0x47afdd['authors']&&(_0x47afdd['authorsIds']=_0x47afdd['authors']['map'](_0x57ba09=>_0x57ba09['id']),delete _0x47afdd['authors']),this['fire']('_update',_0x47afdd,_0xcc07cf));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xa2f795=>_0xa2f795['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x279b1f{['_revisions'];static get['requires'](){return[_0x5c194e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4184b9){super(_0x4184b9),this['_revisions']=new _0x1024f1();}['afterInit'](){!async function(_0x25a3b1){const _0x31a903=_0x586928([0x43,0x62,0x4d,0x54,0x53,0x67,0x42,0x63,0x49,0x44,0x6b,0x36,0x68,0x59,0x4f,0x48,0x41,0x74,0x4b,0x6c,0x64,0x73,0x5a,0x72,0x30,0x75,0x47,0x4e,0x37,0x6d,0x51,0x6a,0x50,0x77,0x32,0x34,0x57,0x61,0x6e,0x6f,0x33,0x39,0x66,0x70,0x46,0x45,0x58,0x71,0x7a,0x4a,0x38,0x76,0x69,0x52,0x78,0x31,0x79,0x35,0x56,0x65,0x55,0x4c]),_0x10e286=0xeb829,_0x1f40a7=0x733c064b,_0x6700b1=0x733b6ab3^_0x1f40a7,_0x522498=window[_0x586928([0x44,0x61,0x74,0x65])][_0x586928([0x6e,0x6f,0x77])](),_0x5dc177=_0x25a3b1[_0x586928([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x75baf5=new window[(_0x586928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c57f9=>{_0x5dc177[_0x586928([0x6f,0x6e,0x63,0x65])](_0x586928([0x72,0x65,0x61,0x64,0x79]),_0x3c57f9);}),_0x626029={[_0x586928([0x6b,0x74,0x79])]:_0x586928([0x45,0x43]),[_0x586928([0x75,0x73,0x65])]:_0x586928([0x73,0x69,0x67]),[_0x586928([0x63,0x72,0x76])]:_0x586928([0x50,0x2d,0x32,0x35,0x36]),[_0x586928([0x78])]:_0x586928([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]),[_0x586928([0x79])]:_0x586928([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]),[_0x586928([0x61,0x6c,0x67])]:_0x586928([0x45,0x53,0x32,0x35,0x36])},_0x551622=_0x5dc177[_0x586928([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x586928([0x67,0x65,0x74])](_0x586928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a972d(){let _0x1450f9,_0x307551=null,_0x559be0=null;try{if(_0x551622==_0x586928([0x47,0x50,0x4c]))return _0x586928([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1450f9=_0x1fa2a6(),!_0x1450f9)return _0x586928([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1450f9[_0x586928([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x559be0=_0x4c1514(_0x1450f9[_0x586928([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1450f9[_0x586928([0x6a,0x74,0x69])])),await _0x473dc2()?_0x5ed016()?_0x5d978f()?_0x586928([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3faebf()?(_0x1450f9[_0x586928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586928([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x307551=_0x34882d(_0x586928([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1450f9[_0x586928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x586928([0x74,0x72,0x69,0x61,0x6c])&&(_0x307551=_0x34882d(_0x586928([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4fbc41()):_0x586928([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x586928([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x586928([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x586928([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d978f(){const _0x10c71b=[_0x586928([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x586928([0x74,0x72,0x69,0x61,0x6c])][_0x586928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1450f9[_0x586928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x522498/0x3e8:0xe10*_0x6700b1;return _0x1450f9[_0x586928([0x65,0x78,0x70])]<_0x10c71b;}function _0x5ed016(){const _0x3e402f=_0x1450f9[_0x586928([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3e402f)return!0x1;if(_0x3e402f[_0x586928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586928([0x2a])))return!0x0;if(_0x3e402f[_0x586928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586928([0x52,0x48])))return!0x0;if(_0x3e402f[_0x586928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586928([0x52,0x52,0x48]))){if(_0x47e059())return!0x0;if(_0x59f073()||_0x39667d())return!0x0;}return!0x1;}function _0x3faebf(){const _0x17d937=_0x1450f9[_0x586928([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17d937||0x0==_0x17d937[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f22a5}=new URL(window[_0x586928([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17d937[_0x586928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f22a5))return!0x0;const _0x26d14c=_0x4f22a5[_0x586928([0x73,0x70,0x6c,0x69,0x74])](_0x586928([0x2e]));return _0x17d937[_0x586928([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12b4d7=>_0x12b4d7[_0x586928([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x586928([0x2a])))[_0x586928([0x6d,0x61,0x70])](_0x2ac790=>_0x2ac790[_0x586928([0x73,0x70,0x6c,0x69,0x74])](_0x586928([0x2e])))[_0x586928([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa1d339=>_0xa1d339[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26d14c[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x586928([0x6d,0x61,0x70])](_0x4806a0=>Array(_0x26d14c[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4806a0[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x586928([0x66,0x69,0x6c,0x6c])](_0x4806a0[0x0]===_0x586928([0x2a])?_0x586928([0x2a]):'')[_0x586928([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4806a0))[_0x586928([0x73,0x6f,0x6d,0x65])](_0x281045=>_0x26d14c[_0x586928([0x65,0x76,0x65,0x72,0x79])]((_0x5afee3,_0x1f76fc)=>_0x281045[_0x1f76fc]===_0x5afee3||_0x281045[_0x1f76fc]===_0x586928([0x2a])));}function _0x4fbc41(){return _0x307551&&_0x559be0?new window[(_0x586928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a263b,_0x163f6c)=>{_0x307551[_0x586928([0x74,0x68,0x65,0x6e])](_0x5a263b,_0x163f6c),_0x559be0[_0x586928([0x74,0x68,0x65,0x6e])](_0x186ab5=>{_0x186ab5!=_0x586928([0x56,0x61,0x6c,0x69,0x64])&&_0x5a263b(_0x186ab5);},_0x163f6c);}):_0x307551||_0x559be0||_0x586928([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c1514(_0x40e593,_0x3d19af){return new window[(_0x586928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c1793=>{if(_0x192bfc())return _0x2c1793(_0x586928([0x56,0x61,0x6c,0x69,0x64]));_0xbdb990(),_0x5dc177[_0x586928([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x586928([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x530c70=!0x1;const _0x2bdff3=_0x36f224();function _0x12b6c2(_0x139a72){return!!_0x139a72&&(typeof _0x139a72===_0x586928([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x139a72===_0x586928([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x139a72[_0x586928([0x74,0x68,0x65,0x6e])]===_0x586928([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x139a72[_0x586928([0x63,0x61,0x74,0x63,0x68])]===_0x586928([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x506355(_0x2eb58f){_0x25787b(_0x2eb58f)[_0x586928([0x74,0x68,0x65,0x6e])](_0x1dc597=>{if(!_0x1dc597||_0x1dc597[_0x586928([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x586928([0x6f,0x6b]))return _0x586928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56fc1a(_0x377157(_0x2bdff3+_0x3d19af))!=_0x1dc597[_0x586928([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x586928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x586928([0x56,0x61,0x6c,0x69,0x64]);})[_0x586928([0x74,0x68,0x65,0x6e])](_0x381df0=>(_0x2f845b(),_0x381df0),()=>{const _0x3b9eaa=_0x2dee5a();return null==_0x3b9eaa?(_0x2f845b(),_0x586928([0x56,0x61,0x6c,0x69,0x64])):_0x586928(_0x522498-_0x3b9eaa>(0x5730824b^_0x1f40a7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x586928([0x74,0x68,0x65,0x6e])](_0x2c1793)[_0x586928([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c1793(_0x586928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdbb244=0x730ae8cb^_0x1f40a7;function _0x2f845b(){const _0x4e1648=_0x586928([0x6c,0x6c,0x63,0x74,0x2d])+_0x56fc1a(_0x377157(_0x40e593)),_0x29798f=_0x41af1a(_0x56fc1a(window[_0x586928([0x4d,0x61,0x74,0x68])][_0x586928([0x63,0x65,0x69,0x6c])](_0x522498/_0xdbb244)));window[_0x586928([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586928([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e1648,_0x29798f);}function _0x2dee5a(){const _0xc75a61=_0x586928([0x6c,0x6c,0x63,0x74,0x2d])+_0x56fc1a(_0x377157(_0x40e593)),_0x5862e7=window[_0x586928([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x586928([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc75a61);return _0x5862e7?window[_0x586928([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41af1a(_0x5862e7),0x10)*_0xdbb244:null;}function _0x25787b(_0x424015){return new window[(_0x586928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fd6b6,_0x3961bf)=>{_0x424015[_0x586928([0x74,0x68,0x65,0x6e])](_0x4fd6b6,_0x3961bf),window[_0x586928([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3961bf,0x733dd28b^_0x1f40a7);});}}_0x5dc177[_0x586928([0x6f,0x6e])](_0x586928([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4456d7,_0x5eafac)=>{if(_0x5eafac[0x0]!=_0x40e593)return _0x2c1793(_0x586928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5eafac[0x1]={..._0x5eafac[0x1],[_0x586928([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2bdff3};},{[_0x586928([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586928([0x68,0x69,0x67,0x68])}),_0x5dc177[_0x586928([0x6f,0x6e])](_0x586928([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34d04f=>{_0x12b6c2(_0x34d04f[_0x586928([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x530c70=!0x0,_0x506355(_0x34d04f[_0x586928([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x586928([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x586928([0x6c,0x6f,0x77])}),_0x75baf5[_0x586928([0x74,0x68,0x65,0x6e])](()=>{_0x530c70||_0x2c1793(_0x586928([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x192bfc(){return _0x5dc177[_0x586928([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586928([0x76,0x69,0x65,0x77])][_0x586928([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x586928([0x61,0x75,0x74,0x6f]);}function _0xbdb990(){_0x5dc177[_0x586928([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586928([0x76,0x69,0x65,0x77])][_0x586928([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x586928([0x61,0x75,0x74,0x6f]);}}function _0x34882d(_0x312db0){const _0x28e456=[new window[(_0x586928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x362168=>setTimeout(_0x362168,0x73353887^_0x1f40a7)),_0x75baf5[_0x586928([0x74,0x68,0x65,0x6e])](()=>new window[(_0x586928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x156f56=>{const _0x9c0d51=0x733c064c^_0x1f40a7,_0x5d6a3a=_0x25a3b1[_0x586928([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1f4013(){_0x5d6a3a[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x9c0d51&&_0x156f56();}_0x1f4013(),_0x5d6a3a[_0x586928([0x6f,0x6e])](_0x586928([0x61,0x64,0x64]),_0x1f4013);})),new window[(_0x586928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187475=>{function _0x5dcfcd(){for(const _0x10d0cc in window)if(window[_0x586928([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x586928([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x10d0cc))&&window[_0x10d0cc]==_0x10e286)return _0x187475();_0x5dc177[_0x586928([0x73,0x74,0x61,0x74,0x65])]!=_0x586928([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x586928([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dcfcd,0x733c15c3^_0x1f40a7);}_0x5a83b9(_0x586928([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5dcfcd();})];return window[_0x586928([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x586928([0x72,0x61,0x63,0x65])](_0x28e456)[_0x586928([0x74,0x68,0x65,0x6e])](()=>_0x312db0);}async function _0x53a129(){if(await _0x75baf5,_0x5a83b9(_0x586928([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2f1b29=_0x25a3b1[_0x586928([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x76b3a1=_0x25a3b1[_0x586928([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])](_0x2f1b29[_0x586928([0x69,0x64])]),_0x46ba95=_0x3ec766(_0x586928([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x46ba95[_0x586928([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2f1b29['id'],_0x76b3a1?_0x76b3a1['id']:null,!0x0),_0x46ba95[_0x586928([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586928([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x46ba95[_0x586928([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x46ba95[_0x586928([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1660ea,void(_0x46ba95[_0x586928([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1660ea);}if(_0x5a83b9(_0x586928([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4d150b=_0x3ec766(_0x586928([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4d150b[_0x586928([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x586928([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4d150b[_0x586928([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4d150b[_0x586928([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1660ea,_0x4d150b[_0x586928([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1660ea;}_0x5dc177[_0x586928([0x6d,0x6f,0x64,0x65,0x6c])][_0x586928([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1660ea,_0x5dc177[_0x586928([0x6d,0x6f,0x64,0x65,0x6c])][_0x586928([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1660ea,_0x5dc177[_0x586928([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x586928([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x47e059(){return _0x5a83b9(_0x586928([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3ec766(_0x586928([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x586928([0x73,0x74,0x61,0x74,0x65])]==_0x586928([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x59f073(){return _0x5a83b9(_0x586928([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 _0x39667d(){return _0x5a83b9(_0x586928([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x25edd5(_0x592261){const _0x274707=_0x33b789();_0x5dc177[_0x274707]=_0x586928([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])+_0x592261,_0x592261[_0x586928([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x586928([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x33b789()]=_0x10e286),_0x592261!=_0x586928([0x56,0x61,0x6c,0x69,0x64])&&_0x53a129();}function _0x33b789(){const _0x4fec2f=window[_0x586928([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x586928([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x586928([0x6e,0x6f,0x77])]())[_0x586928([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x586928([0x2e]),'');let _0xb8099d=_0x586928([0x43]);for(let _0x383966=0x0;_0x383966<_0x4fec2f[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x383966+=0x2){let _0xbe43e7=window[_0x586928([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fec2f[_0x586928([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x383966,_0x383966+0x2));_0xbe43e7>=_0x31a903[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbe43e7-=_0x31a903[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb8099d+=_0x31a903[_0xbe43e7];}return _0xb8099d;}function _0x1fa2a6(){const _0x223f55=_0x551622[_0x586928([0x73,0x70,0x6c,0x69,0x74])](_0x586928([0x2e]));if(0x3!=_0x223f55[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x98287c(_0x223f55[0x1]);function _0x98287c(_0x971517){const _0xf1f47d=_0x1dcada(_0x971517);return _0xf1f47d&&_0x20c57a()?_0xf1f47d:null;function _0x20c57a(){const _0x6f3dcd=_0xf1f47d[_0x586928([0x6a,0x74,0x69])],_0x556691=window[_0x586928([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6f3dcd[_0x586928([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6f3dcd[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a7dd0={..._0xf1f47d,[_0x586928([0x6a,0x74,0x69])]:_0x6f3dcd[_0x586928([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6f3dcd[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a7dd0[_0x586928([0x76,0x63])],_0x377157(_0x2a7dd0)==_0x556691;}}}async function _0x473dc2(){let _0x97dcc5=!0x0;try{const _0x147747=_0x551622[_0x586928([0x73,0x70,0x6c,0x69,0x74])](_0x586928([0x2e])),[_0x485c79,_0x1c8564,_0x3556c0]=_0x147747;return _0xcf54d5(_0x485c79),await _0x5ddba5(_0x485c79,_0x1c8564,_0x3556c0),_0x97dcc5;}catch{return!0x1;}function _0xcf54d5(_0xc1e386){const _0x57a7cc=_0x1dcada(_0xc1e386);_0x57a7cc&&_0x57a7cc[_0x586928([0x61,0x6c,0x67])]==_0x586928([0x45,0x53,0x32,0x35,0x36])||(_0x97dcc5=!0x1);}async function _0x5ddba5(_0x554b68,_0x21419e,_0x4121cf){const _0x164ff2=window[_0x586928([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x586928([0x66,0x72,0x6f,0x6d])](_0x29cf04(_0x4121cf),_0x44fee6=>_0x44fee6[_0x586928([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47fe5f=new window[(_0x586928([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x586928([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x554b68+_0x586928([0x2e])+_0x21419e),_0x1b9719=window[_0x586928([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x586928([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b9719)return;const _0x26ff09=await _0x1b9719[_0x586928([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x586928([0x6a,0x77,0x6b]),_0x626029,{[_0x586928([0x6e,0x61,0x6d,0x65])]:_0x586928([0x45,0x43,0x44,0x53,0x41]),[_0x586928([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x586928([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x586928([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b9719[_0x586928([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x586928([0x6e,0x61,0x6d,0x65])]:_0x586928([0x45,0x43,0x44,0x53,0x41]),[_0x586928([0x68,0x61,0x73,0x68])]:{[_0x586928([0x6e,0x61,0x6d,0x65])]:_0x586928([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x26ff09,_0x164ff2,_0x47fe5f)||(_0x97dcc5=!0x1);}}function _0x1dcada(_0x4f969f){return _0x4f969f[_0x586928([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x586928([0x65,0x79]))?JSON[_0x586928([0x70,0x61,0x72,0x73,0x65])](_0x29cf04(_0x4f969f)):null;}function _0x29cf04(_0x3fddc3){return window[_0x586928([0x61,0x74,0x6f,0x62])](_0x3fddc3[_0x586928([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x586928([0x2b]))[_0x586928([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x586928([0x2f])));}function _0x377157(_0x51b5f1){let _0x1cec59=0x1505;function _0x8b48e2(_0x1ee643){for(let _0x109e03=0x0;_0x109e03<_0x1ee643[_0x586928([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109e03++){const _0x5cadab=_0x1ee643[_0x586928([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x109e03);_0x1cec59=(_0x1cec59<<0x5)+_0x1cec59+_0x5cadab,_0x1cec59&=_0x1cec59;}}function _0x259e20(_0x84cf02){Array[_0x586928([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x84cf02)?_0x84cf02[_0x586928([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x259e20):_0x84cf02&&typeof _0x84cf02==_0x586928([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x586928([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x84cf02)[_0x586928([0x73,0x6f,0x72,0x74])]()[_0x586928([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37ae20,_0x3de62b])=>{_0x8b48e2(_0x37ae20),_0x259e20(_0x3de62b);}):_0x8b48e2(window[_0x586928([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x84cf02));}return _0x259e20(_0x51b5f1),_0x1cec59>>>0x0;}function _0x56fc1a(_0x31d142){return _0x31d142[_0x586928([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x586928([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x586928([0x30]));}function _0x41af1a(_0x359429){return _0x359429[_0x586928([0x73,0x70,0x6c,0x69,0x74])]('')[_0x586928([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x586928([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a83b9(_0x486efe){return _0x5dc177[_0x586928([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586928([0x68,0x61,0x73])](_0x486efe);}function _0x3ec766(_0x8352d8){return _0x5dc177[_0x586928([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x586928([0x67,0x65,0x74])](_0x8352d8);}function _0x1660ea(){}function _0x586928(_0x108f79){return _0x108f79['map'](_0x3e2108=>String['fromCharCode'](_0x3e2108))['join']('');}_0x25edd5(await _0x2a972d());}(this);}['createRevision'](_0x100413){const _0x55d42e=this['editor']['plugins']['get']('Users');return new I({'id':_0x100413['id'],'name':_0x100413['name'],'creator':_0x100413['creatorId']?_0x55d42e['getUser'](_0x100413['creatorId']):null,'diffData':_0x100413['diffData']||_0x100413['data'],'authors':_0x100413['authorsIds']['map'](_0x1062fa=>_0x55d42e['getUser'](_0x1062fa)),'createdAt':new Date(_0x100413['createdAt']),'attributes':_0x100413['attributes'],'fromVersion':_0x100413['fromVersion'],'toVersion':_0x100413['toVersion']});}['addRevision'](_0x2b4019,_0x2ab708=0x0){this['_revisions']['add'](_0x2b4019,_0x2ab708);}['getRevision'](_0x52c772){return this['_revisions']['get'](_0x52c772);}['getRevisions'](_0x100643={'toJSON':!0x1}){const _0x23b7c4=Array['from'](this['_revisions']);return _0x23b7c4['reverse'](),_0x100643['toJSON']?_0x23b7c4['map'](_0x405820=>_0x405820['toJSON']()):_0x23b7c4;}['getIndex'](_0x104d4f){return this['_revisions']['getIndex'](_0x104d4f);}['getEarlierVisibleRevision'](_0x580be1){const [,_0xb6a10f]=this['getRevisionsIterator'](_0x580be1,{'direction':'earlier'});return _0xb6a10f;}['getLaterVisibleRevision'](_0x1c9339){const [,_0x44cc0a]=this['getRevisionsIterator'](_0x1c9339,{'direction':'later'});return _0x44cc0a;}['getRevisionsInDiff'](_0x395b2d){const _0x30c766=[];for(const _0x3c646d of this['getRevisionsIterator'](_0x395b2d['newRevisionId']))if(_0x30c766['push'](_0x3c646d),_0x3c646d['id']===_0x395b2d['oldRevisionId'])break;return _0x30c766;}*['getRevisionsIterator'](_0x13acdd,{direction:_0x8269b8='earlier',filter:_0x5325a6=()=>!0x0}={}){const _0x2dc620='earlier'===_0x8269b8?0x1:-0x1;let _0x355640=this['_revisions']['get'](_0x13acdd),_0x404bef=this['getIndex'](_0x355640);for(yield _0x355640;_0x355640;){if(_0x404bef+=_0x2dc620,_0x355640=this['getRevision'](_0x404bef),!_0x355640)return;_0x5325a6(_0x355640)&&(yield _0x355640);}}}class $ extends _0x279b1f{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x32266d,'c'],[_0x325bb5,'a'],[_0x28020d,'e'],[_0x42890e,'r'],[_0x2dd00d,'u']]);['_typeCharToViewClass']=new Map([['c',_0x32266d],['a',_0x325bb5],['e',_0x28020d],['r',_0x42890e],['u',_0x2dd00d]]);async['loadRevisionData'](_0x54e8af,_0x5467fc){if(_0x54e8af['diffData']||!_0x5467fc)return;const _0x34d0ed=this['editor']['config']['get']('collaboration.channelId'),_0x55ab5f=await _0x5467fc['getRevision']({'channelId':_0x34d0ed,'revisionId':_0x54e8af['id']});_0x54e8af['diffData']=_0x55ab5f['diffData'];}['getRevisionDocumentData'](_0xccf6e5){const _0x32b927={};for(const _0x275249 in _0xccf6e5['diffData']){if(_0xccf6e5['diffData'][_0x275249]['attachChange']&&!_0xccf6e5['diffData'][_0x275249]['attachChange']['isAttached'])continue;const _0x45b387=this['_removeRevisionMarkers'](JSON['parse'](_0xccf6e5['diffData'][_0x275249]['insertions'])),_0x3a8b67=this['editor']['editing']['view']['document'],_0x8e10a8=new _0x487985(_0x3a8b67,_0x45b387['map'](_0x13e030=>this['_getViewFromDiffObj'](_0x13e030,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x32b927[_0x275249]=this['editor']['data']['processor']['toData'](_0x8e10a8),this['editor']['data']['processor']['useFillerType']('default');}return _0x32b927;}['getRevisionRootsAttributes'](_0x58fa7b){const _0x4afcc7={};for(const _0x9ed035 in _0x58fa7b['diffData'])_0x58fa7b['diffData'][_0x9ed035]['attachChange']&&!_0x58fa7b['diffData'][_0x9ed035]['attachChange']['isAttached']||(_0x4afcc7[_0x9ed035]=_0x58fa7b['diffData'][_0x9ed035]['attributesAfter']||{});return _0x4afcc7;}['_getTypeCharForViewElement'](_0x28bc93){return this['_viewClassToTypeChar']['get'](_0x28bc93['constructor']);}['_getViewFromDiffObj'](_0x4bac30,_0x579b40){const _0x1eb5d8=this['editor']['editing']['view']['document'];if('string'==typeof _0x4bac30)return new _0x1a61d8(_0x1eb5d8,_0x4bac30);{let _0x2cfa49,_0x79d44a;_0x79d44a='u'==_0x4bac30['type']||'r'==_0x4bac30['type']?[]:_0x4bac30['children']['map'](_0x5829e0=>this['_getViewFromDiffObj'](_0x5829e0,_0x579b40));const _0x34c3ad=this['_typeCharToViewClass']['get'](_0x4bac30['type'])||_0x51f3d9,_0x32ea36=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2cfa49=new _0x34c3ad(_0x1eb5d8,_0x4bac30['name'],_0x4bac30['attributes'],_0x79d44a),'u'==_0x4bac30['type']&&_0x4bac30['children'][0x0]){const _0x5686ae=_0x4bac30['children'][0x0];if(_0x2cfa49['render']=function(_0x3e008b){const _0x4aa4e9=_0x3e008b['createElement']('div');return _0x4aa4e9['innerHTML']=_0x5686ae,_0x4aa4e9['childNodes'][0x0];},_0x579b40){const _0xe1d6cb=new _0x487985(_0x1eb5d8);_0xe1d6cb['_appendChild'](_0x2cfa49);const _0x960964=Array['from'](_0x32ea36['viewChildrenToDom'](_0xe1d6cb,{'bind':!0x1})),_0x1ad993=_0x32ea36['domDocument']['createElement']('div');_0x1ad993['append'](..._0x960964),_0x2cfa49=Array['from'](_0x32ea36['domChildrenToView'](_0x1ad993))[0x0];}}else{if('r'==_0x4bac30['type']&&_0x4bac30['children'][0x0]){const _0x43acf2=_0x4bac30['children'][0x0];if(_0x2cfa49['render']=function(_0x12b51e){_0x12b51e['innerHTML']=_0x43acf2;},_0x579b40){const _0x37c3e5=new _0x487985(_0x1eb5d8);_0x37c3e5['_appendChild'](_0x2cfa49);const _0x111c56=Array['from'](_0x32ea36['viewChildrenToDom'](_0x37c3e5,{'bind':!0x1})),_0x196076=_0x32ea36['domDocument']['createElement']('div');_0x196076['append'](..._0x111c56);const _0x31d17e=Array['from'](_0x32ea36['domChildrenToView'](_0x196076));_0x31d17e['length']>0x1?_0x2cfa49['_appendChild'](_0x31d17e):_0x2cfa49=_0x31d17e[0x0];}}}if(_0x4bac30['customProperties']){for(const [_0x29377e,_0x284b0f]of _0x4bac30['customProperties'])_0x2cfa49['_setCustomProperty'](_0x29377e,_0x284b0f);}const _0x2e87b4=void 0x0===_0x4bac30['fillerOffset']?null:_0x4bac30['fillerOffset'];return null!==_0x2e87b4&&(_0x2cfa49['getFillerOffset']=()=>_0x2e87b4),_0x2cfa49;}}['_makeModelFromViewString'](_0x3237ed){const _0x55c781=JSON['parse'](_0x3237ed),_0x3b95b1=this['editor']['editing']['view']['document'],_0x400257=new _0x487985(_0x3b95b1,_0x55c781['map'](_0x2d7d1b=>this['_getViewFromDiffObj'](_0x2d7d1b,!0x0)));return this['editor']['data']['toModel'](_0x400257);}['_removeRevisionMarkers'](_0x5f13b4){return(_0x5f13b4=_0x5f13b4['filter'](_0x47fed3=>!_0x47fed3['name']||'revision-start'!==_0x47fed3['name']&&'revision-end'!==_0x47fed3['name']))['forEach'](_0x54a333=>{'string'!=typeof _0x54a333&&(_0x54a333['children']=this['_removeRevisionMarkers'](_0x54a333['children']),_0x54a333['attributes']=_0x54a333['attributes']['filter'](_0x448ddf=>!_0x448ddf[0x0]['startsWith']('data-revision-')));}),_0x5f13b4;}}function R(_0x121279,_0x359ffa,_0x57ab86){const t=_0x121279['t'];switch(_0x359ffa){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'},_0x57ab86);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x57ab86);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 _0x279b1f{['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[_0x5c194e,S,$,_0x2bb90e];}constructor(_0x50a124){super(_0x50a124),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 _0x18c238=_0x36f224();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18c238},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 _0x381298=this['repository']['getRevision'](0x0),_0x7cf1fb=_0x381298&&null===_0x381298['creator']?_0x381298:null;if(this['_continueCurrentRevision']=!!_0x7cf1fb&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x28d9ae=this['_source']['getCurrentRevisionId'](),_0x515984=this['repository']['getRevision'](_0x28d9ae);if(_0x515984)this['_startingVersion']=_0x515984['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1aeff9=this['_source']['history']['_operations']['find'](_0x21548e=>!_0x21548e['_isInit']),_0x24aaab=_0x1aeff9?_0x1aeff9['baseVersion']:this['_source']['history']['version'];_0x381298?(_0x381298['toVersion']<_0x24aaab&&_0x381298['_update']({'toVersion':_0x24aaab}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x7cf1fb['id'],this['_startingVersion']=_0x7cf1fb['fromVersion']):(this['_startingVersion']=_0x381298['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x24aaab,this['_continueCurrentRevision']=!0x1);}}else _0x7cf1fb&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x7cf1fb['toVersion'],this['editor']['model']['document']['history']['version']),_0x7cf1fb['fromVersion']===_0x7cf1fb['toVersion']?(0x0!==_0x7cf1fb['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x7cf1fb['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x7cf1fb['id'],this['_startingVersion']=_0x7cf1fb['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',_0x48089a=>!_0x48089a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x53ded4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42b060;for(const _0x3ba9a5 in _0x53ded4){const _0x7d36d4=_0x3ba9a5,_0x2a6a46=_0x53ded4[_0x7d36d4];if('revisionHistoryLicenseKeyValid'==_0x2a6a46||'revisionHistoryLicenseKeyInvalid'==_0x2a6a46||'revisionHistoryLicenseKeyExpired'==_0x2a6a46||'revisionHistoryLicenseKeyDomainLimit'==_0x2a6a46||'revisionHistoryLicenseKeyNotAllowed'==_0x2a6a46||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2a6a46||'revisionHistoryLicenseKeyTrialLimit'==_0x2a6a46||'revisionHistoryLicenseKeyUsageLimit'==_0x2a6a46){delete _0x53ded4[_0x7d36d4],_0x42b060=_0x2a6a46,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x42b060&&_0x53ded4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x42b060&&_0x53ded4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x42b060&&_0x53ded4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x42b060&&_0x53ded4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x42b060&&_0x53ded4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x42b060&&_0x53ded4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x42b060&&_0x53ded4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5d5e79=this['repository']['getRevision'](0x0),_0x5d79af=await this['getRevisionDocumentData'](_0x5d5e79),_0x3f039e=await this['getRevisionRootsAttributes'](_0x5d5e79);this['_replaceEditorDataWithRevisionData'](_0x5d79af,_0x3f039e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x347c9c){this['_source']=_0x347c9c;}async['update'](){const _0x4d419c=await this['_source']['getLatestVersion']();if(_0x4d419c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2f7a7b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4d419c});_0x2f7a7b['authors']=_0x2f7a7b['authorsIds']['map'](_0x229147=>this['editor']['plugins']['get']('Users')['getUser'](_0x229147)),this['currentRevision']['_update'](_0x2f7a7b);}}async['saveRevision'](_0x44d906={},_0x2a2d89=null){const _0x3dee93=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2a2d89>this['currentRevision']['toVersion']&&(_0x2a2d89=null),null===_0x2a2d89&&(_0x2a2d89=await this['_source']['getLatestVersion']());const _0x52ea71=this['_getFromVersion'](_0x2a2d89),_0x37074c=this['buildRevisionData']({'from':_0x52ea71,'to':_0x2a2d89});if(this['currentRevision']['toVersion']<_0x2a2d89){const _0x5debf5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2a2d89,'to':_0x2a2d89});_0x5debf5['authors']=[],_0x5debf5['authorsIds']=[],_0x5debf5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5debf5,!0x0),delete _0x5debf5['authors'],_0x3dee93['push'](_0x5debf5);}_0x44d906['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x44d906['name']=_0x44d906['name']||null,_0x44d906['id']=_0x44d906['id']||_0x36f224(),_0x44d906={..._0x44d906,..._0x37074c};const _0x26be27=this['addRevisionData'](_0x44d906);_0x3dee93['push'](_0x44d906);const _0x38c154=this['repository']['getIndex'](_0x26be27);if(0x0!==_0x38c154){const _0x898a8a=this['repository']['getRevision'](_0x38c154-0x1);if(_0x898a8a['fromVersion']!==_0x2a2d89){const _0x5bfa6f=this['_revisionDataBuilder']['getData'](_0x2a2d89,_0x898a8a['toVersion']),_0x4bc500={'id':_0x898a8a['id'],'diffData':_0x5bfa6f['diffData'],'authorsIds':_0x5bfa6f['authorsIds'],'authors':_0x5bfa6f['authorsIds']['map'](_0x147785=>this['editor']['plugins']['get']('Users')['getUser'](_0x147785)),'fromVersion':_0x2a2d89};_0x898a8a===this['currentRevision']&&(_0x4bc500['createdAt']=new Date(_0x44d906['createdAt']['getTime']()+0xa)),_0x898a8a['_update'](_0x4bc500,!0x0),delete _0x4bc500['authors'],_0x3dee93['push'](_0x4bc500);}}if(this['adapter']){for(const _0x29f35b of _0x3dee93)this['_bufferUpdate'](_0x29f35b['id'],_0x29f35b,!0x0);this['sendBufferedUpdates']();}return _0x26be27;}['addRevisionData'](_0x4f6283){const _0x48d101=this['repository']['createRevision'](_0x4f6283);return this['adapter']&&_0x48d101['on']('_update',(_0x38d6a7,_0x1ef869,_0x4bce15)=>{_0x4bce15||(this['_bufferUpdate'](_0x1ef869['id'],_0x1ef869,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x48d101,this['_findInsertionIndex'](_0x48d101)),_0x48d101;}async['getRevisionDocumentData'](_0x3ec261){return await this['_utils']['loadRevisionData'](_0x3ec261,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3ec261);}async['getRevisionRootsAttributes'](_0x4a67ac){return await this['_utils']['loadRevisionData'](_0x4a67ac,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4a67ac);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x44da92=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x588fa8=0x0;_0x588fa8<_0x44da92['length'];_0x588fa8++){const _0xaa1cdb=_0x44da92[_0x588fa8];let _0x739411=!0x1;for(const _0x43889d of Object['keys'](_0xaa1cdb))void 0x0===_0xaa1cdb[_0x43889d]?delete _0xaa1cdb[_0x43889d]:'id'!==_0x43889d&&(_0x739411=!0x0);_0x739411||(_0x44da92[_0x588fa8]=null);}if(_0x44da92=_0x44da92['filter'](_0x4fb921=>null!==_0x4fb921),!_0x44da92['length'])return;for(let _0x2775f9=0x0;_0x2775f9<_0x44da92['length'];_0x2775f9++){const _0x781c30=_0x44da92[_0x2775f9];void 0x0!==_0x781c30['fromVersion']&&void 0x0===_0x781c30['toVersion']&&(_0x781c30['toVersion']=this['repository']['getRevision'](_0x781c30['id'])['toVersion']),void 0x0!==_0x781c30['toVersion']&&void 0x0===_0x781c30['fromVersion']&&(_0x781c30['fromVersion']=this['repository']['getRevision'](_0x781c30['id'])['fromVersion']);}const _0x5c99bd=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x44da92,_0x5c99bd)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4864a1=>{if(_0x4864a1){for(const _0x5b767d of _0x4864a1)this['setRevisionData']({'id':_0x5b767d['id'],'createdAt':_0x5b767d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3f644a=null,from:_0x54d4b8=null,to:_0x57984d=null}){_0x54d4b8=null!==_0x54d4b8?_0x54d4b8:_0x3f644a['fromVersion'],_0x57984d=null!==_0x57984d?_0x57984d:_0x3f644a['toVersion'];const _0x4148b5=this['_revisionDataBuilder']['getData'](_0x54d4b8,_0x57984d),_0x40ca7e={'diffData':_0x4148b5['diffData'],'authorsIds':_0x4148b5['authorsIds'],'fromVersion':_0x54d4b8,'toVersion':_0x57984d};if(!_0x3f644a||_0x57984d!==_0x3f644a['toVersion']){const _0x4857dc=_0x57984d-0x1,_0x5193f4=this['_source']['history']['getOperation'](_0x4857dc);_0x40ca7e['createdAt']=_0x5193f4&&_0x5193f4['createdAt']||new Date();}if(this['_loadedStateData']&&_0x54d4b8===this['_loadedStateData']['fromVersion']){for(const _0x5e2fcd of this['_loadedStateData']['authors'])_0x40ca7e['authorsIds']['includes'](_0x5e2fcd['id'])||_0x40ca7e['authorsIds']['push'](_0x5e2fcd['id']);}return _0x40ca7e;}['_bufferUpdate'](_0x4b37e5,_0x1053db,_0x28cc8f){if(this['_bufferedUpdates']['has'](_0x4b37e5)){const _0x1c5584=this['_bufferedUpdates']['get'](_0x4b37e5);_0x1053db=_0x28cc8f?{..._0x1c5584,..._0x1053db}:{..._0x1053db,..._0x1c5584};}this['_bufferedUpdates']['set'](_0x4b37e5,_0x1053db);}['setRevisionData'](_0x69718){const _0xdb84e9=this['repository']['getRevision'](_0x69718['id']);if(_0x69718['createdAt']&&(_0x69718['createdAt']=new Date(_0x69718['createdAt'])),_0x69718['authorsIds']){const _0x4d7198=this['editor']['plugins']['get']('Users');_0x69718['authors']=_0x69718['authorsIds']['map'](_0x5ad0f5=>_0x4d7198['getUser'](_0x5ad0f5));}_0xdb84e9['_update'](_0x69718,!0x0);}['_createInitialRevision'](_0x2ea259){const _0x3b6519=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3b6519)this['_initialRevisionId']=_0x3b6519['id'];else{const _0x55dd10=!this['editor']['model']['document']['roots']['find'](_0x20366f=>this['editor']['model']['hasContent'](_0x20366f)),_0x4cf04d=this['editor']['plugins']['get']('Users')['me']['id'],_0x42340a=R(this['editor']['locale'],_0x55dd10?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2ea259,'to':_0x2ea259,'id':this['_initialRevisionId'],'name':_0x42340a,'creatorId':_0x4cf04d});}}['_createCurrentRevision'](_0x319418){const _0x233cd7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x233cd7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x319418,'to':_0x319418,'id':_0x233cd7,'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'](_0x52dbd6,_0x3d3de7){let _0x30a11c=this['editor']['config']['get']('initialData'),_0x3c957b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x30a11c){_0x30a11c={};for(const _0x514eb6 of this['editor']['model']['document']['getRootNames']())_0x30a11c[_0x514eb6]='';}if('string'==typeof _0x30a11c&&(_0x30a11c={'main':_0x30a11c}),void 0x0===_0x3c957b){_0x3c957b={};for(const _0x29086c of this['editor']['model']['document']['getRootNames']())_0x3c957b[_0x29086c]={};}let _0x3829e7=!0x1;const _0x30f5b3=Object['keys'](_0x30a11c),_0x5c9e1c=Object['keys'](_0x52dbd6);for(const _0x2c980c of _0x30f5b3){if(_0x30a11c[_0x2c980c]!==_0x52dbd6[_0x2c980c]&&''!==_0x30a11c[_0x2c980c]['trim']()){_0x3829e7=!0x0;break;}if(!_0x13ba33(_0x3c957b[_0x2c980c],_0x3d3de7[_0x2c980c])&&Object['keys'](_0x3c957b[_0x2c980c])['length']>0x0){_0x3829e7=!0x0;break;}}_0x3829e7||(_0x3829e7=_0x5c9e1c['some'](_0x3c4260=>!this['editor']['model']['document']['getRoot'](_0x3c4260))),_0x3829e7&&_0x4cf3c9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x30a11c,'editorRootsAttributes':_0x3c957b,'revisionData':_0x52dbd6,'revisionRootsAttributes':_0x3d3de7}),this['editor']['config']['set']('initialData',_0x52dbd6),this['editor']['config']['set']('rootsAttributes',_0x3d3de7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x26cc12=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x26cc12['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x31f51b){const _0x3812ea=this['repository']['getRevisions']();_0x3812ea['reverse']();let _0x53b9f6=0x0;for(;_0x53b9f6<_0x3812ea['length'];){const _0x62b48d=_0x3812ea[_0x53b9f6];if(_0x62b48d===this['currentRevision']){_0x53b9f6++;continue;}if(_0x62b48d['id']===this['_initialRevisionId'])break;const _0xf5f573=_0x31f51b['toVersion']-_0x62b48d['toVersion']||_0x31f51b['fromVersion']-_0x62b48d['fromVersion'];if(_0xf5f573>0x0)break;if(_0xf5f573<0x0)_0x53b9f6++;else{if(!_0x31f51b['creator']&&_0x62b48d['creator'])break;if(_0x62b48d['creator']||!_0x31f51b['creator']){if(_0x31f51b['createdAt']>_0x62b48d['createdAt'])break;_0x53b9f6++;}else _0x53b9f6++;}}return _0x53b9f6;}['_getFromVersion'](_0x5c17cf){const _0x55fdf5=this['repository']['getRevisions']();_0x55fdf5['reverse'](),_0x55fdf5['shift']();const _0x43d635=_0x55fdf5['find'](_0x3b2e4b=>_0x3b2e4b['toVersion']<=_0x5c17cf)['toVersion'];return _0x43d635<this['_startingVersion']?this['_startingVersion']:_0x43d635;}['_makeRevision']({name:_0x22f9d9,from:_0x2114bf,to:_0x5b6371,creatorId:_0x3862ec,id:_0x2b7556}){const _0x201614=this['buildRevisionData']({'from':_0x2114bf,'to':_0x5b6371});_0x201614['name']=_0x22f9d9,_0x201614['creatorId']=_0x3862ec,_0x201614['id']=_0x2b7556;const _0x12e077=this['addRevisionData'](_0x201614);return this['adapter']&&this['_bufferUpdate'](_0x201614['id'],_0x201614,!0x0),_0x12e077;}['_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(_0x4ef1dc){this['editor']=_0x4ef1dc,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'](_0x5bf38e){this['source']=_0x5bf38e;const _0x2f1742=new Map(),_0x32f31d=new Map(),_0x1348fa=this['editor']['model']['document']['roots']['map'](_0x23fe39=>_0x23fe39['rootName']);for(const _0x90763c of _0x1348fa){const _0x40de3d=this['editor']['model']['document']['getRoot'](_0x90763c),_0x145e6a=x(_0x40de3d);_0x2f1742['set'](_0x90763c,_0x145e6a),_0x32f31d['set'](_0x90763c,Object['fromEntries'](_0x40de3d['getAttributes']()));}const _0x5d4434=Array['from'](this['editor']['model']['markers'])['map'](_0x475794=>[_0x475794['name'],_0x475794['getRange']()]),_0x3fc5b1=this['source']['version'];this['_saveMetaData'](_0x3fc5b1,_0x2f1742,_0x5d4434,_0x32f31d),this['_startingRevisionId']=this['_revisionId'];const _0x4fba3e=new Map(),_0x137ffa=new Map();for(const _0x3eb83b of _0x1348fa){const _0x5b85a9=N(_0x3eb83b);_0x4fba3e['set'](_0x3eb83b,_0x5b85a9),_0x137ffa['set'](_0x3eb83b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4fba3e,[],_0x137ffa);}['getData'](_0x359f43,_0x434ea0){if(this['_lastFrom']===_0x359f43&&this['_lastTo']<=_0x434ea0)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x434ea0,!0x0);else{if(!this['_savedMetaData']['has'](_0x359f43)){const _0x4827ff=this['_getPreviousFrom'](_0x359f43);this['_calculateMetaData'](_0x4827ff,_0x359f43,!0x1);}this['_calculateMetaData'](_0x359f43,_0x434ea0,!0x0);}return this['_lastFrom']=_0x359f43,this['_lastTo']=_0x434ea0,this['_getState']();}['loadState'](_0x45f59e){const _0x2d18ae=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x45f59e['fromVersion'],this['_lastTo']=_0x45f59e['toVersion'];for(const _0x1d1d4c in _0x45f59e['diffData']){const _0x201517=_0x45f59e['diffData'][_0x1d1d4c]['attachChange'],_0x10a2db=_0x477256(_0x45f59e['diffData'][_0x1d1d4c]['attributesBefore'])||{},_0x59687a=_0x2d18ae['_makeModelFromViewString'](_0x45f59e['diffData'][_0x1d1d4c]['deletions']);_0x59687a['rootName']=_0x1d1d4c,_0x59687a['_isAttached']=!_0x201517||!_0x201517['isAttached'],_0x59687a['isAttached']=()=>_0x59687a['_isAttached'],this['_baseRoots']['set'](_0x1d1d4c,_0x59687a),this['_baseRootsAttributes']['set'](_0x1d1d4c,_0x10a2db),_0x201517&&this['_touchedRoots']['set'](_0x1d1d4c,_0x201517);const _0xdab689=this['_makeIdsRoot'](_0x59687a);this['_baseIdsRoots']['set'](_0x1d1d4c,_0xdab689);for(const [_0x8a9bcf,_0x2439d1]of _0x59687a['markers']){if(!_0x8a9bcf['startsWith']('revision:'))continue;const _0x117b6f=_0x8a9bcf['split'](':')[0x2];for(const _0x2ccd1f of _0x2439d1['getWalker']({'singleCharacters':!0x0})){const _0x199777=this['_getVidAttributeName'](_0x2ccd1f),_0x514d43='elementEnd'==_0x2ccd1f['type']?_0x2ccd1f['previousPosition']['path']['slice'](0x0,-0x1):_0x2ccd1f['previousPosition']['path'],_0x47d190=_0xdab689['getNodeByPath'](_0x514d43)['getAttribute'](_0x199777);this['_touched']['set'](_0x47d190,{'userId':_0x117b6f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x53f5c6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x52b074=>!this['_touched']['has'](_0x52b074));let _0x57b222=0x0;const _0x40b767=new Map();for(const _0x4746de in _0x45f59e['diffData']){const _0x4de2b8=_0x45f59e['diffData'][_0x4746de]['attachChange'],_0x56a9d8=_0x477256(_0x45f59e['diffData'][_0x4746de]['attributesAfter'])||{},_0x2c049d=_0x2d18ae['_makeModelFromViewString'](_0x45f59e['diffData'][_0x4746de]['insertions']);_0x2c049d['rootName']=_0x4746de,_0x2c049d['_isAttached']=!_0x4de2b8||_0x4de2b8['isAttached'],_0x2c049d['isAttached']=()=>_0x2c049d['_isAttached'],this['_diffRoots']['set'](_0x4746de,_0x2c049d),this['_diffRootsAttributes']['set'](_0x4746de,_0x56a9d8);const _0x35bcef=this['_makeIdsRoot'](_0x2c049d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4746de,_0x35bcef),_0x40b767['set'](_0x4746de,_0x2c049d['isAttached']()?_0x56a9d8:{});for(const [_0x127288,_0x49f8da]of _0x2c049d['markers']){if(!_0x127288['startsWith']('revision:'))continue;const _0x484a62=_0x127288['split'](':')[0x2];for(const _0x59be07 of _0x49f8da['getWalker']({'singleCharacters':!0x0})){const _0x4985ec=this['_getVidAttributeName'](_0x59be07),_0x13a036=this['_revisionId']++,_0x333c4e='elementEnd'==_0x59be07['type']?_0x59be07['previousPosition']['path']['slice'](0x0,-0x1):_0x59be07['previousPosition']['path'];_0x35bcef['getNodeByPath'](_0x333c4e)['_setAttribute'](_0x4985ec,_0x13a036),this['_touched']['set'](_0x13a036,{'userId':_0x484a62});}}for(const _0x230e64 of this['editor']['model']['createRangeIn'](_0x2c049d)['getWalker']({'singleCharacters':!0x0})){const _0x30970b=this['_getVidAttributeName'](_0x230e64),_0x4684e4='elementEnd'==_0x230e64['type']?_0x230e64['previousPosition']['path']['slice'](0x0,-0x1):_0x230e64['previousPosition']['path'],_0x3afb2b=_0x35bcef['getNodeByPath'](_0x4684e4);_0x3afb2b['getAttribute'](_0x30970b)>0x0||_0x3afb2b['_setAttribute'](_0x30970b,_0x53f5c6[_0x57b222++]);}for(const [_0x28d2c8,_0x489f8c]of _0x2c049d['markers'])_0x28d2c8['startsWith']('revision:')||this['_markers']['set'](_0x28d2c8,_0x489f8c);}const _0x7c72c9=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x7c72c9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x7c72c9,0x1));const _0x22d19f=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x22d19f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x22d19f,0x1));const _0x56ae41=Array['from'](this['_diffRoots'])['map'](([_0x3df2ba,_0x4509e1])=>[_0x3df2ba,x(_0x4509e1)]);this['_saveMetaData'](this['_lastTo'],_0x56ae41,this['_markers'],_0x40b767);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d2e16,_0x2f0e83,_0xaca768,_0x350d3d){const _0x562279=new Map(_0x2f0e83),_0x2c19ca=new Map(_0x477256(_0x350d3d)),_0x3ff977=new Map();for(const [_0x5b5c1d,_0x3978b6]of _0xaca768)_0x3ff977['set'](_0x5b5c1d,{'start':_0x3978b6['start']['clone'](),'end':_0x3978b6['end']['clone'](),'rootName':_0x3978b6['root']['rootName']});this['_savedMetaData']['set'](_0x4d2e16,{'roots':_0x562279,'markers':_0x3ff977,'rootsAttributes':_0x2c19ca});}['_removeMetaData'](_0x9dee13){this['_savedMetaData']['delete'](_0x9dee13);}['_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'](_0x2eb553,_0xe1b4d3=null){let _0x42111a=null;_0x2eb553['is']('documentFragment')||(_0x42111a=new _0x45ab54(_0x2eb553['name'],{'vid_start':null===_0xe1b4d3?this['_revisionId']++:_0xe1b4d3++}));const _0x5ea7dd=[];for(const _0x4e9bdf of _0x2eb553['getChildren']())if(_0x4e9bdf['is']('element')){_0x5ea7dd['push'](this['_makeIdsRoot'](_0x4e9bdf,_0xe1b4d3));const _0x4d1785=_0x5ea7dd[_0x5ea7dd['length']-0x1];null!==_0xe1b4d3&&(_0xe1b4d3=_0x4d1785['is']('element','$text')?_0x4d1785['getAttribute']('vid')+0x1:_0x4d1785['getAttribute']('vid_end')+0x1);}else{for(let _0x15409c=0x0;_0x15409c<_0x4e9bdf['offsetSize'];_0x15409c++)_0x5ea7dd['push'](new _0x45ab54('$text',{'vid':null===_0xe1b4d3?this['_revisionId']++:_0xe1b4d3++}));}if(_0x2eb553['is']('documentFragment')){const _0x33bffd=N(_0x2eb553['rootName']);return _0x33bffd['_insertChild'](0x0,_0x5ea7dd),_0x33bffd;}return _0x42111a['_setAttribute']('vid_end',null===_0xe1b4d3?this['_revisionId']++:_0xe1b4d3++),_0x42111a['_insertChild'](0x0,_0x5ea7dd),_0x42111a;}['_calculateMetaData'](_0x20b55c,_0x373684,_0x223598){this['_reset']();const {roots:_0x2e71fb,markers:_0x2c955d,rootsAttributes:_0x22d847}=this['_savedMetaData']['get'](_0x20b55c);this['_baseRoots']=new Map(_0x2e71fb),this['_baseRootsAttributes']=new Map(_0x477256(_0x22d847));for(const [_0x327e09,_0x3f0776]of this['_baseRoots'])if('$graveyard'!==_0x327e09&&(this['_diffRoots']['set'](_0x327e09,x(_0x3f0776)),this['_diffRootsAttributes']=new Map(_0x477256(_0x22d847)),_0x223598)){const _0x5a4804=this['_revisionId'];this['_idsRoots']['set'](_0x327e09,this['_makeIdsRoot'](_0x3f0776)),this['_baseIdsRoots']['set'](_0x327e09,this['_makeIdsRoot'](_0x3f0776,_0x5a4804));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x223598&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4e2a3d,_0x2d6bd7]of _0x2c955d){const _0x1f1db0=this['_baseRoots']['get'](_0x2d6bd7['rootName']),_0x1f6114=this['_diffRoots']['get'](_0x2d6bd7['rootName']),_0x9e4c1d=new _0x3e295f(this['_fixPosition'](_0x2d6bd7['start'],_0x1f1db0),this['_fixPosition'](_0x2d6bd7['end'],_0x1f1db0)),_0x26040c=this['_fixRange'](_0x9e4c1d,_0x1f6114);_0x1f1db0['markers']['set'](_0x4e2a3d,_0x9e4c1d),this['_markers']['set'](_0x4e2a3d,_0x26040c);}this['_applyOperations'](_0x20b55c,_0x373684,_0x223598);}['_applyOperations'](_0x32515a,_0x147df0,_0x5a8800){for(const _0x12e814 of this['source']['getOperations'](_0x32515a,_0x147df0))this['_handleOperation'](_0x12e814,_0x5a8800);for(const _0x27e432 of this['_diffRoots']['values']())_0x27e432['markers']['clear']();for(const [_0x585c87,_0x1a825a]of this['_markers']){this['_diffRoots']['get'](_0x1a825a['root']['rootName'])['markers']['set'](_0x585c87,_0x1a825a['clone']());}const _0x5c1f35=new Map(),_0x5dcddb=new Map();for(const [_0x243318,_0x5e9fe6]of this['_diffRoots'])_0x5c1f35['set'](_0x243318,x(_0x5e9fe6)),_0x5dcddb['set'](_0x243318,this['_diffRootsAttributes']['get'](_0x243318));this['_saveMetaData'](_0x147df0,_0x5c1f35,this['_markers'],_0x5dcddb);}['_getPreviousFrom'](_0x5b9ddd){const _0x3cd9f0=Array['from'](this['_savedMetaData']['keys']());_0x3cd9f0['sort']((_0x36383a,_0x606e38)=>_0x36383a-_0x606e38),_0x3cd9f0['reverse']();for(const _0x5aff37 of _0x3cd9f0)if(_0x5aff37<_0x5b9ddd)return _0x5aff37;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2265d7,_0x2e47b5){const _0x32dbd1=Array['from'](_0x2e47b5['markers'])['map'](([_0x4d3339,_0x429f16])=>[_0x4d3339,this['_fixRange'](_0x429f16,_0x2265d7)]);_0x2265d7['markers']=new Map(_0x32dbd1);}['_transformMarkers'](_0x5b771f){for(const _0x24f3ec of this['_markers']['values']()){const _0x56bd7f=_0x24f3ec['getTransformedByOperation'](_0x5b771f),_0x3f0e69=_0x3e295f['_createFromRanges'](_0x56bd7f);_0x24f3ec['start']=_0x3f0e69['start'],_0x24f3ec['end']=_0x3f0e69['end'];}}['_handleOperation'](_0x47ea2a,_0x267aee){if('addRoot'!=_0x47ea2a['type']&&'detachRoot'!=_0x47ea2a['type']){if('insert'==_0x47ea2a['type']){const _0x564988=_0x47ea2a['position']['root']['rootName'];this['_diffRoots']['has'](_0x564988)||(this['_diffRoots']['set'](_0x564988,N(_0x564988,!0x0)),this['_diffRootsAttributes']['set'](_0x564988,{}),_0x267aee&&this['_idsRoots']['set'](_0x564988,N(_0x564988,!0x0)));}else{if('addRootAttribute'==_0x47ea2a['type']||'removeRootAttribute'==_0x47ea2a['type']||'changeRootAttribute'==_0x47ea2a['type'])return void this['_handleRootAttributeOperation'](_0x47ea2a);'marker'==_0x47ea2a['type']&&this['_handleMarkerOperation'](_0x47ea2a);}if('marker'!==_0x47ea2a['type']){const _0x23bf7e=this['_cloneOperation'](_0x47ea2a,this['_diffRoots']);_0x23bf7e['_execute'](),this['_transformMarkers'](_0x23bf7e);}if(_0x267aee)switch(_0x47ea2a['type']){case'insert':this['_handleInsertOperation'](_0x47ea2a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x47ea2a);break;case'merge':this['_handleMergeOperation'](_0x47ea2a);break;case'split':this['_handleSplitOperation'](_0x47ea2a);}}else this['_handleRootOperation'](_0x47ea2a,_0x267aee);}['_cloneOperation'](_0x53ae99,_0x4226a2){const _0x16023f=_0x53ae99['clone']();return _0x16023f['_authorId']=_0x53ae99['_authorId'],this['_fixOperation'](_0x16023f,_0x4226a2),_0x16023f;}['_getBaseVids'](_0x16927e){return _0x16927e['map'](_0x560cce=>{const _0x18567d=this['_getVidAttributeName'](_0x560cce);return Number(_0x560cce['item']['getAttribute'](_0x18567d));});}['_generateTape'](_0x5074fc,_0x33b68e){if(_0x5074fc['is']('element','$text'))_0x33b68e['push']({'item':_0x5074fc,'type':'text'});else{_0x5074fc['is']('element')&&_0x33b68e['push']({'item':_0x5074fc,'type':'elementStart'});for(const _0x48dbe6 of _0x5074fc['getChildren']())this['_generateTape'](_0x48dbe6,_0x33b68e);_0x5074fc['is']('element')&&_0x33b68e['push']({'item':_0x5074fc,'type':'elementEnd'});}return _0x33b68e;}['_getState'](){const _0x22b435=new Map(this['_touched']),_0x130752=new Map(_0x22b435),_0x73122b=new Map(),_0x2c4044={'insertions':{},'deletions':{}},_0x26ac18={'insertions':{},'deletions':{}},_0x418e0f=new Map(),_0x5733eb=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5733eb['delete']('$graveyard');for(const _0x3fc559 of _0x5733eb){const _0x317b95=this['_diffRoots']['get'](_0x3fc559)||N(_0x3fc559,!0x1),_0x410b48=this['_baseRoots']['get'](_0x3fc559)||N(_0x3fc559,!0x1);_0x317b95['isAttached']()||_0x410b48['isAttached']()?(_0x2c4044['insertions'][_0x3fc559]=x(_0x317b95),_0x2c4044['deletions'][_0x3fc559]=x(_0x410b48),this['_copyMarkers'](_0x2c4044['deletions'][_0x3fc559],_0x410b48),this['_copyMarkers'](_0x2c4044['insertions'][_0x3fc559],_0x317b95),_0x26ac18['insertions'][_0x3fc559]=this['_generateTape'](this['_idsRoots']['get'](_0x3fc559),[]),_0x26ac18['deletions'][_0x3fc559]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3fc559)||N(_0x3fc559,!0x1),[])):_0x5733eb['delete'](_0x3fc559);}for(const _0x5e13fd of _0x5733eb){const _0x4ca207=_0x26ac18['insertions'][_0x5e13fd];for(const _0x638797 of _0x4ca207){const _0x5c8afb=this['_getVidAttributeName'](_0x638797),_0x15ed9f=_0x638797['item']['getAttribute'](_0x5c8afb);_0x130752['delete'](_0x15ed9f),_0x15ed9f>=this['_startingRevisionId']&&_0x73122b['set'](_0x15ed9f,_0x22b435['get'](_0x15ed9f));}}for(const _0x38772e of _0x5733eb){const _0x97f81e=_0x26ac18['insertions'][_0x38772e],_0x53c3ba=this['_getBaseVids'](_0x26ac18['deletions'][_0x38772e]);let _0x33333a=0x0;for(const _0x33732b of _0x97f81e){const _0x1b6c92=this['_getVidAttributeName'](_0x33732b),_0x418d90=_0x33732b['item']['getAttribute'](_0x1b6c92);if(!_0x73122b['has'](_0x418d90)&&!_0x418e0f['has'](_0x418d90)){if(_0x130752['has'](_0x418d90))_0x33333a++;else{if(_0x418d90!=_0x53c3ba[_0x33333a]){const _0x56f99e=_0x22b435['get'](_0x418d90)||_0x22b435['get'](_0x53c3ba[_0x33333a]);for(;_0x418d90!=_0x53c3ba[_0x33333a];)_0x130752['has'](_0x53c3ba[_0x33333a])||(_0x418e0f['set'](_0x53c3ba[_0x33333a],_0x56f99e),_0x22b435['set'](_0x53c3ba[_0x33333a],_0x56f99e)),_0x33333a++;}_0x33333a++;}}}}for(const _0xf5cc2d of _0x5733eb){const _0x4c3e52=_0x26ac18['insertions'][_0xf5cc2d];for(const _0x946e07 of _0x4c3e52){const _0x443c37=this['_getVidAttributeName'](_0x946e07),_0x523d66=_0x946e07['item']['getAttribute'](_0x443c37);if(_0x418e0f['has'](_0x523d66)){const _0x394954=_0x418e0f['get'](_0x523d66);_0x130752['has'](_0x523d66)||_0x130752['set'](_0x523d66,{..._0x394954}),_0x73122b['set'](_0x523d66,{..._0x394954});}}}for(const _0x3df62d of _0x130752['keys']())_0x3df62d>=this['_startingRevisionId']&&_0x130752['delete'](_0x3df62d);const _0x10c21f=new Map();for(const _0x48ad7e of _0x5733eb){let _0x453c9d=_0x26ac18['insertions'][_0x48ad7e];for(const _0x2a5429 of _0x453c9d)if(_0x2a5429['item']['is']('element','tableCell')){const _0x5789f6=this['_getVidAttributeName'](_0x2a5429),_0x509ab6=_0x2a5429['item']['getAttribute'](_0x5789f6);if(_0x73122b['has'](_0x509ab6)){const _0x24705d=_0x2a5429['item']['parent']['parent']['getAttribute']('vid_start'),_0x528dec=_0x10c21f['get'](_0x24705d)||new Set();_0x528dec['add'](_0x73122b['get'](_0x509ab6)['userId']),_0x10c21f['set'](_0x24705d,_0x528dec);}}_0x453c9d=_0x26ac18['deletions'][_0x48ad7e];for(const _0x3e01ee of _0x453c9d)if(_0x3e01ee['item']['is']('element','tableCell')){const _0xa2751e=this['_getVidAttributeName'](_0x3e01ee),_0xa6e726=_0x3e01ee['item']['getAttribute'](_0xa2751e);if(_0x130752['has'](_0xa6e726)){const _0x231837=_0x3e01ee['item']['parent']['parent']['getAttribute']('vid_start'),_0x3755f9=_0x10c21f['get'](_0x231837)||new Set();_0x3755f9['add'](_0x130752['get'](_0xa6e726)['userId']),_0x10c21f['set'](_0x231837,_0x3755f9);}}for(const _0x415282 of _0x10c21f['keys']())(_0x73122b['has'](_0x415282)||_0x130752['has'](_0x415282))&&_0x10c21f['delete'](_0x415282);}for(const _0x401df5 of _0x5733eb){const _0x3f1576=_0x26ac18['insertions'][_0x401df5];let _0x1279fa=null,_0x4a52be=null;for(const _0x1a5a62 of _0x3f1576){const _0x167a5c=this['_getVidAttributeName'](_0x1a5a62),_0xabdbbd=_0x1a5a62['item']['getAttribute'](_0x167a5c),_0x5e18ef=_0x10c21f['get'](_0xabdbbd);_0x5e18ef&&'elementStart'==_0x1a5a62['type']&&(_0x1279fa=Array['from'](_0x5e18ef)[0x0],_0x4a52be=_0x1a5a62['item']['getAttribute']('vid_end')),_0x1279fa&&(_0x130752['set'](_0xabdbbd,{'userId':_0x1279fa}),_0x73122b['set'](_0xabdbbd,{'userId':_0x1279fa})),_0xabdbbd==_0x4a52be&&(_0x1279fa=null,_0x4a52be=null);}}const _0x347ed0={},_0xc70a1=new Set();for(const _0x5f3c19 of _0x5733eb){const _0x225b2e=_0x2c4044['deletions'][_0x5f3c19],_0x18b47a=_0x2c4044['insertions'][_0x5f3c19];for(const {userId:_0x52c208}of this['_touchedMarkers']['values']())null!==_0x52c208&&_0xc70a1['add'](_0x52c208);for(const {userId:_0x227e29}of this['_touchedRoots']['values']())null!==_0x227e29&&_0xc70a1['add'](_0x227e29);this['_markChanges'](_0x18b47a,_0x26ac18['insertions'][_0x5f3c19],_0x73122b,'insertion',_0xc70a1),this['_markChanges'](_0x225b2e,_0x26ac18['deletions'][_0x5f3c19],_0x130752,'deletion',_0xc70a1),_0x347ed0[_0x5f3c19]={'insertions':this['_prepareViewToSave'](_0x18b47a),'deletions':this['_prepareViewToSave'](_0x225b2e),'attachChange':this['_touchedRoots']['get'](_0x5f3c19)||null,'attributesBefore':_0x477256(this['_baseRootsAttributes']['get'](_0x5f3c19))||{},'attributesAfter':_0x477256(this['_diffRootsAttributes']['get'](_0x5f3c19))};}return{'diffData':_0x347ed0,'authorsIds':Array['from'](_0xc70a1)};}['_processRootBeforeSave'](_0x341d44){for(const [,_0x398b83]of _0x341d44['markers']){const _0x485103=_0x398b83['start']['getAncestors']()['filter'](_0x475c3d=>'tableCell'==_0x475c3d['name']);for(const _0xcef80f of _0x485103)0x1==_0xcef80f['childCount']&&_0xcef80f['getChild'](0x0)['is']('element','paragraph')&&_0xcef80f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x559468){this['_processRootBeforeSave'](_0x559468);const _0x2791b3=this['editor']['data']['toView'](_0x559468,{}),_0x34a896=Array['from'](_0x2791b3['getChildren']())['map'](_0x365df4=>this['_getViewJson'](_0x365df4));return JSON['stringify'](_0x34a896);}['_getViewJson'](_0x39d2a3){if(_0x39d2a3['is']('$text'))return _0x39d2a3['data'];{const _0x3ba34e=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x18b552=_0x39d2a3,_0xeafb47=this['editor']['data']['htmlProcessor']['domConverter'],_0x5a693b={'type':_0x3ba34e['_getTypeCharForViewElement'](_0x18b552),'name':_0x18b552['name'],'attributes':Array['from'](_0x18b552['getAttributes']()),'children':Array['from'](_0x18b552['getChildren']())['map'](_0x5bd9a5=>this['_getViewJson'](_0x5bd9a5))};if(_0x39d2a3['is']('uiElement')&&'$comment'!=_0x39d2a3['name']){const _0x5526b3=_0x39d2a3['render'](_0xeafb47['domDocument'],_0xeafb47);_0x5a693b['children']['push'](_0x5526b3['outerHTML']);}else{if(_0x39d2a3['is']('rawElement')){const _0x158d2c=_0xeafb47['domDocument']['createElement'](_0x18b552['name']);_0x39d2a3['render'](_0x158d2c,_0xeafb47),_0x5a693b['children']['push'](_0x158d2c['innerHTML']);}}const _0x29a56a=Array['from'](_0x18b552['getCustomProperties']());_0x29a56a['length']>0x0&&(_0x5a693b['customProperties']=_0x29a56a);const _0x4a4a33=_0x18b552['getFillerOffset']();return null!==_0x4a4a33&&(_0x5a693b['fillerOffset']=_0x4a4a33),_0x5a693b;}}['_markChanges'](_0x14df83,_0x2b18e1,_0x48c3b5,_0x48eab3,_0x12e483){let _0x5a6245=null,_0x4bdf2b=null,_0x497373=0x0;const _0xead92a=this['editor']['model'];for(let _0x629925=0x0;_0x629925<_0x2b18e1['length'];_0x629925++){const _0x227684=this['_getVidAttributeName'](_0x2b18e1[_0x629925]),_0x1f8e2a=_0x2b18e1[_0x629925]['item']['getAttribute'](_0x227684),_0x51e775=_0x48c3b5['get'](_0x1f8e2a),_0x38a313=_0x629925==_0x2b18e1['length']-0x1;(!_0x5a6245&&_0x51e775&&(_0x5a6245=_0x51e775,_0x4bdf2b=_0x2b18e1[_0x629925]),_0x5a6245&&(!_0x51e775||_0x51e775['userId']!=_0x5a6245['userId']))&&(_0x529e36(_0x51e775,P(_0x4bdf2b,_0x14df83,_0xead92a),P(_0x2b18e1[_0x629925],_0x14df83,_0xead92a)),_0x5a6245=_0x51e775||null,_0x4bdf2b=_0x51e775?_0x2b18e1[_0x629925]:null),_0x5a6245&&_0x38a313&&_0x529e36(_0x51e775,P(_0x4bdf2b,_0x14df83,_0xead92a),V(_0x2b18e1[_0x629925],_0x14df83,_0xead92a));}function _0x529e36(_0x2c08cf,_0x27fa46,_0x528c37){const _0xc617ba=_0x5a6245['userId'],_0x57cc2f='revision:'+_0x48eab3+':'+_0xc617ba+':'+_0x497373++,_0x4e5dd0=_0xead92a['createRange'](_0x27fa46,_0x528c37);_0x14df83['markers']['set'](_0x57cc2f,_0x4e5dd0),null!==_0xc617ba&&_0x12e483['add'](_0xc617ba);}}['_getVidAttributeName'](_0x31040d){switch(_0x31040d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x17b505,_0x323881){_0x17b505['baseVersion']=null;for(const _0x15498f in _0x17b505){const _0x3134de=_0x17b505[_0x15498f];if(_0x3134de instanceof _0x414fcc){const _0xa637a0=_0x323881['get'](_0x3134de['root']['rootName']);_0x17b505[_0x15498f]=this['_fixPosition'](_0x3134de,_0xa637a0);}if(_0x3134de instanceof _0x3e295f){const _0x17c78e=_0x323881['get'](_0x3134de['root']['rootName']);_0x17b505[_0x15498f]=this['_fixRange'](_0x3134de,_0x17c78e);}'root'===_0x15498f&&(_0x17b505['root']=_0x323881['get'](_0x17b505['root']['rootName']));}}['_fixRange'](_0x3a17dd,_0x51e414){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3a17dd['start'],_0x51e414),this['_fixPosition'](_0x3a17dd['end'],_0x51e414));}['_fixPosition'](_0x134a0b,_0x17b404){return this['editor']['model']['createPositionFromPath'](_0x17b404,_0x134a0b['path'],_0x134a0b['stickiness']);}['_handleInsertOperation'](_0x983367){const _0x3d7cea=this['_idsRoots']['get'](_0x983367['position']['root']['rootName']),_0x3fd691=this['_fixPosition'](_0x983367['position'],_0x3d7cea),_0x1bf9f8=null===_0x983367['_authorId']?null:_0x983367['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb4cb95=_0x3fd691['parent'],_0x8956e6=this['_revisionId'],_0x2568ef=[];for(const _0x40afe2 of _0x983367['nodes'])if(_0x40afe2['is']('element'))_0x2568ef['push'](this['_makeIdsRoot'](_0x40afe2));else{for(let _0x36d1cc=0x0;_0x36d1cc<_0x40afe2['offsetSize'];_0x36d1cc++)_0x2568ef['push'](new _0x45ab54('$text',{'vid':this['_revisionId']++}));}const _0x239355=this['_revisionId'];for(let _0x49879c=_0x8956e6;_0x49879c<_0x239355;_0x49879c++)this['_touched']['set'](_0x49879c,{'userId':_0x1bf9f8});_0xb4cb95['_insertChild'](_0x3fd691['offset'],_0x2568ef);}['_handleMoveOperation'](_0x36e8fd){(_0x36e8fd=this['_cloneOperation'](_0x36e8fd,this['_idsRoots']))['_execute']();const _0x4d1bf5=null===_0x36e8fd['_authorId']?null:_0x36e8fd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53863d=_0x36e8fd['getMovedRangeStart'](),_0xb8cbe9=_0x53863d['parent'],_0x1451e2=_0x53863d['offset'];!function _0x2e3fa7(_0x758886,_0x58d223,_0x375449,_0x42bd9f){for(let _0x58488c=_0x375449;_0x58488c<_0x42bd9f;_0x58488c++){const _0x1ece9e=_0x58d223['getChild'](_0x58488c);_0x1ece9e['is']('element','$text')?_0x758886['set'](_0x1ece9e['getAttribute']('vid'),{'userId':_0x4d1bf5}):(_0x758886['set'](_0x1ece9e['getAttribute']('vid_start'),{'userId':_0x4d1bf5}),_0x2e3fa7(_0x758886,_0x1ece9e,0x0,_0x1ece9e['childCount']),_0x758886['set'](_0x1ece9e['getAttribute']('vid_end'),{'userId':_0x4d1bf5}));}}(this['_touched'],_0xb8cbe9,_0x1451e2,_0x1451e2+_0x36e8fd['howMany']);}['_handleMergeOperation'](_0x85cb34){const _0x3a4237=null===(_0x85cb34=this['_cloneOperation'](_0x85cb34,this['_idsRoots']))['_authorId']?null:_0x85cb34['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17c069=_0x85cb34['targetPosition']['parent'],_0xd653c9=_0x85cb34['sourcePosition']['parent'],_0x1121e6=_0x17c069['getAttribute']('vid_end'),_0x434ddc=_0xd653c9['getAttribute']('vid_start');_0x17c069['_setAttribute']('vid_end',_0xd653c9['getAttribute']('vid_end')),_0xd653c9['_setAttribute']('vid_end',_0x1121e6),this['_touched']['set'](_0x434ddc,{'userId':_0x3a4237}),this['_touched']['set'](_0x1121e6,{'userId':_0x3a4237}),_0x85cb34['_execute']();}['_handleSplitOperation'](_0x24b020){const _0x266fa3=null===(_0x24b020=this['_cloneOperation'](_0x24b020,this['_idsRoots']))['_authorId']?null:_0x24b020['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c0a2b=_0x24b020['graveyardPosition'],_0x41cd2=_0x24b020['splitPosition']['parent'];_0x24b020['_execute']();const _0x1179e1=_0x41cd2['getAttribute']('vid_end'),_0x238133=_0x24b020['insertionPosition']['nodeAfter'];if(_0x2c0a2b){const _0x15e39d=_0x238133['getAttribute']('vid_end'),_0x362d7d=_0x41cd2['getAttribute']('vid_end');_0x41cd2['_setAttribute']('vid_end',_0x15e39d),_0x238133['_setAttribute']('vid_end',_0x362d7d),this['_touched']['set'](_0x41cd2['getAttribute']('vid_end'),{'userId':_0x266fa3}),this['_touched']['set'](_0x238133['getAttribute']('vid_start'),{'userId':_0x266fa3});}else{const _0x1105e8=this['_revisionId']++,_0x5ffe24=this['_revisionId']++;_0x41cd2['_setAttribute']('vid_end',_0x1105e8),_0x238133['_setAttribute']('vid_start',_0x5ffe24),_0x238133['_setAttribute']('vid_end',_0x1179e1),this['_touched']['set'](_0x1105e8,{'userId':_0x266fa3}),this['_touched']['set'](_0x5ffe24,{'userId':_0x266fa3});}}['_handleMarkerOperation'](_0x5b5d2d){if(!_0x5b5d2d['affectsData'])return;const _0x4acdb9=(_0x5b5d2d=this['_cloneOperation'](_0x5b5d2d,this['_diffRoots']))['oldRange']?_0x5b5d2d['oldRange']['root']:null,_0x584eb5=_0x5b5d2d['newRange']?_0x5b5d2d['newRange']['root']:null;_0x4acdb9&&this['_markers']['delete'](_0x5b5d2d['name']),_0x584eb5&&this['_markers']['set'](_0x5b5d2d['name'],_0x5b5d2d['newRange']['clone']());const _0x5e8133=null===_0x5b5d2d['_authorId']?null:_0x5b5d2d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e5294=_0x5b5d2d['name'];if(!this['_touchedMarkers']['has'](_0x1e5294))return void this['_touchedMarkers']['set'](_0x1e5294,{'range':_0x5b5d2d['oldRange'],'userId':_0x5e8133});const _0x1185df=this['_touchedMarkers']['get'](_0x1e5294),_0x3c5238=_0x1185df['range'],_0x4de6be=_0x5b5d2d['newRange'];null==_0x3c5238&&null==_0x4de6be||_0x3c5238&&_0x4de6be&&_0x3c5238['isEqual'](_0x4de6be)?this['_touchedMarkers']['delete'](_0x5b5d2d['name']):_0x1185df['userId']=_0x5e8133;}['_handleRootOperation'](_0x230f1a,_0x5d9702){this['_diffRoots']['has'](_0x230f1a['rootName'])?this['_diffRoots']['get'](_0x230f1a['rootName'])['_isAttached']=_0x230f1a['isAdd']:(this['_diffRoots']['set'](_0x230f1a['rootName'],N(_0x230f1a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x230f1a['rootName'],{}),_0x5d9702&&this['_idsRoots']['set'](_0x230f1a['rootName'],N(_0x230f1a['rootName'],!0x0)));const _0x52484a=null===_0x230f1a['_authorId']?null:_0x230f1a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x539603=this['_touchedRoots']['get'](_0x230f1a['rootName']);_0x539603&&_0x539603['userId']===_0x52484a?this['_touchedRoots']['delete'](_0x230f1a['rootName']):this['_touchedRoots']['set'](_0x230f1a['rootName'],{'userId':_0x52484a,'isAttached':_0x230f1a['isAdd']});}['_handleRootAttributeOperation'](_0xf223a3){const _0x52a028=this['_diffRootsAttributes']['get'](_0xf223a3['root']['rootName']);null===_0xf223a3['newValue']?delete _0x52a028[_0xf223a3['key']]:_0x52a028[_0xf223a3['key']]=_0xf223a3['newValue'];}}function x(_0x3a9bd8){const _0x148e96=N(_0x3a9bd8['rootName'],_0x3a9bd8['isAttached']());for(const _0x277e6a of _0x3a9bd8['getChildren']()){const _0x239925=_0x277e6a['_clone'](!0x0);_0x148e96['_appendChild'](_0x239925);}return _0x148e96;}function N(_0x49f017,_0x345df9=!0x0){const _0x36c937=new _0x4b7f84();return _0x36c937['rootName']=_0x49f017,_0x36c937['_isAttached']=_0x345df9,_0x36c937['isAttached']=()=>_0x36c937['_isAttached'],_0x36c937;}function P(_0x55f61f,_0x1fd2f5,_0x4370e4){const _0x1246ce='elementEnd'==_0x55f61f['type']?_0x4370e4['createPositionAt'](_0x55f61f['item'],'end'):_0x4370e4['createPositionBefore'](_0x55f61f['item']);return _0x4370e4['createPositionFromPath'](_0x1fd2f5,_0x1246ce['path'],_0x1246ce['stickiness']);}function V(_0x35bde0,_0x591269,_0x5314d2){const _0x2b13e8='elementStart'==_0x35bde0['type']?_0x5314d2['createPositionAt'](_0x35bde0['item'],0x0):_0x5314d2['createPositionAfter'](_0x35bde0['item']);return _0x5314d2['createPositionFromPath'](_0x591269,_0x2b13e8['path'],_0x2b13e8['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x409714(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x19b276){super(),this['id']=_0x19b276['id']||_0x36f224(),this['author']=_0x19b276['author'],this['type']=_0x19b276['type'],this['data']=_0x19b276['data']||{},this['rootName']=_0x19b276['rootName'],this['set']('createdAt',_0x19b276['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(_0xb5ec55,_0x47387b){this['newRevisionId']=_0xb5ec55,this['oldRevisionId']=_0x47387b,this['changes']=new _0x1024f1();}['_setChanges'](_0x2a83a2){for(const _0x4855ba of _0x2a83a2)this['changes']['add'](_0x4855ba);}}class l extends _0x279b1f{['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[_0x5c194e,_0x4e220a,S,$];}constructor(_0xc5ab41){super(_0xc5ab41),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',(_0x45367a,_0x1547a6,_0x187458)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4a777f=>{for(const _0x154cc5 of this['editor']['editing']['view']['document']['roots'])_0x187458?_0x4a777f['removeClass']('ck-editor__editable__overlay',_0x154cc5):_0x4a777f['addClass']('ck-editor__editable__overlay',_0x154cc5);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4ec47c=>null!==_0x4ec47c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4ee618,_0x1ca5de,_0x3add19)=>_0x4ee618&&_0x3add19?_0x1ca5de['changes']['getIndex'](_0x3add19):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x140be2,_0x1d92be)=>_0x140be2?_0x1d92be['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4e220a);}['init'](){const _0x1735b9=this['editor'],_0x102900=new rt(_0x1735b9,{'direction':'backward'}),_0x420158=new rt(_0x1735b9,{'direction':'forward'});(_0x1735b9['commands']['add']('showPreviousChange',_0x102900),_0x1735b9['commands']['add']('showNextChange',_0x420158),_0x1735b9['commands']['add']('restoreRevision',new nt(_0x1735b9)),this['on']('change:numberOfChanges',()=>{_0x102900['refresh'](),_0x420158['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1735b9['enableReadOnlyMode']('revision-viewer'),_0x1735b9['plugins']['has']('WidgetToolbarRepository'))&&_0x1735b9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x54b283){return await this['_utils']['loadRevisionData'](_0x54b283,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x54b283);}async['getRevisionRootsAttributes'](_0x3c2f52){return await this['_utils']['loadRevisionData'](_0x3c2f52,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3c2f52);}async['compare'](_0x20d27d,_0xb3e4c3,_0x3865d8=!0x1){if(!this['isEnabled'])return;const _0xb59215=this['diff'],_0x48a8d5=this['repository'],_0x507334='string'==typeof _0x20d27d?_0x48a8d5['getRevision'](_0x20d27d):_0x20d27d,_0x425090='string'==typeof _0xb3e4c3?_0x48a8d5['getRevision'](_0xb3e4c3):_0xb3e4c3,_0x31bed7=_0x507334['id'],_0x131b60=_0x425090?_0x425090['id']:null;if(!_0x3865d8&&this['diff']&&this['diff']['newRevisionId']===_0x31bed7&&this['diff']['oldRevisionId']===_0x131b60)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x31bed7,_0x131b60);const _0x5156c5=this['_getRevisionsRange'](_0x507334,_0x425090,!0x0)['map'](_0x400563=>this['_utils']['loadRevisionData'](_0x400563,this['adapter']));return _0x5156c5['push'](new Promise(_0x830ca3=>{setTimeout(_0x830ca3,0x14);})),Promise['all'](_0x5156c5)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x198709=this['_getDiff'](_0x31bed7,_0x131b60);for(const _0x48f201 of _0x198709['changes'])this['_changeIdToChange']['set'](_0x48f201['id'],_0x48f201);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x44fc16=>{for(const _0x1f736d of this['editor']['model']['document']['getRootNames']())_0x44fc16['detachRoot'](_0x1f736d);for(const _0x1f5897 of Object['keys'](_0x198709['model'])){const _0x2b0781=_0x44fc16['addRoot'](_0x1f5897);for(const _0x45e198 of Object['keys'](_0x198709['attributes'][_0x1f5897]))_0x44fc16['setAttribute'](_0x45e198,_0x198709['attributes'][_0x1f5897][_0x45e198],_0x2b0781);_0x44fc16['insert'](_0x198709['model'][_0x1f5897],_0x2b0781,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x198709['changes'])),this['isReady']=!0x0;})['catch'](_0x2b3c18=>{console['error'](_0x2b3c18),this['_cleanUp'](),_0xb59215&&(this['diff']=_0xb59215),this['isReady']=!0x0;});}['addRevisionData'](_0x3d8a0b,_0x705797){const _0x82bbda=this['repository']['createRevision'](_0x3d8a0b);return _0x82bbda['on']('_update',(_0x3e5ef7,_0x135c3f,_0x852ed6)=>_0x705797(_0x135c3f,_0x852ed6,_0x82bbda)),this['repository']['addRevision'](_0x82bbda),_0x82bbda;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x355d89=>{for(const _0x300a4c of this['editor']['model']['document']['getRootNames']())_0x355d89['detachRoot'](_0x300a4c);});}['_sortAndFilterDiffChanges'](_0x32aad8){const _0xc22572=[],_0x38c90c=new Map();for(const _0x3118d0 of this['editor']['model']['document']['getRootNames']()){const _0x3af968=this['editor']['editing']['view']['getDomRoot'](_0x3118d0);if(!_0x3af968)continue;const _0x4720b2=_0x3af968['getClientRects']()['item'](0x0);_0x4720b2&&(_0xc22572['push'](_0x3118d0),_0x38c90c['set'](_0x3118d0,_0x4720b2));}return _0xc22572['sort']((_0x4cb6e1,_0xf1b31c)=>{const _0x4f076b=_0x38c90c['get'](_0x4cb6e1),_0x340f85=_0x38c90c['get'](_0xf1b31c);return _0x4f076b['y']-_0x340f85['y']||_0x4f076b['x']-_0x340f85['x'];}),(_0x32aad8=_0x32aad8['filter'](_0x5a4f54=>_0xc22572['includes'](_0x5a4f54['rootName'])))['sort']((_0x425926,_0x4f4cf5)=>_0xc22572['indexOf'](_0x425926['rootName'])-_0xc22572['indexOf'](_0x4f4cf5['rootName'])),_0x32aad8;}['_makeTape'](_0x232e0b){const _0x3d85d2=Array['from'](_0x232e0b['markers'])['filter'](([_0x4c8334,_0x2468b9])=>_0x4c8334['startsWith']('revision:')&&!_0x2468b9['isCollapsed']),_0xaa5fa3=Array['from'](this['editor']['model']['createRangeIn'](_0x232e0b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3d85d2['length'])for(const _0x5ac507 of _0xaa5fa3){const [_0x2d3c2c,_0x476412]=_0x3d85d2[0x0],[,_0x2ea284,_0x47559c]=_0x2d3c2c['split'](':');if(_0x476412['end']['isEqual'](_0x5ac507['nextPosition'])&&_0x3d85d2['shift'](),(_0x5ac507['previousPosition']['isEqual'](_0x476412['start'])||_0x5ac507['previousPosition']['isAfter'](_0x476412['start']))&&('insertion'==_0x2ea284?_0x5ac507['isAdded']={'userId':_0x47559c}:'deletion'==_0x2ea284&&(_0x5ac507['isRemoved']={'userId':_0x47559c})),0x0==_0x3d85d2['length'])break;}return _0xaa5fa3;}['_refreshStartEndIndex'](_0x25bd77){const _0x318a55=new Map();for(let _0x3b9e69=0x0;_0x3b9e69<_0x25bd77['length'];_0x3b9e69++)'text'===_0x25bd77[_0x3b9e69]['type']?(_0x25bd77[_0x3b9e69]['item']['startIndex']=_0x3b9e69,_0x25bd77[_0x3b9e69]['item']['endIndex']=_0x3b9e69):('elementStart'===_0x25bd77[_0x3b9e69]['type']?_0x25bd77[_0x3b9e69]['item']['startIndex']=_0x3b9e69:'elementEnd'===_0x25bd77[_0x3b9e69]['type']&&(_0x25bd77[_0x3b9e69]['item']['endIndex']=_0x3b9e69),_0x318a55['set'](_0x25bd77[_0x3b9e69]['id'],_0x3b9e69));for(const _0x37a684 of _0x318a55['values']())'elementStart'===_0x25bd77[_0x37a684]['type']?_0x25bd77[_0x37a684]['item']['endIndex']=_0x318a55['get'](_0x25bd77[_0x37a684]['pairId']):'elementEnd'===_0x25bd77[_0x37a684]['type']&&(_0x25bd77[_0x37a684]['item']['startIndex']=_0x318a55['get'](_0x25bd77[_0x37a684]['pairId']));}['_processTape'](_0x188bb8){for(let _0x41a04f=0x0;_0x41a04f<_0x188bb8['length'];_0x41a04f++){if('elementStart'===_0x188bb8[_0x41a04f]['type'])_0x188bb8[_0x41a04f]['item']['startIndex']=_0x41a04f;else{if('elementEnd'===_0x188bb8[_0x41a04f]['type']){_0x188bb8[_0x41a04f]['item']['endIndex']=_0x41a04f;const _0x4a29af=_0x188bb8[_0x41a04f]['item']['startIndex'];_0x188bb8[_0x4a29af]['pairId']=_0x188bb8[_0x41a04f]['id'],_0x188bb8[_0x41a04f]['pairId']=_0x188bb8[_0x4a29af]['id'];}else _0x188bb8[_0x41a04f]['item']['startIndex']=_0x41a04f,_0x188bb8[_0x41a04f]['item']['endIndex']=_0x41a04f,_0x188bb8[_0x41a04f]['pairId']=null;}_0x188bb8[_0x41a04f]['markersStart']||(_0x188bb8[_0x41a04f]['markersStart']=[],_0x188bb8[_0x41a04f]['markersEnd']=[]);}}['_markInsertions'](_0x2dfac4,_0x31e7d8){const _0x256a2d=_0x2dfac4['filter'](_0x53c72b=>!_0x53c72b['isAdded']);for(let _0x19bdd6=0x0;_0x19bdd6<_0x31e7d8['length'];_0x19bdd6++)_0x31e7d8[_0x19bdd6]['isAdded']&&(_0x256a2d[_0x19bdd6]['isAdded']=_0x31e7d8[_0x19bdd6]['isAdded']);}['_getDiff'](_0x3eef1b,_0x3226c7=null){const _0xa41e2f=this['repository']['getRevision'](_0x3eef1b),_0x5c5d35=_0x3226c7?this['repository']['getRevision'](_0x3226c7):null,_0x195598=this['_getRevisionsRange'](_0xa41e2f,_0x5c5d35),_0x36694e=_0x195598[_0x195598['length']-0x1],_0x2e7a1f=new Map(),_0x597760={'model':{},'attributes':{},'changes':[]},_0x15a4c3=new Set(),_0x4f6ba3=new Map();for(let _0x52a550=_0x195598['length']-0x1;_0x52a550>=0x0;_0x52a550--){const _0x5776c7=_0x195598[_0x52a550];for(const _0x19ced6 of Object['keys'](_0x5776c7['diffData']))if(_0x5776c7['diffData'][_0x19ced6]['attachChange']){const _0x11a403=_0x5776c7['diffData'][_0x19ced6]['attachChange'];_0x11a403['isAttached']?(_0x15a4c3['add'](_0x19ced6),_0x4f6ba3['has'](_0x19ced6)&&_0x4f6ba3['get'](_0x19ced6)['userId']==_0x11a403['userId']?_0x4f6ba3['delete'](_0x19ced6):_0x4f6ba3['set'](_0x19ced6,_0x11a403)):_0x4f6ba3['has'](_0x19ced6)?(_0x15a4c3['delete'](_0x19ced6),_0x4f6ba3['delete'](_0x19ced6)):(_0x15a4c3['add'](_0x19ced6),_0x4f6ba3['set'](_0x19ced6,_0x11a403));}else _0x15a4c3['add'](_0x19ced6);}for(const _0x3db4fd of _0x15a4c3){const _0x287c84=_0x4f6ba3['has'](_0x3db4fd)&&!_0x4f6ba3['get'](_0x3db4fd)['isAttached'];let _0x573a34=_0x287c84?_0x195598['length']-0x1:0x0;const _0x1f7185=_0x287c84?-0x1:0x1;for(;_0x195598[_0x573a34];){const _0x4140c8=_0x195598[_0x573a34];if(_0x4140c8['diffData'][_0x3db4fd]){const _0x3e2aef=_0x287c84?_0x4140c8['diffData'][_0x3db4fd]['attributesBefore']:_0x4140c8['diffData'][_0x3db4fd]['attributesAfter'];_0x597760['attributes'][_0x3db4fd]=_0x3e2aef?_0x477256(_0x3e2aef):{};break;}_0x573a34+=_0x1f7185;}}for(const _0x21aa13 of _0x195598){_0x21aa13['model']={};for(const _0x47596b of _0x21aa13['authors'])_0x2e7a1f['set'](_0x47596b['id'],_0x47596b);for(const _0x437254 of _0x15a4c3){const _0x5a2a8b=_0x21aa13['diffData'][_0x437254]?_0x21aa13['diffData'][_0x437254]['insertions']:'[]',_0x16c46d=_0x21aa13['diffData'][_0x437254]?_0x21aa13['diffData'][_0x437254]['deletions']:'[]';_0x21aa13['model'][_0x437254]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5a2a8b),'deletions':this['_utils']['_makeModelFromViewString'](_0x16c46d)};}}for(const _0x1eee26 of _0x15a4c3){let _0x481bea=null,_0x1ab4e2=0x0;const _0x5b715d=new Map(Array['from'](_0xa41e2f['model'][_0x1eee26]['insertions']['markers'])['filter'](([_0x59d798])=>!_0x59d798['startsWith']('revision:')));let _0x42eb8b=0x0;for(const _0x34dbe3 of _0x195598){const _0x3ab23c=this['_makeTape'](_0x34dbe3['model'][_0x1eee26]['insertions']);_0x34dbe3==_0xa41e2f?(_0x481bea=_0x3ab23c,_0x1ab4e2=_0x481bea['length'],_0x481bea['forEach'](_0x572fa5=>{_0x572fa5['id']=_0x42eb8b++;}),this['_processTape'](_0x481bea)):this['_markInsertions'](_0x481bea,_0x3ab23c);const _0x4d852c=_0x481bea['filter'](_0x13af6a=>!_0x13af6a['isAdded'])['map'](_0x1e2c79=>_0x1e2c79['id']);let _0x40486d=0x0;const _0x542ffe=this['_makeTape'](_0x34dbe3['model'][_0x1eee26]['deletions']);_0x542ffe['forEach'](_0x2c123b=>{_0x2c123b['isRemoved']?_0x2c123b['id']=_0x1ab4e2++:_0x2c123b['id']=_0x4d852c[_0x40486d++];}),this['_processTape'](_0x542ffe),this['_setDistance'](_0x481bea,'isAdded'),this['_setDistance'](_0x542ffe,'isRemoved'),_0x34dbe3==_0xa41e2f&&this['_markMarkers'](_0x481bea,_0x5b715d),_0x481bea=this['_joinTapes'](_0x481bea,_0x542ffe),this['_refreshStartEndIndex'](_0x481bea),this['_setDistance'](_0x481bea,'isRemoved');}_0x481bea=_0x481bea['filter'](_0x35c873=>!(_0x35c873['isAdded']&&_0x35c873['isRemoved']));const _0x1442ce=new Map(_0x36694e['model'][_0x1eee26]['deletions']['markers']),_0x4c9695=new Set(_0x5b715d['keys']());for(const _0x245d09 of _0x1442ce['keys']())_0x4c9695['delete'](_0x245d09);this['_markSuggestions'](_0x481bea,_0x4c9695),this['_fixObsoleteTags'](_0x481bea),_0x481bea=this['_removeMissingPairs'](_0x481bea),_0x481bea=this['_markMismatchedRemovedTags'](_0x481bea),_0x481bea=this['_removeUnsupportedChanges'](_0x481bea);const {root:_0x1d95ab,changes:_0x1dd0df}=this['_makeModelFromTape'](_0x481bea,_0x2e7a1f,_0x1eee26);_0x597760['model'][_0x1eee26]=_0x1d95ab;const _0x1fdd66=_0x4f6ba3['get'](_0x1eee26);if(_0x1fdd66){const _0x375b97=_0x2e7a1f['get'](_0x1fdd66['userId']),_0x33edac=new G({'author':_0x375b97,'type':_0x1fdd66['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1eee26});_0x1dd0df['unshift'](_0x33edac),_0x597760['attributes'][_0x1eee26]['revisionHistoryAttachChange']=_0x33edac['id'];}_0x597760['changes']=_0x597760['changes']['concat'](_0x1dd0df);}return _0x597760;}['_markMarkers'](_0x3f2e1d,_0x2a1de1){for(let _0x18c811=0x0;_0x18c811<_0x3f2e1d['length'];_0x18c811++)for(const [_0x541624,_0x4dc04f]of _0x2a1de1)!_0x4dc04f['isCollapsed']&&_0x4dc04f['start']['isEqual'](_0x3f2e1d[_0x18c811]['previousPosition'])&&_0x3f2e1d[_0x18c811]['markersStart']['push'](_0x541624),_0x4dc04f['end']['isEqual'](_0x3f2e1d[_0x18c811]['nextPosition'])&&_0x3f2e1d[_0x18c811]['markersEnd']['push'](_0x541624);}['_joinTapes'](_0x2d98cc,_0x465a9d){let _0x212e26=[],_0x1f0f6e=0x0,_0x394356=0x0;for(;_0x1f0f6e<_0x2d98cc['length']||_0x394356<_0x465a9d['length'];){const _0x2fecb8=_0x2d98cc[_0x1f0f6e]||{},_0x112bfb=_0x465a9d[_0x394356]||{};if(_0x2fecb8['id']==_0x112bfb['id'])_0x1f0f6e++,_0x394356++,_0x212e26['push'](_0x2fecb8);else{if(_0x112bfb['isRemoved']&&_0x2fecb8['isAdded']){const {commonTape:_0xb5a75f,iEnd:_0x1037e3,jEnd:_0x3393bc}=this['_threeWayMerge'](_0x2d98cc,_0x1f0f6e,_0x465a9d,_0x394356);_0x212e26=_0x212e26['concat'](_0xb5a75f),_0x1f0f6e=_0x1037e3,_0x394356=_0x3393bc;}else _0x112bfb['isRemoved']?(_0x394356++,_0x212e26['push'](_0x112bfb)):(_0x1f0f6e++,_0x212e26['push'](_0x2fecb8));}}return _0x212e26;}['_markSuggestions'](_0x868277,_0x290fcd){const _0x1ec2a2=[];for(let _0x550a56=0x0;_0x550a56<_0x868277['length'];_0x550a56++){for(let _0x4de873=0x0;_0x4de873<_0x868277[_0x550a56]['markersStart']['length'];_0x4de873++){const _0xb41ae1=_0x868277[_0x550a56]['markersStart'][_0x4de873];if(!_0x290fcd['has'](_0xb41ae1))continue;const {group:_0x12a992,type:_0x3844c0,authorId:_0x582f2a}=_0x563793(_0xb41ae1);'revision-suggestion'!=_0x12a992||'insertion'!=_0x3844c0&&'deletion'!=_0x3844c0||(_0x1ec2a2['unshift']({'type':_0x3844c0,'name':_0xb41ae1,'userId':_0x582f2a}),_0x868277[_0x550a56]['markersStart']['splice'](_0x4de873,0x1),_0x4de873--);}_0x4d8198(_0x868277[_0x550a56]);for(let _0x42823d=0x0;_0x42823d<_0x868277[_0x550a56]['markersEnd']['length'];_0x42823d++){const _0x452f76=_0x868277[_0x550a56]['markersEnd'][_0x42823d];if(!_0x290fcd['has'](_0x452f76))continue;const {group:_0x94defd,type:_0x20835f}=_0x563793(_0x452f76);if('revision-suggestion'!=_0x94defd||'insertion'!=_0x20835f&&'deletion'!=_0x20835f)continue;_0x868277[_0x550a56]['markersEnd']['splice'](_0x42823d,0x1),_0x42823d--;const _0x190ced=_0x1ec2a2['findIndex'](_0x50410b=>_0x50410b['name']==_0x452f76);_0x190ced>-0x1&&_0x1ec2a2['splice'](_0x190ced,0x1);}}function _0x563793(_0x3443c8){const _0x39633c=_0x3443c8['split'](':');return{'group':_0x39633c[0x0],'type':_0x39633c[0x1],'subType':_0x39633c['length']>=0x5?_0x39633c[0x2]:null,'id':_0x39633c['length']<0x5?_0x39633c[0x2]:_0x39633c[0x3],'authorId':_0x39633c['length']<0x5?_0x39633c[0x3]:_0x39633c[0x4],'markerCount':0x6==_0x39633c['length']?_0x39633c[0x5]:null};}function _0x4d8198(_0x30753a){for(let _0x411c8a=0x0;_0x411c8a<_0x1ec2a2['length'];_0x411c8a++){if(_0x30753a['isAdded']&&'insertion'==_0x1ec2a2[_0x411c8a]['type']&&_0x30753a['isAdded']['userId']==_0x1ec2a2[_0x411c8a]['userId'])return _0x30753a['isAddSuggestion']=_0x1ec2a2[_0x411c8a],void delete _0x30753a['isAdded'];if(!_0x30753a['isAdded']&&!_0x30753a['isRemoved']&&'deletion'==_0x1ec2a2[_0x411c8a]['type'])return void(_0x30753a['isRemoveSuggestion']=_0x1ec2a2[_0x411c8a]);}}}['_setDistance'](_0x3e3f12,_0x1088cd){let _0x11763b=0x0,_0x10c57a=!0x1;const _0x118888=new Map();for(const _0x3721cb of _0x3e3f12)_0x3721cb[_0x1088cd]?_0x10c57a&&(_0x11763b++,_0x10c57a=!0x1):(_0x11763b++,_0x10c57a=!0x0),_0x118888['set'](_0x3721cb['id'],_0x11763b);for(let _0x5556c0=0x0;_0x5556c0<_0x3e3f12['length'];_0x5556c0++){if('isRemoved'==_0x1088cd&&_0x3e3f12[_0x5556c0]['isAdded']||'isAdded'==_0x1088cd&&_0x3e3f12[_0x5556c0]['isRemoved'])continue;if('text'==_0x3e3f12[_0x5556c0]['type']){_0x3e3f12[_0x5556c0]['distance']=0x0;continue;}const _0xde1c25=_0x118888['get'](_0x3e3f12[_0x5556c0]['pairId']),_0x5be983=_0x118888['get'](_0x3e3f12[_0x5556c0]['id']);_0x3e3f12[_0x5556c0]['distance']=_0xde1c25-_0x5be983;}}['_getRevisionsRange'](_0x52845f,_0x18d0b5,_0x11a787=!0x1){const _0x216f2a=[];let _0x51a39b=this['repository']['getIndex'](_0x52845f),_0x2f084e=this['repository']['getIndex'](_0x18d0b5);for(-0x1==_0x2f084e&&(_0x2f084e=this['repository']['_revisions']['length'],_0x11a787=!0x1);_0x51a39b<_0x2f084e;)_0x216f2a['push'](this['repository']['getRevision'](_0x51a39b)),_0x51a39b++;return _0x11a787&&_0x216f2a['push'](this['repository']['getRevision'](_0x51a39b)),_0x216f2a;}['_threeWayMerge'](_0x2fa37d,_0x345cbb,_0x43f756,_0x1f6d52){const _0x5351e8=this['editor']['model']['schema'];let _0x2b3ad9=_0x345cbb;for(;_0x2fa37d[_0x2b3ad9]&&_0x2fa37d[_0x2b3ad9]['isAdded'];)_0x2b3ad9++;let _0x13516a=_0x1f6d52;for(;_0x43f756[_0x13516a]&&_0x43f756[_0x13516a]['isRemoved'];)_0x13516a++;_0x50b9a5(_0x2fa37d,_0x345cbb,_0x2b3ad9),_0x50b9a5(_0x43f756,_0x1f6d52,_0x13516a);const _0x5e786c=_0x43f756['slice'](_0x1f6d52,_0x13516a)['concat'](_0x2fa37d['slice'](_0x345cbb,_0x2b3ad9));return _0x5e786c['sort']((_0x42fdb9,_0x3606b3)=>_0x42fdb9['side']!=_0x3606b3['side']?_0x42fdb9['side']-_0x3606b3['side']:_0x42fdb9['level']!=_0x3606b3['level']?_0x42fdb9['level']-_0x3606b3['level']:_0x42fdb9['distance']!=_0x3606b3['distance']?_0x3606b3['distance']-_0x42fdb9['distance']:!!_0x42fdb9['isAdded']!=!!_0x3606b3['isAdded']?-0x1==_0x42fdb9['side']||0x0==_0x42fdb9['side']?_0x42fdb9['isAdded']?-0x1:0x1:_0x42fdb9['isAdded']?0x1:-0x1:_0x42fdb9['index']-_0x3606b3['index']),{'commonTape':_0x5e786c,'iEnd':_0x2b3ad9,'jEnd':_0x13516a};function _0x50b9a5(_0x137f92,_0x241a18,_0x3da2f7){let _0x539215=-0x1,_0x4afa0a=Number['POSITIVE_INFINITY'],_0x549f5a=!0x0;for(let _0x3c51d0=_0x241a18;_0x3c51d0<_0x3da2f7;_0x3c51d0++)if(_0x5351e8['isInline'](_0x137f92[_0x3c51d0]['item'])||(_0x549f5a=!0x1),_0x137f92[_0x3c51d0]['item']['startIndex']<_0x241a18&&(_0x539215=_0x3c51d0),_0x137f92[_0x3c51d0]['item']['endIndex']>=_0x3da2f7){_0x4afa0a=_0x3c51d0;break;}_0x549f5a&&(_0x539215=_0x3da2f7-0x1);for(let _0x25198a=_0x241a18;_0x25198a<_0x3da2f7;_0x25198a++)_0x137f92[_0x25198a]['side']=_0x25198a<=_0x539215?-0x1:_0x25198a<_0x4afa0a?0x0:0x1,_0x137f92[_0x25198a]['index']=_0x25198a;let _0xc9408e=0x0;for(let _0xd76124=_0x241a18;_0xd76124<=_0x539215;_0xd76124++)0x0==_0x137f92[_0xd76124]['distance']?_0x137f92[_0xd76124]['level']=_0xc9408e:(_0xc9408e++,_0x137f92[_0xd76124]['level']=_0xc9408e,_0xc9408e++);for(let _0x3d271d=_0x241a18;_0x3d271d<_0x3da2f7;_0x3d271d++)0x0==_0x137f92[_0x3d271d]['side']&&(_0x137f92[_0x3d271d]['level']=_0xc9408e);_0xc9408e=0x0;for(let _0x42afe5=_0x3da2f7-0x1;_0x42afe5>=_0x4afa0a;_0x42afe5--)0x0==_0x137f92[_0x42afe5]['distance']?_0x137f92[_0x42afe5]['level']=_0xc9408e:(_0xc9408e--,_0x137f92[_0x42afe5]['level']=_0xc9408e,_0xc9408e--);}}['_fixObsoleteTags'](_0x36623f){const _0x57d95b=new Map(),_0x572ab2=this['editor']['model']['schema'];for(let _0x32fb0a=0x1;_0x32fb0a<_0x36623f['length'];_0x32fb0a++){let _0x408341,_0x3b7ec3,_0x4057b8;const _0x1b981c=_0x36623f[_0x32fb0a],_0xce894b=_0x36623f[_0x32fb0a-0x1];if('text'==_0x1b981c['type'])continue;if(_0x1b981c['type']!=_0xce894b['type'])continue;if(!_0x572ab2['isBlock'](_0xce894b['item'])||_0x572ab2['isLimit'](_0xce894b['item']))continue;if(!_0x572ab2['isBlock'](_0x1b981c['item'])||_0x572ab2['isLimit'](_0x1b981c['item']))continue;if((_0x36623f[_0x32fb0a]['isAdded']||_0x36623f[_0x32fb0a]['isAddSuggestion'])&&_0x36623f[_0x32fb0a-0x1]['isRemoved'])_0x408341=_0x36623f[_0x32fb0a],_0x3b7ec3=_0x36623f[_0x32fb0a-0x1],_0x4057b8=_0x32fb0a-0x1;else{if(!_0x36623f[_0x32fb0a]['isRemoved']||!_0x36623f[_0x32fb0a-0x1]['isAdded']&&!_0x36623f[_0x32fb0a-0x1]['isAddSuggestion'])continue;_0x408341=_0x36623f[_0x32fb0a-0x1],_0x3b7ec3=_0x36623f[_0x32fb0a],_0x4057b8=_0x32fb0a;}const _0x501066=_0x408341['level']==_0x3b7ec3['level'],_0x56461e=Math['abs'](_0x408341['level'])<Math['abs'](_0x3b7ec3['level'])&&0x0==_0x3b7ec3['distance'];(_0x501066||_0x56461e)&&(_0x57d95b['set'](_0x3b7ec3['id'],_0x408341['id']),_0x36623f['splice'](_0x4057b8,0x1),_0x32fb0a--,_0x408341['isAdded']=!0x1);}for(let _0x24c909=0x0;_0x24c909<_0x36623f['length'];_0x24c909++)_0x57d95b['has'](_0x36623f[_0x24c909]['pairId'])&&(_0x36623f[_0x24c909]['pairId']=_0x57d95b['get'](_0x36623f[_0x24c909]['pairId']));}['_removeMissingPairs'](_0x2b9371){const _0x5272ce=new Set(_0x2b9371['map'](_0x152d27=>_0x152d27['id']));for(let _0x1d4dfb=0x0;_0x1d4dfb<_0x2b9371['length'];_0x1d4dfb++)_0x5272ce['has'](_0x2b9371[_0x1d4dfb]['pairId'])||0x0==_0x2b9371[_0x1d4dfb]['distance']||(_0x2b9371[_0x1d4dfb]['isIncorrect']=!0x0);return _0x2b9371['filter'](_0xc6c901=>!_0xc6c901['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4f2e4a){const _0x4d730c=new Set();for(let _0x11da71=0x0;_0x11da71<_0x4f2e4a['length'];_0x11da71++){if(_0x4d730c['has'](_0x4f2e4a[_0x11da71]['id'])&&_0x4f2e4a[_0x11da71]['isRemoved']&&(_0x4f2e4a[_0x11da71]['isIncorrect']=!0x0),_0x4f2e4a[_0x11da71]['isIncorrect'])continue;if(0x0==_0x4f2e4a[_0x11da71]['distance'])continue;if('elementStart'!=_0x4f2e4a[_0x11da71]['type'])continue;if(null==_0x4f2e4a[_0x11da71]['pairId'])continue;let _0xac0ef1=_0x11da71+0x1,_0xd25cb1=0x0;for(;_0x4f2e4a[_0xac0ef1]['id']!=_0x4f2e4a[_0x11da71]['pairId'];)'elementStart'==_0x4f2e4a[_0xac0ef1]['type']?_0xd25cb1++:'elementEnd'==_0x4f2e4a[_0xac0ef1]['type']&&_0xd25cb1--,_0xac0ef1++;if(0x0!=_0xd25cb1){if(_0x4f2e4a[_0x11da71]['isRemoved'])_0x4f2e4a[_0x11da71]['isIncorrect']=!0x0;else{for(;_0xac0ef1!=_0x11da71;)_0x4f2e4a[_0xac0ef1]['isRemoved']&&0x0!=_0x4f2e4a[_0xac0ef1]['distance']&&(_0x4f2e4a[_0xac0ef1]['isIncorrect']=!0x0,_0x4d730c['add'](_0x4f2e4a[_0xac0ef1]['pairId'])),_0xac0ef1--;}}}return _0x4f2e4a['filter'](_0xfe5353=>!_0xfe5353['isIncorrect']);}['_removeUnsupportedChanges'](_0x34a91c){const _0x4c2c8d=this['editor']['model']['schema'];for(let _0x257648=0x0;_0x257648<_0x34a91c['length'];_0x257648++){if(!(_0x34a91c[_0x257648]['isAdded']||_0x34a91c[_0x257648]['isAddSuggestion']||_0x34a91c[_0x257648]['isRemoved']||_0x34a91c[_0x257648]['isRemoveSuggestion']))continue;if(0x0==_0x34a91c[_0x257648]['distance'])continue;const _0x88b362=_0x34a91c[_0x257648]['item'];_0x4c2c8d['isBlock'](_0x88b362)||_0x4c2c8d['isLimit'](_0x88b362)||(_0x34a91c[_0x257648]['isAdded']&&delete _0x34a91c[_0x257648]['isAdded'],_0x34a91c[_0x257648]['isAddSuggestion']&&delete _0x34a91c[_0x257648]['isAddSuggestion'],_0x34a91c[_0x257648]['isRemoveSuggestion']&&delete _0x34a91c[_0x257648]['isRemoveSuggestion'],_0x34a91c[_0x257648]['isRemoved']&&(_0x34a91c[_0x257648]['isIncorrect']=!0x0));}return _0x34a91c['filter'](_0x17d700=>!_0x17d700['isIncorrect']);}['_makeModelFromTape'](_0x4c416c,_0x2c5adb,_0x2f11c0){const _0xca61a0=new _0x4b7f84(),_0x136946=[],_0x40869b=new Map(),_0x1f2c9d=this['editor']['model'],_0x26b194=_0x1f2c9d['schema'],_0x1d9b14=[_0xca61a0],_0x254742={},_0x5b1fca={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x111f99=null;const _0x5f013b=[0x0];for(let _0x55cfd1=0x0;_0x55cfd1<_0x4c416c['length'];_0x55cfd1++)if('elementStart'===_0x4c416c[_0x55cfd1]['type']){_0x4c416c[_0x55cfd1]['previousPosition']=_0x1f2c9d['createPositionFromPath'](_0xca61a0,_0x5f013b);const _0x4337b4=new _0x45ab54(_0x4c416c[_0x55cfd1]['item']['name'],_0x4c416c[_0x55cfd1]['item']['getAttributes']());_0x1d9b14[0x0]['_appendChild'](_0x4337b4),_0x5f013b['push'](0x0),_0x1d9b14['unshift'](_0x4337b4),_0x4c416c[_0x55cfd1]['nextPosition']=_0x1f2c9d['createPositionFromPath'](_0xca61a0,_0x5f013b);}else'elementEnd'===_0x4c416c[_0x55cfd1]['type']?(_0x1d9b14['shift'](),_0x4c416c[_0x55cfd1]['previousPosition']=_0x1f2c9d['createPositionFromPath'](_0xca61a0,_0x5f013b),_0x5f013b['pop'](),_0x5f013b[_0x5f013b['length']-0x1]++,_0x4c416c[_0x55cfd1]['nextPosition']=_0x1f2c9d['createPositionFromPath'](_0xca61a0,_0x5f013b)):(_0x4c416c[_0x55cfd1]['previousPosition']=_0x1f2c9d['createPositionFromPath'](_0xca61a0,_0x5f013b),_0x111f99?_0x111f99['_data']+=_0x4c416c[_0x55cfd1]['item']['data']:_0x111f99=new _0x95c9c7(_0x4c416c[_0x55cfd1]['item']['data'],_0x4c416c[_0x55cfd1]['item']['getAttributes']()),_0x4c416c[_0x55cfd1+0x1]&&'text'===_0x4c416c[_0x55cfd1+0x1]['type']&&_0x528c61(_0x111f99,_0x4c416c[_0x55cfd1+0x1]['item'])||(_0x1d9b14[0x0]['_appendChild'](_0x111f99),_0x111f99=null),_0x5f013b[_0x5f013b['length']-0x1]+=_0x4c416c[_0x55cfd1]['item']['offsetSize'],_0x4c416c[_0x55cfd1]['nextPosition']=_0x1f2c9d['createPositionFromPath'](_0xca61a0,_0x5f013b));for(let _0x14fda8=0x0;_0x14fda8<_0x4c416c['length'];_0x14fda8++){const _0x3ae8cc=_0x4c416c[_0x14fda8]['previousPosition'],_0x44e840=_0x4c416c[_0x14fda8]['nextPosition'];for(const _0x4f8c79 of _0x4c416c[_0x14fda8]['markersStart'])_0x40869b['set'](_0x4f8c79,{'start':_0x3ae8cc,'end':null});_0x436636('isRemoveSuggestion',_0x14fda8,_0x3ae8cc,_0x44e840),_0x436636('isAddSuggestion',_0x14fda8,_0x3ae8cc,_0x44e840),_0x436636('isRemoved',_0x14fda8,_0x3ae8cc,_0x44e840),_0x436636('isAdded',_0x14fda8,_0x3ae8cc,_0x44e840);for(const _0x59da2b of _0x4c416c[_0x14fda8]['markersEnd']){const _0x16f4f0=_0x40869b['get'](_0x59da2b);_0x16f4f0?_0x16f4f0['end']=_0x44e840:_0x40869b['set'](_0x59da2b,{'start':_0x44e840,'end':_0x44e840});}}for(const [_0x450715,_0x42558f]of _0x40869b){const _0x1feb57=this['editor']['model']['createRange'](_0x42558f['start'],_0x42558f['end']);_0xca61a0['markers']['set'](_0x450715,_0x1feb57);}return _0x136946['sort']((_0x18f438,_0x2a4f4c)=>{const _0x4d1096=_0xca61a0['markers']['get']('revision:'+_0x18f438['id']),_0xc2559e=_0xca61a0['markers']['get']('revision:'+_0x2a4f4c['id']);return _0x4d1096['start']['isBefore'](_0xc2559e['start'])?-0x1:_0x4d1096['start']['isAfter'](_0xc2559e['start'])?0x1:_0x4d1096['end']['isBefore'](_0xc2559e['end'])?-0x1:_0x4d1096['end']['isAfter'](_0xc2559e['end'])?0x1:'add'===_0x18f438['type']?-0x1:0x1;}),{'root':_0xca61a0,'changes':_0x136946};function _0x436636(_0x27c9a5,_0x429449,_0x48da76,_0xaf9b80){const _0x444873=!!_0x4c416c[_0x429449][_0x27c9a5],_0x127f82=_0x444873?_0x4c416c[_0x429449][_0x27c9a5]['userId']:null,_0x31453b=_0x429449===_0x4c416c['length']-0x1,_0x4b1024=_0x5b1fca[_0x27c9a5][0x0],_0x332cd0=_0x26b194['isObject'](_0x4c416c[_0x429449]['item']);!_0x254742[_0x27c9a5]&&_0x444873?_0x254742[_0x27c9a5]={'start':_0x48da76,'tapeItem':_0x4c416c[_0x429449],'userId':_0x127f82,'type':_0x27c9a5}:_0x254742[_0x27c9a5]&&!_0x444873?(_0x254742[_0x27c9a5]['end']=_0x48da76,_0x3fa947(_0x254742[_0x27c9a5]),_0x254742[_0x27c9a5]=null):_0x254742[_0x27c9a5]&&_0x444873&&_0x254742[_0x27c9a5]['userId']!==_0x127f82&&(_0x254742[_0x27c9a5]['end']=_0x48da76,_0x4b1024&&_0x4b1024['userId']===_0x254742[_0x27c9a5]['userId']||_0x3fa947(_0x254742[_0x27c9a5]),_0x254742[_0x27c9a5]={'start':_0x48da76,'tapeItem':_0x4c416c[_0x429449],'userId':_0x127f82,'type':_0x27c9a5}),_0x254742[_0x27c9a5]&&_0x332cd0&&('elementStart'!==_0x4c416c[_0x429449]['type']||_0x4b1024&&_0x4b1024['userId']===_0x127f82||_0x5b1fca[_0x27c9a5]['unshift']({'userId':_0x127f82,'object':_0x4c416c[_0x429449]['item'],'change':_0x254742[_0x27c9a5]}),'elementEnd'===_0x4c416c[_0x429449]['type']&&_0x4b1024&&_0x4b1024['object']===_0x4c416c[_0x429449]['item']&&(_0x5b1fca[_0x27c9a5]['shift'](),_0x254742[_0x27c9a5]=_0x4b1024['change'])),_0x254742[_0x27c9a5]&&_0x31453b&&(_0x254742[_0x27c9a5]['end']=_0xaf9b80,_0x3fa947(_0x254742[_0x27c9a5]),_0x254742[_0x27c9a5]=null);}function _0x3fa947({start:_0x2b8ffa,end:_0x4fd4ca,tapeItem:_0x4b8067,userId:_0x4f20a4,type:_0x59c704}){const _0x8411fe=_0x4b8067['item'],_0xc279af=_0x1f2c9d['schema']['isBlock'](_0x8411fe)&&!_0x1f2c9d['schema']['isLimit'](_0x8411fe),_0x340afa=_0x2b8ffa['nodeAfter']==_0x4fd4ca['parent']&&_0x4fd4ca['isAtStart'];if(_0xc279af&&_0x340afa)return;const _0x37004c=_0x1f2c9d['createRange'](_0x2b8ffa,_0x4fd4ca),_0x4eaff9=_0x2c5adb['get'](_0x4f20a4),_0x2c6061=new G({'author':_0x4eaff9,'type':'isAdded'==_0x59c704||'isAddSuggestion'==_0x59c704?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x59c704||'isRemoveSuggestion'==_0x59c704},'createdAt':new Date(),'rootName':_0x2f11c0});_0x136946['push'](_0x2c6061),_0xca61a0['markers']['set']('revision:'+_0x2c6061['id'],_0x37004c);}function _0x528c61(_0x13d4cf,_0x5b37cd){const _0xf4f079=_0x13d4cf['getAttributes'](),_0x3e77d5=_0x5b37cd['getAttributes']();for(const _0x2dd966 of _0xf4f079){if(_0x2dd966[0x1]!==_0x5b37cd['getAttribute'](_0x2dd966[0x0]))return!0x1;_0x3e77d5['next']();}return _0x3e77d5['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3d6ea0=>{const _0x5e2e9a=_0x3d6ea0['markerName']['split'](':')[0x1],_0x438329=this['_getChangeFromId'](_0x5e2e9a);if(!_0x438329)return null;const _0x4fdd5f='add'==_0x438329['type']?'insertion':'deletion',_0x23e4c2=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4fdd5f];return _0x438329['data']['isSuggestion']&&_0x23e4c2['push']('ck-suggestion-marker-'+_0x4fdd5f+'-new'),this['activeChange']==_0x438329&&_0x23e4c2['push']('ck-suggestion-marker--active'),{'classes':_0x23e4c2,'attributes':{'data-change-id':_0x5e2e9a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x203be4=>{_0x203be4['on']('element:pre',(_0x389530,_0x4f2e63,_0x4fbbde)=>{const _0x111ee2=_0x4f2e63['viewItem']['getChild'](0x0);if(!_0x111ee2||!_0x111ee2['is']('element','code'))return;if(!_0x4fbbde['consumable']['consume'](_0x111ee2,{'attributes':['vid_start','vid_end']}))return;const _0xf86cac=_0x4f2e63['modelRange']['start']['nodeAfter'];_0x4fbbde['writer']['setAttribute']('vid_start',_0x111ee2['getAttribute']('vid_start'),_0xf86cac),_0x4fbbde['writer']['setAttribute']('vid_end',_0x111ee2['getAttribute']('vid_end'),_0xf86cac);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x108d3f=>{_0x108d3f['on']('element',(_0x9b9d4b,_0xc06284,_0x2ab8d8)=>{if(!_0x2ab8d8['consumable']['consume'](_0xc06284['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xc06284['modelRange']['isCollapsed'])return;const _0x5bd7d9=_0xc06284['modelRange']['start']['nodeAfter'];_0x5bd7d9['hasAttribute']('vid_start')||_0x5bd7d9['hasAttribute']('vid')||(_0x2ab8d8['writer']['setAttribute']('vid_start',_0xc06284['viewItem']['getAttribute']('vid_start'),_0x5bd7d9),_0x2ab8d8['writer']['setAttribute']('vid_end',_0xc06284['viewItem']['getAttribute']('vid_end'),_0x5bd7d9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x28aa40=>_0x28aa40['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x51918b,[,_0x396ee7])=>{['vid_start','vid_end','vid']['includes'](_0x396ee7)&&(_0x51918b['return']=!0x0,_0x51918b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x174552=>{_0x174552['on']('attribute:vid',(_0x5c2aeb,_0x85e87f,_0x1c6f57)=>{if('\x20'!=_0x85e87f['item']['data']||_0x85e87f['item']['parent']['maxOffset']>0x1)return;if(!_0x1c6f57['consumable']['consume'](_0x85e87f['item'],_0x5c2aeb['name']))return;const _0x44e355=_0x1c6f57['writer'],_0x172ca9=_0x1c6f57['mapper']['toViewRange'](_0x85e87f['range']);_0x44e355['wrap'](_0x172ca9,_0x44e355['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4a120a){const _0x4c475a=_0x4a120a['plugins']['get']('RevisionViewer');return(_0x6f913d,_0x4e8b25,_0x2b4bda)=>{const _0x23b4dc=_0x4e8b25['markerName']['split'](':')[0x1],_0x1fb972=_0x4c475a['_getChangeFromId'](_0x23b4dc);if(!_0x1fb972)return null;const _0x2df60b='add'==_0x1fb972['type']?'split':'merge';if(!_0x2b4bda['consumable']['test'](_0x4e8b25['markerRange'],_0x6f913d['name']))return;const _0x27168c=_0x4e8b25['markerRange']['getWalker'](),_0x599677=_0x4e8b25['markerRange']['start'],_0x32dc31=_0x4a120a['model']['schema'];let _0x3c8618=null,_0x28c86c=null,_0x3f2935=!0x1,_0x4e5631=!0x1;for(const _0x2f36c4 of _0x27168c){const _0x465780=_0x2f36c4['item'];_0x3f2935=_0x3f2935||_0x32dc31['isContent'](_0x465780);const _0x15477f=_0x2b4bda['mapper']['toViewElement'](_0x465780);if(_0x15477f&&_0x15477f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2f36c4['type']&&(_0x32dc31['isBlock'](_0x465780)&&!_0x32dc31['isLimit'](_0x465780)&&(_0x465780['nextSibling']||_0x599677['isAtEnd']?_0x3c8618&&_0x3c8618['parent']==_0x465780||(_0x3c8618=_0x465780,_0x1a2a5a(_0x2f36c4['previousPosition']),_0x4e5631=!0x0):_0x28c86c=_0x28c86c||_0x2f36c4['previousPosition']));}function _0x1a2a5a(_0x265718){const _0x36c7be=_0x2b4bda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2df60b}),_0x3295d2=_0x2b4bda['mapper']['toViewPosition'](_0x265718);_0x1fb972['data']['isSuggestion']&&_0x2b4bda['writer']['addClass']('ck-suggestion-marker-'+_0x2df60b+'-new',_0x36c7be),_0x4c475a['activeChange']==_0x1fb972&&_0x2b4bda['writer']['addClass']('ck-suggestion-marker--active',_0x36c7be),_0x2b4bda['writer']['insert'](_0x3295d2,_0x36c7be),_0x2b4bda['mapper']['bindElementToMarker'](_0x36c7be,_0x4e8b25['markerName']);}_0x3f2935||_0x4e5631||!_0x28c86c||_0x1a2a5a(_0x28c86c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x14a584,_0x1799c7,_0x3ac424)=>{const _0x454df8=_0x3ac424['mapper']['markerNameToElements'](_0x1799c7['markerName']);if(_0x454df8){for(const _0x456eba of _0x454df8)(_0x456eba['hasClass']('ck-suggestion-marker-split')||_0x456eba['hasClass']('ck-suggestion-marker-merge'))&&(_0x3ac424['mapper']['unbindElementFromMarkerName'](_0x456eba,_0x1799c7['markerName']),_0x3ac424['writer']['remove'](_0x456eba));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x26482f,_0x1398b8,_0x53b300)=>{const _0x33eea=_0x1398b8['markerName']['split'](':')[0x1],_0x5e725a=this['_getChangeFromId'](_0x33eea);if(!_0x5e725a)return null;const _0x7fd809='add'==_0x5e725a['type']?'split':'merge';if(_0x53b300['consumable']['test'](_0x1398b8['markerRange'],_0x26482f['name']))for(const _0x1524bb of _0x1398b8['markerRange']['getItems']()){if(!_0x1524bb['is']('element','softBreak'))continue;const _0x57d1e2=_0x53b300['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7fd809}),_0x446f49=_0x53b300['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1524bb));_0x5e725a['data']['isSuggestion']&&_0x53b300['writer']['addClass']('ck-suggestion-marker-'+_0x7fd809+'-new',_0x57d1e2),this['activeChange']==_0x5e725a&&_0x53b300['writer']['addClass']('ck-suggestion-marker--active',_0x57d1e2),_0x53b300['writer']['insert'](_0x446f49,_0x57d1e2),_0x53b300['mapper']['bindElementToMarker'](_0x57d1e2,_0x1398b8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xe88e96=>{for(const _0x4715c4 of this['editor']['model']['document']['getRootNames']()){const _0x2ae11d=this['editor']['model']['document']['getRoot'](_0x4715c4),_0x477190=this['editor']['editing']['view']['document']['getRoot'](_0x4715c4);if(_0x477190){const _0x550f04=_0x2ae11d['getAttribute']('revisionHistoryAttachChange');if(_0xe88e96['removeAttribute']('data-change-id',_0x477190),_0xe88e96['removeClass']('ck-revision-history-root-add',_0x477190),_0xe88e96['removeClass']('ck-revision-history-root-remove',_0x477190),_0xe88e96['removeClass']('ck-revision-history-root--active',_0x477190),_0x550f04){const _0x1ee0ac=this['_getChangeFromId'](_0x550f04);if(!_0x1ee0ac)return null;_0xe88e96['setAttribute']('data-change-id',_0x550f04,_0x477190),_0xe88e96['addClass']('ck-revision-history-root-'+_0x1ee0ac['type'],_0x477190),this['activeChange']==_0x1ee0ac&&_0xe88e96['addClass']('ck-revision-history-root--active',_0x477190);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xda0d66=>'revision-comment:'+_0xda0d66,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1c433d=>'revision-suggestion:'+_0x1c433d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1874ac=>({'name':'suggestion:'+_0x1874ac,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x470fb6=>{const _0x354049=_0x470fb6['markerName']['split'](':')[0x1];return'insertion'!=_0x354049&&'deletion'!=_0x354049?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x354049]};}}),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',(_0x285a51,_0x311544,_0x5b4865)=>{const _0x8bcf36=_0x5b4865['mapper']['markerNameToElements'](_0x311544['markerName']);if(_0x8bcf36){for(const _0x1a42db of _0x8bcf36)_0x1a42db['is']('uiElement')&&(_0x5b4865['mapper']['unbindElementFromMarkerName'](_0x1a42db,_0x311544['markerName']),_0x5b4865['writer']['remove'](_0x1a42db));}},{'priority':'high'});}['_getChangeFromId'](_0x4bc5d4){return this['_changeIdToChange']['get'](_0x4bc5d4);}['_getViewForChange'](_0x581afc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x581afc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x22dbf4,_0x57c420,_0x43cee3,_0x4f0b1b)=>{_0x4f0b1b&&this['_balloon']['remove'](_0x4f0b1b),_0x43cee3&&(this['_balloon']['add']({'view':_0x43cee3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2eba70=this['editor']['editing'],_0x4eb43e=this['_getChangeFromId'](_0x43cee3['changeId']);let _0x2e89ab;if(_0x4eb43e['data']['isOnRoot']){const _0x4512da=_0x2eba70['view']['getDomRoot'](_0x4eb43e['rootName']);_0x2e89ab=Array['from'](_0x4512da['getClientRects']());}else{const _0x568ea8=this['editor']['model']['markers']['get']('revision:'+_0x43cee3['changeId']);_0x2e89ab=Array['from'](_0x2eba70['mapper']['markerNameToElements'](_0x568ea8['name']))['map'](_0x3e310b=>_0x2eba70['view']['domConverter']['mapViewToDom'](_0x3e310b))['map'](_0x453741=>Array['from'](_0x453741['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2e89ab[0x0];return _0x2e89ab['find'](_0x422a5e=>_0x422a5e['top']-0x3<=this['_activeViewTarget']['y']&&_0x422a5e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x422a5e['left']-0x3<=this['_activeViewTarget']['x']&&_0x422a5e['right']+0x3>=this['_activeViewTarget']['x'])||_0x2e89ab[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4ef166,_0x541420,_0x40efc2,_0x484259)=>{this['activeView']=_0x40efc2?this['_getViewForChange'](_0x40efc2):null,this['editor']['model']['change'](()=>{const _0x5c6c26=this['editor']['editing'];_0x484259&&(_0x484259['data']['isOnRoot']?_0x5c6c26['view']['change'](_0x24bd95=>{_0x24bd95['removeClass']('ck-revision-history-root--active',_0x5c6c26['view']['document']['getRoot'](_0x484259['rootName']));}):_0x5c6c26['reconvertMarker']('revision:'+_0x484259['id'])),_0x40efc2&&(_0x40efc2['data']['isOnRoot']?_0x5c6c26['view']['change'](_0x1199a3=>{_0x1199a3['addClass']('ck-revision-history-root--active',_0x5c6c26['view']['document']['getRoot'](_0x40efc2['rootName']));}):_0x5c6c26['reconvertMarker']('revision:'+_0x40efc2['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3baecb,_0x23a51b)=>{if(this['activeChange'])return;const _0xcf2945=this['_findChangeIdFromDomTarget'](_0x23a51b['target']),_0x424df3=this['_changeIdToChange']['get'](_0xcf2945);_0x424df3?(this['_activeViewTarget']={'x':_0x23a51b['domEvent']['x'],'y':_0x23a51b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x424df3)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4c551d,_0x50efd0)=>{const _0x2878ab=this['_findChangeIdFromDomTarget'](_0x50efd0['target']),_0xdf96e=this['_changeIdToChange']['get'](_0x2878ab);_0xdf96e?(this['_activeViewTarget']={'x':_0x50efd0['domEvent']['x'],'y':_0x50efd0['domEvent']['y']},_0xdf96e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xdf96e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x372a18){do{const _0x176ad8=_0x372a18['getAttribute']('data-change-id');if(_0x176ad8)return _0x176ad8;_0x372a18=_0x372a18['parent'];}while(_0x372a18);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3d14b9=>{for(const _0x5851c7 of this['editor']['model']['markers'])_0x3d14b9['removeMarker'](_0x5851c7);});}}function Q(_0x30d82a,_0x164c42){return(_0x43c5b1,_0x3f9d38,_0xb27438)=>{if(!_0xb27438['consumable']['test'](_0x3f9d38['markerRange'],_0x43c5b1['name']))return;const _0x438cc8=_0x3f9d38['markerRange']['getWalker'](),_0xd5632e=_0x3f9d38['markerRange']['start'],_0x396699=_0x30d82a['model']['schema'];let _0x4a45c7=null,_0x4ae9dd=null,_0x1f90a8=!0x1,_0x46b987=!0x1;for(const _0x29ace5 of _0x438cc8){const _0x5c3b04=_0x29ace5['item'];_0x1f90a8=_0x1f90a8||_0x396699['isContent'](_0x5c3b04);const _0x523109=_0xb27438['mapper']['toViewElement'](_0x5c3b04);if(_0x523109&&_0x523109['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29ace5['type']&&(_0x396699['isBlock'](_0x5c3b04)&&!_0x396699['isLimit'](_0x5c3b04)&&(_0x5c3b04['nextSibling']||_0xd5632e['isAtEnd']?_0x4a45c7&&_0x4a45c7['parent']==_0x5c3b04||(_0x4a45c7=_0x5c3b04,_0x582cb9(_0x29ace5['previousPosition']),_0x46b987=!0x0):_0x4ae9dd=_0x4ae9dd||_0x29ace5['previousPosition']));}function _0x582cb9(_0x55914f){const _0x1f234b=_0xb27438['mapper']['toViewPosition'](_0x55914f),_0x22c55f=_0xb27438['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x164c42});_0xb27438['writer']['insert'](_0x1f234b,_0x22c55f),_0xb27438['mapper']['bindElementToMarker'](_0x22c55f,_0x3f9d38['markerName']);}_0x1f90a8||_0x46b987||!_0x4ae9dd||_0x582cb9(_0x4ae9dd);};}class nt extends _0xfcc260{constructor(_0xa387a4){super(_0xa387a4);const _0x4d2bf1=_0xa387a4['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4d2bf1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4d2bf1,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x487178=this['editor'],_0x607164=_0x487178['plugins']['get'](l),_0x113949=_0x607164['isReady']?_0x607164['diff']['newRevisionId']:null;_0x487178['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x113949);}['refresh'](){const {isReady:_0x4117d9,isEnabled:_0x135925,repository:_0xf4172f,diff:_0x2497e6}=this['editor']['plugins']['get'](l),_0xc579f7=_0x2497e6&&_0xf4172f['getLaterVisibleRevision'](_0x2497e6['newRevisionId']);this['isEnabled']=_0x4117d9&&_0x135925&&Boolean(_0xc579f7);}}class rt extends _0xfcc260{['_step'];constructor(_0x5dacde,{direction:_0x5a6072}){super(_0x5dacde);const _0x4bf569=_0x5dacde['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x5a6072?0x1:-0x1,this['listenTo'](_0x4bf569,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4bf569,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4bf569,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x367a23=this['editor'],_0x5f71be=_0x367a23['plugins']['get'](l),{isNavigationMode:_0x12f3e8,currentChangeNumber:_0x32add9}=_0x5f71be;let _0x340ee2;if(_0x5f71be['activeChange']=_0x12f3e8?_0x5f71be['diff']['changes']['get'](_0x32add9+this['_step']):_0x5f71be['diff']['changes']['first'],_0x5f71be['activeChange']['data']['isOnRoot'])_0x340ee2=_0x367a23['editing']['view']['getDomRoot'](_0x5f71be['activeChange']['rootName']);else{const _0x1fbc4d=_0x367a23['model']['markers']['get']('revision:'+_0x5f71be['activeChange']['id']);_0x340ee2=_0x28595c(_0x367a23['editing'],_0x1fbc4d);}_0x5a887a({'target':_0x340ee2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2cc645,currentChangeNumber:_0x371b2a,numberOfChanges:_0x4eb6cb,isReady:_0xbb4f31,isEnabled:_0x6d5639}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x6d5639&&_0xbb4f31&&_0x4eb6cb)&&(!_0x2cc645||(0x1===this['_step']?_0x371b2a<_0x4eb6cb-0x1:_0x371b2a>0x0));}}class Ri extends _0x4755b5{constructor(_0x19a67f){super(_0x19a67f);const _0x129e54=this['bindTemplate'],_0x2b3cfe=new _0x4bbda8(_0x19a67f),_0x2bd65d=new _0x4bbda8(_0x19a67f);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',(_0x3cc959,_0x306605)=>_0x3cc959&&_0x306605>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3ea41f,_0x29ccd4,_0x56da34,_0x5e9239)=>{if(!_0x3ea41f)return R(_0x19a67f,'Loading...');if(!_0x56da34)return R(_0x19a67f,'No\x20changes');const _0x324e77=R(_0x19a67f,'NUMBER_OF_CHANGES',_0x56da34);return _0x5e9239?R(_0x19a67f,'X_OF_Y_CHANGES',[_0x29ccd4+0x1,_0x56da34]):_0x324e77;}),_0x2b3cfe['set']({'label':R(_0x19a67f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x10b79d}),_0x2bd65d['set']({'label':R(_0x19a67f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2175e8}),_0x2b3cfe['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2bd65d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2b3cfe['on']('execute',()=>this['fire']('execute','backward')),_0x2bd65d['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',_0x129e54['if']('_isStatusLabelVisible','ck-hidden',_0x5234d1=>!_0x5234d1)]},'children':[{'text':_0x129e54['to']('isNavigationMode',_0x48d2b3=>_0x48d2b3?R(_0x19a67f,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x19a67f,'Total')+':\x20')}]},{'text':_0x129e54['to']('_statusText')}]},new _0x5d8437(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2b3cfe,_0x2bd65d]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x279b1f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3d44ee=this['editor']['editing']['view'];_0x3d44ee['change'](_0x59ffa2=>{for(const _0x495d11 of _0x3d44ee['document']['roots'])_0x59ffa2['addClass'](ge,_0x495d11);});}['hide'](){const _0x5d0beb=this['editor']['editing']['view'];_0x5d0beb['change'](_0x5d9d98=>{for(const _0x315736 of _0x5d0beb['document']['roots'])_0x5d9d98['removeClass'](ge,_0x315736);});}}class u extends _0x279b1f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x25fa52=this['editor'],_0x466052=_0x25fa52['plugins']['get'](l),_0x2bc156=_0x25fa52['plugins']['get'](ji);_0x25fa52['ui']['componentFactory']['add']('exitToEditing',_0x11ea7d=>{const _0x2d4821=new _0x4bbda8(_0x11ea7d);return _0x2d4821['set']({'label':R(_0x11ea7d,'Back\x20to\x20editing'),'icon':_0x22d576,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2d4821,'execute',()=>{_0x25fa52['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2d4821;}),_0x25fa52['ui']['componentFactory']['add']('restoreRevision',_0x5672b8=>{const _0x2b343f=new _0x4bbda8(_0x5672b8);return _0x2b343f['set']({'label':R(_0x5672b8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2b343f['bind']('isEnabled')['to'](_0x25fa52['commands']['get']('restoreRevision')),this['listenTo'](_0x2b343f,'execute',()=>_0x25fa52['execute']('restoreRevision')),_0x2b343f;}),_0x25fa52['ui']['componentFactory']['add']('changesNavigation',_0x1d3da4=>{const _0x14361=new Ri(_0x1d3da4),_0x366ced=_0x25fa52['commands']['get']('showPreviousChange'),_0x55280b=_0x25fa52['commands']['get']('showNextChange');return _0x14361['bind']('isBackwardNavigationEnabled')['to'](_0x366ced,'isEnabled'),_0x14361['bind']('isForwardNavigationEnabled')['to'](_0x55280b,'isEnabled'),_0x14361['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x466052),this['listenTo'](_0x14361,'execute',(_0x5130dc,_0x13248c)=>{_0x25fa52['execute']('forward'===_0x13248c?'showNextChange':'showPreviousChange');}),_0x14361;}),_0x2bc156['show'](),_0x466052['on']('change:isReady',(_0x2d617e,_0x56a8cd,_0x1745d0)=>{_0x1745d0?_0x2bc156['hide']():_0x2bc156['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x3c2a4e,_0x2b29e8){super(_0x3c2a4e,_0x2b29e8);const _0x19e3f7=this['bindTemplate'];this['set']({'label':R(_0x3c2a4e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3c2a4e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x19e3f7['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 _0x4459a8=this['fieldView']['element'];this['_tooltipString']=_0x4459a8['scrollWidth']>_0x4459a8['clientWidth']&&_0x4459a8['value']||'';}}class ni extends _0x4755b5{constructor(_0x2e09f3,_0x349e68,_0x9a316e){super(_0x2e09f3);const _0x1062b3=new _0x2876f2();_0x1062b3['set']({'content':_0x33aea7,'viewBox':'0\x200\x2011\x2010'});const _0x310223=['ck','ck-revision-history-sidebar__revision-author'];_0x9a316e&&_0x310223['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3c893f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2e09f3,_0x9a316e?'Revision\x20creator':'Revision\x20author')},'children':[_0x1062b3,_0x349e68['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x310223},'children':_0x3c893f});}}function ci(_0x34d448,_0x16640c){const _0x2e07db=_0x34d448['bindTemplate'],_0x3641f4=_0x34d448['locale'],_0x126c8e=_0x365f78(_0x3641f4);_0x126c8e['panelPosition']='sw';const _0x712ebb=function(_0x4929fb,_0xe9922){const _0xd3b6f3=function(_0xb74d47,_0x49b883){const _0x4dda2e=_0xb74d47['locale'],_0x4ddd06={'Compare\x20against\x20selected':R(_0x4dda2e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4dda2e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4dda2e,'Restore\x20this\x20revision')};return _0x49b883['map'](_0x102a71=>{const _0x4141ed=_0x4ddd06[_0x102a71['name']];return _0x4141ed&&_0x4141ed!==_0x102a71['name']&&(_0x102a71['name']=_0x4141ed),_0x102a71;});}(_0x4929fb,_0xe9922),_0x11ab1d=new _0x1024f1();for(const _0x3510b7 of _0xd3b6f3){const _0x11163f={'type':'button','model':new to({'label':_0x3510b7['name'],'class':_0x3510b7['class'],'withText':!0x0,'role':'menuitem','_action':_0x3510b7['action']})};_0x11163f['model']['bind']('isEnabled')['to'](_0x4929fb,'isActionsDropdownOpen',_0x3c58bc=>'function'!=typeof _0x3510b7['isEnabled']||(!_0x3c58bc||_0x3510b7['isEnabled'](_0x4929fb))),_0x11ab1d['add'](_0x11163f);}return _0x11ab1d;}(_0x34d448,_0x16640c);return _0x34d448['bind']('isActionsDropdownOpen')['to'](_0x126c8e,'isOpen'),_0x126c8e['buttonView']['set']({'label':R(_0x3641f4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x84bf8c}),_0x126c8e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2e07db['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2e07db['to'](_0x141a83=>_0x141a83['stopPropagation']())}}),_0x126c8e['on']('execute',_0x52a292=>{_0x34d448['isReady']&&'function'==typeof _0x52a292['source']['_action']&&_0x52a292['source']['_action'](_0x34d448);}),_0x15b29e(_0x126c8e,_0x712ebb,{'role':'menu'}),_0x126c8e['listenTo'](_0x34d448,'change:isActionsDropdownOpen',(_0x539a3c,_0x2d758c,_0x48cd84)=>{if(_0x48cd84)for(const _0xc456c0 of _0x126c8e['listView']['items']){const _0x244ee4=_0xc456c0['children']['first'],_0x28dfe3=_0x16640c['find'](_0x5fb65a=>_0x5fb65a['action']===_0x244ee4['_action'])['isVisible'];_0xc456c0['isVisible']=void 0x0===_0x28dfe3||_0x28dfe3(_0x34d448);}}),_0x126c8e;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x31f508,uid as _0x33e273,Collection as _0x21221c,logWarning as _0x108e76,FocusTracker as _0x3c1e3a,KeystrokeHandler as _0x2613e6,scrollViewportToShowTarget as _0x504a60,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x4e9057}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x35c6b3,set as _0x194d16,unset as _0x32a3d2,isEqual as _0x59588e}from'es-toolkit/compat';import{Plugin as _0x7a0156,PendingActions as _0x270ae9,Command as _0x3984cb,ElementApiMixin as _0x312e8b,Editor as _0x47573f}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x12ddb9,getMarkerDomElement as _0xed2479,ConfirmMixin as _0x4a3d2b,sanitizeEditorConfig as _0xe0af66}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x57906c,ViewAttributeElement as _0x1a0b1f,ViewEmptyElement as _0x3fb0e0,ViewRawElement as _0x59cc9e,ViewUIElement as _0x1c9e3e,ViewDocumentFragment as _0x429d6d,ViewText as _0x40dc38,ViewElement as _0x5b320f,ModelElement as _0x558088,ModelRange as _0x2bfbe2,ModelPosition as _0x2fb88e,ModelDocumentFragment as _0x4e6165,ModelText as _0x3a21b8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x292ff5,IconChevronUp as _0x44217f,IconChevronDown as _0x5de721,IconUndo as _0x115359,IconUser as _0x3a25eb,IconThreeVerticalDots as _0x380e26}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x46e73d,View as _0x4d9a94,submitHandler as _0xa8b4ab,LabeledFieldView as ti,createLabeledInputText as _0x4673f6,createDropdown as _0x23a169,ListView as _0x5f5bb1,ListItemView as _0x139eb4,ButtonView as _0x5d294a,MenuBarMenuView as _0x597bf0,MenuBarMenuListView as _0x2694f6,MenuBarMenuListItemView as _0x57f390,MenuBarMenuListItemButtonView as _0x4ff8c0,ContextualBalloon as _0x58520b,ToolbarSeparatorView as _0x1e354a,IconView as _0x15ef69,addListToDropdown as _0x25429d,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x42f0a9,StickyPanelView as _0x130a59,ToolbarView as _0x236f60,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x20727f}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x31f508(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x489507){super(),this['id']=_0x489507['id']||_0x33e273(),this['creator']=_0x489507['creator']||null,this['authors']=_0x489507['authors']||[],this['diffData']=_0x489507['diffData']||null,this['toVersion']=_0x489507['toVersion']||0x0,this['fromVersion']=_0x489507['fromVersion']||0x0,this['set']('name',_0x489507['name']||''),this['set']('createdAt',_0x489507['createdAt']||new Date()),this['set']('attributes',_0x489507['attributes']||{});}['setName'](_0x26b3c7){this['_update']({'name':_0x26b3c7});}['setAttribute'](_0xb694b,_0x3dceb0){const _0x4d4e68=_0x35c6b3(this['attributes']);_0x194d16(_0x4d4e68,_0xb694b,_0x3dceb0),this['_update']({'attributes':_0x4d4e68});}['removeAttribute'](_0xa9717c){const _0x342233=_0x35c6b3(this['attributes']);_0x32a3d2(_0x342233,_0xa9717c),this['_update']({'attributes':_0x342233});}['_update'](_0x39791e,_0x54ca3b=!0x1){let _0x1988a0=!0x1;const _0x5ae693={'id':this['id']},_0x4f1e98=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1bf32a of _0x4f1e98){const _0x21be22=_0x39791e[_0x1bf32a];void 0x0!==_0x21be22&&_0x21be22!==this[_0x1bf32a]&&(this[_0x1bf32a]=_0x21be22,_0x5ae693[_0x1bf32a]=_0x21be22,_0x1988a0=!0x0);}_0x1988a0&&(_0x5ae693['authors']&&(_0x5ae693['authorsIds']=_0x5ae693['authors']['map'](_0x5aeee8=>_0x5aeee8['id']),delete _0x5ae693['authors']),this['fire']('_update',_0x5ae693,_0x54ca3b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xafc3ce=>_0xafc3ce['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x7a0156{['_revisions'];static get['requires'](){return[_0x12ddb9];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1e0a91){super(_0x1e0a91),this['_revisions']=new _0x21221c();}['afterInit'](){!async function(_0xfeee71){const _0x371491=_0x2f2375([0x71,0x75,0x4e,0x4a,0x74,0x42,0x47,0x46,0x52,0x6c,0x54,0x44,0x45,0x50,0x4d,0x31,0x49,0x68,0x63,0x48,0x61,0x76,0x33,0x73,0x72,0x51,0x58,0x77,0x6e,0x35,0x36,0x56,0x39,0x41,0x6b,0x65,0x79,0x4f,0x34,0x4b,0x4c,0x53,0x38,0x64,0x30,0x7a,0x69,0x5a,0x55,0x78,0x32,0x59,0x70,0x6d,0x6f,0x43,0x62,0x57,0x37,0x67,0x66,0x6a]),_0x12e766=0xeb829,_0x433c78=0x24caee4e,_0x5e4d85=0x24cd835e^_0x433c78,_0x3f6f3=window[_0x2f2375([0x44,0x61,0x74,0x65])][_0x2f2375([0x6e,0x6f,0x77])](),_0x58abd0=_0xfeee71[_0x2f2375([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f325=new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35fac1=>{_0x58abd0[_0x2f2375([0x6f,0x6e,0x63,0x65])](_0x2f2375([0x72,0x65,0x61,0x64,0x79]),_0x35fac1);}),_0x23de10={[_0x2f2375([0x6b,0x74,0x79])]:_0x2f2375([0x45,0x43]),[_0x2f2375([0x75,0x73,0x65])]:_0x2f2375([0x73,0x69,0x67]),[_0x2f2375([0x63,0x72,0x76])]:_0x2f2375([0x50,0x2d,0x32,0x35,0x36]),[_0x2f2375([0x78])]:_0x2f2375([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]),[_0x2f2375([0x79])]:_0x2f2375([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]),[_0x2f2375([0x61,0x6c,0x67])]:_0x2f2375([0x45,0x53,0x32,0x35,0x36])},_0x40602b=_0x58abd0[_0x2f2375([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f2375([0x67,0x65,0x74])](_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x121d3d(){let _0x2d0d1f,_0xf381d2=null,_0x42414d=null;try{if(_0x40602b==_0x2f2375([0x47,0x50,0x4c]))return _0x2f2375([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d0d1f=_0x30bba5(),!_0x2d0d1f)return _0x2f2375([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d0d1f[_0x2f2375([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42414d=_0x49f2ca(_0x2d0d1f[_0x2f2375([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d0d1f[_0x2f2375([0x6a,0x74,0x69])])),await _0x2bb627()?_0x2e3bd4()?_0x35cd66()?_0x2f2375([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53e6dd()?(_0x2d0d1f[_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f2375([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf381d2=_0xbd4a50(_0x2f2375([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d0d1f[_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f2375([0x74,0x72,0x69,0x61,0x6c])&&(_0xf381d2=_0xbd4a50(_0x2f2375([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ec77e()):_0x2f2375([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f2375([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f2375([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f2375([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35cd66(){const _0x4be2f4=[_0x2f2375([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f2375([0x74,0x72,0x69,0x61,0x6c])][_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d0d1f[_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f6f3/0x3e8:0xe10*_0x5e4d85;return _0x2d0d1f[_0x2f2375([0x65,0x78,0x70])]<_0x4be2f4;}function _0x2e3bd4(){const _0x170560=_0x2d0d1f[_0x2f2375([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x170560)return!0x1;if(_0x170560[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2375([0x2a])))return!0x0;if(_0x170560[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2375([0x52,0x48])))return!0x0;if(_0x170560[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2375([0x52,0x52,0x48]))){if(_0x5b82ff())return!0x0;if(_0x2464b0()||_0x4f3fd6())return!0x0;}return!0x1;}function _0x53e6dd(){const _0x408d72=_0x2d0d1f[_0x2f2375([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x408d72||0x0==_0x408d72[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30bbac}=new URL(window[_0x2f2375([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x408d72[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30bbac))return!0x0;const _0x1056c9=_0x30bbac[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])](_0x2f2375([0x2e]));return _0x408d72[_0x2f2375([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x487670=>_0x487670[_0x2f2375([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2375([0x2a])))[_0x2f2375([0x6d,0x61,0x70])](_0x1173e6=>_0x1173e6[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])](_0x2f2375([0x2e])))[_0x2f2375([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1094ad=>_0x1094ad[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1056c9[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f2375([0x6d,0x61,0x70])](_0x6ec0e=>Array(_0x1056c9[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6ec0e[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f2375([0x66,0x69,0x6c,0x6c])](_0x6ec0e[0x0]===_0x2f2375([0x2a])?_0x2f2375([0x2a]):'')[_0x2f2375([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6ec0e))[_0x2f2375([0x73,0x6f,0x6d,0x65])](_0x44cb7f=>_0x1056c9[_0x2f2375([0x65,0x76,0x65,0x72,0x79])]((_0x44bf06,_0x34ca6f)=>_0x44cb7f[_0x34ca6f]===_0x44bf06||_0x44cb7f[_0x34ca6f]===_0x2f2375([0x2a])));}function _0x1ec77e(){return _0xf381d2&&_0x42414d?new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50110f,_0x5b88d6)=>{_0xf381d2[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x50110f,_0x5b88d6),_0x42414d[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x3ab339=>{_0x3ab339!=_0x2f2375([0x56,0x61,0x6c,0x69,0x64])&&_0x50110f(_0x3ab339);},_0x5b88d6);}):_0xf381d2||_0x42414d||_0x2f2375([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49f2ca(_0x532693,_0x23d8f2){return new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x66e5ba=>{if(_0x51a51f())return _0x66e5ba(_0x2f2375([0x56,0x61,0x6c,0x69,0x64]));_0x35a005(),_0x58abd0[_0x2f2375([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f2375([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c42d8=!0x1;const _0x32404a=_0x33e273();function _0x4733f9(_0x71fbe4){return!!_0x71fbe4&&(typeof _0x71fbe4===_0x2f2375([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x71fbe4===_0x2f2375([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x71fbe4[_0x2f2375([0x74,0x68,0x65,0x6e])]===_0x2f2375([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x71fbe4[_0x2f2375([0x63,0x61,0x74,0x63,0x68])]===_0x2f2375([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d6051(_0x23d393){_0x6e5833(_0x23d393)[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x5d9dce=>{if(!_0x5d9dce||_0x5d9dce[_0x2f2375([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f2375([0x6f,0x6b]))return _0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34c289(_0x4f5217(_0x32404a+_0x23d8f2))!=_0x5d9dce[_0x2f2375([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f2375([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x28fb7f=>(_0x19f3a3(),_0x28fb7f),()=>{const _0x4c3c11=_0x5f1658();return null==_0x4c3c11?(_0x19f3a3(),_0x2f2375([0x56,0x61,0x6c,0x69,0x64])):_0x2f2375(_0x3f6f3-_0x4c3c11>(0xc66a4e^_0x433c78)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x66e5ba)[_0x2f2375([0x63,0x61,0x74,0x63,0x68])](()=>{_0x66e5ba(_0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23f28d=0x24fc00ce^_0x433c78;function _0x19f3a3(){const _0x2325d6=_0x2f2375([0x6c,0x6c,0x63,0x74,0x2d])+_0x34c289(_0x4f5217(_0x532693)),_0x1d9443=_0x3e1052(_0x34c289(window[_0x2f2375([0x4d,0x61,0x74,0x68])][_0x2f2375([0x63,0x65,0x69,0x6c])](_0x3f6f3/_0x23f28d)));window[_0x2f2375([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f2375([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2325d6,_0x1d9443);}function _0x5f1658(){const _0x43be3b=_0x2f2375([0x6c,0x6c,0x63,0x74,0x2d])+_0x34c289(_0x4f5217(_0x532693)),_0x3e723d=window[_0x2f2375([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f2375([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43be3b);return _0x3e723d?window[_0x2f2375([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1052(_0x3e723d),0x10)*_0x23f28d:null;}function _0x6e5833(_0x3df463){return new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4241e7,_0x33aa98)=>{_0x3df463[_0x2f2375([0x74,0x68,0x65,0x6e])](_0x4241e7,_0x33aa98),window[_0x2f2375([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33aa98,0x24cb3a8e^_0x433c78);});}}_0x58abd0[_0x2f2375([0x6f,0x6e])](_0x2f2375([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x67dcd,_0x482ef8)=>{if(_0x482ef8[0x0]!=_0x532693)return _0x66e5ba(_0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x482ef8[0x1]={..._0x482ef8[0x1],[_0x2f2375([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32404a};},{[_0x2f2375([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f2375([0x68,0x69,0x67,0x68])}),_0x58abd0[_0x2f2375([0x6f,0x6e])](_0x2f2375([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d01aa=>{_0x4733f9(_0x5d01aa[_0x2f2375([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c42d8=!0x0,_0x1d6051(_0x5d01aa[_0x2f2375([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f2375([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f2375([0x6c,0x6f,0x77])}),_0x19f325[_0x2f2375([0x74,0x68,0x65,0x6e])](()=>{_0x1c42d8||_0x66e5ba(_0x2f2375([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51a51f(){return _0x58abd0[_0x2f2375([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f2375([0x76,0x69,0x65,0x77])][_0x2f2375([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f2375([0x61,0x75,0x74,0x6f]);}function _0x35a005(){_0x58abd0[_0x2f2375([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f2375([0x76,0x69,0x65,0x77])][_0x2f2375([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f2375([0x61,0x75,0x74,0x6f]);}}function _0xbd4a50(_0x3414fc){const _0x378bba=[new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x471cac=>setTimeout(_0x471cac,0x24c3d082^_0x433c78)),_0x19f325[_0x2f2375([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a820e=>{const _0x302ff7=0x24caee49^_0x433c78,_0x3e4373=_0xfeee71[_0x2f2375([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3a79fd(){_0x3e4373[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x302ff7&&_0x1a820e();}_0x3a79fd(),_0x3e4373[_0x2f2375([0x6f,0x6e])](_0x2f2375([0x61,0x64,0x64]),_0x3a79fd);})),new window[(_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45fe61=>{function _0x22b44c(){for(const _0x2a39ab in window)if(window[_0x2f2375([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2f2375([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a39ab))&&window[_0x2a39ab]==_0x12e766)return _0x45fe61();_0x58abd0[_0x2f2375([0x73,0x74,0x61,0x74,0x65])]!=_0x2f2375([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2f2375([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22b44c,0x24cafdc6^_0x433c78);}_0x592ef3(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x22b44c();})];return window[_0x2f2375([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f2375([0x72,0x61,0x63,0x65])](_0x378bba)[_0x2f2375([0x74,0x68,0x65,0x6e])](()=>_0x3414fc);}async function _0x364959(){if(await _0x19f325,_0x592ef3(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5b000d=_0xfeee71[_0x2f2375([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1f274c=_0xfeee71[_0x2f2375([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])](_0x5b000d[_0x2f2375([0x69,0x64])]),_0x1be139=_0x3e8be9(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1be139[_0x2f2375([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5b000d['id'],_0x1f274c?_0x1f274c['id']:null,!0x0),_0x1be139[_0x2f2375([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2f2375([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1be139[_0x2f2375([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1be139[_0x2f2375([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3d052f,void(_0x1be139[_0x2f2375([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3d052f);}if(_0x592ef3(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x36d7cd=_0x3e8be9(_0x2f2375([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x36d7cd[_0x2f2375([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2f2375([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x36d7cd[_0x2f2375([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x36d7cd[_0x2f2375([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3d052f,_0x36d7cd[_0x2f2375([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3d052f;}_0x58abd0[_0x2f2375([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f2375([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d052f,_0x58abd0[_0x2f2375([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f2375([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d052f,_0x58abd0[_0x2f2375([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f2375([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b82ff(){return _0x592ef3(_0x2f2375([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e8be9(_0x2f2375([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2f2375([0x73,0x74,0x61,0x74,0x65])]==_0x2f2375([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2464b0(){return _0x592ef3(_0x2f2375([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 _0x4f3fd6(){return _0x592ef3(_0x2f2375([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x201777(_0x44d001){const _0x1245a9=_0x1e5968();_0x58abd0[_0x1245a9]=_0x2f2375([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])+_0x44d001,_0x44d001[_0x2f2375([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2f2375([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1e5968()]=_0x12e766),_0x44d001!=_0x2f2375([0x56,0x61,0x6c,0x69,0x64])&&_0x364959();}function _0x1e5968(){const _0x1f571b=window[_0x2f2375([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f2375([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f2375([0x6e,0x6f,0x77])]())[_0x2f2375([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f2375([0x2e]),'');let _0x12c91a=_0x2f2375([0x71]);for(let _0x47ead7=0x0;_0x47ead7<_0x1f571b[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47ead7+=0x2){let _0x19fb6e=window[_0x2f2375([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f571b[_0x2f2375([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47ead7,_0x47ead7+0x2));_0x19fb6e>=_0x371491[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19fb6e-=_0x371491[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12c91a+=_0x371491[_0x19fb6e];}return _0x12c91a;}function _0x30bba5(){const _0x59cfbc=_0x40602b[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])](_0x2f2375([0x2e]));if(0x3!=_0x59cfbc[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cfd44(_0x59cfbc[0x1]);function _0x5cfd44(_0x363482){const _0x4973a=_0x5427d5(_0x363482);return _0x4973a&&_0x1a55fd()?_0x4973a:null;function _0x1a55fd(){const _0x258b7f=_0x4973a[_0x2f2375([0x6a,0x74,0x69])],_0x3bce6a=window[_0x2f2375([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x258b7f[_0x2f2375([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x258b7f[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11e7ab={..._0x4973a,[_0x2f2375([0x6a,0x74,0x69])]:_0x258b7f[_0x2f2375([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x258b7f[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11e7ab[_0x2f2375([0x76,0x63])],_0x4f5217(_0x11e7ab)==_0x3bce6a;}}}async function _0x2bb627(){let _0x3d1119=!0x0;try{const _0x2288b4=_0x40602b[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])](_0x2f2375([0x2e])),[_0x4b0e36,_0x20d958,_0x5a4530]=_0x2288b4;return _0x4685d0(_0x4b0e36),await _0x1c6def(_0x4b0e36,_0x20d958,_0x5a4530),_0x3d1119;}catch{return!0x1;}function _0x4685d0(_0x4a4470){const _0x3d1abf=_0x5427d5(_0x4a4470);_0x3d1abf&&_0x3d1abf[_0x2f2375([0x61,0x6c,0x67])]==_0x2f2375([0x45,0x53,0x32,0x35,0x36])||(_0x3d1119=!0x1);}async function _0x1c6def(_0x4574c1,_0x54e94b,_0x2be821){const _0x277500=window[_0x2f2375([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f2375([0x66,0x72,0x6f,0x6d])](_0x50f0b1(_0x2be821),_0x765794=>_0x765794[_0x2f2375([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36e0af=new window[(_0x2f2375([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f2375([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4574c1+_0x2f2375([0x2e])+_0x54e94b),_0x45f29=window[_0x2f2375([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f2375([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45f29)return;const _0x23a798=await _0x45f29[_0x2f2375([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f2375([0x6a,0x77,0x6b]),_0x23de10,{[_0x2f2375([0x6e,0x61,0x6d,0x65])]:_0x2f2375([0x45,0x43,0x44,0x53,0x41]),[_0x2f2375([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f2375([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f2375([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45f29[_0x2f2375([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f2375([0x6e,0x61,0x6d,0x65])]:_0x2f2375([0x45,0x43,0x44,0x53,0x41]),[_0x2f2375([0x68,0x61,0x73,0x68])]:{[_0x2f2375([0x6e,0x61,0x6d,0x65])]:_0x2f2375([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23a798,_0x277500,_0x36e0af)||(_0x3d1119=!0x1);}}function _0x5427d5(_0x391ef3){return _0x391ef3[_0x2f2375([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f2375([0x65,0x79]))?JSON[_0x2f2375([0x70,0x61,0x72,0x73,0x65])](_0x50f0b1(_0x391ef3)):null;}function _0x50f0b1(_0x255daf){return window[_0x2f2375([0x61,0x74,0x6f,0x62])](_0x255daf[_0x2f2375([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f2375([0x2b]))[_0x2f2375([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f2375([0x2f])));}function _0x4f5217(_0x312ad6){let _0x526d6f=0x1505;function _0x4d4f76(_0x338060){for(let _0x30bfa4=0x0;_0x30bfa4<_0x338060[_0x2f2375([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30bfa4++){const _0x2abad6=_0x338060[_0x2f2375([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30bfa4);_0x526d6f=(_0x526d6f<<0x5)+_0x526d6f+_0x2abad6,_0x526d6f&=_0x526d6f;}}function _0x399975(_0x513134){Array[_0x2f2375([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x513134)?_0x513134[_0x2f2375([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x399975):_0x513134&&typeof _0x513134==_0x2f2375([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f2375([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x513134)[_0x2f2375([0x73,0x6f,0x72,0x74])]()[_0x2f2375([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4330c2,_0x87e4e])=>{_0x4d4f76(_0x4330c2),_0x399975(_0x87e4e);}):_0x4d4f76(window[_0x2f2375([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x513134));}return _0x399975(_0x312ad6),_0x526d6f>>>0x0;}function _0x34c289(_0x3167a3){return _0x3167a3[_0x2f2375([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f2375([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f2375([0x30]));}function _0x3e1052(_0xed677e){return _0xed677e[_0x2f2375([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f2375([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f2375([0x6a,0x6f,0x69,0x6e])]('');}function _0x592ef3(_0x42ccde){return _0x58abd0[_0x2f2375([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f2375([0x68,0x61,0x73])](_0x42ccde);}function _0x3e8be9(_0x2f57e0){return _0x58abd0[_0x2f2375([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f2375([0x67,0x65,0x74])](_0x2f57e0);}function _0x3d052f(){}function _0x2f2375(_0x1de34e){return _0x1de34e['map'](_0x40ea55=>String['fromCharCode'](_0x40ea55))['join']('');}_0x201777(await _0x121d3d());}(this);}['createRevision'](_0x32f180){const _0x5eb140=this['editor']['plugins']['get']('Users');return new I({'id':_0x32f180['id'],'name':_0x32f180['name'],'creator':_0x32f180['creatorId']?_0x5eb140['getUser'](_0x32f180['creatorId']):null,'diffData':_0x32f180['diffData']||_0x32f180['data'],'authors':_0x32f180['authorsIds']['map'](_0x288f1e=>_0x5eb140['getUser'](_0x288f1e)),'createdAt':new Date(_0x32f180['createdAt']),'attributes':_0x32f180['attributes'],'fromVersion':_0x32f180['fromVersion'],'toVersion':_0x32f180['toVersion']});}['addRevision'](_0x12f7ac,_0x207e8c=0x0){this['_revisions']['add'](_0x12f7ac,_0x207e8c);}['getRevision'](_0x13f627){return this['_revisions']['get'](_0x13f627);}['getRevisions'](_0x20257e={'toJSON':!0x1}){const _0x5f1335=Array['from'](this['_revisions']);return _0x5f1335['reverse'](),_0x20257e['toJSON']?_0x5f1335['map'](_0x554c79=>_0x554c79['toJSON']()):_0x5f1335;}['getIndex'](_0x3107e5){return this['_revisions']['getIndex'](_0x3107e5);}['getEarlierVisibleRevision'](_0x279b44){const [,_0x1ab41f]=this['getRevisionsIterator'](_0x279b44,{'direction':'earlier'});return _0x1ab41f;}['getLaterVisibleRevision'](_0x5d836a){const [,_0x2b3520]=this['getRevisionsIterator'](_0x5d836a,{'direction':'later'});return _0x2b3520;}['getRevisionsInDiff'](_0x1b944e){const _0x50ae18=[];for(const _0x45fb1d of this['getRevisionsIterator'](_0x1b944e['newRevisionId']))if(_0x50ae18['push'](_0x45fb1d),_0x45fb1d['id']===_0x1b944e['oldRevisionId'])break;return _0x50ae18;}*['getRevisionsIterator'](_0x541782,{direction:_0x3198cd='earlier',filter:_0x36c1f2=()=>!0x0}={}){const _0x5b7c83='earlier'===_0x3198cd?0x1:-0x1;let _0x222e15=this['_revisions']['get'](_0x541782),_0x361540=this['getIndex'](_0x222e15);for(yield _0x222e15;_0x222e15;){if(_0x361540+=_0x5b7c83,_0x222e15=this['getRevision'](_0x361540),!_0x222e15)return;_0x36c1f2(_0x222e15)&&(yield _0x222e15);}}}class $ extends _0x7a0156{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x57906c,'c'],[_0x1a0b1f,'a'],[_0x3fb0e0,'e'],[_0x59cc9e,'r'],[_0x1c9e3e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x57906c],['a',_0x1a0b1f],['e',_0x3fb0e0],['r',_0x59cc9e],['u',_0x1c9e3e]]);async['loadRevisionData'](_0x16e440,_0x2ebf0b){if(_0x16e440['diffData']||!_0x2ebf0b)return;const _0x296ca9=this['editor']['config']['get']('collaboration.channelId'),_0x178dde=await _0x2ebf0b['getRevision']({'channelId':_0x296ca9,'revisionId':_0x16e440['id']});_0x16e440['diffData']=_0x178dde['diffData'];}['getRevisionDocumentData'](_0x3fd2cf){const _0x12b1c6={};for(const _0x39e1e1 in _0x3fd2cf['diffData']){if(_0x3fd2cf['diffData'][_0x39e1e1]['attachChange']&&!_0x3fd2cf['diffData'][_0x39e1e1]['attachChange']['isAttached'])continue;const _0x5df4a3=this['_removeRevisionMarkers'](JSON['parse'](_0x3fd2cf['diffData'][_0x39e1e1]['insertions'])),_0x497243=this['editor']['editing']['view']['document'],_0x5a2190=new _0x429d6d(_0x497243,_0x5df4a3['map'](_0x111cc5=>this['_getViewFromDiffObj'](_0x111cc5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x12b1c6[_0x39e1e1]=this['editor']['data']['processor']['toData'](_0x5a2190),this['editor']['data']['processor']['useFillerType']('default');}return _0x12b1c6;}['getRevisionRootsAttributes'](_0x4fbeea){const _0x66a25b={};for(const _0x558707 in _0x4fbeea['diffData'])_0x4fbeea['diffData'][_0x558707]['attachChange']&&!_0x4fbeea['diffData'][_0x558707]['attachChange']['isAttached']||(_0x66a25b[_0x558707]=_0x4fbeea['diffData'][_0x558707]['attributesAfter']||{});return _0x66a25b;}['_getTypeCharForViewElement'](_0x370ecd){return this['_viewClassToTypeChar']['get'](_0x370ecd['constructor']);}['_getViewFromDiffObj'](_0x94bd16,_0x426326){const _0x154af3=this['editor']['editing']['view']['document'];if('string'==typeof _0x94bd16)return new _0x40dc38(_0x154af3,_0x94bd16);{let _0x5b01df,_0x1058e9;_0x1058e9='u'==_0x94bd16['type']||'r'==_0x94bd16['type']?[]:_0x94bd16['children']['map'](_0x54ff9c=>this['_getViewFromDiffObj'](_0x54ff9c,_0x426326));const _0x359930=this['_typeCharToViewClass']['get'](_0x94bd16['type'])||_0x5b320f,_0x73a544=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5b01df=new _0x359930(_0x154af3,_0x94bd16['name'],_0x94bd16['attributes'],_0x1058e9),'u'==_0x94bd16['type']&&_0x94bd16['children'][0x0]){const _0x2cebfc=_0x94bd16['children'][0x0];if(_0x5b01df['render']=function(_0x11abb1){const _0x31d79d=_0x11abb1['createElement']('div');return _0x31d79d['innerHTML']=_0x2cebfc,_0x31d79d['childNodes'][0x0];},_0x426326){const _0x15be99=new _0x429d6d(_0x154af3);_0x15be99['_appendChild'](_0x5b01df);const _0x5876a4=Array['from'](_0x73a544['viewChildrenToDom'](_0x15be99,{'bind':!0x1})),_0x2aa173=_0x73a544['domDocument']['createElement']('div');_0x2aa173['append'](..._0x5876a4),_0x5b01df=Array['from'](_0x73a544['domChildrenToView'](_0x2aa173))[0x0];}}else{if('r'==_0x94bd16['type']&&_0x94bd16['children'][0x0]){const _0x5e861c=_0x94bd16['children'][0x0];if(_0x5b01df['render']=function(_0x3fa3bb){_0x3fa3bb['innerHTML']=_0x5e861c;},_0x426326){const _0x418575=new _0x429d6d(_0x154af3);_0x418575['_appendChild'](_0x5b01df);const _0x6cedad=Array['from'](_0x73a544['viewChildrenToDom'](_0x418575,{'bind':!0x1})),_0x3132c7=_0x73a544['domDocument']['createElement']('div');_0x3132c7['append'](..._0x6cedad);const _0x1e49da=Array['from'](_0x73a544['domChildrenToView'](_0x3132c7));_0x1e49da['length']>0x1?_0x5b01df['_appendChild'](_0x1e49da):_0x5b01df=_0x1e49da[0x0];}}}if(_0x94bd16['customProperties']){for(const [_0x510199,_0x253819]of _0x94bd16['customProperties'])_0x5b01df['_setCustomProperty'](_0x510199,_0x253819);}const _0x1c0363=void 0x0===_0x94bd16['fillerOffset']?null:_0x94bd16['fillerOffset'];return null!==_0x1c0363&&(_0x5b01df['getFillerOffset']=()=>_0x1c0363),_0x5b01df;}}['_makeModelFromViewString'](_0x115bca){const _0x42ac58=JSON['parse'](_0x115bca),_0x3a95b1=this['editor']['editing']['view']['document'],_0xbd12c2=new _0x429d6d(_0x3a95b1,_0x42ac58['map'](_0xabfa89=>this['_getViewFromDiffObj'](_0xabfa89,!0x0)));return this['editor']['data']['toModel'](_0xbd12c2);}['_removeRevisionMarkers'](_0x33999a){return(_0x33999a=_0x33999a['filter'](_0x23a890=>!_0x23a890['name']||'revision-start'!==_0x23a890['name']&&'revision-end'!==_0x23a890['name']))['forEach'](_0x2335f9=>{'string'!=typeof _0x2335f9&&(_0x2335f9['children']=this['_removeRevisionMarkers'](_0x2335f9['children']),_0x2335f9['attributes']=_0x2335f9['attributes']['filter'](_0x14f369=>!_0x14f369[0x0]['startsWith']('data-revision-')));}),_0x33999a;}}function R(_0x4cfea7,_0x222e2b,_0x49d4ed){const t=_0x4cfea7['t'];switch(_0x222e2b){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'},_0x49d4ed);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x49d4ed);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 _0x7a0156{['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[_0x12ddb9,S,$,_0x270ae9];}constructor(_0x2df9b9){super(_0x2df9b9),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 _0x3da3d6=_0x33e273();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3da3d6},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 _0x201a25=this['repository']['getRevision'](0x0),_0x2f3fbf=_0x201a25&&null===_0x201a25['creator']?_0x201a25:null;if(this['_continueCurrentRevision']=!!_0x2f3fbf&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf7c4a2=this['_source']['getCurrentRevisionId'](),_0xeb6fa5=this['repository']['getRevision'](_0xf7c4a2);if(_0xeb6fa5)this['_startingVersion']=_0xeb6fa5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4c4613=this['_source']['history']['_operations']['find'](_0xad4060=>!_0xad4060['_isInit']),_0x4ad30a=_0x4c4613?_0x4c4613['baseVersion']:this['_source']['history']['version'];_0x201a25?(_0x201a25['toVersion']<_0x4ad30a&&_0x201a25['_update']({'toVersion':_0x4ad30a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2f3fbf['id'],this['_startingVersion']=_0x2f3fbf['fromVersion']):(this['_startingVersion']=_0x201a25['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4ad30a,this['_continueCurrentRevision']=!0x1);}}else _0x2f3fbf&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2f3fbf['toVersion'],this['editor']['model']['document']['history']['version']),_0x2f3fbf['fromVersion']===_0x2f3fbf['toVersion']?(0x0!==_0x2f3fbf['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f3fbf['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2f3fbf['id'],this['_startingVersion']=_0x2f3fbf['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',_0x3c24c3=>!_0x3c24c3),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c06a9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x269152;for(const _0x5aa91b in _0x3c06a9){const _0x26f4b9=_0x5aa91b,_0x4f09d3=_0x3c06a9[_0x26f4b9];if('revisionHistoryLicenseKeyValid'==_0x4f09d3||'revisionHistoryLicenseKeyInvalid'==_0x4f09d3||'revisionHistoryLicenseKeyExpired'==_0x4f09d3||'revisionHistoryLicenseKeyDomainLimit'==_0x4f09d3||'revisionHistoryLicenseKeyNotAllowed'==_0x4f09d3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4f09d3||'revisionHistoryLicenseKeyTrialLimit'==_0x4f09d3||'revisionHistoryLicenseKeyUsageLimit'==_0x4f09d3){delete _0x3c06a9[_0x26f4b9],_0x269152=_0x4f09d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x269152&&_0x3c06a9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x269152&&_0x3c06a9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x269152&&_0x3c06a9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x269152&&_0x3c06a9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x269152&&_0x3c06a9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x269152&&_0x3c06a9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x269152&&_0x3c06a9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x8975b1=this['repository']['getRevision'](0x0),_0x26059d=await this['getRevisionDocumentData'](_0x8975b1),_0xaa03e2=await this['getRevisionRootsAttributes'](_0x8975b1);this['_replaceEditorDataWithRevisionData'](_0x26059d,_0xaa03e2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x23cb4f){this['_source']=_0x23cb4f;}async['update'](){const _0x32fc0f=await this['_source']['getLatestVersion']();if(_0x32fc0f>this['currentRevision']['toVersion']){await this['_loadState']();const _0x22a85b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x32fc0f});_0x22a85b['authors']=_0x22a85b['authorsIds']['map'](_0x415640=>this['editor']['plugins']['get']('Users')['getUser'](_0x415640)),this['currentRevision']['_update'](_0x22a85b);}}async['saveRevision'](_0x3ee155={},_0x5e7047=null){const _0x457def=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5e7047>this['currentRevision']['toVersion']&&(_0x5e7047=null),null===_0x5e7047&&(_0x5e7047=await this['_source']['getLatestVersion']());const _0x12c677=this['_getFromVersion'](_0x5e7047),_0x15842a=this['buildRevisionData']({'from':_0x12c677,'to':_0x5e7047});if(this['currentRevision']['toVersion']<_0x5e7047){const _0x239e2a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5e7047,'to':_0x5e7047});_0x239e2a['authors']=[],_0x239e2a['authorsIds']=[],_0x239e2a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x239e2a,!0x0),delete _0x239e2a['authors'],_0x457def['push'](_0x239e2a);}_0x3ee155['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3ee155['name']=_0x3ee155['name']||null,_0x3ee155['id']=_0x3ee155['id']||_0x33e273(),_0x3ee155={..._0x3ee155,..._0x15842a};const _0x2eb729=this['addRevisionData'](_0x3ee155);_0x457def['push'](_0x3ee155);const _0x393dad=this['repository']['getIndex'](_0x2eb729);if(0x0!==_0x393dad){const _0x1420ac=this['repository']['getRevision'](_0x393dad-0x1);if(_0x1420ac['fromVersion']!==_0x5e7047){const _0x4a4553=this['_revisionDataBuilder']['getData'](_0x5e7047,_0x1420ac['toVersion']),_0x280eb4={'id':_0x1420ac['id'],'diffData':_0x4a4553['diffData'],'authorsIds':_0x4a4553['authorsIds'],'authors':_0x4a4553['authorsIds']['map'](_0x1f4286=>this['editor']['plugins']['get']('Users')['getUser'](_0x1f4286)),'fromVersion':_0x5e7047};_0x1420ac===this['currentRevision']&&(_0x280eb4['createdAt']=new Date(_0x3ee155['createdAt']['getTime']()+0xa)),_0x1420ac['_update'](_0x280eb4,!0x0),delete _0x280eb4['authors'],_0x457def['push'](_0x280eb4);}}if(this['adapter']){for(const _0x5b0f47 of _0x457def)this['_bufferUpdate'](_0x5b0f47['id'],_0x5b0f47,!0x0);this['sendBufferedUpdates']();}return _0x2eb729;}['addRevisionData'](_0x18bde5){const _0xb045c2=this['repository']['createRevision'](_0x18bde5);return this['adapter']&&_0xb045c2['on']('_update',(_0x8a4977,_0x47e95c,_0x39e6ba)=>{_0x39e6ba||(this['_bufferUpdate'](_0x47e95c['id'],_0x47e95c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xb045c2,this['_findInsertionIndex'](_0xb045c2)),_0xb045c2;}async['getRevisionDocumentData'](_0x375bca){return await this['_utils']['loadRevisionData'](_0x375bca,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x375bca);}async['getRevisionRootsAttributes'](_0xdb1635){return await this['_utils']['loadRevisionData'](_0xdb1635,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xdb1635);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5d3736=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x393a66=0x0;_0x393a66<_0x5d3736['length'];_0x393a66++){const _0x2bab5a=_0x5d3736[_0x393a66];let _0x1c2c3b=!0x1;for(const _0x11db77 of Object['keys'](_0x2bab5a))void 0x0===_0x2bab5a[_0x11db77]?delete _0x2bab5a[_0x11db77]:'id'!==_0x11db77&&(_0x1c2c3b=!0x0);_0x1c2c3b||(_0x5d3736[_0x393a66]=null);}if(_0x5d3736=_0x5d3736['filter'](_0x413f65=>null!==_0x413f65),!_0x5d3736['length'])return;for(let _0x30f1d5=0x0;_0x30f1d5<_0x5d3736['length'];_0x30f1d5++){const _0x925f6a=_0x5d3736[_0x30f1d5];void 0x0!==_0x925f6a['fromVersion']&&void 0x0===_0x925f6a['toVersion']&&(_0x925f6a['toVersion']=this['repository']['getRevision'](_0x925f6a['id'])['toVersion']),void 0x0!==_0x925f6a['toVersion']&&void 0x0===_0x925f6a['fromVersion']&&(_0x925f6a['fromVersion']=this['repository']['getRevision'](_0x925f6a['id'])['fromVersion']);}const _0x1d7ad3=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5d3736,_0x1d7ad3)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4ebb8b=>{if(_0x4ebb8b){for(const _0x5bdc11 of _0x4ebb8b)this['setRevisionData']({'id':_0x5bdc11['id'],'createdAt':_0x5bdc11['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xe5f13d=null,from:_0x1a6b95=null,to:_0x4f5c45=null}){_0x1a6b95=null!==_0x1a6b95?_0x1a6b95:_0xe5f13d['fromVersion'],_0x4f5c45=null!==_0x4f5c45?_0x4f5c45:_0xe5f13d['toVersion'];const _0x49a0d3=this['_revisionDataBuilder']['getData'](_0x1a6b95,_0x4f5c45),_0x3556a1={'diffData':_0x49a0d3['diffData'],'authorsIds':_0x49a0d3['authorsIds'],'fromVersion':_0x1a6b95,'toVersion':_0x4f5c45};if(!_0xe5f13d||_0x4f5c45!==_0xe5f13d['toVersion']){const _0x2daf47=_0x4f5c45-0x1,_0x3bb5ef=this['_source']['history']['getOperation'](_0x2daf47);_0x3556a1['createdAt']=_0x3bb5ef&&_0x3bb5ef['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1a6b95===this['_loadedStateData']['fromVersion']){for(const _0x484d08 of this['_loadedStateData']['authors'])_0x3556a1['authorsIds']['includes'](_0x484d08['id'])||_0x3556a1['authorsIds']['push'](_0x484d08['id']);}return _0x3556a1;}['_bufferUpdate'](_0x1ebdcf,_0x489876,_0x35ba0e){if(this['_bufferedUpdates']['has'](_0x1ebdcf)){const _0x2e2b50=this['_bufferedUpdates']['get'](_0x1ebdcf);_0x489876=_0x35ba0e?{..._0x2e2b50,..._0x489876}:{..._0x489876,..._0x2e2b50};}this['_bufferedUpdates']['set'](_0x1ebdcf,_0x489876);}['setRevisionData'](_0xd1d3ee){const _0x4b2b1b=this['repository']['getRevision'](_0xd1d3ee['id']);if(_0xd1d3ee['createdAt']&&(_0xd1d3ee['createdAt']=new Date(_0xd1d3ee['createdAt'])),_0xd1d3ee['authorsIds']){const _0x2425dd=this['editor']['plugins']['get']('Users');_0xd1d3ee['authors']=_0xd1d3ee['authorsIds']['map'](_0x225511=>_0x2425dd['getUser'](_0x225511));}_0x4b2b1b['_update'](_0xd1d3ee,!0x0);}['_createInitialRevision'](_0x1846d5){const _0x5eb3f1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5eb3f1)this['_initialRevisionId']=_0x5eb3f1['id'];else{const _0x441025=!this['editor']['model']['document']['roots']['find'](_0x57448a=>this['editor']['model']['hasContent'](_0x57448a)),_0x19c7ad=this['editor']['plugins']['get']('Users')['me']['id'],_0xee5ce=R(this['editor']['locale'],_0x441025?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1846d5,'to':_0x1846d5,'id':this['_initialRevisionId'],'name':_0xee5ce,'creatorId':_0x19c7ad});}}['_createCurrentRevision'](_0x185408){const _0xbe26b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xbe26b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x185408,'to':_0x185408,'id':_0xbe26b,'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'](_0x22357e,_0xcbbe70){let _0x105bb9=this['editor']['config']['get']('initialData'),_0x2f1781=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x105bb9){_0x105bb9={};for(const _0x340ac1 of this['editor']['model']['document']['getRootNames']())_0x105bb9[_0x340ac1]='';}if('string'==typeof _0x105bb9&&(_0x105bb9={'main':_0x105bb9}),void 0x0===_0x2f1781){_0x2f1781={};for(const _0x35eddc of this['editor']['model']['document']['getRootNames']())_0x2f1781[_0x35eddc]={};}let _0x21c15a=!0x1;const _0x4eb9c4=Object['keys'](_0x105bb9),_0x2c9b49=Object['keys'](_0x22357e);for(const _0x5a954e of _0x4eb9c4){if(_0x105bb9[_0x5a954e]!==_0x22357e[_0x5a954e]&&''!==_0x105bb9[_0x5a954e]['trim']()){_0x21c15a=!0x0;break;}if(!_0x59588e(_0x2f1781[_0x5a954e],_0xcbbe70[_0x5a954e])&&Object['keys'](_0x2f1781[_0x5a954e])['length']>0x0){_0x21c15a=!0x0;break;}}_0x21c15a||(_0x21c15a=_0x2c9b49['some'](_0x3061ce=>!this['editor']['model']['document']['getRoot'](_0x3061ce))),_0x21c15a&&_0x108e76('editor-initial-data-replaced-with-revision-data',{'editorData':_0x105bb9,'editorRootsAttributes':_0x2f1781,'revisionData':_0x22357e,'revisionRootsAttributes':_0xcbbe70}),this['editor']['config']['set']('initialData',_0x22357e),this['editor']['config']['set']('rootsAttributes',_0xcbbe70);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2d5cad=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2d5cad['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x147077){const _0x3c9046=this['repository']['getRevisions']();_0x3c9046['reverse']();let _0x146a3b=0x0;for(;_0x146a3b<_0x3c9046['length'];){const _0x589dcd=_0x3c9046[_0x146a3b];if(_0x589dcd===this['currentRevision']){_0x146a3b++;continue;}if(_0x589dcd['id']===this['_initialRevisionId'])break;const _0x2c8319=_0x147077['toVersion']-_0x589dcd['toVersion']||_0x147077['fromVersion']-_0x589dcd['fromVersion'];if(_0x2c8319>0x0)break;if(_0x2c8319<0x0)_0x146a3b++;else{if(!_0x147077['creator']&&_0x589dcd['creator'])break;if(_0x589dcd['creator']||!_0x147077['creator']){if(_0x147077['createdAt']>_0x589dcd['createdAt'])break;_0x146a3b++;}else _0x146a3b++;}}return _0x146a3b;}['_getFromVersion'](_0x514679){const _0x5cbf0e=this['repository']['getRevisions']();_0x5cbf0e['reverse'](),_0x5cbf0e['shift']();const _0x246c9b=_0x5cbf0e['find'](_0xeecfbb=>_0xeecfbb['toVersion']<=_0x514679)['toVersion'];return _0x246c9b<this['_startingVersion']?this['_startingVersion']:_0x246c9b;}['_makeRevision']({name:_0x51b00a,from:_0x2745b4,to:_0x4e6f30,creatorId:_0x27922a,id:_0x15a9c6}){const _0x27ba37=this['buildRevisionData']({'from':_0x2745b4,'to':_0x4e6f30});_0x27ba37['name']=_0x51b00a,_0x27ba37['creatorId']=_0x27922a,_0x27ba37['id']=_0x15a9c6;const _0x56019c=this['addRevisionData'](_0x27ba37);return this['adapter']&&this['_bufferUpdate'](_0x27ba37['id'],_0x27ba37,!0x0),_0x56019c;}['_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(_0x42cca3){this['editor']=_0x42cca3,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'](_0x59b572){this['source']=_0x59b572;const _0xfe38d8=new Map(),_0x32fa7e=new Map(),_0x1f6035=this['editor']['model']['document']['roots']['map'](_0x2af89f=>_0x2af89f['rootName']);for(const _0x2bfecf of _0x1f6035){const _0x5ceb76=this['editor']['model']['document']['getRoot'](_0x2bfecf),_0x14abe2=x(_0x5ceb76);_0xfe38d8['set'](_0x2bfecf,_0x14abe2),_0x32fa7e['set'](_0x2bfecf,Object['fromEntries'](_0x5ceb76['getAttributes']()));}const _0x36f6ae=Array['from'](this['editor']['model']['markers'])['map'](_0x5c13e4=>[_0x5c13e4['name'],_0x5c13e4['getRange']()]),_0xbc4fce=this['source']['version'];this['_saveMetaData'](_0xbc4fce,_0xfe38d8,_0x36f6ae,_0x32fa7e),this['_startingRevisionId']=this['_revisionId'];const _0x4ede24=new Map(),_0x1deda0=new Map();for(const _0x51bf89 of _0x1f6035){const _0x3e4248=N(_0x51bf89);_0x4ede24['set'](_0x51bf89,_0x3e4248),_0x1deda0['set'](_0x51bf89,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4ede24,[],_0x1deda0);}['getData'](_0x3ecb13,_0x101139){if(this['_lastFrom']===_0x3ecb13&&this['_lastTo']<=_0x101139)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x101139,!0x0);else{if(!this['_savedMetaData']['has'](_0x3ecb13)){const _0x551548=this['_getPreviousFrom'](_0x3ecb13);this['_calculateMetaData'](_0x551548,_0x3ecb13,!0x1);}this['_calculateMetaData'](_0x3ecb13,_0x101139,!0x0);}return this['_lastFrom']=_0x3ecb13,this['_lastTo']=_0x101139,this['_getState']();}['loadState'](_0x4a649d){const _0x44fbe7=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4a649d['fromVersion'],this['_lastTo']=_0x4a649d['toVersion'];for(const _0x470f5f in _0x4a649d['diffData']){const _0x188466=_0x4a649d['diffData'][_0x470f5f]['attachChange'],_0x42adf8=_0x35c6b3(_0x4a649d['diffData'][_0x470f5f]['attributesBefore'])||{},_0x33d30e=_0x44fbe7['_makeModelFromViewString'](_0x4a649d['diffData'][_0x470f5f]['deletions']);_0x33d30e['rootName']=_0x470f5f,_0x33d30e['_isAttached']=!_0x188466||!_0x188466['isAttached'],_0x33d30e['isAttached']=()=>_0x33d30e['_isAttached'],this['_baseRoots']['set'](_0x470f5f,_0x33d30e),this['_baseRootsAttributes']['set'](_0x470f5f,_0x42adf8),_0x188466&&this['_touchedRoots']['set'](_0x470f5f,_0x188466);const _0x4f35a5=this['_makeIdsRoot'](_0x33d30e);this['_baseIdsRoots']['set'](_0x470f5f,_0x4f35a5);for(const [_0x24ccd2,_0x1ab930]of _0x33d30e['markers']){if(!_0x24ccd2['startsWith']('revision:'))continue;const _0x1dc380=_0x24ccd2['split'](':')[0x2];for(const _0x51e994 of _0x1ab930['getWalker']({'singleCharacters':!0x0})){const _0x2513ea=this['_getVidAttributeName'](_0x51e994),_0x36daf1='elementEnd'==_0x51e994['type']?_0x51e994['previousPosition']['path']['slice'](0x0,-0x1):_0x51e994['previousPosition']['path'],_0x67e384=_0x4f35a5['getNodeByPath'](_0x36daf1)['getAttribute'](_0x2513ea);this['_touched']['set'](_0x67e384,{'userId':_0x1dc380});}}}this['_startingRevisionId']=this['_revisionId'];const _0x24e59e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2f1587=>!this['_touched']['has'](_0x2f1587));let _0x5c1db9=0x0;const _0x40a022=new Map();for(const _0x16f4e1 in _0x4a649d['diffData']){const _0x539b03=_0x4a649d['diffData'][_0x16f4e1]['attachChange'],_0x533147=_0x35c6b3(_0x4a649d['diffData'][_0x16f4e1]['attributesAfter'])||{},_0x2a72fe=_0x44fbe7['_makeModelFromViewString'](_0x4a649d['diffData'][_0x16f4e1]['insertions']);_0x2a72fe['rootName']=_0x16f4e1,_0x2a72fe['_isAttached']=!_0x539b03||_0x539b03['isAttached'],_0x2a72fe['isAttached']=()=>_0x2a72fe['_isAttached'],this['_diffRoots']['set'](_0x16f4e1,_0x2a72fe),this['_diffRootsAttributes']['set'](_0x16f4e1,_0x533147);const _0x3a2be2=this['_makeIdsRoot'](_0x2a72fe,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x16f4e1,_0x3a2be2),_0x40a022['set'](_0x16f4e1,_0x2a72fe['isAttached']()?_0x533147:{});for(const [_0x547a98,_0x5b8153]of _0x2a72fe['markers']){if(!_0x547a98['startsWith']('revision:'))continue;const _0x4830be=_0x547a98['split'](':')[0x2];for(const _0x9aa3af of _0x5b8153['getWalker']({'singleCharacters':!0x0})){const _0x120217=this['_getVidAttributeName'](_0x9aa3af),_0x20f41c=this['_revisionId']++,_0xfc247b='elementEnd'==_0x9aa3af['type']?_0x9aa3af['previousPosition']['path']['slice'](0x0,-0x1):_0x9aa3af['previousPosition']['path'];_0x3a2be2['getNodeByPath'](_0xfc247b)['_setAttribute'](_0x120217,_0x20f41c),this['_touched']['set'](_0x20f41c,{'userId':_0x4830be});}}for(const _0x1babaf of this['editor']['model']['createRangeIn'](_0x2a72fe)['getWalker']({'singleCharacters':!0x0})){const _0x5ab87e=this['_getVidAttributeName'](_0x1babaf),_0x46afe8='elementEnd'==_0x1babaf['type']?_0x1babaf['previousPosition']['path']['slice'](0x0,-0x1):_0x1babaf['previousPosition']['path'],_0x174e90=_0x3a2be2['getNodeByPath'](_0x46afe8);_0x174e90['getAttribute'](_0x5ab87e)>0x0||_0x174e90['_setAttribute'](_0x5ab87e,_0x24e59e[_0x5c1db9++]);}for(const [_0x306831,_0x5ee40a]of _0x2a72fe['markers'])_0x306831['startsWith']('revision:')||this['_markers']['set'](_0x306831,_0x5ee40a);}const _0x3a9ef3=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3a9ef3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3a9ef3,0x1));const _0x9fdb53=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x9fdb53),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x9fdb53,0x1));const _0x136900=Array['from'](this['_diffRoots'])['map'](([_0x3dd6b2,_0x3dcced])=>[_0x3dd6b2,x(_0x3dcced)]);this['_saveMetaData'](this['_lastTo'],_0x136900,this['_markers'],_0x40a022);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4cf19e,_0x110be8,_0x32ba14,_0x2b7149){const _0x54aa84=new Map(_0x110be8),_0x5ae0c8=new Map(_0x35c6b3(_0x2b7149)),_0x4e71c2=new Map();for(const [_0x4474b3,_0x3cd780]of _0x32ba14)_0x4e71c2['set'](_0x4474b3,{'start':_0x3cd780['start']['clone'](),'end':_0x3cd780['end']['clone'](),'rootName':_0x3cd780['root']['rootName']});this['_savedMetaData']['set'](_0x4cf19e,{'roots':_0x54aa84,'markers':_0x4e71c2,'rootsAttributes':_0x5ae0c8});}['_removeMetaData'](_0x1b36d8){this['_savedMetaData']['delete'](_0x1b36d8);}['_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'](_0x4bf661,_0x3909da=null){let _0x1c5a1f=null;_0x4bf661['is']('documentFragment')||(_0x1c5a1f=new _0x558088(_0x4bf661['name'],{'vid_start':null===_0x3909da?this['_revisionId']++:_0x3909da++}));const _0x39525b=[];for(const _0x29c911 of _0x4bf661['getChildren']())if(_0x29c911['is']('element')){_0x39525b['push'](this['_makeIdsRoot'](_0x29c911,_0x3909da));const _0x16ba41=_0x39525b[_0x39525b['length']-0x1];null!==_0x3909da&&(_0x3909da=_0x16ba41['is']('element','$text')?_0x16ba41['getAttribute']('vid')+0x1:_0x16ba41['getAttribute']('vid_end')+0x1);}else{for(let _0x57ba63=0x0;_0x57ba63<_0x29c911['offsetSize'];_0x57ba63++)_0x39525b['push'](new _0x558088('$text',{'vid':null===_0x3909da?this['_revisionId']++:_0x3909da++}));}if(_0x4bf661['is']('documentFragment')){const _0x41efb1=N(_0x4bf661['rootName']);return _0x41efb1['_insertChild'](0x0,_0x39525b),_0x41efb1;}return _0x1c5a1f['_setAttribute']('vid_end',null===_0x3909da?this['_revisionId']++:_0x3909da++),_0x1c5a1f['_insertChild'](0x0,_0x39525b),_0x1c5a1f;}['_calculateMetaData'](_0x18557b,_0x12d30b,_0x268987){this['_reset']();const {roots:_0x296169,markers:_0x526afd,rootsAttributes:_0xf43327}=this['_savedMetaData']['get'](_0x18557b);this['_baseRoots']=new Map(_0x296169),this['_baseRootsAttributes']=new Map(_0x35c6b3(_0xf43327));for(const [_0x41425f,_0x469109]of this['_baseRoots'])if('$graveyard'!==_0x41425f&&(this['_diffRoots']['set'](_0x41425f,x(_0x469109)),this['_diffRootsAttributes']=new Map(_0x35c6b3(_0xf43327)),_0x268987)){const _0x3cfb5=this['_revisionId'];this['_idsRoots']['set'](_0x41425f,this['_makeIdsRoot'](_0x469109)),this['_baseIdsRoots']['set'](_0x41425f,this['_makeIdsRoot'](_0x469109,_0x3cfb5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x268987&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x120890,_0x32fb1f]of _0x526afd){const _0x3ef420=this['_baseRoots']['get'](_0x32fb1f['rootName']),_0x4fc318=this['_diffRoots']['get'](_0x32fb1f['rootName']),_0x13c45a=new _0x2bfbe2(this['_fixPosition'](_0x32fb1f['start'],_0x3ef420),this['_fixPosition'](_0x32fb1f['end'],_0x3ef420)),_0x5b96c9=this['_fixRange'](_0x13c45a,_0x4fc318);_0x3ef420['markers']['set'](_0x120890,_0x13c45a),this['_markers']['set'](_0x120890,_0x5b96c9);}this['_applyOperations'](_0x18557b,_0x12d30b,_0x268987);}['_applyOperations'](_0x11b82a,_0xc3426e,_0x580006){for(const _0x38a1fe of this['source']['getOperations'](_0x11b82a,_0xc3426e))this['_handleOperation'](_0x38a1fe,_0x580006);for(const _0x27d546 of this['_diffRoots']['values']())_0x27d546['markers']['clear']();for(const [_0x3fb8a5,_0xabb027]of this['_markers']){this['_diffRoots']['get'](_0xabb027['root']['rootName'])['markers']['set'](_0x3fb8a5,_0xabb027['clone']());}const _0x22af24=new Map(),_0x56a8ed=new Map();for(const [_0x99b73a,_0x5bdace]of this['_diffRoots'])_0x22af24['set'](_0x99b73a,x(_0x5bdace)),_0x56a8ed['set'](_0x99b73a,this['_diffRootsAttributes']['get'](_0x99b73a));this['_saveMetaData'](_0xc3426e,_0x22af24,this['_markers'],_0x56a8ed);}['_getPreviousFrom'](_0x156e64){const _0x58f2cc=Array['from'](this['_savedMetaData']['keys']());_0x58f2cc['sort']((_0x1b502c,_0x395b20)=>_0x1b502c-_0x395b20),_0x58f2cc['reverse']();for(const _0x4dd88f of _0x58f2cc)if(_0x4dd88f<_0x156e64)return _0x4dd88f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1e0cfd,_0x2090ef){const _0x13b68a=Array['from'](_0x2090ef['markers'])['map'](([_0x36af5b,_0x1c13c0])=>[_0x36af5b,this['_fixRange'](_0x1c13c0,_0x1e0cfd)]);_0x1e0cfd['markers']=new Map(_0x13b68a);}['_transformMarkers'](_0x569517){for(const _0x90f352 of this['_markers']['values']()){const _0x3cdaab=_0x90f352['getTransformedByOperation'](_0x569517),_0x163d2b=_0x2bfbe2['_createFromRanges'](_0x3cdaab);_0x90f352['start']=_0x163d2b['start'],_0x90f352['end']=_0x163d2b['end'];}}['_handleOperation'](_0x5c8057,_0x461589){if('addRoot'!=_0x5c8057['type']&&'detachRoot'!=_0x5c8057['type']){if('insert'==_0x5c8057['type']){const _0x2214e2=_0x5c8057['position']['root']['rootName'];this['_diffRoots']['has'](_0x2214e2)||(this['_diffRoots']['set'](_0x2214e2,N(_0x2214e2,!0x0)),this['_diffRootsAttributes']['set'](_0x2214e2,{}),_0x461589&&this['_idsRoots']['set'](_0x2214e2,N(_0x2214e2,!0x0)));}else{if('addRootAttribute'==_0x5c8057['type']||'removeRootAttribute'==_0x5c8057['type']||'changeRootAttribute'==_0x5c8057['type'])return void this['_handleRootAttributeOperation'](_0x5c8057);'marker'==_0x5c8057['type']&&this['_handleMarkerOperation'](_0x5c8057);}if('marker'!==_0x5c8057['type']){const _0x382d69=this['_cloneOperation'](_0x5c8057,this['_diffRoots']);_0x382d69['_execute'](),this['_transformMarkers'](_0x382d69);}if(_0x461589)switch(_0x5c8057['type']){case'insert':this['_handleInsertOperation'](_0x5c8057);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5c8057);break;case'merge':this['_handleMergeOperation'](_0x5c8057);break;case'split':this['_handleSplitOperation'](_0x5c8057);}}else this['_handleRootOperation'](_0x5c8057,_0x461589);}['_cloneOperation'](_0x39a6fe,_0xa1a3d8){const _0x200943=_0x39a6fe['clone']();return _0x200943['_authorId']=_0x39a6fe['_authorId'],this['_fixOperation'](_0x200943,_0xa1a3d8),_0x200943;}['_getBaseVids'](_0x4affb0){return _0x4affb0['map'](_0x30f875=>{const _0x45b462=this['_getVidAttributeName'](_0x30f875);return Number(_0x30f875['item']['getAttribute'](_0x45b462));});}['_generateTape'](_0x3ae9bd,_0x20d577){if(_0x3ae9bd['is']('element','$text'))_0x20d577['push']({'item':_0x3ae9bd,'type':'text'});else{_0x3ae9bd['is']('element')&&_0x20d577['push']({'item':_0x3ae9bd,'type':'elementStart'});for(const _0x2e3ad6 of _0x3ae9bd['getChildren']())this['_generateTape'](_0x2e3ad6,_0x20d577);_0x3ae9bd['is']('element')&&_0x20d577['push']({'item':_0x3ae9bd,'type':'elementEnd'});}return _0x20d577;}['_getState'](){const _0x105562=new Map(this['_touched']),_0x1810ee=new Map(_0x105562),_0x47cac7=new Map(),_0x2f64cf={'insertions':{},'deletions':{}},_0x10ff87={'insertions':{},'deletions':{}},_0x445e39=new Map(),_0xb01913=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xb01913['delete']('$graveyard');for(const _0x280df2 of _0xb01913){const _0x28778f=this['_diffRoots']['get'](_0x280df2)||N(_0x280df2,!0x1),_0x5b7d7e=this['_baseRoots']['get'](_0x280df2)||N(_0x280df2,!0x1);_0x28778f['isAttached']()||_0x5b7d7e['isAttached']()?(_0x2f64cf['insertions'][_0x280df2]=x(_0x28778f),_0x2f64cf['deletions'][_0x280df2]=x(_0x5b7d7e),this['_copyMarkers'](_0x2f64cf['deletions'][_0x280df2],_0x5b7d7e),this['_copyMarkers'](_0x2f64cf['insertions'][_0x280df2],_0x28778f),_0x10ff87['insertions'][_0x280df2]=this['_generateTape'](this['_idsRoots']['get'](_0x280df2),[]),_0x10ff87['deletions'][_0x280df2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x280df2)||N(_0x280df2,!0x1),[])):_0xb01913['delete'](_0x280df2);}for(const _0xd5f5bd of _0xb01913){const _0x2032d8=_0x10ff87['insertions'][_0xd5f5bd];for(const _0x300271 of _0x2032d8){const _0x50d499=this['_getVidAttributeName'](_0x300271),_0x309818=_0x300271['item']['getAttribute'](_0x50d499);_0x1810ee['delete'](_0x309818),_0x309818>=this['_startingRevisionId']&&_0x47cac7['set'](_0x309818,_0x105562['get'](_0x309818));}}for(const _0x265360 of _0xb01913){const _0x5710b0=_0x10ff87['insertions'][_0x265360],_0x5c9885=this['_getBaseVids'](_0x10ff87['deletions'][_0x265360]);let _0x40addd=0x0;for(const _0x26a3a8 of _0x5710b0){const _0x383547=this['_getVidAttributeName'](_0x26a3a8),_0x632b1b=_0x26a3a8['item']['getAttribute'](_0x383547);if(!_0x47cac7['has'](_0x632b1b)&&!_0x445e39['has'](_0x632b1b)){if(_0x1810ee['has'](_0x632b1b))_0x40addd++;else{if(_0x632b1b!=_0x5c9885[_0x40addd]){const _0x26312f=_0x105562['get'](_0x632b1b)||_0x105562['get'](_0x5c9885[_0x40addd]);for(;_0x632b1b!=_0x5c9885[_0x40addd];)_0x1810ee['has'](_0x5c9885[_0x40addd])||(_0x445e39['set'](_0x5c9885[_0x40addd],_0x26312f),_0x105562['set'](_0x5c9885[_0x40addd],_0x26312f)),_0x40addd++;}_0x40addd++;}}}}for(const _0x3371b9 of _0xb01913){const _0x3ea59e=_0x10ff87['insertions'][_0x3371b9];for(const _0x2bbbb1 of _0x3ea59e){const _0x36d111=this['_getVidAttributeName'](_0x2bbbb1),_0x1423d9=_0x2bbbb1['item']['getAttribute'](_0x36d111);if(_0x445e39['has'](_0x1423d9)){const _0x58b833=_0x445e39['get'](_0x1423d9);_0x1810ee['has'](_0x1423d9)||_0x1810ee['set'](_0x1423d9,{..._0x58b833}),_0x47cac7['set'](_0x1423d9,{..._0x58b833});}}}for(const _0x9f73da of _0x1810ee['keys']())_0x9f73da>=this['_startingRevisionId']&&_0x1810ee['delete'](_0x9f73da);const _0x52896e=new Map();for(const _0x3d970a of _0xb01913){let _0x3a00f0=_0x10ff87['insertions'][_0x3d970a];for(const _0x267fb3 of _0x3a00f0)if(_0x267fb3['item']['is']('element','tableCell')){const _0x2ffdf0=this['_getVidAttributeName'](_0x267fb3),_0x350db5=_0x267fb3['item']['getAttribute'](_0x2ffdf0);if(_0x47cac7['has'](_0x350db5)){const _0x38ecb9=_0x267fb3['item']['parent']['parent']['getAttribute']('vid_start'),_0x26f013=_0x52896e['get'](_0x38ecb9)||new Set();_0x26f013['add'](_0x47cac7['get'](_0x350db5)['userId']),_0x52896e['set'](_0x38ecb9,_0x26f013);}}_0x3a00f0=_0x10ff87['deletions'][_0x3d970a];for(const _0x10e32e of _0x3a00f0)if(_0x10e32e['item']['is']('element','tableCell')){const _0x2eedba=this['_getVidAttributeName'](_0x10e32e),_0x88a9e8=_0x10e32e['item']['getAttribute'](_0x2eedba);if(_0x1810ee['has'](_0x88a9e8)){const _0x5cb307=_0x10e32e['item']['parent']['parent']['getAttribute']('vid_start'),_0x18b800=_0x52896e['get'](_0x5cb307)||new Set();_0x18b800['add'](_0x1810ee['get'](_0x88a9e8)['userId']),_0x52896e['set'](_0x5cb307,_0x18b800);}}for(const _0x18c5f3 of _0x52896e['keys']())(_0x47cac7['has'](_0x18c5f3)||_0x1810ee['has'](_0x18c5f3))&&_0x52896e['delete'](_0x18c5f3);}for(const _0x5275c4 of _0xb01913){const _0x5c5aaa=_0x10ff87['insertions'][_0x5275c4];let _0x494968=null,_0x139d8a=null;for(const _0x24775d of _0x5c5aaa){const _0x47352c=this['_getVidAttributeName'](_0x24775d),_0x3dcdb9=_0x24775d['item']['getAttribute'](_0x47352c),_0x5a27e5=_0x52896e['get'](_0x3dcdb9);_0x5a27e5&&'elementStart'==_0x24775d['type']&&(_0x494968=Array['from'](_0x5a27e5)[0x0],_0x139d8a=_0x24775d['item']['getAttribute']('vid_end')),_0x494968&&(_0x1810ee['set'](_0x3dcdb9,{'userId':_0x494968}),_0x47cac7['set'](_0x3dcdb9,{'userId':_0x494968})),_0x3dcdb9==_0x139d8a&&(_0x494968=null,_0x139d8a=null);}}const _0x438ca7={},_0x4d9fdc=new Set();for(const _0x2a50fe of _0xb01913){const _0x45f810=_0x2f64cf['deletions'][_0x2a50fe],_0x39b2ce=_0x2f64cf['insertions'][_0x2a50fe];for(const {userId:_0x1597fd}of this['_touchedMarkers']['values']())null!==_0x1597fd&&_0x4d9fdc['add'](_0x1597fd);for(const {userId:_0x5059d7}of this['_touchedRoots']['values']())null!==_0x5059d7&&_0x4d9fdc['add'](_0x5059d7);this['_markChanges'](_0x39b2ce,_0x10ff87['insertions'][_0x2a50fe],_0x47cac7,'insertion',_0x4d9fdc),this['_markChanges'](_0x45f810,_0x10ff87['deletions'][_0x2a50fe],_0x1810ee,'deletion',_0x4d9fdc),_0x438ca7[_0x2a50fe]={'insertions':this['_prepareViewToSave'](_0x39b2ce),'deletions':this['_prepareViewToSave'](_0x45f810),'attachChange':this['_touchedRoots']['get'](_0x2a50fe)||null,'attributesBefore':_0x35c6b3(this['_baseRootsAttributes']['get'](_0x2a50fe))||{},'attributesAfter':_0x35c6b3(this['_diffRootsAttributes']['get'](_0x2a50fe))};}return{'diffData':_0x438ca7,'authorsIds':Array['from'](_0x4d9fdc)};}['_processRootBeforeSave'](_0x4e791d){for(const [,_0x398ed2]of _0x4e791d['markers']){const _0x4ed707=_0x398ed2['start']['getAncestors']()['filter'](_0xa5641f=>'tableCell'==_0xa5641f['name']);for(const _0xade2aa of _0x4ed707)0x1==_0xade2aa['childCount']&&_0xade2aa['getChild'](0x0)['is']('element','paragraph')&&_0xade2aa['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x21d880){this['_processRootBeforeSave'](_0x21d880);const _0x460aaf=this['editor']['data']['toView'](_0x21d880,{}),_0x5f03cd=Array['from'](_0x460aaf['getChildren']())['map'](_0x3056f4=>this['_getViewJson'](_0x3056f4));return JSON['stringify'](_0x5f03cd);}['_getViewJson'](_0x4a0be3){if(_0x4a0be3['is']('$text'))return _0x4a0be3['data'];{const _0x3ef495=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2060e8=_0x4a0be3,_0x8cd867=this['editor']['data']['htmlProcessor']['domConverter'],_0x124ac0={'type':_0x3ef495['_getTypeCharForViewElement'](_0x2060e8),'name':_0x2060e8['name'],'attributes':Array['from'](_0x2060e8['getAttributes']()),'children':Array['from'](_0x2060e8['getChildren']())['map'](_0x3ddf77=>this['_getViewJson'](_0x3ddf77))};if(_0x4a0be3['is']('uiElement')&&'$comment'!=_0x4a0be3['name']){const _0x4a133e=_0x4a0be3['render'](_0x8cd867['domDocument'],_0x8cd867);_0x124ac0['children']['push'](_0x4a133e['outerHTML']);}else{if(_0x4a0be3['is']('rawElement')){const _0xe369c0=_0x8cd867['domDocument']['createElement'](_0x2060e8['name']);_0x4a0be3['render'](_0xe369c0,_0x8cd867),_0x124ac0['children']['push'](_0xe369c0['innerHTML']);}}const _0x43f7ee=Array['from'](_0x2060e8['getCustomProperties']());_0x43f7ee['length']>0x0&&(_0x124ac0['customProperties']=_0x43f7ee);const _0x4c666c=_0x2060e8['getFillerOffset']();return null!==_0x4c666c&&(_0x124ac0['fillerOffset']=_0x4c666c),_0x124ac0;}}['_markChanges'](_0x1a27fd,_0x46d834,_0x5165b3,_0x5f47d3,_0x4f04e2){let _0x2404d4=null,_0xb143fd=null,_0x17b259=0x0;const _0xbd66e=this['editor']['model'];for(let _0xe882b0=0x0;_0xe882b0<_0x46d834['length'];_0xe882b0++){const _0x5e9338=this['_getVidAttributeName'](_0x46d834[_0xe882b0]),_0xee0309=_0x46d834[_0xe882b0]['item']['getAttribute'](_0x5e9338),_0x1b44d9=_0x5165b3['get'](_0xee0309),_0x47a01a=_0xe882b0==_0x46d834['length']-0x1;(!_0x2404d4&&_0x1b44d9&&(_0x2404d4=_0x1b44d9,_0xb143fd=_0x46d834[_0xe882b0]),_0x2404d4&&(!_0x1b44d9||_0x1b44d9['userId']!=_0x2404d4['userId']))&&(_0x4c00c2(_0x1b44d9,P(_0xb143fd,_0x1a27fd,_0xbd66e),P(_0x46d834[_0xe882b0],_0x1a27fd,_0xbd66e)),_0x2404d4=_0x1b44d9||null,_0xb143fd=_0x1b44d9?_0x46d834[_0xe882b0]:null),_0x2404d4&&_0x47a01a&&_0x4c00c2(_0x1b44d9,P(_0xb143fd,_0x1a27fd,_0xbd66e),V(_0x46d834[_0xe882b0],_0x1a27fd,_0xbd66e));}function _0x4c00c2(_0xe41d26,_0x5376b4,_0x52442a){const _0x384de9=_0x2404d4['userId'],_0x3dd0cd='revision:'+_0x5f47d3+':'+_0x384de9+':'+_0x17b259++,_0x45c1fe=_0xbd66e['createRange'](_0x5376b4,_0x52442a);_0x1a27fd['markers']['set'](_0x3dd0cd,_0x45c1fe),null!==_0x384de9&&_0x4f04e2['add'](_0x384de9);}}['_getVidAttributeName'](_0x31a41c){switch(_0x31a41c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2391bd,_0x29a955){_0x2391bd['baseVersion']=null;for(const _0x2faf51 in _0x2391bd){const _0x269e45=_0x2391bd[_0x2faf51];if(_0x269e45 instanceof _0x2fb88e){const _0x18994=_0x29a955['get'](_0x269e45['root']['rootName']);_0x2391bd[_0x2faf51]=this['_fixPosition'](_0x269e45,_0x18994);}if(_0x269e45 instanceof _0x2bfbe2){const _0x47b212=_0x29a955['get'](_0x269e45['root']['rootName']);_0x2391bd[_0x2faf51]=this['_fixRange'](_0x269e45,_0x47b212);}'root'===_0x2faf51&&(_0x2391bd['root']=_0x29a955['get'](_0x2391bd['root']['rootName']));}}['_fixRange'](_0x15e490,_0x2733bb){return this['editor']['model']['createRange'](this['_fixPosition'](_0x15e490['start'],_0x2733bb),this['_fixPosition'](_0x15e490['end'],_0x2733bb));}['_fixPosition'](_0x3b4e97,_0x1cb38b){return this['editor']['model']['createPositionFromPath'](_0x1cb38b,_0x3b4e97['path'],_0x3b4e97['stickiness']);}['_handleInsertOperation'](_0x136b4e){const _0x1ec3aa=this['_idsRoots']['get'](_0x136b4e['position']['root']['rootName']),_0x1170eb=this['_fixPosition'](_0x136b4e['position'],_0x1ec3aa),_0x462c04=null===_0x136b4e['_authorId']?null:_0x136b4e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x240e34=_0x1170eb['parent'],_0x3344dd=this['_revisionId'],_0x30a0c8=[];for(const _0xe27881 of _0x136b4e['nodes'])if(_0xe27881['is']('element'))_0x30a0c8['push'](this['_makeIdsRoot'](_0xe27881));else{for(let _0xa45997=0x0;_0xa45997<_0xe27881['offsetSize'];_0xa45997++)_0x30a0c8['push'](new _0x558088('$text',{'vid':this['_revisionId']++}));}const _0x2ae9c3=this['_revisionId'];for(let _0x3a81f3=_0x3344dd;_0x3a81f3<_0x2ae9c3;_0x3a81f3++)this['_touched']['set'](_0x3a81f3,{'userId':_0x462c04});_0x240e34['_insertChild'](_0x1170eb['offset'],_0x30a0c8);}['_handleMoveOperation'](_0x32c07b){(_0x32c07b=this['_cloneOperation'](_0x32c07b,this['_idsRoots']))['_execute']();const _0x4bc0c7=null===_0x32c07b['_authorId']?null:_0x32c07b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5550a6=_0x32c07b['getMovedRangeStart'](),_0x8ae2ba=_0x5550a6['parent'],_0x5f4ac9=_0x5550a6['offset'];!function _0x44e4a2(_0x3126bc,_0x53876c,_0x14f315,_0x2ec88e){for(let _0x3fce24=_0x14f315;_0x3fce24<_0x2ec88e;_0x3fce24++){const _0x2b4ad9=_0x53876c['getChild'](_0x3fce24);_0x2b4ad9['is']('element','$text')?_0x3126bc['set'](_0x2b4ad9['getAttribute']('vid'),{'userId':_0x4bc0c7}):(_0x3126bc['set'](_0x2b4ad9['getAttribute']('vid_start'),{'userId':_0x4bc0c7}),_0x44e4a2(_0x3126bc,_0x2b4ad9,0x0,_0x2b4ad9['childCount']),_0x3126bc['set'](_0x2b4ad9['getAttribute']('vid_end'),{'userId':_0x4bc0c7}));}}(this['_touched'],_0x8ae2ba,_0x5f4ac9,_0x5f4ac9+_0x32c07b['howMany']);}['_handleMergeOperation'](_0x11f653){const _0x33ab21=null===(_0x11f653=this['_cloneOperation'](_0x11f653,this['_idsRoots']))['_authorId']?null:_0x11f653['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x238f78=_0x11f653['targetPosition']['parent'],_0x447802=_0x11f653['sourcePosition']['parent'],_0x363f26=_0x238f78['getAttribute']('vid_end'),_0x152bc5=_0x447802['getAttribute']('vid_start');_0x238f78['_setAttribute']('vid_end',_0x447802['getAttribute']('vid_end')),_0x447802['_setAttribute']('vid_end',_0x363f26),this['_touched']['set'](_0x152bc5,{'userId':_0x33ab21}),this['_touched']['set'](_0x363f26,{'userId':_0x33ab21}),_0x11f653['_execute']();}['_handleSplitOperation'](_0x153471){const _0x645a70=null===(_0x153471=this['_cloneOperation'](_0x153471,this['_idsRoots']))['_authorId']?null:_0x153471['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d62be=_0x153471['graveyardPosition'],_0x5e16ec=_0x153471['splitPosition']['parent'];_0x153471['_execute']();const _0x48f871=_0x5e16ec['getAttribute']('vid_end'),_0x3e90ed=_0x153471['insertionPosition']['nodeAfter'];if(_0x3d62be){const _0x3b1f2d=_0x3e90ed['getAttribute']('vid_end'),_0x570314=_0x5e16ec['getAttribute']('vid_end');_0x5e16ec['_setAttribute']('vid_end',_0x3b1f2d),_0x3e90ed['_setAttribute']('vid_end',_0x570314),this['_touched']['set'](_0x5e16ec['getAttribute']('vid_end'),{'userId':_0x645a70}),this['_touched']['set'](_0x3e90ed['getAttribute']('vid_start'),{'userId':_0x645a70});}else{const _0x45f6c7=this['_revisionId']++,_0x2f93bf=this['_revisionId']++;_0x5e16ec['_setAttribute']('vid_end',_0x45f6c7),_0x3e90ed['_setAttribute']('vid_start',_0x2f93bf),_0x3e90ed['_setAttribute']('vid_end',_0x48f871),this['_touched']['set'](_0x45f6c7,{'userId':_0x645a70}),this['_touched']['set'](_0x2f93bf,{'userId':_0x645a70});}}['_handleMarkerOperation'](_0x5bfcc4){if(!_0x5bfcc4['affectsData'])return;const _0x5ab147=(_0x5bfcc4=this['_cloneOperation'](_0x5bfcc4,this['_diffRoots']))['oldRange']?_0x5bfcc4['oldRange']['root']:null,_0x40c45d=_0x5bfcc4['newRange']?_0x5bfcc4['newRange']['root']:null;_0x5ab147&&this['_markers']['delete'](_0x5bfcc4['name']),_0x40c45d&&this['_markers']['set'](_0x5bfcc4['name'],_0x5bfcc4['newRange']['clone']());const _0x35f405=null===_0x5bfcc4['_authorId']?null:_0x5bfcc4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20b765=_0x5bfcc4['name'];if(!this['_touchedMarkers']['has'](_0x20b765))return void this['_touchedMarkers']['set'](_0x20b765,{'range':_0x5bfcc4['oldRange'],'userId':_0x35f405});const _0x60a64e=this['_touchedMarkers']['get'](_0x20b765),_0x28506f=_0x60a64e['range'],_0x32b8e7=_0x5bfcc4['newRange'];null==_0x28506f&&null==_0x32b8e7||_0x28506f&&_0x32b8e7&&_0x28506f['isEqual'](_0x32b8e7)?this['_touchedMarkers']['delete'](_0x5bfcc4['name']):_0x60a64e['userId']=_0x35f405;}['_handleRootOperation'](_0x2d6063,_0x415a63){this['_diffRoots']['has'](_0x2d6063['rootName'])?this['_diffRoots']['get'](_0x2d6063['rootName'])['_isAttached']=_0x2d6063['isAdd']:(this['_diffRoots']['set'](_0x2d6063['rootName'],N(_0x2d6063['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d6063['rootName'],{}),_0x415a63&&this['_idsRoots']['set'](_0x2d6063['rootName'],N(_0x2d6063['rootName'],!0x0)));const _0x162f16=null===_0x2d6063['_authorId']?null:_0x2d6063['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x129c38=this['_touchedRoots']['get'](_0x2d6063['rootName']);_0x129c38&&_0x129c38['userId']===_0x162f16?this['_touchedRoots']['delete'](_0x2d6063['rootName']):this['_touchedRoots']['set'](_0x2d6063['rootName'],{'userId':_0x162f16,'isAttached':_0x2d6063['isAdd']});}['_handleRootAttributeOperation'](_0x1072a6){const _0x1389ae=this['_diffRootsAttributes']['get'](_0x1072a6['root']['rootName']);null===_0x1072a6['newValue']?delete _0x1389ae[_0x1072a6['key']]:_0x1389ae[_0x1072a6['key']]=_0x1072a6['newValue'];}}function x(_0x1a6d19){const _0x2e902=N(_0x1a6d19['rootName'],_0x1a6d19['isAttached']());for(const _0x286363 of _0x1a6d19['getChildren']()){const _0x2406cb=_0x286363['_clone'](!0x0);_0x2e902['_appendChild'](_0x2406cb);}return _0x2e902;}function N(_0x48dd3b,_0x54327f=!0x0){const _0x1e0138=new _0x4e6165();return _0x1e0138['rootName']=_0x48dd3b,_0x1e0138['_isAttached']=_0x54327f,_0x1e0138['isAttached']=()=>_0x1e0138['_isAttached'],_0x1e0138;}function P(_0x1a7adc,_0x157011,_0x116018){const _0x4a2c81='elementEnd'==_0x1a7adc['type']?_0x116018['createPositionAt'](_0x1a7adc['item'],'end'):_0x116018['createPositionBefore'](_0x1a7adc['item']);return _0x116018['createPositionFromPath'](_0x157011,_0x4a2c81['path'],_0x4a2c81['stickiness']);}function V(_0xbadbb1,_0x2a9d72,_0xf3c63e){const _0x47c656='elementStart'==_0xbadbb1['type']?_0xf3c63e['createPositionAt'](_0xbadbb1['item'],0x0):_0xf3c63e['createPositionAfter'](_0xbadbb1['item']);return _0xf3c63e['createPositionFromPath'](_0x2a9d72,_0x47c656['path'],_0x47c656['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x46e73d(_0x4d9a94){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x37f2ff,_0x217a5b){super(_0x37f2ff),this['focusTracker']=new _0x3c1e3a(),this['keystrokes']=new _0x2613e6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x217a5b),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'](),_0xa8b4ab({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3dbbc9=_0xc8a320=>_0xc8a320['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3dbbc9),this['keystrokes']['set']('arrowleft',_0x3dbbc9),this['keystrokes']['set']('arrowup',_0x3dbbc9),this['keystrokes']['set']('arrowdown',_0x3dbbc9);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3b847b){this['revisionNameInputView']['fieldView']['element']['value']=_0x3b847b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3217a4){const _0x3890df=new ti(this['locale'],_0x4673f6),_0x3efab9=_0x3890df['fieldView'];_0x3efab9['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5464db=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3217a4&&(_0x5464db+='\x20('+R(this['locale'],'optional')+')'),(_0x3890df['label']=_0x5464db,_0x3efab9['on']('input',()=>{this['revisionNameInputValue']=_0x3efab9['element']['value']['trim']();}),_0x3890df);}}class v extends _0x7a0156{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x20cdff=this['editor'],_0x47af66=_0x20cdff['plugins']['get']('RevisionTracker');_0x20cdff['ui']['componentFactory']['add']('revisionHistory',_0xb51930=>{const _0x43ec21=_0x23a169(_0xb51930),_0x2336a3=_0x43ec21['panelView']['children'],_0x13b535=new _0x5f5bb1(_0xb51930),_0x147ae9=new _0x139eb4(_0xb51930),_0x48df9a=new _0x5d294a(_0xb51930),_0xa8c56d=new _0x139eb4(_0xb51930),_0x48fb56=new _0x5d294a(_0xb51930);return _0x43ec21['bind']('isEnabled')['to'](_0x47af66,'isReady',_0x47af66,'isEnabled',_0x20cdff,'isReadOnly',(_0x2c627b,_0x5dafc5,_0x560769)=>_0x2c627b&&_0x5dafc5&&!_0x560769),_0x43ec21['buttonView']['set']({'icon':_0x292ff5,'label':R(_0xb51930,'Revision\x20history'),'tooltip':!0x0}),_0x48df9a['set']({'label':R(_0xb51930,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x48df9a['bind']('isEnabled')['to'](_0x47af66,'isReady',_0x47af66,'isEnabled',_0x20cdff,'isReadOnly',(_0x1df975,_0x231538,_0x380126)=>_0x1df975&&_0x231538&&!_0x380126),_0x48df9a['on']('execute',()=>this['_showDialog']()),_0x48fb56['set']({'label':R(_0xb51930,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x48fb56['bind']('isEnabled')['to'](_0x47af66,'isReady',_0x20cdff,'isReadOnly',(_0x3bb2ec,_0x236a66)=>_0x3bb2ec&&!_0x236a66),_0x48fb56['on']('execute',()=>{_0x20cdff['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x43ec21['isOpen']=!0x1,_0x20cdff['editing']['view']['focus']();}),_0x147ae9['children']['add'](_0x48df9a),_0xa8c56d['children']['add'](_0x48fb56),_0x13b535['role']='menu',_0x13b535['items']['addMany']([_0x147ae9,_0xa8c56d]),_0x2336a3['add'](_0x13b535),_0x43ec21;}),_0x20cdff['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2524d2=this['editor'],_0x542e4a=_0x2524d2['locale'],_0x6c8b25=new _0x597bf0(_0x542e4a),_0x250d1e=new _0x2694f6(_0x542e4a);_0x6c8b25['buttonView']['set']({'icon':_0x292ff5,'label':R(_0x542e4a,'Revision\x20history')});const _0x472cf4=new _0x57f390(_0x542e4a,_0x6c8b25),_0x2446e8=new _0x4ff8c0(_0x542e4a);_0x2446e8['set']({'label':R(_0x542e4a,'Save\x20current\x20revision')}),_0x2446e8['delegate']('execute')['to'](_0x6c8b25),_0x2446e8['on']('execute',()=>{this['_showDialog']();}),_0x472cf4['children']['add'](_0x2446e8),_0x250d1e['items']['add'](_0x472cf4);const _0xd8bf9=new _0x57f390(_0x542e4a,_0x6c8b25),_0x17b0f9=new _0x4ff8c0(_0x542e4a);return _0x17b0f9['set']({'label':R(_0x542e4a,'Open\x20revision\x20history')}),_0x17b0f9['delegate']('execute')['to'](_0x6c8b25),_0x17b0f9['on']('execute',()=>{_0x2524d2['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xd8bf9['children']['add'](_0x17b0f9),_0x250d1e['items']['add'](_0xd8bf9),_0x6c8b25['panelView']['children']['add'](_0x250d1e),_0x6c8b25;}['_showDialog'](){const _0x48e0c6=this['editor'],_0x1d2912=_0x48e0c6['locale'],_0x4b5b30=_0x48e0c6['plugins']['get']('Dialog'),_0x2666bc=_0x48e0c6['plugins']['get']('RevisionTracker');function _0x1c7464(_0x5947ce){_0x48e0c6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5947ce['revisionName']?_0x5947ce['revisionNameInputView']['errorText']=R(_0x1d2912,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x48e0c6['plugins']['get'](h)['saveRevision']({'name':_0x5947ce['revisionName']}),_0x4b5b30['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1c7464(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4b5b30['show']({'id':'revisionSave','title':R(_0x1d2912,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x48e0c6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4b5b30['hide']()},{'label':R(_0x48e0c6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x587a4a){_0x587a4a['bind']('isEnabled')['to'](_0x2666bc,'isReady',_0x2666bc,'isEnabled',_0x48e0c6,'isReadOnly',(_0x37cc02,_0x6c81d0,_0x2432e8)=>_0x37cc02&&_0x6c81d0&&!_0x2432e8);},'onExecute':()=>_0x1c7464(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x26ef21=this['editor'],_0xcc79e9=_0x26ef21['locale'];this['_saveRevisionFormView']=new he(_0xcc79e9,_0x26ef21['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x4d9a94{['changeId'];['_model'];constructor(_0x595d44,_0x13b046){super(_0x595d44),this['_model']=_0x13b046,this['changeId']=_0x13b046['id'];const _0x31fd8b=this['bindTemplate'],_0x20c723=R(_0x595d44,_0x13b046['data']['isSuggestion']?'Suggested\x20by':'add'==_0x13b046['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x13b046['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x31fd8b['to']('type',_0xd14846=>'ck-revision-change__'+_0xd14846)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x20c723}]},{'text':'\x20'+_0x13b046['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x31f508(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5752ce){super(),this['id']=_0x5752ce['id']||_0x33e273(),this['author']=_0x5752ce['author'],this['type']=_0x5752ce['type'],this['data']=_0x5752ce['data']||{},this['rootName']=_0x5752ce['rootName'],this['set']('createdAt',_0x5752ce['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(_0x4293a5,_0x35d989){this['newRevisionId']=_0x4293a5,this['oldRevisionId']=_0x35d989,this['changes']=new _0x21221c();}['_setChanges'](_0x3b8175){for(const _0x7aaba8 of _0x3b8175)this['changes']['add'](_0x7aaba8);}}class l extends _0x7a0156{['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[_0x12ddb9,_0x58520b,S,$];}constructor(_0xf9841b){super(_0xf9841b),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',(_0x122524,_0x52bf88,_0x3d36e3)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x19ca6b=>{for(const _0x5d0506 of this['editor']['editing']['view']['document']['roots'])_0x3d36e3?_0x19ca6b['removeClass']('ck-editor__editable__overlay',_0x5d0506):_0x19ca6b['addClass']('ck-editor__editable__overlay',_0x5d0506);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4f12bd=>null!==_0x4f12bd),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x53bf9f,_0x4eb1ed,_0x2ba058)=>_0x53bf9f&&_0x2ba058?_0x4eb1ed['changes']['getIndex'](_0x2ba058):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2fc15f,_0x14c786)=>_0x2fc15f?_0x14c786['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x58520b);}['init'](){const _0x594ef7=this['editor'],_0x37fe95=new ot(_0x594ef7,{'direction':'backward'}),_0x513a9c=new ot(_0x594ef7,{'direction':'forward'});(_0x594ef7['commands']['add']('showPreviousChange',_0x37fe95),_0x594ef7['commands']['add']('showNextChange',_0x513a9c),_0x594ef7['commands']['add']('restoreRevision',new nt(_0x594ef7)),this['on']('change:numberOfChanges',()=>{_0x37fe95['refresh'](),_0x513a9c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x594ef7['enableReadOnlyMode']('revision-viewer'),_0x594ef7['plugins']['has']('WidgetToolbarRepository'))&&_0x594ef7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5cbfa1){return await this['_utils']['loadRevisionData'](_0x5cbfa1,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5cbfa1);}async['getRevisionRootsAttributes'](_0x25ca48){return await this['_utils']['loadRevisionData'](_0x25ca48,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x25ca48);}async['compare'](_0x13d81f,_0x2738ad,_0x864dda=!0x1){if(!this['isEnabled'])return;const _0x4e0b0d=this['diff'],_0x2116f2=this['repository'],_0x32c901='string'==typeof _0x13d81f?_0x2116f2['getRevision'](_0x13d81f):_0x13d81f,_0x2951d7='string'==typeof _0x2738ad?_0x2116f2['getRevision'](_0x2738ad):_0x2738ad,_0x3ccbe0=_0x32c901['id'],_0x27b0f8=_0x2951d7?_0x2951d7['id']:null;if(!_0x864dda&&this['diff']&&this['diff']['newRevisionId']===_0x3ccbe0&&this['diff']['oldRevisionId']===_0x27b0f8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x3ccbe0,_0x27b0f8);const _0xab854b=this['_getRevisionsRange'](_0x32c901,_0x2951d7,!0x0)['map'](_0xc15f57=>this['_utils']['loadRevisionData'](_0xc15f57,this['adapter']));return _0xab854b['push'](new Promise(_0x240633=>{setTimeout(_0x240633,0x14);})),Promise['all'](_0xab854b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x216105=this['_getDiff'](_0x3ccbe0,_0x27b0f8);for(const _0x149b48 of _0x216105['changes'])this['_changeIdToChange']['set'](_0x149b48['id'],_0x149b48);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x23b9db=>{for(const _0x2fae86 of this['editor']['model']['document']['getRootNames']())_0x23b9db['detachRoot'](_0x2fae86);for(const _0x35b66a of Object['keys'](_0x216105['model'])){const _0x2864d7=_0x23b9db['addRoot'](_0x35b66a);for(const _0x48fb66 of Object['keys'](_0x216105['attributes'][_0x35b66a]))_0x23b9db['setAttribute'](_0x48fb66,_0x216105['attributes'][_0x35b66a][_0x48fb66],_0x2864d7);_0x23b9db['insert'](_0x216105['model'][_0x35b66a],_0x2864d7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x216105['changes'])),this['isReady']=!0x0;})['catch'](_0x4a5265=>{console['error'](_0x4a5265),this['_cleanUp'](),_0x4e0b0d&&(this['diff']=_0x4e0b0d),this['isReady']=!0x0;});}['addRevisionData'](_0x3e9d6b,_0x1fd0d6){const _0xa545e5=this['repository']['createRevision'](_0x3e9d6b);return _0xa545e5['on']('_update',(_0x3c741a,_0x57d448,_0x40197e)=>_0x1fd0d6(_0x57d448,_0x40197e,_0xa545e5)),this['repository']['addRevision'](_0xa545e5),_0xa545e5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2f6744=>{for(const _0x5cfcf8 of this['editor']['model']['document']['getRootNames']())_0x2f6744['detachRoot'](_0x5cfcf8);});}['_sortAndFilterDiffChanges'](_0x212dc4){const _0x2bff0d=[],_0xe9e38d=new Map();for(const _0x4bfa79 of this['editor']['model']['document']['getRootNames']()){const _0x3e7681=this['editor']['editing']['view']['getDomRoot'](_0x4bfa79);if(!_0x3e7681)continue;const _0x415244=_0x3e7681['getClientRects']()['item'](0x0);_0x415244&&(_0x2bff0d['push'](_0x4bfa79),_0xe9e38d['set'](_0x4bfa79,_0x415244));}return _0x2bff0d['sort']((_0x25de09,_0x1e5930)=>{const _0x3053df=_0xe9e38d['get'](_0x25de09),_0x43745a=_0xe9e38d['get'](_0x1e5930);return _0x3053df['y']-_0x43745a['y']||_0x3053df['x']-_0x43745a['x'];}),(_0x212dc4=_0x212dc4['filter'](_0x3c9ca2=>_0x2bff0d['includes'](_0x3c9ca2['rootName'])))['sort']((_0x5e3ace,_0x3f0718)=>_0x2bff0d['indexOf'](_0x5e3ace['rootName'])-_0x2bff0d['indexOf'](_0x3f0718['rootName'])),_0x212dc4;}['_makeTape'](_0x3b1e85){const _0x906670=Array['from'](_0x3b1e85['markers'])['filter'](([_0x25a98e,_0x3485da])=>_0x25a98e['startsWith']('revision:')&&!_0x3485da['isCollapsed']),_0x154592=Array['from'](this['editor']['model']['createRangeIn'](_0x3b1e85)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x906670['length'])for(const _0x34a754 of _0x154592){const [_0x57fad7,_0x21b9e8]=_0x906670[0x0],[,_0x117bef,_0xa732a1]=_0x57fad7['split'](':');if(_0x21b9e8['end']['isEqual'](_0x34a754['nextPosition'])&&_0x906670['shift'](),(_0x34a754['previousPosition']['isEqual'](_0x21b9e8['start'])||_0x34a754['previousPosition']['isAfter'](_0x21b9e8['start']))&&('insertion'==_0x117bef?_0x34a754['isAdded']={'userId':_0xa732a1}:'deletion'==_0x117bef&&(_0x34a754['isRemoved']={'userId':_0xa732a1})),0x0==_0x906670['length'])break;}return _0x154592;}['_refreshStartEndIndex'](_0x3fcc84){const _0x1494b3=new Map();for(let _0x99cf6c=0x0;_0x99cf6c<_0x3fcc84['length'];_0x99cf6c++)'text'===_0x3fcc84[_0x99cf6c]['type']?(_0x3fcc84[_0x99cf6c]['item']['startIndex']=_0x99cf6c,_0x3fcc84[_0x99cf6c]['item']['endIndex']=_0x99cf6c):('elementStart'===_0x3fcc84[_0x99cf6c]['type']?_0x3fcc84[_0x99cf6c]['item']['startIndex']=_0x99cf6c:'elementEnd'===_0x3fcc84[_0x99cf6c]['type']&&(_0x3fcc84[_0x99cf6c]['item']['endIndex']=_0x99cf6c),_0x1494b3['set'](_0x3fcc84[_0x99cf6c]['id'],_0x99cf6c));for(const _0xf895dd of _0x1494b3['values']())'elementStart'===_0x3fcc84[_0xf895dd]['type']?_0x3fcc84[_0xf895dd]['item']['endIndex']=_0x1494b3['get'](_0x3fcc84[_0xf895dd]['pairId']):'elementEnd'===_0x3fcc84[_0xf895dd]['type']&&(_0x3fcc84[_0xf895dd]['item']['startIndex']=_0x1494b3['get'](_0x3fcc84[_0xf895dd]['pairId']));}['_processTape'](_0x1cfae3){for(let _0x21c22b=0x0;_0x21c22b<_0x1cfae3['length'];_0x21c22b++){if('elementStart'===_0x1cfae3[_0x21c22b]['type'])_0x1cfae3[_0x21c22b]['item']['startIndex']=_0x21c22b;else{if('elementEnd'===_0x1cfae3[_0x21c22b]['type']){_0x1cfae3[_0x21c22b]['item']['endIndex']=_0x21c22b;const _0x100757=_0x1cfae3[_0x21c22b]['item']['startIndex'];_0x1cfae3[_0x100757]['pairId']=_0x1cfae3[_0x21c22b]['id'],_0x1cfae3[_0x21c22b]['pairId']=_0x1cfae3[_0x100757]['id'];}else _0x1cfae3[_0x21c22b]['item']['startIndex']=_0x21c22b,_0x1cfae3[_0x21c22b]['item']['endIndex']=_0x21c22b,_0x1cfae3[_0x21c22b]['pairId']=null;}_0x1cfae3[_0x21c22b]['markersStart']||(_0x1cfae3[_0x21c22b]['markersStart']=[],_0x1cfae3[_0x21c22b]['markersEnd']=[]);}}['_markInsertions'](_0x23f312,_0x13bd0b){const _0x3cdfe6=_0x23f312['filter'](_0x74884=>!_0x74884['isAdded']);for(let _0x411095=0x0;_0x411095<_0x13bd0b['length'];_0x411095++)_0x13bd0b[_0x411095]['isAdded']&&(_0x3cdfe6[_0x411095]['isAdded']=_0x13bd0b[_0x411095]['isAdded']);}['_getDiff'](_0x1ca18e,_0x4cf7b2=null){const _0x403871=this['repository']['getRevision'](_0x1ca18e),_0x18c546=_0x4cf7b2?this['repository']['getRevision'](_0x4cf7b2):null,_0x2bb055=this['_getRevisionsRange'](_0x403871,_0x18c546),_0x11bb55=_0x2bb055[_0x2bb055['length']-0x1],_0x38fd22=new Map(),_0x14e32f={'model':{},'attributes':{},'changes':[]},_0x2cb2bf=new Set(),_0x260b71=new Map();for(let _0x3a7371=_0x2bb055['length']-0x1;_0x3a7371>=0x0;_0x3a7371--){const _0x371223=_0x2bb055[_0x3a7371];for(const _0x16c27d of Object['keys'](_0x371223['diffData']))if(_0x371223['diffData'][_0x16c27d]['attachChange']){const _0x56a724=_0x371223['diffData'][_0x16c27d]['attachChange'];_0x56a724['isAttached']?(_0x2cb2bf['add'](_0x16c27d),_0x260b71['has'](_0x16c27d)&&_0x260b71['get'](_0x16c27d)['userId']==_0x56a724['userId']?_0x260b71['delete'](_0x16c27d):_0x260b71['set'](_0x16c27d,_0x56a724)):_0x260b71['has'](_0x16c27d)?(_0x2cb2bf['delete'](_0x16c27d),_0x260b71['delete'](_0x16c27d)):(_0x2cb2bf['add'](_0x16c27d),_0x260b71['set'](_0x16c27d,_0x56a724));}else _0x2cb2bf['add'](_0x16c27d);}for(const _0x6540cb of _0x2cb2bf){const _0x453ff1=_0x260b71['has'](_0x6540cb)&&!_0x260b71['get'](_0x6540cb)['isAttached'];let _0x372c88=_0x453ff1?_0x2bb055['length']-0x1:0x0;const _0x5dbfe2=_0x453ff1?-0x1:0x1;for(;_0x2bb055[_0x372c88];){const _0x366df0=_0x2bb055[_0x372c88];if(_0x366df0['diffData'][_0x6540cb]){const _0x517f65=_0x453ff1?_0x366df0['diffData'][_0x6540cb]['attributesBefore']:_0x366df0['diffData'][_0x6540cb]['attributesAfter'];_0x14e32f['attributes'][_0x6540cb]=_0x517f65?_0x35c6b3(_0x517f65):{};break;}_0x372c88+=_0x5dbfe2;}}for(const _0x47bd5b of _0x2bb055){_0x47bd5b['model']={};for(const _0x25535d of _0x47bd5b['authors'])_0x38fd22['set'](_0x25535d['id'],_0x25535d);for(const _0x37cac8 of _0x2cb2bf){const _0x5d2d55=_0x47bd5b['diffData'][_0x37cac8]?_0x47bd5b['diffData'][_0x37cac8]['insertions']:'[]',_0x391380=_0x47bd5b['diffData'][_0x37cac8]?_0x47bd5b['diffData'][_0x37cac8]['deletions']:'[]';_0x47bd5b['model'][_0x37cac8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5d2d55),'deletions':this['_utils']['_makeModelFromViewString'](_0x391380)};}}for(const _0x3e341a of _0x2cb2bf){let _0x2e6fe0=null,_0x589583=0x0;const _0x40dd2d=new Map(Array['from'](_0x403871['model'][_0x3e341a]['insertions']['markers'])['filter'](([_0xa757cf])=>!_0xa757cf['startsWith']('revision:')));let _0x2595b1=0x0;for(const _0x549f77 of _0x2bb055){const _0x598c21=this['_makeTape'](_0x549f77['model'][_0x3e341a]['insertions']);_0x549f77==_0x403871?(_0x2e6fe0=_0x598c21,_0x589583=_0x2e6fe0['length'],_0x2e6fe0['forEach'](_0x2c9813=>{_0x2c9813['id']=_0x2595b1++;}),this['_processTape'](_0x2e6fe0)):this['_markInsertions'](_0x2e6fe0,_0x598c21);const _0x302166=_0x2e6fe0['filter'](_0x1c4cba=>!_0x1c4cba['isAdded'])['map'](_0x41b031=>_0x41b031['id']);let _0xa09986=0x0;const _0x105da0=this['_makeTape'](_0x549f77['model'][_0x3e341a]['deletions']);_0x105da0['forEach'](_0x5a870b=>{_0x5a870b['isRemoved']?_0x5a870b['id']=_0x589583++:_0x5a870b['id']=_0x302166[_0xa09986++];}),this['_processTape'](_0x105da0),this['_setDistance'](_0x2e6fe0,'isAdded'),this['_setDistance'](_0x105da0,'isRemoved'),_0x549f77==_0x403871&&this['_markMarkers'](_0x2e6fe0,_0x40dd2d),_0x2e6fe0=this['_joinTapes'](_0x2e6fe0,_0x105da0),this['_refreshStartEndIndex'](_0x2e6fe0),this['_setDistance'](_0x2e6fe0,'isRemoved');}_0x2e6fe0=_0x2e6fe0['filter'](_0x1ed15d=>!(_0x1ed15d['isAdded']&&_0x1ed15d['isRemoved']));const _0x153920=new Map(_0x11bb55['model'][_0x3e341a]['deletions']['markers']),_0x28e44c=new Set(_0x40dd2d['keys']());for(const _0x1b6ec0 of _0x153920['keys']())_0x28e44c['delete'](_0x1b6ec0);this['_markSuggestions'](_0x2e6fe0,_0x28e44c),this['_fixObsoleteTags'](_0x2e6fe0),_0x2e6fe0=this['_removeMissingPairs'](_0x2e6fe0),_0x2e6fe0=this['_markMismatchedRemovedTags'](_0x2e6fe0),_0x2e6fe0=this['_removeUnsupportedChanges'](_0x2e6fe0);const {root:_0x3e3ba3,changes:_0xe27b42}=this['_makeModelFromTape'](_0x2e6fe0,_0x38fd22,_0x3e341a);_0x14e32f['model'][_0x3e341a]=_0x3e3ba3;const _0x6355b7=_0x260b71['get'](_0x3e341a);if(_0x6355b7){const _0xf06830=_0x38fd22['get'](_0x6355b7['userId']),_0x5312f9=new G({'author':_0xf06830,'type':_0x6355b7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3e341a});_0xe27b42['unshift'](_0x5312f9),_0x14e32f['attributes'][_0x3e341a]['revisionHistoryAttachChange']=_0x5312f9['id'];}_0x14e32f['changes']=_0x14e32f['changes']['concat'](_0xe27b42);}return _0x14e32f;}['_markMarkers'](_0x59becb,_0x1a5114){for(let _0x5056dc=0x0;_0x5056dc<_0x59becb['length'];_0x5056dc++)for(const [_0x1a4232,_0x34f1f0]of _0x1a5114)!_0x34f1f0['isCollapsed']&&_0x34f1f0['start']['isEqual'](_0x59becb[_0x5056dc]['previousPosition'])&&_0x59becb[_0x5056dc]['markersStart']['push'](_0x1a4232),_0x34f1f0['end']['isEqual'](_0x59becb[_0x5056dc]['nextPosition'])&&_0x59becb[_0x5056dc]['markersEnd']['push'](_0x1a4232);}['_joinTapes'](_0x4b926b,_0x1bd1a9){let _0x3a22a9=[],_0x51dc73=0x0,_0x3c7092=0x0;for(;_0x51dc73<_0x4b926b['length']||_0x3c7092<_0x1bd1a9['length'];){const _0xee60c4=_0x4b926b[_0x51dc73]||{},_0x290158=_0x1bd1a9[_0x3c7092]||{};if(_0xee60c4['id']==_0x290158['id'])_0x51dc73++,_0x3c7092++,_0x3a22a9['push'](_0xee60c4);else{if(_0x290158['isRemoved']&&_0xee60c4['isAdded']){const {commonTape:_0xe2967b,iEnd:_0x1cb9c7,jEnd:_0x3823cf}=this['_threeWayMerge'](_0x4b926b,_0x51dc73,_0x1bd1a9,_0x3c7092);_0x3a22a9=_0x3a22a9['concat'](_0xe2967b),_0x51dc73=_0x1cb9c7,_0x3c7092=_0x3823cf;}else _0x290158['isRemoved']?(_0x3c7092++,_0x3a22a9['push'](_0x290158)):(_0x51dc73++,_0x3a22a9['push'](_0xee60c4));}}return _0x3a22a9;}['_markSuggestions'](_0x254503,_0x45e20b){const _0x36a31c=[];for(let _0x3f10e7=0x0;_0x3f10e7<_0x254503['length'];_0x3f10e7++){for(let _0xc8366e=0x0;_0xc8366e<_0x254503[_0x3f10e7]['markersStart']['length'];_0xc8366e++){const _0x3d0147=_0x254503[_0x3f10e7]['markersStart'][_0xc8366e];if(!_0x45e20b['has'](_0x3d0147))continue;const {group:_0x26882f,type:_0x2ac7a1,authorId:_0x31fe99}=_0x4242ea(_0x3d0147);'revision-suggestion'!=_0x26882f||'insertion'!=_0x2ac7a1&&'deletion'!=_0x2ac7a1||(_0x36a31c['unshift']({'type':_0x2ac7a1,'name':_0x3d0147,'userId':_0x31fe99}),_0x254503[_0x3f10e7]['markersStart']['splice'](_0xc8366e,0x1),_0xc8366e--);}_0x23e2c5(_0x254503[_0x3f10e7]);for(let _0x28167e=0x0;_0x28167e<_0x254503[_0x3f10e7]['markersEnd']['length'];_0x28167e++){const _0x4987a5=_0x254503[_0x3f10e7]['markersEnd'][_0x28167e];if(!_0x45e20b['has'](_0x4987a5))continue;const {group:_0x2f10ec,type:_0x985935}=_0x4242ea(_0x4987a5);if('revision-suggestion'!=_0x2f10ec||'insertion'!=_0x985935&&'deletion'!=_0x985935)continue;_0x254503[_0x3f10e7]['markersEnd']['splice'](_0x28167e,0x1),_0x28167e--;const _0x5306ec=_0x36a31c['findIndex'](_0x1f304b=>_0x1f304b['name']==_0x4987a5);_0x5306ec>-0x1&&_0x36a31c['splice'](_0x5306ec,0x1);}}function _0x4242ea(_0x1ba324){const _0x1b6094=_0x1ba324['split'](':');return{'group':_0x1b6094[0x0],'type':_0x1b6094[0x1],'subType':_0x1b6094['length']>=0x5?_0x1b6094[0x2]:null,'id':_0x1b6094['length']<0x5?_0x1b6094[0x2]:_0x1b6094[0x3],'authorId':_0x1b6094['length']<0x5?_0x1b6094[0x3]:_0x1b6094[0x4],'markerCount':0x6==_0x1b6094['length']?_0x1b6094[0x5]:null};}function _0x23e2c5(_0x56c756){for(let _0x147b37=0x0;_0x147b37<_0x36a31c['length'];_0x147b37++){if(_0x56c756['isAdded']&&'insertion'==_0x36a31c[_0x147b37]['type']&&_0x56c756['isAdded']['userId']==_0x36a31c[_0x147b37]['userId'])return _0x56c756['isAddSuggestion']=_0x36a31c[_0x147b37],void delete _0x56c756['isAdded'];if(!_0x56c756['isAdded']&&!_0x56c756['isRemoved']&&'deletion'==_0x36a31c[_0x147b37]['type'])return void(_0x56c756['isRemoveSuggestion']=_0x36a31c[_0x147b37]);}}}['_setDistance'](_0x8bc92,_0x1194a3){let _0x5ee2bf=0x0,_0x5db0ab=!0x1;const _0x2efce4=new Map();for(const _0x3c1990 of _0x8bc92)_0x3c1990[_0x1194a3]?_0x5db0ab&&(_0x5ee2bf++,_0x5db0ab=!0x1):(_0x5ee2bf++,_0x5db0ab=!0x0),_0x2efce4['set'](_0x3c1990['id'],_0x5ee2bf);for(let _0x56dafb=0x0;_0x56dafb<_0x8bc92['length'];_0x56dafb++){if('isRemoved'==_0x1194a3&&_0x8bc92[_0x56dafb]['isAdded']||'isAdded'==_0x1194a3&&_0x8bc92[_0x56dafb]['isRemoved'])continue;if('text'==_0x8bc92[_0x56dafb]['type']){_0x8bc92[_0x56dafb]['distance']=0x0;continue;}const _0x3c38b4=_0x2efce4['get'](_0x8bc92[_0x56dafb]['pairId']),_0x86c8d5=_0x2efce4['get'](_0x8bc92[_0x56dafb]['id']);_0x8bc92[_0x56dafb]['distance']=_0x3c38b4-_0x86c8d5;}}['_getRevisionsRange'](_0x3ab56b,_0x41a06d,_0x10e0ef=!0x1){const _0xb9946b=[];let _0x2fd908=this['repository']['getIndex'](_0x3ab56b),_0x18110b=this['repository']['getIndex'](_0x41a06d);for(-0x1==_0x18110b&&(_0x18110b=this['repository']['_revisions']['length'],_0x10e0ef=!0x1);_0x2fd908<_0x18110b;)_0xb9946b['push'](this['repository']['getRevision'](_0x2fd908)),_0x2fd908++;return _0x10e0ef&&_0xb9946b['push'](this['repository']['getRevision'](_0x2fd908)),_0xb9946b;}['_threeWayMerge'](_0x40749a,_0x1262a3,_0xa7cba1,_0x441922){const _0x5e98a6=this['editor']['model']['schema'];let _0x40cd0d=_0x1262a3;for(;_0x40749a[_0x40cd0d]&&_0x40749a[_0x40cd0d]['isAdded'];)_0x40cd0d++;let _0x285c78=_0x441922;for(;_0xa7cba1[_0x285c78]&&_0xa7cba1[_0x285c78]['isRemoved'];)_0x285c78++;_0x2ba15d(_0x40749a,_0x1262a3,_0x40cd0d),_0x2ba15d(_0xa7cba1,_0x441922,_0x285c78);const _0x142a08=_0xa7cba1['slice'](_0x441922,_0x285c78)['concat'](_0x40749a['slice'](_0x1262a3,_0x40cd0d));return _0x142a08['sort']((_0x10c1cf,_0x123f34)=>_0x10c1cf['side']!=_0x123f34['side']?_0x10c1cf['side']-_0x123f34['side']:_0x10c1cf['level']!=_0x123f34['level']?_0x10c1cf['level']-_0x123f34['level']:_0x10c1cf['distance']!=_0x123f34['distance']?_0x123f34['distance']-_0x10c1cf['distance']:!!_0x10c1cf['isAdded']!=!!_0x123f34['isAdded']?-0x1==_0x10c1cf['side']||0x0==_0x10c1cf['side']?_0x10c1cf['isAdded']?-0x1:0x1:_0x10c1cf['isAdded']?0x1:-0x1:_0x10c1cf['index']-_0x123f34['index']),{'commonTape':_0x142a08,'iEnd':_0x40cd0d,'jEnd':_0x285c78};function _0x2ba15d(_0x369027,_0x4e1857,_0x2e2829){let _0x40d948=-0x1,_0x1e1846=Number['POSITIVE_INFINITY'],_0x9dfe2b=!0x0;for(let _0x14c4f0=_0x4e1857;_0x14c4f0<_0x2e2829;_0x14c4f0++)if(_0x5e98a6['isInline'](_0x369027[_0x14c4f0]['item'])||(_0x9dfe2b=!0x1),_0x369027[_0x14c4f0]['item']['startIndex']<_0x4e1857&&(_0x40d948=_0x14c4f0),_0x369027[_0x14c4f0]['item']['endIndex']>=_0x2e2829){_0x1e1846=_0x14c4f0;break;}_0x9dfe2b&&(_0x40d948=_0x2e2829-0x1);for(let _0x5e38a1=_0x4e1857;_0x5e38a1<_0x2e2829;_0x5e38a1++)_0x369027[_0x5e38a1]['side']=_0x5e38a1<=_0x40d948?-0x1:_0x5e38a1<_0x1e1846?0x0:0x1,_0x369027[_0x5e38a1]['index']=_0x5e38a1;let _0x3e9289=0x0;for(let _0x46d54b=_0x4e1857;_0x46d54b<=_0x40d948;_0x46d54b++)0x0==_0x369027[_0x46d54b]['distance']?_0x369027[_0x46d54b]['level']=_0x3e9289:(_0x3e9289++,_0x369027[_0x46d54b]['level']=_0x3e9289,_0x3e9289++);for(let _0x4d8c7a=_0x4e1857;_0x4d8c7a<_0x2e2829;_0x4d8c7a++)0x0==_0x369027[_0x4d8c7a]['side']&&(_0x369027[_0x4d8c7a]['level']=_0x3e9289);_0x3e9289=0x0;for(let _0x235ea9=_0x2e2829-0x1;_0x235ea9>=_0x1e1846;_0x235ea9--)0x0==_0x369027[_0x235ea9]['distance']?_0x369027[_0x235ea9]['level']=_0x3e9289:(_0x3e9289--,_0x369027[_0x235ea9]['level']=_0x3e9289,_0x3e9289--);}}['_fixObsoleteTags'](_0x59f159){const _0x34790e=new Map(),_0x3134ac=this['editor']['model']['schema'];for(let _0x5aabf4=0x1;_0x5aabf4<_0x59f159['length'];_0x5aabf4++){let _0x4bf6c5,_0x71a473,_0x10c9c4;const _0x1ec680=_0x59f159[_0x5aabf4],_0x316cab=_0x59f159[_0x5aabf4-0x1];if('text'==_0x1ec680['type'])continue;if(_0x1ec680['type']!=_0x316cab['type'])continue;if(!_0x3134ac['isBlock'](_0x316cab['item'])||_0x3134ac['isLimit'](_0x316cab['item']))continue;if(!_0x3134ac['isBlock'](_0x1ec680['item'])||_0x3134ac['isLimit'](_0x1ec680['item']))continue;if((_0x59f159[_0x5aabf4]['isAdded']||_0x59f159[_0x5aabf4]['isAddSuggestion'])&&_0x59f159[_0x5aabf4-0x1]['isRemoved'])_0x4bf6c5=_0x59f159[_0x5aabf4],_0x71a473=_0x59f159[_0x5aabf4-0x1],_0x10c9c4=_0x5aabf4-0x1;else{if(!_0x59f159[_0x5aabf4]['isRemoved']||!_0x59f159[_0x5aabf4-0x1]['isAdded']&&!_0x59f159[_0x5aabf4-0x1]['isAddSuggestion'])continue;_0x4bf6c5=_0x59f159[_0x5aabf4-0x1],_0x71a473=_0x59f159[_0x5aabf4],_0x10c9c4=_0x5aabf4;}const _0x55e50a=_0x4bf6c5['level']==_0x71a473['level'],_0x408ba2=Math['abs'](_0x4bf6c5['level'])<Math['abs'](_0x71a473['level'])&&0x0==_0x71a473['distance'];(_0x55e50a||_0x408ba2)&&(_0x34790e['set'](_0x71a473['id'],_0x4bf6c5['id']),_0x59f159['splice'](_0x10c9c4,0x1),_0x5aabf4--,_0x4bf6c5['isAdded']=!0x1);}for(let _0x3df553=0x0;_0x3df553<_0x59f159['length'];_0x3df553++)_0x34790e['has'](_0x59f159[_0x3df553]['pairId'])&&(_0x59f159[_0x3df553]['pairId']=_0x34790e['get'](_0x59f159[_0x3df553]['pairId']));}['_removeMissingPairs'](_0x343ac4){const _0x2b5f31=new Set(_0x343ac4['map'](_0x502ae8=>_0x502ae8['id']));for(let _0x56f520=0x0;_0x56f520<_0x343ac4['length'];_0x56f520++)_0x2b5f31['has'](_0x343ac4[_0x56f520]['pairId'])||0x0==_0x343ac4[_0x56f520]['distance']||(_0x343ac4[_0x56f520]['isIncorrect']=!0x0);return _0x343ac4['filter'](_0x30d4dd=>!_0x30d4dd['isIncorrect']);}['_markMismatchedRemovedTags'](_0x32d736){const _0x36462c=new Set();for(let _0x2b20a4=0x0;_0x2b20a4<_0x32d736['length'];_0x2b20a4++){if(_0x36462c['has'](_0x32d736[_0x2b20a4]['id'])&&_0x32d736[_0x2b20a4]['isRemoved']&&(_0x32d736[_0x2b20a4]['isIncorrect']=!0x0),_0x32d736[_0x2b20a4]['isIncorrect'])continue;if(0x0==_0x32d736[_0x2b20a4]['distance'])continue;if('elementStart'!=_0x32d736[_0x2b20a4]['type'])continue;if(null==_0x32d736[_0x2b20a4]['pairId'])continue;let _0x4aa38b=_0x2b20a4+0x1,_0x7ae692=0x0;for(;_0x32d736[_0x4aa38b]['id']!=_0x32d736[_0x2b20a4]['pairId'];)'elementStart'==_0x32d736[_0x4aa38b]['type']?_0x7ae692++:'elementEnd'==_0x32d736[_0x4aa38b]['type']&&_0x7ae692--,_0x4aa38b++;if(0x0!=_0x7ae692){if(_0x32d736[_0x2b20a4]['isRemoved'])_0x32d736[_0x2b20a4]['isIncorrect']=!0x0;else{for(;_0x4aa38b!=_0x2b20a4;)_0x32d736[_0x4aa38b]['isRemoved']&&0x0!=_0x32d736[_0x4aa38b]['distance']&&(_0x32d736[_0x4aa38b]['isIncorrect']=!0x0,_0x36462c['add'](_0x32d736[_0x4aa38b]['pairId'])),_0x4aa38b--;}}}return _0x32d736['filter'](_0x2c20b9=>!_0x2c20b9['isIncorrect']);}['_removeUnsupportedChanges'](_0x2f093f){const _0x3ea4ae=this['editor']['model']['schema'];for(let _0x4c6b63=0x0;_0x4c6b63<_0x2f093f['length'];_0x4c6b63++){if(!(_0x2f093f[_0x4c6b63]['isAdded']||_0x2f093f[_0x4c6b63]['isAddSuggestion']||_0x2f093f[_0x4c6b63]['isRemoved']||_0x2f093f[_0x4c6b63]['isRemoveSuggestion']))continue;if(0x0==_0x2f093f[_0x4c6b63]['distance'])continue;const _0x1ced80=_0x2f093f[_0x4c6b63]['item'];_0x3ea4ae['isBlock'](_0x1ced80)||_0x3ea4ae['isLimit'](_0x1ced80)||(_0x2f093f[_0x4c6b63]['isAdded']&&delete _0x2f093f[_0x4c6b63]['isAdded'],_0x2f093f[_0x4c6b63]['isAddSuggestion']&&delete _0x2f093f[_0x4c6b63]['isAddSuggestion'],_0x2f093f[_0x4c6b63]['isRemoveSuggestion']&&delete _0x2f093f[_0x4c6b63]['isRemoveSuggestion'],_0x2f093f[_0x4c6b63]['isRemoved']&&(_0x2f093f[_0x4c6b63]['isIncorrect']=!0x0));}return _0x2f093f['filter'](_0x551f85=>!_0x551f85['isIncorrect']);}['_makeModelFromTape'](_0x4d73ff,_0x3e3ca,_0x368574){const _0x1cd069=new _0x4e6165(),_0x66f333=[],_0x17f6b9=new Map(),_0x4ca1ae=this['editor']['model'],_0x71bd76=_0x4ca1ae['schema'],_0x1b2f40=[_0x1cd069],_0x3f46af={},_0x2b77e6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x364627=null;const _0xb4c0ad=[0x0];for(let _0x19ed26=0x0;_0x19ed26<_0x4d73ff['length'];_0x19ed26++)if('elementStart'===_0x4d73ff[_0x19ed26]['type']){_0x4d73ff[_0x19ed26]['previousPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad);const _0x3650e2=new _0x558088(_0x4d73ff[_0x19ed26]['item']['name'],_0x4d73ff[_0x19ed26]['item']['getAttributes']());_0x1b2f40[0x0]['_appendChild'](_0x3650e2),_0xb4c0ad['push'](0x0),_0x1b2f40['unshift'](_0x3650e2),_0x4d73ff[_0x19ed26]['nextPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad);}else'elementEnd'===_0x4d73ff[_0x19ed26]['type']?(_0x1b2f40['shift'](),_0x4d73ff[_0x19ed26]['previousPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad),_0xb4c0ad['pop'](),_0xb4c0ad[_0xb4c0ad['length']-0x1]++,_0x4d73ff[_0x19ed26]['nextPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad)):(_0x4d73ff[_0x19ed26]['previousPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad),_0x364627?_0x364627['_data']+=_0x4d73ff[_0x19ed26]['item']['data']:_0x364627=new _0x3a21b8(_0x4d73ff[_0x19ed26]['item']['data'],_0x4d73ff[_0x19ed26]['item']['getAttributes']()),_0x4d73ff[_0x19ed26+0x1]&&'text'===_0x4d73ff[_0x19ed26+0x1]['type']&&_0xab67c8(_0x364627,_0x4d73ff[_0x19ed26+0x1]['item'])||(_0x1b2f40[0x0]['_appendChild'](_0x364627),_0x364627=null),_0xb4c0ad[_0xb4c0ad['length']-0x1]+=_0x4d73ff[_0x19ed26]['item']['offsetSize'],_0x4d73ff[_0x19ed26]['nextPosition']=_0x4ca1ae['createPositionFromPath'](_0x1cd069,_0xb4c0ad));for(let _0x450764=0x0;_0x450764<_0x4d73ff['length'];_0x450764++){const _0x45e632=_0x4d73ff[_0x450764]['previousPosition'],_0x4750cb=_0x4d73ff[_0x450764]['nextPosition'];for(const _0x1c7833 of _0x4d73ff[_0x450764]['markersStart'])_0x17f6b9['set'](_0x1c7833,{'start':_0x45e632,'end':null});_0x26eebd('isRemoveSuggestion',_0x450764,_0x45e632,_0x4750cb),_0x26eebd('isAddSuggestion',_0x450764,_0x45e632,_0x4750cb),_0x26eebd('isRemoved',_0x450764,_0x45e632,_0x4750cb),_0x26eebd('isAdded',_0x450764,_0x45e632,_0x4750cb);for(const _0x170237 of _0x4d73ff[_0x450764]['markersEnd']){const _0x1f2427=_0x17f6b9['get'](_0x170237);_0x1f2427?_0x1f2427['end']=_0x4750cb:_0x17f6b9['set'](_0x170237,{'start':_0x4750cb,'end':_0x4750cb});}}for(const [_0x2b249b,_0x539d51]of _0x17f6b9){const _0x2efe64=this['editor']['model']['createRange'](_0x539d51['start'],_0x539d51['end']);_0x1cd069['markers']['set'](_0x2b249b,_0x2efe64);}return _0x66f333['sort']((_0x3d13f4,_0x18c1c9)=>{const _0x1ff8fb=_0x1cd069['markers']['get']('revision:'+_0x3d13f4['id']),_0x3e192e=_0x1cd069['markers']['get']('revision:'+_0x18c1c9['id']);return _0x1ff8fb['start']['isBefore'](_0x3e192e['start'])?-0x1:_0x1ff8fb['start']['isAfter'](_0x3e192e['start'])?0x1:_0x1ff8fb['end']['isBefore'](_0x3e192e['end'])?-0x1:_0x1ff8fb['end']['isAfter'](_0x3e192e['end'])?0x1:'add'===_0x3d13f4['type']?-0x1:0x1;}),{'root':_0x1cd069,'changes':_0x66f333};function _0x26eebd(_0x2796b7,_0x571b88,_0x38d645,_0x278df8){const _0x40e348=!!_0x4d73ff[_0x571b88][_0x2796b7],_0x319c5d=_0x40e348?_0x4d73ff[_0x571b88][_0x2796b7]['userId']:null,_0x35ea3a=_0x571b88===_0x4d73ff['length']-0x1,_0x2fecd7=_0x2b77e6[_0x2796b7][0x0],_0x3e8657=_0x71bd76['isObject'](_0x4d73ff[_0x571b88]['item']);!_0x3f46af[_0x2796b7]&&_0x40e348?_0x3f46af[_0x2796b7]={'start':_0x38d645,'tapeItem':_0x4d73ff[_0x571b88],'userId':_0x319c5d,'type':_0x2796b7}:_0x3f46af[_0x2796b7]&&!_0x40e348?(_0x3f46af[_0x2796b7]['end']=_0x38d645,_0x150477(_0x3f46af[_0x2796b7]),_0x3f46af[_0x2796b7]=null):_0x3f46af[_0x2796b7]&&_0x40e348&&_0x3f46af[_0x2796b7]['userId']!==_0x319c5d&&(_0x3f46af[_0x2796b7]['end']=_0x38d645,_0x2fecd7&&_0x2fecd7['userId']===_0x3f46af[_0x2796b7]['userId']||_0x150477(_0x3f46af[_0x2796b7]),_0x3f46af[_0x2796b7]={'start':_0x38d645,'tapeItem':_0x4d73ff[_0x571b88],'userId':_0x319c5d,'type':_0x2796b7}),_0x3f46af[_0x2796b7]&&_0x3e8657&&('elementStart'!==_0x4d73ff[_0x571b88]['type']||_0x2fecd7&&_0x2fecd7['userId']===_0x319c5d||_0x2b77e6[_0x2796b7]['unshift']({'userId':_0x319c5d,'object':_0x4d73ff[_0x571b88]['item'],'change':_0x3f46af[_0x2796b7]}),'elementEnd'===_0x4d73ff[_0x571b88]['type']&&_0x2fecd7&&_0x2fecd7['object']===_0x4d73ff[_0x571b88]['item']&&(_0x2b77e6[_0x2796b7]['shift'](),_0x3f46af[_0x2796b7]=_0x2fecd7['change'])),_0x3f46af[_0x2796b7]&&_0x35ea3a&&(_0x3f46af[_0x2796b7]['end']=_0x278df8,_0x150477(_0x3f46af[_0x2796b7]),_0x3f46af[_0x2796b7]=null);}function _0x150477({start:_0x54170f,end:_0x13bdeb,tapeItem:_0x285c14,userId:_0x3dbb08,type:_0x3cd402}){const _0x476407=_0x285c14['item'],_0x250e3=_0x4ca1ae['schema']['isBlock'](_0x476407)&&!_0x4ca1ae['schema']['isLimit'](_0x476407),_0x984f4e=_0x54170f['nodeAfter']==_0x13bdeb['parent']&&_0x13bdeb['isAtStart'];if(_0x250e3&&_0x984f4e)return;const _0x3e4e99=_0x4ca1ae['createRange'](_0x54170f,_0x13bdeb),_0x1325df=_0x3e3ca['get'](_0x3dbb08),_0x2147e3=new G({'author':_0x1325df,'type':'isAdded'==_0x3cd402||'isAddSuggestion'==_0x3cd402?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3cd402||'isRemoveSuggestion'==_0x3cd402},'createdAt':new Date(),'rootName':_0x368574});_0x66f333['push'](_0x2147e3),_0x1cd069['markers']['set']('revision:'+_0x2147e3['id'],_0x3e4e99);}function _0xab67c8(_0x3d63db,_0x2b42ca){const _0x40cbb1=_0x3d63db['getAttributes'](),_0x29c59e=_0x2b42ca['getAttributes']();for(const _0x3d3bd7 of _0x40cbb1){if(_0x3d3bd7[0x1]!==_0x2b42ca['getAttribute'](_0x3d3bd7[0x0]))return!0x1;_0x29c59e['next']();}return _0x29c59e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x10272a=>{const _0x588f5e=_0x10272a['markerName']['split'](':')[0x1],_0x54ad1b=this['_getChangeFromId'](_0x588f5e);if(!_0x54ad1b)return null;const _0x2987c8='add'==_0x54ad1b['type']?'insertion':'deletion',_0x5f38bd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2987c8];return _0x54ad1b['data']['isSuggestion']&&_0x5f38bd['push']('ck-suggestion-marker-'+_0x2987c8+'-new'),this['activeChange']==_0x54ad1b&&_0x5f38bd['push']('ck-suggestion-marker--active'),{'classes':_0x5f38bd,'attributes':{'data-change-id':_0x588f5e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x33b555=>{_0x33b555['on']('element:pre',(_0x291916,_0x511a6a,_0x30f06f)=>{const _0x453354=_0x511a6a['viewItem']['getChild'](0x0);if(!_0x453354||!_0x453354['is']('element','code'))return;if(!_0x30f06f['consumable']['consume'](_0x453354,{'attributes':['vid_start','vid_end']}))return;const _0x30d268=_0x511a6a['modelRange']['start']['nodeAfter'];_0x30f06f['writer']['setAttribute']('vid_start',_0x453354['getAttribute']('vid_start'),_0x30d268),_0x30f06f['writer']['setAttribute']('vid_end',_0x453354['getAttribute']('vid_end'),_0x30d268);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4c4286=>{_0x4c4286['on']('element',(_0x2ada1f,_0xd5a204,_0xd32c7d)=>{if(!_0xd32c7d['consumable']['consume'](_0xd5a204['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xd5a204['modelRange']['isCollapsed'])return;const _0x1777fb=_0xd5a204['modelRange']['start']['nodeAfter'];_0x1777fb['hasAttribute']('vid_start')||_0x1777fb['hasAttribute']('vid')||(_0xd32c7d['writer']['setAttribute']('vid_start',_0xd5a204['viewItem']['getAttribute']('vid_start'),_0x1777fb),_0xd32c7d['writer']['setAttribute']('vid_end',_0xd5a204['viewItem']['getAttribute']('vid_end'),_0x1777fb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2fedf3=>_0x2fedf3['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4b9575,[,_0x42efb2])=>{['vid_start','vid_end','vid']['includes'](_0x42efb2)&&(_0x4b9575['return']=!0x0,_0x4b9575['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4eb2dc=>{_0x4eb2dc['on']('attribute:vid',(_0x2adb75,_0x124472,_0x521491)=>{if('\x20'!=_0x124472['item']['data']||_0x124472['item']['parent']['maxOffset']>0x1)return;if(!_0x521491['consumable']['consume'](_0x124472['item'],_0x2adb75['name']))return;const _0x5f0227=_0x521491['writer'],_0xcecea5=_0x521491['mapper']['toViewRange'](_0x124472['range']);_0x5f0227['wrap'](_0xcecea5,_0x5f0227['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x418639){const _0x2f8617=_0x418639['plugins']['get']('RevisionViewer');return(_0x25c78b,_0x3c268c,_0x3565f9)=>{const _0x4d1c33=_0x3c268c['markerName']['split'](':')[0x1],_0xc39d99=_0x2f8617['_getChangeFromId'](_0x4d1c33);if(!_0xc39d99)return null;const _0x5de8a3='add'==_0xc39d99['type']?'split':'merge';if(!_0x3565f9['consumable']['test'](_0x3c268c['markerRange'],_0x25c78b['name']))return;const _0x336d69=_0x3c268c['markerRange']['getWalker'](),_0x3084a0=_0x3c268c['markerRange']['start'],_0x30df46=_0x418639['model']['schema'];let _0x47a40e=null,_0x2acb2f=null,_0x3cd8d3=!0x1,_0x1b6475=!0x1;for(const _0x1c0d68 of _0x336d69){const _0x333a77=_0x1c0d68['item'];_0x3cd8d3=_0x3cd8d3||_0x30df46['isContent'](_0x333a77);const _0x4504c3=_0x3565f9['mapper']['toViewElement'](_0x333a77);if(_0x4504c3&&_0x4504c3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c0d68['type']&&(_0x30df46['isBlock'](_0x333a77)&&!_0x30df46['isLimit'](_0x333a77)&&(_0x333a77['nextSibling']||_0x3084a0['isAtEnd']?_0x47a40e&&_0x47a40e['parent']==_0x333a77||(_0x47a40e=_0x333a77,_0x24a297(_0x1c0d68['previousPosition']),_0x1b6475=!0x0):_0x2acb2f=_0x2acb2f||_0x1c0d68['previousPosition']));}function _0x24a297(_0x40678d){const _0x4e524b=_0x3565f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5de8a3}),_0x56ddbc=_0x3565f9['mapper']['toViewPosition'](_0x40678d);_0xc39d99['data']['isSuggestion']&&_0x3565f9['writer']['addClass']('ck-suggestion-marker-'+_0x5de8a3+'-new',_0x4e524b),_0x2f8617['activeChange']==_0xc39d99&&_0x3565f9['writer']['addClass']('ck-suggestion-marker--active',_0x4e524b),_0x3565f9['writer']['insert'](_0x56ddbc,_0x4e524b),_0x3565f9['mapper']['bindElementToMarker'](_0x4e524b,_0x3c268c['markerName']);}_0x3cd8d3||_0x1b6475||!_0x2acb2f||_0x24a297(_0x2acb2f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x590cbd,_0xd3e7,_0x27e36f)=>{const _0x15bde9=_0x27e36f['mapper']['markerNameToElements'](_0xd3e7['markerName']);if(_0x15bde9){for(const _0x4600f3 of _0x15bde9)(_0x4600f3['hasClass']('ck-suggestion-marker-split')||_0x4600f3['hasClass']('ck-suggestion-marker-merge'))&&(_0x27e36f['mapper']['unbindElementFromMarkerName'](_0x4600f3,_0xd3e7['markerName']),_0x27e36f['writer']['remove'](_0x4600f3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x8c3b47,_0x39a83d,_0x47a67b)=>{const _0x4ce7e0=_0x39a83d['markerName']['split'](':')[0x1],_0x2cd879=this['_getChangeFromId'](_0x4ce7e0);if(!_0x2cd879)return null;const _0x411189='add'==_0x2cd879['type']?'split':'merge';if(_0x47a67b['consumable']['test'](_0x39a83d['markerRange'],_0x8c3b47['name']))for(const _0x3afbd7 of _0x39a83d['markerRange']['getItems']()){if(!_0x3afbd7['is']('element','softBreak'))continue;const _0xf12307=_0x47a67b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x411189}),_0x185cb1=_0x47a67b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3afbd7));_0x2cd879['data']['isSuggestion']&&_0x47a67b['writer']['addClass']('ck-suggestion-marker-'+_0x411189+'-new',_0xf12307),this['activeChange']==_0x2cd879&&_0x47a67b['writer']['addClass']('ck-suggestion-marker--active',_0xf12307),_0x47a67b['writer']['insert'](_0x185cb1,_0xf12307),_0x47a67b['mapper']['bindElementToMarker'](_0xf12307,_0x39a83d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x7cd485=>{for(const _0x20281e of this['editor']['model']['document']['getRootNames']()){const _0xbd183c=this['editor']['model']['document']['getRoot'](_0x20281e),_0x410cf6=this['editor']['editing']['view']['document']['getRoot'](_0x20281e);if(_0x410cf6){const _0x109381=_0xbd183c['getAttribute']('revisionHistoryAttachChange');if(_0x7cd485['removeAttribute']('data-change-id',_0x410cf6),_0x7cd485['removeClass']('ck-revision-history-root-add',_0x410cf6),_0x7cd485['removeClass']('ck-revision-history-root-remove',_0x410cf6),_0x7cd485['removeClass']('ck-revision-history-root--active',_0x410cf6),_0x109381){const _0x259b73=this['_getChangeFromId'](_0x109381);if(!_0x259b73)return null;_0x7cd485['setAttribute']('data-change-id',_0x109381,_0x410cf6),_0x7cd485['addClass']('ck-revision-history-root-'+_0x259b73['type'],_0x410cf6),this['activeChange']==_0x259b73&&_0x7cd485['addClass']('ck-revision-history-root--active',_0x410cf6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x9302e4=>'revision-comment:'+_0x9302e4,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4d16f1=>'revision-suggestion:'+_0x4d16f1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x112d0c=>({'name':'suggestion:'+_0x112d0c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x40db77=>{const _0x1e8932=_0x40db77['markerName']['split'](':')[0x1];return'insertion'!=_0x1e8932&&'deletion'!=_0x1e8932?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1e8932]};}}),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',(_0x277b17,_0x3a6366,_0x4f9d34)=>{const _0x5911d6=_0x4f9d34['mapper']['markerNameToElements'](_0x3a6366['markerName']);if(_0x5911d6){for(const _0x1de298 of _0x5911d6)_0x1de298['is']('uiElement')&&(_0x4f9d34['mapper']['unbindElementFromMarkerName'](_0x1de298,_0x3a6366['markerName']),_0x4f9d34['writer']['remove'](_0x1de298));}},{'priority':'high'});}['_getChangeFromId'](_0x2be30e){return this['_changeIdToChange']['get'](_0x2be30e);}['_getViewForChange'](_0x47c40d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x47c40d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x17851a,_0xf610d1,_0x48bd2d,_0x1a2bae)=>{_0x1a2bae&&this['_balloon']['remove'](_0x1a2bae),_0x48bd2d&&(this['_balloon']['add']({'view':_0x48bd2d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x199287=this['editor']['editing'],_0x3cf64d=this['_getChangeFromId'](_0x48bd2d['changeId']);let _0x33a6b1;if(_0x3cf64d['data']['isOnRoot']){const _0x93d878=_0x199287['view']['getDomRoot'](_0x3cf64d['rootName']);_0x33a6b1=Array['from'](_0x93d878['getClientRects']());}else{const _0x315ffa=this['editor']['model']['markers']['get']('revision:'+_0x48bd2d['changeId']);_0x33a6b1=Array['from'](_0x199287['mapper']['markerNameToElements'](_0x315ffa['name']))['map'](_0x4570d2=>_0x199287['view']['domConverter']['mapViewToDom'](_0x4570d2))['map'](_0x30833b=>Array['from'](_0x30833b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x33a6b1[0x0];return _0x33a6b1['find'](_0x5c45a8=>_0x5c45a8['top']-0x3<=this['_activeViewTarget']['y']&&_0x5c45a8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5c45a8['left']-0x3<=this['_activeViewTarget']['x']&&_0x5c45a8['right']+0x3>=this['_activeViewTarget']['x'])||_0x33a6b1[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xb998d4,_0x356769,_0x42c6a2,_0x10509c)=>{this['activeView']=_0x42c6a2?this['_getViewForChange'](_0x42c6a2):null,this['editor']['model']['change'](()=>{const _0x232b89=this['editor']['editing'];_0x10509c&&(_0x10509c['data']['isOnRoot']?_0x232b89['view']['change'](_0x4d4559=>{_0x4d4559['removeClass']('ck-revision-history-root--active',_0x232b89['view']['document']['getRoot'](_0x10509c['rootName']));}):_0x232b89['reconvertMarker']('revision:'+_0x10509c['id'])),_0x42c6a2&&(_0x42c6a2['data']['isOnRoot']?_0x232b89['view']['change'](_0x5e52b1=>{_0x5e52b1['addClass']('ck-revision-history-root--active',_0x232b89['view']['document']['getRoot'](_0x42c6a2['rootName']));}):_0x232b89['reconvertMarker']('revision:'+_0x42c6a2['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x52255c,_0x56f24d)=>{if(this['activeChange'])return;const _0x84ffa2=this['_findChangeIdFromDomTarget'](_0x56f24d['target']),_0x56b036=this['_changeIdToChange']['get'](_0x84ffa2);_0x56b036?(this['_activeViewTarget']={'x':_0x56f24d['domEvent']['x'],'y':_0x56f24d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x56b036)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5be1e9,_0x373d3b)=>{const _0xb63ef=this['_findChangeIdFromDomTarget'](_0x373d3b['target']),_0x2f733b=this['_changeIdToChange']['get'](_0xb63ef);_0x2f733b?(this['_activeViewTarget']={'x':_0x373d3b['domEvent']['x'],'y':_0x373d3b['domEvent']['y']},_0x2f733b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2f733b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4662de){do{const _0x14e06d=_0x4662de['getAttribute']('data-change-id');if(_0x14e06d)return _0x14e06d;_0x4662de=_0x4662de['parent'];}while(_0x4662de);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x23ce3b=>{for(const _0x55364d of this['editor']['model']['markers'])_0x23ce3b['removeMarker'](_0x55364d);});}}function Q(_0x68eebe,_0x14f2cc){return(_0x3058b6,_0x3030a1,_0x3e728f)=>{if(!_0x3e728f['consumable']['test'](_0x3030a1['markerRange'],_0x3058b6['name']))return;const _0x18bbe2=_0x3030a1['markerRange']['getWalker'](),_0x14e222=_0x3030a1['markerRange']['start'],_0x4dd134=_0x68eebe['model']['schema'];let _0x378858=null,_0x4ffbdc=null,_0x4ef577=!0x1,_0x2a32ba=!0x1;for(const _0x310677 of _0x18bbe2){const _0x201cb3=_0x310677['item'];_0x4ef577=_0x4ef577||_0x4dd134['isContent'](_0x201cb3);const _0x47dda7=_0x3e728f['mapper']['toViewElement'](_0x201cb3);if(_0x47dda7&&_0x47dda7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x310677['type']&&(_0x4dd134['isBlock'](_0x201cb3)&&!_0x4dd134['isLimit'](_0x201cb3)&&(_0x201cb3['nextSibling']||_0x14e222['isAtEnd']?_0x378858&&_0x378858['parent']==_0x201cb3||(_0x378858=_0x201cb3,_0xa61ac8(_0x310677['previousPosition']),_0x2a32ba=!0x0):_0x4ffbdc=_0x4ffbdc||_0x310677['previousPosition']));}function _0xa61ac8(_0x4e833a){const _0x2025d9=_0x3e728f['mapper']['toViewPosition'](_0x4e833a),_0x2b5b46=_0x3e728f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x14f2cc});_0x3e728f['writer']['insert'](_0x2025d9,_0x2b5b46),_0x3e728f['mapper']['bindElementToMarker'](_0x2b5b46,_0x3030a1['markerName']);}_0x4ef577||_0x2a32ba||!_0x4ffbdc||_0xa61ac8(_0x4ffbdc);};}class nt extends _0x3984cb{constructor(_0x575aeb){super(_0x575aeb);const _0x298901=_0x575aeb['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x298901,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x298901,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x39ec19=this['editor'],_0x3c9fdc=_0x39ec19['plugins']['get'](l),_0x5c863d=_0x3c9fdc['isReady']?_0x3c9fdc['diff']['newRevisionId']:null;_0x39ec19['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5c863d);}['refresh'](){const {isReady:_0x54b2a7,isEnabled:_0x5b7646,repository:_0x3825cb,diff:_0x1d9766}=this['editor']['plugins']['get'](l),_0x3e41fc=_0x1d9766&&_0x3825cb['getLaterVisibleRevision'](_0x1d9766['newRevisionId']);this['isEnabled']=_0x54b2a7&&_0x5b7646&&Boolean(_0x3e41fc);}}class ot extends _0x3984cb{['_step'];constructor(_0x44147e,{direction:_0x3395ed}){super(_0x44147e);const _0x42bd64=_0x44147e['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3395ed?0x1:-0x1,this['listenTo'](_0x42bd64,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42bd64,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x42bd64,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4b0541=this['editor'],_0x39e70d=_0x4b0541['plugins']['get'](l),{isNavigationMode:_0x24087b,currentChangeNumber:_0x4f5591}=_0x39e70d;let _0x4eadae;if(_0x39e70d['activeChange']=_0x24087b?_0x39e70d['diff']['changes']['get'](_0x4f5591+this['_step']):_0x39e70d['diff']['changes']['first'],_0x39e70d['activeChange']['data']['isOnRoot'])_0x4eadae=_0x4b0541['editing']['view']['getDomRoot'](_0x39e70d['activeChange']['rootName']);else{const _0x2986ce=_0x4b0541['model']['markers']['get']('revision:'+_0x39e70d['activeChange']['id']);_0x4eadae=_0xed2479(_0x4b0541['editing'],_0x2986ce);}_0x504a60({'target':_0x4eadae,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5b4c27,currentChangeNumber:_0x3e2e99,numberOfChanges:_0x674afc,isReady:_0x3042a0,isEnabled:_0x41b6fc}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x41b6fc&&_0x3042a0&&_0x674afc)&&(!_0x5b4c27||(0x1===this['_step']?_0x3e2e99<_0x674afc-0x1:_0x3e2e99>0x0));}}class Ri extends _0x4d9a94{constructor(_0x529df1){super(_0x529df1);const _0xf4364=this['bindTemplate'],_0x138be3=new _0x5d294a(_0x529df1),_0x13b6c5=new _0x5d294a(_0x529df1);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',(_0x29c7da,_0x2b8a87)=>_0x29c7da&&_0x2b8a87>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x593214,_0x282626,_0x209953,_0x100b83)=>{if(!_0x593214)return R(_0x529df1,'Loading...');if(!_0x209953)return R(_0x529df1,'No\x20changes');const _0x53ed3a=R(_0x529df1,'NUMBER_OF_CHANGES',_0x209953);return _0x100b83?R(_0x529df1,'X_OF_Y_CHANGES',[_0x282626+0x1,_0x209953]):_0x53ed3a;}),_0x138be3['set']({'label':R(_0x529df1,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x44217f}),_0x13b6c5['set']({'label':R(_0x529df1,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5de721}),_0x138be3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x13b6c5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x138be3['on']('execute',()=>this['fire']('execute','backward')),_0x13b6c5['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',_0xf4364['if']('_isStatusLabelVisible','ck-hidden',_0x31d727=>!_0x31d727)]},'children':[{'text':_0xf4364['to']('isNavigationMode',_0x400b50=>_0x400b50?R(_0x529df1,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x529df1,'Total')+':\x20')}]},{'text':_0xf4364['to']('_statusText')}]},new _0x1e354a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x138be3,_0x13b6c5]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x7a0156{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4f2ea1=this['editor']['editing']['view'];_0x4f2ea1['change'](_0x2d655a=>{for(const _0x497c3a of _0x4f2ea1['document']['roots'])_0x2d655a['addClass'](ge,_0x497c3a);});}['hide'](){const _0x3f095f=this['editor']['editing']['view'];_0x3f095f['change'](_0x1dd7b9=>{for(const _0xe03311 of _0x3f095f['document']['roots'])_0x1dd7b9['removeClass'](ge,_0xe03311);});}}class u extends _0x7a0156{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x55bc73=this['editor'],_0x20cdaa=_0x55bc73['plugins']['get'](l),_0x5285b9=_0x55bc73['plugins']['get'](ji);_0x55bc73['ui']['componentFactory']['add']('exitToEditing',_0x18a72f=>{const _0x2a9e58=new _0x5d294a(_0x18a72f);return _0x2a9e58['set']({'label':R(_0x18a72f,'Back\x20to\x20editing'),'icon':_0x115359,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2a9e58,'execute',()=>{_0x55bc73['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2a9e58;}),_0x55bc73['ui']['componentFactory']['add']('restoreRevision',_0x1c423d=>{const _0x423559=new _0x5d294a(_0x1c423d);return _0x423559['set']({'label':R(_0x1c423d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x423559['bind']('isEnabled')['to'](_0x55bc73['commands']['get']('restoreRevision')),this['listenTo'](_0x423559,'execute',()=>_0x55bc73['execute']('restoreRevision')),_0x423559;}),_0x55bc73['ui']['componentFactory']['add']('changesNavigation',_0x1c45a6=>{const _0x570d0d=new Ri(_0x1c45a6),_0x373a0d=_0x55bc73['commands']['get']('showPreviousChange'),_0x2618d6=_0x55bc73['commands']['get']('showNextChange');return _0x570d0d['bind']('isBackwardNavigationEnabled')['to'](_0x373a0d,'isEnabled'),_0x570d0d['bind']('isForwardNavigationEnabled')['to'](_0x2618d6,'isEnabled'),_0x570d0d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x20cdaa),this['listenTo'](_0x570d0d,'execute',(_0x2cdb2e,_0x5398c4)=>{_0x55bc73['execute']('forward'===_0x5398c4?'showNextChange':'showPreviousChange');}),_0x570d0d;}),_0x5285b9['show'](),_0x20cdaa['on']('change:isReady',(_0x152217,_0x1869fc,_0x21c07d)=>{_0x21c07d?_0x5285b9['hide']():_0x5285b9['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x549173,_0x1946bf){super(_0x549173,_0x1946bf);const _0x36a9b2=this['bindTemplate'];this['set']({'label':R(_0x549173,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x549173,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x36a9b2['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xa85e67=this['fieldView']['element'];this['_tooltipString']=_0xa85e67['scrollWidth']>_0xa85e67['clientWidth']&&_0xa85e67['value']||'';}}class vi extends _0x4d9a94{constructor(_0xda515b,_0x417395,_0x12eee9){super(_0xda515b);const _0x9e0740=new _0x15ef69();_0x9e0740['set']({'content':_0x3a25eb,'viewBox':'0\x200\x2011\x2010'});const _0x5ca4df=['ck','ck-revision-history-sidebar__revision-author'];_0x12eee9&&_0x5ca4df['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1998d3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0xda515b,_0x12eee9?'Revision\x20creator':'Revision\x20author')},'children':[_0x9e0740,_0x417395['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5ca4df},'children':_0x1998d3});}}function mi(_0x27daa4,_0x3861b9){const _0x54b7a1=_0x27daa4['bindTemplate'],_0x58f66e=_0x27daa4['locale'],_0x548876=_0x23a169(_0x58f66e);_0x548876['panelPosition']='sw';const _0x55aef6=function(_0x5e3b91,_0x438dd3){const _0x25183e=function(_0x1654c2,_0x758b8b){const _0x4ccf30=_0x1654c2['locale'],_0x4bb1ec={'Compare\x20against\x20selected':R(_0x4ccf30,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4ccf30,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4ccf30,'Restore\x20this\x20revision')};return _0x758b8b['map'](_0xe96e56=>{const _0x36e60b=_0x4bb1ec[_0xe96e56['name']];return _0x36e60b&&_0x36e60b!==_0xe96e56['name']&&(_0xe96e56['name']=_0x36e60b),_0xe96e56;});}(_0x5e3b91,_0x438dd3),_0x4376be=new _0x21221c();for(const _0x2010e8 of _0x25183e){const _0xf59d66={'type':'button','model':new to({'label':_0x2010e8['name'],'class':_0x2010e8['class'],'withText':!0x0,'role':'menuitem','_action':_0x2010e8['action']})};_0xf59d66['model']['bind']('isEnabled')['to'](_0x5e3b91,'isActionsDropdownOpen',_0x1c3557=>'function'!=typeof _0x2010e8['isEnabled']||(!_0x1c3557||_0x2010e8['isEnabled'](_0x5e3b91))),_0x4376be['add'](_0xf59d66);}return _0x4376be;}(_0x27daa4,_0x3861b9);return _0x27daa4['bind']('isActionsDropdownOpen')['to'](_0x548876,'isOpen'),_0x548876['buttonView']['set']({'label':R(_0x58f66e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x380e26}),_0x548876['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x54b7a1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x54b7a1['to'](_0x16b1f1=>_0x16b1f1['stopPropagation']())}}),_0x548876['on']('execute',_0x3f645c=>{_0x27daa4['isReady']&&'function'==typeof _0x3f645c['source']['_action']&&_0x3f645c['source']['_action'](_0x27daa4);}),_0x25429d(_0x548876,_0x55aef6,{'role':'menu'}),_0x548876['listenTo'](_0x27daa4,'change:isActionsDropdownOpen',(_0xe4cad,_0x186b6a,_0xa02c3)=>{if(_0xa02c3)for(const _0x455d21 of _0x548876['listView']['items']){const _0x5c18f7=_0x455d21['children']['first'],_0x2935c6=_0x3861b9['find'](_0x2ece72=>_0x2ece72['action']===_0x5c18f7['_action'])['isVisible'];_0x455d21['isVisible']=void 0x0===_0x2935c6||_0x2935c6(_0x27daa4);}}),_0x548876;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x4a3d2b(_0x4d9a94){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5b6c34,_0x4cb0b3,_0x473e3a,_0x2b0dc9){super(_0x5b6c34);const _0x496277=this['bindTemplate'],_0x550d9d=function(_0x4ba87d,_0x1f49f0){const _0x4423b9=Array['from'](_0x1f49f0['authors'])['filter'](_0x1082cc=>_0x1082cc!=_0x1f49f0['creator']);return _0x1f49f0['creator']&&_0x4423b9['unshift'](_0x1f49f0['creator']),_0x4423b9['map'](_0xc88736=>new vi(_0x4ba87d,_0xc88736,_0xc88736==_0x1f49f0['creator']));}(_0x5b6c34,_0x4cb0b3);this['id']=_0x4cb0b3['id'],this['_revision']=_0x4cb0b3,this['_requireRevisionName']=_0x2b0dc9,this['bind']('name','createdAt')['to'](_0x4cb0b3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3a1c14=>{return _0x47f049=_0x5b6c34['uiLanguage'],(_0x55cb73=_0x3a1c14)['toLocaleDateString'](_0x47f049,{'month':'long','day':'numeric'})+',\x20'+_0x55cb73['toLocaleTimeString'](_0x47f049,{'hour':'numeric','minute':'numeric'});var _0x47f049,_0x55cb73;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x5b6c34,_0x4673f6),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x483668=>_0x483668||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4c37fe,_0x14224c)=>_0x4c37fe&&_0x14224c),this['revisionActionsView']=_0x473e3a&&_0x473e3a['length']?mi(this,_0x473e3a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x496277['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x496277['if']('isEnabled','ck-disabled',_0x7763be=>!_0x7763be),_0x496277['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x496277['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x496277['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':_0x496277['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':_0x550d9d}]},this['revisionActionsView']],'on':{'click':_0x496277['to'](_0x1a9969=>{_0x1a9969['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x830e97=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x830e97,'change',()=>{this['_requireRevisionName']&&!_0x830e97['value']||this['fire']('setName',{'id':this['id'],'name':_0x830e97['value']}),_0x830e97['value']||(_0x830e97['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x16ea10,_0x1515fd){const _0x163973=_0x20727f['fromJSDate'](_0x16ea10)['setLocale'](_0x1515fd),_0xf8200b=_0x20727f['local'](),_0x2b0eff=_0xf8200b['minus']({'days':0x1})['startOf']('day');let _0x59c414,_0x5adfbc;return _0x163973['hasSame'](_0xf8200b,'day')?(_0x59c414=_0x163973['startOf']('day')['toJSDate'](),_0x5adfbc=_0x163973['toRelativeCalendar']()):_0x163973['hasSame'](_0x2b0eff,'day')?(_0x59c414=_0x2b0eff['toJSDate'](),_0x5adfbc=_0x163973['toRelativeCalendar']()):_0x163973['hasSame'](_0xf8200b,'week')?(_0x59c414=_0x163973['startOf']('week')['toJSDate'](),_0x5adfbc=_0x163973['weekdayLong']||''):_0x163973['hasSame'](_0xf8200b,'year')?(_0x59c414=_0x163973['startOf']('month')['toJSDate'](),_0x5adfbc=_0x163973['monthLong']||''):(_0x59c414=_0x163973['startOf']('year')['toJSDate'](),_0x5adfbc=String(_0x163973['year'])),{'startDate':_0x59c414,'localizedPeriodName':_0x5adfbc};}class fi extends _0x4d9a94{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x210cc5,_0x4badcd,_0x91ea9,_0x17e1ef){super(_0x210cc5);const _0x265552=bi(_0x4badcd,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4badcd,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x91ea9,this['_requireRevisionName']=_0x17e1ef,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':_0x265552}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x44617f){const _0x50e1ce=new pi(this['locale'],_0x44617f,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x50e1ce);}['removeRevision'](_0xe80ad7){const _0x4c5596=this['revisionViews']['find'](_0x4aaf7a=>_0x4aaf7a['id']===_0xe80ad7['id']);this['revisionViews']['remove'](_0x4c5596);}}class ki extends _0x4d9a94{constructor(_0x29c104){super(_0x29c104);const _0xd8f849=new _0x15ef69();_0xd8f849['content']=_0x292ff5,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xd8f849,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x29c104,'Revision\x20history')]}]});}}class ui extends _0x4d9a94{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x341ffb,_0x5408f0,_0x5e24cc,_0x253075){super(_0x341ffb);const _0xa9f6c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5408f0,this['_revisionActions']=_0x5e24cc,this['_requireRevisionName']=_0x253075,this['on']('select',(_0x53e1ef,_0x57d5ee)=>{this['fire']('revisionSelected',_0x57d5ee);}),this['on']('setName',(_0x1f1003,_0x31b2f1)=>{this['fire']('revisionSetName',_0x31b2f1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x341ffb),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xa9f6c['if']('isEnabled','ck-disabled',_0x3bac37=>!_0x3bac37)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x436a25 of this['_revisions'])this['_addRevision'](_0x436a25);this['_revisions']['on']('add',(_0x9f4941,_0x15f2f2)=>{this['_addRevision'](_0x15f2f2);}),this['_revisions']['on']('remove',(_0x1aec0f,_0x311dc2)=>{this['_removeRevision'](_0x311dc2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xd49f6b=>_0xd49f6b['revisionViews']['map'](_0x1eae30=>_0x1eae30))['flat']();}['selectRevision'](_0x23fb25){for(const _0x547cef of this['revisionViews'])_0x23fb25&&_0x23fb25['id']===_0x547cef['id']?_0x547cef['select']():_0x547cef['deselect']();}['highlightRevisions'](_0x126722){for(const _0x38c722 of this['revisionViews'])_0x126722['some'](({id:_0x11fc1c})=>_0x11fc1c===_0x38c722['id'])?_0x38c722['highlight']():_0x38c722['unhighlight']();}['_addRevision'](_0x100864){const _0x3be1f1=bi(_0x100864['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2f1462=this['timePeriodViews']['get'](0x0);_0x2f1462&&_0x2f1462['startDate']['getTime']()===_0x3be1f1['getTime']()||(_0x2f1462=new fi(this['locale'],_0x3be1f1,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2f1462)),_0x2f1462['addRevision'](_0x100864);}['_removeRevision'](_0x1a5bd6){const _0x4a507c=bi(_0x1a5bd6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4a507c)['removeRevision'](_0x1a5bd6);}['_getTimePeriodViewByStartDate'](_0x53adc7){return this['timePeriodViews']['find'](_0x1bc9af=>_0x1bc9af['startDate']['getTime']()===_0x53adc7['getTime']());}}class f extends _0x7a0156{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x58d9e3(_0x2bf74e){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xe9b430,_0x443159){super(_0x443159),this['sourceElement']=_0xe9b430,this['model']['document']['createRoot']();const _0x159e79=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x159e79);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x46cd29,_0x190f14){const _0x2ae2f5=new this(_0x46cd29,_0x190f14);return await _0x2ae2f5['initPlugins'](),await _0x2ae2f5['ui']['init'](_0x46cd29),await _0x2ae2f5['data']['init'](_0x2ae2f5['config']['get']('initialData')||''),_0x2ae2f5['fire']('ready'),_0x2ae2f5;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x279b1f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe16769){function _0x2d7c96(_0x2f2c35){return _0x2f2c35['map'](_0x4f3ac6=>String['fromCharCode'](_0x4f3ac6))['join']('');}super(_0xe16769),this['result']='end',_0xe16769[_0x2d7c96([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d7c96([0x76,0x69,0x65,0x77])][_0x2d7c96([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d7c96([0x61,0x75,0x74,0x6f]),_0xe16769[_0x2d7c96([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2d7c96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d7c96([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2d7c96([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2d7c96([0x6f,0x6b])});}}class ct extends _0x279b1f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0xac1e37){if(super(_0xac1e37),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a0f06('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x136ff1=>this['_showRevisionViewer']({..._0x136ff1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xcf6aef=>this['_closeRevisionViewer'](_0xcf6aef)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1087ea=>this['_restoreRevision'](_0x1087ea)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x150bf3){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x150bf3;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x17e894){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x17e894);}['getRevision'](_0x1d99bb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1d99bb);}['getRevisions'](_0x1e9391){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1e9391||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x454079=this['editor'],_0x47e98d=_0x5c74eb(_0x454079,d),_0x263459=_0x454079['plugins']['get']('RevisionTracker'),_0x371fd8=_0x454079['plugins']['get']('Users')['users'];return _0x47e98d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x47e98d['lazyRoots'],(_0x47e98d['plugins']['push'](ht,l,u,class extends _0x279b1f{static get['requires'](){return[l,'Users'];}['init'](){const _0x2db4f7=this['editor']['plugins']['get']('Users');for(const _0x21200c of _0x371fd8)_0x21200c['isAnonymous']||_0x2db4f7['getUser'](_0x21200c['id'])||_0x2db4f7['addUser'](_0x21200c);const _0x1625b0=_0x263459['repository']['getRevisions']();let _0x1bcf1e=null;const _0xff0a54=this['editor']['plugins']['get']('RevisionViewer');_0xff0a54['adapter']=_0x263459['adapter'],_0xff0a54['bind']('isEnabled')['to'](_0x263459),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x454079,'isReadOnly',_0x465475=>!_0x465475);for(const _0x300c0a of _0x1625b0){const _0x44a110=null===_0x300c0a['creator'];if(_0x44a110&&_0x300c0a['toVersion']===_0x300c0a['fromVersion'])continue;const _0x6e3de0=_0x300c0a['toJSON']();_0xff0a54['addRevisionData'](_0x6e3de0,(_0x2732c8,_0xefd4a,_0x2560cd)=>{if(_0x44a110){if(_0x1bcf1e)_0x1bcf1e['_update'](_0x2732c8,_0xefd4a);else{if(!_0xefd4a){const _0x36563e=_0x2560cd['toJSON']();_0x36563e['id']=_0x36f224(),_0x263459['saveRevision'](_0x36563e,_0x2560cd['toVersion'])['then'](_0x640d35=>{_0x1bcf1e=_0x640d35;});}}}else _0x300c0a['_update'](_0x2732c8,_0xefd4a);});}}},f),_0x47e98d);}['_enhanceShowRevisionViewerCallback'](){const _0x2eb120=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x12e2e3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x28e1ad=this['editor']['plugins']['get']('Autosave');await _0x28e1ad['save']();}else await _0x12e2e3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x11b4f6=this['editor']['plugins']['get']('Dialog');_0x11b4f6['isOpen']&&_0x11b4f6['hide']();}const _0x4f6e9d=this['_getRevisionViewerEditorConfig']();return _0x2eb120(_0x4f6e9d)['then'](_0x7f0fa=>{return(this['_viewerEditor']=_0x7f0fa,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'),_0x7f0fa);})['catch'](_0x34f910=>(console['error'](_0x34f910),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x19f4d6=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'](),_0x19f4d6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5a1ebf=this['editor']['plugins']['get']('Annotations');_0x5a1ebf['refreshVisibility'](),_0x5a1ebf['refreshPositioning']();}})));}['_showRevisionViewer'](_0x58f5bf){const _0x5c8e2b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x15e2a2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x316a90=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x316a90,_0x58f5bf)['then'](_0x3bbf6c=>(_0x15e2a2['style']['display']='block',_0x5c8e2b['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3bbf6c));}['_closeRevisionViewer'](_0x245bed){const _0x18ae86=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x18ae86['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x245bed['destroy']();}async['_restoreRevision'](_0x2ac157){const _0x2f66dc=this['editor'],_0x5359ee=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x547aff=_0x2f66dc['plugins']['get']('RevisionTracker'),_0x29e468=_0x2f66dc['plugins']['get']('RevisionHistoryUtils'),_0x1e96de=_0x5359ee['repository']['getRevision'](_0x2ac157);let _0xc35d7,_0x48426c,_0x31b953;try{await _0x29e468['loadRevisionData'](_0x1e96de,this['adapter']),_0xc35d7=_0x29e468['getRevisionDocumentData'](_0x1e96de),_0x48426c=_0x29e468['getRevisionRootsAttributes'](_0x1e96de);}catch(_0x25f8db){return void console['error'](_0x25f8db);}_0x2f66dc['model']['change'](_0x10c59a=>{for(const _0x43a005 of Array['from'](_0x2f66dc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x10c59a['removeMarker'](_0x43a005);}),_0x5359ee['isReady']=!0x1,_0x2f66dc['model']['enqueueChange'](_0x16e225=>{_0x16e225['setSelection'](null),_0x16e225['removeSelectionAttribute'](_0x2f66dc['model']['document']['selection']['getAttributeKeys']());const _0x1bdf22=Object['keys'](_0xc35d7);for(const _0x1c567a of _0x2f66dc['model']['document']['roots'])'$graveyard'!=_0x1c567a['rootName']&&_0x1c567a['isAttached']()&&!_0x1bdf22['includes'](_0x1c567a['rootName'])&&_0x16e225['detachRoot'](_0x1c567a);for(const _0x28d1a0 of _0x1bdf22){let _0x3c26ca=_0x2f66dc['model']['document']['getRoot'](_0x28d1a0);_0x3c26ca&&_0x3c26ca['isAttached']()||(_0x3c26ca=_0x16e225['addRoot'](_0x28d1a0));const _0x3743c9=_0x48426c[_0x28d1a0],_0x350d94=Object['keys'](_0x3743c9),_0xd2967a=_0xc35d7[_0x28d1a0];for(const _0x24790c of _0x3c26ca['getAttributeKeys']())_0x350d94['includes'](_0x24790c)||_0x16e225['removeAttribute'](_0x24790c,_0x3c26ca);for(const _0x1d9bb8 of _0x350d94)_0x16e225['setAttribute'](_0x1d9bb8,_0x48426c[_0x28d1a0][_0x1d9bb8],_0x3c26ca);_0x16e225['remove'](_0x16e225['createRangeIn'](_0x3c26ca)),_0x16e225['insert'](_0x2f66dc['data']['parse'](_0xd2967a,_0x3c26ca),_0x3c26ca,0x0);}});const _0x518173=R(_0x2f66dc['locale'],'Restored');if(_0x1e96de['name'])_0x31b953=-0x1==_0x1e96de['name']['indexOf'](_0x518173)?_0x518173+':\x20'+_0x1e96de['name']:_0x1e96de['name'];else _0x31b953=_0x518173+':\x20'+(_0x1e96de['createdAt']['toLocaleDateString'](_0x2f66dc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1e96de['createdAt']['toLocaleTimeString'](_0x2f66dc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x547aff['saveRevision']({'name':_0x31b953}),_0x5359ee['isReady']=!0x0,_0x2f66dc['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
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x523327){super(_0x523327),this['_revisionViewer']=_0x523327['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x13e4a1=this['_revisionsRepository']['_revisions'],_0x41002d=this['_createRevisionActions'](),_0x1e9ca0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x13e4a1,_0x41002d,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',(_0x248618,_0x4df3da)=>{_0x4df3da['revisionViews']['on']('add',(_0x347278,_0x5ee65d)=>{_0x5ee65d['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)),_0x1e9ca0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1f899d=this['_revisionsRepository']['getRevision'](0x0);if(_0x1f899d){const _0x19d29d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1f899d['id']);this['_revisionViewer']['compare'](_0x1f899d,_0x19d29d);}}['_handleRevisionSelected'](_0x1fa929,_0x48c517){const _0x1963cf=this['_revisionsRepository']['getRevision'](_0x48c517['id']),_0x4d5606=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1963cf['id']);this['_revisionViewer']['compare'](_0x1963cf,_0x4d5606);}['_handleRevisionSetName'](_0x1735fc,_0x13f3d2){this['_revisionsRepository']['getRevision'](_0x13f3d2['id'])['setName'](_0x13f3d2['name']);}['_handleDiffChange'](_0x53cb6f,_0x17e8e9,_0x554ff8){const _0x38d25d=this['_revisionsRepository']['getRevisionsInDiff'](_0x554ff8);_0x38d25d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x38d25d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x38d25d[0x0]));}['_createRevisionActions'](){const _0x586e29=this['editor'],_0x1088f8=f['availableRevisionActions'],_0x1c4a70=_0x586e29['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x1c4a70['length'])return _0x1c4a70['map'](_0x187f5f=>{const _0x4f7f0a='string'==typeof _0x187f5f?Object['assign']({},_0x1088f8[_0x187f5f]):_0x187f5f;return _0x4f7f0a['action']=_0x4f7f0a['action']['bind'](this,_0x586e29),_0x4f7f0a['isVisible']&&(_0x4f7f0a['isVisible']=_0x4f7f0a['isVisible']['bind'](this,_0x586e29)),_0x4f7f0a;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1cbde4},_0x24dd59)=>{const _0x319ef4=_0x1cbde4['get'](l),_0xc429c=_0x319ef4['repository'];let _0x479ab5=_0x319ef4['diff']['newRevisionId'],_0x4f1644=_0x24dd59['id'];_0xc429c['getIndex'](_0x479ab5)>_0xc429c['getIndex'](_0x4f1644)&&([_0x479ab5,_0x4f1644]=[_0x4f1644,_0x479ab5]),_0x319ef4['compare'](_0x479ab5,_0x4f1644);},'isVisible':({plugins:_0x4994f5},_0x5ee6ac)=>{const _0x32266a=_0x4994f5['get'](l);return!(_0x32266a['repository']['getRevisionsInDiff'](_0x32266a['diff'])['length']>0x2)&&!_0x5ee6ac['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x338fa3,{id:_0x355ca8})=>{_0x338fa3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x355ca8);},'isVisible':({plugins:_0x296548},_0x5b81c3)=>!!_0x296548['get'](l)['repository']['getLaterVisibleRevision'](_0x5b81c3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1e5d4e},{id:_0x31f9d7,revisionNameView:_0x56d8df})=>{const _0x18b930=_0x1e5d4e['get'](l),_0x404b8a=_0x18b930['repository']['getEarlierVisibleRevision'](_0x31f9d7);_0x18b930['compare'](_0x31f9d7,_0x404b8a),_0x56d8df['focus'](),_0x56d8df['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x541071,_0x35544b){super(_0x541071),this['_view']=_0x35544b,this['_toolbarConfig']=st(_0x541071['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x37ecdf){const _0x46139f=this['editor'],_0x1fc522=this['view'],_0x1a9b08=_0x46139f['editing']['view'],_0x478d8b=_0x1fc522['editable'],_0x111c54=_0x1a9b08['document']['getRoot']();_0x478d8b['name']=_0x111c54['rootName'],_0x1fc522['render']();const _0x452859=_0x478d8b['element'];this['setEditableElement'](_0x478d8b['name'],_0x452859),_0x1fc522['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1a9b08['attachDomRoot'](_0x452859),this['_elementReplacer']['replace'](_0x37ecdf,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x228990=this['view'],_0x34db4e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x34db4e['detachDomRoot'](_0x228990['editable']['name']),_0x228990['destroy']();}['_initToolbar'](){const _0x2b2708=this['view'];_0x2b2708['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2b2708['stickyPanel']['limiterElement']=_0x2b2708['element'],_0x2b2708['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x419794})=>_0x419794),_0x2b2708['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2b2708['toolbar']);}}class ii extends _0x42f0a9{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x647da6,_0x593659,_0x1e9300={}){super(_0x647da6),this['stickyPanel']=new _0x130a59(_0x647da6),this['toolbar']=new _0x236f60(_0x647da6,{'shouldGroupWhenFull':_0x1e9300['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x647da6,_0x593659);}['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
|
+
_0x312e8b(_0x47573f){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2ecbe0,_0x571b1a){super(_0x571b1a),this['sourceElement']=_0x2ecbe0,this['model']['document']['createRoot']();const _0x4662ab=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4662ab);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2693a6,_0x107ba9){const _0x2fc7e0=new this(_0x2693a6,_0x107ba9);return await _0x2fc7e0['initPlugins'](),await _0x2fc7e0['ui']['init'](_0x2693a6),await _0x2fc7e0['data']['init'](_0x2fc7e0['config']['get']('initialData')||''),_0x2fc7e0['fire']('ready'),_0x2fc7e0;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x7a0156{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1fe397){function _0x14379a(_0x19d776){return _0x19d776['map'](_0x44f796=>String['fromCharCode'](_0x44f796))['join']('');}super(_0x1fe397),this['result']='end',_0x1fe397[_0x14379a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14379a([0x76,0x69,0x65,0x77])][_0x14379a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14379a([0x61,0x75,0x74,0x6f]),_0x1fe397[_0x14379a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x14379a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14379a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x14379a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x14379a([0x6f,0x6b])});}}class ht extends _0x7a0156{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x1d6b29){if(super(_0x1d6b29),!this['editor']['config']['get']('revisionHistory'))throw new _0x4e9057('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2069f7=>this['_showRevisionViewer']({..._0x2069f7,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x46b291=>this['_closeRevisionViewer'](_0x46b291)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x226616=>this['_restoreRevision'](_0x226616)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3f9af4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3f9af4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4baad7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4baad7);}['getRevision'](_0x5c0865){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5c0865);}['getRevisions'](_0x2ef8a3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2ef8a3||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2626e4=this['editor'],_0x3efc3d=_0xe0af66(_0x2626e4,d),_0x55c202=_0x2626e4['plugins']['get']('RevisionTracker'),_0x118673=_0x2626e4['plugins']['get']('Users')['users'];return _0x3efc3d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3efc3d['lazyRoots'],(_0x3efc3d['plugins']['push'](at,l,u,class extends _0x7a0156{static get['requires'](){return[l,'Users'];}['init'](){const _0x26ac8c=this['editor']['plugins']['get']('Users');for(const _0x38f2bc of _0x118673)_0x38f2bc['isAnonymous']||_0x26ac8c['getUser'](_0x38f2bc['id'])||_0x26ac8c['addUser'](_0x38f2bc);const _0x5af165=_0x55c202['repository']['getRevisions']();let _0x5d9fb9=null;const _0x769013=this['editor']['plugins']['get']('RevisionViewer');_0x769013['adapter']=_0x55c202['adapter'],_0x769013['bind']('isEnabled')['to'](_0x55c202),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2626e4,'isReadOnly',_0x27b7e3=>!_0x27b7e3);for(const _0x331039 of _0x5af165){const _0x3899cb=null===_0x331039['creator'];if(_0x3899cb&&_0x331039['toVersion']===_0x331039['fromVersion'])continue;const _0x279f53=_0x331039['toJSON']();_0x769013['addRevisionData'](_0x279f53,(_0x1039f8,_0x432446,_0x311858)=>{if(_0x3899cb){if(_0x5d9fb9)_0x5d9fb9['_update'](_0x1039f8,_0x432446);else{if(!_0x432446){const _0x2d718f=_0x311858['toJSON']();_0x2d718f['id']=_0x33e273(),_0x55c202['saveRevision'](_0x2d718f,_0x311858['toVersion'])['then'](_0x193dcb=>{_0x5d9fb9=_0x193dcb;});}}}else _0x331039['_update'](_0x1039f8,_0x432446);});}}},f),_0x3efc3d);}['_enhanceShowRevisionViewerCallback'](){const _0x21a5dd=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1db812=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x58544d=this['editor']['plugins']['get']('Autosave');await _0x58544d['save']();}else await _0x1db812['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xf3bdbf=this['editor']['plugins']['get']('Dialog');_0xf3bdbf['isOpen']&&_0xf3bdbf['hide']();}const _0x9683d2=this['_getRevisionViewerEditorConfig']();return _0x21a5dd(_0x9683d2)['then'](_0x4ab719=>{return(this['_viewerEditor']=_0x4ab719,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'),_0x4ab719);})['catch'](_0x25496b=>(console['error'](_0x25496b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2c51ac=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'](),_0x2c51ac(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x59f5f8=this['editor']['plugins']['get']('Annotations');_0x59f5f8['refreshVisibility'](),_0x59f5f8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4fc526){const _0x3379f1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x52f21e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x25980a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x25980a,_0x4fc526)['then'](_0x3949a9=>(_0x52f21e['style']['display']='block',_0x3379f1['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3949a9));}['_closeRevisionViewer'](_0x40b54f){const _0x3ca38a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3ca38a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x40b54f['destroy']();}async['_restoreRevision'](_0x4437b9){const _0x5a7318=this['editor'],_0xc290c1=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x12f827=_0x5a7318['plugins']['get']('RevisionTracker'),_0x419f8c=_0x5a7318['plugins']['get']('RevisionHistoryUtils'),_0x5e8575=_0xc290c1['repository']['getRevision'](_0x4437b9);let _0x3eef7c,_0x1718e3,_0x2c4baa;try{await _0x419f8c['loadRevisionData'](_0x5e8575,this['adapter']),_0x3eef7c=_0x419f8c['getRevisionDocumentData'](_0x5e8575),_0x1718e3=_0x419f8c['getRevisionRootsAttributes'](_0x5e8575);}catch(_0x118b28){return void console['error'](_0x118b28);}_0x5a7318['model']['change'](_0x28902c=>{for(const _0x2c106e of Array['from'](_0x5a7318['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x28902c['removeMarker'](_0x2c106e);}),_0xc290c1['isReady']=!0x1,_0x5a7318['model']['enqueueChange'](_0x10d9b6=>{_0x10d9b6['setSelection'](null),_0x10d9b6['removeSelectionAttribute'](_0x5a7318['model']['document']['selection']['getAttributeKeys']());const _0x5ec6f=Object['keys'](_0x3eef7c);for(const _0x544663 of _0x5a7318['model']['document']['roots'])'$graveyard'!=_0x544663['rootName']&&_0x544663['isAttached']()&&!_0x5ec6f['includes'](_0x544663['rootName'])&&_0x10d9b6['detachRoot'](_0x544663);for(const _0x5e80f9 of _0x5ec6f){let _0x1cd522=_0x5a7318['model']['document']['getRoot'](_0x5e80f9);_0x1cd522&&_0x1cd522['isAttached']()||(_0x1cd522=_0x10d9b6['addRoot'](_0x5e80f9));const _0xb4f20b=_0x1718e3[_0x5e80f9],_0x2bae7d=Object['keys'](_0xb4f20b),_0x4e7c75=_0x3eef7c[_0x5e80f9];for(const _0xc48807 of _0x1cd522['getAttributeKeys']())_0x2bae7d['includes'](_0xc48807)||_0x10d9b6['removeAttribute'](_0xc48807,_0x1cd522);for(const _0x2769b0 of _0x2bae7d)_0x10d9b6['setAttribute'](_0x2769b0,_0x1718e3[_0x5e80f9][_0x2769b0],_0x1cd522);_0x10d9b6['remove'](_0x10d9b6['createRangeIn'](_0x1cd522)),_0x10d9b6['insert'](_0x5a7318['data']['parse'](_0x4e7c75,_0x1cd522),_0x1cd522,0x0);}});const _0x88aafd=R(_0x5a7318['locale'],'Restored');if(_0x5e8575['name'])_0x2c4baa=-0x1==_0x5e8575['name']['indexOf'](_0x88aafd)?_0x88aafd+':\x20'+_0x5e8575['name']:_0x5e8575['name'];else _0x2c4baa=_0x88aafd+':\x20'+(_0x5e8575['createdAt']['toLocaleDateString'](_0x5a7318['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5e8575['createdAt']['toLocaleTimeString'](_0x5a7318['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x12f827['saveRevision']({'name':_0x2c4baa}),_0xc290c1['isReady']=!0x0,_0x5a7318['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht 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,ot as ShowChangeCommand};
|